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OlF,EAAoB,CAE7B,IAAMmF,EAAe,EAAE,CACnBC,EAAkBpF,EAAMtC,OAAO,CACjCwH,EACAG,IACEF,EAAa/I,IAAI,CAACiJ,GACX,yBAKXD,EAAkBA,EACf1H,OAAO,CAfK,uBAeMmH,GAEVA,EAAInH,OAAO,CAAC,iBAAkB,mBAEtCA,OAAO,CAAC,iBAAkB,mBAC1BA,OAAO,CAAC,gBAAiB,mBACzBA,OAAO,CAAC,gBAAiB,kBACzBA,OAAO,CAAC,gBAAiB,kBACzBA,OAAO,CAAC,4BAA6B,2BAGxC,IAAI4H,EAAmB,EAKvB,OAJkBF,EAAgB1H,OAAO,CAAC,wBAAyB,IAC1DyH,CAAY,CAACG,IAAmB,CAI3C,CAGA,GAAIC,MAAMC,OAAO,CAACxF,GAChB,OAAOA,EAAMuE,GAAG,CAACkB,GAAQ3B,EAAgC2B,IAI3D,GAAI,iBAAOzF,EAAoB,CAC7B,IAAM0F,EAAS,CAAC,EAChB,IAAK,IAAMC,KAAO3F,EACZ4F,OAAOC,SAAS,CAACC,cAAc,CAACC,IAAI,CAAC/F,EAAO2F,IAC9CD,CAAAA,CAAM,CAACC,EAAI,CAAG7B,EAAgC9D,CAAK,CAAC2F,EAAI,GAG5D,OAAOD,CACT,CAGA,OAAO1F,CACT","sources":["webpack://_N_E/?c0b5","webpack://_N_E/./api/newsletterSubscriptionMutation.ts","webpack://_N_E/./utils/getUserName.js","webpack://_N_E/./layouts/Newsletter/Newsletter.tsx","webpack://_N_E/./layouts/PageHero.tsx","webpack://_N_E/./pages/guides.tsx","webpack://_N_E/./utils/trip-sheppered-text.js","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/guides\",\n function () {\n return require(\"private-next-pages/guides.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/guides\"])\n });\n }\n ","import { gql } from '@apollo/client';\n\nconst SUBSCRIBE_TO_NEWSLETTER = gql`\n mutation SubscribeToNewsletter($status: String, $email: String) {\n insert_boatnew_news_letter_subscribers(\n objects: { status: $status, email: $email }\n ) {\n affected_rows\n }\n }\n`;\nexport default SUBSCRIBE_TO_NEWSLETTER;\n","export function extractUserName(email) {\n const parts = email.split('@');\n const username = parts[0];\n const cleanUsername = username.replace(/[^a-zA-Z]/g, '');\n return cleanUsername;\n}\n","import React, { useEffect, useState } from 'react';\nimport { toast } from 'react-toastify';\nimport styled from 'styled-components';\nimport 'react-toastify/dist/ReactToastify.css';\nimport { useMutation } from '@apollo/client';\nimport SUBSCRIBE_TO_NEWSLETTER from '../../api/newsletterSubscriptionMutation';\nimport { extractUserName } from '../../utils/getUserName';\nimport { useAuthContext } from '../../utils/context/authContext';\nimport { useRouter } from 'next/router';\nimport Image from 'next/image';\nimport { SocialMediaIcons } from '../../shared-components/SocialMediaIcons';\n\nconst Newsletter = ({}) => {\n const { user }: any = useAuthContext();\n const [email, setEmail] = useState('');\n const [subscribeToNewsletter] = useMutation(SUBSCRIBE_TO_NEWSLETTER);\n useEffect(() => {\n setEmail(user !== null && user.emailVerified ? user.email : '');\n }, [user]);\n\n const handleSubmit = async (event: React.FormEvent) => {\n const username = extractUserName(email);\n\n event.preventDefault();\n event.stopPropagation();\n try {\n const { data } = await subscribeToNewsletter({\n variables: {\n email: email,\n status: 'Subscribed'\n }\n });\n if (data.insert_boatnew_news_letter_subscribers.affected_rows > 0) {\n const emailData = {\n userName: username,\n email: email\n };\n await fetch('/api/subscription_mail', {\n method: 'POST',\n body: JSON.stringify(emailData)\n });\n toast.success('Successfully subscribed to our Newsletters!');\n setEmail('');\n } else {\n toast.error('Subscription failed. Please try again later.');\n setEmail('');\n }\n } catch (error) {\n if (\n error instanceof Error &&\n error.toString().includes('Uniqueness violation')\n ) {\n toast.error(\n 'This email is already subscribed. Please use a different email.'\n );\n } else {\n toast.error('An error occurred. Please try again later.');\n }\n }\n };\n\n const NewsletterHeading = styled.h2`\n font-weight: 600;\n text-align: center;\n color: #333333;\n `;\n const SeparatorLine = styled.div`\n height: 1px;\n background: rgba(5, 7, 60, 0.6);\n border: 1px rgba(19, 19, 19, 0.6);\n `;\n const Newsletter = styled.p`\n font-weight: 400;\n text-align: center;\n `;\n const router = useRouter();\n return (\n <>\n \n
\n {/* \n
\n \n
\n
\n COMING SOON\n
\n
*/}\n
\n

\n Newsletter\n

\n \n Subscribe to our newsletter!\n \n \n
\n
\n \n Signup to our newsletter and we will make sure to let you know\n whenever we have news!\n \n
\n\n
\n
\n setEmail(e.target.value)}\n maxLength={50}\n minLength={2}\n value={email}\n />\n \n Subscribe\n \n
\n
\n \n \n \n );\n};\n\nexport default Newsletter;\n","import styled from 'styled-components';\nimport Image from 'next/image';\nimport { RefObject } from 'react';\n\ninterface IProps {\n title: string;\n snippet: string;\n media: string;\n altImage?: string;\n video: boolean;\n landing?: boolean;\n totalReviews?: Record;\n rating?: number;\n trustworthy?: boolean;\n partner?: boolean;\n partnerApplyRef?: RefObject;\n}\ninterface StyleProps {\n isVideo: boolean;\n}\nconst PageHeroStyle = styled.div`\n height: 55vh;\n position: relative;\n overflow: hidden !important;\n\n display: flex;\n @media (max-width: 540px) {\n height: 50vh;\n }\n .PageHero_container {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1.5rem;\n width: 100%;\n z-index: 30;\n @media (max-width: 540px) {\n gap: 1rem;\n }\n }\n`;\nconst StyledImage = styled(Image)`\n z-index: 0;\n object-fit: cover;\n`;\nconst StyledVideo = styled.video`\n height: 60vh;\n max-height: 69vh;\n object-fit: cover;\n position: absolute;\n z-index: 0;\n top: 0;\n @media (max-width: 2200px) {\n height: 69vh;\n max-height: 69vh;\n }\n @media (max-width: 540px) {\n height: 50vh;\n }\n width: 100vw !important;\n z-index: 1;\n`;\nconst PageHero = ({\n title,\n snippet,\n media,\n altImage,\n video,\n landing,\n partner,\n partnerApplyRef,\n trustworthy\n}: IProps): JSX.Element => {\n return (\n
\n \n
\n\n
\n {!video && (\n \n )}\n {video && (\n <>\n
\n \n
\n\n \n \n )}\n
\n
\n

\n {' '}\n {landing && (\n ULTRA\n )}{' '}\n {title.indexOf('ULTRA') !== -1 ? title.split('ULTRA')[1] : title}\n

\n\n {trustworthy && (\n
\n

\n Personal | Authentic | Local\n

\n
\n )}\n {snippet !== 'Size Matters' && (\n

\n {snippet}\n

\n )}\n {partner && (\n
\n {\n partnerApplyRef?.current?.scrollIntoView({\n behavior: 'smooth',\n block: 'center'\n });\n }}\n className=\"p-3 bg-[#F15C5A] text-white rounded-xl\"\n >\n Let's Partner Up\n \n
\n )}\n
\n
\n \n
\n );\n};\nexport default PageHero;\n","import React, { useState } from 'react';\nimport Head from 'next/head';\nimport PageHero from '../layouts/PageHero';\nimport client from '../apollo-client';\nimport { GUIDES_PAGE, GUIDES_PAGE_INTERFACE } from '../api/guidesPage';\nimport Image from 'next/image';\nimport styled from 'styled-components';\nimport Adventure from '../components/Reviews/Adventure';\nimport Newsletter from '../layouts/Newsletter/Newsletter';\nimport { replaceTripshepherdWithSeeSight } from '../utils/trip-sheppered-text';\ninterface GuideProps {\n background: boolean;\n reverse: boolean;\n}\ninterface ImageShadow {\n position: string;\n}\nexport async function getStaticProps() {\n const { data } = await client.query(GUIDES_PAGE);\n\n return {\n props: {\n guidesPage:\n data?.guidesPage &&\n JSON.parse(\n replaceTripshepherdWithSeeSight(JSON.stringify(data.guidesPage))\n ),\n headData: {\n metaDescription: data.guidesPage.metaDescription,\n title: data.guidesPage.pageTitle\n }\n }\n };\n}\n\nconst StyledImage = styled(Image)`\n box-shadow: ${props =>\n props.position === 'right'\n ? '8px -8px 0px -1px #1F2C5B '\n : ' -8px -8px 0px -1px #1F2C5B '};\n border-radius: 0.5rem;\n max-height: 400px;\n min-width: 300px;\n align-self: center;\n\n @media (max-width: 1000px) {\n min-width: 320px;\n max-height: 350px;\n }\n @media (max-width: 550px) {\n min-width: 380px;\n max-height: 380px;\n }\n @media (max-width: 380px) {\n min-width: 300px;\n }\n`;\nconst GuideCard = styled.div`\n display: flex;\n gap: 1rem;\n background-color: ${props => (props.background ? '#FAFAFA' : 'inherit')};\n flex-direction: ${props => (props.reverse ? 'row' : 'row-reverse')};\n margin-bottom: 2rem;\n @media (max-width: 1000px) {\n flex-direction: column-reverse;\n align-items: center;\n .text-body {\n width: 380px;\n }\n }\n @media (max-width: 550px) {\n .text-body {\n width: 380px;\n }\n }\n @media (max-width: 380px) {\n .text-body {\n width: 300px;\n }\n }\n`;\nconst SeeMoreButton = styled.button`\n font-style: normal;\n font-weight: 400;\n font-size: 20px;\n line-height: 24px;\n`;\n\nconst Guides = ({ guidesPage, headData }: GUIDES_PAGE_INTERFACE) => {\n const [guidesCount, setGuidesCount] = useState(4);\n return (\n <>\n \n \n \n {replaceTripshepherdWithSeeSight(headData?.title)}\n \n {/* */}\n \n \n \n \n
\n

\n Meet Our Guides\n

\n {guidesPage.guides.slice(0, guidesCount).map((guide, i) => (\n \n
\n

\n {guide.guide.firstName}\n

\n

\n {replaceTripshepherdWithSeeSight(guide.guide.biography)}\n

\n
\n \n \n ))}\n
\n {\n guidesCount === 4\n ? setGuidesCount(guidesPage.guides.length)\n : setGuidesCount(4);\n }}\n >\n {guidesCount === 4 ? `See More ` : 'See Less'}\n \n
\n \n \n
\n \n );\n};\n\nexport default Guides;\n","function replaceText(inputString) {\n // Replace \"https://www.seesight-tours.com\" with \"https://www.tripshepherd.com\"\n const replacedString1 = inputString?.replace(\n /https:\\/\\/www\\.seesight-tours\\.com/g,\n 'https://www.tripshepherd.com'\n );\n\n // Replace \"See Sight Tours\", \"seesight\", and \"see sight\" with \"Trip Shepperd\"\n const replacedString2 = replacedString1?.replace(\n /See Sight Tours|See Sight Tour|Seesight Tours|Trip Shepperd/gi,\n 'Tripshepherd'\n );\n\n return replacedString2;\n}\nexport function replaceTripShepherd(inputString) {\n // Replace \"https://www.seesight-tours.com\" with \"http://trip-shepperd.com\"\n // const replacedString1 = inputString.replace(\n // /https:\\/\\/www\\.seesight-tours\\.com/g,\n // 'http://trip-shepperd.com'\n // );\n\n // Replace \"See Sight Tours\", \"seesight\", and \"see sight\" with \"Trip Shepperd\"\n const replacedString2 = inputString?.replace(\n /Tripshepherd/gi,\n 'See Sight Tours'\n );\n\n return replacedString2;\n}\n\nexport function replaceCanonical(inputString) {\n // Replace \"https://www.seesight-tours.com\" with \"http://trip-shepperd.com\"\n if (!inputString) {\n return;\n }\n const replacedString1 = inputString?.replace(\n /https:\\/\\/www\\.seesight-tours\\.com/g,\n 'https://www.trip-shepperd.com'\n );\n\n return replacedString1;\n}\nexport function replaceTripshepherdWithSeeSight(input) {\n // Check if the input is null or undefined\n if (input == null) return input;\n\n // Regex to detect any Firebase storage URL referencing tripshepherd-prod\n // (e.g. https://firebasestorage.googleapis.com/v0/b/tripshepherd-prod.firebasestorage.app/o/... )\n // We want to skip these entirely, leaving them untouched.\n const firebaseTripshepherdProdRegex = new RegExp(\n 'https?:\\\\/\\\\/firebasestorage\\\\.googleapis\\\\.com\\\\/v0\\\\/b\\\\/tripshepherd-prod\\\\.firebasestorage\\\\.app\\\\/o\\\\/[^\\\\s]*',\n 'gi'\n );\n\n // Regex to detect general URLs anywhere else\n const urlRegex = /(https?:\\/\\/[^\\s]+)/g;\n\n if (typeof input === 'string') {\n // Step 1: Protect any link containing \"tripshepherd-prod\" by replacing it with a placeholder\n const placeholders = [];\n let protectedString = input.replace(\n firebaseTripshepherdProdRegex,\n match => {\n placeholders.push(match);\n return '__FIREBASE_TS_PROD__'; // unique placeholder\n }\n );\n\n // Step 2: Perform normal replacements on everything else\n protectedString = protectedString\n .replace(urlRegex, url => {\n // For any URL that wasn't matched above, replace \"tripshepherd\" with \"seesight-tours\"\n return url.replace(/tripshepherd/gi, 'seesight-tours');\n })\n .replace(/Trip Shepperd/g, 'See Sight Tours') // Replace text\n .replace(/Tripshepherd/g, 'See Sight Tours') // Replace text\n .replace(/TripShepherd/g, 'seesight-tours') // Replace text\n .replace(/tripshepherd/g, 'seesight-tours') // Replace text\n .replace(/Formerly See Sight Tours/g, 'Powered By Tripshepherd'); // Replace text\n\n // Step 3: Restore the untouched \"tripshepherd-prod\" Firebase links\n let placeholderIndex = 0;\n protectedString = protectedString.replace(/__FIREBASE_TS_PROD__/g, () => {\n return placeholders[placeholderIndex++];\n });\n\n return protectedString;\n }\n\n // If it's an array, apply the function recursively\n if (Array.isArray(input)) {\n return input.map(item => replaceTripshepherdWithSeeSight(item));\n }\n\n // If it's an object, apply the function recursively to each field\n if (typeof input === 'object') {\n const newObj = {};\n for (const key in input) {\n if (Object.prototype.hasOwnProperty.call(input, key)) {\n newObj[key] = replaceTripshepherdWithSeeSight(input[key]);\n }\n }\n return newObj;\n }\n\n // Return the input if it's neither a string, object, nor array\n return input;\n}\n\nexport default replaceText;\n"],"names":["window","__NEXT_P","push","__webpack_require__","SUBSCRIBE_TO_NEWSLETTER","gql","Newsletter_Newsletter","param","user","useAuthContext","email","setEmail","useState","subscribeToNewsletter","useMutation","useEffect","emailVerified","handleSubmit","event","username","extractUserName","parts","split","cleanUsername","replace","preventDefault","stopPropagation","data","variables","status","insert_boatnew_news_letter_subscribers","affected_rows","fetch","method","body","JSON","stringify","userName","toast","success","error","Error","toString","includes","NewsletterHeading","styled","h2","withConfig","SeparatorLine","div","Newsletter","p","useRouter","jsx_runtime","jsx","Fragment","section","id","className","jsxs","form","onSubmit","input","placeholder","name","required","type","onChange","e","target","value","maxLength","minLength","button","data-mdb-ripple","data-mdb-ripple-color","PageHeroStyle","StyledImage","Image","StyledVideo","video","__webpack_exports__","Z","title","snippet","media","altImage","landing","partner","partnerApplyRef","trustworthy","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","concat","alt","src","layout","quality","muted","loop","autoPlay","playsInline","priority","h1","span","indexOf","h3","onClick","current","scrollIntoView","behavior","block","props","position","GuideCard","background","reverse","SeeMoreButton","guidesPage","headData","guidesCount","setGuidesCount","Head","meta","content","replaceTripshepherdWithSeeSight","metaDescription","link","rel","href","canonical","PageHero","guides","slice","map","guide","i","firstName","biography","professional","url","width","height","length","Adventure","firebaseTripshepherdProdRegex","placeholders","protectedString","match","placeholderIndex","Array","isArray","item","newObj","key","Object","prototype","hasOwnProperty","call"],"sourceRoot":""}