PageSourceSearch

https://idealmarket.net/assets/RewardsPage-YZS8D_NY.js

js idealmarket.net collected 2026-10-07 13:18:20 UTC 13,299 bytes, 1 lines download raw bytes

1import{d as q,j as e,X as ie,Y as B,bq as ae,m as ce,r as N,h as le,S as de,$ as G,c as ue,_ as me,br as he,i as pe,aO as ge,bs as be,al as ve,H as fe,aE as xe,aH as ye,bt as je}from"./index-C6Icb2Tt.js";import{a as we,g as _e}from"./Aside-BmJ7kHM_.js";import{S as Ne}from"./SignInComponent-H5NYf0u8.js";import{B as Pe}from"./BarCode-Ba8JbKE2.js";import"./index-Chjiymov.js";function Se(n){const t=q();return e.jsx("nav",{role:"navigation",className:n.className,"aria-label":n.ariaLabel,children:e.jsx("ul",{className:"nav nav-pills",role:"tablist",children:n.pills.map((s,r)=>s.visible?e.jsx("li",{className:"nav-item pe-1",children:e.jsx("a",{href:"#",role:"tab","aria-selected":s.active,className:s.active?"nav-link active cursor-pointer text-white bg-theme-nav":"nav-link cursor-pointer text-theme-nav",onClick:o=>{o.preventDefault(),t(s.nav)},children:s.title})},`${n.className}_${r}`):null)})})}const Re=120,Te=560,Ie=500;function Ce(n){return n<=1?Te:(n-1)*Re+Ie}function Le(n){return n.reduce((t,s)=>t+(s.ptd??0),0)}function ke({amount:n,name:t,isLast:s}){return e.jsxs("div",{className:`contributions__contributor text-grey ${s?"contributions__contributor--last":""}`,children:["$",n,e.jsx("div",{className:"contributions__contributor-name",children:t})]})}function Ae(){const{getTotal:n,getContributorGroups:t}=ie(),{getFirstRewardsProgram:s}=B(),r=n(),o=t()??[],m=s(),a=Le(o),c=`TOTAL ${m?.rewardsProgram?.name?.toLocaleUpperCase()??""} CONTRIBUTION TO ALL GROUPS`;return e.jsxs("div",{className:"contributions row justify-content-center",style:{minHeight:`${Ce(o.length)}px`},children:[e.jsx("div",{className:"col-md-10",children:e.jsxs("div",{className:"row g-3 contributions__layout",children:[e.jsxs("div",{className:"col-lg-7 contributions__column",children:[e.jsxs("div",{className:"contributions__box contributions__box--fixed",children:[e.jsx("div",{className:"contributions__box-header contributions__box-header--blue"}),e.jsxs("div",{className:"contributions__box-body text-blue",children:["MY CONTRIBUTIONS",e.jsxs("div",{className:"contributions__amount",children:["$",r]})]})]}),e.jsxs("div",{className:"contributions__box contributions__box--fixed",children:[e.jsx("div",{className:"contributions__box-header contributions__box-header--green"}),e.jsxs("div",{className:"contributions__box-body text-green",children:[c,e.jsxs("div",{className:"contributions__amount text-grey",children:["$",a]})]})]})]}),e.jsx("div",{className:"col-lg-5 contributions__column",children:e.jsxs("div",{className:"contributions__box contributions__box--grow",children:[e.jsx("div",{className:"contributions__box-header contributions__box-header--orange"}),e.jsxs("div",{className:"contributions__box-body text-orange",children:[e.jsx("div",{className:"contributions__supporters-header",children:"ALL SUPPORTERS OF MY GROUPS"}),o.map((l,p)=>e.jsx(ke,{amount:l.ptd,name:l.name,isLast:p===o.length-1},`contributor_${l.id??l.name??p}`))]})]})})]})}),e.jsx("div",{className:"col-md-10 text-center contributions__footer",children:e.jsx("a",{href:"https://www.escrip.com/contact",className:"link-theme",target:"_blank",rel:"noopener noreferrer",children:"Need Help?"})})]})}const He="https://youtube-proxy.tech-362.workers.dev";function $e(n){const t=[/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/i,/youtube-nocookie\.com\/embed\/([^"&?\/\s]{11})/i];for(const s of t){const r=n.match(s);if(r&&r[1])return r[1]}return null}function Oe(n){const t=[],s=/<iframe[^>]*src=["']([^"']*(?:youtube\.com|youtu\.be|youtube-nocookie\.com)[^"']*)["'][^>]*>[\s\S]*?<\/iframe>/gi;let r;for(;(r=s.exec(n))!==null;){const o=r[0],m=r[1],a=$e(m);if(a){const h=o.match(/width=["']?(\d+)["'\s>]/i),c=o.match(/height=["']?(\d+)["'\s>]/i),l=h&&parseInt(h[1])>200?h[1]:void 0,p=c?c[1]:void 0;t.push({videoId:a,iframeHtml:o,width:l,height:p})}}return t}const Ee=({videoId:n,proxyBaseUrl:t,width:s,height:r})=>{const o=`${t}?id=${n}`,m={position:"relative",width:"100%",maxWidth:s?`${s}px`:"100%",margin:"0 auto"},a={position:"relative",width:"100%",paddingBottom:s&&r?`${parseInt(r)/parseInt(s)*100}
1%`:"56.25%",backgroundColor:"#000"},h={position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"none"};return e.jsx("div",{style:m,children:e.jsx("div",{style:a,children:e.jsx("iframe",{src:o,style:h,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:"YouTube video player"})})})},Me=({htmlContent:n,className:t,proxyBaseUrl:s=He})=>{const r=ae()&&ce()==="ios",[o,m]=N.useState([]),a=s&&s.startsWith("http");return N.useEffect(()=>{if(!r||!n||!a){m([]);return}const h=Oe(n);if(h.length===0){m([]);return}let c=n;const l=[];let p=0;for(const g of h){const v=c.indexOf(g.iframeHtml);if(v>-1){const f=c.substring(0,v);f.trim()&&l.push(e.jsx("div",{dangerouslySetInnerHTML:{__html:f}},`html-${p}`)),l.push(e.jsx(Ee,{videoId:g.videoId,proxyBaseUrl:s,width:g.width,height:g.height},`video-${p}`)),c=c.substring(v+g.iframeHtml.length),p++}}c.trim()&&l.push(e.jsx("div",{dangerouslySetInnerHTML:{__html:c}},`html-${p}`)),m(l)},[n,r,a,s]),!r||!a||o.length===0?e.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):e.jsx("div",{className:t,children:o})};function Be(){le();let t=new URLSearchParams(window.location.search).get("page");const{isUserLoggedIn:s}=de(),{isLLRewards:r,getFirstRewardsProgram:o,isGeneric:m}=B(),{getRewardsMeta:a}=G(),{getCardNumber:h}=ue(),{getClientUserName:c,getRetailerName:l}=me(),{hasPointSpecials:p,showBarCode:g,hasCommunity:v}=G(),{getGroups:f}=he(),{getActiveAd:k}=pe(),P=q(),d=ge(),W=o(),x=s(),S=r(),y=be(),D=ve();let A="balances";const j=a()?.find(i=>i.key=="default_page");j!=null&&j.value!=null&&j.value!==""&&(A=j.value),(t==null||t=="")&&(t=A);const V=a(),w=h(),Q=c(),H=l(),$=g(),u=p(),[O,R]=N.useState(null);N.useEffect(()=>{if(u==null||u==null||u=="")return;let i=!1;const b=u,_=new Image;return _.onload=()=>{i||R({url:b,status:_.naturalWidth>0?"ok":"missing"})},_.onerror=()=>{i||R({url:b,status:"missing"})},_.src=b,()=>{i=!0}},[u]);const T=v(),I=f().length>0&&f()[0].display_name.toLocaleLowerCase().startsWith("price chopper"),X=k()!==void 0&&k()!=null,z=!I&&(t===void 0||t==null||t=="")||t=="balances",J=t=="specials",K=t===void 0||t==null||t==""||t=="highlights",E=x&&S&&y!=null&&y!=null&&w!=null&&w!=null&&w>0,Z=x&&S&&y!=null&&y!=null,ee=x&&S,M=x,C=u!=null&&u!=null&&u!="",U=C?O?.url==u?O.status:"pending":"missing";let Y=!1;T!=""&&T!=null&&T!=null&&(Y=!0);const te=t===void 0||t==null||t==""||t=="highlights",se=!I&&(t===void 0||t==null||t=="")||t=="balances",ne=[{title:"Highlights",nav:"/rewards?page=highlights",active:te,visible:I},{title:"Points Specials",nav:"/rewards?page=specials",active:t=="specials",visible:C},{title:"Point Balances",nav:"/rewards?page=balances",active:se,visible:!0},{title:"Community",nav:"/rewards?page=contributions",active:t=="contributions",visible:Y},{title:"FAQs",nav:"/rewards?page=faq",active:t=="faq",visible:!0},{title:"Terms & Privacy",nav:"/rewards?page=terms",active:t=="terms",visible:!0}];m()&&P("/digital_coupons");let F="";
1const L=V?.find(i=>i.key=="highlights_template");L!=null&&L.value!=null&&(F=L.value);const re=()=>Z?e.jsx(je,{}):ee?e.jsxs("div",{className:"col-12 mt-4 fw-bold fs-4 text-danger",children:["You're in! Just one more step: connect or create your"," ",d?.name," Rewards account on your ",e.jsx("a",{href:"#",className:"fs-4 text-decoration-none link-theme",onClick:i=>{i.preventDefault(),P("/myaccount")},children:"My Account"})," page."]}):M?e.jsx("div",{className:"col-12 mt-4",children:"PAGE NOT SETUP"}):e.jsx(Ne,{navigateTo:"/rewards"}),oe=()=>{if(z)return e.jsx(e.Fragment,{children:re()});if(J&&C)return U=="pending"?null:U=="ok"?e.jsx("div",{className:"col-12 mt-4",children:e.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",children:e.jsx("img",{src:u,alt:"Points specials",className:"img-fluid rewards-specials-img",onError:()=>R({url:u,status:"missing"})})})}):e.jsx("div",{className:"col-12 mt-4 fs-5",children:"No point specials available to display at this time"});if(t=="contributions")return e.jsx(Ae,{});if(t=="faq"){const i=W?.rewardsProgram?.admin_endpoint;if(i&&H){const b=`${i}/public/Content/ClientThemes/${H}/Images/FAQpf.png`;return e.jsx("div",{className:"col-12 mt-4",children:e.jsx("a",{href:b,target:"_blank",rel:"noopener noreferrer",children:e.jsx("img",{src:b,alt:"Frequently asked questions",className:"img-fluid rewards-faq-img"})})})}return null}return t=="terms"?e.jsxs("div",{className:"rewards_content col-12 mt-4",children:[e.jsx(xe,{title:"Terms & Privacy"}),e.jsx("p",{}),e.jsxs("ol",{children:[e.jsxs("li",{children:["Any person enrolling in the ",d.name," Rewards program or using the rewards card or using this website, constitutes accepting all the terms and conditions stated here."," "]}),e.jsxs("li",{children:[d.name," reserves the right to change reward values or modify the terms and conditions of the ",d.name," Rewards Rewards program at any time."," "]}),e.jsxs("li",{children:["The ",d.name," Rewards program is the property of"," ",d.name," and we reserve the right to terminate the program at any time. A 30-day notice will be given to ",d.name," Rewards cardholders prior to termination."," "]}),e.jsxs("li",{children:[d.name," will always endeavor to provide proper points values for shopping, and will correct any reasonable errors, but can not be responsible for all alleged errors."]}),e.jsxs("li",{children:["Phone number in lieu of card is designed as a backup only."," ",d.name," will endeavor to correct any reasonable errors, but cannot be responsible for phone number(s) errors or duplicate phone numbers on record."]}),e.jsxs("li",{children:[d.name," reserves the right to terminate Rewards accounts that have been inactive for two years."]}),e.jsxs("li",{children:[d.name," cannot be responsible for the actions of employees or associates of businesses or organizations or their behavior as it relates to the Rewards Program."]})]}),e.jsx("p",{}),e.jsx(ye,{title:"Privacy Policy"}),e.jsxs("p",{children:[e.jsx("strong",{children:"Privacy Statement"}),e.jsx("br",{}),"Your Privacy is protected! All of your personal information is completely confidential and will not be shared or sold to anyone by"," ",d.name,", Loyalty Lane Rewards, or any affiliates or employees of either company. Your information will only be used by"," ",d.name," to contact you with communications and special offers. You always have the option to discontinue these communications."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Technology"}),e.jsx("br",{}),"We employ state of the art encryption technology when sending and receiving confidential information. Customer privacy is at the heart of everything we do."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Information Collection"}),e.jsx("br",{}),"We collect information provided by our website users during registration for certain activities such as creating an account, signing up for email announcements and newsletters, making purchases, and when visitors provide their personal contact information when requesting information about products and services. We may periodically send out newsletters or other types of promotional announcements to those who have registered their email addresses with us. No third parties will contact registered users except through advertisements contained in the newsletters sent from us. We do not reveal any personal information that is provided by our website users to any third parties without prior permission. We use every reasonable precaution to keep personal information secure."]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Removal from Database"}),e.jsx("br",{}),"Registered users can be removed from future email announcements at their request. Instructions for removal are contained in Preferences."]})]}):K?e.jsx(Me,{htmlContent:F}):e.jsx("div",{className:"col-12 col-sm-10 col-md-8 col-lg-6 offset-sm-1 offset-md-2 offset-lg-3",children:"You have navigated to a page that does not exist"})};return e.jsxs("div",{className:"row mx-0 mx-lg-5 mt-2 mt-md-5",children:[e.jsxs("div",{className:"col-12 col-lg-3 order-1 order-lg-0",children:[e.jsx(we,{}),X&&e.jsx(_e,{})]}),e.jsx("div",{className:"col-12 col-lg-9 order-0 order-lg-1 loyalty-lane-rewards pb-5 pb-lg-0",children:e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col-12",children:[M&&e.jsx("a",{href:"#",className:"float-end text-decoration-none link-theme",onClick:i=>{i.preventDefault(),P("/myaccount")},children:"Edit Account"}),e.jsx(fe,{title:`Rewards${D?" - TEST SITE":""}`})]}),e.jsx("div",{className:`col-12 text-start ${E&&$?"":"d-none"}`,children:E&&$&&e.jsxs(e.Fragment,{children:[e.jsx(Pe,{card_number:w}),e.jsx("p",{className:"mt-3 mb-0 text-start",children:"Below are your reward balances. You can present the barcode at the register in place of your card"}),e.jsxs("p",{className:"text-start",children:["Good at participating ",Q," locations only"]})]})}),e.jsx("div",{className:"col-12",children:e.jsx(Se,{ariaLabel:"Rewards Page",className:"rewards_nav",pills:ne})}),e.jsx("div",{className:"col-12 mt-3",children:oe()})]})})]})}export{Be 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.