import{u as P,s as h,b as U,H as j,f as g,y as q,h as z,m as c,j as i,k as s,l as p,w as d,p as o,_ as A,Z as D,A as m,t as a,v as x,q as l,i as F,T as G,C as I,aq as W,a5 as $}from"./BCLrUOBx.js";import Z from"./D-dwsp7D.js";import"./x_rD_Ya3.js";const J={class:"section"},K={class:"container"},O={class:"center-text mb-30 mb-sm-15"},Q=["src","alt"],X={class:"user-form"},Y={class:"mb-15 bold"},ee={key:0,class:"bold mtb-15 center-text"},oe={class:"flex flex-xs gap-10"},te={class:"mt-20 mt-sm-15 f-9 plr-40"},se={class:"ptb-15 mt-30 mt-sm-15 b-t center-text"},le={__name:"empty",setup(ae){const w=P(),{currentLanguage:L}=h(w),_=U(),{site_setting:n,setting:f,toastMessage:C,toastError:B,toastMessageStatus:S,current_year:T}=h(_),{hideToast:M}=_,u=j(),y=g(()=>{var e;return(e=f.value)==null?void 0:e.google_login}),b=g(()=>{var e;return(e=f.value)==null?void 0:e.facebook_login}),N=g(()=>{var e;return((e=u==null?void 0:u.name)==null?void 0:e.split("___")[0])||"error"}),{pageLink:R,getImageURL:E}=q(),v=e=>{window.location.href=V(e)},V=e=>{const r=W().public.apiBase;return(r.trim()?r:window.location.origin+"/")+$.api.url+$.api.socialLogin+"/"+e};return z(()=>{var e,t;document.body.classList.add(((e=L.value)==null?void 0:e.direction)||"ltr"),(t=n.value)!=null&&t.primary_color&&(document.documentElement.style.setProperty("--primary-color",n.value.primary_color),document.documentElement.style.setProperty("--primary-hover-color",n.value.primary_hover_color))}),(e,t)=>{const r=A,k=Z;return i(),c("div",{class:I(["body-bg",o(N)])},[s("section",J,[s("div",K,[s("div",O,[p(r,{to:"/"},{default:d(()=>[s("img",{class:"mx-h-55x",src:o(E)(o(n).header_logo),alt:e.$t("footer.siteLogo"),height:"40",width:"139"},null,8,Q)]),_:1})]),s("div",X,[s("h4",Y,a(e.$t("empty.welcome",{name:o(n).site_name})),1),D(e.$slots,"default"),o(b)||o(y)?(i(),c("h5",ee,a(e.$t("empty.or")),1)):m("",!0),s("div",oe,[o(b)?(i(),c("button",{key:0,"aria-label":"submit",class:"flex flex-1 gap-5 primary-btn facebook-btn",onClick:t[0]||(t[0]=x(H=>v("facebook"),["prevent"]))},[t[2]||(t[2]=s("i",{class:"icon facebook-icon"},null,-1)),l(" "+a(e.$t("empty.loginFacebook")),1)])):m("",!0),o(y)?(i(),c("button",{key:1,"aria-label":"submit",class:"flex flex-1 gap-5 primary-btn google-btn",onClick:t[1]||(t[1]=x(H=>v("google"),["prevent"]))},[t[3]||(t[3]=s("i",{class:"icon google-icon"},null,-1)),l(" "+a(e.$t("empty.loginGoogle")),1)])):m("",!0)]),s("p",te,[l(a(e.$t("empty.agreement"))+" ",1),p(r,{to:o(R)({slug:"privacy-policy"}),class:"link"},{default:d(()=>[l(a(e.$t("empty.privacyPolicy")),1)]),_:1},8,["to"]),t[4]||(t[4]=l(" . "))])]),s("p",se," © "+a(o(T))+" - "+a(o(n).copyright_text),1)])]),p(G,{name:"fade",mode:"out-in"},{default:d(()=>[o(S)?(i(),F(k,{key:0,"is-error":o(B),onHide:o(M),message:o(C)},null,8,["is-error","onHide","message"])):m("",!0)]),_:1})],2)}}};export{le as default};
