PageSourceSearch

https://www.hotelspadai.it/d027d11b-9870be732ad9d1049c59.js

js hotelspadai.it collected 2026-10-08 04:01:44 UTC 5,755 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhotelspadai=self.webpackChunkhotelspadai||[]).push([[798],{40455:function(e,t,r){r.d(t,{H:function(){return b}});var a=r(87462),i=r(62330),l=r(47146),o=r(59909),n=r(73340),d=r(97500),m=r(91363),s=r(26832),u=r(21265),h=r(81214),g=r(52372),p=r(50674),c=r(77376),Z=r(37372),f=r(67294),v=r(34288),y=r(72440),w=r(11748),x=r(4382);const k=/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i,b=(0,f.memo)((function(e){let{address:t,description:r,email:i,googleMapsURL:g,image:b,languageCode:E,onContactsFormSendToBackend:M,pageTitle:V,phone:N,title:U}=e;const{0:B,1:H}=(0,f.useState)(!0),{0:O,1:R}=(0,f.useState)(!1),{0:$,1:W}=(0,f.useState)(!1),{0:X,1:A}=(0,f.useState)(!1),G=(0,f.useCallback)((async e=>{if(O)return;W(!1),A(!1),R(!0);const t=await M(e);R(!1),(0,Z.isLeft)(t)?W(!0):(A(!0),void 0!==window.gtag&&window.gtag("event","Submit",{event_category:"Website",event_label:"Contacts Form"}))}),[O,M]),{register:J,formState:K,handleSubmit:P}=(0,v.cI)({mode:"onBlur",shouldFocusError:!0}),Q=(0,f.useMemo)((()=>P(G)),[P,G]);return(0,f.useEffect)((()=>{if(K.errors){var e;const t=null===(e=Object.values(K.errors).find((e=>void 0!==(null==e?void 0:e.ref))))||void 0===e?void 0:e.ref;t&&t.scrollIntoView&&t.scrollIntoView({behavior:"smooth",block:"center"})}setTimeout((()=>{H(!1)}),2e3)}),[K.errors]),(0,x.tZ)(q,null,(0,x.tZ)(l.a,{className:"icon",delay:B?1.3:0},(0,x.tZ)(h.LL,null)),V?(0,x.tZ)(l.a,{delay:B?1.5:0},(0,x.tZ)(j,null,V)):null,(0,x.tZ)(S,{row:!0,wrap:!0},(0,x.tZ)(F,null,(0,x.tZ)(p.pU,{greaterThanOrEqual:"desktopSmall"},(0,x.tZ)(w.z,{address:t,email:i,googleMapsURL:g,languageCode:E,phone:N}))),(0,x.tZ)(I,null,U?(0,x.tZ)(l.a,{delay:B?1.7:0},(0,x.tZ)(z,null,U)):null,r?(0,x.tZ)(l.a,{delay:B?1.8:0},(0,x.tZ)(C,{dangerouslySetInnerHTML:{__html:r}})):null,(0,x.tZ)(l.a,{delay:B?1.9:0},(0,x.tZ)(L,{onSubmit:O?void 0:Q,noValidate:!0,autoComplete:"off"},(0,x.tZ)(s.$,{className:O?void 0:"hidden",variant:"form"}),(0,x.tZ)(D,{row:!0,wrap:!0,space:"between"},(0,x.tZ)(_,null,(0,x.tZ)(m.I,(0,a.Z)({error:void 0!==K.errors.name,isDirty:K.dirtyFields.name,placeholder:(0,c.r)("name",E)+"*",type:"text",required:!0},J("name",{required:!0,validate:e=>e.length>2})))),(0,x.tZ)(_,null,(0,x.tZ)(m.I,(0,a.Z)({error:void 0!==K.errors.lastname,isDirty:K.dirtyFields.lastname,type:"text",placeholder:(0,c.r)("surname",E)+"*",required:!0},J("lastname",{required:!0,validate:e=>e.length>2})))),(0,x.tZ)(_,null,(0,x.tZ)(m.I,(0,a.Z)({error:void 0!==K.errors.email,isDirty:K.dirtyFields.email,placeholder:(0,c.r)("email",E)+"*",type:"email",required:!0},J("email",{required:!0,validate:e=>k.test(e)})))),(0,x.tZ)(_,null,(0,x.tZ)(m.I,(0,a.Z)({error:void 0!==K.errors.phone,isDirty:K.dirtyFields.phone,placeholder:(0,c.r)("phone",E)+"*",type:"text",required:!0},J("phone",{required:!0,validate:e=>e.length>2})))),(0,x.tZ)(_,{className:"large-field"},(0,x.tZ)(u.g,(0,a.Z)({placeholder:(0,c.r)("message",E),required:!1},J("message"))))),$?(0,x.tZ)(n.q,{text:(0,c.r)("form-error-message",E),title:(0,c.r)("form-error-message-title",E),type:"error"}):null,X?(0,x.tZ)(n.q,{text:(0,c.r)("form-confirmation-message",E),title:(0,c.r)("form-confirmation-message-title",E)}):null,(0,x.tZ)(m.I,{name:"submit",type:"submit",value:(0,c.r)("send-request",E),variant:"submit"}),(0,x.tZ)(o.X,(0,a.Z)({error:void 0!==K.errors.privacy_policy,label:(0,c.r)("form-policy-text",E),required:!0},J("privacy_policy",{required:!0}))))))),b?(0,x.tZ)(T,null,(0,x.tZ)(y.VS,{scale:[1,1.2]},(0,x.tZ)(d.E,b))):null)})),q=(0,i.Z)("section",{target:"e14k5jl110"})("padding-top:10.125rem;text-align:center;.icon{svg{width:0.375rem;height:0.375rem;fill:",(e=>{let{theme:t}=e;return t.colors.variants.neutralDark2}),";margin-bottom:0.375rem;}}@media (max-width: 1199px){padding-top:7.5rem;}"),j=(0,i.Z)("h1",{target:"e14k5jl19"})("color:",(e=>{let{theme:t}=e;return t.colors.variants.neutralDark2}),";font-family:",(e=>{let{theme:t}=e;return t.fontFamily.heading}),";font-size:5rem;line-height:6rem;@media (max-width: 1199px){font-size:3.25rem;line-height:3.875rem;}"),S=(0,i.Z)(g.h,{target:"e14k5jl18"})({name:"1bwaut1",styles:"margin-top:6.6875rem;text-align:left;@media (max-width: 1199px){margin-top:3.75rem;}"}),F=(0,i.Z)("div",{target:"e14k5jl17"})({name:"16qrjr",styles:"width:37%;padding:0 8.333vw;@media (max-width: 1199px){width:100%;padding:0 1.875rem;text-align:center;}"}),I=(0,i.Z)("div",{target:"e14k5jl16"})("width:63%;background:",(e=>{let{theme:t}=e;return t.colors.variants.neutralLight5}),";padding:6.5625rem 7.292vw;@media (max-width: 1199px){width:100%;padding:3.75rem 1.875rem;}"),z=(0,i.Z)("h2",{target:"e14k5jl15"})("color:",(e=>{let{theme:t}=e;return t.colors.variants.neutralDark2}),";font-family:",(e=>{let{theme:t}=e;return t.fontFamily.heading}),";font-size:1.5rem;line-height:2rem;"),C=(0,i.Z)("div",{target:"e14k5jl14"})("color:",(e=>{let{theme:t}=e;return t.colors.variants.neutralLight1}),";font-family:",(e=>{let{theme:t}=e;return t.fontFamily.paragraph}),";font-size:1rem;font-weight:300;line-height:1.375rem;margin-top:0.75rem;"),L=(0,i.Z)("form",{target:"e14k5jl13"})({name:"wrqbg1",styles:"position:relative;z-index:2"}),D=(0,i.Z)(g.h,{target:"e14k5jl12"})({name:"akdqam",styles:"margin-top:1rem"}),_=(0,i.Z)("div",{target:"e14k5jl11"})({name:"9hpu3d",styles:"width:calc(50% - 1.4375rem);margin-top:1.75rem;&.large-field{width:100%;}@media (max-width: 1199px){width:calc(50% - 0.9375rem);}@media (max-width: 374px){width:100%;}"}),T=(0,i.Z)("div",{target:"e14k5jl10"})({name:"nsl9ex",styles:"aspect-ratio:2.06;overflow:hidden;>div{height:100%;position:relative;}img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;}@media (max-width: 1199px){aspect-ratio:2;}"})}}]);
2//# sourceMappingURL=d027d11b-9870be732ad9d1049c59.js.map

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.