PageSourceSearch

https://istanbulkart.istanbul/_next/static/chunks/app/kampanyalar/page-06fa74ecdf004ae3.js

js istanbulkart.istanbul collected 2026-10-02 13:54:52 UTC 6,329 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8930],{975:(e,r,t)=>{"use strict";t.d(r,{d:()=>d});var a=t(5155),l=t(3999);let s={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base"},i={sm:"w-4 h-4",md:"w-4 h-4",lg:"w-5 h-5"},n={primary:{active:"bg-[var(--color-primary-light)] text-white border-blue-400",activeBorder:"border-[var(--color-primary-light)] text-[var(--color-primary-light)]"},red:{active:"bg-red-600 text-white",activeBorder:"border-red-600 text-red-600 dark:text-red-400"},blue:{active:"bg-blue-600 text-white",activeBorder:"border-blue-600 text-blue-600 dark:text-blue-400"}};function d(e){let{options:r,selected:t,onChange:d,variant:c="pills",color:o="primary",size:x="md",fullWidth:g=!1,className:m}=e,p=n[o],u=e=>{let r=(0,l.cn)("inline-flex items-center justify-center gap-2 font-medium transition-all",s[x],g&&"flex-1");switch(c){case"pills":return(0,l.cn)(r,"rounded-full",e?(0,l.cn)(p.active,"shadow-sm"):"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 border border-gray-200 dark:border-gray-700");case"buttons":return(0,l.cn)(r,"rounded-lg border",e?(0,l.cn)(p.active,"shadow-sm font-bold"):"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700");case"underline":return(0,l.cn)(r,"border-b-2 rounded-none",e?p.activeBorder:"border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:border-gray-300")}};return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-wrap gap-2","underline"===c&&"border-b border-gray-200 dark:border-gray-700 gap-0",m),role:"tablist",children:r.map(e=>{let r=e.icon,s=t===e.id;return(0,a.jsxs)("button",{onClick:()=>d(e.id),className:u(s),role:"tab","aria-selected":s,"aria-controls":"panel-".concat(e.id),children:[r&&(0,a.jsx)(r,{className:i[x]}),(0,a.jsx)("span",{children:e.label}),void 0!==e.count&&(0,a.jsx)("span",{className:(0,l.cn)("px-1.5 py-0.5 rounded-full text-xs",s?"bg-white/20 text-white":"bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400"),children:e.count})]},e.id)})})}},3999:(e,r,t)=>{"use strict";t.d(r,{cn:()=>s});var a=t(2596),l=t(9688);function s(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,l.QP)((0,a.$)(r))}},4545:(e,r,t)=>{"use strict";t.d(r,{default:()=>u});var a=t(5155),l=t(2115),s=t(6874),i=t.n(s),n=t(3999);let d={default:"bg-gray-50 dark:bg-gray-900",white:"bg-white dark:bg-gray-950",alternate:"bg-gray-100 dark:bg-gray-800"},c={sm:"py-6 md:py-8",md:"py-8 md:py-12",lg:"py-12 md:py-16",xl:"py-16 md:py-20"},o={sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-5xl",xl:"max-w-6xl","2xl":"max-w-7xl",full:""};function x(e){let{children:r,variant:t="default",padding:l="lg",maxWidth:s="full",withContainer:i=!0,id:x,className:g}=e;return(0,a.jsx)("section",{id:x,className:(0,n.cn)(d[t],c[l],"transition-colors",g),children:i?(0,a.jsx)("div",{className:(0,n.cn)("container mx-auto px-4",o[s]),children:r}):r})}let g={sm:{title:"text-2xl md:text-3xl",description:"text-base"},md:{title:"text-3xl md:text-4xl",description:"text-lg"},lg:{title:"text-4xl md:text-5xl",description:"text-xl"}};function m(e){let{title:r,description:t,resultCount:l,resultLabel:s="sonu\xe7",alignment:i="center",size:d="md",children:c,className:o}=e,x=g[d],m="center"===i;return(0,a.jsxs)("div",{className:(0,n.cn)("mb-8 md:mb-12",m&&"text-center",o),children:[(0,a.jsxs)("div",{className:(0,n.cn)(m?"flex flex-col items-center":"flex flex-col md:flex-row md:items-center md:justify-between gap-4"),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:(0,n.cn)("font-bold text-gray-900 dark:text-white",x.title),children:r}),t&&(0,a.jsx)("p",{className:(0,n.cn)("mt-2 text-gray-600 dark:text-gray-400",x.description,m&&"max-w-2xl mx-auto"),children:t})]}),void 0!==l&&(0,a.jsxs)("div",{className:(0,n.cn)("text-sm text-gray-500 dark:text-gray-400",!m&&"md:text-right"),children:[(0,a.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:l})," ",s]})]}),c&&(0,a.jsx)("div",{className:(0,n.cn)("mt-6",m&&"flex justify-center"),children:c})]})}var p=t(975);function u(e){let{currentCampaigns:r,pastCampaigns:t,translations:s}=e,[n,d]=(0,l.useState)("current"),c="current"===n?r:t,o=[{id:"current",label:s.istanbulKart_campaigns_page_current_campaigns||"G\xfcncel Kampanyalar"},{id:"past",label:s.istanbulKart_campaigns_page_past_campaigns||"Ge\xe7miş Kampanyalar"}];return(0,a.jsxs)(x,{children:[(0,a.jsx)(m,{title:s.istanbulKart_campaigns_page_title||"Kampanyalar",alignment:"left",resultCount:c.length,resultLabel:s.istanbulKart_campaigns_page_campaign_exist||"kampanya bulundu",children:(0,a.jsx)(p.d,{options:o,selected:n,onChange:d,variant:"pills"})}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:c.map(e=>(0,a.jsx)(i(),{href:"/kampanyalar/detay?id=".concat(e.id),className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden hover:shadow-lg transition-shadow group cursor-pointer",children:(0,a.jsxs)("div",{className:"relative",children:["true"===e.properties.badge&&(0,a.jsxs)("div",{className:"absolute top-2 right-2 z-10 inline-flex items-center gap-1 bg-gradient-to-r from-purple-500 to-pink-500 text-white px-2 py-1 rounded-full text-xs font-semibold shadow-lg",children:[(0,a.jsx)("span",{children:"✨"}),(0,a.jsx)("span",{children:"\xd6ne \xc7ıkan"})]}),e.properties.ist_cover_picture?(0,a.jsx)("img",{src:e.properties.ist_cover_picture,alt:e.properties.headerTitle,className:"w-full h-auto object-cover group-hover:scale-105 transition-transform duration-300"}):(0,a.jsx)("div",{className:"w-full aspect-[4/3] bg-gradient-to-br from-purple-400 to-pink-600 dark:from-purple-900 dark:to-pink-800 flex items-center justify-center",children:(0,a.jsxs)("div",{className:"text-center text-white",children:[(0,a.jsx)("div",{className:"text-4xl mb-2",children:"\uD83C\uDF81"}),(0,a.jsx)("p",{className:"text-sm font-semibold opacity-90",children:"Kampanya"})]})})]})},e.id))})]})}},5196:(e,r,t)=>{Promise.resolve().then(t.bind(t,4545))}},e=>{var r=r=>e(e.s=r);e.O(0,[8779,5127,1277,7979,1899,9744,2322,9592,7940,5030,465,9473,8441,7358],()=>r(5196)),_N_E=e.O()}]);

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.