PageSourceSearch

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

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

1import{_ as B}from"./CTTWf905.js";import{_ as h,n as C,o as a,b as r,e as t,t as o,d as c,w as m,l as f,m as y,b7 as I,F as k,q as b,x,b8 as T,b9 as N,ba as L,f as $,A as O,ah as M,ae as V,u as D,B as W,D as j,r as S,E as R}from"#entry";import{_ as E}from"./DryGi9rM.js";import{_ as K}from"./BImRAKho.js";import{_ as P}from"./BrIcFbjI.js";import q from"./tLYdhRW4.js";import"./BuNU_Wqq.js";const A={name:"TopUserSettingsContent",created(){this.datasetsURL=I.index}},F={class:"user-settings__header"},H=["textContent"];function z(e,s,_,p,u,g){const i=C("svgicon"),n=y;return a(),r("div",F,[t("h1",{textContent:o(e.$t("userSettings.title"))},null,8,H),c(n,{to:e.datasetsURL,class:"secondary text"},{default:m(()=>[c(i,{name:"chevron-left",width:"10",height:"10",color:"var(--bg-secondary)"}),f(" "+o(e.$t("breadcrumbs.home")),1)]),_:1},8,["to"])])}const G=Object.assign(h(A,[["render",z],["__scopeId","data-v-95a6c5c0"]]),{__name:"UserSettingsHeader"}),J={data(){return{themes:["system","dark","light","high-contrast"],currentTheme:this.$colorSchema.currentTheme}}},Q={class:"theme-switch"},X=["id","value","onInput"],Y=["for"];function Z(e,s,_,p,u,g){const i=C("svgicon");return a(),r("div",Q,[(a(!0),r(k,null,b(u.themes,(n,d)=>(a(),r("div",{class:"theme-switch__item",key:d},[x(t("input",{type:"radio",id:n,value:n,"onUpdate:modelValue":s[0]||(s[0]=l=>u.currentTheme=l),onInput:l=>e.$colorSchema.setTheme(n)},null,40,X),[[T,u.currentTheme]]),t("label",{for:n},[c(i,{width:"20",height:"20",name:`${n}-theme`},null,8,["name"]),f(" "+o(e.$t(`colorSchema.${n}`)),1)],8,Y)]))),128))])}const ee=Object.assign(h(J,[["render",Z],["__scopeId","data-v-37f692f8"]]),{__name:"UserSettingsTheme"}),te=()=>{const e={app:{i18n:N().$i18n}},{change:s,languages:_}=L(e);return{change:s,languages:_}},ne={setup(){return te()}},se={class:"language-switch"},oe=["id","value","onInput"],ae=["for"];function ie(e,s,_,p,u,g){const i=P;return a(),r("div",se,[(a(!0),r(k,null,b(e.languages,({code:n,name:d})=>(a(),$(i,{class:"language-switch__item",key:n,text:d,minimalist:!1},{default:m(()=>[x(t("input",{type:"radio",id:n,value:n,"onUpdate:modelValue":s[0]||(s[0]=l=>e.$i18n.locale=l),onInput:l=>e.change(n)},null,40,oe),[[T,e.$i18n.locale]]),t("label",{for:n},o(n),9,ae)]),_:2},1032,["text"]))),128))])}const re=Object.assign(h(ne,[["render",ie],["__scopeId","data-v-49e3f69d"]]),{__name:"UserSettingsLanguage"}),ce={name:"UserTokenComponent",props:{userToken:{type:String,required:!0}}},_e={class:"user-token"},le=["textContent"],ue=["textContent"],de={class:"user-token-button"};function pe(e,s,_,p,u,g){const i=y,n=M;return a(),r("div",_e,[t("h2",{class:"user-token-title --heading5 --medium description__title",textContent:o(e.$t("userSettings.apiKey"))},null,8,le),t("p",{class:"user-token-description --body1 description__text",textContent:o(e.$t("userSettings.apiKeyDescription"))},null,8,ue),s[1]||(s[1]=t("span",{class:"user-token-value --body1",textContent:"**** **** **** ****"},null,-1)),t("div",de,[c(n,{tooltip:e.$t("copied")},{default:m(()=>[c(i,{title:e.$t("button.tooltip.copyToClipboard"),class:"secondary small",onClick:s[0]||(s[0]=O(d=>e.$copyToClipboard(_.userToken),["prevent"]))},{default:m(()=>[f(o(e.$t("userSettings.copyKey")),1)]),_:1},8,["title"])]),_:1},8,["tooltip"])])])}const me=Object.assign(h(ce,[["render",pe],["__scopeId","data-v-42e3d49e"]]),{__name:"UserTokenComponent"}),ge=()=>{const e=S(!1),s=S([]),{user:_}=V(),p=D(W);return j(async()=>{e.value=!0,s.value=await p.execute(),e.value=!1}),{isLoadingWorkspaces:e,workspaces:s,user:_}},he={methods:{goToWorkspace(e){this.$router.push(`/?workspace=${e}`)}},setup(){return ge()}},$e={class:"edition-user-info"},fe={class:"form-group circle-and-role"},ve={class:"form-group"},Ce=["textContent"],ke=["textContent"],be={class:"form-group"},xe=["textContent"],Se=["textContent"],ye={class:"form-group"},Te=["textContent"],Ue=["textContent"],we={class:"form-group"},Be=["textContent"],Ie={key:1,class:"workspaces"},Ne={key:2,class:"--body1 description__text"},Le={class:"form-group"},Oe=["textContent"],Me={class:"form-group"},Ve=["textContent"],De={class:"form-group"};function We(e,s,_,p,u,g){const i=E,n=K,d=ee,l=re,U=me,w=R("circle");return a(),r("div",$e,[t("div",fe,[x((a(),r("span",null,[f(o(e.user.avatar),1)])),[[w,{size:"MEDIUM"}]]),c(i,{class:"--capitalized",text:e.user.role},null,8,["text"])]),t("div",ve,[t("h2",{class:"--heading5 --medium description__title",textContent:o(e.$t("userSettings.fields.userName"))},null,8,Ce),t("p",{class:"--body1 description__text",textContent:o(e.user.userName)},null,8,ke)]),t("div",be,[t("h2",{class:"--heading5 --medium description__title",textContent:o(e.$t("userSettings.fields.firstName"))},null,8,xe),t("p",{class:"--body1 description__text",textContent:o(e.user.firstName)},null,8,Se)]),t("div",ye,[t("h2",{class:"--heading5 --medium description__title",textContent:o(e.$t("userSettings.fields.lastName"))},null,8,Te),t("p",{class:"--body1 description__text",textContent:o(e.user.lastName)},null,8,Ue)]),t("div",we,[t("h2",{class:"--heading5 --medium description__title",textContent:o(e.$t("userSettings.fields.workspaces"))}
1,null,8,Be),e.isLoadingWorkspaces?(a(),$(n,{key:0,quantity:5})):e.workspaces?.length?(a(),r("div",Ie,[(a(!0),r(k,null,b(e.workspaces,v=>(a(),$(i,{key:v.id,text:v.name,onOnClick:Ke=>g.goToWorkspace(v.name)},null,8,["text","onOnClick"]))),128))])):(a(),r("p",Ne,"-"))]),t("div",Le,[t("h2",{class:"--heading5 --medium description__title",textContent:o(e.$t("userSettings.theme"))},null,8,Oe),c(d)]),t("div",Me,[t("h2",{class:"--heading5 --medium description__title",textContent:o(e.$t("userSettings.language"))},null,8,Ve),c(l)]),t("div",De,[c(U,{userToken:e.user.apiKey},null,8,["userToken"])])])}const je=Object.assign(h(he,[["render",We],["__scopeId","data-v-54b4f6fb"]]),{__name:"UserSettingsContent"}),Re={name:"UserSettingsPage",components:{InternalPage:q}};function Ee(e,s,_,p,u,g){const i=B,n=G,d=je,l=C("InternalPage");return a(),$(l,null,{header:m(()=>[c(i,{breadcrumbs:[{link:{name:"index"},name:e.$t("breadcrumbs.home")},{link:{},name:e.$t("breadcrumbs.userSettings")}]},null,8,["breadcrumbs"])]),"page-header":m(()=>[c(n)]),"page-content":m(()=>[c(d)]),_:1})}const Je=h(Re,[["render",Ee]]);export{Je 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.