PageSourceSearch

https://www.zeiss.com.hk/etc.clientlibs/zeiss-aem-app/jupiter/clie…LocationDirection.9eb4c5efbd509967.chunk.js

js zeiss.com.hk collected 2026-09-25 03:11:09 UTC 47,970 bytes, 21 lines download raw bytes

1"use strict";(self.webpackChunkzeiss_greenfield_aem=self.webpackChunkzeiss_greenfield_aem||[]).push([["74252"],{40650:function(e,t,n){n.d(t,{g:()=>i});let i={locale:"en-EN"}},23918:function(e,t,n){n.d(t,{j:()=>i.j,y:()=>i.y});var i=n(25044)},25044:function(e,t,n){n.d(t,{j:()=>a,y:()=>l});var i=n(85893),o=n(85429),s=n(67294),r=n(49725);let a={MOBILE:"mobile",TABLET:"tablet",DESKTOP:"desktop"},l=e=>(0,s.forwardRef)((t,n)=>{let{width:s}=(0,r.Z)(e=>{var t;let n=o.Z.breakpoint_by_name("m"),i=o.Z.breakpoint_by_name("l"),s=(null==(t=null==e?void 0:e.target)?void 0:t.innerWidth)||window.innerWidth||0;return s>=i?a.DESKTOP:s>=n&&s<i?a.TABLET:a.MOBILE});return(0,i.jsx)(e,Object.assign({},t,{breakpoint:s,ref:n}))})},26184:function(e,t,n){n.d(t,{z:()=>i});let i=e=>t=>e[t]||"LABEL MISSING"},11334:function(e,t,n){n.d(t,{Z:()=>r});var i=n(85893),o=n(94184),s=n.n(o);let r=({use_inline:e})=>(0,i.jsx)("div",{className:s()("loading-spinner",e&&"loading-spinner--inline"),children:(0,i.jsx)("div",{className:"loading-spinner__animation"})})},81893:function(e,t,n){n.d(t,{Z:()=>s});var i=n(85893),o=n(11334);let s=({count:e=0,is_requesting:t=!0,has_request_error:n=!1,get_label:s})=>{if(t)return(0,i.jsxs)("div",{className:"result-info__loading",children:[(0,i.jsx)("div",{className:"result-info__loading-label",children:s("loading_data")}),(0,i.jsx)("div",{className:"result-info__loading-spinner",children:(0,i.jsx)(o.Z,{use_inline:!0})})]});if(n)return(0,i.jsx)("div",{className:"result-info__error",children:s("loading_error")});return(0,i.jsxs)("div",{className:"result-info",children:[s("results_found")," ",(0,i.jsx)("span",{className:"result-info__results",children:1===e?`${e} ${s("result")}`:`${e} ${s("results")}`})]})}},61873:function(e,t,n){n.d(t,{Z:()=>a});var i=n(85893),o=n(94184),s=n.n(o),r=n(75373);let a=({content:e="",fragment:t,text_type:n,class_name:o,is_content_html:a=!1})=>{let l=s()("text",n&&`text--${n}`,o);return a&&(null==e?void 0:e.length)?(0,i.jsx)("div",{className:l,dangerouslySetInnerHTML:{__html:r.Z.sanitize(e)}}):(0,i.jsx)("div",{className:l,children:e||t})}},57167:function(e,t,n){n.d(t,{Z:()=>r});var i=n(85893),o=n(94184),s=n.n(o);function r({type:e,spacing:t,line:n=!0}){let o=s()("divider-line",{"divider-line--dark":"dark"===e,[`divider-line--spacing-${t}`]:t,"divider-line--no-line":!n});return(0,i.jsx)("div",{className:"divider",children:n?(0,i.jsx)("hr",{className:o}):(0,i.jsx)("div",{className:o,"aria-hidden":"true"})})}},29384:function(e,t,n){n.r(t),n.d(t,{default:()=>d});var i,o=n(89665),s=n(49154),r=n(90105);let a={name:"Functional",type:"Overlay",action:"Shown",value:"",detail:"",moduleSection:"",moduleType:"Language Switch Overlay"},l={name:"CTA",type:"Switch to alternate language",action:"Click",value:"Switch to web page",detail:"",moduleSection:"",moduleType:"Language Switch Overlay"},c=i=class extends o.hp{constructor(){super(...arguments),this.$node=null,this.$language_switch_overlay_wrapper=null,this.$headline=null,this.$richtext=null,this.$close_button=null,this.available_languages=null,this.page_in_other_languages_data={},this.languages_set=new Set,this.ot_listener_added=!1,this.handle_backdrop_click=e=>{if(!this.$node)return;let t=this.$node.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&this.close_modal()},this.initialize_language_overlay=()=>{this.set_tracking_info(a),window.addEventListener(s.q5,e=>{this.set_tracking_info(a)}),this.open_modal()},this.can_show_modal=(e,t)=>!(![i.user_language,i.user_language_and_country].some(e=>this.languages_set.has(e))||localStorage.getItem("language_chosen"))&&e!==t,this.close_and_reopen_dialog_after_consent_update=()=>{var e;i.is_cookie_consent_open()&&(null==(e=this.$node)||e.close(),window.addEventListener(s.q5,this.open_modal,{once:!0}))},this.set_tracking_info=e=>{var t;(null==(t=this.$node)?void 0:t.open)&&r.Z.push_event(Object.assign({},e))}}connect(e){super.connect(e),this.close_modal=this.close_modal.bind(this)}loaded(e){var t,n;super.loaded(e),this.$node=e,this.$headline=e.querySelector('[data-js-select="LanguageSwitchOverlay_headline"]'),this.$richtext=e.querySelector('[data-js-select="LanguageSwitchOverlay_message"]'),this.$close_button=e.querySelector('[data-js-select="LanguageSwitchOverlay_close_button"]'),this.available_languages=e.querySelector('[data-js-select="LanguageSwitchOverlay_data"]'),this.page_in_other_languages_data=JSON.parse(null!=(n=null==(t=this.available_languages)?void 0:t.textContent)?n:"{}"),this.languages_set=new Set(Object.keys(this.page_in_other_languages_data)),this.$node.addEventListener("click",e=>this.handle_backdrop_click(e)),i.is_cookie_consent_open()?window.addEventListener(s.q5,this.initialize_language_overlay,{once:!0}):this.initialize_language_overlay()}fill_overlay_content(e){this.$headline&&(this.$headline.textContent=e.headline),this.$richtext&&(this.$richtext.innerHTML=e.richtext)}get use_language_and_country(){return this.languages_set.has(i.user_language_and_country)}static get user_language(){return(window.userdata?window.userdata.language:navigator.language.split("-")[0]).toLowerCase()}static get user_language_and_country(){return(window.userdata?`${window.userdata.language}-${window.userdata.country}`:navigator.language).toLowerCase()}static get page_language(){return document.documentElement.lang.split("-")[0].toLowerCase()}static get page_language_and_country(){return document.documentElement.lang.toLowerCase()}close_modal(){var e,t,n;null==(e=this.$node)||e.close("dismiss"),localStorage.setItem("language_chosen","true"),(null==(t=this.$richtext)?void 0:t.querySelector("a")).removeEventListener("click",()=>this.set_tracking_info),null==(n=this.$close_button)||n.removeEventListener("click",this.close_modal)}open_modal(){var e,t,n;if(!this.$node)return;let o=i.user_language,s=i.page_language;if(this.use_language_and_country&&(o=i.user_language_and_country,s=i.page_language_and_country),this.can_show_modal(o,s)){let i=null==(e=this.page_in_other_languages_data)?void 0:e[o];this.fill_overlay_content(i),this.$node.showModal();let s=null==(t=this.$richtext)?void 0:t.querySelector("a");
1s&&(s.focus(),s.addEventListener("click",()=>{this.set_tracking_info(Object.assign(Object.assign({},l),{detail:s.href}))})),null==(n=this.$close_button)||n.addEventListener("click",this.close_modal)}}static is_cookie_consent_open(){var e;return window.Optanon&&!(null==(e=window.Optanon)?void 0:e.IsAlertBoxClosed())}disconnect(e){var t;super.disconnect(e),null==(t=this.$close_button)||t.removeEventListener("click",this.close_modal),window.removeEventListener(s.q5,this.open_modal),window.removeEventListener(s.q5,()=>this.set_tracking_info),this.ot_listener_added&&window.removeEventListener(s._m,this.close_and_reopen_dialog_after_consent_update)}},d=c=i=function(e,t,n,i){var o,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,n,r):o(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r}([o.lE.register("LanguageSwitchOverlay")],c)},49154:function(e,t,n){n.d(t,{Bo:()=>_,N4:()=>r,_m:()=>a,q5:()=>l,ye:()=>d,yp:()=>u});var i=n(68117),o=n(85429),s=n(32303);let r={VIMEO:"V17",YOUTUBE:"V20",WISTIA:"V65",WALLSIO:"V66",GOOGLE_MAPS:"V67",BAIDU_MAPS:"V67",BUZZSPROUT:"V98",VISME:"V103",TOURIAL:"V128"},a="OneTrustLoaded",l="OneTrustGroupsUpdated",c=!1;function d(e){let t=window.OnetrustActiveGroups;return!!t&&t.split(",").includes(e)}function u(e,t,n){let i=e.querySelector('[data-module="ConsentOverlay"]');if(i){let e=(0,s.Oi)(i);"hide"===n?e.hide():(e.set_consent_types([t]),e.show())}}function _(){var e;null==(e=window.Optanon)||e.ToggleInfoDisplay()}if(!o.Z.aem_edit_mode){let e=document.querySelector("body"),t=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)if(1===e.nodeType&&"onetrust-consent-sdk"===e.id&&!c){let e=document.getElementById("onetrust-accept-btn-handler"),t=document.getElementById("accept-recommended-btn-handler"),n=document.getElementsByClassName("save-preference-btn-handler")[0];e&&t&&n&&(c=!0),(0,i.Z)(a)}});!c&&e?t.observe(e,{attributes:!0,childList:!0,subtree:!1}):t.disconnect()}},9306:function(e,t,n){let i;n.r(t),n.d(t,{default:()=>ej});var o,s,r,a,l=n(85893),c=n(53062),d=n(89665),u=n(49154),_=n(20745),p=n(23918),h=n(26184),g=n(67294);let m=g.createContext(void 0),f=e=>t=>(0,l.jsx)(m.Consumer,{children:n=>(0,l.jsx)(e,Object.assign({},t,n))});(o=r||(r={})).MOBILE="mobile",o.TABLET="tablet",o.DESKTOP="desktop",(s=a||(a={})).SET_APP_STATE="SET_APP_STATE",s.SET_FORM_INITIAL_SELECTION="SET_FORM_INITIAL_SELECTION",s.SET_FORM_SELECTION="SET_FORM_SELECTION",s.SET_FORM="SET_FORM",s.SET_LOCATION_SELECTION="SET_LOCATION_SELECTION",s.SET_LOCATIONS="SET_LOCATIONS";var v=n(64707);let y="BAIDU",x=v.Z.interaction.link,w=v.Z.interaction.hover,E=v.Z.interaction.focused,S={width:"100%",height:"100%"};var b=function(e,t,n,i){return new(n||(n=Promise))(function(o,s){function r(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((i=i.apply(e,t||[])).next())})};let O={app:{is_viewport_mobile:!1,is_consent_allowed_maps:!1,url_endpoint_selection:"",url_endpoint_locations:"",url_endpoint_vcard:"",locale:n(40650).g.locale,ccm_button:"",ccm_headline:"",ccm_text:"",map_provider:"",module_section:"",module_type:""},form:{is_requesting:!1,has_request_error:!1,regions_country_list:{},options_regions:{},options_countries:{},options_units:{}},form_initial_selection:{language:void 0,region:void 0,country:void 0,unit:void 0},form_selection:{language:void 0,region:void 0,country:void 0,unit:void 0},location_selection:{location_id_selected:void 0,location_id_hovered:void 0,is_location_selected:!1,is_location_hovered:!1,location_id_scroll_to:void 0,should_update_map_center:!1},locations:{is_requesting:!1,has_request_error:!1,locations:[],location_count:0}},j=(e,t)=>{var n,i,o,s,r,l;return{app:(n=e.app,"SET_APP_STATE"===t.type?Object.assign(Object.assign({},n),t.payload):n),form:(i=e.form,t.type===a.SET_FORM?Object.assign(Object.assign({},i),t.payload):i),form_initial_selection:(o=e.form_initial_selection,t.type===a.SET_FORM_INITIAL_SELECTION?Object.assign(Object.assign({},o),t.payload):o),form_selection:(s=e.form_selection,t.type===a.SET_FORM_SELECTION?Object.assign(Object.assign({},s),t.payload):s),locations:(r=e.locations,t.type===a.SET_LOCATIONS?Object.assign(Object.assign({},r),t.payload):r),location_selection:(l=e.location_selection,t.type===a.SET_LOCATION_
1SELECTION?Object.assign(Object.assign({},l),t.payload):l)}};var k=n(48662),C=n(11334),T=n(5233),L=n(90105);let N=f(function({get_label:e,state:t,dispatch:n}){let{form:i,form_selection:o,app:s}=t,{options_regions:r,options_countries:c,options_units:d,regions_country_list:u,is_requesting:_,has_request_error:p}=i,{region:h="",country:m="",unit:f="",language:v=""}=o,{module_type:y="",module_section:x="",url_endpoint_locations:w}=s,E=(e,t)=>{L.Z.push_event({name:"Filter",type:e,action:"Select",value:t,detail:"",moduleSection:x,moduleType:y})};return(0,g.useEffect)(()=>{if(h&&(null==u?void 0:u[h])){let e=u[h];n({type:a.SET_FORM,payload:{options_countries:e}}),m&&!e[m]&&n({type:a.SET_FORM_SELECTION,payload:{country:Object.keys(e)[0]}})}},[h]),(0,g.useEffect)(()=>{n({type:a.SET_LOCATIONS,payload:{is_requesting:!0,has_request_error:!1}}),(function(e){return b(this,arguments,void 0,function*({url:e,language:t,region:n,country:i,unit:o}){let s=e;if(s){s=(s=(s=(s=s.replace("{LANG}",t)).replace("{REGION}",n)).replace("{COUNTRY}",i)).replace("{AREA}",o);try{let e=yield fetch(s).then(e=>e.json());if(e)return{locations:e.contact.map((e,t)=>Object.assign(Object.assign({},e),{numbering:t+1})),location_count:e.total}}catch(e){}}})})({url:w,language:v,region:h,country:m,unit:f}).then(e=>{if(e){let{locations:t,location_count:i}=e;n({type:a.SET_LOCATIONS,payload:{is_requesting:!1,has_request_error:!1,location_count:i,locations:t}}),n({type:a.SET_LOCATION_SELECTION,payload:{location_id_selected:void 0,location_id_hovered:void 0,is_location_selected:!1,is_location_hovered:!1}})}else n({type:a.SET_LOCATIONS,payload:{is_requesting:!1,has_request_error:!0}})})},[h,m,f]),(0,l.jsx)("div",{className:"location-direction-form",children:(0,l.jsxs)("div",{className:"location-direction-form__content",children:[_&&(0,l.jsx)("div",{className:"location-direction-form__loading",children:(0,l.jsx)(C.Z,{use_inline:!1})}),p&&(0,l.jsx)("div",{className:"location-direction-form__error",children:(0,l.jsx)("div",{children:e("loading_error")})}),!p&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"location-direction-form__headline",children:(0,l.jsx)(T.Z,{main:e("form_headline"),headline_type:"xs"})}),(0,l.jsx)("div",{className:"location-direction-form__column",children:(0,l.jsx)(k._n,{name:"region",label:e("form_field_region"),options:r,value:h,onChange:t=>{E(e("form_field_region"),r[t]),n({type:a.SET_FORM_SELECTION,payload:{region:t}})}})}),(0,l.jsx)("div",{className:"location-direction-form__column",children:(0,l.jsx)(k._n,{name:"country",label:e("form_field_country"),options:c,value:m,onChange:t=>{E(e("form_field_country"),c[t]),n({type:a.SET_FORM_SELECTION,payload:{country:t}})}})}),(0,l.jsx)("div",{className:"location-direction-form__column",children:(0,l.jsx)(k._n,{name:"unit",label:e("form_field_unit"),options:d,value:f,onChange:t=>{E(e("form_field_unit"),d[t]),n({type:a.SET_FORM_SELECTION,payload:{unit:t}})}})})]})]})})});var M=n(57167),I=n(94184),A=n.n(I);let P=(e,t)=>null==e?void 0:e.find(e=>t&&e.id===t),$=(e,t,n,i,o,s=!0)=>{var r,l,c;c=null!=(l=null==(r=P(n,t))?void 0:r.name1)?l:"",L.Z.push_event({name:"Functional",type:"Contact",action:"Select",value:c,detail:"",moduleSection:i,moduleType:o}),e({type:a.SET_LOCATION_SELECTION,payload:{location_id_selected:t,is_location_selected:!0,is_location_hovered:!1,should_update_map_center:s,location_id_scroll_to:!s&&t?t:void 0}})},Z=(e,t,n=!0)=>{e({type:a.SET_LOCATION_SELECTION,payload:{location_id_hovered:t,is_location_hovered:!0,should_update_map_center:!1,location_id_scroll_to:n&&t?t:void 0}})},F=(e,t,n=!0)=>{e({type:a.SET_LOCATION_SELECTION,payload:{is_location_hovered:!1,should_update_map_center:n,location_id_scroll_to:!n&&t?t:void 0}})};var R=n(60266);let B="phone",z="phone2",q="mail",D="link",G="vcard",V=({content:e,type:t,link:n,on_click:i})=>{let o={[B]:{href:`tel:${e}`,icon:"beyond/16px/ContactPhone"},[z]:{href:`tel:${e}`,icon:"beyond/16px/ContactPhone"},[q]:{href:n,icon:"beyond/16px/Mail"},[D]:{href:n,icon:"beyond/16px/OpenInNew"},contact:{icon:"beyond/16px/Download"}
1,[G]:{href:n,icon:"beyond/16px/Download"},fax:{href:`tel:${e}`,icon:"beyond/16px/Fax"}};return(0,l.jsx)(R.Z,Object.assign({},o[t],{icon_forced_inline:!0,icon_flow_start:!0,"aria-label":e,label:e,onClick:i,type:"link"}))},U=({content:e="",type:t,has_spacing:n=!1,link:i="",label:o="",on_click:s})=>e?(0,l.jsxs)("div",{className:A()("location-direction-details__entry",n&&"location-direction-details__entry--spacing","fax"===t&&"location-direction-details__entry--link-non-clickable"),children:[t?(0,l.jsx)(V,{content:e,type:t,link:i,on_click:s}):e,o&&(0,l.jsx)("span",{className:"location-direction-details__label",children:o})]}):"",W=f(function({location:e,has_context_list:t=!1,get_label:n,state:i}){var o;let{app:s,form_initial_selection:r}=i,{url_endpoint_vcard:a,module_section:c="",module_type:d=""}=s,{language:u=""}=r,_=(e,t,n="")=>{L.Z.push_event({name:"CTA",type:"",action:e,value:t,detail:n,moduleSection:c,moduleType:d})};if(!e)return(0,l.jsx)("div",{children:"\xa0"});let p=e.officephonel?`(${e.officephonel})`:null,h=e.officephone2l?`(${e.officephone2l})`:null;return(0,l.jsx)("div",{className:A()("location-direction-details",t?"location-direction-details--list":"location-direction-details--overlay"),children:(0,l.jsxs)("div",{className:"grid__structure",children:[(0,l.jsxs)("div",{className:"location-direction-details__address grid__column",children:[(0,l.jsx)(U,{content:e.address}),(0,l.jsx)(U,{content:`${e.postalcode} ${e.town}`}),(0,l.jsx)(U,{content:e.countryname}),e.homepage&&(0,l.jsx)(U,{content:n("website_open"),link:e.homepage,type:D,has_spacing:!0,on_click:()=>{_("Website Link",e.name1)}})]}),(0,l.jsxs)("div",{className:"location-direction-details__contact grid__column",children:[(0,l.jsx)(U,{content:e.officephone,type:B,label:null!=(o=e.officephone2?p:"")?o:`(${n("main_phone")})`,on_click:()=>{_("Tel_to",e.name1,"Main Phone Number")}}),(0,l.jsx)(U,{content:e.officephone2,type:z,label:null!=h?h:`(${n("alternative_phone")})`,on_click:()=>{_("Tel_to",e.name1,"Alternative Phone Number")}}),(0,l.jsx)(U,{content:e.fax,type:"fax"}),(0,l.jsx)(U,{content:n("mail_send"),link:`mailto:${e.email}`,type:q,on_click:()=>{_("Mail_to",e.name1)}}),(0,l.jsx)(U,{content:n("vcard_download"),link:a.replaceAll("{ID}",e.id).replaceAll("{LANG}",u),type:G,on_click:()=>{_("Download vcard",e.name1)}})]})]})})}),X=e=>(0,l.jsx)(T.Z,{main:`${e.numbering}. ${e.name1}`,sub:e.products,headline_type:"xs"}),Y=f(e=>{let t=(0,g.useRef)(null),{location:n,is_location_hovered:i,location_id_selected:o,location_id_hovered:s,location_id_scroll_to:r,handle_scroll:a,locations:c,state:{app:d},dispatch:u}=e,{module_type:_="",module_section:p=""}=d;if((0,g.useEffect)(()=>{t.current&&n.id===r&&a(t.current.offsetTop)},[r]),e.is_viewport_mobile){let t;return t=e.location,(0,l.jsxs)("div",{className:"location-direction-item-details",children:[X(t),(0,l.jsx)("div",{className:"location-direction-item-details__content",children:(0,l.jsx)(W,{location:t,has_context_list:!0})})]})}return(0,l.jsx)("button",{type:"button",title:n.name1,"aria-label":n.name1,ref:t,className:A()("button-plain","location-direction-item-button",n.id===o?"location-direction-item-button--active":"",n.id===s&&i?"location-direction-item-button--hover":""),onClick:()=>{$(u,n.id,c,p,_)},onMouseEnter:()=>{Z(u,n.id,!1)},onFocus:()=>{Z(u,n.id,!1)},onMouseLeave:()=>{F(u,n.id,!1)},children:X(n)})}),K=f(function(e){let t=g.useRef(null),{state:{locations:n,app:i,location_selection:o}}=e,{locations:s,is_requesting:r}=n,{location_id_selected:a,location_id_hovered:c,location_id_scroll_to:d,is_location_hovered:u}=o,{is_viewport_mobile:_}=i,p=e=>{t.current&&t.current.scrollTo(0,e)};return(0,l.jsxs)("div",{className:"location-direction-list",children:[r&&(0,l.jsx)(C.Z,{use_inline:!1}),(0,l.jsx)(M.Z,{type:"dark"}),(0,l.jsx)("div",{className:"location-direction-list__scroll",ref:t,children:(0,l.jsx)("ul",{className:"location-direction-list__list",children:s.map((e,t)=>(0,l.jsxs)("li",{className:"location-direction-list__item",children:[(0,l.jsx)(Y,{location:e,location_id_selected:a,location_id_hovered:c,location_id_scroll_to:d,is_location_hovered:u,is_viewport_mobile:_,handle_scroll:p,locations:s}),t<s.length-1&&(0,l.jsx)(M.Z,{})]},e.id))})}),(0,l.jsx)(M.Z,{type:"dark"})]})});var H=n(61873);let J=({consents:e={},headline:t,button:n,text:i})=>{let o={};return Object.entries(e).forEach(([e,t])=>{o[e]=(0,u.ye)(t)}),(0,l.jsx)("div",{className:"consent-overlay",style:{display:"flex"},children:(0,l.jsxs)("div",{className:"consent-overlay__box",children:[(0,l.jsx)("div",{className:"headline hl-s spacing--m",children:(0,l.jsx)("h2",{children:(0,l.jsx)("span",{className:"headline__main",children:t})})}
1),(0,l.jsx)(H.Z,{text_type:"body-s",content:i,class_name:"consent-overlay__content"}),(0,l.jsx)("div",{className:"button-link consent-overlay__button",children:(0,l.jsx)("button",{type:"button",onClick:()=>{(0,u.Bo)()},children:(0,l.jsx)("span",{children:n})})})]})})};n(13699),n(54480),n(56303),n(87622),n(13571);var Q=n(58133);n(64455),n(65640),n(25518),n(6202),n(70820),n(52700),n(38997);let ee=function(e){var t,n,i=n=i||{version:"1.3.8"};i.guid="$BAIDU$",window[i.guid]=window[i.guid]||{},i.dom=i.dom||{},i.dom.g=function(e){return"string"==typeof e||e instanceof String?document.getElementById(e):e&&e.nodeName&&(1==e.nodeType||9==e.nodeType)?e:null},i.g=i.G=i.dom.g,i.dom.getDocument=function(e){return 9==(e=i.dom.g(e)).nodeType?e:e.ownerDocument||e.document},i.lang=i.lang||{},i.lang.isString=function(e){return"[object String]"==Object.prototype.toString.call(e)},i.isString=i.lang.isString,i.dom._g=function(e){return i.lang.isString(e)?document.getElementById(e):e},i._g=i.dom._g,i.browser=i.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(i.browser.ie=i.ie=document.documentMode||+RegExp.$1),i.dom.getComputedStyle=function(e,t){e=i.dom._g(e);var n,o=i.dom.getDocument(e);return o.defaultView&&o.defaultView.getComputedStyle&&(n=o.defaultView.getComputedStyle(e,null))?n[t]||n.getPropertyValue(t):""},i.dom._styleFixer=i.dom._styleFixer||{},i.dom._styleFilter=i.dom._styleFilter||[],i.dom._styleFilter.filter=function(e,t,n){for(var o,s=0,r=i.dom._styleFilter;o=r[s];s++)(o=o[n])&&(t=o(e,t));return t},i.string=i.string||{},i.string.toCamelCase=function(e){return 0>e.indexOf("-")&&0>e.indexOf("_")?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})},i.dom.getStyle=function(e,t){var n=i.dom;e=n.g(e),t=i.string.toCamelCase(t);var o=e.style[t]||(e.currentStyle?e.currentStyle[t]:"")||n.getComputedStyle(e,t);if(!o){var s=n._styleFixer[t];s&&(o=s.get?s.get(e):i.dom.getStyle(e,s))}return(s=n._styleFilter)&&(o=s.filter(t,o,"get")),o},i.getStyle=i.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(i.browser.opera=+RegExp.$1),i.browser.isWebkit=/webkit/i.test(navigator.userAgent),i.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),i.browser.isStrict="CSS1Compat"==document.compatMode,i.dom.getPosition=function(e){e=i.dom.g(e);var t,n,o=i.dom.getDocument(e),s=i.browser,r=i.dom.getStyle,a=(s.isGecko>0&&o.getBoxObjectFor&&"absolute"==r(e,"position")&&(""===e.style.top||e.style.left),{left:0,top:0});if(e==(s.ie&&!s.isStrict?o.body:o.documentElement))return a;if(e.getBoundingClientRect){a.left=Math.floor((n=e.getBoundingClientRect()).left)+Math.max(o.documentElement.scrollLeft,o.body.scrollLeft),a.top=Math.floor(n.top)+Math.max(o.documentElement.scrollTop,o.body.scrollTop),a.left-=o.documentElement.clientLeft,a.top-=o.documentElement.clientTop;var l=o.body,c=parseInt(r(l,"borderLeftWidth")),d=parseInt(r(l,"borderTopWidth"));s.ie&&!s.isStrict&&(a.left-=isNaN(c)?2:c,a.top-=isNaN(d)?2:d)}else{t=e;do{if(a.left+=t.offsetLeft,a.top+=t.offsetTop,s.isWebkit>0&&"fixed"==r(t,"position")){a.left+=o.body.scrollLeft,a.top+=o.body.scrollTop;break}t=t.offsetParent}while(t&&t!=e);for((s.opera>0||s.isWebkit>0&&"absolute"==r(e,"position"))&&(a.top-=o.body.offsetTop),t=e.offsetParent;t&&t!=o.body;)a.left-=t.scrollLeft,s.opera&&"TR"==t.tagName||(a.top-=t.scrollTop),t=t.offsetParent}return a},i.event=i.event||{},i.event._listeners=i.event._listeners||[],i.event.on=function(e,t,n){t=t.replace(/^on/i,""),e=i.dom._g(e);var o,s=function(t){n.call(e,t)},r=i.event._listeners,a=i.event._eventFilter,l=t;return t=t.toLowerCase(),a&&a[t]&&(l=(o=a[t](e,t,s)).type,s=o.listener),e.addEventListener?e.addEventListener(l,s,!1):e.attachEvent&&e.attachEvent("on"+l,s),r[r.length]=[e,t,n,s,l],e},i.on=i.event.on,t=window[i.guid],i.lang.guid=function(){return"TANGRAM__"+(t._counter++).toString(36)},t._counter=t._counter||1,window[i.guid]._instances=window[i.guid]._instances||{},i.lang.isFunction=function(e){return"[object Function]"==Object.prototype.toString.call(e)},i.lang.Class=function(e){this.guid=e||i.lang.guid(),window[i.guid]._instances[this.guid]=this},window[i.guid]._instances=window[i.guid]._instances||{},i.lang.Class.prototype.dispose=function(){for(var e in delete window[i.guid]._instances[this.guid],this)i.lang.isFunction(this[e])||delete this[e];this.disposed=!0},i.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},i.lang.Event=function(e,t){this.type=e,this.returnValue=!0,this.target=t||null,this.currentTarget=null},i.lang.Class.prototype.addEventListener=function(e,t,n){if(i.lang.isFunction(t)){this.__listeners||(this.__listeners={});var o,s=this.__listeners;if("string"==typeof n&&n)if(/[^\w\-]/.test(n))throw"nonstandard key:"+n;else t.hashCode=n,o=n;0!=e.indexOf("on")&&(e="on"+e),"object"!=(0,Q.Z)(s[e])&&(s[e]={}),t.hashCode=o=o||i.lang.guid(),s[e][o]=t}},i.lang.Class.prototype.removeEventListener=function(e,t){if(!(void 0!==t&&(i.lang.isFunction(t)&&!(t=t.hashCode)||!i.lang.isString(t)))){this.__listeners||(this.__listeners={}),0!=e.indexOf("on")&&(e="on"+e);var n=this.__listeners;if(n[e])if(void 0!==t)n[e][t]&&delete n[e][t];else for(var o in n[e])delete n[e][o]}},i.lang.Class.prototype.dispatchEvent=function(e,t){for(var n in i.lang.isString(e)&&(e=new i.lang.Event(e)),this.__listeners||(this.__listeners={}),t=t||{})e[n]=t[n];var n,o=this.__listeners,s=e.type;if(e.target=e.target||this,e.currentTarget=this,0!=s.indexOf("on")&&(s="on"+s),i.lang.isFunction(this[s])&&this[s].apply(this,arguments),"object"==(0,Q.Z)(o[s]))for(n in o[s])o[s][n].apply(this,arguments);return e.returnValue},i.lang.inherits=function(e,t,n){var i,o,s=e.prototype,r=Function();for(i in r.prototype=t.prototype,o=e.prototype=new r,s)o[i]=s[i];e.prototype.constructor=e,e.superClass=t.prototype,"string"==typeof n&&(o._className=n)},i.inherits=i.lang.inherits;var o=o=function(e,t){this._position=e,this._options=t||{},this._styles=this._options.styles||[],this._styles.length||this._setupDefaultStyles()};return n.lang.inherits(o,e.Overlay,"IconOverlay"),o.prototype._setupDefaultStyles=function(){for(var t,n=[53,56,66,78,90],i=0;t=n[i];i++)this._styles.push({url:"http://api.map.baidu.com/library/IconOverlay/1.2/src/images/m"+i+".png",size:new e.Size(t,t)})},o.prototype.initialize=function(e){return this._map=e,this._domElement=document.createElement("div"),this._updateCss(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},o.prototype.draw=function(){this._map&&this._updatePosition()},o.prototype.getPosition=function(){return this._position},o.prototype.setPosition=function(e){!e||this._position&&this._position.equals(e)||(this._position=e,this._updatePosition())},o.prototype._updateCss=function(){this._domElement.style.cssText=this._buildCssText(this._styles[0])},o.prototype._updatePosition=function(){if(this._domElement&&this._position){var e=this._domElement.style,t=this._map.pointToOverlayPi
1xel(this._position);t.x-=Math.ceil(parseInt(e.width)/2),t.y-=Math.ceil(parseInt(e.height)/2),e.left=t.x+"px",e.top=t.y+"px"}},o.prototype._buildCssText=function(t){var i=t.url,o=t.size,s=t.anchor,r=t.offset,a=[];if(n.browser.ie<7)a.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+i+'");');else{a.push("background-image:url("+i+");");var l="0 0";r instanceof e.Size&&(l=r.width+"px "+r.height+"px"),a.push("background-position:"+l+";")}return o instanceof e.Size&&(s instanceof e.Size?(s.height>0&&s.height<o.height&&a.push("height:"+(o.height-s.height)+"px; padding-top:"+s.height+"px;"),s.width>0&&s.width<o.width&&a.push("width:"+(o.width-s.width)+"px; padding-left:"+s.width+"px;")):(a.push("height:"+o.height+"px; line-height:"+o.height+"px;"),a.push("width:"+o.width+"px; text-align:center;"))),a.push("cursor:pointer; position:absolute;font-family:Arial,sans-serif; font-weight:bold"),a.join("")},o.prototype._bind=function(){if(this._domElement){var t=this,i=this._map,o=n.lang.Event;n.event.on(this._domElement,"mouseover",function(e){t.dispatchEvent(s(e,new o("onmouseover")))}),n.event.on(this._domElement,"mouseout",function(e){t.dispatchEvent(s(e,new o("onmouseout")))}),n.event.on(this._domElement,"click",function(e){t.dispatchEvent(s(e,new o("onclick")))})}function s(t,o){var s=t.srcElement||t.target,r=t.clientX||t.pageX,a=t.clientY||t.pageY;if(t&&o&&r&&a&&s){var l=n.dom.getPosition(i.getContainer());o.pixel=new e.Pixel(r-l.left,a-l.top),o.point=i.pixelToPoint(o.pixel)}return o}},o},et=function(e){var t=ee(e),n=function(t,n,o){n=i(n);var s=t.pointToPixel(n.getNorthEast()),r=t.pointToPixel(n.getSouthWest
1());s.x+=o,s.y-=o,r.x-=o,r.y+=o;var a=t.pixelToPoint(s),l=t.pixelToPoint(r);return new e.Bounds(l,a)},i=function(t){var n=o(t.getNorthEast().lng,-180,180),i=o(t.getSouthWest().lng,-180,180),s=o(t.getNorthEast().lat,-74,74),r=o(t.getSouthWest().lat,-74,74);return new e.Bounds(new e.Point(i,r),new e.Point(n,s))},o=function(e,t,n){return t&&(e=Math.max(e,t)),n&&(e=Math.min(e,n)),e},s=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(e,t){var n=-1;if(s(t)){if(t.indexOf)n=t.indexOf(e);else for(var i,o=0;i=t[o];o++)if(i===e){n=o;break}}return n},a=function(e,t){if(e){this._map=e,this._markers=[],this._clusters=[];var n=t||{};this._gridSize=n.gridSize||60,this._maxZoom=n.maxZoom||18,this._minClusterSize=n.minClusterSize||2,this._isAverageCenter=!1,void 0!=n.isAverageCenter&&(this._isAverageCenter=n.isAverageCenter),this._styles=n.styles||[];var i=this;this._map.addEventListener("zoomend",function(){i._redraw()}),this._map.addEventListener("moveend",function(){i._redraw()});var o=n.markers;s(o)&&this.addMarkers(o)}};function l(e){this._markerCluster=e,this._map=e.getMap(),this._minClusterSize=e.getMinClusterSize(),this._isAverageCenter=e.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new t(this._center,{styles:this._markerCluster.getStyles()})}return a.prototype.addMarkers=function(e){for(var t=0,n=e.length;t<n;t++)this._pushMarkerTo(e[t]);this._createClusters()},a.prototype._pushMarkerTo=function(e){-1===r(e,this._markers)&&(e.isInCluster=!1,this._markers.push(e))},a.prototype.addMarker=function(e){this._pushMarkerTo(e),this._createClusters()},a.prototype._createClusters=function(){var e=this._map.getBounds();if(!e.isEmpty())for(var t,i=n(this._map,e,this._gridSize),o=0;t=this._markers[o];o++)!t.isInCluster&&i.containsPoint(t.getPosition())&&this._addToClosestCluster(t)},a.prototype._addToClosestCluster=function(e){var t=4e6,n=null;e.getPosition();for(var i,o=0;i=this._clusters[o];o++){var s=i.getCenter();if(s){var r=this._map.getDistance(s,e.getPosition());r<t&&(t=r,n=i)}}if(n&&n.isMarkerInClusterBounds(e))n.addMarker(e);else{var i=new l(this);i.addMarker(e),this._clusters.push(i)}},a.prototype._clearLastClusters=function(){for(var e,t=0;e=this._clusters[t];t++)e.remove();this._clusters=[],this._removeMarkersFromCluster()},a.prototype._removeMarkersFromCluster=function(){for(var e,t=0;e=this._markers[t];t++)e.isInCluster=!1},a.prototype._removeMarkersFromMap=function(){for(var e,t=0;e=this._markers[t];t++)e.isInCluster=!1,this._map.removeOverlay(e)},a.prototype._removeMarker=function(e){var t=r(e,this._markers);return -1!==t&&(this._map.removeOverlay(e),this._markers.splice(t,1),!0)},a.prototype.removeMarker=function(e){var t=this._removeMarker(e);return t&&(this._clearLastClusters(),this._createClusters()),t},a.prototype.removeMarkers=function(e){for(var t=!1,n=0;n<e.length;n++){var i=this._removeMarker(e[n]);t=t||i}return t&&(this._clearLastClusters(),this._createClusters()),t},a.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},a.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},a.prototype.getGridSize=function(){return this._gridSize},a.prototype.setGridSize=function(e){this._gridSize=e,this._redraw()},a.prototype.getMaxZoom=function(){return this._maxZoom},a.prototype.setMaxZoom=function(e){this._maxZoom=e,this._redraw()},a.prototype.getStyles=function(){return this._styles},a.prototype.setStyles=function(e){this._styles=e,this._redraw()},a.prototype.getMinClusterSize=function(){return this._minClusterSize},a.prototype.setMinClusterSize=function(e){this._minClusterSize=e,this._redraw()},a.prototype.isAverageCenter=function(){return this._isAverageCenter},a.prototype.getMap=function(){return this._map},a.prototype.getMarkers=function(){return this._markers},a.prototype.getClustersCount=function(){for(var e,t=0,n=0;e=this._clusters[n];n++)e.isReal()&&t++;return t},l.prototype.addMarker=function(t){if(this.isMarkerInCluster(t))return!1;if(this._center){if(this._isAverageCenter){var n=this._markers.length+1,i=(this._center.lat*(n-1)+t.getPosition().lat)/n,o=(this._center.lng*(n-1)+t.getPosition().lng)/n;this._center=new e.Point(o,i),this.updateGridBounds()}}else this._center=t.getPosition(),this.updateGridBounds();t.isInCluster=!0,this._markers.push(t);var s=this._markers.length;if(s<this._minClusterSize)return this._map.addOverlay(t),this.updateClusterMarker(),!0;if(s===this._minClusterSize)for(var r=0;r<s;r++)this._markers[r].getMap()&&this._map.removeOverlay(this._markers[r]);return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},l.prototype.isMarkerInCluster=function(e){if(this._markers.indexOf)return -1!=this._markers.indexOf(e);for(var t,n=0;t=this._markers[n];n++)if(t===e)return!0;return!1},l.prototype.isMarkerInClusterBounds=function(e){return this._gridBounds.containsPoint(e.getPosition())},l.prototype.isReal=function(e){return this._isReal},l.prototype.updateGridBounds=function(){var t=new e.Bounds(this._center,this._center);this._gridBounds=n(this._map,t,this._markerCluster.getGridSize())},l.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerCluster.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var e,t,n=0;t=this._markers[n];n++)this._map.addOverlay(t);return}if(this._markers.length<this._minClusterSize)return void this._clusterMarker.hide();this._clusterMarker.setPosition(this._center);var i=this._map,o=this.getBounds();null==(e=this._clusterMarker)||e.addEventListener("click",function(e){i.setVie
1wport(o)})},l.prototype.remove=function(){for(var e=0;this._markers[e];e++)this._markers[e].getMap()&&this._map.removeOverlay(this._markers[e]);this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},l.prototype.getBounds=function(){for(var t,n=new e.Bounds(this._center,this._center),i=0;t=this._markers[i];i++)n.extend(t.getPosition());return n},l.prototype.getCenter=function(){return this._center},a};var en=n(17889);let ei={map_id:"cf6bf1d924c5cac9",initial_latitude:48.7816765,initial_longitude:10.0976935},eo=e=>{let t=window.btoa(e);return`data:image/svg+xml;base64,${t}`},es=(e,t="")=>eo(`
2    <svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
3      <defs><style type="text/css">
4        .marker-icon-text{fill: #fff; font-size: 12px; font-family: 'Frutiger Next','Helvetica Neue',Helvetica,Verdana,Arial,sans-serif;}
5      </style></defs>
6      <ellipse fill="${e||x}" cx="11" cy="11" rx="11" ry="11"></ellipse>
7      <text class="marker-icon-text" text-anchor="middle">
8        <tspan dx="11" dy="15">${t}</tspan>
9      </text>
10    </svg>
11  `),er=e=>eo(`
12    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
13      <defs><style type="text/css">
14        .cluster-dots{fill:#fff;}
15      </style></defs>
16      <circle fill="${e||x}" cx="11" cy="11" r="11"/>
17      <circle class="cluster-dots" cx="6.4" cy="11" r="1.5"/>
18      <circle class="cluster-dots" cx="11" cy="11" r="1.5"/>
19      <circle class="cluster-dots" cx="15.6" cy="11" r="1.5"/>
20    </svg>
21  `),ea={width:30,height:30,url:er(x)},el=(e,t=!1)=>{var n;let{clusterIcon:i}=e;try{(null==(n=i.div)?void 0:n.firstChild).src=er(t?w:x)}catch(e){}},ec={lat:ei.initial_latitude,lng:ei.initial_longitude},ed=f(({BMap:e,map:t,MarkerCluster:n,state:{location_selection:i,app:o,locations:s},dispatch:r})=>{let{location_id_selected:a,location_id_hovered:l,is_location_hovered:c,should_update_map_center:d}=i,{locations:u}=s,[_,p]=(0,g.useState)(),{module_type:h="",module_section:m=""}=o;return(0,g.useEffect)(()=>{if(t){let i=new n(t,{markers:u.map(({latitude:t,longitude:n,numbering:i,id:o})=>{let s=new e.Point(n,t),a=new e.Size(30,30),l=new e.Icon(es(void 0,i),a),c=new e.Marker(s,{icon:l});return c.addEventListener("click",()=>$(r,o,u,m,h,!1)),c.addEventListener("mouseover",()=>Z(r,o)),c.addEventListener("mouseout",()=>{window.locationdirection_overlay_is_animating||F(r,void 0,!1)}),c}),styles:[{url:ea.url,size:new e.Size(ea.width,ea.height)}],gridSize:30});return()=>i.clearMarkers()}},[u,t]),(0,g.useEffect)(()=>{if(t&&d){let n=P(u,c?l:a);n&&(t.setCenter(new e.Point(n.longitude,n.latitude)),t.setZoom(16))}},[a,l,d,c]),(0,g.useEffect)(()=>{if(u!==_){let{map:n,locations:i,BMap:o}={BMap:e,map:t,locations:u};if(n)if(i&&i.length>0){let e=i.map(({latitude:e,longitude:t})=>new o.Point(t,e));n.setViewport(e,{})}else n.setCenter(ec),n.setZoom(16);p(u)}},[u]),null}),eu=g.memo(f(({api_key:e,state:t})=>{let{form_selection:n,app:o}=t,{country:s}=n,{is_consent_allowed_maps:r,ccm_button:a,ccm_headline:c,ccm_text:d}=o;return r?(0,l.jsx)("div",{className:"location-direction-map",children:(0,l.jsx)(en._F,{akay:e,children:(0,l.jsx)(en.D5,{center:s,style:S,children:({BMap:e,map:t})=>(0,l.jsx)(ed,{BMap:e,map:t,MarkerCluster:i||et(e)})})})}):(0,l.jsx)(J,{consents:{BAIDU_MAPS:u.N4.BAIDU_MAPS},text:null!=d?d:"",button:null!=a?a:"",headline:null!=c?c:""})}));var e_=n(62457),ep=n(25317),eh=n(6294);let eg={ease:ep.Lp.easeInOut,duration:.7},em=f(function({mode_hover:e=!1,get_label:t,state:n,dispatch:i}){let{locations:o,location_selection:s,app:r}=n,c=(0,g.useRef)(null),d=(0,g.useRef)(null),[u,_]=(0,g.useState)(),[p,h]=(0,g.useState)("auto"),[m,f]=(0,g.useState)(!1),{locations:v}=o,{location_id_selected:y,location_id_hovered:x,is_location_selected:w,is_location_hovered:E}=s,{is_consent_allowed_maps:S}=r;return(0,g.useEffect)(()=>{let t=P(v,e?x:y);t&&_(t)},[y,x]),(0,g.useEffect)(()=>{e&&E||!e&&w?f(!0):f(!1)},[w,E]),(0,g.useEffect)(()=>{h(S?"auto":"100%")},[S]),(0,g.useEffect)(()=>{window.locationdirection_overlay_is_animating=!0,eh.p8.to(c.current,Object.assign(Object.assign({},eg),{duration:w&&y===x?0:eg.duration,height:m?p:0,overwrite:!0,onComplete:()=>{window.locationdirection_overlay_is_animating=!1}})),eh.p8.to(d.current,Object.assign(Object.assign({},eg),{duration:w&&y===x?0:eg.duration,opacity:+!!m,overwrite:!0}))}
21,[m]),(0,l.jsx)("div",{className:A()("location-direction-details-overlay",e&&"location-direction-details-overlay--mode-hover"),ref:c,onMouseLeave:()=>{e&&F(i,void 0,!1)},children:(0,l.jsxs)("div",{className:"location-direction-details-overlay__content",ref:d,children:[!e&&(0,l.jsx)("button",{type:"button",className:"location-direction-details-overlay__button-close button-plain",title:t("close"),"aria-label":t("close"),onClick:()=>{i({type:a.SET_LOCATION_SELECTION,payload:{location_id_selected:void 0,is_location_selected:!1}})},children:(0,l.jsx)(e_.O,{icon:"Close"})}),(0,l.jsx)(T.Z,{main:`${null==u?void 0:u.numbering}. ${null==u?void 0:u.name1}`,headline_type:"m"}),(0,l.jsx)("div",{className:"location-direction-details-overlay__details",children:(0,l.jsx)(W,{location:u,has_context_list:!1})})]})})});var ef=n(37054);let ev=g.memo(f(function({map_language:e,get_label:t,api_key:n,state:i,dispatch:o}){let[s,r]=g.useState(),[a,c]=g.useState(!1),[d,_]=g.useState(),{is_consent_allowed_maps:p,ccm_button:h,ccm_headline:m,ccm_text:f}=i.app,{locations:v}=i.locations,{location_id_selected:y,location_id_hovered:b,is_location_hovered:O,should_update_map_center:j}=i.location_selection,{module_type:k="",module_section:T=""}=i.app,{isLoaded:L,loadError:N}=(0,ef.Db)(Object.assign({googleMapsApiKey:null!=n?n:"",mapIds:[ei.map_id]},e&&{language:e})),M=g.useCallback(e=>{r(e),c(!0)},[]);return((0,g.useEffect)(()=>{if(v!==d&&s){if(s)if(v&&v.length>0){let e=new window.google.maps.LatLngBounds;v.forEach(t=>{e.extend(new window.google.maps.LatLng(t.latitude,t.longitude))}),s.fitBounds(e)}else{let{initial_latitude:e,initial_longitude:t}=ei,n=new window.google.maps.LatLng(e,t);s.setCenter(n),s.setZoom(16)}_(v)}},[v,s]),(0,g.useEffect)(()=>{if(a&&j){let e=P(v,null!=b?b:y);if(e){let t=new window.google.maps.LatLng(e.latitude,e.longitude);null==s||s.setCenter(t),null==s||s.setZoom(16)}}},[y,b,j,O]),p)?N?(0,l.jsx)("div",{children:t("api_error_map")}):L?(()=>{let e={scaledSize:new window.google.maps.Size(30,30)};return(0,l.jsx)("div",{className:"location-direction-map",children:(0,l.jsx)(ef.b6,{onLoad:M,mapContainerStyle:S,options:{mapId:ei.map_id},children:(0,l.jsx)(ef.XL,{styles:[ea],calculator:()=>({text:"",index:0}),onMouseOver:e=>{el(e,!0)},onMouseOut:e=>{el(e,!1)},children:t=>(0,l.jsx)(l.Fragment,{children:v.map(n=>{let i=x;return b===n.id&&O?i=w:y===n.id&&(i=E),(0,l.jsx)(ef.Jx,{position:{lat:n.latitude,lng:n.longitude},icon:Object.assign(Object.assign({},e),{url:es(i,n.numbering)}),clusterer:t,onClick:()=>{$(o,n.id,v,T,k,!1)},onMouseOver:()=>{Z(o,n.id)},onMouseOut:()=>{window.locationdirection_overlay_is_animating||F(o,n.id,!1)}},n.id)})})})})})})():(0,l.jsx)(C.Z,{use_inline:!1}):(0,l.jsx)(J,{consents:{BAIDU_MAPS:u.N4.GOOGLE_MAPS},text:null!=f?f:"",button:null!=h?h:"",headline:null!=m?m:""})})),ey=f(({map_language:e,map_provider:t="GOOGLE",baidu_maps_api_key:n,google_maps_api_key:i,state:o})=>{let{is_consent_allowed_maps:s,is_viewport_mobile:r,fallback_image:a}=o.app;if(!r)return(0,l.jsxs)("div",{className:"location-direction-app__map-details",children:[(0,l.jsxs)("div",{className:"location-direction-app__map",children:[t===y?(0,l.jsx)(eu,{api_key:n}):(0,l.jsx)(ev,{map_language:e,api_key:i}),!s&&(null==a?void 0:a.src)&&(0,l.jsx)("img",Object.assign({className:"location-direction-map--fallback-image",src:a.src,alt:a.alt},a.title&&{title:a.title}))]}),(0,l.jsxs)("div",{className:A()("location-direction-app__details",!s&&"location-direction-app__details--consent"),children:[(0,l.jsx)(em,{}),(0,l.jsx)(em,{mode_hover:!0})]})]})});var ex=n(81893);let ew=f(function({get_label:e,state:{form_initial_selection:t},dispatch:n}){let{region:i,country:o,unit:s}=t;return(0,l.jsx)(R.Z,{is_button:!0,label:e("reset_filters"),icon:"beyond/16px/Refresh",icon_forced_inline:!0,type:"link",onClick:()=>{n({type:a.SET_FORM_SELECTION,payload:{region:i,country:o,unit:s}})}})}),eE=f(({get_label:e,state:{locations:t}})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"location-direction-app__results",children:(0,l.jsx)(ex.Z,{count:t.location_count,is_requesting:t.is_requesting,has_request_error:t.has_request_error,get_label:e})}),(0,l.jsx)("div",{className:"location-direction-app__reset",children:(0,l.jsx)(ew,{})})]}));window.locationdirection_overlay_is_animating=!1;let eS=({initial_value_language:e,map_provider:t,baidu_maps_api_key:n,google_maps_api_key:i})=>(0,l.jsxs)("div",{className:"location-direction-app",children:[(0,l.jsx)("div",{className:"location-direction-app__form",children:(0,l.jsx)(N,{})}),(0,l.jsxs)("div",{className:"grid__structure",children:[(0,l.jsx)("div",{className:"grid__column location-direction-app__column-result-bar",children:(0,l.jsx)(eE,{})}),(0,l.jsx)("div",{className:"grid__column location-direction-app__column-list",children:(0,l.jsx)("div",{className:"location-direction-app__list",children:(0,l.jsx)(K,{})})}),(0,l.jsx)("div",{className:"grid__column location-direction-app__column-map",children:(0,l.jsx)(ey,{map_provider:t,map_language:e,google_maps_api_key:i,baidu_maps_api_key:n})})]})]}),eb=(0,p.y)(e=>{let{map_provider:t,baidu_maps_api_key:n,google_maps_api_key:i,labels:o,breakpoint:s,value_language:c,value_country:d,value_unit:_,value_ccm_headline:p,value_ccm_text:f,value_ccm_button:v,url_endpoint_selection:x,url_endpoint_locations:w,url_endpoint_vcard:E,fallback_image:S,module_section:k,module_type:C}=e,T=t===y?u.N4.BAIDU_MAPS:u.N4.GOOGLE_MAPS,L=(0,u.ye)(T),[N,M]=(0,g.useReducer)(j,Object.assign(Object.assign({},O),{app:Object.assign(Object.assign({},O.app),{url_endpoint_selection:x,url_endpoint_locations:w,url_endpoint_vcard:E,is_consent_allowed_maps:L,fallback_image:S,ccm_headline:p,ccm_text:f,ccm_button:v,module_section:k,module_type:C}),form_selection:{country:d,language:c,unit:_},form_initial_selection:{country:d,language:c,region:_,unit:_}}));(0,g.useEffect)(()=>{var e;M({type:a.SET_FORM,payload:{is_requesting:!0,has_request_error:!1}}),(function(e){return b(this,arguments,void 0,function*({url:e,language:t,country:n,all_units_label:i}){let o=e.replace("{LANG}",t);try{let e=yield fetch(o).then(e=>e.json());if(e){var s;let t={},o={};
21e.regions.forEach(e=>{o[e.id]=e.translated;let n={};e.countries.forEach(e=>{n[e.id]=e.translated}),t[e.id]=n});let r={"":i};return e.areas.forEach(e=>{r[e.id]=e.translated}),{regions_country_list:t,options_regions:o,options_units:r,region:null!=(s=Object.keys(t).find(e=>!!t[e][n]))?s:""}}return}catch(e){return}})})({url:x,language:c,country:d,all_units_label:o.all_units}).then(e=>{if(e){let{options_regions:t,options_units:n,region:i,regions_country_list:o}=e;M({type:a.SET_FORM_SELECTION,payload:{region:i}}),M({type:a.SET_FORM_INITIAL_SELECTION,payload:{region:i}}),M({type:a.SET_FORM,payload:{is_requesting:!1,has_request_error:!1,options_units:n,options_regions:t,regions_country_list:o,region:i}})}else M({type:a.SET_FORM,payload:{is_requesting:!1,has_request_error:!0}})}),null==(e=window.Optanon)||e.OnConsentChanged(()=>{M({type:a.SET_APP_STATE,payload:{is_consent_allowed_maps:(0,u.ye)(T)}})})},[]),(0,g.useEffect)(()=>{M({type:a.SET_APP_STATE,payload:{is_viewport_mobile:s!==r.DESKTOP}})},[s]);let I=(0,g.useMemo)(()=>({state:N,dispatch:M,get_label:(0,h.z)(o)}),[N]);return(0,l.jsx)(m.Provider,{value:I,children:(0,l.jsx)(eS,{map_provider:null!=t?t:"GOOGLE",initial_value_language:c,google_maps_api_key:i,baidu_maps_api_key:n})})}),eO=class extends d.hp{constructor(e){super(e),this._render_app=()=>{var e,t,n,i;let o=this._$node.querySelector("[data-app]");if(o){let s=(0,_.createRoot)(o),r=this._$node.querySelector('[data-js-select="LocationDirection_app"]'),a=this._$node.querySelector('[data-js-select="LocationDirection_config"]'),{initialValueLanguage:d="",initialValueRegion:u="",initialValueCountry:p="",initialValueUnit:h="",initialValueCcmHeadline:g,initialValueCcmText:m,initialValueCcmButton:f,fallbackImage:v}=null!=(e=null==r?void 0:r.dataset)?e:{},{urlSelection:y="",urlLocations:x="",urlVcard:w="",moduleType:E,moduleSection:S,keyForBMaps:b,keyForGMaps:O,mapProvider:j="GOOGLE"}=null!=(t=null==a?void 0:a.dataset)?t:{},k=(0,c.Z)(null==(n=this._$node.querySelector("[data-js-config]"))?void 0:n.innerText),C=(0,c.Z)(v);s.render((0,l.jsx)(eb,Object.assign({value_language:d,value_region:u,value_country:p,value_unit:h,value_ccm_headline:g,value_ccm_text:m,value_ccm_button:f,url_endpoint_selection:y,url_endpoint_locations:x,url_endpoint_vcard:w,module_type:E,module_section:S,map_provider:j,baidu_maps_api_key:b,google_maps_api_key:O,labels:null!=(i=null==k?void 0:k.labels)?i:{}},C&&{fallback_image:C})))}},this._$node=e,this.ot_listener_added=!1}connect(e){super.connect(e)}loaded(e){super.loaded(e),window.OnetrustActiveGroups?this._render_app():(window.addEventListener(u._m,this._render_app),this.ot_listener_added=!0),window.addEventListener(u.q5,this._render_app)}disconnect(e){super.disconnect(e),this.ot_listener_added&&(window.removeEventListener(u._m,this._render_app),window.removeEventListener(u.q5,this._render_app))}},ej=eO=function(e,t,n,i){var o,s=arguments.length,r=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,n,r):o(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r}([d.lE.register("LocationDirection")],eO)},49725:function(e,t,n){n.d(t,{Z:()=>r});var i=n(82816),o=n(67294),s=n(21611);let r=function(e){var t=(0,o.useState)(e&&e()),n=(0,i.Z)(t,2),r=n[0],a=n[1],l=s.ZP.debounce(function(t){e?a(e(t)):a(t.target.innerWidth)},400),c=(0,o.useCallback)(l,[]);return(0,o.useEffect)(function(){return window.addEventListener("resize",c),function(){window.removeEventListener("resize",c)}},[]),{width:r}}}}]);

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.