PageSourceSearch

https://static.betterhelp.com/_next/static/chunks/pages/counselor-settings/select-services-32ab04408b270d31.js

js betterhelp.com collected 2026-09-27 21:13:22 UTC 35,496 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5204],{315:e=>{e.exports={years_experience_wrapper:"counselor-select-service_years_experience_wrapper__RBGB_",years_experience:"counselor-select-service_years_experience__ockbM",expertise_container:"counselor-select-service_expertise_container__5tuiR",notification_error:"counselor-select-service_notification_error__4wCrJ",expertise_list:"counselor-select-service_expertise_list__WsK3T",tag:"counselor-select-service_tag__0JzCK",modalities_container:"counselor-select-service_modalities_container__N1Y5E",modality_label:"counselor-select-service_modality_label__AdDrZ",modality_video:"counselor-select-service_modality_video__4g7jR",modality_phone:"counselor-select-service_modality_phone__K8NCy",modality_messaging:"counselor-select-service_modality_messaging__pfmfo",languages_container:"counselor-select-service_languages_container__abc2E",languages_proficiency_container:"counselor-select-service_languages_proficiency_container__lXzgd",item_container:"counselor-select-service_item_container__W2l08",item:"counselor-select-service_item__vEqC6",additional_focus:"counselor-select-service_additional_focus__ytCiF",show_more_btn:"counselor-select-service_show_more_btn__DgtQG"}},17660:e=>{e.exports={toggle_btn_group_wrapper:"MUIToggleButtonGroup_toggle_btn_group_wrapper__2_iax",toggle_btn_group_txt:"MUIToggleButtonGroup_toggle_btn_group_txt__6j3uC",toggle_btn_group_btns:"MUIToggleButtonGroup_toggle_btn_group_btns__rjwrA"}},20318:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(17767);class i extends a.A{constructor(e){super("therapist_profile_step",e)}}},34836:(e,s,t)=>{"use strict";t.d(s,{Ay:()=>d,o2:()=>m});var a=t(33164),i=t(44896),n=t(97393),l=t(60985),r=t(20857),c=t(69337),o=t(17283);function d(e){let{IconComponent:s=null,ContentComponent:t,onDark:n,variant:l,...r}=e,o=(0,i.useCallback)(e=>{let{triggerRef:t,triggerProps:i}=e;return(0,a.jsx)(u,{triggerRef:t,triggerProps:i,IconComponent:s,onDark:n})},[s,n]);return(0,a.jsx)(c.default,{TriggerComponent:o,ContentComponent:t,onDark:n,variant:l,isIconTooltip:!0,...r})}let u=e=>{let{triggerRef:s,triggerProps:t,IconComponent:i=null,onDark:n}=e,{buttonProps:c}=(0,l.s)({},s);return(0,a.jsx)("button",{"data-testid":(0,o.A)("client-site-icon"),ref:s,...(0,r.v)(t,c),"aria-label":"Open tooltip",className:"pointer-events-auto border-none cursor-default",children:i?(0,a.jsx)(i,{}):(0,a.jsx)(m,{onDark:n,iconClassNames:p})})},p="fa-solid fa-circle-info",m=e=>{let{onDark:s=!1,iconClassNames:t}=e;return(0,a.jsx)("i",{className:(0,n.A)("relative !block w-3.5 h-3.5",s?"text-gray-50":"text-gray-700",p,t)})}},35396:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/counselor-settings/select-services",function(){return t(98534)}])},49320:(e,s,t)=>{"use strict";t.d(s,{_:()=>h,A:()=>f});var a=t(33164),i=t(33132),n=t(37643);let l=JSON.parse('{"showAllMessages":"Bitte f\xfclle alle fehlenden Felder aus"}');var r=t.t(l,2);let c=JSON.parse('{"showAllMessages":"Please complete all missing fields"}');var o=t.t(c,2);let d=JSON.parse('{"showAllMessages":"Veuillez remplir tous les champs manquants."}');var u=t.t(d,2);let p=JSON.parse('{"showAllMessages":"Vul alle ontbrekende velden in"}');var m=t.t(p,2);let _=JSON.parse('{"showAllMessages":"Completa todos los campos que faltan"}'),g={de:r,en:o,fr:u,nl:m,es:t.t(_,2)};function h(e){return Object.keys(e).map(s=>"string"==typeof e[s].message?e[s].message:JSON.stringify(e[s].message))}let f=function(e){let{errorMessages:s,showAllMessages:t=!1}=e,l=(0,i.B)(g),r=s.filter(e=>""!==e.trim());return 0===r.length?null:(0,a.jsxs)("div",{"data-testid":"form-error",className:"notification error !px-5 mb-5",children:[r.length>1&&!t&&(0,a.jsx)("span",{children:(0,n.t)(l.showAllMessages)}),(1===r.length||t)&&r.map((e,s)=>(0,a.jsx)("span",{children:e},s))]})}},57826:e=>{e.exports={number_input_wrapper:"NumberInput_number_input_wrapper__gOdak",number_input_unit:"NumberInput_number_input_unit__y5vPp",number_input_field:"NumberInput_number_input_field__lJaJB",number_input_btn_decrease:"NumberInput_number_input_btn_decrease__IP86M",number_input_btn_increase:"NumberInput_number_input_btn_increase__Wydqy"}},89860:(e,s,t)=>{"use strict";t.d(s,{A:()=>c,_:()=>r});var a=t(33164);t(44896);var i=t(97393),n=t(17283);function l(e){let{dismiss:s}=e;return(0,a.jsx)("span",{className:"content-center justify-self-end",children:(0,a.jsx)("button",{"aria-label":"close",type:"button",onClick:s,children:(0,a.jsx)("i",{className:"far fa-xmark-large"})})})}function r(e){let s=Object.keys(e).map(s=>"string"==typeof e[s].message?e[s].message:JSON.stringify(e[s].message));return s.filter((e,t)=>
1s.indexOf(e)===t)}let c=function(e){let{messages:s,showAllMessages:t=!1,multipleMessage:r="Please complete all missing fields.",type:c="error",isDismissable:o=!1,dismiss:d=()=>{},overrideStyles:u="",alwaysHasBottomMargin:p=!1,listType:m="list-none",testId:_=""}=e,g=s.filter(e=>"string"!=typeof e||""!==e.trim()),h="notification !px-5 grid grid-flow-col auto-cols-auto justify-between items-center ".concat(c);return 0===g.length?null:(0,a.jsxs)("ul",{className:(0,i.A)(m,{"mb-5":p}),children:[g.length>1&&!t&&(0,a.jsxs)("li",{className:u||h,"data-testid":(0,n.A)("".concat(_,"-").concat(c,"-notification")),children:[(0,a.jsx)("span",{children:r}),o&&(0,a.jsx)(l,{dismiss:d})]}),(1===g.length||t)&&g.map((e,s)=>(0,a.jsxs)("li",{className:(0,i.A)(u||"".concat(h," ").concat(s+1!==g.length?"mb-5":"")),"data-testid":(0,n.A)("".concat(_,"-").concat(c,"-notification")),children:[e,o&&(0,a.jsx)(l,{dismiss:d})]},s))]})}},98534:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>R,default:()=>W});var a=t(33164),i=t(44896),n=t(59668),l=t(74674),r=t(39232),c=t(21274),o=t(73187),d=t(97393),u=t(68794),p=t.n(u),m=t(12960),_=t(17767);class g extends _.A{setAlertMessage(e){return this.setLabel(e)}constructor(e){super("therapist_modality_opt_out",e)}}var h=t(20318),f=t(11454);function x(){return(0,a.jsxs)("div",{className:"grid p-4 mt-4 text-base font-normal leading-5 border border-solid rounded-md border-site-gray-darkaccent text-site-gray-mediumdark",children:[(0,a.jsxs)("div",{className:"inline-grid grid-cols-[24px_minmax(24px,auto)_auto] pb-2.5 font-bold text-site-blue-700",children:[(0,a.jsx)("i",{className:"fas fa-circle-info mt-0.5 mr-2.5"}),(0,a.jsx)("span",{children:"Attestation of faith"})]}),(0,a.jsx)("p",{className:"!text-sm",children:"By opting into faith/Christian-based therapy, you agree that you have the knowledge and experience to integrate Biblical principles & Christian values into your therapeutic approach ethically & only when a client explicitly requests it. Even through differences in belief, you agree to uphold the professional Codes of Ethics that govern the field of therapy."})]})}var b=t(57516);function y(e){let{affirmationLink:s,articleLink:t}=e;return(0,a.jsxs)("div",{className:"grid p-4 mt-4 text-base font-normal leading-5 border border-solid rounded-md border-site-gray-darkaccent text-site-gray-mediumdark",children:[(0,a.jsxs)("div",{className:"inline-grid grid-cols-[24px_minmax(24px,auto)_auto] pb-2.5 font-bold text-site-blue-700",children:[(0,a.jsx)("i",{className:"fas fa-circle-info mt-0.5 mr-2.5"}),(0,a.jsx)("span",{children:"Training & Expertise Affirmation"})]}),(0,a.jsxs)("p",{className:"!text-sm",children:["When you opt-in to work with one or more additional populations you confirm that you have the relevant expertise, experience & training to work with such additional populations.",s&&(0,a.jsx)(a.Fragment,{children:" Additionally, you agree to comply with the requirements & standards of the applicable state boards while working with such clients."})]}),s&&(0,a.jsx)("p",{className:"mt-4 !text-sm",children:(0,a.jsx)(b.A,{oldSite:!0,href:t,target:"_blank",rel:"noreferrer",children:"View recommended training and courses in the Therapist Guide."})})]})}var v=t(38547),j=t(49320),N=t(88621),A=t(45049),w=t(17660),k=t.n(w);let S=function(e){let{index:s,defaultValue:t,label:n,id:c,options:o,onValueChange:d}=e,[u,p]=(0,i.useState)(null!=t?t:null);return(0,a.jsxs)("div",{className:k().toggle_btn_group_wrapper,children:[(0,a.jsx)("span",{className:"mb-2 text-left",children:n}),(0,a.jsx)(l.A,{value:u,"aria-label":n,onChange:(e,t)=>
1{null!==t&&(p(t),d(e.target.getAttribute("data-id"),e.target.value,s))},exclusive:!0,className:"".concat(k().toggle_btn_group_btns),children:o.map((e,s)=>{let{btnValue:t,btnLabel:i,btnDisabled:n}=e;return(0,a.jsx)(r.A,{value:t,"aria-label":i,"data-id":c,disabled:n,className:"!p-2",children:i},s)})})]})};var C=t(89860),I=t(57826),E=t.n(I);let L=function(e){let{unit:s="",onValueChange:t,...n}=e,[l,r]=(0,i.useState)(n.value),c=n.min&&l<=n.min||0===l||""===l,o=n.max&&l>=n.max;return(0,i.useEffect)(()=>{r(n.value),t(n.value)},[n.value]),(0,a.jsxs)("div",{className:E().number_input_wrapper,children:[(0,a.jsx)("input",{type:"number",...n,value:l,className:"".concat(E().number_input_field," ").concat(n.className),onInput:e=>{let s=e.target.value.replace(/[^0-9]/g,"");s.length<=0&&(s=n.min),r(s),t(s)},onBlur:e=>{e.target.value<n.min?(r(n.min),t(n.min)):n.max&&e.target.value>n.max&&(r(n.max),t(n.max))}}),(0,a.jsx)("div",{className:E().number_input_unit,children:s}),(0,a.jsx)("button",{type:"button",className:E().number_input_btn_decrease,onClick:()=>{r(Number(l)-1),t(Number(l)-1)},"aria-label":"decrease value",disabled:c,children:(0,a.jsx)("i",{className:"fas fa-circle-minus"})}),(0,a.jsx)("button",{type:"button",className:E().number_input_btn_increase,onClick:()=>{r(Number(l)+1),t(Number(l)+1)},"aria-label":"increase value",disabled:o,children:(0,a.jsx)("i",{className:"fas fa-circle-plus"})})]})};var P=t(34836),M=t(28884),q=t(33132),B=t(17283),D=t(37643),O=t(67946),T=t(315),V=t.n(T);let F=null;function J(){let{session:e}=(0,N.SF)(),{user:s}=e,t=(0,n.useRouter)(),u=(0,i.useRef)(null),_=(0,i.useRef)(null),w=(0,i.useRef)(null),k=e.is_mobile?8:12,I=(0,q.B)(O.A),[E,T]=(0,i.useState)(!1),[J,R]=(0,i.useState)(""),[W,G]=(0,i.useState)(""),[Y,H]=(0,i.useState)([]),[U,z]=(0,i.useState)([]),[K,X]=(0,i.useState)([]),[Q,Z]=(0,i.useState)([]),[$,ee]=(0,i.useState)(k),[es,et]=(0,i.useState)([]),[ea,ei]=(0,i.useState)(k),[en,el]=(0,i.useState)([]),[er,ec]=(0,i.useState)([]),[eo,ed]=(0,i.useState)(0),[eu,ep]=(0,i.useState)([]),[em,e_]=(0,i.useState)(null),[eg,eh]=(0,i.useState)(null),[ef,ex]=(0,i.useState)(1),[eb,ey]=(0,i.useState)(""),[ev,ej]=(0,i.useState)(!0),[eN,eA]=(0,i.useState)(""),[ew,ek]=(0,i.useState)(1),[eS,eC]=(0,i.useState)([]),[eI,eE]=(0,i.useState)(!1),[eL,eP]=(0,i.useState)(!1),eM=()=>{eP(!eL),e2(!1)},eq=Y.filter(e=>2===e.rank),eB=eq.length,eD=Y.filter(e=>1===e.rank),eO=eD.length,[eT,eV]=(0,i.useState)([]),[eF,eJ]=(0,i.useState)(!1),[eR,eW]=(0,i.useState)(!1),[eG,eY]=(0,i.useState)(!1),[eH,eU]=(0,i.useState)(!1),[ez,eK]=(0,i.useState)(!1),eX=[e.country.countryMap.DE,e.country.countryMap.NL,e.country.countryMap.FR].includes(s.country_id),eQ=e=>{new g("alert_message_displayed").setAlertMessage(e).send()},eZ=(0,i.useMemo)(()=>[1,3,7,8],[]),e$=[{btnValue:0,btnLabel:"Least",btnDisabled:!1},{btnValue:1,btnLabel:"Some",btnDisabled:!1},{btnValue:2,btnLabel:"Most",btnDisabled:!1}],e0=[{btnValue:0,btnLabel:"Least",btnDisabled:!1},{btnValue:1,btnLabel:"Some",btnDisabled:!1},{btnValue:2,btnLabel:"Most",btnDisabled:!0}],[e1,e2]=(0,i.useState)(!1),[e3,e5]=(0,i.useState)(()=>[]),[e4,e6]=(0,i.useState)(()=>[]),[e7,e8]=(0,i.useState)([]),e9=(0,M.A)(()=>e7),se=(0,i.useMemo)(()=>{let e={video:null,phone:null,live_chat:null,"messaging_(async)":null};return eu.forEach(s=>{e[s.label.toLowerCase().replace(" ","_")]=s.flag}),e},[eu]),ss=(0,i.useRef)({no_video:!1,no_phone_or_live_chat:!1,no_modalities:!1}),st=(0,i.useCallback)(()=>{let e=eu.filter(e=>!1===e.selected).map(e=>e.flag),s=e=>[...e].filter(e=>!["no_phone_or_live_chat","no_video","no_modalities"].includes(e));e.includes(se.video)&&e.includes(se.phone)&&e.includes(se.live_chat)&&!e9.current.includes("no_modalities")?(e8([s,"no_modalities"]),ss.current.no_modalities||(eQ("no_modalities"),ss.current.no_modalities=!0)):e.includes(se.video)?(e8([s,"no_video"]),ss.current.no_video||(eQ("no_video"),ss.current.no_video=!0)):e.includes(se.phone)||e.includes(se.live_chat)?(e8([s,"no_phone_or_live_chat"]),ss.current.no_phone_or_live_chat||(eQ("no_phone_or_live_chat"),ss.current.no_phone_or_live_chat=!0)):e8(s)},[eu,e9,se]);(0,i.useEffect)(()=>{st()},[st]);let[sa,si]=(0,i.useState)([]),sn=()=>sa.filter(e=>e.selectedId===ew&&eS.includes(e.selectedProficiencyId)).length>0,sl=(e,s,t)=>{let a=[...e7].filter(e=>!["missing_".concat(t.selectedLabel),"missing_".concat(t.selectedProficiencyLabel),"missing_language","missing_default_proficiency"].includes(e));if(sn()||a.push("missing_default_proficiency"),sa.filter(e=>-1===e.selectedId||e.selectedId>0&&e.selectedId!==ew&&!(e.selectedProficiencyId>0)).length>0&&a.push("missing_language"),t.selectedId===ew&&!sn){eS.includes(t.selectedProficiencyId)||a.push("missing_".concat(s)),e8(a);return}e<=0&&a.push("missing_".concat(s)),e8(a)},sr=()=>{let e=document.getElementsByClassName("language_proficiency_selection hidden"),s=document.getElementById("addLanguageContainer");e.length>0?s.classList.contains("hidden")&&s.classList.remove("hidden"):e.length<=0&&!s.classList.contains("hidden")&&s.classList.add("hidden")},sc=(e,s,t)=>{let a=sd.expertise;a[e]=parseInt(s,10),su({...sd,expertise:a});let i=[...Y];i[t].rank=Number(s),H(i)},so=()=>{F&&clearTimeout(F)};(0,i.useEffect)(()=>(""!==J&&(G(""),F=setTimeout(()=>{let e=e=>[...e].filter(e=>!["missing_years_experience","minimum_years_experience"].includes(e));J<=0?(e8([e,"missing_years_experience"]),G("text-site-red")):J<3?e8([e,"minimum_years_experience"]):e8(e)},750)),so),[J]),(0,i.useEffect)(()=>so,[]);let[sd,su]=(0,i.useState)({years_experience:null,expertise:{},sites:{},client_requests:{},modalities:{},languages:{},boost_program:null,directory_feed_exclusion:null,clinical_approaches:{},focus_areas:{}}),sp=()=>_.current.scrollIntoView(),sm=()=>u.current.scrollIntoView(),s_=async e=>{e.preventDefault();try{let e=await new m.A().post("/api/profile/?page=SelectServices&action=skip");if("success"===e.status){var s;T(!0),new h.A("therapy_preferences_review_skip").send(),t.push(null!=(s=e.redir)?s:"/counselor-settings/account/")}}catch(e){}finally{T(!1)}};(0,i.useEffect)(()=>{T(!0),fetch("/api/profile/?page=SelectServices&action=get").then(async e=>{let s=await e.json();if("success"===s.status){if(s.data.languages&&(si(s.data.languages.map(e=>({selectedId:e.language_id,selectedLabel:e.label,selectedProficiencyId:e.language_proficiency_id,selectedProficiencyLabel:e.language_proficiency_label,proficiencyError:e.proficiency_error}))),su({...sd,languages:s.data.languages.map(e=>({selectedId:e.language_id,selectedLabel:e.label,selectedProficiencyId:e.language_proficiency_id,selectedProficiencyLabel:e.language_proficiency_label,proficiencyError:e.proficiency_error}))})),s.data.languages_count&&ed(s.data.languages_count),s.data.years_experience&&s.data.years_experience>
10&&(R(s.data.years_experience),su(e=>({...e,years_experience:s.data.years_experience}))),s.form.expertise&&(H(s.form.expertise.map(e=>({id:e.id,rank:e.rank,label:e.client_description,codeName:e.name.replace(/[^a-z0-9]/gi,"").toLowerCase()}))),e2(!0)),s.form.specific_requests&&(s.form.specific_requests.sort((e,s)=>e.counselor_sort>s.counselor_sort?1:-1),X(s.form.specific_requests.map(e=>({id:e.id,label:e.counselor_description}))),e6(s.form.specific_requests.map(e=>e.rank>0?e.id:null))),s.form.languages&&el(s.form.languages.map(e=>({id:e.id,label:e.name}))),s.form.language_proficiencies_list&&ec(s.form.language_proficiencies_list.map(e=>({id:e.id,label:e.name}))),s.form.sites&&z(s.form.sites.map(e=>({id:e.id,label:e.label}))),s.data.sites){var a;let e=s.data.sites.map(e=>e);"1"===p().get("teen_optin_preselect")&&(null==(a=s.form.sites)?void 0:a.some(e=>3===e.id))&&(p().remove("teen_optin_preselect"),e.includes(3)||e.push(3),su(e=>({...e,sites:{...e.sites,3:!0}}))),e5(e)}s.form.focus_areas&&Z(s.form.focus_areas.map(e=>({id:e.id,label:e.display_name,selected:e.selected,codeName:e.code_name}))),s.form.clinical_approaches&&et(s.form.clinical_approaches.map(e=>({id:e.id,label:e.display_name,selected:e.selected,codeName:e.code_name}))),s.form.modalities&&ep(s.form.modalities.map(e=>({flag:e.flag,label:e.name,selected:e.selected}))),s.form.boost_program&&e_(s.form.boost_program),s.form.directory_feed_exclusion&&eh(s.form.directory_feed_exclusion),s.redir&&t.prefetch(s.redir),s.data.errors&&e8(s.data.errors),ex(s.data.country_id),ey(s.data.gdpr_banner_title),eJ(s.is_page_complete),ej(s.data.affirmation_link),eA(s.data.training_required_article_link),ek(s.data.default_language_id),eC(s.data.required_language_proficiencies),eE(s.data.is_indexable)}}).finally(()=>{T(!1)})},[t]),(0,i.useEffect)(()=>{eW(e3.some(e=>[1,8,3].includes(e))),eU(e3.includes(7))},[e3,eZ]),(0,i.useEffect)(()=>{eY(e4.includes(4)),eK(!e.country.isDomestic&&e4.some(e=>null!==e))},[e4,ef,e.country.isDomestic]);let sg=U.length>0,sh=s.country_id!==e.country.countryMap.US,sf=(t,a,i)=>{let n="";return(n=s.country_id===e.country.countryMap.DE?(0,D.t)(I[t].forDE[a]):(0,D.t)(I[t][a])).length>0?n:i};return(0,a.jsxs)("div",{className:"w-full max-w-[648px] mx-auto py-4 px-4 lg:py-10",children:[(0,a.jsx)(A.default,{show:E}),(0,a.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!([...e7].filter(e=>["missing_years_experience"].includes(e)).length>0?(sm(),!1):!s.is_approved||!(eB<1)||(eV(["Please select at least 1 area of expertise with “Most Experience”"]),e2(!1),eP(!0),sp(),!1)))return;e8([]);let a=new FormData;a.append("csrf_token",window.csrfToken),a.append("data",JSON.stringify({submittedData:sd})),fetch("/api/profile/?page=SelectServices&action=save",{method:"POST",body:a}).then(e=>e.json()).then(e=>{if("success"===e.status){var a;if(T(!0),!eF){let e=Object.entries(sd.sites).filter(e=>{let[s,t]=e;return t}).map(e=>{let[s,t]=e;return+s}).map(e=>U.find(s=>s.id===e).label);new f.A("selected_population",e.map(e=>'"'.concat(e,'"')).join(", ")).send();let t=Object.entries(sd.client_requests).filter(e=>{let[s,t]=e;return t}).map(e=>{let[s,t]=e;return+s}).map(e=>K.find(s=>s.id===e).label);new f.A("selected_client_requests",t.map(e=>'"'.concat(e,'"')).join(", ")).send();let a=Object.entries(sd.focus_areas).filter(e=>{let[s,t]=e;return t}).map(e=>{let[s,t]=e;return+s}).map(e=>Q.find(s=>s.id===e).label);new f.A("selected_area_of_focus",a.map(e=>'"'.concat(e,'"')).join(", ")).send(),s.is_approved&&new f.A("selected_years_of_experience",sd.years_experience).send()}new h.A("therapy_preferences_review_save").send(),t.push(null!=(a=e.redir)?a:"/counselor-settings/account")}else"failure"===e.status&&(e8(e.errors),e.errors.includes("missing_years_experience")?sm():(e.errors.includes("missing_language")||e.errors.includes("missing_default_proficiency"))&&w.current.scrollIntoView())}).catch(()=>{}).finally(()=>{T(!1)})},children:[(0,a.jsxs)("div",{className:"accountsettings_titlebar",children:[(0,a.jsx)("h1",{className:"accountsettings_titlebar_title text-3xl !font-bold leading-7",children:s.is_approved?"Expertise and preferences":"Add your preferences".concat(eX?"":" (optional)")}),(0,a.jsx)(b.A,{className:"mb-1 md:mb-0 text-base hover:!text-site-link md:mt-3 whitespace-nowrap",href:"/counselor-settings/account/",onClick:()=>{s.is_approved||new f.A("clicked_go_to_profile").send()},children:s.is_approved?"Go back":"Go to profile"})]}),s.is_approved&&(0,a.jsxs)("div",{className:"panel",ref:u,children:[(0,a.jsx)("h2",{className:(0,d.A)("panel_title",e7&&e7.includes("missing_years_experience")?"text-site-red":""),children:"Years of experience"}),(0,a.jsxs)("div",{className:V().years_experience_wrapper,children:[(0,a.jsxs)("p",{className:e.is_mobile?"mb-2.5":"m-0",children:["How many years have you been providing therapy services?",(0,a.jsx)(P.Ay,{ContentComponent:()=>(0,a.jsx)(a.Fragment,{children:"We require at least 3 years of clinical work experience"}),IconComponent:()=>(0,a.jsx)(P.o2,{iconClassNames:(0,d.A)("!text-black","ml-1")}),placement:"bottom"})]}),(0,a.jsx)("div",{className:V().years_experience,children:(0,a.jsx)(L,{placeholder:"0",name:"years_experience",min:0,max:100,unit:"years",value:J,onValueChange:e=>{su({...sd,years_experience:e}),R(e)},className:W})})]}),e7&&e7.includes("minimum_years_experience")&&(0,a.jsx)("div",{className:"mt-5",children:(0,a.jsx)(C.A,{messages:["Minimum 3 years of experience is required"],type:"warning"})}),e7&&e7.includes("missing_years_experience")&&(0,a.jsx)("div",{className:"mt-5",children:(0,a.jsx)(C.A,{messages:["Number of years of experience is required"]})})]}),s.is_approved&&(0,a.jsxs)("div",{className:"panel",ref:_,children:[e7&&e7.includes("missing_expertise")&&(0,a.jsx)(j.A,{errorMessages:["Please complete this section"]}),(0,a.jsx)("h2",{className:(0,d.A)("panel_title !mb-2.5",e7&&e7.includes("missing_expertise")?"text-site-red":""),children:"Add your expertises"}),(0,a.jsx)("p",{className:(0,d.A)("panel_txt",e7&&e7.includes("missing_expertise")?"text-site-red":""),children:"Add areas of expertise that you’d like to focus on."}),(0,a.jsx)("div",{hidden:eL||e1,children:(0,a.jsxs)("button",{type:"button",className:"btn",onClick:eM,children:[(0,a.jsx)("i",{className:"fas fa-plus"})," Add expertise"]})}),(0,a.jsxs)("div",{className:"pt-2.5",hidden:!eL,children:[(0,a.jsx)("p",{className:"panel_txt txt-bold",children:"Select at least 1 and up to 5 areas of expertise with “Most Experience”"}),eT&&(0,a.jsx)("div",{className:V().notification_error,children:(0,a.jsx)(j.A,{errorMessages:eT})}),(0,a.jsx)("div",{className:V().expertise_container,children:Y.map((e,s)=>{let{id:t,rank:i,codeName:n,label:l}=e,r=[];return r=eB>4?e0:e$,(0,a.jsx)(S,{index:s,defaultValue:i,label:sf("expertise",n,l),id:t.toString(),options:r,onValueChange:sc},s)})}),(0,a.jsx)("button",{type:"button",className:"btn center-button",onClick:()=>{eB<1?(eV(["Please select at least 1 area of expertise with “Most Experience”"]),sp()):(e8([]),eV([]),e2(!e1),eP(!1),sp(),eF||(()=>{let e=Object.entries(eq).map(e=>{let[s,t]=e;return'"most: '.concat(t.label,'"')}),s=Object.entries(eD).map(e=>{let[s,t]=e;return'"some: '.concat(t.label,'"')});new f.A("selected_expertise_control",e.concat(s).join(", ")).send()})())},children:"Done"})]}),(0,a.jsxs)("div",{className:"pt-2.5",hidden:!e1,children:[Y&&eB>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"panel_subtitle",children:"Most experience"}),(0,a.jsx)("p",{className:(0,d.A)("panel_txt",V().expertise_list),children:eq.map((e,s)=>(0,a.jsx)("span",{className:V().tag,children:sf("expertise",e.codeName,e.label)},s))})]}),Y&&eO>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"panel_subtitle pt-2.5",children:"Some experience"}),(0,a.jsx)("p",{className:(0,d.A)("panel_txt pb-2.5",V().expertise_list),children:eD.map((e,s)=>(0,a.jsx)("span",{className:V().tag,children:sf("expertise",e.codeName,e.label)},s))})]}),(0,a.jsxs)("button",{type:"button",className:"btn",onClick:eM,children:[(eB>0||eO>0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("i",{className:"fas fa-pen-to-square"})," Edit expertise"]}),0===eB&&0===eO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("i",{className:"fas fa-plus"})," Add expertise"]})]})]})]}),(0,a.jsxs)("div",{className:"panel",children:[(0,a.jsx)("h2",{className:"panel_title",children:"Specific client requests"}),(0,a.jsx)("p",{className:"panel_txt",children:"Clients who request the following would be a good match for me"}),(0,a.jsx)(l.A,{value:e4,onChange:(e,s)=>{e6(s);let t=parseInt(e.target.value,10),a=sd.client_requests;a[t]=+!!s.includes(t),su({...sd,client_requests:a})},"aria-label":"Specific client requests",className:(0,d.A)("toggle-btn-grid",sh&&"!gap-4"),children:K.map(e=>{let{id:s,label:t}=e,i=t.charAt(0).toUpperCase()+t.slice(1);return(0,a.jsx)(r.A,{"data-testid":(0,B.A)("specific-client-request"),value:s,"aria-label":i,className:(0,d.A)(sh&&"!min-h-10 !h-auto md:!h-[4.5rem]"),children:i},s)})}
1),ez&&(0,a.jsxs)("div",{className:"grid p-4 mt-4 text-base font-normal leading-5 border border-solid rounded-md border-site-gray-darkaccent text-site-gray-mediumdark",children:[(0,a.jsxs)("div",{className:"inline-grid grid-cols-[24px_minmax(24px,auto)_auto] pb-2.5 font-bold text-site-blue-700",children:[(0,a.jsx)("i",{className:"fas fa-circle-info mt-0.5 mr-2.5"}),(0,a.jsx)("span",{children:eb})]}),(0,a.jsx)("p",{className:"!text-sm",children:"Providing this information helps us match you to clients based on their preferences. By selecting these fields, you consent to the processing of this information. Not providing this information will not impact your account status, but it may lead to different client matches. You can also withdraw your consent by un-selecting these fields at any time."})]}),eG&&(0,a.jsx)(x,{})]}),sg&&(0,a.jsxs)("div",{className:"panel",children:[(0,a.jsx)("h2",{className:"panel_title",children:"Additional populations"}),(0,a.jsx)("p",{className:"panel_txt",children:"I would also like to provide therapy to:"}),(0,a.jsx)(l.A,{value:e3,onChange:(e,s)=>{e5(s);let t=parseInt(e.target.value,10),a=sd.sites;a[t]=s.includes(t),su({...sd,sites:a})},"aria-label":"Additional populations",className:(0,d.A)("toggle-btn-grid",sh&&"!gap-4"),children:U.map((e,s)=>{let{id:t,label:i}=e;return(0,a.jsx)(r.A,{"data-testid":(0,B.A)("additional-service-population-options"),value:t,"aria-label":i,className:(0,d.A)(sh&&"!min-h-10 !h-auto md:!h-[4.5rem]"),children:i},s)})}),eR&&(0,a.jsx)(y,{affirmationLink:ev,articleLink:eN}),eH&&(0,a.jsx)(x,{})]}),eu.length>0&&(0,a.jsxs)("div",{className:"panel",children:[(0,a.jsx)("h2",{className:"panel_title",children:"Modalities to offer"}),(0,a.jsx)("p",{className:"panel_txt",children:"We encourage you to offer all modalities to receive the best client matches. Please note that by default clients are able to message you asynchronously."}),(0,a.jsx)("div",{className:V().modalities_container,children:eu.map((e,t)=>{let{flag:i,label:n,selected:l}=e;return(0,a.jsx)(c.A,{control:(0,a.jsx)(o.A,{checked:l,onChange:e=>((e,s)=>{let t=eu[s].flag,a=sd.modalities;a[t]=e.target.checked,eu[s].selected=e.target.checked,st(),su({...sd,modalities:a})})(e,t),name:"modality_flag_".concat(i),disabled:64===i}),label:(0,a.jsxs)("div",{className:V()["modality_".concat(n.replace(" ","_").toLowerCase())],children:[s.audio_rooms&&n.includes("Phone")?"Audio":n,"Video"===n?(0,a.jsx)("span",{className:"absolute pb-8 top-5 left-0 whitespace-nowrap uppercase text-[11px] font-medium text-[#e95a3d]",children:"Most popular"}):"Phone"===n?(0,a.jsx)("span",{className:"absolute pb-8 top-5 left-0 whitespace-nowrap uppercase text-[11px] font-medium text-[#006d9e]",children:"Popular"}):""]})},t)})}),(null==e7?void 0:e7.includes("no_modalities"))&&(0,a.jsx)("div",{className:"mt-2.5",children:(0,a.jsx)(C.A,{messages:["WARNING: You are not offering any live session modality. Not providing live sessions will have a substantial impact on your client referral volume & earnings."],type:"error"})}),(null==e7?void 0:e7.includes("no_video"))&&(0,a.jsx)("div",{className:"mt-2.5",children:(0,a.jsx)(C.A,{messages:["A significant majority of clients prefer video sessions. We strongly recommend offering video sessions to ensure your referral volume & earnings are not impacted."],type:"error"})}),(null==e7?void 0:e7.includes("no_phone_or_live_chat"))&&(0,a.jsx)("div",{className:"mt-2.5",children:(0,a.jsx)(C.A,{messages:["Not offering session modalities that meet the client's preferences may result in reduced client volume."],type:"warning"})})]}),en.length>0&&(0,a.jsxs)("div",{className:"panel scroll-m-20",ref:w,children:[e7&&e7.includes("missing_language")&&(0,a.jsx)("div",{className:"mb-5",children:(0,a.jsx)(C.A,{messages:[(0,D.t)(I.missingLanguageError)]})}),e7&&e7.includes("missing_default_proficiency")&&(0,a.jsx)("div",{className:"mb-5",children:(0,a.jsx)(C.A,{messages:[(0,D.t)(I.missingDefaultProficiencyError)]})}),(0,a.jsx)("h2",{className:(0,d.A)("panel_title",((null==e7?void 0:e7.includes("missing_language"))||(null==e7?void 0:e7.includes("missing_default_proficiency")))&&"text-site-red"),
1children:"Add your languages"}),(0,a.jsx)("p",{className:"panel_txt",children:(0,D.r)(I.languageFluencyText,{boldNativeBilingual:(0,a.jsx)("strong",{children:(0,D.t)(I.nativeBilingual)}),boldFullProfessional:(0,a.jsx)("strong",{children:(0,D.t)(I.fullProfessional)})})}),(0,a.jsx)("div",{className:V().languages_proficiency_container,children:sa.map((e,s)=>{let{selectedId:t,selectedLabel:i,selectedProficiencyId:n,selectedProficiencyLabel:l,proficiencyError:r}=e;return(0,a.jsxs)("div",{className:"language_proficiency_selection language_".concat(s," ").concat(V().item_container," ").concat(0===t?"hidden":""),children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("label",{className:(0,d.A)("panel_title",((null==e7?void 0:e7.includes("missing_".concat(i)))||(null==e7?void 0:e7.includes("missing_".concat(l)))||r)&&"text-site-red"),children:(0,a.jsxs)("span",{className:"font-bold language_label",children:["Language ",s+1]})}),s>0&&(0,a.jsx)("button",{type:"button",className:"btn-close",onClick:e=>((e,s)=>{let t=document.querySelector(".language_".concat(s));if(t){t.classList.add("hidden");let a=[...sa];a[s].selectedId=0,a[s].selectedProficiencyId=0,si(a),su({...sd,languages:a}),sr(),(e=>{let s=e.closest(".language_proficiency_selection");s.parentElement.appendChild(s)})(e.target),(()=>{let e=document.getElementsByClassName("language_label");for(let s=1;s<e.length;s+=1)void 0!==e[s]&&(e[s].innerHTML="Language ".concat(s+1))})()}})(e,s),"aria-label":"close",children:(0,a.jsx)("i",{className:"fas fa-xmark bg-transparent text-[#CCC] text-base"})})]}),(0,a.jsxs)("div",{className:V().item,children:[(0,a.jsx)("fieldset",{className:V().country_id,children:(0,a.jsxs)("select",{id:i,name:i,value:t,className:(0,d.A)("form-input width-full",(null==e7?void 0:e7.includes("missing_".concat(i)))&&"!border-red-400"),onChange:e=>((e,s,t)=>{let a=[...sa];a[s].selectedId=parseInt(e.target.value,10),si(a),su({...sd,languages:a}),sl(e.target.value,t,a[s])})(e,s,i),children:[(0,a.jsx)("option",{value:"-1",children:"Select a language"},s),en.map((e,s)=>{let{id:t,label:i}=e;return(0,a.jsx)("option",{value:t,children:i},s)})]})},"language_".concat(s)),(0,a.jsx)("fieldset",{className:V().country_id,children:(0,a.jsxs)("select",{id:l,name:l,value:n,className:(0,d.A)("form-input width-full",((null==e7?void 0:e7.includes("missing_".concat(l)))||r)&&"!border-red-400"),onChange:e=>((e,s,t)=>{let a=[...sa];a[s].selectedProficiencyId=parseInt(e.target.value,10),a[s].proficiencyError=!1,si(a),su({...sd,languages:a}),sl(e.target.value,t,a[s])})(e,s,l),children:[(0,a.jsx)("option",{value:"0",children:"Select proficiency"},s),er.map((e,s)=>{let{id:t,label:i}=e;return(0,a.jsx)("option",{value:t,children:i},s)})]})},"proficiency_".concat(s))]})]},"language_container_".concat(s))})}),(0,a.jsx)("div",{id:"addLanguageContainer",className:(0,d.A)("my-4",eo>=4?"hidden":""),children:(0,a.jsxs)("button",{type:"button",className:(0,d.A)("mb-1 rounded border-solid border-1 border-[#5FAA41] !px-[15px] !py-[5px] !text-base text-[#5FAA41] hover:bg-[#EBF5E6] font-bold",e.is_mobile?"w-full !text-center":""),onClick:()=>(()=>{let e=document.querySelector(".language_proficiency_selection.hidden"),s=[...sa],t=s.findIndex(e=>0===e.selectedId);t>=0&&(s[t].selectedId=-1),si(s),e&&(e.classList.remove("hidden"),sr())})(),children:[(0,a.jsx)("i",{className:"mr-1 fas fa-plus"})," Add a language"]})})]}),es.length>0&&(0,a.jsxs)("div",{className:"panel",children:[(0,a.jsx)("h2",{className:"panel_title",children:"Profile Boost Program (Recommended)"}),(0,a.jsx)(c.A,{control:(0,a.jsx)(o.A,{checked:em,onChange:e=>{e_(e.target.checked),su({...sd,boost_program:e.target.checked})},name:"profile_booster"}),label:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"antialiased font-bold",children:"Show my profile on Google Search Ads"}),(0,a.jsx)("span",{children:"When you opt-in and are available to new subscribers, we will periodically show your profile on Google Search Ads to bring you new clients. These ads are based on location, expertise, and availability. These ads will drive users to your counselor profile page where they can sign up to work with you. You are opted-in to the program by default."})]})}),(0,a.jsx)(c.A,{className:"mt-4",control:(0,a.jsx)(o.A,{checked:!eg,onChange:e=>{eh(!e.target.checked),su({...sd,directory_feed_exclusion:!e.target.checked})},name:"partner_profile"}),label:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("span",{className:"antialiased font-bold",children:["Show my profile on Directory Partner Websites",eI?", Apps & Search Engines":" & Apps"]}),(0,a.jsx)("span",{children:"When you opt-in, we will share your client facing BetterHelp profile information with our Directory partner websites to drive users to your BetterHelp profile page to bring you new clients. The profile information shared includes your name, description, profile photo, expertise, focus areas, credentials and other information that can aid clients in choosing a therapist. We do not share your personal contact information such as email address, phone number or mailing address with these partners. You are opted-in to the program by default."})]})})]}),es.length>0&&(0,a.jsxs)("div",{className:"relative panel",children:[(0,a.jsx)("h2",{className:"panel_title",children:sf("clinicalApproach","clinicalApproachLabel","Select your clinical approaches (optional)")}),(0,a.jsx)("div",{className:V().additional_focus,children:es.slice(0,ea).map((s,t)=>{let{id:i,codeName:n,selected:l,label:r}=s;return(0,a.jsx)(c.A,{control:(0,a.jsx)(o.A,{checked:l,className:(0,d.A)(e.is_mobile?"!mt-[-7px]":"!mt-[-5px]"),onChange:e=>((e,s)=>{let t=[...es];t[s].selected=e.target.checked,et(t);let a=sd.clinical_approaches;a[e.target.getAttribute("name").split("_")[2]]=e.target.checked,su({...sd,clinical_approaches:a})})(e,t),name:"clinical_approach_".concat(i)}),label:sf("clinicalApproach",n,r)},t)})}),ea<es.length&&(0,a.jsx)("button",{className:V().show_more_btn,type:"button",onClick:()=>{ei(ea+k)},children:"Show more"})]}),(0,a.jsxs)("div",{className:"relative panel",children:[(0,a.jsx)("h2",{className:"panel_title",children:s.is_approved?"Select additional areas of focus (optional)":"Select additional areas of focus"}),(0,a.jsx)("div",{"data-testid":(0,B.A)("additional-focus-area"),className:V().additional_focus,children:Q.slice(0,$).map((s,t)=>{let{id:i,codeName:n,selected:l,label:r}=s;return(0,a.jsx)(c.A,{control:(0,a.jsx)(o.A,{checked:l,className:(0,d.A)(e.is_mobile?"!mt-[-7px]":"!mt-[-5px]"),onChange:e=>((e,s)=>{let t=[...Q];t[s].selected=e.target.checked,Z(t);let a=sd.focus_areas;a[e.target.getAttribute("name").split("_")[1]]=e.target.checked,su({...sd,focus_areas:a})})(e,t),"data-testid":(0,B.A)("additional-area-checkbox"),name:"focus_".concat(i)}),label:sf("focusArea",n,r)},t)})}),$<Q.length&&(0,a.jsx)("button",{className:V().show_more_btn,type:"button",onClick:()=>{ee($+k)},"data-testid":(0,B.A)("show-more"),children:"Show more"})]}),(0,a.jsx)(v.A,{skipButton:!eF&&!eX,stickyMobileCta:!s.is_approved,isPageComplete:eF,handleSkip:s_,trackButtonClicks:!eF})]})]})}J.pageTitle="Expertise and preferences | BetterHelp";var R=!0;let W=J}},e=>{e.O(0,[3741,4837,1142,5859,2751,6080,636,6593,8792],()=>e(e.s=35396)),_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.