|
import{s as ne,l as ae,i as oe,n as le,d as f,j as H,p as ie,q as ue,e as c,t as U,k as I,c as d,a as h,b as N,o as E,f as n,g as t,u as ce,h as V}from"../chunks/scheduler.DB3Sqaa-.js";import{S as de,i as fe}from"../chunks/index.CidI1d1E.js";import{g as me}from"../chunks/entry.JtQ7vg2d.js";import{d as he,W as pe}from"../chunks/index.DPWiq6NR.js";function re(o){let r,e,a,l,p,v=o[1].t("{{webUIName}} Backend Required",{webUIName:o[2]})+"",g,q,s,B=o[1].t("Oops! You're using an unsupported method (frontend only). Please serve the WebUI from the backend.")+"",x,P,C,T,R,Y,_,y=o[1].t("See readme.md for instructions")+"",S,J,A=o[1].t("or")+"",z,Q,b,j=o[1].t("join our Discord for help.")+"",M,F,w,k,W=o[1].t("Check Again")+"",O,G,K;return{c(){r=c("div"),e=c("div"),a=c("div"),l=c("div"),p=c("div"),g=U(v),q=I(),s=c("div"),x=U(B),P=I(),C=c("br"),T=I(),R=c("br"),Y=I(),_=c("a"),S=U(y),J=I(),z=U(A),Q=I(),b=c("a"),M=U(j),F=I(),w=c("div"),k=c("button"),O=U(W),this.h()},l(i){r=d(i,"DIV",{class:!0});var m=h(r);e=d(m,"DIV",{class:!0});var L=h(e);a=d(L,"DIV",{class:!0});var X=h(a);l=d(X,"DIV",{class:!0});var D=h(l);p=d(D,"DIV",{class:!0});var Z=h(p);g=N(Z,v),Z.forEach(f),q=E(D),s=d(D,"DIV",{class:!0});var u=h(s);x=N(u,B),P=E(u),C=d(u,"BR",{class:!0}),T=E(u),R=d(u,"BR",{class:!0}),Y=E(u),_=d(u,"A",{class:!0,href:!0,target:!0});var $=h(_);S=N($,y),$.forEach(f),J=E(u),z=N(u,A),Q=E(u),b=d(u,"A",{class:!0,href:!0,target:!0});var ee=h(b);M=N(ee,j),ee.forEach(f),u.forEach(f),F=E(D),w=d(D,"DIV",{class:!0});var te=h(w);k=d(te,"BUTTON",{class:!0});var se=h(k);O=N(se,W),se.forEach(f),te.forEach(f),D.forEach(f),X.forEach(f),L.forEach(f),m.forEach(f),this.h()},h(){n(p,"class","text-center text-2xl font-medium z-50"),n(C,"class",""),n(R,"class",""),n(_,"class","font-semibold underline"),n(_,"href","https://github.com/open-webui/open-webui#how-to-install-"),n(_,"target","_blank"),n(b,"class","font-semibold underline"),n(b,"href","https://discord.gg/5rJgQTnV4s"),n(b,"target","_blank"),n(s,"class","mt-4 text-center text-sm w-full"),n(k,"class","relative z-20 flex px-5 py-2 rounded-full bg-gray-100 hover:bg-gray-200 transition font-medium text-sm"),n(w,"class","mt-6 mx-auto relative group w-fit"),n(l,"class","max-w-md"),n(a,"class","m-auto pb-44 flex flex-col justify-center"),n(e,"class","absolute rounded-xl w-full h-full backdrop-blur flex justify-center"),n(r,"class","absolute w-full h-full flex z-50")},m(i,m){oe(i,r,m),t(r,e),t(e,a),t(a,l),t(l,p),t(p,g),t(l,q),t(l,s),t(s,x),t(s,P),t(s,C),t(s,T),t(s,R),t(s,Y),t(s,_),t(_,S),t(s,J),t(s,z),t(s,Q),t(s,b),t(b,M),t(l,F),t(l,w),t(w,k),t(k,O),G||(K=ce(k,"click",o[4]),G=!0)},p(i,m){m&6&&v!==(v=i[1].t("{{webUIName}} Backend Required",{webUIName:i[2]})+"")&&V(g,v),m&2&&B!==(B=i[1].t("Oops! You're using an unsupported method (frontend only). Please serve the WebUI from the backend.")+"")&&V(x,B),m&2&&y!==(y=i[1].t("See readme.md for instructions")+"")&&V(S,y),m&2&&A!==(A=i[1].t("or")+"")&&V(z,A),m&2&&j!==(j=i[1].t("join our Discord for help.")+"")&&V(M,j),m&2&&W!==(W=i[1].t("Check Again")+"")&&V(O,W)},d(i){i&&f(r),G=!1,K()}}}function ve(o){let r,e=o[0]&&re(o);return{c(){e&&e.c(),r=ae()},l(a){e&&e.l(a),r=ae()},m(a,l){e&&e.m(a,l),oe(a,r,l)},p(a,[l]){a[0]?e?e.p(a,l):(e=re(a),e.c(),e.m(r.parentNode,r)):e&&(e.d(1),e=null)},i:le,o:le,d(a){a&&f(r),e&&e.d(a)}}}function _e(o,r,e){let a,l,p;H(o,he,s=>e(5,a=s)),H(o,pe,s=>e(2,p=s));const v=ie("i18n");H(o,v,s=>e(1,l=s));let g=!1;return ue(async()=>{a&&await me("/"),e(0,g=!0)}),[g,l,p,v,()=>{location.href="/"}]}class Ee extends de{constructor(r){super(),fe(this,r,_e,ve,ne,{})}}export{Ee as component}; |