PageSourceSearch

https://www.vzug.com/v-connect-feature.module-HKQJYCOV.js

js vzug.com collected 2026-10-01 11:25:00 UTC 10,068 bytes, 1 lines download raw bytes

1import{a as xe,b as he}from"./chunk-I63IE7LY.js";import{a as ve}from"./chunk-JHJ2LJAO.js";import{a as ye,b as fe}from"./chunk-C5KYPVGA.js";import{b as me,d as ce,e as se,p as ue,q as Ce}from"./chunk-NKA5FZDD.js";import{Nc as _e,U as de,vc as ge}from"./chunk-KNPV2EHA.js";import"./chunk-DDP3RWEG.js";import{a as le,b as pe}from"./chunk-RCCDZFTR.js";import"./chunk-7RSDEBSU.js";import{I as ae,b as ne,g as ie,w as oe,y as re}from"./chunk-Z5KZRLC7.js";import"./chunk-QWOVKJEQ.js";import{E as ee,H as te,f as K,g as J,h as X,o as Y,u as Z,v as q}from"./chunk-H7WMH4BU.js";import{F as j,Jd as U,Ka as z,Kd as W,Y as $,Yc as Q,c as D,j as G,ob as L,r as R}from"./chunk-5JM3UTP4.js";import{$b as E,Aa as T,Ba as O,Fa as C,Ib as n,Ic as P,K as S,Na as M,Oa as V,Oc as N,Qc as p,Uc as k,Vc as H,Wc as A,_b as B,dc as I,dd as c,e as b,eb as w,ed as d,mc as F,oc as g,qc as _,vc as l,w as h,wc as i,xc as o,xd as r,yc as u,yd as a}from"./chunk-4MWVABFH.js";import"./chunk-76DGGKHL.js";var x=class t{constructor(){this.http=C(j);this.occEndpoints=C(L)}submitVConnectOrder(s){let e=this.occEndpoints.buildUrl("vConnectPlaceOrder",{queryParams:s});return this.http.post(e,{})}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"})}};var Te=["formElement"];function Oe(t,s){if(t&1&&(i(0,"dt",11),c(1),r(2,"cxTranslate"),o(),i(3,"dd",12),c(4),o()),t&2){let e=p();n(),d(a(2,2,"address.firstName")),n(3),d(e.firstname)}}function Me(t,s){if(t&1&&(i(0,"dt",11),c(1),r(2,"cxTranslate"),o(),i(3,"dd",12),c(4),o()),t&2){let e=p();n(),d(a(2,2,"address.lastName")),n(3),d(e.lastname)}}function Ve(t,s){if(t&1&&(i(0,"dt",11),c(1),r(2,"cxTranslate"),o(),i(3,"dd",12),c(4),o()),t&2){let e=p();n(),d(a(2,2,"address.company")),n(3),d(e.company)}}function we(t,s){if(t&1&&(i(0,"dt",11),c(1),r(2,"cxTranslate"),o(),i(3,"dd",12),c(4),o()),t&2){let e=p();n(),d(a(2,2,"address.phone")),n(3),d(e.phone)}}function Be(t,s){if(t&1&&(i(0,"dt",11),c(1),r(2,"cxTranslate"),o(),i(3,"dd",12),c(4),o()),t&2){let e=p();n(),d(a(2,2,"address.email")),n(3),d(e.email)}}function Ee(t,s){if(t&1&&(i(0,"div",22),u(1,"e-input-error",25),o()),t&2){let e=p(3);F("data-theme-element","form-field")("data-theme",e.Theme.DEFAULT),n(),l("control",e.submitForm.get("hCaptcha"))}}function Ie(t,s){if(t&1){let e=P();i(0,"form",14,0),u(2,"c-newsletter-form-control",15),i(3,"div",16)(4,"div",17),u(5,"e-heading",18),r(6,"cxTranslate"),u(7,"e-checkbox-group",19),o(),i(8,"div",20),u(9,"ng-hcaptcha",21),r(10,"async"),g(11,Ee,2,3,"div",22),o()(),i(12,"div",23)(13,"e-button",24),r(14,"cxTranslate"),N("handleButtonClick",function(){M(e);let y=p(),f=p();return V(f.handleSubmit(y))}),o()()()}if(t&2){let e=p(2);l("formGroup",e.submitForm),n(2),l("form",e.submitForm)("controlName","registerNewsletter"),n(3),l("headingType",e.HeadingType.H4)("title",a(6,14,"generic.privacyAndTerms.title")),n(2),l("form",e.submitForm)("controlName","termsAndConditions")("checkboxes",e.checkboxGroupItems)("hideLegend",!0),n(2),l("languageCode",a(10,16,e.languageIsoWithoutCountry$))("formControlName","hCaptcha"),n(2),_(e.failedCaptchaValidation?11:-1),n(2),l("text",a(14,18,"vconnect.confirmButton"))("buttonType",e.ButtonType.SUBMIT)}}function Fe(t,s){if(t&1&&(i(0,"div",1)(1,"div",2),u(2,"e-heading",3),r(3,"cxTranslate"),i(4,"div",4)(5,"div",5),u(6,"e-message",6),r(7,"async"),r(8,"async"),r(9,"cxTranslate"),r(10,"cxTranslate"),o()(),i(11,"div",7)(12,"div",8),u(13,"e-heading",3),r(14,"cxTranslate"),i(15,"dl",9)(16,"dt",10),c(17),r(18,"cxTranslate"),o(),i(19,"dt",11),c(20),r(21,"cxTranslate"),o(),i(22,"dd",12),c(23),o(),i(24,"dt",11),c(25),r(26,"cxTranslate"),o(),i(27,"dd",12),c(28),o()()(),i(29,"div",13),u(30,"e-heading",3),r(31,"cxTranslate"),i(32,"dl",9),g(33,Oe,5,4),g(34,Me,5,4),g(35,Ve,5,4),g(36,we,5,4),g(37,Be,5,4),o()()(),g(38,Ie,15,20,"form",14),r(39,"async"),o()()),t&2){let e=s,m=p();l("ngClass",m.componentClasses),n(2),l("title",a(3,20,"vconnect.orderTitle"))("headingType",m.HeadingType.H3),n(4),l("messageType",a(7,22,m.showSuccessMessage$)?m.MessageType.SUCCESS:m.MessageType.WARNING)("message",a(8,24,m.showSuccessMessage$)?a(9,26,"vconnect.successMessage"):a(10,28,"vconnect.precommitWarning")),n(7),l("title",a(14,30,"vconnect.orderItemsAndPrice"))("headingType",m.HeadingType.H4),n(4),d(a(18,32,"vconnect.buttons")),n(3),d(a(21,34,"vconnect.quantity")),n(3),d(e.buttons),n(2),d(a(26,36,"vconnect.price")),n(3),d(e.price),n(2),l("title",a(31,38,"vconnect.contactInformation"))("headingType",m.HeadingType.H4),n(3),_(e.firstname?33:-1),n(),_(e.lastname?34:-1),n(),_(e.company?35:-1),n(),_(e.phone?36:-1),n(),_(e.email?37:-1),n(),_(a(39,40,m.showSuccessMessage$)===!1?38:-1)}}var v=class t extends ve{constructor(){super(...arguments);this.activatedRoute=C($);this.formBuilder=C(ee);this.languageService=C(Q);this.occService=C(x);this.scrollHandlerService=C(_e);this.HeadingType=ie;this.MessageType=re;this.ButtonType=ne;this.componentClasses="c-vconnect-order-summary";this.Theme=ae;this.checkboxGroupItems=[{value:"true",labelKey:"generic.termsAndConditions.checkbox"}];this.formData$=this.activatedRoute.queryParams.pipe(h(e=>({buttons:e.buttons||0,price:e.price||"",firstname:e.firstname||"",lastname:e.lastname||"",company:e.company||"",phone:e.phone||"",email:e.email||""})));this.languageIsoWithoutCountry$=this.languageService.getActive().pipe(S(e=>!!e),h(e=>e?.substring(0,2).toLowerCase()));this.submitForm=this.formBuilder.group({termsAndConditions:this.formBuilder.array(this.checkboxGroupItems.map(()=>!1),[ge.emptyArrayFormValidator]),registerNewsletter:this.formBuilder.array(oe.map(()=>!1)),hCaptcha:["",K.required]});this._showSuccessMessage=new b(!1);this.showSuccessMessage$=this._showSuccessMessage.asObservable();this.failedCaptchaValidation=!1}handleSubmit(e){this.failedCaptchaValidation=this.submitForm?.controls?.hCaptcha?.value==="",this.submitForm.valid?this.sub.add(this.occService.submitVConnectOrder({buttons:e.buttons,price:e.price,firstname:e.firstname,lastname:e.lastname,company:e.company,phone:e.phone,email:e.email,agbAccepted:!0,captcha:this.submitForm.get("hCaptcha")?.value}).subscribe(()=>{this._showSuccessMessage.next(!0)})):(this.submitForm.markAllAsTouched(),this.scrollHandlerService.scrollToFormError(this.formElement?.nativeElement))}static{this.\u0275fac=(()=>{let e;return function(y){return(e||(e=w(t)))(y||t)}})()}static{this.\u0275cmp=B({type:t,selectors:[["c-vconnect-order-summary"]],viewQuery:function(m,y){if(m&1&&k(Te,5),m&2){let f;H(f=A())&&(y.formElement=f.first)}},features:[I],decls:2,vars:3,consts:[["formElement",""],[1,"grid",3,"ngClass"],[1,"g-col-12","g-col-sm-11","g-start-sm-2"],[3,"title","headingType"],[1,"c-vconnect-order-summary__message","grid"],[1,"g-col-12","g-col-md-5","g-col-sm-8"],[3,"messageType","message"],[1,"c-vconnect-order-summary__details","grid"],[1,"g-col-12","g-col-sm-5"],[1,"c-vconnect-order-summary__details-section","grid"],[1,"c-vconnect-order-summary__label","g-col-12","g-col-sm-5"],[1,"c-vconnect-order-summary__label","g-col-6","g-col-sm-2"],[1,"c-vconnect-order-summary__value","g-col-6","g-col-sm-3"],[1,"g-col-12","g-col-sm-5","g-start-sm-7"],[3,"formGroup"],[3,"form","controlName"],[1,"grid"],[1,"g-col-12","g-col-sm-8","c-vconnect-order-summary__terms-and-conditions"],[3,"headingType","title"],[3,"form","controlName","checkboxes","hideLegend"],[1,"g-col-12","g-col-sm-8"],["ngClass","hCaptcha",3,"languageCode","formControlName"],[1,"c-details__error-message"],[1,"c-vconnect-order-summary__button"],[3,"handleButtonClick","text","buttonType"],[3,"control"]],template:function(m,y){if(m&1&&
1(g(0,Fe,40,42,"div",1),r(1,"async")),m&2){let f;_((f=a(1,1,y.formData$))?0:-1,f)}},dependencies:[R,D,pe,le,W,Ce,ue,he,xe,fe,ye,te,Y,J,X,q,Z,se,ce,me,de,G,U],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}[_nghost-%COMP%]{display:block}.c-vconnect-order-summary[_ngcontent-%COMP%]   c-newsletter-form-control[_ngcontent-%COMP%]{margin-top:2.4rem}@media all and (min-width:1025px){.c-vconnect-order-summary[_ngcontent-%COMP%]   c-newsletter-form-control[_ngcontent-%COMP%]{margin-top:3.6rem}}.c-vconnect-order-summary[_ngcontent-%COMP%]   c-newsletter-form-control[_ngcontent-%COMP%]{display:block}.c-vconnect-order-summary__message[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem}@media all and (min-width:1025px){.c-vconnect-order-summary__message[_ngcontent-%COMP%]{margin-top:2.4rem;margin-bottom:2.4rem}}@media all and (min-width:720px){.c-vconnect-order-summary__message[_ngcontent-%COMP%]{--bs-columns: 11}}.c-vconnect-order-summary__details[_ngcontent-%COMP%]{row-gap:2.4rem}@media all and (min-width:1025px){.c-vconnect-order-summary__details[_ngcontent-%COMP%]{row-gap:3.6rem}}@media all and (min-width:720px){.c-vconnect-order-summary__details[_ngcontent-%COMP%]{--bs-columns: 11}}.c-vconnect-order-summary__details-section[_ngcontent-%COMP%]{row-gap:0}@media all and (min-width:720px){.c-vconnect-order-summary__details-section[_ngcontent-%COMP%]{--bs-columns: 5}}.c-vconnect-order-summary__terms-and-conditions[_ngcontent-%COMP%]{margin-top:2.4rem;margin-bottom:2.4rem}@media all and (min-width:1025px){.c-vconnect-order-summary__terms-and-conditions[_ngcontent-%COMP%]{margin-top:3.6rem;margin-bottom:3.6rem}}.c-vconnect-order-summary__button[_ngcontent-%COMP%]{margin-top:2.4rem}@media all and (min-width:1025px){.c-vconnect-order-summary__button[_ngcontent-%COMP%]{margin-top:3.6rem}}.c-vconnect-order-summary__button[_ngcontent-%COMP%]{padding-top:3.6rem}@media all and (min-width:1025px){.c-vconnect-order-summary__button[_ngcontent-%COMP%]{padding-top:4.8rem}}.c-vconnect-order-summary__button[_ngcontent-%COMP%]{border-top:1px solid #e5e0da;display:flex;justify-content:flex-end}"]})}};var Se=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=E({type:t})}static{this.\u0275inj=O({providers:[z({cmsComponents:{VzugVConnectGeneralTermsAndConditionsComponent:{component:v,disableSSR:!0}}})],imports:[v]})}};export{Se as VConnectFeatureModule};

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.