1import{cw as l,cs as u,cc as d,bY as f,cb as h,bI as t,a1 as x}from"./index-Cr7AdIBs.js";import{TherapistSettingsDialog as g}from"./TherapistSettingsDialog-CyzCSYSc.js";import{T as e}from"./TherapistBottomNav-DZToX_rT.js";import{u as b}from"./useTherapistProfile-D-2z0LMx.js";import{S as N,b as j,s as _}from"./therapistSettingsTabs-1sflaOJ7.js";import"./card-YCIWu6CA.js";import"./label-BUHxPuh5.js";import"./select-BJ8CSnXm.js";import"./chevron-up-MJeMJebt.js";import"./avatar-DAAM6__Y.js";import"./index-BYxYN3mX.js";import"./ProfilePhotoUploadDialog-CBaE0J2W.js";import"./index.module-Bf27W9L9.js";import"./responsive-dialog-Cm9YFd_h.js";import"./index-DGNJ8sp4.js";import"./storageUtils-WlAWBEBb.js";import"./square-pen-nYWwgZV4.js";import"./useLocationData-Bw-gTSC1.js";import"./queryConfig-CNj7tLep.js";import"./PhoneInput-DaIhtfyn.js";import"./input-JOAwrtew.js";import"./NameInput-DzK-m11B.js";import"./EmailInput-BEbmvJ78.js";import"./dbErrors-Uwklxx8C.js";import"./useTherapistReadOnly-HJ1Q1z6t.js";import"./badge-BgPQ-ROF.js";import"./InvoiceDialog-DjQUFyt8.js";import"./chevron-left-DzHEJu6V.js";import"./external-link-BaoXUhJa.js";import"./TaxCommunicationDialog-D9Yo72qX.js";import"./lightbulb-B18MyyHH.js";import"./eye-off-BChhaidC.js";import"./eye-CcnbeK8Z.js";import"./file-text-CaUb7pup.js";import"./upload-Bws_UziY.js";import"./mail-CAYzCdF8.js";import"./DiscountBadge-wIlDr8Ez.js";import"./info-hint-i47xoTxS.js";import"./popover-Cq1pSMqb.js";import"./gift-Dr7OwBHJ.js";import"./sessionDiscount-Bxc9Gcrz.js";import"./receipt-s41CqEJw.js";import"./check-check-DbrIrh5J.js";import"./chevrons-up-down-D7ZtwaRB.js";import"./collapsible-BbaetC1Q.js";import"./banknote-sHlooC28.js";import"./chevron-right-Bkm9N71g.js";import"./index-Dmfgj_U1.js";import"./circle-BAb1akab.js";import"./tabs-BHwkA6mc.js";import"./skeleton-bhek64gt.js";import"./badge-check-EIolCpPa.js";import"./landmark-BU7ESkj1.js";import"./user-D7ORoCSN.js";import"./building-2-C_tIqFEC.js";import"./switch-DFRmFmn_.js";import"./Setup2FAChoiceDialog-Bzs22TMJ.js";import"./input-otp-CckaRwfV.js";import"./arrow-left-B0zK2sBl.js";import"./shield-CIEQM-ws.js";import"./smartphone-Ct1KtD_4.js";import"./copy-BrqgV9n6.js";import"./LanguageAppearanceTab-D39A6a3C.js";import"./authErrors-DLNFq6BF.js";import"./globe-Q0lxLSQg.js";import"./moon-BriwIMAh.js";import"./Verify2FADialog-neobR5K7.js";import"./refresh-cw-CBCjVXfj.js";import"./lock-BkzdQ1Vb.js";import"./circle-x-tyOd9I2T.js";import"./SupportTab-BP1IZmjd.js";import"./TherapistFaqAccordion-CfJlFpJR.js";
1import"./FaqAccordion-BSyVKD_5.js";import"./search-CUb5ysW2.js";import"./circle-help-B6iJ2NmA.js";import"./AsPageHeader-hSPdR5HK.js";import"./monitor-smartphone-BAmbLytm.js";import"./Logo_M_Preto-CsAQ-YPE.js";import"./useUnreadMessagesCount-D6p3OiEb.js";import"./queryClient-CS1ns8FB.js";function Kt(){const{tab:s}=l(),i=u(),{user:a}=d(),{data:r,isLoading:n}=b(a?.id),o=N[s??""]??"basic-info",m=j(o),p=_(o);return f.useEffect(()=>{m||(p&&h(),i("/therapist/settings",{replace:!0}))},[m,p,i]),m?n||!r?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex flex-col items-center justify-center min-h-screen",children:[t.jsx(x,{className:"w-10 h-10 animate-spin text-primary mb-4"}),t.jsx("p",{className:"text-muted-foreground",children:"A carregar..."})]}),t.jsx(e,{})]}):t.jsxs(t.Fragment,{children:[t.jsx(g,{open:!0,asPage:!0,singleTab:!0,initialTab:o,onBack:()=>i("/therapist/settings"),onOpenChange:c=>{c||i("/therapist/settings")},therapistData:{id:r.id,first_name:r.firstName,last_name:r.lastName,email:r.email,phone_number:r.phone,country_id:r.countryId??"",tax_id_number:r.taxIdNumber??"",profile_picture_url:r.profilePictureUrl??void 0}}),t.jsx(e,{})]}):null}export{Kt as default};
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.