PageSourceSearch

https://www.worldenergycouncil.lv/_next/static/chunks/pages/magazine-d8bfce62200baaa1.js

js worldenergycouncil.lv collected 2026-10-08 19:14:28 UTC 7,043 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[650],{1421:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>u,default:()=>g});var l=t(7876),a=t(9643),r=t(8709),n=t(962),i=t(8230),c=t.n(i);t(7328);var o=t(2867),d=t(9116),m=t(8821),x=t(7497),h=t(6445);t.n(h)()(a.J);var u=!0;let g=e=>{let{magazines:s,locale:t}=e,{t:a}=(0,r.Bd)("common"),i="".concat(n.C1,"/").concat(t,"/magazine/"),h=s.length>0?s[0]:null;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.bV,{title:"".concat(a("titles.magazine")," | ").concat(n.C3),nofollow:!1,noindex:!1,description:a("seo.magazine-description"),canonical:i,openGraph:{url:i,title:"".concat(a("titles.magazine")," | ").concat(n.C3),description:a("seo.magazine-description"),images:[{url:n.__,width:800,height:600,alt:n.C3}],site_name:n.C3,type:"website"}}),(0,l.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-12",children:(0,l.jsx)("h1",{className:"text-wec-blue text-3xl font-extrabold",children:a("titles.magazine")})}),(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-12",children:[(0,l.jsx)(m.A,{latestMagazine:h}),(0,l.jsx)("h2",{className:"text-wec-blue py-8 font-extrabold text-2xl",children:a("titles.all-magazines")}),(0,l.jsx)(d.A,{magazines:s}),(0,l.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex pt-12",children:(0,l.jsxs)("ol",{className:"flex items-center space-x-2 text-sm",children:[(0,l.jsx)("li",{children:(0,l.jsx)(c(),{href:"/",children:(0,l.jsx)("p",{className:"capitalize hover:underline",children:a("nav.home")})})}),(0,l.jsx)("li",{children:(0,l.jsx)("span",{className:"mx-2",children:"/"})}),(0,l.jsx)("li",{children:(0,l.jsx)("span",{className:"font-light text-gray-700",children:a("titles.magazine")})})]})})]}),(0,l.jsx)(x.A,{})]})}},4939:()=>{},7497:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var l=t(7876);t(6842);var a=t(4232),r=t(8709),n=t(8641);t(3754);let i=()=>{let{t:e}=(0,r.Bd)("common"),[s,t]=(0,a.useState)(""),i=async s=>{try{if((await fetch("/api/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})).ok)n.oR.success(e("newsletter.success")),t("");else throw Error("Failed to subscribe")}catch(s){console.error(s),n.oR.error(e("newsletter.error"))}};return(0,l.jsx)("section",{id:"newsletter",role:"region","aria-label":"Subscribe Section",children:(0,l.jsx)("div",{className:"bg-wec-sky-blue",children:(0,l.jsx)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:(0,l.jsxs)("div",{className:"max-w-lg mx-auto",children:[(0,l.jsx)("h2",{className:"text-2xl font-bold text-wec-blue text-center",children:e("newsletter.title")}),(0,l.jsx)("p",{className:"mt-2 text-wec-blue text-center",children:e("newsletter.description")}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),""!==s.trim()&&i({email_address:s.trim()})},className:"mt-8 sm:flex",children:[(0,l.jsx)("label",{htmlFor:"email-address",className:"sr-only",children:e("newsletter.emailLabel")}),(0,l.jsx)("input",{id:"email-address",name:"email_address",type:"email",autoComplete:"email",required:!0,value:s,onChange:e=>t(e.target.value),className:"appearance-none w-full px-5 py-3 sm:max-w-xs border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:mt-0 sm:text-sm",placeholder:e("newsletter.emailPlaceholder")}),(0,l.jsx)("button",{type:"submit",className:"mt-3 w-full px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-wec-blue hover:bg-gray-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:flex-shrink-0 sm:w-auto sm:text-sm",children:e("newsletter.subscribeButton")})]})]})})})})}},7745:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/magazine",function(){return t(1421)}])},8821:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var l=t(7876),a=t(8230),r=t.n(a),n=t(8709),i=t(9643),c=t(6445);let o=t.n(c)()(i.J),d=e=>{var s;let{latestMagazine:t}=e,{t:a}=(0,n.Bd)("common");if(!t)return null;let i=(s=t.coverImage,o.image(s)).width(1200).url();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"text-wec-blue py-8 font-extrabold text-2xl",children:a("titles.latest-issue")}),(0,l.jsx)("div",{className:"max-w-7xl mx-auto ",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 md:gap-4 lg:gap-4 border border-gray-100 rounded-lg",children:[(0,l.jsx)("div",{className:"md:col-span-1 bg-cover bg-center rounded-lg bg-no-repeat ",style:{backgroundImage:"url(".concat(i,")"),paddingBottom:"40%"}}),(0,l.jsxs)("div",{className:"md:col-span-1 flex flex-col justify-center",children:[(0,l.jsx)("h3",{className:"text-xl lg:text-2xl font-extrabold py-6 px-4",children:t.title}),(0,l.jsx)("p",{className:"text-gray-800 pb-4 font-medium text-sm px-4",children:t.description}),(0,l.jsx)(r(),{href:"/magazine/".concat(t.slug),children:(0,l.jsx)("button",{className:"inline-block py-2 px-6 bg-wec-blue text-sm text-white rounded-lg transition-colors duration-300 hover:bg-gray-300 m-4 ",children:a("buttons.readMore")})})]})]})})]})}},9116:(e,s,t)=>{"use strict";t.d(s,{A:()=>u});
1var l=t(7876),a=t(9643),r=t(6445),n=t.n(r),i=t(8230),c=t.n(i),o=t(4587),d=t.n(o),m=t(2185),x=t(8709);let h=n()(a.J),u=e=>{let{magazines:s,limit:t}=e,{t:a}=(0,x.Bd)("common"),r=t?s.slice(0,t):s;return 0===r.length?(0,l.jsx)("div",{className:"text-center font-bold py-12 my-12",children:(0,l.jsx)("p",{children:a("messages.noMagazines")})}):(0,l.jsx)("section",{children:(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-8",children:r.map(e=>{var s;let t=(0,m.A)(new Date(e.date),"dd/MM/yyyy");return(0,l.jsxs)("article",{className:"bg-white shadow-md hover:shadow-xl rounded-md overflow-hidden flex flex-col h-full",children:[(0,l.jsx)("div",{className:"relative h-0 pb-56",children:e.coverImage?(0,l.jsx)(d(),{className:"object-cover",src:(s=e.coverImage,h.image(s)).width(800).url(),alt:e.coverImage.alt,fill:!0}):(0,l.jsx)(d(),{className:"object-cover",src:"/default-image.jpg",alt:"Default Image",fill:!0})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-grow p-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-lg font-bold mb-2 line-clamp-2",children:e.title}),(0,l.jsx)("p",{className:"text-gray-700 mb-4 line-clamp-4 text-sm",children:e.description})]}),(0,l.jsxs)("div",{className:"mt-auto flex justify-between items-center",children:[(0,l.jsx)(c(),{href:"/magazine/".concat(e.slug),children:(0,l.jsx)("div",{className:"bg-white border border-gray-500 hover:bg-gray-200 text-black px-6 py-2 text-sm rounded-md transition-colors duration-300",children:a("buttons.readMore")})}),(0,l.jsx)("p",{className:"text-gray-500 text-sm",children:t})]})]})]},e._id)})})})}},9643:(e,s,t)=>{"use strict";t.d(s,{J:()=>a});var l=t(5364);let a={projectId:l.env.NEXT_PUBLIC_SANITY_PROJECT_ID||"xh6shj9p",dataset:l.env.NEXT_PUBLIC_SANITY_DATASET||"production",useCdn:!0}}},e=>{e.O(0,[209,706,867,587,909,168,185,551,636,593,792],()=>e(e.s=7745)),_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.