PageSourceSearch

https://profile.astratex.pl/_nuxt/CfwF3Bb3.js

js astratex.pl collected 2026-09-26 11:44:31 UTC 5,147 bytes, 1 lines download raw bytes

1import{E as C,ap as m,a4 as u,ae as $,ah as S,a8 as p,M as B,aj as L,a5 as c,_ as l,a6 as I,ab as j,G as i,Z as z,f as y,a7 as w,u as A,aa as E,g as F}from"./CEPW8sVu.js";import{bB as O,bg as V,be as k,bh as W,b9 as T,b5 as N,bm as U,bl as G,b6 as H}from"./KPt6UUil.js";import{u as Z}from"./5y8wkSoU.js";import{_ as R}from"./BAiQqeIy.js";import"./DLwL7Km4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7f121fef-ff16-442b-bf75-f2b76dabd003",e._sentryDebugIdIdentifier="sentry-dbid-7f121fef-ff16-442b-bf75-f2b76dabd003")}catch{}})();const q=O("text",{state:()=>({dashBenefits:[]}),actions:{async getDashBenefits(){try{this.dashBenefits.length||(this.dashBenefits=await V("/v1/clubs/benefits"))}catch(e){console.error("Error fetching dashboard benefits:",e)}}}}),J=["innerHTML"],K=C({__name:"BenefitsComponent",async setup(e){let t,a;const r=q();[t,a]=m(()=>r.getDashBenefits()),await t,a();const n=y(()=>r.dashBenefits);return(o,f)=>{const b=S;return u(),$(b,{class:"benefit-item__wrapper mb-24",align:"top"},{default:p(()=>[(u(!0),B(z,null,L(i(n),(_,g)=>(u(),$(b,{key:g,align:"top",class:"benefit-item"},{default:p(()=>[c("span",null,[l(b,{tag:"span",align:"middle",justify:"center",class:"benefit-item-icon mr-16"},{default:p(()=>[c("i",{class:I(`atx-icon-${_.title} size-24`)},null,2)]),_:2},1024),f[0]||(f[0]=j("> ",-1))]),c("span",{innerHTML:_.text},null,8,J)]),_:2},1024))),128))]),_:1})}}}),P=Object.assign(k(K,[["__scopeId","data-v-9a218fa6"]]),{__name:"DashboardBenefitsComponent"}),Q={class:"text-underline"},X={class:"text-info"},Y={class:"text-secondary"},tt=C({__name:"ItemComponent",props:{link:{type:String,default:""},icon:{type:String,default:""},title:{type:String,default:""},text:{type:String,default:""},info:{type:String,default:""},badge:{type:Number,default:0}},setup(e){return(t,a)=>{const r=S,n=W;return u(),B("li",null,[l(n,{to:`/${e.link}`,class:I(["dashboard-cards__item",{badge:e.badge>0}]),"data-count":e.badge},{default:p(()=>[l(r,{align:"middle",class:"no-wrap"},{default:p(()=>[c("i",{class:I(["size-40 mr-24",e.icon])},null,2),c("div",null,[c("h3",Q,w(e.title),1),c("p",X,w(e.text),1),c("div",null,[c("p",Y,w(e.info),1)])])]),_:1})]),_:1},8,["to","class","data-count"])])}}}),et=Object.assign(k(tt,[["__scopeId","data-v-4436739e"]]),{__name:"DashboardItemComponent"}),st={class:"dashboard-cards reset-ul"},at=C({__name:"WrapperComponent",async setup(e){let t,a;const r=T(),n=Z(),{t:o}=N(),{$dateMonthLong:f,$creditsWithoutCurrency:b}=A(),_=F(0);[t,a]=m(()=>r.getClientCredits()),await t,a(),[t,a]=m(()=>n.getUserMeasures()),await t,a(),[t,a]=m(()=>n.getUserTerms(!0)),await t,a();const g=y(()=>{const s=r.creditsData.credits===void 0?0:r.creditsData.credits.totalCredits,x=s===0?o("dashboard__cards.text.credits",0):o("dashboard__cards.text.credits",1);return{title:o("dashboard__cards.heading.credits",{value:b(s)}),text:x,badge:0}}),h=y(()=>{if(n.measures===void 0)return{title:o("dashboard__cards.heading.consulting"),text:o("dashboard__cards.text.consulting",2),badge:0};const s=n.measures.latestMeasures,x=n.measures.ownSizes;let d=[];n.terms.length&&(d=n.terms.filter(M=>new Date(M.dateFrom)>new Date));let v=o("dashboard__cards.text.consulting",2);return s&&d.length||!s&&d.length?v=o("dashboard__cards.text.consulting",{date:f(d[0]?.dateFrom??"")},0):s&&s.overBreast>0&&!d.length&&(v=o("dashboard__cards.text.consulting",{measures:`${s.overBreast}/${s.waist}/${s.hips}/${x.bra[0]}`,bra:x.bra[0]},1)),{title:o("dashboard__cards.heading.consulting"),text:v,badge:0}}),D=y(()=>{const s=o("dashboard__cards.text.orders",{count:_.value});return{title:o("dashboard__cards.heading.orders"),text:s,badge:0}});return _.value=([t,a]=m(()=>r.getClientOrders()),t=await t,a(),t),(s,x)=>{const d=et;return u(),B("ul",st,[l(d,{link:"orders",icon:"atx-icon-shopping-bag",title:i(D).title,text:i(D).text,badge:i(D).badge},null,8,["title","text","badge"]),l(d,{link:"credits",icon:"atx-icon-credits",title:i(g).title,text:i(g).text,badge:0},null,8,["title","text"]),("useIsSiteIdAllowed"in s?s.useIsSiteIdAllowed:i(U))(i(G).CZ)?(u(),$(d,{key:0,link:"consulting",icon:"atx-icon-bra",title:i(h).title,text:i(h).text,badge:i(h).badge},null,8,["title","text","badge"])):E("",!0),l(d,{link:"user-settings",icon:"atx-icon-settings",title:s.$t("dashboard__cards.heading.settings"),text:s.$t("dashboard__cards.text.settings"),info:s.$t("dashboard__cards.info.settings"),badge:0},null,8,["title","text","info"])])}}}),nt=Object.assign(k(at,[["__scopeId","data-v-8214f0d4"]]),{__name:"DashboardWrapperComponent"}),ot={class:"mb-32"},_t=C({__name:"index",async setup(e){let t,a;const{t:r}=N();H({title:r("pageTitles.default"),ogTitle:r("pageTitles.default")});const n=T();
1[t,a]=m(()=>n.getClientUser()),await t,a();const o=y(()=>n.user.vocative?`, ${n.user.vocative}.`:".");return(f,b)=>{const _=P,g=nt,h=R;return u(),$(h,null,{default:p(()=>[c("h2",ot,w(`${f.$t("dashboard__cards.heading.greetings")}${i(o)}`),1),l(_),l(g)]),_:1})}}});export{_t 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.