vendor: 6,497 bytes, line 1
1import{a5 as k,d as h,y as _t,k as U,q as ht,I as K,e as v,F as B,i as pe,h as f,a as l,b as q,x as vt,l as de,v as ft,o as p,t as g,p as me,f as J,n as X,C as pt,R as dt,g as mt,D as gt,M as N}from"./app.1c75f29f.js";import bt from"./CommentCard.231848d6.js";import yt from"./GalleryModal.b6d1eb6c.js";import $t from"./EditModal.99b90a84.js";import"./Modal.f4449063.js";function Ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var se=Ct,wt=se,ge=Object.create,St=function(){function e(){}return function(t){if(!wt(t))return{};if(ge)return ge(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Ve=St;function xt(){}var oe=xt,Tt=Ve,jt=oe,Ot=4294967295;function D(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ot,this.__views__=[]}D.prototype=Tt(jt.prototype);D.prototype.constructor=D;var G=D,Pt=Ve,It=oe;function L(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}L.prototype=Pt(It.prototype);L.prototype.constructor=L;var ie=L,Mt=Array.isArray,P=Mt,At=typeof k=="object"&&k&&k.Object===Object&&k,He=At,kt=He,Nt=typeof self=="object"&&self&&self.Object===Object&&self,Dt=kt||Nt||Function("return this")(),d=Dt,Lt=d,Gt=Lt.Symbol,I=Gt,be=I,We=Object.prototype,zt=We.hasOwnProperty,Et=We.toString,O=be?be.toStringTag:void 0;function Ft(e){var t=zt.call(e,O),r=e[O];try{e[O]=void 0;var a=!0}catch{}var n=Et.call(e);return a&&(t?e[O]=r:delete e[O]),n}var Rt=Ft,Vt=Object.prototype,Ht=Vt.toString;function Wt(e){return Ht.call(e)}var Ut=Wt,ye=I,Kt=Rt,Bt=Ut,qt="[object Null]",Jt="[object Undefined]",$e=ye?ye.toStringTag:void 0;function Xt(e){return e==null?e===void 0?Jt:qt:$e&&$e in Object(e)?Kt(e):Bt(e)}var z=Xt;function Yt(e){return e!=null&&typeof e=="object"}var E=Yt,Zt=z,Qt=E,er="[object Symbol]";function tr(e){return typeof e=="symbol"||Qt(e)&&Zt(e)==er}var ce=tr,rr=P,ar=ce,nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sr=/^\w*$/;function or(e,t){if(rr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ar(e)?!0:sr.test(e)||!nr.test(e)||t!=null&&e in Object(t)}var ir=or,cr=z,lr=se,ur="[object AsyncFunction]",_r="[object Function]",hr="[object GeneratorFunction]",vr="[object Proxy]";function fr(e){if(!lr(e))return!1;var t=cr(e);return t==_r||t==hr||t==ur||t==vr}var pr=fr,dr=d,mr=dr["__core-js_shared__"],gr=mr,Y=gr,Ce=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function br(e){return!!Ce&&Ce in e}var yr=br,$r=Function.prototype,Cr=$r.toString;function wr(e){if(e!=null){try{return Cr.call(e)}catch{}try{return e+""}catch{}}return""}var Ue=wr,Sr=pr,xr=yr,Tr=se,jr=Ue,Or=/[\\^$.*+?()[\]{}|]/g,Pr=/^\[object .+?Constructor\]$/,Ir=Function.prototype,Mr=Object.prototype,Ar=Ir.toString,kr=Mr.hasOwnProperty,Nr=RegExp("^"+Ar.call(kr).replace(Or,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dr(e){if(!Tr(e)||xr(e))return!1;var t=Sr(e)?Nr:Pr;return t.test(jr(e))}var Lr=Dr;function Gr(e,t){return e==null?void 0:e[t]}var zr=Gr,Er=Lr,Fr=zr;function Rr(e,t){var r=Fr(e,t);return Er(r)?r:void 0}var b=Rr,Vr=b,Hr=Vr(Object,"create"),F=Hr,we=F;function Wr(){this.__data__=we?we(null):{},this.size=0}var Ur=Wr;function Kr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Br=Kr,qr=F,Jr="__lodash_hash_undefined__",Xr=Object.prototype,Yr=Xr.hasOwnProperty;function Zr(e){var t=this.__data__;if(qr){var r=t[e];return r===Jr?void 0:r}return Yr.call(t,e)?t[e]:void 0}var Qr=Zr,ea=F,ta=Object.prototype,ra=ta.hasOwnProperty;function aa(e){var t=this.__data__;return ea?t[e]!==void 0:ra.call(t,e)}var na=aa,sa=F,oa="__lodash_hash_undefined__";function ia(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=sa&&t===void 0?oa:t,this}var ca=ia,la=Ur,ua=Br,_a=Qr,ha=na,va=ca;function w(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}w.prototype.clear=la;w.prototype.delete=ua;w.prototype.get=_a;w.prototype.has=ha;w.prototype.set=va;var fa=w;function pa(){this.__data__=[],this.size=0}var da=pa;function ma(e,t){return e===t||e!==e&&t!==t}var ga=ma,ba=ga;function ya(e,t){for(var r=e.length;r--;)if(ba(e[r][0],t))return r;return-1}var R=ya,$a=R,Ca=Array.prototype,wa=Ca.splice;function Sa(e){var t=this.__data__,r=$a(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():wa.call(t,r,1),--this.size,!0}var xa=Sa,Ta=R;function ja(e){var t=this.__data__,r=Ta(t,e);return r<0?void 0:t[r][1]}var Oa=ja,Pa=R;function Ia(e){return Pa(this.__data__,e)>-1}var Ma=Ia,Aa=R;function ka(e,t){var r=this.__data__,a=Aa(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var Na=ka,Da=da,La=xa,Ga=Oa,za=Ma,Ea=Na;function S(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}S.prototype.clear=Da;S.prototype.delete=La;S.prototype.get=Ga;S.prototype.has=za;S.prototype.set=Ea;var Fa=S,Ra=b,Va=d,Ha=Ra(Va,"Map"),Ke=Ha,Se=fa,Wa=Fa,Ua=Ke;function Ka(){this.size=0,this.__data__={hash:new Se,map:new(Ua||Wa),string:new Se}}var Ba=Ka;function qa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ja=qa,Xa=Ja;function Ya(e,t){var r=e.__data__;return Xa(t)?r[typeof t=="string"?"string":"hash"]:r.map}var V=Ya,Za=V;function Qa(e){var t=Za(this,e).delete(e);return this.size-=t?1:0,t}var en=Qa,tn=V;function rn(e){return tn(this,e).get(e)}var an=rn,nn=V;function sn(e){return nn(this,e).has(e)}var on=sn,cn=V;function ln(e,t){var r=cn(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var un=ln,_n=Ba,hn=en,vn=an,fn=on,pn=un;function x(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}x.prototype.clear=_n;x.prototype.delete=hn;x.prototype.get=vn;x.prototype.has=fn;x.prototype.set=pn;var dn=x,Be=dn,mn="Expected a function";function le(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mn);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var u=e.apply(this,a);return r.cache=i.set(n,u)||i,u};return r.cache=new(le.Cache||Be),r}le.Cache=Be;var gn=le,bn=gn,yn=500;function $n(e){var t=bn(e,function(a){return r.size===yn&&r.clear(),a}),r=t.cache;return t}var Cn=$n,wn=Cn,Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xn=/\\(\\)?/g,Tn=wn(function(e){var t=[];
1return e.charCodeAt(0)===46&&t.push(""),e.replace(Sn,function(r,a,n,i){t.push(n?i.replace(xn,"$1"):a||r)}),t}),jn=Tn;function On(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var Pn=On,xe=I,In=Pn,Mn=P,An=ce,kn=1/0,Te=xe?xe.prototype:void 0,je=Te?Te.toString:void 0;function qe(e){if(typeof e=="string")return e;if(Mn(e))return In(e,qe)+"";if(An(e))return je?je.call(e):"";var t=e+"";return t=="0"&&1/e==-kn?"-0":t}var Nn=qe,Dn=Nn;function Ln(e){return e==null?"":Dn(e)}var Gn=Ln,zn=P,En=ir,Fn=jn,Rn=Gn;function Vn(e,t){return zn(e)?e:En(e,t)?[e]:Fn(Rn(e))}var Hn=Vn,Wn=ce,Un=1/0;function Kn(e){if(typeof e=="string"||Wn(e))return e;var t=e+"";return t=="0"&&1/e==-Un?"-0":t}var Bn=Kn,qn=Hn,Jn=Bn;function Xn(e,t){t=qn(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Jn(t[r++])];return r&&r==a?e:void 0}var Yn=Xn,Zn=Yn;function Qn(e,t,r){var a=e==null?void 0:Zn(e,t);return a===void 0?r:a}var es=Qn,ts=es;function rs(e,t){for(var r=-1,a=t.length,n=Array(a),i=e==null;++r<a;)n[r]=i?void 0:ts(e,t[r]);return n}var as=rs;function ns(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var Je=ns,ss=z,os=E,is="[object Arguments]";function cs(e){return os(e)&&ss(e)==is}var ls=cs,Oe=ls,us=E,Xe=Object.prototype,_s=Xe.hasOwnProperty,hs=Xe.propertyIsEnumerable,vs=Oe(function(){return arguments}())?Oe:function(e){return us(e)&&_s.call(e,"callee")&&!hs.call(e,"callee")},fs=vs,Pe=I,ps=fs,ds=P,Ie=Pe?Pe.isConcatSpreadable:void 0;function ms(e){return ds(e)||ps(e)||!!(Ie&&e&&e[Ie])}var gs=ms,bs=Je,ys=gs;function Ye(e,t,r,a,n){var i=-1,u=e.length;for(r||(r=ys),n||(n=[]);++i<u;){var _=e[i];t>0&&r(_)?t>1?Ye(_,t-1,r,a,n):bs(n,_):a||(n[n.length]=_)}return n}var $s=Ye,Cs=$s;function ws(e){var t=e==null?0:e.length;return t?Cs(e,1):[]}var Ss=ws;function xs(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Ts=xs,js=Ts,Me=Math.max;function Os(e,t,r){return t=Me(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,i=Me(a.length-t,0),u=Array(i);++n<i;)u[n]=a[t+n];n=-1;for(var _=Array(t+1);++n<t;)_[n]=a[n];return _[t]=r(u),js(e,this,_)}}var Ps=Os;function Is(e){return function(){return e}}var Ms=Is,As=b,ks=function(){try{var e=As(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ns=ks;function Ds(e){return e}var Ls=Ds,Gs=Ms,Ae=Ns,zs=Ls,Es=Ae?function(e,t){return Ae(e,"toString",{configurable:!0,enumerable:!1,value:Gs(t),writable:!0})}:zs,Fs=Es,Rs=800,Vs=16,Hs=Date.now;function Ws(e){var t=0,r=0;return function(){var a=Hs(),n=Vs-(a-r);if(r=a,n>0){if(++t>=Rs)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Us=Ws,Ks=Fs,Bs=Us,qs=Bs(Ks),Js=qs,Xs=Ss,Ys=Ps,Zs=Js;function Qs(e){return Zs(Ys(e,void 0,Xs),e+"")}var eo=Qs,to=9007199254740991,ro=/^(?:0|[1-9]\d*)$/;function ao(e,t){var r=typeof e;return t=t==null?to:t,!!t&&(r=="number"||r!="symbol"&&ro.test(e))&&e>-1&&e%1==0&&e<t}var no=ao;function so(e,t){return t(e)}var oo=so,io=G,co=ie,lo=as,uo=eo,_o=no,ho=oo;uo(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,n=function(i){return lo(i,e)};return t>1||this.__actions__.length||!(a instanceof io)||!_o(r)?this.thru(n):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:ho,args:[n],thisArg:void 0}),new co(a,this.__chain__).thru(function(i){return t&&!i.length&&i.push(void 0),i}))});function vo(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var fo=vo,po=G,mo=ie,go=fo;function bo(e){if(e instanceof po)return e.clone();var t=new mo(e.__wrapped__,e.__chain__);return t.__actions__=go(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var yo=bo,$o=G,ke=ie,Co=oe,wo=P,So=E,xo=yo,To=Object.prototype,jo=To.hasOwnProperty;function Z(e){if(So(e)&&!wo(e)&&!(e instanceof $o)){if(e instanceof ke)return e;if(jo.call(e,"__wrapped__"))return xo(e)}return new ke(e)}Z.prototype=Co.prototype;Z.prototype.constructor=Z;var Oo=b,Po=d,Io=Oo(Po,"DataView"),Mo=Io,Ao=b,ko=d,No=Ao(ko,"Promise"),Do=No,Lo=b,Go=d,zo=Lo(Go,"Set"),Eo=zo,Fo=b,Ro=d,Vo=Fo(Ro,"WeakMap"),Ho=Vo,Q=Mo,ee=Ke,te=Do,re=Eo,ae=Ho,Ze=z,T=Ue,Ne="[object Map]",Wo="[object Object]",De="[object Promise]",Le="[object Set]",Ge="[object WeakMap]",ze="[object DataView]",Uo=T(Q),Ko=T(ee),Bo=T(te),qo=T(re),Jo=T(ae),C=Ze;(Q&&C(new Q(new ArrayBuffer(1)))!=ze||ee&&C(new ee)!=Ne||te&&C(te.resolve())!=De||re&&C(new re)!=Le||ae&&C(new ae)!=Ge)&&(C=function(e){var t=Ze(e),r=t==Wo?e.constructor:void 0,a=r?T(r):"";if(a)switch(a){case Uo:return ze;case Ko:return Ne;case Bo:return De;case qo:return Le;case Jo:return Ge}return t});var Ee={exports:{}};function Xo(){return!1}var Yo=Xo;(function(e,t){var r=d,a=Yo,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===n,_=u?r.Buffer:void 0,y=_?_.isBuffer:void 0,M=y||a;e.exports=M})(Ee,Ee.exports);var ne={exports:{}};(function(e,t){var r=He,a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i&&r.process,_=function(){try{var y=n&&n.require&&n.require("util").t
1ypes;return y||u&&u.binding&&u.binding("util")}catch{}}();e.exports=_})(ne,ne.exports);var Fe=ne.exports;Fe&&Fe.isTypedArray;var Re=I;Re&&Re.iterator;var Zo={exports:{}};function Qo(e,t,r,a){var n=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r}var ei=Qo,ti=G,ri=Je,ai=ei;function ni(e,t){var r=e;return r instanceof ti&&(r=r.value()),ai(t,function(a,n){return n.func.apply(n.thisArg,ri([a],n.args))},r)}var si=ni,oi=si;function ii(){return oi(this.__wrapped__,this.__actions__)}var Qe=ii;(function(e){e.exports=Qe})(Zo);var ci={exports:{}};(function(e){e.exports=Qe})(ci);const li=l("div",{class:"h-6 mb-1"},null,-1),ui={class:"rounded-xl bg-gray-10"},_i={class:"flex p-8 gap-4"},hi=["src","alt"],vi={class:"flex justify-between items-center w-full"},fi={class:"flex flex-col"},pi={class:"text-20-medium"},di={class:"text-gray-60 text-16-medium"},mi={key:0,class:"flex justify-end items-center"},gi=["onClick"],bi=l("i",{class:"icon-edit text-indigo-40 text-16-bold"},null,-1),yi=[bi],$i=["onClick"],Ci=l("i",{class:"icon-delete text-error-60 text-16-bold"},null,-1),wi=[Ci],Si={class:"flex flex-col lg:px-24 p-8 lg:pt-4"},xi={class:"text-24-medium"},Ti={class:"text-16-medium text-gray-60 pt-4 border-b pb-7 mb-7 border-gray-40"},ji={key:0,class:"overflow-hidden text-gray-700"},Oi={class:"container"},Pi={class:"flex flex-wrap -m-1 md:-m-2"},Ii={class:"grid grid-cols-6 gap-2 grid-rows-1 w-full h-full"},Mi=["src","onClick"],Ai={key:0,class:"pointer-events-none absolute h-full w-full bg-[#0000008c] z-10 top-0 left-0 flex items-center justify-center text-white text-3xl"},ki={class:"flex flex-col"},Ni={class:"flex pt-7 gap-4 flex-grow items-center"},Di=l("div",{class:"h-12 w-12 bg-info-10 rounded-full flex-shrink-0"},null,-1),Li=["placeholder","onUpdate:modelValue","onKeyup"],Gi={class:"flex justify-end pt-5"},zi=["onClick"],Ei=l("div",{class:"h-6 mb-1"},null,-1),Ki={__name:"PostCard",props:{posts:{type:Array,required:!0},links:{type:Object,default:{}}},setup(e){var _e;const t=e;h(!1);let r=h({...t.posts});_t(t.posts,o=>{r.value={...t.posts}});let a=h(!1),n=h([]),i=h({}),u=h(0),_=h(null);const y=U().props.value.url,M=[0,3,4];(_e=t.posts[0].attachments)==null||_e.length;const et=()=>!!U().props.value.user,tt=(o,c=0)=>
1{if(c==2)return"col-span-3";if(c==3)return o<2?"col-span-3":"col-span-6";if(c==4){let s=M.includes(o)?"col-span-4":"col-span-2";return o==3&&(s+=" relative"),s}return"col-span-6"},rt=(o,c,s)=>{N.get(`chat-room/${o}/comments?lastId=${c}`).then($=>{var j;t.posts[s].comments.push(...(j=$==null?void 0:$.data)==null?void 0:j.comments)})},at=o=>{if(!et()){K.Inertia.get(route("login"));return}N.post(`chat-room/${o.slug}/comment`,{text:o.comment}).then(c=>{var s;o.comments=(s=o.comments)!=null?s:[],o.comments.unshift(c.data.comment),o.comment=void 0})},nt=(o,c)=>{N.get(`chat-room/${o.id}/attachments`).then(s=>{a.value=!0,o.shouldShowGallery=!0,o.attachments[c].selected=!0,i.value=o.attachments[c],n.value=s.data.attachments,u.value=c})},st=(o,c)=>{i.value=o,u.value=c},ot=o=>{!o.comments_count||N.get(`chat-room/${o.id}/last-three-comments`).then(c=>{o.comments=c.data.comments}).catch(c=>{})};ht(()=>{new IntersectionObserver(c=>c.forEach(s=>s.isIntersecting&&it(),{rootMargin:"-150px 0px 0px 0px"})).observe(_.value)});const it=()=>{t.links.next!==null&&K.Inertia.get(t.links.next,{},{preserveState:!0,preserveScroll:!0,only:["posts"],onSuccess:o=>{r.value=o.props.posts.data,window.history.replaceState({},U().props.value.title,y)}})},ct=o=>{confirm("Are you sure?")&&K.Inertia.delete(route("website.chat-room.delete",{post:o}),{preserveState:!0,preserveScroll:!0,replace:!0,onSuccess:c=>{r.value=Object.values(r.value).filter(s=>s.slug!==o)}})},H=h(null),ue=h(0),W=h(!1),lt=(o,c)=>{H.value=o,ue.value=c,W.value=!0},ut=o=>{let c=r.value[ue.value];c.title=o.title,c.body=o.body,c.attachments=o.attachments};return(o,c)=>(p(),v(B,null,[(p(!0),v(B,null,pe(f(r),(s,$)=>{var j,he,ve,fe;return p(),v("section",{key:s.id},[li,l("div",ui,[l("div",_i,[l("img",{src:s.author.profile_photo_url,alt:s.author.full_name,class:"rounded-full flex-shrink-0 h-12 w-12"},null,8,hi),l("div",vi,[l("div",fi,[l("span",pi,g(s.author.full_name),1),l("span",di,g(s.created_at),1)]),o.$page.props.is_admin||o.$page.props.user&&((he=(j=o.$page.props)==null?void 0:j.user)==null?void 0:he.slug)===((ve=s==null?void 0:s.author)==null?void 0:ve.slug)?(p(),v("section",mi,[l("button",{class:"btn",onClick:me(m=>lt(s,$),["prevent"])},yi,8,gi),l("button",{class:"btn",onClick:me(m=>ct(s.slug),["prevent"])},wi,8,$i)])):J("",!0)])]),l("div",Si,[l("span",xi,g(s.title),1),l("span",Ti,g(s.body),1),s.attachments.length?(p(),v("section",ji,[l("div",Oi,[l("div",Pi,[l("div",Ii,[(p(!0),v(B,null,pe(s.attachments,(m,A)=>(p(),v("div",{key:A,class:X([tt(A,s.attachments.length),"h-64"])},[l("img",{alt:"gallery",class:"block object-cover object-center w-full h-full",src:m.photo_url,onClick:Fi=>nt(s,A)},null,8,Mi),s.attachments_count>4&&A==3?(p(),v("div",Ai,g(`+${s.attachments_count-4}`),1)):J("",!0)],2))),128))])])])])):J("",!0),l("div",ki,[l("div",Ni,[Di,de(l("input",{class:"rounded-xl w-full p-4",placeholder:o.__("posts.post_card.add_comment"),"onUpdate:modelValue":m=>s.comment=m,onKeyup:dt(m=>at(s),["enter"])},null,40,Li),[[pt,s.comment]])]),l("div",Gi,[l("span",{class:X(["text-gray-60 text-14-medium",s.comments_count?"cursor-pointer":""]),onClick:m=>s.comments?"":ot(s)},[mt(g(s.comments_count)+" "+g(o.__("posts.post_card.comments"))+" ",1),l("span",{class:X((fe=s==null?void 0:s.comments)!=null&&fe.length?"icon-arrow---up-2":"icon-arrow---down-2")},null,2)],10,zi)]),q(bt,gt({commentData:{comments:s.comments,totalComments:s.comments_count,commentable_id:s.id,commentable_index:$,commentable_type:"post"}},{onLoadMore:rt}),null,16)])])])])}),128)),l("span",{ref_key:"loadMoreIntersect",ref:_},null,512),q(yt,{show:f(a),images:f(n),activeImage:f(i),selectedImageIndex:f(u),onSlide:st,onClose:c[0]||(c[0]=s=>vt(a)?a.value=!1:a=!1)},null,8,["show","images","activeImage","selectedImageIndex"]),de(q($t,{post:f(H),show:f(W),onClose:c[1]||(c[1]=s=>W.value=!1),onUpdated:ut},null,8,["post","show"]),[[ft,f(H)]]),Ei],64))}};export{Ki 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.