1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92],{2254:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(7876),l=n(4232),s=n(8230),r=n.n(s),c=n(9099);let i=e=>{let{categories:t,currentCategory:n,isMain:s}=e,[i,o]=(0,l.useState)(!1),[d,u]=(0,l.useState)(0),[m,x]=(0,l.useState)("");return(0,c.useRouter)(),(0,l.useEffect)(()=>{let e=()=>{let{scrollLeft:e,scrollWidth:t,clientWidth:n}=document.getElementById("categoryListContainer");u(e/(t-n)*100)},t=document.getElementById("categoryListContainer");return t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}},[]),(0,l.useEffect)(()=>{x(n)},[n]),(0,l.useEffect)(()=>{x(n)},[n]),(0,a.jsx)("div",{className:"overflow-x-auto whitespace-nowrap py-4",id:"categoryListContainer",children:(0,a.jsx)("ul",{className:"flex flex-nowrap gap-4 relative",children:t.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(r(),{href:"/blog/category/".concat(e.slug),children:(0,a.jsx)("div",{className:"flex items-center justify-center py-2 px-4 font-semibold text-sm rounded-lg ".concat(m===e.slug?"bg-gray-300":"bg-white border border-gray-400"," hover:bg-gray-100 focus:outline-none ").concat(m===e.slug?"text-gray-400":"text-gray-800"),onClick:()=>{x(e.slug)},children:e.title})})},e._id))})})}},4239:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(7876),l=n(8230),s=n.n(l),r=n(9099),c=n(8709);let i=()=>{let e=(0,r.useRouter)(),{t}=(0,c.Bd)("common");return(0,a.jsxs)("div",{className:"flex flex-wrap ",children:[(0,a.jsx)(s(),{href:"/blog",locale:e.locale,children:(0,a.jsx)("h2",{className:"mr-2 mt-2 text-xl font-bold ".concat("/blog"===e.pathname?"text-black":"text-gray-500"," hover:text-black "),children:t("nav.news-all")})}),(0,a.jsx)(s(),{href:"/blog/category",locale:e.locale,children:(0,a.jsx)("h2",{className:"mr-2 mt-2 text-xl font-bold ".concat("/blog/category"===e.pathname?"text-black":"text-gray-500"," hover:text-black "),children:t("blog-nav.categories")})}),(0,a.jsx)(s(),{href:"/blog/tags",locale:e.locale,children:(0,a.jsx)("h2",{className:"mr-2 mt-2 text-xl font-bold ".concat("/blog/tags"===e.pathname?"text-black":"text-gray-500"," hover:text-black "),children:t("blog-nav.tags")})})]})}},4427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>x,default:()=>p});var a=n(7876),l=n(4232),s=n(8709),r=n(8022),c=n(2867),i=n(962),o=n(4239);n(2254);var d=n(6082),u=n(8230),m=n.n(u),x=!0;let p=()=>{let{t:e}=(0,s.Bd)("common"),[t,n]=(0,l.useState)([]),[u,x]=(0,l.useState)(!0);(0,l.useEffect)(()=>{(async()=>{n(await (0,r.$n)()),x(!1)})()},[]);let p=t.filter(e=>e.posts.length>0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.bV,{title:"".concat(e("titles.all-tags")," | ").concat(i.C3),description:e("seo.tag-index-description"),canonical:"".concat(i.C1,"/blog/tags"),openGraph:{url:"".concat(i.C1,"/blog/tags"),title:"".concat(e("titles.all-tags")," | ").concat(i.C3),description:e("seo.tag-index-description"),images:[{url:i.__,width:800,height:600,alt:"Default Image"}],site_name:i.C3},twitter:{handle:i.Nz,site:i.GT,cardType:"summary"}}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-12",children:[(0,a.jsx)("div",{className:"text-wec-blue text-3xl font-extrabold uppercase",children:e("titles.news")}),(0,a.jsx)(o.A,{})]}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-12 pt-12",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold mb-6",children:e("titles.all-tags")}),u?(0,a.jsx)("div",{className:"flex justify-center items-center h-64 text-wec-blue ",children:(0,a.jsx)(d.A,{color:"#236192",size:8,margin:2})}):(0,a.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-3",children:p.map(e=>(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-md p-6",children:[(0,a.jsx)("h2",{className:"text-xl font-extrabold",children:(0,a.jsx)(m(),{href:"/blog/tags/".concat(e.slug.current),children:(0,a.jsxs)("div",{className:"flex items-center pb-4",children:[(0,a.jsxs)("div",{className:"text-wec-blue hover:text-wec-dark-blue mr-2",children:["#",e.name]}),(0,a.jsx)("sup",{className:"text-gray-400 text-sm font-bold",children:e.posts.length})]})})}),(0,a.jsx)("ul",{children:e.posts.map(e=>(0,a.jsx)("li",{className:"mb-2",children:(0,a.jsx)("a",{href:"/blog/".concat(e.slug.current),className:"text-gray-700 text-sm hover:underline ",children:e.title})},e._id))})]},e._id))})]}),(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6",children:(0,a.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,a.jsxs)("ol",{className:"flex items-center space-x-2 text-sm",children:[(0,a.jsx)("li",{children:(0,a.jsx)(m(),{href:"/",children:(0,a.jsx)("p",{className:"capitalize hover:underline",children:e("nav.home")})})}),(0,a.jsx)("li",{children:(0,a.jsx)("span",{className:"mx-2",children:"/"})}),(0,a.jsx)("li",{children:(0,a.jsx)(m(),{href:"/blog",children:(0,a.jsx)("p",{className:"capitalize hover:underline",children:e("nav.news")})})}),(0,a.jsx)("li",{children:(0,a.jsx)("span",{className:"mx-2",children:"/"})}),(0,a.jsx)("li",{children:(0,a.jsx)("span",{className:"font-light text-gray-700",children:e("titles.all-tags")})})]})})})]})}},6082:(e,t,n)=>{"use strict";n.d(t,{A:()=>
1o});var a=n(4232),l={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function s(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var a=(e.match(/[^0-9]*$/)||"").toString();return l[a]?{value:t,unit:a}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)0>t.indexOf(a[l])&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]]);return n},i=function(e,t,n){var a="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return a;var l=document.createElement("style");document.head.appendChild(l);var s=l.sheet,r="\n @keyframes ".concat(a," {\n ").concat(t,"\n }\n ");return s&&s.insertRule(r,0),a}("PulseLoader","0% {transform: scale(1); opacity: 1} 45% {transform: scale(0.1); opacity: 0.7} 80% {transform: scale(1); opacity: 1}","pulse");let o=function(e){var t=e.loading,n=e.color,l=void 0===n?"#000000":n,o=e.speedMultiplier,d=void 0===o?1:o,u=e.cssOverride,m=e.size,x=void 0===m?15:m,p=e.margin,g=void 0===p?2:p,h=c(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),f=r({display:"inherit"},void 0===u?{}:u),v=function(e){return{backgroundColor:l,width:s(x),height:s(x),margin:s(g),borderRadius:"100%",display:"inline-block",animation:"".concat(i," ").concat(.75/d,"s ").concat(.12*e/d,"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)"),animationFillMode:"both"}};return void 0===t||t?a.createElement("span",r({style:f},h),a.createElement("span",{style:v(1)}),a.createElement("span",{style:v(2)}),a.createElement("span",{style:v(3)})):null}},7143:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/tags",function(){return n(4427)}])},8022:(e,t,n)=>{"use strict";n.d(t,{kQ:()=>u,QH:()=>d,BZ:()=>o,$n:()=>i});var a=n(9079),l=n(9643);let s=(0,a.UU)({...l.J,apiVersion:"2021-05-16"});var r=n(6445);let c=n.n(r)()(l.J);async function i(){return await s.fetch('*[_type == "tag"]{\n _id,\n name,\n slug,\n "posts": *[_type == "post" && references(^._id)] | order(_createdAt desc) {\n _id,\n title,\n slug\n }\n }')}async function o(e){return await s.fetch('*[_type == "tag" && slug.current == "'.concat(e,'"][0]{\n _id,\n name,\n slug,\n "posts": *[_type == "post" && references(^._id)]{\n _id,\n title,\n slug,\n "author": author->,\n "mainImage": mainImage.asset->,\n publishedAt\n }\n }'))}async function d(){return await s.fetch("*[_type == 'resource'] {\n titleEn,\n titleLv,\n link,\n \"fileUrl\": file.asset->url\n }")}let u=async()=>(await s.fetch('*[ _type == "event"]{\n _id,\n title,\n slug,\n "organizer": organizer,\n "location": location,\n "mainImage": mainImage.asset->,\n eventAt,\n publishedAt,\n description,\n body\n } | order(eventAt asc)')).map(e=>{var t;return{...e,mainImage:e.mainImage?{...e.mainImage,asset:{...e.mainImage.asset,url:(t=e.mainImage,c.image(t)).url()}}:null}})},9643:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var a=n(5364);let l={projectId:a.env.NEXT_PUBLIC_SANITY_PROJECT_ID||"xh6shj9p",dataset:a.env.NEXT_PUBLIC_SANITY_DATASET||"production",useCdn:!0}}},e=>{e.O(0,[867,909,168,79,636,593,792],()=>e(e.s=7143)),_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.