1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2676],{20331:(function(Mt,ae,d){d.r(ae),d.d(ae,{default:function(){return it}});var e=d(67294),Ne=d(11382),a=d(33432),we=d(53795),f=d(79618),be=d(99598),ye=d(82571),Ct=d(46445),u=d(83669),kt=d(71371),Me=d(86974),ne=d(26272),Q=d(48889),Ce=d(88391),ke=d(54020),x=d(83242),W=d(21566),Ie=d(27484),J=d.n(Ie),X=d(54549),Le=Object.defineProperty,Pe=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,re=(l,n,t)=>n in l?Le(l,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[n]=t,ie=(l,n)=>{for(var t in n||(n={}))le.call(n,t)&&re(l,t,n[t]);if(G)for(var t of G(n))se.call(n,t)&&re(l,t,n[t]);return l},Se=(l,n)=>Pe(l,Fe(n)),Ze=(l,n)=>{var t={};for(var r in l)le.call(l,r)&&n.indexOf(r)<0&&(t[r]=l[r]);if(l!=null&&G)for(var r of G(l))n.indexOf(r)<0&&se.call(l,r)&&(t[r]=l[r]);return t},Ae=(l,n,t)=>new Promise((r,o)=>{var m=s=>{try{i(t.next(s))}catch(c){o(c)}},v=s=>{try{i(t.throw(s))}catch(c){o(c)}},i=s=>s.done?r(s.value):Promise.resolve(s.value).then(m,v);i((t=t.apply(l,n)).next())});function Oe(l){var n,t,r;const o=l,{visible:m,handleCancel:v,className:i=""}=o,s=Ze(o,["visible","handleCancel","className"]),[c,w]=(0,e.useState)({data:[],total:0}),[k,h]=(0,e.useState)(!1),{currentBreakpoint:Z}=(0,W.Z)(),y=Z===u.cL.sm,p=(0,e.useRef)(1),F=[{title:(0,a.wv)({id:"user.home.invitelist.time",defaultMessage:"Time"}),dataIndex:"registerTime",width:150,render:g=>e.createElement("div",null,g?J()(g).format("DD/MM/YYYY"):"-"),align:"center"},{title:(0,a.wv)({id:"user.home.invitelist.email",defaultMessage:"Email"}),dataIndex:"email",width:150,align:"center"}],S=(0,e.useCallback)((g,I)=>Ae(null,null,function*(){if(!u.E4||k)return null;h(!0);const U=I||(y?20:6),M=yield(0,x.HV)({pageNo:g||1,pageSize:U});w(C=>{var L;return Se(ie({},C),{data:y?(L=C==null?void 0:C.data)==null?void 0:L.concat(M.data):M.data,total:M.total})}),h(!1)}),[k,y]),O=()=>e.createElement("div",{className:"customize-empty"},(0,a.wv)({id:"user.home.invitelist.empty",defaultMessage:"You have not successfully invited friends"}));return(0,e.useEffect)(()=>{S()},[]),(0,e.useEffect)(()=>{const g=document.querySelector(".ant-drawer-body"),I=document.querySelector(".use-in-scroll"),U=window.innerHeight;let M=!1;function C(){var L,b;if(M)return;((L=I==null?void 0:I.getBoundingClientRect())==null?void 0:L.top)-U<150&&!k&&c.total>((b=c==null?void 0:c.data)==null?void 0:b.length)&&(M=!0,p.current++,S(p.current))}return y&&g?(g==null||g.addEventListener("scroll",C),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C),g==null||g.removeEventListener("scroll",C)}):()=>{}},[c,S,y,k]),y?e.createElement(ne.Z,{placement:"bottom",onClose:v,visible:m,height:"100%",className:"eu-comment-drawer2-wrap invitelist-draw",closable:!1},e.createElement("div",{className:"invitelist-draw-title"},(0,a.wv)({id:"user.home.invitelist.title",defaultMessage:"Invitation list"})),e.createElement("div",{className:"invite-now-extra"},e.createElement(X.Z,{onClick:v})),e.createElement("div",{className:"invitelist-draw-header"},e.createElement("div",{className:"invitelist-draw-header-time"},(0,a.wv)({id:"user.home.invitelist.time",defaultMessage:"Time"})),e.createElement("div",{className:"invitelist-draw-header-id"},(0,a.wv)({id:"user.home.invitelist.email",defaultMessage:"Email"}))),e.createElement("div",{className:`invitelist-draw-content ${(n=c==null?void 0:c.data)!=null&&n.length?"":"empty"}`},((t=c==null?void 0:c.data)==null?void 0:t.length)>0?(r=c==null?void 0:c.data)==null?void 0:r.map(g=>e.createElement("div",{className:"invitelist-draw-item"},e.createElement("div",{className:"invitelist-draw-item-time"},J()(g==null?void 0:g.registerTime).format("YYYY/MM/DD")),e.createElement("div",{className:"invitelist-draw-item-id"},g==null?void 0:g.email))):e.createElement("div",{className:"customize-empty"},(0,a.wv)({id:"user.home.invitelist.empty",defaultMessage:"You have not successfully invited friends"}))),e.createElement("div",{className:"use-in-scroll"})):e.createElement(Q.Z,ie({visible:m,width:620,wrapClassName:"eu-comment-modal2-wrap invitelist-modal",onCancel:v,footer:null},s),e.createElement("div",{className:"invitelist-modal-content"},e.createElement("div",{className:"invitelist-modal-content-title"},(0,a.wv)({id:"user.home.invitelist.title",defaultMessage:"Invitation list"})),e.createElement(Ce.ZP,{renderEmpty:O},e.createElement(ke.Z,{columns:F,dataSource:c==null?void 0:c.data,rowClassName:"table-row",pagination:{total:c==null?void 0:c.total,pageSize:6,hideOnSinglePage:!0,size:"small",onChange:g=>S(g)}}))))}var Ue=d(45671),Te=d(72066),A=d(8812),R=d(48290),N=d(56359);const De=l=>{const{queryLevel:n=[],current:t={}}=l,{currentLevelUpCondition:r,currentGrowthValue:o,customerLevels:m}=t,v=(i,s)=>e.createElement("div",{className:"line "},e.createElement("div",{className:"under"}),s?e.createElement("div",{className:"active",style:{width:"100%"}}):e.createElement("div",{className:"active",style:{width:`${i||0}%`}}));return e.createElement("div",{className:"progress-bar-wrap"},n&&n.map((i,s)=>{const c=(o-(r==null?void 0:r.growthValueMin))/((r==null?void 0:r.growthValueMax)-(r==null?void 0:r.growthValueMin))||0;return e.createElement(e.Fragment,null,e.createElement("div",{className:`point ${m>=(i==null?void 0:i.levelId)?"active":""}`},`F${i==null?void 0:i.levelId}`),s+1!==n.length?m===(i==null?void 0:i.levelId)?v(c*100,!1):v(0,m>(i==null?void 0:i.levelId)):null)}))};function xe(l){var n;const{handleToEarn:t,couponsNum:r,handleIsTourist:o,userLevel:m={},accountAmt:v={},user:i={},queryLevel:s}=l,{availableAmt:c,usedAmt:w,frozenAmt:k}=v,{nickname:h,id:Z,isTourist:y}=i,{currentLevelUpCondition:p,currentGrowthValue:F,nextLevel:S,nextLevelUpCondition:O,customerLevels:g}=m,I=(O==null?void 0:O.growthValueMin)-F,{currentBreakpoint:U}=(0,W.Z)(),M=U===u.cL.sm,C=U===u.cL.md,L=(P=0)=>P>=1e3?"999+":P,b=()=>y?null:e.createElement("div",{className:"right-center-point"},e.createElement("div",{className:"point-item",onClick:()=>{var P;return f.mW.push(`${((P=u.kU)==null?void 0:P.memberCenterPath)||u.uu.entrancePoint}`)}},e.createElement("p",null,L(c)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.point"})),e.createElement(A.Z,null))),e.createElement("div",{className:"point-line"}),e.createElement("div",{className:"point-item",onClick:()=>f.mW.push("/buyer/my-coupons")},e.createElement("p",null,L(r)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.coupons"})),e.createElement(A.Z,null)))),Y=()=>e.createElement("div",{className:"login-btn",onClick:()=>o&&o()},(0,a.wv)({id:"user.member.login",defaultMessage:"LOGIN/REGISTER"})),te=()=>y?null:e.createElement("div",{className:"right-bottom"},e.createElement("div",{className:"progress"},e.createElement(De,{queryLevel:s,current:m})),e.createElement("p",null,e.createElement(R.Z,{id:"user.member.point.progress",defaultMessage:"",values:{months:(p==null?void 0:p.months)||"-"}}),e.createElement("span",null,e.createElement(R.Z,{id:"user.member.point.progress2",defaultMessage:"",values:{point:F||"0"}})),e.createElement(R.Z,{id:"user.member.point.progress3",defaultMessage:"",values:{months:(p==null?void 0:p.months)||"-",nextLevel:S,nextPoint:I||"-"}})));return e.createElement(e.Fragment,null,y?e.createElement("div",{className:"user-info-wrap user-info-tourist"},e.createElement("div",{className:"user-center"},e.createElement("div",{className:"tree-view"}),e.createElement("div",{className:"right-view"},e.createElement("div",{className:"right-center"},e.createElement("div",{className:"right-center-dec"},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})))),e.createElement("div",{className:"dec-value",dangerouslySetInnerHTML:{__html:(0,a.wv)({id:"user.member.top.dec",defaultMessage:""})}}))),Y())),C&&e.createElement("div",{className:"right-bottom-tourist"})):e.createElement("div",{className:"user-info-wrap"},e.createElement("div",{className:"mark-top"},e.createElement("div",{className:"mark-top-item",onClick:()=>{var P;return f.mW.push(`${((P=u.kU)==null?void 0:P.memberCenterPath)||u.uu.entrancePoint}`)}}
1,(0,a.wv)({id:"common.sidebar.points.2025",defaultMessage:""}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0})))),e.createElement("div",{className:"user-center"},e.createElement("div",{className:"right-center"},e.createElement("div",{className:"right-center-dec"},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("span",{className:"dec-title"},"F",g||"-"," ",(n=(s||[]).find(P=>(P==null?void 0:P.levelId)===g))==null?void 0:n.levelName),e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})," ",h||"-"," ",e.createElement("span",null,(0,a.wv)({id:"user.member.top.id",defaultMessage:"ID"}),": ",Z||"-"))))),!M&&b()),!M&&te())))}const Re=l=>{const{queryLevel:n=[],current:t={}}=l,{currentLevelUpCondition:r,currentGrowthValue:o,customerLevels:m}=t,v=(i,s)=>e.createElement("div",{className:"line "},e.createElement("div",{className:"under"}),s?e.createElement("div",{className:"active",style:{width:"100%"}}):e.createElement("div",{className:"active",style:{width:`${i||0}%`}}));return e.createElement("div",{className:"progress-bar-wrap"},n&&n.map((i,s)=>{const c=(o-(r==null?void 0:r.growthValueMin))/((r==null?void 0:r.growthValueMax)-(r==null?void 0:r.growthValueMin))||0;return e.createElement(e.Fragment,null,e.createElement("div",{className:"point-warp"},e.createElement("div",{className:`point ${m>=(i==null?void 0:i.levelId)?"active":""}`}),e.createElement("span",{className:"m-title"},`F${i==null?void 0:i.levelId}`)),s+1!==n.length?m===(i==null?void 0:i.levelId)?v(c*100,!1):v(0,m>(i==null?void 0:i.levelId)):null)}))};function Ve(l){var n;const{handleToEarn:t,couponsNum:r,handleIsTourist:o,userLevel:m={},accountAmt:v={},user:i={},queryLevel:s}=l,{availableAmt:c,totalAmt:w,frozenAmt:k,usedAmt:h}=v,{nickname:Z,id:y,isTourist:p}=i,{currentLevelUpCondition:F,currentGrowthValue:S,nextLevel:O,nextLevelUpCondition:g,customerLevels:I}=m,U=(g==null?void 0:g.growthValueMin)-S,M=(b=0)=>b>=1e3?"999+":b,C=()=>e.createElement("div",{className:"user-point"},e.createElement("div",{className:"point-item",onClick:()=>{var b;return f.mW.push(`${((b=u.kU)==null?void 0:b.memberCenterPath)||u.uu.entrancePoint}`)}},e.createElement("p",null,M(c)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.point"})),e.createElement(A.Z,null))),e.createElement("div",{className:"point-line"}),e.createElement("div",{className:"point-item",onClick:()=>f.mW.push("/buyer/my-coupons")},e.createElement("p",null,M(r)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.coupons"})),e.createElement(A.Z,null)))),L=()=>e.createElement("div",{className:"login-btn",onClick:()=>o&&o()},(0,a.wv)({id:"user.member.login",defaultMessage:"LOGIN/REGISTER"}));return e.createElement(e.Fragment,null,p?e.createElement("div",{className:"m-user-info-wrap"},e.createElement("div",{className:"user-center"},e.createElement("div",{className:"right-view",style:{marginLeft:0}},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})))))),e.createElement("div",{className:"dec-value2",dangerouslySetInnerHTML:{__html:(0,a.wv)({id:"user.member.top.dec",defaultMessage:""})}}),L()):e.createElement("div",{className:"m-user-info-wrap"},e.createElement("div",{className:"user-center"},e.createElement("div",{className:"right-view"},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("span",{className:"dec-title"},"F",I||"-"," ",(n=(s||[]).find(b=>(b==null?void 0:b.levelId)===I))==null?void 0:n.levelName),e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})," ",Z||"-"," ",e.createElement("span",null,(0,a.wv)({id:"user.member.top.id",defaultMessage:"ID"}),": ",y||"-")))),e.createElement("div",{className:"progress"},e.createElement(Re,{queryLevel:s,current:m})))),e.createElement("p",{className:"dec-value"},e.createElement(R.Z,{id:"user.member.point.progress",defaultMessage:"",values:{months:(F==null?void 0:F.months)||"-"}}),e.createElement("span",null,e.createElement(R.Z,{id:"user.member.point.progress2",defaultMessage:"",values:{point:S||"-"}})),e.createElement(R.Z,{id:"user.member.point.progress3",defaultMessage:"",values:{months:(F==null?void 0:F.months)||"-",nextLevel:O,nextPoint:U||"-"}})),C(),e.createElement("div",{className:"mark-top"},e.createElement("div",{className:"mark-top-item",onClick:()=>{var b;return f.mW.push(`${((b=u.kU)==null?void 0:b.memberCenterPath)||u.uu.entrancePoint}`)}}
1,(0,a.wv)({id:"common.sidebar.points.2025",defaultMessage:""}),e.createElement(A.Z,null)))))}function We(l){const{couponsNum:n,handleIsTourist:t,accountAmt:r={},user:o={}}=l,{availableAmt:m}=r,{nickname:v,id:i,isTourist:s}=o,{currentBreakpoint:c}=(0,W.Z)(),w=c===u.cL.sm,k=c===u.cL.md,h=(p=0)=>p>=1e3?"999+":p,Z=()=>s?null:e.createElement("div",{className:"right-center-point"},e.createElement("div",{className:"point-item",onClick:()=>{var p;return f.mW.push(`${((p=u.kU)==null?void 0:p.memberCenterPath)||u.uu.entrancePoint}`)}},e.createElement("p",null,h(m)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.point"})),e.createElement(A.Z,null))),e.createElement("div",{className:"point-line"}),e.createElement("div",{className:"point-item",onClick:()=>f.mW.push("/buyer/my-coupons")},e.createElement("p",null,h(n)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.coupons"})),e.createElement(A.Z,null)))),y=()=>e.createElement("div",{className:"login-btn",onClick:()=>t&&t()},(0,a.wv)({id:"user.member.login",defaultMessage:"LOGIN/REGISTER"}));return e.createElement(e.Fragment,null,s?e.createElement("div",{className:"user-info-wrap user-info-tourist"},e.createElement("div",{className:"user-center"},e.createElement("div",{className:"tree-view"}),e.createElement("div",{className:"right-view"},e.createElement("div",{className:"right-center"},e.createElement("div",{className:"right-center-dec"},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})))),e.createElement("div",{className:"dec-value",dangerouslySetInnerHTML:{__html:(0,a.wv)({id:"user.member.top.dec",defaultMessage:""})}}))),y())),k&&e.createElement("div",{className:"right-bottom-tourist"})):e.createElement("div",{className:"user-info-wrap"},e.createElement("div",{className:"mark-top"},e.createElement("div",{className:"mark-top-item",onClick:()=>{var p;return f.mW.push(`${((p=u.kU)==null?void 0:p.memberCenterPath)||u.uu.entrancePoint}`)}},(0,a.wv)({id:"common.sidebar.points.2025",defaultMessage:""}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0})))),e.createElement("div",{className:"user-center"},e.createElement("div",{className:"right-center"},e.createElement("div",{className:"right-center-dec",style:{display:"flex",alignItems:"center"}},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})," ",v||"-"," ",e.createElement("span",null,(0,a.wv)({id:"user.member.top.id",defaultMessage:"ID"}),": ",i||"-"))))),!w&&Z()))))}function He(l){const{couponsNum:n,handleIsTourist:t,accountAmt:r={},user:o={}}=l,{availableAmt:m}=r,{nickname:v,id:i,isTourist:s}=o,c=(h=0)=>h>=1e3?"999+":h,w=()=>e.createElement("div",{className:"user-point"},e.createElement("div",{className:"point-item",onClick:()=>{var h;return f.mW.push(`${((h=u.kU)==null?void 0:h.memberCenterPath)||u.uu.entrancePoint}`)}},e.createElement("p",null,c(m)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.point"})),e.createElement(A.Z,null))),e.createElement("div",{className:"point-line"}),e.createElement("div",{className:"point-item",onClick:()=>f.mW.push("/buyer/my-coupons")},e.createElement("p",null,c(n)),e.createElement("span",{className:"pending-row"},e.createElement("p",null,(0,a.wv)({id:"profile.user.coupons"})),e.createElement(A.Z,null)))),k=()=>e.createElement("div",{className:"login-btn",onClick:()=>t&&t()},(0,a.wv)({id:"user.member.login",defaultMessage:"LOGIN/REGISTER"}));return e.createElement(e.Fragment,null,s?e.createElement("div",{className:"m-user-info-wrap"},e.createElement("div",{className:"user-center"},e.createElement("div",{className:"right-view",style:{marginLeft:0}},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})))))),e.createElement("div",{className:"dec-value2",dangerouslySetInnerHTML:{__html:(0,a.wv)({id:"user.member.top.dec",defaultMessage:""})}}),k()):e.createElement("div",{className:"m-user-info-wrap"},e.createElement("div",{className:"user-center",style:{paddingBottom:0}},e.createElement("div",{className:"right-view"},e.createElement("div",{className:"dec-wrap"},e.createElement("div",null,e.createElement("div",{className:"dec-name"},(0,a.wv)({id:"user.member.top.hi.2025",defaultMessage:"Hi"})," ",v||"-"," ",e.createElement("span",null,(0,a.wv)({id:"user.member.top.id",defaultMessage:"ID"}),": ",i||"-")))))),w(),e.createElement("div",{className:"mark-top"},e.createElement("div",{className:"mark-top-item",onClick:()=>{var h;return f.mW.push(`${((h=u.kU)==null?void 0:h.memberCenterPath)||u.uu.entrancePoint}`)}}
1,(0,a.wv)({id:"common.sidebar.points.2025",defaultMessage:""}),e.createElement(A.Z,null)))))}var Be=d(80344),H=d(26182),ce=d(96850),Ge=d(45697),q=d.n(Ge),$e=d(88190),Ye=d(23560),ze=d.n(Ye),je=d(93349),Ke=Object.defineProperty,Qe=(l,n,t)=>n in l?Ke(l,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[n]=t,B=(l,n,t)=>Qe(l,typeof n!="symbol"?n+"":n,t),Je=(l,n,t)=>new Promise((r,o)=>{var m=s=>{try{i(t.next(s))}catch(c){o(c)}},v=s=>{try{i(t.throw(s))}catch(c){o(c)}},i=s=>s.done?r(s.value):Promise.resolve(s.value).then(m,v);i((t=t.apply(l,n)).next())});function Xe(l,n){const t=new FileReader;t.addEventListener("load",()=>n(t.result)),t.readAsDataURL(l)}function It(l){const n=l.size/1024/1024<2;return n||message.error(formatMessage({id:"common.upload.sizeExceed",defaultMessage:"\u4E0A\u4F20\u56FE\u7247\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M"})),n}class _ extends e.PureComponent{constructor(n){super(n),B(this,"handleChange",r=>{const{fileList:o,file:m}=r,{status:v,originFileObj:i}=m,s=m.response;if(v==="uploading"){this.setState({loading:!0});return}if(v==="done"&&s){const c=o&&o.length?o[0]:null;c.uid===m.uid&&(c.url=s),Xe(i,w=>{this.setState({value:w,fileItem:c,loading:!1,type:i.type},this.triggerChange)})}}),B(this,"triggerChange",()=>{const{onChange:r}=this.props,{fileItem:o}=this.state;ze()(r)&&o.url&&r({url:Object.values(o.url)[0],type:o.type})}),B(this,"uploadFile",r=>Je(null,null,function*(){const{onSuccess:o,onError:m,file:v,onProgress:i}=r;i({percent:10});try{const s=yield(0,$e.Z)([v]);i({percent:100}),o(s)}catch(s){m(s)}}));const{value:t}=n;this.state={value:t,loading:!1,fileItem:t?{uid:t,url:t,name:t,thumbUrl:t,status:"done"}:null}}render(){const n=this.state.value,{width:t,height:r,imgClassName:o,children:m}=this.props,v=this.props.hasDefault?e.createElement("div",{className:`${o}-div`},e.createElement(N.Z,{className:o,src:this.props.emptyAvatar,width:t,height:r}),e.createElement("p",{className:`${o}-p`},(0,a.wv)({id:"upload.image.videos",defaultMessage:"Images / Videos"}))):e.createElement("div",null,e.createElement(ye.Z,{type:this.state.loading?"loading":"plus"}),e.createElement("div",{className:"ant-upload-text"},e.createElement(R.Z,{id:"common.upload.uploadAvatar",defaultMessage:"\u4E0A\u4F20\u5934\u50CF"}))),i=s=>{if(s){const c=/^data:([^;]+);base64/.exec(s),w=(c==null?void 0:c.length)>0?c[1]:!1;return/^https?:\/\/.+\.(jpg|jpeg|png|gif|webp|bmp|svg)(\?.*)?$/.test(s)||w.startsWith("image/")?e.createElement(N.Z,{className:o,src:s,width:t,height:r}):e.createElement("video",{src:s,style:{width:t,height:r},muted:!0})}else return v};return e.createElement(je.Z,{showUploadList:!1,listType:"picture-card",className:"avatar-uploader",onChange:this.handleChange,customRequest:this.uploadFile,accept:"image/png, image/bmp, image/jpeg, image/gif, video/*"},i(n),m)}}B(_,"propTypes",{width:q().number,height:q().number,onChange:q().func}),B(_,"defaultProps",{width:118,height:118,onChange:()=>{}});var qe=Object.defineProperty,$=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,ue=(l,n,t)=>n in l?qe(l,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[n]=t,ee=(l,n)=>{for(var t in n||(n={}))oe.call(n,t)&&ue(l,t,n[t]);if($)for(var t of $(n))me.call(n,t)&&ue(l,t,n[t]);return l},_e=(l,n)=>{var t={};for(var r in l)oe.call(l,r)&&n.indexOf(r)<0&&(t[r]=l[r]);if(l!=null&&$)for(var r of $(l))n.indexOf(r)<0&&me.call(l,r)&&(t[r]=l[r]);return t},et=(l,n,t)=>new Promise((r,o)=>{var m=s=>{try{i(t.next(s))}catch(c){o(c)}},v=s=>{try{i(t.throw(s))}catch(c){o(c)}},i=s=>s.done?r(s.value):Promise.resolve(s.value).then(m,v);i((t=t.apply(l,n)).next())});function tt(l){const n=l,{visible:t,handleCancel:r}=n,o=_e(n,["visible","handleCancel"]),{currentBreakpoint:m}=(0,W.Z)(),v=m===u.cL.sm,[i]=H.Z.useForm(),[s,c]=e.useState(!1),w=()=>{i.setFieldsValue({email:""}),i.setFieldsValue({content:""}),i.setFieldsValue({imageUrls:""}),r()},k=()=>et(null,null,function*(){var Z;if(!(yield i.validateFields()))return;const p=i.getFieldsValue(),F=typeof p.imageUrls=="string"?p.imageUrls:(Z=p.imageUrls)==null?void 0:Z.url;(yield(0,x.vR)({email:p.email,content:p.content,imageUrls:[F]}))&&(w(),c(!0))}),h=e.createElement("div",{className:"feed-back-content"},v&&e.createElement("div",{className:"feed-back-extra"},e.createElement(X.Z,{onClick:w})),e.createElement("div",{className:"feed-back-title"},(0,a.wv)({id:"profile.user.center.Feedback",defaultMessage:"Feedback"})),e.createElement("div",{className:"feed-back-subtitle"},(0,a.wv)({id:"profile.user.center.feedback.dec",defaultMessage:"Got any feedback or questions about our website? We\u2019d love to hear from you!"})),e.createElement("div",null,e.createElement(H.Z,{form:i,name:"feedback",initialValues:{email:"",content:"",imageUrls:""},scrollToFirstError:!0},e.createElement(H.Z.Item,{name:"email",label:(0,a.wv)({id:"profile.user.center.feedback.email",defaultMessage:""}),rules:[{type:"email",message:(0,a.wv)({id:"profile.user.center.feedback.email.error",defaultMessage:""})},{required:!0,message:(0,a.wv)({id:"profile.user.center.feedback.email.error",defaultMessage:""})}]},e.createElement(ce.Z,null)),e.createElement(H.Z.Item,{name:"content",label:(0,a.wv)({id:"profile.user.center.feedback.content",defaultMessage:""}),rules:[{required:!0,message:(0,a.wv)({id:"profile.user.center.feedback.content.error",defaultMessage:""})}]},e.createElement(ce.Z.TextArea,{showCount:!0,maxLength:1e3})),e.createElement(H.Z.Item,{name:"imageUrls",label:(0,a.wv)({id:"profile.user.center.feedback.upload",defaultMessage:"upload"})},e.createElement(_,{imgClassName:"social",hasDefault:!0,emptyAvatar:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/Frame.png"})))),e.createElement("div",{className:"feed-back-btns"},e.createElement("div",{className:"feed-back-btn cancel",onClick:w},(0,a.wv)({id:"profile.user.center.feedback.btns.cancel",defaultMessage:""})),e.createElement("div",{className:"feed-back-btn ok",onClick:()=>k()},(0,a.wv)({id:"profile.user.center.feedback.btns.ok",defaultMessage:""}))));return v?e.createElement(ne.Z,ee({placement:"bottom",onClose:w,visible:t,className:"eu-comment-drawer2-wrap feed-back-modal",closable:!1,height:"unset",destroyOnClose:!0},o),h):e.createElement(e.Fragment,null,e.createElement(Q.Z,ee({visible:t,width:620,wrapClassName:"eu-comment-modal2-wrap feed-back-modal",onCancel:w,destroyOnClose:!0},o),h),e.createElement(Q.Z,ee({visible:s,width:620,wrapClassName:"eu-comment-modal2-wrap inv
1ite-now-modal",onCancel:()=>{c(!1)}},o),e.createElement("div",{className:"invite-now"},v&&e.createElement("div",{className:"invite-now-extra"},e.createElement(X.Z,{onClick:()=>{c(!1)}})),e.createElement("div",{className:"invite-now-title"}," ",(0,a.wv)({id:"profile.user.center.Feedback",defaultMessage:"Feedback"})),e.createElement("div",{className:"invite-now-subtitle"},(0,a.wv)({id:"profile.user.center.Feedback.modal.subtitle",defaultMessage:"Thank you for taking the time to give your feedback to FlexiSpot! If you ever have any questions, please don't hesitate to contact us."})),e.createElement("div",{className:"invite-now-button",onClick:()=>{c(!1)}},(0,a.wv)({id:"profile.user.center.Feedback.modal.btn",defaultMessage:"I Got It"})))))}var at=d(23386),nt=d(23365),V=(l,n,t)=>new Promise((r,o)=>{var m=s=>{try{i(t.next(s))}catch(c){o(c)}},v=s=>{try{i(t.throw(s))}catch(c){o(c)}},i=s=>s.done?r(s.value):Promise.resolve(s.value).then(m,v);i((t=t.apply(l,n)).next())}),de,ve,pe;const Lt=(de=u.uu)==null?void 0:de.entrancePoint,Pt=((ve=u.kU)==null?void 0:ve.memberCenterPath)||((pe=u.uu)==null?void 0:pe.entrancePoint),lt={UK:"/faqs",DE:"/haeufig-gestellte-fragen",FR:"/faqs",ES:"/support",NL:"/vaak-gestelde-vragen-faq",IT:"/domande-frequenti",PL:"/pomoc"},st={UK:"/contact",DE:"/contact",FR:"/contact",ES:"/contact",NL:"/contact",IT:"/contattaci",PL:"/kontakt"};function rt(){var l,n,t,r;const{refresh:o,user:m={}}=(0,Te.Lq)(),{isTourist:v,avatar:i,nickname:s,email:c,passwordExist:w,extra:{firstName:k,gender:h,lastName:Z,city:y}={},userDetail:{birthday:p,gender:F}={}}=m||{},{currentBreakpoint:S}=(0,W.Z)(),O=S===u.cL.sm,[g,I]=(0,e.useState)(!1),[U,M]=(0,e.useState)(!1),[C,L]=(0,e.useState)(!1),[b,Y]=(0,e.useState)({}),[te,P]=(0,e.useState)(""),[Ft,ct]=(0,e.useState)({}),[ot,fe]=(0,e.useState)(!1),[mt,St]=(0,e.useState)(!(0,at.kZ)({nickname:s,gender:String(h),birthday:p?J()(p.valueOf()).format("MMM DD, YYYY"):"",city:y})),[z,ut]=(0,e.useState)(0),[j,dt]=(0,e.useState)({}),[Ee,vt]=(0,e.useState)({}),[ge,pt]=(0,e.useState)([]),ft=(0,e.useCallback)(()=>V(null,null,function*(){var E,T,he;const D=yield(0,x.q9)();dt({availableAmt:(E=D==null?void 0:D.availableAmt)==null?void 0:E.value,totalAmt:(T=D==null?void 0:D.totalAmt)==null?void 0:T.value,usedAmt:D==null?void 0:D.usedAmt,frozenAmt:(he=D==null?void 0:D.frozenAmt)==null?void 0:he.value})}),[]),Et=(0,e.useCallback)(()=>V(null,null,function*(){const E=yield(0,Be.V)({ownerCouponStatus:"UN_USE",pageNo:1,pageSize:8});ut((E==null?void 0:E.total)||0)}),[]),gt=(0,e.useCallback)(()=>V(null,null,function*(){const E=yield(0,x.me)({customerId:m==null?void 0:m.id});vt(E)})),ht=(0,e.useCallback)(E=>V(null,null,function*(){const T=yield(0,x.at)({customerLevel:E});pt(T)}));(0,e.useEffect)(()=>{var E;return m&&(ft(),Et(),(E=u.kU)!=null&&E.memberCenterPath&&(gt(),ht())),()=>{}},[m]);const Zt=()=>{const E=(0,a.wv)({id:"user.detail.create.modal.title",defaultMessage:"\u63D0\u793A"}),T=(0,a.wv)({id:"common.ceiling.ifSureToLogout",defaultMessage:"\u786E\u5B9A\u9000\u51FA\u767B\u5F55\uFF1F"});(0,be.WD)(E,T,()=>V(null,null,function*(){try{fe(!0),yield(0,we.k)(),nt.Z.remove(),Ue.Z.remove(),yield o("user"),f.mW.push("/login?returnIcon=false")}finally{fe(!1)}}),{isMobile:O},"warning")},Nt=[{title:(0,a.wv)({id:"user.home.tabs.account",defaultMessage:"\u6211\u7684\u8D26\u6237"}),link:"/buyer/profile"},{title:(0,a.wv)({id:"user.home.tabs.address",defaultMessage:"\u6536\u8D27\u5730\u5740"}),link:"/buyer/address-manage"},{title:(0,a.wv)({id:"user.home.tabs.orders",defaultMessage:"\u6211\u7684\u8BA2\u5355"}),link:"/buyer/orders"},{title:(0,a.wv)({id:"user.post.manage.myPoints",defaultMessage:"\u6211\u7684\u4F1A\u5458"}),link:`${((l=u.kU)==null?void 0:l.memberCenterPath)||u.uu.entrancePoint}`},{title:(0,a.wv)({id:"user.post.manage.myCoupons",defaultMessage:"My coupons"}),link:"/buyer/my-coupons"},(n=u.kU)!=null&&n.memberCenterPath?{title:(0,a.wv)({defaultMessage:"Gift Card",id:"common.sidebar.gift.cards"}),link:"/buyer/gift-card"}:!1,{title:(0,a.wv)({id:"user.post.manage.inviteNow",defaultMessage:"Invite friends now"}),link:"/buyer/invite-now",key:"inviteNow"},{title:(0,a.wv)({id:"user.post.manage.inviteList",defaultMessage:"Invite successlist"}),link:"/buyer/invitelist",key:"inviteList"}],wt=[((t=u.kU)==null?void 0:t.memberCenterPath)||u.uu.entrancePoint,"/buyer/my-coupons","/buyer/invite-now","/buyer/invitelist"],At=Nt.filter(E=>u.E4||!wt.includes(E==null?void 0:E.link));function bt(){return V(this,null,function*(){if(!u.E4)return;const E=yield(0,x.UM)();Y((E||[]).find(({calculateScene:T})=>T==="REGISTER")||{}),ct((E||[]).find(({calculateScene:T})=>T==="RECOMMENDREGISTER")||{})})}function yt(){return V(this,null,function*(){if(!u.E4)return;const E=yield(0,x.Sl)();P(E==null?void 0:E.invitationCode)})}const Ot=E=>{E==="inviteNow"?I(!0):E==="inviteList"&&M(!0)};(0,e.useEffect)(()=>{bt(),yt(),o("user")},[o]);const K=()=>{v&&f.mW.push("/login")};return e.createElement(Ne.Z,{spinning:ot},e.createElement("div",{className:"user-home"},(r=u.kU)!=null&&r.memberCenterPath?e.createElement(e.Fragment,null,O?e.createElement(Ve,{user:m,handleIsTourist:K,couponsNum:z,accountAmt:j,userLevel:Ee,queryLevel:ge}):e.createElement(xe,{user:m,handleIsTourist:K,couponsNum:z,accountAmt:j,userLevel:Ee,queryLevel:ge})):e.createElement(e.Fragment,null,O?e.createElement(He,{handleIsTourist:K,user:m,couponsNum:z,accountAmt:j}):e.createElement(We,{handleIsTourist:K,user:m,couponsNum:z,accountAmt:j})),e.createElement("div",{className:"account-center-title"},(0,a.wv)({id:"profile.user.center.account",defaultMessage:""})),e.createElement("div",{className:"account-center"},e.createElement("div",{className:"account-center-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/ra2me.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"},(0,a.wv)({id:"profile.user.center.my.account",defaultMessage:""})),mt&&e.createElement("span",{className:"t2"}
1,(0,a.wv)({id:"common.sidebar.my_account.mark.2025",defaultMessage:""}))),e.createElement("div",{className:"account-center-item-dec"},(0,a.wv)({id:"profile.user.center.Manage.settings",defaultMessage:"Manage your personal info and settings."})),e.createElement("div",{className:"account-center-item-btn",onClick:()=>f.mW.push("/buyer/profile")},(0,a.wv)({id:"profile.user.center.Manage.my.Info",defaultMessage:"Manage My Info"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))),e.createElement("div",{className:"account-center-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/Frame1321316627.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"}," ",(0,a.wv)({id:"profile.user.center.My.orders",defaultMessage:"My orders"}))),e.createElement("div",{className:"account-center-item-dec"},(0,a.wv)({id:"profile.user.center.Track.orders",defaultMessage:"Track your orders anytime."})),e.createElement("div",{className:"account-center-item-btn",onClick:()=>f.mW.push("/buyer/orders?status=all&pageNo=1&from=order")},(0,a.wv)({id:"profile.user.center.View.Orders",defaultMessage:"View My Orders"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))),e.createElement("div",{className:"account-center-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/213.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"},(0,a.wv)({id:"profile.user.center.My.coupons",defaultMessage:"My coupons"}))),e.createElement("div",{className:"account-center-item-dec"},(0,a.wv)({id:"profile.user.center.waiting.used",defaultMessage:"Your savings, waiting to be used. Don\u2019t let them expire!"})),e.createElement("div",{className:"account-center-item-btn",onClick:()=>f.mW.push("/buyer/my-coupons")},(0,a.wv)({id:"profile.user.center.Check.Coupons",defaultMessage:"Check My Coupons"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))),e.createElement("div",{className:"account-center-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/Frame1321316628.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"},(0,a.wv)({id:"profile.user.center.Invite.Friends",defaultMessage:"Invite Friends"})),e.createElement("span",{className:"t2"},"2x ",(0,a.wv)({id:"profile.user.center.Invite.points",defaultMessage:"points"}))),e.createElement("div",{className:"account-center-item-dec"},(0,a.wv)({id:"profile.user.center.Invite.earn.points",defaultMessage:"Invite friends & earn double points. Rewards for both of you!"})),e.createElement("div",{className:"account-center-item-btns"},e.createElement("div",{className:"account-center-item-btn",onClick:()=>I(!0)},(0,a.wv)({id:"profile.user.center.Invite.now",defaultMessage:"Invite now"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))),e.createElement("div",{className:"account-center-item-btn",onClick:()=>M(!0)},(0,a.wv)({id:"profile.user.center.Invitation.list",defaultMessage:"Invitation list"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))))),e.createElement("div",{className:"account-center-title"},(0,a.wv)({id:"profile.user.center.Help.Support",defaultMessage:"Help & Support"})),e.createElement("div",{className:"account-center"},e.createElement("div",{className:"account-center-item help-support-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/a3me.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"},(0,a.wv)({id:"profile.user.center.FAQ",defaultMessage:"FAQ"}))),e.createElement("div",{className:"account-center-item-btn",onClick:()=>f.mW.push(lt[u.NI])},(0,a.wv)({id:"profile.user.center.Need.Help",defaultMessage:"Need Help?"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))),e.createElement("div",{className:"account-center-item help-support-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/Frame.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"}," ",(0,a.wv)({id:"profile.user.center.Contact.Us",defaultMessage:"Contact Us"}))),e.createElement("div",{className:"account-center-item-btn",onClick:()=>f.mW.push(st[u.NI])},(0,a.wv)({id:"profile.user.center.Get.Touch",defaultMessage:"Get in Touch"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))),e.createElement("div",{className:"account-center-item help-support-item feedback-item"},e.createElement(N.i,{className:"account-center-item-logo",src:(0,f.pK)({src:"https://s3.springbeetle.eu/dev-de-s3-flexispot/commodity/item/Fra1me.png"})}),e.createElement("div",{className:"account-center-item-content"},e.createElement("div",{className:"account-center-item-title"},e.createElement("span",{className:"t1"}," ",(0,a.wv)({id:"profile.user.center.Feedback",defaultMessage:"Feedback"}))),e.createElement("div",{className:"account-center-item-btn",onClick:()=>L(!0)},(0,a.wv)({id:"profile.user.center.Welcome.Feedback",defaultMessage:"We Welcome Your Feedback"}),e.createElement("span",null,e.createElement(N.i,{src:"/assets/images/right.png",alt:!0}))))))),e.createElement(Me.Z,{visible:g,pointRule:b,shareCode:te,handleCancel:()=>I(!1),footer:null}),e.createElement(Oe,{visible:U,handleCancel:()=>M(!1),footer:null}),e.createElement(tt,{visible:C,handleCancel:()=>L(!1),footer:null}))}var it=rt})}]);
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.