diff --git a/assets/Badge-8fcefbf1.js.map b/assets/Badge-8fcefbf1.js.map deleted file mode 100644 index 4e20cd395..000000000 --- a/assets/Badge-8fcefbf1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Badge-8fcefbf1.js","sources":["../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ReactElement } from 'react'\n\nimport { Box, BoxProps } from '~/components/Box'\n\nimport * as styles from './styles.css'\n\ntype BadgeProps = BoxProps &\n styles.BadgeVariants & {\n value: ReactElement | string | number\n }\n\nexport const Badge = (props: BadgeProps) => {\n const { className, value, variant = 'info', size = 'md', ...rest } = props\n\n return (\n \n {value}\n \n )\n}\n"],"names":["Badge","props","className","value","variant","size","rest","jsx","Box","clsx","styles.badgeVariants"],"mappings":"0tBAYO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAA,UAAAC,EAAA,MAAAC,EAAA,QAAAC,EAAA,OAAA,KAAAC,EAAA,KAAA,GAAAC,CAAA,EAAAL,EAEA,OAAAM,EAAA,IACEC,EAAC,CAAA,UAAAC,EAAAP,EAAAQ,EAAA,CAAA,QAAAN,EAAA,KAAAC,CAAA,CAAA,CAAA,EACmE,QAAA,cAC1D,WAAA,IACG,WAAA,SACA,aAAA,SACE,MAAA,QACP,WAAA,SACK,GAAAC,EACP,SAAAH,CAEH,CAAA,CAGP"} \ No newline at end of file diff --git a/assets/Badge-8fcefbf1.js b/assets/Badge-d4166747.js similarity index 99% rename from assets/Badge-8fcefbf1.js rename to assets/Badge-d4166747.js index 95978f659..8487c2aa4 100644 --- a/assets/Badge-8fcefbf1.js +++ b/assets/Badge-d4166747.js @@ -1,2 +1 @@ -import{j as l}from"./jsx-runtime-69eee039.js";import{B as o,c as u}from"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as g}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var d=g({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const e=n=>{const{className:t,value:i,variant:r="info",size:s="md",...a}=n;return l.jsx(o,{className:u(t,d({variant:r,size:s})),display:"inline-flex",flexShrink:"0",placeItems:"center",borderRadius:"circle",color:"white",whiteSpace:"nowrap",...a,children:i})};try{e.displayName="Badge",e.__docgenInfo={description:"",displayName:"Badge",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"warning"'},{value:'"error"'},{value:'"success"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number | ReactElement>"}}}}}catch{}export{e as B}; -//# sourceMappingURL=Badge-8fcefbf1.js.map +import{j as l}from"./jsx-runtime-1caa8f64.js";import{B as o,c as u}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as g}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var d=g({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const e=n=>{const{className:t,value:i,variant:r="info",size:s="md",...a}=n;return l.jsx(o,{className:u(t,d({variant:r,size:s})),display:"inline-flex",flexShrink:"0",placeItems:"center",borderRadius:"circle",color:"white",whiteSpace:"nowrap",...a,children:i})};try{e.displayName="Badge",e.__docgenInfo={description:"",displayName:"Badge",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"warning"'},{value:'"error"'},{value:'"success"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number | ReactElement>"}}}}}catch{}export{e as B}; diff --git a/assets/Badge.stories-223b4b05.js.map b/assets/Badge.stories-223b4b05.js.map deleted file mode 100644 index 84c237f87..000000000 --- a/assets/Badge.stories-223b4b05.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Badge.stories-223b4b05.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Badge.stories-223b4b05.js b/assets/Badge.stories-919696a2.js similarity index 83% rename from assets/Badge.stories-223b4b05.js rename to assets/Badge.stories-919696a2.js index c983913de..121bdd807 100644 --- a/assets/Badge.stories-223b4b05.js +++ b/assets/Badge.stories-919696a2.js @@ -1,4 +1,4 @@ -import{B as i}from"./Badge-8fcefbf1.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const f={title:"Components/Badge",component:i},r={args:{value:"3",variant:"info"}},a={args:{value:"2713",variant:"success"}};var e,s,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{B as i}from"./Badge-d4166747.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const f={title:"Components/Badge",component:i},r={args:{value:"3",variant:"info"}},a={args:{value:"2713",variant:"success"}};var e,s,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: { value: '3', variant: 'info' @@ -9,4 +9,3 @@ import{B as i}from"./Badge-8fcefbf1.js";import"./jsx-runtime-69eee039.js";import variant: 'success' } }`,...(c=(n=a.parameters)==null?void 0:n.docs)==null?void 0:c.source}}};const h=["SingleCharacter","MultiCharacter"];export{a as MultiCharacter,r as SingleCharacter,h as __namedExportsOrder,f as default}; -//# sourceMappingURL=Badge.stories-223b4b05.js.map diff --git a/assets/Box-8ffdd394.js.map b/assets/Box-8ffdd394.js.map deleted file mode 100644 index 683ba00ee..000000000 --- a/assets/Box-8ffdd394.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Box-8ffdd394.js","sources":["../../node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs","../../src/components/Box/Box.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t =\n ComponentPropsWithoutRef & {\n as?: T\n sx?: Atoms\n ref?: ComponentPropsWithRef['ref'] | null\n } & Atoms\n\nexport type PolymorphicProps = P & BoxProps\n\nexport type PolymorphicComponent = <\n T extends ElementType = D\n>(\n props: PolymorphicProps\n) => ReactElement | null\n\nexport type PolymorphicRef = BoxProps['ref']\n\nexport const Box: PolymorphicComponent<{}, 'div'> = forwardRef(\n (props: BoxProps, ref: Ref) => {\n const { as = 'div', sx = {}, className, ...restProps } = props\n const atomProps: Record = {}\n const nativeProps: Record = {}\n\n for (const key in restProps) {\n if (atoms.properties.has(key as keyof Atoms)) {\n atomProps[key] = restProps[key as keyof typeof restProps]\n } else {\n nativeProps[key] = restProps[key as keyof typeof restProps]\n }\n }\n\n const atomicClasses = atoms({\n ...atomProps,\n ...sx,\n })\n\n return createElement(as, {\n className: clsx(atomicClasses, className),\n ...nativeProps,\n ref,\n })\n }\n)\n"],"names":["r","e","t","f","n","clsx","Box","forwardRef","props","ref","as","sx","className","restProps","atomProps","nativeProps","key","atoms","atomicClasses","createElement"],"mappings":"0HAAA,SAASA,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAa,OAAOH,GAAjB,UAA8B,OAAOA,GAAjB,SAAmBG,GAAGH,UAAoB,OAAOA,GAAjB,SAAmB,GAAG,MAAM,QAAQA,CAAC,EAAE,IAAIC,EAAE,EAAEA,EAAED,EAAE,OAAOC,IAAID,EAAEC,CAAC,IAAIC,EAAEH,EAAEC,EAAEC,CAAC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAGD,OAAQ,KAAID,KAAKD,EAAEA,EAAEC,CAAC,IAAIE,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CAAQ,SAASC,GAAM,CAAC,QAAQJ,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGD,EAAE,UAAU,SAASF,EAAE,UAAUE,GAAG,KAAKD,EAAEF,EAAEC,CAAC,KAAKG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CC8B1V,MAAAE,EAAAC,EAAA,WAA6C,CAAAC,EAAAC,IAAA,CAEhD,KAAA,CAAA,GAAAC,EAAA,MAAA,GAAAC,EAAA,CAAA,EAAA,UAAAC,EAAA,GAAAC,CAAA,EAAAL,EACAM,EAAA,CAAA,EACAC,EAAA,CAAA,EAEA,UAAAC,KAAAH,EACEI,EAAA,WAAA,IAAAD,CAAA,EACEF,EAAAE,CAAA,EAAAH,EAAAG,CAAA,EAEAD,EAAAC,CAAA,EAAAH,EAAAG,CAAA,EAIJ,MAAAE,EAAAD,EAAA,CAA4B,GAAAH,EACvB,GAAAH,CACA,CAAA,EAGL,OAAAQ,EAAAA,cAAAT,EAAA,CAAyB,UAAAL,EAAAa,EAAAN,CAAA,EACiB,GAAAG,EACrC,IAAAN,CACH,CAAA,CACD,CAEL","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Box-8ffdd394.js b/assets/Box-e4a86556.js similarity index 99% rename from assets/Box-8ffdd394.js rename to assets/Box-e4a86556.js index 933c351a3..4e4279c9f 100644 --- a/assets/Box-8ffdd394.js +++ b/assets/Box-e4a86556.js @@ -1,2 +1 @@ -import{r as o}from"./index-7c191284.js";/* empty css */import{a as g}from"./atoms-c7901a03.js";function d(n){var e,i,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e{const{as:i="div",sx:t={},className:c,...s}=n,a={},l={};for(const r in s)g.properties.has(r)?a[r]=s[r]:l[r]=s[r];const m=g({...a,...t});return o.createElement(i,{className:f(m,c),...l,ref:e})});try{u.displayName="Box",u.__docgenInfo={description:"",displayName:"Box",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{u as B,f as c}; -//# sourceMappingURL=Box-8ffdd394.js.map +import{r as o}from"./index-1cdf6ce0.js";/* empty css */import{a as g}from"./atoms-c7901a03.js";function d(n){var e,i,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e{const{as:i="div",sx:t={},className:c,...s}=n,a={},l={};for(const r in s)g.properties.has(r)?a[r]=s[r]:l[r]=s[r];const m=g({...a,...t});return o.createElement(i,{className:f(m,c),...l,ref:e})});try{u.displayName="Box",u.__docgenInfo={description:"",displayName:"Box",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{u as B,f as c}; diff --git a/assets/Box.stories-14561029.js.map b/assets/Box.stories-14561029.js.map deleted file mode 100644 index 4d2657a12..000000000 --- a/assets/Box.stories-14561029.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Box.stories-14561029.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"} \ No newline at end of file diff --git a/assets/Box.stories-14561029.js b/assets/Box.stories-3663ebb2.js similarity index 80% rename from assets/Box.stories-14561029.js rename to assets/Box.stories-3663ebb2.js index 7a7cd7e3b..07d84db5a 100644 --- a/assets/Box.stories-14561029.js +++ b/assets/Box.stories-3663ebb2.js @@ -1,4 +1,4 @@ -import{t as a}from"./index-a7f6476c.js";import{B as n}from"./Box-8ffdd394.js";import"./color-dcee1839.js";import"./typography-f274f330.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";const u={title:"Components/Box",component:n,argTypes:{padding:{control:"select",options:Object.keys(a.space)}}},o={args:{padding:"4",background:"backgroundSecondary",borderRadius:"md",color:"text100",children:"Hello"}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{t as a}from"./index-a7f6476c.js";import{B as n}from"./Box-e4a86556.js";import"./color-dcee1839.js";import"./typography-f274f330.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";const u={title:"Components/Box",component:n,argTypes:{padding:{control:"select",options:Object.keys(a.space)}}},o={args:{padding:"4",background:"backgroundSecondary",borderRadius:"md",color:"text100",children:"Hello"}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { padding: '4', background: 'backgroundSecondary', @@ -7,4 +7,3 @@ import{t as a}from"./index-a7f6476c.js";import{B as n}from"./Box-8ffdd394.js";im children: 'Hello' } }`,...(t=(e=o.parameters)==null?void 0:e.docs)==null?void 0:t.source}}};const g=["Default"];export{o as Default,g as __namedExportsOrder,u as default}; -//# sourceMappingURL=Box.stories-14561029.js.map diff --git a/assets/Breadcrumbs.stories-03df2ad7.js.map b/assets/Breadcrumbs.stories-03df2ad7.js.map deleted file mode 100644 index 3fd813048..000000000 --- a/assets/Breadcrumbs.stories-03df2ad7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Breadcrumbs.stories-03df2ad7.js","sources":["../../src/components/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { ReactNode } from 'react'\n\nimport { Box, BoxProps } from '~/components/Box'\nimport { Divider } from '~/components/Divider'\nimport { Text } from '~/components/Text'\n\ninterface Path {\n label: string\n url?: string\n}\n\ntype BreadcrumbsProps = BoxProps & {\n excludeDivider?: boolean\n paths: Path[]\n renderLink?: (path: Path, children: ReactNode) => JSX.Element\n}\n\nexport const Breadcrumbs = (props: BreadcrumbsProps) => {\n const { paths, excludeDivider = false, renderLink, ...rest } = props\n\n return (\n \n {paths.map((path, idx) => (\n \n ))}\n\n {!excludeDivider && }\n \n )\n}\n\ninterface BreadcrumbSegmentProps {\n path: Path\n active?: boolean\n renderLink?: (path: Path, children: ReactNode) => JSX.Element\n}\n\nconst defaultRenderLink = (path: Path, children: ReactNode) => (\n {children}\n)\n\nconst BreadcrumbSegment = (props: BreadcrumbSegmentProps) => {\n const { path, active, renderLink = defaultRenderLink } = props\n\n return active ? (\n \n {path.label}\n \n ) : (\n renderLink(\n path,\n \n {path.label}\n {' / '}\n \n )\n )\n}\n"],"names":["Breadcrumbs","props","paths","excludeDivider","renderLink","rest","jsxs","Box","path","idx","jsx","BreadcrumbSegment","Divider","defaultRenderLink","children","active","Text"],"mappings":"maAiBO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAA,MAAAC,EAAA,eAAAC,EAAA,GAAA,WAAAC,EAAA,GAAAC,CAAA,EAAAJ,EAEA,OAAAK,EAAA,KAAAC,EAAA,CAAA,GAAAF,EAAA,SAAA,CAEKH,EAAA,IAAA,CAAAM,EAAAC,IAAAC,EAAA,IACCC,EAAC,CAAA,KAAAH,EAEC,OAAAC,IAAAP,EAAA,OAAA,EAC+B,WAAAE,CAC/B,EAAAK,CAHK,CAAA,EAKR,CAAAN,GAAAO,EAAAA,IAAAE,EAAA,EAAA,CAE4B,CAAA,CAAA,CAGnC,EAQAC,EAAA,CAAAL,EAAAM,IAAAJ,MAAA,IAAA,CAAA,KAAAF,EAAA,IAAA,SAAAM,CAAA,CAAA,EAIAH,EAAAV,GAAA,CACE,KAAA,CAAA,KAAAO,EAAA,OAAAO,EAAA,WAAAX,EAAAS,CAAA,EAAAZ,EAEA,OAAAc,EAAAL,EAAA,IACEM,EAAC,CAAA,QAAA,QACS,WAAA,SACG,MAAA,UACL,WAAA,SACK,WAAA,GACD,SAAAR,EAAA,KAEJ,CAAA,EAAAJ,EAGRI,EACEF,EAAA,KACAU,EAAC,CAAA,QAAA,QACS,WAAA,SACG,MAAA,SACL,WAAA,SACK,WAAA,GACD,SAAA,CAETR,EAAA,MAAK,KACL,CAAA,CAAA,CACH,CAGN;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Breadcrumbs.stories-03df2ad7.js b/assets/Breadcrumbs.stories-5bd9889b.js similarity index 98% rename from assets/Breadcrumbs.stories-03df2ad7.js rename to assets/Breadcrumbs.stories-5bd9889b.js index 9d16fc93d..2c2b370ed 100644 --- a/assets/Breadcrumbs.stories-03df2ad7.js +++ b/assets/Breadcrumbs.stories-5bd9889b.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-69eee039.js";import{B as f}from"./Box-8ffdd394.js";import"./index-cf531260.js";import{T as o}from"./Text-cdf53fa8.js";import{D as p}from"./Divider-d7d44c9d.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const a=e=>{const{paths:n,excludeDivider:r=!1,renderLink:s,...c}=e;return t.jsxs(f,{...c,children:[n.map((m,l)=>t.jsx(V,{path:m,active:l===n.length-1,renderLink:s},l)),!r&&t.jsx(p,{})]})},S=(e,n)=>t.jsx("a",{href:e.url,children:n}),V=e=>{const{path:n,active:r,renderLink:s=S}=e;return r?t.jsx(o,{variant:"small",fontWeight:"medium",color:"text100",whiteSpace:"nowrap",capitalize:!0,children:n.label}):s(n,t.jsxs(o,{variant:"small",fontWeight:"medium",color:"text50",whiteSpace:"nowrap",capitalize:!0,children:[n.label," / "]}))};try{a.displayName="Breadcrumbs",a.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},excludeDivider:{defaultValue:null,description:"",name:"excludeDivider",required:!1,type:{name:"boolean"}},paths:{defaultValue:null,description:"",name:"paths",required:!0,type:{name:"Path[]"}},renderLink:{defaultValue:null,description:"",name:"renderLink",required:!1,type:{name:"((path: Path, children: ReactNode) => Element)"}}}}}catch{}const k={title:"Components/Breadcrumbs",component:a},i={args:{excludeDivider:!1,paths:[{label:"Home",url:"/"},{label:"Components",url:"/components"},{label:"Breadcrumbs"}]}};var u,g,d;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`{ +import{j as t}from"./jsx-runtime-1caa8f64.js";import{B as f}from"./Box-e4a86556.js";import"./index-fdf8a495.js";import{T as o}from"./Text-b96ac7e7.js";import{D as p}from"./Divider-a68c85d7.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const a=e=>{const{paths:n,excludeDivider:r=!1,renderLink:s,...c}=e;return t.jsxs(f,{...c,children:[n.map((m,l)=>t.jsx(V,{path:m,active:l===n.length-1,renderLink:s},l)),!r&&t.jsx(p,{})]})},S=(e,n)=>t.jsx("a",{href:e.url,children:n}),V=e=>{const{path:n,active:r,renderLink:s=S}=e;return r?t.jsx(o,{variant:"small",fontWeight:"medium",color:"text100",whiteSpace:"nowrap",capitalize:!0,children:n.label}):s(n,t.jsxs(o,{variant:"small",fontWeight:"medium",color:"text50",whiteSpace:"nowrap",capitalize:!0,children:[n.label," / "]}))};try{a.displayName="Breadcrumbs",a.__docgenInfo={description:"",displayName:"Breadcrumbs",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},excludeDivider:{defaultValue:null,description:"",name:"excludeDivider",required:!1,type:{name:"boolean"}},paths:{defaultValue:null,description:"",name:"paths",required:!0,type:{name:"Path[]"}},renderLink:{defaultValue:null,description:"",name:"renderLink",required:!1,type:{name:"((path: Path, children: ReactNode) => Element)"}}}}}catch{}const k={title:"Components/Breadcrumbs",component:a},i={args:{excludeDivider:!1,paths:[{label:"Home",url:"/"},{label:"Components",url:"/components"},{label:"Breadcrumbs"}]}};var u,g,d;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`{ args: { excludeDivider: false, paths: [{ @@ -12,4 +12,3 @@ import{j as t}from"./jsx-runtime-69eee039.js";import{B as f}from"./Box-8ffdd394. }] } }`,...(d=(g=i.parameters)==null?void 0:g.docs)==null?void 0:d.source}}};const N=["Default"];export{i as Default,N as __namedExportsOrder,k as default}; -//# sourceMappingURL=Breadcrumbs.stories-03df2ad7.js.map diff --git a/assets/Button-cbaba6d6.js.map b/assets/Button-cbaba6d6.js.map deleted file mode 100644 index b77e140bb..000000000 --- a/assets/Button-cbaba6d6.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Button-cbaba6d6.js","sources":["../../src/components/Button/Button.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ComponentType, forwardRef, ElementType, ReactNode } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { Text } from '~/components/Text'\nimport { IconProps } from '~/icons/types'\n\nimport { buttonVariants, ButtonVariants } from './styles.css'\n\ntype ButtonProps = ButtonVariants & {\n disabled?: boolean\n pending?: boolean\n label?: ReactNode\n leftIcon?: ComponentType\n rightIcon?: ComponentType\n type?: 'button' | 'submit' | 'reset'\n}\n\nexport const Button: PolymorphicComponent = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const {\n as = 'button',\n activeOutline,\n className,\n disabled = false,\n display = 'inline-flex',\n fontWeight = 'bold',\n pending = false,\n label,\n leftIcon: LeftIcon,\n rightIcon: RightIcon,\n size = 'md',\n variant = 'glass',\n width = 'fit',\n shape = 'circle',\n type = 'button',\n ...restProps\n } = props\n\n const hasLeftIcon = LeftIcon !== undefined && label !== undefined\n const hasRightIcon = RightIcon !== undefined && label !== undefined\n const iconOnly = LeftIcon !== undefined && label === undefined\n\n const iconSize = size === 'xs' ? 'xs' : 'sm'\n\n return (\n \n {iconOnly ? (\n \n ) : (\n \n \n {LeftIcon && }\n {label}\n \n\n {RightIcon && }\n \n )}\n \n )\n }\n)\n"],"names":["Button","forwardRef","props","ref","as","activeOutline","className","disabled","display","fontWeight","pending","label","LeftIcon","RightIcon","size","variant","width","shape","type","restProps","hasLeftIcon","hasRightIcon","iconOnly","iconSize","jsx","Box","clsx","buttonVariants","jsxs","Text"],"mappings":"66DAuBO,MAAAA,EA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CAAA,KAAAU,CAAA,CAAA,CAEyC,CAAA,CAAA,CAC3C,CAAA,CAEJ,CAGN"} \ No newline at end of file diff --git a/assets/Button-cbaba6d6.js b/assets/Button-e8455a66.js similarity index 99% rename from assets/Button-cbaba6d6.js rename to assets/Button-e8455a66.js index 2c2d835be..2c7428d99 100644 --- a/assets/Button-cbaba6d6.js +++ b/assets/Button-e8455a66.js @@ -1,2 +1 @@ -import{j as n}from"./jsx-runtime-69eee039.js";import{B as l,c as q}from"./Box-8ffdd394.js";import{r as w}from"./index-7c191284.js";import{T as L}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as R}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var k=R({defaultClassName:"_140wn8ng fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8nh",feature:"_140wn8ni fyvr11ph fyvr12o5",primary:"fyvr11pb fyvr12o5",glass:"fyvr11tt fyvr12rt",emphasis:"fyvr11tz fyvr12rt",raised:"fyvr11tn fyvr12rt",danger:"fyvr11on fyvr12o5",text:"_140wn8no _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12s5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12ut fyvr12vh",false:"fyvr12uz fyvr12vt fyvr12vr"},size:{xs:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nv _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nw _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nx"},hasLeftIcon:{true:"_140wn8ny"},hasRightIcon:{true:"_140wn8nz"},activeOutline:{light:"_140wn8n10",bold:"_140wn8n11"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n12"],[{iconOnly:!0,size:"sm"},"_140wn8n13"],[{iconOnly:!0,size:"md"},"_140wn8n14"],[{iconOnly:!0,size:"lg"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n16"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n17"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1b"]]});const f=w.forwardRef((o,c)=>{const{as:m="button",activeOutline:p,className:S,disabled:u=!1,display:y="inline-flex",fontWeight:V="bold",pending:g=!1,label:t,leftIcon:e,rightIcon:r,size:i="md",variant:s="glass",width:C="fit",shape:v="circle",type:h="button",...x}=o,b=e!==void 0&&t!==void 0,F=r!==void 0&&t!==void 0,d=e!==void 0&&t===void 0,a=i==="xs"?"xs":"sm";return n.jsx(l,{as:m,className:q(S,k({activeOutline:p,disabled:u||g,hasLeftIcon:b,hasRightIcon:F,iconOnly:d,size:s==="text"?void 0:i,shape:s==="text"?void 0:v,variant:s})),disabled:u||g,display:y,fontWeight:V,ref:c,type:h,width:C,...x,children:d?n.jsx(e,{size:a}):n.jsxs(l,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:i==="xs"?"1":"2",children:[n.jsxs(l,{justifyContent:"flex-start",alignItems:"center",gap:i==="xs"?"1":"2",children:[e&&n.jsx(e,{size:a}),n.jsx(L,{children:t})]}),r&&n.jsx(r,{size:a})]})})});try{f.displayName="Button",f.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},shape:{defaultValue:null,description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},iconOnly:{defaultValue:null,description:"",name:"iconOnly",required:!1,type:{name:"boolean"}},hasLeftIcon:{defaultValue:null,description:"",name:"hasLeftIcon",required:!1,type:{name:"boolean"}},hasRightIcon:{defaultValue:null,description:"",name:"hasRightIcon",required:!1,type:{name:"boolean"}},activeOutline:{defaultValue:null,description:"",name:"activeOutline",required:!1,type:{name:"enum",value:[{value:'"bold"'},{value:'"light"'}]}},pending:{defaultValue:null,description:"",name:"pending",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"reset"'},{value:'"submit"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{f as B}; -//# sourceMappingURL=Button-cbaba6d6.js.map +import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as l,c as q}from"./Box-e4a86556.js";import{r as w}from"./index-1cdf6ce0.js";import{T as L}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as R}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var k=R({defaultClassName:"_140wn8ng fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8nh",feature:"_140wn8ni fyvr11ph fyvr12o5",primary:"fyvr11pb fyvr12o5",glass:"fyvr11tt fyvr12rt",emphasis:"fyvr11tz fyvr12rt",raised:"fyvr11tn fyvr12rt",danger:"fyvr11on fyvr12o5",text:"_140wn8no _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12s5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12ut fyvr12vh",false:"fyvr12uz fyvr12vt fyvr12vr"},size:{xs:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nv _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nw _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nx"},hasLeftIcon:{true:"_140wn8ny"},hasRightIcon:{true:"_140wn8nz"},activeOutline:{light:"_140wn8n10",bold:"_140wn8n11"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n12"],[{iconOnly:!0,size:"sm"},"_140wn8n13"],[{iconOnly:!0,size:"md"},"_140wn8n14"],[{iconOnly:!0,size:"lg"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n16"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n17"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1b"]]});const f=w.forwardRef((o,c)=>{const{as:m="button",activeOutline:p,className:S,disabled:u=!1,display:y="inline-flex",fontWeight:V="bold",pending:g=!1,label:t,leftIcon:e,rightIcon:r,size:i="md",variant:s="glass",width:C="fit",shape:v="circle",type:h="button",...x}=o,b=e!==void 0&&t!==void 0,F=r!==void 0&&t!==void 0,d=e!==void 0&&t===void 0,a=i==="xs"?"xs":"sm";return n.jsx(l,{as:m,className:q(S,k({activeOutline:p,disabled:u||g,hasLeftIcon:b,hasRightIcon:F,iconOnly:d,size:s==="text"?void 0:i,shape:s==="text"?void 0:v,variant:s})),disabled:u||g,display:y,fontWeight:V,ref:c,type:h,width:C,...x,children:d?n.jsx(e,{size:a}):n.jsxs(l,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:i==="xs"?"1":"2",children:[n.jsxs(l,{justifyContent:"flex-start",alignItems:"center",gap:i==="xs"?"1":"2",children:[e&&n.jsx(e,{size:a}),n.jsx(L,{children:t})]}),r&&n.jsx(r,{size:a})]})})});try{f.displayName="Button",f.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},shape:{defaultValue:null,description:"",name:"shape",required:!1,type:{name:"enum",value:[{value:'"circle"'},{value:'"square"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},iconOnly:{defaultValue:null,description:"",name:"iconOnly",required:!1,type:{name:"boolean"}},hasLeftIcon:{defaultValue:null,description:"",name:"hasLeftIcon",required:!1,type:{name:"boolean"}},hasRightIcon:{defaultValue:null,description:"",name:"hasRightIcon",required:!1,type:{name:"boolean"}},activeOutline:{defaultValue:null,description:"",name:"activeOutline",required:!1,type:{name:"enum",value:[{value:'"bold"'},{value:'"light"'}]}},pending:{defaultValue:null,description:"",name:"pending",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"reset"'},{value:'"submit"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{f as B}; diff --git a/assets/Button.stories-dbcf530f.js b/assets/Button.stories-2f450a0d.js similarity index 90% rename from assets/Button.stories-dbcf530f.js rename to assets/Button.stories-2f450a0d.js index e9df49edd..243ac327b 100644 --- a/assets/Button.stories-dbcf530f.js +++ b/assets/Button.stories-2f450a0d.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-69eee039.js";import{B as L}from"./Badge-8fcefbf1.js";import{B as O}from"./Box-8ffdd394.js";import{S as c,a as j}from"./WarningIcon-b42ff4ac.js";import{B as _}from"./Button-cbaba6d6.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";const Q={title:"Components/Button",component:_},e={args:{as:"a",disabled:!1,href:"#",label:"Click me",size:"md",variant:"glass"}},a={args:{as:"a",disabled:!0,href:"#",label:"Click me",size:"md",variant:"glass"}},s={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},o={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},r={args:{disabled:!1,label:"Click me",leftIcon:c,onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},n={args:{disabled:!1,label:i.jsxs(O,{gap:"1",children:["Click me",i.jsx(L,{value:"3"})]}),onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},l={args:{as:"a",href:"/wallet",label:"Click me",leftIcon:c,size:"md"}};var t,m,d;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as i}from"./jsx-runtime-1caa8f64.js";import{B as L}from"./Badge-d4166747.js";import{B as O}from"./Box-e4a86556.js";import{S as c,a as j}from"./WarningIcon-c4815a2d.js";import{B as _}from"./Button-e8455a66.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";const Q={title:"Components/Button",component:_},e={args:{as:"a",disabled:!1,href:"#",label:"Click me",size:"md",variant:"glass"}},a={args:{as:"a",disabled:!0,href:"#",label:"Click me",size:"md",variant:"glass"}},s={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},o={args:{disabled:!1,label:"Click me",onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},r={args:{disabled:!1,label:"Click me",leftIcon:c,onClick:()=>console.log("Clicked!"),rightIcon:j,size:"md",variant:"glass"}},n={args:{disabled:!1,label:i.jsxs(O,{gap:"1",children:["Click me",i.jsx(L,{value:"3"})]}),onClick:()=>console.log("Clicked!"),leftIcon:c,size:"md",variant:"glass"}},l={args:{as:"a",href:"/wallet",label:"Click me",leftIcon:c,size:"md"}};var t,m,d;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { as: 'a', disabled: false, @@ -65,4 +65,3 @@ import{j as i}from"./jsx-runtime-69eee039.js";import{B as L}from"./Badge-8fcefbf size: 'md' } }`,...(A=(w=l.parameters)==null?void 0:w.docs)==null?void 0:A.source}}};const T=["LabelOnly","Disabled","WithLeftIcon","WithRightIcon","WithBothIcon","WithCountIcon","AnchorButton"];export{l as AnchorButton,a as Disabled,e as LabelOnly,r as WithBothIcon,n as WithCountIcon,s as WithLeftIcon,o as WithRightIcon,T as __namedExportsOrder,Q as default}; -//# sourceMappingURL=Button.stories-dbcf530f.js.map diff --git a/assets/Button.stories-dbcf530f.js.map b/assets/Button.stories-dbcf530f.js.map deleted file mode 100644 index a0281d78b..000000000 --- a/assets/Button.stories-dbcf530f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Button.stories-dbcf530f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Card-3affd0fc.js b/assets/Card-34bef967.js similarity index 99% rename from assets/Card-3affd0fc.js rename to assets/Card-34bef967.js index 8b243087b..b267ca4a7 100644 --- a/assets/Card-3affd0fc.js +++ b/assets/Card-34bef967.js @@ -1,2 +1 @@ -import{j as d}from"./jsx-runtime-69eee039.js";import{B as c,c as m}from"./Box-8ffdd394.js";import{r as f}from"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import{c as p}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var S=p({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12vr fyvr12uz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nh fyvr12g5 fyvr121h fyvr128t"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const e=f.forwardRef((n,i)=>{const{className:r,children:s,clickable:a,outlined:t,disabled:l,blur:o,width:u="full",...g}=n;return d.jsx(c,{className:m(r,S({clickable:a,outlined:t,disabled:l,blur:o})),background:t?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:u,ref:i,...g,children:s})});try{e.displayName="Card",e.__docgenInfo={description:"",displayName:"Card",props:{clickable:{defaultValue:null,description:"",name:"clickable",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},outlined:{defaultValue:null,description:"",name:"outlined",required:!1,type:{name:"boolean"}},blur:{defaultValue:null,description:"",name:"blur",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as C}; -//# sourceMappingURL=Card-3affd0fc.js.map +import{j as d}from"./jsx-runtime-1caa8f64.js";import{B as c,c as m}from"./Box-e4a86556.js";import{r as f}from"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import{c as p}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var S=p({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12vr fyvr12uz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nh fyvr12g5 fyvr121h fyvr128t"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const e=f.forwardRef((n,i)=>{const{className:r,children:s,clickable:a,outlined:t,disabled:l,blur:o,width:u="full",...g}=n;return d.jsx(c,{className:m(r,S({clickable:a,outlined:t,disabled:l,blur:o})),background:t?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:u,ref:i,...g,children:s})});try{e.displayName="Card",e.__docgenInfo={description:"",displayName:"Card",props:{clickable:{defaultValue:null,description:"",name:"clickable",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},outlined:{defaultValue:null,description:"",name:"outlined",required:!1,type:{name:"boolean"}},blur:{defaultValue:null,description:"",name:"blur",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as C}; diff --git a/assets/Card-3affd0fc.js.map b/assets/Card-3affd0fc.js.map deleted file mode 100644 index da6aec252..000000000 --- a/assets/Card-3affd0fc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Card-3affd0fc.js","sources":["../../src/components/Card/Card.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ElementType, forwardRef } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '../Box'\n\nimport * as styles from './styles.css'\n\ntype CardProps = styles.CardVariants\n\nexport const Card: PolymorphicComponent = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const {\n className,\n children,\n clickable,\n outlined,\n disabled,\n blur,\n width = 'full',\n ...rest\n } = props\n return (\n \n {children}\n \n )\n }\n)\n"],"names":["Card","forwardRef","props","ref","className","children","clickable","outlined","disabled","blur","width","rest","jsx","Box","clsx","styles.cardVariants"],"mappings":"6jBAcO,MAAAA,EAAAC,EAAA,WAAqD,CAAAC,EAAAC,IAAA,CAKxD,KAAA,CAAM,UAAAC,EACJ,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,KAAAC,EACA,MAAAC,EAAA,OACQ,GAAAC,CACL,EAAAT,EAEL,OAAAU,EAAA,IACEC,EAAC,CAAA,UAAAC,EACYV,EACTW,EAAA,CAAA,UAAAT,EAAA,SAAAC,EAAA,SAAAC,EAAA,KAAAC,CAAA,CAAA,CAC2D,EAC7D,WAAAF,EAAA,cAAA,sBACuC,SAAA,SAC9B,aAAA,KACI,QAAA,IACL,MAAAG,EACR,IAAAP,EACA,GAAAQ,EACI,SAAAN,CAEH,CAAA,CACH,CAGN"} \ No newline at end of file diff --git a/assets/Card.stories-540aff70.js b/assets/Card.stories-0f08b673.js similarity index 93% rename from assets/Card.stories-540aff70.js rename to assets/Card.stories-0f08b673.js index fe9706cbb..964e47fd4 100644 --- a/assets/Card.stories-540aff70.js +++ b/assets/Card.stories-0f08b673.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-69eee039.js";import{B as i}from"./Box-8ffdd394.js";import{T as e}from"./Text-cdf53fa8.js";import{C as T}from"./Card-3affd0fc.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const E={title:"Components/Card",component:T},n={args:{children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},t={args:{clickable:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},o={args:{clickable:!0,disabled:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},a={args:{outlined:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}};var c,l,s;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-1caa8f64.js";import{B as i}from"./Box-e4a86556.js";import{T as e}from"./Text-b96ac7e7.js";import{C as T}from"./Card-34bef967.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const E={title:"Components/Card",component:T},n={args:{children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},t={args:{clickable:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},o={args:{clickable:!0,disabled:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}},a={args:{outlined:!0,children:r.jsx(r.Fragment,{children:r.jsxs(i,{flexDirection:"column",children:[r.jsx(e,{variant:"large",color:"text100",children:"Card"}),r.jsx(e,{variant:"normal",color:"text50",children:"Description"})]})})}};var c,l,s;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { children: <> @@ -55,4 +55,3 @@ import{j as r}from"./jsx-runtime-69eee039.js";import{B as i}from"./Box-8ffdd394. } }`,...(j=(D=a.parameters)==null?void 0:D.docs)==null?void 0:j.source}}};const R=["Default","Clickable","Disabled","Outlined"];export{t as Clickable,n as Default,o as Disabled,a as Outlined,R as __namedExportsOrder,E as default}; -//# sourceMappingURL=Card.stories-540aff70.js.map diff --git a/assets/Card.stories-540aff70.js.map b/assets/Card.stories-540aff70.js.map deleted file mode 100644 index a92fffd0b..000000000 --- a/assets/Card.stories-540aff70.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Card.stories-540aff70.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Caveats.stories-c599def9.js b/assets/Caveats.stories-081f3dd6.js similarity index 76% rename from assets/Caveats.stories-c599def9.js rename to assets/Caveats.stories-081f3dd6.js index 196071c66..b51264a65 100644 --- a/assets/Caveats.stories-c599def9.js +++ b/assets/Caveats.stories-081f3dd6.js @@ -1,4 +1,4 @@ -import{M as o}from"./chunk-HLWAVYOI-6982640e.js";import{j as e}from"./jsx-runtime-69eee039.js";import{u as t}from"./index-abfde3b8.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./index-7c191284.js";import"./index-f940c6c3.js";import"./index-ecbee218.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-d37d4223.js";import"./index-356e4a49.js";function r(s){const n=Object.assign({h1:"h1",p:"p",a:"a",pre:"pre",code:"code",h3:"h3"},t(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Caveats"}),` +import{M as o}from"./chunk-HLWAVYOI-927b14e8.js";import{j as e}from"./jsx-runtime-1caa8f64.js";import{u as t}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";function a(s){const n=Object.assign({h1:"h1",p:"p",a:"a",pre:"pre",code:"code",h3:"h3"},t(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Caveats"}),` `,e.jsx(n.h1,{id:"caveats-for-developers",children:"Caveats for Developers"}),` `,e.jsxs(n.p,{children:["Sequence Design System uses ",e.jsx(n.a,{href:"https://vanilla-extract.style/documentation/packages/sprinkles/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vanilla Extract Sprinkles"}),` package to create reusable atomic classes. Atomic classes is a paradigm first created by `,e.jsx(n.a,{href:"https://tailwindcss.com/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Tailwindcss"}),` which create a single css rule per class. @@ -97,5 +97,4 @@ will be included below giving them a higher precedence.`}),` } ) -`})})]})}function l(s={}){const{wrapper:n}=Object.assign({},t(),s.components);return n?e.jsx(n,{...s,children:e.jsx(r,{...s})}):r(s)}const i=()=>{throw new Error("Docs-only story")};i.parameters={docsOnly:!0};const a={title:"Caveats",tags:["stories-mdx"],includeStories:["__page"]};a.parameters=a.parameters||{};a.parameters.docs={...a.parameters.docs||{},page:l};const y=["__page"];export{y as __namedExportsOrder,i as __page,a as default}; -//# sourceMappingURL=Caveats.stories-c599def9.js.map +`})})]})}function l(s={}){const{wrapper:n}=Object.assign({},t(),s.components);return n?e.jsx(n,{...s,children:e.jsx(a,{...s})}):a(s)}const i=()=>{throw new Error("Docs-only story")};i.parameters={docsOnly:!0};const r={title:"Caveats",tags:["stories-mdx"],includeStories:["__page"]};r.parameters=r.parameters||{};r.parameters.docs={...r.parameters.docs||{},page:l};const b=["__page"];export{b as __namedExportsOrder,i as __page,r as default}; diff --git a/assets/Caveats.stories-c599def9.js.map b/assets/Caveats.stories-c599def9.js.map deleted file mode 100644 index 921a39733..000000000 --- a/assets/Caveats.stories-c599def9.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Caveats.stories-c599def9.js","sources":["../../src/docs/Caveats.stories.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs'\n\n\n\n# Caveats for Developers\n\nSequence Design System uses [Vanilla Extract Sprinkles](https://vanilla-extract.style/documentation/packages/sprinkles/) package to create reusable atomic classes.\nAtomic classes is a paradigm first created by [Tailwindcss](https://tailwindcss.com/) which create a single css rule per class.\nThe reusable native of these atomics means that the generated css will be of fixed size and will not grow unless you add your own custom styling rules.\n\neg.\n\n```css\n.pl-1 {\n padding-left: 4px;\n}\n\n.pl-2 {\n padding-left: 8px;\n}\n\n.pos-a {\n position: absolute;\n}\n\n.pos-r {\n position: relative;\n}\n```\n\n### Examples of Breakage\n\nAssuming we have design tokens for `fontSizes` with properties ordered:\n\n```typescript\nexport const fontSizes = {\n xsmall: '0.625rem', // 10px\n small: '0.75rem', // 12px\n normal: '0.875rem', // 14px\n medium: '1rem', // 16px\n large: '1.25rem', // 20px\n xlarge: '1.875rem', // 30px\n}\n```\n\nThe following example will break in unexpected ways\n\n```typescript\nimport { recipe } from '@vanilla-extract/recipes'\n\nimport { atoms } from '~/css'\n\nexport const myStyle = recipe({\n base: [\n atoms({\n fontSize: 'normal',\n }),\n ],\n\n variants: {\n size: {\n xsmall: [\n atoms({\n fontSize: 'xsmall', // Has lower precedence than 'normal' ❌\n }),\n ],\n small: [\n atoms({\n fontSize: 'small', // Has lower precedence than 'normal' ❌\n }),\n ],\n\n medium: [\n atoms({\n fontSize: 'medium', // Has higher precedence than 'normal' ✔\n }),\n ],\n\n large: [\n atoms({\n fontSize: 'large', // Has higher precedence than 'normal' ✔\n }),\n ],\n\n xlarge: [\n atoms({\n fontSize: 'xlarge', // Has higher precedence than 'normal' ✔\n }),\n ],\n },\n },\n})\n```\n\nMixing atoms and non-atomic css rules will be even more dangerous when overlapping properties.\nThis is because atomic classes are always included in the top of the css document and custom styles\nwill be included below giving them a higher precedence.\n\n```typescript\nexport const myStyle = recipe({\n base: {\n fontSize: '1rem'\n },\n\n variants: {\n size: {\n xsmall: [\n atoms({\n fontSize: 'xsmall' // Has lower precedence than base style ❌\n })\n ],\n ...\n }\n }\n)\n\n```\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout","__page","componentMeta","__namedExportsOrder"],"mappings":"sXAKA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,EAAG,IACH,IAAK,MACL,KAAM,OACN,GAAI,IACL,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAoBG,EAAAA,KAAMC,EAAAA,SAAW,CACnC,SAAU,CAAcC,EAAI,IAACC,EAAM,CACjC,MAAO,SACR,CAAA,EAAG;AAAA,EAAmBD,MAAKJ,EAAY,GAAI,CAC1C,GAAI,yBACJ,SAAU,wBACX,CAAA,EAAG;AAAA,EAAmBE,OAAMF,EAAY,EAAG,CAC1C,SAAU,CAAC,+BAA6CI,MAAKJ,EAAY,EAAG,CAC1E,KAAM,kEACN,OAAQ,SACR,IAAK,+BACL,SAAU,2BACX,CAAA,EAAG;AAAA,gDAA4GI,MAAKJ,EAAY,EAAG,CAClI,KAAM,2BACN,OAAQ,SACR,IAAK,+BACL,SAAU,aACX,CAAA,EAAG;AAAA,wJAAqM,CAC1M,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,EAAG,CACzC,SAAU,KACX,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,IAAK,CAC3C,SAAuBI,EAAAA,IAAKJ,EAAY,KAAM,CAC5C,UAAW,eACX,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACF,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,GAAI,CAC1C,GAAI,uBACJ,SAAU,sBACX,CAAA,EAAG;AAAA,EAAmBE,OAAMF,EAAY,EAAG,CAC1C,SAAU,CAAC,sCAAoDI,MAAKJ,EAAY,KAAM,CACpF,SAAU,WACX,CAAA,EAAG,2BAA2B,CA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AAID,EAAkBC,CAAK,CAC9B,CAEY,MAACS,EAAS,IAAM,CAC1B,MAAM,IAAI,MAAM,iBAAiB,CACnC,EACAA,EAAO,WAAa,CAClB,SAAU,EACZ,EACK,MAACC,EAAgB,CACpB,MAAO,UACP,KAAM,CAAC,aAAa,EACpB,eAAgB,CAAC,QAAQ,CAC3B,EACAA,EAAc,WAAaA,EAAc,YAAc,GACvDA,EAAc,WAAW,KAAO,CAC9B,GAAIA,EAAc,WAAW,MAAQ,GACrC,KAAMH,CACR,EAC4B,MAAAI,EAAA,CAAA,QAAA"} \ No newline at end of file diff --git a/assets/Checkbox-f0cda0fe.js b/assets/Checkbox-9100b7bb.js similarity index 89% rename from assets/Checkbox-f0cda0fe.js rename to assets/Checkbox-9100b7bb.js index 18225ca18..ddc9532b6 100644 --- a/assets/Checkbox-f0cda0fe.js +++ b/assets/Checkbox-9100b7bb.js @@ -1,2 +1 @@ -import{j as b}from"./jsx-runtime-69eee039.js";import{b as P,$ as j,a as g,d as x}from"./index-416e5a7a.js";import{r as a}from"./index-7c191284.js";import{a as I,c as _}from"./index-006d63ff.js";import{$ as z}from"./index-555f5aa0.js";import{$ as S}from"./index-3842af66.js";import{$ as L}from"./index-cd5c74af.js";import{F as D}from"./Field-0c069ee0.js";import{h as M}from"./WarningIcon-b42ff4ac.js";/* empty css */import"./atoms-c7901a03.js";import{c as q}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const V="Checkbox",[B,ie]=P(V),[F,O]=B(V),A=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,name:c,checked:s,defaultChecked:r,required:f,disabled:d,value:i="on",onCheckedChange:v,...k}=e,[o,$]=a.useState(null),R=j(l,n=>$(n)),y=a.useRef(!1),C=o?!!o.closest("form"):!0,[p=!1,h]=I({prop:s,defaultProp:r,onChange:v}),N=a.useRef(p);return a.useEffect(()=>{const n=o==null?void 0:o.form;if(n){const m=()=>h(N.current);return n.addEventListener("reset",m),()=>n.removeEventListener("reset",m)}},[o,h]),a.createElement(F,{scope:t,state:p,disabled:d},a.createElement(g.button,x({type:"button",role:"checkbox","aria-checked":u(p)?"mixed":p,"aria-required":f,"data-state":w(p),"data-disabled":d?"":void 0,disabled:d,value:i},k,{ref:R,onKeyDown:_(e.onKeyDown,n=>{n.key==="Enter"&&n.preventDefault()}),onClick:_(e.onClick,n=>{h(m=>u(m)?!0:!m),C&&(y.current=n.isPropagationStopped(),y.current||n.stopPropagation())})})),C&&a.createElement(T,{control:o,bubbles:!y.current,name:c,value:i,checked:p,required:f,disabled:d,style:{transform:"translateX(-100%)"}}))}),K="CheckboxIndicator",H=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,forceMount:c,...s}=e,r=O(K,t);return a.createElement(L,{present:c||u(r.state)||r.state===!0},a.createElement(g.span,x({"data-state":w(r.state),"data-disabled":r.disabled?"":void 0},s,{ref:l,style:{pointerEvents:"none",...e.style}})))}),T=e=>{const{control:l,checked:t,bubbles:c=!0,...s}=e,r=a.useRef(null),f=z(t),d=S(l);return a.useEffect(()=>{const i=r.current,v=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(v,"checked").set;if(f!==t&&o){const $=new Event("click",{bubbles:c});i.indeterminate=u(t),o.call(i,u(t)?!1:t),i.dispatchEvent($)}},[f,t,c]),a.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:u(t)?!1:t},s,{tabIndex:-1,ref:r,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function u(e){return e==="indeterminate"}function w(e){return u(e)?"indeterminate":e?"checked":"unchecked"}const X=A,G=H;var J=q({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11h0 fyvr11ko fyvr11jg fyvr12vt fyvr12vr fyvr12vj fyvr12uz fyvr12uv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Q=q({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rt fyvr11rz",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const U=({size:e="sm"})=>b.jsx(G,{className:Q({size:e}),children:b.jsx(M,{size:e})}),E=a.forwardRef((e,l)=>{const{disabled:t=!1,id:c,name:s,label:r="",labelLocation:f="left",size:d="sm",...i}=e;return b.jsx(D,{disabled:t,display:"flex",id:c??s,label:r,labelLocation:f,whiteSpace:"nowrap",children:b.jsx(X,{className:J({size:d}),disabled:t,id:c??s,name:s,ref:l,...i,children:b.jsx(U,{})})})});try{E.displayName="Checkbox",E.__docgenInfo={description:"",displayName:"Checkbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:{value:"sm"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{E as C}; -//# sourceMappingURL=Checkbox-f0cda0fe.js.map +import{j as b}from"./jsx-runtime-1caa8f64.js";import{a as P,$ as j,c as g,d as x}from"./index-bff3e5ca.js";import{r as a}from"./index-1cdf6ce0.js";import{a as I,c as _}from"./index-ed6c0076.js";import{$ as z}from"./index-b65dbec4.js";import{$ as S}from"./index-0d95b182.js";import{$ as L}from"./index-5a7be88c.js";import{F as D}from"./Field-cc1005d3.js";import{h as M}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";import{c as q}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const V="Checkbox",[B,ie]=P(V),[F,O]=B(V),A=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,name:c,checked:s,defaultChecked:r,required:f,disabled:d,value:i="on",onCheckedChange:v,...k}=e,[o,$]=a.useState(null),R=j(l,n=>$(n)),y=a.useRef(!1),C=o?!!o.closest("form"):!0,[p=!1,h]=I({prop:s,defaultProp:r,onChange:v}),N=a.useRef(p);return a.useEffect(()=>{const n=o==null?void 0:o.form;if(n){const m=()=>h(N.current);return n.addEventListener("reset",m),()=>n.removeEventListener("reset",m)}},[o,h]),a.createElement(F,{scope:t,state:p,disabled:d},a.createElement(g.button,x({type:"button",role:"checkbox","aria-checked":u(p)?"mixed":p,"aria-required":f,"data-state":w(p),"data-disabled":d?"":void 0,disabled:d,value:i},k,{ref:R,onKeyDown:_(e.onKeyDown,n=>{n.key==="Enter"&&n.preventDefault()}),onClick:_(e.onClick,n=>{h(m=>u(m)?!0:!m),C&&(y.current=n.isPropagationStopped(),y.current||n.stopPropagation())})})),C&&a.createElement(T,{control:o,bubbles:!y.current,name:c,value:i,checked:p,required:f,disabled:d,style:{transform:"translateX(-100%)"}}))}),K="CheckboxIndicator",H=a.forwardRef((e,l)=>{const{__scopeCheckbox:t,forceMount:c,...s}=e,r=O(K,t);return a.createElement(L,{present:c||u(r.state)||r.state===!0},a.createElement(g.span,x({"data-state":w(r.state),"data-disabled":r.disabled?"":void 0},s,{ref:l,style:{pointerEvents:"none",...e.style}})))}),T=e=>{const{control:l,checked:t,bubbles:c=!0,...s}=e,r=a.useRef(null),f=z(t),d=S(l);return a.useEffect(()=>{const i=r.current,v=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(v,"checked").set;if(f!==t&&o){const $=new Event("click",{bubbles:c});i.indeterminate=u(t),o.call(i,u(t)?!1:t),i.dispatchEvent($)}},[f,t,c]),a.createElement("input",x({type:"checkbox","aria-hidden":!0,defaultChecked:u(t)?!1:t},s,{tabIndex:-1,ref:r,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function u(e){return e==="indeterminate"}function w(e){return u(e)?"indeterminate":e?"checked":"unchecked"}const X=A,G=H;var J=q({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11h0 fyvr11ko fyvr11jg fyvr12vt fyvr12vr fyvr12vj fyvr12uz fyvr12uv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Q=q({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rt fyvr11rz",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const U=({size:e="sm"})=>b.jsx(G,{className:Q({size:e}),children:b.jsx(M,{size:e})}),E=a.forwardRef((e,l)=>{const{disabled:t=!1,id:c,name:s,label:r="",labelLocation:f="left",size:d="sm",...i}=e;return b.jsx(D,{disabled:t,display:"flex",id:c??s,label:r,labelLocation:f,whiteSpace:"nowrap",children:b.jsx(X,{className:J({size:d}),disabled:t,id:c??s,name:s,ref:l,...i,children:b.jsx(U,{})})})});try{E.displayName="Checkbox",E.__docgenInfo={description:"",displayName:"Checkbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:{value:"sm"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{E as C}; diff --git a/assets/Checkbox-f0cda0fe.js.map b/assets/Checkbox-f0cda0fe.js.map deleted file mode 100644 index 094c20eba..000000000 --- a/assets/Checkbox-f0cda0fe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Checkbox-f0cda0fe.js","sources":["../../node_modules/.pnpm/@radix-ui+react-checkbox@1.0.4_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-checkbox/dist/index.mjs","../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import $1bpvS$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $1bpvS$forwardRef, useState as $1bpvS$useState, useRef as $1bpvS$useRef, useEffect as $1bpvS$useEffect, createElement as $1bpvS$createElement} from \"react\";\nimport {useComposedRefs as $1bpvS$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $1bpvS$createContextScope} from \"@radix-ui/react-context\";\nimport {composeEventHandlers as $1bpvS$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useControllableState as $1bpvS$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {usePrevious as $1bpvS$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {useSize as $1bpvS$useSize} from \"@radix-ui/react-use-size\";\nimport {Presence as $1bpvS$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $1bpvS$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Checkbox\n * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';\nconst [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $1bpvS$createContextScope($e698a72e93240346$var$CHECKBOX_NAME);\nconst [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);\nconst $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/ $1bpvS$forwardRef((props, forwardedRef)=>{\n const { __scopeCheckbox: __scopeCheckbox , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...checkboxProps } = props;\n const [button, setButton] = $1bpvS$useState(null);\n const composedRefs = $1bpvS$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $1bpvS$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n const [checked = false, setChecked] = $1bpvS$useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n const initialCheckedStateRef = $1bpvS$useRef(checked);\n $1bpvS$useEffect(()=>{\n const form = button === null || button === void 0 ? void 0 : button.form;\n if (form) {\n const reset = ()=>setChecked(initialCheckedStateRef.current)\n ;\n form.addEventListener('reset', reset);\n return ()=>form.removeEventListener('reset', reset)\n ;\n }\n }, [\n button,\n setChecked\n ]);\n return /*#__PURE__*/ $1bpvS$createElement($e698a72e93240346$var$CheckboxProvider, {\n scope: __scopeCheckbox,\n state: checked,\n disabled: disabled\n }, /*#__PURE__*/ $1bpvS$createElement($1bpvS$Primitive.button, $1bpvS$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,\n \"aria-required\": required,\n \"data-state\": $e698a72e93240346$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, checkboxProps, {\n ref: composedRefs,\n onKeyDown: $1bpvS$composeEventHandlers(props.onKeyDown, (event)=>{\n // According to WAI ARIA, Checkboxes don't activate on enter keypress\n if (event.key === 'Enter') event.preventDefault();\n }),\n onClick: $1bpvS$composeEventHandlers(props.onClick, (event)=>{\n setChecked((prevChecked)=>$e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked\n );\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect checkbox updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $1bpvS$createElement($e698a72e93240346$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($e698a72e93240346$export$48513f6b9f8ce62d, {\n displayName: $e698a72e93240346$var$CHECKBOX_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CheckboxIndicator\n * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';\nconst $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/ $1bpvS$forwardRef((props, forwardedRef)=>{\n const { __scopeCheckbox: __scopeCheckbox , forceMount: forceMount , ...indicatorProps } = props;\n const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);\n return /*#__PURE__*/ $1bpvS$createElement($1bpvS$Presence, {\n present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true\n }, /*#__PURE__*/ $1bpvS$createElement($1bpvS$Primitive.span, $1bpvS$babelruntimehelpersesmextends({\n \"data-state\": $e698a72e93240346$var$getState(context.state),\n \"data-disabled\": context.disabled ? '' : undefined\n }, indicatorProps, {\n ref: forwardedRef,\n style: {\n pointerEvents: 'none',\n ...props.style\n }\n })));\n});\n/*#__PURE__*/ Object.assign($e698a72e93240346$export$59aad738f51d1c05, {\n displayName: $e698a72e93240346$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $e698a72e93240346$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $1bpvS$useRef(null);\n const prevChecked = $1bpvS$usePrevious(checked);\n const controlSize = $1bpvS$useSize(control); // Bubble checked change to parents (e.g form change event)\n $1bpvS$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);\n setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $1bpvS$createElement(\"input\", $1bpvS$babelruntimehelpersesmextends({\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $e698a72e93240346$var$isIndeterminate(checked) {\n return checked === 'indeterminate';\n}\nfunction $e698a72e93240346$var$getState(checked) {\n return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\nconst $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;\nconst $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;\n\n\n\n\nexport {$e698a72e93240346$export$b566c4ff5488ea01 as createCheckboxScope, $e698a72e93240346$export$48513f6b9f8ce62d as Checkbox, $e698a72e93240346$export$59aad738f51d1c05 as CheckboxIndicator, $e698a72e93240346$export$be92b6f5f03c0fe9 as Root, $e698a72e93240346$export$adb584737d712b70 as Indicator};\n//# sourceMappingURL=index.mjs.map\n","import * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { forwardRef, Ref } from 'react'\n\nimport { Field, FieldProps } from '~/components/Field'\nimport { CheckmarkIcon } from '~/icons'\n\nimport {\n checkboxVariants,\n CheckboxVariants,\n indicatorVariants,\n IndicatorVariants,\n} from './styles.css'\n\nexport type CheckboxProps = FieldProps &\n CheckboxVariants &\n CheckboxPrimitive.CheckboxProps & {\n disabled?: boolean\n id?: string\n }\n\ntype IndicatorProps = IndicatorVariants & {}\n\nconst Indicator = ({ size = 'sm' }: IndicatorProps) => (\n \n \n \n)\n\nexport const Checkbox = forwardRef(\n (props: CheckboxProps, ref: Ref) => {\n const {\n disabled = false,\n id,\n name,\n label = '',\n labelLocation = 'left',\n size = 'sm',\n ...rest\n } = props\n\n return (\n \n \n \n \n \n )\n }\n)\n"],"names":["$e698a72e93240346$var$CHECKBOX_NAME","$e698a72e93240346$var$createCheckboxContext","$e698a72e93240346$export$b566c4ff5488ea01","$1bpvS$createContextScope","$e698a72e93240346$var$CheckboxProvider","$e698a72e93240346$var$useCheckboxContext","$e698a72e93240346$export$48513f6b9f8ce62d","$1bpvS$forwardRef","props","forwardedRef","__scopeCheckbox","name","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","checkboxProps","button","setButton","$1bpvS$useState","composedRefs","$1bpvS$useComposedRefs","node","hasConsumerStoppedPropagationRef","$1bpvS$useRef","isFormControl","checked","setChecked","$1bpvS$useControllableState","initialCheckedStateRef","$1bpvS$useEffect","form","reset","$1bpvS$createElement","$1bpvS$Primitive","$1bpvS$babelruntimehelpersesmextends","$e698a72e93240346$var$isIndeterminate","$e698a72e93240346$var$getState","$1bpvS$composeEventHandlers","event","prevChecked","$e698a72e93240346$var$BubbleInput","$e698a72e93240346$var$INDICATOR_NAME","$e698a72e93240346$export$59aad738f51d1c05","forceMount","indicatorProps","context","$1bpvS$Presence","control","bubbles","inputProps","ref","$1bpvS$usePrevious","controlSize","$1bpvS$useSize","input","inputProto","$e698a72e93240346$export$be92b6f5f03c0fe9","$e698a72e93240346$export$adb584737d712b70","Indicator","size","jsx","CheckboxPrimitive.Indicator","indicatorVariants","CheckmarkIcon","Checkbox","forwardRef","id","label","labelLocation","rest","Field","CheckboxPrimitive.Root","checkboxVariants"],"mappings":"qhBAuBqG,MAAMA,EAAsC,WAC3I,CAACC,EAA6CC,EAAyC,EAAIC,EAA0BH,CAAmC,EACxJ,CAACI,EAAwCC,CAAwC,EAAIJ,EAA4CD,CAAmC,EACpKM,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,gBAAiBC,EAAkB,KAAMC,EAAO,QAASC,EAAc,eAAgBC,EAAiB,SAAUC,EAAW,SAAUC,EAAW,MAAOC,EAAQ,KAAO,gBAAiBC,EAAkB,GAAGC,CAAe,EAAGV,EAClO,CAACW,EAAQC,CAAS,EAAIC,EAAe,SAAC,IAAI,EAC1CC,EAAeC,EAAuBd,EAAee,GAAOJ,EAAUI,CAAI,CACpF,EACUC,EAAmCC,SAAc,EAAK,EACtDC,EAAgBR,EAAS,EAAQA,EAAO,QAAQ,MAAM,EAAK,GAC3D,CAACS,EAAU,GAAOC,CAAU,EAAIC,EAA4B,CAC9D,KAAMlB,EACN,YAAaC,EACb,SAAUI,CAClB,CAAK,EACKc,EAAyBL,SAAcE,CAAO,EACpDI,OAAAA,EAAAA,U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AsCV,EAAS,CACpD,OAAOA,IAAY,eACvB,CACA,SAASW,EAA+BX,EAAS,CAC7C,OAAOU,EAAsCV,CAAO,EAAI,gBAAkBA,EAAU,UAAY,WACpG,CACA,MAAM+B,EAA4CrD,EAC5CsD,EAA4Cf,4hBCjJlD,MAAAgB,EAAA,CAAA,CAAA,KAAAC,EAAA,IAAA,IAAAC,MAAAC,EAAA,CAAA,UAAAC,EAAA,CAAA,KAAAH,CAAA,CAAA,EAAA,SAAAC,EAAA,IAAAG,EAAA,CAAA,KAAAJ,CAAA,CAAA,CAAA,CAAA,EAMOK,EAAAC,EAAA,WAAiB,CAAA5D,EAAA6C,IAAA,CAEpB,KAAA,CAAM,SAAAtC,EAAA,GACO,GAAAsD,EACX,KAAA1D,EACA,MAAA2D,EAAA,GACQ,cAAAC,EAAA,OACQ,KAAAT,EAAA,KACT,GAAAU,CACJ,EAAAhE,EAGL,OAAAuD,EAAA,IACEU,EAAC,CAAA,SAAA1D,EACC,QAAA,OACQ,GAAAsD,GAAA1D,EACE,MAAA2D,EACV,cAAAC,EACA,WAAA,SACW,SAAAR,EAAA,IAEXW,EAAmB,CAAlB,UAAAC,EAAA,CAAA,KAAAb,EAAA,EACqC,SAAA/C,EACpC,GAAAsD,GAAA1D,EACU,KAAAA,EACV,IAAA0C,EACA,GAAAmB,EACI,SAAAT,EAAAA,IAAAF,EAAA,EAAA,CAEO,CAAA,CACb,CAAA,CACF,CAGN","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Checkbox.stories-1a529e4d.js b/assets/Checkbox.stories-1a529e4d.js deleted file mode 100644 index 0cd81b1c9..000000000 --- a/assets/Checkbox.stories-1a529e4d.js +++ /dev/null @@ -1,9 +0,0 @@ -import{C as e}from"./Checkbox-f0cda0fe.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-555f5aa0.js";import"./index-3842af66.js";import"./index-cd5c74af.js";import"./Field-0c069ee0.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./WarningIcon-b42ff4ac.js";const D={title:"Forms/Checkbox",component:e},o={args:{label:"This is the label (CheckmarkIcon is missing)",labelLocation:"right",size:"sm",disabled:!1}};var r,i,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ - args: { - label: 'This is the label (CheckmarkIcon is missing)', - labelLocation: 'right', - size: 'sm', - disabled: false - } -}`,...(t=(i=o.parameters)==null?void 0:i.docs)==null?void 0:t.source}}};const I=["Default"];export{o as Default,I as __namedExportsOrder,D as default}; -//# sourceMappingURL=Checkbox.stories-1a529e4d.js.map diff --git a/assets/Checkbox.stories-1a529e4d.js.map b/assets/Checkbox.stories-1a529e4d.js.map deleted file mode 100644 index 27dcbe6e4..000000000 --- a/assets/Checkbox.stories-1a529e4d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Checkbox.stories-1a529e4d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"} \ No newline at end of file diff --git a/assets/Checkbox.stories-376061a5.js b/assets/Checkbox.stories-376061a5.js new file mode 100644 index 000000000..661774bf1 --- /dev/null +++ b/assets/Checkbox.stories-376061a5.js @@ -0,0 +1,8 @@ +import{C as e}from"./Checkbox-9100b7bb.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-b65dbec4.js";import"./index-0d95b182.js";import"./index-5a7be88c.js";import"./Field-cc1005d3.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./WarningIcon-c4815a2d.js";const D={title:"Forms/Checkbox",component:e},o={args:{label:"This is the label (CheckmarkIcon is missing)",labelLocation:"right",size:"sm",disabled:!1}};var r,i,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ + args: { + label: 'This is the label (CheckmarkIcon is missing)', + labelLocation: 'right', + size: 'sm', + disabled: false + } +}`,...(t=(i=o.parameters)==null?void 0:i.docs)==null?void 0:t.source}}};const I=["Default"];export{o as Default,I as __namedExportsOrder,D as default}; diff --git a/assets/Collapsible-6e2d6f0b.js.map b/assets/Collapsible-6e2d6f0b.js.map deleted file mode 100644 index 375ef6676..000000000 --- a/assets/Collapsible-6e2d6f0b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Collapsible-6e2d6f0b.js","sources":["../../node_modules/.pnpm/@radix-ui+react-collapsible@1.0.3_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-collapsible/dist/index.mjs","../../src/components/Collapsible/Collapsible.tsx"],"sourcesContent":["import $73KQ4$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $73KQ4$forwardRef, createElement as $73KQ4$createElement, useCallback as $73KQ4$useCallback, useState as $73KQ4$useState, useRef as $73KQ4$useRef, useEffect as $73KQ4$useEffect} from \"react\";\nimport {composeEventHandlers as $73KQ4$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createContextScope as $73KQ4$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $73KQ4$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useLayoutEffect as $73KQ4$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {useComposedRefs as $73KQ4$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $73KQ4$Primitive} from \"@radix-ui/react-primitive\";\nimport {Presence as $73KQ4$Presence} from \"@radix-ui/react-presence\";\nimport {useId as $73KQ4$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Collapsible\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$COLLAPSIBLE_NAME = 'Collapsible';\nconst [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $73KQ4$createContextScope($409067139f391064$var$COLLAPSIBLE_NAME);\nconst [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);\nconst $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , open: openProp , defaultOpen: defaultOpen , disabled: disabled , onOpenChange: onOpenChange , ...collapsibleProps } = props;\n const [open = false, setOpen] = $73KQ4$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $73KQ4$createElement($409067139f391064$var$CollapsibleProvider, {\n scope: __scopeCollapsible,\n disabled: disabled,\n contentId: $73KQ4$useId(),\n open: open,\n onOpenToggle: $73KQ4$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ])\n }, /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.div, $73KQ4$babelruntimehelpersesmextends({\n \"data-state\": $409067139f391064$var$getState(open),\n \"data-disabled\": disabled ? '' : undefined\n }, collapsibleProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$6eb0f7ddcda6131f, {\n displayName: $409067139f391064$var$COLLAPSIBLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleTrigger\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$TRIGGER_NAME = 'CollapsibleTrigger';\nconst $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.button, $73KQ4$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": $409067139f391064$var$getState(context.open),\n \"data-disabled\": context.disabled ? '' : undefined,\n disabled: context.disabled\n }, triggerProps, {\n ref: forwardedRef,\n onClick: $73KQ4$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$c135dce7b15bbbdc, {\n displayName: $409067139f391064$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleContent\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CONTENT_NAME = 'CollapsibleContent';\nconst $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { forceMount: forceMount , ...contentProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Presence, {\n present: forceMount || context.open\n }, ({ present: present })=>/*#__PURE__*/ $73KQ4$createElement($409067139f391064$var$CollapsibleContentImpl, $73KQ4$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef,\n present: present\n }))\n );\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$aadde00976f34151, {\n displayName: $409067139f391064$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CollapsibleContentImpl = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , present: present , children: children , ...contentProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = $73KQ4$useState(present);\n const ref = $73KQ4$useRef(null);\n const composedRefs = $73KQ4$useComposedRefs(forwardedRef, ref);\n const heightRef = $73KQ4$useRef(0);\n const height = heightRef.current;\n const widthRef = $73KQ4$useRef(0);\n const width = widthRef.current; // when opening we want it to immediately open to retrieve dimensions\n // when closing we delay `present` to retrieve dimensions before closing\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = $73KQ4$useRef(isOpen);\n const originalStylesRef = $73KQ4$useRef();\n $73KQ4$useEffect(()=>{\n const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false\n );\n return ()=>cancelAnimationFrame(rAF)\n ;\n }, []);\n $73KQ4$useLayoutEffect(()=>{\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n }; // block any animations/transitions so the element renders at its full dimensions\n node.style.transitionDuration = '0s';\n node.style.animationName = 'none'; // get width and height from full dimensions\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width; // kick off any animations/transitions that were originally set up if it isn't the initial mount\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n /**\n * depends on `context.open` because it will change to `false`\n * when a close is triggered but `present` will be `false` on\n * animation end (so when close finishes). This allows us to\n * retrieve the dimensions *before* closing.\n */ }, [\n context.open,\n present\n ]);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.div, $73KQ4$babelruntimehelpersesmextends({\n \"data-state\": $409067139f391064$var$getState(context.open),\n \"data-disabled\": context.disabled ? '' : undefined,\n id: context.contentId,\n hidden: !isOpen\n }, contentProps, {\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : undefined,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : undefined,\n ...props.style\n }\n }), isOpen && children);\n});\n/* -----------------------------------------------------------------------------------------------*/ function $409067139f391064$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $409067139f391064$export$be92b6f5f03c0fe9 = $409067139f391064$export$6eb0f7ddcda6131f;\nconst $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce7b15bbbdc;\nconst $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;\n\n\n\n\nexport {$409067139f391064$export$952b32dcbe73087a as createCollapsibleScope, $409067139f391064$export$6eb0f7ddcda6131f as Collapsible, $409067139f391064$export$c135dce7b15bbbdc as CollapsibleTrigger, $409067139f391064$export$aadde00976f34151 as CollapsibleContent, $409067139f391064$export$be92b6f5f03c0fe9 as Root, $409067139f391064$export$41fb9f06171c75f4 as Trigger, $409067139f391064$export$7c6e2c02157bb7d2 as Content};\n//# sourceMappingURL=index.mjs.map\n","import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'\nimport { clsx } from 'clsx'\nimport { AnimatePresence, motion } from 'framer-motion'\nimport { ReactNode, useState } from 'react'\n\nimport { Text } from '~/components/Text'\nimport { ChevronDownIcon } from '~/icons'\n\nimport { Box, BoxProps } from '../Box'\n\nimport * as styles from './styles.css'\n\nexport { CollapsiblePrimitive }\n\ntype CollapsibleProps = BoxProps &\n CollapsiblePrimitive.CollapsibleProps & {\n label: ReactNode\n }\n\nexport const Collapsible = (props: CollapsibleProps) => {\n const { className, children, defaultOpen, onOpenChange, label, ...rest } =\n props\n const [expanded, toggleExpanded] = useState(defaultOpen)\n\n const handleOpenChange = (open: boolean) => {\n toggleExpanded(open)\n onOpenChange?.(open)\n }\n\n return (\n \n \n \n \n {label}\n \n \n \n \n \n \n {expanded && (\n \n \n {children}\n \n \n )}\n \n \n \n )\n}\n"],"names":["$409067139f391064$var$COLLAPSIBLE_NAME","$409067139f391064$var$createCollapsibleContext","$409067139f391064$export$952b32dcbe73087a","$73KQ4$createContextScope","$409067139f391064$var$CollapsibleProvider","$409067139f391064$var$useCollapsibleContext","$409067139f391064$export$6eb0f7ddcda6131f","$73KQ4$forwardRef","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","$73KQ4$useControllableState","$73KQ4$createElement","$73KQ4$useId","$73KQ4$useCallback","prevOpen","$73KQ4$Primitive","$73KQ4$babelruntimehelpersesmextends","$409067139f391064$var$getState","$409067139f391064$var$TRIGGER_NAME","$409067139f391064$export$c135dce7b15bbbdc","triggerProps","context","$73KQ4$composeEventHandlers","$409067139f391064$var$CONTENT_NAME","$409067139f391064$export$aadde00976f34151","forceMount","contentProps","$73KQ4$Presence","present","$409067139f391064$var$CollapsibleContentImpl","children","isPresent","setIsPresent","$73KQ4$useState","ref","$73KQ4$useRef","composedRefs","$73KQ4$useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","$73KQ4$useEffect","rAF","$73KQ4$useLayoutEffect","node","rect","$409067139f391064$export$be92b6f5f03c0fe9","$409067139f391064$export$41fb9f06171c75f4","$409067139f391064$export$7c6e2c02157bb7d2","Collapsible","className","label","rest","expanded","toggleExpanded","useState","handleOpenChange","jsx","CollapsiblePrimitive.Root","jsxs","Box","motion","clsx","styles.root","styles.COLLAPSED_HEIGHT","CollapsiblePrimitive.Trigger","styles.trigger","Text","ChevronDownIcon","styles.icon","AnimatePresence","CollapsiblePrimitive.Content","styles.content"],"mappings":"6iBAuBqG,MAAMA,EAAyC,cAC9I,CAACC,EAAgDC,EAAyC,EAAIC,EAA0BH,CAAsC,EAC9J,CAACI,EAA2CC,CAA2C,EAAIJ,EAA+CD,CAAsC,EAChLM,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,mBAAoBC,EAAqB,KAAMC,EAAW,YAAaC,EAAc,SAAUC,EAAW,aAAcC,EAAe,GAAGC,CAAgB,EAAKP,EACjK,CAACQ,EAAO,GAAOC,CAAO,EAAIC,EAA4B,CACxD,KAAMP,EACN,YAAaC,EACb,SAAU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AA,CAAA,OAAA7D,EAAA,IAAA,CAAA,EAC6B,QAAA,CAAA,OAAAqD,EAAA,IAAA,CAAA,EACH,WAAA,CAAA,KAAA,SAAA,SAAA,EAAA,EACM,SAAAI,EAAA,IAAAW,EAAA,CAAA,UAAAC,GAAA,MAAA,SAAA,CAEY,CAAA,CAC1D,EAAA,EACFZ,EAAAA,IAAAa,EAAA,CAAA,SAAAjB,GAAAI,EAAA,IAGIc,EAAsB,CAArB,UAAAC,EACmB,QAAA,GACX,WAAA,GACG,SAAAf,EAAA,IAEVI,EAAA,IAAQ,CAAP,QAAA,CAAA,QAAA7D,EAAA,EAAA,CAAA,EACyC,QAAA,CAAA,QAAA,CAAA,EAClB,KAAA,CAAA,QAAA,CAAA,EACH,WAAA,CAAA,KAAA,UAAA,SAAA,EAAA,EAC0B,SAAA0B,CAE5C,CAAA,CACH,CAAA,EAAA,CAGN,CAAA,CAAA,CACF,CAAA,CAGN","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Collapsible-6e2d6f0b.js b/assets/Collapsible-a5207a5f.js similarity index 97% rename from assets/Collapsible-6e2d6f0b.js rename to assets/Collapsible-a5207a5f.js index ce155a4f6..d64af1006 100644 --- a/assets/Collapsible-6e2d6f0b.js +++ b/assets/Collapsible-a5207a5f.js @@ -1,2 +1 @@ -import{j as o}from"./jsx-runtime-69eee039.js";import{b as M,a as C,d as p,$ as _}from"./index-416e5a7a.js";import{r as e}from"./index-7c191284.js";import{a as T,c as B,$ as E}from"./index-006d63ff.js";import{$ as I}from"./index-cd5c74af.js";import{$ as W}from"./index-8f163998.js";import{B as w,c as j}from"./Box-8ffdd394.js";import{T as O}from"./Text-cdf53fa8.js";import{i as P}from"./WarningIcon-b42ff4ac.js";/* empty css */import"./atoms-c7901a03.js";import{m as V}from"./motion-cc45ae8c.js";import{A}from"./index-686b454f.js";const N="Collapsible",[D,Se]=M(N),[H,y]=D(N),z=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,open:i,defaultOpen:n,disabled:d,onOpenChange:l,...u}=t,[c=!1,g]=T({prop:i,defaultProp:n,onChange:l});return e.createElement(H,{scope:a,disabled:d,contentId:W(),open:c,onOpenToggle:e.useCallback(()=>g(f=>!f),[g])},e.createElement(C.div,p({"data-state":v(c),"data-disabled":d?"":void 0},u,{ref:s})))}),X="CollapsibleTrigger",Y=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,...i}=t,n=y(X,a);return e.createElement(C.button,p({type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":v(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled},i,{ref:s,onClick:B(t.onClick,n.onOpenToggle)}))}),k="CollapsibleContent",G=e.forwardRef((t,s)=>{const{forceMount:a,...i}=t,n=y(k,t.__scopeCollapsible);return e.createElement(I,{present:a||n.open},({present:d})=>e.createElement(J,p({},i,{ref:s,present:d})))}),J=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,present:i,children:n,...d}=t,l=y(k,a),[u,c]=e.useState(i),g=e.useRef(null),f=_(s,g),h=e.useRef(0),b=h.current,x=e.useRef(0),F=x.current,S=l.open||u,q=e.useRef(S),m=e.useRef();return e.useEffect(()=>{const r=requestAnimationFrame(()=>q.current=!1);return()=>cancelAnimationFrame(r)},[]),E(()=>{const r=g.current;if(r){m.current=m.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const $=r.getBoundingClientRect();h.current=$.height,x.current=$.width,q.current||(r.style.transitionDuration=m.current.transitionDuration,r.style.animationName=m.current.animationName),c(i)}},[l.open,i]),e.createElement(C.div,p({"data-state":v(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!S},d,{ref:f,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":F?`${F}px`:void 0,...t.style}}),S&&n)});function v(t){return t?"open":"closed"}const K=z,Q=Y,U=G;var L="64px",Z="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",ee="_4j62fl5",ne="_4j62fl0",te="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12uz fyvr11n2";const R=t=>{const{className:s,children:a,defaultOpen:i,onOpenChange:n,label:d,...l}=t,[u,c]=e.useState(i),g=f=>{c(f),n==null||n(f)};return o.jsx(K,{defaultOpen:i,onOpenChange:g,asChild:!0,children:o.jsxs(w,{as:V.div,className:j(s,ne),initial:{height:i?"auto":L},animate:{height:u?"auto":L},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...l,children:[o.jsxs(Q,{className:te,children:[o.jsx(O,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:d}),o.jsx(w,{as:V.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:i?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:o.jsx(P,{className:ee,color:"text50"})})]}),o.jsx(A,{children:u&&o.jsx(U,{className:Z,asChild:!0,forceMount:!0,children:o.jsx(V.div,{initial:{opacity:i?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:a})})})]})})};try{R.displayName="Collapsible",R.__docgenInfo={description:"",displayName:"Collapsible",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}}}}}catch{}export{R as C}; -//# sourceMappingURL=Collapsible-6e2d6f0b.js.map +import{j as o}from"./jsx-runtime-1caa8f64.js";import{a as M,c as C,d as p,$ as _}from"./index-bff3e5ca.js";import{r as e}from"./index-1cdf6ce0.js";import{a as T,c as B,$ as E}from"./index-ed6c0076.js";import{$ as I}from"./index-5a7be88c.js";import{$ as W}from"./index-dad7d30c.js";import{B as w,c as j}from"./Box-e4a86556.js";import{T as O}from"./Text-b96ac7e7.js";import{i as P}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";import{m as V}from"./motion-bbbff89a.js";import{A}from"./index-68ff1be5.js";const N="Collapsible",[D,Se]=M(N),[H,y]=D(N),z=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,open:i,defaultOpen:n,disabled:d,onOpenChange:l,...u}=t,[c=!1,g]=T({prop:i,defaultProp:n,onChange:l});return e.createElement(H,{scope:a,disabled:d,contentId:W(),open:c,onOpenToggle:e.useCallback(()=>g(f=>!f),[g])},e.createElement(C.div,p({"data-state":v(c),"data-disabled":d?"":void 0},u,{ref:s})))}),X="CollapsibleTrigger",Y=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,...i}=t,n=y(X,a);return e.createElement(C.button,p({type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":v(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled},i,{ref:s,onClick:B(t.onClick,n.onOpenToggle)}))}),k="CollapsibleContent",G=e.forwardRef((t,s)=>{const{forceMount:a,...i}=t,n=y(k,t.__scopeCollapsible);return e.createElement(I,{present:a||n.open},({present:d})=>e.createElement(J,p({},i,{ref:s,present:d})))}),J=e.forwardRef((t,s)=>{const{__scopeCollapsible:a,present:i,children:n,...d}=t,l=y(k,a),[u,c]=e.useState(i),g=e.useRef(null),f=_(s,g),h=e.useRef(0),b=h.current,x=e.useRef(0),F=x.current,S=l.open||u,q=e.useRef(S),m=e.useRef();return e.useEffect(()=>{const r=requestAnimationFrame(()=>q.current=!1);return()=>cancelAnimationFrame(r)},[]),E(()=>{const r=g.current;if(r){m.current=m.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const $=r.getBoundingClientRect();h.current=$.height,x.current=$.width,q.current||(r.style.transitionDuration=m.current.transitionDuration,r.style.animationName=m.current.animationName),c(i)}},[l.open,i]),e.createElement(C.div,p({"data-state":v(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!S},d,{ref:f,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":F?`${F}px`:void 0,...t.style}}),S&&n)});function v(t){return t?"open":"closed"}const K=z,Q=Y,U=G;var L="64px",Z="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",ee="_4j62fl5",ne="_4j62fl0",te="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12uz fyvr11n2";const R=t=>{const{className:s,children:a,defaultOpen:i,onOpenChange:n,label:d,...l}=t,[u,c]=e.useState(i),g=f=>{c(f),n==null||n(f)};return o.jsx(K,{defaultOpen:i,onOpenChange:g,asChild:!0,children:o.jsxs(w,{as:V.div,className:j(s,ne),initial:{height:i?"auto":L},animate:{height:u?"auto":L},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...l,children:[o.jsxs(Q,{className:te,children:[o.jsx(O,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:d}),o.jsx(w,{as:V.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:i?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:o.jsx(P,{className:ee,color:"text50"})})]}),o.jsx(A,{children:u&&o.jsx(U,{className:Z,asChild:!0,forceMount:!0,children:o.jsx(V.div,{initial:{opacity:i?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:a})})})]})})};try{R.displayName="Collapsible",R.__docgenInfo={description:"",displayName:"Collapsible",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}}}}}catch{}export{R as C}; diff --git a/assets/Collapsible.stories-12d53b7b.js.map b/assets/Collapsible.stories-12d53b7b.js.map deleted file mode 100644 index b336a53f8..000000000 --- a/assets/Collapsible.stories-12d53b7b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Collapsible.stories-12d53b7b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"} \ No newline at end of file diff --git a/assets/Collapsible.stories-12d53b7b.js b/assets/Collapsible.stories-2f20a8f5.js similarity index 60% rename from assets/Collapsible.stories-12d53b7b.js rename to assets/Collapsible.stories-2f20a8f5.js index b6432a771..25e96368c 100644 --- a/assets/Collapsible.stories-12d53b7b.js +++ b/assets/Collapsible.stories-2f20a8f5.js @@ -1,4 +1,4 @@ -import{j as m}from"./jsx-runtime-69eee039.js";import{T as p}from"./Text-cdf53fa8.js";import{C as i}from"./Collapsible-6e2d6f0b.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-cd5c74af.js";import"./index-8f163998.js";import"./WarningIcon-b42ff4ac.js";import"./motion-cc45ae8c.js";import"./index-686b454f.js";const E={title:"Components/Collapsible",component:i},r={args:{label:"My Heading",children:[1,2,3,4,5].map(o=>m.jsxs(p,{variant:"normal",as:"p",color:"text80",children:["Item ",o]},o))}};var t,e,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as m}from"./jsx-runtime-1caa8f64.js";import{T as p}from"./Text-b96ac7e7.js";import{C as i}from"./Collapsible-a5207a5f.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-5a7be88c.js";import"./index-dad7d30c.js";import"./WarningIcon-c4815a2d.js";import"./motion-bbbff89a.js";import"./index-68ff1be5.js";const E={title:"Components/Collapsible",component:i},r={args:{label:"My Heading",children:[1,2,3,4,5].map(o=>m.jsxs(p,{variant:"normal",as:"p",color:"text80",children:["Item ",o]},o))}};var t,e,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { label: 'My Heading', children: [1, 2, 3, 4, 5].map(x => @@ -6,4 +6,3 @@ import{j as m}from"./jsx-runtime-69eee039.js";import{T as p}from"./Text-cdf53fa8 ) } }`,...(a=(e=r.parameters)==null?void 0:e.docs)==null?void 0:a.source}}};const H=["Default"];export{r as Default,H as __namedExportsOrder,E as default}; -//# sourceMappingURL=Collapsible.stories-12d53b7b.js.map diff --git a/assets/Color-6VNJS4EI-4d3b4cda.js b/assets/Color-6VNJS4EI-4d3b4cda.js deleted file mode 100644 index 5de50ebdb..000000000 --- a/assets/Color-6VNJS4EI-4d3b4cda.js +++ /dev/null @@ -1,2 +0,0 @@ -import{n as M,g as ue,T as Me,F as Ce,h as $e,i as Ne}from"./chunk-HLWAVYOI-6982640e.js";import{R as h,r as b,g as fe}from"./index-7c191284.js";import{_ as Oe,i as J,a as Ie}from"./index-f940c6c3.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-ecbee218.js";import"./index-d37d4223.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},hn=tn;export{tn as ColorControl,hn as default}; -//# sourceMappingURL=Color-6VNJS4EI-4d3b4cda.js.map diff --git a/assets/Color-6VNJS4EI-4d3b4cda.js.map b/assets/Color-6VNJS4EI-4d3b4cda.js.map deleted file mode 100644 index 1233031df..000000000 --- a/assets/Color-6VNJS4EI-4d3b4cda.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Color-6VNJS4EI-4d3b4cda.js","sources":["../../node_modules/.pnpm/react-colorful@5.6.1_react-dom@18.2.0_react@18.2.0/node_modules/react-colorful/dist/index.mjs","../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js","../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js","../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js","../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js","../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js","../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js","../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js","../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js","../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js","../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/throttle.js","../../node_modules/.pnpm/@storybook+blocks@7.5.3_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"+XAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,eAAe,KAAKA,EAAEC,CAAC,IAAI,EAAEA,CAAC,EAAED,EAAEC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,SAASC,EAAE,EAAEH,EAAE,CAAC,GAAS,GAAN,KAAQ,MAAM,CAAE,EAAC,IAAIC,EAAEC,EAAE,EAAE,CAAA,EAAG,EAAE,OAAO,KAAK,CAA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AAaN,CAAI,EAAE,MAAA1M,EAAM,SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file diff --git a/assets/Color-6VNJS4EI-e4549677.js b/assets/Color-6VNJS4EI-e4549677.js new file mode 100644 index 000000000..5b32f2010 --- /dev/null +++ b/assets/Color-6VNJS4EI-e4549677.js @@ -0,0 +1 @@ +import{n as M,g as ue,T as Me,F as Ce,h as $e,i as Ne}from"./chunk-HLWAVYOI-927b14e8.js";import{a as h,r as b,g as fe}from"./index-1cdf6ce0.js";import{_ as Oe,i as J,a as Ie}from"./index-f9318fb5.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},dn=tn;export{tn as ColorControl,dn as default}; diff --git a/assets/Colors.stories-c929d42a.js b/assets/Colors.stories-a3a73200.js similarity index 61% rename from assets/Colors.stories-c929d42a.js rename to assets/Colors.stories-a3a73200.js index 26c617540..8a3bb8e8b 100644 --- a/assets/Colors.stories-c929d42a.js +++ b/assets/Colors.stories-a3a73200.js @@ -1,8 +1,7 @@ -import{M as m,C as i,b as n}from"./chunk-HLWAVYOI-6982640e.js";import{v as s}from"./vars.css-cd686f74.js";/* empty css */import"./atoms-c7901a03.js";import{j as r}from"./jsx-runtime-69eee039.js";import{u as c}from"./index-abfde3b8.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./index-7c191284.js";import"./index-f940c6c3.js";import"./index-ecbee218.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-d37d4223.js";import"./index-356e4a49.js";function a(o){const t=Object.assign({h1:"h1",p:"p",h3:"h3"},c(),o.components);return r.jsxs(r.Fragment,{children:[r.jsx(m,{title:"Design System/Colors"}),` +import{M as m,C as i,b as n}from"./chunk-HLWAVYOI-927b14e8.js";import{v as s}from"./vars.css-cd686f74.js";/* empty css */import"./atoms-c7901a03.js";import{j as r}from"./jsx-runtime-1caa8f64.js";import{u as c}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";function a(o){const t=Object.assign({h1:"h1",p:"p",h3:"h3"},c(),o.components);return r.jsxs(r.Fragment,{children:[r.jsx(m,{title:"Design System/Colors"}),` `,r.jsx(t.h1,{id:"colors",children:"Colors"}),` `,r.jsx(t.p,{children:"Color schemes, scales, accents, and gradients."}),` `,r.jsx(t.h3,{id:"accents",children:"Accents"}),` `,r.jsx(i,{children:r.jsx(n,{title:"Accents",subtitle:"Status Colours",colors:{positive:s.colors.positive,info:s.colors.info,warning:s.colors.warning,negative:s.colors.negative}})}),` `,r.jsx(t.h3,{id:"gradients",children:"Gradients"}),` -`,r.jsxs(i,{children:[r.jsx(n,{title:"Primary Gradient",subtitle:"vars.colors.gradientPrimary",colors:{primary:s.colors.gradientPrimary}}),r.jsx(n,{title:"Primary Gradient",subtitle:"vars.colors.gradientBackdrop",colors:{primary:s.colors.gradientBackdrop}})]})]})}function l(o={}){const{wrapper:t}=Object.assign({},c(),o.components);return t?r.jsx(t,{...o,children:r.jsx(a,{...o})}):a(o)}const p=()=>{throw new Error("Docs-only story")};p.parameters={docsOnly:!0};const e={title:"Design System/Colors",tags:["stories-mdx"],includeStories:["__page"]};e.parameters=e.parameters||{};e.parameters.docs={...e.parameters.docs||{},page:l};const w=["__page"];export{w as __namedExportsOrder,p as __page,e as default}; -//# sourceMappingURL=Colors.stories-c929d42a.js.map +`,r.jsxs(i,{children:[r.jsx(n,{title:"Primary Gradient",subtitle:"vars.colors.gradientPrimary",colors:{primary:s.colors.gradientPrimary}}),r.jsx(n,{title:"Primary Gradient",subtitle:"vars.colors.gradientBackdrop",colors:{primary:s.colors.gradientBackdrop}})]})]})}function l(o={}){const{wrapper:t}=Object.assign({},c(),o.components);return t?r.jsx(t,{...o,children:r.jsx(a,{...o})}):a(o)}const p=()=>{throw new Error("Docs-only story")};p.parameters={docsOnly:!0};const e={title:"Design System/Colors",tags:["stories-mdx"],includeStories:["__page"]};e.parameters=e.parameters||{};e.parameters.docs={...e.parameters.docs||{},page:l};const P=["__page"];export{P as __namedExportsOrder,p as __page,e as default}; diff --git a/assets/Colors.stories-c929d42a.js.map b/assets/Colors.stories-c929d42a.js.map deleted file mode 100644 index 97aba8367..000000000 --- a/assets/Colors.stories-c929d42a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Colors.stories-c929d42a.js","sources":["../../src/docs/design-system/Colors.stories.mdx"],"sourcesContent":["import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs'\n\nimport { vars } from '../../css'\n\n\n\n# Colors\n\nColor schemes, scales, accents, and gradients.\n\n### Accents\n\n\n \n\n\n\n### Gradients\n\n\n \n \n\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","ColorPalette","ColorItem","vars","MDXContent","MDXLayout","__page","componentMeta","__namedExportsOrder"],"mappings":"qfAMA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,GAAI,IACL,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAoBG,EAAAA,KAAMC,EAAAA,SAAW,CACnC,SAAU,CAAcC,EAAI,IAACC,EAAM,CACjC,MAAO,sBACR,CAAA,EAAG;AAAA,EAAmBD,MAAKJ,EAAY,GAAI,CAC1C,GAAI,SACJ,SAAU,QACX,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,EAA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C9B,GAAIA,EAAc,WAAW,MAAQ,GACrC,KAAMH,CACR,EAC4B,MAAAI,EAAA,CAAA,QAAA"} \ No newline at end of file diff --git a/assets/Combination-eaaf64fc.js b/assets/Combination-b274f0b7.js similarity index 94% rename from assets/Combination-eaaf64fc.js rename to assets/Combination-b274f0b7.js index 5f8cc84c4..1f6ffa286 100644 --- a/assets/Combination-eaaf64fc.js +++ b/assets/Combination-b274f0b7.js @@ -1,4 +1,4 @@ -import{r as u}from"./index-7c191284.js";import{$ as de,a as ve,_ as he}from"./index-416e5a7a.js";import{b as Y}from"./index-006d63ff.js";let _=0;function ut(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:V()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:V()),_++,()=>{_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),_--}},[])}function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const B="focusScope.autoFocusOnMount",D="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},it=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[o,S]=u.useState(null),b=Y(c),g=Y(i),f=u.useRef(null),d=de(t,a=>S(a)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let a=function(m){if(h.paused||!o)return;const p=m.target;o.contains(p)?f.current=p:C(f.current,{select:!0})},l=function(m){if(h.paused||!o)return;const p=m.relatedTarget;p!==null&&(o.contains(p)||C(f.current,{select:!0}))},v=function(m){if(document.activeElement===document.body)for(const y of m)y.removedNodes.length>0&&C(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",l);const E=new MutationObserver(v);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",l),E.disconnect()}}},[r,o,h.paused]),u.useEffect(()=>{if(o){Z.add(h);const a=document.activeElement;if(!o.contains(a)){const v=new CustomEvent(B,G);o.addEventListener(B,b),o.dispatchEvent(v),v.defaultPrevented||(me(Ee(ne(o)),{select:!0}),document.activeElement===a&&C(o))}return()=>{o.removeEventListener(B,b),setTimeout(()=>{const v=new CustomEvent(D,G);o.addEventListener(D,g),o.dispatchEvent(v),v.defaultPrevented||C(a??document.body,{select:!0}),o.removeEventListener(D,g),Z.remove(h)},0)}}},[o,b,g,h]);const w=u.useCallback(a=>{if(!n&&!r||h.paused)return;const l=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,v=document.activeElement;if(l&&v){const E=a.currentTarget,[m,p]=pe(E);m&&p?!a.shiftKey&&v===p?(a.preventDefault(),n&&C(m,{select:!0})):a.shiftKey&&v===m&&(a.preventDefault(),n&&C(p,{select:!0})):v===E&&a.preventDefault()}},[n,r,h.paused]);return u.createElement(ve.div,he({tabIndex:-1},s,{ref:d,onKeyDown:w}))});function me(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(C(r,{select:t}),document.activeElement!==n)return}function pe(e){const t=ne(e),n=z(t,e),r=z(t.reverse(),e);return[n,r]}function ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z(e,t){for(const n of e)if(!ge(n,{upTo:t}))return n}function ge(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function be(e){return e instanceof HTMLInputElement&&"select"in e}function C(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&be(e)&&t&&e.select()}}const Z=ye();function ye(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=q(e,t),e.unshift(t)},remove(t){var n;e=q(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function q(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ee(e){return e.filter(t=>t.tagName!=="A")}var Se=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},T=new WeakMap,N=new WeakMap,F={},U=0,re=function(e){return e&&(e.host||re(e.parentNode))},we=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=re(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$e=function(e,t,n,r){var c=we(t,Array.isArray(e)?e:[e]);F[n]||(F[n]=new WeakMap);var i=F[n],s=[],o=new Set,S=new Set(c),b=function(f){!f||o.has(f)||(o.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))g(d);else{var h=d.getAttribute(r),w=h!==null&&h!=="false",a=(T.get(d)||0)+1,l=(i.get(d)||0)+1;T.set(d,a),i.set(d,l),s.push(d),a===1&&w&&N.set(d,!0),l===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}})};return g(t),o.clear(),U++,function(){s.forEach(function(f){var d=T.get(f)-1,h=i.get(f)-1;T.set(f,d),i.set(f,h),d||(N.has(f)||f.removeAttribute(r),N.delete(f)),h||f.removeAttribute(n)}),U--,U||(T=new WeakMap,T=new WeakMap,N=new WeakMap,F={})}},lt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=t||Se(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),$e(r,c,n,"aria-hidden")):function(){return null}},$=function(){return $=Object.assign||function(t){for(var n,r=1,c=arguments.length;r"u")return De;var t=Ue(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},He=ue(),Ke=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` +import{r as u}from"./index-1cdf6ce0.js";import{$ as de,c as ve,_ as he}from"./index-bff3e5ca.js";import{b as Y}from"./index-ed6c0076.js";let _=0;function ut(){u.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:V()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:V()),_++,()=>{_===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),_--}},[])}function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const B="focusScope.autoFocusOnMount",D="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},it=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[o,S]=u.useState(null),b=Y(c),g=Y(i),f=u.useRef(null),d=de(t,a=>S(a)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let a=function(m){if(h.paused||!o)return;const p=m.target;o.contains(p)?f.current=p:C(f.current,{select:!0})},l=function(m){if(h.paused||!o)return;const p=m.relatedTarget;p!==null&&(o.contains(p)||C(f.current,{select:!0}))},v=function(m){if(document.activeElement===document.body)for(const y of m)y.removedNodes.length>0&&C(o)};document.addEventListener("focusin",a),document.addEventListener("focusout",l);const E=new MutationObserver(v);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",l),E.disconnect()}}},[r,o,h.paused]),u.useEffect(()=>{if(o){Z.add(h);const a=document.activeElement;if(!o.contains(a)){const v=new CustomEvent(B,G);o.addEventListener(B,b),o.dispatchEvent(v),v.defaultPrevented||(me(Ee(ne(o)),{select:!0}),document.activeElement===a&&C(o))}return()=>{o.removeEventListener(B,b),setTimeout(()=>{const v=new CustomEvent(D,G);o.addEventListener(D,g),o.dispatchEvent(v),v.defaultPrevented||C(a??document.body,{select:!0}),o.removeEventListener(D,g),Z.remove(h)},0)}}},[o,b,g,h]);const w=u.useCallback(a=>{if(!n&&!r||h.paused)return;const l=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,v=document.activeElement;if(l&&v){const E=a.currentTarget,[m,p]=pe(E);m&&p?!a.shiftKey&&v===p?(a.preventDefault(),n&&C(m,{select:!0})):a.shiftKey&&v===m&&(a.preventDefault(),n&&C(p,{select:!0})):v===E&&a.preventDefault()}},[n,r,h.paused]);return u.createElement(ve.div,he({tabIndex:-1},s,{ref:d,onKeyDown:w}))});function me(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(C(r,{select:t}),document.activeElement!==n)return}function pe(e){const t=ne(e),n=z(t,e),r=z(t.reverse(),e);return[n,r]}function ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z(e,t){for(const n of e)if(!ge(n,{upTo:t}))return n}function ge(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function be(e){return e instanceof HTMLInputElement&&"select"in e}function C(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&be(e)&&t&&e.select()}}const Z=ye();function ye(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=q(e,t),e.unshift(t)},remove(t){var n;e=q(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function q(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ee(e){return e.filter(t=>t.tagName!=="A")}var Se=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},T=new WeakMap,N=new WeakMap,F={},U=0,re=function(e){return e&&(e.host||re(e.parentNode))},we=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=re(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$e=function(e,t,n,r){var c=we(t,Array.isArray(e)?e:[e]);F[n]||(F[n]=new WeakMap);var i=F[n],s=[],o=new Set,S=new Set(c),b=function(f){!f||o.has(f)||(o.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))g(d);else{var h=d.getAttribute(r),w=h!==null&&h!=="false",a=(T.get(d)||0)+1,l=(i.get(d)||0)+1;T.set(d,a),i.set(d,l),s.push(d),a===1&&w&&N.set(d,!0),l===1&&d.setAttribute(n,"true"),w||d.setAttribute(r,"true")}})};return g(t),o.clear(),U++,function(){s.forEach(function(f){var d=T.get(f)-1,h=i.get(f)-1;T.set(f,d),i.set(f,h),d||(N.has(f)||f.removeAttribute(r),N.delete(f)),h||f.removeAttribute(n)}),U--,U||(T=new WeakMap,T=new WeakMap,N=new WeakMap,F={})}},lt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=t||Se(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live]"))),$e(r,c,n,"aria-hidden")):function(){return null}},$=function(){return $=Object.assign||function(t){for(var n,r=1,c=arguments.length;r"u")return De;var t=Ue(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},je=ue(),Ke=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` .`.concat(Te,` { overflow: hidden `).concat(r,`; padding-right: `).concat(o,"px ").concat(r,`; @@ -35,8 +35,7 @@ import{r as u}from"./index-7c191284.js";import{$ as de,a as ve,_ as he}from"./in body { `).concat(Re,": ").concat(o,`px; } -`)},Xe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r,i=u.useMemo(function(){return je(c)},[c]);return u.createElement(He,{styles:Ke(i,!t,c,n?"":"!important")})},K=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return K=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{K=!1}var R=K?{passive:!1}:!1,Ye=function(e){return e.tagName==="TEXTAREA"},ie=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ye(e)&&n[t]==="visible")},Ve=function(e){return ie(e,"overflowY")},Ge=function(e){return ie(e,"overflowX")},J=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=le(e,n);if(r){var c=se(e,n),i=c[1],s=c[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ze=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ze=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},le=function(e,t){return e==="v"?Ve(t):Ge(t)},se=function(e,t){return e==="v"?ze(t):Ze(t)},qe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qe=function(e,t,n,r,c){var i=qe(e,window.getComputedStyle(t).direction),s=i*r,o=n.target,S=t.contains(o),b=!1,g=s>0,f=0,d=0;do{var h=se(e,o),w=h[0],a=h[1],l=h[2],v=a-l-i*w;(w||v)&&le(e,o)&&(f+=v,d+=w),o=o.parentNode}while(!S&&o!==document.body||S&&(t.contains(o)||t===o));return(g&&(c&&f===0||!c&&s>f)||!g&&(c&&d===0||!c&&-s>d))&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ee=function(e){return[e.deltaX,e.deltaY]},te=function(e){return e&&"current"in e?e.current:e},Je=function(e,t){return e[0]===t[0]&&e[1]===t[1]},et=function(e){return` +`)},Xe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r,i=u.useMemo(function(){return He(c)},[c]);return u.createElement(je,{styles:Ke(i,!t,c,n?"":"!important")})},K=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return K=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{K=!1}var R=K?{passive:!1}:!1,Ye=function(e){return e.tagName==="TEXTAREA"},ie=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ye(e)&&n[t]==="visible")},Ve=function(e){return ie(e,"overflowY")},Ge=function(e){return ie(e,"overflowX")},J=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=le(e,n);if(r){var c=se(e,n),i=c[1],s=c[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ze=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ze=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},le=function(e,t){return e==="v"?Ve(t):Ge(t)},se=function(e,t){return e==="v"?ze(t):Ze(t)},qe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qe=function(e,t,n,r,c){var i=qe(e,window.getComputedStyle(t).direction),s=i*r,o=n.target,S=t.contains(o),b=!1,g=s>0,f=0,d=0;do{var h=se(e,o),w=h[0],a=h[1],l=h[2],v=a-l-i*w;(w||v)&&le(e,o)&&(f+=v,d+=w),o=o.parentNode}while(!S&&o!==document.body||S&&(t.contains(o)||t===o));return(g&&(c&&f===0||!c&&s>f)||!g&&(c&&d===0||!c&&-s>d))&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ee=function(e){return[e.deltaX,e.deltaY]},te=function(e){return e&&"current"in e?e.current:e},Je=function(e,t){return e[0]===t[0]&&e[1]===t[1]},et=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},tt=0,k=[];function nt(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(tt++)[0],i=u.useState(function(){return ue()})[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var a=Ce([e.lockRef.current],(e.shards||[]).map(te),!0).filter(Boolean);return a.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),a.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=u.useCallback(function(a,l){if("touches"in a&&a.touches.length===2)return!s.current.allowPinchZoom;var v=L(a),E=n.current,m="deltaX"in a?a.deltaX:E[0]-v[0],p="deltaY"in a?a.deltaY:E[1]-v[1],y,W=a.target,A=Math.abs(m)>Math.abs(p)?"h":"v";if("touches"in a&&A==="h"&&W.type==="range")return!1;var x=J(A,W);if(!x)return!0;if(x?y=A:(y=A==="v"?"h":"v",x=J(A,W)),!x)return!1;if(!r.current&&"changedTouches"in a&&(m||p)&&(r.current=y),!y)return!0;var X=r.current||y;return Qe(X,l,a,X==="h"?m:p,!0)},[]),S=u.useCallback(function(a){var l=a;if(!(!k.length||k[k.length-1]!==i)){var v="deltaY"in l?ee(l):L(l),E=t.current.filter(function(y){return y.name===l.type&&y.target===l.target&&Je(y.delta,v)})[0];if(E&&E.should){l.cancelable&&l.preventDefault();return}if(!E){var m=(s.current.shards||[]).map(te).filter(Boolean).filter(function(y){return y.contains(l.target)}),p=m.length>0?o(l,m[0]):!s.current.noIsolation;p&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(a,l,v,E){var m={name:a,delta:l,target:v,should:E};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(p){return p!==m})},1)},[]),g=u.useCallback(function(a){n.current=L(a),r.current=void 0},[]),f=u.useCallback(function(a){b(a.type,ee(a),a.target,o(a,e.lockRef.current))},[]),d=u.useCallback(function(a){b(a.type,L(a),a.target,o(a,e.lockRef.current))},[]);u.useEffect(function(){return k.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",S,R),document.addEventListener("touchmove",S,R),document.addEventListener("touchstart",g,R),function(){k=k.filter(function(a){return a!==i}),document.removeEventListener("wheel",S,R),document.removeEventListener("touchmove",S,R),document.removeEventListener("touchstart",g,R)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:et(c)}):null,h?u.createElement(Xe,{gapMode:"margin"}):null)}const rt=Le(ce,nt);var fe=u.forwardRef(function(e,t){return u.createElement(I,$({},e,{ref:t,sideCar:rt}))});fe.classNames=I.classNames;const st=fe;export{ut as $,st as a,it as b,lt as h}; -//# sourceMappingURL=Combination-eaaf64fc.js.map +`)},tt=0,k=[];function nt(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(tt++)[0],i=u.useState(function(){return ue()})[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var a=Ce([e.lockRef.current],(e.shards||[]).map(te),!0).filter(Boolean);return a.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),a.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var o=u.useCallback(function(a,l){if("touches"in a&&a.touches.length===2)return!s.current.allowPinchZoom;var v=L(a),E=n.current,m="deltaX"in a?a.deltaX:E[0]-v[0],p="deltaY"in a?a.deltaY:E[1]-v[1],y,W=a.target,A=Math.abs(m)>Math.abs(p)?"h":"v";if("touches"in a&&A==="h"&&W.type==="range")return!1;var x=J(A,W);if(!x)return!0;if(x?y=A:(y=A==="v"?"h":"v",x=J(A,W)),!x)return!1;if(!r.current&&"changedTouches"in a&&(m||p)&&(r.current=y),!y)return!0;var X=r.current||y;return Qe(X,l,a,X==="h"?m:p,!0)},[]),S=u.useCallback(function(a){var l=a;if(!(!k.length||k[k.length-1]!==i)){var v="deltaY"in l?ee(l):L(l),E=t.current.filter(function(y){return y.name===l.type&&y.target===l.target&&Je(y.delta,v)})[0];if(E&&E.should){l.cancelable&&l.preventDefault();return}if(!E){var m=(s.current.shards||[]).map(te).filter(Boolean).filter(function(y){return y.contains(l.target)}),p=m.length>0?o(l,m[0]):!s.current.noIsolation;p&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(a,l,v,E){var m={name:a,delta:l,target:v,should:E};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(p){return p!==m})},1)},[]),g=u.useCallback(function(a){n.current=L(a),r.current=void 0},[]),f=u.useCallback(function(a){b(a.type,ee(a),a.target,o(a,e.lockRef.current))},[]),d=u.useCallback(function(a){b(a.type,L(a),a.target,o(a,e.lockRef.current))},[]);u.useEffect(function(){return k.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",S,R),document.addEventListener("touchmove",S,R),document.addEventListener("touchstart",g,R),function(){k=k.filter(function(a){return a!==i}),document.removeEventListener("wheel",S,R),document.removeEventListener("touchmove",S,R),document.removeEventListener("touchstart",g,R)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:et(c)}):null,h?u.createElement(Xe,{gapMode:"margin"}):null)}const rt=Le(ce,nt);var fe=u.forwardRef(function(e,t){return u.createElement(I,$({},e,{ref:t,sideCar:rt}))});fe.classNames=I.classNames;const st=fe;export{st as $,ut as a,it as b,lt as h}; diff --git a/assets/Combination-eaaf64fc.js.map b/assets/Combination-eaaf64fc.js.map deleted file mode 100644 index 79609482d..000000000 --- a/assets/Combination-eaaf64fc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Combination-eaaf64fc.js","sources":["../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.0.1_@types+react@18.2.38_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.0.4_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs","../../node_modules/.pnpm/aria-hidden@1.2.3/node_modules/aria-hidden/dist/es2015/index.js","../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs","../../node_modules/.pnpm/react-remove-scroll-bar@2.3.4_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../../node_modules/.pnpm/use-callback-ref@1.3.0_@types+react@18.2.38_react@18.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js","../../node_modules/.pnpm/use-callback-ref@1.3.0_@types+react@18.2.38_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js","../../node_modules/.pnpm/use-callback-ref@1.3.0_@types+react@18.2.38_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../../node_modules/.pnpm/use-sidecar@1.1.2_@types+react@18.2.38_react@18.2.0/node_modules/use-sidecar/dist/es2015/medium.js","../../node_modules/.pnpm/use-sidecar@1.1.2_@types+react@18.2.38_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js","../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js","../../node_modules/.pnpm/react-style-singleton@2.2.1_@types+react@18.2.38_react@18.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js","../../node_modules/.pnpm/react-style-singleton@2.2.1_@types+react@18.2.38_react@18.2.0/node_modules/react-style-singleton/dist/es2015/hook.js","../../node_modules/.pnpm/react-style-singleton@2.2.1_@types+react@18.2.38_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.js","../../node_modules/.pnpm/react-remove-scroll-bar@2.3.4_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../../node_modules/.pnpm/react-remove-scroll-bar@2.3.4_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js","../../node_modules/.pnpm/react-remove-scroll@2.5.5_@types+react@18.2.38_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import {useEffect as $1wErz$useEffect} from \"react\";\n\n\n/** Number of components which have requested interest to have focus guards */ let $3db38b7d1fb3fe6a$var$count = 0;\nfunction $3db38b7d1fb3fe6a$export$ac5b58043b79449b(props) {\n $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();\n return props.children;\n}\n/**\n * Injects a pair of focus guards at the edges of the whole DOM tree\n * to ensure `focusin` & `focusout` events can be caught consistently.\n */ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {\n $1wErz$useEffect(()=>{\n var _edgeGuards$, _edgeGuards$2;\n const edgeGuards = document.querySelectorAll('[data-radix-focus-guard]');\n document.body.insertAdjacentElement('afterbegin', (_edgeGuards$ = edgeGuards[0]) !== null && _edgeGuards$ !== void 0 ? _edgeGuards$ : $3db38b7d1fb3fe6a$var$createFocusGuard());\n document.body.insertAdjacentElement('beforeend', (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());\n $3db38b7d1fb3fe6a$var$count++;\n return ()=>{\n if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll('[data-radix-focus-guard]').forEach((node)=>node.remove()\n );\n $3db38b7d1fb3fe6a$var$count--;\n };\n }, []);\n}\nfunction $3db38b7d1fb3fe6a$var$createFocusGuard() {\n const element = document.createElement('span');\n element.setAttribute('data-radix-focus-guard', '');\n element.tabIndex = 0;\n element.style.cssText = 'outline: none; opacity: 0; position: fixed; pointer-events: none';\n return element;\n}\nconst $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 = $3db38b7d1fb3fe6a$export$ac5b58043b79449b;\n\n\n\n\nexport {$3db38b7d1fb3fe6a$export$ac5b58043b79449b as FocusGuards, $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 as Root, $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c as useFocusGuards};\n//# sourceMappingURL=index.mjs.map\n","import $45QHv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $45QHv$forwardRef, useState as $45QHv$useState, useRef as $45QHv$useRef, useEffect as $45QHv$useEffect, useCallback as $45QHv$useCallback, createElement as $45QHv$createElement} from \"react\";\nimport {useComposedRefs as $45QHv$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $45QHv$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $45QHv$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\n\n\n\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';\nconst $d3863c46a17e8a28$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * FocusScope\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME = 'FocusScope';\nconst $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ $45QHv$forwardRef((props, forwardedRef)=>{\n const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;\n const [container1, setContainer] = $45QHv$useState(null);\n const onMountAutoFocus = $45QHv$useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = $45QHv$useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = $45QHv$useRef(null);\n const composedRefs = $45QHv$useComposedRefs(forwardedRef, (node)=>setContainer(node)\n );\n const focusScope = $45QHv$useRef({\n paused: false,\n pause () {\n this.paused = true;\n },\n resume () {\n this.paused = false;\n }\n }).current; // Takes care of trapping focus if focus is moved outside programmatically for example\n $45QHv$useEffect(()=>{\n if (trapped) {\n function handleFocusIn(event) {\n if (focusScope.paused || !container1) return;\n const target = event.target;\n if (container1.contains(target)) lastFocusedElementRef.current = target;\n else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n }\n function handleFocusOut(event) {\n if (focusScope.paused || !container1) return;\n const relatedTarget = event.relatedTarget; // A `focusout` event with a `null` `relatedTarget` will happen in at least two cases:\n //\n // 1. When the user switches app/tabs/windows/the browser itself loses focus.\n // 2. In Google Chrome, when the focused element is removed from the DOM.\n //\n // We let the browser do its thing here because:\n //\n // 1. The browser already keeps a memory of what's focused for when the page gets refocused.\n // 2. In Google Chrome, if we try to focus the deleted focused element (as per below), it\n // throws the CPU to 100%, so we avoid doing anything for this reason here too.\n if (relatedTarget === null) return; // If the focus has moved to an actual legitimate element (`relatedTarget !== null`)\n // that is outside the container, we move focus to the last valid focused element inside.\n if (!container1.contains(relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n } // When the focused element gets removed from the DOM, browsers move focus\n // back to the document.body. In this case, we move focus to the container\n // to keep focus trapped correctly.\n function handleMutations(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations)if (mutation.removedNodes.length > 0) $d3863c46a17e8a28$var$focus(container1);\n }\n document.addEventListener('focusin', handleFocusIn);\n document.addEventListener('focusout', handleFocusOut);\n const mutationObserver = new MutationObserver(handleMutations);\n if (container1) mutationObserver.observe(container1, {\n childList: true,\n subtree: true\n });\n return ()=>{\n document.removeEventListener('focusin', handleFocusIn);\n document.removeEventListener('focusout', handleFocusOut);\n mutationObserver.disconnect();\n };\n }\n }, [\n trapped,\n container1,\n focusScope.paused\n ]);\n $45QHv$useEffect(()=>{\n if (container1) {\n $d3863c46a17e8a28$var$focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container1.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container1.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {\n select: true\n });\n if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);\n }\n }\n return ()=>{\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus); // We hit a react bug (fixed in v17) with focusing in unmount.\n // We need to delay the focus a little to get around it for now.\n // See: https://github.com/facebook/react/issues/17894\n setTimeout(()=>{\n const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container1.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {\n select: true\n });\n // we need to remove the listener after we `dispatchEvent`\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [\n container1,\n onMountAutoFocus,\n onUnmountAutoFocus,\n focusScope\n ]); // Takes care of looping focus (when tabbing whilst at the edges)\n const handleKeyDown = $45QHv$useCallback((event)=>{\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === 'Tab' && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container = event.currentTarget;\n const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);\n const hasTabbableElementsInside = first && last; // we can only wrap focus if we have tabbable edges\n if (!hasTabbableElementsInside) {\n if (focusedElement === container) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(first, {\n select: true\n });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(last, {\n select: true\n });\n }\n }\n }\n }, [\n loop,\n trapped,\n focusScope.paused\n ]);\n return /*#__PURE__*/ $45QHv$createElement($45QHv$Primitive.div, $45QHv$babelruntimehelpersesmextends({\n tabIndex: -1\n }, scopeProps, {\n ref: composedRefs,\n onKeyDown: handleKeyDown\n }));\n});\n/*#__PURE__*/ Object.assign($d3863c46a17e8a28$export$20e40289641fbbb6, {\n displayName: $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Utils\n * -----------------------------------------------------------------------------------------------*/ /**\n * Attempts focusing the first element in a list of candidates.\n * Stops when focus has actually moved.\n */ function $d3863c46a17e8a28$var$focusFirst(candidates, { select: select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates){\n $d3863c46a17e8a28$var$focus(candidate, {\n select: select\n });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\n/**\n * Returns the first and last tabbable elements inside a container.\n */ function $d3863c46a17e8a28$var$getTabbableEdges(container) {\n const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);\n const first = $d3863c46a17e8a28$var$findVisible(candidates, container);\n const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);\n return [\n first,\n last\n ];\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node)=>{\n const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\n/**\n * Returns the first visible element in a list.\n * NOTE: Only checks visibility up to the `container`.\n */ function $d3863c46a17e8a28$var$findVisible(elements, container) {\n for (const element of elements){\n // we stop checking if it's hidden at the `container` level (excluding)\n if (!$d3863c46a17e8a28$var$isHidden(element, {\n upTo: container\n })) return element;\n }\n}\nfunction $d3863c46a17e8a28$var$isHidden(node, { upTo: upTo }) {\n if (getComputedStyle(node).visibility === 'hidden') return true;\n while(node){\n // we stop at `upTo` (excluding it)\n if (upTo !== undefined && node === upTo) return false;\n if (getComputedStyle(node).display === 'none') return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction $d3863c46a17e8a28$var$isSelectableInput(element) {\n return element instanceof HTMLInputElement && 'select' in element;\n}\nfunction $d3863c46a17e8a28$var$focus(element, { select: select = false } = {}) {\n // only focus if that element is focusable\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement; // NOTE: we prevent scrolling on focus, to minimize jarring transitions for users\n element.focus({\n preventScroll: true\n }); // only select if its not the same element, it supports selection and we need to select\n if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();\n }\n}\n/* -------------------------------------------------------------------------------------------------\n * FocusScope stack\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();\nfunction $d3863c46a17e8a28$var$createFocusScopesStack() {\n /** A stack of focus scopes, with the active one at the top */ let stack = [];\n return {\n add (focusScope) {\n // pause the currently active focus scope (at the top of the stack)\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();\n // remove in case it already exists (because we'll re-add it at the top of the stack)\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove (focusScope) {\n var _stack$;\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n (_stack$ = stack[0]) === null || _stack$ === void 0 || _stack$.resume();\n }\n };\n}\nfunction $d3863c46a17e8a28$var$arrayRemove(array, item) {\n const updatedArray = [\n ...array\n ];\n const index = updatedArray.indexOf(item);\n if (index !== -1) updatedArray.splice(index, 1);\n return updatedArray;\n}\nfunction $d3863c46a17e8a28$var$removeLinks(items) {\n return items.filter((item)=>item.tagName !== 'A'\n );\n}\nconst $d3863c46a17e8a28$export$be92b6f5f03c0fe9 = $d3863c46a17e8a28$export$20e40289641fbbb6;\n\n\n\n\nexport {$d3863c46a17e8a28$export$20e40289641fbbb6 as FocusScope, $d3863c46a17e8a28$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n","var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n","export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n","/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n","import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n","import { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return
...
\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });\n}\n","import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n","import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n","import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n","import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n","export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n","import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (props) {\n var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of d) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== document.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n target = target.parentNode;\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n if (isDeltaPositive && ((noOverscroll && availableScroll === 0) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && availableScrollTop === 0) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n","import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(function () { return styleSingleton(); })[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: \"margin\" }) : null));\n}\n","import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n","import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["$3db38b7d1fb3fe6a$var$count","$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c","$1wErz$useEffect","_edgeGuards$","_edgeGuards$2","edgeGuards","$3db38b7d1fb3fe6a$var$createFocusGuard","node","element","$d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT","$d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT","$d3863c46a17e8a28$var$EVENT_OPTIONS","$d3863c46a17e8a28$export$20e40289641fbbb6","$45QHv$forwardRef","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container1","setContainer","$45QHv$useState","onMountAutoFocus","$45QHv$useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","$45QHv$useRef","composedRefs","$45QHv$useComposedRefs","focusScope","$45QHv$useEffect","handleFocusIn","event","target","$d3863c46a17e8a28$var$focus","handleFocusOut","relatedTarget","handleMutations","mutations","mutation","mutationObserver","$d3863c46a17e8a28$var$focusScopesStack","previouslyFocusedElement","mountEvent","$d3863c46a17e8a28$var$focusFirst","$d3863c46a17e8a28$var$removeLinks","$d3863c46a17e8a28$var$getTabbableCandidates","unmountEvent","handleKeyDown","$45QHv$useCallback","isTabKey","focusedElement","container","first","last","$d3863c46a17e8a28$var$getTabbableEdges","$45QHv$createElement","$45QHv$Primitive","$45QHv$babelruntimehelpersesmextends","candidates","select","candidate","$d3863c46a17e8a28$var$findVisible","nodes","walker","isHiddenInput","elements","$d3863c46a17e8a28$var$isHidden","upTo","$d3863c46a17e8a28$var$isSelectableInput","$d3863c46a17e8a28$var$createFocusScopesStack","stack","activeFocusScope","$d3863c46a17e8a28$var$arrayRemove","_stack$","array","item","updatedArray","index","items","getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","correctTargets","parent","targets","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","hideOthers","activeParentNode","__assign","s","i","n","p","__rest","e","t","__spreadArray","to","from","pack","l","ar","zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable","assignRef","ref","value","useCallbackRef","initialValue","callback","useState","useMergeRefs","refs","defaultValue","newValue","ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","SideCar","_a","sideCar","rest","Target","React.createElement","exportSidecar","exported","effectCar","nothing","RemoveScroll","React.forwardRef","parentRef","React.useRef","React.useState","callbacks","setCallbacks","forwardProps","children","className","removeScrollBar","enabled","shards","noIsolation","inert","allowPinchZoom","_b","Container","containerRef","containerProps","React.Fragment","React.cloneElement","React.Children","currentNonce","getNonce","makeStyleTag","tag","nonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style","styleHookSingleton","sheet","styles","isDynamic","React.useEffect","styleSingleton","useStyle","Sheet","dynamic","zeroGap","parse","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth","Style","getStyles","allowRelative","important","gap","RemoveScrollBar","noRelative","noImportant","React.useMemo","passiveSupported","nonPassive","alwaysContainsScroll","elementCanBeScrolled","overflow","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","current","isScrollable","elementCouldBeScrolled","getScrollVariables","d","getVScrollVariables","scrollTop","scrollHeight","clientHeight","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","sourceDelta","noOverscroll","directionFactor","delta","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll","getTouchXY","getDeltaXY","extractRef","deltaCompare","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","shouldPreventQueue","touchStartRef","activeAxis","lastProps","allow_1","shouldCancelEvent","React.useCallback","touch","touchStart","deltaX","deltaY","currentAxis","moveDirection","canBeScrolledInMainDirection","cancelingAxis","shouldPrevent","_event","sourceEvent","shardNodes","shouldStop","shouldCancel","name","should","scrollTouchStart","scrollWheel","scrollTouchMove","inst","ReactRemoveScroll","$epM9y$RemoveScroll"],"mappings":"yIAG+E,IAAIA,EAA8B,EAQ7G,SAASC,IAA4C,CACrDC,EAAAA,UAAiB,IAAI,CACjB,IAAIC,EAAcC,EAClB,MAAMC,EAAa,SAAS,iBAAiB,0BAA0B,EACvE,gBAAS,KAAK,sBAAsB,cAAeF,EAAeE,EAAW,CAAC,KAAO,MAAQF,IAAiB,OAASA,EAAeG,EAAwC,CAAA,EAC9K,SAAS,KAAK,sBAAsB,aAAcF,EAAgBC,EAAW,CAAC,KAAO,MAAQD,IAAkB,OAASA,EAAgBE,EAAwC,CAAA,EAChLN,IACO,IAAI,CACHA,IAAgC,GAAG,SAAS,iBAAiB,0BAA0B,EAAE,QAASO,GAAOA,EAAK,OAAQ,CACtI,EACYP,GACZ,CACK,EAAE,CAAE,CAAA,CACT,CACA,SAASM,GAAyC,CAC9C,MAAME,EAAU,SAAS,cAAc,MAAM,EAC7C,OAAAA,EAAQ,aAAa,yBAA0B,EAAE,EACjDA,EAAQ,SAAW,EACnBA,EAAQ,MAAM,QAAU,mEACjBA,CACX,CCpBA,MAAMC,EAA2C,8BAC3CC,EAA6C,gCAC7CC,EAAsC,CACxC,QAAS,GACT,WAAY,EAChB,EAIMC,GAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,KAAMC,EAAO,GAAQ,QAASC,EAAU,GAAQ,iBAAkBC,EAAuB,mBAAoBC,EAAyB,GAAGC,CAAU,EAAKN,EAC1J,CAACO,EAAYC,CAAY,EAAIC,EAAe,SAAC,IAAI,EACjDC,EAAmBC,EAAsBP,CAAoB,EAC7DQ,EAAqBD,EAAsBN,CAAsB,EACjEQ,EAAwBC,SAAc,IAAI,EAC1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AU,EAChE,SAAS,iBAAiB,aAAcuE,EAAkBvE,CAAU,EAC7D,UAAY,CACf8C,EAAYA,EAAU,OAAO,SAAU4B,EAAM,CAAE,OAAOA,IAASpF,CAAM,CAAE,EACvE,SAAS,oBAAoB,QAASyE,EAAe/D,CAAU,EAC/D,SAAS,oBAAoB,YAAa+D,EAAe/D,CAAU,EACnE,SAAS,oBAAoB,aAAcuE,EAAkBvE,CAAU,CACnF,CACK,EAAE,CAAE,CAAA,EACL,IAAIzD,EAAkBpK,EAAM,gBAAiBwK,EAAQxK,EAAM,MAC3D,OAAQqJ,EAAAA,cAAoByB,EAAAA,SAAgB,KACxCN,EAAQnB,EAAAA,cAAoB8D,EAAO,CAAE,OAAQqD,GAAcC,CAAE,CAAG,CAAA,EAAI,KACpErG,EAAkBf,EAAmB,cAACmE,GAAiB,CAAE,QAAS,QAAU,CAAA,EAAI,IAAI,CAC5F,CC9IA,MAAAxE,GAAeM,GAAcE,GAAWoH,EAAmB,ECC3D,IAAI4B,GAAoB7I,EAAgB,WAAC,SAAU3J,EAAOqH,EAAK,CAAE,OAAQgC,EAAAA,cAAoBK,EAAcxD,EAAS,CAAE,EAAElG,EAAO,CAAE,IAAKqH,EAAK,QAAS2B,GAAS,CAAC,CAAG,CAAE,EACnKwJ,GAAkB,WAAa9I,EAAa,WAC5C,MAAA+I,GAAeD","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]} \ No newline at end of file diff --git a/assets/ControlledTextInput-deea110c.js b/assets/ControlledTextInput-4a33d1f2.js similarity index 99% rename from assets/ControlledTextInput-deea110c.js rename to assets/ControlledTextInput-4a33d1f2.js index d350141e5..ac3d9ed7e 100644 --- a/assets/ControlledTextInput-deea110c.js +++ b/assets/ControlledTextInput-4a33d1f2.js @@ -1,2 +1 @@ -import{j as Ye}from"./jsx-runtime-69eee039.js";import{R as _}from"./index-7c191284.js";import{T as Ft}from"./TextInput-e7a764b0.js";var ae=e=>e.type==="checkbox",re=e=>e instanceof Date,M=e=>e==null;const nt=e=>typeof e=="object";var A=e=>!M(e)&&!Array.isArray(e)&&nt(e)&&!re(e),it=e=>A(e)&&e.target?ae(e.target)?e.target.checked:e.target.value:e,_t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,st=(e,i)=>e.has(_t(i)),qt=e=>{const i=e.constructor&&e.constructor.prototype;return A(i)&&i.hasOwnProperty("isPrototypeOf")},De=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function I(e){let i;const r=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(De&&(e instanceof Blob||e instanceof FileList))&&(r||A(e)))if(i=r?[]:{},!r&&!qt(e))i=e;else for(const n in e)e.hasOwnProperty(n)&&(i[n]=I(e[n]));else return e;return i}var le=e=>Array.isArray(e)?e.filter(Boolean):[],w=e=>e===void 0,c=(e,i,r)=>{if(!i||!A(e))return r;const n=le(i.split(/[,[\].]+?/)).reduce((a,u)=>M(a)?a:a[u],e);return w(n)||n===e?w(e[i])?r:e[i]:n},j=e=>typeof e=="boolean";const me={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},U={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wt=_.createContext(null),Re=()=>_.useContext(wt);var at=(e,i,r,n=!0)=>{const a={defaultValues:i._defaultValues};for(const u in e)Object.defineProperty(a,u,{get:()=>{const d=u;return i._proxyFormState[d]!==U.all&&(i._proxyFormState[d]=!n||U.all),r&&(r[d]=!0),e[d]}});return a},B=e=>A(e)&&!Object.keys(e).length,lt=(e,i,r,n)=>{r(e);const{name:a,...u}=e;return B(u)||Object.keys(u).length>=Object.keys(i).length||Object.keys(u).find(d=>i[d]===(!n||U.all))},ge=e=>Array.isArray(e)?e:[e],ut=(e,i,r)=>!e||!i||e===i||ge(e).some(n=>n&&(r?n===i:n.startsWith(i)||i.startsWith(n)));function Te(e){const i=_.useRef(e);i.current=e,_.useEffect(()=>{const r=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function kt(e){const i=Re(),{control:r=i.control,disabled:n,name:a,exact:u}=e||{},[d,V]=_.useState(r._formState),y=_.useRef(!0),q=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),F=_.useRef(a);return F.current=a,Te({disabled:n,next:v=>y.current&&ut(F.current,v.name,u)&<(v,q.current,r._updateFormState)&&V({...r._formState,...v}),subject:r._subjects.state}),_.useEffect(()=>(y.current=!0,q.current.isValid&&r._updateValid(!0),()=>{y.current=!1}),[r]),at(d,r,q.current,!1)}var z=e=>typeof e=="string",ot=(e,i,r,n,a)=>z(e)?(n&&i.watch.add(e),c(r,e,a)):Array.isArray(e)?e.map(u=>(n&&i.watch.add(u),c(r,u))):(n&&(i.watchAll=!0),r);function Lt(e){const i=Re(),{control:r=i.control,name:n,defaultValue:a,disabled:u,exact:d}=e||{},V=_.useRef(n);V.current=n,Te({disabled:u,subject:r._subjects.values,next:F=>{ut(V.current,F.name,d)&&q(I(ot(V.current,r._names,F.values||r._formValues,!1,a)))}});const[y,q]=_.useState(r._getWatch(n,a));return _.useEffect(()=>r._removeUnmounted()),y}var Me=e=>/^\w*$/.test(e),dt=e=>le(e.replace(/["|']|\]/g,"").split(/\.|\[/));function x(e,i,r){let n=-1;const a=Me(i)?[i]:dt(i),u=a.length,d=u-1;for(;++n{const F=a._options.shouldUnregister||u,v=(p,W)=>{const T=c(a._fields,p);T&&(T._f.mount=W)};if(v(r,!0),F){const p=I(c(a._options.defaultValues,r));x(a._defaultValues,r,p),w(c(a._formValues,r))&&x(a._formValues,r,p)}return()=>{(d?F&&!a._state.action:F)?a.unregister(r):v(r,!1)}},[r,a,d,u]),_.useEffect(()=>{c(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:c(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:V,...j(n)||j(y.disabled)?{disabled:y.disabled||n}:{},onChange:_.useCallback(F=>q.current.onChange({target:{value:it(F),name:r},type:me.CHANGE}),[r]),onBlur:_.useCallback(()=>q.current.onBlur({target:{value:c(a._formValues,r),name:r},type:me.BLUR}),[r,a]),ref:F=>{const v=c(a._fields,r);v&&F&&(v._f.ref={focus:()=>F.focus(),select:()=>F.select(),setCustomValidity:p=>F.setCustomValidity(p),reportValidity:()=>F.reportValidity()})}},formState:y,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(y.errors,r)},isDirty:{enumerable:!0,get:()=>!!c(y.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!c(y.touchedFields,r)},error:{enumerable:!0,get:()=>c(y.errors,r)}})}}const Dt=e=>e.render(At(e));var Rt=(e,i,r,n,a)=>i?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},$e=e=>({isOnSubmit:!e||e===U.onSubmit,isOnBlur:e===U.onBlur,isOnChange:e===U.onChange,isOnAll:e===U.all,isOnTouch:e===U.onTouched}),Ge=(e,i,r)=>!r&&(i.watchAll||i.watch.has(e)||[...i.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const ce=(e,i,r,n)=>{for(const a of r||Object.keys(e)){const u=c(e,a);if(u){const{_f:d,...V}=u;if(d){if(d.refs&&d.refs[0]&&i(d.refs[0],a)&&!n)break;if(d.ref&&i(d.ref,d.name)&&!n)break}else A(V)&&ce(V,i)}}};var Tt=(e,i,r)=>{const n=le(c(e,r));return x(n,"root",i[r]),x(e,r,n),e},Ee=e=>e.type==="file",G=e=>typeof e=="function",ye=e=>{if(!De)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},fe=e=>z(e),Ne=e=>e.type==="radio",pe=e=>e instanceof RegExp;const Ke={value:!1,isValid:!1},Je={value:!0,isValid:!0};var gt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===""?Je:{value:e[0].value,isValid:!0}:Je:Ke}return Ke};const Qe={isValid:!1,value:null};var ct=e=>Array.isArray(e)?e.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,Qe):Qe;function Ze(e,i,r="validate"){if(fe(e)||Array.isArray(e)&&e.every(fe)||j(e)&&!e)return{type:r,message:fe(e)?e:"",ref:i}}var te=e=>A(e)&&!pe(e)?e:{value:e,message:""},et=async(e,i,r,n,a)=>{const{ref:u,refs:d,required:V,maxLength:y,minLength:q,min:F,max:v,pattern:p,validate:W,name:T,valueAsNumber:Ce,mount:ue,disabled:he}=e._f,S=c(i,T);if(!ue||he)return{};const O=d?d[0]:u,X=h=>{n&&O.reportValidity&&(O.setCustomValidity(j(h)?"":h||""),O.reportValidity())},D={},ne=Ne(u),Z=ae(u),ve=ne||Z,P=(Ce||Ee(u))&&w(u.value)&&w(S)||ye(u)&&u.value===""||S===""||Array.isArray(S)&&!S.length,K=Rt.bind(null,T,r,D),Y=(h,C,k,E=$.maxLength,N=$.minLength)=>{const H=h?C:k;D[T]={type:h?E:N,message:H,ref:u,...K(h?E:N,H)}};if(a?!Array.isArray(S)||!S.length:V&&(!ve&&(P||M(S))||j(S)&&!S||Z&&!gt(d).isValid||ne&&!ct(d).isValid)){const{value:h,message:C}=fe(V)?{value:!!V,message:V}:te(V);if(h&&(D[T]={type:$.required,message:C,ref:O,...K($.required,C)},!r))return X(C),D}if(!P&&(!M(F)||!M(v))){let h,C;const k=te(v),E=te(F);if(!M(S)&&!isNaN(S)){const N=u.valueAsNumber||S&&+S;M(k.value)||(h=N>k.value),M(E.value)||(C=Nnew Date(new Date().toDateString()+" "+oe),J=u.type=="time",ie=u.type=="week";z(k.value)&&S&&(h=J?H(S)>H(k.value):ie?S>k.value:N>new Date(k.value)),z(E.value)&&S&&(C=J?H(S)+h.value,E=!M(C.value)&&S.length<+C.value;if((k||E)&&(Y(k,h.message,C.message),!r))return X(D[T].message),D}if(p&&!P&&z(S)){const{value:h,message:C}=te(p);if(pe(h)&&!S.match(h)&&(D[T]={type:$.pattern,message:C,ref:u,...K($.pattern,C)},!r))return X(C),D}if(W){if(G(W)){const h=await W(S,i),C=Ze(h,O);if(C&&(D[T]={...C,...K($.validate,C.message)},!r))return X(C.message),D}else if(A(W)){let h={};for(const C in W){if(!B(h)&&!r)break;const k=Ze(await W[C](S,i),O,C);k&&(h={...k,...K(C,k.message)},X(k.message),r&&(D[T]=h))}if(!B(h)&&(D[T]={ref:O,...h},!r))return D}}return X(!0),D};function Mt(e,i){const r=i.slice(0,-1).length;let n=0;for(;n{for(const u of e)u.next&&u.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(u=>u!==a)}}),unsubscribe:()=>{e=[]}}}var Ve=e=>M(e)||!nt(e);function Q(e,i){if(Ve(e)||Ve(i))return e===i;if(re(e)&&re(i))return e.getTime()===i.getTime();const r=Object.keys(e),n=Object.keys(i);if(r.length!==n.length)return!1;for(const a of r){const u=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const d=i[a];if(re(u)&&re(d)||A(u)&&A(d)||Array.isArray(u)&&Array.isArray(d)?!Q(u,d):u!==d)return!1}}return!0}var ft=e=>e.type==="select-multiple",Nt=e=>Ne(e)||ae(e),ke=e=>ye(e)&&e.isConnected,mt=e=>{for(const i in e)if(G(e[i]))return!0;return!1};function Se(e,i={}){const r=Array.isArray(e);if(A(e)||r)for(const n in e)Array.isArray(e[n])||A(e[n])&&!mt(e[n])?(i[n]=Array.isArray(e[n])?[]:{},Se(e[n],i[n])):M(e[n])||(i[n]=!0);return i}function yt(e,i,r){const n=Array.isArray(e);if(A(e)||n)for(const a in e)Array.isArray(e[a])||A(e[a])&&!mt(e[a])?w(i)||Ve(r[a])?r[a]=Array.isArray(e[a])?Se(e[a],[]):{...Se(e[a])}:yt(e[a],M(i)?{}:i[a],r[a]):r[a]=!Q(e[a],i[a]);return r}var Le=(e,i)=>yt(e,i,Se(i)),pt=(e,{valueAsNumber:i,valueAsDate:r,setValueAs:n})=>w(e)?e:i?e===""?NaN:e&&+e:r&&z(e)?new Date(e):n?n(e):e;function Ae(e){const i=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):i.disabled))return Ee(i)?i.files:Ne(i)?ct(e.refs).value:ft(i)?[...i.selectedOptions].map(({value:r})=>r):ae(i)?gt(e.refs).value:pt(w(i.value)?e.ref.value:i.value,e)}var Bt=(e,i,r,n)=>{const a={};for(const u of e){const d=c(i,u);d&&x(a,u,d._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},se=e=>w(e)?e:pe(e)?e.source:A(e)?pe(e.value)?e.value.source:e.value:e,Ot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tt(e,i,r){const n=c(e,r);if(n||Me(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const u=a.join("."),d=c(i,u),V=c(e,u);if(d&&!Array.isArray(d)&&r!==u)return{name:r};if(V&&V.type)return{name:u,error:V};a.pop()}return{name:r}}var It=(e,i,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(i||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Ut=(e,i)=>!le(c(e,i)).length&&R(e,i);const Wt={mode:U.onSubmit,reValidateMode:U.onChange,shouldFocusError:!0};function Pt(e={},i){let r={...Wt,...e},n={submitCount:0,isDirty:!1,isLoading:G(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},a={},u=A(r.defaultValues)||A(r.values)?I(r.defaultValues||r.values)||{}:{},d=r.shouldUnregister?{}:I(u),V={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},q,F=0;const v={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:we(),array:we(),state:we()},W=e.resetOptions&&e.resetOptions.keepDirtyValues,T=$e(r.mode),Ce=$e(r.reValidateMode),ue=r.criteriaMode===U.all,he=t=>s=>{clearTimeout(F),F=setTimeout(t,s)},S=async t=>{if(v.isValid||t){const s=r.resolver?B((await P()).errors):await Y(a,!0);s!==n.isValid&&p.state.next({isValid:s})}},O=t=>v.isValidating&&p.state.next({isValidating:t}),X=(t,s=[],l,f,g=!0,o=!0)=>{if(f&&l){if(V.action=!0,o&&Array.isArray(c(a,t))){const m=l(c(a,t),f.argA,f.argB);g&&x(a,t,m)}if(o&&Array.isArray(c(n.errors,t))){const m=l(c(n.errors,t),f.argA,f.argB);g&&x(n.errors,t,m),Ut(n.errors,t)}if(v.touchedFields&&o&&Array.isArray(c(n.touchedFields,t))){const m=l(c(n.touchedFields,t),f.argA,f.argB);g&&x(n.touchedFields,t,m)}v.dirtyFields&&(n.dirtyFields=Le(u,d)),p.state.next({name:t,isDirty:C(t,s),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(d,t,s)},D=(t,s)=>{x(n.errors,t,s),p.state.next({errors:n.errors})},ne=(t,s,l,f)=>{const g=c(a,t);if(g){const o=c(d,t,w(l)?c(u,t):l);w(o)||f&&f.defaultChecked||s?x(d,t,s?o:Ae(g._f)):N(t,o),V.mount&&S()}},Z=(t,s,l,f,g)=>{let o=!1,m=!1;const b={name:t};if(!l||f){v.isDirty&&(m=n.isDirty,n.isDirty=b.isDirty=C(),o=m!==b.isDirty);const L=Q(c(u,t),s);m=c(n.dirtyFields,t),L?R(n.dirtyFields,t):x(n.dirtyFields,t,!0),b.dirtyFields=n.dirtyFields,o=o||v.dirtyFields&&m!==!L}if(l){const L=c(n.touchedFields,t);L||(x(n.touchedFields,t,l),b.touchedFields=n.touchedFields,o=o||v.touchedFields&&L!==l)}return o&&g&&p.state.next(b),o?b:{}},ve=(t,s,l,f)=>{const g=c(n.errors,t),o=v.isValid&&j(s)&&n.isValid!==s;if(e.delayError&&l?(q=he(()=>D(t,l)),q(e.delayError)):(clearTimeout(F),q=null,l?x(n.errors,t,l):R(n.errors,t)),(l?!Q(g,l):g)||!B(f)||o){const m={...f,...o&&j(s)?{isValid:s}:{},errors:n.errors,name:t};n={...n,...m},p.state.next(m)}O(!1)},P=async t=>r.resolver(d,r.context,Bt(t||y.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),K=async t=>{const{errors:s}=await P(t);if(t)for(const l of t){const f=c(s,l);f?x(n.errors,l,f):R(n.errors,l)}else n.errors=s;return s},Y=async(t,s,l={valid:!0})=>{for(const f in t){const g=t[f];if(g){const{_f:o,...m}=g;if(o){const b=y.array.has(o.name),L=await et(g,d,ue,r.shouldUseNativeValidation&&!s,b);if(L[o.name]&&(l.valid=!1,s))break;!s&&(c(L,o.name)?b?Tt(n.errors,L,o.name):x(n.errors,o.name,L[o.name]):R(n.errors,o.name))}m&&await Y(m,s,l)}}return l.valid},h=()=>{for(const t of y.unMount){const s=c(a,t);s&&(s._f.refs?s._f.refs.every(l=>!ke(l)):!ke(s._f.ref))&&xe(t)}y.unMount=new Set},C=(t,s)=>(t&&s&&x(d,t,s),!Q(Be(),u)),k=(t,s,l)=>ot(t,y,{...V.mount?d:w(s)?u:z(t)?{[t]:s}:s},l,s),E=t=>le(c(V.mount?d:u,t,e.shouldUnregister?c(u,t,[]):[])),N=(t,s,l={})=>{const f=c(a,t);let g=s;if(f){const o=f._f;o&&(!o.disabled&&x(d,t,pt(s,o)),g=ye(o.ref)&&M(s)?"":s,ft(o.ref)?[...o.ref.options].forEach(m=>m.selected=g.includes(m.value)):o.refs?ae(o.ref)?o.refs.length>1?o.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(g)?!!g.find(b=>b===m.value):g===m.value)):o.refs[0]&&(o.refs[0].checked=!!g):o.refs.forEach(m=>m.checked=m.value===g):Ee(o.ref)?o.ref.value="":(o.ref.value=g,o.ref.type||p.values.next({name:t,values:{...d}})))}(l.shouldDirty||l.shouldTouch)&&Z(t,g,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&be(t)},H=(t,s,l)=>{for(const f in s){const g=s[f],o=`${t}.${f}`,m=c(a,o);(y.array.has(t)||!Ve(g)||m&&!m._f)&&!re(g)?H(o,g,l):N(o,g,l)}},J=(t,s,l={})=>{const f=c(a,t),g=y.array.has(t),o=I(s);x(d,t,o),g?(p.array.next({name:t,values:{...d}}),(v.isDirty||v.dirtyFields)&&l.shouldDirty&&p.state.next({name:t,dirtyFields:Le(u,d),isDirty:C(t,o)})):f&&!f._f&&!M(o)?H(t,o,l):N(t,o,l),Ge(t,y)&&p.state.next({...n}),p.values.next({name:t,values:{...d}}),!V.mount&&i()},ie=async t=>{const s=t.target;let l=s.name,f=!0;const g=c(a,l),o=()=>s.type?Ae(g._f):it(t),m=b=>{f=Number.isNaN(b)||b===c(d,l,b)};if(g){let b,L;const de=o(),ee=t.type===me.BLUR||t.type===me.FOCUS_OUT,vt=!Ot(g._f)&&!r.resolver&&!c(n.errors,l)&&!g._f.deps||It(ee,c(n.touchedFields,l),n.isSubmitted,Ce,T),_e=Ge(l,y,ee);x(d,l,de),ee?(g._f.onBlur&&g._f.onBlur(t),q&&q(0)):g._f.onChange&&g._f.onChange(t);const qe=Z(l,de,ee,!1),bt=!B(qe)||_e;if(!ee&&p.values.next({name:l,type:t.type,values:{...d}}),vt)return v.isValid&&S(),bt&&p.state.next({name:l,..._e?{}:qe});if(!ee&&_e&&p.state.next({...n}),O(!0),r.resolver){const{errors:ze}=await P([l]);if(m(de),f){const xt=tt(n.errors,a,l),Xe=tt(ze,a,xt.name||l);b=Xe.error,l=Xe.name,L=B(ze)}}else b=(await et(g,d,ue,r.shouldUseNativeValidation))[l],m(de),f&&(b?L=!1:v.isValid&&(L=await Y(a,!0)));f&&(g._f.deps&&be(g._f.deps),ve(l,L,b,qe))}},oe=(t,s)=>{if(c(n.errors,s)&&t.focus)return t.focus(),1},be=async(t,s={})=>{let l,f;const g=ge(t);if(O(!0),r.resolver){const o=await K(w(t)?t:g);l=B(o),f=t?!g.some(m=>c(o,m)):l}else t?(f=(await Promise.all(g.map(async o=>{const m=c(a,o);return await Y(m&&m._f?{[o]:m}:m)}))).every(Boolean),!(!f&&!n.isValid)&&S()):f=l=await Y(a);return p.state.next({...!z(t)||v.isValid&&l!==n.isValid?{}:{name:t},...r.resolver||!t?{isValid:l}:{},errors:n.errors,isValidating:!1}),s.shouldFocus&&!f&&ce(a,oe,t?g:y.mount),f},Be=t=>{const s={...u,...V.mount?d:{}};return w(t)?s:z(t)?c(s,t):t.map(l=>c(s,l))},Oe=(t,s)=>({invalid:!!c((s||n).errors,t),isDirty:!!c((s||n).dirtyFields,t),isTouched:!!c((s||n).touchedFields,t),error:c((s||n).errors,t)}),Vt=t=>{t&&ge(t).forEach(s=>R(n.errors,s)),p.state.next({errors:t?n.errors:{}})},Ie=(t,s,l)=>{const f=(c(a,t,{_f:{}})._f||{}).ref;x(n.errors,t,{...s,ref:f}),p.state.next({name:t,errors:n.errors,isValid:!1}),l&&l.shouldFocus&&f&&f.focus&&f.focus()},St=(t,s)=>G(t)?p.values.subscribe({next:l=>t(k(void 0,s),l)}):k(t,s,!0),xe=(t,s={})=>{for(const l of t?ge(t):y.mount)y.mount.delete(l),y.array.delete(l),s.keepValue||(R(a,l),R(d,l)),!s.keepError&&R(n.errors,l),!s.keepDirty&&R(n.dirtyFields,l),!s.keepTouched&&R(n.touchedFields,l),!r.shouldUnregister&&!s.keepDefaultValue&&R(u,l);p.values.next({values:{...d}}),p.state.next({...n,...s.keepDirty?{isDirty:C()}:{}}),!s.keepIsValid&&S()},Ue=({disabled:t,name:s,field:l,fields:f,value:g})=>{if(j(t)){const o=t?void 0:w(g)?Ae(l?l._f:c(f,s)._f):g;x(d,s,o),Z(s,o,!1,!1,!0)}},Fe=(t,s={})=>{let l=c(a,t);const f=j(s.disabled);return x(a,t,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:t}},name:t,mount:!0,...s}}),y.mount.add(t),l?Ue({field:l,disabled:s.disabled,name:t}):ne(t,!0,s.value),{...f?{disabled:s.disabled}:{},...r.progressive?{required:!!s.required,min:se(s.min),max:se(s.max),minLength:se(s.minLength),maxLength:se(s.maxLength),pattern:se(s.pattern)}:{},name:t,onChange:ie,onBlur:ie,ref:g=>{if(g){Fe(t,s),l=c(a,t);const o=w(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,m=Nt(o),b=l._f.refs||[];if(m?b.find(L=>L===o):o===l._f.ref)return;x(a,t,{_f:{...l._f,...m?{refs:[...b.filter(ke),o,...Array.isArray(c(u,t))?[{}]:[]],ref:{type:o.type,name:t}}:{ref:o}}}),ne(t,!1,void 0,o)}else l=c(a,t,{}),l._f&&(l._f.mount=!1),(r.shouldUnregister||s.shouldUnregister)&&!(st(y.array,t)&&V.action)&&y.unMount.add(t)}}},We=()=>r.shouldFocusError&&ce(a,oe,y.mount),Ct=t=>{j(t)&&(p.state.next({disabled:t}),ce(a,s=>{s.disabled=t},0,!1))},Pe=(t,s)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let f=I(d);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:g,values:o}=await P();n.errors=g,f=o}else await Y(a);R(n.errors,"root"),B(n.errors)?(p.state.next({errors:{}}),await t(f,l)):(s&&await s({...n.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(n.errors),submitCount:n.submitCount+1,errors:n.errors})},ht=(t,s={})=>{c(a,t)&&(w(s.defaultValue)?J(t,c(u,t)):(J(t,s.defaultValue),x(u,t,s.defaultValue)),s.keepTouched||R(n.touchedFields,t),s.keepDirty||(R(n.dirtyFields,t),n.isDirty=s.defaultValue?C(t,c(u,t)):C()),s.keepError||(R(n.errors,t),v.isValid&&S()),p.state.next({...n}))},He=(t,s={})=>{const l=t?I(t):u,f=I(l),g=t&&!B(t)?f:u;if(s.keepDefaultValues||(u=l),!s.keepValues){if(s.keepDirtyValues||W)for(const o of y.mount)c(n.dirtyFields,o)?x(g,o,c(d,o)):J(o,c(g,o));else{if(De&&w(t))for(const o of y.mount){const m=c(a,o);if(m&&m._f){const b=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;if(ye(b)){const L=b.closest("form");if(L){L.reset();break}}}}a={}}d=e.shouldUnregister?s.keepDefaultValues?I(u):{}:I(g),p.array.next({values:{...g}}),p.values.next({values:{...g}})}y={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!V.mount&&i(),V.mount=!v.isValid||!!s.keepIsValid,V.watch=!!e.shouldUnregister,p.state.next({submitCount:s.keepSubmitCount?n.submitCount:0,isDirty:s.keepDirty?n.isDirty:!!(s.keepDefaultValues&&!Q(t,u)),isSubmitted:s.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:s.keepDirtyValues?n.dirtyFields:s.keepDefaultValues&&t?Le(u,t):{},touchedFields:s.keepTouched?n.touchedFields:{},errors:s.keepErrors?n.errors:{},isSubmitSuccessful:s.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},je=(t,s)=>He(G(t)?t(d):t,s);return{control:{register:Fe,unregister:xe,getFieldState:Oe,handleSubmit:Pe,setError:Ie,_executeSchema:P,_getWatch:k,_getDirty:C,_updateValid:S,_removeUnmounted:h,_updateFieldArray:X,_updateDisabledField:Ue,_getFieldArray:E,_reset:He,_resetDefaultValues:()=>G(r.defaultValues)&&r.defaultValues().then(t=>{je(t,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:t=>{n={...n,...t}},_disableForm:Ct,_subjects:p,_proxyFormState:v,get _fields(){return a},get _formValues(){return d},get _state(){return V},set _state(t){V=t},get _defaultValues(){return u},get _names(){return y},set _names(t){y=t},get _formState(){return n},set _formState(t){n=t},get _options(){return r},set _options(t){r={...r,...t}}},trigger:be,register:Fe,handleSubmit:Pe,watch:St,setValue:J,getValues:Be,reset:je,resetField:ht,clearErrors:Vt,unregister:xe,setError:Ie,setFocus:(t,s={})=>{const l=c(a,t),f=l&&l._f;if(f){const g=f.refs?f.refs[0]:f.ref;g.focus&&(g.focus(),s.shouldSelect&&g.select())}},getFieldState:Oe}}function Gt(e={}){const i=_.useRef(),r=_.useRef(),[n,a]=_.useState({isDirty:!1,isValidating:!1,isLoading:G(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:G(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Pt(e,()=>a(d=>({...d}))),formState:n});const u=i.current.control;return u._options=e,Te({subject:u._subjects.state,next:d=>{lt(d,u._proxyFormState,u._updateFormState,!0)&&a({...u._formState})}}),_.useEffect(()=>u._disableForm(e.disabled),[u,e.disabled]),_.useEffect(()=>{if(u._proxyFormState.isDirty){const d=u._getDirty();d!==n.isDirty&&u._subjects.state.next({isDirty:d})}},[u,n.isDirty]),_.useEffect(()=>{e.values&&!Q(e.values,r.current)?(u._reset(e.values,u._options.resetOptions),r.current=e.values):u._resetDefaultValues()},[e.values,u]),_.useEffect(()=>{u._state.mount||(u._updateValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),i.current.formState=at(n,u),i.current}const rt=({defaultValue:e,name:i,control:r,rules:n,...a})=>Ye.jsx(Dt,{defaultValue:e,name:i,control:r,rules:n,render:({field:u})=>Ye.jsx(Ft,{...u,...a})});try{rt.displayName="ControlledTextInput",rt.__docgenInfo={description:"",displayName:"ControlledTextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}export{Dt as C,rt as a,Gt as u}; -//# sourceMappingURL=ControlledTextInput-deea110c.js.map +import{j as Ye}from"./jsx-runtime-1caa8f64.js";import{a as _}from"./index-1cdf6ce0.js";import{T as Ft}from"./TextInput-d5b4161c.js";var ae=e=>e.type==="checkbox",re=e=>e instanceof Date,M=e=>e==null;const nt=e=>typeof e=="object";var A=e=>!M(e)&&!Array.isArray(e)&&nt(e)&&!re(e),it=e=>A(e)&&e.target?ae(e.target)?e.target.checked:e.target.value:e,_t=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,st=(e,i)=>e.has(_t(i)),qt=e=>{const i=e.constructor&&e.constructor.prototype;return A(i)&&i.hasOwnProperty("isPrototypeOf")},De=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function I(e){let i;const r=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(De&&(e instanceof Blob||e instanceof FileList))&&(r||A(e)))if(i=r?[]:{},!r&&!qt(e))i=e;else for(const n in e)e.hasOwnProperty(n)&&(i[n]=I(e[n]));else return e;return i}var le=e=>Array.isArray(e)?e.filter(Boolean):[],w=e=>e===void 0,c=(e,i,r)=>{if(!i||!A(e))return r;const n=le(i.split(/[,[\].]+?/)).reduce((a,u)=>M(a)?a:a[u],e);return w(n)||n===e?w(e[i])?r:e[i]:n},j=e=>typeof e=="boolean";const me={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},U={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wt=_.createContext(null),Re=()=>_.useContext(wt);var at=(e,i,r,n=!0)=>{const a={defaultValues:i._defaultValues};for(const u in e)Object.defineProperty(a,u,{get:()=>{const d=u;return i._proxyFormState[d]!==U.all&&(i._proxyFormState[d]=!n||U.all),r&&(r[d]=!0),e[d]}});return a},B=e=>A(e)&&!Object.keys(e).length,lt=(e,i,r,n)=>{r(e);const{name:a,...u}=e;return B(u)||Object.keys(u).length>=Object.keys(i).length||Object.keys(u).find(d=>i[d]===(!n||U.all))},ge=e=>Array.isArray(e)?e:[e],ut=(e,i,r)=>!e||!i||e===i||ge(e).some(n=>n&&(r?n===i:n.startsWith(i)||i.startsWith(n)));function Te(e){const i=_.useRef(e);i.current=e,_.useEffect(()=>{const r=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function kt(e){const i=Re(),{control:r=i.control,disabled:n,name:a,exact:u}=e||{},[d,V]=_.useState(r._formState),y=_.useRef(!0),q=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),F=_.useRef(a);return F.current=a,Te({disabled:n,next:v=>y.current&&ut(F.current,v.name,u)&<(v,q.current,r._updateFormState)&&V({...r._formState,...v}),subject:r._subjects.state}),_.useEffect(()=>(y.current=!0,q.current.isValid&&r._updateValid(!0),()=>{y.current=!1}),[r]),at(d,r,q.current,!1)}var z=e=>typeof e=="string",ot=(e,i,r,n,a)=>z(e)?(n&&i.watch.add(e),c(r,e,a)):Array.isArray(e)?e.map(u=>(n&&i.watch.add(u),c(r,u))):(n&&(i.watchAll=!0),r);function Lt(e){const i=Re(),{control:r=i.control,name:n,defaultValue:a,disabled:u,exact:d}=e||{},V=_.useRef(n);V.current=n,Te({disabled:u,subject:r._subjects.values,next:F=>{ut(V.current,F.name,d)&&q(I(ot(V.current,r._names,F.values||r._formValues,!1,a)))}});const[y,q]=_.useState(r._getWatch(n,a));return _.useEffect(()=>r._removeUnmounted()),y}var Me=e=>/^\w*$/.test(e),dt=e=>le(e.replace(/["|']|\]/g,"").split(/\.|\[/));function x(e,i,r){let n=-1;const a=Me(i)?[i]:dt(i),u=a.length,d=u-1;for(;++n{const F=a._options.shouldUnregister||u,v=(p,W)=>{const T=c(a._fields,p);T&&(T._f.mount=W)};if(v(r,!0),F){const p=I(c(a._options.defaultValues,r));x(a._defaultValues,r,p),w(c(a._formValues,r))&&x(a._formValues,r,p)}return()=>{(d?F&&!a._state.action:F)?a.unregister(r):v(r,!1)}},[r,a,d,u]),_.useEffect(()=>{c(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:c(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:V,...j(n)||j(y.disabled)?{disabled:y.disabled||n}:{},onChange:_.useCallback(F=>q.current.onChange({target:{value:it(F),name:r},type:me.CHANGE}),[r]),onBlur:_.useCallback(()=>q.current.onBlur({target:{value:c(a._formValues,r),name:r},type:me.BLUR}),[r,a]),ref:F=>{const v=c(a._fields,r);v&&F&&(v._f.ref={focus:()=>F.focus(),select:()=>F.select(),setCustomValidity:p=>F.setCustomValidity(p),reportValidity:()=>F.reportValidity()})}},formState:y,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(y.errors,r)},isDirty:{enumerable:!0,get:()=>!!c(y.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!c(y.touchedFields,r)},error:{enumerable:!0,get:()=>c(y.errors,r)}})}}const Dt=e=>e.render(At(e));var Rt=(e,i,r,n,a)=>i?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},$e=e=>({isOnSubmit:!e||e===U.onSubmit,isOnBlur:e===U.onBlur,isOnChange:e===U.onChange,isOnAll:e===U.all,isOnTouch:e===U.onTouched}),Ge=(e,i,r)=>!r&&(i.watchAll||i.watch.has(e)||[...i.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const ce=(e,i,r,n)=>{for(const a of r||Object.keys(e)){const u=c(e,a);if(u){const{_f:d,...V}=u;if(d){if(d.refs&&d.refs[0]&&i(d.refs[0],a)&&!n)break;if(d.ref&&i(d.ref,d.name)&&!n)break}else A(V)&&ce(V,i)}}};var Tt=(e,i,r)=>{const n=le(c(e,r));return x(n,"root",i[r]),x(e,r,n),e},Ee=e=>e.type==="file",G=e=>typeof e=="function",ye=e=>{if(!De)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},fe=e=>z(e),Ne=e=>e.type==="radio",pe=e=>e instanceof RegExp;const Ke={value:!1,isValid:!1},Je={value:!0,isValid:!0};var gt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===""?Je:{value:e[0].value,isValid:!0}:Je:Ke}return Ke};const Qe={isValid:!1,value:null};var ct=e=>Array.isArray(e)?e.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,Qe):Qe;function Ze(e,i,r="validate"){if(fe(e)||Array.isArray(e)&&e.every(fe)||j(e)&&!e)return{type:r,message:fe(e)?e:"",ref:i}}var te=e=>A(e)&&!pe(e)?e:{value:e,message:""},et=async(e,i,r,n,a)=>{const{ref:u,refs:d,required:V,maxLength:y,minLength:q,min:F,max:v,pattern:p,validate:W,name:T,valueAsNumber:Ce,mount:ue,disabled:he}=e._f,S=c(i,T);if(!ue||he)return{};const O=d?d[0]:u,X=h=>{n&&O.reportValidity&&(O.setCustomValidity(j(h)?"":h||""),O.reportValidity())},D={},ne=Ne(u),Z=ae(u),ve=ne||Z,P=(Ce||Ee(u))&&w(u.value)&&w(S)||ye(u)&&u.value===""||S===""||Array.isArray(S)&&!S.length,K=Rt.bind(null,T,r,D),Y=(h,C,k,E=$.maxLength,N=$.minLength)=>{const H=h?C:k;D[T]={type:h?E:N,message:H,ref:u,...K(h?E:N,H)}};if(a?!Array.isArray(S)||!S.length:V&&(!ve&&(P||M(S))||j(S)&&!S||Z&&!gt(d).isValid||ne&&!ct(d).isValid)){const{value:h,message:C}=fe(V)?{value:!!V,message:V}:te(V);if(h&&(D[T]={type:$.required,message:C,ref:O,...K($.required,C)},!r))return X(C),D}if(!P&&(!M(F)||!M(v))){let h,C;const k=te(v),E=te(F);if(!M(S)&&!isNaN(S)){const N=u.valueAsNumber||S&&+S;M(k.value)||(h=N>k.value),M(E.value)||(C=Nnew Date(new Date().toDateString()+" "+oe),J=u.type=="time",ie=u.type=="week";z(k.value)&&S&&(h=J?H(S)>H(k.value):ie?S>k.value:N>new Date(k.value)),z(E.value)&&S&&(C=J?H(S)+h.value,E=!M(C.value)&&S.length<+C.value;if((k||E)&&(Y(k,h.message,C.message),!r))return X(D[T].message),D}if(p&&!P&&z(S)){const{value:h,message:C}=te(p);if(pe(h)&&!S.match(h)&&(D[T]={type:$.pattern,message:C,ref:u,...K($.pattern,C)},!r))return X(C),D}if(W){if(G(W)){const h=await W(S,i),C=Ze(h,O);if(C&&(D[T]={...C,...K($.validate,C.message)},!r))return X(C.message),D}else if(A(W)){let h={};for(const C in W){if(!B(h)&&!r)break;const k=Ze(await W[C](S,i),O,C);k&&(h={...k,...K(C,k.message)},X(k.message),r&&(D[T]=h))}if(!B(h)&&(D[T]={ref:O,...h},!r))return D}}return X(!0),D};function Mt(e,i){const r=i.slice(0,-1).length;let n=0;for(;n{for(const u of e)u.next&&u.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(u=>u!==a)}}),unsubscribe:()=>{e=[]}}}var Ve=e=>M(e)||!nt(e);function Q(e,i){if(Ve(e)||Ve(i))return e===i;if(re(e)&&re(i))return e.getTime()===i.getTime();const r=Object.keys(e),n=Object.keys(i);if(r.length!==n.length)return!1;for(const a of r){const u=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const d=i[a];if(re(u)&&re(d)||A(u)&&A(d)||Array.isArray(u)&&Array.isArray(d)?!Q(u,d):u!==d)return!1}}return!0}var ft=e=>e.type==="select-multiple",Nt=e=>Ne(e)||ae(e),ke=e=>ye(e)&&e.isConnected,mt=e=>{for(const i in e)if(G(e[i]))return!0;return!1};function Se(e,i={}){const r=Array.isArray(e);if(A(e)||r)for(const n in e)Array.isArray(e[n])||A(e[n])&&!mt(e[n])?(i[n]=Array.isArray(e[n])?[]:{},Se(e[n],i[n])):M(e[n])||(i[n]=!0);return i}function yt(e,i,r){const n=Array.isArray(e);if(A(e)||n)for(const a in e)Array.isArray(e[a])||A(e[a])&&!mt(e[a])?w(i)||Ve(r[a])?r[a]=Array.isArray(e[a])?Se(e[a],[]):{...Se(e[a])}:yt(e[a],M(i)?{}:i[a],r[a]):r[a]=!Q(e[a],i[a]);return r}var Le=(e,i)=>yt(e,i,Se(i)),pt=(e,{valueAsNumber:i,valueAsDate:r,setValueAs:n})=>w(e)?e:i?e===""?NaN:e&&+e:r&&z(e)?new Date(e):n?n(e):e;function Ae(e){const i=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):i.disabled))return Ee(i)?i.files:Ne(i)?ct(e.refs).value:ft(i)?[...i.selectedOptions].map(({value:r})=>r):ae(i)?gt(e.refs).value:pt(w(i.value)?e.ref.value:i.value,e)}var Bt=(e,i,r,n)=>{const a={};for(const u of e){const d=c(i,u);d&&x(a,u,d._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},se=e=>w(e)?e:pe(e)?e.source:A(e)?pe(e.value)?e.value.source:e.value:e,Ot=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tt(e,i,r){const n=c(e,r);if(n||Me(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const u=a.join("."),d=c(i,u),V=c(e,u);if(d&&!Array.isArray(d)&&r!==u)return{name:r};if(V&&V.type)return{name:u,error:V};a.pop()}return{name:r}}var It=(e,i,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(i||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Ut=(e,i)=>!le(c(e,i)).length&&R(e,i);const Wt={mode:U.onSubmit,reValidateMode:U.onChange,shouldFocusError:!0};function Pt(e={},i){let r={...Wt,...e},n={submitCount:0,isDirty:!1,isLoading:G(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},a={},u=A(r.defaultValues)||A(r.values)?I(r.defaultValues||r.values)||{}:{},d=r.shouldUnregister?{}:I(u),V={action:!1,mount:!1,watch:!1},y={mount:new Set,unMount:new Set,array:new Set,watch:new Set},q,F=0;const v={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:we(),array:we(),state:we()},W=e.resetOptions&&e.resetOptions.keepDirtyValues,T=$e(r.mode),Ce=$e(r.reValidateMode),ue=r.criteriaMode===U.all,he=t=>s=>{clearTimeout(F),F=setTimeout(t,s)},S=async t=>{if(v.isValid||t){const s=r.resolver?B((await P()).errors):await Y(a,!0);s!==n.isValid&&p.state.next({isValid:s})}},O=t=>v.isValidating&&p.state.next({isValidating:t}),X=(t,s=[],l,f,g=!0,o=!0)=>{if(f&&l){if(V.action=!0,o&&Array.isArray(c(a,t))){const m=l(c(a,t),f.argA,f.argB);g&&x(a,t,m)}if(o&&Array.isArray(c(n.errors,t))){const m=l(c(n.errors,t),f.argA,f.argB);g&&x(n.errors,t,m),Ut(n.errors,t)}if(v.touchedFields&&o&&Array.isArray(c(n.touchedFields,t))){const m=l(c(n.touchedFields,t),f.argA,f.argB);g&&x(n.touchedFields,t,m)}v.dirtyFields&&(n.dirtyFields=Le(u,d)),p.state.next({name:t,isDirty:C(t,s),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(d,t,s)},D=(t,s)=>{x(n.errors,t,s),p.state.next({errors:n.errors})},ne=(t,s,l,f)=>{const g=c(a,t);if(g){const o=c(d,t,w(l)?c(u,t):l);w(o)||f&&f.defaultChecked||s?x(d,t,s?o:Ae(g._f)):N(t,o),V.mount&&S()}},Z=(t,s,l,f,g)=>{let o=!1,m=!1;const b={name:t};if(!l||f){v.isDirty&&(m=n.isDirty,n.isDirty=b.isDirty=C(),o=m!==b.isDirty);const L=Q(c(u,t),s);m=c(n.dirtyFields,t),L?R(n.dirtyFields,t):x(n.dirtyFields,t,!0),b.dirtyFields=n.dirtyFields,o=o||v.dirtyFields&&m!==!L}if(l){const L=c(n.touchedFields,t);L||(x(n.touchedFields,t,l),b.touchedFields=n.touchedFields,o=o||v.touchedFields&&L!==l)}return o&&g&&p.state.next(b),o?b:{}},ve=(t,s,l,f)=>{const g=c(n.errors,t),o=v.isValid&&j(s)&&n.isValid!==s;if(e.delayError&&l?(q=he(()=>D(t,l)),q(e.delayError)):(clearTimeout(F),q=null,l?x(n.errors,t,l):R(n.errors,t)),(l?!Q(g,l):g)||!B(f)||o){const m={...f,...o&&j(s)?{isValid:s}:{},errors:n.errors,name:t};n={...n,...m},p.state.next(m)}O(!1)},P=async t=>r.resolver(d,r.context,Bt(t||y.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),K=async t=>{const{errors:s}=await P(t);if(t)for(const l of t){const f=c(s,l);f?x(n.errors,l,f):R(n.errors,l)}else n.errors=s;return s},Y=async(t,s,l={valid:!0})=>{for(const f in t){const g=t[f];if(g){const{_f:o,...m}=g;if(o){const b=y.array.has(o.name),L=await et(g,d,ue,r.shouldUseNativeValidation&&!s,b);if(L[o.name]&&(l.valid=!1,s))break;!s&&(c(L,o.name)?b?Tt(n.errors,L,o.name):x(n.errors,o.name,L[o.name]):R(n.errors,o.name))}m&&await Y(m,s,l)}}return l.valid},h=()=>{for(const t of y.unMount){const s=c(a,t);s&&(s._f.refs?s._f.refs.every(l=>!ke(l)):!ke(s._f.ref))&&xe(t)}y.unMount=new Set},C=(t,s)=>(t&&s&&x(d,t,s),!Q(Be(),u)),k=(t,s,l)=>ot(t,y,{...V.mount?d:w(s)?u:z(t)?{[t]:s}:s},l,s),E=t=>le(c(V.mount?d:u,t,e.shouldUnregister?c(u,t,[]):[])),N=(t,s,l={})=>{const f=c(a,t);let g=s;if(f){const o=f._f;o&&(!o.disabled&&x(d,t,pt(s,o)),g=ye(o.ref)&&M(s)?"":s,ft(o.ref)?[...o.ref.options].forEach(m=>m.selected=g.includes(m.value)):o.refs?ae(o.ref)?o.refs.length>1?o.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(g)?!!g.find(b=>b===m.value):g===m.value)):o.refs[0]&&(o.refs[0].checked=!!g):o.refs.forEach(m=>m.checked=m.value===g):Ee(o.ref)?o.ref.value="":(o.ref.value=g,o.ref.type||p.values.next({name:t,values:{...d}})))}(l.shouldDirty||l.shouldTouch)&&Z(t,g,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&be(t)},H=(t,s,l)=>{for(const f in s){const g=s[f],o=`${t}.${f}`,m=c(a,o);(y.array.has(t)||!Ve(g)||m&&!m._f)&&!re(g)?H(o,g,l):N(o,g,l)}},J=(t,s,l={})=>{const f=c(a,t),g=y.array.has(t),o=I(s);x(d,t,o),g?(p.array.next({name:t,values:{...d}}),(v.isDirty||v.dirtyFields)&&l.shouldDirty&&p.state.next({name:t,dirtyFields:Le(u,d),isDirty:C(t,o)})):f&&!f._f&&!M(o)?H(t,o,l):N(t,o,l),Ge(t,y)&&p.state.next({...n}),p.values.next({name:t,values:{...d}}),!V.mount&&i()},ie=async t=>{const s=t.target;let l=s.name,f=!0;const g=c(a,l),o=()=>s.type?Ae(g._f):it(t),m=b=>{f=Number.isNaN(b)||b===c(d,l,b)};if(g){let b,L;const de=o(),ee=t.type===me.BLUR||t.type===me.FOCUS_OUT,vt=!Ot(g._f)&&!r.resolver&&!c(n.errors,l)&&!g._f.deps||It(ee,c(n.touchedFields,l),n.isSubmitted,Ce,T),_e=Ge(l,y,ee);x(d,l,de),ee?(g._f.onBlur&&g._f.onBlur(t),q&&q(0)):g._f.onChange&&g._f.onChange(t);const qe=Z(l,de,ee,!1),bt=!B(qe)||_e;if(!ee&&p.values.next({name:l,type:t.type,values:{...d}}),vt)return v.isValid&&S(),bt&&p.state.next({name:l,..._e?{}:qe});if(!ee&&_e&&p.state.next({...n}),O(!0),r.resolver){const{errors:ze}=await P([l]);if(m(de),f){const xt=tt(n.errors,a,l),Xe=tt(ze,a,xt.name||l);b=Xe.error,l=Xe.name,L=B(ze)}}else b=(await et(g,d,ue,r.shouldUseNativeValidation))[l],m(de),f&&(b?L=!1:v.isValid&&(L=await Y(a,!0)));f&&(g._f.deps&&be(g._f.deps),ve(l,L,b,qe))}},oe=(t,s)=>{if(c(n.errors,s)&&t.focus)return t.focus(),1},be=async(t,s={})=>{let l,f;const g=ge(t);if(O(!0),r.resolver){const o=await K(w(t)?t:g);l=B(o),f=t?!g.some(m=>c(o,m)):l}else t?(f=(await Promise.all(g.map(async o=>{const m=c(a,o);return await Y(m&&m._f?{[o]:m}:m)}))).every(Boolean),!(!f&&!n.isValid)&&S()):f=l=await Y(a);return p.state.next({...!z(t)||v.isValid&&l!==n.isValid?{}:{name:t},...r.resolver||!t?{isValid:l}:{},errors:n.errors,isValidating:!1}),s.shouldFocus&&!f&&ce(a,oe,t?g:y.mount),f},Be=t=>{const s={...u,...V.mount?d:{}};return w(t)?s:z(t)?c(s,t):t.map(l=>c(s,l))},Oe=(t,s)=>({invalid:!!c((s||n).errors,t),isDirty:!!c((s||n).dirtyFields,t),isTouched:!!c((s||n).touchedFields,t),error:c((s||n).errors,t)}),Vt=t=>{t&&ge(t).forEach(s=>R(n.errors,s)),p.state.next({errors:t?n.errors:{}})},Ie=(t,s,l)=>{const f=(c(a,t,{_f:{}})._f||{}).ref;x(n.errors,t,{...s,ref:f}),p.state.next({name:t,errors:n.errors,isValid:!1}),l&&l.shouldFocus&&f&&f.focus&&f.focus()},St=(t,s)=>G(t)?p.values.subscribe({next:l=>t(k(void 0,s),l)}):k(t,s,!0),xe=(t,s={})=>{for(const l of t?ge(t):y.mount)y.mount.delete(l),y.array.delete(l),s.keepValue||(R(a,l),R(d,l)),!s.keepError&&R(n.errors,l),!s.keepDirty&&R(n.dirtyFields,l),!s.keepTouched&&R(n.touchedFields,l),!r.shouldUnregister&&!s.keepDefaultValue&&R(u,l);p.values.next({values:{...d}}),p.state.next({...n,...s.keepDirty?{isDirty:C()}:{}}),!s.keepIsValid&&S()},Ue=({disabled:t,name:s,field:l,fields:f,value:g})=>{if(j(t)){const o=t?void 0:w(g)?Ae(l?l._f:c(f,s)._f):g;x(d,s,o),Z(s,o,!1,!1,!0)}},Fe=(t,s={})=>{let l=c(a,t);const f=j(s.disabled);return x(a,t,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:t}},name:t,mount:!0,...s}}),y.mount.add(t),l?Ue({field:l,disabled:s.disabled,name:t}):ne(t,!0,s.value),{...f?{disabled:s.disabled}:{},...r.progressive?{required:!!s.required,min:se(s.min),max:se(s.max),minLength:se(s.minLength),maxLength:se(s.maxLength),pattern:se(s.pattern)}:{},name:t,onChange:ie,onBlur:ie,ref:g=>{if(g){Fe(t,s),l=c(a,t);const o=w(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,m=Nt(o),b=l._f.refs||[];if(m?b.find(L=>L===o):o===l._f.ref)return;x(a,t,{_f:{...l._f,...m?{refs:[...b.filter(ke),o,...Array.isArray(c(u,t))?[{}]:[]],ref:{type:o.type,name:t}}:{ref:o}}}),ne(t,!1,void 0,o)}else l=c(a,t,{}),l._f&&(l._f.mount=!1),(r.shouldUnregister||s.shouldUnregister)&&!(st(y.array,t)&&V.action)&&y.unMount.add(t)}}},We=()=>r.shouldFocusError&&ce(a,oe,y.mount),Ct=t=>{j(t)&&(p.state.next({disabled:t}),ce(a,s=>{s.disabled=t},0,!1))},Pe=(t,s)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let f=I(d);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:g,values:o}=await P();n.errors=g,f=o}else await Y(a);R(n.errors,"root"),B(n.errors)?(p.state.next({errors:{}}),await t(f,l)):(s&&await s({...n.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(n.errors),submitCount:n.submitCount+1,errors:n.errors})},ht=(t,s={})=>{c(a,t)&&(w(s.defaultValue)?J(t,c(u,t)):(J(t,s.defaultValue),x(u,t,s.defaultValue)),s.keepTouched||R(n.touchedFields,t),s.keepDirty||(R(n.dirtyFields,t),n.isDirty=s.defaultValue?C(t,c(u,t)):C()),s.keepError||(R(n.errors,t),v.isValid&&S()),p.state.next({...n}))},He=(t,s={})=>{const l=t?I(t):u,f=I(l),g=t&&!B(t)?f:u;if(s.keepDefaultValues||(u=l),!s.keepValues){if(s.keepDirtyValues||W)for(const o of y.mount)c(n.dirtyFields,o)?x(g,o,c(d,o)):J(o,c(g,o));else{if(De&&w(t))for(const o of y.mount){const m=c(a,o);if(m&&m._f){const b=Array.isArray(m._f.refs)?m._f.refs[0]:m._f.ref;if(ye(b)){const L=b.closest("form");if(L){L.reset();break}}}}a={}}d=e.shouldUnregister?s.keepDefaultValues?I(u):{}:I(g),p.array.next({values:{...g}}),p.values.next({values:{...g}})}y={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!V.mount&&i(),V.mount=!v.isValid||!!s.keepIsValid,V.watch=!!e.shouldUnregister,p.state.next({submitCount:s.keepSubmitCount?n.submitCount:0,isDirty:s.keepDirty?n.isDirty:!!(s.keepDefaultValues&&!Q(t,u)),isSubmitted:s.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:s.keepDirtyValues?n.dirtyFields:s.keepDefaultValues&&t?Le(u,t):{},touchedFields:s.keepTouched?n.touchedFields:{},errors:s.keepErrors?n.errors:{},isSubmitSuccessful:s.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},je=(t,s)=>He(G(t)?t(d):t,s);return{control:{register:Fe,unregister:xe,getFieldState:Oe,handleSubmit:Pe,setError:Ie,_executeSchema:P,_getWatch:k,_getDirty:C,_updateValid:S,_removeUnmounted:h,_updateFieldArray:X,_updateDisabledField:Ue,_getFieldArray:E,_reset:He,_resetDefaultValues:()=>G(r.defaultValues)&&r.defaultValues().then(t=>{je(t,r.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:t=>{n={...n,...t}},_disableForm:Ct,_subjects:p,_proxyFormState:v,get _fields(){return a},get _formValues(){return d},get _state(){return V},set _state(t){V=t},get _defaultValues(){return u},get _names(){return y},set _names(t){y=t},get _formState(){return n},set _formState(t){n=t},get _options(){return r},set _options(t){r={...r,...t}}},trigger:be,register:Fe,handleSubmit:Pe,watch:St,setValue:J,getValues:Be,reset:je,resetField:ht,clearErrors:Vt,unregister:xe,setError:Ie,setFocus:(t,s={})=>{const l=c(a,t),f=l&&l._f;if(f){const g=f.refs?f.refs[0]:f.ref;g.focus&&(g.focus(),s.shouldSelect&&g.select())}},getFieldState:Oe}}function Gt(e={}){const i=_.useRef(),r=_.useRef(),[n,a]=_.useState({isDirty:!1,isValidating:!1,isLoading:G(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:G(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Pt(e,()=>a(d=>({...d}))),formState:n});const u=i.current.control;return u._options=e,Te({subject:u._subjects.state,next:d=>{lt(d,u._proxyFormState,u._updateFormState,!0)&&a({...u._formState})}}),_.useEffect(()=>u._disableForm(e.disabled),[u,e.disabled]),_.useEffect(()=>{if(u._proxyFormState.isDirty){const d=u._getDirty();d!==n.isDirty&&u._subjects.state.next({isDirty:d})}},[u,n.isDirty]),_.useEffect(()=>{e.values&&!Q(e.values,r.current)?(u._reset(e.values,u._options.resetOptions),r.current=e.values):u._resetDefaultValues()},[e.values,u]),_.useEffect(()=>{u._state.mount||(u._updateValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),i.current.formState=at(n,u),i.current}const rt=({defaultValue:e,name:i,control:r,rules:n,...a})=>Ye.jsx(Dt,{defaultValue:e,name:i,control:r,rules:n,render:({field:u})=>Ye.jsx(Ft,{...u,...a})});try{rt.displayName="ControlledTextInput",rt.__docgenInfo={description:"",displayName:"ControlledTextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}export{Dt as C,rt as a,Gt as u}; diff --git a/assets/ControlledTextInput-deea110c.js.map b/assets/ControlledTextInput-deea110c.js.map deleted file mode 100644 index 88641074f..000000000 --- a/assets/ControlledTextInput-deea110c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ControlledTextInput-deea110c.js","sources":["../../node_modules/.pnpm/react-hook-form@7.48.2_react@18.2.0/node_modules/react-hook-form/dist/index.esm.mjs","../../src/components/TextInput/ControlledTextInput.tsx"],"sourcesContent":["import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (data instanceof Set) {\n copy = new Set(data);\n }\n else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = (val) => val === undefined;\n\nvar get = (obj, path, defaultValue) => {\n if (!path || !isObject(obj)) {\n return defaultValue;\n }\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], obj);\n return isUndefined(result) || result === obj\n ? isUndefined(obj[path])\n ? defaultValue\n : obj[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * \n *
\n * \n * \n * \n *
\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return ;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * \n *
\n * \n * \n * \n *
\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return ;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React.useRef(props);\n _props.current = props;\n React.useEffect(() => {\n const subscription = !props.disabled &&\n _props.current.subject &&\n _props.current.subject.subscribe({\n next: _props.current.next,\n });\n return () => {\n subscription && subscription.unsubscribe();\n };\n }, [props.disabled]);\n}\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n *
\n * \n * {dirtyFields.firstName &&

Field is dirty.

}\n * \n *
\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _mounted = React.useRef(true);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n next: (value) => _mounted.current &&\n shouldSubscribeByName(_name.current, value.name, exact) &&\n shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) &&\n updateFormState({\n ...control._formState,\n ...value,\n }),\n subject: control._subjects.state,\n });\n React.useEffect(() => {\n _mounted.current = true;\n _localProxyFormState.current.isValid && control._updateValid(true);\n return () => {\n _mounted.current = false;\n };\n }, [control]);\n return getProxyFormState(formState, control, _localProxyFormState.current, false);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { control } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};\n const _name = React.useRef(name);\n _name.current = name;\n useSubscribe({\n disabled,\n subject: control._subjects.values,\n next: (formState) => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));\n }\n },\n });\n const [value, updateValue] = React.useState(control._getWatch(name, defaultValue));\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nfunction set(object, path, value) {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n object[key] = newValue;\n object = object[key];\n }\n return object;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n *
\n * \n *

{fieldState.isTouched && \"Touched\"}

\n *

{formState.isSubmitted ? \"submitted\" : \"\"}

\n *
\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n });\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n }));\n _registerProps.current = control.register(name, props.rules);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n if (get(control._fields, name)) {\n control._updateDisabledField({\n disabled,\n fields: control._fields,\n name,\n value: get(control._fields, name)._f.value,\n });\n }\n }, [disabled, name, control]);\n return {\n field: {\n name,\n value,\n ...(isBoolean(disabled) || isBoolean(formState.disabled)\n ? { disabled: formState.disabled || disabled }\n : {}),\n onChange: React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]),\n onBlur: React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control]),\n ref: (elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n },\n },\n formState,\n fieldState: Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }),\n };\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n *
\n * (\n * <>\n * \n *

{formState.isSubmitted ? \"submitted\" : \"\"}

\n *

{fieldState.isTouched ? \"touched\" : \"\"}

\n * \n * )}\n * />\n * \n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n *
\n * \n *

{errors?.root?.server && 'Server error'}

\n * \n *
\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n for (const name of control._names.mount) {\n formData.append(name, get(data, name));\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(action, {\n method,\n headers: {\n ...headers,\n ...(encType ? { 'Content-Type': encType } : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nvar generateId = () => {\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nconst iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f) {\n if (_f.refs && _f.refs[0] && action(_f.refs[0], key) && !abortEarly) {\n break;\n }\n else if (_f.ref && action(_f.ref, _f.name) && !abortEarly) {\n break;\n }\n }\n else if (isObject(currentField)) {\n iterateFieldsByAction(currentField, action);\n }\n }\n }\n};\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = compact(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMessage = (value) => isString(value);\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRegex = (value) => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, disabled, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabled) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nfunction append(data, value) {\n return [...data, ...convertToArrayPayload(value)];\n}\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nfunction prepend(data, value) {\n return [...convertToArrayPayload(value), ...convertToArrayPayload(data)];\n}\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n data[indexA] = [data[indexB], (data[indexB] = data[indexA])][0];\n};\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n *
console.log(data))}>\n * {fields.map((item, index) => (\n * \n * ))}\n * \n * \n *
\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _name = React.useRef(name);\n const _actioned = React.useRef(false);\n _name.current = name;\n _fieldIds.current = fields;\n control._names.array.add(name);\n props.rules &&\n control.register(name, props.rules);\n useSubscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === _name.current || !fieldArrayName) {\n const fieldValues = get(values, _name.current);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n subject: control._subjects.array,\n });\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._updateFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append$1 = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = append(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = append(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, append, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend$1 = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prepend(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prepend(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, prepend, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._updateFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._updateFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted)) {\n if (control._options.resolver) {\n control._executeSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field && field._f) {\n validateField(field, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.values.next({\n name,\n values: { ...control._formValues },\n });\n control._names.focus &&\n iterateFieldsByAction(control._fields, (ref, key) => {\n if (control._names.focus &&\n key.startsWith(control._names.focus) &&\n ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n });\n control._names.focus = '';\n control._updateValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._updateFieldArray(name);\n return () => {\n (control._options.shouldUnregister || shouldUnregister) &&\n control.unregister(name);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend$1, [updateValues, name, control]),\n append: React.useCallback(append$1, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\nfunction createSubject() {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n}\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (_f.refs ? _f.refs.every((ref) => ref.disabled) : ref.disabled) {\n return;\n }\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}, flushRootRender) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n errors: {},\n disabled: false,\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n const _subjects = {\n values: createSubject(),\n array: createSubject(),\n state: createSubject(),\n };\n const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _updateValid = async (shouldUpdateValid) => {\n if (_proxyFormState.isValid || shouldUpdateValid) {\n const isValid = _options.resolver\n ? isEmptyObject((await _executeSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (value) => _proxyFormState.isValidating &&\n _subjects.state.next({\n isValidating: value,\n });\n const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if (_proxyFormState.touchedFields &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _updateValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.dirtyFields &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n (_proxyFormState.touchedFields &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (props.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(props.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n _updateIsValidating(false);\n };\n const _executeSchema = async (name) => _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _executeSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const fieldError = await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n fieldValue &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1\n ? fieldReference.refs.forEach((checkboxRef) => (!checkboxRef.defaultChecked || !checkboxRef.disabled) &&\n (checkboxRef.checked = Array.isArray(fieldValue)\n ? !!fieldValue.find((data) => data === checkboxRef.value)\n : fieldValue === checkboxRef.value))\n : fieldReference.refs[0] &&\n (fieldReference.refs[0].checked = !!fieldValue);\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n !isPrimitive(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: { ..._formValues },\n });\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState });\n _subjects.values.next({\n name,\n values: { ..._formValues },\n });\n !_state.mount && flushRootRender();\n };\n const onChange = async (event) => {\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event);\n const _updateIsFieldValueUpdated = (fieldValue) => {\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n fieldValue === get(_formValues, name, fieldValue);\n };\n if (field) {\n let error;\n let isValid;\n const fieldValue = getCurrentFieldValue();\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.values.next({\n name,\n type: event.type,\n values: { ..._formValues },\n });\n if (shouldSkipValidation) {\n _proxyFormState.isValid && _updateValid();\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n _updateIsValidating(true);\n if (_options.resolver) {\n const { errors } = await _executeSchema([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n }\n else {\n error = (await validateField(field, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const _focusInput = (ref, key) => {\n if (get(_formState.errors, key) && ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n _updateIsValidating(true);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n (_proxyFormState.isValid && isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n isValidating: false,\n });\n options.shouldFocus &&\n !validationResult &&\n iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ..._defaultValues,\n ...(_state.mount ? _formValues : {}),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n error: get((formState || _formState).errors, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n set(_formState.errors, name, {\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.values.subscribe({\n next: (payload) => name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.values.next({\n values: { ..._formValues },\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _updateValid();\n };\n const _updateDisabledField = ({ disabled, name, field, fields, value, }) => {\n if (isBoolean(disabled)) {\n const inputValue = disabled\n ? undefined\n : isUndefined(value)\n ? getFieldValue(field ? field._f : get(fields, name)._f)\n : value;\n set(_formValues, name, inputValue);\n updateTouchAndDirty(name, inputValue, false, false, true);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _updateDisabledField({\n field,\n disabled: options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined ? { disabled: options.disabled } : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n iterateFieldsByAction(_fields, _focusInput, _names.mount);\n const _disableForm = (disabled) => {\n if (isBoolean(disabled)) {\n _subjects.state.next({ disabled });\n iterateFieldsByAction(_fields, (ref) => {\n ref.disabled = disabled;\n }, 0, false);\n }\n };\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n await onValid(fieldValues, e);\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors),\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, get(_defaultValues, name));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, options.defaultValue);\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, get(_defaultValues, name))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const values = formValues && !isEmptyObject(formValues)\n ? cloneUpdatedValues\n : _defaultValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {\n for (const fieldName of _names.mount) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n _fields = {};\n }\n _formValues = props.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.values.next({\n values: { ...values },\n });\n }\n _names = {\n mount: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n !_state.mount && flushRootRender();\n _state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid;\n _state.watch = !!props.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: keepStateOptions.keepDirtyValues\n ? _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect && fieldRef.select();\n }\n }\n };\n const _updateFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n return {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _updateDisabledField,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _updateFormState,\n _disableForm,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n set _formState(value) {\n _formState = value;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n *
\n * \n * \n * {errors.exampleRequired && This field is required}\n * \n *
\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef();\n const _values = React.useRef();\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n errors: {},\n disabled: false,\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n _formControl.current = {\n ...createFormControl(props, () => updateFormState((formState) => ({ ...formState }))),\n formState,\n };\n }\n const control = _formControl.current.control;\n control._options = props;\n useSubscribe({\n subject: control._subjects.state,\n next: (value) => {\n if (shouldRenderFormState(value, control._proxyFormState, control._updateFormState, true)) {\n updateFormState({ ...control._formState });\n }\n },\n });\n React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);\n React.useEffect(() => {\n if (control._proxyFormState.isDirty) {\n const isDirty = control._getDirty();\n if (isDirty !== formState.isDirty) {\n control._subjects.state.next({\n isDirty,\n });\n }\n }\n }, [control, formState.isDirty]);\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, control._options.resetOptions);\n _values.current = props.values;\n }\n else {\n control._resetDefaultValues();\n }\n }, [props.values, control]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._updateValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, Form, FormProvider, appendErrors, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n","import { Control, Controller } from 'react-hook-form'\n\nimport { PolymorphicProps } from '~/components/Box'\n\nimport { TextInput, TextInputProps } from './TextInput'\n\ntype ControlledTextInputProps = PolymorphicProps & {\n control: Control\n defaultValue?: string\n name: string\n rules?: {}\n}\n\nexport const ControlledTextInput = ({\n defaultValue,\n name,\n control,\n rules,\n ...inputProps\n}: ControlledTextInputProps) => (\n }\n />\n)\n"],"names":["isCheckBoxInput","element","isDateObject","value","isNullOrUndefined","isObjectType","isObject","getEventValue","event","getNodeParentName","name","isNameInFieldArray","names","isPlainObject","tempObject","prototypeCopy","isWeb","cloneObject","data","copy","isArray","key","compact","isUndefined","val","get","obj","path","defaultValue","result","isBoolean","EVENTS","VALIDATION_MODE","INPUT_VALIDATION_RULES","HookFormContext","React","useFormContext","getProxyFormState","formState","control","localProxyFormState","isRoot","_key","isEmptyObject","shouldRenderFormState","formStateData","_proxyFormState","updateFormState","convertToArrayPayload","shouldSubscribeByName","signalName","exact","currentName","useSubscribe","props","_props","subscription","useFormState","methods","disabled","_mounted","_localProxyFormState","_name","isString","generateWatchOutput","_names","formValues","isGlobal","fieldName","useWatch","updateValue","isKey","stringToPath","input","set","object","index","tempPath","length","lastIndex","newValue","objValue","useController","shouldUnregister","isArrayField","_registerProps","_shouldUnregisterField","updateMounted","field","elm","message","Controller","appendErrors","validateAllFieldCriteria","errors","type","getValidationModes","mode","isWatched","isBlurEvent","watchName","iterateFieldsByAction","fields","action","fieldsNames","abortEarly","_f","currentField","updateFieldArrayRootError","error","fieldArrayErrors","isFileInput","isFunction","isHTMLElement","owner","isMessage","isRadioInput","isRegex","defaultResult","validResult","getCheckboxValue","options","values","option","defaultReturn","getRadioValue","previous","getValidateError","ref","getValueAndMessage","validationData","validateField","shouldUseNativeValidation","isFieldArray","refs","required","maxLength","minLength","min","max","pattern","validate","valueAsNumber","mount","inputValue","inputRef","setCustomValidity","isRadio","isCheckBox","isRadioOrCheckbox","isEmpty","appendErrorsCurry","getMinMaxMessage","exceedMax","maxLengthMessage","minLengthMessage","maxType","minType","exceedMin","maxOutput","minOutput","valueNumber","valueDate","convertTimeToDate","time","isTime","isWeek","maxLengthOutput","minLengthOutput","patternValue","validateError","validationResult","baseGet","updatePath","isEmptyArray","unset","paths","childObject","createSubject","_observers","observer","o","isPrimitive","deepEqual","object1","object2","keys1","keys2","val1","val2","isMultipleSelect","live","objectHasFunction","markFieldsDirty","isParentNodeArray","getDirtyFieldsFromDefaultValues","dirtyFieldsFromValues","getDirtyFields","defaultValues","getFieldValueAs","valueAsDate","setValueAs","getFieldValue","getResolverOptions","_fields","criteriaMode","getRuleValue","rule","hasValidation","schemaErrorLookup","foundError","skipValidation","isTouched","isSubmitted","reValidateMode","unsetEmptyArray","defaultOptions","createFormControl","flushRootRender","_options","_formState","_defaultValues","_formValues","_state","delayErrorCallback","timer","_subjects","shouldCaptureDirtyFields","validationModeBeforeSubmit","validationModeAfterSubmit","shouldDisplayAllAssociatedErrors","debounce","callback","wait","_updateValid","shouldUpdateValid","isValid","_executeSchema","executeBuiltInValidation","_updateIsValidating","_updateFieldArray","method","args","shouldSetValues","shouldUpdateFieldsAndState","fieldValues","touchedFields","_getDirty","updateErrors","updateValidAndValue","shouldSkipSetValueAs","setFieldValue","updateTouchAndDirty","fieldValue","shouldDirty","shouldRender","shouldUpdateField","isPreviousDirty","output","isCurrentFieldPristine","isPreviousFieldTouched","shouldRenderByError","fieldState","previousFieldError","updatedFormState","executeSchemaAndUpdateState","shouldOnlyCheckValid","context","isFieldArrayRoot","fieldError","_removeUnmounted","unregister","getValues","_getWatch","_getFieldArray","fieldReference","optionRef","checkboxRef","radioRef","trigger","setValues","fieldKey","setValue","cloneValue","onChange","target","isFieldValueUpdated","getCurrentFieldValue","_updateIsFieldValueUpdated","shouldSkipValidation","watched","previousErrorLookupResult","errorLookupResult","_focusInput","fieldNames","getFieldState","clearErrors","inputName","setError","watch","payload","_updateDisabledField","register","disabledIsDefined","fieldRef","radioOrCheckbox","_focusError","_disableForm","handleSubmit","onValid","onInvalid","e","resetField","_reset","keepStateOptions","updatedValues","cloneUpdatedValues","form","reset","useForm","_formControl","_values","isDirty","ControlledTextInput","rules","inputProps","jsx","TextInput"],"mappings":"oIAEA,IAAIA,GAAmBC,GAAYA,EAAQ,OAAS,WAEhDC,GAAgBC,GAAUA,aAAiB,KAE3CC,EAAqBD,GAAUA,GAAS,KAE5C,MAAME,GAAgBF,GAAU,OAAOA,GAAU,SACjD,IAAIG,EAAYH,GAAU,CAACC,EAAkBD,CAAK,GAC9C,CAAC,MAAM,QAAQA,CAAK,GACpBE,GAAaF,CAAK,GAClB,CAACD,GAAaC,CAAK,EAEnBI,GAAiBC,GAAUF,EAASE,CAAK,GAAKA,EAAM,OAClDR,GAAgBQ,EAAM,MAAM,EACxBA,EAAM,OAAO,QACbA,EAAM,OAAO,MACjBA,EAEFC,GAAqBC,GAASA,EAAK,UAAU,EAAGA,EAAK,OAAO,aAAa,CAAC,GAAKA,EAE/EC,GAAqB,CAACC,EAAOF,IAASE,EAAM,IAAIH,GAAkBC,CAAI,CAAC,EAEvEG,GAAiBC,GAAe,CAChC,MAAMC,EAAgBD,EAAW,aAAeA,EAAW,YAAY,UACvE,OAAQR,EAASS,CAAa,GAAKA,EAAc,eAAe,eAAe,CACnF,EAEIC,GAAQ,OAAO,OAAW,KAC1B,OAAO,OAAO,YAAgB,KAC9B,OAAO,SAAa,IAExB,SAASC,EAAYC,EAAM,CACvB,IAAIC,EACJ,MAAMC,EAAU,MAAM,QAAQF,CAAI,EAClC,GAAIA,aAAgB,KAChBC,EAAO,IAAI,KAAKD,CAAI,UAEfA,aA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q,EAAM,QAGxBf,EAAQ,oBAAmB,CAElC,EAAE,CAACe,EAAM,OAAQf,CAAO,CAAC,EAC1BJ,EAAM,UAAU,IAAM,CACbI,EAAQ,OAAO,QAChBA,EAAQ,aAAY,EACpBA,EAAQ,OAAO,MAAQ,IAEvBA,EAAQ,OAAO,QACfA,EAAQ,OAAO,MAAQ,GACvBA,EAAQ,UAAU,MAAM,KAAK,CAAE,GAAGA,EAAQ,UAAU,CAAE,GAE1DA,EAAQ,iBAAgB,CAChC,CAAK,EACDyR,EAAa,QAAQ,UAAY3R,GAAkBC,EAAWC,CAAO,EAC9DyR,EAAa,OACxB,CC/7EO,MAAAG,GAAA,CAAA,CAA6B,aAAAvS,EAClC,KAAAlB,EACA,QAAA6B,EACA,MAAA6R,EACA,GAAAC,CAEF,IAAAC,GAAA,IACE3O,GAAC,CAAA,aAAA/D,EACC,KAAAlB,EACA,QAAA6B,EACA,MAAA6R,EACA,OAAA,CAAA,CAAA,MAAA5O,CAAA,IAAA8O,GAAA,IAAAC,GAAA,CAAA,GAAA/O,EAAA,GAAA6O,EAAA,CAC6D,CAC/D","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/DesignTokens.stories-f649f63e.js b/assets/DesignTokens.stories-03b352dd.js similarity index 75% rename from assets/DesignTokens.stories-f649f63e.js rename to assets/DesignTokens.stories-03b352dd.js index fe06cfe4a..5a409596f 100644 --- a/assets/DesignTokens.stories-f649f63e.js +++ b/assets/DesignTokens.stories-03b352dd.js @@ -1,4 +1,4 @@ -import{M as h}from"./chunk-HLWAVYOI-6982640e.js";import{t as r}from"./index-a7f6476c.js";import{j as e}from"./jsx-runtime-69eee039.js";import{u as d}from"./index-abfde3b8.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./index-7c191284.js";import"./index-f940c6c3.js";import"./index-ecbee218.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-d37d4223.js";import"./index-356e4a49.js";import"./color-dcee1839.js";import"./typography-f274f330.js";function c(t){const s=Object.assign({h1:"h1",p:"p",h3:"h3",strong:"strong",li:"li",b:"b"},d(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(h,{title:"Design System/Design Tokens"}),` +import{M as h}from"./chunk-HLWAVYOI-927b14e8.js";import{t as r}from"./index-a7f6476c.js";import{j as e}from"./jsx-runtime-1caa8f64.js";import{u as d}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";import"./color-dcee1839.js";import"./typography-f274f330.js";function c(t){const s=Object.assign({h1:"h1",p:"p",h3:"h3",strong:"strong",li:"li",b:"b"},d(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(h,{title:"Design System/Design Tokens"}),` `,e.jsx(s.h1,{id:"design-tokens",children:"Design Tokens"}),` `,e.jsx(s.p,{children:"Design tokens are the data representaion, the base properties and their values, on which design system is constructed. These tokens define spacing, typography, weights, colors, animation, shadows, etc."}),` `,e.jsx(s.h3,{id:"space",children:"Space"}),` @@ -19,5 +19,4 @@ import{M as h}from"./chunk-HLWAVYOI-6982640e.js";import{t as r}from"./index-a7f6 `,e.jsx(s.p,{children:e.jsx(s.strong,{children:"tokens.letterSpacings"})}),` `,e.jsx("div",{children:Object.entries(r.letterSpacings).map(([n,i])=>e.jsxs(s.li,{children:[e.jsxs(s.b,{children:[n,":"]})," ",i]},n))}),` `,e.jsx(s.p,{children:e.jsx(s.strong,{children:"tokens.lineHeights"})}),` -`,e.jsx("div",{children:Object.entries(r.lineHeights).map(([n,i])=>e.jsxs(s.li,{children:[e.jsxs(s.b,{children:[n,":"]})," ",i]},n))})]})}function l(t={}){const{wrapper:s}=Object.assign({},d(),t.components);return s?e.jsx(s,{...t,children:e.jsx(c,{...t})}):c(t)}const p=()=>{throw new Error("Docs-only story")};p.parameters={docsOnly:!0};const o={title:"Design System/Design Tokens",tags:["stories-mdx"],includeStories:["__page"]};o.parameters=o.parameters||{};o.parameters.docs={...o.parameters.docs||{},page:l};const M=["__page"];export{M as __namedExportsOrder,p as __page,o as default}; -//# sourceMappingURL=DesignTokens.stories-f649f63e.js.map +`,e.jsx("div",{children:Object.entries(r.lineHeights).map(([n,i])=>e.jsxs(s.li,{children:[e.jsxs(s.b,{children:[n,":"]})," ",i]},n))})]})}function l(t={}){const{wrapper:s}=Object.assign({},d(),t.components);return s?e.jsx(s,{...t,children:e.jsx(c,{...t})}):c(t)}const p=()=>{throw new Error("Docs-only story")};p.parameters={docsOnly:!0};const o={title:"Design System/Design Tokens",tags:["stories-mdx"],includeStories:["__page"]};o.parameters=o.parameters||{};o.parameters.docs={...o.parameters.docs||{},page:l};const w=["__page"];export{w as __namedExportsOrder,p as __page,o as default}; diff --git a/assets/DesignTokens.stories-f649f63e.js.map b/assets/DesignTokens.stories-f649f63e.js.map deleted file mode 100644 index 5b47bf061..000000000 --- a/assets/DesignTokens.stories-f649f63e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DesignTokens.stories-f649f63e.js","sources":["../../src/docs/design-system/DesignTokens.stories.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs'\n\nimport { tokens } from '../../tokens'\n\n\n\n# Design Tokens\n\nDesign tokens are the data representaion, the base properties and their values, on which design system is constructed. These tokens define spacing, typography, weights, colors, animation, shadows, etc.\n\n### Space\n\n**tokens.space**\n\n
\n {Object.entries(tokens.space).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n### Border\n\n**tokens.radii**\n\n
    \n {Object.entries(tokens.radii).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n**tokens.borderWidths**\n\n
    \n {Object.entries(tokens.borderWidths).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n### Typography\n\n**tokens.fonts**\n\n
    \n {Object.entries(tokens.fonts).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n**tokens.fontSizes**\n\n
    \n {Object.entries(tokens.fontSizes).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n**tokens.fontWeights**\n\n
    \n {Object.entries(tokens.fontWeights).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n**tokens.letterSpacings**\n\n
    \n {Object.entries(tokens.letterSpacings).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n\n**tokens.lineHeights**\n\n
    \n {Object.entries(tokens.lineHeights).map(([key, value]) => (\n
  • \n {key}: {value}\n
  • \n ))}\n
    \n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","tokens","key","value","MDXContent","MDXLayout","__page","componentMeta","__namedExportsOrder"],"mappings":"2dAMA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,GAAI,KACJ,OAAQ,SACR,GAAI,KACJ,EAAG,GACJ,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAoBG,EAAAA,KAAMC,EAAAA,SAAW,CACnC,SAAU,CAAcC,EAAI,IAACC,EAAM,CACjC,MAAO,6BACR,CAAA,EAAG;AAAA,EAAmBD,MAAKJ,EAAY,GAAI,CAC1C,GAAI,gBACJ,SAAU,eACX,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,EAAG,CACzC,SAAU,2MACX,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,GAAI,CAC1C,GAAI,QACJ,SAAU,OACX,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,EAAG,CACzC,SAAuBI,EAAAA,IAAKJ,EAAY,OAAQ,CAC9C,SAAU,cAClB,CAAO,CACP,CAAK,EAAG;AAAA,EAAmBI,EAAI,IAAC,MAAO,CACjC,SAAU,OAAO,QAAQE,EAAO,KAAK,EA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aAAa,EACpB,eAAgB,CAAC,QAAQ,CAC3B,EACAA,EAAc,WAAaA,EAAc,YAAc,GACvDA,EAAc,WAAW,KAAO,CAC9B,GAAIA,EAAc,WAAW,MAAQ,GACrC,KAAMH,CACR,EAC4B,MAAAI,EAAA,CAAA,QAAA"} \ No newline at end of file diff --git a/assets/Divider-d7d44c9d.js b/assets/Divider-a68c85d7.js similarity index 99% rename from assets/Divider-d7d44c9d.js rename to assets/Divider-a68c85d7.js index 5356cdd14..ca9001ba4 100644 --- a/assets/Divider-d7d44c9d.js +++ b/assets/Divider-a68c85d7.js @@ -1,2 +1 @@ -import{j as s}from"./jsx-runtime-69eee039.js";import{B as a}from"./Box-8ffdd394.js";const t=n=>{const{color:e="borderNormal",marginY:i="4",...r}=n;return s.jsx(a,{as:"hr",marginY:i,background:e,height:"px",borderWidth:"none",...r})};try{t.displayName="Divider",t.__docgenInfo={description:"",displayName:"Divider",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as D}; -//# sourceMappingURL=Divider-d7d44c9d.js.map +import{j as s}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";const t=n=>{const{color:e="borderNormal",marginY:i="4",...r}=n;return s.jsx(a,{as:"hr",marginY:i,background:e,height:"px",borderWidth:"none",...r})};try{t.displayName="Divider",t.__docgenInfo={description:"",displayName:"Divider",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as D}; diff --git a/assets/Divider-d7d44c9d.js.map b/assets/Divider-d7d44c9d.js.map deleted file mode 100644 index aa498d4a1..000000000 --- a/assets/Divider-d7d44c9d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Divider-d7d44c9d.js","sources":["../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { Box, BoxProps } from '~/components/Box'\n\ntype DividerProps = BoxProps\n\nexport const Divider = (props: DividerProps) => {\n const { color = 'borderNormal', marginY = '4', ...rest } = props\n\n return (\n \n )\n}\n"],"names":["Divider","props","color","marginY","rest","jsx","Box"],"mappings":"oFAIO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAA,MAAAC,EAAA,eAAA,QAAAC,EAAA,IAAA,GAAAC,CAAA,EAAAH,EAEA,OAAAI,EAAA,IACEC,EAAC,CAAA,GAAA,KACI,QAAAH,EACH,WAAAD,EACY,OAAA,KACL,YAAA,OACK,GAAAE,CACR,CAAA,CAGV"} \ No newline at end of file diff --git a/assets/Divider.stories-d88f8705.js b/assets/Divider.stories-5d5129e8.js similarity index 69% rename from assets/Divider.stories-d88f8705.js rename to assets/Divider.stories-5d5129e8.js index 89a81d65e..f5d498383 100644 --- a/assets/Divider.stories-d88f8705.js +++ b/assets/Divider.stories-5d5129e8.js @@ -1,4 +1,3 @@ -import{D as s}from"./Divider-d7d44c9d.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";const d={title:"Components/Divider",component:s},r={args:{}};var e,o,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{D as s}from"./Divider-a68c85d7.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";const d={title:"Components/Divider",component:s},r={args:{}};var e,o,t;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: {} }`,...(t=(o=r.parameters)==null?void 0:o.docs)==null?void 0:t.source}}};const u=["Default"];export{r as Default,u as __namedExportsOrder,d as default}; -//# sourceMappingURL=Divider.stories-d88f8705.js.map diff --git a/assets/Divider.stories-d88f8705.js.map b/assets/Divider.stories-d88f8705.js.map deleted file mode 100644 index 3101aa23b..000000000 --- a/assets/Divider.stories-d88f8705.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Divider.stories-d88f8705.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"} \ No newline at end of file diff --git a/assets/DocsRenderer-NNNQARDV-a3d4bd34.js b/assets/DocsRenderer-NNNQARDV-a3d4bd34.js new file mode 100644 index 000000000..c90b575f7 --- /dev/null +++ b/assets/DocsRenderer-NNNQARDV-a3d4bd34.js @@ -0,0 +1 @@ +import{D as f,d as D}from"./chunk-HLWAVYOI-927b14e8.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";export{f as DocsRenderer,D as defaultComponents}; diff --git a/assets/DocsRenderer-NNNQARDV-b287eeea.js b/assets/DocsRenderer-NNNQARDV-b287eeea.js deleted file mode 100644 index 1ebfbc987..000000000 --- a/assets/DocsRenderer-NNNQARDV-b287eeea.js +++ /dev/null @@ -1,2 +0,0 @@ -import{D as n,d as f}from"./chunk-HLWAVYOI-6982640e.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./index-7c191284.js";import"./index-f940c6c3.js";import"./index-ecbee218.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-d37d4223.js";import"./index-356e4a49.js";export{n as DocsRenderer,f as defaultComponents}; -//# sourceMappingURL=DocsRenderer-NNNQARDV-b287eeea.js.map diff --git a/assets/DocsRenderer-NNNQARDV-b287eeea.js.map b/assets/DocsRenderer-NNNQARDV-b287eeea.js.map deleted file mode 100644 index cf5d4e80c..000000000 --- a/assets/DocsRenderer-NNNQARDV-b287eeea.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DocsRenderer-NNNQARDV-b287eeea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/assets/DropdownMenu.stories-99ebbb04.js b/assets/DropdownMenu.stories-43daa643.js similarity index 93% rename from assets/DropdownMenu.stories-99ebbb04.js rename to assets/DropdownMenu.stories-43daa643.js index e6b352d47..54b013269 100644 --- a/assets/DropdownMenu.stories-99ebbb04.js +++ b/assets/DropdownMenu.stories-43daa643.js @@ -1,5 +1,4 @@ -import{j as i}from"./jsx-runtime-69eee039.js";import{r as o}from"./index-7c191284.js";import{c as U,B as ge}from"./Box-8ffdd394.js";import{I as Ye}from"./IconButton-3648ed15.js";import{h as ze,n as He}from"./WarningIcon-b42ff4ac.js";import{b as Ce,_ as u,a as k,$ as B,c as Ze,e as Je,g as Qe}from"./index-416e5a7a.js";import{c as _,b as ye,a as eo}from"./index-006d63ff.js";import{$ as oo}from"./index-e5d8d6a8.js";import{$ as to}from"./index-df712b54.js";import{$ as no}from"./index-f0ce3c30.js";import{h as ro,$ as co,b as ao,a as so}from"./Combination-eaaf64fc.js";import{$ as Ee,a as io,b as uo,c as lo,d as fo}from"./index-50d6e817.js";import{$ as po}from"./index-4e55634c.js";import{$ as re}from"./index-cd5c74af.js";import{$ as De,a as $o,b as mo}from"./index-e7e6c749.js";import{$ as _e}from"./index-8f163998.js";import"./index-cf531260.js";import{T as L}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";import{D as _o}from"./Divider-d7d44c9d.js";import"./Button-cbaba6d6.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-ecbee218.js";import"./index-3842af66.js";import"./typography-f274f330.js";const bo=["Enter"," "],xo=["ArrowDown","PageUp","Home"],Re=["ArrowUp","PageDown","End"],vo=[...xo,...Re],W="Menu",[Z,ho,wo]=oo(W),[R,Ie]=Ce(W,[wo,Ee,De]),q=Ee(),Pe=De(),[Mo,O]=R(W),[go,ce]=R(W),Co=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:c,onOpenChange:a,modal:d=!0}=e,l=q(n),[p,$]=o.useState(null),x=o.useRef(!1),f=ye(a),m=to(c);return o.useEffect(()=>{const g=()=>{x.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>x.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),o.createElement(io,l,o.createElement(Mo,{scope:n,open:t,onOpenChange:f,content:p,onContentChange:$},o.createElement(go,{scope:n,onClose:o.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:x,dir:m,modal:d},r)))},yo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(uo,u({},c,r,{ref:n}))}),Se="MenuPortal",[Eo,Do]=R(Se,{forceMount:void 0}),Ro=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:c}=e,a=O(Se,n);return o.createElement(Eo,{scope:n,forceMount:t},o.createElement(re,{present:t||a.open},o.createElement(po,{asChild:!0,container:c},r)))},y="MenuContent",[Io,ke]=R(y),Po=o.forwardRef((e,n)=>{const t=Do(y,e.__scopeMenu),{forceMount:r=t.forceMount,...c}=e,a=O(y,e.__scopeMenu),d=ce(y,e.__scopeMenu);return o.createElement(Z.Provider,{scope:e.__scopeMenu},o.createElement(re,{present:r||a.open},o.createElement(Z.Slot,{scope:e.__scopeMenu},d.modal?o.createElement(So,u({},c,{ref:n})):o.createElement(ko,u({},c,{ref:n})))))}),So=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu),r=o.useRef(null),c=B(n,r);return o.useEffect(()=>{const a=r.current;if(a)return ro(a)},[]),o.createElement(Oe,u({},e,{ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),ko=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu);return o.createElement(Oe,u({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),Oe=o.forwardRef((e,n)=>{const{__scopeMenu:t,loop:r=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:d,disableOutsidePointerEvents:l,onEntryFocus:p,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...C}=e,ie=O(y,t),X=ce(y,t),Ke=q(t),Ve=Pe(t),ue=ho(t),[Ge,le]=o.useState(null),T=o.useRef(null),Ue=B(n,T,ie.onContentChange),N=o.useRef(0),j=o.useRef(""),Be=o.useRef(0),Y=o.useRef(null),fe=o.useRef("right"),z=o.useRef(0),We=v?so:o.Fragment,qe=v?{as:Ze,allowPinchZoom:!0}:void 0,Xe=s=>{var b,h;const E=j.current+s,P=ue().filter(M=>!M.disabled),H=document.activeElement,pe=(b=P.find(M=>M.ref.current===H))===null||b===void 0?void 0:b.textValue,F=P.map(M=>M.textValue),S=Ho(F,E,pe),$e=(h=P.find(M=>M.textValue===S))===null||h===void 0?void 0:h.ref.current;(function M(me){j.current=me,window.clearTimeout(N.current),me!==""&&(N.current=window.setTimeout(()=>M(""),1e3))})(E),$e&&setTimeout(()=>$e.focus())};o.useEffect(()=>()=>window.clearTimeout(N.current),[]),co();const I=o.useCallback(s=>{var b,h;return fe.current===((b=Y.current)===null||b===void 0?void 0:b.side)&&Jo(s,(h=Y.current)===null||h===void 0?void 0:h.area)},[]);return o.createElement(Io,{scope:t,searchRef:j,onItemEnter:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),onItemLeave:o.useCallback(s=>{var b;I(s)||((b=T.current)===null||b===void 0||b.focus(),le(null))},[I]),onTriggerLeave:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),pointerGraceTimerRef:Be,onPointerGraceIntentChange:o.useCallback(s=>{Y.current=s},[])},o.createElement(We,qe,o.createElement(ao,{asChild:!0,trapped:c,onMountAutoFocus:_(a,s=>{var b;s.preventDefault(),(b=T.current)===null||b===void 0||b.focus()}),onUnmountAutoFocus:d},o.createElement(no,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g},o.createElement($o,u({asChild:!0},Ve,{dir:X.dir,orientation:"vertical",loop:r,currentTabStopId:Ge,onCurrentTabStopIdChange:le,onEntryFocus:_(p,s=>{X.isUsingKeyboardRef.current||s.preventDefault()})}),o.createElement(lo,u({role:"menu","aria-orientation":"vertical","data-state":Xo(ie.open),"data-radix-menu-content":"",dir:X.dir},Ke,C,{ref:Ue,style:{outline:"none",...C.style},onKeyDown:_(C.onKeyDown,s=>{const h=s.target.closest("[data-radix-menu-content]")===s.currentTarget,E=s.ctrlKey||s.altKey||s.metaKey,P=s.key.length===1;h&&(s.key==="Tab"&&s.preventDefault(),!E&&P&&Xe(s.key));const H=T.current;if(s.target!==H||!vo.includes(s.key))return;s.preventDefault();const F=ue().filter(S=>!S.disabled).map(S=>S.ref.current);Re.includes(s.key)&&F.reverse(),Yo(F)}),onBlur:_(e.onBlur,s=>{s.currentTarget.contains(s.target)||(window.clearTimeout(N.current),j.current="")}),onPointerMove:_(e.onPointerMove,Q(s=>{const b=s.target,h=z.current!==s.clientX;if(s.currentTarget.contains(b)&&h){const E=s.clientX>z.current?"right":"left";fe.current=E,z.current=s.clientX}}))})))))))}),Oo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"group"},r,{ref:n}))}),J="MenuItem",be="menu.itemSelect",ae=o.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:r,...c}=e,a=o.useRef(null),d=ce(J,e.__scopeMenu),l=ke(J,e.__scopeMenu),p=B(n,a),$=o.useRef(!1),x=()=>{const f=a.current;if(!t&&f){const m=new CustomEvent(be,{bubbles:!0,cancelable:!0});f.addEventListener(be,g=>r==null?void 0:r(g),{once:!0}),Je(f,m),m.defaultPrevented?$.current=!1:d.onClose()}};return o.createElement(To,u({},c,{ref:p,disabled:t,onClick:_(e.onClick,x),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),$.current=!0},onPointerUp:_(e.onPointerUp,f=>{var m;$.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:_(e.onKeyDown,f=>{const m=l.searchRef.current!=="";t||m&&f.key===" "||bo.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),To=o.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:c,...a}=e,d=ke(J,t),l=Pe(t),p=o.useRef(null),$=B(n,p),[x,f]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{const v=p.current;if(v){var C;g(((C=v.textContent)!==null&&C!==void 0?C:"").trim())}},[a.children]),o.createElement(Z.ItemSlot,{scope:t,disabled:r,textValue:c??m},o.createElement(mo,u({asChild:!0},l,{focusable:!r}),o.createElement(k.div,u({role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:$,onPointerMove:_(e.onPointerMove,Q(v=>{r?d.onItemLeave(v):(d.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:_(e.onPointerLeave,Q(v=>d.onItemLeave(v))),onFocus:_(e.onFocus,()=>f(!0)),onBlur:_(e.onBlur,()=>f(!1))}))))}),No=o.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:r,...c}=e;return o.createElement(Ne,{scope:e.__scopeMenu,checked:t},o.createElement(ae,u({role:"menuitemcheckbox","aria-checked":K(t)?"mixed":t},c,{ref:n,"data-state":se(t),onSelect:_(c.onSelect,()=>r==null?void 0:r(K(t)?!0:!t),{checkForDefaultPrevented:!1})})))}),jo="MenuRadioGroup",[Fo,Ao]=R(jo,{value:void 0,onValueChange:()=>{}}),Lo=o.forwardRef((e,n)=>{const{value:t,onValueChange:r,...c}=e,a=ye(r);return o.createElement(Fo,{scope:e.__scopeMenu,value:t,onValueChange:a},o.createElement(Oo,u({},c,{ref:n})))}),Ko="MenuRadioItem",Vo=o.forwardRef((e,n)=>{const{value:t,...r}=e,c=Ao(Ko,e.__scopeMenu),a=t===c.value;return o.createElement(Ne,{scope:e.__scopeMenu,checked:a},o.createElement(ae,u({role:"menuitemradio","aria-checked":a},r,{ref:n,"data-state":se(a),onSelect:_(r.onSelect,()=>{var d;return(d=c.onValueChange)===null||d===void 0?void 0:d.call(c,t)},{checkForDefaultPrevented:!1})})))}),Te="MenuItemIndicator",[Ne,Go]=R(Te,{checked:!1}),Uo=o.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...c}=e,a=Go(Te,t);return o.createElement(re,{present:r||K(a.checked)||a.checked===!0},o.createElement(k.span,u({},c,{ref:n,"data-state":se(a.checked)})))}),Bo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"separator","aria-orientation":"horizontal"},r,{ref:n}))}),Wo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(fo,u({},c,r,{ref:n}))}),qo="MenuSub";R(qo);function Xo(e){return e?"open":"closed"}function K(e){return e==="indeterminate"}function se(e){return K(e)?"indeterminate":e?"checked":"unchecked"}function Yo(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function zo(e,n){return e.map((t,r)=>e[(n+r)%e.length])}function Ho(e,n,t){const c=n.length>1&&Array.from(n).every($=>$===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let d=zo(e,Math.max(a,0));c.length===1&&(d=d.filter($=>$!==t));const p=d.find($=>$.toLowerCase().startsWith(c.toLowerCase()));return p!==t?p:void 0}function Zo(e,n){const{x:t,y:r}=e;let c=!1;for(let a=0,d=n.length-1;ar!=x>r&&t<($-l)*(r-p)/(x-p)+l&&(c=!c)}return c}function Jo(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Zo(t,n)}function Q(e){return n=>n.pointerType==="mouse"?e(n):void 0}const Qo=Co,et=yo,ot=Ro,tt=Po,nt=ae,rt=No,ct=Lo,at=Vo,st=Uo,dt=Bo,it=Wo,je="DropdownMenu",[ut,mn]=Ce(je,[Ie]),w=Ie(),[lt,Fe]=ut(je),ft=e=>{const{__scopeDropdownMenu:n,children:t,dir:r,open:c,defaultOpen:a,onOpenChange:d,modal:l=!0}=e,p=w(n),$=o.useRef(null),[x=!1,f]=eo({prop:c,defaultProp:a,onChange:d});return o.createElement(lt,{scope:n,triggerId:_e(),triggerRef:$,contentId:_e(),open:x,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(m=>!m),[f]),modal:l},o.createElement(Qo,u({},p,{open:x,onOpenChange:f,dir:r,modal:l}),t))},pt="DropdownMenuTrigger",$t=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...c}=e,a=Fe(pt,t),d=w(t);return o.createElement(et,u({asChild:!0},d),o.createElement(k.button,u({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:Qe(n,a.triggerRef),onPointerDown:_(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:_(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),mt=e=>{const{__scopeDropdownMenu:n,...t}=e,r=w(n);return o.createElement(ot,u({},r,t))},_t="DropdownMenuContent",bt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=Fe(_t,t),a=w(t),d=o.useRef(!1);return o.createElement(tt,u({id:c.contentId,"aria-labelledby":c.triggerId},a,r,{ref:n,onCloseAutoFocus:_(e.onCloseAutoFocus,l=>{var p;d.current||(p=c.triggerRef.current)===null||p===void 0||p.focus(),d.current=!1,l.preventDefault()}),onInteractOutside:_(e.onInteractOutside,l=>{const p=l.detail.originalEvent,$=p.button===0&&p.ctrlKey===!0,x=p.button===2||$;(!c.modal||x)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),xt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(nt,u({},c,r,{ref:n}))}),vt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(rt,u({},c,r,{ref:n}))}),ht=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(ct,u({},c,r,{ref:n}))}),wt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(at,u({},c,r,{ref:n}))}),Mt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(st,u({},c,r,{ref:n}))}),gt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(dt,u({},c,r,{ref:n}))}),Ct=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(it,u({},c,r,{ref:n}))}),yt=ft,Et=$t,Dt=mt,Rt=bt,It=xt,Pt=vt,St=ht,kt=wt,Ae=Mt,Ot=gt,Tt=Ct;var Nt="_1k2mbvi2",jt="_1k2mbvi1 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1sw fyvr1us fyvr1wo fyvr1yk fyvr11ms fyvr11tn",Le="_1k2mbvi5",de="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12wk fyvr12we fyvr11h0 fyvr11ko fyvr11jw fyvr12uz fyvr11n2 fyvr11hw fyvr12rz",Ft="_1k2mbvi6";const ee=yt,oe=Et,xe=Dt,te=({className:e,children:n,...t})=>i.jsxs(Rt,{className:U(jt,e),side:"bottom",sideOffset:4,align:"center",...t,children:[n,i.jsx(At,{})]}),At=()=>i.jsx(Tt,{className:Nt}),D=({className:e,children:n,...t})=>i.jsx(It,{className:U(de,e),asChild:!0,...t,children:i.jsx(ge,{children:i.jsx(L,{variant:"small",children:n})})}),Lt=({children:e})=>i.jsx(Ae,{className:Le,children:e}),ve=()=>i.jsx(Ot,{className:Ft,asChild:!0,children:i.jsx(_o,{marginTop:"1",marginBottom:"1"})}),V=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(Pt,{className:U(de,e),...t,ref:r,children:[i.jsx(Lt,{children:i.jsx(ze,{size:"xs"})}),i.jsx(L,{variant:"small",children:n})]})),ne=St,G=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(kt,{className:U(de,e),...t,ref:r,children:[i.jsx(Ae,{className:Le,children:i.jsx(L,{children:"•"})}),i.jsx(L,{variant:"small",children:n})]}));try{ee.displayName="DropdownMenuRoot",ee.__docgenInfo={description:"",displayName:"DropdownMenuRoot",props:{}}}catch{}try{oe.displayName="DropdownMenuTrigger",oe.__docgenInfo={description:"",displayName:"DropdownMenuTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{xe.displayName="DropdownMenuPortal",xe.__docgenInfo={description:"",displayName:"DropdownMenuPortal",props:{}}}catch{}try{te.displayName="DropdownMenuContent",te.__docgenInfo={description:"",displayName:"DropdownMenuContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{D.displayName="DropdownMenuItem",D.__docgenInfo={description:"",displayName:"DropdownMenuItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{V.displayName="DropdownMenuCheckboxItem",V.__docgenInfo={description:"",displayName:"DropdownMenuCheckboxItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{ne.displayName="DropdownMenuRadioGroup",ne.__docgenInfo={description:"",displayName:"DropdownMenuRadioGroup",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{G.displayName="DropdownMenuRadioItem",G.__docgenInfo={description:"",displayName:"DropdownMenuRadioItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const _n={title:"Components/DropdownMenu"},Kt=()=>{const[e,n]=o.useState(!0),[t,r]=o.useState(!1),[c,a]=o.useState("list");return i.jsx(ge,{justifyContent:"center",children:i.jsxs(ee,{children:[i.jsx(oe,{asChild:!0,children:i.jsx(Ye,{icon:He})}),i.jsxs(te,{children:[i.jsx(D,{children:"New Tab"}),i.jsx(D,{children:"New Window"}),i.jsx(D,{disabled:!0,children:"New Private Tab"}),i.jsx(D,{children:"Item 4"}),i.jsx(D,{children:"Item 5"}),i.jsx(ve,{}),i.jsx(V,{checked:e,onCheckedChange:d=>n(!!d),children:"Show Bookmarks"}),i.jsx(V,{checked:t,onCheckedChange:d=>r(!!d),children:"Show Full URLs"}),i.jsx(ve,{}),i.jsxs(ne,{value:c,onValueChange:d=>a(d),children:[i.jsx(G,{value:"list",children:"List"}),i.jsx(G,{value:"grid",children:"Grid"})]})]})]})})},A={render:Kt,args:{}};var he,we,Me;A.parameters={...A.parameters,docs:{...(he=A.parameters)==null?void 0:he.docs,source:{originalSource:`{ +import{j as i}from"./jsx-runtime-1caa8f64.js";import{r as o}from"./index-1cdf6ce0.js";import{c as U,B as ge}from"./Box-e4a86556.js";import{I as Ye}from"./IconButton-64184e44.js";import{h as ze,n as He}from"./WarningIcon-c4815a2d.js";import{a as Ce,_ as u,c as k,$ as B,b as Ze,e as Je,g as Qe}from"./index-bff3e5ca.js";import{c as _,b as ye,a as eo}from"./index-ed6c0076.js";import{$ as oo}from"./index-af546338.js";import{$ as to}from"./index-cb7a0887.js";import{$ as no}from"./index-c484f70b.js";import{h as ro,a as co,b as ao,$ as so}from"./Combination-b274f0b7.js";import{$ as Ee,a as io,b as uo,c as lo,d as fo}from"./index-6966b6f4.js";import{$ as po}from"./index-4fee81d2.js";import{$ as re}from"./index-5a7be88c.js";import{$ as De,a as $o,b as mo}from"./index-f015b491.js";import{$ as _e}from"./index-dad7d30c.js";import"./index-fdf8a495.js";import{T as L}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{D as _o}from"./Divider-a68c85d7.js";import"./Button-e8455a66.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-a01a9712.js";import"./index-0d95b182.js";import"./typography-f274f330.js";const bo=["Enter"," "],xo=["ArrowDown","PageUp","Home"],Re=["ArrowUp","PageDown","End"],vo=[...xo,...Re],W="Menu",[Z,ho,wo]=oo(W),[R,Ie]=Ce(W,[wo,Ee,De]),q=Ee(),Pe=De(),[Mo,O]=R(W),[go,ce]=R(W),Co=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:c,onOpenChange:a,modal:d=!0}=e,l=q(n),[p,$]=o.useState(null),x=o.useRef(!1),f=ye(a),m=to(c);return o.useEffect(()=>{const g=()=>{x.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>x.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),o.createElement(io,l,o.createElement(Mo,{scope:n,open:t,onOpenChange:f,content:p,onContentChange:$},o.createElement(go,{scope:n,onClose:o.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:x,dir:m,modal:d},r)))},yo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(uo,u({},c,r,{ref:n}))}),Se="MenuPortal",[Eo,Do]=R(Se,{forceMount:void 0}),Ro=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:c}=e,a=O(Se,n);return o.createElement(Eo,{scope:n,forceMount:t},o.createElement(re,{present:t||a.open},o.createElement(po,{asChild:!0,container:c},r)))},y="MenuContent",[Io,ke]=R(y),Po=o.forwardRef((e,n)=>{const t=Do(y,e.__scopeMenu),{forceMount:r=t.forceMount,...c}=e,a=O(y,e.__scopeMenu),d=ce(y,e.__scopeMenu);return o.createElement(Z.Provider,{scope:e.__scopeMenu},o.createElement(re,{present:r||a.open},o.createElement(Z.Slot,{scope:e.__scopeMenu},d.modal?o.createElement(So,u({},c,{ref:n})):o.createElement(ko,u({},c,{ref:n})))))}),So=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu),r=o.useRef(null),c=B(n,r);return o.useEffect(()=>{const a=r.current;if(a)return ro(a)},[]),o.createElement(Oe,u({},e,{ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))}),ko=o.forwardRef((e,n)=>{const t=O(y,e.__scopeMenu);return o.createElement(Oe,u({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))}),Oe=o.forwardRef((e,n)=>{const{__scopeMenu:t,loop:r=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:d,disableOutsidePointerEvents:l,onEntryFocus:p,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...C}=e,ie=O(y,t),X=ce(y,t),Ke=q(t),Ve=Pe(t),ue=ho(t),[Ge,le]=o.useState(null),T=o.useRef(null),Ue=B(n,T,ie.onContentChange),N=o.useRef(0),j=o.useRef(""),Be=o.useRef(0),Y=o.useRef(null),fe=o.useRef("right"),z=o.useRef(0),We=v?so:o.Fragment,qe=v?{as:Ze,allowPinchZoom:!0}:void 0,Xe=s=>{var b,h;const E=j.current+s,P=ue().filter(M=>!M.disabled),H=document.activeElement,pe=(b=P.find(M=>M.ref.current===H))===null||b===void 0?void 0:b.textValue,F=P.map(M=>M.textValue),S=Ho(F,E,pe),$e=(h=P.find(M=>M.textValue===S))===null||h===void 0?void 0:h.ref.current;(function M(me){j.current=me,window.clearTimeout(N.current),me!==""&&(N.current=window.setTimeout(()=>M(""),1e3))})(E),$e&&setTimeout(()=>$e.focus())};o.useEffect(()=>()=>window.clearTimeout(N.current),[]),co();const I=o.useCallback(s=>{var b,h;return fe.current===((b=Y.current)===null||b===void 0?void 0:b.side)&&Jo(s,(h=Y.current)===null||h===void 0?void 0:h.area)},[]);return o.createElement(Io,{scope:t,searchRef:j,onItemEnter:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),onItemLeave:o.useCallback(s=>{var b;I(s)||((b=T.current)===null||b===void 0||b.focus(),le(null))},[I]),onTriggerLeave:o.useCallback(s=>{I(s)&&s.preventDefault()},[I]),pointerGraceTimerRef:Be,onPointerGraceIntentChange:o.useCallback(s=>{Y.current=s},[])},o.createElement(We,qe,o.createElement(ao,{asChild:!0,trapped:c,onMountAutoFocus:_(a,s=>{var b;s.preventDefault(),(b=T.current)===null||b===void 0||b.focus()}),onUnmountAutoFocus:d},o.createElement(no,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:$,onPointerDownOutside:x,onFocusOutside:f,onInteractOutside:m,onDismiss:g},o.createElement($o,u({asChild:!0},Ve,{dir:X.dir,orientation:"vertical",loop:r,currentTabStopId:Ge,onCurrentTabStopIdChange:le,onEntryFocus:_(p,s=>{X.isUsingKeyboardRef.current||s.preventDefault()})}),o.createElement(lo,u({role:"menu","aria-orientation":"vertical","data-state":Xo(ie.open),"data-radix-menu-content":"",dir:X.dir},Ke,C,{ref:Ue,style:{outline:"none",...C.style},onKeyDown:_(C.onKeyDown,s=>{const h=s.target.closest("[data-radix-menu-content]")===s.currentTarget,E=s.ctrlKey||s.altKey||s.metaKey,P=s.key.length===1;h&&(s.key==="Tab"&&s.preventDefault(),!E&&P&&Xe(s.key));const H=T.current;if(s.target!==H||!vo.includes(s.key))return;s.preventDefault();const F=ue().filter(S=>!S.disabled).map(S=>S.ref.current);Re.includes(s.key)&&F.reverse(),Yo(F)}),onBlur:_(e.onBlur,s=>{s.currentTarget.contains(s.target)||(window.clearTimeout(N.current),j.current="")}),onPointerMove:_(e.onPointerMove,Q(s=>{const b=s.target,h=z.current!==s.clientX;if(s.currentTarget.contains(b)&&h){const E=s.clientX>z.current?"right":"left";fe.current=E,z.current=s.clientX}}))})))))))}),Oo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"group"},r,{ref:n}))}),J="MenuItem",be="menu.itemSelect",ae=o.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:r,...c}=e,a=o.useRef(null),d=ce(J,e.__scopeMenu),l=ke(J,e.__scopeMenu),p=B(n,a),$=o.useRef(!1),x=()=>{const f=a.current;if(!t&&f){const m=new CustomEvent(be,{bubbles:!0,cancelable:!0});f.addEventListener(be,g=>r==null?void 0:r(g),{once:!0}),Je(f,m),m.defaultPrevented?$.current=!1:d.onClose()}};return o.createElement(To,u({},c,{ref:p,disabled:t,onClick:_(e.onClick,x),onPointerDown:f=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,f),$.current=!0},onPointerUp:_(e.onPointerUp,f=>{var m;$.current||(m=f.currentTarget)===null||m===void 0||m.click()}),onKeyDown:_(e.onKeyDown,f=>{const m=l.searchRef.current!=="";t||m&&f.key===" "||bo.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),To=o.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:c,...a}=e,d=ke(J,t),l=Pe(t),p=o.useRef(null),$=B(n,p),[x,f]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{const v=p.current;if(v){var C;g(((C=v.textContent)!==null&&C!==void 0?C:"").trim())}},[a.children]),o.createElement(Z.ItemSlot,{scope:t,disabled:r,textValue:c??m},o.createElement(mo,u({asChild:!0},l,{focusable:!r}),o.createElement(k.div,u({role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:$,onPointerMove:_(e.onPointerMove,Q(v=>{r?d.onItemLeave(v):(d.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:_(e.onPointerLeave,Q(v=>d.onItemLeave(v))),onFocus:_(e.onFocus,()=>f(!0)),onBlur:_(e.onBlur,()=>f(!1))}))))}),No=o.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:r,...c}=e;return o.createElement(Ne,{scope:e.__scopeMenu,checked:t},o.createElement(ae,u({role:"menuitemcheckbox","aria-checked":K(t)?"mixed":t},c,{ref:n,"data-state":se(t),onSelect:_(c.onSelect,()=>r==null?void 0:r(K(t)?!0:!t),{checkForDefaultPrevented:!1})})))}),jo="MenuRadioGroup",[Fo,Ao]=R(jo,{value:void 0,onValueChange:()=>{}}),Lo=o.forwardRef((e,n)=>{const{value:t,onValueChange:r,...c}=e,a=ye(r);return o.createElement(Fo,{scope:e.__scopeMenu,value:t,onValueChange:a},o.createElement(Oo,u({},c,{ref:n})))}),Ko="MenuRadioItem",Vo=o.forwardRef((e,n)=>{const{value:t,...r}=e,c=Ao(Ko,e.__scopeMenu),a=t===c.value;return o.createElement(Ne,{scope:e.__scopeMenu,checked:a},o.createElement(ae,u({role:"menuitemradio","aria-checked":a},r,{ref:n,"data-state":se(a),onSelect:_(r.onSelect,()=>{var d;return(d=c.onValueChange)===null||d===void 0?void 0:d.call(c,t)},{checkForDefaultPrevented:!1})})))}),Te="MenuItemIndicator",[Ne,Go]=R(Te,{checked:!1}),Uo=o.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:r,...c}=e,a=Go(Te,t);return o.createElement(re,{present:r||K(a.checked)||a.checked===!0},o.createElement(k.span,u({},c,{ref:n,"data-state":se(a.checked)})))}),Bo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e;return o.createElement(k.div,u({role:"separator","aria-orientation":"horizontal"},r,{ref:n}))}),Wo=o.forwardRef((e,n)=>{const{__scopeMenu:t,...r}=e,c=q(t);return o.createElement(fo,u({},c,r,{ref:n}))}),qo="MenuSub";R(qo);function Xo(e){return e?"open":"closed"}function K(e){return e==="indeterminate"}function se(e){return K(e)?"indeterminate":e?"checked":"unchecked"}function Yo(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function zo(e,n){return e.map((t,r)=>e[(n+r)%e.length])}function Ho(e,n,t){const c=n.length>1&&Array.from(n).every($=>$===n[0])?n[0]:n,a=t?e.indexOf(t):-1;let d=zo(e,Math.max(a,0));c.length===1&&(d=d.filter($=>$!==t));const p=d.find($=>$.toLowerCase().startsWith(c.toLowerCase()));return p!==t?p:void 0}function Zo(e,n){const{x:t,y:r}=e;let c=!1;for(let a=0,d=n.length-1;ar!=x>r&&t<($-l)*(r-p)/(x-p)+l&&(c=!c)}return c}function Jo(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Zo(t,n)}function Q(e){return n=>n.pointerType==="mouse"?e(n):void 0}const Qo=Co,et=yo,ot=Ro,tt=Po,nt=ae,rt=No,ct=Lo,at=Vo,st=Uo,dt=Bo,it=Wo,je="DropdownMenu",[ut,mn]=Ce(je,[Ie]),w=Ie(),[lt,Fe]=ut(je),ft=e=>{const{__scopeDropdownMenu:n,children:t,dir:r,open:c,defaultOpen:a,onOpenChange:d,modal:l=!0}=e,p=w(n),$=o.useRef(null),[x=!1,f]=eo({prop:c,defaultProp:a,onChange:d});return o.createElement(lt,{scope:n,triggerId:_e(),triggerRef:$,contentId:_e(),open:x,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(m=>!m),[f]),modal:l},o.createElement(Qo,u({},p,{open:x,onOpenChange:f,dir:r,modal:l}),t))},pt="DropdownMenuTrigger",$t=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...c}=e,a=Fe(pt,t),d=w(t);return o.createElement(et,u({asChild:!0},d),o.createElement(k.button,u({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},c,{ref:Qe(n,a.triggerRef),onPointerDown:_(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:_(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))}),mt=e=>{const{__scopeDropdownMenu:n,...t}=e,r=w(n);return o.createElement(ot,u({},r,t))},_t="DropdownMenuContent",bt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=Fe(_t,t),a=w(t),d=o.useRef(!1);return o.createElement(tt,u({id:c.contentId,"aria-labelledby":c.triggerId},a,r,{ref:n,onCloseAutoFocus:_(e.onCloseAutoFocus,l=>{var p;d.current||(p=c.triggerRef.current)===null||p===void 0||p.focus(),d.current=!1,l.preventDefault()}),onInteractOutside:_(e.onInteractOutside,l=>{const p=l.detail.originalEvent,$=p.button===0&&p.ctrlKey===!0,x=p.button===2||$;(!c.modal||x)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),xt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(nt,u({},c,r,{ref:n}))}),vt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(rt,u({},c,r,{ref:n}))}),ht=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(ct,u({},c,r,{ref:n}))}),wt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(at,u({},c,r,{ref:n}))}),Mt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(st,u({},c,r,{ref:n}))}),gt=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(dt,u({},c,r,{ref:n}))}),Ct=o.forwardRef((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,c=w(t);return o.createElement(it,u({},c,r,{ref:n}))}),yt=ft,Et=$t,Dt=mt,Rt=bt,It=xt,Pt=vt,St=ht,kt=wt,Ae=Mt,Ot=gt,Tt=Ct;var Nt="_1k2mbvi2",jt="_1k2mbvi1 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1sw fyvr1us fyvr1wo fyvr1yk fyvr11ms fyvr11tn",Le="_1k2mbvi5",de="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12wk fyvr12we fyvr11h0 fyvr11ko fyvr11jw fyvr12uz fyvr11n2 fyvr11hw fyvr12rz",Ft="_1k2mbvi6";const ee=yt,oe=Et,xe=Dt,te=({className:e,children:n,...t})=>i.jsxs(Rt,{className:U(jt,e),side:"bottom",sideOffset:4,align:"center",...t,children:[n,i.jsx(At,{})]}),At=()=>i.jsx(Tt,{className:Nt}),D=({className:e,children:n,...t})=>i.jsx(It,{className:U(de,e),asChild:!0,...t,children:i.jsx(ge,{children:i.jsx(L,{variant:"small",children:n})})}),Lt=({children:e})=>i.jsx(Ae,{className:Le,children:e}),ve=()=>i.jsx(Ot,{className:Ft,asChild:!0,children:i.jsx(_o,{marginTop:"1",marginBottom:"1"})}),V=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(Pt,{className:U(de,e),...t,ref:r,children:[i.jsx(Lt,{children:i.jsx(ze,{size:"xs"})}),i.jsx(L,{variant:"small",children:n})]})),ne=St,G=o.forwardRef(({className:e,children:n,...t},r)=>i.jsxs(kt,{className:U(de,e),...t,ref:r,children:[i.jsx(Ae,{className:Le,children:i.jsx(L,{children:"•"})}),i.jsx(L,{variant:"small",children:n})]}));try{ee.displayName="DropdownMenuRoot",ee.__docgenInfo={description:"",displayName:"DropdownMenuRoot",props:{}}}catch{}try{oe.displayName="DropdownMenuTrigger",oe.__docgenInfo={description:"",displayName:"DropdownMenuTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{xe.displayName="DropdownMenuPortal",xe.__docgenInfo={description:"",displayName:"DropdownMenuPortal",props:{}}}catch{}try{te.displayName="DropdownMenuContent",te.__docgenInfo={description:"",displayName:"DropdownMenuContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{D.displayName="DropdownMenuItem",D.__docgenInfo={description:"",displayName:"DropdownMenuItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{V.displayName="DropdownMenuCheckboxItem",V.__docgenInfo={description:"",displayName:"DropdownMenuCheckboxItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{ne.displayName="DropdownMenuRadioGroup",ne.__docgenInfo={description:"",displayName:"DropdownMenuRadioGroup",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{G.displayName="DropdownMenuRadioItem",G.__docgenInfo={description:"",displayName:"DropdownMenuRadioItem",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const _n={title:"Components/DropdownMenu"},Kt=()=>{const[e,n]=o.useState(!0),[t,r]=o.useState(!1),[c,a]=o.useState("list");return i.jsx(ge,{justifyContent:"center",children:i.jsxs(ee,{children:[i.jsx(oe,{asChild:!0,children:i.jsx(Ye,{icon:He})}),i.jsxs(te,{children:[i.jsx(D,{children:"New Tab"}),i.jsx(D,{children:"New Window"}),i.jsx(D,{disabled:!0,children:"New Private Tab"}),i.jsx(D,{children:"Item 4"}),i.jsx(D,{children:"Item 5"}),i.jsx(ve,{}),i.jsx(V,{checked:e,onCheckedChange:d=>n(!!d),children:"Show Bookmarks"}),i.jsx(V,{checked:t,onCheckedChange:d=>r(!!d),children:"Show Full URLs"}),i.jsx(ve,{}),i.jsxs(ne,{value:c,onValueChange:d=>a(d),children:[i.jsx(G,{value:"list",children:"List"}),i.jsx(G,{value:"grid",children:"Grid"})]})]})]})})},A={render:Kt,args:{}};var he,we,Me;A.parameters={...A.parameters,docs:{...(he=A.parameters)==null?void 0:he.docs,source:{originalSource:`{ render: StoryWrapper, args: {} }`,...(Me=(we=A.parameters)==null?void 0:we.docs)==null?void 0:Me.source}}};const bn=["Default"];export{A as Default,bn as __namedExportsOrder,_n as default}; -//# sourceMappingURL=DropdownMenu.stories-99ebbb04.js.map diff --git a/assets/DropdownMenu.stories-99ebbb04.js.map b/assets/DropdownMenu.stories-99ebbb04.js.map deleted file mode 100644 index 41a0e6f94..000000000 --- a/assets/DropdownMenu.stories-99ebbb04.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DropdownMenu.stories-99ebbb04.js","sources":["../../node_modules/.pnpm/@radix-ui+react-menu@2.0.6_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.0.6_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs","../../src/components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import $epM9y$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $epM9y$useState, useRef as $epM9y$useRef, useEffect as $epM9y$useEffect, createElement as $epM9y$createElement, useCallback as $epM9y$useCallback, forwardRef as $epM9y$forwardRef, Fragment as $epM9y$Fragment} from \"react\";\nimport {composeEventHandlers as $epM9y$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $epM9y$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $epM9y$useComposedRefs, composeRefs as $epM9y$composeRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $epM9y$createContextScope} from \"@radix-ui/react-context\";\nimport {useDirection as $epM9y$useDirection} from \"@radix-ui/react-direction\";\nimport {DismissableLayer as $epM9y$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useFocusGuards as $epM9y$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {FocusScope as $epM9y$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {useId as $epM9y$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $epM9y$createPopperScope, Root as $epM9y$Root, Anchor as $epM9y$Anchor, Content as $epM9y$Content, Arrow as $epM9y$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $epM9y$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $epM9y$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $epM9y$Primitive, dispatchDiscreteCustomEvent as $epM9y$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {createRovingFocusGroupScope as $epM9y$createRovingFocusGroupScope, Root as $epM9y$Root1, Item as $epM9y$Item} from \"@radix-ui/react-roving-focus\";\nimport {Slot as $epM9y$Slot} from \"@radix-ui/react-slot\";\nimport {useCallbackRef as $epM9y$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {hideOthers as $epM9y$hideOthers} from \"aria-hidden\";\nimport {RemoveScroll as $epM9y$RemoveScroll} from \"react-remove-scroll\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $6cc32821e9371a1c$var$SELECTION_KEYS = [\n 'Enter',\n ' '\n];\nconst $6cc32821e9371a1c$var$FIRST_KEYS = [\n 'ArrowDown',\n 'PageUp',\n 'Home'\n];\nconst $6cc32821e9371a1c$var$LAST_KEYS = [\n 'ArrowUp',\n 'PageDown',\n 'End'\n];\nconst $6cc32821e9371a1c$var$FIRST_LAST_KEYS = [\n ...$6cc32821e9371a1c$var$FIRST_KEYS,\n ...$6cc32821e9371a1c$var$LAST_KEYS\n];\nconst $6cc32821e9371a1c$var$SUB_OPEN_KEYS = {\n ltr: [\n ...$6cc32821e9371a1c$var$SELECTION_KEYS,\n 'ArrowRight'\n ],\n rtl: [\n ...$6cc32821e9371a1c$var$SELECTION_KEYS,\n 'ArrowLeft'\n ]\n};\nconst $6cc32821e9371a1c$var$SUB_CLOSE_KEYS = {\n ltr: [\n 'ArrowLeft'\n ],\n rtl: [\n 'ArrowRight'\n ]\n};\n/* -------------------------------------------------------------------------------------------------\n * Menu\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$MENU_NAME = 'Menu';\nconst [$6cc32821e9371a1c$var$Collection, $6cc32821e9371a1c$var$useCollection, $6cc32821e9371a1c$var$createCollectionScope] = $epM9y$createCollection($6cc32821e9371a1c$var$MENU_NAME);\nconst [$6cc32821e9371a1c$var$createMenuContext, $6cc32821e9371a1c$export$4027731b685e72eb] = $epM9y$createContextScope($6cc32821e9371a1c$var$MENU_NAME, [\n $6cc32821e9371a1c$var$createCollectionScope,\n $epM9y$createPopperScope,\n $epM9y$createRovingFocusGroupScope\n]);\nconst $6cc32821e9371a1c$var$usePopperScope = $epM9y$createPopperScope();\nconst $6cc32821e9371a1c$var$useRovingFocusGroupScope = $epM9y$createRovingFocusGroupScope();\nconst [$6cc32821e9371a1c$var$MenuProvider, $6cc32821e9371a1c$var$useMenuContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);\nconst [$6cc32821e9371a1c$var$MenuRootProvider, $6cc32821e9371a1c$var$useMenuRootContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$MENU_NAME);\nconst $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{\n const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true } = props;\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n const [content, setContent] = $epM9y$useState(null);\n const isUsingKeyboardRef = $epM9y$useRef(false);\n const handleOpenChange = $epM9y$useCallbackRef(onOpenChange);\n const direction = $epM9y$useDirection(dir);\n $epM9y$useEffect(()=>{\n // Capture phase ensures we set the boolean before any side effects execute\n // in response to the key or pointer event as they might depend on this value.\n const handleKeyDown = ()=>{\n isUsingKeyboardRef.current = true;\n document.addEventListener('pointerdown', handlePointer, {\n capture: true,\n once: true\n });\n document.addEventListener('pointermove', handlePointer, {\n capture: true,\n once: true\n });\n };\n const handlePointer = ()=>isUsingKeyboardRef.current = false\n ;\n document.addEventListener('keydown', handleKeyDown, {\n capture: true\n });\n return ()=>{\n document.removeEventListener('keydown', handleKeyDown, {\n capture: true\n });\n document.removeEventListener('pointerdown', handlePointer, {\n capture: true\n });\n document.removeEventListener('pointermove', handlePointer, {\n capture: true\n });\n };\n }, []);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Root, popperScope, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuProvider, {\n scope: __scopeMenu,\n open: open,\n onOpenChange: handleOpenChange,\n content: content,\n onContentChange: setContent\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuRootProvider, {\n scope: __scopeMenu,\n onClose: $epM9y$useCallback(()=>handleOpenChange(false)\n , [\n handleOpenChange\n ]),\n isUsingKeyboardRef: isUsingKeyboardRef,\n dir: direction,\n modal: modal\n }, children)));\n};\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$d9b273488cd8ce6f, {\n displayName: $6cc32821e9371a1c$var$MENU_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuAnchor\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ANCHOR_NAME = 'MenuAnchor';\nconst $6cc32821e9371a1c$export$9fa5ebd18bee4d43 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...anchorProps } = props;\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Anchor, $epM9y$babelruntimehelpersesmextends({}, popperScope, anchorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$9fa5ebd18bee4d43, {\n displayName: $6cc32821e9371a1c$var$ANCHOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuPortal\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$PORTAL_NAME = 'MenuPortal';\nconst [$6cc32821e9371a1c$var$PortalProvider, $6cc32821e9371a1c$var$usePortalContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $6cc32821e9371a1c$export$793392f970497feb = (props)=>{\n const { __scopeMenu: __scopeMenu , forceMount: forceMount , children: children , container: container } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$PORTAL_NAME, __scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$PortalProvider, {\n scope: __scopeMenu,\n forceMount: forceMount\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Portal, {\n asChild: true,\n container: container\n }, children)));\n};\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$793392f970497feb, {\n displayName: $6cc32821e9371a1c$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuContent\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$CONTENT_NAME = 'MenuContent';\nconst [$6cc32821e9371a1c$var$MenuContentProvider, $6cc32821e9371a1c$var$useMenuContentContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$CONTENT_NAME);\nconst $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const portalContext = $6cc32821e9371a1c$var$usePortalContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Provider, {\n scope: props.__scopeMenu\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Slot, {\n scope: props.__scopeMenu\n }, rootContext.modal ? /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuRootContentModal, $epM9y$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, $epM9y$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })))));\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuRootContentModal = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const ref = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref); // Hide everything from ARIA except the `MenuContent`\n $epM9y$useEffect(()=>{\n const content = ref.current;\n if (content) return $epM9y$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentImpl, $epM9y$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure we're not trapping once it's been closed\n ,\n trapFocus: context.open // make sure to only disable pointer events when open\n ,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $epM9y$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n , {\n checkForDefaultPrevented: false\n }),\n onDismiss: ()=>context.onOpenChange(false)\n }));\n});\nconst $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentImpl, $epM9y$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: ()=>context.onOpenChange(false)\n }));\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuContentImpl = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , loop: loop = false , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , disableOutsidePointerEvents: disableOutsidePointerEvents , onEntryFocus: onEntryFocus , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , disableOutsideScroll: disableOutsideScroll , ...contentProps } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, __scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, __scopeMenu);\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = $6cc32821e9371a1c$var$useRovingFocusGroupScope(__scopeMenu);\n const getItems = $6cc32821e9371a1c$var$useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = $epM9y$useState(null);\n const contentRef = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = $epM9y$useRef(0);\n const searchRef = $epM9y$useRef('');\n const pointerGraceTimerRef = $epM9y$useRef(0);\n const pointerGraceIntentRef = $epM9y$useRef(null);\n const pointerDirRef = $epM9y$useRef('right');\n const lastPointerXRef = $epM9y$useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? $epM9y$RemoveScroll : $epM9y$Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? {\n as: $epM9y$Slot,\n allowPinchZoom: true\n } : undefined;\n const handleTypeaheadSearch = (key)=>{\n var _items$find, _items$find2;\n const search = searchRef.current + key;\n const items = getItems().filter((item)=>!item.disabled\n );\n const currentItem = document.activeElement;\n const currentMatch = (_items$find = items.find((item)=>item.ref.current === currentItem\n )) === null || _items$find === void 0 ? void 0 : _items$find.textValue;\n const values = items.map((item)=>item.textValue\n );\n const nextMatch = $6cc32821e9371a1c$var$getNextMatch(values, search, currentMatch);\n const newItem = (_items$find2 = items.find((item)=>item.textValue === nextMatch\n )) === null || _items$find2 === void 0 ? void 0 : _items$find2.ref.current; // Reset `searchRef` 1 second after it was last updated\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== '') timerRef.current = window.setTimeout(()=>updateSearch('')\n , 1000);\n })(search);\n if (newItem) /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>newItem.focus()\n );\n };\n $epM9y$useEffect(()=>{\n return ()=>window.clearTimeout(timerRef.current)\n ;\n }, []); // Make sure the whole tree has focus guards as our `MenuContent` may be\n // the last element in the DOM (beacuse of the `Portal`)\n $epM9y$useFocusGuards();\n const isPointerMovingToSubmenu = $epM9y$useCallback((event)=>{\n var _pointerGraceIntentRe, _pointerGraceIntentRe2;\n const isMovingTowards = pointerDirRef.current === ((_pointerGraceIntentRe = pointerGraceIntentRef.current) === null || _pointerGraceIntentRe === void 0 ? void 0 : _pointerGraceIntentRe.side);\n return isMovingTowards && $6cc32821e9371a1c$var$isPointerInGraceArea(event, (_pointerGraceIntentRe2 = pointerGraceIntentRef.current) === null || _pointerGraceIntentRe2 === void 0 ? void 0 : _pointerGraceIntentRe2.area);\n }, []);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentProvider, {\n scope: __scopeMenu,\n searchRef: searchRef,\n onItemEnter: $epM9y$useCallback((event)=>{\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n }, [\n isPointerMovingToSubmenu\n ]),\n onItemLeave: $epM9y$useCallback((event)=>{\n var _contentRef$current;\n if (isPointerMovingToSubmenu(event)) return;\n (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 || _contentRef$current.focus();\n setCurrentItemId(null);\n }, [\n isPointerMovingToSubmenu\n ]),\n onTriggerLeave: $epM9y$useCallback((event)=>{\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n }, [\n isPointerMovingToSubmenu\n ]),\n pointerGraceTimerRef: pointerGraceTimerRef,\n onPointerGraceIntentChange: $epM9y$useCallback((intent)=>{\n pointerGraceIntentRef.current = intent;\n }, [])\n }, /*#__PURE__*/ $epM9y$createElement(ScrollLockWrapper, scrollLockWrapperProps, /*#__PURE__*/ $epM9y$createElement($epM9y$FocusScope, {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: $epM9y$composeEventHandlers(onOpenAutoFocus, (event)=>{\n var _contentRef$current2;\n // when opening, explicitly focus the content area only and leave\n // `onEntryFocus` in control of focusing first item\n event.preventDefault();\n (_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 || _contentRef$current2.focus();\n }),\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: disableOutsidePointerEvents,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside,\n onFocusOutside: onFocusOutside,\n onInteractOutside: onInteractOutside,\n onDismiss: onDismiss\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Root1, $epM9y$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop: loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: $epM9y$composeEventHandlers(onEntryFocus, (event)=>{\n // only focus first item when using keyboard\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n })\n }), /*#__PURE__*/ $epM9y$createElement($epM9y$Content, $epM9y$babelruntimehelpersesmextends({\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": $6cc32821e9371a1c$var$getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir\n }, popperScope, contentProps, {\n ref: composedRefs,\n style: {\n outline: 'none',\n ...contentProps.style\n },\n onKeyDown: $epM9y$composeEventHandlers(contentProps.onKeyDown, (event)=>{\n // submenu key events bubble through portals. We only care about keys in this menu.\n const target = event.target;\n const isKeyDownInside = target.closest('[data-radix-menu-content]') === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n // menus should not be navigated using tab key so we prevent it\n if (event.key === 'Tab') event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n } // focus first/last item based on key pressed\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!$6cc32821e9371a1c$var$FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item)=>!item.disabled\n );\n const candidateNodes = items.map((item)=>item.ref.current\n );\n if ($6cc32821e9371a1c$var$LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n $6cc32821e9371a1c$var$focusFirst(candidateNodes);\n }),\n onBlur: $epM9y$composeEventHandlers(props.onBlur, (event)=>{\n // clear search buffer when leaving the menu\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = '';\n }\n }),\n onPointerMove: $epM9y$composeEventHandlers(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX; // We don't use `event.movementX` for this check because Safari will\n // always return `0` on a pointer event.\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? 'right' : 'left';\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n }))\n })))))));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$479f0f2f71193efe, {\n displayName: $6cc32821e9371a1c$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuGroup\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$GROUP_NAME = 'MenuGroup';\nconst $6cc32821e9371a1c$export$22a631d1f72787bb = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...groupProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({\n role: \"group\"\n }, groupProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$22a631d1f72787bb, {\n displayName: $6cc32821e9371a1c$var$GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuLabel\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$LABEL_NAME = 'MenuLabel';\nconst $6cc32821e9371a1c$export$dd37bec0e8a99143 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...labelProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({}, labelProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$dd37bec0e8a99143, {\n displayName: $6cc32821e9371a1c$var$LABEL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuItem\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ITEM_NAME = 'MenuItem';\nconst $6cc32821e9371a1c$var$ITEM_SELECT = 'menu.itemSelect';\nconst $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { disabled: disabled = false , onSelect: onSelect , ...itemProps } = props;\n const ref = $epM9y$useRef(null);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$ITEM_NAME, props.__scopeMenu);\n const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$ITEM_NAME, props.__scopeMenu);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = $epM9y$useRef(false);\n const handleSelect = ()=>{\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent($6cc32821e9371a1c$var$ITEM_SELECT, {\n bubbles: true,\n cancelable: true\n });\n menuItem.addEventListener($6cc32821e9371a1c$var$ITEM_SELECT, (event)=>onSelect === null || onSelect === void 0 ? void 0 : onSelect(event)\n , {\n once: true\n });\n $epM9y$dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) isPointerDownRef.current = false;\n else rootContext.onClose();\n }\n };\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuItemImpl, $epM9y$babelruntimehelpersesmextends({}, itemProps, {\n ref: composedRefs,\n disabled: disabled,\n onClick: $epM9y$composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event)=>{\n var _props$onPointerDown;\n (_props$onPointerDown = props.onPointerDown) === null || _props$onPointerDown === void 0 || _props$onPointerDown.call(props, event);\n isPointerDownRef.current = true;\n },\n onPointerUp: $epM9y$composeEventHandlers(props.onPointerUp, (event)=>{\n var _event$currentTarget;\n // Pointer down can move to a different menu item which should activate it on pointer up.\n // We dispatch a click for selection to allow composition with click based triggers and to\n // prevent Firefox from getting stuck in text selection mode when the menu closes.\n if (!isPointerDownRef.current) (_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 || _event$currentTarget.click();\n }),\n onKeyDown: $epM9y$composeEventHandlers(props.onKeyDown, (event)=>{\n const isTypingAhead = contentContext.searchRef.current !== '';\n if (disabled || isTypingAhead && event.key === ' ') return;\n if ($6cc32821e9371a1c$var$SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n /**\n * We prevent default browser behaviour for selection keys as they should trigger\n * a selection only:\n * - prevents space from scrolling the page.\n * - if keydown causes focus to move, prevents keydown from firing on the new target.\n */ event.preventDefault();\n }\n })\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$2ce376c2cc3355c8, {\n displayName: $6cc32821e9371a1c$var$ITEM_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6cc32821e9371a1c$var$MenuItemImpl = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , disabled: disabled = false , textValue: textValue , ...itemProps } = props;\n const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = $6cc32821e9371a1c$var$useRovingFocusGroupScope(__scopeMenu);\n const ref = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = $epM9y$useState(false); // get the item's `.textContent` as default strategy for typeahead `textValue`\n const [textContent, setTextContent] = $epM9y$useState('');\n $epM9y$useEffect(()=>{\n const menuItem = ref.current;\n if (menuItem) {\n var _menuItem$textContent;\n setTextContent(((_menuItem$textContent = menuItem.textContent) !== null && _menuItem$textContent !== void 0 ? _menuItem$textContent : '').trim());\n }\n }, [\n itemProps.children\n ]);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.ItemSlot, {\n scope: __scopeMenu,\n disabled: disabled,\n textValue: textValue !== null && textValue !== void 0 ? textValue : textContent\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Item, $epM9y$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n focusable: !disabled\n }), /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? '' : undefined,\n \"aria-disabled\": disabled || undefined,\n \"data-disabled\": disabled ? '' : undefined\n }, itemProps, {\n ref: composedRefs,\n onPointerMove: $epM9y$composeEventHandlers(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{\n if (disabled) contentContext.onItemLeave(event);\n else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus();\n }\n }\n })),\n onPointerLeave: $epM9y$composeEventHandlers(props.onPointerLeave, $6cc32821e9371a1c$var$whenMouse((event)=>contentContext.onItemLeave(event)\n )),\n onFocus: $epM9y$composeEventHandlers(props.onFocus, ()=>setIsFocused(true)\n ),\n onBlur: $epM9y$composeEventHandlers(props.onBlur, ()=>setIsFocused(false)\n )\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuCheckboxItem\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$CHECKBOX_ITEM_NAME = 'MenuCheckboxItem';\nconst $6cc32821e9371a1c$export$f6f243521332502d = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { checked: checked = false , onCheckedChange: onCheckedChange , ...checkboxItemProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {\n scope: props.__scopeMenu,\n checked: checked\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, $epM9y$babelruntimehelpersesmextends({\n role: \"menuitemcheckbox\",\n \"aria-checked\": $6cc32821e9371a1c$var$isIndeterminate(checked) ? 'mixed' : checked\n }, checkboxItemProps, {\n ref: forwardedRef,\n \"data-state\": $6cc32821e9371a1c$var$getCheckedState(checked),\n onSelect: $epM9y$composeEventHandlers(checkboxItemProps.onSelect, ()=>onCheckedChange === null || onCheckedChange === void 0 ? void 0 : onCheckedChange($6cc32821e9371a1c$var$isIndeterminate(checked) ? true : !checked)\n , {\n checkForDefaultPrevented: false\n })\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$f6f243521332502d, {\n displayName: $6cc32821e9371a1c$var$CHECKBOX_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuRadioGroup\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$RADIO_GROUP_NAME = 'MenuRadioGroup';\nconst [$6cc32821e9371a1c$var$RadioGroupProvider, $6cc32821e9371a1c$var$useRadioGroupContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$RADIO_GROUP_NAME, {\n value: undefined,\n onValueChange: ()=>{}\n});\nconst $6cc32821e9371a1c$export$ea2200c9eee416b3 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { value: value , onValueChange: onValueChange , ...groupProps } = props;\n const handleValueChange = $epM9y$useCallbackRef(onValueChange);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$RadioGroupProvider, {\n scope: props.__scopeMenu,\n value: value,\n onValueChange: handleValueChange\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$22a631d1f72787bb, $epM9y$babelruntimehelpersesmextends({}, groupProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$ea2200c9eee416b3, {\n displayName: $6cc32821e9371a1c$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuRadioItem\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$RADIO_ITEM_NAME = 'MenuRadioItem';\nconst $6cc32821e9371a1c$export$69bd225e9817f6d0 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { value: value , ...radioItemProps } = props;\n const context = $6cc32821e9371a1c$var$useRadioGroupContext($6cc32821e9371a1c$var$RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {\n scope: props.__scopeMenu,\n checked: checked\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, $epM9y$babelruntimehelpersesmextends({\n role: \"menuitemradio\",\n \"aria-checked\": checked\n }, radioItemProps, {\n ref: forwardedRef,\n \"data-state\": $6cc32821e9371a1c$var$getCheckedState(checked),\n onSelect: $epM9y$composeEventHandlers(radioItemProps.onSelect, ()=>{\n var _context$onValueChang;\n return (_context$onValueChang = context.onValueChange) === null || _context$onValueChang === void 0 ? void 0 : _context$onValueChang.call(context, value);\n }, {\n checkForDefaultPrevented: false\n })\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$69bd225e9817f6d0, {\n displayName: $6cc32821e9371a1c$var$RADIO_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuItemIndicator\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ITEM_INDICATOR_NAME = 'MenuItemIndicator';\nconst [$6cc32821e9371a1c$var$ItemIndicatorProvider, $6cc32821e9371a1c$var$useItemIndicatorContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, {\n checked: false\n});\nconst $6cc32821e9371a1c$export$a2593e23056970a3 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , forceMount: forceMount , ...itemIndicatorProps } = props;\n const indicatorContext = $6cc32821e9371a1c$var$useItemIndicatorContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, __scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || $6cc32821e9371a1c$var$isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.span, $epM9y$babelruntimehelpersesmextends({}, itemIndicatorProps, {\n ref: forwardedRef,\n \"data-state\": $6cc32821e9371a1c$var$getCheckedState(indicatorContext.checked)\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$a2593e23056970a3, {\n displayName: $6cc32821e9371a1c$var$ITEM_INDICATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSeparator\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SEPARATOR_NAME = 'MenuSeparator';\nconst $6cc32821e9371a1c$export$1cec7dcdd713e220 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...separatorProps } = props;\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Primitive.div, $epM9y$babelruntimehelpersesmextends({\n role: \"separator\",\n \"aria-orientation\": \"horizontal\"\n }, separatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$1cec7dcdd713e220, {\n displayName: $6cc32821e9371a1c$var$SEPARATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuArrow\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$ARROW_NAME = 'MenuArrow';\nconst $6cc32821e9371a1c$export$bcdda4773debf5fa = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const { __scopeMenu: __scopeMenu , ...arrowProps } = props;\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Arrow, $epM9y$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$bcdda4773debf5fa, {\n displayName: $6cc32821e9371a1c$var$ARROW_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSub\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SUB_NAME = 'MenuSub';\nconst [$6cc32821e9371a1c$var$MenuSubProvider, $6cc32821e9371a1c$var$useMenuSubContext] = $6cc32821e9371a1c$var$createMenuContext($6cc32821e9371a1c$var$SUB_NAME);\nconst $6cc32821e9371a1c$export$71bdb9d1e2909932 = (props)=>{\n const { __scopeMenu: __scopeMenu , children: children , open: open = false , onOpenChange: onOpenChange } = props;\n const parentMenuContext = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$SUB_NAME, __scopeMenu);\n const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = $epM9y$useState(null);\n const [content, setContent] = $epM9y$useState(null);\n const handleOpenChange = $epM9y$useCallbackRef(onOpenChange); // Prevent the parent menu from reopening with open submenus.\n $epM9y$useEffect(()=>{\n if (parentMenuContext.open === false) handleOpenChange(false);\n return ()=>handleOpenChange(false)\n ;\n }, [\n parentMenuContext.open,\n handleOpenChange\n ]);\n return /*#__PURE__*/ $epM9y$createElement($epM9y$Root, popperScope, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuProvider, {\n scope: __scopeMenu,\n open: open,\n onOpenChange: handleOpenChange,\n content: content,\n onContentChange: setContent\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuSubProvider, {\n scope: __scopeMenu,\n contentId: $epM9y$useId(),\n triggerId: $epM9y$useId(),\n trigger: trigger,\n onTriggerChange: setTrigger\n }, children)));\n};\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$71bdb9d1e2909932, {\n displayName: $6cc32821e9371a1c$var$SUB_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSubTrigger\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SUB_TRIGGER_NAME = 'MenuSubTrigger';\nconst $6cc32821e9371a1c$export$5fbbb3ba7297405f = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = $6cc32821e9371a1c$var$useMenuSubContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = $6cc32821e9371a1c$var$useMenuContentContext($6cc32821e9371a1c$var$SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = $epM9y$useRef(null);\n const { pointerGraceTimerRef: pointerGraceTimerRef , onPointerGraceIntentChange: onPointerGraceIntentChange } = contentContext;\n const scope = {\n __scopeMenu: props.__scopeMenu\n };\n const clearOpenTimer = $epM9y$useCallback(()=>{\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n $epM9y$useEffect(()=>clearOpenTimer\n , [\n clearOpenTimer\n ]);\n $epM9y$useEffect(()=>{\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return ()=>{\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [\n pointerGraceTimerRef,\n onPointerGraceIntentChange\n ]);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$export$9fa5ebd18bee4d43, $epM9y$babelruntimehelpersesmextends({\n asChild: true\n }, scope), /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuItemImpl, $epM9y$babelruntimehelpersesmextends({\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": $6cc32821e9371a1c$var$getOpenState(context.open)\n }, props, {\n ref: $epM9y$composeRefs(forwardedRef, subContext.onTriggerChange) // This is redundant for mouse users but we cannot determine pointer type from\n ,\n onClick: (event)=>{\n var _props$onClick;\n (_props$onClick = props.onClick) === null || _props$onClick === void 0 || _props$onClick.call(props, event);\n if (props.disabled || event.defaultPrevented) return;\n /**\n * We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)\n * and we rely heavily on `onFocusOutside` for submenus to close when switching\n * between separate submenus.\n */ event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: $epM9y$composeEventHandlers(props.onPointerMove, $6cc32821e9371a1c$var$whenMouse((event)=>{\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(()=>{\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })),\n onPointerLeave: $epM9y$composeEventHandlers(props.onPointerLeave, $6cc32821e9371a1c$var$whenMouse((event)=>{\n var _context$content;\n clearOpenTimer();\n const contentRect = (_context$content = context.content) === null || _context$content === void 0 ? void 0 : _context$content.getBoundingClientRect();\n if (contentRect) {\n var _context$content2;\n // TODO: make sure to update this when we change positioning logic\n const side = (_context$content2 = context.content) === null || _context$content2 === void 0 ? void 0 : _context$content2.dataset.side;\n const rightSide = side === 'right';\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? 'left' : 'right'];\n const contentFarEdge = contentRect[rightSide ? 'right' : 'left'];\n contentContext.onPointerGraceIntentChange({\n area: [\n // consistently within polygon bounds\n {\n x: event.clientX + bleed,\n y: event.clientY\n },\n {\n x: contentNearEdge,\n y: contentRect.top\n },\n {\n x: contentFarEdge,\n y: contentRect.top\n },\n {\n x: contentFarEdge,\n y: contentRect.bottom\n },\n {\n x: contentNearEdge,\n y: contentRect.bottom\n }\n ],\n side: side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(()=>contentContext.onPointerGraceIntentChange(null)\n , 300);\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return; // There's 100ms where the user may leave an item before the submenu was opened.\n contentContext.onPointerGraceIntentChange(null);\n }\n })),\n onKeyDown: $epM9y$composeEventHandlers(props.onKeyDown, (event)=>{\n const isTypingAhead = contentContext.searchRef.current !== '';\n if (props.disabled || isTypingAhead && event.key === ' ') return;\n if ($6cc32821e9371a1c$var$SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n var _context$content3;\n context.onOpenChange(true); // The trigger may hold focus if opened via pointer interaction\n // so we ensure content is given focus again when switching to keyboard.\n (_context$content3 = context.content) === null || _context$content3 === void 0 || _context$content3.focus(); // prevent window from scrolling\n event.preventDefault();\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$5fbbb3ba7297405f, {\n displayName: $6cc32821e9371a1c$var$SUB_TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * MenuSubContent\n * -----------------------------------------------------------------------------------------------*/ const $6cc32821e9371a1c$var$SUB_CONTENT_NAME = 'MenuSubContent';\nconst $6cc32821e9371a1c$export$e7142ab31822bde6 = /*#__PURE__*/ $epM9y$forwardRef((props, forwardedRef)=>{\n const portalContext = $6cc32821e9371a1c$var$usePortalContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const { forceMount: forceMount = portalContext.forceMount , ...subContentProps } = props;\n const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const rootContext = $6cc32821e9371a1c$var$useMenuRootContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);\n const subContext = $6cc32821e9371a1c$var$useMenuSubContext($6cc32821e9371a1c$var$SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = $epM9y$useRef(null);\n const composedRefs = $epM9y$useComposedRefs(forwardedRef, ref);\n return /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Provider, {\n scope: props.__scopeMenu\n }, /*#__PURE__*/ $epM9y$createElement($epM9y$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$Collection.Slot, {\n scope: props.__scopeMenu\n }, /*#__PURE__*/ $epM9y$createElement($6cc32821e9371a1c$var$MenuContentImpl, $epM9y$babelruntimehelpersesmextends({\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId\n }, subContentProps, {\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === 'rtl' ? 'left' : 'right',\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event)=>{\n var _ref$current;\n // when opening a submenu, focus content for keyboard users only\n if (rootContext.isUsingKeyboardRef.current) (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();\n event.preventDefault();\n } // The menu might close because of focusing another menu item in the parent menu. We\n ,\n onCloseAutoFocus: (event)=>event.preventDefault()\n ,\n onFocusOutside: $epM9y$composeEventHandlers(props.onFocusOutside, (event)=>{\n // We prevent closing when the trigger is focused to avoid triggering a re-open animation\n // on pointer interaction.\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: $epM9y$composeEventHandlers(props.onEscapeKeyDown, (event)=>{\n rootContext.onClose(); // ensure pressing escape in submenu doesn't escape full screen mode\n event.preventDefault();\n }),\n onKeyDown: $epM9y$composeEventHandlers(props.onKeyDown, (event)=>{\n // Submenu key events bubble through portals. We only care about keys in this menu.\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = $6cc32821e9371a1c$var$SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n var _subContext$trigger;\n context.onOpenChange(false); // We focus manually because we prevented it in `onCloseAutoFocus`\n (_subContext$trigger = subContext.trigger) === null || _subContext$trigger === void 0 || _subContext$trigger.focus(); // prevent window from scrolling\n event.preventDefault();\n }\n })\n })))));\n});\n/*#__PURE__*/ Object.assign($6cc32821e9371a1c$export$e7142ab31822bde6, {\n displayName: $6cc32821e9371a1c$var$SUB_CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $6cc32821e9371a1c$var$getOpenState(open) {\n return open ? 'open' : 'closed';\n}\nfunction $6cc32821e9371a1c$var$isIndeterminate(checked) {\n return checked === 'indeterminate';\n}\nfunction $6cc32821e9371a1c$var$getCheckedState(checked) {\n return $6cc32821e9371a1c$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';\n}\nfunction $6cc32821e9371a1c$var$focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $6cc32821e9371a1c$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\n/**\n * This is the \"meat\" of the typeahead matching logic. It takes in all the values,\n * the search and the current match, and returns the next match (or `undefined`).\n *\n * We normalize the search because if a user has repeatedly pressed a character,\n * we want the exact same behavior as if we only had that one character\n * (ie. cycle through options starting with that character)\n *\n * We also reorder the values by wrapping the array around the current match.\n * This is so we always look forward from the current match, and picking the first\n * match will always be the correct one.\n *\n * Finally, if the normalized search is exactly one character, we exclude the\n * current match from the values because otherwise it would be the first to match always\n * and focus would never move. This is as opposed to the regular case, where we\n * don't want focus to move if the current match still matches.\n */ function $6cc32821e9371a1c$var$getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char)=>char === search[0]\n );\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = $6cc32821e9371a1c$var$wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v)=>v !== currentMatch\n );\n const nextMatch = wrappedValues.find((value)=>value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : undefined;\n}\n// Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction $6cc32821e9371a1c$var$isPointInPolygon(point, polygon) {\n const { x: x , y: y } = point;\n let inside = false;\n for(let i = 0, j = polygon.length - 1; i < polygon.length; j = i++){\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y; // prettier-ignore\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction $6cc32821e9371a1c$var$isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = {\n x: event.clientX,\n y: event.clientY\n };\n return $6cc32821e9371a1c$var$isPointInPolygon(cursorPos, area);\n}\nfunction $6cc32821e9371a1c$var$whenMouse(handler) {\n return (event)=>event.pointerType === 'mouse' ? handler(event) : undefined\n ;\n}\nconst $6cc32821e9371a1c$export$be92b6f5f03c0fe9 = $6cc32821e9371a1c$export$d9b273488cd8ce6f;\nconst $6cc32821e9371a1c$export$b688253958b8dfe7 = $6cc32821e9371a1c$export$9fa5ebd18bee4d43;\nconst $6cc32821e9371a1c$export$602eac185826482c = $6cc32821e9371a1c$export$793392f970497feb;\nconst $6cc32821e9371a1c$export$7c6e2c02157bb7d2 = $6cc32821e9371a1c$export$479f0f2f71193efe;\nconst $6cc32821e9371a1c$export$eb2fcfdbd7ba97d4 = $6cc32821e9371a1c$export$22a631d1f72787bb;\nconst $6cc32821e9371a1c$export$b04be29aa201d4f5 = $6cc32821e9371a1c$export$dd37bec0e8a99143;\nconst $6cc32821e9371a1c$export$6d08773d2e66f8f2 = $6cc32821e9371a1c$export$2ce376c2cc3355c8;\nconst $6cc32821e9371a1c$export$16ce288f89fa631c = $6cc32821e9371a1c$export$f6f243521332502d;\nconst $6cc32821e9371a1c$export$a98f0dcb43a68a25 = $6cc32821e9371a1c$export$ea2200c9eee416b3;\nconst $6cc32821e9371a1c$export$371ab307eab489c0 = $6cc32821e9371a1c$export$69bd225e9817f6d0;\nconst $6cc32821e9371a1c$export$c3468e2714d175fa = $6cc32821e9371a1c$export$a2593e23056970a3;\nconst $6cc32821e9371a1c$export$1ff3c3f08ae963c0 = $6cc32821e9371a1c$export$1cec7dcdd713e220;\nconst $6cc32821e9371a1c$export$21b07c8f274aebd5 = $6cc32821e9371a1c$export$bcdda4773debf5fa;\nconst $6cc32821e9371a1c$export$d7a01e11500dfb6f = $6cc32821e9371a1c$export$71bdb9d1e2909932;\nconst $6cc32821e9371a1c$export$2ea8a7a591ac5eac = $6cc32821e9371a1c$export$5fbbb3ba7297405f;\nconst $6cc32821e9371a1c$export$6d4de93b380beddf = $6cc32821e9371a1c$export$e7142ab31822bde6;\n\n\n\n\nexport {$6cc32821e9371a1c$export$4027731b685e72eb as createMenuScope, $6cc32821e9371a1c$export$d9b273488cd8ce6f as Menu, $6cc32821e9371a1c$export$9fa5ebd18bee4d43 as MenuAnchor, $6cc32821e9371a1c$export$793392f970497feb as MenuPortal, $6cc32821e9371a1c$export$479f0f2f71193efe as MenuContent, $6cc32821e9371a1c$export$22a631d1f72787bb as MenuGroup, $6cc32821e9371a1c$export$dd37bec0e8a99143 as MenuLabel, $6cc32821e9371a1c$export$2ce376c2cc3355c8 as MenuItem, $6cc32821e9371a1c$export$f6f243521332502d as MenuCheckboxItem, $6cc32821e9371a1c$export$ea2200c9eee416b3 as MenuRadioGroup, $6cc32821e9371a1c$export$69bd225e9817f6d0 as MenuRadioItem, $6cc32821e9371a1c$export$a2593e23056970a3 as MenuItemIndicator, $6cc32821e9371a1c$export$1cec7dcdd713e220 as MenuSeparator, $6cc32821e9371a1c$export$bcdda4773debf5fa as MenuArrow, $6cc32821e9371a1c$export$71bdb9d1e2909932 as MenuSub, $6cc32821e9371a1c$export$5fbbb3ba7297405f as MenuSubTrigger, $6cc32821e9371a1c$export$e7142ab31822bde6 as MenuSubContent, $6cc32821e9371a1c$export$be92b6f5f03c0fe9 as Root, $6cc32821e9371a1c$export$b688253958b8dfe7 as Anchor, $6cc32821e9371a1c$export$602eac185826482c as Portal, $6cc32821e9371a1c$export$7c6e2c02157bb7d2 as Content, $6cc32821e9371a1c$export$eb2fcfdbd7ba97d4 as Group, $6cc32821e9371a1c$export$b04be29aa201d4f5 as Label, $6cc32821e9371a1c$export$6d08773d2e66f8f2 as Item, $6cc32821e9371a1c$export$16ce288f89fa631c as CheckboxItem, $6cc32821e9371a1c$export$a98f0dcb43a68a25 as RadioGroup, $6cc32821e9371a1c$export$371ab307eab489c0 as RadioItem, $6cc32821e9371a1c$export$c3468e2714d175fa as ItemIndicator, $6cc32821e9371a1c$export$1ff3c3f08ae963c0 as Separator, $6cc32821e9371a1c$export$21b07c8f274aebd5 as Arrow, $6cc32821e9371a1c$export$d7a01e11500dfb6f as Sub, $6cc32821e9371a1c$export$2ea8a7a591ac5eac as SubTrigger, $6cc32821e9371a1c$export$6d4de93b380beddf as SubContent};\n//# sourceMappingURL=index.mjs.map\n","import $9kmUS$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $9kmUS$useRef, createElement as $9kmUS$createElement, useCallback as $9kmUS$useCallback, forwardRef as $9kmUS$forwardRef} from \"react\";\nimport {composeEventHandlers as $9kmUS$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {composeRefs as $9kmUS$composeRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $9kmUS$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $9kmUS$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {Primitive as $9kmUS$Primitive} from \"@radix-ui/react-primitive\";\nimport {createMenuScope as $9kmUS$createMenuScope, Root as $9kmUS$Root, Anchor as $9kmUS$Anchor, Portal as $9kmUS$Portal, Content as $9kmUS$Content, Group as $9kmUS$Group, Label as $9kmUS$Label, Item as $9kmUS$Item, CheckboxItem as $9kmUS$CheckboxItem, RadioGroup as $9kmUS$RadioGroup, RadioItem as $9kmUS$RadioItem, ItemIndicator as $9kmUS$ItemIndicator, Separator as $9kmUS$Separator, Arrow as $9kmUS$Arrow, Sub as $9kmUS$Sub, SubTrigger as $9kmUS$SubTrigger, SubContent as $9kmUS$SubContent} from \"@radix-ui/react-menu\";\nimport {useId as $9kmUS$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenu\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$DROPDOWN_MENU_NAME = 'DropdownMenu';\nconst [$d08ef79370b62062$var$createDropdownMenuContext, $d08ef79370b62062$export$c0623cd925aeb687] = $9kmUS$createContextScope($d08ef79370b62062$var$DROPDOWN_MENU_NAME, [\n $9kmUS$createMenuScope\n]);\nconst $d08ef79370b62062$var$useMenuScope = $9kmUS$createMenuScope();\nconst [$d08ef79370b62062$var$DropdownMenuProvider, $d08ef79370b62062$var$useDropdownMenuContext] = $d08ef79370b62062$var$createDropdownMenuContext($d08ef79370b62062$var$DROPDOWN_MENU_NAME);\nconst $d08ef79370b62062$export$e44a253a59704894 = (props)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , dir: dir , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n const triggerRef = $9kmUS$useRef(null);\n const [open = false, setOpen] = $9kmUS$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $9kmUS$createElement($d08ef79370b62062$var$DropdownMenuProvider, {\n scope: __scopeDropdownMenu,\n triggerId: $9kmUS$useId(),\n triggerRef: triggerRef,\n contentId: $9kmUS$useId(),\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $9kmUS$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n modal: modal\n }, /*#__PURE__*/ $9kmUS$createElement($9kmUS$Root, $9kmUS$babelruntimehelpersesmextends({}, menuScope, {\n open: open,\n onOpenChange: setOpen,\n dir: dir,\n modal: modal\n }), children));\n};\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$e44a253a59704894, {\n displayName: $d08ef79370b62062$var$DROPDOWN_MENU_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuTrigger\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$TRIGGER_NAME = 'DropdownMenuTrigger';\nconst $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , disabled: disabled = false , ...triggerProps } = props;\n const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Anchor, $9kmUS$babelruntimehelpersesmextends({\n asChild: true\n }, menuScope), /*#__PURE__*/ $9kmUS$createElement($9kmUS$Primitive.button, $9kmUS$babelruntimehelpersesmextends({\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : undefined,\n \"data-state\": context.open ? 'open' : 'closed',\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled\n }, triggerProps, {\n ref: $9kmUS$composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: $9kmUS$composeEventHandlers(props.onPointerDown, (event)=>{\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle(); // prevent trigger focusing when opening\n // this allows the content to be given focus without competition\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: $9kmUS$composeEventHandlers(props.onKeyDown, (event)=>{\n if (disabled) return;\n if ([\n 'Enter',\n ' '\n ].includes(event.key)) context.onOpenToggle();\n if (event.key === 'ArrowDown') context.onOpenChange(true); // prevent keydown from scrolling window / first focused item to execute\n // that keydown (inadvertently closing the menu)\n if ([\n 'Enter',\n ' ',\n 'ArrowDown'\n ].includes(event.key)) event.preventDefault();\n })\n })));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$d2469213b3befba9, {\n displayName: $d08ef79370b62062$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuPortal\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$PORTAL_NAME = 'DropdownMenuPortal';\nconst $d08ef79370b62062$export$cd369b4d4d54efc9 = (props)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...portalProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Portal, $9kmUS$babelruntimehelpersesmextends({}, menuScope, portalProps));\n};\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$cd369b4d4d54efc9, {\n displayName: $d08ef79370b62062$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuContent\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$CONTENT_NAME = 'DropdownMenuContent';\nconst $d08ef79370b62062$export$6e76d93a37c01248 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...contentProps } = props;\n const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = $9kmUS$useRef(false);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Content, $9kmUS$babelruntimehelpersesmextends({\n id: context.contentId,\n \"aria-labelledby\": context.triggerId\n }, menuScope, contentProps, {\n ref: forwardedRef,\n onCloseAutoFocus: $9kmUS$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n hasInteractedOutsideRef.current = false; // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }),\n onInteractOutside: $9kmUS$composeEventHandlers(props.onInteractOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n '--radix-dropdown-menu-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-dropdown-menu-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-dropdown-menu-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-dropdown-menu-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-dropdown-menu-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$6e76d93a37c01248, {\n displayName: $d08ef79370b62062$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuGroup\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$GROUP_NAME = 'DropdownMenuGroup';\nconst $d08ef79370b62062$export$246bebaba3a2f70e = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...groupProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Group, $9kmUS$babelruntimehelpersesmextends({}, menuScope, groupProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$246bebaba3a2f70e, {\n displayName: $d08ef79370b62062$var$GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuLabel\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$LABEL_NAME = 'DropdownMenuLabel';\nconst $d08ef79370b62062$export$76e48c5b57f24495 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...labelProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Label, $9kmUS$babelruntimehelpersesmextends({}, menuScope, labelProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$76e48c5b57f24495, {\n displayName: $d08ef79370b62062$var$LABEL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuItem\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$ITEM_NAME = 'DropdownMenuItem';\nconst $d08ef79370b62062$export$ed97964d1871885d = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Item, $9kmUS$babelruntimehelpersesmextends({}, menuScope, itemProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$ed97964d1871885d, {\n displayName: $d08ef79370b62062$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuCheckboxItem\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$CHECKBOX_ITEM_NAME = 'DropdownMenuCheckboxItem';\nconst $d08ef79370b62062$export$53a69729da201fa9 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...checkboxItemProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$CheckboxItem, $9kmUS$babelruntimehelpersesmextends({}, menuScope, checkboxItemProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$53a69729da201fa9, {\n displayName: $d08ef79370b62062$var$CHECKBOX_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuRadioGroup\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$RADIO_GROUP_NAME = 'DropdownMenuRadioGroup';\nconst $d08ef79370b62062$export$3323ad73d55f587e = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioGroupProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$RadioGroup, $9kmUS$babelruntimehelpersesmextends({}, menuScope, radioGroupProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$3323ad73d55f587e, {\n displayName: $d08ef79370b62062$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuRadioItem\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$RADIO_ITEM_NAME = 'DropdownMenuRadioItem';\nconst $d08ef79370b62062$export$e4f69b41b1637536 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioItemProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$RadioItem, $9kmUS$babelruntimehelpersesmextends({}, menuScope, radioItemProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$e4f69b41b1637536, {\n displayName: $d08ef79370b62062$var$RADIO_ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuItemIndicator\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$INDICATOR_NAME = 'DropdownMenuItemIndicator';\nconst $d08ef79370b62062$export$42355ae145153fb6 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemIndicatorProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$ItemIndicator, $9kmUS$babelruntimehelpersesmextends({}, menuScope, itemIndicatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$42355ae145153fb6, {\n displayName: $d08ef79370b62062$var$INDICATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSeparator\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$SEPARATOR_NAME = 'DropdownMenuSeparator';\nconst $d08ef79370b62062$export$da160178fd3bc7e9 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...separatorProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Separator, $9kmUS$babelruntimehelpersesmextends({}, menuScope, separatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$da160178fd3bc7e9, {\n displayName: $d08ef79370b62062$var$SEPARATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuArrow\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$ARROW_NAME = 'DropdownMenuArrow';\nconst $d08ef79370b62062$export$34b8980744021ec5 = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...arrowProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Arrow, $9kmUS$babelruntimehelpersesmextends({}, menuScope, arrowProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$34b8980744021ec5, {\n displayName: $d08ef79370b62062$var$ARROW_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSub\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$export$2f307d81a64f5442 = (props)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , open: openProp , onOpenChange: onOpenChange , defaultOpen: defaultOpen } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n const [open = false, setOpen] = $9kmUS$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$Sub, $9kmUS$babelruntimehelpersesmextends({}, menuScope, {\n open: open,\n onOpenChange: setOpen\n }), children);\n};\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSubTrigger\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$SUB_TRIGGER_NAME = 'DropdownMenuSubTrigger';\nconst $d08ef79370b62062$export$21dcb7ec56f874cf = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...subTriggerProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$SubTrigger, $9kmUS$babelruntimehelpersesmextends({}, menuScope, subTriggerProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$21dcb7ec56f874cf, {\n displayName: $d08ef79370b62062$var$SUB_TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DropdownMenuSubContent\n * -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$var$SUB_CONTENT_NAME = 'DropdownMenuSubContent';\nconst $d08ef79370b62062$export$f34ec8bc2482cc5f = /*#__PURE__*/ $9kmUS$forwardRef((props, forwardedRef)=>{\n const { __scopeDropdownMenu: __scopeDropdownMenu , ...subContentProps } = props;\n const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);\n return /*#__PURE__*/ $9kmUS$createElement($9kmUS$SubContent, $9kmUS$babelruntimehelpersesmextends({}, menuScope, subContentProps, {\n ref: forwardedRef,\n style: {\n ...props.style,\n '--radix-dropdown-menu-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-dropdown-menu-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-dropdown-menu-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-dropdown-menu-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-dropdown-menu-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($d08ef79370b62062$export$f34ec8bc2482cc5f, {\n displayName: $d08ef79370b62062$var$SUB_CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $d08ef79370b62062$export$be92b6f5f03c0fe9 = $d08ef79370b62062$export$e44a253a59704894;\nconst $d08ef79370b62062$export$41fb9f06171c75f4 = $d08ef79370b62062$export$d2469213b3befba9;\nconst $d08ef79370b62062$export$602eac185826482c = $d08ef79370b62062$export$cd369b4d4d54efc9;\nconst $d08ef79370b62062$export$7c6e2c02157bb7d2 = $d08ef79370b62062$export$6e76d93a37c01248;\nconst $d08ef79370b62062$export$eb2fcfdbd7ba97d4 = $d08ef79370b62062$export$246bebaba3a2f70e;\nconst $d08ef79370b62062$export$b04be29aa201d4f5 = $d08ef79370b62062$export$76e48c5b57f24495;\nconst $d08ef79370b62062$export$6d08773d2e66f8f2 = $d08ef79370b62062$export$ed97964d1871885d;\nconst $d08ef79370b62062$export$16ce288f89fa631c = $d08ef79370b62062$export$53a69729da201fa9;\nconst $d08ef79370b62062$export$a98f0dcb43a68a25 = $d08ef79370b62062$export$3323ad73d55f587e;\nconst $d08ef79370b62062$export$371ab307eab489c0 = $d08ef79370b62062$export$e4f69b41b1637536;\nconst $d08ef79370b62062$export$c3468e2714d175fa = $d08ef79370b62062$export$42355ae145153fb6;\nconst $d08ef79370b62062$export$1ff3c3f08ae963c0 = $d08ef79370b62062$export$da160178fd3bc7e9;\nconst $d08ef79370b62062$export$21b07c8f274aebd5 = $d08ef79370b62062$export$34b8980744021ec5;\nconst $d08ef79370b62062$export$d7a01e11500dfb6f = $d08ef79370b62062$export$2f307d81a64f5442;\nconst $d08ef79370b62062$export$2ea8a7a591ac5eac = $d08ef79370b62062$export$21dcb7ec56f874cf;\nconst $d08ef79370b62062$export$6d4de93b380beddf = $d08ef79370b62062$export$f34ec8bc2482cc5f;\n\n\n\n\nexport {$d08ef79370b62062$export$c0623cd925aeb687 as createDropdownMenuScope, $d08ef79370b62062$export$e44a253a59704894 as DropdownMenu, $d08ef79370b62062$export$d2469213b3befba9 as DropdownMenuTrigger, $d08ef79370b62062$export$cd369b4d4d54efc9 as DropdownMenuPortal, $d08ef79370b62062$export$6e76d93a37c01248 as DropdownMenuContent, $d08ef79370b62062$export$246bebaba3a2f70e as DropdownMenuGroup, $d08ef79370b62062$export$76e48c5b57f24495 as DropdownMenuLabel, $d08ef79370b62062$export$ed97964d1871885d as DropdownMenuItem, $d08ef79370b62062$export$53a69729da201fa9 as DropdownMenuCheckboxItem, $d08ef79370b62062$export$3323ad73d55f587e as DropdownMenuRadioGroup, $d08ef79370b62062$export$e4f69b41b1637536 as DropdownMenuRadioItem, $d08ef79370b62062$export$42355ae145153fb6 as DropdownMenuItemIndicator, $d08ef79370b62062$export$da160178fd3bc7e9 as DropdownMenuSeparator, $d08ef79370b62062$export$34b8980744021ec5 as DropdownMenuArrow, $d08ef79370b62062$export$2f307d81a64f5442 as DropdownMenuSub, $d08ef79370b62062$export$21dcb7ec56f874cf as DropdownMenuSubTrigger, $d08ef79370b62062$export$f34ec8bc2482cc5f as DropdownMenuSubContent, $d08ef79370b62062$export$be92b6f5f03c0fe9 as Root, $d08ef79370b62062$export$41fb9f06171c75f4 as Trigger, $d08ef79370b62062$export$602eac185826482c as Portal, $d08ef79370b62062$export$7c6e2c02157bb7d2 as Content, $d08ef79370b62062$export$eb2fcfdbd7ba97d4 as Group, $d08ef79370b62062$export$b04be29aa201d4f5 as Label, $d08ef79370b62062$export$6d08773d2e66f8f2 as Item, $d08ef79370b62062$export$16ce288f89fa631c as CheckboxItem, $d08ef79370b62062$export$a98f0dcb43a68a25 as RadioGroup, $d08ef79370b62062$export$371ab307eab489c0 as RadioItem, $d08ef79370b62062$export$c3468e2714d175fa as ItemIndicator, $d08ef79370b62062$export$1ff3c3f08ae963c0 as Separator, $d08ef79370b62062$export$21b07c8f274aebd5 as Arrow, $d08ef79370b62062$export$d7a01e11500dfb6f as Sub, $d08ef79370b62062$export$2ea8a7a591ac5eac as SubTrigger, $d08ef79370b62062$export$6d4de93b380beddf as SubContent};\n//# sourceMappingURL=index.mjs.map\n","import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { clsx } from 'clsx'\nimport { forwardRef } from 'react'\n\nimport { CheckmarkIcon } from '~/icons'\n\nimport { Box } from '../Box'\nimport { Divider } from '../Divider'\nimport { Text } from '../Text'\n\nimport * as styles from './styles.css'\n\nexport { DropdownMenuPrimitive }\n\nexport const DropdownMenuRoot = DropdownMenuPrimitive.Root\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nexport const DropdownMenuContent = ({\n className,\n children,\n ...rest\n}: DropdownMenuPrimitive.DropdownMenuContentProps) => (\n \n {children}\n \n \n)\n\nconst DropdownMenuArrow = () => (\n \n)\n\nexport const DropdownMenuItem = ({\n className,\n children,\n ...rest\n}: DropdownMenuPrimitive.DropdownMenuItemProps) => (\n \n \n {children}\n \n \n)\n\nconst DropdownMenuItemIndicator = ({\n children,\n}: DropdownMenuPrimitive.DropdownMenuItemIndicatorProps) => (\n \n {children}\n \n)\n\nexport const DropdownMenuSeparator = () => (\n \n \n \n)\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n HTMLDivElement,\n DropdownMenuPrimitive.DropdownMenuCheckboxItemProps\n>(({ className, children, ...rest }, forwardedRef) => {\n return (\n \n \n \n \n {children}\n \n )\n})\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nexport const DropdownMenuRadioItem = forwardRef<\n HTMLDivElement,\n DropdownMenuPrimitive.DropdownMenuRadioItemProps\n>(({ className, children, ...rest }, forwardedRef) => {\n return (\n \n \n \n \n {children}\n \n )\n})\n"],"names":["$6cc32821e9371a1c$var$SELECTION_KEYS","$6cc32821e9371a1c$var$FIRST_KEYS","$6cc32821e9371a1c$var$LAST_KEYS","$6cc32821e9371a1c$var$FIRST_LAST_KEYS","$6cc32821e9371a1c$var$MENU_NAME","$6cc32821e9371a1c$var$Collection","$6cc32821e9371a1c$var$useCollection","$6cc32821e9371a1c$var$createCollectionScope","$epM9y$createCollection","$6cc32821e9371a1c$var$createMenuContext","$6cc32821e9371a1c$export$4027731b685e72eb","$epM9y$createContextScope","$epM9y$createPopperScope","$epM9y$createRovingFocusGroupScope","$6cc32821e9371a1c$var$usePopperScope","$6cc32821e9371a1c$var$useRovingFocusGroupScope","$6cc32821e9371a1c$var$MenuProvider","$6cc32821e9371a1c$var$useMenuContext","$6cc32821e9371a1c$var$MenuRootProvider","$6cc32821e9371a1c$var$useMenuRootContext","$6cc32821e9371a1c$export$d9b273488cd8ce6f","props","__scopeMenu","open","children","dir","onOpenChange","modal","popperScope","content","setContent","$epM9y$useState","isUsingKeyboardRef","$epM9y$useRef","handleOpenChange","$epM9y$useCallbackRef","direction","$epM9y$useDirection","$epM9y$useEffect","handleKeyDown","handlePointer","$epM9y$createElement","$epM9y$Root","$epM9y$useCallback","$6cc32821e9371a1c$export$9fa5ebd18bee4d43","$epM9y$forwardRef","forwardedRef","anchorProps","$epM9y$Anchor","$epM9y$babelruntimehelpersesmextends","$6cc32821e9371a1c$var$PORTAL_NAME","$6cc32821e9371a1c$var$PortalProvider","$6cc32821e9371a1c$var$usePortalContext","$6cc32821e9371a1c$export$793392f970497feb","forceMount","container","context","$epM9y$Presence","$epM9y$Portal","$6cc32821e9371a1c$var$CONTENT_NAME","$6cc32821e9371a1c$var$MenuContentProvider","$6cc32821e9371a1c$var$useMenuContentContext","$6cc32821e9371a1c$export$479f0f2f71193efe","portalContext","contentProps","rootContext","$6cc32821e9371a1c$var$MenuRootContentModal","$6cc32821e9371a1c$var$MenuRootContentNonModal","ref","composedRefs","$epM9y$useComposedRefs","$epM9y$hideOthers","$6cc32821e9371a1c$var$MenuContentImpl","$epM9y$composeEventHandlers","event","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll","rovingFocusGroupScope","getItems","currentItemId","setCurrentItemId","contentRef","timerRef","searchRef","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","$epM9y$RemoveScroll","$epM9y$Fragment","scrollLockWrapperProps","$epM9y$Slot","handleTypeaheadSearch","key","_items$find","_items$find2","search","items","item","currentItem","currentMatch","values","nextMatch","$6cc32821e9371a1c$var$getNextMatch","newItem","updateSearch","value","$epM9y$useFocusGuards","isPointerMovingToSubmenu","_pointerGraceIntentRe","_pointerGraceIntentRe2","$6cc32821e9371a1c$var$isPointerInGraceArea","_contentRef$current","intent","$epM9y$FocusScope","_contentRef$current2","$epM9y$DismissableLayer","$epM9y$Root1","$epM9y$Content","$6cc32821e9371a1c$var$getOpenState","isKeyDownInside","isModifierKey","isCharacterKey","candidateNodes","$6cc32821e9371a1c$var$focusFirst","$6cc32821e9371a1c$var$whenMouse","target","pointerXHasChanged","newDir","$6cc32821e9371a1c$export$22a631d1f72787bb","groupProps","$epM9y$Primitive","$6cc32821e9371a1c$var$ITEM_NAME","$6cc32821e9371a1c$var$ITEM_SELECT","$6cc32821e9371a1c$export$2ce376c2cc3355c8","disabled","onSelect","itemProps","contentContext","isPointerDownRef","handleSelect","menuItem","itemSelectEvent","$epM9y$dispatchDiscreteCustomEvent","$6cc32821e9371a1c$var$MenuItemImpl","_props$onPointerDown","_event$currentTarget","isTypingAhead","textValue","isFocused","setIsFocused","textContent","setTextContent","_menuItem$textContent","$epM9y$Item","$6cc32821e9371a1c$export$f6f243521332502d","checked","onCheckedChange","checkboxItemProps","$6cc32821e9371a1c$var$ItemIndicatorProvider","$6cc32821e9371a1c$var$isIndeterminate","$6cc32821e9371a1c$var$getCheckedState","$6cc32821e9371a1c$var$RADIO_GROUP_NAME","$6cc32821e9371a1c$var$RadioGroupProvider","$6cc32821e9371a1c$var$useRadioGroupContext","$6cc32821e9371a1c$export$ea2200c9eee416b3","onValueChange","handleValueChange","$6cc32821e9371a1c$var$RADIO_ITEM_NAME","$6cc32821e9371a1c$export$69bd225e9817f6d0","radioItemProps","_context$onValueChang","$6cc32821e9371a1c$var$ITEM_INDICATOR_NAME","$6cc32821e9371a1c$var$useItemIndicatorContext","$6cc32821e9371a1c$export$a2593e23056970a3","itemIndicatorProps","indicatorContext","$6cc32821e9371a1c$export$1cec7dcdd713e220","separatorProps","$6cc32821e9371a1c$export$bcdda4773debf5fa","arrowProps","$epM9y$Arrow","$6cc32821e9371a1c$var$SUB_NAME","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","$6cc32821e9371a1c$var$wrapArray","array","startIndex","_","index","normalizedSearch","char","currentMatchIndex","wrappedValues","v","$6cc32821e9371a1c$var$isPointInPolygon","point","polygon","x","y","inside","i","j","xi","yi","xj","yj","area","cursorPos","handler","$6cc32821e9371a1c$export$be92b6f5f03c0fe9","$6cc32821e9371a1c$export$b688253958b8dfe7","$6cc32821e9371a1c$export$602eac185826482c","$6cc32821e9371a1c$export$7c6e2c02157bb7d2","$6cc32821e9371a1c$export$6d08773d2e66f8f2","$6cc32821e9371a1c$export$16ce288f89fa631c","$6cc32821e9371a1c$export$a98f0dcb43a68a25","$6cc32821e9371a1c$export$371ab307eab489c0","$6cc32821e9371a1c$export$c3468e2714d175fa","$6cc32821e9371a1c$export$1ff3c3f08ae963c0","$6cc32821e9371a1c$export$21b07c8f274aebd5","$d08ef79370b62062$var$DROPDOWN_MENU_NAME","$d08ef79370b62062$var$createDropdownMenuContext","$d08ef79370b62062$export$c0623cd925aeb687","$9kmUS$createContextScope","$9kmUS$createMenuScope","$d08ef79370b62062$var$useMenuScope","$d08ef79370b62062$var$DropdownMenuProvider","$d08ef79370b62062$var$useDropdownMenuContext","$d08ef79370b62062$export$e44a253a59704894","__scopeDropdownMenu","openProp","defaultOpen","menuScope","triggerRef","$9kmUS$useRef","setOpen","$9kmUS$useControllableState","$9kmUS$createElement","$9kmUS$useId","$9kmUS$useCallback","prevOpen","$9kmUS$Root","$9kmUS$babelruntimehelpersesmextends","$d08ef79370b62062$var$TRIGGER_NAME","$d08ef79370b62062$export$d2469213b3befba9","$9kmUS$forwardRef","triggerProps","$9kmUS$Anchor","$9kmUS$Primitive","$9kmUS$composeRefs","$9kmUS$composeEventHandlers","$d08ef79370b62062$export$cd369b4d4d54efc9","portalProps","$9kmUS$Portal","$d08ef79370b62062$var$CONTENT_NAME","$d08ef79370b62062$export$6e76d93a37c01248","hasInteractedOutsideRef","$9kmUS$Content","_context$triggerRef$c","originalEvent","ctrlLeftClick","isRightClick","$d08ef79370b62062$export$ed97964d1871885d","$9kmUS$Item","$d08ef79370b62062$export$53a69729da201fa9","$9kmUS$CheckboxItem","$d08ef79370b62062$export$3323ad73d55f587e","radioGroupProps","$9kmUS$RadioGroup","$d08ef79370b62062$export$e4f69b41b1637536","$9kmUS$RadioItem","$d08ef79370b62062$export$42355ae145153fb6","$9kmUS$ItemIndicator","$d08ef79370b62062$export$da160178fd3bc7e9","$9kmUS$Separator","$d08ef79370b62062$export$34b8980744021ec5","$9kmUS$Arrow","$d08ef79370b62062$export$be92b6f5f03c0fe9","$d08ef79370b62062$export$41fb9f06171c75f4","$d08ef79370b62062$export$602eac185826482c","$d08ef79370b62062$export$7c6e2c02157bb7d2","$d08ef79370b62062$export$6d08773d2e66f8f2","$d08ef79370b62062$export$16ce288f89fa631c","$d08ef79370b62062$export$a98f0dcb43a68a25","$d08ef79370b62062$export$371ab307eab489c0","$d08ef79370b62062$export$c3468e2714d175fa","$d08ef79370b62062$export$1ff3c3f08ae963c0","$d08ef79370b62062$export$21b07c8f274aebd5","DropdownMenuRoot","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuContent","className","rest","jsxs","DropdownMenuPrimitive.Content","clsx","styles.content","jsx","DropdownMenuArrow","DropdownMenuPrimitive.Arrow","styles.arrow","DropdownMenuItem","DropdownMenuPrimitive.Item","styles.item","Box","Text","DropdownMenuItemIndicator","DropdownMenuPrimitive.ItemIndicator","styles.indicator","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","styles.separator","Divider","DropdownMenuCheckboxItem","forwardRef","DropdownMenuPrimitive.CheckboxItem","CheckmarkIcon","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem"],"mappings":"+rCA2CA,MAAMA,GAAuC,CACzC,QACA,GACJ,EACMC,GAAmC,CACrC,YACA,SACA,MACJ,EACMC,GAAkC,CACpC,UACA,WACA,KACJ,EACMC,GAAwC,CAC1C,GAAGF,GACH,GAAGC,EACP,EAqB2GE,EAAkC,OACvI,CAACC,EAAkCC,GAAqCC,EAA2C,EAAIC,GAAwBJ,CAA+B,EAC9K,CAACK,EAAyCC,EAAyC,EAAIC,GAA0BP,EAAiC,CACpJG,GACAK,GACAC,EACJ,CAAC,EACKC,EAAuCF,GAAwB,EA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AvQ,EACC,SAAA,CAEL4Q,MAAAS,GAAA,CAAA,SAAAT,EAAA,IAAAmB,GAAA,CAAA,KAAA,IAAA,CAAA,EAAA,EAEAnB,EAAAA,IAAAQ,EAAA,CAAA,QAAA,QAAA,SAAA1S,CAAA,CAAA,CACgC,CAAA,CAAA,CAGtC,EAEOsT,GAAAC,GAEAC,EAAAL,EAAA,WAAA,CAAA,CAAA,UAAAvB,EAAA,SAAA5R,EAAA,GAAA6R,CAAA,EAAAvQ,IAILwQ,EAAA,KACE2B,GAAuB,CAAtB,UAAAzB,EAAAQ,GAAAZ,CAAA,EACuC,GAAAC,EAClC,IAAAvQ,EACC,SAAA,CAEL4Q,EAAAA,IAAAU,GAAA,CAAA,UAAAC,GAAA,SAAAX,MAAAQ,EAAA,CAAA,SAAA,GAAA,CAAA,CAAA,CAAA,EAEAR,EAAAA,IAAAQ,EAAA,CAAA,QAAA,QAAA,SAAA1S,CAAA,CAAA,CACgC,CAAA,CAAA,CAGtC;;;","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/assets/Field-0c069ee0.js.map b/assets/Field-0c069ee0.js.map deleted file mode 100644 index 5f4401f5d..000000000 --- a/assets/Field-0c069ee0.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Field-0c069ee0.js","sources":["../../src/components/Field/Field.tsx"],"sourcesContent":["import { ElementType, ReactNode } from 'react'\n\nimport { Box, PolymorphicComponent, PolymorphicProps } from '~/components/Box'\nimport { Text } from '~/components/Text'\n\nimport * as styles from './styles.css'\n\nexport interface FieldProps {\n id?: string\n label?: string | ReactNode\n description?: string | ReactNode\n labelLocation?: 'left' | 'right' | 'top' | 'hidden'\n disabled?: boolean\n required?: boolean // TODO\n error?: string // TODO\n}\n\n// TODO: handle error text and secondary description label\n// TODO: handle isRequired in label?\n\nexport const Field: PolymorphicComponent = <\n T extends ElementType\n>(\n props: PolymorphicProps\n) => {\n const {\n id,\n label,\n description,\n labelLocation = 'top',\n children,\n ...rest\n } = props\n\n const renderLabel = () =>\n label || description ? (\n \n {label && (\n \n ) : null\n\n return (\n \n {['left', 'top', 'hidden'].includes(labelLocation) && renderLabel()}\n {children}\n {labelLocation === 'right' && renderLabel()}\n \n )\n}\n"],"names":["Field","props","id","label","description","labelLocation","children","rest","renderLabel","jsxs","Box","jsx","Text","styles.labelVariants"],"mappings":"2hBAoBO,MAAAA,EAAAC,GAAA,CAKL,KAAA,CAAM,GAAAC,EACJ,MAAAC,EACA,YAAAC,EACA,cAAAC,EAAA,MACgB,SAAAC,EAChB,GAAAC,CACG,EAAAN,EAGLO,EAAA,IAAAL,GAAAC,EAAAK,EAAAA,KAAAC,EAAA,CAAA,cAAA,SAAA,IAAA,MAAA,SAAA,CAGOP,GAAAQ,EAAA,IACCC,EAAC,CAAA,QAAA,QACS,MAAA,UACF,OAAAP,IAAA,SACoB,SAAAF,CAEzB,CAAA,EACHC,GAAAO,EAAA,IAIAC,EAAC,CAAA,QAAA,QACS,MAAA,SACF,OAAAP,IAAA,SACoB,SAAAD,CAEzB,CAAA,CACH,CAAA,CAAA,EAAA,KAKR,OAAAK,EAAA,KACEC,EAAC,CAAA,GAAA,QACI,UAAAG,EAAA,CAAA,cAAAR,EAAA,EAC8C,QAAAH,EACxC,GAAAK,EACL,SAAA,CAEH,CAAA,OAAA,MAAA,QAAA,EAAA,SAAAF,CAAA,GAAAG,EAAA,EAAiEF,EACjED,IAAA,SAAAG,EAAA,CACyC,CAAA,CAAA,CAGhD"} \ No newline at end of file diff --git a/assets/Field-0c069ee0.js b/assets/Field-cc1005d3.js similarity index 99% rename from assets/Field-0c069ee0.js rename to assets/Field-cc1005d3.js index b228f4c44..98f0df50c 100644 --- a/assets/Field-0c069ee0.js +++ b/assets/Field-cc1005d3.js @@ -1,2 +1 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{B as a}from"./Box-8ffdd394.js";import{T as l}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";import{c}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var m=c({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const o=r=>{const{id:u,label:t,description:i,labelLocation:n="top",children:g,...d}=r,s=()=>t||i?e.jsxs(a,{flexDirection:"column",gap:"0.5",children:[t&&e.jsx(l,{variant:"small",color:"text100",hidden:n==="hidden",children:t}),i&&e.jsx(l,{variant:"small",color:"text50",hidden:n==="hidden",children:i})]}):null;return e.jsxs(a,{as:"label",className:m({labelLocation:n}),htmlFor:u,...d,children:[["left","top","hidden"].includes(n)&&s(),g,n==="right"&&s()]})};try{o.displayName="Field",o.__docgenInfo={description:"",displayName:"Field",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as F}; -//# sourceMappingURL=Field-0c069ee0.js.map +import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";import{T as l}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{c}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var m=c({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const o=r=>{const{id:u,label:t,description:i,labelLocation:n="top",children:g,...d}=r,s=()=>t||i?e.jsxs(a,{flexDirection:"column",gap:"0.5",children:[t&&e.jsx(l,{variant:"small",color:"text100",hidden:n==="hidden",children:t}),i&&e.jsx(l,{variant:"small",color:"text50",hidden:n==="hidden",children:i})]}):null;return e.jsxs(a,{as:"label",className:m({labelLocation:n}),htmlFor:u,...d,children:[["left","top","hidden"].includes(n)&&s(),g,n==="right"&&s()]})};try{o.displayName="Field",o.__docgenInfo={description:"",displayName:"Field",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as F}; diff --git a/assets/FileInput-442f4bc0.js.map b/assets/FileInput-442f4bc0.js.map deleted file mode 100644 index 1c64cd6b5..000000000 --- a/assets/FileInput-442f4bc0.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileInput-442f4bc0.js","sources":["../../src/hooks/useCombinedRefs.ts","../../src/components/FileInput/FileInput.tsx"],"sourcesContent":["import { Ref } from 'react'\n\n/**\n * Combines multiple refs into one\n * @param refs\n * @returns\n */\nexport const useCombinedRefs =\n (...refs: Array>): Ref =>\n (element: any) =>\n refs.forEach(ref => {\n if (!ref) {\n return\n }\n\n if (typeof ref === 'function') {\n ref(element)\n } else {\n ;(ref as any).current = element\n }\n })\n","import { clsx } from 'clsx'\nimport { ChangeEvent, ElementType, forwardRef, useRef, useState } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { Field, FieldProps } from '~/components/Field'\nimport { IconButton } from '~/components/IconButton'\nimport { Text } from '~/components/Text'\nimport { useCombinedRefs } from '~/hooks/useCombinedRefs'\nimport { CloseIcon } from '~/icons'\n\nimport * as styles from './styles.css'\n\nconst MIME_TYPES = {\n png: '.png,image/png',\n jpeg: '.jpeg,image/jpeg',\n jpg: '.jpg,image/jpg',\n images: 'image/*',\n pdf: '.pdf,application/pdf',\n}\n\ntype AllowedMimeTypes = keyof typeof MIME_TYPES\n\ntype FileData = {\n name: string\n size: number\n extension: string\n}\n\nexport type FileInputProps = FieldProps &\n styles.WrapVariants & {\n disabled?: boolean\n name: string\n validExtensions: AllowedMimeTypes[]\n value?: File\n onValueChange?: (value: File | null) => void\n }\n\nexport const FileInput: PolymorphicComponent =\n forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const {\n borderRadius = 'md',\n description,\n disabled = false,\n id,\n label = '',\n labelLocation = 'hidden',\n name,\n onValueChange,\n placeholder = 'Upload a file',\n validExtensions,\n ...rest\n } = props\n const inputRef = useRef(null)\n const combinedRef = useCombinedRefs(inputRef, ref)\n const [fileData, setFileData] = useState(null)\n\n const handleChange = (e: ChangeEvent) => {\n const filelist = e.currentTarget.files as FileList\n if (!filelist || !filelist[0]) {\n return\n }\n\n const file = filelist[0]\n const filename = file.name\n const filesize = file.size / 1000\n\n setFileData({\n name: filename,\n size: filesize,\n extension: filename.split('.').pop() ?? '',\n })\n\n onValueChange?.(file)\n }\n\n const accept = validExtensions.map(ext => MIME_TYPES[ext]).join(',')\n\n return (\n \n \n \n {fileData ? (\n \n {fileData.name}\n \n {fileData.size.toFixed(2)} kb\n \n \n ) : (\n {placeholder}\n )}\n\n \n\n {fileData && (\n {\n ev.preventDefault()\n ev.stopPropagation()\n\n inputRef.current?.value && (inputRef.current.value = '')\n\n onValueChange?.(null)\n setFileData(null)\n }}\n zIndex=\"10\"\n />\n )}\n \n \n \n )\n }\n )\n"],"names":["useCombinedRefs","refs","element","ref","MIME_TYPES","FileInput","forwardRef","props","borderRadius","description","disabled","id","label","labelLocation","name","onValueChange","placeholder","validExtensions","rest","inputRef","useRef","combinedRef","fileData","setFileData","useState","handleChange","e","filelist","file","filename","filesize","accept","ext","jsx","Field","Box","jsxs","clsx","styles.wrap","styles.wrapVariants","Text","styles.input","IconButton","CloseIcon","ev","_a"],"mappings":"8dAOO,MAAMA,EACX,IAAIC,IACHC,GACCD,EAAK,QAAeE,GAAA,CACbA,IAID,OAAOA,GAAQ,WACjBA,EAAID,CAAO,EAETC,EAAY,QAAUD,EAE5B,CA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CAEGF,EAAAA,IAAAO,EAAA,CAAA,SAAAlB,EAAA,IAAA,CAAA,EAAqBc,EAAA,KAAAI,EAAA,CAAA,MAAA,SAAA,QAAA,SAAA,SAAA,CAElBlB,EAAA,KAAA,QAAA,CAAA,EAAuB,KAAE,EAAA,CAC5B,CAAA,CAAA,EAAAW,EAAAA,IAAAO,EAAA,CAAA,SAAAxB,CAAA,CAAA,EAGiBiB,EAAA,IAGrBE,EAAC,CAAA,OAAAJ,EACC,GAAA,QACG,UAAAU,EACe,OAAA,UACX,SAAA/B,EACP,GAAAC,GAAAG,EACU,KAAAA,EACV,SAAAW,EACU,IAAAJ,EACL,KAAA,OACA,GAAAH,CACD,CAAA,EACNI,GAAAW,EAAA,IAGES,EAAC,CAAA,OAAA,UACQ,KAAAC,EACD,KAAA,KACD,QAAAC,GAAA,OAEHA,EAAA,eAAA,EACAA,EAAA,gBAAA,GAEAC,EAAA1B,EAAA,UAAA,MAAA0B,EAAA,QAAA1B,EAAA,QAAA,MAAA,IAEAJ,GAAA,MAAAA,EAAA,MACAQ,EAAA,IAAA,CAAgB,EAClB,OAAA,IACO,CAAA,CACT,CAAA,CAAA,EAAA,CAGN,CAAA,CACF,CAGN"} \ No newline at end of file diff --git a/assets/FileInput-442f4bc0.js b/assets/FileInput-6cb4aba3.js similarity index 98% rename from assets/FileInput-442f4bc0.js rename to assets/FileInput-6cb4aba3.js index 564d1217a..168903acd 100644 --- a/assets/FileInput-442f4bc0.js +++ b/assets/FileInput-6cb4aba3.js @@ -1,2 +1 @@ -import{j as n}from"./jsx-runtime-69eee039.js";import{B as o,c as k}from"./Box-8ffdd394.js";import{r as f}from"./index-7c191284.js";import{F as N}from"./Field-0c069ee0.js";import{I as M}from"./IconButton-3648ed15.js";import{T as c}from"./Text-cdf53fa8.js";import{c as j}from"./WarningIcon-b42ff4ac.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as I}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const T=(...a)=>l=>a.forEach(e=>{e&&(typeof e=="function"?e(l):e.current=l)});var B="fyvr12wh fyvr12wb fyvr11ho fyvr12vb fyvr1ko fyvr1oo fyvr1mo fyvr1qo",W="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nn fyvr12gb fyvr121n fyvr128z fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",_=I({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const z={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"},y=f.forwardRef((a,l)=>{const{borderRadius:e="md",description:C,disabled:m=!1,id:p,label:v="",labelLocation:h="hidden",name:u,onValueChange:t,placeholder:x="Upload a file",validExtensions:F,...b}=a,d=f.useRef(null),q=T(d,l),[i,S]=f.useState(null),w=r=>{const s=r.currentTarget.files;if(!s||!s[0])return;const g=s[0],V=g.name,R=g.size/1e3;S({name:V,size:R,extension:V.split(".").pop()??""}),t==null||t(g)},L=F.map(r=>z[r]).join(",");return n.jsx(N,{description:C,disabled:m,display:"grid",id:p??u,label:v,labelLocation:h,children:n.jsx(o,{width:"full",children:n.jsxs(o,{justifyContent:i?"space-between":"flex-start",color:i?"text100":"text50",className:k(W,_({borderRadius:e})),children:[i?n.jsxs(o,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[n.jsx(c,{children:i.name}),n.jsxs(c,{color:"text50",variant:"xsmall",children:[i.size.toFixed(2)," kb"]})]}):n.jsx(c,{children:x}),n.jsx(o,{accept:L,as:"input",className:B,cursor:"pointer",disabled:m,id:p??u,name:u,onChange:w,ref:q,type:"file",...b}),i&&n.jsx(M,{cursor:"pointer",icon:j,size:"xs",onClick:r=>{var s;r.preventDefault(),r.stopPropagation(),(s=d.current)!=null&&s.value&&(d.current.value=""),t==null||t(null),S(null)},zIndex:"10"})]})})})});try{y.displayName="FileInput",y.__docgenInfo={description:"",displayName:"FileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"File"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{y as F}; -//# sourceMappingURL=FileInput-442f4bc0.js.map +import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as o,c as k}from"./Box-e4a86556.js";import{r as f}from"./index-1cdf6ce0.js";import{F as N}from"./Field-cc1005d3.js";import{I as M}from"./IconButton-64184e44.js";import{T as c}from"./Text-b96ac7e7.js";import{c as j}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as I}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const T=(...a)=>l=>a.forEach(e=>{e&&(typeof e=="function"?e(l):e.current=l)});var B="fyvr12wh fyvr12wb fyvr11ho fyvr12vb fyvr1ko fyvr1oo fyvr1mo fyvr1qo",W="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n5 fyvr12ft fyvr1215 fyvr128h fyvr12nn fyvr12gb fyvr121n fyvr128z fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",_=I({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const z={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"},y=f.forwardRef((a,l)=>{const{borderRadius:e="md",description:C,disabled:m=!1,id:p,label:v="",labelLocation:h="hidden",name:u,onValueChange:t,placeholder:x="Upload a file",validExtensions:F,...b}=a,d=f.useRef(null),q=T(d,l),[i,S]=f.useState(null),w=r=>{const s=r.currentTarget.files;if(!s||!s[0])return;const g=s[0],V=g.name,R=g.size/1e3;S({name:V,size:R,extension:V.split(".").pop()??""}),t==null||t(g)},L=F.map(r=>z[r]).join(",");return n.jsx(N,{description:C,disabled:m,display:"grid",id:p??u,label:v,labelLocation:h,children:n.jsx(o,{width:"full",children:n.jsxs(o,{justifyContent:i?"space-between":"flex-start",color:i?"text100":"text50",className:k(W,_({borderRadius:e})),children:[i?n.jsxs(o,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[n.jsx(c,{children:i.name}),n.jsxs(c,{color:"text50",variant:"xsmall",children:[i.size.toFixed(2)," kb"]})]}):n.jsx(c,{children:x}),n.jsx(o,{accept:L,as:"input",className:B,cursor:"pointer",disabled:m,id:p??u,name:u,onChange:w,ref:q,type:"file",...b}),i&&n.jsx(M,{cursor:"pointer",icon:j,size:"xs",onClick:r=>{var s;r.preventDefault(),r.stopPropagation(),(s=d.current)!=null&&s.value&&(d.current.value=""),t==null||t(null),S(null)},zIndex:"10"})]})})})});try{y.displayName="FileInput",y.__docgenInfo={description:"",displayName:"FileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"File"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{y as F}; diff --git a/assets/FileInput.stories-44dab65a.js b/assets/FileInput.stories-14c385f0.js similarity index 68% rename from assets/FileInput.stories-44dab65a.js rename to assets/FileInput.stories-14c385f0.js index 563180729..cad0fe65e 100644 --- a/assets/FileInput.stories-44dab65a.js +++ b/assets/FileInput.stories-14c385f0.js @@ -1,4 +1,4 @@ -import{F as n}from"./FileInput-442f4bc0.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-0c069ee0.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./IconButton-3648ed15.js";import"./Button-cbaba6d6.js";import"./WarningIcon-b42ff4ac.js";const E={title:"Forms/FileInput",component:n},o={args:{borderRadius:"md",name:"myFileInput",label:"File input",labelLocation:"top",validExtensions:["images"],onValueChange:r=>console.log(r)}};var e,t,i;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:`{ +import{F as n}from"./FileInput-6cb4aba3.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./IconButton-64184e44.js";import"./Button-e8455a66.js";import"./WarningIcon-c4815a2d.js";const E={title:"Forms/FileInput",component:n},o={args:{borderRadius:"md",name:"myFileInput",label:"File input",labelLocation:"top",validExtensions:["images"],onValueChange:r=>console.log(r)}};var e,t,i;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:`{ args: { borderRadius: 'md', name: 'myFileInput', @@ -8,4 +8,3 @@ import{F as n}from"./FileInput-442f4bc0.js";import"./jsx-runtime-69eee039.js";im onValueChange: file => console.log(file) } }`,...(i=(t=o.parameters)==null?void 0:t.docs)==null?void 0:i.source}}};const _=["Default"];export{o as Default,_ as __namedExportsOrder,E as default}; -//# sourceMappingURL=FileInput.stories-44dab65a.js.map diff --git a/assets/FileInput.stories-44dab65a.js.map b/assets/FileInput.stories-44dab65a.js.map deleted file mode 100644 index d9b1d5547..000000000 --- a/assets/FileInput.stories-44dab65a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileInput.stories-44dab65a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"} \ No newline at end of file diff --git a/assets/Form.stories-4e90b920.js.map b/assets/Form.stories-4e90b920.js.map deleted file mode 100644 index 05416afe4..000000000 --- a/assets/Form.stories-4e90b920.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Form.stories-4e90b920.js","sources":["../../src/components/Checkbox/ControlledCheckbox.tsx","../../src/components/FileInput/ControlledFileInput.tsx","../../src/components/RadioGroup/ControlledRadioGroup.tsx","../../src/components/Select/ControlledSelect.tsx","../../src/components/Switch/ControlledSwitch.tsx","../../src/components/Form/Form.tsx"],"sourcesContent":["import { Control, Controller } from 'react-hook-form'\n\nimport { Checkbox, CheckboxProps } from './Checkbox'\n\ntype ControlledCheckboxProps = CheckboxProps & {\n control: Control\n name: string\n onCheckedChange: (checked: boolean) => void\n rules?: {}\n}\n\nexport const ControlledCheckbox = ({\n control,\n defaultChecked,\n onCheckedChange,\n name,\n rules,\n ...checkboxProps\n}: ControlledCheckboxProps) => (\n (\n \n )}\n />\n)\n","import { Control, Controller } from 'react-hook-form'\n\nimport { PolymorphicProps } from '~/components/Box'\n\nimport { FileInput, FileInputProps } from './FileInput'\n\ntype ControlledFileInputProps = PolymorphicProps & {\n control: Control\n defaultValue?: string\n name: string\n rules?: {}\n}\n\nexport const ControlledFileInput = ({\n defaultValue,\n name,\n control,\n rules,\n ...inputProps\n}: ControlledFileInputProps) => (\n (\n \n )}\n />\n)\n","import { Control, Controller } from 'react-hook-form'\n\nimport { RadioGroup, RadioGroupProps } from './RadioGroup'\n\ntype ControlledRadioGroupProps = RadioGroupProps & {\n control: Control\n defaultValue?: string\n name: string\n onValueChange: (value: string) => void\n rules?: {}\n}\n\nexport const ControlledRadioGroup = ({\n control,\n defaultValue,\n name,\n onValueChange,\n rules,\n ...radioProps\n}: ControlledRadioGroupProps) => (\n (\n \n )}\n />\n)\n","import { Control, Controller } from 'react-hook-form'\n\nimport { Select, SelectProps } from './Select'\n\ntype ControlledSelectProps = SelectProps & {\n control: Control\n defaultValue?: string\n name: string\n onValueChange: (value: string) => void\n rules?: {}\n}\n\nexport const ControlledSelect = ({\n control,\n defaultValue,\n name,\n onValueChange,\n rules,\n ...selectProps\n}: ControlledSelectProps) => (\n (\n \n )}\n />\n)\n","import { SwitchProps } from '@radix-ui/react-switch'\nimport { Control, Controller } from 'react-hook-form'\n\nimport { Switch } from './Switch'\n\ntype ControlledSwitchProps = SwitchProps & {\n control: Control\n name: string\n onCheckedChange: (checked: boolean) => void\n rules?: {}\n}\n\nexport const ControlledSwitch = ({\n control,\n defaultChecked,\n onCheckedChange,\n name,\n rules,\n ...switchProps\n}: ControlledSwitchProps) => (\n (\n \n )}\n />\n)\n","import { ReactNode } from 'react'\nimport {\n FieldValues,\n SubmitHandler,\n useForm,\n UseFormReturn,\n} from 'react-hook-form'\n\ntype FormProps = {\n children: (methods: UseFormReturn) => ReactNode\n onSubmit: SubmitHandler\n defaultValues?: FieldValues\n}\n\nexport const Form = ({ children, defaultValues = {}, onSubmit }: FormProps) => {\n const methods = useForm({ defaultValues })\n\n return (\n
    {children(methods)}
    \n )\n}\n"],"names":["ControlledCheckbox","control","defaultChecked","onCheckedChange","name","rules","checkboxProps","jsx","Controller","_","fieldProps","Checkbox","ControlledFileInput","defaultValue","inputProps","_v","_c","FileInput","ControlledRadioGroup","onValueChange","radioProps","field","RadioGroup","ControlledSelect","selectProps","Select","ControlledSwitch","switchProps","Switch","Form","children","defaultValues","onSubmit","methods","useForm"],"mappings":"6qCAWO,MAAAA,EAAA,CAAA,CAA4B,QAAAC,EACjC,eAAAC,EACA,gBAAAC,EACA,KAAAC,EACA,MAAAC,EACA,GAAAC,CAEF,IAAAC,EAAA,IACEC,EAAC,CAAA,aAAAN,EACe,KAAAE,EACd,QAAAH,EACA,MAAAI,EACA,OAAA,CAAA,CAAA,MAAA,CAAA,IAAAI,EAAA,GAAAC,CAAA,CAAA,IAAAH,EAAA,IAEEI,EAAC,CAAA,gBAAAR,EACC,eAAAD,EACA,GAAAQ,EACI,GAAAJ,CACA,CAAA,CACN,CAEJ,suCCnBK,MAAAM,EAAA,CAAA,CAA6B,aAAAC,EAClC,KAAAT,EACA,QAAAH,EACA,MAAAI,EACA,GAAAS,CAEF,IAAAP,EAAA,IACEC,EAAC,CAAA,aAAAK,EACC,KAAAT,EACA,QAAAH,EACA,MAAAI,EACA,OAAA,CAAA,CAAA,MAAA,CAAA,MAAAU,EAAA,SAAAC,EAAA,GAAAN,CAAA,CAAA,IAAAH,EAAAA,IAAAU,EAAA,CAAA,GAAAP,EAAA,GAAAI,EAAA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AA,SAAAF,EAAAG,CAAA,CAAA,CAAA,CAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Form.stories-4e90b920.js b/assets/Form.stories-64ba4232.js similarity index 97% rename from assets/Form.stories-4e90b920.js rename to assets/Form.stories-64ba4232.js index bb8acc9d2..70aa35145 100644 --- a/assets/Form.stories-4e90b920.js +++ b/assets/Form.stories-64ba4232.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{B as f}from"./Box-8ffdd394.js";import{B as v}from"./Button-cbaba6d6.js";import{C as k}from"./Checkbox-f0cda0fe.js";import{C as d,u as w,a as q}from"./ControlledTextInput-deea110c.js";import{F as R}from"./FileInput-442f4bc0.js";import{R as _}from"./RadioGroup-489ef1ec.js";import{S as I}from"./Select-a2de057d.js";import{S as O}from"./Switch-617544d3.js";import{T as g}from"./Text-cdf53fa8.js";import"./TextInput-e7a764b0.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-555f5aa0.js";import"./index-3842af66.js";import"./index-cd5c74af.js";import"./Field-0c069ee0.js";import"./WarningIcon-b42ff4ac.js";import"./IconButton-3648ed15.js";import"./index-e7e6c749.js";import"./index-e5d8d6a8.js";import"./index-8f163998.js";import"./index-df712b54.js";import"./index-f0ce3c30.js";import"./Combination-eaaf64fc.js";import"./index-50d6e817.js";import"./index-8e81e3f6.js";import"./typography-f274f330.js";const S=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(k,{onCheckedChange:t,defaultChecked:r,...u,...l})});try{S.displayName="ControlledCheckbox",S.__docgenInfo={description:"",displayName:"ControlledCheckbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const V=({defaultValue:n,name:r,control:t,rules:a,...i})=>e.jsx(d,{defaultValue:n,name:r,control:t,rules:a,render:({field:{value:l,onChange:s,...u}})=>e.jsx(R,{...u,...i})});try{V.displayName="ControlledFileInput",V.__docgenInfo={description:"",displayName:"ControlledFileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"(File & (string | number | readonly string[]))"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const C=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(_,{onValueChange:a,defaultValue:r,...s,...l})});try{C.displayName="ControlledRadioGroup",C.__docgenInfo={description:"",displayName:"ControlledRadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const y=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(I,{onValueChange:a,defaultValue:r,...s,...l})});try{y.displayName="ControlledSelect",y.__docgenInfo={description:"",displayName:"ControlledSelect",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const h=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(O,{onCheckedChange:t,defaultChecked:r,...u,...l})});try{h.displayName="ControlledSwitch",h.__docgenInfo={description:"",displayName:"ControlledSwitch",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const p=({children:n,defaultValues:r={},onSubmit:t})=>{const a=w({defaultValues:r});return e.jsx("form",{onSubmit:a.handleSubmit(t),children:n(a)})};try{p.displayName="Form",p.__docgenInfo={description:"",displayName:"Form",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"SubmitHandler"}},defaultValues:{defaultValue:{value:"{}"},description:"",name:"defaultValues",required:!1,type:{name:"FieldValues"}}}}}catch{}const pe={title:"Forms/Form",component:p},m=[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"}],c={render:({onSubmit:n,...r})=>e.jsx(f,{background:"backgroundSecondary",borderRadius:"md",flexDirection:"column",gap:"4",padding:"4",children:e.jsx(p,{defaultValues:{firstName:""},onSubmit:n,...r,children:({control:t,reset:a,formState:{errors:i},setValue:l})=>{var s,u,b,x;return e.jsxs(f,{background:"backgroundPrimary",flexDirection:"column",gap:"5",padding:"4",borderRadius:"xs",children:[e.jsx(q,{control:t,label:"First Name",labelLocation:"top",name:"firstName",placeholder:"Enter first name",rules:{required:"First name is required"}}),((s=i.firstName)==null?void 0:s.message)&&e.jsx(g,{color:"negative",children:i.firstName.message}),e.jsx(q,{control:t,defaultValue:"",label:"Last Name",labelLocation:"top",name:"lastName",placeholder:"Enter last name",rules:{required:"Last name is required"}}),((u=i.lastName)==null?void 0:u.message)&&e.jsx(g,{color:"negative",children:i.lastName.message}),e.jsx(V,{defaultValue:"",control:t,label:"File Input",labelLocation:"top",name:"fileInput",onValueChange:o=>l("fileInput",o),rules:{required:"A file is required"},validExtensions:["images"]}),((b=i.fileInput)==null?void 0:b.message)&&e.jsx(g,{color:"negative",children:i.fileInput.message}),e.jsx(y,{control:t,defaultValue:m[0].value,label:"Select Option",labelLocation:"top",name:"selectOption",onValueChange:o=>l("selectOption",o),options:m,placeholder:"Select an option",rules:{required:"A selection is required"}}),((x=i.selectOption)==null?void 0:x.message)&&e.jsx(g,{color:"negative",children:i.selectOption.message}),e.jsx(h,{control:t,name:"switchOption",onCheckedChange:o=>l("switchOption",o),defaultChecked:!1}),e.jsx(S,{control:t,label:"Checkbox Option",labelLocation:"right",name:"checkboxOption",onCheckedChange:o=>l("checkboxOption",o),defaultChecked:!1}),e.jsx(C,{control:t,defaultValue:m[0].value,flexDirection:"row",gap:"4",onValueChange:o=>l("radioOption",o),options:m,name:"radioOption"}),e.jsxs(f,{flexDirection:"row-reverse",marginTop:"2",gap:"2",children:[e.jsx(v,{type:"submit",label:"Submit",variant:"primary"}),e.jsx(v,{type:"reset",label:"Reset",onClick:()=>a()})]})]})}})}),args:{onSubmit:n=>console.log(n)}};var F,L,N;c.parameters={...c.parameters,docs:{...(F=c.parameters)==null?void 0:F.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as f}from"./Box-e4a86556.js";import{B as v}from"./Button-e8455a66.js";import{C as k}from"./Checkbox-9100b7bb.js";import{C as d,u as w,a as q}from"./ControlledTextInput-4a33d1f2.js";import{F as R}from"./FileInput-6cb4aba3.js";import{R as _}from"./RadioGroup-87191244.js";import{S as I}from"./Select-09cd7267.js";import{S as O}from"./Switch-bc0c6329.js";import{T as g}from"./Text-b96ac7e7.js";import"./TextInput-d5b4161c.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-b65dbec4.js";import"./index-0d95b182.js";import"./index-5a7be88c.js";import"./Field-cc1005d3.js";import"./WarningIcon-c4815a2d.js";import"./IconButton-64184e44.js";import"./index-f015b491.js";import"./index-af546338.js";import"./index-dad7d30c.js";import"./index-cb7a0887.js";import"./index-c484f70b.js";import"./Combination-b274f0b7.js";import"./index-6966b6f4.js";import"./index-7e536d32.js";import"./typography-f274f330.js";const S=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(k,{onCheckedChange:t,defaultChecked:r,...u,...l})});try{S.displayName="ControlledCheckbox",S.__docgenInfo={description:"",displayName:"ControlledCheckbox",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const V=({defaultValue:n,name:r,control:t,rules:a,...i})=>e.jsx(d,{defaultValue:n,name:r,control:t,rules:a,render:({field:{value:l,onChange:s,...u}})=>e.jsx(R,{...u,...i})});try{V.displayName="ControlledFileInput",V.__docgenInfo={description:"",displayName:"ControlledFileInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},validExtensions:{defaultValue:null,description:"",name:"validExtensions",required:!0,type:{name:'("png" | "jpeg" | "jpg" | "images" | "pdf")[]'}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"(File & (string | number | readonly string[]))"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"((value: File | null) => void)"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLInputElement | null) => void) | RefObject | null"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const C=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(_,{onValueChange:a,defaultValue:r,...s,...l})});try{C.displayName="ControlledRadioGroup",C.__docgenInfo={description:"",displayName:"ControlledRadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const y=({control:n,defaultValue:r,name:t,onValueChange:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:t,control:n,rules:i,render:({field:s})=>e.jsx(I,{onValueChange:a,defaultValue:r,...s,...l})});try{y.displayName="ControlledSelect",y.__docgenInfo={description:"",displayName:"ControlledSelect",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const h=({control:n,defaultChecked:r,onCheckedChange:t,name:a,rules:i,...l})=>e.jsx(d,{defaultValue:r,name:a,control:n,rules:i,render:({field:{ref:s,...u}})=>e.jsx(O,{onCheckedChange:t,defaultChecked:r,...u,...l})});try{h.displayName="ControlledSwitch",h.__docgenInfo={description:"",displayName:"ControlledSwitch",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"",name:"control",required:!0,type:{name:"Control"}},rules:{defaultValue:null,description:"",name:"rules",required:!1,type:{name:"{}"}}}}}catch{}const p=({children:n,defaultValues:r={},onSubmit:t})=>{const a=w({defaultValues:r});return e.jsx("form",{onSubmit:a.handleSubmit(t),children:n(a)})};try{p.displayName="Form",p.__docgenInfo={description:"",displayName:"Form",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"SubmitHandler"}},defaultValues:{defaultValue:{value:"{}"},description:"",name:"defaultValues",required:!1,type:{name:"FieldValues"}}}}}catch{}const pe={title:"Forms/Form",component:p},m=[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"}],c={render:({onSubmit:n,...r})=>e.jsx(f,{background:"backgroundSecondary",borderRadius:"md",flexDirection:"column",gap:"4",padding:"4",children:e.jsx(p,{defaultValues:{firstName:""},onSubmit:n,...r,children:({control:t,reset:a,formState:{errors:i},setValue:l})=>{var s,u,b,x;return e.jsxs(f,{background:"backgroundPrimary",flexDirection:"column",gap:"5",padding:"4",borderRadius:"xs",children:[e.jsx(q,{control:t,label:"First Name",labelLocation:"top",name:"firstName",placeholder:"Enter first name",rules:{required:"First name is required"}}),((s=i.firstName)==null?void 0:s.message)&&e.jsx(g,{color:"negative",children:i.firstName.message}),e.jsx(q,{control:t,defaultValue:"",label:"Last Name",labelLocation:"top",name:"lastName",placeholder:"Enter last name",rules:{required:"Last name is required"}}),((u=i.lastName)==null?void 0:u.message)&&e.jsx(g,{color:"negative",children:i.lastName.message}),e.jsx(V,{defaultValue:"",control:t,label:"File Input",labelLocation:"top",name:"fileInput",onValueChange:o=>l("fileInput",o),rules:{required:"A file is required"},validExtensions:["images"]}),((b=i.fileInput)==null?void 0:b.message)&&e.jsx(g,{color:"negative",children:i.fileInput.message}),e.jsx(y,{control:t,defaultValue:m[0].value,label:"Select Option",labelLocation:"top",name:"selectOption",onValueChange:o=>l("selectOption",o),options:m,placeholder:"Select an option",rules:{required:"A selection is required"}}),((x=i.selectOption)==null?void 0:x.message)&&e.jsx(g,{color:"negative",children:i.selectOption.message}),e.jsx(h,{control:t,name:"switchOption",onCheckedChange:o=>l("switchOption",o),defaultChecked:!1}),e.jsx(S,{control:t,label:"Checkbox Option",labelLocation:"right",name:"checkboxOption",onCheckedChange:o=>l("checkboxOption",o),defaultChecked:!1}),e.jsx(C,{control:t,defaultValue:m[0].value,flexDirection:"row",gap:"4",onValueChange:o=>l("radioOption",o),options:m,name:"radioOption"}),e.jsxs(f,{flexDirection:"row-reverse",marginTop:"2",gap:"2",children:[e.jsx(v,{type:"submit",label:"Submit",variant:"primary"}),e.jsx(v,{type:"reset",label:"Reset",onClick:()=>a()})]})]})}})}),args:{onSubmit:n=>console.log(n)}};var F,L,N;c.parameters={...c.parameters,docs:{...(F=c.parameters)==null?void 0:F.docs,source:{originalSource:`{ render: ({ onSubmit, ...args @@ -53,4 +53,3 @@ import{j as e}from"./jsx-runtime-69eee039.js";import{B as f}from"./Box-8ffdd394. onSubmit: (data: {}) => console.log(data) } }`,...(N=(L=c.parameters)==null?void 0:L.docs)==null?void 0:N.source}}};const fe=["Default"];export{c as Default,fe as __namedExportsOrder,pe as default}; -//# sourceMappingURL=Form.stories-4e90b920.js.map diff --git a/assets/GradientAvatar.stories-f9a102be.js b/assets/GradientAvatar.stories-5ae01a42.js similarity index 99% rename from assets/GradientAvatar.stories-f9a102be.js rename to assets/GradientAvatar.stories-5ae01a42.js index a198681b3..d56fe45ac 100644 --- a/assets/GradientAvatar.stories-f9a102be.js +++ b/assets/GradientAvatar.stories-5ae01a42.js @@ -1,4 +1,4 @@ -import{j as ie}from"./jsx-runtime-69eee039.js";import{B as R0,c as Nn}from"./Box-8ffdd394.js";import{T as Vn}from"./Text-cdf53fa8.js";import{a as Tn,c as Di,g as Rr,r as p0}from"./index-7c191284.js";import{c as Bn}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */var z0={exports:{}};const Dn={},On=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),Ln=Tn(On);z0.exports;(function(r){(function(e,t){function i(m,n){if(!m)throw new Error(n||"Assertion failed")}function s(m,n){m.super_=n;var c=function(){};c.prototype=n.prototype,m.prototype=new c,m.prototype.constructor=m}function a(m,n,c){if(a.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((n==="le"||n==="be")&&(c=n,n=10),this._init(m||0,n||10,c||"be"))}typeof e=="object"?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;var x;try{typeof window<"u"&&typeof window.Buffer<"u"?x=window.Buffer:x=Ln.Buffer}catch{}a.isBN=function(n){return n instanceof a?!0:n!==null&&typeof n=="object"&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,c){return n.cmp(c)>0?n:c},a.min=function(n,c){return n.cmp(c)<0?n:c},a.prototype._init=function(n,c,l){if(typeof n=="number")return this._initNumber(n,c,l);if(typeof n=="object")return this._initArray(n,c,l);c==="hex"&&(c=16),i(c===(c|0)&&c>=2&&c<=36),n=n.toString().replace(/\s+/g,"");var b=0;n[0]==="-"&&(b++,this.negative=1),b=0;b-=3)S=n[b]|n[b-1]<<8|n[b-2]<<16,this.words[v]|=S<<_&67108863,this.words[v+1]=S>>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);else if(l==="le")for(b=0,v=0;b>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);return this._strip()};function u(m,n){var c=m.charCodeAt(n);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;i(!1,"Invalid character in "+m)}function p(m,n,c){var l=u(m,c);return c-1>=n&&(l|=u(m,c-1)<<4),l}a.prototype._parseHex=function(n,c,l){this.length=Math.ceil((n.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)_=p(n,c,b)<=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8;else{var d=n.length-c;for(b=d%2===0?c+1:c;b=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8}this._strip()};function g(m,n,c,l){for(var b=0,v=0,S=Math.min(m.length,c),_=n;_=49?v=d-49+10:d>=17?v=d-17+10:v=d,i(d>=0&&v1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{a.prototype.inspect=w}else a.prototype.inspect=w;function w(){return(this.red?""}var F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(n,c){n=n||10,c=c|0||1;var l;if(n===16||n==="hex"){l="";for(var b=0,v=0,S=0;S>>24-b&16777215,b+=2,b>=26&&(b-=26,S--),v!==0||S!==this.length-1?l=F[6-d.length]+d+l:l=d+l}for(v!==0&&(l=v.toString(16)+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(n===(n|0)&&n>=2&&n<=36){var f=k[n],h=N[n];l="";var C=this.clone();for(C.negative=0;!C.isZero();){var o=C.modrn(h).toString(n);C=C.idivn(h),C.isZero()?l=o+l:l=F[f-o.length]+o+l}for(this.isZero()&&(l="0"+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-n:n},a.prototype.toJSON=function(){return this.toString(16,2)},x&&(a.prototype.toBuffer=function(n,c){return this.toArrayLike(x,n,c)}),a.prototype.toArray=function(n,c){return this.toArrayLike(Array,n,c)};var P=function(n,c){return n.allocUnsafe?n.allocUnsafe(c):new n(c)};a.prototype.toArrayLike=function(n,c,l){this._strip();var b=this.byteLength(),v=l||Math.max(1,b);i(b<=v,"byte array longer than desired length"),i(v>0,"Requested array length <= 0");var S=P(n,v),_=c==="le"?"LE":"BE";return this["_toArrayLike"+_](S,b),S},a.prototype._toArrayLikeLE=function(n,c){for(var l=0,b=0,v=0,S=0;v>8&255),l>16&255),S===6?(l>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l=0&&(n[l--]=_>>8&255),l>=0&&(n[l--]=_>>16&255),S===6?(l>=0&&(n[l--]=_>>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l>=0)for(n[l--]=b;l>=0;)n[l--]=0},Math.clz32?a.prototype._countBits=function(n){return 32-Math.clz32(n)}:a.prototype._countBits=function(n){var c=n,l=0;return c>=4096&&(l+=13,c>>>=13),c>=64&&(l+=7,c>>>=7),c>=8&&(l+=4,c>>>=4),c>=2&&(l+=2,c>>>=2),l+c},a.prototype._zeroBits=function(n){if(n===0)return 26;var c=n,l=0;return c&8191||(l+=13,c>>>=13),c&127||(l+=7,c>>>=7),c&15||(l+=4,c>>>=4),c&3||(l+=2,c>>>=2),c&1||l++,l},a.prototype.bitLength=function(){var n=this.words[this.length-1],c=this._countBits(n);return(this.length-1)*26+c};function M(m){for(var n=new Array(m.bitLength()),c=0;c>>b&1}return n}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,c=0;cn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var c;this.length>n.length?c=n:c=this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var c,l;this.length>n.length?(c=this,l=n):(c=n,l=this);for(var b=0;bn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){i(typeof n=="number"&&n>=0);var c=Math.ceil(n/26)|0,l=n%26;this._expand(c),l>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-l),this._strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,c){i(typeof n=="number"&&n>=0);var l=n/26|0,b=n%26;return this._expand(l+1),c?this.words[l]=this.words[l]|1<n.length?(l=this,b=n):(l=n,b=this);for(var v=0,S=0;S>>26;for(;v!==0&&S>>26;if(this.length=l.length,v!==0)this.words[this.length]=v,this.length++;else if(l!==this)for(;Sn.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(n.negative!==0){n.negative=0;var c=this.iadd(n);return n.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var l=this.cmp(n);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,v;l>0?(b=this,v=n):(b=n,v=this);for(var S=0,_=0;_>26,this.words[_]=c&67108863;for(;S!==0&&_>26,this.words[_]=c&67108863;if(S===0&&_>>26,C=d&67108863,o=Math.min(f,n.length-1),A=Math.max(0,f-m.length+1);A<=o;A++){var I=f-A|0;b=m.words[I]|0,v=n.words[A]|0,S=b*v+C,h+=S/67108864|0,C=S&67108863}c.words[f]=C|0,d=h|0}return d!==0?c.words[f]=d|0:c.length--,c._strip()}var L=function(n,c,l){var b=n.words,v=c.words,S=l.words,_=0,d,f,h,C=b[0]|0,o=C&8191,A=C>>>13,I=b[1]|0,E=I&8191,R=I>>>13,O=b[2]|0,T=O&8191,D=O>>>13,Oe=b[3]|0,q=Oe&8191,X=Oe>>>13,Bt=b[4]|0,fe=Bt&8191,se=Bt>>>13,Dt=b[5]|0,oe=Dt&8191,ce=Dt>>>13,Ot=b[6]|0,de=Ot&8191,xe=Ot>>>13,Lt=b[7]|0,ue=Lt&8191,le=Lt>>>13,qt=b[8]|0,he=qt&8191,be=qt>>>13,Ut=b[9]|0,pe=Ut&8191,ge=Ut>>>13,zt=v[0]|0,me=zt&8191,ve=zt>>>13,Gt=v[1]|0,ye=Gt&8191,we=Gt>>>13,Kt=v[2]|0,Se=Kt&8191,Me=Kt>>>13,$t=v[3]|0,Ae=$t&8191,Ce=$t>>>13,Ht=v[4]|0,_e=Ht&8191,Ee=Ht>>>13,Wt=v[5]|0,Pe=Wt&8191,Fe=Wt>>>13,Jt=v[6]|0,Ie=Jt&8191,Re=Jt>>>13,jt=v[7]|0,ke=jt&8191,Ne=jt>>>13,Xt=v[8]|0,Ve=Xt&8191,Te=Xt>>>13,Zt=v[9]|0,Be=Zt&8191,De=Zt>>>13;l.negative=n.negative^c.negative,l.length=19,d=Math.imul(o,me),f=Math.imul(o,ve),f=f+Math.imul(A,me)|0,h=Math.imul(A,ve);var _t=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(_t>>>26)|0,_t&=67108863,d=Math.imul(E,me),f=Math.imul(E,ve),f=f+Math.imul(R,me)|0,h=Math.imul(R,ve),d=d+Math.imul(o,ye)|0,f=f+Math.imul(o,we)|0,f=f+Math.imul(A,ye)|0,h=h+Math.imul(A,we)|0;var Et=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,d=Math.imul(T,me),f=Math.imul(T,ve),f=f+Math.imul(D,me)|0,h=Math.imul(D,ve),d=d+Math.imul(E,ye)|0,f=f+Math.imul(E,we)|0,f=f+Math.imul(R,ye)|0,h=h+Math.imul(R,we)|0,d=d+Math.imul(o,Se)|0,f=f+Math.imul(o,Me)|0,f=f+Math.imul(A,Se)|0,h=h+Math.imul(A,Me)|0;var Pt=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(q,me),f=Math.imul(q,ve),f=f+Math.imul(X,me)|0,h=Math.imul(X,ve),d=d+Math.imul(T,ye)|0,f=f+Math.imul(T,we)|0,f=f+Math.imul(D,ye)|0,h=h+Math.imul(D,we)|0,d=d+Math.imul(E,Se)|0,f=f+Math.imul(E,Me)|0,f=f+Math.imul(R,Se)|0,h=h+Math.imul(R,Me)|0,d=d+Math.imul(o,Ae)|0,f=f+Math.imul(o,Ce)|0,f=f+Math.imul(A,Ae)|0,h=h+Math.imul(A,Ce)|0;var Ft=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(fe,me),f=Math.imul(fe,ve),f=f+Math.imul(se,me)|0,h=Math.imul(se,ve),d=d+Math.imul(q,ye)|0,f=f+Math.imul(q,we)|0,f=f+Math.imul(X,ye)|0,h=h+Math.imul(X,we)|0,d=d+Math.imul(T,Se)|0,f=f+Math.imul(T,Me)|0,f=f+Math.imul(D,Se)|0,h=h+Math.imul(D,Me)|0,d=d+Math.imul(E,Ae)|0,f=f+Math.imul(E,Ce)|0,f=f+Math.imul(R,Ae)|0,h=h+Math.imul(R,Ce)|0,d=d+Math.imul(o,_e)|0,f=f+Math.imul(o,Ee)|0,f=f+Math.imul(A,_e)|0,h=h+Math.imul(A,Ee)|0;var It=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(oe,me),f=Math.imul(oe,ve),f=f+Math.imul(ce,me)|0,h=Math.imul(ce,ve),d=d+Math.imul(fe,ye)|0,f=f+Math.imul(fe,we)|0,f=f+Math.imul(se,ye)|0,h=h+Math.imul(se,we)|0,d=d+Math.imul(q,Se)|0,f=f+Math.imul(q,Me)|0,f=f+Math.imul(X,Se)|0,h=h+Math.imul(X,Me)|0,d=d+Math.imul(T,Ae)|0,f=f+Math.imul(T,Ce)|0,f=f+Math.imul(D,Ae)|0,h=h+Math.imul(D,Ce)|0,d=d+Math.imul(E,_e)|0,f=f+Math.imul(E,Ee)|0,f=f+Math.imul(R,_e)|0,h=h+Math.imul(R,Ee)|0,d=d+Math.imul(o,Pe)|0,f=f+Math.imul(o,Fe)|0,f=f+Math.imul(A,Pe)|0,h=h+Math.imul(A,Fe)|0;var r0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(r0>>>26)|0,r0&=67108863,d=Math.imul(de,me),f=Math.imul(de,ve),f=f+Math.imul(xe,me)|0,h=Math.imul(xe,ve),d=d+Math.imul(oe,ye)|0,f=f+Math.imul(oe,we)|0,f=f+Math.imul(ce,ye)|0,h=h+Math.imul(ce,we)|0,d=d+Math.imul(fe,Se)|0,f=f+Math.imul(fe,Me)|0,f=f+Math.imul(se,Se)|0,h=h+Math.imul(se,Me)|0,d=d+Math.imul(q,Ae)|0,f=f+Math.imul(q,Ce)|0,f=f+Math.imul(X,Ae)|0,h=h+Math.imul(X,Ce)|0,d=d+Math.imul(T,_e)|0,f=f+Math.imul(T,Ee)|0,f=f+Math.imul(D,_e)|0,h=h+Math.imul(D,Ee)|0,d=d+Math.imul(E,Pe)|0,f=f+Math.imul(E,Fe)|0,f=f+Math.imul(R,Pe)|0,h=h+Math.imul(R,Fe)|0,d=d+Math.imul(o,Ie)|0,f=f+Math.imul(o,Re)|0,f=f+Math.imul(A,Ie)|0,h=h+Math.imul(A,Re)|0;var i0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(i0>>>26)|0,i0&=67108863,d=Math.imul(ue,me),f=Math.imul(ue,ve),f=f+Math.imul(le,me)|0,h=Math.imul(le,ve),d=d+Math.imul(de,ye)|0,f=f+Math.imul(de,we)|0,f=f+Math.imul(xe,ye)|0,h=h+Math.imul(xe,we)|0,d=d+Math.imul(oe,Se)|0,f=f+Math.imul(oe,Me)|0,f=f+Math.imul(ce,Se)|0,h=h+Math.imul(ce,Me)|0,d=d+Math.imul(fe,Ae)|0,f=f+Math.imul(fe,Ce)|0,f=f+Math.imul(se,Ae)|0,h=h+Math.imul(se,Ce)|0,d=d+Math.imul(q,_e)|0,f=f+Math.imul(q,Ee)|0,f=f+Math.imul(X,_e)|0,h=h+Math.imul(X,Ee)|0,d=d+Math.imul(T,Pe)|0,f=f+Math.imul(T,Fe)|0,f=f+Math.imul(D,Pe)|0,h=h+Math.imul(D,Fe)|0,d=d+Math.imul(E,Ie)|0,f=f+Math.imul(E,Re)|0,f=f+Math.imul(R,Ie)|0,h=h+Math.imul(R,Re)|0,d=d+Math.imul(o,ke)|0,f=f+Math.imul(o,Ne)|0,f=f+Math.imul(A,ke)|0,h=h+Math.imul(A,Ne)|0;var n0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(n0>>>26)|0,n0&=67108863,d=Math.imul(he,me),f=Math.imul(he,ve),f=f+Math.imul(be,me)|0,h=Math.imul(be,ve),d=d+Math.imul(ue,ye)|0,f=f+Math.imul(ue,we)|0,f=f+Math.imul(le,ye)|0,h=h+Math.imul(le,we)|0,d=d+Math.imul(de,Se)|0,f=f+Math.imul(de,Me)|0,f=f+Math.imul(xe,Se)|0,h=h+Math.imul(xe,Me)|0,d=d+Math.imul(oe,Ae)|0,f=f+Math.imul(oe,Ce)|0,f=f+Math.imul(ce,Ae)|0,h=h+Math.imul(ce,Ce)|0,d=d+Math.imul(fe,_e)|0,f=f+Math.imul(fe,Ee)|0,f=f+Math.imul(se,_e)|0,h=h+Math.imul(se,Ee)|0,d=d+Math.imul(q,Pe)|0,f=f+Math.imul(q,Fe)|0,f=f+Math.imul(X,Pe)|0,h=h+Math.imul(X,Fe)|0,d=d+Math.imul(T,Ie)|0,f=f+Math.imul(T,Re)|0,f=f+Math.imul(D,Ie)|0,h=h+Math.imul(D,Re)|0,d=d+Math.imul(E,ke)|0,f=f+Math.imul(E,Ne)|0,f=f+Math.imul(R,ke)|0,h=h+Math.imul(R,Ne)|0,d=d+Math.imul(o,Ve)|0,f=f+Math.imul(o,Te)|0,f=f+Math.imul(A,Ve)|0,h=h+Math.imul(A,Te)|0;var a0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(a0>>>26)|0,a0&=67108863,d=Math.imul(pe,me),f=Math.imul(pe,ve),f=f+Math.imul(ge,me)|0,h=Math.imul(ge,ve),d=d+Math.imul(he,ye)|0,f=f+Math.imul(he,we)|0,f=f+Math.imul(be,ye)|0,h=h+Math.imul(be,we)|0,d=d+Math.imul(ue,Se)|0,f=f+Math.imul(ue,Me)|0,f=f+Math.imul(le,Se)|0,h=h+Math.imul(le,Me)|0,d=d+Math.imul(de,Ae)|0,f=f+Math.imul(de,Ce)|0,f=f+Math.imul(xe,Ae)|0,h=h+Math.imul(xe,Ce)|0,d=d+Math.imul(oe,_e)|0,f=f+Math.imul(oe,Ee)|0,f=f+Math.imul(ce,_e)|0,h=h+Math.imul(ce,Ee)|0,d=d+Math.imul(fe,Pe)|0,f=f+Math.imul(fe,Fe)|0,f=f+Math.imul(se,Pe)|0,h=h+Math.imul(se,Fe)|0,d=d+Math.imul(q,Ie)|0,f=f+Math.imul(q,Re)|0,f=f+Math.imul(X,Ie)|0,h=h+Math.imul(X,Re)|0,d=d+Math.imul(T,ke)|0,f=f+Math.imul(T,Ne)|0,f=f+Math.imul(D,ke)|0,h=h+Math.imul(D,Ne)|0,d=d+Math.imul(E,Ve)|0,f=f+Math.imul(E,Te)|0,f=f+Math.imul(R,Ve)|0,h=h+Math.imul(R,Te)|0,d=d+Math.imul(o,Be)|0,f=f+Math.imul(o,De)|0,f=f+Math.imul(A,Be)|0,h=h+Math.imul(A,De)|0;var f0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(f0>>>26)|0,f0&=67108863,d=Math.imul(pe,ye),f=Math.imul(pe,we),f=f+Math.imul(ge,ye)|0,h=Math.imul(ge,we),d=d+Math.imul(he,Se)|0,f=f+Math.imul(he,Me)|0,f=f+Math.imul(be,Se)|0,h=h+Math.imul(be,Me)|0,d=d+Math.imul(ue,Ae)|0,f=f+Math.imul(ue,Ce)|0,f=f+Math.imul(le,Ae)|0,h=h+Math.imul(le,Ce)|0,d=d+Math.imul(de,_e)|0,f=f+Math.imul(de,Ee)|0,f=f+Math.imul(xe,_e)|0,h=h+Math.imul(xe,Ee)|0,d=d+Math.imul(oe,Pe)|0,f=f+Math.imul(oe,Fe)|0,f=f+Math.imul(ce,Pe)|0,h=h+Math.imul(ce,Fe)|0,d=d+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(se,Ie)|0,h=h+Math.imul(se,Re)|0,d=d+Math.imul(q,ke)|0,f=f+Math.imul(q,Ne)|0,f=f+Math.imul(X,ke)|0,h=h+Math.imul(X,Ne)|0,d=d+Math.imul(T,Ve)|0,f=f+Math.imul(T,Te)|0,f=f+Math.imul(D,Ve)|0,h=h+Math.imul(D,Te)|0,d=d+Math.imul(E,Be)|0,f=f+Math.imul(E,De)|0,f=f+Math.imul(R,Be)|0,h=h+Math.imul(R,De)|0;var s0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(s0>>>26)|0,s0&=67108863,d=Math.imul(pe,Se),f=Math.imul(pe,Me),f=f+Math.imul(ge,Se)|0,h=Math.imul(ge,Me),d=d+Math.imul(he,Ae)|0,f=f+Math.imul(he,Ce)|0,f=f+Math.imul(be,Ae)|0,h=h+Math.imul(be,Ce)|0,d=d+Math.imul(ue,_e)|0,f=f+Math.imul(ue,Ee)|0,f=f+Math.imul(le,_e)|0,h=h+Math.imul(le,Ee)|0,d=d+Math.imul(de,Pe)|0,f=f+Math.imul(de,Fe)|0,f=f+Math.imul(xe,Pe)|0,h=h+Math.imul(xe,Fe)|0,d=d+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ce,Ie)|0,h=h+Math.imul(ce,Re)|0,d=d+Math.imul(fe,ke)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(se,ke)|0,h=h+Math.imul(se,Ne)|0,d=d+Math.imul(q,Ve)|0,f=f+Math.imul(q,Te)|0,f=f+Math.imul(X,Ve)|0,h=h+Math.imul(X,Te)|0,d=d+Math.imul(T,Be)|0,f=f+Math.imul(T,De)|0,f=f+Math.imul(D,Be)|0,h=h+Math.imul(D,De)|0;var o0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(o0>>>26)|0,o0&=67108863,d=Math.imul(pe,Ae),f=Math.imul(pe,Ce),f=f+Math.imul(ge,Ae)|0,h=Math.imul(ge,Ce),d=d+Math.imul(he,_e)|0,f=f+Math.imul(he,Ee)|0,f=f+Math.imul(be,_e)|0,h=h+Math.imul(be,Ee)|0,d=d+Math.imul(ue,Pe)|0,f=f+Math.imul(ue,Fe)|0,f=f+Math.imul(le,Pe)|0,h=h+Math.imul(le,Fe)|0,d=d+Math.imul(de,Ie)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(xe,Ie)|0,h=h+Math.imul(xe,Re)|0,d=d+Math.imul(oe,ke)|0,f=f+Math.imul(oe,Ne)|0,f=f+Math.imul(ce,ke)|0,h=h+Math.imul(ce,Ne)|0,d=d+Math.imul(fe,Ve)|0,f=f+Math.imul(fe,Te)|0,f=f+Math.imul(se,Ve)|0,h=h+Math.imul(se,Te)|0,d=d+Math.imul(q,Be)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(X,Be)|0,h=h+Math.imul(X,De)|0;var c0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(c0>>>26)|0,c0&=67108863,d=Math.imul(pe,_e),f=Math.imul(pe,Ee),f=f+Math.imul(ge,_e)|0,h=Math.imul(ge,Ee),d=d+Math.imul(he,Pe)|0,f=f+Math.imul(he,Fe)|0,f=f+Math.imul(be,Pe)|0,h=h+Math.imul(be,Fe)|0,d=d+Math.imul(ue,Ie)|0,f=f+Math.imul(ue,Re)|0,f=f+Math.imul(le,Ie)|0,h=h+Math.imul(le,Re)|0,d=d+Math.imul(de,ke)|0,f=f+Math.imul(de,Ne)|0,f=f+Math.imul(xe,ke)|0,h=h+Math.imul(xe,Ne)|0,d=d+Math.imul(oe,Ve)|0,f=f+Math.imul(oe,Te)|0,f=f+Math.imul(ce,Ve)|0,h=h+Math.imul(ce,Te)|0,d=d+Math.imul(fe,Be)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(se,Be)|0,h=h+Math.imul(se,De)|0;var d0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(d0>>>26)|0,d0&=67108863,d=Math.imul(pe,Pe),f=Math.imul(pe,Fe),f=f+Math.imul(ge,Pe)|0,h=Math.imul(ge,Fe),d=d+Math.imul(he,Ie)|0,f=f+Math.imul(he,Re)|0,f=f+Math.imul(be,Ie)|0,h=h+Math.imul(be,Re)|0,d=d+Math.imul(ue,ke)|0,f=f+Math.imul(ue,Ne)|0,f=f+Math.imul(le,ke)|0,h=h+Math.imul(le,Ne)|0,d=d+Math.imul(de,Ve)|0,f=f+Math.imul(de,Te)|0,f=f+Math.imul(xe,Ve)|0,h=h+Math.imul(xe,Te)|0,d=d+Math.imul(oe,Be)|0,f=f+Math.imul(oe,De)|0,f=f+Math.imul(ce,Be)|0,h=h+Math.imul(ce,De)|0;var x0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(x0>>>26)|0,x0&=67108863,d=Math.imul(pe,Ie),f=Math.imul(pe,Re),f=f+Math.imul(ge,Ie)|0,h=Math.imul(ge,Re),d=d+Math.imul(he,ke)|0,f=f+Math.imul(he,Ne)|0,f=f+Math.imul(be,ke)|0,h=h+Math.imul(be,Ne)|0,d=d+Math.imul(ue,Ve)|0,f=f+Math.imul(ue,Te)|0,f=f+Math.imul(le,Ve)|0,h=h+Math.imul(le,Te)|0,d=d+Math.imul(de,Be)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(xe,Be)|0,h=h+Math.imul(xe,De)|0;var u0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(u0>>>26)|0,u0&=67108863,d=Math.imul(pe,ke),f=Math.imul(pe,Ne),f=f+Math.imul(ge,ke)|0,h=Math.imul(ge,Ne),d=d+Math.imul(he,Ve)|0,f=f+Math.imul(he,Te)|0,f=f+Math.imul(be,Ve)|0,h=h+Math.imul(be,Te)|0,d=d+Math.imul(ue,Be)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(le,Be)|0,h=h+Math.imul(le,De)|0;var l0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(l0>>>26)|0,l0&=67108863,d=Math.imul(pe,Ve),f=Math.imul(pe,Te),f=f+Math.imul(ge,Ve)|0,h=Math.imul(ge,Te),d=d+Math.imul(he,Be)|0,f=f+Math.imul(he,De)|0,f=f+Math.imul(be,Be)|0,h=h+Math.imul(be,De)|0;var h0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(h0>>>26)|0,h0&=67108863,d=Math.imul(pe,Be),f=Math.imul(pe,De),f=f+Math.imul(ge,Be)|0,h=Math.imul(ge,De);var b0=(_+d|0)+((f&8191)<<13)|0;return _=(h+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,S[0]=_t,S[1]=Et,S[2]=Pt,S[3]=Ft,S[4]=It,S[5]=r0,S[6]=i0,S[7]=n0,S[8]=a0,S[9]=f0,S[10]=s0,S[11]=o0,S[12]=c0,S[13]=d0,S[14]=x0,S[15]=u0,S[16]=l0,S[17]=h0,S[18]=b0,_!==0&&(S[19]=_,l.length++),l};Math.imul||(L=V);function U(m,n,c){c.negative=n.negative^m.negative,c.length=m.length+n.length;for(var l=0,b=0,v=0;v>>26)|0,b+=S>>>26,S&=67108863}c.words[v]=_,l=S,S=b}return l!==0?c.words[v]=l:c.length--,c._strip()}function K(m,n,c){return U(m,n,c)}a.prototype.mulTo=function(n,c){var l,b=this.length+n.length;return this.length===10&&n.length===10?l=L(this,n,c):b<63?l=V(this,n,c):b<1024?l=U(this,n,c):l=K(this,n,c),l},a.prototype.mul=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),this.mulTo(n,c)},a.prototype.mulf=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),K(this,n,c)},a.prototype.imul=function(n){return this.clone().mulTo(n,this)},a.prototype.imuln=function(n){var c=n<0;c&&(n=-n),i(typeof n=="number"),i(n<67108864);for(var l=0,b=0;b>=26,l+=v/67108864|0,l+=S>>>26,this.words[b]=S&67108863}return l!==0&&(this.words[b]=l,this.length++),c?this.ineg():this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var c=M(n);if(c.length===0)return new a(1);for(var l=this,b=0;b=0);var c=n%26,l=(n-c)/26,b=67108863>>>26-c<<26-c,v;if(c!==0){var S=0;for(v=0;v>>26-c}S&&(this.words[v]=S,this.length++)}if(l!==0){for(v=this.length-1;v>=0;v--)this.words[v+l]=this.words[v];for(v=0;v=0);var b;c?b=(c-c%26)/26:b=0;var v=n%26,S=Math.min((n-v)/26,this.length),_=67108863^67108863>>>v<S)for(this.length-=S,f=0;f=0&&(h!==0||f>=b);f--){var C=this.words[f]|0;this.words[f]=h<<26-v|C>>>v,h=C&_}return d&&h!==0&&(d.words[d.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(n,c,l){return i(this.negative===0),this.iushrn(n,c,l)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){i(typeof n=="number"&&n>=0);var c=n%26,l=(n-c)/26,b=1<=0);var c=n%26,l=(n-c)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(c!==0&&l++,this.length=Math.min(l,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},a.prototype.isubn=function(n){if(i(typeof n=="number"),i(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(d/67108864|0),this.words[v+l]=S&67108863}for(;v>26,this.words[v+l]=S&67108863;if(_===0)return this._strip();for(i(_===-1),_=0,v=0;v>26,this.words[v]=S&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(n,c){var l=this.length-n.length,b=this.clone(),v=n,S=v.words[v.length-1]|0,_=this._countBits(S);l=26-_,l!==0&&(v=v.ushln(l),b.iushln(l),S=v.words[v.length-1]|0);var d=b.length-v.length,f;if(c!=="mod"){f=new a(null),f.length=d+1,f.words=new Array(f.length);for(var h=0;h=0;o--){var A=(b.words[v.length+o]|0)*67108864+(b.words[v.length+o-1]|0);for(A=Math.min(A/S|0,67108863),b._ishlnsubmul(v,A,o);b.negative!==0;)A--,b.negative=0,b._ishlnsubmul(v,1,o),b.isZero()||(b.negative^=1);f&&(f.words[o]=A)}return f&&f._strip(),b._strip(),c!=="div"&&l!==0&&b.iushrn(l),{div:f||null,mod:b}},a.prototype.divmod=function(n,c,l){if(i(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,v,S;return this.negative!==0&&n.negative===0?(S=this.neg().divmod(n,c),c!=="mod"&&(b=S.div.neg()),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.iadd(n)),{div:b,mod:v}):this.negative===0&&n.negative!==0?(S=this.divmod(n.neg(),c),c!=="mod"&&(b=S.div.neg()),{div:b,mod:S.mod}):this.negative&n.negative?(S=this.neg().divmod(n.neg(),c),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.isub(n)),{div:S.div,mod:v}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:n.length===1?c==="div"?{div:this.divn(n.words[0]),mod:null}:c==="mod"?{div:null,mod:new a(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modrn(n.words[0]))}:this._wordDiv(n,c)},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var c=this.divmod(n);if(c.mod.isZero())return c.div;var l=c.div.negative!==0?c.mod.isub(n):c.mod,b=n.ushrn(1),v=n.andln(1),S=l.cmp(b);return S<0||v===1&&S===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},a.prototype.modrn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=(1<<26)%n,b=0,v=this.length-1;v>=0;v--)b=(l*b+(this.words[v]|0))%n;return c?-b:b},a.prototype.modn=function(n){return this.modrn(n)},a.prototype.idivn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=0,b=this.length-1;b>=0;b--){var v=(this.words[b]|0)+l*67108864;this.words[b]=v/n|0,l=v%n}return this._strip(),c?this.ineg():this},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var b=new a(1),v=new a(0),S=new a(0),_=new a(1),d=0;c.isEven()&&l.isEven();)c.iushrn(1),l.iushrn(1),++d;for(var f=l.clone(),h=c.clone();!c.isZero();){for(var C=0,o=1;!(c.words[0]&o)&&C<26;++C,o<<=1);if(C>0)for(c.iushrn(C);C-- >0;)(b.isOdd()||v.isOdd())&&(b.iadd(f),v.isub(h)),b.iushrn(1),v.iushrn(1);for(var A=0,I=1;!(l.words[0]&I)&&A<26;++A,I<<=1);if(A>0)for(l.iushrn(A);A-- >0;)(S.isOdd()||_.isOdd())&&(S.iadd(f),_.isub(h)),S.iushrn(1),_.iushrn(1);c.cmp(l)>=0?(c.isub(l),b.isub(S),v.isub(_)):(l.isub(c),S.isub(b),_.isub(v))}return{a:S,b:_,gcd:l.iushln(d)}},a.prototype._invmp=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var b=new a(1),v=new a(0),S=l.clone();c.cmpn(1)>0&&l.cmpn(1)>0;){for(var _=0,d=1;!(c.words[0]&d)&&_<26;++_,d<<=1);if(_>0)for(c.iushrn(_);_-- >0;)b.isOdd()&&b.iadd(S),b.iushrn(1);for(var f=0,h=1;!(l.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(l.iushrn(f);f-- >0;)v.isOdd()&&v.iadd(S),v.iushrn(1);c.cmp(l)>=0?(c.isub(l),b.isub(v)):(l.isub(c),v.isub(b))}var C;return c.cmpn(1)===0?C=b:C=v,C.cmpn(0)<0&&C.iadd(n),C},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var c=this.clone(),l=n.clone();c.negative=0,l.negative=0;for(var b=0;c.isEven()&&l.isEven();b++)c.iushrn(1),l.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;l.isEven();)l.iushrn(1);var v=c.cmp(l);if(v<0){var S=c;c=l,l=S}else if(v===0||l.cmpn(1)===0)break;c.isub(l)}while(!0);return l.iushln(b)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){i(typeof n=="number");var c=n%26,l=(n-c)/26,b=1<>>26,_&=67108863,this.words[S]=_}return v!==0&&(this.words[S]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(n){var c=n<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var l;if(this.length>1)l=1;else{c&&(n=-n),i(n<=67108863,"Number is too big");var b=this.words[0]|0;l=b===n?0:bn.length)return 1;if(this.length=0;l--){var b=this.words[l]|0,v=n.words[l]|0;if(b!==v){bv&&(c=1);break}}return c},a.prototype.gtn=function(n){return this.cmpn(n)===1},a.prototype.gt=function(n){return this.cmp(n)===1},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return this.cmpn(n)===-1},a.prototype.lt=function(n){return this.cmp(n)===-1},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return this.cmpn(n)===0},a.prototype.eq=function(n){return this.cmp(n)===0},a.red=function(n){return new H(n)},a.prototype.toRed=function(n){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return i(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return i(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var B={k256:null,p224:null,p192:null,p25519:null};function G(m,n){this.name=m,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},G.prototype.ireduce=function(n){var c=n,l;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),l=c.bitLength();while(l>this.n);var b=l0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},G.prototype.split=function(n,c){n.iushrn(this.n,0,c)},G.prototype.imulK=function(n){return n.imul(this.k)};function j(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(j,G),j.prototype.split=function(n,c){for(var l=4194303,b=Math.min(n.length,9),v=0;v>>22,S=_}S>>>=22,n.words[v-10]=S,S===0&&n.length>10?n.length-=10:n.length-=9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var c=0,l=0;l>>=26,n.words[l]=v,c=b}return c!==0&&(n.words[n.length++]=c),n},a._prime=function(n){if(B[n])return B[n];var c;if(n==="k256")c=new j;else if(n==="p224")c=new W;else if(n==="p192")c=new te;else if(n==="p25519")c=new re;else throw new Error("Unknown prime "+n);return B[n]=c,c};function H(m){if(typeof m=="string"){var n=a._prime(m);this.m=n.p,this.prime=n}else i(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}H.prototype._verify1=function(n){i(n.negative===0,"red works only with positives"),i(n.red,"red works only with red numbers")},H.prototype._verify2=function(n,c){i((n.negative|c.negative)===0,"red works only with positives"),i(n.red&&n.red===c.red,"red works only with red numbers")},H.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(y(n,n.umod(this.m)._forceRed(this)),n)},H.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},H.prototype.add=function(n,c){this._verify2(n,c);var l=n.add(c);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},H.prototype.iadd=function(n,c){this._verify2(n,c);var l=n.iadd(c);return l.cmp(this.m)>=0&&l.isub(this.m),l},H.prototype.sub=function(n,c){this._verify2(n,c);var l=n.sub(c);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},H.prototype.isub=function(n,c){this._verify2(n,c);var l=n.isub(c);return l.cmpn(0)<0&&l.iadd(this.m),l},H.prototype.shl=function(n,c){return this._verify1(n),this.imod(n.ushln(c))},H.prototype.imul=function(n,c){return this._verify2(n,c),this.imod(n.imul(c))},H.prototype.mul=function(n,c){return this._verify2(n,c),this.imod(n.mul(c))},H.prototype.isqr=function(n){return this.imul(n,n.clone())},H.prototype.sqr=function(n){return this.mul(n,n)},H.prototype.sqrt=function(n){if(n.isZero())return n.clone();var c=this.m.andln(3);if(i(c%2===1),c===3){var l=this.m.add(new a(1)).iushrn(2);return this.pow(n,l)}for(var b=this.m.subn(1),v=0;!b.isZero()&&b.andln(1)===0;)v++,b.iushrn(1);i(!b.isZero());var S=new a(1).toRed(this),_=S.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,d).cmp(_)!==0;)f.redIAdd(_);for(var h=this.pow(f,b),C=this.pow(n,b.addn(1).iushrn(1)),o=this.pow(n,b),A=v;o.cmp(S)!==0;){for(var I=o,E=0;I.cmp(S)!==0;E++)I=I.redSqr();i(E=0;v--){for(var h=c.words[v],C=f-1;C>=0;C--){var o=h>>C&1;if(S!==b[0]&&(S=this.sqr(S)),o===0&&_===0){d=0;continue}_<<=1,_|=o,d++,!(d!==l&&(v!==0||C!==0))&&(S=this.mul(S,b[_]),d=0,_=0)}f=26}return S},H.prototype.convertTo=function(n){var c=n.umod(this.m);return c===n?c.clone():c},H.prototype.convertFrom=function(n){var c=n.clone();return c.red=null,c},a.mont=function(n){return new ne(n)};function ne(m){H.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(ne,H),ne.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},ne.prototype.convertFrom=function(n){var c=this.imod(n.mul(this.rinv));return c.red=null,c},ne.prototype.imul=function(n,c){if(n.isZero()||c.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(c),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.mul=function(n,c){if(n.isZero()||c.isZero())return new a(0)._forceRed(this);var l=n.mul(c),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.invm=function(n){var c=this.imod(n._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(r,Di)})(z0);var qn=z0.exports;const Z=Rr(qn),Un="logger/5.7.0";let ri=!1,ii=!1;const Lr={debug:1,default:2,info:2,warning:3,error:4,off:5};let ni=Lr.default,g0=null;function zn(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(r){return r.message}return null}const ai=zn();var k0;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(k0||(k0={}));var ot;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(ot||(ot={}));const fi="0123456789abcdef";class ${constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const i=e.toLowerCase();Lr[i]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(ni>Lr[i])&&console.log.apply(console,t)}debug(...e){this._log($.levels.DEBUG,e)}info(...e){this._log($.levels.INFO,e)}warn(...e){this._log($.levels.WARNING,e)}makeError(e,t,i){if(ii)return this.makeError("censored error",t,{});t||(t=$.errors.UNKNOWN_ERROR),i||(i={});const s=[];Object.keys(i).forEach(p=>{const g=i[p];try{if(g instanceof Uint8Array){let y="";for(let w=0;w>4],y+=fi[g[w]&15];s.push(p+"=Uint8Array(0x"+y+")")}else s.push(p+"="+JSON.stringify(g))}catch{s.push(p+"="+JSON.stringify(i[p].toString()))}}),s.push(`code=${t}`),s.push(`version=${this.version}`);const a=e;let x="";switch(t){case ot.NUMERIC_FAULT:{x="NUMERIC_FAULT";const p=e;switch(p){case"overflow":case"underflow":case"division-by-zero":x+="-"+p;break;case"negative-power":case"negative-width":x+="-unsupported";break;case"unbound-bitwise-result":x+="-unbound-result";break}break}case ot.CALL_EXCEPTION:case ot.INSUFFICIENT_FUNDS:case ot.MISSING_NEW:case ot.NONCE_EXPIRED:case ot.REPLACEMENT_UNDERPRICED:case ot.TRANSACTION_REPLACED:case ot.UNPREDICTABLE_GAS_LIMIT:x=t;break}x&&(e+=" [ See: https://links.ethers.org/v5-errors-"+x+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const u=new Error(e);return u.reason=a,u.code=t,Object.keys(i).forEach(function(p){u[p]=i[p]}),u}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,$.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,s){e||this.throwError(t,i,s)}assertArgument(e,t,i,s){e||this.throwArgumentError(t,i,s)}checkNormalize(e){ai&&this.throwError("platform missing String.prototype.normalize",$.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ai})}checkSafeUint53(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i?i=": "+i:i="",et&&this.throwError("too many arguments"+i,$.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",$.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return g0||(g0=new $(Un)),g0}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ri){if(!e)return;this.globalLogger().throwError("error censorship permanent",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ii=!!e,ri=!!t}static setLogLevel(e){const t=Lr[e.toLowerCase()];if(t==null){$.globalLogger().warn("invalid log level - "+e);return}ni=t}static from(e){return new $(e)}}$.errors=ot;$.levels=k0;const Gn="bytes/5.7.0",qe=new $(Gn);function Oi(r){return!!r.toHexString}function sr(r){return r.slice||(r.slice=function(){const e=Array.prototype.slice.call(arguments);return sr(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function G0(r){return He(r)&&!(r.length%2)||Yr(r)}function si(r){return typeof r=="number"&&r==r&&r%1===0}function Yr(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!si(r.length)||r.length<0)return!1;for(let e=0;e=256)return!1}return!0}function z(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid arrayify value");const t=[];for(;r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),sr(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r)&&(r=r.toHexString()),He(r)){let t=r.substring(2);t.length%2&&(e.hexPad==="left"?t="0"+t:e.hexPad==="right"?t+="0":qe.throwArgumentError("hex data is odd-length","value",r));const i=[];for(let s=0;sz(s)),t=e.reduce((s,a)=>s+a.length,0),i=new Uint8Array(t);return e.reduce((s,a)=>(i.set(a,s),s+a.length),0),sr(i)}function kt(r){let e=z(r);if(e.length===0)return e;let t=0;for(;te&&qe.throwArgumentError("value out of range","value",arguments[0]);const t=new Uint8Array(e);return t.set(r,e-r.length),sr(t)}function He(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}const m0="0123456789abcdef";function J(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid hexlify value");let t="";for(;r;)t=m0[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r))return r.toHexString();if(He(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":qe.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Yr(r)){let t="0x";for(let i=0;i>4]+m0[s&15]}return t}return qe.throwArgumentError("invalid hexlify value","value",r)}function Li(r){if(typeof r!="string")r=J(r);else if(!He(r)||r.length%2)return null;return(r.length-2)/2}function _r(r,e,t){return typeof r!="string"?r=J(r):(!He(r)||r.length%2)&&qe.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}function or(r){let e="0x";return r.forEach(t=>{e+=J(t).substring(2)}),e}function tt(r,e){for(typeof r!="string"?r=J(r):He(r)||qe.throwArgumentError("invalid hex string","value",r),r.length>2*e+2&&qe.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}function kr(r){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(G0(r)){let t=z(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64))):t.length===65?(e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64)),e.v=t[64]):qe.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:qe.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=J(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){const s=Kn(z(e._vs),32);e._vs=J(s);const a=s[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&qe.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),s[0]&=127;const x=J(s);e.s==null?e.s=x:e.s!==x&&qe.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?qe.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&qe.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!He(e.r)?qe.throwArgumentError("signature missing or invalid r","signature",r):e.r=tt(e.r,32),e.s==null||!He(e.s)?qe.throwArgumentError("signature missing or invalid s","signature",r):e.s=tt(e.s,32);const t=z(e.s);t[0]>=128&&qe.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(t[0]|=128);const i=J(t);e._vs&&(He(e._vs)||qe.throwArgumentError("signature invalid _vs","signature",r),e._vs=tt(e._vs,32)),e._vs==null?e._vs=i:e._vs!==i&&qe.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function oi(r){return r=kr(r),J(Nt([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}const $n="bignumber/5.7.0";var Gr=Z.BN;const wt=new $($n),v0={},ci=9007199254740991;let di=!1;class ae{constructor(e,t){e!==v0&&wt.throwError("cannot call constructor directly; use BigNumber.from",$.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return We(Q(this).fromTwos(e))}toTwos(e){return We(Q(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return We(Q(this).add(Q(e)))}sub(e){return We(Q(this).sub(Q(e)))}div(e){return ae.from(e).isZero()&&Qe("division-by-zero","div"),We(Q(this).div(Q(e)))}mul(e){return We(Q(this).mul(Q(e)))}mod(e){const t=Q(e);return t.isNeg()&&Qe("division-by-zero","mod"),We(Q(this).umod(t))}pow(e){const t=Q(e);return t.isNeg()&&Qe("negative-power","pow"),We(Q(this).pow(t))}and(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","and"),We(Q(this).and(t))}or(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","or"),We(Q(this).or(t))}xor(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","xor"),We(Q(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Qe("negative-width","mask"),We(Q(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Qe("negative-width","shl"),We(Q(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Qe("negative-width","shr"),We(Q(this).shrn(e))}eq(e){return Q(this).eq(Q(e))}lt(e){return Q(this).lt(Q(e))}lte(e){return Q(this).lte(Q(e))}gt(e){return Q(this).gt(Q(e))}gte(e){return Q(this).gte(Q(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Q(this).isZero()}toNumber(){try{return Q(this).toNumber()}catch{Qe("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return wt.throwError("this platform does not support BigInt",$.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?di||(di=!0,wt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?wt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",$.errors.UNEXPECTED_ARGUMENT,{}):wt.throwError("BigNumber.toString does not accept parameters",$.errors.UNEXPECTED_ARGUMENT,{})),Q(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(v0,Er(e)):e.match(/^-?[0-9]+$/)?new ae(v0,Er(new Gr(e))):wt.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Qe("underflow","BigNumber.from",e),(e>=ci||e<=-ci)&&Qe("overflow","BigNumber.from",e),ae.from(String(e));const t=e;if(typeof t=="bigint")return ae.from(t.toString());if(Yr(t))return ae.from(J(t));if(t)if(t.toHexString){const i=t.toHexString();if(typeof i=="string")return ae.from(i)}else{let i=t._hex;if(i==null&&t.type==="BigNumber"&&(i=t.hex),typeof i=="string"&&(He(i)||i[0]==="-"&&He(i.substring(1))))return ae.from(i)}return wt.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Er(r){if(typeof r!="string")return Er(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&wt.throwArgumentError("invalid hex","value",r),r=Er(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function We(r){return ae.from(Er(r))}function Q(r){const e=ae.from(r).toHexString();return e[0]==="-"?new Gr("-"+e.substring(3),16):new Gr(e.substring(2),16)}function Qe(r,e,t){const i={fault:r,operation:e};return t!=null&&(i.value=t),wt.throwError(r,$.errors.NUMERIC_FAULT,i)}function Hn(r){return new Gr(r,36).toString(16)}const Wn="properties/5.7.0";var Jn=globalThis&&globalThis.__awaiter||function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((i=i.apply(r,e||[])).next())})};const Kr=new $(Wn);function Y(r,e,t){Object.defineProperty(r,e,{enumerable:!0,value:t,writable:!1})}function fr(r){return Jn(this,void 0,void 0,function*(){const e=Object.keys(r).map(i=>{const s=r[i];return Promise.resolve(s).then(a=>({key:i,value:a}))});return(yield Promise.all(e)).reduce((i,s)=>(i[s.key]=s.value,i),{})})}function jn(r,e){(!r||typeof r!="object")&&Kr.throwArgumentError("invalid object","object",r),Object.keys(r).forEach(t=>{e[t]||Kr.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)})}function N0(r){const e={};for(const t in r)e[t]=r[t];return e}const Xn={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function qi(r){if(r==null||Xn[typeof r])return!0;if(Array.isArray(r)||typeof r=="object"){if(!Object.isFrozen(r))return!1;const e=Object.keys(r);for(let t=0;t$r(e)));if(typeof r=="object"){const e={};for(const t in r){const i=r[t];i!==void 0&&Y(e,t,$r(i))}return e}return Kr.throwArgumentError(`Cannot deepCopy ${typeof r}`,"object",r)}function $r(r){return Zn(r)}class Ui{constructor(e){for(const t in e)this[t]=$r(e[t])}}var zi={exports:{}};/** +import{j as ie}from"./jsx-runtime-1caa8f64.js";import{B as R0,c as Nn}from"./Box-e4a86556.js";import{T as Vn}from"./Text-b96ac7e7.js";import{b as Tn,c as Di,g as Rr,r as p0}from"./index-1cdf6ce0.js";import{c as Bn}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */var z0={exports:{}};const Dn={},On=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),Ln=Tn(On);z0.exports;(function(r){(function(e,t){function i(m,n){if(!m)throw new Error(n||"Assertion failed")}function s(m,n){m.super_=n;var c=function(){};c.prototype=n.prototype,m.prototype=new c,m.prototype.constructor=m}function a(m,n,c){if(a.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((n==="le"||n==="be")&&(c=n,n=10),this._init(m||0,n||10,c||"be"))}typeof e=="object"?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;var x;try{typeof window<"u"&&typeof window.Buffer<"u"?x=window.Buffer:x=Ln.Buffer}catch{}a.isBN=function(n){return n instanceof a?!0:n!==null&&typeof n=="object"&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,c){return n.cmp(c)>0?n:c},a.min=function(n,c){return n.cmp(c)<0?n:c},a.prototype._init=function(n,c,l){if(typeof n=="number")return this._initNumber(n,c,l);if(typeof n=="object")return this._initArray(n,c,l);c==="hex"&&(c=16),i(c===(c|0)&&c>=2&&c<=36),n=n.toString().replace(/\s+/g,"");var b=0;n[0]==="-"&&(b++,this.negative=1),b=0;b-=3)S=n[b]|n[b-1]<<8|n[b-2]<<16,this.words[v]|=S<<_&67108863,this.words[v+1]=S>>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);else if(l==="le")for(b=0,v=0;b>>26-_&67108863,_+=24,_>=26&&(_-=26,v++);return this._strip()};function u(m,n){var c=m.charCodeAt(n);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;i(!1,"Invalid character in "+m)}function p(m,n,c){var l=u(m,c);return c-1>=n&&(l|=u(m,c-1)<<4),l}a.prototype._parseHex=function(n,c,l){this.length=Math.ceil((n.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)_=p(n,c,b)<=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8;else{var d=n.length-c;for(b=d%2===0?c+1:c;b=18?(v-=18,S+=1,this.words[S]|=_>>>26):v+=8}this._strip()};function g(m,n,c,l){for(var b=0,v=0,S=Math.min(m.length,c),_=n;_=49?v=d-49+10:d>=17?v=d-17+10:v=d,i(d>=0&&v1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch{a.prototype.inspect=w}else a.prototype.inspect=w;function w(){return(this.red?""}var F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(n,c){n=n||10,c=c|0||1;var l;if(n===16||n==="hex"){l="";for(var b=0,v=0,S=0;S>>24-b&16777215,b+=2,b>=26&&(b-=26,S--),v!==0||S!==this.length-1?l=F[6-d.length]+d+l:l=d+l}for(v!==0&&(l=v.toString(16)+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(n===(n|0)&&n>=2&&n<=36){var f=k[n],h=N[n];l="";var C=this.clone();for(C.negative=0;!C.isZero();){var o=C.modrn(h).toString(n);C=C.idivn(h),C.isZero()?l=o+l:l=F[f-o.length]+o+l}for(this.isZero()&&(l="0"+l);l.length%c!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-n:n},a.prototype.toJSON=function(){return this.toString(16,2)},x&&(a.prototype.toBuffer=function(n,c){return this.toArrayLike(x,n,c)}),a.prototype.toArray=function(n,c){return this.toArrayLike(Array,n,c)};var P=function(n,c){return n.allocUnsafe?n.allocUnsafe(c):new n(c)};a.prototype.toArrayLike=function(n,c,l){this._strip();var b=this.byteLength(),v=l||Math.max(1,b);i(b<=v,"byte array longer than desired length"),i(v>0,"Requested array length <= 0");var S=P(n,v),_=c==="le"?"LE":"BE";return this["_toArrayLike"+_](S,b),S},a.prototype._toArrayLikeLE=function(n,c){for(var l=0,b=0,v=0,S=0;v>8&255),l>16&255),S===6?(l>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l=0&&(n[l--]=_>>8&255),l>=0&&(n[l--]=_>>16&255),S===6?(l>=0&&(n[l--]=_>>24&255),b=0,S=0):(b=_>>>24,S+=2)}if(l>=0)for(n[l--]=b;l>=0;)n[l--]=0},Math.clz32?a.prototype._countBits=function(n){return 32-Math.clz32(n)}:a.prototype._countBits=function(n){var c=n,l=0;return c>=4096&&(l+=13,c>>>=13),c>=64&&(l+=7,c>>>=7),c>=8&&(l+=4,c>>>=4),c>=2&&(l+=2,c>>>=2),l+c},a.prototype._zeroBits=function(n){if(n===0)return 26;var c=n,l=0;return c&8191||(l+=13,c>>>=13),c&127||(l+=7,c>>>=7),c&15||(l+=4,c>>>=4),c&3||(l+=2,c>>>=2),c&1||l++,l},a.prototype.bitLength=function(){var n=this.words[this.length-1],c=this._countBits(n);return(this.length-1)*26+c};function M(m){for(var n=new Array(m.bitLength()),c=0;c>>b&1}return n}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,c=0;cn.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var c;this.length>n.length?c=n:c=this;for(var l=0;ln.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var c,l;this.length>n.length?(c=this,l=n):(c=n,l=this);for(var b=0;bn.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){i(typeof n=="number"&&n>=0);var c=Math.ceil(n/26)|0,l=n%26;this._expand(c),l>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-l),this._strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,c){i(typeof n=="number"&&n>=0);var l=n/26|0,b=n%26;return this._expand(l+1),c?this.words[l]=this.words[l]|1<n.length?(l=this,b=n):(l=n,b=this);for(var v=0,S=0;S>>26;for(;v!==0&&S>>26;if(this.length=l.length,v!==0)this.words[this.length]=v,this.length++;else if(l!==this)for(;Sn.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(n.negative!==0){n.negative=0;var c=this.iadd(n);return n.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var l=this.cmp(n);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,v;l>0?(b=this,v=n):(b=n,v=this);for(var S=0,_=0;_>26,this.words[_]=c&67108863;for(;S!==0&&_>26,this.words[_]=c&67108863;if(S===0&&_>>26,C=d&67108863,o=Math.min(f,n.length-1),A=Math.max(0,f-m.length+1);A<=o;A++){var I=f-A|0;b=m.words[I]|0,v=n.words[A]|0,S=b*v+C,h+=S/67108864|0,C=S&67108863}c.words[f]=C|0,d=h|0}return d!==0?c.words[f]=d|0:c.length--,c._strip()}var L=function(n,c,l){var b=n.words,v=c.words,S=l.words,_=0,d,f,h,C=b[0]|0,o=C&8191,A=C>>>13,I=b[1]|0,E=I&8191,R=I>>>13,O=b[2]|0,T=O&8191,D=O>>>13,Oe=b[3]|0,q=Oe&8191,X=Oe>>>13,Bt=b[4]|0,fe=Bt&8191,se=Bt>>>13,Dt=b[5]|0,oe=Dt&8191,ce=Dt>>>13,Ot=b[6]|0,de=Ot&8191,xe=Ot>>>13,Lt=b[7]|0,ue=Lt&8191,le=Lt>>>13,qt=b[8]|0,he=qt&8191,be=qt>>>13,Ut=b[9]|0,pe=Ut&8191,ge=Ut>>>13,zt=v[0]|0,me=zt&8191,ve=zt>>>13,Gt=v[1]|0,ye=Gt&8191,we=Gt>>>13,Kt=v[2]|0,Se=Kt&8191,Me=Kt>>>13,$t=v[3]|0,Ae=$t&8191,Ce=$t>>>13,Ht=v[4]|0,_e=Ht&8191,Ee=Ht>>>13,Wt=v[5]|0,Pe=Wt&8191,Fe=Wt>>>13,Jt=v[6]|0,Ie=Jt&8191,Re=Jt>>>13,jt=v[7]|0,ke=jt&8191,Ne=jt>>>13,Xt=v[8]|0,Ve=Xt&8191,Te=Xt>>>13,Zt=v[9]|0,Be=Zt&8191,De=Zt>>>13;l.negative=n.negative^c.negative,l.length=19,d=Math.imul(o,me),f=Math.imul(o,ve),f=f+Math.imul(A,me)|0,h=Math.imul(A,ve);var _t=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(_t>>>26)|0,_t&=67108863,d=Math.imul(E,me),f=Math.imul(E,ve),f=f+Math.imul(R,me)|0,h=Math.imul(R,ve),d=d+Math.imul(o,ye)|0,f=f+Math.imul(o,we)|0,f=f+Math.imul(A,ye)|0,h=h+Math.imul(A,we)|0;var Et=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Et>>>26)|0,Et&=67108863,d=Math.imul(T,me),f=Math.imul(T,ve),f=f+Math.imul(D,me)|0,h=Math.imul(D,ve),d=d+Math.imul(E,ye)|0,f=f+Math.imul(E,we)|0,f=f+Math.imul(R,ye)|0,h=h+Math.imul(R,we)|0,d=d+Math.imul(o,Se)|0,f=f+Math.imul(o,Me)|0,f=f+Math.imul(A,Se)|0,h=h+Math.imul(A,Me)|0;var Pt=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,d=Math.imul(q,me),f=Math.imul(q,ve),f=f+Math.imul(X,me)|0,h=Math.imul(X,ve),d=d+Math.imul(T,ye)|0,f=f+Math.imul(T,we)|0,f=f+Math.imul(D,ye)|0,h=h+Math.imul(D,we)|0,d=d+Math.imul(E,Se)|0,f=f+Math.imul(E,Me)|0,f=f+Math.imul(R,Se)|0,h=h+Math.imul(R,Me)|0,d=d+Math.imul(o,Ae)|0,f=f+Math.imul(o,Ce)|0,f=f+Math.imul(A,Ae)|0,h=h+Math.imul(A,Ce)|0;var Ft=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,d=Math.imul(fe,me),f=Math.imul(fe,ve),f=f+Math.imul(se,me)|0,h=Math.imul(se,ve),d=d+Math.imul(q,ye)|0,f=f+Math.imul(q,we)|0,f=f+Math.imul(X,ye)|0,h=h+Math.imul(X,we)|0,d=d+Math.imul(T,Se)|0,f=f+Math.imul(T,Me)|0,f=f+Math.imul(D,Se)|0,h=h+Math.imul(D,Me)|0,d=d+Math.imul(E,Ae)|0,f=f+Math.imul(E,Ce)|0,f=f+Math.imul(R,Ae)|0,h=h+Math.imul(R,Ce)|0,d=d+Math.imul(o,_e)|0,f=f+Math.imul(o,Ee)|0,f=f+Math.imul(A,_e)|0,h=h+Math.imul(A,Ee)|0;var It=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(oe,me),f=Math.imul(oe,ve),f=f+Math.imul(ce,me)|0,h=Math.imul(ce,ve),d=d+Math.imul(fe,ye)|0,f=f+Math.imul(fe,we)|0,f=f+Math.imul(se,ye)|0,h=h+Math.imul(se,we)|0,d=d+Math.imul(q,Se)|0,f=f+Math.imul(q,Me)|0,f=f+Math.imul(X,Se)|0,h=h+Math.imul(X,Me)|0,d=d+Math.imul(T,Ae)|0,f=f+Math.imul(T,Ce)|0,f=f+Math.imul(D,Ae)|0,h=h+Math.imul(D,Ce)|0,d=d+Math.imul(E,_e)|0,f=f+Math.imul(E,Ee)|0,f=f+Math.imul(R,_e)|0,h=h+Math.imul(R,Ee)|0,d=d+Math.imul(o,Pe)|0,f=f+Math.imul(o,Fe)|0,f=f+Math.imul(A,Pe)|0,h=h+Math.imul(A,Fe)|0;var r0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(r0>>>26)|0,r0&=67108863,d=Math.imul(de,me),f=Math.imul(de,ve),f=f+Math.imul(xe,me)|0,h=Math.imul(xe,ve),d=d+Math.imul(oe,ye)|0,f=f+Math.imul(oe,we)|0,f=f+Math.imul(ce,ye)|0,h=h+Math.imul(ce,we)|0,d=d+Math.imul(fe,Se)|0,f=f+Math.imul(fe,Me)|0,f=f+Math.imul(se,Se)|0,h=h+Math.imul(se,Me)|0,d=d+Math.imul(q,Ae)|0,f=f+Math.imul(q,Ce)|0,f=f+Math.imul(X,Ae)|0,h=h+Math.imul(X,Ce)|0,d=d+Math.imul(T,_e)|0,f=f+Math.imul(T,Ee)|0,f=f+Math.imul(D,_e)|0,h=h+Math.imul(D,Ee)|0,d=d+Math.imul(E,Pe)|0,f=f+Math.imul(E,Fe)|0,f=f+Math.imul(R,Pe)|0,h=h+Math.imul(R,Fe)|0,d=d+Math.imul(o,Ie)|0,f=f+Math.imul(o,Re)|0,f=f+Math.imul(A,Ie)|0,h=h+Math.imul(A,Re)|0;var i0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(i0>>>26)|0,i0&=67108863,d=Math.imul(ue,me),f=Math.imul(ue,ve),f=f+Math.imul(le,me)|0,h=Math.imul(le,ve),d=d+Math.imul(de,ye)|0,f=f+Math.imul(de,we)|0,f=f+Math.imul(xe,ye)|0,h=h+Math.imul(xe,we)|0,d=d+Math.imul(oe,Se)|0,f=f+Math.imul(oe,Me)|0,f=f+Math.imul(ce,Se)|0,h=h+Math.imul(ce,Me)|0,d=d+Math.imul(fe,Ae)|0,f=f+Math.imul(fe,Ce)|0,f=f+Math.imul(se,Ae)|0,h=h+Math.imul(se,Ce)|0,d=d+Math.imul(q,_e)|0,f=f+Math.imul(q,Ee)|0,f=f+Math.imul(X,_e)|0,h=h+Math.imul(X,Ee)|0,d=d+Math.imul(T,Pe)|0,f=f+Math.imul(T,Fe)|0,f=f+Math.imul(D,Pe)|0,h=h+Math.imul(D,Fe)|0,d=d+Math.imul(E,Ie)|0,f=f+Math.imul(E,Re)|0,f=f+Math.imul(R,Ie)|0,h=h+Math.imul(R,Re)|0,d=d+Math.imul(o,ke)|0,f=f+Math.imul(o,Ne)|0,f=f+Math.imul(A,ke)|0,h=h+Math.imul(A,Ne)|0;var n0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(n0>>>26)|0,n0&=67108863,d=Math.imul(he,me),f=Math.imul(he,ve),f=f+Math.imul(be,me)|0,h=Math.imul(be,ve),d=d+Math.imul(ue,ye)|0,f=f+Math.imul(ue,we)|0,f=f+Math.imul(le,ye)|0,h=h+Math.imul(le,we)|0,d=d+Math.imul(de,Se)|0,f=f+Math.imul(de,Me)|0,f=f+Math.imul(xe,Se)|0,h=h+Math.imul(xe,Me)|0,d=d+Math.imul(oe,Ae)|0,f=f+Math.imul(oe,Ce)|0,f=f+Math.imul(ce,Ae)|0,h=h+Math.imul(ce,Ce)|0,d=d+Math.imul(fe,_e)|0,f=f+Math.imul(fe,Ee)|0,f=f+Math.imul(se,_e)|0,h=h+Math.imul(se,Ee)|0,d=d+Math.imul(q,Pe)|0,f=f+Math.imul(q,Fe)|0,f=f+Math.imul(X,Pe)|0,h=h+Math.imul(X,Fe)|0,d=d+Math.imul(T,Ie)|0,f=f+Math.imul(T,Re)|0,f=f+Math.imul(D,Ie)|0,h=h+Math.imul(D,Re)|0,d=d+Math.imul(E,ke)|0,f=f+Math.imul(E,Ne)|0,f=f+Math.imul(R,ke)|0,h=h+Math.imul(R,Ne)|0,d=d+Math.imul(o,Ve)|0,f=f+Math.imul(o,Te)|0,f=f+Math.imul(A,Ve)|0,h=h+Math.imul(A,Te)|0;var a0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(a0>>>26)|0,a0&=67108863,d=Math.imul(pe,me),f=Math.imul(pe,ve),f=f+Math.imul(ge,me)|0,h=Math.imul(ge,ve),d=d+Math.imul(he,ye)|0,f=f+Math.imul(he,we)|0,f=f+Math.imul(be,ye)|0,h=h+Math.imul(be,we)|0,d=d+Math.imul(ue,Se)|0,f=f+Math.imul(ue,Me)|0,f=f+Math.imul(le,Se)|0,h=h+Math.imul(le,Me)|0,d=d+Math.imul(de,Ae)|0,f=f+Math.imul(de,Ce)|0,f=f+Math.imul(xe,Ae)|0,h=h+Math.imul(xe,Ce)|0,d=d+Math.imul(oe,_e)|0,f=f+Math.imul(oe,Ee)|0,f=f+Math.imul(ce,_e)|0,h=h+Math.imul(ce,Ee)|0,d=d+Math.imul(fe,Pe)|0,f=f+Math.imul(fe,Fe)|0,f=f+Math.imul(se,Pe)|0,h=h+Math.imul(se,Fe)|0,d=d+Math.imul(q,Ie)|0,f=f+Math.imul(q,Re)|0,f=f+Math.imul(X,Ie)|0,h=h+Math.imul(X,Re)|0,d=d+Math.imul(T,ke)|0,f=f+Math.imul(T,Ne)|0,f=f+Math.imul(D,ke)|0,h=h+Math.imul(D,Ne)|0,d=d+Math.imul(E,Ve)|0,f=f+Math.imul(E,Te)|0,f=f+Math.imul(R,Ve)|0,h=h+Math.imul(R,Te)|0,d=d+Math.imul(o,Be)|0,f=f+Math.imul(o,De)|0,f=f+Math.imul(A,Be)|0,h=h+Math.imul(A,De)|0;var f0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(f0>>>26)|0,f0&=67108863,d=Math.imul(pe,ye),f=Math.imul(pe,we),f=f+Math.imul(ge,ye)|0,h=Math.imul(ge,we),d=d+Math.imul(he,Se)|0,f=f+Math.imul(he,Me)|0,f=f+Math.imul(be,Se)|0,h=h+Math.imul(be,Me)|0,d=d+Math.imul(ue,Ae)|0,f=f+Math.imul(ue,Ce)|0,f=f+Math.imul(le,Ae)|0,h=h+Math.imul(le,Ce)|0,d=d+Math.imul(de,_e)|0,f=f+Math.imul(de,Ee)|0,f=f+Math.imul(xe,_e)|0,h=h+Math.imul(xe,Ee)|0,d=d+Math.imul(oe,Pe)|0,f=f+Math.imul(oe,Fe)|0,f=f+Math.imul(ce,Pe)|0,h=h+Math.imul(ce,Fe)|0,d=d+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(se,Ie)|0,h=h+Math.imul(se,Re)|0,d=d+Math.imul(q,ke)|0,f=f+Math.imul(q,Ne)|0,f=f+Math.imul(X,ke)|0,h=h+Math.imul(X,Ne)|0,d=d+Math.imul(T,Ve)|0,f=f+Math.imul(T,Te)|0,f=f+Math.imul(D,Ve)|0,h=h+Math.imul(D,Te)|0,d=d+Math.imul(E,Be)|0,f=f+Math.imul(E,De)|0,f=f+Math.imul(R,Be)|0,h=h+Math.imul(R,De)|0;var s0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(s0>>>26)|0,s0&=67108863,d=Math.imul(pe,Se),f=Math.imul(pe,Me),f=f+Math.imul(ge,Se)|0,h=Math.imul(ge,Me),d=d+Math.imul(he,Ae)|0,f=f+Math.imul(he,Ce)|0,f=f+Math.imul(be,Ae)|0,h=h+Math.imul(be,Ce)|0,d=d+Math.imul(ue,_e)|0,f=f+Math.imul(ue,Ee)|0,f=f+Math.imul(le,_e)|0,h=h+Math.imul(le,Ee)|0,d=d+Math.imul(de,Pe)|0,f=f+Math.imul(de,Fe)|0,f=f+Math.imul(xe,Pe)|0,h=h+Math.imul(xe,Fe)|0,d=d+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ce,Ie)|0,h=h+Math.imul(ce,Re)|0,d=d+Math.imul(fe,ke)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(se,ke)|0,h=h+Math.imul(se,Ne)|0,d=d+Math.imul(q,Ve)|0,f=f+Math.imul(q,Te)|0,f=f+Math.imul(X,Ve)|0,h=h+Math.imul(X,Te)|0,d=d+Math.imul(T,Be)|0,f=f+Math.imul(T,De)|0,f=f+Math.imul(D,Be)|0,h=h+Math.imul(D,De)|0;var o0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(o0>>>26)|0,o0&=67108863,d=Math.imul(pe,Ae),f=Math.imul(pe,Ce),f=f+Math.imul(ge,Ae)|0,h=Math.imul(ge,Ce),d=d+Math.imul(he,_e)|0,f=f+Math.imul(he,Ee)|0,f=f+Math.imul(be,_e)|0,h=h+Math.imul(be,Ee)|0,d=d+Math.imul(ue,Pe)|0,f=f+Math.imul(ue,Fe)|0,f=f+Math.imul(le,Pe)|0,h=h+Math.imul(le,Fe)|0,d=d+Math.imul(de,Ie)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(xe,Ie)|0,h=h+Math.imul(xe,Re)|0,d=d+Math.imul(oe,ke)|0,f=f+Math.imul(oe,Ne)|0,f=f+Math.imul(ce,ke)|0,h=h+Math.imul(ce,Ne)|0,d=d+Math.imul(fe,Ve)|0,f=f+Math.imul(fe,Te)|0,f=f+Math.imul(se,Ve)|0,h=h+Math.imul(se,Te)|0,d=d+Math.imul(q,Be)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(X,Be)|0,h=h+Math.imul(X,De)|0;var c0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(c0>>>26)|0,c0&=67108863,d=Math.imul(pe,_e),f=Math.imul(pe,Ee),f=f+Math.imul(ge,_e)|0,h=Math.imul(ge,Ee),d=d+Math.imul(he,Pe)|0,f=f+Math.imul(he,Fe)|0,f=f+Math.imul(be,Pe)|0,h=h+Math.imul(be,Fe)|0,d=d+Math.imul(ue,Ie)|0,f=f+Math.imul(ue,Re)|0,f=f+Math.imul(le,Ie)|0,h=h+Math.imul(le,Re)|0,d=d+Math.imul(de,ke)|0,f=f+Math.imul(de,Ne)|0,f=f+Math.imul(xe,ke)|0,h=h+Math.imul(xe,Ne)|0,d=d+Math.imul(oe,Ve)|0,f=f+Math.imul(oe,Te)|0,f=f+Math.imul(ce,Ve)|0,h=h+Math.imul(ce,Te)|0,d=d+Math.imul(fe,Be)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(se,Be)|0,h=h+Math.imul(se,De)|0;var d0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(d0>>>26)|0,d0&=67108863,d=Math.imul(pe,Pe),f=Math.imul(pe,Fe),f=f+Math.imul(ge,Pe)|0,h=Math.imul(ge,Fe),d=d+Math.imul(he,Ie)|0,f=f+Math.imul(he,Re)|0,f=f+Math.imul(be,Ie)|0,h=h+Math.imul(be,Re)|0,d=d+Math.imul(ue,ke)|0,f=f+Math.imul(ue,Ne)|0,f=f+Math.imul(le,ke)|0,h=h+Math.imul(le,Ne)|0,d=d+Math.imul(de,Ve)|0,f=f+Math.imul(de,Te)|0,f=f+Math.imul(xe,Ve)|0,h=h+Math.imul(xe,Te)|0,d=d+Math.imul(oe,Be)|0,f=f+Math.imul(oe,De)|0,f=f+Math.imul(ce,Be)|0,h=h+Math.imul(ce,De)|0;var x0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(x0>>>26)|0,x0&=67108863,d=Math.imul(pe,Ie),f=Math.imul(pe,Re),f=f+Math.imul(ge,Ie)|0,h=Math.imul(ge,Re),d=d+Math.imul(he,ke)|0,f=f+Math.imul(he,Ne)|0,f=f+Math.imul(be,ke)|0,h=h+Math.imul(be,Ne)|0,d=d+Math.imul(ue,Ve)|0,f=f+Math.imul(ue,Te)|0,f=f+Math.imul(le,Ve)|0,h=h+Math.imul(le,Te)|0,d=d+Math.imul(de,Be)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(xe,Be)|0,h=h+Math.imul(xe,De)|0;var u0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(u0>>>26)|0,u0&=67108863,d=Math.imul(pe,ke),f=Math.imul(pe,Ne),f=f+Math.imul(ge,ke)|0,h=Math.imul(ge,Ne),d=d+Math.imul(he,Ve)|0,f=f+Math.imul(he,Te)|0,f=f+Math.imul(be,Ve)|0,h=h+Math.imul(be,Te)|0,d=d+Math.imul(ue,Be)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(le,Be)|0,h=h+Math.imul(le,De)|0;var l0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(l0>>>26)|0,l0&=67108863,d=Math.imul(pe,Ve),f=Math.imul(pe,Te),f=f+Math.imul(ge,Ve)|0,h=Math.imul(ge,Te),d=d+Math.imul(he,Be)|0,f=f+Math.imul(he,De)|0,f=f+Math.imul(be,Be)|0,h=h+Math.imul(be,De)|0;var h0=(_+d|0)+((f&8191)<<13)|0;_=(h+(f>>>13)|0)+(h0>>>26)|0,h0&=67108863,d=Math.imul(pe,Be),f=Math.imul(pe,De),f=f+Math.imul(ge,Be)|0,h=Math.imul(ge,De);var b0=(_+d|0)+((f&8191)<<13)|0;return _=(h+(f>>>13)|0)+(b0>>>26)|0,b0&=67108863,S[0]=_t,S[1]=Et,S[2]=Pt,S[3]=Ft,S[4]=It,S[5]=r0,S[6]=i0,S[7]=n0,S[8]=a0,S[9]=f0,S[10]=s0,S[11]=o0,S[12]=c0,S[13]=d0,S[14]=x0,S[15]=u0,S[16]=l0,S[17]=h0,S[18]=b0,_!==0&&(S[19]=_,l.length++),l};Math.imul||(L=V);function U(m,n,c){c.negative=n.negative^m.negative,c.length=m.length+n.length;for(var l=0,b=0,v=0;v>>26)|0,b+=S>>>26,S&=67108863}c.words[v]=_,l=S,S=b}return l!==0?c.words[v]=l:c.length--,c._strip()}function K(m,n,c){return U(m,n,c)}a.prototype.mulTo=function(n,c){var l,b=this.length+n.length;return this.length===10&&n.length===10?l=L(this,n,c):b<63?l=V(this,n,c):b<1024?l=U(this,n,c):l=K(this,n,c),l},a.prototype.mul=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),this.mulTo(n,c)},a.prototype.mulf=function(n){var c=new a(null);return c.words=new Array(this.length+n.length),K(this,n,c)},a.prototype.imul=function(n){return this.clone().mulTo(n,this)},a.prototype.imuln=function(n){var c=n<0;c&&(n=-n),i(typeof n=="number"),i(n<67108864);for(var l=0,b=0;b>=26,l+=v/67108864|0,l+=S>>>26,this.words[b]=S&67108863}return l!==0&&(this.words[b]=l,this.length++),c?this.ineg():this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var c=M(n);if(c.length===0)return new a(1);for(var l=this,b=0;b=0);var c=n%26,l=(n-c)/26,b=67108863>>>26-c<<26-c,v;if(c!==0){var S=0;for(v=0;v>>26-c}S&&(this.words[v]=S,this.length++)}if(l!==0){for(v=this.length-1;v>=0;v--)this.words[v+l]=this.words[v];for(v=0;v=0);var b;c?b=(c-c%26)/26:b=0;var v=n%26,S=Math.min((n-v)/26,this.length),_=67108863^67108863>>>v<S)for(this.length-=S,f=0;f=0&&(h!==0||f>=b);f--){var C=this.words[f]|0;this.words[f]=h<<26-v|C>>>v,h=C&_}return d&&h!==0&&(d.words[d.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(n,c,l){return i(this.negative===0),this.iushrn(n,c,l)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){i(typeof n=="number"&&n>=0);var c=n%26,l=(n-c)/26,b=1<=0);var c=n%26,l=(n-c)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(c!==0&&l++,this.length=Math.min(l,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},a.prototype.isubn=function(n){if(i(typeof n=="number"),i(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(d/67108864|0),this.words[v+l]=S&67108863}for(;v>26,this.words[v+l]=S&67108863;if(_===0)return this._strip();for(i(_===-1),_=0,v=0;v>26,this.words[v]=S&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(n,c){var l=this.length-n.length,b=this.clone(),v=n,S=v.words[v.length-1]|0,_=this._countBits(S);l=26-_,l!==0&&(v=v.ushln(l),b.iushln(l),S=v.words[v.length-1]|0);var d=b.length-v.length,f;if(c!=="mod"){f=new a(null),f.length=d+1,f.words=new Array(f.length);for(var h=0;h=0;o--){var A=(b.words[v.length+o]|0)*67108864+(b.words[v.length+o-1]|0);for(A=Math.min(A/S|0,67108863),b._ishlnsubmul(v,A,o);b.negative!==0;)A--,b.negative=0,b._ishlnsubmul(v,1,o),b.isZero()||(b.negative^=1);f&&(f.words[o]=A)}return f&&f._strip(),b._strip(),c!=="div"&&l!==0&&b.iushrn(l),{div:f||null,mod:b}},a.prototype.divmod=function(n,c,l){if(i(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var b,v,S;return this.negative!==0&&n.negative===0?(S=this.neg().divmod(n,c),c!=="mod"&&(b=S.div.neg()),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.iadd(n)),{div:b,mod:v}):this.negative===0&&n.negative!==0?(S=this.divmod(n.neg(),c),c!=="mod"&&(b=S.div.neg()),{div:b,mod:S.mod}):this.negative&n.negative?(S=this.neg().divmod(n.neg(),c),c!=="div"&&(v=S.mod.neg(),l&&v.negative!==0&&v.isub(n)),{div:S.div,mod:v}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:n.length===1?c==="div"?{div:this.divn(n.words[0]),mod:null}:c==="mod"?{div:null,mod:new a(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modrn(n.words[0]))}:this._wordDiv(n,c)},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var c=this.divmod(n);if(c.mod.isZero())return c.div;var l=c.div.negative!==0?c.mod.isub(n):c.mod,b=n.ushrn(1),v=n.andln(1),S=l.cmp(b);return S<0||v===1&&S===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},a.prototype.modrn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=(1<<26)%n,b=0,v=this.length-1;v>=0;v--)b=(l*b+(this.words[v]|0))%n;return c?-b:b},a.prototype.modn=function(n){return this.modrn(n)},a.prototype.idivn=function(n){var c=n<0;c&&(n=-n),i(n<=67108863);for(var l=0,b=this.length-1;b>=0;b--){var v=(this.words[b]|0)+l*67108864;this.words[b]=v/n|0,l=v%n}return this._strip(),c?this.ineg():this},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var b=new a(1),v=new a(0),S=new a(0),_=new a(1),d=0;c.isEven()&&l.isEven();)c.iushrn(1),l.iushrn(1),++d;for(var f=l.clone(),h=c.clone();!c.isZero();){for(var C=0,o=1;!(c.words[0]&o)&&C<26;++C,o<<=1);if(C>0)for(c.iushrn(C);C-- >0;)(b.isOdd()||v.isOdd())&&(b.iadd(f),v.isub(h)),b.iushrn(1),v.iushrn(1);for(var A=0,I=1;!(l.words[0]&I)&&A<26;++A,I<<=1);if(A>0)for(l.iushrn(A);A-- >0;)(S.isOdd()||_.isOdd())&&(S.iadd(f),_.isub(h)),S.iushrn(1),_.iushrn(1);c.cmp(l)>=0?(c.isub(l),b.isub(S),v.isub(_)):(l.isub(c),S.isub(b),_.isub(v))}return{a:S,b:_,gcd:l.iushln(d)}},a.prototype._invmp=function(n){i(n.negative===0),i(!n.isZero());var c=this,l=n.clone();c.negative!==0?c=c.umod(n):c=c.clone();for(var b=new a(1),v=new a(0),S=l.clone();c.cmpn(1)>0&&l.cmpn(1)>0;){for(var _=0,d=1;!(c.words[0]&d)&&_<26;++_,d<<=1);if(_>0)for(c.iushrn(_);_-- >0;)b.isOdd()&&b.iadd(S),b.iushrn(1);for(var f=0,h=1;!(l.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(l.iushrn(f);f-- >0;)v.isOdd()&&v.iadd(S),v.iushrn(1);c.cmp(l)>=0?(c.isub(l),b.isub(v)):(l.isub(c),v.isub(b))}var C;return c.cmpn(1)===0?C=b:C=v,C.cmpn(0)<0&&C.iadd(n),C},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var c=this.clone(),l=n.clone();c.negative=0,l.negative=0;for(var b=0;c.isEven()&&l.isEven();b++)c.iushrn(1),l.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;l.isEven();)l.iushrn(1);var v=c.cmp(l);if(v<0){var S=c;c=l,l=S}else if(v===0||l.cmpn(1)===0)break;c.isub(l)}while(!0);return l.iushln(b)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){i(typeof n=="number");var c=n%26,l=(n-c)/26,b=1<>>26,_&=67108863,this.words[S]=_}return v!==0&&(this.words[S]=v,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(n){var c=n<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var l;if(this.length>1)l=1;else{c&&(n=-n),i(n<=67108863,"Number is too big");var b=this.words[0]|0;l=b===n?0:bn.length)return 1;if(this.length=0;l--){var b=this.words[l]|0,v=n.words[l]|0;if(b!==v){bv&&(c=1);break}}return c},a.prototype.gtn=function(n){return this.cmpn(n)===1},a.prototype.gt=function(n){return this.cmp(n)===1},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return this.cmpn(n)===-1},a.prototype.lt=function(n){return this.cmp(n)===-1},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return this.cmpn(n)===0},a.prototype.eq=function(n){return this.cmp(n)===0},a.red=function(n){return new H(n)},a.prototype.toRed=function(n){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return i(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return i(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var B={k256:null,p224:null,p192:null,p25519:null};function G(m,n){this.name=m,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},G.prototype.ireduce=function(n){var c=n,l;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),l=c.bitLength();while(l>this.n);var b=l0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},G.prototype.split=function(n,c){n.iushrn(this.n,0,c)},G.prototype.imulK=function(n){return n.imul(this.k)};function j(){G.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(j,G),j.prototype.split=function(n,c){for(var l=4194303,b=Math.min(n.length,9),v=0;v>>22,S=_}S>>>=22,n.words[v-10]=S,S===0&&n.length>10?n.length-=10:n.length-=9},j.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var c=0,l=0;l>>=26,n.words[l]=v,c=b}return c!==0&&(n.words[n.length++]=c),n},a._prime=function(n){if(B[n])return B[n];var c;if(n==="k256")c=new j;else if(n==="p224")c=new W;else if(n==="p192")c=new te;else if(n==="p25519")c=new re;else throw new Error("Unknown prime "+n);return B[n]=c,c};function H(m){if(typeof m=="string"){var n=a._prime(m);this.m=n.p,this.prime=n}else i(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}H.prototype._verify1=function(n){i(n.negative===0,"red works only with positives"),i(n.red,"red works only with red numbers")},H.prototype._verify2=function(n,c){i((n.negative|c.negative)===0,"red works only with positives"),i(n.red&&n.red===c.red,"red works only with red numbers")},H.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(y(n,n.umod(this.m)._forceRed(this)),n)},H.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},H.prototype.add=function(n,c){this._verify2(n,c);var l=n.add(c);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},H.prototype.iadd=function(n,c){this._verify2(n,c);var l=n.iadd(c);return l.cmp(this.m)>=0&&l.isub(this.m),l},H.prototype.sub=function(n,c){this._verify2(n,c);var l=n.sub(c);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},H.prototype.isub=function(n,c){this._verify2(n,c);var l=n.isub(c);return l.cmpn(0)<0&&l.iadd(this.m),l},H.prototype.shl=function(n,c){return this._verify1(n),this.imod(n.ushln(c))},H.prototype.imul=function(n,c){return this._verify2(n,c),this.imod(n.imul(c))},H.prototype.mul=function(n,c){return this._verify2(n,c),this.imod(n.mul(c))},H.prototype.isqr=function(n){return this.imul(n,n.clone())},H.prototype.sqr=function(n){return this.mul(n,n)},H.prototype.sqrt=function(n){if(n.isZero())return n.clone();var c=this.m.andln(3);if(i(c%2===1),c===3){var l=this.m.add(new a(1)).iushrn(2);return this.pow(n,l)}for(var b=this.m.subn(1),v=0;!b.isZero()&&b.andln(1)===0;)v++,b.iushrn(1);i(!b.isZero());var S=new a(1).toRed(this),_=S.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new a(2*f*f).toRed(this);this.pow(f,d).cmp(_)!==0;)f.redIAdd(_);for(var h=this.pow(f,b),C=this.pow(n,b.addn(1).iushrn(1)),o=this.pow(n,b),A=v;o.cmp(S)!==0;){for(var I=o,E=0;I.cmp(S)!==0;E++)I=I.redSqr();i(E=0;v--){for(var h=c.words[v],C=f-1;C>=0;C--){var o=h>>C&1;if(S!==b[0]&&(S=this.sqr(S)),o===0&&_===0){d=0;continue}_<<=1,_|=o,d++,!(d!==l&&(v!==0||C!==0))&&(S=this.mul(S,b[_]),d=0,_=0)}f=26}return S},H.prototype.convertTo=function(n){var c=n.umod(this.m);return c===n?c.clone():c},H.prototype.convertFrom=function(n){var c=n.clone();return c.red=null,c},a.mont=function(n){return new ne(n)};function ne(m){H.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(ne,H),ne.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},ne.prototype.convertFrom=function(n){var c=this.imod(n.mul(this.rinv));return c.red=null,c},ne.prototype.imul=function(n,c){if(n.isZero()||c.isZero())return n.words[0]=0,n.length=1,n;var l=n.imul(c),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.mul=function(n,c){if(n.isZero()||c.isZero())return new a(0)._forceRed(this);var l=n.mul(c),b=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=l.isub(b).iushrn(this.shift),S=v;return v.cmp(this.m)>=0?S=v.isub(this.m):v.cmpn(0)<0&&(S=v.iadd(this.m)),S._forceRed(this)},ne.prototype.invm=function(n){var c=this.imod(n._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(r,Di)})(z0);var qn=z0.exports;const Z=Rr(qn),Un="logger/5.7.0";let ri=!1,ii=!1;const Lr={debug:1,default:2,info:2,warning:3,error:4,off:5};let ni=Lr.default,g0=null;function zn(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(r){return r.message}return null}const ai=zn();var k0;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(k0||(k0={}));var ot;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(ot||(ot={}));const fi="0123456789abcdef";class ${constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const i=e.toLowerCase();Lr[i]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(ni>Lr[i])&&console.log.apply(console,t)}debug(...e){this._log($.levels.DEBUG,e)}info(...e){this._log($.levels.INFO,e)}warn(...e){this._log($.levels.WARNING,e)}makeError(e,t,i){if(ii)return this.makeError("censored error",t,{});t||(t=$.errors.UNKNOWN_ERROR),i||(i={});const s=[];Object.keys(i).forEach(p=>{const g=i[p];try{if(g instanceof Uint8Array){let y="";for(let w=0;w>4],y+=fi[g[w]&15];s.push(p+"=Uint8Array(0x"+y+")")}else s.push(p+"="+JSON.stringify(g))}catch{s.push(p+"="+JSON.stringify(i[p].toString()))}}),s.push(`code=${t}`),s.push(`version=${this.version}`);const a=e;let x="";switch(t){case ot.NUMERIC_FAULT:{x="NUMERIC_FAULT";const p=e;switch(p){case"overflow":case"underflow":case"division-by-zero":x+="-"+p;break;case"negative-power":case"negative-width":x+="-unsupported";break;case"unbound-bitwise-result":x+="-unbound-result";break}break}case ot.CALL_EXCEPTION:case ot.INSUFFICIENT_FUNDS:case ot.MISSING_NEW:case ot.NONCE_EXPIRED:case ot.REPLACEMENT_UNDERPRICED:case ot.TRANSACTION_REPLACED:case ot.UNPREDICTABLE_GAS_LIMIT:x=t;break}x&&(e+=" [ See: https://links.ethers.org/v5-errors-"+x+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const u=new Error(e);return u.reason=a,u.code=t,Object.keys(i).forEach(function(p){u[p]=i[p]}),u}throwError(e,t,i){throw this.makeError(e,t,i)}throwArgumentError(e,t,i){return this.throwError(e,$.errors.INVALID_ARGUMENT,{argument:t,value:i})}assert(e,t,i,s){e||this.throwError(t,i,s)}assertArgument(e,t,i,s){e||this.throwArgumentError(t,i,s)}checkNormalize(e){ai&&this.throwError("platform missing String.prototype.normalize",$.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ai})}checkSafeUint53(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,i){i?i=": "+i:i="",et&&this.throwError("too many arguments"+i,$.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",$.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",$.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return g0||(g0=new $(Un)),g0}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ri){if(!e)return;this.globalLogger().throwError("error censorship permanent",$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ii=!!e,ri=!!t}static setLogLevel(e){const t=Lr[e.toLowerCase()];if(t==null){$.globalLogger().warn("invalid log level - "+e);return}ni=t}static from(e){return new $(e)}}$.errors=ot;$.levels=k0;const Gn="bytes/5.7.0",qe=new $(Gn);function Oi(r){return!!r.toHexString}function sr(r){return r.slice||(r.slice=function(){const e=Array.prototype.slice.call(arguments);return sr(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function G0(r){return He(r)&&!(r.length%2)||Yr(r)}function si(r){return typeof r=="number"&&r==r&&r%1===0}function Yr(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!si(r.length)||r.length<0)return!1;for(let e=0;e=256)return!1}return!0}function z(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid arrayify value");const t=[];for(;r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),sr(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r)&&(r=r.toHexString()),He(r)){let t=r.substring(2);t.length%2&&(e.hexPad==="left"?t="0"+t:e.hexPad==="right"?t+="0":qe.throwArgumentError("hex data is odd-length","value",r));const i=[];for(let s=0;sz(s)),t=e.reduce((s,a)=>s+a.length,0),i=new Uint8Array(t);return e.reduce((s,a)=>(i.set(a,s),s+a.length),0),sr(i)}function kt(r){let e=z(r);if(e.length===0)return e;let t=0;for(;te&&qe.throwArgumentError("value out of range","value",arguments[0]);const t=new Uint8Array(e);return t.set(r,e-r.length),sr(t)}function He(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}const m0="0123456789abcdef";function J(r,e){if(e||(e={}),typeof r=="number"){qe.checkSafeUint53(r,"invalid hexlify value");let t="";for(;r;)t=m0[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Oi(r))return r.toHexString();if(He(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":qe.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Yr(r)){let t="0x";for(let i=0;i>4]+m0[s&15]}return t}return qe.throwArgumentError("invalid hexlify value","value",r)}function Li(r){if(typeof r!="string")r=J(r);else if(!He(r)||r.length%2)return null;return(r.length-2)/2}function _r(r,e,t){return typeof r!="string"?r=J(r):(!He(r)||r.length%2)&&qe.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}function or(r){let e="0x";return r.forEach(t=>{e+=J(t).substring(2)}),e}function tt(r,e){for(typeof r!="string"?r=J(r):He(r)||qe.throwArgumentError("invalid hex string","value",r),r.length>2*e+2&&qe.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}function kr(r){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(G0(r)){let t=z(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64))):t.length===65?(e.r=J(t.slice(0,32)),e.s=J(t.slice(32,64)),e.v=t[64]):qe.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:qe.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=J(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){const s=Kn(z(e._vs),32);e._vs=J(s);const a=s[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&qe.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),s[0]&=127;const x=J(s);e.s==null?e.s=x:e.s!==x&&qe.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?qe.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&qe.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!He(e.r)?qe.throwArgumentError("signature missing or invalid r","signature",r):e.r=tt(e.r,32),e.s==null||!He(e.s)?qe.throwArgumentError("signature missing or invalid s","signature",r):e.s=tt(e.s,32);const t=z(e.s);t[0]>=128&&qe.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(t[0]|=128);const i=J(t);e._vs&&(He(e._vs)||qe.throwArgumentError("signature invalid _vs","signature",r),e._vs=tt(e._vs,32)),e._vs==null?e._vs=i:e._vs!==i&&qe.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function oi(r){return r=kr(r),J(Nt([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}const $n="bignumber/5.7.0";var Gr=Z.BN;const wt=new $($n),v0={},ci=9007199254740991;let di=!1;class ae{constructor(e,t){e!==v0&&wt.throwError("cannot call constructor directly; use BigNumber.from",$.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return We(Q(this).fromTwos(e))}toTwos(e){return We(Q(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return We(Q(this).add(Q(e)))}sub(e){return We(Q(this).sub(Q(e)))}div(e){return ae.from(e).isZero()&&Qe("division-by-zero","div"),We(Q(this).div(Q(e)))}mul(e){return We(Q(this).mul(Q(e)))}mod(e){const t=Q(e);return t.isNeg()&&Qe("division-by-zero","mod"),We(Q(this).umod(t))}pow(e){const t=Q(e);return t.isNeg()&&Qe("negative-power","pow"),We(Q(this).pow(t))}and(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","and"),We(Q(this).and(t))}or(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","or"),We(Q(this).or(t))}xor(e){const t=Q(e);return(this.isNegative()||t.isNeg())&&Qe("unbound-bitwise-result","xor"),We(Q(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Qe("negative-width","mask"),We(Q(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Qe("negative-width","shl"),We(Q(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Qe("negative-width","shr"),We(Q(this).shrn(e))}eq(e){return Q(this).eq(Q(e))}lt(e){return Q(this).lt(Q(e))}lte(e){return Q(this).lte(Q(e))}gt(e){return Q(this).gt(Q(e))}gte(e){return Q(this).gte(Q(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Q(this).isZero()}toNumber(){try{return Q(this).toNumber()}catch{Qe("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return wt.throwError("this platform does not support BigInt",$.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?di||(di=!0,wt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?wt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",$.errors.UNEXPECTED_ARGUMENT,{}):wt.throwError("BigNumber.toString does not accept parameters",$.errors.UNEXPECTED_ARGUMENT,{})),Q(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(v0,Er(e)):e.match(/^-?[0-9]+$/)?new ae(v0,Er(new Gr(e))):wt.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Qe("underflow","BigNumber.from",e),(e>=ci||e<=-ci)&&Qe("overflow","BigNumber.from",e),ae.from(String(e));const t=e;if(typeof t=="bigint")return ae.from(t.toString());if(Yr(t))return ae.from(J(t));if(t)if(t.toHexString){const i=t.toHexString();if(typeof i=="string")return ae.from(i)}else{let i=t._hex;if(i==null&&t.type==="BigNumber"&&(i=t.hex),typeof i=="string"&&(He(i)||i[0]==="-"&&He(i.substring(1))))return ae.from(i)}return wt.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Er(r){if(typeof r!="string")return Er(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&wt.throwArgumentError("invalid hex","value",r),r=Er(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function We(r){return ae.from(Er(r))}function Q(r){const e=ae.from(r).toHexString();return e[0]==="-"?new Gr("-"+e.substring(3),16):new Gr(e.substring(2),16)}function Qe(r,e,t){const i={fault:r,operation:e};return t!=null&&(i.value=t),wt.throwError(r,$.errors.NUMERIC_FAULT,i)}function Hn(r){return new Gr(r,36).toString(16)}const Wn="properties/5.7.0";var Jn=globalThis&&globalThis.__awaiter||function(r,e,t,i){function s(a){return a instanceof t?a:new t(function(x){x(a)})}return new(t||(t=Promise))(function(a,x){function u(y){try{g(i.next(y))}catch(w){x(w)}}function p(y){try{g(i.throw(y))}catch(w){x(w)}}function g(y){y.done?a(y.value):s(y.value).then(u,p)}g((i=i.apply(r,e||[])).next())})};const Kr=new $(Wn);function Y(r,e,t){Object.defineProperty(r,e,{enumerable:!0,value:t,writable:!1})}function fr(r){return Jn(this,void 0,void 0,function*(){const e=Object.keys(r).map(i=>{const s=r[i];return Promise.resolve(s).then(a=>({key:i,value:a}))});return(yield Promise.all(e)).reduce((i,s)=>(i[s.key]=s.value,i),{})})}function jn(r,e){(!r||typeof r!="object")&&Kr.throwArgumentError("invalid object","object",r),Object.keys(r).forEach(t=>{e[t]||Kr.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)})}function N0(r){const e={};for(const t in r)e[t]=r[t];return e}const Xn={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function qi(r){if(r==null||Xn[typeof r])return!0;if(Array.isArray(r)||typeof r=="object"){if(!Object.isFrozen(r))return!1;const e=Object.keys(r);for(let t=0;t$r(e)));if(typeof r=="object"){const e={};for(const t in r){const i=r[t];i!==void 0&&Y(e,t,$r(i))}return e}return Kr.throwArgumentError(`Cannot deepCopy ${typeof r}`,"object",r)}function $r(r){return Zn(r)}class Ui{constructor(e){for(const t in e)this[t]=$r(e[t])}}var zi={exports:{}};/** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 @@ -25,4 +25,3 @@ import{j as ie}from"./jsx-runtime-69eee039.js";import{B as R0,c as Nn}from"./Box ; }`,...(Bi=(Ti=Or.parameters)==null?void 0:Ti.docs)==null?void 0:Bi.source}}};const co=["Default","Multiple"];export{Dr as Default,Or as Multiple,co as __namedExportsOrder,oo as default}; -//# sourceMappingURL=GradientAvatar.stories-f9a102be.js.map diff --git a/assets/GradientAvatar.stories-f9a102be.js.map b/assets/GradientAvatar.stories-f9a102be.js.map deleted file mode 100644 index 7b138cce8..000000000 --- a/assets/GradientAvatar.stories-f9a102be.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GradientAvatar.stories-f9a102be.js","sources":["../../__vite-browser-external","../../node_modules/.pnpm/bn.js@5.2.1/node_modules/bn.js/lib/bn.js","../../node_modules/.pnpm/@ethersproject+logger@5.7.0/node_modules/@ethersproject/logger/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+logger@5.7.0/node_modules/@ethersproject/logger/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+bytes@5.7.0/node_modules/@ethersproject/bytes/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+bytes@5.7.0/node_modules/@ethersproject/bytes/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+bignumber@5.7.0/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js","../../node_modules/.pnpm/@ethersproject+properties@5.7.0/node_modules/@ethersproject/properties/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+properties@5.7.0/node_modules/@ethersproject/properties/lib.esm/index.js","../../node_modules/.pnpm/js-sha3@0.8.0/node_modules/js-sha3/src/sha3.js","../../node_modules/.pnpm/@ethersproject+keccak256@5.7.0/node_modules/@ethersproject/keccak256/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+rlp@5.7.0/node_modules/@ethersproject/rlp/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+rlp@5.7.0/node_modules/@ethersproject/rlp/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+address@5.7.0/node_modules/@ethersproject/address/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+address@5.7.0/node_modules/@ethersproject/address/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+strings@5.7.0/node_modules/@ethersproject/strings/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+strings@5.7.0/node_modules/@ethersproject/strings/lib.esm/utf8.js","../../node_modules/.pnpm/@ethersproject+hash@5.7.0/node_modules/@ethersproject/hash/lib.esm/id.js","../../node_modules/.pnpm/@ethersproject+hash@5.7.0/node_modules/@ethersproject/hash/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+hash@5.7.0/node_modules/@ethersproject/hash/lib.esm/message.js","../../node_modules/.pnpm/@ethersproject+hash@5.7.0/node_modules/@ethersproject/hash/lib.esm/typed-data.js","../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+abstract-provider@5.7.0/node_modules/@ethersproject/abstract-provider/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+abstract-signer@5.7.0/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+abstract-signer@5.7.0/node_modules/@ethersproject/abstract-signer/lib.esm/index.js","../../node_modules/.pnpm/minimalistic-assert@1.0.1/node_modules/minimalistic-assert/index.js","../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/utils.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/common.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/common.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/1.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/256.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/224.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/512.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/384.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/ripemd.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/hmac.js","../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash.js","../../node_modules/.pnpm/@ethersproject+signing-key@5.7.0/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js","../../node_modules/.pnpm/@ethersproject+signing-key@5.7.0/node_modules/@ethersproject/signing-key/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+signing-key@5.7.0/node_modules/@ethersproject/signing-key/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+transactions@5.7.0/node_modules/@ethersproject/transactions/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+transactions@5.7.0/node_modules/@ethersproject/transactions/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+basex@5.7.0/node_modules/@ethersproject/basex/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+sha2@5.7.0/node_modules/@ethersproject/sha2/lib.esm/types.js","../../node_modules/.pnpm/@ethersproject+sha2@5.7.0/node_modules/@ethersproject/sha2/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+sha2@5.7.0/node_modules/@ethersproject/sha2/lib.esm/sha2.js","../../node_modules/.pnpm/@ethersproject+pbkdf2@5.7.0/node_modules/@ethersproject/pbkdf2/lib.esm/pbkdf2.js","../../node_modules/.pnpm/@ethersproject+wordlists@5.7.0/node_modules/@ethersproject/wordlists/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+wordlists@5.7.0/node_modules/@ethersproject/wordlists/lib.esm/wordlist.js","../../node_modules/.pnpm/@ethersproject+wordlists@5.7.0/node_modules/@ethersproject/wordlists/lib.esm/lang-en.js","../../node_modules/.pnpm/@ethersproject+wordlists@5.7.0/node_modules/@ethersproject/wordlists/lib.esm/wordlists.js","../../node_modules/.pnpm/@ethersproject+hdnode@5.7.0/node_modules/@ethersproject/hdnode/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+hdnode@5.7.0/node_modules/@ethersproject/hdnode/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+random@5.7.0/node_modules/@ethersproject/random/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+random@5.7.0/node_modules/@ethersproject/random/lib.esm/random.js","../../node_modules/.pnpm/aes-js@3.0.0/node_modules/aes-js/index.js","../../node_modules/.pnpm/@ethersproject+json-wallets@5.7.0/node_modules/@ethersproject/json-wallets/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+json-wallets@5.7.0/node_modules/@ethersproject/json-wallets/lib.esm/utils.js","../../node_modules/.pnpm/@ethersproject+json-wallets@5.7.0/node_modules/@ethersproject/json-wallets/lib.esm/crowdsale.js","../../node_modules/.pnpm/@ethersproject+json-wallets@5.7.0/node_modules/@ethersproject/json-wallets/lib.esm/inspect.js","../../node_modules/.pnpm/scrypt-js@3.0.1/node_modules/scrypt-js/scrypt.js","../../node_modules/.pnpm/@ethersproject+json-wallets@5.7.0/node_modules/@ethersproject/json-wallets/lib.esm/keystore.js","../../node_modules/.pnpm/@ethersproject+json-wallets@5.7.0/node_modules/@ethersproject/json-wallets/lib.esm/index.js","../../node_modules/.pnpm/@ethersproject+wallet@5.7.0/node_modules/@ethersproject/wallet/lib.esm/_version.js","../../node_modules/.pnpm/@ethersproject+wallet@5.7.0/node_modules/@ethersproject/wallet/lib.esm/index.js","../../src/components/GradientAvatar/GradientAvatar.tsx"],"sourcesContent":["export default {}","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [number & 0x3ffffff];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [0];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this._strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // '0' - '9'\n if (c >= 48 && c <= 57) {\n return c - 48;\n // 'A' - 'F'\n } else if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n } else {\n assert(false, 'Invalid character in ' + string);\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this._strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var b = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n b = c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n b = c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n b = c;\n }\n assert(c >= 0 && b < mul, 'Invalid character');\n r += b;\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [0];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this._strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n function move (dest, src) {\n dest.words = src.words;\n dest.length = src.length;\n dest.negative = src.negative;\n dest.red = src.red;\n }\n\n BN.prototype._move = function _move (dest) {\n move(dest, this);\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype._strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n // Check Symbol.for because not everywhere where Symbol defined\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#Browser_compatibility\n if (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function') {\n try {\n BN.prototype[Symbol.for('nodejs.util.inspect.custom')] = inspect;\n } catch (e) {\n BN.prototype.inspect = inspect;\n }\n } else {\n BN.prototype.inspect = inspect;\n }\n\n function inspect () {\n return (this.red ? '';\n }\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modrn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16, 2);\n };\n\n if (Buffer) {\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n return this.toArrayLike(Buffer, endian, length);\n };\n }\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n var allocate = function allocate (ArrayType, size) {\n if (ArrayType.allocUnsafe) {\n return ArrayType.allocUnsafe(size);\n }\n return new ArrayType(size);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n this._strip();\n\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n var res = allocate(ArrayType, reqLength);\n var postfix = endian === 'le' ? 'LE' : 'BE';\n this['_toArrayLike' + postfix](res, byteLength);\n return res;\n };\n\n BN.prototype._toArrayLikeLE = function _toArrayLikeLE (res, byteLength) {\n var position = 0;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = (this.words[i] << shift) | carry;\n\n res[position++] = word & 0xff;\n if (position < res.length) {\n res[position++] = (word >> 8) & 0xff;\n }\n if (position < res.length) {\n res[position++] = (word >> 16) & 0xff;\n }\n\n if (shift === 6) {\n if (position < res.length) {\n res[position++] = (word >> 24) & 0xff;\n }\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position < res.length) {\n res[position++] = carry;\n\n while (position < res.length) {\n res[position++] = 0;\n }\n }\n };\n\n BN.prototype._toArrayLikeBE = function _toArrayLikeBE (res, byteLength) {\n var position = res.length - 1;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = (this.words[i] << shift) | carry;\n\n res[position--] = word & 0xff;\n if (position >= 0) {\n res[position--] = (word >> 8) & 0xff;\n }\n if (position >= 0) {\n res[position--] = (word >> 16) & 0xff;\n }\n\n if (shift === 6) {\n if (position >= 0) {\n res[position--] = (word >> 24) & 0xff;\n }\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position >= 0) {\n res[position--] = carry;\n\n while (position >= 0) {\n res[position--] = 0;\n }\n }\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] >>> wbit) & 0x01;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this._strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this._strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this._strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this._strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this._strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this._strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n function jumboMulTo (self, num, out) {\n // Temporary disable, see https://github.com/indutny/bn.js/issues/211\n // var fftm = new FFTM();\n // return fftm.mulp(self, num, out);\n return bigMulTo(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out._strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this._strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) <= num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this._strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this._strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this._strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q._strip();\n }\n a._strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || (r2 === 1 && cmp === 0)) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modrn = function modrn (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return isNegNum ? -acc : acc;\n };\n\n // WARNING: DEPRECATED\n BN.prototype.modn = function modn (num) {\n return this.modrn(num);\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n this._strip();\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this._strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is a BN v4 instance\n r.strip();\n } else {\n // r is a BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n\n move(a, a.umod(this.m)._forceRed(this));\n return a;\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","export const version = \"logger/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nlet _permanentCensorErrors = false;\nlet _censorErrors = false;\nconst LogLevels = { debug: 1, \"default\": 2, info: 2, warning: 3, error: 4, off: 5 };\nlet _logLevel = LogLevels[\"default\"];\nimport { version } from \"./_version\";\nlet _globalLogger = null;\nfunction _checkNormalize() {\n try {\n const missing = [];\n // Make sure all forms of normalization are supported\n [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].forEach((form) => {\n try {\n if (\"test\".normalize(form) !== \"test\") {\n throw new Error(\"bad normalize\");\n }\n ;\n }\n catch (error) {\n missing.push(form);\n }\n });\n if (missing.length) {\n throw new Error(\"missing \" + missing.join(\", \"));\n }\n if (String.fromCharCode(0xe9).normalize(\"NFD\") !== String.fromCharCode(0x65, 0x0301)) {\n throw new Error(\"broken implementation\");\n }\n }\n catch (error) {\n return error.message;\n }\n return null;\n}\nconst _normalizeError = _checkNormalize();\nexport var LogLevel;\n(function (LogLevel) {\n LogLevel[\"DEBUG\"] = \"DEBUG\";\n LogLevel[\"INFO\"] = \"INFO\";\n LogLevel[\"WARNING\"] = \"WARNING\";\n LogLevel[\"ERROR\"] = \"ERROR\";\n LogLevel[\"OFF\"] = \"OFF\";\n})(LogLevel || (LogLevel = {}));\nexport var ErrorCode;\n(function (ErrorCode) {\n ///////////////////\n // Generic Errors\n // Unknown Error\n ErrorCode[\"UNKNOWN_ERROR\"] = \"UNKNOWN_ERROR\";\n // Not Implemented\n ErrorCode[\"NOT_IMPLEMENTED\"] = \"NOT_IMPLEMENTED\";\n // Unsupported Operation\n // - operation\n ErrorCode[\"UNSUPPORTED_OPERATION\"] = \"UNSUPPORTED_OPERATION\";\n // Network Error (i.e. Ethereum Network, such as an invalid chain ID)\n // - event (\"noNetwork\" is not re-thrown in provider.ready; otherwise thrown)\n ErrorCode[\"NETWORK_ERROR\"] = \"NETWORK_ERROR\";\n // Some sort of bad response from the server\n ErrorCode[\"SERVER_ERROR\"] = \"SERVER_ERROR\";\n // Timeout\n ErrorCode[\"TIMEOUT\"] = \"TIMEOUT\";\n ///////////////////\n // Operational Errors\n // Buffer Overrun\n ErrorCode[\"BUFFER_OVERRUN\"] = \"BUFFER_OVERRUN\";\n // Numeric Fault\n // - operation: the operation being executed\n // - fault: the reason this faulted\n ErrorCode[\"NUMERIC_FAULT\"] = \"NUMERIC_FAULT\";\n ///////////////////\n // Argument Errors\n // Missing new operator to an object\n // - name: The name of the class\n ErrorCode[\"MISSING_NEW\"] = \"MISSING_NEW\";\n // Invalid argument (e.g. value is incompatible with type) to a function:\n // - argument: The argument name that was invalid\n // - value: The value of the argument\n ErrorCode[\"INVALID_ARGUMENT\"] = \"INVALID_ARGUMENT\";\n // Missing argument to a function:\n // - count: The number of arguments received\n // - expectedCount: The number of arguments expected\n ErrorCode[\"MISSING_ARGUMENT\"] = \"MISSING_ARGUMENT\";\n // Too many arguments\n // - count: The number of arguments received\n // - expectedCount: The number of arguments expected\n ErrorCode[\"UNEXPECTED_ARGUMENT\"] = \"UNEXPECTED_ARGUMENT\";\n ///////////////////\n // Blockchain Errors\n // Call exception\n // - transaction: the transaction\n // - address?: the contract address\n // - args?: The arguments passed into the function\n // - method?: The Solidity method signature\n // - errorSignature?: The EIP848 error signature\n // - errorArgs?: The EIP848 error parameters\n // - reason: The reason (only for EIP848 \"Error(string)\")\n ErrorCode[\"CALL_EXCEPTION\"] = \"CALL_EXCEPTION\";\n // Insufficient funds (< value + gasLimit * gasPrice)\n // - transaction: the transaction attempted\n ErrorCode[\"INSUFFICIENT_FUNDS\"] = \"INSUFFICIENT_FUNDS\";\n // Nonce has already been used\n // - transaction: the transaction attempted\n ErrorCode[\"NONCE_EXPIRED\"] = \"NONCE_EXPIRED\";\n // The replacement fee for the transaction is too low\n // - transaction: the transaction attempted\n ErrorCode[\"REPLACEMENT_UNDERPRICED\"] = \"REPLACEMENT_UNDERPRICED\";\n // The gas limit could not be estimated\n // - transaction: the transaction passed to estimateGas\n ErrorCode[\"UNPREDICTABLE_GAS_LIMIT\"] = \"UNPREDICTABLE_GAS_LIMIT\";\n // The transaction was replaced by one with a higher gas price\n // - reason: \"cancelled\", \"replaced\" or \"repriced\"\n // - cancelled: true if reason == \"cancelled\" or reason == \"replaced\")\n // - hash: original transaction hash\n // - replacement: the full TransactionsResponse for the replacement\n // - receipt: the receipt of the replacement\n ErrorCode[\"TRANSACTION_REPLACED\"] = \"TRANSACTION_REPLACED\";\n ///////////////////\n // Interaction Errors\n // The user rejected the action, such as signing a message or sending\n // a transaction\n ErrorCode[\"ACTION_REJECTED\"] = \"ACTION_REJECTED\";\n})(ErrorCode || (ErrorCode = {}));\n;\nconst HEX = \"0123456789abcdef\";\nexport class Logger {\n constructor(version) {\n Object.defineProperty(this, \"version\", {\n enumerable: true,\n value: version,\n writable: false\n });\n }\n _log(logLevel, args) {\n const level = logLevel.toLowerCase();\n if (LogLevels[level] == null) {\n this.throwArgumentError(\"invalid log level name\", \"logLevel\", logLevel);\n }\n if (_logLevel > LogLevels[level]) {\n return;\n }\n console.log.apply(console, args);\n }\n debug(...args) {\n this._log(Logger.levels.DEBUG, args);\n }\n info(...args) {\n this._log(Logger.levels.INFO, args);\n }\n warn(...args) {\n this._log(Logger.levels.WARNING, args);\n }\n makeError(message, code, params) {\n // Errors are being censored\n if (_censorErrors) {\n return this.makeError(\"censored error\", code, {});\n }\n if (!code) {\n code = Logger.errors.UNKNOWN_ERROR;\n }\n if (!params) {\n params = {};\n }\n const messageDetails = [];\n Object.keys(params).forEach((key) => {\n const value = params[key];\n try {\n if (value instanceof Uint8Array) {\n let hex = \"\";\n for (let i = 0; i < value.length; i++) {\n hex += HEX[value[i] >> 4];\n hex += HEX[value[i] & 0x0f];\n }\n messageDetails.push(key + \"=Uint8Array(0x\" + hex + \")\");\n }\n else {\n messageDetails.push(key + \"=\" + JSON.stringify(value));\n }\n }\n catch (error) {\n messageDetails.push(key + \"=\" + JSON.stringify(params[key].toString()));\n }\n });\n messageDetails.push(`code=${code}`);\n messageDetails.push(`version=${this.version}`);\n const reason = message;\n let url = \"\";\n switch (code) {\n case ErrorCode.NUMERIC_FAULT: {\n url = \"NUMERIC_FAULT\";\n const fault = message;\n switch (fault) {\n case \"overflow\":\n case \"underflow\":\n case \"division-by-zero\":\n url += \"-\" + fault;\n break;\n case \"negative-power\":\n case \"negative-width\":\n url += \"-unsupported\";\n break;\n case \"unbound-bitwise-result\":\n url += \"-unbound-result\";\n break;\n }\n break;\n }\n case ErrorCode.CALL_EXCEPTION:\n case ErrorCode.INSUFFICIENT_FUNDS:\n case ErrorCode.MISSING_NEW:\n case ErrorCode.NONCE_EXPIRED:\n case ErrorCode.REPLACEMENT_UNDERPRICED:\n case ErrorCode.TRANSACTION_REPLACED:\n case ErrorCode.UNPREDICTABLE_GAS_LIMIT:\n url = code;\n break;\n }\n if (url) {\n message += \" [ See: https:/\\/links.ethers.org/v5-errors-\" + url + \" ]\";\n }\n if (messageDetails.length) {\n message += \" (\" + messageDetails.join(\", \") + \")\";\n }\n // @TODO: Any??\n const error = new Error(message);\n error.reason = reason;\n error.code = code;\n Object.keys(params).forEach(function (key) {\n error[key] = params[key];\n });\n return error;\n }\n throwError(message, code, params) {\n throw this.makeError(message, code, params);\n }\n throwArgumentError(message, name, value) {\n return this.throwError(message, Logger.errors.INVALID_ARGUMENT, {\n argument: name,\n value: value\n });\n }\n assert(condition, message, code, params) {\n if (!!condition) {\n return;\n }\n this.throwError(message, code, params);\n }\n assertArgument(condition, message, name, value) {\n if (!!condition) {\n return;\n }\n this.throwArgumentError(message, name, value);\n }\n checkNormalize(message) {\n if (message == null) {\n message = \"platform missing String.prototype.normalize\";\n }\n if (_normalizeError) {\n this.throwError(\"platform missing String.prototype.normalize\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"String.prototype.normalize\", form: _normalizeError\n });\n }\n }\n checkSafeUint53(value, message) {\n if (typeof (value) !== \"number\") {\n return;\n }\n if (message == null) {\n message = \"value not safe\";\n }\n if (value < 0 || value >= 0x1fffffffffffff) {\n this.throwError(message, Logger.errors.NUMERIC_FAULT, {\n operation: \"checkSafeInteger\",\n fault: \"out-of-safe-range\",\n value: value\n });\n }\n if (value % 1) {\n this.throwError(message, Logger.errors.NUMERIC_FAULT, {\n operation: \"checkSafeInteger\",\n fault: \"non-integer\",\n value: value\n });\n }\n }\n checkArgumentCount(count, expectedCount, message) {\n if (message) {\n message = \": \" + message;\n }\n else {\n message = \"\";\n }\n if (count < expectedCount) {\n this.throwError(\"missing argument\" + message, Logger.errors.MISSING_ARGUMENT, {\n count: count,\n expectedCount: expectedCount\n });\n }\n if (count > expectedCount) {\n this.throwError(\"too many arguments\" + message, Logger.errors.UNEXPECTED_ARGUMENT, {\n count: count,\n expectedCount: expectedCount\n });\n }\n }\n checkNew(target, kind) {\n if (target === Object || target == null) {\n this.throwError(\"missing new\", Logger.errors.MISSING_NEW, { name: kind.name });\n }\n }\n checkAbstract(target, kind) {\n if (target === kind) {\n this.throwError(\"cannot instantiate abstract class \" + JSON.stringify(kind.name) + \" directly; use a sub-class\", Logger.errors.UNSUPPORTED_OPERATION, { name: target.name, operation: \"new\" });\n }\n else if (target === Object || target == null) {\n this.throwError(\"missing new\", Logger.errors.MISSING_NEW, { name: kind.name });\n }\n }\n static globalLogger() {\n if (!_globalLogger) {\n _globalLogger = new Logger(version);\n }\n return _globalLogger;\n }\n static setCensorship(censorship, permanent) {\n if (!censorship && permanent) {\n this.globalLogger().throwError(\"cannot permanently disable censorship\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"setCensorship\"\n });\n }\n if (_permanentCensorErrors) {\n if (!censorship) {\n return;\n }\n this.globalLogger().throwError(\"error censorship permanent\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"setCensorship\"\n });\n }\n _censorErrors = !!censorship;\n _permanentCensorErrors = !!permanent;\n }\n static setLogLevel(logLevel) {\n const level = LogLevels[logLevel.toLowerCase()];\n if (level == null) {\n Logger.globalLogger().warn(\"invalid log level - \" + logLevel);\n return;\n }\n _logLevel = level;\n }\n static from(version) {\n return new Logger(version);\n }\n}\nLogger.errors = ErrorCode;\nLogger.levels = LogLevel;\n//# sourceMappingURL=index.js.map","export const version = \"bytes/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\n///////////////////////////////\nfunction isHexable(value) {\n return !!(value.toHexString);\n}\nfunction addSlice(array) {\n if (array.slice) {\n return array;\n }\n array.slice = function () {\n const args = Array.prototype.slice.call(arguments);\n return addSlice(new Uint8Array(Array.prototype.slice.apply(array, args)));\n };\n return array;\n}\nexport function isBytesLike(value) {\n return ((isHexString(value) && !(value.length % 2)) || isBytes(value));\n}\nfunction isInteger(value) {\n return (typeof (value) === \"number\" && value == value && (value % 1) === 0);\n}\nexport function isBytes(value) {\n if (value == null) {\n return false;\n }\n if (value.constructor === Uint8Array) {\n return true;\n }\n if (typeof (value) === \"string\") {\n return false;\n }\n if (!isInteger(value.length) || value.length < 0) {\n return false;\n }\n for (let i = 0; i < value.length; i++) {\n const v = value[i];\n if (!isInteger(v) || v < 0 || v >= 256) {\n return false;\n }\n }\n return true;\n}\nexport function arrayify(value, options) {\n if (!options) {\n options = {};\n }\n if (typeof (value) === \"number\") {\n logger.checkSafeUint53(value, \"invalid arrayify value\");\n const result = [];\n while (value) {\n result.unshift(value & 0xff);\n value = parseInt(String(value / 256));\n }\n if (result.length === 0) {\n result.push(0);\n }\n return addSlice(new Uint8Array(result));\n }\n if (options.allowMissingPrefix && typeof (value) === \"string\" && value.substring(0, 2) !== \"0x\") {\n value = \"0x\" + value;\n }\n if (isHexable(value)) {\n value = value.toHexString();\n }\n if (isHexString(value)) {\n let hex = value.substring(2);\n if (hex.length % 2) {\n if (options.hexPad === \"left\") {\n hex = \"0\" + hex;\n }\n else if (options.hexPad === \"right\") {\n hex += \"0\";\n }\n else {\n logger.throwArgumentError(\"hex data is odd-length\", \"value\", value);\n }\n }\n const result = [];\n for (let i = 0; i < hex.length; i += 2) {\n result.push(parseInt(hex.substring(i, i + 2), 16));\n }\n return addSlice(new Uint8Array(result));\n }\n if (isBytes(value)) {\n return addSlice(new Uint8Array(value));\n }\n return logger.throwArgumentError(\"invalid arrayify value\", \"value\", value);\n}\nexport function concat(items) {\n const objects = items.map(item => arrayify(item));\n const length = objects.reduce((accum, item) => (accum + item.length), 0);\n const result = new Uint8Array(length);\n objects.reduce((offset, object) => {\n result.set(object, offset);\n return offset + object.length;\n }, 0);\n return addSlice(result);\n}\nexport function stripZeros(value) {\n let result = arrayify(value);\n if (result.length === 0) {\n return result;\n }\n // Find the first non-zero entry\n let start = 0;\n while (start < result.length && result[start] === 0) {\n start++;\n }\n // If we started with zeros, strip them\n if (start) {\n result = result.slice(start);\n }\n return result;\n}\nexport function zeroPad(value, length) {\n value = arrayify(value);\n if (value.length > length) {\n logger.throwArgumentError(\"value out of range\", \"value\", arguments[0]);\n }\n const result = new Uint8Array(length);\n result.set(value, length - value.length);\n return addSlice(result);\n}\nexport function isHexString(value, length) {\n if (typeof (value) !== \"string\" || !value.match(/^0x[0-9A-Fa-f]*$/)) {\n return false;\n }\n if (length && value.length !== 2 + 2 * length) {\n return false;\n }\n return true;\n}\nconst HexCharacters = \"0123456789abcdef\";\nexport function hexlify(value, options) {\n if (!options) {\n options = {};\n }\n if (typeof (value) === \"number\") {\n logger.checkSafeUint53(value, \"invalid hexlify value\");\n let hex = \"\";\n while (value) {\n hex = HexCharacters[value & 0xf] + hex;\n value = Math.floor(value / 16);\n }\n if (hex.length) {\n if (hex.length % 2) {\n hex = \"0\" + hex;\n }\n return \"0x\" + hex;\n }\n return \"0x00\";\n }\n if (typeof (value) === \"bigint\") {\n value = value.toString(16);\n if (value.length % 2) {\n return (\"0x0\" + value);\n }\n return \"0x\" + value;\n }\n if (options.allowMissingPrefix && typeof (value) === \"string\" && value.substring(0, 2) !== \"0x\") {\n value = \"0x\" + value;\n }\n if (isHexable(value)) {\n return value.toHexString();\n }\n if (isHexString(value)) {\n if (value.length % 2) {\n if (options.hexPad === \"left\") {\n value = \"0x0\" + value.substring(2);\n }\n else if (options.hexPad === \"right\") {\n value += \"0\";\n }\n else {\n logger.throwArgumentError(\"hex data is odd-length\", \"value\", value);\n }\n }\n return value.toLowerCase();\n }\n if (isBytes(value)) {\n let result = \"0x\";\n for (let i = 0; i < value.length; i++) {\n let v = value[i];\n result += HexCharacters[(v & 0xf0) >> 4] + HexCharacters[v & 0x0f];\n }\n return result;\n }\n return logger.throwArgumentError(\"invalid hexlify value\", \"value\", value);\n}\n/*\nfunction unoddify(value: BytesLike | Hexable | number): BytesLike | Hexable | number {\n if (typeof(value) === \"string\" && value.length % 2 && value.substring(0, 2) === \"0x\") {\n return \"0x0\" + value.substring(2);\n }\n return value;\n}\n*/\nexport function hexDataLength(data) {\n if (typeof (data) !== \"string\") {\n data = hexlify(data);\n }\n else if (!isHexString(data) || (data.length % 2)) {\n return null;\n }\n return (data.length - 2) / 2;\n}\nexport function hexDataSlice(data, offset, endOffset) {\n if (typeof (data) !== \"string\") {\n data = hexlify(data);\n }\n else if (!isHexString(data) || (data.length % 2)) {\n logger.throwArgumentError(\"invalid hexData\", \"value\", data);\n }\n offset = 2 + 2 * offset;\n if (endOffset != null) {\n return \"0x\" + data.substring(offset, 2 + 2 * endOffset);\n }\n return \"0x\" + data.substring(offset);\n}\nexport function hexConcat(items) {\n let result = \"0x\";\n items.forEach((item) => {\n result += hexlify(item).substring(2);\n });\n return result;\n}\nexport function hexValue(value) {\n const trimmed = hexStripZeros(hexlify(value, { hexPad: \"left\" }));\n if (trimmed === \"0x\") {\n return \"0x0\";\n }\n return trimmed;\n}\nexport function hexStripZeros(value) {\n if (typeof (value) !== \"string\") {\n value = hexlify(value);\n }\n if (!isHexString(value)) {\n logger.throwArgumentError(\"invalid hex string\", \"value\", value);\n }\n value = value.substring(2);\n let offset = 0;\n while (offset < value.length && value[offset] === \"0\") {\n offset++;\n }\n return \"0x\" + value.substring(offset);\n}\nexport function hexZeroPad(value, length) {\n if (typeof (value) !== \"string\") {\n value = hexlify(value);\n }\n else if (!isHexString(value)) {\n logger.throwArgumentError(\"invalid hex string\", \"value\", value);\n }\n if (value.length > 2 * length + 2) {\n logger.throwArgumentError(\"value out of range\", \"value\", arguments[1]);\n }\n while (value.length < 2 * length + 2) {\n value = \"0x0\" + value.substring(2);\n }\n return value;\n}\nexport function splitSignature(signature) {\n const result = {\n r: \"0x\",\n s: \"0x\",\n _vs: \"0x\",\n recoveryParam: 0,\n v: 0,\n yParityAndS: \"0x\",\n compact: \"0x\"\n };\n if (isBytesLike(signature)) {\n let bytes = arrayify(signature);\n // Get the r, s and v\n if (bytes.length === 64) {\n // EIP-2098; pull the v from the top bit of s and clear it\n result.v = 27 + (bytes[32] >> 7);\n bytes[32] &= 0x7f;\n result.r = hexlify(bytes.slice(0, 32));\n result.s = hexlify(bytes.slice(32, 64));\n }\n else if (bytes.length === 65) {\n result.r = hexlify(bytes.slice(0, 32));\n result.s = hexlify(bytes.slice(32, 64));\n result.v = bytes[64];\n }\n else {\n logger.throwArgumentError(\"invalid signature string\", \"signature\", signature);\n }\n // Allow a recid to be used as the v\n if (result.v < 27) {\n if (result.v === 0 || result.v === 1) {\n result.v += 27;\n }\n else {\n logger.throwArgumentError(\"signature invalid v byte\", \"signature\", signature);\n }\n }\n // Compute recoveryParam from v\n result.recoveryParam = 1 - (result.v % 2);\n // Compute _vs from recoveryParam and s\n if (result.recoveryParam) {\n bytes[32] |= 0x80;\n }\n result._vs = hexlify(bytes.slice(32, 64));\n }\n else {\n result.r = signature.r;\n result.s = signature.s;\n result.v = signature.v;\n result.recoveryParam = signature.recoveryParam;\n result._vs = signature._vs;\n // If the _vs is available, use it to populate missing s, v and recoveryParam\n // and verify non-missing s, v and recoveryParam\n if (result._vs != null) {\n const vs = zeroPad(arrayify(result._vs), 32);\n result._vs = hexlify(vs);\n // Set or check the recid\n const recoveryParam = ((vs[0] >= 128) ? 1 : 0);\n if (result.recoveryParam == null) {\n result.recoveryParam = recoveryParam;\n }\n else if (result.recoveryParam !== recoveryParam) {\n logger.throwArgumentError(\"signature recoveryParam mismatch _vs\", \"signature\", signature);\n }\n // Set or check the s\n vs[0] &= 0x7f;\n const s = hexlify(vs);\n if (result.s == null) {\n result.s = s;\n }\n else if (result.s !== s) {\n logger.throwArgumentError(\"signature v mismatch _vs\", \"signature\", signature);\n }\n }\n // Use recid and v to populate each other\n if (result.recoveryParam == null) {\n if (result.v == null) {\n logger.throwArgumentError(\"signature missing v and recoveryParam\", \"signature\", signature);\n }\n else if (result.v === 0 || result.v === 1) {\n result.recoveryParam = result.v;\n }\n else {\n result.recoveryParam = 1 - (result.v % 2);\n }\n }\n else {\n if (result.v == null) {\n result.v = 27 + result.recoveryParam;\n }\n else {\n const recId = (result.v === 0 || result.v === 1) ? result.v : (1 - (result.v % 2));\n if (result.recoveryParam !== recId) {\n logger.throwArgumentError(\"signature recoveryParam mismatch v\", \"signature\", signature);\n }\n }\n }\n if (result.r == null || !isHexString(result.r)) {\n logger.throwArgumentError(\"signature missing or invalid r\", \"signature\", signature);\n }\n else {\n result.r = hexZeroPad(result.r, 32);\n }\n if (result.s == null || !isHexString(result.s)) {\n logger.throwArgumentError(\"signature missing or invalid s\", \"signature\", signature);\n }\n else {\n result.s = hexZeroPad(result.s, 32);\n }\n const vs = arrayify(result.s);\n if (vs[0] >= 128) {\n logger.throwArgumentError(\"signature s out of range\", \"signature\", signature);\n }\n if (result.recoveryParam) {\n vs[0] |= 0x80;\n }\n const _vs = hexlify(vs);\n if (result._vs) {\n if (!isHexString(result._vs)) {\n logger.throwArgumentError(\"signature invalid _vs\", \"signature\", signature);\n }\n result._vs = hexZeroPad(result._vs, 32);\n }\n // Set or check the _vs\n if (result._vs == null) {\n result._vs = _vs;\n }\n else if (result._vs !== _vs) {\n logger.throwArgumentError(\"signature _vs mismatch v and s\", \"signature\", signature);\n }\n }\n result.yParityAndS = result._vs;\n result.compact = result.r + result.yParityAndS.substring(2);\n return result;\n}\nexport function joinSignature(signature) {\n signature = splitSignature(signature);\n return hexlify(concat([\n signature.r,\n signature.s,\n (signature.recoveryParam ? \"0x1c\" : \"0x1b\")\n ]));\n}\n//# sourceMappingURL=index.js.map","export const version = \"bignumber/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\n/**\n * BigNumber\n *\n * A wrapper around the BN.js object. We use the BN.js library\n * because it is used by elliptic, so it is required regardless.\n *\n */\nimport _BN from \"bn.js\";\nvar BN = _BN.BN;\nimport { hexlify, isBytes, isHexString } from \"@ethersproject/bytes\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nconst _constructorGuard = {};\nconst MAX_SAFE = 0x1fffffffffffff;\nexport function isBigNumberish(value) {\n return (value != null) && (BigNumber.isBigNumber(value) ||\n (typeof (value) === \"number\" && (value % 1) === 0) ||\n (typeof (value) === \"string\" && !!value.match(/^-?[0-9]+$/)) ||\n isHexString(value) ||\n (typeof (value) === \"bigint\") ||\n isBytes(value));\n}\n// Only warn about passing 10 into radix once\nlet _warnedToStringRadix = false;\nexport class BigNumber {\n constructor(constructorGuard, hex) {\n if (constructorGuard !== _constructorGuard) {\n logger.throwError(\"cannot call constructor directly; use BigNumber.from\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"new (BigNumber)\"\n });\n }\n this._hex = hex;\n this._isBigNumber = true;\n Object.freeze(this);\n }\n fromTwos(value) {\n return toBigNumber(toBN(this).fromTwos(value));\n }\n toTwos(value) {\n return toBigNumber(toBN(this).toTwos(value));\n }\n abs() {\n if (this._hex[0] === \"-\") {\n return BigNumber.from(this._hex.substring(1));\n }\n return this;\n }\n add(other) {\n return toBigNumber(toBN(this).add(toBN(other)));\n }\n sub(other) {\n return toBigNumber(toBN(this).sub(toBN(other)));\n }\n div(other) {\n const o = BigNumber.from(other);\n if (o.isZero()) {\n throwFault(\"division-by-zero\", \"div\");\n }\n return toBigNumber(toBN(this).div(toBN(other)));\n }\n mul(other) {\n return toBigNumber(toBN(this).mul(toBN(other)));\n }\n mod(other) {\n const value = toBN(other);\n if (value.isNeg()) {\n throwFault(\"division-by-zero\", \"mod\");\n }\n return toBigNumber(toBN(this).umod(value));\n }\n pow(other) {\n const value = toBN(other);\n if (value.isNeg()) {\n throwFault(\"negative-power\", \"pow\");\n }\n return toBigNumber(toBN(this).pow(value));\n }\n and(other) {\n const value = toBN(other);\n if (this.isNegative() || value.isNeg()) {\n throwFault(\"unbound-bitwise-result\", \"and\");\n }\n return toBigNumber(toBN(this).and(value));\n }\n or(other) {\n const value = toBN(other);\n if (this.isNegative() || value.isNeg()) {\n throwFault(\"unbound-bitwise-result\", \"or\");\n }\n return toBigNumber(toBN(this).or(value));\n }\n xor(other) {\n const value = toBN(other);\n if (this.isNegative() || value.isNeg()) {\n throwFault(\"unbound-bitwise-result\", \"xor\");\n }\n return toBigNumber(toBN(this).xor(value));\n }\n mask(value) {\n if (this.isNegative() || value < 0) {\n throwFault(\"negative-width\", \"mask\");\n }\n return toBigNumber(toBN(this).maskn(value));\n }\n shl(value) {\n if (this.isNegative() || value < 0) {\n throwFault(\"negative-width\", \"shl\");\n }\n return toBigNumber(toBN(this).shln(value));\n }\n shr(value) {\n if (this.isNegative() || value < 0) {\n throwFault(\"negative-width\", \"shr\");\n }\n return toBigNumber(toBN(this).shrn(value));\n }\n eq(other) {\n return toBN(this).eq(toBN(other));\n }\n lt(other) {\n return toBN(this).lt(toBN(other));\n }\n lte(other) {\n return toBN(this).lte(toBN(other));\n }\n gt(other) {\n return toBN(this).gt(toBN(other));\n }\n gte(other) {\n return toBN(this).gte(toBN(other));\n }\n isNegative() {\n return (this._hex[0] === \"-\");\n }\n isZero() {\n return toBN(this).isZero();\n }\n toNumber() {\n try {\n return toBN(this).toNumber();\n }\n catch (error) {\n throwFault(\"overflow\", \"toNumber\", this.toString());\n }\n return null;\n }\n toBigInt() {\n try {\n return BigInt(this.toString());\n }\n catch (e) { }\n return logger.throwError(\"this platform does not support BigInt\", Logger.errors.UNSUPPORTED_OPERATION, {\n value: this.toString()\n });\n }\n toString() {\n // Lots of people expect this, which we do not support, so check (See: #889)\n if (arguments.length > 0) {\n if (arguments[0] === 10) {\n if (!_warnedToStringRadix) {\n _warnedToStringRadix = true;\n logger.warn(\"BigNumber.toString does not accept any parameters; base-10 is assumed\");\n }\n }\n else if (arguments[0] === 16) {\n logger.throwError(\"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()\", Logger.errors.UNEXPECTED_ARGUMENT, {});\n }\n else {\n logger.throwError(\"BigNumber.toString does not accept parameters\", Logger.errors.UNEXPECTED_ARGUMENT, {});\n }\n }\n return toBN(this).toString(10);\n }\n toHexString() {\n return this._hex;\n }\n toJSON(key) {\n return { type: \"BigNumber\", hex: this.toHexString() };\n }\n static from(value) {\n if (value instanceof BigNumber) {\n return value;\n }\n if (typeof (value) === \"string\") {\n if (value.match(/^-?0x[0-9a-f]+$/i)) {\n return new BigNumber(_constructorGuard, toHex(value));\n }\n if (value.match(/^-?[0-9]+$/)) {\n return new BigNumber(_constructorGuard, toHex(new BN(value)));\n }\n return logger.throwArgumentError(\"invalid BigNumber string\", \"value\", value);\n }\n if (typeof (value) === \"number\") {\n if (value % 1) {\n throwFault(\"underflow\", \"BigNumber.from\", value);\n }\n if (value >= MAX_SAFE || value <= -MAX_SAFE) {\n throwFault(\"overflow\", \"BigNumber.from\", value);\n }\n return BigNumber.from(String(value));\n }\n const anyValue = value;\n if (typeof (anyValue) === \"bigint\") {\n return BigNumber.from(anyValue.toString());\n }\n if (isBytes(anyValue)) {\n return BigNumber.from(hexlify(anyValue));\n }\n if (anyValue) {\n // Hexable interface (takes priority)\n if (anyValue.toHexString) {\n const hex = anyValue.toHexString();\n if (typeof (hex) === \"string\") {\n return BigNumber.from(hex);\n }\n }\n else {\n // For now, handle legacy JSON-ified values (goes away in v6)\n let hex = anyValue._hex;\n // New-form JSON\n if (hex == null && anyValue.type === \"BigNumber\") {\n hex = anyValue.hex;\n }\n if (typeof (hex) === \"string\") {\n if (isHexString(hex) || (hex[0] === \"-\" && isHexString(hex.substring(1)))) {\n return BigNumber.from(hex);\n }\n }\n }\n }\n return logger.throwArgumentError(\"invalid BigNumber value\", \"value\", value);\n }\n static isBigNumber(value) {\n return !!(value && value._isBigNumber);\n }\n}\n// Normalize the hex string\nfunction toHex(value) {\n // For BN, call on the hex string\n if (typeof (value) !== \"string\") {\n return toHex(value.toString(16));\n }\n // If negative, prepend the negative sign to the normalized positive value\n if (value[0] === \"-\") {\n // Strip off the negative sign\n value = value.substring(1);\n // Cannot have multiple negative signs (e.g. \"--0x04\")\n if (value[0] === \"-\") {\n logger.throwArgumentError(\"invalid hex\", \"value\", value);\n }\n // Call toHex on the positive component\n value = toHex(value);\n // Do not allow \"-0x00\"\n if (value === \"0x00\") {\n return value;\n }\n // Negate the value\n return \"-\" + value;\n }\n // Add a \"0x\" prefix if missing\n if (value.substring(0, 2) !== \"0x\") {\n value = \"0x\" + value;\n }\n // Normalize zero\n if (value === \"0x\") {\n return \"0x00\";\n }\n // Make the string even length\n if (value.length % 2) {\n value = \"0x0\" + value.substring(2);\n }\n // Trim to smallest even-length string\n while (value.length > 4 && value.substring(0, 4) === \"0x00\") {\n value = \"0x\" + value.substring(4);\n }\n return value;\n}\nfunction toBigNumber(value) {\n return BigNumber.from(toHex(value));\n}\nfunction toBN(value) {\n const hex = BigNumber.from(value).toHexString();\n if (hex[0] === \"-\") {\n return (new BN(\"-\" + hex.substring(3), 16));\n }\n return new BN(hex.substring(2), 16);\n}\nfunction throwFault(fault, operation, value) {\n const params = { fault: fault, operation: operation };\n if (value != null) {\n params.value = value;\n }\n return logger.throwError(fault, Logger.errors.NUMERIC_FAULT, params);\n}\n// value should have no prefix\nexport function _base36To16(value) {\n return (new BN(value, 36)).toString(16);\n}\n// value should have no prefix\nexport function _base16To36(value) {\n return (new BN(value, 16)).toString(36);\n}\n//# sourceMappingURL=bignumber.js.map","export const version = \"properties/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nexport function defineReadOnly(object, name, value) {\n Object.defineProperty(object, name, {\n enumerable: true,\n value: value,\n writable: false,\n });\n}\n// Crawl up the constructor chain to find a static method\nexport function getStatic(ctor, key) {\n for (let i = 0; i < 32; i++) {\n if (ctor[key]) {\n return ctor[key];\n }\n if (!ctor.prototype || typeof (ctor.prototype) !== \"object\") {\n break;\n }\n ctor = Object.getPrototypeOf(ctor.prototype).constructor;\n }\n return null;\n}\nexport function resolveProperties(object) {\n return __awaiter(this, void 0, void 0, function* () {\n const promises = Object.keys(object).map((key) => {\n const value = object[key];\n return Promise.resolve(value).then((v) => ({ key: key, value: v }));\n });\n const results = yield Promise.all(promises);\n return results.reduce((accum, result) => {\n accum[(result.key)] = result.value;\n return accum;\n }, {});\n });\n}\nexport function checkProperties(object, properties) {\n if (!object || typeof (object) !== \"object\") {\n logger.throwArgumentError(\"invalid object\", \"object\", object);\n }\n Object.keys(object).forEach((key) => {\n if (!properties[key]) {\n logger.throwArgumentError(\"invalid object key - \" + key, \"transaction:\" + key, object);\n }\n });\n}\nexport function shallowCopy(object) {\n const result = {};\n for (const key in object) {\n result[key] = object[key];\n }\n return result;\n}\nconst opaque = { bigint: true, boolean: true, \"function\": true, number: true, string: true };\nfunction _isFrozen(object) {\n // Opaque objects are not mutable, so safe to copy by assignment\n if (object === undefined || object === null || opaque[typeof (object)]) {\n return true;\n }\n if (Array.isArray(object) || typeof (object) === \"object\") {\n if (!Object.isFrozen(object)) {\n return false;\n }\n const keys = Object.keys(object);\n for (let i = 0; i < keys.length; i++) {\n let value = null;\n try {\n value = object[keys[i]];\n }\n catch (error) {\n // If accessing a value triggers an error, it is a getter\n // designed to do so (e.g. Result) and is therefore \"frozen\"\n continue;\n }\n if (!_isFrozen(value)) {\n return false;\n }\n }\n return true;\n }\n return logger.throwArgumentError(`Cannot deepCopy ${typeof (object)}`, \"object\", object);\n}\n// Returns a new copy of object, such that no properties may be replaced.\n// New properties may be added only to objects.\nfunction _deepCopy(object) {\n if (_isFrozen(object)) {\n return object;\n }\n // Arrays are mutable, so we need to create a copy\n if (Array.isArray(object)) {\n return Object.freeze(object.map((item) => deepCopy(item)));\n }\n if (typeof (object) === \"object\") {\n const result = {};\n for (const key in object) {\n const value = object[key];\n if (value === undefined) {\n continue;\n }\n defineReadOnly(result, key, deepCopy(value));\n }\n return result;\n }\n return logger.throwArgumentError(`Cannot deepCopy ${typeof (object)}`, \"object\", object);\n}\nexport function deepCopy(object) {\n return _deepCopy(object);\n}\nexport class Description {\n constructor(info) {\n for (const key in info) {\n this[key] = deepCopy(info[key]);\n }\n }\n}\n//# sourceMappingURL=index.js.map","/**\n * [js-sha3]{@link https://github.com/emn178/js-sha3}\n *\n * @version 0.8.0\n * @author Chen, Yi-Cyuan [emn178@gmail.com]\n * @copyright Chen, Yi-Cyuan 2015-2018\n * @license MIT\n */\n/*jslint bitwise: true */\n(function () {\n 'use strict';\n\n var INPUT_ERROR = 'input is invalid type';\n var FINALIZE_ERROR = 'finalize already called';\n var WINDOW = typeof window === 'object';\n var root = WINDOW ? window : {};\n if (root.JS_SHA3_NO_WINDOW) {\n WINDOW = false;\n }\n var WEB_WORKER = !WINDOW && typeof self === 'object';\n var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;\n if (NODE_JS) {\n root = global;\n } else if (WEB_WORKER) {\n root = self;\n }\n var COMMON_JS = !root.JS_SHA3_NO_COMMON_JS && typeof module === 'object' && module.exports;\n var AMD = typeof define === 'function' && define.amd;\n var ARRAY_BUFFER = !root.JS_SHA3_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';\n var HEX_CHARS = '0123456789abcdef'.split('');\n var SHAKE_PADDING = [31, 7936, 2031616, 520093696];\n var CSHAKE_PADDING = [4, 1024, 262144, 67108864];\n var KECCAK_PADDING = [1, 256, 65536, 16777216];\n var PADDING = [6, 1536, 393216, 100663296];\n var SHIFT = [0, 8, 16, 24];\n var RC = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649,\n 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0,\n 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771,\n 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648,\n 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];\n var BITS = [224, 256, 384, 512];\n var SHAKE_BITS = [128, 256];\n var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array', 'digest'];\n var CSHAKE_BYTEPAD = {\n '128': 168,\n '256': 136\n };\n\n if (root.JS_SHA3_NO_NODE_JS || !Array.isArray) {\n Array.isArray = function (obj) {\n return Object.prototype.toString.call(obj) === '[object Array]';\n };\n }\n\n if (ARRAY_BUFFER && (root.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {\n ArrayBuffer.isView = function (obj) {\n return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;\n };\n }\n\n var createOutputMethod = function (bits, padding, outputType) {\n return function (message) {\n return new Keccak(bits, padding, bits).update(message)[outputType]();\n };\n };\n\n var createShakeOutputMethod = function (bits, padding, outputType) {\n return function (message, outputBits) {\n return new Keccak(bits, padding, outputBits).update(message)[outputType]();\n };\n };\n\n var createCshakeOutputMethod = function (bits, padding, outputType) {\n return function (message, outputBits, n, s) {\n return methods['cshake' + bits].update(message, outputBits, n, s)[outputType]();\n };\n };\n\n var createKmacOutputMethod = function (bits, padding, outputType) {\n return function (key, message, outputBits, s) {\n return methods['kmac' + bits].update(key, message, outputBits, s)[outputType]();\n };\n };\n\n var createOutputMethods = function (method, createMethod, bits, padding) {\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\n var type = OUTPUT_TYPES[i];\n method[type] = createMethod(bits, padding, type);\n }\n return method;\n };\n\n var createMethod = function (bits, padding) {\n var method = createOutputMethod(bits, padding, 'hex');\n method.create = function () {\n return new Keccak(bits, padding, bits);\n };\n method.update = function (message) {\n return method.create().update(message);\n };\n return createOutputMethods(method, createOutputMethod, bits, padding);\n };\n\n var createShakeMethod = function (bits, padding) {\n var method = createShakeOutputMethod(bits, padding, 'hex');\n method.create = function (outputBits) {\n return new Keccak(bits, padding, outputBits);\n };\n method.update = function (message, outputBits) {\n return method.create(outputBits).update(message);\n };\n return createOutputMethods(method, createShakeOutputMethod, bits, padding);\n };\n\n var createCshakeMethod = function (bits, padding) {\n var w = CSHAKE_BYTEPAD[bits];\n var method = createCshakeOutputMethod(bits, padding, 'hex');\n method.create = function (outputBits, n, s) {\n if (!n && !s) {\n return methods['shake' + bits].create(outputBits);\n } else {\n return new Keccak(bits, padding, outputBits).bytepad([n, s], w);\n }\n };\n method.update = function (message, outputBits, n, s) {\n return method.create(outputBits, n, s).update(message);\n };\n return createOutputMethods(method, createCshakeOutputMethod, bits, padding);\n };\n\n var createKmacMethod = function (bits, padding) {\n var w = CSHAKE_BYTEPAD[bits];\n var method = createKmacOutputMethod(bits, padding, 'hex');\n method.create = function (key, outputBits, s) {\n return new Kmac(bits, padding, outputBits).bytepad(['KMAC', s], w).bytepad([key], w);\n };\n method.update = function (key, message, outputBits, s) {\n return method.create(key, outputBits, s).update(message);\n };\n return createOutputMethods(method, createKmacOutputMethod, bits, padding);\n };\n\n var algorithms = [\n { name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod },\n { name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod },\n { name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod },\n { name: 'cshake', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createCshakeMethod },\n { name: 'kmac', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createKmacMethod }\n ];\n\n var methods = {}, methodNames = [];\n\n for (var i = 0; i < algorithms.length; ++i) {\n var algorithm = algorithms[i];\n var bits = algorithm.bits;\n for (var j = 0; j < bits.length; ++j) {\n var methodName = algorithm.name + '_' + bits[j];\n methodNames.push(methodName);\n methods[methodName] = algorithm.createMethod(bits[j], algorithm.padding);\n if (algorithm.name !== 'sha3') {\n var newMethodName = algorithm.name + bits[j];\n methodNames.push(newMethodName);\n methods[newMethodName] = methods[methodName];\n }\n }\n }\n\n function Keccak(bits, padding, outputBits) {\n this.blocks = [];\n this.s = [];\n this.padding = padding;\n this.outputBits = outputBits;\n this.reset = true;\n this.finalized = false;\n this.block = 0;\n this.start = 0;\n this.blockCount = (1600 - (bits << 1)) >> 5;\n this.byteCount = this.blockCount << 2;\n this.outputBlocks = outputBits >> 5;\n this.extraBytes = (outputBits & 31) >> 3;\n\n for (var i = 0; i < 50; ++i) {\n this.s[i] = 0;\n }\n }\n\n Keccak.prototype.update = function (message) {\n if (this.finalized) {\n throw new Error(FINALIZE_ERROR);\n }\n var notString, type = typeof message;\n if (type !== 'string') {\n if (type === 'object') {\n if (message === null) {\n throw new Error(INPUT_ERROR);\n } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {\n message = new Uint8Array(message);\n } else if (!Array.isArray(message)) {\n if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {\n throw new Error(INPUT_ERROR);\n }\n }\n } else {\n throw new Error(INPUT_ERROR);\n }\n notString = true;\n }\n var blocks = this.blocks, byteCount = this.byteCount, length = message.length,\n blockCount = this.blockCount, index = 0, s = this.s, i, code;\n\n while (index < length) {\n if (this.reset) {\n this.reset = false;\n blocks[0] = this.block;\n for (i = 1; i < blockCount + 1; ++i) {\n blocks[i] = 0;\n }\n }\n if (notString) {\n for (i = this.start; index < length && i < byteCount; ++index) {\n blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];\n }\n } else {\n for (i = this.start; index < length && i < byteCount; ++index) {\n code = message.charCodeAt(index);\n if (code < 0x80) {\n blocks[i >> 2] |= code << SHIFT[i++ & 3];\n } else if (code < 0x800) {\n blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\n } else if (code < 0xd800 || code >= 0xe000) {\n blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\n } else {\n code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));\n blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\n }\n }\n }\n this.lastByteIndex = i;\n if (i >= byteCount) {\n this.start = i - byteCount;\n this.block = blocks[blockCount];\n for (i = 0; i < blockCount; ++i) {\n s[i] ^= blocks[i];\n }\n f(s);\n this.reset = true;\n } else {\n this.start = i;\n }\n }\n return this;\n };\n\n Keccak.prototype.encode = function (x, right) {\n var o = x & 255, n = 1;\n var bytes = [o];\n x = x >> 8;\n o = x & 255;\n while (o > 0) {\n bytes.unshift(o);\n x = x >> 8;\n o = x & 255;\n ++n;\n }\n if (right) {\n bytes.push(n);\n } else {\n bytes.unshift(n);\n }\n this.update(bytes);\n return bytes.length;\n };\n\n Keccak.prototype.encodeString = function (str) {\n var notString, type = typeof str;\n if (type !== 'string') {\n if (type === 'object') {\n if (str === null) {\n throw new Error(INPUT_ERROR);\n } else if (ARRAY_BUFFER && str.constructor === ArrayBuffer) {\n str = new Uint8Array(str);\n } else if (!Array.isArray(str)) {\n if (!ARRAY_BUFFER || !ArrayBuffer.isView(str)) {\n throw new Error(INPUT_ERROR);\n }\n }\n } else {\n throw new Error(INPUT_ERROR);\n }\n notString = true;\n }\n var bytes = 0, length = str.length;\n if (notString) {\n bytes = length;\n } else {\n for (var i = 0; i < str.length; ++i) {\n var code = str.charCodeAt(i);\n if (code < 0x80) {\n bytes += 1;\n } else if (code < 0x800) {\n bytes += 2;\n } else if (code < 0xd800 || code >= 0xe000) {\n bytes += 3;\n } else {\n code = 0x10000 + (((code & 0x3ff) << 10) | (str.charCodeAt(++i) & 0x3ff));\n bytes += 4;\n }\n }\n }\n bytes += this.encode(bytes * 8);\n this.update(str);\n return bytes;\n };\n\n Keccak.prototype.bytepad = function (strs, w) {\n var bytes = this.encode(w);\n for (var i = 0; i < strs.length; ++i) {\n bytes += this.encodeString(strs[i]);\n }\n var paddingBytes = w - bytes % w;\n var zeros = [];\n zeros.length = paddingBytes;\n this.update(zeros);\n return this;\n };\n\n Keccak.prototype.finalize = function () {\n if (this.finalized) {\n return;\n }\n this.finalized = true;\n var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s;\n blocks[i >> 2] |= this.padding[i & 3];\n if (this.lastByteIndex === this.byteCount) {\n blocks[0] = blocks[blockCount];\n for (i = 1; i < blockCount + 1; ++i) {\n blocks[i] = 0;\n }\n }\n blocks[blockCount - 1] |= 0x80000000;\n for (i = 0; i < blockCount; ++i) {\n s[i] ^= blocks[i];\n }\n f(s);\n };\n\n Keccak.prototype.toString = Keccak.prototype.hex = function () {\n this.finalize();\n\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\n extraBytes = this.extraBytes, i = 0, j = 0;\n var hex = '', block;\n while (j < outputBlocks) {\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\n block = s[i];\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] +\n HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] +\n HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] +\n HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F];\n }\n if (j % blockCount === 0) {\n f(s);\n i = 0;\n }\n }\n if (extraBytes) {\n block = s[i];\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F];\n if (extraBytes > 1) {\n hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F];\n }\n if (extraBytes > 2) {\n hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F];\n }\n }\n return hex;\n };\n\n Keccak.prototype.arrayBuffer = function () {\n this.finalize();\n\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\n extraBytes = this.extraBytes, i = 0, j = 0;\n var bytes = this.outputBits >> 3;\n var buffer;\n if (extraBytes) {\n buffer = new ArrayBuffer((outputBlocks + 1) << 2);\n } else {\n buffer = new ArrayBuffer(bytes);\n }\n var array = new Uint32Array(buffer);\n while (j < outputBlocks) {\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\n array[j] = s[i];\n }\n if (j % blockCount === 0) {\n f(s);\n }\n }\n if (extraBytes) {\n array[i] = s[i];\n buffer = buffer.slice(0, bytes);\n }\n return buffer;\n };\n\n Keccak.prototype.buffer = Keccak.prototype.arrayBuffer;\n\n Keccak.prototype.digest = Keccak.prototype.array = function () {\n this.finalize();\n\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\n extraBytes = this.extraBytes, i = 0, j = 0;\n var array = [], offset, block;\n while (j < outputBlocks) {\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\n offset = j << 2;\n block = s[i];\n array[offset] = block & 0xFF;\n array[offset + 1] = (block >> 8) & 0xFF;\n array[offset + 2] = (block >> 16) & 0xFF;\n array[offset + 3] = (block >> 24) & 0xFF;\n }\n if (j % blockCount === 0) {\n f(s);\n }\n }\n if (extraBytes) {\n offset = j << 2;\n block = s[i];\n array[offset] = block & 0xFF;\n if (extraBytes > 1) {\n array[offset + 1] = (block >> 8) & 0xFF;\n }\n if (extraBytes > 2) {\n array[offset + 2] = (block >> 16) & 0xFF;\n }\n }\n return array;\n };\n\n function Kmac(bits, padding, outputBits) {\n Keccak.call(this, bits, padding, outputBits);\n }\n\n Kmac.prototype = new Keccak();\n\n Kmac.prototype.finalize = function () {\n this.encode(this.outputBits, true);\n return Keccak.prototype.finalize.call(this);\n };\n\n var f = function (s) {\n var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9,\n b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17,\n b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33,\n b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49;\n for (n = 0; n < 48; n += 2) {\n c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40];\n c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41];\n c2 = s[2] ^ s[12] ^ s[22] ^ s[32] ^ s[42];\n c3 = s[3] ^ s[13] ^ s[23] ^ s[33] ^ s[43];\n c4 = s[4] ^ s[14] ^ s[24] ^ s[34] ^ s[44];\n c5 = s[5] ^ s[15] ^ s[25] ^ s[35] ^ s[45];\n c6 = s[6] ^ s[16] ^ s[26] ^ s[36] ^ s[46];\n c7 = s[7] ^ s[17] ^ s[27] ^ s[37] ^ s[47];\n c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48];\n c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49];\n\n h = c8 ^ ((c2 << 1) | (c3 >>> 31));\n l = c9 ^ ((c3 << 1) | (c2 >>> 31));\n s[0] ^= h;\n s[1] ^= l;\n s[10] ^= h;\n s[11] ^= l;\n s[20] ^= h;\n s[21] ^= l;\n s[30] ^= h;\n s[31] ^= l;\n s[40] ^= h;\n s[41] ^= l;\n h = c0 ^ ((c4 << 1) | (c5 >>> 31));\n l = c1 ^ ((c5 << 1) | (c4 >>> 31));\n s[2] ^= h;\n s[3] ^= l;\n s[12] ^= h;\n s[13] ^= l;\n s[22] ^= h;\n s[23] ^= l;\n s[32] ^= h;\n s[33] ^= l;\n s[42] ^= h;\n s[43] ^= l;\n h = c2 ^ ((c6 << 1) | (c7 >>> 31));\n l = c3 ^ ((c7 << 1) | (c6 >>> 31));\n s[4] ^= h;\n s[5] ^= l;\n s[14] ^= h;\n s[15] ^= l;\n s[24] ^= h;\n s[25] ^= l;\n s[34] ^= h;\n s[35] ^= l;\n s[44] ^= h;\n s[45] ^= l;\n h = c4 ^ ((c8 << 1) | (c9 >>> 31));\n l = c5 ^ ((c9 << 1) | (c8 >>> 31));\n s[6] ^= h;\n s[7] ^= l;\n s[16] ^= h;\n s[17] ^= l;\n s[26] ^= h;\n s[27] ^= l;\n s[36] ^= h;\n s[37] ^= l;\n s[46] ^= h;\n s[47] ^= l;\n h = c6 ^ ((c0 << 1) | (c1 >>> 31));\n l = c7 ^ ((c1 << 1) | (c0 >>> 31));\n s[8] ^= h;\n s[9] ^= l;\n s[18] ^= h;\n s[19] ^= l;\n s[28] ^= h;\n s[29] ^= l;\n s[38] ^= h;\n s[39] ^= l;\n s[48] ^= h;\n s[49] ^= l;\n\n b0 = s[0];\n b1 = s[1];\n b32 = (s[11] << 4) | (s[10] >>> 28);\n b33 = (s[10] << 4) | (s[11] >>> 28);\n b14 = (s[20] << 3) | (s[21] >>> 29);\n b15 = (s[21] << 3) | (s[20] >>> 29);\n b46 = (s[31] << 9) | (s[30] >>> 23);\n b47 = (s[30] << 9) | (s[31] >>> 23);\n b28 = (s[40] << 18) | (s[41] >>> 14);\n b29 = (s[41] << 18) | (s[40] >>> 14);\n b20 = (s[2] << 1) | (s[3] >>> 31);\n b21 = (s[3] << 1) | (s[2] >>> 31);\n b2 = (s[13] << 12) | (s[12] >>> 20);\n b3 = (s[12] << 12) | (s[13] >>> 20);\n b34 = (s[22] << 10) | (s[23] >>> 22);\n b35 = (s[23] << 10) | (s[22] >>> 22);\n b16 = (s[33] << 13) | (s[32] >>> 19);\n b17 = (s[32] << 13) | (s[33] >>> 19);\n b48 = (s[42] << 2) | (s[43] >>> 30);\n b49 = (s[43] << 2) | (s[42] >>> 30);\n b40 = (s[5] << 30) | (s[4] >>> 2);\n b41 = (s[4] << 30) | (s[5] >>> 2);\n b22 = (s[14] << 6) | (s[15] >>> 26);\n b23 = (s[15] << 6) | (s[14] >>> 26);\n b4 = (s[25] << 11) | (s[24] >>> 21);\n b5 = (s[24] << 11) | (s[25] >>> 21);\n b36 = (s[34] << 15) | (s[35] >>> 17);\n b37 = (s[35] << 15) | (s[34] >>> 17);\n b18 = (s[45] << 29) | (s[44] >>> 3);\n b19 = (s[44] << 29) | (s[45] >>> 3);\n b10 = (s[6] << 28) | (s[7] >>> 4);\n b11 = (s[7] << 28) | (s[6] >>> 4);\n b42 = (s[17] << 23) | (s[16] >>> 9);\n b43 = (s[16] << 23) | (s[17] >>> 9);\n b24 = (s[26] << 25) | (s[27] >>> 7);\n b25 = (s[27] << 25) | (s[26] >>> 7);\n b6 = (s[36] << 21) | (s[37] >>> 11);\n b7 = (s[37] << 21) | (s[36] >>> 11);\n b38 = (s[47] << 24) | (s[46] >>> 8);\n b39 = (s[46] << 24) | (s[47] >>> 8);\n b30 = (s[8] << 27) | (s[9] >>> 5);\n b31 = (s[9] << 27) | (s[8] >>> 5);\n b12 = (s[18] << 20) | (s[19] >>> 12);\n b13 = (s[19] << 20) | (s[18] >>> 12);\n b44 = (s[29] << 7) | (s[28] >>> 25);\n b45 = (s[28] << 7) | (s[29] >>> 25);\n b26 = (s[38] << 8) | (s[39] >>> 24);\n b27 = (s[39] << 8) | (s[38] >>> 24);\n b8 = (s[48] << 14) | (s[49] >>> 18);\n b9 = (s[49] << 14) | (s[48] >>> 18);\n\n s[0] = b0 ^ (~b2 & b4);\n s[1] = b1 ^ (~b3 & b5);\n s[10] = b10 ^ (~b12 & b14);\n s[11] = b11 ^ (~b13 & b15);\n s[20] = b20 ^ (~b22 & b24);\n s[21] = b21 ^ (~b23 & b25);\n s[30] = b30 ^ (~b32 & b34);\n s[31] = b31 ^ (~b33 & b35);\n s[40] = b40 ^ (~b42 & b44);\n s[41] = b41 ^ (~b43 & b45);\n s[2] = b2 ^ (~b4 & b6);\n s[3] = b3 ^ (~b5 & b7);\n s[12] = b12 ^ (~b14 & b16);\n s[13] = b13 ^ (~b15 & b17);\n s[22] = b22 ^ (~b24 & b26);\n s[23] = b23 ^ (~b25 & b27);\n s[32] = b32 ^ (~b34 & b36);\n s[33] = b33 ^ (~b35 & b37);\n s[42] = b42 ^ (~b44 & b46);\n s[43] = b43 ^ (~b45 & b47);\n s[4] = b4 ^ (~b6 & b8);\n s[5] = b5 ^ (~b7 & b9);\n s[14] = b14 ^ (~b16 & b18);\n s[15] = b15 ^ (~b17 & b19);\n s[24] = b24 ^ (~b26 & b28);\n s[25] = b25 ^ (~b27 & b29);\n s[34] = b34 ^ (~b36 & b38);\n s[35] = b35 ^ (~b37 & b39);\n s[44] = b44 ^ (~b46 & b48);\n s[45] = b45 ^ (~b47 & b49);\n s[6] = b6 ^ (~b8 & b0);\n s[7] = b7 ^ (~b9 & b1);\n s[16] = b16 ^ (~b18 & b10);\n s[17] = b17 ^ (~b19 & b11);\n s[26] = b26 ^ (~b28 & b20);\n s[27] = b27 ^ (~b29 & b21);\n s[36] = b36 ^ (~b38 & b30);\n s[37] = b37 ^ (~b39 & b31);\n s[46] = b46 ^ (~b48 & b40);\n s[47] = b47 ^ (~b49 & b41);\n s[8] = b8 ^ (~b0 & b2);\n s[9] = b9 ^ (~b1 & b3);\n s[18] = b18 ^ (~b10 & b12);\n s[19] = b19 ^ (~b11 & b13);\n s[28] = b28 ^ (~b20 & b22);\n s[29] = b29 ^ (~b21 & b23);\n s[38] = b38 ^ (~b30 & b32);\n s[39] = b39 ^ (~b31 & b33);\n s[48] = b48 ^ (~b40 & b42);\n s[49] = b49 ^ (~b41 & b43);\n\n s[0] ^= RC[n];\n s[1] ^= RC[n + 1];\n }\n };\n\n if (COMMON_JS) {\n module.exports = methods;\n } else {\n for (i = 0; i < methodNames.length; ++i) {\n root[methodNames[i]] = methods[methodNames[i]];\n }\n if (AMD) {\n define(function () {\n return methods;\n });\n }\n }\n})();\n","\"use strict\";\nimport sha3 from \"js-sha3\";\nimport { arrayify } from \"@ethersproject/bytes\";\nexport function keccak256(data) {\n return '0x' + sha3.keccak_256(arrayify(data));\n}\n//# sourceMappingURL=index.js.map","export const version = \"rlp/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\n//See: https://github.com/ethereum/wiki/wiki/RLP\nimport { arrayify, hexlify, isBytesLike } from \"@ethersproject/bytes\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nfunction arrayifyInteger(value) {\n const result = [];\n while (value) {\n result.unshift(value & 0xff);\n value >>= 8;\n }\n return result;\n}\nfunction unarrayifyInteger(data, offset, length) {\n let result = 0;\n for (let i = 0; i < length; i++) {\n result = (result * 256) + data[offset + i];\n }\n return result;\n}\nfunction _encode(object) {\n if (Array.isArray(object)) {\n let payload = [];\n object.forEach(function (child) {\n payload = payload.concat(_encode(child));\n });\n if (payload.length <= 55) {\n payload.unshift(0xc0 + payload.length);\n return payload;\n }\n const length = arrayifyInteger(payload.length);\n length.unshift(0xf7 + length.length);\n return length.concat(payload);\n }\n if (!isBytesLike(object)) {\n logger.throwArgumentError(\"RLP object must be BytesLike\", \"object\", object);\n }\n const data = Array.prototype.slice.call(arrayify(object));\n if (data.length === 1 && data[0] <= 0x7f) {\n return data;\n }\n else if (data.length <= 55) {\n data.unshift(0x80 + data.length);\n return data;\n }\n const length = arrayifyInteger(data.length);\n length.unshift(0xb7 + length.length);\n return length.concat(data);\n}\nexport function encode(object) {\n return hexlify(_encode(object));\n}\nfunction _decodeChildren(data, offset, childOffset, length) {\n const result = [];\n while (childOffset < offset + 1 + length) {\n const decoded = _decode(data, childOffset);\n result.push(decoded.result);\n childOffset += decoded.consumed;\n if (childOffset > offset + 1 + length) {\n logger.throwError(\"child data too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n }\n return { consumed: (1 + length), result: result };\n}\n// returns { consumed: number, result: Object }\nfunction _decode(data, offset) {\n if (data.length === 0) {\n logger.throwError(\"data too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n // Array with extra length prefix\n if (data[offset] >= 0xf8) {\n const lengthLength = data[offset] - 0xf7;\n if (offset + 1 + lengthLength > data.length) {\n logger.throwError(\"data short segment too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n const length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n logger.throwError(\"data long segment too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length);\n }\n else if (data[offset] >= 0xc0) {\n const length = data[offset] - 0xc0;\n if (offset + 1 + length > data.length) {\n logger.throwError(\"data array too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n return _decodeChildren(data, offset, offset + 1, length);\n }\n else if (data[offset] >= 0xb8) {\n const lengthLength = data[offset] - 0xb7;\n if (offset + 1 + lengthLength > data.length) {\n logger.throwError(\"data array too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n const length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n logger.throwError(\"data array too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n const result = hexlify(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length));\n return { consumed: (1 + lengthLength + length), result: result };\n }\n else if (data[offset] >= 0x80) {\n const length = data[offset] - 0x80;\n if (offset + 1 + length > data.length) {\n logger.throwError(\"data too short\", Logger.errors.BUFFER_OVERRUN, {});\n }\n const result = hexlify(data.slice(offset + 1, offset + 1 + length));\n return { consumed: (1 + length), result: result };\n }\n return { consumed: 1, result: hexlify(data[offset]) };\n}\nexport function decode(data) {\n const bytes = arrayify(data);\n const decoded = _decode(bytes, 0);\n if (decoded.consumed !== bytes.length) {\n logger.throwArgumentError(\"invalid rlp data\", \"data\", data);\n }\n return decoded.result;\n}\n//# sourceMappingURL=index.js.map","export const version = \"address/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { arrayify, concat, hexDataLength, hexDataSlice, isHexString, stripZeros } from \"@ethersproject/bytes\";\nimport { BigNumber, _base16To36, _base36To16 } from \"@ethersproject/bignumber\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { encode } from \"@ethersproject/rlp\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nfunction getChecksumAddress(address) {\n if (!isHexString(address, 20)) {\n logger.throwArgumentError(\"invalid address\", \"address\", address);\n }\n address = address.toLowerCase();\n const chars = address.substring(2).split(\"\");\n const expanded = new Uint8Array(40);\n for (let i = 0; i < 40; i++) {\n expanded[i] = chars[i].charCodeAt(0);\n }\n const hashed = arrayify(keccak256(expanded));\n for (let i = 0; i < 40; i += 2) {\n if ((hashed[i >> 1] >> 4) >= 8) {\n chars[i] = chars[i].toUpperCase();\n }\n if ((hashed[i >> 1] & 0x0f) >= 8) {\n chars[i + 1] = chars[i + 1].toUpperCase();\n }\n }\n return \"0x\" + chars.join(\"\");\n}\n// Shims for environments that are missing some required constants and functions\nconst MAX_SAFE_INTEGER = 0x1fffffffffffff;\nfunction log10(x) {\n if (Math.log10) {\n return Math.log10(x);\n }\n return Math.log(x) / Math.LN10;\n}\n// See: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n// Create lookup table\nconst ibanLookup = {};\nfor (let i = 0; i < 10; i++) {\n ibanLookup[String(i)] = String(i);\n}\nfor (let i = 0; i < 26; i++) {\n ibanLookup[String.fromCharCode(65 + i)] = String(10 + i);\n}\n// How many decimal digits can we process? (for 64-bit float, this is 15)\nconst safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));\nfunction ibanChecksum(address) {\n address = address.toUpperCase();\n address = address.substring(4) + address.substring(0, 2) + \"00\";\n let expanded = address.split(\"\").map((c) => { return ibanLookup[c]; }).join(\"\");\n // Javascript can handle integers safely up to 15 (decimal) digits\n while (expanded.length >= safeDigits) {\n let block = expanded.substring(0, safeDigits);\n expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);\n }\n let checksum = String(98 - (parseInt(expanded, 10) % 97));\n while (checksum.length < 2) {\n checksum = \"0\" + checksum;\n }\n return checksum;\n}\n;\nexport function getAddress(address) {\n let result = null;\n if (typeof (address) !== \"string\") {\n logger.throwArgumentError(\"invalid address\", \"address\", address);\n }\n if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {\n // Missing the 0x prefix\n if (address.substring(0, 2) !== \"0x\") {\n address = \"0x\" + address;\n }\n result = getChecksumAddress(address);\n // It is a checksummed address with a bad checksum\n if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {\n logger.throwArgumentError(\"bad address checksum\", \"address\", address);\n }\n // Maybe ICAP? (we only support direct mode)\n }\n else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {\n // It is an ICAP address with a bad checksum\n if (address.substring(2, 4) !== ibanChecksum(address)) {\n logger.throwArgumentError(\"bad icap checksum\", \"address\", address);\n }\n result = _base36To16(address.substring(4));\n while (result.length < 40) {\n result = \"0\" + result;\n }\n result = getChecksumAddress(\"0x\" + result);\n }\n else {\n logger.throwArgumentError(\"invalid address\", \"address\", address);\n }\n return result;\n}\nexport function isAddress(address) {\n try {\n getAddress(address);\n return true;\n }\n catch (error) { }\n return false;\n}\nexport function getIcapAddress(address) {\n let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();\n while (base36.length < 30) {\n base36 = \"0\" + base36;\n }\n return \"XE\" + ibanChecksum(\"XE00\" + base36) + base36;\n}\n// http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed\nexport function getContractAddress(transaction) {\n let from = null;\n try {\n from = getAddress(transaction.from);\n }\n catch (error) {\n logger.throwArgumentError(\"missing from address\", \"transaction\", transaction);\n }\n const nonce = stripZeros(arrayify(BigNumber.from(transaction.nonce).toHexString()));\n return getAddress(hexDataSlice(keccak256(encode([from, nonce])), 12));\n}\nexport function getCreate2Address(from, salt, initCodeHash) {\n if (hexDataLength(salt) !== 32) {\n logger.throwArgumentError(\"salt must be 32 bytes\", \"salt\", salt);\n }\n if (hexDataLength(initCodeHash) !== 32) {\n logger.throwArgumentError(\"initCodeHash must be 32 bytes\", \"initCodeHash\", initCodeHash);\n }\n return getAddress(hexDataSlice(keccak256(concat([\"0xff\", getAddress(from), salt, initCodeHash])), 12));\n}\n//# sourceMappingURL=index.js.map","export const version = \"strings/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { arrayify } from \"@ethersproject/bytes\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\n///////////////////////////////\nexport var UnicodeNormalizationForm;\n(function (UnicodeNormalizationForm) {\n UnicodeNormalizationForm[\"current\"] = \"\";\n UnicodeNormalizationForm[\"NFC\"] = \"NFC\";\n UnicodeNormalizationForm[\"NFD\"] = \"NFD\";\n UnicodeNormalizationForm[\"NFKC\"] = \"NFKC\";\n UnicodeNormalizationForm[\"NFKD\"] = \"NFKD\";\n})(UnicodeNormalizationForm || (UnicodeNormalizationForm = {}));\n;\nexport var Utf8ErrorReason;\n(function (Utf8ErrorReason) {\n // A continuation byte was present where there was nothing to continue\n // - offset = the index the codepoint began in\n Utf8ErrorReason[\"UNEXPECTED_CONTINUE\"] = \"unexpected continuation byte\";\n // An invalid (non-continuation) byte to start a UTF-8 codepoint was found\n // - offset = the index the codepoint began in\n Utf8ErrorReason[\"BAD_PREFIX\"] = \"bad codepoint prefix\";\n // The string is too short to process the expected codepoint\n // - offset = the index the codepoint began in\n Utf8ErrorReason[\"OVERRUN\"] = \"string overrun\";\n // A missing continuation byte was expected but not found\n // - offset = the index the continuation byte was expected at\n Utf8ErrorReason[\"MISSING_CONTINUE\"] = \"missing continuation byte\";\n // The computed code point is outside the range for UTF-8\n // - offset = start of this codepoint\n // - badCodepoint = the computed codepoint; outside the UTF-8 range\n Utf8ErrorReason[\"OUT_OF_RANGE\"] = \"out of UTF-8 range\";\n // UTF-8 strings may not contain UTF-16 surrogate pairs\n // - offset = start of this codepoint\n // - badCodepoint = the computed codepoint; inside the UTF-16 surrogate range\n Utf8ErrorReason[\"UTF16_SURROGATE\"] = \"UTF-16 surrogate\";\n // The string is an overlong representation\n // - offset = start of this codepoint\n // - badCodepoint = the computed codepoint; already bounds checked\n Utf8ErrorReason[\"OVERLONG\"] = \"overlong representation\";\n})(Utf8ErrorReason || (Utf8ErrorReason = {}));\n;\nfunction errorFunc(reason, offset, bytes, output, badCodepoint) {\n return logger.throwArgumentError(`invalid codepoint at offset ${offset}; ${reason}`, \"bytes\", bytes);\n}\nfunction ignoreFunc(reason, offset, bytes, output, badCodepoint) {\n // If there is an invalid prefix (including stray continuation), skip any additional continuation bytes\n if (reason === Utf8ErrorReason.BAD_PREFIX || reason === Utf8ErrorReason.UNEXPECTED_CONTINUE) {\n let i = 0;\n for (let o = offset + 1; o < bytes.length; o++) {\n if (bytes[o] >> 6 !== 0x02) {\n break;\n }\n i++;\n }\n return i;\n }\n // This byte runs us past the end of the string, so just jump to the end\n // (but the first byte was read already read and therefore skipped)\n if (reason === Utf8ErrorReason.OVERRUN) {\n return bytes.length - offset - 1;\n }\n // Nothing to skip\n return 0;\n}\nfunction replaceFunc(reason, offset, bytes, output, badCodepoint) {\n // Overlong representations are otherwise \"valid\" code points; just non-deistingtished\n if (reason === Utf8ErrorReason.OVERLONG) {\n output.push(badCodepoint);\n return 0;\n }\n // Put the replacement character into the output\n output.push(0xfffd);\n // Otherwise, process as if ignoring errors\n return ignoreFunc(reason, offset, bytes, output, badCodepoint);\n}\n// Common error handing strategies\nexport const Utf8ErrorFuncs = Object.freeze({\n error: errorFunc,\n ignore: ignoreFunc,\n replace: replaceFunc\n});\n// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499\nfunction getUtf8CodePoints(bytes, onError) {\n if (onError == null) {\n onError = Utf8ErrorFuncs.error;\n }\n bytes = arrayify(bytes);\n const result = [];\n let i = 0;\n // Invalid bytes are ignored\n while (i < bytes.length) {\n const c = bytes[i++];\n // 0xxx xxxx\n if (c >> 7 === 0) {\n result.push(c);\n continue;\n }\n // Multibyte; how many bytes left for this character?\n let extraLength = null;\n let overlongMask = null;\n // 110x xxxx 10xx xxxx\n if ((c & 0xe0) === 0xc0) {\n extraLength = 1;\n overlongMask = 0x7f;\n // 1110 xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf0) === 0xe0) {\n extraLength = 2;\n overlongMask = 0x7ff;\n // 1111 0xxx 10xx xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf8) === 0xf0) {\n extraLength = 3;\n overlongMask = 0xffff;\n }\n else {\n if ((c & 0xc0) === 0x80) {\n i += onError(Utf8ErrorReason.UNEXPECTED_CONTINUE, i - 1, bytes, result);\n }\n else {\n i += onError(Utf8ErrorReason.BAD_PREFIX, i - 1, bytes, result);\n }\n continue;\n }\n // Do we have enough bytes in our data?\n if (i - 1 + extraLength >= bytes.length) {\n i += onError(Utf8ErrorReason.OVERRUN, i - 1, bytes, result);\n continue;\n }\n // Remove the length prefix from the char\n let res = c & ((1 << (8 - extraLength - 1)) - 1);\n for (let j = 0; j < extraLength; j++) {\n let nextChar = bytes[i];\n // Invalid continuation byte\n if ((nextChar & 0xc0) != 0x80) {\n i += onError(Utf8ErrorReason.MISSING_CONTINUE, i, bytes, result);\n res = null;\n break;\n }\n ;\n res = (res << 6) | (nextChar & 0x3f);\n i++;\n }\n // See above loop for invalid continuation byte\n if (res === null) {\n continue;\n }\n // Maximum code point\n if (res > 0x10ffff) {\n i += onError(Utf8ErrorReason.OUT_OF_RANGE, i - 1 - extraLength, bytes, result, res);\n continue;\n }\n // Reserved for UTF-16 surrogate halves\n if (res >= 0xd800 && res <= 0xdfff) {\n i += onError(Utf8ErrorReason.UTF16_SURROGATE, i - 1 - extraLength, bytes, result, res);\n continue;\n }\n // Check for overlong sequences (more bytes than needed)\n if (res <= overlongMask) {\n i += onError(Utf8ErrorReason.OVERLONG, i - 1 - extraLength, bytes, result, res);\n continue;\n }\n result.push(res);\n }\n return result;\n}\n// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array\nexport function toUtf8Bytes(str, form = UnicodeNormalizationForm.current) {\n if (form != UnicodeNormalizationForm.current) {\n logger.checkNormalize();\n str = str.normalize(form);\n }\n let result = [];\n for (let i = 0; i < str.length; i++) {\n const c = str.charCodeAt(i);\n if (c < 0x80) {\n result.push(c);\n }\n else if (c < 0x800) {\n result.push((c >> 6) | 0xc0);\n result.push((c & 0x3f) | 0x80);\n }\n else if ((c & 0xfc00) == 0xd800) {\n i++;\n const c2 = str.charCodeAt(i);\n if (i >= str.length || (c2 & 0xfc00) !== 0xdc00) {\n throw new Error(\"invalid utf-8 string\");\n }\n // Surrogate Pair\n const pair = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff);\n result.push((pair >> 18) | 0xf0);\n result.push(((pair >> 12) & 0x3f) | 0x80);\n result.push(((pair >> 6) & 0x3f) | 0x80);\n result.push((pair & 0x3f) | 0x80);\n }\n else {\n result.push((c >> 12) | 0xe0);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n }\n return arrayify(result);\n}\n;\nfunction escapeChar(value) {\n const hex = (\"0000\" + value.toString(16));\n return \"\\\\u\" + hex.substring(hex.length - 4);\n}\nexport function _toEscapedUtf8String(bytes, onError) {\n return '\"' + getUtf8CodePoints(bytes, onError).map((codePoint) => {\n if (codePoint < 256) {\n switch (codePoint) {\n case 8: return \"\\\\b\";\n case 9: return \"\\\\t\";\n case 10: return \"\\\\n\";\n case 13: return \"\\\\r\";\n case 34: return \"\\\\\\\"\";\n case 92: return \"\\\\\\\\\";\n }\n if (codePoint >= 32 && codePoint < 127) {\n return String.fromCharCode(codePoint);\n }\n }\n if (codePoint <= 0xffff) {\n return escapeChar(codePoint);\n }\n codePoint -= 0x10000;\n return escapeChar(((codePoint >> 10) & 0x3ff) + 0xd800) + escapeChar((codePoint & 0x3ff) + 0xdc00);\n }).join(\"\") + '\"';\n}\nexport function _toUtf8String(codePoints) {\n return codePoints.map((codePoint) => {\n if (codePoint <= 0xffff) {\n return String.fromCharCode(codePoint);\n }\n codePoint -= 0x10000;\n return String.fromCharCode((((codePoint >> 10) & 0x3ff) + 0xd800), ((codePoint & 0x3ff) + 0xdc00));\n }).join(\"\");\n}\nexport function toUtf8String(bytes, onError) {\n return _toUtf8String(getUtf8CodePoints(bytes, onError));\n}\nexport function toUtf8CodePoints(str, form = UnicodeNormalizationForm.current) {\n return getUtf8CodePoints(toUtf8Bytes(str, form));\n}\n//# sourceMappingURL=utf8.js.map","import { keccak256 } from \"@ethersproject/keccak256\";\nimport { toUtf8Bytes } from \"@ethersproject/strings\";\nexport function id(text) {\n return keccak256(toUtf8Bytes(text));\n}\n//# sourceMappingURL=id.js.map","export const version = \"hash/5.7.0\";\n//# sourceMappingURL=_version.js.map","import { concat } from \"@ethersproject/bytes\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { toUtf8Bytes } from \"@ethersproject/strings\";\nexport const messagePrefix = \"\\x19Ethereum Signed Message:\\n\";\nexport function hashMessage(message) {\n if (typeof (message) === \"string\") {\n message = toUtf8Bytes(message);\n }\n return keccak256(concat([\n toUtf8Bytes(messagePrefix),\n toUtf8Bytes(String(message.length)),\n message\n ]));\n}\n//# sourceMappingURL=message.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getAddress } from \"@ethersproject/address\";\nimport { BigNumber } from \"@ethersproject/bignumber\";\nimport { arrayify, hexConcat, hexlify, hexZeroPad, isHexString } from \"@ethersproject/bytes\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { deepCopy, defineReadOnly, shallowCopy } from \"@ethersproject/properties\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nimport { id } from \"./id\";\nconst padding = new Uint8Array(32);\npadding.fill(0);\nconst NegativeOne = BigNumber.from(-1);\nconst Zero = BigNumber.from(0);\nconst One = BigNumber.from(1);\nconst MaxUint256 = BigNumber.from(\"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\");\nfunction hexPadRight(value) {\n const bytes = arrayify(value);\n const padOffset = bytes.length % 32;\n if (padOffset) {\n return hexConcat([bytes, padding.slice(padOffset)]);\n }\n return hexlify(bytes);\n}\nconst hexTrue = hexZeroPad(One.toHexString(), 32);\nconst hexFalse = hexZeroPad(Zero.toHexString(), 32);\nconst domainFieldTypes = {\n name: \"string\",\n version: \"string\",\n chainId: \"uint256\",\n verifyingContract: \"address\",\n salt: \"bytes32\"\n};\nconst domainFieldNames = [\n \"name\", \"version\", \"chainId\", \"verifyingContract\", \"salt\"\n];\nfunction checkString(key) {\n return function (value) {\n if (typeof (value) !== \"string\") {\n logger.throwArgumentError(`invalid domain value for ${JSON.stringify(key)}`, `domain.${key}`, value);\n }\n return value;\n };\n}\nconst domainChecks = {\n name: checkString(\"name\"),\n version: checkString(\"version\"),\n chainId: function (value) {\n try {\n return BigNumber.from(value).toString();\n }\n catch (error) { }\n return logger.throwArgumentError(`invalid domain value for \"chainId\"`, \"domain.chainId\", value);\n },\n verifyingContract: function (value) {\n try {\n return getAddress(value).toLowerCase();\n }\n catch (error) { }\n return logger.throwArgumentError(`invalid domain value \"verifyingContract\"`, \"domain.verifyingContract\", value);\n },\n salt: function (value) {\n try {\n const bytes = arrayify(value);\n if (bytes.length !== 32) {\n throw new Error(\"bad length\");\n }\n return hexlify(bytes);\n }\n catch (error) { }\n return logger.throwArgumentError(`invalid domain value \"salt\"`, \"domain.salt\", value);\n }\n};\nfunction getBaseEncoder(type) {\n // intXX and uintXX\n {\n const match = type.match(/^(u?)int(\\d*)$/);\n if (match) {\n const signed = (match[1] === \"\");\n const width = parseInt(match[2] || \"256\");\n if (width % 8 !== 0 || width > 256 || (match[2] && match[2] !== String(width))) {\n logger.throwArgumentError(\"invalid numeric width\", \"type\", type);\n }\n const boundsUpper = MaxUint256.mask(signed ? (width - 1) : width);\n const boundsLower = signed ? boundsUpper.add(One).mul(NegativeOne) : Zero;\n return function (value) {\n const v = BigNumber.from(value);\n if (v.lt(boundsLower) || v.gt(boundsUpper)) {\n logger.throwArgumentError(`value out-of-bounds for ${type}`, \"value\", value);\n }\n return hexZeroPad(v.toTwos(256).toHexString(), 32);\n };\n }\n }\n // bytesXX\n {\n const match = type.match(/^bytes(\\d+)$/);\n if (match) {\n const width = parseInt(match[1]);\n if (width === 0 || width > 32 || match[1] !== String(width)) {\n logger.throwArgumentError(\"invalid bytes width\", \"type\", type);\n }\n return function (value) {\n const bytes = arrayify(value);\n if (bytes.length !== width) {\n logger.throwArgumentError(`invalid length for ${type}`, \"value\", value);\n }\n return hexPadRight(value);\n };\n }\n }\n switch (type) {\n case \"address\": return function (value) {\n return hexZeroPad(getAddress(value), 32);\n };\n case \"bool\": return function (value) {\n return ((!value) ? hexFalse : hexTrue);\n };\n case \"bytes\": return function (value) {\n return keccak256(value);\n };\n case \"string\": return function (value) {\n return id(value);\n };\n }\n return null;\n}\nfunction encodeType(name, fields) {\n return `${name}(${fields.map(({ name, type }) => (type + \" \" + name)).join(\",\")})`;\n}\nexport class TypedDataEncoder {\n constructor(types) {\n defineReadOnly(this, \"types\", Object.freeze(deepCopy(types)));\n defineReadOnly(this, \"_encoderCache\", {});\n defineReadOnly(this, \"_types\", {});\n // Link struct types to their direct child structs\n const links = {};\n // Link structs to structs which contain them as a child\n const parents = {};\n // Link all subtypes within a given struct\n const subtypes = {};\n Object.keys(types).forEach((type) => {\n links[type] = {};\n parents[type] = [];\n subtypes[type] = {};\n });\n for (const name in types) {\n const uniqueNames = {};\n types[name].forEach((field) => {\n // Check each field has a unique name\n if (uniqueNames[field.name]) {\n logger.throwArgumentError(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name)}`, \"types\", types);\n }\n uniqueNames[field.name] = true;\n // Get the base type (drop any array specifiers)\n const baseType = field.type.match(/^([^\\x5b]*)(\\x5b|$)/)[1];\n if (baseType === name) {\n logger.throwArgumentError(`circular type reference to ${JSON.stringify(baseType)}`, \"types\", types);\n }\n // Is this a base encoding type?\n const encoder = getBaseEncoder(baseType);\n if (encoder) {\n return;\n }\n if (!parents[baseType]) {\n logger.throwArgumentError(`unknown type ${JSON.stringify(baseType)}`, \"types\", types);\n }\n // Add linkage\n parents[baseType].push(name);\n links[name][baseType] = true;\n });\n }\n // Deduce the primary type\n const primaryTypes = Object.keys(parents).filter((n) => (parents[n].length === 0));\n if (primaryTypes.length === 0) {\n logger.throwArgumentError(\"missing primary type\", \"types\", types);\n }\n else if (primaryTypes.length > 1) {\n logger.throwArgumentError(`ambiguous primary types or unused types: ${primaryTypes.map((t) => (JSON.stringify(t))).join(\", \")}`, \"types\", types);\n }\n defineReadOnly(this, \"primaryType\", primaryTypes[0]);\n // Check for circular type references\n function checkCircular(type, found) {\n if (found[type]) {\n logger.throwArgumentError(`circular type reference to ${JSON.stringify(type)}`, \"types\", types);\n }\n found[type] = true;\n Object.keys(links[type]).forEach((child) => {\n if (!parents[child]) {\n return;\n }\n // Recursively check children\n checkCircular(child, found);\n // Mark all ancestors as having this decendant\n Object.keys(found).forEach((subtype) => {\n subtypes[subtype][child] = true;\n });\n });\n delete found[type];\n }\n checkCircular(this.primaryType, {});\n // Compute each fully describe type\n for (const name in subtypes) {\n const st = Object.keys(subtypes[name]);\n st.sort();\n this._types[name] = encodeType(name, types[name]) + st.map((t) => encodeType(t, types[t])).join(\"\");\n }\n }\n getEncoder(type) {\n let encoder = this._encoderCache[type];\n if (!encoder) {\n encoder = this._encoderCache[type] = this._getEncoder(type);\n }\n return encoder;\n }\n _getEncoder(type) {\n // Basic encoder type (address, bool, uint256, etc)\n {\n const encoder = getBaseEncoder(type);\n if (encoder) {\n return encoder;\n }\n }\n // Array\n const match = type.match(/^(.*)(\\x5b(\\d*)\\x5d)$/);\n if (match) {\n const subtype = match[1];\n const subEncoder = this.getEncoder(subtype);\n const length = parseInt(match[3]);\n return (value) => {\n if (length >= 0 && value.length !== length) {\n logger.throwArgumentError(\"array length mismatch; expected length ${ arrayLength }\", \"value\", value);\n }\n let result = value.map(subEncoder);\n if (this._types[subtype]) {\n result = result.map(keccak256);\n }\n return keccak256(hexConcat(result));\n };\n }\n // Struct\n const fields = this.types[type];\n if (fields) {\n const encodedType = id(this._types[type]);\n return (value) => {\n const values = fields.map(({ name, type }) => {\n const result = this.getEncoder(type)(value[name]);\n if (this._types[type]) {\n return keccak256(result);\n }\n return result;\n });\n values.unshift(encodedType);\n return hexConcat(values);\n };\n }\n return logger.throwArgumentError(`unknown type: ${type}`, \"type\", type);\n }\n encodeType(name) {\n const result = this._types[name];\n if (!result) {\n logger.throwArgumentError(`unknown type: ${JSON.stringify(name)}`, \"name\", name);\n }\n return result;\n }\n encodeData(type, value) {\n return this.getEncoder(type)(value);\n }\n hashStruct(name, value) {\n return keccak256(this.encodeData(name, value));\n }\n encode(value) {\n return this.encodeData(this.primaryType, value);\n }\n hash(value) {\n return this.hashStruct(this.primaryType, value);\n }\n _visit(type, value, callback) {\n // Basic encoder type (address, bool, uint256, etc)\n {\n const encoder = getBaseEncoder(type);\n if (encoder) {\n return callback(type, value);\n }\n }\n // Array\n const match = type.match(/^(.*)(\\x5b(\\d*)\\x5d)$/);\n if (match) {\n const subtype = match[1];\n const length = parseInt(match[3]);\n if (length >= 0 && value.length !== length) {\n logger.throwArgumentError(\"array length mismatch; expected length ${ arrayLength }\", \"value\", value);\n }\n return value.map((v) => this._visit(subtype, v, callback));\n }\n // Struct\n const fields = this.types[type];\n if (fields) {\n return fields.reduce((accum, { name, type }) => {\n accum[name] = this._visit(type, value[name], callback);\n return accum;\n }, {});\n }\n return logger.throwArgumentError(`unknown type: ${type}`, \"type\", type);\n }\n visit(value, callback) {\n return this._visit(this.primaryType, value, callback);\n }\n static from(types) {\n return new TypedDataEncoder(types);\n }\n static getPrimaryType(types) {\n return TypedDataEncoder.from(types).primaryType;\n }\n static hashStruct(name, types, value) {\n return TypedDataEncoder.from(types).hashStruct(name, value);\n }\n static hashDomain(domain) {\n const domainFields = [];\n for (const name in domain) {\n const type = domainFieldTypes[name];\n if (!type) {\n logger.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(name)}`, \"domain\", domain);\n }\n domainFields.push({ name, type });\n }\n domainFields.sort((a, b) => {\n return domainFieldNames.indexOf(a.name) - domainFieldNames.indexOf(b.name);\n });\n return TypedDataEncoder.hashStruct(\"EIP712Domain\", { EIP712Domain: domainFields }, domain);\n }\n static encode(domain, types, value) {\n return hexConcat([\n \"0x1901\",\n TypedDataEncoder.hashDomain(domain),\n TypedDataEncoder.from(types).hash(value)\n ]);\n }\n static hash(domain, types, value) {\n return keccak256(TypedDataEncoder.encode(domain, types, value));\n }\n // Replaces all address types with ENS names with their looked up address\n static resolveNames(domain, types, value, resolveName) {\n return __awaiter(this, void 0, void 0, function* () {\n // Make a copy to isolate it from the object passed in\n domain = shallowCopy(domain);\n // Look up all ENS names\n const ensCache = {};\n // Do we need to look up the domain's verifyingContract?\n if (domain.verifyingContract && !isHexString(domain.verifyingContract, 20)) {\n ensCache[domain.verifyingContract] = \"0x\";\n }\n // We are going to use the encoder to visit all the base values\n const encoder = TypedDataEncoder.from(types);\n // Get a list of all the addresses\n encoder.visit(value, (type, value) => {\n if (type === \"address\" && !isHexString(value, 20)) {\n ensCache[value] = \"0x\";\n }\n return value;\n });\n // Lookup each name\n for (const name in ensCache) {\n ensCache[name] = yield resolveName(name);\n }\n // Replace the domain verifyingContract if needed\n if (domain.verifyingContract && ensCache[domain.verifyingContract]) {\n domain.verifyingContract = ensCache[domain.verifyingContract];\n }\n // Replace all ENS names with their address\n value = encoder.visit(value, (type, value) => {\n if (type === \"address\" && ensCache[value]) {\n return ensCache[value];\n }\n return value;\n });\n return { domain, value };\n });\n }\n static getPayload(domain, types, value) {\n // Validate the domain fields\n TypedDataEncoder.hashDomain(domain);\n // Derive the EIP712Domain Struct reference type\n const domainValues = {};\n const domainTypes = [];\n domainFieldNames.forEach((name) => {\n const value = domain[name];\n if (value == null) {\n return;\n }\n domainValues[name] = domainChecks[name](value);\n domainTypes.push({ name, type: domainFieldTypes[name] });\n });\n const encoder = TypedDataEncoder.from(types);\n const typesWithDomain = shallowCopy(types);\n if (typesWithDomain.EIP712Domain) {\n logger.throwArgumentError(\"types must not contain EIP712Domain type\", \"types.EIP712Domain\", types);\n }\n else {\n typesWithDomain.EIP712Domain = domainTypes;\n }\n // Validate the data structures and types\n encoder.encode(value);\n return {\n types: typesWithDomain,\n domain: domainValues,\n primaryType: encoder.primaryType,\n message: encoder.visit(value, (type, value) => {\n // bytes\n if (type.match(/^bytes(\\d*)/)) {\n return hexlify(arrayify(value));\n }\n // uint or int\n if (type.match(/^u?int/)) {\n return BigNumber.from(value).toString();\n }\n switch (type) {\n case \"address\":\n return value.toLowerCase();\n case \"bool\":\n return !!value;\n case \"string\":\n if (typeof (value) !== \"string\") {\n logger.throwArgumentError(`invalid string`, \"value\", value);\n }\n return value;\n }\n return logger.throwArgumentError(\"unsupported type\", \"type\", type);\n })\n };\n }\n}\n//# sourceMappingURL=typed-data.js.map","export const version = \"abstract-provider/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { BigNumber } from \"@ethersproject/bignumber\";\nimport { isHexString } from \"@ethersproject/bytes\";\nimport { Description, defineReadOnly, resolveProperties } from \"@ethersproject/properties\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\n;\n;\n//export type CallTransactionable = {\n// call(transaction: TransactionRequest): Promise;\n//};\nexport class ForkEvent extends Description {\n static isForkEvent(value) {\n return !!(value && value._isForkEvent);\n }\n}\nexport class BlockForkEvent extends ForkEvent {\n constructor(blockHash, expiry) {\n if (!isHexString(blockHash, 32)) {\n logger.throwArgumentError(\"invalid blockHash\", \"blockHash\", blockHash);\n }\n super({\n _isForkEvent: true,\n _isBlockForkEvent: true,\n expiry: (expiry || 0),\n blockHash: blockHash\n });\n }\n}\nexport class TransactionForkEvent extends ForkEvent {\n constructor(hash, expiry) {\n if (!isHexString(hash, 32)) {\n logger.throwArgumentError(\"invalid transaction hash\", \"hash\", hash);\n }\n super({\n _isForkEvent: true,\n _isTransactionForkEvent: true,\n expiry: (expiry || 0),\n hash: hash\n });\n }\n}\nexport class TransactionOrderForkEvent extends ForkEvent {\n constructor(beforeHash, afterHash, expiry) {\n if (!isHexString(beforeHash, 32)) {\n logger.throwArgumentError(\"invalid transaction hash\", \"beforeHash\", beforeHash);\n }\n if (!isHexString(afterHash, 32)) {\n logger.throwArgumentError(\"invalid transaction hash\", \"afterHash\", afterHash);\n }\n super({\n _isForkEvent: true,\n _isTransactionOrderForkEvent: true,\n expiry: (expiry || 0),\n beforeHash: beforeHash,\n afterHash: afterHash\n });\n }\n}\n///////////////////////////////\n// Exported Abstracts\nexport class Provider {\n constructor() {\n logger.checkAbstract(new.target, Provider);\n defineReadOnly(this, \"_isProvider\", true);\n }\n getFeeData() {\n return __awaiter(this, void 0, void 0, function* () {\n const { block, gasPrice } = yield resolveProperties({\n block: this.getBlock(\"latest\"),\n gasPrice: this.getGasPrice().catch((error) => {\n // @TODO: Why is this now failing on Calaveras?\n //console.log(error);\n return null;\n })\n });\n let lastBaseFeePerGas = null, maxFeePerGas = null, maxPriorityFeePerGas = null;\n if (block && block.baseFeePerGas) {\n // We may want to compute this more accurately in the future,\n // using the formula \"check if the base fee is correct\".\n // See: https://eips.ethereum.org/EIPS/eip-1559\n lastBaseFeePerGas = block.baseFeePerGas;\n maxPriorityFeePerGas = BigNumber.from(\"1500000000\");\n maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);\n }\n return { lastBaseFeePerGas, maxFeePerGas, maxPriorityFeePerGas, gasPrice };\n });\n }\n // Alias for \"on\"\n addListener(eventName, listener) {\n return this.on(eventName, listener);\n }\n // Alias for \"off\"\n removeListener(eventName, listener) {\n return this.off(eventName, listener);\n }\n static isProvider(value) {\n return !!(value && value._isProvider);\n }\n}\n//# sourceMappingURL=index.js.map","export const version = \"abstract-signer/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { defineReadOnly, resolveProperties, shallowCopy } from \"@ethersproject/properties\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nconst allowedTransactionKeys = [\n \"accessList\", \"ccipReadEnabled\", \"chainId\", \"customData\", \"data\", \"from\", \"gasLimit\", \"gasPrice\", \"maxFeePerGas\", \"maxPriorityFeePerGas\", \"nonce\", \"to\", \"type\", \"value\"\n];\nconst forwardErrors = [\n Logger.errors.INSUFFICIENT_FUNDS,\n Logger.errors.NONCE_EXPIRED,\n Logger.errors.REPLACEMENT_UNDERPRICED,\n];\n;\n;\nexport class Signer {\n ///////////////////\n // Sub-classes MUST call super\n constructor() {\n logger.checkAbstract(new.target, Signer);\n defineReadOnly(this, \"_isSigner\", true);\n }\n ///////////////////\n // Sub-classes MAY override these\n getBalance(blockTag) {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"getBalance\");\n return yield this.provider.getBalance(this.getAddress(), blockTag);\n });\n }\n getTransactionCount(blockTag) {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"getTransactionCount\");\n return yield this.provider.getTransactionCount(this.getAddress(), blockTag);\n });\n }\n // Populates \"from\" if unspecified, and estimates the gas for the transaction\n estimateGas(transaction) {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"estimateGas\");\n const tx = yield resolveProperties(this.checkTransaction(transaction));\n return yield this.provider.estimateGas(tx);\n });\n }\n // Populates \"from\" if unspecified, and calls with the transaction\n call(transaction, blockTag) {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"call\");\n const tx = yield resolveProperties(this.checkTransaction(transaction));\n return yield this.provider.call(tx, blockTag);\n });\n }\n // Populates all fields in a transaction, signs it and sends it to the network\n sendTransaction(transaction) {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"sendTransaction\");\n const tx = yield this.populateTransaction(transaction);\n const signedTx = yield this.signTransaction(tx);\n return yield this.provider.sendTransaction(signedTx);\n });\n }\n getChainId() {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"getChainId\");\n const network = yield this.provider.getNetwork();\n return network.chainId;\n });\n }\n getGasPrice() {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"getGasPrice\");\n return yield this.provider.getGasPrice();\n });\n }\n getFeeData() {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"getFeeData\");\n return yield this.provider.getFeeData();\n });\n }\n resolveName(name) {\n return __awaiter(this, void 0, void 0, function* () {\n this._checkProvider(\"resolveName\");\n return yield this.provider.resolveName(name);\n });\n }\n // Checks a transaction does not contain invalid keys and if\n // no \"from\" is provided, populates it.\n // - does NOT require a provider\n // - adds \"from\" is not present\n // - returns a COPY (safe to mutate the result)\n // By default called from: (overriding these prevents it)\n // - call\n // - estimateGas\n // - populateTransaction (and therefor sendTransaction)\n checkTransaction(transaction) {\n for (const key in transaction) {\n if (allowedTransactionKeys.indexOf(key) === -1) {\n logger.throwArgumentError(\"invalid transaction key: \" + key, \"transaction\", transaction);\n }\n }\n const tx = shallowCopy(transaction);\n if (tx.from == null) {\n tx.from = this.getAddress();\n }\n else {\n // Make sure any provided address matches this signer\n tx.from = Promise.all([\n Promise.resolve(tx.from),\n this.getAddress()\n ]).then((result) => {\n if (result[0].toLowerCase() !== result[1].toLowerCase()) {\n logger.throwArgumentError(\"from address mismatch\", \"transaction\", transaction);\n }\n return result[0];\n });\n }\n return tx;\n }\n // Populates ALL keys for a transaction and checks that \"from\" matches\n // this Signer. Should be used by sendTransaction but NOT by signTransaction.\n // By default called from: (overriding these prevents it)\n // - sendTransaction\n //\n // Notes:\n // - We allow gasPrice for EIP-1559 as long as it matches maxFeePerGas\n populateTransaction(transaction) {\n return __awaiter(this, void 0, void 0, function* () {\n const tx = yield resolveProperties(this.checkTransaction(transaction));\n if (tx.to != null) {\n tx.to = Promise.resolve(tx.to).then((to) => __awaiter(this, void 0, void 0, function* () {\n if (to == null) {\n return null;\n }\n const address = yield this.resolveName(to);\n if (address == null) {\n logger.throwArgumentError(\"provided ENS name resolves to null\", \"tx.to\", to);\n }\n return address;\n }));\n // Prevent this error from causing an UnhandledPromiseException\n tx.to.catch((error) => { });\n }\n // Do not allow mixing pre-eip-1559 and eip-1559 properties\n const hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);\n if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {\n logger.throwArgumentError(\"eip-1559 transaction do not support gasPrice\", \"transaction\", transaction);\n }\n else if ((tx.type === 0 || tx.type === 1) && hasEip1559) {\n logger.throwArgumentError(\"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas\", \"transaction\", transaction);\n }\n if ((tx.type === 2 || tx.type == null) && (tx.maxFeePerGas != null && tx.maxPriorityFeePerGas != null)) {\n // Fully-formed EIP-1559 transaction (skip getFeeData)\n tx.type = 2;\n }\n else if (tx.type === 0 || tx.type === 1) {\n // Explicit Legacy or EIP-2930 transaction\n // Populate missing gasPrice\n if (tx.gasPrice == null) {\n tx.gasPrice = this.getGasPrice();\n }\n }\n else {\n // We need to get fee data to determine things\n const feeData = yield this.getFeeData();\n if (tx.type == null) {\n // We need to auto-detect the intended type of this transaction...\n if (feeData.maxFeePerGas != null && feeData.maxPriorityFeePerGas != null) {\n // The network supports EIP-1559!\n // Upgrade transaction from null to eip-1559\n tx.type = 2;\n if (tx.gasPrice != null) {\n // Using legacy gasPrice property on an eip-1559 network,\n // so use gasPrice as both fee properties\n const gasPrice = tx.gasPrice;\n delete tx.gasPrice;\n tx.maxFeePerGas = gasPrice;\n tx.maxPriorityFeePerGas = gasPrice;\n }\n else {\n // Populate missing fee data\n if (tx.maxFeePerGas == null) {\n tx.maxFeePerGas = feeData.maxFeePerGas;\n }\n if (tx.maxPriorityFeePerGas == null) {\n tx.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas;\n }\n }\n }\n else if (feeData.gasPrice != null) {\n // Network doesn't support EIP-1559...\n // ...but they are trying to use EIP-1559 properties\n if (hasEip1559) {\n logger.throwError(\"network does not support EIP-1559\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"populateTransaction\"\n });\n }\n // Populate missing fee data\n if (tx.gasPrice == null) {\n tx.gasPrice = feeData.gasPrice;\n }\n // Explicitly set untyped transaction to legacy\n tx.type = 0;\n }\n else {\n // getFeeData has failed us.\n logger.throwError(\"failed to get consistent fee data\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"signer.getFeeData\"\n });\n }\n }\n else if (tx.type === 2) {\n // Explicitly using EIP-1559\n // Populate missing fee data\n if (tx.maxFeePerGas == null) {\n tx.maxFeePerGas = feeData.maxFeePerGas;\n }\n if (tx.maxPriorityFeePerGas == null) {\n tx.maxPriorityFeePerGas = feeData.maxPriorityFeePerGas;\n }\n }\n }\n if (tx.nonce == null) {\n tx.nonce = this.getTransactionCount(\"pending\");\n }\n if (tx.gasLimit == null) {\n tx.gasLimit = this.estimateGas(tx).catch((error) => {\n if (forwardErrors.indexOf(error.code) >= 0) {\n throw error;\n }\n return logger.throwError(\"cannot estimate gas; transaction may fail or may require manual gas limit\", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {\n error: error,\n tx: tx\n });\n });\n }\n if (tx.chainId == null) {\n tx.chainId = this.getChainId();\n }\n else {\n tx.chainId = Promise.all([\n Promise.resolve(tx.chainId),\n this.getChainId()\n ]).then((results) => {\n if (results[1] !== 0 && results[0] !== results[1]) {\n logger.throwArgumentError(\"chainId address mismatch\", \"transaction\", transaction);\n }\n return results[0];\n });\n }\n return yield resolveProperties(tx);\n });\n }\n ///////////////////\n // Sub-classes SHOULD leave these alone\n _checkProvider(operation) {\n if (!this.provider) {\n logger.throwError(\"missing provider\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: (operation || \"_checkProvider\")\n });\n }\n }\n static isSigner(value) {\n return !!(value && value._isSigner);\n }\n}\nexport class VoidSigner extends Signer {\n constructor(address, provider) {\n super();\n defineReadOnly(this, \"address\", address);\n defineReadOnly(this, \"provider\", provider || null);\n }\n getAddress() {\n return Promise.resolve(this.address);\n }\n _fail(message, operation) {\n return Promise.resolve().then(() => {\n logger.throwError(message, Logger.errors.UNSUPPORTED_OPERATION, { operation: operation });\n });\n }\n signMessage(message) {\n return this._fail(\"VoidSigner cannot sign messages\", \"signMessage\");\n }\n signTransaction(transaction) {\n return this._fail(\"VoidSigner cannot sign transactions\", \"signTransaction\");\n }\n _signTypedData(domain, types, value) {\n return this._fail(\"VoidSigner cannot sign typed data\", \"signTypedData\");\n }\n connect(provider) {\n return new VoidSigner(this.address, provider);\n }\n}\n//# sourceMappingURL=index.js.map","module.exports = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\n\nvar sha1_K = [\n 0x5A827999, 0x6ED9EBA1,\n 0x8F1BBCDC, 0xCA62C1D6\n];\n\nfunction SHA1() {\n if (!(this instanceof SHA1))\n return new SHA1();\n\n BlockHash.call(this);\n this.h = [\n 0x67452301, 0xefcdab89, 0x98badcfe,\n 0x10325476, 0xc3d2e1f0 ];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\n\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n\n for(; i < W.length; i++)\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\nvar assert = require('minimalistic-assert');\n\nvar sum32 = utils.sum32;\nvar sum32_4 = utils.sum32_4;\nvar sum32_5 = utils.sum32_5;\nvar ch32 = shaCommon.ch32;\nvar maj32 = shaCommon.maj32;\nvar s0_256 = shaCommon.s0_256;\nvar s1_256 = shaCommon.s1_256;\nvar g0_256 = shaCommon.g0_256;\nvar g1_256 = shaCommon.g1_256;\n\nvar BlockHash = common.BlockHash;\n\nvar sha256_K = [\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,\n 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,\n 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,\n 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,\n 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,\n 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,\n 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n];\n\nfunction SHA256() {\n if (!(this instanceof SHA256))\n return new SHA256();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,\n 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n ];\n this.k = sha256_K;\n this.W = new Array(64);\n}\nutils.inherits(SHA256, BlockHash);\nmodule.exports = SHA256;\n\nSHA256.blockSize = 512;\nSHA256.outSize = 256;\nSHA256.hmacStrength = 192;\nSHA256.padLength = 64;\n\nSHA256.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i++)\n W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n var f = this.h[5];\n var g = this.h[6];\n var h = this.h[7];\n\n assert(this.k.length === W.length);\n for (i = 0; i < W.length; i++) {\n var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);\n var T2 = sum32(s0_256(a), maj32(a, b, c));\n h = g;\n g = f;\n f = e;\n e = sum32(d, T1);\n d = c;\n c = b;\n b = a;\n a = sum32(T1, T2);\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n this.h[5] = sum32(this.h[5], f);\n this.h[6] = sum32(this.h[6], g);\n this.h[7] = sum32(this.h[7], h);\n};\n\nSHA256.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar SHA256 = require('./256');\n\nfunction SHA224() {\n if (!(this instanceof SHA224))\n return new SHA224();\n\n SHA256.call(this);\n this.h = [\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\n 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ];\n}\nutils.inherits(SHA224, SHA256);\nmodule.exports = SHA224;\n\nSHA224.blockSize = 512;\nSHA224.outSize = 224;\nSHA224.hmacStrength = 192;\nSHA224.padLength = 64;\n\nSHA224.prototype._digest = function digest(enc) {\n // Just truncate output\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 7), 'big');\n else\n return utils.split32(this.h.slice(0, 7), 'big');\n};\n\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar assert = require('minimalistic-assert');\n\nvar rotr64_hi = utils.rotr64_hi;\nvar rotr64_lo = utils.rotr64_lo;\nvar shr64_hi = utils.shr64_hi;\nvar shr64_lo = utils.shr64_lo;\nvar sum64 = utils.sum64;\nvar sum64_hi = utils.sum64_hi;\nvar sum64_lo = utils.sum64_lo;\nvar sum64_4_hi = utils.sum64_4_hi;\nvar sum64_4_lo = utils.sum64_4_lo;\nvar sum64_5_hi = utils.sum64_5_hi;\nvar sum64_5_lo = utils.sum64_5_lo;\n\nvar BlockHash = common.BlockHash;\n\nvar sha512_K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n];\n\nfunction SHA512() {\n if (!(this instanceof SHA512))\n return new SHA512();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xf3bcc908,\n 0xbb67ae85, 0x84caa73b,\n 0x3c6ef372, 0xfe94f82b,\n 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1,\n 0x9b05688c, 0x2b3e6c1f,\n 0x1f83d9ab, 0xfb41bd6b,\n 0x5be0cd19, 0x137e2179 ];\n this.k = sha512_K;\n this.W = new Array(160);\n}\nutils.inherits(SHA512, BlockHash);\nmodule.exports = SHA512;\n\nSHA512.blockSize = 1024;\nSHA512.outSize = 512;\nSHA512.hmacStrength = 192;\nSHA512.padLength = 128;\n\nSHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {\n var W = this.W;\n\n // 32 x 32bit words\n for (var i = 0; i < 32; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i += 2) {\n var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2\n var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);\n var c1_hi = W[i - 14]; // i - 7\n var c1_lo = W[i - 13];\n var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15\n var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);\n var c3_hi = W[i - 32]; // i - 16\n var c3_lo = W[i - 31];\n\n W[i] = sum64_4_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n W[i + 1] = sum64_4_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n }\n};\n\nSHA512.prototype._update = function _update(msg, start) {\n this._prepareBlock(msg, start);\n\n var W = this.W;\n\n var ah = this.h[0];\n var al = this.h[1];\n var bh = this.h[2];\n var bl = this.h[3];\n var ch = this.h[4];\n var cl = this.h[5];\n var dh = this.h[6];\n var dl = this.h[7];\n var eh = this.h[8];\n var el = this.h[9];\n var fh = this.h[10];\n var fl = this.h[11];\n var gh = this.h[12];\n var gl = this.h[13];\n var hh = this.h[14];\n var hl = this.h[15];\n\n assert(this.k.length === W.length);\n for (var i = 0; i < W.length; i += 2) {\n var c0_hi = hh;\n var c0_lo = hl;\n var c1_hi = s1_512_hi(eh, el);\n var c1_lo = s1_512_lo(eh, el);\n var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);\n var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);\n var c3_hi = this.k[i];\n var c3_lo = this.k[i + 1];\n var c4_hi = W[i];\n var c4_lo = W[i + 1];\n\n var T1_hi = sum64_5_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n var T1_lo = sum64_5_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n\n c0_hi = s0_512_hi(ah, al);\n c0_lo = s0_512_lo(ah, al);\n c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);\n c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);\n\n var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);\n var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);\n\n hh = gh;\n hl = gl;\n\n gh = fh;\n gl = fl;\n\n fh = eh;\n fl = el;\n\n eh = sum64_hi(dh, dl, T1_hi, T1_lo);\n el = sum64_lo(dl, dl, T1_hi, T1_lo);\n\n dh = ch;\n dl = cl;\n\n ch = bh;\n cl = bl;\n\n bh = ah;\n bl = al;\n\n ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);\n al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);\n }\n\n sum64(this.h, 0, ah, al);\n sum64(this.h, 2, bh, bl);\n sum64(this.h, 4, ch, cl);\n sum64(this.h, 6, dh, dl);\n sum64(this.h, 8, eh, el);\n sum64(this.h, 10, fh, fl);\n sum64(this.h, 12, gh, gl);\n sum64(this.h, 14, hh, hl);\n};\n\nSHA512.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n\nfunction ch64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ ((~xh) & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction ch64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ ((~xl) & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 28);\n var c1_hi = rotr64_hi(xl, xh, 2); // 34\n var c2_hi = rotr64_hi(xl, xh, 7); // 39\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 28);\n var c1_lo = rotr64_lo(xl, xh, 2); // 34\n var c2_lo = rotr64_lo(xl, xh, 7); // 39\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 14);\n var c1_hi = rotr64_hi(xh, xl, 18);\n var c2_hi = rotr64_hi(xl, xh, 9); // 41\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 14);\n var c1_lo = rotr64_lo(xh, xl, 18);\n var c2_lo = rotr64_lo(xl, xh, 9); // 41\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 1);\n var c1_hi = rotr64_hi(xh, xl, 8);\n var c2_hi = shr64_hi(xh, xl, 7);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 1);\n var c1_lo = rotr64_lo(xh, xl, 8);\n var c2_lo = shr64_lo(xh, xl, 7);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 19);\n var c1_hi = rotr64_hi(xl, xh, 29); // 61\n var c2_hi = shr64_hi(xh, xl, 6);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 19);\n var c1_lo = rotr64_lo(xl, xh, 29); // 61\n var c2_lo = shr64_lo(xh, xl, 6);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n","'use strict';\n\nvar utils = require('../utils');\n\nvar SHA512 = require('./512');\n\nfunction SHA384() {\n if (!(this instanceof SHA384))\n return new SHA384();\n\n SHA512.call(this);\n this.h = [\n 0xcbbb9d5d, 0xc1059ed8,\n 0x629a292a, 0x367cd507,\n 0x9159015a, 0x3070dd17,\n 0x152fecd8, 0xf70e5939,\n 0x67332667, 0xffc00b31,\n 0x8eb44a87, 0x68581511,\n 0xdb0c2e0d, 0x64f98fa7,\n 0x47b5481d, 0xbefa4fa4 ];\n}\nutils.inherits(SHA384, SHA512);\nmodule.exports = SHA384;\n\nSHA384.blockSize = 1024;\nSHA384.outSize = 384;\nSHA384.hmacStrength = 192;\nSHA384.padLength = 128;\n\nSHA384.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 12), 'big');\n else\n return utils.split32(this.h.slice(0, 12), 'big');\n};\n","'use strict';\n\nexports.sha1 = require('./sha/1');\nexports.sha224 = require('./sha/224');\nexports.sha256 = require('./sha/256');\nexports.sha384 = require('./sha/384');\nexports.sha512 = require('./sha/512');\n","'use strict';\n\nvar utils = require('./utils');\nvar common = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_3 = utils.sum32_3;\nvar sum32_4 = utils.sum32_4;\nvar BlockHash = common.BlockHash;\n\nfunction RIPEMD160() {\n if (!(this instanceof RIPEMD160))\n return new RIPEMD160();\n\n BlockHash.call(this);\n\n this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ];\n this.endian = 'little';\n}\nutils.inherits(RIPEMD160, BlockHash);\nexports.ripemd160 = RIPEMD160;\n\nRIPEMD160.blockSize = 512;\nRIPEMD160.outSize = 160;\nRIPEMD160.hmacStrength = 192;\nRIPEMD160.padLength = 64;\n\nRIPEMD160.prototype._update = function update(msg, start) {\n var A = this.h[0];\n var B = this.h[1];\n var C = this.h[2];\n var D = this.h[3];\n var E = this.h[4];\n var Ah = A;\n var Bh = B;\n var Ch = C;\n var Dh = D;\n var Eh = E;\n for (var j = 0; j < 80; j++) {\n var T = sum32(\n rotl32(\n sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)),\n s[j]),\n E);\n A = E;\n E = D;\n D = rotl32(C, 10);\n C = B;\n B = T;\n T = sum32(\n rotl32(\n sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)),\n sh[j]),\n Eh);\n Ah = Eh;\n Eh = Dh;\n Dh = rotl32(Ch, 10);\n Ch = Bh;\n Bh = T;\n }\n T = sum32_3(this.h[1], C, Dh);\n this.h[1] = sum32_3(this.h[2], D, Eh);\n this.h[2] = sum32_3(this.h[3], E, Ah);\n this.h[3] = sum32_3(this.h[4], A, Bh);\n this.h[4] = sum32_3(this.h[0], B, Ch);\n this.h[0] = T;\n};\n\nRIPEMD160.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'little');\n else\n return utils.split32(this.h, 'little');\n};\n\nfunction f(j, x, y, z) {\n if (j <= 15)\n return x ^ y ^ z;\n else if (j <= 31)\n return (x & y) | ((~x) & z);\n else if (j <= 47)\n return (x | (~y)) ^ z;\n else if (j <= 63)\n return (x & z) | (y & (~z));\n else\n return x ^ (y | (~z));\n}\n\nfunction K(j) {\n if (j <= 15)\n return 0x00000000;\n else if (j <= 31)\n return 0x5a827999;\n else if (j <= 47)\n return 0x6ed9eba1;\n else if (j <= 63)\n return 0x8f1bbcdc;\n else\n return 0xa953fd4e;\n}\n\nfunction Kh(j) {\n if (j <= 15)\n return 0x50a28be6;\n else if (j <= 31)\n return 0x5c4dd124;\n else if (j <= 47)\n return 0x6d703ef3;\n else if (j <= 63)\n return 0x7a6d76e9;\n else\n return 0x00000000;\n}\n\nvar r = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13\n];\n\nvar rh = [\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11\n];\n\nvar s = [\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6\n];\n\nvar sh = [\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11\n];\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction Hmac(hash, key, enc) {\n if (!(this instanceof Hmac))\n return new Hmac(hash, key, enc);\n this.Hash = hash;\n this.blockSize = hash.blockSize / 8;\n this.outSize = hash.outSize / 8;\n this.inner = null;\n this.outer = null;\n\n this._init(utils.toArray(key, enc));\n}\nmodule.exports = Hmac;\n\nHmac.prototype._init = function init(key) {\n // Shorten key, if needed\n if (key.length > this.blockSize)\n key = new this.Hash().update(key).digest();\n assert(key.length <= this.blockSize);\n\n // Add padding to key\n for (var i = key.length; i < this.blockSize; i++)\n key.push(0);\n\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x36;\n this.inner = new this.Hash().update(key);\n\n // 0x36 ^ 0x5c = 0x6a\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x6a;\n this.outer = new this.Hash().update(key);\n};\n\nHmac.prototype.update = function update(msg, enc) {\n this.inner.update(msg, enc);\n return this;\n};\n\nHmac.prototype.digest = function digest(enc) {\n this.outer.update(this.inner.digest());\n return this.outer.digest(enc);\n};\n","var hash = exports;\n\nhash.utils = require('./hash/utils');\nhash.common = require('./hash/common');\nhash.sha = require('./hash/sha');\nhash.ripemd = require('./hash/ripemd');\nhash.hmac = require('./hash/hmac');\n\n// Proxy hash functions to the main object\nhash.sha1 = hash.sha.sha1;\nhash.sha256 = hash.sha.sha256;\nhash.sha224 = hash.sha.sha224;\nhash.sha384 = hash.sha.sha384;\nhash.sha512 = hash.sha.sha512;\nhash.ripemd160 = hash.ripemd.ripemd160;\n","import BN from 'bn.js';\nimport hash from 'hash.js';\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nfunction createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire(path, (base === undefined || base === null) ? module.path : base);\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nfunction getDefaultExportFromNamespaceIfPresent (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;\n}\n\nfunction getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nfunction getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n\nfunction commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');\n}\n\nvar minimalisticAssert = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n\nvar utils_1 = createCommonjsModule(function (module, exports) {\n'use strict';\n\nvar utils = exports;\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg !== 'string') {\n for (var i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n return res;\n }\n if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (var i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n } else {\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n var hi = c >> 8;\n var lo = c & 0xff;\n if (hi)\n res.push(hi, lo);\n else\n res.push(lo);\n }\n }\n return res;\n}\nutils.toArray = toArray;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nutils.zero2 = zero2;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nutils.toHex = toHex;\n\nutils.encode = function encode(arr, enc) {\n if (enc === 'hex')\n return toHex(arr);\n else\n return arr;\n};\n});\n\nvar utils_1$1 = createCommonjsModule(function (module, exports) {\n'use strict';\n\nvar utils = exports;\n\n\n\n\nutils.assert = minimalisticAssert;\nutils.toArray = utils_1.toArray;\nutils.zero2 = utils_1.zero2;\nutils.toHex = utils_1.toHex;\nutils.encode = utils_1.encode;\n\n// Represent num in a w-NAF form\nfunction getNAF(num, w, bits) {\n var naf = new Array(Math.max(num.bitLength(), bits) + 1);\n naf.fill(0);\n\n var ws = 1 << (w + 1);\n var k = num.clone();\n\n for (var i = 0; i < naf.length; i++) {\n var z;\n var mod = k.andln(ws - 1);\n if (k.isOdd()) {\n if (mod > (ws >> 1) - 1)\n z = (ws >> 1) - mod;\n else\n z = mod;\n k.isubn(z);\n } else {\n z = 0;\n }\n\n naf[i] = z;\n k.iushrn(1);\n }\n\n return naf;\n}\nutils.getNAF = getNAF;\n\n// Represent k1, k2 in a Joint Sparse Form\nfunction getJSF(k1, k2) {\n var jsf = [\n [],\n [],\n ];\n\n k1 = k1.clone();\n k2 = k2.clone();\n var d1 = 0;\n var d2 = 0;\n var m8;\n while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {\n // First phase\n var m14 = (k1.andln(3) + d1) & 3;\n var m24 = (k2.andln(3) + d2) & 3;\n if (m14 === 3)\n m14 = -1;\n if (m24 === 3)\n m24 = -1;\n var u1;\n if ((m14 & 1) === 0) {\n u1 = 0;\n } else {\n m8 = (k1.andln(7) + d1) & 7;\n if ((m8 === 3 || m8 === 5) && m24 === 2)\n u1 = -m14;\n else\n u1 = m14;\n }\n jsf[0].push(u1);\n\n var u2;\n if ((m24 & 1) === 0) {\n u2 = 0;\n } else {\n m8 = (k2.andln(7) + d2) & 7;\n if ((m8 === 3 || m8 === 5) && m14 === 2)\n u2 = -m24;\n else\n u2 = m24;\n }\n jsf[1].push(u2);\n\n // Second phase\n if (2 * d1 === u1 + 1)\n d1 = 1 - d1;\n if (2 * d2 === u2 + 1)\n d2 = 1 - d2;\n k1.iushrn(1);\n k2.iushrn(1);\n }\n\n return jsf;\n}\nutils.getJSF = getJSF;\n\nfunction cachedProperty(obj, name, computer) {\n var key = '_' + name;\n obj.prototype[name] = function cachedProperty() {\n return this[key] !== undefined ? this[key] :\n this[key] = computer.call(this);\n };\n}\nutils.cachedProperty = cachedProperty;\n\nfunction parseBytes(bytes) {\n return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :\n bytes;\n}\nutils.parseBytes = parseBytes;\n\nfunction intFromLE(bytes) {\n return new BN(bytes, 'hex', 'le');\n}\nutils.intFromLE = intFromLE;\n});\n\n'use strict';\n\n\n\nvar getNAF = utils_1$1.getNAF;\nvar getJSF = utils_1$1.getJSF;\nvar assert$1 = utils_1$1.assert;\n\nfunction BaseCurve(type, conf) {\n this.type = type;\n this.p = new BN(conf.p, 16);\n\n // Use Montgomery, when there is no fast reduction for the prime\n this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);\n\n // Useful for many curves\n this.zero = new BN(0).toRed(this.red);\n this.one = new BN(1).toRed(this.red);\n this.two = new BN(2).toRed(this.red);\n\n // Curve configuration, optional\n this.n = conf.n && new BN(conf.n, 16);\n this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);\n\n // Temporary arrays\n this._wnafT1 = new Array(4);\n this._wnafT2 = new Array(4);\n this._wnafT3 = new Array(4);\n this._wnafT4 = new Array(4);\n\n this._bitLength = this.n ? this.n.bitLength() : 0;\n\n // Generalized Greg Maxwell's trick\n var adjustCount = this.n && this.p.div(this.n);\n if (!adjustCount || adjustCount.cmpn(100) > 0) {\n this.redN = null;\n } else {\n this._maxwellTrick = true;\n this.redN = this.n.toRed(this.red);\n }\n}\nvar base = BaseCurve;\n\nBaseCurve.prototype.point = function point() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype.validate = function validate() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {\n assert$1(p.precomputed);\n var doubles = p._getDoubles();\n\n var naf = getNAF(k, 1, this._bitLength);\n var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);\n I /= 3;\n\n // Translate into more windowed form\n var repr = [];\n var j;\n var nafW;\n for (j = 0; j < naf.length; j += doubles.step) {\n nafW = 0;\n for (var l = j + doubles.step - 1; l >= j; l--)\n nafW = (nafW << 1) + naf[l];\n repr.push(nafW);\n }\n\n var a = this.jpoint(null, null, null);\n var b = this.jpoint(null, null, null);\n for (var i = I; i > 0; i--) {\n for (j = 0; j < repr.length; j++) {\n nafW = repr[j];\n if (nafW === i)\n b = b.mixedAdd(doubles.points[j]);\n else if (nafW === -i)\n b = b.mixedAdd(doubles.points[j].neg());\n }\n a = a.add(b);\n }\n return a.toP();\n};\n\nBaseCurve.prototype._wnafMul = function _wnafMul(p, k) {\n var w = 4;\n\n // Precompute window\n var nafPoints = p._getNAFPoints(w);\n w = nafPoints.wnd;\n var wnd = nafPoints.points;\n\n // Get NAF form\n var naf = getNAF(k, w, this._bitLength);\n\n // Add `this`*(N+1) for every w-NAF index\n var acc = this.jpoint(null, null, null);\n for (var i = naf.length - 1; i >= 0; i--) {\n // Count zeroes\n for (var l = 0; i >= 0 && naf[i] === 0; i--)\n l++;\n if (i >= 0)\n l++;\n acc = acc.dblp(l);\n\n if (i < 0)\n break;\n var z = naf[i];\n assert$1(z !== 0);\n if (p.type === 'affine') {\n // J +- P\n if (z > 0)\n acc = acc.mixedAdd(wnd[(z - 1) >> 1]);\n else\n acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());\n } else {\n // J +- J\n if (z > 0)\n acc = acc.add(wnd[(z - 1) >> 1]);\n else\n acc = acc.add(wnd[(-z - 1) >> 1].neg());\n }\n }\n return p.type === 'affine' ? acc.toP() : acc;\n};\n\nBaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,\n points,\n coeffs,\n len,\n jacobianResult) {\n var wndWidth = this._wnafT1;\n var wnd = this._wnafT2;\n var naf = this._wnafT3;\n\n // Fill all arrays\n var max = 0;\n var i;\n var j;\n var p;\n for (i = 0; i < len; i++) {\n p = points[i];\n var nafPoints = p._getNAFPoints(defW);\n wndWidth[i] = nafPoints.wnd;\n wnd[i] = nafPoints.points;\n }\n\n // Comb small window NAFs\n for (i = len - 1; i >= 1; i -= 2) {\n var a = i - 1;\n var b = i;\n if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {\n naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);\n naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);\n max = Math.max(naf[a].length, max);\n max = Math.max(naf[b].length, max);\n continue;\n }\n\n var comb = [\n points[a], /* 1 */\n null, /* 3 */\n null, /* 5 */\n points[b], /* 7 */\n ];\n\n // Try to avoid Projective points, if possible\n if (points[a].y.cmp(points[b].y) === 0) {\n comb[1] = points[a].add(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].add(points[b].neg());\n } else {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n }\n\n var index = [\n -3, /* -1 -1 */\n -1, /* -1 0 */\n -5, /* -1 1 */\n -7, /* 0 -1 */\n 0, /* 0 0 */\n 7, /* 0 1 */\n 5, /* 1 -1 */\n 1, /* 1 0 */\n 3, /* 1 1 */\n ];\n\n var jsf = getJSF(coeffs[a], coeffs[b]);\n max = Math.max(jsf[0].length, max);\n naf[a] = new Array(max);\n naf[b] = new Array(max);\n for (j = 0; j < max; j++) {\n var ja = jsf[0][j] | 0;\n var jb = jsf[1][j] | 0;\n\n naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];\n naf[b][j] = 0;\n wnd[a] = comb;\n }\n }\n\n var acc = this.jpoint(null, null, null);\n var tmp = this._wnafT4;\n for (i = max; i >= 0; i--) {\n var k = 0;\n\n while (i >= 0) {\n var zero = true;\n for (j = 0; j < len; j++) {\n tmp[j] = naf[j][i] | 0;\n if (tmp[j] !== 0)\n zero = false;\n }\n if (!zero)\n break;\n k++;\n i--;\n }\n if (i >= 0)\n k++;\n acc = acc.dblp(k);\n if (i < 0)\n break;\n\n for (j = 0; j < len; j++) {\n var z = tmp[j];\n p;\n if (z === 0)\n continue;\n else if (z > 0)\n p = wnd[j][(z - 1) >> 1];\n else if (z < 0)\n p = wnd[j][(-z - 1) >> 1].neg();\n\n if (p.type === 'affine')\n acc = acc.mixedAdd(p);\n else\n acc = acc.add(p);\n }\n }\n // Zeroify references\n for (i = 0; i < len; i++)\n wnd[i] = null;\n\n if (jacobianResult)\n return acc;\n else\n return acc.toP();\n};\n\nfunction BasePoint(curve, type) {\n this.curve = curve;\n this.type = type;\n this.precomputed = null;\n}\nBaseCurve.BasePoint = BasePoint;\n\nBasePoint.prototype.eq = function eq(/*other*/) {\n throw new Error('Not implemented');\n};\n\nBasePoint.prototype.validate = function validate() {\n return this.curve.validate(this);\n};\n\nBaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n bytes = utils_1$1.toArray(bytes, enc);\n\n var len = this.p.byteLength();\n\n // uncompressed, hybrid-odd, hybrid-even\n if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&\n bytes.length - 1 === 2 * len) {\n if (bytes[0] === 0x06)\n assert$1(bytes[bytes.length - 1] % 2 === 0);\n else if (bytes[0] === 0x07)\n assert$1(bytes[bytes.length - 1] % 2 === 1);\n\n var res = this.point(bytes.slice(1, 1 + len),\n bytes.slice(1 + len, 1 + 2 * len));\n\n return res;\n } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&\n bytes.length - 1 === len) {\n return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);\n }\n throw new Error('Unknown point format');\n};\n\nBasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {\n return this.encode(enc, true);\n};\n\nBasePoint.prototype._encode = function _encode(compact) {\n var len = this.curve.p.byteLength();\n var x = this.getX().toArray('be', len);\n\n if (compact)\n return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);\n\n return [ 0x04 ].concat(x, this.getY().toArray('be', len));\n};\n\nBasePoint.prototype.encode = function encode(enc, compact) {\n return utils_1$1.encode(this._encode(compact), enc);\n};\n\nBasePoint.prototype.precompute = function precompute(power) {\n if (this.precomputed)\n return this;\n\n var precomputed = {\n doubles: null,\n naf: null,\n beta: null,\n };\n precomputed.naf = this._getNAFPoints(8);\n precomputed.doubles = this._getDoubles(4, power);\n precomputed.beta = this._getBeta();\n this.precomputed = precomputed;\n\n return this;\n};\n\nBasePoint.prototype._hasDoubles = function _hasDoubles(k) {\n if (!this.precomputed)\n return false;\n\n var doubles = this.precomputed.doubles;\n if (!doubles)\n return false;\n\n return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);\n};\n\nBasePoint.prototype._getDoubles = function _getDoubles(step, power) {\n if (this.precomputed && this.precomputed.doubles)\n return this.precomputed.doubles;\n\n var doubles = [ this ];\n var acc = this;\n for (var i = 0; i < power; i += step) {\n for (var j = 0; j < step; j++)\n acc = acc.dbl();\n doubles.push(acc);\n }\n return {\n step: step,\n points: doubles,\n };\n};\n\nBasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {\n if (this.precomputed && this.precomputed.naf)\n return this.precomputed.naf;\n\n var res = [ this ];\n var max = (1 << wnd) - 1;\n var dbl = max === 1 ? null : this.dbl();\n for (var i = 1; i < max; i++)\n res[i] = res[i - 1].add(dbl);\n return {\n wnd: wnd,\n points: res,\n };\n};\n\nBasePoint.prototype._getBeta = function _getBeta() {\n return null;\n};\n\nBasePoint.prototype.dblp = function dblp(k) {\n var r = this;\n for (var i = 0; i < k; i++)\n r = r.dbl();\n return r;\n};\n\nvar inherits_browser = createCommonjsModule(function (module) {\nif (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n };\n}\n});\n\n'use strict';\n\n\n\n\n\n\nvar assert$2 = utils_1$1.assert;\n\nfunction ShortCurve(conf) {\n base.call(this, 'short', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.tinv = this.two.redInvm();\n\n this.zeroA = this.a.fromRed().cmpn(0) === 0;\n this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;\n\n // If the curve is endomorphic, precalculate beta and lambda\n this.endo = this._getEndomorphism(conf);\n this._endoWnafT1 = new Array(4);\n this._endoWnafT2 = new Array(4);\n}\ninherits_browser(ShortCurve, base);\nvar short_1 = ShortCurve;\n\nShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {\n // No efficient endomorphism\n if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)\n return;\n\n // Compute beta and lambda, that lambda * P = (beta * Px; Py)\n var beta;\n var lambda;\n if (conf.beta) {\n beta = new BN(conf.beta, 16).toRed(this.red);\n } else {\n var betas = this._getEndoRoots(this.p);\n // Choose the smallest beta\n beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];\n beta = beta.toRed(this.red);\n }\n if (conf.lambda) {\n lambda = new BN(conf.lambda, 16);\n } else {\n // Choose the lambda that is matching selected beta\n var lambdas = this._getEndoRoots(this.n);\n if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {\n lambda = lambdas[0];\n } else {\n lambda = lambdas[1];\n assert$2(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);\n }\n }\n\n // Get basis vectors, used for balanced length-two representation\n var basis;\n if (conf.basis) {\n basis = conf.basis.map(function(vec) {\n return {\n a: new BN(vec.a, 16),\n b: new BN(vec.b, 16),\n };\n });\n } else {\n basis = this._getEndoBasis(lambda);\n }\n\n return {\n beta: beta,\n lambda: lambda,\n basis: basis,\n };\n};\n\nShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {\n // Find roots of for x^2 + x + 1 in F\n // Root = (-1 +- Sqrt(-3)) / 2\n //\n var red = num === this.p ? this.red : BN.mont(num);\n var tinv = new BN(2).toRed(red).redInvm();\n var ntinv = tinv.redNeg();\n\n var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);\n\n var l1 = ntinv.redAdd(s).fromRed();\n var l2 = ntinv.redSub(s).fromRed();\n return [ l1, l2 ];\n};\n\nShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {\n // aprxSqrt >= sqrt(this.n)\n var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));\n\n // 3.74\n // Run EGCD, until r(L + 1) < aprxSqrt\n var u = lambda;\n var v = this.n.clone();\n var x1 = new BN(1);\n var y1 = new BN(0);\n var x2 = new BN(0);\n var y2 = new BN(1);\n\n // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)\n var a0;\n var b0;\n // First vector\n var a1;\n var b1;\n // Second vector\n var a2;\n var b2;\n\n var prevR;\n var i = 0;\n var r;\n var x;\n while (u.cmpn(0) !== 0) {\n var q = v.div(u);\n r = v.sub(q.mul(u));\n x = x2.sub(q.mul(x1));\n var y = y2.sub(q.mul(y1));\n\n if (!a1 && r.cmp(aprxSqrt) < 0) {\n a0 = prevR.neg();\n b0 = x1;\n a1 = r.neg();\n b1 = x;\n } else if (a1 && ++i === 2) {\n break;\n }\n prevR = r;\n\n v = u;\n u = r;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n }\n a2 = r.neg();\n b2 = x;\n\n var len1 = a1.sqr().add(b1.sqr());\n var len2 = a2.sqr().add(b2.sqr());\n if (len2.cmp(len1) >= 0) {\n a2 = a0;\n b2 = b0;\n }\n\n // Normalize signs\n if (a1.negative) {\n a1 = a1.neg();\n b1 = b1.neg();\n }\n if (a2.negative) {\n a2 = a2.neg();\n b2 = b2.neg();\n }\n\n return [\n { a: a1, b: b1 },\n { a: a2, b: b2 },\n ];\n};\n\nShortCurve.prototype._endoSplit = function _endoSplit(k) {\n var basis = this.endo.basis;\n var v1 = basis[0];\n var v2 = basis[1];\n\n var c1 = v2.b.mul(k).divRound(this.n);\n var c2 = v1.b.neg().mul(k).divRound(this.n);\n\n var p1 = c1.mul(v1.a);\n var p2 = c2.mul(v2.a);\n var q1 = c1.mul(v1.b);\n var q2 = c2.mul(v2.b);\n\n // Calculate answer\n var k1 = k.sub(p1).sub(p2);\n var k2 = q1.add(q2).neg();\n return { k1: k1, k2: k2 };\n};\n\nShortCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n // XXX Is there any way to tell if the number is odd without converting it\n // to non-red form?\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nShortCurve.prototype.validate = function validate(point) {\n if (point.inf)\n return true;\n\n var x = point.x;\n var y = point.y;\n\n var ax = this.a.redMul(x);\n var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);\n return y.redSqr().redISub(rhs).cmpn(0) === 0;\n};\n\nShortCurve.prototype._endoWnafMulAdd =\n function _endoWnafMulAdd(points, coeffs, jacobianResult) {\n var npoints = this._endoWnafT1;\n var ncoeffs = this._endoWnafT2;\n for (var i = 0; i < points.length; i++) {\n var split = this._endoSplit(coeffs[i]);\n var p = points[i];\n var beta = p._getBeta();\n\n if (split.k1.negative) {\n split.k1.ineg();\n p = p.neg(true);\n }\n if (split.k2.negative) {\n split.k2.ineg();\n beta = beta.neg(true);\n }\n\n npoints[i * 2] = p;\n npoints[i * 2 + 1] = beta;\n ncoeffs[i * 2] = split.k1;\n ncoeffs[i * 2 + 1] = split.k2;\n }\n var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);\n\n // Clean-up references to points and coefficients\n for (var j = 0; j < i * 2; j++) {\n npoints[j] = null;\n ncoeffs[j] = null;\n }\n return res;\n };\n\nfunction Point(curve, x, y, isRed) {\n base.BasePoint.call(this, curve, 'affine');\n if (x === null && y === null) {\n this.x = null;\n this.y = null;\n this.inf = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n // Force redgomery representation when loading from JSON\n if (isRed) {\n this.x.forceRed(this.curve.red);\n this.y.forceRed(this.curve.red);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n this.inf = false;\n }\n}\ninherits_browser(Point, base.BasePoint);\n\nShortCurve.prototype.point = function point(x, y, isRed) {\n return new Point(this, x, y, isRed);\n};\n\nShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {\n return Point.fromJSON(this, obj, red);\n};\n\nPoint.prototype._getBeta = function _getBeta() {\n if (!this.curve.endo)\n return;\n\n var pre = this.precomputed;\n if (pre && pre.beta)\n return pre.beta;\n\n var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);\n if (pre) {\n var curve = this.curve;\n var endoMul = function(p) {\n return curve.point(p.x.redMul(curve.endo.beta), p.y);\n };\n pre.beta = beta;\n beta.precomputed = {\n beta: null,\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(endoMul),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(endoMul),\n },\n };\n }\n return beta;\n};\n\nPoint.prototype.toJSON = function toJSON() {\n if (!this.precomputed)\n return [ this.x, this.y ];\n\n return [ this.x, this.y, this.precomputed && {\n doubles: this.precomputed.doubles && {\n step: this.precomputed.doubles.step,\n points: this.precomputed.doubles.points.slice(1),\n },\n naf: this.precomputed.naf && {\n wnd: this.precomputed.naf.wnd,\n points: this.precomputed.naf.points.slice(1),\n },\n } ];\n};\n\nPoint.fromJSON = function fromJSON(curve, obj, red) {\n if (typeof obj === 'string')\n obj = JSON.parse(obj);\n var res = curve.point(obj[0], obj[1], red);\n if (!obj[2])\n return res;\n\n function obj2point(obj) {\n return curve.point(obj[0], obj[1], red);\n }\n\n var pre = obj[2];\n res.precomputed = {\n beta: null,\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: [ res ].concat(pre.doubles.points.map(obj2point)),\n },\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: [ res ].concat(pre.naf.points.map(obj2point)),\n },\n };\n return res;\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n return this.inf;\n};\n\nPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.inf)\n return p;\n\n // P + O = P\n if (p.inf)\n return this;\n\n // P + P = 2P\n if (this.eq(p))\n return this.dbl();\n\n // P + (-P) = O\n if (this.neg().eq(p))\n return this.curve.point(null, null);\n\n // P + Q = O\n if (this.x.cmp(p.x) === 0)\n return this.curve.point(null, null);\n\n var c = this.y.redSub(p.y);\n if (c.cmpn(0) !== 0)\n c = c.redMul(this.x.redSub(p.x).redInvm());\n var nx = c.redSqr().redISub(this.x).redISub(p.x);\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.inf)\n return this;\n\n // 2P = O\n var ys1 = this.y.redAdd(this.y);\n if (ys1.cmpn(0) === 0)\n return this.curve.point(null, null);\n\n var a = this.curve.a;\n\n var x2 = this.x.redSqr();\n var dyinv = ys1.redInvm();\n var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);\n\n var nx = c.redSqr().redISub(this.x.redAdd(this.x));\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.getX = function getX() {\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n return this.y.fromRed();\n};\n\nPoint.prototype.mul = function mul(k) {\n k = new BN(k, 16);\n if (this.isInfinity())\n return this;\n else if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else if (this.curve.endo)\n return this.curve._endoWnafMulAdd([ this ], [ k ]);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs, true);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2, true);\n};\n\nPoint.prototype.eq = function eq(p) {\n return this === p ||\n this.inf === p.inf &&\n (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);\n};\n\nPoint.prototype.neg = function neg(_precompute) {\n if (this.inf)\n return this;\n\n var res = this.curve.point(this.x, this.y.redNeg());\n if (_precompute && this.precomputed) {\n var pre = this.precomputed;\n var negate = function(p) {\n return p.neg();\n };\n res.precomputed = {\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(negate),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(negate),\n },\n };\n }\n return res;\n};\n\nPoint.prototype.toJ = function toJ() {\n if (this.inf)\n return this.curve.jpoint(null, null, null);\n\n var res = this.curve.jpoint(this.x, this.y, this.curve.one);\n return res;\n};\n\nfunction JPoint(curve, x, y, z) {\n base.BasePoint.call(this, curve, 'jacobian');\n if (x === null && y === null && z === null) {\n this.x = this.curve.one;\n this.y = this.curve.one;\n this.z = new BN(0);\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = new BN(z, 16);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n\n this.zOne = this.z === this.curve.one;\n}\ninherits_browser(JPoint, base.BasePoint);\n\nShortCurve.prototype.jpoint = function jpoint(x, y, z) {\n return new JPoint(this, x, y, z);\n};\n\nJPoint.prototype.toP = function toP() {\n if (this.isInfinity())\n return this.curve.point(null, null);\n\n var zinv = this.z.redInvm();\n var zinv2 = zinv.redSqr();\n var ax = this.x.redMul(zinv2);\n var ay = this.y.redMul(zinv2).redMul(zinv);\n\n return this.curve.point(ax, ay);\n};\n\nJPoint.prototype.neg = function neg() {\n return this.curve.jpoint(this.x, this.y.redNeg(), this.z);\n};\n\nJPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.isInfinity())\n return p;\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 12M + 4S + 7A\n var pz2 = p.z.redSqr();\n var z2 = this.z.redSqr();\n var u1 = this.x.redMul(pz2);\n var u2 = p.x.redMul(z2);\n var s1 = this.y.redMul(pz2.redMul(p.z));\n var s2 = p.y.redMul(z2.redMul(this.z));\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(p.z).redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mixedAdd = function mixedAdd(p) {\n // O + P = P\n if (this.isInfinity())\n return p.toJ();\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 8M + 3S + 7A\n var z2 = this.z.redSqr();\n var u1 = this.x;\n var u2 = p.x.redMul(z2);\n var s1 = this.y;\n var s2 = p.y.redMul(z2).redMul(this.z);\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.dblp = function dblp(pow) {\n if (pow === 0)\n return this;\n if (this.isInfinity())\n return this;\n if (!pow)\n return this.dbl();\n\n var i;\n if (this.curve.zeroA || this.curve.threeA) {\n var r = this;\n for (i = 0; i < pow; i++)\n r = r.dbl();\n return r;\n }\n\n // 1M + 2S + 1A + N * (4S + 5M + 8A)\n // N = 1 => 6M + 6S + 9A\n var a = this.curve.a;\n var tinv = this.curve.tinv;\n\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n // Reuse results\n var jyd = jy.redAdd(jy);\n for (i = 0; i < pow; i++) {\n var jx2 = jx.redSqr();\n var jyd2 = jyd.redSqr();\n var jyd4 = jyd2.redSqr();\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var t1 = jx.redMul(jyd2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n var dny = c.redMul(t2);\n dny = dny.redIAdd(dny).redISub(jyd4);\n var nz = jyd.redMul(jz);\n if (i + 1 < pow)\n jz4 = jz4.redMul(jyd4);\n\n jx = nx;\n jz = nz;\n jyd = dny;\n }\n\n return this.curve.jpoint(jx, jyd.redMul(tinv), jz);\n};\n\nJPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n if (this.curve.zeroA)\n return this._zeroDbl();\n else if (this.curve.threeA)\n return this._threeDbl();\n else\n return this._dbl();\n};\n\nJPoint.prototype._zeroDbl = function _zeroDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 14A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // T = M ^ 2 - 2*S\n var t = m.redSqr().redISub(s).redISub(s);\n\n // 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2*Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-dbl-2009-l\n // 2M + 5S + 13A\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = B^2\n var c = b.redSqr();\n // D = 2 * ((X1 + B)^2 - A - C)\n var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);\n d = d.redIAdd(d);\n // E = 3 * A\n var e = a.redAdd(a).redIAdd(a);\n // F = E^2\n var f = e.redSqr();\n\n // 8 * C\n var c8 = c.redIAdd(c);\n c8 = c8.redIAdd(c8);\n c8 = c8.redIAdd(c8);\n\n // X3 = F - 2 * D\n nx = f.redISub(d).redISub(d);\n // Y3 = E * (D - X3) - 8 * C\n ny = e.redMul(d.redISub(nx)).redISub(c8);\n // Z3 = 2 * Y1 * Z1\n nz = this.y.redMul(this.z);\n nz = nz.redIAdd(nz);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._threeDbl = function _threeDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 15A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a\n var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);\n // T = M^2 - 2 * S\n var t = m.redSqr().redISub(s).redISub(s);\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2 * Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b\n // 3M + 5S\n\n // delta = Z1^2\n var delta = this.z.redSqr();\n // gamma = Y1^2\n var gamma = this.y.redSqr();\n // beta = X1 * gamma\n var beta = this.x.redMul(gamma);\n // alpha = 3 * (X1 - delta) * (X1 + delta)\n var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));\n alpha = alpha.redAdd(alpha).redIAdd(alpha);\n // X3 = alpha^2 - 8 * beta\n var beta4 = beta.redIAdd(beta);\n beta4 = beta4.redIAdd(beta4);\n var beta8 = beta4.redAdd(beta4);\n nx = alpha.redSqr().redISub(beta8);\n // Z3 = (Y1 + Z1)^2 - gamma - delta\n nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);\n // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2\n var ggamma8 = gamma.redSqr();\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._dbl = function _dbl() {\n var a = this.curve.a;\n\n // 4M + 6S + 10A\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n var jx2 = jx.redSqr();\n var jy2 = jy.redSqr();\n\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var jxd4 = jx.redAdd(jx);\n jxd4 = jxd4.redIAdd(jxd4);\n var t1 = jxd4.redMul(jy2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n\n var jyd8 = jy2.redSqr();\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n var ny = c.redMul(t2).redISub(jyd8);\n var nz = jy.redAdd(jy).redMul(jz);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.trpl = function trpl() {\n if (!this.curve.zeroA)\n return this.dbl().add(this);\n\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl\n // 5M + 10S + ...\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // ZZ = Z1^2\n var zz = this.z.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // M = 3 * XX + a * ZZ2; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // MM = M^2\n var mm = m.redSqr();\n // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM\n var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n e = e.redIAdd(e);\n e = e.redAdd(e).redIAdd(e);\n e = e.redISub(mm);\n // EE = E^2\n var ee = e.redSqr();\n // T = 16*YYYY\n var t = yyyy.redIAdd(yyyy);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n // U = (M + E)^2 - MM - EE - T\n var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);\n // X3 = 4 * (X1 * EE - 4 * YY * U)\n var yyu4 = yy.redMul(u);\n yyu4 = yyu4.redIAdd(yyu4);\n yyu4 = yyu4.redIAdd(yyu4);\n var nx = this.x.redMul(ee).redISub(yyu4);\n nx = nx.redIAdd(nx);\n nx = nx.redIAdd(nx);\n // Y3 = 8 * Y1 * (U * (T - U) - E * EE)\n var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n // Z3 = (Z1 + E)^2 - ZZ - EE\n var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mul = function mul(k, kbase) {\n k = new BN(k, kbase);\n\n return this.curve._wnafMul(this, k);\n};\n\nJPoint.prototype.eq = function eq(p) {\n if (p.type === 'affine')\n return this.eq(p.toJ());\n\n if (this === p)\n return true;\n\n // x1 * z2^2 == x2 * z1^2\n var z2 = this.z.redSqr();\n var pz2 = p.z.redSqr();\n if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)\n return false;\n\n // y1 * z2^3 == y2 * z1^3\n var z3 = z2.redMul(this.z);\n var pz3 = pz2.redMul(p.z);\n return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;\n};\n\nJPoint.prototype.eqXToP = function eqXToP(x) {\n var zs = this.z.redSqr();\n var rx = x.toRed(this.curve.red).redMul(zs);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(zs);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\nJPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nJPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n\nvar curve_1 = createCommonjsModule(function (module, exports) {\n'use strict';\n\nvar curve = exports;\n\ncurve.base = base;\ncurve.short = short_1;\ncurve.mont = /*RicMoo:ethers:require(./mont)*/(null);\ncurve.edwards = /*RicMoo:ethers:require(./edwards)*/(null);\n});\n\nvar curves_1 = createCommonjsModule(function (module, exports) {\n'use strict';\n\nvar curves = exports;\n\n\n\n\n\nvar assert = utils_1$1.assert;\n\nfunction PresetCurve(options) {\n if (options.type === 'short')\n this.curve = new curve_1.short(options);\n else if (options.type === 'edwards')\n this.curve = new curve_1.edwards(options);\n else\n this.curve = new curve_1.mont(options);\n this.g = this.curve.g;\n this.n = this.curve.n;\n this.hash = options.hash;\n\n assert(this.g.validate(), 'Invalid curve');\n assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');\n}\ncurves.PresetCurve = PresetCurve;\n\nfunction defineCurve(name, options) {\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n get: function() {\n var curve = new PresetCurve(options);\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n value: curve,\n });\n return curve;\n },\n });\n}\n\ndefineCurve('p192', {\n type: 'short',\n prime: 'p192',\n p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',\n b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',\n n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',\n hash: hash.sha256,\n gRed: false,\n g: [\n '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',\n '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',\n ],\n});\n\ndefineCurve('p224', {\n type: 'short',\n prime: 'p224',\n p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',\n b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',\n n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',\n hash: hash.sha256,\n gRed: false,\n g: [\n 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',\n 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',\n ],\n});\n\ndefineCurve('p256', {\n type: 'short',\n prime: null,\n p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',\n a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',\n b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',\n n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',\n hash: hash.sha256,\n gRed: false,\n g: [\n '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',\n '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',\n ],\n});\n\ndefineCurve('p384', {\n type: 'short',\n prime: null,\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 ffffffff',\n a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 fffffffc',\n b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +\n '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',\n n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +\n 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',\n hash: hash.sha384,\n gRed: false,\n g: [\n 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +\n '5502f25d bf55296c 3a545e38 72760ab7',\n '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +\n '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',\n ],\n});\n\ndefineCurve('p521', {\n type: 'short',\n prime: null,\n p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff',\n a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff fffffffc',\n b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +\n '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +\n '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',\n n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +\n 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',\n hash: hash.sha512,\n gRed: false,\n g: [\n '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +\n '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +\n 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',\n '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +\n '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +\n '3fad0761 353c7086 a272c240 88be9476 9fd16650',\n ],\n});\n\ndefineCurve('curve25519', {\n type: 'mont',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '76d06',\n b: '1',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '9',\n ],\n});\n\ndefineCurve('ed25519', {\n type: 'edwards',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '-1',\n c: '1',\n // -121665 * (121666^(-1)) (mod P)\n d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',\n\n // 4/5\n '6666666666666666666666666666666666666666666666666666666666666658',\n ],\n});\n\nvar pre;\ntry {\n pre = /*RicMoo:ethers:require(./precomputed/secp256k1)*/(null).crash();\n} catch (e) {\n pre = undefined;\n}\n\ndefineCurve('secp256k1', {\n type: 'short',\n prime: 'k256',\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',\n a: '0',\n b: '7',\n n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',\n h: '1',\n hash: hash.sha256,\n\n // Precomputed endomorphism\n beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',\n lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',\n basis: [\n {\n a: '3086d221a7d46bcde86c90e49284eb15',\n b: '-e4437ed6010e88286f547fa90abfe4c3',\n },\n {\n a: '114ca50f7a8e2f3f657c1108d9d44cfd8',\n b: '3086d221a7d46bcde86c90e49284eb15',\n },\n ],\n\n gRed: false,\n g: [\n '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',\n '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',\n pre,\n ],\n});\n});\n\n'use strict';\n\n\n\n\n\nfunction HmacDRBG(options) {\n if (!(this instanceof HmacDRBG))\n return new HmacDRBG(options);\n this.hash = options.hash;\n this.predResist = !!options.predResist;\n\n this.outLen = this.hash.outSize;\n this.minEntropy = options.minEntropy || this.hash.hmacStrength;\n\n this._reseed = null;\n this.reseedInterval = null;\n this.K = null;\n this.V = null;\n\n var entropy = utils_1.toArray(options.entropy, options.entropyEnc || 'hex');\n var nonce = utils_1.toArray(options.nonce, options.nonceEnc || 'hex');\n var pers = utils_1.toArray(options.pers, options.persEnc || 'hex');\n minimalisticAssert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n this._init(entropy, nonce, pers);\n}\nvar hmacDrbg = HmacDRBG;\n\nHmacDRBG.prototype._init = function init(entropy, nonce, pers) {\n var seed = entropy.concat(nonce).concat(pers);\n\n this.K = new Array(this.outLen / 8);\n this.V = new Array(this.outLen / 8);\n for (var i = 0; i < this.V.length; i++) {\n this.K[i] = 0x00;\n this.V[i] = 0x01;\n }\n\n this._update(seed);\n this._reseed = 1;\n this.reseedInterval = 0x1000000000000; // 2^48\n};\n\nHmacDRBG.prototype._hmac = function hmac() {\n return new hash.hmac(this.hash, this.K);\n};\n\nHmacDRBG.prototype._update = function update(seed) {\n var kmac = this._hmac()\n .update(this.V)\n .update([ 0x00 ]);\n if (seed)\n kmac = kmac.update(seed);\n this.K = kmac.digest();\n this.V = this._hmac().update(this.V).digest();\n if (!seed)\n return;\n\n this.K = this._hmac()\n .update(this.V)\n .update([ 0x01 ])\n .update(seed)\n .digest();\n this.V = this._hmac().update(this.V).digest();\n};\n\nHmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {\n // Optional entropy enc\n if (typeof entropyEnc !== 'string') {\n addEnc = add;\n add = entropyEnc;\n entropyEnc = null;\n }\n\n entropy = utils_1.toArray(entropy, entropyEnc);\n add = utils_1.toArray(add, addEnc);\n\n minimalisticAssert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n\n this._update(entropy.concat(add || []));\n this._reseed = 1;\n};\n\nHmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {\n if (this._reseed > this.reseedInterval)\n throw new Error('Reseed is required');\n\n // Optional encoding\n if (typeof enc !== 'string') {\n addEnc = add;\n add = enc;\n enc = null;\n }\n\n // Optional additional data\n if (add) {\n add = utils_1.toArray(add, addEnc || 'hex');\n this._update(add);\n }\n\n var temp = [];\n while (temp.length < len) {\n this.V = this._hmac().update(this.V).digest();\n temp = temp.concat(this.V);\n }\n\n var res = temp.slice(0, len);\n this._update(add);\n this._reseed++;\n return utils_1.encode(res, enc);\n};\n\n'use strict';\n\n\n\nvar assert$3 = utils_1$1.assert;\n\nfunction KeyPair(ec, options) {\n this.ec = ec;\n this.priv = null;\n this.pub = null;\n\n // KeyPair(ec, { priv: ..., pub: ... })\n if (options.priv)\n this._importPrivate(options.priv, options.privEnc);\n if (options.pub)\n this._importPublic(options.pub, options.pubEnc);\n}\nvar key = KeyPair;\n\nKeyPair.fromPublic = function fromPublic(ec, pub, enc) {\n if (pub instanceof KeyPair)\n return pub;\n\n return new KeyPair(ec, {\n pub: pub,\n pubEnc: enc,\n });\n};\n\nKeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {\n if (priv instanceof KeyPair)\n return priv;\n\n return new KeyPair(ec, {\n priv: priv,\n privEnc: enc,\n });\n};\n\nKeyPair.prototype.validate = function validate() {\n var pub = this.getPublic();\n\n if (pub.isInfinity())\n return { result: false, reason: 'Invalid public key' };\n if (!pub.validate())\n return { result: false, reason: 'Public key is not a point' };\n if (!pub.mul(this.ec.curve.n).isInfinity())\n return { result: false, reason: 'Public key * N != O' };\n\n return { result: true, reason: null };\n};\n\nKeyPair.prototype.getPublic = function getPublic(compact, enc) {\n // compact is optional argument\n if (typeof compact === 'string') {\n enc = compact;\n compact = null;\n }\n\n if (!this.pub)\n this.pub = this.ec.g.mul(this.priv);\n\n if (!enc)\n return this.pub;\n\n return this.pub.encode(enc, compact);\n};\n\nKeyPair.prototype.getPrivate = function getPrivate(enc) {\n if (enc === 'hex')\n return this.priv.toString(16, 2);\n else\n return this.priv;\n};\n\nKeyPair.prototype._importPrivate = function _importPrivate(key, enc) {\n this.priv = new BN(key, enc || 16);\n\n // Ensure that the priv won't be bigger than n, otherwise we may fail\n // in fixed multiplication method\n this.priv = this.priv.umod(this.ec.curve.n);\n};\n\nKeyPair.prototype._importPublic = function _importPublic(key, enc) {\n if (key.x || key.y) {\n // Montgomery points only have an `x` coordinate.\n // Weierstrass/Edwards points on the other hand have both `x` and\n // `y` coordinates.\n if (this.ec.curve.type === 'mont') {\n assert$3(key.x, 'Need x coordinate');\n } else if (this.ec.curve.type === 'short' ||\n this.ec.curve.type === 'edwards') {\n assert$3(key.x && key.y, 'Need both x and y coordinate');\n }\n this.pub = this.ec.curve.point(key.x, key.y);\n return;\n }\n this.pub = this.ec.curve.decodePoint(key, enc);\n};\n\n// ECDH\nKeyPair.prototype.derive = function derive(pub) {\n if(!pub.validate()) {\n assert$3(pub.validate(), 'public point not validated');\n }\n return pub.mul(this.priv).getX();\n};\n\n// ECDSA\nKeyPair.prototype.sign = function sign(msg, enc, options) {\n return this.ec.sign(msg, this, enc, options);\n};\n\nKeyPair.prototype.verify = function verify(msg, signature) {\n return this.ec.verify(msg, signature, this);\n};\n\nKeyPair.prototype.inspect = function inspect() {\n return '';\n};\n\n'use strict';\n\n\n\n\nvar assert$4 = utils_1$1.assert;\n\nfunction Signature(options, enc) {\n if (options instanceof Signature)\n return options;\n\n if (this._importDER(options, enc))\n return;\n\n assert$4(options.r && options.s, 'Signature without r or s');\n this.r = new BN(options.r, 16);\n this.s = new BN(options.s, 16);\n if (options.recoveryParam === undefined)\n this.recoveryParam = null;\n else\n this.recoveryParam = options.recoveryParam;\n}\nvar signature = Signature;\n\nfunction Position() {\n this.place = 0;\n}\n\nfunction getLength(buf, p) {\n var initial = buf[p.place++];\n if (!(initial & 0x80)) {\n return initial;\n }\n var octetLen = initial & 0xf;\n\n // Indefinite length or overflow\n if (octetLen === 0 || octetLen > 4) {\n return false;\n }\n\n var val = 0;\n for (var i = 0, off = p.place; i < octetLen; i++, off++) {\n val <<= 8;\n val |= buf[off];\n val >>>= 0;\n }\n\n // Leading zeroes\n if (val <= 0x7f) {\n return false;\n }\n\n p.place = off;\n return val;\n}\n\nfunction rmPadding(buf) {\n var i = 0;\n var len = buf.length - 1;\n while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\n i++;\n }\n if (i === 0) {\n return buf;\n }\n return buf.slice(i);\n}\n\nSignature.prototype._importDER = function _importDER(data, enc) {\n data = utils_1$1.toArray(data, enc);\n var p = new Position();\n if (data[p.place++] !== 0x30) {\n return false;\n }\n var len = getLength(data, p);\n if (len === false) {\n return false;\n }\n if ((len + p.place) !== data.length) {\n return false;\n }\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var rlen = getLength(data, p);\n if (rlen === false) {\n return false;\n }\n var r = data.slice(p.place, rlen + p.place);\n p.place += rlen;\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var slen = getLength(data, p);\n if (slen === false) {\n return false;\n }\n if (data.length !== slen + p.place) {\n return false;\n }\n var s = data.slice(p.place, slen + p.place);\n if (r[0] === 0) {\n if (r[1] & 0x80) {\n r = r.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n if (s[0] === 0) {\n if (s[1] & 0x80) {\n s = s.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n\n this.r = new BN(r);\n this.s = new BN(s);\n this.recoveryParam = null;\n\n return true;\n};\n\nfunction constructLength(arr, len) {\n if (len < 0x80) {\n arr.push(len);\n return;\n }\n var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\n arr.push(octets | 0x80);\n while (--octets) {\n arr.push((len >>> (octets << 3)) & 0xff);\n }\n arr.push(len);\n}\n\nSignature.prototype.toDER = function toDER(enc) {\n var r = this.r.toArray();\n var s = this.s.toArray();\n\n // Pad values\n if (r[0] & 0x80)\n r = [ 0 ].concat(r);\n // Pad values\n if (s[0] & 0x80)\n s = [ 0 ].concat(s);\n\n r = rmPadding(r);\n s = rmPadding(s);\n\n while (!s[0] && !(s[1] & 0x80)) {\n s = s.slice(1);\n }\n var arr = [ 0x02 ];\n constructLength(arr, r.length);\n arr = arr.concat(r);\n arr.push(0x02);\n constructLength(arr, s.length);\n var backHalf = arr.concat(s);\n var res = [ 0x30 ];\n constructLength(res, backHalf.length);\n res = res.concat(backHalf);\n return utils_1$1.encode(res, enc);\n};\n\n'use strict';\n\n\n\n\n\nvar rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });\nvar assert$5 = utils_1$1.assert;\n\n\n\n\nfunction EC(options) {\n if (!(this instanceof EC))\n return new EC(options);\n\n // Shortcut `elliptic.ec(curve-name)`\n if (typeof options === 'string') {\n assert$5(Object.prototype.hasOwnProperty.call(curves_1, options),\n 'Unknown curve ' + options);\n\n options = curves_1[options];\n }\n\n // Shortcut for `elliptic.ec(elliptic.curves.curveName)`\n if (options instanceof curves_1.PresetCurve)\n options = { curve: options };\n\n this.curve = options.curve.curve;\n this.n = this.curve.n;\n this.nh = this.n.ushrn(1);\n this.g = this.curve.g;\n\n // Point on curve\n this.g = options.curve.g;\n this.g.precompute(options.curve.n.bitLength() + 1);\n\n // Hash for function for DRBG\n this.hash = options.hash || options.curve.hash;\n}\nvar ec = EC;\n\nEC.prototype.keyPair = function keyPair(options) {\n return new key(this, options);\n};\n\nEC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {\n return key.fromPrivate(this, priv, enc);\n};\n\nEC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {\n return key.fromPublic(this, pub, enc);\n};\n\nEC.prototype.genKeyPair = function genKeyPair(options) {\n if (!options)\n options = {};\n\n // Instantiate Hmac_DRBG\n var drbg = new hmacDrbg({\n hash: this.hash,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n entropy: options.entropy || rand(this.hash.hmacStrength),\n entropyEnc: options.entropy && options.entropyEnc || 'utf8',\n nonce: this.n.toArray(),\n });\n\n var bytes = this.n.byteLength();\n var ns2 = this.n.sub(new BN(2));\n for (;;) {\n var priv = new BN(drbg.generate(bytes));\n if (priv.cmp(ns2) > 0)\n continue;\n\n priv.iaddn(1);\n return this.keyFromPrivate(priv);\n }\n};\n\nEC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {\n var delta = msg.byteLength() * 8 - this.n.bitLength();\n if (delta > 0)\n msg = msg.ushrn(delta);\n if (!truncOnly && msg.cmp(this.n) >= 0)\n return msg.sub(this.n);\n else\n return msg;\n};\n\nEC.prototype.sign = function sign(msg, key, enc, options) {\n if (typeof enc === 'object') {\n options = enc;\n enc = null;\n }\n if (!options)\n options = {};\n\n key = this.keyFromPrivate(key, enc);\n msg = this._truncateToN(new BN(msg, 16));\n\n // Zero-extend key to provide enough entropy\n var bytes = this.n.byteLength();\n var bkey = key.getPrivate().toArray('be', bytes);\n\n // Zero-extend nonce to have the same byte size as N\n var nonce = msg.toArray('be', bytes);\n\n // Instantiate Hmac_DRBG\n var drbg = new hmacDrbg({\n hash: this.hash,\n entropy: bkey,\n nonce: nonce,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n });\n\n // Number of bytes to generate\n var ns1 = this.n.sub(new BN(1));\n\n for (var iter = 0; ; iter++) {\n var k = options.k ?\n options.k(iter) :\n new BN(drbg.generate(this.n.byteLength()));\n k = this._truncateToN(k, true);\n if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)\n continue;\n\n var kp = this.g.mul(k);\n if (kp.isInfinity())\n continue;\n\n var kpX = kp.getX();\n var r = kpX.umod(this.n);\n if (r.cmpn(0) === 0)\n continue;\n\n var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));\n s = s.umod(this.n);\n if (s.cmpn(0) === 0)\n continue;\n\n var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |\n (kpX.cmp(r) !== 0 ? 2 : 0);\n\n // Use complement of `s`, if it is > `n / 2`\n if (options.canonical && s.cmp(this.nh) > 0) {\n s = this.n.sub(s);\n recoveryParam ^= 1;\n }\n\n return new signature({ r: r, s: s, recoveryParam: recoveryParam });\n }\n};\n\nEC.prototype.verify = function verify(msg, signature$1, key, enc) {\n msg = this._truncateToN(new BN(msg, 16));\n key = this.keyFromPublic(key, enc);\n signature$1 = new signature(signature$1, 'hex');\n\n // Perform primitive values validation\n var r = signature$1.r;\n var s = signature$1.s;\n if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)\n return false;\n if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)\n return false;\n\n // Validate signature\n var sinv = s.invm(this.n);\n var u1 = sinv.mul(msg).umod(this.n);\n var u2 = sinv.mul(r).umod(this.n);\n var p;\n\n if (!this.curve._maxwellTrick) {\n p = this.g.mulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n return p.getX().umod(this.n).cmp(r) === 0;\n }\n\n // NOTE: Greg Maxwell's trick, inspired by:\n // https://git.io/vad3K\n\n p = this.g.jmulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n // Compare `p.x` of Jacobian point with `r`,\n // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the\n // inverse of `p.z^2`\n return p.eqXToP(r);\n};\n\nEC.prototype.recoverPubKey = function(msg, signature$1, j, enc) {\n assert$5((3 & j) === j, 'The recovery param is more than two bits');\n signature$1 = new signature(signature$1, enc);\n\n var n = this.n;\n var e = new BN(msg);\n var r = signature$1.r;\n var s = signature$1.s;\n\n // A set LSB signifies that the y-coordinate is odd\n var isYOdd = j & 1;\n var isSecondKey = j >> 1;\n if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)\n throw new Error('Unable to find sencond key candinate');\n\n // 1.1. Let x = r + jn.\n if (isSecondKey)\n r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);\n else\n r = this.curve.pointFromX(r, isYOdd);\n\n var rInv = signature$1.r.invm(n);\n var s1 = n.sub(e).mul(rInv).umod(n);\n var s2 = s.mul(rInv).umod(n);\n\n // 1.6.1 Compute Q = r^-1 (sR - eG)\n // Q = r^-1 (sR + -eG)\n return this.g.mulAdd(s1, r, s2);\n};\n\nEC.prototype.getKeyRecoveryParam = function(e, signature$1, Q, enc) {\n signature$1 = new signature(signature$1, enc);\n if (signature$1.recoveryParam !== null)\n return signature$1.recoveryParam;\n\n for (var i = 0; i < 4; i++) {\n var Qprime;\n try {\n Qprime = this.recoverPubKey(e, signature$1, i);\n } catch (e) {\n continue;\n }\n\n if (Qprime.eq(Q))\n return i;\n }\n throw new Error('Unable to find valid recovery factor');\n};\n\nvar elliptic_1 = createCommonjsModule(function (module, exports) {\n'use strict';\n\nvar elliptic = exports;\n\nelliptic.version = /*RicMoo:ethers*/{ version: \"6.5.4\" }.version;\nelliptic.utils = utils_1$1;\nelliptic.rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });\nelliptic.curve = curve_1;\nelliptic.curves = curves_1;\n\n// Protocols\nelliptic.ec = ec;\nelliptic.eddsa = /*RicMoo:ethers:require(./elliptic/eddsa)*/(null);\n});\n\nvar EC$1 = elliptic_1.ec;\n\nexport { EC$1 as EC };\n//# sourceMappingURL=elliptic.js.map\n","export const version = \"signing-key/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { EC } from \"./elliptic\";\nimport { arrayify, hexDataLength, hexlify, hexZeroPad, splitSignature } from \"@ethersproject/bytes\";\nimport { defineReadOnly } from \"@ethersproject/properties\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nlet _curve = null;\nfunction getCurve() {\n if (!_curve) {\n _curve = new EC(\"secp256k1\");\n }\n return _curve;\n}\nexport class SigningKey {\n constructor(privateKey) {\n defineReadOnly(this, \"curve\", \"secp256k1\");\n defineReadOnly(this, \"privateKey\", hexlify(privateKey));\n if (hexDataLength(this.privateKey) !== 32) {\n logger.throwArgumentError(\"invalid private key\", \"privateKey\", \"[[ REDACTED ]]\");\n }\n const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));\n defineReadOnly(this, \"publicKey\", \"0x\" + keyPair.getPublic(false, \"hex\"));\n defineReadOnly(this, \"compressedPublicKey\", \"0x\" + keyPair.getPublic(true, \"hex\"));\n defineReadOnly(this, \"_isSigningKey\", true);\n }\n _addPoint(other) {\n const p0 = getCurve().keyFromPublic(arrayify(this.publicKey));\n const p1 = getCurve().keyFromPublic(arrayify(other));\n return \"0x\" + p0.pub.add(p1.pub).encodeCompressed(\"hex\");\n }\n signDigest(digest) {\n const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));\n const digestBytes = arrayify(digest);\n if (digestBytes.length !== 32) {\n logger.throwArgumentError(\"bad digest length\", \"digest\", digest);\n }\n const signature = keyPair.sign(digestBytes, { canonical: true });\n return splitSignature({\n recoveryParam: signature.recoveryParam,\n r: hexZeroPad(\"0x\" + signature.r.toString(16), 32),\n s: hexZeroPad(\"0x\" + signature.s.toString(16), 32),\n });\n }\n computeSharedSecret(otherKey) {\n const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));\n const otherKeyPair = getCurve().keyFromPublic(arrayify(computePublicKey(otherKey)));\n return hexZeroPad(\"0x\" + keyPair.derive(otherKeyPair.getPublic()).toString(16), 32);\n }\n static isSigningKey(value) {\n return !!(value && value._isSigningKey);\n }\n}\nexport function recoverPublicKey(digest, signature) {\n const sig = splitSignature(signature);\n const rs = { r: arrayify(sig.r), s: arrayify(sig.s) };\n return \"0x\" + getCurve().recoverPubKey(arrayify(digest), rs, sig.recoveryParam).encode(\"hex\", false);\n}\nexport function computePublicKey(key, compressed) {\n const bytes = arrayify(key);\n if (bytes.length === 32) {\n const signingKey = new SigningKey(bytes);\n if (compressed) {\n return \"0x\" + getCurve().keyFromPrivate(bytes).getPublic(true, \"hex\");\n }\n return signingKey.publicKey;\n }\n else if (bytes.length === 33) {\n if (compressed) {\n return hexlify(bytes);\n }\n return \"0x\" + getCurve().keyFromPublic(bytes).getPublic(false, \"hex\");\n }\n else if (bytes.length === 65) {\n if (!compressed) {\n return hexlify(bytes);\n }\n return \"0x\" + getCurve().keyFromPublic(bytes).getPublic(true, \"hex\");\n }\n return logger.throwArgumentError(\"invalid public or private key\", \"key\", \"[REDACTED]\");\n}\n//# sourceMappingURL=index.js.map","export const version = \"transactions/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { getAddress } from \"@ethersproject/address\";\nimport { BigNumber } from \"@ethersproject/bignumber\";\nimport { arrayify, hexConcat, hexDataLength, hexDataSlice, hexlify, hexZeroPad, isBytesLike, splitSignature, stripZeros, } from \"@ethersproject/bytes\";\nimport { Zero } from \"@ethersproject/constants\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { checkProperties } from \"@ethersproject/properties\";\nimport * as RLP from \"@ethersproject/rlp\";\nimport { computePublicKey, recoverPublicKey } from \"@ethersproject/signing-key\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nexport var TransactionTypes;\n(function (TransactionTypes) {\n TransactionTypes[TransactionTypes[\"legacy\"] = 0] = \"legacy\";\n TransactionTypes[TransactionTypes[\"eip2930\"] = 1] = \"eip2930\";\n TransactionTypes[TransactionTypes[\"eip1559\"] = 2] = \"eip1559\";\n})(TransactionTypes || (TransactionTypes = {}));\n;\n///////////////////////////////\nfunction handleAddress(value) {\n if (value === \"0x\") {\n return null;\n }\n return getAddress(value);\n}\nfunction handleNumber(value) {\n if (value === \"0x\") {\n return Zero;\n }\n return BigNumber.from(value);\n}\n// Legacy Transaction Fields\nconst transactionFields = [\n { name: \"nonce\", maxLength: 32, numeric: true },\n { name: \"gasPrice\", maxLength: 32, numeric: true },\n { name: \"gasLimit\", maxLength: 32, numeric: true },\n { name: \"to\", length: 20 },\n { name: \"value\", maxLength: 32, numeric: true },\n { name: \"data\" },\n];\nconst allowedTransactionKeys = {\n chainId: true, data: true, gasLimit: true, gasPrice: true, nonce: true, to: true, type: true, value: true\n};\nexport function computeAddress(key) {\n const publicKey = computePublicKey(key);\n return getAddress(hexDataSlice(keccak256(hexDataSlice(publicKey, 1)), 12));\n}\nexport function recoverAddress(digest, signature) {\n return computeAddress(recoverPublicKey(arrayify(digest), signature));\n}\nfunction formatNumber(value, name) {\n const result = stripZeros(BigNumber.from(value).toHexString());\n if (result.length > 32) {\n logger.throwArgumentError(\"invalid length for \" + name, (\"transaction:\" + name), value);\n }\n return result;\n}\nfunction accessSetify(addr, storageKeys) {\n return {\n address: getAddress(addr),\n storageKeys: (storageKeys || []).map((storageKey, index) => {\n if (hexDataLength(storageKey) !== 32) {\n logger.throwArgumentError(\"invalid access list storageKey\", `accessList[${addr}:${index}]`, storageKey);\n }\n return storageKey.toLowerCase();\n })\n };\n}\nexport function accessListify(value) {\n if (Array.isArray(value)) {\n return value.map((set, index) => {\n if (Array.isArray(set)) {\n if (set.length > 2) {\n logger.throwArgumentError(\"access list expected to be [ address, storageKeys[] ]\", `value[${index}]`, set);\n }\n return accessSetify(set[0], set[1]);\n }\n return accessSetify(set.address, set.storageKeys);\n });\n }\n const result = Object.keys(value).map((addr) => {\n const storageKeys = value[addr].reduce((accum, storageKey) => {\n accum[storageKey] = true;\n return accum;\n }, {});\n return accessSetify(addr, Object.keys(storageKeys).sort());\n });\n result.sort((a, b) => (a.address.localeCompare(b.address)));\n return result;\n}\nfunction formatAccessList(value) {\n return accessListify(value).map((set) => [set.address, set.storageKeys]);\n}\nfunction _serializeEip1559(transaction, signature) {\n // If there is an explicit gasPrice, make sure it matches the\n // EIP-1559 fees; otherwise they may not understand what they\n // think they are setting in terms of fee.\n if (transaction.gasPrice != null) {\n const gasPrice = BigNumber.from(transaction.gasPrice);\n const maxFeePerGas = BigNumber.from(transaction.maxFeePerGas || 0);\n if (!gasPrice.eq(maxFeePerGas)) {\n logger.throwArgumentError(\"mismatch EIP-1559 gasPrice != maxFeePerGas\", \"tx\", {\n gasPrice, maxFeePerGas\n });\n }\n }\n const fields = [\n formatNumber(transaction.chainId || 0, \"chainId\"),\n formatNumber(transaction.nonce || 0, \"nonce\"),\n formatNumber(transaction.maxPriorityFeePerGas || 0, \"maxPriorityFeePerGas\"),\n formatNumber(transaction.maxFeePerGas || 0, \"maxFeePerGas\"),\n formatNumber(transaction.gasLimit || 0, \"gasLimit\"),\n ((transaction.to != null) ? getAddress(transaction.to) : \"0x\"),\n formatNumber(transaction.value || 0, \"value\"),\n (transaction.data || \"0x\"),\n (formatAccessList(transaction.accessList || []))\n ];\n if (signature) {\n const sig = splitSignature(signature);\n fields.push(formatNumber(sig.recoveryParam, \"recoveryParam\"));\n fields.push(stripZeros(sig.r));\n fields.push(stripZeros(sig.s));\n }\n return hexConcat([\"0x02\", RLP.encode(fields)]);\n}\nfunction _serializeEip2930(transaction, signature) {\n const fields = [\n formatNumber(transaction.chainId || 0, \"chainId\"),\n formatNumber(transaction.nonce || 0, \"nonce\"),\n formatNumber(transaction.gasPrice || 0, \"gasPrice\"),\n formatNumber(transaction.gasLimit || 0, \"gasLimit\"),\n ((transaction.to != null) ? getAddress(transaction.to) : \"0x\"),\n formatNumber(transaction.value || 0, \"value\"),\n (transaction.data || \"0x\"),\n (formatAccessList(transaction.accessList || []))\n ];\n if (signature) {\n const sig = splitSignature(signature);\n fields.push(formatNumber(sig.recoveryParam, \"recoveryParam\"));\n fields.push(stripZeros(sig.r));\n fields.push(stripZeros(sig.s));\n }\n return hexConcat([\"0x01\", RLP.encode(fields)]);\n}\n// Legacy Transactions and EIP-155\nfunction _serialize(transaction, signature) {\n checkProperties(transaction, allowedTransactionKeys);\n const raw = [];\n transactionFields.forEach(function (fieldInfo) {\n let value = transaction[fieldInfo.name] || ([]);\n const options = {};\n if (fieldInfo.numeric) {\n options.hexPad = \"left\";\n }\n value = arrayify(hexlify(value, options));\n // Fixed-width field\n if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) {\n logger.throwArgumentError(\"invalid length for \" + fieldInfo.name, (\"transaction:\" + fieldInfo.name), value);\n }\n // Variable-width (with a maximum)\n if (fieldInfo.maxLength) {\n value = stripZeros(value);\n if (value.length > fieldInfo.maxLength) {\n logger.throwArgumentError(\"invalid length for \" + fieldInfo.name, (\"transaction:\" + fieldInfo.name), value);\n }\n }\n raw.push(hexlify(value));\n });\n let chainId = 0;\n if (transaction.chainId != null) {\n // A chainId was provided; if non-zero we'll use EIP-155\n chainId = transaction.chainId;\n if (typeof (chainId) !== \"number\") {\n logger.throwArgumentError(\"invalid transaction.chainId\", \"transaction\", transaction);\n }\n }\n else if (signature && !isBytesLike(signature) && signature.v > 28) {\n // No chainId provided, but the signature is signing with EIP-155; derive chainId\n chainId = Math.floor((signature.v - 35) / 2);\n }\n // We have an EIP-155 transaction (chainId was specified and non-zero)\n if (chainId !== 0) {\n raw.push(hexlify(chainId)); // @TODO: hexValue?\n raw.push(\"0x\");\n raw.push(\"0x\");\n }\n // Requesting an unsigned transaction\n if (!signature) {\n return RLP.encode(raw);\n }\n // The splitSignature will ensure the transaction has a recoveryParam in the\n // case that the signTransaction function only adds a v.\n const sig = splitSignature(signature);\n // We pushed a chainId and null r, s on for hashing only; remove those\n let v = 27 + sig.recoveryParam;\n if (chainId !== 0) {\n raw.pop();\n raw.pop();\n raw.pop();\n v += chainId * 2 + 8;\n // If an EIP-155 v (directly or indirectly; maybe _vs) was provided, check it!\n if (sig.v > 28 && sig.v !== v) {\n logger.throwArgumentError(\"transaction.chainId/signature.v mismatch\", \"signature\", signature);\n }\n }\n else if (sig.v !== v) {\n logger.throwArgumentError(\"transaction.chainId/signature.v mismatch\", \"signature\", signature);\n }\n raw.push(hexlify(v));\n raw.push(stripZeros(arrayify(sig.r)));\n raw.push(stripZeros(arrayify(sig.s)));\n return RLP.encode(raw);\n}\nexport function serialize(transaction, signature) {\n // Legacy and EIP-155 Transactions\n if (transaction.type == null || transaction.type === 0) {\n if (transaction.accessList != null) {\n logger.throwArgumentError(\"untyped transactions do not support accessList; include type: 1\", \"transaction\", transaction);\n }\n return _serialize(transaction, signature);\n }\n // Typed Transactions (EIP-2718)\n switch (transaction.type) {\n case 1:\n return _serializeEip2930(transaction, signature);\n case 2:\n return _serializeEip1559(transaction, signature);\n default:\n break;\n }\n return logger.throwError(`unsupported transaction type: ${transaction.type}`, Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"serializeTransaction\",\n transactionType: transaction.type\n });\n}\nfunction _parseEipSignature(tx, fields, serialize) {\n try {\n const recid = handleNumber(fields[0]).toNumber();\n if (recid !== 0 && recid !== 1) {\n throw new Error(\"bad recid\");\n }\n tx.v = recid;\n }\n catch (error) {\n logger.throwArgumentError(\"invalid v for transaction type: 1\", \"v\", fields[0]);\n }\n tx.r = hexZeroPad(fields[1], 32);\n tx.s = hexZeroPad(fields[2], 32);\n try {\n const digest = keccak256(serialize(tx));\n tx.from = recoverAddress(digest, { r: tx.r, s: tx.s, recoveryParam: tx.v });\n }\n catch (error) { }\n}\nfunction _parseEip1559(payload) {\n const transaction = RLP.decode(payload.slice(1));\n if (transaction.length !== 9 && transaction.length !== 12) {\n logger.throwArgumentError(\"invalid component count for transaction type: 2\", \"payload\", hexlify(payload));\n }\n const maxPriorityFeePerGas = handleNumber(transaction[2]);\n const maxFeePerGas = handleNumber(transaction[3]);\n const tx = {\n type: 2,\n chainId: handleNumber(transaction[0]).toNumber(),\n nonce: handleNumber(transaction[1]).toNumber(),\n maxPriorityFeePerGas: maxPriorityFeePerGas,\n maxFeePerGas: maxFeePerGas,\n gasPrice: null,\n gasLimit: handleNumber(transaction[4]),\n to: handleAddress(transaction[5]),\n value: handleNumber(transaction[6]),\n data: transaction[7],\n accessList: accessListify(transaction[8]),\n };\n // Unsigned EIP-1559 Transaction\n if (transaction.length === 9) {\n return tx;\n }\n tx.hash = keccak256(payload);\n _parseEipSignature(tx, transaction.slice(9), _serializeEip1559);\n return tx;\n}\nfunction _parseEip2930(payload) {\n const transaction = RLP.decode(payload.slice(1));\n if (transaction.length !== 8 && transaction.length !== 11) {\n logger.throwArgumentError(\"invalid component count for transaction type: 1\", \"payload\", hexlify(payload));\n }\n const tx = {\n type: 1,\n chainId: handleNumber(transaction[0]).toNumber(),\n nonce: handleNumber(transaction[1]).toNumber(),\n gasPrice: handleNumber(transaction[2]),\n gasLimit: handleNumber(transaction[3]),\n to: handleAddress(transaction[4]),\n value: handleNumber(transaction[5]),\n data: transaction[6],\n accessList: accessListify(transaction[7])\n };\n // Unsigned EIP-2930 Transaction\n if (transaction.length === 8) {\n return tx;\n }\n tx.hash = keccak256(payload);\n _parseEipSignature(tx, transaction.slice(8), _serializeEip2930);\n return tx;\n}\n// Legacy Transactions and EIP-155\nfunction _parse(rawTransaction) {\n const transaction = RLP.decode(rawTransaction);\n if (transaction.length !== 9 && transaction.length !== 6) {\n logger.throwArgumentError(\"invalid raw transaction\", \"rawTransaction\", rawTransaction);\n }\n const tx = {\n nonce: handleNumber(transaction[0]).toNumber(),\n gasPrice: handleNumber(transaction[1]),\n gasLimit: handleNumber(transaction[2]),\n to: handleAddress(transaction[3]),\n value: handleNumber(transaction[4]),\n data: transaction[5],\n chainId: 0\n };\n // Legacy unsigned transaction\n if (transaction.length === 6) {\n return tx;\n }\n try {\n tx.v = BigNumber.from(transaction[6]).toNumber();\n }\n catch (error) {\n // @TODO: What makes snese to do? The v is too big\n return tx;\n }\n tx.r = hexZeroPad(transaction[7], 32);\n tx.s = hexZeroPad(transaction[8], 32);\n if (BigNumber.from(tx.r).isZero() && BigNumber.from(tx.s).isZero()) {\n // EIP-155 unsigned transaction\n tx.chainId = tx.v;\n tx.v = 0;\n }\n else {\n // Signed Transaction\n tx.chainId = Math.floor((tx.v - 35) / 2);\n if (tx.chainId < 0) {\n tx.chainId = 0;\n }\n let recoveryParam = tx.v - 27;\n const raw = transaction.slice(0, 6);\n if (tx.chainId !== 0) {\n raw.push(hexlify(tx.chainId));\n raw.push(\"0x\");\n raw.push(\"0x\");\n recoveryParam -= tx.chainId * 2 + 8;\n }\n const digest = keccak256(RLP.encode(raw));\n try {\n tx.from = recoverAddress(digest, { r: hexlify(tx.r), s: hexlify(tx.s), recoveryParam: recoveryParam });\n }\n catch (error) { }\n tx.hash = keccak256(rawTransaction);\n }\n tx.type = null;\n return tx;\n}\nexport function parse(rawTransaction) {\n const payload = arrayify(rawTransaction);\n // Legacy and EIP-155 Transactions\n if (payload[0] > 0x7f) {\n return _parse(payload);\n }\n // Typed Transaction (EIP-2718)\n switch (payload[0]) {\n case 1:\n return _parseEip2930(payload);\n case 2:\n return _parseEip1559(payload);\n default:\n break;\n }\n return logger.throwError(`unsupported transaction type: ${payload[0]}`, Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"parseTransaction\",\n transactionType: payload[0]\n });\n}\n//# sourceMappingURL=index.js.map","/**\n * var basex = require(\"base-x\");\n *\n * This implementation is heavily based on base-x. The main reason to\n * deviate was to prevent the dependency of Buffer.\n *\n * Contributors:\n *\n * base-x encoding\n * Forked from https://github.com/cryptocoinjs/bs58\n * Originally written by Mike Hearn for BitcoinJ\n * Copyright (c) 2011 Google Inc\n * Ported to JavaScript by Stefan Thomas\n * Merged Buffer refactorings from base58-native by Stephen Pair\n * Copyright (c) 2013 BitPay Inc\n *\n * The MIT License (MIT)\n *\n * Copyright base-x contributors (c) 2016\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the \"Software\"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use, copy, modify, merge, publish, distribute, sublicense,\n * and/or sell copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n */\nimport { arrayify } from \"@ethersproject/bytes\";\nimport { defineReadOnly } from \"@ethersproject/properties\";\nexport class BaseX {\n constructor(alphabet) {\n defineReadOnly(this, \"alphabet\", alphabet);\n defineReadOnly(this, \"base\", alphabet.length);\n defineReadOnly(this, \"_alphabetMap\", {});\n defineReadOnly(this, \"_leader\", alphabet.charAt(0));\n // pre-compute lookup table\n for (let i = 0; i < alphabet.length; i++) {\n this._alphabetMap[alphabet.charAt(i)] = i;\n }\n }\n encode(value) {\n let source = arrayify(value);\n if (source.length === 0) {\n return \"\";\n }\n let digits = [0];\n for (let i = 0; i < source.length; ++i) {\n let carry = source[i];\n for (let j = 0; j < digits.length; ++j) {\n carry += digits[j] << 8;\n digits[j] = carry % this.base;\n carry = (carry / this.base) | 0;\n }\n while (carry > 0) {\n digits.push(carry % this.base);\n carry = (carry / this.base) | 0;\n }\n }\n let string = \"\";\n // deal with leading zeros\n for (let k = 0; source[k] === 0 && k < source.length - 1; ++k) {\n string += this._leader;\n }\n // convert digits to a string\n for (let q = digits.length - 1; q >= 0; --q) {\n string += this.alphabet[digits[q]];\n }\n return string;\n }\n decode(value) {\n if (typeof (value) !== \"string\") {\n throw new TypeError(\"Expected String\");\n }\n let bytes = [];\n if (value.length === 0) {\n return new Uint8Array(bytes);\n }\n bytes.push(0);\n for (let i = 0; i < value.length; i++) {\n let byte = this._alphabetMap[value[i]];\n if (byte === undefined) {\n throw new Error(\"Non-base\" + this.base + \" character\");\n }\n let carry = byte;\n for (let j = 0; j < bytes.length; ++j) {\n carry += bytes[j] * this.base;\n bytes[j] = carry & 0xff;\n carry >>= 8;\n }\n while (carry > 0) {\n bytes.push(carry & 0xff);\n carry >>= 8;\n }\n }\n // deal with leading zeros\n for (let k = 0; value[k] === this._leader && k < value.length - 1; ++k) {\n bytes.push(0);\n }\n return arrayify(new Uint8Array(bytes.reverse()));\n }\n}\nconst Base32 = new BaseX(\"abcdefghijklmnopqrstuvwxyz234567\");\nconst Base58 = new BaseX(\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\");\nexport { Base32, Base58 };\n//console.log(Base58.decode(\"Qmd2V777o5XvJbYMeMb8k2nU5f8d3ciUQ5YpYuWhzv8iDj\"))\n//console.log(Base58.encode(Base58.decode(\"Qmd2V777o5XvJbYMeMb8k2nU5f8d3ciUQ5YpYuWhzv8iDj\")))\n//# sourceMappingURL=index.js.map","export var SupportedAlgorithm;\n(function (SupportedAlgorithm) {\n SupportedAlgorithm[\"sha256\"] = \"sha256\";\n SupportedAlgorithm[\"sha512\"] = \"sha512\";\n})(SupportedAlgorithm || (SupportedAlgorithm = {}));\n;\n//# sourceMappingURL=types.js.map","export const version = \"sha2/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport hash from \"hash.js\";\n//const _ripemd160 = _hash.ripemd160;\nimport { arrayify } from \"@ethersproject/bytes\";\nimport { SupportedAlgorithm } from \"./types\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nexport function ripemd160(data) {\n return \"0x\" + (hash.ripemd160().update(arrayify(data)).digest(\"hex\"));\n}\nexport function sha256(data) {\n return \"0x\" + (hash.sha256().update(arrayify(data)).digest(\"hex\"));\n}\nexport function sha512(data) {\n return \"0x\" + (hash.sha512().update(arrayify(data)).digest(\"hex\"));\n}\nexport function computeHmac(algorithm, key, data) {\n if (!SupportedAlgorithm[algorithm]) {\n logger.throwError(\"unsupported algorithm \" + algorithm, Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"hmac\",\n algorithm: algorithm\n });\n }\n return \"0x\" + hash.hmac(hash[algorithm], arrayify(key)).update(arrayify(data)).digest(\"hex\");\n}\n//# sourceMappingURL=sha2.js.map","\"use strict\";\nimport { arrayify, hexlify } from \"@ethersproject/bytes\";\nimport { computeHmac } from \"@ethersproject/sha2\";\nexport function pbkdf2(password, salt, iterations, keylen, hashAlgorithm) {\n password = arrayify(password);\n salt = arrayify(salt);\n let hLen;\n let l = 1;\n const DK = new Uint8Array(keylen);\n const block1 = new Uint8Array(salt.length + 4);\n block1.set(salt);\n //salt.copy(block1, 0, 0, salt.length)\n let r;\n let T;\n for (let i = 1; i <= l; i++) {\n //block1.writeUInt32BE(i, salt.length)\n block1[salt.length] = (i >> 24) & 0xff;\n block1[salt.length + 1] = (i >> 16) & 0xff;\n block1[salt.length + 2] = (i >> 8) & 0xff;\n block1[salt.length + 3] = i & 0xff;\n //let U = createHmac(password).update(block1).digest();\n let U = arrayify(computeHmac(hashAlgorithm, password, block1));\n if (!hLen) {\n hLen = U.length;\n T = new Uint8Array(hLen);\n l = Math.ceil(keylen / hLen);\n r = keylen - (l - 1) * hLen;\n }\n //U.copy(T, 0, 0, hLen)\n T.set(U);\n for (let j = 1; j < iterations; j++) {\n //U = createHmac(password).update(U).digest();\n U = arrayify(computeHmac(hashAlgorithm, password, U));\n for (let k = 0; k < hLen; k++)\n T[k] ^= U[k];\n }\n const destPos = (i - 1) * hLen;\n const len = (i === l ? r : hLen);\n //T.copy(DK, destPos, 0, len)\n DK.set(arrayify(T).slice(0, len), destPos);\n }\n return hexlify(DK);\n}\n//# sourceMappingURL=pbkdf2.js.map","export const version = \"wordlists/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\n// This gets overridden by rollup\nconst exportWordlist = false;\nimport { id } from \"@ethersproject/hash\";\nimport { defineReadOnly } from \"@ethersproject/properties\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nexport const logger = new Logger(version);\nexport class Wordlist {\n constructor(locale) {\n logger.checkAbstract(new.target, Wordlist);\n defineReadOnly(this, \"locale\", locale);\n }\n // Subclasses may override this\n split(mnemonic) {\n return mnemonic.toLowerCase().split(/ +/g);\n }\n // Subclasses may override this\n join(words) {\n return words.join(\" \");\n }\n static check(wordlist) {\n const words = [];\n for (let i = 0; i < 2048; i++) {\n const word = wordlist.getWord(i);\n /* istanbul ignore if */\n if (i !== wordlist.getWordIndex(word)) {\n return \"0x\";\n }\n words.push(word);\n }\n return id(words.join(\"\\n\") + \"\\n\");\n }\n static register(lang, name) {\n if (!name) {\n name = lang.locale;\n }\n /* istanbul ignore if */\n if (exportWordlist) {\n try {\n const anyGlobal = window;\n if (anyGlobal._ethers && anyGlobal._ethers.wordlists) {\n if (!anyGlobal._ethers.wordlists[name]) {\n defineReadOnly(anyGlobal._ethers.wordlists, name, lang);\n }\n }\n }\n catch (error) { }\n }\n }\n}\n//# sourceMappingURL=wordlist.js.map","\"use strict\";\nimport { Wordlist } from \"./wordlist\";\nconst words = \"AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo\";\nlet wordlist = null;\nfunction loadWords(lang) {\n if (wordlist != null) {\n return;\n }\n wordlist = words.replace(/([A-Z])/g, \" $1\").toLowerCase().substring(1).split(\" \");\n // Verify the computed list matches the official list\n /* istanbul ignore if */\n if (Wordlist.check(lang) !== \"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60\") {\n wordlist = null;\n throw new Error(\"BIP39 Wordlist for en (English) FAILED\");\n }\n}\nclass LangEn extends Wordlist {\n constructor() {\n super(\"en\");\n }\n getWord(index) {\n loadWords(this);\n return wordlist[index];\n }\n getWordIndex(word) {\n loadWords(this);\n return wordlist.indexOf(word);\n }\n}\nconst langEn = new LangEn();\nWordlist.register(langEn);\nexport { langEn };\n//# sourceMappingURL=lang-en.js.map","\"use strict\";\nimport { langEn as en } from \"./lang-en\";\nexport const wordlists = {\n en: en\n};\n//# sourceMappingURL=wordlists.js.map","export const version = \"hdnode/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { Base58 } from \"@ethersproject/basex\";\nimport { arrayify, concat, hexDataSlice, hexZeroPad, hexlify } from \"@ethersproject/bytes\";\nimport { BigNumber } from \"@ethersproject/bignumber\";\nimport { toUtf8Bytes, UnicodeNormalizationForm } from \"@ethersproject/strings\";\nimport { pbkdf2 } from \"@ethersproject/pbkdf2\";\nimport { defineReadOnly } from \"@ethersproject/properties\";\nimport { SigningKey } from \"@ethersproject/signing-key\";\nimport { computeHmac, ripemd160, sha256, SupportedAlgorithm } from \"@ethersproject/sha2\";\nimport { computeAddress } from \"@ethersproject/transactions\";\nimport { wordlists } from \"@ethersproject/wordlists\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nconst N = BigNumber.from(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\");\n// \"Bitcoin seed\"\nconst MasterSecret = toUtf8Bytes(\"Bitcoin seed\");\nconst HardenedBit = 0x80000000;\n// Returns a byte with the MSB bits set\nfunction getUpperMask(bits) {\n return ((1 << bits) - 1) << (8 - bits);\n}\n// Returns a byte with the LSB bits set\nfunction getLowerMask(bits) {\n return (1 << bits) - 1;\n}\nfunction bytes32(value) {\n return hexZeroPad(hexlify(value), 32);\n}\nfunction base58check(data) {\n return Base58.encode(concat([data, hexDataSlice(sha256(sha256(data)), 0, 4)]));\n}\nfunction getWordlist(wordlist) {\n if (wordlist == null) {\n return wordlists[\"en\"];\n }\n if (typeof (wordlist) === \"string\") {\n const words = wordlists[wordlist];\n if (words == null) {\n logger.throwArgumentError(\"unknown locale\", \"wordlist\", wordlist);\n }\n return words;\n }\n return wordlist;\n}\nconst _constructorGuard = {};\nexport const defaultPath = \"m/44'/60'/0'/0/0\";\n;\nexport class HDNode {\n /**\n * This constructor should not be called directly.\n *\n * Please use:\n * - fromMnemonic\n * - fromSeed\n */\n constructor(constructorGuard, privateKey, publicKey, parentFingerprint, chainCode, index, depth, mnemonicOrPath) {\n /* istanbul ignore if */\n if (constructorGuard !== _constructorGuard) {\n throw new Error(\"HDNode constructor cannot be called directly\");\n }\n if (privateKey) {\n const signingKey = new SigningKey(privateKey);\n defineReadOnly(this, \"privateKey\", signingKey.privateKey);\n defineReadOnly(this, \"publicKey\", signingKey.compressedPublicKey);\n }\n else {\n defineReadOnly(this, \"privateKey\", null);\n defineReadOnly(this, \"publicKey\", hexlify(publicKey));\n }\n defineReadOnly(this, \"parentFingerprint\", parentFingerprint);\n defineReadOnly(this, \"fingerprint\", hexDataSlice(ripemd160(sha256(this.publicKey)), 0, 4));\n defineReadOnly(this, \"address\", computeAddress(this.publicKey));\n defineReadOnly(this, \"chainCode\", chainCode);\n defineReadOnly(this, \"index\", index);\n defineReadOnly(this, \"depth\", depth);\n if (mnemonicOrPath == null) {\n // From a source that does not preserve the path (e.g. extended keys)\n defineReadOnly(this, \"mnemonic\", null);\n defineReadOnly(this, \"path\", null);\n }\n else if (typeof (mnemonicOrPath) === \"string\") {\n // From a source that does not preserve the mnemonic (e.g. neutered)\n defineReadOnly(this, \"mnemonic\", null);\n defineReadOnly(this, \"path\", mnemonicOrPath);\n }\n else {\n // From a fully qualified source\n defineReadOnly(this, \"mnemonic\", mnemonicOrPath);\n defineReadOnly(this, \"path\", mnemonicOrPath.path);\n }\n }\n get extendedKey() {\n // We only support the mainnet values for now, but if anyone needs\n // testnet values, let me know. I believe current sentiment is that\n // we should always use mainnet, and use BIP-44 to derive the network\n // - Mainnet: public=0x0488B21E, private=0x0488ADE4\n // - Testnet: public=0x043587CF, private=0x04358394\n if (this.depth >= 256) {\n throw new Error(\"Depth too large!\");\n }\n return base58check(concat([\n ((this.privateKey != null) ? \"0x0488ADE4\" : \"0x0488B21E\"),\n hexlify(this.depth),\n this.parentFingerprint,\n hexZeroPad(hexlify(this.index), 4),\n this.chainCode,\n ((this.privateKey != null) ? concat([\"0x00\", this.privateKey]) : this.publicKey),\n ]));\n }\n neuter() {\n return new HDNode(_constructorGuard, null, this.publicKey, this.parentFingerprint, this.chainCode, this.index, this.depth, this.path);\n }\n _derive(index) {\n if (index > 0xffffffff) {\n throw new Error(\"invalid index - \" + String(index));\n }\n // Base path\n let path = this.path;\n if (path) {\n path += \"/\" + (index & ~HardenedBit);\n }\n const data = new Uint8Array(37);\n if (index & HardenedBit) {\n if (!this.privateKey) {\n throw new Error(\"cannot derive child of neutered node\");\n }\n // Data = 0x00 || ser_256(k_par)\n data.set(arrayify(this.privateKey), 1);\n // Hardened path\n if (path) {\n path += \"'\";\n }\n }\n else {\n // Data = ser_p(point(k_par))\n data.set(arrayify(this.publicKey));\n }\n // Data += ser_32(i)\n for (let i = 24; i >= 0; i -= 8) {\n data[33 + (i >> 3)] = ((index >> (24 - i)) & 0xff);\n }\n const I = arrayify(computeHmac(SupportedAlgorithm.sha512, this.chainCode, data));\n const IL = I.slice(0, 32);\n const IR = I.slice(32);\n // The private key\n let ki = null;\n // The public key\n let Ki = null;\n if (this.privateKey) {\n ki = bytes32(BigNumber.from(IL).add(this.privateKey).mod(N));\n }\n else {\n const ek = new SigningKey(hexlify(IL));\n Ki = ek._addPoint(this.publicKey);\n }\n let mnemonicOrPath = path;\n const srcMnemonic = this.mnemonic;\n if (srcMnemonic) {\n mnemonicOrPath = Object.freeze({\n phrase: srcMnemonic.phrase,\n path: path,\n locale: (srcMnemonic.locale || \"en\")\n });\n }\n return new HDNode(_constructorGuard, ki, Ki, this.fingerprint, bytes32(IR), index, this.depth + 1, mnemonicOrPath);\n }\n derivePath(path) {\n const components = path.split(\"/\");\n if (components.length === 0 || (components[0] === \"m\" && this.depth !== 0)) {\n throw new Error(\"invalid path - \" + path);\n }\n if (components[0] === \"m\") {\n components.shift();\n }\n let result = this;\n for (let i = 0; i < components.length; i++) {\n const component = components[i];\n if (component.match(/^[0-9]+'$/)) {\n const index = parseInt(component.substring(0, component.length - 1));\n if (index >= HardenedBit) {\n throw new Error(\"invalid path index - \" + component);\n }\n result = result._derive(HardenedBit + index);\n }\n else if (component.match(/^[0-9]+$/)) {\n const index = parseInt(component);\n if (index >= HardenedBit) {\n throw new Error(\"invalid path index - \" + component);\n }\n result = result._derive(index);\n }\n else {\n throw new Error(\"invalid path component - \" + component);\n }\n }\n return result;\n }\n static _fromSeed(seed, mnemonic) {\n const seedArray = arrayify(seed);\n if (seedArray.length < 16 || seedArray.length > 64) {\n throw new Error(\"invalid seed\");\n }\n const I = arrayify(computeHmac(SupportedAlgorithm.sha512, MasterSecret, seedArray));\n return new HDNode(_constructorGuard, bytes32(I.slice(0, 32)), null, \"0x00000000\", bytes32(I.slice(32)), 0, 0, mnemonic);\n }\n static fromMnemonic(mnemonic, password, wordlist) {\n // If a locale name was passed in, find the associated wordlist\n wordlist = getWordlist(wordlist);\n // Normalize the case and spacing in the mnemonic (throws if the mnemonic is invalid)\n mnemonic = entropyToMnemonic(mnemonicToEntropy(mnemonic, wordlist), wordlist);\n return HDNode._fromSeed(mnemonicToSeed(mnemonic, password), {\n phrase: mnemonic,\n path: \"m\",\n locale: wordlist.locale\n });\n }\n static fromSeed(seed) {\n return HDNode._fromSeed(seed, null);\n }\n static fromExtendedKey(extendedKey) {\n const bytes = Base58.decode(extendedKey);\n if (bytes.length !== 82 || base58check(bytes.slice(0, 78)) !== extendedKey) {\n logger.throwArgumentError(\"invalid extended key\", \"extendedKey\", \"[REDACTED]\");\n }\n const depth = bytes[4];\n const parentFingerprint = hexlify(bytes.slice(5, 9));\n const index = parseInt(hexlify(bytes.slice(9, 13)).substring(2), 16);\n const chainCode = hexlify(bytes.slice(13, 45));\n const key = bytes.slice(45, 78);\n switch (hexlify(bytes.slice(0, 4))) {\n // Public Key\n case \"0x0488b21e\":\n case \"0x043587cf\":\n return new HDNode(_constructorGuard, null, hexlify(key), parentFingerprint, chainCode, index, depth, null);\n // Private Key\n case \"0x0488ade4\":\n case \"0x04358394 \":\n if (key[0] !== 0) {\n break;\n }\n return new HDNode(_constructorGuard, hexlify(key.slice(1)), null, parentFingerprint, chainCode, index, depth, null);\n }\n return logger.throwArgumentError(\"invalid extended key\", \"extendedKey\", \"[REDACTED]\");\n }\n}\nexport function mnemonicToSeed(mnemonic, password) {\n if (!password) {\n password = \"\";\n }\n const salt = toUtf8Bytes(\"mnemonic\" + password, UnicodeNormalizationForm.NFKD);\n return pbkdf2(toUtf8Bytes(mnemonic, UnicodeNormalizationForm.NFKD), salt, 2048, 64, \"sha512\");\n}\nexport function mnemonicToEntropy(mnemonic, wordlist) {\n wordlist = getWordlist(wordlist);\n logger.checkNormalize();\n const words = wordlist.split(mnemonic);\n if ((words.length % 3) !== 0) {\n throw new Error(\"invalid mnemonic\");\n }\n const entropy = arrayify(new Uint8Array(Math.ceil(11 * words.length / 8)));\n let offset = 0;\n for (let i = 0; i < words.length; i++) {\n let index = wordlist.getWordIndex(words[i].normalize(\"NFKD\"));\n if (index === -1) {\n throw new Error(\"invalid mnemonic\");\n }\n for (let bit = 0; bit < 11; bit++) {\n if (index & (1 << (10 - bit))) {\n entropy[offset >> 3] |= (1 << (7 - (offset % 8)));\n }\n offset++;\n }\n }\n const entropyBits = 32 * words.length / 3;\n const checksumBits = words.length / 3;\n const checksumMask = getUpperMask(checksumBits);\n const checksum = arrayify(sha256(entropy.slice(0, entropyBits / 8)))[0] & checksumMask;\n if (checksum !== (entropy[entropy.length - 1] & checksumMask)) {\n throw new Error(\"invalid checksum\");\n }\n return hexlify(entropy.slice(0, entropyBits / 8));\n}\nexport function entropyToMnemonic(entropy, wordlist) {\n wordlist = getWordlist(wordlist);\n entropy = arrayify(entropy);\n if ((entropy.length % 4) !== 0 || entropy.length < 16 || entropy.length > 32) {\n throw new Error(\"invalid entropy\");\n }\n const indices = [0];\n let remainingBits = 11;\n for (let i = 0; i < entropy.length; i++) {\n // Consume the whole byte (with still more to go)\n if (remainingBits > 8) {\n indices[indices.length - 1] <<= 8;\n indices[indices.length - 1] |= entropy[i];\n remainingBits -= 8;\n // This byte will complete an 11-bit index\n }\n else {\n indices[indices.length - 1] <<= remainingBits;\n indices[indices.length - 1] |= entropy[i] >> (8 - remainingBits);\n // Start the next word\n indices.push(entropy[i] & getLowerMask(8 - remainingBits));\n remainingBits += 3;\n }\n }\n // Compute the checksum bits\n const checksumBits = entropy.length / 4;\n const checksum = arrayify(sha256(entropy))[0] & getUpperMask(checksumBits);\n // Shift the checksum into the word indices\n indices[indices.length - 1] <<= checksumBits;\n indices[indices.length - 1] |= (checksum >> (8 - checksumBits));\n return wordlist.join(indices.map((index) => wordlist.getWord(index)));\n}\nexport function isValidMnemonic(mnemonic, wordlist) {\n try {\n mnemonicToEntropy(mnemonic, wordlist);\n return true;\n }\n catch (error) { }\n return false;\n}\nexport function getAccountPath(index) {\n if (typeof (index) !== \"number\" || index < 0 || index >= HardenedBit || index % 1) {\n logger.throwArgumentError(\"invalid account index\", \"index\", index);\n }\n return `m/44'/60'/${index}'/0/0`;\n}\n//# sourceMappingURL=index.js.map","export const version = \"random/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { arrayify } from \"@ethersproject/bytes\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\n// Debugging line for testing browser lib in node\n//const window = { crypto: { getRandomValues: () => { } } };\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis\nfunction getGlobal() {\n if (typeof self !== 'undefined') {\n return self;\n }\n if (typeof window !== 'undefined') {\n return window;\n }\n if (typeof global !== 'undefined') {\n return global;\n }\n throw new Error('unable to locate global object');\n}\n;\nconst anyGlobal = getGlobal();\nlet crypto = anyGlobal.crypto || anyGlobal.msCrypto;\nif (!crypto || !crypto.getRandomValues) {\n logger.warn(\"WARNING: Missing strong random number source\");\n crypto = {\n getRandomValues: function (buffer) {\n return logger.throwError(\"no secure random source avaialble\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"crypto.getRandomValues\"\n });\n }\n };\n}\nexport function randomBytes(length) {\n if (length <= 0 || length > 1024 || (length % 1) || length != length) {\n logger.throwArgumentError(\"invalid length\", \"length\", length);\n }\n const result = new Uint8Array(length);\n crypto.getRandomValues(result);\n return arrayify(result);\n}\n;\n//# sourceMappingURL=random.js.map","\"use strict\";\n\n(function(root) {\n\n function checkInt(value) {\n return (parseInt(value) === value);\n }\n\n function checkInts(arrayish) {\n if (!checkInt(arrayish.length)) { return false; }\n\n for (var i = 0; i < arrayish.length; i++) {\n if (!checkInt(arrayish[i]) || arrayish[i] < 0 || arrayish[i] > 255) {\n return false;\n }\n }\n\n return true;\n }\n\n function coerceArray(arg, copy) {\n\n // ArrayBuffer view\n if (arg.buffer && ArrayBuffer.isView(arg) && arg.name === 'Uint8Array') {\n\n if (copy) {\n if (arg.slice) {\n arg = arg.slice();\n } else {\n arg = Array.prototype.slice.call(arg);\n }\n }\n\n return arg;\n }\n\n // It's an array; check it is a valid representation of a byte\n if (Array.isArray(arg)) {\n if (!checkInts(arg)) {\n throw new Error('Array contains invalid value: ' + arg);\n }\n\n return new Uint8Array(arg);\n }\n\n // Something else, but behaves like an array (maybe a Buffer? Arguments?)\n if (checkInt(arg.length) && checkInts(arg)) {\n return new Uint8Array(arg);\n }\n\n throw new Error('unsupported array-like object');\n }\n\n function createArray(length) {\n return new Uint8Array(length);\n }\n\n function copyArray(sourceArray, targetArray, targetStart, sourceStart, sourceEnd) {\n if (sourceStart != null || sourceEnd != null) {\n if (sourceArray.slice) {\n sourceArray = sourceArray.slice(sourceStart, sourceEnd);\n } else {\n sourceArray = Array.prototype.slice.call(sourceArray, sourceStart, sourceEnd);\n }\n }\n targetArray.set(sourceArray, targetStart);\n }\n\n\n\n var convertUtf8 = (function() {\n function toBytes(text) {\n var result = [], i = 0;\n text = encodeURI(text);\n while (i < text.length) {\n var c = text.charCodeAt(i++);\n\n // if it is a % sign, encode the following 2 bytes as a hex value\n if (c === 37) {\n result.push(parseInt(text.substr(i, 2), 16))\n i += 2;\n\n // otherwise, just the actual byte\n } else {\n result.push(c)\n }\n }\n\n return coerceArray(result);\n }\n\n function fromBytes(bytes) {\n var result = [], i = 0;\n\n while (i < bytes.length) {\n var c = bytes[i];\n\n if (c < 128) {\n result.push(String.fromCharCode(c));\n i++;\n } else if (c > 191 && c < 224) {\n result.push(String.fromCharCode(((c & 0x1f) << 6) | (bytes[i + 1] & 0x3f)));\n i += 2;\n } else {\n result.push(String.fromCharCode(((c & 0x0f) << 12) | ((bytes[i + 1] & 0x3f) << 6) | (bytes[i + 2] & 0x3f)));\n i += 3;\n }\n }\n\n return result.join('');\n }\n\n return {\n toBytes: toBytes,\n fromBytes: fromBytes,\n }\n })();\n\n var convertHex = (function() {\n function toBytes(text) {\n var result = [];\n for (var i = 0; i < text.length; i += 2) {\n result.push(parseInt(text.substr(i, 2), 16));\n }\n\n return result;\n }\n\n // http://ixti.net/development/javascript/2011/11/11/base64-encodedecode-of-utf8-in-browser-with-js.html\n var Hex = '0123456789abcdef';\n\n function fromBytes(bytes) {\n var result = [];\n for (var i = 0; i < bytes.length; i++) {\n var v = bytes[i];\n result.push(Hex[(v & 0xf0) >> 4] + Hex[v & 0x0f]);\n }\n return result.join('');\n }\n\n return {\n toBytes: toBytes,\n fromBytes: fromBytes,\n }\n })();\n\n\n // Number of rounds by keysize\n var numberOfRounds = {16: 10, 24: 12, 32: 14}\n\n // Round constant words\n var rcon = [0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91];\n\n // S-box and Inverse S-box (S is for Substitution)\n var S = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06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8d, 0x9d, 0x84, 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02, 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73, 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89, 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4, 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d, 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61, 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d];\n\n // Transformations for encryption\n var T1 = [0xc66363a5, 0xf87c7c84, 0xee777799, 0xf67b7b8d, 0xfff2f20d, 0xd66b6bbd, 0xde6f6fb1, 0x91c5c554, 0x60303050, 0x02010103, 0xce6767a9, 0x562b2b7d, 0xe7fefe19, 0xb5d7d762, 0x4dababe6, 0xec76769a, 0x8fcaca45, 0x1f82829d, 0x89c9c940, 0xfa7d7d87, 0xeffafa15, 0xb25959eb, 0x8e4747c9, 0xfbf0f00b, 0x41adadec, 0xb3d4d467, 0x5fa2a2fd, 0x45afafea, 0x239c9cbf, 0x53a4a4f7, 0xe4727296, 0x9bc0c05b, 0x75b7b7c2, 0xe1fdfd1c, 0x3d9393ae, 0x4c26266a, 0x6c36365a, 0x7e3f3f41, 0xf5f7f702, 0x83cccc4f, 0x6834345c, 0x51a5a5f4, 0xd1e5e534, 0xf9f1f108, 0xe2717193, 0xabd8d873, 0x62313153, 0x2a15153f, 0x0804040c, 0x95c7c752, 0x46232365, 0x9dc3c35e, 0x30181828, 0x379696a1, 0x0a05050f, 0x2f9a9ab5, 0x0e070709, 0x24121236, 0x1b80809b, 0xdfe2e23d, 0xcdebeb26, 0x4e272769, 0x7fb2b2cd, 0xea75759f, 0x1209091b, 0x1d83839e, 0x582c2c74, 0x341a1a2e, 0x361b1b2d, 0xdc6e6eb2, 0xb45a5aee, 0x5ba0a0fb, 0xa45252f6, 0x763b3b4d, 0xb7d6d661, 0x7db3b3ce, 0x5229297b, 0xdde3e33e, 0x5e2f2f71, 0x13848497, 0xa65353f5, 0xb9d1d168, 0x00000000, 0xc1eded2c, 0x40202060, 0xe3fcfc1f, 0x79b1b1c8, 0xb65b5bed, 0xd46a6abe, 0x8dcbcb46, 0x67bebed9, 0x7239394b, 0x944a4ade, 0x984c4cd4, 0xb05858e8, 0x85cfcf4a, 0xbbd0d06b, 0xc5efef2a, 0x4faaaae5, 0xedfbfb16, 0x864343c5, 0x9a4d4dd7, 0x66333355, 0x11858594, 0x8a4545cf, 0xe9f9f910, 0x04020206, 0xfe7f7f81, 0xa05050f0, 0x783c3c44, 0x259f9fba, 0x4ba8a8e3, 0xa25151f3, 0x5da3a3fe, 0x804040c0, 0x058f8f8a, 0x3f9292ad, 0x219d9dbc, 0x70383848, 0xf1f5f504, 0x63bcbcdf, 0x77b6b6c1, 0xafdada75, 0x42212163, 0x20101030, 0xe5ffff1a, 0xfdf3f30e, 0xbfd2d26d, 0x81cdcd4c, 0x180c0c14, 0x26131335, 0xc3ecec2f, 0xbe5f5fe1, 0x359797a2, 0x884444cc, 0x2e171739, 0x93c4c457, 0x55a7a7f2, 0xfc7e7e82, 0x7a3d3d47, 0xc86464ac, 0xba5d5de7, 0x3219192b, 0xe6737395, 0xc06060a0, 0x19818198, 0x9e4f4fd1, 0xa3dcdc7f, 0x44222266, 0x542a2a7e, 0x3b9090ab, 0x0b888883, 0x8c4646ca, 0xc7eeee29, 0x6bb8b8d3, 0x2814143c, 0xa7dede79, 0xbc5e5ee2, 0x160b0b1d, 0xaddbdb76, 0xdbe0e03b, 0x64323256, 0x743a3a4e, 0x140a0a1e, 0x924949db, 0x0c06060a, 0x4824246c, 0xb85c5ce4, 0x9fc2c25d, 0xbdd3d36e, 0x43acacef, 0xc46262a6, 0x399191a8, 0x319595a4, 0xd3e4e437, 0xf279798b, 0xd5e7e732, 0x8bc8c843, 0x6e373759, 0xda6d6db7, 0x018d8d8c, 0xb1d5d564, 0x9c4e4ed2, 0x49a9a9e0, 0xd86c6cb4, 0xac5656fa, 0xf3f4f407, 0xcfeaea25, 0xca6565af, 0xf47a7a8e, 0x47aeaee9, 0x10080818, 0x6fbabad5, 0xf0787888, 0x4a25256f, 0x5c2e2e72, 0x381c1c24, 0x57a6a6f1, 0x73b4b4c7, 0x97c6c651, 0xcbe8e823, 0xa1dddd7c, 0xe874749c, 0x3e1f1f21, 0x964b4bdd, 0x61bdbddc, 0x0d8b8b86, 0x0f8a8a85, 0xe0707090, 0x7c3e3e42, 0x71b5b5c4, 0xcc6666aa, 0x904848d8, 0x06030305, 0xf7f6f601, 0x1c0e0e12, 0xc26161a3, 0x6a35355f, 0xae5757f9, 0x69b9b9d0, 0x17868691, 0x99c1c158, 0x3a1d1d27, 0x279e9eb9, 0xd9e1e138, 0xebf8f813, 0x2b9898b3, 0x22111133, 0xd26969bb, 0xa9d9d970, 0x078e8e89, 0x339494a7, 0x2d9b9bb6, 0x3c1e1e22, 0x15878792, 0xc9e9e920, 0x87cece49, 0xaa5555ff, 0x50282878, 0xa5dfdf7a, 0x038c8c8f, 0x59a1a1f8, 0x09898980, 0x1a0d0d17, 0x65bfbfda, 0xd7e6e631, 0x844242c6, 0xd06868b8, 0x824141c3, 0x299999b0, 0x5a2d2d77, 0x1e0f0f11, 0x7bb0b0cb, 0xa85454fc, 0x6dbbbbd6, 0x2c16163a];\n var T2 = [0xa5c66363, 0x84f87c7c, 0x99ee7777, 0x8df67b7b, 0x0dfff2f2, 0xbdd66b6b, 0xb1de6f6f, 0x5491c5c5, 0x50603030, 0x03020101, 0xa9ce6767, 0x7d562b2b, 0x19e7fefe, 0x62b5d7d7, 0xe64dabab, 0x9aec7676, 0x458fcaca, 0x9d1f8282, 0x4089c9c9, 0x87fa7d7d, 0x15effafa, 0xebb25959, 0xc98e4747, 0x0bfbf0f0, 0xec41adad, 0x67b3d4d4, 0xfd5fa2a2, 0xea45afaf, 0xbf239c9c, 0xf753a4a4, 0x96e47272, 0x5b9bc0c0, 0xc275b7b7, 0x1ce1fdfd, 0xae3d9393, 0x6a4c2626, 0x5a6c3636, 0x417e3f3f, 0x02f5f7f7, 0x4f83cccc, 0x5c683434, 0xf451a5a5, 0x34d1e5e5, 0x08f9f1f1, 0x93e27171, 0x73abd8d8, 0x53623131, 0x3f2a1515, 0x0c080404, 0x5295c7c7, 0x65462323, 0x5e9dc3c3, 0x28301818, 0xa1379696, 0x0f0a0505, 0xb52f9a9a, 0x090e0707, 0x36241212, 0x9b1b8080, 0x3ddfe2e2, 0x26cdebeb, 0x694e2727, 0xcd7fb2b2, 0x9fea7575, 0x1b120909, 0x9e1d8383, 0x74582c2c, 0x2e341a1a, 0x2d361b1b, 0xb2dc6e6e, 0xeeb45a5a, 0xfb5ba0a0, 0xf6a45252, 0x4d763b3b, 0x61b7d6d6, 0xce7db3b3, 0x7b522929, 0x3edde3e3, 0x715e2f2f, 0x97138484, 0xf5a65353, 0x68b9d1d1, 0x00000000, 0x2cc1eded, 0x60402020, 0x1fe3fcfc, 0xc879b1b1, 0xedb65b5b, 0xbed46a6a, 0x468dcbcb, 0xd967bebe, 0x4b723939, 0xde944a4a, 0xd4984c4c, 0xe8b05858, 0x4a85cfcf, 0x6bbbd0d0, 0x2ac5efef, 0xe54faaaa, 0x16edfbfb, 0xc5864343, 0xd79a4d4d, 0x55663333, 0x94118585, 0xcf8a4545, 0x10e9f9f9, 0x06040202, 0x81fe7f7f, 0xf0a05050, 0x44783c3c, 0xba259f9f, 0xe34ba8a8, 0xf3a25151, 0xfe5da3a3, 0xc0804040, 0x8a058f8f, 0xad3f9292, 0xbc219d9d, 0x48703838, 0x04f1f5f5, 0xdf63bcbc, 0xc177b6b6, 0x75afdada, 0x63422121, 0x30201010, 0x1ae5ffff, 0x0efdf3f3, 0x6dbfd2d2, 0x4c81cdcd, 0x14180c0c, 0x35261313, 0x2fc3ecec, 0xe1be5f5f, 0xa2359797, 0xcc884444, 0x392e1717, 0x5793c4c4, 0xf255a7a7, 0x82fc7e7e, 0x477a3d3d, 0xacc86464, 0xe7ba5d5d, 0x2b321919, 0x95e67373, 0xa0c06060, 0x98198181, 0xd19e4f4f, 0x7fa3dcdc, 0x66442222, 0x7e542a2a, 0xab3b9090, 0x830b8888, 0xca8c4646, 0x29c7eeee, 0xd36bb8b8, 0x3c281414, 0x79a7dede, 0xe2bc5e5e, 0x1d160b0b, 0x76addbdb, 0x3bdbe0e0, 0x56643232, 0x4e743a3a, 0x1e140a0a, 0xdb924949, 0x0a0c0606, 0x6c482424, 0xe4b85c5c, 0x5d9fc2c2, 0x6ebdd3d3, 0xef43acac, 0xa6c46262, 0xa8399191, 0xa4319595, 0x37d3e4e4, 0x8bf27979, 0x32d5e7e7, 0x438bc8c8, 0x596e3737, 0xb7da6d6d, 0x8c018d8d, 0x64b1d5d5, 0xd29c4e4e, 0xe049a9a9, 0xb4d86c6c, 0xfaac5656, 0x07f3f4f4, 0x25cfeaea, 0xafca6565, 0x8ef47a7a, 0xe947aeae, 0x18100808, 0xd56fbaba, 0x88f07878, 0x6f4a2525, 0x725c2e2e, 0x24381c1c, 0xf157a6a6, 0xc773b4b4, 0x5197c6c6, 0x23cbe8e8, 0x7ca1dddd, 0x9ce87474, 0x213e1f1f, 0xdd964b4b, 0xdc61bdbd, 0x860d8b8b, 0x850f8a8a, 0x90e07070, 0x427c3e3e, 0xc471b5b5, 0xaacc6666, 0xd8904848, 0x05060303, 0x01f7f6f6, 0x121c0e0e, 0xa3c26161, 0x5f6a3535, 0xf9ae5757, 0xd069b9b9, 0x91178686, 0x5899c1c1, 0x273a1d1d, 0xb9279e9e, 0x38d9e1e1, 0x13ebf8f8, 0xb32b9898, 0x33221111, 0xbbd26969, 0x70a9d9d9, 0x89078e8e, 0xa7339494, 0xb62d9b9b, 0x223c1e1e, 0x92158787, 0x20c9e9e9, 0x4987cece, 0xffaa5555, 0x78502828, 0x7aa5dfdf, 0x8f038c8c, 0xf859a1a1, 0x80098989, 0x171a0d0d, 0xda65bfbf, 0x31d7e6e6, 0xc6844242, 0xb8d06868, 0xc3824141, 0xb0299999, 0x775a2d2d, 0x111e0f0f, 0xcb7bb0b0, 0xfca85454, 0xd66dbbbb, 0x3a2c1616];\n var T3 = [0x63a5c663, 0x7c84f87c, 0x7799ee77, 0x7b8df67b, 0xf20dfff2, 0x6bbdd66b, 0x6fb1de6f, 0xc55491c5, 0x30506030, 0x01030201, 0x67a9ce67, 0x2b7d562b, 0xfe19e7fe, 0xd762b5d7, 0xabe64dab, 0x769aec76, 0xca458fca, 0x829d1f82, 0xc94089c9, 0x7d87fa7d, 0xfa15effa, 0x59ebb259, 0x47c98e47, 0xf00bfbf0, 0xadec41ad, 0xd467b3d4, 0xa2fd5fa2, 0xafea45af, 0x9cbf239c, 0xa4f753a4, 0x7296e472, 0xc05b9bc0, 0xb7c275b7, 0xfd1ce1fd, 0x93ae3d93, 0x266a4c26, 0x365a6c36, 0x3f417e3f, 0xf702f5f7, 0xcc4f83cc, 0x345c6834, 0xa5f451a5, 0xe534d1e5, 0xf108f9f1, 0x7193e271, 0xd873abd8, 0x31536231, 0x153f2a15, 0x040c0804, 0xc75295c7, 0x23654623, 0xc35e9dc3, 0x18283018, 0x96a13796, 0x050f0a05, 0x9ab52f9a, 0x07090e07, 0x12362412, 0x809b1b80, 0xe23ddfe2, 0xeb26cdeb, 0x27694e27, 0xb2cd7fb2, 0x759fea75, 0x091b1209, 0x839e1d83, 0x2c74582c, 0x1a2e341a, 0x1b2d361b, 0x6eb2dc6e, 0x5aeeb45a, 0xa0fb5ba0, 0x52f6a452, 0x3b4d763b, 0xd661b7d6, 0xb3ce7db3, 0x297b5229, 0xe33edde3, 0x2f715e2f, 0x84971384, 0x53f5a653, 0xd168b9d1, 0x00000000, 0xed2cc1ed, 0x20604020, 0xfc1fe3fc, 0xb1c879b1, 0x5bedb65b, 0x6abed46a, 0xcb468dcb, 0xbed967be, 0x394b7239, 0x4ade944a, 0x4cd4984c, 0x58e8b058, 0xcf4a85cf, 0xd06bbbd0, 0xef2ac5ef, 0xaae54faa, 0xfb16edfb, 0x43c58643, 0x4dd79a4d, 0x33556633, 0x85941185, 0x45cf8a45, 0xf910e9f9, 0x02060402, 0x7f81fe7f, 0x50f0a050, 0x3c44783c, 0x9fba259f, 0xa8e34ba8, 0x51f3a251, 0xa3fe5da3, 0x40c08040, 0x8f8a058f, 0x92ad3f92, 0x9dbc219d, 0x38487038, 0xf504f1f5, 0xbcdf63bc, 0xb6c177b6, 0xda75afda, 0x21634221, 0x10302010, 0xff1ae5ff, 0xf30efdf3, 0xd26dbfd2, 0xcd4c81cd, 0x0c14180c, 0x13352613, 0xec2fc3ec, 0x5fe1be5f, 0x97a23597, 0x44cc8844, 0x17392e17, 0xc45793c4, 0xa7f255a7, 0x7e82fc7e, 0x3d477a3d, 0x64acc864, 0x5de7ba5d, 0x192b3219, 0x7395e673, 0x60a0c060, 0x81981981, 0x4fd19e4f, 0xdc7fa3dc, 0x22664422, 0x2a7e542a, 0x90ab3b90, 0x88830b88, 0x46ca8c46, 0xee29c7ee, 0xb8d36bb8, 0x143c2814, 0xde79a7de, 0x5ee2bc5e, 0x0b1d160b, 0xdb76addb, 0xe03bdbe0, 0x32566432, 0x3a4e743a, 0x0a1e140a, 0x49db9249, 0x060a0c06, 0x246c4824, 0x5ce4b85c, 0xc25d9fc2, 0xd36ebdd3, 0xacef43ac, 0x62a6c462, 0x91a83991, 0x95a43195, 0xe437d3e4, 0x798bf279, 0xe732d5e7, 0xc8438bc8, 0x37596e37, 0x6db7da6d, 0x8d8c018d, 0xd564b1d5, 0x4ed29c4e, 0xa9e049a9, 0x6cb4d86c, 0x56faac56, 0xf407f3f4, 0xea25cfea, 0x65afca65, 0x7a8ef47a, 0xaee947ae, 0x08181008, 0xbad56fba, 0x7888f078, 0x256f4a25, 0x2e725c2e, 0x1c24381c, 0xa6f157a6, 0xb4c773b4, 0xc65197c6, 0xe823cbe8, 0xdd7ca1dd, 0x749ce874, 0x1f213e1f, 0x4bdd964b, 0xbddc61bd, 0x8b860d8b, 0x8a850f8a, 0x7090e070, 0x3e427c3e, 0xb5c471b5, 0x66aacc66, 0x48d89048, 0x03050603, 0xf601f7f6, 0x0e121c0e, 0x61a3c261, 0x355f6a35, 0x57f9ae57, 0xb9d069b9, 0x86911786, 0xc15899c1, 0x1d273a1d, 0x9eb9279e, 0xe138d9e1, 0xf813ebf8, 0x98b32b98, 0x11332211, 0x69bbd269, 0xd970a9d9, 0x8e89078e, 0x94a73394, 0x9bb62d9b, 0x1e223c1e, 0x87921587, 0xe920c9e9, 0xce4987ce, 0x55ffaa55, 0x28785028, 0xdf7aa5df, 0x8c8f038c, 0xa1f859a1, 0x89800989, 0x0d171a0d, 0xbfda65bf, 0xe631d7e6, 0x42c68442, 0x68b8d068, 0x41c38241, 0x99b02999, 0x2d775a2d, 0x0f111e0f, 0xb0cb7bb0, 0x54fca854, 0xbbd66dbb, 0x163a2c16];\n var T4 = [0x6363a5c6, 0x7c7c84f8, 0x777799ee, 0x7b7b8df6, 0xf2f20dff, 0x6b6bbdd6, 0x6f6fb1de, 0xc5c55491, 0x30305060, 0x01010302, 0x6767a9ce, 0x2b2b7d56, 0xfefe19e7, 0xd7d762b5, 0xababe64d, 0x76769aec, 0xcaca458f, 0x82829d1f, 0xc9c94089, 0x7d7d87fa, 0xfafa15ef, 0x5959ebb2, 0x4747c98e, 0xf0f00bfb, 0xadadec41, 0xd4d467b3, 0xa2a2fd5f, 0xafafea45, 0x9c9cbf23, 0xa4a4f753, 0x727296e4, 0xc0c05b9b, 0xb7b7c275, 0xfdfd1ce1, 0x9393ae3d, 0x26266a4c, 0x36365a6c, 0x3f3f417e, 0xf7f702f5, 0xcccc4f83, 0x34345c68, 0xa5a5f451, 0xe5e534d1, 0xf1f108f9, 0x717193e2, 0xd8d873ab, 0x31315362, 0x15153f2a, 0x04040c08, 0xc7c75295, 0x23236546, 0xc3c35e9d, 0x18182830, 0x9696a137, 0x05050f0a, 0x9a9ab52f, 0x0707090e, 0x12123624, 0x80809b1b, 0xe2e23ddf, 0xebeb26cd, 0x2727694e, 0xb2b2cd7f, 0x75759fea, 0x09091b12, 0x83839e1d, 0x2c2c7458, 0x1a1a2e34, 0x1b1b2d36, 0x6e6eb2dc, 0x5a5aeeb4, 0xa0a0fb5b, 0x5252f6a4, 0x3b3b4d76, 0xd6d661b7, 0xb3b3ce7d, 0x29297b52, 0xe3e33edd, 0x2f2f715e, 0x84849713, 0x5353f5a6, 0xd1d168b9, 0x00000000, 0xeded2cc1, 0x20206040, 0xfcfc1fe3, 0xb1b1c879, 0x5b5bedb6, 0x6a6abed4, 0xcbcb468d, 0xbebed967, 0x39394b72, 0x4a4ade94, 0x4c4cd498, 0x5858e8b0, 0xcfcf4a85, 0xd0d06bbb, 0xefef2ac5, 0xaaaae54f, 0xfbfb16ed, 0x4343c586, 0x4d4dd79a, 0x33335566, 0x85859411, 0x4545cf8a, 0xf9f910e9, 0x02020604, 0x7f7f81fe, 0x5050f0a0, 0x3c3c4478, 0x9f9fba25, 0xa8a8e34b, 0x5151f3a2, 0xa3a3fe5d, 0x4040c080, 0x8f8f8a05, 0x9292ad3f, 0x9d9dbc21, 0x38384870, 0xf5f504f1, 0xbcbcdf63, 0xb6b6c177, 0xdada75af, 0x21216342, 0x10103020, 0xffff1ae5, 0xf3f30efd, 0xd2d26dbf, 0xcdcd4c81, 0x0c0c1418, 0x13133526, 0xecec2fc3, 0x5f5fe1be, 0x9797a235, 0x4444cc88, 0x1717392e, 0xc4c45793, 0xa7a7f255, 0x7e7e82fc, 0x3d3d477a, 0x6464acc8, 0x5d5de7ba, 0x19192b32, 0x737395e6, 0x6060a0c0, 0x81819819, 0x4f4fd19e, 0xdcdc7fa3, 0x22226644, 0x2a2a7e54, 0x9090ab3b, 0x8888830b, 0x4646ca8c, 0xeeee29c7, 0xb8b8d36b, 0x14143c28, 0xdede79a7, 0x5e5ee2bc, 0x0b0b1d16, 0xdbdb76ad, 0xe0e03bdb, 0x32325664, 0x3a3a4e74, 0x0a0a1e14, 0x4949db92, 0x06060a0c, 0x24246c48, 0x5c5ce4b8, 0xc2c25d9f, 0xd3d36ebd, 0xacacef43, 0x6262a6c4, 0x9191a839, 0x9595a431, 0xe4e437d3, 0x79798bf2, 0xe7e732d5, 0xc8c8438b, 0x3737596e, 0x6d6db7da, 0x8d8d8c01, 0xd5d564b1, 0x4e4ed29c, 0xa9a9e049, 0x6c6cb4d8, 0x5656faac, 0xf4f407f3, 0xeaea25cf, 0x6565afca, 0x7a7a8ef4, 0xaeaee947, 0x08081810, 0xbabad56f, 0x787888f0, 0x25256f4a, 0x2e2e725c, 0x1c1c2438, 0xa6a6f157, 0xb4b4c773, 0xc6c65197, 0xe8e823cb, 0xdddd7ca1, 0x74749ce8, 0x1f1f213e, 0x4b4bdd96, 0xbdbddc61, 0x8b8b860d, 0x8a8a850f, 0x707090e0, 0x3e3e427c, 0xb5b5c471, 0x6666aacc, 0x4848d890, 0x03030506, 0xf6f601f7, 0x0e0e121c, 0x6161a3c2, 0x35355f6a, 0x5757f9ae, 0xb9b9d069, 0x86869117, 0xc1c15899, 0x1d1d273a, 0x9e9eb927, 0xe1e138d9, 0xf8f813eb, 0x9898b32b, 0x11113322, 0x6969bbd2, 0xd9d970a9, 0x8e8e8907, 0x9494a733, 0x9b9bb62d, 0x1e1e223c, 0x87879215, 0xe9e920c9, 0xcece4987, 0x5555ffaa, 0x28287850, 0xdfdf7aa5, 0x8c8c8f03, 0xa1a1f859, 0x89898009, 0x0d0d171a, 0xbfbfda65, 0xe6e631d7, 0x4242c684, 0x6868b8d0, 0x4141c382, 0x9999b029, 0x2d2d775a, 0x0f0f111e, 0xb0b0cb7b, 0x5454fca8, 0xbbbbd66d, 0x16163a2c];\n\n // Transformations for decryption\n var T5 = [0x51f4a750, 0x7e416553, 0x1a17a4c3, 0x3a275e96, 0x3bab6bcb, 0x1f9d45f1, 0xacfa58ab, 0x4be30393, 0x2030fa55, 0xad766df6, 0x88cc7691, 0xf5024c25, 0x4fe5d7fc, 0xc52acbd7, 0x26354480, 0xb562a38f, 0xdeb15a49, 0x25ba1b67, 0x45ea0e98, 0x5dfec0e1, 0xc32f7502, 0x814cf012, 0x8d4697a3, 0x6bd3f9c6, 0x038f5fe7, 0x15929c95, 0xbf6d7aeb, 0x955259da, 0xd4be832d, 0x587421d3, 0x49e06929, 0x8ec9c844, 0x75c2896a, 0xf48e7978, 0x99583e6b, 0x27b971dd, 0xbee14fb6, 0xf088ad17, 0xc920ac66, 0x7dce3ab4, 0x63df4a18, 0xe51a3182, 0x97513360, 0x62537f45, 0xb16477e0, 0xbb6bae84, 0xfe81a01c, 0xf9082b94, 0x70486858, 0x8f45fd19, 0x94de6c87, 0x527bf8b7, 0xab73d323, 0x724b02e2, 0xe31f8f57, 0x6655ab2a, 0xb2eb2807, 0x2fb5c203, 0x86c57b9a, 0xd33708a5, 0x302887f2, 0x23bfa5b2, 0x02036aba, 0xed16825c, 0x8acf1c2b, 0xa779b492, 0xf307f2f0, 0x4e69e2a1, 0x65daf4cd, 0x0605bed5, 0xd134621f, 0xc4a6fe8a, 0x342e539d, 0xa2f355a0, 0x058ae132, 0xa4f6eb75, 0x0b83ec39, 0x4060efaa, 0x5e719f06, 0xbd6e1051, 0x3e218af9, 0x96dd063d, 0xdd3e05ae, 0x4de6bd46, 0x91548db5, 0x71c45d05, 0x0406d46f, 0x605015ff, 0x1998fb24, 0xd6bde997, 0x894043cc, 0x67d99e77, 0xb0e842bd, 0x07898b88, 0xe7195b38, 0x79c8eedb, 0xa17c0a47, 0x7c420fe9, 0xf8841ec9, 0x00000000, 0x09808683, 0x322bed48, 0x1e1170ac, 0x6c5a724e, 0xfd0efffb, 0x0f853856, 0x3daed51e, 0x362d3927, 0x0a0fd964, 0x685ca621, 0x9b5b54d1, 0x24362e3a, 0x0c0a67b1, 0x9357e70f, 0xb4ee96d2, 0x1b9b919e, 0x80c0c54f, 0x61dc20a2, 0x5a774b69, 0x1c121a16, 0xe293ba0a, 0xc0a02ae5, 0x3c22e043, 0x121b171d, 0x0e090d0b, 0xf28bc7ad, 0x2db6a8b9, 0x141ea9c8, 0x57f11985, 0xaf75074c, 0xee99ddbb, 0xa37f60fd, 0xf701269f, 0x5c72f5bc, 0x44663bc5, 0x5bfb7e34, 0x8b432976, 0xcb23c6dc, 0xb6edfc68, 0xb8e4f163, 0xd731dcca, 0x42638510, 0x13972240, 0x84c61120, 0x854a247d, 0xd2bb3df8, 0xaef93211, 0xc729a16d, 0x1d9e2f4b, 0xdcb230f3, 0x0d8652ec, 0x77c1e3d0, 0x2bb3166c, 0xa970b999, 0x119448fa, 0x47e96422, 0xa8fc8cc4, 0xa0f03f1a, 0x567d2cd8, 0x223390ef, 0x87494ec7, 0xd938d1c1, 0x8ccaa2fe, 0x98d40b36, 0xa6f581cf, 0xa57ade28, 0xdab78e26, 0x3fadbfa4, 0x2c3a9de4, 0x5078920d, 0x6a5fcc9b, 0x547e4662, 0xf68d13c2, 0x90d8b8e8, 0x2e39f75e, 0x82c3aff5, 0x9f5d80be, 0x69d0937c, 0x6fd52da9, 0xcf2512b3, 0xc8ac993b, 0x10187da7, 0xe89c636e, 0xdb3bbb7b, 0xcd267809, 0x6e5918f4, 0xec9ab701, 0x834f9aa8, 0xe6956e65, 0xaaffe67e, 0x21bccf08, 0xef15e8e6, 0xbae79bd9, 0x4a6f36ce, 0xea9f09d4, 0x29b07cd6, 0x31a4b2af, 0x2a3f2331, 0xc6a59430, 0x35a266c0, 0x744ebc37, 0xfc82caa6, 0xe090d0b0, 0x33a7d815, 0xf104984a, 0x41ecdaf7, 0x7fcd500e, 0x1791f62f, 0x764dd68d, 0x43efb04d, 0xccaa4d54, 0xe49604df, 0x9ed1b5e3, 0x4c6a881b, 0xc12c1fb8, 0x4665517f, 0x9d5eea04, 0x018c355d, 0xfa877473, 0xfb0b412e, 0xb3671d5a, 0x92dbd252, 0xe9105633, 0x6dd64713, 0x9ad7618c, 0x37a10c7a, 0x59f8148e, 0xeb133c89, 0xcea927ee, 0xb761c935, 0xe11ce5ed, 0x7a47b13c, 0x9cd2df59, 0x55f2733f, 0x1814ce79, 0x73c737bf, 0x53f7cdea, 0x5ffdaa5b, 0xdf3d6f14, 0x7844db86, 0xcaaff381, 0xb968c43e, 0x3824342c, 0xc2a3405f, 0x161dc372, 0xbce2250c, 0x283c498b, 0xff0d9541, 0x39a80171, 0x080cb3de, 0xd8b4e49c, 0x6456c190, 0x7bcb8461, 0xd532b670, 0x486c5c74, 0xd0b85742];\n var T6 = [0x5051f4a7, 0x537e4165, 0xc31a17a4, 0x963a275e, 0xcb3bab6b, 0xf11f9d45, 0xabacfa58, 0x934be303, 0x552030fa, 0xf6ad766d, 0x9188cc76, 0x25f5024c, 0xfc4fe5d7, 0xd7c52acb, 0x80263544, 0x8fb562a3, 0x49deb15a, 0x6725ba1b, 0x9845ea0e, 0xe15dfec0, 0x02c32f75, 0x12814cf0, 0xa38d4697, 0xc66bd3f9, 0xe7038f5f, 0x9515929c, 0xebbf6d7a, 0xda955259, 0x2dd4be83, 0xd3587421, 0x2949e069, 0x448ec9c8, 0x6a75c289, 0x78f48e79, 0x6b99583e, 0xdd27b971, 0xb6bee14f, 0x17f088ad, 0x66c920ac, 0xb47dce3a, 0x1863df4a, 0x82e51a31, 0x60975133, 0x4562537f, 0xe0b16477, 0x84bb6bae, 0x1cfe81a0, 0x94f9082b, 0x58704868, 0x198f45fd, 0x8794de6c, 0xb7527bf8, 0x23ab73d3, 0xe2724b02, 0x57e31f8f, 0x2a6655ab, 0x07b2eb28, 0x032fb5c2, 0x9a86c57b, 0xa5d33708, 0xf2302887, 0xb223bfa5, 0xba02036a, 0x5ced1682, 0x2b8acf1c, 0x92a779b4, 0xf0f307f2, 0xa14e69e2, 0xcd65daf4, 0xd50605be, 0x1fd13462, 0x8ac4a6fe, 0x9d342e53, 0xa0a2f355, 0x32058ae1, 0x75a4f6eb, 0x390b83ec, 0xaa4060ef, 0x065e719f, 0x51bd6e10, 0xf93e218a, 0x3d96dd06, 0xaedd3e05, 0x464de6bd, 0xb591548d, 0x0571c45d, 0x6f0406d4, 0xff605015, 0x241998fb, 0x97d6bde9, 0xcc894043, 0x7767d99e, 0xbdb0e842, 0x8807898b, 0x38e7195b, 0xdb79c8ee, 0x47a17c0a, 0xe97c420f, 0xc9f8841e, 0x00000000, 0x83098086, 0x48322bed, 0xac1e1170, 0x4e6c5a72, 0xfbfd0eff, 0x560f8538, 0x1e3daed5, 0x27362d39, 0x640a0fd9, 0x21685ca6, 0xd19b5b54, 0x3a24362e, 0xb10c0a67, 0x0f9357e7, 0xd2b4ee96, 0x9e1b9b91, 0x4f80c0c5, 0xa261dc20, 0x695a774b, 0x161c121a, 0x0ae293ba, 0xe5c0a02a, 0x433c22e0, 0x1d121b17, 0x0b0e090d, 0xadf28bc7, 0xb92db6a8, 0xc8141ea9, 0x8557f119, 0x4caf7507, 0xbbee99dd, 0xfda37f60, 0x9ff70126, 0xbc5c72f5, 0xc544663b, 0x345bfb7e, 0x768b4329, 0xdccb23c6, 0x68b6edfc, 0x63b8e4f1, 0xcad731dc, 0x10426385, 0x40139722, 0x2084c611, 0x7d854a24, 0xf8d2bb3d, 0x11aef932, 0x6dc729a1, 0x4b1d9e2f, 0xf3dcb230, 0xec0d8652, 0xd077c1e3, 0x6c2bb316, 0x99a970b9, 0xfa119448, 0x2247e964, 0xc4a8fc8c, 0x1aa0f03f, 0xd8567d2c, 0xef223390, 0xc787494e, 0xc1d938d1, 0xfe8ccaa2, 0x3698d40b, 0xcfa6f581, 0x28a57ade, 0x26dab78e, 0xa43fadbf, 0xe42c3a9d, 0x0d507892, 0x9b6a5fcc, 0x62547e46, 0xc2f68d13, 0xe890d8b8, 0x5e2e39f7, 0xf582c3af, 0xbe9f5d80, 0x7c69d093, 0xa96fd52d, 0xb3cf2512, 0x3bc8ac99, 0xa710187d, 0x6ee89c63, 0x7bdb3bbb, 0x09cd2678, 0xf46e5918, 0x01ec9ab7, 0xa8834f9a, 0x65e6956e, 0x7eaaffe6, 0x0821bccf, 0xe6ef15e8, 0xd9bae79b, 0xce4a6f36, 0xd4ea9f09, 0xd629b07c, 0xaf31a4b2, 0x312a3f23, 0x30c6a594, 0xc035a266, 0x37744ebc, 0xa6fc82ca, 0xb0e090d0, 0x1533a7d8, 0x4af10498, 0xf741ecda, 0x0e7fcd50, 0x2f1791f6, 0x8d764dd6, 0x4d43efb0, 0x54ccaa4d, 0xdfe49604, 0xe39ed1b5, 0x1b4c6a88, 0xb8c12c1f, 0x7f466551, 0x049d5eea, 0x5d018c35, 0x73fa8774, 0x2efb0b41, 0x5ab3671d, 0x5292dbd2, 0x33e91056, 0x136dd647, 0x8c9ad761, 0x7a37a10c, 0x8e59f814, 0x89eb133c, 0xeecea927, 0x35b761c9, 0xede11ce5, 0x3c7a47b1, 0x599cd2df, 0x3f55f273, 0x791814ce, 0xbf73c737, 0xea53f7cd, 0x5b5ffdaa, 0x14df3d6f, 0x867844db, 0x81caaff3, 0x3eb968c4, 0x2c382434, 0x5fc2a340, 0x72161dc3, 0x0cbce225, 0x8b283c49, 0x41ff0d95, 0x7139a801, 0xde080cb3, 0x9cd8b4e4, 0x906456c1, 0x617bcb84, 0x70d532b6, 0x74486c5c, 0x42d0b857];\n var T7 = [0xa75051f4, 0x65537e41, 0xa4c31a17, 0x5e963a27, 0x6bcb3bab, 0x45f11f9d, 0x58abacfa, 0x03934be3, 0xfa552030, 0x6df6ad76, 0x769188cc, 0x4c25f502, 0xd7fc4fe5, 0xcbd7c52a, 0x44802635, 0xa38fb562, 0x5a49deb1, 0x1b6725ba, 0x0e9845ea, 0xc0e15dfe, 0x7502c32f, 0xf012814c, 0x97a38d46, 0xf9c66bd3, 0x5fe7038f, 0x9c951592, 0x7aebbf6d, 0x59da9552, 0x832dd4be, 0x21d35874, 0x692949e0, 0xc8448ec9, 0x896a75c2, 0x7978f48e, 0x3e6b9958, 0x71dd27b9, 0x4fb6bee1, 0xad17f088, 0xac66c920, 0x3ab47dce, 0x4a1863df, 0x3182e51a, 0x33609751, 0x7f456253, 0x77e0b164, 0xae84bb6b, 0xa01cfe81, 0x2b94f908, 0x68587048, 0xfd198f45, 0x6c8794de, 0xf8b7527b, 0xd323ab73, 0x02e2724b, 0x8f57e31f, 0xab2a6655, 0x2807b2eb, 0xc2032fb5, 0x7b9a86c5, 0x08a5d337, 0x87f23028, 0xa5b223bf, 0x6aba0203, 0x825ced16, 0x1c2b8acf, 0xb492a779, 0xf2f0f307, 0xe2a14e69, 0xf4cd65da, 0xbed50605, 0x621fd134, 0xfe8ac4a6, 0x539d342e, 0x55a0a2f3, 0xe132058a, 0xeb75a4f6, 0xec390b83, 0xefaa4060, 0x9f065e71, 0x1051bd6e, 0x8af93e21, 0x063d96dd, 0x05aedd3e, 0xbd464de6, 0x8db59154, 0x5d0571c4, 0xd46f0406, 0x15ff6050, 0xfb241998, 0xe997d6bd, 0x43cc8940, 0x9e7767d9, 0x42bdb0e8, 0x8b880789, 0x5b38e719, 0xeedb79c8, 0x0a47a17c, 0x0fe97c42, 0x1ec9f884, 0x00000000, 0x86830980, 0xed48322b, 0x70ac1e11, 0x724e6c5a, 0xfffbfd0e, 0x38560f85, 0xd51e3dae, 0x3927362d, 0xd9640a0f, 0xa621685c, 0x54d19b5b, 0x2e3a2436, 0x67b10c0a, 0xe70f9357, 0x96d2b4ee, 0x919e1b9b, 0xc54f80c0, 0x20a261dc, 0x4b695a77, 0x1a161c12, 0xba0ae293, 0x2ae5c0a0, 0xe0433c22, 0x171d121b, 0x0d0b0e09, 0xc7adf28b, 0xa8b92db6, 0xa9c8141e, 0x198557f1, 0x074caf75, 0xddbbee99, 0x60fda37f, 0x269ff701, 0xf5bc5c72, 0x3bc54466, 0x7e345bfb, 0x29768b43, 0xc6dccb23, 0xfc68b6ed, 0xf163b8e4, 0xdccad731, 0x85104263, 0x22401397, 0x112084c6, 0x247d854a, 0x3df8d2bb, 0x3211aef9, 0xa16dc729, 0x2f4b1d9e, 0x30f3dcb2, 0x52ec0d86, 0xe3d077c1, 0x166c2bb3, 0xb999a970, 0x48fa1194, 0x642247e9, 0x8cc4a8fc, 0x3f1aa0f0, 0x2cd8567d, 0x90ef2233, 0x4ec78749, 0xd1c1d938, 0xa2fe8cca, 0x0b3698d4, 0x81cfa6f5, 0xde28a57a, 0x8e26dab7, 0xbfa43fad, 0x9de42c3a, 0x920d5078, 0xcc9b6a5f, 0x4662547e, 0x13c2f68d, 0xb8e890d8, 0xf75e2e39, 0xaff582c3, 0x80be9f5d, 0x937c69d0, 0x2da96fd5, 0x12b3cf25, 0x993bc8ac, 0x7da71018, 0x636ee89c, 0xbb7bdb3b, 0x7809cd26, 0x18f46e59, 0xb701ec9a, 0x9aa8834f, 0x6e65e695, 0xe67eaaff, 0xcf0821bc, 0xe8e6ef15, 0x9bd9bae7, 0x36ce4a6f, 0x09d4ea9f, 0x7cd629b0, 0xb2af31a4, 0x23312a3f, 0x9430c6a5, 0x66c035a2, 0xbc37744e, 0xcaa6fc82, 0xd0b0e090, 0xd81533a7, 0x984af104, 0xdaf741ec, 0x500e7fcd, 0xf62f1791, 0xd68d764d, 0xb04d43ef, 0x4d54ccaa, 0x04dfe496, 0xb5e39ed1, 0x881b4c6a, 0x1fb8c12c, 0x517f4665, 0xea049d5e, 0x355d018c, 0x7473fa87, 0x412efb0b, 0x1d5ab367, 0xd25292db, 0x5633e910, 0x47136dd6, 0x618c9ad7, 0x0c7a37a1, 0x148e59f8, 0x3c89eb13, 0x27eecea9, 0xc935b761, 0xe5ede11c, 0xb13c7a47, 0xdf599cd2, 0x733f55f2, 0xce791814, 0x37bf73c7, 0xcdea53f7, 0xaa5b5ffd, 0x6f14df3d, 0xdb867844, 0xf381caaf, 0xc43eb968, 0x342c3824, 0x405fc2a3, 0xc372161d, 0x250cbce2, 0x498b283c, 0x9541ff0d, 0x017139a8, 0xb3de080c, 0xe49cd8b4, 0xc1906456, 0x84617bcb, 0xb670d532, 0x5c74486c, 0x5742d0b8];\n var T8 = [0xf4a75051, 0x4165537e, 0x17a4c31a, 0x275e963a, 0xab6bcb3b, 0x9d45f11f, 0xfa58abac, 0xe303934b, 0x30fa5520, 0x766df6ad, 0xcc769188, 0x024c25f5, 0xe5d7fc4f, 0x2acbd7c5, 0x35448026, 0x62a38fb5, 0xb15a49de, 0xba1b6725, 0xea0e9845, 0xfec0e15d, 0x2f7502c3, 0x4cf01281, 0x4697a38d, 0xd3f9c66b, 0x8f5fe703, 0x929c9515, 0x6d7aebbf, 0x5259da95, 0xbe832dd4, 0x7421d358, 0xe0692949, 0xc9c8448e, 0xc2896a75, 0x8e7978f4, 0x583e6b99, 0xb971dd27, 0xe14fb6be, 0x88ad17f0, 0x20ac66c9, 0xce3ab47d, 0xdf4a1863, 0x1a3182e5, 0x51336097, 0x537f4562, 0x6477e0b1, 0x6bae84bb, 0x81a01cfe, 0x082b94f9, 0x48685870, 0x45fd198f, 0xde6c8794, 0x7bf8b752, 0x73d323ab, 0x4b02e272, 0x1f8f57e3, 0x55ab2a66, 0xeb2807b2, 0xb5c2032f, 0xc57b9a86, 0x3708a5d3, 0x2887f230, 0xbfa5b223, 0x036aba02, 0x16825ced, 0xcf1c2b8a, 0x79b492a7, 0x07f2f0f3, 0x69e2a14e, 0xdaf4cd65, 0x05bed506, 0x34621fd1, 0xa6fe8ac4, 0x2e539d34, 0xf355a0a2, 0x8ae13205, 0xf6eb75a4, 0x83ec390b, 0x60efaa40, 0x719f065e, 0x6e1051bd, 0x218af93e, 0xdd063d96, 0x3e05aedd, 0xe6bd464d, 0x548db591, 0xc45d0571, 0x06d46f04, 0x5015ff60, 0x98fb2419, 0xbde997d6, 0x4043cc89, 0xd99e7767, 0xe842bdb0, 0x898b8807, 0x195b38e7, 0xc8eedb79, 0x7c0a47a1, 0x420fe97c, 0x841ec9f8, 0x00000000, 0x80868309, 0x2bed4832, 0x1170ac1e, 0x5a724e6c, 0x0efffbfd, 0x8538560f, 0xaed51e3d, 0x2d392736, 0x0fd9640a, 0x5ca62168, 0x5b54d19b, 0x362e3a24, 0x0a67b10c, 0x57e70f93, 0xee96d2b4, 0x9b919e1b, 0xc0c54f80, 0xdc20a261, 0x774b695a, 0x121a161c, 0x93ba0ae2, 0xa02ae5c0, 0x22e0433c, 0x1b171d12, 0x090d0b0e, 0x8bc7adf2, 0xb6a8b92d, 0x1ea9c814, 0xf1198557, 0x75074caf, 0x99ddbbee, 0x7f60fda3, 0x01269ff7, 0x72f5bc5c, 0x663bc544, 0xfb7e345b, 0x4329768b, 0x23c6dccb, 0xedfc68b6, 0xe4f163b8, 0x31dccad7, 0x63851042, 0x97224013, 0xc6112084, 0x4a247d85, 0xbb3df8d2, 0xf93211ae, 0x29a16dc7, 0x9e2f4b1d, 0xb230f3dc, 0x8652ec0d, 0xc1e3d077, 0xb3166c2b, 0x70b999a9, 0x9448fa11, 0xe9642247, 0xfc8cc4a8, 0xf03f1aa0, 0x7d2cd856, 0x3390ef22, 0x494ec787, 0x38d1c1d9, 0xcaa2fe8c, 0xd40b3698, 0xf581cfa6, 0x7ade28a5, 0xb78e26da, 0xadbfa43f, 0x3a9de42c, 0x78920d50, 0x5fcc9b6a, 0x7e466254, 0x8d13c2f6, 0xd8b8e890, 0x39f75e2e, 0xc3aff582, 0x5d80be9f, 0xd0937c69, 0xd52da96f, 0x2512b3cf, 0xac993bc8, 0x187da710, 0x9c636ee8, 0x3bbb7bdb, 0x267809cd, 0x5918f46e, 0x9ab701ec, 0x4f9aa883, 0x956e65e6, 0xffe67eaa, 0xbccf0821, 0x15e8e6ef, 0xe79bd9ba, 0x6f36ce4a, 0x9f09d4ea, 0xb07cd629, 0xa4b2af31, 0x3f23312a, 0xa59430c6, 0xa266c035, 0x4ebc3774, 0x82caa6fc, 0x90d0b0e0, 0xa7d81533, 0x04984af1, 0xecdaf741, 0xcd500e7f, 0x91f62f17, 0x4dd68d76, 0xefb04d43, 0xaa4d54cc, 0x9604dfe4, 0xd1b5e39e, 0x6a881b4c, 0x2c1fb8c1, 0x65517f46, 0x5eea049d, 0x8c355d01, 0x877473fa, 0x0b412efb, 0x671d5ab3, 0xdbd25292, 0x105633e9, 0xd647136d, 0xd7618c9a, 0xa10c7a37, 0xf8148e59, 0x133c89eb, 0xa927eece, 0x61c935b7, 0x1ce5ede1, 0x47b13c7a, 0xd2df599c, 0xf2733f55, 0x14ce7918, 0xc737bf73, 0xf7cdea53, 0xfdaa5b5f, 0x3d6f14df, 0x44db8678, 0xaff381ca, 0x68c43eb9, 0x24342c38, 0xa3405fc2, 0x1dc37216, 0xe2250cbc, 0x3c498b28, 0x0d9541ff, 0xa8017139, 0x0cb3de08, 0xb4e49cd8, 0x56c19064, 0xcb84617b, 0x32b670d5, 0x6c5c7448, 0xb85742d0];\n\n // Transformations for decryption key expansion\n var U1 = [0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927, 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45, 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb, 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381, 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf, 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66, 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28, 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012, 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec, 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e, 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd, 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7, 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89, 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b, 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815, 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f, 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa, 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8, 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36, 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c, 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742, 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea, 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4, 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e, 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360, 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502, 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87, 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd, 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3, 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621, 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f, 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55, 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26, 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844, 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba, 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480, 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce, 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67, 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929, 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713, 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed, 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f, 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3];\n var U2 = [0x00000000, 0x0b0e090d, 0x161c121a, 0x1d121b17, 0x2c382434, 0x27362d39, 0x3a24362e, 0x312a3f23, 0x58704868, 0x537e4165, 0x4e6c5a72, 0x4562537f, 0x74486c5c, 0x7f466551, 0x62547e46, 0x695a774b, 0xb0e090d0, 0xbbee99dd, 0xa6fc82ca, 0xadf28bc7, 0x9cd8b4e4, 0x97d6bde9, 0x8ac4a6fe, 0x81caaff3, 0xe890d8b8, 0xe39ed1b5, 0xfe8ccaa2, 0xf582c3af, 0xc4a8fc8c, 0xcfa6f581, 0xd2b4ee96, 0xd9bae79b, 0x7bdb3bbb, 0x70d532b6, 0x6dc729a1, 0x66c920ac, 0x57e31f8f, 0x5ced1682, 0x41ff0d95, 0x4af10498, 0x23ab73d3, 0x28a57ade, 0x35b761c9, 0x3eb968c4, 0x0f9357e7, 0x049d5eea, 0x198f45fd, 0x12814cf0, 0xcb3bab6b, 0xc035a266, 0xdd27b971, 0xd629b07c, 0xe7038f5f, 0xec0d8652, 0xf11f9d45, 0xfa119448, 0x934be303, 0x9845ea0e, 0x8557f119, 0x8e59f814, 0xbf73c737, 0xb47dce3a, 0xa96fd52d, 0xa261dc20, 0xf6ad766d, 0xfda37f60, 0xe0b16477, 0xebbf6d7a, 0xda955259, 0xd19b5b54, 0xcc894043, 0xc787494e, 0xaedd3e05, 0xa5d33708, 0xb8c12c1f, 0xb3cf2512, 0x82e51a31, 0x89eb133c, 0x94f9082b, 0x9ff70126, 0x464de6bd, 0x4d43efb0, 0x5051f4a7, 0x5b5ffdaa, 0x6a75c289, 0x617bcb84, 0x7c69d093, 0x7767d99e, 0x1e3daed5, 0x1533a7d8, 0x0821bccf, 0x032fb5c2, 0x32058ae1, 0x390b83ec, 0x241998fb, 0x2f1791f6, 0x8d764dd6, 0x867844db, 0x9b6a5fcc, 0x906456c1, 0xa14e69e2, 0xaa4060ef, 0xb7527bf8, 0xbc5c72f5, 0xd50605be, 0xde080cb3, 0xc31a17a4, 0xc8141ea9, 0xf93e218a, 0xf2302887, 0xef223390, 0xe42c3a9d, 0x3d96dd06, 0x3698d40b, 0x2b8acf1c, 0x2084c611, 0x11aef932, 0x1aa0f03f, 0x07b2eb28, 0x0cbce225, 0x65e6956e, 0x6ee89c63, 0x73fa8774, 0x78f48e79, 0x49deb15a, 0x42d0b857, 0x5fc2a340, 0x54ccaa4d, 0xf741ecda, 0xfc4fe5d7, 0xe15dfec0, 0xea53f7cd, 0xdb79c8ee, 0xd077c1e3, 0xcd65daf4, 0xc66bd3f9, 0xaf31a4b2, 0xa43fadbf, 0xb92db6a8, 0xb223bfa5, 0x83098086, 0x8807898b, 0x9515929c, 0x9e1b9b91, 0x47a17c0a, 0x4caf7507, 0x51bd6e10, 0x5ab3671d, 0x6b99583e, 0x60975133, 0x7d854a24, 0x768b4329, 0x1fd13462, 0x14df3d6f, 0x09cd2678, 0x02c32f75, 0x33e91056, 0x38e7195b, 0x25f5024c, 0x2efb0b41, 0x8c9ad761, 0x8794de6c, 0x9a86c57b, 0x9188cc76, 0xa0a2f355, 0xabacfa58, 0xb6bee14f, 0xbdb0e842, 0xd4ea9f09, 0xdfe49604, 0xc2f68d13, 0xc9f8841e, 0xf8d2bb3d, 0xf3dcb230, 0xeecea927, 0xe5c0a02a, 0x3c7a47b1, 0x37744ebc, 0x2a6655ab, 0x21685ca6, 0x10426385, 0x1b4c6a88, 0x065e719f, 0x0d507892, 0x640a0fd9, 0x6f0406d4, 0x72161dc3, 0x791814ce, 0x48322bed, 0x433c22e0, 0x5e2e39f7, 0x552030fa, 0x01ec9ab7, 0x0ae293ba, 0x17f088ad, 0x1cfe81a0, 0x2dd4be83, 0x26dab78e, 0x3bc8ac99, 0x30c6a594, 0x599cd2df, 0x5292dbd2, 0x4f80c0c5, 0x448ec9c8, 0x75a4f6eb, 0x7eaaffe6, 0x63b8e4f1, 0x68b6edfc, 0xb10c0a67, 0xba02036a, 0xa710187d, 0xac1e1170, 0x9d342e53, 0x963a275e, 0x8b283c49, 0x80263544, 0xe97c420f, 0xe2724b02, 0xff605015, 0xf46e5918, 0xc544663b, 0xce4a6f36, 0xd3587421, 0xd8567d2c, 0x7a37a10c, 0x7139a801, 0x6c2bb316, 0x6725ba1b, 0x560f8538, 0x5d018c35, 0x40139722, 0x4b1d9e2f, 0x2247e964, 0x2949e069, 0x345bfb7e, 0x3f55f273, 0x0e7fcd50, 0x0571c45d, 0x1863df4a, 0x136dd647, 0xcad731dc, 0xc1d938d1, 0xdccb23c6, 0xd7c52acb, 0xe6ef15e8, 0xede11ce5, 0xf0f307f2, 0xfbfd0eff, 0x92a779b4, 0x99a970b9, 0x84bb6bae, 0x8fb562a3, 0xbe9f5d80, 0xb591548d, 0xa8834f9a, 0xa38d4697];\n var U3 = [0x00000000, 0x0d0b0e09, 0x1a161c12, 0x171d121b, 0x342c3824, 0x3927362d, 0x2e3a2436, 0x23312a3f, 0x68587048, 0x65537e41, 0x724e6c5a, 0x7f456253, 0x5c74486c, 0x517f4665, 0x4662547e, 0x4b695a77, 0xd0b0e090, 0xddbbee99, 0xcaa6fc82, 0xc7adf28b, 0xe49cd8b4, 0xe997d6bd, 0xfe8ac4a6, 0xf381caaf, 0xb8e890d8, 0xb5e39ed1, 0xa2fe8cca, 0xaff582c3, 0x8cc4a8fc, 0x81cfa6f5, 0x96d2b4ee, 0x9bd9bae7, 0xbb7bdb3b, 0xb670d532, 0xa16dc729, 0xac66c920, 0x8f57e31f, 0x825ced16, 0x9541ff0d, 0x984af104, 0xd323ab73, 0xde28a57a, 0xc935b761, 0xc43eb968, 0xe70f9357, 0xea049d5e, 0xfd198f45, 0xf012814c, 0x6bcb3bab, 0x66c035a2, 0x71dd27b9, 0x7cd629b0, 0x5fe7038f, 0x52ec0d86, 0x45f11f9d, 0x48fa1194, 0x03934be3, 0x0e9845ea, 0x198557f1, 0x148e59f8, 0x37bf73c7, 0x3ab47dce, 0x2da96fd5, 0x20a261dc, 0x6df6ad76, 0x60fda37f, 0x77e0b164, 0x7aebbf6d, 0x59da9552, 0x54d19b5b, 0x43cc8940, 0x4ec78749, 0x05aedd3e, 0x08a5d337, 0x1fb8c12c, 0x12b3cf25, 0x3182e51a, 0x3c89eb13, 0x2b94f908, 0x269ff701, 0xbd464de6, 0xb04d43ef, 0xa75051f4, 0xaa5b5ffd, 0x896a75c2, 0x84617bcb, 0x937c69d0, 0x9e7767d9, 0xd51e3dae, 0xd81533a7, 0xcf0821bc, 0xc2032fb5, 0xe132058a, 0xec390b83, 0xfb241998, 0xf62f1791, 0xd68d764d, 0xdb867844, 0xcc9b6a5f, 0xc1906456, 0xe2a14e69, 0xefaa4060, 0xf8b7527b, 0xf5bc5c72, 0xbed50605, 0xb3de080c, 0xa4c31a17, 0xa9c8141e, 0x8af93e21, 0x87f23028, 0x90ef2233, 0x9de42c3a, 0x063d96dd, 0x0b3698d4, 0x1c2b8acf, 0x112084c6, 0x3211aef9, 0x3f1aa0f0, 0x2807b2eb, 0x250cbce2, 0x6e65e695, 0x636ee89c, 0x7473fa87, 0x7978f48e, 0x5a49deb1, 0x5742d0b8, 0x405fc2a3, 0x4d54ccaa, 0xdaf741ec, 0xd7fc4fe5, 0xc0e15dfe, 0xcdea53f7, 0xeedb79c8, 0xe3d077c1, 0xf4cd65da, 0xf9c66bd3, 0xb2af31a4, 0xbfa43fad, 0xa8b92db6, 0xa5b223bf, 0x86830980, 0x8b880789, 0x9c951592, 0x919e1b9b, 0x0a47a17c, 0x074caf75, 0x1051bd6e, 0x1d5ab367, 0x3e6b9958, 0x33609751, 0x247d854a, 0x29768b43, 0x621fd134, 0x6f14df3d, 0x7809cd26, 0x7502c32f, 0x5633e910, 0x5b38e719, 0x4c25f502, 0x412efb0b, 0x618c9ad7, 0x6c8794de, 0x7b9a86c5, 0x769188cc, 0x55a0a2f3, 0x58abacfa, 0x4fb6bee1, 0x42bdb0e8, 0x09d4ea9f, 0x04dfe496, 0x13c2f68d, 0x1ec9f884, 0x3df8d2bb, 0x30f3dcb2, 0x27eecea9, 0x2ae5c0a0, 0xb13c7a47, 0xbc37744e, 0xab2a6655, 0xa621685c, 0x85104263, 0x881b4c6a, 0x9f065e71, 0x920d5078, 0xd9640a0f, 0xd46f0406, 0xc372161d, 0xce791814, 0xed48322b, 0xe0433c22, 0xf75e2e39, 0xfa552030, 0xb701ec9a, 0xba0ae293, 0xad17f088, 0xa01cfe81, 0x832dd4be, 0x8e26dab7, 0x993bc8ac, 0x9430c6a5, 0xdf599cd2, 0xd25292db, 0xc54f80c0, 0xc8448ec9, 0xeb75a4f6, 0xe67eaaff, 0xf163b8e4, 0xfc68b6ed, 0x67b10c0a, 0x6aba0203, 0x7da71018, 0x70ac1e11, 0x539d342e, 0x5e963a27, 0x498b283c, 0x44802635, 0x0fe97c42, 0x02e2724b, 0x15ff6050, 0x18f46e59, 0x3bc54466, 0x36ce4a6f, 0x21d35874, 0x2cd8567d, 0x0c7a37a1, 0x017139a8, 0x166c2bb3, 0x1b6725ba, 0x38560f85, 0x355d018c, 0x22401397, 0x2f4b1d9e, 0x642247e9, 0x692949e0, 0x7e345bfb, 0x733f55f2, 0x500e7fcd, 0x5d0571c4, 0x4a1863df, 0x47136dd6, 0xdccad731, 0xd1c1d938, 0xc6dccb23, 0xcbd7c52a, 0xe8e6ef15, 0xe5ede11c, 0xf2f0f307, 0xfffbfd0e, 0xb492a779, 0xb999a970, 0xae84bb6b, 0xa38fb562, 0x80be9f5d, 0x8db59154, 0x9aa8834f, 0x97a38d46];\n var U4 = [0x00000000, 0x090d0b0e, 0x121a161c, 0x1b171d12, 0x24342c38, 0x2d392736, 0x362e3a24, 0x3f23312a, 0x48685870, 0x4165537e, 0x5a724e6c, 0x537f4562, 0x6c5c7448, 0x65517f46, 0x7e466254, 0x774b695a, 0x90d0b0e0, 0x99ddbbee, 0x82caa6fc, 0x8bc7adf2, 0xb4e49cd8, 0xbde997d6, 0xa6fe8ac4, 0xaff381ca, 0xd8b8e890, 0xd1b5e39e, 0xcaa2fe8c, 0xc3aff582, 0xfc8cc4a8, 0xf581cfa6, 0xee96d2b4, 0xe79bd9ba, 0x3bbb7bdb, 0x32b670d5, 0x29a16dc7, 0x20ac66c9, 0x1f8f57e3, 0x16825ced, 0x0d9541ff, 0x04984af1, 0x73d323ab, 0x7ade28a5, 0x61c935b7, 0x68c43eb9, 0x57e70f93, 0x5eea049d, 0x45fd198f, 0x4cf01281, 0xab6bcb3b, 0xa266c035, 0xb971dd27, 0xb07cd629, 0x8f5fe703, 0x8652ec0d, 0x9d45f11f, 0x9448fa11, 0xe303934b, 0xea0e9845, 0xf1198557, 0xf8148e59, 0xc737bf73, 0xce3ab47d, 0xd52da96f, 0xdc20a261, 0x766df6ad, 0x7f60fda3, 0x6477e0b1, 0x6d7aebbf, 0x5259da95, 0x5b54d19b, 0x4043cc89, 0x494ec787, 0x3e05aedd, 0x3708a5d3, 0x2c1fb8c1, 0x2512b3cf, 0x1a3182e5, 0x133c89eb, 0x082b94f9, 0x01269ff7, 0xe6bd464d, 0xefb04d43, 0xf4a75051, 0xfdaa5b5f, 0xc2896a75, 0xcb84617b, 0xd0937c69, 0xd99e7767, 0xaed51e3d, 0xa7d81533, 0xbccf0821, 0xb5c2032f, 0x8ae13205, 0x83ec390b, 0x98fb2419, 0x91f62f17, 0x4dd68d76, 0x44db8678, 0x5fcc9b6a, 0x56c19064, 0x69e2a14e, 0x60efaa40, 0x7bf8b752, 0x72f5bc5c, 0x05bed506, 0x0cb3de08, 0x17a4c31a, 0x1ea9c814, 0x218af93e, 0x2887f230, 0x3390ef22, 0x3a9de42c, 0xdd063d96, 0xd40b3698, 0xcf1c2b8a, 0xc6112084, 0xf93211ae, 0xf03f1aa0, 0xeb2807b2, 0xe2250cbc, 0x956e65e6, 0x9c636ee8, 0x877473fa, 0x8e7978f4, 0xb15a49de, 0xb85742d0, 0xa3405fc2, 0xaa4d54cc, 0xecdaf741, 0xe5d7fc4f, 0xfec0e15d, 0xf7cdea53, 0xc8eedb79, 0xc1e3d077, 0xdaf4cd65, 0xd3f9c66b, 0xa4b2af31, 0xadbfa43f, 0xb6a8b92d, 0xbfa5b223, 0x80868309, 0x898b8807, 0x929c9515, 0x9b919e1b, 0x7c0a47a1, 0x75074caf, 0x6e1051bd, 0x671d5ab3, 0x583e6b99, 0x51336097, 0x4a247d85, 0x4329768b, 0x34621fd1, 0x3d6f14df, 0x267809cd, 0x2f7502c3, 0x105633e9, 0x195b38e7, 0x024c25f5, 0x0b412efb, 0xd7618c9a, 0xde6c8794, 0xc57b9a86, 0xcc769188, 0xf355a0a2, 0xfa58abac, 0xe14fb6be, 0xe842bdb0, 0x9f09d4ea, 0x9604dfe4, 0x8d13c2f6, 0x841ec9f8, 0xbb3df8d2, 0xb230f3dc, 0xa927eece, 0xa02ae5c0, 0x47b13c7a, 0x4ebc3774, 0x55ab2a66, 0x5ca62168, 0x63851042, 0x6a881b4c, 0x719f065e, 0x78920d50, 0x0fd9640a, 0x06d46f04, 0x1dc37216, 0x14ce7918, 0x2bed4832, 0x22e0433c, 0x39f75e2e, 0x30fa5520, 0x9ab701ec, 0x93ba0ae2, 0x88ad17f0, 0x81a01cfe, 0xbe832dd4, 0xb78e26da, 0xac993bc8, 0xa59430c6, 0xd2df599c, 0xdbd25292, 0xc0c54f80, 0xc9c8448e, 0xf6eb75a4, 0xffe67eaa, 0xe4f163b8, 0xedfc68b6, 0x0a67b10c, 0x036aba02, 0x187da710, 0x1170ac1e, 0x2e539d34, 0x275e963a, 0x3c498b28, 0x35448026, 0x420fe97c, 0x4b02e272, 0x5015ff60, 0x5918f46e, 0x663bc544, 0x6f36ce4a, 0x7421d358, 0x7d2cd856, 0xa10c7a37, 0xa8017139, 0xb3166c2b, 0xba1b6725, 0x8538560f, 0x8c355d01, 0x97224013, 0x9e2f4b1d, 0xe9642247, 0xe0692949, 0xfb7e345b, 0xf2733f55, 0xcd500e7f, 0xc45d0571, 0xdf4a1863, 0xd647136d, 0x31dccad7, 0x38d1c1d9, 0x23c6dccb, 0x2acbd7c5, 0x15e8e6ef, 0x1ce5ede1, 0x07f2f0f3, 0x0efffbfd, 0x79b492a7, 0x70b999a9, 0x6bae84bb, 0x62a38fb5, 0x5d80be9f, 0x548db591, 0x4f9aa883, 0x4697a38d];\n\n function convertToInt32(bytes) {\n var result = [];\n for (var i = 0; i < bytes.length; i += 4) {\n result.push(\n (bytes[i ] << 24) |\n (bytes[i + 1] << 16) |\n (bytes[i + 2] << 8) |\n bytes[i + 3]\n );\n }\n return result;\n }\n\n var AES = function(key) {\n if (!(this instanceof AES)) {\n throw Error('AES must be instanitated with `new`');\n }\n\n Object.defineProperty(this, 'key', {\n value: coerceArray(key, true)\n });\n\n this._prepare();\n }\n\n\n AES.prototype._prepare = function() {\n\n var rounds = numberOfRounds[this.key.length];\n if (rounds == null) {\n throw new Error('invalid key size (must be 16, 24 or 32 bytes)');\n }\n\n // encryption round keys\n this._Ke = [];\n\n // decryption round keys\n this._Kd = [];\n\n for (var i = 0; i <= rounds; i++) {\n this._Ke.push([0, 0, 0, 0]);\n this._Kd.push([0, 0, 0, 0]);\n }\n\n var roundKeyCount = (rounds + 1) * 4;\n var KC = this.key.length / 4;\n\n // convert the key into ints\n var tk = convertToInt32(this.key);\n\n // copy values into round key arrays\n var index;\n for (var i = 0; i < KC; i++) {\n index = i >> 2;\n this._Ke[index][i % 4] = tk[i];\n this._Kd[rounds - index][i % 4] = tk[i];\n }\n\n // key expansion (fips-197 section 5.2)\n var rconpointer = 0;\n var t = KC, tt;\n while (t < roundKeyCount) {\n tt = tk[KC - 1];\n tk[0] ^= ((S[(tt >> 16) & 0xFF] << 24) ^\n (S[(tt >> 8) & 0xFF] << 16) ^\n (S[ tt & 0xFF] << 8) ^\n S[(tt >> 24) & 0xFF] ^\n (rcon[rconpointer] << 24));\n rconpointer += 1;\n\n // key expansion (for non-256 bit)\n if (KC != 8) {\n for (var i = 1; i < KC; i++) {\n tk[i] ^= tk[i - 1];\n }\n\n // key expansion for 256-bit keys is \"slightly different\" (fips-197)\n } else {\n for (var i = 1; i < (KC / 2); i++) {\n tk[i] ^= tk[i - 1];\n }\n tt = tk[(KC / 2) - 1];\n\n tk[KC / 2] ^= (S[ tt & 0xFF] ^\n (S[(tt >> 8) & 0xFF] << 8) ^\n (S[(tt >> 16) & 0xFF] << 16) ^\n (S[(tt >> 24) & 0xFF] << 24));\n\n for (var i = (KC / 2) + 1; i < KC; i++) {\n tk[i] ^= tk[i - 1];\n }\n }\n\n // copy values into round key arrays\n var i = 0, r, c;\n while (i < KC && t < roundKeyCount) {\n r = t >> 2;\n c = t % 4;\n this._Ke[r][c] = tk[i];\n this._Kd[rounds - r][c] = tk[i++];\n t++;\n }\n }\n\n // inverse-cipher-ify the decryption round key (fips-197 section 5.3)\n for (var r = 1; r < rounds; r++) {\n for (var c = 0; c < 4; c++) {\n tt = this._Kd[r][c];\n this._Kd[r][c] = (U1[(tt >> 24) & 0xFF] ^\n U2[(tt >> 16) & 0xFF] ^\n U3[(tt >> 8) & 0xFF] ^\n U4[ tt & 0xFF]);\n }\n }\n }\n\n AES.prototype.encrypt = function(plaintext) {\n if (plaintext.length != 16) {\n throw new Error('invalid plaintext size (must be 16 bytes)');\n }\n\n var rounds = this._Ke.length - 1;\n var a = [0, 0, 0, 0];\n\n // convert plaintext to (ints ^ key)\n var t = convertToInt32(plaintext);\n for (var i = 0; i < 4; i++) {\n t[i] ^= this._Ke[0][i];\n }\n\n // apply round transforms\n for (var r = 1; r < rounds; r++) {\n for (var i = 0; i < 4; i++) {\n a[i] = (T1[(t[ i ] >> 24) & 0xff] ^\n T2[(t[(i + 1) % 4] >> 16) & 0xff] ^\n T3[(t[(i + 2) % 4] >> 8) & 0xff] ^\n T4[ t[(i + 3) % 4] & 0xff] ^\n this._Ke[r][i]);\n }\n t = a.slice();\n }\n\n // the last round is special\n var result = createArray(16), tt;\n for (var i = 0; i < 4; i++) {\n tt = this._Ke[rounds][i];\n result[4 * i ] = (S[(t[ i ] >> 24) & 0xff] ^ (tt >> 24)) & 0xff;\n result[4 * i + 1] = (S[(t[(i + 1) % 4] >> 16) & 0xff] ^ (tt >> 16)) & 0xff;\n result[4 * i + 2] = (S[(t[(i + 2) % 4] >> 8) & 0xff] ^ (tt >> 8)) & 0xff;\n result[4 * i + 3] = (S[ t[(i + 3) % 4] & 0xff] ^ tt ) & 0xff;\n }\n\n return result;\n }\n\n AES.prototype.decrypt = function(ciphertext) {\n if (ciphertext.length != 16) {\n throw new Error('invalid ciphertext size (must be 16 bytes)');\n }\n\n var rounds = this._Kd.length - 1;\n var a = [0, 0, 0, 0];\n\n // convert plaintext to (ints ^ key)\n var t = convertToInt32(ciphertext);\n for (var i = 0; i < 4; i++) {\n t[i] ^= this._Kd[0][i];\n }\n\n // apply round transforms\n for (var r = 1; r < rounds; r++) {\n for (var i = 0; i < 4; i++) {\n a[i] = (T5[(t[ i ] >> 24) & 0xff] ^\n T6[(t[(i + 3) % 4] >> 16) & 0xff] ^\n T7[(t[(i + 2) % 4] >> 8) & 0xff] ^\n T8[ t[(i + 1) % 4] & 0xff] ^\n this._Kd[r][i]);\n }\n t = a.slice();\n }\n\n // the last round is special\n var result = createArray(16), tt;\n for (var i = 0; i < 4; i++) {\n tt = this._Kd[rounds][i];\n result[4 * i ] = (Si[(t[ i ] >> 24) & 0xff] ^ (tt >> 24)) & 0xff;\n result[4 * i + 1] = (Si[(t[(i + 3) % 4] >> 16) & 0xff] ^ (tt >> 16)) & 0xff;\n result[4 * i + 2] = (Si[(t[(i + 2) % 4] >> 8) & 0xff] ^ (tt >> 8)) & 0xff;\n result[4 * i + 3] = (Si[ t[(i + 1) % 4] & 0xff] ^ tt ) & 0xff;\n }\n\n return result;\n }\n\n\n /**\n * Mode Of Operation - Electonic Codebook (ECB)\n */\n var ModeOfOperationECB = function(key) {\n if (!(this instanceof ModeOfOperationECB)) {\n throw Error('AES must be instanitated with `new`');\n }\n\n this.description = \"Electronic Code Block\";\n this.name = \"ecb\";\n\n this._aes = new AES(key);\n }\n\n ModeOfOperationECB.prototype.encrypt = function(plaintext) {\n plaintext = coerceArray(plaintext);\n\n if ((plaintext.length % 16) !== 0) {\n throw new Error('invalid plaintext size (must be multiple of 16 bytes)');\n }\n\n var ciphertext = createArray(plaintext.length);\n var block = createArray(16);\n\n for (var i = 0; i < plaintext.length; i += 16) {\n copyArray(plaintext, block, 0, i, i + 16);\n block = this._aes.encrypt(block);\n copyArray(block, ciphertext, i);\n }\n\n return ciphertext;\n }\n\n ModeOfOperationECB.prototype.decrypt = function(ciphertext) {\n ciphertext = coerceArray(ciphertext);\n\n if ((ciphertext.length % 16) !== 0) {\n throw new Error('invalid ciphertext size (must be multiple of 16 bytes)');\n }\n\n var plaintext = createArray(ciphertext.length);\n var block = createArray(16);\n\n for (var i = 0; i < ciphertext.length; i += 16) {\n copyArray(ciphertext, block, 0, i, i + 16);\n block = this._aes.decrypt(block);\n copyArray(block, plaintext, i);\n }\n\n return plaintext;\n }\n\n\n /**\n * Mode Of Operation - Cipher Block Chaining (CBC)\n */\n var ModeOfOperationCBC = function(key, iv) {\n if (!(this instanceof ModeOfOperationCBC)) {\n throw Error('AES must be instanitated with `new`');\n }\n\n this.description = \"Cipher Block Chaining\";\n this.name = \"cbc\";\n\n if (!iv) {\n iv = createArray(16);\n\n } else if (iv.length != 16) {\n throw new Error('invalid initialation vector size (must be 16 bytes)');\n }\n\n this._lastCipherblock = coerceArray(iv, true);\n\n this._aes = new AES(key);\n }\n\n ModeOfOperationCBC.prototype.encrypt = function(plaintext) {\n plaintext = coerceArray(plaintext);\n\n if ((plaintext.length % 16) !== 0) {\n throw new Error('invalid plaintext size (must be multiple of 16 bytes)');\n }\n\n var ciphertext = createArray(plaintext.length);\n var block = createArray(16);\n\n for (var i = 0; i < plaintext.length; i += 16) {\n copyArray(plaintext, block, 0, i, i + 16);\n\n for (var j = 0; j < 16; j++) {\n block[j] ^= this._lastCipherblock[j];\n }\n\n this._lastCipherblock = this._aes.encrypt(block);\n copyArray(this._lastCipherblock, ciphertext, i);\n }\n\n return ciphertext;\n }\n\n ModeOfOperationCBC.prototype.decrypt = function(ciphertext) {\n ciphertext = coerceArray(ciphertext);\n\n if ((ciphertext.length % 16) !== 0) {\n throw new Error('invalid ciphertext size (must be multiple of 16 bytes)');\n }\n\n var plaintext = createArray(ciphertext.length);\n var block = createArray(16);\n\n for (var i = 0; i < ciphertext.length; i += 16) {\n copyArray(ciphertext, block, 0, i, i + 16);\n block = this._aes.decrypt(block);\n\n for (var j = 0; j < 16; j++) {\n plaintext[i + j] = block[j] ^ this._lastCipherblock[j];\n }\n\n copyArray(ciphertext, this._lastCipherblock, 0, i, i + 16);\n }\n\n return plaintext;\n }\n\n\n /**\n * Mode Of Operation - Cipher Feedback (CFB)\n */\n var ModeOfOperationCFB = function(key, iv, segmentSize) {\n if (!(this instanceof ModeOfOperationCFB)) {\n throw Error('AES must be instanitated with `new`');\n }\n\n this.description = \"Cipher Feedback\";\n this.name = \"cfb\";\n\n if (!iv) {\n iv = createArray(16);\n\n } else if (iv.length != 16) {\n throw new Error('invalid initialation vector size (must be 16 size)');\n }\n\n if (!segmentSize) { segmentSize = 1; }\n\n this.segmentSize = segmentSize;\n\n this._shiftRegister = coerceArray(iv, true);\n\n this._aes = new AES(key);\n }\n\n ModeOfOperationCFB.prototype.encrypt = function(plaintext) {\n if ((plaintext.length % this.segmentSize) != 0) {\n throw new Error('invalid plaintext size (must be segmentSize bytes)');\n }\n\n var encrypted = coerceArray(plaintext, true);\n\n var xorSegment;\n for (var i = 0; i < encrypted.length; i += this.segmentSize) {\n xorSegment = this._aes.encrypt(this._shiftRegister);\n for (var j = 0; j < this.segmentSize; j++) {\n encrypted[i + j] ^= xorSegment[j];\n }\n\n // Shift the register\n copyArray(this._shiftRegister, this._shiftRegister, 0, this.segmentSize);\n copyArray(encrypted, this._shiftRegister, 16 - this.segmentSize, i, i + this.segmentSize);\n }\n\n return encrypted;\n }\n\n ModeOfOperationCFB.prototype.decrypt = function(ciphertext) {\n if ((ciphertext.length % this.segmentSize) != 0) {\n throw new Error('invalid ciphertext size (must be segmentSize bytes)');\n }\n\n var plaintext = coerceArray(ciphertext, true);\n\n var xorSegment;\n for (var i = 0; i < plaintext.length; i += this.segmentSize) {\n xorSegment = this._aes.encrypt(this._shiftRegister);\n\n for (var j = 0; j < this.segmentSize; j++) {\n plaintext[i + j] ^= xorSegment[j];\n }\n\n // Shift the register\n copyArray(this._shiftRegister, this._shiftRegister, 0, this.segmentSize);\n copyArray(ciphertext, this._shiftRegister, 16 - this.segmentSize, i, i + this.segmentSize);\n }\n\n return plaintext;\n }\n\n /**\n * Mode Of Operation - Output Feedback (OFB)\n */\n var ModeOfOperationOFB = function(key, iv) {\n if (!(this instanceof ModeOfOperationOFB)) {\n throw Error('AES must be instanitated with `new`');\n }\n\n this.description = \"Output Feedback\";\n this.name = \"ofb\";\n\n if (!iv) {\n iv = createArray(16);\n\n } else if (iv.length != 16) {\n throw new Error('invalid initialation vector size (must be 16 bytes)');\n }\n\n this._lastPrecipher = coerceArray(iv, true);\n this._lastPrecipherIndex = 16;\n\n this._aes = new AES(key);\n }\n\n ModeOfOperationOFB.prototype.encrypt = function(plaintext) {\n var encrypted = coerceArray(plaintext, true);\n\n for (var i = 0; i < encrypted.length; i++) {\n if (this._lastPrecipherIndex === 16) {\n this._lastPrecipher = this._aes.encrypt(this._lastPrecipher);\n this._lastPrecipherIndex = 0;\n }\n encrypted[i] ^= this._lastPrecipher[this._lastPrecipherIndex++];\n }\n\n return encrypted;\n }\n\n // Decryption is symetric\n ModeOfOperationOFB.prototype.decrypt = ModeOfOperationOFB.prototype.encrypt;\n\n\n /**\n * Counter object for CTR common mode of operation\n */\n var Counter = function(initialValue) {\n if (!(this instanceof Counter)) {\n throw Error('Counter must be instanitated with `new`');\n }\n\n // We allow 0, but anything false-ish uses the default 1\n if (initialValue !== 0 && !initialValue) { initialValue = 1; }\n\n if (typeof(initialValue) === 'number') {\n this._counter = createArray(16);\n this.setValue(initialValue);\n\n } else {\n this.setBytes(initialValue);\n }\n }\n\n Counter.prototype.setValue = function(value) {\n if (typeof(value) !== 'number' || parseInt(value) != value) {\n throw new Error('invalid counter value (must be an integer)');\n }\n\n for (var index = 15; index >= 0; --index) {\n this._counter[index] = value % 256;\n value = value >> 8;\n }\n }\n\n Counter.prototype.setBytes = function(bytes) {\n bytes = coerceArray(bytes, true);\n\n if (bytes.length != 16) {\n throw new Error('invalid counter bytes size (must be 16 bytes)');\n }\n\n this._counter = bytes;\n };\n\n Counter.prototype.increment = function() {\n for (var i = 15; i >= 0; i--) {\n if (this._counter[i] === 255) {\n this._counter[i] = 0;\n } else {\n this._counter[i]++;\n break;\n }\n }\n }\n\n\n /**\n * Mode Of Operation - Counter (CTR)\n */\n var ModeOfOperationCTR = function(key, counter) {\n if (!(this instanceof ModeOfOperationCTR)) {\n throw Error('AES must be instanitated with `new`');\n }\n\n this.description = \"Counter\";\n this.name = \"ctr\";\n\n if (!(counter instanceof Counter)) {\n counter = new Counter(counter)\n }\n\n this._counter = counter;\n\n this._remainingCounter = null;\n this._remainingCounterIndex = 16;\n\n this._aes = new AES(key);\n }\n\n ModeOfOperationCTR.prototype.encrypt = function(plaintext) {\n var encrypted = coerceArray(plaintext, true);\n\n for (var i = 0; i < encrypted.length; i++) {\n if (this._remainingCounterIndex === 16) {\n this._remainingCounter = this._aes.encrypt(this._counter._counter);\n this._remainingCounterIndex = 0;\n this._counter.increment();\n }\n encrypted[i] ^= this._remainingCounter[this._remainingCounterIndex++];\n }\n\n return encrypted;\n }\n\n // Decryption is symetric\n ModeOfOperationCTR.prototype.decrypt = ModeOfOperationCTR.prototype.encrypt;\n\n\n ///////////////////////\n // Padding\n\n // See:https://tools.ietf.org/html/rfc2315\n function pkcs7pad(data) {\n data = coerceArray(data, true);\n var padder = 16 - (data.length % 16);\n var result = createArray(data.length + padder);\n copyArray(data, result);\n for (var i = data.length; i < result.length; i++) {\n result[i] = padder;\n }\n return result;\n }\n\n function pkcs7strip(data) {\n data = coerceArray(data, true);\n if (data.length < 16) { throw new Error('PKCS#7 invalid length'); }\n\n var padder = data[data.length - 1];\n if (padder > 16) { throw new Error('PKCS#7 padding byte out of range'); }\n\n var length = data.length - padder;\n for (var i = 0; i < padder; i++) {\n if (data[length + i] !== padder) {\n throw new Error('PKCS#7 invalid padding byte');\n }\n }\n\n var result = createArray(length);\n copyArray(data, result, 0, 0, length);\n return result;\n }\n\n ///////////////////////\n // Exporting\n\n\n // The block cipher\n var aesjs = {\n AES: AES,\n Counter: Counter,\n\n ModeOfOperation: {\n ecb: ModeOfOperationECB,\n cbc: ModeOfOperationCBC,\n cfb: ModeOfOperationCFB,\n ofb: ModeOfOperationOFB,\n ctr: ModeOfOperationCTR\n },\n\n utils: {\n hex: convertHex,\n utf8: convertUtf8\n },\n\n padding: {\n pkcs7: {\n pad: pkcs7pad,\n strip: pkcs7strip\n }\n },\n\n _arrayTest: {\n coerceArray: coerceArray,\n createArray: createArray,\n copyArray: copyArray,\n }\n };\n\n\n // node.js\n if (typeof exports !== 'undefined') {\n module.exports = aesjs\n\n // RequireJS/AMD\n // http://www.requirejs.org/docs/api.html\n // https://github.com/amdjs/amdjs-api/wiki/AMD\n } else if (typeof(define) === 'function' && define.amd) {\n define(aesjs);\n\n // Web Browsers\n } else {\n\n // If there was an existing library at \"aesjs\" make sure it's still available\n if (root.aesjs) {\n aesjs._aesjs = root.aesjs;\n }\n\n root.aesjs = aesjs;\n }\n\n\n})(this);\n","export const version = \"json-wallets/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nimport { arrayify, hexlify } from \"@ethersproject/bytes\";\nimport { toUtf8Bytes, UnicodeNormalizationForm } from '@ethersproject/strings';\nexport function looseArrayify(hexString) {\n if (typeof (hexString) === 'string' && hexString.substring(0, 2) !== '0x') {\n hexString = '0x' + hexString;\n }\n return arrayify(hexString);\n}\nexport function zpad(value, length) {\n value = String(value);\n while (value.length < length) {\n value = '0' + value;\n }\n return value;\n}\nexport function getPassword(password) {\n if (typeof (password) === 'string') {\n return toUtf8Bytes(password, UnicodeNormalizationForm.NFKC);\n }\n return arrayify(password);\n}\nexport function searchPath(object, path) {\n let currentChild = object;\n const comps = path.toLowerCase().split('/');\n for (let i = 0; i < comps.length; i++) {\n // Search for a child object with a case-insensitive matching key\n let matchingChild = null;\n for (const key in currentChild) {\n if (key.toLowerCase() === comps[i]) {\n matchingChild = currentChild[key];\n break;\n }\n }\n // Didn't find one. :'(\n if (matchingChild === null) {\n return null;\n }\n // Now check this child...\n currentChild = matchingChild;\n }\n return currentChild;\n}\n// See: https://www.ietf.org/rfc/rfc4122.txt (Section 4.4)\nexport function uuidV4(randomBytes) {\n const bytes = arrayify(randomBytes);\n // Section: 4.1.3:\n // - time_hi_and_version[12:16] = 0b0100\n bytes[6] = (bytes[6] & 0x0f) | 0x40;\n // Section 4.4\n // - clock_seq_hi_and_reserved[6] = 0b0\n // - clock_seq_hi_and_reserved[7] = 0b1\n bytes[8] = (bytes[8] & 0x3f) | 0x80;\n const value = hexlify(bytes);\n return [\n value.substring(2, 10),\n value.substring(10, 14),\n value.substring(14, 18),\n value.substring(18, 22),\n value.substring(22, 34),\n ].join(\"-\");\n}\n//# sourceMappingURL=utils.js.map","\"use strict\";\nimport aes from \"aes-js\";\nimport { getAddress } from \"@ethersproject/address\";\nimport { arrayify } from \"@ethersproject/bytes\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { pbkdf2 } from \"@ethersproject/pbkdf2\";\nimport { toUtf8Bytes } from \"@ethersproject/strings\";\nimport { Description } from \"@ethersproject/properties\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nimport { getPassword, looseArrayify, searchPath } from \"./utils\";\nexport class CrowdsaleAccount extends Description {\n isCrowdsaleAccount(value) {\n return !!(value && value._isCrowdsaleAccount);\n }\n}\n// See: https://github.com/ethereum/pyethsaletool\nexport function decrypt(json, password) {\n const data = JSON.parse(json);\n password = getPassword(password);\n // Ethereum Address\n const ethaddr = getAddress(searchPath(data, \"ethaddr\"));\n // Encrypted Seed\n const encseed = looseArrayify(searchPath(data, \"encseed\"));\n if (!encseed || (encseed.length % 16) !== 0) {\n logger.throwArgumentError(\"invalid encseed\", \"json\", json);\n }\n const key = arrayify(pbkdf2(password, password, 2000, 32, \"sha256\")).slice(0, 16);\n const iv = encseed.slice(0, 16);\n const encryptedSeed = encseed.slice(16);\n // Decrypt the seed\n const aesCbc = new aes.ModeOfOperation.cbc(key, iv);\n const seed = aes.padding.pkcs7.strip(arrayify(aesCbc.decrypt(encryptedSeed)));\n // This wallet format is weird... Convert the binary encoded hex to a string.\n let seedHex = \"\";\n for (let i = 0; i < seed.length; i++) {\n seedHex += String.fromCharCode(seed[i]);\n }\n const seedHexBytes = toUtf8Bytes(seedHex);\n const privateKey = keccak256(seedHexBytes);\n return new CrowdsaleAccount({\n _isCrowdsaleAccount: true,\n address: ethaddr,\n privateKey: privateKey\n });\n}\n//# sourceMappingURL=crowdsale.js.map","\"use strict\";\nimport { getAddress } from \"@ethersproject/address\";\nexport function isCrowdsaleWallet(json) {\n let data = null;\n try {\n data = JSON.parse(json);\n }\n catch (error) {\n return false;\n }\n return (data.encseed && data.ethaddr);\n}\nexport function isKeystoreWallet(json) {\n let data = null;\n try {\n data = JSON.parse(json);\n }\n catch (error) {\n return false;\n }\n if (!data.version || parseInt(data.version) !== data.version || parseInt(data.version) !== 3) {\n return false;\n }\n // @TODO: Put more checks to make sure it has kdf, iv and all that good stuff\n return true;\n}\n//export function isJsonWallet(json: string): boolean {\n// return (isSecretStorageWallet(json) || isCrowdsaleWallet(json));\n//}\nexport function getJsonWalletAddress(json) {\n if (isCrowdsaleWallet(json)) {\n try {\n return getAddress(JSON.parse(json).ethaddr);\n }\n catch (error) {\n return null;\n }\n }\n if (isKeystoreWallet(json)) {\n try {\n return getAddress(JSON.parse(json).address);\n }\n catch (error) {\n return null;\n }\n }\n return null;\n}\n//# sourceMappingURL=inspect.js.map","\"use strict\";\n\n(function(root) {\n const MAX_VALUE = 0x7fffffff;\n\n // The SHA256 and PBKDF2 implementation are from scrypt-async-js:\n // See: https://github.com/dchest/scrypt-async-js\n function SHA256(m) {\n const K = new Uint32Array([\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b,\n 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01,\n 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7,\n 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152,\n 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147,\n 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc,\n 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819,\n 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08,\n 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f,\n 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n ]);\n\n let h0 = 0x6a09e667, h1 = 0xbb67ae85, h2 = 0x3c6ef372, h3 = 0xa54ff53a;\n let h4 = 0x510e527f, h5 = 0x9b05688c, h6 = 0x1f83d9ab, h7 = 0x5be0cd19;\n const w = new Uint32Array(64);\n\n function blocks(p) {\n let off = 0, len = p.length;\n while (len >= 64) {\n let a = h0, b = h1, c = h2, d = h3, e = h4, f = h5, g = h6, h = h7, u, i, j, t1, t2;\n\n for (i = 0; i < 16; i++) {\n j = off + i*4;\n w[i] = ((p[j] & 0xff)<<24) | ((p[j+1] & 0xff)<<16) |\n ((p[j+2] & 0xff)<<8) | (p[j+3] & 0xff);\n }\n\n for (i = 16; i < 64; i++) {\n u = w[i-2];\n t1 = ((u>>>17) | (u<<(32-17))) ^ ((u>>>19) | (u<<(32-19))) ^ (u>>>10);\n\n u = w[i-15];\n t2 = ((u>>>7) | (u<<(32-7))) ^ ((u>>>18) | (u<<(32-18))) ^ (u>>>3);\n\n w[i] = (((t1 + w[i-7]) | 0) + ((t2 + w[i-16]) | 0)) | 0;\n }\n\n for (i = 0; i < 64; i++) {\n t1 = ((((((e>>>6) | (e<<(32-6))) ^ ((e>>>11) | (e<<(32-11))) ^\n ((e>>>25) | (e<<(32-25)))) + ((e & f) ^ (~e & g))) | 0) +\n ((h + ((K[i] + w[i]) | 0)) | 0)) | 0;\n\n t2 = ((((a>>>2) | (a<<(32-2))) ^ ((a>>>13) | (a<<(32-13))) ^\n ((a>>>22) | (a<<(32-22)))) + ((a & b) ^ (a & c) ^ (b & c))) | 0;\n\n h = g;\n g = f;\n f = e;\n e = (d + t1) | 0;\n d = c;\n c = b;\n b = a;\n a = (t1 + t2) | 0;\n }\n\n h0 = (h0 + a) | 0;\n h1 = (h1 + b) | 0;\n h2 = (h2 + c) | 0;\n h3 = (h3 + d) | 0;\n h4 = (h4 + e) | 0;\n h5 = (h5 + f) | 0;\n h6 = (h6 + g) | 0;\n h7 = (h7 + h) | 0;\n\n off += 64;\n len -= 64;\n }\n }\n\n blocks(m);\n\n let i, bytesLeft = m.length % 64,\n bitLenHi = (m.length / 0x20000000) | 0,\n bitLenLo = m.length << 3,\n numZeros = (bytesLeft < 56) ? 56 : 120,\n p = m.slice(m.length - bytesLeft, m.length);\n\n p.push(0x80);\n for (i = bytesLeft + 1; i < numZeros; i++) { p.push(0); }\n p.push((bitLenHi >>> 24) & 0xff);\n p.push((bitLenHi >>> 16) & 0xff);\n p.push((bitLenHi >>> 8) & 0xff);\n p.push((bitLenHi >>> 0) & 0xff);\n p.push((bitLenLo >>> 24) & 0xff);\n p.push((bitLenLo >>> 16) & 0xff);\n p.push((bitLenLo >>> 8) & 0xff);\n p.push((bitLenLo >>> 0) & 0xff);\n\n blocks(p);\n\n return [\n (h0 >>> 24) & 0xff, (h0 >>> 16) & 0xff, (h0 >>> 8) & 0xff, (h0 >>> 0) & 0xff,\n (h1 >>> 24) & 0xff, (h1 >>> 16) & 0xff, (h1 >>> 8) & 0xff, (h1 >>> 0) & 0xff,\n (h2 >>> 24) & 0xff, (h2 >>> 16) & 0xff, (h2 >>> 8) & 0xff, (h2 >>> 0) & 0xff,\n (h3 >>> 24) & 0xff, (h3 >>> 16) & 0xff, (h3 >>> 8) & 0xff, (h3 >>> 0) & 0xff,\n (h4 >>> 24) & 0xff, (h4 >>> 16) & 0xff, (h4 >>> 8) & 0xff, (h4 >>> 0) & 0xff,\n (h5 >>> 24) & 0xff, (h5 >>> 16) & 0xff, (h5 >>> 8) & 0xff, (h5 >>> 0) & 0xff,\n (h6 >>> 24) & 0xff, (h6 >>> 16) & 0xff, (h6 >>> 8) & 0xff, (h6 >>> 0) & 0xff,\n (h7 >>> 24) & 0xff, (h7 >>> 16) & 0xff, (h7 >>> 8) & 0xff, (h7 >>> 0) & 0xff\n ];\n }\n\n function PBKDF2_HMAC_SHA256_OneIter(password, salt, dkLen) {\n // compress password if it's longer than hash block length\n password = (password.length <= 64) ? password : SHA256(password);\n\n const innerLen = 64 + salt.length + 4;\n const inner = new Array(innerLen);\n const outerKey = new Array(64);\n\n let i;\n let dk = [];\n\n // inner = (password ^ ipad) || salt || counter\n for (i = 0; i < 64; i++) { inner[i] = 0x36; }\n for (i = 0; i < password.length; i++) { inner[i] ^= password[i]; }\n for (i = 0; i < salt.length; i++) { inner[64 + i] = salt[i]; }\n for (i = innerLen - 4; i < innerLen; i++) { inner[i] = 0; }\n\n // outerKey = password ^ opad\n for (i = 0; i < 64; i++) outerKey[i] = 0x5c;\n for (i = 0; i < password.length; i++) outerKey[i] ^= password[i];\n\n // increments counter inside inner\n function incrementCounter() {\n for (let i = innerLen - 1; i >= innerLen - 4; i--) {\n inner[i]++;\n if (inner[i] <= 0xff) return;\n inner[i] = 0;\n }\n }\n\n // output blocks = SHA256(outerKey || SHA256(inner)) ...\n while (dkLen >= 32) {\n incrementCounter();\n dk = dk.concat(SHA256(outerKey.concat(SHA256(inner))));\n dkLen -= 32;\n }\n if (dkLen > 0) {\n incrementCounter();\n dk = dk.concat(SHA256(outerKey.concat(SHA256(inner))).slice(0, dkLen));\n }\n\n return dk;\n }\n\n // The following is an adaptation of scryptsy\n // See: https://www.npmjs.com/package/scryptsy\n function blockmix_salsa8(BY, Yi, r, x, _X) {\n let i;\n\n arraycopy(BY, (2 * r - 1) * 16, _X, 0, 16);\n for (i = 0; i < 2 * r; i++) {\n blockxor(BY, i * 16, _X, 16);\n salsa20_8(_X, x);\n arraycopy(_X, 0, BY, Yi + (i * 16), 16);\n }\n\n for (i = 0; i < r; i++) {\n arraycopy(BY, Yi + (i * 2) * 16, BY, (i * 16), 16);\n }\n\n for (i = 0; i < r; i++) {\n arraycopy(BY, Yi + (i * 2 + 1) * 16, BY, (i + r) * 16, 16);\n }\n }\n\n function R(a, b) {\n return (a << b) | (a >>> (32 - b));\n }\n\n function salsa20_8(B, x) {\n arraycopy(B, 0, x, 0, 16);\n\n for (let i = 8; i > 0; i -= 2) {\n x[ 4] ^= R(x[ 0] + x[12], 7);\n x[ 8] ^= R(x[ 4] + x[ 0], 9);\n x[12] ^= R(x[ 8] + x[ 4], 13);\n x[ 0] ^= R(x[12] + x[ 8], 18);\n x[ 9] ^= R(x[ 5] + x[ 1], 7);\n x[13] ^= R(x[ 9] + x[ 5], 9);\n x[ 1] ^= R(x[13] + x[ 9], 13);\n x[ 5] ^= R(x[ 1] + x[13], 18);\n x[14] ^= R(x[10] + x[ 6], 7);\n x[ 2] ^= R(x[14] + x[10], 9);\n x[ 6] ^= R(x[ 2] + x[14], 13);\n x[10] ^= R(x[ 6] + x[ 2], 18);\n x[ 3] ^= R(x[15] + x[11], 7);\n x[ 7] ^= R(x[ 3] + x[15], 9);\n x[11] ^= R(x[ 7] + x[ 3], 13);\n x[15] ^= R(x[11] + x[ 7], 18);\n x[ 1] ^= R(x[ 0] + x[ 3], 7);\n x[ 2] ^= R(x[ 1] + x[ 0], 9);\n x[ 3] ^= R(x[ 2] + x[ 1], 13);\n x[ 0] ^= R(x[ 3] + x[ 2], 18);\n x[ 6] ^= R(x[ 5] + x[ 4], 7);\n x[ 7] ^= R(x[ 6] + x[ 5], 9);\n x[ 4] ^= R(x[ 7] + x[ 6], 13);\n x[ 5] ^= R(x[ 4] + x[ 7], 18);\n x[11] ^= R(x[10] + x[ 9], 7);\n x[ 8] ^= R(x[11] + x[10], 9);\n x[ 9] ^= R(x[ 8] + x[11], 13);\n x[10] ^= R(x[ 9] + x[ 8], 18);\n x[12] ^= R(x[15] + x[14], 7);\n x[13] ^= R(x[12] + x[15], 9);\n x[14] ^= R(x[13] + x[12], 13);\n x[15] ^= R(x[14] + x[13], 18);\n }\n\n for (let i = 0; i < 16; ++i) {\n B[i] += x[i];\n }\n }\n\n // naive approach... going back to loop unrolling may yield additional performance\n function blockxor(S, Si, D, len) {\n for (let i = 0; i < len; i++) {\n D[i] ^= S[Si + i]\n }\n }\n\n function arraycopy(src, srcPos, dest, destPos, length) {\n while (length--) {\n dest[destPos++] = src[srcPos++];\n }\n }\n\n function checkBufferish(o) {\n if (!o || typeof(o.length) !== 'number') { return false; }\n\n for (let i = 0; i < o.length; i++) {\n const v = o[i];\n if (typeof(v) !== 'number' || v % 1 || v < 0 || v >= 256) {\n return false;\n }\n }\n\n return true;\n }\n\n function ensureInteger(value, name) {\n if (typeof(value) !== \"number\" || (value % 1)) { throw new Error('invalid ' + name); }\n return value;\n }\n\n // N = Cpu cost, r = Memory cost, p = parallelization cost\n // callback(error, progress, key)\n function _scrypt(password, salt, N, r, p, dkLen, callback) {\n\n N = ensureInteger(N, 'N');\n r = ensureInteger(r, 'r');\n p = ensureInteger(p, 'p');\n\n dkLen = ensureInteger(dkLen, 'dkLen');\n\n if (N === 0 || (N & (N - 1)) !== 0) { throw new Error('N must be power of 2'); }\n\n if (N > MAX_VALUE / 128 / r) { throw new Error('N too large'); }\n if (r > MAX_VALUE / 128 / p) { throw new Error('r too large'); }\n\n if (!checkBufferish(password)) {\n throw new Error('password must be an array or buffer');\n }\n password = Array.prototype.slice.call(password);\n\n if (!checkBufferish(salt)) {\n throw new Error('salt must be an array or buffer');\n }\n salt = Array.prototype.slice.call(salt);\n\n let b = PBKDF2_HMAC_SHA256_OneIter(password, salt, p * 128 * r);\n const B = new Uint32Array(p * 32 * r)\n for (let i = 0; i < B.length; i++) {\n const j = i * 4;\n B[i] = ((b[j + 3] & 0xff) << 24) |\n ((b[j + 2] & 0xff) << 16) |\n ((b[j + 1] & 0xff) << 8) |\n ((b[j + 0] & 0xff) << 0);\n }\n\n const XY = new Uint32Array(64 * r);\n const V = new Uint32Array(32 * r * N);\n\n const Yi = 32 * r;\n\n // scratch space\n const x = new Uint32Array(16); // salsa20_8\n const _X = new Uint32Array(16); // blockmix_salsa8\n\n const totalOps = p * N * 2;\n let currentOp = 0;\n let lastPercent10 = null;\n\n // Set this to true to abandon the scrypt on the next step\n let stop = false;\n\n // State information\n let state = 0;\n let i0 = 0, i1;\n let Bi;\n\n // How many blockmix_salsa8 can we do per step?\n const limit = callback ? parseInt(1000 / r): 0xffffffff;\n\n // Trick from scrypt-async; if there is a setImmediate shim in place, use it\n const nextTick = (typeof(setImmediate) !== 'undefined') ? setImmediate : setTimeout;\n\n // This is really all I changed; making scryptsy a state machine so we occasionally\n // stop and give other evnts on the evnt loop a chance to run. ~RicMoo\n const incrementalSMix = function() {\n if (stop) {\n return callback(new Error('cancelled'), currentOp / totalOps);\n }\n\n let steps;\n\n switch (state) {\n case 0:\n // for (var i = 0; i < p; i++)...\n Bi = i0 * 32 * r;\n\n arraycopy(B, Bi, XY, 0, Yi); // ROMix - 1\n\n state = 1; // Move to ROMix 2\n i1 = 0;\n\n // Fall through\n\n case 1:\n\n // Run up to 1000 steps of the first inner smix loop\n steps = N - i1;\n if (steps > limit) { steps = limit; }\n for (let i = 0; i < steps; i++) { // ROMix - 2\n arraycopy(XY, 0, V, (i1 + i) * Yi, Yi) // ROMix - 3\n blockmix_salsa8(XY, Yi, r, x, _X); // ROMix - 4\n }\n\n // for (var i = 0; i < N; i++)\n i1 += steps;\n currentOp += steps;\n\n if (callback) {\n // Call the callback with the progress (optionally stopping us)\n const percent10 = parseInt(1000 * currentOp / totalOps);\n if (percent10 !== lastPercent10) {\n stop = callback(null, currentOp / totalOps);\n if (stop) { break; }\n lastPercent10 = percent10;\n }\n }\n\n if (i1 < N) { break; }\n\n i1 = 0; // Move to ROMix 6\n state = 2;\n\n // Fall through\n\n case 2:\n\n // Run up to 1000 steps of the second inner smix loop\n steps = N - i1;\n if (steps > limit) { steps = limit; }\n for (let i = 0; i < steps; i++) { // ROMix - 6\n const offset = (2 * r - 1) * 16; // ROMix - 7\n const j = XY[offset] & (N - 1);\n blockxor(V, j * Yi, XY, Yi); // ROMix - 8 (inner)\n blockmix_salsa8(XY, Yi, r, x, _X); // ROMix - 9 (outer)\n }\n\n // for (var i = 0; i < N; i++)...\n i1 += steps;\n currentOp += steps;\n\n // Call the callback with the progress (optionally stopping us)\n if (callback) {\n const percent10 = parseInt(1000 * currentOp / totalOps);\n if (percent10 !== lastPercent10) {\n stop = callback(null, currentOp / totalOps);\n if (stop) { break; }\n lastPercent10 = percent10;\n }\n }\n\n if (i1 < N) { break; }\n\n arraycopy(XY, 0, B, Bi, Yi); // ROMix - 10\n\n // for (var i = 0; i < p; i++)...\n i0++;\n if (i0 < p) {\n state = 0;\n break;\n }\n\n b = [];\n for (let i = 0; i < B.length; i++) {\n b.push((B[i] >> 0) & 0xff);\n b.push((B[i] >> 8) & 0xff);\n b.push((B[i] >> 16) & 0xff);\n b.push((B[i] >> 24) & 0xff);\n }\n\n const derivedKey = PBKDF2_HMAC_SHA256_OneIter(password, b, dkLen);\n\n // Send the result to the callback\n if (callback) { callback(null, 1.0, derivedKey); }\n\n // Done; don't break (which would reschedule)\n return derivedKey;\n }\n\n // Schedule the next steps\n if (callback) { nextTick(incrementalSMix); }\n }\n\n // Run the smix state machine until completion\n if (!callback) {\n while (true) {\n const derivedKey = incrementalSMix();\n if (derivedKey != undefined) { return derivedKey; }\n }\n }\n\n // Bootstrap the async incremental smix\n incrementalSMix();\n }\n\n const lib = {\n scrypt: function(password, salt, N, r, p, dkLen, progressCallback) {\n return new Promise(function(resolve, reject) {\n let lastProgress = 0;\n if (progressCallback) { progressCallback(0); }\n _scrypt(password, salt, N, r, p, dkLen, function(error, progress, key) {\n if (error) {\n reject(error);\n } else if (key) {\n if (progressCallback && lastProgress !== 1) {\n progressCallback(1);\n }\n resolve(new Uint8Array(key));\n } else if (progressCallback && progress !== lastProgress) {\n lastProgress = progress;\n return progressCallback(progress);\n }\n });\n });\n },\n syncScrypt: function(password, salt, N, r, p, dkLen) {\n return new Uint8Array(_scrypt(password, salt, N, r, p, dkLen));\n }\n };\n\n // node.js\n if (typeof(exports) !== 'undefined') {\n module.exports = lib;\n\n // RequireJS/AMD\n // http://www.requirejs.org/docs/api.html\n // https://github.com/amdjs/amdjs-api/wiki/AMD\n } else if (typeof(define) === 'function' && define.amd) {\n define(lib);\n\n // Web Browsers\n } else if (root) {\n\n // If there was an existing library \"scrypt\", make sure it is still available\n if (root.scrypt) {\n root._scrypt = root.scrypt;\n }\n\n root.scrypt = lib;\n }\n\n})(this);\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport aes from \"aes-js\";\nimport scrypt from \"scrypt-js\";\nimport { getAddress } from \"@ethersproject/address\";\nimport { arrayify, concat, hexlify } from \"@ethersproject/bytes\";\nimport { defaultPath, entropyToMnemonic, HDNode, mnemonicToEntropy } from \"@ethersproject/hdnode\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { pbkdf2 as _pbkdf2 } from \"@ethersproject/pbkdf2\";\nimport { randomBytes } from \"@ethersproject/random\";\nimport { Description } from \"@ethersproject/properties\";\nimport { computeAddress } from \"@ethersproject/transactions\";\nimport { getPassword, looseArrayify, searchPath, uuidV4, zpad } from \"./utils\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\n// Exported Types\nfunction hasMnemonic(value) {\n return (value != null && value.mnemonic && value.mnemonic.phrase);\n}\nexport class KeystoreAccount extends Description {\n isKeystoreAccount(value) {\n return !!(value && value._isKeystoreAccount);\n }\n}\nfunction _decrypt(data, key, ciphertext) {\n const cipher = searchPath(data, \"crypto/cipher\");\n if (cipher === \"aes-128-ctr\") {\n const iv = looseArrayify(searchPath(data, \"crypto/cipherparams/iv\"));\n const counter = new aes.Counter(iv);\n const aesCtr = new aes.ModeOfOperation.ctr(key, counter);\n return arrayify(aesCtr.decrypt(ciphertext));\n }\n return null;\n}\nfunction _getAccount(data, key) {\n const ciphertext = looseArrayify(searchPath(data, \"crypto/ciphertext\"));\n const computedMAC = hexlify(keccak256(concat([key.slice(16, 32), ciphertext]))).substring(2);\n if (computedMAC !== searchPath(data, \"crypto/mac\").toLowerCase()) {\n throw new Error(\"invalid password\");\n }\n const privateKey = _decrypt(data, key.slice(0, 16), ciphertext);\n if (!privateKey) {\n logger.throwError(\"unsupported cipher\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"decrypt\"\n });\n }\n const mnemonicKey = key.slice(32, 64);\n const address = computeAddress(privateKey);\n if (data.address) {\n let check = data.address.toLowerCase();\n if (check.substring(0, 2) !== \"0x\") {\n check = \"0x\" + check;\n }\n if (getAddress(check) !== address) {\n throw new Error(\"address mismatch\");\n }\n }\n const account = {\n _isKeystoreAccount: true,\n address: address,\n privateKey: hexlify(privateKey)\n };\n // Version 0.1 x-ethers metadata must contain an encrypted mnemonic phrase\n if (searchPath(data, \"x-ethers/version\") === \"0.1\") {\n const mnemonicCiphertext = looseArrayify(searchPath(data, \"x-ethers/mnemonicCiphertext\"));\n const mnemonicIv = looseArrayify(searchPath(data, \"x-ethers/mnemonicCounter\"));\n const mnemonicCounter = new aes.Counter(mnemonicIv);\n const mnemonicAesCtr = new aes.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);\n const path = searchPath(data, \"x-ethers/path\") || defaultPath;\n const locale = searchPath(data, \"x-ethers/locale\") || \"en\";\n const entropy = arrayify(mnemonicAesCtr.decrypt(mnemonicCiphertext));\n try {\n const mnemonic = entropyToMnemonic(entropy, locale);\n const node = HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path);\n if (node.privateKey != account.privateKey) {\n throw new Error(\"mnemonic mismatch\");\n }\n account.mnemonic = node.mnemonic;\n }\n catch (error) {\n // If we don't have the locale wordlist installed to\n // read this mnemonic, just bail and don't set the\n // mnemonic\n if (error.code !== Logger.errors.INVALID_ARGUMENT || error.argument !== \"wordlist\") {\n throw error;\n }\n }\n }\n return new KeystoreAccount(account);\n}\nfunction pbkdf2Sync(passwordBytes, salt, count, dkLen, prfFunc) {\n return arrayify(_pbkdf2(passwordBytes, salt, count, dkLen, prfFunc));\n}\nfunction pbkdf2(passwordBytes, salt, count, dkLen, prfFunc) {\n return Promise.resolve(pbkdf2Sync(passwordBytes, salt, count, dkLen, prfFunc));\n}\nfunction _computeKdfKey(data, password, pbkdf2Func, scryptFunc, progressCallback) {\n const passwordBytes = getPassword(password);\n const kdf = searchPath(data, \"crypto/kdf\");\n if (kdf && typeof (kdf) === \"string\") {\n const throwError = function (name, value) {\n return logger.throwArgumentError(\"invalid key-derivation function parameters\", name, value);\n };\n if (kdf.toLowerCase() === \"scrypt\") {\n const salt = looseArrayify(searchPath(data, \"crypto/kdfparams/salt\"));\n const N = parseInt(searchPath(data, \"crypto/kdfparams/n\"));\n const r = parseInt(searchPath(data, \"crypto/kdfparams/r\"));\n const p = parseInt(searchPath(data, \"crypto/kdfparams/p\"));\n // Check for all required parameters\n if (!N || !r || !p) {\n throwError(\"kdf\", kdf);\n }\n // Make sure N is a power of 2\n if ((N & (N - 1)) !== 0) {\n throwError(\"N\", N);\n }\n const dkLen = parseInt(searchPath(data, \"crypto/kdfparams/dklen\"));\n if (dkLen !== 32) {\n throwError(\"dklen\", dkLen);\n }\n return scryptFunc(passwordBytes, salt, N, r, p, 64, progressCallback);\n }\n else if (kdf.toLowerCase() === \"pbkdf2\") {\n const salt = looseArrayify(searchPath(data, \"crypto/kdfparams/salt\"));\n let prfFunc = null;\n const prf = searchPath(data, \"crypto/kdfparams/prf\");\n if (prf === \"hmac-sha256\") {\n prfFunc = \"sha256\";\n }\n else if (prf === \"hmac-sha512\") {\n prfFunc = \"sha512\";\n }\n else {\n throwError(\"prf\", prf);\n }\n const count = parseInt(searchPath(data, \"crypto/kdfparams/c\"));\n const dkLen = parseInt(searchPath(data, \"crypto/kdfparams/dklen\"));\n if (dkLen !== 32) {\n throwError(\"dklen\", dkLen);\n }\n return pbkdf2Func(passwordBytes, salt, count, dkLen, prfFunc);\n }\n }\n return logger.throwArgumentError(\"unsupported key-derivation function\", \"kdf\", kdf);\n}\nexport function decryptSync(json, password) {\n const data = JSON.parse(json);\n const key = _computeKdfKey(data, password, pbkdf2Sync, scrypt.syncScrypt);\n return _getAccount(data, key);\n}\nexport function decrypt(json, password, progressCallback) {\n return __awaiter(this, void 0, void 0, function* () {\n const data = JSON.parse(json);\n const key = yield _computeKdfKey(data, password, pbkdf2, scrypt.scrypt, progressCallback);\n return _getAccount(data, key);\n });\n}\nexport function encrypt(account, password, options, progressCallback) {\n try {\n // Check the address matches the private key\n if (getAddress(account.address) !== computeAddress(account.privateKey)) {\n throw new Error(\"address/privateKey mismatch\");\n }\n // Check the mnemonic (if any) matches the private key\n if (hasMnemonic(account)) {\n const mnemonic = account.mnemonic;\n const node = HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path || defaultPath);\n if (node.privateKey != account.privateKey) {\n throw new Error(\"mnemonic mismatch\");\n }\n }\n }\n catch (e) {\n return Promise.reject(e);\n }\n // The options are optional, so adjust the call as needed\n if (typeof (options) === \"function\" && !progressCallback) {\n progressCallback = options;\n options = {};\n }\n if (!options) {\n options = {};\n }\n const privateKey = arrayify(account.privateKey);\n const passwordBytes = getPassword(password);\n let entropy = null;\n let path = null;\n let locale = null;\n if (hasMnemonic(account)) {\n const srcMnemonic = account.mnemonic;\n entropy = arrayify(mnemonicToEntropy(srcMnemonic.phrase, srcMnemonic.locale || \"en\"));\n path = srcMnemonic.path || defaultPath;\n locale = srcMnemonic.locale || \"en\";\n }\n let client = options.client;\n if (!client) {\n client = \"ethers.js\";\n }\n // Check/generate the salt\n let salt = null;\n if (options.salt) {\n salt = arrayify(options.salt);\n }\n else {\n salt = randomBytes(32);\n ;\n }\n // Override initialization vector\n let iv = null;\n if (options.iv) {\n iv = arrayify(options.iv);\n if (iv.length !== 16) {\n throw new Error(\"invalid iv\");\n }\n }\n else {\n iv = randomBytes(16);\n }\n // Override the uuid\n let uuidRandom = null;\n if (options.uuid) {\n uuidRandom = arrayify(options.uuid);\n if (uuidRandom.length !== 16) {\n throw new Error(\"invalid uuid\");\n }\n }\n else {\n uuidRandom = randomBytes(16);\n }\n // Override the scrypt password-based key derivation function parameters\n let N = (1 << 17), r = 8, p = 1;\n if (options.scrypt) {\n if (options.scrypt.N) {\n N = options.scrypt.N;\n }\n if (options.scrypt.r) {\n r = options.scrypt.r;\n }\n if (options.scrypt.p) {\n p = options.scrypt.p;\n }\n }\n // We take 64 bytes:\n // - 32 bytes As normal for the Web3 secret storage (derivedKey, macPrefix)\n // - 32 bytes AES key to encrypt mnemonic with (required here to be Ethers Wallet)\n return scrypt.scrypt(passwordBytes, salt, N, r, p, 64, progressCallback).then((key) => {\n key = arrayify(key);\n // This will be used to encrypt the wallet (as per Web3 secret storage)\n const derivedKey = key.slice(0, 16);\n const macPrefix = key.slice(16, 32);\n // This will be used to encrypt the mnemonic phrase (if any)\n const mnemonicKey = key.slice(32, 64);\n // Encrypt the private key\n const counter = new aes.Counter(iv);\n const aesCtr = new aes.ModeOfOperation.ctr(derivedKey, counter);\n const ciphertext = arrayify(aesCtr.encrypt(privateKey));\n // Compute the message authentication code, used to check the password\n const mac = keccak256(concat([macPrefix, ciphertext]));\n // See: https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition\n const data = {\n address: account.address.substring(2).toLowerCase(),\n id: uuidV4(uuidRandom),\n version: 3,\n crypto: {\n cipher: \"aes-128-ctr\",\n cipherparams: {\n iv: hexlify(iv).substring(2),\n },\n ciphertext: hexlify(ciphertext).substring(2),\n kdf: \"scrypt\",\n kdfparams: {\n salt: hexlify(salt).substring(2),\n n: N,\n dklen: 32,\n p: p,\n r: r\n },\n mac: mac.substring(2)\n }\n };\n // If we have a mnemonic, encrypt it into the JSON wallet\n if (entropy) {\n const mnemonicIv = randomBytes(16);\n const mnemonicCounter = new aes.Counter(mnemonicIv);\n const mnemonicAesCtr = new aes.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);\n const mnemonicCiphertext = arrayify(mnemonicAesCtr.encrypt(entropy));\n const now = new Date();\n const timestamp = (now.getUTCFullYear() + \"-\" +\n zpad(now.getUTCMonth() + 1, 2) + \"-\" +\n zpad(now.getUTCDate(), 2) + \"T\" +\n zpad(now.getUTCHours(), 2) + \"-\" +\n zpad(now.getUTCMinutes(), 2) + \"-\" +\n zpad(now.getUTCSeconds(), 2) + \".0Z\");\n data[\"x-ethers\"] = {\n client: client,\n gethFilename: (\"UTC--\" + timestamp + \"--\" + data.address),\n mnemonicCounter: hexlify(mnemonicIv).substring(2),\n mnemonicCiphertext: hexlify(mnemonicCiphertext).substring(2),\n path: path,\n locale: locale,\n version: \"0.1\"\n };\n }\n return JSON.stringify(data);\n });\n}\n//# sourceMappingURL=keystore.js.map","\"use strict\";\nimport { decrypt as decryptCrowdsale } from \"./crowdsale\";\nimport { getJsonWalletAddress, isCrowdsaleWallet, isKeystoreWallet } from \"./inspect\";\nimport { decrypt as decryptKeystore, decryptSync as decryptKeystoreSync, encrypt as encryptKeystore } from \"./keystore\";\nfunction decryptJsonWallet(json, password, progressCallback) {\n if (isCrowdsaleWallet(json)) {\n if (progressCallback) {\n progressCallback(0);\n }\n const account = decryptCrowdsale(json, password);\n if (progressCallback) {\n progressCallback(1);\n }\n return Promise.resolve(account);\n }\n if (isKeystoreWallet(json)) {\n return decryptKeystore(json, password, progressCallback);\n }\n return Promise.reject(new Error(\"invalid JSON wallet\"));\n}\nfunction decryptJsonWalletSync(json, password) {\n if (isCrowdsaleWallet(json)) {\n return decryptCrowdsale(json, password);\n }\n if (isKeystoreWallet(json)) {\n return decryptKeystoreSync(json, password);\n }\n throw new Error(\"invalid JSON wallet\");\n}\nexport { decryptCrowdsale, decryptKeystore, decryptKeystoreSync, encryptKeystore, isCrowdsaleWallet, isKeystoreWallet, getJsonWalletAddress, decryptJsonWallet, decryptJsonWalletSync, };\n//# sourceMappingURL=index.js.map","export const version = \"wallet/5.7.0\";\n//# sourceMappingURL=_version.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getAddress } from \"@ethersproject/address\";\nimport { Provider } from \"@ethersproject/abstract-provider\";\nimport { Signer } from \"@ethersproject/abstract-signer\";\nimport { arrayify, concat, hexDataSlice, isHexString, joinSignature } from \"@ethersproject/bytes\";\nimport { hashMessage, _TypedDataEncoder } from \"@ethersproject/hash\";\nimport { defaultPath, HDNode, entropyToMnemonic } from \"@ethersproject/hdnode\";\nimport { keccak256 } from \"@ethersproject/keccak256\";\nimport { defineReadOnly, resolveProperties } from \"@ethersproject/properties\";\nimport { randomBytes } from \"@ethersproject/random\";\nimport { SigningKey } from \"@ethersproject/signing-key\";\nimport { decryptJsonWallet, decryptJsonWalletSync, encryptKeystore } from \"@ethersproject/json-wallets\";\nimport { computeAddress, recoverAddress, serialize } from \"@ethersproject/transactions\";\nimport { Logger } from \"@ethersproject/logger\";\nimport { version } from \"./_version\";\nconst logger = new Logger(version);\nfunction isAccount(value) {\n return (value != null && isHexString(value.privateKey, 32) && value.address != null);\n}\nfunction hasMnemonic(value) {\n const mnemonic = value.mnemonic;\n return (mnemonic && mnemonic.phrase);\n}\nexport class Wallet extends Signer {\n constructor(privateKey, provider) {\n super();\n if (isAccount(privateKey)) {\n const signingKey = new SigningKey(privateKey.privateKey);\n defineReadOnly(this, \"_signingKey\", () => signingKey);\n defineReadOnly(this, \"address\", computeAddress(this.publicKey));\n if (this.address !== getAddress(privateKey.address)) {\n logger.throwArgumentError(\"privateKey/address mismatch\", \"privateKey\", \"[REDACTED]\");\n }\n if (hasMnemonic(privateKey)) {\n const srcMnemonic = privateKey.mnemonic;\n defineReadOnly(this, \"_mnemonic\", () => ({\n phrase: srcMnemonic.phrase,\n path: srcMnemonic.path || defaultPath,\n locale: srcMnemonic.locale || \"en\"\n }));\n const mnemonic = this.mnemonic;\n const node = HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);\n if (computeAddress(node.privateKey) !== this.address) {\n logger.throwArgumentError(\"mnemonic/address mismatch\", \"privateKey\", \"[REDACTED]\");\n }\n }\n else {\n defineReadOnly(this, \"_mnemonic\", () => null);\n }\n }\n else {\n if (SigningKey.isSigningKey(privateKey)) {\n /* istanbul ignore if */\n if (privateKey.curve !== \"secp256k1\") {\n logger.throwArgumentError(\"unsupported curve; must be secp256k1\", \"privateKey\", \"[REDACTED]\");\n }\n defineReadOnly(this, \"_signingKey\", () => privateKey);\n }\n else {\n // A lot of common tools do not prefix private keys with a 0x (see: #1166)\n if (typeof (privateKey) === \"string\") {\n if (privateKey.match(/^[0-9a-f]*$/i) && privateKey.length === 64) {\n privateKey = \"0x\" + privateKey;\n }\n }\n const signingKey = new SigningKey(privateKey);\n defineReadOnly(this, \"_signingKey\", () => signingKey);\n }\n defineReadOnly(this, \"_mnemonic\", () => null);\n defineReadOnly(this, \"address\", computeAddress(this.publicKey));\n }\n /* istanbul ignore if */\n if (provider && !Provider.isProvider(provider)) {\n logger.throwArgumentError(\"invalid provider\", \"provider\", provider);\n }\n defineReadOnly(this, \"provider\", provider || null);\n }\n get mnemonic() { return this._mnemonic(); }\n get privateKey() { return this._signingKey().privateKey; }\n get publicKey() { return this._signingKey().publicKey; }\n getAddress() {\n return Promise.resolve(this.address);\n }\n connect(provider) {\n return new Wallet(this, provider);\n }\n signTransaction(transaction) {\n return resolveProperties(transaction).then((tx) => {\n if (tx.from != null) {\n if (getAddress(tx.from) !== this.address) {\n logger.throwArgumentError(\"transaction from address mismatch\", \"transaction.from\", transaction.from);\n }\n delete tx.from;\n }\n const signature = this._signingKey().signDigest(keccak256(serialize(tx)));\n return serialize(tx, signature);\n });\n }\n signMessage(message) {\n return __awaiter(this, void 0, void 0, function* () {\n return joinSignature(this._signingKey().signDigest(hashMessage(message)));\n });\n }\n _signTypedData(domain, types, value) {\n return __awaiter(this, void 0, void 0, function* () {\n // Populate any ENS names\n const populated = yield _TypedDataEncoder.resolveNames(domain, types, value, (name) => {\n if (this.provider == null) {\n logger.throwError(\"cannot resolve ENS names without a provider\", Logger.errors.UNSUPPORTED_OPERATION, {\n operation: \"resolveName\",\n value: name\n });\n }\n return this.provider.resolveName(name);\n });\n return joinSignature(this._signingKey().signDigest(_TypedDataEncoder.hash(populated.domain, types, populated.value)));\n });\n }\n encrypt(password, options, progressCallback) {\n if (typeof (options) === \"function\" && !progressCallback) {\n progressCallback = options;\n options = {};\n }\n if (progressCallback && typeof (progressCallback) !== \"function\") {\n throw new Error(\"invalid callback\");\n }\n if (!options) {\n options = {};\n }\n return encryptKeystore(this, password, options, progressCallback);\n }\n /**\n * Static methods to create Wallet instances.\n */\n static createRandom(options) {\n let entropy = randomBytes(16);\n if (!options) {\n options = {};\n }\n if (options.extraEntropy) {\n entropy = arrayify(hexDataSlice(keccak256(concat([entropy, options.extraEntropy])), 0, 16));\n }\n const mnemonic = entropyToMnemonic(entropy, options.locale);\n return Wallet.fromMnemonic(mnemonic, options.path, options.locale);\n }\n static fromEncryptedJson(json, password, progressCallback) {\n return decryptJsonWallet(json, password, progressCallback).then((account) => {\n return new Wallet(account);\n });\n }\n static fromEncryptedJsonSync(json, password) {\n return new Wallet(decryptJsonWalletSync(json, password));\n }\n static fromMnemonic(mnemonic, path, wordlist) {\n if (!path) {\n path = defaultPath;\n }\n return new Wallet(HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path));\n }\n}\nexport function verifyMessage(message, signature) {\n return recoverAddress(hashMessage(message), signature);\n}\nexport function verifyTypedData(domain, types, value, signature) {\n return recoverAddress(_TypedDataEncoder.hash(domain, types, value), signature);\n}\n//# sourceMappingURL=index.js.map","import { clsx } from 'clsx'\nimport { Fragment, memo } from 'react'\n\nimport { Box, BoxProps } from '~/components/Box'\n\nimport * as styles from './styles.css'\n\nconst MOD = 1000\nconst SIZE = 64\nconst RADIUS = SIZE / 2\n\ntype GradientAvatarProps = {\n address: string\n initials?: string\n complexity?: number\n} & styles.AvatarVariants &\n BoxProps\n\ninterface HashState {\n a: number\n b: number\n c: number\n x: number\n y: number\n r: number\n}\n\n// const clamp = (value: number, min: number, max: number) =>\n// Math.min(Math.max(value, min), max)\n\n// const clampGradientPosition = (value: number, offset: number = 0) =>\n// clamp(value, 0 + offset, SIZE - offset)\n\nconst scaledMod = (value: number, mod: number = MOD) => {\n return (value % mod) / (MOD / SIZE)\n}\n\nconst cyrb53 = (str: string, seed: number = 0): number => {\n let h1 = 0xdeadbeef ^ seed,\n h2 = 0x41c6ce57 ^ seed\n\n for (let i = 0, ch; i < str.length; i++) {\n ch = str.charCodeAt(i)\n h1 = Math.imul(h1 ^ ch, 2654435761)\n h2 = Math.imul(h2 ^ ch, 1597334677)\n }\n\n h1 =\n Math.imul(h1 ^ (h1 >>> 16), 2246822507) ^\n Math.imul(h2 ^ (h2 >>> 13), 3266489909)\n h2 =\n Math.imul(h2 ^ (h2 >>> 16), 2246822507) ^\n Math.imul(h1 ^ (h1 >>> 13), 3266489909)\n\n return 4294967296 * (2097151 & h2) + (h1 >>> 0)\n}\n\nconst createGradient = (a: number, b: number, c: number) => {\n const randID = Math.random().toString(36).slice(2, 12)\n\n const hueA = a % 360\n const hueB = (a + 120) % 360\n const hueC = c % 360\n\n return {\n id: cyrb53(randID),\n a: `hsl(${hueA}deg 100% 40%)`,\n b: `hsl(${hueB}deg 100% 50%)`,\n c: `hsl(${hueC}deg 100% 50%)`,\n }\n}\n\nconst createGradients = (address: string, complexity: number) => {\n const hashes: HashState[] = []\n for (let i = 0; i < complexity; i++) {\n const offset = i * 6\n\n hashes.push({\n a: cyrb53(address + 'a', offset),\n b: cyrb53(address + 'b', offset + 1),\n c: cyrb53(address + 'c', offset + 2),\n x: cyrb53(address + 'd', offset + 3),\n y: cyrb53(address + 'e', offset + 4),\n r: cyrb53(address + 'f', offset + 5),\n })\n }\n\n return hashes.map((hash, idx) => {\n const r = SIZE / 10 + scaledMod(hash.r, (MOD * 1.5) / (idx + 1))\n\n return {\n ...createGradient(hash.a, hash.b, hash.c),\n x: scaledMod(hash.x), //clampGradientPosition(hash.x % SIZE, -r / 3),\n y: scaledMod(hash.y), //clampGradientPosition(hash.y % SIZE, -r / 3),\n r,\n }\n })\n}\nexport const GradientAvatar = memo((props: GradientAvatarProps) => {\n const { className, address, size = 'md', complexity = 1, ...rest } = props\n const gradients = createGradients(address, complexity)\n\n return (\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n\n {gradients.map(gradient => (\n \n \n \n \n \n\n \n \n \n \n \n ))}\n \n\n \n \n\n \n {gradients.map(gradient => (\n \n \n \n \n ))}\n \n\n {/* {initials && (\n \n {initials}\n \n )} */}\n \n \n )\n})\n"],"names":["__viteBrowserExternal","module","exports","assert","val","msg","inherits","ctor","superCtor","TempCtor","BN","number","base","endian","Buffer","require$$0","num","left","right","start","i","j","w","off","parseHex4Bits","string","index","parseHexByte","lowerBound","r","parseLength","parseBase","str","end","mul","b","len","c","limbLen","limbPow","total","mod","word","pow","dest","move","src","size","inspect","zeros","groupSizes","groupBases","padding","out","carry","groupSize","groupBase","ret","length","allocate","ArrayType","byteLength","reqLength","res","postfix","position","shift","t","hi","toBitArray","bit","wbit","width","a","bytesNeeded","bitsLeft","cmp","smallMulTo","self","lo","k","ncarry","rword","maxJ","comb10MulTo","o","mid","a0","al0","ah0","a1","al1","ah1","a2","al2","ah2","a3","al3","ah3","a4","al4","ah4","a5","al5","ah5","a6","al6","ah6","a7","al7","ah7","a8","al8","ah8","a9","al9","ah9","b0","bl0","bh0","b1","bl1","bh1","b2","bl2","bh2","b3","bl3","bh3","b4","bl4","bh4","b5","bl5","bh5","b6","bl6","bh6","b7","bl7","bh7","b8","bl8","bh8","b9","bl9","bh9","w0","w1","w2","w3","w4","w5","w6","w7","w8","w9","w10","w11","w12","w13","w14","w15","w16","w17","w18","bigMulTo","hncarry","jumboMulTo","isNegNum","q","bits","s","carryMask","newCarry","hint","extended","h","mask","maskedWords","mode","bhi","bhiBits","m","diff","qj","positive","div","dm","half","r2","p","acc","x","y","A","B","C","D","g","yp","xp","im","jm","x1","x2","delta","negative","Red","ctx","primes","MPrime","name","tmp","rlen","input","K256","output","outLen","prev","next","P224","P192","P25519","prime","mod3","one","nOne","lpow","z","inv","windowSize","wnd","current","currentLen","Mont","u","this","version","_permanentCensorErrors","_censorErrors","LogLevels","_logLevel","_globalLogger","_checkNormalize","missing","form","error","_normalizeError","LogLevel","ErrorCode","HEX","Logger","logLevel","args","level","message","code","params","messageDetails","key","value","hex","reason","url","fault","condition","count","expectedCount","target","kind","censorship","permanent","logger","isHexable","addSlice","array","isBytesLike","isHexString","isBytes","isInteger","v","arrayify","options","result","concat","items","objects","item","accum","offset","object","stripZeros","zeroPad","HexCharacters","hexlify","hexDataLength","data","hexDataSlice","endOffset","hexConcat","hexZeroPad","splitSignature","signature","bytes","vs","recoveryParam","recId","_vs","joinSignature","_BN","_constructorGuard","MAX_SAFE","_warnedToStringRadix","BigNumber","constructorGuard","toBigNumber","toBN","other","throwFault","toHex","anyValue","operation","_base36To16","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","reject","fulfilled","step","e","rejected","defineReadOnly","resolveProperties","promises","checkProperties","properties","shallowCopy","opaque","_isFrozen","keys","_deepCopy","deepCopy","Description","info","INPUT_ERROR","FINALIZE_ERROR","WINDOW","root","WEB_WORKER","NODE_JS","global","COMMON_JS","ARRAY_BUFFER","HEX_CHARS","SHAKE_PADDING","CSHAKE_PADDING","KECCAK_PADDING","PADDING","SHIFT","RC","BITS","SHAKE_BITS","OUTPUT_TYPES","CSHAKE_BYTEPAD","obj","createOutputMethod","outputType","Keccak","createShakeOutputMethod","outputBits","createCshakeOutputMethod","n","methods","createKmacOutputMethod","createOutputMethods","method","createMethod","type","createShakeMethod","createCshakeMethod","createKmacMethod","Kmac","algorithms","methodNames","algorithm","methodName","newMethodName","notString","blocks","byteCount","blockCount","f","strs","paddingBytes","outputBlocks","extraBytes","block","buffer","l","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","b10","b11","b12","b13","b14","b15","b16","b17","b18","b19","b20","b21","b22","b23","b24","b25","b26","b27","b28","b29","b30","b31","b32","b33","b34","b35","b36","b37","b38","b39","b40","b41","b42","b43","b44","b45","b46","b47","b48","b49","keccak256","sha3","arrayifyInteger","_encode","payload","child","encode","getChecksumAddress","address","chars","expanded","hashed","MAX_SAFE_INTEGER","log10","ibanLookup","safeDigits","ibanChecksum","checksum","getAddress","UnicodeNormalizationForm","Utf8ErrorReason","toUtf8Bytes","pair","id","text","messagePrefix","hashMessage","NegativeOne","Zero","One","MaxUint256","hexPadRight","padOffset","hexTrue","hexFalse","domainFieldTypes","domainFieldNames","checkString","domainChecks","getBaseEncoder","match","signed","boundsUpper","boundsLower","encodeType","fields","TypedDataEncoder","types","links","parents","subtypes","uniqueNames","field","baseType","primaryTypes","checkCircular","found","subtype","st","encoder","subEncoder","encodedType","values","callback","domain","domainFields","resolveName","ensCache","domainValues","domainTypes","typesWithDomain","Provider","gasPrice","lastBaseFeePerGas","maxFeePerGas","maxPriorityFeePerGas","eventName","listener","allowedTransactionKeys","forwardErrors","Signer","blockTag","transaction","tx","signedTx","to","hasEip1559","feeData","results","minimalisticAssert","inherits_browserModule","require$$1","utils","isSurrogatePair","toArray","enc","zero2","htonl","toHex32","zero8","join32","split32","rotr32","rotl32","sum32","sum32_3","sum32_4","d","sum32_5","sum64","buf","pos","ah","al","bh","bl","sum64_hi","sum64_lo","sum64_4_hi","ch","cl","dh","dl","sum64_4_lo","sum64_5_hi","eh","el","sum64_5_lo","rotr64_hi","rotr64_lo","shr64_hi","shr64_lo","BlockHash","common","ft_1","ch32","p32","maj32","s0_256","s1_256","g0_256","g1_256","shaCommon","require$$2","sha1_K","SHA1","_1","W","require$$3","sha256_K","SHA256","_256","T1","T2","SHA224","_224","sha512_K","SHA512","_512","c0_hi","g1_512_hi","c0_lo","g1_512_lo","c1_hi","c1_lo","c2_hi","g0_512_hi","c2_lo","g0_512_lo","c3_hi","c3_lo","fh","fl","gh","gl","hh","hl","s1_512_hi","s1_512_lo","ch64_hi","ch64_lo","c4_hi","c4_lo","T1_hi","T1_lo","s0_512_hi","s0_512_lo","maj64_hi","maj64_lo","T2_hi","T2_lo","xh","xl","yh","yl","zh","zl","SHA384","_384","sha","require$$4","RIPEMD160","ripemd","E","Ah","Bh","Ch","Dh","Eh","T","K","rh","Kh","sh","Hmac","hash","hmac","createCommonjsModule","fn","basedir","path","commonjsRequire","utils_1","arr","utils_1$1","getNAF","naf","ws","getJSF","k1","k2","jsf","d1","d2","m8","m14","m24","u1","u2","cachedProperty","computer","parseBytes","intFromLE","assert$1","BaseCurve","conf","adjustCount","doubles","I","repr","nafW","nafPoints","defW","points","coeffs","jacobianResult","wndWidth","max","comb","ja","jb","zero","BasePoint","curve","compact","power","precomputed","dbl","inherits_browser","assert$2","ShortCurve","short_1","beta","lambda","betas","lambdas","basis","vec","red","tinv","ntinv","l1","l2","aprxSqrt","y1","y2","prevR","len1","len2","v1","v2","p1","p2","q1","q2","odd","isOdd","point","ax","rhs","npoints","ncoeffs","split","Point","isRed","pre","endoMul","obj2point","nx","ny","ys1","dyinv","_precompute","negate","JPoint","zinv","zinv2","ay","pz2","z2","s1","s2","h2","h3","nz","jx","jy","jz","jz4","jyd","jx2","jyd2","jyd4","t1","t2","dny","xx","yy","yyyy","yyyy8","gamma","alpha","beta4","beta8","ggamma8","jy2","jxd4","jyd8","zz","mm","ee","yyu4","kbase","z3","pz3","zs","rx","xc","curve_1","curves_1","curves","PresetCurve","defineCurve","HmacDRBG","entropy","nonce","pers","hmacDrbg","seed","kmac","entropyEnc","add","addEnc","temp","assert$3","KeyPair","ec","pub","priv","assert$4","Signature","Position","getLength","initial","octetLen","rmPadding","slen","constructLength","octets","backHalf","rand","assert$5","EC","drbg","ns2","truncOnly","bkey","ns1","iter","kp","kpX","signature$1","sinv","isYOdd","isSecondKey","rInv","Q","Qprime","elliptic_1","elliptic","EC$1","_curve","getCurve","SigningKey","privateKey","keyPair","p0","digest","digestBytes","otherKey","otherKeyPair","computePublicKey","compressed","signingKey","TransactionTypes","transactionFields","computeAddress","publicKey","formatNumber","accessSetify","addr","storageKeys","storageKey","accessListify","set","formatAccessList","_serializeEip1559","sig","RLP.encode","_serializeEip2930","_serialize","raw","fieldInfo","chainId","serialize","BaseX","alphabet","source","digits","byte","Base58","SupportedAlgorithm","ripemd160","sha256","computeHmac","pbkdf2","password","salt","iterations","keylen","hashAlgorithm","hLen","DK","block1","U","destPos","Wordlist","locale","mnemonic","words","wordlist","lang","loadWords","LangEn","langEn","wordlists","en","N","MasterSecret","HardenedBit","getUpperMask","getLowerMask","bytes32","base58check","getWordlist","defaultPath","HDNode","parentFingerprint","chainCode","depth","mnemonicOrPath","IL","IR","ki","Ki","srcMnemonic","components","component","seedArray","entropyToMnemonic","mnemonicToEntropy","mnemonicToSeed","extendedKey","entropyBits","checksumBits","checksumMask","indices","remainingBits","getGlobal","anyGlobal","crypto","randomBytes","checkInt","checkInts","arrayish","coerceArray","arg","copy","createArray","copyArray","sourceArray","targetArray","targetStart","sourceStart","sourceEnd","convertUtf8","toBytes","fromBytes","convertHex","Hex","numberOfRounds","rcon","S","Si","T3","T4","T5","T6","T7","T8","U1","U2","U3","U4","convertToInt32","AES","rounds","roundKeyCount","KC","tk","rconpointer","tt","plaintext","ciphertext","ModeOfOperationECB","ModeOfOperationCBC","iv","ModeOfOperationCFB","segmentSize","encrypted","xorSegment","ModeOfOperationOFB","Counter","initialValue","ModeOfOperationCTR","counter","pkcs7pad","padder","pkcs7strip","aesjs","looseArrayify","hexString","zpad","getPassword","searchPath","currentChild","comps","matchingChild","uuidV4","CrowdsaleAccount","decrypt","json","ethaddr","encseed","encryptedSeed","aesCbc","aes","seedHex","seedHexBytes","isCrowdsaleWallet","isKeystoreWallet","h0","h1","h4","h5","h6","h7","bytesLeft","bitLenHi","bitLenLo","numZeros","PBKDF2_HMAC_SHA256_OneIter","dkLen","innerLen","inner","outerKey","dk","incrementCounter","blockmix_salsa8","BY","Yi","_X","arraycopy","blockxor","salsa20_8","R","srcPos","checkBufferish","ensureInteger","_scrypt","XY","V","totalOps","currentOp","lastPercent10","stop","state","i0","i1","Bi","limit","nextTick","incrementalSMix","steps","percent10","derivedKey","lib","progressCallback","lastProgress","progress","hasMnemonic","KeystoreAccount","_decrypt","aesCtr","_getAccount","mnemonicKey","check","account","mnemonicCiphertext","mnemonicIv","mnemonicCounter","mnemonicAesCtr","node","pbkdf2Sync","passwordBytes","prfFunc","_pbkdf2","_computeKdfKey","pbkdf2Func","scryptFunc","kdf","throwError","prf","decryptSync","scrypt","encrypt","client","uuidRandom","macPrefix","mac","now","timestamp","decryptJsonWallet","decryptCrowdsale","decryptKeystore","decryptJsonWalletSync","decryptKeystoreSync","isAccount","Wallet","provider","populated","_TypedDataEncoder","encryptKeystore","MOD","SIZE","RADIUS","scaledMod","cyrb53","createGradient","randID","hueA","hueB","hueC","createGradients","complexity","hashes","idx","GradientAvatar","memo","props","className","rest","gradients","jsxs","Box","clsx","styles.avatar","jsx","gradient","Fragment"],"mappings":"8aAAA,MAAeA,GAAA,CAAA,8ICAd,SAAUC,EAAQC,EAAS,CAI1B,SAASC,EAAQC,EAAKC,EAAK,CACzB,GAAI,CAACD,EAAK,MAAM,IAAI,MAAMC,GAAO,kBAAkB,CACpD,CAID,SAASC,EAAUC,EAAMC,EAAW,CAClCD,EAAK,OAASC,EACd,IAAIC,EAAW,UAAY,GAC3BA,EAAS,UAAYD,EAAU,UAC/BD,EAAK,UAAY,IAAIE,EACrBF,EAAK,UAAU,YAAcA,CAC9B,CAID,SAASG,EAAIC,EAAQC,EAAMC,EAAQ,CACjC,GAAIH,EAAG,KAAKC,CAAM,EAChB,OAAOA,EAGT,KAAK,SAAW,EAChB,KAAK,MAAQ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,SAAA,CAGED,GAAA,IAAA,OAAA,CAAA,OAAA,IAAA,UAAAC,EAAA,EAAA,EAAwCD,GAAA,IAAA,OAAA,CAAA,OAAA,IAAA,UAAAC,EAAA,EAAA,CACA,EAAA,CAC1C,GAAAA,EAAA,EAAA,CAAA,CAEH,EAAA,EACHL,GAAAA,KAAA,IAAA,CAAA,SAAA,oBAAA,SAAA,CAGEI,GAAA,IAAA,OAAC,CAAA,MAAA,OACO,OAAA,OACC,KAAA,4BAAAL,EAAA,CAAA,EAAA,EAAA,GAC0C,CAAA,EACnDK,GAAAA,IAAA,IAAA,CAAA,OAAA,aAAA,SAAAL,EAAA,IAAAM,GAAAL,GAAAA,KAAAM,GAAA,SAAA,CAAA,SAAA,CAKMF,GAAA,IAAA,SAAC,CAAA,KAAA,yBAAAC,EAAA,EAAA,IAC2C,GAAAA,EAAA,EAC7B,GAAAA,EAAA,EACA,EAAAA,EAAA,CACD,CAAA,EACdD,GAAA,IACA,SAAC,CAAA,KAAA,2BAAAC,EAAA,EAAA,IAC6C,GAAAA,EAAA,EAC/B,GAAAA,EAAA,EACA,EAAAA,EAAA,EAAA,CACG,CAAA,CAClB,CAAA,EAAAA,EAAA,EAAA,CAAA,EAAA,CAGN,EAAA,CAgBF,CAAA,CAAA,CAGN,CAAA;;;;;;;;;;;;;;;;","x_google_ignoreList":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67]} \ No newline at end of file diff --git a/assets/IconButton-3648ed15.js.map b/assets/IconButton-3648ed15.js.map deleted file mode 100644 index e9581181d..000000000 --- a/assets/IconButton-3648ed15.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IconButton-3648ed15.js","sources":["../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import { ComponentType, ElementType, forwardRef } from 'react'\n\nimport {\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { Button, ButtonVariants } from '~/components/Button'\nimport { IconProps } from '~/icons/types'\n\ntype IconButtonVariants = { variant?: (ButtonVariants & {})['variant'] }\n\ntype IconButtonProps = IconButtonVariants & {\n size?: 'xs' | 'sm' | 'md' | 'lg'\n icon: ComponentType\n}\n\nexport const IconButton: PolymorphicComponent =\n forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const { icon, size = 'md', ...rest } = props\n\n return (\n \n )\n }\n )\n"],"names":["IconButton","forwardRef","props","ref","icon","size","rest","jsx","Button"],"mappings":"+HAiBO,MAAAA,EAAAC,EAAA,WACL,CAAAC,EAAAC,IAAA,CAKI,KAAA,CAAA,KAAAC,EAAA,KAAAC,EAAA,KAAA,GAAAC,CAAA,EAAAJ,EAEA,OAAAK,EAAA,IACEC,EAAC,CAAA,SAAAJ,EACW,KAAAC,EACV,WAAA,IACW,IAAAF,EACX,GAAAG,CACI,CAAA,CACN,CAGN"} \ No newline at end of file diff --git a/assets/IconButton-3648ed15.js b/assets/IconButton-64184e44.js similarity index 99% rename from assets/IconButton-3648ed15.js rename to assets/IconButton-64184e44.js index db6d4ff46..505923052 100644 --- a/assets/IconButton-3648ed15.js +++ b/assets/IconButton-64184e44.js @@ -1,2 +1 @@ -import{j as a}from"./jsx-runtime-69eee039.js";import{r as l}from"./index-7c191284.js";import{B as o}from"./Button-cbaba6d6.js";const t=l.forwardRef((n,e)=>{const{icon:i,size:r="md",...s}=n;return a.jsx(o,{leftIcon:i,size:r,flexShrink:"0",ref:e,...s})});try{t.displayName="IconButton",t.__docgenInfo={description:"",displayName:"IconButton",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; -//# sourceMappingURL=IconButton-3648ed15.js.map +import{j as a}from"./jsx-runtime-1caa8f64.js";import{r as l}from"./index-1cdf6ce0.js";import{B as o}from"./Button-e8455a66.js";const t=l.forwardRef((n,e)=>{const{icon:i,size:r="md",...s}=n;return a.jsx(o,{leftIcon:i,size:r,flexShrink:"0",ref:e,...s})});try{t.displayName="IconButton",t.__docgenInfo={description:"",displayName:"IconButton",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"base"'},{value:'"feature"'},{value:'"primary"'},{value:'"glass"'},{value:'"emphasis"'},{value:'"raised"'},{value:'"danger"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!0,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; diff --git a/assets/IconButton.stories-cdee0429.js b/assets/IconButton.stories-14ebd0d3.js similarity index 63% rename from assets/IconButton.stories-cdee0429.js rename to assets/IconButton.stories-14ebd0d3.js index 885d92aa9..648c4064a 100644 --- a/assets/IconButton.stories-cdee0429.js +++ b/assets/IconButton.stories-14ebd0d3.js @@ -1,4 +1,4 @@ -import{a as e}from"./WarningIcon-b42ff4ac.js";import{I as s}from"./IconButton-3648ed15.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Button-cbaba6d6.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */const v={title:"Components/IconButton",component:s},o={args:{icon:e,disabled:!1,size:"md",onClick:()=>console.log("ouch!"),variant:"raised"}};var r,t,n;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{a as e}from"./WarningIcon-c4815a2d.js";import{I as s}from"./IconButton-64184e44.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Button-e8455a66.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */const v={title:"Components/IconButton",component:s},o={args:{icon:e,disabled:!1,size:"md",onClick:()=>console.log("ouch!"),variant:"raised"}};var r,t,n;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { icon: ArrowRightIcon, disabled: false, @@ -7,4 +7,3 @@ import{a as e}from"./WarningIcon-b42ff4ac.js";import{I as s}from"./IconButton-36 variant: 'raised' } }`,...(n=(t=o.parameters)==null?void 0:t.docs)==null?void 0:n.source}}};const B=["Default"];export{o as Default,B as __namedExportsOrder,v as default}; -//# sourceMappingURL=IconButton.stories-cdee0429.js.map diff --git a/assets/IconButton.stories-cdee0429.js.map b/assets/IconButton.stories-cdee0429.js.map deleted file mode 100644 index 79ed68a76..000000000 --- a/assets/IconButton.stories-cdee0429.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IconButton.stories-cdee0429.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"} \ No newline at end of file diff --git a/assets/Iconography.stories-2ce7db4d.js b/assets/Iconography.stories-2ce7db4d.js new file mode 100644 index 000000000..d40ced425 --- /dev/null +++ b/assets/Iconography.stories-2ce7db4d.js @@ -0,0 +1,4 @@ +import{M as t,I as g,f as i}from"./chunk-HLWAVYOI-927b14e8.js";import{d as S,e as v,f as p,a as l,g as m,h as d,i as h,j as u,k as C,l as x,c as y,m as M,n as f,o as j,p as D,q as k,r as b,s as _,t as w,u as E,v as R,w as A,x as G,y as L,z as O,A as T,B as P,C as H,D as N,E as W,F,G as X,H as q,I as B,J as K,K as Q,L as U,M as V,N as z,O as J,P as Y,Q as Z,R as $,T as oo,S as no,b as co,U as eo,V as ao,W as so,X as Io,Y as ro,Z as to,_ as go,$ as io,a0 as So,a1 as vo,a2 as po,a3 as lo,a4 as mo,a5 as ho}from"./WarningIcon-c4815a2d.js";import{j as o}from"./jsx-runtime-1caa8f64.js";import{u as I}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const uo=Object.freeze(Object.defineProperty({__proto__:null,AddIcon:S,AirDropperIcon:v,AppleIcon:p,ArrowRightIcon:l,BridgeIcon:m,CheckmarkIcon:d,ChevronDownIcon:h,ChevronLeftIcon:u,ChevronRightIcon:C,ChevronUpIcon:x,CloseIcon:y,ContactsIcon:M,ContextMenuIcon:f,ContractIcon:j,CopyIcon:D,CurrencyIcon:k,DeviceIcon:b,DiscordIcon:_,DocsIcon:w,EditIcon:E,EmailIcon:R,ExpandIcon:A,ExternalLinkIcon:G,FacebookIcon:L,GasTankIcon:O,GlobeIcon:T,GoogleIcon:P,HelpIcon:H,HiddenIcon:N,IndexerIcon:W,KeyIcon:F,LinkIcon:X,MarketplacesIcon:q,MenuIcon:B,MinterIcon:K,MoonIcon:Q,NetworkIcon:U,NodeIcon:V,PaymentsIcon:z,ProfileIcon:J,QrCodeIcon:Y,ReceiveIcon:Z,RefreshIcon:$,RelayerIcon:oo,ScanIcon:no,SearchIcon:co,SendIcon:eo,SequenceIcon:ao,SettingsIcon:so,ShareIcon:Io,ShieldIcon:ro,SignoutIcon:to,SubtractIcon:go,SunIcon:io,SwapIcon:So,TransactionIcon:vo,TwitchIcon:po,VisibleIcon:lo,WalletIcon:mo,WarningIcon:ho},Symbol.toStringTag,{value:"Module"}));function s(n){const c=Object.assign({h1:"h1",p:"p"},I(),n.components);return o.jsxs(o.Fragment,{children:[o.jsx(t,{title:"Design System/Iconography"}),` +`,o.jsx(c.h1,{id:"iconography",children:"Iconography"}),` +`,o.jsx(c.p,{children:"Collection of icons used in the design system."}),` +`,o.jsx(g,{children:Object.entries(uo).map(([a,r])=>o.jsx(i,{name:a,children:o.jsx(r,{})},a))})]})}function Co(n={}){const{wrapper:c}=Object.assign({},I(),n.components);return c?o.jsx(c,{...n,children:o.jsx(s,{...n})}):s(n)}const xo=()=>{throw new Error("Docs-only story")};xo.parameters={docsOnly:!0};const e={title:"Design System/Iconography",tags:["stories-mdx"],includeStories:["__page"]};e.parameters=e.parameters||{};e.parameters.docs={...e.parameters.docs||{},page:Co};const Ho=["__page"];export{Ho as __namedExportsOrder,xo as __page,e as default}; diff --git a/assets/Iconography.stories-67707fa9.js b/assets/Iconography.stories-67707fa9.js deleted file mode 100644 index 02fb9ad10..000000000 --- a/assets/Iconography.stories-67707fa9.js +++ /dev/null @@ -1,5 +0,0 @@ -import{M as t,I as g,f as i}from"./chunk-HLWAVYOI-6982640e.js";import{d as S,e as v,f as p,a as l,g as m,h as d,i as h,j as u,k as C,l as x,c as y,m as M,n as f,o as j,p as D,q as k,r as b,s as _,t as w,u as E,v as R,w as A,x as G,y as L,z as O,A as T,B as P,C as H,D as N,E as W,F,G as X,H as q,I as B,J as K,K as Q,L as U,M as V,N as z,O as J,P as Y,Q as Z,R as $,T as oo,S as no,b as co,U as eo,V as ao,W as so,X as Io,Y as ro,Z as to,_ as go,$ as io,a0 as So,a1 as vo,a2 as po,a3 as lo,a4 as mo,a5 as ho}from"./WarningIcon-b42ff4ac.js";import{j as o}from"./jsx-runtime-69eee039.js";import{u as I}from"./index-abfde3b8.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./index-7c191284.js";import"./index-f940c6c3.js";import"./index-ecbee218.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-d37d4223.js";import"./index-356e4a49.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const uo=Object.freeze(Object.defineProperty({__proto__:null,AddIcon:S,AirDropperIcon:v,AppleIcon:p,ArrowRightIcon:l,BridgeIcon:m,CheckmarkIcon:d,ChevronDownIcon:h,ChevronLeftIcon:u,ChevronRightIcon:C,ChevronUpIcon:x,CloseIcon:y,ContactsIcon:M,ContextMenuIcon:f,ContractIcon:j,CopyIcon:D,CurrencyIcon:k,DeviceIcon:b,DiscordIcon:_,DocsIcon:w,EditIcon:E,EmailIcon:R,ExpandIcon:A,ExternalLinkIcon:G,FacebookIcon:L,GasTankIcon:O,GlobeIcon:T,GoogleIcon:P,HelpIcon:H,HiddenIcon:N,IndexerIcon:W,KeyIcon:F,LinkIcon:X,MarketplacesIcon:q,MenuIcon:B,MinterIcon:K,MoonIcon:Q,NetworkIcon:U,NodeIcon:V,PaymentsIcon:z,ProfileIcon:J,QrCodeIcon:Y,ReceiveIcon:Z,RefreshIcon:$,RelayerIcon:oo,ScanIcon:no,SearchIcon:co,SendIcon:eo,SequenceIcon:ao,SettingsIcon:so,ShareIcon:Io,ShieldIcon:ro,SignoutIcon:to,SubtractIcon:go,SunIcon:io,SwapIcon:So,TransactionIcon:vo,TwitchIcon:po,VisibleIcon:lo,WalletIcon:mo,WarningIcon:ho},Symbol.toStringTag,{value:"Module"}));function s(n){const c=Object.assign({h1:"h1",p:"p"},I(),n.components);return o.jsxs(o.Fragment,{children:[o.jsx(t,{title:"Design System/Iconography"}),` -`,o.jsx(c.h1,{id:"iconography",children:"Iconography"}),` -`,o.jsx(c.p,{children:"Collection of icons used in the design system."}),` -`,o.jsx(g,{children:Object.entries(uo).map(([a,r])=>o.jsx(i,{name:a,children:o.jsx(r,{})},a))})]})}function Co(n={}){const{wrapper:c}=Object.assign({},I(),n.components);return c?o.jsx(c,{...n,children:o.jsx(s,{...n})}):s(n)}const xo=()=>{throw new Error("Docs-only story")};xo.parameters={docsOnly:!0};const e={title:"Design System/Iconography",tags:["stories-mdx"],includeStories:["__page"]};e.parameters=e.parameters||{};e.parameters.docs={...e.parameters.docs||{},page:Co};const Po=["__page"];export{Po as __namedExportsOrder,xo as __page,e as default}; -//# sourceMappingURL=Iconography.stories-67707fa9.js.map diff --git a/assets/Iconography.stories-67707fa9.js.map b/assets/Iconography.stories-67707fa9.js.map deleted file mode 100644 index 2e7c22e55..000000000 --- a/assets/Iconography.stories-67707fa9.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Iconography.stories-67707fa9.js","sources":["../../src/docs/design-system/Iconography.stories.mdx"],"sourcesContent":["import { Meta, Title, IconGallery, IconItem } from '@storybook/addon-docs'\n\nimport * as icons from '../../icons'\n\n\n\n# Iconography\n\nCollection of icons used in the design system.\n\n\n {Object.entries(icons).map(([key, Icon]) => (\n \n \n \n ))}\n\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","IconGallery","icons","key","Icon","IconItem","MDXContent","MDXLayout","__page","componentMeta","__namedExportsOrder"],"mappings":"g6DAMA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,GACJ,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAoBG,EAAAA,KAAMC,EAAAA,SAAW,CACnC,SAAU,CAAcC,EAAI,IAACC,EAAM,CACjC,MAAO,2BACR,CAAA,EAAG;AAAA,EAAmBD,MAAKJ,EAAY,GAAI,CAC1C,GAAI,cACJ,SAAU,aACX,CAAA,EAAG;AAAA,EAAmBI,MAAKJ,EAAY,EAAG,CACzC,SAAU,gDAChB,CAAK,EAAG;AAAA,EAAmBI,EAAI,IAACE,EAAa,CACvC,SAAU,OAAO,QAAQC,EAAK,EAAE,IAAI,CAAC,CAACC,EAAKC,CAAI,IAAmBL,EAAAA,IAAKM,EAAU,CAC/E,KAAMF,EACN,SAAuBJ,EAAAA,IAAKK,EAAM,EAAE,CACrC,EAAED,CAAG,CAAC,CACb,CAAK,CAAC,CACN,CAAG,CACH,CACA,SAASG,GAAWZ,EAAQ,GAAI,CAC9B,KAAM,CACJ,QAASa,CACb,EAAM,OAAO,OAAO,CAAE,EAAEX,EAAkB,EAAIF,EAAM,UAAU,EAC5D,OAAOa,EAAyBR,EAAI,IAACQ,EAAW,CAC9C,GAAGb,EACH,SAAuBK,EAAI,IAACN,EAAmB,CAC7C,GAAGC,CACT,CAAK,CACL,CAAG,EAAID,EAAkBC,CAAK,CAC9B,CAEY,MAACc,GAAS,IAAM,CAC1B,MAAM,IAAI,MAAM,iBAAiB,CACnC,EACAA,GAAO,WAAa,CAClB,SAAU,EACZ,EACK,MAACC,EAAgB,CACpB,MAAO,4BACP,KAAM,CAAC,aAAa,EACpB,eAAgB,CAAC,QAAQ,CAC3B,EACAA,EAAc,WAAaA,EAAc,YAAc,GACvDA,EAAc,WAAW,KAAO,CAC9B,GAAIA,EAAc,WAAW,MAAQ,GACrC,KAAMH,EACR,EAC4B,MAAAI,GAAA,CAAA,QAAA"} \ No newline at end of file diff --git a/assets/Image-22368520.js b/assets/Image-22368520.js new file mode 100644 index 000000000..507b603a7 --- /dev/null +++ b/assets/Image-22368520.js @@ -0,0 +1 @@ +import{j as o}from"./jsx-runtime-1caa8f64.js";import{r as d}from"./index-1cdf6ce0.js";import{B as m}from"./Box-e4a86556.js";import{m as p}from"./motion-bbbff89a.js";const t=a=>{const{disableAnimation:e=!1,onLoad:n,...l}=a,[r,i]=d.useState(!1),u=s=>{i(!0),n==null||n(s)};return o.jsx(m,{as:p.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:r?1:0},transition:{duration:.2},onLoad:e?void 0:u,...l})};try{t.displayName="Image",t.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; diff --git a/assets/Image-577ba723.js b/assets/Image-577ba723.js deleted file mode 100644 index b923359f9..000000000 --- a/assets/Image-577ba723.js +++ /dev/null @@ -1,2 +0,0 @@ -import{j as o}from"./jsx-runtime-69eee039.js";import{r as d}from"./index-7c191284.js";import{B as m}from"./Box-8ffdd394.js";import{m as p}from"./motion-cc45ae8c.js";const t=a=>{const{disableAnimation:e=!1,onLoad:n,...l}=a,[r,i]=d.useState(!1),u=s=>{i(!0),n==null||n(s)};return o.jsx(m,{as:p.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:r?1:0},transition:{duration:.2},onLoad:e?void 0:u,...l})};try{t.displayName="Image",t.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"numeric"'},{value:'"email"'},{value:'"tel"'},{value:'"url"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "date" | "location"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{t as I}; -//# sourceMappingURL=Image-577ba723.js.map diff --git a/assets/Image-577ba723.js.map b/assets/Image-577ba723.js.map deleted file mode 100644 index 7126e643d..000000000 --- a/assets/Image-577ba723.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Image-577ba723.js","sources":["../../src/components/Image/Image.tsx"],"sourcesContent":["import { motion } from 'framer-motion'\nimport { SyntheticEvent, useState } from 'react'\n\nimport { Box, BoxProps } from '../Box'\n\ninterface ImageProps extends BoxProps {\n disableAnimation?: boolean\n}\n\nexport const Image = (props: ImageProps) => {\n const { disableAnimation = false, onLoad, ...rest } = props\n const [isImageLoaded, setImageLoaded] = useState(false)\n\n const handleLoad = (ev: SyntheticEvent) => {\n setImageLoaded(true)\n onLoad?.(ev)\n }\n\n return (\n \n )\n}\n"],"names":["Image","props","disableAnimation","onLoad","rest","isImageLoaded","setImageLoaded","useState","handleLoad","ev","jsx","Box","motion"],"mappings":"qKASO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAA,iBAAAC,EAAA,GAAA,OAAAC,EAAA,GAAAC,CAAA,EAAAH,EACA,CAAAI,EAAAC,CAAA,EAAAC,EAAA,SAAA,EAAA,EAEAC,EAAAC,GAAA,CACEH,EAAA,EAAA,EACAH,GAAA,MAAAA,EAAAM,EAAW,EAGb,OAAAC,EAAA,IACEC,EAAC,CAAA,GAAAC,EAAA,IACY,QAAAV,EAAA,OAAA,CAAA,QAAA,CAAA,EAC0C,QAAAA,EAAA,OAAA,CAAA,QAAAG,EAAA,EAAA,CAAA,EAEa,WAAA,CAAA,SAAA,EAAA,EAEtC,OAAAH,EAAA,OAAAM,EACW,GAAAJ,CACnC,CAAA,CAGV"} \ No newline at end of file diff --git a/assets/Image.stories-47ccdc9b.js.map b/assets/Image.stories-47ccdc9b.js.map deleted file mode 100644 index 08a78b8d1..000000000 --- a/assets/Image.stories-47ccdc9b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Image.stories-47ccdc9b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"} \ No newline at end of file diff --git a/assets/Image.stories-47ccdc9b.js b/assets/Image.stories-829ed3fa.js similarity index 65% rename from assets/Image.stories-47ccdc9b.js rename to assets/Image.stories-829ed3fa.js index 9b1e05437..5b3fd3822 100644 --- a/assets/Image.stories-47ccdc9b.js +++ b/assets/Image.stories-829ed3fa.js @@ -1,6 +1,5 @@ -import{I as s}from"./Image-577ba723.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./motion-cc45ae8c.js";const u={title:"Components/Image",component:s},a="https://skyweaver.ghost.io/content/images/size/w600/2023/01/hexbound_promo.png",o={args:{src:a}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{I as s}from"./Image-22368520.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./motion-bbbff89a.js";const u={title:"Components/Image",component:s},a="https://skyweaver.ghost.io/content/images/size/w600/2023/01/hexbound_promo.png",o={args:{src:a}};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { src } }`,...(t=(e=o.parameters)==null?void 0:e.docs)==null?void 0:t.source}}};const l=["Default"];export{o as Default,l as __namedExportsOrder,u as default}; -//# sourceMappingURL=Image.stories-47ccdc9b.js.map diff --git a/assets/Introduction.stories-6c0709b6.js.map b/assets/Introduction.stories-6c0709b6.js.map deleted file mode 100644 index 35dfe2dbf..000000000 --- a/assets/Introduction.stories-6c0709b6.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Introduction.stories-6c0709b6.js","sources":["../../src/docs/Introduction.stories.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs'\n\n\n\n# Sequence Design System\n\nSequence Design System is a reusable component library uses across the Sequence product suite.\n\nComponents are written in [React](https://reactjs.org/) with [Vanilla Extract](https://vanilla-extract.style/), and its stories are written in [Component Story Format](https://medium.com/storybookjs/component-story-format-66f4c32366df).\n\n### Install\n\n```\npnpm add @0xsequence/design-system\n```\n\n### Use\n\nImport components you want into your UI\n\n`import { Button, Badge } from '@0xsequence/design-system'`\n\nand use them like so\n\n```\nconst example = () => (\n\n
    \n \n Cool\n
    \n)\n\n```\n\n### Run and Develop Locally\n\nClone the [Sequence Design System GitHub Project](https://github.com/0xsequence/design-system) then start Storybook.\n\n```\npnpm install && pnpm storybook\n```\n\n### Used by\n\n- [Sequence Wallet](https://sequence.app/)\n- [Sequence Console](https://sequence.dev/)\n- [Sequence Status](https://status.sequence.info/)\n- [Sequence Demo Dapp Github Project](https://github.com/0xsequence/demo-dapp)\n\nNote: this package is not used in Storybook's UI, but the visual design is identical.\n\n### **Resources**\n\n- [Storybook Documentation](https://storybook.js.org/docs/react/get-started/introduction)\n- [GitHub Repository](https://github.com/0xsequence/design-system)\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout","__page","componentMeta","__namedExportsOrder"],"mappings":"sXAKA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,EAAG,IACH,GAAI,KACJ,IAAK,MACL,KAAM,OACN,GAAI,KACJ,GAAI,KACJ,OAAQ,QACT,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAoBG,EAAAA,KA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ets/Introduction.stories-6c0709b6.js b/assets/Introduction.stories-858c120b.js similarity index 79% rename from assets/Introduction.stories-6c0709b6.js rename to assets/Introduction.stories-858c120b.js index 2ea90f959..e3045a0a5 100644 --- a/assets/Introduction.stories-6c0709b6.js +++ b/assets/Introduction.stories-858c120b.js @@ -1,4 +1,4 @@ -import{M as l}from"./chunk-HLWAVYOI-6982640e.js";import{j as e}from"./jsx-runtime-69eee039.js";import{u as s}from"./index-abfde3b8.js";import"./iframe-9dbc35f7.js";import"../sb-preview/runtime.js";import"./index-7c191284.js";import"./index-f940c6c3.js";import"./index-ecbee218.js";import"./chunk-E56DBAEL-262b6f7b.js";import"./index-d37d4223.js";import"./index-356e4a49.js";function t(r){const n=Object.assign({h1:"h1",p:"p",a:"a",h3:"h3",pre:"pre",code:"code",ul:"ul",li:"li",strong:"strong"},s(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Introduction"}),` +import{M as i}from"./chunk-HLWAVYOI-927b14e8.js";import{j as e}from"./jsx-runtime-1caa8f64.js";import{u as s}from"./index-69b0450a.js";import"./iframe-49222d2f.js";import"../sb-preview/runtime.js";import"./index-1cdf6ce0.js";import"./react-18-402ca549.js";import"./index-a01a9712.js";import"./chunk-ZGA76URP-2bd2442b.js";import"./index-11d98b33.js";import"./index-f9318fb5.js";import"./index-356e4a49.js";function t(r){const n=Object.assign({h1:"h1",p:"p",a:"a",h3:"h3",pre:"pre",code:"code",ul:"ul",li:"li",strong:"strong"},s(),r.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Introduction"}),` `,e.jsx(n.h1,{id:"sequence-design-system",children:"Sequence Design System"}),` `,e.jsx(n.p,{children:"Sequence Design System is a reusable component library uses across the Sequence product suite."}),` `,e.jsxs(n.p,{children:["Components are written in ",e.jsx(n.a,{href:"https://reactjs.org/",target:"_blank",rel:"nofollow noopener noreferrer",children:"React"})," with ",e.jsx(n.a,{href:"https://vanilla-extract.style/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vanilla Extract"}),", and its stories are written in ",e.jsx(n.a,{href:"https://medium.com/storybookjs/component-story-format-66f4c32366df",target:"_blank",rel:"nofollow noopener noreferrer",children:"Component Story Format"}),"."]}),` @@ -36,5 +36,4 @@ import{M as l}from"./chunk-HLWAVYOI-6982640e.js";import{j as e}from"./jsx-runtim `,e.jsxs(n.ul,{children:[` `,e.jsx(n.li,{children:e.jsx(n.a,{href:"https://storybook.js.org/docs/react/get-started/introduction",target:"_blank",rel:"nofollow noopener noreferrer",children:"Storybook Documentation"})}),` `,e.jsx(n.li,{children:e.jsx(n.a,{href:"https://github.com/0xsequence/design-system",target:"_blank",rel:"nofollow noopener noreferrer",children:"GitHub Repository"})}),` -`]})]})}function i(r={}){const{wrapper:n}=Object.assign({},s(),r.components);return n?e.jsx(n,{...r,children:e.jsx(t,{...r})}):t(r)}const c=()=>{throw new Error("Docs-only story")};c.parameters={docsOnly:!0};const o={title:"Introduction",tags:["stories-mdx"],includeStories:["__page"]};o.parameters=o.parameters||{};o.parameters.docs={...o.parameters.docs||{},page:i};const b=["__page"];export{b as __namedExportsOrder,c as __page,o as default}; -//# sourceMappingURL=Introduction.stories-6c0709b6.js.map +`]})]})}function l(r={}){const{wrapper:n}=Object.assign({},s(),r.components);return n?e.jsx(n,{...r,children:e.jsx(t,{...r})}):t(r)}const c=()=>{throw new Error("Docs-only story")};c.parameters={docsOnly:!0};const o={title:"Introduction",tags:["stories-mdx"],includeStories:["__page"]};o.parameters=o.parameters||{};o.parameters.docs={...o.parameters.docs||{},page:l};const k=["__page"];export{k as __namedExportsOrder,c as __page,o as default}; diff --git a/assets/Modal.stories-d93daabf.js b/assets/Modal.stories-6d6b7fbd.js similarity index 86% rename from assets/Modal.stories-d93daabf.js rename to assets/Modal.stories-6d6b7fbd.js index 033415b47..ac3480dee 100644 --- a/assets/Modal.stories-d93daabf.js +++ b/assets/Modal.stories-6d6b7fbd.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-69eee039.js";import{r as o}from"./index-7c191284.js";import{B as u}from"./Box-8ffdd394.js";import{B as j}from"./Button-cbaba6d6.js";import{T as y}from"./Text-cdf53fa8.js";import{b as H,_ as f,c as Y,a as I,$ as k}from"./index-416e5a7a.js";import{a as W,c as x}from"./index-006d63ff.js";import{$ as D}from"./index-8f163998.js";import{$ as K}from"./index-f0ce3c30.js";import{a as G,h as U,$ as J,b as Q}from"./Combination-eaaf64fc.js";import{$ as X}from"./index-4e55634c.js";import{$ as E}from"./index-cd5c74af.js";import{c as ee}from"./WarningIcon-b42ff4ac.js";import{I as te}from"./IconButton-3648ed15.js";import{S as oe}from"./Scroll-ad0fe6d4.js";import{u as re}from"./ThemeProvider-400147f5.js";/* empty css */import"./atoms-c7901a03.js";import{c as ne}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as M}from"./motion-cc45ae8c.js";import{A as ae}from"./index-686b454f.js";/* empty css */import"./typography-f274f330.js";import"./index-ecbee218.js";import"./vars.css-cd686f74.js";import"./color-dcee1839.js";const B="Dialog",[q,Qe]=H(B),[se,p]=q(B),ce=e=>{const{__scopeDialog:c,children:a,open:l,defaultOpen:r,onOpenChange:t,modal:s=!0}=e,i=o.useRef(null),d=o.useRef(null),[m=!1,g]=W({prop:l,defaultProp:r,onChange:t});return o.createElement(se,{scope:c,triggerRef:i,contentRef:d,contentId:D(),titleId:D(),descriptionId:D(),open:m,onOpenChange:g,onOpenToggle:o.useCallback(()=>g(C=>!C),[g]),modal:s},a)},T="DialogPortal",[le,S]=q(T,{forceMount:void 0}),ie=e=>{const{__scopeDialog:c,forceMount:a,children:l,container:r}=e,t=p(T,c);return o.createElement(le,{scope:c,forceMount:a},o.Children.map(l,s=>o.createElement(E,{present:a||t.open},o.createElement(X,{asChild:!0,container:r},s))))},O="DialogOverlay",de=o.forwardRef((e,c)=>{const a=S(O,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p(O,e.__scopeDialog);return t.modal?o.createElement(E,{present:l||t.open},o.createElement(ue,f({},r,{ref:c}))):null}),ue=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(O,a);return o.createElement(G,{as:Y,allowPinchZoom:!0,shards:[r.contentRef]},o.createElement(I.div,f({"data-state":z(r.open)},l,{ref:c,style:{pointerEvents:"auto",...l.style}})))}),$="DialogContent",fe=o.forwardRef((e,c)=>{const a=S($,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p($,e.__scopeDialog);return o.createElement(E,{present:l||t.open},t.modal?o.createElement(pe,f({},r,{ref:c})):o.createElement(me,f({},r,{ref:c})))}),pe=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(null),r=k(c,a.contentRef,l);return o.useEffect(()=>{const t=l.current;if(t)return U(t)},[]),o.createElement(V,f({},e,{ref:r,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(e.onCloseAutoFocus,t=>{var s;t.preventDefault(),(s=a.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:x(e.onPointerDownOutside,t=>{const s=t.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&t.preventDefault()}),onFocusOutside:x(e.onFocusOutside,t=>t.preventDefault())}))}),me=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(!1),r=o.useRef(!1);return o.createElement(V,f({},e,{ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,t),!t.defaultPrevented){var i;l.current||(i=a.triggerRef.current)===null||i===void 0||i.focus(),t.preventDefault()}l.current=!1,r.current=!1},onInteractOutside:t=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,t),t.defaultPrevented||(l.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const d=t.target;((i=a.triggerRef.current)===null||i===void 0?void 0:i.contains(d))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}}))}),V=o.forwardRef((e,c)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:r,onCloseAutoFocus:t,...s}=e,i=p($,a),d=o.useRef(null),m=k(c,d);return J(),o.createElement(o.Fragment,null,o.createElement(Q,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:r,onUnmountAutoFocus:t},o.createElement(K,f({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":z(i.open)},s,{ref:m,onDismiss:()=>i.onOpenChange(!1)}))),!1)}),ge="DialogClose",$e=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(ge,a);return o.createElement(I.button,f({type:"button"},l,{ref:c,onClick:x(e.onClick,()=>r.onOpenChange(!1))}))});function z(e){return e?"open":"closed"}const be=ce,ve=ie,xe=de,ye=fe,he=$e;var Ce="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",_e=ne({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12wk fyvr12we fyvr11h0 fyvr11i4 fyvr11hs fyvr11sb fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),De="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Oe="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const h=e=>{const{autoHeight:c=!1,backdropColor:a="backgroundBackdrop",children:l,disableAnimation:r=!1,isDismissible:t=!0,onClose:s,scroll:i=!0,size:d="lg",overlayProps:m,contentProps:g}=e,{root:C}=re(),Z=document.querySelector(C||"body");return n.jsx(be,{modal:!0,defaultOpen:!0,onOpenChange:s,children:n.jsx(ve,{forceMount:!0,container:Z,children:n.jsxs(u,{className:Oe,children:[n.jsx(u,{as:xe,asChild:!0,background:a,className:De,forceMount:!0,children:n.jsx(M.div,{initial:r?!1:{opacity:0},animate:r?!1:{opacity:1},exit:r?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...m},"modal-overlay")}),n.jsx(ye,{asChild:!0,className:_e({autoHeight:c,size:d}),forceMount:!0,onEscapeKeyDown:_=>{t?s==null||s():_.preventDefault()},onInteractOutside:_=>{t||_.preventDefault()},children:n.jsxs(M.div,{initial:r?!1:{y:"100%",opacity:d==="sm"?0:1},animate:r?!1:{y:0,opacity:1},exit:r?void 0:{y:"100%",opacity:d==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...g,children:[i?n.jsx(oe,{children:l}):l,t&&n.jsx(he,{asChild:!0,children:n.jsx(te,{icon:ee,backdropFilter:"blur",size:"xs",className:Ce,"aria-label":"Close"})})]},"modal-content")})]})})})};try{h.displayName="Modal",h.__docgenInfo={description:"",displayName:"Modal",props:{backdropColor:{defaultValue:null,description:"",name:"backdropColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}},scroll:{defaultValue:null,description:"",name:"scroll",required:!1,type:{name:"boolean"}},overlayProps:{defaultValue:null,description:"",name:"overlayProps",required:!1,type:{name:"MotionProps"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:"MotionProps"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},autoHeight:{defaultValue:null,description:"",name:"autoHeight",required:!1,type:{name:"boolean"}}}}}catch{}const Xe={title:"Components/Modal",component:h},L=e=>{const[c,a]=o.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsx(j,{label:"Open Modal",onClick:()=>a(!c)}),n.jsx(ae,{children:c&&n.jsx(h,{...e,onClose:()=>a(!1)})})]})},b={render:L,args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}},v={render:e=>n.jsx(L,{overlayProps:{},contentProps:{initial:{scale:0,rotateZ:0},animate:{scale:1,rotateZ:360},exit:{scale:0,rotateZ:0},transition:{type:"spring"}},...e}),args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"Custom Open & Close Animated Modal. You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}};var P,R,w;b.parameters={...b.parameters,docs:{...(P=b.parameters)==null?void 0:P.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-1caa8f64.js";import{r as o}from"./index-1cdf6ce0.js";import{B as u}from"./Box-e4a86556.js";import{B as j}from"./Button-e8455a66.js";import{T as y}from"./Text-b96ac7e7.js";import{a as H,_ as f,b as Y,c as I,$ as k}from"./index-bff3e5ca.js";import{a as W,c as x}from"./index-ed6c0076.js";import{$ as D}from"./index-dad7d30c.js";import{$ as K}from"./index-c484f70b.js";import{$ as U,h as G,a as J,b as Q}from"./Combination-b274f0b7.js";import{$ as X}from"./index-4fee81d2.js";import{$ as E}from"./index-5a7be88c.js";import{c as ee}from"./WarningIcon-c4815a2d.js";import{I as te}from"./IconButton-64184e44.js";import{S as oe}from"./Scroll-b2adf70a.js";import{u as re}from"./ThemeProvider-29c0f089.js";/* empty css */import"./atoms-c7901a03.js";import{c as ne}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as P}from"./motion-bbbff89a.js";import{A as ae}from"./index-68ff1be5.js";/* empty css */import"./typography-f274f330.js";import"./index-a01a9712.js";import"./vars.css-cd686f74.js";import"./color-dcee1839.js";const B="Dialog",[q,Qe]=H(B),[se,p]=q(B),ce=e=>{const{__scopeDialog:c,children:a,open:l,defaultOpen:r,onOpenChange:t,modal:s=!0}=e,i=o.useRef(null),d=o.useRef(null),[m=!1,g]=W({prop:l,defaultProp:r,onChange:t});return o.createElement(se,{scope:c,triggerRef:i,contentRef:d,contentId:D(),titleId:D(),descriptionId:D(),open:m,onOpenChange:g,onOpenToggle:o.useCallback(()=>g(C=>!C),[g]),modal:s},a)},T="DialogPortal",[le,S]=q(T,{forceMount:void 0}),ie=e=>{const{__scopeDialog:c,forceMount:a,children:l,container:r}=e,t=p(T,c);return o.createElement(le,{scope:c,forceMount:a},o.Children.map(l,s=>o.createElement(E,{present:a||t.open},o.createElement(X,{asChild:!0,container:r},s))))},O="DialogOverlay",de=o.forwardRef((e,c)=>{const a=S(O,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p(O,e.__scopeDialog);return t.modal?o.createElement(E,{present:l||t.open},o.createElement(ue,f({},r,{ref:c}))):null}),ue=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(O,a);return o.createElement(U,{as:Y,allowPinchZoom:!0,shards:[r.contentRef]},o.createElement(I.div,f({"data-state":z(r.open)},l,{ref:c,style:{pointerEvents:"auto",...l.style}})))}),$="DialogContent",fe=o.forwardRef((e,c)=>{const a=S($,e.__scopeDialog),{forceMount:l=a.forceMount,...r}=e,t=p($,e.__scopeDialog);return o.createElement(E,{present:l||t.open},t.modal?o.createElement(pe,f({},r,{ref:c})):o.createElement(me,f({},r,{ref:c})))}),pe=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(null),r=k(c,a.contentRef,l);return o.useEffect(()=>{const t=l.current;if(t)return G(t)},[]),o.createElement(V,f({},e,{ref:r,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(e.onCloseAutoFocus,t=>{var s;t.preventDefault(),(s=a.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:x(e.onPointerDownOutside,t=>{const s=t.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&t.preventDefault()}),onFocusOutside:x(e.onFocusOutside,t=>t.preventDefault())}))}),me=o.forwardRef((e,c)=>{const a=p($,e.__scopeDialog),l=o.useRef(!1),r=o.useRef(!1);return o.createElement(V,f({},e,{ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,t),!t.defaultPrevented){var i;l.current||(i=a.triggerRef.current)===null||i===void 0||i.focus(),t.preventDefault()}l.current=!1,r.current=!1},onInteractOutside:t=>{var s,i;(s=e.onInteractOutside)===null||s===void 0||s.call(e,t),t.defaultPrevented||(l.current=!0,t.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const d=t.target;((i=a.triggerRef.current)===null||i===void 0?void 0:i.contains(d))&&t.preventDefault(),t.detail.originalEvent.type==="focusin"&&r.current&&t.preventDefault()}}))}),V=o.forwardRef((e,c)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:r,onCloseAutoFocus:t,...s}=e,i=p($,a),d=o.useRef(null),m=k(c,d);return J(),o.createElement(o.Fragment,null,o.createElement(Q,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:r,onUnmountAutoFocus:t},o.createElement(K,f({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":z(i.open)},s,{ref:m,onDismiss:()=>i.onOpenChange(!1)}))),!1)}),ge="DialogClose",$e=o.forwardRef((e,c)=>{const{__scopeDialog:a,...l}=e,r=p(ge,a);return o.createElement(I.button,f({type:"button"},l,{ref:c,onClick:x(e.onClick,()=>r.onOpenChange(!1))}))});function z(e){return e?"open":"closed"}const be=ce,ve=ie,xe=de,ye=fe,he=$e;var Ce="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",_e=ne({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12wk fyvr12we fyvr11h0 fyvr11i4 fyvr11hs fyvr11sb fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),De="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Oe="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const h=e=>{const{autoHeight:c=!1,backdropColor:a="backgroundBackdrop",children:l,disableAnimation:r=!1,isDismissible:t=!0,onClose:s,scroll:i=!0,size:d="lg",overlayProps:m,contentProps:g}=e,{root:C}=re(),Z=document.querySelector(C||"body");return n.jsx(be,{modal:!0,defaultOpen:!0,onOpenChange:s,children:n.jsx(ve,{forceMount:!0,container:Z,children:n.jsxs(u,{className:Oe,children:[n.jsx(u,{as:xe,asChild:!0,background:a,className:De,forceMount:!0,children:n.jsx(P.div,{initial:r?!1:{opacity:0},animate:r?!1:{opacity:1},exit:r?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...m},"modal-overlay")}),n.jsx(ye,{asChild:!0,className:_e({autoHeight:c,size:d}),forceMount:!0,onEscapeKeyDown:_=>{t?s==null||s():_.preventDefault()},onInteractOutside:_=>{t||_.preventDefault()},children:n.jsxs(P.div,{initial:r?!1:{y:"100%",opacity:d==="sm"?0:1},animate:r?!1:{y:0,opacity:1},exit:r?void 0:{y:"100%",opacity:d==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...g,children:[i?n.jsx(oe,{children:l}):l,t&&n.jsx(he,{asChild:!0,children:n.jsx(te,{icon:ee,backdropFilter:"blur",size:"xs",className:Ce,"aria-label":"Close"})})]},"modal-content")})]})})})};try{h.displayName="Modal",h.__docgenInfo={description:"",displayName:"Modal",props:{backdropColor:{defaultValue:null,description:"",name:"backdropColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}},scroll:{defaultValue:null,description:"",name:"scroll",required:!1,type:{name:"boolean"}},overlayProps:{defaultValue:null,description:"",name:"overlayProps",required:!1,type:{name:"MotionProps"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:"MotionProps"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},autoHeight:{defaultValue:null,description:"",name:"autoHeight",required:!1,type:{name:"boolean"}}}}}catch{}const Xe={title:"Components/Modal",component:h},L=e=>{const[c,a]=o.useState(!0);return n.jsxs(n.Fragment,{children:[n.jsx(j,{label:"Open Modal",onClick:()=>a(!c)}),n.jsx(ae,{children:c&&n.jsx(h,{...e,onClose:()=>a(!1)})})]})},b={render:L,args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}},v={render:e=>n.jsx(L,{overlayProps:{},contentProps:{initial:{scale:0,rotateZ:0},animate:{scale:1,rotateZ:360},exit:{scale:0,rotateZ:0},transition:{type:"spring"}},...e}),args:{size:"lg",children:n.jsxs(u,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"4",children:[n.jsxs(u,{children:[n.jsx(y,{as:"h1",variant:"medium",color:"text100",children:"New Dapp"}),n.jsx(y,{as:"p",variant:"normal",color:"text50",children:"Custom Open & Close Animated Modal. You can always change these settings later."})]}),n.jsx(u,{justifyContent:"flex-end",children:n.jsx(j,{variant:"primary",shape:"square",label:"Create"})})]})}};var R,M,w;b.parameters={...b.parameters,docs:{...(R=b.parameters)==null?void 0:R.docs,source:{originalSource:`{ render: StoryWrapper, args: { size: 'lg', @@ -17,7 +17,7 @@ import{j as n}from"./jsx-runtime-69eee039.js";import{r as o}from"./index-7c19128 } -}`,...(w=(R=b.parameters)==null?void 0:R.docs)==null?void 0:w.source}}};var A,N,F;v.parameters={...v.parameters,docs:{...(A=v.parameters)==null?void 0:A.docs,source:{originalSource:`{ +}`,...(w=(M=b.parameters)==null?void 0:M.docs)==null?void 0:w.source}}};var A,N,F;v.parameters={...v.parameters,docs:{...(A=v.parameters)==null?void 0:A.docs,source:{originalSource:`{ render: args => } }`,...(F=(N=v.parameters)==null?void 0:N.docs)==null?void 0:F.source}}};const et=["Default","CustomAnimation"];export{v as CustomAnimation,b as Default,et as __namedExportsOrder,Xe as default}; -//# sourceMappingURL=Modal.stories-d93daabf.js.map diff --git a/assets/Modal.stories-d93daabf.js.map b/assets/Modal.stories-d93daabf.js.map deleted file mode 100644 index f02f279c6..000000000 --- a/assets/Modal.stories-d93daabf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Modal.stories-d93daabf.js","sources":["../../node_modules/.pnpm/@radix-ui+react-dialog@1.0.5_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.mjs","../../src/components/Modal/Modal.tsx"],"sourcesContent":["import $67UHm$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useRef as $67UHm$useRef, createElement as $67UHm$createElement, useCallback as $67UHm$useCallback, forwardRef as $67UHm$forwardRef, Children as $67UHm$Children, useEffect as $67UHm$useEffect, Fragment as $67UHm$Fragment} from \"react\";\nimport {composeEventHandlers as $67UHm$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $67UHm$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $67UHm$createContextScope, createContext as $67UHm$createContext} from \"@radix-ui/react-context\";\nimport {useId as $67UHm$useId} from \"@radix-ui/react-id\";\nimport {useControllableState as $67UHm$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {DismissableLayer as $67UHm$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {FocusScope as $67UHm$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {Portal as $67UHm$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $67UHm$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $67UHm$Primitive} from \"@radix-ui/react-primitive\";\nimport {useFocusGuards as $67UHm$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {RemoveScroll as $67UHm$RemoveScroll} from \"react-remove-scroll\";\nimport {hideOthers as $67UHm$hideOthers} from \"aria-hidden\";\nimport {Slot as $67UHm$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DIALOG_NAME = 'Dialog';\nconst [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $67UHm$createContextScope($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);\nconst $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{\n const { __scopeDialog: __scopeDialog , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true } = props;\n const triggerRef = $67UHm$useRef(null);\n const contentRef = $67UHm$useRef(null);\n const [open = false, setOpen] = $67UHm$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogProvider, {\n scope: __scopeDialog,\n triggerRef: triggerRef,\n contentRef: contentRef,\n contentId: $67UHm$useId(),\n titleId: $67UHm$useId(),\n descriptionId: $67UHm$useId(),\n open: open,\n onOpenChange: setOpen,\n onOpenToggle: $67UHm$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ]),\n modal: modal\n }, children);\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, {\n displayName: $5d3850c4d0b4e6c7$var$DIALOG_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TRIGGER_NAME = 'DialogTrigger';\nconst $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...triggerProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = $67UHm$useComposedRefs(forwardedRef, context.triggerRef);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, triggerProps, {\n ref: composedTriggerRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, {\n displayName: $5d3850c4d0b4e6c7$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$PORTAL_NAME = 'DialogPortal';\nconst [$5d3850c4d0b4e6c7$var$PortalProvider, $5d3850c4d0b4e6c7$var$usePortalContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, {\n forceMount: undefined\n});\nconst $5d3850c4d0b4e6c7$export$dad7c95542bacce0 = (props)=>{\n const { __scopeDialog: __scopeDialog , forceMount: forceMount , children: children , container: container } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$PortalProvider, {\n scope: __scopeDialog,\n forceMount: forceMount\n }, $67UHm$Children.map(children, (child)=>/*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Portal, {\n asChild: true,\n container: container\n }, child))\n ));\n};\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$dad7c95542bacce0, {\n displayName: $5d3850c4d0b4e6c7$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$OVERLAY_NAME = 'DialogOverlay';\nconst $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, $67UHm$babelruntimehelpersesmextends({}, overlayProps, {\n ref: forwardedRef\n }))) : null;\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$bd1d06c79be19e17, {\n displayName: $5d3850c4d0b4e6c7$var$OVERLAY_NAME\n});\nconst $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...overlayProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, __scopeDialog);\n return(/*#__PURE__*/ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n $67UHm$createElement($67UHm$RemoveScroll, {\n as: $67UHm$Slot,\n allowPinchZoom: true,\n shards: [\n context.contentRef\n ]\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.div, $67UHm$babelruntimehelpersesmextends({\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, overlayProps, {\n ref: forwardedRef // We re-enable pointer-events prevented by `Dialog.Content` to allow scrolling the overlay.\n ,\n style: {\n pointerEvents: 'auto',\n ...overlayProps.style\n }\n }))));\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CONTENT_NAME = 'DialogContent';\nconst $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const portalContext = $5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Presence, {\n present: forceMount || context.open\n }, context.modal ? /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })) : /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, $67UHm$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$b6d9565de1e068cf, {\n displayName: $5d3850c4d0b4e6c7$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, context.contentRef, contentRef); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $67UHm$useEffect(()=>{\n const content = contentRef.current;\n if (content) return $67UHm$hideOthers(content);\n }, []);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs // we make sure focus isn't trapped once `DialogContent` has been closed\n ,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: $67UHm$composeEventHandlers(props.onCloseAutoFocus, (event)=>{\n var _context$triggerRef$c;\n event.preventDefault();\n (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();\n }),\n onPointerDownOutside: $67UHm$composeEventHandlers(props.onPointerDownOutside, (event)=>{\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick; // If the event is a right-click, we shouldn't close because\n // it is effectively as if we right-clicked the `Overlay`.\n if (isRightClick) event.preventDefault();\n }) // When focus is trapped, a `focusout` event may still happen.\n ,\n onFocusOutside: $67UHm$composeEventHandlers(props.onFocusOutside, (event)=>event.preventDefault()\n )\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = $67UHm$useRef(false);\n const hasPointerDownOutsideRef = $67UHm$useRef(false);\n return /*#__PURE__*/ $67UHm$createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, $67UHm$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event)=>{\n var _props$onCloseAutoFoc;\n (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);\n if (!event.defaultPrevented) {\n var _context$triggerRef$c2;\n if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus(); // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event)=>{\n var _props$onInteractOuts, _context$triggerRef$c3;\n (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') hasPointerDownOutsideRef.current = true;\n } // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target;\n const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);\n if (targetIsTrigger) event.preventDefault(); // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) event.preventDefault();\n }\n }));\n});\n/* -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , ...contentProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, __scopeDialog);\n const contentRef = $67UHm$useRef(null);\n const composedRefs = $67UHm$useComposedRefs(forwardedRef, contentRef); // Make sure the whole tree has focus guards as our `Dialog` will be\n // the last element in the DOM (beacuse of the `Portal`)\n $67UHm$useFocusGuards();\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Fragment, null, /*#__PURE__*/ $67UHm$createElement($67UHm$FocusScope, {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus\n }, /*#__PURE__*/ $67UHm$createElement($67UHm$DismissableLayer, $67UHm$babelruntimehelpersesmextends({\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": $5d3850c4d0b4e6c7$var$getState(context.open)\n }, contentProps, {\n ref: composedRefs,\n onDismiss: ()=>context.onOpenChange(false)\n }))), false);\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$TITLE_NAME = 'DialogTitle';\nconst $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...titleProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.h2, $67UHm$babelruntimehelpersesmextends({\n id: context.titleId\n }, titleProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$16f7638e4a34b909, {\n displayName: $5d3850c4d0b4e6c7$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = 'DialogDescription';\nconst $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...descriptionProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.p, $67UHm$babelruntimehelpersesmextends({\n id: context.descriptionId\n }, descriptionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$94e94c2ec2c954d5, {\n displayName: $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/ const $5d3850c4d0b4e6c7$var$CLOSE_NAME = 'DialogClose';\nconst $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /*#__PURE__*/ $67UHm$forwardRef((props, forwardedRef)=>{\n const { __scopeDialog: __scopeDialog , ...closeProps } = props;\n const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);\n return /*#__PURE__*/ $67UHm$createElement($67UHm$Primitive.button, $67UHm$babelruntimehelpersesmextends({\n type: \"button\"\n }, closeProps, {\n ref: forwardedRef,\n onClick: $67UHm$composeEventHandlers(props.onClick, ()=>context.onOpenChange(false)\n )\n }));\n});\n/*#__PURE__*/ Object.assign($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, {\n displayName: $5d3850c4d0b4e6c7$var$CLOSE_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $5d3850c4d0b4e6c7$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME = 'DialogTitleWarning';\nconst [$5d3850c4d0b4e6c7$export$69b62a49393917d6, $5d3850c4d0b4e6c7$var$useWarningContext] = $67UHm$createContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME, {\n contentName: $5d3850c4d0b4e6c7$var$CONTENT_NAME,\n titleName: $5d3850c4d0b4e6c7$var$TITLE_NAME,\n docsSlug: 'dialog'\n});\nconst $5d3850c4d0b4e6c7$var$TitleWarning = ({ titleId: titleId })=>{\n const titleWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n $67UHm$useEffect(()=>{\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) throw new Error(MESSAGE);\n }\n }, [\n MESSAGE,\n titleId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\nconst $5d3850c4d0b4e6c7$var$DescriptionWarning = ({ contentRef: contentRef , descriptionId: descriptionId })=>{\n const descriptionWarningContext = $5d3850c4d0b4e6c7$var$useWarningContext($5d3850c4d0b4e6c7$var$DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n $67UHm$useEffect(()=>{\n var _contentRef$current;\n const describedById = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.getAttribute('aria-describedby'); // if we have an id and the user hasn't set aria-describedby={undefined}\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [\n MESSAGE,\n contentRef,\n descriptionId\n ]);\n return null;\n};\nconst $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 = $5d3850c4d0b4e6c7$export$3ddf2d174ce01153;\nconst $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 = $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88;\nconst $5d3850c4d0b4e6c7$export$602eac185826482c = $5d3850c4d0b4e6c7$export$dad7c95542bacce0;\nconst $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff = $5d3850c4d0b4e6c7$export$bd1d06c79be19e17;\nconst $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 = $5d3850c4d0b4e6c7$export$b6d9565de1e068cf;\nconst $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f7638e4a34b909;\nconst $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;\nconst $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;\n\n\n\n\nexport {$5d3850c4d0b4e6c7$export$cc702773b8ea3e41 as createDialogScope, $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 as Dialog, $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 as DialogTrigger, $5d3850c4d0b4e6c7$export$dad7c95542bacce0 as DialogPortal, $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 as DialogOverlay, $5d3850c4d0b4e6c7$export$b6d9565de1e068cf as DialogContent, $5d3850c4d0b4e6c7$export$16f7638e4a34b909 as DialogTitle, $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 as DialogDescription, $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac as DialogClose, $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 as Root, $5d3850c4d0b4e6c7$export$41fb9f06171c75f4 as Trigger, $5d3850c4d0b4e6c7$export$602eac185826482c as Portal, $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff as Overlay, $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2 as Content, $5d3850c4d0b4e6c7$export$f99233281efd08a0 as Title, $5d3850c4d0b4e6c7$export$393edc798c47379d as Description, $5d3850c4d0b4e6c7$export$f39c2d165cd861fe as Close, $5d3850c4d0b4e6c7$export$69b62a49393917d6 as WarningProvider};\n//# sourceMappingURL=index.mjs.map\n","import * as ModalPrimitive from '@radix-ui/react-dialog'\nimport { motion, MotionProps } from 'framer-motion'\nimport { PropsWithChildren } from 'react'\n\nimport { Box, BoxProps } from '~/components/Box'\nimport { CloseIcon } from '~/icons'\n\nimport { IconButton } from '../IconButton'\nimport { Scroll } from '../Scroll'\nimport { useTheme } from '../ThemeProvider'\n\nimport * as styles from './styles.css'\n\nexport { ModalPrimitive }\n\nexport type ModalProps = {\n backdropColor?: BoxProps['background']\n className?: string\n disableAnimation?: boolean\n isDismissible?: boolean\n onClose?: () => void\n scroll?: boolean\n overlayProps?: MotionProps\n contentProps?: MotionProps\n} & styles.ContentVariants\n\n// const portalRoot = document.getElementById('portal')\n\nexport const Modal = (props: PropsWithChildren) => {\n const {\n autoHeight = false,\n backdropColor = 'backgroundBackdrop', // gradientBackdrop for onboarding or special modals\n children,\n disableAnimation = false,\n isDismissible = true,\n onClose,\n scroll = true,\n size = 'lg',\n overlayProps,\n contentProps,\n } = props\n const { root } = useTheme()\n const container = document.querySelector(root || 'body') as HTMLElement | null\n\n return (\n \n \n \n \n \n \n\n {\n if (isDismissible) {\n onClose?.()\n } else {\n ev.preventDefault()\n }\n }}\n onInteractOutside={ev => {\n if (!isDismissible) {\n ev.preventDefault()\n }\n }}\n >\n \n {scroll ? {children} : children}\n\n {isDismissible && (\n \n \n \n )}\n \n \n \n \n \n )\n}\n"],"names":["$5d3850c4d0b4e6c7$var$DIALOG_NAME","$5d3850c4d0b4e6c7$var$createDialogContext","$5d3850c4d0b4e6c7$export$cc702773b8ea3e41","$67UHm$createContextScope","$5d3850c4d0b4e6c7$var$DialogProvider","$5d3850c4d0b4e6c7$var$useDialogContext","$5d3850c4d0b4e6c7$export$3ddf2d174ce01153","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","$67UHm$useRef","contentRef","open","setOpen","$67UHm$useControllableState","$67UHm$createElement","$67UHm$useId","$67UHm$useCallback","prevOpen","$5d3850c4d0b4e6c7$var$PORTAL_NAME","$5d3850c4d0b4e6c7$var$PortalProvider","$5d3850c4d0b4e6c7$var$usePortalContext","$5d3850c4d0b4e6c7$export$dad7c95542bacce0","forceMount","container","context","$67UHm$Children","child","$67UHm$Presence","$67UHm$Portal","$5d3850c4d0b4e6c7$var$OVERLAY_NAME","$5d3850c4d0b4e6c7$export$bd1d06c79be19e17","$67UHm$forwardRef","forwardedRef","portalContext","overlayProps","$5d3850c4d0b4e6c7$var$DialogOverlayImpl","$67UHm$babelruntimehelpersesmextends","$67UHm$RemoveScroll","$67UHm$Slot","$67UHm$Primitive","$5d3850c4d0b4e6c7$var$getState","$5d3850c4d0b4e6c7$var$CONTENT_NAME","$5d3850c4d0b4e6c7$export$b6d9565de1e068cf","contentProps","$5d3850c4d0b4e6c7$var$DialogContentModal","$5d3850c4d0b4e6c7$var$DialogContentNonModal","composedRefs","$67UHm$useComposedRefs","$67UHm$useEffect","content","$67UHm$hideOthers","$5d3850c4d0b4e6c7$var$DialogContentImpl","$67UHm$composeEventHandlers","event","_context$triggerRef$c","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","_props$onCloseAutoFoc","_context$triggerRef$c2","_props$onInteractOuts","_context$triggerRef$c3","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","$67UHm$useFocusGuards","$67UHm$Fragment","$67UHm$FocusScope","$67UHm$DismissableLayer","$5d3850c4d0b4e6c7$var$CLOSE_NAME","$5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac","closeProps","$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9","$5d3850c4d0b4e6c7$export$602eac185826482c","$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff","$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2","$5d3850c4d0b4e6c7$export$f39c2d165cd861fe","Modal","autoHeight","backdropColor","disableAnimation","isDismissible","onClose","scroll","size","root","useTheme","jsx","ModalPrimitive.Root","ModalPrimitive.Portal","jsxs","Box","styles.root","ModalPrimitive.Overlay","styles.overlay","motion","ModalPrimitive.Content","styles.contentVariants","ev","Scroll","ModalPrimitive.Close","IconButton","CloseIcon","styles.close"],"mappings":"slCAmCqG,MAAMA,EAAoC,SACzI,CAACC,EAA2CC,EAAyC,EAAIC,EAA0BH,CAAiC,EACpJ,CAACI,GAAsCC,CAAsC,EAAIJ,EAA0CD,CAAiC,EAC5JM,GAA6CC,GAAQ,CACvD,KAAM,CAAE,cAAeC,EAAgB,SAAUC,EAAW,KAAMC,EAAW,YAAaC,EAAc,aAAcC,EAAe,M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AA,QAAA,CAAA,EACA,KAAAA,EAAA,OAAA,CAAA,QAAA,CAAA,EACC,WAAA,CACtC,KAAA,QACJ,KAAA,QACA,EACR,GAAAhD,CACI,EAAA,eARA,CASN,CAAA,EACFuD,EAAA,IAEAS,GAAgB,CAAf,QAAA,GACQ,UAAAC,GAAA,CAAA,WAAAnB,EAAA,KAAAM,CAAA,CAAA,EAC+C,WAAA,GAC5C,gBAAAc,GAAA,CAERjB,EACEC,GAAA,MAAAA,IAEAgB,EAAA,eAAA,CACF,EACF,kBAAAA,GAAA,CAEEjB,GACEiB,EAAA,eAAA,CACF,EACF,SAAAR,EAAA,KAEAK,EAAA,IAAQ,CAAP,QAAAf,EAAA,GAAA,CAAA,EAAA,OAAA,QAAAI,IAAA,KAAA,EAAA,CAAA,EAKmD,QAAAJ,EAAA,GAAA,CAAA,EAAA,EAAA,QAAA,CAAA,EAKL,KAAAA,EAAA,OAAA,CAAA,EAAA,OAAA,QAAAI,IAAA,KAAA,EAAA,CAAA,EAKK,WAAA,CAAA,KAAA,QAAA,KAAA,SAAA,EAEL,GAAA3C,EACzC,SAAA,CAEH0C,EAAAI,EAAAA,IAAAY,GAAA,CAAA,SAAAlG,CAAA,CAAA,EAAAA,EAAuCgF,GAAAM,EAAA,IAAAa,GAAA,CAAA,QAAA,GAAA,SAAAb,EAAA,IAIpCc,GAAC,CAAA,KAAAC,GACO,eAAA,OACS,KAAA,KACV,UAAAC,GACa,aAAA,OACP,CAAA,EAAA,CAEf,CAAA,EAAA,eA9BE,CAgCN,CAAA,CACF,EAAA,CAAA,CAAA,CAAA,CAAA,CAKV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/NumericInput.stories-3ef23e94.js b/assets/NumericInput.stories-3ef23e94.js new file mode 100644 index 000000000..ff7fea767 --- /dev/null +++ b/assets/NumericInput.stories-3ef23e94.js @@ -0,0 +1,8 @@ +import{j as a}from"./jsx-runtime-1caa8f64.js";import{r as S}from"./index-1cdf6ce0.js";import{T as h}from"./TextInput-d5b4161c.js";import"./ControlledTextInput-4a33d1f2.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const x=RegExp("^\\d*(?:\\\\[.])?\\d*$");function c(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const l=S.forwardRef((i,o)=>{const{name:u="amount",placeholder:d,onChange:r,onBlur:g,...V}=i,C=t=>{let{value:e}=t.target;e=e.replace(/,/g,"."),e.startsWith(".")&&(e="0"+e),e.startsWith("0")&&(e=e.replace(/^0+(?=\d)/,"")),(e===""||x.test(c(e)))&&(r==null||r({...t,target:{...t.target,value:e}}))},y=t=>{const{value:e}=t.target;let n=e;n.endsWith(".")&&(n=n.slice(0,-1)),n.endsWith(".0")&&(n=n.slice(0,-2)),n==="0"&&(n=""),g==null||g(t),n!==e&&(r==null||r({...t,target:{...t.target,value:n}}))};return a.jsx(h,{name:u,onChange:C,onBlur:y,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:d||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:o,...V})});try{c.displayName="escapeRegExp",c.__docgenInfo={description:"",displayName:"escapeRegExp",props:{}}}catch{}try{l.displayName="NumericInput",l.__docgenInfo={description:"",displayName:"NumericInput",props:{alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},decimals:{defaultValue:null,description:"",name:"decimals",required:!1,type:{name:"number"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}}}}}catch{}const B={title:"Forms/NumericInput",component:l},v=i=>{const[o,u]=S.useState("");return a.jsx(a.Fragment,{children:a.jsx(l,{value:o,onChange:d=>u(d.target.value),...i})})},s={render:v,args:{label:"This the label",description:"This is the description",labelLocation:"top"}};var m,p,f;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{ + render: StoryWrapper, + args: { + label: 'This the label', + description: 'This is the description', + labelLocation: 'top' + } +}`,...(f=(p=s.parameters)==null?void 0:p.docs)==null?void 0:f.source}}};const _=["Default"];export{s as Default,_ as __namedExportsOrder,B as default}; diff --git a/assets/NumericInput.stories-7acea348.js b/assets/NumericInput.stories-7acea348.js deleted file mode 100644 index ece19b2a2..000000000 --- a/assets/NumericInput.stories-7acea348.js +++ /dev/null @@ -1,9 +0,0 @@ -import{j as a}from"./jsx-runtime-69eee039.js";import{r as S}from"./index-7c191284.js";import{T as h}from"./TextInput-e7a764b0.js";import"./ControlledTextInput-deea110c.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-0c069ee0.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const x=RegExp("^\\d*(?:\\\\[.])?\\d*$");function c(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const l=S.forwardRef((i,o)=>{const{name:u="amount",placeholder:d,onChange:r,onBlur:g,...V}=i,C=t=>{let{value:e}=t.target;e=e.replace(/,/g,"."),e.startsWith(".")&&(e="0"+e),e.startsWith("0")&&(e=e.replace(/^0+(?=\d)/,"")),(e===""||x.test(c(e)))&&(r==null||r({...t,target:{...t.target,value:e}}))},y=t=>{const{value:e}=t.target;let n=e;n.endsWith(".")&&(n=n.slice(0,-1)),n.endsWith(".0")&&(n=n.slice(0,-2)),n==="0"&&(n=""),g==null||g(t),n!==e&&(r==null||r({...t,target:{...t.target,value:n}}))};return a.jsx(h,{name:u,onChange:C,onBlur:y,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:d||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:o,...V})});try{c.displayName="escapeRegExp",c.__docgenInfo={description:"",displayName:"escapeRegExp",props:{}}}catch{}try{l.displayName="NumericInput",l.__docgenInfo={description:"",displayName:"NumericInput",props:{borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},decimals:{defaultValue:null,description:"",name:"decimals",required:!1,type:{name:"number"}}}}}catch{}const B={title:"Forms/NumericInput",component:l},v=i=>{const[o,u]=S.useState("");return a.jsx(a.Fragment,{children:a.jsx(l,{value:o,onChange:d=>u(d.target.value),...i})})},s={render:v,args:{label:"This the label",description:"This is the description",labelLocation:"top"}};var m,p,f;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{ - render: StoryWrapper, - args: { - label: 'This the label', - description: 'This is the description', - labelLocation: 'top' - } -}`,...(f=(p=s.parameters)==null?void 0:p.docs)==null?void 0:f.source}}};const _=["Default"];export{s as Default,_ as __namedExportsOrder,B as default}; -//# sourceMappingURL=NumericInput.stories-7acea348.js.map diff --git a/assets/NumericInput.stories-7acea348.js.map b/assets/NumericInput.stories-7acea348.js.map deleted file mode 100644 index 93d98a244..000000000 --- a/assets/NumericInput.stories-7acea348.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NumericInput.stories-7acea348.js","sources":["../../src/components/NumericInput/NumericInput.tsx"],"sourcesContent":["import { ChangeEvent, FocusEvent, forwardRef } from 'react'\n\nimport { PolymorphicProps, PolymorphicRef } from '../Box'\nimport { TextInput } from '../TextInput'\nimport { TextInputProps } from '../TextInput/TextInput'\n\nconst inputRegex = RegExp(`^\\\\d*(?:\\\\\\\\[.])?\\\\d*$`)\n\nexport function escapeRegExp(string: string): string {\n return string.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n}\n\nexport type NumericInputProps = TextInputProps & {\n name?: string\n decimals?: number\n}\n\nexport const NumericInput = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef<'input'>\n ) => {\n const { name = 'amount', placeholder, onChange, onBlur, ...rest } = props\n\n const handleChange = (ev: ChangeEvent) => {\n let { value } = ev.target\n\n // Replace commas with decimals\n value = value.replace(/,/g, '.')\n\n // Add leading zero if needed\n if (value.startsWith('.')) {\n value = '0' + value\n }\n\n // strip leading zeros\n if (value.startsWith('0')) {\n value = value.replace(/^0+(?=\\d)/, '')\n }\n\n if (value === '' || inputRegex.test(escapeRegExp(value))) {\n onChange?.({ ...ev, target: { ...ev.target, value } })\n }\n }\n\n const handleBlur = (ev: FocusEvent) => {\n const { value } = ev.target\n\n let v = value\n\n if (v.endsWith('.')) {\n v = v.slice(0, -1)\n }\n\n if (v.endsWith('.0')) {\n v = v.slice(0, -2)\n }\n\n if (v === '0') {\n v = ''\n }\n\n onBlur?.(ev)\n\n if (v !== value) {\n onChange?.({ ...ev, target: { ...ev.target, value: v } })\n }\n }\n\n return (\n \n )\n }\n)\n"],"names":["inputRegex","escapeRegExp","string","NumericInput","forwardRef","props","ref","name","placeholder","onChange","onBlur","rest","handleChange","ev","value","handleBlur","v","jsx","TextInput"],"mappings":"mcAMA,MAAAA,EAAA,OAAA,wBAAA,EAEO,SAAAC,EAAAC,EAAA,CACL,OAAAA,EAAA,QAAA,sBAAA,MAAA,CACF,CAOO,MAAAC,EAAAC,EAAA,WAAqB,CAAAC,EAAAC,IAAA,CAKxB,KAAA,CAAA,KAAAC,EAAA,SAAA,YAAAC,EAAA,SAAAC,EAAA,OAAAC,EAAA,GAAAC,CAAA,EAAAN,EAEAO,EAAAC,GAAA,CACE,GAAA,CAAA,MAAAC,CAAA,EAAAD,EAAA,OAGAC,EAAAA,EAAA,QAAA,KAAA,GAAA,EAGAA,EAAA,WAAA,GAAA,IACEA,EAAA,IAAAA,GAIFA,EAAA,WAAA,GAAA,IACEA,EAAAA,EAAA,QAAA,YAAA,EAAA,IAGFA,IAAA,IAAAd,EAAA,KAAAC,EAAAa,CAAA,CAAA,KACEL,GAAA,MAAAA,EAAA,CAAA,GAAAI,EAAA,OAAA,CAAA,GAAAA,EAAA,OAAA,MAAAC,CAAA,CAAA,GACF,EAGFC,EAAAF,GAAA,CACE,KAAA,CAAA,MAAAC,CAAA,EAAAD,EAAA,OAEA,IAAAG,EAAAF,EAEAE,EAAA,SAAA,GAAA,IACEA,EAAAA,EAAA,MAAA,EAAA,EAAA,GAGFA,EAAA,SAAA,IAAA,IACEA,EAAAA,EAAA,MAAA,EAAA,EAAA,GAGFA,IAAA,MACEA,EAAA,IAGFN,GAAA,MAAAA,EAAAG,GAEAG,IAAAF,IACEL,GAAA,MAAAA,EAAA,CAAA,GAAAI,EAAA,OAAA,CAAA,GAAAA,EAAA,OAAA,MAAAG,CAAA,CAAA,GACF,EAGF,OAAAC,EAAA,IACEC,EAAC,CAAA,KAAAX,EACC,SAAAK,EACU,OAAAG,EACF,UAAA,UACE,aAAA,MACG,YAAA,MACD,KAAA,OACP,QAAA,sBACG,YAAAP,GAAA,IACoB,UAAA,EACjB,UAAA,GACA,WAAA,QACA,QAAA,GACF,IAAAF,EACT,GAAAK,CACI,CAAA,CACN,CAGN;;;;;;;"} \ No newline at end of file diff --git a/assets/Placeholder.stories-16e7fb46.js.map b/assets/Placeholder.stories-16e7fb46.js.map deleted file mode 100644 index 61fa1e74a..000000000 --- a/assets/Placeholder.stories-16e7fb46.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Placeholder.stories-16e7fb46.js","sources":["../../src/components/Placeholder/Placeholder.tsx"],"sourcesContent":["import { motion } from 'framer-motion'\n\nimport { Box, BoxProps } from '../Box'\n\nimport * as styles from './styles.css'\n\ntype PlaceholderProps = BoxProps & styles.PlaceholderVariants\n\nexport const Placeholder = (props: PlaceholderProps) => {\n const { size, ...rest } = props\n\n return (\n \n )\n}\n"],"names":["Placeholder","props","size","rest","jsx","Box","motion","styles.placeholder"],"mappings":"2cAQO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAA,KAAAC,EAAA,GAAAC,CAAA,EAAAF,EAEA,OAAAG,EAAA,IACEC,EAAC,CAAA,GAAAC,EAAA,IACY,UAAAC,EAAA,CAAA,KAAAL,EAAA,EAC2B,QAAA,CAAA,QAAA,CAAA,EAChB,QAAA,CAAA,QAAA,CAAA,EACA,aAAA,KACT,GAAAC,CACT,CAAA,CAGV;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Placeholder.stories-16e7fb46.js b/assets/Placeholder.stories-4b6ef2da.js similarity index 98% rename from assets/Placeholder.stories-16e7fb46.js rename to assets/Placeholder.stories-4b6ef2da.js index e6a0670a2..ac24e3e20 100644 --- a/assets/Placeholder.stories-16e7fb46.js +++ b/assets/Placeholder.stories-4b6ef2da.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-69eee039.js";import{B as i}from"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import{c as u}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as d}from"./motion-cc45ae8c.js";import"./index-7c191284.js";var m=u({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const t=r=>{const{size:o,...g}=r;return n.jsx(i,{as:d.div,className:m({size:o}),initial:{opacity:0},animate:{opacity:1},borderRadius:"sm",...g})};try{t.displayName="Placeholder",t.__docgenInfo={description:"",displayName:"Placeholder",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"normal"'}]}}}}}catch{}const h={title:"Components/Placeholder",component:t},e={render:()=>n.jsxs(i,{gap:"2",children:[n.jsx(t,{style:{width:72,height:72}}),n.jsxs(i,{flexDirection:"column",gap:"2",children:[n.jsx(t,{size:"md"}),n.jsx(t,{size:"sm"}),n.jsx(t,{size:"sm"})]})]})};var s,a,l;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as i}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import{c as u}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as d}from"./motion-bbbff89a.js";import"./index-1cdf6ce0.js";var m=u({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const t=r=>{const{size:o,...g}=r;return n.jsx(i,{as:d.div,className:m({size:o}),initial:{opacity:0},animate:{opacity:1},borderRadius:"sm",...g})};try{t.displayName="Placeholder",t.__docgenInfo={description:"",displayName:"Placeholder",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"normal"'}]}}}}}catch{}const h={title:"Components/Placeholder",component:t},e={render:()=>n.jsxs(i,{gap:"2",children:[n.jsx(t,{style:{width:72,height:72}}),n.jsxs(i,{flexDirection:"column",gap:"2",children:[n.jsx(t,{size:"md"}),n.jsx(t,{size:"sm"}),n.jsx(t,{size:"sm"})]})]})};var s,a,l;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ render: () => }`,...(l=(a=e.parameters)==null?void 0:a.docs)==null?void 0:l.source}}};const v=["Default"];export{e as Default,v as __namedExportsOrder,h as default}; -//# sourceMappingURL=Placeholder.stories-16e7fb46.js.map diff --git a/assets/Progress.stories-9498c19b.js.map b/assets/Progress.stories-9498c19b.js.map deleted file mode 100644 index 3df5a8cd6..000000000 --- a/assets/Progress.stories-9498c19b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Progress.stories-9498c19b.js","sources":["../../node_modules/.pnpm/@radix-ui+react-progress@1.0.3_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-progress/dist/index.mjs","../../src/components/Progress/Progress.tsx"],"sourcesContent":["import $k03wI$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $k03wI$forwardRef, createElement as $k03wI$createElement} from \"react\";\nimport {createContextScope as $k03wI$createContextScope} from \"@radix-ui/react-context\";\nimport {Primitive as $k03wI$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Progress\n * -----------------------------------------------------------------------------------------------*/ const $67824d98245208a0$var$PROGRESS_NAME = 'Progress';\nconst $67824d98245208a0$var$DEFAULT_MAX = 100;\nconst [$67824d98245208a0$var$createProgressContext, $67824d98245208a0$export$388eb2d8f6d3261f] = $k03wI$createContextScope($67824d98245208a0$var$PROGRESS_NAME);\nconst [$67824d98245208a0$var$ProgressProvider, $67824d98245208a0$var$useProgressContext] = $67824d98245208a0$var$createProgressContext($67824d98245208a0$var$PROGRESS_NAME);\nconst $67824d98245208a0$export$b25a304ec7d746bb = /*#__PURE__*/ $k03wI$forwardRef((props, forwardedRef)=>{\n const { __scopeProgress: __scopeProgress , value: valueProp , max: maxProp , getValueLabel: getValueLabel = $67824d98245208a0$var$defaultGetValueLabel , ...progressProps } = props;\n const max = $67824d98245208a0$var$isValidMaxNumber(maxProp) ? maxProp : $67824d98245208a0$var$DEFAULT_MAX;\n const value = $67824d98245208a0$var$isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = $67824d98245208a0$var$isNumber(value) ? getValueLabel(value, max) : undefined;\n return /*#__PURE__*/ $k03wI$createElement($67824d98245208a0$var$ProgressProvider, {\n scope: __scopeProgress,\n value: value,\n max: max\n }, /*#__PURE__*/ $k03wI$createElement($k03wI$Primitive.div, $k03wI$babelruntimehelpersesmextends({\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": $67824d98245208a0$var$isNumber(value) ? value : undefined,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": $67824d98245208a0$var$getProgressState(value, max),\n \"data-value\": value !== null && value !== void 0 ? value : undefined,\n \"data-max\": max\n }, progressProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($67824d98245208a0$export$b25a304ec7d746bb, {\n displayName: $67824d98245208a0$var$PROGRESS_NAME\n});\n$67824d98245208a0$export$b25a304ec7d746bb.propTypes = {\n max (props, propName, componentName) {\n const propValue = props[propName];\n const strVal = String(propValue);\n if (propValue && !$67824d98245208a0$var$isValidMaxNumber(propValue)) return new Error($67824d98245208a0$var$getInvalidMaxError(strVal, componentName));\n return null;\n },\n value (props, propName, componentName) {\n const valueProp = props[propName];\n const strVal = String(valueProp);\n const max = $67824d98245208a0$var$isValidMaxNumber(props.max) ? props.max : $67824d98245208a0$var$DEFAULT_MAX;\n if (valueProp != null && !$67824d98245208a0$var$isValidValueNumber(valueProp, max)) return new Error($67824d98245208a0$var$getInvalidValueError(strVal, componentName));\n return null;\n }\n};\n/* -------------------------------------------------------------------------------------------------\n * ProgressIndicator\n * -----------------------------------------------------------------------------------------------*/ const $67824d98245208a0$var$INDICATOR_NAME = 'ProgressIndicator';\nconst $67824d98245208a0$export$2b776f7e7ee60dbd = /*#__PURE__*/ $k03wI$forwardRef((props, forwardedRef)=>{\n var _context$value;\n const { __scopeProgress: __scopeProgress , ...indicatorProps } = props;\n const context = $67824d98245208a0$var$useProgressContext($67824d98245208a0$var$INDICATOR_NAME, __scopeProgress);\n return /*#__PURE__*/ $k03wI$createElement($k03wI$Primitive.div, $k03wI$babelruntimehelpersesmextends({\n \"data-state\": $67824d98245208a0$var$getProgressState(context.value, context.max),\n \"data-value\": (_context$value = context.value) !== null && _context$value !== void 0 ? _context$value : undefined,\n \"data-max\": context.max\n }, indicatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($67824d98245208a0$export$2b776f7e7ee60dbd, {\n displayName: $67824d98245208a0$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ function $67824d98245208a0$var$defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction $67824d98245208a0$var$getProgressState(value, maxValue) {\n return value == null ? 'indeterminate' : value === maxValue ? 'complete' : 'loading';\n}\nfunction $67824d98245208a0$var$isNumber(value) {\n return typeof value === 'number';\n}\nfunction $67824d98245208a0$var$isValidMaxNumber(max) {\n // prettier-ignore\n return $67824d98245208a0$var$isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction $67824d98245208a0$var$isValidValueNumber(value, max) {\n // prettier-ignore\n return $67824d98245208a0$var$isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n} // Split this out for clearer readability of the error message.\nfunction $67824d98245208a0$var$getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${$67824d98245208a0$var$DEFAULT_MAX}\\`.`;\n}\nfunction $67824d98245208a0$var$getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${$67824d98245208a0$var$DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nconst $67824d98245208a0$export$be92b6f5f03c0fe9 = $67824d98245208a0$export$b25a304ec7d746bb;\nconst $67824d98245208a0$export$adb584737d712b70 = $67824d98245208a0$export$2b776f7e7ee60dbd;\n\n\n\n\nexport {$67824d98245208a0$export$388eb2d8f6d3261f as createProgressScope, $67824d98245208a0$export$b25a304ec7d746bb as Progress, $67824d98245208a0$export$2b776f7e7ee60dbd as ProgressIndicator, $67824d98245208a0$export$be92b6f5f03c0fe9 as Root, $67824d98245208a0$export$adb584737d712b70 as Indicator};\n//# sourceMappingURL=index.mjs.map\n","import * as ProgressPrimitive from '@radix-ui/react-progress'\n\nimport { Atoms } from '~/css'\n\nimport { Box } from '../Box'\n\ninterface ProgressProps {\n value: number // Ratio between 0 and 1\n color?: Atoms['color']\n}\n\nexport const Progress = (props: ProgressProps) => {\n const { value, color = 'positive' } = props\n const percent = Math.min(value * 100, 100)\n\n return (\n \n \n \n )\n}\n"],"names":["$67824d98245208a0$var$PROGRESS_NAME","$67824d98245208a0$var$DEFAULT_MAX","$67824d98245208a0$var$createProgressContext","$67824d98245208a0$export$388eb2d8f6d3261f","$k03wI$createContextScope","$67824d98245208a0$var$ProgressProvider","$67824d98245208a0$var$useProgressContext","$67824d98245208a0$export$b25a304ec7d746bb","$k03wI$forwardRef","props","forwardedRef","__scopeProgress","valueProp","maxProp","getValueLabel","$67824d98245208a0$var$defaultGetValueLabel","progressProps","max","$67824d98245208a0$var$isValidMaxNumber","value","$67824d98245208a0$var$isValidValueNumber","valueLabel","$67824d98245208a0$var$isNumber","$k03wI$createElement","$k03wI$Primitive","$k03wI$babelruntimehelpersesmextends","$67824d98245208a0$var$getProgressState","propName","componentName","propValue","strVal","$67824d98245208a0$var$getInvalidMaxError","$67824d98245208a0$var$getInvalidValueError","$67824d98245208a0$var$INDICATOR_NAME","$67824d98245208a0$export$2b776f7e7ee60dbd","_context$value","indicatorProps","context","maxValue","$67824d98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,CAAS,oBAAoBD,CAAa;AAAA;AAAA,gDAE1C3B,CAAiC;AAAA;AAAA;AAAA,wBAIjF,CACA,MAAMsC,EAA4ChC,EC1F3CiC,EAAA/B,GAAA,CACL,KAAA,CAAA,MAAAU,EAAA,MAAAsB,EAAA,UAAA,EAAAhC,EACAiC,EAAA,KAAA,IAAAvB,EAAA,IAAA,GAAA,EAEA,OAAAwB,EAAA,IACEC,EAAC,CAAA,GAAAC,EACuB,MAAAH,EACf,aAAA,SACM,WAAA,oBACF,MAAA,OACL,OAAA,IACC,SAAA,SACE,SAAA,WACA,SAAAC,EAAA,IAETC,EAAC,CAAA,GAAAE,EACuB,MAAA,CACf,MAAA,GAAAJ,CAAA,IACY,WAAA,6CACL,eAAA,WACI,EAClB,OAAA,OACO,aAAA,SACM,WAAAD,CACD,CAAA,CACd,CAAA,CAGN;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Progress.stories-9498c19b.js b/assets/Progress.stories-f3e9ebc8.js similarity index 90% rename from assets/Progress.stories-9498c19b.js rename to assets/Progress.stories-f3e9ebc8.js index 28e9c3ce8..adc2160b6 100644 --- a/assets/Progress.stories-9498c19b.js +++ b/assets/Progress.stories-f3e9ebc8.js @@ -1,4 +1,4 @@ -import{j as m}from"./jsx-runtime-69eee039.js";import{b as w,a as b,d as _}from"./index-416e5a7a.js";import{r as l}from"./index-7c191284.js";import{B as g}from"./Box-8ffdd394.js";import"./index-ecbee218.js";/* empty css */import"./atoms-c7901a03.js";const P="Progress",c=100,[S,G]=w(P),[I,M]=S(P),h=l.forwardRef((e,r)=>{const{__scopeProgress:t,value:a,max:o,getValueLabel:s=C,...V}=e,i=p(o)?o:c,n=E(a,i)?a:null,N=d(n)?s(n,i):void 0;return l.createElement(I,{scope:t,value:n,max:i},l.createElement(b.div,_({"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":d(n)?n:void 0,"aria-valuetext":N,role:"progressbar","data-state":y(n,i),"data-value":n??void 0,"data-max":i},V,{ref:r})))});h.propTypes={max(e,r,t){const a=e[r],o=String(a);return a&&!p(a)?new Error(D(o,t)):null},value(e,r,t){const a=e[r],o=String(a),s=p(e.max)?e.max:c;return a!=null&&!E(a,s)?new Error(k(o,t)):null}};const R="ProgressIndicator",L=l.forwardRef((e,r)=>{var t;const{__scopeProgress:a,...o}=e,s=M(R,a);return l.createElement(b.div,_({"data-state":y(s.value,s.max),"data-value":(t=s.value)!==null&&t!==void 0?t:void 0,"data-max":s.max},o,{ref:r}))});function C(e,r){return`${Math.round(e/r*100)}%`}function y(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function d(e){return typeof e=="number"}function p(e){return d(e)&&!isNaN(e)&&e>0}function E(e,r){return d(e)&&!isNaN(e)&&e<=r&&e>=0}function D(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`}function k(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be: +import{j as m}from"./jsx-runtime-1caa8f64.js";import{a as w,c as b,d as _}from"./index-bff3e5ca.js";import{r as l}from"./index-1cdf6ce0.js";import{B as g}from"./Box-e4a86556.js";import"./index-a01a9712.js";/* empty css */import"./atoms-c7901a03.js";const P="Progress",c=100,[S,G]=w(P),[I,M]=S(P),h=l.forwardRef((e,r)=>{const{__scopeProgress:t,value:a,max:o,getValueLabel:s=C,...V}=e,i=p(o)?o:c,n=E(a,i)?a:null,N=d(n)?s(n,i):void 0;return l.createElement(I,{scope:t,value:n,max:i},l.createElement(b.div,_({"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":d(n)?n:void 0,"aria-valuetext":N,role:"progressbar","data-state":y(n,i),"data-value":n??void 0,"data-max":i},V,{ref:r})))});h.propTypes={max(e,r,t){const a=e[r],o=String(a);return a&&!p(a)?new Error(D(o,t)):null},value(e,r,t){const a=e[r],o=String(a),s=p(e.max)?e.max:c;return a!=null&&!E(a,s)?new Error(k(o,t)):null}};const R="ProgressIndicator",L=l.forwardRef((e,r)=>{var t;const{__scopeProgress:a,...o}=e,s=M(R,a);return l.createElement(b.div,_({"data-state":y(s.value,s.max),"data-value":(t=s.value)!==null&&t!==void 0?t:void 0,"data-max":s.max},o,{ref:r}))});function C(e,r){return`${Math.round(e/r*100)}%`}function y(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function d(e){return typeof e=="number"}function p(e){return d(e)&&!isNaN(e)&&e>0}function E(e,r){return d(e)&&!isNaN(e)&&e<=r&&e>=0}function D(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`}function k(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${c} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. @@ -8,4 +8,3 @@ Defaulting to \`null\`.`}const A=h,$=e=>{const{value:r,color:t="positive"}=e,a=M value: 0.5 } }`,...(x=(v=u.parameters)==null?void 0:v.docs)==null?void 0:x.source}}};const X=["Default"];export{u as Default,X as __namedExportsOrder,U as default}; -//# sourceMappingURL=Progress.stories-9498c19b.js.map diff --git a/assets/RadioGroup-489ef1ec.js.map b/assets/RadioGroup-489ef1ec.js.map deleted file mode 100644 index aab59caac..000000000 --- a/assets/RadioGroup-489ef1ec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RadioGroup-489ef1ec.js","sources":["../../node_modules/.pnpm/@radix-ui+react-radio-group@1.1.3_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-radio-group/dist/index.mjs","../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import $8Wolv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $8Wolv$forwardRef, createElement as $8Wolv$createElement, useRef as $8Wolv$useRef, useEffect as $8Wolv$useEffect, useState as $8Wolv$useState} from \"react\";\nimport {composeEventHandlers as $8Wolv$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $8Wolv$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $8Wolv$createContextScope} from \"@radix-ui/react-context\";\nimport {Primitive as $8Wolv$Primitive} from \"@radix-ui/react-primitive\";\nimport {createRovingFocusGroupScope as $8Wolv$createRovingFocusGroupScope, Root as $8Wolv$Root, Item as $8Wolv$Item} from \"@radix-ui/react-roving-focus\";\nimport {useControllableState as $8Wolv$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useDirection as $8Wolv$useDirection} from \"@radix-ui/react-direction\";\nimport {useSize as $8Wolv$useSize} from \"@radix-ui/react-use-size\";\nimport {usePrevious as $8Wolv$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {Presence as $8Wolv$Presence} from \"@radix-ui/react-presence\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Radio\n * -----------------------------------------------------------------------------------------------*/ const $ce77a8961b41be9e$var$RADIO_NAME = 'Radio';\nconst [$ce77a8961b41be9e$var$createRadioContext, $ce77a8961b41be9e$export$67d2296460f1b002] = $8Wolv$createContextScope($ce77a8961b41be9e$var$RADIO_NAME);\nconst [$ce77a8961b41be9e$var$RadioProvider, $ce77a8961b41be9e$var$useRadioContext] = $ce77a8961b41be9e$var$createRadioContext($ce77a8961b41be9e$var$RADIO_NAME);\nconst $ce77a8961b41be9e$export$d7b12c4107be0d61 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadio: __scopeRadio , name: name , checked: checked = false , required: required , disabled: disabled , value: value = 'on' , onCheck: onCheck , ...radioProps } = props;\n const [button, setButton] = $8Wolv$useState(null);\n const composedRefs = $8Wolv$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $8Wolv$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n return /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$var$RadioProvider, {\n scope: __scopeRadio,\n checked: checked,\n disabled: disabled\n }, /*#__PURE__*/ $8Wolv$createElement($8Wolv$Primitive.button, $8Wolv$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"radio\",\n \"aria-checked\": checked,\n \"data-state\": $ce77a8961b41be9e$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, radioProps, {\n ref: composedRefs,\n onClick: $8Wolv$composeEventHandlers(props.onClick, (event)=>{\n // radios cannot be unchecked so we only communicate a checked state\n if (!checked) onCheck === null || onCheck === void 0 || onCheck();\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if radio is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect radio updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($ce77a8961b41be9e$export$d7b12c4107be0d61, {\n displayName: $ce77a8961b41be9e$var$RADIO_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioIndicator\n * -----------------------------------------------------------------------------------------------*/ const $ce77a8961b41be9e$var$INDICATOR_NAME = 'RadioIndicator';\nconst $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadio: __scopeRadio , forceMount: forceMount , ...indicatorProps } = props;\n const context = $ce77a8961b41be9e$var$useRadioContext($ce77a8961b41be9e$var$INDICATOR_NAME, __scopeRadio);\n return /*#__PURE__*/ $8Wolv$createElement($8Wolv$Presence, {\n present: forceMount || context.checked\n }, /*#__PURE__*/ $8Wolv$createElement($8Wolv$Primitive.span, $8Wolv$babelruntimehelpersesmextends({\n \"data-state\": $ce77a8961b41be9e$var$getState(context.checked),\n \"data-disabled\": context.disabled ? '' : undefined\n }, indicatorProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, {\n displayName: $ce77a8961b41be9e$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $ce77a8961b41be9e$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $8Wolv$useRef(null);\n const prevChecked = $8Wolv$usePrevious(checked);\n const controlSize = $8Wolv$useSize(control); // Bubble checked change to parents (e.g form change event)\n $8Wolv$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $8Wolv$createElement(\"input\", $8Wolv$babelruntimehelpersesmextends({\n type: \"radio\",\n \"aria-hidden\": true,\n defaultChecked: checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $ce77a8961b41be9e$var$getState(checked) {\n return checked ? 'checked' : 'unchecked';\n}\n\n\nconst $f99a8c78507165f7$var$ARROW_KEYS = [\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight'\n];\n/* -------------------------------------------------------------------------------------------------\n * RadioGroup\n * -----------------------------------------------------------------------------------------------*/ const $f99a8c78507165f7$var$RADIO_GROUP_NAME = 'RadioGroup';\nconst [$f99a8c78507165f7$var$createRadioGroupContext, $f99a8c78507165f7$export$c547093f11b76da2] = $8Wolv$createContextScope($f99a8c78507165f7$var$RADIO_GROUP_NAME, [\n $8Wolv$createRovingFocusGroupScope,\n $ce77a8961b41be9e$export$67d2296460f1b002\n]);\nconst $f99a8c78507165f7$var$useRovingFocusGroupScope = $8Wolv$createRovingFocusGroupScope();\nconst $f99a8c78507165f7$var$useRadioScope = $ce77a8961b41be9e$export$67d2296460f1b002();\nconst [$f99a8c78507165f7$var$RadioGroupProvider, $f99a8c78507165f7$var$useRadioGroupContext] = $f99a8c78507165f7$var$createRadioGroupContext($f99a8c78507165f7$var$RADIO_GROUP_NAME);\nconst $f99a8c78507165f7$export$a98f0dcb43a68a25 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadioGroup: __scopeRadioGroup , name: name , defaultValue: defaultValue , value: valueProp , required: required = false , disabled: disabled = false , orientation: orientation , dir: dir , loop: loop = true , onValueChange: onValueChange , ...groupProps } = props;\n const rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n const direction = $8Wolv$useDirection(dir);\n const [value, setValue] = $8Wolv$useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /*#__PURE__*/ $8Wolv$createElement($f99a8c78507165f7$var$RadioGroupProvider, {\n scope: __scopeRadioGroup,\n name: name,\n required: required,\n disabled: disabled,\n value: value,\n onValueChange: setValue\n }, /*#__PURE__*/ $8Wolv$createElement($8Wolv$Root, $8Wolv$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n orientation: orientation,\n dir: direction,\n loop: loop\n }), /*#__PURE__*/ $8Wolv$createElement($8Wolv$Primitive.div, $8Wolv$babelruntimehelpersesmextends({\n role: \"radiogroup\",\n \"aria-required\": required,\n \"aria-orientation\": orientation,\n \"data-disabled\": disabled ? '' : undefined,\n dir: direction\n }, groupProps, {\n ref: forwardedRef\n }))));\n});\n/*#__PURE__*/ Object.assign($f99a8c78507165f7$export$a98f0dcb43a68a25, {\n displayName: $f99a8c78507165f7$var$RADIO_GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupItem\n * -----------------------------------------------------------------------------------------------*/ const $f99a8c78507165f7$var$ITEM_NAME = 'RadioGroupItem';\nconst $f99a8c78507165f7$export$9f866c100ef519e4 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadioGroup: __scopeRadioGroup , disabled: disabled , ...itemProps } = props;\n const context = $f99a8c78507165f7$var$useRadioGroupContext($f99a8c78507165f7$var$ITEM_NAME, __scopeRadioGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = $f99a8c78507165f7$var$useRovingFocusGroupScope(__scopeRadioGroup);\n const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n const ref = $8Wolv$useRef(null);\n const composedRefs = $8Wolv$useComposedRefs(forwardedRef, ref);\n const checked = context.value === itemProps.value;\n const isArrowKeyPressedRef = $8Wolv$useRef(false);\n $8Wolv$useEffect(()=>{\n const handleKeyDown = (event)=>{\n if ($f99a8c78507165f7$var$ARROW_KEYS.includes(event.key)) isArrowKeyPressedRef.current = true;\n };\n const handleKeyUp = ()=>isArrowKeyPressedRef.current = false\n ;\n document.addEventListener('keydown', handleKeyDown);\n document.addEventListener('keyup', handleKeyUp);\n return ()=>{\n document.removeEventListener('keydown', handleKeyDown);\n document.removeEventListener('keyup', handleKeyUp);\n };\n }, []);\n return /*#__PURE__*/ $8Wolv$createElement($8Wolv$Item, $8Wolv$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n focusable: !isDisabled,\n active: checked\n }), /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$export$d7b12c4107be0d61, $8Wolv$babelruntimehelpersesmextends({\n disabled: isDisabled,\n required: context.required,\n checked: checked\n }, radioScope, itemProps, {\n name: context.name,\n ref: composedRefs,\n onCheck: ()=>context.onValueChange(itemProps.value)\n ,\n onKeyDown: $8Wolv$composeEventHandlers((event)=>{\n // According to WAI ARIA, radio groups don't activate items on enter keypress\n if (event.key === 'Enter') event.preventDefault();\n }),\n onFocus: $8Wolv$composeEventHandlers(itemProps.onFocus, ()=>{\n var _ref$current;\n /**\n * Our `RovingFocusGroup` will focus the radio when navigating with arrow keys\n * and we need to \"check\" it in that case. We click it to \"check\" it (instead\n * of updating `context.value`) so that the radio change event fires.\n */ if (isArrowKeyPressedRef.current) (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.click();\n })\n })));\n});\n/*#__PURE__*/ Object.assign($f99a8c78507165f7$export$9f866c100ef519e4, {\n displayName: $f99a8c78507165f7$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * RadioGroupIndicator\n * -----------------------------------------------------------------------------------------------*/ const $f99a8c78507165f7$var$INDICATOR_NAME = 'RadioGroupIndicator';\nconst $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/ $8Wolv$forwardRef((props, forwardedRef)=>{\n const { __scopeRadioGroup: __scopeRadioGroup , ...indicatorProps } = props;\n const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);\n return /*#__PURE__*/ $8Wolv$createElement($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, $8Wolv$babelruntimehelpersesmextends({}, radioScope, indicatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($f99a8c78507165f7$export$5fb54c671a65c88, {\n displayName: $f99a8c78507165f7$var$INDICATOR_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $f99a8c78507165f7$export$be92b6f5f03c0fe9 = $f99a8c78507165f7$export$a98f0dcb43a68a25;\nconst $f99a8c78507165f7$export$6d08773d2e66f8f2 = $f99a8c78507165f7$export$9f866c100ef519e4;\nconst $f99a8c78507165f7$export$adb584737d712b70 = $f99a8c78507165f7$export$5fb54c671a65c88;\n\n\n\n\nexport {$f99a8c78507165f7$export$c547093f11b76da2 as createRadioGroupScope, $f99a8c78507165f7$export$a98f0dcb43a68a25 as RadioGroup, $f99a8c78507165f7$export$9f866c100ef519e4 as RadioGroupItem, $f99a8c78507165f7$export$5fb54c671a65c88 as RadioGroupIndicator, $f99a8c78507165f7$export$be92b6f5f03c0fe9 as Root, $f99a8c78507165f7$export$6d08773d2e66f8f2 as Item, $f99a8c78507165f7$export$adb584737d712b70 as Indicator};\n//# sourceMappingURL=index.mjs.map\n","import * as RadioPrimitive from '@radix-ui/react-radio-group'\nimport { forwardRef, Ref } from 'react'\n\nimport { Box, BoxProps } from '~/components/Box'\nimport { Field } from '~/components/Field'\n\nimport {\n indicatorVariants,\n radioItemVariants,\n RadioItemVariants,\n} from './styles.css'\n\ntype RadioOption = {\n label: string\n value: string\n disabled?: boolean\n}\n\nexport type RadioGroupProps = RadioItemVariants &\n RadioPrimitive.RadioGroupProps & {\n disabled?: boolean\n flexDirection?: BoxProps['flexDirection']\n gap?: BoxProps['gap']\n name: string\n options: RadioOption[]\n }\n\ntype RadioOptionProps = RadioItemVariants & {\n id: string\n label: string\n value: string\n disabled?: boolean\n}\n\nconst RadioOption = (props: RadioOptionProps) => {\n const { id, label, size = 'sm', value, disabled } = props\n\n return (\n \n \n \n \n \n \n \n )\n}\n\nexport const RadioGroup = forwardRef(\n (props: RadioGroupProps, ref: Ref) => {\n const {\n flexDirection = 'column',\n disabled = false,\n gap = '2',\n name,\n options,\n size = 'sm',\n ...rest\n } = props\n\n return (\n \n \n {options.map(({ label, value, disabled }) => (\n \n ))}\n \n \n )\n }\n)\n"],"names":["$ce77a8961b41be9e$var$RADIO_NAME","$ce77a8961b41be9e$var$createRadioContext","$ce77a8961b41be9e$export$67d2296460f1b002","$8Wolv$createContextScope","$ce77a8961b41be9e$var$RadioProvider","$ce77a8961b41be9e$var$useRadioContext","$ce77a8961b41be9e$export$d7b12c4107be0d61","$8Wolv$forwardRef","props","forwardedRef","__scopeRadio","name","checked","required","disabled","value","onCheck","radioProps","button","setButton","$8Wolv$useState","composedRefs","$8Wolv$useComposedRefs","node","hasConsumerStoppedPropagationRef","$8Wolv$useRef","isFormControl","$8Wolv$createElement","$8Wolv$Primitive","$8Wolv$babelruntimehelpersesmextends","$ce77a8961b41be9e$var$getState","$8Wolv$composeEventHandlers","event","$ce77a8961b41be9e$var$BubbleInput","$ce77a8961b41be9e$var$INDICATOR_NAME","$ce77a8961b41be9e$export$d35a9ffa9a04f9e7","forceMount","indicatorProps","context","$8Wolv$Presence","control","bubbles","inputProps","ref","prevChecked","$8Wolv$usePrevious","controlSize","$8Wolv$useSize","$8Wolv$useEffect","input","inputProto","setChecked","$f99a8c78507165f7$var$ARROW_KEYS","$f99a8c78507165f7$var$RADIO_GROUP_NAME","$f99a8c78507165f7$var$createRadioGroupContext","$f99a8c78507165f7$export$c547093f11b76da2","$8Wolv$createRovingFocusGroupScope","$f99a8c78507165f7$var$useRovingFocusGroupScope","$f99a8c78507165f7$var$useRadioScope","$f99a8c78507165f7$var$RadioGroupProvider","$f99a8c78507165f7$var$useRadioGroupContext","$f99a8c78507165f7$export$a98f0dcb43a68a25","__scopeRadioGroup","defaultValue","valueProp","orientation","dir","loop","onValueChange","groupProps","rovingFocusGroupScope","direction","$8Wolv$useDirection","setValue","$8Wolv$useControllableState","$8Wolv$Root","$f99a8c78507165f7$var$ITEM_NAME","$f99a8c78507165f7$export$9f866c100ef519e4","itemProps","isDisabled","radioScope","isArrowKeyPressedRef","handleKeyDown","handleKeyUp","$8Wolv$Item","_ref$current","$f99a8c78507165f7$export$5fb54c671a65c88","$f99a8c78507165f7$export$be92b6f5f03c0fe9","$f99a8c78507165f7$export$6d08773d2e66f8f2","$f99a8c78507165f7$export$adb584737d712b70","RadioOption","id","label","size","jsx","Box","Field","RadioPrimitive.Item","radioItemVariants","RadioPrimitive.Indicator","indicatorVariants","RadioGroup","forwardRef","flexDirection","gap","options","rest","RadioPrimitive.Root","disabled2"],"mappings":"2mBAkCqG,MAAMA,EAAmC,QACxI,CAACC,EAA0CC,CAAyC,EAAIC,EAA0BH,CAAgC,EAClJ,CAACI,EAAqCC,CAAqC,EAAIJ,EAAyCD,CAAgC,EACxJM,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,aAAcC,EAAe,KAAMC,EAAO,QAASC,EAAU,GAAQ,SAAUC,EAAW,SAAUC,EAAW,MAAOC,EAAQ,KAAO,QAASC,EAAU,GAAGC,CAAY,EAAGT,EAC5K,CAACU,EAAQC,CAAS,EAAIC,EAAe,SAAC,IAAI,EAC1CC,EAAeC,EAAuBb,EAAec,GAAOJ,EAAUI,CAAI,CACpF,EACUC,EAAmCC,SAAc,EAAK,EACtDC,EAAgBR,EAAS,EAAQA,EAAO,QAAQ,MAAM,EAAK,GACjE,OAAqBS,EAAAA,cAAqBvB,EAAqC,CAC3E,MAAOM,EACP,QAASE,EACT,SAAUE,CACb,EAAgBa,gBAAqBC,EAAiB,OAAQC,EAAqC,CAChG,KAAM,SACN,KAAM,QACN,eAAgBjB,EAChB,aAAckB,EAA+BlB,CAAO,EACpD,gBAAiBE,EAAW,GAAK,OACjC,SAAUA,EACV,MAAOC,CACV,EAAEE,EAAY,CACX,IAAKI,EACL,QAASU,EAA4BvB,EAAM,QAAUwB,GAAQ,CAEpDpB,GAASI,GAAY,MAA8BA,IACpDU,IACAF,EAAiC,QAAUQ,EAAM,uBAG5CR,EAAiC,SAASQ,EAAM,gBAAe,EAEpF,CAAS,CACJ,CAAA,CAAC,EAAGN,GAA+BC,EAAoB,cAACM,EAAmC,CACxF,QAASf,EACT,QAAS,CAACM,EAAiC,QAC3C,KAAMb,EACN,MAAOI,EACP,QAASH,EACT,SAAUC,EACV,SAAUC,EAEV,MAAO,CACH,UAAW,mBACd,CACJ,CAAA,CAAC,CACN,CAAC,EAM0GoB,EAAuC,iB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AAA,SAAA6F,CAAA,IAAAd,EAAA,IAIQJ,GAAC,CAAA,GAAA,GAAA/E,CAAA,IAAAI,CAAA,GACqB,MAAA6E,EAEpB,KAAAC,EACA,MAAA9E,EACA,SAAA6F,CACU,EAAA7F,CAJL,CAAA,CAAA,CAAA,CAAA,CAAA,CAQb,CAGN","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/RadioGroup-489ef1ec.js b/assets/RadioGroup-87191244.js similarity index 90% rename from assets/RadioGroup-489ef1ec.js rename to assets/RadioGroup-87191244.js index 94b37a83d..266918a14 100644 --- a/assets/RadioGroup-489ef1ec.js +++ b/assets/RadioGroup-87191244.js @@ -1,2 +1 @@ -import{j as y}from"./jsx-runtime-69eee039.js";import{b as h,d as v,a as R,$ as _}from"./index-416e5a7a.js";import{r as e}from"./index-7c191284.js";import{a as A,c as g}from"./index-006d63ff.js";import{$ as k,a as I,b as j}from"./index-e7e6c749.js";import{$ as D}from"./index-df712b54.js";import{$ as F}from"./index-3842af66.js";import{$ as z}from"./index-555f5aa0.js";import{$ as M}from"./index-cd5c74af.js";import{B as C}from"./Box-8ffdd394.js";import{F as O}from"./Field-0c069ee0.js";/* empty css */import"./atoms-c7901a03.js";import{c as E}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const w="Radio",[L,V]=h(w),[B,K]=L(w),T=e.forwardRef((a,s)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:t,disabled:c,value:l="on",onCheck:d,...p}=a,[f,u]=e.useState(null),$=_(s,m=>u(m)),i=e.useRef(!1),b=f?!!f.closest("form"):!0;return e.createElement(B,{scope:r,checked:o,disabled:c},e.createElement(R.button,v({type:"button",role:"radio","aria-checked":o,"data-state":G(o),"data-disabled":c?"":void 0,disabled:c,value:l},p,{ref:$,onClick:g(a.onClick,m=>{o||d==null||d(),b&&(i.current=m.isPropagationStopped(),i.current||m.stopPropagation())})})),b&&e.createElement(W,{control:f,bubbles:!i.current,name:n,value:l,checked:o,required:t,disabled:c,style:{transform:"translateX(-100%)"}}))}),U="RadioIndicator",H=e.forwardRef((a,s)=>{const{__scopeRadio:r,forceMount:n,...o}=a,t=K(U,r);return e.createElement(M,{present:n||t.checked},e.createElement(R.span,v({"data-state":G(t.checked),"data-disabled":t.disabled?"":void 0},o,{ref:s})))}),W=a=>{const{control:s,checked:r,bubbles:n=!0,...o}=a,t=e.useRef(null),c=z(r),l=F(s);return e.useEffect(()=>{const d=t.current,p=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&u){const $=new Event("click",{bubbles:n});u.call(d,r),d.dispatchEvent($)}},[c,r,n]),e.createElement("input",v({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:t,style:{...a.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function G(a){return a?"checked":"unchecked"}const X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],P="RadioGroup",[Y,_e]=h(P,[k,V]),S=k(),q=V(),[J,Q]=Y(P),Z=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:t,required:c=!1,disabled:l=!1,orientation:d,dir:p,loop:f=!0,onValueChange:u,...$}=a,i=S(r),b=D(p),[m,N]=A({prop:t,defaultProp:o,onChange:u});return e.createElement(J,{scope:r,name:n,required:c,disabled:l,value:m,onValueChange:N},e.createElement(I,v({asChild:!0},i,{orientation:d,dir:b,loop:f}),e.createElement(R.div,v({role:"radiogroup","aria-required":c,"aria-orientation":d,"data-disabled":l?"":void 0,dir:b},$,{ref:s}))))}),ee="RadioGroupItem",re=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,disabled:n,...o}=a,t=Q(ee,r),c=t.disabled||n,l=S(r),d=q(r),p=e.useRef(null),f=_(s,p),u=t.value===o.value,$=e.useRef(!1);return e.useEffect(()=>{const i=m=>{X.includes(m.key)&&($.current=!0)},b=()=>$.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",b)}},[]),e.createElement(j,v({asChild:!0},l,{focusable:!c,active:u}),e.createElement(T,v({disabled:c,required:t.required,checked:u},d,o,{name:t.name,ref:f,onCheck:()=>t.onValueChange(o.value),onKeyDown:g(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:g(o.onFocus,()=>{var i;$.current&&((i=p.current)===null||i===void 0||i.click())})})))}),oe=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,...n}=a,o=q(r);return e.createElement(H,v({},o,n,{ref:s}))}),te=Z,ae=re,ne=oe;var se=E({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rt",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),ce=E({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11ob fyvr12uz fyvr12uv fyvr12vj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const ie=a=>{const{id:s,label:r,size:n="sm",value:o,disabled:t}=a;return y.jsx(C,{alignItems:"center",children:y.jsx(O,{disabled:t,display:"flex",id:s,label:r,labelLocation:"right",children:y.jsx(ae,{className:ce({size:n}),value:o,id:s,disabled:t,children:y.jsx(ne,{className:se({size:n})})})})})},x=e.forwardRef((a,s)=>{const{flexDirection:r="column",disabled:n=!1,gap:o="2",name:t,options:c,size:l="sm",...d}=a;return y.jsx(te,{disabled:n,name:t,ref:s,...d,children:y.jsx(C,{flexDirection:r,gap:o,children:c.map(({label:p,value:f,disabled:u})=>y.jsx(ie,{id:`${t}-${f}`,label:p,size:l,value:f,disabled:u},f))})})});try{x.displayName="RadioGroup",x.__docgenInfo={description:"",displayName:"RadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}}}}}catch{}export{x as R}; -//# sourceMappingURL=RadioGroup-489ef1ec.js.map +import{j as y}from"./jsx-runtime-1caa8f64.js";import{a as h,d as v,c as R,$ as _}from"./index-bff3e5ca.js";import{r as e}from"./index-1cdf6ce0.js";import{a as A,c as g}from"./index-ed6c0076.js";import{$ as k,a as I,b as j}from"./index-f015b491.js";import{$ as D}from"./index-cb7a0887.js";import{$ as F}from"./index-0d95b182.js";import{$ as z}from"./index-b65dbec4.js";import{$ as M}from"./index-5a7be88c.js";import{B as C}from"./Box-e4a86556.js";import{F as O}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";import{c as E}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const w="Radio",[L,V]=h(w),[B,K]=L(w),T=e.forwardRef((a,s)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:t,disabled:c,value:l="on",onCheck:d,...p}=a,[f,u]=e.useState(null),$=_(s,m=>u(m)),i=e.useRef(!1),b=f?!!f.closest("form"):!0;return e.createElement(B,{scope:r,checked:o,disabled:c},e.createElement(R.button,v({type:"button",role:"radio","aria-checked":o,"data-state":G(o),"data-disabled":c?"":void 0,disabled:c,value:l},p,{ref:$,onClick:g(a.onClick,m=>{o||d==null||d(),b&&(i.current=m.isPropagationStopped(),i.current||m.stopPropagation())})})),b&&e.createElement(W,{control:f,bubbles:!i.current,name:n,value:l,checked:o,required:t,disabled:c,style:{transform:"translateX(-100%)"}}))}),U="RadioIndicator",H=e.forwardRef((a,s)=>{const{__scopeRadio:r,forceMount:n,...o}=a,t=K(U,r);return e.createElement(M,{present:n||t.checked},e.createElement(R.span,v({"data-state":G(t.checked),"data-disabled":t.disabled?"":void 0},o,{ref:s})))}),W=a=>{const{control:s,checked:r,bubbles:n=!0,...o}=a,t=e.useRef(null),c=z(r),l=F(s);return e.useEffect(()=>{const d=t.current,p=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&u){const $=new Event("click",{bubbles:n});u.call(d,r),d.dispatchEvent($)}},[c,r,n]),e.createElement("input",v({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:t,style:{...a.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function G(a){return a?"checked":"unchecked"}const X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],P="RadioGroup",[Y,_e]=h(P,[k,V]),S=k(),q=V(),[J,Q]=Y(P),Z=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:t,required:c=!1,disabled:l=!1,orientation:d,dir:p,loop:f=!0,onValueChange:u,...$}=a,i=S(r),b=D(p),[m,N]=A({prop:t,defaultProp:o,onChange:u});return e.createElement(J,{scope:r,name:n,required:c,disabled:l,value:m,onValueChange:N},e.createElement(I,v({asChild:!0},i,{orientation:d,dir:b,loop:f}),e.createElement(R.div,v({role:"radiogroup","aria-required":c,"aria-orientation":d,"data-disabled":l?"":void 0,dir:b},$,{ref:s}))))}),ee="RadioGroupItem",re=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,disabled:n,...o}=a,t=Q(ee,r),c=t.disabled||n,l=S(r),d=q(r),p=e.useRef(null),f=_(s,p),u=t.value===o.value,$=e.useRef(!1);return e.useEffect(()=>{const i=m=>{X.includes(m.key)&&($.current=!0)},b=()=>$.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",b)}},[]),e.createElement(j,v({asChild:!0},l,{focusable:!c,active:u}),e.createElement(T,v({disabled:c,required:t.required,checked:u},d,o,{name:t.name,ref:f,onCheck:()=>t.onValueChange(o.value),onKeyDown:g(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:g(o.onFocus,()=>{var i;$.current&&((i=p.current)===null||i===void 0||i.click())})})))}),oe=e.forwardRef((a,s)=>{const{__scopeRadioGroup:r,...n}=a,o=q(r);return e.createElement(H,v({},o,n,{ref:s}))}),te=Z,ae=re,ne=oe;var se=E({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rt",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),ce=E({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12nb fyvr12fz fyvr121b fyvr128n fyvr12nh fyvr12g5 fyvr121h fyvr128t fyvr11ob fyvr12uz fyvr12uv fyvr12vj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const ie=a=>{const{id:s,label:r,size:n="sm",value:o,disabled:t}=a;return y.jsx(C,{alignItems:"center",children:y.jsx(O,{disabled:t,display:"flex",id:s,label:r,labelLocation:"right",children:y.jsx(ae,{className:ce({size:n}),value:o,id:s,disabled:t,children:y.jsx(ne,{className:se({size:n})})})})})},x=e.forwardRef((a,s)=>{const{flexDirection:r="column",disabled:n=!1,gap:o="2",name:t,options:c,size:l="sm",...d}=a;return y.jsx(te,{disabled:n,name:t,ref:s,...d,children:y.jsx(C,{flexDirection:r,gap:o,children:c.map(({label:p,value:f,disabled:u})=>y.jsx(ie,{id:`${t}-${f}`,label:p,size:l,value:f,disabled:u},f))})})});try{x.displayName="RadioGroup",x.__docgenInfo={description:"",displayName:"RadioGroup",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"RadioOption[]"}}}}}catch{}export{x as R}; diff --git a/assets/RadioGroup.stories-081ba880.js.map b/assets/RadioGroup.stories-081ba880.js.map deleted file mode 100644 index 5914b77db..000000000 --- a/assets/RadioGroup.stories-081ba880.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RadioGroup.stories-081ba880.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/RadioGroup.stories-081ba880.js b/assets/RadioGroup.stories-bd5dae3c.js similarity index 60% rename from assets/RadioGroup.stories-081ba880.js rename to assets/RadioGroup.stories-bd5dae3c.js index ac5c3c7c7..cdaa5823f 100644 --- a/assets/RadioGroup.stories-081ba880.js +++ b/assets/RadioGroup.stories-bd5dae3c.js @@ -1,4 +1,4 @@ -import{R as n}from"./RadioGroup-489ef1ec.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-e7e6c749.js";import"./index-e5d8d6a8.js";import"./index-8f163998.js";import"./index-df712b54.js";import"./index-3842af66.js";import"./index-555f5aa0.js";import"./index-cd5c74af.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-0c069ee0.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const F={title:"Forms/RadioGroup",component:n},o={args:{size:"sm",flexDirection:"column",gap:"4",options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Option 4",value:"option-4",disabled:!0}]}};var t,i,p;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{R as n}from"./RadioGroup-87191244.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-f015b491.js";import"./index-af546338.js";import"./index-dad7d30c.js";import"./index-cb7a0887.js";import"./index-0d95b182.js";import"./index-b65dbec4.js";import"./index-5a7be88c.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const F={title:"Forms/RadioGroup",component:n},o={args:{size:"sm",flexDirection:"column",gap:"4",options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Option 4",value:"option-4",disabled:!0}]}};var t,i,p;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { size: 'sm', flexDirection: 'column', @@ -19,4 +19,3 @@ import{R as n}from"./RadioGroup-489ef1ec.js";import"./jsx-runtime-69eee039.js";i }] } }`,...(p=(i=o.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};const S=["Default"];export{o as Default,S as __namedExportsOrder,F as default}; -//# sourceMappingURL=RadioGroup.stories-081ba880.js.map diff --git a/assets/Scroll-ad0fe6d4.js.map b/assets/Scroll-ad0fe6d4.js.map deleted file mode 100644 index bc879e8eb..000000000 --- a/assets/Scroll-ad0fe6d4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scroll-ad0fe6d4.js","sources":["../../src/components/Scroll/Scroll.tsx"],"sourcesContent":["import { Box, BoxProps } from '../Box'\n\nimport * as styles from './styles.css'\n\ninterface ScrollProps extends BoxProps {\n direction?: 'horizontal' | 'vertical'\n shadows?: boolean\n contentProps?: BoxProps\n}\n\nexport const Scroll = (props: ScrollProps) => {\n const {\n children,\n shadows = true,\n direction = 'vertical',\n contentProps,\n ...rest\n } = props\n\n return (\n \n \n {children}\n \n \n )\n}\n"],"names":["Scroll","props","children","shadows","direction","contentProps","rest","jsx","Box","styles.overlay","styles.scroll"],"mappings":"wkBAUO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAM,SAAAC,EACJ,QAAAC,EAAA,GACU,UAAAC,EAAA,WACE,aAAAC,EACZ,GAAAC,CACG,EAAAL,EAGL,OAAAM,EAAA,IACEC,EAAC,CAAA,UAAAC,EAAA,CAAA,UAAAL,EAAA,QAAAD,CAAA,CAAA,EACiD,SAAA,WACvC,MAAA,OACH,OAAA,OACC,GAAAG,EACH,SAAAC,EAAA,IAEJC,EAAC,CAAA,UAAAE,EAAA,CAAA,UAAAN,EAAA,EACuC,WAAA,oBAC3B,GAAAC,EACP,SAAAH,CAEH,CAAA,CACH,CAAA,CAGN"} \ No newline at end of file diff --git a/assets/Scroll-ad0fe6d4.js b/assets/Scroll-b2adf70a.js similarity index 99% rename from assets/Scroll-ad0fe6d4.js rename to assets/Scroll-b2adf70a.js index 2d4e7f2c3..647334da6 100644 --- a/assets/Scroll-ad0fe6d4.js +++ b/assets/Scroll-b2adf70a.js @@ -1,2 +1 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{B as i}from"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import{c as s}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var g=s({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),d=s({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const r=n=>{const{children:a,shadows:l=!0,direction:t="vertical",contentProps:o,...u}=n;return e.jsx(i,{className:g({direction:t,shadows:l}),position:"relative",width:"full",height:"full",...u,children:e.jsx(i,{className:d({direction:t}),background:"backgroundPrimary",...o,children:a})})};try{r.displayName="Scroll",r.__docgenInfo={description:"",displayName:"Scroll",props:{direction:{defaultValue:null,description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},shadows:{defaultValue:null,description:"",name:"shadows",required:!1,type:{name:"boolean"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:'BoxProps<"div">'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{r as S}; -//# sourceMappingURL=Scroll-ad0fe6d4.js.map +import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as i}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import{c as s}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var g=s({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),d=s({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const r=n=>{const{children:a,shadows:l=!0,direction:t="vertical",contentProps:o,...u}=n;return e.jsx(i,{className:g({direction:t,shadows:l}),position:"relative",width:"full",height:"full",...u,children:e.jsx(i,{className:d({direction:t}),background:"backgroundPrimary",...o,children:a})})};try{r.displayName="Scroll",r.__docgenInfo={description:"",displayName:"Scroll",props:{direction:{defaultValue:null,description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},shadows:{defaultValue:null,description:"",name:"shadows",required:!1,type:{name:"boolean"}},contentProps:{defaultValue:null,description:"",name:"contentProps",required:!1,type:{name:'BoxProps<"div">'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{r as S}; diff --git a/assets/Scroll.stories-442cd682.js b/assets/Scroll.stories-0b9050b8.js similarity index 87% rename from assets/Scroll.stories-442cd682.js rename to assets/Scroll.stories-0b9050b8.js index 168640989..863fa334b 100644 --- a/assets/Scroll.stories-442cd682.js +++ b/assets/Scroll.stories-0b9050b8.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-69eee039.js";import{B as a}from"./Box-8ffdd394.js";import{C as g}from"./Card-3affd0fc.js";import{T as p}from"./Text-cdf53fa8.js";import{S as m}from"./Scroll-ad0fe6d4.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";/* empty css */const H={title:"Components/Scroll",component:m},x=e=>r.jsx(g,{outlined:!0,style:{width:200,height:200},overflow:"hidden",padding:"0",children:r.jsx(m,{...e})}),h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t={render:x,args:{direction:"vertical",shadows:!0,children:r.jsx(a,{padding:"4",flexDirection:"column",gap:"4",alignItems:"center",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}},o={render:x,args:{direction:"horizontal",shadows:!0,children:r.jsx(a,{padding:"4",gap:"4",alignItems:"center",height:"full",width:"max",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}};var i,l,s;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";import{C as g}from"./Card-34bef967.js";import{T as p}from"./Text-b96ac7e7.js";import{S as m}from"./Scroll-b2adf70a.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";/* empty css */const H={title:"Components/Scroll",component:m},x=e=>r.jsx(g,{outlined:!0,style:{width:200,height:200},overflow:"hidden",padding:"0",children:r.jsx(m,{...e})}),h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t={render:x,args:{direction:"vertical",shadows:!0,children:r.jsx(a,{padding:"4",flexDirection:"column",gap:"4",alignItems:"center",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}},o={render:x,args:{direction:"horizontal",shadows:!0,children:r.jsx(a,{padding:"4",gap:"4",alignItems:"center",height:"full",width:"max",children:h.map(e=>r.jsx(a,{children:r.jsx(p,{color:"text100",variant:"xlarge",children:e})},e))})}};var i,l,s;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{ render: StoryWrapper, args: { direction: 'vertical', @@ -25,4 +25,3 @@ import{j as r}from"./jsx-runtime-69eee039.js";import{B as a}from"./Box-8ffdd394. } }`,...(d=(c=o.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};const I=["VerticalScroll","HorizontalScroll"];export{o as HorizontalScroll,t as VerticalScroll,I as __namedExportsOrder,H as default}; -//# sourceMappingURL=Scroll.stories-442cd682.js.map diff --git a/assets/Scroll.stories-442cd682.js.map b/assets/Scroll.stories-442cd682.js.map deleted file mode 100644 index bf335d4b1..000000000 --- a/assets/Scroll.stories-442cd682.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scroll.stories-442cd682.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/SearchInput.stories-00570681.js b/assets/SearchInput.stories-00570681.js new file mode 100644 index 000000000..7670ea37a --- /dev/null +++ b/assets/SearchInput.stories-00570681.js @@ -0,0 +1,8 @@ +import{j as a}from"./jsx-runtime-1caa8f64.js";import{r as g}from"./index-1cdf6ce0.js";import{I as V}from"./IconButton-64184e44.js";import{T as C}from"./TextInput-d5b4161c.js";import"./ControlledTextInput-4a33d1f2.js";import{b as y,c as h}from"./WarningIcon-c4815a2d.js";import"./Button-e8455a66.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Field-cc1005d3.js";const i=g.forwardRef((n,r)=>{const{controls:s,onChange:e,placeholder:c="Search",name:m="search",value:l,...p}=n,f=l?a.jsx(V,{icon:h,size:"xs",onClick:()=>e==null?void 0:e({target:{value:""}})}):void 0;return a.jsx(C,{ref:r,name:m,leftIcon:y,controls:s||f,placeholder:c,value:l,onChange:S=>e==null?void 0:e(S),...p})});try{i.displayName="SearchInput",i.__docgenInfo={description:"",displayName:"SearchInput",props:{alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}}}}}catch{}const _={title:"Forms/SearchInput",component:i},v=n=>{const[r,s]=g.useState("");return a.jsx(i,{as:"input",id:"myInput",value:r,onChange:e=>s(e.target.value),...n})},t={render:v,args:{label:"Search",labelLocation:"top",placeholder:"This is the placeholder"}};var o,u,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ + render: StoryWrapper, + args: { + label: 'Search', + labelLocation: 'top', + placeholder: 'This is the placeholder' + } +}`,...(d=(u=t.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};const D=["Default"];export{t as Default,D as __namedExportsOrder,_ as default}; diff --git a/assets/SearchInput.stories-4be38c30.js b/assets/SearchInput.stories-4be38c30.js deleted file mode 100644 index 0748afac5..000000000 --- a/assets/SearchInput.stories-4be38c30.js +++ /dev/null @@ -1,9 +0,0 @@ -import{j as a}from"./jsx-runtime-69eee039.js";import{r as g}from"./index-7c191284.js";import{I as V}from"./IconButton-3648ed15.js";import{T as C}from"./TextInput-e7a764b0.js";import"./ControlledTextInput-deea110c.js";import{b as y,c as h}from"./WarningIcon-b42ff4ac.js";import"./Button-cbaba6d6.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Field-0c069ee0.js";const i=g.forwardRef((n,r)=>{const{controls:s,onChange:e,placeholder:c="Search",name:m="search",value:l,...p}=n,f=l?a.jsx(V,{icon:h,size:"xs",onClick:()=>e==null?void 0:e({target:{value:""}})}):void 0;return a.jsx(C,{ref:r,name:m,leftIcon:y,controls:s||f,placeholder:c,value:l,onChange:S=>e==null?void 0:e(S),...p})});try{i.displayName="SearchInput",i.__docgenInfo={description:"",displayName:"SearchInput",props:{borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | (string & readonly string[])"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"input"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}}}}}catch{}const _={title:"Forms/SearchInput",component:i},v=n=>{const[r,s]=g.useState("");return a.jsx(i,{as:"input",id:"myInput",value:r,onChange:e=>s(e.target.value),...n})},t={render:v,args:{label:"Search",labelLocation:"top",placeholder:"This is the placeholder"}};var o,u,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ - render: StoryWrapper, - args: { - label: 'Search', - labelLocation: 'top', - placeholder: 'This is the placeholder' - } -}`,...(d=(u=t.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};const D=["Default"];export{t as Default,D as __namedExportsOrder,_ as default}; -//# sourceMappingURL=SearchInput.stories-4be38c30.js.map diff --git a/assets/SearchInput.stories-4be38c30.js.map b/assets/SearchInput.stories-4be38c30.js.map deleted file mode 100644 index f3bf7bcff..000000000 --- a/assets/SearchInput.stories-4be38c30.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SearchInput.stories-4be38c30.js","sources":["../../src/components/SearchInput/SearchInput.tsx"],"sourcesContent":["import { ChangeEvent, forwardRef } from 'react'\n\nimport { PolymorphicProps, PolymorphicRef } from '~/components/Box'\nimport { IconButton } from '~/components/IconButton'\nimport { TextInput, TextInputProps } from '~/components/TextInput'\nimport { CloseIcon, SearchIcon } from '~/icons'\n\ntype SearchInputProps = TextInputProps & {\n name?: string\n}\n\nexport const SearchInput = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef<'input'>\n ) => {\n const {\n controls,\n onChange,\n placeholder = 'Search',\n name = 'search',\n value,\n ...rest\n } = props\n\n const defaultClearButton = value ? (\n \n onChange?.({\n target: { value: '' },\n } as ChangeEvent)\n }\n />\n ) : undefined\n\n return (\n ) => onChange?.(ev)}\n {...rest}\n />\n )\n }\n)\n"],"names":["SearchInput","forwardRef","props","ref","controls","onChange","placeholder","name","value","rest","defaultClearButton","jsx","IconButton","CloseIcon","TextInput","SearchIcon","ev"],"mappings":"kkBAWO,MAAAA,EAAAC,EAAA,WAAoB,CAAAC,EAAAC,IAAA,CAKvB,KAAA,CAAM,SAAAC,EACJ,SAAAC,EACA,YAAAC,EAAA,SACc,KAAAC,EAAA,SACP,MAAAC,EACP,GAAAC,CACG,EAAAP,EAGLQ,EAAAF,EAAAG,EAAA,IACEC,EAAC,CAAA,KAAAC,EACO,KAAA,KACD,QAAA,IAAAR,GAAA,YAAAA,EAAA,CAEQ,OAAA,CAAA,MAAA,EAAA,CACW,EACY,CAAA,EAAA,OAKxC,OAAAM,EAAA,IACEG,EAAC,CAAA,IAAAX,EACC,KAAAI,EACA,SAAAQ,EACU,SAAAX,GAAAM,EACY,YAAAJ,EACtB,MAAAE,EACA,SAAAQ,GAAAX,GAAA,YAAAA,EAAAW,GAC8D,GAAAP,CAC1D,CAAA,CACN,CAGN;;;;;;;"} \ No newline at end of file diff --git a/assets/Select-a2de057d.js b/assets/Select-09cd7267.js similarity index 64% rename from assets/Select-a2de057d.js rename to assets/Select-09cd7267.js index 374f19db9..414ad9758 100644 --- a/assets/Select-a2de057d.js +++ b/assets/Select-09cd7267.js @@ -1,2 +1 @@ -import{j as N}from"./jsx-runtime-69eee039.js";import{b as Oe,$ as j,_ as I,a as K,c as De}from"./index-416e5a7a.js";import{r as e}from"./index-7c191284.js";import{r as Ce}from"./index-ecbee218.js";import{a as xe,c as O,$ as oe,b as Me}from"./index-006d63ff.js";import{$ as Ve}from"./index-e5d8d6a8.js";import{$ as ke}from"./index-df712b54.js";import{$ as Ae}from"./index-f0ce3c30.js";import{h as He,$ as Be,a as Le,b as Fe}from"./Combination-eaaf64fc.js";import{$ as he}from"./index-8f163998.js";import{$ as Ee,a as We,b as je,c as Ke}from"./index-50d6e817.js";import{$ as qe}from"./index-555f5aa0.js";import{a as Ue}from"./index-8e81e3f6.js";import{c as Pe,B as ze}from"./Box-8ffdd394.js";import{F as Ge}from"./Field-0c069ee0.js";import{i as Ye}from"./WarningIcon-b42ff4ac.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as Xe}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";function ye(o,[c,t]){return Math.min(t,Math.max(c,o))}const Ze=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],ce="Select",[se,ge,Qe]=Ve(ce),[J,no]=Oe(ce,[Qe,Ee]),$e=Ee(),[et,z]=J(ce),[tt,ot]=J(ce),nt=o=>{const{__scopeSelect:c,children:t,open:r,defaultOpen:s,onOpenChange:f,value:a,defaultValue:l,onValueChange:i,dir:u,name:h,autoComplete:S,disabled:E,required:C}=o,p=$e(c),[v,y]=e.useState(null),[m,n]=e.useState(null),[g,Q]=e.useState(!1),D=ke(u),[ee=!1,T]=xe({prop:r,defaultProp:s,onChange:f}),[R,q]=xe({prop:a,defaultProp:l,onChange:i}),G=e.useRef(null),U=v?!!v.closest("form"):!0,[k,L]=e.useState(new Set),F=Array.from(k).map(P=>P.props.value).join(";");return e.createElement(We,p,e.createElement(et,{required:C,scope:c,trigger:v,onTriggerChange:y,valueNode:m,onValueNodeChange:n,valueNodeHasChildren:g,onValueNodeHasChildrenChange:Q,contentId:he(),value:R,onValueChange:q,open:ee,onOpenChange:T,dir:D,triggerPointerDownPosRef:G,disabled:E},e.createElement(se.Provider,{scope:c},e.createElement(tt,{scope:o.__scopeSelect,onNativeOptionAdd:e.useCallback(P=>{L(A=>new Set(A).add(P))},[]),onNativeOptionRemove:e.useCallback(P=>{L(A=>{const H=new Set(A);return H.delete(P),H})},[])},t)),U?e.createElement(Ie,{key:F,"aria-hidden":!0,required:C,tabIndex:-1,name:h,autoComplete:S,value:R,onChange:P=>q(P.target.value),disabled:E},R===void 0?e.createElement("option",{value:""}):null,Array.from(k)):null))},rt="SelectTrigger",at=e.forwardRef((o,c)=>{const{__scopeSelect:t,disabled:r=!1,...s}=o,f=$e(t),a=z(rt,t),l=a.disabled||r,i=j(c,a.onTriggerChange),u=ge(t),[h,S,E]=Re(p=>{const v=u().filter(n=>!n.disabled),y=v.find(n=>n.value===a.value),m=Ne(v,p,y);m!==void 0&&a.onValueChange(m.value)}),C=()=>{l||(a.onOpenChange(!0),E())};return e.createElement(je,I({asChild:!0},f),e.createElement(K.button,I({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":_e(a.value)?"":void 0},s,{ref:i,onClick:O(s.onClick,p=>{p.currentTarget.focus()}),onPointerDown:O(s.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(C(),a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:O(s.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&S(p.key),!(v&&p.key===" ")&&Ze.includes(p.key)&&(C(),p.preventDefault())})})))}),ct="SelectValue",st=e.forwardRef((o,c)=>{const{__scopeSelect:t,className:r,style:s,children:f,placeholder:a="",...l}=o,i=z(ct,t),{onValueNodeHasChildrenChange:u}=i,h=f!==void 0,S=j(c,i.onValueNodeChange);return oe(()=>{u(h)},[u,h]),e.createElement(K.span,I({},l,{ref:S,style:{pointerEvents:"none"}}),_e(i.value)?e.createElement(e.Fragment,null,a):f)}),lt=e.forwardRef((o,c)=>{const{__scopeSelect:t,children:r,...s}=o;return e.createElement(K.span,I({"aria-hidden":!0},s,{ref:c}),r||"▼")}),Z="SelectContent",it=e.forwardRef((o,c)=>{const t=z(Z,o.__scopeSelect),[r,s]=e.useState();if(oe(()=>{s(new DocumentFragment)},[]),!t.open){const f=r;return f?Ce.createPortal(e.createElement(Te,{scope:o.__scopeSelect},e.createElement(se.Slot,{scope:o.__scopeSelect},e.createElement("div",null,o.children))),f):null}return e.createElement(dt,I({},o,{ref:c}))}),B=10,[Te,le]=J(Z),dt=e.forwardRef((o,c)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:f,onPointerDownOutside:a,side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y,...m}=o,n=z(Z,t),[g,Q]=e.useState(null),[D,ee]=e.useState(null),T=j(c,d=>Q(d)),[R,q]=e.useState(null),[G,U]=e.useState(null),k=ge(t),[L,F]=e.useState(!1),P=e.useRef(!1);e.useEffect(()=>{if(g)return He(g)},[g]),Be();const A=e.useCallback(d=>{const[b,..._]=k().map(x=>x.ref.current),[w]=_.slice(-1),$=document.activeElement;for(const x of d)if(x===$||(x==null||x.scrollIntoView({block:"nearest"}),x===b&&D&&(D.scrollTop=0),x===w&&D&&(D.scrollTop=D.scrollHeight),x==null||x.focus(),document.activeElement!==$))return},[k,D]),H=e.useCallback(()=>A([R,g]),[A,R,g]);e.useEffect(()=>{L&&H()},[L,H]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=n;e.useEffect(()=>{if(g){let d={x:0,y:0};const b=w=>{var $,x,M,V;d={x:Math.abs(Math.round(w.pageX)-(($=(x=W.current)===null||x===void 0?void 0:x.x)!==null&&$!==void 0?$:0)),y:Math.abs(Math.round(w.pageY)-((M=(V=W.current)===null||V===void 0?void 0:V.y)!==null&&M!==void 0?M:0))}},_=w=>{d.x<=10&&d.y<=10?w.preventDefault():g.contains(w.target)||Y(!1),document.removeEventListener("pointermove",b),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_,{capture:!0})}}},[g,Y,W]),e.useEffect(()=>{const d=()=>Y(!1);return window.addEventListener("blur",d),window.addEventListener("resize",d),()=>{window.removeEventListener("blur",d),window.removeEventListener("resize",d)}},[Y]);const[ie,ne]=Re(d=>{const b=k().filter($=>!$.disabled),_=b.find($=>$.ref.current===document.activeElement),w=Ne(b,d,_);w&&setTimeout(()=>w.ref.current.focus())}),de=e.useCallback((d,b,_)=>{const w=!P.current&&!_;(n.value!==void 0&&n.value===b||w)&&(q(d),w&&(P.current=!0))},[n.value]),fe=e.useCallback(()=>g==null?void 0:g.focus(),[g]),X=e.useCallback((d,b,_)=>{const w=!P.current&&!_;(n.value!==void 0&&n.value===b||w)&&U(d)},[n.value]),re=r==="popper"?be:ft,te=re===be?{side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y}:{};return e.createElement(Te,{scope:t,content:g,viewport:D,onViewportChange:ee,itemRefCallback:de,selectedItem:R,onItemLeave:fe,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:G,position:r,isPositioned:L,searchRef:ie},e.createElement(Le,{as:De,allowPinchZoom:!0},e.createElement(Fe,{asChild:!0,trapped:n.open,onMountAutoFocus:d=>{d.preventDefault()},onUnmountAutoFocus:O(s,d=>{var b;(b=n.trigger)===null||b===void 0||b.focus({preventScroll:!0}),d.preventDefault()})},e.createElement(Ae,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:()=>n.onOpenChange(!1)},e.createElement(re,I({role:"listbox",id:n.contentId,"data-state":n.open?"open":"closed",dir:n.dir,onContextMenu:d=>d.preventDefault()},m,te,{onPlaced:()=>F(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:O(m.onKeyDown,d=>{const b=d.ctrlKey||d.altKey||d.metaKey;if(d.key==="Tab"&&d.preventDefault(),!b&&d.key.length===1&&ne(d.key),["ArrowUp","ArrowDown","Home","End"].includes(d.key)){let w=k().filter($=>!$.disabled).map($=>$.ref.current);if(["ArrowUp","End"].includes(d.key)&&(w=w.slice().reverse()),["ArrowUp","ArrowDown"].includes(d.key)){const $=d.target,x=w.indexOf($);w=w.slice(x+1)}setTimeout(()=>A(w)),d.preventDefault()}})}))))))}),ft=e.forwardRef((o,c)=>{const{__scopeSelect:t,onPlaced:r,...s}=o,f=z(Z,t),a=le(Z,t),[l,i]=e.useState(null),[u,h]=e.useState(null),S=j(c,T=>h(T)),E=ge(t),C=e.useRef(!1),p=e.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:m,focusSelectedItem:n}=a,g=e.useCallback(()=>{if(f.trigger&&f.valueNode&&l&&u&&v&&y&&m){const T=f.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),q=f.valueNode.getBoundingClientRect(),G=m.getBoundingClientRect();if(f.dir!=="rtl"){const $=G.left-R.left,x=q.left-$,M=T.left-x,V=T.width+M,ue=Math.max(V,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=V+"px",l.style.left=me+"px"}else{const $=R.right-G.right,x=window.innerWidth-q.right-$,M=window.innerWidth-T.right-x,V=T.width+M,ue=Math.max(V,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=V+"px",l.style.right=me+"px"}const U=E(),k=window.innerHeight-B*2,L=v.scrollHeight,F=window.getComputedStyle(u),P=parseInt(F.borderTopWidth,10),A=parseInt(F.paddingTop,10),H=parseInt(F.borderBottomWidth,10),Y=parseInt(F.paddingBottom,10),W=P+A+L+Y+H,ie=Math.min(y.offsetHeight*5,W),ne=window.getComputedStyle(v),de=parseInt(ne.paddingTop,10),fe=parseInt(ne.paddingBottom,10),X=T.top+T.height/2-B,re=k-X,te=y.offsetHeight/2,d=y.offsetTop+te,b=P+A+d,_=W-b;if(b<=X){const $=y===U[U.length-1].ref.current;l.style.bottom="0px";const x=u.clientHeight-v.offsetTop-v.offsetHeight,M=Math.max(re,te+($?fe:0)+x+H),V=b+M;l.style.height=V+"px"}else{const $=y===U[0].ref.current;l.style.top="0px";const M=Math.max(X,P+v.offsetTop+($?de:0)+te)+_;l.style.height=M+"px",v.scrollTop=b-X+v.offsetTop}l.style.margin=`${B}px 0`,l.style.minHeight=ie+"px",l.style.maxHeight=k+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,l,u,v,y,m,f.dir,r]);oe(()=>g(),[g]);const[Q,D]=e.useState();oe(()=>{u&&D(window.getComputedStyle(u).zIndex)},[u]);const ee=e.useCallback(T=>{T&&p.current===!0&&(g(),n==null||n(),p.current=!1)},[g,n]);return e.createElement(ut,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:C,onScrollButtonChange:ee},e.createElement("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Q}},e.createElement(K.div,I({},s,{ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}}))))}),be=e.forwardRef((o,c)=>{const{__scopeSelect:t,align:r="start",collisionPadding:s=B,...f}=o,a=$e(t);return e.createElement(Ke,I({},a,f,{ref:c,align:r,collisionPadding:s,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ut,pt]=J(Z,{}),we="SelectViewport",mt=e.forwardRef((o,c)=>{const{__scopeSelect:t,...r}=o,s=le(we,t),f=pt(we,t),a=j(c,s.onViewportChange),l=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),e.createElement(se.Slot,{scope:t},e.createElement(K.div,I({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:O(r.onScroll,i=>{const u=i.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&h){const E=Math.abs(l.current-u.scrollTop);if(E>0){const C=window.innerHeight-B*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y0?g:0,h.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),vt="SelectGroup",[ht,ro]=J(vt),gt=e.forwardRef((o,c)=>{const{__scopeSelect:t,...r}=o,s=he();return e.createElement(ht,{scope:t,id:s},e.createElement(K.div,I({role:"group","aria-labelledby":s},r,{ref:c})))}),ve="SelectItem",[$t,xt]=J(ve),yt=e.forwardRef((o,c)=>{const{__scopeSelect:t,value:r,disabled:s=!1,textValue:f,...a}=o,l=z(ve,t),i=le(ve,t),u=l.value===r,[h,S]=e.useState(f??""),[E,C]=e.useState(!1),p=j(c,m=>{var n;return(n=i.itemRefCallback)===null||n===void 0?void 0:n.call(i,m,r,s)}),v=he(),y=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.createElement($t,{scope:t,value:r,disabled:s,textId:v,isSelected:u,onItemTextChange:e.useCallback(m=>{S(n=>{var g;return n||((g=m==null?void 0:m.textContent)!==null&&g!==void 0?g:"").trim()})},[])},e.createElement(se.ItemSlot,{scope:t,value:r,disabled:s,textValue:h},e.createElement(K.div,I({role:"option","aria-labelledby":v,"data-highlighted":E?"":void 0,"aria-selected":u&&E,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},a,{ref:p,onFocus:O(a.onFocus,()=>C(!0)),onBlur:O(a.onBlur,()=>C(!1)),onPointerUp:O(a.onPointerUp,y),onPointerMove:O(a.onPointerMove,m=>{if(s){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}else m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(a.onPointerLeave,m=>{if(m.currentTarget===document.activeElement){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}}),onKeyDown:O(a.onKeyDown,m=>{var n;((n=i.searchRef)===null||n===void 0?void 0:n.current)!==""&&m.key===" "||(Je.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})}))))}),ae="SelectItemText",bt=e.forwardRef((o,c)=>{const{__scopeSelect:t,className:r,style:s,...f}=o,a=z(ae,t),l=le(ae,t),i=xt(ae,t),u=ot(ae,t),[h,S]=e.useState(null),E=j(c,m=>S(m),i.onItemTextChange,m=>{var n;return(n=l.itemTextRefCallback)===null||n===void 0?void 0:n.call(l,m,i.value,i.disabled)}),C=h==null?void 0:h.textContent,p=e.useMemo(()=>e.createElement("option",{key:i.value,value:i.value,disabled:i.disabled},C),[i.disabled,i.value,C]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=u;return oe(()=>(v(p),()=>y(p)),[v,y,p]),e.createElement(e.Fragment,null,e.createElement(K.span,I({id:i.textId},f,{ref:E})),i.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ce.createPortal(f.children,a.valueNode):null)});function _e(o){return o===""||o===void 0}const Ie=e.forwardRef((o,c)=>{const{value:t,...r}=o,s=e.useRef(null),f=j(c,s),a=qe(t);return e.useEffect(()=>{const l=s.current,i=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(i,"value").set;if(a!==t&&h){const S=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(S)}},[a,t]),e.createElement(Ue,{asChild:!0},e.createElement("select",I({},r,{ref:f,defaultValue:t})))});Ie.displayName="BubbleSelect";function Re(o){const c=Me(o),t=e.useRef(""),r=e.useRef(0),s=e.useCallback(a=>{const l=t.current+a;c(l),function i(u){t.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>i(""),1e3))}(l)},[c]),f=e.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,s,f]}function Ne(o,c,t){const s=c.length>1&&Array.from(c).every(u=>u===c[0])?c[0]:c,f=t?o.indexOf(t):-1;let a=wt(o,Math.max(f,0));s.length===1&&(a=a.filter(u=>u!==t));const i=a.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return i!==t?i:void 0}function wt(o,c){return o.map((t,r)=>o[(c+r)%o.length])}const St=nt,Ct=at,Et=st,Pt=lt,Tt=it,_t=mt,It=gt,Rt=yt,Nt=bt;var Ot="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tt fyvr12rt fyvr11nj",Dt="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12wk fyvr12wl fyvr12we fyvr12wf fyvr11h0 fyvr11jw fyvr11ko fyvr12uz fyvr12uv fyvr12rt fyvr12vt fyvr12vj",Mt="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rt fyvr118c fyvr11jw fyvr11n2 fyvr12uz",Vt=Xe({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const kt=e.forwardRef(({children:o,className:c,...t},r)=>N.jsx(Rt,{className:Pe(Dt,c),...t,ref:r,children:N.jsx(Nt,{children:o})})),Se=e.forwardRef((o,c)=>{const{borderRadius:t="md",disabled:r=!1,id:s,label:f="",description:a,labelLocation:l="hidden",name:i,options:u,placeholder:h,...S}=o;return N.jsx(Ge,{disabled:r,display:"grid",id:s??i,label:f,labelLocation:l,description:a,whiteSpace:"nowrap",children:N.jsxs(St,{disabled:r,name:i,...S,children:[N.jsxs(Ct,{id:s??i,className:Pe(Mt,Vt({borderRadius:t})),ref:c,children:[N.jsx(Et,{placeholder:h}),N.jsx(ze,{as:Pt,display:"inline-flex",children:N.jsx(Ye,{})})]}),N.jsx(Tt,{className:Ot,children:N.jsx(_t,{children:N.jsx(It,{children:u.map(({value:E,label:C,...p})=>N.jsx(kt,{value:E,...p,children:C},E))})})})]})})});try{Se.displayName="Select",Se.__docgenInfo={description:"",displayName:"Select",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}}}}}catch{}export{Se as S}; -//# sourceMappingURL=Select-a2de057d.js.map +import{j as N}from"./jsx-runtime-1caa8f64.js";import{a as Oe,$ as j,_ as I,c as K,b as De}from"./index-bff3e5ca.js";import{r as e}from"./index-1cdf6ce0.js";import{r as Ce}from"./index-a01a9712.js";import{a as xe,c as O,$ as oe,b as Ve}from"./index-ed6c0076.js";import{$ as Me}from"./index-af546338.js";import{$ as ke}from"./index-cb7a0887.js";import{$ as Ae}from"./index-c484f70b.js";import{h as He,a as Be,$ as Le,b as Fe}from"./Combination-b274f0b7.js";import{$ as he}from"./index-dad7d30c.js";import{$ as Ee,a as We,b as je,c as Ke}from"./index-6966b6f4.js";import{$ as qe}from"./index-b65dbec4.js";import{$ as Ue}from"./index-7e536d32.js";import{c as Pe,B as ze}from"./Box-e4a86556.js";import{F as Ge}from"./Field-cc1005d3.js";import{i as Ye}from"./WarningIcon-c4815a2d.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as Xe}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";function ye(o,[a,t]){return Math.min(t,Math.max(a,o))}const Ze=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],ae="Select",[se,ge,Qe]=Me(ae),[J,no]=Oe(ae,[Qe,Ee]),$e=Ee(),[et,z]=J(ae),[tt,ot]=J(ae),nt=o=>{const{__scopeSelect:a,children:t,open:r,defaultOpen:s,onOpenChange:f,value:c,defaultValue:l,onValueChange:i,dir:u,name:h,autoComplete:S,disabled:E,required:C}=o,p=$e(a),[v,y]=e.useState(null),[m,n]=e.useState(null),[g,Q]=e.useState(!1),D=ke(u),[ee=!1,T]=xe({prop:r,defaultProp:s,onChange:f}),[R,q]=xe({prop:c,defaultProp:l,onChange:i}),G=e.useRef(null),U=v?!!v.closest("form"):!0,[k,L]=e.useState(new Set),F=Array.from(k).map(P=>P.props.value).join(";");return e.createElement(We,p,e.createElement(et,{required:C,scope:a,trigger:v,onTriggerChange:y,valueNode:m,onValueNodeChange:n,valueNodeHasChildren:g,onValueNodeHasChildrenChange:Q,contentId:he(),value:R,onValueChange:q,open:ee,onOpenChange:T,dir:D,triggerPointerDownPosRef:G,disabled:E},e.createElement(se.Provider,{scope:a},e.createElement(tt,{scope:o.__scopeSelect,onNativeOptionAdd:e.useCallback(P=>{L(A=>new Set(A).add(P))},[]),onNativeOptionRemove:e.useCallback(P=>{L(A=>{const H=new Set(A);return H.delete(P),H})},[])},t)),U?e.createElement(Ie,{key:F,"aria-hidden":!0,required:C,tabIndex:-1,name:h,autoComplete:S,value:R,onChange:P=>q(P.target.value),disabled:E},R===void 0?e.createElement("option",{value:""}):null,Array.from(k)):null))},rt="SelectTrigger",ct=e.forwardRef((o,a)=>{const{__scopeSelect:t,disabled:r=!1,...s}=o,f=$e(t),c=z(rt,t),l=c.disabled||r,i=j(a,c.onTriggerChange),u=ge(t),[h,S,E]=Re(p=>{const v=u().filter(n=>!n.disabled),y=v.find(n=>n.value===c.value),m=Ne(v,p,y);m!==void 0&&c.onValueChange(m.value)}),C=()=>{l||(c.onOpenChange(!0),E())};return e.createElement(je,I({asChild:!0},f),e.createElement(K.button,I({type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":_e(c.value)?"":void 0},s,{ref:i,onClick:O(s.onClick,p=>{p.currentTarget.focus()}),onPointerDown:O(s.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(C(),c.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:O(s.onKeyDown,p=>{const v=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&S(p.key),!(v&&p.key===" ")&&Ze.includes(p.key)&&(C(),p.preventDefault())})})))}),at="SelectValue",st=e.forwardRef((o,a)=>{const{__scopeSelect:t,className:r,style:s,children:f,placeholder:c="",...l}=o,i=z(at,t),{onValueNodeHasChildrenChange:u}=i,h=f!==void 0,S=j(a,i.onValueNodeChange);return oe(()=>{u(h)},[u,h]),e.createElement(K.span,I({},l,{ref:S,style:{pointerEvents:"none"}}),_e(i.value)?e.createElement(e.Fragment,null,c):f)}),lt=e.forwardRef((o,a)=>{const{__scopeSelect:t,children:r,...s}=o;return e.createElement(K.span,I({"aria-hidden":!0},s,{ref:a}),r||"▼")}),Z="SelectContent",it=e.forwardRef((o,a)=>{const t=z(Z,o.__scopeSelect),[r,s]=e.useState();if(oe(()=>{s(new DocumentFragment)},[]),!t.open){const f=r;return f?Ce.createPortal(e.createElement(Te,{scope:o.__scopeSelect},e.createElement(se.Slot,{scope:o.__scopeSelect},e.createElement("div",null,o.children))),f):null}return e.createElement(dt,I({},o,{ref:a}))}),B=10,[Te,le]=J(Z),dt=e.forwardRef((o,a)=>{const{__scopeSelect:t,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:f,onPointerDownOutside:c,side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y,...m}=o,n=z(Z,t),[g,Q]=e.useState(null),[D,ee]=e.useState(null),T=j(a,d=>Q(d)),[R,q]=e.useState(null),[G,U]=e.useState(null),k=ge(t),[L,F]=e.useState(!1),P=e.useRef(!1);e.useEffect(()=>{if(g)return He(g)},[g]),Be();const A=e.useCallback(d=>{const[b,..._]=k().map(x=>x.ref.current),[w]=_.slice(-1),$=document.activeElement;for(const x of d)if(x===$||(x==null||x.scrollIntoView({block:"nearest"}),x===b&&D&&(D.scrollTop=0),x===w&&D&&(D.scrollTop=D.scrollHeight),x==null||x.focus(),document.activeElement!==$))return},[k,D]),H=e.useCallback(()=>A([R,g]),[A,R,g]);e.useEffect(()=>{L&&H()},[L,H]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=n;e.useEffect(()=>{if(g){let d={x:0,y:0};const b=w=>{var $,x,V,M;d={x:Math.abs(Math.round(w.pageX)-(($=(x=W.current)===null||x===void 0?void 0:x.x)!==null&&$!==void 0?$:0)),y:Math.abs(Math.round(w.pageY)-((V=(M=W.current)===null||M===void 0?void 0:M.y)!==null&&V!==void 0?V:0))}},_=w=>{d.x<=10&&d.y<=10?w.preventDefault():g.contains(w.target)||Y(!1),document.removeEventListener("pointermove",b),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_,{capture:!0})}}},[g,Y,W]),e.useEffect(()=>{const d=()=>Y(!1);return window.addEventListener("blur",d),window.addEventListener("resize",d),()=>{window.removeEventListener("blur",d),window.removeEventListener("resize",d)}},[Y]);const[ie,ne]=Re(d=>{const b=k().filter($=>!$.disabled),_=b.find($=>$.ref.current===document.activeElement),w=Ne(b,d,_);w&&setTimeout(()=>w.ref.current.focus())}),de=e.useCallback((d,b,_)=>{const w=!P.current&&!_;(n.value!==void 0&&n.value===b||w)&&(q(d),w&&(P.current=!0))},[n.value]),fe=e.useCallback(()=>g==null?void 0:g.focus(),[g]),X=e.useCallback((d,b,_)=>{const w=!P.current&&!_;(n.value!==void 0&&n.value===b||w)&&U(d)},[n.value]),re=r==="popper"?be:ft,te=re===be?{side:l,sideOffset:i,align:u,alignOffset:h,arrowPadding:S,collisionBoundary:E,collisionPadding:C,sticky:p,hideWhenDetached:v,avoidCollisions:y}:{};return e.createElement(Te,{scope:t,content:g,viewport:D,onViewportChange:ee,itemRefCallback:de,selectedItem:R,onItemLeave:fe,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:G,position:r,isPositioned:L,searchRef:ie},e.createElement(Le,{as:De,allowPinchZoom:!0},e.createElement(Fe,{asChild:!0,trapped:n.open,onMountAutoFocus:d=>{d.preventDefault()},onUnmountAutoFocus:O(s,d=>{var b;(b=n.trigger)===null||b===void 0||b.focus({preventScroll:!0}),d.preventDefault()})},e.createElement(Ae,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:c,onFocusOutside:d=>d.preventDefault(),onDismiss:()=>n.onOpenChange(!1)},e.createElement(re,I({role:"listbox",id:n.contentId,"data-state":n.open?"open":"closed",dir:n.dir,onContextMenu:d=>d.preventDefault()},m,te,{onPlaced:()=>F(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:O(m.onKeyDown,d=>{const b=d.ctrlKey||d.altKey||d.metaKey;if(d.key==="Tab"&&d.preventDefault(),!b&&d.key.length===1&&ne(d.key),["ArrowUp","ArrowDown","Home","End"].includes(d.key)){let w=k().filter($=>!$.disabled).map($=>$.ref.current);if(["ArrowUp","End"].includes(d.key)&&(w=w.slice().reverse()),["ArrowUp","ArrowDown"].includes(d.key)){const $=d.target,x=w.indexOf($);w=w.slice(x+1)}setTimeout(()=>A(w)),d.preventDefault()}})}))))))}),ft=e.forwardRef((o,a)=>{const{__scopeSelect:t,onPlaced:r,...s}=o,f=z(Z,t),c=le(Z,t),[l,i]=e.useState(null),[u,h]=e.useState(null),S=j(a,T=>h(T)),E=ge(t),C=e.useRef(!1),p=e.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:m,focusSelectedItem:n}=c,g=e.useCallback(()=>{if(f.trigger&&f.valueNode&&l&&u&&v&&y&&m){const T=f.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),q=f.valueNode.getBoundingClientRect(),G=m.getBoundingClientRect();if(f.dir!=="rtl"){const $=G.left-R.left,x=q.left-$,V=T.left-x,M=T.width+V,ue=Math.max(M,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=M+"px",l.style.left=me+"px"}else{const $=R.right-G.right,x=window.innerWidth-q.right-$,V=window.innerWidth-T.right-x,M=T.width+V,ue=Math.max(M,R.width),pe=window.innerWidth-B,me=ye(x,[B,pe-ue]);l.style.minWidth=M+"px",l.style.right=me+"px"}const U=E(),k=window.innerHeight-B*2,L=v.scrollHeight,F=window.getComputedStyle(u),P=parseInt(F.borderTopWidth,10),A=parseInt(F.paddingTop,10),H=parseInt(F.borderBottomWidth,10),Y=parseInt(F.paddingBottom,10),W=P+A+L+Y+H,ie=Math.min(y.offsetHeight*5,W),ne=window.getComputedStyle(v),de=parseInt(ne.paddingTop,10),fe=parseInt(ne.paddingBottom,10),X=T.top+T.height/2-B,re=k-X,te=y.offsetHeight/2,d=y.offsetTop+te,b=P+A+d,_=W-b;if(b<=X){const $=y===U[U.length-1].ref.current;l.style.bottom="0px";const x=u.clientHeight-v.offsetTop-v.offsetHeight,V=Math.max(re,te+($?fe:0)+x+H),M=b+V;l.style.height=M+"px"}else{const $=y===U[0].ref.current;l.style.top="0px";const V=Math.max(X,P+v.offsetTop+($?de:0)+te)+_;l.style.height=V+"px",v.scrollTop=b-X+v.offsetTop}l.style.margin=`${B}px 0`,l.style.minHeight=ie+"px",l.style.maxHeight=k+"px",r==null||r(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,l,u,v,y,m,f.dir,r]);oe(()=>g(),[g]);const[Q,D]=e.useState();oe(()=>{u&&D(window.getComputedStyle(u).zIndex)},[u]);const ee=e.useCallback(T=>{T&&p.current===!0&&(g(),n==null||n(),p.current=!1)},[g,n]);return e.createElement(ut,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:C,onScrollButtonChange:ee},e.createElement("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Q}},e.createElement(K.div,I({},s,{ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}}))))}),be=e.forwardRef((o,a)=>{const{__scopeSelect:t,align:r="start",collisionPadding:s=B,...f}=o,c=$e(t);return e.createElement(Ke,I({},c,f,{ref:a,align:r,collisionPadding:s,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ut,pt]=J(Z,{}),we="SelectViewport",mt=e.forwardRef((o,a)=>{const{__scopeSelect:t,...r}=o,s=le(we,t),f=pt(we,t),c=j(a,s.onViewportChange),l=e.useRef(0);return e.createElement(e.Fragment,null,e.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),e.createElement(se.Slot,{scope:t},e.createElement(K.div,I({"data-radix-select-viewport":"",role:"presentation"},r,{ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:O(r.onScroll,i=>{const u=i.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&h){const E=Math.abs(l.current-u.scrollTop);if(E>0){const C=window.innerHeight-B*2,p=parseFloat(h.style.minHeight),v=parseFloat(h.style.height),y=Math.max(p,v);if(y0?g:0,h.style.justifyContent="flex-end")}}}l.current=u.scrollTop})}))))}),vt="SelectGroup",[ht,ro]=J(vt),gt=e.forwardRef((o,a)=>{const{__scopeSelect:t,...r}=o,s=he();return e.createElement(ht,{scope:t,id:s},e.createElement(K.div,I({role:"group","aria-labelledby":s},r,{ref:a})))}),ve="SelectItem",[$t,xt]=J(ve),yt=e.forwardRef((o,a)=>{const{__scopeSelect:t,value:r,disabled:s=!1,textValue:f,...c}=o,l=z(ve,t),i=le(ve,t),u=l.value===r,[h,S]=e.useState(f??""),[E,C]=e.useState(!1),p=j(a,m=>{var n;return(n=i.itemRefCallback)===null||n===void 0?void 0:n.call(i,m,r,s)}),v=he(),y=()=>{s||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.createElement($t,{scope:t,value:r,disabled:s,textId:v,isSelected:u,onItemTextChange:e.useCallback(m=>{S(n=>{var g;return n||((g=m==null?void 0:m.textContent)!==null&&g!==void 0?g:"").trim()})},[])},e.createElement(se.ItemSlot,{scope:t,value:r,disabled:s,textValue:h},e.createElement(K.div,I({role:"option","aria-labelledby":v,"data-highlighted":E?"":void 0,"aria-selected":u&&E,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1},c,{ref:p,onFocus:O(c.onFocus,()=>C(!0)),onBlur:O(c.onBlur,()=>C(!1)),onPointerUp:O(c.onPointerUp,y),onPointerMove:O(c.onPointerMove,m=>{if(s){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}else m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(c.onPointerLeave,m=>{if(m.currentTarget===document.activeElement){var n;(n=i.onItemLeave)===null||n===void 0||n.call(i)}}),onKeyDown:O(c.onKeyDown,m=>{var n;((n=i.searchRef)===null||n===void 0?void 0:n.current)!==""&&m.key===" "||(Je.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})}))))}),ce="SelectItemText",bt=e.forwardRef((o,a)=>{const{__scopeSelect:t,className:r,style:s,...f}=o,c=z(ce,t),l=le(ce,t),i=xt(ce,t),u=ot(ce,t),[h,S]=e.useState(null),E=j(a,m=>S(m),i.onItemTextChange,m=>{var n;return(n=l.itemTextRefCallback)===null||n===void 0?void 0:n.call(l,m,i.value,i.disabled)}),C=h==null?void 0:h.textContent,p=e.useMemo(()=>e.createElement("option",{key:i.value,value:i.value,disabled:i.disabled},C),[i.disabled,i.value,C]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=u;return oe(()=>(v(p),()=>y(p)),[v,y,p]),e.createElement(e.Fragment,null,e.createElement(K.span,I({id:i.textId},f,{ref:E})),i.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Ce.createPortal(f.children,c.valueNode):null)});function _e(o){return o===""||o===void 0}const Ie=e.forwardRef((o,a)=>{const{value:t,...r}=o,s=e.useRef(null),f=j(a,s),c=qe(t);return e.useEffect(()=>{const l=s.current,i=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(i,"value").set;if(c!==t&&h){const S=new Event("change",{bubbles:!0});h.call(l,t),l.dispatchEvent(S)}},[c,t]),e.createElement(Ue,{asChild:!0},e.createElement("select",I({},r,{ref:f,defaultValue:t})))});Ie.displayName="BubbleSelect";function Re(o){const a=Ve(o),t=e.useRef(""),r=e.useRef(0),s=e.useCallback(c=>{const l=t.current+c;a(l),function i(u){t.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>i(""),1e3))}(l)},[a]),f=e.useCallback(()=>{t.current="",window.clearTimeout(r.current)},[]);return e.useEffect(()=>()=>window.clearTimeout(r.current),[]),[t,s,f]}function Ne(o,a,t){const s=a.length>1&&Array.from(a).every(u=>u===a[0])?a[0]:a,f=t?o.indexOf(t):-1;let c=wt(o,Math.max(f,0));s.length===1&&(c=c.filter(u=>u!==t));const i=c.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return i!==t?i:void 0}function wt(o,a){return o.map((t,r)=>o[(a+r)%o.length])}const St=nt,Ct=ct,Et=st,Pt=lt,Tt=it,_t=mt,It=gt,Rt=yt,Nt=bt;var Ot="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tt fyvr12rt fyvr11nj",Dt="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12wk fyvr12wl fyvr12we fyvr12wf fyvr11h0 fyvr11jw fyvr11ko fyvr12uz fyvr12uv fyvr12rt fyvr12vt fyvr12vj",Vt="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rt fyvr118c fyvr11jw fyvr11n2 fyvr12uz",Mt=Xe({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const kt=e.forwardRef(({children:o,className:a,...t},r)=>N.jsx(Rt,{className:Pe(Dt,a),...t,ref:r,children:N.jsx(Nt,{children:o})})),Se=e.forwardRef((o,a)=>{const{borderRadius:t="md",disabled:r=!1,id:s,label:f="",description:c,labelLocation:l="hidden",name:i,options:u,placeholder:h,...S}=o;return N.jsx(Ge,{disabled:r,display:"grid",id:s??i,label:f,labelLocation:l,description:c,whiteSpace:"nowrap",children:N.jsxs(St,{disabled:r,name:i,...S,children:[N.jsxs(Ct,{id:s??i,className:Pe(Vt,Mt({borderRadius:t})),ref:a,children:[N.jsx(Et,{placeholder:h}),N.jsx(ze,{as:Pt,display:"inline-flex",children:N.jsx(Ye,{})})]}),N.jsx(Tt,{className:Ot,children:N.jsx(_t,{children:N.jsx(It,{children:u.map(({value:E,label:C,...p})=>N.jsx(kt,{value:E,...p,children:C},E))})})})]})})});try{Se.displayName="Select",Se.__docgenInfo={description:"",displayName:"Select",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"xs"'}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}}}}}catch{}export{Se as S}; diff --git a/assets/Select-a2de057d.js.map b/assets/Select-a2de057d.js.map deleted file mode 100644 index bc11d6b21..000000000 --- a/assets/Select-a2de057d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Select-a2de057d.js","sources":["../../node_modules/.pnpm/@radix-ui+number@1.0.1/node_modules/@radix-ui/number/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-select@2.0.0_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-select/dist/index.mjs","../../src/components/Select/Select.tsx"],"sourcesContent":["function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\n\n\n\n\nexport {$ae6933e535247d3d$export$7d15b64cf5a3a4c4 as clamp};\n//# sourceMappingURL=index.mjs.map\n","import $01b9c$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $01b9c$useState, useRef as $01b9c$useRef, createElement as $01b9c$createElement, useCallback as $01b9c$useCallback, forwardRef as $01b9c$forwardRef, Fragment as $01b9c$Fragment, useEffect as $01b9c$useEffect, useMemo as $01b9c$useMemo} from \"react\";\nimport {createPortal as $01b9c$createPortal} from \"react-dom\";\nimport {clamp as $01b9c$clamp} from \"@radix-ui/number\";\nimport {composeEventHandlers as $01b9c$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $01b9c$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $01b9c$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $01b9c$createContextScope} from \"@radix-ui/react-context\";\nimport {useDirection as $01b9c$useDirection} from \"@radix-ui/react-direction\";\nimport {DismissableLayer as $01b9c$DismissableLayer} from \"@radix-ui/react-dismissable-layer\";\nimport {useFocusGuards as $01b9c$useFocusGuards} from \"@radix-ui/react-focus-guards\";\nimport {FocusScope as $01b9c$FocusScope} from \"@radix-ui/react-focus-scope\";\nimport {useId as $01b9c$useId} from \"@radix-ui/react-id\";\nimport {createPopperScope as $01b9c$createPopperScope, Root as $01b9c$Root, Anchor as $01b9c$Anchor, Content as $01b9c$Content, Arrow as $01b9c$Arrow} from \"@radix-ui/react-popper\";\nimport {Portal as $01b9c$Portal} from \"@radix-ui/react-portal\";\nimport {Primitive as $01b9c$Primitive} from \"@radix-ui/react-primitive\";\nimport {Slot as $01b9c$Slot} from \"@radix-ui/react-slot\";\nimport {useCallbackRef as $01b9c$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useControllableState as $01b9c$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useLayoutEffect as $01b9c$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {usePrevious as $01b9c$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {VisuallyHidden as $01b9c$VisuallyHidden} from \"@radix-ui/react-visually-hidden\";\nimport {hideOthers as $01b9c$hideOthers} from \"aria-hidden\";\nimport {RemoveScroll as $01b9c$RemoveScroll} from \"react-remove-scroll\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst $cc7e05a45900e73f$var$OPEN_KEYS = [\n ' ',\n 'Enter',\n 'ArrowUp',\n 'ArrowDown'\n];\nconst $cc7e05a45900e73f$var$SELECTION_KEYS = [\n ' ',\n 'Enter'\n];\n/* -------------------------------------------------------------------------------------------------\n * Select\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SELECT_NAME = 'Select';\nconst [$cc7e05a45900e73f$var$Collection, $cc7e05a45900e73f$var$useCollection, $cc7e05a45900e73f$var$createCollectionScope] = $01b9c$createCollection($cc7e05a45900e73f$var$SELECT_NAME);\nconst [$cc7e05a45900e73f$var$createSelectContext, $cc7e05a45900e73f$export$286727a75dc039bd] = $01b9c$createContextScope($cc7e05a45900e73f$var$SELECT_NAME, [\n $cc7e05a45900e73f$var$createCollectionScope,\n $01b9c$createPopperScope\n]);\nconst $cc7e05a45900e73f$var$usePopperScope = $01b9c$createPopperScope();\nconst [$cc7e05a45900e73f$var$SelectProvider, $cc7e05a45900e73f$var$useSelectContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$SELECT_NAME);\nconst [$cc7e05a45900e73f$var$SelectNativeOptionsProvider, $cc7e05a45900e73f$var$useSelectNativeOptionsContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$SELECT_NAME);\nconst $cc7e05a45900e73f$export$ef9b1a59e592288f = (props)=>{\n const { __scopeSelect: __scopeSelect , children: children , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange , dir: dir , name: name , autoComplete: autoComplete , disabled: disabled , required: required } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n const [trigger, setTrigger] = $01b9c$useState(null);\n const [valueNode, setValueNode] = $01b9c$useState(null);\n const [valueNodeHasChildren, setValueNodeHasChildren] = $01b9c$useState(false);\n const direction = $01b9c$useDirection(dir);\n const [open = false, setOpen] = $01b9c$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n const [value, setValue] = $01b9c$useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const triggerPointerDownPosRef = $01b9c$useRef(null); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = trigger ? Boolean(trigger.closest('form')) : true;\n const [nativeOptionsSet, setNativeOptionsSet] = $01b9c$useState(new Set()); // The native `select` only associates the correct default value if the corresponding\n // `option` is rendered as a child **at the same time** as itself.\n // Because it might take a few renders for our items to gather the information to build\n // the native `option`(s), we generate a key on the `select` to make sure React re-builds it\n // each time the options change.\n const nativeSelectKey = Array.from(nativeOptionsSet).map((option)=>option.props.value\n ).join(';');\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Root, popperScope, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectProvider, {\n required: required,\n scope: __scopeSelect,\n trigger: trigger,\n onTriggerChange: setTrigger,\n valueNode: valueNode,\n onValueNodeChange: setValueNode,\n valueNodeHasChildren: valueNodeHasChildren,\n onValueNodeHasChildrenChange: setValueNodeHasChildren,\n contentId: $01b9c$useId(),\n value: value,\n onValueChange: setValue,\n open: open,\n onOpenChange: setOpen,\n dir: direction,\n triggerPointerDownPosRef: triggerPointerDownPosRef,\n disabled: disabled\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.Provider, {\n scope: __scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectNativeOptionsProvider, {\n scope: props.__scopeSelect,\n onNativeOptionAdd: $01b9c$useCallback((option)=>{\n setNativeOptionsSet((prev)=>new Set(prev).add(option)\n );\n }, []),\n onNativeOptionRemove: $01b9c$useCallback((option)=>{\n setNativeOptionsSet((prev)=>{\n const optionsSet = new Set(prev);\n optionsSet.delete(option);\n return optionsSet;\n });\n }, [])\n }, children)), isFormControl ? /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$BubbleSelect, {\n key: nativeSelectKey,\n \"aria-hidden\": true,\n required: required,\n tabIndex: -1,\n name: name,\n autoComplete: autoComplete,\n value: value // enable form autofill\n ,\n onChange: (event)=>setValue(event.target.value)\n ,\n disabled: disabled\n }, value === undefined ? /*#__PURE__*/ $01b9c$createElement(\"option\", {\n value: \"\"\n }) : null, Array.from(nativeOptionsSet)) : null));\n};\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$ef9b1a59e592288f, {\n displayName: $cc7e05a45900e73f$var$SELECT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectTrigger\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$TRIGGER_NAME = 'SelectTrigger';\nconst $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , disabled: disabled = false , ...triggerProps } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$TRIGGER_NAME, __scopeSelect);\n const isDisabled = context.disabled || disabled;\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, context.onTriggerChange);\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const [searchRef, handleTypeaheadSearch, resetTypeahead] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{\n const enabledItems = getItems().filter((item)=>!item.disabled\n );\n const currentItem = enabledItems.find((item)=>item.value === context.value\n );\n const nextItem = $cc7e05a45900e73f$var$findNextItem(enabledItems, search, currentItem);\n if (nextItem !== undefined) context.onValueChange(nextItem.value);\n });\n const handleOpen = ()=>{\n if (!isDisabled) {\n context.onOpenChange(true); // reset typeahead when we open\n resetTypeahead();\n }\n };\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Anchor, $01b9c$babelruntimehelpersesmextends({\n asChild: true\n }, popperScope), /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.button, $01b9c$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"combobox\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open,\n \"aria-required\": context.required,\n \"aria-autocomplete\": \"none\",\n dir: context.dir,\n \"data-state\": context.open ? 'open' : 'closed',\n disabled: isDisabled,\n \"data-disabled\": isDisabled ? '' : undefined,\n \"data-placeholder\": $cc7e05a45900e73f$var$shouldShowPlaceholder(context.value) ? '' : undefined\n }, triggerProps, {\n ref: composedRefs // Enable compatibility with native label or custom `Label` \"click\" for Safari:\n ,\n onClick: $01b9c$composeEventHandlers(triggerProps.onClick, (event)=>{\n // Whilst browsers generally have no issue focusing the trigger when clicking\n // on a label, Safari seems to struggle with the fact that there's no `onClick`.\n // We force `focus` in this case. Note: this doesn't create any other side-effect\n // because we are preventing default in `onPointerDown` so effectively\n // this only runs for a label \"click\"\n event.currentTarget.focus();\n }),\n onPointerDown: $01b9c$composeEventHandlers(triggerProps.onPointerDown, (event)=>{\n // prevent implicit pointer capture\n // https://www.w3.org/TR/pointerevents3/#implicit-pointer-capture\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) target.releasePointerCapture(event.pointerId);\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (event.button === 0 && event.ctrlKey === false) {\n handleOpen();\n context.triggerPointerDownPosRef.current = {\n x: Math.round(event.pageX),\n y: Math.round(event.pageY)\n }; // prevent trigger from stealing focus from the active item after opening.\n event.preventDefault();\n }\n }),\n onKeyDown: $01b9c$composeEventHandlers(triggerProps.onKeyDown, (event)=>{\n const isTypingAhead = searchRef.current !== '';\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if (isTypingAhead && event.key === ' ') return;\n if ($cc7e05a45900e73f$var$OPEN_KEYS.includes(event.key)) {\n handleOpen();\n event.preventDefault();\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$3ac1e88a1c0b9f1, {\n displayName: $cc7e05a45900e73f$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectValue\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$VALUE_NAME = 'SelectValue';\nconst $cc7e05a45900e73f$export$e288731fd71264f0 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n // We ignore `className` and `style` as this part shouldn't be styled.\n const { __scopeSelect: __scopeSelect , className: className , style: style , children: children , placeholder: placeholder = '' , ...valueProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$VALUE_NAME, __scopeSelect);\n const { onValueNodeHasChildrenChange: onValueNodeHasChildrenChange } = context;\n const hasChildren = children !== undefined;\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, context.onValueNodeChange);\n $01b9c$useLayoutEffect(()=>{\n onValueNodeHasChildrenChange(hasChildren);\n }, [\n onValueNodeHasChildrenChange,\n hasChildren\n ]);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({}, valueProps, {\n ref: composedRefs // we don't want events from the portalled `SelectValue` children to bubble\n ,\n style: {\n pointerEvents: 'none'\n }\n }), $cc7e05a45900e73f$var$shouldShowPlaceholder(context.value) ? /*#__PURE__*/ $01b9c$createElement($01b9c$Fragment, null, placeholder) : children);\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$e288731fd71264f0, {\n displayName: $cc7e05a45900e73f$var$VALUE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectIcon\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ICON_NAME = 'SelectIcon';\nconst $cc7e05a45900e73f$export$99b400cabb58c515 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , children: children , ...iconProps } = props;\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, iconProps, {\n ref: forwardedRef\n }), children || '▼');\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$99b400cabb58c515, {\n displayName: $cc7e05a45900e73f$var$ICON_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectPortal\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$PORTAL_NAME = 'SelectPortal';\nconst $cc7e05a45900e73f$export$b2af6c9944296213 = (props)=>{\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Portal, $01b9c$babelruntimehelpersesmextends({\n asChild: true\n }, props));\n};\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$b2af6c9944296213, {\n displayName: $cc7e05a45900e73f$var$PORTAL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectContent\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$CONTENT_NAME = 'SelectContent';\nconst $cc7e05a45900e73f$export$c973a4b3cb86a03d = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, props.__scopeSelect);\n const [fragment, setFragment] = $01b9c$useState(); // setting the fragment in `useLayoutEffect` as `DocumentFragment` doesn't exist on the server\n $01b9c$useLayoutEffect(()=>{\n setFragment(new DocumentFragment());\n }, []);\n if (!context.open) {\n const frag = fragment;\n return frag ? /*#__PURE__*/ $01b9c$createPortal(/*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectContentProvider, {\n scope: props.__scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.Slot, {\n scope: props.__scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement(\"div\", null, props.children))), frag) : null;\n }\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectContentImpl, $01b9c$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$c973a4b3cb86a03d, {\n displayName: $cc7e05a45900e73f$var$CONTENT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectContentImpl\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$CONTENT_MARGIN = 10;\nconst [$cc7e05a45900e73f$var$SelectContentProvider, $cc7e05a45900e73f$var$useSelectContentContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$CONTENT_NAME);\nconst $cc7e05a45900e73f$var$CONTENT_IMPL_NAME = 'SelectContentImpl';\nconst $cc7e05a45900e73f$var$SelectContentImpl = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , position: position = 'item-aligned' , onCloseAutoFocus: onCloseAutoFocus , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , side: //\n // PopperContent props\n side , sideOffset: sideOffset , align: align , alignOffset: alignOffset , arrowPadding: arrowPadding , collisionBoundary: collisionBoundary , collisionPadding: collisionPadding , sticky: sticky , hideWhenDetached: hideWhenDetached , avoidCollisions: avoidCollisions , //\n ...contentProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);\n const [content, setContent] = $01b9c$useState(null);\n const [viewport, setViewport] = $01b9c$useState(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>setContent(node)\n );\n const [selectedItem, setSelectedItem] = $01b9c$useState(null);\n const [selectedItemText, setSelectedItemText] = $01b9c$useState(null);\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const [isPositioned, setIsPositioned] = $01b9c$useState(false);\n const firstValidItemFoundRef = $01b9c$useRef(false); // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n $01b9c$useEffect(()=>{\n if (content) return $01b9c$hideOthers(content);\n }, [\n content\n ]); // Make sure the whole tree has focus guards as our `Select` may be\n // the last element in the DOM (because of the `Portal`)\n $01b9c$useFocusGuards();\n const focusFirst = $01b9c$useCallback((candidates)=>{\n const [firstItem, ...restItems] = getItems().map((item)=>item.ref.current\n );\n const [lastItem] = restItems.slice(-1);\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate === null || candidate === void 0 || candidate.scrollIntoView({\n block: 'nearest'\n }); // viewport might have padding so scroll to its edges when focusing first/last items.\n if (candidate === firstItem && viewport) viewport.scrollTop = 0;\n if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;\n candidate === null || candidate === void 0 || candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n }, [\n getItems,\n viewport\n ]);\n const focusSelectedItem = $01b9c$useCallback(()=>focusFirst([\n selectedItem,\n content\n ])\n , [\n focusFirst,\n selectedItem,\n content\n ]); // Since this is not dependent on layout, we want to ensure this runs at the same time as\n // other effects across components. Hence why we don't call `focusSelectedItem` inside `position`.\n $01b9c$useEffect(()=>{\n if (isPositioned) focusSelectedItem();\n }, [\n isPositioned,\n focusSelectedItem\n ]); // prevent selecting items on `pointerup` in some cases after opening from `pointerdown`\n // and close on `pointerup` outside.\n const { onOpenChange: onOpenChange , triggerPointerDownPosRef: triggerPointerDownPosRef } = context;\n $01b9c$useEffect(()=>{\n if (content) {\n let pointerMoveDelta = {\n x: 0,\n y: 0\n };\n const handlePointerMove = (event)=>{\n var _triggerPointerDownPo, _triggerPointerDownPo2, _triggerPointerDownPo3, _triggerPointerDownPo4;\n pointerMoveDelta = {\n x: Math.abs(Math.round(event.pageX) - ((_triggerPointerDownPo = (_triggerPointerDownPo2 = triggerPointerDownPosRef.current) === null || _triggerPointerDownPo2 === void 0 ? void 0 : _triggerPointerDownPo2.x) !== null && _triggerPointerDownPo !== void 0 ? _triggerPointerDownPo : 0)),\n y: Math.abs(Math.round(event.pageY) - ((_triggerPointerDownPo3 = (_triggerPointerDownPo4 = triggerPointerDownPosRef.current) === null || _triggerPointerDownPo4 === void 0 ? void 0 : _triggerPointerDownPo4.y) !== null && _triggerPointerDownPo3 !== void 0 ? _triggerPointerDownPo3 : 0))\n };\n };\n const handlePointerUp = (event)=>{\n // If the pointer hasn't moved by a certain threshold then we prevent selecting item on `pointerup`.\n if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) event.preventDefault();\n else // otherwise, if the event was outside the content, close.\n if (!content.contains(event.target)) onOpenChange(false);\n document.removeEventListener('pointermove', handlePointerMove);\n triggerPointerDownPosRef.current = null;\n };\n if (triggerPointerDownPosRef.current !== null) {\n document.addEventListener('pointermove', handlePointerMove);\n document.addEventListener('pointerup', handlePointerUp, {\n capture: true,\n once: true\n });\n }\n return ()=>{\n document.removeEventListener('pointermove', handlePointerMove);\n document.removeEventListener('pointerup', handlePointerUp, {\n capture: true\n });\n };\n }\n }, [\n content,\n onOpenChange,\n triggerPointerDownPosRef\n ]);\n $01b9c$useEffect(()=>{\n const close = ()=>onOpenChange(false)\n ;\n window.addEventListener('blur', close);\n window.addEventListener('resize', close);\n return ()=>{\n window.removeEventListener('blur', close);\n window.removeEventListener('resize', close);\n };\n }, [\n onOpenChange\n ]);\n const [searchRef, handleTypeaheadSearch] = $cc7e05a45900e73f$var$useTypeaheadSearch((search)=>{\n const enabledItems = getItems().filter((item)=>!item.disabled\n );\n const currentItem = enabledItems.find((item)=>item.ref.current === document.activeElement\n );\n const nextItem = $cc7e05a45900e73f$var$findNextItem(enabledItems, search, currentItem);\n if (nextItem) /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>nextItem.ref.current.focus()\n );\n });\n const itemRefCallback = $01b9c$useCallback((node, value, disabled)=>{\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== undefined && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItem(node);\n if (isFirstValidItem) firstValidItemFoundRef.current = true;\n }\n }, [\n context.value\n ]);\n const handleItemLeave = $01b9c$useCallback(()=>content === null || content === void 0 ? void 0 : content.focus()\n , [\n content\n ]);\n const itemTextRefCallback = $01b9c$useCallback((node, value, disabled)=>{\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== undefined && context.value === value;\n if (isSelectedItem || isFirstValidItem) setSelectedItemText(node);\n }, [\n context.value\n ]);\n const SelectPosition = position === 'popper' ? $cc7e05a45900e73f$var$SelectPopperPosition : $cc7e05a45900e73f$var$SelectItemAlignedPosition; // Silently ignore props that are not supported by `SelectItemAlignedPosition`\n const popperContentProps = SelectPosition === $cc7e05a45900e73f$var$SelectPopperPosition ? {\n side: side,\n sideOffset: sideOffset,\n align: align,\n alignOffset: alignOffset,\n arrowPadding: arrowPadding,\n collisionBoundary: collisionBoundary,\n collisionPadding: collisionPadding,\n sticky: sticky,\n hideWhenDetached: hideWhenDetached,\n avoidCollisions: avoidCollisions\n } : {};\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectContentProvider, {\n scope: __scopeSelect,\n content: content,\n viewport: viewport,\n onViewportChange: setViewport,\n itemRefCallback: itemRefCallback,\n selectedItem: selectedItem,\n onItemLeave: handleItemLeave,\n itemTextRefCallback: itemTextRefCallback,\n focusSelectedItem: focusSelectedItem,\n selectedItemText: selectedItemText,\n position: position,\n isPositioned: isPositioned,\n searchRef: searchRef\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$RemoveScroll, {\n as: $01b9c$Slot,\n allowPinchZoom: true\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$FocusScope, {\n asChild: true // we make sure we're not trapping once it's been closed\n ,\n trapped: context.open,\n onMountAutoFocus: (event)=>{\n // we prevent open autofocus because we manually focus the selected item\n event.preventDefault();\n },\n onUnmountAutoFocus: $01b9c$composeEventHandlers(onCloseAutoFocus, (event)=>{\n var _context$trigger;\n (_context$trigger = context.trigger) === null || _context$trigger === void 0 || _context$trigger.focus({\n preventScroll: true\n });\n event.preventDefault();\n })\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$DismissableLayer, {\n asChild: true,\n disableOutsidePointerEvents: true,\n onEscapeKeyDown: onEscapeKeyDown,\n onPointerDownOutside: onPointerDownOutside // When focus is trapped, a focusout event may still happen.\n ,\n onFocusOutside: (event)=>event.preventDefault()\n ,\n onDismiss: ()=>context.onOpenChange(false)\n }, /*#__PURE__*/ $01b9c$createElement(SelectPosition, $01b9c$babelruntimehelpersesmextends({\n role: \"listbox\",\n id: context.contentId,\n \"data-state\": context.open ? 'open' : 'closed',\n dir: context.dir,\n onContextMenu: (event)=>event.preventDefault()\n }, contentProps, popperContentProps, {\n onPlaced: ()=>setIsPositioned(true)\n ,\n ref: composedRefs,\n style: {\n // flex layout so we can place the scroll buttons properly\n display: 'flex',\n flexDirection: 'column',\n // reset the outline by default as the content MAY get focused\n outline: 'none',\n ...contentProps.style\n },\n onKeyDown: $01b9c$composeEventHandlers(contentProps.onKeyDown, (event)=>{\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey; // select should not be navigated using tab key so we prevent it\n if (event.key === 'Tab') event.preventDefault();\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if ([\n 'ArrowUp',\n 'ArrowDown',\n 'Home',\n 'End'\n ].includes(event.key)) {\n const items = getItems().filter((item)=>!item.disabled\n );\n let candidateNodes = items.map((item)=>item.ref.current\n );\n if ([\n 'ArrowUp',\n 'End'\n ].includes(event.key)) candidateNodes = candidateNodes.slice().reverse();\n if ([\n 'ArrowUp',\n 'ArrowDown'\n ].includes(event.key)) {\n const currentElement = event.target;\n const currentIndex = candidateNodes.indexOf(currentElement);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>focusFirst(candidateNodes)\n );\n event.preventDefault();\n }\n })\n }))))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$var$SelectContentImpl, {\n displayName: $cc7e05a45900e73f$var$CONTENT_IMPL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItemAlignedPosition\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_ALIGNED_POSITION_NAME = 'SelectItemAlignedPosition';\nconst $cc7e05a45900e73f$var$SelectItemAlignedPosition = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , onPlaced: onPlaced , ...popperProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$CONTENT_NAME, __scopeSelect);\n const [contentWrapper, setContentWrapper] = $01b9c$useState(null);\n const [content, setContent] = $01b9c$useState(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>setContent(node)\n );\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const shouldExpandOnScrollRef = $01b9c$useRef(false);\n const shouldRepositionRef = $01b9c$useRef(true);\n const { viewport: viewport , selectedItem: selectedItem , selectedItemText: selectedItemText , focusSelectedItem: focusSelectedItem } = contentContext;\n const position = $01b9c$useCallback(()=>{\n if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {\n const triggerRect = context.trigger.getBoundingClientRect(); // -----------------------------------------------------------------------------------------\n // Horizontal positioning\n // -----------------------------------------------------------------------------------------\n const contentRect = content.getBoundingClientRect();\n const valueNodeRect = context.valueNode.getBoundingClientRect();\n const itemTextRect = selectedItemText.getBoundingClientRect();\n if (context.dir !== 'rtl') {\n const itemTextOffset = itemTextRect.left - contentRect.left;\n const left = valueNodeRect.left - itemTextOffset;\n const leftDelta = triggerRect.left - left;\n const minContentWidth = triggerRect.width + leftDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const rightEdge = window.innerWidth - $cc7e05a45900e73f$var$CONTENT_MARGIN;\n const clampedLeft = $01b9c$clamp(left, [\n $cc7e05a45900e73f$var$CONTENT_MARGIN,\n rightEdge - contentWidth\n ]);\n contentWrapper.style.minWidth = minContentWidth + 'px';\n contentWrapper.style.left = clampedLeft + 'px';\n } else {\n const itemTextOffset = contentRect.right - itemTextRect.right;\n const right = window.innerWidth - valueNodeRect.right - itemTextOffset;\n const rightDelta = window.innerWidth - triggerRect.right - right;\n const minContentWidth = triggerRect.width + rightDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const leftEdge = window.innerWidth - $cc7e05a45900e73f$var$CONTENT_MARGIN;\n const clampedRight = $01b9c$clamp(right, [\n $cc7e05a45900e73f$var$CONTENT_MARGIN,\n leftEdge - contentWidth\n ]);\n contentWrapper.style.minWidth = minContentWidth + 'px';\n contentWrapper.style.right = clampedRight + 'px';\n } // -----------------------------------------------------------------------------------------\n // Vertical positioning\n // -----------------------------------------------------------------------------------------\n const items = getItems();\n const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2;\n const itemsHeight = viewport.scrollHeight;\n const contentStyles = window.getComputedStyle(content);\n const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);\n const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);\n const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);\n const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);\n const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth; // prettier-ignore\n const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);\n const viewportStyles = window.getComputedStyle(viewport);\n const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);\n const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);\n const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - $cc7e05a45900e73f$var$CONTENT_MARGIN;\n const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;\n const selectedItemHalfHeight = selectedItem.offsetHeight / 2;\n const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;\n const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;\n const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;\n const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;\n if (willAlignWithoutTopOverflow) {\n const isLastItem = selectedItem === items[items.length - 1].ref.current;\n contentWrapper.style.bottom = \"0px\";\n const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;\n const clampedTriggerMiddleToBottomEdge = Math.max(triggerMiddleToBottomEdge, selectedItemHalfHeight + (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth);\n const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;\n contentWrapper.style.height = height + 'px';\n } else {\n const isFirstItem = selectedItem === items[0].ref.current;\n contentWrapper.style.top = \"0px\";\n const clampedTopEdgeToTriggerMiddle = Math.max(topEdgeToTriggerMiddle, contentBorderTopWidth + viewport.offsetTop + (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight);\n const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;\n contentWrapper.style.height = height + 'px';\n viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;\n }\n contentWrapper.style.margin = `${$cc7e05a45900e73f$var$CONTENT_MARGIN}px 0`;\n contentWrapper.style.minHeight = minContentHeight + 'px';\n contentWrapper.style.maxHeight = availableHeight + 'px'; // -----------------------------------------------------------------------------------------\n onPlaced === null || onPlaced === void 0 || onPlaced(); // we don't want the initial scroll position adjustment to trigger \"expand on scroll\"\n // so we explicitly turn it on only after they've registered.\n requestAnimationFrame(()=>shouldExpandOnScrollRef.current = true\n );\n }\n }, [\n getItems,\n context.trigger,\n context.valueNode,\n contentWrapper,\n content,\n viewport,\n selectedItem,\n selectedItemText,\n context.dir,\n onPlaced\n ]);\n $01b9c$useLayoutEffect(()=>position()\n , [\n position\n ]); // copy z-index from content to wrapper\n const [contentZIndex, setContentZIndex] = $01b9c$useState();\n $01b9c$useLayoutEffect(()=>{\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [\n content\n ]); // When the viewport becomes scrollable at the top, the scroll up button will mount.\n // Because it is part of the normal flow, it will push down the viewport, thus throwing our\n // trigger => selectedItem alignment off by the amount the viewport was pushed down.\n // We wait for this to happen and then re-run the positining logic one more time to account for it.\n const handleScrollButtonChange = $01b9c$useCallback((node)=>{\n if (node && shouldRepositionRef.current === true) {\n position();\n focusSelectedItem === null || focusSelectedItem === void 0 || focusSelectedItem();\n shouldRepositionRef.current = false;\n }\n }, [\n position,\n focusSelectedItem\n ]);\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectViewportProvider, {\n scope: __scopeSelect,\n contentWrapper: contentWrapper,\n shouldExpandOnScrollRef: shouldExpandOnScrollRef,\n onScrollButtonChange: handleScrollButtonChange\n }, /*#__PURE__*/ $01b9c$createElement(\"div\", {\n ref: setContentWrapper,\n style: {\n display: 'flex',\n flexDirection: 'column',\n position: 'fixed',\n zIndex: contentZIndex\n }\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({}, popperProps, {\n ref: composedRefs,\n style: {\n // When we get the height of the content, it includes borders. If we were to set\n // the height without having `boxSizing: 'border-box'` it would be too big.\n boxSizing: 'border-box',\n // We need to ensure the content doesn't get taller than the wrapper\n maxHeight: '100%',\n ...popperProps.style\n }\n }))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$var$SelectItemAlignedPosition, {\n displayName: $cc7e05a45900e73f$var$ITEM_ALIGNED_POSITION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectPopperPosition\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$POPPER_POSITION_NAME = 'SelectPopperPosition';\nconst $cc7e05a45900e73f$var$SelectPopperPosition = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , align: align = 'start' , collisionPadding: collisionPadding = $cc7e05a45900e73f$var$CONTENT_MARGIN , ...popperProps } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Content, $01b9c$babelruntimehelpersesmextends({}, popperScope, popperProps, {\n ref: forwardedRef,\n align: align,\n collisionPadding: collisionPadding,\n style: {\n // Ensure border-box for floating-ui calculations\n boxSizing: 'border-box',\n ...popperProps.style,\n '--radix-select-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-select-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-select-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-select-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-select-trigger-height': 'var(--radix-popper-anchor-height)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$var$SelectPopperPosition, {\n displayName: $cc7e05a45900e73f$var$POPPER_POSITION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectViewport\n * -----------------------------------------------------------------------------------------------*/ const [$cc7e05a45900e73f$var$SelectViewportProvider, $cc7e05a45900e73f$var$useSelectViewportContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$CONTENT_NAME, {});\nconst $cc7e05a45900e73f$var$VIEWPORT_NAME = 'SelectViewport';\nconst $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...viewportProps } = props;\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);\n const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$VIEWPORT_NAME, __scopeSelect);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, contentContext.onViewportChange);\n const prevScrollTopRef = $01b9c$useRef(0);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Fragment, null, /*#__PURE__*/ $01b9c$createElement(\"style\", {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`\n }\n }), /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.Slot, {\n scope: __scopeSelect\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n \"data-radix-select-viewport\": \"\",\n role: \"presentation\"\n }, viewportProps, {\n ref: composedRefs,\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: 'relative',\n flex: 1,\n overflow: 'auto',\n ...viewportProps.style\n },\n onScroll: $01b9c$composeEventHandlers(viewportProps.onScroll, (event)=>{\n const viewport = event.currentTarget;\n const { contentWrapper: contentWrapper , shouldExpandOnScrollRef: shouldExpandOnScrollRef } = viewportContext;\n if (shouldExpandOnScrollRef !== null && shouldExpandOnScrollRef !== void 0 && shouldExpandOnScrollRef.current && contentWrapper) {\n const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);\n if (scrolledBy > 0) {\n const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2;\n const cssMinHeight = parseFloat(contentWrapper.style.minHeight);\n const cssHeight = parseFloat(contentWrapper.style.height);\n const prevHeight = Math.max(cssMinHeight, cssHeight);\n if (prevHeight < availableHeight) {\n const nextHeight = prevHeight + scrolledBy;\n const clampedNextHeight = Math.min(availableHeight, nextHeight);\n const heightDiff = nextHeight - clampedNextHeight;\n contentWrapper.style.height = clampedNextHeight + 'px';\n if (contentWrapper.style.bottom === '0px') {\n viewport.scrollTop = heightDiff > 0 ? heightDiff : 0; // ensure the content stays pinned to the bottom\n contentWrapper.style.justifyContent = 'flex-end';\n }\n }\n }\n }\n prevScrollTopRef.current = viewport.scrollTop;\n })\n }))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$9ed6e7b40248d36d, {\n displayName: $cc7e05a45900e73f$var$VIEWPORT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectGroup\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$GROUP_NAME = 'SelectGroup';\nconst [$cc7e05a45900e73f$var$SelectGroupContextProvider, $cc7e05a45900e73f$var$useSelectGroupContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$GROUP_NAME);\nconst $cc7e05a45900e73f$export$ee25a334c55de1f4 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...groupProps } = props;\n const groupId = $01b9c$useId();\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectGroupContextProvider, {\n scope: __scopeSelect,\n id: groupId\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n role: \"group\",\n \"aria-labelledby\": groupId\n }, groupProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$ee25a334c55de1f4, {\n displayName: $cc7e05a45900e73f$var$GROUP_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectLabel\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$LABEL_NAME = 'SelectLabel';\nconst $cc7e05a45900e73f$export$f67338d29bd972f8 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...labelProps } = props;\n const groupContext = $cc7e05a45900e73f$var$useSelectGroupContext($cc7e05a45900e73f$var$LABEL_NAME, __scopeSelect);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n id: groupContext.id\n }, labelProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$f67338d29bd972f8, {\n displayName: $cc7e05a45900e73f$var$LABEL_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItem\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_NAME = 'SelectItem';\nconst [$cc7e05a45900e73f$var$SelectItemContextProvider, $cc7e05a45900e73f$var$useSelectItemContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$ITEM_NAME);\nconst $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , value: value , disabled: disabled = false , textValue: textValueProp , ...itemProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ITEM_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ITEM_NAME, __scopeSelect);\n const isSelected = context.value === value;\n const [textValue, setTextValue] = $01b9c$useState(textValueProp !== null && textValueProp !== void 0 ? textValueProp : '');\n const [isFocused, setIsFocused] = $01b9c$useState(false);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>{\n var _contentContext$itemR;\n return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);\n });\n const textId = $01b9c$useId();\n const handleSelect = ()=>{\n if (!disabled) {\n context.onValueChange(value);\n context.onOpenChange(false);\n }\n };\n if (value === '') throw new Error('A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.');\n return /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectItemContextProvider, {\n scope: __scopeSelect,\n value: value,\n disabled: disabled,\n textId: textId,\n isSelected: isSelected,\n onItemTextChange: $01b9c$useCallback((node)=>{\n setTextValue((prevTextValue)=>{\n var _node$textContent;\n return prevTextValue || ((_node$textContent = node === null || node === void 0 ? void 0 : node.textContent) !== null && _node$textContent !== void 0 ? _node$textContent : '').trim();\n });\n }, [])\n }, /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$Collection.ItemSlot, {\n scope: __scopeSelect,\n value: value,\n disabled: disabled,\n textValue: textValue\n }, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n role: \"option\",\n \"aria-labelledby\": textId,\n \"data-highlighted\": isFocused ? '' : undefined // `isFocused` caveat fixes stuttering in VoiceOver\n ,\n \"aria-selected\": isSelected && isFocused,\n \"data-state\": isSelected ? 'checked' : 'unchecked',\n \"aria-disabled\": disabled || undefined,\n \"data-disabled\": disabled ? '' : undefined,\n tabIndex: disabled ? undefined : -1\n }, itemProps, {\n ref: composedRefs,\n onFocus: $01b9c$composeEventHandlers(itemProps.onFocus, ()=>setIsFocused(true)\n ),\n onBlur: $01b9c$composeEventHandlers(itemProps.onBlur, ()=>setIsFocused(false)\n ),\n onPointerUp: $01b9c$composeEventHandlers(itemProps.onPointerUp, handleSelect),\n onPointerMove: $01b9c$composeEventHandlers(itemProps.onPointerMove, (event)=>{\n if (disabled) {\n var _contentContext$onIte;\n (_contentContext$onIte = contentContext.onItemLeave) === null || _contentContext$onIte === void 0 || _contentContext$onIte.call(contentContext);\n } else // even though safari doesn't support this option, it's acceptable\n // as it only means it might scroll a few pixels when using the pointer.\n event.currentTarget.focus({\n preventScroll: true\n });\n }),\n onPointerLeave: $01b9c$composeEventHandlers(itemProps.onPointerLeave, (event)=>{\n if (event.currentTarget === document.activeElement) {\n var _contentContext$onIte2;\n (_contentContext$onIte2 = contentContext.onItemLeave) === null || _contentContext$onIte2 === void 0 || _contentContext$onIte2.call(contentContext);\n }\n }),\n onKeyDown: $01b9c$composeEventHandlers(itemProps.onKeyDown, (event)=>{\n var _contentContext$searc;\n const isTypingAhead = ((_contentContext$searc = contentContext.searchRef) === null || _contentContext$searc === void 0 ? void 0 : _contentContext$searc.current) !== '';\n if (isTypingAhead && event.key === ' ') return;\n if ($cc7e05a45900e73f$var$SELECTION_KEYS.includes(event.key)) handleSelect(); // prevent page scroll if using the space key to select an item\n if (event.key === ' ') event.preventDefault();\n })\n }))));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$13ef48a934230896, {\n displayName: $cc7e05a45900e73f$var$ITEM_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItemText\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_TEXT_NAME = 'SelectItemText';\nconst $cc7e05a45900e73f$export$3572fb0fb821ff49 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n // We ignore `className` and `style` as this part shouldn't be styled.\n const { __scopeSelect: __scopeSelect , className: className , style: style , ...itemTextProps } = props;\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const nativeOptionsContext = $cc7e05a45900e73f$var$useSelectNativeOptionsContext($cc7e05a45900e73f$var$ITEM_TEXT_NAME, __scopeSelect);\n const [itemTextNode, setItemTextNode] = $01b9c$useState(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, (node)=>setItemTextNode(node)\n , itemContext.onItemTextChange, (node)=>{\n var _contentContext$itemT;\n return (_contentContext$itemT = contentContext.itemTextRefCallback) === null || _contentContext$itemT === void 0 ? void 0 : _contentContext$itemT.call(contentContext, node, itemContext.value, itemContext.disabled);\n });\n const textContent = itemTextNode === null || itemTextNode === void 0 ? void 0 : itemTextNode.textContent;\n const nativeOption = $01b9c$useMemo(()=>/*#__PURE__*/ $01b9c$createElement(\"option\", {\n key: itemContext.value,\n value: itemContext.value,\n disabled: itemContext.disabled\n }, textContent)\n , [\n itemContext.disabled,\n itemContext.value,\n textContent\n ]);\n const { onNativeOptionAdd: onNativeOptionAdd , onNativeOptionRemove: onNativeOptionRemove } = nativeOptionsContext;\n $01b9c$useLayoutEffect(()=>{\n onNativeOptionAdd(nativeOption);\n return ()=>onNativeOptionRemove(nativeOption)\n ;\n }, [\n onNativeOptionAdd,\n onNativeOptionRemove,\n nativeOption\n ]);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Fragment, null, /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({\n id: itemContext.textId\n }, itemTextProps, {\n ref: composedRefs\n })), itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? /*#__PURE__*/ $01b9c$createPortal(itemTextProps.children, context.valueNode) : null);\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$3572fb0fb821ff49, {\n displayName: $cc7e05a45900e73f$var$ITEM_TEXT_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectItemIndicator\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ITEM_INDICATOR_NAME = 'SelectItemIndicator';\nconst $cc7e05a45900e73f$export$6b9198de19accfe6 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...itemIndicatorProps } = props;\n const itemContext = $cc7e05a45900e73f$var$useSelectItemContext($cc7e05a45900e73f$var$ITEM_INDICATOR_NAME, __scopeSelect);\n return itemContext.isSelected ? /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.span, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, itemIndicatorProps, {\n ref: forwardedRef\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$6b9198de19accfe6, {\n displayName: $cc7e05a45900e73f$var$ITEM_INDICATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectScrollUpButton\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME = 'SelectScrollUpButton';\nconst $cc7e05a45900e73f$export$d8117927658af6d7 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const [canScrollUp1, setCanScrollUp] = $01b9c$useState(false);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n $01b9c$useLayoutEffect(()=>{\n if (contentContext.viewport && contentContext.isPositioned) {\n const viewport = contentContext.viewport;\n function handleScroll() {\n const canScrollUp = viewport.scrollTop > 0;\n setCanScrollUp(canScrollUp);\n }\n handleScroll();\n viewport.addEventListener('scroll', handleScroll);\n return ()=>viewport.removeEventListener('scroll', handleScroll)\n ;\n }\n }, [\n contentContext.viewport,\n contentContext.isPositioned\n ]);\n return canScrollUp1 ? /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectScrollButtonImpl, $01b9c$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs,\n onAutoScroll: ()=>{\n const { viewport: viewport , selectedItem: selectedItem } = contentContext;\n if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;\n }\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$d8117927658af6d7, {\n displayName: $cc7e05a45900e73f$var$SCROLL_UP_BUTTON_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectScrollDownButton\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME = 'SelectScrollDownButton';\nconst $cc7e05a45900e73f$export$ff951e476c12189 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = $cc7e05a45900e73f$var$useSelectViewportContext($cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const [canScrollDown1, setCanScrollDown] = $01b9c$useState(false);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n $01b9c$useLayoutEffect(()=>{\n if (contentContext.viewport && contentContext.isPositioned) {\n const viewport = contentContext.viewport;\n function handleScroll() {\n const maxScroll = viewport.scrollHeight - viewport.clientHeight; // we use Math.ceil here because if the UI is zoomed-in\n // `scrollTop` is not always reported as an integer\n const canScrollDown = Math.ceil(viewport.scrollTop) < maxScroll;\n setCanScrollDown(canScrollDown);\n }\n handleScroll();\n viewport.addEventListener('scroll', handleScroll);\n return ()=>viewport.removeEventListener('scroll', handleScroll)\n ;\n }\n }, [\n contentContext.viewport,\n contentContext.isPositioned\n ]);\n return canScrollDown1 ? /*#__PURE__*/ $01b9c$createElement($cc7e05a45900e73f$var$SelectScrollButtonImpl, $01b9c$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs,\n onAutoScroll: ()=>{\n const { viewport: viewport , selectedItem: selectedItem } = contentContext;\n if (viewport && selectedItem) viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n }\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$ff951e476c12189, {\n displayName: $cc7e05a45900e73f$var$SCROLL_DOWN_BUTTON_NAME\n});\nconst $cc7e05a45900e73f$var$SelectScrollButtonImpl = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , onAutoScroll: onAutoScroll , ...scrollIndicatorProps } = props;\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext('SelectScrollButton', __scopeSelect);\n const autoScrollTimerRef = $01b9c$useRef(null);\n const getItems = $cc7e05a45900e73f$var$useCollection(__scopeSelect);\n const clearAutoScrollTimer = $01b9c$useCallback(()=>{\n if (autoScrollTimerRef.current !== null) {\n window.clearInterval(autoScrollTimerRef.current);\n autoScrollTimerRef.current = null;\n }\n }, []);\n $01b9c$useEffect(()=>{\n return ()=>clearAutoScrollTimer()\n ;\n }, [\n clearAutoScrollTimer\n ]); // When the viewport becomes scrollable on either side, the relevant scroll button will mount.\n // Because it is part of the normal flow, it will push down (top button) or shrink (bottom button)\n // the viewport, potentially causing the active item to now be partially out of view.\n // We re-run the `scrollIntoView` logic to make sure it stays within the viewport.\n $01b9c$useLayoutEffect(()=>{\n var _activeItem$ref$curre;\n const activeItem = getItems().find((item)=>item.ref.current === document.activeElement\n );\n activeItem === null || activeItem === void 0 || (_activeItem$ref$curre = activeItem.ref.current) === null || _activeItem$ref$curre === void 0 || _activeItem$ref$curre.scrollIntoView({\n block: 'nearest'\n });\n }, [\n getItems\n ]);\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, scrollIndicatorProps, {\n ref: forwardedRef,\n style: {\n flexShrink: 0,\n ...scrollIndicatorProps.style\n },\n onPointerDown: $01b9c$composeEventHandlers(scrollIndicatorProps.onPointerDown, ()=>{\n if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }),\n onPointerMove: $01b9c$composeEventHandlers(scrollIndicatorProps.onPointerMove, ()=>{\n var _contentContext$onIte3;\n (_contentContext$onIte3 = contentContext.onItemLeave) === null || _contentContext$onIte3 === void 0 || _contentContext$onIte3.call(contentContext);\n if (autoScrollTimerRef.current === null) autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }),\n onPointerLeave: $01b9c$composeEventHandlers(scrollIndicatorProps.onPointerLeave, ()=>{\n clearAutoScrollTimer();\n })\n }));\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectSeparator\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$SEPARATOR_NAME = 'SelectSeparator';\nconst $cc7e05a45900e73f$export$eba4b1df07cb1d3 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...separatorProps } = props;\n return /*#__PURE__*/ $01b9c$createElement($01b9c$Primitive.div, $01b9c$babelruntimehelpersesmextends({\n \"aria-hidden\": true\n }, separatorProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$eba4b1df07cb1d3, {\n displayName: $cc7e05a45900e73f$var$SEPARATOR_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SelectArrow\n * -----------------------------------------------------------------------------------------------*/ const $cc7e05a45900e73f$var$ARROW_NAME = 'SelectArrow';\nconst $cc7e05a45900e73f$export$314f4cb8f8099628 = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { __scopeSelect: __scopeSelect , ...arrowProps } = props;\n const popperScope = $cc7e05a45900e73f$var$usePopperScope(__scopeSelect);\n const context = $cc7e05a45900e73f$var$useSelectContext($cc7e05a45900e73f$var$ARROW_NAME, __scopeSelect);\n const contentContext = $cc7e05a45900e73f$var$useSelectContentContext($cc7e05a45900e73f$var$ARROW_NAME, __scopeSelect);\n return context.open && contentContext.position === 'popper' ? /*#__PURE__*/ $01b9c$createElement($01b9c$Arrow, $01b9c$babelruntimehelpersesmextends({}, popperScope, arrowProps, {\n ref: forwardedRef\n })) : null;\n});\n/*#__PURE__*/ Object.assign($cc7e05a45900e73f$export$314f4cb8f8099628, {\n displayName: $cc7e05a45900e73f$var$ARROW_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ function $cc7e05a45900e73f$var$shouldShowPlaceholder(value) {\n return value === '' || value === undefined;\n}\nconst $cc7e05a45900e73f$var$BubbleSelect = /*#__PURE__*/ $01b9c$forwardRef((props, forwardedRef)=>{\n const { value: value , ...selectProps } = props;\n const ref = $01b9c$useRef(null);\n const composedRefs = $01b9c$useComposedRefs(forwardedRef, ref);\n const prevValue = $01b9c$usePrevious(value); // Bubble value change to parents (e.g form change event)\n $01b9c$useEffect(()=>{\n const select = ref.current;\n const selectProto = window.HTMLSelectElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(selectProto, 'value');\n const setValue = descriptor.set;\n if (prevValue !== value && setValue) {\n const event = new Event('change', {\n bubbles: true\n });\n setValue.call(select, value);\n select.dispatchEvent(event);\n }\n }, [\n prevValue,\n value\n ]);\n /**\n * We purposefully use a `select` here to support form autofill as much\n * as possible.\n *\n * We purposefully do not add the `value` attribute here to allow the value\n * to be set programatically and bubble to any parent form `onChange` event.\n * Adding the `value` will cause React to consider the programatic\n * dispatch a duplicate and it will get swallowed.\n *\n * We use `VisuallyHidden` rather than `display: \"none\"` because Safari autofill\n * won't work otherwise.\n */ return /*#__PURE__*/ $01b9c$createElement($01b9c$VisuallyHidden, {\n asChild: true\n }, /*#__PURE__*/ $01b9c$createElement(\"select\", $01b9c$babelruntimehelpersesmextends({}, selectProps, {\n ref: composedRefs,\n defaultValue: value\n })));\n});\n$cc7e05a45900e73f$var$BubbleSelect.displayName = 'BubbleSelect';\nfunction $cc7e05a45900e73f$var$useTypeaheadSearch(onSearchChange) {\n const handleSearchChange = $01b9c$useCallbackRef(onSearchChange);\n const searchRef = $01b9c$useRef('');\n const timerRef = $01b9c$useRef(0);\n const handleTypeaheadSearch = $01b9c$useCallback((key)=>{\n const search = searchRef.current + key;\n handleSearchChange(search);\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current); // Reset `searchRef` 1 second after it was last updated\n if (value !== '') timerRef.current = window.setTimeout(()=>updateSearch('')\n , 1000);\n })(search);\n }, [\n handleSearchChange\n ]);\n const resetTypeahead = $01b9c$useCallback(()=>{\n searchRef.current = '';\n window.clearTimeout(timerRef.current);\n }, []);\n $01b9c$useEffect(()=>{\n return ()=>window.clearTimeout(timerRef.current)\n ;\n }, []);\n return [\n searchRef,\n handleTypeaheadSearch,\n resetTypeahead\n ];\n}\n/**\n * This is the \"meat\" of the typeahead matching logic. It takes in a list of items,\n * the search and the current item, and returns the next item (or `undefined`).\n *\n * We normalize the search because if a user has repeatedly pressed a character,\n * we want the exact same behavior as if we only had that one character\n * (ie. cycle through items starting with that character)\n *\n * We also reorder the items by wrapping the array around the current item.\n * This is so we always look forward from the current item, and picking the first\n * item will always be the correct one.\n *\n * Finally, if the normalized search is exactly one character, we exclude the\n * current item from the values because otherwise it would be the first to match always\n * and focus would never move. This is as opposed to the regular case, where we\n * don't want focus to move if the current item still matches.\n */ function $cc7e05a45900e73f$var$findNextItem(items, search, currentItem) {\n const isRepeated = search.length > 1 && Array.from(search).every((char)=>char === search[0]\n );\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;\n let wrappedItems = $cc7e05a45900e73f$var$wrapArray(items, Math.max(currentItemIndex, 0));\n const excludeCurrentItem = normalizedSearch.length === 1;\n if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v)=>v !== currentItem\n );\n const nextItem = wrappedItems.find((item)=>item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextItem !== currentItem ? nextItem : undefined;\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $cc7e05a45900e73f$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\nconst $cc7e05a45900e73f$export$be92b6f5f03c0fe9 = $cc7e05a45900e73f$export$ef9b1a59e592288f;\nconst $cc7e05a45900e73f$export$41fb9f06171c75f4 = $cc7e05a45900e73f$export$3ac1e88a1c0b9f1;\nconst $cc7e05a45900e73f$export$4c8d1a57a761ef94 = $cc7e05a45900e73f$export$e288731fd71264f0;\nconst $cc7e05a45900e73f$export$f04a61298a47a40f = $cc7e05a45900e73f$export$99b400cabb58c515;\nconst $cc7e05a45900e73f$export$602eac185826482c = $cc7e05a45900e73f$export$b2af6c9944296213;\nconst $cc7e05a45900e73f$export$7c6e2c02157bb7d2 = $cc7e05a45900e73f$export$c973a4b3cb86a03d;\nconst $cc7e05a45900e73f$export$d5c6c08dc2d3ca7 = $cc7e05a45900e73f$export$9ed6e7b40248d36d;\nconst $cc7e05a45900e73f$export$eb2fcfdbd7ba97d4 = $cc7e05a45900e73f$export$ee25a334c55de1f4;\nconst $cc7e05a45900e73f$export$b04be29aa201d4f5 = $cc7e05a45900e73f$export$f67338d29bd972f8;\nconst $cc7e05a45900e73f$export$6d08773d2e66f8f2 = $cc7e05a45900e73f$export$13ef48a934230896;\nconst $cc7e05a45900e73f$export$d6e5bf9c43ea9319 = $cc7e05a45900e73f$export$3572fb0fb821ff49;\nconst $cc7e05a45900e73f$export$c3468e2714d175fa = $cc7e05a45900e73f$export$6b9198de19accfe6;\nconst $cc7e05a45900e73f$export$2f60d3ec9ad468f2 = $cc7e05a45900e73f$export$d8117927658af6d7;\nconst $cc7e05a45900e73f$export$bf1aedc3039c8d63 = $cc7e05a45900e73f$export$ff951e476c12189;\nconst $cc7e05a45900e73f$export$1ff3c3f08ae963c0 = $cc7e05a45900e73f$export$eba4b1df07cb1d3;\nconst $cc7e05a45900e73f$export$21b07c8f274aebd5 = $cc7e05a45900e73f$export$314f4cb8f8099628;\n\n\n\n\nexport {$cc7e05a45900e73f$export$286727a75dc039bd as createSelectScope, $cc7e05a45900e73f$export$ef9b1a59e592288f as Select, $cc7e05a45900e73f$export$3ac1e88a1c0b9f1 as SelectTrigger, $cc7e05a45900e73f$export$e288731fd71264f0 as SelectValue, $cc7e05a45900e73f$export$99b400cabb58c515 as SelectIcon, $cc7e05a45900e73f$export$b2af6c9944296213 as SelectPortal, $cc7e05a45900e73f$export$c973a4b3cb86a03d as SelectContent, $cc7e05a45900e73f$export$9ed6e7b40248d36d as SelectViewport, $cc7e05a45900e73f$export$ee25a334c55de1f4 as SelectGroup, $cc7e05a45900e73f$export$f67338d29bd972f8 as SelectLabel, $cc7e05a45900e73f$export$13ef48a934230896 as SelectItem, $cc7e05a45900e73f$export$3572fb0fb821ff49 as SelectItemText, $cc7e05a45900e73f$export$6b9198de19accfe6 as SelectItemIndicator, $cc7e05a45900e73f$export$d8117927658af6d7 as SelectScrollUpButton, $cc7e05a45900e73f$export$ff951e476c12189 as SelectScrollDownButton, $cc7e05a45900e73f$export$eba4b1df07cb1d3 as SelectSeparator, $cc7e05a45900e73f$export$314f4cb8f8099628 as SelectArrow, $cc7e05a45900e73f$export$be92b6f5f03c0fe9 as Root, $cc7e05a45900e73f$export$41fb9f06171c75f4 as Trigger, $cc7e05a45900e73f$export$4c8d1a57a761ef94 as Value, $cc7e05a45900e73f$export$f04a61298a47a40f as Icon, $cc7e05a45900e73f$export$602eac185826482c as Portal, $cc7e05a45900e73f$export$7c6e2c02157bb7d2 as Content, $cc7e05a45900e73f$export$d5c6c08dc2d3ca7 as Viewport, $cc7e05a45900e73f$export$eb2fcfdbd7ba97d4 as Group, $cc7e05a45900e73f$export$b04be29aa201d4f5 as Label, $cc7e05a45900e73f$export$6d08773d2e66f8f2 as Item, $cc7e05a45900e73f$export$d6e5bf9c43ea9319 as ItemText, $cc7e05a45900e73f$export$c3468e2714d175fa as ItemIndicator, $cc7e05a45900e73f$export$2f60d3ec9ad468f2 as ScrollUpButton, $cc7e05a45900e73f$export$bf1aedc3039c8d63 as ScrollDownButton, $cc7e05a45900e73f$export$1ff3c3f08ae963c0 as Separator, $cc7e05a45900e73f$export$21b07c8f274aebd5 as Arrow};\n//# sourceMappingURL=index.mjs.map\n","import * as SelectPrimitive from '@radix-ui/react-select'\nimport { clsx } from 'clsx'\nimport { forwardRef, ReactNode, Ref } from 'react'\n\nimport { Box } from '~/components/Box'\nimport { Field, FieldProps } from '~/components/Field'\nimport { ChevronDownIcon } from '~/icons'\n\nimport {\n contentStyle,\n optionStyle,\n triggerStyle,\n TriggerVariants,\n triggerVariants,\n} from './styles.css'\n\ntype SelectOption = {\n className?: string\n disabled?: boolean\n label: string | ReactNode\n value: string\n}\n\nexport type SelectProps = FieldProps &\n TriggerVariants &\n SelectPrimitive.SelectProps & {\n disabled?: boolean\n id?: string\n name: string\n placeholder?: string\n options: SelectOption[]\n }\n\nconst SelectItem = forwardRef(\n (\n { children, className, ...props }: SelectPrimitive.SelectItemProps,\n ref: Ref\n ) => {\n return (\n \n {children}\n \n )\n }\n)\n\nexport const Select = forwardRef(\n (props: SelectProps, ref: Ref) => {\n const {\n borderRadius = 'md',\n disabled = false,\n id,\n label = '',\n description,\n labelLocation = 'hidden',\n name,\n options,\n placeholder,\n ...rest\n } = props\n\n return (\n \n \n \n \n \n \n \n \n\n \n \n \n {options.map(({ value, label, ...rest }) => (\n \n {label}\n \n ))}\n \n \n \n \n \n )\n }\n)\n"],"names":["$ae6933e535247d3d$export$7d15b64cf5a3a4c4","value","min","max","$cc7e05a45900e73f$var$OPEN_KEYS","$cc7e05a45900e73f$var$SELECTION_KEYS","$cc7e05a45900e73f$var$SELECT_NAME","$cc7e05a45900e73f$var$Collection","$cc7e05a45900e73f$var$useCollection","$cc7e05a45900e73f$var$createCollectionScope","$01b9c$createCollection","$cc7e05a45900e73f$var$createSelectContext","$cc7e05a45900e73f$export$286727a75dc039bd","$01b9c$createContextScope","$01b9c$createPopperScope","$cc7e05a45900e73f$var$usePopperScope","$cc7e05a45900e73f$var$SelectProvider","$cc7e05a45900e73f$var$useSelectContext","$cc7e05a45900e73f$var$SelectNativeOptionsProvider","$cc7e05a45900e73f$var$useSelectNativeOptionsContext","$cc7e05a45900e73f$export$ef9b1a59e592288f","props","__scopeSelect","children","openProp","defaultOpen","onOpenChange","valueProp","defaultValue","onValueChange","dir","name","autoComplete","disabled","required","popperScope","trigger","setTrigger","$01b9c$useState","valueNode","setValueNode","valueNodeHasChildren","setValueNodeHasChildren","direction","$01b9c$useDirection","open","setOpen","$01b9c$useControllableState","setValue","triggerPointerDownPosRef","$01b9c$useRef","isFormControl","nativeOptionsSet","setNativeOptionsSet","nativeSelectKey","option","$01b9c$createElement","$01b9c$Root","$01b9c$useId","$01b9c$useCallback","prev","optionsSet","$cc7e05a45900e73f$var$BubbleSelect","event","$cc7e05a45900e73f$var$TRIGGER_NAME","$cc7e05a45900e73f$export$3ac1e88a1c0b9f1","$01b9c$forwardRef","forwardedRef","triggerProps","context","isDisabled","composedRefs","$01b9c$useComposedRefs","getItems","searchRef","handleTypeaheadSearch","resetTypeahead","$cc7e05a45900e73f$var$useTypeaheadSearch","search","enabledItems","item","currentItem","nextItem","$cc7e05a45900e73f$var$findNextItem","handleOpen","$01b9c$Anchor","$01b9c$babelruntimehelpersesmextends","$01b9c$Primitive","$cc7e05a45900e73f$var$shouldShowPlaceholder","$01b9c$composeEventHandlers","target","isTypingAhead","$cc7e05a45900e73f$var$VALUE_NAME","$cc7e05a45900e73f$export$e288731fd71264f0","className","style","placeholder","valueProps","onValueNodeHasChildrenChange","hasChildren","$01b9c$useLayoutEffect","$01b9c$Fragment","$cc7e05a45900e73f$export$99b400cabb58c515","iconProps","$cc7e05a45900e73f$var$CONTENT_NAME","$cc7e05a45900e73f$export$c973a4b3cb86a03d","fragment","setFragment","frag","$01b9c$createPortal","$cc7e05a45900e73f$var$SelectContentProvider","$cc7e05a45900e73f$var$SelectContentImpl","$cc7e05a45900e73f$var$CONTENT_MARGIN","$cc7e05a45900e73f$var$useSelectContentContext","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","contentProps","content","setContent","viewport","setViewport","node","selectedItem","setSelectedItem","selectedItemText","setSelectedItemText","isPositioned","setIsPositioned","firstValidItemFoundRef","$01b9c$useEffect","$01b9c$hideOthers","$01b9c$useFocusGuards","focusFirst","candidates","firstItem","restItems","lastItem","PREVIOUSLY_FOCUSED_ELEMENT","candidate","focusSelectedItem","pointerMoveDelta","handlePointerMove","_triggerPointerDownPo","_triggerPointerDownPo2","_triggerPointerDownPo3","_triggerPointerDownPo4","handlePointerUp","close","itemRefCallback","isFirstValidItem","handleItemLeave","itemTextRefCallback","SelectPosition","$cc7e05a45900e73f$var$SelectPopperPosition","$cc7e05a45900e73f$var$SelectItemAlignedPosition","popperContentProps","$01b9c$RemoveScroll","$01b9c$Slot","$01b9c$FocusScope","_context$trigger","$01b9c$DismissableLayer","isModifierKey","candidateNodes","currentElement","currentIndex","onPlaced","popperProps","contentContext","contentWrapper","setContentWrapper","shouldExpandOnScrollRef","shouldRepositionRef","triggerRect","contentRect","valueNodeRect","itemTextRect","itemTextOffset","left","leftDelta","minContentWidth","contentWidth","rightEdge","clampedLeft","$01b9c$clamp","right","rightDelta","leftEdge","clampedRight","items","availableHeight","itemsHeight","contentStyles","contentBorderTopWidth","contentPaddingTop","contentBorderBottomWidth","contentPaddingBottom","fullContentHeight","minContentHeight","viewportStyles","viewportPaddingTop","viewportPaddingBottom","topEdgeToTriggerMiddle","triggerMiddleToBottomEdge","selectedItemHalfHeight","itemOffsetMiddle","contentTopToItemMiddle","itemMiddleToContentBottom","isLastItem","viewportOffsetBottom","clampedTriggerMiddleToBottomEdge","height","isFirstItem","contentZIndex","setContentZIndex","handleScrollButtonChange","$cc7e05a45900e73f$var$SelectViewportProvider","$01b9c$Content","$cc7e05a45900e73f$var$useSelectViewportContext","$cc7e05a45900e73f$var$VIEWPORT_NAME","$cc7e05a45900e73f$export$9ed6e7b40248d36d","viewportProps","viewportContext","prevScrollTopRef","scrolledBy","cssMinHeight","cssHeight","prevHeight","nextHeight","clampedNextHeight","heightDiff","$cc7e05a45900e73f$var$GROUP_NAME","$cc7e05a45900e73f$var$SelectGroupContextProvider","$cc7e05a45900e73f$var$useSelectGroupContext","$cc7e05a45900e73f$export$ee25a334c55de1f4","groupProps","groupId","$cc7e05a45900e73f$var$ITEM_NAME","$cc7e05a45900e73f$var$SelectItemContextProvider","$cc7e05a45900e73f$var$useSelectItemContext","$cc7e05a45900e73f$export$13ef48a934230896","textValueProp","itemProps","isSelected","textValue","setTextValue","isFocused","setIsFocused","_contentContext$itemR","textId","handleSelect","prevTextValue","_node$textContent","_contentContext$onIte","_contentContext$onIte2","_contentContext$searc","$cc7e05a45900e73f$var$ITEM_TEXT_NAME","$cc7e05a45900e73f$export$3572fb0fb821ff49","itemTextProps","itemContext","nativeOptionsContext","itemTextNode","setItemTextNode","_contentContext$itemT","textContent","nativeOption","$01b9c$useMemo","onNativeOptionAdd","onNativeOptionRemove","selectProps","ref","prevValue","$01b9c$usePrevious","select","selectProto","$01b9c$VisuallyHidden","onSearchChange","handleSearchChange","$01b9c$useCallbackRef","timerRef","key","updateSearch","normalizedSearch","char","currentItemIndex","wrappedItems","$cc7e05a45900e73f$var$wrapArray","v","array","startIndex","_","index","$cc7e05a45900e73f$export$be92b6f5f03c0fe9","$cc7e05a45900e73f$export$41fb9f06171c75f4","$cc7e05a45900e73f$export$4c8d1a57a761ef94","$cc7e05a45900e73f$export$f04a61298a47a40f","$cc7e05a45900e73f$export$7c6e2c02157bb7d2","$cc7e05a45900e73f$export$d5c6c08dc2d3ca7","$cc7e05a45900e73f$export$eb2fcfdbd7ba97d4","$cc7e05a45900e73f$export$6d08773d2e66f8f2","$cc7e05a45900e73f$export$d6e5bf9c43ea9319","SelectItem","forwardRef","jsx","SelectPrimitive.Item","clsx","optionStyle","SelectPrimitive.ItemText","Select","borderRadius","id","label","description","labelLocation","options","rest","Field","jsxs","SelectPrimitive.Root","SelectPrimitive.Trigger","triggerStyle","triggerVariants","SelectPrimitive.Value","Box","SelectPrimitive.Icon","ChevronDownIcon","SelectPrimitive.Content","contentStyle","SelectPrimitive.Viewport","SelectPrimitive.Group","label2","rest2"],"mappings":"47BAAA,SAASA,GAA0CC,EAAO,CAACC,EAAKC,CAAG,EAAG,CAClE,OAAO,KAAK,IAAIA,EAAK,KAAK,IAAID,EAAKD,CAAK,CAAC,CAC7C,CCgDA,MAAMG,GAAkC,CACpC,IACA,QACA,UACA,WACJ,EACMC,GAAuC,CACzC,IACA,OACJ,EAG2GC,GAAoC,SACzI,CAACC,GAAkCC,GAAqCC,EAA2C,EAAIC,GAAwBJ,EAAiC,EAChL,CAACK,EAA2CC,EAAyC,EAAIC,GAA0BP,GAAmC,CACxJG,GACAK,EACJ,CAAC,EACKC,GAAuCD,GAAwB,EAC/D,CAACE,GAAsCC,CAAsC,EAAIN,EAA0CL,EAAiC,EAC5J,CAACY,GAAmDC,EAAmD,EAAIR,EAA0CL,EAAiC,EACtLc,GAA6CC,GAAQ,CACvD,KAAM,CAAE,cAAeC,EAAgB,SAAUC,EAAW,KAAMC,EAAW,YAAaC,EAAc,aAAcC,EAAe,MAAOC,EAAY,aAAcC,EAAe,cAAeC,EAAgB,IAAKC,EAAM,KAAMC,EAAO,aAAcC,EAAe,SAAUC,EAAW,SAAUC,CAAQ,EAAMb,EAChTc,EAAcpB,GAAqCO,CAAa,EAChE,CAACc,EAASC,CAAU,EAAIC,EAAe,SAAC,IAAI,EAC5C,CAACC,EAAWC,CAAY,EAAIF,EAAe,SAAC,IAAI,EAChD,CAACG,EAAsBC,CAAuB,EAAIJ,EAAe,SAAC,EAAK,EACvEK,EAAYC,GAAoBd,CAAG,EACnC,CAACe,GAAO,GAAOC,CAAO,EAAIC,GAA4B,CACxD,KAAMvB,EACN,YAAaC,EACb,SAAUC,CAClB,CAAK,EACK,CAACzB,EAAO+C,CA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,EAGL,OAAAqS,EAAA,IACEa,GAAC,CAAA,SAAAtS,EACC,QAAA,OACQ,GAAAgS,GAAAlS,EACE,MAAAmS,EACV,cAAAE,EACA,YAAAD,EACA,WAAA,SACW,SAAAK,EAAA,KAAAC,GAAA,CAAA,SAAAxS,EAAA,KAAAF,EAAA,GAAAuS,EAAA,SAAA,CAGTE,EAAA,KAAAE,GAAiB,CAAhB,GAAAT,GAAAlS,EACW,UAAA6R,GAAAe,GAAAC,GAAA,CAAA,aAAAZ,CAAA,CAAA,CAAA,EACqD,IAAAvC,EAC/D,SAAA,CAEAiC,MAAAmB,GAAA,CAAA,YAAA7O,EAAA,EAAiD0N,EAAAA,IAAAoB,GAAA,CAAA,GAAAC,GAAA,QAAA,cAAA,SAAArB,EAAA,IAAAsB,GAAA,CAAA,CAAA,CAAA,CAAA,CAGjD,CAAA,CAAA,EACFtB,EAAA,IAAAuB,GAAA,CAAA,UAAAC,GAAA,SAAAxB,EAAAA,IAAAyB,GAAA,CAAA,SAAAzB,EAAAA,IAAA0B,GAAA,CAAA,SAAAf,EAAA,IAAA,CAAA,CAAA,MAAApU,EAAA,MAAAoV,EAAA,GAAAC,CAAA,IAAA5B,EAAAA,IAAAF,GAAA,CAAA,MAAAvT,EAAA,GAAAqV,EAAA,SAAAD,CAAA,EAAApV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAYA,EAAA,CACF,CAAA,CACF,CAGN","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/assets/Select.stories-21614d19.js.map b/assets/Select.stories-21614d19.js.map deleted file mode 100644 index 3408fff00..000000000 --- a/assets/Select.stories-21614d19.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Select.stories-21614d19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Select.stories-21614d19.js b/assets/Select.stories-7e301030.js similarity index 84% rename from assets/Select.stories-21614d19.js rename to assets/Select.stories-7e301030.js index c297036c6..db8c155c6 100644 --- a/assets/Select.stories-21614d19.js +++ b/assets/Select.stories-7e301030.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{B as a}from"./Box-8ffdd394.js";import{T as t}from"./Text-cdf53fa8.js";import{T as o}from"./TokenImage-0dbf1c2d.js";import{S as d}from"./Select-a2de057d.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Image-577ba723.js";import"./motion-cc45ae8c.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-e5d8d6a8.js";import"./index-df712b54.js";import"./index-f0ce3c30.js";import"./Combination-eaaf64fc.js";import"./index-8f163998.js";import"./index-50d6e817.js";import"./index-3842af66.js";import"./index-555f5aa0.js";import"./index-8e81e3f6.js";import"./Field-0c069ee0.js";import"./WarningIcon-b42ff4ac.js";const F={title:"Forms/Select",component:d},n={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},name:"selectDemo",label:"Select",description:"This is a description",labelLocation:"top",placeholder:"Select an option",disabled:!1,options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Disabled Option",value:"option-4",disabled:!0},{label:"Custom Action",value:"option-5"}]}},s={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},name:"selectDemo",label:"Networks",labelLocation:"top",disabled:!1,defaultValue:"mainnet",options:[{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/1.cb52a9be955ddf5eacbe.png"}),e.jsx(t,{children:"Mainnet"})]}),value:"mainnet"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/137.1c36e6b6953be3aacff4.png"}),e.jsx(t,{children:"Polygon"})]}),value:"polygon"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/56.ef53ab0cdafe86027deb.png"}),e.jsx(t,{children:"BNB Smart Chain"})]}),value:"bsc"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/43114.9b2c1709ab950bf92deb.png"}),e.jsx(t,{children:"Avalanche"})]}),value:"avalanche"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/42161.a74b6921ab2c28356575.png"}),e.jsx(t,{children:"Arbitrum"})]}),value:"gnosis"}]}};var i,p,r;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as a}from"./Box-e4a86556.js";import{T as t}from"./Text-b96ac7e7.js";import{T as o}from"./TokenImage-934323d4.js";import{S as d}from"./Select-09cd7267.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Image-22368520.js";import"./motion-bbbff89a.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-af546338.js";import"./index-cb7a0887.js";import"./index-c484f70b.js";import"./Combination-b274f0b7.js";import"./index-dad7d30c.js";import"./index-6966b6f4.js";import"./index-0d95b182.js";import"./index-b65dbec4.js";import"./index-7e536d32.js";import"./Field-cc1005d3.js";import"./WarningIcon-c4815a2d.js";const F={title:"Forms/Select",component:d},n={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},name:"selectDemo",label:"Select",description:"This is a description",labelLocation:"top",placeholder:"Select an option",disabled:!1,options:[{label:"Option 1",value:"option-1"},{label:"Option 2",value:"option-2"},{label:"Option 3",value:"option-3"},{label:"Disabled Option",value:"option-4",disabled:!0},{label:"Custom Action",value:"option-5"}]}},s={args:{borderRadius:"md",onValueChange:l=>{console.log("selected: ",l)},name:"selectDemo",label:"Networks",labelLocation:"top",disabled:!1,defaultValue:"mainnet",options:[{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/1.cb52a9be955ddf5eacbe.png"}),e.jsx(t,{children:"Mainnet"})]}),value:"mainnet"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/137.1c36e6b6953be3aacff4.png"}),e.jsx(t,{children:"Polygon"})]}),value:"polygon"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/56.ef53ab0cdafe86027deb.png"}),e.jsx(t,{children:"BNB Smart Chain"})]}),value:"bsc"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/43114.9b2c1709ab950bf92deb.png"}),e.jsx(t,{children:"Avalanche"})]}),value:"avalanche"},{label:e.jsxs(a,{alignItems:"center",gap:"2",children:[e.jsx(o,{src:"https://sequence.app/static/images/42161.a74b6921ab2c28356575.png"}),e.jsx(t,{children:"Arbitrum"})]}),value:"gnosis"}]}};var i,p,r;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { borderRadius: 'md', onValueChange: value => { @@ -72,4 +72,3 @@ import{j as e}from"./jsx-runtime-69eee039.js";import{B as a}from"./Box-8ffdd394. }] } }`,...(b=(m=s.parameters)==null?void 0:m.docs)==null?void 0:b.source}}};const z=["Default","Custom"];export{s as Custom,n as Default,z as __namedExportsOrder,F as default}; -//# sourceMappingURL=Select.stories-21614d19.js.map diff --git a/assets/Spinner.stories-1c05677f.js.map b/assets/Spinner.stories-1c05677f.js.map deleted file mode 100644 index 23ef9eadb..000000000 --- a/assets/Spinner.stories-1c05677f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Spinner.stories-1c05677f.js","sources":["../../src/components/Spinner/Spinner.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\n\nimport * as styles from './styles.css'\n\ntype SpinnerProps = {} & styles.Variants\n\nexport const Spinner: PolymorphicComponent = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const { size = 'md', ...rest } = props\n\n return (\n \n \n \n \n \n \n )\n }\n)\n"],"names":["Spinner","forwardRef","props","ref","size","rest","jsx","Box","styles.variants","jsxs"],"mappings":"gZAaO,MAAAA,EAAAC,EAAA,WAAoD,CAAAC,EAAAC,IAAA,CAKvD,KAAA,CAAA,KAAAC,EAAA,KAAA,GAAAC,CAAA,EAAAH,EAEA,OAAAI,EAAA,IACEC,EAAC,CAAA,UAAAC,EAAA,CAAA,KAAAJ,EAAA,EACoC,MAAA,SAC7B,IAAAD,EACN,GAAAE,EACI,SAAAI,EAAA,KAEJ,MAAC,CAAA,QAAA,YACS,MAAA,6BACF,OAAA,eACC,SAAA,CAEPH,EAAA,IAAA,SAAC,CAAA,GAAA,KACI,GAAA,KACA,KAAA,OACE,EAAA,OACH,gBAAA,KACc,cAAA,OACF,CAAA,EAChBA,EAAA,IACA,SAAC,CAAA,GAAA,KACI,GAAA,KACA,KAAA,OACE,QAAA,OACG,EAAA,OACN,cAAA,OACY,CAAA,CAChB,CAAA,CAAA,CACF,CAAA,CACF,CAGN;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Spinner.stories-1c05677f.js b/assets/Spinner.stories-50cd18ec.js similarity index 99% rename from assets/Spinner.stories-1c05677f.js rename to assets/Spinner.stories-50cd18ec.js index f25cbf3ad..91d5f0f53 100644 --- a/assets/Spinner.stories-1c05677f.js +++ b/assets/Spinner.stories-50cd18ec.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-69eee039.js";import{r as f}from"./index-7c191284.js";import{B as p}from"./Box-8ffdd394.js";import{c as S}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./atoms-c7901a03.js";var V=S({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const i=f.forwardRef((r,d)=>{const{size:c="md",...m}=r;return n.jsx(p,{className:V({size:c}),color:"text50",ref:d,...m,children:n.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[n.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),n.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});try{i.displayName="Spinner",i.__docgenInfo={description:"",displayName:"Spinner",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const b={title:"Components/Spinner",component:i},t={args:{size:"md"}},e={args:{size:"md",color:"warning"}};var s,a,l;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-1caa8f64.js";import{r as f}from"./index-1cdf6ce0.js";import{B as p}from"./Box-e4a86556.js";import{c as S}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./atoms-c7901a03.js";var V=S({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const i=f.forwardRef((r,d)=>{const{size:c="md",...m}=r;return n.jsx(p,{className:V({size:c}),color:"text50",ref:d,...m,children:n.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[n.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),n.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});try{i.displayName="Spinner",i.__docgenInfo={description:"",displayName:"Spinner",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const b={title:"Components/Spinner",component:i},t={args:{size:"md"}},e={args:{size:"md",color:"warning"}};var s,a,l;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { size: 'md' } @@ -8,4 +8,3 @@ import{j as n}from"./jsx-runtime-69eee039.js";import{r as f}from"./index-7c19128 color: 'warning' } }`,...(u=(g=e.parameters)==null?void 0:g.docs)==null?void 0:u.source}}};const q=["Default","PendingSpinner"];export{t as Default,e as PendingSpinner,q as __namedExportsOrder,b as default}; -//# sourceMappingURL=Spinner.stories-1c05677f.js.map diff --git a/assets/StopClickPropagation.stories-2d51b86e.js.map b/assets/StopClickPropagation.stories-2d51b86e.js.map deleted file mode 100644 index 57f6ca094..000000000 --- a/assets/StopClickPropagation.stories-2d51b86e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StopClickPropagation.stories-2d51b86e.js","sources":["../../src/components/StopClickPropagation/StopClickPropagation.tsx"],"sourcesContent":["import { ElementType, forwardRef, PropsWithChildren } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\n\nexport const StopClickPropagation: PolymorphicComponent<\n PropsWithChildren,\n 'div'\n> = forwardRef(\n (\n { children }: PolymorphicProps,\n ref: PolymorphicRef\n ) => (\n {\n ev.preventDefault()\n ev.stopPropagation()\n }}\n onKeyDown={ev => {\n if (ev.key === 'Enter' || ev.key === ' ') {\n ev.preventDefault()\n ev.stopPropagation()\n }\n }}\n >\n {children}\n \n )\n)\n"],"names":["StopClickPropagation","forwardRef","children","ref","jsx","Box","ev"],"mappings":"ieASO,MAAAA,EAAAC,EAAA,WAGH,CAAA,CAAA,SAAAC,GAAAC,IAAAC,EAAA,IAKAC,EAAC,CAAA,IAAAF,EACC,MAAA,MACM,OAAA,MACC,QAAAG,GAAA,CAELA,EAAA,eAAA,EACAA,EAAA,gBAAA,CAAmB,EACrB,UAAAA,GAAA,EAEEA,EAAA,MAAA,SAAAA,EAAA,MAAA,OACEA,EAAA,eAAA,EACAA,EAAA,gBAAA,EACF,EACF,SAAAJ,CAEC,CAAA,CAGP;;"} \ No newline at end of file diff --git a/assets/StopClickPropagation.stories-2d51b86e.js b/assets/StopClickPropagation.stories-490a8577.js similarity index 98% rename from assets/StopClickPropagation.stories-2d51b86e.js rename to assets/StopClickPropagation.stories-490a8577.js index 8db0c378e..ff1e88fe7 100644 --- a/assets/StopClickPropagation.stories-2d51b86e.js +++ b/assets/StopClickPropagation.stories-490a8577.js @@ -1,4 +1,3 @@ -import{j as n}from"./jsx-runtime-69eee039.js";import{B as s}from"./Box-8ffdd394.js";import{I as d}from"./IconButton-3648ed15.js";import{T as r}from"./Text-cdf53fa8.js";import{a as c}from"./WarningIcon-b42ff4ac.js";import{r as m}from"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import"./Button-cbaba6d6.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";const i=m.forwardRef(({children:a},u)=>n.jsx(s,{ref:u,width:"fit",height:"fit",onClick:t=>{t.preventDefault(),t.stopPropagation()},onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation())},children:a}));try{i.displayName="StopClickPropagation",i.__docgenInfo={description:"",displayName:"StopClickPropagation",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const k={title:"Components/StopClickPropagation",component:i},f=()=>n.jsxs(s,{alignItems:"center",background:{base:"backgroundSecondary",hover:"backgroundBackdrop"},borderRadius:"md",cursor:"pointer",flexDirection:"row",justifyContent:"space-between",onClick:()=>console.log("Container Clicked!!"),padding:"4",children:[n.jsxs(s,{children:[n.jsx(r,{as:"p",fontWeight:"medium",children:"This container here has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"The button on the right also has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"Since the button is wrapped in a StopClickPropagation component, the click-through is prevented."})]}),n.jsx(i,{children:n.jsx(d,{icon:c,onClick:()=>console.log("Button Clicked! Propagation Stopped!")})})]}),e={render:f};var l,o,g;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-1caa8f64.js";import{B as s}from"./Box-e4a86556.js";import{I as d}from"./IconButton-64184e44.js";import{T as r}from"./Text-b96ac7e7.js";import{a as c}from"./WarningIcon-c4815a2d.js";import{r as m}from"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./Button-e8455a66.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";const i=m.forwardRef(({children:a},u)=>n.jsx(s,{ref:u,width:"fit",height:"fit",onClick:t=>{t.preventDefault(),t.stopPropagation()},onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation())},children:a}));try{i.displayName="StopClickPropagation",i.__docgenInfo={description:"",displayName:"StopClickPropagation",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const k={title:"Components/StopClickPropagation",component:i},f=()=>n.jsxs(s,{alignItems:"center",background:{base:"backgroundSecondary",hover:"backgroundBackdrop"},borderRadius:"md",cursor:"pointer",flexDirection:"row",justifyContent:"space-between",onClick:()=>console.log("Container Clicked!!"),padding:"4",children:[n.jsxs(s,{children:[n.jsx(r,{as:"p",fontWeight:"medium",children:"This container here has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"The button on the right also has a click action."}),n.jsx(r,{as:"p",fontWeight:"medium",children:"Since the button is wrapped in a StopClickPropagation component, the click-through is prevented."})]}),n.jsx(i,{children:n.jsx(d,{icon:c,onClick:()=>console.log("Button Clicked! Propagation Stopped!")})})]}),e={render:f};var l,o,g;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ render: StoryWrapper }`,...(g=(o=e.parameters)==null?void 0:o.docs)==null?void 0:g.source}}};const L=["Default"];export{e as Default,L as __namedExportsOrder,k as default}; -//# sourceMappingURL=StopClickPropagation.stories-2d51b86e.js.map diff --git a/assets/Switch-617544d3.js.map b/assets/Switch-617544d3.js.map deleted file mode 100644 index 15368cc4c..000000000 --- a/assets/Switch-617544d3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Switch-617544d3.js","sources":["../../node_modules/.pnpm/@radix-ui+react-switch@1.0.3_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-switch/dist/index.mjs","../../src/components/Switch/Switch.tsx"],"sourcesContent":["import $irPIl$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $irPIl$forwardRef, useState as $irPIl$useState, useRef as $irPIl$useRef, createElement as $irPIl$createElement, useEffect as $irPIl$useEffect} from \"react\";\nimport {composeEventHandlers as $irPIl$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $irPIl$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $irPIl$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $irPIl$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {usePrevious as $irPIl$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {useSize as $irPIl$useSize} from \"@radix-ui/react-use-size\";\nimport {Primitive as $irPIl$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Switch\n * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$SWITCH_NAME = 'Switch';\nconst [$6be4966fd9bbc698$var$createSwitchContext, $6be4966fd9bbc698$export$cf7f5f17f69cbd43] = $irPIl$createContextScope($6be4966fd9bbc698$var$SWITCH_NAME);\nconst [$6be4966fd9bbc698$var$SwitchProvider, $6be4966fd9bbc698$var$useSwitchContext] = $6be4966fd9bbc698$var$createSwitchContext($6be4966fd9bbc698$var$SWITCH_NAME);\nconst $6be4966fd9bbc698$export$b5d5cf8927ab7262 = /*#__PURE__*/ $irPIl$forwardRef((props, forwardedRef)=>{\n const { __scopeSwitch: __scopeSwitch , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...switchProps } = props;\n const [button, setButton] = $irPIl$useState(null);\n const composedRefs = $irPIl$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $irPIl$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n const [checked = false, setChecked] = $irPIl$useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n return /*#__PURE__*/ $irPIl$createElement($6be4966fd9bbc698$var$SwitchProvider, {\n scope: __scopeSwitch,\n checked: checked,\n disabled: disabled\n }, /*#__PURE__*/ $irPIl$createElement($irPIl$Primitive.button, $irPIl$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"switch\",\n \"aria-checked\": checked,\n \"aria-required\": required,\n \"data-state\": $6be4966fd9bbc698$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, switchProps, {\n ref: composedRefs,\n onClick: $irPIl$composeEventHandlers(props.onClick, (event)=>{\n setChecked((prevChecked)=>!prevChecked\n );\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if switch is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect switch updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $irPIl$createElement($6be4966fd9bbc698$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($6be4966fd9bbc698$export$b5d5cf8927ab7262, {\n displayName: $6be4966fd9bbc698$var$SWITCH_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SwitchThumb\n * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$THUMB_NAME = 'SwitchThumb';\nconst $6be4966fd9bbc698$export$4d07bf653ea69106 = /*#__PURE__*/ $irPIl$forwardRef((props, forwardedRef)=>{\n const { __scopeSwitch: __scopeSwitch , ...thumbProps } = props;\n const context = $6be4966fd9bbc698$var$useSwitchContext($6be4966fd9bbc698$var$THUMB_NAME, __scopeSwitch);\n return /*#__PURE__*/ $irPIl$createElement($irPIl$Primitive.span, $irPIl$babelruntimehelpersesmextends({\n \"data-state\": $6be4966fd9bbc698$var$getState(context.checked),\n \"data-disabled\": context.disabled ? '' : undefined\n }, thumbProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6be4966fd9bbc698$export$4d07bf653ea69106, {\n displayName: $6be4966fd9bbc698$var$THUMB_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6be4966fd9bbc698$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $irPIl$useRef(null);\n const prevChecked = $irPIl$usePrevious(checked);\n const controlSize = $irPIl$useSize(control); // Bubble checked change to parents (e.g form change event)\n $irPIl$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $irPIl$createElement(\"input\", $irPIl$babelruntimehelpersesmextends({\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $6be4966fd9bbc698$var$getState(checked) {\n return checked ? 'checked' : 'unchecked';\n}\nconst $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5cf8927ab7262;\nconst $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;\n\n\n\n\nexport {$6be4966fd9bbc698$export$cf7f5f17f69cbd43 as createSwitchScope, $6be4966fd9bbc698$export$b5d5cf8927ab7262 as Switch, $6be4966fd9bbc698$export$4d07bf653ea69106 as SwitchThumb, $6be4966fd9bbc698$export$be92b6f5f03c0fe9 as Root, $6be4966fd9bbc698$export$6521433ed15a34db as Thumb};\n//# sourceMappingURL=index.mjs.map\n","import * as SwitchPrimitive from '@radix-ui/react-switch'\n\nimport { Box } from '../Box'\nimport { Field, FieldProps } from '../Field'\n\nimport * as styles from './styles.css'\n\ntype SwitchProps = FieldProps & SwitchPrimitive.SwitchProps\n\nexport const Switch = (props: SwitchProps) => {\n const {\n disabled,\n label,\n labelLocation = 'left',\n description,\n id,\n name,\n ...rest\n } = props\n\n return (\n \n \n \n \n \n \n \n )\n}\n"],"names":["$6be4966fd9bbc698$var$SWITCH_NAME","$6be4966fd9bbc698$var$createSwitchContext","$6be4966fd9bbc698$export$cf7f5f17f69cbd43","$irPIl$createContextScope","$6be4966fd9bbc698$var$SwitchProvider","$6be4966fd9bbc698$var$useSwitchContext","$6be4966fd9bbc698$export$b5d5cf8927ab7262","$irPIl$forwardRef","props","forwardedRef","__scopeSwitch","name","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","switchProps","button","setButton","$irPIl$useState","composedRefs","$irPIl$useComposedRefs","node","hasConsumerStoppedPropagationRef","$irPIl$useRef","isFormControl","checked","setChecked","$irPIl$useControllableState","$irPIl$createElement","$irPIl$Primitive","$irPIl$babelruntimehelpersesmextends","$6be4966fd9bbc698$var$getState","$irPIl$composeEventHandlers","event","prevChecked","$6be4966fd9bbc698$var$BubbleInput","$6be4966fd9bbc698$var$THUMB_NAME","$6be4966fd9bbc698$export$4d07bf653ea69106","thumbProps","context","control","bubbles","inputProps","ref","$irPIl$usePrevious","controlSize","$irPIl$useSize","$irPIl$useEffect","input","inputProto","$6be4966fd9bbc698$export$be92b6f5f03c0fe9","$6be4966fd9bbc698$export$6521433ed15a34db","Switch","label","labelLocation","description","id","rest","jsx","Field","SwitchPrimitive.Root","styles.root","Box","SwitchPrimitive.Thumb","styles.thumb"],"mappings":"iaAqBqG,MAAMA,EAAoC,SACzI,CAACC,EAA2CC,EAAyC,EAAIC,EAA0BH,CAAiC,EACpJ,CAACI,EAAsCC,CAAsC,EAAIJ,EAA0CD,CAAiC,EAC5JM,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,cAAeC,EAAgB,KAAMC,EAAO,QAASC,EAAc,eAAgBC,EAAiB,SAAUC,EAAW,SAAUC,EAAW,MAAOC,EAAQ,KAAO,gBAAiBC,EAAkB,GAAGC,CAAa,EAAGV,EAC5N,CAACW,EAAQC,CAAS,EAAIC,EAAe,SAAC,IAAI,EAC1CC,EAAeC,EAAuBd,EAAee,GAAOJ,EAAUI,CAAI,CACpF,EACUC,EAAmCC,SAAc,EAAK,EACtDC,EAAgBR,EAAS,EAAQA,EAAO,QAAQ,MAAM,EAAK,GAC3D,CAACS,EAAU,GAAOC,CAAU,EAAIC,EAA4B,CAC9D,KAAMlB,EACN,YAAaC,EACb,S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.js b/assets/Switch-bc0c6329.js similarity index 74% rename from assets/Switch-617544d3.js rename to assets/Switch-bc0c6329.js index 442af0ac5..7a30b210f 100644 --- a/assets/Switch-617544d3.js +++ b/assets/Switch-bc0c6329.js @@ -1,2 +1 @@ -import{j as u}from"./jsx-runtime-69eee039.js";import{b as q,$ as E,a as k,d as h}from"./index-416e5a7a.js";import{r}from"./index-7c191284.js";import{a as P,c as R}from"./index-006d63ff.js";import{$ as N}from"./index-555f5aa0.js";import{$ as V}from"./index-3842af66.js";import{B as j}from"./Box-8ffdd394.js";import{F as B}from"./Field-0c069ee0.js";/* empty css */import"./atoms-c7901a03.js";const w="Switch",[I,re]=q(w),[z,L]=I(w),M=r.forwardRef((e,c)=>{const{__scopeSwitch:t,name:a,checked:o,defaultChecked:s,required:d,disabled:n,value:i="on",onCheckedChange:p,...v}=e,[l,$]=r.useState(null),C=E(c,b=>$(b)),m=r.useRef(!1),y=l?!!l.closest("form"):!0,[f=!1,S]=P({prop:o,defaultProp:s,onChange:p});return r.createElement(z,{scope:t,checked:f,disabled:n},r.createElement(k.button,h({type:"button",role:"switch","aria-checked":f,"aria-required":d,"data-state":_(f),"data-disabled":n?"":void 0,disabled:n,value:i},v,{ref:C,onClick:R(e.onClick,b=>{S(g=>!g),y&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})})),y&&r.createElement(H,{control:l,bubbles:!m.current,name:a,value:i,checked:f,required:d,disabled:n,style:{transform:"translateX(-100%)"}}))}),T="SwitchThumb",F=r.forwardRef((e,c)=>{const{__scopeSwitch:t,...a}=e,o=L(T,t);return r.createElement(k.span,h({"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:c}))}),H=e=>{const{control:c,checked:t,bubbles:a=!0,...o}=e,s=r.useRef(null),d=N(t),n=V(c);return r.useEffect(()=>{const i=s.current,p=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==t&&l){const $=new Event("click",{bubbles:a});l.call(i,t),i.dispatchEvent($)}},[d,t,a]),r.createElement("input",h({type:"checkbox","aria-hidden":!0,defaultChecked:t},o,{tabIndex:-1,ref:s,style:{...e.style,...n,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function _(e){return e?"checked":"unchecked"}const A=M,O=F;var D="_1lp2u8e1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1ss fyvr1uo fyvr1wk fyvr1yg fyvr11sz fyvr11hw fyvr12uz",U="_1lp2u8e3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ho fyvr1ko fyvr1oo fyvr1k fyvr140 fyvr11nz";const x=e=>{const{disabled:c,label:t,labelLocation:a="left",description:o,id:s,name:d,...n}=e;return u.jsx(B,{disabled:c,display:"flex",id:s??d,label:t,labelLocation:a,description:o,whiteSpace:"nowrap",children:u.jsx(A,{className:D,disabled:c,...n,children:u.jsx(j,{position:"relative",width:"full",height:"full",children:u.jsx(O,{className:U})})})})};try{x.displayName="Switch",x.__docgenInfo={description:"",displayName:"Switch",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{x as S}; -//# sourceMappingURL=Switch-617544d3.js.map +import{j as b}from"./jsx-runtime-1caa8f64.js";import{a as q,$ as E,c as k,d as h}from"./index-bff3e5ca.js";import{r}from"./index-1cdf6ce0.js";import{a as P,c as R}from"./index-ed6c0076.js";import{$ as N}from"./index-b65dbec4.js";import{$ as V}from"./index-0d95b182.js";import{B as j}from"./Box-e4a86556.js";import{F as B}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";const w="Switch",[I,re]=q(w),[z,L]=I(w),M=r.forwardRef((e,c)=>{const{__scopeSwitch:t,name:a,checked:o,defaultChecked:s,required:d,disabled:n,value:i="on",onCheckedChange:p,...v}=e,[l,$]=r.useState(null),C=E(c,u=>$(u)),m=r.useRef(!1),y=l?!!l.closest("form"):!0,[f=!1,S]=P({prop:o,defaultProp:s,onChange:p});return r.createElement(z,{scope:t,checked:f,disabled:n},r.createElement(k.button,h({type:"button",role:"switch","aria-checked":f,"aria-required":d,"data-state":_(f),"data-disabled":n?"":void 0,disabled:n,value:i},v,{ref:C,onClick:R(e.onClick,u=>{S(g=>!g),y&&(m.current=u.isPropagationStopped(),m.current||u.stopPropagation())})})),y&&r.createElement(H,{control:l,bubbles:!m.current,name:a,value:i,checked:f,required:d,disabled:n,style:{transform:"translateX(-100%)"}}))}),T="SwitchThumb",F=r.forwardRef((e,c)=>{const{__scopeSwitch:t,...a}=e,o=L(T,t);return r.createElement(k.span,h({"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0},a,{ref:c}))}),H=e=>{const{control:c,checked:t,bubbles:a=!0,...o}=e,s=r.useRef(null),d=N(t),n=V(c);return r.useEffect(()=>{const i=s.current,p=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==t&&l){const $=new Event("click",{bubbles:a});l.call(i,t),i.dispatchEvent($)}},[d,t,a]),r.createElement("input",h({type:"checkbox","aria-hidden":!0,defaultChecked:t},o,{tabIndex:-1,ref:s,style:{...e.style,...n,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function _(e){return e?"checked":"unchecked"}const A=M,O=F;var D="_1lp2u8e1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1ss fyvr1uo fyvr1wk fyvr1yg fyvr11sz fyvr11hw fyvr12uz",U="_1lp2u8e3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ho fyvr1ko fyvr1oo fyvr1k fyvr140 fyvr11nz";const x=e=>{const{disabled:c,label:t,labelLocation:a="left",description:o,id:s,name:d,...n}=e;return b.jsx(B,{disabled:c,display:"flex",id:s??d,label:t,labelLocation:a,description:o,whiteSpace:"nowrap",children:b.jsx(A,{className:D,disabled:c,...n,children:b.jsx(j,{position:"relative",width:"full",height:"full",children:b.jsx(O,{className:U})})})})};try{x.displayName="Switch",x.__docgenInfo={description:"",displayName:"Switch",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{x as S}; diff --git a/assets/Switch.stories-9afba26b.js b/assets/Switch.stories-813fd21c.js similarity index 52% rename from assets/Switch.stories-9afba26b.js rename to assets/Switch.stories-813fd21c.js index 0bf6da048..da0bd71cf 100644 --- a/assets/Switch.stories-9afba26b.js +++ b/assets/Switch.stories-813fd21c.js @@ -1,8 +1,7 @@ -import{S as e}from"./Switch-617544d3.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-555f5aa0.js";import"./index-3842af66.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-0c069ee0.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const _={title:"Forms/Switch",component:e},t={args:{disabled:!1,label:"Switch Title",description:"Switch Description"}};var r,i,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{S as e}from"./Switch-bc0c6329.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-b65dbec4.js";import"./index-0d95b182.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Field-cc1005d3.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const _={title:"Forms/Switch",component:e},t={args:{disabled:!1,label:"Switch Title",description:"Switch Description"}};var r,i,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { disabled: false, label: 'Switch Title', description: 'Switch Description' } }`,...(o=(i=t.parameters)==null?void 0:i.docs)==null?void 0:o.source}}};const x=["Default"];export{t as Default,x as __namedExportsOrder,_ as default}; -//# sourceMappingURL=Switch.stories-9afba26b.js.map diff --git a/assets/Switch.stories-9afba26b.js.map b/assets/Switch.stories-9afba26b.js.map deleted file mode 100644 index efe223452..000000000 --- a/assets/Switch.stories-9afba26b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Switch.stories-9afba26b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"} \ No newline at end of file diff --git a/assets/TabbedNav.stories-dee72df9.js b/assets/TabbedNav.stories-66b38836.js similarity index 98% rename from assets/TabbedNav.stories-dee72df9.js rename to assets/TabbedNav.stories-66b38836.js index 591670cce..66ea91397 100644 --- a/assets/TabbedNav.stories-dee72df9.js +++ b/assets/TabbedNav.stories-66b38836.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{r as V}from"./index-7c191284.js";import{B}from"./Badge-8fcefbf1.js";import{B as i,c as I}from"./Box-8ffdd394.js";import{T as j}from"./Text-cdf53fa8.js";import{a1 as z,O as _}from"./WarningIcon-b42ff4ac.js";import{B as H}from"./Button-cbaba6d6.js";/* empty css */import"./atoms-c7901a03.js";import{c as D}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./typography-f274f330.js";var E=D({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12vx",false:"nwwh3zb"},disabled:{true:"fyvr12vh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11u5 fyvr12sb"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rz"],[{active:!0,variant:"line"},"fyvr12rt"],[{active:!1,variant:"line"},"fyvr12rz"]]});const c=r=>{const{className:s,defaultValue:m,onTabChange:l,size:o="sm",tabs:f,variant:a="pill",...k}=r,[T,C]=V.useState(!1),[p,y]=V.useState(m??f[0].value),M=async(t,n,u)=>{var v;t.preventDefault();const S=p;if(p===n.value)return;y(f[u].value),C(!0);const W=n.onLoad?await((v=n.onLoad)==null?void 0:v.call(n)):!0;C(!1),W?l==null||l(n.value):y(S)};return e.jsx(i,{as:"nav",...k,children:e.jsx(i,{as:"ul",gap:"2",children:f.map((t,n)=>{const u=t.value===p;return e.jsx(i,{as:"li",borderTopColor:a==="line"?u?"text100":"transparent":void 0,borderTopStyle:a==="line"?"solid":void 0,borderTopWidth:a==="line"?"thick":void 0,children:e.jsx(H,{className:I(s,E({active:u,variant:a})),variant:a==="line"?"text":"base",disabled:T||t.disabled,label:t.label,leftIcon:t.leftIcon??void 0,onClick:S=>M(S,t,n),padding:a==="line"?"2":void 0,paddingLeft:t.leftIcon?"1":"2",size:o,borderRadius:"circle"})},n)})})})};try{c.displayName="TabbedNav",c.__docgenInfo={description:"",displayName:"TabbedNav",props:{defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | (string & readonly string[])"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"xs"'}]}},tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabOption[]"}},onTabChange:{defaultValue:null,description:"",name:"onTabChange",required:!1,type:{name:"((value: string) => void)"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"line"'},{value:'"pill"'}]}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const ee={title:"Components/TabbedNav",component:c},b=r=>new Promise(s=>setTimeout(s,r*1e3)),N=[{label:"Wallet",value:"wallet",onLoad:()=>!0},{label:"Simple",value:"simple"},{label:"Another Tab",value:"another",onLoad:()=>!0},{label:e.jsxs(i,{gap:"1",alignItems:"center",children:["History",e.jsx(B,{value:"3"})]}),leftIcon:z,value:"history",onLoad:async()=>(console.log("processing..."),await b(1),!0)},{label:"Contacts (Fails to load)",leftIcon:_,value:"contacts",onLoad:async()=>(console.log("expecting fail..."),await b(1),!1)},{label:"Disabled",value:"disabled",disabled:!0}],R=r=>{const[s,m]=V.useState("wallet"),l=o=>{m(o)};return e.jsxs(i,{flexDirection:"column",gap:"4",children:[e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(c,{...r,onTabChange:o=>l(o)})}),e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(j,{variant:"normal",color:"text100",children:s})})]})},d={render:R,args:{defaultValue:"wallet",size:"sm",tabs:N}},g={render:R,args:{defaultValue:"wallet",variant:"line",tabs:N}};var h,x,F;d.parameters={...d.parameters,docs:{...(h=d.parameters)==null?void 0:h.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-1caa8f64.js";import{r as V}from"./index-1cdf6ce0.js";import{B}from"./Badge-d4166747.js";import{B as i,c as I}from"./Box-e4a86556.js";import{T as j}from"./Text-b96ac7e7.js";import{a1 as z,O as _}from"./WarningIcon-c4815a2d.js";import{B as H}from"./Button-e8455a66.js";/* empty css */import"./atoms-c7901a03.js";import{c as D}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";/* empty css */import"./typography-f274f330.js";var E=D({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12vx",false:"nwwh3zb"},disabled:{true:"fyvr12vh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11u5 fyvr12sb"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rz"],[{active:!0,variant:"line"},"fyvr12rt"],[{active:!1,variant:"line"},"fyvr12rz"]]});const c=r=>{const{className:s,defaultValue:m,onTabChange:l,size:o="sm",tabs:f,variant:a="pill",...k}=r,[T,C]=V.useState(!1),[p,y]=V.useState(m??f[0].value),M=async(t,n,u)=>{var v;t.preventDefault();const S=p;if(p===n.value)return;y(f[u].value),C(!0);const W=n.onLoad?await((v=n.onLoad)==null?void 0:v.call(n)):!0;C(!1),W?l==null||l(n.value):y(S)};return e.jsx(i,{as:"nav",...k,children:e.jsx(i,{as:"ul",gap:"2",children:f.map((t,n)=>{const u=t.value===p;return e.jsx(i,{as:"li",borderTopColor:a==="line"?u?"text100":"transparent":void 0,borderTopStyle:a==="line"?"solid":void 0,borderTopWidth:a==="line"?"thick":void 0,children:e.jsx(H,{className:I(s,E({active:u,variant:a})),variant:a==="line"?"text":"base",disabled:T||t.disabled,label:t.label,leftIcon:t.leftIcon??void 0,onClick:S=>M(S,t,n),padding:a==="line"?"2":void 0,paddingLeft:t.leftIcon?"1":"2",size:o,borderRadius:"circle"})},n)})})})};try{c.displayName="TabbedNav",c.__docgenInfo={description:"",displayName:"TabbedNav",props:{defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | (string & readonly string[])"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"xs"'}]}},tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabOption[]"}},onTabChange:{defaultValue:null,description:"",name:"onTabChange",required:!1,type:{name:"((value: string) => void)"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"line"'},{value:'"pill"'}]}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const ee={title:"Components/TabbedNav",component:c},b=r=>new Promise(s=>setTimeout(s,r*1e3)),N=[{label:"Wallet",value:"wallet",onLoad:()=>!0},{label:"Simple",value:"simple"},{label:"Another Tab",value:"another",onLoad:()=>!0},{label:e.jsxs(i,{gap:"1",alignItems:"center",children:["History",e.jsx(B,{value:"3"})]}),leftIcon:z,value:"history",onLoad:async()=>(console.log("processing..."),await b(1),!0)},{label:"Contacts (Fails to load)",leftIcon:_,value:"contacts",onLoad:async()=>(console.log("expecting fail..."),await b(1),!1)},{label:"Disabled",value:"disabled",disabled:!0}],R=r=>{const[s,m]=V.useState("wallet"),l=o=>{m(o)};return e.jsxs(i,{flexDirection:"column",gap:"4",children:[e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(c,{...r,onTabChange:o=>l(o)})}),e.jsx(i,{background:"backgroundSecondary",padding:"4",borderRadius:"md",children:e.jsx(j,{variant:"normal",color:"text100",children:s})})]})},d={render:R,args:{defaultValue:"wallet",size:"sm",tabs:N}},g={render:R,args:{defaultValue:"wallet",variant:"line",tabs:N}};var h,x,F;d.parameters={...d.parameters,docs:{...(h=d.parameters)==null?void 0:h.docs,source:{originalSource:`{ render: StoryWrapper, args: { defaultValue: 'wallet', @@ -13,4 +13,3 @@ import{j as e}from"./jsx-runtime-69eee039.js";import{r as V}from"./index-7c19128 tabs } }`,...(L=(w=g.parameters)==null?void 0:w.docs)==null?void 0:L.source}}};const ne=["Pill","LineTabs"];export{g as LineTabs,d as Pill,ne as __namedExportsOrder,ee as default}; -//# sourceMappingURL=TabbedNav.stories-dee72df9.js.map diff --git a/assets/TabbedNav.stories-dee72df9.js.map b/assets/TabbedNav.stories-dee72df9.js.map deleted file mode 100644 index d881d6488..000000000 --- a/assets/TabbedNav.stories-dee72df9.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TabbedNav.stories-dee72df9.js","sources":["../../src/components/TabbedNav/TabbedNav.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ComponentType, MouseEvent, ReactNode, useState } from 'react'\n\nimport { Box, PolymorphicProps } from '~/components/Box'\nimport { Button } from '~/components/Button'\nimport { IconProps } from '~/icons/types'\n\nimport { tabVariants, TabVariants } from './styles.css'\n\nexport type TabOption = {\n label: ReactNode\n leftIcon?: ComponentType\n value: string\n disabled?: boolean\n onLoad?: () => boolean | Promise\n}\n\ntype TabbedNavProps = {\n defaultValue?: string\n size?: 'xs' | 'sm'\n tabs: TabOption[]\n onTabChange?: (value: string) => void\n} & TabVariants\n\nexport const TabbedNav = (props: PolymorphicProps) => {\n const {\n className,\n defaultValue,\n onTabChange,\n size = 'sm',\n tabs,\n variant = 'pill',\n ...rest\n } = props\n\n const [isLoading, setIsLoading] = useState(false)\n const [value, setValue] = useState(defaultValue ?? tabs[0].value)\n\n const handleTabClick = async (\n event: MouseEvent,\n option: TabOption,\n tabIndex: number\n ) => {\n event.preventDefault()\n\n const prevValue = value\n\n if (value === option.value) {\n return\n }\n\n setValue(tabs[tabIndex].value)\n\n setIsLoading(true)\n\n const loadSucceeded = option.onLoad ? await option.onLoad?.() : true\n\n setIsLoading(false)\n\n if (loadSucceeded) {\n onTabChange?.(option.value)\n } else {\n setValue(prevValue)\n }\n }\n\n return (\n \n \n {tabs.map((option, tabIndex) => {\n const isActive = option.value === value\n\n return (\n \n ) =>\n handleTabClick(ev, option, tabIndex)\n }\n padding={variant === 'line' ? '2' : undefined}\n paddingLeft={option.leftIcon ? '1' : '2'}\n size={size}\n borderRadius=\"circle\"\n />\n \n )\n })}\n \n \n )\n}\n"],"names":["TabbedNav","props","className","defaultValue","onTabChange","size","tabs","variant","rest","isLoading","setIsLoading","useState","value","setValue","handleTabClick","event","option","tabIndex","prevValue","loadSucceeded","_a","jsx","Box","isActive","Button","clsx","tabVariants","ev"],"mappings":"q4BAwBO,MAAAA,EAAAC,GAAA,CACL,KAAA,CAAM,UAAAC,EACJ,aAAAC,EACA,YAAAC,EACA,KAAAC,EAAA,KACO,KAAAC,EACP,QAAAC,EAAA,OACU,GAAAC,CACP,EAAAP,EAGL,CAAAQ,EAAAC,CAAA,EAAAC,EAAA,SAAA,EAAA,EACA,CAAAC,EAAAC,CAAA,EAAAF,EAAA,SAAAR,GAAAG,EAAA,CAAA,EAAA,KAAA,EAEAQ,EAAA,MAAAC,EAAAC,EAAAC,IAAA,OAKEF,EAAA,eAAA,EAEA,MAAAG,EAAAN,EAEA,GAAAA,IAAAI,EAAA,MACE,OAGFH,EAAAP,EAAAW,CAAA,EAAA,KAAA,EAEAP,EAAA,EAAA,EAEA,MAAAS,EAAAH,EAAA,OAAA,OAAAI,EAAAJ,EAAA,SAAA,YAAAI,EAAA,KAAAJ,IAAA,GAEAN,EAAA,EAAA,EAEAS,EACEf,GAAA,MAAAA,EAAAY,EAAA,OAEAH,EAAAK,CAAA,CACF,EAGF,OAAAG,EAAA,IAAAC,EAAA,CAAA,GAAA,MAAA,GAAAd,EAAA,SAAAa,EAAAA,IAAAC,EAAA,CAAA,GAAA,KAAA,IAAA,IAAA,SAAAhB,EAAA,IAAA,CAAAU,EAAAC,IAAA,CAIQ,MAAAM,EAAAP,EAAA,QAAAJ,EAEA,OAAAS,EAAA,IACEC,EAAC,CAAA,GAAA,KACI,eAAAf,IAAA,OAAAgB,EAAA,UAAA,cAAA,OAOG,eAAAhB,IAAA,OAAA,QAAA,OAEyC,eAAAA,IAAA,OAAA,QAAA,OACA,SAAAc,EAAA,IAE/CG,EAAC,CAAA,UAAAC,EACYvB,EACTwB,EAAA,CAAA,OAAAH,EAAA,QAAAhB,CAAA,CAAA,CACyC,EAC3C,QAAAA,IAAA,OAAA,OAAA,OACuC,SAAAE,GAAAO,EAAA,SACT,MAAAA,EAAA,MAChB,SAAAA,EAAA,UAAA,OACe,QAAAW,GAAAb,EAAAa,EAAAX,EAAAC,CAAA,EAEQ,QAAAV,IAAA,OAAA,IAAA,OAED,YAAAS,EAAA,SAAA,IAAA,IACC,KAAAX,EACrC,aAAA,QACa,CAAA,CACf,EAAAY,CA3BK,CA4BP,CAAA,CAAA,CAAA,CAAA,CAAA,CAMZ;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Tabs.stories-3b51c546.js.map b/assets/Tabs.stories-3b51c546.js.map deleted file mode 100644 index 28070c5cf..000000000 --- a/assets/Tabs.stories-3b51c546.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Tabs.stories-3b51c546.js","sources":["../../node_modules/.pnpm/@radix-ui+react-tabs@1.0.4_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-tabs/dist/index.mjs","../../src/components/Tabs/Tabs.tsx"],"sourcesContent":["import $1IHzk$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $1IHzk$forwardRef, createElement as $1IHzk$createElement, useRef as $1IHzk$useRef, useEffect as $1IHzk$useEffect} from \"react\";\nimport {composeEventHandlers as $1IHzk$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createContextScope as $1IHzk$createContextScope} from \"@radix-ui/react-context\";\nimport {createRovingFocusGroupScope as $1IHzk$createRovingFocusGroupScope, Root as $1IHzk$Root, Item as $1IHzk$Item} from \"@radix-ui/react-roving-focus\";\nimport {Presence as $1IHzk$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $1IHzk$Primitive} from \"@radix-ui/react-primitive\";\nimport {useDirection as $1IHzk$useDirection} from \"@radix-ui/react-direction\";\nimport {useControllableState as $1IHzk$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useId as $1IHzk$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Tabs\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TABS_NAME = 'Tabs';\nconst [$69cb30bb0017df05$var$createTabsContext, $69cb30bb0017df05$export$355f5bd209d7b13a] = $1IHzk$createContextScope($69cb30bb0017df05$var$TABS_NAME, [\n $1IHzk$createRovingFocusGroupScope\n]);\nconst $69cb30bb0017df05$var$useRovingFocusGroupScope = $1IHzk$createRovingFocusGroupScope();\nconst [$69cb30bb0017df05$var$TabsProvider, $69cb30bb0017df05$var$useTabsContext] = $69cb30bb0017df05$var$createTabsContext($69cb30bb0017df05$var$TABS_NAME);\nconst $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , value: valueProp , onValueChange: onValueChange , defaultValue: defaultValue , orientation: orientation = 'horizontal' , dir: dir , activationMode: activationMode = 'automatic' , ...tabsProps } = props;\n const direction = $1IHzk$useDirection(dir);\n const [value, setValue] = $1IHzk$useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n return /*#__PURE__*/ $1IHzk$createElement($69cb30bb0017df05$var$TabsProvider, {\n scope: __scopeTabs,\n baseId: $1IHzk$useId(),\n value: value,\n onValueChange: setValue,\n orientation: orientation,\n dir: direction,\n activationMode: activationMode\n }, /*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.div, $1IHzk$babelruntimehelpersesmextends({\n dir: direction,\n \"data-orientation\": orientation\n }, tabsProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$b2539bed5023c21c, {\n displayName: $69cb30bb0017df05$var$TABS_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TabsList\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TAB_LIST_NAME = 'TabsList';\nconst $69cb30bb0017df05$export$9712d22edc0d78c1 = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , loop: loop = true , ...listProps } = props;\n const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);\n const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);\n return /*#__PURE__*/ $1IHzk$createElement($1IHzk$Root, $1IHzk$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n orientation: context.orientation,\n dir: context.dir,\n loop: loop\n }), /*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.div, $1IHzk$babelruntimehelpersesmextends({\n role: \"tablist\",\n \"aria-orientation\": context.orientation\n }, listProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$9712d22edc0d78c1, {\n displayName: $69cb30bb0017df05$var$TAB_LIST_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TabsTrigger\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$TRIGGER_NAME = 'TabsTrigger';\nconst $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , value: value , disabled: disabled = false , ...triggerProps } = props;\n const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TRIGGER_NAME, __scopeTabs);\n const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);\n const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);\n const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n return /*#__PURE__*/ $1IHzk$createElement($1IHzk$Item, $1IHzk$babelruntimehelpersesmextends({\n asChild: true\n }, rovingFocusGroupScope, {\n focusable: !disabled,\n active: isSelected\n }), /*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.button, $1IHzk$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"tab\",\n \"aria-selected\": isSelected,\n \"aria-controls\": contentId,\n \"data-state\": isSelected ? 'active' : 'inactive',\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n id: triggerId\n }, triggerProps, {\n ref: forwardedRef,\n onMouseDown: $1IHzk$composeEventHandlers(props.onMouseDown, (event)=>{\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!disabled && event.button === 0 && event.ctrlKey === false) context.onValueChange(value);\n else // prevent focus to avoid accidental activation\n event.preventDefault();\n }),\n onKeyDown: $1IHzk$composeEventHandlers(props.onKeyDown, (event)=>{\n if ([\n ' ',\n 'Enter'\n ].includes(event.key)) context.onValueChange(value);\n }),\n onFocus: $1IHzk$composeEventHandlers(props.onFocus, ()=>{\n // handle \"automatic\" activation if necessary\n // ie. activate tab following focus\n const isAutomaticActivation = context.activationMode !== 'manual';\n if (!isSelected && !disabled && isAutomaticActivation) context.onValueChange(value);\n })\n })));\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$8114b9fdfdf9f3ba, {\n displayName: $69cb30bb0017df05$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * TabsContent\n * -----------------------------------------------------------------------------------------------*/ const $69cb30bb0017df05$var$CONTENT_NAME = 'TabsContent';\nconst $69cb30bb0017df05$export$bd905d70e8fd2ebb = /*#__PURE__*/ $1IHzk$forwardRef((props, forwardedRef)=>{\n const { __scopeTabs: __scopeTabs , value: value , forceMount: forceMount , children: children , ...contentProps } = props;\n const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$CONTENT_NAME, __scopeTabs);\n const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);\n const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);\n const isSelected = value === context.value;\n const isMountAnimationPreventedRef = $1IHzk$useRef(isSelected);\n $1IHzk$useEffect(()=>{\n const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false\n );\n return ()=>cancelAnimationFrame(rAF)\n ;\n }, []);\n return /*#__PURE__*/ $1IHzk$createElement($1IHzk$Presence, {\n present: forceMount || isSelected\n }, ({ present: present })=>/*#__PURE__*/ $1IHzk$createElement($1IHzk$Primitive.div, $1IHzk$babelruntimehelpersesmextends({\n \"data-state\": isSelected ? 'active' : 'inactive',\n \"data-orientation\": context.orientation,\n role: \"tabpanel\",\n \"aria-labelledby\": triggerId,\n hidden: !present,\n id: contentId,\n tabIndex: 0\n }, contentProps, {\n ref: forwardedRef,\n style: {\n ...props.style,\n animationDuration: isMountAnimationPreventedRef.current ? '0s' : undefined\n }\n }), present && children)\n );\n});\n/*#__PURE__*/ Object.assign($69cb30bb0017df05$export$bd905d70e8fd2ebb, {\n displayName: $69cb30bb0017df05$var$CONTENT_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ function $69cb30bb0017df05$var$makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction $69cb30bb0017df05$var$makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nconst $69cb30bb0017df05$export$be92b6f5f03c0fe9 = $69cb30bb0017df05$export$b2539bed5023c21c;\nconst $69cb30bb0017df05$export$54c2e3dc7acea9f5 = $69cb30bb0017df05$export$9712d22edc0d78c1;\nconst $69cb30bb0017df05$export$41fb9f06171c75f4 = $69cb30bb0017df05$export$8114b9fdfdf9f3ba;\nconst $69cb30bb0017df05$export$7c6e2c02157bb7d2 = $69cb30bb0017df05$export$bd905d70e8fd2ebb;\n\n\n\n\nexport {$69cb30bb0017df05$export$355f5bd209d7b13a as createTabsScope, $69cb30bb0017df05$export$b2539bed5023c21c as Tabs, $69cb30bb0017df05$export$9712d22edc0d78c1 as TabsList, $69cb30bb0017df05$export$8114b9fdfdf9f3ba as TabsTrigger, $69cb30bb0017df05$export$bd905d70e8fd2ebb as TabsContent, $69cb30bb0017df05$export$be92b6f5f03c0fe9 as Root, $69cb30bb0017df05$export$54c2e3dc7acea9f5 as List, $69cb30bb0017df05$export$41fb9f06171c75f4 as Trigger, $69cb30bb0017df05$export$7c6e2c02157bb7d2 as Content};\n//# sourceMappingURL=index.mjs.map\n","import * as TabsPrimitive from '@radix-ui/react-tabs'\nimport { ReactNode, useState, ComponentPropsWithoutRef } from 'react'\n\nimport { Box } from '../Box'\nimport { Text } from '../Text'\n\nimport * as styles from './styles.css'\n\nexport { TabsPrimitive }\n\nexport interface TabsProps\n extends ComponentPropsWithoutRef {\n tabs: (TabItemProps & { content: ReactNode })[]\n}\n\nexport interface TabItemProps {\n value: string\n label: ReactNode\n}\n\nexport const Tabs = (props: TabsProps) => {\n const { tabs, onValueChange, ...rest } = props\n const [selectedValue, setSelectedValue] = useState(\n rest.defaultValue\n )\n if (!tabs.length) {\n return null\n }\n\n const handleValueChange = (value: string) => {\n setSelectedValue(value)\n onValueChange?.(value)\n }\n\n return (\n \n \n\n {tabs.map(tab => (\n \n {tab.content}\n \n ))}\n \n )\n}\n\nexport interface TabsHeaderProps {\n tabs: TabItemProps[]\n value: string | undefined\n}\n\nexport const TabsHeader = (props: TabsHeaderProps) => {\n const { tabs, value } = props\n\n if (!tabs.length) {\n return null\n }\n\n const selectorWidth = 100 / tabs.length\n const selectedIdx = tabs.findIndex(tab => tab.value === value)\n\n return (\n \n \n \n \n\n {tabs.map(tab => (\n \n \n {tab.label}\n \n \n ))}\n \n )\n}\n\nexport const TabsRoot = TabsPrimitive.Root\n\nexport const TabsList = TabsPrimitive.TabsList\n\nexport const TabsTrigger = TabsPrimitive.TabsTrigger\n\nexport const TabsContent = TabsPrimitive.TabsContent\n"],"names":["$69cb30bb0017df05$var$TABS_NAME","$69cb30bb0017df05$var$createTabsContext","$69cb30bb0017df05$export$355f5bd209d7b13a","$1IHzk$createContextScope","$1IHzk$createRovingFocusGroupScope","$69cb30bb0017df05$var$useRovingFocusGroupScope","$69cb30bb0017df05$var$TabsProvider","$69cb30bb0017df05$var$useTabsContext","$69cb30bb0017df05$export$b2539bed5023c21c","$1IHzk$forwardRef","props","forwardedRef","__scopeTabs","valueProp","onValueChange","defaultValue","orientation","dir","activationMode","tabsProps","direction","$1IHzk$useDirection","value","setValue","$1IHzk$useControllableState","$1IHzk$createElement","$1IHzk$useId","$1IHzk$Primitive","$1IHzk$babelruntimehelpersesmextends","$69cb30bb0017df05$var$TAB_LIST_NAME","$69cb30bb0017df05$export$9712d22edc0d78c1","loop","listProps","context","rovingFocusGroupScope","$1IHzk$Root","$69cb30bb0017df05$var$TRIGGER_NAME","$69cb30bb0017df05$export$8114b9fdfdf9f3ba","disabled","triggerProps","triggerId","$69cb30bb0017df05$var$makeTriggerId","contentId","$69cb30bb0017df05$var$makeContentId","isSelected","$1IHzk$Item","$1IHzk$composeEventHandlers","event","isAutomaticActivation","$69cb30bb0017df05$var$CONTENT_NAME","$69cb30bb0017df05$export$bd905d70e8fd2ebb","forceMount","children","contentProps","isMountAnimationPreventedRef","$1IHzk$useRef","$1IHzk$useEffect","rAF","$1IHzk$Presence","present","baseId","$69cb30bb0017df05$export$be92b6f5f03c0fe9","$69cb30bb0017df05$export$54c2e3dc7acea9f5","$69cb30bb0017df05$export$41fb9f06171c75f4","$69cb30bb0017df05$export$7c6e2c02157bb7d2","Tabs","tabs","rest","selectedValue","setSelectedValue","useState","handleValueChange","jsxs","TabsPrimitive.Root","jsx","TabsHeader","tab","TabsPrimitive.Content","styles.content","selectorWidth","selectedIdx","TabsPrimitive.List","styles.list","Box","styles.selector","TabsPrimitive.Trigger","styles.trigger","Text","TabsRoot","TabsList","TabsPrimitive.TabsList","TabsTrigger","TabsPrimitive.TabsTrigger","TabsContent","TabsPrimitive.TabsContent"],"mappings":"2tBAwBqG,MAAMA,EAAkC,OACvI,CAACC,EAAyCC,EAAyC,EAAIC,EAA0BH,EAAiC,CACpJI,CACJ,CAAC,EACKC,EAAiDD,EAAkC,EACnF,CAACE,EAAoCC,CAAoC,EAAIN,EAAwCD,CAA+B,EACpJQ,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,YAAaC,EAAc,MAAOC,EAAY,cAAeC,EAAgB,aAAcC,EAAe,YAAaC,EAAc,aAAe,IAAKC,EAAM,eAAgBC,EAAiB,YAAc,GAAGC,CAAW,EAAGT,EACjOU,EAAYC,EAAoBJ,CAAG,EACnC,CAACK,EAAOC,CAAQ,EAAIC,EAA4B,CAClD,KAAMX,EACN,SAAUC,EACV,YAAaC,CACrB,CAAK,EACD,OAAqBU,EAAAA,cAAqBnB,EAAoC,CAC1E,MAAOM,EACP,OAAQc,EAAc,EACtB,MAAOJ,EACP,cAAeC,EACf,YAAaP,EACb,IAAKI,EACL,eAAgBF,CACnB,EAAgBO,gBAAq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AAA,QAAAtD,CAAA,EAEA,OAAAkD,OAAAS,GAAA,CAAA,UAAAC,GAAA,MAAA,CAAA,QAAA,MAAA,EAAA,SAAA,CAEIR,EAAAA,IAAAS,EAAA,CAAA,QAAA,OAAA,SAAA,WAAA,MAAA,IAAA,OAAA,IAAA,SAAAT,EAAA,IACE,MAAC,CAAA,UAAAU,GACmB,MAAA,CACX,MAAA,GAAAL,CAAA,IACkB,UAAA,cAAAC,EAAA,GAAA,IACmB,CAC5C,CAAA,EAAA,EAEJd,EAAA,IAAAU,GAAAF,EAAA,IAGEW,GAAe,CAAd,UAAAC,GACmB,MAAAV,EAAA,MAEP,SAAAF,EAAA,IAAAa,EAAA,CAAA,QAAA,SAAA,WAAA,OAAA,SAAAX,EAAA,KAAA,CAAA,CAIX,EAAAA,EAAA,KALS,CAAA,CAOZ,CAAA,CAAA,CAGP,EAEOY,EAAAf,EAEAgB,EAAAC,EAEAC,EAAAC,EAEAC,EAAAC;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Tabs.stories-3b51c546.js b/assets/Tabs.stories-e492a45a.js similarity index 89% rename from assets/Tabs.stories-3b51c546.js rename to assets/Tabs.stories-e492a45a.js index 0f7352085..45cebed85 100644 --- a/assets/Tabs.stories-3b51c546.js +++ b/assets/Tabs.stories-e492a45a.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-69eee039.js";import{C as G}from"./Card-3affd0fc.js";import{T as w}from"./Text-cdf53fa8.js";import{b as L,a as m,d as u}from"./index-416e5a7a.js";import{r as l}from"./index-7c191284.js";import{a as k,c as _}from"./index-006d63ff.js";import{$ as R,a as z,b as B}from"./index-e7e6c749.js";import{$ as H}from"./index-cd5c74af.js";import{$ as K}from"./index-df712b54.js";import{$ as W}from"./index-8f163998.js";import{B as X}from"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";/* empty css */import"./index-ecbee218.js";import"./index-e5d8d6a8.js";const M="Tabs",[J,Ne]=L(M,[R]),A=R(),[Q,T]=J(M),U=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:o,orientation:r="horizontal",dir:c,activationMode:p="automatic",...v}=e,b=K(c),[d,f]=k({prop:a,onChange:s,defaultProp:o});return l.createElement(Q,{scope:n,baseId:W(),value:d,onValueChange:f,orientation:r,dir:b,activationMode:p},l.createElement(m.div,u({dir:b,"data-orientation":r},v,{ref:t})))}),Y="TabsList",P=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,o=T(Y,n),r=A(n);return l.createElement(z,u({asChild:!0},r,{orientation:o.orientation,dir:o.dir,loop:a}),l.createElement(m.div,u({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),Z="TabsTrigger",S=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...o}=e,r=T(Z,n),c=A(n),p=D(r.baseId,a),v=F(r.baseId,a),b=a===r.value;return l.createElement(B,u({asChild:!0},c,{focusable:!s,active:b}),l.createElement(m.button,u({type:"button",role:"tab","aria-selected":b,"aria-controls":v,"data-state":b?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p},o,{ref:t,onMouseDown:_(e.onMouseDown,d=>{!s&&d.button===0&&d.ctrlKey===!1?r.onValueChange(a):d.preventDefault()}),onKeyDown:_(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&r.onValueChange(a)}),onFocus:_(e.onFocus,()=>{const d=r.activationMode!=="manual";!b&&!s&&d&&r.onValueChange(a)})})))}),ee="TabsContent",q=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:o,...r}=e,c=T(ee,n),p=D(c.baseId,a),v=F(c.baseId,a),b=a===c.value,d=l.useRef(b);return l.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),l.createElement(H,{present:s||b},({present:f})=>l.createElement(m.div,u({"data-state":b?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":p,hidden:!f,id:v,tabIndex:0},r,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&o))});function D(e,t){return`${e}-trigger-${t}`}function F(e,t){return`${e}-content-${t}`}const O=U,te=P,ae=S,oe=q;var re="fyvr12wh fyvr12wb",ne="_10c8o0n1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr11h0 fyvr11hw fyvr128 fyvr11sh fyvr14o",se="_10c8o0n5 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ho fyvr1ko fyvr1oo fyvr14c fyvr11tt fyvr12vz",ce="_10c8o0n3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr12wh fyvr12wb fyvr128 fyvr15o fyvr12uz fyvr11hw fyvr11ob fyvr11n2 fyvr12rz";const h=e=>{const{tabs:t,onValueChange:n,...a}=e,[s,o]=l.useState(a.defaultValue);if(!t.length)return null;const r=c=>{o(c),n==null||n(c)};return i.jsxs(O,{onValueChange:r,...a,children:[i.jsx(g,{tabs:t,value:s}),t.map(c=>i.jsx(oe,{className:re,value:c.value,children:c.content},c.value))]})},g=e=>{const{tabs:t,value:n}=e;if(!t.length)return null;const a=100/t.length,s=t.findIndex(o=>o.value===n);return i.jsxs(te,{className:ne,style:{outline:void 0},children:[i.jsx(X,{display:"flex",position:"absolute",inset:"2",height:"8",children:i.jsx("div",{className:se,style:{width:`${a}%`,transform:`translateX(${s*100}%)`}})}),t.map(o=>i.jsx(ae,{className:ce,value:o.value,children:i.jsx(w,{variant:"normal",fontWeight:"bold",children:o.label})},o.value))]})},x=O,C=P,I=S,N=q;try{h.displayName="Tabs",h.__docgenInfo={description:"",displayName:"Tabs",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"(TabItemProps & { content: ReactNode; })[]"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{g.displayName="TabsHeader",g.__docgenInfo={description:"",displayName:"TabsHeader",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabItemProps[]"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | undefined"}}}}}catch{}try{x.displayName="TabsRoot",x.__docgenInfo={description:"",displayName:"TabsRoot",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{C.displayName="TabsList",C.__docgenInfo={description:"",displayName:"TabsList",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="TabsTrigger",I.__docgenInfo={description:"",displayName:"TabsTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{N.displayName="TabsContent",N.__docgenInfo={description:"",displayName:"TabsContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const Ve={title:"Components/Tabs",component:h},y=({children:e})=>i.jsx(G,{marginTop:"4",children:i.jsx(w,{variant:"normal",color:"text100",children:e})}),$={args:{defaultValue:"coins",tabs:[{value:"coins",label:"Coins",content:i.jsx(y,{children:"Coins"})},{value:"collectibles",label:"Collectibles",content:i.jsx(y,{children:"Collectibles"})},{value:"other",label:"Other",content:i.jsx(y,{children:"Other"})}]}};var V,E,j;$.parameters={...$.parameters,docs:{...(V=$.parameters)==null?void 0:V.docs,source:{originalSource:`{ +import{j as i}from"./jsx-runtime-1caa8f64.js";import{C as G}from"./Card-34bef967.js";import{T as w}from"./Text-b96ac7e7.js";import{a as L,c as m,d as u}from"./index-bff3e5ca.js";import{r as l}from"./index-1cdf6ce0.js";import{a as k,c as _}from"./index-ed6c0076.js";import{$ as R,a as z,b as B}from"./index-f015b491.js";import{$ as H}from"./index-5a7be88c.js";import{$ as K}from"./index-cb7a0887.js";import{$ as W}from"./index-dad7d30c.js";import{B as X}from"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";/* empty css */import"./index-a01a9712.js";import"./index-af546338.js";const M="Tabs",[J,Ne]=L(M,[R]),A=R(),[Q,T]=J(M),U=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:o,orientation:r="horizontal",dir:c,activationMode:p="automatic",...v}=e,b=K(c),[d,f]=k({prop:a,onChange:s,defaultProp:o});return l.createElement(Q,{scope:n,baseId:W(),value:d,onValueChange:f,orientation:r,dir:b,activationMode:p},l.createElement(m.div,u({dir:b,"data-orientation":r},v,{ref:t})))}),Y="TabsList",P=l.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,o=T(Y,n),r=A(n);return l.createElement(z,u({asChild:!0},r,{orientation:o.orientation,dir:o.dir,loop:a}),l.createElement(m.div,u({role:"tablist","aria-orientation":o.orientation},s,{ref:t})))}),Z="TabsTrigger",S=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...o}=e,r=T(Z,n),c=A(n),p=D(r.baseId,a),v=F(r.baseId,a),b=a===r.value;return l.createElement(B,u({asChild:!0},c,{focusable:!s,active:b}),l.createElement(m.button,u({type:"button",role:"tab","aria-selected":b,"aria-controls":v,"data-state":b?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p},o,{ref:t,onMouseDown:_(e.onMouseDown,d=>{!s&&d.button===0&&d.ctrlKey===!1?r.onValueChange(a):d.preventDefault()}),onKeyDown:_(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&r.onValueChange(a)}),onFocus:_(e.onFocus,()=>{const d=r.activationMode!=="manual";!b&&!s&&d&&r.onValueChange(a)})})))}),ee="TabsContent",q=l.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:o,...r}=e,c=T(ee,n),p=D(c.baseId,a),v=F(c.baseId,a),b=a===c.value,d=l.useRef(b);return l.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),l.createElement(H,{present:s||b},({present:f})=>l.createElement(m.div,u({"data-state":b?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":p,hidden:!f,id:v,tabIndex:0},r,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&o))});function D(e,t){return`${e}-trigger-${t}`}function F(e,t){return`${e}-content-${t}`}const O=U,te=P,ae=S,oe=q;var re="fyvr12wh fyvr12wb",ne="_10c8o0n1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr11h0 fyvr11hw fyvr128 fyvr11sh fyvr14o",se="_10c8o0n5 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ho fyvr1ko fyvr1oo fyvr14c fyvr11tt fyvr12vz",ce="_10c8o0n3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr12wh fyvr12wb fyvr128 fyvr15o fyvr12uz fyvr11hw fyvr11ob fyvr11n2 fyvr12rz";const h=e=>{const{tabs:t,onValueChange:n,...a}=e,[s,o]=l.useState(a.defaultValue);if(!t.length)return null;const r=c=>{o(c),n==null||n(c)};return i.jsxs(O,{onValueChange:r,...a,children:[i.jsx(g,{tabs:t,value:s}),t.map(c=>i.jsx(oe,{className:re,value:c.value,children:c.content},c.value))]})},g=e=>{const{tabs:t,value:n}=e;if(!t.length)return null;const a=100/t.length,s=t.findIndex(o=>o.value===n);return i.jsxs(te,{className:ne,style:{outline:void 0},children:[i.jsx(X,{display:"flex",position:"absolute",inset:"2",height:"8",children:i.jsx("div",{className:se,style:{width:`${a}%`,transform:`translateX(${s*100}%)`}})}),t.map(o=>i.jsx(ae,{className:ce,value:o.value,children:i.jsx(w,{variant:"normal",fontWeight:"bold",children:o.label})},o.value))]})},x=O,C=P,I=S,N=q;try{h.displayName="Tabs",h.__docgenInfo={description:"",displayName:"Tabs",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"(TabItemProps & { content: ReactNode; })[]"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{g.displayName="TabsHeader",g.__docgenInfo={description:"",displayName:"TabsHeader",props:{tabs:{defaultValue:null,description:"",name:"tabs",required:!0,type:{name:"TabItemProps[]"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | undefined"}}}}}catch{}try{x.displayName="TabsRoot",x.__docgenInfo={description:"",displayName:"TabsRoot",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{C.displayName="TabsList",C.__docgenInfo={description:"",displayName:"TabsList",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="TabsTrigger",I.__docgenInfo={description:"",displayName:"TabsTrigger",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{N.displayName="TabsContent",N.__docgenInfo={description:"",displayName:"TabsContent",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const Ve={title:"Components/Tabs",component:h},y=({children:e})=>i.jsx(G,{marginTop:"4",children:i.jsx(w,{variant:"normal",color:"text100",children:e})}),$={args:{defaultValue:"coins",tabs:[{value:"coins",label:"Coins",content:i.jsx(y,{children:"Coins"})},{value:"collectibles",label:"Collectibles",content:i.jsx(y,{children:"Collectibles"})},{value:"other",label:"Other",content:i.jsx(y,{children:"Other"})}]}};var V,E,j;$.parameters={...$.parameters,docs:{...(V=$.parameters)==null?void 0:V.docs,source:{originalSource:`{ args: { defaultValue: 'coins', tabs: [{ @@ -16,4 +16,3 @@ import{j as i}from"./jsx-runtime-69eee039.js";import{C as G}from"./Card-3affd0fc }] } }`,...(j=(E=$.parameters)==null?void 0:E.docs)==null?void 0:j.source}}};const Ee=["Default"];export{$ as Default,Ee as __namedExportsOrder,Ve as default}; -//# sourceMappingURL=Tabs.stories-3b51c546.js.map diff --git a/assets/Tag.stories-8e66203a.js.map b/assets/Tag.stories-8e66203a.js.map deleted file mode 100644 index 54081c172..000000000 --- a/assets/Tag.stories-8e66203a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Tag.stories-8e66203a.js","sources":["../../src/components/Tag/Tag.tsx"],"sourcesContent":["import { ComponentType, ElementType, forwardRef } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { Text } from '~/components/Text'\nimport { IconProps } from '~/icons/types'\n\nimport { tagStyle } from './styles.css'\n\ntype TagProps = {\n label: string\n icon?: ComponentType\n}\n\nexport const Tag: PolymorphicComponent = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const { icon: Icon, label, ...rest } = props\n\n return (\n \n {Icon && }\n {label}\n \n )\n }\n)\n"],"names":["Tag","forwardRef","props","ref","Icon","label","rest","jsxs","Box","tagStyle","jsx","Text"],"mappings":"qjBAkBO,MAAAA,EAAAC,EAAA,WAAmD,CAAAC,EAAAC,IAAA,CAKtD,KAAA,CAAA,KAAAC,EAAA,MAAAC,EAAA,GAAAC,CAAA,EAAAJ,EAEA,OAAAK,OAAAC,EAAA,CAAA,UAAAC,EAAA,IAAAN,EAAA,WAAA,cAAA,GAAAG,EAAA,SAAA,CAEKF,GAAAM,EAAAA,IAAAN,EAAA,CAAA,KAAA,IAAA,CAAA,EAAwBM,EAAAA,IAAAC,EAAA,CAAA,SAAAN,CAAA,CAAA,CACZ,CAAA,CAAA,CACf,CAGN;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Tag.stories-8e66203a.js b/assets/Tag.stories-99ebefa2.js similarity index 98% rename from assets/Tag.stories-8e66203a.js rename to assets/Tag.stories-99ebefa2.js index 3f16239f5..2208b262e 100644 --- a/assets/Tag.stories-8e66203a.js +++ b/assets/Tag.stories-99ebefa2.js @@ -1,4 +1,4 @@ -import{W as S}from"./WarningIcon-b42ff4ac.js";import{j as i}from"./jsx-runtime-69eee039.js";import{r as h}from"./index-7c191284.js";import{B as v}from"./Box-8ffdd394.js";import{T as x}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";var F="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";const r=h.forwardRef((s,V)=>{const{icon:a,label:C,...y}=s;return i.jsxs(v,{className:F,ref:V,background:"buttonGlass",...y,children:[a&&i.jsx(a,{size:"xs"}),i.jsx(x,{children:C})]})});try{r.displayName="Tag",r.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const B={title:"Components/Tag",component:r},n={args:{label:"ERC1155"}},t={args:{label:"ERC1155",icon:S}},e={args:{background:"ethereumDark",color:"white",icon:S,label:"Ethereum"}};var l,o,g;n.parameters={...n.parameters,docs:{...(l=n.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{W as S}from"./WarningIcon-c4815a2d.js";import{j as i}from"./jsx-runtime-1caa8f64.js";import{r as h}from"./index-1cdf6ce0.js";import{B as v}from"./Box-e4a86556.js";import{T as x}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./typography-f274f330.js";var F="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";const r=h.forwardRef((s,V)=>{const{icon:a,label:C,...y}=s;return i.jsxs(v,{className:F,ref:V,background:"buttonGlass",...y,children:[a&&i.jsx(a,{size:"xs"}),i.jsx(x,{children:C})]})});try{r.displayName="Tag",r.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const B={title:"Components/Tag",component:r},n={args:{label:"ERC1155"}},t={args:{label:"ERC1155",icon:S}},e={args:{background:"ethereumDark",color:"white",icon:S,label:"Ethereum"}};var l,o,g;n.parameters={...n.parameters,docs:{...(l=n.parameters)==null?void 0:l.docs,source:{originalSource:`{ args: { label: 'ERC1155' } @@ -15,4 +15,3 @@ import{W as S}from"./WarningIcon-b42ff4ac.js";import{j as i}from"./jsx-runtime-6 label: 'Ethereum' } }`,...(p=(f=e.parameters)==null?void 0:f.docs)==null?void 0:p.source}}};const I=["Default","WithIcon","NetworkTag"];export{n as Default,e as NetworkTag,t as WithIcon,I as __namedExportsOrder,B as default}; -//# sourceMappingURL=Tag.stories-8e66203a.js.map diff --git a/assets/Text-cdf53fa8.js b/assets/Text-b96ac7e7.js similarity index 99% rename from assets/Text-cdf53fa8.js rename to assets/Text-b96ac7e7.js index 4de9b868f..a84104bbf 100644 --- a/assets/Text-cdf53fa8.js +++ b/assets/Text-b96ac7e7.js @@ -1,2 +1 @@ -import{j as p}from"./jsx-runtime-69eee039.js";import{B as S,c as V}from"./Box-8ffdd394.js";import{r as y}from"./index-7c191284.js";import{t as C}from"./typography-f274f330.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as v}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var x=v({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const e=y.forwardRef((n,t)=>{const{as:i="span",variant:r="inherit",className:s,hidden:a,italic:l,underline:o,children:u,ellipsis:g,uppercase:d,capitalize:f,...m}=n,c=C[r];return p.jsx(S,{as:i,className:V(s,x({hidden:a,ellipsis:g,italic:l,underline:o,uppercase:d,capitalize:f})),ref:t,...c,...m,children:u})});try{e.displayName="Text",e.__docgenInfo={description:"",displayName:"Text",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"normal"'},{value:'"medium"'},{value:'"large"'},{value:'"small"'},{value:'"xsmall"'},{value:'"xlarge"'},{value:'"code"'}]}},ellipsis:{defaultValue:null,description:"prop overrides",name:"ellipsis",required:!1,type:{name:"boolean"}},italic:{defaultValue:null,description:"",name:"italic",required:!1,type:{name:"boolean"}},underline:{defaultValue:null,description:"",name:"underline",required:!1,type:{name:"boolean"}},uppercase:{defaultValue:null,description:"",name:"uppercase",required:!1,type:{name:"boolean"}},capitalize:{defaultValue:null,description:"",name:"capitalize",required:!1,type:{name:"boolean"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as T}; -//# sourceMappingURL=Text-cdf53fa8.js.map +import{j as p}from"./jsx-runtime-1caa8f64.js";import{B as S,c as V}from"./Box-e4a86556.js";import{r as y}from"./index-1cdf6ce0.js";import{t as C}from"./typography-f274f330.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as v}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var x=v({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const e=y.forwardRef((n,t)=>{const{as:i="span",variant:r="inherit",className:s,hidden:a,italic:l,underline:o,children:u,ellipsis:g,uppercase:d,capitalize:f,...m}=n,c=C[r];return p.jsx(S,{as:i,className:V(s,x({hidden:a,ellipsis:g,italic:l,underline:o,uppercase:d,capitalize:f})),ref:t,...c,...m,children:u})});try{e.displayName="Text",e.__docgenInfo={description:"",displayName:"Text",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"normal"'},{value:'"medium"'},{value:'"large"'},{value:'"small"'},{value:'"xsmall"'},{value:'"xlarge"'},{value:'"code"'}]}},ellipsis:{defaultValue:null,description:"prop overrides",name:"ellipsis",required:!1,type:{name:"boolean"}},italic:{defaultValue:null,description:"",name:"italic",required:!1,type:{name:"boolean"}},underline:{defaultValue:null,description:"",name:"underline",required:!1,type:{name:"boolean"}},uppercase:{defaultValue:null,description:"",name:"uppercase",required:!1,type:{name:"boolean"}},capitalize:{defaultValue:null,description:"",name:"capitalize",required:!1,type:{name:"boolean"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{e as T}; diff --git a/assets/Text-cdf53fa8.js.map b/assets/Text-cdf53fa8.js.map deleted file mode 100644 index c45b66cdd..000000000 --- a/assets/Text-cdf53fa8.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Text-cdf53fa8.js","sources":["../../src/components/Text/Text.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ElementType, forwardRef } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { text } from '~/tokens/typography'\n\nimport * as styles from './styles.css'\n\ntype TextProps = styles.TextVariants\n\nexport const Text: PolymorphicComponent = forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const {\n as = 'span',\n variant = 'inherit',\n className,\n hidden,\n italic,\n underline,\n children,\n ellipsis,\n uppercase,\n capitalize,\n ...boxProps\n } = props\n\n // Merge as variant as prop values so they can be overridden rather than using textVariants recipe\n const textVariantProps = text[variant]\n\n return (\n \n {children}\n \n )\n }\n)\n"],"names":["Text","forwardRef","props","ref","as","variant","className","hidden","italic","underline","children","ellipsis","uppercase","capitalize","boxProps","textVariantProps","text","jsx","Box","clsx","styles.textVariants"],"mappings":"6jCAeO,MAAAA,EAAAC,EAAA,WAAsD,CAAAC,EAAAC,IAAA,CAKzD,KAAA,CAAM,GAAAC,EAAA,OACC,QAAAC,EAAA,UACK,UAAAC,EACV,OAAAC,EACA,OAAAC,EACA,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,WAAAC,EACA,GAAAC,CACG,EAAAZ,EAILa,EAAAC,EAAAX,CAAA,EAEA,OAAAY,EAAA,IACEC,EAAC,CAAA,GAAAd,EACC,UAAAe,EACWb,EACTc,EAAA,CACoB,OAAAb,EAClB,SAAAI,EACA,OAAAH,EACA,UAAAC,EACA,UAAAG,EACA,WAAAC,CACA,CAAA,CACD,EACH,IAAAV,EACA,GAAAY,EACI,GAAAD,EACA,SAAAJ,CAEH,CAAA,CACH,CAGN"} \ No newline at end of file diff --git a/assets/Text.stories-2fb21d3b.js.map b/assets/Text.stories-2fb21d3b.js.map deleted file mode 100644 index 71a278f96..000000000 --- a/assets/Text.stories-2fb21d3b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Text.stories-2fb21d3b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Text.stories-2fb21d3b.js b/assets/Text.stories-451e927e.js similarity index 93% rename from assets/Text.stories-2fb21d3b.js rename to assets/Text.stories-451e927e.js index 4893db5cb..5a4577bef 100644 --- a/assets/Text.stories-2fb21d3b.js +++ b/assets/Text.stories-451e927e.js @@ -1,4 +1,4 @@ -import{j as c}from"./jsx-runtime-69eee039.js";import{T as F}from"./Text-cdf53fa8.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const K={title:"Components/Text",component:F},r={args:{variant:"xlarge",color:"text100",children:"Hello, world!"}},e={args:{variant:"large",color:"text100",children:"Hello, world!"}},o={args:{variant:"medium",color:"text100",children:"Hello, world!"}},a={args:{variant:"normal",color:"text100",fontWeight:"bold",children:"Hello, world!"}},t={args:{variant:"large",color:"text100",as:"p",children:"Hello, world!"}},n={args:{variant:"normal",color:"text100",children:"Hello, world!"}},s={args:{variant:"normal",color:"text100",as:"p",children:c.jsxs(c.Fragment,{children:[c.jsx(F,{fontWeight:"bold",color:"positive",children:"Hello"})," World!"]})}},l={args:{variant:"code",color:"text100",children:"Hello, world!"}};var d,i,m;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:`{ +import{j as c}from"./jsx-runtime-1caa8f64.js";import{T as F}from"./Text-b96ac7e7.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const K={title:"Components/Text",component:F},r={args:{variant:"xlarge",color:"text100",children:"Hello, world!"}},e={args:{variant:"large",color:"text100",children:"Hello, world!"}},o={args:{variant:"medium",color:"text100",children:"Hello, world!"}},a={args:{variant:"normal",color:"text100",fontWeight:"bold",children:"Hello, world!"}},t={args:{variant:"large",color:"text100",as:"p",children:"Hello, world!"}},n={args:{variant:"normal",color:"text100",children:"Hello, world!"}},s={args:{variant:"normal",color:"text100",as:"p",children:c.jsxs(c.Fragment,{children:[c.jsx(F,{fontWeight:"bold",color:"positive",children:"Hello"})," World!"]})}},l={args:{variant:"code",color:"text100",children:"Hello, world!"}};var d,i,m;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:`{ args: { variant: 'xlarge', color: 'text100', @@ -55,4 +55,3 @@ import{j as c}from"./jsx-runtime-69eee039.js";import{T as F}from"./Text-cdf53fa8 children: 'Hello, world!' } }`,...(L=(E=l.parameters)==null?void 0:E.docs)==null?void 0:L.source}}};const M=["Heading1","Heading2","Heading3","Bold","BodyLarge","Body","TextAsChild","Code"];export{n as Body,t as BodyLarge,a as Bold,l as Code,r as Heading1,e as Heading2,o as Heading3,s as TextAsChild,M as __namedExportsOrder,K as default}; -//# sourceMappingURL=Text.stories-2fb21d3b.js.map diff --git a/assets/TextArea.stories-c522a727.js b/assets/TextArea.stories-81433db0.js similarity index 98% rename from assets/TextArea.stories-c522a727.js rename to assets/TextArea.stories-81433db0.js index e1789e244..de26f73fa 100644 --- a/assets/TextArea.stories-c522a727.js +++ b/assets/TextArea.stories-81433db0.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-69eee039.js";import{B as h,c as v}from"./Box-8ffdd394.js";import{r as x}from"./index-7c191284.js";import{F as b}from"./Field-0c069ee0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./Text-cdf53fa8.js";import"./typography-f274f330.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var F="_15pztn2",q="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rt fyvr128 fyvr11h0";const t=x.forwardRef((i,d)=>{const{as:g="textarea",autoComplete:c="off",borderRadius:m="md",description:f,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",name:n,rows:V,resize:C=!1,...y}=i;return a.jsx(b,{description:f,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:a.jsx(h,{as:g,autoComplete:c,spellCheck:"false",className:v(q,C&&F),disabled:r,id:s??n,name:n,ref:d,rows:V,borderRadius:m,...y})})});try{t.displayName="TextArea",t.__docgenInfo={description:"",displayName:"TextArea",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"number"}},resize:{defaultValue:null,description:"",name:"resize",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const z={title:"Forms/TextArea",component:t},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top",rows:3,resize:!0}};var l,o,u;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-1caa8f64.js";import{B as h,c as v}from"./Box-e4a86556.js";import{r as x}from"./index-1cdf6ce0.js";import{F as b}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./Text-b96ac7e7.js";import"./typography-f274f330.js";import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var F="_15pztn2",q="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rt fyvr128 fyvr11h0";const t=x.forwardRef((i,d)=>{const{as:g="textarea",autoComplete:c="off",borderRadius:m="md",description:f,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",name:n,rows:V,resize:C=!1,...y}=i;return a.jsx(b,{description:f,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:a.jsx(h,{as:g,autoComplete:c,spellCheck:"false",className:v(q,C&&F),disabled:r,id:s??n,name:n,ref:d,rows:V,borderRadius:m,...y})})});try{t.displayName="TextArea",t.__docgenInfo={description:"",displayName:"TextArea",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},rows:{defaultValue:null,description:"",name:"rows",required:!1,type:{name:"number"}},resize:{defaultValue:null,description:"",name:"resize",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}const z={title:"Forms/TextArea",component:t},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top",rows:3,resize:!0}};var l,o,u;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{ args: { borderRadius: 'md', label: 'This the label', @@ -9,4 +9,3 @@ import{j as a}from"./jsx-runtime-69eee039.js";import{B as h,c as v}from"./Box-8f resize: true } }`,...(u=(o=e.parameters)==null?void 0:o.docs)==null?void 0:u.source}}};const I=["Default"];export{e as Default,I as __namedExportsOrder,z as default}; -//# sourceMappingURL=TextArea.stories-c522a727.js.map diff --git a/assets/TextArea.stories-c522a727.js.map b/assets/TextArea.stories-c522a727.js.map deleted file mode 100644 index d1586cd46..000000000 --- a/assets/TextArea.stories-c522a727.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextArea.stories-c522a727.js","sources":["../../src/components/TextArea/TextArea.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ElementType, forwardRef, ReactNode } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { Field, FieldProps } from '~/components/Field'\n\nimport * as styles from './styles.css'\n\nexport type TextAreaProps = FieldProps & {\n disabled?: boolean\n name: string\n controls?: ReactNode\n value?: string\n rows?: number\n resize?: boolean\n}\n\nexport const TextArea: PolymorphicComponent =\n forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const {\n as = 'textarea',\n autoComplete = 'off',\n borderRadius = 'md',\n description,\n disabled = false,\n id,\n label = '',\n labelLocation = 'hidden',\n name,\n rows,\n resize = false,\n ...rest\n } = props\n\n return (\n \n \n \n )\n }\n )\n"],"names":["TextArea","forwardRef","props","ref","as","autoComplete","borderRadius","description","disabled","id","label","labelLocation","name","rows","resize","rest","jsx","Field","Box","clsx","styles.textarea","styles.resize"],"mappings":"ilBAsBO,MAAAA,EAAAC,EAAA,WACL,CAAAC,EAAAC,IAAA,CAKI,KAAA,CAAM,GAAAC,EAAA,WACC,aAAAC,EAAA,MACU,aAAAC,EAAA,KACA,YAAAC,EACf,SAAAC,EAAA,GACW,GAAAC,EACX,MAAAC,EAAA,GACQ,cAAAC,EAAA,SACQ,KAAAC,EAChB,KAAAC,EACAC,OAAAA,EAAA,GACS,GAAAC,CACN,EAAAb,EAGL,OAAAc,EAAA,IACEC,EAAC,CAAA,YAAAV,EACC,SAAAC,EACA,QAAA,OACQ,GAAAC,GAAAG,EACE,MAAAF,EACV,cAAAC,EACA,SAAAK,EAAA,IAEAE,EAAC,CAAA,GAAAd,EACC,aAAAC,EACA,WAAA,QACW,UAAAc,EAAAC,EAAAN,GAAAO,CAAA,EAC6C,SAAAb,EACxD,GAAAC,GAAAG,EACU,KAAAA,EACV,IAAAT,EACA,KAAAU,EACA,aAAAP,EACA,GAAAS,CACI,CAAA,CACN,CAAA,CACF,CAGN;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/TextInput-e7a764b0.js b/assets/TextInput-d5b4161c.js similarity index 99% rename from assets/TextInput-e7a764b0.js rename to assets/TextInput-d5b4161c.js index cd30baad2..34fc55014 100644 --- a/assets/TextInput-e7a764b0.js +++ b/assets/TextInput-d5b4161c.js @@ -1,2 +1 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{B as t,c as h}from"./Box-8ffdd394.js";import{r as x}from"./index-7c191284.js";import{F as b}from"./Field-0c069ee0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as u}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var F=u({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12wh fyvr12wb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),q="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rt fyvr1g0 fyvr118g",L=u({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const o=x.forwardRef((i,d)=>{const{as:g="input",autoComplete:m="off",borderRadius:f="md",description:c,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",leftIcon:a,rightIcon:l,name:n,controls:V,type:y="text",numeric:C=!1,...v}=i;return e.jsx(b,{description:c,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:e.jsx(t,{width:"full",children:e.jsxs(t,{className:h(q,L({borderRadius:f})),children:[a&&e.jsx(a,{size:"sm"}),e.jsx(t,{as:g,autoComplete:m,spellCheck:"false",className:F({numeric:C}),disabled:r,id:s??n,name:n,ref:d,type:y,...v}),l&&e.jsx(l,{size:"sm"}),V]})})})});try{o.displayName="TextInput",o.__docgenInfo={description:"",displayName:"TextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as T}; -//# sourceMappingURL=TextInput-e7a764b0.js.map +import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as t,c as h}from"./Box-e4a86556.js";import{r as x}from"./index-1cdf6ce0.js";import{F as b}from"./Field-cc1005d3.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import{c as u}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";var F=u({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12wh fyvr12wb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),q="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rt fyvr1g0 fyvr118g",L=u({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const o=x.forwardRef((i,d)=>{const{as:g="input",autoComplete:m="off",borderRadius:f="md",description:c,disabled:r=!1,id:s,label:p="",labelLocation:S="hidden",leftIcon:a,rightIcon:l,name:n,controls:V,type:y="text",numeric:C=!1,...v}=i;return e.jsx(b,{description:c,disabled:r,display:"grid",id:s??n,label:p,labelLocation:S,children:e.jsx(t,{width:"full",children:e.jsxs(t,{className:h(q,L({borderRadius:f})),children:[a&&e.jsx(a,{size:"sm"}),e.jsx(t,{as:g,autoComplete:m,spellCheck:"false",className:F({numeric:C}),disabled:r,id:s??n,name:n,ref:d,type:y,...v}),l&&e.jsx(l,{size:"sm"}),V]})})})});try{o.displayName="TextInput",o.__docgenInfo={description:"",displayName:"TextInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},labelLocation:{defaultValue:null,description:"",name:"labelLocation",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"top"'},{value:'"hidden"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"string"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'"sm" | "md" | "xs" | ("sm" & { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | "md" | "lg" | "none" | "circle" | "xs" | undefined; xl?: "sm" | ... 5 more ... | undefined; }) | ("md" & { ...; }) | ("xs" & { ...; }) | undefined'}},leftIcon:{defaultValue:null,description:"",name:"leftIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},rightIcon:{defaultValue:null,description:"",name:"rightIcon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},controls:{defaultValue:null,description:"",name:"controls",required:!1,type:{name:"ReactNode"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},numeric:{defaultValue:null,description:"",name:"numeric",required:!1,type:{name:"boolean"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"ElementType"}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}export{o as T}; diff --git a/assets/TextInput-e7a764b0.js.map b/assets/TextInput-e7a764b0.js.map deleted file mode 100644 index 098658b04..000000000 --- a/assets/TextInput-e7a764b0.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextInput-e7a764b0.js","sources":["../../src/components/TextInput/TextInput.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ComponentType, ElementType, forwardRef, ReactNode } from 'react'\n\nimport {\n Box,\n PolymorphicComponent,\n PolymorphicProps,\n PolymorphicRef,\n} from '~/components/Box'\nimport { Field, FieldProps } from '~/components/Field'\nimport { IconProps } from '~/icons/types'\n\nimport * as styles from './styles.css'\n\nexport type TextInputProps = FieldProps &\n styles.WrapVariants & {\n disabled?: boolean\n leftIcon?: ComponentType\n rightIcon?: ComponentType\n name: string\n controls?: ReactNode\n value?: string\n numeric?: boolean\n }\n\nexport const TextInput: PolymorphicComponent =\n forwardRef(\n (\n props: PolymorphicProps,\n ref: PolymorphicRef\n ) => {\n const {\n as = 'input',\n autoComplete = 'off',\n borderRadius = 'md',\n description,\n disabled = false,\n id,\n label = '',\n labelLocation = 'hidden',\n leftIcon: LeftIcon,\n rightIcon: RightIcon,\n name,\n controls,\n type = 'text',\n numeric = false,\n ...rest\n } = props\n\n return (\n \n \n \n {LeftIcon && }\n\n \n\n {RightIcon && }\n {controls}\n \n \n \n )\n }\n )\n"],"names":["TextInput","forwardRef","props","ref","as","autoComplete","borderRadius","description","disabled","id","label","labelLocation","LeftIcon","RightIcon","name","controls","type","numeric","rest","jsx","Field","Box","jsxs","clsx","styles.wrap","styles.wrapVariants","styles.input"],"mappings":"i+BAyBO,MAAAA,EAAAC,EAAA,WACL,CAAAC,EAAAC,IAAA,CAKI,KAAA,CAAM,GAAAC,EAAA,QACC,aAAAC,EAAA,MACU,aAAAC,EAAA,KACA,YAAAC,EACf,SAAAC,EAAA,GACW,GAAAC,EACX,MAAAC,EAAA,GACQ,cAAAC,EAAA,SACQ,SAAAC,EACN,UAAAC,EACC,KAAAC,EACX,SAAAC,EACA,KAAAC,EAAA,OACO,QAAAC,EAAA,GACG,GAAAC,CACP,EAAAhB,EAGL,OAAAiB,EAAA,IACEC,EAAC,CAAA,YAAAb,EACC,SAAAC,EACA,QAAA,OACQ,GAAAC,GAAAK,EACE,MAAAJ,EACV,cAAAC,EACA,SAAAQ,EAAA,IAAAE,EAAA,CAAA,MAAA,OAAA,SAAAC,EAAA,KAGED,EAAC,CAAA,UAAAE,EACYC,EACFC,EAAA,CAAA,aAAAnB,EAAA,CAC6B,EACtC,SAAA,CAECM,GAAAO,EAAAA,IAAAP,EAAA,CAAA,KAAA,IAAA,CAAA,EAAgCO,EAAA,IAEjCE,EAAC,CAAA,GAAAjB,EACC,aAAAC,EACA,WAAA,QACW,UAAAqB,EAAA,CAAA,QAAAT,EAAA,EACwB,SAAAT,EACnC,GAAAC,GAAAK,EACU,KAAAA,EACV,IAAAX,EACA,KAAAa,EACA,GAAAE,CACI,CAAA,EACNL,GAAAM,EAAAA,IAAAN,EAAA,CAAA,KAAA,IAAA,CAAA,EAEmCE,CAClC,CAAA,CAAA,EAAA,CAEL,CAAA,CACF,CAGN"} \ No newline at end of file diff --git a/assets/TextInput.stories-54fd370b.js.map b/assets/TextInput.stories-54fd370b.js.map deleted file mode 100644 index 2cf58e8d4..000000000 --- a/assets/TextInput.stories-54fd370b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextInput.stories-54fd370b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/TextInput.stories-54fd370b.js b/assets/TextInput.stories-965d31aa.js similarity index 86% rename from assets/TextInput.stories-54fd370b.js rename to assets/TextInput.stories-965d31aa.js index 6b463a5f4..1bc3a397b 100644 --- a/assets/TextInput.stories-54fd370b.js +++ b/assets/TextInput.stories-965d31aa.js @@ -1,4 +1,4 @@ -import{j as l}from"./jsx-runtime-69eee039.js";import{B as q}from"./Box-8ffdd394.js";import{B as c}from"./Button-cbaba6d6.js";import{I as v}from"./IconButton-3648ed15.js";import{S as z,a as C,b as L,c as w}from"./WarningIcon-b42ff4ac.js";import{T as A}from"./TextInput-e7a764b0.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Field-0c069ee0.js";const Q={title:"Forms/TextInput",component:A},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top"}},o={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z}},r={args:{label:"This the label",placeholder:"This is the placeholder",rightIcon:C}},s={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z,rightIcon:C}},a={args:{placeholder:"Search for coins or collectibles",leftIcon:L,controls:l.jsx(v,{icon:w,size:"xs"})}},t={args:{label:"This the label",placeholder:"This is the placeholder",controls:l.jsxs(q,{gap:"2",children:[l.jsx(c,{label:"Max",size:"xs",shape:"square"}),l.jsx(c,{label:"Paste",size:"xs",shape:"square"})]})}};var i,n,h;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as l}from"./jsx-runtime-1caa8f64.js";import{B as q}from"./Box-e4a86556.js";import{B as c}from"./Button-e8455a66.js";import{I as v}from"./IconButton-64184e44.js";import{S as z,a as C,b as L,c as w}from"./WarningIcon-c4815a2d.js";import{T as A}from"./TextInput-d5b4161c.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./Field-cc1005d3.js";const Q={title:"Forms/TextInput",component:A},e={args:{borderRadius:"md",label:"This the label",description:"This is the description",placeholder:"This is the placeholder",labelLocation:"top"}},o={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z}},r={args:{label:"This the label",placeholder:"This is the placeholder",rightIcon:C}},s={args:{label:"This the label",placeholder:"This is the placeholder",leftIcon:z,rightIcon:C}},a={args:{placeholder:"Search for coins or collectibles",leftIcon:L,controls:l.jsx(v,{icon:w,size:"xs"})}},t={args:{label:"This the label",placeholder:"This is the placeholder",controls:l.jsxs(q,{gap:"2",children:[l.jsx(c,{label:"Max",size:"xs",shape:"square"}),l.jsx(c,{label:"Paste",size:"xs",shape:"square"})]})}};var i,n,h;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { borderRadius: 'md', label: 'This the label', @@ -41,4 +41,3 @@ import{j as l}from"./jsx-runtime-69eee039.js";import{B as q}from"./Box-8ffdd394. } }`,...(j=(W=t.parameters)==null?void 0:W.docs)==null?void 0:j.source}}};const U=["Default","WithLeftIcon","WithRightIcon","WithBothIcons","SearchInput","WithComplexControls"];export{e as Default,a as SearchInput,s as WithBothIcons,t as WithComplexControls,o as WithLeftIcon,r as WithRightIcon,U as __namedExportsOrder,Q as default}; -//# sourceMappingURL=TextInput.stories-54fd370b.js.map diff --git a/assets/ThemeProvider-400147f5.js b/assets/ThemeProvider-29c0f089.js similarity index 92% rename from assets/ThemeProvider-400147f5.js rename to assets/ThemeProvider-29c0f089.js index e1de83b51..164479c04 100644 --- a/assets/ThemeProvider-400147f5.js +++ b/assets/ThemeProvider-29c0f089.js @@ -1,2 +1 @@ -import{j as p}from"./jsx-runtime-69eee039.js";import{r as i}from"./index-7c191284.js";import{c as u}from"./vars.css-cd686f74.js";import{c as A}from"./color-dcee1839.js";function w(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function S(e,t){var o=e;for(var s of t){if(!(s in o))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));o=o[s]}return o}function g(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=e.constructor();for(var r in e){var n=e[r],c=[...o,r];typeof n=="string"||typeof n=="number"||n==null?s[r]=t(n,c):typeof n=="object"&&!Array.isArray(n)?s[r]=g(n,t,c):console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(n)?"Array":typeof n,'"'))}return s}function m(e,t,o){e.style.setProperty(w(t),o)}function f(e,t,o){if(typeof o=="object"){var s=t;g(o,(l,E)=>{l!=null&&m(e,S(s,E),String(l))})}else{var r=t;for(var n in r){var c=r[n];c!=null&&m(e,n,r[n])}}}const a=["dark","light"],x="dark",j="data-theme",d="@sequence.theme",b=e=>a.includes(e),v=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),T=e=>e?`${d}.${e}`:d,V=e=>{const t=localStorage.getItem(T(e));return t&&a.includes(t)?t:x},y=i.createContext(null),h=e=>{const[t,o]=i.useState(e.theme||V(e.scope));i.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),i.useEffect(()=>{e.theme&&o(e.theme)},[e.theme]),i.useEffect(()=>{const r=document.querySelector(e.root||":root");r&&(b(t)?(r.setAttribute(j,t),f(r,u,{colors:A[t]})):v(t)&&f(r,u,{colors:t}))},[t,e.root]);const s=i.useMemo(()=>({theme:t,root:e.root,setTheme:r=>{a.includes(r)&&(localStorage.setItem(T(e.scope),r),o(r))}}),[t,e.root,e.scope]);return p.jsx(y.Provider,{value:s,children:e.children})},C=()=>{const e=i.useContext(y);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e};try{h.displayName="ThemeProvider",h.__docgenInfo={description:"",displayName:"ThemeProvider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:'"dark" | "light" | Partial'}},root:{defaultValue:null,description:"",name:"root",required:!1,type:{name:"string"}},scope:{defaultValue:null,description:"",name:"scope",required:!1,type:{name:"string"}}}}}catch{}export{h as T,C as u}; -//# sourceMappingURL=ThemeProvider-400147f5.js.map +import{j as p}from"./jsx-runtime-1caa8f64.js";import{r as i}from"./index-1cdf6ce0.js";import{c as u}from"./vars.css-cd686f74.js";import{c as A}from"./color-dcee1839.js";function w(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function S(e,t){var o=e;for(var s of t){if(!(s in o))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));o=o[s]}return o}function g(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=e.constructor();for(var r in e){var n=e[r],c=[...o,r];typeof n=="string"||typeof n=="number"||n==null?s[r]=t(n,c):typeof n=="object"&&!Array.isArray(n)?s[r]=g(n,t,c):console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(n)?"Array":typeof n,'"'))}return s}function m(e,t,o){e.style.setProperty(w(t),o)}function f(e,t,o){if(typeof o=="object"){var s=t;g(o,(l,E)=>{l!=null&&m(e,S(s,E),String(l))})}else{var r=t;for(var n in r){var c=r[n];c!=null&&m(e,n,r[n])}}}const a=["dark","light"],x="dark",j="data-theme",d="@sequence.theme",b=e=>a.includes(e),v=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),T=e=>e?`${d}.${e}`:d,V=e=>{const t=localStorage.getItem(T(e));return t&&a.includes(t)?t:x},y=i.createContext(null),h=e=>{const[t,o]=i.useState(e.theme||V(e.scope));i.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),i.useEffect(()=>{e.theme&&o(e.theme)},[e.theme]),i.useEffect(()=>{const r=document.querySelector(e.root||":root");r&&(b(t)?(r.setAttribute(j,t),f(r,u,{colors:A[t]})):v(t)&&f(r,u,{colors:t}))},[t,e.root]);const s=i.useMemo(()=>({theme:t,root:e.root,setTheme:r=>{a.includes(r)&&(localStorage.setItem(T(e.scope),r),o(r))}}),[t,e.root,e.scope]);return p.jsx(y.Provider,{value:s,children:e.children})},C=()=>{const e=i.useContext(y);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e};try{h.displayName="ThemeProvider",h.__docgenInfo={description:"",displayName:"ThemeProvider",props:{theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:'"dark" | "light" | Partial'}},root:{defaultValue:null,description:"",name:"root",required:!1,type:{name:"string"}},scope:{defaultValue:null,description:"",name:"scope",required:!1,type:{name:"string"}}}}}catch{}export{h as T,C as u}; diff --git a/assets/ThemeProvider-400147f5.js.map b/assets/ThemeProvider-400147f5.js.map deleted file mode 100644 index 89b0d8ffc..000000000 --- a/assets/ThemeProvider-400147f5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThemeProvider-400147f5.js","sources":["../../node_modules/.pnpm/@vanilla-extract+private@1.0.3/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js","../../node_modules/.pnpm/@vanilla-extract+dynamic@2.1.0/node_modules/@vanilla-extract/dynamic/dist/vanilla-extract-dynamic.esm.js","../../src/components/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["function getVarName(variable) {\n var matches = variable.match(/^var\\((.*)\\)$/);\n\n if (matches) {\n return matches[1];\n }\n\n return variable;\n}\n\nfunction get(obj, path) {\n var result = obj;\n\n for (var key of path) {\n if (!(key in result)) {\n throw new Error(\"Path \".concat(path.join(' -> '), \" does not exist in object\"));\n }\n\n result = result[key];\n }\n\n return result;\n}\n\nfunction walkObject(obj, fn) {\n var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n var clone = obj.constructor();\n\n for (var key in obj) {\n var _value = obj[key];\n var currentPath = [...path, key];\n\n if (typeof _value === 'string' || typeof _value === 'number' || _value == null) {\n clone[key] = fn(_value, currentPath);\n } else if (typeof _value === 'object' && !Array.isArray(_value)) {\n clone[key] = walkObject(_value, fn, currentPath);\n } else {\n console.warn(\"Skipping invalid key \\\"\".concat(currentPath.join('.'), \"\\\". Should be a string, number, null or object. Received: \\\"\").concat(Array.isArray(_value) ? 'Array' : typeof _value, \"\\\"\"));\n }\n }\n\n return clone;\n}\n\nexport { get, getVarName, walkObject };\n","import { walkObject, get, getVarName } from '@vanilla-extract/private';\n\nfunction assignInlineVars(varsOrContract, tokens) {\n var styles = {};\n if (typeof tokens === 'object') {\n var _contract = varsOrContract;\n walkObject(tokens, (value, path) => {\n if (value == null) {\n return;\n }\n var varName = get(_contract, path);\n styles[getVarName(varName)] = String(value);\n });\n } else {\n var _vars = varsOrContract;\n for (var varName in _vars) {\n var value = _vars[varName];\n if (value == null) {\n continue;\n }\n styles[getVarName(varName)] = value;\n }\n }\n Object.defineProperty(styles, 'toString', {\n value: function value() {\n return Object.keys(this).map(key => \"\".concat(key, \":\").concat(this[key])).join(';');\n },\n writable: false\n });\n return styles;\n}\n\nfunction setVar(element, variable, value) {\n element.style.setProperty(getVarName(variable), value);\n}\nfunction setElementVars(element, varsOrContract, tokens) {\n if (typeof tokens === 'object') {\n var _contract = varsOrContract;\n walkObject(tokens, (value, path) => {\n if (value == null) {\n return;\n }\n setVar(element, get(_contract, path), String(value));\n });\n } else {\n var _vars = varsOrContract;\n for (var varName in _vars) {\n var value = _vars[varName];\n if (value == null) {\n continue;\n }\n setVar(element, varName, _vars[varName]);\n }\n }\n}\n\nexport { assignInlineVars, setElementVars };\n","import { setElementVars } from '@vanilla-extract/dynamic'\nimport {\n createContext,\n PropsWithChildren,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport { colorSchemeVars } from '~/css/vars.css'\nimport { colors, ColorTokens } from '~/tokens/color'\n\nconst THEMES = ['dark', 'light'] as const\n\nexport type Theme = (typeof THEMES)[number]\n\nconst DEFAULT_THEME = 'dark'\nconst THEME_ATTR = 'data-theme'\nconst STORAGE_KEY = '@sequence.theme'\n\nconst isTheme = (theme: any): theme is Theme => THEMES.includes(theme as any)\n\ntype ThemeOverrides = Partial\n\nconst isThemeOverrides = (theme: any): theme is ThemeOverrides =>\n typeof theme === 'object' && theme !== null && !Array.isArray(theme)\n\nconst getStorageKey = (scope?: string) =>\n scope ? `${STORAGE_KEY}.${scope}` : STORAGE_KEY\n\ninterface ThemeContextValue {\n theme: Theme | ThemeOverrides\n root?: string\n setTheme: (mode: Theme) => void\n}\n\ninterface ThemeProviderProps {\n theme?: Theme | ThemeOverrides\n root?: string\n scope?: string\n}\n\nconst getTheme = (scope?: string): Theme => {\n const persistedTheme = localStorage.getItem(\n getStorageKey(scope)\n ) as Theme | null\n\n if (persistedTheme && THEMES.includes(persistedTheme)) {\n return persistedTheme\n }\n\n // else if (matchMedia(`(prefers-color-scheme: light)`).matches) {\n // return 'light'\n // } else if (matchMedia(`(prefers-color-scheme: dark)`).matches) {\n // return 'dark'\n // }\n\n return DEFAULT_THEME\n}\n\nconst ThemeContext = createContext(null)\n\nexport const ThemeProvider = (props: PropsWithChildren) => {\n const [theme, setTheme] = useState(\n props.theme || getTheme(props.scope)\n )\n\n useEffect(() => {\n // Add is-apple class\n ;/Mac/.test(window.navigator.userAgent) &&\n window.document.documentElement.classList.add('is-apple')\n }, [])\n\n // Allow prop theme override\n useEffect(() => {\n if (props.theme) {\n setTheme(props.theme)\n }\n }, [props.theme])\n\n // Set the data-theme attribtute on the document root element\n useEffect(() => {\n const rootEl = document.querySelector(props.root || ':root') as HTMLElement\n\n if (rootEl) {\n if (isTheme(theme)) {\n rootEl.setAttribute(THEME_ATTR, theme)\n setElementVars(rootEl, colorSchemeVars, {\n colors: colors[theme],\n })\n } else if (isThemeOverrides(theme)) {\n setElementVars(rootEl, colorSchemeVars, {\n colors: theme as ColorTokens,\n })\n }\n }\n }, [theme, props.root])\n\n // Create the context value\n const value: ThemeContextValue = useMemo(() => {\n return {\n theme,\n root: props.root,\n setTheme: (mode: Theme) => {\n if (THEMES.includes(mode)) {\n // Save to local storage\n localStorage.setItem(getStorageKey(props.scope), mode)\n\n // Set the theme state which will cause a re-render\n setTheme(mode)\n }\n },\n }\n }, [theme, props.root, props.scope])\n\n return (\n \n {props.children}\n \n )\n}\n\nexport const useTheme = () => {\n const context = useContext(ThemeContext)\n\n if (!context) {\n throw new Error('useTheme must be used within a ThemeProvider')\n }\n\n return context\n}\n"],"names":["getVarName","variable","matches","get","obj","path","result","key","walkObject","fn","clone","_value","currentPath","setVar","element","value","setElementVars","varsOrContract","tokens","_contract","_vars","varName","THEMES","DEFAULT_THEME","THEME_ATTR","STORAGE_KEY","isTheme","theme","isThemeOverrides","getStorageKey","scope","getTheme","persistedTheme","ThemeContext","createContext","ThemeProvider","props","setTheme","useState","useEffect","rootEl","colorSchemeVars","colors","useMemo","mode","jsx","useTheme","context","useContext"],"mappings":"yKAAA,SAASA,EAAWC,EAAU,CAC5B,IAAIC,EAAUD,EAAS,MAAM,eAAe,EAE5C,OAAIC,EACKA,EAAQ,CAAC,EAGXD,CACT,CAEA,SAASE,EAAIC,EAAKC,EAAM,CACtB,IAAIC,EAASF,EAEb,QAASG,KAAOF,EAAM,CACpB,GAAI,EAAEE,KAAOD,GACX,MAAM,IAAI,MAAM,QAAQ,OAAOD,EAAK,KAAK,MAAM,EAAG,2BAA2B,CAAC,EAGhFC,EAASA,EAAOC,CAAG,CACpB,CAED,OAAOD,CACT,CAEA,SAASE,EAAWJ,EAAKK,EAAI,CAC3B,IAAIJ,EAAO,UAAU,OAAS,GAAK,UAAU,CAAC,IAAM,OAAY,UAAU,CAAC,EAAI,CAAA,EAC3EK,EAAQN,EAAI,cAEhB,QAASG,KAAOH,EAAK,CACnB,IAAIO,EAASP,EAAIG,CAAG,EAChBK,EAAc,CAAC,GAAGP,EAAME,CAAG,EAE3B,OAAOI,GAAW,UAAY,OAAOA,GAAW,UAAYA,GAAU,KACxED,EAAMH,CAAG,EAAIE,EAAGE,EAAQC,CAAW,EAC1B,OAAOD,GAAW,UAAY,CAAC,MAAM,QAAQA,CAAM,EAC5DD,EAAMH,CAAG,EAAIC,EAAWG,EAAQF,EAAIG,CAAW,EAE/C,QAAQ,KAAK,yBAA0B,OAAOA,EAAY,KAAK,GAAG,EAAG,4DAA8D,EAAE,OAAO,MAAM,QAAQD,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AA,UAAA,IAAA,CACEH,EAAA,OACEC,EAAAD,EAAA,KAAA,CACF,EAAA,CAAAA,EAAA,KAAA,CAAA,EAIFG,EAAAA,UAAA,IAAA,CACE,MAAAC,EAAA,SAAA,cAAAJ,EAAA,MAAA,OAAA,EAEAI,IACEd,EAAAC,CAAA,GACEa,EAAA,aAAAhB,EAAAG,CAAA,EACAX,EAAAwB,EAAAC,EAAA,CAAwC,OAAAC,EAAAf,CAAA,CAClB,CAAA,GACrBC,EAAAD,CAAA,GAEDX,EAAAwB,EAAAC,EAAA,CAAwC,OAAAd,CAC9B,CAAA,EAGd,EAAA,CAAAA,EAAAS,EAAA,IAAA,CAAA,EAIF,MAAArB,EAAA4B,EAAAA,QAAA,KACE,CAAO,MAAAhB,EACL,KAAAS,EAAA,KACY,SAAAQ,GAAA,CAEVtB,EAAA,SAAAsB,CAAA,IAEE,aAAA,QAAAf,EAAAO,EAAA,KAAA,EAAAQ,CAAA,EAGAP,EAAAO,CAAA,EACF,CACF,GACF,CAAAjB,EAAAS,EAAA,KAAAA,EAAA,KAAA,CAAA,EAGF,OAAAS,EAAA,IAAAZ,EAAA,SAAA,CAAA,MAAAlB,EAAA,SAAAqB,EAAA,QAAA,CAAA,CAKF,EAEOU,EAAA,IAAA,CACL,MAAAC,EAAAC,aAAAf,CAAA,EAEA,GAAA,CAAAc,EACE,MAAA,IAAA,MAAA,8CAAA,EAGF,OAAAA,CACF","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/assets/ThemeProvider.stories-33d41973.js.map b/assets/ThemeProvider.stories-33d41973.js.map deleted file mode 100644 index 0b7e4b471..000000000 --- a/assets/ThemeProvider.stories-33d41973.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThemeProvider.stories-33d41973.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/ThemeProvider.stories-33d41973.js b/assets/ThemeProvider.stories-d9fc69af.js similarity index 91% rename from assets/ThemeProvider.stories-33d41973.js rename to assets/ThemeProvider.stories-d9fc69af.js index 6785dee52..0035e2f48 100644 --- a/assets/ThemeProvider.stories-33d41973.js +++ b/assets/ThemeProvider.stories-d9fc69af.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-69eee039.js";import{B as v}from"./Button-cbaba6d6.js";import{B as m}from"./Box-8ffdd394.js";import{C as t}from"./Card-3affd0fc.js";import{C as s}from"./Collapsible-6e2d6f0b.js";import{T as o}from"./Text-cdf53fa8.js";import{T as n,u as T}from"./ThemeProvider-400147f5.js";import"./index-7c191284.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-416e5a7a.js";import"./index-ecbee218.js";import"./index-006d63ff.js";import"./index-cd5c74af.js";import"./index-8f163998.js";import"./WarningIcon-b42ff4ac.js";import"./motion-cc45ae8c.js";import"./index-686b454f.js";import"./typography-f274f330.js";import"./vars.css-cd686f74.js";import"./color-dcee1839.js";const G={title:"Components/ThemeProvider",component:n},a=()=>{const{theme:i,setTheme:l}=T(),u=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:"Toggle theme",onClick:u})},r=()=>e.jsxs(t,{children:[e.jsx(o,{variant:"normal",color:"text100",fontWeight:"bold",children:"Root Application"}),e.jsx("div",{id:"app1",children:e.jsx(n,{root:"#app1",scope:"application1",theme:"light",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{label:"Nested Application 1",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(m,{marginTop:"4",children:e.jsx(d,{})}),e.jsx("div",{id:"app2",children:e.jsx(n,{root:"#app2",scope:"application2",theme:"dark",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{label:"Nested Application 2",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(m,{marginTop:"4",children:e.jsx(d,{})})]})})})}),e.jsx("div",{id:"app3",children:e.jsx(n,{root:"#app3",scope:"application3",theme:{text100:"rgba(255, 255, 255, 1)",text80:"rgba(200, 200, 255, 1)",text50:"rgba(150, 150, 200, 1)",backgroundPrimary:"pink",backgroundSecondary:"navy"},children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(s,{label:"Nested Application 3",children:e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."})})})})})]})})})})]}),d=()=>{const{theme:i,setTheme:l}=T(),u=i==="light"?"Dark":"Light",f=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:`Set ${u} Mode`,onClick:f})};var c,p,g;a.parameters={...a.parameters,docs:{...(c=a.parameters)==null?void 0:c.docs,source:{originalSource:`() => { +import{j as e}from"./jsx-runtime-1caa8f64.js";import{B as v}from"./Button-e8455a66.js";import{B as m}from"./Box-e4a86556.js";import{C as t}from"./Card-34bef967.js";import{C as s}from"./Collapsible-a5207a5f.js";import{T as o}from"./Text-b96ac7e7.js";import{T as n,u as T}from"./ThemeProvider-29c0f089.js";import"./index-1cdf6ce0.js";/* empty css */import"./atoms-c7901a03.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-bff3e5ca.js";import"./index-a01a9712.js";import"./index-ed6c0076.js";import"./index-5a7be88c.js";import"./index-dad7d30c.js";import"./WarningIcon-c4815a2d.js";import"./motion-bbbff89a.js";import"./index-68ff1be5.js";import"./typography-f274f330.js";import"./vars.css-cd686f74.js";import"./color-dcee1839.js";const G={title:"Components/ThemeProvider",component:n},a=()=>{const{theme:i,setTheme:l}=T(),u=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:"Toggle theme",onClick:u})},r=()=>e.jsxs(t,{children:[e.jsx(o,{variant:"normal",color:"text100",fontWeight:"bold",children:"Root Application"}),e.jsx("div",{id:"app1",children:e.jsx(n,{root:"#app1",scope:"application1",theme:"light",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{label:"Nested Application 1",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(m,{marginTop:"4",children:e.jsx(d,{})}),e.jsx("div",{id:"app2",children:e.jsx(n,{root:"#app2",scope:"application2",theme:"dark",children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsxs(s,{label:"Nested Application 2",children:[e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),e.jsx(m,{marginTop:"4",children:e.jsx(d,{})})]})})})}),e.jsx("div",{id:"app3",children:e.jsx(n,{root:"#app3",scope:"application3",theme:{text100:"rgba(255, 255, 255, 1)",text80:"rgba(200, 200, 255, 1)",text50:"rgba(150, 150, 200, 1)",backgroundPrimary:"pink",backgroundSecondary:"navy"},children:e.jsx(t,{background:"backgroundPrimary",marginTop:"4",children:e.jsx(s,{label:"Nested Application 3",children:e.jsx(o,{variant:"normal",color:"text100",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."})})})})})]})})})})]}),d=()=>{const{theme:i,setTheme:l}=T(),u=i==="light"?"Dark":"Light",f=()=>{l(i==="light"?"dark":"light")};return e.jsx(v,{label:`Set ${u} Mode`,onClick:f})};var c,p,g;a.parameters={...a.parameters,docs:{...(c=a.parameters)==null?void 0:c.docs,source:{originalSource:`() => { const { theme, setTheme @@ -86,4 +86,3 @@ import{j as e}from"./jsx-runtime-69eee039.js";import{B as v}from"./Button-cbaba6 ; }`,...(b=(h=r.parameters)==null?void 0:h.docs)==null?void 0:b.source}}};const H=["Default","Nested"];export{a as Default,r as Nested,H as __namedExportsOrder,G as default}; -//# sourceMappingURL=ThemeProvider.stories-33d41973.js.map diff --git a/assets/Toast.stories-37acb69f.js.map b/assets/Toast.stories-37acb69f.js.map deleted file mode 100644 index 8087516b9..000000000 --- a/assets/Toast.stories-37acb69f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Toast.stories-37acb69f.js","sources":["../../node_modules/.pnpm/@radix-ui+react-toast@1.1.5_@types+react-dom@18.2.16_@types+react@18.2.38_react-dom@18.2.0_react@18.2.0/node_modules/@radix-ui/react-toast/dist/index.mjs","../../src/components/Toast/Toast.tsx"],"sourcesContent":["import $eyrYI$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {useState as $eyrYI$useState, useRef as $eyrYI$useRef, createElement as $eyrYI$createElement, useCallback as $eyrYI$useCallback, forwardRef as $eyrYI$forwardRef, useEffect as $eyrYI$useEffect, useMemo as $eyrYI$useMemo, Fragment as $eyrYI$Fragment} from \"react\";\nimport {createPortal as $eyrYI$createPortal} from \"react-dom\";\nimport {composeEventHandlers as $eyrYI$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $eyrYI$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createCollection as $eyrYI$createCollection} from \"@radix-ui/react-collection\";\nimport {createContextScope as $eyrYI$createContextScope} from \"@radix-ui/react-context\";\nimport {Branch as $eyrYI$Branch, Root as $eyrYI$Root} from \"@radix-ui/react-dismissable-layer\";\nimport {Portal as $eyrYI$Portal} from \"@radix-ui/react-portal\";\nimport {Presence as $eyrYI$Presence} from \"@radix-ui/react-presence\";\nimport {Primitive as $eyrYI$Primitive, dispatchDiscreteCustomEvent as $eyrYI$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $eyrYI$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useControllableState as $eyrYI$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useLayoutEffect as $eyrYI$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {VisuallyHidden as $eyrYI$VisuallyHidden} from \"@radix-ui/react-visually-hidden\";\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * ToastProvider\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$PROVIDER_NAME = 'ToastProvider';\nconst [$054eb8030ebde76e$var$Collection, $054eb8030ebde76e$var$useCollection, $054eb8030ebde76e$var$createCollectionScope] = $eyrYI$createCollection('Toast');\nconst [$054eb8030ebde76e$var$createToastContext, $054eb8030ebde76e$export$8a359da18fbc9073] = $eyrYI$createContextScope('Toast', [\n $054eb8030ebde76e$var$createCollectionScope\n]);\nconst [$054eb8030ebde76e$var$ToastProviderProvider, $054eb8030ebde76e$var$useToastProviderContext] = $054eb8030ebde76e$var$createToastContext($054eb8030ebde76e$var$PROVIDER_NAME);\nconst $054eb8030ebde76e$export$f5d03d415824e0e = (props)=>{\n const { __scopeToast: __scopeToast , label: label = 'Notification' , duration: duration = 5000 , swipeDirection: swipeDirection = 'right' , swipeThreshold: swipeThreshold = 50 , children: children } = props;\n const [viewport, setViewport] = $eyrYI$useState(null);\n const [toastCount, setToastCount] = $eyrYI$useState(0);\n const isFocusedToastEscapeKeyDownRef = $eyrYI$useRef(false);\n const isClosePausedRef = $eyrYI$useRef(false);\n return /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$Collection.Provider, {\n scope: __scopeToast\n }, /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$ToastProviderProvider, {\n scope: __scopeToast,\n label: label,\n duration: duration,\n swipeDirection: swipeDirection,\n swipeThreshold: swipeThreshold,\n toastCount: toastCount,\n viewport: viewport,\n onViewportChange: setViewport,\n onToastAdd: $eyrYI$useCallback(()=>setToastCount((prevCount)=>prevCount + 1\n )\n , []),\n onToastRemove: $eyrYI$useCallback(()=>setToastCount((prevCount)=>prevCount - 1\n )\n , []),\n isFocusedToastEscapeKeyDownRef: isFocusedToastEscapeKeyDownRef,\n isClosePausedRef: isClosePausedRef\n }, children));\n};\n$054eb8030ebde76e$export$f5d03d415824e0e.propTypes = {\n label (props) {\n if (props.label && typeof props.label === 'string' && !props.label.trim()) {\n const error = `Invalid prop \\`label\\` supplied to \\`${$054eb8030ebde76e$var$PROVIDER_NAME}\\`. Expected non-empty \\`string\\`.`;\n return new Error(error);\n }\n return null;\n }\n};\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$f5d03d415824e0e, {\n displayName: $054eb8030ebde76e$var$PROVIDER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * ToastViewport\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$VIEWPORT_NAME = 'ToastViewport';\nconst $054eb8030ebde76e$var$VIEWPORT_DEFAULT_HOTKEY = [\n 'F8'\n];\nconst $054eb8030ebde76e$var$VIEWPORT_PAUSE = 'toast.viewportPause';\nconst $054eb8030ebde76e$var$VIEWPORT_RESUME = 'toast.viewportResume';\nconst $054eb8030ebde76e$export$6192c2425ecfd989 = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , hotkey: hotkey = $054eb8030ebde76e$var$VIEWPORT_DEFAULT_HOTKEY , label: label = 'Notifications ({hotkey})' , ...viewportProps } = props;\n const context = $054eb8030ebde76e$var$useToastProviderContext($054eb8030ebde76e$var$VIEWPORT_NAME, __scopeToast);\n const getItems = $054eb8030ebde76e$var$useCollection(__scopeToast);\n const wrapperRef = $eyrYI$useRef(null);\n const headFocusProxyRef = $eyrYI$useRef(null);\n const tailFocusProxyRef = $eyrYI$useRef(null);\n const ref = $eyrYI$useRef(null);\n const composedRefs = $eyrYI$useComposedRefs(forwardedRef, ref, context.onViewportChange);\n const hotkeyLabel = hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, '');\n const hasToasts = context.toastCount > 0;\n $eyrYI$useEffect(()=>{\n const handleKeyDown = (event)=>{\n var _ref$current;\n // we use `event.code` as it is consistent regardless of meta keys that were pressed.\n // for example, `event.key` for `Control+Alt+t` is `†` and `t !== †`\n const isHotkeyPressed = hotkey.every((key)=>event[key] || event.code === key\n );\n if (isHotkeyPressed) (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();\n };\n document.addEventListener('keydown', handleKeyDown);\n return ()=>document.removeEventListener('keydown', handleKeyDown)\n ;\n }, [\n hotkey\n ]);\n $eyrYI$useEffect(()=>{\n const wrapper = wrapperRef.current;\n const viewport = ref.current;\n if (hasToasts && wrapper && viewport) {\n const handlePause = ()=>{\n if (!context.isClosePausedRef.current) {\n const pauseEvent = new CustomEvent($054eb8030ebde76e$var$VIEWPORT_PAUSE);\n viewport.dispatchEvent(pauseEvent);\n context.isClosePausedRef.current = true;\n }\n };\n const handleResume = ()=>{\n if (context.isClosePausedRef.current) {\n const resumeEvent = new CustomEvent($054eb8030ebde76e$var$VIEWPORT_RESUME);\n viewport.dispatchEvent(resumeEvent);\n context.isClosePausedRef.current = false;\n }\n };\n const handleFocusOutResume = (event)=>{\n const isFocusMovingOutside = !wrapper.contains(event.relatedTarget);\n if (isFocusMovingOutside) handleResume();\n };\n const handlePointerLeaveResume = ()=>{\n const isFocusInside = wrapper.contains(document.activeElement);\n if (!isFocusInside) handleResume();\n }; // Toasts are not in the viewport React tree so we need to bind DOM events\n wrapper.addEventListener('focusin', handlePause);\n wrapper.addEventListener('focusout', handleFocusOutResume);\n wrapper.addEventListener('pointermove', handlePause);\n wrapper.addEventListener('pointerleave', handlePointerLeaveResume);\n window.addEventListener('blur', handlePause);\n window.addEventListener('focus', handleResume);\n return ()=>{\n wrapper.removeEventListener('focusin', handlePause);\n wrapper.removeEventListener('focusout', handleFocusOutResume);\n wrapper.removeEventListener('pointermove', handlePause);\n wrapper.removeEventListener('pointerleave', handlePointerLeaveResume);\n window.removeEventListener('blur', handlePause);\n window.removeEventListener('focus', handleResume);\n };\n }\n }, [\n hasToasts,\n context.isClosePausedRef\n ]);\n const getSortedTabbableCandidates = $eyrYI$useCallback(({ tabbingDirection: tabbingDirection })=>{\n const toastItems = getItems();\n const tabbableCandidates = toastItems.map((toastItem)=>{\n const toastNode = toastItem.ref.current;\n const toastTabbableCandidates = [\n toastNode,\n ...$054eb8030ebde76e$var$getTabbableCandidates(toastNode)\n ];\n return tabbingDirection === 'forwards' ? toastTabbableCandidates : toastTabbableCandidates.reverse();\n });\n return (tabbingDirection === 'forwards' ? tabbableCandidates.reverse() : tabbableCandidates).flat();\n }, [\n getItems\n ]);\n $eyrYI$useEffect(()=>{\n const viewport = ref.current; // We programmatically manage tabbing as we are unable to influence\n // the source order with portals, this allows us to reverse the\n // tab order so that it runs from most recent toast to least\n if (viewport) {\n const handleKeyDown = (event)=>{\n const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;\n const isTabKey = event.key === 'Tab' && !isMetaKey;\n if (isTabKey) {\n const focusedElement = document.activeElement;\n const isTabbingBackwards = event.shiftKey;\n const targetIsViewport = event.target === viewport; // If we're back tabbing after jumping to the viewport then we simply\n // proxy focus out to the preceding document\n if (targetIsViewport && isTabbingBackwards) {\n var _headFocusProxyRef$cu;\n (_headFocusProxyRef$cu = headFocusProxyRef.current) === null || _headFocusProxyRef$cu === void 0 || _headFocusProxyRef$cu.focus();\n return;\n }\n const tabbingDirection = isTabbingBackwards ? 'backwards' : 'forwards';\n const sortedCandidates = getSortedTabbableCandidates({\n tabbingDirection: tabbingDirection\n });\n const index = sortedCandidates.findIndex((candidate)=>candidate === focusedElement\n );\n if ($054eb8030ebde76e$var$focusFirst(sortedCandidates.slice(index + 1))) event.preventDefault();\n else {\n var _headFocusProxyRef$cu2, _tailFocusProxyRef$cu;\n // If we can't focus that means we're at the edges so we\n // proxy to the corresponding exit point and let the browser handle\n // tab/shift+tab keypress and implicitly pass focus to the next valid element in the document\n isTabbingBackwards ? (_headFocusProxyRef$cu2 = headFocusProxyRef.current) === null || _headFocusProxyRef$cu2 === void 0 || _headFocusProxyRef$cu2.focus() : (_tailFocusProxyRef$cu = tailFocusProxyRef.current) === null || _tailFocusProxyRef$cu === void 0 || _tailFocusProxyRef$cu.focus();\n }\n }\n }; // Toasts are not in the viewport React tree so we need to bind DOM events\n viewport.addEventListener('keydown', handleKeyDown);\n return ()=>viewport.removeEventListener('keydown', handleKeyDown)\n ;\n }\n }, [\n getItems,\n getSortedTabbableCandidates\n ]);\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$Branch, {\n ref: wrapperRef,\n role: \"region\",\n \"aria-label\": label.replace('{hotkey}', hotkeyLabel) // Ensure virtual cursor from landmarks menus triggers focus/blur for pause/resume\n ,\n tabIndex: -1 // incase list has size when empty (e.g. padding), we remove pointer events so\n ,\n style: {\n pointerEvents: hasToasts ? undefined : 'none'\n }\n }, hasToasts && /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$FocusProxy, {\n ref: headFocusProxyRef,\n onFocusFromOutsideViewport: ()=>{\n const tabbableCandidates = getSortedTabbableCandidates({\n tabbingDirection: 'forwards'\n });\n $054eb8030ebde76e$var$focusFirst(tabbableCandidates);\n }\n }), /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$Collection.Slot, {\n scope: __scopeToast\n }, /*#__PURE__*/ $eyrYI$createElement($eyrYI$Primitive.ol, $eyrYI$babelruntimehelpersesmextends({\n tabIndex: -1\n }, viewportProps, {\n ref: composedRefs\n }))), hasToasts && /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$FocusProxy, {\n ref: tailFocusProxyRef,\n onFocusFromOutsideViewport: ()=>{\n const tabbableCandidates = getSortedTabbableCandidates({\n tabbingDirection: 'backwards'\n });\n $054eb8030ebde76e$var$focusFirst(tabbableCandidates);\n }\n }));\n});\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$6192c2425ecfd989, {\n displayName: $054eb8030ebde76e$var$VIEWPORT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$FOCUS_PROXY_NAME = 'ToastFocusProxy';\nconst $054eb8030ebde76e$var$FocusProxy = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , onFocusFromOutsideViewport: onFocusFromOutsideViewport , ...proxyProps } = props;\n const context = $054eb8030ebde76e$var$useToastProviderContext($054eb8030ebde76e$var$FOCUS_PROXY_NAME, __scopeToast);\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$VisuallyHidden, $eyrYI$babelruntimehelpersesmextends({\n \"aria-hidden\": true,\n tabIndex: 0\n }, proxyProps, {\n ref: forwardedRef // Avoid page scrolling when focus is on the focus proxy\n ,\n style: {\n position: 'fixed'\n },\n onFocus: (event)=>{\n var _context$viewport;\n const prevFocusedElement = event.relatedTarget;\n const isFocusFromOutsideViewport = !((_context$viewport = context.viewport) !== null && _context$viewport !== void 0 && _context$viewport.contains(prevFocusedElement));\n if (isFocusFromOutsideViewport) onFocusFromOutsideViewport();\n }\n }));\n});\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$var$FocusProxy, {\n displayName: $054eb8030ebde76e$var$FOCUS_PROXY_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Toast\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$TOAST_NAME = 'Toast';\nconst $054eb8030ebde76e$var$TOAST_SWIPE_START = 'toast.swipeStart';\nconst $054eb8030ebde76e$var$TOAST_SWIPE_MOVE = 'toast.swipeMove';\nconst $054eb8030ebde76e$var$TOAST_SWIPE_CANCEL = 'toast.swipeCancel';\nconst $054eb8030ebde76e$var$TOAST_SWIPE_END = 'toast.swipeEnd';\nconst $054eb8030ebde76e$export$8d8dc7d5f743331b = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { forceMount: forceMount , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , ...toastProps } = props;\n const [open = true, setOpen] = $eyrYI$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$Presence, {\n present: forceMount || open\n }, /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$ToastImpl, $eyrYI$babelruntimehelpersesmextends({\n open: open\n }, toastProps, {\n ref: forwardedRef,\n onClose: ()=>setOpen(false)\n ,\n onPause: $eyrYI$useCallbackRef(props.onPause),\n onResume: $eyrYI$useCallbackRef(props.onResume),\n onSwipeStart: $eyrYI$composeEventHandlers(props.onSwipeStart, (event)=>{\n event.currentTarget.setAttribute('data-swipe', 'start');\n }),\n onSwipeMove: $eyrYI$composeEventHandlers(props.onSwipeMove, (event)=>{\n const { x: x , y: y } = event.detail.delta;\n event.currentTarget.setAttribute('data-swipe', 'move');\n event.currentTarget.style.setProperty('--radix-toast-swipe-move-x', `${x}px`);\n event.currentTarget.style.setProperty('--radix-toast-swipe-move-y', `${y}px`);\n }),\n onSwipeCancel: $eyrYI$composeEventHandlers(props.onSwipeCancel, (event)=>{\n event.currentTarget.setAttribute('data-swipe', 'cancel');\n event.currentTarget.style.removeProperty('--radix-toast-swipe-move-x');\n event.currentTarget.style.removeProperty('--radix-toast-swipe-move-y');\n event.currentTarget.style.removeProperty('--radix-toast-swipe-end-x');\n event.currentTarget.style.removeProperty('--radix-toast-swipe-end-y');\n }),\n onSwipeEnd: $eyrYI$composeEventHandlers(props.onSwipeEnd, (event)=>{\n const { x: x , y: y } = event.detail.delta;\n event.currentTarget.setAttribute('data-swipe', 'end');\n event.currentTarget.style.removeProperty('--radix-toast-swipe-move-x');\n event.currentTarget.style.removeProperty('--radix-toast-swipe-move-y');\n event.currentTarget.style.setProperty('--radix-toast-swipe-end-x', `${x}px`);\n event.currentTarget.style.setProperty('--radix-toast-swipe-end-y', `${y}px`);\n setOpen(false);\n })\n })));\n});\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$8d8dc7d5f743331b, {\n displayName: $054eb8030ebde76e$var$TOAST_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const [$054eb8030ebde76e$var$ToastInteractiveProvider, $054eb8030ebde76e$var$useToastInteractiveContext] = $054eb8030ebde76e$var$createToastContext($054eb8030ebde76e$var$TOAST_NAME, {\n onClose () {}\n});\nconst $054eb8030ebde76e$var$ToastImpl = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , type: type = 'foreground' , duration: durationProp , open: open , onClose: onClose , onEscapeKeyDown: onEscapeKeyDown , onPause: onPause , onResume: onResume , onSwipeStart: onSwipeStart , onSwipeMove: onSwipeMove , onSwipeCancel: onSwipeCancel , onSwipeEnd: onSwipeEnd , ...toastProps } = props;\n const context = $054eb8030ebde76e$var$useToastProviderContext($054eb8030ebde76e$var$TOAST_NAME, __scopeToast);\n const [node1, setNode] = $eyrYI$useState(null);\n const composedRefs = $eyrYI$useComposedRefs(forwardedRef, (node)=>setNode(node)\n );\n const pointerStartRef = $eyrYI$useRef(null);\n const swipeDeltaRef = $eyrYI$useRef(null);\n const duration1 = durationProp || context.duration;\n const closeTimerStartTimeRef = $eyrYI$useRef(0);\n const closeTimerRemainingTimeRef = $eyrYI$useRef(duration1);\n const closeTimerRef = $eyrYI$useRef(0);\n const { onToastAdd: onToastAdd , onToastRemove: onToastRemove } = context;\n const handleClose = $eyrYI$useCallbackRef(()=>{\n var _context$viewport2;\n // focus viewport if focus is within toast to read the remaining toast\n // count to SR users and ensure focus isn't lost\n const isFocusInToast = node1 === null || node1 === void 0 ? void 0 : node1.contains(document.activeElement);\n if (isFocusInToast) (_context$viewport2 = context.viewport) === null || _context$viewport2 === void 0 || _context$viewport2.focus();\n onClose();\n });\n const startTimer = $eyrYI$useCallback((duration)=>{\n if (!duration || duration === Infinity) return;\n window.clearTimeout(closeTimerRef.current);\n closeTimerStartTimeRef.current = new Date().getTime();\n closeTimerRef.current = window.setTimeout(handleClose, duration);\n }, [\n handleClose\n ]);\n $eyrYI$useEffect(()=>{\n const viewport = context.viewport;\n if (viewport) {\n const handleResume = ()=>{\n startTimer(closeTimerRemainingTimeRef.current);\n onResume === null || onResume === void 0 || onResume();\n };\n const handlePause = ()=>{\n const elapsedTime = new Date().getTime() - closeTimerStartTimeRef.current;\n closeTimerRemainingTimeRef.current = closeTimerRemainingTimeRef.current - elapsedTime;\n window.clearTimeout(closeTimerRef.current);\n onPause === null || onPause === void 0 || onPause();\n };\n viewport.addEventListener($054eb8030ebde76e$var$VIEWPORT_PAUSE, handlePause);\n viewport.addEventListener($054eb8030ebde76e$var$VIEWPORT_RESUME, handleResume);\n return ()=>{\n viewport.removeEventListener($054eb8030ebde76e$var$VIEWPORT_PAUSE, handlePause);\n viewport.removeEventListener($054eb8030ebde76e$var$VIEWPORT_RESUME, handleResume);\n };\n }\n }, [\n context.viewport,\n duration1,\n onPause,\n onResume,\n startTimer\n ]); // start timer when toast opens or duration changes.\n // we include `open` in deps because closed !== unmounted when animating\n // so it could reopen before being completely unmounted\n $eyrYI$useEffect(()=>{\n if (open && !context.isClosePausedRef.current) startTimer(duration1);\n }, [\n open,\n duration1,\n context.isClosePausedRef,\n startTimer\n ]);\n $eyrYI$useEffect(()=>{\n onToastAdd();\n return ()=>onToastRemove()\n ;\n }, [\n onToastAdd,\n onToastRemove\n ]);\n const announceTextContent = $eyrYI$useMemo(()=>{\n return node1 ? $054eb8030ebde76e$var$getAnnounceTextContent(node1) : null;\n }, [\n node1\n ]);\n if (!context.viewport) return null;\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$Fragment, null, announceTextContent && /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$ToastAnnounce, {\n __scopeToast: __scopeToast // Toasts are always role=status to avoid stuttering issues with role=alert in SRs.\n ,\n role: \"status\",\n \"aria-live\": type === 'foreground' ? 'assertive' : 'polite',\n \"aria-atomic\": true\n }, announceTextContent), /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$ToastInteractiveProvider, {\n scope: __scopeToast,\n onClose: handleClose\n }, /*#__PURE__*/ $eyrYI$createPortal(/*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$Collection.ItemSlot, {\n scope: __scopeToast\n }, /*#__PURE__*/ $eyrYI$createElement($eyrYI$Root, {\n asChild: true,\n onEscapeKeyDown: $eyrYI$composeEventHandlers(onEscapeKeyDown, ()=>{\n if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();\n context.isFocusedToastEscapeKeyDownRef.current = false;\n })\n }, /*#__PURE__*/ $eyrYI$createElement($eyrYI$Primitive.li, $eyrYI$babelruntimehelpersesmextends({\n // Ensure toasts are announced as status list or status when focused\n role: \"status\",\n \"aria-live\": \"off\",\n \"aria-atomic\": true,\n tabIndex: 0,\n \"data-state\": open ? 'open' : 'closed',\n \"data-swipe-direction\": context.swipeDirection\n }, toastProps, {\n ref: composedRefs,\n style: {\n userSelect: 'none',\n touchAction: 'none',\n ...props.style\n },\n onKeyDown: $eyrYI$composeEventHandlers(props.onKeyDown, (event)=>{\n if (event.key !== 'Escape') return;\n onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event.nativeEvent);\n if (!event.nativeEvent.defaultPrevented) {\n context.isFocusedToastEscapeKeyDownRef.current = true;\n handleClose();\n }\n }),\n onPointerDown: $eyrYI$composeEventHandlers(props.onPointerDown, (event)=>{\n if (event.button !== 0) return;\n pointerStartRef.current = {\n x: event.clientX,\n y: event.clientY\n };\n }),\n onPointerMove: $eyrYI$composeEventHandlers(props.onPointerMove, (event)=>{\n if (!pointerStartRef.current) return;\n const x = event.clientX - pointerStartRef.current.x;\n const y = event.clientY - pointerStartRef.current.y;\n const hasSwipeMoveStarted = Boolean(swipeDeltaRef.current);\n const isHorizontalSwipe = [\n 'left',\n 'right'\n ].includes(context.swipeDirection);\n const clamp = [\n 'left',\n 'up'\n ].includes(context.swipeDirection) ? Math.min : Math.max;\n const clampedX = isHorizontalSwipe ? clamp(0, x) : 0;\n const clampedY = !isHorizontalSwipe ? clamp(0, y) : 0;\n const moveStartBuffer = event.pointerType === 'touch' ? 10 : 2;\n const delta = {\n x: clampedX,\n y: clampedY\n };\n const eventDetail = {\n originalEvent: event,\n delta: delta\n };\n if (hasSwipeMoveStarted) {\n swipeDeltaRef.current = delta;\n $054eb8030ebde76e$var$handleAndDispatchCustomEvent($054eb8030ebde76e$var$TOAST_SWIPE_MOVE, onSwipeMove, eventDetail, {\n discrete: false\n });\n } else if ($054eb8030ebde76e$var$isDeltaInDirection(delta, context.swipeDirection, moveStartBuffer)) {\n swipeDeltaRef.current = delta;\n $054eb8030ebde76e$var$handleAndDispatchCustomEvent($054eb8030ebde76e$var$TOAST_SWIPE_START, onSwipeStart, eventDetail, {\n discrete: false\n });\n event.target.setPointerCapture(event.pointerId);\n } else if (Math.abs(x) > moveStartBuffer || Math.abs(y) > moveStartBuffer) // User is swiping in wrong direction so we disable swipe gesture\n // for the current pointer down interaction\n pointerStartRef.current = null;\n }),\n onPointerUp: $eyrYI$composeEventHandlers(props.onPointerUp, (event1)=>{\n const delta = swipeDeltaRef.current;\n const target = event1.target;\n if (target.hasPointerCapture(event1.pointerId)) target.releasePointerCapture(event1.pointerId);\n swipeDeltaRef.current = null;\n pointerStartRef.current = null;\n if (delta) {\n const toast = event1.currentTarget;\n const eventDetail = {\n originalEvent: event1,\n delta: delta\n };\n if ($054eb8030ebde76e$var$isDeltaInDirection(delta, context.swipeDirection, context.swipeThreshold)) $054eb8030ebde76e$var$handleAndDispatchCustomEvent($054eb8030ebde76e$var$TOAST_SWIPE_END, onSwipeEnd, eventDetail, {\n discrete: true\n });\n else $054eb8030ebde76e$var$handleAndDispatchCustomEvent($054eb8030ebde76e$var$TOAST_SWIPE_CANCEL, onSwipeCancel, eventDetail, {\n discrete: true\n });\n // Prevent click event from triggering on items within the toast when\n // pointer up is part of a swipe gesture\n toast.addEventListener('click', (event)=>event.preventDefault()\n , {\n once: true\n });\n }\n })\n })))), context.viewport)));\n});\n$054eb8030ebde76e$var$ToastImpl.propTypes = {\n type (props) {\n if (props.type && ![\n 'foreground',\n 'background'\n ].includes(props.type)) {\n const error = `Invalid prop \\`type\\` supplied to \\`${$054eb8030ebde76e$var$TOAST_NAME}\\`. Expected \\`foreground | background\\`.`;\n return new Error(error);\n }\n return null;\n }\n};\n/* -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$ToastAnnounce = (props)=>{\n const { __scopeToast: __scopeToast , children: children , ...announceProps } = props;\n const context = $054eb8030ebde76e$var$useToastProviderContext($054eb8030ebde76e$var$TOAST_NAME, __scopeToast);\n const [renderAnnounceText, setRenderAnnounceText] = $eyrYI$useState(false);\n const [isAnnounced, setIsAnnounced] = $eyrYI$useState(false); // render text content in the next frame to ensure toast is announced in NVDA\n $054eb8030ebde76e$var$useNextFrame(()=>setRenderAnnounceText(true)\n ); // cleanup after announcing\n $eyrYI$useEffect(()=>{\n const timer = window.setTimeout(()=>setIsAnnounced(true)\n , 1000);\n return ()=>window.clearTimeout(timer)\n ;\n }, []);\n return isAnnounced ? null : /*#__PURE__*/ $eyrYI$createElement($eyrYI$Portal, {\n asChild: true\n }, /*#__PURE__*/ $eyrYI$createElement($eyrYI$VisuallyHidden, announceProps, renderAnnounceText && /*#__PURE__*/ $eyrYI$createElement($eyrYI$Fragment, null, context.label, \" \", children)));\n};\n/* -------------------------------------------------------------------------------------------------\n * ToastTitle\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$TITLE_NAME = 'ToastTitle';\nconst $054eb8030ebde76e$export$16d42d7c29b95a4 = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , ...titleProps } = props;\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$Primitive.div, $eyrYI$babelruntimehelpersesmextends({}, titleProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$16d42d7c29b95a4, {\n displayName: $054eb8030ebde76e$var$TITLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * ToastDescription\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$DESCRIPTION_NAME = 'ToastDescription';\nconst $054eb8030ebde76e$export$ecddd96c53621d9a = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , ...descriptionProps } = props;\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$Primitive.div, $eyrYI$babelruntimehelpersesmextends({}, descriptionProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$ecddd96c53621d9a, {\n displayName: $054eb8030ebde76e$var$DESCRIPTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * ToastAction\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$ACTION_NAME = 'ToastAction';\nconst $054eb8030ebde76e$export$3019feecfda683d2 = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { altText: altText , ...actionProps } = props;\n if (!altText) return null;\n return /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$ToastAnnounceExclude, {\n altText: altText,\n asChild: true\n }, /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$export$811e70f61c205839, $eyrYI$babelruntimehelpersesmextends({}, actionProps, {\n ref: forwardedRef\n })));\n});\n$054eb8030ebde76e$export$3019feecfda683d2.propTypes = {\n altText (props) {\n if (!props.altText) return new Error(`Missing prop \\`altText\\` expected on \\`${$054eb8030ebde76e$var$ACTION_NAME}\\``);\n return null;\n }\n};\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$3019feecfda683d2, {\n displayName: $054eb8030ebde76e$var$ACTION_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * ToastClose\n * -----------------------------------------------------------------------------------------------*/ const $054eb8030ebde76e$var$CLOSE_NAME = 'ToastClose';\nconst $054eb8030ebde76e$export$811e70f61c205839 = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , ...closeProps } = props;\n const interactiveContext = $054eb8030ebde76e$var$useToastInteractiveContext($054eb8030ebde76e$var$CLOSE_NAME, __scopeToast);\n return /*#__PURE__*/ $eyrYI$createElement($054eb8030ebde76e$var$ToastAnnounceExclude, {\n asChild: true\n }, /*#__PURE__*/ $eyrYI$createElement($eyrYI$Primitive.button, $eyrYI$babelruntimehelpersesmextends({\n type: \"button\"\n }, closeProps, {\n ref: forwardedRef,\n onClick: $eyrYI$composeEventHandlers(props.onClick, interactiveContext.onClose)\n })));\n});\n/*#__PURE__*/ Object.assign($054eb8030ebde76e$export$811e70f61c205839, {\n displayName: $054eb8030ebde76e$var$CLOSE_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $054eb8030ebde76e$var$ToastAnnounceExclude = /*#__PURE__*/ $eyrYI$forwardRef((props, forwardedRef)=>{\n const { __scopeToast: __scopeToast , altText: altText , ...announceExcludeProps } = props;\n return /*#__PURE__*/ $eyrYI$createElement($eyrYI$Primitive.div, $eyrYI$babelruntimehelpersesmextends({\n \"data-radix-toast-announce-exclude\": \"\",\n \"data-radix-toast-announce-alt\": altText || undefined\n }, announceExcludeProps, {\n ref: forwardedRef\n }));\n});\nfunction $054eb8030ebde76e$var$getAnnounceTextContent(container) {\n const textContent = [];\n const childNodes = Array.from(container.childNodes);\n childNodes.forEach((node)=>{\n if (node.nodeType === node.TEXT_NODE && node.textContent) textContent.push(node.textContent);\n if ($054eb8030ebde76e$var$isHTMLElement(node)) {\n const isHidden = node.ariaHidden || node.hidden || node.style.display === 'none';\n const isExcluded = node.dataset.radixToastAnnounceExclude === '';\n if (!isHidden) {\n if (isExcluded) {\n const altText = node.dataset.radixToastAnnounceAlt;\n if (altText) textContent.push(altText);\n } else textContent.push(...$054eb8030ebde76e$var$getAnnounceTextContent(node));\n }\n }\n }); // We return a collection of text rather than a single concatenated string.\n // This allows SR VO to naturally pause break between nodes while announcing.\n return textContent;\n}\n/* ---------------------------------------------------------------------------------------------- */ function $054eb8030ebde76e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {\n const currentTarget = detail.originalEvent.currentTarget;\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: true,\n detail: detail\n });\n if (handler) currentTarget.addEventListener(name, handler, {\n once: true\n });\n if (discrete) $eyrYI$dispatchDiscreteCustomEvent(currentTarget, event);\n else currentTarget.dispatchEvent(event);\n}\nconst $054eb8030ebde76e$var$isDeltaInDirection = (delta, direction, threshold = 0)=>{\n const deltaX = Math.abs(delta.x);\n const deltaY = Math.abs(delta.y);\n const isDeltaX = deltaX > deltaY;\n if (direction === 'left' || direction === 'right') return isDeltaX && deltaX > threshold;\n else return !isDeltaX && deltaY > threshold;\n};\nfunction $054eb8030ebde76e$var$useNextFrame(callback = ()=>{}) {\n const fn = $eyrYI$useCallbackRef(callback);\n $eyrYI$useLayoutEffect(()=>{\n let raf1 = 0;\n let raf2 = 0;\n raf1 = window.requestAnimationFrame(()=>raf2 = window.requestAnimationFrame(fn)\n );\n return ()=>{\n window.cancelAnimationFrame(raf1);\n window.cancelAnimationFrame(raf2);\n };\n }, [\n fn\n ]);\n}\nfunction $054eb8030ebde76e$var$isHTMLElement(node) {\n return node.nodeType === node.ELEMENT_NODE;\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */ function $054eb8030ebde76e$var$getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node)=>{\n const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\nfunction $054eb8030ebde76e$var$focusFirst(candidates) {\n const previouslyFocusedElement = document.activeElement;\n return candidates.some((candidate)=>{\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === previouslyFocusedElement) return true;\n candidate.focus();\n return document.activeElement !== previouslyFocusedElement;\n });\n}\nconst $054eb8030ebde76e$export$2881499e37b75b9a = $054eb8030ebde76e$export$f5d03d415824e0e;\nconst $054eb8030ebde76e$export$d5c6c08dc2d3ca7 = $054eb8030ebde76e$export$6192c2425ecfd989;\nconst $054eb8030ebde76e$export$be92b6f5f03c0fe9 = $054eb8030ebde76e$export$8d8dc7d5f743331b;\nconst $054eb8030ebde76e$export$f99233281efd08a0 = $054eb8030ebde76e$export$16d42d7c29b95a4;\nconst $054eb8030ebde76e$export$393edc798c47379d = $054eb8030ebde76e$export$ecddd96c53621d9a;\nconst $054eb8030ebde76e$export$e19cd5f9376f8cee = $054eb8030ebde76e$export$3019feecfda683d2;\nconst $054eb8030ebde76e$export$f39c2d165cd861fe = $054eb8030ebde76e$export$811e70f61c205839;\n\n\n\n\nexport {$054eb8030ebde76e$export$8a359da18fbc9073 as createToastScope, $054eb8030ebde76e$export$f5d03d415824e0e as ToastProvider, $054eb8030ebde76e$export$6192c2425ecfd989 as ToastViewport, $054eb8030ebde76e$export$8d8dc7d5f743331b as Toast, $054eb8030ebde76e$export$16d42d7c29b95a4 as ToastTitle, $054eb8030ebde76e$export$ecddd96c53621d9a as ToastDescription, $054eb8030ebde76e$export$3019feecfda683d2 as ToastAction, $054eb8030ebde76e$export$811e70f61c205839 as ToastClose, $054eb8030ebde76e$export$2881499e37b75b9a as Provider, $054eb8030ebde76e$export$d5c6c08dc2d3ca7 as Viewport, $054eb8030ebde76e$export$be92b6f5f03c0fe9 as Root, $054eb8030ebde76e$export$f99233281efd08a0 as Title, $054eb8030ebde76e$export$393edc798c47379d as Description, $054eb8030ebde76e$export$e19cd5f9376f8cee as Action, $054eb8030ebde76e$export$f39c2d165cd861fe as Close};\n//# sourceMappingURL=index.mjs.map\n","import * as ToastPrimitive from '@radix-ui/react-toast'\nimport { AnimatePresence, motion } from 'framer-motion'\nimport {\n ComponentType,\n createContext,\n SetStateAction,\n useContext,\n useState,\n Dispatch,\n} from 'react'\n\nimport { CheckmarkIcon, CloseIcon } from '~/icons'\nimport { IconProps } from '~/icons/types'\n\nimport { Box } from '../Box'\nimport { Card } from '../Card'\nimport { IconButton } from '../IconButton'\nimport { Text } from '../Text'\n\nimport * as styles from './styles.css'\n\nexport type ToastProps = ToastPrimitive.ToastProps & {\n id?: string\n title?: string\n description?: string\n variant?: 'normal' | 'success' | 'error'\n isDismissible?: boolean\n icon?: ComponentType\n}\n\nconst ToastQueueContext = createContext<\n Dispatch>>\n>(null as any)\n\nexport const ToastProvider = (props: ToastPrimitive.ToastProviderProps) => {\n const { children, ...rest } = props\n\n const [toasts, setToasts] = useState>(new Set())\n\n return (\n \n \n {children}\n\n \n {Array.from(toasts).map(toast => (\n \n ))}\n \n \n\n \n \n )\n}\n\nconst ToastViewport = () => (\n \n)\n\nexport const Toast = (props: ToastProps) => {\n const {\n id,\n variant,\n title,\n description,\n icon: Icon,\n isDismissible = true,\n ...rest\n } = props\n\n const renderIcon = () => {\n if (Icon) {\n return \n }\n\n switch (variant) {\n case 'success':\n return (\n \n \n \n )\n case 'error':\n return (\n \n \n \n )\n\n default:\n return null\n }\n }\n\n return (\n \n \n \n {renderIcon()}\n\n \n {title && (\n \n \n {title}\n \n \n )}\n\n \n \n {description}\n \n \n \n \n\n {isDismissible && (\n \n \n \n )}\n \n \n )\n}\n\nexport const useToast = () => {\n const setToasts = useContext(ToastQueueContext)\n\n return (props: ToastProps) => {\n const toast: ToastProps = {\n ...props,\n id: Math.random().toString(36).slice(2, 12),\n onOpenChange: open => {\n if (!open) {\n setToasts(toasts => {\n toasts.delete(toast)\n return new Set([...toasts])\n })\n }\n },\n }\n\n setToasts(toasts => new Set([...toasts, toast]))\n }\n}\n"],"names":["$054eb8030ebde76e$var$PROVIDER_NAME","$054eb8030ebde76e$var$Collection","$054eb8030ebde76e$var$useCollection","$054eb8030ebde76e$var$createCollectionScope","$eyrYI$createCollection","$054eb8030ebde76e$var$createToastContext","$054eb8030ebde76e$export$8a359da18fbc9073","$eyrYI$createContextScope","$054eb8030ebde76e$var$ToastProviderProvider","$054eb8030ebde76e$var$useToastProviderContext","$054eb8030ebde76e$export$f5d03d415824e0e","props","__scopeToast","label","duration","swipeDirection","swipeThreshold","children","viewport","setViewport","$eyrYI$useState","toastCount","setToastCount","isFocusedToastEscapeKeyDownRef","$eyrYI$useRef","isClosePausedRef","$eyrYI$createElement","$eyrYI$useCallback","prevCount","error","$054eb8030ebde76e$var$VIEWPORT_NAME","$054eb8030ebde76e$var$VIEWPORT_DEFAULT_HOTKEY","$054eb8030ebde76e$var$VIEWPORT_PAUSE","$054eb8030ebde76e$var$VIEWPORT_RESUME","$054eb8030ebde76e$export$6192c2425ecfd989","$eyrYI$forwardRef","forwardedRef","hotkey","viewportProps","context","getItems","wrapperRef","headFocusProxyRef","tailFocusProxyRef","ref","composedRefs","$eyrYI$useComposedRefs","hotkeyLabel","hasToasts","$eyrYI$useEffect","handleKeyDown","event","_ref$current","key","wrapper","handlePause","pauseEvent","handleResume","resumeEvent","handleFocusOutResume","handlePointerLeaveResume","getSortedTabbableCandidates","tabbingDirection","tabbableCandidates","toastItem","toastNode","toastTabbableCandidates","$054eb8030ebde76e$var$getTabbableCandidates","isMetaKey","focusedElement","isTabbingBackwards","_headFocusProxyRef$cu","sortedCandidates","index","candidate","$054eb8030ebde76e$var$focusFirst","_headFocusProxyRef$cu2","_tailFocusProxyRef$cu","$eyrYI$Branch","$054eb8030ebde76e$var$FocusProxy","$eyrYI$Primitive","$eyrYI$babelruntimehelpersesmextends","$054eb8030ebde76e$var$FOCUS_PROXY_NAME","onFocusFromOutsideViewport","proxyProps","$eyrYI$VisuallyHidden","_context$viewport","prevFocusedElement","$054eb8030ebde76e$var$TOAST_NAME","$054eb8030ebde76e$var$TOAST_SWIPE_START","$054eb8030ebde76e$var$TOAST_SWIPE_MOVE","$054eb8030ebde76e$var$TOAST_SWIPE_CANCEL","$054eb8030ebde76e$var$TOAST_SWIPE_END","$054eb8030ebde76e$export$8d8dc7d5f743331b","forceMount","openProp","defaultOpen","onOpenChange","toastProps","open","setOpen","$eyrYI$useControllableState","$eyrYI$Presence","$054eb8030ebde76e$var$ToastImpl","$eyrYI$useCallbackRef","$eyrYI$composeEventHandlers","x","y","$054eb8030ebde76e$var$ToastInteractiveProvider","$054eb8030ebde76e$var$useToastInteractiveContext","type","durationProp","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd","node1","setNode","node","pointerStartRef","swipeDeltaRef","duration1","closeTimerStartTimeRef","closeTimerRemainingTimeRef","closeTimerRef","onToastAdd","onToastRemove","handleClose","_context$viewport2","startTimer","elapsedTime","announceTextContent","$eyrYI$useMemo","$054eb8030ebde76e$var$getAnnounceTextContent","$eyrYI$Fragment","$054eb8030ebde76e$var$ToastAnnounce","$eyrYI$createPortal","$eyrYI$Root","hasSwipeMoveStarted","isHorizontalSwipe","clamp","clampedX","clampedY","moveStartBuffer","delta","eventDetail","$054eb8030ebde76e$var$handleAndDispatchCustomEvent","$054eb8030ebde76e$var$isDeltaInDirection","event1","target","toast","announceProps","renderAnnounceText","setRenderAnnounceText","isAnnounced","setIsAnnounced","$054eb8030ebde76e$var$useNextFrame","timer","$eyrYI$Portal","$054eb8030ebde76e$export$16d42d7c29b95a4","titleProps","$054eb8030ebde76e$export$ecddd96c53621d9a","descriptionProps","$054eb8030ebde76e$var$ACTION_NAME","$054eb8030ebde76e$export$3019feecfda683d2","altText","actionProps","$054eb8030ebde76e$var$ToastAnnounceExclude","$054eb8030ebde76e$export$811e70f61c205839","$054eb8030ebde76e$var$CLOSE_NAME","closeProps","interactiveContext","announceExcludeProps","container","textContent","$054eb8030ebde76e$var$isHTMLElement","isHidden","isExcluded","name","handler","detail","discrete","currentTarget","$eyrYI$dispatchDiscreteCustomEvent","direction","threshold","deltaX","deltaY","isDeltaX","callback","fn","$eyrYI$useLayoutEffect","raf1","raf2","nodes","walker","isHiddenInput","candidates","previouslyFocusedElement","$054eb8030ebde76e$export$2881499e37b75b9a","$054eb8030ebde76e$export$d5c6c08dc2d3ca7","$054eb8030ebde76e$export$be92b6f5f03c0fe9","$054eb8030ebde76e$export$f99233281efd08a0","$054eb8030ebde76e$export$393edc798c47379d","$054eb8030ebde76e$export$f39c2d165cd861fe","ToastQueueContext","createContext","ToastProvider","rest","toasts","setToasts","useState","jsxs","ToastPrimitive.Provider","jsx","AnimatePresence","Toast","ToastViewport","ToastPrimitive.Viewport","styles.viewport","id","variant","title","description","Icon","isDismissible","renderIcon","Box","CheckmarkIcon","CloseIcon","ToastPrimitive.Root","styles.toast","Card","motion","ToastPrimitive.Title","Text","ToastPrimitive.Description","ToastPrimitive.Close","IconButton","useToast","useContext"],"mappings":"8gCAiCqG,MAAMA,GAAsC,gBAC3I,CAACC,GAAkCC,GAAqCC,EAA2C,EAAIC,GAAwB,OAAO,EACtJ,CAACC,GAA0CC,EAAyC,EAAIC,GAA0B,QAAS,CAC7HJ,EACJ,CAAC,EACK,CAACK,GAA6CC,CAA6C,EAAIJ,GAAyCL,EAAmC,EAC3KU,GAA4CC,GAAQ,CACtD,KAAM,CAAE,aAAcC,EAAe,MAAOC,EAAQ,eAAiB,SAAUC,EAAW,IAAO,eAAgBC,EAAiB,QAAU,eAAgBC,EAAiB,GAAK,SAAUC,CAAW,EAAGN,EACpM,CAACO,EAAUC,CAAW,EAAIC,EAAe,SAAC,IAAI,EAC9C,CAACC,EAAYC,CAAa,EAAIF,EAAe,SAAC,CAAC,EAC/CG,EAAiCC,SAAc,EAAK,EACpDC,EAAmBD,SAAc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D,CAAA,CAAA,EAA0B,CAE9B,CACF,EAGFC,EAAAD,GAAA,IAAA,IAAA,CAAA,GAAAA,EAAA3D,CAAA,CAAA,CAAA,CAA+C,CAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Toast.stories-37acb69f.js b/assets/Toast.stories-95493ae9.js similarity index 94% rename from assets/Toast.stories-37acb69f.js rename to assets/Toast.stories-95493ae9.js index 8e7d0079c..8eb393c81 100644 --- a/assets/Toast.stories-37acb69f.js +++ b/assets/Toast.stories-95493ae9.js @@ -1,4 +1,4 @@ -import{j as l}from"./jsx-runtime-69eee039.js";import{B as Ne}from"./Button-cbaba6d6.js";import{C as ye}from"./Card-3affd0fc.js";import{c as ae,h as Me,a1 as Le}from"./WarningIcon-b42ff4ac.js";import{b as Oe,_ as C,$ as he,a as F,e as je}from"./index-416e5a7a.js";import{r as t}from"./index-7c191284.js";import{r as Ve}from"./index-ecbee218.js";import{a as Ke,b as X,c as g,$ as We}from"./index-006d63ff.js";import{$ as He}from"./index-e5d8d6a8.js";import{a as qe,b as Be}from"./index-f0ce3c30.js";import{$ as Ue}from"./index-4e55634c.js";import{$ as Xe}from"./index-cd5c74af.js";import{a as ge}from"./index-8e81e3f6.js";import{B as K}from"./Box-8ffdd394.js";import{I as Ye}from"./IconButton-3648ed15.js";import{T as ie}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";import{c as ze}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as Ge}from"./motion-cc45ae8c.js";import{A as Qe}from"./index-686b454f.js";/* empty css */import"./typography-f274f330.js";const Ce="ToastProvider",[ne,Je,Ze]=He("Toast"),[_e,tr]=Oe("Toast",[Ze]),[et,z]=_e(Ce),Se=e=>{const{__scopeToast:o,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:d=50,children:f}=e,[m,b]=t.useState(null),[i,y]=t.useState(0),x=t.useRef(!1),k=t.useRef(!1);return t.createElement(ne.Provider,{scope:o},t.createElement(et,{scope:o,label:n,duration:r,swipeDirection:a,swipeThreshold:d,toastCount:i,viewport:m,onViewportChange:b,onToastAdd:t.useCallback(()=>y(P=>P+1),[]),onToastRemove:t.useCallback(()=>y(P=>P-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:k},f))};Se.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const o=`Invalid prop \`label\` supplied to \`${Ce}\`. Expected non-empty \`string\`.`;return new Error(o)}return null}};const tt="ToastViewport",rt=["F8"],te="toast.viewportPause",re="toast.viewportResume",ot=t.forwardRef((e,o)=>{const{__scopeToast:n,hotkey:r=rt,label:a="Notifications ({hotkey})",...d}=e,f=z(tt,n),m=Je(n),b=t.useRef(null),i=t.useRef(null),y=t.useRef(null),x=t.useRef(null),k=he(o,x,f.onViewportChange),P=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;t.useEffect(()=>{const c=E=>{var p;r.every($=>E[$]||E.code===$)&&((p=x.current)===null||p===void 0||p.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r]),t.useEffect(()=>{const c=b.current,E=x.current;if(R&&c&&E){const p=()=>{if(!f.isClosePausedRef.current){const w=new CustomEvent(te);E.dispatchEvent(w),f.isClosePausedRef.current=!0}},v=()=>{if(f.isClosePausedRef.current){const w=new CustomEvent(re);E.dispatchEvent(w),f.isClosePausedRef.current=!1}},$=w=>{!c.contains(w.relatedTarget)&&v()},T=()=>{c.contains(document.activeElement)||v()};return c.addEventListener("focusin",p),c.addEventListener("focusout",$),c.addEventListener("pointermove",p),c.addEventListener("pointerleave",T),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{c.removeEventListener("focusin",p),c.removeEventListener("focusout",$),c.removeEventListener("pointermove",p),c.removeEventListener("pointerleave",T),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[R,f.isClosePausedRef]);const u=t.useCallback(({tabbingDirection:c})=>{const p=m().map(v=>{const $=v.ref.current,T=[$,...xt($)];return c==="forwards"?T:T.reverse()});return(c==="forwards"?p.reverse():p).flat()},[m]);return t.useEffect(()=>{const c=x.current;if(c){const E=p=>{const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const N=document.activeElement,D=p.shiftKey;if(p.target===c&&D){var T;(T=i.current)===null||T===void 0||T.focus();return}const I=u({tabbingDirection:D?"backwards":"forwards"}),O=I.findIndex(s=>s===N);if(ee(I.slice(O+1)))p.preventDefault();else{var w,_;D?(w=i.current)===null||w===void 0||w.focus():(_=y.current)===null||_===void 0||_.focus()}}};return c.addEventListener("keydown",E),()=>c.removeEventListener("keydown",E)}},[m,u]),t.createElement(Be,{ref:b,role:"region","aria-label":a.replace("{hotkey}",P),tabIndex:-1,style:{pointerEvents:R?void 0:"none"}},R&&t.createElement(ce,{ref:i,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"forwards"});ee(c)}}),t.createElement(ne.Slot,{scope:n},t.createElement(F.ol,C({tabIndex:-1},d,{ref:k}))),R&&t.createElement(ce,{ref:y,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"backwards"});ee(c)}}))}),nt="ToastFocusProxy",ce=t.forwardRef((e,o)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,d=z(nt,n);return t.createElement(ge,C({"aria-hidden":!0,tabIndex:0},a,{ref:o,style:{position:"fixed"},onFocus:f=>{var m;const b=f.relatedTarget;!((m=d.viewport)!==null&&m!==void 0&&m.contains(b))&&r()}}))}),G="Toast",st="toast.swipeStart",at="toast.swipeMove",it="toast.swipeCancel",ct="toast.swipeEnd",dt=t.forwardRef((e,o)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:d,...f}=e,[m=!0,b]=Ke({prop:r,defaultProp:a,onChange:d});return t.createElement(Xe,{present:n||m},t.createElement(Pe,C({open:m},f,{ref:o,onClose:()=>b(!1),onPause:X(e.onPause),onResume:X(e.onResume),onSwipeStart:g(e.onSwipeStart,i=>{i.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(e.onSwipeMove,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","move"),i.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:g(e.onSwipeCancel,i=>{i.currentTarget.setAttribute("data-swipe","cancel"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(e.onSwipeEnd,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","end"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),b(!1)})})))}),[lt,ut]=_e(G,{onClose(){}}),Pe=t.forwardRef((e,o)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:d,onClose:f,onEscapeKeyDown:m,onPause:b,onResume:i,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:k,onSwipeEnd:P,...R}=e,u=z(G,n),[c,E]=t.useState(null),p=he(o,s=>E(s)),v=t.useRef(null),$=t.useRef(null),T=a||u.duration,w=t.useRef(0),_=t.useRef(T),N=t.useRef(0),{onToastAdd:D,onToastRemove:J}=u,A=X(()=>{var s;(c==null?void 0:c.contains(document.activeElement))&&((s=u.viewport)===null||s===void 0||s.focus()),f()}),I=t.useCallback(s=>{!s||s===1/0||(window.clearTimeout(N.current),w.current=new Date().getTime(),N.current=window.setTimeout(A,s))},[A]);t.useEffect(()=>{const s=u.viewport;if(s){const h=()=>{I(_.current),i==null||i()},S=()=>{const M=new Date().getTime()-w.current;_.current=_.current-M,window.clearTimeout(N.current),b==null||b()};return s.addEventListener(te,S),s.addEventListener(re,h),()=>{s.removeEventListener(te,S),s.removeEventListener(re,h)}}},[u.viewport,T,b,i,I]),t.useEffect(()=>{d&&!u.isClosePausedRef.current&&I(T)},[d,T,u.isClosePausedRef,I]),t.useEffect(()=>(D(),()=>J()),[D,J]);const O=t.useMemo(()=>c?De(c):null,[c]);return u.viewport?t.createElement(t.Fragment,null,O&&t.createElement(pt,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),t.createElement(lt,{scope:n,onClose:A},Ve.createPortal(t.createElement(ne.ItemSlot,{scope:n},t.createElement(qe,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||A(),u.isFocusedToastEscapeKeyDownRef.current=!1})},t.createElement(F.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":u.swipeDirection},R,{ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:g(e.onKeyDown,s=>{s.key==="Escape"&&(m==null||m(s.nativeEvent),s.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:g(e.onPointerDown,s=>{s.button===0&&(v.current={x:s.clientX,y:s.clientY})}),onPointerMove:g(e.onPointerMove,s=>{if(!v.current)return;const h=s.clientX-v.current.x,S=s.clientY-v.current.y,M=!!$.current,L=["left","right"].includes(u.swipeDirection),j=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,Fe=L?j(0,h):0,ke=L?0:j(0,S),Z=s.pointerType==="touch"?10:2,V={x:Fe,y:ke},se={originalEvent:s,delta:V};M?($.current=V,W(at,x,se,{discrete:!1})):de(V,u.swipeDirection,Z)?($.current=V,W(st,y,se,{discrete:!1}),s.target.setPointerCapture(s.pointerId)):(Math.abs(h)>Z||Math.abs(S)>Z)&&(v.current=null)}),onPointerUp:g(e.onPointerUp,s=>{const h=$.current,S=s.target;if(S.hasPointerCapture(s.pointerId)&&S.releasePointerCapture(s.pointerId),$.current=null,v.current=null,h){const M=s.currentTarget,L={originalEvent:s,delta:h};de(h,u.swipeDirection,u.swipeThreshold)?W(ct,P,L,{discrete:!0}):W(it,k,L,{discrete:!0}),M.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})))),u.viewport))):null});Pe.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const o=`Invalid prop \`type\` supplied to \`${G}\`. Expected \`foreground | background\`.`;return new Error(o)}return null}};const pt=e=>{const{__scopeToast:o,children:n,...r}=e,a=z(G,o),[d,f]=t.useState(!1),[m,b]=t.useState(!1);return Tt(()=>f(!0)),t.useEffect(()=>{const i=window.setTimeout(()=>b(!0),1e3);return()=>window.clearTimeout(i)},[]),m?null:t.createElement(Ue,{asChild:!0},t.createElement(ge,r,d&&t.createElement(t.Fragment,null,a.label," ",n)))},ft=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),mt=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),bt="ToastAction",vt=t.forwardRef((e,o)=>{const{altText:n,...r}=e;return n?t.createElement(Ie,{altText:n,asChild:!0},t.createElement(Re,C({},r,{ref:o}))):null});vt.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${bt}\``)}};const $t="ToastClose",Re=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e,a=ut($t,n);return t.createElement(Ie,{asChild:!0},t.createElement(F.button,C({type:"button"},r,{ref:o,onClick:g(e.onClick,a.onClose)})))}),Ie=t.forwardRef((e,o)=>{const{__scopeToast:n,altText:r,...a}=e;return t.createElement(F.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},a,{ref:o}))});function De(e){const o=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&o.push(r.textContent),wt(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",d=r.dataset.radixToastAnnounceExclude==="";if(!a)if(d){const f=r.dataset.radixToastAnnounceAlt;f&&o.push(f)}else o.push(...De(r))}}),o}function W(e,o,n,{discrete:r}){const a=n.originalEvent.currentTarget,d=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});o&&a.addEventListener(e,o,{once:!0}),r?je(a,d):a.dispatchEvent(d)}const de=(e,o,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),d=r>a;return o==="left"||o==="right"?d&&r>n:!d&&a>n};function Tt(e=()=>{}){const o=X(e);We(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[o])}function wt(e){return e.nodeType===e.ELEMENT_NODE}function xt(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function ee(e){const o=document.activeElement;return e.some(n=>n===o?!0:(n.focus(),document.activeElement!==o))}const Et=Se,yt=ot,ht=dt,gt=ft,Ct=mt,_t=Re;var St=ze({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]}),Pt="_6wut8v1 fyvr12wh fyvr12wb fyvr11hs fyvr1qo fyvr1mo fyvr128 fyvr118g fyvr11i4 fyvr11h0";const Ae=t.createContext(null),oe=e=>{const{children:o,...n}=e,[r,a]=t.useState(new Set);return l.jsxs(Et,{...n,children:[l.jsxs(Ae.Provider,{value:a,children:[o,l.jsx(Qe,{children:Array.from(r).map(d=>l.jsx(Y,{...d},d.id))})]}),l.jsx(Rt,{})]})},Rt=()=>l.jsx(yt,{className:Pt}),Y=e=>{const{id:o,variant:n,title:r,description:a,icon:d,isDismissible:f=!0,...m}=e,b=()=>{if(d)return l.jsx(d,{});switch(n){case"success":return l.jsx(K,{background:"positive",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(Me,{})});case"error":return l.jsx(K,{background:"negative",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(ae,{})});default:return null}};return l.jsx(ht,{className:St({variant:n}),open:!0,forceMount:!0,asChild:!0,duration:n==="error"?1/0:5e3,...m,children:l.jsxs(ye,{as:Ge.li,layoutId:o,layout:!0,initial:{x:"100%"},animate:{x:0},exit:{y:"100%",opacity:0},borderRadius:"md",background:"buttonGlass",backdropFilter:"blur",position:"relative",width:"full",justifyContent:"space-between",children:[l.jsxs(K,{gap:"3",alignItems:"center",children:[b(),l.jsxs(K,{flexDirection:"column",gap:"1",children:[r&&l.jsx(gt,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:r})}),l.jsx(Ct,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"medium",color:"text50",children:a})})]})]}),f&&l.jsx(_t,{"aria-label":"Close",asChild:!0,children:l.jsx(Ye,{icon:ae,size:"xs"})})]})})},It=()=>{const e=t.useContext(Ae);return o=>{const n={...o,id:Math.random().toString(36).slice(2,12),onOpenChange:r=>{r||e(a=>(a.delete(n),new Set([...a])))}};e(r=>new Set([...r,n]))}};try{oe.displayName="ToastProvider",oe.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}try{Y.displayName="Toast",Y.__docgenInfo={description:"",displayName:"Toast",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"normal"'},{value:'"error"'},{value:'"success"'}]}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}}}}}catch{}const rr={title:"Components/Toast",component:Y},Q=e=>l.jsx(oe,{swipeDirection:"right",children:l.jsx(Dt,{...e})}),Dt=e=>{const o=It();return l.jsx(ye,{position:"relative",children:l.jsx(Ne,{label:"Raise a Toast",onClick:()=>{o({...e,title:e.title+" "+new Date().getMilliseconds()})}})})},H={render:Q,args:{title:"Title",description:"Description"}},q={render:Q,args:{icon:Le,title:"Transaction Sent",description:"Waiting for confirmation"}},B={render:Q,args:{title:"Success",description:"Description",variant:"success"}},U={render:Q,args:{title:"Error",description:'The transaction failed to send because the relayer encountered an error. "Not enough gas"',variant:"error"}};var le,ue,pe;H.parameters={...H.parameters,docs:{...(le=H.parameters)==null?void 0:le.docs,source:{originalSource:`{ +import{j as l}from"./jsx-runtime-1caa8f64.js";import{B as Ne}from"./Button-e8455a66.js";import{C as ye}from"./Card-34bef967.js";import{c as ae,h as Me,a1 as Le}from"./WarningIcon-c4815a2d.js";import{a as Oe,_ as C,$ as he,c as F,e as je}from"./index-bff3e5ca.js";import{r as t}from"./index-1cdf6ce0.js";import{r as Ve}from"./index-a01a9712.js";import{a as Ke,b as X,c as g,$ as We}from"./index-ed6c0076.js";import{$ as He}from"./index-af546338.js";import{a as qe,b as Be}from"./index-c484f70b.js";import{$ as Ue}from"./index-4fee81d2.js";import{$ as Xe}from"./index-5a7be88c.js";import{$ as ge}from"./index-7e536d32.js";import{B as K}from"./Box-e4a86556.js";import{I as Ye}from"./IconButton-64184e44.js";import{T as ie}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{c as ze}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import{m as Ge}from"./motion-bbbff89a.js";import{A as Qe}from"./index-68ff1be5.js";/* empty css */import"./typography-f274f330.js";const Ce="ToastProvider",[ne,Je,Ze]=He("Toast"),[_e,tr]=Oe("Toast",[Ze]),[et,z]=_e(Ce),Se=e=>{const{__scopeToast:o,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:d=50,children:f}=e,[m,b]=t.useState(null),[i,y]=t.useState(0),x=t.useRef(!1),k=t.useRef(!1);return t.createElement(ne.Provider,{scope:o},t.createElement(et,{scope:o,label:n,duration:r,swipeDirection:a,swipeThreshold:d,toastCount:i,viewport:m,onViewportChange:b,onToastAdd:t.useCallback(()=>y(P=>P+1),[]),onToastRemove:t.useCallback(()=>y(P=>P-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:k},f))};Se.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const o=`Invalid prop \`label\` supplied to \`${Ce}\`. Expected non-empty \`string\`.`;return new Error(o)}return null}};const tt="ToastViewport",rt=["F8"],te="toast.viewportPause",re="toast.viewportResume",ot=t.forwardRef((e,o)=>{const{__scopeToast:n,hotkey:r=rt,label:a="Notifications ({hotkey})",...d}=e,f=z(tt,n),m=Je(n),b=t.useRef(null),i=t.useRef(null),y=t.useRef(null),x=t.useRef(null),k=he(o,x,f.onViewportChange),P=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;t.useEffect(()=>{const c=E=>{var p;r.every($=>E[$]||E.code===$)&&((p=x.current)===null||p===void 0||p.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r]),t.useEffect(()=>{const c=b.current,E=x.current;if(R&&c&&E){const p=()=>{if(!f.isClosePausedRef.current){const w=new CustomEvent(te);E.dispatchEvent(w),f.isClosePausedRef.current=!0}},v=()=>{if(f.isClosePausedRef.current){const w=new CustomEvent(re);E.dispatchEvent(w),f.isClosePausedRef.current=!1}},$=w=>{!c.contains(w.relatedTarget)&&v()},T=()=>{c.contains(document.activeElement)||v()};return c.addEventListener("focusin",p),c.addEventListener("focusout",$),c.addEventListener("pointermove",p),c.addEventListener("pointerleave",T),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{c.removeEventListener("focusin",p),c.removeEventListener("focusout",$),c.removeEventListener("pointermove",p),c.removeEventListener("pointerleave",T),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[R,f.isClosePausedRef]);const u=t.useCallback(({tabbingDirection:c})=>{const p=m().map(v=>{const $=v.ref.current,T=[$,...xt($)];return c==="forwards"?T:T.reverse()});return(c==="forwards"?p.reverse():p).flat()},[m]);return t.useEffect(()=>{const c=x.current;if(c){const E=p=>{const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const N=document.activeElement,D=p.shiftKey;if(p.target===c&&D){var T;(T=i.current)===null||T===void 0||T.focus();return}const I=u({tabbingDirection:D?"backwards":"forwards"}),O=I.findIndex(s=>s===N);if(ee(I.slice(O+1)))p.preventDefault();else{var w,_;D?(w=i.current)===null||w===void 0||w.focus():(_=y.current)===null||_===void 0||_.focus()}}};return c.addEventListener("keydown",E),()=>c.removeEventListener("keydown",E)}},[m,u]),t.createElement(Be,{ref:b,role:"region","aria-label":a.replace("{hotkey}",P),tabIndex:-1,style:{pointerEvents:R?void 0:"none"}},R&&t.createElement(ce,{ref:i,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"forwards"});ee(c)}}),t.createElement(ne.Slot,{scope:n},t.createElement(F.ol,C({tabIndex:-1},d,{ref:k}))),R&&t.createElement(ce,{ref:y,onFocusFromOutsideViewport:()=>{const c=u({tabbingDirection:"backwards"});ee(c)}}))}),nt="ToastFocusProxy",ce=t.forwardRef((e,o)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,d=z(nt,n);return t.createElement(ge,C({"aria-hidden":!0,tabIndex:0},a,{ref:o,style:{position:"fixed"},onFocus:f=>{var m;const b=f.relatedTarget;!((m=d.viewport)!==null&&m!==void 0&&m.contains(b))&&r()}}))}),G="Toast",st="toast.swipeStart",at="toast.swipeMove",it="toast.swipeCancel",ct="toast.swipeEnd",dt=t.forwardRef((e,o)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:d,...f}=e,[m=!0,b]=Ke({prop:r,defaultProp:a,onChange:d});return t.createElement(Xe,{present:n||m},t.createElement(Pe,C({open:m},f,{ref:o,onClose:()=>b(!1),onPause:X(e.onPause),onResume:X(e.onResume),onSwipeStart:g(e.onSwipeStart,i=>{i.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(e.onSwipeMove,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","move"),i.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:g(e.onSwipeCancel,i=>{i.currentTarget.setAttribute("data-swipe","cancel"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(e.onSwipeEnd,i=>{const{x:y,y:x}=i.detail.delta;i.currentTarget.setAttribute("data-swipe","end"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),i.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),i.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),b(!1)})})))}),[lt,ut]=_e(G,{onClose(){}}),Pe=t.forwardRef((e,o)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:d,onClose:f,onEscapeKeyDown:m,onPause:b,onResume:i,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:k,onSwipeEnd:P,...R}=e,u=z(G,n),[c,E]=t.useState(null),p=he(o,s=>E(s)),v=t.useRef(null),$=t.useRef(null),T=a||u.duration,w=t.useRef(0),_=t.useRef(T),N=t.useRef(0),{onToastAdd:D,onToastRemove:J}=u,A=X(()=>{var s;(c==null?void 0:c.contains(document.activeElement))&&((s=u.viewport)===null||s===void 0||s.focus()),f()}),I=t.useCallback(s=>{!s||s===1/0||(window.clearTimeout(N.current),w.current=new Date().getTime(),N.current=window.setTimeout(A,s))},[A]);t.useEffect(()=>{const s=u.viewport;if(s){const h=()=>{I(_.current),i==null||i()},S=()=>{const M=new Date().getTime()-w.current;_.current=_.current-M,window.clearTimeout(N.current),b==null||b()};return s.addEventListener(te,S),s.addEventListener(re,h),()=>{s.removeEventListener(te,S),s.removeEventListener(re,h)}}},[u.viewport,T,b,i,I]),t.useEffect(()=>{d&&!u.isClosePausedRef.current&&I(T)},[d,T,u.isClosePausedRef,I]),t.useEffect(()=>(D(),()=>J()),[D,J]);const O=t.useMemo(()=>c?De(c):null,[c]);return u.viewport?t.createElement(t.Fragment,null,O&&t.createElement(pt,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),t.createElement(lt,{scope:n,onClose:A},Ve.createPortal(t.createElement(ne.ItemSlot,{scope:n},t.createElement(qe,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||A(),u.isFocusedToastEscapeKeyDownRef.current=!1})},t.createElement(F.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":u.swipeDirection},R,{ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:g(e.onKeyDown,s=>{s.key==="Escape"&&(m==null||m(s.nativeEvent),s.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:g(e.onPointerDown,s=>{s.button===0&&(v.current={x:s.clientX,y:s.clientY})}),onPointerMove:g(e.onPointerMove,s=>{if(!v.current)return;const h=s.clientX-v.current.x,S=s.clientY-v.current.y,M=!!$.current,L=["left","right"].includes(u.swipeDirection),j=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,Fe=L?j(0,h):0,ke=L?0:j(0,S),Z=s.pointerType==="touch"?10:2,V={x:Fe,y:ke},se={originalEvent:s,delta:V};M?($.current=V,W(at,x,se,{discrete:!1})):de(V,u.swipeDirection,Z)?($.current=V,W(st,y,se,{discrete:!1}),s.target.setPointerCapture(s.pointerId)):(Math.abs(h)>Z||Math.abs(S)>Z)&&(v.current=null)}),onPointerUp:g(e.onPointerUp,s=>{const h=$.current,S=s.target;if(S.hasPointerCapture(s.pointerId)&&S.releasePointerCapture(s.pointerId),$.current=null,v.current=null,h){const M=s.currentTarget,L={originalEvent:s,delta:h};de(h,u.swipeDirection,u.swipeThreshold)?W(ct,P,L,{discrete:!0}):W(it,k,L,{discrete:!0}),M.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})))),u.viewport))):null});Pe.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const o=`Invalid prop \`type\` supplied to \`${G}\`. Expected \`foreground | background\`.`;return new Error(o)}return null}};const pt=e=>{const{__scopeToast:o,children:n,...r}=e,a=z(G,o),[d,f]=t.useState(!1),[m,b]=t.useState(!1);return Tt(()=>f(!0)),t.useEffect(()=>{const i=window.setTimeout(()=>b(!0),1e3);return()=>window.clearTimeout(i)},[]),m?null:t.createElement(Ue,{asChild:!0},t.createElement(ge,r,d&&t.createElement(t.Fragment,null,a.label," ",n)))},ft=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),mt=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e;return t.createElement(F.div,C({},r,{ref:o}))}),bt="ToastAction",vt=t.forwardRef((e,o)=>{const{altText:n,...r}=e;return n?t.createElement(Ie,{altText:n,asChild:!0},t.createElement(Re,C({},r,{ref:o}))):null});vt.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${bt}\``)}};const $t="ToastClose",Re=t.forwardRef((e,o)=>{const{__scopeToast:n,...r}=e,a=ut($t,n);return t.createElement(Ie,{asChild:!0},t.createElement(F.button,C({type:"button"},r,{ref:o,onClick:g(e.onClick,a.onClose)})))}),Ie=t.forwardRef((e,o)=>{const{__scopeToast:n,altText:r,...a}=e;return t.createElement(F.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},a,{ref:o}))});function De(e){const o=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&o.push(r.textContent),wt(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",d=r.dataset.radixToastAnnounceExclude==="";if(!a)if(d){const f=r.dataset.radixToastAnnounceAlt;f&&o.push(f)}else o.push(...De(r))}}),o}function W(e,o,n,{discrete:r}){const a=n.originalEvent.currentTarget,d=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});o&&a.addEventListener(e,o,{once:!0}),r?je(a,d):a.dispatchEvent(d)}const de=(e,o,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),d=r>a;return o==="left"||o==="right"?d&&r>n:!d&&a>n};function Tt(e=()=>{}){const o=X(e);We(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[o])}function wt(e){return e.nodeType===e.ELEMENT_NODE}function xt(e){const o=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)o.push(n.currentNode);return o}function ee(e){const o=document.activeElement;return e.some(n=>n===o?!0:(n.focus(),document.activeElement!==o))}const Et=Se,yt=ot,ht=dt,gt=ft,Ct=mt,_t=Re;var St=ze({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]}),Pt="_6wut8v1 fyvr12wh fyvr12wb fyvr11hs fyvr1qo fyvr1mo fyvr128 fyvr118g fyvr11i4 fyvr11h0";const Ae=t.createContext(null),oe=e=>{const{children:o,...n}=e,[r,a]=t.useState(new Set);return l.jsxs(Et,{...n,children:[l.jsxs(Ae.Provider,{value:a,children:[o,l.jsx(Qe,{children:Array.from(r).map(d=>l.jsx(Y,{...d},d.id))})]}),l.jsx(Rt,{})]})},Rt=()=>l.jsx(yt,{className:Pt}),Y=e=>{const{id:o,variant:n,title:r,description:a,icon:d,isDismissible:f=!0,...m}=e,b=()=>{if(d)return l.jsx(d,{});switch(n){case"success":return l.jsx(K,{background:"positive",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(Me,{})});case"error":return l.jsx(K,{background:"negative",color:"black",borderRadius:"circle",width:"8",height:"8",placeItems:"center",minWidth:"0",flexShrink:"0",children:l.jsx(ae,{})});default:return null}};return l.jsx(ht,{className:St({variant:n}),open:!0,forceMount:!0,asChild:!0,duration:n==="error"?1/0:5e3,...m,children:l.jsxs(ye,{as:Ge.li,layoutId:o,layout:!0,initial:{x:"100%"},animate:{x:0},exit:{y:"100%",opacity:0},borderRadius:"md",background:"buttonGlass",backdropFilter:"blur",position:"relative",width:"full",justifyContent:"space-between",children:[l.jsxs(K,{gap:"3",alignItems:"center",children:[b(),l.jsxs(K,{flexDirection:"column",gap:"1",children:[r&&l.jsx(gt,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:r})}),l.jsx(Ct,{children:l.jsx(ie,{as:"div",variant:"normal",fontWeight:"medium",color:"text50",children:a})})]})]}),f&&l.jsx(_t,{"aria-label":"Close",asChild:!0,children:l.jsx(Ye,{icon:ae,size:"xs"})})]})})},It=()=>{const e=t.useContext(Ae);return o=>{const n={...o,id:Math.random().toString(36).slice(2,12),onOpenChange:r=>{r||e(a=>(a.delete(n),new Set([...a])))}};e(r=>new Set([...r,n]))}};try{oe.displayName="ToastProvider",oe.__docgenInfo={description:"",displayName:"ToastProvider",props:{}}}catch{}try{Y.displayName="Toast",Y.__docgenInfo={description:"",displayName:"Toast",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"normal"'},{value:'"error"'},{value:'"success"'}]}},isDismissible:{defaultValue:null,description:"",name:"isDismissible",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:'ComponentType<{ size?: "sm" | "md" | "lg" | "xl" | "xs"; } & Omit, HTMLDivElement>, "ref"> & { ...; } & ChildSprinkleProps<...> & ChildSprinkleProps<...> & ChildSprinkleProps<...>>'}}}}}catch{}const rr={title:"Components/Toast",component:Y},Q=e=>l.jsx(oe,{swipeDirection:"right",children:l.jsx(Dt,{...e})}),Dt=e=>{const o=It();return l.jsx(ye,{position:"relative",children:l.jsx(Ne,{label:"Raise a Toast",onClick:()=>{o({...e,title:e.title+" "+new Date().getMilliseconds()})}})})},H={render:Q,args:{title:"Title",description:"Description"}},q={render:Q,args:{icon:Le,title:"Transaction Sent",description:"Waiting for confirmation"}},B={render:Q,args:{title:"Success",description:"Description",variant:"success"}},U={render:Q,args:{title:"Error",description:'The transaction failed to send because the relayer encountered an error. "Not enough gas"',variant:"error"}};var le,ue,pe;H.parameters={...H.parameters,docs:{...(le=H.parameters)==null?void 0:le.docs,source:{originalSource:`{ render: StoryWrapper, args: { title: 'Title', @@ -26,4 +26,3 @@ import{j as l}from"./jsx-runtime-69eee039.js";import{B as Ne}from"./Button-cbaba variant: 'error' } }`,...(Ee=(xe=U.parameters)==null?void 0:xe.docs)==null?void 0:Ee.source}}};const or=["Default","WithIcon","Success","Error"];export{H as Default,U as Error,B as Success,q as WithIcon,or as __namedExportsOrder,rr as default}; -//# sourceMappingURL=Toast.stories-37acb69f.js.map diff --git a/assets/TokenImage-0dbf1c2d.js.map b/assets/TokenImage-0dbf1c2d.js.map deleted file mode 100644 index 17cad6efa..000000000 --- a/assets/TokenImage-0dbf1c2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TokenImage-0dbf1c2d.js","sources":["../../src/components/TokenImage/TokenImage.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { memo } from 'react'\n\nimport { Box, BoxProps } from '../Box'\nimport { Image } from '../Image'\nimport { Text } from '../Text'\n\nimport * as styles from './styles.css'\n\ntype TokenIconProps = BoxProps &\n styles.RootVariants & {\n className?: string\n disableAnimation?: boolean\n style?: any\n src?: string\n symbol?: string\n }\n\nexport const TokenImage = memo((props: TokenIconProps) => {\n const {\n borderRadius = 'circle',\n className,\n disableAnimation = false,\n style,\n src,\n symbol,\n size = 'md',\n ...boxProps\n } = props\n\n return (\n \n {src ? (\n \n ) : (\n \n {symbol?.replace(/\\s/, '').slice(0, 4)}\n \n )}\n \n )\n})\n"],"names":["TokenImage","memo","props","borderRadius","className","disableAnimation","style","src","symbol","size","boxProps","jsx","Box","clsx","styles.root","Image","styles.img","Text","styles.fallback"],"mappings":"2g5DAkBO,MAAAA,EAAAC,EAAAA,KAAAC,GAAA,CACL,KAAA,CAAM,aAAAC,EAAA,SACW,UAAAC,EACf,iBAAAC,EAAA,GACmB,MAAAC,EACnB,IAAAC,EACA,OAAAC,EACA,KAAAC,EAAA,KACO,GAAAC,CACJ,EAAAR,EAGL,OAAAS,EAAA,IACEC,EAAC,CAAA,UAAAC,EAAAT,EAAAU,EAAA,CAAA,aAAAX,EAAA,KAAAM,CAAA,CAAA,CAAA,EAC+D,MAAAH,EAC9D,WAAA,IACW,GAAAI,EACP,SAAAH,EAAAI,EAAA,IAGFI,EAAC,CAAA,UAAAC,EACmB,iBAAAX,EAClB,IAAAE,CACA,CAAA,EAAAI,EAAA,IAGFM,EAAC,CAAA,UAAAC,EACmB,QAAA,SACV,WAAA,SACG,MAAA,SACL,UAAA,GACG,SAAAV,GAAA,YAAAA,EAAA,QAAA,KAAA,IAAA,MAAA,EAAA,EAE4B,CAAA,CACvC,CAAA,CAIR,CAAA"} \ No newline at end of file diff --git a/assets/TokenImage-0dbf1c2d.js b/assets/TokenImage-934323d4.js similarity index 63% rename from assets/TokenImage-0dbf1c2d.js rename to assets/TokenImage-934323d4.js index 79613fd75..139d98595 100644 --- a/assets/TokenImage-0dbf1c2d.js +++ b/assets/TokenImage-934323d4.js @@ -1,2 +1 @@ -import{j as t}from"./jsx-runtime-69eee039.js";import{B as g,c as m}from"./Box-8ffdd394.js";import{r as p}from"./index-7c191284.js";import{I as f}from"./Image-577ba723.js";import{T as c}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";import{c as V}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";try{Image.displayName="Image",Image.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"numeric"'},{value:'"email"'},{value:'"tel"'},{value:'"url"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "date" | "location"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}var y="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sh fyvr128 fyvr15o fyvr11h0",C="bnrrebe",S=V({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});const i=p.memo(e=>{const{borderRadius:r="circle",className:l,disableAnimation:s=!1,style:u,src:a,symbol:n,size:o="md",...d}=e;return t.jsx(g,{className:m(l,S({borderRadius:r,size:o})),style:u,flexShrink:"0",...d,children:a?t.jsx(f,{className:C,disableAnimation:s,src:a}):t.jsx(c,{className:y,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:n==null?void 0:n.replace(/\s/,"").slice(0,4)})})});try{i.displayName="TokenImage",i.__docgenInfo={description:"",displayName:"TokenImage",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'(("sm" | "md" | "lg" | "none" | "circle" | "xs" | { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | ... 5 more ... | undefined; xl?: "sm" | ... 5 more ... | undefined; }) & ("sm" | ... 2 more ... | "circle")) | undefined'}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},symbol:{defaultValue:null,description:"",name:"symbol",required:!1,type:{name:"string"}}}}}catch{}export{i as T}; -//# sourceMappingURL=TokenImage-0dbf1c2d.js.map +import{j as t}from"./jsx-runtime-1caa8f64.js";import{B as g,c as m}from"./Box-e4a86556.js";import{r as p}from"./index-1cdf6ce0.js";import{I as f}from"./Image-22368520.js";import{T as c}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import{c as V}from"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";try{Image.displayName="Image",Image.__docgenInfo={description:"",displayName:"Image",props:{disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:'"inherit" | "black" | "transparent" | "white" | "positive" | "negative" | "info" | "warning" | "text100" | "text80" | "text50" | "textInverse100" | "backgroundPrimary" | "backgroundSecondary" | ... 28 more ...'}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"string"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"yes"'},{value:'"no"'}]}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:'((string | number) & ("none" | "auto" | "0" | "0.5" | "1" | "4" | "5" | "6" | "7" | "9" | "0.25" | "1.5" | "2" | "3" | "8" | "10" | "12" | "14" | "16" | "px" | "full" | "1/2" | "1/3" | ... 8 more ... | { ...; }))'}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"string"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string | number | readonly string[]"}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"boolean"}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"boolean"}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"string"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:'"inherit" | Booleanish | "plaintext-only"'}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"string"}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"string"}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"Booleanish"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"string"}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"Booleanish"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"string"}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"AriaRole"}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"string"}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"string"}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"string"}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"string"}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"string"}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"string"}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"string"}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"string"}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"string"}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"string"}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"string"}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"string"}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"string"}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"boolean"}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"string"}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"string"}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"string"}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"number"}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"string"}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"on"'},{value:'"off"'}]}},inputMode:{defaultValue:null,description:"",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"text"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:"",name:"is",required:!1,type:{name:"string"}},"aria-activedescendant":{defaultValue:null,description:"",name:"aria-activedescendant",required:!1,type:{name:"string"}},"aria-atomic":{defaultValue:null,description:"",name:"aria-atomic",required:!1,type:{name:"Booleanish"}},"aria-autocomplete":{defaultValue:null,description:"",name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"inline"'},{value:'"list"'}]}},"aria-braillelabel":{defaultValue:null,description:"",name:"aria-braillelabel",required:!1,type:{name:"string"}},"aria-brailleroledescription":{defaultValue:null,description:"",name:"aria-brailleroledescription",required:!1,type:{name:"string"}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"Booleanish"}},"aria-checked":{defaultValue:null,description:"",name:"aria-checked",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-colcount":{defaultValue:null,description:"",name:"aria-colcount",required:!1,type:{name:"number"}},"aria-colindex":{defaultValue:null,description:"",name:"aria-colindex",required:!1,type:{name:"number"}},"aria-colindextext":{defaultValue:null,description:"",name:"aria-colindextext",required:!1,type:{name:"string"}},"aria-colspan":{defaultValue:null,description:"",name:"aria-colspan",required:!1,type:{name:"number"}},"aria-controls":{defaultValue:null,description:"",name:"aria-controls",required:!1,type:{name:"string"}},"aria-current":{defaultValue:null,description:"",name:"aria-current",required:!1,type:{name:'boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date"'}},"aria-describedby":{defaultValue:null,description:"",name:"aria-describedby",required:!1,type:{name:"string"}},"aria-description":{defaultValue:null,description:"",name:"aria-description",required:!1,type:{name:"string"}},"aria-details":{defaultValue:null,description:"",name:"aria-details",required:!1,type:{name:"string"}},"aria-disabled":{defaultValue:null,description:"",name:"aria-disabled",required:!1,type:{name:"Booleanish"}},"aria-dropeffect":{defaultValue:null,description:"",name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"copy"'},{value:'"move"'},{value:'"link"'},{value:'"execute"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:"",name:"aria-errormessage",required:!1,type:{name:"string"}},"aria-expanded":{defaultValue:null,description:"",name:"aria-expanded",required:!1,type:{name:"Booleanish"}},"aria-flowto":{defaultValue:null,description:"",name:"aria-flowto",required:!1,type:{name:"string"}},"aria-grabbed":{defaultValue:null,description:"",name:"aria-grabbed",required:!1,type:{name:"Booleanish"}},"aria-haspopup":{defaultValue:null,description:"",name:"aria-haspopup",required:!1,type:{name:'boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"'}},"aria-hidden":{defaultValue:null,description:"",name:"aria-hidden",required:!1,type:{name:"Booleanish"}},"aria-invalid":{defaultValue:null,description:"",name:"aria-invalid",required:!1,type:{name:'boolean | "false" | "true" | "grammar" | "spelling"'}},"aria-keyshortcuts":{defaultValue:null,description:"",name:"aria-keyshortcuts",required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"",name:"aria-label",required:!1,type:{name:"string"}},"aria-labelledby":{defaultValue:null,description:"",name:"aria-labelledby",required:!1,type:{name:"string"}},"aria-level":{defaultValue:null,description:"",name:"aria-level",required:!1,type:{name:"number"}},"aria-live":{defaultValue:null,description:"",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"",name:"aria-modal",required:!1,type:{name:"Booleanish"}},"aria-multiline":{defaultValue:null,description:"",name:"aria-multiline",required:!1,type:{name:"Booleanish"}},"aria-multiselectable":{defaultValue:null,description:"",name:"aria-multiselectable",required:!1,type:{name:"Booleanish"}},"aria-orientation":{defaultValue:null,description:"",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:"",name:"aria-owns",required:!1,type:{name:"string"}},"aria-placeholder":{defaultValue:null,description:"",name:"aria-placeholder",required:!1,type:{name:"string"}},"aria-posinset":{defaultValue:null,description:"",name:"aria-posinset",required:!1,type:{name:"number"}},"aria-pressed":{defaultValue:null,description:"",name:"aria-pressed",required:!1,type:{name:'boolean | "mixed" | "false" | "true"'}},"aria-readonly":{defaultValue:null,description:"",name:"aria-readonly",required:!1,type:{name:"Booleanish"}},"aria-relevant":{defaultValue:null,description:"",name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"all"'},{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"",name:"aria-required",required:!1,type:{name:"Booleanish"}},"aria-roledescription":{defaultValue:null,description:"",name:"aria-roledescription",required:!1,type:{name:"string"}},"aria-rowcount":{defaultValue:null,description:"",name:"aria-rowcount",required:!1,type:{name:"number"}},"aria-rowindex":{defaultValue:null,description:"",name:"aria-rowindex",required:!1,type:{name:"number"}},"aria-rowindextext":{defaultValue:null,description:"",name:"aria-rowindextext",required:!1,type:{name:"string"}},"aria-rowspan":{defaultValue:null,description:"",name:"aria-rowspan",required:!1,type:{name:"number"}},"aria-selected":{defaultValue:null,description:"",name:"aria-selected",required:!1,type:{name:"Booleanish"}},"aria-setsize":{defaultValue:null,description:"",name:"aria-setsize",required:!1,type:{name:"number"}},"aria-sort":{defaultValue:null,description:"",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"",name:"aria-valuemax",required:!1,type:{name:"number"}},"aria-valuemin":{defaultValue:null,description:"",name:"aria-valuemin",required:!1,type:{name:"number"}},"aria-valuenow":{defaultValue:null,description:"",name:"aria-valuenow",required:!1,type:{name:"number"}},"aria-valuetext":{defaultValue:null,description:"",name:"aria-valuetext",required:!1,type:{name:"string"}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"{ __html: string | TrustedHTML; }"}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"ClipboardEventHandler"}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"ClipboardEventHandler"}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"ClipboardEventHandler"}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"ClipboardEventHandler"}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"ClipboardEventHandler"}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"CompositionEventHandler"}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"CompositionEventHandler"}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"CompositionEventHandler"}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"CompositionEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"FocusEventHandler"}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"FocusEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"FocusEventHandler"}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"FocusEventHandler"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"FormEventHandler"}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"FormEventHandler"}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"FormEventHandler"}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"FormEventHandler"}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"FormEventHandler"}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"FormEventHandler"}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"FormEventHandler"}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"FormEventHandler"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"FormEventHandler"}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"FormEventHandler"}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"FormEventHandler"}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"FormEventHandler"}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"ReactEventHandler"}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"ReactEventHandler"}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"ReactEventHandler"}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"ReactEventHandler"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"KeyboardEventHandler"}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPress:{defaultValue:null,description:"",name:"onKeyPress",required:!1,type:{name:"KeyboardEventHandler"}},onKeyPressCapture:{defaultValue:null,description:"",name:"onKeyPressCapture",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"KeyboardEventHandler"}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"KeyboardEventHandler"}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"ReactEventHandler"}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"ReactEventHandler"}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"ReactEventHandler"}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"ReactEventHandler"}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"ReactEventHandler"}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"ReactEventHandler"}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"ReactEventHandler"}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"ReactEventHandler"}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"ReactEventHandler"}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"ReactEventHandler"}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"ReactEventHandler"}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"ReactEventHandler"}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"ReactEventHandler"}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"ReactEventHandler"}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"ReactEventHandler"}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"ReactEventHandler"}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"ReactEventHandler"}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"ReactEventHandler"}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"ReactEventHandler"}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"ReactEventHandler"}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"ReactEventHandler"}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"ReactEventHandler"}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"ReactEventHandler"}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"ReactEventHandler"}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"ReactEventHandler"}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"ReactEventHandler"}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"ReactEventHandler"}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"ReactEventHandler"}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"ReactEventHandler"}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"ReactEventHandler"}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"ReactEventHandler"}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"ReactEventHandler"}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"ReactEventHandler"}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"ReactEventHandler"}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"ReactEventHandler"}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"ReactEventHandler"}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"ReactEventHandler"}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"ReactEventHandler"}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"MouseEventHandler"}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"MouseEventHandler"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler"}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"MouseEventHandler"}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"MouseEventHandler"}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"MouseEventHandler"}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"MouseEventHandler"}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"MouseEventHandler"}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"DragEventHandler"}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"DragEventHandler"}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"DragEventHandler"}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"DragEventHandler"}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"DragEventHandler"}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"DragEventHandler"}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"DragEventHandler"}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"DragEventHandler"}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"DragEventHandler"}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"DragEventHandler"}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"DragEventHandler"}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"DragEventHandler"}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"DragEventHandler"}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"MouseEventHandler"}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler"}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"MouseEventHandler"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"MouseEventHandler"}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"MouseEventHandler"}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"MouseEventHandler"}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"MouseEventHandler"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"MouseEventHandler"}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"MouseEventHandler"}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"ReactEventHandler"}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"ReactEventHandler"}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"TouchEventHandler"}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"TouchEventHandler"}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"TouchEventHandler"}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"TouchEventHandler"}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler"}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"TouchEventHandler"}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"PointerEventHandler"}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"PointerEventHandler"}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"PointerEventHandler"}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"PointerEventHandler"}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"PointerEventHandler"}},onPointerEnterCapture:{defaultValue:null,description:"",name:"onPointerEnterCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"PointerEventHandler"}},onPointerLeaveCapture:{defaultValue:null,description:"",name:"onPointerLeaveCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"PointerEventHandler"}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"PointerEventHandler"}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"PointerEventHandler"}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"PointerEventHandler"}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"PointerEventHandler"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"UIEventHandler"}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"UIEventHandler"}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"WheelEventHandler"}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"WheelEventHandler"}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"AnimationEventHandler"}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"AnimationEventHandler"}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"AnimationEventHandler"}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"TransitionEventHandler"}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"TransitionEventHandler"}},alt:{defaultValue:null,description:"",name:"alt",required:!1,type:{name:"string"}},crossOrigin:{defaultValue:null,description:"",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},decoding:{defaultValue:null,description:"",name:"decoding",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"async"'},{value:'"sync"'}]}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"enum",value:[{value:'"eager"'},{value:'"lazy"'}]}},referrerPolicy:{defaultValue:null,description:"",name:"referrerPolicy",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"origin"'},{value:'"no-referrer"'},{value:'"no-referrer-when-downgrade"'},{value:'"origin-when-cross-origin"'},{value:'"same-origin"'},{value:'"strict-origin"'},{value:'"strict-origin-when-cross-origin"'},{value:'"unsafe-url"'}]}},sizes:{defaultValue:null,description:"",name:"sizes",required:!1,type:{name:"string"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},srcSet:{defaultValue:null,description:"",name:"srcSet",required:!1,type:{name:"string"}},useMap:{defaultValue:null,description:"",name:"useMap",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:'ForwardRefComponent>'}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}}}}}catch{}var y="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sh fyvr128 fyvr15o fyvr11h0",C="bnrrebe",S=V({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});const i=p.memo(e=>{const{borderRadius:r="circle",className:l,disableAnimation:s=!1,style:u,src:a,symbol:n,size:o="md",...d}=e;return t.jsx(g,{className:m(l,S({borderRadius:r,size:o})),style:u,flexShrink:"0",...d,children:a?t.jsx(f,{className:C,disableAnimation:s,src:a}):t.jsx(c,{className:y,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:n==null?void 0:n.replace(/\s/,"").slice(0,4)})})});try{i.displayName="TokenImage",i.__docgenInfo={description:"",displayName:"TokenImage",props:{as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},sx:{defaultValue:null,description:"",name:"sx",required:!1,type:{name:"(ChildSprinkleProps<{ width: { values: Values<{ none: string; px: string; auto: string; full: string; '1/2': string; '1/3': string; '2/3': string; '1/4': string; '3/4': string; fit: string; max: string; min: string; vw: string; vh: string; ... 16 more ...; 16: CSSVarFunction; }, { ...; }>; }; ... 43 more ...; visibi..."}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject | null"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"ConditionalStyle>"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"ConditionalStyle>"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!1,type:{name:"ConditionalStyle>"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!1,type:{name:"ConditionalStyle>"}},minWidth:{defaultValue:null,description:"",name:"minWidth",required:!1,type:{name:"ConditionalStyle>"}},minHeight:{defaultValue:null,description:"",name:"minHeight",required:!1,type:{name:"ConditionalStyle>"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:'ConditionalStyle>'}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:'ConditionalStyle>'}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:'ConditionalStyle>'}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:'ConditionalStyle>'}},paddingTop:{defaultValue:null,description:"",name:"paddingTop",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingBottom:{defaultValue:null,description:"",name:"paddingBottom",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingLeft:{defaultValue:null,description:"",name:"paddingLeft",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingRight:{defaultValue:null,description:"",name:"paddingRight",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},marginTop:{defaultValue:null,description:"",name:"marginTop",required:!1,type:{name:'ConditionalStyle>'}},marginBottom:{defaultValue:null,description:"",name:"marginBottom",required:!1,type:{name:'ConditionalStyle>'}},marginLeft:{defaultValue:null,description:"",name:"marginLeft",required:!1,type:{name:'ConditionalStyle>'}},marginRight:{defaultValue:null,description:"",name:"marginRight",required:!1,type:{name:'ConditionalStyle>'}},gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomWidth:{defaultValue:null,description:"",name:"borderBottomWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderLeftWidth:{defaultValue:null,description:"",name:"borderLeftWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightWidth:{defaultValue:null,description:"",name:"borderRightWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopWidth:{defaultValue:null,description:"",name:"borderTopWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomLeftRadius:{defaultValue:null,description:"",name:"borderBottomLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRightRadius:{defaultValue:null,description:"",name:"borderBottomRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopLeftRadius:{defaultValue:null,description:"",name:"borderTopLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRightRadius:{defaultValue:null,description:"",name:"borderTopRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},fontSize:{defaultValue:null,description:"",name:"fontSize",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},fontWeight:{defaultValue:null,description:"",name:"fontWeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { ...; }; }>>"}},letterSpacing:{defaultValue:null,description:"",name:"letterSpacing",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},lineHeight:{defaultValue:null,description:"",name:"lineHeight",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},textAlign:{defaultValue:null,description:"",name:"textAlign",required:!1,type:{name:'ConditionalStyle>'}},display:{defaultValue:null,description:"",name:"display",required:!1,type:{name:'ConditionalStyle>'}},position:{defaultValue:null,description:"",name:"position",required:!1,type:{name:'ConditionalStyle>'}},flexDirection:{defaultValue:null,description:"",name:"flexDirection",required:!1,type:{name:'ConditionalStyle>'}},flexShrink:{defaultValue:null,description:"",name:"flexShrink",required:!1,type:{name:'ConditionalStyle>'}},flexGrow:{defaultValue:null,description:"",name:"flexGrow",required:!1,type:{name:'ConditionalStyle>'}},flexWrap:{defaultValue:null,description:"",name:"flexWrap",required:!1,type:{name:'ConditionalStyle>'}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:'ConditionalStyle>'}},justifySelf:{defaultValue:null,description:"",name:"justifySelf",required:!1,type:{name:'ConditionalStyle>'}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:'ConditionalStyle>'}},alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:'ConditionalStyle>'}},overflowX:{defaultValue:null,description:"",name:"overflowX",required:!1,type:{name:'ConditionalStyle>'}},overflowY:{defaultValue:null,description:"",name:"overflowY",required:!1,type:{name:'ConditionalStyle>'}},visibility:{defaultValue:null,description:"",name:"visibility",required:!1,type:{name:'ConditionalStyle>'}},borderWidth:{defaultValue:null,description:"",name:"borderWidth",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRadius:{defaultValue:null,description:"",name:"borderRadius",required:!1,type:{name:'(("sm" | "md" | "lg" | "none" | "circle" | "xs" | { sm?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; md?: "sm" | "md" | "lg" | "none" | "circle" | "xs"; lg?: "sm" | ... 5 more ... | undefined; xl?: "sm" | ... 5 more ... | undefined; }) & ("sm" | ... 2 more ... | "circle")) | undefined'}},borderLeftRadius:{defaultValue:null,description:"",name:"borderLeftRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderRightRadius:{defaultValue:null,description:"",name:"borderRightRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderTopRadius:{defaultValue:null,description:"",name:"borderTopRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},borderBottomRadius:{defaultValue:null,description:"",name:"borderBottomRadius",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { sm: string; md: string; lg: string; xl: string; }; }>>"}},margin:{defaultValue:null,description:"",name:"margin",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},marginX:{defaultValue:null,description:"",name:"marginX",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},marginY:{defaultValue:null,description:"",name:"marginY",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},overflow:{defaultValue:null,description:"",name:"overflow",required:!1,type:{name:'ConditionalStyle>'}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingX:{defaultValue:null,description:"",name:"paddingX",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},paddingY:{defaultValue:null,description:"",name:"paddingY",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},placeItems:{defaultValue:null,description:"",name:"placeItems",required:!1,type:{name:'ConditionalStyle | Values<...>>'}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:'ConditionalStyle | Values<...> | Values<...> | Values<...>>'}},backdropFilter:{defaultValue:null,description:"",name:"backdropFilter",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"blur"'}]}},fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"body"'},{value:'"mono"'}]}},textOverflow:{defaultValue:null,description:"",name:"textOverflow",required:!1,type:{name:"enum",value:[{value:'"clip"'},{value:'"ellipsis"'}]}},textTransform:{defaultValue:null,description:"",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"lowercase"'},{value:'"uppercase"'}]}},userSelect:{defaultValue:null,description:"",name:"userSelect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"all"'},{value:'"auto"'},{value:'"text"'}]}},whiteSpace:{defaultValue:null,description:"",name:"whiteSpace",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"nowrap"'}]}},wordBreak:{defaultValue:null,description:"",name:"wordBreak",required:!1,type:{name:"enum",value:[{value:'"break-word"'}]}},wordWrap:{defaultValue:null,description:"",name:"wordWrap",required:!1,type:{name:"enum",value:[{value:'"inherit"'},{value:'"initial"'},{value:'"normal"'},{value:'"break-word"'}]}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"0"'},{value:'"1"'},{value:'"50"'},{value:'"10"'},{value:'"20"'},{value:'"30"'},{value:'"40"'},{value:'"-1"'}]}},aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"1/1"'},{value:'"16/9"'},{value:'"4/3"'},{value:'"3/1"'}]}},background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomColor:{defaultValue:null,description:"",name:"borderBottomColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderBottomStyle:{defaultValue:null,description:"",name:"borderBottomStyle",required:!1,type:{name:'ConditionalStyle>'}},borderLeftColor:{defaultValue:null,description:"",name:"borderLeftColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderLeftStyle:{defaultValue:null,description:"",name:"borderLeftStyle",required:!1,type:{name:'ConditionalStyle>'}},borderRightColor:{defaultValue:null,description:"",name:"borderRightColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderRightStyle:{defaultValue:null,description:"",name:"borderRightStyle",required:!1,type:{name:'ConditionalStyle>'}},borderTopColor:{defaultValue:null,description:"",name:"borderTopColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderTopStyle:{defaultValue:null,description:"",name:"borderTopStyle",required:!1,type:{name:'ConditionalStyle>'}},cursor:{defaultValue:null,description:"",name:"cursor",required:!1,type:{name:'ConditionalStyle>'}},opacity:{defaultValue:null,description:"",name:"opacity",required:!1,type:{name:"ConditionalStyle, { defaultClass: string; conditions: { base: string; active: string; disabled: string; focus: string; hover: string; checked: string; }; }>>"}},pointerEvents:{defaultValue:null,description:"",name:"pointerEvents",required:!1,type:{name:'ConditionalStyle>'}},outline:{defaultValue:null,description:"",name:"outline",required:!1,type:{name:'ConditionalStyle>'}},boxShadow:{defaultValue:null,description:"",name:"boxShadow",required:!1,type:{name:'ConditionalStyle>'}},borderColor:{defaultValue:null,description:"",name:"borderColor",required:!1,type:{name:"ConditionalStyle, { ...; }>>"}},borderStyle:{defaultValue:null,description:"",name:"borderStyle",required:!1,type:{name:'ConditionalStyle>'}},focusRing:{defaultValue:null,description:"",name:"focusRing",required:!1,type:{name:'ConditionalStyle>'}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xs"'}]}},disableAnimation:{defaultValue:null,description:"",name:"disableAnimation",required:!1,type:{name:"boolean"}},src:{defaultValue:null,description:"",name:"src",required:!1,type:{name:"string"}},symbol:{defaultValue:null,description:"",name:"symbol",required:!1,type:{name:"string"}}}}}catch{}export{i as T}; diff --git a/assets/TokenImage.stories-f5c1f0e0.js.map b/assets/TokenImage.stories-f5c1f0e0.js.map deleted file mode 100644 index f3fbca296..000000000 --- a/assets/TokenImage.stories-f5c1f0e0.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TokenImage.stories-f5c1f0e0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/TokenImage.stories-f5c1f0e0.js b/assets/TokenImage.stories-ff1fb74f.js similarity index 77% rename from assets/TokenImage.stories-f5c1f0e0.js rename to assets/TokenImage.stories-ff1fb74f.js index f514505a2..00ba65b3b 100644 --- a/assets/TokenImage.stories-f5c1f0e0.js +++ b/assets/TokenImage.stories-ff1fb74f.js @@ -1,4 +1,4 @@ -import{T as c}from"./TokenImage-0dbf1c2d.js";import"./jsx-runtime-69eee039.js";import"./index-7c191284.js";import"./Box-8ffdd394.js";/* empty css */import"./atoms-c7901a03.js";import"./Image-577ba723.js";import"./motion-cc45ae8c.js";import"./Text-cdf53fa8.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const T={title:"Components/TokenImage",component:c},o={args:{borderRadius:"circle",size:"lg",src:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912"}},e={args:{size:"lg",symbol:"SCAM"}};var r,s,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{T as c}from"./TokenImage-934323d4.js";import"./jsx-runtime-1caa8f64.js";import"./index-1cdf6ce0.js";import"./Box-e4a86556.js";/* empty css */import"./atoms-c7901a03.js";import"./Image-22368520.js";import"./motion-bbbff89a.js";import"./Text-b96ac7e7.js";import"./typography-f274f330.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";const T={title:"Components/TokenImage",component:c},o={args:{borderRadius:"circle",size:"lg",src:"https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png?1624446912"}},e={args:{size:"lg",symbol:"SCAM"}};var r,s,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { borderRadius: 'circle', size: 'lg', @@ -10,4 +10,3 @@ import{T as c}from"./TokenImage-0dbf1c2d.js";import"./jsx-runtime-69eee039.js";i symbol: 'SCAM' } }`,...(m=(i=e.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};const W=["WithImage","WithoutImage"];export{o as WithImage,e as WithoutImage,W as __namedExportsOrder,T as default}; -//# sourceMappingURL=TokenImage.stories-f5c1f0e0.js.map diff --git a/assets/Tooltip.stories-de206048.js b/assets/Tooltip.stories-85d3812e.js similarity index 92% rename from assets/Tooltip.stories-de206048.js rename to assets/Tooltip.stories-85d3812e.js index 33b660f62..ecf339104 100644 --- a/assets/Tooltip.stories-de206048.js +++ b/assets/Tooltip.stories-85d3812e.js @@ -1,8 +1,7 @@ -import{j as h}from"./jsx-runtime-69eee039.js";import{B as F}from"./Button-cbaba6d6.js";import{b as K,$ as V,_ as g,a as U,f as Y}from"./index-416e5a7a.js";import{r}from"./index-7c191284.js";import{a as W,c as T}from"./index-006d63ff.js";import{$ as X}from"./index-f0ce3c30.js";import{$ as z}from"./index-8f163998.js";import{$ as G,a as J,b as Q,c as Z,d as ee}from"./index-50d6e817.js";import{$ as te}from"./index-cd5c74af.js";import{$ as oe}from"./index-8e81e3f6.js";import{T as re}from"./Text-cdf53fa8.js";/* empty css */import"./atoms-c7901a03.js";import"./Box-8ffdd394.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-ecbee218.js";import"./index-3842af66.js";import"./typography-f274f330.js";const[P,ze]=K("Tooltip",[G]),D=G(),ne="TooltipProvider",ae=700,k="tooltip.open",[ce,A]=P(ne),se=t=>{const{__scopeTooltip:o,delayDuration:e=ae,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:l}=t,[s,u]=r.useState(!0),c=r.useRef(!1),f=r.useRef(0);return r.useEffect(()=>{const i=f.current;return()=>window.clearTimeout(i)},[]),r.createElement(ce,{scope:o,isOpenDelayed:s,delayDuration:e,onOpen:r.useCallback(()=>{window.clearTimeout(f.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(i=>{c.current=i},[]),disableHoverableContent:a},l)},H="Tooltip",[le,R]=P(H),ie=t=>{const{__scopeTooltip:o,children:e,open:n,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:s,delayDuration:u}=t,c=A(H,t.__scopeTooltip),f=D(o),[i,d]=r.useState(null),m=z(),p=r.useRef(0),$=s??c.disableHoverableContent,b=u??c.delayDuration,v=r.useRef(!1),[y=!1,x]=W({prop:n,defaultProp:a,onChange:M=>{M?(c.onOpen(),document.dispatchEvent(new CustomEvent(k))):c.onClose(),l==null||l(M)}}),C=r.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=r.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,x(!0)},[x]),w=r.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),I=r.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0)},b)},[b,x]);return r.useEffect(()=>()=>window.clearTimeout(p.current),[]),r.createElement(J,f,r.createElement(le,{scope:o,contentId:m,open:y,stateAttribute:C,trigger:i,onTriggerChange:d,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayed?I():E()},[c.isOpenDelayed,I,E]),onTriggerLeave:r.useCallback(()=>{$?w():window.clearTimeout(p.current)},[w,$]),onOpen:E,onClose:w,disableHoverableContent:$},e))},j="TooltipTrigger",ue=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=R(j,e),l=A(j,e),s=D(e),u=r.useRef(null),c=V(o,u,a.onTriggerChange),f=r.useRef(!1),i=r.useRef(!1),d=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),r.createElement(Q,g({asChild:!0},s),r.createElement(U.button,g({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:c,onPointerMove:T(t.onPointerMove,m=>{m.pointerType!=="touch"&&!i.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),i.current=!0)}),onPointerLeave:T(t.onPointerLeave,()=>{a.onTriggerLeave(),i.current=!1}),onPointerDown:T(t.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:T(t.onFocus,()=>{f.current||a.onOpen()}),onBlur:T(t.onBlur,a.onClose),onClick:T(t.onClick,a.onClose)})))}),fe="TooltipPortal",[Je,de]=P(fe,{forceMount:void 0}),_="TooltipContent",pe=r.forwardRef((t,o)=>{const e=de(_,t.__scopeTooltip),{forceMount:n=e.forceMount,side:a="top",...l}=t,s=R(_,t.__scopeTooltip);return r.createElement(te,{present:n||s.open},s.disableHoverableContent?r.createElement(B,g({side:a},l,{ref:o})):r.createElement($e,g({side:a},l,{ref:o})))}),$e=r.forwardRef((t,o)=>{const e=R(_,t.__scopeTooltip),n=A(_,t.__scopeTooltip),a=r.useRef(null),l=V(o,a),[s,u]=r.useState(null),{trigger:c,onClose:f}=e,i=a.current,{onPointerInTransitChange:d}=n,m=r.useCallback(()=>{u(null),d(!1)},[d]),p=r.useCallback(($,b)=>{const v=$.currentTarget,y={x:$.clientX,y:$.clientY},x=he(y,v.getBoundingClientRect()),C=ye(y,x),E=ge(b.getBoundingClientRect()),w=Ce([...C,...E]);u(w),d(!0)},[d]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&i){const $=v=>p(v,i),b=v=>p(v,c);return c.addEventListener("pointerleave",$),i.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",$),i.removeEventListener("pointerleave",b)}}},[c,i,p,m]),r.useEffect(()=>{if(s){const $=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},x=(c==null?void 0:c.contains(v))||(i==null?void 0:i.contains(v)),C=!Te(y,s);x?m():C&&(m(),f())};return document.addEventListener("pointermove",$),()=>document.removeEventListener("pointermove",$)}},[c,i,s,f,m]),r.createElement(B,g({},t,{ref:l}))}),[me,ve]=P(H,{isInside:!1}),B=r.forwardRef((t,o)=>{const{__scopeTooltip:e,children:n,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:s,...u}=t,c=R(_,e),f=D(e),{onClose:i}=c;return r.useEffect(()=>(document.addEventListener(k,i),()=>document.removeEventListener(k,i)),[i]),r.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&i()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,i]),r.createElement(X,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:i},r.createElement(Z,g({"data-state":c.stateAttribute},f,u,{ref:o,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),r.createElement(Y,null,n),r.createElement(me,{scope:e,isInside:!0},r.createElement(oe,{id:c.contentId,role:"tooltip"},a||n))))}),be="TooltipArrow",xe=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=D(e);return ve(be,e).isInside?null:r.createElement(ee,g({},a,n,{ref:o}))});function he(t,o){const e=Math.abs(o.top-t.y),n=Math.abs(o.bottom-t.y),a=Math.abs(o.right-t.x),l=Math.abs(o.left-t.x);switch(Math.min(e,n,a,l)){case l:return"left";case a:return"right";case e:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ye(t,o,e=5){const n=[];switch(o){case"top":n.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":n.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":n.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":n.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return n}function ge(t){const{top:o,right:e,bottom:n,left:a}=t;return[{x:a,y:o},{x:e,y:o},{x:e,y:n},{x:a,y:n}]}function Te(t,o){const{x:e,y:n}=t;let a=!1;for(let l=0,s=o.length-1;ln!=i>n&&e<(f-u)*(n-c)/(i-c)+u&&(a=!a)}return a}function Ce(t){const o=t.slice();return o.sort((e,n)=>e.xn.x?1:e.yn.y?1:0),Ee(o)}function Ee(t){if(t.length<=1)return t.slice();const o=[];for(let n=0;n=2;){const l=o[o.length-1],s=o[o.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))o.pop();else break}o.push(a)}o.pop();const e=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;e.length>=2;){const l=e[e.length-1],s=e[e.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))e.pop();else break}e.push(a)}return e.pop(),o.length===1&&e.length===1&&o[0].x===e[0].x&&o[0].y===e[0].y?o:o.concat(e)}const we=se,_e=ie,Oe=ue,Pe=pe,De=xe;var Re="q888p21 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1ww fyvr1ys fyvr11ms fyvr11tn fyvr1uw fyvr1sw";const L=t=>{const{align:o="center",children:e,delayDuration:n=0,disabled:a=!1,hOffset:l=0,message:s,side:u="top",vOffset:c=0}=t;return a?h.jsx(h.Fragment,{children:e}):h.jsx(we,{children:h.jsxs(_e,{delayDuration:n,children:[h.jsx(Oe,{asChild:!0,children:e}),h.jsxs(Pe,{className:Re,side:u,align:o,sideOffset:c,alignOffset:l,children:[h.jsx(re,{variant:"small",fontWeight:"medium",color:"text80",children:s}),h.jsx(De,{offset:12,width:10,height:5})]})]})})};try{L.displayName="Tooltip",L.__docgenInfo={description:"",displayName:"Tooltip",props:{align:{defaultValue:null,description:"",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"end"'},{value:'"start"'}]}},delayDuration:{defaultValue:null,description:"",name:"delayDuration",required:!1,type:{name:"number"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},hOffset:{defaultValue:null,description:"",name:"hOffset",required:!1,type:{name:"number"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string | Element"}},side:{defaultValue:null,description:"",name:"side",required:!1,type:{name:"enum",value:[{value:'"bottom"'},{value:'"left"'},{value:'"right"'},{value:'"top"'}]}},vOffset:{defaultValue:null,description:"",name:"vOffset",required:!1,type:{name:"number"}}}}}catch{}const Qe={title:"Components/Tooltip",component:L},O={args:{message:"Hello, world!",children:h.jsx(F,{label:"Hover me"}),disabled:!1}};var N,S,q;O.parameters={...O.parameters,docs:{...(N=O.parameters)==null?void 0:N.docs,source:{originalSource:`{ +import{j as h}from"./jsx-runtime-1caa8f64.js";import{B as F}from"./Button-e8455a66.js";import{a as K,$ as V,_ as g,c as U,f as Y}from"./index-bff3e5ca.js";import{r}from"./index-1cdf6ce0.js";import{a as W,c as T}from"./index-ed6c0076.js";import{$ as X}from"./index-c484f70b.js";import{$ as z}from"./index-dad7d30c.js";import{$ as G,a as J,b as Q,c as Z,d as ee}from"./index-6966b6f4.js";import{$ as te}from"./index-5a7be88c.js";import{a as oe}from"./index-7e536d32.js";import{T as re}from"./Text-b96ac7e7.js";/* empty css */import"./atoms-c7901a03.js";import"./Box-e4a86556.js";/* empty css */import"./createRuntimeFn-f8e161c6.esm-526ef7c2.js";import"./index-a01a9712.js";import"./index-0d95b182.js";import"./typography-f274f330.js";const[P,ze]=K("Tooltip",[G]),D=G(),ne="TooltipProvider",ae=700,k="tooltip.open",[ce,A]=P(ne),se=t=>{const{__scopeTooltip:o,delayDuration:e=ae,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:l}=t,[s,u]=r.useState(!0),c=r.useRef(!1),f=r.useRef(0);return r.useEffect(()=>{const i=f.current;return()=>window.clearTimeout(i)},[]),r.createElement(ce,{scope:o,isOpenDelayed:s,delayDuration:e,onOpen:r.useCallback(()=>{window.clearTimeout(f.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(i=>{c.current=i},[]),disableHoverableContent:a},l)},H="Tooltip",[le,R]=P(H),ie=t=>{const{__scopeTooltip:o,children:e,open:n,defaultOpen:a=!1,onOpenChange:l,disableHoverableContent:s,delayDuration:u}=t,c=A(H,t.__scopeTooltip),f=D(o),[i,d]=r.useState(null),m=z(),p=r.useRef(0),$=s??c.disableHoverableContent,b=u??c.delayDuration,v=r.useRef(!1),[y=!1,x]=W({prop:n,defaultProp:a,onChange:M=>{M?(c.onOpen(),document.dispatchEvent(new CustomEvent(k))):c.onClose(),l==null||l(M)}}),C=r.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=r.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,x(!0)},[x]),w=r.useCallback(()=>{window.clearTimeout(p.current),x(!1)},[x]),I=r.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0)},b)},[b,x]);return r.useEffect(()=>()=>window.clearTimeout(p.current),[]),r.createElement(J,f,r.createElement(le,{scope:o,contentId:m,open:y,stateAttribute:C,trigger:i,onTriggerChange:d,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayed?I():E()},[c.isOpenDelayed,I,E]),onTriggerLeave:r.useCallback(()=>{$?w():window.clearTimeout(p.current)},[w,$]),onOpen:E,onClose:w,disableHoverableContent:$},e))},j="TooltipTrigger",ue=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=R(j,e),l=A(j,e),s=D(e),u=r.useRef(null),c=V(o,u,a.onTriggerChange),f=r.useRef(!1),i=r.useRef(!1),d=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),r.createElement(Q,g({asChild:!0},s),r.createElement(U.button,g({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:c,onPointerMove:T(t.onPointerMove,m=>{m.pointerType!=="touch"&&!i.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),i.current=!0)}),onPointerLeave:T(t.onPointerLeave,()=>{a.onTriggerLeave(),i.current=!1}),onPointerDown:T(t.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:T(t.onFocus,()=>{f.current||a.onOpen()}),onBlur:T(t.onBlur,a.onClose),onClick:T(t.onClick,a.onClose)})))}),fe="TooltipPortal",[Je,de]=P(fe,{forceMount:void 0}),_="TooltipContent",pe=r.forwardRef((t,o)=>{const e=de(_,t.__scopeTooltip),{forceMount:n=e.forceMount,side:a="top",...l}=t,s=R(_,t.__scopeTooltip);return r.createElement(te,{present:n||s.open},s.disableHoverableContent?r.createElement(B,g({side:a},l,{ref:o})):r.createElement($e,g({side:a},l,{ref:o})))}),$e=r.forwardRef((t,o)=>{const e=R(_,t.__scopeTooltip),n=A(_,t.__scopeTooltip),a=r.useRef(null),l=V(o,a),[s,u]=r.useState(null),{trigger:c,onClose:f}=e,i=a.current,{onPointerInTransitChange:d}=n,m=r.useCallback(()=>{u(null),d(!1)},[d]),p=r.useCallback(($,b)=>{const v=$.currentTarget,y={x:$.clientX,y:$.clientY},x=he(y,v.getBoundingClientRect()),C=ye(y,x),E=ge(b.getBoundingClientRect()),w=Ce([...C,...E]);u(w),d(!0)},[d]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&i){const $=v=>p(v,i),b=v=>p(v,c);return c.addEventListener("pointerleave",$),i.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",$),i.removeEventListener("pointerleave",b)}}},[c,i,p,m]),r.useEffect(()=>{if(s){const $=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},x=(c==null?void 0:c.contains(v))||(i==null?void 0:i.contains(v)),C=!Te(y,s);x?m():C&&(m(),f())};return document.addEventListener("pointermove",$),()=>document.removeEventListener("pointermove",$)}},[c,i,s,f,m]),r.createElement(B,g({},t,{ref:l}))}),[me,ve]=P(H,{isInside:!1}),B=r.forwardRef((t,o)=>{const{__scopeTooltip:e,children:n,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:s,...u}=t,c=R(_,e),f=D(e),{onClose:i}=c;return r.useEffect(()=>(document.addEventListener(k,i),()=>document.removeEventListener(k,i)),[i]),r.useEffect(()=>{if(c.trigger){const d=m=>{const p=m.target;p!=null&&p.contains(c.trigger)&&i()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,i]),r.createElement(X,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:i},r.createElement(Z,g({"data-state":c.stateAttribute},f,u,{ref:o,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),r.createElement(Y,null,n),r.createElement(me,{scope:e,isInside:!0},r.createElement(oe,{id:c.contentId,role:"tooltip"},a||n))))}),be="TooltipArrow",xe=r.forwardRef((t,o)=>{const{__scopeTooltip:e,...n}=t,a=D(e);return ve(be,e).isInside?null:r.createElement(ee,g({},a,n,{ref:o}))});function he(t,o){const e=Math.abs(o.top-t.y),n=Math.abs(o.bottom-t.y),a=Math.abs(o.right-t.x),l=Math.abs(o.left-t.x);switch(Math.min(e,n,a,l)){case l:return"left";case a:return"right";case e:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ye(t,o,e=5){const n=[];switch(o){case"top":n.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":n.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":n.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":n.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return n}function ge(t){const{top:o,right:e,bottom:n,left:a}=t;return[{x:a,y:o},{x:e,y:o},{x:e,y:n},{x:a,y:n}]}function Te(t,o){const{x:e,y:n}=t;let a=!1;for(let l=0,s=o.length-1;ln!=i>n&&e<(f-u)*(n-c)/(i-c)+u&&(a=!a)}return a}function Ce(t){const o=t.slice();return o.sort((e,n)=>e.xn.x?1:e.yn.y?1:0),Ee(o)}function Ee(t){if(t.length<=1)return t.slice();const o=[];for(let n=0;n=2;){const l=o[o.length-1],s=o[o.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))o.pop();else break}o.push(a)}o.pop();const e=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;e.length>=2;){const l=e[e.length-1],s=e[e.length-2];if((l.x-s.x)*(a.y-s.y)>=(l.y-s.y)*(a.x-s.x))e.pop();else break}e.push(a)}return e.pop(),o.length===1&&e.length===1&&o[0].x===e[0].x&&o[0].y===e[0].y?o:o.concat(e)}const we=se,_e=ie,Oe=ue,Pe=pe,De=xe;var Re="q888p21 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr1ww fyvr1ys fyvr11ms fyvr11tn fyvr1uw fyvr1sw";const L=t=>{const{align:o="center",children:e,delayDuration:n=0,disabled:a=!1,hOffset:l=0,message:s,side:u="top",vOffset:c=0}=t;return a?h.jsx(h.Fragment,{children:e}):h.jsx(we,{children:h.jsxs(_e,{delayDuration:n,children:[h.jsx(Oe,{asChild:!0,children:e}),h.jsxs(Pe,{className:Re,side:u,align:o,sideOffset:c,alignOffset:l,children:[h.jsx(re,{variant:"small",fontWeight:"medium",color:"text80",children:s}),h.jsx(De,{offset:12,width:10,height:5})]})]})})};try{L.displayName="Tooltip",L.__docgenInfo={description:"",displayName:"Tooltip",props:{align:{defaultValue:null,description:"",name:"align",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"end"'},{value:'"start"'}]}},delayDuration:{defaultValue:null,description:"",name:"delayDuration",required:!1,type:{name:"number"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},hOffset:{defaultValue:null,description:"",name:"hOffset",required:!1,type:{name:"number"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string | Element"}},side:{defaultValue:null,description:"",name:"side",required:!1,type:{name:"enum",value:[{value:'"bottom"'},{value:'"left"'},{value:'"right"'},{value:'"top"'}]}},vOffset:{defaultValue:null,description:"",name:"vOffset",required:!1,type:{name:"number"}}}}}catch{}const Qe={title:"Components/Tooltip",component:L},O={args:{message:"Hello, world!",children:h.jsx(F,{label:"Hover me"}),disabled:!1}};var N,S,q;O.parameters={...O.parameters,docs:{...(N=O.parameters)==null?void 0:N.docs,source:{originalSource:`{ args: { message: 'Hello, world!', children: