1(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{2089:function(e,t,n){"use strict";n.r(t),function(e){var r,i=n(5),a=n.n(i),o=n(0),l=n.n(o),u=n(2),s=n(3593),c=n(1102),d=u.d.div.withConfig({displayName:"send-gift__SendGiftWrapper",componentId:"sc-9bmgls-0"})(["margin:0 auto 2rem;max-width:",";",""],e.layout.smallerSectionMaxWidth,e.desktop(r||(r=a()(["\n margin-top: 110px; // Should not be HC\n "]))));t.default=Object(c.b)((function(){return l.a.createElement(d,{"data-testid":"send-gift-page"},l.a.createElement(s.a,null))}))}.call(this,n(37).default)},2209:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r,i=n(5),a=n.n(i),o=n(2).d.div.withConfig({displayName:"mobile-spacer__MobileSpacer",componentId:"sc-1qmdcgh-0"})(["",""],e.mobile(r||(r=a()(["\n height: ",";\n "])),(function(e){var t=e.height;return t?t+"px":"50vh"})))}).call(this,n(37).default)},2240:function(e,t,n){var r;e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(u).default}});var s=r(n(11)),c=r(n(9)),d=r(n(5)),f=n(2),p=function(e){function t(){var e;i(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var l=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return l.setRef=l.setRef.bind(l),l.onBlur=l.onBlur.bind(l),l.onChange=l.onChange.bind(l),l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,d.default)(o({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.pipe,i=t.mask,a={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},o="function"==typeof r&&"function"==typeof e.pipe?r.toString()!==e.pipe.toString():(0,f.isNil)(r)&&!(0,f.isNil)(e.pipe)||!(0,f.isNil)(r)&&(0,f.isNil)(e.pipe),l=i.toString()!==e.mask.toString(),u=Object.keys(a).some((function(t){return a[t]!==e[t]}))||l||o;(n!==this.inputElement.value||u)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,o({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(s.default.PureComponent);t.default=p,p.propTypes={mask:c.default.oneOfType([c.default.array,c.default.func,c.default.bool,c.default.shape({mask:c.default.oneOfType([c.default.array,c.default.func]),pipe:c.default.func})]).isRequired,guide:c.default.bool,value:c.default.oneOfType([c.default.string,c.default.number]),pipe:c.default.func,placeholderChar:c.default.string,keepCharPositions:c.default.bool,showMask:c.default.bool},p.defaultProps={render:function(e,t){return s.default.createElement("input",o({ref:e},t))}}},function(e,t){"use strict";
vendor: 4,514 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){"use strict";function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return"undefined"==typeof e||null===e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(o));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var i=n(1),a=[],o="[]"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if(("undefined"==typeof t?"undefined":r(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var u=n.guide,s=void 0===u||u,c=n.previousConformedValue,d=void 0===c?l:c,f=n.placeholderChar,p=void 0===f?a.placeholderChar:f,m=n.placeholder,h=void 0===m?(0,i.convertMaskToPlaceholder)(t,p):m,g=n.currentCaretPosition,v=n.keepCharPositions,b=!1===s&&void 0!==d,y=e.length,E=d.length,C=h.length,k=t.length,O=y-E,w=O>0,x=g+(w?-O:0),S=x+Math.abs(O);if(!0===v&&!w){for(var _=l,M=x;M<S;M++)h[M]===p&&(_+=p);e=e.slice(0,x)+_+e.slice(x,y)}for(var P=e.split(l).map((function(e,t){return{char:e,isNew:t>=x&&t<S}})),j=y-1;j>=0;j--){var T=P[j].char;if(T!==p){var I=j>=x&&E===k;T===h[I?j-O:j]&&P.splice(j,1)}}var N=l,A=!1;e:for(var R=0;R<C;R++){var G=h[R];if(G===p){if(P.length>0)for(;P.length>0;){var F=P.shift(),L=F.char,V=F.isNew;if(L===p&&!0!==b){N+=p;continue e}if(t[R].test(L)){if(!0===v&&!1!==V&&d!==l&&!1!==s&&w){for(var B=P.length,W=null,D=0;D<B;D++){var q=P[D];if(q.char!==p&&!1===q.isNew)break;if(q.char===p){W=D;break}}null!==W?(N+=L,P.splice(W,1)):R--}else N+=L;continue e}A=!0}!1===b&&(N+=h.substr(R,C));break}N+=G}if(b&&!1===w){for(var U=null,J=0;J<N.length;J++)h[J]===p&&(U=J);N=null!==U?N.substr(0,U+1):l}return{conformedValue:N,meta:{someCharsRejected:A}}};var i=n(2),a=n(1),o=[],l=""},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,i=void 0===t?r:t,a=e.previousPlaceholder,o=void 0===a?r:a,l=e.currentCaretPosition,u=void 0===l?0:l,s=e.conformedValue,c=e.rawValue,d=e.placeholderChar,f=e.placeholder,p=e.indexesOfPipedChars,m=void 0===p?n:p,h=e.caretTrapIndexes,g=void 0===h?n:h;if(0===u||!c.length)return 0;var v=c.length,b=i.length,y=f.length,E=s.length,C=v-b,k=C>0;if(C>1&&!k&&0!==b)return u;var O=0,w=void 0,x=void 0;if(!k||i!==s&&s!==f){var S=s.toLowerCase(),_=c.toLowerCase().substr(0,u).split(r).filter((function(e){return-1!==S.indexOf(e)}));x=_[_.length-1];var M=o.substr(0,_.length).split(r).filter((function(e){return e!==d})).length,P=f.substr(0,_.length).split(r).filter((function(e){return e!==d})).length!==M,j=void 0!==o[_.length-1]&&void 0!==f[_.length-2]&&o[_.length-1]!==d&&o[_.length-1]!==f[_.length-1]&&o[_.length-1]===f[_.length-2];!k&&(P||j)&&M>0&&f.indexOf(x)>-1&&void 0!==c[u]&&(w=!0,x=c[u]);for(var T=m.map((function(e){return S[e]})).filter((function(e){return e===x})).length,I=_.filter((function(e){return e===x})).length,N=f.substr(0,f.indexOf(d)).split(r).filter((function(e,t){return e===x&&c[t]!==e})).length+I+T+(w?1:0),A=0,R=0;R<E&&(O=R+1,S[R]===x&&A++,!(A>=N));R++);}else O=u-C;
1if(k){for(var G=O,F=O;F<=y;F++)if(f[F]===d&&(G=F),f[F]===d||-1!==g.indexOf(F)||F===y)return G}else if(w){for(var L=O-1;L>=0;L--)if(s[L]===x||-1!==g.indexOf(L)||0===L)return L}else for(var V=O;V>=0;V--)if(f[V-1]===d||-1!==g.indexOf(V)||0===V)return V};var n=[],r=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){document.activeElement===e&&(h?g((function(){return e.setSelectionRange(t,t,p)}),0):e.setSelectionRange(t,t,p))}function a(e){if((0,c.isString)(e))return e;if((0,c.isNumber)(e))return String(e);if(void 0===e||null===e)return f;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,p=r.inputElement,h=r.mask,g=r.guide,v=r.pipe,b=r.placeholderChar,y=void 0===b?d.placeholderChar:b,E=r.keepCharPositions,C=void 0!==E&&E,k=r.showMask,O=void 0!==k&&k;if("undefined"==typeof n&&(n=p.value),n!==t.previousConformedValue){("undefined"==typeof h?"undefined":l(h))===m&&void 0!==h.pipe&&void 0!==h.mask&&(v=h.pipe,h=h.mask);var w=void 0,x=void 0;if(h instanceof Array&&(w=(0,c.convertMaskToPlaceholder)(h,y)),!1!==h){var S=a(n),_=p.selectionEnd,M=t.previousConformedValue,P=t.previousPlaceholder,j=void 0;if(("undefined"==typeof h?"undefined":l(h))===d.strFunction){if(!1===(x=h(S,{currentCaretPosition:_,previousConformedValue:M,placeholderChar:y})))return;var T=(0,c.processCaretTraps)(x),I=T.maskWithoutCaretTraps,N=T.indexes;x=I,j=N,w=(0,c.convertMaskToPlaceholder)(x,y)}else x=h;var A={previousConformedValue:M,guide:g,placeholderChar:y,pipe:v,placeholder:w,currentCaretPosition:_,keepCharPositions:C},R=(0,s.default)(S,x,A),G=R.conformedValue,F=("undefined"==typeof v?"undefined":l(v))===d.strFunction,L={};F&&(!1===(L=v(G,o({rawValue:S},A)))?L={value:M,rejected:!0}:(0,c.isString)(L)&&(L={value:L}));var V=F?L.value:G,B=(0,u.default)({previousConformedValue:M,previousPlaceholder:P,conformedValue:V,placeholder:w,rawValue:S,currentCaretPosition:_,placeholderChar:y,indexesOfPipedChars:L.indexesOfPipedChars,caretTrapIndexes:j}),W=V===w&&0===B,D=O?w:f,q=W?D:V;t.previousConformedValue=q,t.previousPlaceholder=w,p.value!==q&&(p.value=q,i(p,B))}}}}};var u=r(n(4)),s=r(n(3)),c=n(2),d=n(1),f="",p="none",m="object",h="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,a,o,l,u){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,a,o,l,u],d=0;(s=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(10);e.exports=function(){function e(e,t,n,r,o,l){l!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator,e.exports=n(8)()},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=r}]))},2437:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){var t=e.top,n=e.left,r=e.behavior,i=void 0===r?"smooth":r;document.documentElement&&(null==document.documentElement.scrollTo||document.documentElement.scrollTo({top:t,left:n,behavior:i}))}},2695:function(e,t,n){"use strict";(function(e){n.d(t,"m",(function(){return o}
1)),n.d(t,"b",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"l",(function(){return s})),n.d(t,"k",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"i",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return b}));var r=n(2),i=n(41),a=n(277),o=r.d.div.withConfig({displayName:"send-giftstyled__Wrapper",componentId:"sc-1tc358k-0"})([""]),l=r.d.form.withConfig({displayName:"send-giftstyled__Form",componentId:"sc-1tc358k-1"})(["margin:0 20px;text-align:center;"]),u=r.d.p.withConfig({displayName:"send-giftstyled__TimRewards",componentId:"sc-1tc358k-2"})(["font-weight:",";"],e.fontWeight.heavy),s=r.d.div.withConfig({displayName:"send-giftstyled__UserPointsWrapper",componentId:"sc-1tc358k-3"})(["display:flex;justify-content:center;align-items:center;"]),c=r.d.span.withConfig({displayName:"send-giftstyled__UserPoints",componentId:"sc-1tc358k-4"})(["color:",";margin-left:5px;"],e.color.primary),d=r.d.div.withConfig({displayName:"send-giftstyled__LegalCopy",componentId:"sc-1tc358k-5"})(["text-align:left;& *{font-size:0.9rem;}"]),f=Object(r.d)(i.d).attrs({fullWidth:!0}).withConfig({displayName:"send-giftstyled__SendGiftButton",componentId:"sc-1tc358k-6"})(["margin-top:1.5rem;"]),p=r.d.span.withConfig({displayName:"send-giftstyled__LoaderWrapper",componentId:"sc-1tc358k-7"})(["width:70px;margin-left:8px;"]),m=r.d.div.withConfig({displayName:"send-giftstyled__ModalBody",componentId:"sc-1tc358k-8"})(["max-width:",";text-align:center;line-height:1.7;& hr{max-width:400px;border:0;height:1px;background:",";}& span{font-weight:bold;color:",";}"],e.layout.smallerSectionMaxWidth,e.color.grey.four,e.color.primary),h=Object(r.d)(a.a).withConfig({displayName:"send-giftstyled__ModalHeading",componentId:"sc-1tc358k-9"})(["margin:2.5rem auto 1rem;"]),g=r.d.div.withConfig({displayName:"send-giftstyled__ContentLoadingContainer",componentId:"sc-1tc358k-10"})(["position:absolute;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;"]),v=r.d.label.withConfig({displayName:"send-giftstyled__InputLabel",componentId:"sc-1tc358k-11"})(["display:flex;font-weight:",";text-transform:capitalize;"],e.fontWeight.heavy),b=r.d.div.withConfig({displayName:"send-giftstyled__MinimumPointsRequired",componentId:"sc-1tc358k-12"})(["font-size:0.75rem;"])}).call(this,n(37).default)},3095:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(44),i=n(109),a=function(){var e,t=Object(i.b)(),n=t.featureGiftId,a=void 0===n?"":n,o=t.featureIdsLoading,l=Object(r.P)({variables:{featureGiftId:a},skip:!a}),u=l.data,s=l.loading;return{featureGiftLoading:o||s,featureGift:null!=(e=null==u?void 0:u.FeatureGift)?e:null}}},3227:function(e,t,n){"use strict";(function(e){var r=n(31),i=n.n(r),a=n(14),o=n.n(a),l=n(0),u=n(92),s=n(35),c=n(2437),d=n(205),f=n(33),p=n(1111),m=n(123),h=n(3095),g=n(24),v=n(326),b=n(15),y=n(3760),E=n(2695),C=n(3594),k=n(3228);t.a=function(){var t,n,r,a,O,w,x,S,_,M,P=Object(h.a)(),j=P.featureGiftLoading,T=P.featureGift,I=Object(u.a)().formatMessage,N=Object(p.a)(),A=N.loyaltyDetails,R=N.refetchActiveCard,G=Object(s.p)(),F=Object(g.e)(),L=Object(f.nb)(),V=L.loading,B=L.data,W=L.refetch,D=null==B||null==(t=B.listGiftOffers)?void 0:t.offers,q=Object(f.Db)()[0],U=Object(l.useState)(!1),J=U[0],H=U[1],z=Object(l.useState)(""),K=z[0],Y=z[1],Q=Object(l.useState)(""),X=Q[0],Z=Q[1],$=Object(l.useState)(""),ee=$[0],te=$[1],ne=Object(l.useState)(""),re=ne[0],ie=ne[1],ae=Object(l.useState)(""),oe=ae[0],le=ae[1],ue=Object(l.useState)(""),se=ue[0],ce=ue[1],de=Object(l.useState)(""),fe=de[0],pe=de[1],me=Object(m.a)({onConfirm:function(){return Ce()},onDismiss:function(){return G(b.k.base)},modalAppearanceEventMessage:"Confirmation: Sending gift successful"}),he=me[0],ge=me[1],ve=Object(m.a)({modalAppearanceEventMessage:"Error: Sending gift error"}),be=ve[0],ye=ve[1],Ee=Object(l.useCallback)((function(e){var t=e.trim();return t?Object(v.h)(t)?t:(le(I({id:"notValidEmailError"})),""):(le(I({id:"sendGiftEmailRequiredError"})),"")}
1),[I]),Ce=Object(l.useCallback)((function(){Y(""),Z(""),te(""),ie(""),Object(c.a)({top:0})}),[]),ke=function(){var e=i()(o.a.mark((function e(t){var n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n=Ee(X),ee){e.next=5;break}return pe(I({id:"sendGiftNameRequiredError"})),e.abrupt("return");case 5:if(K){e.next=8;break}return ce(I({id:"selectGiftError"})),e.abrupt("return");case 8:if(!n){e.next=29;break}return le(""),H(!0),e.prev=11,i={offerId:K,toEmail:X,fromName:ee,message:re},e.next=15,q({variables:{input:i}});case 15:return e.next=17,R();case 17:ge(),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(11),r=null!=(a=e.t0.message)?a:"Unknown error message",ye();case 24:return e.prev=24,H(!1),W(),F.logEvent(g.a.BUTTON_CLICK_SEND_A_GIFT,g.b.Other,{isSuccessful:!r,offerId:K,error:r}),e.finish(24);case 29:return e.abrupt("return");case 30:case"end":return e.stop()}}),e,null,[[11,20,24,29]])})));return function(t){return e.apply(this,arguments)}}();if(j||V)return l.createElement(E.a,null,l.createElement(d.a,{fillColor:e.color.primary}));var Oe=null==D?void 0:D.find((function(e){return e.offerId===K})),we=null!=(n=null==Oe?void 0:Oe.title)?n:"";return l.createElement(l.Fragment,null,l.createElement(C.a,{legalCopy:null==T||null==(r=T.legalDisclaimer)?void 0:r.locale,image:null==T||null==(a=T.backgroundImage)||null==(O=a.locale)?void 0:O.app,imageAlt:null!=(w=null==T||null==(x=T.backgroundImage)||null==(S=x.locale)?void 0:S.imageDescription)?w:"",giftOptions:D,title:null==T||null==(_=T.header)?void 0:_.locale,textContent:null==T||null==(M=T.subHeader)?void 0:M.locale,userPoints:null==A?void 0:A.points,gift:K,email:X,name:ee,message:re,handleChange:function(e){var t=e.target.id;return t===k.a.GIFT?(ce(""),Y(e.target.value)):t===k.a.EMAIL?(le(""),Z(e.target.value)):t===k.a.NAME?(pe(""),te(e.target.value)):t===k.a.MESSAGE?ie(e.target.value):void 0},handleSubmit:ke,errorEmailMessage:oe,errorGiftMessage:se,errorNameMessage:fe,isSendingEmail:J}),l.createElement(he,{headingComponent:l.createElement(E.h,null,I({id:"giftSent"})),bodyComponent:l.createElement(y.b,{email:X,giftName:we,remainingPoints:null==A?void 0:A.points}),buttonLabel:I({id:"sendAnotherGift"}),showCloseButton:!0}),l.createElement(be,{headingComponent:l.createElement(E.h,null,I({id:"sorrySomethingWentWrong"})),bodyComponent:l.createElement(y.a,{email:X,giftName:we}),buttonLabel:I({id:"tryAgain"}),showCloseButton:!0}))}}).call(this,n(37).default)},3228:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e.GIFT="gift-input-id",e.EMAIL="email-input-id",e.MESSAGE="message-input-id",e.NAME="name-input-id",e}({})},3593:function(e,t,n){"use strict";var r=n(3227);n.d(t,"a",(function(){return r.a}))},3594:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return h}));var r=n(0),i=n(2047),a=n(92),o=n(80),l=n(2200),u=n(2206),s=n(205),c=n(2209),d=n(156),f=n(259),p=n(2695),m=n(3228),h=function(t){var n=t.gift,h=t.email,g=t.name,v=t.message,b=t.image,y=t.imageAlt,E=t.title,C=t.textContent,k=t.giftOptions,O=t.legalCopy,w=t.handleChange,x=t.userPoints,S=t.handleSubmit,_=t.errorEmailMessage,M=t.errorGiftMessage,P=t.errorNameMessage,j=t.isSendingEmail,T=Object(a.a)().formatMessage,I=[{value:"",label:T({id:"selectGift"})+" *"}].concat(k.map((function(e){var t=e.offerId;return{value:t,label:e.title+" | "+e.costInPoints,disabled:!e.isRedeemable,testId:t}}))),N=function(){return Object(i.a)(x)?r.createElement(p.e,null,r.createElement(s.a,{fillColor:e.color.primary})):r.createElement(p.k,null,x," points")};return r.createElement(p.m,null,b&&r.createElement(d.a,{image:b,alt:y,objectFitContain:!0}),r.createElement(p.b,{onSubmit:function(e){return S(e)},noValidate:!0},r.createElement("h1",{"data-testid":"send-gift-title"},E),r.createElement(f.b,{content:C}),r.createElement(p.j,{"data-testid":"send-gift-user-balance"},r.createElement(p.l,null,T({id:"rewardsPointsTitle"}),r.createElement(N,null))),r.createElement(p.f,null,T({id:"minimumPointsRequired"})),r.createElement(p.c,{htmlFor:m.a.GIFT},T({id:"gift"})),r.createElement(l.b,{id:m.a.GIFT,label:n?T({id:"gift"}
1):"",value:n,options:I,onChange:w,message:M,validation:M?o.a.INVALID:void 0,"data-testid":"send-gift-gift-input"}),r.createElement(p.c,{htmlFor:m.a.EMAIL},T({id:"to"})),r.createElement(l.a,{required:!0,id:m.a.EMAIL,type:"email",value:h,label:T({id:"recipientsEmail"}),autocomplete:"on",onChange:w,validation:_?o.a.INVALID:void 0,message:_,"data-testid":"send-gift-email-input"}),r.createElement(p.c,{htmlFor:m.a.NAME},T({id:"from"})),r.createElement(l.a,{required:!0,id:m.a.NAME,type:"text",value:g,label:T({id:"yourFullName"}),autocomplete:"on",onChange:w,validation:P?o.a.INVALID:void 0,message:P,"data-testid":"send-gift-name-input"}),r.createElement(p.c,{htmlFor:m.a.MESSAGE},T({id:"message"})),r.createElement(u.a,{id:m.a.MESSAGE,label:T({id:"personalMessageToRecipient"}),onChange:w,value:v,validation:o.a.PRISTINE,"data-testid":"send-gift-message-input"}),r.createElement(p.d,{"data-testid":"send-gift-legal-copy"},r.createElement(f.b,{content:O})),r.createElement(p.i,{type:"submit","data-testid":"send-gift-button",isLoading:j},T({id:"sendGift"}))),r.createElement(c.a,null))}}).call(this,n(37).default)},3760:function(e,t,n){"use strict";var r=n(0),i=n(92),a=n(327),o=n(15),l=n(2695),u=function(e){var t=e.email,n=e.giftName,u=Object(i.a)().formatMessage;return r.createElement(l.g,null,r.createElement("p",null,u({id:"giftSentError"},{email:r.createElement("b",null,t),gift:r.createElement("b",null,n),supportLink:r.createElement(a.c,{isSelected:!0,to:o.k.support},u({id:"support"}))})))},s=function(e){var t=e.email,n=e.giftName,a=e.remainingPoints,o=Object(i.a)().formatMessage;return r.createElement(l.g,null,r.createElement("p",null,o({id:"giftSentSuccess"},{email:r.createElement("b",null,t),gift:r.createElement("b",null,n)})),r.createElement("hr",null),r.createElement("p",null,o({id:"rewardsPointsBalanceIsNow"},{remainingPoints:r.createElement(r.Fragment,null,r.createElement("br",null),r.createElement("span",null,a," ",o({id:"points"})))})))};n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}))}}]); 2//# sourceMappingURL=60.8dcae51c.chunk.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.