PageSourceSearch

https://www.godlike.gg/build/assets/Loyalty-DyxCFpLg.js

js godlike.gg collected 2026-10-07 03:06:39 UTC 2,834 bytes, 1 lines download raw bytes

1import{o as r,c as l,a as m,u as t,h,j as b,b as n,t as e,l as d,e as c,F as u,d as g,i as f,q as p,n as x}from"./app-eHacUajv.js";import{S as k}from"./ShopLayout-DFQQOB-m.js";import v from"./AccountNav-1iHa5Q-z.js";import{u as w}from"./i18n-DiJuqdZO.js";import"./consent-DRHcYphK.js";import"./FlashMessages-CUs57ZZn.js";import"./wfSearch-BsAdOZ3O.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const j={class:"text-2xl font-bold mb-4"},N={class:"bg-white border border-gray-200 rounded-lg p-5 mb-4"},A={class:"font-semibold mb-1"},L={class:"text-3xl font-bold"},V={key:0,class:"text-base font-medium text-gray-400"},$={key:0,class:"text-sm text-amber-700 mt-2"},B={key:0,class:"mb-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800"},D={class:"bg-white border border-gray-200 rounded-lg p-5"},O={class:"font-semibold mb-4"},S={key:0,class:"text-sm text-gray-400"},C={key:1,class:"divide-y divide-gray-100 text-sm"},E={class:"text-gray-700"},F={class:"text-xs text-gray-400"},P={__name:"Loyalty",props:{store:Object,categories:Array,customer:Object,loyalty:Object,expiring:Object,transactions:Array},setup(a){const o=w();function y(i){return i?new Date(i).toLocaleDateString():""}function _(i){return o(`loyalty_reason_${i.reason}`)}return(i,T)=>(r(),l(u,null,[m(t(h),{title:`${t(o)("loyalty_title")} - ${a.store.name}`},null,8,["title"]),m(k,{store:a.store,categories:a.categories},{default:b(()=>[n("h1",j,e(t(o)("my_account")),1),m(v),n("section",N,[n("h2",A,e(t(o)("loyalty_title")),1),n("p",L,[d(e(t(o).n("loyalty_points_count",a.loyalty?.balance??0))+" ",1),a.loyalty?.value?.amount?(r(),l("span",V,e(t(o)("loyalty_balance_worth",{amount:a.loyalty.value.formatted})),1)):c("",!0)]),a.customer.isEmailVerified?c("",!0):(r(),l("p",$,e(t(o)("loyalty_verify_hint")),1))]),a.expiring?(r(),l("div",B,e(t(o)("loyalty_expiring_notice",{points:t(o).n("loyalty_points_count",a.expiring.points),date:y(a.expiring.expiresAt)})),1)):c("",!0),n("section",D,[n("h2",O,e(t(o)("loyalty_history")),1),a.transactions.length?(r(),l("ul",C,[(r(!0),l(u,null,g(a.transactions,s=>(r(),l("li",{key:s.id,class:"flex items-center justify-between gap-3 py-2.5"},[n("div",null,[n("span",E,e(_(s)),1),s.orderNumber?(r(),f(t(p),{key:0,href:`/ucet/objednavky/${s.orderNumber}`,class:"text-amber-600 hover:underline ml-1"},{default:b(()=>[d(e(s.orderNumber),1)]),_:2},1032,["href"])):c("",!0),n("p",F,[d(e(y(s.createdAt))+" ",1),s.expiresAt?(r(),l(u,{key:0},[d(" · "+e(t(o)("loyalty_valid_until",{date:y(s.expiresAt)})),1)],64)):c("",!0)])]),n("span",{class:x(["whitespace-nowrap font-semibold",s.points>0?"text-green-600":s.points<0?"text-gray-500":"text-gray-400"])},e(s.points>0?"+":"")+e(s.points),3)]))),128))])):(r(),l("p",S,e(t(o)("loyalty_none")),1))])]),_:1},8,["store","categories"])],64))}};export{P 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.