PageSourceSearch

https://app.mentalyc.com/assets/js/index-59bb6b73.js

js mentalyc.com collected 2026-10-01 14:34:04 UTC 8,801 bytes, 2 lines download raw bytes

1import{i as $,u as G,j as t,aC as V,L as Y,a as s,aj as B,T as g,S as T,F,b as R,aI as K,B as M,v as j,d as Z,N as q,aJ as J,aH as k,e as O,s as U,o as H,aK as Q,aL as X}from"./registration-f470e00c.js";import{r as L}from"./azure-99d7aac0.js";import"./analytics-277e554b.js";import{A as ee}from"./PrivateRouter-b8fe3003.js";import{T as te}from"./RegisterLinks-ede16512.js";import ae from"./DefaultLayout-acc3e253.js";import{E as se}from"./ErrorFallback-c3f002e3.js";import{E as ne}from"./sentry-c30013d8.js";import"./iconsax-b25b4e99.js";import"./index-37cfdbd4.js";import"./GenerateTreatment-ff75ed9c.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="b225d9c5-38d8-4d41-b40b-a9975acccecb",r._sentryDebugIdIdentifier="sentry-dbid-b225d9c5-38d8-4d41-b40b-a9975acccecb")}catch{}})();const W=r=>{const e=Z.c(31),{label:i,toggle:b,handleToggle:E,description:l,isFeatureDisabled:v,loading:C,isOwner:u,teamId:N,planName:A,planLevel:x,isFeatureBeta:c,currentPlanLevel:d,bypassPlanCheck:z}=r,h=c===void 0?!1:c,I=z===void 0?!1:z,S=`preference-feature-${i.toLowerCase().replace(/\s+/g,"-")}`,P=i!=="Automatic transcript deletion"&&"tw-border-b";let w;e[0]!==P?(w=B(P,"tw-py-4 tw-flex tw-flex-col"),e[0]=P,e[1]=w):w=e[1];let D;e[2]===Symbol.for("react.memo_cache_sentinel")?(D=B("tw-flex tw-items-center tw-space-x-4 tw-mb-2"),e[2]=D):D=e[2];const _=C||v,n=`${i}-toggle`;let a;e[3]!==E||e[4]!==i||e[5]!==_||e[6]!==n||e[7]!==b?(a=t(Q,{label:i,checked:b,onChange:E,disabled:_,"data-testid":n}),e[3]=E,e[4]=i,e[5]=_,e[6]=n,e[7]=b,e[8]=a):a=e[8];let p;e[9]!==I||e[10]!==d||e[11]!==h||e[12]!==v||e[13]!==u||e[14]!==x||e[15]!==A||e[16]!==N?(p=!I&&d<x&&!h&&!N&&t(q,{to:u()?"/manage/subscription":"/payment",className:"tw-flex tw-truncate",children:t(J,{planName:A,isLocked:v})}),e[9]=I,e[10]=d,e[11]=h,e[12]=v,e[13]=u,e[14]=x,e[15]=A,e[16]=N,e[17]=p):p=e[17];let o;e[18]!==h?(o=h&&t(X,{}),e[18]=h,e[19]=o):o=e[19];let y;e[20]!==p||e[21]!==o||e[22]!==a?(y=s("div",{className:D,children:[a,p,o]}),e[20]=p,e[21]=o,e[22]=a,e[23]=y):y=e[23];let f;e[24]!==l?(f=typeof l=="string"?t(g,{size:T.SM,className:"tw-text-gray-500",children:l}):t(F,{children:l}),e[24]=l,e[25]=f):f=e[25];let m;return e[26]!==y||e[27]!==f||e[28]!==S||e[29]!==w?(m=s("div",{"data-testid":S,className:w,children:[y,f]}),e[26]=y,e[27]=f,e[28]=S,e[29]=w,e[30]=m):m=e[30],m},re=()=>{const[r,e]=L.useState(!1),[i,b]=L.useState(!1),[E,l]=L.useState(!1),{currentPlanLevel:v,loggedUserId:C,teamId:u}=$(),{isOwner:N,isSubscribed:A,isActivated:x}=G(),[c,d]=L.useState({isLoading:!1,isTogglingNoteAccuracy:!1,isTogglingAutoTransDelete:!1,isTogglingAnonymizeTranscripts:!1,isDeactivatingAccount:!1,isTogglingInterlinking:!1}),{isLoading:z,isTogglingAnonymizeTranscripts:h,isTogglingAutoTransDelete:I}=c;L.useEffect(()=>{(async()=>{try{d({...c,isLoading:!0});const a=await k.GET_USER_DATA_PREFERENCE();if(a){const{allow_automatic_transcript_deletion:p,allow_transcript_anonymization:o}=a;e(p),b(o)}}catch(a){O("We could not update preferences right now. Try again later."),U(a,"Unexpected error while updating user training info",{therapistId:C})}finally{d({...c,isLoading:!1})}})()},[]);const S=async(n,a,p,o,y,f)=>{d({...c,[f]:!0});try{const m=!n;await a(m),p(m),H(y)}catch(m){O(o),U(m,o,{therapistId:C})}finally{d({...c,[f]:!1})}},P=()=>{r?S(r,k.SAVE_AUTO_TRANSCRIPT_DELETION,e,"There was a problem updating the automatic transcript deletion setting. Contact support for help.","Transcript auto-deletion turned off","isTogglingAutoTransDelete"):l(!0)},w=async n=>{l(!1),d({...c,isTogglingAutoTransDelete:!0});try{await k.BULK_FINALIZE_TRANSCRIPTS({enableAutoTrans:!0,deletePrevious:n}),e(!0),H(n?"Previous transcripts deleted successfully. Auto-deletion is turned on.":"Transcript auto-deletion turned on.")}catch(a){console.error("Error updating transcript deletion settings:",a),O("There was a problem updating the automatic transcript deletion setting. Contact support for help.")}finally{d({...c,isTogglingAutoTransDelete:!1})}},D=()=>{l(!1)},_=()=>{S(i,k.SAVE_ANONYMIZE_TRANSCRIPTS,b,"There was a problem with updating transcript anonymization settings. Please contact our support team!",`Anonymization of transcripts and notes is ${i?"OFF":"ON"}`,"isTogglingAnonymizeTranscripts")};return z?Array(6).fill(null).map((n,a)=>t("div",{className:"tw-flex tw-items-center tw-justify-center tw-mt-4",children:t("div",{className:"tw-grid tw-gri
1d-cols-1 tw-gap-4 tw-m-2 tw-w-[500px] ",children:t(V,{className:"tw-h-[100px]"})},a)})):t(ne,{beforeCapture:n=>{n.setTag("component","summary")},fallback:se,children:t(ae,{beforeHeader:null,customContainerClass:"disableScrolling",children:t(L.Suspense,{fallback:t(Y,{}),children:t("div",{children:s("div",{className:"profile-section flex-grow-[2]",children:[s("section",{className:B("tw-pb-4  tw-space-y-4",!x()&&"tw-border-b-0 tw-space-y-6"),children:[s("div",{className:"tw-space-y-2",children:[t(g,{tagName:T.H2,size:T.H1,className:"!tw-font-[700]","data-testid":"data-use-note-behavior-header",children:"Privacy settings"}),s("div",{"data-testid":"preferences-description",children:[t(g,{className:"tw-text-gray-500",children:"The preferences you set here help us tailor notes to your needs."}),s(g,{className:"tw-text-gray-500",children:["These settings apply ",t("strong",{children:"only to notes you create moving forward"})," ","and will not affect any existing notes."]})]})]}),x()||!u?s(F,{children:[!A()&&u&&t("div",{className:"tw-my-6",children:t(ee,{text:s("p",{className:"tw-text-sm tw-my-0",children:["Easily manage your data preferences with the Team plan.",t("br",{})," Upgrade today to enhance your session documentation experience."]})})}),s("div",{className:"tw-bg-white tw-p-6 tw-rounded-lg tw-mb-16 tw-overflow-hidden","data-testid":"data-note-behavior-preferences-section",children:[t(g,{size:T.H3,weight:R.SEMIBOLD,"data-testid":"change-preferences-header",children:"Change your data and note behavior preferences"}),t(W,{label:"Anonymization of transcripts and notes",toggle:i,handleToggle:_,description:s(F,{children:[t(g,{size:T.SM,className:"tw-text-gray-500",children:"When ON, all personal info from transcripts and notes is automatically removed."}),t(g,{size:T.SM,className:"tw-text-gray-500",children:"When OFF, first names and locations stay visible — ideal for users who want some details in their notes while keeping other info anonymous and secure, or helpful for keeping important context about people — especially in couple, family, or group notes, where the AI needs names to tell individuals apart."})]}),isFeatureDisabled:!!(!A()&&u),loading:h,isOwner:N,teamId:u,planName:"SUPER",planLevel:0,currentPlanLevel:v+1}),t(W,{label:"Automatic transcript deletion",toggle:r,handleToggle:P,description:s(F,{children:[t(g,{size:T.SM,className:"tw-text-gray-500",children:"When ON, transcripts are deleted automatically after each session. This will prevent Alliance Genie™ from providing therapeutic alliance insights, so session analytics will be unavailable."}),t(g,{size:T.SM,className:"tw-text-gray-500",children:"You will also not be able to change the note type, template, or client after the note is created, as this requires creation of a new note based on the session transcript."})]}),isFeatureDisabled:!1,loading:I,isOwner:N,teamId:u,planName:"",planLevel:0,currentPlanLevel:0,bypassPlanCheck:!0})]})]}):t(te,{})]}),t(K,{title:"Delete all previous transcripts as well?",open:E,modalClasses:"md:tw-w-[34rem] md:tw-max-w-[34rem]",onOpenChange:l,onClose:()=>l(!1),description:"You have transcript auto-deletion enabled. Going forward, transcripts will be deleted automatically after notes are created. Would you also like to delete all previous transcripts now? If you do, detailed session insights will no longer be available for all your past notes.",footer:s("div",{className:"tw-flex tw-gap-3 tw-flex-wrap tw-items-center tw-w-full !tw-justify-center",children:[t(M,{variant:j.GHOST,onClick:()=>w(!0),"data-testid":"delete-previous-transcripts-button",children:"Delete previous transcripts"}),t(M,{variant:j.FILLED,onClick:D,children:"Keep previous transcripts"})]}),children:s("div",{className:"tw-w-full tw-flex tw-flex-col tw-mt-3",children:[t(g,{className:"tw-text-gray-500 tw-text-center",weight:R.SEMIBOLD,children:"This cannot be undone."}),t("div",{className:"tw-items-center tw-justify-center tw-flex tw-my-6",children:t("div",{className:"tw-w-20 tw-h-20 tw-bg-danger-100 tw-rounded-full tw-flex tw-items-center tw-justify-center",children:t("span",{className:"tw-text-3xl",children:"✋🏻"})})})]})})]})})})})})},we=re;export{we as default};
2//# sourceMappingURL=index-59bb6b73.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.