1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var i in s)s.hasOwnProperty(i)&&(e[i]=s[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:wave-grocery-web":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="78f3e061-1867-4857-92c6-a052e9d4a6d5",e._sentryDebugIdIdentifier="sentry-dbid-78f3e061-1867-4857-92c6-a052e9d4a6d5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7687],{4332:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/gifts/[...slug]",function(){return s(73300)}])},73300:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>A,default:()=>C});var i=s(37876),n=s(14232),a=s(58103),r=s.n(a),o=s(40123),l=s.n(o),d=s(77328),u=s.n(d),c=s(95150),f=s(44357),p=s(71365),g=s(50525),m=s(97272),h=s(23261),v=s(39512),x=s(23812),y=s(3308),w=s(76307),b=s(44472),_=s(66895),j=s.n(_),N=s(89368),S=s(38965),P=s(89099),T=s(17333),A=!0;function C(e){let{responsiveLogo:t,giftInfo:s,giftDetails:a,giftsConfig:o}
1=e,d=(0,f.A)(850),[c,_]=(0,n.useState)(!1),[A,C]=(0,n.useState)(),[I,E]=(0,n.useState)(null),[D,O]=(0,n.useState)(""),[k,M]=(0,n.useState)(),[B,G]=(0,n.useState)(null),[z,L]=(0,n.useState)(),R=(0,P.useRouter)(),W=(0,T.O)(),[X,K]=(0,n.useState)(0),[q,F]=(0,n.useState)(!1),[H,Y]=(0,n.useState)(void 0),{timeFormat:J}=(0,S.T2)(),Q=(0,N.useTranslations)();(0,n.useEffect)(()=>{let e=g.A.subscribe(e=>{if(l()(e))return void R.replace("/");async function t(){M(await (0,y.q)())}let s=m.f2.subscribe(_);return t(),C(e),()=>{s.unsubscribe()}});return()=>e.unsubscribe()},[]),(0,n.useEffect)(()=>{E({...(0,p.Hf)(s,null==A?void 0:A.totalLoyaltyPoints,Q),...(0,p.Xv)(a)})},[A,s,a]),(0,n.useEffect)(()=>{1===X?F(!0):F(!1)},[X]);let{deliveryOptions:U}=(0,w.A)(k,X);if(!I)return null;let V=[I.image];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u(),{children:[(0,i.jsx)("title",{children:"ÎανÏÏοÏ
λοÏ"}),(0,i.jsx)("meta",{name:"description",content:"App for ".concat("ÎανÏÏοÏ
λοÏ"," by Wave Grocery")}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("link",{rel:"icon",href:t})]}),(0,i.jsxs)("main",{className:j().mainContainer,children:[(0,i.jsx)("div",{className:j().productsWrapper,children:(0,i.jsxs)("div",{className:j().productC
1olumns,children:[(0,i.jsxs)("div",{className:j().productColumn,children:[(0,i.jsx)(h.ProductDetailsImage,{selectedImage:null==V?void 0:V[0],hasArrows:!1,selectedImageIndex:0,selectedList:[],hasOffer:!1,hasIcon:!1,classOption:j().image,isRtl:W}),d?(0,i.jsx)("div",{className:j().productDetails,children:(0,i.jsx)(h.GiftCustomization,{title:I.displayName,giftPoints:I.giftPoints,userPoints:I.userPoints,pointsText:Q("gifts.details.points"),showProgressBar:I.showProgressBar,progress:I.progress,progressInformativeText:I.informativeText,available:I.available,buttonText:Q("gifts.details.redeem"),onButtonClick:m.f2.open,classOption:j().customization})}):null,(0,i.jsx)("div",{className:r()(j().productDetails,j().productDescription),children:(0,i.jsx)(h.GiftDetails,{detailsTitle:Q("gifts.details.title"),detailsText:null==I?void 0:I.description,list:null==I?void 0:I.characteristics,classOption:j().characteristics})})]}),d?null:(0,i.jsx)("div",{className:j().productInfo,children:(0,i.jsx)(h.GiftCustomization,{title:I.displayName,giftPoints:I.giftPoints,userPoints:I.userPoints,pointsText:Q("gifts.details.points"),showProgressBar:I.showProgressBar,progress:I.progress,progressInformativeText:I.informativeText,available:I.available,buttonText:Q("gifts.details.redeem"),onButtonClick:m.f2.open,classOption:j().customization})})]})}),c&&(0,i.jsx)(x.A,{firstName:null==A?void 0:A.firstName,lastName:null==A?void 0:A.lastName,onConfirmRedemption:()=>{let e=U.find(e=>e.index===X);(0,v.j3)(I.id,(null==e?void 0:e.type)||"TAKEAWAY",D,H).then(e=>{L((0,p.Rl)(e,Q,J)),G(!0)})},alertText:null==o?void 0:o.alert_text,onSelectDeliveryOption:e=>K(e),onSelectStore:Y,listAddress:[],onSelectAllStores:()=>{m.f2.close()},deliveryOptions:U,onChangeComment:O,comment:D,onClose:()=>O(""),showStores:q}),(0,i.jsx)(b.A,{showModal:B,setShowModal:G,greeting:Q("gifts.receipt.greeting"),message:Q("gifts.receipt.message"),receiptDetailsList:z})]})]})}C.getLayout=function(e){return(0,i.jsx)(c.A,{children:e})}}},e=>{e.O(0,[2968,8200,3562,8922,1286,5150,2480,636,6593,8792],()=>e(e.s=4332)),_N_E=e.O()}]); 2//# sourceMappingURL=[...slug]-4a66bff64d1b4189.js.map
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.