(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92022,14995],{314995:function(e,r,t){"use strict";t.r(r),t.d(r,{Check:function(){return a}});var o=t(552322);let a=(0,t(164448).defineIcon)({className:"check",viewBox:"0 0 14 14",svg:(0,o.jsx)("path",{fill:"none",d:"M12 3L5.33333 11L2 8.14286",stroke:"currentColor",strokeWidth:"2"})})},981184:function(e,r,t){"use strict";t.d(r,{Vq:function(){return b},a7:function(){return k},cN:function(){return y},fK:function(){return w},es:function(){return C}});var o=t(552322),a=t(72779),n=t.n(a),s=t(202784),i=t(70123),l=t(334801),c=t(530202),m=t(313829),u=t(97135),d=t(414322);let f=(0,s.forwardRef)(function(e,r){let{open:t,defaultOpen:a=!1,className:i,children:f,onClose:p,preventClose:h,...b}=e,x=(0,s.useRef)(null),g=(0,l.q)(r,x),[_,k]=(0,m.O)(t,a);(0,u.P)(_,x.current),(0,s.useEffect)(()=>{let e=x.current;if(e){if(!_){e.close();return}e.showModal()}},[_]),(0,s.useEffect)(()=>{let e=x.current,r=(0,c.P)(e);if(!r||!e||!_)return;let t=t=>{!h&&t.target.contains(r.documentElement)&&e.close()};return r.addEventListener("click",t),()=>{r.removeEventListener("click",t)}},[_,h]);let y=(0,s.useCallback)(e=>{if(h){e.preventDefault();return}k(!1),null==p||p(e)},[h,k,p]),j=(0,s.useCallback)(e=>{h&&e.preventDefault()},[h]);return(0,o.jsx)("dialog",{...b,className:n()(d.dialog,i),onClose:y,onCancel:j,ref:g,children:f})});var p=t(341135);let h=(0,s.createContext)(void 0);h.displayName="DialogContext";let b=(0,s.forwardRef)(function(e,r){let{classes:t={},className:a,children:c,...m}=e,u=(0,s.useRef)(null),d=(0,l.q)(r,u),b=(0,i.z)(p,t),[x,g]=(0,s.useState)("none");return(0,o.jsx)(f,{...m,className:n()(b.root,a,{[b.scrollPositionTop]:"top"===x,[b.scrollPositionMiddle]:"middle"===x,[b.scrollPositionBottom]:"bottom"===x}),ref:d,children:(0,o.jsx)("div",{className:b.content,children:(0,o.jsx)(h.Provider,{value:{setScrollPosition:g},children:c})})})});var x=t(572811),g=t(197858);let _=[0,1],k=(0,s.forwardRef)(function(e,r){let{className:t,children:a,...i}=e,c=(0,s.useRef)(null),m=(0,l.q)(c,r),[u,d]=(0,s.useState)(null),[f,b]=(0,s.useState)(null),{setScrollPosition:k}=function(){let e=(0,s.useContext)(h);if(!e)throw Error("Dialog compound components cannot be rendered outside the Dialog component");return e}();return!function(e,r,t,o){let a=(0,x.r)({root:e,threshold:_}),n=(0,s.useRef)(!0),i=(0,s.useRef)(!0),l=(0,s.useCallback)(e=>{let a=e.filter(e=>{let{target:t}=e;return t===r}).map(e=>{let{isIntersecting:r}=e;return r}).pop()??n.current,s=e.filter(e=>{let{target:r}=e;return r===t}).map(e=>{let{isIntersecting:r}=e;return r}).pop()??i.current;if(n.current=a,i.current=s,a&&s){o("none");return}if(a){o("top");return}if(s){o("bottom");return}o("middle")},[r,t,o]);(0,g.S)(r,l,a),(0,g.S)(t,l,a)}(c.current,u,f,k),(0,o.jsxs)("div",{...i,className:n()(p.body,t),ref:m,children:[(0,o.jsx)("div",{"aria-hidden":!0,className:p.scrollTopMarker,ref:d}),a,(0,o.jsx)("div",{"aria-hidden":!0,className:p.scrollBottomMarker,ref:b})]})}),y=(0,s.forwardRef)(function(e,r){let{className:t,children:a,...s}=e;return(0,o.jsx)("footer",{...s,className:n()(p.footer,t),ref:r,children:a})});var j=t(183428),N=t(944046),v=t(603131);let w=(0,s.forwardRef)(function(e,r){let{className:t,children:a,preventClose:i,...l}=e,c=(0,j.YB)(),m=(0,s.useCallback)(e=>{var r;null===(r=e.currentTarget.closest("dialog"))||void 0===r||r.close()},[]);return(0,o.jsxs)("header",{...l,className:n()(p.header,{[p.empty]:!a},t),ref:r,children:[(0,o.jsx)("div",{className:p.headerContent,children:a}),i?null:(0,o.jsx)("span",{className:p.closeButton,children:(0,o.jsx)(N.h,{edge:"target background",onClick:m,title:c.formatMessage({id:"dialog.header.closeButton.title",description:"Accessible tooltip for the close button in a dialog",defaultMessage:"Close dialog"}),children:(0,o.jsx)(v.x,{})})})]})}),C=(0,s.forwardRef)(function(e,r){let{className:t,children:a,...s}=e;return(0,o.jsx)("div",{...s,className:n()(p.toolbar,t),ref:r,children:a})})},45475:function(e,r,t){"use strict";t.d(r,{z:function(){return b}});var o=t(552322),a=t(202784),n=t(72779),s=t.n(n),i=t(314995),l=t(70123),c=t(891890);let m=(0,a.forwardRef)(function(e,r){let{type:t="checkbox",className:n,hidden:m,classes:u={},...d}=e,f=(0,l.z)(c,u);return(0,o.jsxs)("div",{hidden:m,className:f.root,children:[(0,a.createElement)("input",{...d,key:"input",type:t,className:s()(f.input,n),hidden:m,ref:r}),(0,o.jsx)("span",{"aria-hidden":!0,className:f.checkbox,children:(0,o.jsx)("span",{className:f.icon,children:(0,o.jsx)(i.Check,{style:{width:10,height:"auto"}})})})]})});var u=t(47656),d=t(880202),f=t(641544),p=t(469301),h=t(993493);let b=(0,a.forwardRef)(function(e,r){let{label:t,required:n,error:i,className:c,classes:b={},hidden:x,...g}=e,_=(0,p.Z)(g.id),k=(0,p.Z)(),y=(0,l.z)(h,b);return(0,o.jsxs)("div",{hidden:x,className:y.root,children:[(0,o.jsxs)("div",{className:h.labelContainer,children:[(0,a.createElement)(m,{...g,key:"input",id:_,required:n,className:s()(c,y.input),classes:{...y,root:y.checkboxRoot},hidden:x,"aria-invalid":!!i||g["aria-invalid"],"aria-describedby":(0,f.r)(g["aria-describedby"],k),ref:r}),(0,o.jsx)(d.K,{htmlFor:_,required:n,className:y.label,classes:{requiredOptionalAddon:y.requiredOptionalAddon,required:y.required},children:t})]}),(0,o.jsx)(u.H,{id:k,className:y.error,children:i})]})})},836962:function(e,r,t){"use strict";t.d(r,{z:function(){return o.z}});var o=t(45475)},246651:function(e,r,t){"use strict";t.d(r,{y:function(){return f}});var o=t(552322),a=t(202784),n=t(72779),s=t.n(n),i=t(47656),l=t(880202),c=t(246569),m=t(641544),u=t(469301),d=t(610565);let f=(0,a.forwardRef)(function(e,r){let{label:t,required:n,error:f,className:p,classes:h={},...b}=e,x=(0,u.Z)(b.id),g=(0,u.Z)(),_=(0,a.useMemo)(()=>({requiredOptionalAddon:h.requiredOptionalAddon}),[h.requiredOptionalAddon]);return(0,o.jsxs)("div",{className:h.root,children:[(0,o.jsx)(l.K,{htmlFor:x,required:n,className:h.label,classes:_,children:t}),(0,a.createElement)(c.I,{...b,key:"input",id:x,required:n,className:s()(p,h.input,d.formInput),"aria-invalid":!!f||b["aria-invalid"],"aria-describedby":(0,m.r)(g,b["aria-describedby"]),ref:r}),(0,o.jsx)(i.H,{id:g,className:h.error,children:f})]})})},47656:function(e,r,t){"use strict";t.d(r,{H:function(){return l}});var o=t(552322),a=t(72779),n=t.n(a),s=t(202784),i=t(758060);let l=(0,s.forwardRef)(function(e,r){let{role:t="alert",className:a,children:s,...l}=e;return(0,o.jsx)("div",{...l,role:t,className:n()(i.error,a),ref:r,children:s})})},880202:function(e,r,t){"use strict";t.d(r,{K:function(){return m}});var o=t(552322),a=t(72779),n=t.n(a),s=t(202784),i=t(183428),l=t(70123),c=t(636697);let m=(0,s.forwardRef)(function(e,r){let{required:t,children:a,className:s,classes:m={},...u}=e,d=(0,l.z)(c,m);return(0,o.jsxs)("label",{...u,className:n()(d.label,{[d.required]:t},s),ref:r,children:[a,(0,o.jsx)("span",{"aria-hidden":t,className:d.requiredOptionalAddon,children:(0,o.jsx)(i._H,{id:"formItemLabel.optionalOrRequired",description:"Text that accompanies all form fields which tells users whether the field is required or optional",values:{required:t?"required":"optional"},defaultMessage:(0,i.Ys)("required",{optional:"(optional)",other:"*"})})})]})})},650650:function(e,r,t){"use strict";t.d(r,{p:function(){return c}});var o=t(552322),a=t(72779),n=t.n(a),s=t(202784),i=t(240926),l=t(929649);function c(e){let{children:r,className:t}=e,a=s.Children.toArray(r).length;return(0,o.jsx)("div",{className:n()(l.formRow,t),style:{[(0,i.Ay)("--form-row-columns")]:a},children:r})}},640067:function(e,r,t){"use strict";t.d(r,{i:function(){return d}});var o=t(552322),a=t(72779),n=t.n(a),s=t(202784),i=t(47656),l=t(880202),c=t(105930),m=t(641544),u=t(469301);let d=(0,s.forwardRef)(function(e,r){let{label:t,required:a,error:s,className:d,classes:f={},...p}=e,h=(0,u.Z)(p.id),b=(0,u.Z)();return(0,o.jsxs)("div",{className:f.root,children:[(0,o.jsx)(l.K,{htmlFor:h,required:a,className:f.label,children:t}),(0,o.jsx)(c.P,{...p,id:h,required:a,className:n()(d,f.select),"aria-invalid":!!s,"aria-describedby":(0,m.r)(p["aria-describedby"],b),ref:r}),(0,o.jsx)(i.H,{id:b,className:f.error,children:s})]})})},608624:function(e,r,t){"use strict";t.d(r,{B:function(){return u}});var o=t(552322),a=t(202784),n=t(47656),s=t(880202),i=t(692981);let l=(0,a.forwardRef)(function(e,r){let{id:t,name:a,value:n,defaultValue:s,placeholder:l,onChange:c,onBlur:m,required:u,maxlength:d,rows:f=3,"aria-invalid":p,"aria-describedby":h}=e;return(0,o.jsx)("textarea",{id:t,name:a,className:i.textarea,placeholder:l,onChange:c,required:u,rows:f,value:n,defaultValue:s,onBlur:m,maxLength:d,"aria-invalid":p,"aria-describedby":h,ref:r})});var c=t(641544),m=t(469301);let u=(0,a.forwardRef)(function(e,r){let{label:t,required:a,error:i,...u}=e,d=(0,m.Z)(u.id),f=(0,m.Z)();return(0,o.jsxs)("div",{children:[(0,o.jsx)(s.K,{htmlFor:d,required:a,children:t}),(0,o.jsx)(l,{...u,id:d,required:a,"aria-invalid":!!i,"aria-describedby":(0,c.r)(u["aria-describedby"],f),ref:r}),(0,o.jsx)(n.H,{id:f,children:i})]})})},437666:function(e,r,t){"use strict";t.d(r,{r:function(){return s}});var o=t(552322),a=t(202784),n=t(595609);function s(e){let{children:r}=e,[t,s]=(0,a.useState)(!0);return(0,n.L)(()=>{s(!1)},[]),t?null:(0,o.jsx)(o.Fragment,{children:r})}},105930:function(e,r,t){"use strict";t.d(r,{P:function(){return c}});var o=t(552322),a=t(72779),n=t.n(a),s=t(202784),i=t(463061),l=t(142671);let c=(0,s.forwardRef)(function(e,r){let{options:t,width:a,isTransparent:s,className:c,style:m={},children:u,...d}=e;return(0,o.jsxs)("div",{className:l.selectWrap,children:[(0,o.jsxs)("select",{...d,className:n()(l.select,{[l.selectTransparent]:s},c),style:{...m,width:a?`${a}px`:"100%",maxWidth:"100%"},ref:r,children:[(null==t?void 0:t.map((e,r)=>(0,o.jsx)("option",{value:e.value,"data-slug":e.slug,children:e.label},`option-${r}`)))??null,u]}),(0,o.jsx)("div",{className:l.icon,children:(0,o.jsx)(i._,{style:{width:10,marginLeft:5,marginTop:1,fill:"var(color-text-medium)"}})})]})})},192022:function(e,r,t){"use strict";t.d(r,{T:function(){return W}});var o=t(552322),a=t(202784),n=t(941517),s=t(180794),i=t(30297),l=t(336589),c=t(5734),m=t(772769),u=t(183428),d=t(469355),f=t(450982),p=t(152706),h=t(746886),b=t(836962),x=t(246651),g=t(650650),_=t(640067),k=t(608624),y=t(787923),j=t(437666),N=t(875362),v=t(871725),w=t(966573),C=t(762375),M=t(647615),F=t(23207),q=t(267523),E=t(83860),S=t(983764),R=t(961268),L=t(37875),T=t(72779),z=t.n(T),P=t(981184),H=t(440150),I=t(908853),A=t(136113),B=t(334801);let O={success:A.EmojiSmilingEyesIcon,error:I.EmojiSadIcon,form:e=>null},D=(0,a.forwardRef)(function(e,r){let{role:t="alertdialog",className:n,step:s,supportEmailHref:i,...l}=e,c=(0,u.YB)(),m=(0,a.useRef)(null),d=(0,B.q)(r,m),{to:f,body:h}=(0,a.useMemo)(()=>(0,F.RG)(i),[i]),b=(0,a.useCallback)(()=>{h&&navigator.clipboard.writeText(h)},[h]),x=O[s];return(0,o.jsxs)(P.Vq,{...l,open:l.open||"form"!==s,role:t,className:z()(L.stateDialog,{[L.success]:"success"===s,[L.error]:"error"===s},n),"aria-label":c.formatMessage({id:"marketoForm.serverError.label",defaultMessage:"We weren’t able to submit your information",description:"Label for an error alert on the contact sales form"}),ref:d,children:[(0,o.jsx)(P.fK,{children:(0,o.jsx)(x,{width:28,className:L.stateIcon})}),(0,o.jsxs)(P.a7,{children:[(0,o.jsx)(H.X,{level:2,variant:"sans-400-bold",children:(0,o.jsx)(u._H,{id:"marketoForm.step.title",description:"Title for a status message on the contact sales form",values:{step:s},defaultMessage:(0,u.Ys)("step",{error:"Submission failed",other:"Successfully submitted"})})}),"error"===s?(0,o.jsx)(N.Z,{as:"p",children:(0,o.jsx)(u._H,{id:"marketoForm.serverError.resolution",description:"Description for an error alert on the contact sales form",defaultMessage:"We weren’t able to submit your information. You can send an email with pre-populated information to {supportEmail} instead.",values:{supportEmail:f,supportEmailLink:e=>(0,o.jsx)(y.u,{href:i,className:L.stateDialogErrorLink,eventData:{name:"marketo_form_error_email"},children:e})}})}):null]}),"error"===s?(0,o.jsxs)(P.cN,{className:L.stateDialogFooter,children:[(0,o.jsx)(p.z,{href:i,variant:"tertiary",isFullWidth:!0,children:(0,o.jsx)(u._H,{id:"marketoForm.serverError.sendEmail",description:"Button to send an email to sales with pre-populated customer information in the event that an unknown error occurs on the backend",defaultMessage:"Send email"})}),(0,o.jsx)(p.z,{hidden:!h,onClick:b,variant:"simple",children:(0,o.jsx)(u._H,{id:"marketoForm.serverError.copyPrepopulatedInfo",description:"Button to copy a template body of an email to sales with info pre-populated from their form submission which failed",defaultMessage:"Copy pre-populated information"})})]}):null]})}),Y=["firstName","lastName","email","phoneNumber","companyName","companySize","jobTitle","country","message","marketingCommsConsent"],Z=Object.fromEntries(Y.map(e=>[e,e]));function W(e){let{formType:r,className:t,countryCodeFromIp:T,header:z,onSuccess:P}=e,H=(0,u.YB)(),I=(0,R.b)(),{urlAnalytics:A}=(0,q.O)(),B=(0,E.F)(),[O,W]=(0,a.useState)(null),[G,K]=(0,a.useState)("form"),[$,U]=(0,a.useState)(T),V=T??$,J=(0,a.useMemo)(()=>(0,s.$i)(H,{locale:I}).filter(e=>{let{countryCode:r}=e;return!(0,c.MP)(r)}),[H,I]),Q=(0,a.useMemo)(()=>(0,M.qw)(V),[V]),X=(0,a.useMemo)(()=>V?(0,s.Aw)(V):null,[V]),ee={firstName:(0,S.R)(O,Z.firstName),lastName:(0,S.R)(O,Z.lastName),email:(0,S.R)(O,Z.email),phoneNumber:(0,S.R)(O,Z.phoneNumber),companyName:(0,S.R)(O,Z.companyName),companySize:(0,S.R)(O,Z.companySize),jobTitle:(0,S.R)(O,Z.jobTitle),country:(0,S.R)(O,Z.country),message:(0,S.R)(O,Z.message),marketingCommsConsent:(0,S.R)(O,Z.marketingCommsConsent)},{opt:er}=X??{},et=(0,a.useMemo)(()=>Object.fromEntries(Y.map(e=>{let r=H.formatMessage({id:"marketoForm.fieldLabel",description:"Label for a field in the marketo form",defaultMessage:(0,u.Ys)("fieldName",{firstName:"First name",lastName:"Last name",email:"Work email",phoneNumber:"Phone number",companyName:"Company name",companySize:"Company size",country:"Country or region",jobTitle:"Job title",message:"Provide more details",marketingCommsConsent:(0,u.Ys)("opt",{out:"No, I do not want to receive marketing communications from Notion.",other:"I agree to Notion sending marketing communications about Notion to me"}),other:"Other"})},{fieldName:e,opt:er??"in"});return[e,r]})),[H,er]),[eo,ea]=(0,a.useState)((0,F.B$)(l.sJ)),en=(0,o.jsx)("option",{value:"",children:(0,o.jsx)(u._H,{id:"marketoForm.dropdownEmptyState",defaultMessage:"Please select…",description:"Empty state for dropdowns in the marketo form"})}),es=a.useCallback(e=>{if(!X)throw Error("Could not resolve marketing comms consent rules");let t=(0,M.US)(e.marketingCommsConsent,X.opt),{utm_source:o,utm_medium:a,utm_content:n,utm_campaign:s,utm_term:i,gclid:l}=A??{},c=parseInt(e.companySize,10),m={firstName:e.firstName,lastName:e.lastName,email:e.email,companyName:e.companyName,country:e.country,jobTitle:e.jobTitle,ipCountry:T,marketingCommsConsent:t,companySize:c,gclid:l,utm_source:(0,M.sG)(o),utm_medium:(0,M.sG)(a),utm_content:(0,M.sG)(n),utm_campaign:(0,M.sG)(s),utm_term:(0,M.sG)(i)};switch(r){case"aiConnectors":return{...m,type:r,message:e.message||"",phoneNumber:e.phoneNumber||""};case"webinars":return{...m,type:r,pageURL:`${window.location.origin}${window.location.pathname}`}}},[T,r,X,A]),[ei,el]=(0,i.UK)(async e=>{let r=es(e),t=function(e,r,t){let o={...r,companySize:(0,M.pH)(parseInt(r.companySize,10)),country:(0,s.pD)(r.country),marketingCommsConsent:e.formatMessage({id:"marketoForm.serverError.supportEmail.marketingCommsConsent",description:"Label for marketing comms consent value in the support email body for a Marketo form in the event of a server error",defaultMessage:(0,u.Ys)("consent",{on:"Yes",other:"No"})},{consent:r.marketingCommsConsent??"off"})};return{subject:e.formatMessage({id:"marketoForm.serverError.supportEmail.subject",description:"Subject line for an email to Notion's sales team from the contact sales form in the event of a server error",defaultMessage:"Request for {firstName} {lastName} at {companyName}"},{firstName:o.firstName,lastName:o.lastName,companyName:o.companyName}),body:e.formatMessage({id:"marketoForm.serverError.supportEmail.body",description:"Body text for an email to Notion's sales team from the contact sales form in the event of a server error",defaultMessage:["firstName","lastName","email","phoneNumber","companyName","companySize","jobTitle","country","message","marketingCommsConsent"].map(e=>`{${e}Label}: {${e}}`).join("{newline}")},{newline:"\n",firstName:o.firstName,lastName:o.lastName,email:o.email,phoneNumber:o.phoneNumber,companyName:o.companyName,companySize:o.companySize,jobTitle:o.jobTitle,country:o.country,message:o.message,marketingCommsConsent:o.marketingCommsConsent,firstNameLabel:t.firstName,lastNameLabel:t.lastName,emailLabel:t.email,phoneNumberLabel:t.phoneNumber,companyNameLabel:t.companyName,companySizeLabel:t.companySize,countryLabel:t.country,jobTitleLabel:t.jobTitle,messageLabel:t.message,marketingCommsConsentLabel:t.marketingCommsConsent})}}(H,e,et);ea((0,F.B$)(l.sJ,t));let o=parseInt(e.companySize,10),a=(0,M.pH)(o);await (0,v.pt)("submitMarketoForm",{...r}).then(e=>d.x.unwrap(e)).then(e=>{!0===e.success?(K("success"),null==P||P()):K("error")}).catch(()=>K("error")).finally(()=>{f.vA(B,{country:e.country,companyName:e.companyName,companySize:a||""})})},[es,H,et,P,B]),ec="pending"===ei.status,em=(0,a.useCallback)(e=>{if(e.preventDefault(),!e.currentTarget.checkValidity()){(0,w.hB)(e.currentTarget);return}el((0,M.zi)(e.currentTarget))},[el]),eu=Object.fromEntries(Object.entries(ee).map(e=>{let[r,t]=e;return[r,(0,M.t2)(t)]})),ed=(0,o.jsx)(x.y,{required:!0,name:Z.firstName,error:eu.firstName,label:et.firstName,placeholder:H.formatMessage({id:"marketoForm.firstName.placeholder",defaultMessage:"Ada",description:"This is a fake first name used as placeholder text in a form."})}),ef=(0,o.jsx)(x.y,{required:!0,name:Z.lastName,error:eu.lastName,label:et.lastName,placeholder:H.formatMessage({id:"marketoForm.lastName.placeholder",defaultMessage:"Lovelace",description:"This is a fake surname used as placeholder text in a form."})});return(0,o.jsxs)(h.l,{className:t,onSubmit:em,ref:W,children:[(0,o.jsx)(D,{step:G,supportEmailHref:eo,onClose:()=>K("form")}),z?(0,o.jsx)("header",{children:(0,o.jsx)(N.Z,{as:"h2",variant:"sans-400-semibold",children:(0,o.jsx)(n.SA,{children:z})})}):null,(0,o.jsx)(g.p,{children:(0,C.EK)(I)?[ef,ed]:[ed,ef]}),(0,o.jsx)(g.p,{children:(0,o.jsx)(x.y,{type:"email",required:!0,name:Z.email,error:eu.email,label:et.email,placeholder:H.formatMessage({id:"marketoForm.email.placeholder",defaultMessage:"ada@lovelace.app",description:"Placeholder text for work email address input in the marketo form"})})}),"aiConnectors"===r?(0,o.jsx)(g.p,{children:(0,o.jsx)(x.y,{type:"tel",required:Q,name:Z.phoneNumber,error:eu.phoneNumber,label:et.phoneNumber,placeholder:H.formatMessage({id:"marketoForm.phone.placeholder",description:"This is placeholder text for a phone number field in the marketo form. Please format to match the standard format of phone numbers in each locale, with the country code included for users not in en-US (e.g. +33 for French users). The form validation is quite permissive so any format should pass validation.",defaultMessage:"(123) 456-7891"})})}):null,(0,o.jsx)(g.p,{children:(0,o.jsx)(x.y,{required:!0,name:Z.companyName,error:eu.companyName,label:et.companyName,placeholder:H.formatMessage({id:"marketoForm.companyName.placeholder",defaultMessage:"Lovelace Inc.",description:"This is a fake company name used as placeholder text in a form field. Any company name relevant to locale will work."})})}),(0,o.jsx)(g.p,{children:(0,o.jsx)(x.y,{name:Z.jobTitle,error:eu.jobTitle,label:et.jobTitle,placeholder:H.formatMessage({id:"marketoForm.jobTitle.placeholder",defaultMessage:"Job title",description:"Placeholder text for job title input in the marketo form"})})}),(0,o.jsx)(g.p,{children:(0,o.jsxs)(_.i,{required:!0,name:Z.companySize,error:eu.companySize,label:et.companySize,children:[en,l.TM.map((e,r)=>{let t=l.TM[r+1]??e;return(0,o.jsx)("option",{value:e,children:(0,o.jsx)(u._H,{id:"marketoForm.companySize",description:"Label for company size option in the marketo form",values:{min:e,max:t-1},defaultMessage:(0,u.Ys)("min",{2e3:"{min}+ employees",other:"{min}-{max} employees"})})},e)})]})}),(0,o.jsx)(g.p,{children:(0,o.jsxs)(_.i,{required:!0,defaultValue:T,name:Z.country,error:eu.country,label:et.country,onChange:e=>U(e.currentTarget.value||void 0),children:[en,J.map(e=>{let{countryCode:r}=e;return(0,o.jsx)("option",{value:r,children:(0,o.jsx)(j.r,{children:(0,s.qA)(H,r)})},r)})]})}),"aiConnectors"===r?(0,o.jsx)(g.p,{children:(0,o.jsx)(k.B,{defaultValue:void 0,maxlength:1e3,name:Z.message,error:eu.message,label:et.message,placeholder:H.formatMessage({id:"marketoForm.message.placeholder",defaultMessage:"How are you looking to use Notion?",description:"Placeholder for message multi-line text box in the marketo form"})})}):null,X?(0,o.jsxs)(a.Fragment,{children:[(0,o.jsx)(g.p,{children:(0,o.jsx)(b.z,{defaultChecked:(0,M.lG)(X),name:Z.marketingCommsConsent,error:eu.marketingCommsConsent,label:et.marketingCommsConsent})}),(0,o.jsx)(g.p,{children:(0,o.jsx)(N.Z,{as:"p",variant:"sans-100-regular",children:(0,o.jsx)(u._H,{defaultMessage:"You may unsubscribe from receiving marketing communications at any time. Notion’s websites and communications are subject to our Privacy Policy.",id:"marketoForm.terms",description:"Privacy policy agreement acknowledgement on the marketo form",values:{privacyLink:e=>(0,o.jsx)(y.u,{href:m.$e.privacyPolicy,eventData:{name:"marketo_form_privacy_policy"},children:e})}})})})]}):null,(0,o.jsx)(N.Z,{as:"p",variant:"sans-100-regular",children:(0,o.jsx)(u._H,{defaultMessage:"Fields marked with an asterisk (*) are required.",id:"marketoForm.requiredAsteriskExpanation",description:"Explainer for the use of asterisks on form input labels which indicate that the input is required"})}),(0,o.jsxs)("label",{"aria-hidden":!0,className:L.passwordField,children:[(0,o.jsx)("input",{type:"password","aria-autocomplete":"both",tabIndex:-1,name:"password",placeholder:H.formatMessage({id:"marketoForm.password.placeholder",defaultMessage:"Enter a password here",description:"This is a fake field used as placeholder text in a form."})}),(0,o.jsx)(u._H,{id:"marketoForm.password.label",description:"Label for a fake field which is intended to catch traffic and submissions to the Contact Sales page by bots",defaultMessage:"Password"})]}),(0,o.jsx)(g.p,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{role:"status",className:L.visuallyHidden,children:ec?(0,o.jsx)(u._H,{id:"marketoForm.submitButton.status",defaultMessage:"Submitting",description:"Accessible message for assistive devices used to indicate that processing is ongoing for the user's submission"}):null}),(0,o.jsx)(p.z,{type:"submit",variant:"primary",loading:ec,children:(0,o.jsx)(u._H,{id:"marketoForm.submitButton.label",defaultMessage:"Submit form",description:"Submit button text on the marketo form"})})]})})]})}},647615:function(e,r,t){"use strict";t.d(r,{US:function(){return m},lG:function(){return c},on:function(){return d},pH:function(){return n},qw:function(){return s},sG:function(){return u},t2:function(){return i},zi:function(){return l}});var o=t(180794),a=t(240926);function n(e){switch(e){case 1:return"1-99";case 100:return"100-299";case 300:return"300-1999";case 2e3:return"2000+"}}function s(e){if(!e)return!1;if(e===o.nR.Japan||e===o.nR.SouthKorea)return!0;let r=(0,o.X2)(e);return"EMEA"===r||"APAC"===r}function i(e){let{touched:r,validity:t,validationMessage:o}=e;return r&&!t.valid?o:void 0}function l(e){let r=(0,a.Ay)({});for(let[t,o]of new FormData(e))r[t]=o.valueOf();return r}function c(e){let{opt:r,defaultOptIn:t}=e;switch(r){case"in":case"doubleIn":return t;case"out":return!t;default:throw Error(`Unexpected opt value "${r}"`)}}function m(e,r){return!!e==("out"!==r)}function u(e){return"none"!==e?e:void 0}function d(e){switch(e){case"enterprise":return"I’d like to discuss an enterprise use case";case"pricing":return"I’d like to explore pricing options";case"demo":return"I’d like to see a demo of the product";case"studentOrNonProfitPricing":return"I am looking for student/non-profit pricing";case"support":return"I am looking for product or billing support";case"other":return"Other"}}},336589:function(e,r,t){"use strict";t.d(r,{BT:function(){return a},TM:function(){return o},sJ:function(){return n}});let o=[1,100,300,2e3],a=["enterprise","pricing","demo","studentOrNonProfitPricing","support","other"],n="sales@makenotion.com"},891890:function(e){e.exports={root:"checkbox_root__1xuyd",input:"checkbox_input__P6u0V",checkbox:"checkbox_checkbox__k9vCf",icon:"checkbox_icon__Bt5sB"}},341135:function(e){e.exports={root:"dialog_root__KlMm2",content:"dialog_content__vbHod",header:"dialog_header__CA_5o",headerContent:"dialog_headerContent__YzwnF",closeButton:"dialog_closeButton__nMSev",toolbar:"dialog_toolbar__pjqli",body:"dialog_body__wkRPq",empty:"dialog_empty__DgpVz",footer:"dialog_footer__guNH5",scrollPositionMiddle:"dialog_scrollPositionMiddle__oOsWq",scrollPositionBottom:"dialog_scrollPositionBottom__AdS0Q",scrollPositionTop:"dialog_scrollPositionTop__HeAGY"}},993493:function(e){e.exports={root:"formCheckbox_root__zez60",labelContainer:"formCheckbox_labelContainer__d1Fh8",checkboxRoot:"formCheckbox_checkboxRoot__VeHH4",label:"formCheckbox_label__oYNae",requiredOptionalAddon:"formCheckbox_requiredOptionalAddon__JwuOL",required:"formCheckbox_required__hW_MI"}},610565:function(e){e.exports={formInput:"formInput_formInput__jUstH"}},758060:function(e){e.exports={error:"formItemError_error__nQzrg"}},636697:function(e){e.exports={label:"formItemLabel_label__QfEmQ",requiredOptionalAddon:"formItemLabel_requiredOptionalAddon__Ab_ch",required:"formItemLabel_required__BLLcS"}},929649:function(e){e.exports={formRow:"formRow_formRow__ZBYlX"}},142671:function(e){e.exports={selectWrap:"select_selectWrap__Mpaja",select:"select_select__F6Ysx",selectTransparent:"select_selectTransparent__n9MvB",icon:"select_icon__xS6R3"}},37875:function(e){e.exports={visuallyHidden:"marketoForm_visuallyHidden__kBfFH",stateDialog:"marketoForm_stateDialog__WG_pg",success:"marketoForm_success__AjjFZ",stateIcon:"marketoForm_stateIcon__lrk4z",error:"marketoForm_error__FUku1",stateDialogErrorLink:"marketoForm_stateDialogErrorLink__mdh2i",bookingFrame:"marketoForm_bookingFrame__3DSpZ",stateDialogFooter:"marketoForm_stateDialogFooter__M1kUE",passwordField:"marketoForm_passwordField__8DMtT"}},692981:function(e){e.exports={textarea:"textarea_textarea__ctH5E"}},414322:function(e){e.exports={dialog:"dialog_dialog__RX4pP"}}}]);