PageSourceSearch

https://thepeoplesdepot.com/_nuxt/B8CTCy0W.js

js thepeoplesdepot.com collected 2026-10-03 19:44:19 UTC 2,343 bytes, 1 lines download raw bytes

1import{u as j,k as N,c as V,i as d,a as m,o as c,e as t,v as _,f as s,d as v,j as $,z as B,A as g,B as f,x as h,t as P,W as L}from"./Do1nZpFk.js";import"./BM5aYONo.js";const q={class:"mb-4"},z={class:"comments-wrapper-title mb-0"},D={class:"d-flex blog-comment-composer-wrapper"},E={key:0,class:"d-flex comment-guest-data"},G={class:"mb-2"},U={class:"text-right"},I={class:"d-flex justify-content-end"},J=["disabled"],M={key:0,class:"spinner-border spinner-border-xs text-dark",role:"status"},Y={__name:"CommentComposer",emits:["guest_email"],setup(R,{emit:b}){const x=L(),{project:y,blogPostStore:C,authStore:p}=j(),{$gravatar:k}=N(),A=b,o=V(()=>p.guest||p.user||null),l=d(""),n=d(""),r=d(""),i=d(!1),w=()=>new Promise((u,e)=>{grecaptcha.ready(()=>{grecaptcha.execute("6Ld_2XQjAAAAADCCGiLPLJCg2sEZkJhrN7p5nYIX",{action:"submit"}).then(a=>u(a))})}),S=async()=>{i.value=!0;const u=await w();o.value||p.authGuest(n.value,r.value),$fetch(`${x.public.blogApiBase}/api/projects/${y.getProject.id}/blog/posts/${C.post.id}/comments`,{method:"post",body:{g_token:u,guest_email:o.value.email,guest_full_name:o.value.name,comment:l.value}}).then(({data:e})=>{A("addedComment",e),l.value=""}).catch(e=>{console.log(e,"errir")}).finally(()=>{i.value=!1})};return(u,e)=>(c(),m("div",null,[t("div",q,[t("h4",z,_(s(o)?"Comment":"Comment as Guest"),1)]),t("div",D,[s(o)?(c(),m("div",{key:0,class:"avatar",style:$({backgroundSize:"cover",backgroundImage:`url(${s(k)(s(o).email)})`})},null,4)):v("",!0),t("form",{onSubmit:B(S,["prevent"]),class:"w-100"},[s(o)?v("",!0):(c(),m("div",E,[g(t("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>h(n)?n.value=a:null),type:"text",placeholder:"Your Name",required:""},null,512),[[f,s(n)]]),g(t("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>h(r)?r.value=a:null),type:"email",placeholder:"Email Address",required:""},null,512),[[f,s(r)]])])),t("div",G,[g(t("textarea",{"onUpdate:modelValue":e[2]||(e[2]=a=>h(l)?l.value=a:null),class:"w-100",placeholder:"Add Comment...",required:"",maxlength:"500"},null,512),[[f,s(l)]]),t("div",U,[t("small",null,_(s(l).length)+" / 500",1)])]),t("div",I,[t("button",{class:"white-btn flex items-center",disabled:s(i)},[e[4]||(e[4]=P(" Post Comment ")),s(i)?(c(),m("div",M,e[3]||(e[3]=[t("span",{class:"visually-hidden"},"Loading...",-1)]))):v("",!0)],8,J)])],32)])]))}};export{Y 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.