PageSourceSearch

https://ds.zopi.io/assets/js/module-DOc9JcjR.js

js zopi.io collected 2026-09-24 09:54:00 UTC 21,861 bytes, 1 lines download raw bytes

1import{j as e,r as M,a as oe}from"./module-g4nfU4qS.js";import{l as E}from"./module-kEjItqhR.js";import{c as ne}from"./module-BjfZYBMc.js";import{r as K,c as ie,R as G,av as W,e as Q,b as le,P as ce,p as m,M as de,j as T,a6 as A,F as R,b8 as me,a as pe,c1 as he}from"../index-DWyIa0gL.js";import{v as ue,D as xe,f as S,M as ge}from"./module-CxltrVFs.js";import{bZ as be,m as c,l as i,au as Z,n as b,ca as Ce,k as ve,aE as Y,p as B,aD as je,by as fe}from"./module-CndrmyLu.js";import{h as k}from"./module-CLsn7ldt.js";import"./module-D2RLwbSq.js";import"./module-ClTBx2Nk.js";import"./module-B0vxmspb.js";import"./module-DtACTtM6.js";import"./module-BI5bqnt8.js";import"./module-DiCIOLtz.js";import"./module-BK4nBkK6.js";import"./module-BRy6BJs6.js";import{u as U}from"./module-CVphjg2G.js";import"./module-BnWCsivz.js";import"./module-CkAgo4Og.js";import"./module-BndIsuim.js";import"./module-CLuAD4R5.js";import"./module-DYLXRpC5.js";import"./module-CP88euwI.js";import"./module-CbyKh5Um.js";import"./module-CpA3Gb_i.js";import"./module-BzM7VDfa.js";import"./module-DHVO85nS.js";import"./module-BSPv5tIW.js";import"./module-BHCKjyDG.js";import"./module-M2MMyV6m.js";import"./module-AkyW2Ruw.js";import"./module-BBruC8m-.js";import"./module-arTw0fVe.js";import"./module-CYrDBt6T.js";import"./module-DCoKLf-v.js";import"./module-CNVTF9TH.js";import"./module-8JwjhRSi.js";import"./module-JSaEjBuK.js";import"./module-UTIhDGpo.js";import"./module-DFeDTf4p.js";import"./module-YfaRQf3K.js";import"./module-duNjR6wQ.js";import"./module-tV3IJ5Y1.js";import"./module-C4TimWWB.js";import"./module-CZPcUW2s.js";import"./module-DHRHeQUK.js";import"./module-DkegjUUZ.js";import"./module-v-CXq_RL.js";import"./module-BDscFCCP.js";import"./module-aXdEWYlg.js";import"./module-B4SPueXG.js";import"./module-ubDpl0_R.js";import"./module-B_AESZ67.js";import"./module-C2S2-HMR.js";import"./module-JW1JAliT.js";import"./module-Dz8i_Leu.js";import"./module-BJwyIH4s.js";import"./module-BaA5LyCG.js";import"./module-D0mFdbeO.js";import"./module-Dk6e9ee8.js";import"./module-CDjUV5Ju.js";import"./module-BkD7Hj8s.js";import"./module-Cp8br37W.js";import"./module-CzD4bSOQ.js";import"./module-9lF95FHy.js";import"./module-BtzVbTB5.js";import"./module-D28oVHB0.js";import"./module-CimkQT29.js";import"./module-BUHjN4Hc.js";import"./module-BZ4M8-NE.js";import"./module-DMW1B1t5.js";import"./module-v8jY9nGA.js";import"./module-YKhy6aow.js";import"./module-BZ17SRdx.js";import"./module-BEIsiqOv.js";import"./module-fFtbNF-F.js";import"./module-DEtA-KhA.js";import"./module-CPh8vZck.js";import"./module-DKECUIcb.js";import"./module-Cxv9J64N.js";import"./module-BINVifEP.js";import"./module-B1TVd3K4.js";import"./module-BiI3u42N.js";import"./module-B-dksMZM.js";import"./module-B3BJzVxn.js";import"./module-CeFpPFS8.js";import"./module-BBjH2Bj1.js";import"./module-vs-8EVL6.js";import"./module-DKNNaWzV.js";import"./module-B57D9Y1u.js";import"./module-DsmTx7if.js";import"./module-6E4L_h32.js";import"./module-B5iLQXnX.js";import"./module-eWZP5eA7.js";import"./module-C-FQGDW9.js";import"./module-4S-c4oHJ.js";import"./module-DfWnE5ms.js";import"./module-WX_comao.js";import"./module-BJMi48_2.js";import"./module-MyE73HNZ.js";import"./module-D6GhiVEH.js";import"./module-Cl3hj7Sz.js";import"./module-FxXdmyPN.js";import"./module-FqpXQuLt.js";import"./module-D7zKsYo2.js";import"./module-C1gvLhAf.js";import"./module-B_b8ryxu.js";import"./module-Cv-JDcMf.js";import"./module-DYCwc-sD.js";import"./module-Ch_qCilz.js";import"./module-DWCyG3-x.js";import"./module-D4_bCcMT.js";import"./module-CNs1qBpV.js";import"./module-DI2Ne2_A.js";import"./module-C3-224fz.js";import"./module-C9ANKk3v.js";import"./module-CpL0MGZq.js";import"./module-DbIWH81b.js";import"./module-DrRIdSP-.js";import"./module-BSLCDnTV.js";import"./module-DjYUzTuj.js";import"./module-vcVAUzeC.js";import"./module-GAKWmy7o.js";import"./module-PQCKh0dx.js";import"./module-CEEhGtWX.js";import"./module-B7hx6Bgd.js";import"./module-BJwr7tuA.js";import"./module-BQobnMtX.js";import"./module-BMgpUYTo.js";import"./module-DbKNfynz.js";import"./module-C_aolqmU.js";
1import"./module-Cjxe2-Wq.js";import"./module-ZLXBeeQ1.js";import"./module--gfxRhYI.js";import"./module-Dsow35wU.js";import"./module-60F3QETU.js";import"./module-D8znQY54.js";import"./module-CPveMqlj.js";import"./module-D1zfnBJe.js";import"./module-D9KQvrmg.js";import"./module-FjFE2uWm.js";import"./module-xMQ5YY98.js";import"./module-Bx45xMUt.js";import"./module-DD3iYX1K.js";import"./module-D5ZndoG6.js";import"./module-DMkqpeS_.js";import"./module-CWBJcU5N.js";import"./module-D4Wp6AEg.js";import"./module-BgBfM8ME.js";import"./module-D46m5wfe.js";import"./module-DOgs_Y3Z.js";import"./module-CH9fmmFv.js";import"./module-7ux2xnsv.js";import"./module-CqnTjJDb.js";import"./module-DjKU-xAz.js";import"./module-C0ijFVsX.js";import"./module-B6B9y572.js";import"./module-DhTU8B_4.js";import"./module-5eLbDUjv.js";import"./module-c2V3InAJ.js";import"./module-SNETSEGx.js";import"./module-Qe-ESUUc.js";import"./module-Cj9qKt6Q.js";import"./module-B7EQxdU6.js";import"./module-DvhhVmnL.js";import"./module-CLQgGlmV.js";import"./module-CtXnX3Xp.js";import"./module-DZ4MRfGb.js";import"./module-BXLLueiB.js";import"./module-Bh5dGB7-.js";import"./module-ChDEcKkm.js";import"./module-viLe5jBK.js";import"./module-DYRc1myh.js";import"./module-D-CCuB3j.js";import"./module-C-Y3moQM.js";import"./module-BmLAdfv_.js";import"./module-CQoQLGZn.js";import"./module-CsOSqbjs.js";import"./module-DpV-RknM.js";import"./module-BtHhgq7k.js";import"./module-aFQBCvBX.js";import"./module-CCzXKaxK.js";import"./module-Cgx2k5hB.js";import"./module-CFxIfOSP.js";import"./module-xvpIGbSh.js";const ye=p=>e.jsx(be,{...p}),z={GET_GMV_CURRENT:"orders/v11/cashback/gmv/current",GET_GMV_COMPARISON:"orders/v11/cashback/gmv/comparison"},_e=()=>K(z.GET_GMV_CURRENT,{},{method:"GET"}),ke=()=>K(z.GET_GMV_COMPARISON,{},{method:"GET"}),$={getGMVCurrent:_e,getGMVComparison:ke},X=M.createContext({}),Me=()=>M.useContext(X),we=({children:p})=>{const{getUserInfo:g}=ie(),d=g(),j=G.GENERAL_SETTING.SUBROUTES.ORDER_CASHBACK.TITLE,{data:a}=U({queryKey:W.settings.orderCashbackCurrent(),queryFn:async()=>{const{data:C}=await $.getGMVCurrent();return C},enabled:!!d.id,staleTime:0}),{data:x}=U({queryKey:W.settings.orderCashbackComparison(),queryFn:async()=>{const{data:C}=await $.getGMVComparison();return C},enabled:!!d.id,staleTime:0});return e.jsxs(X.Provider,{value:{orderCashbackCurrent:a||{},orderCashbackComparison:x||{}},children:[e.jsx(ue,{title:j,content:j}),p]})},Se=()=>{const{isMobile:p}=Q(),{orderCashbackCurrent:g,orderCashbackComparison:d}=Me();if(!le().hasPermission([ce.VIEW_SETTING_WALLET_CASHBACK]))return null;const[a,x]=M.useState(!1),{cashback_rates:C,gmv_usd_current_month:h=0}=g,t=C?Object.keys(C).sort().map(r=>({level:r,...C[r]})):[],o=t.length,u=(()=>{for(let r=0;r<t.length;r++){const s=t[r],n=s.min_gmv_usd,f=s.max_gmv_usd===-1?1/0:s.max_gmv_usd;if(h>=n&&h<=f)return r}return o-1})(),l=t[u],y=r=>o<=1||r===0?0:r===o-1?100:r/(o-1)*100,J=(()=>{if(t.length===0||!l)return 0;const r=y(u),s=u===o-1?100:y(u+1),n=l.min_gmv_usd,v=(l.max_gmv_usd===-1?n+1e4:l.max_gmv_usd)-n;if(v===0)return r;const I=Math.min(1,Math.max(0,(h-n)/v)),ae=r+I*(s-r);return Math.min(100,Math.max(0,ae))})(),F=(()=>{if(!l||t.length===0||u===t.length-1&&l.max_gmv_usd===-1)return null;if(l.max_gmv_usd===-1&&u<t.length-1){const r=t[u+1];return{remainingAmount:r.min_gmv_usd-h,nextRange:r,currentRange:l}}if(l.max_gmv_usd!==-1&&h<l.max_gmv_usd){const r=t[u+1];return{remainingAmount:l.max_gmv_usd-h,nextRange:r,currentRange:l}}if(u<t.length-1){const r=t[u+1];return{remainingAmount:r.min_gmv_usd-h,nextRange:r,currentRange:l}}return null})(),N=F?.remainingAmount??null,D=F?.nextRange??null,w=r=>r===-1||r===1/0?"∞":`$${r.toLocaleString()}`,ee=k().startOf("month").format("MMM DD"),re=k().endOf("month").format("MMM DD"),L=!E.size(d),_=L?[{key:k().format("YYYY-MM-DD"),value:0}]:Object.keys(d.gmv_usd_current_daily??{}).map(r=>({key:r,value:d.gmv_usd_current_daily?.[r]??0})),P=L?[{key:k().format("YYYY-MM-DD"),value:0}]:Object.keys(d.gmv_usd_another_daily??{}).map(r=>({key:r,value:d.gmv_usd_another_daily?.[r]??0})),te=[{shape:"Line",name:"",series:[{name:"Your GMV",color:"#67C9FF",data:_}]},{shape:"Bar",name:"",series:[{name:"Market average GMV",color:"#67C9FF",data:P}]}],se=[{name:"Your GMV",data:_,color:"#67C9FF"},{name:"Market average GMV",data:P,color:"#67C9FF",isComparison:!0}],V=()=>e.jsx(c,{padding:"400",borderRadius:"200",borderWidth:"025",borderColor:"border",children:e.jsxs(i,{gap:"400",children:[e.jsxs(b,{gap:"100",blockAlign:"center",align:"space-between",children:[e.jsx(m,{as:"span",variant:"bodyMd",tone:"subdued",children:"Market comparison (GMV)"}),e.jsx(R,{variant:"tertiary",icon:ve,onClick:()=>x(!1)})]}),e.jsx("div",{className:"max-h",children:e.jsx(xe.LineChart,{loading:L,chartContainer:{minHeight:230},data:se,renderLegendContent:({getColorVisionStyles:r,getColorVisionEventAttrs:s},n=-1)=>e.jsx(Ee,{datasets:te,getColorVisionEventAttrs:s,getColorVisionStyles:r}),tooltipOptions:{renderTooltipContent:r=>{const{activeIndex:s,dataSeries:n}=r,f=n[0].data[s].value??0,v=n[1].data[s].value??0;return!f||!v?e.jsx(e.Fragment,{}):f<v?e.jsxs("div",{className:"bg-[#70707B] rounded-2xl px-2 py-05 text-white",children:[" ","You’re below ",(f/v*100).toFixed(2),"% average"]}):e.jsxs("div",{className:"bg-[#70707B] rounded-2xl px-2 py-05 text-white",children:["You’re below ",(f/v*100).toFixed(2),"% average"]})}},xAxisOptions:{labelFormatter:r=>{const s=E.findIndex(_,{key:r+""});return k(_[s].key).format("DD")}},yAxisOptions:{labelFormatter:r=>me(Number(r)||0)}},E.size(_)+"")})]})});return e.jsx(c,{padding:"400",children:e.jsxs(i,{gap:"300",children:[e.jsx(i,{gap:"200",children:e.jsx(m,{variant:"headingSm",as:"span",fontWeight:"semibold",children:"Order cashback"})}),e.jsxs(Z,{columns:p?1:a?"3.5fr 2.5fr":1,gap:"400",children:[e.jsx(c,{padding:"400",borderRadius:"200",borderWidth:"025",borderColor:"border",children:e.jsxs(i,{gap:"400",children:[e.jsxs(b,{gap:"100",blockAlign:"center",align:"space-between",wrap:!1,children:[e.jsxs(m,{as:"span",variant:"bodyMd",tone:"subdued",children:["Current GMV (",ee," - ",re,")"]}),!a&&e.jsx("div",{className:"[&_span]:text-icon-emphasis cursor-pointer",onClick:()=>x(!a),children:e.jsxs(b,{blockAlign:"center",gap:"100",wrap:!1,children:[e.jsxs(c,{children:[e.jsx(de,{source:Ce})," "]}),!p&&e.jsx(m,{as:"span",children:"Market comparison"})]})})]}),e.jsx(c,{children:e.jsxs(i,{gap:"400",children:[e.jsxs(c,{children:[e.jsx(m,{as:"span",fontWeight:"semibold",variant:"heading3xl",children:w(h)}),e.jsx("div",{className:"w-full mx-auto px-4 py-6",children:e.jsxs("div",{className:"relative",style:{userSelect:"none"},children:[e.jsx("div",{className:"relative mb-5",children:t.map((r,s)=>{const n=y(s);return e.jsx("div",{className:"absolute",style:{left:`${Math.min(100,Math.max(0,n))}%`,transform:"translateX(-50%)"},children:e.jsxs("div",{className:T("relative bottom-4 bg-gray-800 text-white text-xs px-[6px] py-[4px] rounded whitespace-nowrap z-20",s===0?"left-[10px]":s===t.length-1?"right-[10px]":"left-1/2 -translate-x-1/2",r.level===l?.level?"bg-gray-800":"bg-[#F2F2F2] border-[#
1E6E6E6] border-1",r.level===l?.level?"text-[#C1C1C1]":"text-[#494949]"),children:[e.jsxs("div",{className:"text-xs",children:[r.cashback_rate,"%"]}),r.level===l?.level?e.jsx("div",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-l-transparent border-r-transparent border-t-gray-800"}):null]})},`rate-${r.level}`)})}),e.jsxs("div",{className:"relative h-12 flex items-center",children:[e.jsx("div",{className:"absolute top-1/2 left-0 w-full h-[6px] bg-gray-200 rounded-full -translate-y-1/2 z-0"}),e.jsx("div",{className:"absolute top-1/2 left-0 h-[6px] bg-gray-600 rounded-full -translate-y-1/2 z-10",style:{width:`${Math.min(100,Math.max(0,J))}%`}}),t.map((r,s)=>{const n=s===0?1:s==t.length-1?99:y(s);return e.jsx("div",{className:"absolute top-[calc(50%-2.5px)] -translate-y-1/2 z-5",style:{left:`${Math.min(100,Math.max(0,n))}%`,transform:"translate(-50%, -50%)"},children:e.jsx("div",{className:T("w-[2px] h-[4px] bg-[#CCCCCC] rounded-t-2xl",r.max_gmv_usd<h&&r.max_gmv_usd!==-1||!s?"bg-[#026466]":"bg-gray-200")})},`line-${r.level}`)})]}),e.jsx("div",{className:"relative mt-1",children:t.map((r,s)=>{const n=y(s),v=s===t.length-1&&r.max_gmv_usd===-1?`${w(r.min_gmv_usd)}+`:w(r.min_gmv_usd),I=n===0?"10px":n===100?"calc(100% - 25px)":`${Math.min(100,Math.max(0,n))}%`;return e.jsx("div",{className:T("absolute text-xs text-gray-600"),style:{left:I,transform:"translateX(-50%)"},children:v},`money-${r.level}`)})})]})})," "]}),N!==null&&N>0&&D&&e.jsx("div",{children:e.jsx(c,{borderRadius:"300",borderWidth:"025",background:"bg-surface-info",borderColor:"border-info",padding:"300",children:e.jsxs(b,{wrap:!1,gap:"100",blockAlign:"center",children:[e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.71574 14.5831C9.7509 14.5879 9.78617 14.5918 9.8215 14.5948L11.2218 17.0349C11.5999 17.6938 12.5457 17.707 12.9422 17.0589L13.4202 16.2774L14.647 16.2774C15.4188 16.2774 15.8997 15.4402 15.5108 14.7736L14.3438 12.773C14.7894 12.2969 15.0146 11.6128 14.8472 10.8928C14.7922 10.6563 14.8938 10.4109 15.1 10.2825C16.3996 9.47334 16.3996 7.58157 15.1 6.77236C14.8938 6.64398 14.7922 6.39863 14.8472 6.16206C15.1939 4.67093 13.8563 3.33325 12.3651 3.67999C12.1286 3.735 11.8832 3.63337 11.7548 3.42719C10.9456 2.12762 9.05386 2.12762 8.24465 3.42719C8.11627 3.63337 7.87092 3.735 7.63435 3.67999C6.14322 3.33325 4.80554 4.67093 5.15228 6.16206C5.20729 6.39863 5.10566 6.64398 4.89948 6.77236C3.59991 7.58157 3.59991 9.47334 4.89948 10.2825C5.10566 10.4109 5.20729 10.6563 5.15228 10.8928C5.01814 11.4697 5.13608 12.0236 5.41747 12.4658L4.07132 14.7736C3.68244 15.4402 4.1633 16.2774 4.93509 16.2774L6.09842 16.2774L6.64839 17.1023C7.06368 17.7252 7.99101 17.6877 8.35458 17.0332L9.71574 14.5831ZM8.40564 13.8526C8.34822 13.7826 8.29439 13.7076 8.24465 13.6277C8.11627 13.4215 7.87092 13.3199 7.63435 13.3749C7.2852 13.4561 6.94447 13.4449 6.6318 13.3611L5.80561 14.7774L6.36602 14.7774C6.70036 14.7774 7.01258 14.9445 7.19804 15.2227L7.44156 15.588L8.40564 13.8526ZM12.9876 13.4251L13.7765 14.7774L13.1399 14.7774C12.7917 14.7774 12.4686 14.9586 12.2869 15.2556L12.1028 15.5565L11.2952 14.1492C11.47 14.0083 11.6261 13.8344 11.7548 13.6277C11.8832 13.4215 12.1286 13.3199 12.3651 13.3749C12.5772 13.4242 12.7862 13.4395 12.9876 13.4251ZM9.51798 12.8348C9.7401 13.1916 10.2594 13.1916 10.4815 12.8348C10.9492 12.0837 11.843 11.7135 12.7049 11.9139C13.1142 12.0091 13.4814 11.6419 13.3862 11.2326C13.1858 10.3707 13.556 9.47692 14.3071 9.00922C14.6639 8.78709 14.6639 8.26781 14.3071 8.04569C13.556 7.57799 13.1858 6.68416 13.3862 5.82232C13.4814 5.41302 13.1142 5.04583 12.7049 5.14101C11.843 5.34141 10.9492 4.97118 10.4815 4.22006C10.2594 3.86333 9.7401 3.86333 9.51798 4.22006C9.05028 4.97118 8.15645 5.34141 7.29461 5.14101C6.88531 5.04583 6.51812 5.41302 6.6133 5.82232C6.8137 6.68416 6.44347 7.57799 5.69235 8.04569C5.33562 8.26781 5.33562 8.78709 5.69235 9.00922C6.44347 9.47692 6.8137 10.3707 6.6133 11.2326C6.51812 11.6419 6.88531 12.0091 7.29461 11.9139C8.15645 11.7135 9.05028 12.0837 9.51798 12.8348Z",fill:"#005BD3"})}),e.jsxs("div",{className:"text-icon-emphasis",children:[e.jsxs("span",{className:"font-semibold",children:[" ",w(N)]})," more GMV to get"," ",D?.cashback_rate??0,"% extra cashback"]})]})})})]})})]})}),a&&!p&&V(),p&&e.jsx(A,{id:"collapsible-market-comparison",open:a,transition:{duration:"400ms",timingFunction:"ease-in-out"},children:V()})]})]})})},Ee=({datasets:p,getColorVisionStyles:g,getColorVisionEventAttrs:d})=>{const j=e.jsxs(e.Fragment,{children:[" ",p.map((a,x)=>e.jsx("div",{...d(x),children:e.jsx(b,{children:e.jsx(c,{paddingInline:"200",borderRadius:"200",opacity:g(x).opacity+"",children:e.jsxs(b,{wrap:!1,gap:"100",blockAlign:"center",children:[a.shape==="Line"?e.jsx("svg",{className:"_SVG_8b5v1_5",height:"2px",viewBox:"0 0 12 2",width:"12px",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1 1 H12",stroke:typeof a.series?.[0]?.color=="string"?a.series?.[0]?.color:"transparent",strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",strokeDasharray:"none"})}):e.jsx("svg",{width:"16",height:"2",viewBox:"0 0 16 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("line",{x1:"16",y1:"1",y2:"1",stroke:"#67C9FF","stroke-width":"2","stroke-dasharray":"5 5"})}),e.jsx(m,{as:"span",tone:"subdued",children:a.name||a.series?.[0]?.name})]})})})},a.shape+x))]});return e.jsx(c,{width:"100%",background:"bg-fill-active",borderRadius:"100",children:e.jsx(i,{inlineAlign:"center",children:e.jsx(b,{blockAlign:"center",wrap:!1,gap:"400",children:j})})})},Ae=()=>{const{t:p}=pe(),{isMobile:g}=Q(),[d,j]=M.useState(0),[a,x]=M.useState(void 0),C=t=>{j(t),d===t&&j(-1)},h=t=>{x(t),a===t&&x(void 0)};return e.jsxs(i,{...g?{gap:"0"}:{gap:"200"},children:[g&&e.jsx(he,{title:p(G.GENERAL_SETTING.SUBROUTES.WALLET.TITLE),backUrl:G.GENERAL_SETTING.PATH}),e.jsx(c,{...g?{padding:"400"}:{},children:e.jsxs(i,{gap:"400",children:[e.jsx(S,{padding:"0",roundedAbove:"xs",children:e.jsx(Se,{})}),e.jsx(S,{padding:"0",roundedAbove:"xs",children:e.jsx(c,{padding:"400",children:e.jsxs(i,{gap:"300",children:[e.jsxs(i,{gap:"100",children:[e.jsx(m,{variant:"headingSm",as:"span",fontWeight:"semibold",children:"Earn more as your monthly GMV grows"})," ",e.jsx(m,{variant:"bodyMd",as:"span",children:"Your cashback rate increases based on your total fulfilled GMV each month"})]}),e.jsx(c,{borderRadius:"200",borderColor:"border",borderWidth:"025",maxWidth:g?"100%":"60%",children:e.jsx(ye,{columnContentTypes:["text","text"],headings:["Monthly Fulfilled GMV (USD)","Cashback Rate"],rows:[{cells:["< $1000","0%"]},{cells:["$1000 - $2999","0.5%"]},{cells:["$3000 - $9999","1%"]},{cells:["> $10000","2%"]},{cells:["Yearly plan bonus","+0.5%"]}].map(t=>t.cells.map(o=>o.toString()))})})]})})}),e.jsx(S,{padding:"0",roundedAbove:"xs",children:e.jsx(c,{padding:"400",children:e.jsxs(i,{gap:"400",children:[e.jsx("div",{className:"cursor-pointer",onClick:()=>h("HOW_YOU_EARN_CASHBACK"),children:e.jsxs(b,{align:"space-between",blockAlign:"center",children:[e.jsx(m,{variant:"headingSm",as:"span",fontWeight:"semibold",children:"How You Earn Cashback"}),e.jsx(R,{variant:"tertiary",icon:d?Y:B})]})}),e.jsx(A,{id:"collapsible-how-you-earn-cashback",open:a==="HOW_YOU_EARN_CASHBACK",transition:{duration:"400ms",timingFunction:"ease-in-out"},children:e.jsx(i,{children:H.map((t,o)=>e.jsx(c,{paddingBlock:"400",paddingInline:"200",...o<E.size(H)-1&&{borderBlockEndWidth:"0165",borderColor:"border"},children:e.jsxs(Z,{columns:"40px minmax(0, 1fr)",gap:"500",alignItems:"center",children:[e.jsx("div",{className:ne("w-[40px] h-[40p
1x] rounded-4xl p-[2px] items-center justify-center flex bg-[#303030] [&_svg]:!fill-[#fff] text-bg-fill"),children:o+1}),e.jsxs(i,{gap:"100",children:[e.jsx(m,{variant:"bodyMd",fontWeight:"bold",as:"span",children:t.title})," ",e.jsx(i,{gap:"100",children:t.description.map((O,u)=>e.jsx(m,{variant:"bodyMd",tone:"subdued",as:"span",children:O},u))})]})]})},o))})})]})})}),e.jsx(S,{padding:"0",roundedAbove:"xs",children:e.jsx(c,{padding:"400",children:e.jsxs(i,{gap:"400",children:[e.jsx("div",{className:"cursor-pointer",onClick:()=>h("FREQUENTLY_ASKED_QUESTIONS"),children:e.jsxs(b,{align:"space-between",blockAlign:"center",children:[e.jsx(m,{variant:"headingSm",as:"span",fontWeight:"semibold",children:"Frequently asked questions"}),e.jsx(R,{variant:"tertiary",icon:a==="FREQUENTLY_ASKED_QUESTIONS"?Y:B})]})}),e.jsx(A,{id:"collapsible-frequently-asked-questions",open:a==="FREQUENTLY_ASKED_QUESTIONS",transition:{duration:"400ms",timingFunction:"ease-in-out"},children:e.jsx(i,{gap:"400",children:q.map((t,o)=>e.jsxs(oe.Fragment,{children:[e.jsxs(i,{gap:"200",children:[e.jsx("div",{onClick:()=>C(o),className:"cursor-pointer",children:e.jsxs(b,{align:"space-between",blockAlign:"center",children:[e.jsx(m,{variant:"bodyMd",as:"span",fontWeight:"semibold",children:t.question}),e.jsx(R,{variant:"tertiary",icon:d!==o?je:fe})]})},o),e.jsx(A,{id:`collapsible-${o}`,open:d===o,transition:{duration:"400ms",timingFunction:"ease-in-out"},children:e.jsx(c,{maxWidth:"70%",children:e.jsx(m,{as:"span",variant:"bodyMd",tone:"subdued",children:t.answer})})})]}),o<q.length-1&&e.jsx(ge,{})]},o))})})]})})})]})})]})},H=[{title:"Fulfill orders via Zopi Order Center",description:["Only orders fulfilled through Zopi Order Center are eligible for cashback. (Manual or external orders are not counted.)"]},{title:"Ensure successful delivery",description:["Each order must have a synced tracking number and show status “Delivered.”"]},{title:"Reach your monthly GMV threshold",description:["Your cashback rate depends on your total fulfilled GMV for the month.","You can track your progress in the  Order Cashback Dashboard above."]},{title:"Cashback credited after 30 days",description:["Once orders are confirmed after 30 days, cashback is credited automatically — no manual claim needed."]}],q=[{question:"Who can join the Cashback Bonus Program?",answer:"The program is available for merchants on Growth plans and above. Free and Starter plans are not eligible at this time."},{question:"How is my cashback calculated?",answer:"Zopi tracks your monthly fulfilled GMV from orders processed through Zopi Order Center.Your cashback rate follows the GMV tiers listed above."},{question:"When will I receive my cashback?",answer:"Cashback is credited automatically 30 days after delivery once all eligible orders are confirmed."}],ea=()=>e.jsx(we,{children:e.jsx(Ae,{})});export{ea as default};

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.