PageSourceSearch

https://app.getinthegamela.com/assets/index-ChlskHXi.js

js getinthegamela.com collected 2026-10-07 21:53:56 UTC 6,077 bytes, 1 lines download raw bytes

1import{r as m,j as s,w as k}from"./vendor-framework-CobW1Mgl.js";import{B as y,a as B}from"./index-ByUtGP9s.js";import{d0 as E,j as D,a0 as G,a1 as L,n as d,S as M,D as F,bD as H,b as A,bV as $,gU as U,M as z,a8 as q,N as Q,a2 as Y}from"./index-CpCPgWAc.js";import{P as Z}from"./index-BMiydne9.js";import{b as J}from"./index-D0CjfDwJ.js";import{u as K}from"./useTenantColors-DI6dvOcy.js";import{B as C}from"./Breakline-C43pPvyo.js";import{g as V}from"./utils-Dx1YwlHG.js";import"./chevron-left-C667mzdu.js";import"./vendor-i18n-B6HYivoC.js";import"./vendor-firebase-Bl-igiUH.js";import"./vendor-state-DA1MgQuN.js";import"./vendor-utils-CAEY8Ghx.js";import"./index-B0E82Zpd.js";import"./index-BYopv6Ei.js";import"./statisticsService-CXSKC5qi.js";import"./useAnalytics-xf2pR-3W.js";import"./useBookingModal-Bn7Up9wt.js";import"./calendar-C1auelsA.js";import"./users-V9P1ttSO.js";import"./index-BpqL7HGF.js";import"./index-CUwbJZKW.js";import"./SkeletonOrganizationCard-Dq5QArbM.js";import"./advisor-DLmEcu8w.js";import"./SkeletonSessionCard-DOIJy4SZ.js";import"./showTopToast-D-hkrqIo.js";import"./advisorSession-BAaortgj.js";import"./map-pin-DXZWXv2e.js";const W=t=>t.client,X=({className:t})=>s.jsx("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",children:s.jsx("path",{fill:"CurrentColor",fillRule:"evenodd",d:"M1 1.3a1.7 1.7 0 0 1 2.4 0L9 6.9l5.6-5.6A1.7 1.7 0 1 1 17 3.7l-6.8 6.8a1.7 1.7 0 0 1-2.4 0L1 3.7a1.7 1.7 0 0 1 0-2.4Z",clipRule:"evenodd"})}),ss=m.memo(X),O=({title:t,className:n,children:a})=>{const[o,e]=m.useState(!1),i=m.useCallback(()=>{e(c=>!c)},[]);return s.jsxs("div",{className:E("dropdown_section",n),children:[s.jsxs("div",{onClick:i,className:E("dropdown_section_button",{active:o}),children:[s.jsx("p",{className:"title",children:t}),s.jsx(ss,{className:"icon"})]}),o&&s.jsx("div",{className:"dropdown_section_content",children:a})]})},h={PHOTO:"Photo",SERVED_GEOGRAPHIES:"Served Geographies",TARGET_INDUSTRIES:"Target Industries"},es={michigan:"Michigan",global:"Global",midwest_region:"Midwest region",national:"National"},ts=t=>es[t]??t,ns=(t,n)=>{const a=t.split(";").map(i=>i.trim()).filter(Boolean),o=V(n);return a.map(i=>{const c=o.find(l=>l.value===i);return c==null?void 0:c.name}).filter(Boolean).join(", ")},x=(t,n,a)=>s.jsxs("p",{className:"content_row",children:[s.jsxs("b",{children:[t,":"]})," ",s.jsx("span",{children:n})]},a),j=(t,n,a,o=null)=>{if(t===h.PHOTO)return null;if(typeof n=="object")return s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"content_row",children:s.jsxs("b",{children:[t,":"]})},t),s.jsx("ul",{className:"content_list",children:Object.entries(n).map(([e,i])=>s.jsx("li",{children:j(t,i,a,e)},e))})]});switch(t){case h.SERVED_GEOGRAPHIES:return x(o??t,ts(n),t);case h.TARGET_INDUSTRIES:return x(t,ns(n,a),t);default:{const e=o??t;return x(e,n,e)}}},os=({sboAsClientData:t})=>{const{t:n}=D(),o=G({query:`(max-width: ${L}px)`})?"left":"center",{businessOwnerProfile:e,referrals:i}=t;return s.jsxs(s.Fragment,{children:[e&&s.jsxs("div",{className:"client_profile",children:[s.jsx(C,{title:s.jsx(d,{k:"clients_module.clients_section.small_business_owner_profile"}),subTitle:s.jsx(d,{k:"clients_module.clients_section.subheading_of_the_sbo_client_details"}),align:o}),s.jsx("div",{className:"client_profile__container",children:Object.entries(e).map(([c,l])=>s.jsx(O,{title:c,className:"dropdown_indent",children:Object.entries(l).map(([p,_])=>j(p,_,n))},c))})]}),i&&s.jsxs("div",{className:"client_profile",children:[s.jsx(C,{title:s.jsx(d,{k:"clients_module.clients_section.sbo_referral"}),subTitle:s.jsx(d,{k:"clients_module.clients_section.sbo_referral_subheading"}),align:o}),s.jsx("div",{className:"client_profile__container",children:i==null?void 0:i.map(({date:c,...l},p)=>s.jsx(O,{title:`${new Date(c).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"2-digit",year:"numeric"})} referred to ${l["Referred to"]}`,className:"dropdown_indent",children:s.jsx("div",{className:"referral_content",children:Object.entries(l).map(([_,u])=>j(_,u,n))})},p))})]})]})},is=m.memo(os),rs=()=>{var b,g,f,w,S,N,v,I;const t=M(),{openModal:n}=F(),{triggerNotFound:a}=H(),{id:o}=k(),{data:e,isLoading:i}=A(W),{colorVariables:c}=K(),l=A($);m.useEffect(()=>{t(U(Number(o)))}
1,[o]);const p=m.useCallback(()=>{var P;if(!e)return;const r=(P=e.businessOwnerProfile)==null?void 0:P.Profile;n({type:z.ADVISOR_REFERRAL,state:{sboInfoId:Number(o),firstName:r==null?void 0:r.Name,lastName:r==null?void 0:r.Surname,photo:r==null?void 0:r.Photo}})},[e,o,n]);if(m.useEffect(()=>{!e&&!i&&a()},[e,i,a]),i||!e)return s.jsx(q,{});const _=(g=(b=e==null?void 0:e.businessOwnerProfile)==null?void 0:b.Profile)==null?void 0:g.Photo,u=(w=(f=e==null?void 0:e.businessOwnerProfile)==null?void 0:f.Profile)==null?void 0:w.Name,R=(N=(S=e==null?void 0:e.businessOwnerProfile)==null?void 0:S.Profile)==null?void 0:N.Surname,T=((v=e==null?void 0:e["Business Information"])==null?void 0:v["Business Name"])||((I=e==null?void 0:e["Business Information"])==null?void 0:I["SBO Type"]);return s.jsx(Q,{value:"clients",children:s.jsxs("div",{className:"client_page",children:[s.jsxs("div",{className:"client_page__header",children:[s.jsx(y,{className:"client_page_back_button",type:B.CLIENT,iconColor:c==null?void 0:c.text.text_on_the_dark_background}),s.jsx("div",{className:"client_page__empty_container"})]}),s.jsxs("div",{className:"client_page__container",children:[s.jsxs("div",{className:"client_page__container_header",children:[s.jsx(Z,{photo:_,size:{small:"100",large:"184"},firstName:u,lastName:R,description:T,className:"client_page__profile_card"}),(l==null?void 0:l.tenantFeatures.some(r=>(r==null?void 0:r.featureName)==="Advisor Referral"&&(r==null?void 0:r.isActive)))&&s.jsx(Y,{type:"btn",btnLook:"filled-gray",size:"medium",value:s.jsx(d,{k:"common.referral_button"}),onClick:p})]}),s.jsx(J,{sboInfoId:o,title:s.jsx(d,{k:"common.sessions"}),className:"client_page__session",hiddenProfile:!0}),s.jsx(is,{sboAsClientData:e})]})]})})},Bs=m.memo(rs);export{Bs 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.