int-components 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +0 -7
- package/dist/index.js +1 -1
- package/dist/rh-components/Button/Button.d.ts +1 -1
- package/dist/rh-components/Button/Button.d.ts.map +1 -1
- package/dist/rh-components/Button/index.js +1 -1
- package/dist/rh-components/Footer/Footer.d.ts +1 -1
- package/dist/rh-components/Footer/Footer.d.ts.map +1 -1
- package/dist/rh-components/Footer/index.js +1 -1
- package/dist/rh-components/Header/Header.d.ts +1 -1
- package/dist/rh-components/Header/Header.d.ts.map +1 -1
- package/dist/rh-components/Header/index.js +1 -1
- package/dist/rh-components/HeroSection/HeroSection.d.ts +1 -2
- package/dist/rh-components/HeroSection/HeroSection.d.ts.map +1 -1
- package/dist/rh-components/HeroSection/index.css +0 -7
- package/dist/rh-components/HeroSection/index.js +1 -1
- package/dist/rh-components/HotelCard/HotelCard.d.ts +1 -1
- package/dist/rh-components/HotelCard/HotelCard.d.ts.map +1 -1
- package/dist/rh-components/HotelCard/index.js +1 -1
- package/dist/rh-components/HotelsLanding/HotelsLanding.d.ts +1 -2
- package/dist/rh-components/HotelsLanding/HotelsLanding.d.ts.map +1 -1
- package/dist/rh-components/HotelsLanding/index.css +0 -7
- package/dist/rh-components/HotelsLanding/index.js +1 -1
- package/dist/rh-components/HotelsSection/HotelsSection.d.ts +2 -1
- package/dist/rh-components/HotelsSection/HotelsSection.d.ts.map +1 -1
- package/dist/rh-components/HotelsSection/index.js +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -925,13 +925,6 @@
|
|
|
925
925
|
display: flex;
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
|
|
929
|
-
|
|
930
|
-
.HeroSection-module__hero--lpuv4 {
|
|
931
|
-
background-image: var(--background-mobile-2x);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
928
|
@media (min-width: 500px) {
|
|
936
929
|
|
|
937
930
|
.HeroSection-module__hero--lpuv4 {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";import*as t from"react";var a={39:(e,t,a)=>{a.d(t,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},67:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(110)},93:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),o=a(130),l=a(39),n=a(670);const r=({title:e,subtitle:t,hotels:a,fluidMode:r})=>{const i=(0,o.u)(r);return(0,s.jsxs)("section",{className:(0,l.L)("HotelsSection-module__hotels--hGJyx",i),children:[e||t?(0,s.jsxs)("header",{className:"HotelsSection-module__hotelsHeader--l_Qr5",children:[e&&(0,s.jsx)("h2",{className:"HotelsSection-module__hotelsTitle--zeGAj",children:e}),t&&(0,s.jsx)("p",{className:"HotelsSection-module__hotelsSubtitle--EAJhs",children:t})]}):null,(0,s.jsx)("ul",{className:"HotelsSection-module__hotelsList--jWxYc",children:a.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n.A,{className:"HotelsSection-module__hotelCard--aCwpN",name:e.name,location:e.location,stars:e.stars,image:e.image,dates:e.dates,discountText:e.discountText,url:e.url,fluidMode:r})},e.name))})]})}},94:(e,t,a)=>{a.d(t,{A:()=>N});var s,o=a(178),l=a(268),n=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),s||(s=i.createElement("path",{fill:"#8C1EFF",d:"M.32 9.41h28v2h-28zM.32 17.41h28v2h-28z"})));var u,m;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},h.apply(null,arguments)}const x=e=>i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),u||(u=i.createElement("path",{fill:"#8C1EFF",d:"m4.807 3.394 19.799 19.799-1.414 1.414-19.8-19.8z"})),m||(m=i.createElement("path",{fill:"#8C1EFF",d:"m3.393 23.193 19.799-19.8 1.414 1.415L4.807 24.607z"})));var p,_,f;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},g.apply(null,arguments)}const v={root:"Header-module__root--MyGKu",header:"Header-module__header--Ie2CT",hidden:"Header-module__hidden--gobBG",compactHeader:"Header-module__compactHeader--LsvY9",visible:"Header-module__visible--ococB",light:"Header-module__light--e8MFJ",dark:"Header-module__dark--mJEmI",yellow:"Header-module__yellow--W7Vw1",leftContainer:"Header-module__leftContainer--T8NI2",rightContainer:"Header-module__rightContainer--ZvsQ0",navList:"Header-module__navList--ikTYl",menuLink:"Header-module__menuLink--yDAEH",menuLinkText:"Header-module__menuLinkText--MV8k7",subMenuOpener:"Header-module__subMenuOpener--7Gf68",subMenuOpenerActive:"Header-module__subMenuOpenerActive--hM0jl",subNavList:"Header-module__subNavList--opWlU",subNavListOpened:"Header-module__subNavListOpened--mebR2",burgerMenuContainer:"Header-module__burgerMenuContainer--GmhQc",burgerMenuButton:"Header-module__burgerMenuButton--sm0Lo",burgerMenu:"Header-module__burgerMenu--SUEsD",logo:"Header-module__logo--V8O4g",burgerButtons:"Header-module__burgerButtons--gDROa",separator:"Header-module__separator--lw7LB"},b="burger-menu",j="sub-menu",w=(0,o.jsx)("a",{href:"https://www.ratehawk.com/",target:"_blank",rel:"noreferrer",children:(0,o.jsx)(e=>i.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",height:61,fill:"none",viewBox:"0 0 202 61"},e),p||(p=i.createElement("path",{fill:"var(--general-color)",d:"m162.762 38.47-2.883-18.28h-7.867l-3.517 22.29h4.857l.026-.178.187-1.397.325-2.435h4.113l.517 3.877.018.134h4.857l-.111-.708zm-8.306-4.16 1.489-10.848 1.49 10.848zM179.455 38.5l-1.997-18.31h-6.079l-1.876 18.34-1.431-18.34h-4.618l2.414 22.29h6.854l1.757-18.336 1.848 18.337h6.764l2.413-22.29h-4.62zM196.7 30.654l4.41-10.463h-5.274l-3.693 10.611V20.191h-5.007v22.29h5.007V31.842l3.635 10.639h5.542zM81.256 30.253q1.028-1.324 1.028-3.402v-.861q0-1.9-.848-3.18-.85-1.279-2.338-1.947-1.491-.67-3.398-.67h-7.45v22.29h5.006V31.517l4.022 10.966h5.571L78.53 32.17q1.701-.598 2.727-1.918m-3.978-2.99q-.001 1.488-.611 2.141-.612.655-1.654.655h-1.757v-3.654a2.055 2.055 0 0 0-2.058-2.052h3.8149999999999995q1.042 0 1.654.549.61.55.61 1.946zM94.679 20.19h-7.867L83.93 38.47l-.634 4.01h4.858l.535-4.01h4.113l.535 4.01h4.857l-.633-4.01zm-5.423 14.12 1.49-10.848 1.49 10.848zM97.752 24.502h3.633V42.48h5.067V24.5h3.635v-4.31H97.752zM111.871 24.502V42.48h11.144v-4.309h-6.138v-4.905h6.138V28.96h-6.138v-4.457h6.138V20.19h-11.144zM141.791 28.87h-4.469v-8.68h-5.064v22.288h5.064v-7.216a2.055 2.055 0 0 0-2.057-2.053h6.526v9.272h5.064V20.19h-5.064z"})),_||(_=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M56.213 18.304 38.056 7.849 25.143.41l3.572 4.999c.833 1.165-.43 2.679-1.732 2.07L15.695 2.197l22.36 17.418s8.481 6.433 11.26 8.735c.493.408.829.974.95 1.604l.868 4.557c.9 4.284-.762 5.893-2.368 6.857l-1.981 1.184.31-2.425c.124-.932-.076-1.3-.636-1.637l-4.84-2.697a2.3 2.3 0 0 0-.901-.297C37.487 35.054.32 29.801.32 29.801l17.228 5.767c1.359.455 1.23 2.412-.176 2.686l-5.264 1.033 24.024 13.89a4.2 4.2 0 0 0 4.186.004c4.062-2.331 12.88-7.393 15.88-9.123a4.18 4.18 0 0 0 2.093-3.603c.018-5.504.018-18.533.018-18.533a4.17 4.17 0 0 0-2.096-3.618"})),f||(f=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M44.752 32.185a1.54 1.54 0 0 0 2.022.8c.553-.238.886-.765.917-1.326l-6.62-3.918s-.065.377.144.576c.22.21 2.583 2.181 3.464 2.916-.076.308-.06.64.073.952"}))),{className:v.logo})}),N=({theme:e="dark",className:t="",menu:a,subMenu:s,extraRightContent:c,fluidMode:u,zIndex:m=1,onLoginClick:h,onRegisterClick:p})=>{const _=(0,n.u)(u),f=v[e],g=s&&s.length>0,[N,y]=(0,i.useState)(!1),[C,M]=(0,i.useState)(!1),[L,H]=(0,i.useState)(!1),[T,A]=(0,i.useState)(!1),S=(0,i.useRef)(null),E=(0,i.useRef)(null),F=a?.map(k)||[];let B=F;if(g){const e=s?.map(k)||[];B=[...F,(0,o.jsxs)("li",{children:[(0,o.jsx)("button",{type:"button",onClick:()=>H(!L),className:(0,r.L)(v.menuLink,_,v.subMenuOpener,j,L?v.subMenuOpenerActive:""),children:(0,o.jsx)("span",{className:v.menuLinkText,children:"More"})}),(0,o.jsx)("ul",{className:(0,r.L)(v.subNavList,L?v.subNavListOpened:"",j),children:e})]},"submenu")],F.push(...e)}const O=(0,i.useCallback)((()=>{let e=!1;return(...t)=>{e||((()=>{if(!S.current||!E.current)return;const e=E.current.getBoundingClientRect().right,t=S.current.getBoundingClientRect().left-e<20;y(t),A(!0),t?H(!1):M(!1)})(...t),e=!0,setTimeout(()=>{e=!1},100))}})(),[]),I=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{theme:"secondary",variant:"dark"===e?"white":"black",url:"https://www.ratehawk.com/accounts/login/?lang=en&ref=rh_sign_in",onClick:h,children:"Sign in"}),(0,o.jsx)(l.A,{url:"https://www.ratehawk.com/registration/?lang=en&ref=rh_register",onClick:p,children:"Register"})]}),P=(0,i.useCallback)(e=>{if(!(e.target instanceof HTMLElement))return;const t=e.target.closest(`.${b}`),a=e.target.closest(`.${j}`);t||M(!1),a||H(!1)},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",O),window.addEventListener("click",P),O(),()=>{window.removeEventListener("resize",O),window.removeEventListener("click",P)}),[O,P]),(0,o.jsxs)("div",{className:(0,r.L)(v.root,t,f,_),style:{zIndex:m},children:[(0,o.jsxs)("div",{className:(0,r.L)(v.header,v.wideHeader,N?v.hidden:""),children:[(0,o.jsxs)("div",{className:v.leftContainer,ref:E,children:[w,(0,o.jsx)("nav",{className:v.navMenu,children:(0,o.jsx)("ul",{className:v.navList,children:B})})]}),(0,o.jsxs)("div",{className:(0,r.L)(v.rightContainer,!T&&v.hidden),ref:S,children:[c,I]})]}),(0,o.jsxs)("div",{className:(0,r.L)(v.header,v.compactHeader,N?v.visible:""),children:[(0,o.jsx)("div",{className:v.leftContainer,children:w}),(0,o.jsxs)("div",{className:v.rightContainer,children:[c,(0,o.jsx)("div",{className:v.burgerMenuContainer,children:(0,o.jsx)("button",{className:v.burgerMenuButton,onClick:()=>M(!C),type:"button",children:C?(0,o.jsx)(x,{}):(0,o.jsx)(d,{})})})]}),C&&(0,o.jsxs)("div",{className:(0,r.L)(v.burgerMenu,b),children:[F.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("nav",{className:v.navMenu,children:(0,o.jsx)("ul",{className:v.navList,children:F})}),(0,o.jsx)("div",{className:v.separator})]}):null,(0,o.jsx)("div",{className:v.burgerButtons,children:I})]})]})]})};function k(e){const t=e.url?"a":"button",a=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,o.jsx)("li",{children:(0,o.jsx)(t,{className:v.menuLink,onClick:e.onClick,...a,children:(0,o.jsx)("span",{className:v.menuLinkText,children:e.title})})},e.title)}},110:(e,t,a)=>{a.d(t,{A:()=>m});var s,o,l=a(178),n=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 98 91"},e),s||(s=i.createElement("path",{fill:"#FEDD00",d:"M94.277 30.26 63.65 12.58 41.87 0l6.025 8.453c1.406 1.972-.724 4.53-2.921 3.5l-19.04-8.93L63.65 32.48s14.304 10.88 18.993 14.772a4.67 4.67 0 0 1 1.601 2.713l1.465 7.708c1.516 7.243-1.286 9.964-3.995 11.595l-3.342 2.002.523-4.101c.21-1.576-.127-2.198-1.073-2.768l-8.163-4.56c-.468-.282-.98-.431-1.52-.503C62.692 58.587 0 49.704 0 49.704l29.06 9.752c2.29.77 2.073 4.08-.299 4.544l-8.878 1.746 40.523 23.489a7.07 7.07 0 0 0 7.06.008C74.318 85.3 89.192 76.741 94.25 73.815a7.07 7.07 0 0 0 3.53-6.094c.03-9.309.03-31.342.03-31.342a7.06 7.06 0 0 0-3.534-6.119"})),o||(o=i.createElement("path",{fill:"#FEDD00",d:"M74.944 53.737a2.594 2.594 0 0 0 3.41 1.354 2.59 2.59 0 0 0 1.547-2.244L68.735 46.22s-.11.639.243.975c.37.353 4.356 3.688 5.842 4.931a2.54 2.54 0 0 0 .124 1.61"}))),u="HeroSection-module__sloganText--_hwUn",m=({yellowText:e,whiteText:t,showLogo:a=!0,backgroundMobile:s,backgroundMobile2x:o,backgroundDesktop:i,backgroundDesktop2x:c,fluidMode:m})=>{const h=(0,n.u)(m);return(0,l.jsx)("section",{className:(0,r.L)("HeroSection-module__hero--lpuv4",h),style:{"--background-mobile":`url("${s}")`,"--background-mobile-2x":`url("${o}")`,"--background-desktop":`url("${i}")`,"--background-desktop-2x":`url("${c}")`},children:(0,l.jsx)("div",{className:"HeroSection-module__heroContainer--brVZ4",children:(0,l.jsxs)("div",{className:"HeroSection-module__slogan--rRTe6",children:[e&&(0,l.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganYellow--lIwpd"),dangerouslySetInnerHTML:{__html:e}}),t&&(0,l.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganWhite--SWr8l"),dangerouslySetInnerHTML:{__html:t}}),a&&(0,l.jsx)(d,{className:"HeroSection-module__heroLogo--t3ggG"})]})})})}},130:(e,t,a)=>{a.d(t,{N:()=>o,u:()=>l}),a(178);var s=a(992);const o=({children:e,fluidMode:t=!1})=>{fluidModeState.state=t;const a=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${t?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:a}}),e]})},l=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(t,a,s)=>{var o,l;t.exports=(o={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},l={},s.d(l,o),l)},268:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),o=a(130),l=a(39);const n={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},r=({className:e,children:t,dimension:a="s",theme:r="primary",onClick:i,disabled:c=!1,type:d="button",variant:u="purple",url:m,isLoading:h,enableMediaDimension:x=!0,fluidMode:p})=>{const _=n[a]||"",f=n[r]||"",g=n[u],v=(0,o.u)(p),b=x?n.withMediaDimension:"",j=m?"a":"button",w=m?{target:"_blank",href:m}:{type:d},N=h?n.isLoading:"";return(0,s.jsxs)(j,{...w,onClick:i,className:(0,l.L)(n.root,e,v,_,f,N,g,b),disabled:c,children:[h?(0,s.jsx)("span",{className:n.spinner}):null,(0,s.jsx)("span",{className:(0,l.L)(n.text,h?n.hidden:null),children:t})]})}},374:(e,t,a)=>{a.d(t,{A:()=>L});var s,o=a(178),l=a(268),n=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),s||(s=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M15.207 29.967c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14Zm0 0v-16a4 4 0 0 1 4-4h1m-10 8h10"})));var u;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},m.apply(null,arguments)}const h=e=>i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),u||(u=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M9.54 12.967v10m12 0v-5a4 4 0 1 0-8 0v5-10m-5-3h2m-7-8h24a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2h-24a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z"}))),x=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;var p;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_.apply(null,arguments)}const f=e=>i.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,stroke:"currentColor",strokeWidth:1.5},e),p||(p=i.createElement("path",{d:"m4 4 16 16m0-16L4 20"}))),g="ContactModal-module__field--c99HI",v="ContactModal-module__inputWrapper--e2l3N",b="ContactModal-module__inputWrapperError--s_bqB",j="ContactModal-module__input--wuaB7",w="ContactModal-module__error--jso6D",N=({isOpen:e,onClose:t,fluidMode:a})=>{const s=(0,n.u)(a),[c,d]=(0,i.useState)({firstName:"",phone:"",email:"",companyName:"",message:""}),[u,m]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),[_,N]=(0,i.useState)({}),k=(0,i.useCallback)(()=>{const e={};return c.firstName.trim()||(e.firstName="First Name is required"),c.phone.trim()?c.phone.replace(/\D/g,"").length>=7||(e.phone="Phone must contain at least 7 digits"):e.phone="Phone is required",c.email.trim()?function(e){return x.test(e)}(c.email)||(e.email="Please enter a valid email"):e.email="Email is required",c.companyName.trim()||(e.companyName="Company Name is required"),N(e),0===Object.keys(e).length},[c]),y=(0,i.useCallback)(async e=>{if(e.preventDefault(),k()){m(!0);try{const e={brand:"ratehawk",cooperation_type:"api",kind:"b2b",white_label_slug:"ratehawk",email:c.email,message:c.message,company_name:c.companyName,name:c.firstName,phone:c.phone};if(!(await fetch("https://www.ratehawk.com/partner/user_area/v1/anonymous/contact_us/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to submit form");p(!0)}catch(e){console.error("Form submission error:",e)}finally{m(!1)}}},[c,k]),C=(0,i.useCallback)(e=>t=>{d(a=>({...a,[e]:t.target.value})),_[e]&&N(t=>({...t,[e]:void 0}))},[_]),M=(0,i.useCallback)(()=>{d({firstName:"",phone:"",email:"",companyName:"",message:""}),N({}),p(!1),t()},[t]);return e?(0,o.jsx)("div",{className:(0,r.L)("ContactModal-module__overlay--ti1yT",s),onClick:M,children:(0,o.jsxs)("div",{className:"ContactModal-module__modal--Xzwl2",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("button",{className:(0,r.L)("ContactModal-module__closeButton--qvADd",s),onClick:M,type:"button",children:(0,o.jsx)(f,{})}),h?(0,o.jsxs)("div",{className:"ContactModal-module__successMessage--Nyhi4",children:[(0,o.jsx)("h2",{className:"ContactModal-module__successTitle--dVn02",children:"Successfully accepted"}),(0,o.jsx)("p",{className:"ContactModal-module__successText--KJznx",children:"Your application has flown to our caring specialists! We will contact you soon"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"ContactModal-module__title--XrI8J",children:(0,o.jsx)("span",{className:"ContactModal-module__titleText--HH4uj",children:"Cooperation"})}),(0,o.jsx)("p",{className:"ContactModal-module__subtitle--dS9UA",children:"Drop us a line and we will get back to you as soon as possible!"}),(0,o.jsxs)("form",{className:"ContactModal-module__form--XuQzj",onSubmit:y,children:[(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.firstName?b:""}`,children:(0,o.jsx)("input",{type:"text",className:j,value:c.firstName,onChange:C("firstName"),placeholder:"First Name *"})}),_.firstName&&(0,o.jsx)("span",{className:w,children:_.firstName})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.phone?b:""}`,children:(0,o.jsx)("input",{type:"tel",className:j,value:c.phone,onChange:C("phone"),placeholder:"Phone *"})}),_.phone&&(0,o.jsx)("span",{className:w,children:_.phone})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.email?b:""}`,children:(0,o.jsx)("input",{type:"email",className:j,value:c.email,onChange:C("email"),placeholder:"Email Address *"})}),_.email&&(0,o.jsx)("span",{className:w,children:_.email})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.companyName?b:""}`,children:(0,o.jsx)("input",{type:"text",className:j,value:c.companyName,onChange:C("companyName"),placeholder:"Company Name *"})}),_.companyName&&(0,o.jsx)("span",{className:w,children:_.companyName})]}),(0,o.jsx)("div",{className:g,children:(0,o.jsx)("label",{className:"ContactModal-module__textareaWrapper--rSQEQ",children:(0,o.jsx)("textarea",{className:"ContactModal-module__textarea--i19oy",value:c.message,onChange:C("message"),placeholder:"Message",rows:4})})}),(0,o.jsx)(l.A,{type:"submit",theme:"primary",variant:"white",disabled:u,className:"ContactModal-module__submitButton--qbQOa",children:u?"Sending...":"Send"})]})]})]})}):null},k="Footer-module__footerLink--ipb6W",y="Footer-module__footerLegalText--xlXoo",C="Footer-module__footerParagraphSection--rin95",M=[{title:"For marketing and PR",text:"We regularly run promotions, campaigns, and partner events to engage and incentivize our clients with special offers. If you interested in such partnership please contact us at {{link}}.",link:"pr@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__marketingBlock--DnIGu"},{title:"For affiliates partnerships",text:"Integrate our solution to make it easy and profitable to book hotels through your website or online service. Integrate quickly and reliably with our system. Still have questions? Contact us at {{link}}.",link:"affiliate@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__affiliatesBlock--jVQ0L"},{title:"For suppliers",text:"As official partners of the world's largest OTA, wholesalers, consolidators, and DMCs, we invite you to enhance your sales and grow your business together. Contact us at {{link}}.",link:"tpp@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__suppliersBlock--yrn9l"},{title:"For hotels",text:"Become our partner to increase your direct sales and the popularity of your accommodation options. \u2028For partnership inquiries, please contact us at {{link}}.",link:"hotels@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__hotelsBlock--uGUyj"},{title:"For technology providers",text:"If you are a mid-office or platform interested in integrating with RateHawk to develop your business, please contact us at {{link}}.",link:"api@ratehawk.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__providersBlock--Zmk8W"}],L=({className:e="",fluidMode:t})=>{const[a,s]=(0,i.useState)(!1),c=(0,n.u)(t),u=(0,i.useCallback)(()=>{s(!0)},[]),m=(0,i.useCallback)(()=>{s(!1)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("footer",{className:(0,r.L)("Footer-module__root--T9ly6",e,c),children:[(0,o.jsxs)("div",{className:"Footer-module__header--hy1ME",children:[(0,o.jsx)("p",{className:"Footer-module__title--OX7d9",children:"Partnership"}),(0,o.jsx)("p",{className:"Footer-module__subTitle--EmP0b",children:"Cooperate and grow together with RateHawk"})]}),(0,o.jsx)("ul",{className:"Footer-module__advantages--z7ASK",children:M.map(e=>(0,o.jsxs)("li",{className:(0,r.L)("Footer-module__advantageItem--EcCx_",e.cssClass),children:[(0,o.jsxs)("div",{className:"Footer-module__advantageInfo--Ilud0",children:[(0,o.jsx)("h6",{className:"Footer-module__advantageTitle--spnaR",children:(0,o.jsx)("span",{className:"Footer-module__advantageTitleText--cMrU_",children:e.title})}),(0,o.jsx)("p",{className:"Footer-module__advantageText--BHbmo",dangerouslySetInnerHTML:{__html:e.text.replace("{{link}}",`<a class="Footer-module__advantageLink--bcoK8" href="mailto:${e.link}">${e.link}</a>`)}})]}),(0,o.jsx)(l.A,{theme:"secondary",variant:"white",...e.button.url?{url:e.button.url}:{onClick:u},children:e.button.text})]},e.title))}),(0,o.jsxs)("div",{className:"Footer-module__footerBottom--u_o7y",children:[(0,o.jsxs)("div",{className:"Footer-module__footerLeft--nnkZo",children:[(0,o.jsxs)("div",{className:"Footer-module__social--H1Yw4",children:[(0,o.jsx)("a",{href:"https://www.facebook.com/ratehawk",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(d,{})}),(0,o.jsx)("a",{href:"https://www.linkedin.com/company/ratehawk-com/",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(h,{})})]}),(0,o.jsxs)("ul",{className:"Footer-module__footerLinks--R9Hnr",children:[(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/lp/en-us/career",target:"_blank",rel:"noopener noreferrer",className:k,children:"Careers"})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://blog.ratehawk.com/",target:"_blank",rel:"noopener noreferrer",className:k,children:"Blog"})})]})]}),(0,o.jsxs)("div",{className:"Footer-module__footerLegal--jAGGe",children:[(0,o.jsxs)("div",{className:C,children:[(0,o.jsx)("p",{className:y,children:"Leaside Services Limited, reg.no HE342401, Business Address: 17 Karaiskaki Street, Office 22, Agaia Triada, Limassol, Cyprus, 3032 Emerging Travel Inc., reg.no 4869611, Business Address: 1000 N West Street, Suite 1200, Wilmington, DE 19801 USA EMERGING TRAVEL UK LIMITED, Company number 12185384, Business Address: 19 Eastbourne Terrace, Office 3.01, Paddington, London, W2 6LG, UK"}),(0,o.jsx)("p",{className:y,children:"Emerging Travel Germany ETG GmbH, HRB 213546, Business Address: Friedrichstraße 171, 10117 Berlin, Germany"}),(0,o.jsx)("p",{className:y,children:"Emerging Travel Kazakhstan LLP, BIN 191240026456, Business address: Office SP2-18, 280 Baizakova Street, Bostandykskiy district, 050040, Almaty, Republic of Kazakhstan"}),(0,o.jsx)("p",{className:y,children:"Smart Middle East Travel Agency L.L.C, Reg.no: 1803677, Business address: Al Rigga - Office No. 202-201-221, Insurance Building, Dubai, UAE"}),(0,o.jsx)("p",{className:y,children:"Emerging Travel Asia PTE. LTD, Reg.no: 201927854K, TA license: TA03682, Business address: 300 Tampines Avenue 5 #09-02, Tampines Junction Singapore 529653"})]}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:y,children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/legal/site/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Personal data processing and storage policy"})})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:y,children:"Digital Services Act"})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:y,children:"Ratehawk is a registered service mark in the European Union"})})]})]})]}),(0,o.jsx)(N,{isOpen:a,onClose:m,fluidMode:t})]})}},627:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(374)},649:(e,a,s)=>{var o,l;e.exports=(o={createElement:()=>t.createElement,useCallback:()=>t.useCallback,useEffect:()=>t.useEffect,useRef:()=>t.useRef,useState:()=>t.useState},l={},s.d(l,o),l)},670:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),o=a(130),l=a(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:t,location:a,stars:r,image:i,dates:c,discountText:d,onClick:u,url:m,width:h="auto",price:x,fluidMode:p})=>{const _=(0,o.u)(p),f=m?"a":"div",g=m?{href:m,target:"_blank",rel:"noopener noreferrer"}:{};return(0,s.jsxs)(f,{className:(0,l.L)(n.root,_,"fixed"===h&&n.rootFixed,e,m&&n.clickable),onClick:u,...g,children:[(0,s.jsxs)("div",{className:n.imageContainer,children:[(0,s.jsx)("img",{src:i,alt:t,className:n.image}),d?(0,s.jsx)("div",{className:n.discount,children:(0,s.jsx)("span",{className:n.discountText,dangerouslySetInnerHTML:{__html:d}})}):null]}),(0,s.jsxs)("div",{className:n.content,children:[(()=>{if(!r)return null;const e=[];for(let a=0;a<5;a++)e.push((0,s.jsx)("div",{className:a<r?n.starFilled:n.starEmpty},`star-${t}-${a}`));return(0,s.jsx)("div",{className:n.stars,children:e})})(),(0,s.jsx)("h3",{className:n.title,children:t}),a&&(0,s.jsx)("p",{className:n.location,children:a}),c&&(0,s.jsxs)("p",{className:n.dates,children:["Travel Dates: ",c]}),(0,s.jsx)("div",{className:n.priceInfoWrapper,children:(0,s.jsx)("div",{className:n.priceInfo,children:x?(0,s.jsxs)("div",{className:n.priceText,children:[(0,s.jsxs)("div",{className:n.mainPriceText,children:["From ",(0,s.jsx)("strong",{children:x})]}),(0,s.jsx)("div",{className:n.infoPriceText,children:(0,s.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,s.jsx)("div",{className:n.bookNowText,children:"Book now"})})})]})]})}},697:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(178),o=a(130),l=a(39),n=a(374),r=a(94),i=a(110);var c=a(93);const d=({className:e="",heroYellowText:t,heroWhiteText:a,hotelsTitle:d,hotelsSubtitle:u,hotels:m,backgroundMobile:h,backgroundMobile2x:x,backgroundDesktop:p,backgroundDesktop2x:_,heroLogo:f=!0,fluidMode:g,onLoginClick:v,onRegisterClick:b})=>{const j=(0,o.u)(g);return(0,s.jsxs)("div",{className:(0,l.L)("HotelsLanding-module__root--JnV8j",j,e),children:[(0,s.jsx)(r.A,{onLoginClick:v,onRegisterClick:b,fluidMode:g}),(0,s.jsxs)("main",{children:[(0,s.jsx)(i.A,{yellowText:t,whiteText:a,showLogo:f,backgroundMobile:h,backgroundMobile2x:x,backgroundDesktop:p,backgroundDesktop2x:_}),(0,s.jsx)(c.A,{title:d,subtitle:u,hotels:m,fluidMode:g})]}),(0,s.jsx)(n.A,{})]})}},782:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(93)},793:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(94)},924:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(670)},992:(e,t,a)=>{a.d(t,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var l=s[e]={exports:{}};return a[e](l,l.exports,o),l.exports}o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};o.r(l),o.d(l,{Button:()=>n.A,Footer:()=>r.A,Header:()=>i.A,HeroSection:()=>c.A,HotelCard:()=>d.A,HotelsLanding:()=>u.A,HotelsSection:()=>m.A});var n=o(268),r=o(627),i=o(793),c=o(67),d=o(924),u=o(697),m=o(782),h=o(992);export{l as RHComponents};export const fluidModeState=h.b;
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as t from"react";var a={39:(e,t,a)=>{a.d(t,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},67:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(110)},93:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),o=a(130),l=a(39),n=a(670);const r=({className:e,title:t,subtitle:a,hotels:r,fluidMode:i,...c})=>{const d=(0,o.u)(i);return(0,s.jsxs)("section",{...c,className:(0,l.L)("HotelsSection-module__hotels--hGJyx",d,e),children:[t||a?(0,s.jsxs)("header",{className:"HotelsSection-module__hotelsHeader--l_Qr5",children:[t&&(0,s.jsx)("h2",{className:"HotelsSection-module__hotelsTitle--zeGAj",children:t}),a&&(0,s.jsx)("p",{className:"HotelsSection-module__hotelsSubtitle--EAJhs",children:a})]}):null,(0,s.jsx)("ul",{className:"HotelsSection-module__hotelsList--jWxYc",children:r.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n.A,{className:"HotelsSection-module__hotelCard--aCwpN",name:e.name,location:e.location,stars:e.stars,image:e.image,dates:e.dates,discountText:e.discountText,url:e.url,fluidMode:i})},e.name))})]})}},94:(e,t,a)=>{a.d(t,{A:()=>N});var s,o=a(178),l=a(268),n=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),s||(s=i.createElement("path",{fill:"#8C1EFF",d:"M.32 9.41h28v2h-28zM.32 17.41h28v2h-28z"})));var u,m;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},h.apply(null,arguments)}const x=e=>i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),u||(u=i.createElement("path",{fill:"#8C1EFF",d:"m4.807 3.394 19.799 19.799-1.414 1.414-19.8-19.8z"})),m||(m=i.createElement("path",{fill:"#8C1EFF",d:"m3.393 23.193 19.799-19.8 1.414 1.415L4.807 24.607z"})));var p,_,f;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},g.apply(null,arguments)}const v={root:"Header-module__root--MyGKu",header:"Header-module__header--Ie2CT",hidden:"Header-module__hidden--gobBG",compactHeader:"Header-module__compactHeader--LsvY9",visible:"Header-module__visible--ococB",light:"Header-module__light--e8MFJ",dark:"Header-module__dark--mJEmI",yellow:"Header-module__yellow--W7Vw1",leftContainer:"Header-module__leftContainer--T8NI2",rightContainer:"Header-module__rightContainer--ZvsQ0",navList:"Header-module__navList--ikTYl",menuLink:"Header-module__menuLink--yDAEH",menuLinkText:"Header-module__menuLinkText--MV8k7",subMenuOpener:"Header-module__subMenuOpener--7Gf68",subMenuOpenerActive:"Header-module__subMenuOpenerActive--hM0jl",subNavList:"Header-module__subNavList--opWlU",subNavListOpened:"Header-module__subNavListOpened--mebR2",burgerMenuContainer:"Header-module__burgerMenuContainer--GmhQc",burgerMenuButton:"Header-module__burgerMenuButton--sm0Lo",burgerMenu:"Header-module__burgerMenu--SUEsD",logo:"Header-module__logo--V8O4g",burgerButtons:"Header-module__burgerButtons--gDROa",separator:"Header-module__separator--lw7LB"},b="burger-menu",j="sub-menu",w=(0,o.jsx)("a",{href:"https://www.ratehawk.com/",target:"_blank",rel:"noreferrer",children:(0,o.jsx)(e=>i.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",height:61,fill:"none",viewBox:"0 0 202 61"},e),p||(p=i.createElement("path",{fill:"var(--general-color)",d:"m162.762 38.47-2.883-18.28h-7.867l-3.517 22.29h4.857l.026-.178.187-1.397.325-2.435h4.113l.517 3.877.018.134h4.857l-.111-.708zm-8.306-4.16 1.489-10.848 1.49 10.848zM179.455 38.5l-1.997-18.31h-6.079l-1.876 18.34-1.431-18.34h-4.618l2.414 22.29h6.854l1.757-18.336 1.848 18.337h6.764l2.413-22.29h-4.62zM196.7 30.654l4.41-10.463h-5.274l-3.693 10.611V20.191h-5.007v22.29h5.007V31.842l3.635 10.639h5.542zM81.256 30.253q1.028-1.324 1.028-3.402v-.861q0-1.9-.848-3.18-.85-1.279-2.338-1.947-1.491-.67-3.398-.67h-7.45v22.29h5.006V31.517l4.022 10.966h5.571L78.53 32.17q1.701-.598 2.727-1.918m-3.978-2.99q-.001 1.488-.611 2.141-.612.655-1.654.655h-1.757v-3.654a2.055 2.055 0 0 0-2.058-2.052h3.8149999999999995q1.042 0 1.654.549.61.55.61 1.946zM94.679 20.19h-7.867L83.93 38.47l-.634 4.01h4.858l.535-4.01h4.113l.535 4.01h4.857l-.633-4.01zm-5.423 14.12 1.49-10.848 1.49 10.848zM97.752 24.502h3.633V42.48h5.067V24.5h3.635v-4.31H97.752zM111.871 24.502V42.48h11.144v-4.309h-6.138v-4.905h6.138V28.96h-6.138v-4.457h6.138V20.19h-11.144zM141.791 28.87h-4.469v-8.68h-5.064v22.288h5.064v-7.216a2.055 2.055 0 0 0-2.057-2.053h6.526v9.272h5.064V20.19h-5.064z"})),_||(_=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M56.213 18.304 38.056 7.849 25.143.41l3.572 4.999c.833 1.165-.43 2.679-1.732 2.07L15.695 2.197l22.36 17.418s8.481 6.433 11.26 8.735c.493.408.829.974.95 1.604l.868 4.557c.9 4.284-.762 5.893-2.368 6.857l-1.981 1.184.31-2.425c.124-.932-.076-1.3-.636-1.637l-4.84-2.697a2.3 2.3 0 0 0-.901-.297C37.487 35.054.32 29.801.32 29.801l17.228 5.767c1.359.455 1.23 2.412-.176 2.686l-5.264 1.033 24.024 13.89a4.2 4.2 0 0 0 4.186.004c4.062-2.331 12.88-7.393 15.88-9.123a4.18 4.18 0 0 0 2.093-3.603c.018-5.504.018-18.533.018-18.533a4.17 4.17 0 0 0-2.096-3.618"})),f||(f=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M44.752 32.185a1.54 1.54 0 0 0 2.022.8c.553-.238.886-.765.917-1.326l-6.62-3.918s-.065.377.144.576c.22.21 2.583 2.181 3.464 2.916-.076.308-.06.64.073.952"}))),{className:v.logo})}),N=({theme:e="dark",className:t="",menu:a,subMenu:s,extraRightContent:c,fluidMode:u,zIndex:m=1,onLoginClick:h,onRegisterClick:p,style:_,...f})=>{const g=(0,n.u)(u),N=v[e],y=s&&s.length>0,[C,M]=(0,i.useState)(!1),[L,H]=(0,i.useState)(!1),[T,A]=(0,i.useState)(!1),[S,E]=(0,i.useState)(!1),F=(0,i.useRef)(null),B=(0,i.useRef)(null),O=a?.map(k)||[];let I=O;if(y){const e=s?.map(k)||[];I=[...O,(0,o.jsxs)("li",{children:[(0,o.jsx)("button",{type:"button",onClick:()=>A(!T),className:(0,r.L)(v.menuLink,g,v.subMenuOpener,j,T?v.subMenuOpenerActive:""),children:(0,o.jsx)("span",{className:v.menuLinkText,children:"More"})}),(0,o.jsx)("ul",{className:(0,r.L)(v.subNavList,T?v.subNavListOpened:"",j),children:e})]},"submenu")],O.push(...e)}const P=(0,i.useCallback)((()=>{let e=!1;return(...t)=>{e||((()=>{if(!F.current||!B.current)return;const e=B.current.getBoundingClientRect().right,t=F.current.getBoundingClientRect().left-e<20;M(t),E(!0),t?A(!1):H(!1)})(...t),e=!0,setTimeout(()=>{e=!1},100))}})(),[]),R=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{theme:"secondary",variant:"dark"===e?"white":"black",url:"https://www.ratehawk.com/accounts/login/?lang=en&ref=rh_sign_in",onClick:h,children:"Sign in"}),(0,o.jsx)(l.A,{url:"https://www.ratehawk.com/registration/?lang=en&ref=rh_register",onClick:p,children:"Register"})]}),z=(0,i.useCallback)(e=>{if(!(e.target instanceof HTMLElement))return;const t=e.target.closest(`.${b}`),a=e.target.closest(`.${j}`);t||H(!1),a||A(!1)},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",P),window.addEventListener("click",z),P(),()=>{window.removeEventListener("resize",P),window.removeEventListener("click",z)}),[P,z]),(0,o.jsxs)("div",{...f,className:(0,r.L)(v.root,t,N,g),style:{..._,zIndex:m},children:[(0,o.jsxs)("div",{className:(0,r.L)(v.header,v.wideHeader,C?v.hidden:""),children:[(0,o.jsxs)("div",{className:v.leftContainer,ref:B,children:[w,(0,o.jsx)("nav",{className:v.navMenu,children:(0,o.jsx)("ul",{className:v.navList,children:I})})]}),(0,o.jsxs)("div",{className:(0,r.L)(v.rightContainer,!S&&v.hidden),ref:F,children:[c,R]})]}),(0,o.jsxs)("div",{className:(0,r.L)(v.header,v.compactHeader,C?v.visible:""),children:[(0,o.jsx)("div",{className:v.leftContainer,children:w}),(0,o.jsxs)("div",{className:v.rightContainer,children:[c,(0,o.jsx)("div",{className:v.burgerMenuContainer,children:(0,o.jsx)("button",{className:v.burgerMenuButton,onClick:()=>H(!L),type:"button",children:L?(0,o.jsx)(x,{}):(0,o.jsx)(d,{})})})]}),L&&(0,o.jsxs)("div",{className:(0,r.L)(v.burgerMenu,b),children:[O.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("nav",{className:v.navMenu,children:(0,o.jsx)("ul",{className:v.navList,children:O})}),(0,o.jsx)("div",{className:v.separator})]}):null,(0,o.jsx)("div",{className:v.burgerButtons,children:R})]})]})]})};function k(e){const t=e.url?"a":"button",a=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,o.jsx)("li",{children:(0,o.jsx)(t,{className:v.menuLink,onClick:e.onClick,...a,children:(0,o.jsx)("span",{className:v.menuLinkText,children:e.title})})},e.title)}},110:(e,t,a)=>{a.d(t,{A:()=>m});var s,o,l=a(178),n=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 98 91"},e),s||(s=i.createElement("path",{fill:"#FEDD00",d:"M94.277 30.26 63.65 12.58 41.87 0l6.025 8.453c1.406 1.972-.724 4.53-2.921 3.5l-19.04-8.93L63.65 32.48s14.304 10.88 18.993 14.772a4.67 4.67 0 0 1 1.601 2.713l1.465 7.708c1.516 7.243-1.286 9.964-3.995 11.595l-3.342 2.002.523-4.101c.21-1.576-.127-2.198-1.073-2.768l-8.163-4.56c-.468-.282-.98-.431-1.52-.503C62.692 58.587 0 49.704 0 49.704l29.06 9.752c2.29.77 2.073 4.08-.299 4.544l-8.878 1.746 40.523 23.489a7.07 7.07 0 0 0 7.06.008C74.318 85.3 89.192 76.741 94.25 73.815a7.07 7.07 0 0 0 3.53-6.094c.03-9.309.03-31.342.03-31.342a7.06 7.06 0 0 0-3.534-6.119"})),o||(o=i.createElement("path",{fill:"#FEDD00",d:"M74.944 53.737a2.594 2.594 0 0 0 3.41 1.354 2.59 2.59 0 0 0 1.547-2.244L68.735 46.22s-.11.639.243.975c.37.353 4.356 3.688 5.842 4.931a2.54 2.54 0 0 0 .124 1.61"}))),u="HeroSection-module__sloganText--_hwUn",m=({className:e,style:t,yellowText:a,whiteText:s,showLogo:o=!0,backgroundMobile:i,backgroundDesktop:c,backgroundDesktop2x:m,fluidMode:h,...x})=>{const p=(0,n.u)(h);return(0,l.jsx)("section",{...x,className:(0,r.L)("HeroSection-module__hero--lpuv4",e,p),style:{...t,"--background-mobile":`url("${i}")`,"--background-desktop":`url("${c}")`,"--background-desktop-2x":`url("${m}")`},children:(0,l.jsx)("div",{className:"HeroSection-module__heroContainer--brVZ4",children:(0,l.jsxs)("div",{className:"HeroSection-module__slogan--rRTe6",children:[a&&(0,l.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganYellow--lIwpd"),dangerouslySetInnerHTML:{__html:a}}),s&&(0,l.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganWhite--SWr8l"),dangerouslySetInnerHTML:{__html:s}}),o&&(0,l.jsx)(d,{className:"HeroSection-module__heroLogo--t3ggG"})]})})})}},130:(e,t,a)=>{a.d(t,{N:()=>o,u:()=>l}),a(178);var s=a(992);const o=({children:e,fluidMode:t=!1})=>{fluidModeState.state=t;const a=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${t?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:a}}),e]})},l=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(t,a,s)=>{var o,l;t.exports=(o={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},l={},s.d(l,o),l)},268:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),o=a(130),l=a(39);const n={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},r=({className:e,children:t,dimension:a="s",theme:r="primary",onClick:i,disabled:c=!1,type:d="button",variant:u="purple",url:m,isLoading:h,enableMediaDimension:x=!0,fluidMode:p,..._})=>{const f=n[a]||"",g=n[r]||"",v=n[u],b=(0,o.u)(p),j=x?n.withMediaDimension:"",w=m?"a":"button",N=m?{target:"_blank",href:m}:{type:d},k=h?n.isLoading:"";return(0,s.jsxs)(w,{...N,..._,onClick:i,className:(0,l.L)(n.root,e,b,f,g,k,v,j),disabled:c,children:[h?(0,s.jsx)("span",{className:n.spinner}):null,(0,s.jsx)("span",{className:(0,l.L)(n.text,h?n.hidden:null),children:t})]})}},374:(e,t,a)=>{a.d(t,{A:()=>L});var s,o=a(178),l=a(268),n=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),s||(s=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M15.207 29.967c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14Zm0 0v-16a4 4 0 0 1 4-4h1m-10 8h10"})));var u;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},m.apply(null,arguments)}const h=e=>i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),u||(u=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M9.54 12.967v10m12 0v-5a4 4 0 1 0-8 0v5-10m-5-3h2m-7-8h24a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2h-24a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z"}))),x=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;var p;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_.apply(null,arguments)}const f=e=>i.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,stroke:"currentColor",strokeWidth:1.5},e),p||(p=i.createElement("path",{d:"m4 4 16 16m0-16L4 20"}))),g="ContactModal-module__field--c99HI",v="ContactModal-module__inputWrapper--e2l3N",b="ContactModal-module__inputWrapperError--s_bqB",j="ContactModal-module__input--wuaB7",w="ContactModal-module__error--jso6D",N=({isOpen:e,onClose:t,fluidMode:a})=>{const s=(0,n.u)(a),[c,d]=(0,i.useState)({firstName:"",phone:"",email:"",companyName:"",message:""}),[u,m]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),[_,N]=(0,i.useState)({}),k=(0,i.useCallback)(()=>{const e={};return c.firstName.trim()||(e.firstName="First Name is required"),c.phone.trim()?c.phone.replace(/\D/g,"").length>=7||(e.phone="Phone must contain at least 7 digits"):e.phone="Phone is required",c.email.trim()?function(e){return x.test(e)}(c.email)||(e.email="Please enter a valid email"):e.email="Email is required",c.companyName.trim()||(e.companyName="Company Name is required"),N(e),0===Object.keys(e).length},[c]),y=(0,i.useCallback)(async e=>{if(e.preventDefault(),k()){m(!0);try{const e={brand:"ratehawk",cooperation_type:"api",kind:"b2b",white_label_slug:"ratehawk",email:c.email,message:c.message,company_name:c.companyName,name:c.firstName,phone:c.phone};if(!(await fetch("https://www.ratehawk.com/partner/user_area/v1/anonymous/contact_us/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to submit form");p(!0)}catch(e){console.error("Form submission error:",e)}finally{m(!1)}}},[c,k]),C=(0,i.useCallback)(e=>t=>{d(a=>({...a,[e]:t.target.value})),_[e]&&N(t=>({...t,[e]:void 0}))},[_]),M=(0,i.useCallback)(()=>{d({firstName:"",phone:"",email:"",companyName:"",message:""}),N({}),p(!1),t()},[t]);return e?(0,o.jsx)("div",{className:(0,r.L)("ContactModal-module__overlay--ti1yT",s),onClick:M,children:(0,o.jsxs)("div",{className:"ContactModal-module__modal--Xzwl2",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("button",{className:(0,r.L)("ContactModal-module__closeButton--qvADd",s),onClick:M,type:"button",children:(0,o.jsx)(f,{})}),h?(0,o.jsxs)("div",{className:"ContactModal-module__successMessage--Nyhi4",children:[(0,o.jsx)("h2",{className:"ContactModal-module__successTitle--dVn02",children:"Successfully accepted"}),(0,o.jsx)("p",{className:"ContactModal-module__successText--KJznx",children:"Your application has flown to our caring specialists! We will contact you soon"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"ContactModal-module__title--XrI8J",children:(0,o.jsx)("span",{className:"ContactModal-module__titleText--HH4uj",children:"Cooperation"})}),(0,o.jsx)("p",{className:"ContactModal-module__subtitle--dS9UA",children:"Drop us a line and we will get back to you as soon as possible!"}),(0,o.jsxs)("form",{className:"ContactModal-module__form--XuQzj",onSubmit:y,children:[(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.firstName?b:""}`,children:(0,o.jsx)("input",{type:"text",className:j,value:c.firstName,onChange:C("firstName"),placeholder:"First Name *"})}),_.firstName&&(0,o.jsx)("span",{className:w,children:_.firstName})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.phone?b:""}`,children:(0,o.jsx)("input",{type:"tel",className:j,value:c.phone,onChange:C("phone"),placeholder:"Phone *"})}),_.phone&&(0,o.jsx)("span",{className:w,children:_.phone})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.email?b:""}`,children:(0,o.jsx)("input",{type:"email",className:j,value:c.email,onChange:C("email"),placeholder:"Email Address *"})}),_.email&&(0,o.jsx)("span",{className:w,children:_.email})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${v} ${_.companyName?b:""}`,children:(0,o.jsx)("input",{type:"text",className:j,value:c.companyName,onChange:C("companyName"),placeholder:"Company Name *"})}),_.companyName&&(0,o.jsx)("span",{className:w,children:_.companyName})]}),(0,o.jsx)("div",{className:g,children:(0,o.jsx)("label",{className:"ContactModal-module__textareaWrapper--rSQEQ",children:(0,o.jsx)("textarea",{className:"ContactModal-module__textarea--i19oy",value:c.message,onChange:C("message"),placeholder:"Message",rows:4})})}),(0,o.jsx)(l.A,{type:"submit",theme:"primary",variant:"white",disabled:u,className:"ContactModal-module__submitButton--qbQOa",children:u?"Sending...":"Send"})]})]})]})}):null},k="Footer-module__footerLink--ipb6W",y="Footer-module__footerLegalText--xlXoo",C="Footer-module__footerParagraphSection--rin95",M=[{title:"For marketing and PR",text:"We regularly run promotions, campaigns, and partner events to engage and incentivize our clients with special offers. If you interested in such partnership please contact us at {{link}}.",link:"pr@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__marketingBlock--DnIGu"},{title:"For affiliates partnerships",text:"Integrate our solution to make it easy and profitable to book hotels through your website or online service. Integrate quickly and reliably with our system. Still have questions? Contact us at {{link}}.",link:"affiliate@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__affiliatesBlock--jVQ0L"},{title:"For suppliers",text:"As official partners of the world's largest OTA, wholesalers, consolidators, and DMCs, we invite you to enhance your sales and grow your business together. Contact us at {{link}}.",link:"tpp@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__suppliersBlock--yrn9l"},{title:"For hotels",text:"Become our partner to increase your direct sales and the popularity of your accommodation options. \u2028For partnership inquiries, please contact us at {{link}}.",link:"hotels@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__hotelsBlock--uGUyj"},{title:"For technology providers",text:"If you are a mid-office or platform interested in integrating with RateHawk to develop your business, please contact us at {{link}}.",link:"api@ratehawk.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__providersBlock--Zmk8W"}],L=({className:e="",fluidMode:t,...a})=>{const[s,c]=(0,i.useState)(!1),u=(0,n.u)(t),m=(0,i.useCallback)(()=>{c(!0)},[]),x=(0,i.useCallback)(()=>{c(!1)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("footer",{...a,className:(0,r.L)("Footer-module__root--T9ly6",e,u),children:[(0,o.jsxs)("div",{className:"Footer-module__header--hy1ME",children:[(0,o.jsx)("p",{className:"Footer-module__title--OX7d9",children:"Partnership"}),(0,o.jsx)("p",{className:"Footer-module__subTitle--EmP0b",children:"Cooperate and grow together with RateHawk"})]}),(0,o.jsx)("ul",{className:"Footer-module__advantages--z7ASK",children:M.map(e=>(0,o.jsxs)("li",{className:(0,r.L)("Footer-module__advantageItem--EcCx_",e.cssClass),children:[(0,o.jsxs)("div",{className:"Footer-module__advantageInfo--Ilud0",children:[(0,o.jsx)("h6",{className:"Footer-module__advantageTitle--spnaR",children:(0,o.jsx)("span",{className:"Footer-module__advantageTitleText--cMrU_",children:e.title})}),(0,o.jsx)("p",{className:"Footer-module__advantageText--BHbmo",dangerouslySetInnerHTML:{__html:e.text.replace("{{link}}",`<a class="Footer-module__advantageLink--bcoK8" href="mailto:${e.link}">${e.link}</a>`)}})]}),(0,o.jsx)(l.A,{theme:"secondary",variant:"white",...e.button.url?{url:e.button.url}:{onClick:m},children:e.button.text})]},e.title))}),(0,o.jsxs)("div",{className:"Footer-module__footerBottom--u_o7y",children:[(0,o.jsxs)("div",{className:"Footer-module__footerLeft--nnkZo",children:[(0,o.jsxs)("div",{className:"Footer-module__social--H1Yw4",children:[(0,o.jsx)("a",{href:"https://www.facebook.com/ratehawk",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(d,{})}),(0,o.jsx)("a",{href:"https://www.linkedin.com/company/ratehawk-com/",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(h,{})})]}),(0,o.jsxs)("ul",{className:"Footer-module__footerLinks--R9Hnr",children:[(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/lp/en-us/career",target:"_blank",rel:"noopener noreferrer",className:k,children:"Careers"})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://blog.ratehawk.com/",target:"_blank",rel:"noopener noreferrer",className:k,children:"Blog"})})]})]}),(0,o.jsxs)("div",{className:"Footer-module__footerLegal--jAGGe",children:[(0,o.jsxs)("div",{className:C,children:[(0,o.jsx)("p",{className:y,children:"Leaside Services Limited, reg.no HE342401, Business Address: 17 Karaiskaki Street, Office 22, Agaia Triada, Limassol, Cyprus, 3032 Emerging Travel Inc., reg.no 4869611, Business Address: 1000 N West Street, Suite 1200, Wilmington, DE 19801 USA EMERGING TRAVEL UK LIMITED, Company number 12185384, Business Address: 19 Eastbourne Terrace, Office 3.01, Paddington, London, W2 6LG, UK"}),(0,o.jsx)("p",{className:y,children:"Emerging Travel Germany ETG GmbH, HRB 213546, Business Address: Friedrichstraße 171, 10117 Berlin, Germany"}),(0,o.jsx)("p",{className:y,children:"Emerging Travel Kazakhstan LLP, BIN 191240026456, Business address: Office SP2-18, 280 Baizakova Street, Bostandykskiy district, 050040, Almaty, Republic of Kazakhstan"}),(0,o.jsx)("p",{className:y,children:"Smart Middle East Travel Agency L.L.C, Reg.no: 1803677, Business address: Al Rigga - Office No. 202-201-221, Insurance Building, Dubai, UAE"}),(0,o.jsx)("p",{className:y,children:"Emerging Travel Asia PTE. LTD, Reg.no: 201927854K, TA license: TA03682, Business address: 300 Tampines Avenue 5 #09-02, Tampines Junction Singapore 529653"})]}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:y,children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/legal/site/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Personal data processing and storage policy"})})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:y,children:"Digital Services Act"})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:y,children:"Ratehawk is a registered service mark in the European Union"})})]})]})]}),(0,o.jsx)(N,{isOpen:s,onClose:x,fluidMode:t})]})}},627:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(374)},649:(e,a,s)=>{var o,l;e.exports=(o={createElement:()=>t.createElement,useCallback:()=>t.useCallback,useEffect:()=>t.useEffect,useRef:()=>t.useRef,useState:()=>t.useState},l={},s.d(l,o),l)},670:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),o=a(130),l=a(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:t,location:a,stars:r,image:i,dates:c,discountText:d,onClick:u,url:m,width:h="auto",price:x,fluidMode:p,..._})=>{const f=(0,o.u)(p),g=m?"a":"div",v=m?{href:m,target:"_blank",rel:"noopener noreferrer"}:{};return(0,s.jsxs)(g,{..._,...v,className:(0,l.L)(n.root,f,"fixed"===h&&n.rootFixed,e,m&&n.clickable),onClick:u,children:[(0,s.jsxs)("div",{className:n.imageContainer,children:[(0,s.jsx)("img",{src:i,alt:t,className:n.image}),d?(0,s.jsx)("div",{className:n.discount,children:(0,s.jsx)("span",{className:n.discountText,dangerouslySetInnerHTML:{__html:d}})}):null]}),(0,s.jsxs)("div",{className:n.content,children:[(()=>{if(!r)return null;const e=[];for(let a=0;a<5;a++)e.push((0,s.jsx)("div",{className:a<r?n.starFilled:n.starEmpty},`star-${t}-${a}`));return(0,s.jsx)("div",{className:n.stars,children:e})})(),(0,s.jsx)("h3",{className:n.title,children:t}),a&&(0,s.jsx)("p",{className:n.location,children:a}),c&&(0,s.jsxs)("p",{className:n.dates,children:["Travel Dates: ",c]}),(0,s.jsx)("div",{className:n.priceInfoWrapper,children:(0,s.jsx)("div",{className:n.priceInfo,children:x?(0,s.jsxs)("div",{className:n.priceText,children:[(0,s.jsxs)("div",{className:n.mainPriceText,children:["From ",(0,s.jsx)("strong",{children:x})]}),(0,s.jsx)("div",{className:n.infoPriceText,children:(0,s.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,s.jsx)("div",{className:n.bookNowText,children:"Book now"})})})]})]})}},697:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(178),o=a(130),l=a(39),n=a(374),r=a(94),i=a(110);var c=a(93);const d=({className:e="",heroYellowText:t,heroWhiteText:a,hotelsTitle:d,hotelsSubtitle:u,hotels:m,backgroundMobile:h,backgroundDesktop:x,backgroundDesktop2x:p,heroLogo:_=!0,fluidMode:f,onLoginClick:g,onRegisterClick:v,...b})=>{const j=(0,o.u)(f);return(0,s.jsxs)("div",{...b,className:(0,l.L)("HotelsLanding-module__root--JnV8j",j,e),children:[(0,s.jsx)(r.A,{onLoginClick:g,onRegisterClick:v,fluidMode:f}),(0,s.jsxs)("main",{children:[(0,s.jsx)(i.A,{yellowText:t,whiteText:a,showLogo:_,backgroundMobile:h,backgroundDesktop:x,backgroundDesktop2x:p}),(0,s.jsx)(c.A,{title:d,subtitle:u,hotels:m,fluidMode:f})]}),(0,s.jsx)(n.A,{})]})}},782:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(93)},793:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(94)},924:(e,t,a)=>{a.d(t,{A:()=>s.A});var s=a(670)},992:(e,t,a)=>{a.d(t,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var l=s[e]={exports:{}};return a[e](l,l.exports,o),l.exports}o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};o.r(l),o.d(l,{Button:()=>n.A,Footer:()=>r.A,Header:()=>i.A,HeroSection:()=>c.A,HotelCard:()=>d.A,HotelsLanding:()=>u.A,HotelsSection:()=>m.A});var n=o(268),r=o(627),i=o(793),c=o(67),d=o(924),u=o(697),m=o(782),h=o(992);export{l as RHComponents};export const fluidModeState=h.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/rh-components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,WAAW;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/rh-components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IACzG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IAEvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react/jsx-runtime";var o={39:(t,o,n)=>{n.d(o,{L:()=>e});const e=(...t)=>t.filter(Boolean).join(" ")},130:(t,o,n)=>{n.d(o,{N:()=>a,u:()=>s}),n(178);var e=n(992);const a=({children:t,fluidMode:o=!1})=>{fluidModeState.state=o;const n=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${o?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:n}}),t]})},s=t=>("boolean"==typeof t?t:e.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(o,n,e)=>{var a,s;o.exports=(a={jsx:()=>t.jsx,jsxs:()=>t.jsxs},s={},e.d(s,a),s)},992:(t,o,n)=>{n.d(o,{b:()=>e}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const e=globalThis.__fluidModeState}},n={};function e(t){var a=n[t];if(void 0!==a)return a.exports;var s=n[t]={exports:{}};return o[t](s,s.exports,e),s.exports}e.d=(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);var a=e(178),s=e(130),l=e(39);const i={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},r=({className:t,children:o,dimension:n="s",theme:e="primary",onClick:r,disabled:d=!1,type:u="button",variant:f="purple",url:m,isLoading:_,enableMediaDimension:p=!0,fluidMode:c})=>{const
|
|
1
|
+
import*as t from"react/jsx-runtime";var o={39:(t,o,n)=>{n.d(o,{L:()=>e});const e=(...t)=>t.filter(Boolean).join(" ")},130:(t,o,n)=>{n.d(o,{N:()=>a,u:()=>s}),n(178);var e=n(992);const a=({children:t,fluidMode:o=!1})=>{fluidModeState.state=o;const n=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${o?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:n}}),t]})},s=t=>("boolean"==typeof t?t:e.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(o,n,e)=>{var a,s;o.exports=(a={jsx:()=>t.jsx,jsxs:()=>t.jsxs},s={},e.d(s,a),s)},992:(t,o,n)=>{n.d(o,{b:()=>e}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const e=globalThis.__fluidModeState}},n={};function e(t){var a=n[t];if(void 0!==a)return a.exports;var s=n[t]={exports:{}};return o[t](s,s.exports,e),s.exports}e.d=(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);var a=e(178),s=e(130),l=e(39);const i={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},r=({className:t,children:o,dimension:n="s",theme:e="primary",onClick:r,disabled:d=!1,type:u="button",variant:f="purple",url:m,isLoading:_,enableMediaDimension:p=!0,fluidMode:c,...y})=>{const h=i[n]||"",w=i[e]||"",x=i[f],B=(0,s.u)(c),b=p?i.withMediaDimension:"",g=m?"a":"button",j=m?{target:"_blank",href:m}:{type:u},k=_?i.isLoading:"";return(0,a.jsxs)(g,{...j,...y,onClick:r,className:(0,l.L)(i.root,t,B,h,w,k,x,b),disabled:d,children:[_?(0,a.jsx)("span",{className:i.spinner}):null,(0,a.jsx)("span",{className:(0,l.L)(i.text,_?i.hidden:null),children:o})]})};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/rh-components/Footer/Footer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,WAAW;
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/rh-components/Footer/Footer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAyDD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsKjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";import*as a from"react";var t={39:(e,a,t)=>{t.d(a,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},130:(e,a,t)=>{t.d(a,{N:()=>o,u:()=>n}),t(178);var s=t(992);const o=({children:e,fluidMode:a=!1})=>{fluidModeState.state=a;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${a?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},n=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(a,t,s)=>{var o,n;a.exports=(o={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},n={},s.d(n,o),n)},268:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(178),o=t(130),n=t(39);const r={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},l=({className:e,children:a,dimension:t="s",theme:l="primary",onClick:i,disabled:c=!1,type:d="button",variant:m="purple",url:u,isLoading:x,enableMediaDimension:h=!0,fluidMode:p})=>{const f=r[t]||"",_=r[l]||"",g=r[m],y=(0,o.u)(p),v=h?r.withMediaDimension:"",b=u?"a":"button",j=u?{target:"_blank",href:u}:{type:d},w=x?r.isLoading:"";return(0,s.jsxs)(b,{...j,onClick:i,className:(0,n.L)(r.root,e,y,f,_,w,g,v),disabled:c,children:[x?(0,s.jsx)("span",{className:r.spinner}):null,(0,s.jsx)("span",{className:(0,n.L)(r.text,x?r.hidden:null),children:a})]})}},374:(e,a,t)=>{t.d(a,{A:()=>M});var s,o=t(178),n=t(268),r=t(130),l=t(39),i=t(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),s||(s=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M15.207 29.967c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14Zm0 0v-16a4 4 0 0 1 4-4h1m-10 8h10"})));var m;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},u.apply(null,arguments)}const x=e=>i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),m||(m=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M9.54 12.967v10m12 0v-5a4 4 0 1 0-8 0v5-10m-5-3h2m-7-8h24a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2h-24a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z"}))),h=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;var p;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},f.apply(null,arguments)}const _=e=>i.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,stroke:"currentColor",strokeWidth:1.5},e),p||(p=i.createElement("path",{d:"m4 4 16 16m0-16L4 20"}))),g="ContactModal-module__field--c99HI",y="ContactModal-module__inputWrapper--e2l3N",v="ContactModal-module__inputWrapperError--s_bqB",b="ContactModal-module__input--wuaB7",j="ContactModal-module__error--jso6D",w=({isOpen:e,onClose:a,fluidMode:t})=>{const s=(0,r.u)(t),[c,d]=(0,i.useState)({firstName:"",phone:"",email:"",companyName:"",message:""}),[m,u]=(0,i.useState)(!1),[x,p]=(0,i.useState)(!1),[f,w]=(0,i.useState)({}),N=(0,i.useCallback)(()=>{const e={};return c.firstName.trim()||(e.firstName="First Name is required"),c.phone.trim()?c.phone.replace(/\D/g,"").length>=7||(e.phone="Phone must contain at least 7 digits"):e.phone="Phone is required",c.email.trim()?function(e){return h.test(e)}(c.email)||(e.email="Please enter a valid email"):e.email="Email is required",c.companyName.trim()||(e.companyName="Company Name is required"),w(e),0===Object.keys(e).length},[c]),k=(0,i.useCallback)(async e=>{if(e.preventDefault(),N()){u(!0);try{const e={brand:"ratehawk",cooperation_type:"api",kind:"b2b",white_label_slug:"ratehawk",email:c.email,message:c.message,company_name:c.companyName,name:c.firstName,phone:c.phone};if(!(await fetch("https://www.ratehawk.com/partner/user_area/v1/anonymous/contact_us/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to submit form");p(!0)}catch(e){console.error("Form submission error:",e)}finally{u(!1)}}},[c,N]),C=(0,i.useCallback)(e=>a=>{d(t=>({...t,[e]:a.target.value})),f[e]&&w(a=>({...a,[e]:void 0}))},[f]),B=(0,i.useCallback)(()=>{d({firstName:"",phone:"",email:"",companyName:"",message:""}),w({}),p(!1),a()},[a]);return e?(0,o.jsx)("div",{className:(0,l.L)("ContactModal-module__overlay--ti1yT",s),onClick:B,children:(0,o.jsxs)("div",{className:"ContactModal-module__modal--Xzwl2",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("button",{className:(0,l.L)("ContactModal-module__closeButton--qvADd",s),onClick:B,type:"button",children:(0,o.jsx)(_,{})}),x?(0,o.jsxs)("div",{className:"ContactModal-module__successMessage--Nyhi4",children:[(0,o.jsx)("h2",{className:"ContactModal-module__successTitle--dVn02",children:"Successfully accepted"}),(0,o.jsx)("p",{className:"ContactModal-module__successText--KJznx",children:"Your application has flown to our caring specialists! We will contact you soon"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"ContactModal-module__title--XrI8J",children:(0,o.jsx)("span",{className:"ContactModal-module__titleText--HH4uj",children:"Cooperation"})}),(0,o.jsx)("p",{className:"ContactModal-module__subtitle--dS9UA",children:"Drop us a line and we will get back to you as soon as possible!"}),(0,o.jsxs)("form",{className:"ContactModal-module__form--XuQzj",onSubmit:k,children:[(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.firstName?v:""}`,children:(0,o.jsx)("input",{type:"text",className:b,value:c.firstName,onChange:C("firstName"),placeholder:"First Name *"})}),f.firstName&&(0,o.jsx)("span",{className:j,children:f.firstName})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.phone?v:""}`,children:(0,o.jsx)("input",{type:"tel",className:b,value:c.phone,onChange:C("phone"),placeholder:"Phone *"})}),f.phone&&(0,o.jsx)("span",{className:j,children:f.phone})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.email?v:""}`,children:(0,o.jsx)("input",{type:"email",className:b,value:c.email,onChange:C("email"),placeholder:"Email Address *"})}),f.email&&(0,o.jsx)("span",{className:j,children:f.email})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.companyName?v:""}`,children:(0,o.jsx)("input",{type:"text",className:b,value:c.companyName,onChange:C("companyName"),placeholder:"Company Name *"})}),f.companyName&&(0,o.jsx)("span",{className:j,children:f.companyName})]}),(0,o.jsx)("div",{className:g,children:(0,o.jsx)("label",{className:"ContactModal-module__textareaWrapper--rSQEQ",children:(0,o.jsx)("textarea",{className:"ContactModal-module__textarea--i19oy",value:c.message,onChange:C("message"),placeholder:"Message",rows:4})})}),(0,o.jsx)(n.A,{type:"submit",theme:"primary",variant:"white",disabled:m,className:"ContactModal-module__submitButton--qbQOa",children:m?"Sending...":"Send"})]})]})]})}):null},N="Footer-module__footerLink--ipb6W",k="Footer-module__footerLegalText--xlXoo",C="Footer-module__footerParagraphSection--rin95",B=[{title:"For marketing and PR",text:"We regularly run promotions, campaigns, and partner events to engage and incentivize our clients with special offers. If you interested in such partnership please contact us at {{link}}.",link:"pr@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__marketingBlock--DnIGu"},{title:"For affiliates partnerships",text:"Integrate our solution to make it easy and profitable to book hotels through your website or online service. Integrate quickly and reliably with our system. Still have questions? Contact us at {{link}}.",link:"affiliate@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__affiliatesBlock--jVQ0L"},{title:"For suppliers",text:"As official partners of the world's largest OTA, wholesalers, consolidators, and DMCs, we invite you to enhance your sales and grow your business together. Contact us at {{link}}.",link:"tpp@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__suppliersBlock--yrn9l"},{title:"For hotels",text:"Become our partner to increase your direct sales and the popularity of your accommodation options. \u2028For partnership inquiries, please contact us at {{link}}.",link:"hotels@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__hotelsBlock--uGUyj"},{title:"For technology providers",text:"If you are a mid-office or platform interested in integrating with RateHawk to develop your business, please contact us at {{link}}.",link:"api@ratehawk.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__providersBlock--Zmk8W"}],M=({className:e="",fluidMode:a})=>{const[t,s]=(0,i.useState)(!1),c=(0,r.u)(a),m=(0,i.useCallback)(()=>{s(!0)},[]),u=(0,i.useCallback)(()=>{s(!1)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("footer",{className:(0,l.L)("Footer-module__root--T9ly6",e,c),children:[(0,o.jsxs)("div",{className:"Footer-module__header--hy1ME",children:[(0,o.jsx)("p",{className:"Footer-module__title--OX7d9",children:"Partnership"}),(0,o.jsx)("p",{className:"Footer-module__subTitle--EmP0b",children:"Cooperate and grow together with RateHawk"})]}),(0,o.jsx)("ul",{className:"Footer-module__advantages--z7ASK",children:B.map(e=>(0,o.jsxs)("li",{className:(0,l.L)("Footer-module__advantageItem--EcCx_",e.cssClass),children:[(0,o.jsxs)("div",{className:"Footer-module__advantageInfo--Ilud0",children:[(0,o.jsx)("h6",{className:"Footer-module__advantageTitle--spnaR",children:(0,o.jsx)("span",{className:"Footer-module__advantageTitleText--cMrU_",children:e.title})}),(0,o.jsx)("p",{className:"Footer-module__advantageText--BHbmo",dangerouslySetInnerHTML:{__html:e.text.replace("{{link}}",`<a class="Footer-module__advantageLink--bcoK8" href="mailto:${e.link}">${e.link}</a>`)}})]}),(0,o.jsx)(n.A,{theme:"secondary",variant:"white",...e.button.url?{url:e.button.url}:{onClick:m},children:e.button.text})]},e.title))}),(0,o.jsxs)("div",{className:"Footer-module__footerBottom--u_o7y",children:[(0,o.jsxs)("div",{className:"Footer-module__footerLeft--nnkZo",children:[(0,o.jsxs)("div",{className:"Footer-module__social--H1Yw4",children:[(0,o.jsx)("a",{href:"https://www.facebook.com/ratehawk",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(d,{})}),(0,o.jsx)("a",{href:"https://www.linkedin.com/company/ratehawk-com/",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(x,{})})]}),(0,o.jsxs)("ul",{className:"Footer-module__footerLinks--R9Hnr",children:[(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/lp/en-us/career",target:"_blank",rel:"noopener noreferrer",className:N,children:"Careers"})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://blog.ratehawk.com/",target:"_blank",rel:"noopener noreferrer",className:N,children:"Blog"})})]})]}),(0,o.jsxs)("div",{className:"Footer-module__footerLegal--jAGGe",children:[(0,o.jsxs)("div",{className:C,children:[(0,o.jsx)("p",{className:k,children:"Leaside Services Limited, reg.no HE342401, Business Address: 17 Karaiskaki Street, Office 22, Agaia Triada, Limassol, Cyprus, 3032 Emerging Travel Inc., reg.no 4869611, Business Address: 1000 N West Street, Suite 1200, Wilmington, DE 19801 USA EMERGING TRAVEL UK LIMITED, Company number 12185384, Business Address: 19 Eastbourne Terrace, Office 3.01, Paddington, London, W2 6LG, UK"}),(0,o.jsx)("p",{className:k,children:"Emerging Travel Germany ETG GmbH, HRB 213546, Business Address: Friedrichstraße 171, 10117 Berlin, Germany"}),(0,o.jsx)("p",{className:k,children:"Emerging Travel Kazakhstan LLP, BIN 191240026456, Business address: Office SP2-18, 280 Baizakova Street, Bostandykskiy district, 050040, Almaty, Republic of Kazakhstan"}),(0,o.jsx)("p",{className:k,children:"Smart Middle East Travel Agency L.L.C, Reg.no: 1803677, Business address: Al Rigga - Office No. 202-201-221, Insurance Building, Dubai, UAE"}),(0,o.jsx)("p",{className:k,children:"Emerging Travel Asia PTE. LTD, Reg.no: 201927854K, TA license: TA03682, Business address: 300 Tampines Avenue 5 #09-02, Tampines Junction Singapore 529653"})]}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:k,children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/legal/site/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Personal data processing and storage policy"})})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:k,children:"Digital Services Act"})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:k,children:"Ratehawk is a registered service mark in the European Union"})})]})]})]}),(0,o.jsx)(w,{isOpen:t,onClose:u,fluidMode:a})]})}},649:(e,t,s)=>{var o,n;e.exports=(o={createElement:()=>a.createElement,useCallback:()=>a.useCallback,useState:()=>a.useState},n={},s.d(n,o),n)},992:(e,a,t)=>{t.d(a,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},s={};function o(e){var a=s[e];if(void 0!==a)return a.exports;var n=s[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.d=(e,a)=>{for(var t in a)o.o(a,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);var n={};o.d(n,{A:()=>r.A});var r=o(374);const l=n.A;export{l as default};
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as a from"react";var t={39:(e,a,t)=>{t.d(a,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},130:(e,a,t)=>{t.d(a,{N:()=>o,u:()=>n}),t(178);var s=t(992);const o=({children:e,fluidMode:a=!1})=>{fluidModeState.state=a;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${a?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},n=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(a,t,s)=>{var o,n;a.exports=(o={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},n={},s.d(n,o),n)},268:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(178),o=t(130),n=t(39);const r={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},l=({className:e,children:a,dimension:t="s",theme:l="primary",onClick:i,disabled:c=!1,type:d="button",variant:m="purple",url:u,isLoading:x,enableMediaDimension:h=!0,fluidMode:p,...f})=>{const _=r[t]||"",g=r[l]||"",y=r[m],v=(0,o.u)(p),b=h?r.withMediaDimension:"",j=u?"a":"button",w=u?{target:"_blank",href:u}:{type:d},N=x?r.isLoading:"";return(0,s.jsxs)(j,{...w,...f,onClick:i,className:(0,n.L)(r.root,e,v,_,g,N,y,b),disabled:c,children:[x?(0,s.jsx)("span",{className:r.spinner}):null,(0,s.jsx)("span",{className:(0,n.L)(r.text,x?r.hidden:null),children:a})]})}},374:(e,a,t)=>{t.d(a,{A:()=>M});var s,o=t(178),n=t(268),r=t(130),l=t(39),i=t(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),s||(s=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M15.207 29.967c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14Zm0 0v-16a4 4 0 0 1 4-4h1m-10 8h10"})));var m;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},u.apply(null,arguments)}const x=e=>i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),m||(m=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M9.54 12.967v10m12 0v-5a4 4 0 1 0-8 0v5-10m-5-3h2m-7-8h24a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2h-24a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z"}))),h=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;var p;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},f.apply(null,arguments)}const _=e=>i.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,stroke:"currentColor",strokeWidth:1.5},e),p||(p=i.createElement("path",{d:"m4 4 16 16m0-16L4 20"}))),g="ContactModal-module__field--c99HI",y="ContactModal-module__inputWrapper--e2l3N",v="ContactModal-module__inputWrapperError--s_bqB",b="ContactModal-module__input--wuaB7",j="ContactModal-module__error--jso6D",w=({isOpen:e,onClose:a,fluidMode:t})=>{const s=(0,r.u)(t),[c,d]=(0,i.useState)({firstName:"",phone:"",email:"",companyName:"",message:""}),[m,u]=(0,i.useState)(!1),[x,p]=(0,i.useState)(!1),[f,w]=(0,i.useState)({}),N=(0,i.useCallback)(()=>{const e={};return c.firstName.trim()||(e.firstName="First Name is required"),c.phone.trim()?c.phone.replace(/\D/g,"").length>=7||(e.phone="Phone must contain at least 7 digits"):e.phone="Phone is required",c.email.trim()?function(e){return h.test(e)}(c.email)||(e.email="Please enter a valid email"):e.email="Email is required",c.companyName.trim()||(e.companyName="Company Name is required"),w(e),0===Object.keys(e).length},[c]),k=(0,i.useCallback)(async e=>{if(e.preventDefault(),N()){u(!0);try{const e={brand:"ratehawk",cooperation_type:"api",kind:"b2b",white_label_slug:"ratehawk",email:c.email,message:c.message,company_name:c.companyName,name:c.firstName,phone:c.phone};if(!(await fetch("https://www.ratehawk.com/partner/user_area/v1/anonymous/contact_us/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to submit form");p(!0)}catch(e){console.error("Form submission error:",e)}finally{u(!1)}}},[c,N]),C=(0,i.useCallback)(e=>a=>{d(t=>({...t,[e]:a.target.value})),f[e]&&w(a=>({...a,[e]:void 0}))},[f]),B=(0,i.useCallback)(()=>{d({firstName:"",phone:"",email:"",companyName:"",message:""}),w({}),p(!1),a()},[a]);return e?(0,o.jsx)("div",{className:(0,l.L)("ContactModal-module__overlay--ti1yT",s),onClick:B,children:(0,o.jsxs)("div",{className:"ContactModal-module__modal--Xzwl2",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("button",{className:(0,l.L)("ContactModal-module__closeButton--qvADd",s),onClick:B,type:"button",children:(0,o.jsx)(_,{})}),x?(0,o.jsxs)("div",{className:"ContactModal-module__successMessage--Nyhi4",children:[(0,o.jsx)("h2",{className:"ContactModal-module__successTitle--dVn02",children:"Successfully accepted"}),(0,o.jsx)("p",{className:"ContactModal-module__successText--KJznx",children:"Your application has flown to our caring specialists! We will contact you soon"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"ContactModal-module__title--XrI8J",children:(0,o.jsx)("span",{className:"ContactModal-module__titleText--HH4uj",children:"Cooperation"})}),(0,o.jsx)("p",{className:"ContactModal-module__subtitle--dS9UA",children:"Drop us a line and we will get back to you as soon as possible!"}),(0,o.jsxs)("form",{className:"ContactModal-module__form--XuQzj",onSubmit:k,children:[(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.firstName?v:""}`,children:(0,o.jsx)("input",{type:"text",className:b,value:c.firstName,onChange:C("firstName"),placeholder:"First Name *"})}),f.firstName&&(0,o.jsx)("span",{className:j,children:f.firstName})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.phone?v:""}`,children:(0,o.jsx)("input",{type:"tel",className:b,value:c.phone,onChange:C("phone"),placeholder:"Phone *"})}),f.phone&&(0,o.jsx)("span",{className:j,children:f.phone})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.email?v:""}`,children:(0,o.jsx)("input",{type:"email",className:b,value:c.email,onChange:C("email"),placeholder:"Email Address *"})}),f.email&&(0,o.jsx)("span",{className:j,children:f.email})]}),(0,o.jsxs)("div",{className:g,children:[(0,o.jsx)("label",{className:`${y} ${f.companyName?v:""}`,children:(0,o.jsx)("input",{type:"text",className:b,value:c.companyName,onChange:C("companyName"),placeholder:"Company Name *"})}),f.companyName&&(0,o.jsx)("span",{className:j,children:f.companyName})]}),(0,o.jsx)("div",{className:g,children:(0,o.jsx)("label",{className:"ContactModal-module__textareaWrapper--rSQEQ",children:(0,o.jsx)("textarea",{className:"ContactModal-module__textarea--i19oy",value:c.message,onChange:C("message"),placeholder:"Message",rows:4})})}),(0,o.jsx)(n.A,{type:"submit",theme:"primary",variant:"white",disabled:m,className:"ContactModal-module__submitButton--qbQOa",children:m?"Sending...":"Send"})]})]})]})}):null},N="Footer-module__footerLink--ipb6W",k="Footer-module__footerLegalText--xlXoo",C="Footer-module__footerParagraphSection--rin95",B=[{title:"For marketing and PR",text:"We regularly run promotions, campaigns, and partner events to engage and incentivize our clients with special offers. If you interested in such partnership please contact us at {{link}}.",link:"pr@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__marketingBlock--DnIGu"},{title:"For affiliates partnerships",text:"Integrate our solution to make it easy and profitable to book hotels through your website or online service. Integrate quickly and reliably with our system. Still have questions? Contact us at {{link}}.",link:"affiliate@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__affiliatesBlock--jVQ0L"},{title:"For suppliers",text:"As official partners of the world's largest OTA, wholesalers, consolidators, and DMCs, we invite you to enhance your sales and grow your business together. Contact us at {{link}}.",link:"tpp@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__suppliersBlock--yrn9l"},{title:"For hotels",text:"Become our partner to increase your direct sales and the popularity of your accommodation options. \u2028For partnership inquiries, please contact us at {{link}}.",link:"hotels@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__hotelsBlock--uGUyj"},{title:"For technology providers",text:"If you are a mid-office or platform interested in integrating with RateHawk to develop your business, please contact us at {{link}}.",link:"api@ratehawk.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__providersBlock--Zmk8W"}],M=({className:e="",fluidMode:a,...t})=>{const[s,c]=(0,i.useState)(!1),m=(0,r.u)(a),u=(0,i.useCallback)(()=>{c(!0)},[]),h=(0,i.useCallback)(()=>{c(!1)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("footer",{...t,className:(0,l.L)("Footer-module__root--T9ly6",e,m),children:[(0,o.jsxs)("div",{className:"Footer-module__header--hy1ME",children:[(0,o.jsx)("p",{className:"Footer-module__title--OX7d9",children:"Partnership"}),(0,o.jsx)("p",{className:"Footer-module__subTitle--EmP0b",children:"Cooperate and grow together with RateHawk"})]}),(0,o.jsx)("ul",{className:"Footer-module__advantages--z7ASK",children:B.map(e=>(0,o.jsxs)("li",{className:(0,l.L)("Footer-module__advantageItem--EcCx_",e.cssClass),children:[(0,o.jsxs)("div",{className:"Footer-module__advantageInfo--Ilud0",children:[(0,o.jsx)("h6",{className:"Footer-module__advantageTitle--spnaR",children:(0,o.jsx)("span",{className:"Footer-module__advantageTitleText--cMrU_",children:e.title})}),(0,o.jsx)("p",{className:"Footer-module__advantageText--BHbmo",dangerouslySetInnerHTML:{__html:e.text.replace("{{link}}",`<a class="Footer-module__advantageLink--bcoK8" href="mailto:${e.link}">${e.link}</a>`)}})]}),(0,o.jsx)(n.A,{theme:"secondary",variant:"white",...e.button.url?{url:e.button.url}:{onClick:u},children:e.button.text})]},e.title))}),(0,o.jsxs)("div",{className:"Footer-module__footerBottom--u_o7y",children:[(0,o.jsxs)("div",{className:"Footer-module__footerLeft--nnkZo",children:[(0,o.jsxs)("div",{className:"Footer-module__social--H1Yw4",children:[(0,o.jsx)("a",{href:"https://www.facebook.com/ratehawk",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(d,{})}),(0,o.jsx)("a",{href:"https://www.linkedin.com/company/ratehawk-com/",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)(x,{})})]}),(0,o.jsxs)("ul",{className:"Footer-module__footerLinks--R9Hnr",children:[(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/lp/en-us/career",target:"_blank",rel:"noopener noreferrer",className:N,children:"Careers"})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://blog.ratehawk.com/",target:"_blank",rel:"noopener noreferrer",className:N,children:"Blog"})})]})]}),(0,o.jsxs)("div",{className:"Footer-module__footerLegal--jAGGe",children:[(0,o.jsxs)("div",{className:C,children:[(0,o.jsx)("p",{className:k,children:"Leaside Services Limited, reg.no HE342401, Business Address: 17 Karaiskaki Street, Office 22, Agaia Triada, Limassol, Cyprus, 3032 Emerging Travel Inc., reg.no 4869611, Business Address: 1000 N West Street, Suite 1200, Wilmington, DE 19801 USA EMERGING TRAVEL UK LIMITED, Company number 12185384, Business Address: 19 Eastbourne Terrace, Office 3.01, Paddington, London, W2 6LG, UK"}),(0,o.jsx)("p",{className:k,children:"Emerging Travel Germany ETG GmbH, HRB 213546, Business Address: Friedrichstraße 171, 10117 Berlin, Germany"}),(0,o.jsx)("p",{className:k,children:"Emerging Travel Kazakhstan LLP, BIN 191240026456, Business address: Office SP2-18, 280 Baizakova Street, Bostandykskiy district, 050040, Almaty, Republic of Kazakhstan"}),(0,o.jsx)("p",{className:k,children:"Smart Middle East Travel Agency L.L.C, Reg.no: 1803677, Business address: Al Rigga - Office No. 202-201-221, Insurance Building, Dubai, UAE"}),(0,o.jsx)("p",{className:k,children:"Emerging Travel Asia PTE. LTD, Reg.no: 201927854K, TA license: TA03682, Business address: 300 Tampines Avenue 5 #09-02, Tampines Junction Singapore 529653"})]}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:k,children:(0,o.jsx)("a",{href:"https://www.ratehawk.com/legal/site/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Personal data processing and storage policy"})})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:k,children:"Digital Services Act"})}),(0,o.jsx)("div",{className:C,children:(0,o.jsx)("p",{className:k,children:"Ratehawk is a registered service mark in the European Union"})})]})]})]}),(0,o.jsx)(w,{isOpen:s,onClose:h,fluidMode:a})]})}},649:(e,t,s)=>{var o,n;e.exports=(o={createElement:()=>a.createElement,useCallback:()=>a.useCallback,useState:()=>a.useState},n={},s.d(n,o),n)},992:(e,a,t)=>{t.d(a,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},s={};function o(e){var a=s[e];if(void 0!==a)return a.exports;var n=s[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.d=(e,a)=>{for(var t in a)o.o(a,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);var n={};o.d(n,{A:()=>r.A});var r=o(374);const l=n.A;export{l as default};
|
|
@@ -4,7 +4,7 @@ type MenuItem = {
|
|
|
4
4
|
url?: string;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
};
|
|
7
|
-
export interface HeaderProps {
|
|
7
|
+
export interface HeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
8
8
|
theme?: 'light' | 'dark' | 'yellow';
|
|
9
9
|
className?: string;
|
|
10
10
|
menu?: MenuItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/rh-components/Header/Header.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,WAAW;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/rh-components/Header/Header.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC;IAC1F,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAWD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8MjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";import*as n from"react";var t={39:(e,n,t)=>{t.d(n,{L:()=>r});const r=(...e)=>e.filter(Boolean).join(" ")},94:(e,n,t)=>{t.d(n,{A:()=>L});var r,a=t(178),l=t(268),s=t(130),o=t(39),i=t(649);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(null,arguments)}const d=e=>i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),r||(r=i.createElement("path",{fill:"#8C1EFF",d:"M.32 9.41h28v2h-28zM.32 17.41h28v2h-28z"})));var c,h;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(null,arguments)}const f=e=>i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),c||(c=i.createElement("path",{fill:"#8C1EFF",d:"m4.807 3.394 19.799 19.799-1.414 1.414-19.8-19.8z"})),h||(h=i.createElement("path",{fill:"#8C1EFF",d:"m3.393 23.193 19.799-19.8 1.414 1.415L4.807 24.607z"})));var _,g,v;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},p.apply(null,arguments)}const b={root:"Header-module__root--MyGKu",header:"Header-module__header--Ie2CT",hidden:"Header-module__hidden--gobBG",compactHeader:"Header-module__compactHeader--LsvY9",visible:"Header-module__visible--ococB",light:"Header-module__light--e8MFJ",dark:"Header-module__dark--mJEmI",yellow:"Header-module__yellow--W7Vw1",leftContainer:"Header-module__leftContainer--T8NI2",rightContainer:"Header-module__rightContainer--ZvsQ0",navList:"Header-module__navList--ikTYl",menuLink:"Header-module__menuLink--yDAEH",menuLinkText:"Header-module__menuLinkText--MV8k7",subMenuOpener:"Header-module__subMenuOpener--7Gf68",subMenuOpenerActive:"Header-module__subMenuOpenerActive--hM0jl",subNavList:"Header-module__subNavList--opWlU",subNavListOpened:"Header-module__subNavListOpened--mebR2",burgerMenuContainer:"Header-module__burgerMenuContainer--GmhQc",burgerMenuButton:"Header-module__burgerMenuButton--sm0Lo",burgerMenu:"Header-module__burgerMenu--SUEsD",logo:"Header-module__logo--V8O4g",burgerButtons:"Header-module__burgerButtons--gDROa",separator:"Header-module__separator--lw7LB"},w="burger-menu",x="sub-menu",j=(0,a.jsx)("a",{href:"https://www.ratehawk.com/",target:"_blank",rel:"noreferrer",children:(0,a.jsx)(e=>i.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",height:61,fill:"none",viewBox:"0 0 202 61"},e),_||(_=i.createElement("path",{fill:"var(--general-color)",d:"m162.762 38.47-2.883-18.28h-7.867l-3.517 22.29h4.857l.026-.178.187-1.397.325-2.435h4.113l.517 3.877.018.134h4.857l-.111-.708zm-8.306-4.16 1.489-10.848 1.49 10.848zM179.455 38.5l-1.997-18.31h-6.079l-1.876 18.34-1.431-18.34h-4.618l2.414 22.29h6.854l1.757-18.336 1.848 18.337h6.764l2.413-22.29h-4.62zM196.7 30.654l4.41-10.463h-5.274l-3.693 10.611V20.191h-5.007v22.29h5.007V31.842l3.635 10.639h5.542zM81.256 30.253q1.028-1.324 1.028-3.402v-.861q0-1.9-.848-3.18-.85-1.279-2.338-1.947-1.491-.67-3.398-.67h-7.45v22.29h5.006V31.517l4.022 10.966h5.571L78.53 32.17q1.701-.598 2.727-1.918m-3.978-2.99q-.001 1.488-.611 2.141-.612.655-1.654.655h-1.757v-3.654a2.055 2.055 0 0 0-2.058-2.052h3.8149999999999995q1.042 0 1.654.549.61.55.61 1.946zM94.679 20.19h-7.867L83.93 38.47l-.634 4.01h4.858l.535-4.01h4.113l.535 4.01h4.857l-.633-4.01zm-5.423 14.12 1.49-10.848 1.49 10.848zM97.752 24.502h3.633V42.48h5.067V24.5h3.635v-4.31H97.752zM111.871 24.502V42.48h11.144v-4.309h-6.138v-4.905h6.138V28.96h-6.138v-4.457h6.138V20.19h-11.144zM141.791 28.87h-4.469v-8.68h-5.064v22.288h5.064v-7.216a2.055 2.055 0 0 0-2.057-2.053h6.526v9.272h5.064V20.19h-5.064z"})),g||(g=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M56.213 18.304 38.056 7.849 25.143.41l3.572 4.999c.833 1.165-.43 2.679-1.732 2.07L15.695 2.197l22.36 17.418s8.481 6.433 11.26 8.735c.493.408.829.974.95 1.604l.868 4.557c.9 4.284-.762 5.893-2.368 6.857l-1.981 1.184.31-2.425c.124-.932-.076-1.3-.636-1.637l-4.84-2.697a2.3 2.3 0 0 0-.901-.297C37.487 35.054.32 29.801.32 29.801l17.228 5.767c1.359.455 1.23 2.412-.176 2.686l-5.264 1.033 24.024 13.89a4.2 4.2 0 0 0 4.186.004c4.062-2.331 12.88-7.393 15.88-9.123a4.18 4.18 0 0 0 2.093-3.603c.018-5.504.018-18.533.018-18.533a4.17 4.17 0 0 0-2.096-3.618"})),v||(v=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M44.752 32.185a1.54 1.54 0 0 0 2.022.8c.553-.238.886-.765.917-1.326l-6.62-3.918s-.065.377.144.576c.22.21 2.583 2.181 3.464 2.916-.076.308-.06.64.073.952"}))),{className:b.logo})}),L=({theme:e="dark",className:n="",menu:t,subMenu:r,extraRightContent:u,fluidMode:c,zIndex:h=1,onLoginClick:m,onRegisterClick:_})=>{const g=(0,s.u)(c),v=b[e],p=r&&r.length>0,[L,k]=(0,i.useState)(!1),[y,C]=(0,i.useState)(!1),[N,B]=(0,i.useState)(!1),[H,E]=(0,i.useState)(!1),O=(0,i.useRef)(null),z=(0,i.useRef)(null),A=t?.map(M)||[];let F=A;if(p){const e=r?.map(M)||[];F=[...A,(0,a.jsxs)("li",{children:[(0,a.jsx)("button",{type:"button",onClick:()=>B(!N),className:(0,o.L)(b.menuLink,g,b.subMenuOpener,x,N?b.subMenuOpenerActive:""),children:(0,a.jsx)("span",{className:b.menuLinkText,children:"More"})}),(0,a.jsx)("ul",{className:(0,o.L)(b.subNavList,N?b.subNavListOpened:"",x),children:e})]},"submenu")],A.push(...e)}const R=(0,i.useCallback)((()=>{let e=!1;return(...n)=>{e||((()=>{if(!O.current||!z.current)return;const e=z.current.getBoundingClientRect().right,n=O.current.getBoundingClientRect().left-e<20;k(n),E(!0),n?B(!1):C(!1)})(...n),e=!0,setTimeout(()=>{e=!1},100))}})(),[]),S=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{theme:"secondary",variant:"dark"===e?"white":"black",url:"https://www.ratehawk.com/accounts/login/?lang=en&ref=rh_sign_in",onClick:m,children:"Sign in"}),(0,a.jsx)(l.A,{url:"https://www.ratehawk.com/registration/?lang=en&ref=rh_register",onClick:_,children:"Register"})]}),T=(0,i.useCallback)(e=>{if(!(e.target instanceof HTMLElement))return;const n=e.target.closest(`.${w}`),t=e.target.closest(`.${x}`);n||C(!1),t||B(!1)},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",R),window.addEventListener("click",T),R(),()=>{window.removeEventListener("resize",R),window.removeEventListener("click",T)}),[R,T]),(0,a.jsxs)("div",{className:(0,o.L)(b.root,n,v,g),style:{zIndex:h},children:[(0,a.jsxs)("div",{className:(0,o.L)(b.header,b.wideHeader,L?b.hidden:""),children:[(0,a.jsxs)("div",{className:b.leftContainer,ref:z,children:[j,(0,a.jsx)("nav",{className:b.navMenu,children:(0,a.jsx)("ul",{className:b.navList,children:F})})]}),(0,a.jsxs)("div",{className:(0,o.L)(b.rightContainer,!H&&b.hidden),ref:O,children:[u,S]})]}),(0,a.jsxs)("div",{className:(0,o.L)(b.header,b.compactHeader,L?b.visible:""),children:[(0,a.jsx)("div",{className:b.leftContainer,children:j}),(0,a.jsxs)("div",{className:b.rightContainer,children:[u,(0,a.jsx)("div",{className:b.burgerMenuContainer,children:(0,a.jsx)("button",{className:b.burgerMenuButton,onClick:()=>C(!y),type:"button",children:y?(0,a.jsx)(f,{}):(0,a.jsx)(d,{})})})]}),y&&(0,a.jsxs)("div",{className:(0,o.L)(b.burgerMenu,w),children:[A.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("nav",{className:b.navMenu,children:(0,a.jsx)("ul",{className:b.navList,children:A})}),(0,a.jsx)("div",{className:b.separator})]}):null,(0,a.jsx)("div",{className:b.burgerButtons,children:S})]})]})]})};function M(e){const n=e.url?"a":"button",t=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,a.jsx)("li",{children:(0,a.jsx)(n,{className:b.menuLink,onClick:e.onClick,...t,children:(0,a.jsx)("span",{className:b.menuLinkText,children:e.title})})},e.title)}},130:(e,n,t)=>{t.d(n,{N:()=>a,u:()=>l}),t(178);var r=t(992);const a=({children:e,fluidMode:n=!1})=>{fluidModeState.state=n;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${n?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},l=e=>("boolean"==typeof e?e:r.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(n,t,r)=>{var a,l;n.exports=(a={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},l={},r.d(l,a),l)},268:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(178),a=t(130),l=t(39);const s={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},o=({className:e,children:n,dimension:t="s",theme:o="primary",onClick:i,disabled:u=!1,type:d="button",variant:c="purple",url:h,isLoading:m,enableMediaDimension:f=!0,fluidMode:_})=>{const g=s[t]||"",v=s[o]||"",p=s[c],b=(0,a.u)(_),w=f?s.withMediaDimension:"",x=h?"a":"button",j=h?{target:"_blank",href:h}:{type:d},L=m?s.isLoading:"";return(0,r.jsxs)(x,{...j,onClick:i,className:(0,l.L)(s.root,e,b,g,v,L,p,w),disabled:u,children:[m?(0,r.jsx)("span",{className:s.spinner}):null,(0,r.jsx)("span",{className:(0,l.L)(s.text,m?s.hidden:null),children:n})]})}},649:(e,t,r)=>{var a,l;e.exports=(a={createElement:()=>n.createElement,useCallback:()=>n.useCallback,useEffect:()=>n.useEffect,useRef:()=>n.useRef,useState:()=>n.useState},l={},r.d(l,a),l)},992:(e,n,t)=>{t.d(n,{b:()=>r}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const r=globalThis.__fluidModeState}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,a),l.exports}a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var l={};a.d(l,{A:()=>s.A});var s=a(94);const o=l.A;export{o as default};
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as n from"react";var t={39:(e,n,t)=>{t.d(n,{L:()=>r});const r=(...e)=>e.filter(Boolean).join(" ")},94:(e,n,t)=>{t.d(n,{A:()=>L});var r,a=t(178),l=t(268),s=t(130),o=t(39),i=t(649);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(null,arguments)}const d=e=>i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),r||(r=i.createElement("path",{fill:"#8C1EFF",d:"M.32 9.41h28v2h-28zM.32 17.41h28v2h-28z"})));var c,h;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(null,arguments)}const f=e=>i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),c||(c=i.createElement("path",{fill:"#8C1EFF",d:"m4.807 3.394 19.799 19.799-1.414 1.414-19.8-19.8z"})),h||(h=i.createElement("path",{fill:"#8C1EFF",d:"m3.393 23.193 19.799-19.8 1.414 1.415L4.807 24.607z"})));var _,g,v;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},p.apply(null,arguments)}const b={root:"Header-module__root--MyGKu",header:"Header-module__header--Ie2CT",hidden:"Header-module__hidden--gobBG",compactHeader:"Header-module__compactHeader--LsvY9",visible:"Header-module__visible--ococB",light:"Header-module__light--e8MFJ",dark:"Header-module__dark--mJEmI",yellow:"Header-module__yellow--W7Vw1",leftContainer:"Header-module__leftContainer--T8NI2",rightContainer:"Header-module__rightContainer--ZvsQ0",navList:"Header-module__navList--ikTYl",menuLink:"Header-module__menuLink--yDAEH",menuLinkText:"Header-module__menuLinkText--MV8k7",subMenuOpener:"Header-module__subMenuOpener--7Gf68",subMenuOpenerActive:"Header-module__subMenuOpenerActive--hM0jl",subNavList:"Header-module__subNavList--opWlU",subNavListOpened:"Header-module__subNavListOpened--mebR2",burgerMenuContainer:"Header-module__burgerMenuContainer--GmhQc",burgerMenuButton:"Header-module__burgerMenuButton--sm0Lo",burgerMenu:"Header-module__burgerMenu--SUEsD",logo:"Header-module__logo--V8O4g",burgerButtons:"Header-module__burgerButtons--gDROa",separator:"Header-module__separator--lw7LB"},w="burger-menu",x="sub-menu",j=(0,a.jsx)("a",{href:"https://www.ratehawk.com/",target:"_blank",rel:"noreferrer",children:(0,a.jsx)(e=>i.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",height:61,fill:"none",viewBox:"0 0 202 61"},e),_||(_=i.createElement("path",{fill:"var(--general-color)",d:"m162.762 38.47-2.883-18.28h-7.867l-3.517 22.29h4.857l.026-.178.187-1.397.325-2.435h4.113l.517 3.877.018.134h4.857l-.111-.708zm-8.306-4.16 1.489-10.848 1.49 10.848zM179.455 38.5l-1.997-18.31h-6.079l-1.876 18.34-1.431-18.34h-4.618l2.414 22.29h6.854l1.757-18.336 1.848 18.337h6.764l2.413-22.29h-4.62zM196.7 30.654l4.41-10.463h-5.274l-3.693 10.611V20.191h-5.007v22.29h5.007V31.842l3.635 10.639h5.542zM81.256 30.253q1.028-1.324 1.028-3.402v-.861q0-1.9-.848-3.18-.85-1.279-2.338-1.947-1.491-.67-3.398-.67h-7.45v22.29h5.006V31.517l4.022 10.966h5.571L78.53 32.17q1.701-.598 2.727-1.918m-3.978-2.99q-.001 1.488-.611 2.141-.612.655-1.654.655h-1.757v-3.654a2.055 2.055 0 0 0-2.058-2.052h3.8149999999999995q1.042 0 1.654.549.61.55.61 1.946zM94.679 20.19h-7.867L83.93 38.47l-.634 4.01h4.858l.535-4.01h4.113l.535 4.01h4.857l-.633-4.01zm-5.423 14.12 1.49-10.848 1.49 10.848zM97.752 24.502h3.633V42.48h5.067V24.5h3.635v-4.31H97.752zM111.871 24.502V42.48h11.144v-4.309h-6.138v-4.905h6.138V28.96h-6.138v-4.457h6.138V20.19h-11.144zM141.791 28.87h-4.469v-8.68h-5.064v22.288h5.064v-7.216a2.055 2.055 0 0 0-2.057-2.053h6.526v9.272h5.064V20.19h-5.064z"})),g||(g=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M56.213 18.304 38.056 7.849 25.143.41l3.572 4.999c.833 1.165-.43 2.679-1.732 2.07L15.695 2.197l22.36 17.418s8.481 6.433 11.26 8.735c.493.408.829.974.95 1.604l.868 4.557c.9 4.284-.762 5.893-2.368 6.857l-1.981 1.184.31-2.425c.124-.932-.076-1.3-.636-1.637l-4.84-2.697a2.3 2.3 0 0 0-.901-.297C37.487 35.054.32 29.801.32 29.801l17.228 5.767c1.359.455 1.23 2.412-.176 2.686l-5.264 1.033 24.024 13.89a4.2 4.2 0 0 0 4.186.004c4.062-2.331 12.88-7.393 15.88-9.123a4.18 4.18 0 0 0 2.093-3.603c.018-5.504.018-18.533.018-18.533a4.17 4.17 0 0 0-2.096-3.618"})),v||(v=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M44.752 32.185a1.54 1.54 0 0 0 2.022.8c.553-.238.886-.765.917-1.326l-6.62-3.918s-.065.377.144.576c.22.21 2.583 2.181 3.464 2.916-.076.308-.06.64.073.952"}))),{className:b.logo})}),L=({theme:e="dark",className:n="",menu:t,subMenu:r,extraRightContent:u,fluidMode:c,zIndex:h=1,onLoginClick:m,onRegisterClick:_,style:g,...v})=>{const p=(0,s.u)(c),L=b[e],y=r&&r.length>0,[k,C]=(0,i.useState)(!1),[N,B]=(0,i.useState)(!1),[H,E]=(0,i.useState)(!1),[O,z]=(0,i.useState)(!1),A=(0,i.useRef)(null),F=(0,i.useRef)(null),R=t?.map(M)||[];let S=R;if(y){const e=r?.map(M)||[];S=[...R,(0,a.jsxs)("li",{children:[(0,a.jsx)("button",{type:"button",onClick:()=>E(!H),className:(0,o.L)(b.menuLink,p,b.subMenuOpener,x,H?b.subMenuOpenerActive:""),children:(0,a.jsx)("span",{className:b.menuLinkText,children:"More"})}),(0,a.jsx)("ul",{className:(0,o.L)(b.subNavList,H?b.subNavListOpened:"",x),children:e})]},"submenu")],R.push(...e)}const T=(0,i.useCallback)((()=>{let e=!1;return(...n)=>{e||((()=>{if(!A.current||!F.current)return;const e=F.current.getBoundingClientRect().right,n=A.current.getBoundingClientRect().left-e<20;C(n),z(!0),n?E(!1):B(!1)})(...n),e=!0,setTimeout(()=>{e=!1},100))}})(),[]),V=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{theme:"secondary",variant:"dark"===e?"white":"black",url:"https://www.ratehawk.com/accounts/login/?lang=en&ref=rh_sign_in",onClick:m,children:"Sign in"}),(0,a.jsx)(l.A,{url:"https://www.ratehawk.com/registration/?lang=en&ref=rh_register",onClick:_,children:"Register"})]}),G=(0,i.useCallback)(e=>{if(!(e.target instanceof HTMLElement))return;const n=e.target.closest(`.${w}`),t=e.target.closest(`.${x}`);n||B(!1),t||E(!1)},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",T),window.addEventListener("click",G),T(),()=>{window.removeEventListener("resize",T),window.removeEventListener("click",G)}),[T,G]),(0,a.jsxs)("div",{...v,className:(0,o.L)(b.root,n,L,p),style:{...g,zIndex:h},children:[(0,a.jsxs)("div",{className:(0,o.L)(b.header,b.wideHeader,k?b.hidden:""),children:[(0,a.jsxs)("div",{className:b.leftContainer,ref:F,children:[j,(0,a.jsx)("nav",{className:b.navMenu,children:(0,a.jsx)("ul",{className:b.navList,children:S})})]}),(0,a.jsxs)("div",{className:(0,o.L)(b.rightContainer,!O&&b.hidden),ref:A,children:[u,V]})]}),(0,a.jsxs)("div",{className:(0,o.L)(b.header,b.compactHeader,k?b.visible:""),children:[(0,a.jsx)("div",{className:b.leftContainer,children:j}),(0,a.jsxs)("div",{className:b.rightContainer,children:[u,(0,a.jsx)("div",{className:b.burgerMenuContainer,children:(0,a.jsx)("button",{className:b.burgerMenuButton,onClick:()=>B(!N),type:"button",children:N?(0,a.jsx)(f,{}):(0,a.jsx)(d,{})})})]}),N&&(0,a.jsxs)("div",{className:(0,o.L)(b.burgerMenu,w),children:[R.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("nav",{className:b.navMenu,children:(0,a.jsx)("ul",{className:b.navList,children:R})}),(0,a.jsx)("div",{className:b.separator})]}):null,(0,a.jsx)("div",{className:b.burgerButtons,children:V})]})]})]})};function M(e){const n=e.url?"a":"button",t=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,a.jsx)("li",{children:(0,a.jsx)(n,{className:b.menuLink,onClick:e.onClick,...t,children:(0,a.jsx)("span",{className:b.menuLinkText,children:e.title})})},e.title)}},130:(e,n,t)=>{t.d(n,{N:()=>a,u:()=>l}),t(178);var r=t(992);const a=({children:e,fluidMode:n=!1})=>{fluidModeState.state=n;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${n?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},l=e=>("boolean"==typeof e?e:r.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(n,t,r)=>{var a,l;n.exports=(a={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},l={},r.d(l,a),l)},268:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(178),a=t(130),l=t(39);const s={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},o=({className:e,children:n,dimension:t="s",theme:o="primary",onClick:i,disabled:u=!1,type:d="button",variant:c="purple",url:h,isLoading:m,enableMediaDimension:f=!0,fluidMode:_,...g})=>{const v=s[t]||"",p=s[o]||"",b=s[c],w=(0,a.u)(_),x=f?s.withMediaDimension:"",j=h?"a":"button",L=h?{target:"_blank",href:h}:{type:d},M=m?s.isLoading:"";return(0,r.jsxs)(j,{...L,...g,onClick:i,className:(0,l.L)(s.root,e,w,v,p,M,b,x),disabled:u,children:[m?(0,r.jsx)("span",{className:s.spinner}):null,(0,r.jsx)("span",{className:(0,l.L)(s.text,m?s.hidden:null),children:n})]})}},649:(e,t,r)=>{var a,l;e.exports=(a={createElement:()=>n.createElement,useCallback:()=>n.useCallback,useEffect:()=>n.useEffect,useRef:()=>n.useRef,useState:()=>n.useState},l={},r.d(l,a),l)},992:(e,n,t)=>{t.d(n,{b:()=>r}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const r=globalThis.__fluidModeState}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,a),l.exports}a.d=(e,n)=>{for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var l={};a.d(l,{A:()=>s.A});var s=a(94);const o=l.A;export{o as default};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export interface HeroSectionProps {
|
|
2
|
+
export interface HeroSectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
3
|
yellowText?: string;
|
|
4
4
|
whiteText?: string;
|
|
5
5
|
showLogo?: boolean;
|
|
6
6
|
backgroundMobile: string;
|
|
7
|
-
backgroundMobile2x: string;
|
|
8
7
|
backgroundDesktop: string;
|
|
9
8
|
backgroundDesktop2x: string;
|
|
10
9
|
fluidMode?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeroSection.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HeroSection/HeroSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"HeroSection.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HeroSection/HeroSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA6C3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -15,13 +15,6 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
|
|
19
|
-
|
|
20
|
-
.HeroSection-module__hero--lpuv4 {
|
|
21
|
-
background-image: var(--background-mobile-2x);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
18
|
@media (min-width: 500px) {
|
|
26
19
|
|
|
27
20
|
.HeroSection-module__hero--lpuv4 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as o from"react";var t={39:(e,o,t)=>{t.d(o,{L:()=>n});const n=(...e)=>e.filter(Boolean).join(" ")},110:(e,o,t)=>{t.d(o,{A:()=>u});var n,a,l=t(178),r=t(130),s=t(39),i=t(649);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},d.apply(null,arguments)}const f=e=>i.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 98 91"},e),n||(n=i.createElement("path",{fill:"#FEDD00",d:"M94.277 30.26 63.65 12.58 41.87 0l6.025 8.453c1.406 1.972-.724 4.53-2.921 3.5l-19.04-8.93L63.65 32.48s14.304 10.88 18.993 14.772a4.67 4.67 0 0 1 1.601 2.713l1.465 7.708c1.516 7.243-1.286 9.964-3.995 11.595l-3.342 2.002.523-4.101c.21-1.576-.127-2.198-1.073-2.768l-8.163-4.56c-.468-.282-.98-.431-1.52-.503C62.692 58.587 0 49.704 0 49.704l29.06 9.752c2.29.77 2.073 4.08-.299 4.544l-8.878 1.746 40.523 23.489a7.07 7.07 0 0 0 7.06.008C74.318 85.3 89.192 76.741 94.25 73.815a7.07 7.07 0 0 0 3.53-6.094c.03-9.309.03-31.342.03-31.342a7.06 7.06 0 0 0-3.534-6.119"})),a||(a=i.createElement("path",{fill:"#FEDD00",d:"M74.944 53.737a2.594 2.594 0 0 0 3.41 1.354 2.59 2.59 0 0 0 1.547-2.244L68.735 46.22s-.11.639.243.975c.37.353 4.356 3.688 5.842 4.931a2.54 2.54 0 0 0 .124 1.61"}))),c="HeroSection-module__sloganText--_hwUn",u=({className:e,style:o,yellowText:t,whiteText:n,showLogo:a=!0,backgroundMobile:i,backgroundDesktop:d,backgroundDesktop2x:u,fluidMode:m,...p})=>{const _=(0,r.u)(m);return(0,l.jsx)("section",{...p,className:(0,s.L)("HeroSection-module__hero--lpuv4",e,_),style:{...o,"--background-mobile":`url("${i}")`,"--background-desktop":`url("${d}")`,"--background-desktop-2x":`url("${u}")`},children:(0,l.jsx)("div",{className:"HeroSection-module__heroContainer--brVZ4",children:(0,l.jsxs)("div",{className:"HeroSection-module__slogan--rRTe6",children:[t&&(0,l.jsx)("div",{className:(0,s.L)(c,"HeroSection-module__sloganYellow--lIwpd"),dangerouslySetInnerHTML:{__html:t}}),n&&(0,l.jsx)("div",{className:(0,s.L)(c,"HeroSection-module__sloganWhite--SWr8l"),dangerouslySetInnerHTML:{__html:n}}),a&&(0,l.jsx)(f,{className:"HeroSection-module__heroLogo--t3ggG"})]})})})}},130:(e,o,t)=>{t.d(o,{N:()=>a,u:()=>l}),t(178);var n=t(992);const a=({children:e,fluidMode:o=!1})=>{fluidModeState.state=o;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${o?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},l=e=>("boolean"==typeof e?e:n.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(o,t,n)=>{var a,l;o.exports=(a={jsx:()=>e.jsx,jsxs:()=>e.jsxs},l={},n.d(l,a),l)},649:(e,t,n)=>{var a,l;e.exports=(a={createElement:()=>o.createElement},l={},n.d(l,a),l)},992:(e,o,t)=>{t.d(o,{b:()=>n}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const n=globalThis.__fluidModeState}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,a),l.exports}a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o);var l={};a.d(l,{A:()=>r.A});var r=a(110);const s=l.A;export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotelCard.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HotelCard/HotelCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAc;
|
|
1
|
+
{"version":3,"file":"HotelCard.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HotelCard/HotelCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyFvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";var o={39:(e,o,t)=>{t.d(o,{L:()=>a});const a=(...e)=>e.filter(Boolean).join(" ")},130:(e,o,t)=>{t.d(o,{N:()=>l,u:()=>s}),t(178);var a=t(992);const l=({children:e,fluidMode:o=!1})=>{fluidModeState.state=o;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${o?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},s=e=>("boolean"==typeof e?e:a.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(o,t,a)=>{var l,s;o.exports=(l={jsx:()=>e.jsx,jsxs:()=>e.jsxs},s={},a.d(s,l),s)},670:(e,o,t)=>{t.d(o,{A:()=>r});var a=t(178),l=t(130),s=t(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:o,location:t,stars:r,image:i,dates:d,discountText:c,onClick:f,url:m,width:u="auto",price:_,fluidMode:p})=>{const
|
|
1
|
+
import*as e from"react/jsx-runtime";var o={39:(e,o,t)=>{t.d(o,{L:()=>a});const a=(...e)=>e.filter(Boolean).join(" ")},130:(e,o,t)=>{t.d(o,{N:()=>l,u:()=>s}),t(178);var a=t(992);const l=({children:e,fluidMode:o=!1})=>{fluidModeState.state=o;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${o?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},s=e=>("boolean"==typeof e?e:a.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(o,t,a)=>{var l,s;o.exports=(l={jsx:()=>e.jsx,jsxs:()=>e.jsxs},s={},a.d(s,l),s)},670:(e,o,t)=>{t.d(o,{A:()=>r});var a=t(178),l=t(130),s=t(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:o,location:t,stars:r,image:i,dates:d,discountText:c,onClick:f,url:m,width:u="auto",price:_,fluidMode:p,...x})=>{const h=(0,l.u)(p),j=m?"a":"div",y=m?{href:m,target:"_blank",rel:"noopener noreferrer"}:{};return(0,a.jsxs)(j,{...x,...y,className:(0,s.L)(n.root,h,"fixed"===u&&n.rootFixed,e,m&&n.clickable),onClick:f,children:[(0,a.jsxs)("div",{className:n.imageContainer,children:[(0,a.jsx)("img",{src:i,alt:o,className:n.image}),c?(0,a.jsx)("div",{className:n.discount,children:(0,a.jsx)("span",{className:n.discountText,dangerouslySetInnerHTML:{__html:c}})}):null]}),(0,a.jsxs)("div",{className:n.content,children:[(()=>{if(!r)return null;const e=[];for(let t=0;t<5;t++)e.push((0,a.jsx)("div",{className:t<r?n.starFilled:n.starEmpty},`star-${o}-${t}`));return(0,a.jsx)("div",{className:n.stars,children:e})})(),(0,a.jsx)("h3",{className:n.title,children:o}),t&&(0,a.jsx)("p",{className:n.location,children:t}),d&&(0,a.jsxs)("p",{className:n.dates,children:["Travel Dates: ",d]}),(0,a.jsx)("div",{className:n.priceInfoWrapper,children:(0,a.jsx)("div",{className:n.priceInfo,children:_?(0,a.jsxs)("div",{className:n.priceText,children:[(0,a.jsxs)("div",{className:n.mainPriceText,children:["From ",(0,a.jsx)("strong",{children:_})]}),(0,a.jsx)("div",{className:n.infoPriceText,children:(0,a.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,a.jsx)("div",{className:n.bookNowText,children:"Book now"})})})]})]})}},992:(e,o,t)=>{t.d(o,{b:()=>a}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const a=globalThis.__fluidModeState}},t={};function a(e){var l=t[e];if(void 0!==l)return l.exports;var s=t[e]={exports:{}};return o[e](s,s.exports,a),s.exports}a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o);var l={};a.d(l,{A:()=>s.A});var s=a(670);const n=l.A;export{n as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { HotelCardProps } from '../HotelCard/HotelCard';
|
|
3
|
-
export interface HotelsLandingProps {
|
|
3
|
+
export interface HotelsLandingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
4
4
|
className?: string;
|
|
5
5
|
heroYellowText?: string;
|
|
6
6
|
heroWhiteText?: string;
|
|
@@ -8,7 +8,6 @@ export interface HotelsLandingProps {
|
|
|
8
8
|
hotelsSubtitle: string;
|
|
9
9
|
hotels: HotelCardProps[];
|
|
10
10
|
backgroundMobile: string;
|
|
11
|
-
backgroundMobile2x: string;
|
|
12
11
|
backgroundDesktop: string;
|
|
13
12
|
backgroundDesktop2x: string;
|
|
14
13
|
fluidMode?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotelsLanding.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HotelsLanding/HotelsLanding.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"HotelsLanding.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HotelsLanding/HotelsLanding.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC;IACjG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+C/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -925,13 +925,6 @@
|
|
|
925
925
|
display: flex;
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
|
|
929
|
-
|
|
930
|
-
.HeroSection-module__hero--lpuv4 {
|
|
931
|
-
background-image: var(--background-mobile-2x);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
928
|
@media (min-width: 500px) {
|
|
936
929
|
|
|
937
930
|
.HeroSection-module__hero--lpuv4 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";import*as a from"react";var t={39:(e,a,t)=>{t.d(a,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},93:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(178),l=t(130),o=t(39),n=t(670);const r=({title:e,subtitle:a,hotels:t,fluidMode:r})=>{const i=(0,l.u)(r);return(0,s.jsxs)("section",{className:(0,o.L)("HotelsSection-module__hotels--hGJyx",i),children:[e||a?(0,s.jsxs)("header",{className:"HotelsSection-module__hotelsHeader--l_Qr5",children:[e&&(0,s.jsx)("h2",{className:"HotelsSection-module__hotelsTitle--zeGAj",children:e}),a&&(0,s.jsx)("p",{className:"HotelsSection-module__hotelsSubtitle--EAJhs",children:a})]}):null,(0,s.jsx)("ul",{className:"HotelsSection-module__hotelsList--jWxYc",children:t.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n.A,{className:"HotelsSection-module__hotelCard--aCwpN",name:e.name,location:e.location,stars:e.stars,image:e.image,dates:e.dates,discountText:e.discountText,url:e.url,fluidMode:r})},e.name))})]})}},94:(e,a,t)=>{t.d(a,{A:()=>N});var s,l=t(178),o=t(268),n=t(130),r=t(39),i=t(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),s||(s=i.createElement("path",{fill:"#8C1EFF",d:"M.32 9.41h28v2h-28zM.32 17.41h28v2h-28z"})));var u,m;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},h.apply(null,arguments)}const x=e=>i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),u||(u=i.createElement("path",{fill:"#8C1EFF",d:"m4.807 3.394 19.799 19.799-1.414 1.414-19.8-19.8z"})),m||(m=i.createElement("path",{fill:"#8C1EFF",d:"m3.393 23.193 19.799-19.8 1.414 1.415L4.807 24.607z"})));var p,_,f;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},g.apply(null,arguments)}const v={root:"Header-module__root--MyGKu",header:"Header-module__header--Ie2CT",hidden:"Header-module__hidden--gobBG",compactHeader:"Header-module__compactHeader--LsvY9",visible:"Header-module__visible--ococB",light:"Header-module__light--e8MFJ",dark:"Header-module__dark--mJEmI",yellow:"Header-module__yellow--W7Vw1",leftContainer:"Header-module__leftContainer--T8NI2",rightContainer:"Header-module__rightContainer--ZvsQ0",navList:"Header-module__navList--ikTYl",menuLink:"Header-module__menuLink--yDAEH",menuLinkText:"Header-module__menuLinkText--MV8k7",subMenuOpener:"Header-module__subMenuOpener--7Gf68",subMenuOpenerActive:"Header-module__subMenuOpenerActive--hM0jl",subNavList:"Header-module__subNavList--opWlU",subNavListOpened:"Header-module__subNavListOpened--mebR2",burgerMenuContainer:"Header-module__burgerMenuContainer--GmhQc",burgerMenuButton:"Header-module__burgerMenuButton--sm0Lo",burgerMenu:"Header-module__burgerMenu--SUEsD",logo:"Header-module__logo--V8O4g",burgerButtons:"Header-module__burgerButtons--gDROa",separator:"Header-module__separator--lw7LB"},b="burger-menu",j="sub-menu",w=(0,l.jsx)("a",{href:"https://www.ratehawk.com/",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(e=>i.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",height:61,fill:"none",viewBox:"0 0 202 61"},e),p||(p=i.createElement("path",{fill:"var(--general-color)",d:"m162.762 38.47-2.883-18.28h-7.867l-3.517 22.29h4.857l.026-.178.187-1.397.325-2.435h4.113l.517 3.877.018.134h4.857l-.111-.708zm-8.306-4.16 1.489-10.848 1.49 10.848zM179.455 38.5l-1.997-18.31h-6.079l-1.876 18.34-1.431-18.34h-4.618l2.414 22.29h6.854l1.757-18.336 1.848 18.337h6.764l2.413-22.29h-4.62zM196.7 30.654l4.41-10.463h-5.274l-3.693 10.611V20.191h-5.007v22.29h5.007V31.842l3.635 10.639h5.542zM81.256 30.253q1.028-1.324 1.028-3.402v-.861q0-1.9-.848-3.18-.85-1.279-2.338-1.947-1.491-.67-3.398-.67h-7.45v22.29h5.006V31.517l4.022 10.966h5.571L78.53 32.17q1.701-.598 2.727-1.918m-3.978-2.99q-.001 1.488-.611 2.141-.612.655-1.654.655h-1.757v-3.654a2.055 2.055 0 0 0-2.058-2.052h3.8149999999999995q1.042 0 1.654.549.61.55.61 1.946zM94.679 20.19h-7.867L83.93 38.47l-.634 4.01h4.858l.535-4.01h4.113l.535 4.01h4.857l-.633-4.01zm-5.423 14.12 1.49-10.848 1.49 10.848zM97.752 24.502h3.633V42.48h5.067V24.5h3.635v-4.31H97.752zM111.871 24.502V42.48h11.144v-4.309h-6.138v-4.905h6.138V28.96h-6.138v-4.457h6.138V20.19h-11.144zM141.791 28.87h-4.469v-8.68h-5.064v22.288h5.064v-7.216a2.055 2.055 0 0 0-2.057-2.053h6.526v9.272h5.064V20.19h-5.064z"})),_||(_=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M56.213 18.304 38.056 7.849 25.143.41l3.572 4.999c.833 1.165-.43 2.679-1.732 2.07L15.695 2.197l22.36 17.418s8.481 6.433 11.26 8.735c.493.408.829.974.95 1.604l.868 4.557c.9 4.284-.762 5.893-2.368 6.857l-1.981 1.184.31-2.425c.124-.932-.076-1.3-.636-1.637l-4.84-2.697a2.3 2.3 0 0 0-.901-.297C37.487 35.054.32 29.801.32 29.801l17.228 5.767c1.359.455 1.23 2.412-.176 2.686l-5.264 1.033 24.024 13.89a4.2 4.2 0 0 0 4.186.004c4.062-2.331 12.88-7.393 15.88-9.123a4.18 4.18 0 0 0 2.093-3.603c.018-5.504.018-18.533.018-18.533a4.17 4.17 0 0 0-2.096-3.618"})),f||(f=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M44.752 32.185a1.54 1.54 0 0 0 2.022.8c.553-.238.886-.765.917-1.326l-6.62-3.918s-.065.377.144.576c.22.21 2.583 2.181 3.464 2.916-.076.308-.06.64.073.952"}))),{className:v.logo})}),N=({theme:e="dark",className:a="",menu:t,subMenu:s,extraRightContent:c,fluidMode:u,zIndex:m=1,onLoginClick:h,onRegisterClick:p})=>{const _=(0,n.u)(u),f=v[e],g=s&&s.length>0,[N,y]=(0,i.useState)(!1),[C,M]=(0,i.useState)(!1),[L,H]=(0,i.useState)(!1),[T,E]=(0,i.useState)(!1),F=(0,i.useRef)(null),B=(0,i.useRef)(null),S=t?.map(k)||[];let A=S;if(g){const e=s?.map(k)||[];A=[...S,(0,l.jsxs)("li",{children:[(0,l.jsx)("button",{type:"button",onClick:()=>H(!L),className:(0,r.L)(v.menuLink,_,v.subMenuOpener,j,L?v.subMenuOpenerActive:""),children:(0,l.jsx)("span",{className:v.menuLinkText,children:"More"})}),(0,l.jsx)("ul",{className:(0,r.L)(v.subNavList,L?v.subNavListOpened:"",j),children:e})]},"submenu")],S.push(...e)}const O=(0,i.useCallback)((()=>{let e=!1;return(...a)=>{e||((()=>{if(!F.current||!B.current)return;const e=B.current.getBoundingClientRect().right,a=F.current.getBoundingClientRect().left-e<20;y(a),E(!0),a?H(!1):M(!1)})(...a),e=!0,setTimeout(()=>{e=!1},100))}})(),[]),I=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A,{theme:"secondary",variant:"dark"===e?"white":"black",url:"https://www.ratehawk.com/accounts/login/?lang=en&ref=rh_sign_in",onClick:h,children:"Sign in"}),(0,l.jsx)(o.A,{url:"https://www.ratehawk.com/registration/?lang=en&ref=rh_register",onClick:p,children:"Register"})]}),z=(0,i.useCallback)(e=>{if(!(e.target instanceof HTMLElement))return;const a=e.target.closest(`.${b}`),t=e.target.closest(`.${j}`);a||M(!1),t||H(!1)},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",O),window.addEventListener("click",z),O(),()=>{window.removeEventListener("resize",O),window.removeEventListener("click",z)}),[O,z]),(0,l.jsxs)("div",{className:(0,r.L)(v.root,a,f,_),style:{zIndex:m},children:[(0,l.jsxs)("div",{className:(0,r.L)(v.header,v.wideHeader,N?v.hidden:""),children:[(0,l.jsxs)("div",{className:v.leftContainer,ref:B,children:[w,(0,l.jsx)("nav",{className:v.navMenu,children:(0,l.jsx)("ul",{className:v.navList,children:A})})]}),(0,l.jsxs)("div",{className:(0,r.L)(v.rightContainer,!T&&v.hidden),ref:F,children:[c,I]})]}),(0,l.jsxs)("div",{className:(0,r.L)(v.header,v.compactHeader,N?v.visible:""),children:[(0,l.jsx)("div",{className:v.leftContainer,children:w}),(0,l.jsxs)("div",{className:v.rightContainer,children:[c,(0,l.jsx)("div",{className:v.burgerMenuContainer,children:(0,l.jsx)("button",{className:v.burgerMenuButton,onClick:()=>M(!C),type:"button",children:C?(0,l.jsx)(x,{}):(0,l.jsx)(d,{})})})]}),C&&(0,l.jsxs)("div",{className:(0,r.L)(v.burgerMenu,b),children:[S.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("nav",{className:v.navMenu,children:(0,l.jsx)("ul",{className:v.navList,children:S})}),(0,l.jsx)("div",{className:v.separator})]}):null,(0,l.jsx)("div",{className:v.burgerButtons,children:I})]})]})]})};function k(e){const a=e.url?"a":"button",t=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,l.jsx)("li",{children:(0,l.jsx)(a,{className:v.menuLink,onClick:e.onClick,...t,children:(0,l.jsx)("span",{className:v.menuLinkText,children:e.title})})},e.title)}},110:(e,a,t)=>{t.d(a,{A:()=>m});var s,l,o=t(178),n=t(130),r=t(39),i=t(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 98 91"},e),s||(s=i.createElement("path",{fill:"#FEDD00",d:"M94.277 30.26 63.65 12.58 41.87 0l6.025 8.453c1.406 1.972-.724 4.53-2.921 3.5l-19.04-8.93L63.65 32.48s14.304 10.88 18.993 14.772a4.67 4.67 0 0 1 1.601 2.713l1.465 7.708c1.516 7.243-1.286 9.964-3.995 11.595l-3.342 2.002.523-4.101c.21-1.576-.127-2.198-1.073-2.768l-8.163-4.56c-.468-.282-.98-.431-1.52-.503C62.692 58.587 0 49.704 0 49.704l29.06 9.752c2.29.77 2.073 4.08-.299 4.544l-8.878 1.746 40.523 23.489a7.07 7.07 0 0 0 7.06.008C74.318 85.3 89.192 76.741 94.25 73.815a7.07 7.07 0 0 0 3.53-6.094c.03-9.309.03-31.342.03-31.342a7.06 7.06 0 0 0-3.534-6.119"})),l||(l=i.createElement("path",{fill:"#FEDD00",d:"M74.944 53.737a2.594 2.594 0 0 0 3.41 1.354 2.59 2.59 0 0 0 1.547-2.244L68.735 46.22s-.11.639.243.975c.37.353 4.356 3.688 5.842 4.931a2.54 2.54 0 0 0 .124 1.61"}))),u="HeroSection-module__sloganText--_hwUn",m=({yellowText:e,whiteText:a,showLogo:t=!0,backgroundMobile:s,backgroundMobile2x:l,backgroundDesktop:i,backgroundDesktop2x:c,fluidMode:m})=>{const h=(0,n.u)(m);return(0,o.jsx)("section",{className:(0,r.L)("HeroSection-module__hero--lpuv4",h),style:{"--background-mobile":`url("${s}")`,"--background-mobile-2x":`url("${l}")`,"--background-desktop":`url("${i}")`,"--background-desktop-2x":`url("${c}")`},children:(0,o.jsx)("div",{className:"HeroSection-module__heroContainer--brVZ4",children:(0,o.jsxs)("div",{className:"HeroSection-module__slogan--rRTe6",children:[e&&(0,o.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganYellow--lIwpd"),dangerouslySetInnerHTML:{__html:e}}),a&&(0,o.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganWhite--SWr8l"),dangerouslySetInnerHTML:{__html:a}}),t&&(0,o.jsx)(d,{className:"HeroSection-module__heroLogo--t3ggG"})]})})})}},130:(e,a,t)=>{t.d(a,{N:()=>l,u:()=>o}),t(178);var s=t(992);const l=({children:e,fluidMode:a=!1})=>{fluidModeState.state=a;const t=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${a?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:t}}),e]})},o=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(a,t,s)=>{var l,o;a.exports=(l={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},o={},s.d(o,l),o)},268:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(178),l=t(130),o=t(39);const n={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},r=({className:e,children:a,dimension:t="s",theme:r="primary",onClick:i,disabled:c=!1,type:d="button",variant:u="purple",url:m,isLoading:h,enableMediaDimension:x=!0,fluidMode:p})=>{const _=n[t]||"",f=n[r]||"",g=n[u],v=(0,l.u)(p),b=x?n.withMediaDimension:"",j=m?"a":"button",w=m?{target:"_blank",href:m}:{type:d},N=h?n.isLoading:"";return(0,s.jsxs)(j,{...w,onClick:i,className:(0,o.L)(n.root,e,v,_,f,N,g,b),disabled:c,children:[h?(0,s.jsx)("span",{className:n.spinner}):null,(0,s.jsx)("span",{className:(0,o.L)(n.text,h?n.hidden:null),children:a})]})}},374:(e,a,t)=>{t.d(a,{A:()=>L});var s,l=t(178),o=t(268),n=t(130),r=t(39),i=t(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),s||(s=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M15.207 29.967c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14Zm0 0v-16a4 4 0 0 1 4-4h1m-10 8h10"})));var u;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},m.apply(null,arguments)}const h=e=>i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),u||(u=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M9.54 12.967v10m12 0v-5a4 4 0 1 0-8 0v5-10m-5-3h2m-7-8h24a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2h-24a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z"}))),x=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;var p;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},_.apply(null,arguments)}const f=e=>i.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,stroke:"currentColor",strokeWidth:1.5},e),p||(p=i.createElement("path",{d:"m4 4 16 16m0-16L4 20"}))),g="ContactModal-module__field--c99HI",v="ContactModal-module__inputWrapper--e2l3N",b="ContactModal-module__inputWrapperError--s_bqB",j="ContactModal-module__input--wuaB7",w="ContactModal-module__error--jso6D",N=({isOpen:e,onClose:a,fluidMode:t})=>{const s=(0,n.u)(t),[c,d]=(0,i.useState)({firstName:"",phone:"",email:"",companyName:"",message:""}),[u,m]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),[_,N]=(0,i.useState)({}),k=(0,i.useCallback)(()=>{const e={};return c.firstName.trim()||(e.firstName="First Name is required"),c.phone.trim()?c.phone.replace(/\D/g,"").length>=7||(e.phone="Phone must contain at least 7 digits"):e.phone="Phone is required",c.email.trim()?function(e){return x.test(e)}(c.email)||(e.email="Please enter a valid email"):e.email="Email is required",c.companyName.trim()||(e.companyName="Company Name is required"),N(e),0===Object.keys(e).length},[c]),y=(0,i.useCallback)(async e=>{if(e.preventDefault(),k()){m(!0);try{const e={brand:"ratehawk",cooperation_type:"api",kind:"b2b",white_label_slug:"ratehawk",email:c.email,message:c.message,company_name:c.companyName,name:c.firstName,phone:c.phone};if(!(await fetch("https://www.ratehawk.com/partner/user_area/v1/anonymous/contact_us/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to submit form");p(!0)}catch(e){console.error("Form submission error:",e)}finally{m(!1)}}},[c,k]),C=(0,i.useCallback)(e=>a=>{d(t=>({...t,[e]:a.target.value})),_[e]&&N(a=>({...a,[e]:void 0}))},[_]),M=(0,i.useCallback)(()=>{d({firstName:"",phone:"",email:"",companyName:"",message:""}),N({}),p(!1),a()},[a]);return e?(0,l.jsx)("div",{className:(0,r.L)("ContactModal-module__overlay--ti1yT",s),onClick:M,children:(0,l.jsxs)("div",{className:"ContactModal-module__modal--Xzwl2",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("button",{className:(0,r.L)("ContactModal-module__closeButton--qvADd",s),onClick:M,type:"button",children:(0,l.jsx)(f,{})}),h?(0,l.jsxs)("div",{className:"ContactModal-module__successMessage--Nyhi4",children:[(0,l.jsx)("h2",{className:"ContactModal-module__successTitle--dVn02",children:"Successfully accepted"}),(0,l.jsx)("p",{className:"ContactModal-module__successText--KJznx",children:"Your application has flown to our caring specialists! We will contact you soon"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"ContactModal-module__title--XrI8J",children:(0,l.jsx)("span",{className:"ContactModal-module__titleText--HH4uj",children:"Cooperation"})}),(0,l.jsx)("p",{className:"ContactModal-module__subtitle--dS9UA",children:"Drop us a line and we will get back to you as soon as possible!"}),(0,l.jsxs)("form",{className:"ContactModal-module__form--XuQzj",onSubmit:y,children:[(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.firstName?b:""}`,children:(0,l.jsx)("input",{type:"text",className:j,value:c.firstName,onChange:C("firstName"),placeholder:"First Name *"})}),_.firstName&&(0,l.jsx)("span",{className:w,children:_.firstName})]}),(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.phone?b:""}`,children:(0,l.jsx)("input",{type:"tel",className:j,value:c.phone,onChange:C("phone"),placeholder:"Phone *"})}),_.phone&&(0,l.jsx)("span",{className:w,children:_.phone})]}),(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.email?b:""}`,children:(0,l.jsx)("input",{type:"email",className:j,value:c.email,onChange:C("email"),placeholder:"Email Address *"})}),_.email&&(0,l.jsx)("span",{className:w,children:_.email})]}),(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.companyName?b:""}`,children:(0,l.jsx)("input",{type:"text",className:j,value:c.companyName,onChange:C("companyName"),placeholder:"Company Name *"})}),_.companyName&&(0,l.jsx)("span",{className:w,children:_.companyName})]}),(0,l.jsx)("div",{className:g,children:(0,l.jsx)("label",{className:"ContactModal-module__textareaWrapper--rSQEQ",children:(0,l.jsx)("textarea",{className:"ContactModal-module__textarea--i19oy",value:c.message,onChange:C("message"),placeholder:"Message",rows:4})})}),(0,l.jsx)(o.A,{type:"submit",theme:"primary",variant:"white",disabled:u,className:"ContactModal-module__submitButton--qbQOa",children:u?"Sending...":"Send"})]})]})]})}):null},k="Footer-module__footerLink--ipb6W",y="Footer-module__footerLegalText--xlXoo",C="Footer-module__footerParagraphSection--rin95",M=[{title:"For marketing and PR",text:"We regularly run promotions, campaigns, and partner events to engage and incentivize our clients with special offers. If you interested in such partnership please contact us at {{link}}.",link:"pr@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__marketingBlock--DnIGu"},{title:"For affiliates partnerships",text:"Integrate our solution to make it easy and profitable to book hotels through your website or online service. Integrate quickly and reliably with our system. Still have questions? Contact us at {{link}}.",link:"affiliate@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__affiliatesBlock--jVQ0L"},{title:"For suppliers",text:"As official partners of the world's largest OTA, wholesalers, consolidators, and DMCs, we invite you to enhance your sales and grow your business together. Contact us at {{link}}.",link:"tpp@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__suppliersBlock--yrn9l"},{title:"For hotels",text:"Become our partner to increase your direct sales and the popularity of your accommodation options. \u2028For partnership inquiries, please contact us at {{link}}.",link:"hotels@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__hotelsBlock--uGUyj"},{title:"For technology providers",text:"If you are a mid-office or platform interested in integrating with RateHawk to develop your business, please contact us at {{link}}.",link:"api@ratehawk.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__providersBlock--Zmk8W"}],L=({className:e="",fluidMode:a})=>{const[t,s]=(0,i.useState)(!1),c=(0,n.u)(a),u=(0,i.useCallback)(()=>{s(!0)},[]),m=(0,i.useCallback)(()=>{s(!1)},[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("footer",{className:(0,r.L)("Footer-module__root--T9ly6",e,c),children:[(0,l.jsxs)("div",{className:"Footer-module__header--hy1ME",children:[(0,l.jsx)("p",{className:"Footer-module__title--OX7d9",children:"Partnership"}),(0,l.jsx)("p",{className:"Footer-module__subTitle--EmP0b",children:"Cooperate and grow together with RateHawk"})]}),(0,l.jsx)("ul",{className:"Footer-module__advantages--z7ASK",children:M.map(e=>(0,l.jsxs)("li",{className:(0,r.L)("Footer-module__advantageItem--EcCx_",e.cssClass),children:[(0,l.jsxs)("div",{className:"Footer-module__advantageInfo--Ilud0",children:[(0,l.jsx)("h6",{className:"Footer-module__advantageTitle--spnaR",children:(0,l.jsx)("span",{className:"Footer-module__advantageTitleText--cMrU_",children:e.title})}),(0,l.jsx)("p",{className:"Footer-module__advantageText--BHbmo",dangerouslySetInnerHTML:{__html:e.text.replace("{{link}}",`<a class="Footer-module__advantageLink--bcoK8" href="mailto:${e.link}">${e.link}</a>`)}})]}),(0,l.jsx)(o.A,{theme:"secondary",variant:"white",...e.button.url?{url:e.button.url}:{onClick:u},children:e.button.text})]},e.title))}),(0,l.jsxs)("div",{className:"Footer-module__footerBottom--u_o7y",children:[(0,l.jsxs)("div",{className:"Footer-module__footerLeft--nnkZo",children:[(0,l.jsxs)("div",{className:"Footer-module__social--H1Yw4",children:[(0,l.jsx)("a",{href:"https://www.facebook.com/ratehawk",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(d,{})}),(0,l.jsx)("a",{href:"https://www.linkedin.com/company/ratehawk-com/",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(h,{})})]}),(0,l.jsxs)("ul",{className:"Footer-module__footerLinks--R9Hnr",children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://www.ratehawk.com/lp/en-us/career",target:"_blank",rel:"noopener noreferrer",className:k,children:"Careers"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://blog.ratehawk.com/",target:"_blank",rel:"noopener noreferrer",className:k,children:"Blog"})})]})]}),(0,l.jsxs)("div",{className:"Footer-module__footerLegal--jAGGe",children:[(0,l.jsxs)("div",{className:C,children:[(0,l.jsx)("p",{className:y,children:"Leaside Services Limited, reg.no HE342401, Business Address: 17 Karaiskaki Street, Office 22, Agaia Triada, Limassol, Cyprus, 3032 Emerging Travel Inc., reg.no 4869611, Business Address: 1000 N West Street, Suite 1200, Wilmington, DE 19801 USA EMERGING TRAVEL UK LIMITED, Company number 12185384, Business Address: 19 Eastbourne Terrace, Office 3.01, Paddington, London, W2 6LG, UK"}),(0,l.jsx)("p",{className:y,children:"Emerging Travel Germany ETG GmbH, HRB 213546, Business Address: Friedrichstraße 171, 10117 Berlin, Germany"}),(0,l.jsx)("p",{className:y,children:"Emerging Travel Kazakhstan LLP, BIN 191240026456, Business address: Office SP2-18, 280 Baizakova Street, Bostandykskiy district, 050040, Almaty, Republic of Kazakhstan"}),(0,l.jsx)("p",{className:y,children:"Smart Middle East Travel Agency L.L.C, Reg.no: 1803677, Business address: Al Rigga - Office No. 202-201-221, Insurance Building, Dubai, UAE"}),(0,l.jsx)("p",{className:y,children:"Emerging Travel Asia PTE. LTD, Reg.no: 201927854K, TA license: TA03682, Business address: 300 Tampines Avenue 5 #09-02, Tampines Junction Singapore 529653"})]}),(0,l.jsx)("div",{className:C,children:(0,l.jsx)("p",{className:y,children:(0,l.jsx)("a",{href:"https://www.ratehawk.com/legal/site/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Personal data processing and storage policy"})})}),(0,l.jsx)("div",{className:C,children:(0,l.jsx)("p",{className:y,children:"Digital Services Act"})}),(0,l.jsx)("div",{className:C,children:(0,l.jsx)("p",{className:y,children:"Ratehawk is a registered service mark in the European Union"})})]})]})]}),(0,l.jsx)(N,{isOpen:t,onClose:m,fluidMode:a})]})}},649:(e,t,s)=>{var l,o;e.exports=(l={createElement:()=>a.createElement,useCallback:()=>a.useCallback,useEffect:()=>a.useEffect,useRef:()=>a.useRef,useState:()=>a.useState},o={},s.d(o,l),o)},670:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(178),l=t(130),o=t(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:a,location:t,stars:r,image:i,dates:c,discountText:d,onClick:u,url:m,width:h="auto",price:x,fluidMode:p})=>{const _=(0,l.u)(p),f=m?"a":"div",g=m?{href:m,target:"_blank",rel:"noopener noreferrer"}:{};return(0,s.jsxs)(f,{className:(0,o.L)(n.root,_,"fixed"===h&&n.rootFixed,e,m&&n.clickable),onClick:u,...g,children:[(0,s.jsxs)("div",{className:n.imageContainer,children:[(0,s.jsx)("img",{src:i,alt:a,className:n.image}),d?(0,s.jsx)("div",{className:n.discount,children:(0,s.jsx)("span",{className:n.discountText,dangerouslySetInnerHTML:{__html:d}})}):null]}),(0,s.jsxs)("div",{className:n.content,children:[(()=>{if(!r)return null;const e=[];for(let t=0;t<5;t++)e.push((0,s.jsx)("div",{className:t<r?n.starFilled:n.starEmpty},`star-${a}-${t}`));return(0,s.jsx)("div",{className:n.stars,children:e})})(),(0,s.jsx)("h3",{className:n.title,children:a}),t&&(0,s.jsx)("p",{className:n.location,children:t}),c&&(0,s.jsxs)("p",{className:n.dates,children:["Travel Dates: ",c]}),(0,s.jsx)("div",{className:n.priceInfoWrapper,children:(0,s.jsx)("div",{className:n.priceInfo,children:x?(0,s.jsxs)("div",{className:n.priceText,children:[(0,s.jsxs)("div",{className:n.mainPriceText,children:["From ",(0,s.jsx)("strong",{children:x})]}),(0,s.jsx)("div",{className:n.infoPriceText,children:(0,s.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,s.jsx)("div",{className:n.bookNowText,children:"Book now"})})})]})]})}},992:(e,a,t)=>{t.d(a,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},s={};function l(e){var a=s[e];if(void 0!==a)return a.exports;var o=s[e]={exports:{}};return t[e](o,o.exports,l),o.exports}l.d=(e,a)=>{for(var t in a)l.o(a,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);var o=l(178),n=l(130),r=l(39),i=l(374),c=l(94),d=l(110);var u=l(93);const m=({className:e="",heroYellowText:a,heroWhiteText:t,hotelsTitle:s,hotelsSubtitle:l,hotels:m,backgroundMobile:h,backgroundMobile2x:x,backgroundDesktop:p,backgroundDesktop2x:_,heroLogo:f=!0,fluidMode:g,onLoginClick:v,onRegisterClick:b})=>{const j=(0,n.u)(g);return(0,o.jsxs)("div",{className:(0,r.L)("HotelsLanding-module__root--JnV8j",j,e),children:[(0,o.jsx)(c.A,{onLoginClick:v,onRegisterClick:b,fluidMode:g}),(0,o.jsxs)("main",{children:[(0,o.jsx)(d.A,{yellowText:a,whiteText:t,showLogo:f,backgroundMobile:h,backgroundMobile2x:x,backgroundDesktop:p,backgroundDesktop2x:_}),(0,o.jsx)(u.A,{title:s,subtitle:l,hotels:m,fluidMode:g})]}),(0,o.jsx)(i.A,{})]})};export{m as default};
|
|
1
|
+
import*as e from"react/jsx-runtime";import*as t from"react";var a={39:(e,t,a)=>{a.d(t,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},93:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),l=a(130),n=a(39),o=a(670);const r=({className:e,title:t,subtitle:a,hotels:r,fluidMode:i,...c})=>{const d=(0,l.u)(i);return(0,s.jsxs)("section",{...c,className:(0,n.L)("HotelsSection-module__hotels--hGJyx",d,e),children:[t||a?(0,s.jsxs)("header",{className:"HotelsSection-module__hotelsHeader--l_Qr5",children:[t&&(0,s.jsx)("h2",{className:"HotelsSection-module__hotelsTitle--zeGAj",children:t}),a&&(0,s.jsx)("p",{className:"HotelsSection-module__hotelsSubtitle--EAJhs",children:a})]}):null,(0,s.jsx)("ul",{className:"HotelsSection-module__hotelsList--jWxYc",children:r.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(o.A,{className:"HotelsSection-module__hotelCard--aCwpN",name:e.name,location:e.location,stars:e.stars,image:e.image,dates:e.dates,discountText:e.discountText,url:e.url,fluidMode:i})},e.name))})]})}},94:(e,t,a)=>{a.d(t,{A:()=>N});var s,l=a(178),n=a(268),o=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),s||(s=i.createElement("path",{fill:"#8C1EFF",d:"M.32 9.41h28v2h-28zM.32 17.41h28v2h-28z"})));var u,m;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},h.apply(null,arguments)}const x=e=>i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),u||(u=i.createElement("path",{fill:"#8C1EFF",d:"m4.807 3.394 19.799 19.799-1.414 1.414-19.8-19.8z"})),m||(m=i.createElement("path",{fill:"#8C1EFF",d:"m3.393 23.193 19.799-19.8 1.414 1.415L4.807 24.607z"})));var p,_,f;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},g.apply(null,arguments)}const v={root:"Header-module__root--MyGKu",header:"Header-module__header--Ie2CT",hidden:"Header-module__hidden--gobBG",compactHeader:"Header-module__compactHeader--LsvY9",visible:"Header-module__visible--ococB",light:"Header-module__light--e8MFJ",dark:"Header-module__dark--mJEmI",yellow:"Header-module__yellow--W7Vw1",leftContainer:"Header-module__leftContainer--T8NI2",rightContainer:"Header-module__rightContainer--ZvsQ0",navList:"Header-module__navList--ikTYl",menuLink:"Header-module__menuLink--yDAEH",menuLinkText:"Header-module__menuLinkText--MV8k7",subMenuOpener:"Header-module__subMenuOpener--7Gf68",subMenuOpenerActive:"Header-module__subMenuOpenerActive--hM0jl",subNavList:"Header-module__subNavList--opWlU",subNavListOpened:"Header-module__subNavListOpened--mebR2",burgerMenuContainer:"Header-module__burgerMenuContainer--GmhQc",burgerMenuButton:"Header-module__burgerMenuButton--sm0Lo",burgerMenu:"Header-module__burgerMenu--SUEsD",logo:"Header-module__logo--V8O4g",burgerButtons:"Header-module__burgerButtons--gDROa",separator:"Header-module__separator--lw7LB"},b="burger-menu",j="sub-menu",w=(0,l.jsx)("a",{href:"https://www.ratehawk.com/",target:"_blank",rel:"noreferrer",children:(0,l.jsx)(e=>i.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",height:61,fill:"none",viewBox:"0 0 202 61"},e),p||(p=i.createElement("path",{fill:"var(--general-color)",d:"m162.762 38.47-2.883-18.28h-7.867l-3.517 22.29h4.857l.026-.178.187-1.397.325-2.435h4.113l.517 3.877.018.134h4.857l-.111-.708zm-8.306-4.16 1.489-10.848 1.49 10.848zM179.455 38.5l-1.997-18.31h-6.079l-1.876 18.34-1.431-18.34h-4.618l2.414 22.29h6.854l1.757-18.336 1.848 18.337h6.764l2.413-22.29h-4.62zM196.7 30.654l4.41-10.463h-5.274l-3.693 10.611V20.191h-5.007v22.29h5.007V31.842l3.635 10.639h5.542zM81.256 30.253q1.028-1.324 1.028-3.402v-.861q0-1.9-.848-3.18-.85-1.279-2.338-1.947-1.491-.67-3.398-.67h-7.45v22.29h5.006V31.517l4.022 10.966h5.571L78.53 32.17q1.701-.598 2.727-1.918m-3.978-2.99q-.001 1.488-.611 2.141-.612.655-1.654.655h-1.757v-3.654a2.055 2.055 0 0 0-2.058-2.052h3.8149999999999995q1.042 0 1.654.549.61.55.61 1.946zM94.679 20.19h-7.867L83.93 38.47l-.634 4.01h4.858l.535-4.01h4.113l.535 4.01h4.857l-.633-4.01zm-5.423 14.12 1.49-10.848 1.49 10.848zM97.752 24.502h3.633V42.48h5.067V24.5h3.635v-4.31H97.752zM111.871 24.502V42.48h11.144v-4.309h-6.138v-4.905h6.138V28.96h-6.138v-4.457h6.138V20.19h-11.144zM141.791 28.87h-4.469v-8.68h-5.064v22.288h5.064v-7.216a2.055 2.055 0 0 0-2.057-2.053h6.526v9.272h5.064V20.19h-5.064z"})),_||(_=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M56.213 18.304 38.056 7.849 25.143.41l3.572 4.999c.833 1.165-.43 2.679-1.732 2.07L15.695 2.197l22.36 17.418s8.481 6.433 11.26 8.735c.493.408.829.974.95 1.604l.868 4.557c.9 4.284-.762 5.893-2.368 6.857l-1.981 1.184.31-2.425c.124-.932-.076-1.3-.636-1.637l-4.84-2.697a2.3 2.3 0 0 0-.901-.297C37.487 35.054.32 29.801.32 29.801l17.228 5.767c1.359.455 1.23 2.412-.176 2.686l-5.264 1.033 24.024 13.89a4.2 4.2 0 0 0 4.186.004c4.062-2.331 12.88-7.393 15.88-9.123a4.18 4.18 0 0 0 2.093-3.603c.018-5.504.018-18.533.018-18.533a4.17 4.17 0 0 0-2.096-3.618"})),f||(f=i.createElement("path",{fill:"var(--logo-accent-color)",d:"M44.752 32.185a1.54 1.54 0 0 0 2.022.8c.553-.238.886-.765.917-1.326l-6.62-3.918s-.065.377.144.576c.22.21 2.583 2.181 3.464 2.916-.076.308-.06.64.073.952"}))),{className:v.logo})}),N=({theme:e="dark",className:t="",menu:a,subMenu:s,extraRightContent:c,fluidMode:u,zIndex:m=1,onLoginClick:h,onRegisterClick:p,style:_,...f})=>{const g=(0,o.u)(u),N=v[e],y=s&&s.length>0,[C,L]=(0,i.useState)(!1),[M,H]=(0,i.useState)(!1),[T,E]=(0,i.useState)(!1),[F,B]=(0,i.useState)(!1),S=(0,i.useRef)(null),A=(0,i.useRef)(null),O=a?.map(k)||[];let I=O;if(y){const e=s?.map(k)||[];I=[...O,(0,l.jsxs)("li",{children:[(0,l.jsx)("button",{type:"button",onClick:()=>E(!T),className:(0,r.L)(v.menuLink,g,v.subMenuOpener,j,T?v.subMenuOpenerActive:""),children:(0,l.jsx)("span",{className:v.menuLinkText,children:"More"})}),(0,l.jsx)("ul",{className:(0,r.L)(v.subNavList,T?v.subNavListOpened:"",j),children:e})]},"submenu")],O.push(...e)}const z=(0,i.useCallback)((()=>{let e=!1;return(...t)=>{e||((()=>{if(!S.current||!A.current)return;const e=A.current.getBoundingClientRect().right,t=S.current.getBoundingClientRect().left-e<20;L(t),B(!0),t?E(!1):H(!1)})(...t),e=!0,setTimeout(()=>{e=!1},100))}})(),[]),D=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.A,{theme:"secondary",variant:"dark"===e?"white":"black",url:"https://www.ratehawk.com/accounts/login/?lang=en&ref=rh_sign_in",onClick:h,children:"Sign in"}),(0,l.jsx)(n.A,{url:"https://www.ratehawk.com/registration/?lang=en&ref=rh_register",onClick:p,children:"Register"})]}),P=(0,i.useCallback)(e=>{if(!(e.target instanceof HTMLElement))return;const t=e.target.closest(`.${b}`),a=e.target.closest(`.${j}`);t||H(!1),a||E(!1)},[]);return(0,i.useEffect)(()=>(window.addEventListener("resize",z),window.addEventListener("click",P),z(),()=>{window.removeEventListener("resize",z),window.removeEventListener("click",P)}),[z,P]),(0,l.jsxs)("div",{...f,className:(0,r.L)(v.root,t,N,g),style:{..._,zIndex:m},children:[(0,l.jsxs)("div",{className:(0,r.L)(v.header,v.wideHeader,C?v.hidden:""),children:[(0,l.jsxs)("div",{className:v.leftContainer,ref:A,children:[w,(0,l.jsx)("nav",{className:v.navMenu,children:(0,l.jsx)("ul",{className:v.navList,children:I})})]}),(0,l.jsxs)("div",{className:(0,r.L)(v.rightContainer,!F&&v.hidden),ref:S,children:[c,D]})]}),(0,l.jsxs)("div",{className:(0,r.L)(v.header,v.compactHeader,C?v.visible:""),children:[(0,l.jsx)("div",{className:v.leftContainer,children:w}),(0,l.jsxs)("div",{className:v.rightContainer,children:[c,(0,l.jsx)("div",{className:v.burgerMenuContainer,children:(0,l.jsx)("button",{className:v.burgerMenuButton,onClick:()=>H(!M),type:"button",children:M?(0,l.jsx)(x,{}):(0,l.jsx)(d,{})})})]}),M&&(0,l.jsxs)("div",{className:(0,r.L)(v.burgerMenu,b),children:[O.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("nav",{className:v.navMenu,children:(0,l.jsx)("ul",{className:v.navList,children:O})}),(0,l.jsx)("div",{className:v.separator})]}):null,(0,l.jsx)("div",{className:v.burgerButtons,children:D})]})]})]})};function k(e){const t=e.url?"a":"button",a=e.url?{target:"_blank",href:e.url}:{type:"button"};return(0,l.jsx)("li",{children:(0,l.jsx)(t,{className:v.menuLink,onClick:e.onClick,...a,children:(0,l.jsx)("span",{className:v.menuLinkText,children:e.title})})},e.title)}},110:(e,t,a)=>{a.d(t,{A:()=>m});var s,l,n=a(178),o=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 98 91"},e),s||(s=i.createElement("path",{fill:"#FEDD00",d:"M94.277 30.26 63.65 12.58 41.87 0l6.025 8.453c1.406 1.972-.724 4.53-2.921 3.5l-19.04-8.93L63.65 32.48s14.304 10.88 18.993 14.772a4.67 4.67 0 0 1 1.601 2.713l1.465 7.708c1.516 7.243-1.286 9.964-3.995 11.595l-3.342 2.002.523-4.101c.21-1.576-.127-2.198-1.073-2.768l-8.163-4.56c-.468-.282-.98-.431-1.52-.503C62.692 58.587 0 49.704 0 49.704l29.06 9.752c2.29.77 2.073 4.08-.299 4.544l-8.878 1.746 40.523 23.489a7.07 7.07 0 0 0 7.06.008C74.318 85.3 89.192 76.741 94.25 73.815a7.07 7.07 0 0 0 3.53-6.094c.03-9.309.03-31.342.03-31.342a7.06 7.06 0 0 0-3.534-6.119"})),l||(l=i.createElement("path",{fill:"#FEDD00",d:"M74.944 53.737a2.594 2.594 0 0 0 3.41 1.354 2.59 2.59 0 0 0 1.547-2.244L68.735 46.22s-.11.639.243.975c.37.353 4.356 3.688 5.842 4.931a2.54 2.54 0 0 0 .124 1.61"}))),u="HeroSection-module__sloganText--_hwUn",m=({className:e,style:t,yellowText:a,whiteText:s,showLogo:l=!0,backgroundMobile:i,backgroundDesktop:c,backgroundDesktop2x:m,fluidMode:h,...x})=>{const p=(0,o.u)(h);return(0,n.jsx)("section",{...x,className:(0,r.L)("HeroSection-module__hero--lpuv4",e,p),style:{...t,"--background-mobile":`url("${i}")`,"--background-desktop":`url("${c}")`,"--background-desktop-2x":`url("${m}")`},children:(0,n.jsx)("div",{className:"HeroSection-module__heroContainer--brVZ4",children:(0,n.jsxs)("div",{className:"HeroSection-module__slogan--rRTe6",children:[a&&(0,n.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganYellow--lIwpd"),dangerouslySetInnerHTML:{__html:a}}),s&&(0,n.jsx)("div",{className:(0,r.L)(u,"HeroSection-module__sloganWhite--SWr8l"),dangerouslySetInnerHTML:{__html:s}}),l&&(0,n.jsx)(d,{className:"HeroSection-module__heroLogo--t3ggG"})]})})})}},130:(e,t,a)=>{a.d(t,{N:()=>l,u:()=>n}),a(178);var s=a(992);const l=({children:e,fluidMode:t=!1})=>{fluidModeState.state=t;const a=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${t?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:a}}),e]})},n=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(t,a,s)=>{var l,n;t.exports=(l={Fragment:()=>e.Fragment,jsx:()=>e.jsx,jsxs:()=>e.jsxs},n={},s.d(n,l),n)},268:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),l=a(130),n=a(39);const o={text:"Button-module__text--holIg",root:"Button-module__root--Knp7O",hidden:"Button-module__hidden--Q6Ztq",s:"Button-module__s--o9reb",m:"Button-module__m--ZGRqJ",withMediaDimension:"Button-module__withMediaDimension--Z_A5M",primary:"Button-module__primary--V9FFQ",purple:"Button-module__purple--biF8d",black:"Button-module__black--Iz790",secondary:"Button-module__secondary--_9J0r",white:"Button-module__white--l3jcr",isLoading:"Button-module__isLoading--u5f2m",spinner:"Button-module__spinner--Zj28d",spin:"Button-module__spin--lWtk7"},r=({className:e,children:t,dimension:a="s",theme:r="primary",onClick:i,disabled:c=!1,type:d="button",variant:u="purple",url:m,isLoading:h,enableMediaDimension:x=!0,fluidMode:p,..._})=>{const f=o[a]||"",g=o[r]||"",v=o[u],b=(0,l.u)(p),j=x?o.withMediaDimension:"",w=m?"a":"button",N=m?{target:"_blank",href:m}:{type:d},k=h?o.isLoading:"";return(0,s.jsxs)(w,{...N,..._,onClick:i,className:(0,n.L)(o.root,e,b,f,g,k,v,j),disabled:c,children:[h?(0,s.jsx)("span",{className:o.spinner}):null,(0,s.jsx)("span",{className:(0,n.L)(o.text,h?o.hidden:null),children:t})]})}},374:(e,t,a)=>{a.d(t,{A:()=>M});var s,l=a(178),n=a(268),o=a(130),r=a(39),i=a(649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},c.apply(null,arguments)}const d=e=>i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),s||(s=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M15.207 29.967c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14Zm0 0v-16a4 4 0 0 1 4-4h1m-10 8h10"})));var u;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},m.apply(null,arguments)}const h=e=>i.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:31,height:31,fill:"none"},e),u||(u=i.createElement("path",{stroke:"#fff",strokeWidth:2,d:"M9.54 12.967v10m12 0v-5a4 4 0 1 0-8 0v5-10m-5-3h2m-7-8h24a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2h-24a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z"}))),x=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/;var p;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_.apply(null,arguments)}const f=e=>i.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,stroke:"currentColor",strokeWidth:1.5},e),p||(p=i.createElement("path",{d:"m4 4 16 16m0-16L4 20"}))),g="ContactModal-module__field--c99HI",v="ContactModal-module__inputWrapper--e2l3N",b="ContactModal-module__inputWrapperError--s_bqB",j="ContactModal-module__input--wuaB7",w="ContactModal-module__error--jso6D",N=({isOpen:e,onClose:t,fluidMode:a})=>{const s=(0,o.u)(a),[c,d]=(0,i.useState)({firstName:"",phone:"",email:"",companyName:"",message:""}),[u,m]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),[_,N]=(0,i.useState)({}),k=(0,i.useCallback)(()=>{const e={};return c.firstName.trim()||(e.firstName="First Name is required"),c.phone.trim()?c.phone.replace(/\D/g,"").length>=7||(e.phone="Phone must contain at least 7 digits"):e.phone="Phone is required",c.email.trim()?function(e){return x.test(e)}(c.email)||(e.email="Please enter a valid email"):e.email="Email is required",c.companyName.trim()||(e.companyName="Company Name is required"),N(e),0===Object.keys(e).length},[c]),y=(0,i.useCallback)(async e=>{if(e.preventDefault(),k()){m(!0);try{const e={brand:"ratehawk",cooperation_type:"api",kind:"b2b",white_label_slug:"ratehawk",email:c.email,message:c.message,company_name:c.companyName,name:c.firstName,phone:c.phone};if(!(await fetch("https://www.ratehawk.com/partner/user_area/v1/anonymous/contact_us/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to submit form");p(!0)}catch(e){console.error("Form submission error:",e)}finally{m(!1)}}},[c,k]),C=(0,i.useCallback)(e=>t=>{d(a=>({...a,[e]:t.target.value})),_[e]&&N(t=>({...t,[e]:void 0}))},[_]),L=(0,i.useCallback)(()=>{d({firstName:"",phone:"",email:"",companyName:"",message:""}),N({}),p(!1),t()},[t]);return e?(0,l.jsx)("div",{className:(0,r.L)("ContactModal-module__overlay--ti1yT",s),onClick:L,children:(0,l.jsxs)("div",{className:"ContactModal-module__modal--Xzwl2",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("button",{className:(0,r.L)("ContactModal-module__closeButton--qvADd",s),onClick:L,type:"button",children:(0,l.jsx)(f,{})}),h?(0,l.jsxs)("div",{className:"ContactModal-module__successMessage--Nyhi4",children:[(0,l.jsx)("h2",{className:"ContactModal-module__successTitle--dVn02",children:"Successfully accepted"}),(0,l.jsx)("p",{className:"ContactModal-module__successText--KJznx",children:"Your application has flown to our caring specialists! We will contact you soon"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"ContactModal-module__title--XrI8J",children:(0,l.jsx)("span",{className:"ContactModal-module__titleText--HH4uj",children:"Cooperation"})}),(0,l.jsx)("p",{className:"ContactModal-module__subtitle--dS9UA",children:"Drop us a line and we will get back to you as soon as possible!"}),(0,l.jsxs)("form",{className:"ContactModal-module__form--XuQzj",onSubmit:y,children:[(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.firstName?b:""}`,children:(0,l.jsx)("input",{type:"text",className:j,value:c.firstName,onChange:C("firstName"),placeholder:"First Name *"})}),_.firstName&&(0,l.jsx)("span",{className:w,children:_.firstName})]}),(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.phone?b:""}`,children:(0,l.jsx)("input",{type:"tel",className:j,value:c.phone,onChange:C("phone"),placeholder:"Phone *"})}),_.phone&&(0,l.jsx)("span",{className:w,children:_.phone})]}),(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.email?b:""}`,children:(0,l.jsx)("input",{type:"email",className:j,value:c.email,onChange:C("email"),placeholder:"Email Address *"})}),_.email&&(0,l.jsx)("span",{className:w,children:_.email})]}),(0,l.jsxs)("div",{className:g,children:[(0,l.jsx)("label",{className:`${v} ${_.companyName?b:""}`,children:(0,l.jsx)("input",{type:"text",className:j,value:c.companyName,onChange:C("companyName"),placeholder:"Company Name *"})}),_.companyName&&(0,l.jsx)("span",{className:w,children:_.companyName})]}),(0,l.jsx)("div",{className:g,children:(0,l.jsx)("label",{className:"ContactModal-module__textareaWrapper--rSQEQ",children:(0,l.jsx)("textarea",{className:"ContactModal-module__textarea--i19oy",value:c.message,onChange:C("message"),placeholder:"Message",rows:4})})}),(0,l.jsx)(n.A,{type:"submit",theme:"primary",variant:"white",disabled:u,className:"ContactModal-module__submitButton--qbQOa",children:u?"Sending...":"Send"})]})]})]})}):null},k="Footer-module__footerLink--ipb6W",y="Footer-module__footerLegalText--xlXoo",C="Footer-module__footerParagraphSection--rin95",L=[{title:"For marketing and PR",text:"We regularly run promotions, campaigns, and partner events to engage and incentivize our clients with special offers. If you interested in such partnership please contact us at {{link}}.",link:"pr@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__marketingBlock--DnIGu"},{title:"For affiliates partnerships",text:"Integrate our solution to make it easy and profitable to book hotels through your website or online service. Integrate quickly and reliably with our system. Still have questions? Contact us at {{link}}.",link:"affiliate@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__affiliatesBlock--jVQ0L"},{title:"For suppliers",text:"As official partners of the world's largest OTA, wholesalers, consolidators, and DMCs, we invite you to enhance your sales and grow your business together. Contact us at {{link}}.",link:"tpp@emergingtravel.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__suppliersBlock--yrn9l"},{title:"For hotels",text:"Become our partner to increase your direct sales and the popularity of your accommodation options. \u2028For partnership inquiries, please contact us at {{link}}.",link:"hotels@emergingtravel.com",button:{text:"Learn more",url:"https://www.ratehawk.com/lp/en-us/travel-related-websites/"},cssClass:"Footer-module__hotelsBlock--uGUyj"},{title:"For technology providers",text:"If you are a mid-office or platform interested in integrating with RateHawk to develop your business, please contact us at {{link}}.",link:"api@ratehawk.com",button:{text:"Cooperate",action:"form"},cssClass:"Footer-module__providersBlock--Zmk8W"}],M=({className:e="",fluidMode:t,...a})=>{const[s,c]=(0,i.useState)(!1),u=(0,o.u)(t),m=(0,i.useCallback)(()=>{c(!0)},[]),x=(0,i.useCallback)(()=>{c(!1)},[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("footer",{...a,className:(0,r.L)("Footer-module__root--T9ly6",e,u),children:[(0,l.jsxs)("div",{className:"Footer-module__header--hy1ME",children:[(0,l.jsx)("p",{className:"Footer-module__title--OX7d9",children:"Partnership"}),(0,l.jsx)("p",{className:"Footer-module__subTitle--EmP0b",children:"Cooperate and grow together with RateHawk"})]}),(0,l.jsx)("ul",{className:"Footer-module__advantages--z7ASK",children:L.map(e=>(0,l.jsxs)("li",{className:(0,r.L)("Footer-module__advantageItem--EcCx_",e.cssClass),children:[(0,l.jsxs)("div",{className:"Footer-module__advantageInfo--Ilud0",children:[(0,l.jsx)("h6",{className:"Footer-module__advantageTitle--spnaR",children:(0,l.jsx)("span",{className:"Footer-module__advantageTitleText--cMrU_",children:e.title})}),(0,l.jsx)("p",{className:"Footer-module__advantageText--BHbmo",dangerouslySetInnerHTML:{__html:e.text.replace("{{link}}",`<a class="Footer-module__advantageLink--bcoK8" href="mailto:${e.link}">${e.link}</a>`)}})]}),(0,l.jsx)(n.A,{theme:"secondary",variant:"white",...e.button.url?{url:e.button.url}:{onClick:m},children:e.button.text})]},e.title))}),(0,l.jsxs)("div",{className:"Footer-module__footerBottom--u_o7y",children:[(0,l.jsxs)("div",{className:"Footer-module__footerLeft--nnkZo",children:[(0,l.jsxs)("div",{className:"Footer-module__social--H1Yw4",children:[(0,l.jsx)("a",{href:"https://www.facebook.com/ratehawk",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(d,{})}),(0,l.jsx)("a",{href:"https://www.linkedin.com/company/ratehawk-com/",target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(h,{})})]}),(0,l.jsxs)("ul",{className:"Footer-module__footerLinks--R9Hnr",children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://www.ratehawk.com/lp/en-us/career",target:"_blank",rel:"noopener noreferrer",className:k,children:"Careers"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://blog.ratehawk.com/",target:"_blank",rel:"noopener noreferrer",className:k,children:"Blog"})})]})]}),(0,l.jsxs)("div",{className:"Footer-module__footerLegal--jAGGe",children:[(0,l.jsxs)("div",{className:C,children:[(0,l.jsx)("p",{className:y,children:"Leaside Services Limited, reg.no HE342401, Business Address: 17 Karaiskaki Street, Office 22, Agaia Triada, Limassol, Cyprus, 3032 Emerging Travel Inc., reg.no 4869611, Business Address: 1000 N West Street, Suite 1200, Wilmington, DE 19801 USA EMERGING TRAVEL UK LIMITED, Company number 12185384, Business Address: 19 Eastbourne Terrace, Office 3.01, Paddington, London, W2 6LG, UK"}),(0,l.jsx)("p",{className:y,children:"Emerging Travel Germany ETG GmbH, HRB 213546, Business Address: Friedrichstraße 171, 10117 Berlin, Germany"}),(0,l.jsx)("p",{className:y,children:"Emerging Travel Kazakhstan LLP, BIN 191240026456, Business address: Office SP2-18, 280 Baizakova Street, Bostandykskiy district, 050040, Almaty, Republic of Kazakhstan"}),(0,l.jsx)("p",{className:y,children:"Smart Middle East Travel Agency L.L.C, Reg.no: 1803677, Business address: Al Rigga - Office No. 202-201-221, Insurance Building, Dubai, UAE"}),(0,l.jsx)("p",{className:y,children:"Emerging Travel Asia PTE. LTD, Reg.no: 201927854K, TA license: TA03682, Business address: 300 Tampines Avenue 5 #09-02, Tampines Junction Singapore 529653"})]}),(0,l.jsx)("div",{className:C,children:(0,l.jsx)("p",{className:y,children:(0,l.jsx)("a",{href:"https://www.ratehawk.com/legal/site/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Personal data processing and storage policy"})})}),(0,l.jsx)("div",{className:C,children:(0,l.jsx)("p",{className:y,children:"Digital Services Act"})}),(0,l.jsx)("div",{className:C,children:(0,l.jsx)("p",{className:y,children:"Ratehawk is a registered service mark in the European Union"})})]})]})]}),(0,l.jsx)(N,{isOpen:s,onClose:x,fluidMode:t})]})}},649:(e,a,s)=>{var l,n;e.exports=(l={createElement:()=>t.createElement,useCallback:()=>t.useCallback,useEffect:()=>t.useEffect,useRef:()=>t.useRef,useState:()=>t.useState},n={},s.d(n,l),n)},670:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(178),l=a(130),n=a(39);const o={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:t,location:a,stars:r,image:i,dates:c,discountText:d,onClick:u,url:m,width:h="auto",price:x,fluidMode:p,..._})=>{const f=(0,l.u)(p),g=m?"a":"div",v=m?{href:m,target:"_blank",rel:"noopener noreferrer"}:{};return(0,s.jsxs)(g,{..._,...v,className:(0,n.L)(o.root,f,"fixed"===h&&o.rootFixed,e,m&&o.clickable),onClick:u,children:[(0,s.jsxs)("div",{className:o.imageContainer,children:[(0,s.jsx)("img",{src:i,alt:t,className:o.image}),d?(0,s.jsx)("div",{className:o.discount,children:(0,s.jsx)("span",{className:o.discountText,dangerouslySetInnerHTML:{__html:d}})}):null]}),(0,s.jsxs)("div",{className:o.content,children:[(()=>{if(!r)return null;const e=[];for(let a=0;a<5;a++)e.push((0,s.jsx)("div",{className:a<r?o.starFilled:o.starEmpty},`star-${t}-${a}`));return(0,s.jsx)("div",{className:o.stars,children:e})})(),(0,s.jsx)("h3",{className:o.title,children:t}),a&&(0,s.jsx)("p",{className:o.location,children:a}),c&&(0,s.jsxs)("p",{className:o.dates,children:["Travel Dates: ",c]}),(0,s.jsx)("div",{className:o.priceInfoWrapper,children:(0,s.jsx)("div",{className:o.priceInfo,children:x?(0,s.jsxs)("div",{className:o.priceText,children:[(0,s.jsxs)("div",{className:o.mainPriceText,children:["From ",(0,s.jsx)("strong",{children:x})]}),(0,s.jsx)("div",{className:o.infoPriceText,children:(0,s.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,s.jsx)("div",{className:o.bookNowText,children:"Book now"})})})]})]})}},992:(e,t,a)=>{a.d(t,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return a[e](n,n.exports,l),n.exports}l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n=l(178),o=l(130),r=l(39),i=l(374),c=l(94),d=l(110);var u=l(93);const m=({className:e="",heroYellowText:t,heroWhiteText:a,hotelsTitle:s,hotelsSubtitle:l,hotels:m,backgroundMobile:h,backgroundDesktop:x,backgroundDesktop2x:p,heroLogo:_=!0,fluidMode:f,onLoginClick:g,onRegisterClick:v,...b})=>{const j=(0,o.u)(f);return(0,n.jsxs)("div",{...b,className:(0,r.L)("HotelsLanding-module__root--JnV8j",j,e),children:[(0,n.jsx)(c.A,{onLoginClick:g,onRegisterClick:v,fluidMode:f}),(0,n.jsxs)("main",{children:[(0,n.jsx)(d.A,{yellowText:t,whiteText:a,showLogo:_,backgroundMobile:h,backgroundDesktop:x,backgroundDesktop2x:p}),(0,n.jsx)(u.A,{title:s,subtitle:l,hotels:m,fluidMode:f})]}),(0,n.jsx)(i.A,{})]})};export{m as default};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { type HotelCardProps } from '../HotelCard/HotelCard';
|
|
3
|
-
export interface HotelsSectionProps {
|
|
3
|
+
export interface HotelsSectionProps extends Omit<React.HTMLAttributes<HTMLElement>, 'className'> {
|
|
4
|
+
className?: string;
|
|
4
5
|
title?: string;
|
|
5
6
|
subtitle?: string;
|
|
6
7
|
hotels: HotelCardProps[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotelsSection.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HotelsSection/HotelsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"HotelsSection.d.ts","sourceRoot":"","sources":["../../../src/rh-components/HotelsSection/HotelsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxE,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAsC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";var t={39:(e,t,o)=>{o.d(t,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},93:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(178),l=o(130),a=o(39),n=o(670);const r=({
|
|
1
|
+
import*as e from"react/jsx-runtime";var t={39:(e,t,o)=>{o.d(t,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},93:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(178),l=o(130),a=o(39),n=o(670);const r=({className:e,title:t,subtitle:o,hotels:r,fluidMode:i,...d})=>{const c=(0,l.u)(i);return(0,s.jsxs)("section",{...d,className:(0,a.L)("HotelsSection-module__hotels--hGJyx",c,e),children:[t||o?(0,s.jsxs)("header",{className:"HotelsSection-module__hotelsHeader--l_Qr5",children:[t&&(0,s.jsx)("h2",{className:"HotelsSection-module__hotelsTitle--zeGAj",children:t}),o&&(0,s.jsx)("p",{className:"HotelsSection-module__hotelsSubtitle--EAJhs",children:o})]}):null,(0,s.jsx)("ul",{className:"HotelsSection-module__hotelsList--jWxYc",children:r.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n.A,{className:"HotelsSection-module__hotelCard--aCwpN",name:e.name,location:e.location,stars:e.stars,image:e.image,dates:e.dates,discountText:e.discountText,url:e.url,fluidMode:i})},e.name))})]})}},130:(e,t,o)=>{o.d(t,{N:()=>l,u:()=>a}),o(178);var s=o(992);const l=({children:e,fluidMode:t=!1})=>{fluidModeState.state=t;const o=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${t?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:o}}),e]})},a=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(t,o,s)=>{var l,a;t.exports=(l={jsx:()=>e.jsx,jsxs:()=>e.jsxs},a={},s.d(a,l),a)},670:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(178),l=o(130),a=o(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:t,location:o,stars:r,image:i,dates:d,discountText:c,onClick:m,url:u,width:f="auto",price:_,fluidMode:x,...h})=>{const p=(0,l.u)(x),j=u?"a":"div",C=u?{href:u,target:"_blank",rel:"noopener noreferrer"}:{};return(0,s.jsxs)(j,{...h,...C,className:(0,a.L)(n.root,p,"fixed"===f&&n.rootFixed,e,u&&n.clickable),onClick:m,children:[(0,s.jsxs)("div",{className:n.imageContainer,children:[(0,s.jsx)("img",{src:i,alt:t,className:n.image}),c?(0,s.jsx)("div",{className:n.discount,children:(0,s.jsx)("span",{className:n.discountText,dangerouslySetInnerHTML:{__html:c}})}):null]}),(0,s.jsxs)("div",{className:n.content,children:[(()=>{if(!r)return null;const e=[];for(let o=0;o<5;o++)e.push((0,s.jsx)("div",{className:o<r?n.starFilled:n.starEmpty},`star-${t}-${o}`));return(0,s.jsx)("div",{className:n.stars,children:e})})(),(0,s.jsx)("h3",{className:n.title,children:t}),o&&(0,s.jsx)("p",{className:n.location,children:o}),d&&(0,s.jsxs)("p",{className:n.dates,children:["Travel Dates: ",d]}),(0,s.jsx)("div",{className:n.priceInfoWrapper,children:(0,s.jsx)("div",{className:n.priceInfo,children:_?(0,s.jsxs)("div",{className:n.priceText,children:[(0,s.jsxs)("div",{className:n.mainPriceText,children:["From ",(0,s.jsx)("strong",{children:_})]}),(0,s.jsx)("div",{className:n.infoPriceText,children:(0,s.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,s.jsx)("div",{className:n.bookNowText,children:"Book now"})})})]})]})}},992:(e,t,o)=>{o.d(t,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},o={};function s(e){var l=o[e];if(void 0!==l)return l.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,s),a.exports}s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};s.d(l,{A:()=>a.A});var a=s(93);const n=l.A;export{n as default};
|