import{A as i}from"./AppLayout-5c633aaa.js";import{Z as u}from"./inertia-11bf9011.js";import{_}from"./_plugin-vue_export-helper-b15b4a05.js";import{q as s,u as o,v as a,D as r,G as n,x as l,F as h,y as m}from"./vue-0d7ee8e8.js";import"./inertia-722f135b.js";import"./preload-helper-f61836a9.js";import"./axios-dd1c8fc2.js";import"./userActivity-e849d9de.js";import"./fingerprint-374ab551.js";import"./@inertiajs/core-9c117dfe.js";import"./recaptcha-v3-f0e7cd4f.js";import"./qs-0fed5bc1.js";import"./get-intrinsic-20bd36cc.js";import"./object-inspect-747fc63f.js";import"./nprogress-f6c1521f.js";import"./lodash.isequal-390c7467.js";const k={layout:i,components:{AppLayout:i,Head:u},props:{post:Object,placeholders:Object},mounted(){document.querySelectorAll(".post-content-block h1, .post-content-block h2, .post-content-block h3, .post-content-block h4, .post-content-block h5, .post-content-block h6").forEach(function(e){switch(e.style.marginInlineStart="0px",e.style.marginInlineEnd="0px",e.style.fontWeight="bold",e.tagName.toLowerCase()){case"h1":e.style.fontSize="2em",e.style.marginBlockStart="0.67em",e.style.marginBlockEnd="0.67em";break;case"h2":e.style.fontSize="1.5em",e.style.marginBlockStart="0.83em",e.style.marginBlockEnd="0.83em";break;case"h3":e.style.fontSize="1.17em",e.style.marginBlockStart="1em",e.style.marginBlockEnd="1em";break;case"h4":e.style.marginBlockStart="1.33em",e.style.marginBlockEnd="1.33em";break;case"h5":e.style.fontSize="0.83em",e.style.marginBlockStart="1.67em",e.style.marginBlockEnd="1.67em";break;case"h6":e.style.fontSize="0.67em",e.style.marginBlockStart="2.33em",e.style.marginBlockEnd="2.33em";break}})}},d={class:"section"},y={class:"title-block"},f=["innerHTML"],g={key:0,class:"columns"},p={key:0,class:"w-full md:w-1/2 mt-2 mb-[4px] flex gap-[6px] items-center"},w=["src"],v={class:"text-sm"},b=["href"],x={key:1,class:"w-full md:w-1/2 mt-2 mb-[4px] flex gap-[6px] items-center"},B=["src"],S={class:"text-sm"},E=["href"],z=["href"],j=["src"],L=["src"],N=["innerHTML"];function H(c,e,t,T,A,M){return s(),o("section",d,[a("div",y,[a("h1",{class:"heading !text-[23px]",innerHTML:t.post.title},null,8,f)]),t.post.author||t.post.reviewer?(s(),o("div",g,[t.post.author?(s(),o("div",p,[t.post.display_the_author_avatar?(s(),o("img",{key:0,class:"w-[45px] h-[45px] rounded-full object-cover",src:t.post.author.image&&t.post.author.image!=="null"?"/storage/"+t.post.author.image:"../images/author/def-avatar.jpg",alt:"author"},null,8,w)):r("",!0),a("p",v,[n(l(t.placeholders.author)+" ",1),a("a",{href:c.route("author.show",{firstName:t.post.author.first_name,surname:t.post.author.surname}),class:"text-gray underline"},l(t.post.author.first_name+" "+t.post.author.surname),9,b)])])):r("",!0),t.post.reviewer?(s(),o("div",x,[t.post.display_the_reviewer_avatar?(s(),o("img",{key:0,class:"w-[45px] h-[45px] rounded-full object-cover",src:t.post.reviewer.image&&t.post.reviewer.image!=="null"?"/storage/"+t.post.reviewer.image:"../images/author/def-avatar.jpg",alt:"author"},null,8,B)):r("",!0),a("p",S,[n(l(t.placeholders.reviewer)+" ",1),a("a",{href:c.route("reviewer.show",{firstName:t.post.reviewer.first_name,surname:t.post.reviewer.surname}),class:"text-gray underline"},l(t.post.reviewer.first_name+" "+t.post.reviewer.surname),9,E)])])):r("",!0)])):r("",!0),t.post.image?(s(),o(h,{key:1},[t.post.image_link?(s(),o("a",{key:0,href:t.post.image_link,target:"_blank"},[a("img",{class:m(t.post.is_actual_size_image?"w-auto h-auto":"post__image"),src:t.post.imageUrl},null,10,j)],8,z)):(s(),o("img",{key:1,class:m(t.post.is_actual_size_image?"w-auto h-auto":"post__image"),src:t.post.imageUrl},null,10,L))],64)):r("",!0),a("div",{class:"break-words hyphens post-content-block",innerHTML:t.post.content},null,8,N)])}const X=_(k,[["render",H]]);export{X as default};