1import{d as e,b as a,u as r,r as s,o as t,e as l,f as o,y as i,g as d,H as n,I as c,i as u,J as m,s as g,K as f,E as p,p as b,n as y,k as x,z as k,L as h,M as v}from"./index-b25171b5.js";import{_}from"./form_title-0c8539e6.js";import{i as w,p as j,b as S}from"./router_controller-8f776b59.js";import{g as G,c as I}from"./controller-aa1def94.js";import{S as L}from"./site_brand-7e9884e4.js";import{_ as U}from"./lodash-c200b85d.js";import{_ as V}from"./plugin-vue_export-helper-1b428a4d.js";import"./aigc-2eb3aff5.js";const M=e=>(b("data-v-583ffc82"),e=e(),y(),e),C={class:"relative w-90 sm:w-100 bg-white rounded-lg shadow dark:bg-gray-700"},E={class:"py-6 px-6 lg:px-8"},N={class:"space-y-12"},F=M((()=>d("label",{for:"gender",class:"input-label"},"Your Name",-1))),H=M((()=>d("label",{for:"gender",class:"input-label"},"Your Gender",-1))),O={class:"flex justify-between mr-20"},Y={class:"flex items-center"},q=["checked"],z=M((()=>d("label",{for:"default-radio-1",class:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300"},"Male",-1))),A={class:"flex items-center"},B=["checked"],D=M((()=>d("label",{for:"default-radio-2",class:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300"},"Female",-1))),J={class:"flex items-center"},K=["checked"],P=M((()=>d("label",{for:"default-radio-2",class:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300"},"Secret",-1))),T=["disabled"],Q=M((()=>d("div",{class:"text-sm font-medium text-gray-500 dark:text-gray-300"},[x(" Click continue to agree our "),d("a",{href:"/privacy.html",class:"policy-link",target:"_blank"},"privacy policy"),x(" and "),d("a",{href:"/privacy.html",class:"policy-link",target:"_blank"},"terms agreement.")],-1))),R=V(e({__name:"guest_signin",setup(e,{expose:b}){const y=a(),x=r(),V=s(!1),M=()=>{x.name=U.trim(x.name),x.name.includes(" ")?p.error("Please input without spaces."):I((e=>{e&&(x.characterSex=1==x.sex?"m":"f",x.isLogon=k.GUEST_LOGON,x.uid="guest"+(Math.floor(9e5*Math.random())+1e5),h(),v(),""===x.domain?(p.success("Guest login successfully."),j(y)):S())}))};return t((()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("isLogon"),x.isLogon=0,x.token="",x.refresh_token="",w(y)})),b({dialogVisible:V}),(e,a)=>(l(),o("div",{class:"home-page",style:f(u(G))},[i(L,{home:"",class:"w-96 flex justify-center items-center mb-8"}),d("div",C,[d("div",E,[i(_,{title:"Guest Sign in"}),d("div",N,[d("div",null,[F,n(d("input",{type:"text",name:"nickname",maxlength:"32","onUpdate:modelValue":a[0]||(a[0]=e=>u(x).name=e),autofocus:"",id:"nickname",class:"login-input",placeholder:"Nickname",required:""},null,512),[[c,u(x).name]])]),d("div",null,[H,d("div",O,[d("div",Y,[n(d("input",{id:"default-radio-1",type:"radio",value:"1",name:"default-radio","onUpdate:modelValue":a[1]||(a[1]=e=>u(x).sex=e),checked:1==u(x).sex,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,q),[[m,u(x).sex]]),z]),d("div",A,[n(d("input",{id:"default-radio-2",type:"radio",value:"2",name:"default-radio","onUpdate:modelValue":a[2]||(a[2]=e=>u(x).sex=e),checked:2==u(x).sex,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,B),[[m,u(x).sex]]),D]),d("div",J,[n(d("input",{id:"default-radio-3",type:"radio",value:"0",name:"default-radio","onUpdate:modelValue":a[3]||(a[3]=e=>u(x).sex=e),checked:0==u(x).sex,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,K),[[m,u(x).sex]]),P])])]),d("button",{disabled:""===u(x).name,class:g(["w-full",""===u(x).name?"meta-btn-disabled":"meta-btn"]),onClick:M}," Continue ",10,T),Q])])])],4))}}),[["__scopeId","data-v-583ffc82"]]);export{R 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.