{"ast":null,"code":"import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createStaticVNode as _createStaticVNode } from \"vue\";\nconst _hoisted_1 = {\n  class: \"post\"\n};\nconst _hoisted_2 = /*#__PURE__*/_createStaticVNode(\"<header><div class=\\\"title\\\"><h2><a href=\\\"{{Route(&#39;post&#39;, post.id)}}\\\"></a></h2><p><!-- {{ post.subheader }} --></p></div><div class=\\\"meta\\\"><time class=\\\"published\\\" datetime=\\\"{{ postdatepost }}\\\"><!-- {{ post.datepost }} --></time><a href=\\\"{{Route(&#39;user&#39;, post.user_id)}}\\\" class=\\\"author\\\"><span class=\\\"name\\\"><!-- {{ $user -&gt; fullname }} --></span></a></div></header><span class=\\\"image featured\\\"></span><p><!-- {{ post.anons }} --></p><p><!-- {{ post.post }} --></p><footer><ul class=\\\"stats\\\"> @if(Auth::id() == post.user_id) <li><a href=\\\"{{Route(&#39;edit&#39;, post.id)}}\\\">Edit</a></li><li><a href=\\\"{{Route(&#39;deletepost&#39;, post.id)}}\\\" class=\\\"red\\\">Delete</a></li><li><a href=\\\"{{Route(&#39;blockpost&#39;, post.id)}}\\\" class=\\\"red\\\"></a></li> @endif <li><a href=\\\"{{Route(&#39;likes&#39;, post.id)}}\\\" class=\\\"icon fa-heart\\\"><!-- {{ $likes -&gt; count() }} --></a></li><li><a href=\\\"#comm\\\" class=\\\"icon fa-comment\\\"><!-- {{ $comments -&gt; count() }} --></a></li></ul></footer>\", 5);\nconst _hoisted_7 = [_hoisted_2];\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n  return _openBlock(true), _createElementBlock(_Fragment, null, _renderList($props.posts, post => {\n    return _openBlock(), _createElementBlock(\"article\", _hoisted_1, [..._hoisted_7]);\n  }), 256 /* UNKEYED_FRAGMENT */);\n}","map":{"version":3,"names":["class","_createStaticVNode","_hoisted_2","_createElementBlock","_Fragment","_renderList","$props","posts","post","_hoisted_1","_hoisted_7"],"sources":["C:\\xampp\\htdocs\\blog_vue1t\\src\\components\\Post.vue"],"sourcesContent":["<template>\r\n    <article class=\"post\" v-for=\"(post) in posts\">\r\n\r\n        <header>\r\n            <div class=\"title\">\r\n                <h2><a href=\"{{Route('post', post.id)}}\">\r\n                        \r\n                    </a></h2>\r\n                <p>\r\n                    <!-- {{ post.subheader }} -->\r\n                </p>\r\n            </div>\r\n            <div class=\"meta\">\r\n                <time class=\"published\" datetime=\"{{ postdatepost }}\">\r\n                    <!-- {{ post.datepost }} -->\r\n                </time>\r\n                <a href=\"{{Route('user', post.user_id)}}\" class=\"author\"><span class=\"name\">\r\n                        <!-- {{ $user -> fullname }} -->\r\n                    </span></a>\r\n            </div>\r\n        </header>\r\n        <span class=\"image featured\"></span>\r\n\r\n        <p>\r\n            <!-- {{ post.anons }} -->\r\n        </p>\r\n\r\n        <p>\r\n            <!-- {{ post.post }} -->\r\n        </p>\r\n        <footer>\r\n            <ul class=\"stats\">\r\n                @if(Auth::id() == post.user_id)\r\n                <li><a href=\"{{Route('edit', post.id)}}\">Edit</a></li>\r\n                <li><a href=\"{{Route('deletepost', post.id)}}\" class=\"red\">Delete</a></li>\r\n                <li><a href=\"{{Route('blockpost', post.id)}}\" class=\"red\"></a></li>\r\n                @endif\r\n                <li>\r\n                    <a href=\"{{Route('likes', post.id)}}\" class=\"icon fa-heart\">\r\n                        <!-- {{ $likes -> count() }} -->\r\n                    </a>\r\n                </li>\r\n\r\n                <li>\r\n                    <a href=\"#comm\" class=\"icon fa-comment\">\r\n                        <!-- {{ $comments -> count() }} -->\r\n                    </a>\r\n                </li>\r\n            </ul>\r\n        </footer>\r\n    </article>\r\n</template>\r\n<script>\r\nimport server from \"@/assets/js/scripts\";\r\n\r\nexport default {\r\n    props: [\"token\", \"posts\"],\r\n\r\n    methods: {\r\n    },\r\n};\r\n</script>"],"mappings":";;EACaA,KAAK,EAAC;AAAM;gCADzBC,kBAAA;oBAGQC,UAiBS,C;;2BAnBbC,mBAAA,CAiDUC,SAAA,QAlDdC,WAAA,CAC2CC,MAAA,CAAAC,KAAK,EAAdC,IAAI;yBAAlCL,mBAAA,CAiDU,WAjDVM,UAiDU,EAlDd,IAAAC,UAAA"},"metadata":{},"sourceType":"module","externalDependencies":[]}