PageSourceSearch

https://www.vergidegundem.com/_next/static/chunks/3358-83d4809945e76d68.js

js vergidegundem.com collected 2026-10-02 19:09:54 UTC 8,826 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3358],{58064:function(e,t,a){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return r}});let l=a(74590);function r(e){let{createServerReference:t}=a(6671);return t(e,l.callServer)}},17455:function(e,t,a){a.d(t,{default:function(){return o}});var l=a(57437),r=a(53780),i=a(2265);a(74590);var s=(0,a(58064).$)("7ee558ced89bfc4ed824cbb2ef2d37f5347f2f51");function n(e){let[t,a,l]=e.split(".");return new Date(l,a-1,t)}function o(e){let[t,a]=(0,i.useState)([]),[o,c]=(0,i.useState)([]),[d,h]=(0,i.useState)(""),[g,u]=(0,i.useState)("all");(0,i.useEffect)(()=>{s(e.lang).then(e=>{var t=function(e){let t=[];return e.forEach(e=>{if(e&&e.attributes){var a,l,r;let i={id:e.id||null,Title:e.attributes.Title||null,Content:e.attributes.Content||null,Image:(null===(r=e.attributes.Image)||void 0===r?void 0:null===(l=r.data)||void 0===l?void 0:null===(a=l.attributes)||void 0===a?void 0:a.url)||null,StartDate:new Date(e.attributes.StartDate).toLocaleDateString("tr-TR",{day:"2-digit",month:"2-digit",year:"numeric"}),EndDate:new Date(e.attributes.EndDate).toLocaleDateString("tr-TR",{day:"2-digit",month:"2-digit",year:"numeric"})};new Date(e.attributes.EndDate)<=new Date(e.attributes.StartDate)&&(i.EndDate=null),t.push(i)}}),t}(e);a(t),c(t)}).catch(e=>console.error("Error fetching content:",e))},[]);let m=e=>{let a=t,l=d.toLowerCase();if(console.log(a=a.filter(e=>e.Title.toLowerCase().includes(l))),"upcoming"===e)console.log("upcoming"),a=a.filter(e=>{let t=new Date;return n(e.StartDate)>t});else if("this_week"===e){console.log("this_week");let e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()),l=new Date(t.getFullYear(),t.getMonth(),t.getDate()+6);console.log(t),console.log(l),a=a.filter(e=>{let a=n(e.StartDate);return console.log(a),console.log(a>=t),console.log(a<=l),a>=t&&a<=l})}else if("this_month"===e){console.log("this_month");let e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1),l=new Date(e.getFullYear(),e.getMonth()+1,0);a=a.filter(e=>{let a=n(e.StartDate);return a>=t&&a<=l})}else if("last_month"===e){console.log("last_month");let e=new Date,t=new Date(e.getFullYear(),e.getMonth()-1,1),l=new Date(e.getFullYear(),e.getMonth(),0);a=a.filter(e=>{let a=n(e.StartDate);return a>=t&&a<=l})}else if("last_year"===e){console.log("last_year");let e=new Date,t=new Date(e.getFullYear()-1,0,1),l=new Date(e.getFullYear()-1,11,31);a=a.filter(e=>{let a=n(e.StartDate);return a>=t&&a<=l})}c(a)},[x,f,...p]=("full"===e.type?o:t)||[],v=p.slice(0,3),w=v.length>0?"lg:grid-cols-3":"lg:grid-cols-2";return t&&t.length>0&&(0,l.jsx)(r.Card,{className:"lg:w-11/12 min-w-72 m-2 flex-row darker-mode",children:(0,l.jsxs)("div",{className:"py-5 px-5",children:["full"==e.type?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Typography,{variant:"h2",color:"white",className:"mb-4",children:e.dict.activities.title}),(0,l.jsx)(r.Typography,{variant:"h4",color:"white",className:"mb-10",children:e.dict.activities.description})]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,l.jsx)(r.Typography,{variant:"h6",color:"white",className:"mb-4 uppercase",children:e.dict.activities.title}),(0,l.jsx)("a",{href:"/etkinlik/",children:(0,l.jsx)("button",{className:"text-white font-bold my-2 py-2 px-4 rounded-lg border border-white hover:bg-white hover:text-[#2e2e38]",children:e.dict.activities.all})})]})}),"full"===e.type&&(0,l.jsxs)("div",{className:"flex flex-col space-y-4 sm:flex-row sm:space-y-0 sm:justify-between mb-4",children:[(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center",children:[(0,l.jsxs)("label",{htmlFor:"activity-search",className:"mr-2 text-white mb-2 sm:mb-0",children:[e.dict.activities.search,":"]}),(0,l.jsx)("input",{type:"text",id:"activity-search",className:"w-full sm:w-56 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",value:d,onChange:e=>{h(e.target.value),m()}})]}),(0,l.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center",children:(0,l.jsxs)("select",{id:"activity-date-filter",className:"w-full sm:w-48 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",value:g,onChange:e=>{console.log(e.target.value),console.log("here"),u(e.target.value),m(e.target.value)},children:[(0,l.jsx)("option",{value:"all",children:e.dict.activities.allDates}),(0,l.jsx)("option",{value:"upcoming",children:e.dict.activities.upcoming}),(0,l.jsx)("option",{value:"this_week",children:e.dict.activities.thisWeek}),(0,l.jsx)("option",{value:"this_month",children:e.dict.activities.thisMonth}),(0,l.jsx)("option",{value:"last_month",children:e.dict.activities.lastMonth}),(0,l.jsx)("option",{value:"last_year",children:e.dict.activities.lastYear})]})})]}),"full"!=e.type&&(0,l.jsxs)("div",{className:"grid grid-cols-1 "+w+" gap-4",children:[x&&(0,l.jsxs)("div",{className:"p-2",children:[(0,l.jsx)("img",{src:x.Image,alt:x.Title,width:800,height:400,className:"object-cover rounded-lg mb-4"}),(0,l.jsx)("div",{children:(0,l.jsxs)("a",{href:"/etkinlik/"+x.id,className:"flex-grow",children:[(0,l.jsx)(r.Typography,{variant:"lead",color:"white",children:(0,l.jsx)("b",{children:x.Title})}),(0,l.jsxs)(r.Typography,{variant:"small",color:"white",className:"font-normal",children:[x.StartDate,x.EndDate&&" - "+x.EndDate]})]})})]}),f&&(0,l.jsxs)("div",{className:"p-2",children:[(0,l.jsx)("img",{src:f.Image,alt:f.Title,width:800,height:400,className:"object-cover rounded-lg mb-4"}),(0,l.jsx)("div",{children:(0,l.jsxs)("a",{href:"/etkinlik/"+f.id,className:"flex-grow",children:[(0,l.jsx)(r.Typography,{variant:"lead",color:"white",children:(0,l.jsx)("b",{children:f.Title})}),(0,l.jsxs)(r.Typography,{variant:"small",color:"white",className:"font-normal",children:[f.StartDate,f.EndDate&&" - "+f.EndDate]})]})})]}),v.length>0&&"full"!=e.type&&(0,l.jsxs)("div",{className:"p-2 pl-5",children:[(0,l.jsx)("h3",{className:"text-xl font-semibold mb-2",children:e.dict.activities.other}),(0,l.jsx)("ul",{className:"",children:v.map(e=>(0,l.jsx)(r.ListItem,{className:"hover:bg-transparent",children:(0,l.jsx)("div",{className:"flex-col",children:(0,l.jsxs)("a",{href:"/etkinlik/"+e.id,className:"flex-grow",children:[(0,l.jsx)(r.Typography,{variant:"lead",color:"white",children:(0,l.jsx)("b",{children:e.Title})}),(0,l.jsxs)(r.Typography,{variant:"small",color:"white",className:"font-normal",children:[e.StartDate,e.EndDate&&" - "+e.EndDate]})]})})},e.id))})]})]}),"full"==e.type&&(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:o.map(e=>(0,l.jsxs)("div",{className:"p-2",children:[(0,l.jsx)("img",{src:e.Image,alt:e.Title,width:800,height:400,className:"object-cover rounded-lg mb-4"}),(0,l.jsx)("div",{children:(0,l.jsxs)("a",{href:"/etkinlik/"+e.id,className:"flex-grow",children:[(0,l.jsx)(r.Typography,{variant:"lead",color:"white",children:(0,l.jsx)("b",{children:e.Title})}),(0,l.jsxs)(r.Typography,{variant:"small",color:"white",className:"font-normal",children:[e.StartDate,e.EndDate&&" - "+e.EndDate]})]})})]}))})]})})}},72077:function(e,t,a){a.d(t,{Y:function(){return i}});var l=a(57437),r=a(53780);function i(){return(0,l.jsxs)(r.Card,{className:"mt-6 w-full animate-pulse",children:[(0,l.jsx)(r.CardHeader,{shadow:!1,floated:!1,className:"relative grid h-56 place-items-center bg-gray-300",children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-12 w-12 text-gray-500",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})})}),(0,l.jsxs)(r.CardBody,{children:[(0,l.jsx)(r.Typography,{as:"div",variant:"h1",className:"mb-4 h-3 w-56 rounded-full bg-gray-300",children:"\xa0"}),(0,l.jsx)(r.Typography,{as:"div",variant:"paragraph",className:"mb-2 h-2 w-full rounded-full bg-gray-300",children:"\xa0"}),(0,l.jsx)(r.Typography,{as:"div",variant:"paragraph",className:"mb-2 h-2 w-full rounded-full bg-gray-300",children:"\xa0"}),(0,l.jsx)(r.Typography,{as:"div",variant:"paragraph",className:"mb-2 h-2 w-full rounded-full bg-gray-300",children:"\xa0"}),(0,l.jsx)(r.Typography,{as:"div",variant:"paragraph",className:"mb-2 h-2 w-full rounded-full bg-gray-300",children:"\xa0"})]}),(0,l.jsx)(r.CardFooter,{className:"pt-0",children:(0,l.jsx)(r.Button,{disabled:!0,tabIndex:-1,
1className:"h-8 w-20 bg-gray-300 shadow-none hover:shadow-none",children:"\xa0"})})]})}}}]);

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.