1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[5841],{36105:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var o=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function a(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,a)}s((o=o.apply(t,e||[])).next())}))},r=function(t,e){var n,o,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,o=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=c.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=e.call(t,c)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)c.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return c};const a=new(function(){function t(){var t=this;this._countrySelect=document.querySelector("#country"),this._regionSelect=document.querySelector("#region"),this._regionSelect.style.display="none",this._storeList=document.querySelector("#storelist"),this._countrySelect.addEventListener("change",(function(){t.updateRegions(),t.loadStores()})),this._regionSelect.addEventListener("change",(function(){t.loadStores()}))}return t.prototype.updateRegions=function(){return o(this,void 0,void 0,(function(){var t,e=this;return r(this,(function(n){switch(n.label){case 0:return[4,this.fetchRegions()];case 1:return t=n.sent(),this._regionSelect.innerHTML="",t.forEach((function(t){var n=document.createElement("option");n.value=t.value,n.textContent=t.name,e._regionSelect.appendChild(n)})),this._regionSelect.style.display=t.length>1?"block":"none",t.length<=1&&this.loadStores(),[2]}}))}))},t.prototype.fetchRegions=function(){return o(this,void 0,void 0,(function(){var t;return r(this,(function(e){switch(e.label){case 0:return t=this.getSelectedCountry(),[4,fetch(StoreLocatorSettings.filterHandlerUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({country:t,context:StoreLocatorSettings.context})})];case 1:return[4,e.sent().json()];case 2:return[2,e.sent().regions]}}))}))},t.prototype.getSelectedCountry=function(){return this._countrySelect.options[this._countrySelect.selectedIndex].value},t.prototype.getSelectedRegion=function(){return this._regionSelect.selectedIndex<0?null:this._regionSelect.options[this._regionSelect.selectedIndex].value},t.prototype.loadStores=function(){return o(this,void 0,void 0,(function(){var t,e,n,o,a,s,l,u,d;return r(this,(function(r){switch(r.label){case 0:return[4,this.fetchStores()];case 1:t=r.sent(),e="";try{for(n=i(t.entries()),o=n.next();!o.done;o=n.next())a=c(o.value,2),s=a[0],l=a[1],e+=this.getStoreListItem(l,s+1)}catch(t){u={error:t}}finally{try{o&&!o.done&&(d=n.return)&&d.call(n)}finally{if(u)throw u.error}}return this._storeList.innerHTML=e,this._storeList.querySelectorAll(".details-button").forEach((function(t){t.addEventListener("click",(function(){t.parentElement.parentElement.classList.add("expanded")}))})),this._storeList.querySelectorAll(".close-button").forEach((function(t){t.addEventListener("click",(function(){t.parentElement.parentElement.classList.remove("expanded")}))})),[2]}}))}))},t.prototype.getStoreListItem=function(t,e){return"<li class='store-list-item'>\n <div class='title-section'>\n <img class=\"icon\" src=\"".concat(t.icon,'" /><span class="store-label">').concat(t.pos||e,"</span>\n <div class='title'>\n\t\t\t <div>").concat(t.name,'</div>\n <div class="subtitle">').concat(t.name2,'</div>\n </div>\n </div>\n <div class="buttons">\n <a class="details-button">').concat(StoreLocatorCommonText.details,'</a>\n <a class="close-button">').concat(StoreLocatorCommonText.close,'</a>\n </div>\n <div class="address-section">\n <div class="address">\n <div>').concat(t.street," ").concat(t.streetNumber,"</div>\n <div>").concat(t.postalCode," ").concat(t.city,"</div>\n </div>\n ").concat(this.getPhoneFax(t),"\n </div>\n <div class='details'>\n <div class='fields-of-competences-section'>\n ").concat(this.getFieldsOfCompetence(t),"\n ").concat(this.getImage(t),"\n </div>\n ").concat(this.getDetails(t),"\n ").concat(this.getOpeningHours(t),"\n </div>\n\n\t\t</li>")},t.prototype.getPhoneFax=function(t){var e='<div class="phone-fax">';return""!=t.phone&&(e+='<div class="phone">'.concat(StoreLocatorCommonText.phone,": ").concat(t.phone,"</div>")),""!=t.fax&&(e+='<div class="phone">'.concat(StoreLocatorCommonText.fax,": ").concat(t.fax,"</div>")),e+="</div>"},t.prototype.getOpeningHours=function(t){var e,n,o,r,c="";if(t.openingHours&&t.openingHours.length>0){c='<div class="opening-hours">\n <table>';
1try{for(var a=i(t.openingHours),s=a.next();!s.done;s=a.next()){var l=s.value;c+="<tr><td>".concat(l.day,"</td><td>");try{for(var u=(o=void 0,i(l.hours)),d=u.next();!d.done;d=u.next()){c+=d.value+" </br>"}}catch(t){o={error:t}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}c+="</td></tr>"}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}c+="</table>"}return c},t.prototype.getDetails=function(t){var e='<ul>\n <li>\n <a target="_blank" href="'.concat(t.routeUrl,'" class="route">\n ').concat(StoreLocatorCommonText.route,"\n </a>\n </li>");return t.website&&(e+='<li>\n <a target="_blank" href="'.concat(t.website,'" class="website">\n ').concat(StoreLocatorCommonText.website,"\n </a>\n </li>")),t.email&&(e+='<li>\n <a target="_blank" href="mailto:'.concat(t.email,'" class="email">\n ').concat(StoreLocatorCommonText.email,"\n </a>\n </li>\n")),e+="</ul>"},t.prototype.getImage=function(t){return t.image?'<img src="'.concat(t.image,'" />'):""},t.prototype.getFieldsOfCompetence=function(t){var e,n;if(0==t.fieldOfCompetence.length)return"";var o="<ul class='fieldsOfCompetence'>";try{for(var r=i(t.fieldOfCompetence),c=r.next();!c.done;c=r.next()){var a=c.value;o+="<li>"+fieldOfCompetenceMapping[a]+"</li>"}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return o+="</ul>"},t.prototype.fetchStores=function(){return o(this,void 0,void 0,(function(){var t;return r(this,(function(e){switch(e.label){case 0:return t={country:this.getSelectedCountry(),region:this.getSelectedRegion(),search:"",fieldsOfCompetence:[]},[4,fetch(StoreLocatorSettings.storeHandlerUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filter:t,context:StoreLocatorSettings.context})})];case 1:return[4,e.sent().json()];case 2:return[2,e.sent().stores]}}))}))},t}())}}]);
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.