@frigade/react 2.4.14 → 2.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -48,7 +48,7 @@ var L__namespace = /*#__PURE__*/_interopNamespace(L);
48
48
  var eo__namespace = /*#__PURE__*/_interopNamespace(eo);
49
49
  var oe__namespace = /*#__PURE__*/_interopNamespace(oe);
50
50
 
51
- var zo=Object.defineProperty,kr=Object.defineProperties;var Er=Object.getOwnPropertyDescriptors;var Ge=Object.getOwnPropertySymbols;var _o=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable;var No=(e,o,t)=>o in e?zo(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,i=(e,o)=>{for(var t in o||(o={}))_o.call(o,t)&&No(e,t,o[t]);if(Ge)for(var t of Ge(o))Go.call(o,t)&&No(e,t,o[t]);return e},l=(e,o)=>kr(e,Er(o));var Dr=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,t)=>(typeof require!="undefined"?require:o)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var f=(e,o)=>{var t={};for(var n in e)_o.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Ge)for(var n of Ge(e))o.indexOf(n)<0&&Go.call(e,n)&&(t[n]=e[n]);return t};var te=(e,o)=>{for(var t in o)zo(e,t,{get:o[t],enumerable:!0});};var W=(e,o,t)=>new Promise((n,r)=>{var a=c=>{try{p(t.next(c));}catch(u){r(u);}},s=c=>{try{p(t.throw(c));}catch(u){r(u);}},p=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,s);p((t=t.apply(e,o)).next());});function Pe(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:jsxRuntime.jsx("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})}))}var Ko={borderWidths:{md:"1px"}};var Ue=[5,10,20,35,50,65,80,95,98],jo=[...Ue],uo=[...Ue];jo[4]=40;uo[4]=60;var Or={blue:{h:213,s:100,l:Ue},gray:{h:220,s:10,l:Ue},green:{h:141,s:90,l:jo},red:{h:9,s:90,l:uo},yellow:{h:50,s:90,l:uo}};var A={};for(let[e,{h:o,s:t,l:n}]of Object.entries(Or))A[e]=Object.fromEntries(n.map((r,a)=>[`${(a+1)*100}`,`hsl(${o} ${t}% ${r}%)`]));var Jo=l(i({black:"hsl(0 0% 0%)",white:"hsl(0 0% 100%)"},A),{gray100:A.gray[100],gray200:A.gray[200],gray300:A.gray[300],gray400:A.gray[400],gray500:A.gray[500],gray600:A.gray[600],gray700:A.gray[700],gray800:A.gray[800],gray900:A.gray[900],blue400:A.blue[400],blue500:A.blue[500],blue800:A.blue[800],blue900:A.blue[900],green400:A.blue[400],green500:A.green[500],green800:A.green[800],red500:A.red[500],transparent:"#FFFFFF00",inherit:"inherit"});var Xo={md:"8px",lg:"20px",round:"50%"};var d=e=>`var(--fr-colors-${e})`,qo={negative:{100:d("red-100"),200:d("red-200"),300:d("red-300"),400:d("red-400"),500:d("red-500"),600:d("red-600"),700:d("red-700"),800:d("red-800"),900:d("red-900"),background:d("negative-500"),border:d("negative-500"),foreground:d("white"),surface:d("negative-500"),active:{background:d("negative-400"),border:d("negative-400"),foreground:d("white"),surface:d("negative-400")},focus:{background:d("negative-500"),border:d("negative-500"),foreground:d("white"),surface:d("negative-500")},hover:{background:d("negative-400"),border:d("negative-400"),foreground:d("white"),surface:d("negative-400")}},neutral:{100:d("gray-100"),200:d("gray-200"),300:d("gray-300"),400:d("gray-400"),500:d("gray-500"),600:d("gray-600"),700:d("gray-700"),800:d("gray-800"),900:d("gray-900"),background:d("white"),border:d("neutral-800"),foreground:d("black"),surface:d("neutral-700"),active:{background:d("white"),border:d("neutral-900"),foreground:d("black"),surface:d("neutral-700")},focus:{background:d("white"),border:d("neutral-900"),foreground:d("black"),surface:d("neutral-700")},hover:{background:d("white"),border:d("neutral-900"),foreground:d("black"),surface:d("neutral-700")}},positive:{100:d("green-100"),200:d("green-200"),300:d("green-300"),400:d("green-400"),500:d("green-500"),600:d("green-600"),700:d("green-700"),800:d("green-800"),900:d("green-900"),background:d("positive-500"),border:d("positive-500"),foreground:d("white"),surface:d("positive-500"),active:{background:d("positive-400"),border:d("positive-400"),foreground:d("white"),surface:d("positive-400")},focus:{background:d("positive-500"),border:d("positive-500"),foreground:d("white"),surface:d("positive-500")},hover:{background:d("positive-400"),border:d("positive-400"),foreground:d("white"),surface:d("positive-400")}},primary:{100:d("blue-100"),200:d("blue-200"),300:d("blue-300"),400:d("blue-400"),500:d("blue-500"),600:d("blue-600"),700:d("blue-700"),800:d("blue-800"),900:d("blue-900"),background:d("primary-500"),border:d("primary-500"),foreground:d("white"),surface:d("primary-500"),active:{background:d("primary-400"),border:d("primary-400"),foreground:d("white"),surface:d("primary-400")},focus:{background:d("primary-500"),border:d("primary-500"),foreground:d("white"),surface:d("primary-500")},hover:{background:d("primary-400"),border:d("primary-400"),foreground:d("white"),surface:d("primary-400")}},secondary:{100:d("gray-100"),200:d("gray-200"),300:d("gray-300"),400:d("gray-400"),500:d("gray-500"),600:d("gray-600"),700:d("gray-700"),800:d("gray-800"),900:d("gray-900"),background:d("white"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-900"),active:{background:d("secondary-900"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-800")},focus:{background:d("secondary-900"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-900")},hover:{background:d("secondary-900"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-800")}}};var Zo={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"};var Ir="px",Hr=e=>typeof e=="number"?`${4*e}${Ir}`:e,Mr=[-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,-.5,0,.5,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,"auto"],Yo=Object.fromEntries(Mr.map(e=>[e,Hr(e)]));var Qo={fontFamilies:{default:"inherit"},fontSizes:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"30px","4xl":"36px","5xl":"48px"},fontWeights:{thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",demibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacings:{md:"0.02em"},lineHeights:{xs:"18px",sm:"22px",md:"24px",lg:"26px",xl:"30px","2xl":"38px","3xl":"46px","4xl":"60px"}};var Ke=l(i(l(i({},Ko),{colors:i(i({},Jo),qo)}),Qo),{radii:Xo,shadows:Zo,space:Yo});function Oe(e,o="",t="."){return Object.keys(e).reduce((n,r)=>{let s=`${o.length?`${o}${t}`:""}${r}`,p=e[r];return typeof p=="object"&&p!==null&&!Array.isArray(p)?Object.assign(n,Oe(p,s,t)):n[s]=p,n},{})}function mo(e){let o=Oe(e,"--fr","-");for(let[t,n]of Object.entries(o))if(t.indexOf(".")>-1){let r=t.replace(/\./g,"-");o[r]=n,delete o[t];}return o}function et(e,o="--fr"){let t={};return Object.keys(e).forEach(n=>{let r=e[n],a=n.replace(/\./g,"-");typeof r=="object"&&r!==null&&!Array.isArray(r)?t[n]=et(r,`${o}-${n}`):t[n]=`var(${o}-${a})`;}),t}var fo=mo(Ke),R=et(Ke);var Ar=new Set(["alt","size","src"]),Lr=Wr__default.default.all.filter(e=>e.indexOf("-")!=0&&!Ar.has(e)).map(e=>[e.replace(/-([a-z])/g,(o,t)=>t.toUpperCase()),null]),Vr=Object.fromEntries(Lr),je=Oe(R.colors),$r={color:je,backgroundColor:je,borderColor:je,border:i(i({},R.borderWidths),je),borderRadius:R.radii,borderWidth:R.borderWidths,boxShadow:R.shadows,fontFamily:R.fontFamilies,fontSize:R.fontSizes,fontWeight:R.fontWeights,gap:R.space,lineHeight:R.lineHeights,margin:R.space,marginBottom:R.space,marginLeft:R.space,marginRight:R.space,marginTop:R.space,padding:R.space,paddingBottom:R.space,paddingLeft:R.space,paddingRight:R.space,paddingTop:R.space},ot=i(i({},Vr),$r),tt={bg:["backgroundColor"],m:["margin"],mt:["marginTop"],mr:["marginRight"],mb:["marginBottom"],ml:["marginLeft"],mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],p:["padding"],pt:["paddingTop"],pr:["paddingRight"],pb:["paddingBottom"],pl:["paddingLeft"],px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"]},rt=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function Nr(e){return Array.isArray(e)?new Map(e.map(o=>[o,o])):typeof e=="object"&&e!==null?new Map(Object.entries(e)):typeof e=="string"||typeof e=="number"?new Map([[e,e]]):new Map}var nt=new Map(Object.entries(ot).map(([e,o])=>[e,Nr(o)])),zr=new Map(Object.entries(tt).map(([e,o])=>[e,new Set(o)])),_r=new Set(["height","width"]),Gr=new Set(["canvas","embed","iframe","img","input","object","video"]);function it(e){let[o,t]=e.split(":");return [o,rt.has(t)?t:null]}function at(e,o="div"){let t=Object.assign({},e),n={};function r(a){if(a==null)return n;let p=`&:${a.replace(/[A-Z]/g,c=>`-${c.toLocaleLowerCase()}`)}`;return n[p]==null&&(n[p]={}),n[p]}return Object.entries(t).forEach(([a,s])=>{let[p,c]=it(a),u=zr.get(p);u!=null&&(u.forEach(y=>{let b=`${y}${c?":"+c:""}`;t[b]=s;}),delete t[a]);}),Object.entries(t).forEach(([a,s])=>{let[p,c]=it(a),u=nt.get(p);if(u!=null){if(s==null)delete t[a];else if(typeof s=="string"&&s.indexOf(" ")>-1){let y=s.split(" ");r(c)[p]=y.map(b=>{var x;return (x=u.get(b.toString()))!=null?x:b}).join(" ");}else u.has(s.toString())?r(c)[p]=u.get(s.toString()):r(c)[p]=s;(typeof o!="string"||!Gr.has(o)||!_r.has(p))&&delete t[a];}}),Object.keys(t).forEach(a=>{let s=a.substring(1);a.indexOf("_")===0&&nt.has(s)&&(t[s]=t[a],delete t[a]);}),{cssFromProps:n,unmatchedProps:t}}function Kr(){if(typeof window=="undefined"){let{JSDOM:e}=Dr("jsdom");return new e("<!DOCTYPE html>").window}return window}function st(e){return e?{__html:Ur__default.default(Kr()).sanitize(e,{ALLOWED_TAGS:["b","strong","i","em","a","span","div","p","pre","s","u","br","img","code","li","ol","ul","table","tbody","thead","tr","td","th","h1","h2","h3","h4","video","p"],ALLOWED_ATTR:["style","class","target","id","href","alt","src","controls","autoplay","loop","muted","playsinline"]})}:{__html:""}}function Jr(e){return e&&`fr-${e}`}function dt(e){return e&&(Array.isArray(e)?e.filter(o=>o!=null).map(o=>dt(o)).join(" "):Jr(e))}function Xr(p,s){var c=p,{as:e,children:o,className:t,css:n={},part:r}=c,a=f(c,["as","children","className","css","part"]);let u=e!=null?e:"div",{cssFromProps:y,unmatchedProps:b}=at(a,u),x=dt(r),m=t||x?clsx.clsx(t,x):void 0,F=[{boxSizing:"border-box"},y,n];return typeof o=="string"?jsxRuntime.jsx(u,l(i({className:m,css:F},b),{ref:s,dangerouslySetInnerHTML:st(o)})):jsxRuntime.jsx(u,l(i({className:m,css:F},b),{ref:s,children:o}))}var g=ho__namespace.forwardRef(Xr);var I={};te(I,{Link:()=>vn,Plain:()=>Tn,Primary:()=>wn,Secondary:()=>Fn});var C={};te(C,{Body1:()=>mn,Body2:()=>fn,Caption:()=>gn,Display1:()=>sn,Display2:()=>ln,H1:()=>pn,H2:()=>dn,H3:()=>cn,H4:()=>un});var go={};te(go,{Body1:()=>tn,Body2:()=>rn,Caption:()=>nn,Display1:()=>qr,Display2:()=>Zr,H1:()=>Yr,H2:()=>Qr,H3:()=>en,H4:()=>on});var re={color:"neutral.foreground",fontFamily:"default",margin:"0"},qr=l(i({},re),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),Zr=l(i({},re),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),Yr=l(i({},re),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),Qr=l(i({},re),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),en=l(i({},re),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),on=l(i({},re),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),tn=l(i({},re),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),rn=l(i({},re),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),nn=l(i({},re),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"});var an=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],ne=Object.fromEntries(an.map(e=>{let o=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",t=ho__namespace.forwardRef((p,s)=>{var c=p,{as:n=o,children:r}=c,a=f(c,["as","children"]);return jsxRuntime.jsx(g,l(i(i({as:n},go[e]),a),{ref:s,children:r}))});return t.displayName=`Text.${e}`,[e,t]})),sn=ne.Display1,ln=ne.Display2,pn=ne.H1,dn=ne.H2,cn=ne.H3,un=ne.H4,mn=ne.Body1,fn=ne.Body2,gn=ne.Caption;var xo={};te(xo,{Link:()=>Pn,Plain:()=>Cn,Primary:()=>hn,Secondary:()=>bn,loadingCSSStyle:()=>yo});var Je={borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit"},hn=l(i({},Je),{backgroundColor:"primary.surface",borderColor:"primary.border",color:"primary.foreground","backgroundColor:disabled":"primary.surface","backgroundColor:hover":"primary.hover.surface","opacity:disabled":"0.6","pointerEvents:disabled":"none"}),bn=l(i({},Je),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:disabled":"secondary.background","opacity:disabled":"0.6"}),Pn=l(i({},Je),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface"}),Cn=l(i({},Je),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),Sn=react.keyframes({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),yo={position:"relative",color:"transparent","&:after":{content:'""',position:"absolute",width:"16px",height:"16px",top:0,left:0,right:0,bottom:0,margin:"auto",border:"4px solid transparent",borderTopColor:"var(--fr-colors-primary-foreground)",borderRadius:"50%",animation:Sn+" 1s ease infinite"}};function Xe(s){var p=s,{as:e,children:o,part:t,title:n,variant:r="Primary"}=p,a=f(p,["as","children","part","title","variant"]);var u;let c=r.toLocaleLowerCase();return jsxRuntime.jsxs(g,l(i(l(i({as:e!=null?e:"button",part:[`button-${c}`,t]},xo[r]),{css:i(i({},(u=a.css)!=null?u:{}),a.loading?yo:{})}),a),{loading:void 0,children:[o,n&&jsxRuntime.jsx(C.Body2,{color:"inherit",css:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},flexGrow:"1",fontWeight:"medium",lineHeight:"20px",part:"button-title",textWrap:"nowrap",children:n})]}))}function wn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Primary",children:e}))}function Fn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Secondary",children:e}))}function vn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Link",children:e}))}function Tn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Plain",children:e}))}var P={};te(P,{Column:()=>kn,Row:()=>Rn});var Rn=ho__namespace.forwardRef((e,o)=>jsxRuntime.jsx(g,l(i({display:"flex",flexDirection:"row"},e),{ref:o}))),kn=ho__namespace.forwardRef((e,o)=>jsxRuntime.jsx(g,l(i({display:"flex",flexDirection:"column"},e),{ref:o})));function bo(r){var a=r,{dismissible:e,flowId:o,part:t}=a,n=f(a,["dismissible","flowId","part"]);return jsxRuntime.jsx(j,l(i({as:null,flowId:o},n),{children:({handleDismiss:s,handlePrimary:p,handleSecondary:c,parentProps:{containerProps:u},step:y})=>{var S,B,v,k,E;let b=(S=y.props)!=null?S:{},x=(v=(B=y.primaryButton)==null?void 0:B.title)!=null?v:y.primaryButtonTitle,m=(E=(k=y.secondaryButton)==null?void 0:k.title)!=null?E:y.secondaryButtonTitle,F=y.$state.blocked;return jsxRuntime.jsxs(h,l(i(i({alignItems:"center",borderWidth:"md",display:"flex",flexDirection:"row",gap:3,justifyContent:"flex-start",part:["banner",t]},u),b),{children:[y.imageUri&&jsxRuntime.jsx(g,{as:"img",part:"image",src:y.imageUri,style:{height:40,width:40,alignSelf:"center"}}),jsxRuntime.jsxs(P.Column,{marginInlineEnd:"auto",part:"banner-title-wrapper",children:[jsxRuntime.jsx(h.Title,{part:"title",children:y.title}),jsxRuntime.jsx(h.Subtitle,{part:"subtitle",children:y.subtitle})]}),jsxRuntime.jsx(h.Secondary,{disabled:F,title:m,onClick:c}),jsxRuntime.jsx(h.Primary,{disabled:F,title:x,onClick:p}),e&&jsxRuntime.jsx(h.Dismiss,{onClick:s})]}))}}))}var Ye={};te(Ye,{Carousel:()=>Dt,Collapsible:()=>Ze,CollapsibleStep:()=>We});var He={};te(He,{Bar:()=>Ce,Dots:()=>yt,Segments:()=>ht});function Ce(n){var r=n,{current:e,total:o}=r,t=f(r,["current","total"]);let a=o>0?Math.min(e/o,1):0,s=a===0?"10px":`${100*a}%`;return jsxRuntime.jsx(g,l(i({part:"progress-bar",backgroundColor:"blue800",borderRadius:"md",height:"10px"},t),{children:jsxRuntime.jsx(g,{backgroundColor:"primary.surface",part:"progress-bar-fill",borderRadius:"md",height:"100%",style:{width:s},transition:"width 300ms ease-out"})}))}function yt(n){var r=n,{current:e,total:o}=r,t=f(r,["current","total"]);if(o==1)return null;let a=[...Array(o)].map((s,p)=>jsxRuntime.jsx(g,{as:"circle",r:4,cx:4+16*p,cy:"4px",fill:e-1===p?R.colors.blue500:R.colors.blue800},p));return jsxRuntime.jsx(g,l(i({as:"svg",height:"8px",part:"progress-dots",viewBox:`0 0 ${16*o-8} 8`,width:16*o-8},t),{children:a}))}function ht(n){var r=n,{current:e,total:o}=r,t=f(r,["current","total"]);let a=[...Array(o)].map((s,p)=>jsxRuntime.jsx(g,{backgroundColor:e-1===p?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%"},p));return jsxRuntime.jsx(P.Row,l(i({gap:1,height:"10px",part:"progress-segments"},t),{children:a}))}function Pt(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"size-4"},e),{children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M8 1a3.5 3.5 0 0 0-3.5 3.5V7A1.5 1.5 0 0 0 3 8.5v5A1.5 1.5 0 0 0 4.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 11.5 7V4.5A3.5 3.5 0 0 0 8 1Zm2 6V4.5a2 2 0 1 0-4 0V7h4Z",clipRule:"evenodd"})}))}function En(){return jsxRuntime.jsx(g,{as:"svg",color:"primary.foreground",fill:"none",height:"8px",part:"check-icon",viewBox:"0 0 10 8",width:"10px",children:jsxRuntime.jsx("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ct(t){var n=t,{checked:e=!1}=n,o=f(n,["checked"]);return jsxRuntime.jsx(g,l(i({backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"check-indicator",position:"relative",height:"22px",width:"22px"},o),{children:e&&jsxRuntime.jsx(g,{alignItems:"center",bg:"green500",borderWidth:"md",borderStyle:"solid",borderColor:"green500",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",part:"check-indicator-checked",position:"absolute",top:"-1px",width:"calc(100% + 2px)",children:jsxRuntime.jsx(En,{})})}))}function ie(e,{onPrimary:o,onSecondary:t}={}){let{navigate:n}=ho.useContext(H),r={"flow.back":()=>e.flow.back(),"flow.complete":()=>e.flow.complete(),"flow.forward":()=>e.flow.forward(),"flow.restart":()=>e.flow.restart(),"flow.skip":()=>e.flow.skip(),"flow.start":()=>e.flow.start(),"step.complete":()=>e.complete(),"step.skip":()=>e.skip(),"step.reset":()=>e.reset(),"step.start":()=>e.start()};return {handlePrimary:ho.useCallback((a,s,p=!0)=>W(this,null,function*(){if((yield o==null?void 0:o(e,a,s))===!1)return a.preventDefault(),!1;if(e.primaryButton!=null){let u=e.primaryButton.action===!1?!1:r[e.primaryButton.action];typeof u=="function"?u():u!==!1&&(yield e.complete(s,p)),e.primaryButton.uri!=null&&n(e.primaryButton.uri,e.primaryButton.target);}else yield e.complete(s,p),e.primaryButtonUri!=null&&n(e.primaryButtonUri,e.primaryButtonUriTarget);return !0}),[e]),handleSecondary:ho.useCallback((a,s)=>W(this,null,function*(){if((yield t==null?void 0:t(e,a,s))===!1)return a.preventDefault(),!1;if(e.secondaryButton!=null){let c=e.secondaryButton.action===!1?!1:r[e.secondaryButton.action];typeof c=="function"?c():c!==!1&&e.complete(s),e.secondaryButton.uri!=null&&n(e.secondaryButton.uri,e.secondaryButton.target);}else e.complete(s),e.secondaryButtonUri!=null&&n(e.secondaryButtonUri,e.secondaryButtonUriTarget);return !0}),[e])}}function wt({onPrimary:e,onSecondary:o,step:t}){var u,y;let{handlePrimary:n,handleSecondary:r}=ie(t,{onPrimary:e,onSecondary:o}),{blocked:a,completed:s,skipped:p}=t.$state,c=s||p||!a?jsxRuntime.jsx(Ct,{checked:s||p,marginLeft:"auto"}):jsxRuntime.jsx(g,{as:Pt,height:"22px",marginLeft:"auto",width:"22px"});return jsxRuntime.jsxs(h,{borderWidth:1,containerType:"inline-size",css:{"@container (max-width: 600px)":{flexBasis:"85%"},"@container (min-width: 601px) and (max-width: 900px)":{flexBasis:"45%"},"@container (min-width: 1200px)":{flexBasis:"25%"}},flex:"0 0 30%",gap:"2",p:"4",part:"carousel-step",userSelect:"none",disabled:a,opacity:a?.5:1,children:[jsxRuntime.jsxs(P.Row,{marginBottom:"2",part:"carousel-step-header",children:[t.iconUri&&jsxRuntime.jsx(h.Media,{borderRadius:"0",height:"24px",src:t.iconUri,width:"24px"}),c]}),jsxRuntime.jsx(h.Title,{children:t.title}),jsxRuntime.jsx(h.Subtitle,{children:t.subtitle}),jsxRuntime.jsxs(P.Row,{css:{"@container (max-width: 200px)":{"& > button":{flexBasis:"50%",flexGrow:1},flexDirection:"column-reverse"}},gap:"2",marginTop:"auto",paddingTop:"3",part:"carousel-step-footer",children:[jsxRuntime.jsx(h.Secondary,{disabled:a,onClick:r,title:(u=t.secondaryButton)==null?void 0:u.title}),jsxRuntime.jsx(h.Primary,{disabled:a,onClick:n,title:(y=t.primaryButton)==null?void 0:y.title})]})]})}function vt(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M3 10a.75.75 0 0 1 .75-.75h10.638L10.23 5.29a.75.75 0 1 1 1.04-1.08l5.5 5.25a.75.75 0 0 1 0 1.08l-5.5 5.25a.75.75 0 1 1-1.04-1.08l4.158-3.96H3.75A.75.75 0 0 1 3 10Z",clipRule:"evenodd"})}))}function Bt(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z",clipRule:"evenodd"})}))}var Rt=react.keyframes`
51
+ var zo=Object.defineProperty,kr=Object.defineProperties;var Er=Object.getOwnPropertyDescriptors;var Ge=Object.getOwnPropertySymbols;var _o=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable;var No=(e,o,t)=>o in e?zo(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,i=(e,o)=>{for(var t in o||(o={}))_o.call(o,t)&&No(e,t,o[t]);if(Ge)for(var t of Ge(o))Go.call(o,t)&&No(e,t,o[t]);return e},l=(e,o)=>kr(e,Er(o));var Dr=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(o,t)=>(typeof require!="undefined"?require:o)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var f=(e,o)=>{var t={};for(var n in e)_o.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Ge)for(var n of Ge(e))o.indexOf(n)<0&&Go.call(e,n)&&(t[n]=e[n]);return t};var te=(e,o)=>{for(var t in o)zo(e,t,{get:o[t],enumerable:!0});};var W=(e,o,t)=>new Promise((n,r)=>{var a=c=>{try{p(t.next(c));}catch(u){r(u);}},s=c=>{try{p(t.throw(c));}catch(u){r(u);}},p=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,s);p((t=t.apply(e,o)).next());});function Pe(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:jsxRuntime.jsx("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})}))}var Ko={borderWidths:{md:"1px"}};var Ue=[5,10,20,35,50,65,80,95,98],jo=[...Ue],uo=[...Ue];jo[4]=40;uo[4]=60;var Or={blue:{h:213,s:100,l:Ue},gray:{h:220,s:10,l:Ue},green:{h:141,s:90,l:jo},red:{h:9,s:90,l:uo},yellow:{h:50,s:90,l:uo}};var A={};for(let[e,{h:o,s:t,l:n}]of Object.entries(Or))A[e]=Object.fromEntries(n.map((r,a)=>[`${(a+1)*100}`,`hsl(${o} ${t}% ${r}%)`]));var Jo=l(i({black:"hsl(0 0% 0%)",white:"hsl(0 0% 100%)"},A),{gray100:A.gray[100],gray200:A.gray[200],gray300:A.gray[300],gray400:A.gray[400],gray500:A.gray[500],gray600:A.gray[600],gray700:A.gray[700],gray800:A.gray[800],gray900:A.gray[900],blue400:A.blue[400],blue500:A.blue[500],blue800:A.blue[800],blue900:A.blue[900],green400:A.blue[400],green500:A.green[500],green800:A.green[800],red500:A.red[500],transparent:"#FFFFFF00",inherit:"inherit"});var Xo={md:"8px",lg:"20px",round:"50%"};var d=e=>`var(--fr-colors-${e})`,qo={negative:{100:d("red-100"),200:d("red-200"),300:d("red-300"),400:d("red-400"),500:d("red-500"),600:d("red-600"),700:d("red-700"),800:d("red-800"),900:d("red-900"),background:d("negative-500"),border:d("negative-500"),foreground:d("white"),surface:d("negative-500"),active:{background:d("negative-400"),border:d("negative-400"),foreground:d("white"),surface:d("negative-400")},focus:{background:d("negative-500"),border:d("negative-500"),foreground:d("white"),surface:d("negative-500")},hover:{background:d("negative-400"),border:d("negative-400"),foreground:d("white"),surface:d("negative-400")}},neutral:{100:d("gray-100"),200:d("gray-200"),300:d("gray-300"),400:d("gray-400"),500:d("gray-500"),600:d("gray-600"),700:d("gray-700"),800:d("gray-800"),900:d("gray-900"),background:d("white"),border:d("neutral-800"),foreground:d("black"),surface:d("neutral-700"),active:{background:d("white"),border:d("neutral-900"),foreground:d("black"),surface:d("neutral-700")},focus:{background:d("white"),border:d("neutral-900"),foreground:d("black"),surface:d("neutral-700")},hover:{background:d("white"),border:d("neutral-900"),foreground:d("black"),surface:d("neutral-700")}},positive:{100:d("green-100"),200:d("green-200"),300:d("green-300"),400:d("green-400"),500:d("green-500"),600:d("green-600"),700:d("green-700"),800:d("green-800"),900:d("green-900"),background:d("positive-500"),border:d("positive-500"),foreground:d("white"),surface:d("positive-500"),active:{background:d("positive-400"),border:d("positive-400"),foreground:d("white"),surface:d("positive-400")},focus:{background:d("positive-500"),border:d("positive-500"),foreground:d("white"),surface:d("positive-500")},hover:{background:d("positive-400"),border:d("positive-400"),foreground:d("white"),surface:d("positive-400")}},primary:{100:d("blue-100"),200:d("blue-200"),300:d("blue-300"),400:d("blue-400"),500:d("blue-500"),600:d("blue-600"),700:d("blue-700"),800:d("blue-800"),900:d("blue-900"),background:d("primary-500"),border:d("primary-500"),foreground:d("white"),surface:d("primary-500"),active:{background:d("primary-400"),border:d("primary-400"),foreground:d("white"),surface:d("primary-400")},focus:{background:d("primary-500"),border:d("primary-500"),foreground:d("white"),surface:d("primary-500")},hover:{background:d("primary-400"),border:d("primary-400"),foreground:d("white"),surface:d("primary-400")}},secondary:{100:d("gray-100"),200:d("gray-200"),300:d("gray-300"),400:d("gray-400"),500:d("gray-500"),600:d("gray-600"),700:d("gray-700"),800:d("gray-800"),900:d("gray-900"),background:d("white"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-900"),active:{background:d("secondary-900"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-800")},focus:{background:d("secondary-900"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-900")},hover:{background:d("secondary-900"),border:d("secondary-800"),foreground:d("black"),surface:d("secondary-800")}}};var Zo={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"};var Ir="px",Hr=e=>typeof e=="number"?`${4*e}${Ir}`:e,Mr=[-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,-.5,0,.5,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,"auto"],Yo=Object.fromEntries(Mr.map(e=>[e,Hr(e)]));var Qo={fontFamilies:{default:"inherit"},fontSizes:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"30px","4xl":"36px","5xl":"48px"},fontWeights:{thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",demibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacings:{md:"0.02em"},lineHeights:{xs:"18px",sm:"22px",md:"24px",lg:"26px",xl:"30px","2xl":"38px","3xl":"46px","4xl":"60px"}};var Ke=l(i(l(i({},Ko),{colors:i(i({},Jo),qo)}),Qo),{radii:Xo,shadows:Zo,space:Yo});function Oe(e,o="",t="."){return Object.keys(e).reduce((n,r)=>{let s=`${o.length?`${o}${t}`:""}${r}`,p=e[r];return typeof p=="object"&&p!==null&&!Array.isArray(p)?Object.assign(n,Oe(p,s,t)):n[s]=p,n},{})}function mo(e){let o=Oe(e,"--fr","-");for(let[t,n]of Object.entries(o))if(t.indexOf(".")>-1){let r=t.replace(/\./g,"-");o[r]=n,delete o[t];}return o}function et(e,o="--fr"){let t={};return Object.keys(e).forEach(n=>{let r=e[n],a=n.replace(/\./g,"-");typeof r=="object"&&r!==null&&!Array.isArray(r)?t[n]=et(r,`${o}-${n}`):t[n]=`var(${o}-${a})`;}),t}var fo=mo(Ke),R=et(Ke);var Ar=new Set(["alt","size","src"]),Lr=Wr__default.default.all.filter(e=>e.indexOf("-")!=0&&!Ar.has(e)).map(e=>[e.replace(/-([a-z])/g,(o,t)=>t.toUpperCase()),null]),Vr=Object.fromEntries(Lr),je=Oe(R.colors),$r={color:je,backgroundColor:je,borderColor:je,border:i(i({},R.borderWidths),je),borderRadius:R.radii,borderWidth:R.borderWidths,boxShadow:R.shadows,fontFamily:R.fontFamilies,fontSize:R.fontSizes,fontWeight:R.fontWeights,gap:R.space,lineHeight:R.lineHeights,margin:R.space,marginBottom:R.space,marginLeft:R.space,marginRight:R.space,marginTop:R.space,padding:R.space,paddingBottom:R.space,paddingLeft:R.space,paddingRight:R.space,paddingTop:R.space},ot=i(i({},Vr),$r),tt={bg:["backgroundColor"],m:["margin"],mt:["marginTop"],mr:["marginRight"],mb:["marginBottom"],ml:["marginLeft"],mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],p:["padding"],pt:["paddingTop"],pr:["paddingRight"],pb:["paddingBottom"],pl:["paddingLeft"],px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"]},rt=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function Nr(e){return Array.isArray(e)?new Map(e.map(o=>[o,o])):typeof e=="object"&&e!==null?new Map(Object.entries(e)):typeof e=="string"||typeof e=="number"?new Map([[e,e]]):new Map}var nt=new Map(Object.entries(ot).map(([e,o])=>[e,Nr(o)])),zr=new Map(Object.entries(tt).map(([e,o])=>[e,new Set(o)])),_r=new Set(["height","width"]),Gr=new Set(["canvas","embed","iframe","img","input","object","video"]);function it(e){let[o,t]=e.split(":");return [o,rt.has(t)?t:null]}function at(e,o="div"){let t=Object.assign({},e),n={};function r(a){if(a==null)return n;let p=`&:${a.replace(/[A-Z]/g,c=>`-${c.toLocaleLowerCase()}`)}`;return n[p]==null&&(n[p]={}),n[p]}return Object.entries(t).forEach(([a,s])=>{let[p,c]=it(a),u=zr.get(p);u!=null&&(u.forEach(y=>{let b=`${y}${c?":"+c:""}`;t[b]=s;}),delete t[a]);}),Object.entries(t).forEach(([a,s])=>{let[p,c]=it(a),u=nt.get(p);if(u!=null){if(s==null)delete t[a];else if(typeof s=="string"&&s.indexOf(" ")>-1){let y=s.split(" ");r(c)[p]=y.map(b=>{var x;return (x=u.get(b.toString()))!=null?x:b}).join(" ");}else u.has(s.toString())?r(c)[p]=u.get(s.toString()):r(c)[p]=s;(typeof o!="string"||!Gr.has(o)||!_r.has(p))&&delete t[a];}}),Object.keys(t).forEach(a=>{let s=a.substring(1);a.indexOf("_")===0&&nt.has(s)&&(t[s]=t[a],delete t[a]);}),{cssFromProps:n,unmatchedProps:t}}function Kr(){if(typeof window=="undefined"){let{JSDOM:e}=Dr("jsdom");return new e("<!DOCTYPE html>").window}return window}function st(e){return e?{__html:Ur__default.default(Kr()).sanitize(e,{ALLOWED_TAGS:["b","strong","i","em","a","span","div","p","pre","s","u","br","img","code","li","ol","ul","table","tbody","thead","tr","td","th","h1","h2","h3","h4","video","p","style"],ALLOWED_ATTR:["style","class","target","id","href","alt","src","controls","autoplay","loop","muted","playsinline"]})}:{__html:""}}function Jr(e){return e&&`fr-${e}`}function dt(e){return e&&(Array.isArray(e)?e.filter(o=>o!=null).map(o=>dt(o)).join(" "):Jr(e))}function Xr(p,s){var c=p,{as:e,children:o,className:t,css:n={},part:r}=c,a=f(c,["as","children","className","css","part"]);let u=e!=null?e:"div",{cssFromProps:y,unmatchedProps:b}=at(a,u),x=dt(r),m=t||x?clsx.clsx(t,x):void 0,F=[{boxSizing:"border-box"},y,n];return typeof o=="string"?jsxRuntime.jsx(u,l(i({className:m,css:F},b),{ref:s,dangerouslySetInnerHTML:st(o)})):jsxRuntime.jsx(u,l(i({className:m,css:F},b),{ref:s,children:o}))}var g=ho__namespace.forwardRef(Xr);var I={};te(I,{Link:()=>vn,Plain:()=>Tn,Primary:()=>wn,Secondary:()=>Fn});var C={};te(C,{Body1:()=>mn,Body2:()=>fn,Caption:()=>gn,Display1:()=>sn,Display2:()=>ln,H1:()=>pn,H2:()=>dn,H3:()=>cn,H4:()=>un});var go={};te(go,{Body1:()=>tn,Body2:()=>rn,Caption:()=>nn,Display1:()=>qr,Display2:()=>Zr,H1:()=>Yr,H2:()=>Qr,H3:()=>en,H4:()=>on});var re={color:"neutral.foreground",fontFamily:"default",margin:"0"},qr=l(i({},re),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),Zr=l(i({},re),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),Yr=l(i({},re),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),Qr=l(i({},re),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),en=l(i({},re),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),on=l(i({},re),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),tn=l(i({},re),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),rn=l(i({},re),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),nn=l(i({},re),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"});var an=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],ne=Object.fromEntries(an.map(e=>{let o=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",t=ho__namespace.forwardRef((p,s)=>{var c=p,{as:n=o,children:r}=c,a=f(c,["as","children"]);return jsxRuntime.jsx(g,l(i(i({as:n},go[e]),a),{ref:s,children:r}))});return t.displayName=`Text.${e}`,[e,t]})),sn=ne.Display1,ln=ne.Display2,pn=ne.H1,dn=ne.H2,cn=ne.H3,un=ne.H4,mn=ne.Body1,fn=ne.Body2,gn=ne.Caption;var xo={};te(xo,{Link:()=>Pn,Plain:()=>Cn,Primary:()=>hn,Secondary:()=>bn,loadingCSSStyle:()=>yo});var Je={borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit"},hn=l(i({},Je),{backgroundColor:"primary.surface",borderColor:"primary.border",color:"primary.foreground","backgroundColor:disabled":"primary.surface","backgroundColor:hover":"primary.hover.surface","opacity:disabled":"0.6","pointerEvents:disabled":"none"}),bn=l(i({},Je),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:disabled":"secondary.background","opacity:disabled":"0.6"}),Pn=l(i({},Je),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface"}),Cn=l(i({},Je),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),Sn=react.keyframes({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),yo={position:"relative",color:"transparent","&:after":{content:'""',position:"absolute",width:"16px",height:"16px",top:0,left:0,right:0,bottom:0,margin:"auto",border:"4px solid transparent",borderTopColor:"var(--fr-colors-primary-foreground)",borderRadius:"50%",animation:Sn+" 1s ease infinite"}};function Xe(s){var p=s,{as:e,children:o,part:t,title:n,variant:r="Primary"}=p,a=f(p,["as","children","part","title","variant"]);var u;let c=r.toLocaleLowerCase();return jsxRuntime.jsxs(g,l(i(l(i({as:e!=null?e:"button",part:[`button-${c}`,t]},xo[r]),{css:i(i({},(u=a.css)!=null?u:{}),a.loading?yo:{})}),a),{loading:void 0,children:[o,n&&jsxRuntime.jsx(C.Body2,{color:"inherit",css:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},flexGrow:"1",fontWeight:"medium",lineHeight:"20px",part:"button-title",textWrap:"nowrap",children:n})]}))}function wn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Primary",children:e}))}function Fn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Secondary",children:e}))}function vn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Link",children:e}))}function Tn(t){var n=t,{children:e}=n,o=f(n,["children"]);return jsxRuntime.jsx(Xe,l(i({},o),{variant:"Plain",children:e}))}var P={};te(P,{Column:()=>kn,Row:()=>Rn});var Rn=ho__namespace.forwardRef((e,o)=>jsxRuntime.jsx(g,l(i({display:"flex",flexDirection:"row"},e),{ref:o}))),kn=ho__namespace.forwardRef((e,o)=>jsxRuntime.jsx(g,l(i({display:"flex",flexDirection:"column"},e),{ref:o})));function bo(r){var a=r,{dismissible:e,flowId:o,part:t}=a,n=f(a,["dismissible","flowId","part"]);return jsxRuntime.jsx(j,l(i({as:null,flowId:o},n),{children:({handleDismiss:s,handlePrimary:p,handleSecondary:c,parentProps:{containerProps:u},step:y})=>{var S,B,v,k,E;let b=(S=y.props)!=null?S:{},x=(v=(B=y.primaryButton)==null?void 0:B.title)!=null?v:y.primaryButtonTitle,m=(E=(k=y.secondaryButton)==null?void 0:k.title)!=null?E:y.secondaryButtonTitle,F=y.$state.blocked;return jsxRuntime.jsxs(h,l(i(i({alignItems:"center",borderWidth:"md",display:"flex",flexDirection:"row",gap:3,justifyContent:"flex-start",part:["banner",t]},u),b),{children:[y.imageUri&&jsxRuntime.jsx(g,{as:"img",part:"image",src:y.imageUri,style:{height:40,width:40,alignSelf:"center"}}),jsxRuntime.jsxs(P.Column,{marginInlineEnd:"auto",part:"banner-title-wrapper",children:[jsxRuntime.jsx(h.Title,{part:"title",children:y.title}),jsxRuntime.jsx(h.Subtitle,{part:"subtitle",children:y.subtitle})]}),jsxRuntime.jsx(h.Secondary,{disabled:F,title:m,onClick:c}),jsxRuntime.jsx(h.Primary,{disabled:F,title:x,onClick:p}),e&&jsxRuntime.jsx(h.Dismiss,{onClick:s})]}))}}))}var Ye={};te(Ye,{Carousel:()=>Dt,Collapsible:()=>Ze,CollapsibleStep:()=>We});var He={};te(He,{Bar:()=>Ce,Dots:()=>yt,Segments:()=>ht});function Ce(n){var r=n,{current:e,total:o}=r,t=f(r,["current","total"]);let a=o>0?Math.min(e/o,1):0,s=a===0?"10px":`${100*a}%`;return jsxRuntime.jsx(g,l(i({part:"progress-bar",backgroundColor:"blue800",borderRadius:"md",height:"10px"},t),{children:jsxRuntime.jsx(g,{backgroundColor:"primary.surface",part:"progress-bar-fill",borderRadius:"md",height:"100%",style:{width:s},transition:"width 300ms ease-out"})}))}function yt(n){var r=n,{current:e,total:o}=r,t=f(r,["current","total"]);if(o==1)return null;let a=[...Array(o)].map((s,p)=>jsxRuntime.jsx(g,{as:"circle",r:4,cx:4+16*p,cy:"4px",fill:e-1===p?R.colors.blue500:R.colors.blue800},p));return jsxRuntime.jsx(g,l(i({as:"svg",height:"8px",part:"progress-dots",viewBox:`0 0 ${16*o-8} 8`,width:16*o-8},t),{children:a}))}function ht(n){var r=n,{current:e,total:o}=r,t=f(r,["current","total"]);let a=[...Array(o)].map((s,p)=>jsxRuntime.jsx(g,{backgroundColor:e-1===p?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%"},p));return jsxRuntime.jsx(P.Row,l(i({gap:1,height:"10px",part:"progress-segments"},t),{children:a}))}function Pt(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"size-4"},e),{children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M8 1a3.5 3.5 0 0 0-3.5 3.5V7A1.5 1.5 0 0 0 3 8.5v5A1.5 1.5 0 0 0 4.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 11.5 7V4.5A3.5 3.5 0 0 0 8 1Zm2 6V4.5a2 2 0 1 0-4 0V7h4Z",clipRule:"evenodd"})}))}function En(){return jsxRuntime.jsx(g,{as:"svg",color:"primary.foreground",fill:"none",height:"8px",part:"check-icon",viewBox:"0 0 10 8",width:"10px",children:jsxRuntime.jsx("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ct(t){var n=t,{checked:e=!1}=n,o=f(n,["checked"]);return jsxRuntime.jsx(g,l(i({backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"check-indicator",position:"relative",height:"22px",width:"22px"},o),{children:e&&jsxRuntime.jsx(g,{alignItems:"center",bg:"green500",borderWidth:"md",borderStyle:"solid",borderColor:"green500",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",part:"check-indicator-checked",position:"absolute",top:"-1px",width:"calc(100% + 2px)",children:jsxRuntime.jsx(En,{})})}))}function ie(e,{onPrimary:o,onSecondary:t}={}){let{navigate:n}=ho.useContext(H),r={"flow.back":()=>e.flow.back(),"flow.complete":()=>e.flow.complete(),"flow.forward":()=>e.flow.forward(),"flow.restart":()=>e.flow.restart(),"flow.skip":()=>e.flow.skip(),"flow.start":()=>e.flow.start(),"step.complete":()=>e.complete(),"step.skip":()=>e.skip(),"step.reset":()=>e.reset(),"step.start":()=>e.start()};return {handlePrimary:ho.useCallback((a,s,p=!0)=>W(this,null,function*(){if((yield o==null?void 0:o(e,a,s))===!1)return a.preventDefault(),!1;if(e.primaryButton!=null){let u=e.primaryButton.action===!1?!1:r[e.primaryButton.action];typeof u=="function"?u():u!==!1&&(yield e.complete(s,p)),e.primaryButton.uri!=null&&n(e.primaryButton.uri,e.primaryButton.target);}else yield e.complete(s,p),e.primaryButtonUri!=null&&n(e.primaryButtonUri,e.primaryButtonUriTarget);return !0}),[e]),handleSecondary:ho.useCallback((a,s)=>W(this,null,function*(){if((yield t==null?void 0:t(e,a,s))===!1)return a.preventDefault(),!1;if(e.secondaryButton!=null){let c=e.secondaryButton.action===!1?!1:r[e.secondaryButton.action];typeof c=="function"?c():c!==!1&&e.complete(s),e.secondaryButton.uri!=null&&n(e.secondaryButton.uri,e.secondaryButton.target);}else e.complete(s),e.secondaryButtonUri!=null&&n(e.secondaryButtonUri,e.secondaryButtonUriTarget);return !0}),[e])}}function wt({onPrimary:e,onSecondary:o,step:t}){var u,y;let{handlePrimary:n,handleSecondary:r}=ie(t,{onPrimary:e,onSecondary:o}),{blocked:a,completed:s,skipped:p}=t.$state,c=s||p||!a?jsxRuntime.jsx(Ct,{checked:s||p,marginLeft:"auto"}):jsxRuntime.jsx(g,{as:Pt,height:"22px",marginLeft:"auto",width:"22px"});return jsxRuntime.jsxs(h,{borderWidth:1,containerType:"inline-size",css:{"@container (max-width: 600px)":{flexBasis:"85%"},"@container (min-width: 601px) and (max-width: 900px)":{flexBasis:"45%"},"@container (min-width: 1200px)":{flexBasis:"25%"}},flex:"0 0 30%",gap:"2",p:"4",part:"carousel-step",userSelect:"none",disabled:a,opacity:a?.5:1,children:[jsxRuntime.jsxs(P.Row,{marginBottom:"2",part:"carousel-step-header",children:[t.iconUri&&jsxRuntime.jsx(h.Media,{borderRadius:"0",height:"24px",src:t.iconUri,width:"24px"}),c]}),jsxRuntime.jsx(h.Title,{children:t.title}),jsxRuntime.jsx(h.Subtitle,{children:t.subtitle}),jsxRuntime.jsxs(P.Row,{css:{"@container (max-width: 200px)":{"& > button":{flexBasis:"50%",flexGrow:1},flexDirection:"column-reverse"}},gap:"2",marginTop:"auto",paddingTop:"3",part:"carousel-step-footer",children:[jsxRuntime.jsx(h.Secondary,{disabled:a,onClick:r,title:(u=t.secondaryButton)==null?void 0:u.title}),jsxRuntime.jsx(h.Primary,{disabled:a,onClick:n,title:(y=t.primaryButton)==null?void 0:y.title})]})]})}function vt(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M3 10a.75.75 0 0 1 .75-.75h10.638L10.23 5.29a.75.75 0 1 1 1.04-1.08l5.5 5.25a.75.75 0 0 1 0 1.08l-5.5 5.25a.75.75 0 1 1-1.04-1.08l4.158-3.96H3.75A.75.75 0 0 1 3 10Z",clipRule:"evenodd"})}))}function Bt(e){return jsxRuntime.jsx("svg",l(i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:jsxRuntime.jsx("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z",clipRule:"evenodd"})}))}var Rt=react.keyframes`
52
52
  from {
53
53
  opacity: 0;
54
54
  }