1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1128],{78324:(function(A,f,a){a.r(f),a.d(f,{default:function(){return M}});var e=a(67294),p=a(11382),l=a(33432),h=a(60012),i=a(83669),D=a(46445),O=a(82571),E=a(4791),v=a(56359),g=a(79618);function C(){return(0,g.WY)("/sapi/mall-marketing/customerGiftCard/myGiftCard",{data:{origin:i.Kd},method:"POST"})}var G=a(27484),N=(c,d,n)=>new Promise((r,m)=>{var y=s=>{try{t(n.next(s))}catch(u){m(u)}},o=s=>{try{t(n.throw(s))}catch(u){m(u)}},t=s=>s.done?r(s.value):Promise.resolve(s.value).then(y,o);t((n=n.apply(c,d)).next())});function L(){const{currentBreakpoint:c}=(0,h.ag)(),[d,n]=(0,e.useState)(!1),[r,m]=(0,e.useState)([]),y=c===i.cL.sm,o=()=>N(null,null,function*(){try{n(!0);const t=yield C();t&&t.length>0&&m(t)}finally{n(!1)}});return(0,e.useEffect)(()=>(o(),()=>{}),[]),e.createElement(p.Z,{spinning:d,wrapperClassName:"my-gift-card"},e.createElement("div",{className:"main-title"},(0,l.wv)({id:"user.profile.gift.card.title",defaultMessage:"Gift Card"})),r.length?e.createElement(e.Fragment,null,e.createElement("div",{className:"sub-title"},(0,l.wv)({id:"user.profile.gift.card.sub.title1",defaultMessage:""})),e.createElement("div",{className:"sub-title2"},(0,l.wv)({id:"user.profile.gift.card.sub.title2",defaultMessage:" "}))):null,r.length?e.createElement("div",{className:"my-gift-card-content "},r.map(t=>e.createElement("div",{className:"my-gift-card-content-item",key:t.id},e.createElement(v.Z,{src:t.backgroundImage}),e.createElement("div",{className:"my-gift-card-content-item-time"},(0,l.wv)({id:"user.profile.gift.card.time",defaultMessage:"Valid until"},{time:(0,E.Z)(t.exchangeTime,i.tO.couponTime)}))))):e.createElement("div",{className:"my-gift-card-empty"},e.createElement(v.Z,{className:"my-gift-card-empty-image",src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/zanwulipinka.png"}),(0,l.wv)({id:"user.profile.gift.card.empty",defaultMessage:"You have no coupons available"}),e.createElement("div",{className:"my-gift-card-empty-btn",onClick:()=>{var t;g.mW.push(((t=i.kU)==null?void 0:t.memberCenterPath)||i.uu.entrancePoint,{tabs:"item-10"})}},(0,l.wv)({id:"user.profile.gift.card.empty.button",defaultMessage:"Go to redeem"}))))}var M=L})}]);
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.