1import{r as x,j as e}from"./react-vendor-DKK5h-4S.js";import{u as b,d as g,L as j}from"./router-CKFl4ZoT.js";import{A as k,u as r,v as n,w,O as d,x as v}from"./index-Dw_y0LrU.js";import{g as _,c as f,C as L,a as S,b as C,d as E}from"./index-DdXA4erY.js";import $ from"./AssessmentRouteFallback-CLJoMfbn.js";import{aa as A,a2 as T,o as O}from"./icons-CnHtIpMK.js";import"./query-BddnajNh.js";import"./supabase-CJoCJpoI.js";import"./ui-extras-CIMz-jDr.js";import"./radix-DQ8yzr2B.js";import"./forms-C5VVgFfR.js";import"./assessmentSeoRouteManifest-Dx5SCtO_.js";const H="/assets/ob-counselling-in-singapore-hero-BNAfOhh-.jpg",D="/assets/ob-counselling-services-singapore-hero-2YTKOsl_.jpg",G="/assets/ob-expat-counselling-singapore-hero-8CB4OeAG.jpg",P="/assets/ob-counselling-psychology-singapore-hero-DMx1D5r_.jpg",I="/assets/ob-counselling-centre-guide-hero-fFCvctw-.jpg",q={"/counselling-in-singapore":H,"/counselling-services-singapore":D,"/expat-counselling-singapore":G,"/counselling-psychology-singapore":P,"/counselling-in-singapore/guides/how-to-choose-a-counselling-centre-in-singapore":I},F="https://olivebranch.com.sg/appointments/",B="Schedule an Appointment",y="#77863E";function m(s,t={}){if(typeof window>"u")return;const l=window;l.dataLayer=l.dataLayer||[],l.dataLayer.push({event:s,...t}),window.dispatchEvent(new CustomEvent(s,{detail:t}))}function R(s,t){const l=(t||"").toLowerCase();return l?s.adGroups.find(i=>i.sampleKeywords.some(a=>l.includes(a.toLowerCase())))?.id??s.adGroups[0]?.id??"organic":"organic"}function N(s){const[t]=g();return x.useMemo(()=>R(s,t.get("utm_term")||t.get("utm_content")),[s,t])}function u({page:s,placement:t,sourceSection:l}){const o=N(s);return e.jsx("span",{"data-track-event":"schedule_appointment_click","data-track-location":t,"data-ad-group":o,onClick:()=>m("schedule_appointment_click",{page_path:s.path,page_title:s.seoTitle,page_category:s.pageType==="guide"?"counselling_guide":"counselling_cluster",cta_placement:t,source_section:l,ad_group:o}),children:e.jsx("a",{href:F,className:"inline-flex items-center justify-center rounded-full px-6 py-3 text-base font-semibold transition-opacity hover:opacity-90",style:{background:y,color:"#FFFFFF",border:`1px solid ${y}`,minHeight:48},children:B})})}function p({page:s,items:t}){const l="counselling_link_click";return e.jsx("ul",{className:"mt-4 space-y-3",children:t.map(o=>{const i=o.href.startsWith("http");return e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(A,{className:"mt-1 h-4 w-4 shrink-0","aria-hidden":"true",style:{color:n.gold}}),e.jsxs("span",{children:[i?e.jsxs("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",className:`${r.body} font-medium underline underline-offset-2`,style:{color:n.forest},onClick:()=>m(l,{href:o.href,label:o.label,page_path:s.path}),children:[o.label,e.jsx(T,{className:"ml-1 inline h-3.5 w-3.5","aria-hidden":"true"})]}):e.jsx(j,{to:o.href,className:`${r.body} font-medium underline underline-offset-2`,style:{color:n.forest},onClick:()=>m(l,{href:o.href,label:o.label,page_path:s.path}),children:o.label}),o.note&&e.jsx("span",{className:`block ${r.small}`,style:{color:n.muted},children:o.note})]})]},o.href+o.label)})})}function M({items:s}){return e.jsx("ul",{className:"mt-4 space-y-2",children:s.map(t=>e.jsxs("li",{className:`flex items-start gap-2 ${r.body}`,style:{color:n.ink},children:[e.jsx("span",{"aria-hidden":"true",className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full",style:{background:n.gold}}),e.jsx("span",{children:t})]},t))})}function U({page:s,items:t}){return e.jsx("div",{className:"mt-8 grid gap-5 sm:grid-cols-2 lg:grid-cols-4",children:t.map(l=>{const o=e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"flex h-11 w-11 items-center justify-center rounded-full",style:{background:n.sage},children:e.jsx(O,{className:"h-5 w-5","aria-hidden":"true",style:{color:n.forest}})}),e.jsx("h3",{className:`mt-4 ${r.h3}`,style:{color:n.forestDeep},children:l.title}),e.jsx("p",{className:`mt-2 ${r.small}`,style:{color:n.muted},children:l.description})]}),i="flex flex-col items-center rounded-2xl p-6 text-center",a={background:n.white,border:`1px solid ${n.line}`};if(!l.href)return e.jsx("div",{className:i,style:a,children:o}
1,l.title);const c=()=>m("counselling_service_card_click",{href:l.href,label:l.title,page_path:s.path});return l.href.startsWith("http")?e.jsx("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",className:i,style:a,onClick:c,children:o},l.title):e.jsx(j,{to:l.href,className:i,style:a,onClick:c,children:o},l.title)})})}function W({page:s}){return e.jsx("section",{id:"faq",className:r.section,style:{background:n.cream},children:e.jsxs("div",{className:r.container,children:[e.jsx(d,{children:"Common questions"}),e.jsx("div",{className:"mt-8 space-y-4",children:s.faqs.map(t=>e.jsxs("details",{className:"rounded-2xl p-5",style:{background:n.white,border:`1px solid ${n.line}`},onToggle:l=>{l.currentTarget.open&&m("counselling_faq_open",{question:t.q,page_path:s.path})},children:[e.jsx("summary",{className:"cursor-pointer list-none text-base font-semibold",style:{color:n.forestDeep},children:t.q}),e.jsx("p",{className:`mt-3 ${r.body}`,style:{color:n.muted},children:t.a})]},t.q))})]})})}function z(s){const t=f(s),l=[],o=[{name:s.brandName,item:`${s.origin}/`}];return s.parentPath&&s.parentLabel&&o.push({name:s.parentLabel,item:`${s.origin}${s.parentPath}`}),o.push({name:s.h1,item:t}),l.push({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o.map((i,a)=>({"@type":"ListItem",position:a+1,name:i.name,item:i.item}))}),s.schema.includes("Article")?l.push({"@context":"https://schema.org","@type":"Article",headline:s.h1,name:s.seoTitle,description:s.metaDescription,url:t,inLanguage:"en-SG",author:{"@type":"Organization",name:s.brandName,url:s.origin},publisher:{"@type":"Organization",name:s.brandName,url:s.origin},mainEntityOfPage:t}):l.push({"@context":"https://schema.org","@type":"WebPage",name:s.seoTitle,headline:s.h1,description:s.metaDescription,url:t,inLanguage:"en-SG",isPartOf:{"@type":"WebSite",name:s.brandName,url:s.origin}}),s.schema.includes("Service")&&l.push({"@context":"https://schema.org","@type":"Service",name:s.h1,serviceType:s.keywords.primary,areaServed:{"@type":"Country",name:"Singapore"},url:t,description:s.metaDescription,provider:{"@type":"Organization",name:s.brandName,url:s.origin}}),l.push({"@context":"https://schema.org","@type":"FAQPage",mainEntity:s.faqs.map(i=>
1({"@type":"Question",name:i.q,acceptedAnswer:{"@type":"Answer",text:i.a}}))}),l}function Q({page:s}){const t=N(s);x.useEffect(()=>{let a=!1;const c=()=>{if(a)return;const h=document.body.scrollHeight-window.innerHeight;h<=0||window.scrollY/h>=.75&&(a=!0,m("counselling_scroll_75",{path:s.path,ad_group:t}))};return window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[s,t]);const l=s.parentPath&&s.parentLabel?[{label:"Home",href:"/"},{label:s.parentLabel,href:s.parentPath},{label:s.h1}]:[{label:"Home",href:"/"},{label:s.h1}],o=q[s.path],i=s.pageType==="guide";return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:r.section,style:{background:n.sage},children:e.jsxs("div",{className:"mx-auto grid max-w-6xl items-center gap-8 py-10 sm:py-14 lg:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx(w,{items:l}),e.jsx("p",{className:"mt-4 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:n.gold},children:s.eyebrow}),e.jsx("h1",{className:`mt-3 ${r.h1}`,style:{color:n.forestDeep},children:s.h1}),e.jsx("p",{className:`mt-4 ${r.lead}`,style:{color:n.muted},children:s.heroCopy}),e.jsx("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:e.jsx(u,{page:s,placement:"hero",sourceSection:"hero"})}),s.reassuranceLine&&e.jsx("p",{className:`mt-4 ${r.small}`,style:{color:n.muted},children:s.reassuranceLine})]}),e.jsx("div",{className:"overflow-hidden rounded-3xl",style:{border:`1px solid ${n.line}`},children:o&&e.jsx("img",{src:o,width:1600,height:1e3,alt:s.heroImageAlt,className:"h-full w-full object-cover"})})]})}),e.jsx("section",{id:"quick-answer",className:r.section,style:{background:n.white},children:e.jsxs("div",{className:r.container,children:[e.jsx(d,{children:s.quickAnswerHeading}),e.jsx("p",{className:`mt-4 ${r.lead}`,style:{color:n.ink},children:s.quickAnswer}),e.jsx("p",{className:`mt-4 ${r.small}`,style:{color:n.muted},children:L})]})}),s.cards&&s.cards.length>0&&e.jsx("section",{className:r.section,style:{background:n.cream},children:e.jsxs("div",{className:"mx-auto max-w-6xl py-12 sm:py-16",children:[e.jsx(d,{children:s.cardsHeading??"What support can cover"}),s.cardsIntro&&e.jsx("p",{className:`mt-4 ${r.body}`,style:{color:n.ink},children:s.cardsIntro}),e.jsx(U,{page:s,items:s.cards}),e.jsx("div",{className:"mt-8",children:e.jsx(u,{page:s,placement:"early-page",sourceSection:"cards"})})]})}),s.processSteps&&s.processSteps.length>0&&e.jsx("section",{className:r.section,style:{background:n.white},children:e.jsxs("div",{className:"mx-auto max-w-4xl py-12 sm:py-16",children:[e.jsx(d,{children:s.processHeading??"What happens next"}),e.jsx("ol",{className:"mt-8 space-y-4",children:s.processSteps.map((a,c)=>e.jsxs("li",{className:"flex flex-col items-center rounded-2xl p-6 text-center",style:{background:n.white,border:`1px solid ${n.line}`},children:[e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full text-sm font-semibold",style:{background:n.sage,color:n.forestDeep},children:c+1}),e.jsx("h3",{className:`mt-3 ${r.h3}`,style:{color:n.forestDeep},children:a.title}),e.jsx("p",{className:`mt-2 ${r.small}`,style:{color:n.muted},children:a.description})]},a.title))})]})}),e.jsx("section",{className:r.section,style:{background:n.white},children:e.jsxs("div",{className:r.container,children:[s.sections.map((a,c)=>e.jsxs("div",{id:a.id,className:c===0?"":"mt-12",children:[e.jsx("h2",{className:r.h2,style:{color:n.forestDeep},children:a.heading}),a.paragraphs.map(h=>e.jsx("p",{className:`mt-4 ${r.body}`,style:{color:n.ink},children:h},h)),a.bullets&&e.jsx(M,{items:a.bullets}),a.links&&e.jsx(p,{page:s,items:a.links}),c===Math.floor(s.sections.length/2)&&e.jsx("div",{className:"mt-8",children:e.jsx(u,{page:s,placement:"mid-page",sourceSection:a.id})})]},a.id)),e.jsx("p",{className:`mt-10 ${r.small}`,style:{color:n.muted},children:S}),e.jsx("p",{className:`mt-3 ${r.small}`,style:{color:n.muted},children:C}),e.jsx("p",{className:`mt-3 ${r.small}`,style:{color:n.amberInk},children:E})]})}),s.pathways&&e.jsx("section",{className:r.section,style:{background:n.cream},children:e.jsxs("div",{className:r.container,children:[e.jsx(d,{children:s.pathways.heading}),e.jsx("p",{className:`mt-4 ${r.body}`,style:{color:n.ink},children:s.pathways.body}),e.jsx(p,{page:s,items:s.pathways.items})]})}),e.jsx(W,{page:s}),e.jsx("section",{id:"ai-questions",className:r.section,style:{background:n.white},children:e.jsxs("div",{className:r.container,children:[e.jsx(d,{children:"People also ask"}),e.jsx("div",{className:"mt-8 space-y-5",children:s.aiQuestions.map(a=>e.jsxs("div",{className:"rounded-2xl p-6",style:{background:n.cream,border:`1px solid ${n.line}`},children:[e.jsx("h3",{className:r.h3,style:{color:n.forestDeep},children:a.question}),e.jsx("p",{className:`mt-2 ${r.body}`,style:{color:n.ink},children:a.answer})]},a.question))}),!i&&e.jsx("div",{className:"mt-10",children:e.jsx(u,{page:s,placement:"lower-page",sourceSection:"people-also-ask"})})]})}),e.jsx("section",{className:r.section,style:{background:n.cream},children:e.jsxs("div",{className:r.container,children:[e.jsx(d,{children:s.internalLinksHeading??"Continue reading"}),e.jsx(p,{page:s,items:s.internalLinks}),e.jsx("h3",{className:`mt-10 ${r.h3}`,style:{color:n.forestDeep},children:"Across the Olive Branch network"}),e.jsx(p,{page:s,items:s.crossSiteLinks}),e.jsx("h3",{className:`mt-10 ${r.h3}`,style:{color:n.forestDeep},children:"Helpful reading"}),e.jsx(p,{page:s,items:s.externalLinks})]})}),e.jsx(v,{heading:s.bottomCta.heading,body:s.bottomCta.body,children:e.jsx(u,{page:s,placement:"bottom-cta",sourceSection:"bottom-cta"})})]})}function oe(){const{pathname:s}=b(),t=x.useMemo(()=>_(s.replace(/^\/_studio\/[^/]+/,"")),[s]);if(!t)return e.jsx($,{});const l=f(t);return e.jsx(k,{head:e.jsxs(e.Fragment,{children:[e.jsx("title",{children:t.seoTitle}),e.jsx("meta",{name:"description",content:t.metaDescription}),e.jsx("meta",{name:"robots",content:"index,follow,max-image-preview:large,max-snippet:-1"}),e.jsx("link",{rel:"canonical",href:l}),e.jsx("meta",{property:"og:title",content:t.seoTitle}),e.jsx("meta",{property:"og:description",content:t.metaDescription}),e.jsx("meta",{property:"og:url",content:l}),e.jsx("meta",{property:"og:type",content:t.pageType==="guide"?"article":"website"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),z(t).map((o,i)=>e.jsx("script",{type:"application/ld+json",children:JSON.stringify(o)},i))]}),stickyCta:{href:"#quick-answer",label:t.eyebrow},children:e.jsx(Q,{page:t})})}
1export{F as APPOINTMENTS_URL,z as buildCounsellingStructuredData,R as counsellingAdGroup,oe as default,m as trackCounsellingEvent};
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.