1import{ab as k,A as T,r,o as c,c as p,w as o,b as a,e as f,m as i,a6 as w,T as O,R as x}from"./qoh7TNPH.js";import{u as A}from"./BLZW8_Vl.js";const N=e=>e==="",I=e=>(l=>l==null)(e)||N(e)||e===!1?"This field is required":!!String(e).trim().length||"This field is required",R=(e,n)=>N(e)?!0:String(e).length>n||`"The Minimum number of Characters allowed is ${n}."`,q={class:"composer mb-6"},j={class:"composer__footer"},B={__name:"CommentInputWidget",props:{appSection:{type:String,default:T.APP_SECTIONS.MAIN_ARTICLE},itemObject:{type:Object,required:!0},adoptNewDesign:{type:Boolean,default:()=>!0}},setup(e){const n=e,{addArticleComment:l}=A(n.appSection,n.itemObject),_=x(null),s=x(""),v=R(s.value,10),g=I,d=()=>{_.value?.validate().then(({valid:b})=>{b&&(l(n.itemObject,s.value,!1,""),s.value="")})};return(b,t)=>{const h=r("v-textarea"),C=r("v-btn"),m=r("v-col"),V=r("v-row"),S=r("v-icon"),y=r("v-form");return c(),p(y,{ref_key:"messageFormRef",ref:_,onSubmit:O(d,["prevent"])},{default:o(()=>[e.adoptNewDesign?(c(),p(V,{key:0,class:"ma-0 pa-0"},{default:o(()=>[a(m,{class:"ma-0 pa-0"},{default:o(()=>[f("div",q,[a(h,{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=u=>s.value=u),placeholder:"Share your thoughts on this story...",variant:"outlined",rows:"3","hide-details":"",class:"composer__textarea",rules:[i(g),i(v)]},null,8,["modelValue","rules"]),f("div",j,[t[3]||(t[3]=f("span",{class:"composer__hint"}," Please be respectful and constructive in your comments. ",-1)),a(C,{class:"composer__submit",disabled:!s.value,elevation:"0",onClick:d},{default:o(()=>[...t[2]||(t[2]=[w(" Post comment ",-1)])]),_:1},8,["disabled"])])])]),_:1})]),_:1})):(c(),p(V,{key:1,class:"mt-6"},{default:o(()=>[a(m,{cols:"9"},{default:o(()=>[a(h,{modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=u=>s.value=u),placeholder:"Let's engage",rules:[i(g),i(v)],rows:"1","row-height":"2px","auto-grow":"",rounded:"",class:"text-area-bg"},null,8,["modelValue","rules"])]),_:1}),a(m,{cols:"2"},{default:o(()=>[a(C,{class:"mx-0 mx-md-2 ml-n4 ml-md-0 mt-2",fab:"",dark:"",medium:"",color:"#F7DA00",onClick:d},{default:o(()=>[a(S,{dark:""},{default:o(()=>[...t[4]||(t[4]=[w(" mdi-send ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}))]),_:1},512)}}},P=k(B,[["__scopeId","data-v-9ffb876c"]]);export{P 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.