1"use strict";(self.webpackChunkw6450_4dead3a6_a38e_498b_8055_07b226037475=self.webpackChunkw6450_4dead3a6_a38e_498b_8055_07b226037475||[]).push([[311],{90636:function(e,r,n){n.r(r),n.d(r,{default:function(){return v}});var o=n(86326),a=n(46e3),l=n(20141),t=n(75674),s=n(55814),d=n(6641),u=n(86329),i=n(46144),c=n(60969);const m=e=>{let{loading:r,status:n,errorCode:a,onClose:t}=e;const{formatMessage:s}=(0,u.A)();return(0,l.Y)(d.A,{show:!0,onClose:t},(0,l.Y)("div",{sx:{padding:8}},r?(0,l.Y)(l.y$,{size:32,color:"currentcolor"}):(0,l.Y)(l.xA,{gap:2},"success"===n?(0,l.Y)(o.Fragment,null,(0,l.Y)(l.IE.h2,null,s(c.A.orderValidatedTitle)),(0,l.Y)(l.IE.p,null,s(c.A.orderValidatedDesc))):null,"error"===n?(0,l.Y)(o.Fragment,null,(0,l.Y)(l.IE.h2,null,s(c.A.orderNotFoundTitle)),(0,l.Y)(l.IE.p,null,a===i.m8?s(c.A.orderExpired):s(c.A.orderNotFoundDesc))):null,(0,l.Y)("div",null,(0,l.Y)(l.$n,{onClick:t,sx:{variant:"buttons.primary"}},s(c.A.close))))))};var p=(0,o.memo)(m),_=n(54993),h=n(57604);var Y=()=>{const e=(0,h.A)(),r=(0,_.zy)(),n=(0,o.useCallback)((()=>{const e=new URL(r.href);e.searchParams.delete("confirm_item_redemption"),(0,_.oo)(`${e.pathname}${e.searchParams.toString()?`?${e.searchParams.toString()}`:""}`,{replace:!0})}),[]);return"string"==typeof e.confirm_item_redemption?[e.confirm_item_redemption,n]:[null,n]};const f=()=>{var e;const[r,n]=Y(),d=(0,s.A)(),{data:u,isLoading:i}=(0,a.IT)({queryKey:["ConfirmRewardRedemption",r],queryFn:async()=>(0,t.mv)(d,{tokenLoyalty:r||""}),enabled:!!r,placeholderData:a.rX,refetchOnWindowFocus:!1}),c=i?null:0===(null==u?void 0:u.peachCode)?"success":"error",m="error"===c&&null!==(e=null==u?void 0:u.peachCode)&&void 0!==e?e:void 0;return(0,l.Y)(o.Fragment,null,r?(0,l.Y)(p,{loading:i,status:c,errorCode:m,onClose:()=>{n()}}):null)};var v=(0,o.memo)(f)}}]);
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.