PageSourceSearch

https://gozoom.com/_app/immutable/nodes/24.Du3EUSTC.js

js gozoom.com collected 2026-09-26 04:59:44 UTC 7,000 bytes, 11 lines download raw bytes

1import{s as we,e as n,k as C,t as ve,c as o,a as c,y as z,o as D,b as pe,d as i,f as l,i as ye,g as t,B as X,u as J,G as Ie,h as he,n as re,C as Ce,p as De,j as Ee}from"../chunks/scheduler.BrsryIPF.js";import{S as xe,i as ke,b as Ve,d as Te,m as Ae,t as Be,a as Me,e as He}from"../chunks/index.DmrHo4AD.js";import{g as _e}from"../chunks/entry.B45rulR3.js";import{c as je,g as Ke}from"../chunks/index.DVk4M9ja.js";import{t as le}from"../chunks/Toaster.svelte_svelte_type_style_lang.Bbm7Zx51.js";import{k as Le}from"../chunks/index.BUpIQzoJ.js";try{let r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="f5a1c97f-e078-4997-85dc-ea4e4907db8b",r._sentryDebugIdIdentifier="sentry-dbid-f5a1c97f-e078-4997-85dc-ea4e4907db8b")}catch{}function be(r){let e,s=`<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><style>.spinner_ajPY {
2										transform-origin: center;
3										animation: spinner_AtaB 0.75s infinite linear;
4									}
5									@keyframes spinner_AtaB {
6										100% {
7											transform: rotate(360deg);
8										}
9									}
10								</style><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" opacity=".25"></path><path d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z" class="spinner_ajPY"></path></svg>`;return{c(){e=n("div"),e.innerHTML=s,this.h()},l(a){e=o(a,"DIV",{class:!0,"data-svelte-h":!0}),z(e)!=="svelte-1k8nuce"&&(e.innerHTML=s),this.h()},h(){l(e,"class","ml-1.5 self-center")},m(a,w){ye(a,e,w)},d(a){a&&i(e)}}}function Ne(r){let e,s,a,w='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-4 h-4"><path fill-rule="evenodd" d="M17 10a.75.75 0 01-.75.75H5.612l4.158 3.96a.75.75 0 11-1.04 1.08l-5.5-5.25a.75.75 0 010-1.08l5.5-5.25a.75.75 0 111.04 1.08L5.612 9.25H16.25A.75.75 0 0117 10z" clip-rule="evenodd"></path></svg>',y,f,v=r[3].t("Back")+"",E,L,p,b,x,V="Create a knowledge base",N,k,I,T,ne="What are you working on?",Q,M,h,$,A,B,oe="What are you trying to achieve?",ee,H,_,te,j,P,g,K,q=r[3].t("Create Knowledge")+"",S,ae,O,se,ie,d=r[0]&&be();return{c(){e=n("div"),s=n("button"),a=n("div"),a.innerHTML=w,y=C(),f=n("div"),E=ve(v),L=C(),p=n("form"),b=n("div"),x=n("div"),x.textContent=V,N=C(),k=n("div"),I=n("div"),T=n("div"),T.textContent=ne,Q=C(),M=n("div"),h=n("input"),$=C(),A=n("div"),B=n("div"),B.textContent=oe,ee=C(),H=n("div"),_=n("textarea"),te=C(),j=n("div"),P=n("div"),g=n("button"),K=n("div"),S=ve(q),ae=C(),d&&d.c(),this.h()},l(u){e=o(u,"DIV",{class:!0});var m=c(e);s=o(m,"BUTTON",{class:!0});var U=c(s);a=o(U,"DIV",{class:!0,"data-svelte-h":!0}),z(a)!=="svelte-1klo87r"&&(a.innerHTML=w),y=D(U),f=o(U,"DIV",{class:!0});var de=c(f);E=pe(de,v),de.forEach(i),U.forEach(i),L=D(m),p=o(m,"FORM",{class:!0});var Z=c(p);b=o(Z,"DIV",{class:!0});var R=c(b);x=o(R,"DIV",{class:!0,"data-svelte-h":!0}),z(x)!=="svelte-1b0wq8z"&&(x.textContent=V),N=D(R),k=o(R,"DIV",{class:!0});var W=c(k);I=o(W,"DIV",{class:!0});var Y=c(I);T=o(Y,"DIV",{class:!0,"data-svelte-h":!0}),z(T)!=="svelte-15d85kl"&&(T.textContent=ne),Q=D(Y),M=o(Y,"DIV",{class:!0});var ce=c(M);h=o(ce,"INPUT",{class:!0,type:!0,placeholder:!0}),ce.forEach(i),Y.forEach(i),$=D(W),A=o(W,"DIV",{});var F=c(A);B=o(F,"DIV",{class:!0,"data-svelte-h":!0}),z(B)!=="svelte-6zamew"&&(B.textContent=oe),ee=D(F),H=o(F,"DIV",{class:!0});var ue=c(H);_=o(ue,"TEXTAREA",{class:!0,rows:!0,placeholder:!0}),c(_).forEach(i),ue.forEach(i),F.forEach(i),W.forEach(i),R.forEach(i),te=D(Z),j=o(Z,"DIV",{class:!0});var fe=c(j);P=o(fe,"DIV",{});var ge=c(P);g=o(ge,"BUTTON",{class:!0,type:!0});var G=c(g);K=o(G,"DIV",{class:!0});var me=c(K);S=pe(me,q),me.forEach(i),ae=D(G),d&&d.l(G),G.forEach(i),ge.forEach(i),fe.forEach(i),Z.forEach(i),m.forEach(i),this.h()},h(){l(a,"class","self-center"),l(f,"class","self-center font-medium text-sm"),l(s,"class","flex space-x-1"),l(x,"class","text-2xl font-medium font-primary mb-2.5"),l(T,"class","text-sm mb-2"),l(h,"class","w-full rounded-lg py-2 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none"),l(h,"type","text"),l(h,"placeholder","Name your knowledge base"),h.required=!0,l(M,"class","w-full mt-1"),l(I,"class","w-full"),l(B,"class","text-sm mb-2"),l(_,"class","w-full resize-none rounded-lg py-2 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none"),l(_,"rows","4"),l(_,"placeholder","Describe your knowledge base and objectives"),_.required=!0,l(H,"class","w-full mt-1"),l(k,"class","w-full flex flex-col gap-2.5"),l(b,"class","w-full flex flex-col justify-center"),l(K,"class","self-center font-medium"),l(g,"class",O="text-sm px-4 py-2 transition rounded-lg "+(r[0]?" cursor-not-allowed bg-gray-100 dark:bg-gray-800":" bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dar
10k:hover:bg-gray-800")+" flex"),l(g,"type","submit"),g.disabled=r[0],l(j,"class","flex justify-end mt-2"),l(p,"class","flex flex-col max-w-lg mx-auto mt-10 mb-10"),l(e,"class","w-full max-h-full")},m(u,m){ye(u,e,m),t(e,s),t(s,a),t(s,y),t(s,f),t(f,E),t(e,L),t(e,p),t(p,b),t(b,x),t(b,N),t(b,k),t(k,I),t(I,T),t(I,Q),t(I,M),t(M,h),X(h,r[1]),t(k,$),t(k,A),t(A,B),t(A,ee),t(A,H),t(H,_),X(_,r[2]),t(p,te),t(p,j),t(j,P),t(P,g),t(g,K),t(K,S),t(g,ae),d&&d.m(g,null),se||(ie=[J(s,"click",r[6]),J(h,"input",r[7]),J(_,"input",r[8]),J(p,"submit",Ie(r[9]))],se=!0)},p(u,[m]){m&8&&v!==(v=u[3].t("Back")+"")&&he(E,v),m&2&&h.value!==u[1]&&X(h,u[1]),m&4&&X(_,u[2]),m&8&&q!==(q=u[3].t("Create Knowledge")+"")&&he(S,q),u[0]?d||(d=be(),d.c(),d.m(g,null)):d&&(d.d(1),d=null),m&1&&O!==(O="text-sm px-4 py-2 transition rounded-lg "+(u[0]?" cursor-not-allowed bg-gray-100 dark:bg-gray-800":" bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800")+" flex")&&l(g,"class",O),m&1&&(g.disabled=u[0])},i:re,o:re,d(u){u&&i(e),d&&d.d(),se=!1,Ce(ie)}}}function Pe(r,e,s){let a;const w=De("i18n");Ee(r,w,V=>s(3,a=V));let y=!1,f="",v="";const E=async()=>{if(s(0,y=!0),f.trim()===""||v.trim()===""){le.error(a.t("Please fill in all fields.")),s(1,f=""),s(2,v=""),s(0,y=!1);return}const V=await je(localStorage.token,f,v).catch(N=>{le.error(N)});V&&(le.success(a.t("Knowledge created successfully.")),Le.set(await Ke(localStorage.token)),_e(`/workspace/knowledge/${V.id}`)),s(0,y=!1)},L=()=>{_e("/workspace/knowledge")};function p(){f=this.value,s(1,f)}function b(){v=this.value,s(2,v)}return[y,f,v,a,w,E,L,p,b,()=>{E()}]}class qe extends xe{constructor(e){super(),ke(this,e,Pe,Ne,we,{})}}function ze(r){let e,s;return e=new qe({}),{c(){Ve(e.$$.fragment)},l(a){Te(e.$$.fragment,a)},m(a,w){Ae(e,a,w),s=!0},p:re,i(a){s||(Be(e.$$.fragment,a),s=!0)},o(a){Me(e.$$.fragment,a),s=!1},d(a){He(e,a)}}}class Ye extends xe{constructor(e){super(),ke(this,e,null,ze,we,{})}}export{Ye as component};
11//# sourceMappingURL=24.Du3EUSTC.js.map

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.