Files
site/public/dist/assets/Index.476336bf.js
2025-04-21 16:03:20 +02:00

2 lines
6.3 KiB
JavaScript
Vendored

import{e as f,r as a,f as o,g as s,i as e,t as v,j as x,w as d,l as y,v as w,J as u,F as j,o as r,m as c}from"./vendor.7e4e5e39.js";import{L as k,t as F}from"./Layout.8435b6f7.js";import{p as M}from"./pickBy.de940eff.js";import{F as B}from"./Feed.cd406320.js";import{M as C}from"./MetaHead.6f35dab5.js";import{F as S}from"./FeedTagsButtons.33b086dd.js";import{_ as z}from"./plugin-vue_export-helper.21dcd24c.js";import"./ModalFeedBody.940b2345.js";import"./transition.esm.89c10969.js";import"./dom.esm.2d7131b5.js";import"./FeedPreview.b3da2b40.js";import"./app.ccfeba26.js";import"./menu.esm.eab5e425.js";import"./use-resolve-button-type.esm.e228f45b.js";import"./HeaderMisc.7e3ef413.js";import"./ModalFeed.acd41e24.js";import"./ModalWarning.9147e7f5.js";import"./InfinityScroll.fabf526e.js";const V={components:{MetaHead:C,FeedTagsButtons:S,Feed:B},layout:k,props:{feeds:Array,local_route:String,active_filter:String,tag:{type:[Object,Boolean],default:!1},searchFilters:Object,nextCursor:String},data(){return{form:{search:this.searchFilters.search}}},watch:{form:{deep:!0,handler:F(function(){f.Inertia.get(this.local_route,M(this.form),{preserveScroll:!0,preserveState:!0})},500)}},methods:{resetFilter(){f.Inertia.get(this.local_route,{},{preserveScroll:!0})}}},I={class:"mb-6 py-3 banner relative bg-center bg-no-repeat bg-cover",style:{"background-image":"url('/image/bg-home.jpg')"}},N={class:"h-52 flex justify-center items-center text-center"},T={class:"max-w-4xl text-gray px-3"},A=e("h1",{class:"text-xl md:text-2xl lg:text-3xl xl:text-5xl text-white font-semibold xl:leading-relaxed"}," \u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F ",-1),H={key:0,class:"text-lg md:text-3xl text-gray-light"},L=c(" \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C "),D={class:"xl:container xl:mx-auto px-2 md:px-3 buttons-filter-line"},O={class:"relative mb-5"},E=e("div",{class:"absolute inset-y-0 left-3 flex items-center z-[1]"},[e("svg",{class:"flex-shrink-0 h-5 w-5 text-gray-light",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 4a7 7 0 100 14 7 7 0 000-14zm-9 7a9 9 0 1118 0 9 9 0 01-18 0z"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.943 15.943a1 1 0 011.414 0l4.35 4.35a1 1 0 01-1.414 1.414l-4.35-4.35a1 1 0 010-1.414z"})])],-1),J={class:"grid gap-2 md:gap-5 grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6"},P=c(" \u041D\u043E\u0432\u0438\u043D\u043A\u0438 "),U=e("svg",{class:"-ml-1 mr-2 h-4 w-4 md:h-5 md:w-5 flex-shrink-0",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e("path",{d:"M14.422 6.243c-3.57-2.172-1.895-5.238-1.824-5.365A.586.586 0 0012.09 0c-1.837 0-3.276.522-4.276 1.552-1.71 1.76-1.63 4.498-1.597 5.667.004.13.007.242.007.325 0 .868.14 1.67.263 2.377.079.456.147.85.16 1.159.012.331-.048.407-.05.41-.01.01-.081.049-.276.049a.657.657 0 01-.53-.235c-.565-.634-.604-2.365-.496-3.307a.586.586 0 00-.582-.654c-1.521 0-2.658 2.488-2.658 4.712 0 1.046.21 2.07.625 3.045a8.081 8.081 0 001.7 2.527C5.894 19.157 7.89 20 10 20c2.119 0 4.114-.83 5.618-2.34a7.892 7.892 0 002.327-5.605c0-2.692-2.107-4.95-3.523-5.812zM10 18.828c-3.671 0-6.773-3.101-6.773-6.773 0-.893.213-1.83.585-2.571.086-.173.175-.322.263-.447.01.967.163 2.284.841 3.046.366.41.852.627 1.405.627.518 0 .912-.156 1.172-.466.486-.578.337-1.436.148-2.524-.115-.66-.245-1.409-.245-2.176 0-.1-.003-.22-.007-.359-.032-1.107-.099-3.412 1.265-4.817.613-.63 1.467-1.014 2.55-1.145-.123.406-.228.92-.232 1.497-.01 1.27.476 3.085 2.841 4.524 1.145.696 2.96 2.618 2.96 4.811A6.78 6.78 0 0110 18.828z"})],-1),W=c(" \u041F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u044B\u0435 "),q={key:0,class:"mt-4 grid gap-2 md:gap-5 grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6"},G={class:"xl:container xl:mx-auto px-2 md:px-3 my-6"},K={class:"xl:container xl:mx-auto px-2 md:px-3"},Q={key:0,class:"grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 cards-block rounded-md bg-indigo-200 shadow-classic grid gap-2 lg:gap-4 grid-cards p-2 lg:p-5"},R={key:1,class:"font-bold text-xl lg:text-3xl text-gray text-center"};function X(h,l,t,Y,g,m){const p=a("meta-head"),i=a("inertia-link"),_=a("feed-tags-buttons"),b=a("feed");return r(),o(j,null,[s(p,{title:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F"}),e("div",I,[e("div",N,[e("div",T,[A,t.tag?(r(),o("h2",H," #"+v(t.tag.name),1)):x("",!0),s(i,{href:h.route("images.create"),class:"mt-8 inline-flex tracking-wide items-center px-8 md:px-12 py-3 border border-white text-sm lg:text-lg text-white rounded-full bg-transparent hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2"},{default:d(()=>[L]),_:1},8,["href"])])])]),e("div",D,[e("div",O,[E,y(e("input",{"onUpdate:modelValue":l[0]||(l[0]=n=>g.form.search=n),class:"relative w-full focus:ring-4 focus:ring-offset-1 focus:ring-orange focus:ring-opacity-20 focus:ring-offset-orange focus:border-transparent text-gray border border-indigo-300 bg-indigo-200 rounded-md placeholder-gray-light !pl-10 h-14",placeholder:"\u041F\u043E\u0438\u0441\u043A",type:"search"},null,512),[[w,g.form.search]])]),e("div",J,[s(i,{href:t.local_route,class:u([t.active_filter=="new"?"bg-orange shadow-classic2":"shadow-classic bg-indigo-200 hover:bg-orange","transition inline-flex items-center px-3 py-3 lg:px-6 lg:py-6 xl:px-10 text-sm lg:text-lg justify-center rounded-md text-white focus:outline-none"])},{default:d(()=>[P]),_:1},8,["href","class"]),s(i,{href:t.local_route,data:{filter:"hot"},class:u([t.active_filter=="hot"?"bg-orange shadow-classic2":"shadow-classic bg-indigo-200 hover:bg-orange","transition inline-flex items-center px-3 py-3 lg:px-6 lg:py-6 xl:px-10 text-sm lg:text-lg justify-center shadow-classic rounded-md text-white focus:outline-none"])},{default:d(()=>[U,W]),_:1},8,["href","class"])]),t.tag?(r(),o("div",q,[s(_,{slug:t.tag.slug},null,8,["slug"])])):x("",!0)]),e("div",G,[e("button",{class:"button-default text-gray text-lg",onClick:l[1]||(l[1]=(...n)=>m.resetFilter&&m.resetFilter(...n))}," \u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B ")]),e("div",K,[t.feeds.length?(r(),o("div",Q,[s(b,{"next-cursor":t.nextCursor,feeds:t.feeds},null,8,["next-cursor","feeds"])])):(r(),o("div",R," \u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B "))])],64)}var he=z(V,[["render",X]]);export{he as default};