PageSourceSearch

https://www.stayurbanrest.com/_next/static/chunks/9835.ea1105d87c70f37e.js

js stayurbanrest.com collected 2026-10-04 03:08:36 UTC 8,460 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9835],{54521:function(e,a,s){"use strict";s.r(a),s.d(a,{FormSectionBlock:function(){return FormSectionBlock}});var t=s(52322),r=s(83112),i=s(34464),l=s(1458);s(65635),s(63048);var n="vr1twz4",o="vr1twz5",c=s(5632),m=s(2784),d=s(63955),u=s(12091),f=s(7373),p=s(8614),h=s(62643),v=s(14623),g=s(25872),b=s(53476),_=s(77275),y=s(63398);let x={firstName:"",lastName:"",businessName:"",taxId:"",email:"",phone:"",website:"",mainCountryOfTravel:"",mainCityOfTravel:"",annualNights:{value:"",label:""}},N=[{value:"5 - 25",label:"5 - 25"},{value:"25 - 50",label:"25 - 50"},{value:"50 - 75",label:"50 - 75"},{value:"75 - 100",label:"75 - 100"},{value:"100+",label:"100+"}],RegisterBusinessForm=e=>{let{submitLabel:a,successMessageText:s,disclaimerText:i,isLightPanel:x=!1}=e,j=(0,r.Z)(),w=(0,c.useRouter)(),{isValid:M}=(0,d.cl)(),{getValues:O,handleSubmit:S}=(0,d.Gc)(),[z,R]=(0,m.useState)(!1),[k,C]=(0,m.useState)(!1),[T,F]=(0,m.useState)(null),L={validate:e=>"string"==typeof e&&e.trim().length>0||j.formatMessage({id:"form.error.required"})};return k?(0,t.jsx)("p",{className:"vr1twz9",children:s}):(0,t.jsx)("form",{onSubmit:S(()=>{var e,a,s,t;if(!M)return;R(!0),F(null);let r=O(),i=null;try{i=null!==(s=null===(a=window)||void 0===a?void 0:null===(e=a.localStorage)||void 0===e?void 0:e.getItem(f.jt))&&void 0!==s?s:null}catch(e){i=null}let l={firstName:r.firstName.trim(),lastName:r.lastName.trim(),businessName:r.businessName.trim(),email:r.email.trim(),taxId:r.taxId.trim(),phone:r.phone,website:r.website.trim(),mainCountryOfTravel:r.mainCountryOfTravel.trim(),mainCityOfTravel:r.mainCityOfTravel.trim(),annualNights:null!==(t=r.annualNights.label)&&void 0!==t?t:"",gclid:null!=i?i:"",urlSubmitted:w.asPath};fetch("/api/urfb/qualify-lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}).then(e=>{if(!e.ok)throw Error("Lead submission responded with status ".concat(e.status));(0,p.z)(),C(!0)}).catch(e=>{console.error("Error submitting register-business form:",e instanceof Error?e.message:String(e)),F(j.formatMessage({id:"form_section.error"}))}).finally(()=>{R(!1)})}),noValidate:!0,children:(0,t.jsxs)("div",{className:"vr1twz3",children:[(0,t.jsxs)("div",{className:n,children:[(0,t.jsx)(_.o,{name:"firstName",className:o,label:j.formatMessage({id:"form_section.first_name.label"}),placeholder:j.formatMessage({id:"form_section.first_name.placeholder"}),rules:L,isRequired:!0}),(0,t.jsx)(_.o,{name:"lastName",className:o,label:j.formatMessage({id:"form_section.last_name.label"}),placeholder:j.formatMessage({id:"form_section.last_name.placeholder"}),rules:L,isRequired:!0})]}),(0,t.jsx)(_.o,{name:"businessName",label:j.formatMessage({id:"form_section.business_name.label"}),placeholder:j.formatMessage({id:"form_section.business_name.placeholder"}),rules:L,isRequired:!0}),(0,t.jsx)(_.o,{name:"website",label:j.formatMessage({id:"form_section.website.label"}),placeholder:j.formatMessage({id:"form_section.website.placeholder"}),rules:L,isRequired:!0}),(0,t.jsx)(_.o,{name:"taxId",label:j.formatMessage({id:"form_section.tax_id.label"}),placeholder:j.formatMessage({id:"form_section.tax_id.placeholder"})}),(0,t.jsx)(v.U,{name:"email",label:j.formatMessage({id:"form_section.email.label"}),placeholder:j.formatMessage({id:"form_section.email.placeholder"}),isRequired:!0}),(0,t.jsx)(g.I,{name:"phone",label:j.formatMessage({id:"form_section.phone.label"}),placeholder:j.formatMessage({id:"form_section.phone.placeholder"}),rules:{validate:e=>!e||"string"==typeof e&&(0,u.tm)(e)||j.formatMessage({id:"form.error.invalid_phone_number"})}}),(0,t.jsxs)("div",{className:n,children:[(0,t.jsx)(_.o,{name:"mainCountryOfTravel",className:o,label:j.formatMessage({id:"form_section.main_country_of_travel.label"}),placeholder:j.formatMessage({id:"form_section.main_country_of_travel.placeholder"}),rules:L,isRequired:!0}),(0,t.jsx)(_.o,{name:"mainCityOfTravel",className:o,label:j.formatMessage({id:"form_section.main_city_of_travel.label"}),placeholder:j.formatMessage({id:"form_section.main_city_of_travel.placeholder"}),rules:L,isRequired:!0})]}),(0,t.jsx)(b.P,{name:"annualNights",label:j.formatMessage({id:"form_section.annual_nights.label"}),placeholder:j.formatMessage({id:"form_section.annual_nights.placeholder"}),options:N,rules:{validate:e=>{let a=null==e?void 0:e.value,s="string"==typeof a?a.trim().length>0:null!=a;return s||j.formatMessage({id:"form.error.required"})}},isRequired:!0}),T&&(0,t.jsx)("p",{className:"vr1twz6",role:"alert",children:T}),(0,t.jsx)(h.z,{variant:"primaryFullwidth",type:"submit",disabled:!M||z,onDarkBackgroun
1d:!x,children:z?(0,t.jsxs)("span",{className:"vr1twz7",children:[j.formatMessage({id:"form_section.submitting"}),(0,t.jsx)(y.a,{size:18,color:"white"})]}):a}),i&&(0,t.jsx)("p",{className:"vr1twz8",children:(0,t.jsx)(l.T9,{children:i})})]})})};RegisterBusinessForm.displayName="RegisterBusinessForm";let FormSectionBlock=e=>{let{id:a,preHeading:s,heading:n,subHeading:o,disclaimer:c,submitLabel:m,successMessage:d,headingLevel:u,theme:f}=e,p=(0,r.Z)(),h=null!=f?f:"Light",v=m||p.formatMessage({id:"form_section.submit"}),g=d||p.formatMessage({id:"form_section.success"}),b=(0,l.Nu)(h);return(0,t.jsx)("section",{className:(0,l.L9)({theme:h}),id:a,children:(0,t.jsxs)("div",{className:"vr1twz0",children:[(0,t.jsx)(l.OT,{preHeading:s,heading:n,subHeading:o,headingLevel:null!=u?u:"h2",size:"section",textPosition:"Center",className:"".concat("vr1twz1"," ").concat((0,l.fO)({theme:h}))}),(0,t.jsx)(i.l,{className:"vr1twz2",defaultValues:x,children:(0,t.jsx)(RegisterBusinessForm,{submitLabel:v,successMessageText:g,disclaimerText:c,isLightPanel:b})})]})})};FormSectionBlock.displayName="FormSectionBlock"},63398:function(e,a,s){"use strict";s.d(a,{a:function(){return Loader}});var t=s(52322),r=s(21341),i=s(24266);let Loader=e=>{let{color:a=i.O9.earth500,size:s=30,loading:l=!0}=e;return(0,t.jsx)(r.Z,{color:a,loading:l,size:s,"aria-label":"Loading Spinner","data-testid":"loader"})}},63048:function(){},21341:function(e,a,s){"use strict";s.d(a,{Z:function(){return esm_PulseLoader}});var t=s(2784),r={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function cssValue(e){var a=function(e){if("number"==typeof e)return{value:e,unit:"px"};var a,s=(e.match(/^[0-9.]*/)||"").toString();a=s.includes(".")?parseFloat(s):parseInt(s,10);var t=(e.match(/[^0-9]*$/)||"").toString();return r[t]?{value:a,unit:t}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(a,"px.")),{value:a,unit:"px"})}(e);return"".concat(a.value).concat(a.unit)}var __assign=function(){return(__assign=Object.assign||function(e){for(var a,s=1,t=arguments.length;s<t;s++)for(var r in a=arguments[s])Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);return e}).apply(this,arguments)},__rest=function(e,a){var s={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>a.indexOf(t)&&(s[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)0>a.indexOf(t[r])&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(s[t[r]]=e[t[r]]);return s},i=function(e,a,s){var t="react-spinners-".concat(e,"-").concat(s);if("undefined"==typeof window||!window.document)return t;var r=document.createElement("style");document.head.appendChild(r);var i=r.sheet,l="\n    @keyframes ".concat(t," {\n      ").concat(a,"\n    }\n  ");return i&&i.insertRule(l,0),t}("PulseLoader","0% {transform: scale(1); opacity: 1} 45% {transform: scale(0.1); opacity: 0.7} 80% {transform: scale(1); opacity: 1}","pulse"),esm_PulseLoader=function(e){var a=e.loading,s=e.color,r=void 0===s?"#000000":s,l=e.speedMultiplier,n=void 0===l?1:l,o=e.cssOverride,c=e.size,m=void 0===c?15:c,d=e.margin,u=void 0===d?2:d,f=__rest(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),p=__assign({display:"inherit"},void 0===o?{}:o),style=function(e){return{backgroundColor:r,width:cssValue(m),height:cssValue(m),margin:cssValue(u),borderRadius:"100%",display:"inline-block",animation:"".concat(i," ").concat(.75/n,"s ").concat(.12*e/n,"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)"),animationFillMode:"both"}};return void 0===a||a?t.createElement("span",__assign({style:p},f),t.createElement("span",{style:style(1)}),t.createElement("span",{style:style(2)}),t.createElement("span",{style:style(3)})):null}}}]);

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.