Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/monitoring/spa/_nuxt/Dn9szQkK.min.js

import{_ as Z,a as A,b as D}from"./DcvcwtrK.js";import{_ as j,a as O,b as W}from"./C1t6p9e5.js";import{v as B,_ as H,o as c,c as g,a as r,q as y,B as N,C as F,A as G,m as z,s as J,n as T,D as X,r as w,E as L,F as V,G as M,b as t,w as _,t as s,d,p as R,H as q,z as K,I as P,J as Y}from"./okq41Fdn.js";import{_ as Q}from"./D0Z9iKfj.js";import{_ as ee}from"./ZZFlg-Cp.js";import{_ as ne}from"./DSZAAt41.js";import oe from"./BVLr4EuM.js";import{_ as te}from"./ID7jOLcy.js";import{u as se}from"./BLHlCMFj.js";import{u as U}from"./D_nKbUby.js";import{u as re,_ as ie}from"./DsGtFXou.js";import{v as ae}from"./5LXQy1qV.js";import{u as I}from"./BVcmU43W.js";import{_ as le}from"./B34t_Hym.js";import{u as me}from"./cHNyW4W_.js";import"./TTM5Wctx.js";import"./DHjgbUIF.js";import"./DiNxuV5w.js";import"./NJoZQAuf.js";import"./B3Imx6eP.js";import"./BTD3f1Mb.js";import"./BF43V3aM.js";const _e=B({__name:"BodyPageLabel",props:{type:{type:String,default:"join"}},setup(n,{expose:o}){o();const e={matrix:{join:"bg-primary-400 text-primary",plan:"bg-secondary-400 text-secondary"}};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}}),ce={key:0,width:"24",height:"17",viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ue(n,o,l,e,C,v){return c(),g("div",{class:F(["rounded py-2 px-3 flex items-center gap-2 font-medium text-sm",e.matrix[l.type]])},[l.type==="join"?(c(),g("svg",ce,o[0]||(o[0]=[r("path",{d:"M7.21875 2.34375C7.21875 3.43359 6.30469 4.3125 5.25 4.3125C4.16016 4.3125 3.28125 3.43359 3.28125 2.34375C3.28125 1.28906 4.16016 0.375 5.25 0.375C6.30469 0.375 7.21875 1.28906 7.21875 2.34375ZM8.0625 6.17578C7.00781 7.08984 6.375 8.46094 6.375 9.9375C6.375 11.168 6.76172 12.2578 7.5 13.1367V13.875C7.5 14.5078 6.97266 15 6.375 15H4.125C3.49219 15 3 14.5078 3 13.875V12.9609C1.66406 12.3281 0.75 10.957 0.75 9.375C0.75 7.23047 2.50781 5.4375 4.6875 5.4375H5.8125C6.62109 5.4375 7.42969 5.71875 8.0625 6.17578ZM3 7.89844C2.64844 8.28516 2.4375 8.8125 2.4375 9.375C2.4375 9.97266 2.64844 10.5 3 10.8867V7.89844ZM16.5 13.875V13.1367C17.2031 12.2578 17.625 11.168 17.625 9.9375C17.625 8.46094 16.957 7.08984 15.9023 6.17578C16.5352 5.71875 17.3438 5.4375 18.1875 5.4375H19.3125C21.457 5.4375 23.25 7.23047 23.25 9.375C23.25 10.957 22.3008 12.3281 21 12.9609V13.875C21 14.5078 20.4727 15 19.875 15H17.625C16.9922 15 16.5 14.5078 16.5 13.875ZM21 10.8867C21.3164 10.5 21.5625 9.97266 21.5625 9.375C21.5625 8.8125 21.3164 8.28516 21 7.89844V10.8867ZM20.7188 2.34375C20.7188 3.43359 19.8047 4.3125 18.75 4.3125C17.6602 4.3125 16.7812 3.43359 16.7812 2.34375C16.7812 1.28906 17.6602 0.375 18.75 0.375C19.8047 0.375 20.7188 1.28906 20.7188 2.34375ZM9.75 2.625C9.75 1.39453 10.7344 0.375 12 0.375C13.2305 0.375 14.25 1.39453 14.25 2.625C14.25 3.89062 13.2305 4.875 12 4.875C10.7344 4.875 9.75 3.89062 9.75 2.625ZM16.5 9.9375C16.5 11.5195 15.5508 12.8906 14.25 13.5234V15C14.25 15.6328 13.7227 16.125 13.125 16.125H10.875C10.2422 16.125 9.75 15.6328 9.75 15V13.5234C8.41406 12.8906 7.5 11.5195 7.5 9.9375C7.5 7.79297 9.25781 6 11.4375 6H12.5625C14.707 6 16.5 7.79297 16.5 9.9375ZM9.75 11.4492V8.46094C9.39844 8.84766 9.1875 9.375 9.1875 9.9375C9.1875 10.5352 9.39844 11.0625 9.75 11.4492ZM14.25 8.46094V11.4492C14.5664 11.0273 14.8125 10.5352 14.8125 9.9375C14.8125 9.375 14.5664 8.84766 14.25 8.46094Z",fill:"#003DA6"},null,-1)]))):y("",!0),N(n.$slots,"default")],2)}const pe=H(_e,[["render",ue],["__file","BodyPageLabel.vue"]]),de=B({__name:"SignInWith",setup(n,{expose:o}){o();const{t:l}=G(),e=z(),C=J(),v=T(),{openSSO:u}=se(),{tracker:f}=U(),S=p=>{f("trigger_sign_up","button",`sign up with ${p} click`),u(p)},a=X({email:"",password:""}),m=w(""),h=w(""),{signInURL:b}=re(),i=w(!1),$=async()=>{if(!k.value)return;I((()=>{i.value=!0}),100),m.value="";const{error:p}=await C.signIn(a.email,a.password);if(p&&!p.message.includes("HTML response")){p.message.toString().includes("http")?(m.value="Login failed: Please sign in to the correct platform by clicking ",h.value=p.message.toString()):m.value=`Login failed: ${p}`,I((()=>{i.value=!1}),100);return}I((()=>{i.value=!1}),100),b()},x=L((()=>a.email.length&&ae(a.email))),k=L((()=>{const p=x.value&&a.password.length;return!x.value&&!a.password.length?m.value=l("InvalidLoginInfo"):a.password.length?x.value||(m.value=l("InvalidEMail")):m.value=l("InvalidPassword"),p})),E={t:l,router:e,sStore:C,store:v,openSSO:u,tracker:f,triggerSSO:S,loginForm:a,loginError:m,errorUrl:h,signInURL:b,loading:i,login:$,isEmailValid:x,checkFields:k};return Object.defineProperty(E,"__isScriptSetup",{enumerable:!1,value:!0}),E}}),ge={key:0,class:"signUpButtonGrid gap-4 grid"},fe={class:"px-2"},Ce={class:"px-2"},ve={class:"flex justify-between w-full"},be=["href"];function xe(n,o,l,e,C,v){var b;const u=Q,f=ee,S=ne,a=Z,m=oe,h=te;return c(),g("div",null,[!("useRuntimeConfig"in n?n.useRuntimeConfig:V(M))().public.WHM_EXTRAS&&((b=e.store.cnameConfig)!=null&&b.oauthEnabled)?(c(),g("div",ge,[t(f,{palette:"ghost",class:"signUpButtonGrid__subg1",onClick:o[0]||(o[0]=i=>e.triggerSSO("google"))},{default:_((()=>[t(u,{service:"google"}),r("p",fe,s(n.$t("SignInGoogle")),1)])),_:1}),t(f,{palette:"ghost",class:"signUpButtonGrid__subg2",onClick:o[1]||(o[1]=i=>e.triggerSSO("microsoft"))},{default:_((()=>[t(u,{service:"microsoft"}),r("p",Ce,s(n.$t("SignInMicrosoft")),1)])),_:1})])):y("",!0),r("form",{class:"flex gap-4 flex-col",onSubmit:q(e.login,["prevent"])},[t(S,{modelValue:e.loginForm.email,"onUpdate:modelValue":o[2]||(o[2]=i=>e.loginForm.email=i),type:"email"},{default:_((()=>[d(s(n.$t("Email")),1)])),_:1},8,["modelValue"]),t(S,{modelValue:e.loginForm.password,"onUpdate:modelValue":o[4]||(o[4]=i=>e.loginForm.password=i),type:"password"},{default:_((()=>[r("span",ve,[d(s(n.$t("Password"))+" ",1),r("a",{class:"text-primary cursor-pointer hover:text-black transition duration-300",onClick:o[3]||(o[3]=i=>e.router.push("reset"))},s(n.$t("ForgotPassword")),1)])])),_:1},8,["modelValue"]),r("div",null,[t(f,{class:"px-6",type:"submit",tag:"button",onClick:o[5]||(o[5]=i=>e.tracker("trigger_sign_in","button","sign in with email click"))},{default:_((()=>[d(s(n.$t("LogIn"))+" ",1),e.loading?(c(),R(a,{key:0,class:"w-5"})):y("",!0),t(m,{name:"material-symbols:chevron-right",class:"size-6"})])),_:1}),e.loginError?(c(),R(h,{key:0,class:"mt-2"},{default:_((()=>[d(s(e.loginError)+" ",1),e.errorUrl?(c(),g("a",{key:0,href:e.errorUrl,class:"underline"},s(n.$t("here")),9,be)):y("",!0)])),_:1})):y("",!0)])],32)])}const Se=H(de,[["render",xe],["__file","SignInWith.vue"]]),he=B({__name:"login",setup(n,{expose:o}){o();const{getDashboardLink:l}=K();me("SeoTitleSignin"),T().progressVisibleInDrawer=!1;const e=w(!0),C=w(!1),{tracker:v}=U();v("page_view","page","login");const u={getDashboardLink:l,openSignIn:e,teamsEnabled:C,tracker:v};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}}),ye={class:"flex gap-4 w-full"},we={class:"flex-auto flex @container/main"},ke={class:"flex flex-col w-full justify-center mb-4"},$e={class:"mb-2 text-sm leading-6"},Ie={key:0,class:"mt-6"},Ve=["href"],Me={class:"w-full"};function Be(n,o,l,e,C,v){const u=A,f=j,S=pe,a=O,m=D,h=Se,b=ie,i=le,$=W;return c(),g("div",ye,[t(u,{class:F(["hidden lg:w-[400px] xl:min-w-[616px] 2xl:min-w-[680px] 3xl:min-w-[900px] transition-all duration-300",("useRuntimeConfig"in n?n.useRuntimeConfig:V(M))().public.WHM_EXTRAS?"xl:!visible xl:!flex":"lg:!visible lg:!flex"])},null,8,["class"]),t($,null,{default:_((()=>{var x;return[t(f),r("div",we,[r("div",ke,[e.openSignIn?(c(),g(P,{key:1},[t(a,{"show-count":!1,class:"mb-4"},{headline:_((()=>[d(s(n.$t("WelcomeBack")),1)])),_:1}),t(h,{class:"mb-8"}),r("p",null,[d(s(n.$t("NewTo360Monitoring"))+" ",1),r("a",{class:"text-primary cursor-pointer hover:text-black transition duration-300",onClick:o[1]||(o[1]=k=>e.openSignIn=!1)},s(n.$t("GetStarted")),1)]),(x=("useRuntimeConfig"in n?n.useRuntimeConfig:V(M))().public.DASHBOARD_LINK)!=null&&x.length?(c(),g("p",Ie,[r("a",{href:e.getDashboardLink(),class:"text-primary cursor-pointer hover:text-black transition duration-300 flex items-center"},"< "+s(n.$t("BackToDashboard")),9,Ve)])):y("",!0)],64)):(c(),g(P,{key:0},[t(a,{"show-count":!1,class:"mb-4"},Y({headline:_((()=>[d(s(n.$t("PerformanceMetricsTrust")),1)])),_:2},[e.teamsEnabled?{name:"label",fn:_((()=>[t(S,null,{default:_((()=>[d(s(n.$t("YouJoinTeam",{email:"karl@gustav.blubb"})),1)])),_:1})])),key:"0"}:void 0]),1024),t(m,{class:"mb-8"}),r("p",$e,[d(s(n.$t("HaveAccount"))+" ",1),r("a",{class:"text-primary cursor-pointer hover:text-black transition duration-300",onClick:o[0]||(o[0]=k=>e.openSignIn=!0)},s(n.$t("SignIn")),1)])],64))])]),r("footer",Me,[t(b,{class:"mb-8"}),t(i)])]})),_:1})])}const Qe=H(he,[["render",Be],["__file","login.vue"]]);export{Qe as default};
Back to Directory File Manager