PageSourceSearch

https://www.gorewards.com.ph/_nuxt/F53vqvfI.js

js gorewards.com.ph collected 2026-10-01 13:00:45 UTC 6,799 bytes, 1 lines download raw bytes

1import{_ as Q}from"./CaUILrCq.js";import{d as W,C as X,u as Y,w as Z,D as oo,r as m,i as _,E as eo,G as to,j as so,H as no,I as ro,c as i,o as l,n as ao,k as C,s as lo,f as t,q as io,v as c,F as h,z as k,B as N,t as U,l as co,p as uo,J as V,K as po,_ as mo}from"#entry";import{u as _o}from"./isXlEGx6.js";const vo={class:"promos"},go={class:"modal-content"},yo=["src"],fo={class:"popup-container"},bo={class:"header text-xl font-semibold mb-2"},wo={key:0,class:"short-description"},Co={class:"mb-4"},ho={class:"btn-group"},ko=["onClick"],Io={class:"ui dropdown button"},Ao={class:"menu"},To={class:"ui four column full-width doubling stackable grid","data-promo-id":"promoSection"},xo=["onClick"],So={class:"image"},Do=["src"],Po={class:"content"},$o={class:"header"},Eo={class:"extra content"},Lo={key:0,class:"left floated"},Mo=["onClick"],No={class:"pagination-btn"},Uo=["onClick"],I=8,Vo=W({__name:"index",async setup(Oo){let v,A;const{proxy:O}=X({scriptInput:{src:"/_scripts/assets/b11050d170b3ad6a.js"}}),{$analytics:T}=Y(),{getContentfulPromos:B}=_o(),{addElipsis:H}=uo(),{items:x,includes:j}=([v,A]=Z(()=>B()),v=await v,A(),v);oo({title:()=>"Promos | Go Rewards",ogTitle:()=>"Promos | Go Rewards"});const S=m(""),f=m(1),g=m("All"),u=m("Newest"),F=_(()=>{let e=[];return x&&(e=x.map(o=>({...o.fields,entryId:o.sys.id,createdAt:o.sys.createdAt,updatedAt:o.sys.updatedAt})).map(o=>{const a=j.Asset.find(n=>n.sys.id===o.promo_image_preview?.sys?.id)?.fields.file.url;return{entryId:o.entryId,promoId:o.promo_id,promoTitle:o.promo_title,promoSubTitle:o.promo_highlight,promoHeroImageUrl:`https:${a}`,promoPopUpDescription:o.promo_description,promoMechanics:o.promo_mechanics,promoCategory:o.promo_category??[],buttonLabel:o.promo_modal_cta,buttonAction:o.promo_modal_cta_url,createdAt:o.createdAt,updatedAt:o.updatedAt,featured:o.featured_promo,promoStartDate:o.promo_start_date,promoEndDate:o.promo_end_date}})),e});async function G(e){e.buttonAction?(await d("element_click",{section_name:"promo_detail",element_name:e.buttonLabel,entry_id:e.entryId,promo_id:e.promoId,promo_name:e.promoTitle,destination_url:e.buttonAction}),V(e.buttonAction,{open:{target:"_blank"},external:!0})):(await d("element_click",{section_name:"promo_detail",element_name:"join_free_to_claim",entry_id:e.entryId,promo_id:e.promoId,promo_name:e.promoTitle,source_section:"promo_detail"}),V("/promos/"+e.entryId))}async function D(e){await d("modal_close",{modal_name:"promo_detail",entry_id:e.entryId,promo_id:e.promoId,close_method:"close_method"}),p.value=!1}async function d(e,o){T&&po(T,e,o),O.dataLayer.push({event:e,...o})}eo(u,async e=>{await d("promo_sort_select",{sort_option:e,section_name:"promos"})});const b=_(()=>{let e=[...F.value];return e=e.filter(o=>{const a=g.value==="All"||o.promoCategory.includes(g.value),n=S.value.trim()===""||o.promoTitle.toLowerCase().includes(S.value.toLowerCase().trim());return a&&n}),e.sort((o,a)=>{if(u.value==="Newest"||u.value==="Oldest"){const n=new Date(o.updatedAt).getTime()-new Date(a.updatedAt).getTime();return u.value==="Newest"?-n:n}else return new Date(o.promoEndDate).getTime()-new Date(a.promoEndDate).getTime()})}),z=_(()=>Math.ceil(b.value.length/I)),P=m([]),p=m(!1),r=to({entryId:"",promoId:"",promoTitle:"",promoSubTitle:"",promoHeroImageUrl:"",promoPopUpDescription:"",promoMechanics:[],promoCategory:[],buttonLabel:"",buttonAction:""}),q=_(()=>{const e=(f.value-1)*I,o=e+I;return b.value.slice(e,o)}),J=_(()=>Array.from({length:z.value},(e,o)=>o+1)),R=["All",...new Set(b.value.flatMap(e=>e.promoCategory))];P.value=R;async function K(e){await d("promo_filter_select",{filter_name:"category",filter_value:e,section_name:"promos"}),g.value=e}async function E(e){await d("select_promotion",{entry_id:e.entryId,promo_id:e.promoId,promo_title:e.promoTitle,promo_category:e.promoCategory,creative_name:"promo_listing"}),Object.assign(r,e),p.value=!0,await d("view_promotion",{entry_id:e.entryId,promotion_id:e.promoId,promotion_name:e.promoTitle,promotion_category:e.promoCategory})}let w=null;const L=new Set;return so(()=>{$(".ui.dropdown").dropdown(),w=new IntersectionObserver(o=>{o.forEach(async a=>{if(!a.isIntersecting)return;const n=a.target.getAttribute("data-promo-id");!n||L.has(n)||(L.add(n),await d("section_view",{section_name:"promo_listing"}))})},{threshold:.5}),document.querySelectorAll(".promo-carousel .ui.card").forEach(o=>{w?.observe(o)})}),no(()=>{w?.disconnect()}),(e,o)=>{const a=ro("VueFinalModal"),n=Q;return l(),i("div",vo,[p.value?(l(),ao(a,{key:0,modelValue:p.value,"onUpdate:modelValue":o[3]||(o[3]=s=>p.value=s),id:"popupPromo",name:"popup-promo",onClick:o[4]||(o[4]=s=>p.value=!1),classes:"flex justify-center items-center modal-container animated fadeIn","content-class":"reset-password modal
1-wrapper bg-white rounded-lg shadow-lg p-6"},{default:io(()=>[t("div",go,[t("button",{class:"circular ui icon button close-float",onClick:o[0]||(o[0]=s=>D(r))},[...o[8]||(o[8]=[t("i",{class:"icon close"},null,-1)])]),t("img",{src:r.promoHeroImageUrl},null,8,yo),t("div",fo,[t("div",bo,c(r.promoTitle),1),r.promoSubTitle?(l(),i("div",wo,c(r.promoSubTitle),1)):C("",!0),t("p",Co,c(r.promoPopUpDescription),1),t("button",{class:"ui button open-link-btn",onClick:o[1]||(o[1]=s=>G(r))},c(r.buttonLabel?r.buttonLabel:"Join Free to Claim"),1),t("button",{class:"ui black basic button close-btn",onClick:o[2]||(o[2]=s=>D(r))},"Close")])])]),_:1},8,["modelValue"])):C("",!0),lo(n),o[12]||(o[12]=t("div",{class:"header-container"},[t("div",{class:"title"},"GO Discover Deals"),t("div",{class:"subtitle"},"Member-exclusive value savers and rewards.")],-1)),t("div",ho,[(l(!0),i(h,null,k(P.value,(s,y)=>(l(),i("button",{class:N(["ui button",{selected:g.value===s}]),key:y,onClick:M=>K(s)},c(s),11,ko))),128)),t("div",Io,[o[9]||(o[9]=U(" Sort: ",-1)),o[10]||(o[10]=t("div",{class:"text"},"Newest",-1)),t("div",Ao,[t("div",{class:"item",onClick:o[5]||(o[5]=s=>u.value="Newest")},"Newest"),t("div",{class:"item",onClick:o[6]||(o[6]=s=>u.value="Oldest")},"Oldest"),t("div",{class:"item",onClick:o[7]||(o[7]=s=>u.value="Expiring Soon")},"Expiring Soon")])])]),t("div",To,[(l(!0),i(h,null,k(q.value,(s,y)=>(l(),i("div",{class:"column",key:y},[t("div",{class:"ui card",onClick:M=>E(s)},[t("div",So,[t("img",{src:s.promoHeroImageUrl},null,8,Do)]),t("div",Po,[t("a",$o,c(s.promoTitle),1)]),t("div",Eo,[s.promoSubTitle?(l(),i("span",Lo,c(co(H)(s.promoSubTitle)),1)):C("",!0),t("a",{class:"right floated",onClick:M=>E(s)},[...o[11]||(o[11]=[U("View ",-1),t("i",{class:"arrow right icon"},null,-1)])],8,Mo)])],8,xo)]))),128))]),t("div",No,[(l(!0),i(h,null,k(J.value,s=>(l(),i("button",{class:N(["ui button",{active:f.value===s}]),key:s,onClick:y=>f.value=s},c(s),11,Uo))),128))])])}}}),Fo=mo(Vo,[["__scopeId","data-v-8f5a7506"]]);export{Fo 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.