@frigade/react 2.5.28 → 2.5.29

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
@@ -51,7 +51,7 @@ var ___namespace = /*#__PURE__*/_interopNamespace(_);
51
51
  var lo__namespace = /*#__PURE__*/_interopNamespace(lo);
52
52
  var ae__namespace = /*#__PURE__*/_interopNamespace(ae);
53
53
 
54
- var st=Object.defineProperty,sn=Object.defineProperties;var ln=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var at=(e,o,t)=>o in e?st(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))lt.call(o,t)&&at(e,t,o[t]);if(qe)for(var t of qe(o))pt.call(o,t)&&at(e,t,o[t]);return e},p=(e,o)=>sn(e,ln(o));var pn=(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 r in e)lt.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&qe)for(var r of qe(e))o.indexOf(r)<0&&pt.call(e,r)&&(t[r]=e[r]);return t};var ce=(e,o)=>{for(var t in o)st(e,t,{get:o[t],enumerable:!0});};var M=(e,o,t)=>new Promise((r,n)=>{var i=d=>{try{l(t.next(d));}catch(u){n(u);}},s=d=>{try{l(t.throw(d));}catch(u){n(u);}},l=d=>d.done?r(d.value):Promise.resolve(d.value).then(i,s);l((t=t.apply(e,o)).next());});function ke(e){return jsxRuntime.jsx("svg",p(a({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 ct={borderWidths:{md:"1px"}};var Ze=[5,10,20,35,50,65,80,95,98],ut=[...Ze],Fo=[...Ze];ut[4]=40;Fo[4]=60;var dn={blue:{h:213,s:100,l:Ze},gray:{h:220,s:10,l:Ze},green:{h:141,s:90,l:ut},red:{h:9,s:90,l:Fo},yellow:{h:50,s:90,l:Fo}};var W={};for(let[e,{h:o,s:t,l:r}]of Object.entries(dn))W[e]=Object.fromEntries(r.map((n,i)=>[`${(i+1)*100}`,`hsl(${o} ${t}% ${n}%)`]));var mt=p(a({black:"hsl(0 0% 0%)",white:"hsl(0 0% 100%)"},W),{gray100:W.gray[100],gray200:W.gray[200],gray300:W.gray[300],gray400:W.gray[400],gray500:W.gray[500],gray600:W.gray[600],gray700:W.gray[700],gray800:W.gray[800],gray900:W.gray[900],blue400:W.blue[400],blue500:W.blue[500],blue800:W.blue[800],blue900:W.blue[900],green400:W.blue[400],green500:W.green[500],green800:W.green[800],red500:W.red[500],transparent:"#FFFFFF00",inherit:"inherit"});var ft={md:"8px",lg:"20px",round:"50%"};var c=e=>`var(--fr-colors-${e})`,gt={negative:{100:c("red-100"),200:c("red-200"),300:c("red-300"),400:c("red-400"),500:c("red-500"),600:c("red-600"),700:c("red-700"),800:c("red-800"),900:c("red-900"),background:c("negative-500"),border:c("negative-500"),foreground:c("white"),surface:c("negative-500"),active:{background:c("negative-400"),border:c("negative-400"),foreground:c("white"),surface:c("negative-400")},focus:{background:c("negative-500"),border:c("negative-500"),foreground:c("white"),surface:c("negative-500")},hover:{background:c("negative-400"),border:c("negative-400"),foreground:c("white"),surface:c("negative-400")}},neutral:{100:c("gray-100"),200:c("gray-200"),300:c("gray-300"),400:c("gray-400"),500:c("gray-500"),600:c("gray-600"),700:c("gray-700"),800:c("gray-800"),900:c("gray-900"),background:c("white"),border:c("neutral-800"),foreground:c("black"),surface:c("neutral-700"),active:{background:c("white"),border:c("neutral-900"),foreground:c("black"),surface:c("neutral-700")},focus:{background:c("white"),border:c("neutral-900"),foreground:c("black"),surface:c("neutral-700")},hover:{background:c("neutral-900"),border:c("neutral-800"),foreground:c("black"),surface:c("neutral-700")}},positive:{100:c("green-100"),200:c("green-200"),300:c("green-300"),400:c("green-400"),500:c("green-500"),600:c("green-600"),700:c("green-700"),800:c("green-800"),900:c("green-900"),background:c("positive-500"),border:c("positive-500"),foreground:c("white"),surface:c("positive-500"),active:{background:c("positive-400"),border:c("positive-400"),foreground:c("white"),surface:c("positive-400")},focus:{background:c("positive-500"),border:c("positive-500"),foreground:c("white"),surface:c("positive-500")},hover:{background:c("positive-400"),border:c("positive-400"),foreground:c("white"),surface:c("positive-400")}},primary:{100:c("blue-100"),200:c("blue-200"),300:c("blue-300"),400:c("blue-400"),500:c("blue-500"),600:c("blue-600"),700:c("blue-700"),800:c("blue-800"),900:c("blue-900"),background:c("primary-500"),border:c("primary-500"),foreground:c("white"),surface:c("primary-500"),active:{background:c("primary-400"),border:c("primary-400"),foreground:c("white"),surface:c("primary-400")},focus:{background:c("primary-500"),border:c("primary-500"),foreground:c("white"),surface:c("primary-500")},hover:{background:c("primary-400"),border:c("primary-400"),foreground:c("white"),surface:c("primary-400")}},secondary:{100:c("gray-100"),200:c("gray-200"),300:c("gray-300"),400:c("gray-400"),500:c("gray-500"),600:c("gray-600"),700:c("gray-700"),800:c("gray-800"),900:c("gray-900"),background:c("white"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-900"),active:{background:c("secondary-900"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-800")},focus:{background:c("secondary-900"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-900")},hover:{background:c("secondary-900"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-800")}}};var yt={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"};var cn="px",un=e=>typeof e=="number"?`${4*e}${cn}`:e,mn=[-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"],xt=Object.fromEntries(mn.map(e=>[e,un(e)]));var bt={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 Ye=p(a(p(a({},ct),{colors:a(a({},mt),gt)}),bt),{radii:ft,shadows:yt,space:xt});function Le(e,o="",t="."){return Object.keys(e).reduce((r,n)=>{let s=`${o.length?`${o}${t}`:""}${n}`,l=e[n];return typeof l=="object"&&l!==null&&!Array.isArray(l)?Object.assign(r,Le(l,s,t)):r[s]=l,r},{})}function Ro(e){let o=Le(e,"--fr","-");for(let[t,r]of Object.entries(o))if(t.indexOf(".")>-1){let n=t.replace(/\./g,"-");o[n]=r,delete o[t];}return o}function ht(e,o="--fr"){let t={};return Object.keys(e).forEach(r=>{let n=e[r],i=r.replace(/\./g,"-");typeof n=="object"&&n!==null&&!Array.isArray(n)?t[r]=ht(n,`${o}-${r}`):t[r]=`var(${o}-${i})`;}),t}var To=Ro(Ye),E=ht(Ye);var gn=new Set(["alt","size","src"]),yn=fn__default.default.all.filter(e=>e.indexOf("-")!=0&&!gn.has(e)).map(e=>[e.replace(/-([a-z])/g,(o,t)=>t.toUpperCase()),null]),xn=Object.fromEntries(yn),Qe=Le(E.colors),bn={color:Qe,backgroundColor:Qe,borderColor:Qe,border:a(a({},E.borderWidths),Qe),borderRadius:E.radii,borderWidth:E.borderWidths,boxShadow:E.shadows,fontFamily:E.fontFamilies,fontSize:E.fontSizes,fontWeight:E.fontWeights,gap:E.space,lineHeight:E.lineHeights,margin:E.space,marginBottom:E.space,marginLeft:E.space,marginRight:E.space,marginTop:E.space,padding:E.space,paddingBottom:E.space,paddingLeft:E.space,paddingRight:E.space,paddingTop:E.space},Pt=a(a({},xn),bn),Ct={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"]},St=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function hn(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 wt=new Map(Object.entries(Pt).map(([e,o])=>[e,hn(o)])),Pn=new Map(Object.entries(Ct).map(([e,o])=>[e,new Set(o)])),Cn=new Set(["height","width"]),Sn=new Set(["canvas","embed","iframe","img","input","object","video"]);function vt(e){let[o,t]=e.split(":");return [o,St.has(t)?t:null]}function Ft(e,o="div"){let t=Object.assign({},e),r={};function n(i){if(i==null)return r;let l=`&:${i.replace(/[A-Z]/g,d=>`-${d.toLocaleLowerCase()}`)}`;return r[l]==null&&(r[l]={}),r[l]}return Object.entries(t).forEach(([i,s])=>{let[l,d]=vt(i),u=Pn.get(l);u!=null&&(u.forEach(m=>{let g=`${m}${d?":"+d:""}`;t[g]=s;}),delete t[i]);}),Object.entries(t).forEach(([i,s])=>{let[l,d]=vt(i),u=wt.get(l);if(u!=null){if(s==null)delete t[i];else if(typeof s=="string"&&s.indexOf(" ")>-1){let m=s.split(" ");n(d)[l]=m.map(g=>{var x;return (x=u.get(g.toString()))!=null?x:g}).join(" ");}else u.has(s.toString())?n(d)[l]=u.get(s.toString()):n(d)[l]=s;(typeof o!="string"||!Sn.has(o)||!Cn.has(l))&&delete t[i];}}),Object.keys(t).forEach(i=>{let s=i.substring(1);i.indexOf("_")===0&&wt.has(s)&&(t[s]=t[i],delete t[i]);}),{cssFromProps:r,unmatchedProps:t}}function vn(){if(typeof window=="undefined"){let{JSDOM:e}=pn("jsdom");return new e("<!DOCTYPE html>").window}return window}function Rt(e){return e?{__html:wn__default.default(vn()).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 Rn(e){return e&&`fr-${e}`}function kt(e){return e&&(Array.isArray(e)?e.filter(o=>o!=null).map(o=>kt(o)).join(" "):Rn(e))}function Tn(l,s){var d=l,{as:e,children:o,className:t,css:r={},part:n}=d,i=f(d,["as","children","className","css","part"]);let u=e!=null?e:"div",{cssFromProps:m,unmatchedProps:g}=Ft(i,u),x=kt(n),b=t||x?clsx.clsx(t,x):void 0,P=[{boxSizing:"border-box"},m,r];return typeof o=="string"?jsxRuntime.jsx(u,p(a({className:b,css:P},g),{ref:s,dangerouslySetInnerHTML:Rt(o)})):jsxRuntime.jsx(u,p(a({className:b,css:P},g),{ref:s,children:o}))}var y=Oo__namespace.forwardRef(Tn);var H={};ce(H,{Link:()=>ti,Plain:()=>ri,Primary:()=>ei,Secondary:()=>oi});var T={};ce(T,{Body1:()=>Un,Body2:()=>Gn,Caption:()=>Kn,Display1:()=>Mn,Display2:()=>Wn,H1:()=>Ln,H2:()=>Nn,H3:()=>_n,H4:()=>zn});var Bo={};ce(Bo,{Body1:()=>Hn,Body2:()=>An,Caption:()=>$n,Display1:()=>Bn,Display2:()=>kn,H1:()=>En,H2:()=>On,H3:()=>Dn,H4:()=>In});var ue={color:"neutral.foreground",fontFamily:"default",margin:"0"},Bn=p(a({},ue),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),kn=p(a({},ue),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),En=p(a({},ue),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),On=p(a({},ue),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),Dn=p(a({},ue),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),In=p(a({},ue),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),Hn=p(a({},ue),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),An=p(a({},ue),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),$n=p(a({},ue),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"});var Vn=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],me=Object.fromEntries(Vn.map(e=>{let o=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",t=Oo__namespace.forwardRef((l,s)=>{var d=l,{as:r=o,children:n}=d,i=f(d,["as","children"]);return jsxRuntime.jsx(y,p(a(a({as:r},Bo[e]),i),{ref:s,children:n}))});return t.displayName=`Text.${e}`,[e,t]})),Mn=me.Display1,Wn=me.Display2,Ln=me.H1,Nn=me.H2,_n=me.H3,zn=me.H4,Un=me.Body1,Gn=me.Body2,Kn=me.Caption;var Eo={};ce(Eo,{Link:()=>Zn,Plain:()=>Yn,Primary:()=>Jn,Secondary:()=>qn,loadingCSSStyle:()=>ko});var eo={borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit"},Jn=p(a({},eo),{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"}),qn=p(a({},eo),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:disabled":"secondary.background","opacity:disabled":"0.6"}),Zn=p(a({},eo),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface"}),Yn=p(a({},eo),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),Qn=react.keyframes({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),ko={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:Qn+" 1s ease infinite"}};function oo(s){var l=s,{as:e,children:o,part:t,title:r,variant:n="Primary"}=l,i=f(l,["as","children","part","title","variant"]);var u;let d=n.toLocaleLowerCase();return jsxRuntime.jsxs(y,p(a(p(a({as:e!=null?e:"button",part:[`button-${d}`,t]},Eo[n]),{css:a(a({},(u=i.css)!=null?u:{}),i.loading?ko:{})}),i),{loading:void 0,children:[o,r&&jsxRuntime.jsx(T.Body2,{color:"inherit",css:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},flexGrow:"1",fontWeight:"medium",lineHeight:"20px",part:"button-title",textWrap:"nowrap",children:r})]}))}function ei(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Primary",children:e}))}function oi(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Secondary",children:e}))}function ti(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Link",children:e}))}function ri(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Plain",children:e}))}var v={};ce(v,{Column:()=>ai,Row:()=>ii});var ii=Oo__namespace.forwardRef((e,o)=>jsxRuntime.jsx(y,p(a({display:"flex",flexDirection:"row"},e),{ref:o}))),ai=Oo__namespace.forwardRef((e,o)=>jsxRuntime.jsx(y,p(a({display:"flex",flexDirection:"column"},e),{ref:o})));function Do(n){var i=n,{dismissible:e,flowId:o,part:t}=i,r=f(i,["dismissible","flowId","part"]);return jsxRuntime.jsx(U,p(a({as:null,flowId:o},r),{children:({handleDismiss:s,handlePrimary:l,handleSecondary:d,parentProps:{containerProps:u},step:m})=>{var C,R,w,F,B;let g=(C=m.props)!=null?C:{},x=(w=(R=m.primaryButton)==null?void 0:R.title)!=null?w:m.primaryButtonTitle,b=(B=(F=m.secondaryButton)==null?void 0:F.title)!=null?B:m.secondaryButtonTitle,P=m.$state.blocked;return jsxRuntime.jsxs(h,p(a(a({alignItems:"center","aria-label":"Banner",borderWidth:"md",display:"flex",flexDirection:"row",gap:3,justifyContent:"flex-start",part:["banner",t],role:"complementary"},u),g),{children:[m.imageUri&&jsxRuntime.jsx(y,{as:"img",part:"image",src:m.imageUri,style:{height:40,width:40,alignSelf:"center"}}),jsxRuntime.jsxs(v.Column,{marginInlineEnd:"auto",part:"banner-title-wrapper",children:[jsxRuntime.jsx(h.Title,{part:"title",children:m.title}),jsxRuntime.jsx(h.Subtitle,{part:"subtitle",children:m.subtitle})]}),jsxRuntime.jsx(h.Secondary,{disabled:P,title:b,onClick:d}),jsxRuntime.jsx(h.Primary,{disabled:P,title:x,onClick:l}),e&&jsxRuntime.jsx(h.Dismiss,{onClick:s})]}))}}))}var io={};ce(io,{Carousel:()=>Jt,Collapsible:()=>no,CollapsibleStep:()=>ze});var ve={};ce(ve,{Bar:()=>Ee,Dots:()=>At,Fraction:()=>Oe,Segments:()=>to});function Ee(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);let i=o>0?Math.min(e/o,1):0,s=i===0?"10px":`${100*i}%`;return jsxRuntime.jsx(y,p(a({"aria-description":"Progress represented as a bar","aria-label":"Progress Bar","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,backgroundColor:"neutral.800",borderRadius:"md",height:"10px",part:"progress-bar",role:"meter"},t),{children:jsxRuntime.jsx(y,{backgroundColor:"primary.surface",part:"progress-bar-fill",borderRadius:"md",height:"100%",style:{width:s},transition:"width 300ms ease-out"})}))}function At(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);if(o==1)return null;let i=[...Array(o)].map((s,l)=>jsxRuntime.jsx(y,{as:"circle",cx:4+16*l,cy:"4px",fill:e-1===l?E.colors.blue500:E.colors.blue800,part:["progress-dot",e-1===l?"progress-dot-filled":null],r:4},l));return jsxRuntime.jsx(y,p(a({"aria-description":"Progress represented as dots","aria-label":"Progress Dots","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,as:"svg",height:"8px",part:"progress-dots",role:"meter",viewBox:`0 0 ${16*o-8} 8`,width:16*o-8},t),{children:i}))}function Oe(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);return jsxRuntime.jsx(T.Body2,p(a({"aria-description":"Progress represented as a fraction of a total","aria-label":"Progress Fraction","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,part:"progress-fraction",role:"meter"},t),{children:`${e}/${o}`}))}function to(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);let i=[...Array(o)].map((s,l)=>jsxRuntime.jsx(y,{backgroundColor:e-1>=l?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%",minWidth:"10px",part:["progress-segment",e-1===l?"progress-segment-filled":null]},l));return jsxRuntime.jsx(v.Row,p(a({"aria-description":"Progress represented as a segmented bar","aria-label":"Progress Segments","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,gap:1,height:"10px",part:"progress-segments",role:"meter"},t),{children:i}))}function Mt(e){return jsxRuntime.jsx("svg",p(a({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 li(){return jsxRuntime.jsx(y,{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 Wt(t){var r=t,{checked:e=!1}=r,o=f(r,["checked"]);return jsxRuntime.jsx(y,p(a({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(y,{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(li,{})})}))}function fe(e,{onPrimary:o,onSecondary:t}={}){let{navigate:r}=Oo.useContext(L),n={"flow.back":(...i)=>e.flow.back(...i),"flow.complete":(...i)=>e.flow.complete(...i),"flow.forward":(...i)=>e.flow.forward(...i),"flow.restart":()=>e.flow.restart(),"flow.skip":(...i)=>e.flow.skip(...i),"flow.start":(...i)=>e.flow.start(...i),"step.complete":(...i)=>e.complete(...i),"step.skip":(...i)=>e.skip(...i),"step.reset":()=>e.reset(),"step.start":(...i)=>e.start(...i)};return {handlePrimary:Oo.useCallback((i,s,l=!0)=>M(this,null,function*(){if((yield o==null?void 0:o(e,i,s))===!1)return i.preventDefault(),!1;if(e.primaryButton!=null){let u=e.primaryButton.action===!1?!1:n[e.primaryButton.action];typeof u=="function"?yield u(s,l):u!==!1&&(yield e.complete(s,l)),e.primaryButton.uri!=null&&r(e.primaryButton.uri,e.primaryButton.target);}else yield e.complete(s,l),e.primaryButtonUri!=null&&r(e.primaryButtonUri,e.primaryButtonUriTarget);return !0}),[e]),handleSecondary:Oo.useCallback((i,s)=>M(this,null,function*(){if((yield t==null?void 0:t(e,i,s))===!1)return i.preventDefault(),!1;if(e.secondaryButton!=null){let d=e.secondaryButton.action===!1?!1:n[e.secondaryButton.action];typeof d=="function"?d():d!==!1&&e.complete(s),e.secondaryButton.uri!=null&&r(e.secondaryButton.uri,e.secondaryButton.target);}else e.complete(s),e.secondaryButtonUri!=null&&r(e.secondaryButtonUri,e.secondaryButtonUriTarget);return !0}),[e])}}function Nt({onPrimary:e,onSecondary:o,step:t}){var u,m;let{handlePrimary:r,handleSecondary:n}=fe(t,{onPrimary:e,onSecondary:o}),{blocked:i,completed:s,skipped:l}=t.$state,d=s||l||!i?jsxRuntime.jsx(Wt,{checked:s||l,marginLeft:"auto"}):jsxRuntime.jsx(y,{as:Mt,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:i,opacity:i?.5:1,children:[jsxRuntime.jsxs(v.Row,{marginBottom:"2",part:"carousel-step-header",children:[t.iconUri&&jsxRuntime.jsx(h.Media,{borderRadius:"0",height:"24px",src:t.iconUri,width:"24px"}),d]}),jsxRuntime.jsx(h.Title,{children:t.title}),jsxRuntime.jsx(h.Subtitle,{children:t.subtitle}),jsxRuntime.jsxs(v.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:i,onClick:n,title:(u=t.secondaryButton)==null?void 0:u.title}),jsxRuntime.jsx(h.Primary,{disabled:i,onClick:r,title:(m=t.primaryButton)==null?void 0:m.title})]})]})}function zt(e){return jsxRuntime.jsx("svg",p(a({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 Gt(e){return jsxRuntime.jsx("svg",p(a({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 Kt=react.keyframes`
54
+ var st=Object.defineProperty,sn=Object.defineProperties;var ln=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var at=(e,o,t)=>o in e?st(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,a=(e,o)=>{for(var t in o||(o={}))lt.call(o,t)&&at(e,t,o[t]);if(qe)for(var t of qe(o))pt.call(o,t)&&at(e,t,o[t]);return e},p=(e,o)=>sn(e,ln(o));var pn=(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 r in e)lt.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&qe)for(var r of qe(e))o.indexOf(r)<0&&pt.call(e,r)&&(t[r]=e[r]);return t};var ce=(e,o)=>{for(var t in o)st(e,t,{get:o[t],enumerable:!0});};var M=(e,o,t)=>new Promise((r,n)=>{var i=d=>{try{l(t.next(d));}catch(u){n(u);}},s=d=>{try{l(t.throw(d));}catch(u){n(u);}},l=d=>d.done?r(d.value):Promise.resolve(d.value).then(i,s);l((t=t.apply(e,o)).next());});function ke(e){return jsxRuntime.jsx("svg",p(a({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 ct={borderWidths:{md:"1px"}};var Ze=[5,10,20,35,50,65,80,95,98],ut=[...Ze],Fo=[...Ze];ut[4]=40;Fo[4]=60;var dn={blue:{h:213,s:100,l:Ze},gray:{h:220,s:10,l:Ze},green:{h:141,s:90,l:ut},red:{h:9,s:90,l:Fo},yellow:{h:50,s:90,l:Fo}};var W={};for(let[e,{h:o,s:t,l:r}]of Object.entries(dn))W[e]=Object.fromEntries(r.map((n,i)=>[`${(i+1)*100}`,`hsl(${o} ${t}% ${n}%)`]));var mt=p(a({black:"hsl(0 0% 0%)",white:"hsl(0 0% 100%)"},W),{gray100:W.gray[100],gray200:W.gray[200],gray300:W.gray[300],gray400:W.gray[400],gray500:W.gray[500],gray600:W.gray[600],gray700:W.gray[700],gray800:W.gray[800],gray900:W.gray[900],blue400:W.blue[400],blue500:W.blue[500],blue800:W.blue[800],blue900:W.blue[900],green400:W.green[400],green500:W.green[500],green800:W.green[800],red500:W.red[500],transparent:"#FFFFFF00",inherit:"inherit"});var ft={md:"8px",lg:"20px",round:"50%"};var c=e=>`var(--fr-colors-${e})`,gt={negative:{100:c("red-100"),200:c("red-200"),300:c("red-300"),400:c("red-400"),500:c("red-500"),600:c("red-600"),700:c("red-700"),800:c("red-800"),900:c("red-900"),background:c("negative-500"),border:c("negative-500"),foreground:c("white"),surface:c("negative-500"),active:{background:c("negative-400"),border:c("negative-400"),foreground:c("white"),surface:c("negative-400")},focus:{background:c("negative-500"),border:c("negative-500"),foreground:c("white"),surface:c("negative-500")},hover:{background:c("negative-400"),border:c("negative-400"),foreground:c("white"),surface:c("negative-400")}},neutral:{100:c("gray-100"),200:c("gray-200"),300:c("gray-300"),400:c("gray-400"),500:c("gray-500"),600:c("gray-600"),700:c("gray-700"),800:c("gray-800"),900:c("gray-900"),background:c("white"),border:c("neutral-800"),foreground:c("black"),surface:c("neutral-700"),active:{background:c("white"),border:c("neutral-900"),foreground:c("black"),surface:c("neutral-700")},focus:{background:c("white"),border:c("neutral-900"),foreground:c("black"),surface:c("neutral-700")},hover:{background:c("neutral-900"),border:c("neutral-800"),foreground:c("black"),surface:c("neutral-700")}},positive:{100:c("green-100"),200:c("green-200"),300:c("green-300"),400:c("green-400"),500:c("green-500"),600:c("green-600"),700:c("green-700"),800:c("green-800"),900:c("green-900"),background:c("positive-500"),border:c("positive-500"),foreground:c("white"),surface:c("positive-500"),active:{background:c("positive-400"),border:c("positive-400"),foreground:c("white"),surface:c("positive-400")},focus:{background:c("positive-500"),border:c("positive-500"),foreground:c("white"),surface:c("positive-500")},hover:{background:c("positive-400"),border:c("positive-400"),foreground:c("white"),surface:c("positive-400")}},primary:{100:c("blue-100"),200:c("blue-200"),300:c("blue-300"),400:c("blue-400"),500:c("blue-500"),600:c("blue-600"),700:c("blue-700"),800:c("blue-800"),900:c("blue-900"),background:c("primary-500"),border:c("primary-500"),foreground:c("white"),surface:c("primary-500"),active:{background:c("primary-300"),border:c("primary-300"),foreground:c("white"),surface:c("primary-300")},focus:{background:c("primary-500"),border:c("primary-500"),foreground:c("white"),surface:c("primary-500")},hover:{background:c("primary-400"),border:c("primary-400"),foreground:c("white"),surface:c("primary-400")}},secondary:{100:c("gray-100"),200:c("gray-200"),300:c("gray-300"),400:c("gray-400"),500:c("gray-500"),600:c("gray-600"),700:c("gray-700"),800:c("gray-800"),900:c("gray-900"),background:c("white"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-900"),active:{background:c("secondary-900"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-800")},focus:{background:c("secondary-900"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-900")},hover:{background:c("secondary-900"),border:c("secondary-800"),foreground:c("black"),surface:c("secondary-800")}}};var yt={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"};var cn="px",un=e=>typeof e=="number"?`${4*e}${cn}`:e,mn=[-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"],xt=Object.fromEntries(mn.map(e=>[e,un(e)]));var bt={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 Ye=p(a(p(a({},ct),{colors:a(a({},mt),gt)}),bt),{radii:ft,shadows:yt,space:xt});function Le(e,o="",t="."){return Object.keys(e).reduce((r,n)=>{let s=`${o.length?`${o}${t}`:""}${n}`,l=e[n];return typeof l=="object"&&l!==null&&!Array.isArray(l)?Object.assign(r,Le(l,s,t)):r[s]=l,r},{})}function Ro(e){let o=Le(e,"--fr","-");for(let[t,r]of Object.entries(o))if(t.indexOf(".")>-1){let n=t.replace(/\./g,"-");o[n]=r,delete o[t];}return o}function ht(e,o="--fr"){let t={};return Object.keys(e).forEach(r=>{let n=e[r],i=r.replace(/\./g,"-");typeof n=="object"&&n!==null&&!Array.isArray(n)?t[r]=ht(n,`${o}-${r}`):t[r]=`var(${o}-${i})`;}),t}var To=Ro(Ye),E=ht(Ye);var gn=new Set(["alt","size","src"]),yn=fn__default.default.all.filter(e=>e.indexOf("-")!=0&&!gn.has(e)).map(e=>[e.replace(/-([a-z])/g,(o,t)=>t.toUpperCase()),null]),xn=Object.fromEntries(yn),Qe=Le(E.colors),bn={color:Qe,backgroundColor:Qe,borderColor:Qe,border:a(a({},E.borderWidths),Qe),borderRadius:E.radii,borderWidth:E.borderWidths,boxShadow:E.shadows,fontFamily:E.fontFamilies,fontSize:E.fontSizes,fontWeight:E.fontWeights,gap:E.space,lineHeight:E.lineHeights,margin:E.space,marginBottom:E.space,marginLeft:E.space,marginRight:E.space,marginTop:E.space,padding:E.space,paddingBottom:E.space,paddingLeft:E.space,paddingRight:E.space,paddingTop:E.space},Pt=a(a({},xn),bn),Ct={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"]},St=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function hn(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 wt=new Map(Object.entries(Pt).map(([e,o])=>[e,hn(o)])),Pn=new Map(Object.entries(Ct).map(([e,o])=>[e,new Set(o)])),Cn=new Set(["height","width"]),Sn=new Set(["canvas","embed","iframe","img","input","object","video"]);function vt(e){let[o,t]=e.split(":");return [o,St.has(t)?t:null]}function Ft(e,o="div"){let t=Object.assign({},e),r={};function n(i){if(i==null)return r;let l=`&:${i.replace(/[A-Z]/g,d=>`-${d.toLocaleLowerCase()}`)}`;return r[l]==null&&(r[l]={}),r[l]}return Object.entries(t).forEach(([i,s])=>{let[l,d]=vt(i),u=Pn.get(l);u!=null&&(u.forEach(m=>{let g=`${m}${d?":"+d:""}`;t[g]=s;}),delete t[i]);}),Object.entries(t).forEach(([i,s])=>{let[l,d]=vt(i),u=wt.get(l);if(u!=null){if(s==null)delete t[i];else if(typeof s=="string"&&s.indexOf(" ")>-1){let m=s.split(" ");n(d)[l]=m.map(g=>{var x;return (x=u.get(g.toString()))!=null?x:g}).join(" ");}else u.has(s.toString())?n(d)[l]=u.get(s.toString()):n(d)[l]=s;(typeof o!="string"||!Sn.has(o)||!Cn.has(l))&&delete t[i];}}),Object.keys(t).forEach(i=>{let s=i.substring(1);i.indexOf("_")===0&&wt.has(s)&&(t[s]=t[i],delete t[i]);}),{cssFromProps:r,unmatchedProps:t}}function vn(){if(typeof window=="undefined"){let{JSDOM:e}=pn("jsdom");return new e("<!DOCTYPE html>").window}return window}function Rt(e){return e?{__html:wn__default.default(vn()).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 Rn(e){return e&&`fr-${e}`}function kt(e){return e&&(Array.isArray(e)?e.filter(o=>o!=null).map(o=>kt(o)).join(" "):Rn(e))}function Tn(l,s){var d=l,{as:e,children:o,className:t,css:r={},part:n}=d,i=f(d,["as","children","className","css","part"]);let u=e!=null?e:"div",{cssFromProps:m,unmatchedProps:g}=Ft(i,u),x=kt(n),b=t||x?clsx.clsx(t,x):void 0,P=[{boxSizing:"border-box"},m,r];return typeof o=="string"?jsxRuntime.jsx(u,p(a({className:b,css:P},g),{ref:s,dangerouslySetInnerHTML:Rt(o)})):jsxRuntime.jsx(u,p(a({className:b,css:P},g),{ref:s,children:o}))}var y=Oo__namespace.forwardRef(Tn);var H={};ce(H,{Link:()=>ti,Plain:()=>ri,Primary:()=>ei,Secondary:()=>oi});var T={};ce(T,{Body1:()=>Un,Body2:()=>Gn,Caption:()=>Kn,Display1:()=>Mn,Display2:()=>Wn,H1:()=>Ln,H2:()=>Nn,H3:()=>_n,H4:()=>zn});var Bo={};ce(Bo,{Body1:()=>Hn,Body2:()=>An,Caption:()=>$n,Display1:()=>Bn,Display2:()=>kn,H1:()=>En,H2:()=>On,H3:()=>Dn,H4:()=>In});var ue={color:"neutral.foreground",fontFamily:"default",margin:"0"},Bn=p(a({},ue),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),kn=p(a({},ue),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),En=p(a({},ue),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),On=p(a({},ue),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),Dn=p(a({},ue),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),In=p(a({},ue),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),Hn=p(a({},ue),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),An=p(a({},ue),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),$n=p(a({},ue),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"});var Vn=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],me=Object.fromEntries(Vn.map(e=>{let o=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",t=Oo__namespace.forwardRef((l,s)=>{var d=l,{as:r=o,children:n}=d,i=f(d,["as","children"]);return jsxRuntime.jsx(y,p(a(a({as:r},Bo[e]),i),{ref:s,children:n}))});return t.displayName=`Text.${e}`,[e,t]})),Mn=me.Display1,Wn=me.Display2,Ln=me.H1,Nn=me.H2,_n=me.H3,zn=me.H4,Un=me.Body1,Gn=me.Body2,Kn=me.Caption;var Eo={};ce(Eo,{Link:()=>Zn,Plain:()=>Yn,Primary:()=>Jn,Secondary:()=>qn,loadingCSSStyle:()=>ko});var eo={alignItems:"center",borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit","opacity:disabled":"0.6","pointerEvents:disabled":"none"},Jn=p(a({},eo),{backgroundColor:"primary.surface",borderColor:"primary.border",color:"primary.foreground","backgroundColor:hover":"primary.hover.surface","backgroundColor:active":"primary.active.surface","backgroundColor:disabled":"primary.surface"}),qn=p(a({},eo),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:active":"secondary.active.surface","backgroundColor:disabled":"secondary.background"}),Zn=p(a({},eo),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface","color:active":"primary.active.surface"}),Yn=p(a({},eo),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),Qn=react.keyframes({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),ko={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:Qn+" 1s ease infinite"}};function oo(s){var l=s,{as:e,children:o,part:t,title:r,variant:n="Primary"}=l,i=f(l,["as","children","part","title","variant"]);var u;let d=n.toLocaleLowerCase();return jsxRuntime.jsxs(y,p(a(p(a({as:e!=null?e:"button",part:[`button-${d}`,t]},Eo[n]),{css:a(a({},(u=i.css)!=null?u:{}),i.loading?ko:{})}),i),{loading:void 0,children:[o,r&&jsxRuntime.jsx(T.Body2,{color:"inherit",css:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},flexGrow:"1",fontWeight:"medium",lineHeight:"20px",part:"button-title",textWrap:"nowrap",children:r})]}))}function ei(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Primary",children:e}))}function oi(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Secondary",children:e}))}function ti(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Link",children:e}))}function ri(t){var r=t,{children:e}=r,o=f(r,["children"]);return jsxRuntime.jsx(oo,p(a({},o),{variant:"Plain",children:e}))}var v={};ce(v,{Column:()=>ai,Row:()=>ii});var ii=Oo__namespace.forwardRef((e,o)=>jsxRuntime.jsx(y,p(a({display:"flex",flexDirection:"row"},e),{ref:o}))),ai=Oo__namespace.forwardRef((e,o)=>jsxRuntime.jsx(y,p(a({display:"flex",flexDirection:"column"},e),{ref:o})));function Do(n){var i=n,{dismissible:e,flowId:o,part:t}=i,r=f(i,["dismissible","flowId","part"]);return jsxRuntime.jsx(U,p(a({as:null,flowId:o},r),{children:({handleDismiss:s,handlePrimary:l,handleSecondary:d,parentProps:{containerProps:u},step:m})=>{var C,R,w,F,B;let g=(C=m.props)!=null?C:{},x=(w=(R=m.primaryButton)==null?void 0:R.title)!=null?w:m.primaryButtonTitle,b=(B=(F=m.secondaryButton)==null?void 0:F.title)!=null?B:m.secondaryButtonTitle,P=m.$state.blocked;return jsxRuntime.jsxs(h,p(a(a({alignItems:"center","aria-label":"Banner",borderWidth:"md",display:"flex",flexDirection:"row",gap:3,justifyContent:"flex-start",part:["banner",t],role:"complementary"},u),g),{children:[m.imageUri&&jsxRuntime.jsx(y,{as:"img",part:"image",src:m.imageUri,style:{height:40,width:40,alignSelf:"center"}}),jsxRuntime.jsxs(v.Column,{marginInlineEnd:"auto",part:"banner-title-wrapper",children:[jsxRuntime.jsx(h.Title,{part:"title",children:m.title}),jsxRuntime.jsx(h.Subtitle,{part:"subtitle",children:m.subtitle})]}),jsxRuntime.jsx(h.Secondary,{disabled:P,title:b,onClick:d}),jsxRuntime.jsx(h.Primary,{disabled:P,title:x,onClick:l}),e&&jsxRuntime.jsx(h.Dismiss,{onClick:s})]}))}}))}var io={};ce(io,{Carousel:()=>Jt,Collapsible:()=>no,CollapsibleStep:()=>ze});var ve={};ce(ve,{Bar:()=>Ee,Dots:()=>At,Fraction:()=>Oe,Segments:()=>to});function Ee(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);let i=o>0?Math.min(e/o,1):0,s=i===0?"10px":`${100*i}%`;return jsxRuntime.jsx(y,p(a({"aria-description":"Progress represented as a bar","aria-label":"Progress Bar","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,backgroundColor:"neutral.800",borderRadius:"md",height:"10px",part:"progress-bar",role:"meter"},t),{children:jsxRuntime.jsx(y,{backgroundColor:"primary.surface",part:"progress-bar-fill",borderRadius:"md",height:"100%",style:{width:s},transition:"width 300ms ease-out"})}))}function At(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);if(o==1)return null;let i=[...Array(o)].map((s,l)=>jsxRuntime.jsx(y,{as:"circle",cx:4+16*l,cy:"4px",fill:e-1===l?E.colors.blue500:E.colors.blue800,part:["progress-dot",e-1===l?"progress-dot-filled":null],r:4},l));return jsxRuntime.jsx(y,p(a({"aria-description":"Progress represented as dots","aria-label":"Progress Dots","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,as:"svg",height:"8px",part:"progress-dots",role:"meter",viewBox:`0 0 ${16*o-8} 8`,width:16*o-8},t),{children:i}))}function Oe(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);return jsxRuntime.jsx(T.Body2,p(a({"aria-description":"Progress represented as a fraction of a total","aria-label":"Progress Fraction","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,part:"progress-fraction",role:"meter"},t),{children:`${e}/${o}`}))}function to(r){var n=r,{current:e,total:o}=n,t=f(n,["current","total"]);let i=[...Array(o)].map((s,l)=>jsxRuntime.jsx(y,{backgroundColor:e-1>=l?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%",minWidth:"10px",part:["progress-segment",e-1===l?"progress-segment-filled":null]},l));return jsxRuntime.jsx(v.Row,p(a({"aria-description":"Progress represented as a segmented bar","aria-label":"Progress Segments","aria-valuemin":"0","aria-valuemax":o,"aria-valuenow":e,gap:1,height:"10px",part:"progress-segments",role:"meter"},t),{children:i}))}function Mt(e){return jsxRuntime.jsx("svg",p(a({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 li(){return jsxRuntime.jsx(y,{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 Wt(t){var r=t,{checked:e=!1}=r,o=f(r,["checked"]);return jsxRuntime.jsx(y,p(a({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(y,{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(li,{})})}))}function fe(e,{onPrimary:o,onSecondary:t}={}){let{navigate:r}=Oo.useContext(L),n={"flow.back":(...i)=>e.flow.back(...i),"flow.complete":(...i)=>e.flow.complete(...i),"flow.forward":(...i)=>e.flow.forward(...i),"flow.restart":()=>e.flow.restart(),"flow.skip":(...i)=>e.flow.skip(...i),"flow.start":(...i)=>e.flow.start(...i),"step.complete":(...i)=>e.complete(...i),"step.skip":(...i)=>e.skip(...i),"step.reset":()=>e.reset(),"step.start":(...i)=>e.start(...i)};return {handlePrimary:Oo.useCallback((i,s,l=!0)=>M(this,null,function*(){if((yield o==null?void 0:o(e,i,s))===!1)return i.preventDefault(),!1;if(e.primaryButton!=null){let u=e.primaryButton.action===!1?!1:n[e.primaryButton.action];typeof u=="function"?yield u(s,l):u!==!1&&(yield e.complete(s,l)),e.primaryButton.uri!=null&&r(e.primaryButton.uri,e.primaryButton.target);}else yield e.complete(s,l),e.primaryButtonUri!=null&&r(e.primaryButtonUri,e.primaryButtonUriTarget);return !0}),[e]),handleSecondary:Oo.useCallback((i,s)=>M(this,null,function*(){if((yield t==null?void 0:t(e,i,s))===!1)return i.preventDefault(),!1;if(e.secondaryButton!=null){let d=e.secondaryButton.action===!1?!1:n[e.secondaryButton.action];typeof d=="function"?d():d!==!1&&e.complete(s),e.secondaryButton.uri!=null&&r(e.secondaryButton.uri,e.secondaryButton.target);}else e.complete(s),e.secondaryButtonUri!=null&&r(e.secondaryButtonUri,e.secondaryButtonUriTarget);return !0}),[e])}}function Nt({onPrimary:e,onSecondary:o,step:t}){var u,m;let{handlePrimary:r,handleSecondary:n}=fe(t,{onPrimary:e,onSecondary:o}),{blocked:i,completed:s,skipped:l}=t.$state,d=s||l||!i?jsxRuntime.jsx(Wt,{checked:s||l,marginLeft:"auto"}):jsxRuntime.jsx(y,{as:Mt,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:i,opacity:i?.5:1,children:[jsxRuntime.jsxs(v.Row,{marginBottom:"2",part:"carousel-step-header",children:[t.iconUri&&jsxRuntime.jsx(h.Media,{borderRadius:"0",height:"24px",src:t.iconUri,width:"24px"}),d]}),jsxRuntime.jsx(h.Title,{children:t.title}),jsxRuntime.jsx(h.Subtitle,{children:t.subtitle}),jsxRuntime.jsxs(v.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:i,onClick:n,title:(u=t.secondaryButton)==null?void 0:u.title}),jsxRuntime.jsx(h.Primary,{disabled:i,onClick:r,title:(m=t.primaryButton)==null?void 0:m.title})]})]})}function zt(e){return jsxRuntime.jsx("svg",p(a({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 Gt(e){return jsxRuntime.jsx("svg",p(a({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 Kt=react.keyframes`
55
55
  from {
56
56
  opacity: 0;
57
57
  }
@@ -93,7 +93,7 @@ var st=Object.defineProperty,sn=Object.defineProperties;var ln=Object.getOwnProp
93
93
  to {
94
94
  opacity: 1;
95
95
  }
96
- `;function go(R){var w=R,{align:e,alignOffset:o,autoScroll:t,defaultOpen:r,dismissible:n,flow:i,handleDismiss:s,modal:l,onPrimary:d,onSecondary:u,part:m,side:g,sideOffset:x,spotlight:b,step:P}=w,C=f(w,["align","alignOffset","autoScroll","defaultOpen","dismissible","flow","handleDismiss","modal","onPrimary","onSecondary","part","side","sideOffset","spotlight","step"]);var D,$,J,se,le;let{handlePrimary:F,handleSecondary:B}=fe(P,{onPrimary:d,onSecondary:u}),{videoProps:S,otherProps:O}=he(C),I=($=(D=P.primaryButton)==null?void 0:D.title)!=null?$:P.primaryButtonTitle,V=(se=(J=P.secondaryButton)==null?void 0:J.title)!=null?se:P.secondaryButtonTitle,k=!!P.$state.blocked;return jsxRuntime.jsx(Xo,p(a({align:e,alignOffset:o,anchor:P.selector,autoScroll:t,"data-step-id":P.id,defaultOpen:r,modal:l,part:m,side:g,sideOffset:x,spotlight:b},O),{children:jsxRuntime.jsxs(h,{animation:`${Ea} 300ms ease-out`,boxShadow:"md",maxWidth:"min(360px, calc(100vw - 25px))",children:[jsxRuntime.jsx(h.Media,a({aspectRatio:"2",borderRadius:"md md 0 0",borderWidth:"0",margin:"-5 -5 0",objectFit:"cover",overflowClipMargin:"unset",src:(le=P.videoUri)!=null?le:P.imageUri,transform:"translate3d(0, 0, 1px)",type:P.videoUri?"video":"image"},S)),jsxRuntime.jsx(h.Header,{css:{".fr-dismiss":{position:"absolute",right:"12px",top:"12px"}},dismissible:n,handleDismiss:s,subtitle:P.subtitle,title:P.title}),jsxRuntime.jsxs(h.Footer,{children:[i.getNumberOfAvailableSteps()>1&&jsxRuntime.jsx(Oe,{current:i.getCurrentStepOrder()+1,marginRight:"auto",total:i.getNumberOfAvailableSteps()}),jsxRuntime.jsx(h.Secondary,{disabled:k,onClick:B,title:V}),jsxRuntime.jsx(h.Primary,{disabled:k,onClick:F,title:I})]})]})}))}function $r(n){var i=n,{children:e,container:o,flowId:t}=i,r=f(i,["children","container","flowId"]);return jsxRuntime.jsx(hr,{container:o,children:jsxRuntime.jsx(y,p(a({"data-flow-id":t,part:"tour"},r),{children:e}))})}function yo(r){var n=r,{as:e,flowId:o}=n,t=f(n,["as","flowId"]);let{onDismiss:i,onPrimary:s,onSecondary:l}=t;return jsxRuntime.jsx(U,p(a({as:null,flowId:o},t),{children:({flow:d,handleDismiss:u,parentProps:m,step:g})=>{var le;let se=m.containerProps,{align:x="after",alignOffset:b=0,autoScroll:P=!1,container:C="body",defaultOpen:R,modal:w,part:F,sequential:B=!0,side:S="bottom",sideOffset:O=0,spotlight:I,zIndex:V=9999}=se,k=f(se,["align","alignOffset","autoScroll","container","defaultOpen","modal","part","sequential","side","sideOffset","spotlight","zIndex"]),{dismissible:D}=m,$=a({align:x,alignOffset:b,autoScroll:P,dismissible:D,flow:d,handleDismiss:u,modal:w,onPrimary:s,onSecondary:l,part:F,side:S,sideOffset:O,spotlight:I,step:g,zIndex:V},(le=g.props)!=null?le:{});if(B)return jsxRuntime.jsx($r,p(a({as:e,container:C,flowId:o,part:"tour",zIndex:V},k),{children:jsxRuntime.jsx(go,a({defaultOpen:R!=null?R:!0},$),g.id)}));let J=Array.from(d.steps.values()).filter(j=>{let{blocked:re,completed:pe,skipped:Y,visible:N}=j.$state;return !re&&!pe&&!Y&&N}).map(j=>{var Q,de,ne,be;function re(ie){return M(this,null,function*(){return (yield i==null?void 0:i(d,ie))===!1?(ie.preventDefault(),!1):(j.skip(),!0)})}let pe=I&&j.id===g.id,Y=(de=(Q=j.props)==null?void 0:Q.zIndex)!=null?de:V,N=a({align:x,alignOffset:b,dismissible:D,flow:d,handleDismiss:re,onPrimary:s,onSecondary:l,part:F,side:S,sideOffset:O,spotlight:I,zIndex:Y},(ne=j.props)!=null?ne:{});return jsxRuntime.jsx(go,a({css:{"&:has([aria-expanded=true])":{zIndex:Number(Y)+2},".fr-overlay":{zIndex:Number(Y)+1},".fr-progress-fraction":{display:"none"}},defaultOpen:(be=R||pe)!=null?be:!1,step:j},N),`${j.id}-${pe}`)});return jsxRuntime.jsx($r,p(a({as:e,container:C,flowId:o,part:"tour",zIndex:V},k),{children:J}))}}))}function xo(){let{frigade:e}=Oo.useContext(L),[,o]=Oo.useState(!1),t,r=Oo.useCallback(s=>{e==null||e.getCollections().then(()=>{s();});let l=()=>{clearTimeout(t),t=setTimeout(()=>{o(d=>!d),s();},0);};return e==null||e.onStateChange(l),()=>{e==null||e.removeStateChangeHandler(l);}},[]),n=()=>{let s;try{s=e==null?void 0:e.getCollectionsSync();}catch(l){}return s};return {collections:Oo.useSyncExternalStore(r,n,n)}}function bo(e){var l,d,u,m;let{frigade:o}=Oo.useContext(L),{collections:t}=xo(),r=t==null?void 0:t.get(e),i=(m=((u=(d=(l=t==null?void 0:t.get(e))==null?void 0:l.flows)==null?void 0:d.filter(g=>g.visible).map(g=>p(a({},g),{flow:o==null?void 0:o.getFlowSync(g.flowId)})))!=null?u:[]).find(({flow:g})=>g.isVisible))==null?void 0:m.flowId,{flow:s}=Te(i);return Oo.useEffect(()=>{o==null||o.registerCollection(e);},[e]),{collection:r,currentFlow:s}}function Jo(n){var i=n,{collectionId:e,part:o,variables:t={}}=i,r=f(i,["collectionId","part","variables"]);var u,m,g;let s={ANNOUNCEMENT:qo,BANNER:Do,CARD:h,CHECKLIST:no,EMBEDDED_TIP:h,FORM:Me,NPS_SURVEY:Ke,SURVEY:Ke,TOUR:yo},{currentFlow:l}=bo(e),d=(m=s[(u=l==null?void 0:l.rawData)==null?void 0:u.flowType])!=null?m:null;return l==null||d==null?null:((g=l==null?void 0:l.rawData)==null?void 0:g.flowType)===js.FlowType.FORM?jsxRuntime.jsx(y,p(a({part:["collection",o],"data-collection-id":e},r),{children:jsxRuntime.jsx(Me,{flowId:l.id,as:A,variables:t},l.id)})):jsxRuntime.jsx(y,p(a({part:["collection",o],"data-collection-id":e},r),{children:jsxRuntime.jsx(d,{flowId:l.id,variables:t},l.id)}))}function Vr(){var t,r;let{collections:e}=xo(),o=(r=Array.from((t=e==null?void 0:e.entries())!=null?t:[]).find(n=>n[1].collectionType==="DEFAULT"))==null?void 0:r[0];return bo(o),o==null?null:jsxRuntime.jsx(Jo,{as:null,collectionId:o})}var L=Oo.createContext({apiKey:"",navigate:()=>{},hasInitialized:!1,registerComponent:()=>{},unregisterComponent:()=>{},variables:{}});function Zo(){let{frigade:e}=Oo.useContext(L);return {frigade:e,isLoading:!(e!=null&&e.isReady())}}function Mr(){let{frigade:e}=Zo();return Oo.useEffect(()=>{M(this,null,function*(){(yield e.getFlows()).forEach(t=>{t.steps.forEach(r=>{if(r.imageUri){let n=new Image;n.src=r.imageUri;}});});});},[]),null}var Wr="2.5.28";function zr(s){var l=s,{children:e,css:o={},defaultCollection:t=!0,navigate:r,theme:n}=l,i=f(l,["children","css","defaultCollection","navigate","theme"]);let d=n?Ro(n):{},u=Oo.useRef(new Map),m=Oo.useRef(),[g,x]=Oo.useState(!1),b=Oo.useMemo(()=>(x(!1),m.current=void 0,new js.Frigade(i.apiKey,{apiKey:i.apiKey,apiUrl:i.apiUrl,userId:i.userId,groupId:i.groupId,userProperties:i.userProperties,groupProperties:i.groupProperties,generateGuestId:i.generateGuestId,syncOnWindowUpdates:i.syncOnWindowUpdates,__readOnly:i.__readOnly,__flowStateOverrides:i.__flowStateOverrides,__platformVersion:Wr,__platformName:"React"})),[i.userId,i.groupId,i.apiKey]);Oo.useEffect(()=>{if(i.__flowStateOverrides){let F=b.getConfig();F.__flowStateOverrides=i.__flowStateOverrides,b.reload(F);}},[i.__flowStateOverrides]);function P(){let F=[...u.current.entries()].map(([B,S])=>[B,S.callback]);b.batchRegister(F),x(!0);}function C(F,B){if(m.current&&clearTimeout(m.current),g){u.current.has(F)?b.getFlow(F).then(S=>B(S.isVisible)):(b.getFlow(F).then(S=>S.register(B)),u.current.set(F,{callback:B}));return}u.current.has(F)||u.current.set(F,{callback:B}),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(),0);}function R(F){u.current.has(F)&&b.getFlow(F).then(B=>{u.current.delete(F),B==null||B.unregister();});}let w=r!=null?r:(F,B="_self")=>{window.open(F,B);};return Oo.useEffect(()=>()=>{b.destroy();},[]),jsxRuntime.jsxs(L.Provider,{value:p(a({navigate:w},i),{frigade:b,registerComponent:C,unregisterComponent:R,hasInitialized:g,variables:i.variables||{}}),children:[jsxRuntime.jsx(react.Global,{styles:{":root":a(a(a({},To),d),o)}}),jsxRuntime.jsxs(react.ThemeProvider,{theme:E,children:[t&&jsxRuntime.jsx(Vr,{}),e]}),i.preloadImages!==!1&&jsxRuntime.jsx(Mr,{})]})}function Te(e,o){let{frigade:t,variables:r}=Oo.useContext(L),[,n]=Oo.useState(!1),i=Oo.useCallback(l=>{t==null||t.getFlow(e).then(()=>{l();});let d=u=>{u.id===e&&setTimeout(()=>{n(m=>!m),l();},0);};return t==null||t.onStateChange(d),()=>{t==null||t.removeStateChangeHandler(d);}},[e,t]),s=Oo.useSyncExternalStore(i,()=>t==null?void 0:t.getFlowSync(e),()=>t==null?void 0:t.getFlowSync(e));return Oo.useEffect(()=>{s==null||s.applyVariables(a(a({},r),o==null?void 0:o.variables));},[o==null?void 0:o.variables,e,r]),{flow:s,isLoading:t!=null&&t.hasFailedToLoad()?!1:!s}}function Qo(e,{onComplete:o,onDismiss:t}={}){let r=Oo.useRef(null);return Oo.useEffect(()=>{if(e==null)return;function n(){return M(this,null,function*(){e.isCompleted&&r.current===!1&&(r.current=!0,yield o==null?void 0:o(e));})}return n(),r.current=e==null?void 0:e.isCompleted,()=>{n();}},[e==null?void 0:e.isCompleted]),{handleDismiss:Oo.useCallback(n=>M(this,null,function*(){if((yield t==null?void 0:t(e,n))===!1)return n.preventDefault(),!1;e.skip();}),[e])}}var ye=new Set;function et(e,o=!0){let t=Oo.useCallback(()=>{ye.has(e==null?void 0:e.id)&&ye.delete(e==null?void 0:e.id);},[ye,o]),r=Oo.useCallback(()=>{o&&(e!=null&&e.isVisible)&&!ye.has(e.id)&&ye.add(e.id);},[ye,o]);Oo.useEffect(()=>()=>{t();},[]),Oo.useEffect(()=>{r();let i=()=>{t();};return window.addEventListener("popstate",i),window.addEventListener("beforeunload",i),()=>{t(),window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",i);}},[r,t]),e!=null&&e.isVisible?r():t();let n=ye.size>0?ye.values().next().value:null;return {isCurrentModal:o?n===(e==null?void 0:e.id)||ye.size==0:!0}}function U(u){var m=u,{as:e,children:o,flowId:t,onComplete:r,onDismiss:n,onPrimary:i,onSecondary:s,variables:l}=m,d=f(m,["as","children","flowId","onComplete","onDismiss","onPrimary","onSecondary","variables"]);var k,$;let{flow:g}=Te(t,{variables:l}),D=a(a({},d),(k=g==null?void 0:g.props)!=null?k:{}),{dismissible:x=!1,forceMount:b=!1}=D,P=f(D,["dismissible","forceMount"]),C=g==null?void 0:g.getCurrentStep(),{handleDismiss:R}=Qo(g,{onComplete:r,onDismiss:n}),{handlePrimary:w,handleSecondary:F}=fe(C,{onPrimary:i,onSecondary:s}),B=(P==null?void 0:P.modal)||typeof e=="function"&&(e==null?void 0:e.displayName)==="Dialog"||[js.FlowType.ANNOUNCEMENT,js.FlowType.TOUR].includes(($=g==null?void 0:g.rawData)==null?void 0:$.flowType),{isCurrentModal:S}=et(g,B),O=b&&((g==null?void 0:g.isCompleted)||(g==null?void 0:g.isSkipped));if(!g||!g.isVisible&&!O||!O&&!S)return null;(O||!g.isCompleted&&!g.isSkipped)&&(C==null||C.start());let I=e===null?Oo.Fragment:e!=null?e:y,V=p(a({},P),{"data-flow-id":g.id});return jsxRuntime.jsx(I,p(a({},e===null?{}:V),{children:o({flow:g,handleDismiss:R,handlePrimary:w,handleSecondary:F,parentProps:{dismissible:x,flowId:t,variables:l,containerProps:V},step:C})}))}function Xr(t){var r=t,{part:e}=r,o=f(r,["part"]);return jsxRuntime.jsx(U,p(a({as:h,gap:5,borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",part:["card",e]},o),{children:({handleDismiss:n,handlePrimary:i,handleSecondary:s,parentProps:{dismissible:l},step:d})=>{var x,b,P,C,R,w;let u=(b=(x=d.primaryButton)==null?void 0:x.title)!=null?b:d.primaryButtonTitle,m=(C=(P=d.secondaryButton)==null?void 0:P.title)!=null?C:d.secondaryButtonTitle,{videoProps:g}=he((R=d.props)!=null?R:{});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(h.Header,{dismissible:l,handleDismiss:n,subtitle:d.subtitle,title:d.title}),jsxRuntime.jsx(h.Media,a({src:(w=d.videoUri)!=null?w:d.imageUri,type:d.videoUri?"video":"image",css:{objectFit:"contain",width:"100%"}},g)),jsxRuntime.jsxs(v.Row,{gap:3,justifyContent:"flex-end",part:"card-footer",children:[jsxRuntime.jsx(h.Secondary,{title:m,onClick:s}),jsxRuntime.jsx(h.Primary,{title:u,onClick:i})]})]})}}))}function Po(r){var n=r,{part:e,src:o}=n,t=f(n,["part","src"]);return jsxRuntime.jsx(y,a({as:"img",maxWidth:"unset",part:["image",e],src:o},t))}function is(e){var o,t,r,n,i;return e.includes("youtube")?`https://www.youtube.com/embed/${(o=e.split("v=")[1])==null?void 0:o.split("&")[0]}`:e.includes("youtu.be")?`https://www.youtube.com/embed/${(t=e.split("youtu.be/")[1])==null?void 0:t.split("&")[0]}`:e.includes("vimeo")?`https://player.vimeo.com/video/${(r=e.split("vimeo.com/")[1])==null?void 0:r.split("&")[0]}`:e.includes("wistia")?`https://fast.wistia.net/embed/iframe/${(n=e.split("wistia.com/medias/")[1])==null?void 0:n.split("&")[0]}`:e.includes("loom")?`https://loom.com/embed/${(i=e.split("loom.com/share/")[1])==null?void 0:i.split("&")[0]}?hideEmbedTopBar=true&hide_title=true&hide_share=true&hide_owner=true`:null}function Co(P){var C=P,{autoPlay:e,controls:o,controlsList:t,crossOrigin:r,disablePictureInPicture:n,disableRemotePlayback:i,loop:s,muted:l,playsInline:d,poster:u,preload:m,part:g,src:x}=C,b=f(C,["autoPlay","controls","controlsList","crossOrigin","disablePictureInPicture","disableRemotePlayback","loop","muted","playsInline","poster","preload","part","src"]);let R=is(x);return R?jsxRuntime.jsx(y,a({allow:"accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",allowFullScreen:!0,as:"iframe",backgroundColor:"neutral.100",borderWidth:"0",part:["video",g],src:R},b)):x!=null&&x.endsWith(".mp4")?jsxRuntime.jsx(y,a({as:"video",part:["video",g],src:x,autoPlay:e,controls:o!=null?o:!0,controlsList:t,crossOrigin:r,disablePictureInPicture:n,disableRemotePlayback:i,loop:s,muted:l!=null?l:e,playsInline:d,poster:u,preload:m},b)):(console.error(`Could not map videoUri ${x} to a known provider (Youtube, Vimeo, Wistia, Loom) or valid mp4 file.`),null)}function Ce(r){var n=r,{src:e,type:o}=n,t=f(n,["src","type"]);return jsxRuntime.jsx(o==="video"?Co:Po,a({src:e},t))}var h=Oo__namespace.forwardRef((i,n)=>{var s=i,{children:e,flowId:o,part:t}=s,r=f(s,["children","flowId","part"]);var d;if(o!=null)return jsxRuntime.jsx(Xr,a({flowId:o},r));let l=(d=r.as)!=null?d:v.Column;return jsxRuntime.jsx(l,p(a({backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderRadius:"md",borderWidth:"0",gap:5,p:5,part:["card",t]},r),{ref:n,children:e}))});h.Dismiss=e=>jsxRuntime.jsx(H.Plain,p(a({"aria-label":"Dismiss",part:"dismiss",padding:0},e),{children:jsxRuntime.jsx(ke,{height:"20",fill:"currentColor"})}));h.Footer=r=>{var n=r,{children:e,part:o}=n,t=f(n,["children","part"]);return jsxRuntime.jsx(v.Row,p(a({alignItems:"center",gap:3,justifyContent:"flex-end",part:["card-footer",o]},t),{children:e}))};h.Header=s=>{var l=s,{dismissible:e,handleDismiss:o,part:t,subtitle:r,title:n}=l,i=f(l,["dismissible","handleDismiss","part","subtitle","title"]);return jsxRuntime.jsxs(v.Row,p(a({alignItems:"flex-start",flexWrap:"wrap",gap:1,part:["card-header",t]},i),{children:[jsxRuntime.jsx(h.Title,{maxWidth:"calc(100% - 32px)",children:n}),e&&jsxRuntime.jsx(h.Dismiss,{onClick:o,marginLeft:"auto"}),jsxRuntime.jsx(h.Subtitle,{color:"neutral.400",flexBasis:"100%",children:r})]}))};h.Media=t=>{var r=t,{src:e}=r,o=f(r,["src"]);return e==null||(e==null?void 0:e.length)===0?null:jsxRuntime.jsx(Ce,a({borderRadius:"md",src:e},o))};h.Primary=r=>{var n=r,{onClick:e,title:o}=n,t=f(n,["onClick","title"]);return o==null||(o==null?void 0:o.length)===0?null:jsxRuntime.jsx(H.Primary,a({title:o,onClick:e},t))};h.Secondary=r=>{var n=r,{onClick:e,title:o}=n,t=f(n,["onClick","title"]);return o==null||(o==null?void 0:o.length)===0?null:jsxRuntime.jsx(H.Secondary,a({title:o,onClick:e},t))};h.Subtitle=r=>{var n=r,{children:e,part:o}=n,t=f(n,["children","part"]);return e==null?null:jsxRuntime.jsx(T.Body2,p(a({display:"block",color:"neutral.400",part:["subtitle",o]},t),{children:e}))};h.Title=r=>{var n=r,{children:e,part:o}=n,t=f(n,["children","part"]);return e==null?null:jsxRuntime.jsx(T.H4,p(a({display:"block",part:["title",o]},t),{children:e}))};var So={content:["onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside"],root:["defaultOpen","modal","onOpenChange","open"]};function Zr(e){let o=Object.fromEntries(So.content.map(n=>[n,e[n]]).filter(n=>n[1]!==void 0)),t=Object.fromEntries(So.root.map(n=>[n,e[n]]).filter(n=>n[1]!==void 0)),r={};for(let n of Object.keys(e))!So.content.some(i=>i===n)&&!So.root.some(i=>i===n)&&(r[n]=e[n]);return {contentProps:o,otherProps:r,rootProps:t}}var ps=react.keyframes`
96
+ `;function go(R){var w=R,{align:e,alignOffset:o,autoScroll:t,defaultOpen:r,dismissible:n,flow:i,handleDismiss:s,modal:l,onPrimary:d,onSecondary:u,part:m,side:g,sideOffset:x,spotlight:b,step:P}=w,C=f(w,["align","alignOffset","autoScroll","defaultOpen","dismissible","flow","handleDismiss","modal","onPrimary","onSecondary","part","side","sideOffset","spotlight","step"]);var D,$,J,se,le;let{handlePrimary:F,handleSecondary:B}=fe(P,{onPrimary:d,onSecondary:u}),{videoProps:S,otherProps:O}=he(C),I=($=(D=P.primaryButton)==null?void 0:D.title)!=null?$:P.primaryButtonTitle,V=(se=(J=P.secondaryButton)==null?void 0:J.title)!=null?se:P.secondaryButtonTitle,k=!!P.$state.blocked;return jsxRuntime.jsx(Xo,p(a({align:e,alignOffset:o,anchor:P.selector,autoScroll:t,"data-step-id":P.id,defaultOpen:r,modal:l,part:m,side:g,sideOffset:x,spotlight:b},O),{children:jsxRuntime.jsxs(h,{animation:`${Ea} 300ms ease-out`,boxShadow:"md",maxWidth:"min(360px, calc(100vw - 25px))",children:[jsxRuntime.jsx(h.Media,a({aspectRatio:"2",borderRadius:"md md 0 0",borderWidth:"0",margin:"-5 -5 0",objectFit:"cover",overflowClipMargin:"unset",src:(le=P.videoUri)!=null?le:P.imageUri,transform:"translate3d(0, 0, 1px)",type:P.videoUri?"video":"image"},S)),jsxRuntime.jsx(h.Header,{css:{".fr-dismiss":{position:"absolute",right:"12px",top:"12px"}},dismissible:n,handleDismiss:s,subtitle:P.subtitle,title:P.title}),jsxRuntime.jsxs(h.Footer,{children:[i.getNumberOfAvailableSteps()>1&&jsxRuntime.jsx(Oe,{current:i.getCurrentStepOrder()+1,marginRight:"auto",total:i.getNumberOfAvailableSteps()}),jsxRuntime.jsx(h.Secondary,{disabled:k,onClick:B,title:V}),jsxRuntime.jsx(h.Primary,{disabled:k,onClick:F,title:I})]})]})}))}function $r(n){var i=n,{children:e,container:o,flowId:t}=i,r=f(i,["children","container","flowId"]);return jsxRuntime.jsx(hr,{container:o,children:jsxRuntime.jsx(y,p(a({"data-flow-id":t,part:"tour"},r),{children:e}))})}function yo(r){var n=r,{as:e,flowId:o}=n,t=f(n,["as","flowId"]);let{onDismiss:i,onPrimary:s,onSecondary:l}=t;return jsxRuntime.jsx(U,p(a({as:null,flowId:o},t),{children:({flow:d,handleDismiss:u,parentProps:m,step:g})=>{var le;let se=m.containerProps,{align:x="after",alignOffset:b=0,autoScroll:P=!1,container:C="body",defaultOpen:R,modal:w,part:F,sequential:B=!0,side:S="bottom",sideOffset:O=0,spotlight:I,zIndex:V=9999}=se,k=f(se,["align","alignOffset","autoScroll","container","defaultOpen","modal","part","sequential","side","sideOffset","spotlight","zIndex"]),{dismissible:D}=m,$=a({align:x,alignOffset:b,autoScroll:P,dismissible:D,flow:d,handleDismiss:u,modal:w,onPrimary:s,onSecondary:l,part:F,side:S,sideOffset:O,spotlight:I,step:g,zIndex:V},(le=g.props)!=null?le:{});if(B)return jsxRuntime.jsx($r,p(a({as:e,container:C,flowId:o,part:"tour",zIndex:V},k),{children:jsxRuntime.jsx(go,a({defaultOpen:R!=null?R:!0},$),g.id)}));let J=Array.from(d.steps.values()).filter(j=>{let{blocked:re,completed:pe,skipped:Y,visible:N}=j.$state;return !re&&!pe&&!Y&&N}).map(j=>{var Q,de,ne,be;function re(ie){return M(this,null,function*(){return (yield i==null?void 0:i(d,ie))===!1?(ie.preventDefault(),!1):(j.skip(),!0)})}let pe=I&&j.id===g.id,Y=(de=(Q=j.props)==null?void 0:Q.zIndex)!=null?de:V,N=a({align:x,alignOffset:b,dismissible:D,flow:d,handleDismiss:re,onPrimary:s,onSecondary:l,part:F,side:S,sideOffset:O,spotlight:I,zIndex:Y},(ne=j.props)!=null?ne:{});return jsxRuntime.jsx(go,a({css:{"&:has([aria-expanded=true])":{zIndex:Number(Y)+2},".fr-overlay":{zIndex:Number(Y)+1},".fr-progress-fraction":{display:"none"}},defaultOpen:(be=R||pe)!=null?be:!1,step:j},N),`${j.id}-${pe}`)});return jsxRuntime.jsx($r,p(a({as:e,container:C,flowId:o,part:"tour",zIndex:V},k),{children:J}))}}))}function xo(){let{frigade:e}=Oo.useContext(L),[,o]=Oo.useState(!1),t,r=Oo.useCallback(s=>{e==null||e.getCollections().then(()=>{s();});let l=()=>{clearTimeout(t),t=setTimeout(()=>{o(d=>!d),s();},0);};return e==null||e.onStateChange(l),()=>{e==null||e.removeStateChangeHandler(l);}},[]),n=()=>{let s;try{s=e==null?void 0:e.getCollectionsSync();}catch(l){}return s};return {collections:Oo.useSyncExternalStore(r,n,n)}}function bo(e){var l,d,u,m;let{frigade:o}=Oo.useContext(L),{collections:t}=xo(),r=t==null?void 0:t.get(e),i=(m=((u=(d=(l=t==null?void 0:t.get(e))==null?void 0:l.flows)==null?void 0:d.filter(g=>g.visible).map(g=>p(a({},g),{flow:o==null?void 0:o.getFlowSync(g.flowId)})))!=null?u:[]).find(({flow:g})=>g.isVisible))==null?void 0:m.flowId,{flow:s}=Te(i);return Oo.useEffect(()=>{o==null||o.registerCollection(e);},[e]),{collection:r,currentFlow:s}}function Jo(n){var i=n,{collectionId:e,part:o,variables:t={}}=i,r=f(i,["collectionId","part","variables"]);var u,m,g;let s={ANNOUNCEMENT:qo,BANNER:Do,CARD:h,CHECKLIST:no,EMBEDDED_TIP:h,FORM:Me,NPS_SURVEY:Ke,SURVEY:Ke,TOUR:yo},{currentFlow:l}=bo(e),d=(m=s[(u=l==null?void 0:l.rawData)==null?void 0:u.flowType])!=null?m:null;return l==null||d==null?null:((g=l==null?void 0:l.rawData)==null?void 0:g.flowType)===js.FlowType.FORM?jsxRuntime.jsx(y,p(a({part:["collection",o],"data-collection-id":e},r),{children:jsxRuntime.jsx(Me,{flowId:l.id,as:A,variables:t},l.id)})):jsxRuntime.jsx(y,p(a({part:["collection",o],"data-collection-id":e},r),{children:jsxRuntime.jsx(d,{flowId:l.id,variables:t},l.id)}))}function Vr(){var t,r;let{collections:e}=xo(),o=(r=Array.from((t=e==null?void 0:e.entries())!=null?t:[]).find(n=>n[1].collectionType==="DEFAULT"))==null?void 0:r[0];return bo(o),o==null?null:jsxRuntime.jsx(Jo,{as:null,collectionId:o})}var L=Oo.createContext({apiKey:"",navigate:()=>{},hasInitialized:!1,registerComponent:()=>{},unregisterComponent:()=>{},variables:{}});function Zo(){let{frigade:e}=Oo.useContext(L);return {frigade:e,isLoading:!(e!=null&&e.isReady())}}function Mr(){let{frigade:e}=Zo();return Oo.useEffect(()=>{M(this,null,function*(){(yield e.getFlows()).forEach(t=>{t.steps.forEach(r=>{if(r.imageUri){let n=new Image;n.src=r.imageUri;}});});});},[]),null}var Wr="2.5.29";function zr(s){var l=s,{children:e,css:o={},defaultCollection:t=!0,navigate:r,theme:n}=l,i=f(l,["children","css","defaultCollection","navigate","theme"]);let d=n?Ro(n):{},u=Oo.useRef(new Map),m=Oo.useRef(),[g,x]=Oo.useState(!1),b=Oo.useMemo(()=>(x(!1),m.current=void 0,new js.Frigade(i.apiKey,{apiKey:i.apiKey,apiUrl:i.apiUrl,userId:i.userId,groupId:i.groupId,userProperties:i.userProperties,groupProperties:i.groupProperties,generateGuestId:i.generateGuestId,syncOnWindowUpdates:i.syncOnWindowUpdates,__readOnly:i.__readOnly,__flowStateOverrides:i.__flowStateOverrides,__platformVersion:Wr,__platformName:"React"})),[i.userId,i.groupId,i.apiKey]);Oo.useEffect(()=>{if(i.__flowStateOverrides){let F=b.getConfig();F.__flowStateOverrides=i.__flowStateOverrides,b.reload(F);}},[i.__flowStateOverrides]);function P(){let F=[...u.current.entries()].map(([B,S])=>[B,S.callback]);b.batchRegister(F),x(!0);}function C(F,B){if(m.current&&clearTimeout(m.current),g){u.current.has(F)?b.getFlow(F).then(S=>B(S.isVisible)):(b.getFlow(F).then(S=>S.register(B)),u.current.set(F,{callback:B}));return}u.current.has(F)||u.current.set(F,{callback:B}),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>P(),0);}function R(F){u.current.has(F)&&b.getFlow(F).then(B=>{u.current.delete(F),B==null||B.unregister();});}let w=r!=null?r:(F,B="_self")=>{window.open(F,B);};return Oo.useEffect(()=>()=>{b.destroy();},[]),jsxRuntime.jsxs(L.Provider,{value:p(a({navigate:w},i),{frigade:b,registerComponent:C,unregisterComponent:R,hasInitialized:g,variables:i.variables||{}}),children:[jsxRuntime.jsx(react.Global,{styles:{":root":a(a(a({},To),d),o)}}),jsxRuntime.jsxs(react.ThemeProvider,{theme:E,children:[t&&jsxRuntime.jsx(Vr,{}),e]}),i.preloadImages!==!1&&jsxRuntime.jsx(Mr,{})]})}function Te(e,o){let{frigade:t,variables:r}=Oo.useContext(L),[,n]=Oo.useState(!1),i=Oo.useCallback(l=>{t==null||t.getFlow(e).then(()=>{l();});let d=u=>{u.id===e&&setTimeout(()=>{n(m=>!m),l();},0);};return t==null||t.onStateChange(d),()=>{t==null||t.removeStateChangeHandler(d);}},[e,t]),s=Oo.useSyncExternalStore(i,()=>t==null?void 0:t.getFlowSync(e),()=>t==null?void 0:t.getFlowSync(e));return Oo.useEffect(()=>{s==null||s.applyVariables(a(a({},r),o==null?void 0:o.variables));},[o==null?void 0:o.variables,e,r]),{flow:s,isLoading:t!=null&&t.hasFailedToLoad()?!1:!s}}function Qo(e,{onComplete:o,onDismiss:t}={}){let r=Oo.useRef(null);return Oo.useEffect(()=>{if(e==null)return;function n(){return M(this,null,function*(){e.isCompleted&&r.current===!1&&(r.current=!0,yield o==null?void 0:o(e));})}return n(),r.current=e==null?void 0:e.isCompleted,()=>{n();}},[e==null?void 0:e.isCompleted]),{handleDismiss:Oo.useCallback(n=>M(this,null,function*(){if((yield t==null?void 0:t(e,n))===!1)return n.preventDefault(),!1;e.skip();}),[e])}}var ye=new Set;function et(e,o=!0){let t=Oo.useCallback(()=>{ye.has(e==null?void 0:e.id)&&ye.delete(e==null?void 0:e.id);},[ye,o]),r=Oo.useCallback(()=>{o&&(e!=null&&e.isVisible)&&!ye.has(e.id)&&ye.add(e.id);},[ye,o]);Oo.useEffect(()=>()=>{t();},[]),Oo.useEffect(()=>{r();let i=()=>{t();};return window.addEventListener("popstate",i),window.addEventListener("beforeunload",i),()=>{t(),window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",i);}},[r,t]),e!=null&&e.isVisible?r():t();let n=ye.size>0?ye.values().next().value:null;return {isCurrentModal:o?n===(e==null?void 0:e.id)||ye.size==0:!0}}function U(u){var m=u,{as:e,children:o,flowId:t,onComplete:r,onDismiss:n,onPrimary:i,onSecondary:s,variables:l}=m,d=f(m,["as","children","flowId","onComplete","onDismiss","onPrimary","onSecondary","variables"]);var k,$;let{flow:g}=Te(t,{variables:l}),D=a(a({},d),(k=g==null?void 0:g.props)!=null?k:{}),{dismissible:x=!1,forceMount:b=!1}=D,P=f(D,["dismissible","forceMount"]),C=g==null?void 0:g.getCurrentStep(),{handleDismiss:R}=Qo(g,{onComplete:r,onDismiss:n}),{handlePrimary:w,handleSecondary:F}=fe(C,{onPrimary:i,onSecondary:s}),B=(P==null?void 0:P.modal)||typeof e=="function"&&(e==null?void 0:e.displayName)==="Dialog"||[js.FlowType.ANNOUNCEMENT,js.FlowType.TOUR].includes(($=g==null?void 0:g.rawData)==null?void 0:$.flowType),{isCurrentModal:S}=et(g,B),O=b&&((g==null?void 0:g.isCompleted)||(g==null?void 0:g.isSkipped));if(!g||!g.isVisible&&!O||!O&&!S)return null;(O||!g.isCompleted&&!g.isSkipped)&&(C==null||C.start());let I=e===null?Oo.Fragment:e!=null?e:y,V=p(a({},P),{"data-flow-id":g.id});return jsxRuntime.jsx(I,p(a({},e===null?{}:V),{children:o({flow:g,handleDismiss:R,handlePrimary:w,handleSecondary:F,parentProps:{dismissible:x,flowId:t,variables:l,containerProps:V},step:C})}))}function Xr(t){var r=t,{part:e}=r,o=f(r,["part"]);return jsxRuntime.jsx(U,p(a({as:h,gap:5,borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",part:["card",e]},o),{children:({handleDismiss:n,handlePrimary:i,handleSecondary:s,parentProps:{dismissible:l},step:d})=>{var x,b,P,C,R,w;let u=(b=(x=d.primaryButton)==null?void 0:x.title)!=null?b:d.primaryButtonTitle,m=(C=(P=d.secondaryButton)==null?void 0:P.title)!=null?C:d.secondaryButtonTitle,{videoProps:g}=he((R=d.props)!=null?R:{});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(h.Header,{dismissible:l,handleDismiss:n,subtitle:d.subtitle,title:d.title}),jsxRuntime.jsx(h.Media,a({src:(w=d.videoUri)!=null?w:d.imageUri,type:d.videoUri?"video":"image",css:{objectFit:"contain",width:"100%"}},g)),jsxRuntime.jsxs(v.Row,{gap:3,justifyContent:"flex-end",part:"card-footer",children:[jsxRuntime.jsx(h.Secondary,{title:m,onClick:s}),jsxRuntime.jsx(h.Primary,{title:u,onClick:i})]})]})}}))}function Po(r){var n=r,{part:e,src:o}=n,t=f(n,["part","src"]);return jsxRuntime.jsx(y,a({as:"img",maxWidth:"unset",part:["image",e],src:o},t))}function is(e){var o,t,r,n,i;return e.includes("youtube")?`https://www.youtube.com/embed/${(o=e.split("v=")[1])==null?void 0:o.split("&")[0]}`:e.includes("youtu.be")?`https://www.youtube.com/embed/${(t=e.split("youtu.be/")[1])==null?void 0:t.split("&")[0]}`:e.includes("vimeo")?`https://player.vimeo.com/video/${(r=e.split("vimeo.com/")[1])==null?void 0:r.split("&")[0]}`:e.includes("wistia")?`https://fast.wistia.net/embed/iframe/${(n=e.split("wistia.com/medias/")[1])==null?void 0:n.split("&")[0]}`:e.includes("loom")?`https://loom.com/embed/${(i=e.split("loom.com/share/")[1])==null?void 0:i.split("&")[0]}?hideEmbedTopBar=true&hide_title=true&hide_share=true&hide_owner=true`:null}function Co(P){var C=P,{autoPlay:e,controls:o,controlsList:t,crossOrigin:r,disablePictureInPicture:n,disableRemotePlayback:i,loop:s,muted:l,playsInline:d,poster:u,preload:m,part:g,src:x}=C,b=f(C,["autoPlay","controls","controlsList","crossOrigin","disablePictureInPicture","disableRemotePlayback","loop","muted","playsInline","poster","preload","part","src"]);let R=is(x);return R?jsxRuntime.jsx(y,a({allow:"accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",allowFullScreen:!0,as:"iframe",backgroundColor:"neutral.100",borderWidth:"0",part:["video",g],src:R},b)):x!=null&&x.endsWith(".mp4")?jsxRuntime.jsx(y,a({as:"video",part:["video",g],src:x,autoPlay:e,controls:o!=null?o:!0,controlsList:t,crossOrigin:r,disablePictureInPicture:n,disableRemotePlayback:i,loop:s,muted:l!=null?l:e,playsInline:d,poster:u,preload:m},b)):(console.error(`Could not map videoUri ${x} to a known provider (Youtube, Vimeo, Wistia, Loom) or valid mp4 file.`),null)}function Ce(r){var n=r,{src:e,type:o}=n,t=f(n,["src","type"]);return jsxRuntime.jsx(o==="video"?Co:Po,a({src:e},t))}var h=Oo__namespace.forwardRef((i,n)=>{var s=i,{children:e,flowId:o,part:t}=s,r=f(s,["children","flowId","part"]);var d;if(o!=null)return jsxRuntime.jsx(Xr,a({flowId:o},r));let l=(d=r.as)!=null?d:v.Column;return jsxRuntime.jsx(l,p(a({backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderRadius:"md",borderWidth:"0",gap:5,p:5,part:["card",t]},r),{ref:n,children:e}))});h.Dismiss=e=>jsxRuntime.jsx(H.Plain,p(a({"aria-label":"Dismiss",part:"dismiss",padding:0},e),{children:jsxRuntime.jsx(ke,{height:"20",fill:"currentColor"})}));h.Footer=r=>{var n=r,{children:e,part:o}=n,t=f(n,["children","part"]);return jsxRuntime.jsx(v.Row,p(a({alignItems:"center",gap:3,justifyContent:"flex-end",part:["card-footer",o]},t),{children:e}))};h.Header=s=>{var l=s,{dismissible:e,handleDismiss:o,part:t,subtitle:r,title:n}=l,i=f(l,["dismissible","handleDismiss","part","subtitle","title"]);return jsxRuntime.jsxs(v.Row,p(a({alignItems:"flex-start",flexWrap:"wrap",gap:1,part:["card-header",t]},i),{children:[jsxRuntime.jsx(h.Title,{maxWidth:"calc(100% - 32px)",children:n}),e&&jsxRuntime.jsx(h.Dismiss,{onClick:o,marginLeft:"auto"}),jsxRuntime.jsx(h.Subtitle,{color:"neutral.400",flexBasis:"100%",children:r})]}))};h.Media=t=>{var r=t,{src:e}=r,o=f(r,["src"]);return e==null||(e==null?void 0:e.length)===0?null:jsxRuntime.jsx(Ce,a({borderRadius:"md",src:e},o))};h.Primary=r=>{var n=r,{onClick:e,title:o}=n,t=f(n,["onClick","title"]);return o==null||(o==null?void 0:o.length)===0?null:jsxRuntime.jsx(H.Primary,a({title:o,onClick:e},t))};h.Secondary=r=>{var n=r,{onClick:e,title:o}=n,t=f(n,["onClick","title"]);return o==null||(o==null?void 0:o.length)===0?null:jsxRuntime.jsx(H.Secondary,a({title:o,onClick:e},t))};h.Subtitle=r=>{var n=r,{children:e,part:o}=n,t=f(n,["children","part"]);return e==null?null:jsxRuntime.jsx(T.Body2,p(a({display:"block",color:"neutral.400",part:["subtitle",o]},t),{children:e}))};h.Title=r=>{var n=r,{children:e,part:o}=n,t=f(n,["children","part"]);return e==null?null:jsxRuntime.jsx(T.H4,p(a({display:"block",part:["title",o]},t),{children:e}))};var So={content:["onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside"],root:["defaultOpen","modal","onOpenChange","open"]};function Zr(e){let o=Object.fromEntries(So.content.map(n=>[n,e[n]]).filter(n=>n[1]!==void 0)),t=Object.fromEntries(So.root.map(n=>[n,e[n]]).filter(n=>n[1]!==void 0)),r={};for(let n of Object.keys(e))!So.content.some(i=>i===n)&&!So.root.some(i=>i===n)&&(r[n]=e[n]);return {contentProps:o,otherProps:r,rootProps:t}}var ps=react.keyframes`
97
97
  from {
98
98
  opacity: 0;
99
99
  }