System.register(["./vendor-legacy-aeda4e3d.js","./index-legacy-9fc2ee5c.js"],function(e,t){"use strict";var a,r,o,l,i,n,d,m,s,c,p,f;return{setters:[e=>{a=e.$,r=e.o,o=e.a,l=e.g,i=e.j,n=e.C,d=e.y,m=e.a2,s=e.a3},e=>{c=e._,p=e.a8,f=e.a_}],execute:function(){var t=document.createElement("style");t.textContent=".platform[data-v-2c485f4e]{padding:.4rem}.platform .title[data-v-2c485f4e]{font-size:.64rem;margin:.8rem 0}.platform .form .tit[data-v-2c485f4e]{font-size:.426667rem;margin-bottom:.4rem}.platform .form .input[data-v-2c485f4e]{width:100%;height:1.333333rem;margin-bottom:.4rem;padding:0 .266667rem;font-size:.426667rem;border:.026667rem solid var(--ex-input-border-color)}.platform .form .input[data-v-2c485f4e]::-moz-placeholder{font-size:.426667rem}.platform .form .input[data-v-2c485f4e]::placeholder{font-size:.426667rem}.platform .form .btn[data-v-2c485f4e]{margin-top:1.6rem;height:1.333333rem;display:flex;align-items:center;justify-content:center;font-size:.426667rem;background-color:var(--ex-rfd-rise)}.platform .form .btn.clear[data-v-2c485f4e]{margin-top:.4rem;background-color:var(--ex-rfd-fall)}\n",document.head.appendChild(t);const u=e=>(m("data-v-2c485f4e"),e=e(),s(),e),v={class:"platform"},g=u(()=>l("div",{class:"title"},"平台切换",-1)),y={class:"form"},h=u(()=>l("div",{class:"tit"},"平台key",-1)),b=u(()=>l("div",{class:"tit"},"平台域名",-1)),x=u(()=>l("div",{class:"tit"},"密码",-1));e("default",c({__name:"platform",setup(e){const t=a({}),m=()=>{t.platform&&!t.domain&&(t.domain="")},s=()=>{localStorage.removeItem(p.TEST_PLATFORM),d("操作成功")},c=()=>{let e=!1;t.platform?t.password?"8888"!=t.password&&(e="密码不正确"):e="请输入 密码":e="请输入 平台key",e?d(e):(delete t.password,localStorage.setItem(p.TEST_PLATFORM,JSON.stringify(t)),d("操作成功"),f(),setTimeout(()=>{location.reload()},800))};return(e,a)=>(r(),o("div",v,[g,l("div",y,[h,i(l("input",{type:"text",class:"input","onUpdate:modelValue":a[0]||(a[0]=e=>t.platform=e),placeholder:"请输入 平台key",onBlur:m},null,544),[[n,t.platform,void 0,{trim:!0}]]),b,i(l("input",{type:"text",class:"input","onUpdate:modelValue":a[1]||(a[1]=e=>t.domain=e),placeholder:"请输入 平台域名"},null,512),[[n,t.domain,void 0,{trim:!0}]]),x,i(l("input",{type:"password",class:"input","onUpdate:modelValue":a[2]||(a[2]=e=>t.password=e),placeholder:"请输入 密码"},null,512),[[n,t.password,void 0,{trim:!0}]]),l("div",{class:"btn",onClick:c},"立即切换"),l("div",{class:"btn clear",onClick:s},"清除")])]))}},[["__scopeId","data-v-2c485f4e"]]))}}});
