PageSourceSearch

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

js bayer04.de collected 2026-09-24 20:18:45 UTC 20,510 bytes, 1 lines download raw bytes

1import{a as Le,b as je,c as le,e as j,f as O,g as He,h as ne,i as Pe,j as Ve}from"./chunk-LM534TF2.js";import{a as Ue}from"./chunk-RANSZLQO.js";import"./chunk-CETGCJI7.js";import{g as q,h as te,k as ie,l as G}from"./chunk-62EANYOJ.js";import"./chunk-QEMXCHRL.js";import{a as Ye}from"./chunk-YQXOG3UL.js";import{m as K,s as qe}from"./chunk-5H3H3SZO.js";import{e as Be,g as we,h as ke}from"./chunk-ZACAFQTT.js";import"./chunk-56B2UA7C.js";import"./chunk-AE4UQ6QO.js";import{a as Ae,c as Oe}from"./chunk-EJYSSWKW.js";import"./chunk-L5VOFC7U.js";import"./chunk-7J5XKBZY.js";import{$a as se,$b as fe,Ac as be,Ad as re,Bc as Te,Db as ae,Eb as k,Fd as Fe,Gb as L,Ia as o,Ib as v,Kf as De,Oa as z,Qa as D,Qb as de,Ra as A,Rb as pe,Rd as b,Sb as Z,Tc as Ee,Ua as P,Ub as E,Ve as W,Xb as m,Yb as _e,Yc as Se,Za as V,Zb as d,_a as Y,ac as ue,bg as ee,cg as U,ea as I,ec as Ce,fc as ge,gc as he,ja as B,jc as J,ka as w,lb as T,nc as _,oa as ce,ob as u,oc as f,pf as Ie,qb as C,qf as Re,ra as Q,rb as R,sa as me,sb as N,sc as xe,sf as Ne,t as H,tb as y,tf as ye,ub as s,uc as ve,v as X,vb as r,vc as S,wb as l,wf as Me,xb as x}from"./chunk-A5E7OECT.js";import{e as ze,k as $}from"./chunk-IAXSR7V4.js";var Xe=ze(Ye());function Ze(i,a){if(i&1&&(r(0,"div",4),ae(1,3),l(),r(2,"div",5),x(3,"div",6),l()),i&2){let n=v(),t=Z(4);o(),s("ngTemplateOutlet",t),o(2),s("b04InnerHtml",n.htmlSide())}}function Je(i,a){if(i&1&&ae(0,3),i&2){v();let n=Z(4);s("ngTemplateOutlet",n)}}function We(i,a){if(i&1){let n=k();r(0,"div")(1,"div",9),x(2,"b04-icon",10),r(3,"div"),m(4),_(5,"b04Translate"),_(6,"b04Translate"),x(7,"br"),m(8),_(9,"b04Translate"),l()(),r(10,"button",11),L("click",function(){B(n);let e=v(2);return w(e.reset())}),m(11),_(12,"b04Translate"),l()()}if(i&2){let n=a,t=v(2);o(2),s("icon",t.iconSuccess)("size",96),o(2),ue(" ",f(5,9,"CONTACT_FORM_THANK")," ",n.firstName||""," ",n.lastName||""," ",f(6,11,"CONTACT_FORM_COMPLETING")," "),o(4),d(" ",f(9,13,"CONTACT_FORM_THANKS_TEXT")," "),o(2),s("outline",!0),o(),d(" ",f(12,15,"CONTACT_FORM_CONTACT_US_AGAIN")," ")}}function et(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function tt(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function it(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function nt(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function ot(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function at(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function rt(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function lt(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function ct(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function mt(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function st(i,a){if(i&1){let n=k();r(0,"span",33),m(1),l(),r(2,"b04-icon",35),L("click",function(){return B(n),v(4).clearFile(),w(!1)}),l()}i&2&&(o(),d(" ",a.name," "),o(),s("icon","close"))}function dt(i,a){i&1&&(r(0,"span",33),m(1),_(2,"tl8"),l()),i&2&&(o(),d(" ",f(2,1,"CONTACT_FORM_PICK_FILE")," "))}function pt(i,a){if(i&1){let n=k();r(0,"div",12)(1,"label",30)(2,"span",13),m(3),_(4,"tl8"),l(),r(5,"input",31),L("change",function(e){B(n);let c=v(3);return w(c.handleFileChange(e))}),l(),r(6,"div",32),u(7,st,3,2)(8,dt,3,3,"span",33),l()(),r(9,"span",34),m(10),_(11,"tl8"),l()()}if(i&2){let n,t=v(3),e=t.form.file();o(),T("for",t.fieldId(e)),o(2),d(" ",f(4,9,"CONTACT_FORM_ATTACHMENT")," "),o(2),T("id",t.fieldId(e)),o(),E("is-invalid",e.invalid()),o(),C((n=e.value())?7:8,n),o(2),E("text-primary",e.invalid()),o(),d(" ",f(11,11,"CONTACT_FORM_ATTACHMENT_INFO")," ")}}function _t(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function ft(i,a){if(i&1&&(r(0,"option",25),m(1),l()),i&2){let n=a.$implicit;s("value",n.value),o(),d(" ",n.label," ")}}function ut(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function Ct(i,a){i&1&&(r(0,"span",14),m(1,"*"),l())}function gt(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function ht(i,a){if(i&1&&(r(0,"div",26)(1,"label",13),m(2),_(3,"b04Translate"),u(4,Ct,2,0,"span",14),l(),x(5,"textarea",36,1),_(7,"b04Translate"),D(),r(8,"div",16),N(9,gt,1,1,null,null,R),l(),r(11,"div",37),m(12),_(13,"b04Translate"),l()()),i&2){let n=Z(6),t=v(3),e=t.form.text();o(),T("for",t.fieldId(e)),o(),d(" ",f(3,16,"CONTACT_FORM_REQUEST")," "),o(2),C(e.required()?4:-1),o(),E("is-invalid",e.invali
1d()&&e.touched())("is-required",e.required()),s("title",f(7,18,"FILL_FIELD"))("formField",t.form.text),T("id",t.fieldId(e))("aria-required",e.required()),A(),o(4),y(e.errors()),o(2),E("text-accent",n.value.length>t.maxMessageLength),o(),fe(" ",n.value.length,"/",t.maxMessageLength," ",f(13,20,"CHARACTERS")," ")}}function xt(i,a){if(i&1&&m(0),i&2){let n=a.$implicit;d(" ",n.message," ")}}function vt(i,a){if(i&1){let n=k();r(0,"div",21)(1,"b04-friendly-captcha",43),L("solution",function(e){B(n);let c=v(4);return w(c.form.captchaResponse().controlValue.set(e))}),l()()}if(i&2){let n=v(4);o(),s("siteKey",n.captchaKey())("startMode","focus")}}function bt(i,a){if(i&1&&(r(0,"div",9),x(1,"b04-icon",10),r(2,"div"),m(3),_(4,"b04Translate"),l()()),i&2){let n=v(4);o(),s("icon",n.iconError)("size",96),o(2),d(" ",f(4,3,"CONTACT_FORM_GENERAL_ERROR")," ")}}function Tt(i,a){i&1&&(r(0,"span",41),x(1,"span",44),l())}function Et(i,a){if(i&1&&x(0,"div",42),i&2){v();let n=he(9);s("b04InnerHtml",n)}}function St(i,a){if(i&1){let n=k();u(0,vt,2,2,"div",21),u(1,bt,5,5,"div",9),r(2,"div",38)(3,"span",39)(4,"button",40),L("click",function(e){B(n);let c=v(3);return w(c.submit(e))}),u(5,Tt,2,0,"span",41),r(6,"span"),m(7),_(8,"b04Translate"),l()()(),Ce(9),_(10,"b04Translate"),u(11,Et,1,1,"div",42),l()}if(i&2){let n=v(3);C(n.captchaKey()?0:-1),o(),C(n.hasError()?1:-1),o(3),s("outline",!0)("disabled",!!n.captchaKey()&&!n.form.captchaResponse().value||n.isSending()),o(),C(n.isSending()?5:-1),o(),E("opacity-0",n.isSending()),o(),_e(f(8,9,"SEND")),o(2);let t=ge(f(10,11,"CONTACT_FORM_SUBMIT_INFO"));o(2),C(t&&t!=="CONTACT_FORM_SUBMIT_INFO"?11:-1)}}function Ft(i,a){if(i&1&&(r(0,"form",7)(1,"div",2)(2,"div",12)(3,"label",13),m(4),_(5,"b04Translate"),u(6,et,2,0,"span",14),l(),x(7,"input",15),D(),r(8,"div",16),N(9,tt,1,1,null,null,R),l()(),r(11,"div",12)(12,"label",13),m(13),_(14,"b04Translate"),u(15,it,2,0,"span",14),l(),x(16,"input",17),D(),r(17,"div",16),N(18,nt,1,1,null,null,R),l()(),r(20,"div",12)(21,"label",13),m(22),_(23,"b04Translate"),u(24,ot,2,0,"span",14),l(),x(25,"input",18),D(),r(26,"div",16),N(27,at,1,1,null,null,R),l()(),r(29,"div",12)(30,"label",13),m(31),_(32,"b04Translate"),u(33,rt,2,0,"span",14),l(),x(34,"input",19),D(),r(35,"div",16),N(36,lt,1,1,null,null,R),l()(),r(38,"div",12)(39,"label",13),m(40),_(41,"tl8"),u(42,ct,2,0,"span",14),l(),x(43,"input",20),D(),r(44,"div",16),N(45,mt,1,1,null,null,R),l()(),u(47,pt,12,13,"div",12),l(),r(48,"div",21)(49,"label",22),m(50),_(51,"b04Translate"),u(52,_t,2,0,"span",14),l(),r(53,"select",23)(54,"option",24),m(55),_(56,"b04Translate"),l(),N(57,ft,2,2,"option",25,R),l(),D(),r(59,"div",16),N(60,ut,1,1,null,null,R),l()(),u(62,ht,14,22,"div",26),r(63,"div",21)(64,"div",27),x(65,"input",28),D(),r(66,"label",29),m(67),_(68,"b04Translate"),l(),r(69,"div",16),N(70,xt,1,1,null,null,R),l()()(),u(72,St,12,14),l()),i&2){let n=v(2),t=n.form.firstName();o(3),T("for",n.fieldId(t)),o(),d(" ",f(5,72,"FIRST_NAME")," "),o(2),C(t.required()?6:-1),o(),E("is-invalid",t.invalid()&&t.touched())("is-required",t.required()),s("formField",n.form.firstName),T("id",n.fieldId(t))("aria-required",t.required()),A(),o(2),y(t.errors());let e=n.form.lastName();o(3),T("for",n.fieldId(e)),o(),d(" ",f(14,74,"LAST_NAME")," "),o(2),C(e.required()?15:-1),o(),E("is-invalid",e.invalid()&&e.touched())("is-required",e.required()),s("formField",n.form.lastName),T("id",n.fieldId(e))("aria-required",e.required()),A(),o(2),y(e.errors());let c=n.form.fromEmail();o(3),T("for",n.fieldId(c)),o(),d(" ",f(23,76,"EMAIL")," "),o(2),C(c.required()?24:-1),o(),E("is-invalid",c.invalid()&&c.touched())("is-required",c.required()),s("formField",n.form.fromEmail),T("id",n.fieldId(c))("aria-required",c.required()),A(),o(2),y(c.errors());let g=n.form.phone();o(3),T("for",n.fieldId(g)),o(),d(" ",f(32,78,"PHONE")," "),o(2),C(g.required()?33:-1),o(),E("is-invalid",g.invalid()&&g.touched())("is-required",g.required()),s("formField",n.form.phone),T("id",n.fieldId(g))("aria-required",g.required()),A(),o(2),y(g.errors());let h=n.form.memberNumber();o(3),T("for",n.fieldId(h)),o(),d(" ",f(41,80,"MEMBER_NUMBER")," "),o(2),C(h.required()?42:-1),o(),E("is-invalid",h.invalid()&&h.touched())("is-required",h.required()),s("formField",n.form.memberNumber),T("id",n.fieldId(h))("aria-required",h.required()),A(),o(2),y(h.errors()),o(2),C(n.show
1FileUpload()?47:-1);let p=n.form.subject();o(2),T("for",n.fieldId(p)),o(),d(" ",f(51,82,"CONTACT_FORM_SELECT")," "),o(2),C(p.required()?52:-1),o(),E("is-invalid",p.invalid()&&p.touched())("is-required",p.required()),s("formField",n.form.subject),T("id",n.fieldId(p))("aria-required",p.required()),A(),o(2),d("-- ",f(56,84,"CONTACT_FORM_SELECT")," --"),o(2),y(n.subjects()),o(3),y(p.errors()),o(2),C(n.hideTextInput()?-1:62);let F=n.form.accepted();o(),E("is-required",F.required()),o(2),E("is-invalid",F.invalid()&&F.touched()),s("formField",n.form.accepted),T("id",n.fieldId(F)),A(),o(),T("for",n.fieldId(F)),o(),d(" ",f(68,86,"CONTACT_TERMS_AGREEMENT")," "),o(3),y(F.errors()),o(2),C(!n.captchaKey()||n.captchaConsent()?72:-1)}}function It(i,a){if(i&1){let n=k();r(0,"div",8)(1,"p"),m(2),_(3,"b04Translate"),l(),r(4,"button",45),L("click",function(){B(n);let e=v(2);return w(e.acceptCaptcha())}),m(5),_(6,"b04Translate"),l()()}i&2&&(o(2),d(" ",f(3,3,"UC_ACCEPT_RECAPTCHA_INFO")," "),o(2),s("outline",!0),o(),d(" ",f(6,5,"UC_ACCEPT_RECAPTCHA")," "))}function Rt(i,a){if(i&1&&(u(0,We,13,17,"div")(1,Ft,73,88,"form",7),u(2,It,7,7,"div",8)),i&2){let n,t=v();C((n=t.submittedData())?0:1,n),o(2),C(t.captchaKey()&&!t.captchaConsent()?2:-1)}}var Ke=6*1024*1024,oe=(()=>{let a=class a{constructor(){this.ccs=I(De),this.route=I(Fe),this.tl8=I(Ne),this.gtag=I(Ue),this.dref=I(ce),this.config=be(),this.prefix=(0,Xe.uniqueId)("contacting-"),this.htmlPreface=S(()=>{var t;return(t=this.config())==null?void 0:t.preface}),this.htmlSide=S(()=>{var t;return(t=this.config())==null?void 0:t.infoHtml}),this.subjects=S(()=>{var t;return(t=this.config())==null?void 0:t.subjects}),this.hideTextInput=S(()=>{var t;return(t=this.config())==null?void 0:t.hideTextInput}),this.showFileUpload=S(()=>{var t;return(t=this.config())==null?void 0:t.allowFileUpload}),this.maxMessageLength=b.text.maxLength||0,this.maxFileSizeInMb=S(()=>Ke/1024/1024),this.isSending=Q(!1),this.captchaElement=Te(ne),this.gtagEvent=S(()=>{var t;return(t=this.config())==null?void 0:t.gtagEvent}),this.gtagData=S(()=>{var t;return(t=this.config())==null?void 0:t.gtagData}),this.formModel=Q({firstName:null,lastName:null,fromEmail:null,memberNumber:null,phone:null,text:null,subject:null,captchaResponse:null,accepted:null,file:null}),this.form=Le(this.formModel,t=>{b.firstName.isRequired&&O(t.firstName,{message:()=>this.tl8.get("ERRORS.REQUIRED")}
1),b.lastName.isRequired&&O(t.lastName,{message:()=>this.tl8.get("ERRORS.REQUIRED")}),b.fromEmail.isRequired&&O(t.fromEmail,{message:()=>this.tl8.get("ERRORS.REQUIRED")}),b.phone.isRequired&&O(t.phone,{message:()=>this.tl8.get("ERRORS.REQUIRED")}),b.memberNumber.isRequired&&O(t.memberNumber,{message:()=>this.tl8.get("ERRORS.REQUIRED")}),b.text.isRequired&&O(t.text,{message:()=>this.tl8.get("ERRORS.REQUIRED"),when:()=>!this.hideTextInput()}),b.subject.isRequired&&O(t.subject,{message:()=>this.tl8.get("ERRORS.REQUIRED")}),b.firstName.maxLength&&j(t.firstName,b.firstName.maxLength,{message:()=>this.tl8.get("ERRORS.MAXLENGTH")}),b.lastName.maxLength&&j(t.lastName,b.lastName.maxLength,{message:()=>this.tl8.get("ERRORS.MAXLENGTH")}),b.fromEmail.maxLength&&j(t.fromEmail,b.fromEmail.maxLength,{message:()=>this.tl8.get("ERRORS.MAXLENGTH")}),b.phone.maxLength&&j(t.phone,b.phone.maxLength,{message:()=>this.tl8.get("ERRORS.MAXLENGTH")}),b.memberNumber.maxLength&&j(t.memberNumber,b.memberNumber.maxLength,{message:()=>this.tl8.get("ERRORS.MAXLENGTH")}),b.text.maxLength&&j(t.text,b.text.maxLength,{message:()=>this.tl8.get("ERRORS.MAXLENGTH")}),O(t.captchaResponse,{when:()=>!!this.captchaKey()}),le(t.accepted,({value:e})=>e()===!0?void 0:{kind:"requiredTrue",message:this.tl8.get("ERRORS.REQUIRED")}
1),le(t.file,({value:e})=>{if(e())return e().size<=Ke?void 0:{kind:"fileTooLarge",message:this.tl8.get("ERRORS.MAXLENGTH")}})}),this.submittedData=Q(null),this.hasError=Q(null),this.captchaKey=re(I(Me).change.pipe(X(t=>t.fcCaptchaSiteKey))),this.captchaConsent=re(this.ccs.isAccepted("captcha")),this.iconSuccess=Ve,this.iconError=Pe,me(()=>{this.config(),ve(()=>{this.reset()})})}fieldId(t){return"".concat(this.prefix).concat(t.keyInParent())}acceptCaptcha(){this.ccs.showBanner()}reset(){this.resetForm()}submit(t){if(t.preventDefault(),this.submittedData.set(null),this.hasError.set(!1),!this.form().valid){this.form().markAsTouched();return}je(this.form,e=>$(this,null,function*(){let c=e().value();this.isSending.set(!0),yield this.config().send(c).then(()=>$(this,null,function*(){yield this.resetForm(),this.handleSubmitSuccess(c)})).catch(()=>{this.handleSubmitError()})}))}resetForm(){return $(this,null,function*(){var e;let t=yield H(this.route.queryParamMap.pipe(X(c=>c.get("subject")||null)).pipe(X(c=>c!=null?this.subjects()[Number(c)]:null)));!t&&((e=this.subjects())==null?void 0:e.length)===1&&(t=this.subjects()[0]),this.submittedData.set(null),this.hasError.set(!1),this.form().reset({firstName:"",lastName:"",fromEmail:"",phone:"",memberNumber:null,text:this.hideTextInput()?"siehe Betreff":"",subject:(t==null?void 0:t.value)||"",captchaResponse:null,accepted:!1,file:null})})}handleFileChange(t){let e=t.target;e.files&&e.files.length>0&&this.form.file().controlValue.set(e.files[0])}clearFile(){this.form.file().controlValue.set(null)}handleSubmitSuccess(t){this.submittedData.set(t),this.isSending.set(!1),this.hasError.set(!1),this.gtagEvent()&&this.gtag.pushEvent(this.gtagEvent(),this.gtagData())}handleSubmitError(){var t;(t=this.captchaElement())==null||t.reset(),this.hasError.set(!0),this.isSending.set(!1)}};a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=P({type:a,selectors:[["b04-contacting-form"]],viewQuery:function(e,c){e&1&&de(c.captchaElement,ne,5),e&2&&pe()},hostAttrs:[1,"d-block"],inputs:{config:[1,"config"]},features:[V([U])],decls:5,vars:1,consts:[["formTemplate",""],["area",""],[1,"row"],[3,"ngTemplateOutlet"],[1,"col-12","col-lg-8"],[1,"col-12","col-lg-4","mt-md","mt-lg-0","ps-lg-xxl"],["data-testid","sideText",3,"b04InnerHtml"],["data-testid","contactingForm"],[1,"text-center","alert","alert-info","mb-md"],[1,"mb-md","d-flex","flex-row","align-items-center"],[1,"me-md",3,"icon","size"],[1,"mb-md",3,"click","b04Button","outline"],[1,"col-12","col-sm-6","mb-md"],[1,"form-label","text-uppercase","font-headings","fw-bold"],["aria-hidden","true",1,"text-accent"],["data-testid","contactingFirstName","type","text",1,"form-control",3,"formField"],[1,"invalid-feedback"],["data-testid","contactingLastName","type","text",1,"form-control",3,"formField"],["data-testid","contactingFromEmail","type","text",1,"form-control",3,"formField"],["data-testid","contactingPhone","type","text",1,"form-control",3,"formField"],["data-testid","contactingMemberNumber","type","text",1,"form-control",3,"formField"],[1,"form-group","mb-lg"],[1,"form-label"],["data-testid","contactingSubject",1,"form-control","form-select",3,"formField"],["selected","","disabled","","value",""],[3,"value"],[1,"mb-lg"],[1,"form-check"],["type","checkbox","data-testid","acceptanceCheck",1,"form-check-input",3,"formField"],[1,"form-check-label","fs-xs"],[1,"d-flex","flex-column","mb-xxxs"],["data-testid","contactingFileInput","type","file","accept","image/jpeg,image/png,application/pdf",1,"form-control","d-none",3,"change"],[1,"form-control","cursor-pointer","d-flex","flex-row"],[1,"flex-fill"],[1,"px-xxxs"],[2,"position","relative","top","2px",3,"click","icon"],["data-testid","contactingText",1,"form-control",3,"title","formField"],[1,"mt-xxs"],[1,"d-flex","flex-column","flex-md-row","align-items-start"],[1,"bg-surface","d-inline-block","me-sm","mb-md"],[1,"position-relative",3,"click","b04Button","outline","disabled"],[1,"position-absolute","top-0","bottom-0","start-0","end-0","d-flex","align-items-center","justify-content-center"],[3,"b04InnerHtml"],[1,"w-100","theme-light",3,"solution","siteKey","startMode"],[1,"spinner-border","spinner-border-sm"],[3,"click","b04Button","outline"]],template:function(e,c){e&1&&(r(0,"div",2),u(1,Ze,4,2)(2,Je,1,1,"ng-container",3),l(),se(3,Rt,3,2,"ng-template",null,0,xe)),e&2&&(o(),C(c.htmlSide()?1:2))},dependencies:[ke,we,ye,Se,Ee,He,ne,Oe,Ae,qe,K,G,Be,Ie,Re],styles:["textarea[_ngcontent-%COMP%]{min-height:10rem}.form-check[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{max-width:500px}"],changeDetection:0});let i=a;return i})();function Dt(i,a){if(i&1&&x(0,"div",1),i&2){let n=v();s("b04InnerHtml",n.formConfig().preface)}}var fi=(()=>{let a=class a extends ee{constructor(t){super(),this.api=I(W),this.formConfig=S(()=>{var c,g,h,p,F;let e=this.config();return{allowFileUpload:(c=e==null?void 0:e.allowFileUpload)!=null?c:!1,hideTextInput:(g=e==null?void 0:e.hideTextInput)!=null?g:!1,infoHtml:(h=e==null?void 0:e.infoHtml)!=null?h:"",preface:(p=e==null?void 0:e.preface)!=null?p:"",subjects:(F=e==null?void 0:e.subjects)==null?void 0:F.map(M=>({label:M.subject,value:M.emailAddress})),send:M=>this.sendAction(M)}}),this.sendAction=e=>{let c=this.config().subjects.find(p=>p.emailAddress===e.subject),g={firstName:e.firstName,lastName:e.lastName,from
1Email:e.fromEmail,phone:e.phone,text:e.text,captchaResponse:e.captchaResponse,toEmail:c.emailAddress,subject:c.subject,memberNumber:e.memberNumber,file:null},h=new FormData;for(let p in g)g[p]&&h.append(p,g[p]);return e.file&&h.append("file",e.file),H(this.api.request({method:"POST",path:"contacting/message",params:{},body:h}))},t.connect(this)}};a.\u0275fac=function(e){return new(e||a)(z(q,2))},a.\u0275cmp=P({type:a,selectors:[["b04-section-contacting"]],hostVars:2,hostBindings:function(e,c){e&2&&E("b04-section",!0)},features:[J([q.for(()=>a)]),V([U]),Y],decls:4,vars:3,consts:[[3,"data"],["data-testid","prefaceText",1,"mb-xxl",3,"b04InnerHtml"],[3,"config"]],template:function(e,c){e&1&&(x(0,"b04-section-background")(1,"b04-section-header",0),u(2,Dt,1,1,"div",1),x(3,"b04-contacting-form",2)),e&2&&(o(),s("data",c.headerInfo()),o(),C(c.formConfig().preface?2:-1),o(),s("config",c.formConfig()))},dependencies:[G,ie,te,K,oe],encapsulation:2,changeDetection:0});let i=a;return i})();function At(i,a){if(i&1&&x(0,"div",1),i&2){let n=v();s("b04InnerHtml",n.formConfig().preface)}}var Fi=(()=>{let a=class a extends ee{constructor(t){super(),this.api=I(W),this.formConfig=S(()=>{var c,g,h,p,F;let e=this.config();return{allowFileUpload:(c=e==null?void 0:e.allowFileUpload)!=null?c:!1,hideTextInput:(g=e==null?void 0:e.hideTextInput)!=null?g:!1,infoHtml:(h=e==null?void 0:e.infoHtml)!=null?h:"",preface:(p=e==null?void 0:e.preface)!=null?p:"",subjects:(F=e==null?void 0:e.subjects)==null?void 0:F.map(M=>({label:M.displayName,value:M.subjectId})),send:M=>this.sendAction(M)}}),this.sendAction=e=>{let c=this.config().subjects.find(p=>p.subjectId===e.subject),g={firstName:e.firstName,lastName:e.lastName,fromEmail:e.fromEmail,phone:e.phone,text:e.text,captchaResponse:e.captchaResponse,subjectId:c.subjectId,subject:c.displayName,memberNumber:e.memberNumber,file:null},h=new FormData;for(let p in g)g[p]&&h.append(p,g[p]);return e.file&&h.append("file",e.file),H(this.api.request({method:"POST",path:"contacting/request",params:{},body:h}))},t.connect(this)}};a.\u0275fac=function(e){return new(e||a)(z(q,2))},a.\u0275cmp=P({type:a,selectors:[["b04-section-contacting-crm"]],hostVars:2,hostBindings:function(e,c){e&2&&E("b04-section",!0)},features:[J([q.for(()=>a)]),V([U]),Y],decls:4,vars:3,consts:[[3,"data"],["data-testid","prefaceText",1,"mb-xxl",3,"b04InnerHtml"],[3,"config"]],template:function(e,c){e&1&&(x(0,"b04-section-background")(1,"b04-section-header",0),u(2,At,1,1,"div",1),x(3,"b04-contacting-form",2)),e&2&&(o(),s("data",c.headerInfo()),o(),C(c.formConfig().preface?2:-1),o(),s("config",c.formConfig()))},dependencies:[G,ie,te,K,oe],encapsulation:2,changeDetection:0});let i=a;return i})();export{fi as ContactingComponent,Fi as ContactingCrmComponent};

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.