@magic-ext/magic-widget 1.0.0-canary.979.21261294144.0 → 1.0.0-canary.979.21264948221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +32 -30
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.mjs +32 -30
- package/dist/es/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -9207,21 +9207,21 @@ const c$a=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.pri
|
|
|
9207
9207
|
|
|
9208
9208
|
const o$3=sva({slots:["container","label","description","icon","button","focus"],base:{container:{px:4,py:3,rounded:10,w:"full"},button:{cursor:"pointer",outline:"none",_focusVisible:{outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5,rounded:2}},label:{textAlign:"left"}},variants:{size:{sm:{label:{fontSize:"sm"}},md:{label:{fontSize:"md"}},lg:{label:{fontSize:"lg"}}},variant:{branded:{container:{bg:"brand.lightest",_focusVisible:{outlineColor:"brand.lightest"}},label:{color:"brand.darkest"},description:{color:"brand.darkest"},icon:{color:"brand.darkest"},button:{color:"brand.darkest"}},success:{container:{bg:"positive.lightest",_focusVisible:{outlineColor:"positive.lightest"}},label:{color:"positive.darkest"},description:{color:"positive.darkest"},icon:{color:"positive.darkest"},button:{color:"positive.darkest"}},error:{container:{bg:"negative.lightest",_focusVisible:{outlineColor:"negative.lightest"}},label:{color:"negative.darkest",_dark:{color:"negative.base"}},description:{color:"negative.darkest",_dark:{color:"negative.base"}},icon:{color:"negative.darkest",_dark:{color:"negative.base"}},button:{color:"negative.darkest",_dark:{color:"negative.base"}}},warning:{container:{bg:"warning.lightest",_focusVisible:{outlineColor:"warning.lightest"}},label:{color:"warning.darkest"},description:{color:"warning.darkest"},icon:{color:"warning.darkest"},button:{color:"warning.darkest"}},neutral:{container:{bg:"surface.secondary",_focusVisible:{outlineColor:"surface.secondary"}},label:{color:"text.secondary"},description:{color:"text.secondary"},icon:{color:"text.secondary"},button:{color:"text.secondary"}}},icon:{true:{description:{ml:7}}},dismissible:{true:{description:{mr:7}}},interactive:{true:{container:{cursor:"pointer",transition:"transform 0.2s ease, opacity 0.2s ease",_active:{transform:"scale(0.95)"},_hover:{opacity:.8},_focusVisible:{outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5}}}},description:{true:{label:{textTransform:"uppercase",fontSize:"xs",fontWeight:"semibold",letterSpacing:"0.06rem"}}},isDismissed:{true:{container:{animationFillMode:"forwards",animationName:"scaleOut",animationDuration:"150ms",_motionReduce:{scale:1}}}}}});
|
|
9209
9209
|
|
|
9210
|
-
const d$
|
|
9210
|
+
const d$s=({color:o,title:e,titleId:l,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":l,...r,children:[e?jsxRuntime.jsx("title",{id:l,children:e}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 4.69686e-07 18.6274 1.04907e-06 12C1.62846e-06 5.37258 5.37259 -1.62846e-06 12 -1.04907e-06C18.6274 -4.69686e-07 24 5.37258 24 12ZM13.5 17C13.5 17.8284 12.8284 18.5 12 18.5L11.991 18.5C11.1626 18.5 10.491 17.8284 10.491 17C10.491 16.1716 11.1626 15.5 11.991 15.5L12 15.5C12.8284 15.5 13.5 16.1716 13.5 17ZM11.9946 13C11.4423 13 10.9946 12.5523 10.9946 12L10.9946 6C10.9946 5.44771 11.4423 5 11.9946 5C12.5469 5 12.9946 5.44771 12.9946 6L12.9946 12C12.9946 12.5523 12.5469 13 11.9946 13Z",fill:"currentColor"})]})};
|
|
9211
9211
|
|
|
9212
9212
|
const s$d=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM17.7731 8.63425C18.1234 8.20725 18.0612 7.57715 17.6342 7.22688C17.2072 6.87661 16.5771 6.93881 16.2268 7.36581L10.4197 14.445L7.75841 11.3483C7.39844 10.9294 6.76708 10.8817 6.34822 11.2416C5.92936 11.6016 5.88161 12.233 6.24157 12.6518L9.67907 16.6518C9.87165 16.8759 10.1535 17.0033 10.4489 17C10.7444 16.9966 11.0232 16.8627 11.2106 16.6343L17.7731 8.63425Z",fill:"currentColor"})]})};
|
|
9213
9213
|
|
|
9214
|
-
const d$
|
|
9214
|
+
const d$r=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM10.5 7C10.5 6.17157 11.1716 5.5 12 5.5H12.009C12.8374 5.5 13.509 6.17157 13.509 7C13.509 7.82843 12.8374 8.5 12.009 8.5H12C11.1716 8.5 10.5 7.82843 10.5 7ZM12.0054 11C12.5577 11 13.0054 11.4477 13.0054 12V18C13.0054 18.5523 12.5577 19 12.0054 19C11.4531 19 11.0054 18.5523 11.0054 18V12C11.0054 11.4477 11.4531 11 12.0054 11Z",fill:"currentColor"})]})};
|
|
9215
9215
|
|
|
9216
|
-
const d$
|
|
9216
|
+
const d$q=({color:t,title:C,titleId:l,...o})=>{const r=t||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r,"aria-labelledby":l,...o,children:[C?jsxRuntime.jsx("title",{id:l,children:C}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2628 0.239095C7.79128 -1.14294 1.99999 3.65189 1.99999 9.83699C1.99999 13.2747 4.14256 16.424 6.77979 18.1918V18.9377C6.77979 18.9839 6.77854 19.0279 6.77689 19.0861L6.77576 19.1265C6.77382 19.197 6.77152 19.2924 6.7751 19.3913C6.78188 19.579 6.81104 19.8992 7.00168 20.2136C7.4269 20.9149 8.24323 21.005 8.87914 20.9998H15.1605C15.9708 20.9998 16.6864 20.7352 17.0486 20.0545C17.2016 19.7671 17.2421 19.4859 17.2542 19.294C17.2604 19.1958 17.2597 19.1085 17.2585 19.0454C17.2576 19.003 17.2569 18.9807 17.2564 18.9653C17.2559 18.9499 17.2557 18.9413 17.2557 18.9265V18.1804C21.0065 15.6598 23.5296 10.3805 20.9575 5.31469C19.6385 2.71676 17.1206 0.858741 14.2659 0.239749L14.2628 0.239095ZM12.599 6.19416C13.0441 6.52115 13.1399 7.14703 12.8129 7.59211L11.4112 9.50004H13.0859C13.6185 9.50004 14.3124 9.64028 14.7256 10.209C15.215 10.8828 14.9729 11.6331 14.6277 12.0985L12.8155 14.5885C12.4905 15.035 11.8651 15.1336 11.4185 14.8086C10.972 14.4836 10.8735 13.8581 11.1984 13.4116L12.5897 11.5H10.9109C10.3791 11.5 9.69468 11.356 9.28221 10.7972C8.79008 10.1305 9.01522 9.37741 9.37068 8.89946L11.2011 6.40799C11.5281 5.96291 12.154 5.86717 12.599 6.19416ZM13.033 10.89C13.033 10.89 13.0326 10.8907 13.0317 10.8921L13.033 10.89ZM10.9656 10.1074C10.9656 10.1074 10.9658 10.1071 10.9661 10.1065L10.9668 10.1055L10.9656 10.1074ZM8.49998 22C7.9477 22 7.49998 22.4477 7.49998 23C7.49998 23.5523 7.9477 24 8.49998 24H15.5C16.0522 24 16.5 23.5523 16.5 23C16.5 22.4477 16.0522 22 15.5 22H8.49998Z",fill:"currentColor"})]})};
|
|
9217
9217
|
|
|
9218
|
-
const d$
|
|
9218
|
+
const d$p=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36635 3.74008C10.5034 1.65549 13.4967 1.65548 14.6337 3.74008L23.2646 19.5634C24.355 21.5626 22.9081 24 20.6309 24H3.36909C1.09191 24 -0.355028 21.5625 0.735407 19.5634L9.36635 3.74008L10.2442 4.21893L9.36635 3.74008ZM12 9C12.5523 9 13 9.44772 13 10V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V10C11 9.44772 11.4477 9 12 9ZM10.4946 19C10.4946 18.1716 11.1662 17.5 11.9946 17.5H12.0036C12.832 17.5 13.5036 18.1716 13.5036 19C13.5036 19.8284 12.832 20.5 12.0036 20.5H11.9946C11.1662 20.5 10.4946 19.8284 10.4946 19Z",fill:"currentColor"})]})};
|
|
9219
9219
|
|
|
9220
|
-
const f$9={branded:d$
|
|
9220
|
+
const f$9={branded:d$q,success:s$d,error:d$s,warning:d$p,neutral:d$r},d$o=o=>{const{variant:t="branded",...m}=o,n=f$9[t];return jsxRuntime.jsx(HStack,{children:jsxRuntime.jsx(n,{...m})})};
|
|
9221
9221
|
|
|
9222
|
-
const b$8=React.forwardRef((g,N)=>{const{label:w,description:n,size:l="md",variant:m="branded",icon:c=false,dismissible:d=false,onPress:e}=g,[k,x]=React.useState(true),[C,S]=React.useState(false),s={sm:token("spacing.4"),md:token("spacing.5"),lg:token("spacing.6")},p=n?s.sm:s[l],i=o$3({size:l,variant:m,icon:c,description:!!n,isDismissed:C,dismissible:d,interactive:!!e}),j=()=>{S(true);},v=React.useRef(null),u=N||v,{buttonProps:I}=$701a24aa0da5b062$export$ea18c227d4417cc3({onPress:e},u),f=()=>jsxRuntime.jsxs(HStack,{className:e?"":i.container,onAnimationEnd:()=>x(false),ref:u,children:[jsxRuntime.jsxs(VStack,{alignItems:"flex-start",gap:1.5,children:[jsxRuntime.jsxs(HStack,{w:"full",justifyContent:"space-between",children:[jsxRuntime.jsxs(HStack,{alignItems:"center",children:[c&&jsxRuntime.jsx(d$
|
|
9222
|
+
const b$8=React.forwardRef((g,N)=>{const{label:w,description:n,size:l="md",variant:m="branded",icon:c=false,dismissible:d=false,onPress:e}=g,[k,x]=React.useState(true),[C,S]=React.useState(false),s={sm:token("spacing.4"),md:token("spacing.5"),lg:token("spacing.6")},p=n?s.sm:s[l],i=o$3({size:l,variant:m,icon:c,description:!!n,isDismissed:C,dismissible:d,interactive:!!e}),j=()=>{S(true);},v=React.useRef(null),u=N||v,{buttonProps:I}=$701a24aa0da5b062$export$ea18c227d4417cc3({onPress:e},u),f=()=>jsxRuntime.jsxs(HStack,{className:e?"":i.container,onAnimationEnd:()=>x(false),ref:u,children:[jsxRuntime.jsxs(VStack,{alignItems:"flex-start",gap:1.5,children:[jsxRuntime.jsxs(HStack,{w:"full",justifyContent:"space-between",children:[jsxRuntime.jsxs(HStack,{alignItems:"center",children:[c&&jsxRuntime.jsx(d$o,{variant:m,className:i.icon,width:p,height:p}),jsxRuntime.jsx("p",{className:i.label,children:w})]}),d&&jsxRuntime.jsx("button",{className:i.button,onClick:j,"aria-label":"dismiss callout",children:jsxRuntime.jsx(c$a,{className:i.button,width:s.sm,height:s.sm})})]}),!!n&&jsxRuntime.jsx("p",{className:i.description,children:n})]}),!!e&&jsxRuntime.jsx(c$b,{className:i.button,width:s.sm,height:s.sm})]});return k?e?jsxRuntime.jsx("button",{...I,className:i.container,children:jsxRuntime.jsx(f,{})}):jsxRuntime.jsx(f,{}):null});b$8.displayName="Callout";
|
|
9223
9223
|
|
|
9224
|
-
const d$
|
|
9224
|
+
const d$n=({inverted:a,neutral:c,progress:h=30,size:e=64,strokeWidth:r=6})=>{const t=e/2,l=Math.abs(h)/100,i=2*Math.PI*t,s=a?"surface.primary":c?"text.primary":"brand.base";return jsxRuntime.jsx(Center,{inline:true,children:jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("circle",{className:css({stroke:s,strokeOpacity:.12}),cx:"50%",cy:"50%",r:t-r/2,strokeLinecap:"round",strokeWidth:r}),jsxRuntime.jsx("circle",{className:css({animation:"spin 1s linear infinite",stroke:s,transformOrigin:"center center"}),cx:"50%",cy:"50%",r:t-r/2,strokeDasharray:i,strokeDashoffset:i-i*l+r*4,strokeLinecap:"round",strokeWidth:r})]})})};
|
|
9225
9225
|
|
|
9226
9226
|
token("colors.brand.lighter");token("colors.negative.lighter");token("colors.neutral.secondary");token("colors.positive.lighter");token("colors.warning.lighter");
|
|
9227
9227
|
|
|
@@ -9237,11 +9237,11 @@ const m$7=React.forwardRef((l,u)=>{const{label:o,indeterminate:r=false,disabled:
|
|
|
9237
9237
|
|
|
9238
9238
|
const c$8=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.84115 16.0164C11.0164 17.3279 12.9837 17.3279 14.1589 16.0164L20.7447 8.66738C21.1133 8.25608 21.0787 7.62386 20.6674 7.25528C20.2561 6.8867 19.6239 6.92132 19.2553 7.33262L12.6694 14.6817C12.2891 15.1061 11.7109 15.1061 11.3306 14.6817L4.74473 7.33262C4.37614 6.92132 3.74393 6.8867 3.33263 7.25528C2.92133 7.62386 2.88671 8.25608 3.25529 8.66738L9.84115 16.0164Z",fill:"currentColor"})]})};
|
|
9239
9239
|
|
|
9240
|
-
const d$
|
|
9240
|
+
const d$m=({color:o,title:l,titleId:e,...C})=>{const r=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r,"aria-labelledby":e,...C,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12ZM12.0248 7C10.9095 7 10 7.9061 10 9V9.5C10 10.0523 9.55228 10.5 9 10.5C8.44771 10.5 8 10.0523 8 9.5V9C8 6.78019 9.82639 5 12.0248 5C14.1982 5 16 6.76512 16 8.95565C16 10.8064 14.7234 12.3651 13 12.7883V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V11.9605C11 11.3757 11.4741 10.9016 12.0588 10.9016C13.1288 10.9016 14 10.0299 14 8.95565C14 7.8868 13.1108 7 12.0248 7ZM10.75 18C10.75 17.3096 11.3096 16.75 12 16.75H12.009C12.6993 16.75 13.259 17.3096 13.259 18C13.259 18.6904 12.6993 19.25 12.009 19.25H12C11.3096 19.25 10.75 18.6904 10.75 18Z",fill:"currentColor"})]})};
|
|
9241
9241
|
|
|
9242
9242
|
const m$6=React.createContext({selectedValue:void 0,setSelectedValue:()=>{}}),h$7=React.forwardRef((i,s)=>{const{label:t,value:o}=i,r=React.useContext(m$6),n=React.useRef(null),a=s||n,b=React.useCallback(()=>{r.setSelectedValue(o);},[r,o]),{hoverProps:f}=$6179b936705e76d3$export$ae780daf29e6d456({}),{focusProps:x,isFocusVisible:d}=$f7dceffc5ad7768b$export$4e328f61c538687f(),{pressProps:g}=$f6c31cce2adf654f$export$45712eceda6fad21({onPress:b}),l=r.selectedValue===o,C=l?0:-1;return jsxRuntime.jsxs("label",{className:flex({alignItems:"center"}),children:[jsxRuntime.jsx($5c3e21d68f1c4674$export$439d29a4e110a164,{children:jsxRuntime.jsx("input",{...$3ef42575df84b30b$export$9d1611c77c2fe928(g,x,f),ref:a,type:"radio",checked:l,tabIndex:C,readOnly:true})}),jsxRuntime.jsx(Flex,{justifyContent:"center",alignItems:"center",borderWidth:"thick",borderColor:d||l?"brand.base":"text.tertiary",transition:"border-color 0.2s ease",outlineColor:"brand.base",outlineStyle:d?"solid":"none",outlineWidth:"thick",outlineOffset:.5,_hover:{borderColor:"brand.base"},cursor:"pointer",w:6,h:6,rounded:"full","aria-hidden":"true",children:l&&jsxRuntime.jsx(Circle,{size:3,bg:"brand.base"})}),jsxRuntime.jsx(Box,{ml:3,children:jsxRuntime.jsx(M$8,{size:"lg",fontWeight:"medium",children:t})})]})});h$7.displayName="Radio";
|
|
9243
9243
|
|
|
9244
|
-
var i$7=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect,f$7=e=>{let r=React__namespace.createContext(e);return r.displayName="SlotsContext",r},d$
|
|
9244
|
+
var i$7=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect,f$7=e=>{let r=React__namespace.createContext(e);return r.displayName="SlotsContext",r},d$l=e=>typeof e=="string"?e:e.displayName||e.name||"Component",y$7=["$$typeof","render","displayName","defaultProps"],m$5=(e,r)=>{if(typeof r=="string")return e;let t=Object.getOwnPropertyNames(r).reduce((o,s)=>(y$7.includes(s)||(o[s]=r[s]),o),{});return Object.assign(e,t)};var u$5="slots-wrapper",x$4=new RegExp(`^<${u$5}>.*</${u$5}>$`),R$3=({name:e,forceUpdate:r,children:t})=>{let o=React__namespace.useRef(null),s=React__namespace.useRef(false);return i$7(()=>{var a;if(!s.current&&((a=o.current)==null?void 0:a.innerHTML)){let l=o.current.innerHTML;l&&!x$4.test(l)&&console.warn(`Unwrapped children found in "${e}", either wrap them in slots or remove`);}s.current=true,r();},[e]),s.current?React__namespace.createElement(React__namespace.Fragment,null,t):React__namespace.createElement(u$5,{ref:o},t)};var S$5=e=>{let r=new Map;return {register(t,o){r.set(t,o);},update(t,o){r.set(t,o),e(t);},unmount(t){r.delete(t),e(t);},get(t){return r.get(t)},getProps(t){let o=r.get(t);if(!o)return;let{ref:s,props:a}=o;return s?{...a,ref:s}:a}}};var T$6=f$7(void 0),E$4=({children:e})=>e(),C$5=({children:e,callback:r})=>{let t=React__namespace.useReducer(()=>[],[])[1],o=React__namespace.useMemo(()=>S$5(t),[t]);return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(T$6.Provider,{value:o},process.env.NODE_ENV==="production"?e:React__namespace.createElement(R$3,{name:"HostSlots",forceUpdate:t},e)),React__namespace.createElement(E$4,null,()=>r(o)))},$$5=(e,r)=>React__namespace.createElement(C$5,{children:e,callback:r}),D$3=e=>{let r=(o,s)=>{let a=React__namespace.useContext(T$6);if(!a)return e?React__namespace.createElement(e,{ref:s,...o}):null;let l=React__namespace.createElement(t,{ref:s,...o});return React__namespace.useState(()=>a.register(t,l)),React__namespace.useEffect(()=>a.update(t,l)),React__namespace.useEffect(()=>()=>a.unmount(t),[a]),null};r.displayName=e?`Slot(${d$l(e)})`:"Slot";let t=React__namespace.forwardRef(r);return e?m$5(t,e):t};
|
|
9245
9245
|
|
|
9246
9246
|
const T$5=React.createContext({currentTab:void 0,setCurrentTab:()=>{},tabRefs:{current:{}},disabled:false}),j$4=D$3(({children:i,...l})=>jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",children:React.Children.map(i,a=>React.cloneElement(a,l))})),R$2=React.forwardRef((i,l)=>{const{label:a,id:n}=i,{currentTab:p,setCurrentTab:b,tabRefs:e,size:o,disabled:s}=React.useContext(T$5),t=p===n,h=o==="sm"?8:o==="md"?10:13,c=o==="sm"?16:20,g=React.useRef(null),r=l||g;React.useEffect(()=>{typeof r=="object"&&e.current&&(e.current[n]=r.current);},[n]);const d=React.useCallback(()=>{b(n);},[b,n]),{buttonProps:u,isPressed:z}=$701a24aa0da5b062$export$ea18c227d4417cc3({onPress:d,isDisabled:s},r),{hoverProps:$}=$6179b936705e76d3$export$ae780daf29e6d456({}),{isFocusVisible:_,focusProps:H}=$f7dceffc5ad7768b$export$4e328f61c538687f();return $$5(i.children,I=>{const x=I.get(j$4);return jsxRuntime.jsx("button",{className:css({display:"flex",justifyContent:"center",alignItems:"center",h,w:"full",rounded:"button",zIndex:0,cursor:"pointer",color:t?"text.primary":"text.secondary",fontSize:o,fontWeight:"semibold",whiteSpace:"nowrap",bg:"transparent",outlineColor:_?"brand.base":"transparent",outlineStyle:"solid",outlineWidth:"thick",transition:t?"background 0s":"background 0.2s ease",_disabled:{opacity:"0.3",pointerEvents:"none"},_hover:{bg:t?"transparent":"ink.20",_dark:{bg:t?"transparent":"slate.1"}}}),ref:r,...$3ef42575df84b30b$export$9d1611c77c2fe928(u,$,H),disabled:s,children:jsxRuntime.jsxs(Flex,{opacity:z&&!t?.5:1,align:"center",justify:"center",children:[x&&{...x,props:{...x.props,className:css({mr:1,color:t?"text.primary":"text.secondary"}),width:c,height:c}},a]})})})});Object.assign(R$2,{Icon:j$4});R$2.displayName="Tab";
|
|
9247
9247
|
|
|
@@ -9259,17 +9259,17 @@ function m$4(t){const n=React.useRef(null),r=React.useRef(t);return React.useLay
|
|
|
9259
9259
|
|
|
9260
9260
|
const r$5=sva({slots:["trigger","content","spacer"],base:{trigger:{position:"relative",w:"auto"},content:{w:"max",maxW:72,color:"text.secondary",bg:"surface.primary",borderColor:"neutral.secondary",borderWidth:"thin",_dark:{bg:"surface.tertiary"},position:"absolute",py:2,px:3,rounded:"xl",boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.10)",zIndex:"max",display:"none"},spacer:{position:"absolute"}},variants:{expand:{true:{trigger:{w:"full"}}},isOpen:{true:{content:{display:"block"}}},placement:{top:{content:{top:"0%",left:"50%",transform:"translateX(-50%) translateY(calc(-100% - 0.75rem))"}},"top left":{content:{top:"0%",right:"100%",transform:"translateX(10%) translateY(calc(-100% - 0.75rem))"}},"top right":{content:{top:"0%",left:"100%",transform:"translateX(-10%) translateY(calc(-100% - 0.75rem))"}},left:{content:{top:"50%",left:"0%",transform:"translateX(calc(-100% - 0.75rem)) translateY(-50%)"}},"left top":{content:{top:"50%",left:"0%",transform:"translateX(calc(-100% - 0.75rem)) translateY(-75%)"}},"left bottom":{content:{top:"50%",left:"0%",transform:"translateX(calc(-100% - 0.75rem)) translateY(-25%)"}},right:{content:{top:"50%",right:"0%",transform:"translateX(calc(100% + 0.75rem)) translateY(-50%)"}},"right top":{content:{top:"50%",right:"0%",transform:"translateX(calc(100% + 0.75rem)) translateY(-75%)"}},"right bottom":{content:{top:"50%",right:"0%",transform:"translateX(calc(100% + 0.75rem)) translateY(-25%)"}},bottom:{content:{bottom:"0%",left:"50%",transform:"translateX(-50%) translateY(calc(100% + 0.75rem))"}},"bottom left":{content:{bottom:"0%",right:"100%",transform:"translateX(10%) translateY(calc(100% + 0.75rem))"}},"bottom right":{content:{bottom:"0%",left:"100%",transform:"translateX(-10%) translateY(calc(100% + 0.75rem))"}}},position:{top:{spacer:{width:72,height:4,bottom:0,left:"50%",transform:"translateX(-50%) translateY(0.75rem)"}},bottom:{spacer:{width:72,height:4,top:0,left:"50%",transform:"translateX(-50%) translateY(-0.75rem)"}},left:{spacer:{width:4,height:48,top:"50%",right:-6,transform:"translateX(-0.75rem) translateY(-50%)"}},right:{spacer:{width:4,height:48,top:"50%",left:-6,transform:"translateX(0.75rem) translateY(-50%)"}}}}});
|
|
9261
9261
|
|
|
9262
|
-
const d$
|
|
9262
|
+
const d$k=React.forwardRef((t,f)=>{const g="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0,{children:h,content:x,width:O=288,closeDelay:T=2500,defaultOpen:w,placement:l="top",expand:y=false,...P}=t,[r,i]=React.useState(false),{isSelected:m,setSelected:o}=i$8({isOpen:t.isOpen,defaultSelected:w,onChange(s){s||i(false);},...t}),e=React.useMemo(()=>({isOpen:m,open:()=>{o(true);},close:s=>{if(s){o(false);return}g?o(false):(r&&setTimeout(()=>{o(false),i(false);},T),r||o(false));}}),[m,r]),S=React.useRef(null),{triggerProps:a,tooltipProps:C}=$4e1b34546679e357$export$a6da6c504e4bba8b(t,e,S);a.onClick=()=>{e.open(),i(true);};const M=m$4(()=>{e.close(true);}),N=l.split(" ")[0],n=r$5({expand:y,isOpen:e.isOpen,placement:l,position:N});return jsxRuntime.jsxs(Box,{ref:M,className:n.trigger,onMouseLeave:()=>{e.close();},onFocus:()=>{e.open();},onBlur:()=>{e.close();},children:[React.cloneElement(h,{...a,tabIndex:0}),jsxRuntime.jsxs(Box,{ref:f,"aria-describedby":"tooltip",role:"tooltip",className:n.content,style:{width:O},onMouseEnter:()=>{e.open();},...$3ef42575df84b30b$export$9d1611c77c2fe928(C,P),children:[jsxRuntime.jsx(M$8,{size:"sm",children:x}),e.isOpen&&jsxRuntime.jsx(Box,{onMouseEnter:()=>{e.open();},className:n.spacer})]})]})});d$k.displayName="Tooltip";
|
|
9263
9263
|
|
|
9264
9264
|
React.createContext({selectedOption:null,setSelectedOption:()=>{}});
|
|
9265
9265
|
|
|
9266
9266
|
const r$4=sva({slots:["button","label","focus","icon","iconContainer"],base:{button:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",fontWeight:"semibold",boxSizing:"border-box",borderRadius:"button",border:"thin solid",borderColor:"transparent",cursor:"pointer",transition:"all 0.1s ease",outline:"none",willChange:"transform, opacity",bg:"none",_active:{transform:"scale(0.95)"},_disabled:{opacity:"0.3",pointerEvents:"none"},_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05))",_dark:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"},opacity:0,transition:"opacity 0.1s ease"},_hover:{_before:{opacity:1}}},label:{display:"flex",textAlign:"center",justifyContent:"center",whiteSpace:"nowrap",transition:"all 0.1s ease"},focus:{outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5},icon:{transition:"all 0.1s ease"}},variants:{size:{sm:{button:{h:9,py:1.5,px:4},label:{fontSize:"sm",lineHeight:"1.5rem"},iconContainer:{w:9,p:1.5}},md:{button:{h:12,py:3,px:6},label:{fontSize:"md",lineHeight:"1.5rem"},iconContainer:{w:12,p:3}},lg:{button:{h:15,py:4,px:6},label:{fontSize:"lg",lineHeight:"1.75rem"},iconContainer:{w:15,p:4}}},variant:{primary:{button:{bg:"brand.base"},label:{color:"surface.primary"},icon:{color:"surface.primary"}},secondary:{button:{bg:"brand.lightest"},label:{color:"brand.darker"},icon:{color:"brand.darker"}},positive:{button:{bg:"positive.darker"},label:{color:"surface.primary"},icon:{color:"surface.primary"}},negative:{button:{bg:"negative.darker"},label:{color:"surface.primary"},icon:{color:"surface.primary"}},neutral:{button:{bg:"neutral.tertiary",_light:{mixBlendMode:"multiply"}},label:{color:"text.primary"},icon:{color:"text.primary"}},tertiary:{button:{bg:"transparent",borderColor:"neutral.primary"},label:{color:"text.primary"},icon:{color:"brand.base"}},text:{button:{p:0,h:"fit-content",_hover:{_before:{opacity:0}}},label:{color:"brand.base",_groupHover:{color:"brand.darkest",_dark:{color:"brand.lighter"}}},icon:{color:"brand.base",_groupHover:{color:"brand.darkest",_dark:{color:"brand.lighter"}}}},transparent:{button:{bg:{base:"#ffffff14",_hover:"#ffffff4d"},_dark:{bg:"#ffffff29"},backdropFilter:"blur(3px)",_before:{display:"none"}},label:{color:"chalk"},icon:{color:"chalk"}},inverse:{button:{bg:"ink.90",_dark:{bg:"paper"},_before:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))",_dark:{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05))"}}},label:{color:"chalk",_dark:{color:"ink.90"}},icon:{color:"chalk",_dark:{color:"ink.90"}}}},validating:{true:{button:{pointerEvents:"none"}}},expand:{true:{button:{width:"full"}}},iconOnly:{true:{button:{borderRadius:"full"}}},textStyle:{positive:{},negative:{},neutral:{},subtle:{}}},compoundVariants:[{textStyle:"positive",css:{label:{color:"positive.base"},icon:{color:"positive.base"}}},{variant:"text",textStyle:"positive",css:{label:{_groupHover:{color:"positive.darker",_dark:{color:"positive.darker"}}},icon:{_groupHover:{color:"positive.darker",_dark:{color:"positive.darker"}}}}},{textStyle:"negative",css:{label:{color:"negative.darker",_dark:{color:"negative.base"}},icon:{color:"negative.darker",_dark:{color:"negative.base"}}}},{variant:"text",textStyle:"negative",css:{label:{_groupHover:{color:"negative.darkest",_dark:{color:"negative.lighter"}}},icon:{_groupHover:{color:"negative.darkest",_dark:{color:"negative.lighter"}}}}},{textStyle:"neutral",css:{label:{color:"text.primary"},icon:{color:"text.primary"}}},{variant:"text",textStyle:"neutral",css:{label:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}},icon:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}}}},{textStyle:"subtle",css:{label:{color:"text.tertiary"},icon:{color:"text.tertiary"}}},{variant:"text",textStyle:"subtle",css:{label:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}},icon:{_groupHover:{color:"text.secondary",_dark:{color:"text.secondary"}}}}},{variant:"text",iconOnly:true,css:{iconContainer:{p:1.5,w:"fit-content"}}}],defaultVariants:{size:"md",variant:"primary"}});
|
|
9267
9267
|
|
|
9268
|
-
const C$4=D$3(({children:t,...i})=>jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",children:React.Children.map(t,r=>React.cloneElement(r,i))})),N$3=D$3(({children:t,...i})=>jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",children:React.Children.map(t,r=>React.cloneElement(r,i))})),G$3=({variant:t="primary",size:i="md"})=>{const r=t==="primary"||t==="negative",p=t==="neutral"||t==="tertiary";return jsxRuntime.jsx(d$
|
|
9268
|
+
const C$4=D$3(({children:t,...i})=>jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",children:React.Children.map(t,r=>React.cloneElement(r,i))})),N$3=D$3(({children:t,...i})=>jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",children:React.Children.map(t,r=>React.cloneElement(r,i))})),G$3=({variant:t="primary",size:i="md"})=>{const r=t==="primary"||t==="negative",p=t==="neutral"||t==="tertiary";return jsxRuntime.jsx(d$n,{size:{sm:20,md:24,lg:28}[i],strokeWidth:2.5,inverted:r,neutral:p})},S$4=React.forwardRef((t,i)=>{const{label:r,variant:p="primary",textStyle:H,size:m="md",disabled:l,expand:c,validating:d,iconSize:I,onHover:u,centerContent:f}=t,a=I||(m==="sm"?16:24),g=r&&c&&!f,o=r$4({variant:p,textStyle:H,expand:c,size:m,validating:d,iconOnly:!r}),P=React.useRef(null),h=i||P,{buttonProps:B}=$701a24aa0da5b062$export$ea18c227d4417cc3({...t,isDisabled:l??false},h),{hoverProps:F}=$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:l??false}),{isFocusVisible:R,focusProps:O}=$f7dceffc5ad7768b$export$4e328f61c538687f();return $$5(t.children,b=>{const n=b.get(C$4),s=b.get(N$3),v=a/4;return jsxRuntime.jsx("button",{className:cx(o.button,"group",!r&&o.iconContainer,R&&o.focus),ref:h,...$3ef42575df84b30b$export$9d1611c77c2fe928(B,F,O),"aria-disabled":l,onMouseEnter:u,onTouchStart:u,children:d?jsxRuntime.jsx(G$3,{variant:p,size:m}):jsxRuntime.jsxs(HStack,{w:"full",gap:2,justify:r&&(n||s)&&!f?"space-between":"center",children:[n&&{...n,props:{className:n.props.color?void 0:o.icon,width:a,height:a,...n.props}},s&&g&&jsxRuntime.jsx(Box,{w:v}),r&&jsxRuntime.jsx("span",{className:o.label,children:r}),n&&g&&jsxRuntime.jsx(Box,{w:v}),s&&{...s,props:{className:s.props.color?void 0:o.icon,width:a,height:a,...s.props}}]})})})}),Q$2=Object.assign(S$4,{LeadingIcon:C$4,TrailingIcon:N$3});S$4.displayName="Button";
|
|
9269
9269
|
|
|
9270
9270
|
const a$3=cva({base:{bgColor:"surface.primary",borderRadius:"1rem"},variants:{asButton:{false:{cursor:"default"},true:{alignItems:"center",cursor:"pointer",h:"10.75rem",justifyContent:"center",p:4,transition:"all 0.1s ease",w:"10.75rem",_active:{transform:"scale(0.95)"}}},alignment:{center:{alignItems:"center"},left:{alignItems:"flex-start"},right:{alignItems:"flex-end"}},alt:{true:{}},expand:{false:{overflow:"hidden"},true:{overflow:"visible",w:"full"}},gapType:{none:{gap:0},sm:{gap:4},md:{gap:5},lg:{gap:6}},heavyShadow:{false:{boxShadow:"0px 1px 2px rgba(189, 189, 189, 0.3)"},true:{boxShadow:"8px 8px 48px rgba(16, 15, 17, 0.14)"}},paddingType:{none:{p:0},sm:{px:4,py:3},md:{px:8,py:6},lg:{p:12}},widthMax:{true:{flex:1,maxW:"29.125rem",mdDown:{maxW:"full"}}},disabled:{true:{opacity:.3,pointerEvents:"none"}},validating:{true:{pointerEvents:"none"}}},compoundVariants:[{asButton:true,alt:true,css:{bgColor:"surface.tertiary",color:"text.secondary",_hover:{filter:"brightness(0.9)"}}}],defaultVariants:{alt:false,expand:false,gapType:"md",heavyShadow:false,paddingType:"md",widthMax:false}});
|
|
9271
9271
|
|
|
9272
|
-
const c$7=React.forwardRef(({children:i,className:t,id:m,asButton:o,stack:l,onClick:d,validating:p,...s},a)=>{const n=a$3({asButton:o,validating:p,...s});return l||o?jsxRuntime.jsx(Flex,{id:m,className:cx(n,t),flexDirection:"column",role:o?"button":"none",onClick:o?d:void 0,ref:a,children:p?jsxRuntime.jsx(d$
|
|
9272
|
+
const c$7=React.forwardRef(({children:i,className:t,id:m,asButton:o,stack:l,onClick:d,validating:p,...s},a)=>{const n=a$3({asButton:o,validating:p,...s});return l||o?jsxRuntime.jsx(Flex,{id:m,className:cx(n,t),flexDirection:"column",role:o?"button":"none",onClick:o?d:void 0,ref:a,children:p?jsxRuntime.jsx(d$n,{neutral:true}):i}):jsxRuntime.jsx(Box,{id:m,className:cx(n,t),ref:a,children:i})});c$7.displayName="Card";
|
|
9273
9273
|
|
|
9274
9274
|
const s$b=({children:t,className:e=""})=>jsxRuntime.jsx(VStack,{alignItems:"center",justifyContent:"center",flexShrink:0,className:`${css({pb:0,pt:6,px:8,width:"100%"})} ${e}`,children:t});
|
|
9275
9275
|
|
|
@@ -13813,13 +13813,13 @@ const i$4=({animate:e=true,backgroundType:o="none",hide:n=false,fullscreen:r=fal
|
|
|
13813
13813
|
|
|
13814
13814
|
const H$4=({title:l,titleId:t,...L})=>jsxRuntime.jsxs("svg",{width:78,height:24,viewBox:"0 0 78 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...L,children:[l?jsxRuntime.jsx("title",{id:t,children:l}):null,jsxRuntime.jsx("path",{d:"M9.41316 1.84616H3.41316C3.02854 1.84616 2.64393 2.15385 2.567 2.53847L0.182389 17.9231C0.105466 18.2308 0.336235 18.4615 0.643928 18.4615H3.49008C3.8747 18.4615 4.25931 18.1539 4.33624 17.7692L4.95162 13.6154C5.02854 13.2308 5.33624 12.9231 5.79777 12.9231H7.72085C11.6439 12.9231 13.9516 11 14.567 7.23078C14.7978 5.61539 14.567 4.3077 13.7978 3.38462C12.9516 2.38462 11.4132 1.84616 9.41316 1.84616ZM10.1055 7.46155C9.79777 9.61539 8.10547 9.61539 6.567 9.61539H5.64393L6.25931 5.61539C6.25931 5.38462 6.49008 5.23078 6.72085 5.23078H7.10547C8.18239 5.23078 9.18239 5.23078 9.72085 5.84616C10.1055 6.15385 10.2593 6.69232 10.1055 7.46155Z",fill:"#003087"}),jsxRuntime.jsx("path",{d:"M27.2593 7.38462H24.4131C24.1824 7.38462 23.9516 7.53846 23.9516 7.76923L23.7978 8.53846L23.567 8.23077C22.9516 7.30769 21.567 7 20.1824 7C17.0285 7 14.3362 9.38461 13.7978 12.7692C13.4901 14.4615 13.8747 16.0769 14.8747 17.1538C15.7208 18.1538 17.0285 18.6154 18.4901 18.6154C21.0285 18.6154 22.4901 17 22.4901 17L22.3362 17.7692C22.2593 18.0769 22.4901 18.3846 22.7978 18.3846H25.4131C25.7978 18.3846 26.1824 18.0769 26.2593 17.6923L27.7978 7.84615C27.8747 7.69231 27.567 7.38462 27.2593 7.38462ZM23.3362 12.9231C23.0285 14.5385 21.7978 15.6923 20.1055 15.6923C19.2593 15.6923 18.6439 15.4615 18.1824 14.9231C17.7208 14.3846 17.567 13.6923 17.7208 12.9231C17.9516 11.3077 19.3362 10.1538 20.9516 10.1538C21.7978 10.1538 22.4131 10.4615 22.8747 10.9231C23.2593 11.4615 23.4131 12.1538 23.3362 12.9231Z",fill:"#003087"}),jsxRuntime.jsx("path",{d:"M42.5669 7.38461H39.7207C39.413 7.38461 39.1823 7.53846 39.0284 7.76923L35.0284 13.6154L33.3361 8C33.2592 7.61538 32.8746 7.38461 32.5669 7.38461H29.7207C29.413 7.38461 29.1053 7.69231 29.2592 8.07692L32.413 17.3846L29.413 21.5385C29.1823 21.8462 29.413 22.3077 29.7976 22.3077H32.6438C32.9515 22.3077 33.1823 22.1538 33.3361 21.9231L42.9515 8.07692C43.1823 7.84615 42.9515 7.38461 42.5669 7.38461Z",fill:"#003087"}),jsxRuntime.jsx("path",{d:"M52.1053 1.84616H46.1053C45.7207 1.84616 45.3361 2.15385 45.2591 2.53847L42.8745 17.8462C42.7976 18.1539 43.0284 18.3846 43.3361 18.3846H46.413C46.7207 18.3846 46.9515 18.1539 46.9515 17.9231L47.6438 13.5385C47.7207 13.1539 48.0284 12.8462 48.4899 12.8462H50.413C54.3361 12.8462 56.6438 10.9231 57.2591 7.15385C57.4899 5.53847 57.2591 4.23078 56.4899 3.3077C55.5668 2.38462 54.1053 1.84616 52.1053 1.84616ZM52.7976 7.46154C52.4899 9.61539 50.7976 9.61539 49.2591 9.61539H48.3361L48.9515 5.61539C48.9515 5.38462 49.1822 5.23078 49.413 5.23078H49.7976C50.8745 5.23078 51.8745 5.23078 52.413 5.84616C52.7976 6.15385 52.8745 6.69231 52.7976 7.46154Z",fill:"#009CDE"}),jsxRuntime.jsx("path",{d:"M69.9514 7.38462H67.1053C66.8745 7.38462 66.6437 7.53846 66.6437 7.76923L66.4899 8.53846L66.2591 8.23077C65.6437 7.30769 64.2591 7 62.8745 7C59.7207 7 57.0284 9.38461 56.4899 12.7692C56.1822 14.4615 56.5668 16.0769 57.5668 17.1538C58.413 18.1538 59.7207 18.6154 61.1822 18.6154C63.7207 18.6154 65.1822 17 65.1822 17L65.0284 17.7692C64.9514 18.0769 65.1822 18.3846 65.4899 18.3846H68.1053C68.4899 18.3846 68.8745 18.0769 68.9514 17.6923L70.4899 7.84615C70.4899 7.69231 70.2591 7.38462 69.9514 7.38462ZM65.9514 12.9231C65.6437 14.5385 64.413 15.6923 62.7207 15.6923C61.8745 15.6923 61.2591 15.4615 60.7976 14.9231C60.3361 14.3846 60.1822 13.6923 60.3361 12.9231C60.5668 11.3077 61.9514 10.1538 63.5668 10.1538C64.413 10.1538 65.0284 10.4615 65.4899 10.9231C65.9514 11.4615 66.1053 12.1538 65.9514 12.9231Z",fill:"#009CDE"}),jsxRuntime.jsx("path",{d:"M73.3363 2.23078L70.8748 17.8462C70.7978 18.1539 71.0286 18.3846 71.3363 18.3846H73.7978C74.1825 18.3846 74.5671 18.0769 74.644 17.6923L77.1055 2.38462C77.1825 2.07693 76.9517 1.84616 76.644 1.84616H73.8748C73.5671 1.84616 73.4132 2.00001 73.3363 2.23078Z",fill:"#009CDE"})]});
|
|
13815
13815
|
|
|
13816
|
-
const t=React.forwardRef((r,i)=>{const{disabled:m,validating:p}=r;return jsxRuntime.jsx(a$4,{ref:i,className:css({bg:"#ffc439",outlineColor:"#ffc439",border:"1px solid transparent",px:6,py:2.5}),"aria-disabled":m,shadow:true,...r,children:p?jsxRuntime.jsx(d$
|
|
13816
|
+
const t=React.forwardRef((r,i)=>{const{disabled:m,validating:p}=r;return jsxRuntime.jsx(a$4,{ref:i,className:css({bg:"#ffc439",outlineColor:"#ffc439",border:"1px solid transparent",px:6,py:2.5}),"aria-disabled":m,shadow:true,...r,children:p?jsxRuntime.jsx(d$n,{size:24,strokeWidth:2.5,inverted:true}):jsxRuntime.jsxs(HStack,{w:"full",gap:1,justifyContent:"center",children:[jsxRuntime.jsx(M$8,{fontWeight:"semibold",styles:{color:token("colors.ink.90")},children:"Pay with"}),jsxRuntime.jsx(Box,{mt:.5,children:jsxRuntime.jsx(H$4,{width:60})})]})})});t.displayName="PayPalButton";
|
|
13817
13817
|
|
|
13818
13818
|
const L$2=({title:t,titleId:i,...C})=>jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i,...C,children:[t?jsxRuntime.jsx("title",{id:i,children:t}):null,jsxRuntime.jsx("path",{d:"M22.556 12.2409C22.556 11.3365 22.4826 10.6766 22.3238 9.99219H11.9968V14.074H18.0585C17.9364 15.0884 17.2764 16.6161 15.8098 17.6426L15.7893 17.7793L19.0545 20.3088L19.2807 20.3314C21.3583 18.4126 22.556 15.5895 22.556 12.2409Z",fill:"#4285F4"}),jsxRuntime.jsx("path",{d:"M11.9987 23C14.9684 23 17.4615 22.0223 19.2825 20.3358L15.8117 17.6471C14.8829 18.2948 13.6363 18.747 11.9987 18.747C9.09006 18.747 6.62139 16.8283 5.74137 14.1763L5.61238 14.1873L2.21719 16.8148L2.17279 16.9383C3.98152 20.5313 7.69678 23 11.9987 23Z",fill:"#34A853"}),jsxRuntime.jsx("path",{d:"M5.74179 14.1771C5.5096 13.4927 5.37521 12.7594 5.37521 12.0017C5.37521 11.2439 5.5096 10.5107 5.72958 9.82631L5.72343 9.68055L2.28569 7.01077L2.17321 7.06427C1.42775 8.55528 1 10.2296 1 12.0017C1 13.7738 1.42775 15.448 2.17321 16.939L5.74179 14.1771Z",fill:"#FBBC05"}),jsxRuntime.jsx("path",{d:"M11.9987 5.25296C14.0641 5.25296 15.4572 6.14511 16.2517 6.89066L19.3558 3.85977C17.4494 2.0877 14.9684 1 11.9987 1C7.69678 1 3.98152 3.46867 2.17279 7.06169L5.72916 9.82373C6.62139 7.17172 9.09006 5.25296 11.9987 5.25296Z",fill:"#EB4335"})]});
|
|
13819
13819
|
|
|
13820
13820
|
var i$3;(function(o){o.GOOGLE="google";})(i$3||(i$3={}));({google:{icon:jsxRuntime.jsx(L$2,{})}});
|
|
13821
13821
|
|
|
13822
|
-
const d$
|
|
13822
|
+
const d$j=({width:t="100px",height:a="20px",speed:i="1.5s",borderRadius:n="24px",backgroundColor:o})=>jsxRuntime.jsx(Box,{style:{width:t,height:a,borderRadius:n,backgroundColor:o},bg:"neutral.tertiary",overflow:"hidden",position:"relative",_dark:{bg:"surface.primary"},children:jsxRuntime.jsx(Box,{style:{animation:`slideRight ${i} infinite ease-in-out`},w:"full",h:"full",position:"absolute",top:0,left:"-50%",transform:"skewX(-20deg)",backgroundImage:"linear-gradient(90deg, transparent,rgba(0, 0, 0, .1), transparent)",_dark:{backgroundImage:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent)"}})});
|
|
13823
13823
|
|
|
13824
13824
|
const s$7=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2408 13.3492C17.6002 12.9299 18.2315 12.8813 18.6508 13.2407C19.0701 13.6002 19.1187 14.2315 18.7593 14.6508L12.7593 21.6508C12.5693 21.8724 12.2919 22 12 22C11.7081 22 11.4307 21.8724 11.2408 21.6508L5.24076 14.6508C4.88133 14.2315 4.9299 13.6002 5.34922 13.2407C5.76855 12.8813 6.39985 12.9299 6.75927 13.3492L11 18.2968L11 3C11 2.44772 11.4477 2 12 2C12.5523 2 13 2.44772 13 3L13 18.2967L17.2408 13.3492Z",fill:"currentColor"})]})};
|
|
13825
13825
|
|
|
@@ -13833,9 +13833,11 @@ const s$5=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.pri
|
|
|
13833
13833
|
|
|
13834
13834
|
const s$4=({color:o,title:t,titleId:l,...e})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":l,...e,children:[t?jsxRuntime.jsx("title",{id:l,children:t}):null,jsxRuntime.jsx("path",{d:"M12 0C5.38338 0 0 5.38338 0 12C0 18.6166 5.38338 24 12 24C18.6166 24 24 18.6166 24 12C24 5.38338 18.6166 0 12 0ZM16.4603 14.9735C16.2818 15.2406 15.9889 15.3846 15.6911 15.3846C15.5151 15.3846 15.3378 15.3342 15.1803 15.2295L11.488 12.768C11.2308 12.5969 11.0769 12.3089 11.0769 12V7.07692C11.0769 6.56738 11.4905 6.15385 12 6.15385C12.5095 6.15385 12.9231 6.56738 12.9231 7.07692V11.5065L16.2043 13.6935C16.6289 13.9766 16.7434 14.5489 16.4603 14.9735Z",fill:"currentColor"})]})};
|
|
13835
13835
|
|
|
13836
|
-
const d$
|
|
13836
|
+
const d$i=({color:t,title:C,titleId:l,...o})=>{const r=t||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r,"aria-labelledby":l,...o,children:[C?jsxRuntime.jsx("title",{id:l,children:C}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 2C4.23858 2 2 4.23858 2 7V15H1C0.447715 15 0 15.4477 0 16V17C0 19.7614 2.23858 22 5 22H19C21.7614 22 24 19.7614 24 17V16C24 15.4477 23.5523 15 23 15H22V7C22 4.23858 19.7614 2 17 2H7ZM20 15V7C20 5.34315 18.6569 4 17 4H7C5.34315 4 4 5.34315 4 7V15H7.5C7.70188 15 7.89903 15.0611 8.06553 15.1753L9.30432 16.0247C9.47082 16.1389 9.66797 16.2 9.86985 16.2H14.2984C14.5255 16.2 14.7458 16.1227 14.9231 15.9809L15.8753 15.2191C16.0526 15.0773 16.2729 15 16.5 15H20ZM5 20C3.34315 20 2 18.6569 2 17H7.19008L8.17326 17.6742C8.67275 18.0167 9.26421 18.2 9.86985 18.2H14.2984C14.9797 18.2 15.6406 17.9682 16.1725 17.5426L16.8508 17H22C22 18.6569 20.6569 20 19 20H5ZM10.8321 12.5547C11.1384 12.0952 11.0142 11.4743 10.5547 11.168L8.80278 10L10.5547 8.83207C11.0142 8.52571 11.1384 7.90484 10.8321 7.44532C10.5257 6.98579 9.90483 6.86161 9.4453 7.16797L6.4453 9.16797C6.1671 9.35343 6 9.66566 6 10C6 10.3344 6.1671 10.6466 6.4453 10.8321L9.4453 12.8321C9.90483 13.1384 10.5257 13.0142 10.8321 12.5547ZM13.4453 11.168C12.9858 11.4743 12.8616 12.0952 13.1679 12.5547C13.4743 13.0142 14.0952 13.1384 14.5547 12.8321L17.5547 10.8321C17.8329 10.6466 18 10.3344 18 10C18 9.66566 17.8329 9.35343 17.5547 9.16797L14.5547 7.16797C14.0952 6.86161 13.4743 6.98579 13.1679 7.44532C12.8616 7.90484 12.9858 8.52571 13.4453 8.83207L15.1972 10L13.4453 11.168Z",fill:"currentColor"})]})};
|
|
13837
13837
|
|
|
13838
|
-
const d$
|
|
13838
|
+
const d$h=({color:o,title:l,titleId:e,...r})=>{const C=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:C,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5.39073C9.05751 3.78449 10.3778 2.5 11.998 2.5H14.053L14.0166 6.47252C14.0013 8.14005 15.3489 9.5 17.0165 9.5H20.998V13.5C20.998 15.1569 19.6549 16.5 17.998 16.5H16H11.998C10.3412 16.5 8.99805 15.1569 8.99805 13.5V7H9V5.39073ZM7.02273 5C7.2736 2.47334 9.40537 0.5 11.998 0.5H15.3412C16.6673 0.5 17.939 1.02678 18.8767 1.96446L21.5336 4.62132C22.4713 5.559 22.998 6.83077 22.998 8.15685V13.5C22.998 16.2614 20.7595 18.5 17.998 18.5H17.9753C17.7245 21.0267 15.5927 23 13 23H7C4.23858 23 2 20.7614 2 18V10C2 7.23858 4.23858 5 7 5H7.02273ZM6.99805 7C5.34209 7.00106 4 8.3438 4 10V18C4 19.6569 5.34315 21 7 21H13C14.4865 21 15.7205 19.9189 15.9585 18.5H11.998C9.23662 18.5 6.99805 16.2614 6.99805 13.5V7ZM16.0165 6.49084L16.0523 2.58548C16.5818 2.71468 17.0707 2.9869 17.4625 3.37868L20.1194 6.03553C20.5245 6.44065 20.8018 6.94969 20.9253 7.5H17.0165C16.4606 7.5 16.0114 7.04668 16.0165 6.49084Z",fill:"currentColor"})]})};
|
|
13839
|
+
|
|
13840
|
+
const d$g=({color:o,title:l,titleId:e,...r})=>{const i=o||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:i,"aria-labelledby":e,...r,children:[l?jsxRuntime.jsx("title",{id:e,children:l}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM7.24423 7.24408C7.56967 6.91864 8.09732 6.91864 8.42276 7.24408L12.0001 10.8214L15.5774 7.24408C15.9028 6.91864 16.4305 6.91864 16.7559 7.24408C17.0814 7.56952 17.0814 8.09717 16.7559 8.42261L13.1786 11.9999L16.7561 15.5774C17.0815 15.9028 17.0815 16.4305 16.7561 16.7559C16.4306 17.0814 15.903 17.0814 15.5775 16.7559L12.0001 13.1785L8.42261 16.7559C8.09717 17.0814 7.56952 17.0814 7.24408 16.7559C6.91864 16.4305 6.91864 15.9028 7.24408 15.5774L10.8215 11.9999L7.24423 8.42261C6.91879 8.09717 6.91879 7.56952 7.24423 7.24408Z",fill:"currentColor"})]})};
|
|
13839
13841
|
|
|
13840
13842
|
const n$7=({color:t,title:C,titleId:l,...o})=>{const r=t||token("colors.text.primary");return jsxRuntime.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:r,"aria-labelledby":l,...o,children:[C?jsxRuntime.jsx("title",{id:l,children:C}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7593 1.01286C19.8032 0.913334 20.7881 1.38715 21.7056 2.31092C22.6252 3.23091 23.0901 4.21699 22.9858 5.25765C22.8868 6.24527 22.2941 7.02988 21.7042 7.61965L15.482 13.8409C15.2599 14.0628 14.9809 14.2375 14.7308 14.3606C14.4794 14.4843 14.1756 14.5959 13.8732 14.6391L13.8718 14.6393L11.498 14.9749L11.4956 14.9753C10.8018 15.0716 10.1076 14.8858 9.61095 14.3893C9.11427 13.8927 8.92841 13.1985 9.02479 12.5046L9.02513 12.5022L9.36082 10.1288L9.36102 10.1274C9.40422 9.825 9.51588 9.52118 9.63956 9.26987C9.76267 9.01972 9.93742 8.74076 10.1594 8.51879L16.3817 2.29759C16.9777 1.70167 17.7672 1.10743 18.7593 1.01286ZM18.9491 3.00383C18.6772 3.02975 18.3409 3.19717 17.9151 3.59637C17.9339 3.63918 17.9499 3.68383 17.9629 3.73016C18.2755 4.84553 19.1495 5.72512 20.2683 6.03667C20.316 6.04995 20.3619 6.06647 20.4058 6.08592C20.7998 5.66553 20.9684 5.33079 20.9958 5.05815C21.0203 4.81373 20.9522 4.3858 20.2901 3.72391M18.9491 3.00383C19.1934 2.98053 19.6228 3.05162 20.2875 3.72124L18.9491 3.00383ZM11.5735 9.93312L16.366 5.1415C16.8887 6.22815 17.7679 7.11131 18.8597 7.63554L14.0679 12.4265C14.0501 12.4443 13.9754 12.5033 13.8479 12.566C13.7222 12.6279 13.6247 12.6542 13.5909 12.6591L13.5904 12.6592L11.2205 12.9943L11.2194 12.9944C11.1326 13.0063 11.0798 12.9967 11.0551 12.9893C11.0423 12.9854 11.0348 12.9816 11.0311 12.9794C11.0275 12.9772 11.0258 12.9757 11.025 12.9749C11.0243 12.9742 11.0227 12.9725 11.0206 12.9689C11.0184 12.9652 11.0146 12.9577 11.0108 12.945C11.0033 12.9203 10.9937 12.8676 11.0056 12.7808L11.0058 12.7798L11.3409 10.4103L11.341 10.4099C11.3458 10.3763 11.3721 10.2788 11.434 10.153C11.4967 10.0255 11.5558 9.95088 11.5735 9.93312ZM3 6C3 4.34315 4.34315 3 6 3H12C12.5523 3 13 2.55228 13 2C13 1.44772 12.5523 1 12 1H6C3.23858 1 1 3.23858 1 6V18C1 20.7614 3.23858 23 6 23H18C20.7614 23 23 20.7614 23 18V12C23 11.4477 22.5523 11 22 11C21.4477 11 21 11.4477 21 12V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6Z",fill:"currentColor"})]})};
|
|
13841
13843
|
|
|
@@ -13873,7 +13875,7 @@ const d$7=({color:o,title:t,titleId:e,...r})=>{const i=o||token("colors.text.pri
|
|
|
13873
13875
|
|
|
13874
13876
|
const s$1=({email:a})=>{const r=a.split("@");return jsxRuntime.jsxs("span",{className:css({overflowWrap:"break-word",wordBreak:"break-word",fontWeight:600}),children:[r[0],jsxRuntime.jsx("wbr",{}),"@",r[1]]})};s$1.displayName="EmailWbr";
|
|
13875
13877
|
|
|
13876
|
-
const u$3=React.forwardRef((h,g)=>{const{address:r,onCopy:e,size:m="md",icon:n,fontColor:s="text.tertiary",fontWeight:a="normal",fontFamily:p="inherit"}=h,[o,l]=React.useState(false),c=`${r.slice(0,6)}...${r?.slice(-4)}`,i=m==="sm"?16:20,x=React.useCallback(()=>{e&&e(r),l(true);},[r]);return React.useEffect(()=>{if(o){const y=setTimeout(()=>{l(false);},1500);return ()=>clearTimeout(y)}},[o]),e?jsxRuntime.jsx(a$4,{className:css({fontSize:m,color:o?"positive.base":s,fontWeight:o?"medium":a,rounded:"button",fontVariant:"no-contextual",transition:"none",fontFamily:p}),onPress:x,ref:g,children:jsxRuntime.jsxs(HStack,{gap:2,children:[o?n?"Copied":"Copied!":c,n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:o?jsxRuntime.jsx(c$9,{width:i,height:i,color:token("colors.positive.base")}):jsxRuntime.jsx(d$
|
|
13878
|
+
const u$3=React.forwardRef((h,g)=>{const{address:r,onCopy:e,size:m="md",icon:n,fontColor:s="text.tertiary",fontWeight:a="normal",fontFamily:p="inherit"}=h,[o,l]=React.useState(false),c=`${r.slice(0,6)}...${r?.slice(-4)}`,i=m==="sm"?16:20,x=React.useCallback(()=>{e&&e(r),l(true);},[r]);return React.useEffect(()=>{if(o){const y=setTimeout(()=>{l(false);},1500);return ()=>clearTimeout(y)}},[o]),e?jsxRuntime.jsx(a$4,{className:css({fontSize:m,color:o?"positive.base":s,fontWeight:o?"medium":a,rounded:"button",fontVariant:"no-contextual",transition:"none",fontFamily:p}),onPress:x,ref:g,children:jsxRuntime.jsxs(HStack,{gap:2,children:[o?n?"Copied":"Copied!":c,n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:o?jsxRuntime.jsx(c$9,{width:i,height:i,color:token("colors.positive.base")}):jsxRuntime.jsx(d$h,{width:i,height:i,color:token("colors.text.tertiary")})})]})}):jsxRuntime.jsx("span",{className:css({fontSize:m,color:s,fontWeight:a,fontVariant:"no-contextual",fontFamily:p}),children:c})});u$3.displayName="WalletAddress";
|
|
13877
13879
|
|
|
13878
13880
|
var _$3=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54",{default:"(..) .... ....","/^11/":"(..) .... ....","/^15/":"(..) ... ....","/^(2|3|4|5)/":"(.) .... ....","/^9/":"(.) .... ....."},0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["C\xF4te d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["R\xE9union","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 and Pr\xEDncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]];var xe="react-international-phone-",se$1=(...t)=>t.filter(e=>!!e).join(" ").trim(),Se=(...t)=>se$1(...t).split(" ").map(e=>`${xe}${e}`).join(" "),P$3=({addPrefix:t,rawClassNames:e})=>se$1(Se(...t),...e);var le=({value:t,mask:e,maskSymbol:a,offset:s=0,trimNonMaskCharsLeftover:r=false})=>{if(t.length<s)return t;let n=t.slice(0,s),c=t.slice(s),i=n,o=0;for(let l of e.split("")){if(o>=c.length){if(!r&&l!==a){i+=l;continue}break}l===a?(i+=c[o],o+=1):i+=l;}return i};var F$2=t=>t?/^\d+$/.test(t):false;var z$1=t=>t.replace(/\D/g,"");var ue=(t,e)=>{let a=t.style.display;a!=="block"&&(t.style.display="block");let s=t.getBoundingClientRect(),r=e.getBoundingClientRect(),n=r.top-s.top,c=s.bottom-r.bottom;n>=0&&c>=0||(Math.abs(n)<Math.abs(c)?t.scrollTop+=n:t.scrollTop-=c),t.style.display=a;};var de=()=>typeof window>"u"?false:window.navigator.userAgent.toLowerCase().includes("macintosh");var pe=(t,e)=>{let a=e.disableDialCodeAndPrefix?false:e.forceDialCode,s=e.disableDialCodeAndPrefix?false:e.insertDialCodeOnEmpty,r=t,n=l=>e.trimNonDigitsEnd?l.trim():l;if(!r)return s&&!r.length||a?n(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`):n(r);if(r=z$1(r),r===e.dialCode&&!e.disableDialCodeAndPrefix)return n(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(e.dialCode.startsWith(r)&&!e.disableDialCodeAndPrefix)return n(a?`${e.prefix}${e.dialCode}${e.charAfterDialCode}`:`${e.prefix}${r}`);if(!r.startsWith(e.dialCode)&&!e.disableDialCodeAndPrefix){if(a)return n(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(r.length<e.dialCode.length)return n(`${e.prefix}${r}`)}let c=()=>{let l=e.dialCode.length,d=r.slice(0,l),m=r.slice(l);return {phoneLeftSide:d,phoneRightSide:m}},{phoneLeftSide:i,phoneRightSide:o}=c();return i=`${e.prefix}${i}${e.charAfterDialCode}`,o=le({value:o,mask:e.mask,maskSymbol:e.maskChar,trimNonMaskCharsLeftover:e.trimNonDigitsEnd||e.disableDialCodeAndPrefix&&o.length===0}),e.disableDialCodeAndPrefix&&(i=""),n(`${i}${o}`)};var me=({phoneBeforeInput:t,phoneAfterInput:e,phoneAfterFormatted:a,cursorPositionAfterInput:s,leftOffset:r=0,deletion:n})=>{if(s<r)return r;if(!t)return a.length;let c=null;for(let d=s-1;d>=0;d-=1)if(F$2(e[d])){c=d;break}if(c===null){for(let d=0;d<e.length;d+=1)if(F$2(a[d]))return d;return e.length}let i=0;for(let d=0;d<c;d+=1)F$2(e[d])&&(i+=1);let o=0,l=0;for(let d=0;d<a.length&&(o+=1,F$2(a[d])&&(l+=1),!(l>=i+1));d+=1);if(n!=="backward")for(;!F$2(a[o])&&o<a.length;)o+=1;return o};var O$2=({phone:t,prefix:e})=>t?`${e}${z$1(t)}`:"";function W$4({value:t,country:e,insertDialCodeOnEmpty:a,trimNonDigitsEnd:s,countries:r,prefix:n,charAfterDialCode:c,forceDialCode:i,disableDialCodeAndPrefix:o,defaultMask:l,countryGuessingEnabled:d,disableFormatting:m}){let f=t;o&&(f=f.startsWith(`${n}`)?f:`${n}${e.dialCode}${f}`);let g=d?X$2({phone:f,countries:r,currentCountryIso2:e?.iso2}):void 0,S=g?.country??e,p=pe(f,{prefix:n,mask:Q$1({phone:f,country:S,defaultMask:l,disableFormatting:m}),maskChar:J$2,dialCode:S.dialCode,trimNonDigitsEnd:s,charAfterDialCode:c,forceDialCode:i,insertDialCodeOnEmpty:a,disableDialCodeAndPrefix:o}),C=d&&!g?.fullDialCodeMatch?e:S;return {phone:O$2({phone:o?`${C.dialCode}${p}`:p,prefix:n}),inputValue:p,country:C}}var Ie=t=>{if(t?.toLocaleLowerCase().includes("delete")??false)return t?.toLocaleLowerCase().includes("forward")?"forward":"backward"},fe=(t,{country:e,insertDialCodeOnEmpty:a,phoneBeforeInput:s,prefix:r,charAfterDialCode:n,forceDialCode:c,disableDialCodeAndPrefix:i,countryGuessingEnabled:o,defaultMask:l,disableFormatting:d,countries:m})=>{let f=t.nativeEvent,g=f.inputType,S=Ie(g),p=!!g?.startsWith("insertFrom"),C=g==="insertText",D=f?.data||void 0,I=t.target.value,A=t.target.selectionStart??0;if(g?.includes("history"))return {inputValue:s,phone:O$2({phone:s,prefix:r}),cursorPosition:s.length,country:e};if(C&&!F$2(D)&&I!==r)return {inputValue:s,phone:O$2({phone:i?`${e.dialCode}${s}`:s,prefix:r}),cursorPosition:A-(D?.length??0),country:e};if(c&&!I.startsWith(`${r}${e.dialCode}`)&&!p){let b=I?s:`${r}${e.dialCode}${n}`;return {inputValue:b,phone:O$2({phone:b,prefix:r}),cursorPosition:r.length+e.dialCode.length+n.length,country:e}}let{phone:N,inputValue:u,country:h}=W$4({value:I,country:e,trimNonDigitsEnd:S==="backward",insertDialCodeOnEmpty:a,countryGuessingEnabled:o,countries:m,prefix:r,charAfterDialCode:n,forceDialCode:c,disableDialCodeAndPrefix:i,disableFormatting:d,defaultMask:l}),y=me({cursorPositionAfterInput:A,phoneBeforeInput:s,phoneAfterInput:I,phoneAfterFormatted:u,leftOffset:c?r.length+e.dialCode.length+n.length:0,deletion:S});return {phone:N,inputValue:u,cursorPosition:y,country:h}};var Ce=(t,e)=>{let a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return false;for(let r of a)if(t[r]!==e[r])return false;return true};var ye=()=>{let t=React.useRef(),e=React.useRef(Date.now());return {check:()=>{let s=Date.now(),r=t.current?s-e.current:void 0;return t.current=e.current,e.current=s,r}}};var ke={size:20,overrideLastItemDebounceMS:-1};function ge(t,e){let{size:a,overrideLastItemDebounceMS:s,onChange:r}={...ke,...e},[n,c]=React.useState(t),[i,o]=React.useState([n]),[l,d]=React.useState(0),m=ye();return [n,(p,C)=>{if(typeof p=="object"&&typeof n=="object"&&Ce(p,n)||p===n)return;let k=s>0,D=m.check(),I=k&&D!==void 0?D>s:true;if(C?.overrideLastItem!==void 0?C.overrideLastItem:!I)o(N=>[...N.slice(0,l),p]);else {let N=i.length>=a;o(u=>[...u.slice(N?1:0,l+1),p]),N||d(u=>u+1);}c(p),r?.(p);},()=>{if(l<=0)return {success:false};let p=i[l-1];return c(p),d(C=>C-1),r?.(p),{success:true,value:p}},()=>{if(l+1>=i.length)return {success:false};let p=i[l+1];return c(p),d(C=>C+1),r?.(p),{success:true,value:p}}]}var J$2=".",E$2={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:false,disableDialCodePrefill:false,forceDialCode:false,disableDialCodeAndPrefix:false,disableFormatting:false,countries:_$3},ee=({defaultCountry:t=E$2.defaultCountry,value:e=E$2.value,countries:a=E$2.countries,prefix:s=E$2.prefix,defaultMask:r=E$2.defaultMask,charAfterDialCode:n=E$2.charAfterDialCode,historySaveDebounceMS:c=E$2.historySaveDebounceMS,disableCountryGuess:i=E$2.disableCountryGuess,disableDialCodePrefill:o=E$2.disableDialCodePrefill,forceDialCode:l=E$2.forceDialCode,disableDialCodeAndPrefix:d=E$2.disableDialCodeAndPrefix,disableFormatting:m=E$2.disableFormatting,onChange:f,inputRef:g})=>{let C={countries:a,prefix:s,charAfterDialCode:n,forceDialCode:d?false:l,disableDialCodeAndPrefix:d,defaultMask:r,countryGuessingEnabled:!i,disableFormatting:m},k=React.useRef(null),D=g||k,I=w=>{Promise.resolve().then(()=>{typeof window>"u"||D.current!==document?.activeElement||D.current?.setSelectionRange(w,w);});},[{phone:A,inputValue:N,country:u},h,y,b]=ge(()=>{let w=$$4({value:t,field:"iso2",countries:a});w||console.error(`[react-international-phone]: can not find a country with "${t}" iso2 code`);let T=w||$$4({value:"us",field:"iso2",countries:a}),{phone:x,inputValue:L,country:U}=W$4({value:e,country:T,insertDialCodeOnEmpty:!o,...C});return I(L.length),{phone:x,inputValue:L,country:U.iso2}},{overrideLastItemDebounceMS:c,onChange:({inputValue:w,phone:T,country:x})=>{if(!f)return;let L=v(x);f({phone:T,inputValue:w,country:L});}}),v=React.useCallback(w=>$$4({value:w,field:"iso2",countries:a}),[a]),R=React.useMemo(()=>v(u),[u,v]);React.useEffect(()=>{let w=D.current;if(!w)return;let T=x=>{if(!x.key)return;let L=x.ctrlKey,U=x.metaKey,ve=x.shiftKey;if(x.key.toLowerCase()==="z"){if(de()){if(!U)return}else if(!L)return;ve?b():y();}};return w.addEventListener("keydown",T),()=>{w.removeEventListener("keydown",T);}},[D,y,b]);let V=w=>{w.preventDefault();let{phone:T,inputValue:x,country:L,cursorPosition:U}=fe(w,{country:R,phoneBeforeInput:N,insertDialCodeOnEmpty:false,...C});return h({inputValue:x,phone:T,country:L.iso2}),I(U),e},K=(w,T={focusOnInput:false})=>{let x=$$4({value:w,field:"iso2",countries:a});if(!x){console.error(`[react-international-phone]: can not find a country with "${w}" iso2 code`);return}let L=d?"":`${s}${x.dialCode}${n}`;h({inputValue:L,phone:`${s}${x.dialCode}`,country:x.iso2}),T.focusOnInput&&Promise.resolve().then(()=>{D.current?.focus();});},[G,j]=React.useState(false);return React.useEffect(()=>{if(!G){j(true),e!==A&&f?.({inputValue:N,phone:A,country:R});return}if(e===A)return;let{phone:w,inputValue:T,country:x}=W$4({value:e,country:R,insertDialCodeOnEmpty:!o,...C});h({phone:w,inputValue:T,country:x.iso2});},[e]),{phone:A,inputValue:N,country:R,setCountry:K,handlePhoneValueChange:V,inputRef:D}};var Q$1=({phone:t,country:e,defaultMask:a="............",disableFormatting:s=false})=>{let r=e.format,n=i=>s?i.replace(new RegExp(`[^${J$2}]`,"g"),""):i;if(!r)return n(a);if(typeof r=="string")return n(r);if(!r.default)return console.error(`[react-international-phone]: default mask for ${e.iso2} is not provided`),n(a);let c=Object.keys(r).find(i=>{if(i==="default")return false;if(!(i.charAt(0)==="/"&&i.charAt(i.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${i}" for ${e.iso2} is not valid`),false;let l=new RegExp(i.substring(1,i.length-1)),d=t.replace(e.dialCode,"");return l.test(z$1(d))});return n(c?r[c]:r.default)};var M$5=t=>{let[e,a,s,r,n,c]=t;return {name:e,iso2:a,dialCode:s,format:r,priority:n,areaCodes:c}};var Ae=t=>`Field "${t}" is not supported`,$$4=({field:t,value:e,countries:a=_$3})=>{if(["priority"].includes(t))throw new Error(Ae(t));let s=a.find(r=>{let n=M$5(r);return e===n[t]});if(s)return M$5(s)};var X$2=({phone:t,countries:e=_$3,currentCountryIso2:a})=>{let s={country:void 0,fullDialCodeMatch:false};if(!t)return s;let r=z$1(t);if(!r)return s;let n=s,c=({country:i,fullDialCodeMatch:o})=>{let l=i.dialCode===n.country?.dialCode,d=(i.priority??0)<(n.country?.priority??0);(!l||d)&&(n={country:i,fullDialCodeMatch:o});};for(let i of e){let o=M$5(i),{dialCode:l,areaCodes:d}=o;if(r.startsWith(l)){let m=n.country?Number(l)>=Number(n.country.dialCode):true;if(d){let f=r.substring(l.length);for(let g of d)if(f.startsWith(g))return {country:o,fullDialCodeMatch:true}}(m||l===r||!n.fullDialCodeMatch)&&c({country:o,fullDialCodeMatch:true});}n.fullDialCodeMatch||r.length<l.length&&l.startsWith(r)&&(!n.country||Number(l)<=Number(n.country.dialCode))&&c({country:o,fullDialCodeMatch:false});}if(a){let i=$$4({value:a,field:"iso2",countries:e});if(!i)return n;let l=i?(m=>{if(!m?.areaCodes)return false;let f=r.substring(m.dialCode.length);return m.areaCodes.some(g=>g.startsWith(f))})(i):false;!!n&&n.country?.dialCode===i.dialCode&&n.country!==i&&n.fullDialCodeMatch&&(!i.areaCodes||l)&&(n={country:i,fullDialCodeMatch:true});}return n};var Te=(t,e)=>{let a=parseInt(t,16);return Number(a+e).toString(16)},Ee="abcdefghijklmnopqrstuvwxyz",Le="1f1e6",Pe=Ee.split("").reduce((t,e,a)=>({...t,[e]:Te(Le,a)}),{}),$e=t=>[Pe[t[0]],Pe[t[1]]].join("-"),q$3=({iso2:t,size:e,src:a,protocol:s="https",disableLazyLoading:r,className:n,style:c,...i})=>{if(!t)return React.createElement("img",{className:P$3({addPrefix:["flag-emoji"],rawClassNames:[n]}),width:e,height:e,...i});let o=()=>{if(a)return a;let l=$e(t);return `${s}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${l}.svg`};return React.createElement("img",{className:P$3({addPrefix:["flag-emoji"],rawClassNames:[n]}),src:o(),width:e,height:e,draggable:false,"data-country":t,loading:r?void 0:"lazy",style:{width:e,height:e,...c},alt:"",...i})};var He=1e3,ne=({show:t,dialCodePrefix:e="+",selectedCountry:a,countries:s=_$3,preferredCountries:r=[],flags:n,onSelect:c,onClose:i,...o})=>{let l=React.useRef(null),d=React.useRef(),m=React.useMemo(()=>{if(!r||!r.length)return s;let u=[],h=[...s];for(let y of r){let b=h.findIndex(v=>M$5(v).iso2===y);if(b!==-1){let v=h.splice(b,1)[0];u.push(v);}}return u.concat(h)},[s,r]),f=React.useRef({updatedAt:void 0,value:""}),g=u=>{let h=f.current.updatedAt&&new Date().getTime()-f.current.updatedAt.getTime()>He;f.current={value:h?u:`${f.current.value}${u}`,updatedAt:new Date};let y=m.findIndex(b=>M$5(b).name.toLowerCase().startsWith(f.current.value));y!==-1&&C(y);},S=React.useCallback(u=>m.findIndex(h=>M$5(h).iso2===u),[m]),[p,C]=React.useState(S(a)),k=()=>{d.current!==a&&C(S(a));},D=React.useCallback(u=>{C(S(u.iso2)),c?.(u);},[c,S]),I=u=>{let h=m.length-1,y=b=>u==="prev"?b-1:u==="next"?b+1:u==="last"?h:0;C(b=>{let v=y(b);return v<0?0:v>h?h:v});},A=u=>{if(u.stopPropagation(),u.key==="Enter"){u.preventDefault();let h=M$5(m[p]);D(h);return}if(u.key==="Escape"){i?.();return}if(u.key==="ArrowUp"){u.preventDefault(),I("prev");return}if(u.key==="ArrowDown"){u.preventDefault(),I("next");return}if(u.key==="PageUp"){u.preventDefault(),I("first");return}if(u.key==="PageDown"){u.preventDefault(),I("last");return}u.key===" "&&u.preventDefault(),u.key.length===1&&!u.altKey&&!u.ctrlKey&&!u.metaKey&&g(u.key.toLocaleLowerCase());},N=React.useCallback(()=>{if(!l.current||p===void 0)return;let u=M$5(m[p]).iso2;if(u===d.current)return;let h=l.current.querySelector(`[data-country="${u}"]`);h&&(ue(l.current,h),d.current=u);},[p,m]);return React.useEffect(()=>{N();},[p,N]),React.useEffect(()=>{l.current&&(t?l.current.focus():k());},[t]),React.useEffect(()=>{k();},[a]),React.createElement("ul",{ref:l,role:"listbox",className:P$3({addPrefix:["country-selector-dropdown"],rawClassNames:[o.className]}),style:{display:t?"block":"none",...o.style},onKeyDown:A,onBlur:i,tabIndex:-1,"aria-activedescendant":`react-international-phone__${M$5(m[p]).iso2}-option`},m.map((u,h)=>{let y=M$5(u),b=y.iso2===a,v=h===p,R=r.includes(y.iso2),V=h===r.length-1,K=n?.find(G=>G.iso2===y.iso2);return React.createElement(React.Fragment,{key:y.iso2},React.createElement("li",{"data-country":y.iso2,role:"option","aria-selected":b,"aria-label":`${y.name} ${e}${y.dialCode}`,id:`react-international-phone__${y.iso2}-option`,className:P$3({addPrefix:["country-selector-dropdown__list-item",R&&"country-selector-dropdown__list-item--preferred",b&&"country-selector-dropdown__list-item--selected",v&&"country-selector-dropdown__list-item--focused"],rawClassNames:[o.listItemClassName,R&&o.listItemPreferredClassName,b&&o.listItemSelectedClassName,v&&o.listItemFocusedClassName]}),onClick:()=>D(y),style:o.listItemStyle,title:y.name},React.createElement(q$3,{iso2:y.iso2,src:K?.src,className:P$3({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[o.listItemFlagClassName]}),style:o.listItemFlagStyle}),React.createElement("span",{className:P$3({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[o.listItemCountryNameClassName]}),style:o.listItemCountryNameStyle},y.name),React.createElement("span",{className:P$3({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[o.listItemDialCodeClassName]}),style:o.listItemDialCodeStyle},e,y.dialCode)),V?React.createElement("hr",{className:P$3({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[o.preferredListDividerClassName]}),style:o.preferredListDividerStyle}):null)}))};var ae=({selectedCountry:t,onSelect:e,disabled:a,hideDropdown:s,countries:r=_$3,preferredCountries:n=[],flags:c,renderButtonWrapper:i,...o})=>{let[l,d]=React.useState(false),m=React.useMemo(()=>{if(t)return $$4({value:t,field:"iso2",countries:r})},[r,t]),f=React.useRef(null),g=p=>{p.key&&["ArrowUp","ArrowDown"].includes(p.key)&&(p.preventDefault(),d(true));},S=()=>{let p={title:m?.name,onClick:()=>d(k=>!k),onMouseDown:k=>k.preventDefault(),onKeyDown:g,disabled:s||a,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":l},C=React.createElement("div",{className:P$3({addPrefix:["country-selector-button__button-content"],rawClassNames:[o.buttonContentWrapperClassName]}),style:o.buttonContentWrapperStyle},React.createElement(q$3,{iso2:t,src:c?.find(k=>k.iso2===t)?.src,className:P$3({addPrefix:["country-selector-button__flag-emoji",a&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[o.flagClassName]}),style:{visibility:t?"visible":"hidden",...o.flagStyle}}),!s&&React.createElement("div",{className:P$3({addPrefix:["country-selector-button__dropdown-arrow",a&&"country-selector-button__dropdown-arrow--disabled",l&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[o.dropdownArrowClassName]}),style:o.dropdownArrowStyle}));return i?i({children:C,rootProps:p}):React.createElement("button",{...p,type:"button",className:P$3({addPrefix:["country-selector-button",l&&"country-selector-button--active",a&&"country-selector-button--disabled",s&&"country-selector-button--hide-dropdown"],rawClassNames:[o.buttonClassName]}),"data-country":t,style:o.buttonStyle},C)};return React.createElement("div",{className:P$3({addPrefix:["country-selector"],rawClassNames:[o.className]}),style:o.style,ref:f},S(),React.createElement(ne,{show:l,countries:r,preferredCountries:n,flags:c,onSelect:p=>{d(false),e?.(p);},selectedCountry:t,onClose:()=>{d(false);},...o.dropdownStyleProps}))};var ie=({dialCode:t,prefix:e,disabled:a,style:s,className:r})=>React.createElement("div",{className:P$3({addPrefix:["dial-code-preview",a&&"dial-code-preview--disabled"],rawClassNames:[r]}),style:s},`${e}${t}`);React.forwardRef(({value:t,onChange:e,countries:a=_$3,preferredCountries:s=[],hideDropdown:r,showDisabledDialCodeAndPrefix:n,disableFocusAfterCountrySelect:c,flags:i,style:o,className:l,inputStyle:d,inputClassName:m,countrySelectorStyleProps:f,dialCodePreviewStyleProps:g,inputProps:S,placeholder:p,disabled:C,name:k,onFocus:D,onBlur:I,required:A,autoFocus:N,...u},h)=>{let{phone:y,inputValue:b,inputRef:v,country:R,setCountry:V,handlePhoneValueChange:K}=ee({value:t,countries:a,...u,onChange:j=>{e?.(j.phone,{country:j.country,inputValue:j.inputValue});}}),G=u.disableDialCodeAndPrefix&&n&&R?.dialCode;return React.useImperativeHandle(h,()=>v.current?Object.assign(v.current,{setCountry:V,state:{phone:y,inputValue:b,country:R}}):null,[v,V,y,b,R]),React.createElement("div",{ref:h,className:P$3({addPrefix:["input-container"],rawClassNames:[l]}),style:o},React.createElement(ae,{onSelect:j=>V(j.iso2,{focusOnInput:!c}),flags:i,selectedCountry:R.iso2,countries:a,preferredCountries:s,disabled:C,hideDropdown:r,...f}),G&&React.createElement(ie,{dialCode:R.dialCode,prefix:u.prefix??"+",disabled:C,...g}),React.createElement("input",{onChange:K,value:b,type:"tel",ref:v,className:P$3({addPrefix:["input",C&&"input--disabled"],rawClassNames:[m]}),placeholder:p,disabled:C,style:d,name:k,onFocus:D,onBlur:I,autoFocus:N,required:A,...S}))});
|
|
13879
13881
|
|
|
@@ -13887,19 +13889,19 @@ const s="2.625rem",d$6=D$3(({children:e})=>jsxRuntime.jsx(u$4,{children:e})),h$4
|
|
|
13887
13889
|
|
|
13888
13890
|
const i$1=D$3(S$3.Icon),j$2=({children:l,cancelLabel:t,confirmLabel:s,title:m,message:a,onCancel:f=()=>{},onConfirm:p=()=>{},...d})=>$$5(l,h=>jsxRuntime.jsxs(S$3,{...d,children:[jsxRuntime.jsx(S$3.Icon,{children:h.get(i$1)}),jsxRuntime.jsxs(S$3.Content,{children:[jsxRuntime.jsx(M$8.H3,{styles:{textAlign:"center"},children:m}),jsxRuntime.jsx(M$8,{size:"md",children:a}),jsxRuntime.jsxs(HStack,{className:css({pt:6}),children:[jsxRuntime.jsx(Q$2,{onPress:p,label:s}),t&&jsxRuntime.jsx(Q$2,{onPress:f,label:t})]})]}),jsxRuntime.jsx(S$3.Footer,{})]}));Object.assign(j$2,{Icon:i$1});
|
|
13889
13891
|
|
|
13890
|
-
const p=D$3(({children:n,...r})=>jsxRuntime.jsx(Center,{children:React.Children.map(n,t=>React.cloneElement(t,r))})),f$4=D$3(({children:n,...r})=>jsxRuntime.jsx(Center,{children:React.Children.map(n,t=>React.cloneElement(t,r))})),g$2=({children:n,detailTitle:r,detailMessage:t,title:u,message:x,...b})=>$$5(n,c=>{const j=c.get(p),v=c.get(f$4);return jsxRuntime.jsxs(S$3,{...b,children:[jsxRuntime.jsx(S$3.Icon,{children:j||jsxRuntime.jsx(d$
|
|
13892
|
+
const p=D$3(({children:n,...r})=>jsxRuntime.jsx(Center,{children:React.Children.map(n,t=>React.cloneElement(t,r))})),f$4=D$3(({children:n,...r})=>jsxRuntime.jsx(Center,{children:React.Children.map(n,t=>React.cloneElement(t,r))})),g$2=({children:n,detailTitle:r,detailMessage:t,title:u,message:x,...b})=>$$5(n,c=>{const j=c.get(p),v=c.get(f$4);return jsxRuntime.jsxs(S$3,{...b,children:[jsxRuntime.jsx(S$3.Icon,{children:j||jsxRuntime.jsx(d$i,{})}),jsxRuntime.jsxs(S$3.Content,{children:[jsxRuntime.jsx(M$8.H3,{styles:{textAlign:"center"},children:u}),jsxRuntime.jsx(M$8,{size:"md",styles:{textAlign:"center"},children:x}),t&&jsxRuntime.jsxs("div",{className:css({background:"negative.lightest",borderRadius:"0.5rem",my:4,p:4,width:"full"}),children:[r&&jsxRuntime.jsx(M$8,{variant:"error",children:jsxRuntime.jsx("b",{className:css({textTransform:"uppercase"}),children:r})}),jsxRuntime.jsx(M$8,{variant:"error",children:t})]}),v]}),jsxRuntime.jsx(S$3.Footer,{})]})});Object.assign(g$2,{Icon:p,Button:f$4});
|
|
13891
13893
|
|
|
13892
|
-
const S$2=D$3(({children:e})=>React.Children.map(e,t=>jsxRuntime.jsx(Q$2,{expand:true,...t.props}))),H$3=D$3(Q$2),W$2=D$3(Q$2),k$3=D$3(({children:e})=>jsxRuntime.jsxs(U$1,{textStyle:"subtle",variant:"text",children:[jsxRuntime.jsx(U$1.TrailingIcon,{children:jsxRuntime.jsx(d$
|
|
13894
|
+
const S$2=D$3(({children:e})=>React.Children.map(e,t=>jsxRuntime.jsx(Q$2,{expand:true,...t.props}))),H$3=D$3(Q$2),W$2=D$3(Q$2),k$3=D$3(({children:e})=>jsxRuntime.jsxs(U$1,{textStyle:"subtle",variant:"text",children:[jsxRuntime.jsx(U$1.TrailingIcon,{children:jsxRuntime.jsx(d$m,{})}),jsxRuntime.jsx(U$1.Content,{children:e})]})),D$1=D$3(({branding:e,title:t})=>t?jsxRuntime.jsx(M$8,{size:"sm",fontColor:"text.secondary",children:t}):jsxRuntime.jsx(d$a,{color:token(e==="light"?"colors.text.primary":"colors.neutral.primary")})),M$3=D$3(({children:e,height:t="auto",flexGrow:m=0})=>jsxRuntime.jsx(VStack,{w:"full",justify:"center",height:t,flexGrow:m,children:e})),T$2=D$3(T$4),F$1=D$3(B$3),G$1=D$3(({children:e})=>jsxRuntime.jsx(Center,{pt:3,w:"full",children:e})),I$1=D$3(({children:e,domain:t,name:m,logoUrl:a})=>jsxRuntime.jsxs(HStack,{borderBottomColor:"neutral.primary",borderBottomWidth:"1px",p:3,width:"full",children:[a?jsxRuntime.jsx("img",{src:a,alt:m,width:24,height:24}):jsxRuntime.jsx(d$a,{color:token("colors.brand.base"),height:24,width:24}),jsxRuntime.jsx(M$8,{size:"sm",fontWeight:"semibold",children:m}),t&&jsxRuntime.jsx(M$8,{size:"sm",fontColor:"text.tertiary",children:t}),e]})),N$2=({actionDirection:e="row",address:t,children:m,onBack:a,onCancel:c,hideHeader:A=false,...L})=>$$5(m,o=>{const p=o.getProps(H$3),s=o.getProps(W$2),w=o.getProps(F$1),h=o.getProps(T$2),C=o.get(S$2),b=o.get(k$3),J=o.get(D$1),f=e==="row";return jsxRuntime.jsxs(i$6,{...L,fullscreen:true,paddingType:"none",gap:0,children:[!A&&jsxRuntime.jsxs(VStack,{gap:0,width:"full",children:[jsxRuntime.jsxs(HStack,{borderBottomColor:"neutral.primary",borderBottomWidth:"1px",justifyContent:"space-between",p:3,width:"full",children:[a&&jsxRuntime.jsx(Q$2,{onPress:a,size:"md",textStyle:"neutral",variant:"text",children:jsxRuntime.jsx(Q$2.LeadingIcon,{children:jsxRuntime.jsx(s$5,{})})}),c&&jsxRuntime.jsx(Q$2,{onPress:c,label:"Cancel",size:"sm",textStyle:"neutral",variant:"text"}),!(a||c)&&jsxRuntime.jsx(Box,{w:6}),J,t||b||h?jsxRuntime.jsxs(HStack,{children:[t&&jsxRuntime.jsx(u$3,{address:t}),b,h&&jsxRuntime.jsx(T$4,{...h})]}):jsxRuntime.jsx(Box,{w:6})]}),o.get(I$1)]}),jsxRuntime.jsxs(VStack,{h:"full",w:"full",justify:"space-between",p:6,maxW:393,children:[o.get(M$3),jsxRuntime.jsxs(VStack,{w:"full",gap:3,children:[o.get(G$1),(p||s)&&jsxRuntime.jsxs(Flex,{direction:f?"row":"column-reverse",gap:f?4:3,width:"full",children:[p&&jsxRuntime.jsx(Q$2,{expand:true,label:"Cancel",variant:"neutral",...p}),s&&jsxRuntime.jsx(Q$2,{expand:true,label:"Confirm",variant:"inverse",...s})]}),C&&jsxRuntime.jsx(Flex,{direction:e,gap:f?4:3,width:"full",children:C})]})]}),w&&jsxRuntime.jsx(B$3,{...w})]})});Object.assign(N$2,{Actions:S$2,Cancel:H$3,Confirm:W$2,Content:M$3,Menu:T$2,Drawer:F$1,Footer:G$1,Header:I$1,Info:k$3,Title:D$1});
|
|
13893
13895
|
|
|
13894
|
-
const y$6={Home:s$3,Gallery:d$d,Activity:s$4,Settings:d$8};var o;(function(t){t.Home="home",t.Gallery="gallery",t.Activity="activity",t.Settings="settings";})(o||(o={}));const S$1=({active:t,children:i,label:e,onPress:n})=>jsxRuntime.jsx(Box,{pointerEvents:t===e?"none":"initial",children:jsxRuntime.jsx(Q$2,{variant:"text",onPress:n,children:jsxRuntime.jsx(Q$2.LeadingIcon,{className:css({color:t===e?"text.primary":"text.tertiary",_groupHover:{color:t===e?"text.primary":"text.secondary"}}),children:i})})}),W$1=(t,i)=>t[i],$$2=({active:t=o.Home,disabled:i=[],...e})=>jsxRuntime.jsx(Center,{bottom:0,pos:"fixed",h:"6.25rem",w:"full",style:{background:`linear-gradient(180deg, transparent 0%, ${token("colors.surface.primary")} 100%)`},children:jsxRuntime.jsx(HStack,{bg:"text.primary/6",borderColor:"text.primary/10",borderWidth:"medium",borderStyle:"solid",borderRadius:52,backdropFilter:"blur(24px)",p:1.5,children:Object.keys(o).map(n=>{var m;const a=o[n],l=(m=i.find(v=>v.type===a))===null||m===void 0?void 0:m.label,p=y$6[n],c=W$1(e,`on${n}`);return c?l?jsxRuntime.jsx(d$
|
|
13896
|
+
const y$6={Home:s$3,Gallery:d$d,Activity:s$4,Settings:d$8};var o;(function(t){t.Home="home",t.Gallery="gallery",t.Activity="activity",t.Settings="settings";})(o||(o={}));const S$1=({active:t,children:i,label:e,onPress:n})=>jsxRuntime.jsx(Box,{pointerEvents:t===e?"none":"initial",children:jsxRuntime.jsx(Q$2,{variant:"text",onPress:n,children:jsxRuntime.jsx(Q$2.LeadingIcon,{className:css({color:t===e?"text.primary":"text.tertiary",_groupHover:{color:t===e?"text.primary":"text.secondary"}}),children:i})})}),W$1=(t,i)=>t[i],$$2=({active:t=o.Home,disabled:i=[],...e})=>jsxRuntime.jsx(Center,{bottom:0,pos:"fixed",h:"6.25rem",w:"full",style:{background:`linear-gradient(180deg, transparent 0%, ${token("colors.surface.primary")} 100%)`},children:jsxRuntime.jsx(HStack,{bg:"text.primary/6",borderColor:"text.primary/10",borderWidth:"medium",borderStyle:"solid",borderRadius:52,backdropFilter:"blur(24px)",p:1.5,children:Object.keys(o).map(n=>{var m;const a=o[n],l=(m=i.find(v=>v.type===a))===null||m===void 0?void 0:m.label,p=y$6[n],c=W$1(e,`on${n}`);return c?l?jsxRuntime.jsx(d$k,{content:l,width:"max-content",children:jsxRuntime.jsx(Box,{border:"thin solid transparent",opacity:.3,p:1.5,children:jsxRuntime.jsx(p,{})})},a):jsxRuntime.jsx(S$1,{active:t,label:a,onPress:c,children:jsxRuntime.jsx(p,{})},a):null})})});
|
|
13895
13897
|
|
|
13896
13898
|
const _$2=({avatarUrl:i,email:o,name:e,logoutLabel:d="Log out",onReceive:a,onLogout:f})=>{const[h,s]=React.useState(false);React.useEffect(()=>{s(false);},[i]);const c=()=>jsxRuntime.jsxs(U$1,{iconSize:28,placement:"bottom right",variant:"text",children:[jsxRuntime.jsx(U$1.LeadingIcon,{children:i&&!h?jsxRuntime.jsx("img",{style:{borderRadius:"50%"},src:i,alt:"user avatar",onError:()=>s(true)}):jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:[jsxRuntime.jsx("circle",{cx:"14",cy:"14",r:"13",fill:"url(#paint0_radial_3600_63997)",stroke:"white",strokeOpacity:"0.24",strokeWidth:"0.5"}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("radialGradient",{id:"paint0_radial_3600_63997",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(15 30.75) rotate(-90) scale(37.3333 65.833)",children:[jsxRuntime.jsx("stop",{offset:"0.01",stopColor:"#FFF507"}),jsxRuntime.jsx("stop",{offset:"0.259381",stopColor:"#F09BEB"}),jsxRuntime.jsx("stop",{offset:"0.598165",stopColor:"#412CB9"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"#18171A"})]})})]})}),jsxRuntime.jsx(U$1.Content,{className:css({w:e&&o?"200px":"fit-content",maxW:"200px"}),children:jsxRuntime.jsxs(Stack,{w:"full",alignItems:"start",gap:0,children:[(o||e)&&jsxRuntime.jsxs(Stack,{w:"full",gap:1,children:[e&&jsxRuntime.jsx(M$8,{fontWeight:"medium",children:e}),o&&jsxRuntime.jsx(M$8,{size:"sm",truncate:true,fontColor:"text.secondary",children:o})]}),(o||e)&&jsxRuntime.jsx(Divider,{color:"surface.quaternary",my:3,minW:"88px"}),jsxRuntime.jsx(Q$2,{label:d,textStyle:"negative",variant:"text",size:"sm",onPress:f})]})})]});return a?jsxRuntime.jsxs(HStack,{gap:1,minWidth:"fit-content",minHeight:"fit-content",children:[jsxRuntime.jsx(Box,{onClick:a,cursor:"pointer",transition:"transform 0.1s",_active:{transform:"scale(0.95)"},className:css({"@media (max-width: 370px)":{display:"none"}}),children:jsxRuntime.jsx(i$2,{height:18,width:18,color:token("colors.text.secondary")})}),jsxRuntime.jsx(c,{})]}):jsxRuntime.jsx(c,{})};
|
|
13897
13899
|
|
|
13898
|
-
const i=D$3(({children:r})=>r),L$1=r=>{const{isPending:e,isSuccess:m,onChange:n,onComplete:p,originName:s,pinLength:c,id:a,autoFocus:g,errorMessage:t,children:h}=r,d=()=>e?jsxRuntime.jsx(d$
|
|
13900
|
+
const i=D$3(({children:r})=>r),L$1=r=>{const{isPending:e,isSuccess:m,onChange:n,onComplete:p,originName:s,pinLength:c,id:a,autoFocus:g,errorMessage:t,children:h}=r,d=()=>e?jsxRuntime.jsx(d$n,{size:36,strokeWidth:4}):m?jsxRuntime.jsx(s$d,{color:token("colors.brand.base"),width:36,height:36}):jsxRuntime.jsx(k$4,{originName:s,onChange:n,pinLength:c,onComplete:p,id:a,autoFocus:g});return $$5(h,l=>jsxRuntime.jsxs(VStack,{gap:3,my:3,children:[jsxRuntime.jsx(Center,{height:12,children:d()}),t&&jsxRuntime.jsx(M$8,{variant:"error",size:"sm",styles:{textAlign:"center"},children:t}),l.get(i)]}))},P$2=Object.assign(L$1,{RetryContent:i});
|
|
13899
13901
|
|
|
13900
13902
|
var m$3=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect,y$5=e=>{let t=React__namespace.createContext(e);return t.displayName="SlotsContext",t},x$3=e=>typeof e=="string"?e:e.displayName||e.name||"Component",h$3=["$$typeof","render","displayName","defaultProps"],E$1=(e,t)=>{if(typeof t=="string")return e;let r=Object.getOwnPropertyNames(t).reduce((o,s)=>(h$3.includes(s)||(o[s]=t[s]),o),{});return Object.assign(e,r)};var d$5="slots-wrapper",N$1=new RegExp(`^<${d$5}>.*</${d$5}>$`),v$1=({name:e,forceUpdate:t,children:r})=>{let o=React__namespace.useRef(null),s=React__namespace.useRef(false);return m$3(()=>{var c;if(!s.current&&((c=o.current)==null?void 0:c.innerHTML)){let i=o.current.innerHTML;i&&!N$1.test(i)&&console.warn(`Unwrapped children found in "${e}", either wrap them in slots or remove`);}s.current=true,t();},[e]),s.current?React__namespace.createElement(React__namespace.Fragment,null,r):React__namespace.createElement(d$5,{ref:o},r)};var f$3=React__namespace.createContext({rescan:()=>{}}),P$1=({children:e})=>{let[t,r]=React__namespace.useReducer(()=>[],[]),o=React__namespace.useMemo(()=>({rescan:r}),[t]);return React__namespace.createElement(f$3.Provider,{value:o},e)};var C$3=e=>{let t=new Map;return {register(r,o){t.set(r,o);},update(r,o){t.set(r,o),e==null||e(r);},unmount(r){t.delete(r),e==null||e(r);},clear(){t.clear();},has(r){return t.has(r)},get(){return Array.from(t.values())}}};var A$2=(e,t)=>e.type===t,b$5=e=>{if(!e)return;let{key:t,ref:r,props:o}=e;return {...o,key:t,ref:r}};var R$1=y$5(void 0),$$1=({children:e})=>e(),w$1=e=>{let t=0;return ()=>`${e}_${t++}`},M$2=w$1("s"),K=({children:e,callback:t})=>{let r=React__namespace.useReducer(()=>[],[])[1],o=React__namespace.useMemo(()=>C$3(r),[r]);return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(R$1.Provider,{value:o},React__namespace.createElement(P$1,null,process.env.NODE_ENV==="production"?e:React__namespace.createElement(v$1,{name:"HostSlots",forceUpdate:r},e))),React__namespace.createElement($$1,null,()=>t(o.get())))},X$1=(e,t)=>React__namespace.createElement(K,{children:e,callback:t}),q$2=e=>{let t=w$1(M$2()),r=React__namespace.forwardRef(({$slot_key$:c,...i},S)=>{let a=React__namespace.useContext(R$1);if(!a)return null;let g=React__namespace.useContext(f$3),T=React__namespace.createElement(s,{key:c,ref:S,...i});return a.register(c,T),React__namespace.useEffect(()=>{a.has(c)&&a.update(c,T);}),m$3(()=>(a.clear(),g.rescan(),()=>a.unmount(c)),[a]),null}),o=(c,i)=>{if(!React__namespace.useContext(R$1))return e?React__namespace.createElement(e,{ref:i,...c}):null;let[a]=React__namespace.useState(t);return React__namespace.createElement(r,{ref:i,$slot_key$:a,...c})};o.displayName=e?`Slot(${x$3(e)})`:"Slot";let s=React__namespace.forwardRef(o);return e?E$1(s,e):s};
|
|
13901
13903
|
|
|
13902
|
-
const l=q$2(({actionBox:e,children:n,disabledLabel:o,label:i,onPress:r})=>e?jsxRuntime.jsx(Center,{h:"76px",maxW:"115px",w:"full",opacity:o?.3:1,pointerEvents:o?"none":"initial",children:jsxRuntime.jsx(a$4,{className:css({_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary",h:"100%"}),borderRadius:"0.75rem",expand:true,onPress:r,children:jsxRuntime.jsxs(VStack,{gap:2,children:[React.cloneElement(React.Children.only(n),{height:20,width:20}),jsxRuntime.jsx(M$8,{size:"sm",styles:{fontWeight:500},children:i})]})})}):jsxRuntime.jsxs(VStack,{gap:1,minW:20,opacity:o?.3:1,pointerEvents:o?"none":"initial",children:[jsxRuntime.jsx(Q$2,{variant:"neutral",size:"sm",onPress:r,"aria-label":"Buy",children:jsxRuntime.jsx(Q$2.LeadingIcon,{children:n})}),jsxRuntime.jsx(M$8,{size:"sm",styles:{fontWeight:500},children:i})]})),f$2=({actionBox:e,children:n})=>jsxRuntime.jsx(Box,{w:"full",children:X$1(n,o=>jsxRuntime.jsx(HStack,{w:"full",justifyContent:"space-around",px:10,children:o.map(i=>{if(A$2(i,l)){const{key:r,disabledLabel:m,...a}=b$5(i);return m?jsxRuntime.jsx(d$
|
|
13904
|
+
const l=q$2(({actionBox:e,children:n,disabledLabel:o,label:i,onPress:r})=>e?jsxRuntime.jsx(Center,{h:"76px",maxW:"115px",w:"full",opacity:o?.3:1,pointerEvents:o?"none":"initial",children:jsxRuntime.jsx(a$4,{className:css({_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary",h:"100%"}),borderRadius:"0.75rem",expand:true,onPress:r,children:jsxRuntime.jsxs(VStack,{gap:2,children:[React.cloneElement(React.Children.only(n),{height:20,width:20}),jsxRuntime.jsx(M$8,{size:"sm",styles:{fontWeight:500},children:i})]})})}):jsxRuntime.jsxs(VStack,{gap:1,minW:20,opacity:o?.3:1,pointerEvents:o?"none":"initial",children:[jsxRuntime.jsx(Q$2,{variant:"neutral",size:"sm",onPress:r,"aria-label":"Buy",children:jsxRuntime.jsx(Q$2.LeadingIcon,{children:n})}),jsxRuntime.jsx(M$8,{size:"sm",styles:{fontWeight:500},children:i})]})),f$2=({actionBox:e,children:n})=>jsxRuntime.jsx(Box,{w:"full",children:X$1(n,o=>jsxRuntime.jsx(HStack,{w:"full",justifyContent:"space-around",px:10,children:o.map(i=>{if(A$2(i,l)){const{key:r,disabledLabel:m,...a}=b$5(i);return m?jsxRuntime.jsx(d$k,{content:m,width:"max-content",children:jsxRuntime.jsx(Box,{children:jsxRuntime.jsx(l,{actionBox:e,disabledLabel:m,...a})})},r):jsxRuntime.jsx(l,{actionBox:e,...a},r)}})}))});f$2.Action=l;
|
|
13903
13905
|
|
|
13904
13906
|
const x$2=({actionBox:n,buyLabel:s="Buy",buyDisabledLabel:b,sendLabel:r="Send",sendDisabledLabel:t,swapLabel:d="Swap",swapDisabledLabel:c,onBuy:l,onSend:a,onSwap:i})=>jsxRuntime.jsxs(f$2,{actionBox:n,children:[l&&jsxRuntime.jsx(f$2.Action,{disabledLabel:b,label:s,onPress:l,children:jsxRuntime.jsx(s$7,{})}),i&&jsxRuntime.jsx(f$2.Action,{disabledLabel:c,label:d,onPress:i,children:jsxRuntime.jsx(d$9,{})}),a&&jsxRuntime.jsx(f$2.Action,{disabledLabel:t,label:r,onPress:a,children:jsxRuntime.jsx(n$5,{})})]});
|
|
13905
13907
|
|
|
@@ -13915,9 +13917,9 @@ const y$3=D$3(({children:t,...r})=>jsxRuntime.jsx(Center,{children:React.Childre
|
|
|
13915
13917
|
|
|
13916
13918
|
const n$3=({title:C,titleId:i,...t})=>jsxRuntime.jsxs("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":i,...t,children:[C?jsxRuntime.jsx("title",{id:i,children:C}):null,jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0047 25.3341C21.1593 25.3341 25.338 21.1554 25.338 16.0008C25.338 10.8461 21.1593 6.66745 16.0047 6.66745C10.85 6.66745 6.67135 10.8461 6.67135 16.0008C6.67135 21.1554 10.85 25.3341 16.0047 25.3341ZM14.6917 12.8109C15.1258 12.0172 15.3429 11.6204 15.6317 11.4922C15.8727 11.3854 16.1476 11.3854 16.3885 11.4922C16.6774 11.6204 16.8944 12.0172 17.3285 12.8109L17.7788 13.6343C17.8582 13.7794 17.8979 13.852 17.9486 13.9155C17.9918 13.9695 18.0409 14.0186 18.095 14.0618C18.1585 14.1126 18.2311 14.1523 18.3762 14.2316L19.1996 14.682C19.9933 15.1161 20.3901 15.3331 20.5182 15.622C20.6251 15.8629 20.6251 16.1378 20.5182 16.3787C20.3901 16.6676 19.9933 16.8846 19.1996 17.3187L18.3762 17.7691C18.2311 17.8484 18.1585 17.8881 18.095 17.9389C18.0409 17.9821 17.9918 18.0312 17.9486 18.0852C17.8979 18.1488 17.8582 18.2213 17.7788 18.3664L17.3285 19.1898C16.8944 19.9835 16.6774 20.3804 16.3885 20.5085C16.1476 20.6153 15.8727 20.6153 15.6317 20.5085C15.3429 20.3804 15.1258 19.9835 14.6917 19.1898L14.2414 18.3664C14.1621 18.2213 14.1224 18.1488 14.0716 18.0852C14.0284 18.0312 13.9793 17.9821 13.9252 17.9389C13.8617 17.8881 13.7892 17.8484 13.6441 17.7691L12.8207 17.3187C12.027 16.8846 11.6301 16.6676 11.502 16.3787C11.3952 16.1378 11.3952 15.8629 11.502 15.622C11.6301 15.3331 12.027 15.1161 12.8207 14.682L13.6441 14.2316C13.7891 14.1523 13.8617 14.1126 13.9252 14.0618C13.9793 14.0186 14.0284 13.9695 14.0716 13.9155C14.1224 13.852 14.1621 13.7794 14.2414 13.6343L14.6917 12.8109Z",fill:"url(#paint0_linear_10465_20426)"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30ZM16.0047 27.2008C22.1903 27.2008 27.2047 22.1864 27.2047 16.0008C27.2047 9.81519 22.1903 4.80078 16.0047 4.80078C9.8191 4.80078 4.80469 9.81519 4.80469 16.0008C4.80469 22.1864 9.8191 27.2008 16.0047 27.2008Z",fill:"url(#paint1_linear_10465_20426)"}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:"paint0_linear_10465_20426",x1:4.8,y1:1.06667,x2:32.4967,y2:31.1537,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#6851FF"}),jsxRuntime.jsx("stop",{offset:1,stopColor:"#CE99FF"})]}),jsxRuntime.jsxs("linearGradient",{id:"paint1_linear_10465_20426",x1:4.8,y1:1.06667,x2:32.4967,y2:31.1537,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#6851FF"}),jsxRuntime.jsx("stop",{offset:1,stopColor:"#CE99FF"})]})]})]});
|
|
13917
13919
|
|
|
13918
|
-
const b$2=D$3(({children:o,...e})=>jsxRuntime.jsx(Center,{children:React.Children.map(o,i=>React.cloneElement(i,e))})),k$1=({name:o,fiatBalanceWithSymbol:e,tokenBalanceWithSymbol:i,tokenIcon:r,logoUrl:a,tokenBalanceFirst:l,disabled:s=false,isLoading:n=false})=>{const m=l||!e;return jsxRuntime.jsxs(HStack,{w:"full",justify:"space-between",opacity:s?"0.5":"1",children:[jsxRuntime.jsxs(HStack,{gap:4,children:[r?{...r,props:{...r.props,width:40,height:40}}:a?jsxRuntime.jsx("img",{width:40,height:40,src:a,alt:`${o} logo`}):jsxRuntime.jsx(n$3,{width:40,height:40}),jsxRuntime.jsx(M$8,{fontWeight:"medium",styles:{textTransform:"capitalize",textAlign:"left"},children:o})]}),jsxRuntime.jsx(VStack,{gap:0,alignItems:"flex-end",children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(d$
|
|
13920
|
+
const b$2=D$3(({children:o,...e})=>jsxRuntime.jsx(Center,{children:React.Children.map(o,i=>React.cloneElement(i,e))})),k$1=({name:o,fiatBalanceWithSymbol:e,tokenBalanceWithSymbol:i,tokenIcon:r,logoUrl:a,tokenBalanceFirst:l,disabled:s=false,isLoading:n=false})=>{const m=l||!e;return jsxRuntime.jsxs(HStack,{w:"full",justify:"space-between",opacity:s?"0.5":"1",children:[jsxRuntime.jsxs(HStack,{gap:4,children:[r?{...r,props:{...r.props,width:40,height:40}}:a?jsxRuntime.jsx("img",{width:40,height:40,src:a,alt:`${o} logo`}):jsxRuntime.jsx(n$3,{width:40,height:40}),jsxRuntime.jsx(M$8,{fontWeight:"medium",styles:{textTransform:"capitalize",textAlign:"left"},children:o})]}),jsxRuntime.jsx(VStack,{gap:0,alignItems:"flex-end",children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(d$j,{height:"1rem",width:"6rem"}),i&&e&&jsxRuntime.jsx("div",{style:{marginTop:"4px"},children:jsxRuntime.jsx(d$j,{height:"1rem",width:"4rem"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M$8,{size:"sm",styles:{lineHeight:"1.5rem",textAlign:"right"},children:m?i:e}),jsxRuntime.jsx(M$8,{size:"sm",fontColor:"text.secondary",styles:{lineHeight:"1.5rem",textAlign:"right"},children:m?e:i})]})})]})},T$1=o=>{const{name:e,fiatBalanceWithSymbol:i,tokenBalanceWithSymbol:r,logoUrl:a,onPress:l,tokenBalanceFirst:s,disabled:n,isLoading:m}=o,y=React.useRef(null),u=React.useCallback(()=>{l?.();},[l]);return $$5(o.children,B=>{const h=B.get(b$2);return l?jsxRuntime.jsx(a$4,{ref:y,className:css({_dark:{bg:"surface.tertiary"},_hover:{bg:"neutral.secondary"},bg:"neutral.quaternary",px:4,py:2,minH:16}),borderRadius:"0.5rem",expand:true,onPress:n?void 0:u,disabled:n,children:jsxRuntime.jsx(k$1,{name:e,fiatBalanceWithSymbol:i,tokenBalanceWithSymbol:r,tokenIcon:h,logoUrl:a,tokenBalanceFirst:s,disabled:n,isLoading:m})}):jsxRuntime.jsx(k$1,{name:e,fiatBalanceWithSymbol:i,tokenBalanceWithSymbol:r,tokenIcon:h,logoUrl:a,tokenBalanceFirst:s,disabled:n,isLoading:m})})};Object.assign(T$1,{TokenIcon:b$2});
|
|
13919
13921
|
|
|
13920
|
-
const _$1={send:{title:"Send",primaryTextColor:token("colors.text.primary"),secondaryTextColor:token("colors.text.secondary"),icon:c$2,iconColor:token("colors.negative.darker"),skeletonWidth:"89px"},receive:{title:"Receive",primaryTextColor:token("colors.positive.base"),secondaryTextColor:`${token("colors.positive.lighter")}`,icon:s$7,iconColor:token("colors.positive.base"),skeletonWidth:"89px"},networkFee:{title:"Network Fee",primaryTextColor:token("colors.text.primary"),secondaryTextColor:token("colors.text.secondary"),icon:d$c,iconColor:token("colors.brand.base"),skeletonWidth:"54px"},spendingCap:{title:"Spending Cap",primaryTextColor:token("colors.warning.base"),secondaryTextColor:token("colors.warning.base"),icon:s$2,iconColor:token("colors.warning.base"),skeletonWidth:"89px"}},y$2=D$3(({children:s,...t})=>jsxRuntime.jsx(Center,{children:React.Children.map(s,l=>React.cloneElement(l,t))})),q$1=s=>{const{variant:t,primaryText:l,secondaryText:c,children:C,onPress:m,loading:a,showTitle:f=true}=s,{title:g,primaryTextColor:d,secondaryTextColor:w,icon:T,iconColor:k,skeletonWidth:h}=_$1[t],b=t==="send"||t==="networkFee",u=React.useRef(null),v=React.useCallback(()=>{m?.();},[m]);return $$5(C,W=>{const e=W.get(y$2);return jsxRuntime.jsxs(HStack,{w:"full",justify:"space-between",children:[jsxRuntime.jsxs(HStack,{gap:2,children:[jsxRuntime.jsx(T,{width:16,height:16,color:k}),f&&jsxRuntime.jsx(M$8,{size:"sm",fontWeight:"medium",children:g})]}),jsxRuntime.jsxs(HStack,{gap:4,children:[c&&jsxRuntime.jsx(M$8,{styles:{color:w},children:c}),b?jsxRuntime.jsx(a$4,{ref:u,className:css({px:4,py:2.5,bg:"surface.secondary"}),borderRadius:"0.75rem",onPress:v,...s,children:jsxRuntime.jsxs(HStack,{gap:3,children:[a?jsxRuntime.jsx(d$
|
|
13922
|
+
const _$1={send:{title:"Send",primaryTextColor:token("colors.text.primary"),secondaryTextColor:token("colors.text.secondary"),icon:c$2,iconColor:token("colors.negative.darker"),skeletonWidth:"89px"},receive:{title:"Receive",primaryTextColor:token("colors.positive.base"),secondaryTextColor:`${token("colors.positive.lighter")}`,icon:s$7,iconColor:token("colors.positive.base"),skeletonWidth:"89px"},networkFee:{title:"Network Fee",primaryTextColor:token("colors.text.primary"),secondaryTextColor:token("colors.text.secondary"),icon:d$c,iconColor:token("colors.brand.base"),skeletonWidth:"54px"},spendingCap:{title:"Spending Cap",primaryTextColor:token("colors.warning.base"),secondaryTextColor:token("colors.warning.base"),icon:s$2,iconColor:token("colors.warning.base"),skeletonWidth:"89px"}},y$2=D$3(({children:s,...t})=>jsxRuntime.jsx(Center,{children:React.Children.map(s,l=>React.cloneElement(l,t))})),q$1=s=>{const{variant:t,primaryText:l,secondaryText:c,children:C,onPress:m,loading:a,showTitle:f=true}=s,{title:g,primaryTextColor:d,secondaryTextColor:w,icon:T,iconColor:k,skeletonWidth:h}=_$1[t],b=t==="send"||t==="networkFee",u=React.useRef(null),v=React.useCallback(()=>{m?.();},[m]);return $$5(C,W=>{const e=W.get(y$2);return jsxRuntime.jsxs(HStack,{w:"full",justify:"space-between",children:[jsxRuntime.jsxs(HStack,{gap:2,children:[jsxRuntime.jsx(T,{width:16,height:16,color:k}),f&&jsxRuntime.jsx(M$8,{size:"sm",fontWeight:"medium",children:g})]}),jsxRuntime.jsxs(HStack,{gap:4,children:[c&&jsxRuntime.jsx(M$8,{styles:{color:w},children:c}),b?jsxRuntime.jsx(a$4,{ref:u,className:css({px:4,py:2.5,bg:"surface.secondary"}),borderRadius:"0.75rem",onPress:v,...s,children:jsxRuntime.jsxs(HStack,{gap:3,children:[a?jsxRuntime.jsx(d$j,{width:h}):jsxRuntime.jsx(M$8,{styles:{color:d},children:l}),e&&{...e,props:{...e.props,width:32,height:32}}]})}):jsxRuntime.jsxs(HStack,{gap:3,children:[a?jsxRuntime.jsx(d$j,{width:h}):jsxRuntime.jsx(M$8,{styles:{color:d},children:l}),e&&{...e,props:{...e.props,width:32,height:32}}]})]})]})})};Object.assign(q$1,{TokenIcon:y$2});
|
|
13921
13923
|
|
|
13922
13924
|
const y$1=D$3(({backgroundColor:e,children:r})=>jsxRuntime.jsx(Center,{borderRadius:60,height:11,width:11,backgroundColor:e,overflow:"hidden",children:React.cloneElement(React.Children.only(r),{height:24,width:24})})),C$1=D$3(({backgroundColor:e,children:r})=>jsxRuntime.jsxs(Box,{height:10,width:10,position:"relative",children:[jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",position:"absolute",backgroundColor:e,height:7,width:7,borderRadius:30,children:React.cloneElement(r[0],{height:20,width:20})}),jsxRuntime.jsx(Flex,{alignItems:"center",justifyContent:"center",position:"absolute",backgroundColor:e,borderRadius:30,height:7,width:7,bottom:0,right:0,children:React.cloneElement(r[1],{height:20,width:20})})]})),f$1=D$3(({backgroundColor:e,children:r})=>jsxRuntime.jsx(Flex,{backgroundColor:e,borderRadius:30,alignItems:"center",justifyContent:"center",borderWidth:"2",borderColor:"neutral.tertiary",width:"5",height:"5",children:React.cloneElement(React.Children.only(r),{height:10,width:10})})),B$1=({title:e,subtitle:r,primaryValue:w,primaryValueColor:x,secondaryValue:a,children:k,onPress:I,...h})=>$$5(k,d=>{const m=d.get(C$1),p=d.get(y$1),u=d.get(f$1);return jsxRuntime.jsx(a$4,{borderRadius:"0.375rem",expand:true,onPress:I,children:jsxRuntime.jsxs(HStack,{p:3,gap:2,w:"full",pos:"relative",className:cx(css({_active:{transform:"scale(0.95)"},_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary"})),borderRadius:"md",justify:"space-between",alignItems:"center",...h,children:[jsxRuntime.jsxs(HStack,{children:[m&&m,p&&p,u&&jsxRuntime.jsx(Box,{position:"absolute",left:9,top:11,children:u}),jsxRuntime.jsxs(Box,{children:[jsxRuntime.jsx(M$8,{truncate:true,size:"md",fontWeight:"bold",children:e})," ",r&&jsxRuntime.jsx(M$8,{truncate:true,size:"sm",fontColor:"text.secondary",children:r})]})]}),jsxRuntime.jsxs(Box,{children:[jsxRuntime.jsx(M$8,{truncate:true,size:"md",styles:{textAlign:"end",color:x},...h,children:w}),a&&jsxRuntime.jsx(M$8,{truncate:true,size:"sm",styles:{textAlign:"end"},fontColor:"text.secondary",children:a})]})]})})});Object.assign(B$1,{DoubleIcon:C$1,PrimaryIcon:y$1,SecondaryIcon:f$1});
|
|
13923
13925
|
|
|
@@ -14901,11 +14903,11 @@ const centeredIconClass = css({
|
|
|
14901
14903
|
});
|
|
14902
14904
|
const Pending = ({ onPressBack, title, description, Icon, isPending, errorMessage }) => {
|
|
14903
14905
|
return (React.createElement(React.Fragment, null,
|
|
14904
|
-
React.createElement(WidgetHeader, { onPressBack: isPending ? onPressBack : undefined, showHeaderText: false }),
|
|
14906
|
+
React.createElement(WidgetHeader, { onPressBack: isPending || errorMessage ? onPressBack : undefined, showHeaderText: false }),
|
|
14905
14907
|
React.createElement(VStack, { gap: 6, pt: 4 },
|
|
14906
14908
|
React.createElement(Box, { position: "relative", h: 20, w: 20 },
|
|
14907
|
-
isPending && React.createElement(d$
|
|
14908
|
-
isPending ? (React.createElement(Icon, { width: 36, height: 36, className: centeredIconClass })) : (React.createElement(s$d, { width: 36, height: 36, color: token('colors.brand.base'), className: centeredIconClass }))),
|
|
14909
|
+
isPending && React.createElement(d$n, { size: 80, strokeWidth: 8, neutral: true, progress: 40 }),
|
|
14910
|
+
isPending ? (React.createElement(Icon, { width: 36, height: 36, className: centeredIconClass })) : errorMessage ? (React.createElement(d$g, { width: 36, height: 36, color: token('colors.negative.darker'), className: centeredIconClass })) : (React.createElement(s$d, { width: 36, height: 36, color: token('colors.brand.base'), className: centeredIconClass }))),
|
|
14909
14911
|
React.createElement(VStack, { gap: 2, px: 7 },
|
|
14910
14912
|
React.createElement(M$8.H4, null, title),
|
|
14911
14913
|
React.createElement(M$8, { fontColor: "text.tertiary", styles: { textAlign: 'center' } }, description),
|
|
@@ -15425,7 +15427,7 @@ const RecoveryCodeView = ({ state, dispatch }) => {
|
|
|
15425
15427
|
React.createElement(d$b, { width: 60, height: 60, color: token('colors.brand.base') }),
|
|
15426
15428
|
React.createElement(M$8.H4, { styles: { textAlign: 'center', fontWeight: 'normal' } }, "Enter your recovery code to log in.")),
|
|
15427
15429
|
isVerifying ? (React.createElement(Center, { h: 12 },
|
|
15428
|
-
React.createElement(d$
|
|
15430
|
+
React.createElement(d$n, { size: 36, strokeWidth: 4 }))) : (React.createElement(React.Fragment, null,
|
|
15429
15431
|
React.createElement(se, { "aria-label": "8-character code", attr: {
|
|
15430
15432
|
size: 35,
|
|
15431
15433
|
}, placeholder: "8-character code", onChange: onChangeOtp, alignText: "center", errorMessage: error ?? '', disabled: isVerifying }),
|
|
@@ -15629,8 +15631,8 @@ const WalletConnectView = ({ dispatch }) => {
|
|
|
15629
15631
|
return (React.createElement(React.Fragment, null,
|
|
15630
15632
|
React.createElement(WidgetHeader, { onPressBack: handleBack, showHeaderText: false }),
|
|
15631
15633
|
React.createElement(VStack, { gap: 6, pt: 4, alignItems: "center" },
|
|
15632
|
-
uri ? (React.createElement(b$1, { eyeRadius: 8, value: uri, qrStyle: "dots", size: 262, logoImage: WALLETCONNECT_LOGO_DATA_URL, logoHeight:
|
|
15633
|
-
React.createElement(d$
|
|
15634
|
+
uri ? (React.createElement(b$1, { eyeRadius: 8, value: uri, qrStyle: "dots", size: 262, logoImage: WALLETCONNECT_LOGO_DATA_URL, logoHeight: 52, logoWidth: 52, logoPadding: 12, style: { borderRadius: 16 }, quietZone: 12 })) : (React.createElement(Center, { width: "294px", height: "294px" },
|
|
15635
|
+
React.createElement(d$j, { width: 286, height: 286, borderRadius: 16, backgroundColor: "surface.secondary" }))),
|
|
15634
15636
|
React.createElement(VStack, { gap: 2, alignItems: "center", px: 7 },
|
|
15635
15637
|
React.createElement(M$8.H4, null, "Scan with your wallet"),
|
|
15636
15638
|
React.createElement(M$8, { fontColor: "text.tertiary", styles: { textAlign: 'center' } }, "Open your mobile wallet and scan this QR code to connect")))));
|