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 n=arguments[t];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[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]="618af0d4-727d-45e4-b134-fa4fb5fce9f6",e._sentryDebugIdIdentifier="sentry-dbid-618af0d4-727d-45e4-b134-fa4fb5fce9f6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[353],{58047:(e,t,n)=>{"use strict";n.d(t,{_I:()=>u,jd:()=>a,rU:()=>o});var i=n(99429),r=n(11604);let s=new i.t(!1),u={subject:void 0,lazyInit(){if(u.subject)return u.subject;{let e=window.localStorage,t=r.Ay.get("questionnaireRedirectionLink",{storage:e})||!1;return u.subject=new i.t(t),u.subject}},update:e=>{let t=u.lazyInit(),n=window.localStorage;r.Ay.set("questionnaireRedirectionLink",e,{storage:n}),t.next(e)},getValue:()=>{let e=u.lazyInit();return null==e?void 0:e.value}},a={update:e=>{s.next(e)},subscribe:e=>s.subscribe(e),getValue:()=>s.value},o={subject:void 0,lazyInit(){if(o.subject)return o.subject;{let e=window.localStorage,t=r.Ay.get("isFromOrder",{storage:e})||!1;return o.subject=new i.t(t),o.subject}},update:e=>{let t=o.lazyInit(),n=window.localStorage;r.Ay.set("isFromOrder",e,{storage:n}),t.next(e)},getValue:()=>{let e=o.lazyInit();return null==e?void 0:e.value}}},66895:e=>{e.exports={mainContainer:"Gifts_mainContainer__eSuY4",giftsWrapper:"Gifts_giftsWrapper__MveGG",productsWrapper:"Gifts_productsWrapper__ttyxw",productColumns:"Gifts_productColumns__Xo3gX",productColumn:"Gifts_productColumn__UjUIV",productInfo:"Gifts_productInfo__41CRL",productDetails:"Gifts_productDetails__B5pul",image:"Gifts_image__6gXeV",customization:"Gifts_customization__tPLBM",characteristics:"Gifts_characteristics__DdFUX"}},72558:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/questionnaire/[...slug]",function(){return n(89375)}])},89375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>h,default:()=>j});var i=n(37876),r=n(14232),s=n(89099),u=n(77328),a=n.n(u);n(40123);var o=n(20653),l=n(50525),c=n(66895),d=n.n(c),_=n(78661),p=n(35102),f=n(54763),b=n(45893),w=n(58047),g=n(40316),m=n(89368);function v(e){let{user:t,touchpoint:n}=e,{api:u,customerId:a,updateCustomerId:o}=(0,_.A)(),[l,c]=(0,r.useState)(!0),[d,v]=(0,r.useState)(),y=(0,s.useRouter)(),h=(0,r.useRef)(!1),{openActionModal:j,close:I}=(0,r.useContext)(g.V),[x,A]=(0,r.useState)(!1),{query:S}=y,V=(0,m.useTranslations)();return(0,r.useEffect)(()=>{(!w.jd.getValue()||(null==t?void 0:t._id))&&(w.jd.getValue()||(null==S?void 0:S.customerId))&&(b.A.setIsVisible(!0),u&&!h.current&&((null==t?void 0:t._id)||(null==S?void 0:S.customerId))&&((null==S?void 0:S.customerId)&&o(null==S?void 0:S.customerId),(async()=>{var e;let i=await (null==u?void 0:u.client.waveEntities.checkWaveEntities({customerId:w.jd.getValue()?null==t?void 0:t._id:null==S?void 0:S.customerId,waveEntityTypes:[f.hn.SURVEY,f.hn.NPS_SURVEY],touchpoint:n}));h.current=!0,i.successful&&(null==(e=i.data)?void 0:e.length)>0?(A(!0),v(i.data[0].id),b.A.setIsVisible(!1)):(b.A.setIsVisible(!1),(null==t?void 0:t._id)?(c(!1),j({closeOnOuterClick:!0,hasCenteredText:!0,title:V("common.questionnaire.wrong_user"),text:V("common.questionnaire.wrong_user_description"),actions:[{btnLabel:V("common.questionnaire.wrong_user_button"),onClick:()=>{I(),w._I.update(""),y.push("/")}}],closeOnOuterClick:!1})):(null==t?void 0:t._id)||(w._I.update(y.asPath),y.push("/login")))})()))},[u,null==t?void 0:t._id,S]),(0,i.jsx)(i.Fragment,{children:d&&x?(0,i.jsx)(p.A,{open:l,setOpen:c,templateId:d,fullScreen:!0,stepperVariant:"tab",touchpoint:n,primaryActionVisibleOnAppointmentSuccess:!0,closeButtonVisibleOnAppointmentSuccess:!0,redirectionUrlOnClose:"https://www.aljazirasupermarkets.com/"}):null})}let y=new(n(5130)).A;var h=!0;function j(e){let{responsiveLogo:t}=e,[n,u]=(0,r.useState)();y.get("token");let{slug:o}=(0,s.useRouter)().query;return(0,r.useEffect)(()=>{let e=l.A.subscribe(e=>{u(e)});return()=>e.unsubscribe()},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a(),{children:[(0,i.jsx)("title",{children:"Al Jazira"}),(0,i.jsx)("meta",{name:"description",content:"App for ".concat("Al Jazira"," 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.jsx)("main",{className:d().mainContainer,children:(0,i.jsx)("div",{className:d().giftsWrapper,children:(0,i.jsx)(v,{user:n,touchpoint:o[0]})})})]})}j.getLayout=function(e){return(0,i.jsx)(o.A,{children:e})}}},e=>{e.O(0,[2968,8200,5102,3562,8922,1286,653,636,6593,8792],()=>e(e.s=72558)),_N_E=e.O()}]); 2//# sourceMappingURL=[...slug]-74ba711e6171185f.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.