PageSourceSearch

https://www.eatwith.com/_next/static/chunks/pages/landings/travel-agents-1432db1e33ce1fc1.js

js eatwith.com collected 2026-10-02 02:32:21 UTC 12,632 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{52287:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return V},default:function(){return Q}});var n=r(67294),i=(r(55287),r(32591)),a=r(87013),o=r(76791),s=r(74382),l=r(15645),c=r(52421),u=r(4730),d=r(24735),p=r(66106),m=r(48522),g=r(56781),_=r(49271),h=r(85106),f=r(21440),y=r(85893),b=d.BL.default,x=(0,u.Z)(d.BL,["default"]);function v(e){var t=e.staticFields,r=e.benefits,i=(0,n.useMemo)((function(){return r.map((function(e){return{title:e.title,items:e.list.map((function(e){return{text:e,icon:(0,y.jsx)(f.default,{color:"turquoise",mr:"12px"})}}))}}))}),[r]);return 0===i.length?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(p.g,{staticFields:t}),(0,y.jsx)(l.$,{bg:x[t.background_color]||b,innerContainerStyles:"padding-top: 0; padding-bottom: 0;",children:(0,y.jsx)(m.Flex,{width:"100%",flexDirection:{default:"column",tablet:"row"},justifyContent:{default:"center",desktop:"space-around"},gap:"32px",children:i.map((function(e){var t=e.title,r=e.items;return(0,y.jsxs)(g.Box,{bg:"white",width:{default:"100%",desktop:"250px"},borderRadius:"lg",boxShadow:"md",p:"16px",children:[(0,y.jsx)(_.Heading,{as:"h5",type:"small",mb:"16px",children:t}),(0,y.jsx)(h.o,{items:r})]},t)}))})})]})}var j=r(59499),R=r(68651),F=r(83126),w=r(48228),C=r(50029),S=r(87794),A=r.n(S),P=r(38729);function M(){return(M=(0,C.Z)(A().mark((function e(t){var r,n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P.Al.post("/partners",t);case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){return(0,w.D)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){(0,j.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({mutationFn:function(e){return function(e){return M.apply(this,arguments)}(e.payload)}},e))}var E=r(4626),N=r(82580),I=r(73875),L=r(58078),k=r(51815),q=r(90072),B=r(68853),Z=r(38945),H=r(26933),U=r(22934),D=r(7258),W=D.Ry().shape({civility:D.nK().oneOf(["MR","MRS","OTHER"],"FormField::You must select a value in the list").required("FormField::Required field"),firstname:D.Z_().max(250,"FormField::Too long value").required("FormField::Required field"),lastname:D.Z_().max(250,"FormField::Too long value").required("FormField::Required field"),email:D.Z_().email("FormField::Wrong format").required("FormField::Required field"),password:D.Z_().max(250,"FormField::Too long value").required("FormField::Required field"),agencyName:D.Z_().max(250,"FormField::Too long value").required("FormField::Required field"),isContractApproved:D.Xg().oneOf([!0],"FormField::You must approve the contract")});var G=(0,i.Zh)()((function(e){var t=e.handleSubmit,r=e.handleChange,n=e.handleBlur,a=e.values,o=e.touched,s=e.errors,l=e.t,c=e.setFieldError,u=e.setFieldValue,d=e.setFieldTouched;return(0,y.jsxs)("form",{onSubmit:t,children:[(0,y.jsx)(Z.Select,{error:s.civility&&o.civility&&l(s.civility),isRequired:!0,label:l("PartnerApplicants::RegisterModal::Civility"),name:"civility",onBlur:function(){return d("civility",!0,!1)},onChange:function(e){var t=e.value;return u("civility",t,!0)},options:[{value:"MR",label:l("PartnerApplicants::RegisterModal::Mr")},{value:"MRS",label:l("PartnerApplicants::RegisterModal::Mrs")},{value:"OTHER",label:l("PartnerApplicants::RegisterModal::Other")}],value:a.civility}),(0,y.jsx)(B.Input,{error:s.firstname&&o.firstname&&l(s.firstname),isRequired:!0,label:l("PartnerApplicants::RegisterModal::First name"),name:"firstname",onBlur:n,onChange:r,placeholder:l("PartnerApplicants::RegisterModal::First name"),value:a.firstname}),(0,y.jsx)(B.Input,{error:s.lastname&&o.lastname&&l(s.lastname),isRequired:!0,label:l("PartnerApplicants::RegisterModal::Last name"),name:"lastname",onBlur:n,onChange:r,placeholder:l("PartnerApplicants::RegisterModal::Last name"),value:a.lastname}),(0,y.jsx)(B.Input,{autoComplete:"nope",error:s.email&&o.email&&l(s.email),isRequired:!0,label:l("PartnerApplicants::RegisterModal::Email address"),name:"email",onBlur:n,onChange:r,placeholder:l("PartnerApplicants::RegisterModal::Email address"),value:a.email}),(0,y.jsx)(B.Input,{autoComplete:"password",error:s.password&&o.password&&l(s.password),isRequired:!0,label:l("PartnerApplicants::RegisterModal::Password"),name:"password",onBlur:n,onChange:r,placeholder:l("PartnerApplicants::RegisterModal::Password"),type:"password",value:a.password}),(0,y.jsx)(H.PhoneInput,{error:!!s.phone&&o.phone&&l(s.phone),isRequired:!0,label:l("PartnerApplicants::RegisterModal::Phone number"),name:"phone",onBlur:function(){return d("phone",!0,!1)},onChange:function(e,t){c("phone",!t&&l("FormField::Please enter a valid phone number")),u("phone",e,t)}
1,value:a.phone}),(0,y.jsx)(B.Input,{error:s.agencyName&&o.agencyName&&l(s.agencyName),isRequired:!0,label:l("PartnerApplicants::RegisterModal::Agency name"),name:"agencyName",onBlur:n,onChange:r,placeholder:l("PartnerApplicants::RegisterModal::Agency name"),values:a.agencyName}),(0,y.jsx)(B.Input,{error:s.idNumber&&o.idNumber&&l(s.idNumber),label:l("PartnerApplicants::RegisterModal::ID number"),name:"idNumber",onBlur:n,onChange:r,placeholder:l("PartnerApplicants::RegisterModal::ID Number (IATA / CLIA / ARC)"),value:a.idNumber}),(0,y.jsx)(q.Checkbox,{name:"isContractApproved",value:a.isContractApproved,onChange:r,onBlur:n,error:s.isContractApproved&&o.isContractApproved&&l(s.isContractApproved),label:(0,y.jsx)(U.Text,{as:"span",children:(0,y.jsx)(i.cC,{i18nKey:"PartnerApplicants::RegisterModal::I agree to the <termsAndConditionsURL>terms & conditions</termsAndConditionsURL> for Eatwith travel agent",components:{termsAndConditionsURL:(0,y.jsx)("a",{href:"https://frozen.eatwith.com/Contract%20Travel%20Agent%20LP%20with%20self%20billing.pdf",target:"_blank",rel:"noopener noreferrer"})}})})}),(0,y.jsx)(g.Box,{my:"16px",children:(0,y.jsx)(k.O,{green:!0,type:"submit",fullWidth:!0,children:l("PartnerApplicants::RegisterModal::Continue")})})]})})),Y=r(4727),$={civility:"MR",firstname:"",lastname:"",email:"",password:"",phone:"",agencyName:"",idNumber:"",isContractApproved:!1};function z(e){var t=e.onHide,r=e.show,n=e.afterSubmit,a=(0,i.$G)().t,o=(0,R.U)().appCurrency,s=(0,F.Z)().appLanguage,l=(0,E.f)(Y.Z.mailchimpAudienceId),c=l.subscribeMember,u=l.INTERESTS,d=O({onSuccess:function(e,t){var r,i=t.payload;n(),c(i.email,{merge_fields:{USER_TYPE:"partner",USER_LANG:s.locale.toLowerCase(),C_SOURCE:"partner_signup",U_COUNTRY:void 0,EMAIL:i.email},interests:(r={},(0,j.Z)(r,u.PLATFORM_SOURCE_EATWITH,!0),(0,j.Z)(r,u.NOTIFICATION_PREFERENCES_GLOBAL_NEWSLETTER,!0),(0,j.Z)(r,u.NOTIFICATION_PREFERENCES_MONTHLY_HOST_NEWSLETTER,!0),r)})}}),p=d.mutate,m=d.error;return(0,y.jsxs)(I.u_,{title:a("Partner::RegisterModal::Get started"),onCancel:t,onHide:t,show:r,mobileFullScreen:!0,children:[(0,y.jsx)(N.J9,{initialValues:$,onSubmit:function(e){var t={civility:e.civility,firstname:e.firstname,lastname:e.lastname,password:e.password,email:e.email,phone:e.phone,desired_organization:e.agencyName,id_number:e.idNumber,currency_id:o.id,language_id:s.id};p({payload:t})},validateOnChange:!1,validateOnBlur:!0,validationSchema:W,component:G}),(0,y.jsx)(L.A,{error:m})]})}var X=r(43570);var J=(0,i.Zh)()((function(e){var t=e.t,r=e.onHide,n=e.show;return(0,y.jsxs)(I.u_,{show:n,onCancel:r,onHide:r,confirmLabel:t("Modal::RegisterPartner::Close"),title:t("Welcome to the Eatwith Travel Agent community!"),mobileFullScreen:!0,children:[(0,y.jsxs)(m.Flex,{flexDirection:"column",justifyContent:"flex-start",my:"16px",children:[(0,y.jsx)(U.Text,{children:t("Partners::SuccessModal::Log in to your account now to access the world's largest marketplace for culinary experiences with locals.")}),(0,y.jsxs)(U.Text,{children:[(0,y.jsx)("b",{children:t("Partners::SuccessModal::How does it work?")})," ",t("Partners::SuccessModal::It\u2019s as easy as pie: Search for your client\u2019s destination, travel dates and number of guests, select your experience and finalize your booking. It\u2019s really that simple!")]})]}),(0,y.jsx)(m.Flex,{justifyContent:"center",mb:"24px",children:(0,y.jsx)(X.Z,{href:"/?login=0",children:t("Partners::SuccessModal::Log in to my account")})})]})})),K=r(81583),V=!0;function Q(e){var t=e.data,r=e.benefits,u=(0,i.$G)().t,d=(0,n.useState)(!1),p=d[0],m=d[1],g=(0,n.useState)(!1),_=g[0],h=g[1],f=function(){return m(!p)},b=function(){return h(!_)};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(a.H,{title:u("Meta::Title::Partners::Eatwith - Travel Agents"),bg:"white",showSignupBanner:!1,children:[(0,y.jsx)(o.h,{isTransparent:!0,customLogo:"/assets/images/logo-eatwith-partner-intl-2022-white.svg"}),t.map((function(e,t){switch(e.slice_type){case"hero_section":return(0,y.jsx)(c.f_,{staticFields:e.primary,onCallToActionClick:f},"".concat(e.slice_type,"-").concat(t));
1case"how_it_works_section":return(0,y.jsx)(c.c1,{items:e.items,staticFields:e.primary},"".concat(e.slice_type,"-").concat(t));case"top_experiences_section":return(0,y.jsx)(c.LT,{staticFields:e.primary},"".concat(e.slice_type,"-").concat(t));case"article_section":return(0,y.jsx)(c.F7,{staticFields:e.primary},"".concat(e.slice_type,"-").concat(t));case"video_section":return(0,y.jsx)(c.nP,{staticFields:e.primary},"".concat(e.slice_type,"-").concat(t));case"reviews_section":return(0,y.jsx)(c.m2,{items:e.items,staticFields:e.primary},"".concat(e.slice_type,"-").concat(t));case"instruction_section":return(0,y.jsx)(v,{staticFields:e.primary,benefits:r},"".concat(e.slice_type,"-").concat(t));case"cta_section":return(0,y.jsx)(c.t7,{staticFields:e.primary,onCallToActionClick:f},"press_".concat(t));case"testimonial_section":return(0,y.jsx)(c.JE,{staticFields:e.primary,items:e.items},"".concat(e.slice_type,"-").concat(t));case"press_section":return(0,y.jsx)(c.xz,{items:e.items},"".concat(e.slice_type,"-").concat(t));case"highlight_section":return(0,y.jsx)(c.UQ,{staticFields:e.primary},"".concat(e.slice_type,"-").concat(t));case"popular_destinations_section":return(0,y.jsx)(c.ah,{staticFields:e.primary,items:e.items,innerSectionProps:{as:l.$,maxWidth:{default:"100%",large:"unset"}}},"".concat(e.slice_type,"-").concat(t));case"social_media":return(0,y.jsx)(c.bM,{id:e.primary.anchor_id||void 0,backgroundColor:e.primary.section_background_color||void 0,instagramSectionTitle:e.primary.instagram_section_title||void 0,instagramSectionSubtitle:e.primary.instagram_section_subtitle||void 0,instagramSectionLink:e.primary.instagram_section_link||void 0,instagramSectionImages:[e.primary.instagram_section_image_1,e.primary.instagram_section_image_2,e.primary.instagram_section_image_3,e.primary.instagram_section_image_4,e.primary.instagram_section_image_5,e.primary.instagram_section_image_6,e.primary.instagram_section_image_7,e.primary.instagram_section_image_8,e.primary.instagram_section_image_9].filter((function(e){return e})).map((function(e){return(0,K.IM)(e,"200x200")})),blogSectionTitle:e.primary.blog_section_title||void 0,blogSectionSubtitle:e.primary.blog_section_subtitle||void 0,blogSectionLink:e.primary.blog_section_link||void 0,blogSectionImage:e.primary.blog_section_image?(0,K.IM)(e.primary.blog_section_image,"500x500"):void 0,blogSectionBoxTitle:e.primary.blog_section_box_title||void 0,blogSectionBoxSubtitle:e.primary.blog_section_box_subtitle||void 0,blogSectionBoxCallToAction:e.primary.blog_section_box_call_to_action||void 0},t);default:return null}})),(0,y.jsx)(s.$,{})]}),(0,y.jsx)(z,{show:p,onHide:f,afterSubmit:function(){f(),b()}}),(0,y.jsx)(J,{show:_,onHide:b})]})}},73875:function(e,t,r){"use strict";Object.defineProperty(t,"u_",{enumerable:!0,get:function(){return n.Modal}}),Object.defineProperty(t,"oA",{enumerable:!0,get:function(){return i.StyledModal}}),Object.defineProperty(t,"vR",{enumerable:!0,get:function(){return n.useModalContext}});var n=r(54515),i=r(78672)},37614:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/landings/travel-agents",function(){return r(52287)}])}},function(e){e.O(0,[9004,3207,6748,2407,9484,149,1632,2421,9774,2888,179],(function(){return t=37614,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=travel-agents-1432db1e33ce1fc1.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.