PageSourceSearch

https://dunaparqueresorts-hotels.com/chunk-VB7DUUPJ.js

js dunaparqueresorts-hotels.com collected 2026-10-10 01:46:26 UTC 3,449 bytes, 1 lines download raw bytes

1import{a as $,b as z,c as j,d as G}from"./chunk-ALBFWW3G.js";import{a as r,b as Y,e as w,f as q}from"./chunk-ZHYNKJIO.js";import{$a as B,Dh as U,F as h,H as b,Ha as E,La as D,Ma as A,O as f,U as C,X as g,Xa as N,ab as M,bb as F,d as J,db as L,gb as O,ha as v,j as m,ja as T,k as p,la as S,mb as K,n as l,p as d,pa as k,pc as a,qa as I,r as u,ra as P,sa as _,w as y,y as i,ya as x,z as H}from"./chunk-YW26TNUV.js";function Q(s,R){if(s&1&&(I(0,"div"),_(1,"app-dynamic-renderer",0),P()),s&2){let e=x();g(),S("body",R.body)("context",e.componentContext)}}var pe,V=J(()=>{L();K();N();U();H();G();Y();q();z();N();L();pe=(()=>{class s extends ${constructor(){super(...arguments),this.platformId=h(C)}ngOnInit(){this.getPageConfig()}getPageConfig(){this.layoutSvc.firstPageLoaded()||this.layoutSvc.firstPageLoaded.set(!0),d({consultTypeData:this.apiSvc.getConsultType(this.siteSvc.selectedLanguageInstant?.id,"front"),pageConfig:this.siteSvc.getPageConfig(this.routesSvc.getPageIdByTemplate(w.CONTACT),0)}).pipe(l(e=>{let t=a.convertObjectKeysToCamelCase(e);return{consultTypeData:t.consultTypeData,pageConfig:t.pageConfig instanceof O?t.pageConfig.body:t.pageConfig}}),i(({consultTypeData:e,pageConfig:t})=>{if(t){if(t.body&&Array.isArray(t.body)){let o=t.body.length>0?Math.max(...t.body.map(n=>n.order??0))+1:1;t.body.push({name:"consultType",order:o,props:e}),t.body.sort((n,c)=>(n.order??0)-(c.order??0)),t.body=this.mapperSvc.mapComponents(t.body,{contactOffice:a.findComponent(t.body,"contactoffice"),consultType:a.findComponent(t.body,"consulttype")}),t.bodyExtra=this.mapperSvc.mapComponents(t.bodyExtra??[])}this._pageConfig$.set(t),this.layoutSvc.setLayoutElements(t)}})).subscribe()}submitForm(e){F(this.platformId)&&(r.token?p({accessToken:r.token}):this.apiSvc.postAuthLogin().pipe(i(o=>{r.token=o.accessToken}))).pipe(y(()=>this.apiSvc.postContactForm({siteId:r.siteId,consultTypeId:e.dropdown?.consultTypeId??Number(e.consultType),languageId:this.siteSvc.selectedLanguageInstant?.id,name:e.name??e.nombre,surname:e.surname,email:e.email,message:e.message??e.mensaje,phone:e.phone,hotel_id:e.hotelDrop?Number(e.hotelDrop?.code):Number(e.hotelId),consent:e.checkbox2??!1,conditions:e.conditions??e.checkbox??!1,submittedAt:e.submittedAt,cv:e.cv})),i(o=>{this.alert.open(o.message," ",{duration:1e4,verticalPosition:"top"}),this.renderer.addClass(document.getElementsByClassName("cdk-global-overlay-wrapper")[0],"alert"),this.renderer.addClass(document.getElementsByClassName("mdc-button__label")[0],"babylon-plus")}),u(o=>{let n=o.message?o.message:"Error al enviar";try{this.alert.open(JSON.parse(n)," ",{duration:1e4,verticalPosition:"top"})}catch{this.alert.open(n," ",{duration:1e4,verticalPosition:"top"})}return this.renderer.addClass(document.getElementsByClassName("cdk-global-overlay-wrapper")[0],"alert"),this.renderer.addClass(document.getElementsByClassName("mdc-button__label")[0],"babylon-plus"),this.renderer.addClass(document.getElementsByClassName("mdc-snackbar__surface")[0],"error"),m})).subscribe()}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=f(s)))(o||s)}})()}static{this.\u0275cmp=b({type:s,selectors:[["app-contact"]],standalone:!0,features:[v,E],decls:2,vars:3,consts:[[3,"body","context"]],template:function(t,o){if(t&1&&(T(0,Q,2,2,"div"),D(1,"async")),t&2){let n;k(0,(n=A(1,1,o.pageConfig$))?0:-1,n)}},dependencies:[M,B,j],changeDetection:0})}}return s})()});V();export{pe as ContactComponent};

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.