var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n["throw"](t))}catch(e){o(e)}}function c(t){t.done?i(t.value):r(t.value).then(s,a)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(a){s=[6,a];r=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-6086d49a.system.js","./p-4fc8d94d.system.js","./p-6829a61b.system.js","./p-36930145.system.js"],(function(t){"use strict";var e,i,n,r,o,s,a,c,l,u,h,d,p;return{setters:[function(t){e=t.r;i=t.e;n=t.h;r=t.H;o=t.c},function(t){s=t.y;a=t.B;c=t.h;l=t.V;u=t.g;h=t.z;d=t.c},function(){},function(t){p=t.t}],execute:function(){var m=t("huk_product_selection",function(){function t(t){var n=this;e(this,t);this.products=[];this.caption={items:[],additionalItems:[]};this.payment="";this.showAdditional=false;this.validity="not-validated";this.errorMessage=[];this.componentName="product-selection";this.toggleAdditional=function(){n.showAdditional=!n.showAdditional;setTimeout((function(){s(n.element)}),50)};this.equalizeAllHeightsThrottled=p((function(){n.equalizeAllHeights()}),100);this.valueChanged=i(this,"valueChanged",3)}t.prototype.selectProduct=function(t){this.value=this.products[t].value;this.valueChanged.emit(this.value)};t.prototype.getSelectedProduct=function(){var t=this;return this.products.find((function(e){return e.value===t.value}))};t.prototype.getSelectedProductIndex=function(){var t=this;return this.products.findIndex((function(e){return e.value===t.value}))};t.prototype.windowResizeListener=function(){this.equalizeAllHeightsThrottled()};t.prototype.productChangeWatcher=function(){var t=this;setTimeout((function(){t.equalizeAllHeights()}),100)};t.prototype.equalizeAllHeights=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){s(this.element);s(this.element,".js-equal-height-container",".js-equal-height-title");return[2]}))}))};t.prototype.hasRecommendationLabel=function(){return this.products.filter((function(t){return t.recommended})).length>0};t.prototype.getDetailListItemsPartial=function(t,e){var i=[];t.forEach((function(t,n){var r="";if(e&&e[n]!==undefined){r+=e[n].label}if(!!t.label){if(r.length>0){r+="\n"}r+=t.label}var o={icon:t.icon||"check",label:r,helptext:e[n].helptext};i.push(o)}));return i};t.prototype.componentDidRender=function(){s(this.element);s(this.element,".js-equal-height-container",".js-equal-height-title")};t.prototype.getDetailListItems=function(t){var e=this.getDetailListItemsPartial(t.items,this.caption.items);if(this.showAdditional){e=e.concat(this.getDetailListItemsPartial(t.additionalItems,this.caption.additionalItems))}return e};t.prototype.renderCaptionItem=function(t){return n("div",{class:a(this,"caption__item",!!t.helptext&&"helpbutton")+" js-equal-height-item"},t.label,!!t.helptext&&n("huk-helpbutton",{helptext:t.helptext}))};t.prototype.renderProductDetailsItem=function(t){return n("div",{class:a(this,"product__details__item js-equal-height-item")},t.icon&&n("div",{class:a(this,"product__details__item__icon",t.icon)}),n("span",{class:a(this,"product__details__item__label")},t.label))};t.prototype.render=function(){var t=this;var e=c({componentName:this.componentName,modifier:[this.products.length>0&&"productcount-"+this.products.length,this.showAdditional&&"show-additional",this.hasRecommendationLabel()&&"with-recommendation"]});var i=this.getSelectedProduct();var o=d(this.errorMessage);return n(r,{class:e},n("div",{class:a(this,"container")},n("div",{class:a(this,"caption js-equal-height-container")},n("div",{class:a(this,"caption__headline js-equal-height-item")},n("span",{class:a(this,"caption__headline__text")},"Leistungen")),n("div",{class:a(this,"caption__items")},!!this.caption&&this.caption.items.map((function(e){return t.renderCaptionItem(e)})),this.showAdditional&&this.caption&&this.caption.additionalItems.map((function(e){return t.renderCaptionItem(e)})))),n("div",{class:a(this,"products")},this.products.map((function(e,i){return n("div",{class:a(t,"product",e.recommended&&"featured",e.value===t.value&&"selected"),onClick:function(){return t.selectProduct(i)}},e.recommended&&n("huk-recommendation-label",{text:e.recommendationText,helptext:e.recommendationHelptext}),n("div",{class:a(t,"product__head js-equal-height-container")},n("div",{class:a(t,"product__head__inner js-equal-height-item")},t.products.length>1&&n("div",{class:a(t,"product__checkmark")},n("huk-checkmark",{active:e.value===t.value})),!!e.icons&&n("div",{class:a(t,"product__icons")},h(e.icons).map((function(t){return n("huk-icon",{icon:t,modifier:"xs"})}))),n("p",{class:a(t,"product__title js-equal-height-title")},e.label,e.sublabel&&n("div",{class:a(t,"product__title__sub")},e.sublabel)),n("p",{class:a(t,"product__price")},e.price!==undefined&&!Number.isNaN(e.price)&&n("span",{class:a(t,"product__price__value")},u(e.price)),n("span",{class:a(t,"product__price__payment")},t.payment))),n("div",{class:a(t,"product__details")},e.items.map((function(e){return t.renderProductDetailsItem(e)})),t.showAdditional&&e.additionalItems.map((function(e){return t.renderProductDetailsItem(e)})))))})))),!!i&&n("div",{class:a(this,"details","selected-"+this.getSelectedProductIndex())},n("huk-list",{modifier:"icons separators small",items:this.getDetailListItems(i)})),!!this.caption.additionalItems&&this.caption.additionalItems.length>0&&n("huk-divider",{"is-clickable":true,text:"Weitere Leistungen "+(this.showAdditional?"verbergen":"anzeigen"),onClicked:this.toggleAdditional}),l.isInvalid(this.validity)&&o.map((function(t){return n("huk-error",{message:t})})))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:true,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{products:["productChangeWatcher"]}},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return".huk-text--white{color:#fff}.huk-text--orange{color:#fba308}.huk-text--mint{color:#00abba}.huk-text--mint-dark{color:#055e5f}\@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}\@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.product-selection{margin-bottom:1rem;display:block}\@media (min-width:768px){.product-selection{margin-bottom:1.5rem}}.product-selection__container{display:-ms-flexbox;display:flex}.product-selection__caption{display:none;-ms-flex-direction:column;flex-direction:column;padding-right:1rem}\@media (min-width:768px){.product-selection__caption{display:-ms-flexbox;display:flex}}.product-selection__caption__headline{position:relative;font-weight:700;font-size:19px;margin-bottom:2.55rem}.product-selection__caption__headline__text{position:absolute;bottom:1.125rem;left:0}.product-selection__caption__items{border-top:1px solid #cbcfd2}.product-selection__caption__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;position:relative;font-size:13px;padding:1.5rem 0;border-bottom:1px solid #e7e9ea;-webkit-box-sizing:border-box;box-sizing:border-box}.product-selection__caption__item:last-of-type{border-bottom:0}.product-selection__caption__item--helpbutton{padding-right:1.5rem}.product-selection__caption__item--helpbutton huk-helpbutton{position:absolute;top:50%;right:0;margin-top:-.5rem}.product-selection__products{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between;width:100%}\@media (min-width:768px){.product-selection__products{width:70%}}.product-selection__product{-webkit-transition:margin .15s ease-in-out 0ms;transition:margin .15s ease-in-out 0ms;position:relative;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-bottom:1rem}.product-selection__product:not(:last-child) .product-selection__product__head{border-right:0}.product-selection__product:first-child .product-selection__product__head{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.product-selection__product:last-child .product-selection__product__head{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.product-selection__product huk-recommendation-label{position:absolute;top:-2rem;left:0;right:0}.product-selection__product__checkmark{margin-bottom:.5rem}\@media (min-width:768px){.product-selection__product__checkmark{margin-bottom:1rem}}.product-selection__product__icons{margin-bottom:.5rem}\@media (min-width:768px){.product-selection__product__icons{margin-bottom:1rem}}.product-selection__product__icons>*{margin-right:.5rem}.product-selection__product__helpbutton{position:absolute;right:1rem}.product-selection__product__head{-webkit-transition:all .15s ease-in-out 0ms;transition:all .15s ease-in-out 0ms;display:block;background:#f7f7f8;padding:.5rem .5rem 0;border:1px solid #e7e9ea;width:100%}\@media (min-width:576px){.product-selection__product__head{padding:1rem 1rem 0}}.product-selection__product__head__inner{min-height:6rem;overflow:hidden}.product-selection__product__head:focus,.product-selection__product__head:hover{background-color:#fff}.product-selection__product__head:active{background-color:#f7f7f8}.product-selection__product__title{font-size:13px;font-weight:500;color:#35444c;margin:.5rem 0 0;white-space:pre-line;word-break:break-word;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;padding-bottom:.25rem}\@media (min-width:768px){.product-selection__product__title{font-size:16px}}.product-selection__product__title__sub{color:#808a90}.product-selection__product__price{display:block}.product-selection__product__price__value{display:block;font-size:19px;font-weight:700;color:#35444c;line-height:1.2;letter-spacing:-.5px}\@media (min-width:576px){.product-selection__product__price__value{letter-spacing:0}}\@media (min-width:768px){.product-selection__product__price__value{display:inline;font-size:23px}}.product-selection__product__price__payment{display:block;font-size:13px;font-weight:500;color:#808a90;padding-top:.25rem}\@media (min-width:768px){.product-selection__product__price__payment{font-size:16px}}.product-selection__product__details{display:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}\@media (min-width:768px){.product-selection__product__details{display:block;border-top:1px solid #cbcfd2;margin-top:1.5rem}}.product-selection__product__details__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:column;flex-direction:column;position:relative;font-size:13px;padding:1.5rem 0;border-bottom:1px solid #e7e9ea;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.product-selection__product__details__item:last-of-type{border-bottom:0}.product-selection__product__details__item__icon{margin:0 auto;background-size:100% auto;background-position:50%}.product-selection__product__details__item__icon--check{background-image:url(/stylelib/2_9/img/check.svg);height:13px;width:15px}.product-selection__product__details__item__icon--cross{background-image:url(/stylelib/2_9/img/cross.svg);height:15px;width:15px}.product-selection__product__details__item__icon+.product-selection__product__details__item__label{padding-top:.5rem}.product-selection__product.product-selection__product--selected+.product-selection__product .product-selection__product__head{border-left:1px solid transparent!important}.product-selection__product.product-selection__product--selected{z-index:1;margin-bottom:0}.product-selection__product.product-selection__product--selected .product-selection__product__head{background:#fff;-webkit-box-shadow:0 .625rem 1.25rem .313rem rgba(0,0,0,.1);box-shadow:0 .625rem 1.25rem .313rem rgba(0,0,0,.1);border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.product-selection__product.product-selection__product--featured.product-selection__product{margin-top:0}.product-selection__product.product-selection__product--featured .product-selection__product__head{border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.product-selection__product.product-selection__product--featured .product-selection__product__recommendation{display:block}.product-selection__product.product-selection__product--featured.product-selection__product--selected .product-selection__product__recommendation{background-color:#fba308}.product-selection__details{position:relative;display:block;border:1px solid #e7e9ea;border-radius:.25rem;background:#fff;margin-top:1.5rem;padding:0 1.5rem}.product-selection__details huk-list{margin-bottom:0}.product-selection__details:after,.product-selection__details:before{bottom:100%;border:solid transparent;content:\" \";height:0;width:0;position:absolute;pointer-events:none}.product-selection__details:after{border-color:transparent transparent #fff;border-width:6px;margin-left:-6px}.product-selection__details:before{border-color:transparent transparent #e7e9ea;border-width:7px;margin-left:-7px}.product-selection__details__additional{display:none}\@media (min-width:768px){.product-selection__details{display:none}}.product-selection>huk-divider{margin-top:1.5rem}.product-selection--show-additional .product-selection__details__additional{display:block}.product-selection--productcount-1 .product-selection__caption{width:50%;padding-right:2.5rem}.product-selection--productcount-1 .product-selection__product{width:100%;cursor:default}.product-selection--productcount-1 .product-selection__product__head{padding-left:2.5rem;padding-right:2.5rem}.product-selection--productcount-1 .product-selection__caption__headline{padding-top:2rem}.product-selection--productcount-1 .product-selection__details--selected-0:after,.product-selection--productcount-1 .product-selection__details--selected-0:before{left:50%}.product-selection--productcount-2 .product-selection__caption{width:40%}.product-selection--productcount-2 .product-selection__product{width:50%}.product-selection--productcount-2 .product-selection__details--selected-0:after,.product-selection--productcount-2 .product-selection__details--selected-0:before{left:25%}.product-selection--productcount-2 .product-selection__details--selected-1:after,.product-selection--productcount-2 .product-selection__details--selected-1:before{left:75%}.product-selection--productcount-3 .product-selection__caption{width:30%}.product-selection--productcount-3 .product-selection__product{width:33.333%}.product-selection--productcount-3 .product-selection__details--selected-0:after,.product-selection--productcount-3 .product-selection__details--selected-0:before{left:16.666%}.product-selection--productcount-3 .product-selection__details--selected-1:after,.product-selection--productcount-3 .product-selection__details--selected-1:before{left:50%}.product-selection--productcount-3 .product-selection__details--selected-2:after,.product-selection--productcount-3 .product-selection__details--selected-2:before{left:83.334%}.product-selection--with-recommendation .product-selection__container{padding-top:2rem}"},enumerable:true,configurable:true});return t}())}}}));