%PDF- %PDF-
Direktori : /var/www/html/.next/server/pages/ |
Current File : /var/www/html/.next/server/pages/index.js |
"use strict"; (() => { var exports = {}; exports.id = 405; exports.ids = [405]; exports.modules = { /***/ 3678: /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ Home), /* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _src_Components_Header__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5127); /* harmony import */ var _src_Components_About__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6343); /* harmony import */ var _src_Components_ChooseTour__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6121); /* harmony import */ var _src_Components_Rent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(395); /* harmony import */ var _src_Components_News__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6856); /* harmony import */ var _src_Components_Contact__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2300); /* harmony import */ var _src_Components_Global_CustomHead__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(787); var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_src_Components_Header__WEBPACK_IMPORTED_MODULE_1__, _src_Components_About__WEBPACK_IMPORTED_MODULE_2__, _src_Components_ChooseTour__WEBPACK_IMPORTED_MODULE_3__, _src_Components_Rent__WEBPACK_IMPORTED_MODULE_4__, _src_Components_News__WEBPACK_IMPORTED_MODULE_5__, _src_Components_Contact__WEBPACK_IMPORTED_MODULE_6__]); ([_src_Components_Header__WEBPACK_IMPORTED_MODULE_1__, _src_Components_About__WEBPACK_IMPORTED_MODULE_2__, _src_Components_ChooseTour__WEBPACK_IMPORTED_MODULE_3__, _src_Components_Rent__WEBPACK_IMPORTED_MODULE_4__, _src_Components_News__WEBPACK_IMPORTED_MODULE_5__, _src_Components_Contact__WEBPACK_IMPORTED_MODULE_6__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__); function Home({ data , seo }) { return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_Global_CustomHead__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, { data: seo }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_Header__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { data: data }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_About__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { data: data }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "vector-wrapper", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_ChooseTour__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { data: data }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_Rent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { data: data }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_News__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { data: data }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_src_Components_Contact__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {}) ] }); } async function getServerSideProps(ctx) { const res = await fetch(`https://api.atvbuggy-dubrovnik.com/wp-json/api/v1/homepage`).then((response)=>response.json()).then((data)=>data); const seo = await fetch(`https://api.atvbuggy-dubrovnik.com/wp-json/wp/v2/pages?slug=homepage`).then((response)=>response.json()).then((data)=>data[0]); if (!res) { return { notFound: true }; } return { props: { data: res, seo: seo.yoast_head_json } }; } __webpack_async_result__(); } catch(e) { __webpack_async_result__(e); } }); /***/ }), /***/ 6343: /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5675); /* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_image__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2905); /* harmony import */ var gsap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4287); /* harmony import */ var gsap__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(gsap__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4965); /* harmony import */ var gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _Backgrounds__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4078); var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([html_react_parser__WEBPACK_IMPORTED_MODULE_3__]); html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0]; //bg // import { useInView } from "./useInView"; // import { useGlobalContext } from "./store/context/GlobalContext"; gsap__WEBPACK_IMPORTED_MODULE_4__.gsap.registerPlugin(gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__.ScrollTrigger); function About({ data }) { // const targetColorRef = useRef(null); // const useTarget = useInView(targetColorRef, { threshold: 0.1 }); // const { setIsColor } = useGlobalContext(); // useEffect(() => { // if (useTarget) { // setIsColor("white"); // } else { // setIsColor("original"); // } // }, [useTarget]); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ let aboutWrapper = document.querySelector("#intro"); gsap__WEBPACK_IMPORTED_MODULE_4__.gsap.timeline({ scrollTrigger: { trigger: ".mainAbout", start: "-25% top", onEnter: ()=>aboutWrapper.classList.add("revealed"), onLeave: ()=>aboutWrapper.classList.remove("revealed"), onEnterBack: ()=>aboutWrapper.classList.add("revealed"), onLeaveBack: ()=>aboutWrapper.classList.remove("revealed") } }); let width = screen.width; gsap__WEBPACK_IMPORTED_MODULE_4__.gsap.to(width < 768 ? "[data-mobile-speed]" : "[data-speed]", { y: (i, el)=>(1 - parseFloat(el.getAttribute(width < 768 ? "data-mobile-speed" : "data-speed"))) * gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__.ScrollTrigger.maxScroll(window), ease: "none", scrollTrigger: { start: width < 768 ? "15%" : "20%", end: "max", invalidateOnRefresh: true, scrub: 0 } }); }, []); return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "mainAbout orange", id: "aboutScroll", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "intro", id: "intro", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { id: "about", className: "text", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "adventureDiv", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { children: data.small_title_adv }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.title_adv) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.description_adv) }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "images", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_2___default()), { src: `${data.right_image}`, width: 535, height: 690, layout: "responsive", alt: "" }) }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "aboutBackground", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Backgrounds__WEBPACK_IMPORTED_MODULE_6__/* .AboutBg */ .w_, {}) }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "lowerIntro", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "title", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.second_title_adv) }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "text", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.second_description_adv) }) }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "dubrovnik", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "dubrovnikBackground", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { className: "sticky-title", children: data.title_gallery }) }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "collage col1", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { "data-mobile-speed": "1.5", "data-speed": "2", className: "image", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_2___default()), { src: `${data.gallery[0]}`, alt: "", width: 554, height: 482, layout: "responsive" }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { "data-mobile-speed": "1.5", "data-speed": "1.25", className: "image", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_2___default()), { src: `${data.gallery[1]}`, alt: "", width: 554, height: 482, layout: "responsive" }) }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "collage col2", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { "data-mobile-speed": "1.5", "data-speed": "1.5", className: "image", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_2___default()), { src: `${data.gallery[2]}`, alt: "", width: 554, height: 482, layout: "responsive" }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { "data-mobile-speed": "1.5", "data-speed": "1.5", className: "image", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_2___default()), { src: `${data.gallery[3]}`, alt: "", width: 554, height: 482, layout: "responsive" }) }) ] }) ] }) ] }); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (About); __webpack_async_result__(); } catch(e) { __webpack_async_result__(e); } }); /***/ }), /***/ 6121: /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5675); /* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_image__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1664); /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2905); /* harmony import */ var _Icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8777); /* harmony import */ var _Backgrounds__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4078); var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([html_react_parser__WEBPACK_IMPORTED_MODULE_3__]); html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0]; //icons //bg function ChooseTour({ data }) { return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "mainTour", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "intro", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "toursBackground", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Backgrounds__WEBPACK_IMPORTED_MODULE_5__/* .ToursBg */ .nA, {}) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "animationWrap", children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "animate", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "items", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_tours }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_tours }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "items", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_tours }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_tours }) ] }) ] }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "tourDiv", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { children: data.small_title_tours }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.title_tours) }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "tours", children: data.tours.map((tour, id)=>{ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "group", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "indexWrap", children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { className: "index", children: [ "0", id + 1 ] }) }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "main", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { children: tour.title }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { children: tour.description }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "specs", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "first", children: tour.bullets.slice(0, 3).map((bullet, id)=>{ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "iconWrap", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "atvIcon", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_1___default()), { src: `${bullet.icon}`, width: 20, height: 20 }) }), " ", /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: bullet.text }) ] }, id); }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "second", children: tour.bullets.slice(3, 6).map((bullet, id)=>{ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "iconWrap", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "atvIcon", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_1___default()), { src: `${bullet.icon}`, width: 20, height: 20 }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: bullet.text }) ] }, id); }) }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "price", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "startFrom", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "price-block", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: tour.single_price_label }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(tour.price) }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "price-block", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: tour.double_price_label }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(tour.double_price) }) ] }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_link__WEBPACK_IMPORTED_MODULE_2___default()), { href: `/tours/${tour.slug}`, children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "book", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "arrows", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_4__/* .ArrowsRightBlack */ .CG, {}) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: "Book Now" }) ] }) }) ] }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "image", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_1___default()), { src: tour.image, alt: "", layout: "responsive", width: 517, height: 689, quality: 100 }) }) ] }, id); }) }) ] }); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChooseTour); __webpack_async_result__(); } catch(e) { __webpack_async_result__(e); } }); /***/ }), /***/ 5127: /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8777); /* harmony import */ var html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2905); /* harmony import */ var gsap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4287); /* harmony import */ var gsap__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(gsap__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4965); /* harmony import */ var gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__); var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([html_react_parser__WEBPACK_IMPORTED_MODULE_3__]); html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0]; gsap__WEBPACK_IMPORTED_MODULE_4__.gsap.registerPlugin(gsap_dist_ScrollTrigger__WEBPACK_IMPORTED_MODULE_5__.ScrollTrigger); function Header({ data }) { let title = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); function scrollToTargetAdjusted(target) { let element = document.querySelector(target); let headerOffset = document.querySelector(".heroLogo .logo").offsetHeight; let elementPosition = element.getBoundingClientRect().top; let offsetPosition = elementPosition + window.pageYOffset - headerOffset; let mobileOffsetPosition = elementPosition + window.pageYOffset - headerOffset - 50; window.scrollTo({ top: headerOffset < 125 ? mobileOffsetPosition : offsetPosition, behavior: "smooth" }); } (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ setTimeout(()=>{ const heroText = gsap__WEBPACK_IMPORTED_MODULE_4__.gsap.timeline({ scrollTrigger: { trigger: ".mainHeader", start: "top top", end: "+=50%", pin: true, scrub: 1 } }); heroText.to(title, { scale: 60, x: "100%", ease: "none" }); }); }, []); return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "hero-wrapper", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "mainHeader", children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "intro", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { children: data.small_text }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "adventure-title-div", ref: (element)=>{ title = element; }, children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_2__/* .AdventureTitle */ .HA, {}) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { className: "atvTours", children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.small_text_second) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { href: "#aboutScroll", onClick: (e)=>{ e.preventDefault(); scrollToTargetAdjusted(".mainAbout .intro .text h1"); }, children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "explore", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "arrows", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_2__/* .ArrowGroup */ .yR, {}) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.button_label }) ] }) }) ] }) }) }); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header); __webpack_async_result__(); } catch(e) { __webpack_async_result__(e); } }); /***/ }), /***/ 395: /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5675); /* harmony import */ var next_image__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_image__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1664); /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2905); /* harmony import */ var _Icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8777); var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([html_react_parser__WEBPACK_IMPORTED_MODULE_3__]); html_react_parser__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0]; // import { useEffect, useRef } from "react"; // import { useInView } from "./useInView"; // import { useGlobalContext } from "./store/context/GlobalContext"; function Rent({ data }) { // const targetColorRef1 = useRef(null); // const useTarget = useInView(targetColorRef1, { // rootMargin: "200px 0px 0px 0px", // threshold: 0.2, // }); // const { setIsColor } = useGlobalContext(); // useEffect(() => { // if (useTarget) { // setIsColor("fullWhite"); // } else { // setIsColor("original"); // } // }, [useTarget]); return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "mainRent", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "animationWrap", children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "animate", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "items", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_rent }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_rent }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "items", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_rent }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: data.small_title_rent }) ] }) ] }) }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "rentRow", children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "title", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "rentDiv", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { children: data.small_title_rent }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.title_rent) }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "text", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_3__["default"])(data.description_rent) }) }) ] }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "grid-rent", children: data.rents.map((rent, id)=>/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "imgRow", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "firstImg", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_1___default()), { src: `${rent.image}`, alt: "", width: 652, height: 542, objectFit: "contain", quality: 100 }) }) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "specsRow", children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "first", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_image__WEBPACK_IMPORTED_MODULE_1___default()), { src: rent.brandImage, alt: "", width: 166, height: 23 }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { children: rent.title }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("ul", { children: rent.bullets.map((bullet, id)=>/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("li", { children: bullet.text }, id)) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "buttons", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_link__WEBPACK_IMPORTED_MODULE_2___default()), { href: `/rent/${rent.slug}`, children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "book", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "arrows", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_4__/* .ArrowsRightBlack */ .CG, {}) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { children: "View More" }) ] }) }) }) ] }) }) ] }, id)) }) ] }); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rent); __webpack_async_result__(); } catch(e) { __webpack_async_result__(e); } }); /***/ }), /***/ 2296: /***/ ((module) => { module.exports = require("formik"); /***/ }), /***/ 4287: /***/ ((module) => { module.exports = require("gsap"); /***/ }), /***/ 4965: /***/ ((module) => { module.exports = require("gsap/dist/ScrollTrigger"); /***/ }), /***/ 3280: /***/ ((module) => { module.exports = require("next/dist/shared/lib/app-router-context.js"); /***/ }), /***/ 2796: /***/ ((module) => { module.exports = require("next/dist/shared/lib/head-manager-context.js"); /***/ }), /***/ 4957: /***/ ((module) => { module.exports = require("next/dist/shared/lib/head.js"); /***/ }), /***/ 4014: /***/ ((module) => { module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js"); /***/ }), /***/ 744: /***/ ((module) => { module.exports = require("next/dist/shared/lib/image-config-context.js"); /***/ }), /***/ 5843: /***/ ((module) => { module.exports = require("next/dist/shared/lib/image-config.js"); /***/ }), /***/ 8524: /***/ ((module) => { module.exports = require("next/dist/shared/lib/is-plain-object.js"); /***/ }), /***/ 8020: /***/ ((module) => { module.exports = require("next/dist/shared/lib/mitt.js"); /***/ }), /***/ 4406: /***/ ((module) => { module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js"); /***/ }), /***/ 4964: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router-context.js"); /***/ }), /***/ 1751: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js"); /***/ }), /***/ 6220: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/compare-states.js"); /***/ }), /***/ 299: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js"); /***/ }), /***/ 3938: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/format-url.js"); /***/ }), /***/ 9565: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js"); /***/ }), /***/ 5789: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js"); /***/ }), /***/ 1897: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/is-bot.js"); /***/ }), /***/ 1428: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js"); /***/ }), /***/ 8854: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/parse-path.js"); /***/ }), /***/ 1292: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js"); /***/ }), /***/ 4567: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js"); /***/ }), /***/ 979: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/querystring.js"); /***/ }), /***/ 3297: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js"); /***/ }), /***/ 6052: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js"); /***/ }), /***/ 4226: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js"); /***/ }), /***/ 5052: /***/ ((module) => { module.exports = require("next/dist/shared/lib/router/utils/route-regex.js"); /***/ }), /***/ 9232: /***/ ((module) => { module.exports = require("next/dist/shared/lib/utils.js"); /***/ }), /***/ 968: /***/ ((module) => { module.exports = require("next/head"); /***/ }), /***/ 6689: /***/ ((module) => { module.exports = require("react"); /***/ }), /***/ 997: /***/ ((module) => { module.exports = require("react/jsx-runtime"); /***/ }), /***/ 5609: /***/ ((module) => { module.exports = require("yup"); /***/ }), /***/ 2905: /***/ ((module) => { module.exports = import("html-react-parser");; /***/ }), /***/ 3877: /***/ ((module) => { module.exports = import("swiper");; /***/ }), /***/ 3015: /***/ ((module) => { module.exports = import("swiper/react");; /***/ }), /***/ 5941: /***/ ((module) => { module.exports = import("swr");; /***/ }) }; ; // load runtime var __webpack_require__ = require("../webpack-runtime.js"); __webpack_require__.C(exports); var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) var __webpack_exports__ = __webpack_require__.X(0, [676,61,783,787,300,78,856], () => (__webpack_exec__(3678))); module.exports = __webpack_exports__; })();