1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="211f0f4e-2c88-4b8a-8724-2b8769ca57c0",e._sentryDebugIdIdentifier="sentry-dbid-211f0f4e-2c88-4b8a-8724-2b8769ca57c0")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"dd187cca71d3d82efe41f311f18acd2a530963de"};(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[990],{8719:function(e,t,n){var l=n(1678),r=n(4810),a=n(6540),i=n(5737),o=n(1887);n.d(t,["p",0,e=>{var t,n,c;const s=(0,r.GR)("3000541721"),d=null===(t=e.data)||void 0===t?void 0:t.home;let u="",m=!1,p="",v="",g="";var f,h,w,b,E,y,C,x,k,A,N,_,S,L,T,I,M,R,$,P;null!==(n=e.data)&&void 0!==n&&n.home?(u=null!==(f=null==d?void 0:d.meta_title)&&void 0!==f?f:null==d?void 0:d.title,m=null!==(h=null==d?void 0:d.noindex)&&void 0!==h&&h,p=null!==(w=null==d?void 0:d.meta_title)&&void 0!==w?w:u,v=null!==(b=null==d?void 0:d.description)&&void 0!==b?b:e.data.strapiStaticPage&&null!==(E=e.data.strapiStaticPage.description)&&void 0!==E?E:s.site.siteMetadata.description,g=null!==(y=null!==(C=null==d?void 0:d.structured_data)&&void 0!==C?C:null===(x=e.data)||void 0===x||null===(k=x.strapiStaticPage)||void 0===k?void 0:k.structured_data)&&void 0!==y?y:""):(u=null!==(A=e.pageContext.title)&&void 0!==A?A:e.data.strapiStaticPage?null!==(N=e.data.strapiStaticPage.meta_title)&&void 0!==N?N:e.data.strapiStaticPage.title:"",m=null!==(_=e.pageContext.noindex)&&void 0!==_&&_,p=null!==(S=e.pageContext.meta_title)&&void 0!==S?S:u,v=null!==(L=e.pageContext.description)&&void 0!==L?L:e.data.strapiStaticPage&&null!==(T=e.data.strapiStaticPage.description)&&void 0!==T?T:s.site.siteMetadata.description,g=null!==(I=null!==(M=null==e||null===(R=e.pageContext)||void 0===R?void 0:R.structured_data)&&void 0!==M?M:null===($=e.data)||void 0===$||null===(P=$.strapiStaticPage)||void 0===P?void 0:P.structured_data)&&void 0!==I?I:"");const U=(0,l.useLocation)();return(0,a.useEffect)(()=>{if("undefined"==typeof window)return;if(window.__abTastyInitialized)return;const e=()=>{const e=(0,i.getAnalytics)();return!!e&&(e.ready(()=>{(async()=>{if(!window.__abTastyInitialized){try{const t=(0,o.xi)();if(!window.ABTastyToken&&!t){var e;const t=await(null===(e=(0,i.getAnalytics)())||void 0===e?void 0:e.user()),n=null==t?void 0:t.anonymousId();n&&(window.ABTastyToken=n)}}catch(t){console.warn("Failed to verify ABTastyToken:",t)}window.__abTastyInitialized=!0}})().catch(()=>{})}).catch(()=>{}),!0)};if(!e()){let t=0;const n=5,l=window.setInterval(()=>{t+=1;(e()||t>=n)&&(window.clearInterval(l),t>=n&&(window.__abTastyInitialized=!0))},100)}},[]),(0,a.useEffect)(()=>{if("undefined"==typeof window)return;let e,t;const n=()=>{var e;if(null===(e=window.abtasty)||void 0===e||!e.send||!window.ABTastyToken)return!1;try{return window.abtasty.send("segment",{s:{ABTastyToken:window.ABTastyToken}}),!0}catch(t){return!1}};return n()||(e=setInterval(()=>{n()&&e&&clearInterval(e)},500),t=setTimeout(()=>{e&&clearInterval(e)},1e4)),()=>{e&&clearInterval(e),t&&clearTimeout(t)}},[]),(0,a.useEffect)(()=>{if("undefined"==typeof window)return;const e=`https://www.sondermind.com${window.location.pathname||""}`;let t=document.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.rel="canonical",document.head.appendChild(t)),t.href=e},[U.pathname]),a.createElement(a.Fragment,null,a.createElement("title",null,null!==(c=u)&&void 0!==c?c:""),a.createElement("meta",{name:"title",content:p}),a.createElement("meta",{name:"description",content:v}),m&&a.createElement("meta",{name:"robots",content:"noindex, nofollow"}),a.createElement("meta",{property:"og:image",content:"https://sm-cms-artifacts-prod.s3.amazonaws.com/SM_Open_Graph_0690ed4efa.png"}),a.createElement("script",null,"
vendor: 127 bytes, line 1
1window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '
1AW-789454874
vendor: 3 bytes, line 1
1');
1"),a.createElement("script",null,"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','DUMMY');"),a.createElement("script",{type:"application/ld+json"},g))}])},4521:function(e,t,n){n.d(t,["k",0,{Article:"api::article.article",FAQCategory:"api::faq-category.faq-category",Page:"api::page.page",Provider:"api::provider.provider",Reviewer:"api::reviewer.reviewer",State:"api::state.state",StaticPage:"api::static-page.static-page",Topic:"api::topic.topic",Vertical:"api::vertical.vertical"}])},3455:function(e,t,n){n.d(t,{X:function(){return a}});var l=n(6540),r=n(1851);function a(e){const{0:t,1:n}=(0,l.useState)(null),{0:a,1:i}=(0,l.useState)(!0);return(0,l.useEffect)(()=>{const t=(0,r.C0)();if(!t||t.uid!==e)return n(null),void i(!1);i(!0),(0,r.sU)(t).then(e=>{n(e),i(!1)}).catch(()=>{n(null),i(!1)})},[e]),{data:t,loading:a}}},1960:function(e,t,n){n.r(t),n.d(t,{Head:function(){return Z.p},default:function(){return z}});var l=n(5458),r=n(913),a=n(6540),i=n(4810),o=n(2608),c=n(4033),s=n(5580),d=n(5737);var u=function({id:e,link:t,image:n,title:l,description:r,topic:i,label:u,background_color:m="var(--color-sky-1)",media_accent_color:p="var(--color-yellow-5)",button_background_color:v="var(--color-primary)",title_color:g="var(--color-lake-1)",description_color:f="inherit",button_label_color:h="white",content_align:w="left",layout:b="default",ctaLocation:E=d.Qm.INLINE}){const y=(0,s.to)(n,"medium");return"v2"===b?a.createElement("div",{className:"cta-v2",style:{backgroundColor:m}},a.createElement("div",{className:"cta-v2-content"},a.createElement("h3",{style:{color:g}},l.replace("[topic]",i)),r&&a.createElement("p",{style:{color:g}},r),a.createElement(c.A,{id:`cta-button-${e}`,label_color:h,outline:!1,label:u,link:t,background_color:v,border_radius:"8px",ctaLocation:E})),y&&a.createElement("div",{className:"cta-v2-image",role:"img","aria-label":"CTA image",style:{backgroundImage:`url('${(0,s.VG)(y)}')`}})):a.createElement("div",{style:{backgroundColor:m,padding:"20px 10px 10px 10px",borderRadius:8}},a.createElement(o.A,{width:"100%",padding:"4px",accent_color:p,id:`cta-${e}`,style:"circle",position:"right",alignment:"top",image:n}),a.createElement("div",{style:{padding:"10px 20px 20px 20px",display:"flex",flexDirection:"column",gap:10,alignItems:(e=>{switch(e){case"center":return"center";case"right":return"flex-end";default:return"flex-start"}})(w)}},a.createElement("h5",{className:"body-font",style:{textAlign:w,color:g}},l.replace("[topic]",i)),a.createElement("p",{style:{textAlign:w,color:f,marginBottom:10}},r),a.createElement(c.A,{id:`cta-button-${e}`,label_color:h,outline:!1,label:u,link:t,background_color:v,ctaLocation:E})))},m=n(8735),p=n(270),v=n(9292),g=n(5357);var f=({sources:e})=>{const{0:t,1:n}=(0,a.useState)(!1);return e&&0!==e.length?a.createElement("div",{className:"accordion-v3"},a.createElement("div",{className:"accordion-v3-header",onClick:()=>n(!t)},a.createElement("p",null,e.length," ",1===e.length?"Source":"Sources"),a.createElement("div",{className:"accordion-v3-icon"},a.createElement(v.A,{direction:t?"up":"down"}))),a.createElement("div",{className:"accordion-v3-content "+(t?"expanded":"")},a.createElement("ol",{className:"accordion-v3-list"},e.map((e,t)=>a.createElement("li",{key:`source-${t}`},a.createElement("span",null,e.title),e.url&&a.createElement(a.Fragment,null," Retrieved from ",a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",onClick:t=>{(0,g.U)()&&(t.preventDefault(),t.stopPropagation(),(0,d.lR)(p.Gt.ArticleLinkClicked,{linkUrl:e.url,linkText:e.title,placement:d.wO.SOURCES,...(0,d.Es)()}),window.open(e.url,"_blank"))}},e.url))))))):null},h=n(2075),w=n(9636);const b=[w.I8["terracotta-1"],w.I8["purple-dark-1"],w.I8["lake-10"]],E=({article:e,index:t,placement:n})=>{var l;const r=(0,s.to)(e.thumbnail||e.image,"small"),o=e.topics&&e.topics.length>0?e.topics[0].title:e.article_types&&e.article_types.length>0?e.article_types[0].title:null,c=(0,w.hq)(o||"")||b[t%b.length];return a.createElement(i.N_,{className:"d-flex cover btn text-content-gap-24",to:`/resources/${null===(l=e.vertical)||void 0===l?void 0:l.slug}/${e.slug}`,onClick:()=>{var t;(0,d.lR)(p.Gt.RelatedArticleClicked,{clickedArticleUrl:`/resources/${null===(t=e.vertical)||void 0===t?void 0:t.slug}/${e.slug}`,clickedArticleTitle:e.title,placement:null!=n?n:d.Qm.SIDEBAR,...(0,d.Es)()})}},r&&a.createElement("div",{className:"related-article-thumbnail border-width-1 rounded-20 border-color-black-2 border-solid w-100 bg-cover",role:"img","aria-label":e.title,style:{backgroundImage:`url('${(0,s.VG)(r)}
1')`}}),a.createElement("div",{className:"d-flex flex-column text-content-gap-12"},o&&a.createElement("div",{className:"d-flex align-items-center text-content-gap-8"},a.createElement("div",{className:"d-flex justify-content-center"},a.createElement(h.A,{width:16,color:c})),a.createElement("div",{className:"upper body-tobias-light"},o)),a.createElement("h4",{className:"related-article-title"},e.title)))};var y=({articles:e,excludeArticleId:t,count:n=3,heading:r="More stories",showDivider:o=!0,className:c="",placement:s})=>{const d=(0,i.GR)("3878919390");let u=(0,l.A)(e);if(u.length<n){const e=new Set(u.map(e=>e.id));t&&e.add(t);const r=d.allStrapiArticle.nodes.filter(t=>!e.has(t.id)).slice(0,n-u.length);u=[].concat((0,l.A)(u),(0,l.A)(r))}return u=u.slice(0,n),0===u.length?null:a.createElement("div",{className:`related-articles d-flex flex-column text-content-gap-24 ${c}`.trim()},r&&a.createElement("h3",null,r),o&&a.createElement("div",{className:"related-articles-divider"}),a.createElement("div",{className:"d-flex flex-column text-content-gap-24"},u.map((e,t)=>a.createElement(E,{key:e.id,article:e,index:t,placement:s}))))},C=n(4229),x=n(159),k=n(8485);var A=e=>{var t,n,l;return a.createElement("svg",{width:null!==(t=e.width)&&void 0!==t?t:11,height:null!==(n=e.height)&&void 0!==n?n:14,viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M0 0H4V14H0V0ZM7 0H11V14H7V0Z",fill:null!==(l=e.color)&&void 0!==l?l:"#004455"}))};const N="undefined"!=typeof window?window.speechSynthesis:null;var _=({htmlContent:e})=>{const{0:t,1:n}=(0,a.useState)(""),{0:l,1:r}=(0,a.useState)(!1),{0:i,1:o}=(0,a.useState)(0),{0:c,1:s}=(0,a.useState)(0),d=(0,a.useRef)(null),u=(0,a.useRef)(null),m=(0,a.useRef)(!1),p=(0,a.useRef)([]),v=(0,a.useRef)(0),g=(0,a.useRef)(!1),f="undefined"!=typeof navigator?navigator.userAgent:"",h=/Android/i.test(f),w=/Firefox/i.test(f)&&!h,b=()=>{d.current&&(clearInterval(d.current),d.current=null)},E=()=>{u.current&&(clearTimeout(u.current),u.current=null)},y=()=>{d.current||(d.current=setInterval(()=>{s(e=>e>=i?(b(),i):e+1)},1e3))};(0,a.useEffect)(()=>{if(!N)return;const e=()=>{N.getVoices()};return e(),"onvoiceschanged"in N&&(N.onvoiceschanged=e),()=>{N&&"onvoiceschanged"in N&&(N.onvoiceschanged=null)}},[]),(0,a.useEffect)(()=>{if(!N)return;N.cancel(),b(),r(!1),s(0),v.current=0;const t=document.createElement("div");t.innerHTML=e;const l=t.querySelectorAll(".skip-listening");l.length>0&&l.forEach(e=>e.remove());const a=t.innerText;n(a),p.current=h?((e,t)=>{if(e.length<=t)return[e];const n=[],l=e.match(/[^.!?]+[.!?]+/g)||[],r=l.reduce((e,t)=>e+t.length,0),a=e.slice(r).trim();a&&l.push(a),0===l.length&&l.push(e);const i=e=>{e.trim()&&n.push(e)},o=e=>{const n=e.split(" "),l=[];let r="";for(const a of n){const e=r.length>0?1:0;r.length+e+a.length<=t?r=r?`${r} ${a}`:a:(r.trim()&&l.push(r),r=a)}return r.trim()&&l.push(r),l};let c="";for(const s of l)c.length+s.length<=t?c+=s:(i(c),s.length>t?(o(s).forEach(i),c=""):c=s);return i(c),n})(a,3800):[a];const i=a.trim().split(/\s+/).length;o(Math.round(i/200*60))},[e,h]),(0,a.useEffect)(()=>()=>{N&&(E(),N.cancel(),b())},[]);const C=()=>{if(!N||v.current>=p.current.length)return b(),r(!1),s(i),void(v.current=0);const e=v.current,t=p.current[e],n=new SpeechSynthesisUtterance(t);if(n.rate=1,n.lang="en-US",w){const e=(()=>{if(!N)return null;const e=N.getVoices();if(!e.length)return null;const t=["Google US English","Samantha","Alex","Karen","Daniel"],n=["Albert","Zarvox","Bad News","Bahh","Boing","Bubbles","Cellos","Whisper","Trinoids"];for(const l of t){const t=e.find(e=>e.lang.startsWith("en")&&e.name.includes(l));if(t)return t}return e.find(e=>"en-US"===e.lang&&!n.some(t=>e.name.includes(t)))||null})();e&&(n.voice=e,n.lang=e.lang)}n.onstart=()=>{0===v.current&&(m.current=!1,r(!0),y())},n.onend=()=>{g.current?g.current=!1:(v.current++,C())},n.onerror=e=>{console.error("Text-to-speech playback failed:",e.error||"Unknown error"),b(),E(),r(!1),m.current=!1,v.current=0},u.current=setTimeout(()=>{N.speak(n),u.current=null},100),0===v.current&&setTimeout(()=>{m.current=!1},3e3)},x=()=>{N&&(m.current=!0,g.current=!1,N.cancel(),b(),s(0),v.current=0,C())},_=e=>`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")}`,S=i>0?c/i*100:0;return a.createElement("div",{className:"listen-article d-flex align-items-center w-100 border-color-beige-2"},a.createElement("button",{onClick:()=>
1{if(N&&t&&!m.current)return!N.speaking||N.paused||l?void(!N.speaking||N.paused?!N.paused||h?x():N&&(N.resume(),y(),r(!0)):N&&(E(),h?(g.current=!0,N.cancel(),v.current=0):N.pause(),b(),r(!1))):(N.cancel(),void x())},"aria-label":l?"Pause article audio":"Play article audio","aria-pressed":l,className:"listen-article-button pointer d-flex align-items-center justify-content-center border-width-1 border-solid border-color-beige-2 "+(l?"article-button-margin":"")},l?a.createElement(A,{width:20,color:"black"}):a.createElement(k.A,{width:14,color:"black",variant:"outline"})),l?a.createElement("div",{className:"listen-article-audio d-flex align-items-center w-100"},a.createElement("div",{className:"listen-article-time text-color-black-1"},_(c)),a.createElement("div",{className:"listen-article-progress bg-color-gray-2 w-100","aria-hidden":"true"},a.createElement("div",{className:"listen-article-progress-fill h-100 bg-color-black-2",style:{width:`${S}%`}})),a.createElement("div",{className:"listen-article-time text-color-black-1"},_(i))):a.createElement("div",{className:"listen-article-content d-flex flex-column w-100"},a.createElement("div",{className:"text-color-black-1 semi-bold"},"Listen to this article"),a.createElement("em",{className:"text-color-gray-1"},_(i)," min")))},S=n(8563),L=n(249),T=n(9216);var I=({fill:e})=>a.createElement("svg",{fill:null!=e?e:"currentColor",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{clipPath:"url(#clip0_1980_676)"},a.createElement("path",{d:"M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM12.8379 4.79688C12.7894 4.80588 12.7435 4.82491 12.7021 4.85156C12.6611 4.87822 12.6252 4.91271 12.5977 4.95312C12.5698 4.9939 12.5499 5.03962 12.54 5.08789L11.6523 9.25195C11.2375 9.25825 10.8235 9.29505 10.4141 9.36133C10.0046 9.42763 9.5998 9.52266 9.2041 9.64746C8.80842 9.77225 8.42231 9.92586 8.04883 10.1064C7.67561 10.2872 7.31594 10.4949 6.97266 10.7275C6.78765 10.5535 6.56618 10.4221 6.3252 10.3418C6.08432 10.2616 5.82847 10.2344 5.57617 10.2627C5.32391 10.2909 5.08039 10.3743 4.86328 10.5059C4.64628 10.6374 4.4601 10.8149 4.31836 11.0254C4.17654 11.236 4.08237 11.4749 4.04199 11.7256C4.00159 11.9764 4.01633 12.2329 4.08496 12.4775C4.15369 12.722 4.27454 12.9485 4.43945 13.1416C4.60438 13.3346 4.80936 13.4896 5.04004 13.5957C5.03675 13.6394 5.03373 13.6836 5.03223 13.7275C5.02862 13.8155 5.02862 13.9042 5.03223 13.9922C5.03373 14.0362 5.03674 14.0803 5.04004 14.124C5.04006 16.812 8.17217 18.9961 12.0361 18.9961C15.9001 18.9961 19.0322 16.812 19.0322 14.124C19.0355 14.0803 19.0385 14.0362 19.04 13.9922C19.0436 13.9042 19.0436 13.8155 19.04 13.7275C19.0385 13.6836 19.0355 13.6394 19.0322 13.5957C19.1793 13.5226 19.3155 13.4294 19.4365 13.3184C19.5577 13.2071 19.6635 13.0789 19.749 12.9385C19.8348 12.7981 19.9002 12.646 19.9434 12.4873C19.9866 12.3286 20.0063 12.1644 20.0039 12C19.9916 11.6622 19.8816 11.3354 19.6875 11.0586C19.4936 10.782 19.2242 10.5672 18.9111 10.4404C18.5978 10.3136 18.2538 10.2798 17.9219 10.3438C17.5901 10.4075 17.2837 10.5658 17.04 10.7998C16.7011 10.5694 16.346 10.3639 15.9775 10.1846C15.2396 9.82499 14.4533 9.57348 13.6436 9.43848C13.2392 9.37098 12.8297 9.33292 12.4199 9.32422L13.2002 5.58008L15.7686 6.12012C15.8316 6.70612 16.3107 7.15997 16.8994 7.19043C17.4879 7.22072 18.0119 6.81857 18.1348 6.24219C18.2578 5.66559 17.9435 5.08447 17.3936 4.87207C16.8437 4.65974 16.2205 4.87808 15.9238 5.3877L12.9844 4.7998C12.9364 4.7893 12.8862 4.78818 12.8379 4.79688ZM9.2832 15.9707C9.36337 15.9669 9.44195 15.9931 9.50391 16.0439C9.68271 16.175 9.87299 16.2906 10.0713 16.3896C10.2695 16.4886 10.4752 16.5716 10.6875 16.6357C10.8995 16.7002 11.117 16.7461 11.3369 16.7734C11.5567 16.801 11.7787 16.8097 12 16.7998C12.2217 16.8118 12.4442 16.8058 12.665 16.7803C12.8855 16.7548 13.1035 16.7105 13.3164 16.6484C13.5295 16.5862 13.7369 16.5054 13.9365 16.4082C14.136 16.3111 14.3275 16.1977 14.5078 16.0684C14.577 16.0165 14.6601 15.9833 14.7461 15.9844C14.8318 15.9856 14.9136 16.0206 14.9736 16.082C15.0336 16.1435 15.0676 16.2264 15.0664 16.3125C15.0651 16.3981 15.0301 16.4801 14.9688 16.54L14.9766 16.5C14.7658 16.6589 14.5414 16.7994 14.3066 16.9199C13.8358 17.1612 13.3263 17.3197 12.8018 17.3887C12.54 17.4228 12.2753 17.4346 12.0117 17.4238C11.7483 17.4346 11.4843 17.4228 11.2227 17.3887C10.9608 17.3542 10.7022
117.2973 10.4502 17.2188C10.1982 17.1402 9.95267 17.0405 9.71777 16.9199C9.48297 16.7994 9.25867 16.6589 9.04785 16.5C8.99694 16.4379 8.97071 16.3587 8.97461 16.2783C8.97857 16.1981 9.01278 16.1224 9.06934 16.0654C9.12634 16.0087 9.2028 15.9746 9.2832 15.9707ZM13.9121 12.3994C14.2553 12.0564 14.7713 11.954 15.2197 12.1396C15.6677 12.3257 15.96 12.7628 15.96 13.248C15.9665 13.4106 15.9401 13.5727 15.8818 13.7246C15.8237 13.8767 15.7354 14.0152 15.6221 14.1318C15.5087 14.2485 15.373 14.3416 15.2227 14.4043C15.0724 14.4667 14.9106 14.4979 14.748 14.4961L14.7598 14.4482C14.2745 14.4481 13.8373 14.1551 13.6514 13.707C13.4658 13.2586 13.569 12.7426 13.9121 12.3994ZM8.74512 12.0908C9.19354 11.9053 9.70962 12.0084 10.0527 12.3516C10.3959 12.6948 10.4982 13.2107 10.3125 13.6592C10.1265 14.1073 9.68948 14.4004 9.2041 14.4004C9.04658 14.4004 8.89069 14.3688 8.74512 14.3086C8.59964 14.248 8.46676 14.1604 8.35547 14.0488C8.24387 13.9375 8.1563 13.8047 8.0957 13.6592C8.03543 13.5134 8.00393 13.3576 8.00391 13.2002C8.00391 12.7148 8.29692 12.2768 8.74512 12.0908Z"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_1980_676"},a.createElement("rect",{width:"24",height:"24",fill:"white"}))));var M=({fill:e})=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6M22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6M22 6L12 13L2 6",stroke:null!=e?e:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}));var R=({fill:e})=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M10.0002 13C10.4297 13.5741 10.9776 14.0492 11.6067 14.3929C12.2359 14.7367 12.9317 14.9411 13.6468 14.9923C14.362 15.0435 15.0798 14.9404 15.7515 14.6898C16.4233 14.4392 17.0333 14.0471 17.5402 13.54L20.5402 10.54C21.451 9.59699 21.955 8.33397 21.9436 7.02299C21.9322 5.71201 21.4063 4.45794 20.4793 3.5309C19.5523 2.60386 18.2982 2.07802 16.9872 2.06663C15.6762 2.05523 14.4132 2.55921 13.4702 3.47L11.7502 5.18M14.0002 11C13.5707 10.4259 13.0228 9.95081 12.3936 9.60706C11.7645 9.2633 11.0687 9.05888 10.3535 9.00766C9.63841 8.95645 8.92061 9.05963 8.24885 9.31021C7.5771 9.5608 6.96709 9.95293 6.4602 10.46L3.4602 13.46C2.54941 14.403 2.04544 15.666 2.05683 16.977C2.06822 18.288 2.59407 19.542 3.52111 20.4691C4.44815 21.3961 5.70221 21.922 7.01319 21.9334C8.32418 21.9448 9.58719 21.4408 10.5302 20.53L12.2402 18.82",stroke:null!=e?e:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}));var $=({fill:e})=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M20 6L9 17L4 12",stroke:null!=e?e:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}));var P=({url:e})=>{const{0:t,1:n}=(0,a.useState)(null!=e?e:""),l=t,{0:r,1:i}=(0,a.useState)(!1),o=[{id:"facebook",icon:()=>a.createElement(S.A,{variant:"outlined"}),getUrl:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`},{id:"linkedin",icon:()=>a.createElement(L.A,{variant:"outlined"}),getUrl:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`},{id:"x",icon:()=>a.createElement(T.A,{fill:"white"}),getUrl:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`},{id:"reddit",icon:()=>a.createElement(I,{fill:"white"}),getUrl:e=>`https://www.reddit.com/submit?url=${encodeURIComponent(e)}`},{id:"email",icon:()=>a.createElement(M,{fill:"white"}),getUrl:e=>`mailto:?body=${encodeURIComponent(e)}`},{id:"copy_link",icon:()=>a.createElement(R,{fill:"white"}),getUrl:e=>e}],c="article-share-button bg-color-primary d-flex justify-content-center align-items-center pointer";return(0,a.useEffect)(()=>{e||"undefined"==typeof window||n(window.location.href)},[e]),(0,a.useEffect)(()=>{r&&setTimeout(()=>{i(!1)},3e3)},[r]),l?a.createElement("div",{className:"article-share d-flex flex-column"},a.createElement("div",{className:"article-share-heading text-color-black-2"},"Share this article:"),a.createElement("div",{className:"article-share-wrapper d-flex flex-wrap"},o.map(e=>"copy_link"!==e.id?a.createElement("a",{href:e.getUrl(l),key:e.id,target:"email"!==e.id?"_blank":"_self",className:`${c} bg-color-hover-primary-hover`,onClick:()=>{(0,g.U)()&&(0,d.lR)(p.Gt.ArticleShared,{platform:e.id,...(0,d.Es)()})}},e.icon()):a.createElement("button",{key:e.id,onClick:()=>{r||((async e=>{if("undefined"!=typeof navigator&&navigator.clipboard)try{await navigator.clipboard.writeText(e),i(!0)}catch{i(!1)}})(e.getUrl(l)),(0,g.U)()&&(0,d.lR)(p.Gt.ArticleShared,{platform:d.Fx.COPY_LINK,...(0,d.Es)()}))},className:`${c} ${r?"bg-color-green-8":"bg-color-hover-primary-hover"}`},r?a.createElement($,null):e.icon())))):null},U=n(1887),B=n(5579),D=n(2151),H=n(5687);var j=({backgroundColor:e="var(--color-beige-1)",placeholder:t="Enter ZIP or state",buttonText:n="Search"})=>{const{0:l,1:r}=(0,a.useState)(""),{0:o,1:c}=(0,a.useState)(!1);return a.createElement(D.A,{color:e,background_style:"solid",id:""},a.createElement("div",{className:"search-bar-section d-flex flex-column"},a.createElement("div",{className:"search-bar-heading text-left"},a.createElement("h2",null,"Continue the conversation with a provider who gets it")),a.createElement("div",{className:"btn-and-error-container d-flex flex-column gap-1"},a.createElement("div",{className:"input-btn-container d-flex flex-column gap-1"},a.createElement("div",{className:"input-wrapper w-100",style:{flex:1}},a.createElement(H.zt,{handlePlaceSelected:e=>{var t,n,l;const a=null===(t=e.address_components)||void 0===t||null===(n=t.find(e=>e.types.includes("administrative_area_level_1")))||void 0===n||null===(l=n.short_name)||void 0===l?void 0:l.toLowerCase();r(a||""),c(!a)},placeholder:t})),a.createElement("button",{onClick:()=>
1{if(!l)return void c(!0);(0,g.U)()&&(0,d.lR)(p.Gt.CtaClicked,{ctaText:n,ctaLocation:d.Qm.FOOTER,...(0,d.Es)()});const e=(0,U.hh)(`/sta-${l}/cty-all`);e&&(0,i.oo)((0,U.Zg)(e))},className:"search-btn btn btn-primary bg-color-yellow-7 bg-color-hover-white text-color-lake-1"},n)),o&&a.createElement("div",{className:"error-container d-flex w-100 align-items-center"},a.createElement(B.A,{color:"#b93646",width:16}),a.createElement("p",{className:"error-msg"},"Please enter a valid location")))))};function F(e){if(!e||"undefined"==typeof window)return e;const t=e.trim().replace(/^\uFEFF/,""),n=(new DOMParser).parseFromString(t,"text/html"),l=n.body.firstElementChild;if(!l||l.classList.contains("preserve-inline-styles"))return e;n.querySelectorAll("[style]").forEach(e=>e.removeAttribute("style"));const r=(e,t)=>{for(;3===(null===(n=e)||void 0===n?void 0:n.nodeType)&&/^[\s\u00A0]*$/.test(e.data);){var n;e=t>0?e.nextSibling:e.previousSibling}return e};return n.querySelectorAll("section,p,div,h1,h2,h3,h4,h5,h6").forEach(e=>(e=>{let t=r(e.firstChild,1),n=r(e.lastChild,-1);for(;1===(null===(l=t)||void 0===l?void 0:l.nodeType)&&"BR"===t.nodeName;){var l;t.remove(),t=r(e.firstChild,1)}for(;1===(null===(a=n)||void 0===a?void 0:a.nodeType)&&"BR"===n.nodeName;){var a;n.remove(),n=r(e.lastChild,-1)}})(e)),n.querySelectorAll("p, h1, h2, h3, h4, h5, h6").forEach(e=>{var t,n;const l=null!==(t=null===(n=e.textContent)||void 0===n?void 0:n.trim())&&void 0!==t?t:"",r=e.children.length>0;/^[\s\u00A0]*$/.test(l)&&!r&&e.remove()}),n.body.innerHTML}var G=e=>{if(!e||"undefined"==typeof window)return e;const t=(()=>{const e=(0,U.XD)();return e?`\n<div class="ck-editor-banner rounded-20 bg-color-sky-1">\n <div class="ck-editor-banner-heading text-content-gap-24">\n <h3>\n Get <span style="color:#004455;"><i>personalized</i></span> care from a licensed therapist\n </h3>\n <div class="ck-editor-banner-button-container">\n <a class="btn btn-primary bg-color-yellow-7 bg-color-hover-white text-color-lake-1" href="${(0,U.Zg)(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">Find a Provider <span class="button-icon" aria-hidden="true"><svg height="17" viewBox="0 0 17 17" fill="none" width="17" xmlns="http://www.w3.org/2000/svg"><g id="Arrow right"><path id="Icon" d="M3.8335 8.50004H13.1668M13.1668 8.50004L8.50016 3.83337M13.1668 8.50004L8.50016 13.1667" stroke="#004455" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></g></svg></span></a>\n </div>\n </div>\n <div class="ck-editor-banner-image border-width-1 rounded-20 w-100 bg-cover" role="img" aria-label="Thumbnail"></div>\n</div>\n`.trim():""})();if(!t)return e;const n=(new DOMParser).parseFromString(e.trim(),"text/html"),l=n.body.firstElementChild;let r=null;if(l&&"DIV"===l.tagName||(r=n.createElement("div"),r.innerHTML=n.body.innerHTML,n.body.innerHTML="",n.body.appendChild(r)),n.body.querySelector(".ck-editor-banner .ck-editor-banner-image"))return e;const a=n.body.querySelectorAll("p");if(a.length>=4){const e=a[3];var i;if(function(e,t){if(!e)return[];const n=[];let l=e.parentElement;for(;l&&l!==t;)n.push(l),l=l.parentElement;return n}(e,n.body).length>=2)null===(i=e.parentElement)||void 0===i||i.insertAdjacentHTML("afterend",t);else e.insertAdjacentHTML("afterend",t)}else n.body.insertAdjacentHTML("beforeend",t);return r&&(n.body.innerHTML=r.innerHTML),n.body.innerHTML};var q=e=>{if(!e||"undefined"==typeof window)return e;const t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll("a").forEach(e=>{const t=e.getAttribute("href");if(!t)return;const n=e.getAttribute("data-target");"self"!==n?"blank"!==n&&(e.hostname.includes("sondermind.com")||e.hostname.includes("sondermind.biz")||t.startsWith("/"))?e.removeAttribute("target"):e.setAttribute("target","_blank"):e.removeAttribute("target")}),t.body.innerHTML},O=n(4521),V=n(3455);var Z=n(8719);var z=e=>{const{data:t}=(0,V.X)(O.k.Article),n=t||e.data.strapiArticle,o=e.data.strapiStaticPage,c=function(e){const t=F(e),n=q(t),l=(0,r.A)(n);return G(l)}(n.body.data.body);let v=o.header||[],h=n.reviewers?n.reviewers[0]:null;const w=(e=>{var t,n,l,r,a;const i=null===(t=e.author_reviewer)||void 0===t||null===(n=t.slug)||void 0===n?void 0:n.trim(),o=null===(l=e.author_reviewer)||void 0===l||null===(r=l.title)||void 0===r?void 0:r.trim();if(i&&o)return{text:o,slug:i};const c=null===(a=e.author)||void 0===a?void 0:a.trim();return c?{text:c,slug:null}:null})(n);let b=(0,l.A)(o.sections||[]);n.sections&&(b=[].concat((0,l.A)(b),(0,l.A)(n.sections)));let E=n.vertical.cta;n.cta&&(E=n.cta);let k=(0,C.A$)(new Date(n.date||n.publishedAt)),A=n.updatedAt?(0,C.A$)(new Date(n.updatedAt)):"";const N=(0,s.to)(n.image,x.Fr?"small":"large"),S=(0,a.useRef)(null),{0:L,1:T}=(0,a.useState)({});return(0,a.useEffect)(()=>{const e=()=>
1{if(!S.current||window.innerWidth<1024)return void T({});const e=S.current,t=e.parentElement;if(!t)return;const n=t.getBoundingClientRect(),l=e.offsetHeight;n.top<=80&&n.bottom>l+80?T({position:"fixed",top:80,width:t.offsetWidth}):n.bottom<=l+80?T({position:"absolute",bottom:0,width:"100%"}):T({})};return window.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[]),(0,a.useEffect)(()=>{if(!(0,g.U)())return;const e=e=>{var t;const n=e.target,l=n.closest(".ck-editor-banner");var r,a;if(l)return void(0,d.lR)(p.Gt.CtaClicked,{ctaText:(null===(r=l.querySelector("a.btn"))||void 0===r||null===(a=r.textContent)||void 0===a?void 0:a.trim())||"",ctaLocation:d.Qm.ARTICLE_MIDPAGE,...(0,d.Es)()});const i=n.closest(".article-body a");i&&(0,d.lR)(p.Gt.ArticleLinkClicked,{linkUrl:i.href,linkText:(null===(t=i.textContent)||void 0===t?void 0:t.trim())||"",placement:d.wO.BODY_COPY,...(0,d.Es)()})};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n.id]),a.createElement(m.A,{pageKey:"article",id:n.id,header:v,sections:b,title:n.title,className:"bg-color-beige-1",useHomepageNavStyle:!0},a.createElement("div",{id:`detail-page-${n.id}`,className:"bg-color-beige-1"},a.createElement("div",{className:"article-content-grid mx-auto"},a.createElement("div",{className:"article-main-content d-flex flex-column text-content-gap-24"},a.createElement("section",{className:"section-v3"},a.createElement("div",{className:"section-v3-content d-flex flex-column text-content-gap-24"},a.createElement("div",{className:"show-non-desktop d-flex flex-column text-content-gap-8"},a.createElement("p",null,"Published: ",k),A&&a.createElement("p",null,a.createElement("em",null,"Last updated: ",A))),a.createElement("div",null,a.createElement("h1",null,n.title)),a.createElement("div",{className:"d-flex flex-column text-content-gap-8"},w&&a.createElement("p",null,a.createElement("span",{className:"text-color-gray-1"},"Written by: "),w.slug?a.createElement(i.N_,{to:`/medical-review-board/${w.slug}`},w.text):w.text),h&&a.createElement("p",null,a.createElement("span",{className:"text-color-gray-1"},"Clinically reviewed by: "),a.createElement(i.N_,{to:`/medical-review-board/${h.slug}`},h.title))))),a.createElement("div",{className:"section-v3"},a.createElement("div",{className:"section-v3-content"},a.createElement("div",{className:"text-color-lake-1 d-flex flex-column flex-responsive-gap"},n.body&&n.body.data.body&&a.createElement(_,{htmlContent:n.body.data.body}),N&&a.createElement("div",{className:"border-width-1 rounded-20 border-color-black-2 border-solid w-100 bg-cover",role:"img","aria-label":"Article image",style:{backgroundImage:`url('${(0,s.VG)(N)}')`,width:"100%",aspectRatio:"3 / 2",objectFit:"cover"}}),n.body&&n.body.data.body&&a.createElement("div",{className:"article-body d-flex flex-column flex-responsive-gap article-html-content",dangerouslySetInnerHTML:{__html:c.replaceAll("h2","h3").replaceAll("<p>â</p>","")}})))),a.createElement("div",{className:"section-v3"},a.createElement("div",{className:"section-v3-content"},a.createElement(f,{sources:n.sources}),a.createElement(j,null)))),a.createElement("div",{className:"article-sidebar bg-color-beige-1"},a.createElement("div",{className:"article-sidebar-content d-flex flex-column flex-responsive-gap",ref:S,style:L},a.createElement("div",{className:"show-desktop d-flex flex-column text-content-gap-8"},a.createElement("p",{className:"body-regular m-0"},"Published: ",k),A&&a.createElement("p",{className:"body-regular m-0"},a.createElement("em",null,"Last updated: ",A))),a.createElement(P,null),a.createElement(y,{articles:e.data.relatedArticles.nodes,excludeArticleId:n.id,count:3,placement:d.Qm.SIDEBAR}),a.createElement("div",{className:"show-desktop"},E&&a.createElement(u,Object.assign({},E,{layout:"v2",topic:n.topics&&n.topics[0]?n.topics[0].title:"",ctaLocation:d.Qm.SIDEBAR}))))))))}}}]); 2//# sourceMappingURL=component---src-templates-article-tsx-14cf54a7160e00ddb108.js.map
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.