PageSourceSearch

https://xbubble.ai/xbubble/assets/mall-BnhY56fK.js

js xbubble.ai collected 2026-10-05 13:28:54 UTC 26,711 bytes, 6 lines download raw bytes

1import{a as x,j as e,A as Te,w as Le,q as $e,d as ce,h as Ee,k as de,av as xe,s as D,L as se,f as J,aM as oe,aN as me,aO as pe,b8 as ue,aP as he,n as Be,B as I,b9 as Ue,ba as Oe,O as _e}from"./index-CRPZpX17.js";import{o as te,R as V,P as G,O as Q,C as Y,T as fe,a as qe,v as je,w as be,x as Ne,c as ze}from"./popover-5zndvtb5.js";import{M as ge,f as p,e as T,F as Z,u as He}from"./header-CqtDmtDa.js";import{F as Ie}from"./noPackages-DM38xhD5.js";import{F as We}from"./order_dialog_success-CTvM1juB.js";import{T as ae}from"./switcher-LFj8n8JV.js";import{n as we}from"./sb-loading-BS93ZLM4.js";import{M as ne}from"./minus-C6iqDqBd.js";import{A as Ve,I as Ge}from"./invite-code-page-xhVh6mvp.js";import"./mobile-pending-C6irSst_.js";import"./logo-B8_A0nH6.js";import"./device-status-icons-7iM_qVs6.js";import"./dapposLogo-T2t9YBIw.js";import"./incognito-BoJbb9iM.js";import"./search-BenPg9xh.js";const Qe="/xbubble/assets/bubble-nft-c4drA_Nx.png",K="/xbubble/assets/bubble-point-ClSOxQZa.png",Ye="/xbubble/assets/bubble-up-reRTFdG2.png",Ze=(s,r)=>e.jsxs("svg",{width:"1.2em",height:"1.2em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...s,children:[e.jsx("path",{d:"M2.33594 12.0026V4.66927C2.33594 2.0026 3.0026 1.33594 5.66927 1.33594H10.3359C13.0026 1.33594 13.6693 2.0026 13.6693 4.66927V11.3359C13.6693 11.4293 13.6693 11.5226 13.6626 11.6159",stroke:"#2AAE67",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4.23594 10H13.6693V12.3333C13.6693 13.62 12.6226 14.6667 11.3359 14.6667H4.66927C3.3826 14.6667 2.33594 13.62 2.33594 12.3333V11.9C2.33594 10.8533 3.18927 10 4.23594 10Z",stroke:"#2AAE67",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.33594 4.66406H10.6693",stroke:"#2AAE67",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M5.33594 7H8.66927",stroke:"#2AAE67",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),Ke=x.forwardRef(Ze),Je=(s,r)=>e.jsxs("svg",{width:"1.2em",height:"1.2em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...s,children:[e.jsx("path",{d:"M8 13.3307V10.6641C8 6.25073 9.33333 2.66406 16 2.66406C22.6667 2.66406 24 6.25073 24 10.6641V13.3307",stroke:"#858481",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M15.9974 24.6667C17.8383 24.6667 19.3307 23.1743 19.3307 21.3333C19.3307 19.4924 17.8383 18 15.9974 18C14.1564 18 12.6641 19.4924 12.6641 21.3333C12.6641 23.1743 14.1564 24.6667 15.9974 24.6667Z",stroke:"#858481",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M22.6641 29.3359H9.33073C3.9974 29.3359 2.66406 28.0026 2.66406 22.6693V20.0026C2.66406 14.6693 3.9974 13.3359 9.33073 13.3359H22.6641C27.9974 13.3359 29.3307 14.6693 29.3307 20.0026V22.6693C29.3307 28.0026 27.9974 29.3359 22.6641 29.3359Z",stroke:"#858481",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),ie=x.forwardRef(Je);function Xe({open:s,zIndex:r=70,children:d,className:t=""}){return e.jsx(Te,{children:s&&e.jsx("div",{className:Le("fixed inset-0",t),style:{zIndex:r,backgroundColor:"#f8f8f7",paddingTop:"var(--app-safe-area-top)",paddingBottom:"env(safe-area-inset-bottom)"},children:e.jsx($e.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{duration:.25,ease:"easeInOut"},className:`
2              w-full
3              h-full
4              flex
5              flex-col
6            `,children:d})})})}const W=({children:s,content:r})=>J()?e.jsxs(je,{children:[e.jsx(be,{asChild:!0,children:s}),e.jsx(Ne,{className:"bg-[#34322d] text-white text-[13px] font-medium px-2 py-1 rounded-[8px] z-[120] max-w-[260px] break-words whitespace-normal",children:r})]}):e.jsx(oe,{delayDuration:100,children:e.jsxs(me,{children:[e.jsx(pe,{asChild:!0,children:s}),e.jsx(ue,{children:e.jsx(he,{sideOffset:4,side:"top",align:"center",className:"bg-[#34322d] text-white text-[13px] font-medium px-2 py-1 rounded-[8px] z-[120] max-w-[260px] break-words whitespace-normal",children:r})})]})});function le(s){const r=s.getFullYear(),d=String(s.getMonth()+1).padStart(2,"0"),t=String(s.getDate()).padStart(2,"0"),v=String(s.getHours()).padStart(2,"0"),o=String(s.getMinutes()).padStart(2,"0"),u=String(s.getSeconds()).padStart(2,"0");return`${r}-${d}-${t} ${v}:${o}:${u}`}function es({isMobile:s,open:r,onOpenChange:d,onePointCardNum:t,onePointCardPrice:v,inputValue:o,maxItems:u,canDecrease:O,canIncrease:L,canRedeem:$,receivePoints:_,totalPrice:h,isPending:y,onDecrease:k,onIncrease:b,onInputChange:c,onInputBlur:q,onRedeem:C}){var H;const a=we("mall"),{goldInfo:E,packageApi:N,session:i}=ce(),{data:M,isLoading:S,refetch:g}=Ee({queryKey:["gold-credit-auto-exchange",i==null?void 0:i.address],queryFn:async()=>i!=null&&i.address?N.getGoldCreditAutoExchange({eoaAddress:i.address}):null,enabled:!!(i!=null&&i.address),retry:1}),l=new Date,z=new Date(Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate(),0,0,0)),f=new Date(Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()+1,0,0,0)-1e3),A=a("limitReached",{start:le(z),end:le(f)}),P=(M==null?void 0:M.exists)===!0&&((H=M.record)==null?void 0:H.isPaused)===0,B=Number((E==null?void 0:E.goldBalance)??0)>0,U=B||P,w=de({mutationFn:async m=>i!=null&&i.address?N.updateGoldCreditAutoExchangePause({eoaAddress:i.address,isPaused:m?0:1}):null,onSuccess:async()=>{await g()},onError:m=>{if(xe(m)){D(m.eMsg);return}D("Update auto redeem failed")}}),R=m=>{!(i!=null&&i.address)||w.isPending||S||!B&&(!P||m)||w.mutate(m)};return s?e.jsx(Xe,{open:r,zIndex:70,className:"bg-[#f8f8f7]",children:e.jsxs("div",{className:"flex flex-col h-full pt-4",children:[e.jsx("div",{className:"block px-4 mb-4 md:hidden",children:e.jsx(ge,{pageName:"mall",title:a("dialog_title"),onBack:()=>d(!1)})}),e.jsx("div",{className:"flex-1 px-4 pb-5 overflow-auto ",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"bg-white p-4 rounded-[12px]",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("img",{src:K,className:"w-[120px] block rounded-[12px]"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[16px] text-[#34322d] font-medium",children:a("creditsPrice",{price:t})}),e.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-xs text-[#34322d] font-medium",children:`${v} ${a("coins")}`})]})]})]})}
6),e.jsx("div",{className:"bg-white py-6 px-4 rounded-[12px]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#34322d] font-medium",children:a("quantity")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-[#858481] flex items-center gap-1",children:[e.jsxs("span",{children:[a("dailyLimit"),": "]}),e.jsx(W,{content:a("limit_tip"),children:e.jsx(T,{className:"w-[14px] h-[14px] cursor-pointer"})}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{className:"flex justify-center items-center w-6 h-6 bg-[#f8f7f6] rounded border disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Decrease quantity",title:"Decrease quantity",disabled:!O,onClick:k,children:e.jsx(ne,{className:"w-3 h-3"})}),e.jsx("input",{value:o,onChange:m=>c(m.target.value),onBlur:q,placeholder:"0",inputMode:"numeric",disabled:u===0,className:"bg-[#f8f7f6] px-2 h-6 rounded-[4px] text-center outline-none text-[14px] font-bold text-[#34322d] disabled:text-[#858481] disabled:cursor-not-allowed disabled:opacity-60",style:{width:`${Math.min(4,Math.max(1,o.length||1))*14+32}px`}}),e.jsx("button",{className:"flex justify-center items-center w-6 h-6 bg-[#f8f7f6] rounded border disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Increase quantity",title:"Increase quantity",disabled:!L,onClick:b,children:e.jsx(te,{className:"w-3 h-3"})})]})]})]})}),e.jsx("div",{className:"bg-white py-6 px-4 rounded-[12px]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#34322d] font-medium",children:a("totalPrice")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:h})]})]})}),e.jsx("div",{className:"bg-white p-4 rounded-[12px]",children:e.jsxs("div",{className:"flex flex-col gap-[10px]",children:[e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:a("paymentMethod")}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#646362]",children:a("receive")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Z,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:_})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#646362]",children:a("price")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:h})]})]})]})}),e.jsxs("div",{className:"flex items-center justify-between bg-white py-6 px-4 rounded-[12px]",children:[e.jsxs("div",{className:"flex items-center gap-1 text-sm font-medium text-[#34322d]",children:[e.jsx("span",{children:a("autoRedeem")}),e.jsx(W,{content:a("autoRedeem_tip"),children:e.jsx(T,{className:"w-[14px] h-[14px] cursor-pointer"})})]}),e.jsx(ae,{checked:P,onChange:R,disabled:!(i!=null&&i.address)||S||w.isPending||!U,className:"w-9 h-5 p-[2px] ml-1",spanClassName:"w-4 h-4"})]})]})}),u===0&&e.jsx("div",{className:"mb-1 bg-[#FDF6E6] px-3 py-2 rounded-t-[12px] text-[12px] font-medium leading-[18px] text-[#efa201]",children:A}),e.jsx("div",{className:`shrink-0 bg-white p-4 ${u===0?"":"rounded-t-[12px]"} pb-[calc(16px+env(safe-area-inset-bottom))]`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-[16px] font-semibold text-[#34322d]",children:h})]}),e.jsxs("button",{className:"h-12 px-4 rounded-[12px] bg-[#2aae67] text-sm font-medium text-white hover:bg-[#1b9658] disabled:bg-[#1A1A1980] flex items-center gap-2",disabled:!$||y,onClick:C,children:[y&&e.jsx(se,{className:"w-4 h-4 animate-spin"}),a("redeemNow")]})]})})]})}):e.jsx(V,{open:r,onOpenChange:d,children:e.jsxs(G,{children:[e.jsx(Q,{className:"fixed inset-0 bg-[#05050533] backdrop-blur-[4px]",style:{zIndex:70}}),e.jsxs(Y,{className:"fixed left-1/2 top-1/2 z-[70] w-[calc(100%-32px)] max-w-[420px] -translate-x-1/2 -translate-y-1/2 roun
6ded-[20px] bg-[#f8f8f7] p-5 outline-none",children:[e.jsxs("div",{className:"flex items-start justify-between py-[2px]",children:[e.jsx("div",{children:e.jsx(fe,{className:"text-[18px] leading-[28px] font-semibold text-[#34322d]",children:a("dialog_title")})}),e.jsx(qe,{asChild:!0,children:e.jsxs("button",{className:"w-8 h-8 rounded-full flex items-center justify-center hover:bg-[#F3F3F1]",children:[e.jsx("span",{className:"sr-only",children:"Close"}),e.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"w-5 h-5 text-[#858481]",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6 6 18"}),e.jsx("path",{d:"m6 6 12 12"})]})]})})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[e.jsx("img",{src:K,className:"w-[120px] block rounded-[12px]"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[16px] text-[#34322d] font-medium",children:a("creditsPrice",{price:t})}),e.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-xs text-[#34322d] font-medium",children:`${v} ${a("coins")}`})]})]})]}),e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#34322d] font-medium",children:a("quantity")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-[#858481] flex items-center gap-1",children:[e.jsxs("span",{children:[a("dailyLimit")," "]}),e.jsx(W,{content:a("limit_tip"),children:e.jsx(T,{className:"w-[14px] h-[14px] cursor-pointer"})}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("button",{className:"flex items-center justify-center w-6 h-6 bg-white border rounded disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Decrease quantity",title:"Decrease quantity",disabled:!O,onClick:k,children:e.jsx(ne,{className:"w-3 h-3"})}),e.jsx("input",{value:o,onChange:m=>c(m.target.value),onBlur:q,placeholder:"0",inputMode:"numeric",disabled:u===0,className:"bg-white px-2 h-6 rounded-[4px] text-center outline-none text-[14px] font-bold text-[#34322d] disabled:text-[#858481] disabled:cursor-not-allowed disabled:opacity-60",style:{width:`${Math.min(4,Math.max(1,o.length||1))*14+32}px`}}),e.jsx("button",{className:"flex items-center justify-center w-6 h-6 bg-white border rounded disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Increase quantity",title:"Increase quantity",disabled:!L,onClick:b,children:e.jsx(te,{className:"w-3 h-3"})})]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#34322d] font-medium",children:a("totalPrice")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:h})]})]}),e.jsxs("div",{className:"flex flex-col gap-[10px]",children:[e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:a("paymentMethod")}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#646362]",children:a("receive")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Z,{className:"w-4 h-4 shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:_})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#646362]",children:a("price")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-sm font-medium text-[#34322d]",children:h})]})]})]})]}),e.jsxs("div",{className:"flex items-center justify-between mt-4",children:[e.jsxs("div",{className:"flex items-center gap-1 text-sm font-medium text-[#34322d]",children:[e.jsx("span",{children:a("autoRedeem")}),e.jsx(W,{content:a("autoRedeem_tip"),children:e.jsx(T,{className:"w-[14px] h-[14px] curs
6or-pointer"})})]}),e.jsx(ae,{checked:P,onChange:R,disabled:!(i!=null&&i.address)||S||w.isPending||!U,className:"w-9 h-5 p-[2px] ml-1",spanClassName:"w-4 h-4"})]}),e.jsxs("div",{className:"mt-4",children:[u===0&&e.jsx("div",{className:"mb-1 bg-[#FDF6E6] rounded-t-[12px] px-3 py-2 text-[12px] font-medium leading-[18px] text-[#efa201]",children:A}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(p,{className:"block w-4 h-4"}),e.jsx("span",{className:"text-[16px] font-semibold text-[#34322d]",children:h})]}),e.jsxs("button",{className:"h-12 px-4 rounded-[12px] bg-[#2aae67] text-sm font-medium text-white hover:bg-[#1b9658] disabled:bg-[#1A1A1980] flex items-center gap-2",disabled:!$||y,onClick:C,children:[y&&e.jsx(se,{className:"w-4 h-4 animate-spin"}),a("redeemNow")]})]})]})]})]})})}const re=({children:s,content:r})=>J()?e.jsxs(je,{children:[e.jsx(be,{asChild:!0,children:s}),e.jsx(Ne,{className:"bg-[#34322d] text-white text-[13px] font-medium px-2 py-1 rounded-[8px] z-[120] max-w-[260px] break-words whitespace-normal",children:r})]}):e.jsx(oe,{delayDuration:100,children:e.jsxs(me,{children:[e.jsx(pe,{asChild:!0,children:s}),e.jsx(ue,{children:e.jsx(he,{sideOffset:4,side:"top",align:"center",className:"bg-[#34322d] text-white text-[13px] font-medium px-2 py-1 rounded-[8px] z-[120] max-w-[260px] break-words whitespace-normal",children:r})})]})});function ss(){const s=we("mall");Be();const{openPricingDialog:r}=He(),d=10,{goldInfo:t,packageApi:v,session:o,refreshGoldInfo:u,refreshAccountInfo:O}=ce(),{enhancedPush:L}=ze(),$=J(),[_,h]=x.useState(!1),[y,k]=x.useState(!1),[b,c]=x.useState("0"),[q,C]=x.useState(0),a=x.useRef(!1),[E,N]=x.useState(!1),[i,M]=x.useState("all"),S=Number((t==null?void 0:t.goldBalance)??0)*Number((t==null?void 0:t.redundancyRate)??0),g=x.useMemo(()=>{const j=Number((t==null?void 0:t.goldPricePerCredit)??0)*d;return Math.ceil(j*100)/100},[t==null?void 0:t.goldPricePerCredit,d]),l=x.useMemo(()=>!t||!t.maxPurchasableProductCount?0:t.maxPurchasableProductCount,[t]),z=Number.parseInt(b,10),f=Number.isFinite(z)?z:0,A=Math.max(0,f)*d,P=Math.ceil(Math.max(0,f)*g*100)/100,B=!!(o!=null&&o.address)&&f>=1&&f<=l&&l>0,U=f>0,w=l>0&&f<l,[R,H]=x.useState(()=>Date.now());x.useEffect(()=>{const n=window.setInterval(()=>{H(Date.now())},1e3);return()=>window.clearInterval(n)},[]);const m=x.useMemo(()=>{const n=new Date(R),j=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()+1),F=Math.floor((j-R)/1e3),Re=String(Math.floor(F/3600)).padStart(2,"0"),Fe=String(Math.floor(F%3600/60)).padStart(2,"0"),De=String(F%60).padStart(2,"0");return`${Re}:${Fe}:${De}`},[R]);x.useEffect(()=>{a.current||t&&(c(l>0?"1":"0"),a.current=!0)},[t,l]);const X=de({mutationFn:async()=>!(o!=null&&o.address)||!B?null:v.createGoldCreditExchange({eoaAddress:o.address,creditAmount:A}),onSuccess:n=>{n&&(C(n.redeemedCredit??A),h(!1),k(!0),c(l>0?"1":"0"),u(),O())},onError:n=>{if(xe(n)){D(n.eMsg);return}D("Redeem failed")}}),ve=()=>{if(l<=0){c("0");return}if(b.trim()===""){c("0");return}const n=Number(b);if(!Number.isFinite(n)){c("0");return}if(n>l){c(String(l)),D("Exceeds daily limit");return}if(n<0){c("0");return}c(String(Math.floor(n)))},ye=n=>{if(!/^\d*$/.test(n))return;if(n===""){c(n);return}const j=n.replace(/^0+(?=\d)/,""),F=Number(j);if(Number.isFinite(F)){if(l>0&&F>l){c(String(l)),D("Exceeds daily limit");return}c(j)}},ke=()=>{U&&c(String(f-1))},Ce=()=>{w&&c(String(f+1))},ee=()=>l>0?"1":"0",Me=()=>{if(S<g){N(!0);return}c(ee()),C(0),h(!0)},Se=()=>{L("/mall/history")},Ae=()=>{if($){r();return}L("/pricing")},Pe=[{id:"all",label:"tabs_all"},{id:"ai",label:"tabs_ai"},{id:"merch",label:"tabs_merch"},{id:"event",label:"tabs_event"},{id:"electronic",label:"tabs_electronic"}];return e.jsxs("div",{className:"mx-auto max-w-[800px] pb-5 sm:pb-8 lg:pb-8",children:[e.jsxs("div",{className:"sticky top-0 z-10 bg-[#f8f8f7] pt-6 sm:pt-8 px-4 ",children:[e.jsx("div",{className:"block mb-4 md:hidden",children:e.jsx(ge,{pageName:"mall",title:s("clubStore")})}),e.jsx("div",{className:"items-center hidden gap-4 md:flex",children:e.jsx("div",{className:"text-[#34322d] font-semibold text-[20px] md:text-[24px] leading-[28px] md:leading-[42px]",children:s("clubStore")})}),e.jsxs("div",{className:"py-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-[12px] font-medium text-[#858481]",children:s("coinBalance")}),e.jsx(re,{content:s("bubble_point_tip"),children:e.jsx(T,{className:"w-[14px] h-[14px] curs
6or-pointer"})})]}),e.jsxs("div",{className:"flex items-center gap-1 cursor-pointer",onClick:Se,children:[e.jsx(Ke,{className:"w-4 h-4"}),e.jsx("span",{className:"text-[#2aae67] text-[12px]",children:s("history")})]})]}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx(p,{className:"block w-7 h-7"}),e.jsx("span",{className:"text-[24px] leading-[30px] font-semibold text-[#34322d]",children:(t==null?void 0:t.goldBalance)??0})]})]}),e.jsx("div",{className:"flex items-center gap-2 py-2",children:Pe.map(n=>{const j=i===n.id;return e.jsx("div",{onClick:()=>M(n.id),className:`px-2 py-1 rounded-[8px] text-sm cursor-pointer transition-colors border ${j?"bg-[#0505050D] text-[#34322d]":"text-[#858481] bg-transparent"}`,children:s(n.label)},n.id)})})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 px-4 mt-4 md:grid-cols-2",children:[["all","ai"].includes(i)&&e.jsxs("div",{className:"rounded-[12px] border border-[#0000000F] bg-white p-4 flex flex-col",children:[e.jsx("div",{className:"",children:e.jsx("img",{src:K,className:"h-[172px] w-full rounded-[12px] object-cover"})}),e.jsxs("div",{className:"flex items-start justify-between mt-4",children:[e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("div",{className:"text-sm font-semibold text-[#34322d]",children:s("creditsPrice",{price:d})}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx(p,{className:"block w-5 h-5"}),e.jsx("span",{className:"text-[#34322d] font-medium text-sm",children:g})]})]}),e.jsxs("div",{className:"flex flex-col items-end text-xs text-[#858481] leading-[20px]",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsxs("span",{children:[s("dailyLimit")," "]}),e.jsx(re,{content:s("limit_tip"),children:e.jsx(T,{className:"w-[14px] h-[14px] cursor-pointer"})}),e.jsx("span",{children:s("items",{amount:l})})]}),S>=g&&e.jsxs("span",{children:["(",s("resetsAt")," ",m,")"]})]})]}),e.jsx(I,{className:"mt-4 h-10 rounded-[10px] bg-[#2aae67] text-white hover:bg-[#1b9658]",onClick:Me,children:s("redeem")})]}),["all","ai"].includes(i)&&e.jsxs("div",{className:"rounded-[12px] border border-[#0000000F] bg-white p-4 flex flex-col",children:[e.jsxs("div",{className:"relative rounded-[12px] overflow-hidden w-fit",children:[e.jsx("img",{src:Ye,className:"h-[172px] w-full rounded-[12px] object-cover"}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-white/70 backdrop-blur-[8px]",children:[e.jsx(ie,{className:"w-8 h-8 mb-2 text-[#858481]"}),e.jsx("span",{className:"text-sm font-medium text-[#858481]",children:s("comingSoon")})]})]}),e.jsxs("div",{className:"flex items-start justify-between mt-4",children:[e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("div",{className:" text-sm  font-semibold text-[#34322d]",children:s("bubble_up")}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx(p,{className:"block w-5 h-5"}),e.jsx("span",{className:"text-[#34322d] font-medium text-sm",children:"2000"})]})]}),e.jsx("div",{className:"flex flex-col items-end text-xs text-[#858481] leading-[20px]"})]}),e.jsx("button",{className:"mt-4 h-10 rounded-[10px] bg-[#1A1A1980] text-white text-sm font-medium",disabled:!0,children:s("comingSoon")})]}),["merch","all"].includes(i)&&e.jsxs("div",{className:"rounded-[12px] border border-[#0000000F] bg-white p-4 flex flex-col",children:[e.jsxs("div",{className:"relative rounded-[12px] overflow-hidden w-fit",children:[e.jsx("img",{src:Qe,className:"h-[172px] w-full rounded-[12px] object-cover"}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-white/70 backdrop-blur-[8px]",children:[e.jsx(ie,{className:"w-8 h-8 mb-2"}),e.jsx("span",{className:"text-sm font-medium text-[#858481]",children:s("comingSoon")})]})]}),e.jsxs("div",{className:"flex items-start justify-between mt-4",children:[e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsx("div",{className:"text-sm  font-semibold text-[#34322d]",children:s("nft")}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx(p,{className:"block w-5 h-5"}),e.jsx("span",{className:"text-[#34322d] font-medium text-sm",children:"? ?"})]})]}),e.jsx("div",{className:"flex flex-col items-end text-xs text-[#858481] leading-[20px]"})]}),e.jsx("button",{className:"mt-4 h-10 rounded-[10px] bg-[#1A1A1980] text-white text-sm font-medium",disabled:!0,children:s("comingSoon")})]})]}),["event","electronic"].includes(i)&&e.jsx("div",{className:"px-4 ",children:e.jsx("div",{className:"rounded-[12px] border border-[#0000000F] w-full ",children:e.jsxs("div",{className:"text-sm text-[#858481]  flex flex-col gap-2 min-h-[200px] items-center justify-center",children:[e.jsx(Ie,{className:"w-6 h-6"}),s("comingSoon")]})})}),e.jsx(es,{isMobile:$,open:_,onOpenChange:n=>
6{n&&(c(ee()),C(0)),h(n)},onePointCardNum:d,onePointCardPrice:g,inputValue:b,maxItems:l,canDecrease:U,canIncrease:w,canRedeem:B,receivePoints:A,totalPrice:P,isPending:X.isPending,onDecrease:ke,onIncrease:Ce,onInputChange:ye,onInputBlur:ve,onRedeem:()=>X.mutate()}),e.jsx(V,{open:y,onOpenChange:k,children:e.jsxs(G,{children:[e.jsx(Q,{className:"fixed inset-0 bg-[#05050533] backdrop-blur-[4px]",style:{zIndex:70}}),e.jsx(Y,{className:"fixed left-1/2 top-1/2 z-[70] w-[calc(100%-32px)] max-w-[420px] -translate-x-1/2 -translate-y-1/2 rounded-[20px] bg-white p-4 outline-none",children:e.jsxs("div",{className:"flex flex-col items-center pb-2 mt-6 text-center",children:[e.jsx(We,{className:"w-14 h-14 text-[#2aae67]"}),e.jsx("div",{className:"mt-4 text-[18px] font-medium text-[#1d1c1b]",children:s("successful")}),e.jsxs("div",{className:"mt-2 flex items-center gap-1 text-[14px] text-[#1d1c1b] font-medium",children:[s("received"),e.jsx(Z,{className:"w-4 h-4"}),e.jsx("span",{className:"font-bold",children:q})]}),e.jsx(I,{className:"w-full mt-6 h-10 rounded-[12px] bg-[#2aae67] text-white hover:bg-[#1b9658]",onClick:()=>k(!1),children:s("ok")})]})})]})}),e.jsx(V,{open:E,onOpenChange:N,children:e.jsxs(G,{children:[e.jsx(Q,{className:"fixed inset-0 bg-[#05050533] backdrop-blur-[4px]",style:{zIndex:70}}),e.jsxs(Y,{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-32px)] md:w-[408px] bg-white rounded-[24px] overflow-hidden flex flex-col items-center text-center pt-10 px-4 pb-4",style:{zIndex:70},children:[e.jsx(fe,{className:"text-[18px] text-[#1d1c1b] font-medium mb-2",children:s("unlockAccess")}),e.jsx("p",{className:"text-[#1d1c1b] text-[14px] font-medium mb-6 whitespace-pre-line",children:s("unlockAccess_des")}),e.jsxs("div",{className:"flex w-full gap-2",children:[e.jsx(I,{className:"flex-1 py-3 rounded-[12px]",variant:"default",onClick:()=>{Ae(),N(!1)},children:s("purchase")}),e.jsx(I,{className:"flex-1 py-3 rounded-[12px]",variant:"outline",onClick:()=>N(!1),children:s("cancel")})]})]})]})})]})}function ts(){return e.jsx(ss,{})}const bs=function(){const r=Ue.useSearch();return Oe({select:t=>t.pathname}).endsWith("/mall/history")?e.jsx(_e,{}):e.jsx(Ve,{fallback:e.jsx(Ge,{referral:r.referral}),children:e.jsx(ts,{})})};export{bs as component};

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.