PageSourceSearch

https://ensanahotels.com/chunk-VZG4LIIS.js

js ensanahotels.com collected 2026-09-24 21:41:13 UTC 6,037 bytes, 75 lines download raw bytes

1import{a as l,b as $}from"./chunk-RXYG3N2B.js";import"./chunk-PBIQZQLJ.js";import{g as q,h as D}from"./chunk-6J2SQBKA.js";import"./chunk-6BMIHS23.js";import{g as T,i as k,q as s,r as I,s as V}from"./chunk-ZU7O63YZ.js";import"./chunk-SPJZEAUS.js";import{a as w}from"./chunk-MSUBAXHX.js";import"./chunk-FQ6V32PS.js";import"./chunk-HMP4R2GS.js";import"./chunk-IRBMYRAT.js";import"./chunk-SNHFPIAO.js";import"./chunk-E2N6PU4S.js";import"./chunk-E4UY4BXZ.js";import"./chunk-ZNTFNLBT.js";import"./chunk-WK7D5IDY.js";import"./chunk-KTHKO4GK.js";import"./chunk-TTT6IWIH.js";import{b as C,e as F}from"./chunk-GP3M5QFE.js";import{a as M,b as R,k as x,l as o,q as y,r as S,s as v}from"./chunk-DCEXQFYA.js";import"./chunk-3DRJ5GNF.js";import"./chunk-4WKQUL4P.js";import"./chunk-KBXENTVI.js";import"./chunk-KMZTA53X.js";import"./chunk-Q5CUZH46.js";import{a as N}from"./chunk-FFKIVAAC.js";import"./chunk-5JB3LDBY.js";import"./chunk-GHDFJD55.js";import"./chunk-G6XYAJLL.js";import"./chunk-UOQLR5PZ.js";import"./chunk-4PB3GMAI.js";import"./chunk-RC53Y4P2.js";import"./chunk-EM63TEMR.js";import"./chunk-CQIXLXJE.js";import"./chunk-OSRH44O6.js";import"./chunk-X4UJ3ACJ.js";import"./chunk-ZP46AX26.js";import"./chunk-EKU34APJ.js";import"./chunk-VOCWW34C.js";import"./chunk-3N4MKKU6.js";import"./chunk-57DLSEBE.js";import"./chunk-ET7J66M4.js";import"./chunk-ZZFUZSW5.js";import"./chunk-QBL6KXPJ.js";import"./chunk-PSD2PMLR.js";import"./chunk-PGFTX2DW.js";import"./chunk-ZNU2OBSZ.js";import"./chunk-C2J6WCS5.js";import"./chunk-MCJV4HPA.js";import"./chunk-KVAM4YXC.js";import{Xb as p,cb as g,cc as b,m as f,xd as h}from"./chunk-5O2YG2EB.js";import{i as u}from"./chunk-KP4Y2ST2.js";var t=u(M());var G=u(R());var L=e=>{let[r,d]=(0,G.useState)(!1),m=async i=>{let a={email:i.email,firstName:i.firstName,lastName:i.lastName,message:i.message,privacyStatement:i.privacyStatement,selection:i.selection},n=new FormData;n.append("value",JSON.stringify(a)),n.append("template","7"),n.append("__RequestVerificationToken",e.antiforgeryToken),n.append("parameters",JSON.stringify({email:e.sendToEmail})),(await fetch("/api/Messages",{body:n,method:"POST"})).status===200&&d(!0)};return(0,t.jsx)(F,{marginInline:C,children:(0,t.jsxs)(E,{children:[e.title&&(0,t.jsx)(O,{children:e.title}),(0,t.jsx)(A,{children:(0,t.jsx)(T,{onSubmit:m,initialValues:{email:"",firstName:"",lastName:"",message:"",privacyStatement:!1},render:({handleSubmit:i})=>(0,t.jsxs)($,{onSubmit:i,children:[(0,t.jsxs)(l,{children:[(0,t.jsxs)(j,{className:"details",children:[(0,t.jsx)(s,{label:e.firstName,validate:{error:"",max:256,min:0,required:!0},name:"firstName",className:"grid-firstName",isLabelPlaceholder:!0}),(0,t.jsx)(s,{label:e.lastName,validate:{error:"",max:256,min:0,required:!0},name:"lastName",className:"grid-lastName",isLabelPlaceholder:!0}),(0,t.jsx)(s,{label:e.email,validate:{error:"",max:100,min:0,required:!0},name:"email",className:"grid-email",isLabelPlaceholder:!0,isMail:!0}),(0,t.jsx)(D,{name:"selection",className:"grid-selection",options:e.selector.items.map(a=>({label:`${a.label}`,value:a.value})),placeholder:"",label:e.selector.label,validate:{error:"",required:!0},isLabelPlaceholder:!0})]}),(0,t.jsx)(I,{label:e.message,name:"message",required:!0,validate:{error:"",min:0,required:!0}})]}),(0,t.jsx)(l,{children:(0,t.jsx)(j,{children:(0,t.jsx)(q,{description:e.privacyStatement,name:"privacyStatement",required:!0})})}),e.note&&(0,t.jsx)(l,{children:(0,t.jsx)(w,{htmlDescription:e.note,classes:"note"})}),(0,t.jsx)(k,{subscription:{hasSubmitErrors:!0,submitSucceeded:!0,submitting:!0},children:a=>(0,t.jsx)(V,{className:a.submitSucceeded&&r?"success":a.submitSucceeded?"failed":"",buttonText:a.submitting&&e.button.submitting||a.submitSucceeded&&e.button.success||e.button.title,disabled:a.submitting||a.hasSubmitErrors||a.submitSucceeded})})]})})})]})})},E=o.div`
2  max-width: 1584px;
3  width: 100%;
4  font-family: var(--branding-font);
5`,O=o.h3`
6  font-family: var(--branding-font), Verdana, sans-serif;
7  font-weight: 300;
8  text-align: left;
9  margin: 0 0 24px 0;
10  width: 100%;
11  font-size: 24px;
12  line-height: 29px;
13  color: ${({theme:e})=>e.colors.darkGray};
14
15  @media (min-width: ${({theme:e})=>e.breakpoints.mfTablet}) {
16    margin: 0 0 40px 0;
17    font-size: 48px;
18    line-height: 58px;
19  }
20`,A=o.div`
21  background-color: ${({theme:e})=>e.colors.superLightGray};
22  padding: 20px 24px;
23  width: 100%;
24`,j=o.div`
25  display: flex;
26  flex-flow: column nowrap;
27  row-gap: 8px;
28
29  &.details {
30    @media (min-width: ${({theme:e})=>e.breakpoints.mfTablet}) {
31      display: grid;
32      grid-template-columns: 1fr 1fr;
33      gap: 16px;
34    }
35    @media (min-width: ${({theme:e})=>e.breakpoints.mfDesktop}) {
36      gap: 24px;
37    }
38  }
39
40  &.details {
41    @media (min-width: ${({theme:e})=>e.breakpoints.mfTablet}) {
42      grid-template-areas:
43        'firstName lastName'
44        'email subject';
45    }
46  }
47
48  /* Grid area definiton, in css fc because of folding code in editor */
49  ${x`
50    .grid-firstName {
51      grid-area: firstName;
52    }
53
54    .grid-lastName {
55      grid-area: lastName;
56    }
57
58    .grid-email {
59      grid-area: email;
60    }
61
62    .grid-subject {
63      grid-area: subject;
64    }
65
66    .grid-message {
67      grid-area: message;
68    }
69
70    .grid-privacyConsent {
71      grid-area: privacyConsent;
72    }
73  `}
74`,re=L,_=class c extends S{static{this.\u0275fac=(()=>{let r;return function(m){return(r||(r=g(c)))(m||c)}})()}static{this.\u0275cmp=p({type:c,selectors:[["ensana-contact-form-v2"]],inputs:{antiforgeryToken:"antiforgeryToken",button:"button",email:"email",firstName:"firstName",lastName:"lastName",message:"message",note:"note",privacyStatement:"privacyStatement",selector:"selector",sendToEmail:"sendToEmail",title:"title"},features:[h([y({factory:L,wrapper:v})]),b],decls:0,vars:0,template:function(d,m){},encapsulation:2,changeDetection:1})}};_=f([N("Contact Form v2",import.meta.url)],_);export{_ as ContactFormV2Component,j as GroupFields,re as default};
75/**i18n:32c141fcc4b1876c0e7b77dde904aa447724c099d9ef89717780496170061645*/

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.