PageSourceSearch

https://idatariver.com/_nuxt/D8PlNXeX.js

js idatariver.com collected 2026-10-08 09:59:50 UTC 57,492 bytes, 2 lines download raw bytes

1import{u as L,a as R,r as K,d as r,i as d,f as e,t,q as p,s as f,h as s,x as A,F as k,z as C,g,l as v,k as w,j as P,v as N,c as B,e as D,p as F,n as O,A as E,E as G,w as ee,C as te,o as se,D as oe,_ as ae}from"./CKIK40PX.js";import{d as V}from"./DOIF3kcV.js";import{I as j,q as ne,S as W,T,U as q,V as J}from"./D6afAKBM.js";import{_ as I}from"./BGv6i2gL.js";import{_ as Z}from"./zidn4t3l.js";import{_ as H}from"./BWJE5kNg.js";import{_ as X}from"./BBga6Q1o.js";import{f as re}from"./D9lz6q4D.js";import{_ as Q}from"./Br-tcvvi.js";import{_ as le}from"./TWvWPtI3.js";import{p as de,i as ie}from"./DJF3KnFn.js";import{T as ce,j as ue,o as he}from"./CpydAzWt.js";import{_ as me}from"./BGVZroMv.js";import"./C3gjl0h6.js";import"./CcNOCWuS.js";const _e={"data-modal-target":"modal-mcc-edit","data-modal-toggle":"modal-mcc-edit",class:"block text-white bg-gray-900 hover:bg-gray-800 font-medium rounded-md text-sm px-2 py-1 text-center",type:"button"},pe={class:"flex items-center"},ge={class:"font-bold text-xs"},be={id:"modal-mcc-edit",tabindex:"-1","aria-hidden":"true",class:"z-50 hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full"},ye={class:"relative p-4 w-full max-w-3xl max-h-full"},fe={class:"relative bg-white rounded-lg shadow"},ve={class:"flex items-center justify-between p-5 rounded-t"},$e={class:"text-xl font-medium text-gray-900"},xe=e("button",{type:"button",class:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center","data-modal-hide":"modal-mcc-edit"},[e("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})]),e("span",{class:"sr-only"},"Close modal")],-1),we={class:"px-5 space-y-4"},ke={class:"space-y-4"},Me={class:"space-y-2"},Se={class:"block text-sm"},Ue={class:"text-sm"},Ve=["href"],Ce={class:"text-xs font-bold text-red-500"},Be={class:"text-xs font-bold"},Pe={class:"text-xs font-bold"},Ne={class:"flex items-center p-4 md:p-5 rounded-b"},De={"data-modal-hide":"modal-mcc-edit",type:"button",class:"ms-3 text-gray-500 bg-white hover:bg-gray-100 rounded-lg border-0 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10"},je={__name:"MCCEdit",setup(z){const{locale:x}=L();R();const _=K("");return(n,h)=>(r(),d(k,null,[e("button",_e,[e("div",pe,[e("span",ge,t(n.$t("edit")),1)])]),e("div",be,[e("div",ye,[e("div",fe,[e("div",ve,[e("h3",$e,t(n.$t("MCC")),1),xe]),e("div",we,[e("div",ke,[e("div",Me,[e("label",Se,t(n.$t("input_mcc_title")),1),p(e("input",{"onUpdate:modelValue":h[0]||(h[0]=b=>A(_)?_.value=b:null),type:"text",class:"w-full1 px-3 py-2 border rounded-md border-gray-300 bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,512),[[f,s(_)]])]),e("p",Ue,[e("a",{href:("docsPath"in n?n.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/mcc.html"),target:"_blank",class:"text-green-500 underline",rel:"noopener noreferrer"},t(n.$t("mcc_list_tip")),9,Ve)]),e("div",null,[e("p",Ce,t(n.$t("submit_mcc_tip1")),1),e("p",Be,t(n.$t("submit_mcc_tip2")),1),e("p",Pe,t(n.$t("submit_mcc_tip3")),1)])])]),e("div",Ne,[e("button",{onClick:h[1]||(h[1]=b=>("stateMerchant"in n?n.stateMerchant:s(j)).updateMCC(s(_))),"data-modal-hide":"modal-mcc-edit",type:"button",class:"text-white bg-gray-900 hover:bg-gray-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center"},t(n.$t("Confirm")),1),e("button",De,t(n.$t("cancel")),1)])])])])],64))}},ze={class:"hidden rounded-lg",id:"basic",role:"tabpanel","aria-labelledby":"basic-tab"},Fe={class:"space-y-2"},Le={class:"block text-sm flex items-center gap-x-2"},We={class:"badge rounded-md bg-gray-200 border-0 text-gray-800"},Te={class:"space-y-0.5"},Ie={class:"flex space-x-2"},Je={class:"block text-sm flex items-center gap-x-2"},Oe={class:"badge rounded-md bg-gray-200 border-0 text-gray-800 font-bold"},Re={key:0},qe={key:1},Ze=["href"],Qe={key:0},Ge={class:"text-red-500 font-bold text-xs"},Ke={key:1},He={key:0,class:"text-red-500 font-bold text-xs"},Xe={key:1,class:"text-red-500 font-bold text-xs"},Ye={class:"space-y-2"},Ae={class:"block text-sm flex items-center"}
1,Ee=["href"],et=["placeholder"],tt={class:"text-xs"},st={class:"font-medium text-red-500"},ot={class:"font-medium text-red-5001"},at={class:"space-y-2"},nt={class:"block text-sm flex items-center"},rt=["placeholder"],lt={class:"space-y-2"},dt={class:"block text-sm flex items-center"},it=["placeholder"],ct={class:"space-y-2"},ut={class:"block text-sm flex items-center"},ht={class:"badge bg-blue-500 text-white text-xs ml-2"},mt={class:"grid sm:grid-cols-2 xl:grid-cols-4 gap-4 gap-x-8"},_t={class:"space-y-2"},pt={class:"block text-xs text-gray-500"},gt=["onUpdate:modelValue"],bt={class:"space-y-2"},yt={class:"block text-sm flex items-center"},ft={value:"default"},vt={value:"2"},$t={value:"3"},xt={class:"flex gap-x-4 pt-3"},wt={class:"w-32"},kt={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Mt={class:"w-32"},St={__name:"Basic",setup(z){const{locale:x}=L(),_=R(),n=ne(),h=W(),b=T(),S=()=>b.value.name!=h.value.name||b.value.desc!=h.value.desc||b.value.theme!=h.value.theme||b.value.guarantee!=h.value.guarantee||JSON.stringify(b.value.contacts)!=JSON.stringify(h.value.contacts),l=C(()=>["0000","0001"].includes(h.value.mcc)?"0000":h.value.mcc),a=C(()=>["0000","0001"].includes(h.value.mcc)&&!h.value.mccReview),o=C(()=>({basic:{guarantee:b.value.guarantee,name:b.value.name,desc:b.value.desc,theme:b.value.theme,contacts:b.value.contacts}}));return(c,y)=>{const M=je,U=I,u=Z;return r(),d("div",ze,[e("form",{onSubmit:y[4]||(y[4]=F(i=>("stateMerchant"in c?c.stateMerchant:s(j)).updateSettings(s(o)),["prevent"])),action:"",class:"space-y-3"},[e("div",Fe,[e("label",Le,[g(t(c.$t("Merchant_ID"))+" ",1),e("span",We,t(s(h).id),1)])]),e("div",Te,[e("div",Ie,[e("label",Je,[g(t(c.$t("MCC"))+" ",1),e("span",Oe,t(s(l)),1)]),s(a)?(r(),d("div",Re,[v(M)])):(r(),d("div",qe,[e("a",{href:("docsPath"in c?c.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/mcc.html"),target:"_blank",class:"text-xs text-green-500 underline",rel:"noopener noreferrer"},t(c.$t("mcc_list_tip")),9,Ze)]))]),s(h).mccReview?(r(),d("div",Qe,[e("p",Ge,t(c.$t("mcc_review_tip")),1)])):(r(),d("div",Ke,[s(h).mcc=="0000"?(r(),d("p",He,t(c.$t("submit_mcc_tip")),1)):w("",!0),s(h).mcc=="0001"?(r(),d("p",Xe,t(c.$t("mcc_review_failed")),1)):w("",!0)]))]),e("div",Ye,[e("label",Ae,[g(t(c.$t("Guarantee"))+"(USD)   ",1),e("a",{href:("docsPath"in c?c.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/guarantee.html"),target:"_blank",class:"text-xs text-green-500 underline",rel:"noopener noreferrer"},t(c.$t("help")),9,Ee)]),e("div",null,[p(e("input",{"onUpdate:modelValue":y[0]||(y[0]=i=>s(b).guarantee=i),type:"number","data-input-counter":"","data-input-counter-min":0,placeholder:c.$t("merchant_guarantee_tip"),class:"w-full sm:w-1/2 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,et),[[f,s(b).guarantee]]),e("p",tt,[e("span",st,t(c.$t("frozen_amount"))+": "+t(s(h).guaranteeFrozen)+" USD ",1),g("   "),e("span",ot,t(c.$t("daily_quick_settlement_quota"))+": "+t(s(h).quickSettlementQuota)+" USD (T+2) ",1)])])]),e("div",at,[e("label",nt,t(c.$t("name")),1),p(e("input",{"onUpdate:modelValue":y[1]||(y[1]=i=>s(b).name=i),type:"text",maxlength:"50",placeholder:c.$t("merchant_name_tip"),class:"w-full sm:w-1/2 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,rt),[[f,s(b).name]])]),e("div",lt,[e("label",dt,t(c.$t("Merchant_Intro")),1),p(e("textarea",{"onUpdate:modelValue":y[2]||(y[2]=i=>s(b).desc=i),type:"text",rows:"4",maxlength:"1000",placeholder:c.$t("merchant_intro_tip"),class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,it),[[f,s(b).desc]])]),e("div",ct,[e("label",ut,[g(t(c.$t("Contact_Information"))+" ",1),e("span",ht,t(c.$t("contact_info_tip")),1)]),e("div",mt,[(r(!0),d(k,null,P(s(n),i=>(r(),d("div",_t,[e("label",pt,t(i.value),1),p(e("input",{"onUpdate:modelValue":m=>s(b).contacts[i.key]=m,type:"text",maxlength:"30",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,gt),[[f,s(b).contacts[i.key]]])]))),256))])]),e("div",bt,[e("label",yt,t(c.$t("merchant_theme")),1),p(e("select",{"onUpdate:modelValue":y[3]||(y[3]=i=>s(b).theme=i),class:"w-full sm:w-1/4 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[e("option",ft,t(c.$t("merchant_theme_default")),1),e("option",vt,t(c.$t("merchant_theme_2")),1),e("option",$t,t(c.$t("merchant_theme_3")),1)],512),[[N,s(b).theme]])]),e("div",xt,[e("div",wt,[S()?(r(),B(U,{key:0,"btn-size":"medium",content:c.$t("Save")},null,8,["content"])):(r(),d("button",kt,t(c.$t("Save")),1))]),e("div",Mt,[v(u,{target:"_blank",to:s(_)(`/m/${s(h).id}?t=${s(h).theme}`),class:"block text-center w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-900 text-white hover:bg-gray-800"},{default:D(()=>[g(t(c.$t("View_merchant")),1)]),_:1},8,["to"])])])],32)])}}},Ut={class:"hidden rounded-lg",id:"withdraw",role:"tabpanel","aria-labelledby":"withdraw-tab"},Vt={role:"alert",class:"alert max-w-xl flex text-left mb-4 text-xs py-2 rounded-md"},Ct=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info h-6 w-6 shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),Bt=["href"],Pt={class:"grid grid-cols-2 gap-4 mb-4"},Nt={class:"flexn items-center justify-start rounded"},Dt={class:"text-xl sm:text-2xl font-bold flex items-end"},jt={class:"space-y-2"},zt={class:"flex text-sm items-center"},Ft={key:0,value:""},Lt=["value"],Wt={class:"grid grid-cols-1 sm:grid-cols-4 mt-4 gap-4"},Tt={class:"space-y-2 col-span-1"},It={class:"flex items-center text-sm"},Jt=["data-tip"],Ot=e("svg",{class:"ml-1 w-4 h-4 text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9h2v5m-2 0h4M9.408 5.5h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),Rt=[Ot],qt=["placeholder"],Zt={class:"w-32 mt-6"},Qt={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Gt={class:"text-sm my-4"},Kt={class:"text-gray-600 font-medium text-sm"},Ht=["href"],Xt=e("div",{class:"border-0 border-b my-8"},null,-1),Yt={class:"grid grid-cols-2 gap-4 mb-4"},At={class:"flexn items-center justify-start rounded"},Et={class:"text-xl sm:text-2xl font-bold flex items-end"},es={class:"flex items-center justify-end rounded"},ts={class:"space-y-4"},ss={class:"space-y-2"},os={class:"space-y-2 gap-x-2"},as={class:"text-xs text-gray-500"},ns={class:"flex cursor-pointer items-center justify-between gap-1.5"},rs={class:"text-gray-900 space-y-3"},ls={class:"flex items-center font-medium gap-x-2"},ds={class:"uppercase"},is={class:"text-xs text-gray-500"},cs=e("svg",{class:"h-5 w-5 shrink-0 transition duration-300 group-open:-rotate-180",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1),us={class:"mt-4 pt-4 border-t leading-relaxed text-gray-700"},hs=["onSubmit"],ms={class:"grid grid-cols-1 sm:grid-cols-2 gap-y-2 gap-x-4"},_s={class:"space-y-2"},ps={class:"flex text-sm items-center"},gs=["onUpdate:modelValue","disabled"],bs=["value"],ys={key:0,class:"space-y-2"},fs={class:"flex text-sm items-center"},vs=["onUpdate:modelValue"],$s={class:"space-y-2"},xs=e("label",{class:"flex text-sm items-center"}," 支付宝账号 ",-1),ws=["onUpdate:modelValue"],ks={class:"space-y-2"},Ms=e("label",{class:"flex text-sm items-center"}," 名字 ",-1),Ss=["onUpdate:modelValue"],Us={class:"space-y-2"},Vs=e("label",{class:"flex text-sm items-center"}
1," 姓氏 ",-1),Cs=["onUpdate:modelValue"],Bs={class:"space-y-2"},Ps=e("label",{class:"flex text-sm items-center"}," Email ",-1),Ns=["onUpdate:modelValue"],Ds={class:"space-y-2"},js={class:"flex text-sm items-center"},zs=["onUpdate:modelValue"],Fs={class:"space-y-2"},Ls={class:"flex text-sm items-center"},Ws=["onUpdate:modelValue"],Ts={class:"space-y-2"},Is={class:"flex text-sm items-center"},Js=["onUpdate:modelValue"],Os=["value"],Rs={class:"space-y-2"},qs={class:"flex text-sm items-center"},Zs=["onUpdate:modelValue"],Qs=["value"],Gs={class:"space-y-2"},Ks={class:"flex text-sm items-center"},Hs=["onUpdate:modelValue"],Xs={key:0,class:"space-y-2"},Ys={class:"flex text-sm items-center"},As=["onUpdate:modelValue"],Es={class:"space-y-2"},eo={class:"flex text-sm items-center"},to=["onUpdate:modelValue"],so={class:"space-y-2"},oo={class:"flex text-sm items-center"},ao=["onUpdate:modelValue"],no={class:"space-y-2"},ro={class:"flex text-sm items-center"},lo=["onUpdate:modelValue"],io={class:"space-y-1"},co=e("p",{class:"text-xs font-bold text-gray-800"},[g(" 请先前往支付宝官方小程序【闪速收款】开通收款功能 "),e("a",{href:"https://render.alipay.com/p/c/17e1861ifr9c",target:"_blank",class:"text-green-500 font-bold underline"}," 使用介绍 ")],-1),uo={class:"text-xs text-gray-800"},ho=e("p",{class:"text-xs text-gray-800"}," 同一收款人3天内限1笔提现, 单笔提现金额限制 10 USD - 3000 USD, 每年限额 50000 USD。 ",-1),mo={class:"text-xs font-bold text-red-500"},_o={key:1,class:"text-xs font-bold text-red-500"},po={class:"flex gap-x-4"},go={class:"w-32"},bo={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},yo={class:"w-32"},fo={__name:"Withdraw",setup(z){const{locale:x}=L(),_=W(),n=T(),h=C(()=>_.value.withdraw.payeeAccounts.filter(o=>o.channel&&o.desc)),b=o=>{if(o!=null&&o>=0){const c=_.value.withdraw.payeeAccounts[o],y=n.value.withdraw.payeeAccounts[o];return JSON.stringify(c)!=JSON.stringify(y)}},S=()=>n.value.withdraw.threshold!=_.value.withdraw.threshold||n.value.withdraw.defaultPayeeAccount!=_.value.withdraw.defaultPayeeAccount,l=C(()=>({withdraw:{threshold:n.value.withdraw.threshold,defaultPayeeAccount:n.value.withdraw.defaultPayeeAccount}})),a=C(()=>_.value.withdraw.channels);return(o,c)=>{const y=I,M=H,U=X;return r(),d("div",Ut,[e("div",Vt,[Ct,e("p",null,[g(t(o.$t("merchant_fee_intro"))+" 👉  ",1),e("a",{href:("docsPath"in o?o.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/04.09.platform-fees.html"),target:"_blank",class:"text-green-500 font-bold underline"},t(o.$t("help")),9,Bt)])]),e("div",null,[e("div",Pt,[e("div",Nt,[e("div",Dt,t(o.$t("auto_withdraw_settings")),1)])]),e("form",{onSubmit:c[2]||(c[2]=F(u=>("stateMerchant"in o?o.stateMerchant:s(j)).updateSettings(s(l)),["prevent"])),action:""},[e("div",jt,[e("label",zt,t(o.$t("select_payee_account")),1),p(e("select",{"onUpdate:modelValue":c[0]||(c[0]=u=>s(n).withdraw.defaultPayeeAccount=u),class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[s(n).withdraw.payeeAccounts.length===0?(r(),d("option",Ft,t(o.$t("pls_add_payee_account_first")),1)):w("",!0),(r(!0),d(k,null,P(s(h),u=>(r(),d("option",{value:u.id},t(u.channel)+" ("+t(u.desc)+") ",9,Lt))),256))],512),[[N,s(n).withdraw.defaultPayeeAccount]])]),e("div",Wt,[e("div",Tt,[e("label",It,[g(t(o.$t("Withdraw_Threshold"))+" ",1),e("div",{class:"tooltip tooltip-right","data-tip":o.$t("withdraw_threshold_tip")},Rt,8,Jt)]),p(e("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>s(n).withdraw.threshold=u),type:"number",placeholder:o.$t("withdraw_threshold_placeholder"),class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,qt),[[f,s(n).withdraw.threshold]])])]),e("div",Zt,[S()?(r(),B(y,{key:0,"btn-size":"medium",content:o.$t("Save")},null,8,["content"])):(r(),d("button",Qt,t(o.$t("Save")),1))]),e("p",Gt,[e("span",Kt,t(o.$t("pay_tip")),1),e("a",{target:"_blank",href:("docsPath"in o?o.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/04.09.platform-fees.html"),class:"text-green-500 font-bold",rel:"noopener noreferrer"}," 👉 "+t(o.$t("help")),9,Ht)])],32)]),Xt,e("div",null,[e("div",Yt,[e("div",At,[e("div",Et,t(o.$t("payee_accounts_list")),1)]),e("div",es,[e("div",null,[v(y,{"btn-size":"medium",onClick:c[3]||(c[3]=u=>("stateMerchantPayeeAccount"in o?o.stateMerchantPayeeAccount:s(q)).add()),content:"+ "+o.$t("add")},null,8,["content"])])])]),e("div",ts,[e("div",ss,[e("div",os,[e("p",as,t(o.$t("merchant_payee_account_tip")),1)])]),(r(!0),d(k,null,P(s(n).withdraw.payeeAccounts,(u,i
1)=>(r(),d("details",{key:"payee-account-"+u.id,class:"group bg-gray-50 border-green-500 p-3 [&_summary::-webkit-details-marker]:hidden"},[e("summary",ns,[e("h2",rs,[e("p",ls,[e("span",ds,t(u.channel),1),e("span",is,t(u.desc),1)])]),cs]),e("div",us,[e("form",{onSubmit:F(m=>("stateMerchantPayeeAccount"in o?o.stateMerchantPayeeAccount:s(q)).update(u),["prevent"]),action:"",class:"space-y-4"},[e("div",ms,[e("div",_s,[e("label",ps,t(o.$t("Pay_Channel")),1),p(e("select",{"onUpdate:modelValue":m=>u.channel=m,disabled:!!s(_).withdraw.payeeAccounts[i].channel,class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[(r(!0),d(k,null,P(s(a),(m,$,Y)=>(r(),d(k,null,[m.enabled?(r(),d("option",{key:0,value:m.value},t(m.name)+" 👉 "+t(o.$t("Fees"))+" "+t(m.fees.ratio?m.fees.ratio:"")+" "+t(m.fees.ratio&&m.fees.fixed?"+":"")+" "+t(m.fees.fixed?m.fees.fixed:"")+" "+t(o.$t("per_time")),9,bs)):w("",!0)],64))),256))],8,gs),[[N,u.channel]])]),["usdt-bep20","usdt-erc20","usdt-trc20","usdt-polygon"].includes(u.channel)?(r(),d("div",ys,[e("label",fs,t(o.$t("Wallet_Address")),1),p(e("input",{"onUpdate:modelValue":m=>u.accountNo=m,type:"text",maxlength:"100",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,vs),[[f,u.accountNo]])])):["alipay"].includes(u.channel)?(r(),d(k,{key:1},[e("div",$s,[xs,p(e("input",{"onUpdate:modelValue":m=>u.accountNo=m,type:"text",maxlength:"100",placeholder:"邮箱或手机号",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,ws),[[f,u.accountNo]])]),e("div",ks,[Ms,p(e("input",{"onUpdate:modelValue":m=>u.firstName=m,type:"text",maxlength:"50",placeholder:"请输入姓氏的英文或拼音",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,Ss),[[f,u.firstName]])]),e("div",Us,[Vs,p(e("input",{"onUpdate:modelValue":m=>u.lastName=m,type:"text",maxlength:"50",placeholder:"请输入名字的英文或拼音",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,Cs),[[f,u.lastName]])])],64)):["paypal"].includes(u.channel)?(r(),d(k,{key:2},[e("div",Bs,[Ps,p(e("input",{"onUpdate:modelValue":m=>u.accountNo=m,type:"text",maxlength:"100",placeholder:"paypal account email",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,Ns),[[f,u.accountNo]])]),e("div",Ds,[e("label",js,t(o.$t("first_name")),1),p(e("input",{"onUpdate:modelValue":m=>u.firstName=m,type:"text",maxlength:"50",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,zs),[[f,u.firstName]])]),e("div",Fs,[e("label",Ls,t(o.$t("last_name")),1),p(e("input",{"onUpdate:modelValue":m=>u.lastName=m,type:"text",maxlength:"50",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,Ws),[[f,u.lastName]])])],64)):["bank"].includes(u.channel)?(r(),d(k,{key:3},[e("div",Ts,[e("label",Is,t(o.$t("bank_region")),1),p(e("select",{"onUpdate:modelValue":m=>u.country=m,class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[(r(!0),d(k,null,P(s(a)[u.channel].countries,(m,$)=>(r(),d("option",{value:$},t(o.$t(`country_${$}`)),9,Os))),256))],8,Js),[[N,u.country]])]),e("div",Rs,[e("label",qs,t(o.$t("currency")),1),p(e("select",{"onUpdate:modelValue":m=>u.currency=m,class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[(r(!0),d(k,null,P(s(a)[u.channel].countries[u.country],m=>(r(),d("option",{value:m}
1,t(m),9,Qs))),256))],8,Zs),[[N,u.currency]])]),e("div",Gs,[e("label",Ks,t(o.$t("bank_card_no")),1),p(e("input",{"onUpdate:modelValue":m=>u.accountNo=m,type:"text",maxlength:"100",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,Hs),[[f,u.accountNo]])]),u.country=="CN"?(r(),d("div",Xs,[e("label",Ys,t(o.$t("cert_no")),1),p(e("input",{"onUpdate:modelValue":m=>u.certNo=m,type:"text",maxlength:"100",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,As),[[f,u.certNo]])])):w("",!0),e("div",Es,[e("label",eo,t(o.$t("first_name")),1),p(e("input",{"onUpdate:modelValue":m=>u.firstName=m,type:"text",maxlength:"50",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,to),[[f,u.firstName]])]),e("div",so,[e("label",oo,t(o.$t("last_name")),1),p(e("input",{"onUpdate:modelValue":m=>u.lastName=m,type:"text",maxlength:"50",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,ao),[[f,u.lastName]])])],64)):w("",!0),e("div",no,[e("label",ro,t(o.$t("Remark")),1),p(e("input",{"onUpdate:modelValue":m=>u.remark=m,type:"text",maxlength:"50",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,lo),[[f,u.remark]])])]),e("div",io,[["alipay"].includes(u.channel)?(r(),d(k,{key:0},[co,e("p",uo," 最新结算汇率: "+t(s(a)[u.channel].exchange.rate)+" (更新于"+t(("formatLocaleDate"in o?o.formatLocaleDate:s(re))(s(a)[u.channel].exchange.updatedAt))+") ",1),ho],64)):w("",!0),e("p",mo,t(o.$t("payee_account_tip")),1),["usdt-bep20","usdt-erc20","usdt-trc20","usdt-polygon"].includes(u.channel)?(r(),d("p",_o,t(o.$t("payee_usdt_account_tip")),1)):w("",!0)]),e("div",po,[e("div",go,[b(i)?(r(),B(y,{key:0,"btn-size":"medium",content:o.$t("Save")},null,8,["content"])):(r(),d("button",bo,t(o.$t("Save")),1))]),e("div",yo,[v(M,{"btn-size":"medium",onDoDelete:m=>("stateMerchantPayeeAccount"in o?o.stateMerchantPayeeAccount:s(q)).remove(u.id)},null,8,["onDoDelete"])])])],40,hs)])]))),128))]),s(n).withdraw.payeeAccounts.length===0?(r(),B(U,{key:0},{default:D(()=>[g(t(o.$t("No_Data")),1)]),_:1})):w("",!0)])])}}},vo={class:"hidden rounded-lg",id:"bot",role:"tabpanel","aria-labelledby":"bot-tab"},$o={role:"alert",class:"alert max-w-xl flex text-left mb-4 text-xs py-2 rounded-md"},xo=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info h-6 w-6 shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),wo=["href"],ko={class:"grid xl:grid-cols-2"},Mo={class:"space-y-4 col-span-2"},So={class:"flex items-center"},Uo={class:"pr-6 text-sm sm:text-md font-bold"},Vo={class:"flex text-md"},Co={class:"mr-2 text-xs sm:text-sm flex items-center"},Bo=["data-tip"],Po=e("svg",{class:"ml-1 w-4 h-4 text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9h2v5m-2 0h4M9.408 5.5h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),No=[Po],Do={class:"text-md flex"},jo={class:"mr-2 text-xs sm:text-sm flex items-center"},zo=["data-tip"],Fo=e("svg",{class:"ml-1 w-4 h-4 text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9h2v5m-2 0h4M9.408 5.5h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),Lo=[Fo],Wo=e("span",{class:"my-6 h-px flex-1 bg-gray-200 col-span-2"},null,-1),To={class:"space-y-4 col-span-2"},Io={class:"flex items-center col-span-2"},Jo={class:"text-sm sm:text-md font-bold"},Oo={class:"space-y-2"},Ro={class:"block text-sm flex items-end"},qo=["value"],Zo={class:"space-y-2"},Qo={class:"block text-sm flex items-center"},Go={value:"default"},Ko={value:"simple"},Ho={class:"space-y-2"},Xo={class:"block text-sm flex items-center"},Yo=["data-tip"],Ao=e("svg",{class:"ml-1 w-4 h-4 text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9h2v5m-2 0h4M9.408 5.5h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),Eo=[Ao],ea=["disabled","placeholder"],ta={class:"space-y-2"},sa={class:"block text-sm flex items-center"},oa=["data-tip"],aa=e("svg",{class:"ml-1 w-4 h-4 text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9h2v5m-2 0h4M9.408 5.5h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),na=[aa],ra=["placeholder"],la={class:"space-y-2"},da={class:"mt-4 col-span-2"},ia={class:"space-y-2"},ca={class:"text-xs text-gray-800 font-bold"},ua={class:"space-y-0.5"},ha={class:"text-xs text-gray-800"},ma={class:"text-xs text-gray-800"},_a={class:"text-xs text-gray-800"},pa={class:"text-xs text-gray-800"},ga={href:"https://t.me/idatariver_merchant",target:"_blank",class:"underline"},ba={class:"w-32 mt-6"},ya={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},fa={__name:"Bot",setup(z){const{locale:x}=L(),_=R(),n=W(),h=T(),b=()=>h.value.telegramBot.token!=n.value.telegramBot.token||h.value.telegramBot.theme!=n.value.telegramBot.theme||h.value.telegramBot.introduce!=n.value.telegramBot.introduce,S=C(()=>({telegramBot:{token:h.value.telegramBot.token,theme:h.value.telegramBot.theme,introduce:h.value.telegramBot.introduce}}));return(l,a)=>{const o=Q,c=Z,y=I;return r(),d("div",vo,[e("div",$o,[xo,e("p",null,[g(t(l.$t("tgbot_function_intro"))+" 👉  ",1),e("a",{href:("docsPath"in l?l.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/05.01.telegram-bot.html"),target:"_blank",class:"text-green-500 font-bold underline"},t(l.$t("help")),9,wo)])]),e("form",{onSubmit:a[3]||(a[3]=F(M=>("stateMerchant"in l?l.stateMerchant:s(j)).updateSettings(s(S)),["prevent"])),action:""},[e("div",ko,[e("div",Mo,[e("div",So,[e("span",Uo,t(l.$t("free_version_tg_bot")),1)]),e("div",Vo,[e("span",Co,[g(t(l.$t("telegram_merchant_link1"))+" ",1),e("div",{class:"tooltip tooltip-right","data-tip":l.$t("telegram_merchant_link1_tip")},No,8,Bo)]),v(o,{btnSize:"small",text:s(n).telegramBot.link},null,8,["text"])]),e("div",Do,[e("span",jo,[g(t(l.$t("telegram_merchant_link2"))+" ",1),e("div",{class:"tooltip tooltip-right","data-tip":l.$t("telegram_merchant_link2_tip")},Lo,8,zo)]),v(o,{btnSize:"small",text:s(n).telegramBot.tgLink},null,8,["text"])])]),Wo,e("div",To,[e("div",Io,[e("span",Jo,t(l.$t("custom_version_tg_bot")),1),v(c,{target:"blank",to:s(_)("/project/6f65"),class:"ml-1 text-xs font-bold text-green-500"},{default:D(()=>[g(" 👉 ["+t(l.$t("Buy"))+"] ",1)]),_:1},8,["to"])]),e("div",Oo,[e("label",Ro,t(l.$t("custom_tg_bot_expireddate")),1),e("input",{disabled:"",value:s(n).telegramBot.expiredDate,class:"w-1/2 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900 cursor-not-allowed"},null,8,qo)]),e("div",Zo,[e("label",Qo,t(l.$t("tgbot_theme")),1),p(e("select",{"onUpdate:modelValue":a[0]||(a[0]=M=>s(h).telegramBot.theme=M),class:"w-full sm:w-1/4 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[e("option",Go,t(l.$t("tgbot_theme_default")),1),e("option",Ko,t(l.$t("tgbot_theme_simple")),1)],512),[[N,s(h).telegramBot.theme]])]),e("div",Ho,[e("label",Xo,[g(t(l.$t("tgbot_token"))+" ",1),e("div",{class:"tooltip tooltip-right","data-tip":l.$t("tgbot_token_tip")},Eo,8,Yo)]),p(e("input",{disabled:!s(n).telegramBot.enabled,"onUpdate:modelValue":a[1]||(a[1]=M=>s(h).telegramBot.token=M),type:"text",maxlength:"100",placeholder:s(n).telegramBot.enabled?l.$t("tgbot_token_placeholder"):l.$t("tgbot_token_disabled_placeholder"),class:O([[s(n).telegramBot.enabled?"":" cursor-not-allowed"],"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"])},null,10,ea),[[f,s(h).telegramBot.token]])]),e("div",ta,[e("label",sa,[g(t(l.$t("tgbot_intro"))+" ",1),e("div",{class:"tooltip tooltip-right","data-tip":l.$t("tgbot_intro_tip")},na,8,oa)]),p(e("textarea",{"onUpdate:modelValue":a[2]||(a[2]=M=>s(h).telegramBot.introduce=M),type:"text",rows:"4",maxlength:"4000",placeholder:l.$t("tgbot_intro_placeholder"),class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},`
2            `,8,ra),[[f,s(h).telegramBot.introduce]])]),e("div",la,[v(c,{target:"_blank",to:s(_)("/app/rainbow"),class:"underline text-green-500"},{default:D(()=>[g(t(l.$t("rainbow_broadcast_helper")),1)]),_:1},8,["to"])])]),e("div",da,[e("div",ia,[e("p",ca,t(l.$t("tip")),1),e("div",ua,[e("p",ha,[g(t(l.$t("tgbot_tip1"))+" ",1),v(c,{target:"blank",to:s(_)("/project/6f65"),class:"ml-1 text-xs font-bold text-green-500"},{default:D(()=>[g(" 👉 ["+t(l.$t("Buy"))+"] ",1)]),_:1},8,["to"])]),e("p",ma,[g(t(l.$t("tgbot_tip2"))+" ",1),v(c,{target:"blank",to:s(_)("/console/redeem"),class:"ml-1 text-xs font-bold text-green-500"},{default:D(()=>[g(" 👉 ["+t(l.$t("redeem"))+"] ",1)]),_:1},8,["to"])]),e("p",_a,t(l.$t("tgbot_tip3")),1),e("p",pa,[g(t(l.$t("telegram_merchant_contact_us"))+" ",1),e("a",ga,t(l.$t("telegram_merchant_group")),1)])])])])]),e("div",ba,[b()?(r(),B(y,{key:0,"btn-size":"medium",content:l.$t("Save")},null,8,["content"])):(r(),d("button",ya,t(l.$t("Save")),1))])],32)])}}},va={class:"hidden rounded-lg",id:"pay",role:"tabpanel","aria-labelledby":"pay-tab"},$a={role:"alert",class:"alert max-w-2xl flex text-left mb-4 text-xs py-2 rounded-md"},xa=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info h-6 w-6 shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),wa=["href"],ka={key:0},Ma={class:"grid grid-cols-2 gap-4 mb-4"},Sa={class:"flexn items-center justify-start rounded"},Ua={class:"text-xl sm:text-2xl font-bold flex items-end"},Va={class:"grid md:grid-cols-2 xl:grid-cols-3 gap-x-4 gap-y-2"},Ca={class:"flex items-center ps-2 border border-gray-200 rounded bg-gray-200"},Ba=["id","disabled","onUpdate:modelValue"],Pa=["for"],Na={class:"flex space-x-0.5 font-bold items-center"},Da={class:"text-[11px] text-gray-600"},ja={key:0,class:"text-[11px] text-blue-600 font-bold"},za={key:0,class:"text-blue-600 font-bold"},Fa={class:"text-[11px] text-gray-600"},La={key:0,class:"text-gray-600"},Wa={key:1,class:"text-gray-600"},Ta={key:2,class:"text-gray-600"},Ia={class:"space-y-2"},Ja={class:"block text-sm"},Oa={class:"flex gap-x-4"},Ra={class:"flex items-center"},qa={for:"consumer-cover-payment-fee",class:"ms-2 text-sm text-gray-900 cursor-pointer"},Za={class:"flex items-center"},Qa={for:"merchant-cover-payment-fee",class:"ms-2 text-sm text-gray-900 cursor-pointer"},Ga={class:"w-32"},Ka={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Ha={class:"mt-3 font-bold text-xs text-green-600"},Xa=e("div",{class:"border-0 border-b my-8"},null,-1),Ya={class:"grid grid-cols-2 gap-4 mb-4"},Aa={class:"flexn items-center justify-start rounded"},Ea={class:"text-xl sm:text-2xl font-bold flex items-end"},en={class:"flex items-center justify-end rounded"},tn={class:"space-y-4"},sn={class:"space-y-2"},on={class:"space-y-2 gap-x-2"},an={class:"text-md"},nn={class:"font-bold"},rn=e("span",{class:"font-semibold text-xs"}," USD",-1),ln={class:"text-xs font-bold"},dn={class:"flex cursor-pointer items-center justify-between gap-1.5"},cn={class:"text-gray-900 space-y-3"},un={class:"flex items-center font-medium gap-x-2"},hn={class:"badge bg-blue-500 text-white border-0 text-xs font-medium text-white"},mn={class:"badge bg-green-500 text-white border-0 text-xs font-medium text-white"},_n=e("svg",{class:"h-5 w-5 shrink-0 transition duration-300 group-open:-rotate-180",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1),pn={class:"mt-4 pt-4 border-t leading-relaxed text-gray-700"},gn=["onSubmit"],bn={class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-y-4 gap-x-4"},yn={class:"space-y-2"},fn={class:"flex text-sm items-center"},vn=["onUpdate:modelValue"],$n={class:"space-y-2"},xn={class:"flex text-sm items-center"},wn=["data-tip"],kn=e("svg",{class:"ml-1 w-4 h-4 text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9h2v5m-2 0h4M9.408 5.5h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),Mn=[kn],Sn=["onUpdate:modelValue"],Un={value:"ONLINE"},Vn={value:"OFFLINE"},Cn={class:"space-y-2"},Bn={class:"flex text-sm items-center"},Pn=["onUpdate:modelValue"],Nn=["value"],Dn={key:0,class:"space-y-2"},jn={class:"flex text-sm items-center"},zn=["onUpdate:modelValue"],Fn=["value"],Ln={class:"col-span-2 space-y-2"},Wn={class:"flex text-sm items-end"},Tn=["href"],In=["onUpdate:modelValue"],Jn={class:"flex gap-x-4"},On={class:"w-32"},Rn={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},qn={class:"w-32"},Zn={class:"w-32"},Qn=["onClick"],Gn={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Kn={key:1,class:"space-y-2"},Hn={class:"font-medium text-sm text-red-500"},Xn=e("a",{target:"blank",href:"https://t.me/idatariver_merchant",class:"font-bold text-green-500"}," [telegram group] ",-1),Yn={class:"font-medium text-sm"},An={__name:"Pay",setup(z){const{locale:x}=L(),_=R(),n=W(),h=T(),b=a=>{if(a!=null&&a>=0){const o=n.value.payManager.customPays[a],c=h.value.payManager.customPays[a];return JSON.stringify(o)!=JSON.stringify(c)}},S=()=>JSON.stringify(n.value.payManager.platformPays)!=JSON.stringify(h.value.payManager.platformPays)||JSON.stringify(n.value.payManager.paymentFeeCovered)!=JSON.stringify(h.value.payManager.paymentFeeCovered),l=C(()=>({platformPayConfig:{payments:h.value.payManager.platformPays,paymentFeeCovered:h.value.payManager.paymentFeeCovered}}));return(a,o)=>{const c=le,y=I,M=Z,U=H,u=X;return r(),d("div",va,[e("div",$a,[xa,e("p",null,[g(t(a.$t("merchant_payment_intro"))+" 👉  ",1),e("a",{href:("docsPath"in a?a.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/04.05.payment.html"),target:"_blank",class:"text-green-500 font-bold underline"},t(a.$t("help")),9,wa)])]),s(n).payManager.enabled?(r(),d("div",ka,[e("div",null,[e("div",Ma,[e("div",Sa,[e("div",Ua,t(a.$t("Platform_Payments")),1)])]),e("form",{onSubmit:o[2]||(o[2]=F(i=>("stateMerchant"in a?a.stateMerchant:s(j)).updateSettings(s(l)),["prevent"])),action:"",class:"space-y-6"},[e("div",Va,[(r(!0),d(k,null,P(s(h).payManager.platformPays,i=>(r(),d("div",Ca,[p(e("input",{type:"checkbox",id:i.name,disabled:["credits","card"].includes(i.method)||!i.avail,class:O
2([[["credits","card"].includes(i.method)||!i.avail?"cursor-not-allowed":"cursor-pointer"],"w-4 h-4 text-gray-900 bg-gray-100 border-gray-300 rounded focus:ring-gray-900 focus:ring-1"]),"onUpdate:modelValue":m=>i.enabled=m},null,10,Ba),[[E,i.enabled]]),e("label",{for:i.name,class:O([[["credits","card"].includes(i.method)||!i.avail?"cursor-not-allowed":"cursor-pointer"],"w-full py-2 ms-2 text-sm text-gray-900"])},[e("p",Na,[v(c,{class:"mr-1",name:i.method},null,8,["name"]),g(" "+t(("paymentName"in a?a.paymentName:s(de))(i.name))+" ",1),e("span",Da,t(i.desc),1)]),i.avail?(r(),d("p",ja,[g(t(a.$t("Payment_fee"))+": "+t(i.ratioRange)+" ",1),i.fixedFeeRange?(r(),d("span",za," + "+t(i.fixedFeeRange),1)):w("",!0)])):w("",!0),e("p",Fa,[g(t(a.$t("Status"))+": ",1),i.avail?(r(),d("span",La,"🟢 "+t(a.$t("Available")),1)):(r(),d("span",Wa,"🔴 "+t(a.$t("Unavailable")),1)),i.avail?(r(),d("span",Ta,"   "+t(a.$t("price_limit"))+": $"+t(i.priceLimit[0])+" - $"+t(i.priceLimit[1]),1)):w("",!0)])],10,Pa)]))),256))]),e("div",Ia,[e("span",Ja,t(a.$t("who_cover_platform_payment_fee")),1),e("div",Oa,[e("div",Ra,[p(e("input",{id:"consumer-cover-payment-fee",type:"radio",value:!1,"onUpdate:modelValue":o[0]||(o[0]=i=>s(h).payManager.paymentFeeCovered=i),class:"w-4 h-4 text-gray-900 bg-gray-100 border-gray-300 focus:ring-gray-900 focus:ring-1 cursor-pointer"},null,512),[[G,s(h).payManager.paymentFeeCovered]]),e("label",qa,t(a.$t("Consumer")),1)]),e("div",Za,[p(e("input",{id:"merchant-cover-payment-fee",type:"radio",value:!0,"onUpdate:modelValue":o[1]||(o[1]=i=>s(h).payManager.paymentFeeCovered=i),class:"w-4 h-4 text-gray-900 bg-gray-100 border-gray-300 focus:ring-gray-900 focus:ring-1 cursor-pointer"},null,512),[[G,s(h).payManager.paymentFeeCovered]]),e("label",Qa,t(a.$t("Merchant")),1)])])]),e("div",Ga,[S()?(r(),B(y,{key:0,"btn-size":"medium",content:a.$t("Save")},null,8,["content"])):(r(),d("button",Ka,t(a.$t("Save")),1))])],32),e("p",Ha,t(a.$t("platform_fee_tip"))+" "+t(s(h).payManager.platformFeeRatio*100)+"% ",1)]),Xa,e("div",null,[e("div",Ya,[e("div",Aa,[e("div",Ea,t(a.$t("Custom_Payments")),1)]),e("div",en,[e("div",null,[v(y,{"btn-size":"medium",onClick:o[3]||(o[3]=i=>("stateMerchantPayment"in a?a.stateMerchantPayment:s(J)).add()),content:"+ "+a.$t("Add_Payment")},null,8,["content"])])])]),e("div",tn,[e("div",sn,[e("div",on,[e("p",an,[g(t(a.$t("merchant_payment_quota"))+": ",1),e("span",nn,t(s(n).payManager.directPaymentQuota),1),rn]),e("p",ln,[g(t(a.$t("buy_merchant_payment_quota"))+" ",1),v(M,{target:"blank",to:s(_)("/project/3f90"),class:"ml-1 text-xs font-bold text-green-500"},{default:D(()=>[g(" 👉 ["+t(a.$t("Buy"))+"] ",1)]),_:1},8,["to"])])])]),(r(!0),d(k,null,P(s(h).payManager.customPays,(i,m)=>(r(),d("details",{key:"payment-"+i.id,class:O(["group border-s-4 bg-gray-50 border-green-500 p-3 [&_summary::-webkit-details-marker]:hidden",{"border-green-500":i.status=="ONLINE","border-red-500":i.status!="ONLINE"}])},[e("summary",dn,[e("h2",cn,[e("p",un,[g(t(i.name)+" ",1),e("span",hn,t(i.channelDesc),1),e("span",mn,t(i.backendDesc),1)])]),_n]),e("div",pn,[e("form",{onSubmit:F($=>("stateMerchantPayment"in a?a.stateMerchantPayment:s(J)).update(i),["prevent"]),action:"",class:"space-y-4"},[e("div",bn,[e("div",yn,[e("label",fn,t(a.$t("name")),1),p(e("input",{"onUpdate:modelValue":$=>i.name=$,type:"text",maxlength:"50",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900",required:""},null,8,vn),[[f,i.name]])]),e("div",$n,[e("label",xn,[g(t(a.$t("Status"))+" ",1),e("div",{class:"tooltip tooltip-right","data-tip":a.$t("online_status_tip")},Mn,8,wn)]),p(e("select",{"onUpdate:modelValue":$=>i.status=$,class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[e("option",Un," 🟢 "+t(a.$t("status_online")),1),e("option",Vn,"🔴 "+t(a.$t("status_offline")),1)],8,Sn),[[N,i.status]])]),e("div",Cn,[e("label",Bn,t(a.$t("Pay_Backend")),1),p(e("select",{"onUpdate:modelValue":$=>i.backend=$,class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[(r(!0),d(k,null,P(s(n).payManager.config,($,Y,jl)=>(r(),d("option",{value:$.value},t($.name),9,Nn))),256))],8,Pn),[[N,i.backend]])]),s(n).payManager.config[i.backend]?(r(),d("div",Dn,[e("label",jn,t(a.$t("Pay_Channel")),1),p(e("select",{"onUpdate:modelValue":$=>i.channel=$,class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[(r(!0),d(k,null,P(s(n).payManager.config[i.backend].channels,$=>(r(),d("option",{value:$.value}
2,t($.name),9,Fn))),256))],8,zn),[[N,i.channel]])])):w("",!0),e("div",Ln,[e("label",Wn,[g(t(a.$t("Pay_Params"))+" ",1),e("a",{target:"_blank",href:("docsPath"in a?a.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/04.05.payment.html"),class:"ml-1 text-xs text-blue-700 transition hover:opacity-75",rel:"noopener noreferrer"},t(a.$t("Usage")),9,Tn)]),p(e("textarea",{"onUpdate:modelValue":$=>i.paramsStr=$,type:"text",rows:"5",maxlength:"4000",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,In),[[f,i.paramsStr]])])]),e("div",Jn,[e("div",On,[b(m)?(r(),B(y,{key:0,"btn-size":"medium",content:a.$t("Save")},null,8,["content"])):(r(),d("button",Rn,t(a.$t("Save")),1))]),e("div",qn,[v(U,{"btn-size":"medium",onDoDelete:$=>("stateMerchantPayment"in a?a.stateMerchantPayment:s(J)).remove(i.id)},null,8,["onDoDelete"])]),e("div",Zn,[b(m)?(r(),d("button",Gn,t(a.$t("Test_Pay")),1)):(r(),d("button",{key:0,type:"button",onClick:$=>("stateMerchantPayment"in a?a.stateMerchantPayment:s(J)).test(i),class:"block text-center w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-900 text-white hover:bg-gray-800"},t(a.$t("Test_Pay")),9,Qn))])])],40,gn)])],2))),128))]),s(h).payManager.customPays.length===0?(r(),B(u,{key:0},{default:D(()=>[g(t(a.$t("No_Custom_Pay")),1)]),_:1})):w("",!0)])])):(r(),d("div",Kn,[e("p",Hn,[g(t(a.$t("merchant_pay_tip"))+" ",1),Xn]),e("p",Yn,t(a.$t("merchant_pay_tip2")),1)]))])}}},En={class:"hidden rounded-lg",id:"developer",role:"tabpanel","aria-labelledby":"developer-tab"},er={role:"alert",class:"alert max-w-xl flex text-left mb-4 text-xs py-2 rounded-md"},tr=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info h-6 w-6 shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),sr=["href"],or={class:"space-y-3"},ar={class:"space-y-2"},nr={class:"flex gap-x-2"},rr={class:"block text-sm flex items-center"},lr={"data-modal-target":"reset-merchant-secret","data-modal-toggle":"reset-merchant-secret",class:"px-2 py-1 text-xs text-white bg-gray-800 hover:bg-gray-700 font-medium rounded-md",type:"button"},dr={id:"reset-merchant-secret",tabindex:"-1","aria-hidden":"true",class:"hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full"},ir={class:"relative p-4 w-full max-w-lg max-h-full"},cr={class:"relative bg-white rounded-lg shadow"},ur={class:"flex items-center justify-between p-5 rounded-t"},hr={class:"text-xl font-medium text-gray-900"},mr={type:"button",class:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center","data-modal-hide":"reset-merchant-secret"},_r=e("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1),pr={class:"sr-only"},gr={class:"px-5"},br={class:"flex items-center p-4 md:p-5 rounded-b"},yr={"data-modal-hide":"reset-merchant-secret",type:"button",class:"ms-3 text-gray-500 bg-white hover:bg-gray-100 rounded-lg border-0 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10"},fr=["value"],vr={class:"space-y-2"},$r={class:"block text-sm flex items-center"},xr=["placeholder"],wr={class:"space-y-2"},kr={class:"block text-sm flex items-center"},Mr=["placeholder"],Sr={class:"flex gap-x-4 pt-3"},Ur={class:"w-32"},Vr={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Cr={__name:"Developer",setup(z){const{locale:x}=L(),_=W(),n=T(),h=()=>n.value.developer.customerService.webhook!=_.value.developer.customerService.webhook||n.value.developer.eventWebhook.url!=_.value.developer.eventWebhook.url,b=C(()=>({developer:{customerServiceWebhook:n.value.developer.customerService.webhook,eventWebhookUrl:n.value.developer.eventWebhook.url}})),S=C(()=>{const l=n.value.developer.secret;return l?l.slice(0,8)+"*********"+l.slice(-8):""});return(l,a)=>{const o=Q,c=I;return r(),d("div",En,[e("div",er,[tr,e("p",null,[g(t(l.$t("developer_function_intro"))+" 👉  ",1),e("a",{href:("docsPath"in l?l.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/04.06.developer.html"),target:"_blank",class:"text-green-500 font-bold underline"},t(l.$t("help")),9,sr)])]),e("div",or,[e("div",ar,[e("div",nr,[e("label",rr,t(l.$t("Developer_Secret")),1),(r(),B(o,{text:s(n).developer.secret,key:s(n).developer.secret,"btn-size":"small"},null,8,["text"])),e("button",lr,t(l.$t("reset")),1),e("div",dr,[e("div",ir,[e("div",cr,[e("div",ur,[e("h3",hr,t(l.$t("reset")),1),e("button",mr,[_r,e("span",pr,t(l.$t("cancel")),1)])]),e("div",gr,[e("p",null,t(l.$t("reset_merchant_secret_dialog")),1)]),e("div",br,[e("button",{onClick:a[0]||(a[0]=F(y=>("stateMerchant"in l?l.stateMerchant:s(j)).resetSecret(),["prevent"])),"data-modal-hide":"reset-merchant-secret",type:"button",class:"text-white bg-gray-900 hover:bg-gray-800 font-medium rounded-lg text-sm px-5 py-2.5 text-center"},t(l.$t("Confirm")),1),e("button",yr,t(l.$t("cancel")),1)])])])])]),e("input",{value:s(S),type:"text",disabled:"",class:"w-full sm:w-1/2 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 text-gray-800 cursor-not-allowed"},null,8,fr)]),e("div",vr,[e("label",$r,t(l.$t("Customer_Service_Webhook")),1),p(e("input",{"onUpdate:modelValue":a[1]||(a[1]=y=>s(n).developer.customerService.webhook=y),type:"text",maxlength:"100",placeholder:l.$t("merchant_customer_service_webhook_tip"),class:"w-full sm:w-1/2 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,xr),[[f,s(n).developer.customerService.webhook]])]),e("div",wr,[e("label",kr,t(l.$t("Event_Webhook")),1),p(e("input",{"onUpdate:modelValue":a[2]||(a[2]=y=>s(n).developer.eventWebhook.url=y),type:"text",maxlength:"100",placeholder:l.$t("merchant_event_webhook_tip"),class:"w-full sm:w-1/2 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,8,Mr),[[f,s(n).developer.eventWebhook.url]])]),e("div",Sr,[e("div",Ur,[h()?(r(),B(c,{key:0,onClick:a[3]||(a[3]=y=>("stateMerchant"in l?l.stateMerchant:s(j)).updateSettings(s(b))),"btn-size":"medium",content:l.$t("Save")},null,8,["content"])):(r(),d("button",Vr,t(l.$t("Save")),1))])])])])}}},Br={class:"hidden rounded-lg",id:"website",role:"tabpanel","aria-labelledby":"website-tab"},Pr={role:"alert",class:"alert max-w-xl flex text-left mb-4 text-xs py-2 rounded-md"},Nr=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info h-6 w-6 shrink-0"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),Dr={href:"https://github.com/iDataRiver/theme-basic",target:"_blank",class:"text-green-500 font-bold underline"},jr={class:"space-y-2"},zr={class:"block text-sm flex items-center"},Fr={key:0,value:""},Lr=e("option",{value:"1"},"1",-1),Wr=e("option",{value:"2"},"2",-1),Tr={key:0,class:"space-y-2"},Ir={class:"block text-sm flex items-center"},Jr={key:1,class:"space-y-2"},Or={class:"block text-sm flex items-center"},Rr=["href"],qr={class:"flex gap-x-4 pt-3"},Zr={class:"w-32"},Qr={key:1,type:"submit",disabled:"",class:"w-full px-5 py-2.5 text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Gr={class:"w-32"},Kr={key:0,onclick:"website_deploy_modal.showModal()",class:"w-full px-5 py-2.5 text-center text-sm font-medium rounded-md bg-gray-900 hover:bg-gray-800 text-white cursor-pointer"},Hr={key:1,disabled:"",class:"w-full px-5 py-2.5 text-center text-sm font-medium rounded-md bg-gray-300 text-white cursor-not-allowed"},Xr={key:2,id:"website_deploy_modal",class:"modal"},Yr={class:"modal-box space-y-4"},Ar={class:"text-lg font-bold"},Er={class:"flex1 items-center gap-x-2"},el={class:"font-medium text-center"},tl={class:"flex items-center justify-center gap-x-2"},sl={class:"text-sm font-medium italic"},ol={class:"pt-3 flex w-full flex-col border-opacity-50"},al={class:"rounded-md grid h-14 place-items-center gap-y-1"},nl=["href"],rl={class:"space-x-4"},ll=["href"],dl=["href"],il={class:"w-1/2 mx-auto"},cl={class:"divider text-xs"},ul={class:"rounded-md grid h-14 place-items-center"},hl={target:"_blank",href:"https://github.com/iDataRiver/theme-basic",class:"w-1/2 py-2.5 text-center text-xs font-medium rounded-md bg-gray-900 hover:bg-gray-800 text-white cursor-pointer"},ml=e("form",{method:"dialog",class:"modal-backdrop"},[e("button",null,"close")],-1),_l={__name:"Website",setup(z){const{locale:x}=L(),_=W(),n=T(),h=()=>{_.value.website.settingsStr=JSON.stringify(_.value.website.settings,null,2),n.value.website.settingsStr=JSON.stringify(n.value.website.settings,null,2)};h(),ee(_,()=>{h()});const b=()=>{try{JSON.parse(n.value.website.settingsStr)}catch{return!1}return n.value.website.theme!=_.value.website.theme||n.value.website.script!=_.value.website.script||n.value.website.settingsStr!=_.value.website.settingsStr},S=C(()=>({website:{theme:n.value.website.theme,script:n.value.website.script,settings:JSON.parse(n.value.website.settingsStr)}})),l=K(!1),a=[ue(),he];return(o,c)=>{const y=I,M=Q;return r(),d("div",Br,[e("div",Pr,[Nr,e("p",null,[g(t(o.$t("website_function_intro"))+" 👉  ",1),e("a",Dr,t(o.$t("help")),1)])]),e("form",{onSubmit:c[4]||(c[4]=F(U=>("stateMerchant"in o?o.stateMerchant:s(j)).updateSettings(s(S)),["prevent"])),action:"",class:"space-y-3"},[e("div",jr,[e("label",zr,t(o.$t("theme_id")),1),p(e("select",{"onUpdate:modelValue":c[0]||(c[0]=U=>s(n).website.theme=U),class:"w-64 px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},[s(n).website.theme==""?(r(),d("option",Fr,t(o.$t("pls_select_theme")),1)):w("",!0),Lr,Wr],512),[[N,s(n).website.theme]])]),e("div",null,[e("span",{onClick:c[1]||(c[1]=U=>l.value=!s(l)),class:"text-xs underline text-blue-500 cursor-pointer"}
2,t(o.$t("Advanced")),1)]),s(l)?(r(),d("div",Tr,[e("label",Ir,t(o.$t("website_script")),1),p(e("textarea",{"onUpdate:modelValue":c[2]||(c[2]=U=>s(n).website.script=U),type:"text",rows:"8",maxlength:"4000",class:"w-full px-3 py-2 border rounded-md border-gray-300 bg-gray-100 focus:bg-white text-gray-800 focus:ring-gray-900 focus:border-gray-900"},null,512),[[f,s(n).website.script]])])):w("",!0),s(l)?(r(),d("div",Jr,[e("label",Or,[g(t(o.$t("theme_settings"))+" 👉  ",1),e("a",{href:("docsPath"in o?o.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/website-config.html"),target:"_blank",class:"text-xs text-green-500 underline"},t(o.$t("help")),9,Rr)]),e("div",null,[v(s(ce),{modelValue:s(n).website.settingsStr,"onUpdate:modelValue":c[3]||(c[3]=U=>s(n).website.settingsStr=U),autofocus:!1,"indent-with-tab":!0,"tab-size":2,extensions:a},null,8,["modelValue"])])])):w("",!0),e("div",qr,[e("div",Zr,[b()?(r(),B(y,{key:0,"btn-size":"medium",content:o.$t("Save")},null,8,["content"])):(r(),d("button",Qr,t(o.$t("Save")),1))]),e("div",Gr,[s(n).website.id?(r(),d("div",Kr,t(o.$t("Deploy")),1)):(r(),d("div",Hr,t(o.$t("Deploy")),1)),s(n).website.id?(r(),d("dialog",Xr,[e("div",Yr,[e("h3",Ar,t(o.$t("Deploy")),1),e("div",Er,[e("div",el,"🔑 "+t(o.$t("deploy_secret")),1),e("div",tl,[e("span",sl,t(s(n).website.deploy.secret),1),v(M,{class:"flex justify-center",text:s(n).website.deploy.secret,"btn-size":"small"},null,8,["text"])])]),e("div",ol,[e("div",al,[e("a",{target:"_blank",href:s(n).website.deploy.vercel,class:"w-1/2 py-2.5 text-center text-xs font-medium rounded-md bg-gray-900 hover:bg-gray-800 text-white cursor-pointer"},t(o.$t("deploy_with_vercel")),9,nl),e("div",rl,[e("a",{target:"_blank",href:("docsPath"in o?o.docsPath:s(V))(s(x),"https://www.youtube.com/watch?v=u_KM-jLmAAQ&t=1s"),class:"text-xs underline text-green-500"},t(o.$t("video_tutorial")),9,ll),e("a",{target:"_blank",href:("docsPath"in o?o.docsPath:s(V))(s(x),"https://docs.idatariver.com/guide/04.10.website.html"),class:"text-xs underline text-green-500"},t(o.$t("doc_tutorial")),9,dl)])]),e("div",il,[e("div",cl,t(o.$t("OR")),1)]),e("div",ul,[e("a",hl,t(o.$t("deploy_with_manual")),1)])])]),ml])):w("",!0)])])],32)])}}},pl={key:0,class:"py-4"},gl={class:"mb-4 border-b border-gray-200"},bl={ref:"tabs",class:"flex flex-wrap -mb-px text-md font-medium text-center",id:"basic-tab","data-tabs-toggle":"#merchant-tab-content",role:"tablist"},yl={class:"me-2",role:"presentation"},fl={class:"inline-block p-4 border-b-2 rounded-t-lg text-gray-400 border-gray-200 hover:text-gray-900 aria-selected:text-gray-900 aria-selected:border-gray-900",id:"basic-tab","data-tabs-target":"#basic",type:"button",role:"tab","aria-controls":"basic"},vl={class:"me-2",role:"presentation"},$l={class:"inline-block p-4 border-b-2 rounded-t-lg text-gray-400 border-gray-200 hover:text-gray-900 aria-selected:text-gray-900 aria-selected:border-gray-900",id:"withdraw-tab","data-tabs-target":"#withdraw",type:"button",role:"tab","aria-controls":"withdraw"},xl={class:"me-2",role:"presentation"},wl={class:"inline-block p-4 border-b-2 rounded-t-lg text-gray-400 border-gray-200 hover:text-gray-900 aria-selected:text-gray-900 aria-selected:border-gray-900",id:"pay-tab","data-tabs-target":"#pay",type:"button",role:"tab","aria-controls":"pay"},kl={class:"me-2",role:"presentation"},Ml={class:"inline-block p-4 border-b-2 rounded-t-lg text-gray-400 border-gray-200 hover:text-gray-900 aria-selected:text-gray-900 aria-selected:border-gray-900",id:"bot-tab","data-tabs-target":"#bot",type:"button",role:"tab","aria-controls":"bot"},Sl={class:"me-2",role:"presentation"},Ul={class:"inline-block p-4 border-b-2 rounded-t-lg text-gray-400 border-gray-200 hover:text-gray-900 aria-selected:text-gray-900 aria-selected:border-gray-900",id:"developer-tab","data-tabs-target":"#developer",type:"button",role:"tab","aria-controls":"developer"},Vl={class:"me-2",role:"presentation"},Cl={class:"inline-block p-4 border-b-2 rounded-t-lg text-gray-400 border-gray-200 hover:text-gray-900 aria-selected:text-gray-900 aria-selected:border-gray-900",id:"website-tab","data-tabs-target":"#website",type:"button",role:"tab","aria-controls":"website"},Bl={id:"merchant-tab-content"},Pl={__name:"MerchantSettings",setup(z){te();const x=W();return se(()=>{j.settings()}),(_,n)=>{const h=St,b=fo,S=fa,l=An,a=Cr,o=_l;return("isNotEmptyObj"in _?_.isNotEmptyObj:s(ie))(s(x))?(r(),d("div",pl,[e("div",gl,[e("ul",bl,[e("li",yl,[e("button",fl,t(_.$t("Merchant_Basic_Tab")),1)]),e("li",vl,[e("button",$l,t(_.$t("Merchant_Withdraw_Tab")),1)]),e("li",xl,[e("button",wl,t(_.$t("Merchant_Pay_Tab")),1)]),e("li",kl,[e("button",Ml,t(_.$t("Merchant_Bot_Tab")),1)]),e("li",Sl,[e("button",Ul,t(_.$t("Merchant_Developer_Tab")),1)]),e("li",Vl,[e("button",Cl,t(_.$t("Merchant_Website_Tab")),1)])],512)]),e("div",Bl,[v(h),v(b),v(S),v(l),v(a),v(o)])])):w("",!0)}}},Nl={};function Dl(z,x){const _=Pl,n=me,h=ae;return r(),d("div",null,[v(h,{name:"console",currentTab:"merchant-settings"},{default:D(()=>[v(n,null,{default:D(()=>[v(_)]),_:1})]),_:1})])}const Xl=oe(Nl,[["render",Dl]]);export{Xl 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.