https://www.sakyla.fi/wp-content/plugins/satakunta-events-blocks/b…/view.js?ver=74263225ef8fcf5f7949
1(()=>{"use strict";var e={845(e,t,s){var a=s(87),n=s(790);class r extends a.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?this.props.fallback||(0,n.jsx)("p",{className:"satakunta-events-error",role:"alert",children:"Virhe ladattaessa tapahtumia. Yritä myöhemmin uudelleen."}):this.props.children}}const o=r;s.d(t,["A",0,o])},609(e){e.exports=window.React},790(e){e.exports=window.ReactJSXRuntime},87(e){e.exports=window.wp.element}};const t={};function s(a){const n=t[a];if(void 0!==n)return n.exports;const r=t[a]={exports:{}};return e[a](r,r.exports,s),r.exports}s.m=e,s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{if(Array.isArray(t))for(var a=0;a<t.length;){var n=t[a++],r=t[a++],o=0===r?{enumerable:!0,value:t[a++]}:{enumerable:!0,get:r};s.o(e,n)||Object.defineProperty(e,n,o)}else for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,a)=>(s.f[a](e,t),t),[])),s.u=e=>e+".js?ver="+{272:"9b206e1ddb48c1eefe66",639:"1c72d8ca6bad703ba055"}[e],s.miniCssF=e=>e+".css",s.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="satakunta-events-blocks:";s.l=(a,n,r,o)=>{if(e[a])return void e[a].push(n);let l,i;if(void 0!==r){const e=document.getElementsByTagName("script");for(var d=0;d<e.length;d++){const s=e[d];if(s.getAttribute("src")==a||s.getAttribute("data-webpack")==t+r){l=s;break}}}l||(i=!0,l=document.createElement("script"),l.charset="utf-8",s.nc&&l.setAttribute("nonce",s.nc),l.setAttribute("data-webpack",t+r),l.src=a),e[a]=[n];const c=(t,s)=>{l.onerror=l.onload=null,clearTimeout(u);const n=e[a];if(delete e[a],l.parentNode?.removeChild(l),n?.forEach(e=>e(s)),t)return t(s)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=c.bind(null,l.onerror),l.onload=c.bind(null,l.onload),i&&document.head.appendChild(l)}})(),s.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const s=t.getElementsByTagName("script");if(s.length){let t=s.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=s[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),s.p=e+"../"})(),(()=>{if("undefined"!=typeof document){var e={134:0};s.f.miniCss=(t,a)=>{e[t]?a.push(e[t]):0!==e[t]&&{639:1}[t]&&a.push(e[t]=(e=>new Promise((t,a)=>{var n=s.miniCssF(e),r=s.p+n;if(((e,t)=>{for(var s=document.getElementsByTagName("link"),a=0;a<s.length;a++){var n=(o=s[a]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(n===e||n===t))return o}var r=document.getElementsByTagName("style");for(a=0;a<r.length;a++){var o;if((n=(o=r[a]).getAttribute("data-href"))===e||n===t)return o}})(n,r))return t();((e,t,a,n,r)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",s.nc&&(o.nonce=s.nc),o.onerror=o.onload=s=>{if(o.onerror=o.onload=null,"load"===s.type)n();else{var a=s&&s.type,l=s&&s.target&&s.target.href||t,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+l+")");i.name="ChunkLoadError",i.code="CSS_CHUNK_LOAD_FAILED",i.type=a,i.request=l,o.parentNode&&o.parentNode.removeChild(o),r(i)}},o.href=t,document.head.appendChild(o)})(e,r,0,t,a)}))(t).then(()=>{e[t]=0},s=>{throw delete e[t],s}))}}})(),(()=>{const e={134:0};s.f.j=(t,a)=>{let n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)a.push(n[2]);else{const r=new Promise((s,a)=>n=e[t]=[s,a]);a.push(n[2]=r);const o=new Error,l=a=>{if(s.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.src;o.message="Loading chunk "+t+" failed.\n("+e+": "+s+")",o.name="ChunkLoadError",o.type=e,o.request=s,o.event=a,n[1](o)}};s.l(s.p+s.u(t),l,"chunk-"+t,t)}};const t=(t,a)=>{let[n,r,o]=a;var l,i,d=0;if(n.some(t=>0!==e[t])){for(l in r)s.o(r,l)&&(s.m[l]=r[l]);o&&o(s)}for(t&&t(a);d<n.length;d++)i=n[d],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},a=globalThis.webpackChunksatakunta_events_blocks||=[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var a=s(87),n=s(845),r=s(790);const o=({showImages:e,showDescription:t,showLocation:s,showKeywords:a,showAudience:n})=>(0,r.jsxs)("div",{className:"event-card event-card--skeleton"+(e?"":" event-card--no-image"),children:[e&&(0,r.jsx)("div",{className:"event-card__image-wrapper simple-skeleton"}),(0,r.jsxs)("div",{className:"event-card__content",children:[(0,r.jsx)("div",{className:"event-card__title simple-skeleton"}),n&&(0,r.jsxs)("ul",{className:"satakunta-tag-list",children:[(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"}),(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"})]}),a&&(0,r.jsxs)("ul",{className:"satakunta-tag-list",children:[(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"}),(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"})]}),(0,r.jsxs)("div",{className:"event-card__meta",children:[(0,r.jsx)("div",{className:"event-card__time simple-skeleton"}),s&&(0,r.jsx)("div",{className:"event-card__location simple-skeleton"})]}),t&&(0,r.jsx)("div",{className:"event-card__description simple-skeleton"})]})]}),l=({showImages:e,showDescription:t,showLocation:s,showKeywords:a,showAudience:n})=>(0,r.jsxs)("div",{className:"event-card event-card--skeleton"+(e?"":" event-card--no-image"),children:[e&&(0,r.jsx)("div",{className:"event-card__image-wrapper simple-skeleton"}),(0,r.jsxs)("div",{className:"event-card__content",children:[(0,r.jsx)("div",{className:"event-card__title simple-skeleton"}),n&&(0,r.jsxs)("ul",{className:"satakunta-tag-list",children:[(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"}),(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"})]}),a&&(0,r.jsxs)("ul",{className:"satakunta-tag-list",children:[(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"}),(0,r.jsx)("li",{className:"satakunta-tag simple-skeleton"})]}),(0,r.jsxs)("div",{className:"event-card__meta",children:[(0,r.jsx)("div",{className:"event-card__time simple-skeleton"}),s&&(0,r.jsx)("div",{className:"event-card__location simple-skeleton"})]}),t&&(0,r.jsx)("div",{className:"event-card__description simple-skeleton"})]})]}
1),i=({displayMode:e="grid",count:t=8,showImages:s=!0,showDescription:a=!0,showLocation:n=!0,showKeywords:i=!1,showAudience:d=!1})=>{const c=Array.from({length:t},(e,t)=>t);return"list"===e?(0,r.jsxs)("div",{className:"simple-skeleton-list","aria-hidden":"true",children:[c.map(e=>(0,r.jsx)(o,{showImages:s,showDescription:a,showLocation:n,showKeywords:i,showAudience:d},e)),(0,r.jsx)("span",{className:"screen-reader-text",children:"Ladataan tapahtumia..."})]}):"classic_grid"===e?(0,r.jsxs)("div",{className:"simple-skeleton-classic-grid","aria-hidden":"true",children:[c.map(e=>(0,r.jsx)(l,{showImages:s,showDescription:a,showLocation:n,showKeywords:i,showAudience:d},e)),(0,r.jsx)("span",{className:"screen-reader-text",children:"Ladataan tapahtumia..."})]}):(0,r.jsxs)("div",{className:"simple-skeleton-grid","aria-hidden":"true",children:[c.map(e=>(0,r.jsx)("div",{className:"simple-skeleton simple-skeleton-card"},e)),(0,r.jsx)("span",{className:"screen-reader-text",children:"Ladataan tapahtumia..."})]})},d=e=>"true"===e||"1"===e||!0===e,c=(e,t=[])=>{if(!e)return t;try{return JSON.parse(e)}catch(e){return t}},u=JSON.parse('{"uK":{"contentType":{"type":"string","default":"events","enum":["events","activities"]},"eventsPerPage":{"type":"number","default":12},"skip":{"type":"number","default":0},"selectedLocations":{"type":"array","default":[]},"keyword":{"type":"string","default":""},"audience":{"type":"string","default":""},"textSearch":{"type":"string","default":""},"language":{"type":"string","default":"fi","enum":["fi","sv","en","de","uk"]},"displayMode":{"type":"string","default":"classic_grid","enum":["grid","classic_grid","list"]},"showImages":{"type":"boolean","default":true},"showDescription":{"type":"boolean","default":true},"showLocation":{"type":"boolean","default":true},"showKeywords":{"type":"boolean","default":false},"showAudience":{"type":"boolean","default":false},"showPagination":{"type":"boolean","default":false},"mobileSlider":{"type":"boolean","default":false},"openInPopup":{"type":"boolean","default":true},"showEventPageLink":{"type":"boolean","default":false},"bbox":{"type":"string","default":""}}}'),m=(0,a.lazy)(()=>Promise.all([s.e(272),s.e(639)]).then(()=>s(639))),p=e=>{if("true"===e.dataset.hydrated)return;const t=(e=>((e,t)=>{const s={};for(const[a,n]of Object.entries(t)){const t=e[a];switch(n.type){case"boolean":s[a]=void 0===t?!!n.default:d(t);break;case"number":s[a]=void 0===t?n.default??0:parseInt(t,10)||n.default||0;break;case"array":case"object":s[a]=c(t,n.default??[]);break;default:s[a]=t??n.default??""}}return s})(e.dataset,u.uK))(e),s=e.id||`events-list-${Math.random().toString(36).slice(2,9)}`;e.id=s,(0,a.createRoot)(e).render((0,r.jsx)(n.A,{children:(0,r.jsx)(a.Suspense,{fallback:(0,r.jsx)(i,{displayMode:t.displayMode,count:t.eventsPerPage,showImages:t.showImages,showDescription:t.showDescription,showLocation:t.showLocation,showKeywords:t.showKeywords,showAudience:t.showAudience}),children:(0,r.jsx)(m,{...t,blockId:s})})})),e.dataset.hydrated="true"},h=()=>{document.querySelectorAll(".wp-block-satakunta-events-list").forEach(p)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h(),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){e.classList?.contains("wp-block-satakunta-events-list")&&p(e);const t=e.querySelectorAll?.(".wp-block-satakunta-events-list");t?.forEach(p)}})})}).observe(document.body,{childList:!0,subtree:!0})})();
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.