PageSourceSearch

https://www.lovetoknow.com/_sites/be94ff46ee6a79aa249cfbf2f90d6c369f1abae4/_nuxt/C5IVFD9x.js

js lovetoknow.com collected 2026-10-01 09:17:32 UTC 11,465 bytes, 1 lines download raw bytes

1import{s as Q,r as P,f as W,u as X,c as w,t as x,i as Y,d as z,w as G,o as Z,a as ee,b as m,e as b,g as $,h as U,j as i,k as f,l as F,n as te,m as se,F as K,p as H,q as S,_ as E,v as T,x as M,y as ae,z as oe,A as ne,B as re,C as le,D as ie,E as L,G as ce,H as ue,T as de,I as _e,J as he,K as fe}from"./C8_Tehsm.js";const me=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],pe=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",C=[];class ve{_data=new O;_hash=new O([...me]);_nDataBytes=0;_minBufferSize=0;finalize(s){s&&this._append(s);const t=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(e+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(s,t){const e=this._hash.words;let a=e[0],o=e[1],n=e[2],_=e[3],d=e[4],k=e[5],v=e[6],u=e[7];for(let c=0;c<64;c++){if(c<16)C[c]=s[t+c]|0;else{const r=C[c-15],B=(r<<25|r>>>7)^(r<<14|r>>>18)^r>>>3,g=C[c-2],A=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;C[c]=B+C[c-7]+A+C[c-16]}const p=d&k^~d&v,y=a&o^a&n^o&n,V=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),j=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),R=u+j+p+pe[c]+C[c],h=V+y;u=v,v=k,k=d,d=_+R|0,_=n,n=o,o=a,a=R+h|0}e[0]=e[0]+a|0,e[1]=e[1]+o|0,e[2]=e[2]+n|0,e[3]=e[3]+_|0,e[4]=e[4]+d|0,e[5]=e[5]+k|0,e[6]=e[6]+v|0,e[7]=e[7]+u|0}_append(s){typeof s=="string"&&(s=O.fromUtf8(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes}_process(s){let t,e=this._data.sigBytes/64;s?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const a=e*16,o=Math.min(a*4,this._data.sigBytes);if(a){for(let n=0;n<a;n+=16)this._doProcessBlock(this._data.words,n);t=this._data.words.splice(0,a),this._data.sigBytes-=o}return new O(t,o)}}class O{words;sigBytes;constructor(s,t){s=this.words=s||[],this.sigBytes=t===void 0?s.length*4:t}static fromUtf8(s){const t=unescape(encodeURIComponent(s)),e=t.length,a=[];for(let o=0;o<e;o++)a[o>>>2]|=(t.charCodeAt(o)&255)<<24-o%4*8;return new O(a,e)}toBase64(){const s=[];for(let t=0;t<this.sigBytes;t+=3){const e=this.words[t>>>2]>>>24-t%4*8&255,a=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,o=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,n=e<<16|a<<8|o;for(let _=0;_<4&&t*8+_*6<this.sigBytes*8;_++)s.push(ge.charAt(n>>>6*(3-_)&63))}return s.join("")}concat(s){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<s.sigBytes;t++){const e=s.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=e<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<s.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=s.words[t>>>2];this.sigBytes+=s.sigBytes}}function ye(l){return new ve().finalize(l).toBase64()}function N(l){return ye(Q(l))}function we(l,s,t){const[e={},a]=typeof s=="string"?[{},s]:[s,t],o=w(()=>x(l)),n=w(()=>x(e.key)||"$f"+N([a,typeof o.value=="string"?o.value:"",...be(e)]));if(!e.baseURL&&typeof o.value=="string"&&o.value[0]==="/"&&o.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:_,lazy:d,default:k,transform:v,pick:u,watch:c,immediate:p,getCachedData:y,deep:V,dedupe:j,timeout:R,...h}=e,r=P({...W,...h,cache:typeof e.cache=="boolean"?void 0:e.cache}),B={server:_,lazy:d,default:k,transform:v,pick:u,immediate:p,getCachedData:y,deep:V,dedupe:j,timeout:R,watch:c===!1?[]:[...c||[],r]};return X(c===!1?n.value:n,(A,{signal:q})=>(e.$fetch||globalThis.$fetch)(o.value,{signal:q,...r}),B)}function be(l){const s=[x(l.method)?.toUpperCase()||"GET",x(l.baseURL)];for(const t of[l.query||l.params]){const e=x(t);if(!e)continue;const a={};for(const[o,n]of Object.entries(e))a[x(o)]=x(n);s.push(a)}if(l.body){const t=x(l.body);if(!t)s.push(N(t));else if(t instanceof ArrayBuffer)s.push(N(Object.fromEntries([...new Uint8Array(t).entries()].map(([e,a])=>[e,a.toString()]))));else if(t instanceof FormData){const e={};for(const a of t.entries()){const[o,n]=a;e[o]=n instanceof File?n.name:n}s.push(N(e))}else if(Y(t))s.push(N(P(t)));else try{s.push(N(t))}catch{console.warn("[useFetch] Failed to hash body",t)}}return s}const ke={key:0,class:"custom-select__label"},Be=["disabled","aria-expanded"],xe={key:0,class:"custom-select__options",role:"listbox"},$e=["aria-selected","onClick"],Ce=z({__name:"CustomSelect",props:{modelValue:{type:[String,Number],required:!0},options:{type:Array,required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:s}){const t=l,e=S(!1),a=S(""),o=s,n=S(null),_=()=>{t.disabled||(e.value=!e.value)},d=u=>{o("update:modelValue",u.value),a.value=u.label,e.value=!1},k=w(()=>t.options.filter(u=>u.value!==t.modelValue));G(()=>t.modelValue,u=>{a.value=t.options.find(c=>c.value===u)?.label||""},{immediate:!0});const v=u=>{n.value&&u.target&&!n.value.contains(u.target)&&(e.value=!1)};return Z(()=>{document.addEventListener("click",v)}),ee(()=>{document.removeEventListener("click",v)}),(u,c)=>(m(),b("div",{ref_key:"dropdownRef",ref:n,class:"custom-select"},[l.label?(m(),b("div",ke,$(l.label),1)):U("",!0),i("div",{class:"custom-select__wrapper",onClick:_},[i("button",{class:"custom-select__trigger",disabled:l.disabled,"aria-expanded":f(e),"aria-haspopup":!0,role:"combobox"},[F($(f(a)||"Select an option")+" ",1),i("span",{class:te(["custom-select__icon",{"custom-select__icon--open":f(e)}])},[se(u.$slots,"icon",{},()=>[c[0]||(c[0]=F(" ▼ ",-1))],!0)],2)],8,Be),f(e)?(m(),b("ul",xe,[(m(!0),b(K,null,H(f(k),p=>(m(),b("li",{key:p.value,class:"custom-select__option",role:"option","aria-selected":p.value===l.modelValue,onClick:y=>
1d(p)},$(p.label),9,$e))),128))])):U("",!0)])],512))}}),Se=Object.assign(E(Ce,[["__scopeId","data-v-4c871f5d"]]),{__name:"CustomSelect"}),Re={class:"search-result-card"},De={class:"search-result-card__content"},Le={class:"flex flex-col gap-2.5 md:mt-5 md:h-[125px]"},Ne={class:"search-result-card__published-date"},Oe={class:"search-result-card__title"},Ve={class:"search-result-card__category"},je=z({__name:"SearchResultCard",props:{title:{},link:{},image:{},updatedAt:{},breadcrumbs:{}},setup(l){const s=l,t=w(()=>{const a=new Date(s.updatedAt);return isNaN(a.getTime())?"Invalid date":a.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),e=w(()=>s.breadcrumbs?.map(a=>a.title).join(" ï¹¥ ")||"");return(a,o)=>{const n=ae,_=oe;return l.link?(m(),T(_,{key:0,href:s.link.url},{default:M(()=>[i("div",Re,[i("div",De,[i("div",Le,[i("p",Ne,$(f(t)),1),i("h3",Oe,$(l.title),1)]),i("p",Ve,$(f(e)),1)]),l.image?(m(),T(n,{key:0,image:l.image,"show-credit":!1,class:"search-result-card__image"},null,8,["image"])):U("",!0)])]),_:1},8,["href"])):U("",!0)}}}),Ae=Object.assign(E(je,[["__scopeId","data-v-633ad8eb"]]),{__name:"SearchResultCard"}),Me=""+new URL("not-found.WruVIt1M.png",import.meta.url).href,Ue={xmlns:"http://www.w3.org/2000/svg",width:"15",height:"8",fill:"none"};function Fe(l,s){return m(),b("svg",Ue,[...s[0]||(s[0]=[i("path",{fill:"#fff","fill-rule":"evenodd",d:"M1.14.28a1 1 0 0 1 1.414.027L7.5 5.557l4.946-5.25a1 1 0 1 1 1.441 1.386l-5.666 6a1 1 0 0 1-1.442 0l-5.666-6A1 1 0 0 1 1.14.28","clip-rule":"evenodd"},null,-1)])])}const qe={render:Fe},Te={xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none"};function ze(l,s){return m(),b("svg",Te,[...s[0]||(s[0]=[i("path",{fill:"#595959","fill-rule":"evenodd",d:"M10.732 4.184a.6.6 0 0 1-.016.848L7.566 8l3.15 2.967a.6.6 0 0 1-.832.865l-3.6-3.4a.6.6 0 0 1 0-.865l3.6-3.4a.6.6 0 0 1 .848.017","clip-rule":"evenodd"},null,-1)])])}const Ee={render:ze},Ie={class:"search-page"},Pe={class:"search-page__title"},Ge={class:"flex w-full justify-center"},Ke={key:0},He={class:"search-page__summary"},Je={class:"search-page__summary__count"},Qe={class:"search-page__summary__sort-n-filter"},We={class:"search-page__results"},Xe={class:"search-page__pagination"},Ye=["disabled"],Ze={key:1,class:"search-page__no-results"},I=20,et=z({__name:"search",async setup(l){let s,t;const{site:e}=ne(),a=re().searchParams.get("q")?.trim(),o=S([]),n=S(null);if(a){const h=([s,t]=le(()=>we("/api/search",{query:{q:a,site:e.value},server:!0,timeout:1e4},"$mcRnqtTsOH")),s=await s,t(),s);o.value=h.data.value??[],n.value=h.error.value??null}const _=w(()=>o.value||[]);if(n.value)throw console.error("Error fetching search results:",n.value),ie({statusCode:500,statusMessage:"Search service unavailable"});const d=w(()=>_.value?.length||0),k=w(()=>d.value>0?"Search Results For":"No Results Found"),v=w(()=>d.value>0?"search-results":"no-results"),u=S("relevance"),c=[{value:"relevance",label:"Relevance"},{value:"publishedDate",label:"Published Date"}],p=w(()=>u.value==="publishedDate"?[..._.value].sort((h,r)=>{const B=new Date(h.updatedAt).getTime(),g=new Date(r.updatedAt).getTime();return isNaN(B)&&isNaN(g)?0:isNaN(B)?1:isNaN(g)?-1:g-B}):_.value),y=S([]);G(p,h=>{y.value=h.slice(0,I)},{immediate:!0});const V=()=>{const h=y.value.length,r=p.value?.slice(h,h+I)??[];y.value=[...y.value,...r]},j=w(()=>y.value.length>=(p.value??[]).length),R=()=>{const h=fe();try{document.referrer&&document.referrer!==window.location.href?h.go(-1):h.push("/")}catch{h.push("/")}};return(h,r)=>{const B=ce,g=Se,A=Ae,q=he;return m(),b("div",Ie,[i("h1",Pe,$(f(k)),1),i("div",Ge,[L(B,{class:"search-page__tool",variant:f(v)},null,8,["variant"])]),f(d)>0?(m(),b("div",Ke,[i("div",He,[i("div",Je,$(f(d))+" results found.",1),i("div",Qe,[L(g,{modelValue:f(u),"onUpdate:modelValue":r[0]||(r[0]=D=>ue(u)?u.value=D:null),options:c,label:"Sort by:"},{icon:M(()=>[...r[2]||(r[2]=[i("svg",{xmlns:"http://www.w3.org/2000/svg",class:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1)])]),_:1},8,["modelValue"])])]),r[4]||(r[4]=i("hr",null,null,-1)),i("div",We,[L(q,null,{default:M(()=>[L(de,{name:"fade",tag:"div",class:"search-page__results__list"},{default:M(()=>[(m(!0),b(K,null,H(f(y),(D,J)=>(m(),T(A,_e({key:`${D.title}-${J}`,class:"search-page__results__result"},{ref_for:!0},D),null,16))),128))]),_:1})]),_:1})]),i("div",Xe,[i("button",{class:"search-page__pagination__button",disabled:f(j),onClick:V},[r[3]||(r[3]=F(" Load More ",-1)),L(f(qe))],8,Ye)])])):(m(),b("div",Ze,[r[6]||(r[6]=i("div",{class:"search-page__no-results__message"},"Please adjust your search and try again.",-1)),r[7]||(r[7]=i("img",{src:Me,alt:"No Results Found",class:"search-page__no-results__image"},null,-1)),i("button",{class:"search-page__no-results__back-button",onClick:r[1]||(r[1]=D=>R())},[L(f(Ee)),r[5]||(r[5]=F(" Go Back ",-1))])]))])}}}
1),st=E(et,[["__scopeId","data-v-0dff35e9"]]);export{st 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.