1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e2f03980-f2e4-41a5-805d-c6034eef0bca",e._sentryDebugIdIdentifier="sentry-dbid-e2f03980-f2e4-41a5-805d-c6034eef0bca")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e2f03980-f2e4-41a5-805d-c6034eef0bca",e._sentryDebugIdIdentifier="sentry-dbid-e2f03980-f2e4-41a5-805d-c6034eef0bca")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};"use strict";_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[Error().stack],{"_sentryBundlerPluginAppKey:grow-therapy-ssr":!0}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6728],{52685:function(e,t,n){n.d(t,{S:function(){return i},p:function(){return d}});var r,i,l=n(52322),o=n(12524),a=n.n(o),s=n(57905);function d(e){let{className:t,use:n="primary"}=e;return(0,l.jsx)("hr",{className:(0,s.overrideTailwindClasses)(a()({"text-neutral-800":"primary"===n,"text-neutral-500":"secondary"===n},"w-full",t)),"aria-hidden":!0})}(r=i||(i={})).Primary="primary",r.Secondary="secondary"},30048:function(e,t,n){n.d(t,{q:function(){return f},M:function(){return m}});var r=n(52322),i=n(53481),l=n(40087),o=n(28904),a=n(12524),s=n.n(a),d=n(57905),c=n(29900);function u(e){let{providerTagUse:t,blockTagclassName:n,blockTagIcon:l,iconClassName:o,label:a,use:u,"data-testid":v,"data-tooltip-id":f,"aria-describedby":m,role:p,tabIndex:h}=e;return(0,r.jsxs)(i.BlockTag,{"data-testid":v,use:null!=u?u:"neutral",className:(0,d.overrideTailwindClasses)(s()("mb-2 mr-2 sm:py-2.5 sm:text-sm",{"py-1.5 text-xs":"srp-provider-card"===t},n)),excludeMargin:!0,as:"text","data-tooltip-id":f,"aria-describedby":m,role:p,tabIndex:h,children:[(0,r.jsx)(i.Icon,{icon:c.Z[l],className:s()("grow-0 pr-2",o)}),(0,r.jsx)("span",{suppressHydrationWarning:!0,children:a})]})}var v=n(75368);function f(e){let{nextAvailableLabel:t,isLoading:n,providerShortId:o}=e;if(n)return(0,r.jsx)("div",{className:"block text-center md:inline-block md:text-start",children:(0,r.jsx)(i.Skeleton,{className:"my-0 mb-1 ml-0 mr-1 inline-block h-9 w-48 rounded-3xl"})});if(!t)return l.k.warn("Tried to show provider with no availability on the marketplace",{providerShortId:o}),null;let a=c.Z[v.u.Calendar];return(0,r.jsxs)("div",{"data-testid":"next-available-tag",className:"block text-center md:mb-2 md:mr-2 md:rounded-3xl md:bg-neutral-400 md:px-4 md:py-2.5 md:text-start",children:[(0,r.jsx)(i.Icon,{icon:a,className:"pr-2"}),(0,r.jsx)(i.Text,{variant:"sm",className:"inline",children:t})]})}function m(e){let{dataTestId:t,price:n,use:i,providerTagUse:l,blockTagClassName:a}=e;return(0,r.jsx)(u,{providerTagUse:l,"data-testid":t,blockTagIcon:v.u.CircleDollar,label:"".concat((0,o.UO)(n,{minimumFractionDigits:0,maximumFractionDigits:0}),"/session"),use:i,blockTagclassName:a})}},29900:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(54933),i=n(75368);let l={[i.u.Briefcase]:r.HXv,[i.u.Calendar]:r.fT7,[i.u.CircleCheck]:r.fV7,[i.u.CircleDollar]:r.Vm4,[i.u.Couch]:r.sA5,[i.u.Desktop]:r.tc$,[i.u.Dollar]:r.n7u,[i.u.LocationDot]:r.opg,[i.u.ShieldCheck]:r.ip0,[i.u.Phone]:r.j1w,[i.u.Video]:r.kq2,[i.u.Leaf]:r.XEC,[i.u.Star]:r.Tab,[i.u.Empowering]:r.l0c,[i.u["Solution oriented"]]:r.cHW,[i.u.Authentic]:r.JyM,[i.u.Humorous]:r.t0g,[i.u.Direct]:r.O8f,[i.u.Warm]:r.x__,[i.u["Open-minded"]]:r.TEX,[i.u.Holistic]:r.hO8,[i.u.Challenging]:r.vNB,[i.u.Intelligent]:r.pcM,[i.u.Bolt]:r.BDt}},75368:function(e,t,n){var r,i;n.d(t,{u:function(){return r}}),(i=r||(r={})).Briefcase="briefcase",i.Calendar="calendar",i.CircleCheck="circle-check",i.CircleDollar="circle-d
1ollar",i.Couch="couch",i.Desktop="desktop",i.Dollar="dollar",i.LocationDot="location-dot",i.ShieldCheck="shield-check",i.Phone="phone",i.Video="clapperboard",i.Leaf="leaf",i.Empowering="empowering",i["Solution oriented"]="solution-oriented",i.Authentic="authentic",i.Humorous="humorous",i.Direct="direct",i.Warm="warm",i["Open-minded"]="open-minded",i.Holistic="holistic",i.Challenging="challenging",i.Intelligent="intelligent",i.Star="star",i.Bolt="bolt"},6728:function(e,t,n){n.r(t),n.d(t,{GoogleMap:function(){return z},GoogleMapView:function(){return J}});var r=n(52322),i=n(8172),l=n(54933),o=n(1537),a=n(2784),s=n(48090),d=n(24195),c=n(53481),u=n(52685),v=n(32070),f=n(35175),m=n(17671),p=n(79475),h=n(13060),g=n(48495),x=n(4196),y=n(42434),b=n(17774),w=n(62368),I=n(95384),j=n(58650),S=n(320),k=n(85530),M=n(93142);function N(e,t){let n;return t&&(n=t[e]),n}var C=n(53389);function P(e){let{provider:t,providerPageHref:n}=e,i=(0,C.qM)();return(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsxs)("a",{className:"text-left text-neutral-900",href:n,target:"_blank",rel:"noreferrer","aria-label":i("grow-core:providerInfo.viewProviderProfilePage"),children:[(0,r.jsx)("div",{className:"font-medium",children:t.name}),(0,r.jsx)("div",{children:t.physicalAddress})]}),(0,r.jsx)("div",{id:"close-button-info-window-".concat(t.shortId),children:(0,r.jsx)(c.Icon,{name:"xmark",variant:"duotone",size:"lg"})})]})}var D=n(28904),_=n(75368),A=n(12524),E=n.n(A),L=n(57905),B=n(29900);function T(e){let{icon:t,content:n,iconClassName:i,isRenderedInGoogleMapsPin:l=!1}=e,o=B.Z[t];return(0,r.jsxs)("div",{className:"flex py-1",children:[(0,r.jsx)("div",{className:"mt-1 flex w-5 items-start justify-center",children:(0,r.jsx)(c.Icon,{icon:o,className:(0,L.overrideTailwindClasses)(E()("pr-2",{"bg-neutral-200 text-small text-neutral-800":l,"text-neutral-600":!l},i))})}),(0,r.jsx)("div",{className:"whitespace-normal break-all",children:n})]})}let F=e=>{let{t,queriedState:n,isRenderedInGoogleMapsPin:i}=e;return(0,r.jsx)("div",{children:n&&(0,r.jsx)(T,{icon:_.u.Desktop,content:t("grow-core:providerInfo.availableVirtuallyInState",{state:n}),isRenderedInGoogleMapsPin:i},"VirtualSettingQuickFact")})},Z=e=>{let{t,providerCoordinates:n,clientCoordinates:i,showLocationInfo:l,physicalAddress:o,isRenderedInGoogleMapsPin:a}=e;return n&&l&&(0,r.jsx)(T,{icon:_.u.LocationDot,content:(0,r.jsxs)("span",{children:[o," ",i&&t("grow-core:providerInfo.milesAway",{distance:(0,D.TE)(n,i).toFixed(1)})]}),isRenderedInGoogleMapsPin:a},"ProviderDistanceQuickFact")},q=e=>{let t,n,{t:i,queriedInsuranceType:l,providerInsurances:o,isRenderedInGoogleMapsPin:a,price:s}=e,d=null==o?void 0:o.includes(l);return d?(t=i("grow-core:providerInfo.acceptsInsurance",{insurance:l}),n=_.u.ShieldCheck):!d&&(null==o?void 0:o.length)>0?(t=i("grow-core:providerInfo.acceptsInsurances",{count:o.length}),n=_.u.ShieldCheck):(t=i("grow-core:providerInfo.pricePerSession",{price:(0,D.UO)(s,{minimumFractionDigits:0,maximumFractionDigits:0})}),n=_.u.CircleDollar),(0,r.jsx)(T,{icon:n,content:t,isRenderedInGoogleMapsPin:a})};var H=n(30048),O=n(76100),V=n(19054);function G(e){let{t,provider:n,providerPageHref:o,queriedInsuranceType:a,queriedState:s,multipleVirtualProviders:d=!1,clientCoordinates:u,nextAvailableLabel:v,environment:f,hostname:m}=e,p=n.imgFilename?function(e){let{filename:t,width:n=V.T,height:r=V.T,format:i="jpeg",version:l="v1",environment:o,hostname:a}=e,s=o,d=a;return"local"===o&&(s="staging",d="growtherapystaging.com"),(0,O._)({environment:s,hostname:d,subdomain:"provider",path:"/photos/width=".concat(n,"/height=").concat(r,"/format=").concat(i,"/version=").concat(l,"/").concat(t)})}({filename:n.imgFilename,width:280,height:280,environment:f,hostname:m}):n.thumbnailUrl||n.imgUrl||"";return(0,r.jsxs)("div",{className:"bg-neutral-200 p-6",children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("a",{className:"text-inherit",target:"_blank",rel:"noreferrer",href:o,children:(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("div",{className:"flex shrink-0",children:(0,r.jsx)(c.PhotoAvatar,{alt:t("grow-core:providerInfo.providerNameProfileImage",{providerName:null==n?void 0:n.name}),src:p,size:"lg",containerClassName:"mr-4"})}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("div",{className:"text-base font-medium text-neutral-900 sm:mr-4",children:n.name}),(0,r.jsxs)("div",{children:[(0,r.jsx)(q,{t:t,queriedInsuranceType:a,providerInsurances:n.insurances,isRenderedInGoogleMapsPin:!0,price:n.price}),n.availabilitySettingsByState===i.v8H.Virtual&&(0,r.jsx)(F,{t:t,queriedState:s,isRenderedInGoogleMapsPin:!0}),n.availabilitySettingsByState!==i.v8H.Virtual&&(null==n?void 0:n.physicalAddress)&&(null==n?void 0:n.coordinates)&&(0,r.jsx)(Z,{t:t,clientCoordinates:u,physicalAddress:null==n?void 0:n.physicalAddress,providerCoordinates:null==n?void 0:n.coordinates,isRenderedInGoogleMapsPin:!0,showLocationInfo:!0})]})]})]})}
1),!d&&(0,r.jsx)(c.Button,{id:"close-button-info-window-".concat(n.shortId),use:"chromeless",inline:!0,"aria-label":t("grow-core:providerInfo.closeProviderAddressDetails"),className:"inline-flex size-4 shrink-0 items-center justify-center overflow-hidden p-0 text-neutral-800",children:(0,r.jsx)(c.Icon,{icon:l.g82,className:"size-4","aria-hidden":!0})})]}),(0,r.jsx)(c.Divider,{className:"mb-4 mt-6",use:"secondary"}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)(c.Link,{href:o,"aria-label":t("grow-core:providerInfo.viewProviderProfilePage"),externalIcon:null,external:!0,children:t("grow-core:core.viewProfile")}),v&&(0,r.jsx)(H.q,{nextAvailableLabel:v,providerShortId:n.shortId})]})]})}function R(e){let{provider:t}=e;return(0,r.jsx)("div",{id:"provider-profile-marker-content",className:"w-52 p-2.5 font-medium",children:t.physicalAddress})}function U(e){let{t,clientCoordinates:n,mapMarkerContentType:i,multipleVirtualProviders:l,provider:o,providerProfileHref:a,queryArgs:s,nextAvailableLabel:d,environment:c,hostname:u}=e;switch(i){case"bookingConfirmationPage":return(0,r.jsx)(P,{provider:o,providerPageHref:a});case"providerProfilePage":return(0,r.jsx)(R,{provider:o});default:{let e=N(j.h.Insurance,s),i=N(j.h.State,s);return(0,r.jsx)(G,{t:t,provider:o,providerPageHref:a,queriedInsuranceType:e||"",queriedState:i||"",multipleVirtualProviders:l,clientCoordinates:n,nextAvailableLabel:d,environment:c,hostname:u})}}}let W=(e,t,n,r,i,l,o,a,s)=>{google.maps.importLibrary("marker").then(()=>{let d=new DOMParser().parseFromString(a?"<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' fill='none' viewBox='0 0 43 43'><path fill='#2c2b2a' d='M43 20c0 11.046-8.954 20-20 20S3 31.046 3 20 11.954 0 23 0s20 8.954 20 20Z' /><path fill='#FFFFFF' d='M42 20c0 10.493-8.507 19-19 19S4 30.493 4 20 12.507 1 23 1s19 8.507 19 19Z' /><path fill='#2c2b2a' d='M28 16.5c0 2.5-2.031 4.5-4.5 4.5-2.5 0-4.5-2-4.5-4.5 0-2.469 2-4.5 4.5-4.5 2.469 0 4.5 2.031 4.5 4.5ZM24 14c0-.25-.25-.5-.5-.5-1.687 0-3 1.344-3 3 0 .281.219.5.5.5.25 0 .5-.219.5-.5 0-1.094.875-2 2-2 .25 0 .5-.219.5-.5Zm-1.5 13v-5.062c.313.03.656.062 1 .062.313 0 .656-.031 1-.062V27c0 .563-.469 1-1 1-.562 0-1-.437-1-1Z'/></svg>":"<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' fill='none' viewBox='0 0 43 43'><path fill='#353535' d='M43 20c0 11.046-8.954 20-20 20S3 31.046 3 20 11.954 0 23 0s20 8.954 20 20Z' /><path fill='#353535' d='M42 21c0 11.046-8.954 20-20 20S2 32.046 2 21 10.954 1 22 1s20 8.954 20 20Z' /><path fill='#353535' d='M40 23c0 11.046-8.954 20-20 20S0 34.046 0 23 8.954 3 20 3s20 8.954 20 20Z' /><path fill='#C0B0FF' d='M42 20c0 10.493-8.507 19-19 19S4 30.493 4 20 12.507 1 23 1s19 8.507 19 19Z' /><path fill='#353535' d='M28 16.5c0 2.5-2.031 4.5-4.5 4.5-2.5 0-4.5-2-4.5-4.5 0-2.469 2-4.5 4.5-4.5 2.469 0 4.5 2.031 4.5 4.5ZM24 14c0-.25-.25-.5-.5-.5-1.687 0-3 1.344-3 3 0 .281.219.5.5.5.25 0 .5-.219.5-.5 0-1.094.875-2 2-2 .25 0 .5-.219.5-.5Zm-1.5 13v-5.062c.313.03.656.062 1 .062.313 0 .656-.031 1-.062V27c0 .563-.469 1-1 1-.562 0-1-.437-1-1Z'/></svg>","image/svg+xml").documentElement,c=new google.maps.marker.AdvancedMarkerElement({map:n,position:{lat:r,lng:i},content:d,title:"Details of ".concat(l)}),u=new t.InfoWindow({content:"",minWidth:s||0});return c.addListener("click",async()=>{let t=document.querySelectorAll("[id^='close-button-info-window']"),r=new Event("click");t.forEach(e=>{e.dispatchEvent(r)}),u.setContent(e),u.open(n,c)}),document.getElementById("provider-profile-map")&&(u.setContent(e),u.open(n,c)),google.maps.event.addListener(u,"domready",function(){let e=document.getElementById("close-button-info-window-".concat(o));e&&e.addEventListener("click",function(){u.close()})}),c})};function z(e){var t;let{defaultZoom:n,state:m,address:C,providers:P,provider:D,mapMarkerContentType:_="",widthInfoWindow:A,queryArgs:E,onReady:L}=e,B=(0,p.q)(),T=(0,c.useRebrand)(),F=(0,g.O7)(),Z=(0,g.b9)(),{slug:q,name:H,stateName:O}=(0,y.h)(),V="1"===(0,b.r)(),G=(0,I.I)({state:m,address:C})||(null==D?void 0:D.coordinates),[R,z]=(0,a.useState)(),[J,X]=(0,a.useState)(),[$,K]=(0,a.useState)([]),Q=(0,x.m)(),Y=(0,w.N)({providerShortId:null!==(t=null==D?void 0:D.shortId)&&void 0!==t?t:""}),ee=e=>{if(!e)return!1;let t=v.Yr[O],n=e.virtualCity===H&&e.virtualState===t,r=e.physicalCity===H&&e.physicalState===t;return n||r},et=!1,{hasFeature:en}=(0,d.ye)(f.R.HIDE_IN_PERSON_FOR_BCBS_ARIZONA_FULL_EXP);(0,k.E)(en,null!=m?m:"",null==E?void 0:E.insurance)&&(et=!0),(0,a.useEffect)(()=>
1{if(R&&J&&((null==P?void 0:P.length)||D)&&(null==G?void 0:G.lat)&&(null==G?void 0:G.long)){$.forEach(e=>{e&&(e.map=null)});let e=P||[D],t=new J.LatLngBounds,o=[],d=[];e.forEach(e=>{var n,l,a,c;if((q||(null==e?void 0:e.availabilitySettingsByState)!==i.v8H.Virtual&&!et)&&(null==e?void 0:null===(n=e.coordinates)||void 0===n?void 0:n.lat)&&(null==e?void 0:null===(l=e.coordinates)||void 0===l?void 0:l.long)){let n=(0,M.$)({page:"provider",params:{providerShortId:null==e?void 0:e.shortId,providerName:null==e?void 0:e.name},query:E,bookingPortal:Q}),i=N(j.h.Setting,E),l=null!==(a=null==Y?void 0:Y.inOfficeSlots)&&void 0!==a?a:[],d=null!==(c=null==Y?void 0:Y.virtualSlots)&&void 0!==c?c:[],u=(0,S.Jx)(i,{providerInOfficeSlots:l,providerVirtualSlots:d}),v=(0,S.iT)(null==u?void 0:u.start),f=W(s.Dq((0,r.jsx)(U,{t:B,clientCoordinates:{lat:G.lat,long:G.long},mapMarkerContentType:_,provider:e,nextAvailableLabel:v,providerProfileHref:n,queryArgs:E,environment:F,hostname:Z})),J,R,e.coordinates.lat,e.coordinates.long,ei(e.name),e.shortId,T,A);f&&o.push(f),(!V||!q||ee(e))&&t.extend(new J.LatLng(e.coordinates.lat,e.coordinates.long))}else((null==e?void 0:e.availabilitySettingsByState)===i.v8H.Virtual||et&&(null==e?void 0:e.availabilitySettingsByState)===i.v8H.Both)&&d.push(e)});let v="",f=[];if(d.forEach((e,n)=>{var i,l,c,m;let p=(0,M.$)({page:"provider",params:{providerShortId:e.shortId,providerName:e.name},query:E,bookingPortal:Q});if(1===d.length){let n=N(j.h.Setting,E),a={providerInOfficeSlots:null!==(i=null==Y?void 0:Y.inOfficeSlots)&&void 0!==i?i:[],providerVirtualSlots:null!==(l=null==Y?void 0:Y.virtualSlots)&&void 0!==l?l:[]},d=(0,S.Jx)(n,a),c=(0,S.iT)(null==d?void 0:d.start),u=(0,r.jsx)(U,{t:B,mapMarkerContentType:_,provider:e,providerProfileHref:p,queryArgs:E,nextAvailableLabel:c,environment:F,hostname:Z}),f=W(v=s.Dq(u),J,R,G.lat,G.long,ei(null==D?void 0:D.name),e.shortId,T,A);f&&o.push(f),(!V||!q||ee(D))&&t.extend(new J.LatLng(G.lat,G.long))}else{let t=N(j.h.Setting,E),i={providerInOfficeSlots:null!==(c=null==Y?void 0:Y.inOfficeSlots)&&void 0!==c?c:[],providerVirtualSlots:null!==(m=null==Y?void 0:Y.virtualSlots)&&void 0!==m?m:[]},l=(0,S.Jx)(t,i),o=(0,S.iT)(null==l?void 0:l.start),s=(0,r.jsxs)(a.Fragment,{children:[n>0&&(0,r.jsx)(u.p,{}),(0,r.jsx)(U,{t:B,mapMarkerContentType:_,multipleVirtualProviders:!0,provider:e,providerProfileHref:p,queryArgs:E,nextAvailableLabel:o,environment:F,hostname:Z})]},"".concat(e.shortId));f.push(s)}}),v=s.Dq((0,r.jsx)("div",{className:"max-h-64 !overflow-y-scroll",children:f})),d.length>1){let e=W(s.Dq((0,r.jsxs)("div",{className:"sticky top-0 z-50 w-full bg-neutral-300",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-5",children:[(0,r.jsx)("div",{className:"text-medium font-medium text-neutral-800 sm:mr-4",children:B("grow-core:providerInfo.countProviders",{count:d.length})}),(0,r.jsx)("div",{children:(0,r.jsx)(c.IconButton,{id:"close-button-info-window-virtualProviders",className:"border-none p-2 no-underline",iconDefinition:l.g82,use:"secondary","aria-label":B("grow-core:providerInfo.closeProviderAddressDetails")})})]}),(0,r.jsx)(u.p,{})]})).concat(v),J,R,G.lat,G.long,ei(null==D?void 0:D.name),"virtualProviders",T,A);e&&o.push(e),(!V||!q||ee(D))&&t.extend(new J.LatLng(G.lat,G.long)),R.setZoom((R.getZoom()||n)-1)}D||R.fitBounds(t),R.setCenter(t.getCenter()),K(o)}},[R,J,P,D,q,T,B]);let er=(e,t)=>{z(e),X(t),null==L||L()};if((0,a.useEffect)(()=>{G||null==L||L()},[G,L]),!G)return null;return(0,r.jsx)(o.ZP,{bootstrapURLKeys:{key:(0,h.A)(),libraries:["places","geocoding"],language:"en"},defaultCenter:{lat:G.lat,lng:G.long},defaultZoom:n,yesIWantToUseGoogleMapApiInternals:!0,onGoogleApiLoaded:e=>{let{map:t,maps:n}=e;return er(t,n)},options:{mapId:"67ba2ffb188a07b4"}});function ei(e){return e||B("grow-core:providerInfo.provider")}}function J(e){return(0,r.jsx)("div",{className:"h-full w-full","data-testid":"google-map-search-view",children:(0,r.jsx)(m.H,{children:(0,r.jsx)(z,{...e})})})}}}]);
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.