@flarehr/apollo-import-workspace-app 0.1.1183 → 0.1.1185
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.
|
@@ -46,7 +46,7 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
|
|
|
46
46
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
|
|
47
47
|
`)].join(`
|
|
48
48
|
`))}else{let m=d.props,h=m==null?void 0:m.className,p=typeof h=="function"?(..._)=>di(h(..._),l.className):di(h,l.className),v=p?{className:p}:{},b=kl(d.props,xt(q5(l,["ref"])));for(let _ in f)_ in b&&delete f[_];return $i(d,Object.assign({},b,f,c,{ref:i(lv(d),c.ref)},v))}return u(o,Object.assign({},q5(l,["ref"]),o!==Ke&&c,o!==Ke&&f),d)}function sv(){let e=de([]),t=$e(r=>{for(let n of e.current)n!=null&&(typeof n=="function"?n(r):n.current=r)},[]);return(...r)=>{if(!r.every(n=>n==null))return e.current=r,t}}function av(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function kl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let n in r)Object.assign(t,{[n](i,...o){let s=r[n];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function Il(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];for(let n in r)Object.assign(t,{[n](...i){let o=r[n];for(let s of o)s==null||s(...i)}});return t}function _0(e){var t;return Object.assign(Ri(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xt(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function q5(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function lv(e){return ee.version.split(".")[0]>="19"?e.props.ref:e.ref}function uv(e,t,r){let[n,i]=Ee(r),o=e!==void 0,s=de(o),a=de(!1),l=de(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,ye(c=>(o||i(c),t==null?void 0:t(c)))]}function cv(e){let[t]=Ee(e);return t}function Rl(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))Dl(r,Ol(t,n),i);return r}function Ol(e,t){return e?e+"["+t+"]":t}function Dl(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())Dl(e,Ol(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Rl(r,t,e)}function dv(e){var t,r;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let i of n.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(r=n.requestSubmit)==null||r.call(n)}}let fv="span";var cr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cr||{});function hv(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return M0()({ourProps:o,theirProps:i,slot:{},defaultTag:fv,name:"Hidden"})}let l3=_0(hv),mv=d0(null);function pv({children:e}){let t=He(mv);if(!t)return ee.createElement(ee.Fragment,null,e);let{target:r}=t;return r?Un(ee.createElement(ee.Fragment,null,e),r):null}function gv({data:e,form:t,disabled:r,onReset:n,overrides:i}){let[o,s]=Ee(null),a=Yt();return Be(()=>{if(n&&o)return a.addEventListener(o,"reset",n)},[o,t,n]),ee.createElement(pv,null,ee.createElement(wv,{setForm:s,formId:t}),Rl(e).map(([l,c])=>ee.createElement(l3,{features:cr.Hidden,...xt({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:r,name:l,value:c,...i})})))}function wv({setForm:e,formId:t}){return Be(()=>{if(t){let r=document.getElementById(t);r&&e(r)}},[e,t]),t?null:ee.createElement(l3,{features:cr.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:r=>{if(!r)return;let n=r.closest("form");n&&e(n)}})}let yv=d0(void 0);function $l(){return He(yv)}function vv(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&bv(r)?!1:n}function bv(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Fl=Symbol();function _v(e,t=!0){return Object.assign(e,{[Fl]:t})}function B0(...e){let t=de(e);Be(()=>{t.current=e},[e]);let r=ye(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Fl]))?void 0:r}let f5=d0(null);f5.displayName="DescriptionContext";function Pl(){let e=He(f5);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Pl),t}return e}function Cv(){var e,t;return(t=(e=He(f5))==null?void 0:e.value)!=null?t:void 0}function xv(){let[e,t]=Ee([]);return[e.length>0?e.join(" "):void 0,ve(()=>function(r){let n=ye(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=ve(()=>({register:n,slot:r.slot,name:r.name,props:r.props,value:r.value}),[n,r.slot,r.name,r.props,r.value]);return ee.createElement(f5.Provider,{value:i},r.children)},[t])]}let Sv="p";function Ev(e,t){let r=v1(),n=po(),{id:i=`headlessui-description-${r}`,...o}=e,s=Pl(),a=B0(t);r0(()=>s.register(i),[i,s.register]);let l=n||!1,c=ve(()=>({...s.slot,disabled:l}),[s.slot,l]),d={ref:a,...s.props,id:i};return M0()({ourProps:d,theirProps:o,slot:c,defaultTag:Sv,name:s.name||"Description"})}let Av=_0(Ev),Tv=Object.assign(Av,{});var S0=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(S0||{});let h5=d0(null);h5.displayName="LabelContext";function Ll(){let e=He(h5);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Ll),t}return e}function Bl(e){var t,r,n;let i=(r=(t=He(h5))==null?void 0:t.value)!=null?r:void 0;return((n=e==null?void 0:e.length)!=null?n:0)>0?[i,...e].filter(Boolean).join(" "):i}function Nv({inherit:e=!1}={}){let t=Bl(),[r,n]=Ee([]),i=e?[t,...r].filter(Boolean):r;return[i.length>0?i.join(" "):void 0,ve(()=>function(o){let s=ye(l=>(n(c=>[...c,l]),()=>n(c=>{let d=c.slice(),f=d.indexOf(l);return f!==-1&&d.splice(f,1),d}))),a=ve(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return ee.createElement(h5.Provider,{value:a},o.children)},[n])]}let Mv="label";function kv(e,t){var r;let n=v1(),i=Ll(),o=$l(),s=po(),{id:a=`headlessui-label-${n}`,htmlFor:l=o??((r=i.props)==null?void 0:r.htmlFor),passive:c=!1,...d}=e,f=B0(t);r0(()=>i.register(a),[a,i.register]);let m=ye(b=>{let _=b.currentTarget;if(_ instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),_ instanceof HTMLLabelElement){let C=document.getElementById(_.htmlFor);if(C){let E=C.getAttribute("disabled");if(E==="true"||E==="")return;let N=C.getAttribute("aria-disabled");if(N==="true"||N==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=s||!1,p=ve(()=>({...i.slot,disabled:h}),[i.slot,h]),v={ref:f,...i.props,id:a,htmlFor:l,onClick:m};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in d&&delete d.onClick),M0()({ourProps:v,theirProps:d,slot:p,defaultTag:l?Mv:"div",name:i.name||"Label"})}let Iv=_0(kv),Rv=Object.assign(Iv,{}),Ov=d0(()=>{});function Dv({value:e,children:t}){return ee.createElement(Ov.Provider,{value:e},t)}function $v(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Fv(e=$v){return $e((t,r)=>{if(typeof e=="string"){let n=e;return(t==null?void 0:t[n])===(r==null?void 0:r[n])}return e(t,r)},[e])}function Pv(e){if(e===null)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function Lv(e,t=!1){let[r,n]=E2(()=>({}),{}),i=ve(()=>Pv(e),[e,r]);return r0(()=>{if(!e)return;let o=new ResizeObserver(n);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Bv=class extends Map{constructor(t){super(),this.factory=t}get(t){let r=super.get(t);return r===void 0&&(r=this.factory(t),this.set(t,r)),r}};function Ul(e,t){let r=e(),n=new Set;return{getSnapshot(){return r},subscribe(i){return n.add(i),()=>n.delete(i)},dispatch(i,...o){let s=t[i].call(r,...o);s&&(r=s,n.forEach(a=>a()))}}}function Hl(e){return Bn(e.subscribe,e.getSnapshot,e.getSnapshot)}let Uv=new Bv(()=>Ul(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let r=this.slice();return r.splice(t,1),r}}));function Cr(e,t){let r=Uv.get(t),n=v1(),i=Hl(r);if(r0(()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)},[r,e]),!e)return!1;let o=i.indexOf(n),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let fi=new Map,e3=new Map;function ws(e){var t;let r=(t=e3.get(e))!=null?t:0;return e3.set(e,r+1),r!==0?()=>ys(e):(fi.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>ys(e))}function ys(e){var t;let r=(t=e3.get(e))!=null?t:1;if(r===1?e3.delete(e):e3.set(e,r-1),r!==1)return;let n=fi.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,fi.delete(e))}function Vl(e,{allowed:t,disallowed:r}={}){let n=Cr(e,"inert-others");r0(()=>{var i,o;if(!n)return;let s=yt();for(let l of(i=r==null?void 0:r())!=null?i:[])l&&s.add(ws(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let c=_r(l);if(!c)continue;let d=l.parentElement;for(;d&&d!==c.body;){for(let f of d.children)a.some(m=>f.contains(m))||s.add(ws(f));d=d.parentElement}}return s.dispose},[n,t,r])}function jl(e,t,r){let n=Zt(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&r()});Be(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=yt();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>n.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>n.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,n,e])}let kn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Hv=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var E1=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(E1||{}),hi=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(hi||{}),Vv=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Vv||{});function Wl(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(kn)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}function jv(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Hv)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var go=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(go||{});function ql(e,t=0){var r;return e===((r=_r(e))==null?void 0:r.body)?!1:Z0(t,{0(){return e.matches(kn)},1(){let n=e;for(;n!==null;){if(n.matches(kn))return!0;n=n.parentElement}return!1}})}var Wv=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Wv||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ot(e){e==null||e.focus({preventScroll:!0})}let qv=["textarea","input"].join(",");function Gv(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,qv))!=null?r:!1}function Gl(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function zv(e,t){return Q2(Wl(),t,{relativeTo:e})}function Q2(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?r?Gl(e):e:t&64?jv(e):Wl(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(p=>p!=null&&"current"in p?(p==null?void 0:p.current)===h:p===h))),n=n??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(n))-1;if(t&4)return Math.max(0,s.indexOf(n))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},d=0,f=s.length,m;do{if(d>=f||d+f<=0)return 0;let h=l+d;if(t&16)h=(h+f)%f;else{if(h<0)return 3;if(h>=f)return 1}m=s[h],m==null||m.focus(c),d+=a}while(m!==o.activeElement);return t&6&&Gv(m)&&m.select(),2}function zl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Yv(){return/Android/gi.test(window.navigator.userAgent)}function Zv(){return zl()||Yv()}function Ur(e,t,r,n){let i=Zt(r);Be(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,n),()=>document.removeEventListener(t,o,n)},[e,t,n])}function Yl(e,t,r,n){let i=Zt(r);Be(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,n),()=>window.removeEventListener(t,o,n)},[e,t,n])}const vs=30;function Zl(e,t,r){let n=Cr(e,"outside-click"),i=Zt(r),o=$e(function(l,c){if(l.defaultPrevented)return;let d=c(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let f=function m(h){return typeof h=="function"?m(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let m of f)if(m!==null&&(m.contains(d)||l.composed&&l.composedPath().includes(m)))return;return!ql(d,go.Loose)&&d.tabIndex!==-1&&l.preventDefault(),i.current(l,d)},[i,t]),s=de(null);Ur(n,"pointerdown",l=>{var c,d;s.current=((d=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:d[0])||l.target},!0),Ur(n,"mousedown",l=>{var c,d;s.current=((d=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:d[0])||l.target},!0),Ur(n,"click",l=>{Zv()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=de({x:0,y:0});Ur(n,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Ur(n,"touchend",l=>{let c={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(c.x-a.current.x)>=vs||Math.abs(c.y-a.current.y)>=vs))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Yl(n,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function xr(...e){return ve(()=>_r(...e),[...e])}function Kl(e,t,r,n){let i=Zt(r);Be(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,n),()=>e.removeEventListener(t,o,n)},[e,t,n])}function Kv(e,t){return ve(()=>{var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Jv(){let e;return{before({doc:t}){var r;let n=t.documentElement,i=(r=t.defaultView)!=null?r:window;e=Math.max(0,i.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,i=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,e-i);r.style(n,"paddingRight",`${o}px`)}}}function Xv(){return zl()?{before({doc:e,d:t,meta:r}){function n(i){return r.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=yt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),d=e.querySelector(c);d&&!n(d)&&(s=d)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(n(a.target)){let l=a.target;for(;l.parentElement&&n(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(n(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Qv(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function eb(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let d2=Ul(()=>new Map,{PUSH(e,t){var r;let n=(r=this.get(e))!=null?r:{doc:e,count:0,d:yt(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:eb(r)},i=[Xv(),Jv(),Qv()];i.forEach(({before:o})=>o==null?void 0:o(n)),i.forEach(({after:o})=>o==null?void 0:o(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});d2.subscribe(()=>{let e=d2.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let n=t.get(r.doc)==="hidden",i=r.count!==0;(i&&!n||!i&&n)&&d2.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),r.count===0&&d2.dispatch("TEARDOWN",r)}});function tb(e,t,r=()=>({containers:[]})){let n=Hl(d2),i=t?n.get(t):void 0,o=i?i.count>0:!1;return r0(()=>{if(!(!t||!e))return d2.dispatch("PUSH",t,r),()=>d2.dispatch("POP",t,r)},[e,t]),o}function Jl(e,t,r=()=>[document.body]){let n=Cr(e,"scroll-lock");tb(n,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],r]}})}function bs(e){return[e.screenX,e.screenY]}function rb(){let e=de([-1,-1]);return{wasMoved(t){let r=bs(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=bs(t)}}}function nb(e=0){let[t,r]=Ee(e),n=$e(l=>r(l),[t]),i=$e(l=>r(c=>c|l),[t]),o=$e(l=>(t&l)===l,[t]),s=$e(l=>r(c=>c&~l),[r]),a=$e(l=>r(c=>c^l),[r]);return{flags:t,setFlag:n,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var ib={},_s,Cs;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((_s=process==null?void 0:ib)==null?void 0:_s.NODE_ENV)==="test"&&typeof((Cs=Element==null?void 0:Element.prototype)==null?void 0:Cs.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
49
|
-
`)),[]});var ob=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ob||{});function Xl(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function Ql(e,t,r,n){let[i,o]=Ee(r),{hasFlag:s,addFlag:a,removeFlag:l}=nb(e&&i?3:0),c=de(!1),d=de(!1),f=Yt();return r0(()=>{var m;if(e){if(r&&o(!0),!t){r&&a(3);return}return(m=n==null?void 0:n.start)==null||m.call(n,r),sb(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(r?(a(3),l(4)):(a(4),l(2)))},run(){d.current?r?(l(3),a(4)):(l(4),a(3)):r?l(1):a(1)},done(){var h;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(c.current=!1,l(7),r||o(!1),(h=n==null?void 0:n.end)==null||h.call(n,r))}})}},[e,r,t,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function sb(e,{prepare:t,run:r,done:n,inFlight:i}){let o=yt();return lb(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(ab(e,n))})}),o.dispose}function ab(e,t){var r,n;let i=yt();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(a=>a instanceof CSSTransition))!=null?n:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function lb(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function wo(e,t){let r=de([]),n=ye(e);Be(()=>{let i=[...r.current];for(let[o,s]of t.entries())if(r.current[o]!==s){let a=n(t,i);return r.current=t,a}},[n,...t])}function m5(){return typeof window<"u"}function Sr(e){return e9(e)?(e.nodeName||"").toLowerCase():"#document"}function c1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W1(e){var t;return(t=(e9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function e9(e){return m5()?e instanceof Node||e instanceof c1(e).Node:!1}function V0(e){return m5()?e instanceof Element||e instanceof c1(e).Element:!1}function L1(e){return m5()?e instanceof HTMLElement||e instanceof c1(e).HTMLElement:!1}function xs(e){return!m5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof c1(e).ShadowRoot}function N3(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=N1(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function ub(e){return["table","td","th"].includes(Sr(e))}function p5(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yo(e){const t=vo(),r=V0(e)?N1(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function cb(e){let t=Lt(e);for(;L1(t)&&!dr(t);){if(yo(t))return t;if(p5(t))return null;t=Lt(t)}return null}function vo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dr(e){return["html","body","#document"].includes(Sr(e))}function N1(e){return c1(e).getComputedStyle(e)}function g5(e){return V0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xs(e)&&e.host||W1(e);return xs(t)?t.host:t}function t9(e){const t=Lt(e);return dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:L1(t)&&N3(t)?t:t9(t)}function u3(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=t9(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=c1(i);if(o){const a=mi(s);return t.concat(s,s.visualViewport||[],N3(i)?i:[],a&&r?u3(a):[])}return t.concat(i,u3(i,[],r))}function mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function db(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}const b2=Math.min,F0=Math.max,c3=Math.round,j3=Math.floor,O1=e=>({x:e,y:e}),fb={left:"right",right:"left",bottom:"top",top:"bottom"},hb={start:"end",end:"start"};function Ss(e,t,r){return F0(e,b2(t,r))}function Er(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function M3(e){return e.split("-")[1]}function r9(e){return e==="x"?"y":"x"}function n9(e){return e==="y"?"height":"width"}function _2(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function i9(e){return r9(_2(e))}function mb(e,t,r){r===void 0&&(r=!1);const n=M3(e),i=i9(e),o=n9(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=In(s)),[s,In(s)]}function pb(e){const t=In(e);return[pi(e),t,pi(t)]}function pi(e){return e.replace(/start|end/g,t=>hb[t])}function gb(e,t,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function wb(e,t,r,n){const i=M3(e);let o=gb(Bt(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(pi)))),o}function In(e){return e.replace(/left|right|bottom|top/g,t=>fb[t])}function yb(e){return{top:0,right:0,bottom:0,left:0,...e}}function vb(e){return typeof e!="number"?yb(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Es(e,t,r){let{reference:n,floating:i}=e;const o=_2(t),s=i9(t),a=n9(s),l=Bt(t),c=o==="y",d=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[a]/2-i[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-i.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(M3(t)){case"start":h[s]-=m*(r&&c?-1:1);break;case"end":h[s]+=m*(r&&c?-1:1);break}return h}const bb=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=Es(c,n,l),m=n,h={},p=0;for(let v=0;v<a.length;v++){const{name:b,fn:_}=a[v],{x:C,y:E,data:N,reset:I}=await _({x:d,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=E??f,h={...h,[b]:{...h[b],...N}},I&&p<=50&&(p++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:d,y:f}=Es(c,m,l)),v=-1)}return{x:d,y:f,placement:m,strategy:i,middlewareData:h}};async function w5(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=Er(t,e),p=vb(h),b=a[m?f==="floating"?"reference":"floating":f],_=Rn(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),C=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Rn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:E,strategy:l}):C);return{top:(_.top-I.top+p.top)/N.y,bottom:(I.bottom-_.bottom+p.bottom)/N.y,left:(_.left-I.left+p.left)/N.x,right:(I.right-_.right+p.right)/N.x}}const _b=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...b}=Er(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const _=Bt(i),C=_2(a),E=Bt(a)===a,N=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=m||(E||!v?[In(a)]:pb(a)),D=p!=="none";!m&&D&&I.push(...wb(a,v,p,N));const P=[a,...I],A=await w5(t,b),x=[];let k=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&x.push(A[_]),f){const j=mb(i,s,N);x.push(A[j[0]],A[j[1]])}if(k=[...k,{placement:i,overflows:x}],!x.every(j=>j<=0)){var M,L;const j=(((M=o.flip)==null?void 0:M.index)||0)+1,oe=P[j];if(oe)return{data:{index:j,overflows:k},reset:{placement:oe}};let Z=(L=k.filter(J=>J.overflows[0]<=0).sort((J,U)=>J.overflows[1]-U.overflows[1])[0])==null?void 0:L.placement;if(!Z)switch(h){case"bestFit":{var O;const J=(O=k.filter(U=>{if(D){const G=_2(U.placement);return G===C||G==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(G=>G>0).reduce((G,W)=>G+W,0)]).sort((U,G)=>U[1]-G[1])[0])==null?void 0:O[0];J&&(Z=J);break}case"initialPlacement":Z=a;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};async function Cb(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Bt(r),a=M3(r),l=_2(r)==="y",c=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,f=Er(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*d,y:m*c}:{x:m*c,y:h*d}}const xb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Cb(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Sb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:_,y:C}=b;return{x:_,y:C}}},...l}=Er(e,t),c={x:r,y:n},d=await w5(t,l),f=_2(Bt(i)),m=r9(f);let h=c[m],p=c[f];if(o){const b=m==="y"?"top":"left",_=m==="y"?"bottom":"right",C=h+d[b],E=h-d[_];h=Ss(C,h,E)}if(s){const b=f==="y"?"top":"left",_=f==="y"?"bottom":"right",C=p+d[b],E=p-d[_];p=Ss(C,p,E)}const v=a.fn({...t,[m]:h,[f]:p});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:o,[f]:s}}}}}},Eb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Er(e,t),d=await w5(t,c),f=Bt(i),m=M3(i),h=_2(i)==="y",{width:p,height:v}=o.floating;let b,_;f==="top"||f==="bottom"?(b=f,_=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,b=m==="end"?"top":"bottom");const C=v-d.top-d.bottom,E=p-d.left-d.right,N=b2(v-d[b],C),I=b2(p-d[_],E),D=!t.middlewareData.shift;let P=N,A=I;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=C),D&&!m){const k=F0(d.left,0),M=F0(d.right,0),L=F0(d.top,0),O=F0(d.bottom,0);h?A=p-2*(k!==0||M!==0?k+M:F0(d.left,d.right)):P=v-2*(L!==0||O!==0?L+O:F0(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:P});const x=await s.getDimensions(a.floating);return p!==x.width||v!==x.height?{reset:{rects:!0}}:{}}}};function o9(e){const t=N1(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=L1(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=c3(r)!==o||c3(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function bo(e){return V0(e)?e:e.contextElement}function er(e){const t=bo(e);if(!L1(t))return O1(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=o9(t);let s=(o?c3(r.width):r.width)/n,a=(o?c3(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ab=O1(0);function s9(e){const t=c1(e);return!vo()||!t.visualViewport?Ab:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tb(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==c1(e)?!1:t}function C2(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=bo(e);let s=O1(1);t&&(n?V0(n)&&(s=er(n)):s=er(e));const a=Tb(o,r,n)?s9(o):O1(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o){const m=c1(o),h=n&&V0(n)?c1(n):n;let p=m,v=mi(p);for(;v&&n&&h!==p;){const b=er(v),_=v.getBoundingClientRect(),C=N1(v),E=_.left+(v.clientLeft+parseFloat(C.paddingLeft))*b.x,N=_.top+(v.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=E,c+=N,p=c1(v),v=mi(p)}}return Rn({width:d,height:f,x:l,y:c})}function _o(e,t){const r=g5(e).scrollLeft;return t?t.left+r:C2(W1(e)).left+r}function a9(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:_o(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function Nb(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",s=W1(n),a=t?p5(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=O1(1);const d=O1(0),f=L1(n);if((f||!f&&!o)&&((Sr(n)!=="body"||N3(s))&&(l=g5(n)),L1(n))){const h=C2(n);c=er(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const m=s&&!f&&!o?a9(s,l,!0):O1(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:r.y*c.y-l.scrollTop*c.y+d.y+m.y}}function Mb(e){return Array.from(e.getClientRects())}function kb(e){const t=W1(e),r=g5(e),n=e.ownerDocument.body,i=F0(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=F0(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+_o(e);const a=-r.scrollTop;return N1(n).direction==="rtl"&&(s+=F0(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Ib(e,t){const r=c1(e),n=W1(e),i=r.visualViewport;let o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=vo();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Rb(e,t){const r=C2(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=L1(e)?er(e):O1(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function As(e,t,r){let n;if(t==="viewport")n=Ib(e,r);else if(t==="document")n=kb(W1(e));else if(V0(t))n=Rb(t,r);else{const i=s9(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Rn(n)}function l9(e,t){const r=Lt(e);return r===t||!V0(r)||dr(r)?!1:N1(r).position==="fixed"||l9(r,t)}function Ob(e,t){const r=t.get(e);if(r)return r;let n=u3(e,[],!1).filter(a=>V0(a)&&Sr(a)!=="body"),i=null;const o=N1(e).position==="fixed";let s=o?Lt(e):e;for(;V0(s)&&!dr(s);){const a=N1(s),l=yo(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||N3(s)&&!l&&l9(e,s))?n=n.filter(d=>d!==s):i=a,s=Lt(s)}return t.set(e,n),n}function Db(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?p5(t)?[]:Ob(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const f=As(t,d,i);return c.top=F0(f.top,c.top),c.right=b2(f.right,c.right),c.bottom=b2(f.bottom,c.bottom),c.left=F0(f.left,c.left),c},As(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $b(e){const{width:t,height:r}=o9(e);return{width:t,height:r}}function Fb(e,t,r){const n=L1(t),i=W1(t),o=r==="fixed",s=C2(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=O1(0);if(n||!n&&!o)if((Sr(t)!=="body"||N3(i))&&(a=g5(t)),n){const m=C2(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&(l.x=_o(i));const c=i&&!n&&!o?a9(i,a):O1(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function G5(e){return N1(e).position==="static"}function Ts(e,t){if(!L1(e)||N1(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return W1(e)===r&&(r=r.ownerDocument.body),r}function u9(e,t){const r=c1(e);if(p5(e))return r;if(!L1(e)){let i=Lt(e);for(;i&&!dr(i);){if(V0(i)&&!G5(i))return i;i=Lt(i)}return r}let n=Ts(e,t);for(;n&&ub(n)&&G5(n);)n=Ts(n,t);return n&&dr(n)&&G5(n)&&!yo(n)?r:n||cb(e)||r}const Pb=async function(e){const t=this.getOffsetParent||u9,r=this.getDimensions,n=await r(e.floating);return{reference:Fb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lb(e){return N1(e).direction==="rtl"}const Bb={convertOffsetParentRelativeRectToViewportRelativeRect:Nb,getDocumentElement:W1,getClippingRect:Db,getOffsetParent:u9,getElementRects:Pb,getClientRects:Mb,getDimensions:$b,getScale:er,isElement:V0,isRTL:Lb};function c9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ub(e,t){let r=null,n;const i=W1(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=c;if(a||t(),!m||!h)return;const p=j3(f),v=j3(i.clientWidth-(d+m)),b=j3(i.clientHeight-(f+h)),_=j3(d),E={rootMargin:-p+"px "+-v+"px "+-b+"px "+-_+"px",threshold:F0(0,b2(1,l))||1};let N=!0;function I(D){const P=D[0].intersectionRatio;if(P!==l){if(!N)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!c9(c,e.getBoundingClientRect())&&s(),N=!1}try{r=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(I,E)}r.observe(e)}return s(!0),o}function Hb(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=bo(e),d=i||o?[...c?u3(c):[],...u3(t)]:[];d.forEach(_=>{i&&_.addEventListener("scroll",r,{passive:!0}),o&&_.addEventListener("resize",r)});const f=c&&a?Ub(c,r):null;let m=-1,h=null;s&&(h=new ResizeObserver(_=>{let[C]=_;C&&C.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let p,v=l?C2(e):null;l&&b();function b(){const _=C2(e);v&&!c9(v,_)&&r(),v=_,p=requestAnimationFrame(b)}return r(),()=>{var _;d.forEach(C=>{i&&C.removeEventListener("scroll",r),o&&C.removeEventListener("resize",r)}),f==null||f(),(_=h)==null||_.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const z5=w5,Vb=xb,jb=Sb,Wb=_b,qb=Eb,Gb=(e,t,r)=>{const n=new Map,i={platform:Bb,...r},o={...i.platform,_c:n};return bb(e,t,{...i,platform:o})};var en=typeof document<"u"?B1:Be;function On(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!On(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!On(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function d9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ns(e,t){const r=d9(e);return Math.round(t*r)/r}function Y5(e){const t=de(e);return en(()=>{t.current=e}),t}function zb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=Ee({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=Ee(n);On(m,n)||h(n);const[p,v]=Ee(null),[b,_]=Ee(null),C=$e(U=>{U!==D.current&&(D.current=U,v(U))},[]),E=$e(U=>{U!==P.current&&(P.current=U,_(U))},[]),N=o||p,I=s||b,D=de(null),P=de(null),A=de(d),x=l!=null,k=Y5(l),M=Y5(i),L=Y5(c),O=$e(()=>{if(!D.current||!P.current)return;const U={placement:t,strategy:r,middleware:m};M.current&&(U.platform=M.current),Gb(D.current,P.current,U).then(G=>{const W={...G,isPositioned:L.current!==!1};j.current&&!On(A.current,W)&&(A.current=W,a1(()=>{f(W)}))})},[m,t,r,M,L]);en(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(U=>({...U,isPositioned:!1})))},[c]);const j=de(!1);en(()=>(j.current=!0,()=>{j.current=!1}),[]),en(()=>{if(N&&(D.current=N),I&&(P.current=I),N&&I){if(k.current)return k.current(N,I,O);O()}},[N,I,O,k,x]);const oe=ve(()=>({reference:D,floating:P,setReference:C,setFloating:E}),[C,E]),Z=ve(()=>({reference:N,floating:I}),[N,I]),J=ve(()=>{const U={position:r,left:0,top:0};if(!Z.floating)return U;const G=Ns(Z.floating,d.x),W=Ns(Z.floating,d.y);return a?{...U,transform:"translate("+G+"px, "+W+"px)",...d9(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:G,top:W}},[r,a,Z.floating,d.x,d.y]);return ve(()=>({...d,update:O,refs:oe,elements:Z,floatingStyles:J}),[d,O,oe,Z,J])}const f9=(e,t)=>({...Vb(e),options:[e,t]}),Yb=(e,t)=>({...jb(e),options:[e,t]}),Zb=(e,t)=>({...Wb(e),options:[e,t]}),Kb=(e,t)=>({...qb(e),options:[e,t]}),h9={...ln},Jb=h9.useInsertionEffect,Xb=Jb||(e=>e());function m9(e){const t=de(()=>{});return Xb(()=>{t.current=e}),$e(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current==null?void 0:t.current(...n)},[])}var gi=typeof document<"u"?B1:Be;let Ms=!1,Qb=0;const ks=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qb++;function e_(){const[e,t]=Ee(()=>Ms?ks():void 0);return gi(()=>{e==null&&t(ks())},[]),Be(()=>{Ms=!0},[]),e}const t_=h9.useId,r_=t_||e_;function n_(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(i=>i(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(i=>i!==r))||[])}}}const i_=d0(null),o_=d0(null),s_=()=>{var e;return((e=He(i_))==null?void 0:e.id)||null},a_=()=>He(o_),l_="data-floating-ui-focusable";function u_(e){const{open:t=!1,onOpenChange:r,elements:n}=e,i=r_(),o=de({}),[s]=Ee(()=>n_()),a=s_()!=null,[l,c]=Ee(n.reference),d=m9((h,p,v)=>{o.current.openEvent=h?p:void 0,s.emit("openchange",{open:h,event:p,reason:v,nested:a}),r==null||r(h,p,v)}),f=ve(()=>({setPositionReference:c}),[]),m=ve(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return ve(()=>({dataRef:o,open:t,onOpenChange:d,elements:m,events:s,floatingId:i,refs:f}),[t,d,m,s,i,f])}function c_(e){e===void 0&&(e={});const{nodeId:t}=e,r=u_({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,i=n.elements,[o,s]=Ee(null),[a,l]=Ee(null),d=(i==null?void 0:i.domReference)||o,f=de(null),m=a_();gi(()=>{d&&(f.current=d)},[d]);const h=zb({...e,elements:{...i,...a&&{reference:a}}}),p=$e(E=>{const N=V0(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(N),h.refs.setReference(N)},[h.refs]),v=$e(E=>{(V0(E)||E===null)&&(f.current=E,s(E)),(V0(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!V0(E))&&h.refs.setReference(E)},[h.refs]),b=ve(()=>({...h.refs,setReference:v,setPositionReference:p,domReference:f}),[h.refs,v,p]),_=ve(()=>({...h.elements,domReference:d}),[h.elements,d]),C=ve(()=>({...h,...n,refs:b,elements:_,nodeId:t}),[h,b,_,t,n]);return gi(()=>{n.dataRef.current.floatingContext=C;const E=m==null?void 0:m.nodesRef.current.find(N=>N.id===t);E&&(E.context=C)}),ve(()=>({...h,context:C,refs:b,elements:_}),[h,b,_,C])}const Is="active",Rs="selected";function Z5(e,t,r){const n=new Map,i=r==="item";let o=e;if(i&&e){const{[Is]:s,[Rs]:a,...l}=e;o=l}return{...r==="floating"&&{tabIndex:-1,[l_]:""},...o,...t.map(s=>{const a=s?s[r]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(i&&[Is,Rs].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var f;(f=n.get(c))==null||f.push(d),s[c]=function(){for(var m,h=arguments.length,p=new Array(h),v=0;v<h;v++)p[v]=arguments[v];return(m=n.get(c))==null?void 0:m.map(b=>b(...p)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function d_(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),r=e.map(a=>a==null?void 0:a.floating),n=e.map(a=>a==null?void 0:a.item),i=$e(a=>Z5(a,e,"reference"),t),o=$e(a=>Z5(a,e,"floating"),r),s=$e(a=>Z5(a,e,"item"),n);return ve(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Os(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const f_=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:c,...d}=Er(e,t),{rects:f,elements:{floating:m}}=t,h=r.current[s],p=(c==null?void 0:c.current)||m,v=m.clientTop||p.clientTop,b=m.clientTop!==0,_=p.clientTop!==0,C=m===p;if(!h)return{};const E={...t,...await f9(-h.offsetTop-m.clientTop-f.reference.height/2-h.offsetHeight/2-o).fn(t)},N=await z5(Os(E,p.scrollHeight+v+m.clientTop),d),I=await z5(E,{...d,elementContext:"reference"}),D=F0(0,N.top),P=E.y+D,k=(p.scrollHeight>p.clientHeight?M=>M:c3)(F0(0,p.scrollHeight+(b&&C||_?v*2:0)-D-F0(0,N.bottom)));if(p.style.maxHeight=k+"px",p.scrollTop=D,i){const M=p.offsetHeight<h.offsetHeight*b2(a,r.current.length)-1||I.top>=-l||I.bottom>=-l;a1(()=>i(M))}return n&&(n.current=await z5(Os({...E,y:P},p.offsetHeight+v+m.clientTop),d)),{y:P}}});function h_(e,t){const{open:r,elements:n}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=m9(a),c=de(!1),d=de(null),f=de(null);Be(()=>{if(!i)return;function h(v){if(v.ctrlKey||!p||o.current==null)return;const b=v.deltaY,_=o.current.top>=-.5,C=o.current.bottom>=-.5,E=p.scrollHeight-p.clientHeight,N=b<0?-1:1,I=b<0?"max":"min";p.scrollHeight<=p.clientHeight||(!_&&b>0||!C&&b<0?(v.preventDefault(),a1(()=>{l(D=>D+Math[I](b,E*N))})):/firefox/i.test(db())&&(p.scrollTop+=b))}const p=(s==null?void 0:s.current)||n.floating;if(r&&p)return p.addEventListener("wheel",h),requestAnimationFrame(()=>{d.current=p.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{d.current=null,f.current=null,p.removeEventListener("wheel",h)}},[i,r,n.floating,o,s,l]);const m=ve(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const h=(s==null?void 0:s.current)||n.floating;if(!(!o.current||!h||!c.current)){if(d.current!==null){const p=h.scrollTop-d.current;(o.current.bottom<-.5&&p<-1||o.current.top<-.5&&p>1)&&a1(()=>l(v=>v+p))}requestAnimationFrame(()=>{d.current=h.scrollTop})}}}),[n.floating,l,o,s]);return ve(()=>i?{floating:m}:{},[i,m])}let Ar=d0({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ar.displayName="FloatingContext";let Co=d0(null);Co.displayName="PlacementContext";function m_(e){return ve(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function p_(){return He(Ar).setReference}function g_(){return He(Ar).getReferenceProps}function w_(){let{getFloatingProps:e,slot:t}=He(Ar);return $e((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function y_(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=He(Co),r=ve(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);r0(()=>{t==null||t(r??null)},[t,r]);let n=He(Ar);return ve(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}let Ds=4;function v_({children:e,enabled:t=!0}){let[r,n]=Ee(null),[i,o]=Ee(0),s=de(null),[a,l]=Ee(null);b_(a);let c=t&&r!==null&&a!==null,{to:d="bottom",gap:f=0,offset:m=0,padding:h=0,inner:p}=__(r,a),[v,b="center"]=d.split(" ");r0(()=>{c&&o(0)},[c]);let{refs:_,floatingStyles:C,context:E}=c_({open:c,placement:v==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[f9({mainAxis:v==="selection"?0:f,crossAxis:m}),Yb({padding:h}),v!=="selection"&&Zb({padding:h}),v==="selection"&&p?f_({...p,padding:h,overflowRef:s,offset:i,minItemsVisible:Ds,referenceOverflowThreshold:h,onFallbackChange(M){var L,O;if(!M)return;let j=E.elements.floating;if(!j)return;let oe=parseFloat(getComputedStyle(j).scrollPaddingBottom)||0,Z=Math.min(Ds,j.childElementCount),J=0,U=0;for(let G of(O=(L=E.elements.floating)==null?void 0:L.childNodes)!=null?O:[])if(G instanceof HTMLElement){let W=G.offsetTop,ie=W+G.clientHeight+oe,Y=j.scrollTop,$=Y+j.clientHeight;if(W>=Y&&ie<=$)Z--;else{U=Math.max(0,Math.min(ie,$)-Math.max(W,Y)),J=G.clientHeight;break}}Z>=1&&o(G=>{let W=J*Z-U+oe;return G>=W?G:W})}}):null,Kb({padding:h,apply({availableWidth:M,availableHeight:L,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${M}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${L}px)`})}})].filter(Boolean),whileElementsMounted:Hb}),[N=v,I=b]=E.placement.split("-");v==="selection"&&(N="selection");let D=ve(()=>({anchor:[N,I].filter(Boolean).join(" ")}),[N,I]),P=h_(E,{overflowRef:s,onChange:o}),{getReferenceProps:A,getFloatingProps:x}=d_([P]),k=ye(M=>{l(M),_.setFloating(M)});return u(Co.Provider,{value:n},u(Ar.Provider,{value:{setFloating:k,setReference:_.setReference,styles:C,getReferenceProps:A,getFloatingProps:x,slot:D}},e))}function b_(e){r0(()=>{if(!e)return;let t=new MutationObserver(()=>{let r=window.getComputedStyle(e).maxHeight,n=parseFloat(r);if(isNaN(n))return;let i=parseInt(r);isNaN(i)||n!==i&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function __(e,t){var r,n,i;let o=K5((r=e==null?void 0:e.gap)!=null?r:"var(--anchor-gap, 0)",t),s=K5((n=e==null?void 0:e.offset)!=null?n:"var(--anchor-offset, 0)",t),a=K5((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function K5(e,t,r=void 0){let n=Yt(),i=ye((l,c)=>{if(l==null)return[r,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[r,null];let d=$s(l,c);return[d,f=>{let m=p9(l);{let h=m.map(p=>window.getComputedStyle(c).getPropertyValue(p));n.requestAnimationFrame(function p(){n.nextFrame(p);let v=!1;for(let[_,C]of m.entries()){let E=window.getComputedStyle(c).getPropertyValue(C);if(h[_]!==E){h[_]=E,v=!0;break}}if(!v)return;let b=$s(l,c);d!==b&&(f(b),d=b)})}return n.dispose}]}return[r,null]}),o=ve(()=>i(e,t)[0],[e,t]),[s=o,a]=Ee();return r0(()=>{let[l,c]=i(e,t);if(a(l),!!c)return c(a)},[e,t]),s}function p9(e){let t=/var\((.*)\)/.exec(e);if(t){let r=t[1].indexOf(",");if(r===-1)return[t[1]];let n=t[1].slice(0,r).trim(),i=t[1].slice(r+1).trim();return i?[n,...p9(i)]:[n]}return[]}function $s(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function C_(e,t){let[r,n]=Ee(t);return!e&&r!==t&&n(t),e?r:t}let y5=d0(null);y5.displayName="OpenClosedContext";var j0=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(j0||{});function k3(){return He(y5)}function g9({value:e,children:t}){return ee.createElement(y5.Provider,{value:e},t)}function x_({children:e}){return ee.createElement(y5.Provider,{value:null},e)}function S_(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Tt=[];S_(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Tt[0]===t.target)return;let r=t.target;r=r.closest(kn),Tt.unshift(r??t.target),Tt=Tt.filter(n=>n!=null&&n.isConnected),Tt.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function E_(e){throw new Error("Unexpected object: "+e)}var E0=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(E0||{});function J5(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{i===-1&&(i=r.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:E_(e)}}function w9(e){let t=ye(e),r=de(!1);Be(()=>(r.current=!1,()=>{r.current=!0,d5(()=>{r.current&&t()})}),[t])}function A_(){let e=typeof document>"u";return"useSyncExternalStore"in ln?(t=>t.useSyncExternalStore)(ln)(()=>()=>{},()=>!1,()=>!e):!1}function I3(){let e=A_(),[t,r]=Ee(m2.isHandoffComplete);return t&&m2.isHandoffComplete===!1&&r(!1),Be(()=>{t!==!0&&r(!0)},[t]),Be(()=>m2.handoff(),[]),e?!1:t}let y9=d0(!1);function T_(){return He(y9)}function Fs(e){return ee.createElement(y9.Provider,{value:e.force},e.children)}function N_(e){let t=T_(),r=He(b9),n=xr(e),[i,o]=Ee(()=>{var s;if(!t&&r!==null)return(s=r.current)!=null?s:null;if(m2.isServer)return null;let a=n==null?void 0:n.getElementById("headlessui-portal-root");if(a)return a;if(n===null)return null;let l=n.createElement("div");return l.setAttribute("id","headlessui-portal-root"),n.body.appendChild(l)});return Be(()=>{i!==null&&(n!=null&&n.body.contains(i)||n==null||n.body.appendChild(i))},[i,n]),Be(()=>{t||r!==null&&o(r.current)},[r,o,t]),i}let v9=Ke,M_=_0(function(e,t){let r=e,n=de(null),i=B0(_v(f=>{n.current=f}),t),o=xr(n),s=N_(n),[a]=Ee(()=>{var f;return m2.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),l=He(wi),c=I3();r0(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),r0(()=>{if(a&&l)return l.register(a)},[l,a]),w9(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))});let d=M0();return c?!s||!a?null:Un(d({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:v9,name:"Portal"}),a):null});function k_(e,t){let r=B0(t),{enabled:n=!0,...i}=e,o=M0();return n?ee.createElement(M_,{...i,ref:r}):o({ourProps:{ref:r},theirProps:i,slot:{},defaultTag:v9,name:"Portal"})}let I_=Ke,b9=d0(null);function R_(e,t){let{target:r,...n}=e,i={ref:B0(t)},o=M0();return ee.createElement(b9.Provider,{value:r},o({ourProps:i,theirProps:n,defaultTag:I_,name:"Popover.Group"}))}let wi=d0(null);function O_(){let e=He(wi),t=de([]),r=ye(o=>(t.current.push(o),e&&e.register(o),()=>n(o))),n=ye(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=ve(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,ve(()=>function({children:o}){return ee.createElement(wi.Provider,{value:i},o)},[i])]}let D_=_0(k_),_9=_0(R_),C9=Object.assign(D_,{Group:_9});function $_(e,t=typeof document<"u"?document.defaultView:null,r){let n=Cr(e,"escape");Kl(t,"keydown",i=>{n&&(i.defaultPrevented||i.key===S0.Escape&&r(i))})}function F_(){var e;let[t]=Ee(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=Ee((e=t==null?void 0:t.matches)!=null?e:!1);return r0(()=>{if(!t)return;function i(o){n(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),r}function P_({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=xr(r),i=ye(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(r&&(l.contains(r)||l.contains((s=r==null?void 0:r.getRootNode())==null?void 0:s.host))||a.some(c=>l.contains(c))||a.push(l));return a});return{resolveContainers:i,contains:ye(o=>i().some(s=>s.contains(o)))}}let x9=d0(null);function Ps({children:e,node:t}){let[r,n]=Ee(null),i=S9(t??r);return ee.createElement(x9.Provider,{value:i},e,i===null&&ee.createElement(l3,{features:cr.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=_r(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){n(l);break}}}}))}function S9(e=null){var t;return(t=He(x9))!=null?t:e}function xo(){let e=de(!1);return r0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Zr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Zr||{});function L_(){let e=de(0);return Yl(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function E9(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}let B_="div";var u2=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(u2||{});function U_(e,t){let r=de(null),n=B0(r,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;I3()||(a=0);let c=xr(r);W_(a,{ownerDocument:c});let d=q_(a,{ownerDocument:c,container:r,initialFocus:i,initialFocusFallback:o});G_(a,{ownerDocument:c,container:r,containers:s,previousActiveElement:d});let f=L_(),m=ye(C=>{let E=r.current;E&&(N=>N())(()=>{Z0(f.current,{[Zr.Forwards]:()=>{Q2(E,E1.First,{skipElements:[C.relatedTarget,o]})},[Zr.Backwards]:()=>{Q2(E,E1.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=Cr(!!(a&2),"focus-trap#tab-lock"),p=Yt(),v=de(!1),b={ref:n,onKeyDown(C){C.key=="Tab"&&(v.current=!0,p.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(a&4))return;let E=E9(s);r.current instanceof HTMLElement&&E.add(r.current);let N=C.relatedTarget;N instanceof HTMLElement&&N.dataset.headlessuiFocusGuard!=="true"&&(A9(E,N)||(v.current?Q2(r.current,Z0(f.current,{[Zr.Forwards]:()=>E1.Next,[Zr.Backwards]:()=>E1.Previous})|E1.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&ot(C.target)))}},_=M0();return ee.createElement(ee.Fragment,null,h&&ee.createElement(l3,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:cr.Focusable}),_({ourProps:b,theirProps:l,defaultTag:B_,name:"FocusTrap"}),h&&ee.createElement(l3,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:cr.Focusable}))}let H_=_0(U_),V_=Object.assign(H_,{features:u2});function j_(e=!0){let t=de(Tt.slice());return wo(([r],[n])=>{n===!0&&r===!1&&d5(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=Tt.slice())},[e,Tt,t]),ye(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function W_(e,{ownerDocument:t}){let r=!!(e&8),n=j_(r);wo(()=>{r||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&ot(n())},[r]),w9(()=>{r&&ot(n())})}function q_(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:i}){let o=de(null),s=Cr(!!(e&1),"focus-trap#initial-focus"),a=xo();return wo(()=>{if(e===0)return;if(!s){i!=null&&i.current&&ot(i.current);return}let l=r.current;l&&d5(()=>{if(!a.current)return;let c=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===c){o.current=c;return}}else if(l.contains(c)){o.current=c;return}if(n!=null&&n.current)ot(n.current);else{if(e&16){if(Q2(l,E1.First|E1.AutoFocus)!==hi.Error)return}else if(Q2(l,E1.First)!==hi.Error)return;if(i!=null&&i.current&&(ot(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function G_(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:i}){let o=xo(),s=!!(e&4);Kl(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=E9(n);r.current instanceof HTMLElement&&l.add(r.current);let c=i.current;if(!c)return;let d=a.target;d&&d instanceof HTMLElement?A9(l,d)?(i.current=d,ot(d)):(a.preventDefault(),a.stopPropagation(),ot(c)):ot(i.current)},!0)}function A9(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function T9(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:M9)!==Ke||ee.Children.count(e.children)===1}let v5=d0(null);v5.displayName="TransitionContext";var z_=(e=>(e.Visible="visible",e.Hidden="hidden",e))(z_||{});function Y_(){let e=He(v5);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Z_(){let e=He(b5);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let b5=d0(null);b5.displayName="NestingContext";function _5(e){return"children"in e?_5(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function N9(e,t){let r=Zt(e),n=de([]),i=xo(),o=Yt(),s=ye((h,p=It.Hidden)=>{let v=n.current.findIndex(({el:b})=>b===h);v!==-1&&(Z0(p,{[It.Unmount](){n.current.splice(v,1)},[It.Hidden](){n.current[v].state="hidden"}}),o.microTask(()=>{var b;!_5(n)&&i.current&&((b=r.current)==null||b.call(r))}))}),a=ye(h=>{let p=n.current.find(({el:v})=>v===h);return p?p.state!=="visible"&&(p.state="visible"):n.current.push({el:h,state:"visible"}),()=>s(h,It.Unmount)}),l=de([]),c=de(Promise.resolve()),d=de({enter:[],leave:[]}),f=ye((h,p,v)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([b])=>b!==h)),t==null||t.chains.current[p].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[p].push([h,new Promise(b=>{Promise.all(d.current[p].map(([_,C])=>C)).then(()=>b())})]),p==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(p)):v(p)}),m=ye((h,p,v)=>{Promise.all(d.current[p].splice(0).map(([b,_])=>_)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>v(p))});return ve(()=>({children:n,register:a,unregister:s,onStart:f,onStop:m,wait:c,chains:d}),[a,s,n,f,m,d,c])}let M9=Ke,k9=ur.RenderStrategy;function K_(e,t){var r,n;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:c,enterFrom:d,enterTo:f,entered:m,leave:h,leaveFrom:p,leaveTo:v,...b}=e,[_,C]=Ee(null),E=de(null),N=T9(e),I=B0(...N?[E,t,C]:t===null?[]:[t]),D=(r=b.unmount)==null||r?It.Unmount:It.Hidden,{show:P,appear:A,initial:x}=Y_(),[k,M]=Ee(P?"visible":"hidden"),L=Z_(),{register:O,unregister:j}=L;r0(()=>O(E),[O,E]),r0(()=>{if(D===It.Hidden&&E.current){if(P&&k!=="visible"){M("visible");return}return Z0(k,{hidden:()=>j(E),visible:()=>O(E)})}},[k,E,O,j,P,D]);let oe=I3();r0(()=>{if(N&&oe&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,oe,N]);let Z=x&&!A,J=A&&P&&x,U=de(!1),G=N9(()=>{U.current||(M("hidden"),j(E))},L),W=ye(Ie=>{U.current=!0;let te=Ie?"enter":"leave";G.onStart(E,te,H=>{H==="enter"?o==null||o():H==="leave"&&(a==null||a())})}),ie=ye(Ie=>{let te=Ie?"enter":"leave";U.current=!1,G.onStop(E,te,H=>{H==="enter"?s==null||s():H==="leave"&&(l==null||l())}),te==="leave"&&!_5(G)&&(M("hidden"),j(E))});Be(()=>{N&&i||(W(P),ie(P))},[P,N,i]);let Y=!(!i||!N||!oe||Z),[,$]=Ql(Y,_,P,{start:W,end:ie}),fe=xt({ref:I,className:((n=di(b.className,J&&c,J&&d,$.enter&&c,$.enter&&$.closed&&d,$.enter&&!$.closed&&f,$.leave&&h,$.leave&&!$.closed&&p,$.leave&&$.closed&&v,!$.transition&&P&&m))==null?void 0:n.trim())||void 0,...Xl($)}),he=0;k==="visible"&&(he|=j0.Open),k==="hidden"&&(he|=j0.Closed),$.enter&&(he|=j0.Opening),$.leave&&(he|=j0.Closing);let Ne=M0();return ee.createElement(b5.Provider,{value:G},ee.createElement(g9,{value:he},Ne({ourProps:fe,theirProps:b,defaultTag:M9,features:k9,visible:k==="visible",name:"Transition.Child"})))}function J_(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,s=de(null),a=T9(e),l=B0(...a?[s,t]:t===null?[]:[t]);I3();let c=k3();if(r===void 0&&c!==null&&(r=(c&j0.Open)===j0.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=Ee(r?"visible":"hidden"),m=N9(()=>{r||f("hidden")}),[h,p]=Ee(!0),v=de([r]);r0(()=>{h!==!1&&v.current[v.current.length-1]!==r&&(v.current.push(r),p(!1))},[v,r]);let b=ve(()=>({show:r,appear:n,initial:h}),[r,n,h]);r0(()=>{r?f("visible"):!_5(m)&&s.current!==null&&f("hidden")},[r,m]);let _={unmount:i},C=ye(()=>{var I;h&&p(!1),(I=e.beforeEnter)==null||I.call(e)}),E=ye(()=>{var I;h&&p(!1),(I=e.beforeLeave)==null||I.call(e)}),N=M0();return ee.createElement(b5.Provider,{value:m},ee.createElement(v5.Provider,{value:b},N({ourProps:{..._,as:Ke,children:ee.createElement(I9,{ref:l,..._,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:Ke,features:k9,visible:d==="visible",name:"Transition"})))}function X_(e,t){let r=He(v5)!==null,n=k3()!==null;return ee.createElement(ee.Fragment,null,!r&&n?ee.createElement(yi,{ref:t,...e}):ee.createElement(I9,{ref:t,...e}))}let yi=_0(J_),I9=_0(K_),So=_0(X_),R9=Object.assign(yi,{Child:So,Root:yi});var Q_=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Q_||{}),eC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(eC||{});let tC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Eo=d0(null);Eo.displayName="DialogContext";function C5(e){let t=He(Eo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,C5),r}return t}function rC(e,t){return Z0(t.type,tC,e,t)}let Ls=_0(function(e,t){let r=v1(),{id:n=`headlessui-dialog-${r}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:d=!1,...f}=e,m=de(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(m.current||(m.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=k3();i===void 0&&h!==null&&(i=(h&j0.Open)===j0.Open);let p=de(null),v=B0(p,t),b=xr(p),_=i?0:1,[C,E]=E2(rC,{titleId:null,descriptionId:null,panelRef:Pn()}),N=ye(()=>o(!1)),I=ye(ie=>E({type:0,id:ie})),D=I3()?_===0:!1,[P,A]=O_(),x={get current(){var ie;return(ie=C.panelRef.current)!=null?ie:p.current}},k=S9(),{resolveContainers:M}=P_({mainTreeNode:k,portals:P,defaultContainers:[x]}),L=h!==null?(h&j0.Closing)===j0.Closing:!1;Vl(c||L?!1:D,{allowed:ye(()=>{var ie,Y;return[(Y=(ie=p.current)==null?void 0:ie.closest("[data-headlessui-portal]"))!=null?Y:null]}),disallowed:ye(()=>{var ie;return[(ie=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?ie:null]})}),Zl(D,M,ie=>{ie.preventDefault(),N()}),$_(D,b==null?void 0:b.defaultView,ie=>{ie.preventDefault(),ie.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),N()}),Jl(c||L?!1:D,b,M),jl(D,p,N);let[O,j]=xv(),oe=ve(()=>[{dialogState:_,close:N,setTitleId:I,unmount:d},C],[_,C,N,I,d]),Z=ve(()=>({open:_===0}),[_]),J={ref:v,id:n,role:a,tabIndex:-1,"aria-modal":c?void 0:_===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":O,unmount:d},U=!F_(),G=u2.None;D&&!c&&(G|=u2.RestoreFocus,G|=u2.TabLock,l&&(G|=u2.AutoFocus),U&&(G|=u2.InitialFocus));let W=M0();return ee.createElement(x_,null,ee.createElement(Fs,{force:!0},ee.createElement(C9,null,ee.createElement(Eo.Provider,{value:oe},ee.createElement(_9,{target:p},ee.createElement(Fs,{force:!1},ee.createElement(j,{slot:Z},ee.createElement(A,null,ee.createElement(V_,{initialFocus:s,initialFocusFallback:p,containers:M,features:G},ee.createElement(Dv,{value:N},W({ourProps:J,theirProps:f,slot:Z,defaultTag:nC,features:iC,visible:_===0,name:"Dialog"})))))))))))}),nC="div",iC=ur.RenderStrategy|ur.Static;function oC(e,t){let{transition:r=!1,open:n,...i}=e,o=k3(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!i.static?ee.createElement(Ps,null,ee.createElement(R9,{show:n,transition:r,unmount:i.unmount},ee.createElement(Ls,{ref:t,...i}))):ee.createElement(Ps,null,ee.createElement(Ls,{ref:t,open:n,...i}))}let sC="div";function aC(e,t){let r=v1(),{id:n=`headlessui-dialog-panel-${r}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=C5("Dialog.Panel"),c=B0(t,l.panelRef),d=ve(()=>({open:s===0}),[s]),f=ye(b=>{b.stopPropagation()}),m={ref:c,id:n,onClick:f},h=i?So:Ke,p=i?{unmount:a}:{},v=M0();return ee.createElement(h,{...p},v({ourProps:m,theirProps:o,slot:d,defaultTag:sC,name:"Dialog.Panel"}))}let lC="div";function uC(e,t){let{transition:r=!1,...n}=e,[{dialogState:i,unmount:o}]=C5("Dialog.Backdrop"),s=ve(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=r?So:Ke,c=r?{unmount:o}:{},d=M0();return ee.createElement(l,{...c},d({ourProps:a,theirProps:n,slot:s,defaultTag:lC,name:"Dialog.Backdrop"}))}let cC="h2";function dC(e,t){let r=v1(),{id:n=`headlessui-dialog-title-${r}`,...i}=e,[{dialogState:o,setTitleId:s}]=C5("Dialog.Title"),a=B0(t);Be(()=>(s(n),()=>s(null)),[n,s]);let l=ve(()=>({open:o===0}),[o]),c={ref:a,id:n};return M0()({ourProps:c,theirProps:i,slot:l,defaultTag:cC,name:"Dialog.Title"})}let fC=_0(oC),hC=_0(aC),mC=_0(uC),pC=_0(dC),Ao=Object.assign(fC,{Panel:hC,Title:pC,Description:Tv});function gC(e,t){let r=de({left:0,top:0});if(r0(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(r.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let n=t.getBoundingClientRect();return n.top!==r.current.top||n.left!==r.current.left}let Bs=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Us(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(r=i.innerText)!=null?r:"":n;return Bs.test(s)&&(s=s.replace(Bs,"")),s}function wC(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Us(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Us(e).trim()}function yC(e){let t=de(""),r=de("");return ye(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=wC(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var vC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vC||{}),bC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(bC||{}),_C=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(_C||{}),CC=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(CC||{});function X5(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Gl(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let xC={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var r,n,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(r=t.trigger)!=null?r:1,__demoMode:!1};if(t.focus===E0.Nothing)return{...a,activeOptionIndex:null};if(t.focus===E0.Specific)return{...a,activeOptionIndex:e.options.findIndex(d=>d.id===t.id)};if(t.focus===E0.Previous){let d=e.activeOptionIndex;if(d!==null){let f=e.options[d].dataRef.current.domRef,m=J5(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(m!==null){let h=e.options[m].dataRef.current.domRef;if(((n=f.current)==null?void 0:n.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:m}}}}else if(t.focus===E0.Next){let d=e.activeOptionIndex;if(d!==null){let f=e.options[d].dataRef.current.domRef,m=J5(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(m!==null){let h=e.options[m].dataRef.current.domRef;if(((o=f.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:m}}}}let l=X5(e),c=J5(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...a,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=X5(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=X5(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},To=d0(null);To.displayName="ListboxActionsContext";function x5(e){let t=He(To);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,x5),r}return t}let S5=d0(null);S5.displayName="ListboxDataContext";function R3(e){let t=He(S5);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,R3),r}return t}function SC(e,t){return Z0(t.type,xC,e,t)}let EC=Ke;function AC(e,t){var r;let n=po(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:c,invalid:d=!1,disabled:f=n||!1,horizontal:m=!1,multiple:h=!1,__demoMode:p=!1,...v}=e;const b=m?"horizontal":"vertical";let _=B0(t),C=cv(o),[E=h?[]:void 0,N]=uv(i,l,C),[I,D]=E2(SC,{dataRef:Pn(),listboxState:p?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:p}),P=de({static:!1,hold:!1}),A=de(new Map),x=Fv(c),k=$e(ae=>Z0(M.mode,{1:()=>E.some(K=>x(K,ae)),0:()=>x(E,ae)}),[E]),M=ve(()=>({...I,value:E,disabled:f,invalid:d,mode:h?1:0,orientation:b,compare:x,isSelected:k,optionsPropsRef:P,listRef:A}),[E,f,d,h,I,A]);r0(()=>{I.dataRef.current=M},[M]);let L=M.listboxState===0;Zl(L,[M.buttonElement,M.optionsElement],(ae,K)=>{var ne;D({type:1}),ql(K,go.Loose)||(ae.preventDefault(),(ne=M.buttonElement)==null||ne.focus())});let O=ve(()=>({open:M.listboxState===0,disabled:f,invalid:d,value:E}),[M,f,E,d]),j=ye(ae=>{let K=M.options.find(ne=>ne.id===ae);K&&ie(K.dataRef.current.value)}),oe=ye(()=>{if(M.activeOptionIndex!==null){let{dataRef:ae,id:K}=M.options[M.activeOptionIndex];ie(ae.current.value),D({type:2,focus:E0.Specific,id:K})}}),Z=ye(()=>D({type:0})),J=ye(()=>D({type:1})),U=Yt(),G=ye((ae,K,ne)=>{U.dispose(),U.microTask(()=>ae===E0.Specific?D({type:2,focus:E0.Specific,id:K,trigger:ne}):D({type:2,focus:ae,trigger:ne}))}),W=ye((ae,K)=>(D({type:5,id:ae,dataRef:K}),()=>D({type:6,id:ae}))),ie=ye(ae=>Z0(M.mode,{0(){return N==null?void 0:N(ae)},1(){let K=M.value.slice(),ne=K.findIndex(me=>x(me,ae));return ne===-1?K.push(ae):K.splice(ne,1),N==null?void 0:N(K)}})),Y=ye(ae=>D({type:3,value:ae})),$=ye(()=>D({type:4})),fe=ye(ae=>{D({type:7,element:ae})}),he=ye(ae=>{D({type:8,element:ae})}),Ne=ve(()=>({onChange:ie,registerOption:W,goToOption:G,closeListbox:J,openListbox:Z,selectActiveOption:oe,selectOption:j,search:Y,clearSearch:$,setButtonElement:fe,setOptionsElement:he}),[]),[Ie,te]=Nv({inherit:!0}),H={ref:_},le=$e(()=>{if(C!==void 0)return N==null?void 0:N(C)},[N,C]),be=M0();return ee.createElement(te,{value:Ie,props:{htmlFor:(r=M.buttonElement)==null?void 0:r.id},slot:{open:M.listboxState===0,disabled:f}},ee.createElement(v_,null,ee.createElement(To.Provider,{value:Ne},ee.createElement(S5.Provider,{value:M},ee.createElement(g9,{value:Z0(M.listboxState,{0:j0.Open,1:j0.Closed})},a!=null&&E!=null&&ee.createElement(gv,{disabled:f,data:{[a]:E},form:s,onReset:le}),be({ourProps:H,theirProps:v,slot:O,defaultTag:EC,name:"Listbox"}))))))}let TC="button";function NC(e,t){var r;let n=R3("Listbox.Button"),i=x5("Listbox.Button"),o=v1(),s=$l(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=n.disabled||!1,autoFocus:c=!1,...d}=e,f=B0(t,p_(),i.setButtonElement),m=g_(),h=ye(M=>{switch(M.key){case S0.Enter:dv(M.currentTarget);break;case S0.Space:case S0.ArrowDown:M.preventDefault(),a1(()=>i.openListbox()),n.value||i.goToOption(E0.First);break;case S0.ArrowUp:M.preventDefault(),a1(()=>i.openListbox()),n.value||i.goToOption(E0.Last);break}}),p=ye(M=>{switch(M.key){case S0.Space:M.preventDefault();break}}),v=ye(M=>{var L;if(vv(M.currentTarget))return M.preventDefault();n.listboxState===0?(a1(()=>i.closeListbox()),(L=n.buttonElement)==null||L.focus({preventScroll:!0})):(M.preventDefault(),i.openListbox())}),b=ye(M=>M.preventDefault()),_=Bl([a]),C=Cv(),{isFocusVisible:E,focusProps:N}=Jy({autoFocus:c}),{isHovered:I,hoverProps:D}=Ky({isDisabled:l}),{pressed:P,pressProps:A}=nv({disabled:l}),x=ve(()=>({open:n.listboxState===0,active:P||n.listboxState===0,disabled:l,invalid:n.invalid,value:n.value,hover:I,focus:E,autofocus:c}),[n.listboxState,n.value,l,I,E,P,n.invalid,c]),k=Il(m(),{ref:f,id:a,type:Kv(e,n.buttonElement),"aria-haspopup":"listbox","aria-controls":(r=n.optionsElement)==null?void 0:r.id,"aria-expanded":n.listboxState===0,"aria-labelledby":_,"aria-describedby":C,disabled:l||void 0,autoFocus:c,onKeyDown:h,onKeyUp:p,onKeyPress:b,onClick:v},N,D,A);return M0()({ourProps:k,theirProps:d,slot:x,defaultTag:TC,name:"Listbox.Button"})}let O9=d0(!1),MC="div",kC=ur.RenderStrategy|ur.Static;function IC(e,t){var r,n;let i=v1(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:c=!1,...d}=e,f=m_(s),[m,h]=Ee(null);f&&(a=!0);let p=R3("Listbox.Options"),v=x5("Listbox.Options"),b=xr(p.optionsElement),_=k3(),[C,E]=Ql(c,m,_!==null?(_&j0.Open)===j0.Open:p.listboxState===0);jl(C,p.buttonElement,v.closeListbox);let N=p.__demoMode?!1:l&&p.listboxState===0;Jl(N,b);let I=p.__demoMode?!1:l&&p.listboxState===0;Vl(I,{allowed:$e(()=>[p.buttonElement,p.optionsElement],[p.buttonElement,p.optionsElement])});let D=p.listboxState!==0,P=gC(D,p.buttonElement)?!1:C,A=C&&p.listboxState===1,x=C_(A,p.value),k=ye($=>p.compare(x,$)),M=ve(()=>{var $;if(f==null||!(($=f==null?void 0:f.to)!=null&&$.includes("selection")))return null;let fe=p.options.findIndex(he=>k(he.dataRef.current.value));return fe===-1&&(fe=0),fe},[f,p.options]),L=(()=>{if(f==null)return;if(M===null)return{...f,inner:void 0};let $=Array.from(p.listRef.current.values());return{...f,inner:{listRef:{current:$},index:M}}})(),[O,j]=y_(L),oe=w_(),Z=B0(t,f?O:null,v.setOptionsElement,h),J=Yt();Be(()=>{var $;let fe=p.optionsElement;fe&&p.listboxState===0&&fe!==(($=_r(fe))==null?void 0:$.activeElement)&&(fe==null||fe.focus({preventScroll:!0}))},[p.listboxState,p.optionsElement]);let U=ye($=>{var fe,he;switch(J.dispose(),$.key){case S0.Space:if(p.searchQuery!=="")return $.preventDefault(),$.stopPropagation(),v.search($.key);case S0.Enter:if($.preventDefault(),$.stopPropagation(),p.activeOptionIndex!==null){let{dataRef:Ne}=p.options[p.activeOptionIndex];v.onChange(Ne.current.value)}p.mode===0&&(a1(()=>v.closeListbox()),(fe=p.buttonElement)==null||fe.focus({preventScroll:!0}));break;case Z0(p.orientation,{vertical:S0.ArrowDown,horizontal:S0.ArrowRight}):return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.Next);case Z0(p.orientation,{vertical:S0.ArrowUp,horizontal:S0.ArrowLeft}):return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.Previous);case S0.Home:case S0.PageUp:return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.First);case S0.End:case S0.PageDown:return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.Last);case S0.Escape:$.preventDefault(),$.stopPropagation(),a1(()=>v.closeListbox()),(he=p.buttonElement)==null||he.focus({preventScroll:!0});return;case S0.Tab:$.preventDefault(),$.stopPropagation(),a1(()=>v.closeListbox()),zv(p.buttonElement,$.shiftKey?E1.Previous:E1.Next);break;default:$.key.length===1&&(v.search($.key),J.setTimeout(()=>v.clearSearch(),350));break}}),G=(r=p.buttonElement)==null?void 0:r.id,W=ve(()=>({open:p.listboxState===0}),[p.listboxState]),ie=Il(f?oe():{},{id:o,ref:Z,"aria-activedescendant":p.activeOptionIndex===null||(n=p.options[p.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":p.mode===1?!0:void 0,"aria-labelledby":G,"aria-orientation":p.orientation,onKeyDown:U,role:"listbox",tabIndex:p.listboxState===0?0:void 0,style:{...d.style,...j,"--button-width":Lv(p.buttonElement,!0).width},...Xl(E)}),Y=M0();return ee.createElement(C9,{enabled:a?e.static||C:!1},ee.createElement(S5.Provider,{value:p.mode===1?p:{...p,isSelected:k}},Y({ourProps:ie,theirProps:d,slot:W,defaultTag:MC,features:kC,visible:P,name:"Listbox.Options"})))}let RC="div";function OC(e,t){let r=v1(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...s}=e,a=He(O9)===!0,l=R3("Listbox.Option"),c=x5("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===n:!1,f=l.isSelected(o),m=de(null),h=yC(m),p=Zt({disabled:i,value:o,domRef:m,get textValue(){return h()}}),v=B0(t,m,x=>{x?l.listRef.current.set(n,x):l.listRef.current.delete(n)});r0(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return yt().requestAnimationFrame(()=>{var x,k;(k=(x=m.current)==null?void 0:x.scrollIntoView)==null||k.call(x,{block:"nearest"})})},[m,d,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),r0(()=>{if(!a)return c.registerOption(n,p)},[p,n,a]);let b=ye(x=>{var k;if(i)return x.preventDefault();c.onChange(o),l.mode===0&&(a1(()=>c.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),_=ye(()=>{if(i)return c.goToOption(E0.Nothing);c.goToOption(E0.Specific,n)}),C=rb(),E=ye(x=>{C.update(x),!i&&(d||c.goToOption(E0.Specific,n,0))}),N=ye(x=>{C.wasMoved(x)&&(i||d||c.goToOption(E0.Specific,n,0))}),I=ye(x=>{C.wasMoved(x)&&(i||d&&c.goToOption(E0.Nothing))}),D=ve(()=>({active:d,focus:d,selected:f,disabled:i,selectedOption:f&&a}),[d,f,i,a]),P=a?{}:{id:n,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:b,onFocus:_,onPointerEnter:E,onMouseEnter:E,onPointerMove:N,onMouseMove:N,onPointerLeave:I,onMouseLeave:I},A=M0();return!f&&a?null:A({ourProps:P,theirProps:s,slot:D,defaultTag:RC,name:"Listbox.Option"})}let DC=Ke;function $C(e,t){let{options:r,placeholder:n,...i}=e,o={ref:B0(t)},s=R3("ListboxSelectedOption"),a=ve(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,c=M0();return ee.createElement(O9.Provider,{value:!0},c({ourProps:o,theirProps:{...i,children:ee.createElement(ee.Fragment,null,n&&l?n:r)},slot:a,defaultTag:DC,name:"ListboxSelectedOption"}))}let FC=_0(AC),D9=_0(NC),PC=Rv,$9=_0(IC),F9=_0(OC),LC=_0($C),BC=Object.assign(FC,{Button:D9,Label:PC,Options:$9,Option:F9,SelectedOption:LC}),g0=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function A2(e){return u(Ao,pt(e,1))}class ct extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Key","ClassName","Children"]}}function T2(e){return u(Ao.Panel,pt(e,1))}class Dn extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["As","Key","ClassName","Children"]}}function P9(e){return u(Ao.Title,pt(e,1))}class N2 extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["As","Key","ClassName"]}}function M2(e){return u(mC,pt(e,1))}function Kt(e,t){let r;return u("svg",y(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",w.Children.toArray(Array.from(r))])])))}function UC(e,t){let r,n,i,o,s;return A2(g([new g0(3,[e]),new g0(4,[t]),new g0(5,[[M2(se(new N2(2,["fixed inset-0 bg-gray-500/50"]))),u("div",y(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[T2(se(new ct(2,[[u("div",y(g([["className","flex flex-col mt-6 mb-6 px-6"],(n=[u("div",y(g([["className","flex flex-row justify-between"],(i=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),u("button",y(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Kt(24,24)],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(i))])]))),u("div",y(g([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",w.Children.toArray(Array.from(n))])])))]])))],["children",w.Children.toArray(Array.from(r))])])))]])]))}function k2(e){return u("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function Tr(e){return u("span",{className:"text-sm font-normal pt-2",children:e})}function x2(e,t){return u("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:r=>{t()},type:"button",children:w.Children.toArray([e])})}function L9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",n]),["fill","#60A5FA"]])))),["children",w.Children.toArray(Array.from(r))])])))}function E5(e){let t,r;return u("div",y(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[L9(20,20),u("div",y(g([["className","grow shrink basis-0 justify-between items-center flex"],(r=[u("div",{className:"grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight",children:e})],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])])))}function B9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",n]),["fill","#F87171"]])))),["children",w.Children.toArray(Array.from(r))])])))}function U9(e){let t,r;return u("div",y(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[B9(16,15),u("div",y(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(r=[u("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])])))}function A5(e,t){let r;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=g([u("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",w.Children.toArray(Array.from(r))])])))}let st=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Value","OnChange","Children"]}};function No(e){return u(BC,pt(e,1))}class fr extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["ClassName","Children"]}}function Mo(e){return u(D9,pt(e,1))}class ko extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function Io(e,t){return u($9,pt(e,1),...t)}class z0 extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Ro(e){return u(F9,pt(e,1))}function Oo(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",n]),["fill","#6B7280"]])))),["children",w.Children.toArray(Array.from(r))])])))}function Hr(e,t,r,n,i,o,s,a){let l,c,d,f,m,h,p;const v=i.fields[0],b=Vi(i0(_=>_[1].fields[0],qn(_=>Va(_.fields[0],v),n)));return u("div",y(g([["key",e0(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(l=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(c=[u("div",y(q(T(()=>F(S(["className",`${n==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),T(()=>{let _;return S((_=q(T(()=>F(S(u("div",{className:"text-sm font-medium leading-tight",children:a3(e)})),T(()=>S(t?u("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["children",w.Children.toArray(Array.from(_))]))}))))))],["children",w.Children.toArray(Array.from(c))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[A5(16,12)],["children",w.Children.toArray(Array.from(d))])]))),u("div",y(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(f=[No(g([new st(0,[b]),new st(1,[_=>{V1(C=>{o(C[0])},Vt(jt(C=>C[1].fields[0]===_?X(C[2],new J1(0,[])):!1,v)))}]),new st(2,[[u("div",y(g([Y0,["className","relative w-full"],(m=[Mo(q(T(()=>{let _;return F(S(new fr(0,[`${_=t&&r,_&&n==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),T(()=>{let C;return S(new fr(1,[[u("span",y(q(T(()=>{let E;const N=t&&r;return E=n!=null?[b,""]:N?["Select a field","text-red-900"]:["Select a field","text-gray-500"],F(S(["className",`${E[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>S(["children",E[0]])))})))),u("span",y(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(C=[Oo(20,20)],["children",w.Children.toArray(Array.from(C))])])))]]))}))}))),Io(q(T(()=>S(new ko(`z-10 absolute ${e.tag===4?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),q(T(()=>wr(_=>{const C=_[2],E=_[1].fields[0];return S(Ro(g([new z0(0,[h1(_[0].fields[0])]),new z0(1,[E]),new z0(2,[X(C,new J1(1,[]))]),new z0(3,["relative select-none"]),new z0(4,[N=>[u("span",{className:"px-4 py-2 block truncate "+(C.tag===0?N.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:E})]])])))},v))))],["children",w.Children.toArray(Array.from(m))])])))]])]))],["children",w.Children.toArray(Array.from(f))])]))),u("div",y(g([(h="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",h]),(p=[u("button",y(q(T(()=>F(S(["children","Clear"]),T(()=>F(s==null?S(["className","opacity-50 cursor-not-allowed"]):S(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const _=s;if(_==null)return Te();{const C=_;return S(["onClick",E=>{C()}])}})))))))),u("button",y(q(T(()=>F(S(["children","Preview"]),T(()=>F(a==null?S(["className","opacity-50 cursor-not-allowed"]):S(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const _=a;if(_==null)return Te();{const C=_;return S(["onClick",E=>{C()}])}}))))))))],["children",w.Children.toArray(Array.from(p))])])))],["children",w.Children.toArray(Array.from(l))])])))}function H9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",n]),["fill","#9CA3AF"]])))),["children",w.Children.toArray(Array.from(r))])])))}function Nr(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",n]),["fill","#10B981"]])))),["children",w.Children.toArray(Array.from(r))])])))}function V9(e){let t,r,n;return u("div",y(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[u("span",y(g([["className","text-emerald-700"],(r=[Nr(20,20)],["children",w.Children.toArray(Array.from(r))])]))),u("div",y(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(n=[u("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(t))])])))}function O3(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",n]),["fill","white"]])))),["children",w.Children.toArray(Array.from(r))])])))}function HC(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function VC(e){return e.startsWith("4")&&e.length===9?`+614${e.slice(1,e.length)}`:e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function j9(e){return VC(HC(Aa(e," ","")))}function jC(e,t,r){let n,i,o,s,a,l,c,d;return u("div",y(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[u("div",y(g([(i="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",i]),(o=[u("div",y(g([["className","flex justify-between w-full"],(s=[u("span",{className:"text-black text-base font-semibold leading-normal text-nowrap",children:`Previewing “${a3(e)}”`}),u("button",y(g([["onClick",f=>{r()}],["type","button"],["className","text-gray-600"],(a=[Kt(24,24)],["children",w.Children.toArray(Array.from(a))])])))],["children",w.Children.toArray(Array.from(s))])]))),u("div",y(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(l=[u("div",y(g([["className","self-stretch flex-col justify-center items-start flex"],(c=Gn((f,m)=>u("div",y(q(T(()=>F(S(["className",`${f%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),T(()=>{let h;return S((h=q(T(()=>{const p=Ht(m);return S(p?u("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):u("div",y(q(T(()=>F(S(Y0),T(()=>F(S(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),T(()=>e.tag===3?S(["children",j9(m)]):S(["children",m]))))))))))})),["children",w.Children.toArray(Array.from(h))]))})))))),t),["children",w.Children.toArray(Array.from(c))])])))],["children",w.Children.toArray(Array.from(l))])]))),u("div",y(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(d=[u("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",w.Children.toArray(Array.from(d))])])))],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(n))])])))}function WC(e){let t,r,n;const i=e.sendAnalytics,o=e.back,s=e.next,a=e.dataRows,l=e.headerRow,c=e.existingMappings;let d;const f=Ry(l,a,c);d=wt(()=>gt(()=>f,(N,I)=>Oy(i,l,a,N,I),(N,I)=>{}),void 0,void 0);const m=d[0],h=d[1],p=w.useState(!1),v=p[1],b=w.useState(!1),_=b[0],C=N=>{if(ky(m)(N))return()=>{h(new _t(1,[N]))}},E=N=>{if(Iy(m,N))return()=>{h(new _t(2,[N]))}};return u("div",y(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[UC(p[0],()=>{v(!1)}),k2("Map fields"),Tr("Match the fields from your CSV to the corresponding destination fields."),u("div",y(g([["className","flex flex-row pt-3 gap-2"],(r=[x2("What is mapping and why is it important?",()=>{v(!0)})],["children",w.Children.toArray(Array.from(r))])]))),u("div",y(g([["className","justify-start items-start gap-12 inline-flex"],(n=q(T(()=>{let N;return F(S(u("div",y(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(N=q(T(()=>F(m.IsPrefilled?S(E5("We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.")):S(Ae()),T(()=>F(_&&m.Status.tag===0?S(U9("Some required fields are incomplete. Fill in all required fields to continue.")):S(Ae()),T(()=>{let I,D,P,A,x,k,M,L;return S(u("div",y(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(I=[u("div",y(g([(D="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",D]),(P=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(A=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),u("div",y(q(T(()=>F(S(["className",`${m.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),T(()=>{let O;return S((O=[u("div",{className:"text-center text-xs font-medium leading-none",children:`${m.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",w.Children.toArray(Array.from(O))]))}))))))],["children",w.Children.toArray(Array.from(A))])]))),u("div",{className:"w-5 h-5 px-3 py-3.5"}),u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(x=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),u("div",y(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(k=[u("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${m.NumberOfDestinationFieldsMapped} of ${m.NumberOfIncomingFields} used`})],["children",w.Children.toArray(Array.from(k))])])))],["children",w.Children.toArray(Array.from(x))])])))],["children",w.Children.toArray(Array.from(P))])]))),u("div",y(g([["className","w-[640px] pt-2 flex-col justify-start items-start gap-2 flex overflow-hidden"],(M=[u("div",y(se((L=q(T(()=>F(S(Hr(new Q(0,[]),!0,_,m.FirstName.ColumnIndex,m.FirstName.IncomingFields,O=>{let j;h((j=[new Q(0,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(0,[])),E(new Q(0,[])))),T(()=>F(S(Hr(new Q(1,[]),!0,_,m.LastName.ColumnIndex,m.LastName.IncomingFields,O=>{let j;h((j=[new Q(1,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(1,[])),E(new Q(1,[])))),T(()=>F(S(Hr(new Q(2,[]),!0,_,m.Email.ColumnIndex,m.Email.IncomingFields,O=>{let j;h((j=[new Q(2,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(2,[])),E(new Q(2,[])))),T(()=>F(S(Hr(new Q(3,[]),!1,_,m.MobilePhone.ColumnIndex,m.MobilePhone.IncomingFields,O=>{let j;h((j=[new Q(3,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(3,[])),E(new Q(3,[])))),T(()=>F(S(Hr(new Q(4,[]),!1,_,m.EmploymentBasis.ColumnIndex,m.EmploymentBasis.IncomingFields,O=>{let j;h((j=[new Q(4,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(4,[])),E(new Q(4,[])))),T(()=>{let O,j,oe,Z,J,U;return F(m.NumberOfIncomingFieldsDiscarded===0?S(Ae()):S(u("div",y(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(O=[u("div",y(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(j=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(oe=[H9(14,14),u("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",w.Children.toArray(Array.from(oe))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(Z=[A5(16,12)],["children",w.Children.toArray(Array.from(Z))])]))),u("div",y(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(J=[u("div",y(g([["className","w-[218px] pl-3 items-center inline-flex"],(U=[u("div",y(q(T(()=>F(S(["className","text-gray-500 text-sm font-medium"]),T(()=>{const G=m.NumberOfIncomingFieldsDiscarded|0;return S(G===1?["children","Remaining 1 unused field"]:["children",`Remaining ${G} unused fields`])}))))))],["children",w.Children.toArray(Array.from(U))])])))],["children",w.Children.toArray(Array.from(J))])])))],["children",w.Children.toArray(Array.from(j))])])))],["children",w.Children.toArray(Array.from(O))])])))),T(()=>{let G;return S(u("div",y(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(G=q(T(()=>F(m.NumberOfDestinationFieldsMapped===5?S(V9("All destination fields have been mapped. You’re good to go.")):S(Ae()),T(()=>{let W,ie,Y,$,fe,he,Ne,Ie,te;return S(u("div",y(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(W=[u("div",y(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(ie=[u("div",y(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(Y=[u("div",y(g([["className","grow shrink basis-0 text-right"],($=[u("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),u("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),u("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",w.Children.toArray(Array.from($))])])))],["children",w.Children.toArray(Array.from(Y))])]))),u("div",y(g([["className","justify-start items-center gap-2 flex"],(fe=[u("button",y(g([(he="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",he]),["onClick",H=>{o(m.Status)}],(Ne=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",w.Children.toArray(Array.from(Ne))])]))),u("button",y(g([(Ie="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Ie]),["disabled",_&&m.Status.tag===0],["onClick",H=>{const le=m.Status;le.tag===0?b[1](!0):s([le.fields[0],le.fields[1]])}],(te=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:m.EmploymentBasis.ColumnIndex==null?"Next":"Map values"}),O3(13,8)],["children",w.Children.toArray(Array.from(te))])])))],["children",w.Children.toArray(Array.from(fe))])])))],["children",w.Children.toArray(Array.from(ie))])])))],["children",w.Children.toArray(Array.from(W))])]))))})))),["children",w.Children.toArray(Array.from(G))])]))))}))})))))))))))),["children",w.Children.toArray(Array.from(L))]))))],["children",w.Children.toArray(Array.from(M))])])))],["children",w.Children.toArray(Array.from(I))])]))))})))))),["children",w.Children.toArray(Array.from(N))])])))),T(()=>{const I=m.Preview;return I==null?S(Ae()):S(jC(I[0],I[1],()=>{h(new _t(3,[]))}))}))})),["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(t))])])))}let W3=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}},Q5=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}},t2=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Next","Back"]}},q3=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Add","Clear","Remove","Set"]}},qC=class extends ue{constructor(t,r,n,i,o,s,a){super(),this.IncomingValues=t,this.Selections=r,this.NumberOfIncomingValuesUsed=n|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class d3 extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Available","Unavailable"]}}const Nt=[void 0];function W9(e,t,r){let n;const i=t.fields[0],o=G0(s=>s,gn(y6(r)));return new qC(Je(s=>[s,D1(s,o,{Equals:X,GetHashCode:cn})?new d3(1,[]):new d3(0,[])],i),r,o.length,Wd(Ot(s=>{let a;return a=G0(l=>l,s),a.length!==0},y6(r))),wl(o,i,{Equals:X,GetHashCode:cn}),(n=g(G0(s=>s,gn(De(s=>Je(a=>{if(a!=null)return[s[0],a]},s[1]),r)))),ke(n)?void 0:new Cy(pe(n),dt(Oe(n)))),e)}function GC(e,t){const r=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(n=>D1(p3(n.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),r,{Equals:(i,o)=>i===o,GetHashCode:l1}))}function zC(e,t){let r;if(t==null){let n=!1;const i=o=>{const s=GC(e,o);return!$t(X,s,Ae())&&s.length===0?Nt:(n=!0,Je(a=>a,s))};r=[Z2([[new w0(0,[]),i(new w0(0,[]))],[new w0(1,[]),i(new w0(1,[]))],[new w0(2,[]),i(new w0(2,[]))],[new w0(3,[]),i(new w0(3,[]))]],{Compare:R0}),n]}else{const n=t,i=Z2(Je(o=>[o[0],Je(s=>s[1],Kc(o[1],{Compare:Pi}))],gy(o=>o[0],gn([n.Tail,[n.Head]]),{Equals:X,GetHashCode:cn})),{Compare:R0});r=[Z2([[new w0(0,[]),Le(kt(i,new w0(0,[])),Nt)],[new w0(1,[]),Le(kt(i,new w0(1,[])),Nt)],[new w0(2,[]),Le(kt(i,new w0(2,[])),Nt)],[new w0(3,[]),Le(kt(i,new w0(3,[])),Nt)]],{Compare:R0}),!1]}return[W9(r[1],e,r[0]),ge()]}function q9(e,t){const r=w2(e.Selections,t);let n;switch(!$t(X,r,Ae())&&r.length===1&&we(0,r)!=null?n=0:n=1,n){case 0:return!0;default:return!1}}function G9(e,t){let r;return e.DiscardedValues.length>0?(r=w2(e.Selections,t),!r.some(n=>n==null)):!1}function YC(e,t,r){const n=w2(e.Selections,t);return!$t(X,n,Ae())&&n.length===1?!1:D1(r,n,{Equals:X,GetHashCode:p1})}function ZC(e,t,r,n){return!X(r,n)&&e.IncomingValues.some(i=>X(i[0],n)?X(i[1],new d3(0,[])):!1)?D1(r,w2(e.Selections,t),{Equals:X,GetHashCode:p1}):!1}function KC(e,t,r){let n,i;const o=p=>W9(r.Prefilled,e,p);let s,a,l,c,d,f,m,h;switch(t.tag){case 1:{q9(r,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{YC(r,t.fields[0],t.fields[1])?(s=2,c=t.fields[0],d=t.fields[1]):s=4;break}case 3:{ZC(r,t.fields[0],t.fields[1],t.fields[2])?(s=3,f=t.fields[0],m=t.fields[1],h=t.fields[2]):s=4;break}default:G9(r,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(L3(a,p=>i0(v=>Ha(v,Nt),p),r.Selections)),ge()];case 1:return[o(L3(l,p=>i0(v=>Nt,p),r.Selections)),ge()];case 2:return[o(L3(c,(n=(i=[d],p=>wl(i,p,{Equals:X,GetHashCode:p1})),p=>i0(n,p)),r.Selections)),ge()];case 3:return[o(L3(f,p=>i0(v=>Je(b=>X(b,m)?h:b,v),p),r.Selections)),ge()];default:return[r,ge()]}}function JC(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",n]),["fill","currentColor"]])))),["children",w.Children.toArray(Array.from(r))])])))}function XC(e,t,r,n,i,o,s){let a,l,c,d,f,m;return u("div",y(g([["key",e0(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[u("div",y(g([["className",v0(" ",q(T(()=>F($t(X,t,Nt)?S("bg-gray-50 border-gray-200 text-gray-500"):S("bg-emerald-50 border-emerald-200 text-emerald-700"),T(()=>S("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(c=[u("div",{className:"text-sm font-medium leading-tight",children:yl(e)})],["children",w.Children.toArray(Array.from(c))])])))],["children",w.Children.toArray(Array.from(l))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[A5(16,12)],["children",w.Children.toArray(Array.from(d))])]))),u("div",y(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(f=[u("div",y(se((m=q(T(()=>De(h=>{let p,v,b;return u("div",y(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(p=[u("div",y(g([["className","justify-start items-end flex flex-col w-[206px]"],(v=q(T(()=>F(S(No(q(T(()=>{const _=Vi(i0(C=>C.fields[0],h));return F(S(new st(0,[_])),T(()=>F(S(new st(1,[C=>{V1(E=>{s([h,E[0]])},Vt(jt(E=>E[0].fields[0]===C?X(E[1],new d3(0,[])):!1,r)))}])),T(()=>{let C,E;return S(new st(2,[[u("div",y(g([Y0,["className","relative w-full"],(C=[Mo(g([new fr(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new fr(1,[[u("span",y(q(T(()=>{const N=h!=null?[_,""]:["Select a value","text-gray-500"];return F(S(["className",`${N[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>S(["children",N[0]])))})))),u("span",y(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[Oo(20,20)],["children",w.Children.toArray(Array.from(E))])])))]])])),Io(q(T(()=>S(new ko(`z-10 absolute ${e.tag===3?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),q(T(()=>wr(N=>{const I=N[1],D=N[0].fields[0];return S(Ro(g([new z0(0,[D]),new z0(1,[D]),new z0(2,[X(I,new d3(1,[]))&&D!==_]),new z0(3,["relative select-none"]),new z0(4,[P=>[u("span",{className:v0(" ",q(T(()=>F(S("px-4 py-2 block truncate"),T(()=>{const A=P.active;let x;switch(P.selected?A?x=2:x=1:I.tag===1?x=0:A?x=2:x=1,x){case 0:return S("text-gray-700 opacity-50 cursor-not-allowed");case 1:return S("text-gray-700");default:return S("bg-primary-600 text-white")}}))))),children:D})]])])))},r))))],["children",w.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>X(h,Gc(t))?S(u("button",y(q(T(()=>{let _;return F(S((_=[JC(14,14),u("span",{children:["Map additional value"]})],["children",w.Children.toArray(Array.from(_))])),T(()=>F(S(["className",v0(" ",q(T(()=>F(S("py-2 justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),T(()=>i==null?S("opacity-50 cursor-not-allowed underline"):S("cursor-pointer underline hover:text-gray-700"))))))]),T(()=>{const C=i;if(C==null)return Te();{const E=C;return S(["onClick",N=>{E()}])}}))))}))))):Te())))),["children",w.Children.toArray(Array.from(v))])]))),u("div",y(g([["className","text-gray-500 text-xs font-normal pl-1"],(b=q(T(()=>{if(o!=null){const _=o;return S(u("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{_(h)}}))}else return S(u("button",y(q(T(()=>F(S(["children","Clear"]),T(()=>F(n==null?S(["className","opacity-50 underline cursor-not-allowed mt-2"]):S(["className","cursor-pointer underline py-2 hover:text-gray-700"]),T(()=>{const _=n;if(_==null)return Te();{const C=_;return S(["onClick",E=>{C()}])}})))))))))})),["children",w.Children.toArray(Array.from(b))])])))],["children",w.Children.toArray(Array.from(p))])])))},t))),["children",w.Children.toArray(Array.from(m))]))))],["children",w.Children.toArray(Array.from(f))])])))],["children",w.Children.toArray(Array.from(a))])])))}function QC(e){let t,r,n;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const c=zC(s,a);l=wt(()=>gt(()=>c,(p,v)=>KC(s,p,v),(p,v)=>{}),void 0,void 0);const d=l[0],f=l[1],m=w.useState(!1),h=m[0];return u("div",y(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[k2("Map values - Employment basis"),Tr("Match the values from your CSV to the corresponding destination values."),u("div",y(g([["className","justify-start items-start gap-12 inline-flex"],(r=[u("div",y(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(n=q(T(()=>F(d.Prefilled?S(E5("We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.")):S(Ae()),T(()=>F(h&&d.ValidatedMappings==null?S(U9("Map at least one value to continue.")):S(Ae()),T(()=>{let p,v,b,_,C,E,N,I,D;return S(u("div",y(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(p=[u("div",y(g([(v="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",v]),(b=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination values"}),u("div",y(g([["className",v0(" ",q(T(()=>F(d.NumberOfDestinationValuesMapped===4?S("bg-emerald-100 text-emerald-800"):S("bg-blue-100 text-blue-800"),T(()=>S("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[u("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",w.Children.toArray(Array.from(C))])])))],["children",w.Children.toArray(Array.from(_))])]))),u("div",{className:"w-5 h-5 px-3 py-3.5"}),u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),u("div",y(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(N=[u("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfIncomingValuesUsed} of ${d.IncomingValues.length} used`})],["children",w.Children.toArray(Array.from(N))])])))],["children",w.Children.toArray(Array.from(E))])])))],["children",w.Children.toArray(Array.from(b))])]))),u("div",y(g([["className","w-[640px] pt-2 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[u("div",y(se((D=q(T(()=>F(wr(P=>{let A,x,k;const M=P[0];return S(XC(M,P[1],d.IncomingValues,(A=M,q9(d,A)?()=>{f(new q3(1,[A]))}:void 0),(x=M,G9(d,x)?()=>{f(new q3(0,[x]))}:void 0),(k=M,w2(d.Selections,k).length>1?L=>{let O;f((O=[k,L],new q3(2,[O[0],O[1]])))}:void 0),L=>{let O;f((O=[M,L[0],L[1]],new q3(3,[O[0],O[1],O[2]])))}))},hf(d.Selections)),T(()=>{let P,A,x,k,M,L;return F(d.DiscardedValues.length===0?S(Ae()):S(u("div",y(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(P=[u("div",y(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(A=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[H9(14,14),u("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",w.Children.toArray(Array.from(x))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[A5(16,12)],["children",w.Children.toArray(Array.from(k))])]))),u("div",y(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(M=[u("div",y(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(L=q(T(()=>F(S(u("div",y(q(T(()=>F(S(["className","font-medium"]),T(()=>{const O=d.DiscardedValues.length|0;return S(O===1?["children","Remaining 1 unused value:"]:["children",`Remaining ${O} unused values:`])}))))))),T(()=>{let O;return S(u("ul",y(g([Y0,["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=Je(j=>u("li",{children:[j]}),gn(y1(T(()=>F(S(Je(j=>j.fields[0],d.DiscardedValues.slice(void 0,8))),T(()=>d.DiscardedValues.length>8?S([`... and ${d.DiscardedValues.length-8} other values`]):Te())))))),["children",w.Children.toArray(Array.from(O))])]))))})))),["children",w.Children.toArray(Array.from(L))])])))],["children",w.Children.toArray(Array.from(M))])])))],["children",w.Children.toArray(Array.from(A))])])))],["children",w.Children.toArray(Array.from(P))])])))),T(()=>{let O;return S(u("div",y(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=q(T(()=>F(d.DiscardedValues.length===0?S(V9("All incoming values have been mapped.")):S(Ae()),T(()=>{let j,oe,Z,J,U,G,W;return S(u("div",y(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(j=[u("div",y(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(oe=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",y(g([["className","justify-start items-center gap-2 flex"],(Z=[u("button",y(g([(J="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",J]),["onClick",ie=>{i(d.ValidatedMappings)}],(U=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",w.Children.toArray(Array.from(U))])]))),u("button",y(g([(G="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",G]),["disabled",h&&d.ValidatedMappings==null],["onClick",ie=>{const Y=d.ValidatedMappings;Y==null?m[1](!0):o(Y)}],(W=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Review"}),O3(13,8)],["children",w.Children.toArray(Array.from(W))])])))],["children",w.Children.toArray(Array.from(Z))])])))],["children",w.Children.toArray(Array.from(oe))])])))],["children",w.Children.toArray(Array.from(j))])]))))})))),["children",w.Children.toArray(Array.from(O))])]))))}))})))),["children",w.Children.toArray(Array.from(D))]))))],["children",w.Children.toArray(Array.from(I))])])))],["children",w.Children.toArray(Array.from(p))])]))))})))))),["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])])))}let e4=class extends ue{constructor(t,r,n,i,o,s,a,l,c,d){super(),this.RowNumber=t|0,this.FirstName=r,this.LastName=n,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.HasExistingEmailError=c,this.Errors=d}};class Hs extends ue{constructor(t,r){super(),this.Summary=t,this.Details=r}}function G3(e){if(!Ht(e))return e}function z9(e,t,r){let n,i;const o=e.fields[0],s=t.MobilePhone,a=r!=null&&r[1]!=null?(n=r[0].fields[0].fields[0]|0,i=r[1],[n,xy(i)]):void 0,l=s!=null&&c5(new u5(o),s)?s:void 0;return g(Je(c=>{let d,f,m,h,p,v,b,_,C,E,N,I,D,P,A,x,k;const M=c.fields[0];return Z2(G0(L=>L,[(d=G3(we(t.FirstName.fields[0],M)),d==null?void 0:(f=d,[At(new Q(0,[])),f])),(m=G3(we(t.LastName.fields[0],M)),m==null?void 0:(h=m,[At(new Q(1,[])),h])),(p=G3(we(t.Email.fields[0],M)),p==null?void 0:(v=p,[At(new Q(2,[])),v])),(b=(_=l,_==null?void 0:(C=G3(we(_.fields[0],M)),C==null?void 0:j9(C))),b==null?void 0:(E=b,[At(new Q(3,[])),E])),(N=(I=a,I==null?void 0:(D=I,P=(A=we(D[0],M),x=Ae(),[df(D[1],A,new T0(()=>x,L=>{x=L})),x]),P[0]?P[1]:void 0)),N==null?void 0:(k=N,[At(new Q(4,[])),k]))]),{Compare:Ut})},o))}function P2(e,t,r){const n=At(r);return[kt(e,n),!Gi(i=>i.PropName===n,t)]}function ex(e,t){const r=vl(t.PropName);if(r==null)return["Invalid or missing field",!1];{const n=r,i=a3(n).toLocaleLowerCase();if(kt(e.Data,At(n))!=null){let s;switch(n.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function Vs(e){const t=vl(e.PropName);if(t==null)return e.Message;{const r=t;let n;switch(r.tag===2&&e.Message.startsWith("Duplicate")?n=0:n=1,n){case 0:return`${a3(r)} exists in multiple rows`;default:return Aa(e.Message,e.Column,a3(r))}}}function tx(e,t,r,n,i){return B.Delay(()=>{const o=B.Delay(()=>{const s=e();return B.Bind(s,a=>{let l,c;const d=a;if(d.tag===1)return B.Return(new R(1,[d.fields[0]]));{const f=T8(A1(_=>_.Email.toLocaleLowerCase().trim(),d.fields[0]),{Compare:Ut}),m=At(new Q(2,[])),h=M1((_,C)=>{let E,N;const I=_[0]|0,D=_[1];return E=kt(C,m),(E==null?!1:(N=E,vn(N.toLocaleLowerCase().trim(),f)))?[I,F1(D,se([void 0,C]))]:[I+1,F1(D,se([I,C]))]},[0,Pe()],(l=[r,n,i],z9(l[0],l[1],l[2])))[1],p=A1(_=>_[1],N0(_=>_[0]!=null,h)),v=new F8((c=i,(c==null?void 0:c[1])!=null),s3((_,C)=>new ro(_+2,C),p)),b=t(v);return B.Bind(b,_=>{let C,E;const N=_;return E=N.tag===1?new R(1,[N.fields[0]]):new R(0,[(C=A1(I=>{let D,P,A,x,k;const M=Le((D=Q4(O=>O.RowId===I.RowId,N.fields[0].Errors),D==null?void 0:D.FieldErrors),Pe()),L=O=>P2(I.Data,M,O);return new e4(I.RowId-2+1,L(new Q(0,[])),L(new Q(1,[])),L(new Q(2,[])),L(new Q(3,[])),(P=L(new Q(4,[])),[(A=(x=P[0],x==null?void 0:_y(x)),A==null?void 0:yl(A)),P[1]]),Gi(O=>O.Message.startsWith("Duplicate Email"),M),!ke(N0(O=>!O.Message.startsWith("Duplicate Email"),M)),!1,ke(M)?void 0:ke(Oe(M))?(k=ex(I,pe(M)),new Hs(k[0],k[1]?se(Vs(pe(M))):void 0)):new Hs("Multiple invalid or missing fields",A1(Vs,M)))},v.Data),s3((I,D)=>{const P=D[0],A=D[1];if(P==null)return new e4(I+1,P2(A,Pe(),new Q(0,[])),P2(A,Pe(),new Q(1,[])),P2(A,Pe(),new Q(2,[])),P2(A,Pe(),new Q(3,[])),P2(A,Pe(),new Q(4,[])),!1,!1,!0,void 0);{const x=ud(P,C);return new e4(I+1,x.FirstName,x.LastName,x.Email,x.MobilePhone,x.EmploymentBasis,x.HasDuplicateEmailError,x.HasErrorOtherThanDuplicateEmail,x.HasExistingEmailError,x.Errors)}},h))]),B.Return(E)})}})});return B.TryWith(o,s=>{const a=new R(1,[e0(s)]);return B.Return(a)})})}function rx(e,t,r,n,i){return B.Delay(()=>B.TryWith(B.Delay(()=>{let o,s;return B.Bind(e(new P8((o=n,(o==null?void 0:o[1])!=null),X(i,new $0(0,[])),s3((a,l)=>new ro(a+2,l),(s=[t,r,n],z9(s[0],s[1],s[2]))))),a=>{let l;return B.Return((l=a,l.tag===1?new R(1,[l.fields[0]]):new R(0,[l.fields[0].ImportId])))})}),o=>B.Return(new R(1,[e0(o)]))))}let i2=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","ShowExistingUserRows","PreviewNextPage","PreviewPreviousPage","DownloadedErrorReport"]}},o2=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Validating","Reviewing"]}};class L2 extends ue{constructor(t,r,n,i,o,s,a,l,c,d,f,m,h,p,v,b){super(),this.Data=t,this.InviteTiming=r,this.DuplicateEmailCount=n|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfImportableRows=o|0,this.NumberOfInvalidRows=s|0,this.NumberOfRows=a|0,this.NumberOfExistingUsers=l|0,this.ShowingOnlyRowsWithErrors=c,this.ShowingExistingUsers=d,this.HasErrors=f,this.RowFrom=m|0,this.RowTo=h|0,this.NumberOfFilteredRows=p|0,this.Page=v,this.PageNo=b|0}}function nx(e,t,r){return[new o2(0,[]),o5(g([s1(t,new h0(5,[{RowCount:cy(r)}])),hp(n=>{mp(n)},e,void 0,n=>new i2(0,[n]))]))]}function Vr(e,t,r,n){const i=(e-1)*20|0,o=e*20-1|0,s=r?N0(n?l=>l.Errors!=null?!0:l.HasExistingEmailError:l=>l.Errors!=null,t):n?t:N0(l=>!l.HasExistingEmailError,t),a=Za(i,o,s);if(ke(a))return[0,0,l0(s),Pe()];{const l=a;return[i+1,i+l0(l),l0(s),l]}}function Y9(e){return e.PageNo>1}function Z9(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function ix(e,t,r){const n=N0(o=>o.Errors!=null,e.Data),i=s3((o,s)=>{const a=Le(i0(p=>p.Summary,s.Errors),""),l=Le(s.FirstName[0],""),c=Le(s.LastName[0],""),d=Le(s.Email[0],""),f=Le(s.MobilePhone[0],""),m=Le(s.EmploymentBasis[0],""),h=o===l0(n)-1?"":`
|
|
49
|
+
`)),[]});var ob=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ob||{});function Xl(e){let t={};for(let r in e)e[r]===!0&&(t[`data-${r}`]="");return t}function Ql(e,t,r,n){let[i,o]=Ee(r),{hasFlag:s,addFlag:a,removeFlag:l}=nb(e&&i?3:0),c=de(!1),d=de(!1),f=Yt();return r0(()=>{var m;if(e){if(r&&o(!0),!t){r&&a(3);return}return(m=n==null?void 0:n.start)==null||m.call(n,r),sb(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(r?(a(3),l(4)):(a(4),l(2)))},run(){d.current?r?(l(3),a(4)):(l(4),a(3)):r?l(1):a(1)},done(){var h;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(c.current=!1,l(7),r||o(!1),(h=n==null?void 0:n.end)==null||h.call(n,r))}})}},[e,r,t,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function sb(e,{prepare:t,run:r,done:n,inFlight:i}){let o=yt();return lb(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(ab(e,n))})}),o.dispose}function ab(e,t){var r,n;let i=yt();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(n=(r=e.getAnimations)==null?void 0:r.call(e).filter(a=>a instanceof CSSTransition))!=null?n:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function lb(e,{inFlight:t,prepare:r}){if(t!=null&&t.current){r();return}let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}function wo(e,t){let r=de([]),n=ye(e);Be(()=>{let i=[...r.current];for(let[o,s]of t.entries())if(r.current[o]!==s){let a=n(t,i);return r.current=t,a}},[n,...t])}function m5(){return typeof window<"u"}function Sr(e){return e9(e)?(e.nodeName||"").toLowerCase():"#document"}function c1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W1(e){var t;return(t=(e9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function e9(e){return m5()?e instanceof Node||e instanceof c1(e).Node:!1}function V0(e){return m5()?e instanceof Element||e instanceof c1(e).Element:!1}function L1(e){return m5()?e instanceof HTMLElement||e instanceof c1(e).HTMLElement:!1}function xs(e){return!m5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof c1(e).ShadowRoot}function N3(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=N1(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function ub(e){return["table","td","th"].includes(Sr(e))}function p5(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yo(e){const t=vo(),r=V0(e)?N1(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function cb(e){let t=Lt(e);for(;L1(t)&&!dr(t);){if(yo(t))return t;if(p5(t))return null;t=Lt(t)}return null}function vo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dr(e){return["html","body","#document"].includes(Sr(e))}function N1(e){return c1(e).getComputedStyle(e)}function g5(e){return V0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xs(e)&&e.host||W1(e);return xs(t)?t.host:t}function t9(e){const t=Lt(e);return dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:L1(t)&&N3(t)?t:t9(t)}function u3(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=t9(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=c1(i);if(o){const a=mi(s);return t.concat(s,s.visualViewport||[],N3(i)?i:[],a&&r?u3(a):[])}return t.concat(i,u3(i,[],r))}function mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function db(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}const b2=Math.min,F0=Math.max,c3=Math.round,j3=Math.floor,O1=e=>({x:e,y:e}),fb={left:"right",right:"left",bottom:"top",top:"bottom"},hb={start:"end",end:"start"};function Ss(e,t,r){return F0(e,b2(t,r))}function Er(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function M3(e){return e.split("-")[1]}function r9(e){return e==="x"?"y":"x"}function n9(e){return e==="y"?"height":"width"}function _2(e){return["top","bottom"].includes(Bt(e))?"y":"x"}function i9(e){return r9(_2(e))}function mb(e,t,r){r===void 0&&(r=!1);const n=M3(e),i=i9(e),o=n9(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=In(s)),[s,In(s)]}function pb(e){const t=In(e);return[pi(e),t,pi(t)]}function pi(e){return e.replace(/start|end/g,t=>hb[t])}function gb(e,t,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function wb(e,t,r,n){const i=M3(e);let o=gb(Bt(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(pi)))),o}function In(e){return e.replace(/left|right|bottom|top/g,t=>fb[t])}function yb(e){return{top:0,right:0,bottom:0,left:0,...e}}function vb(e){return typeof e!="number"?yb(e):{top:e,right:e,bottom:e,left:e}}function Rn(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Es(e,t,r){let{reference:n,floating:i}=e;const o=_2(t),s=i9(t),a=n9(s),l=Bt(t),c=o==="y",d=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[a]/2-i[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-i.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(M3(t)){case"start":h[s]-=m*(r&&c?-1:1);break;case"end":h[s]+=m*(r&&c?-1:1);break}return h}const bb=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=Es(c,n,l),m=n,h={},p=0;for(let v=0;v<a.length;v++){const{name:b,fn:_}=a[v],{x:C,y:E,data:N,reset:I}=await _({x:d,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=E??f,h={...h,[b]:{...h[b],...N}},I&&p<=50&&(p++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:d,y:f}=Es(c,m,l)),v=-1)}return{x:d,y:f,placement:m,strategy:i,middlewareData:h}};async function w5(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=Er(t,e),p=vb(h),b=a[m?f==="floating"?"reference":"floating":f],_=Rn(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),C=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Rn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:E,strategy:l}):C);return{top:(_.top-I.top+p.top)/N.y,bottom:(I.bottom-_.bottom+p.bottom)/N.y,left:(_.left-I.left+p.left)/N.x,right:(I.right-_.right+p.right)/N.x}}const _b=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...b}=Er(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const _=Bt(i),C=_2(a),E=Bt(a)===a,N=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=m||(E||!v?[In(a)]:pb(a)),D=p!=="none";!m&&D&&I.push(...wb(a,v,p,N));const P=[a,...I],A=await w5(t,b),x=[];let k=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&x.push(A[_]),f){const j=mb(i,s,N);x.push(A[j[0]],A[j[1]])}if(k=[...k,{placement:i,overflows:x}],!x.every(j=>j<=0)){var M,L;const j=(((M=o.flip)==null?void 0:M.index)||0)+1,oe=P[j];if(oe)return{data:{index:j,overflows:k},reset:{placement:oe}};let Z=(L=k.filter(J=>J.overflows[0]<=0).sort((J,U)=>J.overflows[1]-U.overflows[1])[0])==null?void 0:L.placement;if(!Z)switch(h){case"bestFit":{var O;const J=(O=k.filter(U=>{if(D){const G=_2(U.placement);return G===C||G==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(G=>G>0).reduce((G,W)=>G+W,0)]).sort((U,G)=>U[1]-G[1])[0])==null?void 0:O[0];J&&(Z=J);break}case"initialPlacement":Z=a;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};async function Cb(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Bt(r),a=M3(r),l=_2(r)==="y",c=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,f=Er(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*d,y:m*c}:{x:m*c,y:h*d}}const xb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Cb(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Sb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:_,y:C}=b;return{x:_,y:C}}},...l}=Er(e,t),c={x:r,y:n},d=await w5(t,l),f=_2(Bt(i)),m=r9(f);let h=c[m],p=c[f];if(o){const b=m==="y"?"top":"left",_=m==="y"?"bottom":"right",C=h+d[b],E=h-d[_];h=Ss(C,h,E)}if(s){const b=f==="y"?"top":"left",_=f==="y"?"bottom":"right",C=p+d[b],E=p-d[_];p=Ss(C,p,E)}const v=a.fn({...t,[m]:h,[f]:p});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:o,[f]:s}}}}}},Eb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Er(e,t),d=await w5(t,c),f=Bt(i),m=M3(i),h=_2(i)==="y",{width:p,height:v}=o.floating;let b,_;f==="top"||f==="bottom"?(b=f,_=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,b=m==="end"?"top":"bottom");const C=v-d.top-d.bottom,E=p-d.left-d.right,N=b2(v-d[b],C),I=b2(p-d[_],E),D=!t.middlewareData.shift;let P=N,A=I;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=C),D&&!m){const k=F0(d.left,0),M=F0(d.right,0),L=F0(d.top,0),O=F0(d.bottom,0);h?A=p-2*(k!==0||M!==0?k+M:F0(d.left,d.right)):P=v-2*(L!==0||O!==0?L+O:F0(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:P});const x=await s.getDimensions(a.floating);return p!==x.width||v!==x.height?{reset:{rects:!0}}:{}}}};function o9(e){const t=N1(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=L1(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=c3(r)!==o||c3(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function bo(e){return V0(e)?e:e.contextElement}function er(e){const t=bo(e);if(!L1(t))return O1(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=o9(t);let s=(o?c3(r.width):r.width)/n,a=(o?c3(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ab=O1(0);function s9(e){const t=c1(e);return!vo()||!t.visualViewport?Ab:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tb(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==c1(e)?!1:t}function C2(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=bo(e);let s=O1(1);t&&(n?V0(n)&&(s=er(n)):s=er(e));const a=Tb(o,r,n)?s9(o):O1(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o){const m=c1(o),h=n&&V0(n)?c1(n):n;let p=m,v=mi(p);for(;v&&n&&h!==p;){const b=er(v),_=v.getBoundingClientRect(),C=N1(v),E=_.left+(v.clientLeft+parseFloat(C.paddingLeft))*b.x,N=_.top+(v.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,f*=b.y,l+=E,c+=N,p=c1(v),v=mi(p)}}return Rn({width:d,height:f,x:l,y:c})}function _o(e,t){const r=g5(e).scrollLeft;return t?t.left+r:C2(W1(e)).left+r}function a9(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:_o(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function Nb(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",s=W1(n),a=t?p5(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=O1(1);const d=O1(0),f=L1(n);if((f||!f&&!o)&&((Sr(n)!=="body"||N3(s))&&(l=g5(n)),L1(n))){const h=C2(n);c=er(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const m=s&&!f&&!o?a9(s,l,!0):O1(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:r.y*c.y-l.scrollTop*c.y+d.y+m.y}}function Mb(e){return Array.from(e.getClientRects())}function kb(e){const t=W1(e),r=g5(e),n=e.ownerDocument.body,i=F0(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=F0(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+_o(e);const a=-r.scrollTop;return N1(n).direction==="rtl"&&(s+=F0(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Ib(e,t){const r=c1(e),n=W1(e),i=r.visualViewport;let o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=vo();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Rb(e,t){const r=C2(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=L1(e)?er(e):O1(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function As(e,t,r){let n;if(t==="viewport")n=Ib(e,r);else if(t==="document")n=kb(W1(e));else if(V0(t))n=Rb(t,r);else{const i=s9(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Rn(n)}function l9(e,t){const r=Lt(e);return r===t||!V0(r)||dr(r)?!1:N1(r).position==="fixed"||l9(r,t)}function Ob(e,t){const r=t.get(e);if(r)return r;let n=u3(e,[],!1).filter(a=>V0(a)&&Sr(a)!=="body"),i=null;const o=N1(e).position==="fixed";let s=o?Lt(e):e;for(;V0(s)&&!dr(s);){const a=N1(s),l=yo(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||N3(s)&&!l&&l9(e,s))?n=n.filter(d=>d!==s):i=a,s=Lt(s)}return t.set(e,n),n}function Db(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?p5(t)?[]:Ob(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const f=As(t,d,i);return c.top=F0(f.top,c.top),c.right=b2(f.right,c.right),c.bottom=b2(f.bottom,c.bottom),c.left=F0(f.left,c.left),c},As(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $b(e){const{width:t,height:r}=o9(e);return{width:t,height:r}}function Fb(e,t,r){const n=L1(t),i=W1(t),o=r==="fixed",s=C2(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=O1(0);if(n||!n&&!o)if((Sr(t)!=="body"||N3(i))&&(a=g5(t)),n){const m=C2(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&(l.x=_o(i));const c=i&&!n&&!o?a9(i,a):O1(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function G5(e){return N1(e).position==="static"}function Ts(e,t){if(!L1(e)||N1(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return W1(e)===r&&(r=r.ownerDocument.body),r}function u9(e,t){const r=c1(e);if(p5(e))return r;if(!L1(e)){let i=Lt(e);for(;i&&!dr(i);){if(V0(i)&&!G5(i))return i;i=Lt(i)}return r}let n=Ts(e,t);for(;n&&ub(n)&&G5(n);)n=Ts(n,t);return n&&dr(n)&&G5(n)&&!yo(n)?r:n||cb(e)||r}const Pb=async function(e){const t=this.getOffsetParent||u9,r=this.getDimensions,n=await r(e.floating);return{reference:Fb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lb(e){return N1(e).direction==="rtl"}const Bb={convertOffsetParentRelativeRectToViewportRelativeRect:Nb,getDocumentElement:W1,getClippingRect:Db,getOffsetParent:u9,getElementRects:Pb,getClientRects:Mb,getDimensions:$b,getScale:er,isElement:V0,isRTL:Lb};function c9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ub(e,t){let r=null,n;const i=W1(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=c;if(a||t(),!m||!h)return;const p=j3(f),v=j3(i.clientWidth-(d+m)),b=j3(i.clientHeight-(f+h)),_=j3(d),E={rootMargin:-p+"px "+-v+"px "+-b+"px "+-_+"px",threshold:F0(0,b2(1,l))||1};let N=!0;function I(D){const P=D[0].intersectionRatio;if(P!==l){if(!N)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!c9(c,e.getBoundingClientRect())&&s(),N=!1}try{r=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(I,E)}r.observe(e)}return s(!0),o}function Hb(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=bo(e),d=i||o?[...c?u3(c):[],...u3(t)]:[];d.forEach(_=>{i&&_.addEventListener("scroll",r,{passive:!0}),o&&_.addEventListener("resize",r)});const f=c&&a?Ub(c,r):null;let m=-1,h=null;s&&(h=new ResizeObserver(_=>{let[C]=_;C&&C.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let p,v=l?C2(e):null;l&&b();function b(){const _=C2(e);v&&!c9(v,_)&&r(),v=_,p=requestAnimationFrame(b)}return r(),()=>{var _;d.forEach(C=>{i&&C.removeEventListener("scroll",r),o&&C.removeEventListener("resize",r)}),f==null||f(),(_=h)==null||_.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const z5=w5,Vb=xb,jb=Sb,Wb=_b,qb=Eb,Gb=(e,t,r)=>{const n=new Map,i={platform:Bb,...r},o={...i.platform,_c:n};return bb(e,t,{...i,platform:o})};var en=typeof document<"u"?B1:Be;function On(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!On(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!On(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function d9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ns(e,t){const r=d9(e);return Math.round(t*r)/r}function Y5(e){const t=de(e);return en(()=>{t.current=e}),t}function zb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=Ee({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=Ee(n);On(m,n)||h(n);const[p,v]=Ee(null),[b,_]=Ee(null),C=$e(U=>{U!==D.current&&(D.current=U,v(U))},[]),E=$e(U=>{U!==P.current&&(P.current=U,_(U))},[]),N=o||p,I=s||b,D=de(null),P=de(null),A=de(d),x=l!=null,k=Y5(l),M=Y5(i),L=Y5(c),O=$e(()=>{if(!D.current||!P.current)return;const U={placement:t,strategy:r,middleware:m};M.current&&(U.platform=M.current),Gb(D.current,P.current,U).then(G=>{const W={...G,isPositioned:L.current!==!1};j.current&&!On(A.current,W)&&(A.current=W,a1(()=>{f(W)}))})},[m,t,r,M,L]);en(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(U=>({...U,isPositioned:!1})))},[c]);const j=de(!1);en(()=>(j.current=!0,()=>{j.current=!1}),[]),en(()=>{if(N&&(D.current=N),I&&(P.current=I),N&&I){if(k.current)return k.current(N,I,O);O()}},[N,I,O,k,x]);const oe=ve(()=>({reference:D,floating:P,setReference:C,setFloating:E}),[C,E]),Z=ve(()=>({reference:N,floating:I}),[N,I]),J=ve(()=>{const U={position:r,left:0,top:0};if(!Z.floating)return U;const G=Ns(Z.floating,d.x),W=Ns(Z.floating,d.y);return a?{...U,transform:"translate("+G+"px, "+W+"px)",...d9(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:G,top:W}},[r,a,Z.floating,d.x,d.y]);return ve(()=>({...d,update:O,refs:oe,elements:Z,floatingStyles:J}),[d,O,oe,Z,J])}const f9=(e,t)=>({...Vb(e),options:[e,t]}),Yb=(e,t)=>({...jb(e),options:[e,t]}),Zb=(e,t)=>({...Wb(e),options:[e,t]}),Kb=(e,t)=>({...qb(e),options:[e,t]}),h9={...ln},Jb=h9.useInsertionEffect,Xb=Jb||(e=>e());function m9(e){const t=de(()=>{});return Xb(()=>{t.current=e}),$e(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current==null?void 0:t.current(...n)},[])}var gi=typeof document<"u"?B1:Be;let Ms=!1,Qb=0;const ks=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qb++;function e_(){const[e,t]=Ee(()=>Ms?ks():void 0);return gi(()=>{e==null&&t(ks())},[]),Be(()=>{Ms=!0},[]),e}const t_=h9.useId,r_=t_||e_;function n_(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(i=>i(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(i=>i!==r))||[])}}}const i_=d0(null),o_=d0(null),s_=()=>{var e;return((e=He(i_))==null?void 0:e.id)||null},a_=()=>He(o_),l_="data-floating-ui-focusable";function u_(e){const{open:t=!1,onOpenChange:r,elements:n}=e,i=r_(),o=de({}),[s]=Ee(()=>n_()),a=s_()!=null,[l,c]=Ee(n.reference),d=m9((h,p,v)=>{o.current.openEvent=h?p:void 0,s.emit("openchange",{open:h,event:p,reason:v,nested:a}),r==null||r(h,p,v)}),f=ve(()=>({setPositionReference:c}),[]),m=ve(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return ve(()=>({dataRef:o,open:t,onOpenChange:d,elements:m,events:s,floatingId:i,refs:f}),[t,d,m,s,i,f])}function c_(e){e===void 0&&(e={});const{nodeId:t}=e,r=u_({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,i=n.elements,[o,s]=Ee(null),[a,l]=Ee(null),d=(i==null?void 0:i.domReference)||o,f=de(null),m=a_();gi(()=>{d&&(f.current=d)},[d]);const h=zb({...e,elements:{...i,...a&&{reference:a}}}),p=$e(E=>{const N=V0(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(N),h.refs.setReference(N)},[h.refs]),v=$e(E=>{(V0(E)||E===null)&&(f.current=E,s(E)),(V0(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!V0(E))&&h.refs.setReference(E)},[h.refs]),b=ve(()=>({...h.refs,setReference:v,setPositionReference:p,domReference:f}),[h.refs,v,p]),_=ve(()=>({...h.elements,domReference:d}),[h.elements,d]),C=ve(()=>({...h,...n,refs:b,elements:_,nodeId:t}),[h,b,_,t,n]);return gi(()=>{n.dataRef.current.floatingContext=C;const E=m==null?void 0:m.nodesRef.current.find(N=>N.id===t);E&&(E.context=C)}),ve(()=>({...h,context:C,refs:b,elements:_}),[h,b,_,C])}const Is="active",Rs="selected";function Z5(e,t,r){const n=new Map,i=r==="item";let o=e;if(i&&e){const{[Is]:s,[Rs]:a,...l}=e;o=l}return{...r==="floating"&&{tabIndex:-1,[l_]:""},...o,...t.map(s=>{const a=s?s[r]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(i&&[Is,Rs].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var f;(f=n.get(c))==null||f.push(d),s[c]=function(){for(var m,h=arguments.length,p=new Array(h),v=0;v<h;v++)p[v]=arguments[v];return(m=n.get(c))==null?void 0:m.map(b=>b(...p)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function d_(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),r=e.map(a=>a==null?void 0:a.floating),n=e.map(a=>a==null?void 0:a.item),i=$e(a=>Z5(a,e,"reference"),t),o=$e(a=>Z5(a,e,"floating"),r),s=$e(a=>Z5(a,e,"item"),n);return ve(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Os(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const f_=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:c,...d}=Er(e,t),{rects:f,elements:{floating:m}}=t,h=r.current[s],p=(c==null?void 0:c.current)||m,v=m.clientTop||p.clientTop,b=m.clientTop!==0,_=p.clientTop!==0,C=m===p;if(!h)return{};const E={...t,...await f9(-h.offsetTop-m.clientTop-f.reference.height/2-h.offsetHeight/2-o).fn(t)},N=await z5(Os(E,p.scrollHeight+v+m.clientTop),d),I=await z5(E,{...d,elementContext:"reference"}),D=F0(0,N.top),P=E.y+D,k=(p.scrollHeight>p.clientHeight?M=>M:c3)(F0(0,p.scrollHeight+(b&&C||_?v*2:0)-D-F0(0,N.bottom)));if(p.style.maxHeight=k+"px",p.scrollTop=D,i){const M=p.offsetHeight<h.offsetHeight*b2(a,r.current.length)-1||I.top>=-l||I.bottom>=-l;a1(()=>i(M))}return n&&(n.current=await z5(Os({...E,y:P},p.offsetHeight+v+m.clientTop),d)),{y:P}}});function h_(e,t){const{open:r,elements:n}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=m9(a),c=de(!1),d=de(null),f=de(null);Be(()=>{if(!i)return;function h(v){if(v.ctrlKey||!p||o.current==null)return;const b=v.deltaY,_=o.current.top>=-.5,C=o.current.bottom>=-.5,E=p.scrollHeight-p.clientHeight,N=b<0?-1:1,I=b<0?"max":"min";p.scrollHeight<=p.clientHeight||(!_&&b>0||!C&&b<0?(v.preventDefault(),a1(()=>{l(D=>D+Math[I](b,E*N))})):/firefox/i.test(db())&&(p.scrollTop+=b))}const p=(s==null?void 0:s.current)||n.floating;if(r&&p)return p.addEventListener("wheel",h),requestAnimationFrame(()=>{d.current=p.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{d.current=null,f.current=null,p.removeEventListener("wheel",h)}},[i,r,n.floating,o,s,l]);const m=ve(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const h=(s==null?void 0:s.current)||n.floating;if(!(!o.current||!h||!c.current)){if(d.current!==null){const p=h.scrollTop-d.current;(o.current.bottom<-.5&&p<-1||o.current.top<-.5&&p>1)&&a1(()=>l(v=>v+p))}requestAnimationFrame(()=>{d.current=h.scrollTop})}}}),[n.floating,l,o,s]);return ve(()=>i?{floating:m}:{},[i,m])}let Ar=d0({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ar.displayName="FloatingContext";let Co=d0(null);Co.displayName="PlacementContext";function m_(e){return ve(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function p_(){return He(Ar).setReference}function g_(){return He(Ar).getReferenceProps}function w_(){let{getFloatingProps:e,slot:t}=He(Ar);return $e((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}function y_(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=He(Co),r=ve(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);r0(()=>{t==null||t(r??null)},[t,r]);let n=He(Ar);return ve(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}let Ds=4;function v_({children:e,enabled:t=!0}){let[r,n]=Ee(null),[i,o]=Ee(0),s=de(null),[a,l]=Ee(null);b_(a);let c=t&&r!==null&&a!==null,{to:d="bottom",gap:f=0,offset:m=0,padding:h=0,inner:p}=__(r,a),[v,b="center"]=d.split(" ");r0(()=>{c&&o(0)},[c]);let{refs:_,floatingStyles:C,context:E}=c_({open:c,placement:v==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[f9({mainAxis:v==="selection"?0:f,crossAxis:m}),Yb({padding:h}),v!=="selection"&&Zb({padding:h}),v==="selection"&&p?f_({...p,padding:h,overflowRef:s,offset:i,minItemsVisible:Ds,referenceOverflowThreshold:h,onFallbackChange(M){var L,O;if(!M)return;let j=E.elements.floating;if(!j)return;let oe=parseFloat(getComputedStyle(j).scrollPaddingBottom)||0,Z=Math.min(Ds,j.childElementCount),J=0,U=0;for(let G of(O=(L=E.elements.floating)==null?void 0:L.childNodes)!=null?O:[])if(G instanceof HTMLElement){let W=G.offsetTop,ie=W+G.clientHeight+oe,Y=j.scrollTop,$=Y+j.clientHeight;if(W>=Y&&ie<=$)Z--;else{U=Math.max(0,Math.min(ie,$)-Math.max(W,Y)),J=G.clientHeight;break}}Z>=1&&o(G=>{let W=J*Z-U+oe;return G>=W?G:W})}}):null,Kb({padding:h,apply({availableWidth:M,availableHeight:L,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${M}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${L}px)`})}})].filter(Boolean),whileElementsMounted:Hb}),[N=v,I=b]=E.placement.split("-");v==="selection"&&(N="selection");let D=ve(()=>({anchor:[N,I].filter(Boolean).join(" ")}),[N,I]),P=h_(E,{overflowRef:s,onChange:o}),{getReferenceProps:A,getFloatingProps:x}=d_([P]),k=ye(M=>{l(M),_.setFloating(M)});return u(Co.Provider,{value:n},u(Ar.Provider,{value:{setFloating:k,setReference:_.setReference,styles:C,getReferenceProps:A,getFloatingProps:x,slot:D}},e))}function b_(e){r0(()=>{if(!e)return;let t=new MutationObserver(()=>{let r=window.getComputedStyle(e).maxHeight,n=parseFloat(r);if(isNaN(n))return;let i=parseInt(r);isNaN(i)||n!==i&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function __(e,t){var r,n,i;let o=K5((r=e==null?void 0:e.gap)!=null?r:"var(--anchor-gap, 0)",t),s=K5((n=e==null?void 0:e.offset)!=null?n:"var(--anchor-offset, 0)",t),a=K5((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function K5(e,t,r=void 0){let n=Yt(),i=ye((l,c)=>{if(l==null)return[r,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[r,null];let d=$s(l,c);return[d,f=>{let m=p9(l);{let h=m.map(p=>window.getComputedStyle(c).getPropertyValue(p));n.requestAnimationFrame(function p(){n.nextFrame(p);let v=!1;for(let[_,C]of m.entries()){let E=window.getComputedStyle(c).getPropertyValue(C);if(h[_]!==E){h[_]=E,v=!0;break}}if(!v)return;let b=$s(l,c);d!==b&&(f(b),d=b)})}return n.dispose}]}return[r,null]}),o=ve(()=>i(e,t)[0],[e,t]),[s=o,a]=Ee();return r0(()=>{let[l,c]=i(e,t);if(a(l),!!c)return c(a)},[e,t]),s}function p9(e){let t=/var\((.*)\)/.exec(e);if(t){let r=t[1].indexOf(",");if(r===-1)return[t[1]];let n=t[1].slice(0,r).trim(),i=t[1].slice(r+1).trim();return i?[n,...p9(i)]:[n]}return[]}function $s(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function C_(e,t){let[r,n]=Ee(t);return!e&&r!==t&&n(t),e?r:t}let y5=d0(null);y5.displayName="OpenClosedContext";var j0=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(j0||{});function k3(){return He(y5)}function g9({value:e,children:t}){return ee.createElement(y5.Provider,{value:e},t)}function x_({children:e}){return ee.createElement(y5.Provider,{value:null},e)}function S_(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Tt=[];S_(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Tt[0]===t.target)return;let r=t.target;r=r.closest(kn),Tt.unshift(r??t.target),Tt=Tt.filter(n=>n!=null&&n.isConnected),Tt.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function E_(e){throw new Error("Unexpected object: "+e)}var E0=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(E0||{});function J5(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{i===-1&&(i=r.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:E_(e)}}function w9(e){let t=ye(e),r=de(!1);Be(()=>(r.current=!1,()=>{r.current=!0,d5(()=>{r.current&&t()})}),[t])}function A_(){let e=typeof document>"u";return"useSyncExternalStore"in ln?(t=>t.useSyncExternalStore)(ln)(()=>()=>{},()=>!1,()=>!e):!1}function I3(){let e=A_(),[t,r]=Ee(m2.isHandoffComplete);return t&&m2.isHandoffComplete===!1&&r(!1),Be(()=>{t!==!0&&r(!0)},[t]),Be(()=>m2.handoff(),[]),e?!1:t}let y9=d0(!1);function T_(){return He(y9)}function Fs(e){return ee.createElement(y9.Provider,{value:e.force},e.children)}function N_(e){let t=T_(),r=He(b9),n=xr(e),[i,o]=Ee(()=>{var s;if(!t&&r!==null)return(s=r.current)!=null?s:null;if(m2.isServer)return null;let a=n==null?void 0:n.getElementById("headlessui-portal-root");if(a)return a;if(n===null)return null;let l=n.createElement("div");return l.setAttribute("id","headlessui-portal-root"),n.body.appendChild(l)});return Be(()=>{i!==null&&(n!=null&&n.body.contains(i)||n==null||n.body.appendChild(i))},[i,n]),Be(()=>{t||r!==null&&o(r.current)},[r,o,t]),i}let v9=Ke,M_=_0(function(e,t){let r=e,n=de(null),i=B0(_v(f=>{n.current=f}),t),o=xr(n),s=N_(n),[a]=Ee(()=>{var f;return m2.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),l=He(wi),c=I3();r0(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),r0(()=>{if(a&&l)return l.register(a)},[l,a]),w9(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))});let d=M0();return c?!s||!a?null:Un(d({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:v9,name:"Portal"}),a):null});function k_(e,t){let r=B0(t),{enabled:n=!0,...i}=e,o=M0();return n?ee.createElement(M_,{...i,ref:r}):o({ourProps:{ref:r},theirProps:i,slot:{},defaultTag:v9,name:"Portal"})}let I_=Ke,b9=d0(null);function R_(e,t){let{target:r,...n}=e,i={ref:B0(t)},o=M0();return ee.createElement(b9.Provider,{value:r},o({ourProps:i,theirProps:n,defaultTag:I_,name:"Popover.Group"}))}let wi=d0(null);function O_(){let e=He(wi),t=de([]),r=ye(o=>(t.current.push(o),e&&e.register(o),()=>n(o))),n=ye(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=ve(()=>({register:r,unregister:n,portals:t}),[r,n,t]);return[t,ve(()=>function({children:o}){return ee.createElement(wi.Provider,{value:i},o)},[i])]}let D_=_0(k_),_9=_0(R_),C9=Object.assign(D_,{Group:_9});function $_(e,t=typeof document<"u"?document.defaultView:null,r){let n=Cr(e,"escape");Kl(t,"keydown",i=>{n&&(i.defaultPrevented||i.key===S0.Escape&&r(i))})}function F_(){var e;let[t]=Ee(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[r,n]=Ee((e=t==null?void 0:t.matches)!=null?e:!1);return r0(()=>{if(!t)return;function i(o){n(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),r}function P_({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=xr(r),i=ye(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(r&&(l.contains(r)||l.contains((s=r==null?void 0:r.getRootNode())==null?void 0:s.host))||a.some(c=>l.contains(c))||a.push(l));return a});return{resolveContainers:i,contains:ye(o=>i().some(s=>s.contains(o)))}}let x9=d0(null);function Ps({children:e,node:t}){let[r,n]=Ee(null),i=S9(t??r);return ee.createElement(x9.Provider,{value:i},e,i===null&&ee.createElement(l3,{features:cr.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=_r(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){n(l);break}}}}))}function S9(e=null){var t;return(t=He(x9))!=null?t:e}function xo(){let e=de(!1);return r0(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Zr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Zr||{});function L_(){let e=de(0);return Yl(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function E9(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}let B_="div";var u2=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(u2||{});function U_(e,t){let r=de(null),n=B0(r,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;I3()||(a=0);let c=xr(r);W_(a,{ownerDocument:c});let d=q_(a,{ownerDocument:c,container:r,initialFocus:i,initialFocusFallback:o});G_(a,{ownerDocument:c,container:r,containers:s,previousActiveElement:d});let f=L_(),m=ye(C=>{let E=r.current;E&&(N=>N())(()=>{Z0(f.current,{[Zr.Forwards]:()=>{Q2(E,E1.First,{skipElements:[C.relatedTarget,o]})},[Zr.Backwards]:()=>{Q2(E,E1.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=Cr(!!(a&2),"focus-trap#tab-lock"),p=Yt(),v=de(!1),b={ref:n,onKeyDown(C){C.key=="Tab"&&(v.current=!0,p.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(a&4))return;let E=E9(s);r.current instanceof HTMLElement&&E.add(r.current);let N=C.relatedTarget;N instanceof HTMLElement&&N.dataset.headlessuiFocusGuard!=="true"&&(A9(E,N)||(v.current?Q2(r.current,Z0(f.current,{[Zr.Forwards]:()=>E1.Next,[Zr.Backwards]:()=>E1.Previous})|E1.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&ot(C.target)))}},_=M0();return ee.createElement(ee.Fragment,null,h&&ee.createElement(l3,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:cr.Focusable}),_({ourProps:b,theirProps:l,defaultTag:B_,name:"FocusTrap"}),h&&ee.createElement(l3,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:cr.Focusable}))}let H_=_0(U_),V_=Object.assign(H_,{features:u2});function j_(e=!0){let t=de(Tt.slice());return wo(([r],[n])=>{n===!0&&r===!1&&d5(()=>{t.current.splice(0)}),n===!1&&r===!0&&(t.current=Tt.slice())},[e,Tt,t]),ye(()=>{var r;return(r=t.current.find(n=>n!=null&&n.isConnected))!=null?r:null})}function W_(e,{ownerDocument:t}){let r=!!(e&8),n=j_(r);wo(()=>{r||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&ot(n())},[r]),w9(()=>{r&&ot(n())})}function q_(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:i}){let o=de(null),s=Cr(!!(e&1),"focus-trap#initial-focus"),a=xo();return wo(()=>{if(e===0)return;if(!s){i!=null&&i.current&&ot(i.current);return}let l=r.current;l&&d5(()=>{if(!a.current)return;let c=t==null?void 0:t.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===c){o.current=c;return}}else if(l.contains(c)){o.current=c;return}if(n!=null&&n.current)ot(n.current);else{if(e&16){if(Q2(l,E1.First|E1.AutoFocus)!==hi.Error)return}else if(Q2(l,E1.First)!==hi.Error)return;if(i!=null&&i.current&&(ot(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function G_(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:i}){let o=xo(),s=!!(e&4);Kl(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=E9(n);r.current instanceof HTMLElement&&l.add(r.current);let c=i.current;if(!c)return;let d=a.target;d&&d instanceof HTMLElement?A9(l,d)?(i.current=d,ot(d)):(a.preventDefault(),a.stopPropagation(),ot(c)):ot(i.current)},!0)}function A9(e,t){for(let r of e)if(r.contains(t))return!0;return!1}function T9(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:M9)!==Ke||ee.Children.count(e.children)===1}let v5=d0(null);v5.displayName="TransitionContext";var z_=(e=>(e.Visible="visible",e.Hidden="hidden",e))(z_||{});function Y_(){let e=He(v5);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Z_(){let e=He(b5);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let b5=d0(null);b5.displayName="NestingContext";function _5(e){return"children"in e?_5(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function N9(e,t){let r=Zt(e),n=de([]),i=xo(),o=Yt(),s=ye((h,p=It.Hidden)=>{let v=n.current.findIndex(({el:b})=>b===h);v!==-1&&(Z0(p,{[It.Unmount](){n.current.splice(v,1)},[It.Hidden](){n.current[v].state="hidden"}}),o.microTask(()=>{var b;!_5(n)&&i.current&&((b=r.current)==null||b.call(r))}))}),a=ye(h=>{let p=n.current.find(({el:v})=>v===h);return p?p.state!=="visible"&&(p.state="visible"):n.current.push({el:h,state:"visible"}),()=>s(h,It.Unmount)}),l=de([]),c=de(Promise.resolve()),d=de({enter:[],leave:[]}),f=ye((h,p,v)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([b])=>b!==h)),t==null||t.chains.current[p].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[p].push([h,new Promise(b=>{Promise.all(d.current[p].map(([_,C])=>C)).then(()=>b())})]),p==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(p)):v(p)}),m=ye((h,p,v)=>{Promise.all(d.current[p].splice(0).map(([b,_])=>_)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>v(p))});return ve(()=>({children:n,register:a,unregister:s,onStart:f,onStop:m,wait:c,chains:d}),[a,s,n,f,m,d,c])}let M9=Ke,k9=ur.RenderStrategy;function K_(e,t){var r,n;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:c,enterFrom:d,enterTo:f,entered:m,leave:h,leaveFrom:p,leaveTo:v,...b}=e,[_,C]=Ee(null),E=de(null),N=T9(e),I=B0(...N?[E,t,C]:t===null?[]:[t]),D=(r=b.unmount)==null||r?It.Unmount:It.Hidden,{show:P,appear:A,initial:x}=Y_(),[k,M]=Ee(P?"visible":"hidden"),L=Z_(),{register:O,unregister:j}=L;r0(()=>O(E),[O,E]),r0(()=>{if(D===It.Hidden&&E.current){if(P&&k!=="visible"){M("visible");return}return Z0(k,{hidden:()=>j(E),visible:()=>O(E)})}},[k,E,O,j,P,D]);let oe=I3();r0(()=>{if(N&&oe&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,oe,N]);let Z=x&&!A,J=A&&P&&x,U=de(!1),G=N9(()=>{U.current||(M("hidden"),j(E))},L),W=ye(Ie=>{U.current=!0;let te=Ie?"enter":"leave";G.onStart(E,te,H=>{H==="enter"?o==null||o():H==="leave"&&(a==null||a())})}),ie=ye(Ie=>{let te=Ie?"enter":"leave";U.current=!1,G.onStop(E,te,H=>{H==="enter"?s==null||s():H==="leave"&&(l==null||l())}),te==="leave"&&!_5(G)&&(M("hidden"),j(E))});Be(()=>{N&&i||(W(P),ie(P))},[P,N,i]);let Y=!(!i||!N||!oe||Z),[,$]=Ql(Y,_,P,{start:W,end:ie}),fe=xt({ref:I,className:((n=di(b.className,J&&c,J&&d,$.enter&&c,$.enter&&$.closed&&d,$.enter&&!$.closed&&f,$.leave&&h,$.leave&&!$.closed&&p,$.leave&&$.closed&&v,!$.transition&&P&&m))==null?void 0:n.trim())||void 0,...Xl($)}),he=0;k==="visible"&&(he|=j0.Open),k==="hidden"&&(he|=j0.Closed),$.enter&&(he|=j0.Opening),$.leave&&(he|=j0.Closing);let Ne=M0();return ee.createElement(b5.Provider,{value:G},ee.createElement(g9,{value:he},Ne({ourProps:fe,theirProps:b,defaultTag:M9,features:k9,visible:k==="visible",name:"Transition.Child"})))}function J_(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,s=de(null),a=T9(e),l=B0(...a?[s,t]:t===null?[]:[t]);I3();let c=k3();if(r===void 0&&c!==null&&(r=(c&j0.Open)===j0.Open),r===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=Ee(r?"visible":"hidden"),m=N9(()=>{r||f("hidden")}),[h,p]=Ee(!0),v=de([r]);r0(()=>{h!==!1&&v.current[v.current.length-1]!==r&&(v.current.push(r),p(!1))},[v,r]);let b=ve(()=>({show:r,appear:n,initial:h}),[r,n,h]);r0(()=>{r?f("visible"):!_5(m)&&s.current!==null&&f("hidden")},[r,m]);let _={unmount:i},C=ye(()=>{var I;h&&p(!1),(I=e.beforeEnter)==null||I.call(e)}),E=ye(()=>{var I;h&&p(!1),(I=e.beforeLeave)==null||I.call(e)}),N=M0();return ee.createElement(b5.Provider,{value:m},ee.createElement(v5.Provider,{value:b},N({ourProps:{..._,as:Ke,children:ee.createElement(I9,{ref:l,..._,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:Ke,features:k9,visible:d==="visible",name:"Transition"})))}function X_(e,t){let r=He(v5)!==null,n=k3()!==null;return ee.createElement(ee.Fragment,null,!r&&n?ee.createElement(yi,{ref:t,...e}):ee.createElement(I9,{ref:t,...e}))}let yi=_0(J_),I9=_0(K_),So=_0(X_),R9=Object.assign(yi,{Child:So,Root:yi});var Q_=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Q_||{}),eC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(eC||{});let tC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Eo=d0(null);Eo.displayName="DialogContext";function C5(e){let t=He(Eo);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,C5),r}return t}function rC(e,t){return Z0(t.type,tC,e,t)}let Ls=_0(function(e,t){let r=v1(),{id:n=`headlessui-dialog-${r}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:d=!1,...f}=e,m=de(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(m.current||(m.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=k3();i===void 0&&h!==null&&(i=(h&j0.Open)===j0.Open);let p=de(null),v=B0(p,t),b=xr(p),_=i?0:1,[C,E]=E2(rC,{titleId:null,descriptionId:null,panelRef:Pn()}),N=ye(()=>o(!1)),I=ye(ie=>E({type:0,id:ie})),D=I3()?_===0:!1,[P,A]=O_(),x={get current(){var ie;return(ie=C.panelRef.current)!=null?ie:p.current}},k=S9(),{resolveContainers:M}=P_({mainTreeNode:k,portals:P,defaultContainers:[x]}),L=h!==null?(h&j0.Closing)===j0.Closing:!1;Vl(c||L?!1:D,{allowed:ye(()=>{var ie,Y;return[(Y=(ie=p.current)==null?void 0:ie.closest("[data-headlessui-portal]"))!=null?Y:null]}),disallowed:ye(()=>{var ie;return[(ie=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?ie:null]})}),Zl(D,M,ie=>{ie.preventDefault(),N()}),$_(D,b==null?void 0:b.defaultView,ie=>{ie.preventDefault(),ie.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),N()}),Jl(c||L?!1:D,b,M),jl(D,p,N);let[O,j]=xv(),oe=ve(()=>[{dialogState:_,close:N,setTitleId:I,unmount:d},C],[_,C,N,I,d]),Z=ve(()=>({open:_===0}),[_]),J={ref:v,id:n,role:a,tabIndex:-1,"aria-modal":c?void 0:_===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":O,unmount:d},U=!F_(),G=u2.None;D&&!c&&(G|=u2.RestoreFocus,G|=u2.TabLock,l&&(G|=u2.AutoFocus),U&&(G|=u2.InitialFocus));let W=M0();return ee.createElement(x_,null,ee.createElement(Fs,{force:!0},ee.createElement(C9,null,ee.createElement(Eo.Provider,{value:oe},ee.createElement(_9,{target:p},ee.createElement(Fs,{force:!1},ee.createElement(j,{slot:Z},ee.createElement(A,null,ee.createElement(V_,{initialFocus:s,initialFocusFallback:p,containers:M,features:G},ee.createElement(Dv,{value:N},W({ourProps:J,theirProps:f,slot:Z,defaultTag:nC,features:iC,visible:_===0,name:"Dialog"})))))))))))}),nC="div",iC=ur.RenderStrategy|ur.Static;function oC(e,t){let{transition:r=!1,open:n,...i}=e,o=k3(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(n!==void 0||r)&&!i.static?ee.createElement(Ps,null,ee.createElement(R9,{show:n,transition:r,unmount:i.unmount},ee.createElement(Ls,{ref:t,...i}))):ee.createElement(Ps,null,ee.createElement(Ls,{ref:t,open:n,...i}))}let sC="div";function aC(e,t){let r=v1(),{id:n=`headlessui-dialog-panel-${r}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=C5("Dialog.Panel"),c=B0(t,l.panelRef),d=ve(()=>({open:s===0}),[s]),f=ye(b=>{b.stopPropagation()}),m={ref:c,id:n,onClick:f},h=i?So:Ke,p=i?{unmount:a}:{},v=M0();return ee.createElement(h,{...p},v({ourProps:m,theirProps:o,slot:d,defaultTag:sC,name:"Dialog.Panel"}))}let lC="div";function uC(e,t){let{transition:r=!1,...n}=e,[{dialogState:i,unmount:o}]=C5("Dialog.Backdrop"),s=ve(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=r?So:Ke,c=r?{unmount:o}:{},d=M0();return ee.createElement(l,{...c},d({ourProps:a,theirProps:n,slot:s,defaultTag:lC,name:"Dialog.Backdrop"}))}let cC="h2";function dC(e,t){let r=v1(),{id:n=`headlessui-dialog-title-${r}`,...i}=e,[{dialogState:o,setTitleId:s}]=C5("Dialog.Title"),a=B0(t);Be(()=>(s(n),()=>s(null)),[n,s]);let l=ve(()=>({open:o===0}),[o]),c={ref:a,id:n};return M0()({ourProps:c,theirProps:i,slot:l,defaultTag:cC,name:"Dialog.Title"})}let fC=_0(oC),hC=_0(aC),mC=_0(uC),pC=_0(dC),Ao=Object.assign(fC,{Panel:hC,Title:pC,Description:Tv});function gC(e,t){let r=de({left:0,top:0});if(r0(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(r.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let n=t.getBoundingClientRect();return n.top!==r.current.top||n.left!==r.current.left}let Bs=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Us(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(r=i.innerText)!=null?r:"":n;return Bs.test(s)&&(s=s.replace(Bs,"")),s}function wC(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Us(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Us(e).trim()}function yC(e){let t=de(""),r=de("");return ye(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=wC(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var vC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vC||{}),bC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(bC||{}),_C=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(_C||{}),CC=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(CC||{});function X5(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Gl(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let xC={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var r,n,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(r=t.trigger)!=null?r:1,__demoMode:!1};if(t.focus===E0.Nothing)return{...a,activeOptionIndex:null};if(t.focus===E0.Specific)return{...a,activeOptionIndex:e.options.findIndex(d=>d.id===t.id)};if(t.focus===E0.Previous){let d=e.activeOptionIndex;if(d!==null){let f=e.options[d].dataRef.current.domRef,m=J5(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(m!==null){let h=e.options[m].dataRef.current.domRef;if(((n=f.current)==null?void 0:n.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:m}}}}else if(t.focus===E0.Next){let d=e.activeOptionIndex;if(d!==null){let f=e.options[d].dataRef.current.domRef,m=J5(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(m!==null){let h=e.options[m].dataRef.current.domRef;if(((o=f.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:m}}}}let l=X5(e),c=J5(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...a,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=X5(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=X5(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},To=d0(null);To.displayName="ListboxActionsContext";function x5(e){let t=He(To);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,x5),r}return t}let S5=d0(null);S5.displayName="ListboxDataContext";function R3(e){let t=He(S5);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,R3),r}return t}function SC(e,t){return Z0(t.type,xC,e,t)}let EC=Ke;function AC(e,t){var r;let n=po(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:c,invalid:d=!1,disabled:f=n||!1,horizontal:m=!1,multiple:h=!1,__demoMode:p=!1,...v}=e;const b=m?"horizontal":"vertical";let _=B0(t),C=cv(o),[E=h?[]:void 0,N]=uv(i,l,C),[I,D]=E2(SC,{dataRef:Pn(),listboxState:p?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:p}),P=de({static:!1,hold:!1}),A=de(new Map),x=Fv(c),k=$e(ae=>Z0(M.mode,{1:()=>E.some(K=>x(K,ae)),0:()=>x(E,ae)}),[E]),M=ve(()=>({...I,value:E,disabled:f,invalid:d,mode:h?1:0,orientation:b,compare:x,isSelected:k,optionsPropsRef:P,listRef:A}),[E,f,d,h,I,A]);r0(()=>{I.dataRef.current=M},[M]);let L=M.listboxState===0;Zl(L,[M.buttonElement,M.optionsElement],(ae,K)=>{var ne;D({type:1}),ql(K,go.Loose)||(ae.preventDefault(),(ne=M.buttonElement)==null||ne.focus())});let O=ve(()=>({open:M.listboxState===0,disabled:f,invalid:d,value:E}),[M,f,E,d]),j=ye(ae=>{let K=M.options.find(ne=>ne.id===ae);K&&ie(K.dataRef.current.value)}),oe=ye(()=>{if(M.activeOptionIndex!==null){let{dataRef:ae,id:K}=M.options[M.activeOptionIndex];ie(ae.current.value),D({type:2,focus:E0.Specific,id:K})}}),Z=ye(()=>D({type:0})),J=ye(()=>D({type:1})),U=Yt(),G=ye((ae,K,ne)=>{U.dispose(),U.microTask(()=>ae===E0.Specific?D({type:2,focus:E0.Specific,id:K,trigger:ne}):D({type:2,focus:ae,trigger:ne}))}),W=ye((ae,K)=>(D({type:5,id:ae,dataRef:K}),()=>D({type:6,id:ae}))),ie=ye(ae=>Z0(M.mode,{0(){return N==null?void 0:N(ae)},1(){let K=M.value.slice(),ne=K.findIndex(me=>x(me,ae));return ne===-1?K.push(ae):K.splice(ne,1),N==null?void 0:N(K)}})),Y=ye(ae=>D({type:3,value:ae})),$=ye(()=>D({type:4})),fe=ye(ae=>{D({type:7,element:ae})}),he=ye(ae=>{D({type:8,element:ae})}),Ne=ve(()=>({onChange:ie,registerOption:W,goToOption:G,closeListbox:J,openListbox:Z,selectActiveOption:oe,selectOption:j,search:Y,clearSearch:$,setButtonElement:fe,setOptionsElement:he}),[]),[Ie,te]=Nv({inherit:!0}),H={ref:_},le=$e(()=>{if(C!==void 0)return N==null?void 0:N(C)},[N,C]),be=M0();return ee.createElement(te,{value:Ie,props:{htmlFor:(r=M.buttonElement)==null?void 0:r.id},slot:{open:M.listboxState===0,disabled:f}},ee.createElement(v_,null,ee.createElement(To.Provider,{value:Ne},ee.createElement(S5.Provider,{value:M},ee.createElement(g9,{value:Z0(M.listboxState,{0:j0.Open,1:j0.Closed})},a!=null&&E!=null&&ee.createElement(gv,{disabled:f,data:{[a]:E},form:s,onReset:le}),be({ourProps:H,theirProps:v,slot:O,defaultTag:EC,name:"Listbox"}))))))}let TC="button";function NC(e,t){var r;let n=R3("Listbox.Button"),i=x5("Listbox.Button"),o=v1(),s=$l(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=n.disabled||!1,autoFocus:c=!1,...d}=e,f=B0(t,p_(),i.setButtonElement),m=g_(),h=ye(M=>{switch(M.key){case S0.Enter:dv(M.currentTarget);break;case S0.Space:case S0.ArrowDown:M.preventDefault(),a1(()=>i.openListbox()),n.value||i.goToOption(E0.First);break;case S0.ArrowUp:M.preventDefault(),a1(()=>i.openListbox()),n.value||i.goToOption(E0.Last);break}}),p=ye(M=>{switch(M.key){case S0.Space:M.preventDefault();break}}),v=ye(M=>{var L;if(vv(M.currentTarget))return M.preventDefault();n.listboxState===0?(a1(()=>i.closeListbox()),(L=n.buttonElement)==null||L.focus({preventScroll:!0})):(M.preventDefault(),i.openListbox())}),b=ye(M=>M.preventDefault()),_=Bl([a]),C=Cv(),{isFocusVisible:E,focusProps:N}=Jy({autoFocus:c}),{isHovered:I,hoverProps:D}=Ky({isDisabled:l}),{pressed:P,pressProps:A}=nv({disabled:l}),x=ve(()=>({open:n.listboxState===0,active:P||n.listboxState===0,disabled:l,invalid:n.invalid,value:n.value,hover:I,focus:E,autofocus:c}),[n.listboxState,n.value,l,I,E,P,n.invalid,c]),k=Il(m(),{ref:f,id:a,type:Kv(e,n.buttonElement),"aria-haspopup":"listbox","aria-controls":(r=n.optionsElement)==null?void 0:r.id,"aria-expanded":n.listboxState===0,"aria-labelledby":_,"aria-describedby":C,disabled:l||void 0,autoFocus:c,onKeyDown:h,onKeyUp:p,onKeyPress:b,onClick:v},N,D,A);return M0()({ourProps:k,theirProps:d,slot:x,defaultTag:TC,name:"Listbox.Button"})}let O9=d0(!1),MC="div",kC=ur.RenderStrategy|ur.Static;function IC(e,t){var r,n;let i=v1(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:c=!1,...d}=e,f=m_(s),[m,h]=Ee(null);f&&(a=!0);let p=R3("Listbox.Options"),v=x5("Listbox.Options"),b=xr(p.optionsElement),_=k3(),[C,E]=Ql(c,m,_!==null?(_&j0.Open)===j0.Open:p.listboxState===0);jl(C,p.buttonElement,v.closeListbox);let N=p.__demoMode?!1:l&&p.listboxState===0;Jl(N,b);let I=p.__demoMode?!1:l&&p.listboxState===0;Vl(I,{allowed:$e(()=>[p.buttonElement,p.optionsElement],[p.buttonElement,p.optionsElement])});let D=p.listboxState!==0,P=gC(D,p.buttonElement)?!1:C,A=C&&p.listboxState===1,x=C_(A,p.value),k=ye($=>p.compare(x,$)),M=ve(()=>{var $;if(f==null||!(($=f==null?void 0:f.to)!=null&&$.includes("selection")))return null;let fe=p.options.findIndex(he=>k(he.dataRef.current.value));return fe===-1&&(fe=0),fe},[f,p.options]),L=(()=>{if(f==null)return;if(M===null)return{...f,inner:void 0};let $=Array.from(p.listRef.current.values());return{...f,inner:{listRef:{current:$},index:M}}})(),[O,j]=y_(L),oe=w_(),Z=B0(t,f?O:null,v.setOptionsElement,h),J=Yt();Be(()=>{var $;let fe=p.optionsElement;fe&&p.listboxState===0&&fe!==(($=_r(fe))==null?void 0:$.activeElement)&&(fe==null||fe.focus({preventScroll:!0}))},[p.listboxState,p.optionsElement]);let U=ye($=>{var fe,he;switch(J.dispose(),$.key){case S0.Space:if(p.searchQuery!=="")return $.preventDefault(),$.stopPropagation(),v.search($.key);case S0.Enter:if($.preventDefault(),$.stopPropagation(),p.activeOptionIndex!==null){let{dataRef:Ne}=p.options[p.activeOptionIndex];v.onChange(Ne.current.value)}p.mode===0&&(a1(()=>v.closeListbox()),(fe=p.buttonElement)==null||fe.focus({preventScroll:!0}));break;case Z0(p.orientation,{vertical:S0.ArrowDown,horizontal:S0.ArrowRight}):return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.Next);case Z0(p.orientation,{vertical:S0.ArrowUp,horizontal:S0.ArrowLeft}):return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.Previous);case S0.Home:case S0.PageUp:return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.First);case S0.End:case S0.PageDown:return $.preventDefault(),$.stopPropagation(),v.goToOption(E0.Last);case S0.Escape:$.preventDefault(),$.stopPropagation(),a1(()=>v.closeListbox()),(he=p.buttonElement)==null||he.focus({preventScroll:!0});return;case S0.Tab:$.preventDefault(),$.stopPropagation(),a1(()=>v.closeListbox()),zv(p.buttonElement,$.shiftKey?E1.Previous:E1.Next);break;default:$.key.length===1&&(v.search($.key),J.setTimeout(()=>v.clearSearch(),350));break}}),G=(r=p.buttonElement)==null?void 0:r.id,W=ve(()=>({open:p.listboxState===0}),[p.listboxState]),ie=Il(f?oe():{},{id:o,ref:Z,"aria-activedescendant":p.activeOptionIndex===null||(n=p.options[p.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":p.mode===1?!0:void 0,"aria-labelledby":G,"aria-orientation":p.orientation,onKeyDown:U,role:"listbox",tabIndex:p.listboxState===0?0:void 0,style:{...d.style,...j,"--button-width":Lv(p.buttonElement,!0).width},...Xl(E)}),Y=M0();return ee.createElement(C9,{enabled:a?e.static||C:!1},ee.createElement(S5.Provider,{value:p.mode===1?p:{...p,isSelected:k}},Y({ourProps:ie,theirProps:d,slot:W,defaultTag:MC,features:kC,visible:P,name:"Listbox.Options"})))}let RC="div";function OC(e,t){let r=v1(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...s}=e,a=He(O9)===!0,l=R3("Listbox.Option"),c=x5("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===n:!1,f=l.isSelected(o),m=de(null),h=yC(m),p=Zt({disabled:i,value:o,domRef:m,get textValue(){return h()}}),v=B0(t,m,x=>{x?l.listRef.current.set(n,x):l.listRef.current.delete(n)});r0(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return yt().requestAnimationFrame(()=>{var x,k;(k=(x=m.current)==null?void 0:x.scrollIntoView)==null||k.call(x,{block:"nearest"})})},[m,d,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),r0(()=>{if(!a)return c.registerOption(n,p)},[p,n,a]);let b=ye(x=>{var k;if(i)return x.preventDefault();c.onChange(o),l.mode===0&&(a1(()=>c.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),_=ye(()=>{if(i)return c.goToOption(E0.Nothing);c.goToOption(E0.Specific,n)}),C=rb(),E=ye(x=>{C.update(x),!i&&(d||c.goToOption(E0.Specific,n,0))}),N=ye(x=>{C.wasMoved(x)&&(i||d||c.goToOption(E0.Specific,n,0))}),I=ye(x=>{C.wasMoved(x)&&(i||d&&c.goToOption(E0.Nothing))}),D=ve(()=>({active:d,focus:d,selected:f,disabled:i,selectedOption:f&&a}),[d,f,i,a]),P=a?{}:{id:n,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:b,onFocus:_,onPointerEnter:E,onMouseEnter:E,onPointerMove:N,onMouseMove:N,onPointerLeave:I,onMouseLeave:I},A=M0();return!f&&a?null:A({ourProps:P,theirProps:s,slot:D,defaultTag:RC,name:"Listbox.Option"})}let DC=Ke;function $C(e,t){let{options:r,placeholder:n,...i}=e,o={ref:B0(t)},s=R3("ListboxSelectedOption"),a=ve(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,c=M0();return ee.createElement(O9.Provider,{value:!0},c({ourProps:o,theirProps:{...i,children:ee.createElement(ee.Fragment,null,n&&l?n:r)},slot:a,defaultTag:DC,name:"ListboxSelectedOption"}))}let FC=_0(AC),D9=_0(NC),PC=Rv,$9=_0(IC),F9=_0(OC),LC=_0($C),BC=Object.assign(FC,{Button:D9,Label:PC,Options:$9,Option:F9,SelectedOption:LC}),g0=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function A2(e){return u(Ao,pt(e,1))}class ct extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Key","ClassName","Children"]}}function T2(e){return u(Ao.Panel,pt(e,1))}class Dn extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["As","Key","ClassName","Children"]}}function P9(e){return u(Ao.Title,pt(e,1))}class N2 extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["As","Key","ClassName"]}}function M2(e){return u(mC,pt(e,1))}function Kt(e,t){let r;return u("svg",y(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",w.Children.toArray(Array.from(r))])])))}function UC(e,t){let r,n,i,o,s;return A2(g([new g0(3,[e]),new g0(4,[t]),new g0(5,[[M2(se(new N2(2,["fixed inset-0 bg-gray-500/50"]))),u("div",y(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[T2(se(new ct(2,[[u("div",y(g([["className","flex flex-col mt-6 mb-6 px-6"],(n=[u("div",y(g([["className","flex flex-row justify-between"],(i=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),u("button",y(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Kt(24,24)],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(i))])]))),u("div",y(g([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",w.Children.toArray(Array.from(n))])])))]])))],["children",w.Children.toArray(Array.from(r))])])))]])]))}function k2(e){return u("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function Tr(e){return u("span",{className:"text-sm font-normal pt-2",children:e})}function x2(e,t){return u("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:r=>{t()},type:"button",children:w.Children.toArray([e])})}function L9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",n]),["fill","#60A5FA"]])))),["children",w.Children.toArray(Array.from(r))])])))}function E5(e){let t,r;return u("div",y(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[L9(20,20),u("div",y(g([["className","grow shrink basis-0 justify-between items-center flex"],(r=[u("div",{className:"grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight",children:e})],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])])))}function B9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",n]),["fill","#F87171"]])))),["children",w.Children.toArray(Array.from(r))])])))}function U9(e){let t,r;return u("div",y(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[B9(16,15),u("div",y(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(r=[u("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])])))}function A5(e,t){let r;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=g([u("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",w.Children.toArray(Array.from(r))])])))}let st=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Value","OnChange","Children"]}};function No(e){return u(BC,pt(e,1))}class fr extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["ClassName","Children"]}}function Mo(e){return u(D9,pt(e,1))}class ko extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function Io(e,t){return u($9,pt(e,1),...t)}class z0 extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Ro(e){return u(F9,pt(e,1))}function Oo(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",n]),["fill","#6B7280"]])))),["children",w.Children.toArray(Array.from(r))])])))}function Hr(e,t,r,n,i,o,s,a){let l,c,d,f,m,h,p;const v=i.fields[0],b=Vi(i0(_=>_[1].fields[0],qn(_=>Va(_.fields[0],v),n)));return u("div",y(g([["key",e0(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(l=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(c=[u("div",y(q(T(()=>F(S(["className",`${n==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),T(()=>{let _;return S((_=q(T(()=>F(S(u("div",{className:"text-sm font-medium leading-tight",children:a3(e)})),T(()=>S(t?u("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["children",w.Children.toArray(Array.from(_))]))}))))))],["children",w.Children.toArray(Array.from(c))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[A5(16,12)],["children",w.Children.toArray(Array.from(d))])]))),u("div",y(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(f=[No(g([new st(0,[b]),new st(1,[_=>{V1(C=>{o(C[0])},Vt(jt(C=>C[1].fields[0]===_?X(C[2],new J1(0,[])):!1,v)))}]),new st(2,[[u("div",y(g([Y0,["className","relative w-full"],(m=[Mo(q(T(()=>{let _;return F(S(new fr(0,[`${_=t&&r,_&&n==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),T(()=>{let C;return S(new fr(1,[[u("span",y(q(T(()=>{let E;const N=t&&r;return E=n!=null?[b,""]:N?["Select a field","text-red-900"]:["Select a field","text-gray-500"],F(S(["className",`${E[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>S(["children",E[0]])))})))),u("span",y(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(C=[Oo(20,20)],["children",w.Children.toArray(Array.from(C))])])))]]))}))}))),Io(q(T(()=>S(new ko(`z-10 absolute ${e.tag===4?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),q(T(()=>wr(_=>{const C=_[2],E=_[1].fields[0];return S(Ro(g([new z0(0,[h1(_[0].fields[0])]),new z0(1,[E]),new z0(2,[X(C,new J1(1,[]))]),new z0(3,["relative select-none"]),new z0(4,[N=>[u("span",{className:"px-4 py-2 block truncate "+(C.tag===0?N.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:E})]])])))},v))))],["children",w.Children.toArray(Array.from(m))])])))]])]))],["children",w.Children.toArray(Array.from(f))])]))),u("div",y(g([(h="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",h]),(p=[u("button",y(q(T(()=>F(S(["children","Clear"]),T(()=>F(s==null?S(["className","opacity-50 cursor-not-allowed"]):S(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const _=s;if(_==null)return Te();{const C=_;return S(["onClick",E=>{C()}])}})))))))),u("button",y(q(T(()=>F(S(["children","Preview"]),T(()=>F(a==null?S(["className","opacity-50 cursor-not-allowed"]):S(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const _=a;if(_==null)return Te();{const C=_;return S(["onClick",E=>{C()}])}}))))))))],["children",w.Children.toArray(Array.from(p))])])))],["children",w.Children.toArray(Array.from(l))])])))}function H9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",n]),["fill","#9CA3AF"]])))),["children",w.Children.toArray(Array.from(r))])])))}function Nr(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",n]),["fill","#10B981"]])))),["children",w.Children.toArray(Array.from(r))])])))}function V9(e){let t,r,n;return u("div",y(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[u("span",y(g([["className","text-emerald-700"],(r=[Nr(20,20)],["children",w.Children.toArray(Array.from(r))])]))),u("div",y(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(n=[u("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(t))])])))}function O3(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",n]),["fill","white"]])))),["children",w.Children.toArray(Array.from(r))])])))}function HC(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function VC(e){return e.startsWith("4")&&e.length===9?`+614${e.slice(1,e.length)}`:e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function j9(e){return VC(HC(Aa(e," ","")))}function jC(e,t,r){let n,i,o,s,a,l,c,d;return u("div",y(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[u("div",y(g([(i="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",i]),(o=[u("div",y(g([["className","flex justify-between w-full"],(s=[u("span",{className:"text-black text-base font-semibold leading-normal text-nowrap",children:`Previewing “${a3(e)}”`}),u("button",y(g([["onClick",f=>{r()}],["type","button"],["className","text-gray-600"],(a=[Kt(24,24)],["children",w.Children.toArray(Array.from(a))])])))],["children",w.Children.toArray(Array.from(s))])]))),u("div",y(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(l=[u("div",y(g([["className","self-stretch flex-col justify-center items-start flex"],(c=Gn((f,m)=>u("div",y(q(T(()=>F(S(["className",`${f%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),T(()=>{let h;return S((h=q(T(()=>{const p=Ht(m);return S(p?u("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):u("div",y(q(T(()=>F(S(Y0),T(()=>F(S(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),T(()=>e.tag===3?S(["children",j9(m)]):S(["children",m]))))))))))})),["children",w.Children.toArray(Array.from(h))]))})))))),t),["children",w.Children.toArray(Array.from(c))])])))],["children",w.Children.toArray(Array.from(l))])]))),u("div",y(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(d=[u("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",w.Children.toArray(Array.from(d))])])))],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(n))])])))}function WC(e){let t,r,n;const i=e.sendAnalytics,o=e.back,s=e.next,a=e.dataRows,l=e.headerRow,c=e.existingMappings;let d;const f=Ry(l,a,c);d=wt(()=>gt(()=>f,(N,I)=>Oy(i,l,a,N,I),(N,I)=>{}),void 0,void 0);const m=d[0],h=d[1],p=w.useState(!1),v=p[1],b=w.useState(!1),_=b[0],C=N=>{if(ky(m)(N))return()=>{h(new _t(1,[N]))}},E=N=>{if(Iy(m,N))return()=>{h(new _t(2,[N]))}};return u("div",y(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[UC(p[0],()=>{v(!1)}),k2("Map fields"),Tr("Match the fields from your CSV to the corresponding destination fields."),u("div",y(g([["className","flex flex-row pt-3 gap-2"],(r=[x2("What is mapping and why is it important?",()=>{v(!0)})],["children",w.Children.toArray(Array.from(r))])]))),u("div",y(g([["className","justify-start items-start gap-12 inline-flex"],(n=q(T(()=>{let N;return F(S(u("div",y(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(N=q(T(()=>F(m.IsPrefilled?S(E5("We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.")):S(Ae()),T(()=>F(_&&m.Status.tag===0?S(U9("Some required fields are incomplete. Fill in all required fields to continue.")):S(Ae()),T(()=>{let I,D,P,A,x,k,M,L;return S(u("div",y(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(I=[u("div",y(g([(D="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",D]),(P=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(A=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),u("div",y(q(T(()=>F(S(["className",`${m.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),T(()=>{let O;return S((O=[u("div",{className:"text-center text-xs font-medium leading-none",children:`${m.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",w.Children.toArray(Array.from(O))]))}))))))],["children",w.Children.toArray(Array.from(A))])]))),u("div",{className:"w-5 h-5 px-3 py-3.5"}),u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(x=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),u("div",y(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(k=[u("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${m.NumberOfDestinationFieldsMapped} of ${m.NumberOfIncomingFields} used`})],["children",w.Children.toArray(Array.from(k))])])))],["children",w.Children.toArray(Array.from(x))])])))],["children",w.Children.toArray(Array.from(P))])]))),u("div",y(g([["className","w-[640px] pt-2 flex-col justify-start items-start gap-2 flex overflow-hidden"],(M=[u("div",y(se((L=q(T(()=>F(S(Hr(new Q(0,[]),!0,_,m.FirstName.ColumnIndex,m.FirstName.IncomingFields,O=>{let j;h((j=[new Q(0,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(0,[])),E(new Q(0,[])))),T(()=>F(S(Hr(new Q(1,[]),!0,_,m.LastName.ColumnIndex,m.LastName.IncomingFields,O=>{let j;h((j=[new Q(1,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(1,[])),E(new Q(1,[])))),T(()=>F(S(Hr(new Q(2,[]),!0,_,m.Email.ColumnIndex,m.Email.IncomingFields,O=>{let j;h((j=[new Q(2,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(2,[])),E(new Q(2,[])))),T(()=>F(S(Hr(new Q(3,[]),!1,_,m.MobilePhone.ColumnIndex,m.MobilePhone.IncomingFields,O=>{let j;h((j=[new Q(3,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(3,[])),E(new Q(3,[])))),T(()=>F(S(Hr(new Q(4,[]),!1,_,m.EmploymentBasis.ColumnIndex,m.EmploymentBasis.IncomingFields,O=>{let j;h((j=[new Q(4,[]),O],new _t(0,[j[0],j[1]])))},C(new Q(4,[])),E(new Q(4,[])))),T(()=>{let O,j,oe,Z,J,U;return F(m.NumberOfIncomingFieldsDiscarded===0?S(Ae()):S(u("div",y(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(O=[u("div",y(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(j=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(oe=[H9(14,14),u("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",w.Children.toArray(Array.from(oe))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(Z=[A5(16,12)],["children",w.Children.toArray(Array.from(Z))])]))),u("div",y(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(J=[u("div",y(g([["className","w-[218px] pl-3 items-center inline-flex"],(U=[u("div",y(q(T(()=>F(S(["className","text-gray-500 text-sm font-medium"]),T(()=>{const G=m.NumberOfIncomingFieldsDiscarded|0;return S(G===1?["children","Remaining 1 unused field"]:["children",`Remaining ${G} unused fields`])}))))))],["children",w.Children.toArray(Array.from(U))])])))],["children",w.Children.toArray(Array.from(J))])])))],["children",w.Children.toArray(Array.from(j))])])))],["children",w.Children.toArray(Array.from(O))])])))),T(()=>{let G;return S(u("div",y(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(G=q(T(()=>F(m.NumberOfDestinationFieldsMapped===5?S(V9("All destination fields have been mapped. You’re good to go.")):S(Ae()),T(()=>{let W,ie,Y,$,fe,he,Ne,Ie,te;return S(u("div",y(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(W=[u("div",y(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(ie=[u("div",y(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(Y=[u("div",y(g([["className","grow shrink basis-0 text-right"],($=[u("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),u("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),u("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",w.Children.toArray(Array.from($))])])))],["children",w.Children.toArray(Array.from(Y))])]))),u("div",y(g([["className","justify-start items-center gap-2 flex"],(fe=[u("button",y(g([(he="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",he]),["onClick",H=>{o(m.Status)}],(Ne=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",w.Children.toArray(Array.from(Ne))])]))),u("button",y(g([(Ie="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Ie]),["disabled",_&&m.Status.tag===0],["onClick",H=>{const le=m.Status;le.tag===0?b[1](!0):s([le.fields[0],le.fields[1]])}],(te=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:m.EmploymentBasis.ColumnIndex==null?"Next":"Map values"}),O3(13,8)],["children",w.Children.toArray(Array.from(te))])])))],["children",w.Children.toArray(Array.from(fe))])])))],["children",w.Children.toArray(Array.from(ie))])])))],["children",w.Children.toArray(Array.from(W))])]))))})))),["children",w.Children.toArray(Array.from(G))])]))))}))})))))))))))),["children",w.Children.toArray(Array.from(L))]))))],["children",w.Children.toArray(Array.from(M))])])))],["children",w.Children.toArray(Array.from(I))])]))))})))))),["children",w.Children.toArray(Array.from(N))])])))),T(()=>{const I=m.Preview;return I==null?S(Ae()):S(jC(I[0],I[1],()=>{h(new _t(3,[]))}))}))})),["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(t))])])))}let W3=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}},Q5=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}},t2=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Next","Back"]}},q3=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Add","Clear","Remove","Set"]}},qC=class extends ue{constructor(t,r,n,i,o,s,a){super(),this.IncomingValues=t,this.Selections=r,this.NumberOfIncomingValuesUsed=n|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class d3 extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Available","Unavailable"]}}const Nt=[void 0];function W9(e,t,r){let n;const i=t.fields[0],o=G0(s=>s,gn(y6(r)));return new qC(Je(s=>[s,D1(s,o,{Equals:X,GetHashCode:cn})?new d3(1,[]):new d3(0,[])],i),r,o.length,Wd(Ot(s=>{let a;return a=G0(l=>l,s),a.length!==0},y6(r))),wl(o,i,{Equals:X,GetHashCode:cn}),(n=g(G0(s=>s,gn(De(s=>Je(a=>{if(a!=null)return[s[0],a]},s[1]),r)))),ke(n)?void 0:new Cy(pe(n),dt(Oe(n)))),e)}function GC(e,t){const r=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(n=>D1(p3(n.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),r,{Equals:(i,o)=>i===o,GetHashCode:l1}))}function zC(e,t){let r;if(t==null){let n=!1;const i=o=>{const s=GC(e,o);return!$t(X,s,Ae())&&s.length===0?Nt:(n=!0,Je(a=>a,s))};r=[Z2([[new w0(0,[]),i(new w0(0,[]))],[new w0(1,[]),i(new w0(1,[]))],[new w0(2,[]),i(new w0(2,[]))],[new w0(3,[]),i(new w0(3,[]))]],{Compare:R0}),n]}else{const n=t,i=Z2(Je(o=>[o[0],Je(s=>s[1],Kc(o[1],{Compare:Pi}))],gy(o=>o[0],gn([n.Tail,[n.Head]]),{Equals:X,GetHashCode:cn})),{Compare:R0});r=[Z2([[new w0(0,[]),Le(kt(i,new w0(0,[])),Nt)],[new w0(1,[]),Le(kt(i,new w0(1,[])),Nt)],[new w0(2,[]),Le(kt(i,new w0(2,[])),Nt)],[new w0(3,[]),Le(kt(i,new w0(3,[])),Nt)]],{Compare:R0}),!1]}return[W9(r[1],e,r[0]),ge()]}function q9(e,t){const r=w2(e.Selections,t);let n;switch(!$t(X,r,Ae())&&r.length===1&&we(0,r)!=null?n=0:n=1,n){case 0:return!0;default:return!1}}function G9(e,t){let r;return e.DiscardedValues.length>0?(r=w2(e.Selections,t),!r.some(n=>n==null)):!1}function YC(e,t,r){const n=w2(e.Selections,t);return!$t(X,n,Ae())&&n.length===1?!1:D1(r,n,{Equals:X,GetHashCode:p1})}function ZC(e,t,r,n){return!X(r,n)&&e.IncomingValues.some(i=>X(i[0],n)?X(i[1],new d3(0,[])):!1)?D1(r,w2(e.Selections,t),{Equals:X,GetHashCode:p1}):!1}function KC(e,t,r){let n,i;const o=p=>W9(r.Prefilled,e,p);let s,a,l,c,d,f,m,h;switch(t.tag){case 1:{q9(r,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{YC(r,t.fields[0],t.fields[1])?(s=2,c=t.fields[0],d=t.fields[1]):s=4;break}case 3:{ZC(r,t.fields[0],t.fields[1],t.fields[2])?(s=3,f=t.fields[0],m=t.fields[1],h=t.fields[2]):s=4;break}default:G9(r,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(L3(a,p=>i0(v=>Ha(v,Nt),p),r.Selections)),ge()];case 1:return[o(L3(l,p=>i0(v=>Nt,p),r.Selections)),ge()];case 2:return[o(L3(c,(n=(i=[d],p=>wl(i,p,{Equals:X,GetHashCode:p1})),p=>i0(n,p)),r.Selections)),ge()];case 3:return[o(L3(f,p=>i0(v=>Je(b=>X(b,m)?h:b,v),p),r.Selections)),ge()];default:return[r,ge()]}}function JC(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([["clipRule","evenodd"],["fill-rule","evenodd"],(n="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",n]),["fill","currentColor"]])))),["children",w.Children.toArray(Array.from(r))])])))}function XC(e,t,r,n,i,o,s){let a,l,c,d,f,m;return u("div",y(g([["key",e0(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[u("div",y(g([["className",v0(" ",q(T(()=>F($t(X,t,Nt)?S("bg-gray-50 border-gray-200 text-gray-500"):S("bg-emerald-50 border-emerald-200 text-emerald-700"),T(()=>S("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(c=[u("div",{className:"text-sm font-medium leading-tight",children:yl(e)})],["children",w.Children.toArray(Array.from(c))])])))],["children",w.Children.toArray(Array.from(l))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[A5(16,12)],["children",w.Children.toArray(Array.from(d))])]))),u("div",y(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(f=[u("div",y(se((m=q(T(()=>De(h=>{let p,v,b;return u("div",y(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(p=[u("div",y(g([["className","justify-start items-end flex flex-col w-[206px]"],(v=q(T(()=>F(S(No(q(T(()=>{const _=Vi(i0(C=>C.fields[0],h));return F(S(new st(0,[_])),T(()=>F(S(new st(1,[C=>{V1(E=>{s([h,E[0]])},Vt(jt(E=>E[0].fields[0]===C?X(E[1],new d3(0,[])):!1,r)))}])),T(()=>{let C,E;return S(new st(2,[[u("div",y(g([Y0,["className","relative w-full"],(C=[Mo(g([new fr(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new fr(1,[[u("span",y(q(T(()=>{const N=h!=null?[_,""]:["Select a value","text-gray-500"];return F(S(["className",`${N[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>S(["children",N[0]])))})))),u("span",y(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[Oo(20,20)],["children",w.Children.toArray(Array.from(E))])])))]])])),Io(q(T(()=>S(new ko(`z-10 absolute ${e.tag===3?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),q(T(()=>wr(N=>{const I=N[1],D=N[0].fields[0];return S(Ro(g([new z0(0,[D]),new z0(1,[D]),new z0(2,[X(I,new d3(1,[]))&&D!==_]),new z0(3,["relative select-none"]),new z0(4,[P=>[u("span",{className:v0(" ",q(T(()=>F(S("px-4 py-2 block truncate"),T(()=>{const A=P.active;let x;switch(P.selected?A?x=2:x=1:I.tag===1?x=0:A?x=2:x=1,x){case 0:return S("text-gray-700 opacity-50 cursor-not-allowed");case 1:return S("text-gray-700");default:return S("bg-primary-600 text-white")}}))))),children:D})]])])))},r))))],["children",w.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>X(h,Gc(t))?S(u("button",y(q(T(()=>{let _;return F(S((_=[JC(14,14),u("span",{children:["Map additional value"]})],["children",w.Children.toArray(Array.from(_))])),T(()=>F(S(["className",v0(" ",q(T(()=>F(S("py-2 justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),T(()=>i==null?S("opacity-50 cursor-not-allowed underline"):S("cursor-pointer underline hover:text-gray-700"))))))]),T(()=>{const C=i;if(C==null)return Te();{const E=C;return S(["onClick",N=>{E()}])}}))))}))))):Te())))),["children",w.Children.toArray(Array.from(v))])]))),u("div",y(g([["className","text-gray-500 text-xs font-normal pl-1"],(b=q(T(()=>{if(o!=null){const _=o;return S(u("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{_(h)}}))}else return S(u("button",y(q(T(()=>F(S(["children","Clear"]),T(()=>F(n==null?S(["className","opacity-50 underline cursor-not-allowed mt-2"]):S(["className","cursor-pointer underline py-2 hover:text-gray-700"]),T(()=>{const _=n;if(_==null)return Te();{const C=_;return S(["onClick",E=>{C()}])}})))))))))})),["children",w.Children.toArray(Array.from(b))])])))],["children",w.Children.toArray(Array.from(p))])])))},t))),["children",w.Children.toArray(Array.from(m))]))))],["children",w.Children.toArray(Array.from(f))])])))],["children",w.Children.toArray(Array.from(a))])])))}function QC(e){let t,r,n;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const c=zC(s,a);l=wt(()=>gt(()=>c,(p,v)=>KC(s,p,v),(p,v)=>{}),void 0,void 0);const d=l[0],f=l[1],m=w.useState(!1),h=m[0];return u("div",y(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[k2("Map values - Employment basis"),Tr("Match the values from your CSV to the corresponding destination values."),u("div",y(g([["className","justify-start items-start gap-12 inline-flex"],(r=[u("div",y(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(n=q(T(()=>F(d.Prefilled?S(E5("We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.")):S(Ae()),T(()=>F(h&&d.ValidatedMappings==null?S(U9("Map at least one value to continue.")):S(Ae()),T(()=>{let p,v,b,_,C,E,N,I,D;return S(u("div",y(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(p=[u("div",y(g([(v="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",v]),(b=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination values"}),u("div",y(g([["className",v0(" ",q(T(()=>F(d.NumberOfDestinationValuesMapped===4?S("bg-emerald-100 text-emerald-800"):S("bg-blue-100 text-blue-800"),T(()=>S("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[u("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",w.Children.toArray(Array.from(C))])])))],["children",w.Children.toArray(Array.from(_))])]))),u("div",{className:"w-5 h-5 px-3 py-3.5"}),u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),u("div",y(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(N=[u("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfIncomingValuesUsed} of ${d.IncomingValues.length} used`})],["children",w.Children.toArray(Array.from(N))])])))],["children",w.Children.toArray(Array.from(E))])])))],["children",w.Children.toArray(Array.from(b))])]))),u("div",y(g([["className","w-[640px] pt-2 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[u("div",y(se((D=q(T(()=>F(wr(P=>{let A,x,k;const M=P[0];return S(XC(M,P[1],d.IncomingValues,(A=M,q9(d,A)?()=>{f(new q3(1,[A]))}:void 0),(x=M,G9(d,x)?()=>{f(new q3(0,[x]))}:void 0),(k=M,w2(d.Selections,k).length>1?L=>{let O;f((O=[k,L],new q3(2,[O[0],O[1]])))}:void 0),L=>{let O;f((O=[M,L[0],L[1]],new q3(3,[O[0],O[1],O[2]])))}))},hf(d.Selections)),T(()=>{let P,A,x,k,M,L;return F(d.DiscardedValues.length===0?S(Ae()):S(u("div",y(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(P=[u("div",y(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(A=[u("div",y(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[H9(14,14),u("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",w.Children.toArray(Array.from(x))])]))),u("div",y(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[A5(16,12)],["children",w.Children.toArray(Array.from(k))])]))),u("div",y(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(M=[u("div",y(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(L=q(T(()=>F(S(u("div",y(q(T(()=>F(S(["className","font-medium"]),T(()=>{const O=d.DiscardedValues.length|0;return S(O===1?["children","Remaining 1 unused value:"]:["children",`Remaining ${O} unused values:`])}))))))),T(()=>{let O;return S(u("ul",y(g([Y0,["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=Je(j=>u("li",{children:[j]}),gn(y1(T(()=>F(S(Je(j=>j.fields[0],d.DiscardedValues.slice(void 0,8))),T(()=>d.DiscardedValues.length>8?S([`... and ${d.DiscardedValues.length-8} other values`]):Te())))))),["children",w.Children.toArray(Array.from(O))])]))))})))),["children",w.Children.toArray(Array.from(L))])])))],["children",w.Children.toArray(Array.from(M))])])))],["children",w.Children.toArray(Array.from(A))])])))],["children",w.Children.toArray(Array.from(P))])])))),T(()=>{let O;return S(u("div",y(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=q(T(()=>F(d.DiscardedValues.length===0?S(V9("All incoming values have been mapped.")):S(Ae()),T(()=>{let j,oe,Z,J,U,G,W;return S(u("div",y(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(j=[u("div",y(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(oe=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",y(g([["className","justify-start items-center gap-2 flex"],(Z=[u("button",y(g([(J="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",J]),["onClick",ie=>{i(d.ValidatedMappings)}],(U=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",w.Children.toArray(Array.from(U))])]))),u("button",y(g([(G="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",G]),["disabled",h&&d.ValidatedMappings==null],["onClick",ie=>{const Y=d.ValidatedMappings;Y==null?m[1](!0):o(Y)}],(W=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Review"}),O3(13,8)],["children",w.Children.toArray(Array.from(W))])])))],["children",w.Children.toArray(Array.from(Z))])])))],["children",w.Children.toArray(Array.from(oe))])])))],["children",w.Children.toArray(Array.from(j))])]))))})))),["children",w.Children.toArray(Array.from(O))])]))))}))})))),["children",w.Children.toArray(Array.from(D))]))))],["children",w.Children.toArray(Array.from(I))])])))],["children",w.Children.toArray(Array.from(p))])]))))})))))),["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])])))}let e4=class extends ue{constructor(t,r,n,i,o,s,a,l,c,d){super(),this.RowNumber=t|0,this.FirstName=r,this.LastName=n,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.HasExistingEmailError=c,this.Errors=d}};class Hs extends ue{constructor(t,r){super(),this.Summary=t,this.Details=r}}function G3(e){if(!Ht(e))return e}function z9(e,t,r){let n,i;const o=e.fields[0],s=t.MobilePhone,a=r!=null&&r[1]!=null?(n=r[0].fields[0].fields[0]|0,i=r[1],[n,xy(i)]):void 0,l=s!=null&&c5(new u5(o),s)?s:void 0;return g(Je(c=>{let d,f,m,h,p,v,b,_,C,E,N,I,D,P,A,x,k;const M=c.fields[0];return Z2(G0(L=>L,[(d=G3(we(t.FirstName.fields[0],M)),d==null?void 0:(f=d,[At(new Q(0,[])),f])),(m=G3(we(t.LastName.fields[0],M)),m==null?void 0:(h=m,[At(new Q(1,[])),h])),(p=G3(we(t.Email.fields[0],M)),p==null?void 0:(v=p,[At(new Q(2,[])),v])),(b=(_=l,_==null?void 0:(C=G3(we(_.fields[0],M)),C==null?void 0:j9(C))),b==null?void 0:(E=b,[At(new Q(3,[])),E])),(N=(I=a,I==null?void 0:(D=I,P=(A=we(D[0],M),x=Ae(),[df(D[1],A,new T0(()=>x,L=>{x=L})),x]),P[0]?P[1]:void 0)),N==null?void 0:(k=N,[At(new Q(4,[])),k]))]),{Compare:Ut})},o))}function P2(e,t,r){const n=At(r);return[kt(e,n),!Gi(i=>i.PropName===n,t)]}function ex(e,t){const r=vl(t.PropName);if(r==null)return["Invalid or missing field",!1];{const n=r,i=a3(n).toLocaleLowerCase();if(kt(e.Data,At(n))!=null){let s;switch(n.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function Vs(e){const t=vl(e.PropName);if(t==null)return e.Message;{const r=t;let n;switch(r.tag===2&&e.Message.startsWith("Duplicate")?n=0:n=1,n){case 0:return`${a3(r)} exists in multiple rows`;default:return Aa(e.Message,e.Column,a3(r))}}}function tx(e,t,r,n,i){return B.Delay(()=>{const o=B.Delay(()=>{const s=e();return B.Bind(s,a=>{let l,c;const d=a;if(d.tag===1)return B.Return(new R(1,[d.fields[0]]));{const f=T8(A1(_=>_.Email.toLocaleLowerCase().trim(),d.fields[0]),{Compare:Ut}),m=At(new Q(2,[])),h=M1((_,C)=>{let E,N;const I=_[0]|0,D=_[1];return E=kt(C,m),(E==null?!1:(N=E,vn(N.toLocaleLowerCase().trim(),f)))?[I,F1(D,se([void 0,C]))]:[I+1,F1(D,se([I,C]))]},[0,Pe()],(l=[r,n,i],z9(l[0],l[1],l[2])))[1],p=A1(_=>_[1],N0(_=>_[0]!=null,h)),v=new F8((c=i,(c==null?void 0:c[1])!=null),s3((_,C)=>new ro(_+2,C),p)),b=t(v);return B.Bind(b,_=>{let C,E;const N=_;return E=N.tag===1?new R(1,[N.fields[0]]):new R(0,[(C=A1(I=>{let D,P,A,x,k;const M=Le((D=Q4(O=>O.RowId===I.RowId,N.fields[0].Errors),D==null?void 0:D.FieldErrors),Pe()),L=O=>P2(I.Data,M,O);return new e4(I.RowId-2+1,L(new Q(0,[])),L(new Q(1,[])),L(new Q(2,[])),L(new Q(3,[])),(P=L(new Q(4,[])),[(A=(x=P[0],x==null?void 0:_y(x)),A==null?void 0:yl(A)),P[1]]),Gi(O=>O.Message.startsWith("Duplicate Email"),M),!ke(N0(O=>!O.Message.startsWith("Duplicate Email"),M)),!1,ke(M)?void 0:ke(Oe(M))?(k=ex(I,pe(M)),new Hs(k[0],k[1]?se(Vs(pe(M))):void 0)):new Hs("Multiple invalid or missing fields",A1(Vs,M)))},v.Data),s3((I,D)=>{const P=D[0],A=D[1];if(P==null)return new e4(I+1,P2(A,Pe(),new Q(0,[])),P2(A,Pe(),new Q(1,[])),P2(A,Pe(),new Q(2,[])),P2(A,Pe(),new Q(3,[])),P2(A,Pe(),new Q(4,[])),!1,!1,!0,void 0);{const x=ud(P,C);return new e4(I+1,x.FirstName,x.LastName,x.Email,x.MobilePhone,x.EmploymentBasis,x.HasDuplicateEmailError,x.HasErrorOtherThanDuplicateEmail,x.HasExistingEmailError,x.Errors)}},h))]),B.Return(E)})}})});return B.TryWith(o,s=>{const a=new R(1,[e0(s)]);return B.Return(a)})})}function rx(e,t,r,n,i){return B.Delay(()=>B.TryWith(B.Delay(()=>{let o,s;return B.Bind(e(new P8((o=n,(o==null?void 0:o[1])!=null),X(i,new $0(0,[])),s3((a,l)=>new ro(a+2,l),(s=[t,r,n],z9(s[0],s[1],s[2]))))),a=>{let l;return B.Return((l=a,l.tag===1?new R(1,[l.fields[0]]):new R(0,[l.fields[0].ImportId])))})}),o=>B.Return(new R(1,[e0(o)]))))}let i2=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","ShowExistingUserRows","PreviewNextPage","PreviewPreviousPage","DownloadedErrorReport"]}},o2=class extends z{constructor(t,r){super(),this.tag=t,this.fields=r}cases(){return["Validating","Reviewing"]}};class L2 extends ue{constructor(t,r,n,i,o,s,a,l,c,d,f,m,h,p,v,b){super(),this.Data=t,this.InviteTiming=r,this.DuplicateEmailCount=n|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfImportableRows=o|0,this.NumberOfInvalidRows=s|0,this.NumberOfRows=a|0,this.NumberOfExistingUsers=l|0,this.ShowingOnlyRowsWithErrors=c,this.ShowingExistingUsers=d,this.HasErrors=f,this.RowFrom=m|0,this.RowTo=h|0,this.NumberOfFilteredRows=p|0,this.Page=v,this.PageNo=b|0}}function nx(e,t,r){return[new o2(0,[]),o5(g([s1(t,new h0(5,[{RowCount:cy(r)}])),hp(n=>{mp(n)},e,void 0,n=>new i2(0,[n]))]))]}function Vr(e,t,r,n){const i=(e-1)*20|0,o=e*20-1|0,s=r?N0(n?l=>l.Errors!=null?!0:l.HasExistingEmailError:l=>l.Errors!=null,t):n?t:N0(l=>!l.HasExistingEmailError,t),a=Za(i,o,s);if(ke(a))return[0,0,l0(s),Pe()];{const l=a;return[i+1,i+l0(l),l0(s),l]}}function Y9(e){return e.PageNo>1}function Z9(e){return e.RowTo<e.NumberOfFilteredRows}function ix(e,t,r){const n=N0(o=>o.Errors!=null,e.Data),i=s3((o,s)=>{const a=Le(i0(p=>p.Summary,s.Errors),""),l=Le(s.FirstName[0],""),c=Le(s.LastName[0],""),d=Le(s.Email[0],""),f=Le(s.MobilePhone[0],""),m=Le(s.EmploymentBasis[0],""),h=o===l0(n)-1?"":`
|
|
50
50
|
`;return v0(",",q(T(()=>F(S(a),T(()=>F(S(l),T(()=>F(S(c),T(()=>F(S(d),T(()=>F(t?S(f):Te(),T(()=>F(r?S(m):Te(),T(()=>S(`${s.RowNumber}${h}`))))))))))))))))},n);return F1(se(v0(",",q(T(()=>F(S("Error detail"),T(()=>F(S("First name"),T(()=>F(S("Last name"),T(()=>F(S("Email"),T(()=>F(t?S("Mobile phone"):Te(),T(()=>F(r?S("Employment basis"):Te(),T(()=>S(`Original row #
|
|
51
51
|
`))))))))))))))))),i)}function ox(e,t,r,n){let i,o,s,a,l,c,d,f,m,h,p,v,b,_;switch(r.tag){case 1:{n.tag===1?(s=2,c=r.fields[0],d=n.fields[0]):(s=8,_=n);break}case 2:{n.tag===1?(i=n.fields[0],i.HasErrors&&i.ShowingOnlyRowsWithErrors!==r.fields[0]?(s=3,f=n.fields[0],m=r.fields[0]):(s=8,_=n)):(s=8,_=n);break}case 3:{n.tag===1?(o=n.fields[0],o.NumberOfExistingUsers>0&&o.ShowingExistingUsers!==r.fields[0]?(s=4,h=n.fields[0],p=r.fields[0]):(s=8,_=n)):(s=8,_=n);break}case 4:{n.tag===1&&Z9(n.fields[0])?(s=5,v=n.fields[0]):(s=8,_=n);break}case 5:{n.tag===1&&Y9(n.fields[0])?(s=6,b=n.fields[0]):(s=8,_=n);break}case 6:{n.tag===1&&n.fields[0].HasErrors?s=7:(s=8,_=n);break}default:r.fields[0].tag===1?n.tag===0?(s=1,l=r.fields[0].fields[0]):(s=8,_=n):n.tag===0?(s=0,a=r.fields[0].fields[0]):(s=8,_=n)}switch(s){case 0:{let C;const E=[a,!1,!1];C=Vr(1,E[0],E[1],E[2]);const N=l0(N0(A=>A.HasDuplicateEmailError,a))|0,I=l0(N0(A=>A.Errors!=null,a))|0,D=l0(N0(A=>A.HasExistingEmailError,a))|0,P=l0(a)-I-D|0;return[new o2(1,[new L2(a,new $0(1,[]),N,l0(N0(A=>A.HasErrorOtherThanDuplicateEmail,a)),P,I,l0(a),D,!1,!1,Gi(A=>A.Errors!=null,a),C[0],C[1],C[2],C[3],1)]),s1(t,new h0(6,[{DuplicateCount:N,ExistingUserCount:D,RowCount:l0(a)-D,SuccessCount:P,TotalFailedCount:I}]))]}case 1:return[n,s1(e,l)];case 2:return[new o2(1,[new L2(d.Data,c,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfImportableRows,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfExistingUsers,d.ShowingOnlyRowsWithErrors,d.ShowingExistingUsers,d.HasErrors,d.RowFrom,d.RowTo,d.NumberOfFilteredRows,d.Page,d.PageNo)]),ge()];case 3:{let C;const E=[f.Data,m,f.ShowingExistingUsers];return C=Vr(1,E[0],E[1],E[2]),[new o2(1,[new L2(f.Data,f.InviteTiming,f.DuplicateEmailCount,f.NumberOfRowsWithErrorsOtherThanDuplicateEmail,f.NumberOfImportableRows,f.NumberOfInvalidRows,f.NumberOfRows,f.NumberOfExistingUsers,m,f.ShowingExistingUsers,f.HasErrors,C[0],C[1],C[2],C[3],1)]),ge()]}case 4:{let C;const E=[h.Data,h.ShowingOnlyRowsWithErrors,p];return C=Vr(1,E[0],E[1],E[2]),[new o2(1,[new L2(h.Data,h.InviteTiming,h.DuplicateEmailCount,h.NumberOfRowsWithErrorsOtherThanDuplicateEmail,h.NumberOfImportableRows,h.NumberOfInvalidRows,h.NumberOfRows,h.NumberOfExistingUsers,h.ShowingOnlyRowsWithErrors,p,h.HasErrors,C[0],C[1],C[2],C[3],1)]),ge()]}case 5:{const C=v.PageNo+1|0;let E;const N=[v.Data,v.ShowingOnlyRowsWithErrors,v.ShowingExistingUsers];return E=Vr(C,N[0],N[1],N[2]),[new o2(1,[new L2(v.Data,v.InviteTiming,v.DuplicateEmailCount,v.NumberOfRowsWithErrorsOtherThanDuplicateEmail,v.NumberOfImportableRows,v.NumberOfInvalidRows,v.NumberOfRows,v.NumberOfExistingUsers,v.ShowingOnlyRowsWithErrors,v.ShowingExistingUsers,v.HasErrors,E[0],E[1],E[2],E[3],C)]),ge()]}case 6:{const C=b.PageNo-1|0;let E;const N=[b.Data,b.ShowingOnlyRowsWithErrors,b.ShowingExistingUsers];return E=Vr(C,N[0],N[1],N[2]),[new o2(1,[new L2(b.Data,b.InviteTiming,b.DuplicateEmailCount,b.NumberOfRowsWithErrorsOtherThanDuplicateEmail,b.NumberOfImportableRows,b.NumberOfInvalidRows,b.NumberOfRows,b.NumberOfExistingUsers,b.ShowingOnlyRowsWithErrors,b.ShowingExistingUsers,b.HasErrors,E[0],E[1],E[2],E[3],C)]),ge()]}case 7:return[n,s1(t,new h0(7,[]))];default:return[_,ge()]}}function T5(e,t){let r,n,i;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=g([u("path",y(g([(n="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",n]),["fill","#2E66F7"]]))),u("path",y(g([(i="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",w.Children.toArray(Array.from(r))])])))}function K9(e,t,r){let n,i,o,s,a,l,c,d,f,m,h,p,v,b,_,C,E,N,I,D,P,A,x;return A2(g([new g0(3,[t]),new g0(4,[r]),new g0(5,[[M2(se(new N2(2,["fixed inset-0 bg-gray-500/50"]))),u("div",y(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[T2(se(new ct(2,[[u("div",y(g([["className","flex flex-col mt-6 mb-6 px-6"],(i=[u("div",y(g([["className","flex flex-row justify-between"],(o=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),u("button",y(g([["onClick",k=>{r()}],["type","button"],["className","text-gray-600"],(s=[Kt(24,24)],["children",w.Children.toArray(Array.from(s))])])))],["children",w.Children.toArray(Array.from(o))])]))),u("div",y(g([["className","text-gray-600 text-sm pt-6"],(a=[u("span",{children:"Fields marked with "}),u("span",{className:"text-red-600",children:"*"}),u("span",y(se((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",w.Children.toArray(Array.from(a))])]))),u("div",y(g([["className","grid grid-cols-2 mt-3"],(c=[u("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),u("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),u("div",y(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(d=[u("span",{children:"First name "}),u("span",{className:"text-red-600",children:"*"})],["children",w.Children.toArray(Array.from(d))])]))),u("div",y(se((f=[u("div",y(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(m=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",w.Children.toArray(Array.from(m))])])))],["children",w.Children.toArray(Array.from(f))])))),u("div",y(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[u("span",{children:"Last name "}),u("span",{className:"text-red-600",children:"*"})],["children",w.Children.toArray(Array.from(h))])]))),u("div",y(se((p=[u("div",y(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(v=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",w.Children.toArray(Array.from(v))])])))],["children",w.Children.toArray(Array.from(p))])))),u("div",y(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[u("span",{children:"Email "}),u("span",{className:"text-red-600",children:"*"})],["children",w.Children.toArray(Array.from(b))])]))),u("div",y(se((_=[u("div",y(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",w.Children.toArray(Array.from(C))])])))],["children",w.Children.toArray(Array.from(_))])))),u("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),u("div",y(se((E=[u("div",y(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(N=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"+61432368712"})],["children",w.Children.toArray(Array.from(N))])])))],["children",w.Children.toArray(Array.from(E))])))),u("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),u("div",y(se((I=[u("div",y(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(D=[u("span",{children:"One of the following options:"}),u("br",{}),u("ul",y(g([["className","italic list-disc px-3"],(P=[u("li",{children:"Full-time"}),u("li",{children:"Part-time"}),u("li",{children:"Labour hire"}),u("li",{children:"Casual"})],["children",w.Children.toArray(Array.from(P))])])))],["children",w.Children.toArray(Array.from(D))])])))],["children",w.Children.toArray(Array.from(I))])))),u("a",y(g([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users_template"],(A=[u("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),u("span",y(g([["className","pb-0.5"],(x=[T5(16,16)],["children",w.Children.toArray(Array.from(x))])])))],["children",w.Children.toArray(Array.from(A))])])))],["children",w.Children.toArray(Array.from(c))])])))],["children",w.Children.toArray(Array.from(i))])])))]])))],["children",w.Children.toArray(Array.from(n))])])))]])]))}function sx(e,t){let r,n,i,o,s,a,l,c,d,f,m,h,p;return A2(g([new g0(3,[e]),new g0(4,[t]),new g0(5,[[M2(se(new N2(2,["fixed inset-0 bg-gray-500/50"]))),u("div",y(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[T2(se(new ct(2,[[u("div",y(g([["className","flex flex-col mt-6 mb-6 px-6"],(n=[u("div",y(g([["className","flex flex-row justify-between"],(i=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),u("button",y(g([["onClick",v=>{t()}],["type","button"],["className","text-gray-600"],(o=[Kt(24,24)],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(i))])]))),u("div",y(g([["className","text-gray-500 text-sm font-normal pt-6"],(s=[u("p",y(se((a=[u("span",{children:["Workplace benefits is a"]}),u("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",u("span",{children:[l]}))],["children",w.Children.toArray(Array.from(a))])))),u("p",y(g([["className","pt-3"],(c=[(d="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",u("span",{children:[d]})),u("span",{className:"font-semibold text-nowrap",children:" Flare App"}),u("span",{children:["."]})],["children",w.Children.toArray(Array.from(c))])]))),u("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),u("ul",y(g([["className","list-inside list-disc pt-3"],(f=[u("li",y(se((m=[u("span",{className:"font-semibold",children:"Savings "}),u("span",{children:["on essentials like food, fuel, and more."]})],["children",w.Children.toArray(Array.from(m))])))),u("li",y(g([["className","pt-2"],(h=[u("span",{className:"font-semibold",children:"Exclusive offers "}),u("span",{children:["from leading brands and retailers."]})],["children",w.Children.toArray(Array.from(h))])]))),u("li",y(g([["className","pt-2"],(p=[u("span",{className:"font-semibold",children:"Tax savings "}),u("span",{children:["with salary packaging."]})],["children",w.Children.toArray(Array.from(p))])])))],["children",w.Children.toArray(Array.from(f))])])))],["children",w.Children.toArray(Array.from(s))])])))],["children",w.Children.toArray(Array.from(n))])])))]])))],["children",w.Children.toArray(Array.from(r))])])))]])]))}const ax=e=>u("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("g",{id:"Group 67"},u("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),u("g",{id:"Group",opacity:.95},u("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),u("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),u("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),u("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),u("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),u("defs",null,u("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#161E37"}),u("stop",{offset:.11,stopColor:"#172243"}),u("stop",{offset:.31,stopColor:"#1B2E62"}),u("stop",{offset:.57,stopColor:"#214196"}),u("stop",{offset:.89,stopColor:"#2A5CDD"}),u("stop",{offset:1,stopColor:"#2E66F7"})),u("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},u("stop",{offset:.11,stopColor:"#FF876F"}),u("stop",{offset:.99,stopColor:"#A650FF"})),u("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#0095F2"}),u("stop",{offset:.29,stopColor:"#307CF6"}),u("stop",{offset:.61,stopColor:"#6163FB"}),u("stop",{offset:.86,stopColor:"#7F54FD"}),u("stop",{offset:1,stopColor:"#8B4FFF"})))),lx=e=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},u("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"})),ux=e=>u("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_4584_4202)"}),u("g",{clipPath:"url(#clip0_4584_4202)"},u("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77467 18.5963 9.49321 18.9222 9.2969C19.2482 9.10059 19.6215 8.99686 20.002 8.99686C20.3825 8.99686 20.7559 9.10059 21.0818 9.2969C21.4078 9.49321 21.6741 9.77467 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6266 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9115 29.2672 30.0023 28.908 30H11.092C10.7332 30.0016 10.3801 29.9103 10.0671 29.735C9.75404 29.5597 9.49169 29.3063 9.30555 28.9996C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),u("defs",null,u("linearGradient",{id:"paint0_linear_4584_4202",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#FECACA"}),u("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),u("clipPath",{id:"clip0_4584_4202"},u("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),cx=e=>u("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_3326_53774)"}),u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3272 22.6261C28.5428 23.1983 28.2016 23.8306 27.6205 24.025C26.6465 24.3503 25.3424 24.6628 23.7902 24.7151C23.7699 24.6508 23.7476 24.5864 23.7234 24.522C23.042 22.7136 21.7109 21.2192 20.0107 20.3308C20.9217 19.6032 22.0762 19.1683 23.3339 19.1683C25.6205 19.1683 27.5661 20.6061 28.3272 22.6261Z",fill:"#93C5FD"}),u("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",fill:"#93C5FD"}),u("path",{d:"M16.3892 19.1667C17.6165 19.1667 18.6114 18.1718 18.6114 16.9445C18.6114 15.7172 17.6165 14.7222 16.3892 14.7222C15.1619 14.7222 14.167 15.7172 14.167 16.9445C14.167 18.1718 15.1619 19.1667 16.3892 19.1667Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M20.6771 26.8022C21.2583 26.6078 21.5994 25.9756 21.3838 25.4033C20.6227 23.3833 18.6771 21.9456 16.3905 21.9456C14.1038 21.9456 12.1583 23.3833 11.3971 25.4033C11.1816 25.9767 11.5227 26.6089 12.1038 26.8022C13.1727 27.1589 14.6383 27.5 16.3916 27.5C18.1449 27.5 19.6094 27.1589 20.6771 26.8022Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M24.1664 24.6967C25.553 24.6111 26.7264 24.3233 27.6208 24.0245C28.2019 23.83 28.543 23.1978 28.3275 22.6256C27.5664 20.6056 25.6208 19.1678 23.3341 19.1678C22.2486 19.1678 21.2397 19.4922 20.3975 20.0489",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("defs",null,u("linearGradient",{id:"paint0_linear_3326_53774",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#D6E2FC"}),u("stop",{offset:1,stopColor:"#D6E2FC",stopOpacity:0})))),dx=e=>u("svg",{width:96,height:28,viewBox:"0 0 96 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("g",{clipPath:"url(#clip0_3030_30757)"},u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40895 5.42706C5.79785 4.83985 8.86151 3.00302 11.0249 0.261313C11.1152 0.153807 11.235 0.0767261 11.3686 0.0401219C11.5021 0.00351777 11.6434 0.0090886 11.7738 0.056108C11.9043 0.103127 12.0179 0.189414 12.0999 0.303716C12.1819 0.418018 12.2285 0.555032 12.2335 0.696894L12.2335 11.4663C12.2313 11.588 12.1985 11.7071 12.1382 11.812C12.078 11.9168 11.9924 12.0039 11.8897 12.0648C11.787 12.1257 11.6708 12.1583 11.5522 12.1594C11.4336 12.1606 11.3168 12.1303 11.213 12.0714L2.17962 6.71732C2.06323 6.6422 1.97142 6.53301 1.91604 6.40381C1.86067 6.27462 1.84426 6.13136 1.86894 5.9925C1.89362 5.85364 1.95825 5.72556 2.05451 5.62478C2.15076 5.52399 2.27422 5.45513 2.40895 5.42706ZM2.40895 22.6054C5.79785 23.1926 8.86151 25.0295 11.0249 27.7712C11.1152 27.8787 11.235 27.9557 11.3686 27.9923C11.5021 28.029 11.6434 28.0234 11.7738 27.9764C11.9043 27.9293 12.0179 27.8431 12.0999 27.7288C12.1819 27.6145 12.2285 27.4774 12.2335 27.3356L12.2335 16.5756C12.2328 16.453 12.2012 16.3328 12.1416 16.2267C12.082 16.1205 11.9965 16.0321 11.8936 15.9701C11.7906 15.9081 11.6738 15.8747 11.5544 15.8731C11.4351 15.8715 11.3174 15.9018 11.213 15.961L2.17962 21.3151C2.06323 21.3903 1.97142 21.4995 1.91604 21.6287C1.86067 21.7578 1.84426 21.9011 1.86894 22.04C1.89362 22.1788 1.95825 22.3069 2.05451 22.4077C2.15076 22.5085 2.27422 22.5773 2.40895 22.6054ZM0.20511 8.8811C1.43425 12.1754 1.45137 15.8168 0.253269 19.1231C0.21046 19.2568 0.207545 19.4007 0.244898 19.5361C0.28225 19.6715 0.358167 19.7924 0.462907 19.8833C0.567647 19.9741 0.696433 20.0307 0.832742 20.0459C0.96905 20.0611 1.10666 20.0341 1.22793 19.9684L10.2567 14.6166C10.3578 14.5537 10.4414 14.465 10.4994 14.3592C10.5574 14.2535 10.5879 14.1341 10.5879 14.0127C10.5879 13.8913 10.5574 13.772 10.4994 13.6662C10.4414 13.5604 10.3578 13.4717 10.2567 13.4088L1.17518 8.02406C1.05302 7.95812 0.914374 7.93142 0.777244 7.94743C0.640114 7.96344 0.510844 8.02142 0.406231 8.11384C0.301618 8.20627 0.226497 8.32886 0.190631 8.46568C0.154764 8.60251 0.159809 8.74725 0.20511 8.8811ZM23.6634 22.6054C20.2745 23.1926 17.2108 25.0295 15.0474 27.7712C14.9571 27.8787 14.8374 27.9557 14.7038 27.9923C14.5702 28.029 14.4289 28.0234 14.2985 27.9764C14.168 27.9293 14.0544 27.8431 13.9724 27.7288C13.8904 27.6145 13.8439 27.4774 13.8388 27.3356L13.8388 16.5756C13.8397 16.4534 13.8714 16.3335 13.9309 16.2277C13.9904 16.1219 14.0756 16.0337 14.1781 15.9718C14.2807 15.9098 14.3972 15.8763 14.5162 15.8744C14.6352 15.8725 14.7527 15.9024 14.8571 15.961L23.8927 21.3152C24.0091 21.3903 24.1009 21.4995 24.1563 21.6287C24.2117 21.7579 24.2281 21.9011 24.2034 22.04C24.1787 22.1788 24.1141 22.3069 24.0178 22.4077C23.9216 22.5085 23.7981 22.5773 23.6634 22.6054ZM15.0474 0.261313C17.2108 3.00302 20.2745 4.83985 23.6634 5.42706C23.7981 5.45513 23.9216 5.52399 24.0178 5.62478C24.1141 5.72556 24.1787 5.85364 24.2034 5.9925C24.2281 6.13136 24.2117 6.27462 24.1563 6.40381C24.1009 6.53301 24.0091 6.6422 23.8927 6.71732L14.8571 12.0714C14.7533 12.1297 14.6367 12.1596 14.5185 12.1581C14.4002 12.1567 14.2844 12.124 14.182 12.0632C14.0797 12.0024 13.9943 11.9155 13.9342 11.8109C13.8741 11.7064 13.8412 11.5877 13.8388 11.4663L13.8388 0.696894C13.8439 0.555032 13.8904 0.418018 13.9724 0.303716C14.0544 0.189414 14.168 0.103127 14.2985 0.056108C14.4289 0.0090886 14.5702 0.00351777 14.7038 0.0401219C14.8374 0.0767261 14.9571 0.153807 15.0474 0.261313ZM25.8168 8.90935C24.6184 12.2158 24.6363 15.8576 25.8672 19.1514C25.913 19.2855 25.9182 19.4307 25.8823 19.5679C25.8464 19.7052 25.7711 19.8281 25.666 19.9207C25.561 20.0133 25.4312 20.0711 25.2936 20.0868C25.1561 20.1024 25.0171 20.0751 24.8949 20.0084L15.8111 14.6237C15.71 14.5607 15.6264 14.4721 15.5684 14.3663C15.5104 14.2605 15.4799 14.1412 15.4799 14.0198C15.4799 13.8984 15.5104 13.779 15.5684 13.6732C15.6264 13.5674 15.71 13.4788 15.8111 13.4158L24.8421 8.06409C24.9634 7.9984 25.101 7.97141 25.2373 7.98657C25.3736 8.00174 25.5024 8.05837 25.6072 8.14921C25.7119 8.24004 25.7878 8.36093 25.8252 8.49637C25.8625 8.63181 25.8596 8.77562 25.8168 8.90935Z",fill:"#2696EC"}),u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2209 10.9851V23.8468H35.8118V10.9851H33.4648V7.92778H35.8118V6.51672C35.8118 4.91439 36.1765 3.76595 36.9061 3.0714C37.6356 2.37685 38.8454 2.02879 40.5355 2.02722H42.4442V4.82816H41.2857C40.5347 4.82816 40.0032 4.98495 39.6912 5.29851C39.3769 5.6207 39.2209 6.16396 39.2209 6.94474V7.93718H42.3891V10.9945L39.2209 10.9851ZM48.9092 2.03663L45.4679 2.03663V23.8421L48.9092 23.8421V2.03663ZM67.5974 23.8468V7.93718L64.2755 7.93718V10.1196C63.6573 9.3308 62.873 8.69564 61.9813 8.26172C61.0863 7.83165 60.1089 7.61228 59.1205 7.6197C58.0959 7.5972 57.0782 7.79484 56.1327 8.19987C55.1871 8.60491 54.3348 9.20838 53.6305 9.97145C52.1393 11.5597 51.3937 13.5195 51.3937 15.8508C51.3952 18.2324 52.1202 20.2032 53.5686 21.7632C55.017 23.3232 56.8362 24.1031 59.0264 24.1031C60.0369 24.1101 61.0362 23.886 61.9515 23.447C62.8575 23.009 63.6545 22.3657 64.2823 21.5656V23.8468H67.5974ZM55.138 17.7811C54.9016 17.1671 54.7876 16.5107 54.8028 15.8508C54.7876 15.1909 54.9016 14.5346 55.138 13.9206C55.3744 13.3066 55.7285 12.7475 56.1794 12.2762C56.6129 11.8155 57.1322 11.4489 57.7066 11.1979C58.281 10.947 58.8988 10.8169 59.5231 10.8153C60.1475 10.8138 60.7658 10.9409 61.3414 11.189C61.917 11.4371 62.4381 11.8012 62.8737 12.2597C63.3183 12.7374 63.6661 13.3008 63.8968 13.9172C64.1276 14.5337 64.2368 15.1909 64.2181 15.8508C64.2368 16.5108 64.1276 17.168 63.8968 17.7844C63.6661 18.4009 63.3183 18.9642 62.8737 19.442C62.4381 19.9005 61.917 20.2646 61.3414 20.5127C60.7658 20.7608 60.1475 20.8879 59.5231 20.8863C58.8988 20.8848 58.281 20.7547 57.7066 20.5038C57.1322 20.2528 56.6129 19.8861 56.1794 19.4255C55.7285 18.9542 55.3744 18.395 55.138 17.7811ZM74.317 14.254V23.8468H70.9079V7.93718L74.223 7.93718V9.54108C74.592 8.94917 75.0969 8.45902 75.6935 8.11357C76.2985 7.77921 76.977 7.60919 77.6642 7.6197C78.1147 7.61511 78.5633 7.68012 78.9948 7.81254C79.3586 7.91663 79.6949 8.10308 79.979 8.35815L78.2584 11.4366C78.0425 11.2918 77.8055 11.1831 77.5564 11.1144C77.3265 11.052 77.0899 11.0196 76.8521 11.018C76.4954 11.0017 76.1402 11.0733 75.8161 11.2268C75.4919 11.3802 75.2084 11.611 74.9892 11.8999C74.5411 12.4863 74.317 13.271 74.317 14.254ZM95.8271 16.467C95.8432 16.34 95.8432 16.1472 95.8432 15.8908C95.8355 13.4967 95.0815 11.5197 93.5811 9.95969C92.0807 8.3997 90.1835 7.6197 87.8893 7.6197C85.5676 7.61186 83.642 8.38872 82.1126 9.95029C80.5831 11.5119 79.8184 13.4897 79.8184 15.8838C79.8184 18.2982 80.5587 20.2698 82.0392 21.7984C83.5197 23.3271 85.4384 24.0914 87.7952 24.0914C89.5346 24.1334 91.2443 23.6242 92.691 22.6333C94.0578 21.6868 95.0674 20.2892 95.5518 18.6729H91.9546C91.5609 19.4036 90.9761 20.0071 90.266 20.4156C89.5283 20.8295 88.6981 21.0394 87.8572 21.0247C86.7294 21.0612 85.6315 20.65 84.7922 19.877C83.977 19.1229 83.4975 18.1038 83.3537 16.8198H95.7812C95.8037 16.7033 95.819 16.5855 95.8271 16.467ZM87.8324 10.6957C87.8338 10.6957 87.8351 10.6958 87.8365 10.6958H87.8274C87.829 10.6958 87.8307 10.6957 87.8324 10.6957ZM84.9413 11.7212C85.7535 11.0344 86.7798 10.6704 87.8324 10.6957C88.8902 10.6749 89.9201 11.0447 90.7341 11.7376C91.5425 12.4257 92.0583 13.409 92.1725 14.4798L83.3927 14.4798C83.5781 13.4028 84.1261 12.4266 84.9413 11.7212Z",fill:"#143057"})),u("defs",null,u("clipPath",{id:"clip0_3030_30757"},u("rect",{width:95.6667,height:28,fill:"white",transform:"translate(0.166992)"})))),fx=e=>u("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5C8.14219 5 5 8.14219 5 12C5 15.8578 8.14219 19 12 19C15.8578 19 19 15.8578 19 12C19 8.14219 15.8578 5 12 5ZM3 12C3 7.03763 7.03763 3 12 3C16.9624 3 21 7.03763 21 12C21 16.9624 16.9624 21 12 21C7.03763 21 3 16.9624 3 12Z",fill:"#10B981"}),u("path",{d:"M11.707 14.707C11.3165 15.0975 10.6834 15.0975 10.2928 14.707L8.29294 12.7071C7.90247 12.3166 7.90247 11.6835 8.29294 11.2931C8.6834 10.9026 9.31647 10.9026 9.70694 11.2931L10.9999 12.5861L14.2929 9.29306C14.6834 8.90259 15.3165 8.90259 15.7069 9.29306C16.0974 9.68353 16.0974 10.3166 15.7069 10.7071L11.707 14.707Z",fill:"#10B981"})),hx=e=>u("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("path",{d:"M12.0004 2.40002C6.72039 2.40002 2.40039 6.72002 2.40039 12C2.40039 17.28 6.72039 21.6 12.0004 21.6C17.2804 21.6 21.6004 17.28 21.6004 12C21.6004 6.72002 17.2804 2.40002 12.0004 2.40002ZM12.0004 19.2C8.04039 19.2 4.80039 15.96 4.80039 12C4.80039 8.04002 8.04039 4.80002 12.0004 4.80002C15.9604 4.80002 19.2004 8.04002 19.2004 12C19.2004 15.96 15.9604 19.2 12.0004 19.2Z",fill:"#DC2626"}),u("path",{d:"M13.2008 7.20007H10.8008V13.2001H13.2008V7.20007Z",fill:"#DC2626"}),u("path",{d:"M12.0008 16.8C12.6635 16.8 13.2008 16.2628 13.2008 15.6C13.2008 14.9373 12.6635 14.4 12.0008 14.4C11.338 14.4 10.8008 14.9373 10.8008 15.6C10.8008 16.2628 11.338 16.8 12.0008 16.8Z",fill:"#DC2626"})),mx=e=>u("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("g",{id:"Clock"},u("path",{id:"Icon",d:"M12.5 8V12L15.5 15M21.5 12C21.5 16.9706 17.4706 21 12.5 21C7.52944 21 3.5 16.9706 3.5 12C3.5 7.02944 7.52944 3 12.5 3C17.4706 3 21.5 7.02944 21.5 12Z",stroke:"#FB923C",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})));function Jt(e,t){return w.createElement(e,y(t))}function px(e){return Jt(ax,e)}function gx(e){return Jt(lx,e)}function wx(e){return Jt(ux,e)}function yx(e){return Jt(cx,e)}function vx(e){return Jt(dx,e)}function bx(e){return Jt(fx,e)}function _x(e){return Jt(hx,e)}function Cx(e){return Jt(mx,e)}function xx(e,t,r,n){let i,o,s,a,l,c,d,f,m,h,p;return A2(g([new g0(3,[e]),new g0(4,[r]),new g0(5,[[M2(se(new N2(2,["fixed inset-0 bg-gray-500/50"]))),u("div",y(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(i=[u("div",y(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(o=[T2(g([new ct(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new ct(2,[[u("div",y(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(s=[u("button",y(g([["type","button"],["onClick",v=>{r()}],["className","text-gray-600"],(a=[Kt(24,24)],["children",w.Children.toArray(Array.from(a))])])))],["children",w.Children.toArray(Array.from(s))])]))),u("div",y(g([["className","sm:flex sm:items-start"],(l=[u("div",y(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(c=[yx([])],["children",w.Children.toArray(Array.from(c))])]))),u("div",y(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(d=[P9(g([new Dn(2,["text-gray-900 text-lg font-bold"]),new Dn(3,[[`Import ${h2(t)}`]])])),u("div",y(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(f=[u("p",{children:[`Are you sure you want to import ${h2(t)}?`]})],["children",w.Children.toArray(Array.from(f))])])))],["children",w.Children.toArray(Array.from(d))])])))],["children",w.Children.toArray(Array.from(l))])]))),u("div",y(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(m=[u("button",y(g([["type","button"],["onClick",v=>{n()}],(h="inline-flex w-full justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-emerald-700 sm:ml-3 sm:w-auto",["className",h]),["children","Confirm import"]]))),u("button",y(g([["type","button"],["onClick",v=>{r()}],(p="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",p]),["children","Cancel"]])))],["children",w.Children.toArray(Array.from(m))])])))]])]))],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(i))])])))]])]))}function J9(e,t){let r,n;return u("svg",y(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(r=se(u("path",y(g([(n="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",n]),["fill","#FBBF24"]])))),["children",w.Children.toArray(Array.from(r))])])))}function Sx(e){return`${Hi(e,".")}.`}function js(e){return Hi(e,".")}function Ex(e){let t;const r=e.children,n=e.text,i=w.useState(!1),o=i[1];return u("div",y(g([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=q(T(()=>F(r,T(()=>{let s,a;return i[0]?S(u("div",y(g([(s="absolute z-50 top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 pl-6 pr-3 py-2 w-60 text-wrap",["className",s]),(a=q(T(()=>{let l;return ke(n)?S(u("ul",y(g([["className","list-outside list-disc"],(l=q(T(()=>De(c=>u("li",{children:[js(c)]}),n))),["children",w.Children.toArray(Array.from(l))])])))):ke(Oe(n))?S(u("p",{children:[Sx(pe(n))]})):S(u("ul",y(g([["className","list-outside list-disc"],(l=q(T(()=>De(c=>u("li",{children:[js(c)]}),n))),["children",w.Children.toArray(Array.from(l))])]))))})),["children",w.Children.toArray(Array.from(a))])])))):Te()})))),["children",w.Children.toArray(Array.from(t))])])))}function B2(e,t){let r;return u("div",y(g([["className",v0(" ",["animate-pulse w-full relative",e,t])],(r=[u("div",{className:v0(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",w.Children.toArray(Array.from(r))])])))}function Ax(){let e,t,r,n,i,o,s,a,l,c,d;return u("div",y(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[u("div",y(g([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[u("div",y(g([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[u("div",y(g([["className","w-[1030px]"],(n=q(T(()=>{let f,m,h,p;return F(S(u("div",y(g([["className","bg-gray-100 flex"],(f=[u("div",y(g([["className","px-3 py-2.5 text-left w-[128px]"],(m=[B2("h-5","w-full")],["children",w.Children.toArray(Array.from(m))])]))),u("div",y(g([["className","px-3 py-2.5 text-left w-[148px]"],(h=[B2("h-5","w-full")],["children",w.Children.toArray(Array.from(h))])]))),u("div",y(g([["className","px-3 py-2.5 text-left flex-1"],(p=[B2("h-5","w-full")],["children",w.Children.toArray(Array.from(p))])])))],["children",w.Children.toArray(Array.from(f))])])))),T(()=>De(v=>u("div",y(q(T(()=>F(v%2===1?S(["className","bg-white border-t border-gray-200 flex"]):S(["className","bg-gray-50 border-t border-gray-200 flex"]),T(()=>{let b,_,C,E;return S((b=[u("div",y(g([["className","px-3 py-2.5 text-left w-[128px]"],(_=[B2("h-5","w-full")],["children",w.Children.toArray(Array.from(_))])]))),u("div",y(g([["className","px-3 py-2.5 text-left w-[148px]"],(C=[B2("h-5","w-full")],["children",w.Children.toArray(Array.from(C))])]))),u("div",y(g([["className","px-3 py-2.5 text-left flex-1"],(E=[B2("h-5","w-full")],["children",w.Children.toArray(Array.from(E))])])))],["children",w.Children.toArray(Array.from(b))]))})))))),q(so(0,1,9)))))})),["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(r))])])))],["children",w.Children.toArray(Array.from(t))])]))),u("div",y(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(i=[u("div",y(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(o=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",y(g([["className","justify-start items-center gap-2 flex"],(s=[u("button",y(g([(a="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",a]),["disabled",!0],(l=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",w.Children.toArray(Array.from(l))])]))),u("button",y(g([(c="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",c]),["disabled",!0],(d=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",w.Children.toArray(Array.from(d))])])))],["children",w.Children.toArray(Array.from(s))])])))],["children",w.Children.toArray(Array.from(o))])])))],["children",w.Children.toArray(Array.from(i))])])))],["children",w.Children.toArray(Array.from(e))])])))}function Tx(e){const t=Je(n=>n,dt(e)),r=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(r)}const Nx=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function Mx(e){let t,r,n;const i=e.sendAnalytics,o=e.onError,s=e.back,a=e.next,l=e.employmentBasis,c=e.baseColumnMappings,d=e.dataRows,f=e.validateImportApiCallAsync,m=e.getCurrentAccountUsersApiCallAsync;let h;const p=nx(()=>tx(m,f,d,c,l),i,d);h=wt(()=>gt(()=>p,(x,k)=>ox(o,i,x,k),(x,k)=>{}),void 0,void 0);const v=h[1],b=w.useState(!1),_=b[1],C=w.useState(!1),E=C[1],N=w.useState(!1),I=N[0],D=N[1],P=Le(i0(x=>c5(d,x),c.MobilePhone),!1),A=qn(x=>x[1],l)!=null;return u("div",y(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[K9(Nx,b[0],()=>{_(!1)}),sx(C[0],()=>{E(!1)}),k2("Review"),Tr("Preview your data and confirm that everything is mapped correctly."),u("div",y(g([["className","flex flex-row pt-3 gap-2"],(r=[x2("What kind of data do I need?",()=>{_(!0)})],["children",w.Children.toArray(Array.from(r))])]))),u("div",y(g([["className","justify-start items-start gap-12 inline-flex"],(n=[u("div",y(q(T(()=>F(S(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let x,k,M;const L=h[0];if(L.tag===1){const O=L.fields[0],j=G=>{v(new i2(1,[G]))},oe=G=>{v(new i2(2,[G]))},Z=G=>{v(new i2(3,[G]))},J=Z9(O)?G=>{v(new i2(4,[]))}:void 0,U=Y9(O)?G=>{v(new i2(5,[]))}:void 0;return S((x=[u("div",y(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(k=q(T(()=>F(S(xx(I,O.NumberOfImportableRows,()=>{D(!1)},()=>{I&&a([new u5(y1(De(G=>G[0],Ot(G=>{const W=G[1];return W.Errors==null?!W.HasExistingEmailError:!1},n8(d.fields[0],O.Data))))),O.InviteTiming])})),T(()=>{let G;return F(S(u("div",y(g([["className","flex-col justify-start items-start gap-3 inline-flex w-full"],(G=q(T(()=>{let W,ie,Y,$,fe,he,Ne,Ie,te,H;return F(O.HasErrors?S(u("div",y(g([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex w-full"],(W=[J9(20,20),u("div",y(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(ie=[u("div",y(g([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(Y=[u("span",{children:[O.NumberOfInvalidRows>1?`We found some issues across ${O.NumberOfInvalidRows} rows in your CSV:`:"We have found an issue in your CSV:"]})],["children",w.Children.toArray(Array.from(Y))])]))),u("ul",y(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],($=q(T(()=>{let le;return F(O.DuplicateEmailCount>0?S((le=g([u("span",{className:"font-medium",children:`${O.DuplicateEmailCount} rows `}),u("span",{children:["have "]}),u("span",{className:"font-medium",children:"duplicate email addresses"})]),u("li",{children:w.Children.toArray(Array.from(le))}))):Te(),T(()=>{let be;return O.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?S((be=g([u("span",{className:"font-medium",children:O.NumberOfRowsWithErrorsOtherThanDuplicateEmail>1?`${O.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `:"1 row "}),u("span",{children:[O.NumberOfRowsWithErrorsOtherThanDuplicateEmail>1?"have ":"has "]}),u("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),u("li",{children:w.Children.toArray(Array.from(be))}))):Te()}))})),["children",w.Children.toArray(Array.from($))])]))),u("div",y(g([["className","px-2 py-1.5"],(fe=[u("div",y(g([["className","text-amber-700 text-sm leading-tight"],(he=[u("span",{children:[(Ne=O.NumberOfImportableRows===0,Ie=O.NumberOfInvalidRows|0,Ne?Ie===1?"To import this row later, download the error report with the 1 row, fix the issue(s), and re-upload it.":`To import these rows later, download the error report with the ${O.NumberOfInvalidRows} rows, fix the issues, and re-upload them.`:Ie===1?"You can continue the import without this row—we’ll automatically skip it. You can also download the error report with the 1 row, fix the issue(s), and re-upload it.":`You can continue the import without these ${O.NumberOfInvalidRows} rows—we’ll automatically skip them. You can also download the error report with the ${O.NumberOfInvalidRows} rows, fix the issues, and re-upload them.`)]})],["children",w.Children.toArray(Array.from(he))])])))],["children",w.Children.toArray(Array.from(fe))])]))),u("div",y(g([["className","hover:bg-amber-100 rounded-md inline-flex justify-center items-center"],(te=[u("a",{className:"px-2 py-1.5 text-amber-800 text-sm font-medium underline",children:"Download error report (.csv)",href:Tx((H=[O,P,A],ix(H[0],H[1],H[2]))),onClick:le=>{v(new i2(6,[]))},download:"import_users_error_rows"})],["children",w.Children.toArray(Array.from(te))])])))],["children",w.Children.toArray(Array.from(ie))])])))],["children",w.Children.toArray(Array.from(W))])])))):Te(),T(()=>{let le,be,ae,K,ne;return O.NumberOfExistingUsers>0?S(u("div",y(g([["className","p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex w-full"],(le=[L9(20,20),u("div",y(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(be=[u("div",y(g([["className","self-stretch text-gray-800 text-sm font-medium leading-tight"],(ae=se(u("span",{children:[(K=["user already exists","users already exist"],i5(O.NumberOfExistingUsers,K[0],K[1]))]})),["children",w.Children.toArray(Array.from(ae))])]))),u("div",y(g([["className","text-gray-700 text-sm leading-tight"],(ne=se(u("span",{children:[`${Qm(O.NumberOfExistingUsers,"This","These")} will be automatically skipped during import.`]})),["children",w.Children.toArray(Array.from(ne))])])))],["children",w.Children.toArray(Array.from(be))])])))],["children",w.Children.toArray(Array.from(le))])])))):Te()}))})),["children",w.Children.toArray(Array.from(G))])])))),T(()=>{let W,ie,Y,$,fe,he,Ne,Ie,te,H,le,be,ae;return F(S(u("div",y(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(W=[u("div",y(g([["className","inline-flex justify-end items-center gap-6"],(ie=q(T(()=>{let K,ne;return F(O.NumberOfExistingUsers>0?S(u("div",y(g([["className","flex justify-start items-center gap-2 cursor-pointer"],["onClick",me=>{Z(!O.ShowingExistingUsers)}],(K=[u("input",y(g([["type","checkbox"],["checked",O.ShowingExistingUsers],(ne="rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",["className",ne]),["onKeyPress",me=>{me.preventDefault(),me.key==="Enter"&&Z(!O.ShowingExistingUsers)}]]))),u("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show existing users"})],["children",w.Children.toArray(Array.from(K))])])))):Te(),T(()=>{let me,_e;return F(O.HasErrors?S(u("div",y(g([["className","flex justify-start items-center gap-2 cursor-pointer"],["onClick",re=>{oe(!O.ShowingOnlyRowsWithErrors)}],(me=[u("input",y(g([["type","checkbox"],["checked",O.ShowingOnlyRowsWithErrors],(_e="rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",["className",_e]),["onKeyPress",re=>{re.preventDefault(),re.key==="Enter"&&oe(!O.ShowingOnlyRowsWithErrors)}]]))),u("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",w.Children.toArray(Array.from(me))])])))):Te(),T(()=>{let re;return!O.HasErrors&&O.NumberOfExistingUsers===0?S(u("div",y(g([["className","text-sm font-medium text-emerald-700 gap-2 inline-flex text-nowrap"],(re=[Nr(20,20),u("span",{children:"No errors"})],["children",w.Children.toArray(Array.from(re))])])))):Te()}))}))})),["children",w.Children.toArray(Array.from(ie))])]))),u("div",y(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(Y=[u("div",y(se(($=[u("div",y(g([["className","w-full max-h-[470px] overflow-auto"],(fe=[u("table",y(g([["className","w-full divide-y divide-gray-300"],(he=[u("thead",y(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(Ne=[(Ie=q(T(()=>F(S(u("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>F(O.HasErrors||O.NumberOfExistingUsers>0?S(u("th",{scope:"col",className:"px-3 py-2.5 text-left text-nowrap",children:"Error detail"})):Te(),T(()=>{let K;return F(S(u("th",y(g([["scope","col"],["className","px-3 py-2.5 text-left text-nowrap"],(K=[u("span",{children:["First name "]}),u("span",{className:"text-red-500",children:"*"})],["children",w.Children.toArray(Array.from(K))])])))),T(()=>{let ne;return F(S(u("th",y(g([["scope","col"],["className","px-3 py-2.5 text-left text-nowrap"],(ne=[u("span",{children:["Last name "]}),u("span",{className:"text-red-500",children:"*"})],["children",w.Children.toArray(Array.from(ne))])])))),T(()=>{let me;return F(S(u("th",y(g([["scope","col"],["className","px-3 py-2.5 text-left text-nowrap"],(me=[u("span",{children:["Email "]}),u("span",{className:"text-red-500",children:"*"})],["children",w.Children.toArray(Array.from(me))])])))),T(()=>F(P?S(u("th",{scope:"col",className:"px-3 py-2.5 text-left text-nowrap",children:"Mobile Phone"})):Te(),T(()=>A?S(u("th",{scope:"col",className:"px-3 py-2.5 text-left text-nowrap",children:"Employment Basis"})):Te()))))}))}))})))))),u("tr",{children:w.Children.toArray(Array.from(Ie))}))],["children",w.Children.toArray(Array.from(Ne))])]))),u("tbody",y(g([["className","divide-y divide-gray-200 text-gray-500"],(te=q(T(()=>De(K=>u("tr",y(q(T(()=>F(S(["key",K.RowNumber]),T(()=>{let ne;return F((ne=K.Errors!=null,ne?S(["className","bg-amber-50"]):K.HasExistingEmailError?S(["className","bg-gray-50 text-gray-500/50"]):S(["className","bg-white"])),T(()=>{let me;return S((me=q(T(()=>F(S(u("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm",children:K.RowNumber})),T(()=>F(O.HasErrors||O.NumberOfExistingUsers>0?S(u("td",y(q(T(()=>F(S(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let _e,re,xe,qe,o0;return K.Errors!=null?S((_e=[u("div",y(g([(re="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",re]),(xe=q(T(()=>F(S(u("span",{children:[V(K.Errors).Summary]})),T(()=>{let X0;const U0=V(K.Errors).Details;return U0==null?Te():S(u("div",y(g([["className","pl-1 text-amber-700 items-center inline-flex"],(X0=[u(Ex,{text:U0,children:[gx([])]})],["children",w.Children.toArray(Array.from(X0))])]))))})))),["children",w.Children.toArray(Array.from(xe))])])))],["children",w.Children.toArray(Array.from(_e))])):K.HasExistingEmailError?S((qe=[u("div",y(g([(o0="text-center text-gray-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-gray-100 rounded justify-center items-center inline-flex",["className",o0]),["children","Existing user"]])))],["children",w.Children.toArray(Array.from(qe))])):Te()}))))))):Te(),T(()=>F(S(u("td",y(q(T(()=>F(S(Y0),T(()=>{let _e,re;const xe=K.FirstName;return xe[0]==null?Te():xe[1]?(_e=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm"]),T(()=>S(["children",_e])))):(re=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>S(["children",re]))))}))))))),T(()=>F(S(u("td",y(q(T(()=>F(S(Y0),T(()=>{let _e,re;const xe=K.LastName;return xe[0]==null?Te():xe[1]?(_e=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm"]),T(()=>S(["children",_e])))):(re=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>S(["children",re]))))}))))))),T(()=>F(S(u("td",y(q(T(()=>F(S(Y0),T(()=>{let _e,re;const xe=K.Email;return xe[0]==null?Te():xe[1]?(_e=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm"]),T(()=>S(["children",_e])))):(re=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>S(["children",re]))))}))))))),T(()=>F(P?S(u("td",y(q(T(()=>F(S(Tg),T(()=>{let _e,re;const xe=K.MobilePhone;return xe[0]==null?Te():xe[1]?(_e=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm"]),T(()=>S(["children",_e])))):(re=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>S(["children",re]))))}))))))):Te(),T(()=>A?S(u("td",y(q(T(()=>{let _e,re;const xe=K.EmploymentBasis;return xe[0]==null?Te():xe[1]?(_e=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm"]),T(()=>S(["children",_e])))):(re=xe[0],F(S(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>S(["children",re]))))}))))):Te())))))))))))))),["children",w.Children.toArray(Array.from(me))]))}))})))))),O.Page))),["children",w.Children.toArray(Array.from(te))])])))],["children",w.Children.toArray(Array.from(he))])])))],["children",w.Children.toArray(Array.from(fe))])]))),u("div",y(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(H=[u("div",y(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(le=[(be=g([u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:O.RowFrom}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:O.RowTo}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:O.NumberOfFilteredRows}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),u("div",{children:w.Children.toArray(Array.from(be))})),u("div",y(g([["className","justify-start items-start gap-3 flex"],(ae=[u("button",y(q(T(()=>{let K;return F((K=U,K==null?S(["disabled",!0]):S(["onClick",K])),T(()=>{let ne;return F(S((ne="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ne])),T(()=>{let me;return S((me=[u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",w.Children.toArray(Array.from(me))]))}))}))})))),u("button",y(q(T(()=>{let K;return F((K=J,K==null?S(["disabled",!0]):S(["onClick",K])),T(()=>{let ne;return F(S((ne="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ne])),T(()=>{let me;return S((me=[u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",w.Children.toArray(Array.from(me))]))}))}))}))))],["children",w.Children.toArray(Array.from(ae))])])))],["children",w.Children.toArray(Array.from(le))])])))],["children",w.Children.toArray(Array.from(H))])])))],["children",w.Children.toArray(Array.from($))]))))],["children",w.Children.toArray(Array.from(Y))])])))],["children",w.Children.toArray(Array.from(W))])])))),T(()=>{let K,ne,me,_e,re,xe,qe,o0,X0,U0,x0,b1,n0,q0,Q0;return F(O.NumberOfImportableRows>0?S(u("div",y(g([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(K=[px([]),u("div",y(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ne=[u("div",y(g([["className","flex-col justify-start items-start gap-2 flex"],(me=[u("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${O.NumberOfImportableRows} users to workplace benefits`})],["children",w.Children.toArray(Array.from(me))])]))),x2("What is workplace benefits?",()=>{E(!0)}),u("div",y(se((_e=[u("div",y(g([["className","flex-col justify-start items-start gap-2 flex"],(re=[u("div",y(g([["key",e0(new $0(1,[]))],["className","relative flex items-start"],(xe=[u("div",y(g([["className","flex h-6 items-center py-2"],["onClick",k0=>{j(new $0(1,[]))}],(qe=[u("input",y(g([["id",e0(new $0(1,[]))],["name","InviteTiming"],["type","radio"],(o0="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",o0]),["checked",X(O.InviteTiming,new $0(1,[]))],["onChange",k0=>{k0.target.checked,j(new $0(1,[]))}]])))],["children",w.Children.toArray(Array.from(qe))])]))),u("div",y(g([["className","ml-3 text-sm/6"],(X0=[u("label",{for:e0(new $0(1,[])),className:"text-gray-700 text-sm font-medium leading-tight cursor-pointer",children:"Import now, invite later"}),u("p",{id:`${e0(new $0(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",w.Children.toArray(Array.from(X0))])])))],["children",w.Children.toArray(Array.from(xe))])])))],["children",w.Children.toArray(Array.from(re))])]))),u("div",y(se((U0=[u("div",y(g([["key",e0(new $0(0,[]))],["className","relative flex items-start"],(x0=[u("div",y(g([["className","flex h-6 items-center py-2"],["onClick",k0=>{j(new $0(0,[]))}],(b1=[u("input",y(g([["id",e0(new $0(0,[]))],["name","InviteTiming"],["type","radio"],(n0="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",n0]),["checked",X(O.InviteTiming,new $0(0,[]))],["onChange",k0=>{k0.target.checked,j(new $0(0,[]))}]])))],["children",w.Children.toArray(Array.from(b1))])]))),u("div",y(g([["className","ml-3 text-sm/6"],(q0=[u("label",{for:e0(new $0(0,[])),className:"text-gray-700 text-sm font-medium leading-tight cursor-pointer",children:"Import and invite now"}),u("p",y(g([["id",`${e0(new $0(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(Q0="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",Q0])])))],["children",w.Children.toArray(Array.from(q0))])])))],["children",w.Children.toArray(Array.from(x0))])])))],["children",w.Children.toArray(Array.from(U0))]))))],["children",w.Children.toArray(Array.from(_e))]))))],["children",w.Children.toArray(Array.from(ne))])])))],["children",w.Children.toArray(Array.from(K))])])))):Te(),T(()=>{let k0,Ir,q1,e1,vt,Rr,$o,N5;return S(u("div",y(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(k0=[u("div",y(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Ir=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",y(g([["className","justify-start items-center gap-2 flex"],(q1=[u("button",y(g([(e1="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",e1]),["onClick",cu=>{s()}],(vt=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",w.Children.toArray(Array.from(vt))])]))),u("button",y(g([(Rr="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Rr]),["onClick",cu=>{D(!0)}],["disabled",O.NumberOfImportableRows===0],($o=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:(N5=O.NumberOfImportableRows|0,N5===0?"Import users":N5===1?"Import 1 user":`Import ${O.NumberOfImportableRows} users`)})],["children",w.Children.toArray(Array.from($o))])])))],["children",w.Children.toArray(Array.from(q1))])])))],["children",w.Children.toArray(Array.from(Ir))])])))],["children",w.Children.toArray(Array.from(k0))])]))))}))}))}))})))),["children",w.Children.toArray(Array.from(k))])])))],["children",w.Children.toArray(Array.from(x))]))}else return S((M=[Ax()],["children",w.Children.toArray(Array.from(M))]))}))))))],["children",w.Children.toArray(Array.from(n))])])))],["children",w.Children.toArray(Array.from(t))])])))}var U2={},t4,Ws;function C0(){return Ws||(Ws=1,t4={detecting:0,foundIt:1,notMe:2,start:0,error:1,itsMe:2,SHORTCUT_THRESHOLD:.95}),t4}var r4,qs;function I2(){if(qs)return r4;qs=1;var e=C0();function t(){this.reset=function(){this._mState=e.detecting},this.getCharsetName=function(){return null},this.getSupportedCharsetNames=function(){throw new Error("Unimplemented method getSupportedCharsetNames()")},this.feed=function(r){},this.getState=function(){return this._mState},this.getConfidence=function(){return 0},this.filterHighBitOnly=function(r){return r=r.replace(/[\x00-\x7F]+/g," "),r},this.filterWithoutEnglishLetters=function(r){return r=r.replace(/[A-Za-z]+/g," "),r},this.removeXmlTags=function(r){for(var n="",i=!1,o=0,s=0;s<r.length;s++){var a=r[s];a==">"&&r[s-1]!=="?"?(o=s+1,i=!1):a=="<"&&r[s+1]!=="?"&&(s>o&&!i&&(n=n+r.substring(o,s)+" "),i=!0)}return i||(n=n+r.substring(o)),n}}return r4=t,r4}var H2={},Gs;function R2(){return Gs||(Gs=1,H2.log=function(){},H2.setLogger=function(t){H2.enabled=!0,H2.log=t}),H2}var n4,zs;function X9(){if(zs)return n4;zs=1;var e=C0(),t=I2(),r=R2();function n(){t.apply(this);var i=this;function o(){i._mActiveNum=0,i._mProbers=[],i._mBestGuessProber=null}this.reset=function(){n.prototype.reset.apply(this),this._mActiveNum=0;for(var s=0,a;a=this._mProbers[s];s++)a&&(a.reset(),a.active=!0,this._mActiveNum++);this._mBestGuessProber=null},this.getCharsetName=function(){return!this._mBestGuessProber&&(this.getConfidence(),!this._mBestGuessProber)?null:this._mBestGuessProber.getCharsetName()},this.getSupportedCharsetNames=function(){throw new Error("Unimplemented method getSupportedCharsetNames()")},this.feed=function(s){for(var a=0,l;l=this._mProbers[a];a++)if(!(!l||!l.active)){var c=l.feed(s);if(c){if(c==e.foundIt)return this._mBestGuessProber=l,this.getState();if(c==e.notMe&&(l.active=!1,this._mActiveNum--,this._mActiveNum<=0))return this._mState=e.notMe,this.getState()}}return this.getState()},this.getConfidence=function(){var s=this.getState();if(s==e.foundIt)return .99;if(s==e.notMe)return .01;var a=0;this._mBestGuessProber=null;for(var l=0,c;c=this._mProbers[l];l++)if(c){if(!c.active){r.log(c.getCharsetName()+` not active
|
|
52
52
|
`);continue}var d=c.getConfidence();r.log(c.getCharsetName()+" confidence = "+d+`
|