PageSourceSearch

https://www.discoverysuites.com/_next/static/chunks/9490.a82fb81ae6725954.js

js discoverysuites.com collected 2026-10-03 23:25:35 UTC 4,011 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9490],{19490:function(e,t,s){s.r(t),s.d(t,{default:function(){return SpaInquiry}});var r=s(85893),n=s(72178),a=s(67294),i=s(89249),l=s(22269),c=s(32458),o=s(76248);function SpaInquiryForm(e){var t,s,u;let{form:p}=e,d=(0,l.Z)(e=>e),[x,m]=(0,a.useState)(!1),f=(0,c.Z)(e=>e.captcha),[h,v]=(0,l.Z)(e=>[e.uploading,e.submitLoading],o.X),b=(null==p?void 0:null===(u=p.fields)||void 0===u?void 0:null===(s=u.blueprint)||void 0===s?void 0:null===(t=s.schema)||void 0===t?void 0:t.sections)||[],[j,y]=(0,a.useState)([]),findClass=e=>{switch(e){case"name":default:return"border-[1px] border-[#ddd] w-full px-[10px] py-[5px] min-h-[45px] w-[100%]";case"message":return"w-full rounded-[5px] border-[1px] border-[#ccc] py-[8.5px] px-3 min-h-[100px] col-span-2";case"file":case"event_type":case"country":return"";case"multi_select":case"single_select":return"react-select cursor-pointer border-[1px] rounded-[5px] h-[35px] pt-[1px] text-sm";case"radio_list":return"cursor-pointer"}},findWrapperClass=e=>{switch(e){case"message":case"name":case"data_privacy_consent":return"col-span-2";case"radio_list":return"flex flex-col";default:return"col-span-2 sm:col-span-1"}},[g,w]=(0,a.useState)();return(0,a.useEffect)(()=>{},[null==d?void 0:d.formSuccessInfo]),(0,r.jsx)(r.Fragment,{children:b.map(e=>{var t;let s=(null==e?void 0:e.fields)||[];return(0,r.jsx)(a.Fragment,{children:(0,r.jsxs)("form",{onSubmit:e=>(0,i.Gz)({e,formId:p.id,setToken:w,token:g,captcha:f,sections:b,setErrors:y,formData:d}),children:[(0,r.jsx)("div",{className:"text-sm grid grid-cols-1 sm:grid-cols-2 gap-4",children:s.map(t=>(0,r.jsx)(a.Fragment,{children:(0,r.jsx)(n.Z,{...t,className:findClass(null==t?void 0:t.state_name),wrapperclassname:findWrapperClass(null==t?void 0:t.state_name),error:(0,i.VZ)(j,null==e?void 0:e.state_name,null==t?void 0:t.state_name)})},null==t?void 0:t.state_name))}),(null==p?void 0:null===(t=p.attributes)||void 0===t?void 0:t.uses_captcha)&&(0,r.jsxs)("div",{className:"mt-[16px]",children:[(0,r.jsx)(i.fi,{setToken:w}),(null==j?void 0:j.captcha_token)&&(0,r.jsx)("div",{className:"text-[12px] mt-[2px] text-red-600",children:null==j?void 0:j.captcha_token})]}),(0,r.jsx)("div",{className:"mt-[18px]",children:h||v?(0,r.jsxs)("button",{type:"button",className:"bg-primary py-[10px] text-[#FFFFFF] text-[15px] flex justify-center items-center min-w-[95px] px-[15px] uppercase opacity-[.5]",disabled:!0,children:[(0,r.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Please wait..."]}):(0,r.jsx)("button",{type:"submit",className:"bg-primary py-[10px] text-[#FFFFFF] text-[15px] flex justify-center items-center min-w-[95px] px-[15px] uppercase",children:"Submit"})})]})},null==e?void 0:e.state_name)})})}function SpaInquiry(e){var t;let{block:s}=e;return(0,r.jsx)("div",{className:"py-[30px] bg-[#F1F1F1]",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)(SpaInquiryForm,{form:null==s?void 0:null===(t=s.main)||void 0===t?void 0:t.form})})})}s(5152)},76248:function(e,t,s){s.d(t,{X:function(){return shallow$1}});function shallow$1(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[s,r]of e)if(!Object.is(r,t.get(s)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let s of e)if(!t.has(s))return!1;return!0}let s=Object.keys(e);if(s.length!==Object.keys(t).length)return!1;for(let r of s)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}}}]);

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.