PageSourceSearch

https://melzi.ai/js/7337.b573149c.js

js melzi.ai collected 2026-10-05 12:16:04 UTC 25,528 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkmelzi_ai"]=self["webpackChunkmelzi_ai"]||[]).push([[7337],{7337:function(e,a,t){t.r(a),t.d(a,{default:function(){return Le}});var o=t(6768),l=t(4232),s=t(5130);const i={class:"min-h-screen bg-gray-50 py-8"},n={class:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8"},r={class:"mb-8"},c={class:"flex items-center justify-between"},d={key:0,class:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4 z-50"},u={class:"max-w-4xl mx-auto flex items-center justify-between"},p={class:"flex gap-3"},v=["disabled"],m={key:0,class:"animate-spin h-4 w-4 mr-2",fill:"none",viewBox:"0 0 24 24"},f={class:"space-y-6"},g={class:"bg-white rounded-xl shadow-sm border border-gray-200"},h={class:"p-6 space-y-6"},k={class:"flex flex-col sm:flex-row gap-6"},y={class:"flex-shrink-0"},b={class:"relative"},x={class:"h-24 w-24 rounded-full overflow-hidden bg-gray-100 border-2 border-gray-200"},L=["src","alt"],w={key:1,class:"h-full w-full flex items-center justify-center text-gray-400"},C=["disabled"],P={key:0,class:"animate-spin h-4 w-4",fill:"none",viewBox:"0 0 24 24"},A={key:1,class:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},E={class:"flex-1 space-y-4"},T={class:"flex"},U={key:1,class:"mt-1 text-sm text-gray-500"},z={class:"font-mono"},S={class:"mt-1 text-sm text-gray-500"},I={class:"mt-1 text-sm text-gray-500"},_={class:"bg-white rounded-xl shadow-sm border border-gray-200"},V={class:"p-6"},F={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},N={class:"bg-white rounded-xl shadow-sm border border-gray-200"},M={class:"p-6 space-y-4"},G={class:"flex items-center justify-between"},O={class:"flex items-center justify-between"},X={key:0,class:"mt-4 p-4 bg-gray-50 rounded-lg"},j={class:"flex items-center justify-between"},H={class:"text-sm text-gray-600 font-mono"},R={class:"flex gap-2"},B=["href"],J={class:"bg-white rounded-xl shadow-sm border border-gray-200"},D={class:"p-6 space-y-6"},W={class:"space-y-2"},K={class:"flex flex-wrap gap-2"},Q=["onClick"],$={class:"bg-white rounded-xl shadow-sm border border-gray-200"},Y={class:"p-6"},Z={key:0,class:"space-y-4"},q={class:"flex items-center space-x-3"},ee={class:"h-10 w-10 rounded-full bg-gray-100 flex items-center justify-center"},ae=["src","alt"],te={key:1,class:"text-lg font-bold text-gray-600"},oe={class:"text-sm font-medium text-gray-900 capitalize"},le={class:"text-sm text-gray-500"},se={class:"flex items-center space-x-2"},ie=["onClick"],ne={key:1,class:"text-center py-8"},re={key:0,class:"bg-white rounded-xl shadow-sm border border-gray-200"},ce={class:"p-6"},de={class:"grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2"},ue={class:"mt-1 text-sm text-gray-900"},pe={class:"mt-1 text-sm text-gray-900"};function ve(e,a,t,ve,me,fe){var ge,he,ke;const ye=(0,o.g2)("router-link");return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.Lk)("div",n,[(0,o.Lk)("div",r,[(0,o.Lk)("div",c,[a[19]||(a[19]=(0,o.Lk)("div",null,[(0,o.Lk)("h1",{class:"text-3xl font-bold text-gray-900"},"Profile"),(0,o.Lk)("p",{class:"mt-2 text-gray-600"},"Manage your identity, preferences, and visibility settings")],-1)),(0,o.bF)(ye,{to:"/user",class:"btn-secondary"},{default:(0,o.k6)((()=>a[18]||(a[18]=[(0,o.Lk)("svg",{class:"h-5 w-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})],-1),(0,o.eW)(" Back to Dashboard ")]))),_:1,__:[18]})])]),ve.hasUnsavedChanges?((0,o.uX)(),(0,o.CE)("div",d,[(0,o.Lk)("div",u,[a[21]||(a[21]=(0,o.Lk)("span",{class:"text-sm text-gray-600"},"You have unsaved changes",-1)),(0,o.Lk)("div",p,[(0,o.Lk)("button",{onClick:a[0]||(a[0]=(...e)=>ve.discardChanges&&ve.discardChanges(...e)),class:"btn-secondary"},"Discard"),(0,o.Lk)("button",{onClick:a[1]||(a[1]=(...e)=>ve.saveChanges&&ve.saveChanges(...e)),disabled:ve.saving,class:"btn-primary"},[ve.saving?((0,o.uX)(),(0,o.CE)("svg",m,a[20]||(a[20]=[(0,o.Lk)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),(0,o.Lk)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)]))):(0,o.Q3)("",!0),(0,o.eW)(" "+(0,l.v_)(ve.saving?"Saving...":"Save Changes"),1)],8,v)])])])):(0,o.Q3)("",!0),(0,o.Lk)("div",f,[(0,o.Lk)("div",g,[a[32]||(a[32]=(0,o.Lk)("div",{class:"px-6 py-4 border-b border-gray-200"},[(0,o.Lk)("h2",{class:"text-xl font-semibold text-gray-900 flex items-center"},[(0,o.Lk)("span",{class:"mr-2"},"👤"),(0,o.eW)(" Identity ")]),(0,o.Lk)("p",{class:"text-sm text-gray-600 mt-1"},"Personalize your assistants and public profile")],-1)),(0,o.Lk)("div",h,[(0,o.Lk)("div",k,[(0,o.Lk)("div",y,[(0,o.Lk)("div",b,[(0,o.Lk)("div",x,[ve.profile.photo?((0,o.uX)(),(0,o.CE)("img",{key:0,src:ve.profile.photo,alt:ve.profile.name,class:"h-full w-full object-cover"},null,8,L)):((0,o.uX)(),(0,o.CE)("div",w,a[22]||(a[22]=[(0,o.Lk)("svg",{class:"h-12 w-12",fill:"
1currentColor",viewBox:"0 0 24 24"},[(0,o.Lk)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8c0 2.208-1.79 4-3.998 4-2.208 0-3.998-1.792-3.998-4s1.79-4 3.998-4c2.208 0 3.998 1.792 3.998 4z"})],-1)])))]),(0,o.Lk)("button",{onClick:a[2]||(a[2]=(...e)=>ve.triggerFileUpload&&ve.triggerFileUpload(...e)),disabled:ve.uploadingPhoto,class:"absolute -bottom-1 -right-1 h-8 w-8 bg-blue-600 text-white rounded-full flex items-center justify-center hover:bg-blue-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[ve.uploadingPhoto?((0,o.uX)(),(0,o.CE)("svg",P,a[23]||(a[23]=[(0,o.Lk)("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),(0,o.Lk)("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)]))):((0,o.uX)(),(0,o.CE)("svg",A,a[24]||(a[24]=[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"},null,-1)])))],8,C),(0,o.Lk)("input",{ref:"fileInput",type:"file",accept:"image/*",class:"hidden",onChange:a[3]||(a[3]=(...e)=>ve.handleImageUpload&&ve.handleImageUpload(...e))},null,544)]),ve.profile.photo?((0,o.uX)(),(0,o.CE)("button",{key:0,onClick:a[4]||(a[4]=(...e)=>ve.removeProfilePicture&&ve.removeProfilePicture(...e)),class:"mt-2 text-sm text-red-600 hover:text-red-700"}," Remove photo ")):(0,o.Q3)("",!0)]),(0,o.Lk)("div",E,[(0,o.Lk)("div",null,[a[25]||(a[25]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Full Name",-1)),(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":a[5]||(a[5]=e=>ve.profile.name=e),type:"text",class:"form-input w-full",placeholder:"Enter your full name"},null,512),[[s.Jo,ve.profile.name]])]),(0,o.Lk)("div",null,[a[29]||(a[29]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Public Handle",-1)),(0,o.Lk)("div",T,[a[26]||(a[26]=(0,o.Lk)("span",{class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 text-sm"}," @ ",-1)),(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":a[6]||(a[6]=e=>ve.profile.handle=e),type:"text",class:"form-input rounded-l-none flex-1",placeholder:"username",onInput:a[7]||(a[7]=(...e)=>ve.validateHandle&&ve.validateHandle(...e))},null,544),[[s.Jo,ve.profile.handle]])]),ve.handleValidation?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,l.C4)(["mt-1 text-sm",ve.handleValidation.valid?"text-green-600":"text-red-600"])},(0,l.v_)(ve.handleValidation.message),3)):(0,o.Q3)("",!0),ve.profile.handle?((0,o.uX)(),(0,o.CE)("div",U,[a[28]||(a[28]=(0,o.eW)(" Profile URL: ")),(0,o.Lk)("span",z,(0,l.v_)(ve.getProfileUrl()),1),(0,o.Lk)("button",{onClick:a[8]||(a[8]=(...e)=>ve.copyProfileUrl&&ve.copyProfileUrl(...e)),class:"ml-2 text-blue-600 hover:text-blue-700"},a[27]||(a[27]=[(0,o.Lk)("svg",{class:"h-4 w-4 inline",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]))])):(0,o.Q3)("",!0)])])]),(0,o.Lk)("div",null,[a[30]||(a[30]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Tagline",-1)),(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":a[9]||(a[9]=e=>ve.profile.tagline=e),type:"text",class:"form-input w-full",placeholder:"A short description about yourself (optional)",maxlength:"100"},null,512),[[s.Jo,ve.profile.tagline]]),(0,o.Lk)("div",S,(0,l.v_)((null===(ge=ve.profile.tagline)||void 0===ge?void 0:ge.length)||0)+"/100 characters",1)]),(0,o.Lk)("div",null,[a[31]||(a[31]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Bio",-1)),(0,o.bo)((0,o.Lk)("textarea",{"onUpdate:modelValue":a[10]||(a[10]=e=>ve.profile.bio=e),rows:"4",class:"form-textarea w-full",placeholder:"Tell us more about yourself (optional)",maxlength:"500"},null,512),[[s.Jo,ve.profile.bio]]),(0,o.Lk)("div",I,(0,l.v_)((null===(he=ve.profile.bio)||void 0===he?void 0:he.length)||0)+"/500 characters",1)])])]),(0,o.Lk)("div",_,[a[39]||(a[39]=(0,o.Lk)("div",{class:"px-6 py-4 border-b border-gray-200"},[(0,o.Lk)("h2",{class:"text-xl font-semibold text-gray-900 flex items-center"},[(0,o.Lk)("span",{class:"mr-2"},"🌍"),(0,o.eW)(" Preferences ")]),(0,o.Lk)("p",{class:"text-sm text-gray-600 mt-1"},"Settings that affect assistant behavior and platform experience")],-1)),(0,o.Lk)("div",V,[(0,o.Lk)("div",F,[(0,o.Lk)("div",null,[a[34]||(a[34]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Preferred Language",-1)),(0,o.bo)((0,o.Lk)("select",{"onUpdate:modelValue":a[11]||(a[11]=e=>ve.profile.locale=e),class:"form-select w-full"},a[33]||(a[33]=[(0,o.Fv)('<option value="en" data-v-084c4189>English</option><option value="es" data-v-084c4189>Spanish</option><option value="fr" data-v-084c4189>French</option><option value="de" data-v-084c4189>German</option><option value="it" data-v-084c4189>Italian</option><option value="tr" data-v-084c4189>Turkish</option><option value="ar" data-v-084c4189>Arabic</option><option value="ku" data-v-084c4189>Kurdish</option><option value="fa" data-v-084c4189>Farsi</option><option value="pt" data-v-084c4189>Portuguese</option><option value="ja" data-v-084c4189>Japanese</option><option value="ko" data-v-084c4189>Korean</option><option value="zh" data-v-084c4189>Chinese</option><option value="ru" data-v-084c4189>Russian</option><option value="hi" data-v-084c4189>Hindi</option><option value="bn" data-v-084c4189>Bengali</option><option value="nl" data-v-084c4189>Dutch</option><option value="pl" data-v-084c4189>Polish</option><option value="ro" data-v-084c4189>Romanian</option>',19)]),512),[[s.u1,ve.profile.locale]])]),(0,o.Lk)("div",null,[a[36]||(a[36]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Timezone",-1)),(0,o.bo)((0,o.Lk)("select",{"onUpdate:modelValue":a[12]||(a[12]=e=>ve.profile.timezone=e),class:"form-select w-full"},a[35]||(a[35]=[(0,o.Fv)('<option value="America/Los_Angeles" data-v-084c4189>Pacific Time (PT)</option><option value="America/Denver" data-v-084c4189>Mountain Time (MT)</option><option value="America/Chicago" data-v-084c4189>Central Time (CT)</option>
1<option value="America/New_York" data-v-084c4189>Eastern Time (ET)</option><option value="Europe/London" data-v-084c4189>London (GMT)</option><option value="Europe/Paris" data-v-084c4189>Paris (CET)</option><option value="Europe/Berlin" data-v-084c4189>Berlin (CET)</option><option value="Asia/Tokyo" data-v-084c4189>Tokyo (JST)</option><option value="Asia/Shanghai" data-v-084c4189>Shanghai (CST)</option><option value="Australia/Sydney" data-v-084c4189>Sydney (AEDT)</option>',10)]),512),[[s.u1,ve.profile.timezone]])]),(0,o.Lk)("div",null,[a[38]||(a[38]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Default Assistant Tone",-1)),(0,o.bo)((0,o.Lk)("select",{"onUpdate:modelValue":a[13]||(a[13]=e=>ve.profile.defaultAssistantTone=e),class:"form-select w-full"},a[37]||(a[37]=[(0,o.Fv)('<option value="friendly" data-v-084c4189>Friendly</option><option value="formal" data-v-084c4189>Formal</option><option value="witty" data-v-084c4189>Witty</option><option value="direct" data-v-084c4189>Direct</option><option value="empathetic" data-v-084c4189>Empathetic</option><option value="professional" data-v-084c4189>Professional</option><option value="casual" data-v-084c4189>Casual</option>',7)]),512),[[s.u1,ve.profile.defaultAssistantTone]])])])])]),(0,o.Lk)("div",N,[a[45]||(a[45]=(0,o.Lk)("div",{class:"px-6 py-4 border-b border-gray-200"},[(0,o.Lk)("h2",{class:"text-xl font-semibold text-gray-900 flex items-center"},[(0,o.Lk)("span",{class:"mr-2"},"🔐"),(0,o.eW)(" Visibility & Sharing ")]),(0,o.Lk)("p",{class:"text-sm text-gray-600 mt-1"},"Control how you and your assistants appear publicly")],-1)),(0,o.Lk)("div",M,[(0,o.Lk)("div",G,[a[40]||(a[40]=(0,o.Lk)("div",null,[(0,o.Lk)("h3",{class:"text-sm font-medium text-gray-900"},"Public Profile"),(0,o.Lk)("p",{class:"text-sm text-gray-500"},"Allow others to view your public profile")],-1)),(0,o.Lk)("button",{onClick:a[14]||(a[14]=e=>ve.profile.isProfilePublic=!ve.profile.isProfilePublic),class:(0,l.C4)(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",ve.profile.isProfilePublic?"bg-blue-600":"bg-gray-200"])},[(0,o.Lk)("span",{class:(0,l.C4)(["inline-block h-4 w-4 transform rounded-full bg-white transition-transform",ve.profile.isProfilePublic?"translate-x-6":"translate-x-1"])},null,2)],2)]),(0,o.Lk)("div",O,[a[41]||(a[41]=(0,o.Lk)("div",null,[(0,o.Lk)("h3",{class:"text-sm font-medium text-gray-900"},"Assistant Attribution"),(0,o.Lk)("p",{class:"text-sm text-gray-500"},"Show your name and avatar on public assistants")],-1)),(0,o.Lk)("button",{onClick:a[15]||(a[15]=e=>ve.profile.showNameOnAssistants=!ve.profile.showNameOnAssistants),class:(0,l.C4)(["relative inline-flex h-6 w-11 items-center rounded-full transition-colors",ve.profile.showNameOnAssistants?"bg-blue-600":"bg-gray-200"])},[(0,o.Lk)("span",{class:(0,l.C4)(["inline-block h-4 w-4 transform rounded-full bg-white transition-transform",ve.profile.showNameOnAssistants?"translate-x-6":"translate-x-1"])},null,2)],2)]),ve.profile.isProfilePublic&&ve.profile.handle?((0,o.uX)(),(0,o.CE)("div",X,[(0,o.Lk)("div",j,[(0,o.Lk)("div",null,[a[42]||(a[42]=(0,o.Lk)("h4",{class:"text-sm font-medium text-gray-900"},"Public Profile Link",-1)),(0,o.Lk)("p",H,(0,l.v_)(ve.getProfileUrl()),1)]),(0,o.Lk)("div",R,[(0,o.Lk)("button",{onClick:a[16]||(a[16]=(...e)=>ve.copyProfileUrl&&ve.copyProfileUrl(...e)),class:"btn-secondary text-sm"},a[43]||(a[43]=[(0,o.Lk)("svg",{class:"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1),(0,o.eW)(" Copy ")])),(0,o.Lk)("a",{href:ve.getProfileUrl(),target:"_blank",class:"btn-secondary text-sm"},a[44]||(a[44]=[(0,o.Lk)("svg",{class:"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1),(0,o.eW)(" View ")]),8,B)])])])):(0,o.Q3)("",!0)])]),(0,o.Lk)("div",J,[a[49]||(a[49]=(0,o.Lk)("div",{class:"px-6 py-4 border-b border-gray-200"},[(0,o.Lk)("h2",{class:"text-xl font-semibold text-gray-900 flex items-center"},[(0,o.Lk)("span",{class:"mr-2"},"🏷"),(0,o.eW)(" Interests & Industry ")]),(0,o.Lk)("p",{class:"text-sm text-gray-600 mt-1"},"Help us personalize your experience and recommendations")],-1)),(0,o.Lk)("div",D,[(0,o.Lk)("div",null,[a[47]||(a[47]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Primary Industry",-1)),(0,o.bo)((0,o.Lk)("select",{"onUpdate:modelValue":a[17]||(a[17]=e=>ve.profile.primaryIndustry=e),class:"form-select w-full"},a[46]||(a[46]=[(0,o.Fv)('<option value="" data-v-084c4189>Select your industry</option><option value="ecommerce" data-v-084c4189>E-commerce</option><option value="saas" data-v-084c4189>SaaS</option><option value="education" data-v-084c4189>Education</option><option value="healthcare" data-v-084c4189>Healthcare</option><option value="finance" data-v-084c4189>Finance</option><option value="marketing" data-v-084c4189>Marketing</option><option value="consulting" data-v-084c4189>Consulting</option><option value="real-estate" data-v-084c4189>Real Estate</option><option value="technology" data-v-084c4189>Technology</option><option value="other" data-v-084c4189>Other</option>',11)]),512),[[s.u1,ve.profile.primaryIndustry]])]),(0,o.Lk)("div",null,[a[48]||(a[48]=(0,o.Lk)("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Your Goals",-1)),(0,o.Lk)("div",W,[(0,o.Lk)("div",K,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(ve.availableGoals,(e=>{var a;return(0,o.uX)(),(0,o.CE)("button",{key:e.value,onClick:a=>ve.toggleGoal(e.value),class:(0,l.C4)(["px-3 py-1 rounded-full text-sm font-medium transition-colors",null!==(a=ve.profile.userGoals)&&void 0!==a&&a.includes(e.value)?"bg-blue-100 text-blue-800 border border-blue-200":"bg-gray-100 text-gray-700 border border-gray-200 hover:bg-gray-200"])},(0,l.v_)(e.label),11,Q)})),128))])])])])]),(0,o.Lk)("div",$,[a[52]||(a[52]=(0,o.Fv)('<div class="px-6 py-4 border-b border-gray-200" data-v-084c4189><h2 class="text-xl font-semibold text-gray-900 flex items-center" data-v-084c4189><span class="mr-2" data-v-084c4189>🔑</span>
1 Linked Accounts </h2><p class="text-sm text-gray-600 mt-1" data-v-084c4189> Manage your connected OAuth accounts. <span class="text-amber-600 font-medium" data-v-084c4189>Note:</span> To disconnect your only authentication method, please set a password first. </p></div>',1)),(0,o.Lk)("div",Y,[ve.linkedAccounts.length>0?((0,o.uX)(),(0,o.CE)("div",Z,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(ve.linkedAccounts,(e=>((0,o.uX)(),(0,o.CE)("div",{key:e.provider,class:"flex items-center justify-between p-4 border border-gray-200 rounded-lg"},[(0,o.Lk)("div",q,[(0,o.Lk)("div",ee,[ve.getProviderIcon(e.provider)?((0,o.uX)(),(0,o.CE)("img",{key:0,src:ve.getProviderIcon(e.provider),alt:e.provider,class:"h-6 w-6"},null,8,ae)):((0,o.uX)(),(0,o.CE)("span",te,(0,l.v_)(e.provider.charAt(0).toUpperCase()),1))]),(0,o.Lk)("div",null,[(0,o.Lk)("h3",oe,(0,l.v_)(e.provider),1),(0,o.Lk)("p",le,(0,l.v_)(e.email),1)])]),(0,o.Lk)("div",se,[a[50]||(a[50]=(0,o.Lk)("span",{class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800"}," Connected ",-1)),(0,o.Lk)("button",{onClick:a=>ve.disconnectAccount(e.provider),class:"text-red-600 hover:text-red-700 text-sm"}," Disconnect ",8,ie)])])))),128))])):((0,o.uX)(),(0,o.CE)("div",ne,a[51]||(a[51]=[(0,o.Lk)("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[(0,o.Lk)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})],-1),(0,o.Lk)("h3",{class:"mt-2 text-sm font-medium text-gray-900"},"No linked accounts",-1),(0,o.Lk)("p",{class:"mt-1 text-sm text-gray-500"},"Connect your accounts for easier login and enhanced features.",-1)])))])]),ve.showAdvancedSection?((0,o.uX)(),(0,o.CE)("div",re,[a[55]||(a[55]=(0,o.Lk)("div",{class:"px-6 py-4 border-b border-gray-200"},[(0,o.Lk)("h2",{class:"text-xl font-semibold text-gray-900 flex items-center"},[(0,o.Lk)("span",{class:"mr-2"},"📝"),(0,o.eW)(" Profile Metadata ")]),(0,o.Lk)("p",{class:"text-sm text-gray-600 mt-1"},"Technical information about your profile")],-1)),(0,o.Lk)("div",ce,[(0,o.Lk)("dl",de,[(0,o.Lk)("div",null,[a[53]||(a[53]=(0,o.Lk)("dt",{class:"text-sm font-medium text-gray-500"},"Last Updated",-1)),(0,o.Lk)("dd",ue,(0,l.v_)(ve.formatDate(null===(ke=ve.profile.profileMetadata)||void 0===ke?void 0:ke.lastUpdated)||"Never"),1)]),(0,o.Lk)("div",null,[a[54]||(a[54]=(0,o.Lk)("dt",{class:"text-sm font-medium text-gray-500"},"Profile Version",-1)),(0,o.Lk)("dd",pe,(0,l.v_)(ve.profile.userPersonalityVersion||"v1"),1)])])])])):(0,o.Q3)("",!0)])])])}var me=t(144),fe=t(6892),ge=t(1387),he=t(4036),ke=t(2022),ye={name:"Profile",setup(){const e=(0,fe.Pj)(),a=(0,ge.rd)(),t=(0,o.WQ)("showToast"),l=(0,me.KR)({name:"",email:"",photo:"",handle:"",tagline:"",bio:"",locale:"en",timezone:"America/Los_Angeles",defaultAssistantTone:"friendly",defaultAssistantType:"assistant",isProfilePublic:!1,showNameOnAssistants:!1,primaryIndustry:"",userGoals:[],profileMetadata:{},userPersonalityVersion:"v1"}),s=(0,me.KR)({}),i=(0,me.KR)(!1),n=(0,me.KR)(!1),r=(0,me.KR)(null),c=(0,me.KR)([]),d=(0,me.KR)(!1),u=(0,me.KR)(null),p=[{value:"sell-more",label:"Sell More"},{value:"automate-support",label:"Automate Support"},{value:"grow-audience",label:"Grow Audience"},{value:"improve-efficiency",label:"Improve Efficiency"},{value:"enhance-customer-experience",label:"Enhance Customer Experience"},{value:"generate-leads",label:"Generate Leads"},{value:"create-content",label:"Create Content"},{value:"analyze-data",label:"Analyze Data"}],v=(0,o.EW)((()=>JSON.stringify(l.value)!==JSON.stringify(s.value))),m=async()=>{try{const t=e.state.auth.user;if(!t)return void a.push("/login");const o=await he.A.getProfile();l.value={name:o.name||"",email:o.email||"",photo:o.photo||"",handle:o.handle||"",tagline:o.tagline||"",bio:o.bio||"",locale:o.locale||"en",timezone:o.timezone||"America/Los_Angeles",defaultAssistantTone:o.defaultAssistantTone||"friendly",isProfilePublic:o.isProfilePublic||!1,showNameOnAssistants:o.showNameOnAssistants||!1,primaryIndustry:o.primaryIndustry||"",userGoals:o.userGoals||[]},s.value=JSON.parse(JSON.stringify(l.value)),await f()}catch(o){t("Failed to load profile data","error")}},f=async()=>{try{const e=await ke.A.getLinkedProviders();c.value=e.providers||[]}catch(e){c.value=[]}},g=async()=>{try{i.value=!0;const a={name:l.value.name,photo:l.value.photo,handle:l.value.handle,tagline:l.value.tagline,bio:l.value.bio,locale:l.value.locale,timezone:l.value.timezone,defaultAssistantTone:l.value.defaultAssistantTone,isProfilePublic:l.value.isProfilePublic,showNameOnAssistants:l.value.showNameOnAssistants,primaryIndustry:l.value.primaryIndustry,userGoals:l.value.userGoals},o=await he.A.updateProfile(a);await e.dispatch("auth/updateUser",o),s.value=JSON.parse(JSON.stringify(l.value)),t("Profile updated successfully","success")}catch(a){t("Failed to update profile","error")}finally{i.value=!1}},h=()=>{l.value=JSON.parse(JSON.stringify(s.value))},k=()=>{const e=l.value.handle;if(!e)return void(r.value=null);const a=/^[a-zA-Z0-9_-]+$/.test(e)&&e.length>=3&&e.length<=30;r.value=a?{valid:!0,message:"Handle is available"}:{valid:!1,message:"Handle must be 3-30 characters and contain only letters, numbers, hyphens, and underscores"}},y=()=>{const e=window.location.origin;return`${e}/u/${l.value.handle}`},b=async()=>{try{await navigator.clipboard.writeText(y()),t("Profile URL copied to clipboard","success")}catch(e){t("Failed to copy URL","error")}},x=()=>{var e;null===(e=u.value)||void 0===e||e.click()},L=async a=>{const o=a.target.files[0];if(o)try{var s;n.value=!0;const a=await he.A.uploadProfilePicture(o);l.value.photo=a.photo,await e.dispatch("auth/updateUser",{user:{...null===(s=e.state.auth.user)||void 0===s?void 0:s.user,photo:a.photo}}),t("Profile photo uploaded successfully","success")}catch(i){t("Failed to upload image","error")}finally{n.value=!1}},w=async()=>{try{var a;await he.A.removeProfilePicture(),l.value.photo="",await e.dispatch("auth/updateUser",{user:{...null===(a=e.state.auth.user)||void 0===a?void 0:a.user,photo:""}}),t("Profile photo removed","success")}catch(o){t("Failed to remove profile photo","error")}},C=e=>{l.value.userGoals||(l.value.userGoals=[]);const a=l.value.userGoals.indexOf(e);a>-1?l.value.userGoals.splice(a,1):l.value.userGoals.push(e)},P=async e=>{try{await ke.A.unlinkProvider(e),await f(),t(`${e} account disconnected successfully`,"success"),setTimeout((()=>{t("Remember to set a password in your account settings to secure your account","
1info",8e3)}),2e3)}catch(o){var a;400===(null===(a=o.response)||void 0===a?void 0:a.status)?t("Cannot disconnect your only authentication method. Please set a password first in your account settings.","warning",8e3):t("Failed to disconnect account","error")}},A=e=>{const a={google:"/icons/google.svg",apple:"/icons/apple.svg",microsoft:"/icons/microsoft.svg",linkedin:"/icons/linkedin.svg",facebook:"/icons/facebook.svg"};return a[e]||null},E=e=>e?new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"";return(0,o.wB)((()=>l.value.handle),k),(0,o.sV)((()=>{m()})),{profile:l,saving:i,uploadingPhoto:n,handleValidation:r,linkedAccounts:c,showAdvancedSection:d,availableGoals:p,hasUnsavedChanges:v,fileInput:u,saveChanges:g,discardChanges:h,validateHandle:k,getProfileUrl:y,copyProfileUrl:b,triggerFileUpload:x,handleImageUpload:L,removeProfilePicture:w,toggleGoal:C,disconnectAccount:P,getProviderIcon:A,formatDate:E}}},be=t(1241);const xe=(0,be.A)(ye,[["render",ve],["__scopeId","data-v-084c4189"]]);var Le=xe}}]);

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.