1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4324],{2581:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/accounts/practitioner-account/dashboard",function(){return t(11343)}])},11343:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>Y});var A=t(74848),a=t(96540),l=t(96048),i=t(74353),n=t.n(i),r=t(97375),c=t.n(r),o=t(86715),d=t(69825),x=t(66115),h=t(91485),m=t(40133),f=t(75599),p=t(4068),u=t(66841),j=t(41125),g=t(17480),b=t(99179),N=t(56436),w=t(30548),v=t(89287),y=t(91106),T=t.n(y),B=t(29965),P=t.n(B),k=t(11583),C=t(60991),R=t(33877),H=t(76199),Q=t(60949),S=t(69834),V=t(91672),E=t(33087),U=t(55466),q=t(80431);let D=e=>{let{active:s,payload:t,label:a,type:l="profile_view"}=e;if(s&&t&&t.length){var i,n;return(0,A.jsxs)("div",{className:"bg-white rounded-md shadow-lg flex items-center divide-x p-2",children:[(0,A.jsx)("span",{className:"text-brand-alt pr-2",children:a}),(0,A.jsxs)("div",{className:"pl-2 flex flex-col",children:["profile_view"===l&&(0,A.jsxs)("span",{className:"text-brand font-bold",children:[null!==(i=t[0].payload.profile_view)&&void 0!==i?i:0," Profile views"]}),"search"===l&&(0,A.jsxs)("span",{className:"text-sm",children:[null!==(n=t[0].payload.search)&&void 0!==n?n:0," Search results"]})]})]})}return null};var F=t(4120),M=t(33455),Z=t(88906),I=t(71028),z=t(47629),W=t(3962),G=t(53725),L=t(8262);n().extend(c());let J=new z.Ay({accessToken:"LiMjzfL8yNhqmZjYhdpJowtt",region:"eu"}),Y=(0,u.A)(()=>{let e=(0,o.useRouter)(),s=(0,x.d)(),t=(0,l.wA)(),{success:i}=e.query,r=(0,l.d4)(e=>e.user.JWTToken),c=(0,l.d4)(e=>e.user.userDetails),u=(0,l.d4)(e=>e.bookmarks.articles),y=(0,l.d4)(e=>{var s,t;return null==e?void 0:null===(t=e.user)||void 0===t?void 0:null===(s=t.userDetails)||void 0===s?void 0:s.therapistProfile});console.log("dashboard profile",y);let[B]=(0,j.Z)(c.stripeCustomerId),[z,Y,K]=(0,H.A)(c.stripeConnectedAccount),[O,_]=(0,a.useState)(null),[X,$]=(0,a.useState)(!1),[ee,es]=(0,a.useState)(!1),[et,eA]=(0,a.useState)(!1),[ea,el]=(0,a.useState)([]),[ei,en]=(0,a.useState)([]),[er,ec]=(0,a.useState)(!1),[eo,ed]=(0,a.useState)([]),[ex,eh]=(0,a.useState)(!0),[em,ef]=(0,a.useState)([]),[ep,eu]=(0,a.useState)("profile_view");(0,a.useEffect)(()=>{u.length>0?(eh(!0),J.get("cdn/stories",{by_uuids:u.toString()}).then(e=>{let{data:{stories:s}}=e;ed(s),eh(!1)}).catch(e=>{console.error(e)})):eh(!1)},[u]);let{isOpen:ej,onClose:eg,onOpen:eb}=(0,h.j)(),{isOpen:eN,onClose:ew,onOpen:ev}=(0,h.j)(),ey=(0,a.useCallback)(async()=>{if(!r)return null;_(null),_(await (0,d.bQ)("".concat("https://z2kcm50vc5.execute-api.eu-west-2.amazonaws.com/production/","dashboard/therapist"),null,r))},[r,_]),eT=async e=>{try{ef([...em,e]),await (0,d.LS)(r,{},"".concat("https://z2kcm50vc5.execute-api.eu-west-2.amazonaws.com/production/","articleBookmark/").concat(e,"/remove"),"3oy23bJRGp6WC7xyjLt5m3akj2pZEJmJ7UNIzFRf"),ed([...eo].filter(s=>s.uuid!==e)),en([...ei].filter(s=>s.uuid!==e))}catch(t){console.error(t),s(v.cQ("Problem removing saved article")),en([...ei].filter(s=>s.uuid!==e))}},eB=(0,a.useCallback)(async()=>{try{if(er)return;ec(!0);let e=await (0,d.bQ)("".concat("https://z9fq7ve352.execute-api.eu-west-2.amazonaws.com/production/","save"),"g26QmEltTD8GNdSBNlJ1JaAJnDIWgif26WviPrRC",r);e.length>5?el(e.slice(0,5)):el(e),ec(!1)}catch(e){ec(!1)}finally{ec(!1)}},[r,er,s]),eP=async e=>{try{en([...ei,e]),await (0,d.Wv)(r,{profileId:e,practitionerType:"therapist"},"".concat("https://z9fq7ve352.execute-api.eu-west-2.amazonaws.com/production/","save"),"g26QmEltTD8GNdSBNlJ1JaAJnDIWgif26WviPrRC"),await eB()}catch(t){s(v.cQ("Problem removing saved therapist")),en([...ei].filter(s=>s!==e))}};(0,a.useEffect)(()=>{r&&!X&&("true"===i&&eb(),$(!0),ey(),eB())},[eB,ey,X,eb,i,r]);let ek=(0,a.useMemo)(()=>{if(!O||!O.views)return[];let e={};for(let s of O.views)e[s.view_month]={...e[s.view_month],[2===s.viewT
1ype?"search":"profile_view"]:s.view_count};return Object.keys(e).map(s=>{var t,A;return{name:n()(s).format("MMM YY"),profile_view:null!==(t=e[s].profile_view)&&void 0!==t?t:0,search:null!==(A=e[s].search)&&void 0!==A?A:0}})},[O]),eC=(0,a.useMemo)(()=>O&&0!==O.upcomingBookings.length?n()(O.upcomingBookings[0].bookingDate).format("Do MMM YYYY HH:mm"):"No bookings scheduled",[O]),eR=(0,a.useMemo)(()=>!!y&&y.profileComplete,[y]),eH=(0,a.useMemo)(()=>!!y&&n()(y.verificationPaidAt)>n()().subtract(1,"y"),[y]);(0,a.useMemo)(()=>!r||2!==c.accountType||!y.paymentPlan||"CANCELLED"===y.membershipStatus,[r,c,y]),(0,a.useEffect)(()=>{c.firstLogin&&2===c.accountType&&(async()=>{try{await (0,d.FI)(r,{profileId:c.id,practitionerType:"therapist",firstLogin:!1},"".concat("https://z2kcm50vc5.execute-api.eu-west-2.amazonaws.com/production/","profile")),await t((0,W.DG)({firstLogin:!1})),eH||e.push("/accounts/common-account/account-settings?tab=verification")}catch(e){console.error("PROBLEM UPDATING FIRST TIME LOGIN",e),s(v.KR(e))}})()},[c]);let eQ=e=>{eu(e)};return(0,A.jsxs)("div",{className:"flex flex-col w-screen items-center",children:[(0,A.jsx)("div",{className:"bg-brand-alt flex justify-between items-end w-full",children:(0,A.jsxs)("div",{className:"max-w-[1148px] py-4 sm:py-0 w-full mx-auto flex justify-between items-start md:items-center px-6 flex-col md:flex-row",children:[(0,A.jsxs)("div",{className:"flex flex-col py-2 md:py-8",children:[(0,A.jsx)(m.E,{fontSize:"md",color:"white",className:"font-light",children:n()().format("dddd Do, MMMM")}),(0,A.jsxs)(m.E,{fontSize:"3xl",color:"white",className:"font-bold",children:["Welcome ",c.fullname]})]}),(0,A.jsx)(N.$,{onClick:ev,className:"rounded-xl border border-white text-white px-4 py-2 bg-brand-alt transition hover:bg-white hover:text-brand-alt",children:"Switch to User view"})]})}),(0,A.jsx)("div",{className:"flex-1 flex flex-col w-full bg-[#F2F1EF] items-center pb-6",children:(0,A.jsxs)("div",{className:"w-full max-w-[1148px] pt-6 flex flex-col gap-6 px-6",children:[(null==y?void 0:y.outOfOffice)&&(0,A.jsx)(L.A,{profile:y,onView:()=>setTabIndex(2)}),(0,A.jsx)("div",{children:(0,A.jsx)(I.g,{paymentPlan:y.paymentPlan,profileComplete:eR,hasPaymentMethod:1===c.isGoCardless||(null==B?void 0:B.hasPaymentMethod),verificationPaid:eH,isOnboarded:Y,loading:0===c.isGoCardless&&!B||!K||!y})}),(0,A.jsxs)(T(),{prefetch:!1,href:"/accounts/practitioner-account/dashboard/bookings",className:"flex flex-col gap-4 dashboard-card hover:bg-brand-off cursor-pointer py-4 md:py-6",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text border-b w-full pb-4",children:[(0,A.jsx)(b.OgN,{className:"h-6 w-6 mr-2"}),(0,A.jsx)("span",{className:"font-bold text-lg",children:"Bookings and enquiries"})]}),(0,A.jsxs)("div",{className:"md:gap-4 flex flex-col divide-y sm:divide-y-0 sm:flex-row",children:[(0,A.jsxs)("div",{className:"flex items-center sm:flex-col flex-1 gap-4 py-2 sm:py-0",children:[(0,A.jsxs)("div",{className:"flex flex-1 text-brand items-center",children:[(0,A.jsx)(b.cvx,{className:"h-6 w-6 mr-2"}),(0,A.jsx)("span",{className:"font-bold",children:"Total contacts"})]}),O?(0,A.jsx)("span",{className:"text-lg font-bold",children:O.contacts}):(0,A.jsx)("div",{className:"py-2",children:(0,A.jsx)(f.y,{color:"#587500",size:"md"})})]}),(0,A.jsxs)("div",{className:"flex items-center sm:flex-col flex-1 gap-4 py-2 sm:py-0",children:[(0,A.jsxs)("div",{className:"flex flex-1 text-brand items-center",children:[(0,A.jsx)(b.OgN,{className:"h-6 w-6 mr-2"}),(0,A.jsx)("span",{className:"font-bold",children:"Next booking"})]}),O?(0,A.jsx)("span",{className:"text-lg sm:text-lg font-bold text-right",children:eC}):(0,A.jsx)("div",{className:"py-2",children:(0,A.jsx)(f.y,{color:"#587500",size:"md"})})]}),(0,A.jsxs)("div",{className:"flex items-center sm:flex-col flex-1 gap-4 py-2 sm:py-0",children:[(0,A.jsxs)("div",{className:"flex flex-1 text-brand items-center",children:[(0,A.jsx)(b.gV7,{className:"h-6 w-6 mr-2"}),(0,A.jsx)("span",{className:"font-bold",children:"Unread chats"})]}),O?(0,A.jsx)("span",{className:"text-lg sm:text-lg font-bold",children:O?O.unreadThreads.length:0}):(0,A.jsx)("div",{className:"py-2",children:(0,A.jsx)(f.y,{color:"#587500",size:"md"})})]}),(0,A.jsx)("div",{className:"h-full flex items-center justify-end sm:self-ce
1nter py-2 pt-4 sm:pt-0 sm:py-0",children:(0,A.jsx)("div",{className:"h-6 w-6 sm:w-10 sm:h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-5 w-5 sm:h-8 sm:w-8"})})})]})]}),(0,A.jsxs)("div",{className:"flex flex-col-reverse md:grid grid-cols-3 gap-6",children:[(0,A.jsxs)(N.$,{onClick:()=>es(!ee),className:"dashboard-card flex-row items-center hover:bg-brand-off cursor-pointer gap-5 md:hidden",children:[(0,A.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text",children:[(0,A.jsx)(b.cvx,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold text-lg text-left",children:"Contact Welldoing"})]}),ee?(0,A.jsx)("div",{className:"flex flex-col divide-y",children:(0,A.jsxs)("div",{className:"flex items-center gap-2 py-2",children:[(0,A.jsx)(b.cvx,{className:"h-4 w-4"}),(0,A.jsx)("span",{className:"font-bold text-brand-text",children:"Email: "}),(0,A.jsx)(T(),{prefetch:!1,onClick:e=>e.stopPropagation(),href:"mailto:[email protected]",children:(0,A.jsx)("span",{className:"text-brand underline",children:"[email protected]"})})]})}):(0,A.jsx)("span",{className:"text-left font-light text-sm",children:"Welldoing is here to support you every step of the way."})]}),(0,A.jsx)("div",{className:"h-full flex items-center ".concat(ee?"hidden":""),children:(0,A.jsx)("div",{className:"w-10 h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-8 w-8"})})})]}),(0,A.jsx)(T(),{prefetch:!1,href:"/accounts/common-account/account-settings",className:"md:hidden",children:(0,A.jsxs)("div",{className:"dashboard-card flex-row items-center hover:bg-brand-off cursor-pointer gap-5",children:[(0,A.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text",children:[(0,A.jsx)(b.puW,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold text-lg",children:"Account settings"})]}),(0,A.jsx)("span",{className:"text-left font-light text-sm",children:"Manage your account and payments"})]}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:(0,A.jsx)("div",{className:"w-10 h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-8 w-8"})})})]})}),(0,A.jsx)(T(),{prefetch:!1,href:"/accounts/practitioner-account/profile-settings",className:"md:hidden",children:(0,A.jsxs)("div",{className:"dashboard-card flex-row items-center hover:bg-brand-off cursor-pointer gap-5",children:[(0,A.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text",children:[(0,A.jsx)(b.NMe,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold text-lg",children:"Profile settings"})]}),(0,A.jsx)("span",{className:"text-left font-light text-sm",children:"Update your profile"})]}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:(0,A.jsx)("div",{className:"w-10 h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-8 w-8"})})})]})}),(0,A.jsxs)("div",{className:"md:col-span-2 flex flex-col gap-6",children:[(0,A.jsxs)("div",{className:"dashboard-card p-0 divide-y",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 p-4 text-brand-text",children:[(0,A.jsx)(w.t5Z,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold",children:"Noticeboard"})]}),O?(0,A.jsxs)("div",{className:"flex flex-col relative divide-y",children:[O.notices.slice(0,3).map((e,s)=>(0,A.jsx)(M.C,{notice:e,index:s,exitIndex:s},e.id)),(0,A.jsx)(Z.N,{children:et&&O.notices.slice(3).map((e,s)=>(0,A.jsx)(M.C,{notice:e,index:s,exitIndex:O.notices.length-3-s},e.id))})]}):(0,A.jsx)("div",{className:"py-2 w-full flex justify-center",children:(0,A.jsx)(f.y,{color:"#587500",size:"md"})}),O&&O.notices.length>3&&(0,A.jsx)("div",{className:"p-5",children:(0,A.jsx)(N.$,{className:"border border-brand bg-white text-brand py-4 rounded-md w-full font-bold transition hover:text-white hover:bg-brand",onClick:()=>eA(!et),children:et?"Show less":"Show more"})})]}),(0,A.jsxs)("div",{className:"dashboard-card p-0",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 p-4 text-brand-text border-b",children:[(0,A.jsx)(b.NMe,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold",children:"Bookmarked therapists"})]}),(0,A.jsx)("div",{className:"flex flex-col w-full divide-y",children:er?(0,A.jsx)("div",{className:"w-full py-4 flex mt-4 items-center justify-center",children:(0,A.jsx)(f.y,{color:"#587500",size:"xl"})}):0===ea.length?(0,A.jsx)("div",{className:"flex p-4 items-start gap-3 bg-white transition w-full justify-center",children:(0,A.jsx)("span",{className:"text-brand-alt",children:"You don't currently have any bookmarked therapists"})}):ea.map(e=>(0,A.jsxs)("div",{className:"flex p-4 items-start gap-3 bg-white hover:bg-brand-off/50 cursor-pointer transition w-full",children:[(0,A.jsxs)(T(),{prefetch:!1,href:"/counsellors/".concat(e.pageName),className:"flex flex-1 gap-3",children:[(0,A.jsx)(G.A,{name:e.fullname,avatarImage:e.profileImage}),(0,A.jsxs)("div",{className:"flex flex-col flex-1 items-start gap-1.5",children:[(0,A.jsx)("span",{className:"font-bold text-brand-text",children:e.fullname}),(0,A.jsx)("span",{className:"text-left font-light text-sm text-brand-alt",children:e.therapistTitles.map(e=>e.label).join(", ")})]})]}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:ei.includes(e.profileId)?(0,A.jsx)(f.y,{color:"#587500",size:"md"}):(0,A.jsx)(N.$,{onClick:s=>{s.stopPropagation(),eP(e.profileId)},className:"w-10 h-10 border border-brand bg-white rounded-full flex items-center justify-center text-brand transition hover:bg-brand hover:text-white",children:(0,A.jsx)(k.U$b,{className:"h-5 w-5 transition"})})})]},e.profileId))}),ea.length>0&&(0,A.jsx)(T(),{prefetch:!1,href:"/accounts/common-account/bookmarks",className:"p-5",children:(0,A.jsx)(N.$,{className:"border border-brand bg-white text-brand py-4 rounded-md w-full font-bold transition hover:text-white hover:bg-brand",children:"Show all"})})]}),(0,A.jsxs)("div",{className:"dashboard-card p-0",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 p-4 text-brand-text border-b",children:[(0,A.jsx)(C.EnS,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold",children:"Bookmarked articles"})]}),(0,A.jsx)("div",{className:"flex flex-col w-full divide-y",children:ex?(0,A.jsx)("div",{className:"w-full py-4 flex mt-4 items-center justify-center",children:(0,A.jsx)(f.y,{color:"#587500",size:"xl"})}):0===eo.length?(0,A.jsx)("div",{className:"flex p-4 items-start gap-3 bg-white transition w-full justify-center",children:(0,A.jsx)("span",{className:"text-brand-alt",children:"You don't currently have any bookmarked content"})}):eo.map(e=>(0,A.jsxs)("div",{className:"flex p-4 items-start gap-3 bg-white hover:bg-brand-off/50 cursor-pointer transition w-full",children:[(0,A.jsxs)(T(),{prefetch:!1,href:"/".concat(e.full_slug),className:"flex flex-1 gap-3",children:[(0,A.jsx)("div",{className:"rounded-md overflow-hidden relative w-12 h-12",children:(0,A.jsx)(P(
1),{alt:"Article Image",src:e.content.headerImage.filename,fill:!0,className:"object-cover"})}),(0,A.jsxs)("div",{className:"flex flex-col flex-1 items-start gap-1.5",children:[(0,A.jsx)("span",{className:"font-bold text-brand-text text-left",children:e.content.title}),(0,A.jsx)("span",{className:"text-left font-light text-sm text-brand-alt",children:n()(e.date).format("Do MMMM YYYY")})]})]}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:em.includes(e.uuid)?(0,A.jsx)(f.y,{color:"#587500",size:"md"}):(0,A.jsx)(N.$,{onClick:s=>{s.stopPropagation(),eT(e.uuid)},className:"w-10 h-10 border border-brand bg-white rounded-full flex items-center justify-center text-brand transition hover:bg-brand hover:text-white",children:(0,A.jsx)(k.U$b,{className:"h-5 w-5 transition"})})})]},e.uuid))}),eo.length>0&&(0,A.jsx)(T(),{prefetch:!1,href:"/accounts/common-account/bookmarks",className:"p-5",children:(0,A.jsx)(N.$,{className:"border border-brand bg-white text-brand py-4 rounded-md w-full font-bold transition hover:text-white hover:bg-brand",children:"Show all"})})]}),(0,A.jsxs)("div",{className:"dashboard-card p-0 divide-y",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 p-4 text-brand-text",children:[(0,A.jsx)(b.iT6,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold",children:"CPD hub, peer support and community events"})]}),(0,A.jsx)(T(),{prefetch:!1,href:"/free-online-cpd-welldoing-members",children:(0,A.jsxs)("div",{className:"flex justify-between w-full p-5 items-center bg-white hover:bg-brand-off/50 cursor-pointer transition",children:[(0,A.jsx)("span",{className:"text-brand-text",children:"Register for upcoming CPD, peer support and other member events, and watch past CPD sessions"}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:(0,A.jsx)("div",{className:"w-6 h-6 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-5 w-5"})})})]})})]}),(0,A.jsxs)("div",{className:"dashboard-card p-0 divide-y ".concat(O?"min-h-[450px]":""),children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 p-4 text-brand-text",children:[(0,A.jsx)(R.tko,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold",children:"Profile stats"})]}),O?(0,A.jsxs)("div",{className:"flex flex-col w-full flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-4 p-5 pb-0",children:[(0,A.jsx)("div",{className:"flex items-center gap-2",children:(0,A.jsx)("button",{type:"button",onClick:()=>eQ("search"),className:"".concat("search"===ep?"bg-brand-alt text-white rounded-full px-2 py-1":"text-muted"," text-brand-text font-bold"),children:"Search results"})}),(0,A.jsx)(p.d,{size:"lg",colorScheme:"primary",sx:{".chakra-switch__track:not([data-checked])":{bg:"brand.200"}},isChecked:"profile_view"===ep,onChange:e=>eQ(e.target.checked?"profile_view":"search")}),(0,A.jsx)("div",{className:"flex items-center gap-2",children:(0,A.jsx)("button",{type:"button",onClick:()=>eQ("profile_view"),className:"".concat("profile_view"===ep?"bg-brand text-white rounded-full px-2 py-1":"text-brand-text"," text-brand-text font-bold"),children:"Profile views"})})]}),(0,A.jsx)(Q.u,{width:"100%",height:"100%",className:"flex-1",children:(0,A.jsxs)(S.X,{width:500,height:400,data:ek,margin:{top:20,right:20,bottom:20,left:0},children:[(0,A.jsx)(V.W,{fill:"#9F9F9F",padding:{left:20,right:20},tickLine:!1,axisLine:!1,dataKey:"name"}),(0,A.jsx)(E.h,{padding:{top:20,bottom:20},tickLine:!1,axisLine:!1}),(0,A.jsx)(U.m,{content:e=>(0,A.jsx)(D,{...e,type:ep})}),(0,A.jsx)(q.N,{isAnimationActive:!1,dot:!1,type:"monotone",dataKey:ep,stroke:"profile_view"===ep?"#587500":"#3F3B39",strokeDasharray:"5 5"})]})})]}):(0,A.jsx)("div",{className:"flex w-full py-4 items-center justify-center",children:(0,A.jsx)(f.y,{size:"xl",color:"#587500"})})]})]}),(0,A.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,A.jsx)(T(),{prefetch:!1,href:"/accounts/practitioner-account/profile-settings",className:"hidden md:block",children:(0,A.jsxs)("div",{className:"dashboard-card flex-row items-center hover:bg-brand-off cursor-pointer gap-5",children:[(0,A.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text",children:[(0,A.jsx)(b.NMe,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold text-lg text-left",children:"Profile settings"})]}),(0,A.jsx)("span",{className:"text-left font-light text-sm",children:"Update your profile"})]}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:(0,A.jsx)("div",{className:"w-10 h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-8 w-8"})})})]})}),(0,A.jsx)(T(),{prefetch:!1,href:"/accounts/common-account/account-settings",className:"hidden md:block",children:(0,A.jsxs)("div",{className:"dashboard-card flex-row items-center hover:bg-brand-off cursor-pointer gap-5",children:[(0,A.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text",children:[(0,A.jsx)(b.puW,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold text-lg text-left",children:"Account settings"})]}),(0,A.jsx)("span",{className:"text-left font-light text-sm",children:"Manage your account and payments"})]}),(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:(0,A.jsx)("div",{className:"w-10 h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-8 w-8"})})})]})}),(0,A.jsxs)(N.$,{onClick:()=>es(!ee),className:"dashboard-card hidden md:flex flex-row items-center hover:bg-brand-off cursor-pointer gap-5",children:[(0,A.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,A.jsxs)("div",{className:"flex items-center gap-3 text-brand-text",children:[(0,A.jsx)(b.cvx,{className:"h-6 w-6"}),(0,A.jsx)("span",{className:"font-bold text-lg text-left",children:"Contact Welldoing"})]}),ee?(0,A.jsx)("div",{className:"flex flex-col divide-y",children:(0,A.jsxs)("div",{className:"flex items-center gap-2 py-2",children:[(0,A.jsx)(b.cvx,{className:"h-4 w-4"}),(0,A.jsxs)("span",{className:"font-bold text-brand-text",children:["Email:"," "]}),(0,A.jsx)(T(),{prefetch:!1,onClick:e=>e.stopPropagation(),href:"mailto:[email protected]",children:(0,A.jsx)("span",{className:"text-brand underline",children:"[email protected]"})})]})}):(0,A.jsx)("span",{className:"text-left font-light text-sm",children:"Welldoing is here to supp
1ort you every step of the way."})]}),(0,A.jsx)("div",{className:"h-full flex items-center ".concat(ee?"hidden":""),children:(0,A.jsx)("div",{className:"w-10 h-10 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(b.juJ,{className:"h-8 w-8"})})})]})]})]})]})}),(0,A.jsx)(g.Z,{isTherapist:!0,isSuccessOpen:ej,onSuccessClose:eg}),(0,A.jsx)(F.J,{isOpen:eN,onClose:ew,page:"/"})]})})},53725:(e,s,t)=>{"use strict";t.d(s,{A:()=>c});var A=t(74848),a=t(23935),l=t(46410),i=t(29965),n=t.n(i);let r={sm:32,md:48},c=e=>{let{name:s,avatarImage:t,onClick:i=null,inMenu:c=!1,size:o="md"}=e;return c?(0,A.jsx)(a.I,{children:t?(0,A.jsx)(n(),{width:r[o],height:r[o],alt:s||"practitioner photo",style:{objectFit:"cover",objectPosition:"center",borderRadius:"100%",height:"".concat(r[o],"px"),width:"".concat(r[o],"px")},src:null!==t&&0!==Object.keys(t).length?t:"/images/profileHeader.jpg",unoptimized:!0,placeholder:"blur",blurDataURL:"data:image/jpeg;base64,/9j/4AA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A5qAAAAAAAAAAAAAAAAAAAAAAAA7TI11s4qJioahxUTFRdRUNMVFZMyAGOgCDpWggK1NqqimibWequs9GtSMN39Z1e/6is2rYQARAAAAAAAAAAAAAAAAAAAAAAAAHfw+Hw+I6FIch8PghSKkEipFQoZ8PioRnwCEDCoRK4VQRU1dibDVZ1nqNbGeomrHNufqLG24zrOumekEqxLTnZgAAgAAAAAAAAAAAAAAAAAAAAA9Tg4rg4y6Fw+Hw+CFw+Hw+KhcPhmIXAZqhcJQBJVRUEUrF1NRWdjPUa1GolWMNxjY6NxhqfrMdImpsUVaSxAOk05AAAAAAAAAAAAAAAAAAAAAD1zAYdAZGqGZGIYBqgAMCBgQiplQTSqqmioqKuoqVYy0x230w2xPrpEFTKtrU1K6mrHKkAFZAAAAAAAAAAAAAAAAAAB//9k="}):(0,A.jsx)(l.e,{as:a.I,name:s||"",className:t?"border border-[rgb(63_59_57_/_0.1)_!important] bg-[rgb(246_244_239)_!important]":"",size:o})}):(0,A.jsx)("div",{onClick:i,children:t?(0,A.jsx)(n(),{width:r[o],height:r[o],alt:s||"practitioner photo",style:{objectFit:"cover",objectPosition:"center",borderRadius:"100%",height:"".concat(r[o],"px"),width:"".concat(r[o],"px")},src:null!==t&&0!==Object.keys(t).length?t:"/images/profileHeader.jpg",placeholder:"blur",unoptimized:!0,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl
1kZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAA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AAAAAAAAAAAAAAAD1zAYdAZGqGZGIYBqgAMCBgQiplQTSqqmioqKuoqVYy0x230w2xPrpEFTKtrU1K6mrHKkAFZAAAAAAAAAAAAAAAAAAB//9k="}):(0,A.jsx)(l.e,{name:s||"",className:t?"border border-[rgb(63_59_57_/_0.1)_!important] bg-[rgb(246_244_239)_!important]":"",size:o})})}},33455:(e,s,t)=>{"use strict";t.d(s,{C:()=>u});var A=t(74848),a=t(29965),l=t.n(a);let i={src:"/_next/static/media/system-notice.30a0e73f.png",height:110,width:112,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAANlBMVEVWdABUcgBeewdshhySfnJVcwBZdgFWcwBYdACXoGeLokZ5hjd/mDWVsESJlU+XmWp1cjyetlVu4y7lAAAACnRSTlP1/////vD/6dX+wSc0gwAAAAlwSFlzAAALEwAACxMBAJqcGAAAADxJREFUeJwdy0kSgDAMA0FJpmTjJCz//yxF5tyD8q6Qpk0CqX7XFJC9pHEBGR3PMYCk5n3+xqTCwN7p+gA3XwF51CqNmAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8};var n=t(37481),r=t(26923),c=t(99179);t(96540);var o=t(91106),d=t.n(o),x=t(54793),h=t(74353),m=t.n(h),f=t(97375),p=t.n(f);m().extend(p());let u=e=>{var s;let{notice:t,index:a,exitIndex:o}=e;return(0,A.jsx)(x.P.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:24,delay:.05*a}},exit:{opacity:0,y:-10,transition:{type:"spring",stiffness:300,damping:24,delay:.05*o}},children:(0,A.jsx)(d(),{prefetch:!1,href:t.link?t.link:"",scroll:!!t.link,className:"flex flex-col p-4 bg-white hover:bg-brand-off/50 cursor-pointer transition",children:(0,A.jsxs)("div",{className:"flex items-start gap-3",children:[(0,A.jsx)("div",{className:"h-full flex items-start",children:(0,A.jsx)("div",{className:"w-[66px] h-[66px] relative rounded overflow-hidden",children:(0,A.jsx)(l(),{src:null!==(s=t.image)&&void 0!==s?s:i,fill:!0,className:"object-cover",alt:t.title})})}),(0,A.jsxs)("div",{className:"flex flex-col flex-1 items-start",children:[(0,A.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,A.jsx)("span",{className:"font-bold text-brand-text text-left",children:t.title}),t.pinned?(0,A.jsx)(n.m,{label:"Pinned",children:(0,A.jsx)("div",{className:"text-green-500",children:(0,A.jsx)(r.K8u,{})})}):null]}),(0,A.jsx)("span",{className:"text-xs flex justify-end text-gray-400 pb-1.5",children:m()(t.createdAt).format("Do MMM YYYY HH:mm")}
1),(0,A.jsx)("span",{className:"text-left font-light text-sm",children:t.content})]}),t.link&&(0,A.jsx)("div",{className:"h-full flex items-center self-center",children:(0,A.jsx)("div",{className:"w-6 h-6 bg-brand rounded-full flex items-center justify-center text-white",children:(0,A.jsx)(c.juJ,{className:"h-5 w-5"})})})]})},t.id)})}},4120:(e,s,t)=>{"use strict";t.d(s,{J:()=>c});var A=t(74848),a=t(91106),l=t.n(a),i=t(30044),n=t(49054),r=t(56436);let c=e=>{let{isOpen:s,onClose:t,page:a}=e;return(0,A.jsxs)(i.lG,{open:s,onClose:t,children:[(0,A.jsx)(i.Xi,{className:"fixed inset-0 bg-black/30 z-[1000]"}),(0,A.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4 z-[1001]",children:(0,A.jsxs)(i.Lj,{className:"max-w-lg bg-white p-4 rounded-lg",children:[(0,A.jsx)(i.L3,{className:"font-bold text-lg text-brand-text",children:"Switch to User view"}),(0,A.jsx)(n.VY,{className:"text-brand-text mb-4",children:"Are you sure you want to switch to User view?"}),(0,A.jsxs)("p",{children:["User view is where you can manage your personal therapy and supervision. You will only find details relating to your professional therapy practice under ",(0,A.jsx)("b",{children:"Therapist view"})]}),(0,A.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 mt-4",children:[(0,A.jsx)(r.$,{className:"px-4 w-full flex-nowrap rounded-full py-2 bg-brand text-white font-bold hover:bg-white hover:text-brand transition",onClick:t,children:"Stay on Therapist view"}),(0,A.jsx)(l(),{href:"/accounts/user-account/dashboard".concat(a),className:"w-full",children:(0,A.jsx)(r.$,{className:"w-full rounded-full px-4 py-2 bg-brand text-white font-bold hover:bg-white hover:text-brand transition",children:"Go to User view"})})]})]})})]})}},17480:(e,s,t)=>{"use strict";t.d(s,{Z:()=>h});var A=t(74848),a=t(40828),l=t(90235),i=t(8389),n=t(25610),r=t(28387),c=t(40133),o=t(60505),d=t(79718);t(96540);var x=t(86715);let h=e=>{let{isSuccessOpen:s,onSuccessClose:t,isTherapist:h=!1}=e,m=(0,x.useRouter)();return(0,A.jsxs)(a.aF,{isOpen:s,onClose:t,isCentered:!0,children:[(0,A.jsx)(l.m,{}),(0,A.jsxs)(i.$,{children:[(0,A.jsx)(n.r,{children:"Welcome to Welldoing!"}),(0,A.jsx)(r.c,{children:(0,A.jsx)(c.E,{children:(0,A.jsx)("p",{children:"Thanks for registering with Welldoing."})})}),(0,A.jsx)(o.j,{children:(0,A.jsx)(d.$,{mr:3,onClick:()=>{t(),m.push({pathname:"/accounts/".concat(h?"practitioner":"user","-account/dashboard"),query:{}},void 0,{shallow:!0})},children:"Got it"})})]})]})}},76199:(e,s,t)=>{"use strict";t.d(s,{A:()=>n,T:()=>i});var A=t(96540),a=t(16449);let l=!1,i=e=>{let[s,t]=(0,A.useState)(null),[i,n]=(0,A.useState)(!1),[r,c]=(0,A.useState)(!1),o=(0,A.useCallback)(async function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e&&!s){c(!0);return}let t=null!=s?s:e,A=await fetch("/api/stripe/account_session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({account:t})});if(A.ok){let{client_secret:e,is_onboarded:s,requires_update:a}=await A.json();return n(s),c(!0),a&&await fetch("/api/stripe/update_account",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({account:t})}),l=!1,e}{let{error:e}=await A.json();throw e}},[e]),d=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;c(!1),await o(e)};return(0,A.useEffect)(()=>{l||(l=!0,e&&!r?t((0,a.e)({publishableKey:"pk_live_qYIQGjHooynLnH612Yl7PV4i",fetchClientSecret:o,appearance:{overlays:"dialog",variables:{colorPrimary:"#587500",fontFamily:"sans-serif"}}})):(c(!0),l=!1))},[e,o,r]),[s,i,r,d]},n=i},41125:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});var A=t(96540);let a=e=>{let[s,t]=(0,A.useState)({}),[a,l]=(0,A.useState)(!1),i=(0,A.useCallback)(()=>{l(!1),e?fetch("/api/stripe/customer/".concat(e),{method:"GET",headers:{"Content-Type":"application/json"}}).then(async e=>{if(!e.ok)throw"Something went wrong retrieving the customer";t(await e.json())}).finally(()=>{l(!0)}):l(!0)},[e]);return(0,A.useEffect)(()=>{i()},[i]),[a?s:null,i]}},66841:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var A=t(74848),a=t(86715),l=t(78287);let i=e=>s=>{let t=(0,a.useRouter)(),[i,n]=(0,l.J)("/");return i?n?(0,A.jsx)(e,{...s}):(t.replace("/"),null):null}}},e=>{var s=s=>e(e.s=s);e.O(0,[2419,7690,5201,9735,4765,3935,2465,5537,3239,636,6593,8792],()=>s(2581)),_N_E=e.O()}]); 2//# sourceMappingURL=dashboard-53ae91549347e0de.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.