PageSourceSearch

https://www.mms.com/_next/static/chunks/6708.610cad30aee5eec4.js

js mms.com collected 2026-09-24 17:15:23 UTC 16,610 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6708],{76708:function(e,n,t){t.r(n),t.d(n,{RequestQuoteConnector:function(){return A}});var r=t(38839),o=t(12353),i=t(35837),a=t(32735),u=t(86016),l=t(19141),s=t(85404),d=t(1912),c=t(65834),m=t(74459),p=t(54225),h=t(76220),f=t(53918),v=t(32307),b=t(553),y=t(38765),g=t(38866),C=t(29922),x=t(16608),N=t(33206),q=t(14515);function w(){const e=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: ",";\n"]);return w=function(){return e},e}function F(){const e=(0,x._)(["\n  display: flex;\n  flex-direction: column;\n  gap: ",";\n"]);return F=function(){return e},e}const j={FormFieldSet:N.Z.fieldset(w(),(e=>{let{theme:n}=e;return n.spacing(2)})),CheckBoxWrapper:N.Z.div(F(),(e=>{let{theme:n}=e;return n.spacing(.5)})),FormButton:(0,N.Z)(q.z)((e=>{let{theme:n}=e;return"\n  ".concat(n.breakpoints.up("md")," {\n    align-self: flex-start;\n  }\n")}))},I="RequestQuote-",_="firstName",R="lastName",M="phoneNumber",S="email",T="company",P="eventType",L="eventDate",V="numberOfGuests",O="budget",k="addCustomization";function D(e){let{heading:n,form:t,onRequestQuote:i,onFirstInteraction:u,displayAddCustomizationField:l,displaySubmitFailedError:s,disabled:x,requiredFormFieldDisplayText:N}=e;const{dateValidation:q,emailValidation:w,numberValidation:F,phoneValidation:D}=(0,d.V$)(),{generalErrorMessage:E,otherCountries:B}=(0,d.gG)(),A=(0,d.Vx)(),Z=(0,a.useRef)(!1),G={name:M,idPrefix:I,autoComplete:m.ce.TEL,required:!0,field:t[M],...D()},W=(0,o.getFeatureFlag)("useNativePhoneInput")?(0,r.jsx)(h.F,{...G,type:"tel"}):(0,r.jsx)(f.G,{...G,countryCode:null===A||void 0===A?void 0:A.countryCode,countryCodeLabel:t.countryCodeLabel,isUnitedStates:null===A||void 0===A?void 0:A.isUnitedStates,locale:null===A||void 0===A?void 0:A.locale,otherCountriesLabel:B}),z=(0,c.cI)({mode:"onTouched",defaultValues:{addCustomization:[]}});return(0,a.useEffect)((()=>{Z.current||(u(),Z.current=!0)}),[z.formState.isDirty,u]),(0,r.jsx)(g.Y,{children:(0,r.jsx)(c.RV,{...z,children:(0,r.jsx)("form",{"aria-label":n,noValidate:!0,onSubmit:z.handleSubmit(i),children:(0,r.jsxs)(j.FormFieldSet,{disabled:z.formState.isSubmitting||x,children:[(0,r.jsx)(v.X,{spacingBottom:1,tag:"legend",variant:"h3BoldSerif",children:n}),(0,r.jsx)(y.Z,{tag:"p",variant:"bodySmall",children:N}),(0,r.jsx)(h.F,{ariaLabel:"".concat(n,". ").concat(t[_].label),autoComplete:m.ce.GIVEN_NAME,field:t[_],idPrefix:I,name:_,required:t.firstNameRequired}),(0,r.jsx)(h.F,{autoComplete:m.ce.FAMILY_NAME,field:t[R],idPrefix:I,name:R,required:t.lastNameRequired}),W,(0,r.jsx)(h.F,{...w(),autoComplete:m.ce.EMAIL,field:t[S],idPrefix:I,name:S,required:!0,type:"email"}),(0,r.jsx)(h.F,{autoComplete:m.ce.ORGANIZATION,field:t[T],idPrefix:I,name:T,required:t.companyRequired}),(0,r.jsx)(h.F,{field:t[P],idPrefix:I,name:P,required:t.eventTypeRequired}),(0,r.jsx)(h.F,{...q({inTheFuture:!0}),field:t[L],idPrefix:I,name:L,required:t.eventDateRequired}),(0,r.jsx)(h.F,{...F(),field:t[V],idPrefix:I,name:V,required:t.numberOfGuestsRequired}),(0,r.jsx)(h.F,{field:t[O],idPrefix:I,name:O,required:t.budgetRequired}),!!l&&t[k]&&(0,r.jsx)(p.A,{additionalLabelText:t[k].helpMessage,field:{label:t[k].label},idPrefix:I,name:k,required:!0,type:"checkbox",value:"yes"}),(0,r.jsx)(j.FormButton,{size:"large",type:"submit",variant:"primary",children:t.submitText}),!!s&&(0,r.jsx)(b.P,{type:b.k.WARNING,variant:"bodySmall",children:(0,r.jsx)(C.U,{bodyTypography:"bodySmall",children:E})})]})})})})}var E=t(85543),B=t(77109);function A(e){let{form:n,successPageUrl:t,heading:c}=e;const m=(0,d.Vx)(),p=(0,i.useRouter)(),h=(0,o.isString)(p.query.recipeId)?p.query.recipeId:void 0,[f,v]=(0,a.useState)(!1),b=(0,d.gG)();var y;return(0,r.jsx)(D,{displayAddCustomizationField:!h&&!!n.addCustomizationEnabled,displaySubmitFailedError:f,form:{addCustomizationEnabled:n.addCustomizationEnabled,addCustomization:n.addCustomization?(0,l.MN)(n.addCustomization):void 0,budgetRequired:n.budgetRequired,budget:(0,l.MN)(n.budget),email:(0,l.MN)(n.email),company:(0,l.MN)(n.company),companyRequired:n.companyRequired,eventDateRequired:n.eventDateRequired,eventDate:(0,l.MN)(n.eventDate),eventTypeRequired:n.eventTypeRequired,eventType:(0,l.MN)(n.eventType),firstNameRequired:n.firstNameRequired,firstName:(0,l.MN)(n.firstName),lastNameRequired:n.lastNameRequired,lastName:(0,l.MN)(n.lastName),numberOfGuestsRequired:n.numberOfGuestsRequired,numberOfGuests:(0,l.MN)(n.numberOfGuests),phoneNumberRequired:n.phoneNumberRequired,phoneNumber:(0,l.MN)(n.phoneNumber),countryCodeLabel:null!==(y=n.phoneCountryCodeLabel)&&void 0!==y?y:"",submitText:n.submitRequestButtonText},heading:c,onFirstInteraction:function(){(0,s.xe)({event:"start_form",form_type:"b2b_quote_form"})},onRequestQuote:async function(e){if(v(!1),(0,s.xe)({event:"b2b_quote_form_flow",step_number:"1",step_name:"event details",event_type:e.eventType,estimated_budget:e.budget,num_of_attendees:e.numberOfGuests}),!m)return void v(!0);const n={localeInfo:m,email:e.email,company:e.company,recipeId:h||"",referenceUrl:window.location.href,firstName:e.firstName,lastName:e.lastName,phoneNumber:e.phoneNumber,eventType:e.eventType,eventDate:e.eventDate,estimatedBudget:e.budget,numberOfAttendees:isNaN(parseInt(e.numberOfGuests))?void 0:parseInt(e.numberOfGuests)};if(await(0,u._)(n))if((0,s.xe)({event:"b2b_quote_form_submit",event_type:e.eventType,estimated_budget:e.budget,num_of_attendees:e.numberOfGuests}),e.addCustomization.length>0){const e="B2B",t=(0,o.uuidv4)(),r=(0,B.um)(t);null===r||void 0===r||r.setValue({email:n.email,company:n.company,firstName:n.firstName,lastName:n.lastName,phoneNumber:n.phoneNumber,eventType:n.eventType,eventDate:n.eventDate,estimatedBudget:n.estimatedBudget,numberOfAttendees:n.numberOfAttendees}),await p.push((0,E.kv)("/configurator",p.locale,{query:{customerType:e,requestQuoteId:t}}))}else await p.push((0,E.kv)(t,p.locale));else v(!0)},requiredFormFieldDisplayText:b.requiredFormFieldDisplayText})}},77109:function(e,n,t){t.d(n,{um:function(){return a}});var r=t(71139);const o=["requestQuote","form"],i="session";function a(e){if(!e)return;const n=(0,r.a)({type:i,scope:o});return{getValue:()=>
1n.getItemValue(e),setValue(t){n.setItemValue(e,t)},remove(){n.removeItem(e)}}}},86016:function(e,n,t){t.d(n,{_:function(){return a}});var r=t(45737),o=t(25259),i=t(73582);async function a(e){let{localeInfo:n,email:t,referenceUrl:a,recipeId:u,firstName:l,lastName:s,company:d,businessSector:c,phoneNumber:m,bestTimeToCall:p,eventType:h,eventDate:f,estimatedBudget:v,numberOfAttendees:b,comments:y}=e;return(0,r.W)().mutate({context:{isUserQuery:!0},mutation:o.Ur_,variables:{siteCountry:n.countryCode,siteLanguage:n.languageCode,email:t,referenceUrl:a,recipeId:u,firstName:l,lastName:s,company:d,businessSector:c,phoneNumber:m,bestTimeToCall:p,eventType:h,eventDate:f,estimatedBudget:v,numberOfAttendees:b,comments:y}}).then((e=>{let{data:n}=e;var t;return null!==(t=null===n||void 0===n?void 0:n.requestCustomizedDesignQuote)&&void 0!==t&&t})).catch((e=>(i.k.error(e),!1)))}},53918:function(e,n,t){t.d(n,{G:function(){return _}});var r=t(38839),o=t(65834),i=t(32735),a=t(83564),u=t(1912),l=t(88939),s=t(12889),d=t(78380),c=t(16608),m=t(75246),p=t(33206),h=t(14515),f=t(76220);function v(){const e=(0,c._)(["\n    display: flex;\n    align-items: center;\n\n    svg {\n      border-radius: ",";\n    }\n  "]);return v=function(){return e},e}function b(){const e=(0,c._)(["\n    position: relative;\n    flex-shrink: 0;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    height: 1.875rem;\n    width: 1.875rem;\n    margin-right: ",";\n    border-radius: ",";\n    border: "," solid ",';\n    overflow: hidden;\n\n    &::after {\n      content: "";\n      position: absolute;\n      display: block;\n      width: 100%;\n      height: 100%;\n      background-color: transparent;\n      border-radius: ',";\n      border: "," solid ",";\n    }\n  "]);return b=function(){return e},e}function y(){const e=(0,c._)(["\n    padding: ",";\n    width: 100%;\n  "]);return y=function(){return e},e}function g(){const e=(0,c._)(["\n    position: sticky;\n    top: 0;\n    z-index: 3;\n    background: ",";\n    border-bottom: "," solid ",";\n  "]);return g=function(){return e},e}function C(){const e=(0,c._)(["\n    width: 100%;\n    padding: ",";\n    height: 2.5rem;\n    border: "," solid ",";\n    color: ",";\n    outline: none;\n\n    &:focus {\n      border-color: ",";\n      box-shadow: 0 0 0 0.0625rem ",";\n    }\n  "]);return C=function(){return e},e}const x=(0,p.Z)("span")((e=>{let{theme:n}=e;return(0,m.css)(v(),n.borders.radii.round)})),N=(0,p.Z)("div")((e=>{let{theme:n}=e;return(0,m.css)(b(),n.spacing(.75),n.borders.radii.round,n.borders.widths.sm,n.colors.neutrals.platinum,n.borders.radii.round,n.borders.widths.md,n.colors.neutrals.white)})),q=(0,p.Z)(a.eE)("\n    display: block;\n    width: 2rem;\n    height: 2rem;\n  "),w=(0,p.Z)(h.z)((e=>{let{theme:n}=e;return"\n    margin-top: ".concat(n.spacing(4),";\n  ")})),F=(0,p.Z)("div")('\n    display: flex;\n\n    button {\n      margin: 0;\n    }\n\n    /* Dropdown container */\n    div[role="listbox"] {\n      inset: unset !important;\n      transform: unset !important;\n      > div {\n        top: 0;\n        left: 0;\n\n        /* Added max height for retail market to show all countries list */\n        max-height: 18rem;\n        overflow-y: auto;\n        overscroll-behavior: contain;\n        scrollbar-width: thin;\n\n        &::-webkit-scrollbar {\n          width: 0.375rem;\n        }\n      }\n    }\n  '),j={CountryOption:x,IconWrapper:N,Button:w,Input:(0,p.Z)(f.y)((e=>{let{theme:n}=e;return(0,m.css)(y(),n.spacing(.5,0,.5,1))})),FormPhoneInputWrapper:F,FlagImageStyle:q,CountrySearchWrapper:(0,p.Z)("div")((e=>{let{theme:n}=e;return(0,m.css)(g(),n.colors.neutrals.white,n.borders.widths.sm,n.colors.neutrals.platinum)})),CountrySearchInput:(0,p.Z)("input")((e=>{let{theme:n}=e;return(0,m.css)(C(),n.spacing(.75,1),n.borders.widths.sm,n.colors.neutrals.silver,n.colors.neutrals.black,n.colors.neutrals.silver,n.colors.neutrals.gray)}))},I=(0,i.forwardRef)((function(e,n){var t,o;const c=(0,u.Vx)(),m=null===c||void 0===c||null===(t=c.market)||void 0===t?void 0:t.isFeatureEnabled("showAllCountriesForPhoneNumber"),[p,h]=(0,i.useState)(!1),[f,v]=(0,i.useState)(""),b=(0,i.useRef)(null),y=m?[]:e.isUnitedStates?["us","ca"]:["at","be","dk","fr","de","ie","it","lu","nl","pl","es","ch","gb"],g=e.errorMessage&&"FormError-".concat(e.id),C=e.helpMessage&&"".concat(e.id,"-warning");function x(e){const n=(0,a.ow)(e);return!!m||y.includes(n.iso2)}(0,i.useImperativeHandle)(n,(()=>{var e;return null!==(e=b.current)&&void 0!==e?e:null}),[e]);const{inputValue:N,handlePhoneValueChange:q,country:w,setCountry:F}=(0,a.m5)({defaultCountry:e.isUnitedStates?"us":null===(o=e.countryCode)||void 0===o?void 0:o.toLowerCase(),value:e.value||"",countries:[...a.Z8,["Other","other",""]],forceDialCode:!0,onChange:n=>{!function(n){var t,r,o,i;const a=(null===n||void 0===n||null===(t=n.country)||void 0===t?void 0:t.dialCode)||"";var u;const l=null!==(u=null===n||void 0===n||null===(o=n.phone)||void 0===o||null===(r=o.split("+".concat(a))[1])||void 0===r?void 0:r.trim())&&void 0!==u?u:"",s=a&&l?"+".concat(a," ").concat(l):"";null===e||void 0===e||null===(i=e.onChange)||void 0===i||i.call(e,s)}(n)}}),I=e.value?!!e.value:!!N,_=(0,i.useMemo)((()=>I||p),[I,p]),R=(0,i.useMemo)((()=>{var n;return(null!==(n=null===a.Z8||void 0===a.Z8?void 0:a.Z8.filter(x))&&void 0!==n?n:[]).map((n=>{const t=(0,a.ow)(n);var r;const o=null!==(r=new Intl.DisplayNames((e.locale||"en").toLowerCase(),{type:"region"}).of(t.iso2.toUpperCase()))&&void 0!==r?r:t.name;return{countryCode:t.iso2,label:o,countryCodePrefix:"+".concat(t.dialCode),dialCode:t.dialCode}}))}),[y]),M=(0,i.useMemo)((()=>
1{if(!m||!f)return R.map((e=>({...e,hidden:!1})));const e=f.toLowerCase();return R.map((n=>({...n,hidden:!n.label.toLowerCase().includes(e)&&!n.countryCodePrefix.includes(e)&&!n.countryCode.toLowerCase().includes(e)})))}),[R,f,m]);(0,i.useEffect)((()=>{var n;w.iso2&&"other"!==w.iso2&&(null===(n=e.onCountryChange)||void 0===n||n.call(e,w.iso2))}),[w.iso2]);const S=[...m?[{disabled:!0,value:"__search__",displayContent:(0,r.jsx)(j.CountrySearchWrapper,{children:(0,r.jsx)(j.CountrySearchInput,{onChange:e=>{return n=e.target.value,void v(n);var n},onClick:e=>e.stopPropagation(),placeholder:"Search country",value:f})})}]:[],...M.map((e=>({value:e.countryCode,hidden:e.hidden,displayContent:(0,r.jsxs)(j.CountryOption,{children:[(0,r.jsx)(j.IconWrapper,{children:(0,r.jsx)(j.FlagImageStyle,{iso2:e.countryCode})}),e.label," (",e.countryCodePrefix,")"]},e.countryCode)}))),{value:"other",displayContent:(0,r.jsxs)(j.CountryOption,{children:[(0,r.jsx)(j.IconWrapper,{children:(0,r.jsx)(d.JO,{name:"globe"})}),e.otherCountriesLabel]},"Other")}];var T,P;return(0,r.jsx)(l.X,{errorMessage:e.errorMessage,hasIcon:!1,helpMessage:e.helpMessage,id:e.id,isActive:_,isLabelAriaHidden:!0,isLabelVisuallyHidden:e.isLabelVisuallyHidden,isPhoneInput:!0,label:(null===e||void 0===e?void 0:e.label)||"",required:e.required,children:(0,r.jsxs)(j.FormPhoneInputWrapper,{children:[(0,r.jsx)(s.i,{customPaddingTop:"0",formState:e.errorMessage?"error":void 0,id:"".concat(e.idPrefix||"","FormPhoneInput-Country"),isFormPhoneInputCountrySelect:!0,isLabelVisuallyHidden:!0,label:null!==(T=e.buttonLabel)&&void 0!==T?T:"",onChange:e=>{F(e),v("")},options:null!==S&&void 0!==S?S:[],renderCurrentOption:function(n){const t=null===R||void 0===R?void 0:R.find((e=>e.countryCode===(null===n||void 0===n?void 0:n.value))),o=(null===t||void 0===t?void 0:t.countryCode)||"",i=(null===t||void 0===t?void 0:t.countryCodePrefix)||"",a=(null===t||void 0===t?void 0:t.label)||"",u="".concat(a," (").concat(i,")");return(0,r.jsx)(j.CountryOption,{children:(0,r.jsx)(j.IconWrapper,{children:"other"===w.iso2||!m&&!y.includes(w.iso2)?(0,r.jsx)(d.JO,{name:"globe",title:e.otherCountriesLabel}):(0,r.jsx)(j.FlagImageStyle,{alt:u,iso2:o})})})},value:w.iso2}),(0,r.jsx)(j.Input,{ariaDescribedBy:null!==g&&void 0!==g?g:C,autoComplete:e.autoComplete,customPaddingTop:"0",error:!!e.errorMessage,formState:e.errorMessage?"error":void 0,id:e.id,isFullWidth:!0,isLabelVisuallyHidden:!0,label:null!==(P=null===e||void 0===e?void 0:e.label)&&void 0!==P?P:"",onBlur:()=>{var n;h(!1),null===(n=e.onBlur)||void 0===n||n.call(e)},onChange:(e,n)=>{n&&q(n)},onFocus:n=>{var t;h(!0),null===(t=e.onFocus)||void 0===t||t.call(e,n)},ref:b,type:"tel",value:N})]})})}));function _(e){let{field:n,idPrefix:t,onChange:i,onCountryChange:a,onBlur:u,onFocus:l,options:s,name:d,shouldUnregister:c,defaultValue:m,control:p,required:h,isUnitedStates:f,countryCode:v,otherCountriesLabel:b,locale:y,customValidate:g,countryCodeLabel:C,autoComplete:x,isLabelVisuallyHidden:N}=e;return(0,r.jsx)(o.Qr,{control:p,defaultValue:m,name:d,render:e=>{let{field:{onChange:o,onBlur:d,value:c,name:m,ref:p},fieldState:{error:g}}=e;return(0,r.jsx)(I,{autoComplete:x,buttonLabel:C,countryCode:v,errorMessage:g?g.message:void 0,helpMessage:n.helpMessage,id:"".concat(t).concat(m),isLabelVisuallyHidden:N,isUnitedStates:f,label:n.label,locale:y,onBlur:()=>{setTimeout((()=>{d(),null===u||void 0===u||u()}),100)},onChange:e=>{o(e),null===i||void 0===i||i(e)},onCountryChange:a,onFocus:e=>{null===l||void 0===l||l(e)},options:s,otherCountriesLabel:b,ref:p,required:h,value:null!==c&&void 0!==c?c:""})},rules:"errorMessage"in n?{required:h?{message:n.errorMessage,value:!0}:void 0,validate:g?async e=>{if("string"!==typeof e)throw new Error("customValidate does not support non-string values");return await g(e)||n.errorMessage}:void 0}:void 0,shouldUnregister:c})}},38866:function(e,n,t){t.d(n,{Y:function(){return m}});var r=t(38839),o=t(80192),i=t(44298),a=t(34019),u=t(16608),l=t(33206),s=t(12353);function d(){const e=(0,u._)(["\n  min-height: ",";\n  padding: ",";\n  position: relative;\n\n  "," {\n    margin: auto;\n    max-width: ",";\n  }\n"]);return d=function(){return e},e}const c={Wrapper:l.Z.div(d(),(0,s.convertPxToRem)(320),(e=>{let{theme:n}=e;return n.spacing(4,0)}),(e=>{let{theme:n,withMaxWidth:t}=e;return t&&n.breakpoints.up("lg")}),(0,s.convertPxToRem)(808))};function m(e){let{isLoading:n,innerPadding:t=1.5,withMaxWidth:u=!0,children:l}=e;return(0,r.jsx)(i.E,{theme:"gray-brown",children:(0,r.jsx)(o.O,{children:(0,r.jsxs)(c.Wrapper,{withMaxWidth:u,children:[n&&(0,r.jsx)(a.$,{center:!0}),!n&&(0,r.jsx)(i.E,{borderRadius:"md",padding:t,theme:"white-brown",children:l})]})})})}}}]);
2//# sourceMappingURL=6708.610cad30aee5eec4.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.