PageSourceSearch

https://extralit-public-demo.hf.space/_nuxt/CVJXsvz5.js

js extralit-public-demo.hf.space collected 2026-10-03 16:51:25 UTC 1,912 bytes, 1 lines download raw bytes

1import{_ as p}from"./CyzDTQGm.js";import{u as m,ai as d,aV as C,aH as H,_ as b,o as t,b as g,f as F,d as i,bb as L,e as o,t as c,w as k,l as B,m as v,P as w}from"#entry";import{_ as x}from"./CvOTIL-7.js";const T=()=>{const e=m(C),{hasHuggingFaceOAuthConfigured:s,getHuggingFaceSpace:a}=d();return{authorize:()=>{e.authorize("huggingface")},hasHuggingFaceOAuthConfigured:s,getHuggingFaceSpace:a}},y=H("/images/welcome-hf-sign-in-ss.jpg"),S={name:"hf-login",data(){return{user:"",space:"",isHuggingFaceConfigured:!1}},methods:{goToLogin(){this.$router.replace({name:"sign-in",query:{...(this._.provides[w]||this.$route).query,omitCTA:"true"}})}},async beforeMount(){if(this.isHuggingFaceConfigured=await this.hasHuggingFaceOAuthConfigured(),!this.isHuggingFaceConfigured)return this.goToLogin();const e=await this.getHuggingFaceSpace();if(!e)return this.goToLogin();this.user=e.user,this.space=e.space},setup(){return T()}},A={class:"hf-login"},V={key:1,class:"hf-login__hero"},z={class:"hf-login__hero__content"},I=["textContent"],M=["innerHTML"],R={class:"hf-login__buttons"};function $(e,s,a,u,n,_){const r=p,l=L,h=x,f=v;return t(),g("main",A,[!n.isHuggingFaceConfigured||!n.user||!n.space?(t(),F(r,{key:0})):(t(),g("div",V,[i(l,{color:"dark",class:"hf-login__logo"}),o("div",z,[o("h1",{class:"hf-login__title",textContent:c(e.$t("login.hf.title",{space:n.space}))},null,8,I),o("h2",{class:"hf-login__subtitle",innerHTML:e.$t("login.hf.subtitle",{user:n.user})},null,8,M),o("div",R,[i(h,{class:"hf-login__button--hugging-face",onClick:e.authorize},null,8,["onClick"]),i(f,{class:"hf-login__button",onClick:_.goToLogin},{default:k(()=>[B(c(e.$t("button.sign_in_with_username")),1)]),_:1},8,["onClick"])])])])),s[0]||(s[0]=o("div",{class:"hf-login__img-container"},[o("img",{class:"hf-login__img",src:y,alt:"extralit UI"})],-1))])}const q=b(S,[["render",$],["__scopeId","data-v-85035ac3"]]);export{q 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.