PageSourceSearch

https://psychwire.com/_next/static/chunks/app/layout-b7412cd015ff8339.js

js psychwire.com collected 2026-10-03 19:38:57 UTC 107,085 bytes, 8 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{9866:()=>{},21188:(e,t,s)=>{"use strict";let a,n,r;s.d(t,{PwComProviders:()=>aQ});var i=s(54568),l=s(92540),o=s(57483),c=s(78221),d=s(83919),u=s(7620),p=s(89099),x=s(21702),h=s(33349),m=s(96679),f=s(91640);let w="pw_gtm_availability_v1";function g(){return(0,u.useEffect)(()=>{!function(){try{if(sessionStorage.getItem(w))return}catch{return}let e=()=>{try{if(sessionStorage.getItem(w))return}catch{return}let e=window.google_tag_manager,t=!!e?.["GTM-K4DPPGD"];try{sessionStorage.setItem(w,"1")}catch{}(0,f.u4)("gtm_availability",{active:t})},t=()=>{window.setTimeout(e,5e3)};"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0})}()},[]),null}var j=s(26215),v=s(61105),y=s(29888),C=s(60543);let k=()=>{let e=null,t=y.n.localStorage.getItem(v.ER);if(!t)return e;try{e=JSON.parse(t)}catch(e){C.v.error({data:{error:e},message:"Malformed consent preferences"})}return e},b={isOpen:!1,isSettingsOpen:!1,hasAcceptedAnalytics:!1,hasAcceptedPreferences:!1,hasAcceptedMarketing:!1,hasInteracted:!1},_=null!=(r=k())?{...b,...r}:b,N=(0,j.tG)(v.ER,_,{getItem:e=>{let t=y.n.localStorage.getItem(e);if(t){let e=JSON.parse(t);return{...b,...e}}return b},setItem:(e,t)=>{let{hasAcceptedAnalytics:s,hasAcceptedMarketing:a,hasAcceptedPreferences:n,hasInteracted:r}=t;y.n.localStorage.setItem(e,JSON.stringify({hasAcceptedAnalytics:s,hasAcceptedMarketing:a,hasAcceptedPreferences:n,hasInteracted:r}))},removeItem:e=>{y.n.localStorage.removeItem(e)}}),S=()=>{let[e,t]=(0,h.fp)(N);return{...e,open:()=>t(e=>({...e,isOpen:!0})),close:()=>t(e=>({...e,isOpen:!1})),openSettings:()=>t(e=>({...e,isSettingsOpen:!0})),closeSettings:()=>t(e=>({...e,isSettingsOpen:!1})),setIsOpen:e=>t(t=>({...t,isOpen:"boolean"==typeof e?e:e.isOpen})),setIsSettingsOpen:e=>t(t=>({...t,isSettingsOpen:"boolean"==typeof e?e:e.isSettingsOpen})),update:e=>t(t=>({...t,...e})),isOpen:e.isOpen,isSettingsOpen:e.isSettingsOpen,state:e}};var E=s(95785),I=s(16743),R=s(96425),M=s(2741),$=s(75377),L=s(27522),A=s(64132),P=s(63274),O=s(73314),B=s(21391);let z=({width:e=108,...t})=>{let s=Math.round(1.378217821782178*e);return(0,i.jsx)(O.a,{maxWidth:e,position:"relative",width:"100%",...t,children:(0,i.jsx)(B.v,{src:"https://res.cloudinary.com/psychwire/image/upload/v1762487402/app%20assets/cookie-jar.png",width:e,height:s,alternativeText:"Line illustration of a cookie jar with one light purple cookie, representing website cookies.",style:{width:"100%",height:"auto",display:"block"}})})};var T=s(51519);function V({hasAcceptedAnalytics:e,hasAcceptedMarketing:t,hasAcceptedPreferences:s}){y.n.dataLayer&&(y.n.dataLayer.push({hasAcceptedAnalytics:e,hasAcceptedMarketing:t,hasAcceptedPreferences:s}),y.n.dataLayer.push({event:"hasAcceptedAnalyticsUpdated"}),y.n.dataLayer.push({event:"hasAcceptedPreferencesUpdated"}),y.n.dataLayer.push({event:"hasAcceptedMarketingUpdated"}));let{gtag:a}=y.n||{};a&&a("consent","update",{ad_storage:t?"granted":"denied",analytics_storage:e?"granted":"denied",ad_user_data:t?"granted":"denied",ad_personalization:t?"granted":"denied"})}let D={hasAcceptedAnalytics:!0,hasAcceptedPreferences:!0,hasAcceptedMarketing:!0};var q=s(68478);s(28463),s(14576),s(96093);var H=s(24951);let U={initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0,pointerEvents:"none"}};function W({isOpen:e}){let{update:t}=S();return(0,i.jsx)(H.N,{children:e&&(0,i.jsx)(M.P.div,{transition:{type:"tween",ease:"easeIn",duration:.3},...U,children:(0,i.jsx)($.a,{className:"pw_77dek01 pw_x1sxk278z",children:(0,i.jsxs)(A.s,{className:(0,q.k)(),alignItems:"flex-start",p:"32",maxWidth:"624",gap:"16",children:[(0,i.jsx)(z,{display:{default:"none",tablet:"initial"},width:108}),(0,i.jsxs)(T.B,{children:[(0,i.jsxs)(T.B,{gap:"8",children:[(0,i.jsx)(P.EY,{variant:"headingMedium",children:"We use cookies"}),(0,i.jsx)(P.EY,{variant:"bodyXSmall",children:"to be able to provide social media features, analyse our traffic, visitors behaviour and for our own marketing purposes."})]}),(0,i.jsxs)(A.s,{children:[(0,i.jsx)(L.$,{variant:"textLight",size:"small",onClick:()=>t({isSettingsOpen:!0}),flex:"1",children:"Change Settings"}),(0,i.jsx)(L.$,{size:"small",onClick:()=>{t({...D,hasInteracted:!0,isOpen:!1}),V(D)},flex:"1",children:"Accept All Cookies"})]})]})]})})})})}var F=s(27165),Y=s(92428),Z=s(21901);let G=()=>{let{update:e,closeSettings:t,hasAcceptedAnalytics:s,hasAcceptedMarketing:a,hasAcceptedPreferences:n,isSettingsOpen:r}=S(),{control:l,handleSubmit:o,reset:c}=(0,Z.mN)({defaultValues:{hasAcceptedAnalytics:s,hasAcceptedMarketing:a,hasAcceptedPreferences:n}});return(0,u.useEffect)(()=>{r&&c({hasAcceptedAnalytics:s,hasAcceptedMarketing:a,hasAcceptedPreferences:n})},[r,s,a,n,c]),(0,i.jsxs)(T.B,{p:"32",as:M.P.div,maxWidth:"624",children:[(0,i.jsxs)(F.so,{mb:"32",gap:"16",alignItems:"flex-end",children:[(0,i.jsx)(z,{display:{default:"none",tablet:"initial"},width:108}),(0,i.jsxs)(T.B,{children:[(0,i.jsx)(F.EY,{variant:"headingMedium",children:"Cookies Settings"}),(0,i.jsx)(F.EY,{variant:"bodySmall",children:"We use cookies to be able to provide social media features, analyse our traffic, visitors behaviour and for our own marketing purposes."})]})]}),(0,i.jsx)(T.B,{children:(0,i.jsxs)("form",{onSubmit:o(t=>{e({...t,hasInteracted:!0,isSettingsOpen:!1,isOpen:!1}),V({hasAcceptedAnalytics:t.hasAcceptedAnalytics,hasAcceptedMarketing:t.hasAcceptedMarketing,hasAcceptedPreferences:t.hasAcceptedPreferences})}),children:[(0,i.jsxs)(T.B,{mb:"64",children:[(0,i.jsxs)(T.B,{gap:"8",children:[(0,i.jsx)(Y.D,{type:"checkbox",name:"hasAcceptedAnalytics",checkboxLabel:(0,i.jsx)(F.EY,{fontWeight:"medium",children:"Help improving our products"}),control:l}),(0,i.jsx)(F.EY,{variant:"bodyXSmall",ml:"32",children:"Which pages you visit, for how long, where you click... This data is used by our teams to understand how products are being used, correct potential bugs and improve our interfaces."})]}),(0,i.jsxs)(T.B,{gap:"8",children:[(0,i.jsx)(Y.D,{type:"checkbox",name:"hasAcceptedPreferences",control:l,checkboxLabel:(0,i.jsx)(F.EY,{fontWeight:"medium",children:"Display personalized content"})}),(0,i.jsx)(F.EY,{variant:"bodyXSmall",ml:"32",children:"We use cookies to understand better what your interests are and show relevant content as much as possible."})]}),(0,i.jsxs)(T.B,{gap:"8",children:[(0,i.jsx)(Y.D,{type:"checkbox",name:"hasAcceptedMarketing",control:l,checkboxLabel:(0,i.jsx)(F.EY,{fontWeight:"medium",children:"Personalized offers"})}),(0,i.jsx)(F.EY,{variant:"bodyXSmall",ml:"32",children:"We use cookies to understand better what your interests are and send you relevant offers."})]})]}),(0,i.jsxs)(F.so,{children:[(0,i.jsx)(F.$n,{size:"small",variant:"textLight",onClick:t,flex:"1",children:"Cancel"}),(0,i.jsx)(F.$n,{size:"small",type:"submit",flex:"1",children:"Save"})]})]})})]})};function K(){let{open:e,isOpen:t,isSettingsOpen:s,setIsOpen:a,update:n}=S(),{data:r,dataUpdatedAt:l}=(0,I.I)({queryKey:["geolocation"],queryFn:E.NL}),o=r?.eu==="1",c=r?.country==="US"&&r?.region==="CA",d=o||c;return(0,u.useEffect)(()=>{let t=k();l&&(d?t?.hasInteracted||setTimeout(e,800):n({...D,isOpen:!1}))},[l]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W,{isOpen:t&&!s}),(0,i.jsx)(R.l,{is:M.P.div,contentVerticalPosition:"center",shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1,shouldDisableScroll:!0,showCloseButton:!1,isOpen:t&&s,setIsOpen:e=>a({isOpen:e}),children:(0,i.jsx)(G,{})})]})}var J=s(41226),Q=s(51641);let X=(0,Q.eU)({isOpen:!1,redirectUrl:null}),ee={isOpen:!1,isForceLogin:!1},et=()=>{let[e,t]=(0,h.fp)(X),s=(0,u.useCallback)(e=>{t({...e,isOpen:!0})},[t]);return{open:s,close:(0,u.useCallback)(()=>{t(ee)}
1,[t]),setIsOpen:(0,u.useCallback)((e,...s)=>t({isOpen:e,...s}),[t]),isOpen:e.isOpen,isForceLogin:e.isForceLogin,redirectUrl:e.redirectUrl}};var es=s(61372),ea=s(69611),en=s(72629);let er=()=>{let[e,t]=(0,u.useState)(null),{pathname:s,query:a,replace:n,search:r}=(0,en.X)(),i=a||ea.A.parse(r||""),l=(({pathname:e="",search:t=""})=>t?`${e}${t.startsWith("?")?t:`?${t}`}`:e)({pathname:s,search:r}),o=i.error;return(0,u.useEffect)(()=>{o&&n&&(t(o),setTimeout(()=>{(({path:e,replace:t})=>{let[s,a]=e.split("?");if(a){let e=new URLSearchParams(a);e.delete("error");let n=e.toString();a.length!==n.length&&t({pathname:s,search:n},void 0,{shallow:!0})}})({path:l,replace:n})},0))},[o,l,n]),[e,t]};var ei=s(90712);let el="login",eo="signUp",ec="forgotPassword",ed="passwordReset",eu="confirmAccount",ep="Need to reset your password?",ex="Enter your email address and we'll send you a link to create a new one.",eh=({resetPassword:e,isShowing:t,message:s=ex,back:a,heading:n=ep})=>{let{control:r,handleSubmit:l,reset:o,formState:{errors:c,isValid:d,isSubmitting:p},setFocus:x}=(0,Z.mN)({defaultValues:{email:""}}),h={required:!0,pattern:{value:v.Uo,message:"Please enter a vaild email address"}};return(0,u.useEffect)(()=>{x("email")},[t,x]),(0,i.jsx)(A.s,{width:"100%",alignItems:"center",py:"24",children:(0,i.jsxs)(T.B,{my:"auto",flex:"1",gap:"24",children:[(0,i.jsxs)(T.B,{gap:"16",children:[(0,i.jsx)(P.EY,{as:"h1",variant:"headingLarge",children:n}),(0,i.jsx)(P.P,{variant:"bodyMedium",children:s})]}),(0,i.jsx)("form",{onSubmit:l(({email:t})=>{e(t),o()}),name:"forgotPassword",children:(0,i.jsxs)(T.B,{gap:"24",children:[(0,i.jsx)(Y.D,{type:"input",control:r,errors:c,rules:h,name:"email",placeholder:"Your email",iconName:"envelopeClosed"}),(0,i.jsx)(L.$,{type:"submit",width:"100%",isLoading:d&&p,children:"Send email"}),a&&(0,i.jsx)(L.$,{variant:"text",textStyle:"label",onClick:a,children:"Back to login"})]})})]})})};var em=s(94440),ef=s(78624),ew=s(17250);let eg=({text:e,...t})=>(0,i.jsxs)(ew.so,{justifyContent:"center",...t,children:[(0,i.jsx)(ew.In,{name:"exclamationTriangle",size:"20",mr:"8",color:"uiContentAlert"}),(0,i.jsx)(ew.EY,{variant:"bodyLarge",color:"uiContentAlert",textAlign:"center",children:e})]});var ej=s(87492);let ev=(e,t)=>
1`https://id.psychwire.com/auth/${e}?response_type=token&scope=profile&client_id=df34p0&redirect_uri=${encodeURIComponent(t||y.n.location.href)}&origin=${encodeURIComponent(t||y.n.location.href)}`,ey=e=>(0,i.jsx)(O.a,{as:"svg",viewBox:"88.428 12.828 107.543 207.085",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",...e,children:(0,i.jsx)("path",{d:"M158.232 219.912v-94.461h31.707l4.747-36.813h-36.454V65.134c0-10.658 2.96-17.922 18.245-17.922l19.494-.009V14.278c-3.373-.447-14.944-1.449-28.406-1.449-28.106 0-47.348 17.155-47.348 48.661v27.149H88.428v36.813h31.788v94.461l38.016-.001z",fill:"#1877F2"})}),eC=e=>(0,i.jsxs)(O.a,{as:"svg",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",...e,children:[(0,i.jsx)("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),(0,i.jsx)("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),(0,i.jsx)("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),(0,i.jsx)("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})]}),ek=({onClick:e,Icon:t,text:s,iconProps:a})=>(0,i.jsx)(F.$n,{variant:"outline",onClick:e,width:"100%",children:(0,i.jsxs)(F.so,{style:{width:"100%"},alignItems:"center",children:[(0,i.jsx)(t,{...a}),(0,i.jsx)(F.EY,{textAlign:"center",flex:"1",variant:"ctaSmall",children:s})]})}),eb=e=>(0,i.jsx)(ek,{...e,Icon:eC,text:"with google",iconProps:{style:{width:"30px"}}}),e_=e=>(0,i.jsx)(ek,{...e,Icon:ey,text:"with facebook",iconProps:{ml:"8",style:{width:"14px"}}});var eN=s(80367),eS=s(43785),eE=s.n(eS);s(69433);var eI="pw_if26wv1 pw_x1sxk27h2";let eR=({text:e="",children:t=null,textProps:s={},...a})=>(0,i.jsxs)(eN.s,{alignItems:"center",justifyContent:"center",...a,children:[(0,i.jsx)("div",{className:eI}),(0,i.jsx)(eN.E,{mx:"16",variant:"subheadingMedium",...s&&"object"==typeof s?s:{},children:e||t}),(0,i.jsx)("div",{className:eI})]});eR.propTypes={text:eE().string,children:eE().oneOfType([eE().arrayOf(eE().node),eE().node]),textProps:eE().object};let eM={invalidCredentials:"Email or password incorrect",accountExists:"That account already exists",resetPassword:"Email or password incorrect"},e$=()=>(0,i.jsx)("svg",{width:"57",height:"23",viewBox:"0 0 57 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1.88306 16.866L3.81865 16.8542C3.86704 16.6008 1.61691 16.7756 2.11292 16.5419C4.85908 16.4555 1.85886 16.1511 3.32268 16.0745C3.10492 16.0764 3.03232 15.9606 2.17339 15.9665C3.6614 15.9331 2.5242 15.8486 2.91133 15.7779C3.32265 15.7524 3.359 15.7976 3.80662 15.8192L4.33884 15.6542C3.86703 15.5894 2.996 15.5717 2.82664 15.6424C2.33063 15.2064 0.951511 13.1285 1.62898 12.663C2.75406 12.7219 2.00403 12.8673 3.77029 12.9203C4.7502 12.7966 3.41945 12.7396 4.44775 12.6827C1.82256 12.6375 3.8066 12.4116 1.14512 12.3213L2.63311 12.284L1.72578 12.2231C3.23799 11.6791 2.48792 12.0974 2.0887 11.6182C2.29436 11.3393 4.3389 11.2018 3.564
165 11.0486C3.57675 11.0722 4.49611 11.1311 4.87114 11.0585C3.56459 11.0486 5.79062 10.864 4.47197 10.8326C4.62924 10.7619 4.4357 10.5321 6.22615 10.6048C5.33092 10.5675 4.94379 10.3652 4.18164 10.4889C4.12115 10.4202 3.84288 10.3534 4.23 10.3023L4.73809 10.3887C4.96794 10.155 3.56466 10.0332 5.16155 9.87417L5.88738 9.95862C5.98416 9.81918 6.09306 9.70134 4.32681 9.6542L3.80662 9.79954C3.81871 9.56779 3.91547 9.42834 4.83489 9.23194L4.89536 9.30068C6.62532 9.04929 7.84723 7.75502 10.0006 7.51542L11.3918 7.61165L12.5048 7.40936C12.529 7.43293 8.07704 7.52916 8.52465 7.54488C8.57305 7.12655 9.09325 4.94259 8.00447 4.56354C7.19392 4.41428 5.82691 4.55372 5.60915 4.55765C6.05677 4.36518 7.03665 4.46338 6.86728 4.30429C6.60114 4.26305 5.80272 4.32197 5.60915 4.34947C5.75433 4.2768 5.2583 4.21592 5.88738 4.2061C6.40758 4.29055 8.10125 4.23752 9.21423 4.26698L8.99648 4.06076L7.93188 4.07844C7.88349 4.03327 10.8232 3.93506 10.182 3.7367C9.58924 3.39693 9.83124 3.01985 9.46831 2.67615C8.82713 2.68793 8.47625 2.76453 8.12541 2.84112C8.07702 2.79595 8.21016 2.72328 7.73835 2.684C8.89973 2.75667 8.44002 2.53081 8.94812 2.5917C11.4765 2.31281 8.94806 2.00839 10.6296 1.76682C12.9766 1.72754 50.8785 0.843746 53.6731 0.808394C53.5884 0.737691 53.5158 0.665026 53.2739 0.645386C53.9392 0.65717 54.3143 0.794649 53.9634 0.875172L52.4633 0.904631C52.0036 1.08335 53.3706 0.936055 53.3343 1.10496C54.5683 1.10103 54.7619 0.941946 54.8224 0.802502C55.016 0.92427 55.9595 1.03818 54.6409 1.10299C55.1974 1.21298 56.141 1.07353 56.7217 1.20905C56.3951 1.31314 55.2579 1.45651 56.02 1.56257L56.2378 1.55864C57.6169 1.82378 54.5563 2.00446 55.8991 2.24604L56.2983 2.21461C57.0362 2.2971 56.1531 2.48368 56.9636 2.63883C56.6975 2.59563 55.8023 2.56224 55.6813 2.6624C56.5281 2.84112 55.7902 2.97664 56.7943 3.1043L55.6329 3.2457C56.1047 3.89382 55.1369 6.47254 55.0401 7.12458L55.2216 7.09709C54.8587 8.09479 55.2821 10.1354 53.6731 11.
11645C54.8708 11.3197 54.6167 11.5396 54.9676 11.7046C54.4595 11.6143 53.6247 11.6457 53.6852 11.7184C53.8425 12.2231 52.8626 11.7537 52.3907 12.2643C51.3504 12.8516 52.5843 15.0944 53.5522 15.6188C51.798 15.8958 53.0803 16.2473 51.9553 16.5203L52.3665 16.4928C51.7012 16.7854 53.1166 18.4568 52.427 18.7966L52.1851 18.7494C51.0479 19.044 52.9714 19.0106 53.5158 19.2483C51.556 19.209 50.4067 19.4584 50.2373 19.5547L50.6608 19.5527C50.31 19.698 48.5437 20.0221 48.2292 20.2617L49.3059 20.2578C48.1082 20.4542 48.5074 20.8352 48.3622 20.9805C48.7372 21.3144 50.4672 21.8388 48.9308 22.2728L51.9068 22.5812L51.5923 22.6205C51.5923 22.6205 42.3376 22.6676 32.1272 22.6322C21.9047 22.5969 10.7385 22.481 6.87939 22.1707L5.80268 22.1727L5.97207 22.0627C5.47607 21.9252 6.73422 21.8722 5.66963 21.8741L5.75432 22.0588C5.47607 21.9213 4.88324 22.0116 4.26626 22.0588C4.18158 22.0018 4.06061 21.9468 3.74607 21.8997C4.16949 21.8761 4.18164 21.9213 4.4115 21.9448C4.81072 21.8761 5.839 21.7818 5.36719 21.6895C5.3067 21.552 3.63723 21.6679 3.56465 21.5069C2.94767 20.6545 1.89516 19.8296 2.27019 18.9773C1.83467 18.9557 1.84675 18.9792 1.64109 19.0028C2.14919 18.7475 2.0282 18.5177 2.5363 18.2859C2.0645 18.2192 1.41124 18.1995 0.963623 18.1779C1.85885 18.2211 2.12501 16.8876 1.88306 16.866Z",fill:"#395AC7",fillOpacity:"0.1"})}),eL=({onClick:e,...t})=>{let{styleProps:s}=(0,ef.W)(t);return(0,i.jsxs)(A.s,{position:"relative",justifyContent:"center",flexWrap:"nowrap",...s,children:[(0,i.jsx)(e$,{}),(0,i.jsx)(L.$,{variant:"text",textStyle:"label",position:"absolute",width:"max-content",onClick:e,children:"Sign up"})]})},eA=e=>{y.n.location=e},eP=({signupOnClick:e,forgotPasswordOnClick:t,error:s,shouldShowSignup:a,...n})=>{let[r,l]=(0,u.useState)(!1),{styleProps:o}=(0,ef.W)(n);return(0,i.jsxs)(ej.B,{width:"100%",pb:"24",...o,children:[(0,i.jsxs)(ej.B,{alignItems:"center",width:"100%",children:[(0,i.jsx)(P.H3,{variant:"headingLarge",color:"contentDefault",children:"Login to Psychwire"}),a&&(0,i.jsxs)(A.s,{py:"8",alignItems:"center",children:[(0,i.jsx)(P.EY,{variant:"bodySmall",children:"No account?"}),(0,i.jsx)(eL,{onClick:e,ml:"4"})]})]}),(0,i.jsx)(eb,{onClick:()=>eA(ev("google"))}),(0,i.jsx)(e_,{onClick:()=>eA(ev("facebook"))}),(0,i.jsx)(eR,{text:"OR"}),s&&(0,i.jsx)(eg,{text:eM[s]}),(0,i.jsx)("form",{method:"POST",action:ev("psychwire"),name:"login",onSubmit:()=>l(!0),children:(0,i.jsxs)(ej.B,{children:[(0,i.jsx)(em.p,{name:"username",type:"email",placeholder:"Your email",iconName:"envelopeClosed",width:"100%",required:!0}),(0,i.jsx)(em.p,{name:"password",type:"password",placeholder:"Your password",iconName:"lockClosed",width:"100%",required:!0}),(0,i.jsx)(L.$,{type:"submit",width:"100%",iconName:"chevronRight",iconSide:"right",isLoading:r,children:"Login"})]})}),(0,i.jsxs)(A.s,{justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)("a",{href:"https://psychwire.com/terms_and_conditions.pdf",target:"_blank",rel:"noreferrer",children:(0,i.jsx)(P.EY,{fontSize:"12",fontWeight:"medium",children:"Terms of Service"})}),(0,i.jsx)(L.$,{variant:"text",size:"small",textStyle:"label",onClick:t,style:{fontSize:"12px"},children:"Forgot password?"})]})]})};var eO=s(65188);let eB=({resetEmail:e,back:t})=>(0,i.jsx)(A.s,{width:"100%",alignItems:"center",py:"24",children:(0,i.jsxs)(ej.B,{my:"auto",flex:"1",textAlign:"center",children:[(0,i.jsx)(eO.v,{src:"https://res.cloudinary.com/psychwire/image/upload/v1747368971/pw.com/account/check-inbox.png",width:137,height:121,alt:"Minimalist line drawing of a desk with a vase holding a leafy branch, next to an envelope and papers.",style:{margin:"0 auto"}}),(0,i.jsx)(P.H3,{variant:"headingLarge",children:"Check your inbox"}),(0,i.jsxs)(P.P,{variant:"bodySmall",children:["We've sent you a link to ",e," to reset your password"]}),(0,i.jsx)(L.$,{variant:"text",textStyle:"label",onClick:t,children:"Back to login"})]})}),ez=(e,t)=>ev(e,t).replace("?","/register?"),eT=({onClick:e,...t})=>{let{styleProps:s}=(0,ef.W)(t);return(0,i.jsxs)(A.s,{position:"relative",justifyContent:"center",...s,children:[(0,i.jsx)(e$,{}),(0,i.jsx)(L.$,{variant:"text",textStyle:"label",position:"absolute",onClick:e,children:"Login"})]})},eV=e=>{y.n.location=e},eD=({loginOnClick:e,error:t,...s})=>{let[a,n]=(0,u.useState)(!1),{styleProps:r}=(0,ef.W)(s);return(0,i.jsxs)(ej.B,{width:"100%",justifyContent:"center",pb:"24",...r,children:[(0,i.jsxs)(ej.B,{alignItems:"center",children:[(0,i.jsx)(P.H3,{variant:"headingLarge",children:"Signup to Psychwire"}),(0,i.jsxs)(A.s,{py:"8",alignItems:"center",children:[(0,i.jsx)(P.
1EY,{variant:"bodySmall",children:"Already have an account?"}),(0,i.jsx)(eT,{onClick:e,ml:"4"})]})]}),(0,i.jsx)(eb,{onClick:()=>eV(ev("google"))}),(0,i.jsx)(e_,{onClick:()=>eV(ev("facebook"))}),(0,i.jsx)(eR,{text:"OR"}),t&&(0,i.jsx)(eg,{text:eM[t]}),(0,i.jsx)("form",{method:"POST",action:ez("psychwire"),name:"signUp",onSubmit:e=>{e.preventDefault();let t=e.target,s=new URL(y.n.location),a=new URLSearchParams(s.search);a.set("email",t.email.value),a.set("firstName",t.firstName.value),a.set("context","enroll"),s.search=a.toString(),t.action=ez("psychwire",s.toString()),n(!0),t.submit()},children:(0,i.jsxs)(ej.B,{children:[(0,i.jsx)(em.p,{name:"firstName",placeholder:"First name",width:"100%",required:!0}),(0,i.jsx)(em.p,{name:"lastName",placeholder:"Last name",width:"100%",required:!0}),(0,i.jsx)(em.p,{name:"email",type:"email",placeholder:"Your email",width:"100%",iconName:"envelopeClosed",required:!0}),(0,i.jsx)(L.$,{type:"submit",width:"100%",iconName:"chevronRight",iconSide:"right",isLoading:a,children:"sign up"})]})})]})};var eq=s(74422);let eH=()=>{let{query:e}=(0,en.X)();return(0,i.jsxs)(ej.B,{alignItems:"center",gap:"40",width:"100%",children:[(0,i.jsx)(eO.v,{src:"https://res.cloudinary.com/psychwire/image/upload/v1724897217/payments/time-to-enroll.png",width:267,height:167,alt:"A person is sitting on a bench reading a light blue book labeled 'Pw.'",style:{maxWidth:"100%",height:"auto"}}),(0,i.jsxs)(ej.B,{alignItems:"center",gap:"8",style:{width:"267px"},children:[(0,i.jsxs)(eq.E,{as:"h2",variant:"headingMedium",color:"contentStrong",textAlign:"center",children:["Thank you - please check",(0,i.jsx)("br",{}),"your email!"]}),e?.email&&(0,i.jsxs)(eq.E,{as:"p",variant:"bodyMedium",display:"inline",children:["We've sent a quick confirmation email to"," ",(0,i.jsx)(eq.E,{variant:"headingXSmall",display:"inline",style:{wordBreak:"break-all"},children:e?.email}),".",(0,i.jsx)("br",{}),"Just click the link in that message to finish setting up your account."]}),!e?.email&&(0,i.jsxs)(eq.E,{as:"p",variant:"bodyMedium",display:"inline",children:["We've sent a quick confirmation email",(0,i.jsx)("br",{}),"Just click the link in that message to finish setting up your account."]})]})]})};s(91980);let eU=({shouldShowSignup:e,initialView:t=el,onViewChange:s,initialError:a})=>{let[n,r]=er(),[l,o]=(0,u.useState)(()=>n||a||null),[c,d]=(0,u.useState)(!1),p=(0,u.useRef)(a);(0,u.useEffect)(()=>{a&&!p.current&&d(!1),p.current=a,c&&!n&&a||o(n||a||null)},[n,a,c]),(0,u.useEffect)(()=>{"invalidCredentials"===l&&h(el),"accountExists"===l&&h(eo),"confirmAccount"===l&&h(eu)},[l]);let[x,h]=(0,u.useState)(t),[m,f]=(0,u.useState)(""),w=x===eo,g=x===ec,j=x===ed,v=x===el&&x!==w&&x!==g&&x!==j,y=x===eu,C=async e=>{h(ed),f(e),await ei.Ay.generatePasswordReset.post({attributes:{email:e}})},k=["resetPassword","invalidCredentials"].includes(l)?l:null,b="accountExists"===l?l:null;return(0,u.useEffect)(()=>{k&&h(el),b&&h(eo)},[k,b]),(0,u.useEffect)(()=>{e||h(el)},[e]),(0,u.useEffect)(()=>{"string"==typeof t&&h(t)},[t]),(0,u.useEffect)(()=>{"function"==typeof s&&s(x)},[x]),(0,i.jsx)(J.s,{as:"section",title:"login form",width:"320",justifyContent:"stretch",flexDirection:"column",children:(0,i.jsxs)(J.s,{flexGrow:"1",alignItems:"center",width:"100%",children:[w&&(0,i.jsx)(eD,{loginOnClick:()=>{h(el),o(null),r(null),d(!0)},error:b}),g&&(0,i.jsx)(eh,{back:()=>h(el),resetPassword:C,isShowing:x===ec}),j&&(0,i.jsx)(eB,{resetEmail:m,back:()=>h(el)}),v&&(0,i.jsx)(eP,{signupOnClick:()=>{h(eo),o(null),r(null),d(!0)},forgotPasswordOnClick:()=>h(ec),error:k,shouldShowSignup:e}),y&&(0,i.jsx)(eH,{})]})})},eW={initial:{y:"45px"},animate:{y:0},transition:{y:{type:"tween",duration:.2,ease:"circOut"}}},eF=({canClose:e=!0,initialView:t=el,shouldPromptOnAuthInvalidated:s=!0,shouldShowSignup:a=!1})=>{let{isOpen:n,setIsOpen:r,open:l,isForceLogin:o}=et(),[c,p]=(0,u.useState)(!1),[x]=er();(({shouldPrompt:e=!0}={})=>{let t=(0,d.jE)(),{open:s}=et();(0,u.useEffect)(()=>{let a=()=>{t.clear(),e&&s()},n=(0,es.Ns)(a),r=(0,es.E1)(e=>{e||a()});return()=>{n(),r()}},[t,s,e])})({shouldPrompt:s}),(0,u.useEffect)(()=>{"confirmAccount"===x?p(!0):x&&l()},[x]);let h=t;return c?h=eu:"invalidCredentials"===x||"resetPassword"===x?h=el:"accountExists"===x&&(h=eo),(0,i.jsx)(R.l,{isOpen:n,setIsOpen:r,shouldCloseOnEsc:!o&&e,shouldCloseOnClickOutside:!o&&e,showCloseButton:!o&&e,contentVerticalPosition:"center",contentProps:eW,animationDuration:.2,children:(0,i.jsx)(J.s,{px:"32",pb:"32",pt:!o&&e?"0":"32",alignItems:"stretch",children:(0,i.jsx)(eU,{initialView:h,shouldShowSignup:a,showForgotPasswordBackButton:!1,initialError:x})})})},eY=["expires_in","scope","token_type","access_token"];var eZ=s(49251),eG=s(7832),eK=s(17283),eJ=s(96169),eQ=s(15399),eX=s(71113),e1=s(89472),e0=s.n(e1);s(14617);var e2="pw_x1sxk27je";let e5=({className:e,...t})=>(0,i.jsxs)(O.a,{as:"svg",className:e0()("pw_1j0rc0w0",e),viewBox:"0 0 120 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"contentDefault",...t,children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M120 0H0V40H120V0ZM118 2H2V38H118V2Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M109 20.3229C109 19.6797 108.9 19.0758 108.701 18.5121C108.501 17.9484 108.209 17.4563 107.824 17.0359C107.438 16.6155 106.959 16.284 106.384 16.0423C105.811 15.8006 105.148 15.6794 104.399 15.6794C103.635 15.6794 102.927 15.8022 102.274 16.0471C101.62 16.2927 101.055 16.6407 100.577 17.0926C100.098 17.5461 99.7219 18.0901 99.4473 18.7278C99.1719 19.364 99.0342 20.0772 99.0342 20.8669C99.0342 21.5999 99.1719 22.2833 99.4473 22.917C99.7219 23.5516 100.109 24.1004 100.608 24.5656C101.107 25.0302 101.704 25.3947 102.403 25.6592C103.101 25.9237 103.873 26.056 104.718 26.056C105.352 26.056 105.92 25.9812 106.426 25.8316C106.932 25.682 107.363 25.5143 107.721 25.3293C108.141 25.1199 108.511 24.8774 108.835 24.6034L107.948 23.2564C107.687 23.4792 107.394 23.6736 107.07 23.839C106.789 23.9854 106.458 24.1177 106.08 24.2358C105.702 24.3539 105.283 24.4121 104.822 24.4121C104.347 24.4121 103.895 24.3397 103.465 24.1925C103.035 24.046 102.654 23.8327 102.32 23.5532C101.986 23.2721 101.715 22.9257 101.505 22.5108C101.295 22.0967 101.176 21.6251 101.149 21.0968H108.938C108.945 20.9952 108.955 20.8968 108.969 20.8C108.976 20.7181 108.983 20.6339 108.99 20.5473C108.997 20.4614 109 20.3867 109 20.3229ZM106.895 19.7119H101.232C101.307 19.3033 101.442 18.942 101.634 18.627C101.827 18.3
1113 102.06 18.0468 102.336 17.8342C102.61 17.6201 102.922 17.4595 103.269 17.3516C103.617 17.243 103.986 17.1894 104.378 17.1894C104.708 17.1894 105.023 17.243 105.322 17.3516C105.621 17.4595 105.885 17.6201 106.112 17.8342C106.339 18.0468 106.52 18.3113 106.658 18.627C106.796 18.942 106.875 19.3033 106.895 19.7119Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.4298 17.6858C98.4987 17.6992 98.5607 17.7079 98.6151 17.7142V15.8412C98.5607 15.8349 98.5021 15.8294 98.44 15.8223C98.3848 15.816 98.3253 15.8097 98.2598 15.8034C98.1944 15.7971 98.1272 15.7939 98.0584 15.7939C97.6461 15.7939 97.2619 15.8609 96.9083 15.9947C96.5538 16.1278 96.2325 16.3112 95.9435 16.5442C95.6545 16.7765 95.4037 17.0497 95.1904 17.3662C94.977 17.6811 94.8087 18.0204 94.6846 18.3834H94.6336C94.6404 18.3196 94.6472 18.2527 94.654 18.1826C94.6608 18.1188 94.6676 18.0472 94.6744 17.9677C94.6812 17.8882 94.6846 17.7976 94.6846 17.6953V17.0749C94.6846 16.6734 94.5732 16.3805 94.3497 16.1947C94.1261 16.0105 93.7768 15.9183 93.3024 15.9183H91.3627V17.5418H92.2297C92.5391 17.5418 92.6938 17.6858 92.6938 17.9724V25.8171H94.7466V21.7664C94.7466 21.4601 94.7636 21.1586 94.7985 20.8626C94.8325 20.5666 94.898 20.2753 94.9949 19.9887C95.1181 19.6194 95.2813 19.2911 95.4845 19.0046C95.6876 18.718 95.9214 18.4739 96.1858 18.2732C96.451 18.0724 96.7366 17.9197 97.0426 17.8149C97.3486 17.7094 97.6665 17.6575 97.9963 17.6575C98.0788 17.6575 98.1578 17.6606 98.2335 17.6669C98.3091 17.6724 98.3746 17.6795 98.4298 17.6858Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.4886 25.8175H89.5211V15.8668H87.4886V25.8175Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M87.4886 14.4088H89.5211V12.6625H87.4886V14.4088Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.329 17.5419H85.6282V15.9177H84.3591C84.1185 15.9177 83.9137 15.9343 83.7454 15.9657C83.5771 15.9972 83.4309 16.0516 83.3067 16.1279C83.1835 16.2051 83.0764 16.3114 82.9871 16.4484C82.8979 16.5854 82.8188 16.7586 82.75 16.9688L80.8723 22.8649C80.8238 22.9924 80.7847 23.1176 80.7533 23.242C80.7227 23.3656 80.6972 23.479 80.6759 23.5813C80.6487 23.6955 80.6283 23.8073 80.6147 23.9159H80.5731C80.5527 23.8073 80.528 23.6955 80.5008 23.5813C80.4736 23.479 80.4421 23.3656 80.4081 23.242C80.3733 23.1176 80.3359 22.9924 80.2942 22.8649L77.9737 15.9555H76.0959L73.7949 22.8649C73.7473 22.9924 73.7057 23.1176 73.6717 23.242C73.6368 23.3656 73.6062 23.479 73.579 23.5813C73.5509 23.6955 73.5237 23.8073 73.4957 23.9159H73.4549C73.4413 23.8073 73.42 23.6955 73.3928 23.5813C73.3724 23.479 73.3444 23.3656 73.3104 23.242C73.2755 23.1176 73.2381 22.9924 73.1965 22.8649L71.2984 16.9688C71.2295 16.7586 71.1522 16.5854 71.0663 16.4484C70.9805 16.3114 70.8776 16.2051 70.7569 16.1279C70.637 16.0516 70.4925 15.9972 70.3234 15.9657C70.1551 15.9343 69.9502 15.9177 69.7097 15.9177H68.4202V17.5419H68.7194C68.8911 17.5419 69.0305 17.5679 69.1376 17.6191C69.2438 17.6695 69.3246 17.775 69.3799 17.934L72.1858 25.8172H74.5072L76.7046 19.4535C76.7454 19.326 76.7853 19.1984 76.8227 19.0709C76.861 18.9433 76.8933 18.8292 76.9213 18.7276C76.9485 18.6119 76.9757 18.4977 77.0038 18.3828H77.0446C77.0726 18.4977 77.0998 18.6119 77.127 18.7276C77.1551 18.8292 77.1857 18.9433 77.2205 19.0709C77.2545 19.1984 77.2962 19.326 77.3438 19.4535L79.5624 25.8172H81.8625L84.6685 17.934C84.7237 17.775 84.8045 17.6695 84.9108 17.6191C85.0179 17.5679 85.1573 17.5419 85.329 17.5419Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.8928 25.8171H67.9048V24.1929H67.0378C66.7284 24.1929 66.5737 24.0496 66.5737 23.7631V19.4723C66.5737 18.2047 66.2796 17.256 65.6914 16.6246C65.104 15.994 64.18 15.6791 62.922 15.6791C62.3856 15.6791 61.8985 15.7491 61.4616 15.8893C61.0247 16.0294 60.6396 16.2081 60.3064 16.4238C59.9732 16.6411 59.6927 16.8797 59.4657 17.1411C59.2388 17.4025 59.0671 17.6544 58.9498 17.8953H58.8979C58.9047 17.8197 58.9124 17.7394 58.9192 17.6575C58.926 17.5875 58.9328 17.5024 58.9396 17.4032C58.9464 17.3048 58.9498 17.1954 58.9498 17.0749V13.214C58.9498 12.7936 58.8435 12.4858 58.6302 12.2913C58.4168 12.0976 58.0691 12 57.588 12H55.5658V13.625H56.4328C56.7422 13.625 56.8969 13.7683 56.8969 14.0549V25.8171H58.9498V21.1823C58.9498 20.9414 58.9617 20.7099 58.9863 20.4895C59.0101 20.2706 59.0594 20.0612 59.1359 19.8636C59.2456 19.5077 59.4071 19.1794 59.6204 18.8794C59.8338 18.581 60.088 18.322 60.3838 18.1063C60.
16796 17.8898 61.0077 17.7213 61.369 17.5993C61.7302 17.4788 62.1136 17.4182 62.5191 17.4182C62.9458 17.4182 63.2917 17.4835 63.5561 17.6142C63.8204 17.7449 64.0253 17.9221 64.1698 18.1441C64.3143 18.3677 64.4121 18.6299 64.4639 18.933C64.5158 19.2353 64.5413 19.562 64.5413 19.9124V24.5653C64.5413 25.0054 64.6475 25.3235 64.8609 25.5211C65.0742 25.7187 65.4185 25.8171 65.8928 25.8171Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M47.6271 22.3434C47.4205 21.9072 47.3177 21.4089 47.3177 20.8483C47.3177 20.3255 47.4103 19.8469 47.5965 19.4099C47.7818 18.9745 48.0376 18.5998 48.3649 18.288C48.6913 17.9755 49.0781 17.7338 49.5252 17.5613C49.9723 17.3897 50.4568 17.3039 50.9796 17.3039C51.1726 17.3039 51.3859 17.3244 51.6197 17.3661C51.8534 17.407 52.0685 17.4692 52.264 17.5519C52.4604 17.6353 52.6253 17.7393 52.7596 17.8668C52.8939 17.9951 52.961 18.1479 52.961 18.3258V18.8706H54.8277V17.8479C54.8277 17.5684 54.7622 17.3196 54.6322 17.1031C54.5013 16.8858 54.3296 16.6984 54.1162 16.5394C53.9029 16.3804 53.6606 16.2442 53.3886 16.1324C53.1174 16.0222 52.8386 15.9316 52.553 15.8647C52.2674 15.7986 51.9877 15.7505 51.7123 15.7222C51.4369 15.6939 51.193 15.6789 50.9796 15.6789C50.1202 15.6789 49.3356 15.8127 48.6276 16.0804C47.9195 16.3481 47.3143 16.715 46.8119 17.1787C46.3104 17.644 45.9211 18.1935 45.6465 18.8273C45.3711 19.4619 45.2334 20.1413 45.2334 20.8672C45.2334 21.6128 45.3728 22.3001 45.6516 22.9315C45.9304 23.5621 46.3206 24.1101 46.8221 24.5746C47.3245 25.0399 47.9263 25.4029 48.6276 25.6642C49.3297 25.9256 50.0998 26.0563 50.9388 26.0563C51.6469 26.0563 52.2708 25.9681 52.8114 25.7934C53.3512 25.6178 53.8068 25.4217 54.1783 25.206C54.6041 24.9509 54.9756 24.6636 55.2918 24.3455L54.4052 22.9984C54.1366 23.2527 53.834 23.4818 53.4974 23.6865C53.2084 23.8582 52.859 24.0141 52.4502 24.1542C52.0404 24.2951 51.5848 24.3644 51.0833 24.3644C50.5877 24.3644 50.1134 24.2872 49.6595 24.1306C49.2056 23.9739 48.8044 23.7464 48.4576 23.4472C48.1099 23.1472 47.8336 22.7804 47.6271 22.3434Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.1461 17.5419H44.4249V15.9177H43.1966C42.9765 15.9177 42.7878 15.9319 42.6296 15.961C42.4715 15.9894 42.3304 16.0421 42.2063 16.1185C42.0831 16.1949 41.976 16.2972 41.8867 16.424C41.7975 16.5515 41.7116 16.7145 41.6292 16.9113L39.4106 22.4917C39.3562 22.6192 39.3077 22.7515 39.2661 22.8885C39.2253 23.0255 39.187 23.1546 39.153 23.275C39.1182 23.4152 39.0842 23.553 39.0502 23.6868H39.0085C38.9737 23.553 38.9363 23.4152 38.8955 23.275C38.8606 23.1546 38.8215 23.0255 38.7765 22.8885C38.7314 22.7515 38.6821 22.6192 38.6269 22.4917L36.2026 16.9113C36.1201 16.7145 36.0343 16.5515 35.945 16.424C35.8549 16.2972 35.7521 16.1949 35.6347 16.1185C35.5183 16.0421 35.3823 15.9894 35.2276 15.961C35.0729 15.9319 34.8884 15.9177 34.6759 15.9177H33.4791V17.5419H33.7264C33.8981 17.5419 34.0358 17.5679 34.1395 17.6191C34.2424 17.6695 34.3317 17.775 34.4073 17.934L38.059 25.7787L37.5745 26.8588C37.3748 27.2982 37.1155 27.6454 36.7959 27.8997C36.4763 28.1539 36.1099 28.2823 35.6968 28.2823C35.4698 28.2823 35.2599 28.2461 35.0678 28.1721C34.8748 28.0988 34.7099 28.0201 34.5722 27.9335C34.4345 27.8477 34.3266 27.7674 34.2475 27.695C34.1684 27.6217 34.1285 27.5816 34.1285 27.5753L33.2827 28.9507C33.4689 29.1357 33.689 29.2987 33.9432 29.438C34.1633 29.5656 34.4277 29.679 34.738 29.7774C35.0474 29.8766 35.401 29.9254 35.8005 29.9254C36.5494 29.9254 37.2286 29.7286 37.838 29.3333C38.4466 28.9389 38.9159 28.3586 39.2457 27.5942L43.4652 17.934C43.5409 17.775 43.6301 17.6695 43.7338 17.6191C43.8367 17.5679 43.9744 17.5419 44.1461 17.5419Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0553 24.3501C32.2551 23.9903 32.3545 23.5904 32.3545 23.1518C32.3545 22.7369 32.2704 22.3771 32.1021 22.0709C31.9329 21.7662 31.7128 21.5001 31.4416 21.2741C31.1696 21.0482 30.8585 20.8521 30.5083 20.686C30.1572 20.5207 29.801 20.3687 29.4398 20.2325C29.0794 20.0955 28.7232 19.9664 28.3721 19.8452C28.0219 19.7239 27.71 19.5932 27.4388 19.4531C27.1668 19.3137 26.9466 19.1586 26.7783 18.9894C26.61 18.8217 26.5259 
118.6193 26.5259 18.3831C26.5259 17.9887 26.7044 17.6935 27.0622 17.4998C27.4201 17.3053 27.9012 17.2085 28.5064 17.2085C28.6714 17.2085 28.8482 17.2235 29.0377 17.2557C29.2273 17.2872 29.4007 17.3384 29.5588 17.4085C29.7169 17.4785 29.8495 17.5667 29.9557 17.6714C30.0629 17.7761 30.1156 17.9029 30.1156 18.0485V18.5359H31.9525V17.5998C31.9525 17.351 31.8955 17.1298 31.7816 16.9353C31.6686 16.7416 31.5173 16.5724 31.3277 16.4291C31.139 16.2858 30.9222 16.1661 30.6783 16.0708C30.4335 15.9748 30.1827 15.8992 29.9251 15.841C29.6667 15.7843 29.4092 15.7425 29.1516 15.7173C28.8932 15.6922 28.6578 15.6788 28.4444 15.6788C27.9012 15.6788 27.3887 15.7355 26.9075 15.8465C26.4256 15.9583 26.0048 16.1283 25.6435 16.3574C25.2823 16.5873 24.9975 16.8755 24.7876 17.2219C24.5776 17.5699 24.473 17.9816 24.473 18.4603C24.473 18.861 24.5572 19.2114 24.7255 19.5114C24.8938 19.8097 25.114 20.0743 25.386 20.3034C25.6571 20.5325 25.9683 20.7332 26.3193 20.9057C26.6704 21.0781 27.0257 21.2355 27.387 21.3788C27.7482 21.5221 28.1044 21.6575 28.4546 21.7843C28.8057 21.9118 29.1168 22.0457 29.3888 22.1858C29.6599 22.3267 29.8801 22.481 30.0484 22.6495C30.2176 22.8188 30.3017 23.0148 30.3017 23.2369C30.3017 23.4534 30.2516 23.6423 30.1521 23.8014C30.0518 23.9604 29.9166 24.0927 29.7441 24.1974C29.5724 24.3021 29.3743 24.3808 29.1516 24.432C28.9281 24.4824 28.6926 24.5076 28.4444 24.5076C27.9497 24.5076 27.5043 24.432 27.109 24.2785C26.7129 24.1257 26.3746 23.9572 26.0924 23.7722C25.7625 23.562 25.4701 23.3172 25.216 23.0361L24.1526 24.3068C24.4416 24.6383 24.7961 24.9311 25.216 25.1862C25.3945 25.2949 25.5951 25.4011 25.8186 25.5066C26.0422 25.6121 26.2887 25.7058 26.5565 25.7885C26.8251 25.8712 27.1141 25.9365 27.4235 25.9837C27.7329 26.0326 28.0661 26.0562 28.424 26.0562C28.9808 26.0562 29.5001 25.9869 29.9821 25.8499C30.4632 25.7129 30.8789 25.5192 31.2299 25.2673C31.581 25.0162 31.8556 24.7099 32.0553 24.3501Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.2349 16.3288C23.2349 15.673 23.1193 15.0786 22.8889 14.5464C22.6585 14.0157 22.3372 13.5591 21.925 13.1804C21.5118 12.8017 21.0205 12.5096 20.4493 12.3065C19.8781 12.1026 19.2525 12.0002 18.5716 12.0002H12V13.6827H12.0043V13.6914H12.8704C13.1807 13.6914 13.3354 13.8354 13.3354 14.122V15.1014V23.7602C13.3354 24.0475 13.1807 24.19 12.8704 24.19H12.0043V25.815H16.8503V24.19H15.9841C15.6747 24.19 15.52 24.0475 15.52 23.7602V20.7054H18.5716C19.2525 20.7054 19.8781 20.5999 20.4493 20.3897C21.0205 20.1803 21.5118 19.8835 21.925 19.5009C22.3372 19.119 22.6585 18.6592 22.8889 18.1199C23.1193 17.5822 23.2349 16.9854 23.2349 16.3288ZM21.0579 16.3288C21.0579 16.7429 20.9925 17.1169 20.8624 17.4515C20.7315 17.7861 20.5437 18.0695 20.2997 18.3018C20.0558 18.5348 19.7599 18.7128 19.4123 18.8371C19.0655 18.9615 18.6719 19.0237 18.2316 19.0237H15.52V15.1014V13.6827H18.252C18.6855 13.6827 19.0757 13.7425 19.4233 13.8638C19.7701 13.9842 20.0643 14.1582 20.3048 14.3842C20.5454 14.6101 20.7315 14.888 20.8624 15.2156C20.9925 15.5439 21.0579 15.9155 21.0579 16.3288Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M78.4724 28.8695C78.4724 29.4938 79.019 30 79.693 30C80.3671 30 80.9137 29.4938 80.9137 28.8695C80.9137 28.2451 80.3671 27.7381 79.693 27.7381C79.019 27.7381 78.4724 28.2451 78.4724 28.8695Z",className:e2}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M73.1348 28.8695C73.1348 29.4938 73.6813 30 74.3554 30C75.0295 30 75.576 29.4938 75.576 28.8695C75.576 28.2451 75.0295 27.7381 74.3554 27.7381C73.6813 27.7381 73.1348 28.2451 73.1348 28.8695Z",className:e2})]}),e7=({isSmall:e,...t})=>(0,i.jsx)(e5,{...t}),e4=(0,Q.eU)({title:"",description:"",source:"",type:"",resourceType:"",courseKey:"",isOpen:!1}),e3=(e,t)=>(0,I.I)({queryKey:["getEmbedUrl",e],queryFn:()=>(0,E.$f)({query:e}),...t||{}});s(86629);let e8=({source:e})=>{let t=e3({url:e},{enabled:!!e});return t?.data?.html?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t?.data?.html},className:"pw_105pnef0"}):null},e6=({source:e,title:t})=>(0,i.jsx)("iframe",{title:t,src:e,width:"100%",height:"100%",style:{flex:"1 0 fit-content",border:"none"}});e6.propTypes={source:eE().string.isRequired,title:eE().string.isRequired};var e9=s(48421);s(50011);var te=s(81993),tt=(0,te.c)({defaultClassName:"pw_1u9h2cvb pw_x1sxk278p pw_x1sxk24d8 pw_x1sxk23uw pw_x1sxk26ke",variantClassNames:{isChanging:{true:"pw_x1sxk27ha",false:"pw_x1sxk27h3"}},defaultVariants:{isChanging:!1},compoundVariants:[]}),ts=(0,te.c)({defaultClassName:"pw_1u9h2cvi pw_1u9h2cvf pw_x1sxk27h3 pw_x1sxk278u pw_x1sxk24em pw_x1sxk23yn",variantClassNames:{isChanging:{true:"pw_x1sxk27ha",false:"pw_x1sxk27h3"}},defaultVariants:{isChanging:!1},compoundVariants:[]});let ta=({audioElement:e=null})=>{let[t,s]=(0,u.useState)(0),[a,n]=(0,u.useState)(!1);if((0,u.useEffect)(()=>{e&&(e.currentTime=t*e.duration)},[t]),!e)return null;let r=e.currentTime/e.duration*100;return(0,i.jsxs)(e9.Ap,{className:"pw_1u9h2cv4 pw_x1sxk23yd pw_x1sxk278p",direction:e9.OP.HORIZONTAL,onChange:e=>s(e),onChangeStart:e=>{n(!0),s(e)},onChangeEnd:()=>n(!1),children:[(0,i.jsx)("div",{className:"pw_x1sxk23uw pw_x1sxk26ke pw_x1sxk278u pw_x1sxk24t2 pw_x1sxk24d8 pw_x1sxk27hm"}),(0,i.jsx)("div",{className:ts({isChanging:a}),style:{left:`calc(${r}% - 8px)`}}),(0,i.jsx)("div",{className:tt({isChanging:a}),style:{width:`${r}%`}})]})};ta.propTypes={audioElement:eE().object};var tn=s(52387);s(40226);var tr=(0,te.c)({defaultClassName:"pw_ji2mkef",variantClassNames:{size:{small:"pw_ji2mkeg",default:"pw_ji2mkeh",large:"pw_ji2mkei",xLarge:"pw_ji2mkej"},isPlaying:{true:"pw_ji2mkek",false:"pw_ji2mkel"}},defaultVariants:{size:"default",isPlaying:!1},compoundVariants:[]}),ti=(0,te.c)({defaultClassName:"pw_ji2mke8 pw_ji2mke2 pw_x1sxk2fu pw_x1sxk2ih pw_x1sxk27h3",variantClassNames:{size:{small:"pw_x1sxk24fg pw_x1sxk23zh",default:"pw_x1sxk24fq pw_x1sxk23zr",large:"pw_x1sxk24fq pw_x1sxk24gb pw_x1sxk23zr pw_x1sxk240c",xLarge:"pw_x1sxk24fv pw_x1sxk24h0 pw_x1sxk23zw pw_x1sxk2411"},layout:{floating:"pw_ji2mked pw_x1sxk278u pw_x1sxk2393 pw_x1sxk23mu pw_x1sxk22hl pw_x1sxk22vc",inline:"pw_ji2mkee"}},defaultVariants:{size:"default",layout:"floating"},compoundVariants:[]});let tl={small:"16",default:"20",large:{default:"24",tablet:"40"},xLarge:{default:"32",tablet:"40"}},to=({className:e,size:t="default",layout:s="floating",isPlaying:a=!1,disabled:n,...r})=>(0,i.jsx)(A.s,{className:`${ti({size:t,layout:s})} pw_ji2mke0 ${e}`,role:"button","aria-label":"Play",title:"Play",disabled:n,...r,children:(0,i.jsx)(tn.I,{name:a?"pause":"playRoundSolid",className:tr({size:t,isPlaying:a}),size:tl[t],color:"uiContentDefault"})}),tc=e=>`${e<10?"0":""}${e}
1`,td=e=>{let t=e<0?"-":"",s=Math.abs(e),a=Math.floor(s/3600),n=Math.floor(s%3600/60),r=Math.floor(s)%60;return a>0?`${t}${a}:${tc(n)}:${tc(r)}`:`${t}${n}:${tc(r)}`},tu=({source:e,title:t})=>(0,i.jsx)("img",{alt:t,src:e});tu.propTypes={source:eE().string.isRequired,title:eE().string.isRequired};let tp=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,tx=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/,th=/vimeo\.com\/(.+)/,tm=/\.(m3u8)($|\?)/i;s(16644);var tf=(0,te.c)({defaultClassName:"pw_rjuugp2 pw_rjuugp1 pw_x1sxk278p pw_x1sxk24t2 pw_x1sxk24av pw_x1sxk27gl pw_x1sxk26ke",variantClassNames:{isRounded:{true:"pw_rjuugp3"}},defaultVariants:{},compoundVariants:[]});let tw=({url:e})=>{let t=e3({url:e},{enabled:!!e});return t?.data?.html?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t?.data?.html},className:"pw_rjuugp4",style:{width:"100%",height:"fit-content",aspectRatio:"16 / 9"}}):null},tg=({startPosition:e,url:t,shouldAutoPlay:a,shouldShowControls:n,onProgress:r,onPlay:l,onPause:o,onEnded:c,isPlaying:d,className:p,isRounded:x,shouldLoop:h,...m})=>{let[f,w]=(0,u.useState)(!1),[g,j]=(0,u.useState)(!1),[v,y]=(0,u.useState)(null),C=tm.test(t),k=(0,u.useCallback)(e=>{y(e)},[]);(0,u.useEffect)(()=>{if(!v)return;let e=()=>{w(!0),j(!1),l&&l()},t=()=>{w(!1),j(!0),o&&o()},s=e=>{r(e?.target?.currentTime,e)};return r&&v.addEventListener("progress",s),v.addEventListener("play",e),v.addEventListener("pause",t),c&&v.addEventListener("ended",c),()=>{r&&v.removeEventListener("progress",s),v.removeEventListener("play",e),v.removeEventListener("pause",t),c&&v.removeEventListener("ended",c)}},[v,r,l,o,c]),(0,u.useEffect)(()=>{let e;if(!v||!C)return;let a=!1,n=!1,r=!1,i=()=>{!a&&v.canPlayType("application/vnd.apple.mpegurl")&&(v.src=t)};return(async()=>{try{let l=(await s.e(1046).then(s.bind(s,16267))).default;if(a)return;if(!l.isSupported())return void i();if(e=new l({maxMaxBufferLength:8}),a)return void e.destroy();e.on(l.Events.ERROR,(t,s)=>{if(s.fatal&&!a){if(s.type===l.ErrorTypes.NETWORK_ERROR&&!n){n=!0,e.startLoad();return}if(s.type===l.ErrorTypes.MEDIA_ERROR&&!r){r=!0,e.recoverMediaError();return}e.destroy(),e=void 0,i()}}),e.loadSource(t),e.attachMedia(v)}catch{i()}})(),()=>{a=!0,e?.destroy()}},[v,t,C]),(0,u.useEffect)(()=>{if(!v||!a||"boolean"==typeof d)return;let e=()=>{v.play().catch(()=>{})};return v.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?e():v.addEventListener("canplay",e,{once:!0}),()=>{v.removeEventListener("canplay",e)}},[v,a,d]),(0,u.useEffect)(()=>{v&&"boolean"==typeof d&&(d?v.play():v.pause())},[d,v]);let{style:b,..._}=m;return(0,i.jsxs)("div",{className:e0()(p,tf({isRounded:x})),style:b,children:[(0,i.jsx)("video",{width:"100%",style:{objectFit:"cover",position:"absolute",width:"100%",height:"100%"},controls:n&&(f||g),ref:k,autoPlay:a,playsInline:a,loop:h,..._,children:!C&&(0,i.jsx)("source",{src:t})}),!a&&!f&&!g&&(0,i.jsx)(to,{size:"xLarge",layout:"floating",onClick:()=>{v?.play()}})]})},tj=null;async function tv(){let e=document.querySelector('script[src*="fast.wistia.com/assets/external/E-v1"]');if(e)return void await new Promise((t,s)=>{let a=()=>{e.dataset.wistiaEmbedLoaded="true",t()};"true"===e.dataset.wistiaEmbedLoaded?t():window.Wistia?a():(e.addEventListener("load",a),e.addEventListener("error",()=>s(Error("Wistia E-v1 failed to load"))),queueMicrotask(()=>{window.Wistia&&(e.removeEventListener("load",a),a())}))});await new Promise((e,t)=>{let s=document.createElement("script");s.src="https://fast.wistia.com/assets/external/E-v1.js",s.async=!0,s.onload=()=>e(),s.onerror=()=>t(Error("Wistia E-v1 failed to load")),document.head.appendChild(s)})}let ty=()=>{},tC=({url:e,startPosition:t=0,onProgress:s=ty,onPlay:a=ty,onPause:n=ty,onEnded:r=ty,shouldAutoPlay:l=!1,style:o,className:c="",isPlaying:d,isRounded:p,imageUrl:x,imageProps:h={}})=>{let[m,f]=(0,u.useState)(!1),[w,g]=(0,u.useState)(!1),[j,v]=(0,u.useState)(),y=(0,u.useRef)(a),C=(0,u.useRef)(n),k=(0,u.useRef)(r),b=(0,u.useRef)(s),_=(0,u.useRef)(t),N=(0,u.useRef)(null);(0,u.useEffect)(()=>{y.current=a,C.current=n,k.current=r,b.current=s},[a,n,r,s]),(0,u.useEffect)(()=>{_.current=t},[t]);let S=e&&(e.match(tx)[1]||"").replace(/\W/g,""),E=`wistia_embed wistia_async_${S} playerColor=31333A playButton=false playBar=true playPauseNotifier=false controlsVisibleOnLoad=false ${t?` time=${t}`:""} wmode="transparent" autoPlay=${l}`,I=(0,u.useCallback)(()=>{f(!0),g(!1),y.current()},[]),R=(0,u.useCallback)(()=>{f(!1),g(!0),C.current()},[]),M=(0,u.useCallback)(()=>{f(!1),g(!1),k.current()},[]),$=(0,u.useCallback)(e=>{let t=N.current,s=_.current,a=t&&"function"==typeof t.duration?t.duration():void 0,n="number"==typeof a&&a>0&&Number.isFinite(e)?e/a:0;s&&e<s&&t&&"function"==typeof t.time&&t.time(s),b.current({playedSeconds:e,played:n})},[]);return(0,u.useEffect)(()=>{let e,t=()=>{N.current=null,v(null),f(!1),g(!1)};if(!S)return void t();t();let s=!1,a=null;return(!tj&&(tj=tv().catch(e=>{throw tj=null,e})),tj).then(()=>{s||((e=document.createElement("script")).src=`https://fast.wistia.com/embed/medias/${S}.jsonp`,document.head.appendChild(e),window._wq=window._wq||[],window._wq.push({id:S,onReady:function(e){s||(a=e,N.current=e,v(e),e.bind("play",I),e.bind("pause",R),e.bind("end",M),e.bind("secondchange",$))}}))}).catch(()=>{}),()=>{s=!0,a&&"function"==typeof a.unbind&&(a.unbind("play",I),a.unbind("pause",R),a.unbind("end",M),a.unbind("secondchange",$)),a=null,N.current=null,e?.parentNode&&e.parentNode.removeChild(e)}},[S,I,R,M,$]),(0,u.useEffect)(()=>{j&&"boolean"==typeof d&&(d?j.play():j.pause())},[d,j]),!!e&&(0,i.jsxs)("div",{className:e0()(c,tf({isRounded:p})),style:o,children:[(0,i.jsx)("div",{className:E,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:"\xa0"},e),x&&!m&&!w&&(0,i.jsx)(eO.v,{src:x,width:1920,height:1080,alternativeText:"Video thumbnail",className:"pw_rjuugp5",...h}),!l&&!m&&!w&&(0,i.jsx)(to,{size:"xLarge",layout:"floating",onClick:()=>{N.current?.play()}})]})};tC.propTypes={url:eE().string.isRequired,onPlay:eE().func,onPause:eE().func,onEnded:eE().func,onProgress:eE().func,startPosition:eE().number,className:eE().string,
1shouldAutoPlay:eE().bool,imageUrl:eE().string,imageProps:eE().object,isPlaying:eE().bool,isRounded:eE().bool,style:eE().object};let tk=[{key:"youtube",match:tp,Player:({url:e,isRounded:t})=>{let s=((e||"").match(tp)||[])[1];return(0,i.jsx)("iframe",{title:`youtube video id ${s}`,className:tf({isRounded:t}),src:`https://www.youtube.com/embed/${s}`,frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope;",allowFullScreen:!0})}},{key:"wistia",match:tx,Player:tC},{key:"vimeo",match:th,Player:({url:e,isRounded:t})=>{let s=((e||"").match(th)||[])[1];return(0,i.jsx)("iframe",{title:`vimeo video id ${s}`,className:tf({isRounded:t}),src:`https://player.vimeo.com/video/${s}`,frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope;",allowFullScreen:!0})}},{key:"zoom",match:/us06web\.zoom\.us\/(.+)/,Player:tg},{key:"mp4",match:/^https:\/\/(.*)\.(mp4|og[gv]|webm|m3u8)$/,Player:tg}],tb=({url:e,shouldLoop:t=!1,startPosition:s,onProgress:a,onPlay:n,onPause:r,onEnded:l,shouldAutoPlay:o=!1,shouldShowControls:c=!0,isPlaying:d,isRounded:u=!0,className:p="",...x})=>{let h;for(let t of tk)if(t.match.test(e)){h=t.Player;break}return h||(h=tw),!!e&&(0,i.jsx)(h,{url:e,startPosition:s,onProgress:a,onPlay:n,onPause:r,onEnded:l,shouldAutoPlay:o,shouldShowControls:c,isPlaying:d,isRounded:u,className:p,shouldLoop:t,...x},e)};tb.propTypes={url:eE().string.isRequired,onPlay:eE().func,onPause:eE().func,onEnded:eE().func,onProgress:eE().func,shouldShowControls:eE().bool,startPosition:eE().number,className:eE().string,shouldAutoPlay:eE().bool};var t_=s(15741),tN=s(8813),tS=s(30916);s(85020);var tE=(0,te.c)({defaultClassName:"pw_g1jfdn4 pw_g1jfdn3 pw_x1sxk21o",variantClassNames:{variant:{light:"pw_g1jfdn5",dark:"pw_g1jfdn6"}},defaultVariants:{},compoundVariants:[]});let tI=({courseData:e,variant:t="light"})=>{let s=(0,E.vM)(e?.imageLandscape),a=(0,E.vM)(e?.partner)?.key;return(0,i.jsxs)(tS.N,{className:tE({variant:t}),to:`/${a}/${e?.key}`,children:[(0,i.jsx)(P.EY,{variant:"headingSmall",color:"light"===t?"contentStrong":"contentOnSolid",children:"From the course"}),(0,i.jsxs)(eX.c,{alignItems:"center",flexWrap:"nowrap",children:[(0,i.jsxs)(eX.c,{gap:"16",alignItems:"center",flexWrap:"nowrap",children:[(0,i.jsx)("img",{src:(0,tN.m)(s?.url,128,96),className:"pw_g1jfdn1 pw_x1sxk23uw pw_x1sxk24g5 pw_x1sxk27gq pw_x1sxk26nv",alt:s?.alternativeText}),(0,i.jsx)(P.EY,{variant:"labelLargeMedium",color:"currentColor",children:e?.name})]}),(0,i.jsx)(tn.I,{name:"chevronRight",size:"32",ml:"40"})]})]})},tR=({source:e="",description:t="",shouldAutoPlay:s=!1,courseKey:a,close:n=()=>{}})=>{let{data:r}=(0,t_.eg)(a);return(0,i.jsx)(A.s,{flex:"1",width:"100%",onClick:e=>{e.stopPropagation(),n()},flexDirection:"column",justifyContent:"center",children:(0,i.jsxs)(A.s,{px:{default:"20",desktop:"0"},gap:"24",flex:"1",width:{default:"100%",desktop:"1272",largeScreen:"1416"},mx:"auto",py:"48",maxWidth:"100vw",flexDirection:"column",justifyContent:"center",children:[e&&(0,i.jsx)($.a,{borderRadius:"16",overflow:"hidden",onClick:e=>{e.stopPropagation()},children:(0,i.jsx)(tb,{url:e,shouldAutoPlay:s})}),!!t&&!a&&(0,i.jsx)(P.P,{variant:"bodyLargeCondensed",color:"contentOnSolid",maxWidth:"732",marginX:"auto",onClick:e=>{e.stopPropagation()},children:t}),!!r&&(0,i.jsx)($.a,{alignSelf:"flex-end",children:(0,i.jsx)(tI,{courseData:r,variant:"dark"})})]})})};var tM=s(17738),t$=s(88442);s(5032);var tL="pw_269mju1 pw_x1sxk21ep pw_x1sxk21sb pw_x1sxk2n7 pw_x1sxk210t pw_x1sxk27a8 pw_x1sxk24t2 pw_x1sxk2cd pw_x1sxk2g9 pw_x1sxk27go pw_x1sxk2ih pw_x1sxk26nv pw_x1sxk24vz";let tA={pdf:e6,audio:({source:e})=>{let[t,s]=(0,u.useState)(!1),[a,n]=(0,u.useState)(!1),r=(0,u.useRef)(),l=(0,u.useRef)(),[o,c]=(0,u.useState)({played:"",duration:""}),d=()=>{r?.current&&(c({played:td(r?.current?.currentTime),duration:r?.current?.duration?td(r?.current?.duration):null}),l.current=window.requestAnimationFrame(d))},p=()=>{a?r?.current?.pause():r?.current?.play(),n(!a)};!function(e,t,s,a=eG.n){let n=(0,u.useRef)();(0,u.useEffect)(()=>{n.current=t},[...s||[]]),(0,u.useEffect)(()=>
1{if(!(a&&a.addEventListener))return;let t=e=>{n.current&&n.current(e)};return a.addEventListener(e,t),()=>{a.removeEventListener(e,t)}},[e,a])}("keyup",e=>{32===e.keyCode&&p()},[a]);let x=(0,u.useCallback)(e=>{null!==e&&(r.current=e,e.play(),n(!0),s(!0))},[]);(0,u.useEffect)(()=>(t&&(l.current=window.requestAnimationFrame(d)),()=>{window.cancelAnimationFrame(l?.current)}),[t]);let{played:h,duration:m}=o;return(0,i.jsxs)(eN.s,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:"100%",height:"100%",style:{background:"rgba(0,0,0,0.5)"},children:[(0,i.jsxs)(eN.s,{flexDirection:"column",alignItems:"center",justifyContent:"center",flex:"1",width:"100%",gap:"16",padding:"32",children:[(0,i.jsx)(eN.s,{flexDirection:"column",alignItems:"center",justifyContent:"center",flex:"1",children:(0,i.jsx)(to,{size:"xLarge",isPlaying:a,onClick:p})}),(0,i.jsxs)(eN.s,{alignItems:"center",justifyContent:"center",width:"100%",gap:"16",children:[(0,i.jsx)(eN.E,{variant:"monospaceLarge",color:"contentOnSolid",children:h}),(0,i.jsx)(ta,{audioElement:r.current,isPlaying:a}),(0,i.jsx)(eN.E,{variant:"monospaceLarge",color:"contentOnSolid",children:m})]})]}),(0,i.jsx)("audio",{ref:x,children:(0,i.jsx)("source",{src:e})})]})},file:e8,doc:e8,docx:e8,xls:e8,xlsx:e8,image:tu,video:e=>(0,i.jsx)(tR,{shouldAutoPlay:!0,...e})},tP={width:"100%"},tO=["audio","pdf","file"],tB=()=>{let{isOpen:e,setIsOpen:t,close:s,title:a,description:n,source:r,type:l,resourceProps:o,courseKey:c}=(()=>{let[e,t]=(0,h.fp)(e4);return{open:(e,{onClose:s}={})=>{t({title:e?.title||"",description:e?.description||"",source:e?.source||"",type:e?.type||"",resourceType:e?.resourceType||"",courseKey:e?.courseKey||"",isOpen:!0,onClose:s})},close:()=>{"function"==typeof e?.onClose&&e?.onClose(e),t({title:"",description:"",source:"",type:"",resourceType:"",courseKey:"",isOpen:!1})},setIsOpen:(s,a="",n="",r="",i="",l="",o="",...c)=>(s||"function"!=typeof e?.onClose||e?.onClose(e),t({isOpen:s,title:a,description:n,source:r,type:i,resourceType:l,courseKey:o,...c})),...e}})(),d=tO.find(e=>e===l),u=tA[l]||e8;return(0,i.jsx)(eJ.V,{shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,shouldDisableScroll:!0,shouldAppBlur:!0,contentProps:{...tP},contentVerticalPosition:"top",isOpen:e,setIsOpen:t,maskOpacity:"video"===l?"0.75":"0.5",children:(0,i.jsxs)(A.s,{flexDirection:"column",height:"video"===l?"auto":"100vh",children:[(0,i.jsxs)("header",{className:tL,children:[(0,i.jsxs)(eX.c,{gap:"16",alignItems:"center",children:[(0,i.jsx)(e7,{display:{default:"none",tablet:"block"},color:"contentOnSolid"}),(0,i.jsx)(P.EY,{as:"h2",variant:"headingMedium",color:"contentOnSolid",children:a})]}),(0,i.jsxs)(A.s,{gap:"8",children:[d&&(0,i.jsx)(eQ.K,{iconName:"download",variant:"onSolid",shape:"round",size:"medium",to:(0,tM.transform)(r,t$.zk),target:"_self"}),(0,i.jsx)(eQ.K,{variant:"onSolid",size:"medium",iconName:"cross1",onClick:s})]})]}),!!u&&(0,i.jsx)(u,{title:a,description:n,courseKey:c,source:r,close:()=>t(!1),...o||{}})]})})},tz=(0,u.forwardRef)(({gridTemplateColumns:e,style:t,...s},a)=>(0,i.jsx)($.a,{display:"grid",gap:"24",gridTemplateColumns:e,...s,ref:a}));var tT=s(93706),tV=s(13405);let tD={light:`${tV.w4} ${tV._k}`,dark:`${tV.w4} ${tV.a5}`},tq=(e="light",t)=>{let[s,a]=(0,u.useState)({class:tD[e]});return(0,u.useEffect)(()=>{e&&a({class:tD[e]})},[e]),{theme:`${s.class} ${t}`}};s(91979),s(75243);var tH="pw_o5eu7p1 pw_flek8ce pw_flek8c2 pw_x1sxk23od pw_x1sxk23u2";let tU=e=>(0,i.jsx)(P.H3,{variant:"ctaSmall",color:"contentOnSolid",className:tH,...e}),tW=e=>(0,i.jsx)(L.$,{size:"small",textStyle:"label",variant:"textLight",className:"pw_o5eu7p0 pw_flek8cf",...e}),tF=({children:e,...t})=>(0,i.jsx)(T.B,{gap:"16",alignItems:"flex-start",...t,children:e}),tY=[{label:"Acceptance & Commitment Therapy",to:"/free-resources/harris"},{label:"Dialectical Behavioral Therapy",to:"/free-resources/linehan"},{label:"Cognitive Behavioral Therapy",to:"/free-resources/cbt"},{label:"EMDR Institute",to:"/free-resources/emdr"},{label:"Emotionally Focused Therapy",to:"/free-resources/sue-johnson"},{label:"Motivational Interviewing",to:"/free-resources/motivational-interviewing"},{label:"Zero Suicide Institute",to:"/free-resources/zsi"},{label:"Q & A",to:"/free-resources/q-and-a"}],tZ=[{navItems:[{label:"Courses",to:"/linehan#courses"},{label:"Reviews",to:"/linehan#reviews"},{label:"FAQ",to:"/linehan/faq"}],partnerKey:"linehan",partnerName:`Dialectical
2Behavioral Therapy`,programLabel:"DBT"},{navItems:[{label:"Courses",to:"/cbt/#courses"},{label:"Reviews",to:"/cbt#reviews"},{label:"FAQ",to:"/cbt/faq"}],partnerKey:"cbt",partnerName:`Cognitive
3Behavioral Therapy`,programLabel:"CBT"},{navItems:[{label:"Courses",to:"/harris/#courses"},{label:"Reviews",to:"/harris/#reviews"},{label:"FAQ",to:"/harris/faq"}],partnerKey:"harris",partnerName:`Acceptance
4& Commitment Therapy`,programLabel:"ACT"},{navItems:[{label:"Courses",to:"/motivational-interviewing/#courses"},{label:"Reviews",to:"/motivational-interviewing/#reviews"},{label:"FAQ",to:"/motivational-interviewing/faq"}],partnerKey:"motivational-interviewing",partnerName:`Motivational
5Interviewing
6`,programLabel:"MI"},{navItems:[{label:"Courses",to:"/sue-johnson#courses"},{label:"Reviews",to:"/sue-johnson#reviews"},{label:"FAQ",to:"/sue-johnson/faq"}],partnerKey:"sue-johnson",partnerName:`Emotionally
7Focused Therapy`,programLabel:"EFT"},{navItems:[{label:"Courses",to:"/zsi/#courses"},{label:"Reviews",to:"/zsi/#reviews"},{label:"FAQ",to:"/zsi/faq"}],partnerKey:"zsi",partnerName:`zero suicide
8institute`,programLabel:"ZSI"},{navItems:[{label:"Courses",to:"/emdr/#courses"},{label:"FAQ",to:"/emdr/faq"}],partnerKey:"emdr",partnerName:"EMDR Institute",programLabel:"EMDR"},{partnerName:"Other Courses",navItems:[{label:"Courses",to:"/other-courses/#courses"},{label:"Reviews",to:"/other-courses#reviews"},{label:"FAQ",to:"/faq"}],partnerKey:"other-courses"},{headerTo:"/faq",navItems:[],partnerName:"Frequently Asked Questions"},{partnerName:"",navItems:[{label:"The Happiness Trap",to:"https://thehappinesstrap.com/"}]}],tG=({headerTo:e,partnerKey:t,navItems:s,programLabel:a,partnerName:n,psychwireUrl:r=""})=>(0,i.jsx)(O.a,{children:(0,i.jsxs)(O.a,{as:"ul",children:[!!n&&(0,i.jsx)(O.a,{as:"li",mb:"8",children:e?(0,i.jsx)(tW,{variant:"text",to:`${r}${e}`,className:tH,children:n}):t?(0,i.jsx)(tW,{variant:"text",to:`${r}/${t}`,className:tH,children:n}):(0,i.jsx)(tU,{children:n})}),s.map(({label:e,to:t})=>(0,i.jsx)(O.a,{as:"li",mb:"8",children:(0,i.jsx)(tW,{to:`${r}${t}`,children:`${a?`${a} `:""}${e}`})},e))]})});s(18113);var tK=(0,te.c)({defaultClassName:"pw_15gd77y3 pw_15gd77y2 pw_x1sxk2d7 pw_x1sxk2ih pw_x1sxk2fu pw_15gd77y0",variantClassNames:{variant:{transparent:"pw_15gd77y4",subtle:"pw_15gd77y5"}},defaultVariants:{},compoundVariants:[]});let tJ=(0,u.forwardRef)(({variant:e="transparent",to:t,iconName:s,className:a,...n},r)=>{let l=!!t,o=l?tT.N:"button",c={};
8return t&&(c.to=t),l||(c.type="button"),(0,i.jsx)($.a,{as:o,className:`${tK({variant:e})} ${a||""}`,...c,...n,ref:r,children:s&&(0,i.jsx)(tn.I,{size:"24",name:s})})}),tQ=()=>(0,i.jsxs)($.a,{children:[(0,i.jsx)(tU,{children:"Follow us"}),(0,i.jsxs)(A.s,{as:"ul",mt:"16",gap:"16","aria-labelledby":"social-links",flexWrap:"nowrap",children:[(0,i.jsx)("li",{children:(0,i.jsx)(tJ,{iconName:"xTwitter",to:"https://twitter.com/psychwire?lang=en","aria-label":"View our Twitter page",target:"_blank"})}),(0,i.jsx)("li",{children:(0,i.jsx)(tJ,{iconName:"facebook",to:"https://www.facebook.com/Psychwire/","aria-label":"View our Facebook page",target:"_blank"})}),(0,i.jsx)("li",{children:(0,i.jsx)(tJ,{iconName:"linkedInLogo",to:"https://www.linkedin.com/company/psychwire-australia-pty-ltd","aria-label":"View our LinkedIn page",target:"_blank"})}),(0,i.jsx)("li",{children:(0,i.jsx)(tJ,{iconName:"instagramLogo",to:"https://www.instagram.com/psychwire__","aria-label":"View our Instagram page",target:"_blank"})}),(0,i.jsx)("li",{children:(0,i.jsx)(tJ,{iconName:"youtube",to:"https://www.youtube.com/@psychwire955","aria-label":"View our Youtube page",target:"_blank"})})]}),(0,i.jsx)(P.EY,{maxWidth:{default:"100%",tablet:"268"}
8,color:"contentOnSolid",variant:"labelSmall",mt:"32",display:"block",children:"\xa9 Psychwire: Reproduction, distribution, recording or commercial use of any content (including videos, course materials, transcripts, images, and Q&A responses) is prohibited without prior written permission."})]}),tX=({children:e,...t})=>(0,i.jsx)($.a,{as:"li",mb:"4",...t,children:e}),t1=(0,u.forwardRef)(({psychwireURL:e=""},t)=>{let{open:s}=S(),{theme:a}=tq("dark");return(0,i.jsx)(A.s,{as:"footer",background:"backgroundCanvas",width:"100%",className:a,ref:t,children:(0,i.jsxs)(A.s,{className:"pw_x1sxk21ep pw_x1sxk21fa pw_x1sxk21e3 pw_x1sxk21sb pw_x1sxk21sw pw_x1sxk21rp pw_x1sxk2o1 pw_x1sxk2q0 pw_x1sxk211n pw_x1sxk2141 pw_x1sxk22hl pw_x1sxk22vc pw_x1sxk2393 pw_x1sxk23mu pw_x1sxk2f5 pw_x1sxk24t2 pw_x1sxk260j",children:[(0,i.jsx)(A.s,{mb:"64",children:(0,i.jsx)(tT.N,{to:`${e}/`,"aria-label":"Navigate to the home page",children:(0,i.jsx)(e7,{color:"white"})})}),(0,i.jsxs)(A.s,{mb:"128",width:"100%",flexDirection:{default:"column",tablet:"row"},flexWrap:"wrap",justifyContent:"space-between",gap:"24",children:[(0,i.jsxs)(ej.B,{gap:"32",className:"pw_x1sxk22l7 pw_x1sxk22j0",children:[(0,i.jsx)(tF,{children:(0,i.jsx)(tW,{to:`${e}/about`,className:tH,children:"About Us"})}),(0,i.jsxs)(tF,{gap:"8",children:[(0,i.jsx)(tU,{children:"Get in touch"}),(0,i.jsx)(tW,{onClick:()=>void(y.n.HubSpotConversations?y.n.HubSpotConversations.widget.open():y.n.open(`mailto:[email protected]?subject=Support%20Request&body=${encodeURIComponent("")}`)),children:"Contact Our Customer Service"}),(0,i.jsx)(tW,{to:`${e}/support/request-an-invoice`,children:"Request an Invoice"})]}),(0,i.jsxs)(tF,{gap:"8",children:[(0,i.jsx)(tU,{children:"Group Enrollment"}),(0,i.jsx)(tW,{to:`${e}/group-enrollments`,children:"Sales Enquiries"})]}),(0,i.jsxs)(tF,{children:[(0,i.jsx)(tU,{children:"Find out"}),(0,i.jsxs)("ul",{children:[(0,i.jsx)(tX,{children:(0,i.jsx)(tW,{as:"a",target:"_blank",href:`${e}/terms_and_conditions.pdf`,children:"Terms & Conditions"})}),(0,i.jsx)(tX,{children:(0,i.jsx)(tW,{target:"_blank",to:`${e}/privacy_policy.pdf`,children:"Privacy Policy"})}),(0,i.jsx)(tX,{children:(0,i.jsx)(tW,{onClick:s,children:"Cookies"})})]})]}),(0,i.jsx)(tQ,{})]}),(0,i.jsx)(tz,{className:"pw_o5eu7p7 pw_x1sxk2cn pw_x1sxk25y6",children:tZ.map(({headerTo:t,navItems:s,partnerKey:a,programLabel:n,partnerName:r})=>(0,i.jsx)(tG,{psychwireUrl:e,headerTo:t,partnerKey:a,navItems:s,programLabel:n,partnerName:r},`${r}-${a||t||s[0]?.label}`))}),(0,i.jsxs)(ej.B,{alignItems:"flex-start",gap:"0",minWidth:"256",children:[(0,i.jsx)(tW,{to:`${e}/free-resources`,className:tH,children:"Free resources"}),(0,i.jsx)(ej.B,{as:"ul",gap:"12",mt:"16",alignItems:"flex-start",children:tY.map(({label:t,to:s})=>(0,i.jsx)(tX,{children:(0,i.jsx)(tW,{to:`${e}${s}`,children:t})},t))}),(0,i.jsx)(tW,{to:`${e}/experts`,className:tH,mt:"32",children:"Experts"}),(0,i.jsx)(P.EY,{mt:"32",color:"contentOnSolid",variant:"labelSmall",className:"pw_o5eu7p8",children:"Terms of Use: The information provided on this website is for general educational purposes only and is not medical, therapeutic, or professional advice. If you are experiencing distress or have concerns about your mental health, please seek support from a qualified clinician or local crisis service."})]})]})]})})});var t0=s(71430),t2=s.n(t0),t5=s(53706);let t7="dashboard_access_intent",t4="/dashboard",t3=(e=t4)=>{let t="string"!=typeof e||!e.startsWith("/")||e.startsWith("//")?t4:e;return t===t4?"/dashboard":`/dashboard?to=${encodeURIComponent(t)}`},t8=e=>{let t=window.location.pathname;(0,f.u4)(t7,{button:e,page_path:t});{let{gtag:s}=eG.n||{};if(s){let{event:a,...n}={event:t7,button:e,page_path:t};s("event",a,{...n,send_to:t5.t3})}}};var t6=s(94587);let t9=async({skip:e,limit:t,isRead:s})=>ei.Ay.notification.getAll({query:{limit:t,skip:e,q:JSON.stringify({isRead:s})}});var se=s(18904),st=s(80439),ss=s(41630);let sa=[0,6,13,20],sn={slowest:50,slower:20,slow:12,normal:7,fast:4,faster:2,fastest:0};function sr(){return sa[Math.floor(Math.random()*sa.length)]}function si(){return Math.random()}let sl=({color:e="#ffffff",count:t=100,minSize:s=3,maxSize:a=7,overflowPx:n=12,fadeOutSpeed:r=25,newSparkleOnFadeOut:l=!0,flicker:o=!0,flickerSpeed:c="slower",throttleFps:d=60,activateOnParentHover:p=!1,respectReducedMotion:x=!0,className:h="",style:m={}})=>{let f=(0,u.useRef)(null),w=(0,u.useRef)(null),g=(0,u.useRef)(null),j=(0,u.useRef)([]),v=(0,u.useRef)(null),y=(0,u.useRef)(null),C=(0,u.useRef)(null),k=(0,u.useRef)(null),b=(0,u.useRef)(!p),_=(0,u.useRef)(!1),N=t=>{let n,r=w.current;if(!r)return null;let i=(n=Math.min(s,a),Math.floor(Math.random()*(Math.max(s,a)-n+1)+n));return Object.assign(t,{position:{x:Math.floor(Math.random()*(r.width-i)),y:Math.floor(Math.random()*(r.height-i))},size:i,opacity:si(),color:"random"===e?`#${`000000${Math.floor(0xffffff*Math.random()).toString(16)}`.slice(-6)}`:Array.isArray(e)?e[Math.floor(Math.random()*e.length)]:e,variant:sr()})},S=()=>N({}),E=(e=t)=>{j.current=[];for(let t=0;t<e;t+=1)j.current.push(S())},I=()=>{let e=w.current,t=g.current;
8e&&t&&(t.clearRect(0,0,e.width,e.height),j.current.forEach(e=>{t.save(),t.globalAlpha=e.opacity,t.drawImage(y.current,e.variant,0,7,7,e.position.x,e.position.y,e.size,e.size),e.color&&(t.globalCompositeOperation="source-atop",t.globalAlpha=.6,t.fillStyle=e.color,t.fillRect(e.position.x,e.position.y,e.size,e.size)),t.restore()}))},R=(0,u.useRef)({fadeOutSpeed:r,flicker:o,flickerSpeed:c,newSparkleOnFadeOut:l,throttleFps:d});R.current={fadeOutSpeed:r,flicker:o,flickerSpeed:c,newSparkleOnFadeOut:l,throttleFps:d};let M=e=>{v.current=window.requestAnimationFrame(t=>{let{throttleFps:s,fadeOutSpeed:a,flicker:n,flickerSpeed:r,newSparkleOnFadeOut:i}=R.current,l=s>0?1e3/s:0;if(l&&null!=k.current&&t-k.current<l)return void M(e);k.current=t;let o=e??t,c=.001*a*(Math.min(100,t-o)/16.67),d=sn[r]||sn.normal;if(j.current.forEach(e=>{if(e.opacity-=c,n){let s=Math.floor(Math.random()*d+1);Number.isFinite(s)&&Math.floor(t)%s==0&&(e.variant=sr())}e.opacity<0&&(b.current&&i?N(e):e.opacity=si())}),I(),!b.current&&j.current.every(e=>e.opacity<=0)){window.cancelAnimationFrame(v.current),v.current=null;return}M(t)})},$=(e,t)=>{let s=w.current;if(!s)return;let a=eG.n.devicePixelRatio||1,r=e+2*(R.current?.overflowPx??n),i=t+2*(R.current?.overflowPx??n);s.style.width=`${r}px`,s.style.height=`${i}px`,s.width=Math.floor(r*a),s.height=Math.floor(i*a);let l=g.current;l&&"function"==typeof l.setTransform&&l.setTransform(a,0,0,a,0,0)},L=()=>{v.current||(E(_.current&&x?Math.max(4,Math.floor(t/3)):t),I(),(0!==r||o)&&M())};return(0,u.useEffect)(()=>{let e=w.current;if(!e)return console.warn("No sparkles today :( The canvas did not render."),()=>{};if(g.current=e.getContext("2d"),(()=>{let e=f.current;if(!e||!e.parentNode)return;let t=window.getComputedStyle(e.parentNode),s=t["box-sizing"],a="horizontal-tb"===t["writing-mode"],n=new eG.n.ResizeObserver(e=>{for(let t of e){let e=t.borderBoxSize&&(t.borderBoxSize[0]||t.borderBoxSize)||t.contentBoxSize?.[0],s=null!=(e&&e.inlineSize)?e.inlineSize:t.contentRect.width,n=null!=(e&&e.blockSize)?e.blockSize:t.contentRect.height,[r,i]=a?[s,n]:[n,s];$(r,i)}});n.observe(e.parentNode,{box:"border-box"===s?"border-box":"content-box"}),C.current=n})(),x&&"function"==typeof window.matchMedia)try{_.current=window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch(e){_.current=!1}let t=new Image;return t.onload=()=>{y.current=t,L()},t.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAHCAYAAAD5wDa1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDNFMzM5REEyMkUxMUUzOEE3NEI3Q0U1QUIzMTc4NiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozNDNFMzM5RUEyMkUxMUUzOEE3NEI3Q0U1QUIzMTc4NiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM0M0UzMzlCQTIyRTExRTM4QTc0QjdDRTVBQjMxNzg2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM0M0UzMzlDQTIyRTExRTM4QTc0QjdDRTVBQjMxNzg2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+jzOsUQAAANhJREFUeNqsks0KhCAUhW/Sz6pFSc1AD9HL+OBFbdsVOKWLajH9EE7GFBEjOMxcUNHD8dxPBCEE/DKyLGMqraoqcd4j0ChpUmlBEGCFRBzH2dbj5JycJAn90CEpy1J2SK4apVSM4yiKonhePYwxMU2TaJrm8BpykpWmKQ3D8FbX9SOO4/tOhDEG0zRhGAZo2xaiKDLyPGeSyPM8sCxr868+WC/mvu9j13XBtm1ACME8z7AsC/R9r0fGOf+arOu6jUwS7l6tT/B+xo+aDFRo5BykHfav3/gSYAAtIdQ1IT0puAAAAABJRU5ErkJggg==",()=>{v.current&&window.cancelAnimationFrame(v.current),v.current=null,j.current=[],C.current&&(C.current.disconnect(),C.current=null),y.current=null,g.current=null}},[]),(0,u.useEffect)(()=>{let e=f.current;if(!e||!e.parentNode)return;let t=e.parentNode;if(!p){b.current=!0;return}b.current=!1;let s=()=>{b.current=!0,!v.current&&y.current&&L()},a=()=>{b.current=!1};return t.addEventListener("mouseenter",s),t.addEventListener("mouseleave",a),()=>{t.removeEventListener("mouseenter",s),t.removeEventListener("mouseleave",a)}},[p]),(0,u.useEffect)(()=>{R.current={...R.current,overflowPx:n};let e=f.current;if(!e||!e.parentNode)return;let t=e.parentNode.getBoundingClientRect();$(t.width,t.height)},[n]),(0,u.useEffect)(()=>{g.current&&w.current&&(E(),0===r&&!o&&y.current&&I())},[t,s,a,e]),(0,u.useEffect)(()=>
8{if(y.current){if(0===r&&!o){v.current&&(window.cancelAnimationFrame(v.current),v.current=null),g.current&&I();return}!v.current&&b.current&&M()}},[r,o]),(0,i.jsx)("span",{ref:f,style:{width:"100%",height:"100%",overflow:"visible",position:"absolute",top:`-${n}px`,left:`-${n}px`,pointerEvents:"none",...m||{}},className:h,children:(0,i.jsx)("canvas",{ref:w})})};var so=s(3447);let sc=()=>{let e=(0,d.jE)(),{control:t,handleSubmit:s}=(0,Z.mN)(),[a,n]=(0,u.useState)(!1),{setImpersonationId:r}=(0,eK.u)();return(0,i.jsxs)(T.B,{as:"form",px:"16",gap:"8",width:"100%",onSubmit:s(t=>{e.resetQueries(),r(t?.userId),n(!0)}),children:[(0,i.jsx)(Y.D,{name:"userId",control:t,placeholder:"Enter user id"}),(0,i.jsx)(so.$,{type:"submit",textStyle:"label",isLoading:a,isDisabled:a,children:"Impersonate"})]})};var sd=s(46472);s(50490);var su=(0,te.c)({defaultClassName:"pw_eem6hyh pw_eem6hyg pw_x1sxk27gj pw_x1sxk23vl pw_x1sxk26ke pw_x1sxk278u pw_x1sxk23x4 pw_x1sxk23w0 pw_x1sxk27hv pw_x1sxk23q1",variantClassNames:{isOpen:{true:"pw_eem6hyi",false:"pw_eem6hyj"}},defaultVariants:{},compoundVariants:[]}),sp="pw_eem6hya pw_x1sxk27h2 pw_x1sxk24t2",sx=(0,te.c)({defaultClassName:"pw_eem6hyc",variantClassNames:{shouldSparkle:{true:"pw_eem6hyd",false:"pw_eem6hye"}},defaultVariants:{},compoundVariants:[]});let sh=({name:e})=>(0,i.jsx)("div",{className:"pw_x1sxk2n7 pw_x1sxk210t pw_x1sxk21ef pw_x1sxk21s1 pw_x1sxk2ih pw_x1sxk27gl pw_x1sxk23vl pw_x1sxk2cd pw_x1sxk2fu pw_x1sxk26ke",children:(0,i.jsx)(tn.I,{name:e,color:"uiContentPlaceholder"})}),sm=()=>{let e=(0,d.jE)(),[t,s]=(0,u.useState)(!1),{currentUser:a,impersonatedId:n,setImpersonationId:r}=(0,eK.u)();return(0,i.jsxs)(ej.B,{width:"100%",gap:"0",background:"backgroundSubtle",children:[(0,i.jsxs)(eX.c,{px:"24",pt:"16",pb:"8",gap:"8",children:[(0,i.jsxs)("div",{style:{position:"relative"},children:[(0,i.jsx)(sh,{name:"magicWand"}),(0,i.jsx)(sl,{color:tV.yW.contentAccent,count:8,minSize:3,maxSize:7,overflowPx:4,fadeOutSpeed:10,flicker:!0,flickerSpeed:"slowest",className:sx({shouldSparkle:!0})})]}),(0,i.jsx)(P.EY,{variant:"headingXSmall",children:"Impersonating"})]}),(0,i.jsxs)(ej.B,{width:"100%",px:"24",gap:"8",pb:"16",children:[(0,i.jsx)(sd.D,{label:"Name",children:a.displayName}),(0,i.jsx)(sd.D,{label:"User id",children:n}),(0,i.jsx)(L.$,{isLoading:t,isDisabled:t,size:"small",textStyle:"label",onClick:()=>{s(!0),r(null),e.resetQueries()},children:"Stop impersonation"})]}),(0,i.jsx)(t6.wv,{className:sp})]})};s(61522);let sf=(0,u.forwardRef)(({iconName:e,text:t,children:s,to:a,...n},r)=>(0,i.jsx)(t6.q7,{asChild:!0,children:(0,i.jsxs)(tS.N,{to:a,className:"pw_16zxzhl1 pw_x1sxk2cd pw_x1sxk2ih pw_x1sxk2k",target:"_self",...n,ref:r,children:[(0,i.jsx)("div",{className:"pw_16zxzhl6 pw_x1sxk24f6 pw_x1sxk23z7 pw_x1sxk23v6 pw_x1sxk27gp pw_x1sxk2cd pw_x1sxk2ih pw_x1sxk2fu pw_x1sxk23q1 pw_x1sxk26nv",children:(0,i.jsx)(tn.I,{name:e,className:"pw_16zxzhl4 pw_x1sxk27g3"})}),(0,i.jsx)(P.EY,{variant:"labelLargeMedium",className:"pw_16zxzhl2 pw_x1sxk22xf pw_x1sxk27fe",children:t}),s]})})),sw=()=>{let{impersonatedId:e}=(0,eK.u)(),[t,s]=(0,u.useState)(!1),[a,n]=(0,u.useState)(!1),r=()=>s(!0),l=()=>s(!1);return(0,i.jsxs)(ej.B,{width:"100%",gap:"16",children:[!!e&&(0,i.jsx)(sm,{}),!e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(sf,{onMouseEnter:r,onMouseLeave:l,onFocus:r,onBlur:l,onClick:e=>{e.preventDefault(),n(!a)},iconName:"magicWand",text:"Impersonate User",children:(0,i.jsx)(sl,{color:tV.yW.contentAccent,count:16,minSize:4,maxSize:8,overflowPx:4,fadeOutSpeed:50,flicker:!0,flickerSpeed:"slowest",className:sx({shouldSparkle:t})})}),a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(sc,{}),(0,i.jsx)(t6.wv,{className:sp})]})]})]})},sg=({unreadCount:e,...t})=>{let{styleProps:s}=(0,ef.W)(t);return(0,i.jsx)($.a,{className:"pw_x1sxk21ek pw_x1sxk21s6 pw_x1sxk2n2 pw_x1sxk210o pw_x1sxk27hi pw_x1sxk23v6 pw_x1sxk26ke pw_x1sxk2ih pw_x1sxk2cd",...s,children:(0,i.jsx)(P.EY,{variant:"labelMediumBold",color:"uiContentOnSolid",children:e})})},sj=({avatarSize:e,logoutPath:t,notificationsBadgeDelayMs:s=0,useMarketingAppAccess:a=!1,onLoginButtonClick:n})=>{let r=(0,d.jE)(),[l,o]=(0,u.useState)("https://app.psychwire.com"),[c,p]=(0,u.useState)(!1),[x,h]=(0,u.useState)(!1),{isLoading:m,hasPhonedHome:f,isLoggedIn:w,currentUser:g,logout:j,canImpersonate:v,impersonatedId:y}=(0,eK.u)();(0,u.useEffect)(()=>
8{if(!w||!f)return void h(!1);if(s<=0)return void h(!0);let e=window.setTimeout(()=>{h(!0)},s);return()=>{window.clearTimeout(e)}},[w,f,s]);let{data:C}=(({skip:e,limit:t,isRead:s,keepPreviousData:a=!0,...n}={})=>(0,I.I)({queryKey:["getNotifications",e,t,s],queryFn:()=>t9({skip:e,limit:t,isRead:s}),placeholderData:se.rX,...n}))({enabled:w&&f&&x,refetchOnMount:!1}),{open:k}=et();(0,u.useEffect)(()=>{(window?.location?.href||"").startsWith("https://app.psychwire.com")&&o("")},[]);let b=(e,t)=>({to:a?t3(e):`${l}${e}`,onClick:a?()=>t8(t):void 0}),_=!!C?.unread;if(w){let{id:s}=g||{};return(0,i.jsxs)(t6.bL,{onOpenChange:p,children:[(0,i.jsxs)(t6.l9,{style:{position:"relative",cursor:"pointer"},className:"pw_eem6hyk","aria-label":"user avatar",children:[_&&(0,i.jsx)("div",{className:"pw_eem6hy1 pw_x1sxk27hi pw_x1sxk23vl pw_x1sxk26ke pw_x1sxk278u pw_x1sxk24em pw_x1sxk23yn"}),(0,i.jsx)(st.e,{image:g?.picture,isClickable:!0,size:e}),!!y&&(0,i.jsx)(sl,{color:tV.yW.contentAccent,count:12,minSize:4,maxSize:8,overflowPx:4,fadeOutSpeed:10,flicker:!0,flickerSpeed:"slowest",className:sx({shouldSparkle:!0})}),(0,i.jsx)("div",{className:su({isOpen:c}),children:(0,i.jsx)(tn.I,{name:"chevronDown",color:"linesStrong"})})]}),(0,i.jsx)(t6.ZL,{"aria-label":"user menu",children:(0,i.jsxs)(t6.UC,{sideOffset:4,collisionPadding:24,className:"pw_eem6hy8 pw_x1sxk2cd pw_x1sxk2f5 pw_x1sxk27h3 pw_x1sxk26ke pw_x1sxk23v6 pw_x1sxk24jw pw_eem6hy7",children:[!!v&&(0,i.jsx)(sw,{}),(0,i.jsx)(sf,{iconName:"reader",text:"My Courses",...b("/","user_menu_my_courses")}),(0,i.jsx)(sf,{iconName:"person",text:"Profile",...b(`/profiles/${s}`,"user_menu_profile")}),(0,i.jsx)(sf,{iconName:"award",text:"Certificates",...b("/certificates","user_menu_certificates")}),(0,i.jsx)(sf,{iconName:"bell",text:"Notifications","aria-label":"Notifications menu item",...b("/notifications","user_menu_notifications"),children:_&&(0,i.jsx)(sg,{ml:"16",unreadCount:C?.unread})}),(0,i.jsx)(t6.wv,{className:sp}),(0,i.jsx)(sf,{iconName:"exit",text:"Log out",onClick:()=>{r.resetQueries(),j(t)}}),(0,i.jsx)(t6.i3,{className:"pw_x1sxk27k5"})]})})]})}return m||!f?(0,i.jsx)("span",{"aria-label":"Loading login","aria-live":"polite",role:"status",children:(0,i.jsx)(ss.E,{"aria-hidden":!0,height:22,width:52})}):(0,i.jsx)(L.$,{variant:"text",onClick:()=>{n?.(),k()},children:"Login"})};s(26329);var sv=(0,te.c)({defaultClassName:"pw_lntaea2 pw_lntaea0",variantClassNames:{isTransparent:{true:"pw_lntaea3",false:"pw_x1sxk27gj"}},defaultVariants:{isTransparent:!1},compoundVariants:[]});let sy=(0,u.forwardRef)(({isImpersonating:e,isTransparent:t,className:s,...a},n)=>(0,i.jsx)(A.s,{style:e?{backgroundColor:"#F5B00A"}:{},as:"header",alignItems:"center",width:"100%",justifyContent:"space-between",className:sv({isTransparent:t}),px:{default:"16",laptop:"32"},...a,ref:n})),sC=new Map,sk=(e="default")=>{let[t,s]=(0,h.fp)((sC.has(e)||sC.set(e,(0,Q.eU)(!1)),sC.get(e)));return{isOpen:t,open:()=>s(!0),close:()=>{s(!1)},toggle:()=>s(e=>!e)}};var sb=s(30181);let s_=(e,t={})=>{let s=t.duration||0;sb.Nk.scrollTo(e,{duration:s,...t})};s_.Events=sb.sV;let{color:sN}=s(70224).f,sS=({modalKey:e,...t})=>{let{isOpen:s}=sk(e),a={stroke:sN.contentDefault,strokeWidth:1,vectorEffect:"non-scaling-stroke",initial:"closed",animate:s?"opened":"closed"};return(0,i.jsx)(O.a,{as:"button",...t,type:"button",tabIndex:0,"aria-label":s?"Close menu":"Open menu","aria-expanded":s,cursor:"pointer",children:(0,i.jsxs)(O.a,{as:M.P.svg,viewBox:"0 0 6 6",overflow:"visible",preserveAspectRatio:"none",width:40,height:40,style:{padding:"12px"},children:[(0,i.jsx)(M.P.line,{x1:"0",x2:6,y1:"1",y2:"1",variants:{closed:{rotate:0,translateY:0},opened:{rotate:45,translateY:2}},...a}),(0,i.jsx)(M.P.line,{x1:"0",x2:6,y1:"3",y2:"3",variants:{closed:{opacity:1},opened:{opacity:0}},...a}),(0,i.jsx)(M.P.line,{x1:"0",x2:6,y1:"5",y2:"5",variants:{closed:{rotate:0,translateY:0},opened:{rotate:-45,translateY:-2}},...a})]})})};var sE=s(73336),sI=s(45293),sR=s(65726),sM=s(97509),s$=s(83928);s(89231);var sL=(0,te.c)({defaultClassName:"pw_1hg05oc8 pw_1hg05oc7 pw_x1sxk278p pw_x1sxk2cd pw_x1sxk2f5 pw_x1sxk27gk pw_x1sxk23v6 pw_x1sxk24d8 pw_x1sxk26ln",variantClassNames:{contentHorizontalPosition:{left:"pw_1hg05oc9",right:"pw_1hg05oca"}},defaultVariants:{},compoundVariants:[]}),sA=(0,te.c)({defaultClassName:"pw_1hg05oc2 pw_1hg05oc1 pw_x1sxk278z pw_x1sxk2cd pw_x1sxk2fp",variantClassNames:{contentHorizontalPosition:{left:"pw_1hg05oc3",right:"pw_1hg05oc4"},headerOffset:{true:"pw_1hg05oc5"}},defaultVariants:{},compoundVariants:[]});let sP={exit:{pointerEvents:"none"}};function sO({shouldDisableScroll:e,contentHorizontalPosition:t,headerOffset:s,...a}){return(0,i.jsx)(O.a,{as:M.P.div,className:sA({contentHorizontalPosition:t,headerOffset:s}),...sP,...a})}let sB={initial:{left:"-100%"},animate:{left:"0"},exit:{left:"-100%"},transition:{left:{type:"tween",duration:.2,ease:"easeInOut"}}},sz=(0,u.forwardRef)(({contentHorizontalPosition:e,...t},s)=>(0,i.jsx)(O.a,{as:M.P.aside,...sB,className:sL({contentHorizontalPosition:e}),ref:s,...t}));function sT({children:e,shouldCloseOnEsc:t,shouldCloseOnClickOutside:s,shouldDisableScroll:a,shouldAppBlur:n,contentProps:r,shouldAutoFocus:l=!1,onClose:o=()=>{},contentHorizontalPosition:c="left",headerOffset:d,modalKey:p,...x}){let{isOpen:h,close:m}=sk(p),{styleProps:f}=(0,sE.W)(x),w=e=>{e?.x>document.documentElement.offsetWidth||(m(),o())},g=(0,u.useRef)(null),j=(0,u.useRef)(!1),v=(0,u.useRef)(!1);(0,u.useEffect)(()=>{h&&n&&!v.current&&(sR.TR.enable(),v.current=!0),h&&a&&!j.current&&(sR.RY.disable(),j.current=!0),!h&&(v.current&&(sR.TR.disable(),v.current=!1),j.current&&(sR.RY.enable(),j.current=!1))},[h]),(0,u.useEffect)(()=>()=>{j.current&&(sR.RY.enable(),j.current=!1),v.current&&(sR.TR.disable(),v.current=!1)},[]),(0,sI.x)(27,()=>{t&&h&&w()},h);let[y,C]=(0,u.useState)(!1);return(0,sM.createPortal)((0,i.jsx)(H.N,{children:h&&(0,i.jsx)(sO,{shouldDisableScroll:a,contentHorizontalPosition:c,headerOffset:d,...f,style:{...f.style||{}},onClick:()=>{s&&!y&&w(),C(!1)},children:(0,i.jsx)(s$.Ay,{autoFocus:l,children:(0,i.jsx)(sz,{ref:g,contentHorizontalPosition:c,...r,onClick:e=>{e.stopPropagation()},onMouseDown:()=>{C(!0)},onMouseUp:()=>{C(!1)},children:e})})},`sidebar-${p}`)}),sR.n2.document.body)}let sV=()=>{},sD={default:"initial",laptop:"none"};function sq({items:e=null,shouldUseFocusTrap:t=!1,contentHorizontalPosition:s="left",forceShow:a=!1,modalKey:n="mobile-menu",onClose:r=sV,...l}){let[o,c]=(0,u.useState)(!1),{isOpen:d,open:p}=sk(n),{styleProps:x}=(0,ef.W)(l);
8return(0,i.jsxs)($.a,{as:"nav",display:sD,...x,children:[(0,i.jsx)(sS,{modalKey:n,onClick:()=>{d||o||(p(),s_(0))}}),(0,i.jsx)(sT,{modalKey:n,contentHorizontalPosition:s,shouldAutoFocus:t,shouldDisableScroll:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,onClose:()=>{c(!1),r()},headerOffset:!0,children:e})]})}sq.propTypes={items:eE().node,onClose:eE().func,shouldUseFocusTrap:eE().bool,forceShow:eE().bool,contentHorizontalPosition:eE().string};var sH=s(54139);let sU=async()=>{let e=(0,E.f7)({populate:{menuItems:{populate:{contentImage:!0,menuItemImage:!0,partner:{populate:{courses:{populate:{partner:{fields:["key","name"]}}},faq:!0}}}}}}),t=await (0,E._r)(`/course-menu?${e}`);if(null==t)return null;let s=Array.isArray(t.data)?t.data[0]:t.data;if(null==s)return null;let a=(0,E.UZ)(s);return{...t,data:a}},sW=async e=>{let t=(0,E.f7)({populate:["blocks.*","blocks.contentType","seo.metaImage","blocks.documentIds","blocks.topic","mosaicImages.values","blocks.topics","blocks.linkBehaviour"],filters:{key:{$eq:e}}}),s=await (0,E._r)(`/free-resource-pages?${t}`),a=(s?.data||[])[0];if(null==a)return null;let n=(0,E.UZ)(a);return n?.attributes??null},sF=["courseMenu"],sY=()=>(0,I.I)({queryKey:sF,queryFn:()=>sU(),select:e=>e?.data?.attributes}),sZ=["strapiPartners"],sG=()=>{let{data:e}=(0,I.I)({queryKey:sZ,queryFn:E.Up});return((e=[])=>e.filter(e=>!!e.key).sort((e,t)=>e.name<t.name?-1:+(e.name>t.name)).map(({name:e,key:t})=>({label:e,to:`/free-resources/${t}`})))(e||[])},sK="/free-resources",sJ=[{label:"E-Books",to:`${sK}/e-books`},{label:"Q & A",to:`${sK}/q-and-a`},{label:"Therapy Demonstrations",to:`${sK}/therapy-demonstrations`},{label:"Expert Insights",to:`${sK}/expert-insights`},{label:"Clinical Tools and Handouts",to:`${sK}/clinical-tools`}];var sQ=s(26116);s(83414);let sX=({href:e,onClick:t,navigationMenuLink:s=!1})=>{let a=(0,i.jsx)(tS.N,{to:e,onClick:t,className:e0()("pw_16qgec93"),children:(0,i.jsx)(P.EY,{variant:"labelMediumBold",children:"Frequently Asked Questions"})});return s?(0,i.jsx)(sQ.N_,{asChild:!0,children:a}):a},s1=({href:e,onNavigate:t,navigationMenuLink:s=!1,...a})=>{let{styleProps:n}=(0,ef.W)(a);return(0,i.jsxs)(T.B,{width:"100%",px:{default:"16",laptop:"32"},gap:"0",pb:"24",...n,children:[(0,i.jsx)("hr",{className:"pw_16qgec91 pw_x1sxk27gz pw_x1sxk2771 pw_x1sxk24t2 pw_x1sxk2kp"}),(0,i.jsxs)("div",{className:"pw_x1sxk2nr pw_x1sxk211d pw_x1sxk225x pw_x1sxk2ic pw_x1sxk2cd pw_x1sxk2f5 pw_x1sxk223",children:[(0,i.jsx)(P.EY,{variant:"labelMedium",color:"contentSubtle",children:"Need Help?"}),(0,i.jsx)(sX,{href:e,onClick:t,navigationMenuLink:s})]})]})};var s0="pw_x1sxk21ea pw_x1sxk21rw pw_x1sxk2n7 pw_x1sxk210t pw_x1sxk24t2 pw_x1sxk2ih pw_x1sxk27gp pw_x1sxk23ur pw_x1sxk2l9 pw_x1sxk2k";let s2=({...e})=>(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"24px",alignItems:"flex-start",width:"100%",paddingRight:"40px"},...e}),s5=({key:e,...t})=>(0,i.jsx)(sH.$n,{variant:"textLight",textStyle:"label",color:"subtle",iconName:"chevronRight",iconSide:"right",width:"100%",justifyContent:"space-between",ml:"16",target:"_self",...t},e),s7=({key:e,...t})=>{let{close:s}=sk("sales-menu");return(0,i.jsx)(sH.$n,{variant:"textLight",textStyle:"label",color:"subtle",onClick:()=>s(),target:"_self",...t},e)},s4=({...e})=>{let{close:t}=sk("sales-menu");return(0,i.jsx)(sH.$n,{variant:"text",textStyle:"label",size:"large",color:"contentStrong",onClick:t,target:"_self",...e})},s3=({psychwireURL:e})=>{let{close:t}=sk("sales-menu"),{data:s}=sY(),a=s?.menuItems?s?.menuItems:[],[n,r]=(0,u.useState)(null),[l,o]=(0,u.useState)(null),c=(0,E.vM)(n?.partner),[d,p]=(0,u.useState)(null),x=sG(),h=e=>{o(e),r(null),p(null)},m=()=>{r(null),p(null),o(null)},f=n||l;return(0,i.jsx)(sH.az,{width:360,overflow:"hidden",height:"100%",children:(0,i.jsx)(M.P.div,{layout:!0,style:{height:"100%",position:"relative",right:f?"calc(100% - 24px)":"0"},children:(0,i.jsxs)(sH.so,{px:"24",height:"100%",children:[(0,i.jsx)(T.B,{gap:"24",alignItems:"flex-start",width:"100%",flexShrink:"0",mr:"24",py:"24",overflowY:"auto",children:(0,i.jsx)(H.N,{children:(0,i.jsxs)(s2,{children:[(0,i.jsx)(s4,{to:`${e}/`,children:"Courses"}),a.map(e=>{let t=(0,E.vM)(e?.partner);return(0,i.jsx)(s5,{onClick:()=>{r(e),p((0,E.vM)(e?.partner)?.name),o(null)},children:e?.menuItemText},t?.key)}),(0,i.jsx)(s1,{href:`${e}/faq`,onNavigate:t,mt:"24"}),(0,i.jsx)(s4,{to:"/experts",children:"Experts"}),(0,i.jsx)(s4,{to:`${e}/free-resources`,children:"Free Resources"}),(0,i.jsx)(s5,{onClick:()=>h("therapeutic-approach"),children:"Therapeutic Approach"}),(0,i.jsx)(s5,{onClick:()=>h("resource-type"),children:"Resource Type"})]})})}),(0,i.jsxs)(H.N,{children:[n&&(0,i.jsx)(M.P.div,{initial:{opacity:0}
8,animate:{opacity:1},exit:{opacity:0},style:{height:"100%",minWidth:312},children:(0,i.jsxs)(T.B,{gap:"24",alignItems:"flex-start",width:"100%",flexShrink:"0",height:"100%",pt:"24",children:[(0,i.jsx)(sH.so,{className:s0,onClick:m,children:(0,i.jsx)(sH.$n,{iconName:"chevronLeft",size:"small",variant:"text",children:"Courses"})}),(0,i.jsx)(T.B,{gap:"24",pl:"24",width:"100%",alignItems:"flex-start",height:"100%",overflowY:"auto",pb:"24",children:(0,i.jsxs)(s2,{children:[(0,i.jsx)(s4,{to:`${e}/${c?.key}`,children:d}),(0,E.IB)(c).map(t=>{let s,a=t?.attributes??t,{key:n,name:r,isRegisterInterest:l,buy_page:o}=a||{},d=(s=c?.key,(0,E.vM)(a?.partner)?.key||s),u=(0,E.vM)(o)?.publishedAt;if(!n||!d)return null;let p=`${e}/${d}/${n}`;return l&&!u&&(p=`${e}/${d}#${n}`),(0,i.jsx)(s7,{to:p,ml:"24",children:r},n)}),!!((0,E.vM)(c?.faq)||c?.faq?.data)&&(0,i.jsx)(s4,{to:`${e}/${c?.key}/faq`,children:"FAQ"}),!!c?.key&&(0,i.jsx)(s4,{to:`${e}/free-resources/${c.key}`,children:"Free Resources"})]})})]})}),"therapeutic-approach"===l&&(0,i.jsx)(M.P.div,{initial:{opacity:0}
8,animate:{opacity:1},exit:{opacity:0},style:{height:"100%",minWidth:312},children:(0,i.jsxs)(T.B,{gap:"24",alignItems:"flex-start",width:"100%",flexShrink:"0",height:"100%",pt:"24",children:[(0,i.jsx)(sH.so,{className:s0,onClick:m,children:(0,i.jsx)(sH.$n,{iconName:"chevronLeft",size:"small",variant:"text",children:"Free Resources"})}),(0,i.jsx)(T.B,{gap:"24",pl:"24",width:"100%",alignItems:"flex-start",height:"100%",overflowY:"auto",pb:"24",children:(0,i.jsxs)(s2,{children:[(0,i.jsx)(s4,{to:`${e}/free-resources`,children:"Therapeutic Approach"}),x.map(({label:t,to:s})=>(0,i.jsx)(s7,{to:`${e}${s}`,ml:"24",children:t},t))]})})]})}),"resource-type"===l&&(0,i.jsx)(M.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{height:"100%",minWidth:312},children:(0,i.jsxs)(T.B,{gap:"24",alignItems:"flex-start",width:"100%",flexShrink:"0",height:"100%",pt:"24",children:[(0,i.jsx)(sH.so,{className:s0,onClick:m,children:(0,i.jsx)(sH.$n,{iconName:"chevronLeft",size:"small",variant:"text",children:"Free Resources"})}),(0,i.jsx)(T.B,{gap:"24",pl:"24",width:"100%",alignItems:"flex-start",height:"100%",overflowY:"auto",pb:"24",children:(0,i.jsxs)(s2,{children:[(0,i.jsx)(s4,{to:`${e}/free-resources`,children:"Resource Type"}),sJ.map(({label:t,to:s})=>(0,i.jsx)(s7,{to:`${e}${s}`,ml:"24",children:t},t))]})})]})})]})]})})})};var s8=s(78196);s(50706);var s6="pw_1dr8mbe7 pw_x1sxk278z pw_x1sxk27gk pw_x1sxk26ke",s9=(0,te.c)({defaultClassName:"pw_1dr8mbeh pw_1dr8mbeg",variantClassNames:{isActive:{true:"pw_1dr8mbei",false:"pw_1dr8mbej"}},defaultVariants:{},compoundVariants:[]}),ae="pw_1dr8mbe4 pw_x1sxk2cd pw_x1sxk2ih pw_x1sxk24d8",at=s(30116);let as=(0,Q.eU)("light"),aa=e=>{let[t,s]=(0,h.fp)(as),{theme:a}=tq(t);return{theme:`${a} ${e}`,toggleColorMode:()=>{s("light"===t?"dark":"light")}}};var an=s(74376);s(34301);var ar=(0,te.c)({defaultClassName:"pw_1is7e7g1 pw_x1sxk21f9 pw_x1sxk21sv pw_x1sxk278p pw_x1sxk2cd pw_x1sxk2ih pw_x1sxk2g9 pw_x1sxk24lu pw_x1sxk27ad",variantClassNames:{isOpen:{true:"pw_1is7e7g2"}},defaultVariants:{},compoundVariants:[]});let ai=(0,u.forwardRef)((e,t)=>(0,i.jsx)(L.$,{variant:"textLight",textStyle:"label",...e,ref:t})),al=({setValue:e,partnerUrl:t,id:s,text:a,value:n})=>{let[r,l]=(0,an.W)({interval:28,sensitivity:5});return(0,u.useEffect)(()=>{r&&e(s)},[r]),(0,i.jsxs)(A.s,{className:ar({isOpen:s===n}),ref:l,children:[(0,i.jsx)(sQ.N_,{to:t,asChild:!0,children:(0,i.jsx)(tS.N,{flex:"1",className:"pw_1is7e7g4 pw_x1sxk2cd pw_x1sxk2ih",children:(0,i.jsx)(P.EY,{variant:"labelMediumBold",children:a})})}),(0,i.jsx)(sQ.l9,{className:"pw_1is7e7g5",onClick:()=>e(s),onPointerEnter:e=>e.preventDefault(),onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:(0,i.jsx)(tn.I,{name:"chevronRight",size:"16"})})]})},ao=({item:e,psychwireURL:t,setValue:s,value:a,isPreviewMode:n})=>{let r=(0,E.vM)(e?.partner),l=(0,E.IB)(r),o=(0,E.vM)(e?.contentImage),c=o?.url;return(0,i.jsxs)(sQ.q7,{value:e?.id,children:[(0,i.jsx)(al,{id:e.id,setValue:s,imageUrl:c,text:e?.menuItemText,value:a,partnerUrl:`${t}/${r?.key}`}),(0,i.jsx)(sQ.UC,{asChild:!0,children:r&&(0,i.jsxs)(T.B,{className:"pw_1is7e7g7 pw_x1sxk2o1 pw_x1sxk211n pw_x1sxk21f9 pw_x1sxk21tu pw_x1sxk27gq pw_x1sxk26ls",gap:"24",alignItems:"flex-start",children:[c?(0,i.jsx)(sQ.N_,{to:`${t}/${r?.key}`,asChild:!0,children:(0,i.jsx)(tS.N,{children:(0,i.jsx)("img",{className:"pw_1is7e7g9 pw_x1sxk23uw",src:(0,tN.m)(o.url,864,540),alt:o?.alternativeText||r?.shortName||"Course thumbnail"})})}):null,(0,i.jsxs)(T.B,{alignItems:"flex-start",gap:"16",children:[(0,i.jsx)(sQ.N_,{to:`${t}/${r?.key}#courses`,asChild:!0,children:(0,i.jsx)(ai,{children:(0,i.jsxs)(P.EY,{variant:"labelMediumBold",children:["Browse All ",r?.shortName," Courses"]})})}),(0,i.jsx)(T.B,{alignItems:"flex-start",gap:"12",children:l.map(e=>{let s,a=e?.attributes??e,{key:n,name:l,isRegisterInterest:o,buy_page:c}=a||{},d=(s=r?.key,(0,E.vM)(a?.partner)?.key||s),u=(0,E.vM)(c)?.publishedAt;if(!n||!d)return null;let p=`${t}/${d}/${n}`;return o&&!u&&(p=`${t}/${d}#${n}`),(0,i.jsx)(sQ.N_,{to:p,asChild:!0,children:(0,i.jsx)(ai,{children:(0,i.jsx)(P.
8EY,{variant:"bodySmall",children:l})})},n)})})]})]})})]},e?.id)};s(47826);let ac=e=>(e||[])[0]?.id,ad=["courses","linehan","harris","cbt","sue-johnson","motivational-interviewing","zsi"],au=({psychwireURL:e,isPreviewMode:t})=>{let{pathname:s}=(0,en.X)(),{theme:a}=aa(),n=ad.some(e=>s.startsWith(`/${e}`)),{data:r,isFetched:l}=sY(),o=r?.menuItems?r?.menuItems:[],c=ac(o),[d,p]=(0,u.useState)(c);return(0,u.useEffect)(()=>{p(ac(o))},[l]),(0,i.jsxs)(sQ.q7,{value:"courses",className:ae,children:[(0,i.jsx)(sQ.l9,{asChild:!0,children:(0,i.jsx)(sQ.N_,{asChild:!0,active:n,children:(0,i.jsx)(at.$,{variant:"text",to:`${e}/`,className:s9({isActive:n}),iconName:"chevronDown",iconSide:"right",children:"Courses"})})}),(0,i.jsx)(sQ.UC,{className:e0()(s6,"pw_10ehoev1 pw_x1sxk24qk",a),children:(0,i.jsx)(at.s,{children:(0,i.jsx)(sQ.Pb,{orientation:"vertical",value:d,defaultValue:c,children:(0,i.jsxs)(at.s,{children:[(0,i.jsxs)(T.B,{className:"pw_x1sxk27gk pw_x1sxk26ls",gap:"0",children:[(0,i.jsx)(sQ.B8,{asChild:!0,children:(0,i.jsx)(T.B,{as:"ul",gap:"0",className:"pw_10ehoev2",children:o.map(s=>(0,i.jsx)(ao,{item:s,psychwireURL:e,setValue:p,value:d,isPreviewMode:t},s?.id))})}),(0,i.jsx)(s1,{mt:"24",href:`${e}/faq`,navigationMenuLink:!0})]}),(0,i.jsx)(sQ.LM,{className:"pw_10ehoev4 pw_x1sxk278p pw_x1sxk26ke"})]})})})})]})};var ap=s(95185),ax=s(54346);let ah="MbaUwwoxspUMZ1w3W9R6DB1HgDSb8EgA",am=(e={},t=ah)=>new ax.Ay.Client({nodes:[{host:"ndxo9ecm0fygtvjwp-1.a1.typesense.net",port:"443",protocol:"https"}],apiKey:t,...e}),af=async e=>am().collections("free-resources-production").documents().search({exclude_fields:"embedding",...e}),aw=async e=>{let t=await af({q:"*",filter_by:`id:=[${e}]`});return(t?.hits||[])[0]?.document??null};s(64725);var ag="pw_1fgq9aa4";let aj=({psychwireURL:e})=>{let t,s,{data:a}=(t="free-resources-home",(0,I.I)({queryKey:["freeResourcesPageByKey",t],queryFn:()=>sW(t),enabled:!!t})),n=a?.blocks?.find(e=>e?.name==="hero"),{data:r}=(s="string"==typeof n?.typesenseDocumentId?n.typesenseDocumentId:n?.typesenseDocumentId?.value,(0,I.I)({queryKey:["getDocument",s],queryFn:()=>aw(s),enabled:!!s})),{path:l}=(e=>{let{subtype:t,type:s,id:a,slug:n}=e||{},r=v.G7[s]||{},{pathParam:i}=(r.subtypes?r.subtypes[t]:r)||{},l="q-and-a"===s?(a||"").replace("group-",""):a,o=`/free-resources/${i}/${l}/${n}`;return{fullUrl:`https://psychwire.com${o}`,path:o}})(r)||{},{pathname:o}=(0,ap.X)(),{theme:c}=aa(),d=o.startsWith("/free-resources"),u=sG();return(0,i.jsxs)(sQ.q7,{value:"free-resources",className:`${ae}`,children:[(0,i.jsx)(sQ.l9,{asChild:!0,children:(0,i.jsx)(sQ.N_,{asChild:!0,active:d,children:(0,i.jsx)(L.$,{variant:"text",to:`${e}/free-resources`,className:s9({isActive:d}),iconName:"chevronDown",iconSide:"right",children:"Free resources"})})}),(0,i.jsx)(sQ.UC,{className:e0()(s6,"pw_1fgq9aa1 pw_x1sxk21f9 pw_x1sxk21fw pw_x1sxk21sv pw_x1sxk21ti pw_x1sxk2o1 pw_x1sxk211n pw_x1sxk27gk",c),children:(0,i.jsxs)(eX.c,{gap:{default:"24",desktop:"64"},children:[(0,i.jsx)(sQ.N_,{asChild:!0,active:"/free-resources"===o,children:(0,i.jsx)(tS.N,{to:"/free-resources",children:(0,i.jsxs)(ej.B,{gap:"24",alignItems:"flex-start",children:[(0,i.jsxs)(eX.c,{alignItems:"center",children:[(0,i.jsx)(P.EY,{variant:"labelMediumBold",as:"h4",children:"All Free Resources"}),(0,i.jsx)(tn.I,{name:"triangleRight",color:"contentAccent",size:"20"})]}),(0,i.jsx)(eO.v,{src:"https://res.cloudinary.com/psychwire/image/upload/v1698306950/app%20assets/resources/menu-image.jpg?v=2",width:248,height:171,alternativeText:"Free resources menu",className:"pw_1fgq9aa3 pw_x1sxk27il pw_x1sxk23uw pw_x1sxk26ke pw_x1sxk23x4 pw_x1sxk23w0"})]})})}),(0,i.jsxs)(ej.B,{gap:"24",maxWidth:"256",children:[(0,i.jsx)(P.EY,{variant:"labelMediumBold",as:"h4",children:"Therapeutic Approaches"}),(0,i.jsx)(ej.B,{gap:"16",children:u.map(t=>(0,i.jsx)(sQ.N_,{asChild:!0,active:o===t.to,children:(0,i.jsx)(tS.N,{to:`${e}${t.to}`,className:ag,children:(0,i.jsx)(P.EY,{variant:"bodySmall",children:t.label})},t.label)},t.to))})]}),(0,i.jsxs)(ej.B,{gap:"24",maxWidth:"256",children:[(0,i.jsx)(P.EY,{variant:"labelMediumBold",as:"h4",children:"Resource Types"}),(0,i.jsx)(ej.B,{gap:"16",children:sJ.map(t=>(0,i.jsx)(sQ.N_,{asChild:!0,active:o===t.to,children:(0,i.jsx)(tS.N,{to:`${e}${t.to}
8`,className:ag,children:(0,i.jsx)(P.EY,{variant:"bodySmall",children:t.label})},t.label)},t.to))})]}),l&&(0,i.jsxs)(ej.B,{gap:"24",maxWidth:"256",children:[(0,i.jsx)(P.EY,{variant:"labelMediumBold",as:"h4",color:"contentAccent",children:"Featured"}),(0,i.jsx)(sQ.N_,{children:(0,i.jsx)(tS.N,{to:l,className:ag,children:(0,i.jsx)(P.EY,{variant:"bodySmall",children:r?.title})})})]})]})})]})};function av({psychwireURL:e="",isPreviewMode:t}){let{pathname:s}=(0,en.X)(),a="/experts"===s,[n,r]=(0,u.useState)("");return(0,u.useEffect)(()=>{let e=!!n;return e&&s8.R.disable(),()=>{e&&s8.R.enable()}},[!!n]),(0,i.jsxs)(sQ.bL,{className:"pw_1dr8mbe1 pw_x1sxk278p pw_x1sxk2dr pw_x1sxk2cf pw_x1sxk2ih pw_x1sxk2fu pw_x1sxk24d8",orientation:"vertical",onValueChange:r,children:[(0,i.jsxs)(sQ.B8,{className:"pw_x1sxk2cd pw_x1sxk278p pw_x1sxk24d8 pw_x1sxk2i7 pw_x1sxk22x",children:[(0,i.jsx)(au,{psychwireURL:e,isPreviewMode:t}),(0,i.jsx)(sQ.q7,{value:"experts",className:ae,children:(0,i.jsx)(sQ.N_,{asChild:!0,active:a,children:(0,i.jsx)(so.$,{variant:"text",to:`${e}/experts`,className:s9({isActive:a}),children:"Experts"})})}),(0,i.jsx)(aj,{psychwireURL:e,isPreviewMode:t})]}),(0,i.jsx)(H.N,{children:!!n&&(0,i.jsx)(M.P.div,{className:"pw_1dr8mbef pw_x1sxk278z pw_x1sxk279y",initial:{opacity:0}
8,animate:{opacity:1},exit:{opacity:0}})})]})}var ay=s(4009);let aC=({psychwireURL:e=""})=>{let[t,s]=(0,u.useState)(""),{pathname:a,push:n}=(0,en.X)(),r=()=>{let a=t.trim(),r=a?`${e}/search?q=${encodeURIComponent(a)}`:`${e}/search`;(0,ay.y)({search_surface:ay.XJ.HEADER,search_term:a}),(0,ay.B4)(ay.XJ.HEADER),n?.(r),s("")};return a?.startsWith("/search")?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(em.p,{value:t,placeholder:"Search","aria-label":"Search",variant:"onSolid",size:"small",iconName:"magnifyingGlass",iconSide:"right",iconSize:"20",iconOnClick:r,onChange:e=>{s(e?.target?.value)},onKeyPress:e=>{e?.key==="Enter"&&r()},width:"192",flexShrink:"0",display:{default:"none",desktop:"flex"}}),(0,i.jsx)(eQ.K,{iconName:"magnifyingGlass",variant:"onSolid",label:"search",to:`${e}/search`,display:{default:"flex",desktop:"none"}})]})},ak={default:"none",laptop:"flex"},ab=({psychwireURL:e="",isPreview:t,notificationsBadgeDelayMs:s,useMarketingDashboardRoute:a=!1})=>{let{isLoggedIn:n,impersonatedId:r}=(0,eK.u)(),{theme:l}=tq("dark"),{theme:o}=tq(""),c=a?t3("/dashboard"):"https://app.psychwire.com/dashboard";return(0,i.jsx)("div",{className:`pw_x1sxk278p pw_x1sxk27bm ${l}`,children:(0,i.jsxs)(sy,{position:"relative",zIndex:"100",alignItems:"center",isImpersonating:!!r,"aria-label":"main header",children:[(0,i.jsxs)(A.s,{flexGrow:"2",alignItems:"center",justifyContent:"flex-start",height:"100%",children:[(0,i.jsx)(sq,{modalKey:"sales-menu",items:(0,i.jsx)(s3,{psychwireURL:e})}),(0,i.jsx)(t2(),{prefetch:!1,href:`${e}/`,passHref:!0,style:{lineHeight:0,marginRight:"48px"},"aria-label":"Navigate to the home page",children:(0,i.jsx)(e7,{})}),(0,i.jsx)(av,{display:ak,psychwireURL:e,isPreviewMode:!!t})]}),(0,i.jsxs)(A.s,{flex:"4",alignItems:"center",justifyContent:"flex-end",className:o,gap:"48",children:[(0,i.jsx)(aC,{psychwireURL:e}),(0,i.jsxs)(A.s,{alignItems:"center",gap:"16",children:[n&&(0,i.jsx)(L.$,{variant:"textLight",textStyle:"label",display:ak,target:"_self",as:"a",href:c,onClick:a?()=>t8("header_my_dashboard"):void 0,children:"My Dashboard"}),(0,i.jsx)(sj,{notificationsBadgeDelayMs:s,useMarketingAppAccess:a,onLoginButtonClick:a?()=>t8("header_login"):void 0})]})]})]})})},a_=(0,Q.eU)({isPreviewMode:!1});var aN=s(16046);let aS=(0,Q.eU)(0);var aE=s(64858),aI=s(54024);s(51133);let aR=({targetElement:e})=>{let{scrollDirection:t}=(0,aI.Y)(),[s,n]=(0,u.useState)(!1),[r,l]=(0,u.useState)(!1),[o,c]=(0,u.useState)(!1),[d,p]=(0,u.useState)(!1),[x,m]=(0,u.useState)(!1),f=!o&&x>1&&s,w=(0,h.md)(aS);(0,u.useEffect)(()=>{p(!1)},[f]);let g=(0,aE.YQ)(()=>{if(o)return void m(0);let e=window.document.documentElement.scrollTop,t=window.innerHeight;m(e&&e/t)},10);(0,u.useEffect)(()=>{g()},[t]),s_.Events.scrollEvent.register("end",()=>{c(!1),n(!1)});let j=Math.min(2e3,Math.max(450,150*Math.round(x)));(0,u.useEffect)(()=>{if(r)return void n(!0);if(d&&y.n.clearTimeout(a),"DOWN"===t){y.n.clearTimeout(a),n(!1);return}"UP"===t&&(y.n.clearTimeout(a),n(!0),a=y.n.setTimeout(()=>{n(!1)},5e3))},[r,t,d]);let v=e=>{let[t]=e;l(t.isIntersecting)};return((0,u.useEffect)(()=>{if(!e)return;let t=new y.n.IntersectionObserver(v,{rootMargin:"150px"});return t.observe(e),()=>{e&&t.unobserve(e)}},[e]),e)?(0,i.jsx)(H.N,{children:f&&(0,i.jsx)(M.P.div,{initial:{opacity:0}
8,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},children:(0,i.jsx)(so.$,{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),shape:"round",size:"small",iconName:"arrowUp",iconSide:"right",className:"pw_1qkod6v0",onClick:()=>{c(!0),s_(0,{duration:j})},style:{marginBottom:w},children:"Top"})})}):null};var aM=s(77800),a$=s(57513),aL=s(60237);s(83508);var aA=s(46375);s(24538),s(53412);let aP=({className:e="",style:t={},children:s,...a})=>{let{theme:r}=aa(e),l=(0,h.md)(aS),o=e=>{let t=e.getAttribute("style"),s=l?`calc(${l} + 16px) !important;`:"0px !important;",a=t.replace(/bottom:\s*[^;]+;/,`bottom: ${s}`);/bottom:/.test(t)||(a+=` bottom: ${s}`),e.setAttribute("style",a)};return(0,u.useEffect)(()=>{eG.n.document.documentElement.className=`${r}`},[r]),(0,u.useEffect)(()=>{clearInterval(n);let e=0;{let t=document.querySelector("#hubspot-messages-iframe-container");t?o(t):n=setInterval(()=>{let t=document.querySelector("#hubspot-messages-iframe-container");if(!t){12==++e&&clearInterval(n);return}o(t),clearInterval(n)},750)}},[l]),(0,i.jsx)(a$.Kq,{children:(0,i.jsx)("div",{id:aA.oh,className:`${r} pw_1p6yzf1 pw_x1sxk27gj pw_x1sxk23td pw_x1sxk27fc ${e}`,...a,style:{...t,...(0,aL.D)({[tV.ep]:l})},children:s})})},aO=({theme:e={},children:t=null})=>t;s(21271);let aB=()=>((0,u.useEffect)(()=>{(0,f.u4)("maintenance_page_viewed",{timestamp:new Date().toISOString(),url:window.location.href})},[]),(0,i.jsx)(aP,{children:(0,i.jsxs)(aO,{children:[(0,i.jsxs)(ej.B,{className:"pw_1kpurcj0",children:[(0,i.jsx)(sy,{position:"relative",zIndex:"100",alignItems:"center","aria-label":"maintenance header",children:(0,i.jsx)(A.s,{alignItems:"center",justifyContent:"center",height:"100%",children:(0,i.jsx)(e7,{})})}),(0,i.jsxs)(ej.B,{gap:"16",alignItems:"center",justifyContent:"center",flex:"1",maxWidth:"724",mx:"auto",px:"20",children:[(0,i.jsx)(P.EY,{as:"h1",variant:"headingSmall",children:"Down for Maintenance"}),(0,i.jsx)("img",{src:"https://res.cloudinary.com/psychwire/image/upload/v1770348063/pw.com/assets/building-blocks.png",alt:"Building Blocks",width:257,height:225}),(0,i.jsxs)(P.EY,{as:"p",variant:"bodyMedium",textAlign:"center",children:["We're currently performing scheduled maintenance.",(0,i.jsx)("br",{}),"We'll be back shortly."]})]})]}),(0,i.jsx)(aM.j,{})]})}));var az=s(80203);let aT=(0,Q.eU)({isOpen:!1,videoUrl:null,title:""}),aV={width:"100%",height:"100%"},aD=({shouldAutoPlay:e=!0})=>{let{isOpen:t,setIsOpen:s,close:a,title:n,description:r,source:l}=(()=>{let[e,t]=(0,h.fp)(aT);return{open:({title:s="",description:a="",source:n=""})=>t({...e,title:s,description:a,source:n,isOpen:!0}),close:()=>t({...e,title:"",description:"",source:"",isOpen:!1}),setIsOpen:(s,a="",n="",r="")=>t({...e,isOpen:s,title:a,description:n,source:r}),isOpen:e.isOpen,title:e.title,description:e.description,source:e.source}})(),o=n||r;return(0,i.jsxs)(eJ.V,{shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,shouldDisableScroll:!0,contentProps:{...aV},contentVerticalPosition:"top",isOpen:t,setIsOpen:s,maskOpacity:o?"0.8":"0.5",children:[(0,i.jsxs)("header",{className:tL,children:[(0,i.jsxs)(eX.c,{gap:"16",alignItems:"center",children:[(0,i.jsx)(e7,{display:{default:"none",tablet:"block"},color:"contentOnSolid"}),(0,i.jsx)(P.EY,{as:"h2",variant:"headingMedium",color:"contentOnSolid",children:n})]}),(0,i.jsx)(eQ.K,{variant:"onSolid",size:"medium",iconName:"cross1",onClick:a})]}),(0,i.jsx)(tR,{description:r,source:l,close:a,shouldAutoPlay:e})]})},aq=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","msclkid","fbclid"],aH=e=>{if(null==e||""===e)return;let t=String(e).trim();if(t)return t.length>255?t.slice(0,255):t},aU=(e,t)=>{if(null!=e)return"function"==typeof e.get?e.get(t):e[t]},aW="pw_marketing_attribution",aF=()=>(((e="")=>{(0,u.useEffect)(()=>{let t;(t=(e=>{let t={};for(let s of aq){let a=aH(aU(e,s));a&&(t[s]=a)}return Object.keys(t).length?t:null})(new URLSearchParams(e)))&&t&&Object.keys(t).length&&(e=>{try{if(!e)return void eG.n?.sessionStorage?.removeItem(aW);eG.n?.sessionStorage?.setItem(aW,JSON.stringify(e))}catch{}})(t)},[e])})((0,p.useSearchParams)().toString()),null);function aY(){let e=(0,p.usePathname)();return(0,u.useEffect)(()=>{sR.RY.enable(),sR.TR.disable(),sR.n2?._hsq&&(sR.n2?._hsq?.push(["setPath",e]),sR.n2?._hsq?.push(["trackPageView"]))},[e]),null}function aZ(){let e=(0,p.usePathname)(),t=(0,p.useRouter)(),s=(0,p.useSearchParams)(),[,a]=(0,h.fp)(aN.u);return(0,u.useEffect)(()=>{let n=Object.fromEntries(s.entries()),r=s.toString();a(s=>({...s,pathname:e,search:r,params:{},query:n,push:e=>t.push(e),replace:e=>{"string"==typeof e?t.replace(e):t.replace(`${e.pathname}${e.search?`?${e.search}`:""}`)}}))},[e,t,s,a]),null}function aG({isPreview:e}){let[t,s]=(0,h.fp)(a_);return(0,u.useEffect)(()=>{t?.isPreviewMode!==e&&s({isPreviewMode:e})},[e,t?.isPreviewMode,s]),null}function aK(){let e=(0,p.usePathname)(),t=(0,p.useRouter)(),s=(0,p.useSearchParams)(),{phoneHome:a,authStatus:n}=(0,eZ.u)(),r=(0,u.useMemo)(()=>({asPath:`${e}${s.toString()?`?${s.toString()}`:""}`,replace:({pathname:e,search:s},a,n)=>{t.replace(`${e}${s?`?${s}`:""}`,{scroll:n?.scroll})}}),[e,t,s]);return(0,u.useEffect)(()=>{n===eZ.g.IDLE&&a(()=>{(e=>{let{asPath:t}=e,[s,a]=t.split("?");setTimeout(()=>{if(a){let t=new URLSearchParams(a);
8eY.forEach(e=>t.delete(e));let n=t.toString();a.length!==n.length&&e.replace({pathname:s,search:n},void 0,{shallow:!0,scroll:!1})}},0)})(r)})},[r,n,a]),null}function aJ({children:e,isPreview:t}){let[s,a]=(0,u.useState)(null),n=(0,u.useCallback)(e=>{null!==e&&a(e)},[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ab,{isPreview:t,notificationsBadgeDelayMs:2e3,useMarketingDashboardRoute:!0}),(0,i.jsxs)("main",{id:"main-content",children:[e,(0,i.jsx)(t1,{ref:n}),(0,i.jsx)(aR,{targetElement:s})]}),(0,i.jsxs)(az.i,{children:[(0,i.jsx)(eF,{shouldShowSignup:!0,shouldPromptOnAuthInvalidated:!1}),(0,i.jsx)(K,{}),(0,i.jsx)(aD,{}),(0,i.jsx)(tB,{})]})]})}function aQ({children:e,fontVariablesClassName:t,isPreview:s}){(()=>{let{currentUser:e}=(0,eK.u)();(0,u.useEffect)(()=>{e?.id&&eG.n?._hsq?.push(["identify",{email:e?.email,psych_user_id:e?.id,id:e?.id}])},[e?.id])})();let a=(0,eZ.u)(),n=(0,m.IM)(a),[r]=(0,u.useState)(()=>new c.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!0,staleTime:18e4,gcTime:36e4}}}));return v.W1?(0,i.jsx)(aB,{}):(0,i.jsxs)(aP,{className:t,children:[(0,i.jsx)(aO,{children:(0,i.jsxs)(d.Ht,{client:r,children:[(0,i.jsxs)(u.Suspense,{fallback:null,children:[(0,i.jsx)(aZ,{}),(0,i.jsx)(aK,{}),(0,i.jsx)(aF,{})]}),(0,i.jsx)(aG,{isPreview:s}),(0,i.jsx)(m.Vd,{authState:n,children:(0,i.jsx)(aJ,{isPreview:s,children:e})}),(0,i.jsx)(aY,{}),(0,i.jsx)(x.default,{id:"tag scripts",src:"/scripts/headerScripts.js",strategy:"afterInteractive"})]})}),(0,i.jsx)(l.j,{}),(0,i.jsx)(g,{}),(0,i.jsx)(o.b,{})]})}window.self!==window.top&&(0,es.se)(!1)},21784:(e,t,s)=>{Promise.resolve().then(s.bind(s,21188)),Promise.resolve().then(s.t.bind(s,11413,23)),Promise.resolve().then(s.t.bind(s,40867,23)),Promise.resolve().then(s.t.bind(s,16146,23))},23339:()=>{},89276:()=>{}},e=>{e.O(0,[8790,5666,1161,7645,1131,7772,4857,359,1991,9282,5571,8477,1194,7598,9249,2866,7693,9973,5906,9289,3951,587,2074,7358],()=>e(e.s=21784)),_N_E=e.O()}]);

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.