PageSourceSearch

https://app.waspito.com/build/assets/PostDetailsModal-C9ZmG1jW.js

js waspito.com collected 2026-10-07 03:10:27 UTC 5,865 bytes, 1 lines download raw bytes

1import{n}from"./floating-vue-oSNsZTHH.js";import"./vendor-ChPhPn7X.js";import"./realtime-wyMA-lNS.js";import"./lodash-Bj48HpQF.js";const l={name:"PostDetailsModal",props:{post:Object},data(){return{currentImage:0,post_:this.post,imagesCount:this.post.images.length,loadComments:!1}},methods:{updateCommentsCount(){this.post_.comments_count+=1},open(){$("#post-details-"+this.post.id).modal("show"),this.loadComments=!0},close(){$("#post-details-"+this.post.id).modal("hide"),$("body").removeClass("overflow-y-hidden")},previousImage(){this.currentImage===0?this.currentImage=this.imagesCount-1:this.currentImage-=1},nextImage(){this.currentImage===this.imagesCount-1?this.currentImage=0:this.currentImage+=1},toggleReaction(){const o=this.route("forums.posts.toggle_reaction",{post:this.post.id});axios.post(o,{reaction:"like"}).then(t=>{this.post_.reaction="like",this.post_.reactions_count=t.data.reactions_count})},share(){navigator.clipboard.writeText(this.route("forums.posts.show",this.post.slug)),this.$notify({group:"app",type:"success",title:"Copied!",text:"Post link successful copied to clipboard!"})}}};var r=function(){var i;var t=this,s=t._self._c;return s("div",{staticClass:"modal z-9999",attrs:{id:"post-details-"+t.post.id,role:"dialog",tabindex:"-1"}},[s("div",{staticClass:"modal__content modal__content relative modal__content--2xl"},[s("div",{staticClass:"grid grid-cols-12 overflow-hidden"},[s("a",{staticClass:"absolute lg:hidden right-2 top-2 rounded-full bg-white hover:bg-gray-100 p-2",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.close()}}},[s("Icon",{staticClass:"w-6 h-6 text-gray-500",attrs:{name:"x"}})],1),s("div",{staticClass:"col-span-12 lg:col-span-8 bg-[#1b1f23] grid grid-cols-12 lg:grid-cols-7 px-0 md:px-5 rounded-l select-none"},[s("div",{staticClass:"col-span-1 flex items-center justify-start"},[s("div",{staticClass:"shrink-0 h-8 w-8 md:h-10 md:w-10 lg:h-14 lg:w-14 bg-black/60 text-white rounded-full flex justify-center items-center ml-1",attrs:{role:"button"},on:{click:function(e){return t.previousImage()}}},[s("icon",{staticClass:"h-4 w-4 md:h-5 md:w-5 xl:h-6 xl:w-6 text-normal",attrs:{name:"chevron-left"}})],1)]),s("div",{staticClass:"col-span-10 lg:col-span-5 h-[85vh] w-full"},t._l(t.post.images,function(e,a){return s("img",{key:"carousel-image-idx"+a,staticClass:"h-full w-full object-contain",class:{hidden:a!==t.currentImage,flex:a===t.currentImage},attrs:{id:"current-image",src:t.post.images[a].url,alt:t.post.images[a].name}})}),0),s("div",{staticClass:"col-span-1 flex items-center justify-end"},[s("div",{staticClass:"shrink-0 h-8 w-8 md:h-10 md:w-10 lg:h-14 lg:w-14 bg-black/60 text-white rounded-full flex justify-center items-center mr-1",attrs:{role:"button"},on:{click:function(e){return t.nextImage()}}},[s("icon",{staticClass:"h-4 w-4 md:h-5 md:w-5 xl:h-6 xl:w-6 text-normal",attrs:{name:"chevron-right"}})],1)])]),s("div",{staticClass:"hidden col-span-4 lg:flex flex-col relative h-[85vh]"},[s("a",{staticClass:"absolute right-3 top-3 hover:rounded-full hover:bg-gray-100 p-2",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.close()}}},[s("Icon",{staticClass:"w-6 h-6 text-gray-500",attrs:{name:"x"}})],1),s("div",{staticClass:"h-20 px-6 py-4 flex items-center text-sm"},[s("a",{staticClass:"shrink-0",attrs:{href:"#"}},[s("img",{staticClass:"h-10 w-10 object-cover shadow-sm rounded-full",attrs:{src:t.post.author.image,alt:t.post.author.name}})]),s("div",{staticClass:"flex flex-col ml-2 text-left"},[s("span",{staticClass:"font-normal hover:underline"},[t._v(t._s(t.post.author.name))]),(i=t.post.author.specialties)!=null&&i.length?s("span",{staticClass:"text-theme-1 text-xs font-bold"},[t._v(" "+t._s(t.post.author.specialties.join(" / "))+" ")]):t._e(),s("span",{staticClass:"text-italic font-normal"},[t._v(t._s(t.post.created_at_ago))])])]),s("div",{staticClass:"h-[85vh-5rem] overflow-y-auto px-4 pb-4 overflow-container"},[s("div",{staticClass:"lg:flex lg:items-center lg:justify-between"},[s("div",{staticClass:"flex-1"},[s("h2",{staticClass:"text-lg font-semibold leading-7"},[s("inertia-link",{staticClass:"hover:text-theme-1",attrs:{"preserve-scroll":"",href:t.route("forums.posts.show",t.post.slug)}},[t._v(" "+t._s(t.post.title)+" ")])],1)])]),s("p",{staticClass:"text-sm font-normal"},[s("expandable-text",{attrs:{text:t.post.body,maxLines:2}})],1),s("div",{staticClass:"flex items-center justify-end space-x-4 border-t mt
1-3 pt-2 border-gray-100"},[s("div",{staticClass:"inline-flex items-center text-sm space-x-2",attrs:{role:"button"},on:{click:function(e){return t.toggleReaction()}}},[t.post_.reaction===null?s("icon",{staticClass:"w-4 h-4",attrs:{name:"heart"}}):s("icon",{staticClass:"w-4 h-4 text-theme-1",attrs:{name:"heart-solid"}}),s("span",{staticClass:"font-normal"},[t._v(t._s(t.post_.reactions_count))]),s("span",{staticClass:"sr-only"},[t._v("likes")])],1),s("div",{staticClass:"inline-flex items-center text-sm space-x-2",attrs:{role:"button"}},[s("icon",{staticClass:"w-4 h-4",attrs:{name:"comments"}}),s("span",{staticClass:"font-normal"},[t._v(t._s(t.post_.comments_count))]),s("span",{staticClass:"sr-only"},[t._v("comments")])],1),s("div",{staticClass:"inline-flex items-center text-sm space-x-2",attrs:{role:"button"},on:{click:function(e){return t.share()}}},[s("icon",{staticClass:"w-4 h-4",attrs:{name:"share"}}),s("span",{staticClass:"sr-only"},[t._v("share")])],1)]),s("div",[t.loadComments?s("comment-section",{ref:"commentSectionRef",attrs:{entity:t.post,entityType:"post","add-comment-route":t.route("forums.posts.comments.store",{post:t.post.id}),"fetch-comments-route":t.route("forums.posts.comments.data",{post:t.post.id}),"report-types":[],"load-comments":!0},on:{"new-comment":t.updateCommentsCount}}):t._e()],1)])])])])])},c=[],m=n(l,r,c,!1,null,"06e1a306");const f=m.exports;export{f 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.