1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1311],{58992:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order/[location]/account/in-store-cashback",function(){return t(29351)}])},29351:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return N},default:function(){return y}});var r=t(85893),o=t(67294),a=t(11163),c=t(5152),u=t.n(c),l=t(96515),i=t(24366),s=t(21203),d=t(25613),h=t(96098),f=t(61805),v=t(41855),w=t(43765),k=t(92354);let b=u()(()=>t.e(4508).then(t.bind(t,34508)),{loadableGenerated:{webpack:()=>[34508]},ssr:!1});var x=e=>{let{location:n}=e,t=(0,v.Gc)(),{replace:c}=(0,a.useRouter)(),{data:u,isLoading:x,isSuccess:j,isError:_}=(0,k.xs)(),m=!!(null==u?void 0:u.id);return(0,o.useEffect)(()=>{!x&&(j||_)&&!m&&c(w.g.account.overview(n.slug),void 0,{shallow:!0})},[m,_,x,j,n.slug,c]),(0,r.jsxs)("div",{className:"flex-auto",children:[(0,r.jsx)(l.kC,{align:"center",children:(0,r.jsx)(s.e,{title:"Back to account",url:w.g.account.overview(n.slug),hideTitleMobile:!0})}),(0,r.jsx)(l.kC,{className:"items-center justify-between",children:(0,r.jsx)(i.Nb,{as:"h1",weight:"bold",size:20,className:"mt-500 tablet:mt-650 tablet:text-24",children:"In-Store Cashback"})}),(0,r.jsx)(d.d,{when:"mobile"===t,children:(0,r.jsx)(h.iz,{className:"mb-100 mt-400 w-full shrink-0"})}),(0,r.jsx)(d.d,{when:x,children:(0,r.jsx)(l.kC,{role:"status","aria-label":"Loading in-store cashback",align:"center",justify:"center",className:"mt-500 w-full py-600",children:(0,r.jsx)("div",{"aria-hidden":!0,children:(0,r.jsx)(f.a,{size:44,color:"gray"})})})}),(0,r.jsx)(d.d,{when:m,children:(0,r.jsx)(b,{variant:"manage"})})]})},j=t(85202),_=t(31159),m=t(85540),N=!0,y=e=>{let{location:n}=e,{slug:t,loyalty:c}=n,{replace:u}=(0,a.useRouter)(),l=(0,_.q)();return(0,m.H)({slug:t,loyalty:c}),(0,o.useEffect)(()=>{l||u(w.g.account.overview(t),void 0,{shallow:!0})},[l,u,t]),(0,r.jsx)(j.G,{children:(0,r.jsx)(x,{location:n})})}},92354:function(e,n,t){"use strict";t.d(n,{B6:function(){return w},E_:function(){return b},tH:function(){return k},xs:function(){return v}});var r=t(67848),o=t(48228),a=t(85945),c=t(88363),u=t(375),l=t(58956),i=t(31159),s=t(98724),d=t(75902);let h=e=>["account-plaid-connection",e],f=e=>404===(0,s.C0)(e),v=()=>{var e;let{auth:n}=(0,u.a)(),{id:t}=(0,l.TH)(),o=null!==(e=null==n?void 0:n.accessToken.token)&&void 0!==e?e:"",a=(0,i.q)(),v=(0,s.Po)(),w=(0,d.Z)();return(0,r.a)({queryKey:h(t),queryFn:async()=>{try{return await (0,c.W7)({token:o,isStorefrontBffEnabled:w})}catch(e){if(f(e))return null;throw e}},enabled:a&&!!o&&!!t,refetchOnMount:!0,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:(e,n)=>!f(n)&&(0,s.TI)(e,n),onError:v})},w=()=>{var e;let{auth:n}=(0,u.a)(),t=null!==(e=null==n?void 0:n.accessToken.token)&&void 0!==e?e:"",r=(0,s.Po)(),a=(0,d.Z)();return(0,o.D)({mutationFn:()=>(0,c.WT)({token:t,isStorefrontBffEnabled:a}),onError:r})},k=()=>{var e;let{auth:n}=(0,u.a)(),{id:t}=(0,l.TH)(),r=null!==(e=null==n?void 0:n.accessToken.token)&&void 0!==e?e:"",i=(0,a.NL)(),f=(0,s.Po)(),v=(0,d.Z)();return(0,o.D)({mutationFn:e=>(0,c.rn)({payload:{...e,token:r},isStorefrontBffEnabled:v}),onSuccess:e=>{i.setQueryData(h(t),e)},onError:f})},b=()=>{var e;let{auth:n}=(0,u.a)(),{id:t}=(0,l.TH)(),r=null!==(e=null==n?void 0:n.accessToken.token)&&void 0!==e?e:"",i=(0,a.NL)(),f=(0,s.Po)(),v=(0,d.Z)();return(0,o.D)({mutationFn:()=>(0,c.K_)({token:r,isStorefrontBffEnabled:v}),onSuccess:()=>{i.setQueryData(h(t),null)},onError:f})}},31159:function(e,n,t){"use strict";t.d(n,{q:function(){return c}});var r=t(58956),o=t(52753),a=t(8804);let c=()=>{let{features:e}=(0,r.TH)();return(0,a.b)(e,o.VH.PLAID)}}},function(e){e.O(0,[1182,2888,9774,179],function(){return e(e.s=58992)}),_N_E=e.O()}]);
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.