import{V as e,S as a}from"./common-utils-RDWuRZ1M.js";import{U as s,G as o,a4 as n,R as t,o as r,b as i,h as g,q as l,y as u,I as c,x as p,t as m,u as d,f,i as b}from"./vendor-jA_NIjzi.js";import{_ as R}from"./BtnClose-8jXpWY6_.js";import{_ as k,b as _}from"./common-store-kFD1YPwN.js";const v=""+new URL("../asset/png/default-login-logo-nk8BP5MV.png",import.meta.url).href,P={class:"nav"},h=k({__name:"loginAndRegisterPublicHeader",props:{isPopup:{type:Boolean,default:!1}},emits:["close"],setup(k,{emit:h}){const{t:I}=s(),L=k,j=_(),y=o((()=>{const e=j.otherConfigurationAdMaps.h5LoginBackgroundImageUrl;return e?{backgroundImage:"url('".concat(e,"')"),backgroundRepeat:"no-repeat",backgroundPosition:"top"}:{backgroundImage:"url(".concat(v,")"),backgroundRepeat:"no-repeat",backgroundPosition:"top"}})),{setRegisterMaintenancePopUp:B}=j,C=h,M=n(),U=t(),{cfg:A}=e(),x=o((()=>"Register"===U.name||"Login"===U.name&&!A.isRegisterEnabled)),E=()=>{L.isPopup?C("close"):M.go(-1)},H=()=>{if("Login"!==U.name||1!=+A.isRegisterMaintenanceEnabled)return"Register"===U.name?M.push("/login"):M.push("/register");B(!0)};return(e,s)=>{const o=a;return r(),i("header",{style:b(y.value)},[g("div",P,[l(R,{onClick:E}),x.value?(r(),u(o,{key:0,size:"small",class:"register",onClick:H},{default:c((()=>[p(m("Register"===d(U).name?d(I)("登录"):d(I)("注册")),1)])),_:1})):f("",!0)])],4)}}},[["__scopeId","data-v-36a08982"],["__file","loginAndRegisterPublicHeader.vue"]]);export{h as L};
