1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["rr-assets/pricing-workflow-Ca5NlONS.js","rr-assets/chunk-EPOLDU6W-BgrM69u7.js","rr-assets/strings-DCMuGL4h.js","rr-assets/index-Bf7ojEpd.js","rr-assets/index-TxqeFlS5.js","rr-assets/button-B53LvASS.js","rr-assets/link-CrAZ8uHS.js","rr-assets/accordion-DcuoMw94.js","rr-assets/x-jYBp8xJg.js","rr-assets/tslib.es6-NXFPJQFY.js","rr-assets/index-Cx0208bi.js","rr-assets/popover-DtaWShY0.js","rr-assets/heart-BmBvJlTk.js","rr-assets/card-BXIxxCJc.js","rr-assets/users-hWsV9nuz.js","rr-assets/briefcase-BYsrayMB.js","rr-assets/community-DGAPqJym.js","rr-assets/community-card-DG-wPFB2.js","rr-assets/chevron-left-CjOvgc2h.js","rr-assets/chevron-right-CG9ZylOm.js","rr-assets/actionTypes-DkZ6slag.js","rr-assets/fetcher-B9B32kDq.js","rr-assets/carousel-CCkRRnuw.js","rr-assets/arrow-right-C4zsp1sY.js","rr-assets/select-DvUYb1nY.js","rr-assets/label-BXZmlKB3.js","rr-assets/index-B745hxZs.js","rr-assets/index-B1IoLzk3.js","rr-assets/autocomplete-input-dry24NgJ.js","rr-assets/input-Cs-INbIf.js","rr-assets/search-BLN-l6hs.js","rr-assets/circle-DbiWMkfA.js","rr-assets/d2c-disclosure-CArf371A.js","rr-assets/use-user-DSn0VJ_X.js","rr-assets/pricing-workflow-BfN5Yywt.css"])))=>i.map(i=>d[i]); 2let e,t;import{r as s,j as a,g as i,f as n,a as r}from"./chunk-EPOLDU6W-BgrM69u7.js";import{R as o,r as l,n as u,c as h,s as c,t as d,d as f,e as m,g as p,h as y,j as v,S as g,p as b,l as x,m as S,o as w,q as $,v as C,w as O,a as D,f as j,u as M}from"./fetcher-B9B32kDq.js";import{H as N,P as R,C as A,a as I}from"./actionTypes-DkZ6slag.js";import{c as U,a as k,g as T,L as F}from"./link-CrAZ8uHS.js";import{c as z,P as q,s as P,o as E,h as _,i as Y,j as L,X as H,k as B,z as W,l as Q,O as K,Q as V}from"./x-jYBp8xJg.js";import{d as G,b as Z,s as J,c as X,f as ee}from"./strings-DCMuGL4h.js";import{B as et,b as es}from"./button-B53LvASS.js";var ea,ei,en,er,eo,el,eu,eh,ec,ed,ef,em,ep,ey,ev,eg,eb,ex,eS,ew,e$,eC,eO,eD,ej,eM,eN=class extends o{#e;#t;#s;#a;#i;#n;#r;constructor(e){super(),this.#r=!1,this.#n=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#s=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,a=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#n,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){let s=l(this.state.data,e,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(u).catch(u):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==h(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===c||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!d(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#r?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)}
2)},i=()=>{let e=p(this.options,t),s={client:this.#a,queryKey:this.queryKey,meta:this.meta};return a(s),this.#r=!1,this.options.persister?this.options.persister(e,s,this):e(s)},n={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:i};a(n),this.options.behavior?.onFetch(n,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==n.fetchOptions?.meta)&&this.#o({type:"fetch",meta:n.fetchOptions?.meta});let r=e=>{y(e)&&e.silent||this.#o({type:"error",error:e}),y(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#i=f({initialPromise:t?.initialPromise,fn:n.fetchFn,abort:s.abort.bind(s),onSuccess:e=>{if(void 0===e)return void r(Error(`${this.queryHash} data is undefined`));try{this.setData(e)}catch(e){r(e);return}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:r,onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:n.options.retry,retryDelay:n.options.retryDelay,networkMode:n.options.networkMode,canRun:()=>!0}),this.#i.start()}#o(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...eR(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let s=e.error;return y(s)&&s.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),m.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function eR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:v(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var eA=class extends g{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#r=b(),this.options.experimental_prefetchInRender||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#s=void 0;#a=void 0;#i;#n;#r;#o;#l;#u;#h;#c;#d;#f;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),eI(this.#t,this.options)?this.#p():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eU(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eU(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#g(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof h(this.options.enabled,this.#t))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#t.setOptions(this.options),t._defaulted&&!x(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let a=this.hasListeners();a&&ek(this.#t,s,this.options,t)&&this.#p(),this.updateResult(),a&&(this.#t!==s||h(this.options.enabled,this.#t)!==h(t.enabled,this.#t)||S(this.options.staleTime,this.#t)!==S(t.staleTime,this.#t))&&this.#x();let i=this.#S();a&&(this.#t!==s||h(this.options.enabled,this.#t)!==h(t.enabled,this.#t)||i!==this.#f)&&this.#w(i)}getOptimisticResult(e){var t,s;let a=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(a,e);return t=this,s=i,x(t.getCurrentResult(),s)||(this.#a=i,this.#n=this.options,this.#i=this.#t.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),Reflect.get(e,s))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#b();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u)),t}#x(){this.#v();let e=S(this.options.staleTime,this.#t);if(w||this.#a.isStale||!$(e))return;let t=d(this.#a.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#a.isStale||this.updateResult()},t)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#w(e){this.#g(),this.#f=e,w||!1===h(this.options.enabled,this.#t)||!$(this.#f)||0===this.#f||(this.#d=setInterval(()=>
2{(this.options.refetchIntervalInBackground||C.isFocused())&&this.#p()},this.#f))}#y(){this.#x(),this.#w(this.#S())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#g(){this.#d&&(clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let s=this.#t,a=this.options,i=this.#a,n=this.#i,r=this.#n,o=e!==s?e.state:this.#s,{state:u}=e,h={...u},c=!1,d;if(t._optimisticResults){let i=this.hasListeners(),n=!i&&eI(e,t),r=i&&ek(e,s,t,a);(n||r)&&(h={...h,...eR(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:f,errorUpdatedAt:m,status:p}=h;d=h.data;let y=!1;if(void 0!==t.placeholderData&&void 0===d&&"pending"===p){let e;i?.isPlaceholderData&&t.placeholderData===r?.placeholderData?(e=i.data,y=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,void 0!==e&&(p="success",d=l(i?.data,e,t),c=!0)}if(t.select&&void 0!==d&&!y)if(i&&d===n?.data&&t.select===this.#l)d=this.#u;else try{this.#l=t.select,d=t.select(d),d=l(i?.data,d,t),this.#u=d,this.#o=null}catch(e){this.#o=e}this.#o&&(f=this.#o,d=this.#u,m=Date.now(),p="error");let v="fetching"===h.fetchStatus,g="pending"===p,x="error"===p,S=g&&v,w=void 0!==d,$={status:p,fetchStatus:h.fetchStatus,isPending:g,isSuccess:"success"===p,isError:x,isInitialLoading:S,isLoading:S,data:d,dataUpdatedAt:h.dataUpdatedAt,error:f,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>o.dataUpdateCount||h.errorUpdateCount>o.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:x&&!w,isPaused:"paused"===h.fetchStatus,isPlaceholderData:c,isRefetchError:x&&w,isStale:eT(e,t),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===$.status?e.reject($.error):void 0!==$.data&&e.resolve($.data)},a=()=>{t(this.#r=$.promise=b())},i=this.#r;switch(i.status){case"pending":e.queryHash===s.queryHash&&t(i);break;case"fulfilled":("error"===$.status||$.data!==i.value)&&a();break;case"rejected":("error"!==$.status||$.error!==i.reason)&&a()}}return $}updateResult(){let e=this.#a,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#n=this.options,void 0!==this.#i.data&&(this.#h=this.#t),x(t,e))return;this.#a=t;let s=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#m.size)return!0;let a=new Set(s??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&a.has(t))};this.#$({listeners:s()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#$(e){m.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function eI(e,t){return!1!==h(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&eU(e,t,t.refetchOnMount)}function eU(e,t,s){if(!1!==h(t.enabled,e)){let a="function"==typeof s?s(e):s;return"always"===a||!1!==a&&eT(e,t)}return!1}function ek(e,t,s,a){return(e!==t||!1===h(a.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&eT(e,s)}function eT(e,t){return!1!==h(t.enabled,e)&&e.isStaleByTime(S(t.staleTime,e))}var eF=s.createContext(!1);eF.Provider;var ez=s.createContext((e=!1,{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e})),eq=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function eP(e,t){return function(e,t,a){let i=D(),n=s.useContext(eF),r=s.useContext(ez),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=n?"isRestoring":"optimistic",(e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(o),(o.suspense||o.throwOnError||o.experimental_prefetchInRender)&&(r.isReset()||(o.retryOnMount=!1)),s.useEffect(()=>{r.clearReset()},[r]);let l=!i.getQueryCache().get(o.queryHash),[h]=s.useState(()=>new t(i,o)),c=h.getOptimisticResult(o),d=!n&&!1!==e.subscribed;if(s.useSyncExternalStore(s.useCallback(e=>{let t=d?h.subscribe(m.batchCalls(e)):u;return h.updateResult(),t},[h,d]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),s.useEffect(()=>{h.setOptions(o)},[o,h]),o?.suspense&&c.isPending)throw eq(o,h,r);if((({result:e,errorResetBoundary:t,throwOnError:s,query:a,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(i&&void 0===e.data||O(s,[e.error,a])))({result:c,errorResetBoundary:r,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!w&&c.isLoading&&c.isFetching&&!n&&(l?eq(o,h,r):i.getQueryCache().get(o.queryHash)?.promise)?.catch(u).finally(()=>{h.updateResult()}),o.notifyOnChangeProps?c:h.trackResult(c)}(e,eA)}
2var eE={exports:{}},e_={},eY="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},eL=s.useState,eH=s.useEffect,eB=s.useLayoutEffect,eW=s.useDebugValue;function eQ(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!eY(e,s)}catch{return!0}}var eK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?function(e,t){return t()}:function(e,t){var s=t(),a=eL({inst:{value:s,getSnapshot:t}}),i=a[0].inst,n=a[1];return eB(function(){i.value=s,i.getSnapshot=t,eQ(i)&&n({inst:i})},[e,s,t]),eH(function(){return eQ(i)&&n({inst:i}),e(function(){eQ(i)&&n({inst:i})})},[e]),eW(s),s};e_.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:eK,eE.exports=e_;var eV=eE.exports;function eG(){return()=>{}}var eZ="Avatar",[eJ,eX]=z(eZ),[e2,e1]=eJ(eZ),e0=s.forwardRef((e,t)=>{let{__scopeAvatar:i,...n}=e,[r,o]=s.useState("idle");return a.jsx(e2,{scope:i,imageLoadingStatus:r,onImageLoadingStatusChange:o,children:a.jsx(q.span,{...n,ref:t})})});e0.displayName=eZ;var e5="AvatarImage",e6=s.forwardRef((e,t)=>{let{__scopeAvatar:i,src:n,onLoadingStatusChange:r=()=>{},...o}=e,l=e1(e5,i),u=function(e,{referrerPolicy:t,crossOrigin:a}){let i=eV.useSyncExternalStore(eG,()=>!0,()=>!1),n=s.useRef(null),r=i?(n.current||(n.current=new window.Image),n.current):null,[o,l]=s.useState(()=>e8(r,e));return E(()=>{l(e8(r,e))},[r,e]),E(()=>{let e=e=>()=>{l(e)};if(!r)return;let s=e("loaded"),i=e("error");return r.addEventListener("load",s),r.addEventListener("error",i),t&&(r.referrerPolicy=t),"string"==typeof a&&(r.crossOrigin=a),()=>{r.removeEventListener("load",s),r.removeEventListener("error",i)}},[r,a,t]),o}(n,o),h=P(e=>{r(e),l.onImageLoadingStatusChange(e)});return E(()=>{"idle"!==u&&h(u)},[u,h]),"loaded"===u?a.jsx(q.img,{...o,ref:t,src:n}):null});e6.displayName=e5;var e3="AvatarFallback",e4=s.forwardRef((e,t)=>{let{__scopeAvatar:i,delayMs:n,...r}=e,o=e1(e3,i),[l,u]=s.useState(void 0===n);return s.useEffect(()=>{if(void 0!==n){let e=window.setTimeout(()=>u(!0),n);return()=>window.clearTimeout(e)}},[n]),l&&"loaded"!==o.imageLoadingStatus?a.jsx(q.span,{...r,ref:t}):null});function e8(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}e4.displayName=e3;let e9={},e7=function(e,t,s){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");let e=document.querySelector("meta[property=csp-nonce]"),s=e?.nonce||e?.getAttribute("nonce");a=Promise.allSettled(t.map(e=>{if((e="/"+e)in e9)return;e9[e]=!0;let t=e.endsWith(".css");if(document.querySelector(`link[href="${e}"]${t?'[rel="stylesheet"]':""}`))return;let a=document.createElement("link");if(a.rel=t?"stylesheet":"modulepreload",t||(a.as="script"),a.crossOrigin="",a.href=e,s&&a.setAttribute("nonce",s),document.head.appendChild(a),t)return new Promise((t,s)=>{a.addEventListener("load",t),a.addEventListener("error",()=>s(Error(`Unable to preload CSS for ${e}`)))})}))}function i(e){let t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return a.then(t=>{for(let e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},te=U("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),tt=U("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ts=U("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),ta=U("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);function ti({...e}){return a.jsx(_,{"data-slot":"dialog",...e})}function tn({...e}){return a.jsx(Q,{"data-slot":"dialog-portal",...e})}function tr({className:e,...t}){return a.jsx(K,{className:k("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-(--dialog-z) fixed inset-0 bg-black/50",e),"data-slot":"dialog-overlay",...t})}function to({className:e,children:t,...s}){return a.jsxs(tn,{"data-slot":"dialog-portal",children:[a.jsx(tr,{}),a.jsxs(Y,{className:k("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 z-(--dialog-z) fixed top-[50%] left-[50%] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
2ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),"data-slot":"dialog-content",...s,children:[t,a.jsxs(L,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs focus:outline-hidden [&_svg:not([class*='size-'])]:size-4 absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[a.jsx(H,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tl({className:e,...t}){return a.jsx("div",{className:k("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function tu({className:e,...t}){return a.jsx(B,{className:k("text-lg font-semibold leading-none",e),"data-slot":"dialog-title",...t})}function th({className:e,...t}){return a.jsx(W,{className:k("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}function tc(e,t){return e.slice(0,t)}function td(e){return{id:e.id,name:e.name,description:e.description,path:e.path}}function tf(e){return{queryKey:["homebase","me"],queryFn:()=>j("getHomeBase",{id:"me","filter[d2c]":"eq:true",include:["all"]}),enabled:e}}function tm({className:e,...t}){return a.jsxs("svg",{className:e,fill:"#7b40d5",viewBox:"0 0 1000 149",...t,children:[a.jsx("path",{d:"M501.886 148.31c31.336 0 51.956-17.035 51.956-43.29 0-18.84-8.895-31.867-28.505-39.483l-23.451-9.22c-13.949-5.61-19.407-10.42-19.407-18.237 0-8.418 6.267-13.83 16.981-13.83 11.833 0 18.564 5.921 19.459 17.208.111 1.393 1.375 2.456 2.763 2.213l27.306-4.78c1.218-.214 2.113-1.27 2.064-2.494C550.028 10.864 530.372 0 500.067 0c-30.729 0-52.617 16.434-52.617 41.086 0 18.238 11.982 31.265 30.985 38.28l25.473 9.82c12.736 5.011 17.184 9.42 17.184 18.038 0 9.821-6.874 15.433-19.004 15.433-13.487 0-22.057-7.605-23.042-21.16-.102-1.396-1.373-2.457-2.762-2.21l-26.974 4.808c-1.079.192-1.869 1.136-1.84 2.223.779 30.074 20.349 41.992 54.416 41.992M943.506 121.838c-7.682 0-13.545-2.205-13.545-16.435V75.595a2.27 2.27 0 0 1 2.278-2.259h17.492a2.256 2.256 0 0 0 2.266-2.246V51.331a2.256 2.256 0 0 0-2.266-2.246h-17.492a2.27 2.27 0 0 1-2.278-2.258V22.67a2.256 2.256 0 0 0-2.266-2.246h-26.4a2.256 2.256 0 0 0-2.265 2.246V46.84a2.256 2.256 0 0 1-2.266 2.246h-10.833a2.256 2.256 0 0 0-2.265 2.246V71.09a2.256 2.256 0 0 0 2.265 2.246h10.833a2.256 2.256 0 0 1 2.266 2.246v36.235c0 32.267 20.014 35.474 34.57 35.474 7.745 0 14.265-.608 18.757-1.294a2.2 2.2 0 0 0 1.864-2.184v-19.987c0-1.367-1.222-2.423-2.596-2.309-2.564.214-5.611.321-8.119.321"}),a.jsx("path",{clipRule:"evenodd",d:"M718.575 147.279c33.357 0 53.978-21.445 53.978-50.907s-20.621-50.906-53.978-50.906c-33.559 0-54.18 21.445-54.18 50.906 0 29.462 20.621 50.907 54.18 50.907m0-25.854c-14.758 0-23.249-10.422-23.249-25.053s8.491-25.052 23.249-25.052c14.556 0 23.249 10.422 23.249 25.052 0 14.631-8.693 25.053-23.249 25.053M197.033 147.395c13.545 0 25.675-6.614 30.931-16.234v11.382a2.256 2.256 0 0 0 2.266 2.246h26.198a2.255 2.255 0 0 0 2.265-2.246v-92.11a2.256 2.256 0 0 0-2.265-2.246H230.23a2.256 2.256 0 0 0-2.266 2.246v11.583c-5.256-9.82-16.375-16.434-30.526-16.434-28.303 0-46.296 22.046-46.296 50.906 0 29.061 16.78 50.907 45.891 50.907m8.896-25.454c-14.354 0-23.249-10.822-23.249-25.453s8.895-25.253 23.249-25.253c15.364 0 23.248 11.424 23.248 25.253 0 14.03-7.884 25.453-23.248 25.453"}),a.jsx("path",{d:"M298.455 144.789a2.255 2.255 0 0 0 2.265-2.246v-35.032c0-21.445 8.895-32.267 25.675-32.267 2.851 0 4.588.11 6.783.33 1.343.136 2.517-.9 2.517-2.238V49.139c0-1.03-.706-1.942-1.729-2.124-1.777-.317-3.605-.431-6.358-.431-11.928 0-23.451 7.415-26.888 21.845V50.433a2.256 2.256 0 0 0-2.265-2.246h-26.4a2.256 2.256 0 0 0-2.266 2.246v92.11a2.256 2.256 0 0 0 2.266 2.246z"}),a.jsx("path",{clipRule:"evenodd",d:"M391.162 45.582c30.325 0 50.945 18.639 50.945 45.896 0 4.354-.152 7.195-.591 11.417-.118 1.145-1.096 2.011-2.257 2.011h-69.931c.607 12.626 9.098 19.44 22.845 19.44 8.775 0 14.619-2.222 17.531-7.297.447-.779 1.248-1.321 2.151-1.321h26.186c1.392 0 2.46 1.238 2.13 2.579-4.323 17.593-23.308 29.088-47.998 29.088-33.155 0-53.574-18.639-53.574-50.907 0-31.666 20.823-50.9
206 52.563-50.906m-.202 20.643c-13.343 0-21.43 7.816-21.632 19.64h42.253c-.203-12.826-7.481-19.64-20.621-19.64"}),a.jsx("path",{d:"M845.269 130.749c-5.458 10.222-15.567 16.435-30.324 16.435-23.452 0-35.986-14.431-35.986-39.483v-57.48a2.256 2.256 0 0 1 2.266-2.245h26.804a2.256 2.256 0 0 1 2.266 2.246v50.665c0 13.227 4.447 20.442 16.173 20.442 13.14 0 18.801-8.417 18.801-21.444V50.222a2.256 2.256 0 0 1 2.266-2.246h26.197a2.256 2.256 0 0 1 2.266 2.246v92.11a2.255 2.255 0 0 1-2.266 2.246h-26.197a2.255 2.255 0 0 1-2.266-2.246zM660.793 110.46c-3.519 22.505-22.579 36.791-51.245 36.791-32.796 0-53.216-20.857-53.216-51.938s20.42-51.939 53.216-51.939c28.695 0 47.764 14.505 51.256 37.615.198 1.314-.854 2.464-2.194 2.464h-27.276c-1.044 0-1.942-.712-2.258-1.698-2.574-8.033-8.507-11.798-19.322-11.798-13.613 0-21.864 8.997-21.864 25.356 0 16.358 8.251 25.356 21.864 25.356 10.779 0 16.709-3.562 19.296-11.018.336-.966 1.224-1.66 2.254-1.66h27.3c1.342 0 2.395 1.154 2.189 2.469M75.757 148.374c40.249 0 66.723-20.676 71.59-52.23.205-1.327-.85-2.501-2.203-2.501h-30.306c-1.058 0-1.967.728-2.253 1.738-4.181 14.772-17.23 24.029-36.627 24.029-26.595 0-41.908-17.578-41.908-44.943 0-27.366 15.313-44.944 41.908-44.944 19.398 0 32.446 9.258 36.627 24.03.286 1.009 1.195 1.738 2.253 1.738h30.306c1.353 0 2.408-1.174 2.203-2.5C142.48 21.234 116.006.56 75.757.56 29.417.56 0 31.52 0 74.467s29.416 73.907 75.757 73.907"}),a.jsx("path",{clipRule:"evenodd",d:"M985.328 42.635a5.79 5.79 0 0 0 2.816-4.995c0-3.233-2.668-5.878-5.928-5.878h-6.521a1.75 1.75 0 0 0-1.779 1.764v15.28c0 1.028.741 1.763 1.779 1.763.963 0 1.778-.735 1.778-1.763v-5.29h4.372l2.89 6.098c.296.588.963.955 1.63.955.223 0 .445 0 .741-.147.89-.367 1.26-1.47.815-2.35zm-.741-4.995c0 1.322-1.112 2.35-2.371 2.35h-4.743V35.29h4.743c1.259 0 2.371 1.102 2.371 2.35"}),a.jsx("path",{clipRule:"evenodd",d:"M1000 41.166c0-10.358-8.522-18.807-18.97-18.807-10.522 0-18.97 8.449-18.97 18.807 0 10.431 8.448 18.806 18.97 18.806 10.448 0 18.97-8.375 18.97-18.806m-3.557 0c0 8.448-6.966 15.28-15.413 15.28-8.522 0-15.413-6.832-15.413-15.28 0-8.375 6.891-15.28 15.413-15.28 8.447 0 15.413 6.905 15.413 15.28"})]})}function tp({onComplete:e}){return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"flex h-full min-h-[300px] max-w-full flex-col items-center justify-center gap-3 rounded-md bg-white px-6 pb-6",children:[a.jsx(tm,{className:"h-[30px] w-[150px] md:w-[200px]"}),a.jsx("h2",{className:"font-t-m mb-2 text-center font-bold",children:"Request sent!"}),a.jsx("div",{className:"font-b-m text-center",children:"Seniorly is now part of the CareScout family. You'll be hearing from CareScout soon to help you navigate your home care search."}),a.jsx(et,{className:"mt-6 w-full ",onClick:e,children:"Finish"})]})})}function ty({className:e,...t}){return a.jsx(e0,{className:k("size-8 relative flex shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function tv({className:e,...t}){return a.jsx(e6,{className:k("size-full aspect-square",e),"data-slot":"avatar-image",...t})}function tg({className:e,...t}){return a.jsx(e4,{className:k("bg-muted size-full flex items-center justify-center rounded-full",e),"data-slot":"avatar-fallback",...t})}function tb({name:e,image:t,title:s="",subText:i,profileUrl:n}){let r=e.split(" ").map(e=>e[0]).join("");return a.jsxs("div",{className:"mb-6 flex items-center gap-4",children:[a.jsxs(ty,{className:"h-12 w-12 border",children:[!!t?.path&&a.jsx("img",{alt:t.description||t.name,className:"size-full aspect-square object-cover",loading:"eager",src:T({src:t.path,width:400})}),a.jsx(tg,{children:r})]}),a.jsxs("div",{children:[a.jsx(F,{className:"underline",to:n,children:s||e}),a.jsx("p",{className:"text-subtext font-b-s",children:i})]})]})}let tx=({phone:e,email:t})=>e&&t?a.jsxs("div",{className:"space-y-4",children:[a.jsxs("a",{className:es({variant:"link"}),href:`mailto:${t}`,children:[a.jsx(ts,{className:"h-5 w-5"}),a.jsx("span",{className:"font-medium",children:t})]}),a.jsxs("a",{className:es({variant:"link"}),href:`tel:${e}`,children:[a.jsx(ta,{className:"h-5 w-5"}),a.jsx("span",{className:"font-medium",children:G(e)})]})]}):null,tS=({heading:e,subText:t})=>a.jsxs("div",{className:"space-y-4",children:[a.jsx("h1",{className:"font-t-m",children:e}),a.jsx("p",{children:t})]}),tw=({onClose:e,partnerAgent:t})=>{let s=t?`Request sent! Your Seniorly Local Advisor, ${t.name} will get back to you with pricing information on this community.`:"Request sent! One of our Seniorly Local Advisors will reach out to assist you.",i=t?`Questions? You can contact ${t.name.split(" ")[0]} by phone or email:`:"Questions? You can contact us by phone or email:";return a.jsxs("div",{className:"mx-auto flex max-w-lg flex-col items-start space-y-8 px-6 py-8 text-center",children:[a.jsx("div",{className:"bg-green-lighter-90 mb-2 flex h-16 w-16 items-center justify-center self-center rounded-full",children:a.jsx(te,{className:"text-green-base h-8 w-8"})}),a.jsx(tS,{heading:s,subText:i}),t&&a.jsx(tb,{image:t.image,name:t.name,profileUrl:t.url,subText:"Seniorly Local Advisor"}),a.jsx(tx,{email:t?.email||"[email protected]",phone:t?.workPhone||"18775662778"}),a.jsx(et,{onClick:e,children:"Continue"})]})};function t$(e,t){let s={};return t&&t.length>0&&(s["filter[actionType]"]=t.join(",")),{queryKey:[V.UUID_ACTIONS,t||""],queryFn:()=>j("getUuidActions",s),enabled:e}}function tC(){let{userQuery:e}=Z(),{data:t,isLoading:s,refetch:a}=eP(t$(!!e.user?.id,[N]));return{isHomeCareRequested:!!t?.normalized?.length,isLoading:s,refetch:a}}let tO=e=>e?e.reduce((e,t)=>
2(t?.actionType!==R||(t?.actionInfo?.slug&&e.push(t.actionInfo.slug),t?.actionInfo?.slugs&&e.push(...t.actionInfo.slugs)),e),[]):[];function tD(){let{userQuery:e}=Z(),{data:t,isLoading:s,refetch:a}=eP(t$(!!e.user?.id,[R,A])),i=tO(t?.normalized);return{getPricingRequestedBySlug:e=>(e=>i?e.filter(e=>i.includes(e)):[])([e]).length>0,isLoadingUUIDActions:s,profileContactedSlugs:i,refetchUUIDActions:a}}let tj={memoryCare:{label:"Memory care (wandering risk, increased confusion)",value:"memory-care"},lightCare:{label:"Lifestyle management (meals, laundry, medication distribution)",value:"light-care"},heavyCare:{label:"Advanced care (bathing, dressing, transferring)",value:"heavy-care"},noCare:{label:"No specific care needs, looking for independent living",value:"no-care"}},tM={myself:{label:"Myself",value:"Myself"},selfAndPartner:{label:"Myself and my partner",value:"Self + Partner"},mother:{label:"Mother",value:"Mother"},father:{label:"Father",value:"Father"},bothParents:{label:"Both parents",value:"Parents"},someoneElse:{label:"Someone else",value:"Someone else"}},tN={myself:{label:"Myself",value:"Myself"},family:{label:"Family",value:"Family"},friend:{label:"Friend",value:"Friend"},caregiver:{label:"Caregiver",value:"Caregiver"},other:{label:"Other",value:"Someone else"}},tR=Object.values(tN).map(e=>({label:e.label,value:e.value})),tA={within30Days:{label:"Immediately",value:"Within 30 Days"},within6Months:{label:"Within 6 months",value:"30-90 Days"},beyond6Months:{label:"Beyond 6 months from now",value:"Over 180 Days"},unsure:{label:"Unsure",value:"Unsure"}},tI={under2K:{label:"<$2K",value:"<$2K",supplementalIncomeRequired:!0},twoToFiveK:{label:"$2K-$5K",value:"$2K-$5K",supplementalIncomeRequired:!1},over5K:{label:"$5K+",value:"$5K+",supplementalIncomeRequired:!1}},tU={vertrans:"Veterans' benefits",longTermCareInsurance:"Longterm care insurance",equityInHome:"Equity in a home",pensionPlan:"Pension plan",medicaid:"Medicaid",notSure:"I'm not sure",noAccess:"I don't have access to any of these benefits"},tk={hospital:{label:"In a hospital and need to move",value:"hospital"},touring:{label:"Actively touring communities",value:"touring"},startedSearching:{label:"Started searching before and have a list of communities to explore",value:"startedSearching"},researching:{label:"Generally researching to understand what is available",value:"researching"}},tT={rehab:{label:"Need to transition out of rehab/hospital",value:"rehab"},overwhelmed:{label:"I am overwhelmed with care duties and other tasks",value:"overwhelmed"},needsNotMet:{label:"I am concerned needs are not being met at home",value:"needsNotMet"},isolation:{label:"I am worried about growing isolation",value:"isolation"},other:{label:"Other",value:"other"}},tF={friendsFamily:{label:"Talking to family and friends",value:"friends-family"},faithActivity:{label:"Spiritual/faith based activity",value:"faith-activity"},physicalActivity:{label:"Walk or physical activity",value:"physical-activity"},outdoorActivity:{label:"Being outdoors",value:"outdoor-activity"},meal:{label:"A good meal",value:"meal"},tv:{label:"TV, movies or music",value:"tv"}},tz={sharedSuite:{label:"Shared Suite",value:"Shared Suite"},privateSuite:{label:"Private Suite",value:"Private Suite"},studio:{label:"Studio",value:"Studio"},oneBedroom:{label:"1 Bedroom",value:"1 Bedroom"},twoBedroom:{label:"2 Bedroom",value:"2 Bedroom"},other:{label:"Other",value:"Other"}},tq={family:{label:"Yes, other family members",value:"family"},proStaff:{label:"Yes, medical or other professional staff",value:"pro-staff"},self:{label:"No, It's just me",value:"self"}},tP={buy:"Buying a home in a senior community",rent:"Renting a home in a senior community",sell:"Selling your current home"},tE=["name","email","phone","adl","lookingFor","timing","budgetRange","budget","location"],t_=["housingOptions","consultationRequested","timing","name","email","phone"],tY=["location","lookingFor","adl","timing","budgetRange","budget","contactInfo"],tL={"memory-care":"memory-care","light-care":"independent-living","heavy-care":"assisted-living","no-care":"independent-living"},tH=["lookingFor","contactInfo","location","dateOfBirth","timing","residentContactInfo"],tB={asSoonAsPossible:{label:"Urgently - within a week",value:"Immediately"},inAMonth:{label:"In the future - within a month",value:"Within 30 Days"},inFuture:{label:"It's not urgent - I'm researching care options",value:"Unsure"}},tW=Object.values(tB).map(e=>({label:e.label,value:e.value}));var tQ={exports:{}};ea="millisecond",ei="second",en="minute",er="hour",eo="week",el="month",eu="quarter",eh="year",ec="date",ed="Invalid Date",ef=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,em=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ep=function(e,t,s){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(s)+e},(ev={})[ey="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],s=e%100;return"["+e+(t[(s-20)%10]||t[s]||t[0])+"]"}},eg=function(e){return e instanceof ew},eb=function e(t,s,a){var i;if(!t)return ey;if("string"==typeof t){var n=t.toLowerCase();ev[n]&&(i=n),s&&(ev[n]=s,i=n);var r=t.split("-");if(!i&&r.length>1)return e(r[0])}else{var o=t.name;ev[o]=t,i=o}return!a&&i&&(ey=i),i||!a&&ey},ex=function(e,t){if(eg(e))return e.clone();var s="object"==typeof t?t:{};return s.date=e,s.args=arguments,new ew(s)},(eS={s:ep,z:function(e){var t=-e.utcOffset(),s=Math.abs(t);return(t<=0?"+":"-")+ep(Math.floor(s/60),2,"0")+":"+ep(s%60,2,"0")},m:function e(t,s){if(t.date()<s.date())return-e(s,t);var a=12*(s.year()-t.year())+(s.month()-t.month()),i=t.clone().add(a,el),n=s-i<0,r=t.clone().add(a+(n?-1:1),el);return+(-(a+(s-i)/(n?i-r:r-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:el,y:eh,w:eo,d:"day",D:ec,h:er,m:en,s:ei,ms:ea,Q:eu})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=eb,eS.i=eg,eS.w=function(e,t){return ex(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},e$=(ew=function(){function e(e){this.$L=eb(e.locale,null,!0),this.parse(e)}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,s=e.utc;if(null===t)return new Date(NaN);if(eS.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(ef);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return s?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return eS},t.isValid=function(){return this.$d.toString()!==ed},t.isSame=function(e,t){var s=ex(e);return this.startOf(t)<=s&&s<=this.endOf(t)},t.isAfter=function(e,t){return ex(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<ex(e)},t.$g=function(e,t,s){return eS.u(e)?this[t]:this.set(s,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var s=this,a=!!eS.u(t)||t,i=eS.p(e),n=function(e,t){var i=eS.w(s.$u?Date.UTC(s.$y,t,e):new Date(s.$y,t,e),s);return a?i:i.endOf("day")},r=function(e,t){return eS.w(s.toDate()[e].apply(s.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},o=this.$W,l=this.$M,u=this.$D,h="set"+(this.$u?"UTC":"");switch(i){case eh:return a?n(1,0):n(31,11);case el:return a?n(1,l):n(0,l+1);case eo:var c=this.$locale().weekStart||0,d=(o<c?o+7:o)-c;return n(a?u-d:u+(6-d),l);case"day":case ec:return r(h+"Hours",0);case er:return r(h+"Minutes",1);case en:return r(h+"Seconds",2);case ei:return r(h+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var s,a=eS.p(e),i="set"+(this.$u?"UTC":""),n=((s={}).day=i+"Date",s[ec]=i+"Date",s[el]=i+"Month",s[eh]=i+"FullYear",s[er]=i+"Hours",s[en]=i+"Minutes",s[ei]=i+"Seconds",s[ea]=i+"Milliseconds",s)[a],r="day"===a?this.$D+(t-this.$W):t;if(a===el||a===eh){var o=this.clone().set(ec,1);o.$d[n](r),o.init(),this.$d=o.set(ec,Math.min(this.$D,o.daysInMonth())).$d}else n&&this.$d[n](r);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[eS.p(e)]()},t.add=function(e,t){var s,a=this;e=Number(e);var i=eS.p(t),n=function(t){var s=ex(a);return eS.w(s.date(s.date()+Math.round(t*e)),a)};if(i===el)return this.set(el,this.$M+e);if(i===eh)return this.set(eh,this.$y+e);if("day"===i)return n(1);if(i===eo)return n(7);var r=((s={})[en]=6e4,s[er]=36e5,s[ei]=1e3,s)[i]||1,o=this.$d.getTime()+e*r;return eS.w(o,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,s=this.$locale();if(!this.isValid())return s.invalidDate||ed;var a=e||"YYYY-MM-DDTHH:mm:ssZ",i=eS.z(this),n=this.$H,r=this.$m,o=this.$M,l=s.weekdays,u=s.months,h=function(e,s,i,n){return e&&(e[s]||e(t,a))||i[s].slice(0,n)},c=function(e){return eS.s(n%12||12,e,"0")},d=s.meridiem||function(e,t,s){var a=e<12?"AM":"PM";return s?a.toLowerCase():a},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:eS.s(o+1,2,"0"),MMM:h(s.monthsShort,o,u,3),MMMM:h(u,o),D:this.$D,DD:eS.s(this.$D,2,"0"),d:String(this.$W),dd:h(s.weekdaysMin,this.$W,l,2),ddd:h(s.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:eS.s(n,2,"0"),h:c(1),hh:c(2),a:d(n,r,!0),A:d(n,r,!1),m:String(r),mm:e
2S.s(r,2,"0"),s:String(this.$s),ss:eS.s(this.$s,2,"0"),SSS:eS.s(this.$ms,3,"0"),Z:i};return a.replace(em,function(e,t){return t||f[e]||i.replace(":","")})},t.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},t.diff=function(e,t,s){var a,i=eS.p(t),n=ex(e),r=(n.utcOffset()-this.utcOffset())*6e4,o=this-n,l=eS.m(this,n);return l=((a={})[eh]=l/12,a[el]=l,a[eu]=l/3,a[eo]=(o-r)/6048e5,a.day=(o-r)/864e5,a[er]=o/36e5,a[en]=o/6e4,a[ei]=o/1e3,a)[i]||o,s?l:eS.a(l)},t.daysInMonth=function(){return this.endOf(el).$D},t.$locale=function(){return ev[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var s=this.clone(),a=eb(e,t,!0);return a&&(s.$L=a),s},t.clone=function(){return eS.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}()).prototype,ex.prototype=e$,[["$ms",ea],["$s",ei],["$m",en],["$H",er],["$W","day"],["$M",el],["$y",eh],["$D",ec]].forEach(function(e){e$[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),ex.extend=function(e,t){return e.$i||(e(t,ew,ex),e.$i=!0),ex},ex.locale=eb,ex.isDayjs=eg,ex.unix=function(e){return ex(1e3*e)},ex.en=ev[ey],ex.Ls=ev,ex.p={},tQ.exports=ex;let tK=i(tQ.exports);var tV={exports:{}};eC="minute",eO=/[+-]\d\d(?::?\d\d)?/g,eD=/([+-]|\d\d)/g,tV.exports=function(e,t,s){var a=t.prototype;s.utc=function(e){var s={date:e,utc:!0,args:arguments};return new t(s)},a.utc=function(e){var t=s(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),eC):t},a.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var i=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),i.call(this,e)};var n=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else n.call(this)};var r=a.utcOffset;a.utcOffset=function(e,t){var s=this.$utils().u;if(s(e))return this.$u?0:s(this.$offset)?r.call(this):this.$offset;if("string"==typeof e&&null===(e=function(e){void 0===e&&(e="");var t=e.match(eO);if(!t)return null;var s=(""+t[0]).match(eD)||["-",0,0],a=s[0],i=60*s[1]+ +s[2];return 0===i?0:"+"===a?i:-i}(e)))return this;var a=16>=Math.abs(e)?60*e:e,i=this;if(t)return i.$offset=a,i.$u=0===e,i;if(0!==e){var n=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(a+n,eC)).$offset=a,i.$x.$localOffset=n}else i=this.utc();return i};var o=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return o.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var l=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var u=a.diff;a.diff=function(e,t,a){if(e&&this.$u===e.$u)return u.call(this,e,t,a);var i=this.local(),n=s(e).local();return u.call(i,n,t,a)}};let tG=i(tV.exports);var tZ={exports:{}};ej={year:0,month:1,day:2,hour:3,minute:4,second:5},eM={},tZ.exports=function(e,t,s){var a,i=function(e,t,s){void 0===s&&(s={});var a,i,n,r,o=new Date(e);return(void 0===(a=s)&&(a={}),(r=eM[n=t+"|"+(i=a.timeZoneName||"short")])||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),eM[n]=r),r).formatToParts(o)},n=function(e,t){for(var a=i(e,t),n=[],r=0;r<a.length;r+=1){var o=a[r],l=o.type,u=o.value,h=ej[l];h>=0&&(n[h]=parseInt(u,10))}var c=n[3],d=n[0]+"-"+n[1]+"-"+n[2]+" "+(24===c?0:c)+":"+n[4]+":"+n[5]+":000",f=+e;return(s.utc(d).valueOf()-(f-=f%1e3))/6e4},r=t.prototype;r.tz=function(e,t){void 0===e&&(e=a);
2var i=this.utcOffset(),n=this.toDate(),r=n.toLocaleString("en-US",{timeZone:e}),o=Math.round((n-new Date(r))/1e3/60),l=s(r).$set("millisecond",this.$ms).utcOffset(-(15*Math.round(n.getTimezoneOffset()/15))-o,!0);if(t){var u=l.utcOffset();l=l.add(i-u,"minute")}return l.$x.$timezone=e,l},r.offsetName=function(e){var t=this.$x.$timezone||s.tz.guess(),a=i(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return a&&a.value};var o=r.startOf;r.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return o.call(this,e,t);var a=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return o.call(a,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,i){var r=i&&t,o=i||t||a,l=n(+s(),o);if("string"!=typeof e)return s(e).tz(o);var u=function(e,t,s){var a=e-60*t*1e3,i=n(a,s);if(t===i)return[a,t];var r=n(a-=60*(i-t)*1e3,s);return i===r?[a,i]:[e-60*Math.min(i,r)*1e3,Math.max(i,r)]}(s.utc(e,r).valueOf(),l,o),h=u[0],c=u[1],d=s(h).utcOffset(c);return d.$x.$timezone=o,d},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){a=e}};let tJ=i(tZ.exports);tK.extend(tG);let tX=({day:e=1,month:t,year:s})=>tK(`${s}-${t}-${e}`,"YYYY-M-D"),t2=(e,t,s,a)=>{let i=tK(tX({month:s,year:a})).day(t);return i.month()!==s-1&&(i=i.add(1,"week")),i=i.add(e-1,"week")};tK.extend(tG),tK.extend(tJ);let t1=e=>{let t=new Date(e);return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}).format(t)};tK().add(2,"day").toDate(),tK().add(2,"month").toDate(),tK().toDate(),((e=new Date().getFullYear(),{shiftSaturdayHolidays:t=!0,shiftSundayHolidays:s=!0}={})=>{let a=[{name:"New Year's Day",date:tX({day:1,month:1,year:e})},{name:"Birthday of Martin Luther King, Jr.",date:t2(3,1,1,e)},{name:"Washington's Birthday",alsoObservedAs:"Presidents' Day",date:t2(3,1,2,e)},{name:"Memorial Day",date:((e,t,s)=>{let a=tK(tX({month:t,year:s})).daysInMonth(),i=tK(`${s}-${t}-${a}`,"YYYY-M-D").day(e);return i.month()!==t-1&&(i=i.subtract(1,"week")),i})(1,5,e)},{name:"Independence Day",date:tX({day:4,month:7,year:e})},{name:"Labor Day",date:t2(1,1,9,e)},{name:"Columbus Day",alsoObservedAs:"Indigenous Peoples' Day",date:t2(2,1,10,e)},{name:"Veterans Day",date:tX({day:11,month:11,year:e})},{name:"Thanksgiving Day",date:t2(4,4,11,e)},{name:"Christmas Day",date:tX({day:25,month:12,year:e})}];return e>2020&&a.splice(4,0,{name:"Juneteenth National Independence Day",date:tX({day:19,month:6,year:e})}),a.map(e=>{let a=tK(e.date);return 0===a.day()&&s&&(a=a.add(1,"day")),6===a.day()&&t&&(a=a.subtract(1,"day")),{name:e.name,alsoObservedAs:e.alsoObservedAs,date:a.toDate(),dateString:a.format("YYYY-MM-DD"),getFormattedDate:e=>a.format(e)}})})().map(e=>e.getFormattedDate("MM-DD-YYYY"));let t0=e=>{if(!e)return"";let t=tK(e);return t.isValid()?t.format("YYYY-MM-DD"):""};var t5=((t=t5||{}).Gwizzy="gwizzy",t.ActiveAdult="activeAdult",t.PaidAd="paidAd",t.HomeCareAdTile="homeCareAdTile",t);let t6=[J.Arizona,J.Colorado,J.Oklahoma,J.Texas,J.Maryland,J.Georgia,J.Washington,J.Nevada,J.Oregon];function t3(e,t){return e.find(e=>e.value===t)?.supplementalIncomeRequired}function t4(e){let{address:t,id:s,name:a,partnerAgents:i,propInfo:n,startingRate:r,care:o,gallery:l}=e,{city:u,state:h,latitude:c,longitude:d,timeZone:f}=t||{},{communityPhone:m}=n,p=i?.filter?.(e=>e.status>=0)?.[0],y=p?{id:p.id,name:p.name,imagePath:p?.gallery?.images?.[0]?.path||"",url:p?.info?.url}:null,v=e?.rgsAux?.rgsInfo,g=!!v?.contract_info?.isAutoReferable,b=!!v?.isD2CAdjacent,x=o&&o.includes("Active Adult Communities (55+)"),S=o?.length?o[0]:"",w=t5.Gwizzy;return x&&(w=t5.ActiveAdult),{id:s,name:a,latitude:c,longitude:d,city:u,state:h,timeZone:f||"America/Los_Angeles",partnerAgent:y,communityPhone:m,startingRate:r,isAutoReferable:g,primaryToc:S,conversionSchemaType:w,isDisclosureEnabled:g&&t6.includes(h),care:o,imagePath:l?.images?.[0]?.path||"",managementCompany:n?.managementCompany,isD2CAdjacent:!!b,zip:t?.zip}}function t8(e){if(!e)return[];let t=e?.client||{},s=t?.communitiesInterested||[],a=t?.uuidAux?.uuidInfo?.referralInfo?.referredCommunitySlugs||[];return s.filter(e=>
2a.includes(e?.id))}let t9=(e,t)=>Math.round(t/(e-1)*100),t7=(e,t)=>[e,t].filter(Boolean).join(" "),se=e=>e===tM.myself.value||e===tM.selfAndPartner.value,st=e=>{let t=null;if(e.residentName){let s=ee(e.residentName);t={firstName:s.firstName,lastName:s.lastName}}else e.lookingFor&&se(e.lookingFor)&&(t={firstName:e.firstName,lastName:e.lastName});return t},ss=e=>{let t=st({residentName:e.residentName,firstName:e.firstName,lastName:e.lastName,lookingFor:e.lookingFor}),s=e.lookingFor&&se(e.lookingFor),a=s?e.phone:e.residentPhone;return{...t,email:s?e.email:e.residentEmail,phone:a?X(a):null,dateOfBirth:t0(e.dateOfBirth)||void 0}},sa=e=>"yes"===e||"no"!==e&&null,si=s.lazy(()=>e7(()=>import("./pricing-workflow-Ca5NlONS.js").then(e=>e.p),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])).then(e=>({default:e.PricingWorkflow}))),sn=s.createContext({isShowingPricingWizard:!1,hideCta:()=>{},showCta:(e,t)=>{}}),sr=({children:e})=>{let[t,i]=n(),[o,l]=s.useState(null),u=t.get("cta"),h=r(),{type:c,cSlug:d,leadSource:f,schema:m}=(u?JSON.parse(decodeURIComponent(u)):null)||{},{userQuery:p}=Z(),{data:y,isLoading:v}=eP(tf(!!p.user?.id)),{data:g,isLoading:b}=eP({queryKey:["community",d],queryFn:()=>j("getCommunityNew",{id:d||"",include:["all"]}),enabled:!!d}),{mutateAsync:x}=M({mutationFn:e=>j("createUuidAction",void 0,{body:{type:"UUIDAction",actionType:R,actionPage:h.pathname,actionInfo:{contactType:I,slug:e}}}),onSuccess:async()=>{}}),{refetchUUIDActions:S}=tD(),{isHomeCareRequested:w}=tC(),$=g?.normalized,C=$?t4($):null,O=async(e,t)=>{let s=encodeURIComponent(JSON.stringify({type:e,cSlug:t.communitySlug,medium:t.medium,channel:t.channel,leadSource:t.leadSource,schema:t.schema}));i(e=>(e.set("cta",s),e),{preventScrollReset:!0})},D=()=>{i(e=>(e.delete("cta"),e),{preventScrollReset:!0})},N="get_pricing"===c,A="home_care_ad_tile"===c,U=N||A;s.useEffect(()=>{(async()=>{if(N){let e=(await S())?.data?.normalized||[],t=e?.length>0;if(tO(e)?.includes?.(d))l("pricing-requested");else if(t){try{d&&await x(d),l("pricing-requested");return}catch(e){l("pricing-workflow")}l("pricing-requested");return}else l("pricing-workflow")}else A&&l(w?"home-care-ad-tile-requested":"home-care-ad-tile-workflow")})()},[d,c,N,A,x,S]);let T=a.jsx("div",{className:"flex h-full min-h-[50vh] items-center justify-center",children:a.jsx(tt,{className:"text-primary h-10 w-10 animate-spin"})});return a.jsxs(sn.Provider,{value:{isShowingPricingWizard:N,hideCta:D,showCta:O},children:[a.jsx(ti,{open:U,onOpenChange:D,children:a.jsxs(to,{className:" px-0 py-0",children:[a.jsx(tu,{className:"sr-only",children:"Get connected"}),b?T:"pricing-workflow"===o?a.jsx(s.Suspense,{fallback:T,children:a.jsxs("div",{className:"flex h-full flex-col justify-start",children:[a.jsx("div",{className:"border-accent h-15 flex justify-end border-b py-2 px-2"}),a.jsx("div",{className:k("scrollbar-hide flex-1 overflow-y-auto rounded-b-lg","max-h-[80vh] min-h-[min(80vh,600px)]"),children:a.jsx(si,{formSchemaTypeOverride:m,gwizzyCommunity:C,mode:{leadSource:f},onClose:D})})]})}):"pricing-requested"===o?a.jsxs("div",{className:"flex h-full flex-col justify-start",children:[a.jsx("div",{className:"border-accent h-15 flex justify-end border-b py-2 px-2"}),a.jsx("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-b-lg",children:a.jsx(tw,{partnerAgent:y?.normalized?.agent?function(e){let t=e.info.displayName||e.name||"",s=e.gallery?.images?.[0],a=s?td(s):void 0,i=e.info.url||"";return{name:t,image:a,url:i,workPhone:e.info.workPhone||"",email:e.info.email||""}}(y.normalized.agent):null,onClose:D})})]}):"home-care-ad-tile-workflow"===o?a.jsx(s.Suspense,{fallback:T,children:a.jsxs("div",{className:"flex h-full flex-col justify-start",children:[a.jsx("div",{className:"border-accent h-15 flex justify-end border-b py-2 px-2"}),a.jsx("div",{className:k("scrollbar-hide flex-1 overflow-y-auto rounded-b-lg","max-h-[80vh] min-h-[min(80vh,600px)]"),children:a.jsx(si,{formSchemaTypeOverride:m,gwizzyCommunity:C,mode:{leadSource:f},onClose:D})})]})}):"home-care-ad-tile-requested"===o?a.jsxs("div",{className:"flex h-full flex-col justify-start",children:[a.jsx("div",{className:"border-accent h-15 flex justify-end border-b py-2 px-2"}),a.jsx("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-b-lg",children:a.jsx(tp,{onComplete:D})})]}):null]})}),e]})},so=()=>{let e=s.useContext(sn);if(!e)throw Error("useGwizzy must be used within a GwizzyProvider");return e};export{tf as $,tb as A,tU as B,te as C,ti as D,t7 as E,t9 as F,sr as G,tp as H,st as I,sa as J,t3 as K,tt as L,se as M,tE as N,ss as O,t0 as P,eN as Q,tH as R,tY as S,tA as T,tq as U,t_ as V,tz as W,tF as X,tT as Y,tk as Z,e7 as _,tc as a,tD as a0,tL as a1,t8 as a2,so as b,tC as c,t5 as d,to as e,t1 as f,td as g,tl as h,tu as i,th as j,t6 as k,ty as l,tv as m,tg as n,tR as o,tN as p,tM as q,tW as r,eV as s,t4 as t,eP as u,tK as v,tI as w,tj as x,tB as y,tP as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.