import{S as we,i as be,s as Ee,e as a,t as H,k as q,c as l,a as w,g as L,d as i,n as R,b as t,f as X,D as e,h as me,E as ke,j as qe,H as Re,m as Ae,I as ye,o as Te,x as Me,u as De,N as Fe,v as Ie}from"../chunks/vendor-dc09094c.js";import{F as ze}from"../chunks/Footer-a0dab98d.js";import"../chunks/general-8f0a3ddf.js";function he(u,r,o){const c=u.slice();return c[3]=r[o].name,c[1]=r[o].text,c[4]=r[o].url,c}function _e(u){let r,o,c,_;function b(...f){return u[2](u[1],...f)}return{c(){r=a("span"),o=H("Expand"),this.h()},l(f){r=l(f,"SPAN",{class:!0});var m=w(r);o=L(m,"Expand"),m.forEach(i),this.h()},h(){t(r,"class","rev-expand svelte-2ksffq")},m(f,m){X(f,r,m),e(r,o),c||(_=ke(r,"click",b),c=!0)},p(f,m){u=f},d(f){f&&i(r),c=!1,_()}}}function pe(u){let r,o,c,_=u[3]+"",b,f,m,y,D,n,M=(u[1].length>400?u[1].slice(0,400)+"...":u[1])+"",F,V,j,I,h=u[1].length>400&&_e(u);return{c(){r=a("a"),o=a("div"),c=a("h3"),b=H(_),f=q(),m=a("span"),y=H("\u2605\u2605\u2605\u2605\u2605"),D=q(),n=a("p"),F=H(M),V=q(),h&&h.c(),j=q(),this.h()},l(v){r=l(v,"A",{href:!0,target:!0,rel:!0,class:!0});var E=w(r);o=l(E,"DIV",{class:!0});var T=w(o);c=l(T,"H3",{class:!0});var C=w(c);b=L(C,_),C.forEach(i),f=R(T),m=l(T,"SPAN",{class:!0});var N=w(m);y=L(N,"\u2605\u2605\u2605\u2605\u2605"),N.forEach(i),D=R(T),n=l(T,"P",{class:!0});var A=w(n);F=L(A,M),V=R(A),h&&h.l(A),A.forEach(i),T.forEach(i),j=R(E),E.forEach(i),this.h()},h(){t(c,"class","rev-name svelte-2ksffq"),t(m,"class","rev-stars svelte-2ksffq"),t(n,"class","rev-text svelte-2ksffq"),t(o,"class","review svelte-2ksffq"),t(r,"href",I=u[4]),t(r,"target","_blank"),t(r,"rel","noreferrer"),t(r,"class","review-a svelte-2ksffq")},m(v,E){X(v,r,E),e(r,o),e(o,c),e(c,b),e(o,f),e(o,m),e(m,y),e(o,D),e(o,n),e(n,F),e(n,V),h&&h.m(n,null),e(r,j)},p(v,E){E&1&&_!==(_=v[3]+"")&&me(b,_),E&1&&M!==(M=(v[1].length>400?v[1].slice(0,400)+"...":v[1])+"")&&me(F,M),v[1].length>400?h?h.p(v,E):(h=_e(v),h.c(),h.m(n,null)):h&&(h.d(1),h=null),E&1&&I!==(I=v[4])&&t(r,"href",I)},d(v){v&&i(r),h&&h.d()}}}function Be(u){let r,o,c,_,b,f,m,y,D,n,M,F,V,j,I,h,v,E,T,C,N,A,x,G,Y,Z,$,ee,te,P,k,J,re,se,S,ae,le,ne,z,oe,W,O,K=u[0],p=[];for(let d=0;d<K.length;d+=1)p[d]=pe(he(u,K,d));return W=new ze({}),{c(){r=a("meta"),o=a("meta"),c=a("meta"),_=a("meta"),b=a("meta"),f=a("meta"),m=a("meta"),y=a("meta"),D=q(),n=a("div"),M=a("br"),F=a("br"),V=a("br"),j=a("br"),I=a("br"),h=q(),v=a("img"),T=q(),C=a("br"),N=q(),A=a("div"),x=a("p"),G=a("a"),Y=H("Home"),Z=H(" / "),$=a("a"),ee=H("Reviews"),te=q(),P=a("div"),k=a("div"),J=a("h1"),re=H("Reviews"),se=q(),S=a("p"),ae=q(),le=a("br"),ne=q(),z=a("div");for(let d=0;d<p.length;d+=1)p[d].c();oe=q(),qe(W.$$.fragment),this.h()},l(d){const g=Re('[data-svelte="svelte-1bo3adl"]',document.head);r=l(g,"META",{content:!0,property:!0}),o=l(g,"META",{name:!0,content:!0}),c=l(g,"META",{name:!0,content:!0}),_=l(g,"META",{content:!0,property:!0}),b=l(g,"META",{property:!0,content:!0}),f=l(g,"META",{name:!0,content:!0}),m=l(g,"META",{name:!0,content:!0}),y=l(g,"META",{name:!0,content:!0}),g.forEach(i),D=R(d),n=l(d,"DIV",{});var s=w(n);M=l(s,"BR",{}),F=l(s,"BR",{}),V=l(s,"BR",{}),j=l(s,"BR",{}),I=l(s,"BR",{}),h=R(s),v=l(s,"IMG",{src:!0,onerror:!0,alt:!0,id:!0,class:!0}),T=R(s),C=l(s,"BR",{}),N=R(s),A=l(s,"DIV",{id:!0,class:!0});var Q=w(A);x=l(Q,"P",{});var U=w(x);G=l(U,"A",{href:!0});var ce=w(G);Y=L(ce,"Home"),ce.forEach(i),Z=L(U," / "),$=l(U,"A",{href:!0});var fe=w($);ee=L(fe,"Reviews"),fe.forEach(i),U.forEach(i),Q.forEach(i),te=R(s),P=l(s,"DIV",{id:!0,class:!0});var de=w(P);k=l(de,"DIV",{id:!0,class:!0});var B=w(k);J=l(B,"H1",{class:!0});var ue=w(J);re=L(ue,"Reviews"),ue.forEach(i),se=R(B),S=l(B,"P",{class:!0});var ge=w(S);ge.forEach(i),ae=R(B),le=l(B,"BR",{}),ne=R(B),z=l(B,"DIV",{id:!0,class:!0});var ve=w(z);for(let ie=0;ie<p.length;ie+=1)p[ie].l(ve);ve.forEach(i),B.forEach(i),de.forEach(i),oe=R(s),Ae(W.$$.fragment,s),s.forEach(i),this.h()},h(){document.title="Reviews -  FrizWoods",t(r,"content","Reviews"),t(r,"property","og:title"),t(o,"name","og:site_name"),t(o,"content","FrizWoods LLC - Criminal Defense"),t(c,"name","description"),t(c,"content","List of FrizWoods reviews."),t(_,"content","List of FrizWoods reviews."),t(_,"property","og:description"),t(b,"property","og:image"),t(b,"content","https://frizwoods.com/images/ogimage1.png"),t(f,"name","twitter:card"),t(f,"content","summary_large_image"),t(m,"name","twitter:image"),t(m,"content","https://frizwoods.com/images/twittercard.png"),t(y,"name","twitter:site"),t(y,"content","@FrizWoods"),ye(v.src,E="/images/bg5.webp")||t(v,"src",E),t(v,"onerror","if(this.src !== '/images/bg5.png') this.src = '/images/bg5.png'"),t(v,"alt","bg"),t(v,"id","banner"),t(v,"class","svelte-2ksffq"),t(G,"href","/"),t($,"href","/reviews"),t(A,"id","path"),t(A,"class","svelte-2ksffq"),t(J,"class","oops svelte-2ksffq"),t(S,"class","oops svelte-2ksffq"),t(z,"id","reviews"),t(z,"class","svelte-2ksffq"),t(k,"id","article-text"),t(k,"class","svelte-2ksffq"),t(P,"id","container"),t(P,"class","svelte-2ksffq")},m(d,g){e(document.head,r),e(document.head,o),e(document.head,c),e(document.head,_),e(document.head,b),e(document.head,f),e(document.head,m),e(document.head,y),X(d,D,g),X(d,n,g),e(n,M),e(n,F),e(n,V),e(n,j),e(n,I),e(n,h),e(n,v),e(n,T),e(n,C),e(n,N),e(n,A),e(A,x),e(x,G),e(G,Y),e(x,Z),e(x,$),e($,ee),e(n,te),e(n,P),e(P,k),e(k,J),e(J,re),e(k,se),e(k,S),S.innerHTML=u[1],e(k,ae),e(k,le),e(k,ne),e(k,z);for(let s=0;s<p.length;s+=1)p[s].m(z,null);e(n,oe),Te(W,n,null),O=!0},p(d,[g]){if((!O||g&2)&&(S.innerHTML=d[1]),g&1){K=d[0];let s;for(s=0;s<K.length;s+=1){const Q=he(d,K,s);p[s]?p[s].p(Q,g):(p[s]=pe(Q),p[s].c(),p[s].m(z,null))}for(;s<p.length;s+=1)p[s].d(1);p.length=K.length}},i(d){O||(Me(W.$$.fragment,d),O=!0)},o(d){De(W.$$.fragment,d),O=!1},d(d){i(r),i(o),i(c),i(_),i(b),i(f),i(m),i(y),d&&i(D),d&&i(n),Fe(p,d),Ie(W)}}}async function Pe(){let r=await(await fetch("/api/reviews")).json();return{props:{reviews:r.reviews,text:r.text}}}function He(u,r){u.preventDefault();let c=u.target.closest(".review").querySelector(".rev-text");c.innerText=r,u.target.remove()}function Le(u,r,o){let{reviews:c}=r,{text:_}=r;const b=(f,m)=>He(m,f);return u.$$set=f=>{"reviews"in f&&o(0,c=f.reviews),"text"in f&&o(1,_=f.text)},[c,_,b]}class Se extends we{constructor(r){super();be(this,r,Le,Be,Ee,{reviews:0,text:1})}}export{Se as default,Pe as load};
