PageSourceSearch

https://fb0f85a6-9dfc-4982-aa42-ecf4674c6f0d.netlify.app/RewardsList-06390dab26029e2133f9.js

js fb0f85a6-9dfc-4982-aa42-ecf4674c6f0d.netlify.app collected 2026-10-03 11:09:33 UTC 8,361 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkx06fb_d671785a_13f2_4fac_9eb0_47d57c004005=self.webpackChunkx06fb_d671785a_13f2_4fac_9eb0_47d57c004005||[]).push([[33],{57897:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var r=n(86819),i=n(86326),a=n(57406),l=n(81518),o=n(20141),s=n(75674),d=n(31309),u=n(55814),c=n(91096),p=n(86329),m=n(60969);const v=e=>{let{loading:t,rewardsItems:n}=e;const{formatMessage:r}=(0,p.A)();return(0,o.Y)(c.A,{"aria-label":"rewards list",emptyStateMessage:r(m.A.emptyState),loading:t,rowCount:(null==n?void 0:n.length)||0,pageSize:8},(0,o.Y)(c.V,{id:"name",header:r(m.A.name)},(e=>{const t=null==n?void 0:n[e];switch(null==t?void 0:t.cypherVersion){case 1:return t.name;case 3:return t.label}return"—"})),(0,o.Y)(c.V,{id:"available",header:r(m.A.available)},(e=>{const t=null==n?void 0:n[e];switch(null==t?void 0:t.cypherVersion){case 1:return t.qtyAvailable;case 3:return t.quantity}return"—"})))};var g=(0,i.memo)(v),A=n(74622),Y=n(54993),b=n(69977),f=n(69057);var y=()=>{var e;return(null===(e=(0,f.A)().loyaltyRewardsPage)||void 0===e?void 0:e.slug)||""},h=n(279),x=n(57604),k=n(49472);var w=n(2500),C=n(6641);var S=()=>{var e;return(null===(e=(0,f.A)().loyaltyMemberProfilePage)||void 0===e?void 0:e.slug)||""},R=n(3479),T=n(61795),q=n(12387),I=n(6082);const O=e=>{let{reward:t}=e;const{formatMessage:n}=(0,p.A)(),r=t.image?`data:image/png;base64, ${t.image}`:void 0,i=t.pointsCost||0;return(0,o.Y)("div",{sx:{position:"relative"}},(0,o.Y)(o.gl,{ratio:1},(0,o.Y)(o._V,{src:r,alt:t.label,sx:{width:"100%",height:"100%",display:"block",objectFit:"contain",borderRadius:"none"}})),(0,o.Y)("div",{sx:{backgroundColor:q.o.PRIMARY,color:q.o.READABLE_ON_PRIMARY,fontSize:3,lineHeight:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:"maximum",width:"50px",height:"50px",position:"absolute",right:"10px",bottom:0}},(0,o.Y)("div",{sx:{fontSize:4,fontWeight:"bold"}},i),(0,o.Y)("div",{sx:{fontSize:3}},n(m.A.pointsShort))))};var _=(0,i.memo)(O);const $=e=>{var t,n,r;let{reward:a,onBack:l,token:d}=e;const c=(0,u.A)(),v=S(),{0:g,1:A}=(0,i.useState)(!1),{0:b,1:f}=(0,i.useState)(void 0),{0:y,1:h}=(0,i.useState)(!1),{formatMessage:x}=(0,p.A)(),{getCypherMessage:k}=(0,I.A)(),O=(0,Y.zy)(),{values:$,setValue:M,isValid:L,resetValues:P}=(0,T.A)({initialValues:{quantity:0,acceptedTerms:!1},validationSchema:T.h.object({quantity:T.h.number().min(1).required(),acceptedTerms:T.h.boolean().oneOf([!0]).required()})}),E=a.outOfStock||!1,V=null===(t=a.modality)||void 0===t?void 0:t.split(/\r\n/);return(0,o.Y)(i.Fragment,null,(0,o.Y)(o.xA,{gap:8},(0,o.Y)(o.xA,{gap:4},(0,o.Y)("div",{onClick:l,sx:{cursor:"pointer"}},(0,o.Y)(o.IE.strong,null,`← ${x(m.A.backToList)}`)),(0,o.Y)(o.xA,{gap:8,columns:"4fr 1fr"},(0,o.Y)("div",null,(0,o.Y)(o.xA,{gap:2},(0,o.Y)(w.A,{level:2},a.label),(0,o.Y)(o.xA,{gap:2},null===(n=a.description)||void 0===n?void 0:n.split(/\r\n/).map(((e,t)=>(0,o.Y)("div",{key:`reward-description-${t}`},e)))))),(0,o.Y)(_,{reward:a}))),(0,o.Y)(o.xA,{gap:4},(0,o.Y)(w.A,{level:3},null==V?void 0:V[0]),(0,o.Y)(o.xA,{gap:2},null==V?void 0:V.slice(1).map(((e,t)=>(0,o.Y)("div",{key:`step-${t}`},e)))),(0,o.Y)(o.xA,{gap:2},null===(r=a.detail)||void 0===r?void 0:r.split(/\r\n/).map(((e,t)=>(0,o.Y)("div",{key:`reward-detail-${t}`},e)))),(0,o.Y)("div",null,(0,o.Y)(o.JU,{sx:{display:"flex",alignItems:"center",gap:1}},(0,o.Y)(o.Sc,{type:"checkbox",checked:$.acceptedTerms,onChange:e=>{M("acceptedTerms",e.target.checked)}}),(0,o.Y)("div",null,x(m.A.acceptTerms))))),(0,o.Y)(o.xA,{gap:"2",columns:"auto 1fr"},(0,o.Y)(o.so,null,(0,o.Y)(o.$n,{sx:{variant:"buttons.primaryOutline",borderRadius:"buttonMedium"},disabled:$.quantity<1,onClick:()=>M("quantity",$.quantity-1)},"-"),(0,o.Y)("div",{sx:{marginLeft:2,marginRight:2,borderBottom:"1px solid",borderColor:q.o.PRIMARY,textAlign:"center"}},(0,o.Y)(w.A,{level:6},x(m.A.quantity)),$.quantity),(0,o.Y)(o.$n,{sx:{variant:"buttons.primaryOutline",borderRadius:"buttonMedium"},disabled:!(null==a||!a.quantity)&&($.quantity>a.quantity-1&&(2===a.storageType||3===a.storageType)),onClick:()=>M("quantity",$.quantity+1)},"+")),E?(0,o.Y)(o.$n,{sx:{variant:"buttons.primary"},disabled:!0},x(m.A.outOfStock)):(0,o.Y)(o.$n,{sx:{variant:"buttons.primary"},onClick:()=>{null!=a&&a.productLabel&&(A(!0),f(null),(0,s.Zx)(c,d,{Quantity:$.quantity,ProductLabel:a.productLabel,siteUrl:O.origin}).then((e=>{var t,n,r,i;(A(!1),0===(null==e?void 0:e.peachCode))?h(!0):null!=e&&null!==(t=e.peachErrorCode)&&void 0!==t&&t.includes("614 - ")?f((0,o.Y)(p.s,Object.assign({},m.A.registerAddress,{values:{link:e=>(0,o.Y)(R.A,{to:`/${v}`},e)}}))):null!=e&&null!==(n=e.peachErrorCode)&&void 0!==n&&n.includes("609 - ")?f(x(m.A.insufficientPoints)):1005===(null==e?void 0:e.peachCode)&&null!=e&&null!==(r=e.peachErrorCode)&&void 0!==r&&null!==(i=r.toLowerCase())&&void 0!==i&&i.includes("insufficient credit")?f(
1x(m.A.insufficientCredit)):f(k({response:e,fallback:m.A.genericError}))})).catch((()=>{A(!1),f(x(m.A.genericError))})))},disabled:!L||!(null!=a&&a.productLabel)||g},x(m.A.confirmRedemption)))),b&&(0,o.Y)("div",{role:"alert",sx:{fontWeight:"bold",marginTop:8,whiteSpace:"pre-line"}},b),(0,o.Y)(C.A,{show:y,onClose:()=>{P(),h(!1)}},(0,o.Y)(o.xA,{gap:2,sx:{padding:8}},(0,o.Y)(w.A,{level:2},x(m.A.confirmRedemptionTitle)),(0,o.Y)(o.IE.p,null,x(m.A.confirmRedemptionDesc,{quantity:$.quantity*(a.pointsCost||0),reward:a.label||""})),(0,o.Y)("div",null,(0,o.Y)(o.$n,{onClick:()=>{P(),h(!1)},sx:{variant:"buttons.primary"}},x(m.A.close))))))};var M=(0,i.memo)($),L=n(95853);const P=e=>{let{reward:t,memberPoints:n,onExchange:r}=e;const{formatMessage:i}=(0,p.A)(),a=t.pointsCost||0,l=t.canMemberRedeem,s=t.outOfStock||!1;return(0,o.Y)(o.xA,{gap:2},(0,o.Y)(_,{reward:t}),(0,o.Y)("div",{sx:{textAlign:"center",lineHeight:"heading"}},(0,o.Y)(L.A,{lines:2},t.label)),(0,o.Y)("div",{sx:{textAlign:"center"}},s?(0,o.Y)(o.$n,{sx:{variant:"buttons.primary"},disabled:!0},i(m.A.outOfStock)):(0,o.Y)(o.$n,{sx:{variant:"buttons.primary"},onClick:r},l?i(m.A.redeem):i(m.A.morePointsNeeded,{points:a-n}))))};var E=(0,i.memo)(P);const V=i.lazy((()=>n.e(723).then(n.bind(n,61856)))),z=e=>{var t;let{rewardsItems:n,loading:a}=e;const{formatMessage:l}=(0,p.A)(),[s]=(0,h.A)(),d=(0,r.A)(),u=y(),c=null===(t=(0,k.W)(s))||void 0===t?void 0:t.amount,{item:v}=(0,x.A)(),g=null==n?void 0:n.find((e=>3===e.cypherVersion&&e.productLabel===v));if(a)return(0,o.Y)(o.so,{sx:{justifyContent:"center"}},(0,o.Y)(o.y$,{size:32,color:"currentColor"}));if(g&&null!=s&&s.token)return(0,o.Y)(M,{reward:g,onBack:()=>{(0,Y.oo)(`/${u}`)},token:s.token});const f=(0,A.A)(n||[]).sort(((e,t)=>(e.pointsCost||1)-(t.pointsCost||1)));return(0,o.Y)(o.xA,{gap:8},(0,o.Y)(i.Suspense,null,(0,o.Y)(V,{memberPoints:c||0,rewardsItems:f})),(0,o.Y)(o.IE.h2,null,l(m.A.rewardsListTitle)),!d||null!=f&&f.length?null:l(m.A.noRewardsInTheater),d?null:l(m.A.selectTheater),null!=f&&f.length?(0,o.Y)(o.xA,{sx:{rowGap:8,columnGap:(0,b.no)({xs:4,md:8}),gridTemplateColumns:(0,b.no)({xs:"1fr 1fr",md:"1fr 1fr 1fr",xxl:"1fr 1fr 1fr 1fr"})}},f.map((e=>3===e.cypherVersion&&void 0!==c?(0,o.Y)(E,{key:null==e?void 0:e.productLabel,reward:e,memberPoints:c,onExchange:()=>{(0,Y.oo)(`/${u}?item=${null==e?void 0:e.productLabel}`)}}):null))):null)};var B=(0,i.memo)(z);const j=e=>{var t,n,c,p;let{display:m}=e;const[v,A]=(0,d.Ay)(),{0:Y,1:b}=(0,i.useState)(!1),{0:f,1:y}=(0,i.useState)(),h=(0,u.A)(),x=(0,l.K)(h.provider),k=(0,a.U)(null==x||null===(t=x.featureFlags)||void 0===t||null===(n=t.widgets)||void 0===n||null===(c=n.REWARDS_LIST)||void 0===c||null===(p=c.extra)||void 0===p?void 0:p.rewardRedemption),w=(0,r.A)(),C=A||Y,S=(0,i.useCallback)(((e,t)=>{var n;let r=[];e&&("listMemberItems"in e?r=e.listMemberItems||[]:"rewards"in e&&(r=e.rewards||[])),y(null===(n=r)||void 0===n?void 0:n.map((e=>({...e,cypherVersion:t}))))}),[]);return(0,i.useEffect)((()=>{if(null!=v&&v.token)switch(b(!0),h.provider){case"CGR":case"BOOST_POS":case"BOOST_POS_WITHOUT_LOYALTY":(0,s.sZ)(h,v.token).then((e=>{S(e,3)})).finally((()=>{b(!1)}));break;case"TAPOS":(0,s.bt)(h,v.token).then((e=>{S(e,1)})).finally((()=>{b(!1)}));break;default:(0,s.er)(h,v.token).then((e=>{S(e,1)})).finally((()=>{b(!1)}))}}),[v,h,w,S]),f||C?k?(0,o.Y)(B,{loading:C,rewardsItems:f,display:m}):(0,o.Y)(g,{loading:C,rewardsItems:f,display:m}):null};var W=(0,i.memo)(j)}}]);

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.