1import{j as V,r as b,u as F,a as z,c as t,o as j,a1 as G,w as J,J as k,n as d,s as r,H as y,v as i,k as C,l as K,B as U,D as _,P as W,R as Q,U as X,O as Y,q as Z}from"./vue-D47mIxKn.js";import{_ as ee}from"./index-Bp5Q57X0.js";import{O as te,g as se,_ as ae}from"./sequoia-ui-4FY3kbpl.js";import{l as oe,u as ne,q as re,y as le,s as c,A as ie,D as ce,x as ue,d as pe,z as me}from"./sequoia-core-C9opehXT.js";import"./lodash-nRwxe0ET.js";import"./vendor-DAO7f7jf.js";import"./svg-BVh902Jo.js";import"./uuid-ay_OU3Vs.js";import"./sentry-CoC5n2CV.js";const de={class:"main container-1440"},_e={class:"fixed-layout"},ge={class:"column-content"},ve={class:"side-nav column-side"},fe=["innerHTML"],L="userMenuLastItem",he=V({__name:"PersonalPage",props:{themeForced:{}},setup(w){const I=pe(),g=b(!0),P=oe("personal"),u=b(null),l=F(),v=z(),a=ne(),{isAnonymous:x}=re(),{setOnScrollHandler:B}=ie(),{t:s}=le(),E=w,M=t(()=>E.themeForced||a.theme),O=t(()=>a.flags.isSigningOut),R=t(()=>[{name:s("menu_homescreen"),link:"/"}]),f=t(()=>c.personal.personalSettingsSelector(a)),A=t(()=>c.siteConfig.subscriptionShopEnabledSelector(a)),D=t(()=>c.payment.hasActiveSubscriptionsSelector(a)),p=t(()=>{var o,n;const e=[];return(A.value||D.value)&&e.push({title:s("subscriptions"),to:"/personal/subscriptions?t=0",dataPw:"item-subscriptions",gaEvent:`Ðлик по вкладке - ${s("subscriptions")}`}),(o=f.value)!=null&&o.hidePersonalData||e.push({title:s("personal_data"),to:"/personal/data",dataPw:"item-personal-data",gaEvent:`Ðлик по вкладке - ${s("personal_data")}`}),(n=f.value)!=null&&n.hideProfileManagement||e.push({title:s("profiles"),to:"/personal/profiles",dataPw:"item-profiles",gaEvent:`Ðлик по вкладке - ${s("profile_management")}`}),e}),h=t(()=>{const e=localStorage.getItem(L);return p.value.find(n=>n.to===e)&&e?e:p.value.length?p.value[0].to:""}),N=t(()=>c.qs.availableSubscriptionsSelector(a)),T=t(()=>c.qs.shopSubscriptionsSelector(a)),$=t(()=>{var e;return l.name==="personal-subscriptions"&&((e=l.query.t)==null?void 0:e.toString())==="0"&&(N.value.length||T.value.length)}),q=()=>({title:s("profiles_meta_title"),meta:[]}),S=()=>{var o;if(!u.value)return;const e=(o=u.value)==null?void 0:o.getBoundingClientRect();u.value.classList.toggle("sticky",window.innerHeight===e.bottom)};return B(ce,S),j(async()=>{if(x.value)return v.push("/login");l.path.split("/").filter(e=>e).length===1&&h.value&&await v.push(h.value),S();try{await ue.payment.loadCurrentSubscriptions(a,I)}catch(e){P.error("onLoadCurrentSubscriptions",e)}g.value=!1}),G(()=>{q()}),J(()=>l.path,()=>localStorage.setItem(L,l.path)),(e,o)=>{const n=k("router-view"),H=k("router-link");return r(),d(ee,{class:Z(["personal-page",M.value])},{default:y(()=>[i("main",de,[U(te,{crumbs:R.value,title:_(s)("personal_area")},null,8,["crumbs","title"]),i("div",_e,[i("div",ge,[g.value||O.value?(r(),d(se,{key:0,class:"loader"})):(r(),d(n,{key:1}))]),i("div",ve,[(r(!0),C(W,null,Q(p.value,m=>(r(),d(H,{key:m.title,to:m.to,class:"item",onClick:Se=>_(me)({category:"personal_area",action:m.gaEvent})},{default:y(()=>[X(Y(m.title),1)]),_:2},1032,["to","onClick"]))),128))])])]),$.value?(r(),C("div",{key:0,ref_key:"refLegalBlock",ref:u,class:"legal-block sticky"},[i("div",{class:"text body1 font-tertiary",innerHTML:_(s)("sub_shop_disclaimer")},null,8,fe)],512)):K("",!0)]),_:1},8,["class"])}}}),Be=ae(he,[["__scopeId","data-v-bf3de875"]]);export{Be 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.