PageSourceSearch

https://farosaves.com/_app/immutable/nodes/26.DzI8ywwm.js

js farosaves.com collected 2026-10-02 01:30:02 UTC 3,211 bytes, 1 lines download raw bytes

1import{s as S,n as F}from"../chunks/scheduler.CM40Lc5k.js";import{S as R,i as A,e as g,s as T,t as U,c as y,a as x,f as V,n as G,b as D,d as m,o as c,g as j,h as f,z as J,j as O}from"../chunks/index.BVFYRWx1.js";function H(o){let e,n,t=o[0].pdf_id+"",s;return{c(){e=g("div"),n=U("Upload successful, id: "),s=U(t),this.h()},l(a){e=y(a,"DIV",{class:!0});var l=x(e);n=D(l,"Upload successful, id: "),s=D(l,t),l.forEach(m),this.h()},h(){c(e,"class","flex justify-center btn btn-lg btn-primary z-10 text-5xl font-bold")},m(a,l){j(a,e,l),f(e,n),f(e,s)},p(a,l){l&1&&t!==(t=a[0].pdf_id+"")&&O(s,t)},d(a){a&&m(e)}}}function L(o){var a;let e,n,t=((a=o[0])==null?void 0:a.error)+"",s;return{c(){e=g("div"),n=U("Not successful, error: "),s=U(t),this.h()},l(l){e=y(l,"DIV",{class:!0});var h=x(e);n=D(h,"Not successful, error: "),s=D(h,t),h.forEach(m),this.h()},h(){c(e,"class","flex justify-center btn btn-lg btn-error z-10 text-5xl font-bold")},m(l,h){j(l,e,h),f(e,n),f(e,s)},p(l,h){var _;h&1&&t!==(t=((_=l[0])==null?void 0:_.error)+"")&&O(s,t)},d(l){l&&m(e)}}}function K(o){var q,B;let e,n,t,s,a,l='<h1 class="text-5xl font-bold">Upload PDF</h1> <p class="py-6">It will be converted to a webpage so that highlighting will work.</p>',h,_,p,v,z,b,M,E,N,P,r=((q=o[0])==null?void 0:q.success)&&H(o),i=((B=o[0])==null?void 0:B.error)&&L(o);return{c(){e=g("div"),r&&r.c(),n=T(),i&&i.c(),t=T(),s=g("div"),a=g("div"),a.innerHTML=l,h=T(),_=g("div"),p=g("form"),v=g("input"),z=T(),b=g("button"),M=U("Upload"),this.h()},l(d){e=y(d,"DIV",{class:!0});var u=x(e);r&&r.l(u),n=V(u),i&&i.l(u),t=V(u),s=y(u,"DIV",{class:!0});var w=x(s);a=y(w,"DIV",{class:!0,"data-svelte-h":!0}),G(a)!=="svelte-67zm9e"&&(a.innerHTML=l),h=V(w),_=y(w,"DIV",{class:!0});var I=x(_);p=y(I,"FORM",{method:!0,class:!0,enctype:!0});var k=x(p);v=y(k,"INPUT",{type:!0,accept:!0,name:!0,class:!0}),z=V(k),b=y(k,"BUTTON",{class:!0,type:!0});var C=x(b);M=D(C,"Upload"),C.forEach(m),k.forEach(m),I.forEach(m),w.forEach(m),u.forEach(m),this.h()},h(){c(a,"class","text-center lg:text-left"),c(v,"type","file"),c(v,"accept",".pdf,.html"),c(v,"name","fileToUpload"),v.required=!0,c(v,"class","file-input file-input-bordered w-full max-w-xs"),b.disabled=E=!o[1],c(b,"class","btn"),c(b,"type","submit"),c(p,"method","post"),c(p,"class","card-body"),c(p,"enctype","multipart/form-data"),c(_,"class","card shrink-0 w-full max-w-sm shadow-2xl bg-base-100"),c(s,"class","hero-content flex-col lg:flex-row-reverse"),c(e,"class","hero min-h-screen bg-base-200")},m(d,u){j(d,e,u),r&&r.m(e,null),f(e,n),i&&i.m(e,null),f(e,t),f(e,s),f(s,a),f(s,h),f(s,_),f(_,p),f(p,v),f(p,z),f(p,b),f(b,M),N||(P=J(v,"change",o[2]),N=!0)},p(d,[u]){var w,I;(w=d[0])!=null&&w.success?r?r.p(d,u):(r=H(d),r.c(),r.m(e,n)):r&&(r.d(1),r=null),(I=d[0])!=null&&I.error?i?i.p(d,u):(i=L(d),i.c(),i.m(e,t)):i&&(i.d(1),i=null),u&2&&E!==(E=!d[1])&&(b.disabled=E)},i:F,o:F,d(d){d&&m(e),r&&r.d(),i&&i.d(),N=!1,P()}}}function Q(o,e,n){let t,{form:s}=e;function a(){t=this.files,n(1,t)}return o.$$set=l=>{"form"in l&&n(0,s=l.form)},o.$$.update=()=>{o.$$.dirty&2&&t&&console.log("less than 10 MB?",t[0].size<Math.pow(10,7))},[s,t,a]}class Y extends R{constructor(e){super(),A(this,e,Q,K,S,{form:0})}}export{Y as component};

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.