PageSourceSearch

https://aupark-bratislava.sk/_nuxt/BbzA8GTm.js

js aupark-bratislava.sk collected 2026-10-02 18:32:25 UTC 5,058 bytes, 1 lines download raw bytes

1import{d as z,i as j,h as I,r as m,j as C,w as V,G as W,a2 as $,o as h,c as g,a as e,B as l,b as t,E as w,l as v,v as b,n as f,m as u,F,q as H,p as R,k as M,_ as O,y as q,R as B}from"./aJtTF-_E.js";import{u as G}from"./HhaXIgpd.js";import{a as U}from"./De0KOX1m.js";import{u as J}from"./CyV9ZaC8.js";import{_ as K}from"./C3Ze97Ha.js";import{_ as Q}from"./DYncxoGE.js";import"./B1WODrm1.js";import"./B4N5U0OI.js";const X={class:"w-full md:w-[calc(100%-21.25rem)] flex flex-col gap-5 py-4 min-h-[calc(100vh-12rem)]"},Y={class:"text-black font-bold text-2xl"},Z={class:"flex flex-col gap-2 bg-white border border-grayLight2 rounded-3xl"},ee={class:"flex w-full items-center justify-between flex-col lg:flex-row gap-5 p-5 lg:p-12 md:p-10 rounded-t-3xl bg-gray"},te={class:"text-base font-bold text-black max-w-[15.5rem] w-full lg:text-left text-center"},se={class:"lowercase text-primary"},oe={class:"relative flex w-full"},le={class:"w-full max-w-16"},ae={class:"flex flex-col gap-1"},re={class:"text-black font-bold text-sm"},ce={class:"w-full flex flex-col py-5 gap-5 px-6 bg-white"},ne={class:"w-full flex items-center justify-between"},ie={class:"text-black font-bold text-sm"},de={class:"font-semibold text-xs text-secondary"},_e={class:"w-full flex flex-col gap-3"},fe={class:"w-full flex items-center justify-between"},ue={class:"text-base text-black font-bold"},pe={class:"w-full grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3"},xe={class:"flex flex-col items-center justify-center gap-2"},me=e("div",{class:"w-16 h-16 flex items-end rounded-full bg-gray"},[e("img",{class:"w-full max-w-16",src:Q})],-1),he={class:"flex flex-col items-center gap-1 text-center"},ge={class:"text-black font-bold text-sm"},we={class:"text-grayDark font-normal text-s text-center"},ve={class:"text-xs text-green font-medium"},Ce=z({__name:"get-points",setup(be){const{ssrt:o}=j(),y=I(),{getTranslation:E}=j(),k=G(),i=U(),p=m(!1),x=m(!1),d=m(null),S=C(()=>{var a;let s=null;for(let r=0;r<n.value.length;r++)if(n.value[r].purchases>((a=i.userTier)==null?void 0:a.purchases)){s=n.value[r];break}return s}),n=C(()=>{const s=k.tiers.map(a=>{var r;return{title:E(a.translations,"title"),id:a.id,disabled:a.disabled,purchases:a.purchases,active:a.id===((r=i.userTier)==null?void 0:r.id)}});return[...s.filter(a=>a.active),...s.filter(a=>{var r;return!a.active&&a.purchases>((r=i.userTier)==null?void 0:r.purchases)})]}),_=()=>{const s=d.value;s&&s.scrollWidth-s.clientWidth-s.scrollLeft>5?x.value=!0:x.value=!1,s&&s.scrollLeft>5?p.value=!0:p.value=!1},N=()=>{const s=d.value;s==null||s.scrollTo({top:0,left:0,behavior:"smooth"})},P=()=>{const s=d.value;s==null||s.scrollTo({top:0,left:1e3,behavior:"smooth"})};return V(()=>n.value,()=>{M(()=>{_()})}),W(()=>{k.getAllTiers(),window.addEventListener("resize",_)}),$(()=>{window.removeEventListener("resize",_)}),J({title:()=>o("get_points"),description:()=>o("get_points")}),(s,a)=>{var T,L,D;const r=O,A=q;return h(),g("div",X,[e("h1",Y,l(t(o)("get_points")),1),e("div",Z,[e("div",ee,[e("p",te,[w(l(t(o)("make"))+" ",1),e("span",se,l(((T=t(S))==null?void 0:T.purchases)-((L=t(i).userTier)==null?void 0:L.purchases))+" "+l(t(o)("more_transactions")),1),w(" "+l(t(o)("and_upgrade_to"))+" "+l((D=t(S))==null?void 0:D.title)+" "+l(t(o)("rank")),1)]),e("div",oe,[v(e("div",{class:f(["absolute h-[110%] w-14 flex justify-start items-center bg-gradient-to-r from-30% cursor-pointer z-10","from-gray"]),onClick:N},[u(r,{icon:"iconamoon:arrow-left-2",class:"text-primary text-2xl"})],512),[[b,t(p)]]),e("div",{ref_key:"tabsContainer",ref:d,class:"flex [@media(max-width:768px)]:w-full [@media(min-width:768px)]:w-52 items-center flex-1 justify-between gap-8 overflow-scroll hidden-scrollbar",onScroll:_},[(h(!0),g(F,null,H(t(n),c=>v((h(),g("div",{key:c.id,class:"flex items-center gap-4"},[e("div",le,[e("img",{class:f(["min-w-16 w-full rounded-full",[c.active?"border-2 border-primary":""]]),src:K},null,2)]),e("div",ae,[e("p",re,l(c.title),1),e("p",{class:f(["font-semibold text-xs whitespace-nowrap",[c.active?"text-primary":"text-grayDark"]])},l(c.active?t(o)("your_rank"):`${c.purchases} ${t(o)("purchases")}`),3)])])),[[b,!c.disabled]])),128))],544),v(e("div",{class:f(["absolute h-[110%] w-14 flex justify-end items-center bg-gradient-to-l from-30% cursor-pointer","from-gray"]),onClick:P},[u(r,{icon:"iconamoon:arrow-right-2",class:"text-primary text-2xl"})],512),[[b,t(x)]])])]),e("div",ce,[e("div",ne,[e("p",ie,l(t(o)("scan_receipt_&_get_points")),1),u(A,{to:t(y)(t(B).DASHBOARD_RECEIPTS),class:"py-2.5 px-9 rounded-xl border border-primary"},{default:R(()=>[e("p",de,l(t(o)("start")),1)]),_:1},8,["to"])]),e("div",_e,[e("div",fe,[e("h2",ue,l(t(o)("awards")),1),u(A,{to:t(y)(t(B).DASHBOARD_AWARDS),class:"text-secondary text-xs font-semibold"},{default:R(()=>[w(l(t(o)("view_all")),1)]),_:1},8,["to"])]),e("div",pe,[e("div",xe,[me,e("div",he,[e("p",ge,l(t(o)("top_spender")),1),e("p",we,l(t(o)("make_one_purchase_at_the_mall_and_scan_the_receipt")),1)]),e("p",ve,"+10 "+l(t(o)("points")),1)])])])])])])}}});
1export{Ce 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.