(self.webpackChunkanifit_de=self.webpackChunkanifit_de||[]).push([[978],{9217:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});n(2310),n(6059),n(5767),n(1246),n(9115),n(6253),n(6997),n(1181);var i=n(9755),o=n.n(i);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:String(t)}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"init",value:function(){function e(){var e=document.querySelectorAll(".article_amount_select select");[].forEach.call(e,(function(e){var i=e.previousElementSibling,o=e.nextElementSibling;t(e,o,i),e.addEventListener("change",(function(){t(e,o,i)})),i.addEventListener("click",(function(t){n(t,this,e)})),o.addEventListener("click",(function(t){n(t,this,e)}))}))}function t(e,t,n){var i=o()(t).data("max-amount")||60;parseInt(e.value)>1?n.classList.remove("disabled"):parseInt(e.value)<=1&&(n.classList.contains("disabled")||n.classList.add("disabled")),parseInt(e.value)<i?t.classList.remove("disabled"):parseInt(e.value)>=i&&(t.classList.contains("disabled")||t.classList.add("disabled"))}function n(e,t,n){e.preventDefault();var i=parseInt(n.value);if(t.classList.contains("article_amount_select_plus")){if(++i>(o()(t).data("max-amount")||60))return}else if(t.classList.contains("article_amount_select_minus")&&--i<1)return;n.value=i,n.dispatchEvent(new Event("change")),null!=n.oninput&&n.oninput()}function i(e,t){var n=document.querySelector(".article_reviews_page.active");t||(e>0?(t=n.nextElementSibling)||(t=n.parentNode.querySelector(".article_reviews_page")):(t=n.previousElementSibling)||(t=n.parentNode.querySelector(".article_reviews_page:last-child"))),n.classList.remove("active"),t.classList.add("active");var i=parseInt(t.getAttribute("data-index"),10),o=document.querySelector(".shop_slidedot.activedot"),a=document.querySelectorAll(".shop_slidedot")[i];o.classList.remove("activedot"),a.classList.add("activedot"),r(a)}function r(e){var t=document.querySelectorAll(".shop_slidedot");if(!(t.length<8)){e.parentNode.classList.add("dots_paginated");for(var n=0;n<t.length;n++)t[n].classList.remove("show_me"),t[n].classList.remove("foreshadow"),t[n].classList.remove("foreshadow_small");var i=e;for(n=0;n<=3;n++){var o=i.previousElementSibling;o&&(o.classList.add("show_me"),2==n&&o.classList.add("foreshadow"),3==n&&o.classList.add("foreshadow_small"),i=o)}var r=e;for(n=0;n<=3;n++){var a=r.nextElementSibling;a&&(a.classList.add("show_me"),2==n&&a.classList.add("foreshadow"),3==n&&a.classList.add("foreshadow_small"),r=a)}e.classList.add("show_me")}}function a(e){if("_blank"==this.target)return!0;e&&e.preventDefault();var t=u("div","article_gallery_image_popup_container",document.body);t.removeEventListener("click",l),t.addEventListener("click",l);var n=u("div","article_gallery_image_display",t),i=document.querySelector("div.article_image > a").href;n.style.backgroundImage="url("+i+")",n.removeEventListener("click",c),n.addEventListener("click",c);var o=u("a","article_gallery_image_closer",t);o.href="#",o.title="Schließen"}function c(e,t){e&&(e.preventDefault(),e.stopPropagation());var n=document.querySelector(".article_gallery_image.active a").parentNode.nextElementSibling;n||(n=document.querySelector(".article_gallery_image")),n.querySelector("a").click(),""==n.querySelector("a").getAttribute("data:href_video")?null==t&&document.querySelector("div.article_image > a").click():c()}function s(e,t){e&&(e.preventDefault(),e.stopPropagation());var n=document.querySelector(".article_gallery_image.active a").parentNode.previousElementSibling;n||(n=document.querySelector(".article_gallery_image:last-child")),n.querySelector("a").click(),""==n.querySelector("a").getAttribute("data:href_video")?null==t&&document.querySelector("div.article_image > a").click():s()}function l(e){e&&e.preventDefault();var t=document.querySelector("#article_gallery_image_popup_container");t&&t.parentNode.removeChild(t)}function u(e,t,n){var i=document.querySelector(e+"#"+t);return i||((i=document.createElement(e)).id=t,n.appendChild(i)),i}function d(e){e.preventDefault();var t=document.querySelector(".article_gallery_image.active");t&&t.classList.remove("active");var n=document.querySelector(".article_detail_left_side img.article_image"),i=document.querySelector("div.article_image a"),o=document.querySelector(".article_mobile_gallery img"),r=this.querySelector("img").src;n.src=r,n.src=this.href,o.src=r,o.src=this.href,i.href=this.getAttribute("data:href_original"),i.parentNode.style.backgroundImage="url("+r+")",i.target="",n.parentNode.parentNode.classList.remove("contains_video_link"),this.parentNode.classList.add("active");var a=this.getAttribute("data:href_video");""!=a&&(i.href=a,i.target="_blank",n.parentNode.parentNode.classList.add("contains_video_link"))}function h(e){var t=e.parentNode.querySelector(".shop_warning");t&&e.parentNode.removeChild(t)}function f(e){!function(e,t){var n=e.parentNode,i=n.querySelector(".shop_warning");i||((i=document.createElement("div")).classList.add("shop_warning"),n.insertBefore(i,e)),i.innerHTML=t,i.style.top=0,i.style.top=0-i.offsetHeight+10+"px"}(e,strings.shop_no_street_number)}function _(e){var t=e.options[e.selectedIndex],n=t.getAttribute("data-requires-answer"),i=t.getAttribute("data-requires-event-selection");v(n,"answer",t.value),v(i,"event_selection",t.value)}function v(e,t,n){var i=document.querySelector("#new_client_attribution_required_"+t);1===parseInt(e)?(i.querySelector("span").innerHTML="new_client_checkout_options6"==n?strings.new_client_attribution_required_answer_recommendation:strings.new_client_attribution_required_answe,i.classList.remove("hide")):i.classList.add("hide")}var p;function m(){var t=document.querySelectorAll(".shop_basket td.article_amount select");[].forEach.call(t,(function(t){t.oninput=function(){if(p&&window.clearTimeout(p),""!=this.value&&parseInt(this.value,10)>0){var t=this;p=window.setTimeout((function(){var n=document.querySelector(".shop_basket form");t.parentNode.classList.add("loading"),o().post(n.action,o()(n).serialize(),(function(t){var n=document.createElement("div");n.innerHTML=t;var i=new Array("shop_checkout_basket_summary","shop_basket_shipping_checks","shop_basket_article_list","article_points_preview");[].forEach.call(i,(function(e){document.querySelector("."+e)&&(document.querySelector("."+e).innerHTML=n.querySelector("."+e).innerHTML)})),m(),e()}))}),500)}}}))}function y(e){if(!e||"Neukunde"!=e.target.innerHTML){var t;e&&e.preventDefault(),(t=document.querySelector("#shop_categories > ul"))&&t.classList.remove("visible"),b();var n=document.querySelector("a.change_shop_client"),i=document.querySelector("div.shop_client_form");if(i.classList.toggle("visible"),i.innerHTML="",i.classList.contains("visible")){i.classList.add("loading");var r=n.href+"?"+Math.random();o()(i).load(r+" #content form[name=shop_client_form]",(function(){i.classList.remove("loading"),g()}))}}}function g(){var e=o()(".client_selection select"),t=o()(".client_selection input");e.change((function(){var n=e.val();n&&(t.val(n),o()('input[name="change_shop_client"][value="existing"]').prop("checked","checked"))})),t.keyup((function(){var n=t.val();n&&o()('option[value="'+n+'"]',e).length>0?(e.val(n),o()('input[name="change_shop_client"][value="existing"]').prop("checked","checked")):e.val(null)})),initInlineClientSearch()}function b(){var e=document.querySelector("#shop_sidebar");e&&e.classList.remove("visible")}function k(){o()(".add_to_basket").each((function(){o()(this).unbind("click").click((function(e){e.preventDefault();var t=this.href;if("button"===this.tagName.toLowerCase()){var n=this.parentNode;t=(t=n.action)+"?amount="+n.querySelector("select[name=amount]").value}S(t)}))}))}function S(e){L();var t=w(),n=o()(".shop_basket_link"),i=o()("#anifit_basket_total"),r=o()(".consultant_registration_sums"),a=o()("<div></div>");o()(document.body).append(a),-1==e.indexOf("?")&&(e+="?"),a.load(e+"&"+Math.random()+" #content",(function(){var e=a.find(".shop_notification");o()("#shop_popup_content").html(e.html());var c=a.find(".shop_basket_link");if(n.html(c.html()),r.length){var s=a.find(".consultant_registration_sums");r.html(s.html())}i&&(s=a.find(".shop_page_basket_total"),i.html(s.html())),a.remove(),t.removeClass("loading"),q(),function(e){var t,n,i;e.find("form").submit((function(t){t&&t.preventDefault(),S(this.action+"?"+e.find("form").serialize())})),e.find(".add_to_basket").click((function(e){e.preventDefault(),S(this.href)})),e.find(".add_more_articles").click((function(e){e.preventDefault(),E()})),(i=document.querySelector(".shop_article_added select"))&&(i.oninput=function(){p&&window.clearTimeout(p),""!=this.value&&parseInt(this.value,10)>0&&(p=window.setTimeout((function(){var e=document.querySelector("#shop_basket_popup button.save_amount");e&&(e.classList.remove("hidden"),e.click(),e.classList.add("hidden"))}),500))}),function(){var e=document.querySelector("#shop_basket_popup");if(e){var t=document.querySelector("#shop_basket_popup form");e.style.height=t.offsetHeight+"px",e.style.marginTop=0-Math.floor(t.offsetHeight/2)+"px",e.style.width=t.offsetWidth+"px",e.style.marginLeft=0-Math.floor(t.offsetWidth/2)+"px",e.offsetHeight>document.body.offsetHeight?(e.style.top=document.querySelector("html").scrollTop+"px",e.style.marginTop="0px",e.style.marginLeft="0px",e.classList.add("absolute")):e.classList.remove("absolute")}}(),t="#shop_popup_content #variant_uid_selection tr,  #shop_popup_content #variant_uid_selection_mobile a",n=document.querySelectorAll(t),[].forEach.call(n,(function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=this.querySelector("a");"a"==this.tagName.toLowerCase()&&(t=this),S(t.href)}))}))}(t)}))}function L(){var e=o()("#shop_overlay");e.length||(e=o()('<div id="shop_overlay"></div>'),o()(document.body).append(e)),e.css({display:"block"}),e.click((function(){E()}))}function w(){var e=o()("#shop_basket_popup");return e.length?document.querySelector("#shop_popup_content").innerHTML="":(e=o()('<div id="shop_basket_popup"></div>'),o()(document.body).append(e),e.append(o()('<div id="shop_popup_content"></div>'))),e.removeClass("loading"),e.addClass("loading"),e.css({display:"block"}),e}function q(){var e=o()("#shop_basket_popup");if(e.removeClass("loading"),!o()(".popup_closer",e).length){var t=o()('<a href="#" class="popup_closer"></a>');t.click((function(e){e.preventDefault(),E()})),e.append(t)}}function E(){o()("#shop_overlay, #shop_basket_popup").each((function(){o()(this).remove()}));var e=document.querySelector("#anifit_shop_categories");e&&e.classList.remove("open"),l()}function C(e){if(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}}function x(){var e=o()('select[name="delivery_rhythm"]').val(),t=o()('select[name="delivery_rhythm_cycle"]').val(),n=o()("#rhythm_warning");e<7&&"Tage"===t?n.removeClass("hidden"):n.hasClass("hidden")||n.addClass("hidden")}o()((function(){window.reduced_mobile_header=document.querySelector(".reduced_header_for_mobile"),window.last_scroll_y=0,o()("#shop_categories .has_children").each((function(){var e=o()(this).find("a")[0];o()(e).click((function(e){e.preventDefault(),o()(this).parent().toggleClass("selected")}))})),document.querySelector("#open_anifit_shop_categories_menu")&&(document.querySelector("#open_anifit_shop_categories_menu").onclick=function(e){e.preventDefault()}),document.querySelector("#open_anifit_website_menu")&&(document.querySelector("#open_anifit_website_menu").onclick=function(e){e.preventDefault()}),document.querySelector("#open_my_provital_menu")&&document.querySelector("#my_provital_menu")&&(document.querySelector("#open_my_provital_menu").onclick=function(e){e.preventDefault()}),o()("#shop_categories .has_children").length&&!o()("#shop_categories .selected").length&&o()(o()("#shop_categories .has_children")[0]).addClass("selected"),o()("input[name=delivery_date]").length&&datePickerController.createDatePicker({formElements:{delivery_date:"%d.%m.%Y"},noFadeEffect:1}),o()("#shop_quick_order").length&&(o()("#shop_quick_order").addClass("js_active"),o()("#shop_quick_order .category_content").hide().prev().css("cursor","pointer").click((function(){o()(this).parent().hasClass("active")?o()(this).parent().removeClass("active"):o()(this).parent().addClass("active"),o()(this).next().slideToggle()}))),o()(window).keydown((function(e){27==e.keyCode&&E()})),k(),o()(".partnerpage_article a").each((function(){o()(this).click((function(e){e.preventDefault(),L();var t=w();t.addClass("product_detail_popup"),o()("#shop_popup_content").load(this.href+" #article_datasheet",(function(){q(),t.removeClass("loading"),k()}))}))})),o()("a.toggleDetails").each((function(){o()(this).click((function(e){e.preventDefault(),o()(this).parents("div.content").find("tr.details").toggleClass("hide")}))})),o()("a.shop_text_popup").each((function(){o()(this).click((function(e){e.preventDefault(),L();var t=w();t.addClass("display_text_popup"),t.addClass(this.getAttribute("data-popup_class")),o()("#shop_popup_content").load(this.href+" .shop_display_text",(function(){q(),t.removeClass("loading")}))}))})),o()(".shop_client_id input").each((function(){o()(this).keydown((function(e){13==e.which&&(e.preventDefault(),o()(this).next().click())}))})),o()(".shop_checkout_section .auto_submit").each((function(){o()(this).change((function(){if(this.classList.contains("no_validation")){var e=document.createElement("input");e.type="hidden",e.name="no_validation",e.value=1,document.querySelector("#shop_content form.checkout_form").appendChild(e)}o()(".section_input").val(o()(".shop_checkout_navigation button.active").val()).removeClass("hidden").click().addClass("hidden")}))})),o()(".shop_checkout form").submit((function(e){o()(this).hasClass("submitting")?e.preventDefault():o()(this).addClass("submitting")}));var t,n,l,u,v,p=document.querySelector("#open_shop_categories");p&&p.addEventListener("click",(function(e){var t;e.preventDefault(),(t=document.querySelector("#shop_client_selection form"))&&t.classList.remove("visible"),b(),document.querySelector("#shop_categories ul").classList.toggle("visible")})),o()((function(){o()(".change_this_bank_value").each((function(){o()(this).click((function(e){e.preventDefault(),o()(this).prev().css({display:"none"}),o()(this).next().css({display:"block"}),o()(this).css({display:"none"})}))}))})),o()("a.change_shop_client").click(y),o()('form[name="shop_client_form"] .error').length>0&&y(),o()('form[name="shop_client_form"]').length>0&&g(),o()("#shop_client_selection input[type=text]").click((function(){o()("#change_shop_client_existing").click()})),function(){var e=document.querySelector(".shop_login");if(e){var t=document.querySelector("button[name=use_instant_login]");e.addEventListener("submit",(function(e){return e.submitter===t||this.classList.add("shop_login_loading"),!0}))}}(),o()("input[name=delivery_date]").click((function(){o()("#fld_delivery_date_selection2").prop("checked","checked")})).focus((function(){o()(this).click()})),document.querySelector('select[name="delivery_rhythm"]')&&(document.querySelector('select[name="delivery_rhythm"]').addEventListener("change",(function(){x()})),document.querySelector('select[name="delivery_rhythm_cycle"]').addEventListener("change",(function(){x()}))),m(),(t=document.querySelector('select[name="new_client_attribution_options"]'))&&(t.addEventListener("change",(function(e){_(this)})),_(t)),n=document.querySelectorAll(".shop_checkout_overview .checkout_errors li"),[].forEach.call(n,(function(e){e.addEventListener("click",(function(e){var t,n=this.parentNode.getAttribute("data-section");n=parseInt(n,10)-1,t=n,o()(".shop_checkout_section").addClass("hidden"),o()(o()(".shop_checkout_section")[t]).removeClass("hidden"),o()(".shop_checkout_navigation button").removeAttr("class"),o()(o()(".shop_checkout_navigation button")[t]).addClass("gradient_red active"),o()(".section_input").val(o()(".shop_checkout_navigation button.active").val())}))})),function(){for(var e=["client_address","deliveryaddress_address"],t=0;t<e.length;t++){var n=document.querySelector('input[name="'+e[t]+'"]');n&&n.addEventListener("blur",(function(e){/\d/.test(this.value)?h(this):f(this)}))}}(),function(){var e=document.querySelectorAll("div.article_gallery_image a");if(e.length){[].forEach.call(e,(function(e){e.addEventListener("mouseover",d),e.addEventListener("click",d)}));var t=document.querySelector("div.article_image > a");t.addEventListener("click",a),window.addEventListener("keydown",(function(e){C(t)&&(39==e.keyCode&&c(),37==e.keyCode&&s())})),document.querySelector(".article_mobile_gallery_left").addEventListener("click",(function(e){c(e,1)})),document.querySelector(".article_mobile_gallery_right").addEventListener("click",(function(e){s(e,1)}))}}(),l=document.querySelectorAll("#variant_uid_selection tr"),[].forEach.call(l,(function(e){e.addEventListener("click",(function(){var e=this.querySelector("a");document.location.href=e.href}))})),function(){var e=document.querySelector(".articles_reviews_left"),t=document.querySelector(".articles_reviews_right"),n=document.querySelector("#article_reviews");if(e&&t){e.addEventListener("click",(function(e){e.preventDefault(),i(-1),window.scrollTo({top:n.offsetTop+100,behavior:"smooth"})})),t.addEventListener("click",(function(e){e.preventDefault(),i(1),window.scrollTo({top:n.offsetTop+100,behavior:"smooth"})}));var o=document.querySelectorAll(".shop_slidedot");[].forEach.call(o,(function(e){e.addEventListener("click",(function(e){e.preventDefault(),document.querySelector(".article_reviews_page.active");var t=parseInt(this.getAttribute("data-index"),10);i(0,document.querySelectorAll(".article_reviews_page")[t])}))})),r(o[0])}window.addEventListener("keydown",(function(t){C(e)&&(39==t.keyCode&&i(1),37==t.keyCode&&i(-1))}))}(),u=document.querySelectorAll(".article_tab_selection li a"),v=0,[].forEach.call(u,(function(e){e.counter=v,e.addEventListener("click",(function(e){e.preventDefault(),function(){var e=document.querySelectorAll(".article_tab_selection li.active");[].forEach.call(e,(function(e){e.classList.remove("active")}));var t=document.querySelectorAll(".article_detail_tabs > div.active");[].forEach.call(t,(function(e){e.classList.remove("active")}))}(),this.parentNode.classList.add("active"),document.querySelectorAll(".article_detail_tabs > div")[this.counter].classList.add("active")})),v++})),e(),function(){var e=document.querySelector("#article_bottom_bar, .shop_checkout_forward"),t=document.querySelector("#footer_info_container");function n(){(window.scrollY||window.pageYOffset)>=450?(e.classList.add("visible"),t.classList.add("bar_padding")):(e.classList.remove("visible"),t.classList.remove("bar_padding"))}e&&t&&window.addEventListener("scroll",n)}(),function(){function e(){var e=window.scrollY||window.pageYOffset;e>window.last_scroll_y?e>=150&&(document.body.classList.add("reduced_header_for_mobile"),document.body.classList.add("scrolled_down")):e<50&&(window.reduced_mobile_header||document.body.classList.remove("reduced_header_for_mobile"),document.body.classList.remove("scrolled_down")),window.last_scroll_y=e}document.querySelector(".partnerpage_contact_title")&&window.addEventListener("scroll",e)}(),o()(".shop_checkout_section .ajax_submit").each((function(){o()(this).change((function(){var e,t,n,i,o,r;e=document.querySelector("form.checkout_form"),t=e.action,n=new FormData(e),fetch(t,{method:"POST",body:n}).then((function(e){return e.text()})).then((function(e){var t,n,i,o=(new DOMParser).parseFromString(e,"text/html");t=o,n=document.querySelector(".shop_checkout_purchase_block"),i=t.querySelector(".shop_checkout_purchase_block"),n.innerHTML=i.innerHTML,n=document.querySelector(".rightside_checkout_top_block"),i=t.querySelector(".rightside_checkout_top_block"),n.innerHTML=i.innerHTML})),o=(i=this).parentNode,(r=o.parentNode.querySelector("label.selected"))&&(r.classList.remove("selected"),function(e){var t=e.getAttribute("data-show-id");if(t){var n=document.querySelector("#"+t);n&&n.classList.add("hidden")}}(r.querySelector("input"))),o.classList.add("selected"),function(e){var t=e.getAttribute("data-show-id");if(t){var n=document.querySelector("#"+t);n&&n.classList.remove("hidden")}}(i)}))}))})),window.formsubmit=function(e){return!0}}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}()},9211:function(e,t,n){"use strict";n(4531),n(2850),n(2773),n(5767),n(1246),n(9115),n(6253),n(6997),n(1181);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:String(t)}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.querySelector("div.client_search_container"),this.container&&(this.search_container=container.querySelector("div.client_search_container"),this.list=container.querySelector("ul.candidates"),this.link=container.querySelector(".show_client_search"),this.spinner=container.querySelector(".spinner"),this.search_input=container.querySelector('input[name="client_search"]'),this.client_id_input=document.querySelector('input[name="client_id"]'))}var t,n,i;return t=e,(n=[{key:"init",value:function(){this.initInfoIcons(),this.container&&(this.link.addEventListener("click",this.displaySearchInterface.bind(this)),this.initSearch())}},{key:"displaySearchInterface",value:function(e){var t=this;e.preventDefault(),this.spinner.classList.add("ajaxloading_neutral"),fetch(this.link.getAttribute("data-uri_fetch_clients")).then((function(e){return e.json()})).then((function(e){t.list.innerHTML="",e.forEach((function(e){var n=document.createElement("li");n.setAttribute("data-value",e.id),n.textContent=e.firstname+" "+e.lastname,n.classList.add("found"),t.list.appendChild(n)})),t.initCandidates(),t.search_container.classList.remove("hidden"),t.search_input.classList.remove("hidden"),t.link.classList.add("hidden"),t.spinner.classList.remove("ajaxloading_neutral")})).catch((function(e){return alert("Ein Fehler ist aufgetreten: "+e)}))}},{key:"getCandidates",value:function(){return this.list.querySelectorAll("li")}},{key:"initCandidates",value:function(){var e=this;this.getCandidates().forEach((function(t){return t.addEventListener("click",e.chooseCandidate.bind(e))}))}},{key:"chooseCandidate",value:function(e){this.selectCandidate(e.currentTarget)}},{key:"selectCandidate",value:function(e){var t=this.list.querySelector(".selected");t&&t.classList.remove("selected"),this.client_id_input.value=e.getAttribute("data-value"),e.classList.add("selected")}},{key:"initSearch",value:function(){this.search_input.addEventListener("input",this.searchCandidates.bind(this))}},{key:"initInfoIcons",value:function(){var e=this,t=document.querySelectorAll(".color_info");[].forEach.call(t,(function(t){t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.hideInfoIcons(),this.parentNode.querySelector(".color_info_text").classList.toggle("hidden")}))})),document.body.addEventListener("click",(function(t){e.hideInfoIcons()}))}},{key:"hideInfoIcons",value:function(){var e=document.querySelectorAll(".color_info_text");[].forEach.call(e,(function(e){e.classList.add("hidden")}))}},{key:"searchCandidates",value:function(){var e=this.search_input.value.toLowerCase();this.getCandidates().forEach((function(t){return t.textContent.toLowerCase().includes(e)?t.classList.add("found"):t.classList.remove("found")}));var t=this.search_container.querySelectorAll(".found");1==t.length&&this.selectCandidate(t[0])}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.initInlineClientSearch=function(){(new a).init()},document.addEventListener("DOMContentLoaded",(function(){initInlineClientSearch()}),!1)},9395:function(e,t,n){var i=n(2985),o=n(4253),r=n(1355),a=/"/g,c=function(e,t,n,i){var o=String(r(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+String(i).replace(a,"&quot;")+'"'),c+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(c),i(i.P+i.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},2310:function(e,t,n){"use strict";var i=n(2985),o=n(50)(5),r="find",a=!0;r in[]&&Array(1)[r]((function(){a=!1})),i(i.P+i.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(7722)(r)},4531:function(e,t,n){"use strict";n(9395)("link",(function(e){return function(t){return e(this,"a","href",t)}}))}}]);