1import{r as v,j as t,e as cn,b as Ss,L as Le}from"./vendor-framework-CobW1Mgl.js";import{c as bt,j as ie,b as U,ax as Nt,E as ln,N as vt,n as L,c2 as Cs,a0 as Pe,a1 as ft,S as dn,eq as _s,fg as ws,a2 as Ts,fh as Es,fi as Ds,a as k,B as ae,a_ as Kt,K as mt,cC as yt,aa as T,k as Se,A as re,fj as Rs,dz as ks,O as ue,fk as Ne,p as Ue,fl as Qe,w as ye,D as Xe,q as un,r as fn,s as mn,M as me,fm as R,cp as Is,ao as Os,ap as As,G as Ls,dv as Ps,dq as Ms,h as jt,aI as Vs,bE as pn,fn as Fs,b4 as xn,fo as Us,fp as $s,fq as at,bo as qt,dF as Gs,aS as Bs,v as zs,f4 as Hs,f3 as Wt,bd as Ks,f5 as qs,T as hn,bN as it,bP as ct,bO as Ws,fr as Ys}from"./index-Bvuwlx66.js";import{P as Qs}from"./PalmIcon-Cj1tZKGf.js";import{r as lt,R as Xs,a as Zs,L as gn,b as Js}from"./tenantImages-yLTx7JKx.js";import bn from"./index-6weF74gT.js";import{C as er}from"./chevron-left-DLP0viCQ.js";import{C as tr}from"./chevron-right-wL8vgBWM.js";import{U as Yt}from"./users-CFiJs8mw.js";import{M as ze,B as nr,p as ve,b as sr,f as rr}from"./ResourceCard-C4rD5iqt.js";import{D as Qt}from"./dollar-sign-Cg435nli.js";import{M as pt}from"./map-pin-CWo1-heI.js";import{C as or,u as ar,b as ke,o as ir}from"./resources-D9fBCCjf.js";import{s as De}from"./statisticsService-Bxg1HgL0.js";import{A as cr}from"./index-C6c6NbDo.js";import{u as $e}from"./useAnalytics-DBdTbNUs.js";import{u as lr}from"./useBookingModal-DFK8PxLf.js";import{A as dr,s as xt}from"./placeholder_image-BM6crEL2.js";import{f as ur}from"./formatMinutes-D9VJJTTM.js";import{L as fr}from"./LoanAvatarIcon-C188zQ7g.js";import{u as mr}from"./useTenantColors-cVBKpYto.js";import{u as Nn,F as pr}from"./index-HuLNAaIh.js";import{g as xr}from"./learningPathLabels-DdICXrGx.js";import{C as hr}from"./checkbox-CzQbL9nB.js";import{C as gr}from"./calendar-Bn8V5jkZ.js";import{E as br}from"./index-BJrz7T4f.js";import{t as vn,a as yn,b as jn,c as Sn,d as Cn,e as _n,f as wn,g as Tn,h as Nr}from"./helpers-D3TCn-fX.js";import{S as vr}from"./SkeletonOrganizationCard-Dq5QArbM.js";import{T as yr,a as jr,b as Sr}from"./tabs-DpFNx6Hk.js";import{R as X,g as Cr}from"./getResourceFilterTabs-D880Lgdv.js";import{r as _r}from"./vendor-utils-CAEY8Ghx.js";import"./vendor-i18n-B6HYivoC.js";import"./vendor-firebase-Bl-igiUH.js";import"./vendor-state-DA1MgQuN.js";import"./learningPathService-75qIRg7_.js";import"./check-Dbs5OT7O.js";import"./dropdown-menu-D3JIZTd8.js";import"./index-BkggZPD_.js";import"./input-F61W3crk.js";import"./index-mUtWdr7Q.js";import"./Pagination-DhF4Q1fA.js";import"./useGridPagination-4ka-1Lrh.js";import"./advisor-DnR5anPB.js";import"./react-cropper.es-JjweNXui.js";import"./ErrorIcon-CCs7QBp8.js";import"./dialog-D5CF263n.js";import"./useScopedCopy-CUxxhPmk.js";import"./events-FnU0kxGV.js";import"./index-6wuqKTJN.js";import"./index-sAm_75Y9.js";import"./showTopToast-CvP2cqfL.js";import"./chunk-XY4YRZCG-KJMWJKs3.js";import"./ResourceCardChip-DLSjADJ7.js";import"./skippablePages-6OLbWq9N.js";import"./DatePickerCustom-mzgHwYVC.js";import"./InputMask-DZ-rycHr.js";import"./VideoIcon-BpZEx5FV.js";import"./utils-BEv39Yfq.js";import"./advisorSession-BAaortgj.js";import"./useRateSessionModal-DQ1pbTK1.js";import"./Breakline-BBy4lkIz.js";import"./index-B4nDhKdA.js";import"./DollarIcon-BDPqTZJl.js";import"./TabsFilter-BMVAaWCm.js";import"./index-Cjuk35ZM.js";import"./index-DBcCQlBG.js";import"./index-BGvRBIm2.js";/** 2 * @license lucide-react v0.544.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const wr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Xt=bt("globe",wr);/** 7 * @license lucide-react v0.544.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Tr=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Er=bt("settings",Tr);/** 12 * @license lucide-react v0.544.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree.
16 */const Dr=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],En=bt("tag",Dr),Rr=({className:e})=>t.jsxs("svg",{className:e,width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M24.5 8L8.5 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8.5 8L24.5 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),kr=v.memo(Rr),Ir=()=>{const{t:e}=ie(),[n,s]=v.useState(sessionStorage.getItem("isSurveyClosed")),r=U(Nt),o=U(ln);v.useEffect(()=>{const i=()=>{s(sessionStorage.getItem("isSurveyClosed"))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[]);const c=()=>{sessionStorage.setItem("isSurveyClosed","closed"),s("closed")};return!n&&(r!=null&&r.id)&&o?t.jsx(vt,{value:"survey_modal",children:t.jsx("div",{className:"survey__modal",children:t.jsxs("div",{className:"survey__modal_wrapper",children:[t.jsx("div",{className:"close_btn",onClick:c,children:t.jsx(kr,{className:"close_btn__icon"})}),t.jsx("p",{className:"survey__modal__text",children:t.jsx(L,{k:"common.survey_greeting",components:[t.jsx(Qs,{className:"icon"},"0")]})}),t.jsx("p",{className:"survey__modal__text",children:t.jsx(L,{k:"common.survey_text"})}),t.jsx("a",{className:"survey__modal__btn",href:e("common.survey_url"),target:"_blank",rel:"noopener noreferrer",onClick:c,children:t.jsx(L,{k:"common.survey_btn"})},"support")]})})}):null},Or=v.memo(Ir),Ar=({documentsUpdatedList:e})=>{const n=v.useMemo(()=>{const s=e.map(r=>t.jsx(Cs,{documentType:r.type,openInNewTab:!0},r.id));return s.length===1?s[0]:t.jsx(L,{k:`common.list_with_and_at_the_end_${s.length}`,components:s})},[e]);return t.jsx("div",{className:"text",children:t.jsx(L,{k:"common.tenant_legal_documents_updated",components:[n]})})},Lr=v.memo(Ar),Pr=({documentsUpdatedList:e})=>{const n=Pe({query:`(max-width: ${ft}px)`}),s=dn(),r=U(_s),[o,c]=v.useState(!1),i=v.useMemo(()=>e.map(a=>a.id),[e]),l=v.useCallback(async()=>{try{await s(ws(i)).unwrap(),c(!0)}catch{}},[s,i]);return o?null:t.jsx(vt,{value:"legal_documents_updated_popup",children:t.jsx("div",{className:"prompt_window",children:t.jsxs("div",{className:"prompt_window_wrapper",children:[n&&t.jsx("hr",{className:"prompt-phone-upper-line"}),t.jsx(Lr,{documentsUpdatedList:e}),t.jsx(Ts,{value:t.jsx(L,{k:"common.okay_got_it"}),type:"btn",btnLook:"filled",isLoading:r,disabled:r,onClick:l,size:n?"small":"medium"})]})})})},Mr=v.memo(Pr),Vr=()=>{const e=U(Es),n=U(Ds);return v.useMemo(()=>{var o;if(!e||!n)return[];const r=[];for(const[c,i]of Object.entries(e)){const l=n[c],a=l.version,d=(o=i==null?void 0:i.tenantLegalDocument)==null?void 0:o.version;a!==d&&r.push(l)}return r},[e,n])};function Fr(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zt(e){return Fr(e)||Array.isArray(e)}function Ur(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function St(e,n){const s=Object.keys(e),r=Object.keys(n);if(s.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),c=JSON.stringify(Object.keys(n.breakpoints||{}));return o!==c?!1:s.every(i=>{const l=e[i],a=n[i];return typeof l=="function"?`${l}`==`${a}`:!Zt(l)||!Zt(a)?l===a:St(l,a)})}function Jt(e){return e.concat().sort((n,s)=>n.name>s.name?1:-1).map(n=>n.options)}function $r(e,n){if(e.length!==n.length)return!1;const s=Jt(e),r=Jt(n);return s.every((o,c)=>{const i=r[c];return St(o,i)})}function Ct(e){return typeof e=="number"}function ht(e){return typeof e=="string"}function Ze(e){return typeof e=="boolean"}function en(e){return Object.prototype.toString.call(e)==="[object Object]"}function V(e){return Math.abs(e)}function _t(e){return Math.sign(e)}function Ae(e,n){return V(e-n)}function Gr(e,n){if(e===0||n===0||V(e)<=V(n))return 0;const s=Ae(V(e),V(n));return V(s/e)}function Br(e){return Math.round(e*100)/100}function Me(e){return Ve(e).map(Number)}function oe(e){return e[Ge(e)]}function Ge(e){return Math.max(0,e.length-1)}function wt(e,n){return n===Ge(e)}function tn(e,n=0){return Array.from(Array(e),(s,r)=>n+r)}function Ve(e){return Object.keys(e)}function Dn(e,n){return[e,n].reduce((s,r)=>(Ve(r).forEach(o=>{const c=s[o],i=r[o],l=en(c)&&en(i);s[o]=l?Dn(c,i):i}),s),{})}function gt(e,n){return typeof n.MouseEvent<"u"&&e instanceof n.MouseEvent}function zr(e,n){const s={start:r,center:o,end:c};function r(){return 0}function o(a){return c(a)/2}function c(a){return n-a}function i(a,d){return ht(e)?s[e](a):e(n,a,d)}return{measure:i}}function Fe(){let e=[];function n(o,c,i,l={passive:!0}){let a;if("addEventListener"in o)o.addEventListener(c,i,l),a=()=>o.removeEventListener(c,i,l);else{const d=o;d.addListener(i),a=()=>d.removeListener(i)}return e.push(a),r}function s(){e=e.filter(o=>o())}const r={add:n,clear:s};return r}function Hr(e,n,s,r){const o=Fe(),c=1e3/60;let i=null,l=0,a=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&g()})}function x(){y(),o.clear()}function u(h){if(!a)return;
vendor: 14,535 bytes, line 16
16i||(i=h,s(),s());const f=h-i;for(i=h,l+=f;l>=c;)s(),l-=c;const p=l/c;r(p),a&&(a=n.requestAnimationFrame(u))}function b(){a||(a=n.requestAnimationFrame(u))}function y(){n.cancelAnimationFrame(a),i=null,l=0,a=0}function g(){i=null,l=0}return{init:d,destroy:x,start:b,stop:y,update:s,render:r}}function Kr(e,n){const s=n==="rtl",r=e==="y",o=r?"y":"x",c=r?"x":"y",i=!r&&s?-1:1,l=x(),a=u();function d(g){const{height:m,width:h}=g;return r?m:h}function x(){return r?"top":s?"right":"left"}function u(){return r?"bottom":s?"left":"right"}function b(g){return g*i}return{scroll:o,cross:c,startEdge:l,endEdge:a,measureSize:d,direction:b}}function je(e=0,n=0){const s=V(e-n);function r(d){return d<e}function o(d){return d>n}function c(d){return r(d)||o(d)}function i(d){return c(d)?r(d)?e:n:d}function l(d){return s?d-s*Math.ceil((d-n)/s):d}return{length:s,max:n,min:e,constrain:i,reachedAny:c,reachedMax:o,reachedMin:r,removeOffset:l}}function Rn(e,n,s){const{constrain:r}=je(0,e),o=e+1;let c=i(n);function i(b){return s?V((o+b)%o):r(b)}function l(){return c}function a(b){return c=i(b),u}function d(b){return x().set(l()+b)}function x(){return Rn(e,l(),s)}const u={get:l,set:a,add:d,clone:x};return u}function qr(e,n,s,r,o,c,i,l,a,d,x,u,b,y,g,m,h,f,p){const{cross:N,direction:j}=e,C=["INPUT","SELECT","TEXTAREA"],E={passive:!1},w=Fe(),D=Fe(),_=je(50,225).constrain(y.measure(20)),A={mouse:300,touch:400},I={mouse:500,touch:600},F=g?43:25;let B=!1,O=0,G=0,q=!1,z=!1,W=!1,Z=!1;function J(S){if(!p)return;function P(K){(Ze(p)||p(S,K))&&Ce(K)}const $=n;w.add($,"dragstart",K=>K.preventDefault(),E).add($,"touchmove",()=>{},E).add($,"touchend",()=>{}).add($,"touchstart",P).add($,"mousedown",P).add($,"touchcancel",H).add($,"contextmenu",H).add($,"click",le,!0)}function Y(){w.clear(),D.clear()}function te(){const S=Z?s:n;D.add(S,"touchmove",Q,E).add(S,"touchend",H).add(S,"mousemove",Q,E).add(S,"mouseup",H)}function ne(S){const P=S.nodeName||"";return C.includes(P)}function se(){return(g?I:A)[Z?"mouse":"touch"]}function pe(S,P){const $=u.add(_t(S)*-1),K=x.byDistance(S,!g).distance;return g||V(S)<_?K:h&&P?K*.5:x.byIndex($.get(),0).distance}function Ce(S){const P=gt(S,r);Z=P,W=g&&P&&!S.buttons&&B,B=Ae(o.get(),i.get())>=2,!(P&&S.button!==0)&&(ne(S.target)||(q=!0,c.pointerDown(S),d.useFriction(0).useDuration(0),o.set(i),te(),O=c.readPoint(S),G=c.readPoint(S,N),b.emit("pointerDown")))}function Q(S){if(!gt(S,r)&&S.touches.length>=2)return H(S);const $=c.readPoint(S),K=c.readPoint(S,N),ce=Ae($,O),de=Ae(K,G);if(!z&&!Z&&(!S.cancelable||(z=ce>de,!z)))return H(S);const xe=c.pointerMove(S);ce>m&&(W=!0),d.useFriction(.3).useDuration(.75),l.start(),o.add(j(xe)),S.preventDefault()}function H(S){const $=x.byDistance(0,!1).index!==u.get(),K=c.pointerUp(S)*se(),ce=pe(j(K),$),de=Gr(K,ce),xe=F-10*de,fe=f+de/50;z=!1,q=!1,D.clear(),d.useDuration(xe).useFriction(fe),a.distance(ce,!g),Z=!1,b.emit("pointerUp")}function le(S){W&&(S.stopPropagation(),S.preventDefault(),W=!1)}function ee(){return q}return{init:J,destroy:Y,pointerDown:ee}}function Wr(e,n){let r,o;function c(u){return u.timeStamp}function i(u,b){const g=`client${(b||e.scroll)==="x"?"X":"Y"}`;return(gt(u,n)?u:u.touches[0])[g]}function l(u){return r=u,o=u,i(u)}function a(u){const b=i(u)-i(o),y=c(u)-c(r)>170;return o=u,y&&(r=u),b}function d(u){if(!r||!o)return 0;const b=i(o)-i(r),y=c(u)-c(r),g=c(u)-c(o)>170,m=b/y;return y&&!g&&V(m)>.1?m:0}return{pointerDown:l,pointerMove:a,pointerUp:d,readPoint:i}}function Yr(){function e(s){const{offsetTop:r,offsetLeft:o,offsetWidth:c,offsetHeight:i}=s;return{top:r,right:o+c,bottom:r+i,left:o,width:c,height:i}}return{measure:e}}function Qr(e){function n(r){return e*(r/100)}return{measure:n}}function Xr(e,n,s,r,o,c,i){const l=[e].concat(r);let a,d,x=[],u=!1;function b(h){return o.measureSize(i.measure(h))}function y(h){if(!c)return;d=b(e),x=r.map(b);function f(p){for(const N of p){if(u)return;const j=N.target===e,C=r.indexOf(N.target),E=j?d:x[C],w=b(j?e:r[C]);if(V(w-E)>=.5){h.reInit(),n.emit("resize");break}}}a=new ResizeObserver(p=>{(Ze(c)||c(h,p))&&f(p)}),s.requestAnimationFrame(()=>{l.forEach(p=>a.observe(p))})}function g(){u=!0,a&&a.disconnect()}return{init:y,destroy:g}}function Zr(e,n,s,r,o,c){let i=0,l=0,a=o,d=c,x=e.get(),u=0;function b(){const E=r.get()-e.get(),w=!a;let D=0;return w?(i=0,s.set(r),e.set(r),D=E):(s.set(e),i+=E/a,i*=d,x+=i,e.add(i),D=x-u),l=_t(D),u=x,C}function y(){const E=r.get()-n.get();return V(E)<.001}function g(){return a}function m(){return l}function h(){return i}function f(){return N(o)}function p(){return j(c)}function N(E){return a=E,C}function j(E){return d=E,C}const C={direction:m,duration:g,velocity:h,seek:b,settled:y,useBaseFriction:p,useBaseDuration:f,useFriction:j,useDuration:N};return C}function Jr(e,n,s,r,o){const c=o.measure(10),i=o.measure(50),l=je(.1,.99);let a=!1;function d(){return!(a||!e.reachedAny(s.get())||!e.reachedAny(n.get()))}function x(y){if(!d())return;const g=e.reachedMin(n.get())?"min":"max",m=V(e[g]-n.get()),h=s.get()-n.get(),f=l.constrain(m/i);s.subtract(h*f),!y&&V(h)<c&&(s.set(e.constrain(s.get())),r.useDuration(25).useBaseFriction())}function u(y){a=!y}return{shouldConstrain:d,constrain:x,toggleActive:u}}function eo(e,n,s,r,o){const c=je(-n+e,0),i=u(),l=x(),a=b();function d(g,m){return Ae(g,m)<=1}function x(){const g=i[0],m=oe(i),h=i.lastIndexOf(g),f=i.indexOf(m)+1;return je(h,f)}function u(){return s.map((g,m)=>{const{min:h,max:f}=c,p=c.constrain(g),N=!m,j=wt(s,m);return N?f:j||d(h,p)?h:d(f,p)?f:p}).map(g=>parseFloat(g.toFixed(3)))}function b(){if(n<=e+o)return[c.max];if(r==="keepSnaps")return i;const{min:g,max:m}=l;return i.slice(g,m)}return{snapsContained:a,scrollContainLimit:l}}function to(e,n,s){const r=n[0],o=s?r-e:oe(n);return{limit:je(o,r)}}function no(e,n,s,r){const c=n.min+.1,i=n.max+.1,{reachedMin:l,reachedMax:a}=je(c,i);function d(b){return b===1?a(s.get()):b===-1?l(s.get()):!1}function x(b){if(!d(b))return;const y=e*(b*-1);r.forEach(g=>g.add(y))}return{loop:x}}function so(e){const{max:n,length:s}=e;function r(c){const i=c-n;return s?i/-s:0}return{get:r}}function ro(e,n,s,r,o){const{startEdge:c,endEdge:i}=e,{groupSlides:l}=o,a=u().map(n.measure),d=b(),x=y();function u(){return l(r).map(m=>oe(m)[i]-m[0][c]).map(V)}function b(){return r.map(m=>s[c]-m[c]).map(m=>-V(m))}function y(){return l(d).map(m=>m[0]).map((m,h)=>m+a[h])}return{snaps:d,snapsAligned:x}}function oo(e,n,s,r,o,c){const{groupSlides:i}=o,{min:l,max:a}=r,d=x();function x(){const b=i(c),y=!e||n==="keepSnaps";return s.length===1?[c]:y?b:b.slice(l,a).map((g,m,h)=>{const f=!m,p=wt(h,m);if(f){const N=oe(h[0])+1;return tn(N)}if(p){const N=Ge(c)-oe(h)[0]+1;return tn(N,oe(h)[0])}return g})}return{slideRegistry:d}}function ao(e,n,s,r,o){const{reachedAny:c,removeOffset:i,constrain:l}=r;function a(g){return g.concat().sort((m,h)=>V(m)-V(h))[0]}function d(g){const m=e?i(g):l(g),h=n.map((p,N)=>({diff:x(p-m,0),index:N})).sort((p,N)=>V(p.diff)-V(N.diff)),{index:f}=h[0];return{index:f,distance:m}}function x(g,m){const h=[g,g+s,g-s];if(!e)return g;if(!m)return a(h);const f=h.filter(p=>_t(p)===m);return f.length?a(f):oe(h)-s}function u(g,m){const h=n[g]-o.get(),f=x(h,m);return{index:g,distance:f}}function b(g,m){const h=o.get()+g,{index:f,distance:p}=d(h),N=!e&&c(h);if(!m||N)return{index:f,distance:g};const j=n[f]-p,C=g+x(j,0);return{index:f,distance:C}}return{byDistance:b,byIndex:u,shortcut:x}}function io(e,n,s,r,o,c,i){function l(u){const b=u.distance,y=u.index!==n.get();c.add(b),b&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),y&&(s.set(n.get()),n.set(u.index),i.emit("select"))}function a(u,b){const y=o.byDistance(u,b);l(y)}function d(u,b){const y=n.clone().set(u),g=o.byIndex(y.get(),b);l(g)}return{distance:a,index:d}}function co(e,n,s,r,o,c,i,l){const a={passive:!0,capture:!0};let d=0;function x(y){if(!l)return;function g(m){if(new Date().getTime()-d>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const p=s.findIndex(N=>N.includes(m));Ct(p)&&(o.useDuration(0),r.index(p,0),i.emit("slideFocus"))}c.add(document,"keydown",u,!1),n.forEach((m,h)=>{c.add(m,"focus",f=>{(Ze(l)||l(y,f))&&g(h)},a)})}function u(y){y.code==="Tab"&&(d=new Date().getTime())}return{init:x}}function Ie(e){let n=e;function s(){return n}function r(a){n=i(a)}function o(a){n+=i(a)}function c(a){n-=i(a)}function i(a){return Ct(a)?a:a.get()}return{get:s,set:r,add:o,subtract:c}}function kn(e,n){const s=e.scroll==="x"?i:l,r=n.style;let o=null,c=!1;function i(b){return`translate3d(${b}px,0px,0px)`}function l(b){return`translate3d(0px,${b}px,0px)`}function a(b){if(c)return;const y=Br(e.direction(b));y!==o&&(r.transform=s(y),o=y)}function d(b){c=!b}function x(){c||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:x,to:a,toggleActive:d}}function lo(e,n,s,r,o,c,i,l,a){const x=Me(o),u=Me(o).reverse(),b=f().concat(p());function y(w,D){return w.reduce((_,A)=>_-o[A],D)}function g(w,D){return w.reduce((_,A)=>y(_,D)>0?_.concat([A]):_,[])}function m(w){return c.map((D,_)=>({start:D-r[_]+.5+w,end:D+n-.5+w}))}function h(w,D,_){const A=m(D);return w.map(I=>{const F=_?0:-s,B=_?s:0,O=_?"end":"start",G=A[I][O];return{index:I,loopPoint:G,slideLocation:Ie(-1),translate:kn(e,a[I]),target:()=>l.get()>G?F:B}})}function f(){const w=i[0],D=g(u,w);return h(D,s,!1)}function p(){const w=n-i[0]-1,D=g(x,w);return h(D,-s,!0)}function N(){return b.every(({index:w})=>{const D=x.filter(_=>_!==w);return y(D,n)<=.1})}function j(){b.forEach(w=>{const{target:D,translate:_,slideLocation:A}=w,I=D();I!==A.get()&&(_.to(I),A.set(I))})}function C(){b.forEach(w=>w.translate.clear())}return{canLoop:N,clear:C,loop:j,loopPoints:b}}function uo(e,n,s){let r,o=!1;function c(a){if(!s)return;function d(x){for(const u of x)if(u.type==="childList"){a.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(x=>{o||(Ze(s)||s(a,x))&&d(x)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),o=!0}return{init:c,destroy:i}}function fo(e,n,s,r){const o={};let c=null,i=null,l,a=!1;function d(){l=new IntersectionObserver(g=>{a||(g.forEach(m=>{const h=n.indexOf(m.target);o[h]=m}),c=null,i=null,s.emit("slidesInView"))},{root:e.parentElement,threshold:r}),n.forEach(g=>l.observe(g))}function x(){l&&l.disconnect(),a=!0}function u(g){return Ve(o).reduce((m,h)=>{const f=parseInt(h),{isIntersecting:p}=o[f];return(g&&p||!g&&!p)&&m.push(f),m},[])}function b(g=!0){if(g&&c)return c;if(!g&&i)return i;const m=u(g);return g&&(c=m),g||(i=m),m}return{init:d,destroy:x,get:b}}function mo(e,n,s,r,o,c){const{measureSize:i,startEdge:l,endEdge:a}=e,d=s[0]&&o,x=g(),u=m(),b=s.map(i),y=h();function g(){if(!d)return 0;const p=s[0];return V(n[l]-p[l])}function m(){if(!d)return 0;const p=c.getComputedStyle(oe(r));return parseFloat(p.getPropertyValue(`margin-${a}`))}function h(){return s.map((p,N,j)=>{const C=!N,E=wt(j,N);return C?b[N]+x:E?b[N]+u:j[N+1][l]-p[l]}).map(V)}return{slideSizes:b,slideSizesWithGaps:y,startGap:x,endGap:u}}function po(e,n,s,r,o,c,i,l,a){const{startEdge:d,endEdge:x,direction:u}=e,b=Ct(s);function y(f,p){return Me(f).filter(N=>N%p===0).map(N=>f.slice(N,N+p))}function g(f){return f.length?Me(f).reduce((p,N,j)=>{const C=oe(p)||0,E=C===0,w=N===Ge(f),D=o[d]-c[C][d],_=o[d]-c[N][x],A=!r&&E?u(i):0,I=!r&&w?u(l):0,F=V(_-I-(D+A));return j&&F>n+a&&p.push(N),w&&p.push(f.length),p},[]).map((p,N,j)=>{const C=Math.max(j[N-1]||0);return f.slice(C,p)}):[]}function m(f){return b?y(f,s):g(f)}return{groupSlides:m}}function xo(e,n,s,r,o,c,i){const{align:l,axis:a,direction:d,startIndex:x,loop:u,duration:b,dragFree:y,dragThreshold:g,inViewThreshold:m,slidesToScroll:h,skipSnaps:f,containScroll:p,watchResize:N,watchSlides:j,watchDrag:C,watchFocus:E}=c,w=2,D=Yr(),_=D.measure(n),A=s.map(D.measure),I=Kr(a,d),F=I.measureSize(_),B=Qr(F),O=zr(l,F),G=!u&&!!p,q=u||!!p,{slideSizes:z,slideSizesWithGaps:W,startGap:Z,endGap:J}=mo(I,_,A,s,q,o),Y=po(I,F,h,u,_,A,Z,J,w),{snaps:te,snapsAligned:ne}=ro(I,O,_,A,Y),se=-oe(te)+oe(W),{snapsContained:pe,scrollContainLimit:Ce}=eo(F,se,ne,p,w),Q=G?pe:ne,{limit:H}=to(se,Q,u),le=Rn(Ge(Q),x,u),ee=le.clone(),M=Me(s),S=({dragHandler:_e,scrollBody:rt,scrollBounds:ot,options:{loop:Be}})=>{Be||ot.constrain(_e.pointerDown()),rt.seek()},P=({scrollBody:_e,translate:rt,location:ot,offsetLocation:Be,previousLocation:xs,scrollLooper:hs,slideLooper:gs,dragHandler:bs,animation:Ns,eventHandler:Ut,scrollBounds:vs,options:{loop:$t}},Gt)=>{const Bt=_e.settled(),ys=!vs.shouldConstrain(),zt=$t?Bt:Bt&&ys,Ht=zt&&!bs.pointerDown();Ht&&Ns.stop();const js=ot.get()*Gt+xs.get()*(1-Gt);Be.set(js),$t&&(hs.loop(_e.direction()),gs.loop()),rt.to(Be.get()),Ht&&Ut.emit("settle"),zt||Ut.emit("scroll")},$=Hr(r,o,()=>S(st),_e=>P(st,_e)),K=.68,ce=Q[le.get()],de=Ie(ce),xe=Ie(ce),fe=Ie(ce),he=Ie(ce),Re=Zr(de,fe,xe,he,b,K),tt=ao(u,Q,se,H,he),nt=io($,le,ee,Re,tt,he,i),Mt=so(H),Vt=Fe(),ms=fo(n,s,i,m),{slideRegistry:Ft}=oo(G,p,Q,Ce,Y,M),ps=co(e,s,Ft,nt,Re,Vt,i,E),st={ownerDocument:r,ownerWindow:o,eventHandler:i,containerRect:_,slideRects:A,animation:$,axis:I,dragHandler:qr(I,e,r,o,he,Wr(I,o),de,$,nt,Re,tt,le,i,B,y,g,f,K,C),eventStore:Vt,percentOfView:B,index:le,indexPrevious:ee,limit:H,location:de,offsetLocation:fe,previousLocation:xe,options:c,resizeHandler:Xr(n,i,o,s,I,N,D),scrollBody:Re,scrollBounds:Jr(H,fe,he,Re,B),scrollLooper:no(se,H,fe,[de,fe,xe,he]),scrollProgress:Mt,scrollSnapList:Q.map(Mt.get),scrollSnaps:Q,scrollTarget:tt,scrollTo:nt,slideLooper:lo(I,F,se,z,W,te,Q,fe,s),slideFocus:ps,slidesHandler:uo(n,i,j),slidesInView:ms,slideIndexes:M,slideRegistry:Ft,slidesToScroll:Y,target:he,translate:kn(I,n)};return st}function ho(){let e={},n;function s(d){n=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(x=>x(n,d)),a}function c(d,x){return e[d]=r(d).concat([x]),a}function i(d,x){return e[d]=r(d).filter(u=>u!==x),a}function l(){e={}}const a={init:s,emit:o,off:i,on:c,clear:l};return a}const go={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function bo(e){function n(c,i){return Dn(c,i||{})}function s(c){const i=c.breakpoints||{},l=Ve(i).filter(a=>e.matchMedia(a).matches).map(a=>i[a]).reduce((a,d)=>n(a,d),{});return n(c,l)}function r(c){return c.map(i=>Ve(i.breakpoints||{})).reduce((i,l)=>i.concat(l),[]).map(e.matchMedia)}return{mergeOptions:n,optionsAtMedia:s,optionsMediaQueries:r}}function No(e){let n=[];function s(c,i){return n=i.filter(({options:l})=>
16e.optionsAtMedia(l).active!==!1),n.forEach(l=>l.init(c,e)),i.reduce((l,a)=>Object.assign(l,{[a.name]:a}),{})}function r(){n=n.filter(c=>c.destroy())}return{init:s,destroy:r}}function He(e,n,s){const r=e.ownerDocument,o=r.defaultView,c=bo(o),i=No(c),l=Fe(),a=ho(),{mergeOptions:d,optionsAtMedia:x,optionsMediaQueries:u}=c,{on:b,off:y,emit:g}=a,m=I;let h=!1,f,p=d(go,He.globalOptions),N=d(p),j=[],C,E,w;function D(){const{container:M,slides:S}=N;E=(ht(M)?e.querySelector(M):M)||e.children[0];const $=ht(S)?E.querySelectorAll(S):S;w=[].slice.call($||E.children)}function _(M){const S=xo(e,E,w,r,o,M,a);if(M.loop&&!S.slideLooper.canLoop()){const P=Object.assign({},M,{loop:!1});return _(P)}return S}function A(M,S){h||(p=d(p,M),N=x(p),j=S||j,D(),f=_(N),u([p,...j.map(({options:P})=>P)]).forEach(P=>l.add(P,"change",I)),N.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(ee),f.eventHandler.init(ee),f.resizeHandler.init(ee),f.slidesHandler.init(ee),f.options.loop&&f.slideLooper.loop(),E.offsetParent&&w.length&&f.dragHandler.init(ee),C=i.init(ee,j)))}function I(M,S){const P=Y();F(),A(d({startIndex:P},M),S),a.emit("reInit")}function F(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),i.destroy(),l.clear()}function B(){h||(h=!0,l.clear(),F(),a.emit("destroy"),a.clear())}function O(M,S,P){!N.active||h||(f.scrollBody.useBaseFriction().useDuration(S===!0?0:N.duration),f.scrollTo.index(M,P||0))}function G(M){const S=f.index.add(1).get();O(S,M,-1)}function q(M){const S=f.index.add(-1).get();O(S,M,1)}function z(){return f.index.add(1).get()!==Y()}function W(){return f.index.add(-1).get()!==Y()}function Z(){return f.scrollSnapList}function J(){return f.scrollProgress.get(f.offsetLocation.get())}function Y(){return f.index.get()}function te(){return f.indexPrevious.get()}function ne(){return f.slidesInView.get()}function se(){return f.slidesInView.get(!1)}function pe(){return C}function Ce(){return f}function Q(){return e}function H(){return E}function le(){return w}const ee={canScrollNext:z,canScrollPrev:W,containerNode:H,internalEngine:Ce,destroy:B,off:y,on:b,emit:g,plugins:pe,previousScrollSnap:te,reInit:m,rootNode:Q,scrollNext:G,scrollPrev:q,scrollProgress:J,scrollSnapList:Z,scrollTo:O,selectedScrollSnap:Y,slideNodes:le,slidesInView:ne,slidesNotInView:se};return A(n,s),setTimeout(()=>a.emit("init"),0),ee}He.globalOptions=void 0;function Tt(e={},n=[]){const s=v.useRef(e),r=v.useRef(n),[o,c]=v.useState(),[i,l]=v.useState(),a=v.useCallback(()=>{o&&o.reInit(s.current,r.current)},[o]);return v.useEffect(()=>{St(s.current,e)||(s.current=e,a())},[e,a]),v.useEffect(()=>{$r(r.current,n)||(r.current=n,a())},[n,a]),v.useEffect(()=>{if(Ur()&&i){He.globalOptions=Tt.globalOptions;const d=He(i,s.current,r.current);return c(d),()=>d.destroy()}else c(void 0)},[i,c]),[l,o]}Tt.globalOptions=void 0;const In=v.createContext(null);function Je(){const e=v.useContext(In);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function Et({orientation:e="horizontal",opts:n,setApi:s,plugins:r,className:o,children:c,...i}){const[l,a]=Tt({...n,axis:e==="horizontal"?"x":"y"},r),[d,x]=v.useState(!1),[u,b]=v.useState(!1),y=v.useCallback(p=>{p&&(x(p.canScrollPrev()),b(p.canScrollNext()))},[]),g=v.useCallback(()=>{a==null||a.scrollPrev()},[a]),m=v.useCallback(()=>{a==null||a.scrollNext()},[a]),h=v.useCallback(p=>{p.key==="ArrowLeft"?(p.preventDefault(),g()):p.key==="ArrowRight"&&(p.preventDefault(),m())},[g,m]);v.useEffect(()=>{!a||!s||s(a)},[a,s]),v.useEffect(()=>{if(a)return y(a),a.on("reInit",y),a.on("select",y),()=>{a==null||a.off("select",y)}},[a,y]);const f=v.useMemo(()=>({carouselRef:l,api:a,opts:n,orientation:e||((n==null?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:m,canScrollPrev:d,canScrollNext:u}),[l,a,n,e,g,m,d,u]);return t.jsx(In.Provider,{value:f,children:t.jsx("div",{onKeyDownCapture:h,className:k("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:c})})}function Dt({className:e,...n}){const{carouselRef:s,orientation:r}=Je();return t.jsx("div",{ref:s,className:"overflow-hidden","data-slot":"carousel-content",children:t.jsx("div",{className:k("flex items-stretch",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...n})})}function Ke({className:e,...n}){const{orientation:s}=Je();return t.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:k("min-w-0 shrink-0 grow-0 basis-full",s==="horizontal"?"pl-4":"pt-4",e),...n})}function On({className:e,variant:n="ghost",size:s="icon",...r}){const{orientation:o,scrollPrev:c,canScrollPrev:i}=Je();return t.jsxs(ae,{"data-slot":"carousel-chevron-previous",variant:n,size:s,className:k("size-8 rounded-full [&_svg]:!size-5 cursor-pointer",o==="horizontal"?"":"rotate-90",e),disabled:!i,onClick:c,...r,children:[t.jsx(er,{}),t.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function An({className:e,variant:n="ghost",size:s="icon",...r}){const{orientation:o,scrollNext:c,canScrollNext:i}=Je();return t.jsxs(ae,{"data-slot":"carousel-chevron-next",variant:n,size:s,className:k("size-8 rounded-full [&_svg]:!size-5 cursor-pointer",o==="horizontal"?"":"rotate-90",e),disabled:!i,onClick:c,...r,children:[t.jsx(tr,{}),t.jsx("span",{className:"sr-only",children:"Next slide"})]})}const vo=yt("flex items-center gap-1.5 rounded-sm text-xs text-muted-foreground whitespace-nowrap w-fit",{variants:{variant:{default:"px-2 py-1 bg-accent-muted rounded-sm",muted:"px-2 py-1 bg-muted",outline:"px-2 py-1 border border-border bg-transparent",ghost:"bg-transparent"},size:{sm:"text-[10px] px-1.5 py-0.5 [&>svg]:h-2.5 [&>svg]:w-2.5",default:"text-xs px-2 py-1 [&>svg]:h-3 [&>svg]:w-3",lg:"text-sm px-2.5 py-1.5 [&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{variant:"default",size:"default"}}),yo={calendar:mt,date:mt,location:pt,map:pt,fee:nr,price:Qt,dollar:Qt,virtual:ze,monitor:ze,online:ze,tag:En,time:Kt,clock:Kt,users:Yt,people:Yt,globe:Xt,world:Xt};function Oe({className:e,variant:n,size:s,icon:r,hideIcon:o=!1,children:c,...i}){const l=v.useMemo(()=>!r||o?null:typeof r=="string"?yo[r]||En:r,[r,o]);return t.jsxs("div",{"data-slot":"icon-tag",className:k(vo({variant:n,size:s}),e),...i,children:[l&&t.jsx(l,{className:"shrink-0"}),t.jsx("span",{children:c})]})}const jo={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function So(e,n){const s=e.scrollSnapList();return typeof n=="number"?s.map(()=>n):n(s,e)}function Co(e,n){const s=e.rootNode();return n&&n(s)||s}function et(e={}){let n,s,r,o,c=null,i=0,l=!1,a=!1,d=!1,x=!1;function u(O,G){s=O;const{mergeOptions:q,optionsAtMedia:z}=G,W=q(jo,et.globalOptions),Z=q(W,e);if(n=z(Z),s.scrollSnapList().length<=1)return;x=n.jump,r=!1,o=So(s,n.delay);const{eventStore:J,ownerDocument:Y}=s.internalEngine(),te=!!s.internalEngine().options.watchDrag,ne=Co(s,n.rootNode);J.add(Y,"visibilitychange",f),te&&s.on("pointerDown",N),te&&!n.stopOnInteraction&&s.on("pointerUp",j),n.stopOnMouseEnter&&J.add(ne,"mouseenter",C),n.stopOnMouseEnter&&!n.stopOnInteraction&&J.add(ne,"mouseleave",E),n.stopOnFocusIn&&s.on("slideFocusStart",h),n.stopOnFocusIn&&!n.stopOnInteraction&&J.add(s.containerNode(),"focusout",m),n.playOnInit&&m()}function b(){s.off("pointerDown",N).off("pointerUp",j).off("slideFocusStart",h),h(),r=!0,l=!1}function y(){const{ownerWindow:O}=s.internalEngine();O.clearTimeout(i),i=O.setTimeout(I,o[s.selectedScrollSnap()]),c=new Date().getTime(),s.emit("autoplay:timerset")}function g(){const{ownerWindow:O}=s.internalEngine();
vendor: 1,201 bytes, line 16
16O.clearTimeout(i),i=0,c=null,s.emit("autoplay:timerstopped")}function m(){if(!r){if(p()){d=!0;return}l||s.emit("autoplay:play"),y(),l=!0}}function h(){r||(l&&s.emit("autoplay:stop"),g(),l=!1)}function f(){if(p())return d=l,h();d&&m()}function p(){const{ownerDocument:O}=s.internalEngine();return O.visibilityState==="hidden"}function N(){a||h()}function j(){a||m()}function C(){a=!0,h()}function E(){a=!1,m()}function w(O){typeof O<"u"&&(x=O),m()}function D(){l&&h()}function _(){l&&m()}function A(){return l}function I(){const{index:O}=s.internalEngine(),G=O.clone().add(1).get(),q=s.scrollSnapList().length-1,z=n.stopOnLastSnap&&G===q;if(s.canScrollNext()?s.scrollNext(x):s.scrollTo(0,x),s.emit("autoplay:select"),z)return h();m()}function F(){if(!c)return null;const O=o[s.selectedScrollSnap()],G=new Date().getTime()-c;return O-G}return{name:"autoplay",options:e,init:u,destroy:b,play:w,stop:D,reset:_,isPlaying:A,timeUntilNext:F}}et.globalOptions=void 0;const Ln=e=>typeof e=="string"&&e.startsWith("/"),Rt=v.memo(()=>t.jsxs("div",{className:"rounded-md border border-border h-full flex flex-col md:flex-row overflow-hidden bg-card",children:[t.jsx("div",{className:"order-first md:order-last h-4
160 md:h-auto md:flex-1",children:t.jsx(T,{className:"w-full h-full rounded-none bg-border"})}),t.jsxs("div",{className:"flex-1 md:max-w-[50%] flex flex-col justify-between p-6 gap-4 md:gap-6",children:[t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(T,{className:"h-7 md:h-8 w-3/4 rounded-sm bg-border"}),t.jsxs("div",{className:"flex flex-wrap gap-3 mt-2",children:[t.jsx(T,{className:"h-6 w-20 rounded-sm bg-border"}),t.jsx(T,{className:"h-6 w-24 rounded-sm bg-border"}),t.jsx(T,{className:"h-6 w-16 rounded-sm bg-border"})]}),t.jsx(T,{className:"h-4 w-full rounded-sm bg-border"}),t.jsx(T,{className:"h-4 w-2/3 rounded-sm bg-border"})]}),t.jsx(T,{className:"h-10 w-full md:w-32 rounded-md bg-border"})]})]}));Rt.displayName="DashboardBannerSkeleton";const _o=5e3,Pn=v.memo(({banner:e})=>{const n=ks(e.tagStartDate,e.tagEndDate,e.tagTimezone);return n||e.tagLocation||e.tagFee!=null||e.tagIsVirtual!==null?t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mt-2",children:[n&&t.jsx(Oe,{variant:"ghost",icon:"calendar",className:"text-foreground p-0",children:n}),e.tagLocation&&t.jsx(Oe,{variant:"ghost",icon:"location",className:"text-foreground p-0",children:e.tagLocation}),e.tagFee!=null&&t.jsx(Oe,{variant:"ghost",icon:e.tagFee===0?"fee":or,className:"text-foreground p-0",children:e.tagFee===0?"No-Fee":`Fee: $${e.tagFee}`}),e.tagIsVirtual!==null&&t.jsx(Oe,{variant:"ghost",icon:"virtual",className:"text-foreground p-0",children:e.tagIsVirtual?"Virtual":"In-Person"})]}):null});Pn.displayName="BannerTags";const Mn=v.memo(({banner:e,isMobile:n})=>{if(!e.graphicImageUrl)return null;const s=e.graphicVariants===Rs.FADE,r=k("relative w-full h-full"),o=k("absolute inset-0 z-10 pointer-events-none bg-gradient-to-r to-transparent from-card",n?"hidden":"hidden @[600px]:block");return t.jsxs("div",{className:r,children:[s&&t.jsx("div",{className:o,style:e.backgroundColor?{background:`linear-gradient(to right, ${e.backgroundColor}, transparent)`}:void 0}),t.jsx("img",{src:e.graphicImageUrl,alt:e.header||e.name,className:"w-full h-full object-cover"})]})});Mn.displayName="BannerGraphic";const Vn=v.memo(({banner:e,isMobile:n})=>{const s=cn(),{track:r}=Se(),o=v.useCallback(()=>{e.ctaUrl&&(r(re.CTA_CLICKED,{button_placement:"Dashboard Banner",button_id:String(e.id),cta_text:e.ctaLabel||"Learn More"}),Ln(e.ctaUrl)?s(e.ctaUrl):window.open(e.ctaUrl,"_blank","noopener,noreferrer"))},[e.ctaUrl,s]),c=k("w-full h-full flex flex-col items-center bg-card",!n&&"@[600px]:flex-row gap-10"),i=k("order-first max-h-[300px] h-full w-full min-w-0",!n&&"@[600px]:order-last @[600px]:min-w-0 @[600px]:flex-1 @[600px]:max-h-none"),l=k("flex w-full flex-1 flex-col justify-between self-center gap-4 px-6 pb-8 pt-6",!n&&"@[600px]:gap-6"),a=k("text-xl font-bold text-secondary-foreground",!n&&"@[600px]:text-2xl"),d=k("text-sm text-muted-foreground",!n&&"@[600px]:text-base"),x=k("w-full gap-2 cursor-pointer",!n&&"@[600px]:w-fit");return t.jsxs("div",{className:c,style:e.backgroundColor?{backgroundColor:e.backgroundColor}:void 0,children:[t.jsx("div",{className:i,children:t.jsx(Mn,{banner:e,isMobile:n})}),t.jsx("div",{className:"flex flex-1 justify-center",children:t.jsxs("div",{className:l,children:[t.jsxs("div",{className:"flex flex-col gap-2",children:[e.header&&t.jsx("h2",{className:a,children:e.header}),t.jsx(Pn,{banner:e}),e.subhead&&t.jsx("div",{className:d,children:t.jsx(bn,{children:e.subhead})})]}),e.ctaLabel&&t.jsx(ae,{variant:"default",className:x,onClick:o,children:e.ctaLabel})]})})]})});Vn.displayName="BannerSlideContent";const Fn=v.memo(({count:e,currentIndex:n,onDotClick:s,isMobile:r})=>{const o=k("absolute left-1/2 -translate-x-1/2 flex items-center gap-2 z-10",r?"bottom-3":"top-auto @[600px]:bottom-4");return t.jsx("div",{className:o,children:Array.from({length:e},(c,i)=>t.jsx("button",{type:"button",onClick:()=>s(i),className:k("w-2 h-2 rounded-full transition-colors cursor-pointer",i===n?"bg-accent":"bg-accent-muted hover:bg-accent-muted/50"),"aria-label":`Go to banner ${i+1}`},i))})});Fn.displayName="CarouselDots";const Un=v.memo(({data:e,className:n})=>{const[s,r]=v.useState(),[o,c]=v.useState(0),i=Pe({query:"(max-width: 1023px)"});v.useEffect(()=>{if(!s)return;const u=()=>{c(s.selectedScrollSnap())};return s.on("select",u),u(),()=>{s.off("select",u)}},[s]);const l=v.useCallback(u=>{s==null||s.scrollTo(u)},[s]);if(!e||!Array.isArray(e)||e.length===0)return t.jsx(Rt,{});const a=e,d=a.length>1,x=k("@container rounded-md h-full flex overflow-hidden relative isolate",n);return t.jsxs("div",{className:x,children:[t.jsx(Et,{setApi:r,opts:{loop:!0,align:"start",watchDrag:d},plugins:d?[et({delay:_o,stopOnInteraction:!1,stopOnMouseEnter:!0})]:[],className:"w-full h-full [&>div]:h-full",children:t.jsx(Dt,{className:"-ml-0 h-full",children:a.map(u=>t.jsx(Ke,{className:"pl-0",children:t.jsx(Vn,{banner:u,isMobile:i})},u.id))})}),d&&t.jsx(Fn,{count:a.length,currentIndex:o,onDotClick:l,isMobile:i})]})});Un.displayName="DashboardBannerCard";const wo=3e3,To=2**31-1,Eo=e=>{v.useEffect(()=>{if(e===void 0)return;const n=e*1e3+wo-Date.now();if(n<=0||n>To)return;const s=setTimeout(()=>ue.getState().refresh(),n);return()=>clearTimeout(s)},[e])};function qe(e,n,s,r,o){return e?o(e):r?o(n.key,{defaultValue:n.defaultValue}):o(s.key,{defaultValue:s.defaultValue})}const kt=()=>{const{track:e}=Se();return{trackDashboardCTA:(s,r,o)=>{if("enrolled"in r)return e(re.COURSES_CTA_CLICKED,{cta_text:s,course_name:r.name,course_length:String(r.learnerTime||0),resource_id:String(r.id),cta_type:o,button_placement:"dashboard"});if(r.type===Ne.ADVISOR)return e(re.ADVISORS_CTA_CLICKED,{cta_text:s,advisor_name:r.name,advisor_organization:r.organization||"",resource_id:String(r.id),cta_type:o,button_placement:"dashboard"});if(r.type===Ne.PROGRAMS_RESOURCES)return e(re.PROGRAMS_RESOURCES_CTA_CLICKED,{cta_text:s,program_or_resource_title:r.name,program_or_resource_organizer:r.organization,resource_id:String(r.id),cta_type:o,button_placement:"dashboard"})}}},$n=v.memo(({contentData:e,primaryCtaKey:n,buttonClassName:s})=>{const{t:r}=ie(),{openExternalUrl:o}=ar(),c=lr(),i=U(Ue),{sendCustomEventToGTag:l}=$e(),{trackDashboardCTA:a}=kt(),d=e.type===Ne.ADVISOR,x=e.type===Ne.PROGRAMS_RESOURCES;if(!e.fullData)return null;if(d){if(!n)return null;const u=e.fullData,b=!!u.externalSchedulingLink,y=b?n||"common.visit_website":"common.modal.advisor.schedule",g=r(y),m=()=>{a(g,e,"Primary button"),b?(l("advisor_schedule","linktowebsite",e.id,["dashboard"],i,!1),o(u.externalSchedulingLink,!1)):(l("advisor_schedule","schedule",e.id,["dashboard"],i,!1),c(e.id))};return t.jsxs(ae,{variant:"default",className:k(s,"overflow-hidden cursor-pointer"),onClick:m,children:[t.jsx("span",{className:"truncate min-w-0",children:t.jsx(L,{k:y})}),!b&&t.jsx(mt,{className:"h-4 w-4 shrink-0"}),b&&t.jsx(dr,{className:"h-4 w-4 shrink-0"})]})}if(x&&n){const u=e.fullData,b="type"in u&&u.type===Qe.COHORT_PROGRAM;let y=null,g=!1;if(b){const f=u;y=f.applicationUrl??null,g=!f.hasLicense}else{const f=u;y=f.outboundLink??null,g=!f.hasLicense}if(!y)return null;const m=r(n),h=()=>{a(m,e,"Primary button"),b?l("program_readmore","applyonline",e.id,["dashboard"],i,!1):l("resource_linktowebsite","visitwebsite",e.id,["dashboard"],i,!1),o(y,g)};return t.jsxs(ae,{variant:"default",className:k(s,"overflow-hidden cursor-pointer"),onClick:h,children:[t.jsx("span",{className:"truncate min-w-0",children:t.jsx(L,{k:n})}),t.jsx(ye,{className:"h-4 w-4 shrink-0"})]})}return null});$n.displayName="ContentCardPrimaryButton";const ge=()=>t.jsxs("div",{className:"border border-border rounded-md p-6 bg-card h-full flex flex-col gap-5",children:[t.jsx(T,{className:"h-4 w-[40%] max-w-24 rounded-sm bg-border"}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(T,{className:"h-14 w-14 roun
16ded-full bg-border flex-shrink-0"}),t.jsxs("div",{className:"flex flex-col min-w-0 gap-2 flex-1",children:[t.jsx(T,{className:"h-5 w-full max-w-48 rounded-sm bg-border"}),t.jsx(T,{className:"h-4 w-[70%] max-w-32 rounded-sm bg-border"})]})]}),t.jsxs("div",{className:"flex flex-col gap-2 flex-grow",children:[t.jsx(T,{className:"h-4 w-full rounded-sm bg-border"}),t.jsx(T,{className:"h-4 w-3/4 rounded-sm bg-border"})]}),t.jsx(T,{className:"h-9 w-full rounded-md bg-border mt-4"})]}),Do={[R.ADVISOR_CONTENT]:"plain",[R.ADVISOR_CONTENT_COLOR]:"color",[R.ADVISOR_CONTENT_GRADIENT]:"gradient",[R.PROGRAMS_RESOURCES_CONTENT]:"plain",[R.PROGRAMS_RESOURCES_CONTENT_COLOR]:"color",[R.PROGRAMS_RESOURCES_CONTENT_GRADIENT]:"gradient"},Te={plain:{card:"bg-card border border-border",button:"w-full",title:"flex-row",nameBlock:"",description:"justify-start"},color:{card:"bg-accent-muted/50 border border-border",button:"w-fit",title:"flex-row",nameBlock:"",description:"justify-start"},gradient:{card:"bg-gradient-to-b from-background to-accent-muted border border-border",button:"w-full",title:"flex-col",nameBlock:"text-center w-full",description:"justify-center"}},Ro=e=>({card:k("rounded-md p-6 h-full min-h-[300px] overflow-hidden flex flex-col gap-5 min-w-0",Te[e].card),button:k("cursor-pointer min-w-0 max-w-full",Te[e].button),title:k("flex items-center gap-4 min-w-0",Te[e].title),nameBlock:k("flex flex-col min-w-0",Te[e].nameBlock),description:k("text-base text-muted-foreground flex flex-grow items-start",Te[e].description)}),be=v.memo(({data:e,cardType:n,className:s,preHeaderKey:r,primaryCtaKey:o,secondaryCtaKey:c})=>{var w,D;const{t:i}=ie(),{openModal:l}=Xe(),a=U(Ue),{sendCustomEventToGTag:d}=$e(),{trackDashboardCTA:x}=kt();if(Eo(e&&!Array.isArray(e)?(w=e.session)==null?void 0:w.endTime:void 0),!e||!("name"in e&&e.name))return t.jsx(ge,{});const u=e,b=Do[n]??"plain",y=u.type===Ne.ADVISOR,g=y&&u.fullData.isCFO===!0,m=((D=u.name)==null?void 0:D.split(" "))||[],h=m[0]||"",f=m.slice(1).join(" ")||"",p=qe(r??void 0,{key:"dashboard.content_card.advisor_preheader",defaultValue:"Recommended Advisor"},{key:"dashboard.content_card.resource_preheader",defaultValue:"Recommended Resource"},y,i),N=qe(void 0,{key:"dashboard.content_card.advisor_cta",defaultValue:"About me"},{key:"dashboard.content_card.resource_cta",defaultValue:"Explore the resource"},y,i),j=c?i(c):N,C=Ro(b),E=()=>{if(u.fullData)switch(u.type){case Ne.ADVISOR:{const _=u.fullData;d("advisor_readmore","readmore",u.id,["dashboard"],a,!1),De.emit({referenceType:"advisor",referenceId:u.id.toString()}),x(j,u,"Secondary button"),l({type:me.ADVISOR,state:{..._,userId:a},metadata:ve("dashboard_modal")});break}case Ne.PROGRAMS_RESOURCES:{const _=u.fullData;if(x(j,u,"Secondary button"),"type"in _&&_.type===Qe.COHORT_PROGRAM){const I=_;d("program_readmore","readmore",u.id,["dashboard"],a,!1),De.emit({referenceType:"cohort",referenceId:u.id.toString()}),l({type:me.PROGRAM,state:{...I,userId:a},metadata:ve("dashboard_modal")})}else{const I=_;d("resource_readmore","readmore",u.id,["dashboard"],a,!1),De.emit({referenceType:"resource",referenceId:u.id.toString()}),l({type:me.RESOURCE,state:{...I,userId:a},metadata:ve("dashboard_modal")})}break}}};return y&&u.session?t.jsx(cr,{session:u.session,onAboutMe:E,onCtaClick:({id:_,label:A,isPrimary:I})=>{_!=="about_me"&&x(A,u,I?"Primary button":"Secondary button")},className:k(Te[b].card,s)}):t.jsxs("div",{className:k(C.card,s),children:[t.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:p}),t.jsxs("div",{className:C.title,children:[t.jsxs(un,{className:"h-12 w-12 shrink-0 md:h-14 md:w-14",children:[u.image&&t.jsx(fn,{src:u.image,alt:u.name}),t.jsx(mn,{className:k(!u.image&&(g?"bg-[#df643a] text-sidebar-accent-foreground":"bg-sidebar-accent text-sidebar-accent-foreground")),children:((h==null?void 0:h[0])??"")+((f==null?void 0:f[0])??"")||"?"})]}),t.jsxs("div",{className:C.nameBlock,children:[t.jsx("h3",{className:"text-lg font-semibold text-card-foreground truncate",children:u.name}),u.organization&&t.jsx("p",{className:"text-sm text-card-foreground truncate",children:u.organization})]})]}),u.description&&t.jsx("div",{className:C.description,children:t.jsx("p",{className:"line-clamp-3",children:u.description})}),t.jsxs("div",{className:"flex flex-row flex-nowrap items-center gap-3 min-w-0 overflow-hidden",children:[t.jsxs(ae,{variant:"outline",className:k(C.button,"overflow-hidden flex-1 min-w-0 shrink basis-0"),onClick:E,children:[t.jsx("span",{className:"truncate min-w-0",children:j}),t.jsx(ye,{className:"h-4 w-4 shrink-0"})]}),t.jsx($n,{contentData:u,primaryCtaKey:o??null,buttonClassName:k(C.button,"flex-1 min-w-0 shrink basis-0")})]})]})});be.displayName="DashboardContentCard";function ko(e,n=[]){let s=[];function r(c,i){const l=v.createContext(i);l.displayName=c+"Context";const a=s.length;s=[...s,i];const d=u=>{var f;const{scope:b,children:y,...g}=u,m=((f=b==null?void 0:b[e])==null?void 0:f[a])||l,h=v.useMemo(()=>g,Object.values(g));return t.jsx(m.Provider,{value:h,children:y})};d.displayName=c+"Provider";function x(u,b){var m;const y=((m=b==null?void 0:b[e])==null?void 0:m[a])||l,g=v.useContext(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${c}\``)}return[d,x]}const o=()=>{const c=s.map(i=>v.createContext(i));return function(l){const a=(l==null?void 0:l[e])||c;return v.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,Io(o,...n)]}function Io(...e){const n=e[0];if(e.length===1)return n;const s=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
16return function(c){const i=r.reduce((l,{useScope:a,scopeName:d})=>{const u=a(c)[`__scope${d}`];return{...l,...u}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return s.scopeName=n.scopeName,s}var Oo=Symbol.for("react.lazy"),We=Ss[" use ".trim().toString()];function Ao(e){return typeof e=="object"&&e!==null&&"then"in e}function Gn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Oo&&"_payload"in e&&Ao(e._payload)}function Lo(e){const n=Po(e),s=v.forwardRef((r,o)=>{let{children:c,...i}=r;Gn(c)&&typeof We=="function"&&(c=We(c._payload));const l=v.Children.toArray(c),a=l.find(Vo);if(a){const d=a.props.children,x=l.map(u=>u===a?v.Children.count(d)>1?v.Children.only(null):v.isValidElement(d)?d.props.children:null:u);return t.jsx(n,{...i,ref:o,children:v.isValidElement(d)?v.cloneElement(d,void 0,x):null})}return t.jsx(n,{...i,ref:o,children:c})});return s.displayName=`${e}.Slot`,s}function Po(e){const n=v.forwardRef((s,r)=>{let{children:o,...c}=s;if(Gn(o)&&typeof We=="function"&&(o=We(o._payload)),v.isValidElement(o)){const i=Uo(o),l=Fo(c,o.props);return o.type!==v.Fragment&&(l.ref=r?Is(r,i):i),v.cloneElement(o,l)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Mo=Symbol("radix.slottable");function Vo(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mo}function Fo(e,n){const s={...n};for(const r in n){const o=e[r],c=n[r];/^on[A-Z]/.test(r)?o&&c?s[r]=(...l)=>{const a=c(...l);return o(...l),a}:o&&(s[r]=o):r==="style"?s[r]={...o,...c}:r==="className"&&(s[r]=[o,c].filter(Boolean).join(" "))}return{...e,...s}}function Uo(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var $o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bn=$o.reduce((e,n)=>{const s=Lo(`Primitive.${n}`),r=v.forwardRef((o,c)=>{const{asChild:i,...l}=o,a=i?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(a,{...l,ref:c})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),It="Progress",Ot=100,[Go,$i]=ko(It),[Bo,zo]=Go(It),zn=v.forwardRef((e,n)=>{const{__scopeProgress:s,value:r=null,max:o,getValueLabel:c=Ho,...i}=e;(o||o===0)&&!nn(o)&&console.error(Ko(`${o}`,"Progress"));const l=nn(o)?o:Ot;r!==null&&!sn(r,l)&&console.error(qo(`${r}`,"Progress"));const a=sn(r,l)?r:null,d=Ye(a)?c(a,l):void 0;return t.jsx(Bo,{scope:s,value:a,max:l,children:t.jsx(Bn.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Ye(a)?a:void 0,"aria-valuetext":d,role:"progressbar","data-state":qn(a,l),"data-value":a??void 0,"data-max":l,...i,ref:n})})});zn.displayName=It;var Hn="ProgressIndicator",Kn=v.forwardRef((e,n)=>{const{__scopeProgress:s,...r}=e,o=zo(Hn,s);return t.jsx(Bn.div,{"data-state":qn(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:n})});Kn.displayName=Hn;function Ho(e,n){return`${Math.round(e/n*100)}%`}function qn(e,n){return e==null?"indeterminate":e===n?"complete":"loading"}function Ye(e){return typeof e=="number"}function nn(e){return Ye(e)&&!isNaN(e)&&e>0}function sn(e,n){return Ye(e)&&!isNaN(e)&&e<=n&&e>=0}function Ko(e,n){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ot}\`.`}function qo(e,n){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${n}\`. The \`value\` prop must be: 17 - a positive number 18 - less than the value passed to \`max\` (or ${Ot} if no \`max\` prop is set) 19 - \`null\` or \`undefined\` if the progress is indeterminate. 20 21Defaulting to \`null\`.`}var Wo=zn,Yo=Kn;const Qo=yt("relative w-full overflow-hidden rounded-full",{variants:{variant:{default:"bg-primary/20",accent:"bg-accent-muted"},size:{default:"h-2",sm:"h-1"}},defaultVariants:{variant:"default",size:"default"}}),Xo=yt("h-full w-full flex-1 transition-all",{variants:{variant:{default:"bg-primary",accent:"bg-accent"}},defaultVariants:{variant:"default"}});function Zo({className:e,value:n,variant:s,size:r,...o}){return t.jsx(Wo,{"data-slot":"progress",value:n,className:k(Qo({variant:s,size:r}),e),...o,children:t.jsx(Yo,{"data-slot":"progress-indicator",className:Xo({variant:s}),style:{transform:`translateX(-${100-(n||0)}%)`}})})}const Jo=({completedModules:e,totalModules:n,progressSeconds:s,remainingSeconds:r})=>{if(s!=null&&r!=null){const c=s+r;return{value:c>0?s/c*100:0,label:t.jsx(L,{k:"dashboard.course_card.time_left",defaultValue:"{{time}} left",options:{time:ur(Math.ceil(r/60))}})}}if(!n)return null;const o=e??0;return{value:o/n*100,label:t.jsx(L,{k:"dashboard.course_card.modules_progress",defaultValue:"{{completed}} of {{total}} modules",options:{completed:o,total:n}
21})}},Wn=v.memo(e=>{const n=Jo(e);return n?t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Zo,{value:n.value,variant:"accent",size:"sm",className:"flex-1"}),t.jsx("span",{className:"text-xs font-light text-foreground whitespace-nowrap",children:n.label})]}):null});Wn.displayName="DashboardCourseProgress";const Yn=()=>t.jsx("div",{className:"border border-border rounded-md overflow-hidden bg-card h-full flex flex-col gap-4",children:t.jsxs("div",{className:"w-full p-6 flex flex-col gap-3 justify-between flex-grow",children:[t.jsxs("div",{className:"flex gap-3 justify-between items-center",children:[t.jsxs("div",{className:"flex flex-col gap-3 w-full max-w-1/2",children:[t.jsx(T,{className:"h-4 w-24 rounded-sm bg-border"}),t.jsx(T,{className:"h-6 w-3/4 rounded-sm bg-border"})]}),t.jsx("div",{className:"block",children:t.jsx(T,{className:"rounded-md bg-border aspect-video w-32"})})]}),t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(T,{className:"h-4 w-full rounded-sm bg-border"}),t.jsx(T,{className:"h-4 w-full rounded-sm bg-border"}),t.jsx(T,{className:"h-4 w-2/3 rounded-sm bg-border"})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(T,{className:"h-9 flex-1 rounded-md bg-border"}),t.jsx(T,{className:"h-9 flex-1 rounded-md bg-border"})]})]})}),ea="https://d1vy0qa05cdjr5.cloudfront.net/91ab5033-b029-4688-96b5-c05299220db5/Public/Courses",ta="https://d2dh7t8srwmqko.cloudfront.net",rn=e=>{e.currentTarget.src=xt};function na(e){return typeof e=="object"&&e!==null&&"enrolled"in e}const Qn=v.memo(({data:e,preHeaderKey:n,engagedPreHeaderKey:s,primaryCtaKey:r,secondaryCtaKey:o})=>{const{t:c}=ie(),{sendCustomEventToGTag:i}=$e(),{openModal:l}=Xe(),{openPlayer:a}=Os(),{trackDashboardCTA:d}=kt(),x=U(As),u=U(Ue),b=U(Ls),y=Pe({query:"(max-width: 767px)"});if(!na(e))return t.jsx(Yn,{});const g=e.courseType==null,{id:m,name:h,description:f,enrolled:p,progressStatus:N,courseType:j,thumbnailPath:C,coverColor:E,completedModules:w,totalModules:D,progressSeconds:_,remainingSeconds:A,isEngaged:I}=e,F=Ps(p,N),B=I??F,O=g?C?`${ta}/${C}`:xt:`${ea}/${m}/${m}.png`,G=(x==null?void 0:x.tenantUrl)||"#",q=qe(B?s:n,{key:"dashboard.course_card.in_progress_preheader",defaultValue:"Pick up where you left off"},{key:"dashboard.course_card.new_preheader",defaultValue:"Best Match"},B,c),z=qe(r,{key:"dashboard.course_card.resume_cta",defaultValue:"Resume Course"},{key:"dashboard.course_card.start_cta",defaultValue:"Start Course"},F,c),W=o||"dashboard.course_card.read_more",Z=c(W,{defaultValue:"Read More"}),J=()=>{i(F?"course_resume":"course_start",F?"resume":"start",m,["dashboard"],u,!1),d(z,e,"Primary button"),g?a({courseId:m,title:h,showFrontCover:!N||N==="not attempted",courseInfo:{thumbnail:O===xt?void 0:O,description:f?t.jsx(bn,{children:f}):void 0,courseType:"Course",coverColor:E??void 0}}):j&&sr({courseId:m,courseName:h,courseType:j,absorbDomain:G,userId:u,profileInfo:b})},Y=()=>{i("course_readmore","readmore",m,["dashboard"],u,!1),d(Z,e,"Secondary button"),De.emit({referenceType:"course",referenceId:m.toString()}),l({type:me.COURSE,state:{...e,thumbnail:O,userId:u,isNative:g},metadata:ve("dashboard_modal")})},te=k("w-full p-6 flex flex-col gap-3 justify-between",!y&&"@[600px]:w-1/2 @[600px]:gap-4"),ne=k("block",!y&&"@[600px]:hidden"),se=k("hidden w-1/2 flex-shrink-0",!y&&"@[600px]:block"),pe=k("@container border border-border rounded-md overflow-hidden bg-card h-full min-h-[300px] flex flex-col gap-4",!y&&"md:flex-row");return t.jsxs("div",{className:pe,children:[t.jsxs("div",{className:te,children:[t.jsxs("div",{className:"flex gap-3 justify-between items-center",children:[t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("span",{className:"text-sm font-light text-muted-foreground",children:q}),t.jsx("h3",{className:"text-2xl font-normal text-foreground line-clamp-2",children:h})]}),t.jsx("div",{className:ne,children:t.jsx("img",{src:O,alt:h,className:"rounded-md object-cover aspect-video",onError:rn})})]}),f&&t.jsx("p",{className:"text-base font-normal text-foreground line-clamp-3",children:Ms(f)}),B&&t.jsx(Wn,{completedModules:w,totalModules:D,progressSeconds:_,remainingSeconds:A}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(ae,{variant:"secondary",className:"flex-1 cursor-pointer",onClick:Y,children:t.jsx(L,{k:W,defaultValue:"Read More"})}),t.jsx(ae,{variant:"default",className:"flex-1 cursor-pointer",onClick:J,children:z})]})]}),t.jsx("div",{className:se,children:t.jsx("img",{src:O,alt:h,className:"w-full h-full object-cover",onError:rn})})]})});Qn.displayName="DashboardCourseCard";const Xn=v.memo(({data:e,className:n})=>{const{t:s}=ie(),{colorVariables:r}=mr(),o=U(Ue),{sendCustomEventToGTag:c}=$e(),{openModal:i}=Xe(),{track:l}=Se(),a="productDetails"in e,d=!a&&"loanName"in e,x=v.useMemo(()=>
21{if(a){const h=e;return h.productDetails.details.name||h.productDetails.partner.name||""}return d?e.loanName:e.grantName},[e,d]),u=v.useMemo(()=>{if(a){const f=e.productDetails.details.maxMoneyAmount??null;return f==null?null:ke(null,f,"money",s)}if(d){const h=e;return ke(h.minSize,h.maxSize,"money",s)}const m=e;return ke(m.minGrantSize,m.maxGrantSize,"money",s)},[e,d,s]),b=v.useMemo(()=>{var m,h;if(a){const f=e,p=((m=f.productDetails.details.interestRateRange)==null?void 0:m.min)??null,N=((h=f.productDetails.details.interestRateRange)==null?void 0:h.max)??null;return p==null&&N==null?null:ke(p,N,"percent",s)}if(d){const f=e;return ke(f.minAPR,f.maxAPR,"percent",s)}return null},[e,d,s]),y=v.useMemo(()=>{let m,h;if(a){const f=e;m=f.productDetails.details.productImage||void 0,h=f.productDetails.partner.name||""}else{const{capitalProvider:f}=e,{icon:p}=f||{};m=p||void 0,h=(d?e.loanName:e.grantName)||""}return m?t.jsxs(un,{className:"h-10 w-10 shrink-0",children:[t.jsx(fn,{src:m,alt:h||""}),t.jsx(mn,{className:"bg-accent-muted text-accent-muted-foreground",children:(h==null?void 0:h[0])??"?"})]}):t.jsx(fr,{fillColor:r==null?void 0:r.icons.icon_secondary,width:"40",height:"40"})},[e,d,a,r]),g=v.useCallback(()=>{var h,f;const m=a||d;if(c(m?"loan_readmore":"grant_readmore","readmore",e.id,["dashboard"],o,!1),De.emit({referenceType:m?"loan":"grant",referenceId:e.id.toString()}),a){const p=e;i({type:me.LOAN,state:{id:p.id,productDetails:p.productDetails,userId:o??void 0},metadata:ve("dashboard_modal")});return}i({type:m?me.LOAN:me.GRANT,state:{...e,userId:o??void 0},metadata:ve("dashboard_modal")}),l(re.FUNDING_CTA_CLICKED,{cta_text:"Read More",cta_type:"Primary button",funding_name:x||"",funding_provider:(d?(h=e==null?void 0:e.capitalProvider)==null?void 0:h.name:(f=e==null?void 0:e.capitalProvider)==null?void 0:f.name)||"",resource_id:String(e.id),funding_type:d?"loan":"grant",button_placement:"dashboard"})},[d,e,o,i,c,l,x]);return t.jsxs("button",{type:"button",className:k("relative rounded-md border border-border bg-card p-4 cursor-pointer hover:bg-secondary text-left w-full",n),onClick:g,children:[t.jsx(Oe,{icon:"dollar",variant:"default",size:"sm",children:a?t.jsx(L,{k:"dashboard.funding_card.loan_tag",defaultValue:"Loan"}):d?t.jsx(L,{k:"dashboard.funding_card.loan_tag",defaultValue:"Loan"}):t.jsx(L,{k:"dashboard.funding_card.grant_tag",defaultValue:"Grant"})}),t.jsxs("div",{className:"flex items-start gap-3 pt-4",children:[t.jsx("div",{className:"shrink-0",children:y}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h4",{className:"mb-1.5 text-sm font-medium text-foreground line-clamp-1",children:x}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[u&&t.jsx("span",{children:u}),b&&t.jsxs("span",{children:["APR ",b]})]})]})]})]})});Xn.displayName="FundingMiniCard";const Zn=v.memo(()=>t.jsxs("div",{className:"relative rounded-md border border-border bg-card p-4 shrink-0 w-[300px]",children:[t.jsx(T,{className:"h-[18px] w-16 rounded-sm bg-border"}),t.jsxs("div",{className:"flex items-start gap-3 pt-4",children:[t.jsx(T,{className:"h-10 w-10 rounded-full shrink-0 bg-border"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx(T,{className:"h-[21px] w-3/4 mb-1.5 bg-border"}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx(T,{className:"h-[18px] w-20 bg-border"}),t.jsx(T,{className:"h-[18px] w-16 bg-border"})]})]})]})]}));Zn.displayName="FundingMiniCardSkeleton";const sa=(e=[],n=[])=>{const s=[],r=Math.max(e.length,n.length);for(let o=0;o<r;o+=1)o<e.length&&s.push(e[o]),o<n.length&&s.push(n[o]);return s},on=20,ra=e=>{const n=jt(),s=U(Vs),r=U(pn),o=U(Nt),c=U(Fs),{status:i}=Nn(),[l,a]=v.useState([]),[d,x]=v.useState(!1),u=!(r!=null&&r.users),b=xn(Us),y=!!(b!=null&&b.isActive),g=i==="open",m=y&&!!(o!=null&&o.sboData)&&g&&c,h=!y&&g,f=v.useCallback(async(p,N)=>{x(!0);try{let j=[];if(m){const _=await $s.getCRFLoanProductsList({sorting:lt(n,at.FUNDING_LOANS_CRF,s)},N),A=(_==null?void 0:_.list)||[];j=ir(A,{min:p.min,max:p.max})}else if(h){const _={offset:0,limit:on,sorting:lt(n,at.FUNDING_LOANS_NS,s),loansFilter:{loanAmount:{min:p.min,max:p.max}}};j=(await qt.getLoansList(_,N,u)).list||[]}const C={offset:0,limit:on,sorting:lt(n,at.FUNDING_GRANTS,s),grantsFilter:{grantAmount:{min:p.min,max:p.max}}},w=(await qt.getGrantsList(C,N,u)).list||[],D=m?[...j,...w]:sa(j,w);a(D)}catch(j){if(j&&typeof j=="object"&&"code"in j&&j.code==="ERR_CANCELED")return;a([])}finally{x(!1)}},[n,s,u,m,h]);return v.useEffect(()=>{if(!e){a([]);return}const p=new AbortController;return f(e,p),()=>p.abort()},[e,f]),{data:l,isLoading:d}},an=[{id:"under-10k",label:"< $10K",min:0,max:1e4},{id:"10k-25k",label:"$10K-$25K",min:1e4,max:25e3},{id:"25k-50k",label:"$25K - $50K",min:25e3,max:5e4},{id:"50k-150k",label:"$50K - $150K",min:5e4,max:15e4},{id:"150k-250k",label:"$150K - $250K",min:15e4,max:25e4},{id:"250k-500k",label:"$250K - $500K",min:25e4,max:5e5},{id:"over-500k",label:"$500K +",min:5e5,max:0}],Jn=v.memo(({className:e})=>{const[n,s]=v.useState(""),r=v.useMemo(()=>an.find(a=>a.id===n)||null,[n]),o=v.useMemo(()=>r?{min:r.min,max:r.max}:null,[r]),{data:c,isLoading:i}=ra(o),l=a=>{let d="grant";return"productDetails"in a?d="crf-loan":"loanName"in a&&(d="loan"),`${d}-${a.id}`};return t.jsxs("div",{className:k("rounded-md border border-border bg-card min-h-[310px] h-full flex flex-col p-6 gap-14 justify-center",e),children:[t.jsxs("div",{className:"flex flex-col gap-2.5 text-center",children:[t.jsx("h3",{className:"text-2xl font-normal text-foreground",children:t.jsx(L,{k:"dashboard.funding_card.title",defaultValue:"How much funding are you looking for?"})}),t.jsx("p",{className:"text-base text-muted-foreground",children:t.jsx(L,{k:"dashboard.funding_card.subtitle",defaultValue:"Select a range to view recommended options for your business"})})]}),t.jsx("div",{className:"relative overflow-x-auto w-full text-center",children:t.jsxs("div",{className:"relative inline-flex px-4",children:[t.jsx("div",{className:"absolute top-2 -translate-y-1/2 left-4 right-4 h-2 bg-muted rounded-full"}),t.jsx(Xs,{value:n,onValueChange:s,className:"gap-16 relative flex justify-between",children:an.map(a=>t.jsxs("label",{className:"flex flex-col items-center gap-2 cursor-pointer shrink-0",children:[t.jsx(Zs,{value:a.id,className:k("cursor-pointer bg-accent-muted border-accent-muted [&_svg]:fill-accent [&_svg]:stroke-accent",'relative after:content-[""] after:absolute after:left-1/2 after:top-1/2 after:-translate-x-1/2 after:-translate-y-1/2 after:w-1.5 after:h-1.5 after:rounded-full after:bg-primary after:opacity-0 after:transition-opacity',"[&:not([data-state=checked])]:hover:after:opacity-100")}),t.jsx("span",{className:"text-xs whitespace-nowrap text-muted-foreground",children:a.label})]},a.id))})]})}),n&&t.jsx("div",{className:"mt-4 flex flex-col gap-3",children:i?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"flex items-center justify-between",children:t.jsx("h4",{className:"text-xs text-foreground-muted",children:t.jsx(L,{k:"dashboard.funding_card.recommended_title",defaultValue:"Recommended funding options for you"})})}),t.jsx("div",{className:"flex gap-3 overflow-x-auto pb-2 -mx-4 px-4",children:Array.from({length:3},(a,d)=>t.jsx(Zn,{},d))})]}):c.length===0?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"flex items-center justify-between",children:t.jsx("h4",{className:"text-xs text-foreground-muted",children:t.jsx(L,{k:"dashboard.funding_card.recommended_title",defaultValue:"Recommended funding options for you"})})}),t.jsx("div",{className:"text-center text-sm text-muted-foreground",children:t.jsx(L,{k:"dashboard.funding_card.no_results",defaultValue:"No funding options foun
21d for this range"})})]}):t.jsx("div",{className:"relative -mx-4 px-4",children:t.jsxs(Et,{opts:{align:"start",loop:!1},className:"w-full",children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsx("h4",{className:"text-xs text-foreground-muted",children:t.jsx(L,{k:"dashboard.funding_card.recommended_title",defaultValue:"Recommended funding options for you"})}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(On,{}),t.jsx(An,{})]})]}),t.jsxs(Dt,{className:"gap-3",children:[c.map(a=>t.jsx(Ke,{className:"basis-[300px]",children:t.jsx(Xn,{data:a,className:"w-[300px]"})},l(a))),t.jsx(Ke,{className:"basis-[300px]",children:t.jsxs(Le,{to:"/fundings/list",className:"flex items-center justify-center h-full text-xs text-foreground gap-2 hover:text-accent transition-colors",children:[t.jsx(L,{k:"dashboard.funding_card.view_all",defaultValue:"View all"}),t.jsx(ye,{className:"h-3 w-3"})]})})]})]})})})]})});Jn.displayName="DashboardFundingCard";const es=v.memo(()=>t.jsxs("div",{className:"rounded-md border border-border bg-card h-full flex flex-col p-6 gap-14 justify-center",children:[t.jsxs("div",{className:"flex flex-col gap-2.5 text-center",children:[t.jsx(T,{className:"h-8 w-3/4 mx-auto rounded-sm bg-border"}),t.jsx(T,{className:"h-5 w-2/3 mx-auto rounded-sm bg-border"})]}),t.jsx("div",{className:"w-full",children:t.jsx(T,{className:"h-12 w-full rounded-sm bg-border"})})]}));es.displayName="DashboardFundingSkeleton";const ts=()=>t.jsxs("div",{className:"bg-card border border-border rounded-md p-6 h-full flex flex-col gap-5",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:"size-8"}),t.jsx(T,{className:"h-4 w-24 rounded-sm bg-border flex-1 mx-2"}),t.jsx("div",{className:"size-8"})]}),t.jsx("div",{className:"flex-1",children:t.jsxs("div",{className:"h-full flex flex-col max-w-[240px] mx-auto justify-between gap-5",children:[t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(T,{className:"h-24 w-48 rounded-sm bg-border"})}),t.jsx(T,{className:"h-10 w-full rounded-md bg-border"})]})})]}),oa=5e3,ns=v.memo(({data:e,preHeaderKey:n})=>{const{t:s}=ie(),{track:r}=Se();if(!e||!Array.isArray(e)||e.length===0)return t.jsx(ts,{});const o=e,c=n?s(n):null,i=o.length>1,l=x=>t.jsxs("div",{className:"flex items-center justify-between",children:[x&&t.jsx(On,{}),c&&t.jsx("span",{className:"text-sm font-normal text-accent truncate min-w-0 flex-1 text-center px-2",children:c}),x&&t.jsx(An,{})]}),a=x=>{r(re.CTA_CLICKED,{cta_text:x.ctaLabel||"",button_placement:"Dashboard Information Card",button_id:x.id.toString()})},d=x=>t.jsxs("div",{className:"h-full flex flex-col max-w-[240px] mx-auto justify-between gap-6",children:[t.jsx("p",{className:"text-xl font-medium text-foreground text-center flex-1 flex items-center justify-center",children:x.text}),x.ctaLabel&&x.ctaUrl&&t.jsx(ae,{variant:"default",className:"w-full cursor-pointer overflow-hidden",asChild:!0,onClick:()=>a(x),children:Ln(x.ctaUrl)?t.jsx(Le,{to:x.ctaUrl,children:t.jsx("span",{className:"truncate min-w-0",children:x.ctaLabel})}):t.jsx("a",{href:x.ctaUrl,target:"_blank",rel:"noopener noreferrer",children:t.jsx("span",{className:"truncate min-w-0",children:x.ctaLabel})})})]});return i?t.jsx("div",{className:"bg-card border border-border rounded-md p-6 h-full min-h-[250px] flex flex-col gap-5",children:t.jsxs(Et,{plugins:[et({delay:oa})],opts:{loop:!0},className:"flex flex-col gap-5 flex-1",children:[l(!0),t.jsx("div",{className:"flex-1 [&>[data-slot=carousel-content]]:h-full",children:t.jsx(Dt,{className:"h-full",children:o.map(x=>t.jsx(Ke,{className:"h-full",children:d(x)},x.id))})})]})}):t.jsxs("div",{className:"bg-card border border-border rounded-md p-6 h-full min-h-[250px] flex flex-col",children:[l(!1),t.jsx("div",{className:"flex-1",children:d(o[0])})]})});ns.displayName="DashboardInformationCard";const aa=new Set(["NOT_STARTED","IN_PROGRESS","COMPLETED"]),ia=new Set(["IN_PROGRESS","COMPLETED"]),ss=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ca=e=>typeof e=="string"&&aa.has(e),la=e=>e==null||typeof e=="string"&&ia.has(e),da=e=>
21ss(e)&&(typeof e.id=="number"||typeof e.id=="string")&&typeof e.title=="string"&&la(e.status);function ua(e){return ss(e)&&typeof e.id=="number"&&typeof e.title=="string"&&(e.description==null||typeof e.description=="string")&&ca(e.status)&&(e.outcome==null||typeof e.outcome=="string")&&Array.isArray(e.steps)&&e.steps.every(da)}const rs=v.memo(({data:e})=>{const{t:n}=ie(),s=v.useMemo(()=>xr(n),[n]);return ua(e)?t.jsx(Js,{description:e.description,labels:s,learningPathId:e.id,outcome:e.outcome,status:e.status,steps:e.steps,title:e.title}):t.jsx(gn,{})});rs.displayName="DashboardLearningPathCard";const fa="https://api.scale.nextstreet.com",ma={toggleTodoItem:e=>Gs.post(`${fa}/api/v1/todo/user-items/${e}/check`).then(({data:n})=>n)},os=v.memo(({item:e,onToggle:n})=>{var i;const[s,r]=v.useState(!1),o=async l=>{if(s)return;r(!0);const a=e.isChecked;n(e.id,l,e.title);try{await ma.toggleTodoItem(e.id)}catch{n(e.id,a,e.title)}finally{r(!1)}},c=(i=e.link)==null?void 0:i.startsWith("http");return t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(hr,{id:`todo-${e.id}`,checked:e.isChecked,onCheckedChange:o,disabled:s,className:"h-4 w-4 rounded-xs border border-input cursor-pointer data-[state=checked]:border-accent data-[state=checked]:bg-accent data-[state=checked]:text-white"}),t.jsxs("div",{className:"flex flex-col gap-1.5 min-w-0",children:[t.jsx("label",{htmlFor:`todo-${e.id}`,className:"text-sm font-medium text-foreground cursor-pointer leading-4 truncate-2 line-clamp-1",children:e.title}),e.link?c?t.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-normal text-accent hover:text-muted-foreground",children:[t.jsx("span",{className:"truncate",children:e.subt
21itle}),t.jsx(ye,{className:"h-4 w-4 shrink-0"})]}):t.jsxs(Le,{to:e.link,className:"inline-flex items-center gap-2 text-sm font-normal text-accent hover:text-muted-foreground",children:[t.jsx("span",{className:"truncate",children:e.subtitle}),t.jsx(ye,{className:"h-4 w-4 shrink-0"})]}):t.jsx("span",{className:"text-sm text-muted-foreground truncate",children:e.subtitle})]})]})});os.displayName="TodoItemRow";const as=()=>t.jsxs("div",{className:"border border-border rounded-md p-6 bg-card h-full flex flex-col gap-5",children:[t.jsx(T,{className:"h-5 w-32 rounded-sm bg-border"}),t.jsx("div",{className:"flex flex-col gap-4",children:[1,2,3,4].map(e=>t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(T,{className:"h-4 w-4 rounded-sm bg-border"}),t.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[t.jsx(T,{className:"h-3.5 w-3/4 rounded-sm bg-border"}),t.jsx(T,{className:"h-5 w-1/2 rounded-sm bg-border"})]})]},e))})]}),is=v.memo(({data:e,cardType:n,preHeaderKey:s})=>{const{track:r}=Se(),[o,c]=v.useState(()=>Array.isArray(e)&&e.length>0?e:[]);v.useEffect(()=>{Array.isArray(e)?c(e):c([])},[e]);const i=v.useCallback((l,a,d)=>{r(re.TODO_ITEM_UPDATED,{item_text:d,interaction_type:a?"Completed":"Uncompleted"}),c(x=>x.map(u=>u.id===l?{...u,isChecked:a}:u))},[r]);return n!==R.TODO_LIST||!e||!Array.isArray(e)||e.length===0?t.jsx(as,{}):t.jsxs("div",{className:"border border-border rounded-md p-6 bg-card h-full min-h-[300px] flex flex-col gap-5",children:[t.jsx("h3",{className:"text-sm font-normal text-muted-foreground",children:s?t.jsx(L,{k:s}):t.jsx(L,{k:"dashboard.todo_card.title",defaultValue:"Your to-do list"})}),t.jsx("div",{className:"flex flex-col gap-4",children:o.map(l=>t.jsx(os,{item:l,onToggle:i},l.id))})]})});is.displayName="DashboardTodoCard";const cs=()=>t.jsxs("div",{className:"bg-card border border-border rounded-md p-5 h-full flex flex-col gap-14 justify-between",children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsx(T,{className:"h-4 w-28 rounded-sm bg-border"}),t.jsx(T,{className:"h-6 w-20 rounded-sm bg-border"})]}),t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(T,{className:"h-6 w-full rounded-sm bg-border"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(T,{className:"h-3.5 w-3.5 rounded-sm bg-border"}),t.jsx(T,{className:"h-3 w-40 rounded-sm bg-border"})]})]}),t.jsxs("div",{className:"flex items-end justify-between",children:[t.jsx(T,{className:"h-9 w-32 rounded-md bg-border"}),t.jsx(T,{className:"h-24 w-24 rounded-sm bg-border"})]})]}),ls=v.memo(({data:e,preHeaderKey:n,secondaryCtaKey:s})=>{var E;const{t:r}=ie(),{sendCustomEventToGTag:o}=$e(),{openModal:c}=Xe(),i=U(Ue),l=U(Bs),{track:a}=Se();if(!e||!("startTime"in e)||!("timeDisplayFormat"in e))return t.jsx(cs,{});const d=e,{id:x,name:u,organizer:b,formattedEventTime:y,location:g}=d,m=s?r(s):r("dashboard.upcoming_event_card.cta",{defaultValue:"View Details"}),h=()=>{a(re.EVENTS_CTA_CLICKED,{event_title:u,event_organizer:b||"",cta_text:m,cta_type:"Primary button",resource_id:String(x),button_placement:"dashboard"}),o("event_readmore","readmore",x,["dashboard"],i,!1),De.emit({referenceType:"event",referenceId:x.toString()}),c({type:me.EVENT,state:{...d,userId:i},metadata:ve("dashboard_modal")})},f=g==null?void 0:g.type,p=f===zs.VIRTUAL,N=(E=g==null?void 0:g.address)==null?void 0:E.city,j=n?r(n):r("dashboard.upcoming_event_card.header",{defaultValue:"Upcoming Event"}),C=t.jsx(L,{k:"dashboard.upcoming_event_card.virtual",defaultValue:"Virtual Meet"});return t.jsxs("div",{className:"border border-border rounded-md p-5 bg-primary-muted/30 h-full min-h-[300px] flex flex-col gap-14 justify-between relative overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsx("span",{className:"text-sm font-normal text-primary-muted-foreground",children:j}),f&&t.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-sm bg-accent-muted",children:[p?t.jsx(ze,{className:"h-3 w-3 text-muted-foreground"}):t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:p?C:N})]})]}),t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx("h3",{className:"text-lg font-normal text-primary-muted-foreground line-clamp-2",children:u}),y&&t.jsxs("div",{className:"flex items-center gap-2 text-primary-muted-foreground",children:[t.jsx(gr,{className:"h-3.5 w-3.5"}),t.jsx("span",{className:"text-xs",children:y})]})]}),t.jsxs("div",{className:"flex items-end justify-between relative",children:[t.jsxs(ae,{variant:"default",className:"gap-2 cursor-pointer",onClick:h,children:[m,t.jsx(ye,{className:"h-4 w-4"})]}),t.jsx("img",{src:(l==null?void 0:l.upcomingEventImage)||"",alt:"",className:"absolute -bottom-7 -right-7 w-24 h-24 object-contain"})]})]})});ls.displayName="DashboardUpcomingEventCard";const pa={[R.BANNER]:Un,[R.FUNDING_SLIDER]:Jn,[R.ADVISOR_CONTENT]:be,[R.ADVISOR_CONTENT_COLOR]:be,[R.ADVISOR_CONTENT_GRADIENT]:be,[R.PROGRAMS_RESOURCES_CONTENT]:be,[R.PROGRAMS_RESOURCES_CONTENT_COLOR]:be,[R.PROGRAMS_RESOURCES_CONTENT_GRADIENT]:be,[R.TODO_LIST]:is,[R.UPCOMING_EVENT]:ls,[R.COURSE]:Qn,[R.LEARNING_PATH]:rs,[R.INFORMATION]:ns},xa={[R.BANNER]:Rt,[R.FUNDING_SLIDER]:es,[R.ADVISOR_CONTENT]:ge,[R.ADVISOR_CONTENT_COLOR]:ge,[R.ADVISOR_CONTENT_GRADIENT]:ge,[R.PROGRAMS_RESOURCES_CONTENT]:ge,[R.PROGRAMS_RESOURCES_CONTENT_COLOR]:ge,[R.PROGRAMS_RESOURCES_CONTENT_GRADIENT]:ge,[R.TODO_LIST]:as,[R.UPCOMING_EVENT]:cs,[R.COURSE]:Yn,[R.LEARNING_PATH]:gn,[R.INFORMATION]:ts},ha=[{row:1,cards:[{id:1,cardType:R.BANNER}]},{row:2,cards:[{id:3,cardType:R.ADVISOR_CONTENT},{id:4,cardType:R.TODO_LIST}]},{row:3,cards:[{id:5,cardType:R.UPCOMING_EVENT},{id:6,cardType:R.FUNDING_SLIDER}]}],ga=[R.TODO_LIST,R.UPCOMING_EVENT],ba=[R.FUNDING_SLIDER,R.LEARNING_PATH],Na=316,va=({card:e})=>{const n=pa[e.cardType];return n?t.jsx(n,{data:e.data,cardType:e.cardType,preHeaderKey:e.preHeaderKey,engagedPreHeaderKey:e.engagedPreHeaderKey,primaryCtaKey:e.primaryCtaKey,secondaryCtaKey:e.secondaryCtaKey}):t.jsxs("div",{className:"text-center py-4 text-gray-500",children:["Card type: ",e.cardType," (not yet implemented)"]})},At=v.memo(({children:e,cardType:n,originalCardType:s,className:r=""})=>{const o=Pe({query:`(max-width: ${ft}px)`}),c=Pe({query:`(min-width: ${ft+1}px) and (max-width: 1023px)`}),i=s??n,l=ga.includes(i),a=ba.includes(i);return l?o||c?t.jsx("div",{className:`w-full min-w-0 ${r}`,children:e}):t.jsx("div",{className:`shrink-0 max-h-[360px] ${r}`,style:{width:`${Na}px`},children:e}):t.jsx("div",{className:` 22 min-w-0 flex-1 23 ${a?"self-stretch":""} 24 ${o||c||a?"":"max-h-[360px]"} 25 ${r} 26 `,children:e})});At.displayName="FlexItem";const Lt=v.memo(({children:e,className:n=""})=>t.jsx("div",{className:` 27 flex w-full flex-col gap-8 28 desktop:flex-row 29 ${n} 30 `,children:e}));Lt.displayName="FlexRow";const Pt=v.memo(({children:e,className:n=""})=>t.jsx("div",{className:` 31 flex w-full flex-col gap-8 px-4 32 md:px-12 33 ${n} 34 `,children:e}));Pt.displayName="DashboardFlex";const dt=v.memo(function(){const n=U(Nt);return t.jsx("div",{className:"px-4 py-4 md:px-12 md:py-8",children:t.jsxs("h1",{className:"text-2xl font-family-1 font-bold leading-8 text-foreground md:text-4xl md:leading-10",children:[t.jsx(L,{k:"dashboard.home_section.header"})," ",n==null?void 0:n.firstName]})})}),ds=v.memo(()=>t.jsx(Pt,{children:ha.map(e=>t.jsx(Lt,{children:e.cards.map(n=>{const s=xa[n.cardType];return t.jsx(At,{cardType:n.cardType,children:t.jsx(s,{})},n.id)})},e.row))}));ds.displayName="DashboardSkeleton";const ya=()=>{var r;const e=ue(o=>o.recommendedResources),n=ue(o=>o.isRecommendedResourcesLoading),s=ue(o=>o.reload);return{advisorsData:{data:(e==null?void 0:e.advisors)??[],isLoading:n,fetchData:s},coursesData:{data:(e==null?void 0:e.courses)??[],isLoading:n,fetchData:s},eventsData:{data:(e==null?void 0:e.events)??[],isLoading:n,fetchData:s},programsResourcesData:{data:(e==null?void 0:e.programsResources)??[],isLoading:n,fetchData:s},fundingData:{data:(e==null?void 0:e.funding)??[],isLoading:n,fetchData:s},allTabCardTypes:((r=e==null?void 0:e.allTabCards)==null?void 0:r.map(o=>o.cardType))??[],isLoading:n}},Ee=({resource:e,key:n})=>t.jsx(rr,{resource:e,isDashboard:!0,resourceId:e.data.id},n||`resource-${e.data.id}`),ja=({cardTypes:e,advisorsData:n,coursesData:s,eventsData:r,programsResourcesData:o,fundingData:c,itemsLimit:i})=>{var x,u,b,y,g;const l=[],a={ADVISORS:0,COURSES:0,EVENTS:0,PROGRAMS_RESOURCES:0,FUNDING:0};if(e.length===0)return l;const d=_r(i).flatMap(()=>e);for(const m of d){if(l.length>=i)continue;let h=null,f="";switch(m){case"ADVISORS":{const p=a.ADVISORS,N=(x=n.data)==null?void 0:x[p];N&&(h=Tn(N),f=`advisor-${N.id}-${p}`,a.ADVISORS+=1);break}case"FUNDING":{const p=a.FUNDING,N=(u=c.data)==null?void 0:u[p];N&&("productDetails"in N?h=Cn(N):"loanName"in N?h=_n(N):h=wn(N),f=`funding-${N.id}-${p}`,a.FUNDING+=1);break}case"COURSES":{const p=a.COURSES,N=(b=s.data)==null?void 0:b[p];N&&(h=Sn(N),f=`course-${N.id}-${p}`,a.COURSES+=1);break}case"EVENTS":{const p=a.EVENTS,N=(y=r.data)==null?void 0:y[p];N&&(h=jn(N),f=`event-${N.id}-${p}`,a.EVENTS+=1);break}case"PROGRAMS_RESOURCES":{const p=a.PROGRAMS_RESOURCES,N=(g=o.data)==null?void 0:g[p];N&&(h=N.type===Qe.COHORT_PROGRAM?vn(N):yn(N),f=`program-${N.id}-${p}`,a.PROGRAMS_RESOURCES+=1);break}}h&&l.push(Ee({resource:h,key:f}))}return l},we=3,Sa=e=>{switch(e){case X.ADVISORS:return"advisors_module.search_section.advisors_section.no_advisor_matched";case X.COURSES:return"course_module.search_section.courses_empty_section_text";case X.EVENTS:return"events_module.search_session.events_empty_section_text";case X.PROGRAMS_RESOURCES:return"partner_resources_module.search_section.partner_resources_empty_section_text";case X.FUNDING:return"funding_module.fundings_empty_section_text";case X.ALL:default:return"partner_resources_module.search_section.partner_resources_empty_section_text"}},us=v.memo(()=>{var f;const{t:e}=ie(),{track:n}=Se(),[s,r]=v.useState(X.ALL),o=U(pn),c=Cr(e,o),{status:i}=Nn(),l=i==="blocked",{advisorsData:a,coursesData:d,eventsData:x,programsResourcesData:u,fundingData:b,allTabCardTypes:y,isLoading:g}=ya(),m=v.useMemo(()=>i==="open"?b:{...b,data:(b.data||[]).filter(p=>!("productDetails"in p||"loanName"in p))},[b,i]),h=()=>{let p=[];switch(s){case X.ADVISORS:p=(a.data||[]).slice(0,we).map(N=>Ee({resource:Tn(N),key:`advisor-${N.id}`}));break;case X.COURSES:p=(d.data||[]).slice(0,we).map(N=>Ee({resource:Sn(N),key:`course-${N.id}`}));break;case X.EVENTS:p=(x.data||[]).slice(0,we).map(N=>Ee({resource:jn(N),key:`event-${N.id}`}));break;case X.PROGRAMS_RESOURCES:p=(u.data||[]).slice(0,we).map(N=>{const j=N.type===Qe.COHORT_PROGRAM?vn(N):yn(N);return Ee({resource:j,key:`program-${N.id}`})});break;case X.FUNDING:{const N=(m.data||[]).map(C=>"productDetails"in C?Cn(C):"loanName"in C?_n(C):wn(C));p=(l?[Nr(),...N]:N).slice(0,we).map(C=>Ee({resource:C}));break}case X.ALL:{p=ja({cardTypes:y,advisorsData:a,coursesData:d,eventsData:x,programsResourcesData:u,fundingData:m,itemsLimit:y.length});break}}return g?t.jsx("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:we},(N,j)=>t.jsx(vr,{},j))}):p.length===0?t.jsx(br,{icon:t.jsx(t.Fragment,{}
34),title:"",text:e(Sa(s)),newDesign:!0,showImage:!1,className:"w-full"}):t.jsx("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:p})};return t.jsxs("section",{className:"w-full px-4 py-6 md:px-12 md:py-8","data-testid":"dashboard-recommended-section",children:[t.jsxs("div",{className:"flex flex-col gap-4 mb-3 pb-3 border-b border-border md:flex-row md:items-center md:justify-between",children:[t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("h2",{className:"font-family-1 text-2xl font-semibold text-secondary-foreground md:text-3xl",children:t.jsx(L,{k:"dashboard.recommended_resources.title",defaultValue:"Your Top Recommended Resources"})}),t.jsx("p",{className:"text-sm text-muted-foreground",children:t.jsx(L,{k:"dashboard.recommended_resources.subtitle",defaultValue:"Recommended based on onboarding answers in your account."})})]}),t.jsx(ae,{variant:"outline",size:"sm",asChild:!0,className:"w-fit bg-card text-xs text-secondary-foreground",onClick:()=>{n(re.CTA_CLICKED,{cta_text:e("dashboard.recommended_resources.edit_account_button",{defaultValue:"Edit my account"}),button_placement:"Recommended Resources Header",button_id:"edit_account_button"})},children:t.jsxs(Le,{to:"/my-account/profile",children:[t.jsx(Er,{size:16}),t.jsx(L,{k:"dashboard.recommended_resources.edit_account_button",defaultValue:"Edit my account"})]})})]}),t.jsxs("div",{className:"flex items-center justify-between gap-4 mb-6",children:[t.jsx(yr,{value:s,onValueChange:p=>{var C;const N=p;r(N);const j=((C=c.find(E=>E.value===N))==null?void 0:C.label)||N;n(re.TAB_SELECTED,{tab_text:j})},className:"flex-1 min-w-0 overflow-hidden",children:t.jsx(jr,{className:"h-auto p-0 bg-transparent gap-4 justify-start w-full overflow-x-auto md:gap-6",children:c.map(p=>t.jsx(Sr,{value:p.value,className:"flex-none px-2 py-2 bg-transparent border-b-2 border-transparent rounded-none text-muted-foreground hover:text-accent hover:border-b-primary data-[state=active]:text-accent data-[state=active]:border-b-primary data-[state=active]:hover:border-b-primary data-[state=active]:shadow-none font-medium whitespace-nowrap text-sm md:text-base transition-colors","data-testid":`dashboard-tab-${p.value}`,children:p.label},p.value))})}),s!==X.ALL&&t.jsxs(Le,{to:((f=c.find(p=>p.value===s))==null?void 0:f.path)||"/",className:"flex-none flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors whitespace-nowrap",onClick:()=>{n(re.CTA_CLICKED,{cta_text:e("dashboard.recommended_resources.view_all_link",{defaultValue:"View all"}),button_placement:"Recommended Resources Header",button_id:"view_all_link"})},children:[t.jsx(L,{k:"dashboard.recommended_resources.view_all_link",defaultValue:"View all"}),t.jsx(ye,{size:16})]})]}),t.jsx("div",{className:"w-full min-h-[450px] flex items-center",children:h()})]})});us.displayName="RecommendedResourcesSection";const Ca=3e4,ut=()=>{document.hidden||ue.getState().refresh()},_a=e=>{v.useEffect(()=>{if(!e)return;const n=setInterval(ut,Ca);return document.addEventListener("visibilitychange",ut),()=>{clearInterval(n),document.removeEventListener("visibilitychange",ut)}},[e])},fs=v.memo(()=>{const{t:e}=ie(),n=dn(),s=jt(),{title:r,metaData:o}=U(Hs(Wt.HOME)),c=U(ln),{tabs:i,tabsReady:l}=Ks(),a=cn(),d=ue(y=>y.data),x=ue(y=>y.isLoading),u=ue(y=>y.error),b=ue(y=>y.prefetch);return _a(c),v.useEffect(()=>{n(qs(Wt.HOME))},[n]),v.useLayoutEffect(()=>{!c&&l&&i.length>0&&(s===hn.US_BANK?a("/partners/programs-resources"):a(i[0].path))},[c,a,i,l,s]),v.useEffect(()=>{c&&b()},[b,c]),c?x?t.jsxs(it,{className:s,withOutlet:!1,title:e("common.homepage"),children:[t.jsx(ct,{pageTitle:r,pageMetaData:o}),t.jsxs("div",{className:"mb-24 max-w-[1440px] mx-auto",children:[t.jsx(dt,{}),t.jsx(ds,{})]})]}):u||!d?t.jsxs(it,{className:s,withOutlet:!1,title:e("common.homepage"),children:[t.jsx(ct,{pageTitle:r,pageMetaData:o}),t.jsxs("div",{className:"dashboard-home-page mb-24",children:[t.jsx(dt,{}),t.jsx("div",{className:"text-center py-8",children:t.jsx("p",{className:"text-red-500",children:u&&(u!=null&&u.message)?u.message:"Failed to load dashboard"})})]})]}):t.jsxs(it,{className:s,withOutlet:!1,title:e("common.homepage"),children:[t.jsx(ct,{pageTitle:r,pageMetaData:o}),t.jsxs("div",{className:"font-family-2 mb-24 max-w-[1440px] mx-auto",children:[t.jsx(dt,{}),t.jsx(Pt,{children:d.rows.map((y,g)=>t.jsx(Lt,{children:y.cards.map(m=>t.jsx(At,{cardType:m.cardType,originalCardType:m.originalCardType,children:t.jsx(va,{card:m})},m.id))},g))}),t.jsx(us,{})]})]}):null});fs.displayName="DashboardHomePage";const wa=()=>{const{t:e}=ie();return t.jsx(Ws,{withOutlet:!1,title:e("common.header_section.funding"),className:"fundings_page_wrapper",children:t.jsx(pr,{})})},Ta=v.memo(wa),Ea=()=>{const e=jt(),n=Vr(),s=xn(Ys),r=v.useMemo(()=>e===hn.VERIZON?Ta:fs,[e]);return t.jsxs(vt,{value:"home",children:[t.jsx(r,{}),(s==null?void 0:s.isActive)===!0&&t.jsx(Or,{}),n.length>0&&t.jsx(Mr,{documentsUpdatedList:n})]})},Gi=v.memo(Ea);export{Gi as default};
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.