PageSourceSearch

https://www.zeiss.com.tr/etc.clientlibs/zeiss-aem-app/jupiter/clie…/EventCalendar.b693d78dbfaa3baa.chunk.js

js zeiss.com.tr collected 2026-10-07 01:53:11 UTC 20,883 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkzeiss_greenfield_aem=self.webpackChunkzeiss_greenfield_aem||[]).push([["90346"],{40650:function(e,t,n){n.d(t,{g:()=>i});let i={locale:"en-EN"}},74358:function(e,t,n){n.d(t,{Z:()=>a});var i=n(6294),s=n(49127),l=n(67294);function a(e,t){let n=(0,l.useRef)();(0,l.useEffect)(()=>{n.current&&e&&i.p8.to(window,{scrollTo:e}),n.current=t},[t])}i.p8.registerPlugin(s.L)},11334:function(e,t,n){n.d(t,{Z:()=>a});var i=n(85893),s=n(94184),l=n.n(s);let a=({use_inline:e})=>(0,i.jsx)("div",{className:l()("loading-spinner",e&&"loading-spinner--inline"),children:(0,i.jsx)("div",{className:"loading-spinner__animation"})})},49389:function(e,t,n){n.d(t,{Z:()=>a});var i=n(85893),s=n(48662),l=n(60266);let a=e=>{let{assets_per_page:t=10,total_assets:n=0,set_current_page:a=()=>void 0,current_page:r=1,label_page:o="",label_of:_="",class_pre_fix:c="",get_label:d}=e,u=[],p=c?`${c}__`:"";for(let e=1;e<=Math.ceil(n/t);e+=1)u.push(e);if(n<t)return null;let g=Math.ceil(n/t);return(0,i.jsxs)("nav",{className:`${p}pagination`,children:[(0,i.jsx)(l.Z,{is_button:!0,class:"first-page",icon:"beyond/16px/GoToFirst",icon_forced_inline:!0,disabled:1===r,aria_label:d("first_page"),onClick:()=>r>1&&a(u[0]),type:"link"}),(0,i.jsx)(l.Z,{is_button:!0,icon:"beyond/16px/ArrowLeft",icon_forced_inline:!0,disabled:1===r,aria_label:d("previous_page"),onClick:()=>r>1&&a(Number(r)-1),type:"link"}),(0,i.jsx)("div",{className:`${p}pagination__list`,children:(0,i.jsxs)("div",{className:`${p}pagination-info`,children:[(0,i.jsx)("span",{children:o}),(0,i.jsx)(s._n,{label:String(r),name:String(r),options:u.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:[t]}),{}),onChange:e=>a(Number(e))}),(0,i.jsxs)("span",{children:[_," ",u.length]})]})}),(0,i.jsx)(l.Z,{is_button:!0,icon:"beyond/16px/ArrowRight",icon_forced_inline:!0,disabled:r===g,aria_label:d("next_page"),onClick:()=>r<u.length&&a(Number(r)+1),type:"link"}),(0,i.jsx)(l.Z,{is_button:!0,icon:"beyond/16px/GoToLast",icon_forced_inline:!0,disabled:r===g,aria_label:d("last_page"),onClick:()=>r<u.length&&a(u.length),type:"link"})]})}},81893:function(e,t,n){n.d(t,{Z:()=>l});var i=n(85893),s=n(11334);let l=({count:e=0,is_requesting:t=!0,has_request_error:n=!1,get_label:l})=>
1{if(t)return(0,i.jsxs)("div",{className:"result-info__loading",children:[(0,i.jsx)("div",{className:"result-info__loading-label",children:l("loading_data")}),(0,i.jsx)("div",{className:"result-info__loading-spinner",children:(0,i.jsx)(s.Z,{use_inline:!0})})]});if(n)return(0,i.jsx)("div",{className:"result-info__error",children:l("loading_error")});return(0,i.jsxs)("div",{className:"result-info",children:[l("results_found")," ",(0,i.jsx)("span",{className:"result-info__results",children:1===e?`${e} ${l("result")}`:`${e} ${l("results")}`})]})}},61873:function(e,t,n){n.d(t,{Z:()=>r});var i=n(85893),s=n(94184),l=n.n(s),a=n(75373);let r=({content:e="",fragment:t,text_type:n,class_name:s,is_content_html:r=!1})=>{let o=l()("text",n&&`text--${n}`,s);return r&&(null==e?void 0:e.length)?(0,i.jsx)("div",{className:o,dangerouslySetInnerHTML:{__html:a.Z.sanitize(e)}}):(0,i.jsx)("div",{className:o,children:e||t})}},97357:function(e,t,n){n.d(t,{Z:()=>o});var i=n(85893),s=n(60266),l=n(94184),a=n.n(l),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>t.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n};function o(e){let{is_collapsed:t=!1,label_override:n,get_label:l=e=>e,label_collapsed:o="",label_expanded:_="",module_section:c,module_type:d,auto_tracking:u}=e,p=r(e,["is_collapsed","label_override","get_label","label_collapsed","label_expanded","module_section","module_type","auto_tracking"]),g=null!=n?n:l(t?"button_toggle_more":"button_toggle_less");return(0,i.jsx)("div",{"data-module":"ButtonToggle","data-label-expanded":_,"data-label-collapsed":o,className:a()("button-toggle",t?"button-toggle--collapsed":"button-toggle--expanded"),children:(0,i.jsx)(s.Z,Object.assign({label:g,icon:"expand-more",render_selectors:!0,is_button:!0,type:"link",data_js_select:"ButtonToggle_button",auto_tracking:u,event_name:"Functional",event_type:"",module_type:d,module_section:c},p))})}},59145:function(e,t,n){n.r(t),n.d(t,{default:()=>B});var i,s,l,a,r=n(85893),o=n(53062),_=n(89665),c=n(40650);(i=l||(l={})).SET_VIEWPORT="SET_VIEWPORT",i.SET_INITIAL_FILTER_VALUES="SET_FILTER_INITIAL_VALUES",i.SET_FILTER_VALUES="SET_FILTER_VALUES",i.SET_FILTER_OPTIONS="SET_FILTER_OPTIONS",i.SET_FILTER_OPTIONS_LOADING="SET_FILTER_OPTIONS_LOADING",i.SET_FILTER_OPTIONS_LOADING_ERROR="SET_FILTER_OPTIONS_LOADING_ERROR",i.SET_EVENTS="SET_EVENTS",i.SET_EVENTS_LOADING="SET_EVENTS_LOADING",i.SET_EVENTS_LOADING_ERROR="SET_EVENTS_LOADING_ERROR",i.SET_ARE_EVENTS_LOADED="SET_ARE_EVENTS_LOADED",(s=a||(a={})).MOBILE="MOBILE",s.TABLET="TABLET",s.DESKTOP="DESKTOP";let d={app:{context:"",hide_division:!1,labels:{},url_endpoint_events:"",url_endpoint_filters:"",locale:c.g.locale,are_filters_initialized:!1},event:{is_requesting:!1,has_request_error:!1,events:[],events_count:0,is_collapsed:!0},filter_options:{options_country:[],options_division:[],options_month:[],options_year:[],is_requesting:!1,has_request_error:!1},filter_values:{selected_country:"",selected_division:"",selected_month:"",selected_year:""},filter_initial_values:{initial_country:"",initial_division:"",initial_month:"",initial_year:""}},u=(e,t)=>{var n,i,s;return{app:(n=e.app,t.type===l.SET_FILTER_OPTIONS?Object.assign(Object.assign({},n),{are_filters_initialized:!0}):n),event:((e,t)=>{var n,i,s;if(t.type===l.SET_EVENTS){let l=null!=(s=null==(i=null==(n=t.payload)?void 0:n.events)?void 0:i.filter(e=>!(e=>{let t=new Date;t.setHours(0,0,0,0);let n=new Date(e.start);if(n.setHours(0,0,0,0),e.start&&e.end){let n=new Date(e.end);return n.setHours(0,0,0,0),n.getTime()<t.getTime()}return n.getTime()<t.getTime()})(e)))?s:[];return Object.assign(Object.assign(Object.assign(Object.assign({},e),{is_requesting:!1,has_request_error:!1}),t.payload),{events:l,events_count:l.length})}return t.type===l.SET_EVENTS_LOADING?Object.assign(Object.assign({},e),{is_requesting:!0,has_request_error:!1}):t.type===l.SET_EVENTS_LOADING_ERROR?Object.assign(Object.assign({},e),{is_requesting:!1,has_request_error:!0}):Object.assign({},e)})(e.event,t),filter_initial_values:((e,t)=>{if(t.type===l.SET_INITIAL_FILTER_VALUES){let{selected_month:n,selected_year:i,selected_division:s,selected_country:l}=t.payload;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),(n||""===n)&&{initial_month:n}),(i||""===i)&&{initial_year:i}),(s||""===s)&&{initial_division:s}),(l||""===l)&&{initial_country:l})}return e})(e.filter_initial_values,t),filter_values:(i=e.filter_values,t.type===l.SET_FILTER_VALUES||t.type===l.SET_INITIAL_FILTER_VALUES?Object.assign(Object.assign({},i),t.payload):i),filter_options:(s=e.filter_options,t.type===l.SET_FILTER_OPTIONS?Object.assign(Object.assign(Object.assign({},s),t.payload),{is_requesting:!1,has_request_error:!1}):t.type===l.SET_FILTER_OPTIONS_LOADING?Object.assign(Object.assign({},s),{is_requesting:!0,has_request_error:!1}):t.type===l.SET_FILTER_OPTIONS_LOADING_ERROR?Object.assign(Object.assign({},s),{is_requesting:!1,has_request_error:!0}):s)}};var p=n(20745),g=n(67294);let v=g.createContext(void 0),f=e=>t=>(0,r.jsx)(v.Consumer,{children:n=>(0,r.jsx)(e,Object.assign({},t,n))}),h=e=>t=>e[t]||"LABEL MISSING";
1var m=function(e,t,n,i){return new(n||(n=Promise))(function(s,l){function a(e){try{o(i.next(e))}catch(e){l(e)}}function r(e){try{o(i.throw(e))}catch(e){l(e)}}function o(e){var t;e.done?s(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,r)}o((i=i.apply(e,t||[])).next())})};function j(e,t){return m(this,void 0,void 0,function*(){let n=Object.keys(e).map(t=>`${t}=${e[t]}`),i=t.replace("{FILTERS}",n.join("&")),{events:s,total:l}=yield fetch(i).then(e=>e.json());return{events:[...s],events_count:l,is_requesting:!1,has_request_error:!1}})}var E=n(49389),b=n(5233),O=n(94184),T=n.n(O),y=n(74358),x=n(90105);let S=(e,t,n,i,s,l,a)=>{x.Z.push_event({name:e,type:t,action:n,value:i,detail:s,moduleSection:null!=a?a:"",moduleType:null!=l?l:""})};var N=n(61873),I=n(60266);let L=e=>{try{return new URL(null!=e?e:""),!0}catch(e){return!1}};var R=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>t.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n};let A=f(e=>{let{get_label:t,headline:n,link:i,meta_data:s}=e,{aria_label:l,href:a}=i,o=R(i,["aria_label","href"]);return n.headline_type="m",(0,r.jsx)("div",{className:"event-calendar-item__column",children:(0,r.jsxs)("div",{className:"event-calendar-item__content",children:[n&&(0,r.jsx)(b.Z,Object.assign({},n)),s&&(0,r.jsx)("div",{className:"event-calendar-item__text",children:(0,r.jsx)(N.Z,Object.assign({},s,{text_type:"body-l"}))}),i&&L(i.href)&&(0,r.jsx)(I.Z,Object.assign({},o,{aria_label:l,className:"event-calendar-item__content-link",href:a,icon:(e=>{if(e&&L(e)){let[t,n,i]=new URL(e).hostname.split(".").reverse();return"zeiss"===(i&&-1===["co","com"].indexOf(t)&&("com"===n||"co"===n)?i:n).toLowerCase()}return!1})(i.href)?"internal-link":"external-link",label:t("more_information"),type:"link"}))]})})}),V=({event:e,module_section:t,module_type:n})=>{let i=e.date,s=e.name,l=e.location,a=e.countryname,o=e.urls.length>0?e.urls[0]:"",_=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:i}),", ",(0,r.jsx)("span",{children:(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{children:l}),", ",(0,r.jsx)("span",{children:a})]})})]});return(0,r.jsx)(A,Object.assign({},{headline:{main:s,item_prop:"name"},link:{label:o,href:o,aria_label:s,is_onclick_default_prevented:!1,onClick:()=>{S("CTA","Event","Click",s,o,n,t)}},meta_data:{fragment:_}}))},D=({get_label:e})=>{let t={main:e("on_going_events")};return(0,r.jsx)(b.Z,Object.assign({headline_type:"l"},t))},w=f(({events:e=[],pagination_counter:t=1,state:n,get_label:i})=>{let{is_requesting:s}=n.event,{module_section:l,module_type:a}=n.app;return 1===t&&!s&&e.length>0?(0,r.jsxs)(r.Fragment,{children:[!!e.length&&(0,r.jsx)(D,{get_label:i}),(0,r.jsx)("div",{className:"grid__column event-calendar-event-list__item",children:e.map(e=>(0,r.jsx)("div",{className:"event-calendar-item spacing--m",children:(0,r.jsx)(V,{event:Object.assign({},e),module_type:a,module_section:l})},`event-item_${e.id}`))})]}):""}),F=({get_label:e,pagination_counter:t})=>{let n={main:e("up_coming_events")};return 1===t?(0,r.jsx)(b.Z,Object.assign({headline_type:"l"},n)):""},C=f(({events:e,pagination_counter:t,state:n,get_label:i})=>{let{module_section:s,module_type:l}=n.app;return(0,r.jsxs)(r.Fragment,{children:[!!e.length&&(0,r.jsx)(F,{get_label:i,pagination_counter:t}),(0,r.jsx)("div",{className:"grid__column event-calendar-event-list__item",children:e.map(e=>(0,r.jsx)("div",{className:"event-calendar-item spacing--m",children:(0,r.jsx)(V,{event:Object.assign({},e),module_type:l,module_section:s})},`event-item_${e.id}`))})]})}),P=f(e=>{let{pagination_counter:t,events_displayed:n,ongoing_events:i,upcoming_events:s,has_load_more:l,action_load_more:a}=(e=>{let{state:t}=e,{events:n,is_requesting:i}=t.event,[s,l]=(0,g.useState)(1);(0,y.Z)(document.querySelector('[data-module="EventCalendar"]'),s),(0,g.useEffect)(()=>
1{l(1)},[i]);let a=((e,t)=>{let n,i=10*(t-1);return n=10+i,(null==e?void 0:e.slice(i,n))||[]})(n,s),r=a.filter(e=>(e=>{let t=new Date;t.setHours(0,0,0,0);let n=new Date(e.start);if(n.setHours(0,0,0,0),e.start&&e.end){let i=new Date(e.end);return i.setHours(0,0,0,0),n.getTime()===t.getTime()||i.getTime()===t.getTime()||n.getTime()<t.getTime()&&i.getTime()>t.getTime()}return n.getTime()===t.getTime()})(e)),o=a.filter(e=>(e=>{let t=new Date;t.setHours(0,0,0,0);let n=new Date(e.start);return n.setHours(0,0,0,0),n.getTime()>t.getTime()})(e));return{pagination_counter:s,events_displayed:a,ongoing_events:r,upcoming_events:o,has_load_more:n&&a&&n.length>10&&a.length<n.length,action_load_more:e=>{l(e)}}})(e),{state:o,get_label:_}=e,{events_count:c,is_requesting:d}=o.event,{module_type:u,module_section:p}=o.app;return(0,g.useEffect)(()=>{S("Event","Search Page","View","Page Number",`${t}`,u,p)},[t]),(0,r.jsxs)("div",{className:T()("event-calendar-event-list",d&&"event-calendar-event-list--loading"),children:[(0,r.jsx)("div",{className:"event-calendar-event-list__loading",children:!d&&n&&n.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{events:i,pagination_counter:t}),(0,r.jsx)(C,{events:s,pagination_counter:t})]}):(0,r.jsx)(b.Z,{headline_type:"l",main:_("no_results_headline"),sub:_("no_results_tagline"),sub_headline_type:"s",alignment:"center",headline_classes:"spacing--s",class:"headline-filter"})}),!d&&l&&(0,r.jsx)(E.Z,{assets_per_page:10,total_assets:c,set_current_page:e=>{a(e)},current_page:t,label_of:_("of"),label_page:_("page"),class_pre_fix:"downloads-filter",get_label:_})]})});var k=n(48662),q=n(81893),Z=n(97357),G=n(25317),$=n(6294);let U=f(function({state:e,dispatch:t,get_label:n}){let{initial_country:i,initial_division:s,initial_month:a,initial_year:o}=e.filter_initial_values;return(0,r.jsx)(I.Z,{is_button:!0,label:n("reset_filters"),icon:"beyond/16px/Refresh",icon_forced_inline:!0,type:"link",onClick:()=>{t({type:l.SET_FILTER_VALUES,payload:{selected_country:i,selected_division:s,selected_month:a,selected_year:o}})}})}),M=f(e=>{let{state:t,dispatch:n,get_label:i}=e,{app:s,filter_options:a,filter_values:o}=t,[_,c]=(0,g.useState)(!1),[d,u]=(0,g.useState)(i("hide_filters")),p=(0,g.useRef)(null),{selected_country:v,selected_division:f,selected_month:h,selected_year:m}=o,{options_country:E,options_division:O,options_month:y,options_year:x}=a,{are_filters_initialized:N,hide_division:I,url_endpoint_events:L,context:R,module_section:A,module_type:V}=s,D={ease:G.Lp.easeInOut,duration:.5},w=e=>t=>{S("Filter",e,"Select",t,"",V,A),n({type:l.SET_FILTER_VALUES,payload:{[e]:t}})};return(0,g.useEffect)(()=>{N&&(n({type:l.SET_EVENTS_LOADING}),j({country:v.toUpperCase(),division:f.toUpperCase(),month:h,year:m,context:R},L).then(e=>{n({type:l.SET_EVENTS,payload:Object.assign({},e)})}).catch(()=>{n({type:l.SET_EVENTS_LOADING_ERROR})}))},[v,f,h,m]),(0,r.jsxs)("div",{className:"event-calendar-filters",children:[(0,r.jsx)("div",{className:"event-calendar-filters__headline",children:(0,r.jsx)(b.Z,{main:i("filter_headline"),headline_type:"xs"})}),(0,r.jsx)("div",{className:"event-calendar-filters__filter-container",ref:p,children:(0,r.jsxs)("div",{className:T()("event-calendar-filters__structure grid__structure",I&&"grid__structure--three-columns"),children:[E&&E.length>0&&(0,r.jsx)("div",{className:"event-calendar-filters__column",children:(0,r.jsx)(k._n,{name:"event-country",label:i("filter_field_country_label"),options:E.reduce((e,t)=>Object.assign(Object.assign({"":i("not_set_country")},e),{[t.id]:t.name}),{})||{},value:v,onChange:w("selected_country")})}),!I&&O&&O.length>0&&(0,r.jsx)("div",{className:"event-calendar-filters__column",children:(0,r.jsx)(k._n,{name:"event-division",label:i("filter_field_division_label"),options:O.reduce((e,t)=>Object.assign(Object.assign({"":i("not_set_division")},e),{[t.id]:t.name}),{})||{},value:f,onChange:w("selected_division")})}),y&&y.length>0&&(0,r.jsx)("div",{className:"event-calendar-filters__column",children:(0,r.jsx)(k._n,{name:"event-month",label:i("filter_field_month_label"),options:y.reduce((e,t)=>
1Object.assign(Object.assign({"":i("not_set_month")},e),{[t]:`${t}`}),{})||{},value:h,onChange:w("selected_month")})}),x&&x.length>0&&(0,r.jsx)("div",{className:"event-calendar-filters__column",children:(0,r.jsx)(k._n,{name:"event-year",label:i("filter_field_year_label"),options:x.reduce((e,t)=>Object.assign(Object.assign({"":i("not_set_year")},e),{[t]:`${t}`}),{})||{},value:m,onChange:w("selected_year")})})]})}),(0,r.jsx)("div",{className:"event-calendar-filters__toggler",children:(0,r.jsx)(Z.Z,{label_override:d,is_collapsed:_,get_label:i,onClick:()=>{_?(u(i("hide_filters")),$.p8.to(p.current,Object.assign(Object.assign({},D),{height:"auto"})),window.setTimeout(()=>{var e;null==(e=null==p?void 0:p.current)||e.style.setProperty("overflow","unset")},500)):(u(i("show_filters")),$.p8.to(p.current,Object.assign(Object.assign({},D),{height:0,overflow:"hidden"}))),c(!_)}})}),(0,r.jsxs)("div",{className:"event-calendar-filters__actions-container",children:[(0,r.jsx)("div",{className:"event-calendar-filters__actions",children:(0,r.jsx)(q.Z,{count:t.event.events_count,is_requesting:t.event.is_requesting,has_request_error:t.event.has_request_error,get_label:i})}),Object.values(t.filter_values).filter(e=>Object.keys(e).length>0).length>0&&!t.event.is_requesting&&(0,r.jsx)("div",{className:"event-calendar-filters__actions event-calendar-filters__actions-reset-filter",children:(0,r.jsx)(U,{})})]})]})}),H=e=>{let{initial_config:t}=e,{labels:n}=t.app,{initial_country:i,initial_division:s,initial_month:a,initial_year:o}=t.filter_initial_values,[_,c]=(0,g.useReducer)(u,Object.assign(Object.assign({},d),{app:Object.assign(Object.assign({},d.app),t.app),filter_initial_values:Object.assign(Object.assign({},d.filter_initial_values),t.filter_initial_values),filter_values:{selected_country:i,selected_division:s,selected_month:a,selected_year:o}})),{url_endpoint_events:p,url_endpoint_filters:f,locale:E,context:b,are_filters_initialized:O}=_.app,[T,y]=(0,g.useState)(!0),{selected_month:x,selected_year:S,selected_country:N}=_.filter_values,{events_count:I,is_requesting:L}=_.event;(0,g.useEffect)(()=>{p&&f&&(c({type:l.SET_FILTER_OPTIONS_LOADING}),c({type:l.SET_EVENTS_LOADING}),m(void 0,void 0,void 0,function*(){let e=`${f}?lang=${E.split("-")[0]}`;return function(e){let t=new Date().getFullYear(),n=[],i=[];for(let e=0;e<2;e+=1)n.push(t+e);for(let e=1;e<=12;e+=1)i.push(e);return{options_country:[...(null==e?void 0:e.countries)||[]].sort((e,t)=>{var n;return null==(n=null==e?void 0:e.name)?void 0:n.localeCompare(t.name)})||[],options_division:[...(null==e?void 0:e.categories)||[]].sort((e,t)=>{var n;return null==(n=null==e?void 0:e.name)?void 0:n.localeCompare(t.name)})||[],options_month:i,options_year:n}}((yield fetch(e).then(e=>e.json())))}).then(e=>{c({type:l.SET_FILTER_OPTIONS,payload:Object.assign({},e)}),j({country:i.toUpperCase(),division:s.toUpperCase(),month:a,year:o,locale:E.split("-")[0],context:b},p).then(e=>{c({type:l.SET_EVENTS,payload:Object.assign({},e)})}).catch(()=>{c({type:l.SET_EVENTS_LOADING_ERROR})})}).catch(()=>{c({type:l.SET_FILTER_OPTIONS_LOADING_ERROR})}))},[]),(0,g.useEffect)(()=>{!1===L&&T&&O&&(0===I?""!==x?c({type:l.SET_INITIAL_FILTER_VALUES,payload:{selected_month:""}}):""!==S?c({type:l.SET_INITIAL_FILTER_VALUES,payload:{selected_year:""}}):""!==N&&c({type:l.SET_INITIAL_FILTER_VALUES,payload:{selected_country:""}}):y(!1))},[L]);let R=(0,g.useMemo)(()=>({state:_,dispatch:c,get_label:h(n)}),[_,c,h]);return(0,r.jsxs)(v.Provider,{value:R,children:[(0,r.jsx)(M,{}),(0,r.jsx)(P,{})]})},z=class extends _.hp{constructor(e){super(e),this._render_app=()=>{var e;let t=this._$node.querySelector("[data-app]"),n=this._$node.querySelector('[data-js-select="EventCalendar_app"]'),i=null==(e=null==n?void 0:n.querySelector('[data-js-select="EventCalendar_labels"]'))?void 0:e.innerText,s=(0,o.Z)(i);if(t){let e=Object.assign({initialValueCountry:"",initialValueDivision:"",initialValueMonth:"",initialValueYear:"",urlEvents:"",urlMeta:"",hideDivision:!1,locale:"de-DE",context:"",moduleType:void 0,moduleSection:void 0},n&&n.dataset);(0,p.createRoot)(t).render((0,r.jsx)(H,{initial_config:Object.assign(Object.assign({},d),{app:Object.assign(Object.assign({},d.app),{url_endpoint_events:e.urlEvents,url_endpoint_filters:e.urlMeta,hide_division:!!e.hideDivision,locale:e.locale,context:e.context,labels:null!=s?s:{},module_type:e.moduleType,module_section:e.moduleSection,are_filters_initialized:!1}),filter_initial_values:{initial_country:e.initialValueCountry.toUpperCase(),initial_division:e.initialValueDivision.toUpperCase(),initial_month:e.initialValueMonth,initial_year:e.initialValueYear}})}))}},this._$node=e}connect(e){super.connect(e)}loaded(e){super.loaded(e),this._render_app()}disconnect(e){super.disconnect(e)}},B=z=function(e,t,n,i){var s,l=arguments.length,a=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(l<3?s(a):l>3?s(t,n,a):s(t,n))||a);return l>3&&a&&Object.defineProperty(t,n,a),a}([_.lE.register("EventCalendar")],z)}}]);

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.