PageSourceSearch

https://galeriaecho.online/_nuxt/DqrMKcst.js

js galeriaecho.online collected 2026-10-02 01:06:43 UTC 5,127 bytes, 1 lines download raw bytes

1import J from"./D9o19SyG.js";import{s as Q}from"./DUpiVuPC.js";import{_ as H}from"./DDmHrD2u.js";import{s as X}from"./BjK3ROqX.js";import{_ as Y,a as Z}from"./CHjkJ2fT.js";import{O as ee,x as te,J as oe,e as g,r as C,G as S,z as ae,E as T,B as E,P as K,K as le,f as se,g as ne,c as z,h as a,b as v,w as f,t as w,j as V,m as q,i as A,a as b,k as re,Q as ie,R as D,q as ue,o as d,d as B}from"./DAqtiSCo.js";import{_ as de}from"./eb7snW8m.js";import{A as me}from"./CIpCM5yd.js";import{s as R}from"./C-gfMGFx.js";import{f as F}from"./CB-i4EzB.js";import"./Bz-QRu89.js";import"./DHYDQbPX.js";import"./CHIgUVhi.js";/* empty css        */import"./By4WnbVV.js";/* empty css        *//* empty css        */import"./x_rD_Ya3.js";import"./BZ2bU4Qg.js";import"./B-pI19Ro.js";import"./DIXf3GEW.js";import"./DeAyzbXr.js";import"./CBqAeUGB.js";import"./CWDmZE2D.js";import"./F_McMGc4.js";import"./CEYBIvcx.js";import"./CjR-cMHB.js";import"./DM4BiGfu.js";import"./djD9-OgO.js";import"./DD-8LVvs.js";import"./W90wVcn0.js";import"./NpAFyzKW.js";import"./fNCsqafC.js";const pe={style:{"overflow-y":"scroll"}},ce={key:0,style:{display:"flex","justify-content":"space-between","align-items":"center"}},fe={style:{display:"flex","justify-content":"space-between"}},_e={key:1,style:{"font-size":"1rem",margin:"1rem"}},ge={key:3,style:{"margin-bottom":"3rem"}},be={style:{margin:"1rem"}},Ye={__name:"catalogue",setup(ye){var N;ee();const{member:m}=te(),k=oe(),j=g(()=>k.params.promo),P=C(),L=re(),h=g(()=>S(L.promos,t=>t.id===j.value)),_=C(),u=C();ae(j,(t,e)=>{console.log("load awards in watch",t&&!e),t&&!e&&ie(t).then(n=>{_.value=R(n,[o=>o.rules.promoPoints||o.rules.minPoints])})},{immediate:!0}),k.hash&&k.hash.split("=")[0]==="#award"&&(P.value=((N=k.hash.split("="))==null?void 0:N[1])||null);const I=g(()=>{var n,o,l,p,c,x,y;const t=((n=u.value.rules)==null?void 0:n.promoPoints)||((o=u.value.rules)==null?void 0:o.minPoints)||0,e=((y=(x=(c=(l=m.profile)==null?void 0:l.promos)==null?void 0:c[(p=h.value)==null?void 0:p.id])==null?void 0:x.state)==null?void 0:y.points)||0;return t<=e}),G=g(()=>{var t,e;return((e=(t=h.value)==null?void 0:t.game)==null?void 0:e.showCatalogueFilters)||T(["program"],h.value.type)}),$=g(()=>E(_.value,t=>{var e,n,o;return s.value?s.value.label===r("wszystkie")||s.value.label===r("ulubione")&&((o=(n=(e=m==null?void 0:m.state)==null?void 0:e.likes)==null?void 0:n.awards)==null?void 0:o[t.id])||t.featuredLabel===s.value.label||T(t.categories,s.value.label):!0})),M=g(()=>{var n;if(!_.value)return[];const t={},e={};return K(_.value,o=>{K(o.categories,l=>{t[l]?t[l]++:t[l]=1}),o.featured&&o.featuredLabel&&(e[o.featuredLabel]?e[o.featuredLabel]++:e[o.featuredLabel]=1)}),[{label:r("wszystkie"),count:_.value.length},{label:r("ulubione"),count:(n=E(_.value,o=>{var l,p,c;return!!((c=(p=(l=m==null?void 0:m.state)==null?void 0:l.likes)==null?void 0:p.awards)!=null&&c[o.id])}))==null?void 0:n.length},...R(F(e,(o,l)=>({label:l,count:o}))),...R(F(t,(o,l)=>({label:l,count:o})))]}),s=C(null);le(()=>{L.pageTitle="Katalog nagród"}),se(()=>{L.pageTitle="Katalog nagród",console.log("time to update awards...")});function O(){D(de,{props:{promoId:null}})}function U(){D(me,{props:{award:u.value}})}function W(){var t;((t=s.value)==null?void 0:t.label)!==r("ulubione")?s.value=S(M.value,{label:r("ulubione")}):s.value=null}const{t:r}=ne("promoCatalogue",{en:{wszystkie:"all",ulubione:"favourite","Wybierz nagrodę:":"Choose your award"}});return(t,e)=>{const n=J,o=Q,l=H,p=X,c=Y,x=Z,y=ue;return d(),z("div",pe,[a(G)?(d(),z("div",ce,[v(p,{inset:"",style:{margin:"1rem",width:"100%"}},{default:f(()=>[(d(),V(l,{list:a(M),modelValue:a(s),"onUpdate:modelValue":e[0]||(e[0]=i=>q(s)?s.value=i:null),clearable:!1,field:"label","label-width":"20px",key:a(s),placeholder:"wskaż kategorię"},{label:f(()=>[v(n,{name:"solar:filter-outline",size:"20"})]),icon:f(()=>{var i;return[v(n,{name:"solar:hearts-bold-duotone",size:"24",color:((i=a(s))==null?void 0:i.label)===a(r)("ulubione")?"var(--van-danger-color)":"var(--van-gray-5)",onClick:W},null,8,["color"])]}),item:f(({value:i})=>[b("div",fe,[b("span",null,w(i.label),1),v(o,{round:"",size:"medium",style:{"min-width":"20px",display:"flex","justify-content":"center",padding:"0 5px"}},{default:f(()=>[B(w(i.count),1)]),_:2},1024)])]),_:1},8,["list","modelValue"]))]),_:1})])):(d(),z("p",_e,w(a(r)("Wybierz nagrodę:")),1)),a($)?(d(),V(c,{key:2,awards:a($),selected:a(u),"onUpdate:selected":e[1]||(e[1]=i=>q(u)?u.value=i:null),goto:a(P)},null,8,["awards","selected","goto"])):A("",!0),a(u)?(d(),z("div",ge,[e[2]||(e[2]=b("br",null,null,-1)),v(x,{award:a(u),promo:a(h)},null,8,["award","promo"]),b("div",be,[a(I)?A("",!0):(d(),V(y,{key:0,class:"animate__animated animate__fadeInRight",block:"",round:"",type:"primary",onClick:O},{default:f(()=>[B(w(a(r)("Rejestruj paragony")),1)]),_:1})),a(I)?(d(),V(y,{key:1,class:"animate__animated animate__fadeInLeft",block:"",round:"",type:"success",onClick:U},{default:f(()=>[B(w(a(r)("Odbierz nagrodę")),1)]),_:1})):A("",!0)]),e[3]||(e[3]=b("br",null,null,-1)),e[4]||(e[4]=b("br",null,null,-1))])):A("",!0)])}}};export{Ye 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.