import{S as F}from"./search-filter-nav-DABRi11N.js";import"./citation-teaser-DxkloHTe.js";import"./alert-Cz1C1tZi.js";import{h as c,i as V,k as T,r as Y}from"./lit-element-DDcuVA3y.js";import{t as h}from"./custom-element-BhZVzxrc.js";import"./link-BqszdS6-.js";import"./accordion-jlNV6hx0.js";import{S as w,a as B,A as q,R as U,b as z,l as W,i as J}from"./form-CXKFUCAU.js";import"./data-protection-Ddt6jLcb.js";import"./personal-advising-jDe29mH7.js";import"./teaser-link-CUS6dUh1.js";import"./image-C3XFXZEk.js";import"./tag-list-CVSx497Y.js";import"./map-BqeXJeV5.js";import"./tab-menu-CjdR2i07.js";import"./search-result-DYsXjqBQ.js";import{e as n}from"./query-__j_ZMY6.js";import{n as l}from"./property-1JAdfsvf.js";import{s as Z}from"./variables-BWf6YqMz.js";import"./repeatable-container-C2i1p3Ui.js";import"./copy-link-BCGBdcMY.js";import{o as $}from"./query-assigned-elements-B9QUVdYT.js";import{F as K,a as Q,S as X}from"./form-control-dependency-mixin-D_1gc3TK.js";import"./datawrapper-DDLdBosY.js";import"./datawrapperEventlistener-DCUjlIED.js";import"./cookie-overlay-DCey0JyH.js";/* empty css */import{C as ee}from"./cookie-layer-00ENyUxO.js";import"./class-map-DaxCX8SI.js";import"./directive-Ctav8iJK.js";import"./button--onDark.styles-DnSVf0w0.js";import"./link--onDark.styles-DxjBwP18.js";import"./tab-menu--onDark.styles-DPUyobeK.js";import"./facet-2--onDark.styles-BLswIpI8.js";import"./when-BxLAFfhK.js";import"./unsafe-html-IgFVxnfP.js";import"./state-D77yjKEp.js";import"./sbk-element-D0ymjRIy.js";import"./_commonjsHelpers-CqkleIqs.js";import"./map-BTiu792s.js";import"./content-slider.styles-CxNV-t78.js";var te=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,re=(a,t,o,r)=>{for(var e=r>1?void 0:r?ae(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&te(t,o,e),e};let R=class extends c{createRenderRoot(){return this}};R=re([h("sbk-a-z-list")],R);const oe=V` :host { display: inline-block; height: var(--sbkBadgeSizingMaxHeight); min-width: var(--sbkBadgeSizingMinWidthText); padding: var(--sbkBadgeSpacingInsetTop) var(--sbkBadgeSpacingInsetRight) var(--sbkBadgeSpacingInsetBottom) var(--sbkBadgeSpacingInsetLeft); background-color: var(--sbkBadgeColorBgColorOnLightDefault); color: var(--sbkBadgeColorFgColorOnLightEnabled); font: var(--sbkBadgeTypographyLabel); border-radius: var(--sbkBadgeBorderRadiusDefault); } `;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(a,t,o,r)=>{for(var e=r>1?void 0:r?ie(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&se(t,o,e),e};let M=class extends c{static get styles(){return oe}render(){return T` <span> <slot></slot> </span> `}};M=ne([h("sbk-badge")],M);var le=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,ue=(a,t,o,r)=>{for(var e=r>1?void 0:r?pe(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&le(t,o,e),e};let E=class extends c{createRenderRoot(){return this}};E=ue([h("sbk-consultant-search")],E);var ce=Object.defineProperty,he=Object.getOwnPropertyDescriptor,O=(a,t,o,r)=>{for(var e=r>1?void 0:r?he(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&ce(t,o,e),e};let y=class extends c{connectedCallback(){super.connectedCallback(),this._form.addEventListener("submit",a=>{a.preventDefault(),this._onSubmit()})}createRenderRoot(){return this}_onSubmit(){const a=w.validate(this._form);if(a.length){const t=a[0];t.focus({preventScroll:!0}),t.scrollIntoView({behavior:"smooth"})}else fetch(this._form.action,{method:this._form.method,body:new FormData(this._form)}).then(t=>t.text()).then(t=>{this.innerHTML=t,this._submitButton.disabled=!1,this._resultContainer.scrollIntoView({behavior:"smooth"}),this._form.addEventListener("submit",o=>{o.preventDefault(),this._onSubmit()})})}};O([n("form")],y.prototype,"_form",2);O([n("sbk-banner")],y.prototype,"_resultContainer",2);O([n("sbk-button")],y.prototype,"_submitButton",2);y=O([h("sbk-bmi-calculator")],y);var de=Object.defineProperty,me=Object.getOwnPropertyDescriptor,be=(a,t,o,r)=>{for(var e=r>1?void 0:r?me(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&de(t,o,e),e};let x=class extends c{createRenderRoot(){return this}};x=be([h("sbk-office-search")],x);var ve=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,C=(a,t,o,r)=>{for(var e=r>1?void 0:r?fe(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&ve(t,o,e),e};let g=class extends c{connectedCallback(){super.connectedCallback(),this._form.addEventListener("submit",a=>{a.preventDefault(),this._onSubmit()})}createRenderRoot(){return this}_onSubmit(){const a=w.validate(this._form);if(a.length){const t=a[0];t.focus({preventScroll:!0}),t.scrollIntoView({behavior:"smooth"})}else fetch(this._form.action,{method:this._form.method,body:new FormData(this._form)}).then(t=>t.text()).then(t=>{this._container.innerHTML=t,this._container.scrollIntoView({behavior:"smooth"}),this._form.addEventListener("submit",o=>{o.preventDefault(),this._onSubmit()})})}};C([n("form")],g.prototype,"_form",2);C([n("sbk-banner")],g.prototype,"_container",2);C([n("sbk-button")],g.prototype,"_submitButton",2);g=C([h("sbk-ovulation-calculator")],g);var _e=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(a,t,o,r)=>{for(var e=r>1?void 0:r?ye(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&_e(t,o,e),e};let b=class extends c{connectedCallback(){super.connectedCallback(),this._form.addEventListener("submit",a=>{a.preventDefault(),this._onSubmit()}),this._pagination&&this._pagination.addEventListener("page-change",a=>{a.preventDefault();const t=a.detail.value;this._handlePageChange(t)}),this._resultContainer&&(this._resultHeading.focus({preventScroll:!0}),this._resultHeading.scrollIntoView({behavior:"smooth"}))}createRenderRoot(){return this}_onSubmit(){let a=[];const t=this._form.querySelectorAll("sbk-input");for(let o=0;o<t.length;o++){const r=t[o];if(r instanceof B){const e=r.getValidators();r.handleErrors(e,r.value??""),r.invalid&&(a=[...a,r])}}if(a.length){const o=a[0];o.focus({preventScroll:!0}),o.scrollIntoView({behavior:"smooth"})}else fetch(this._form.action,{method:this._form.method,body:new FormData(this._form)}).then(o=>o.text()).then(o=>{this._replace(o)})}_handlePageChange(a){fetch(a,{}).then(t=>t.text()).then(t=>{this._replace(t)})}_replace(a){this.outerHTML=a}};f([n("form")],b.prototype,"_form",2);f([n("sbk-pagination")],b.prototype,"_pagination",2);f([n(".physician-results")],b.prototype,"_resultContainer",2);f([n(".physician-results__heading")],b.prototype,"_resultHeading",2);f([n("sbk-button")],b.prototype,"_submitButton",2);b=f([h("sbk-physician-search")],b);var ge=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,d=(a,t,o,r)=>{for(var e=r>1?void 0:r?Se(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&ge(t,o,e),e};let p=class extends c{constructor(){super(...arguments),this.formTypeNo=0,this.formTypeYes=0,this.headingNo="",this.headingYes="",this.labelNo="",this.labelYes="",this.titleUidNo=0,this.titleUidYes=0,this.question=""}connectedCallback(){super.connectedCallback()}render(){return T` <div class="element-container"> <sbk-banner variant="muted"> <p class="text-bold">${this.question}</p> <div class="helpful-survey__button_wrapper"> <sbk-modal @modal-open=${this._onModalOpenYes} heading=${this.headingYes}> <sbk-button slot="triggerElement" variant="secondary">${this.labelYes}</sbk-button> <div id="surveyModalYesContent"></div> </sbk-modal> <sbk-modal @modal-open=${this._onModalOpenNo} heading=${this.headingNo}> <sbk-button slot="triggerElement" variant="secondary">${this.labelNo}</sbk-button> <div id="surveyModalNoContent"></div> </sbk-modal> </div> </sbk-banner> </div> `}_onModalOpenYes(){this._onModalOpen(this.formTypeYes,this.titleUidYes,this._surveyModalYesContent)}_onModalOpenNo(){this._onModalOpen(this.formTypeNo,this.titleUidNo,this._surveyModalNoContent)}_onModalOpen(a,t,o){const r="?type="+a+"&noforce=1&tx_powermail_pi1[uid"+t+"]="+encodeURIComponent(document.title);fetch(r).then(e=>e.text()).then(e=>{this._addContent(e,o)})}_addContent(a,t){t.innerHTML=a,this._form.removeEventListener("submit",this._sbkForm._onSubmit),this._form.addEventListener("submit",o=>{o.preventDefault(),this._onSubmit(t)})}createRenderRoot(){return this}_onSubmit(a){let t=[];const o=this._form.querySelectorAll("sbk-input");for(let r=0;r<o.length;r++){const e=o[r];if(e instanceof B){const s=e.getValidators();e.handleErrors(s,e.value??""),e.invalid&&(t=[...t,e])}}if(t.length){const r=t[0];r.focus({preventScroll:!0}),r.scrollIntoView({behavior:"smooth"})}else{let s=a.querySelector("#surveyModal").dataset.surveyFormPage+"?"+this._form.action.split("?")[1];s=s.split("&cHash")[0];const i=new FormData(this._form);i.append(this._submitButton.name??"",this._submitButton.value??""),fetch(s,{method:this._form.method,body:i}).then(_=>_.text()).then(_=>{a.innerHTML=_,this._form.addEventListener("submit",H=>{H.preventDefault(),this._onSubmit(a)})})}}};d([l({type:Number,attribute:"form-type-no"})],p.prototype,"formTypeNo",2);d([l({type:Number,attribute:"form-type-yes"})],p.prototype,"formTypeYes",2);d([l({attribute:"heading-no"})],p.prototype,"headingNo",2);d([l({attribute:"heading-yes"})],p.prototype,"headingYes",2);d([l({attribute:"label-no"})],p.prototype,"labelNo",2);d([l({attribute:"label-yes"})],p.prototype,"labelYes",2);d([l({type:Number,attribute:"title-uid-no"})],p.prototype,"titleUidNo",2);d([l({type:Number,attribute:"title-uid-yes"})],p.prototype,"titleUidYes",2);d([l()],p.prototype,"question",2);d([n("form")],p.prototype,"_form",2);d([n("sbk-form")],p.prototype,"_sbkForm",2);d([n("#surveyModalYesContent")],p.prototype,"_surveyModalYesContent",2);d([n("#surveyModalNoContent")],p.prototype,"_surveyModalNoContent",2);d([n("sbk-form sbk-button")],p.prototype,"_submitButton",2);p=d([h("sbk-helpful-survey")],p);var ke=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Oe=(a,t,o,r)=>{for(var e=r>1?void 0:r?Pe(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&ke(t,o,e),e};let j=class extends c{createRenderRoot(){return this}};j=Oe([h("sbk-search-info")],j);var Ce=Object.defineProperty,De=Object.getOwnPropertyDescriptor,k=(a,t,o,r)=>{for(var e=r>1?void 0:r?De(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&Ce(t,o,e),e};let v=class extends c{constructor(){super(...arguments),this.errorMessageSeveranceAsSinglePayment="",this.errorMessageSpousePrivateInsured="",this._onSeveranceAsSinglePaymentRadioGroupChange=()=>{const a=this._severanceAsSinglePaymentRadioGroup.querySelector("sbk-radio[checked]");a&&a instanceof F&&(a.value==="1"?(this._severanceAsSinglePaymentRadioGroup.invalid=!0,this._severanceAsSinglePaymentRadioGroup.annotation=this.errorMessageSeveranceAsSinglePayment,this._severanceAsSinglePaymentRadioGroup._radioButtons.forEach(t=>{t.invalid=!0})):(this._severanceAsSinglePaymentRadioGroup.invalid=!1,this._severanceAsSinglePaymentRadioGroup.annotation="",this._severanceAsSinglePaymentRadioGroup._radioButtons.forEach(t=>{t.invalid=!1})))},this._onSpousePrivateInsuredRadioGroupChange=()=>{const a=this._spousePrivateInsuredRadioGroup.querySelector("sbk-radio[checked]");a&&a instanceof F&&(a.value==="1"?(this._spousePrivateInsuredRadioGroup.invalid=!0,this._spousePrivateInsuredRadioGroup.annotation=this.errorMessageSeveranceAsSinglePayment,this._spousePrivateInsuredRadioGroup._radioButtons.forEach(t=>{t.invalid=!0})):(this._spousePrivateInsuredRadioGroup.invalid=!1,this._spousePrivateInsuredRadioGroup.annotation="",this._spousePrivateInsuredRadioGroup._radioButtons.forEach(t=>{t.invalid=!1})))}}connectedCallback(){super.connectedCallback(),this._severanceAsSinglePaymentRadioGroup.addEventListener("radio-group-change",this._onSeveranceAsSinglePaymentRadioGroupChange),this._spousePrivateInsuredRadioGroup.addEventListener("radio-group-change",this._onSpousePrivateInsuredRadioGroupChange)}createRenderRoot(){return this}};k([n("#severanceAsSinglePaymentGroup")],v.prototype,"_severanceAsSinglePaymentRadioGroup",2);k([n("#spousePrivateInsuredGroup")],v.prototype,"_spousePrivateInsuredRadioGroup",2);k([l({attribute:"error-message-severance-as-single-payment"})],v.prototype,"errorMessageSeveranceAsSinglePayment",2);k([l({attribute:"error-message-spouse-private-insured"})],v.prototype,"errorMessageSpousePrivateInsured",2);v=k([h("sbk-voluntarily-insured-calculator")],v);var Ie=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,L=(a,t,o,r)=>{for(var e=r>1?void 0:r?Te(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&Ie(t,o,e),e};let P=class extends c{connectedCallback(){super.connectedCallback(),this._form.addEventListener("submit",a=>{a.preventDefault(),this._onSubmit()})}createRenderRoot(){return this}_onSubmit(){const a=w.validate(this._form);if(a.length){const t=a[0];t.focus({preventScroll:!0}),t.scrollIntoView({behavior:"smooth"})}else{const t=this._form.dataset.question,o=this._form.querySelector("sbk-radio");let r="";for(const e of new FormData(this._form).entries())e[0]==(o==null?void 0:o.name)&&(r=e[1].toString());fetch(`/?type=7100&tx_mmssite_wechselpkv%5Bquestion%5D=${t}&tx_mmssite_wechselpkv%5Banswer%5D=${r}`,{method:this._form.method,body:new FormData(this._form)}).then(e=>e.text()).then(e=>{if(e==="contact"){this._wrapper.innerHTML="";const s=this.querySelector(".pkv-survey__hiddenForm ");s&&s.classList.remove("hidden")}else this._wrapper.innerHTML=e,this._form.addEventListener("submit",s=>{s.preventDefault(),this._onSubmit()})})}}};L([n("form")],P.prototype,"_form",2);L([n(".pkv-survey__wrapper")],P.prototype,"_wrapper",2);P=L([h("sbk-pkv-survey")],P);const we=Y(`${Z}`),$e=V` .label__text { color: var(--sbkLabelFgColorOnDarkDefault); } .autocomplete__wrapper { @media all and (max-width: ${we}) { margin-top: var(--sbkCoreGridSmMargin); } } `;var Le=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,N=(a,t,o,r)=>{for(var e=r>1?void 0:r?Fe(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&Le(t,o,e),e};let I=class extends q(c){constructor(){super(...arguments),this.validatorMapper={required:U},this.url=""}static get styles(){return[z,W,J,$e]}async _querySuggestions(a){if(a.length<1){this.suggestions=[],this.close(!0);return}await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`tx_mmsicd_icdsearch[code]=${a}`}).then(t=>t.text()).then(t=>{const o=JSON.parse(t),r=[];Object.entries(o).forEach(e=>{r.push({label:e[1],value:e[1]})}),this.suggestions=r}),await this.updateComplete}};N([l()],I.prototype,"url",2);I=N([h("sbk-autocomplete-input-icd")],I);var Re=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,D=(a,t,o,r)=>{for(var e=r>1?void 0:r?Me(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&Re(t,o,e),e};let S=class extends c{connectedCallback(){super.connectedCallback(),this._form.addEventListener("submit",a=>{a.preventDefault(),this._onSubmit()}),this._resultContainer&&this._resultContainer.focus()}createRenderRoot(){return this}_onSubmit(){fetch(this._form.action,{method:this._form.method,body:new FormData(this._form)}).then(a=>a.text()).then(a=>{this._replace(a)})}_replace(a){this.outerHTML=a}};D([n("form")],S.prototype,"_form",2);D([n(".icd-search-result")],S.prototype,"_resultContainer",2);D([n("sbk-button")],S.prototype,"_submitButton",2);S=D([h("sbk-icd-search")],S);var Ee=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,m=(a,t,o,r)=>{for(var e=r>1?void 0:r?xe(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&Ee(t,o,e),e};let u=class extends K(Q(X(c))){constructor(){super(...arguments),this.callbackDayInputValue=new Date,this.startTimeInputValue="",this.stopTimeInputValue="",this.startMondayUntilThursday="",this.stopMondayUntilThursday="",this.startFriday="",this.stopFriday="",this.timeGap="",this.pleaseChooseOptionLabel="",this.noAppointmentOptionLabel="",this.noAppointmentLabel="",this.dayOnWeekendLabel="",this.dayInPastLabel="",this.dayInFutureLabel="",this.configuredStartTime="",this.configuredStopTime="",this.invalid=!1,this.description="",this.datepickerValue="",this.options=[],this.possibleOpeningHours=[{key:0,value:"''",label:this.pleaseChooseOptionLabel},{key:1,value:"6",label:"06:00"},{key:2,value:"6.5",label:"06:30"},{key:3,value:"7",label:"07:00"},{key:4,value:"7.5",label:"07:30"},{key:5,value:"8",label:"08:00"},{key:6,value:"8.5",label:"08:30"},{key:7,value:"9",label:"09:00"},{key:8,value:"9.5",label:"09:30"},{key:9,value:"10",label:"10:00"},{key:10,value:"10.5",label:"10:30"},{key:11,value:"11",label:"11:00"},{key:12,value:"11.5",label:"11:30"},{key:13,value:"12",label:"12:00"},{key:14,value:"12.5",label:"12:30"},{key:15,value:"13",label:"13:00"},{key:16,value:"13.5",label:"13:30"},{key:17,value:"14",label:"14:00"},{key:18,value:"14.5",label:"14:30"},{key:19,value:"15",label:"15:00"},{key:20,value:"15.5",label:"15:30"},{key:21,value:"16",label:"16:00"},{key:22,value:"16.5",label:"16:30"},{key:23,value:"17",label:"17:00"},{key:24,value:"17.5",label:"17:30"},{key:25,value:"18",label:"18:00"},{key:26,value:"18.5",label:"18:30"},{key:27,value:"19",label:"19:00"},{key:28,value:"19.5",label:"19:30"},{key:29,value:"20",label:"20:00"}]}render(){return T` <slot @datepicker-change=${this._onCallbackDayInputChange} name="callbackDayInput"></slot> <slot @select-value-changed=${this._onStartTimeInputChange} name="startTimeInput"></slot> <slot @slotchange=${this._initCall} @select-value-changed=${this._onStopTimeInputChange} name="stopTimeInput"></slot> `}_initCall(){this._callbackDayInput[0].addEventListener("focusout",()=>{const t={detail:{value:this._callbackDayInput[0].datepickerValue},bubbles:!0,composed:!0};this._onCallbackDayInputChange(t)}),this._callbackDayInput[0].addEventListener("paste",t=>{t.stopPropagation(),t.preventDefault();let o="";t.clipboardData!=null&&(o=t.clipboardData.getData("text")),this._callbackDayInput[0].datepickerValue=o;const r={detail:{value:o},bubbles:!0,composed:!0};this._onCallbackDayInputChange(r)});const a=new Date;this._determineTimes(a),this._fillCallbackDateValue(a),this._fillFromSelectOptions()}_determineTimes(a){a.getDay()===5?(this.configuredStartTime=this.startFriday,this.configuredStopTime=this.stopFriday):(this.configuredStartTime=this.startMondayUntilThursday,this.configuredStopTime=this.stopMondayUntilThursday)}_onCallbackDayInputChange(a){this.callbackDayInputValue=this._createDateFromString(a.detail.value),this._determineTimes(this.callbackDayInputValue),this._fillFromSelectOptions()}_onStartTimeInputChange(a){this._startTimeInput[0].invalid=!1,this._stopTimeInput[0].invalid=!1,this.startTimeInputValue=a.detail.value,this._fillToSelectOptions(this.startTimeInputValue)}_onStopTimeInputChange(a){this.stopTimeInputValue=a.detail.value}_fillCallbackDateValue(a){this._callbackDayInput[0].datepickerValue=a.toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"})}_fillFromSelectOptions(){let a=!1,t=!1;const o=[],r={label:this.pleaseChooseOptionLabel,value:"",selected:!0};o.push(r);for(const e of this.possibleOpeningHours){if(parseFloat(e.value)>=parseFloat(this.configuredStartTime)&&(this._isToday(this.callbackDayInputValue)?this._getCurrentTimeInHalfHours()+parseFloat(this.timeGap)<=parseFloat(e.value)&&(a=!0):a=!0),a&&!t){const s={label:e.label,value:e.value,selected:!1};o.push(s)}parseFloat(this.configuredStopTime)-parseFloat(this.configuredStartTime)<=parseFloat(this.timeGap)?parseFloat(e.value)==parseFloat(this.configuredStopTime)&&(o[o.length-1].label!=this.pleaseChooseOptionLabel&&o.pop(),t=!0):parseFloat(e.value)==parseFloat(this.configuredStopTime)-parseFloat(this.timeGap)&&(t=!0)}if(o.length===1){this._callbackDayInput[0].annotation=this.noAppointmentLabel,this._callbackDayInput[0].invalid=!0,this._setNoAppointmentsAvailable();return}this._startTimeInput[0].options=o}_fillToSelectOptions(a){let t=!1,o=!1;const r=[],e={label:this.pleaseChooseOptionLabel,value:"",selected:!1};r.push(e);for(const s of this.possibleOpeningHours){if(parseFloat(this.configuredStopTime)-parseFloat(this.configuredStartTime)<=parseFloat(this.timeGap)?parseFloat(s.value)>=parseFloat(a)&&(t=!0):parseFloat(s.value)>=parseFloat(a)+parseFloat(this.timeGap)&&(t=!0),t&&!o){const i={label:s.label,value:s.value,selected:!1};r.push(i)}parseFloat(s.value)>=parseFloat(this.configuredStopTime)&&(o=!0,r.length>0&&(r[r.length-1].selected=!0))}parseFloat(this.configuredStopTime)-parseFloat(this.configuredStartTime)<=parseFloat(this.timeGap)&&r.splice(1,1),r.length===1&&this._startTimeInput[0].options[0].label==this.noAppointmentOptionLabel&&(r[0].label=this.noAppointmentOptionLabel,r[0].value=""),this._stopTimeInput[0].options=r}_setNoAppointmentsAvailable(){const a=[],t={label:this.noAppointmentOptionLabel,value:"",selected:!0};a.push(t),this._startTimeInput[0].options=a,this._stopTimeInput[0].options=a}_createDateFromString(a){const[t,o,r]=a.split(".").map(e=>parseInt(e,10));return new Date(r,o-1,t)}_getCurrentTimeInHalfHours(){const a=new Date,t=a.getHours(),o=a.getMinutes();return o>=30?t+1:o>=1?t+.5:t}_isToday(a){const t=new Date,o=t.getFullYear(),r=t.getMonth(),e=t.getDate(),s=a.getFullYear(),i=a.getMonth(),_=a.getDate();return o===s&&r===i&&e===_}};m([$({slot:"callbackDayInput"})],u.prototype,"_callbackDayInput",2);m([$({slot:"startTimeInput"})],u.prototype,"_startTimeInput",2);m([$({slot:"stopTimeInput"})],u.prototype,"_stopTimeInput",2);m([l({attribute:"start-monday-until-thursday"})],u.prototype,"startMondayUntilThursday",2);m([l({attribute:"stop-monday-until-thursday"})],u.prototype,"stopMondayUntilThursday",2);m([l({attribute:"start-friday"})],u.prototype,"startFriday",2);m([l({attribute:"stop-friday"})],u.prototype,"stopFriday",2);m([l({attribute:"time-gap"})],u.prototype,"timeGap",2);m([l({attribute:"please-choose-option-label"})],u.prototype,"pleaseChooseOptionLabel",2);m([l({attribute:"no-appointment-option-label"})],u.prototype,"noAppointmentOptionLabel",2);m([l({attribute:"no-appointment-label"})],u.prototype,"noAppointmentLabel",2);m([l({attribute:"day-on-weekend-label"})],u.prototype,"dayOnWeekendLabel",2);m([l({attribute:"day-in-past-label"})],u.prototype,"dayInPastLabel",2);m([l({attribute:"day-in-future-label"})],u.prototype,"dayInFutureLabel",2);u=m([h("sbk-callback-with-time-interval")],u);var je=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ae=(a,t,o,r)=>{for(var e=r>1?void 0:r?Ge(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&je(t,o,e),e};let G=class extends c{connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.track)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.track)}track(){var t;const a=(t=document.querySelector("title"))==null?void 0:t.text;_paq.push(["trackEvent","English",a])}createRenderRoot(){return this}};G=Ae([h("sbk-language-switch-tracking")],G);var Ve=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Ne=(a,t,o,r)=>{for(var e=r>1?void 0:r?Be(t,o):t,s=a.length-1,i;s>=0;s--)(i=a[s])&&(e=(r?i(t,o,e):i(e))||e);return r&&e&&Ve(t,o,e),e};let A=class extends c{connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.track)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.track)}track(){const a=document.querySelector("sbk-headline-link"),t=a==null?void 0:a.innerHTML.trim();_paq.push(["trackEvent","Suche","SERP Such-Teaser: "+t])}createRenderRoot(){return this}};A=Ne([h("sbk-search-teaser-tracking")],A);ee.initialize(); //# sourceMappingURL=sbk-BChEFZou.js.map