PageSourceSearch

https://cdn-werkself-prod.bayer04.de/chunk-7EMBDEKK.js

js bayer04.de collected 2026-10-02 06:43:36 UTC 10,952 bytes, 1 lines download raw bytes

1import{a as ke,b as De,c as Be,d as Fe,f as N,g as Ne,h as Ie,i as Ae,j as Oe}from"./chunk-QZCUA6YI.js";import{a as _e,o as ve}from"./chunk-WCDIXUHF.js";import{b as xe,h as Te,j as Se}from"./chunk-L2IYG37X.js";import"./chunk-OOIN4S5D.js";import"./chunk-YGN7LEBT.js";import"./chunk-I4ONPFKT.js";import"./chunk-R7S5XB3F.js";import"./chunk-V6HY5AX6.js";import{g as z,k as ye,l as Me}from"./chunk-2XYKP65R.js";import"./chunk-BOOEPTCY.js";import"./chunk-EBV7XDNX.js";import{m as we}from"./chunk-KSPG2WWN.js";import{e as Ee,g as B,h as F}from"./chunk-2XXS4VHR.js";import"./chunk-MWIKPSVG.js";import"./chunk-AX2AK66L.js";import{a as k,c as D}from"./chunk-7CT5KHIW.js";import"./chunk-K3VT4KLP.js";import"./chunk-72TGAIGC.js";import{$a as Y,Ad as K,Bc as re,Cf as M,Eb as W,Ef as fe,Gb as g,Ia as a,Ib as m,Jb as J,Kb as S,La as O,Mf as Ce,Ne as se,Oe as me,Qa as P,Qb as X,Ra as H,Rb as Z,Rd as le,Sb as ee,Sd as ce,Tb as te,Ua as w,Ub as ie,Xb as u,Xe as de,Yb as ne,Yc as ae,Za as G,Zb as f,_a as Q,ab as R,ea as _,eg as be,fg as ge,gb as L,ja as I,jb as V,jc as E,ka as A,lb as $,nc as d,ob as C,oc as p,qb as b,ra as T,rf as pe,sc as oe,sf as ue,t as U,ub as s,v as q,vb as l,vc as v,vf as y,wb as c,xb as h,yf as he}from"./chunk-LIWE2XZM.js";import{k as j}from"./chunk-IAXSR7V4.js";var Pe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n  <path d="M19 5v14H5V5h14zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"\n    fill="currentColor">\n  </path>\n</svg>';var He='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n  <path\n    d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"\n    fill="currentColor"></path>\n</svg>';var Ue=["tplDialog"],qe=[[["","checkbox",""]],"*",[["","dialog-content",""]]],Ge=["[checkbox]","*","[dialog-content]"];function Qe(e,i){if(e&1&&h(0,"b04-icon",2),e&2){let n=m();s("icon",n.icon())("size",24)}}function Ye(e,i){if(e&1&&(l(0,"div",3)(1,"div",4),S(2,2),h(3,"span",5,1),c(),l(5,"div",6)(6,"button",7),u(7),d(8,"tl8"),c(),l(9,"button",8),u(10),d(11,"tl8"),c()()()),e&2){let n=ee(4);a(6),s("b04Button","sm")("outline",!0)("b04ModalClose",!1),a(),f(" ",p(8,8,"CANCEL")," "),a(2),s("b04Button","sm")("b04ModalClose",!0)("disabled",!n.isIntersecting),a(),f(" ",p(11,10,"OK")," ")}}var Re=(()=>{let i=class i{constructor(){this.modal=_(xe),this.onChange=t=>{},this.onTouched=()=>{},this.disabled=T(!1),this.value=T(!1),this.modalTpl=re("tplDialog",{read:O}),this.iconUnchecked=Pe,this.iconChecked=He,this.icon=v(()=>this.value()?this.iconChecked:this.iconUnchecked)}writeValue(t){this.value.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled.set(t)}handleClick(){this.value()?(this.value.set(!1),this.commitValue()):this.showDialog()}showDialog(){this.modal.open({content:this.modalTpl(),options:{},variation:"v-centered",dismissible:!0}).closed.subscribe(t=>{t&&(this.value.set(!0),this.commitValue())})}commitValue(){this.onChange(this.value())}};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=w({type:i,selectors:[["b04-checkbox-with-dialog"]],viewQuery:function(r,o){r&1&&X(o.modalTpl,Ue,5,O),r&2&&Z()},hostAttrs:["role","button","tabindex","0",1,"d-flex"],hostBindings:function(r,o){r&1&&g("click",function(){return o.handleClick()})("keydown.enter",function(){return o.handleClick()})("keydown.space",function(){return o.handleClick()})},features:[E([{provide:_e,multi:!0,useExisting:i}])],ngContentSelectors:Ge,decls:5,vars:0,consts:[["tplDialog",""],["itx","b04Intxn"],[3,"icon","size"],[1,"b04-section","w-100","theme-dark","bg-surface","text-on-surface"],[1,"overflow-auto",2,"max-height","min(50vh, 300px)"],["b04Intxn",""],[1,"d-flex","w-100","flex-row","justify-content-end","mt-md"],[3,"b04Button","outline","b04ModalClose"],[3,"b04Button","b04ModalClose","disabled"]],template:function(r,o){r&1&&(J(qe),S(0,0,null,Qe,1,2),S(2,1),Y(3,Ye,12,12,"ng-template",null,0,oe))},dependencies:[ve,Se,Te,me,se,F,B,D,k,y,ue],encapsulation:2});let e=i;return e})();var Le=()=>[import("./chunk-OQIZ443U.js").then(e=>e.AdBannerComponent)];function $e(e,i){if(e&1&&h(0,"b04-ad-banner",11),e&2){let n=m(2);s("adChannelId",n.adChannelTop())}}function Je(e,i){if(e&1&&C(0,$e,1,1,"b04-ad-banner",11),e&2){let n=m();b(n.adChannelTop()?0:-1)}}function Xe(e,i){e&1&&(l(0,"span",13),u(1,"*"),c())}
1function Ze(e,i){if(e&1&&(l(0,"b04-checkbox-with-dialog",4)(1,"span",12),u(2),d(3,"b04Translate"),c(),C(4,Xe,2,0,"span",13),h(5,"div",14),d(6,"b04Translate"),c(),P()),e&2){let n=m();s("formField",n.form.allowTracking),H();let t=n.form.allowTracking();a(),ie("text-accent",t.touched()&&t.invalid()),a(),f(" ",p(3,6,"NEWSLETTER_TRACKING_LABEL")," "),a(2),b(t.required()?4:-1),a(),s("b04InnerHtml",p(6,8,"NEWSLETTER_TRACKING_AGREEMENT"))}}function et(e,i){if(e&1&&(l(0,"button",6),u(1),d(2,"b04Translate"),c()),e&2){let n=m();s("disabled",n.submitting()||n.submitted()),a(),f(" ",p(2,2,"NEWSLETTER_SUBSCRIBE")," ")}}function tt(e,i){if(e&1){let n=W();l(0,"button",15),g("click",function(){I(n);let r=m();return A(r.acceptCaptcha())}),u(1),d(2,"b04Translate"),c(),l(3,"p"),u(4),d(5,"b04Translate"),c()}e&2&&(te("height","58","px"),s("outline",!0),a(),f(" ",p(2,5,"UC_ACCEPT_RECAPTCHA")," "),a(3),f(" ",p(5,7,"UC_ACCEPT_RECAPTCHA_INFO")," "))}function it(e,i){if(e&1){let n=W();l(0,"b04-friendly-captcha",16),g("solution",function(r){I(n);let o=m();return A(o.form.solution().controlValue.set(r))}),c()}if(e&2){let n=m();s("siteKey",n.captchaKey())("startMode","focus")}}function nt(e,i){if(e&1&&(l(0,"div",9),h(1,"b04-icon",17),l(2,"div"),u(3),d(4,"b04Translate"),c()()),e&2){let n=m();a(),s("icon",n.iconError)("size",42),a(2),f(" ",p(4,3,"NEWSLETTER_GENERAL_ERROR")," ")}}function ot(e,i){if(e&1&&(l(0,"div",10),h(1,"b04-icon",17),l(2,"div"),u(3),d(4,"b04Translate"),c()()),e&2){let n=m();a(),s("icon",n.iconSuccess)("size",42),a(2),f(" ",p(4,3,"NEWSLETTER_THANK_YOU")," ")}}function rt(e,i){if(e&1&&h(0,"b04-ad-banner",18),e&2){let n=m(2);s("adChannelId",n.adChannelBottom())}}function at(e,i){if(e&1&&C(0,rt,1,1,"b04-ad-banner",18),e&2){let n=m();b(n.adChannelBottom()?0:-1)}}var qt=(()=>{let i=class i extends be{constructor(){super(),this.ccs=_(Ce),this.api=_(de),this.captchaKey=K(_(he).change.pipe(q(t=>t.fcCaptchaSiteKey))),this.captchaConsent=K(this.ccs.isAccepted("captcha")),this.formModel=T({email:null,allowTracking:!1,solution:null}),this.form=ke(this.formModel,t=>{N(t.email),Fe(t.email),N(t.solution),N(t.allowTracking),Be(t.allowTracking,({value:r})=>r()===!0?void 0:{kind:"requiredTrue"})}),this.state=fe({submitting:!1,error:!1,submitted:!1}),this.title=v(()=>{var t,r;return(r=(t=this.config())==null?void 0:t.headerInfo)==null?void 0:r.header}),this.adChannelTop=v(()=>{var t;return(t=le(this.config()))==null?void 0:t.adChannelId}),this.adChannelBottom=v(()=>{var t;return(t=ce(this.config()))==null?void 0:t.adChannelId}),this.submitting=this.state.submitting,this.submitted=this.state.submitted,this.error=this.state.error,this.iconSuccess=Oe,this.iconError=Ae,z.connectSection(this),this.reset()}submit(t){t.preventDefault(),De(this.form,r=>j(this,null,function*(){let o=r().value();yield U(this.api.request({method:"POST",path:"news_letter/subscribe/".concat(this.config().subscription),body:{email:o.email,allowTracking:o.allowTracking,"frc-captcha-solution":o.solution}})).then(()=>{this.resetForm(),M(this.state,{error:!1,submitted:!0})}).catch(()=>{this.resetForm(),M(this.state,{error:!0,submitted:!0})})}))}reset(){this.resetForm(),this.clearError()}resetForm(){this.form().reset({email:null,allowTracking:!1,solution:null})}clearError(){M(this.state,{error:!1,submitted:!1,submitting:!1})}acceptCaptcha(){this.ccs.showBanner()}};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=w({type:i,selectors:[["b04-newsletter-form"]],hostAttrs:[1,"b04-section"],features:[E([z.provideSection(()=>i)]),G([ge]),Q],decls:22,vars:11,consts:[[1,"grid",3,"submit"],["data-testid","form-title",1,"g-col-12","g-col-lg-5","text-uppercase","mb-0","lh-sm"],[1,"g-col-12","g-col-sm-7","g-col-lg-4"],["data-testid","form-email","type","email",1,"form-control",3,"focus","input","formField","placeholder"],[1,"mt-xxs",3,"formField"],[1,"g-col-12","g-col-sm-5","g-col-lg-3"],["data-testid","form-submit","type","submit",1,"w-100",3,"b04Button","disabled"],[1,"w-100","theme-light","border","border-transparent",2,"height","calc(3.75rem - 2px)",3,"siteKey","startMode"],[1,"g-col-12"],["cy-error","",1,"mb-md","d-flex","flex-row","align-items-center"],["cy-success","",1,"mb-md","d-flex","flex-row","align-items-center"],[1,"mb-xl",3,"adChannelId"],[1,"ms-xxs"],["aria-hidden","true",1,"text-accent"],["dialog-content","",3,"b04InnerHtml"],["type","button",1,"py-0","mb-xxs","w-100",3,"click","b04Button","outline"],[1,"w-100","theme-light","border","border-transparent",2,"height","calc(3.75rem - 2px)",3,"solution","siteKey","startMode"],[1,"me-md",3,"icon","size"],[1,"mt-xl",3,"adChannelId"]],template:function(r,o){r&1&&(h(0,"b04-section-background"),R(1,Je,1,1),L(2,1,Le),V(),l(4,"form",0),g("submit",function(Ve){return o.submit(Ve)}),l(5,"h3",1),u(6),c(),l(7,"div",2)(8,"input",3),d(9,"b04Translate"),d(10,"b04Translate"),g("focus",function(){return o.clearError()})("input",function(){return o.clearError()}),c(),P(),C(11,Ze,7,10,"b04-checkbox-with-dialog",4),c(),l(12,"div",5),C(13,et,3,4,"button",6)(14,tt,6,9)(15,it,1,2,"b04-friendly-captcha",7),c(),l(16,"div",8),C(17,nt,5,5,"div",9)(18,ot,5,5,"div",10),c()(),R(19,at,1,1),L(20,19,Le),V()),r&2&&(a(6),ne(o.title()),a(2),s("formField",o.form.email)("placeholder",p(9,7,"EMAIL")),$("aria-label",p(10,9,"EMAIL")),H(),a(3),b(o.submitted()?-1:11),a(2),b(o.form.solution().controlValue()?13:o.captchaKey()&&!o.c
1aptchaConsent()?14:o.captchaKey()?15:-1),a(4),b(o.submitted()&&o.error()?17:o.submitted()?18:-1))},dependencies:[ae,Me,ye,Ee,we,y,Ne,F,B,D,k,Ie,Re,pe],styles:[".form-control[_ngcontent-%COMP%]{height:calc(3.75rem - 2px);border-color:rgba(var(--bs-on-surface-rgb),.5)}.form-control[_ngcontent-%COMP%]:hover{border-color:rgba(var(--bs-on-surface-rgb),.75)}.form-control[_ngcontent-%COMP%]:focus{border-color:rgba(var(--bs-on-surface-rgb),1)}.form-control.is-invalid[_ngcontent-%COMP%], .form-control.is-invalid.is-dirty[_ngcontent-%COMP%], .form-control.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:var(--bs-accent)!important}.form-control.is-invalid[_ngcontent-%COMP%]:hover, .form-control.is-invalid.is-dirty[_ngcontent-%COMP%]:hover, .form-control.ng-invalid.ng-dirty[_ngcontent-%COMP%]:hover{border-color:rgba(var(--bs-accent-rgb),.75)!important}.form-control.is-invalid[_ngcontent-%COMP%]:focus, .form-control.is-invalid.is-dirty[_ngcontent-%COMP%]:focus, .form-control.ng-invalid.ng-dirty[_ngcontent-%COMP%]:focus{border-color:rgba(var(--bs-accent-rgb),1)!important}"],changeDetection:0});let e=i;return e})();
1export{qt as NewsletterFormComponent};

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.