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AS,CAACtB,EAAW,IAE/D,GAAAW,EAAAzB,GAAA,EAAC4B,OAAAA,CACCZ,KAAK,iBACLnC,QACE,oJAGJ,GAAA4C,EAAAzB,GAAA,EAAC8B,QAAAA,UAAOD,CAAAA,EAAAA,EAAAA,EAAAA,EAAgCL,EAASM,KAAK,IAEtD,GAAAL,EAAAzB,GAAA,EAAC4B,OAAAA,CACCZ,KAAK,cACLnC,QACE,oJAGJ,GAAA4C,EAAAzB,GAAA,EAACqC,OAAAA,CAAKC,KAAM,qCAAsCC,IAAI,cACtD,GAAAd,EAAAzB,GAAA,EAAC4B,OAAAA,CAAKZ,KAAK,WAAWnC,QAAQ,mCAEhC,GAAA4C,EAAAzB,GAAA,EAACwC,EAAAA,CAAQA,CAAAA,CACPC,YAAa,GACbC,MAAO,GACPZ,MAAOT,EAAQ1C,MAAM,CAACgE,iBAAiB,GACvCC,QAAQ,GACRC,MAAOxB,EAAQyB,SAAS,CAAC,EAAE,CAACC,GAAG,GAEjC,GAAAtB,EAAAzB,GAAA,EAACJ,MAAAA,CAAIG,UAAU,qFACb,GAAA0B,EAAAzB,GAAA,EAACgD,EAAAA,CAAIA,CAAAA,CACHrE,OAAQ0C,EAAQ1C,MAAM,CACtBC,UAAWyC,EAAQ4B,gBAAgB,CACnCpE,QAASwC,EAAQ6B,cAAc,CAC/BpE,OAAQ,SAGZ,GAAA2C,EAAAzB,GAAA,EAACmD,EAAAA,CAAmBA,CAAAA,CAClB7B,YAAaA,EACbC,aAAcA,IAEhB,GAAAE,EAAAzB,GAAA,EAACoD,EAAAA,CAASA,CAAAA,CAAAA,GACV,GAAA3B,EAAAzB,GAAA,EAACqD,EAAAA,OAAUA,CAAAA,CAAAA,KAGjB","sources":["webpack://_N_E/?d9f8","webpack://_N_E/./components/Contact/Faqs.tsx","webpack://_N_E/./utils/faqSchema.js","webpack://_N_E/./pages/faq.tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/faq\",\n function () {\n return require(\"private-next-pages/faq.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/faq\"])\n });\n }\n ","import Image from 'next/image';\nimport { useState } from 'react';\nimport styled from 'styled-components';\ninterface IProps {\n header: string;\n subHeader: string;\n content: any;\n faqRef?: any;\n contact?: boolean | undefined;\n}\nconst ContentStyle = styled.p`\n animation: slowDown 500ms linear forwards;\n @keyframes slowDown {\n 0% {\n transform: scaleY(0);\n }\n 80% {\n transform: scaleY(1.1);\n }\n 100% {\n transform: scaleY(1);\n }\n }\n`;\n\nconst Faqs = ({ header, subHeader, content, faqRef, contact }: IProps) => {\n const [toggleFaq, setToggleFaq] = useState(\n content.map(() => false)\n );\n const handleToggleFaq = (index: number) => {\n setToggleFaq(prev =>\n prev.map((value, i) => (i === index ? !value : false))\n );\n };\n return (\n
\n \n {header}\n \n \n {subHeader}\n \n {content.map((section: Record, index: number) => (\n \n
\n

\n {Object.keys(section)[0]}\n

\n handleToggleFaq(index)}\n className=\"hover:cursor-pointer transition-transform duration-500\"\n >\n \n
\n
\n\n {toggleFaq[index] && (\n \n {Object.values(section)[0]}\n \n )}\n \n ))}\n \n );\n};\n\nexport default Faqs;\n","const faqPageSchema = {\n '@context': 'https://schema.org',\n '@type': 'FAQPage',\n mainEntity: [\n {\n '@type': 'Question',\n name: 'What is the refund or cancellation policy for day tours?',\n acceptedAnswer: {\n '@type': 'Answer',\n text: 'Full refunds will be issued to guests that provide notice of cancellation via e-mail or telephone at least 24 hours prior to departure time for all day tours. Cancellations made with less notice than the time frames listed above will be subject to a $50 per person cancellation fee.'\n }\n },\n {\n '@type': 'Question',\n name: 'Can we customize a tour or replace an attraction?',\n acceptedAnswer: {\n '@type': 'Answer',\n text: 'Should you wish to customize a tour, we are happy to offer a Private Tour option. Private tours are fully customizable and designed around what you want to see and do. The base price for a private tour includes: personal guide/driver, transportation, parking fees, light snacks and non-alcoholic beverages, and a full driving tour of the area with commentary. Attractions and meals are optional - any activities or meals you would like to do would be at an additional cost. If there is an attraction included in your tour that you are not interested in, please let your guide know. In this instance, you will be given free time to spend at that attraction while the other guests in your group participate.'\n }\n },\n {\n '@type': 'Question',\n name: 'Do you have car seats available?',\n acceptedAnswer: {\n '@type': 'Answer',\n text: \"Trip Shepperd Tours does not provide car seats for children. By law, children less than 8 years of age can sit on an adult's lap and be buckled in during the tour. Should you wish to bring a car seat with you we ask that you let us know in advance so we can be prepared. Please note, if you do choose to bring a car seat with you, it is your responsibility to install and uninstall the seat at each stop on the tour.\"\n }\n },\n {\n '@type': 'Question',\n name: 'Is the tour price in Canadian or US dollars?',\n acceptedAnswer: {\n '@type': 'Answer',\n text: 'The tour price should default to your local currency based on your location. You may select a different currency than the default from the dropdown menu if you choose.'\n }\n },\n {\n '@type': 'Question',\n name: 'Is there anything not included in the price of the tour?',\n acceptedAnswer: {\n '@type': 'Answer',\n text: 'Prices listed for the tours are inclusive of all taxes and fees. If you select a tour that does not include meals, we may recommend bringing extra cash to purchase food at stops or bringing snacks with you. Souvenirs and other items you may purchase on your tour are also not included in the price of your tour. Gratuities are optional and always appreciated.'\n }\n },\n {\n '@type': 'Question',\n name: 'When will the guide pick me up for my tour?',\n acceptedAnswer: {\n '@type': 'Answer',\n text: 'We will email or call you 1-3 days prior to your tour to confirm a specific pick up time. If you do not have access to phone or email, please be ready and waiting in the hotel lobby half an hour before your tour start time.'\n }\n }\n ]\n};\n\nexport default faqPageSchema;\n","import Head from 'next/head';\nimport React from 'react';\nimport PageHero from '../layouts/PageHero';\nimport faqSchema from '../utils/faqSchema';\nimport { FAQ_PAGE, FAQ_PAGE_INTERFACE } from '../api/faqPage';\nimport client from '../apollo-client';\nimport Faqs from '../components/Contact/Faqs';\nimport Adventure from '../components/Reviews/Adventure';\nimport Newsletter from '../layouts/Newsletter/Newsletter';\nimport FEATUREDEXPERIENCES, {\n FEATURED_EXPERIENCES_INTERFACE,\n HOMEPAFE\n} from '../api/featuredexperiences';\nimport { CITIES, CITIES_PAGE_INTERFACE } from '../api/citiesPage';\nimport {\n DAYTOURS_PAGE,\n DAYTOURS_PAGE_INTERFACE,\n DAY_TOUR_INTERFACE\n} from '../api/dayToursPage';\nimport { CARDMEDIAINTERFACE } from '../api/commonInterfaces';\nimport FeaturedExperiences from '../components/FeaturedExperiences/FeaturedExperiences';\nimport { replaceTripshepherdWithSeeSight } from '../utils/trip-sheppered-text';\ninterface FAQPAGE {\n faqs: FAQ_PAGE_INTERFACE;\n featuredExp: HOMEPAFE;\n headData: {\n title: string;\n metaDescription: string;\n };\n citydropdown: [\n {\n id: string;\n name: string;\n slug: string;\n }\n ];\n cities: [\n {\n city: {\n id: string;\n name: string;\n slug: string;\n cardSnippet: string;\n cardMedia: [CARDMEDIAINTERFACE];\n };\n }\n ];\n dayTour: DAY_TOUR_INTERFACE;\n}\n//\nconst faq = ({\n faqs: { faqPage },\n featuredExp,\n citydropdown,\n headData\n}: FAQPAGE) => {\n return (\n <>\n \n \n \n \n {replaceTripshepherdWithSeeSight(headData.title)}\n\n \n \n \n \n \n
\n \n
\n \n \n \n \n );\n};\nexport async function getStaticProps() {\n const { data: faqs, error } = await client.query({\n query: FAQ_PAGE\n });\n const { data } = await client.query({\n query: FEATUREDEXPERIENCES,\n variables: {\n dayTours: true,\n multiday: true,\n airportTransfers: false\n }\n });\n const { data: citiesData } = await client.query(\n CITIES\n );\n\n const { data: { dayTour } = {} } =\n await client.query({\n query: DAYTOURS_PAGE\n });\n return {\n props: {\n faqs: JSON.parse(replaceTripshepherdWithSeeSight(JSON.stringify(faqs))),\n featuredExp: JSON.parse(\n replaceTripshepherdWithSeeSight(JSON.stringify(data.homePage))\n ),\n citydropdown: JSON.parse(\n replaceTripshepherdWithSeeSight(JSON.stringify(data.citiesDropdown))\n ),\n cities: JSON.parse(\n replaceTripshepherdWithSeeSight(\n JSON.stringify(citiesData.citiesPage.featured)\n )\n ),\n dayTour: JSON.parse(\n replaceTripshepherdWithSeeSight(JSON.stringify(dayTour))\n ),\n headData: {\n title: faqs.faqPage.pageTitle,\n meta: faqs.faqPage.metaDescription\n }\n }\n };\n}\nexport default faq;\n"],"names":["window","__NEXT_P","push","__webpack_require__","ContentStyle","styled","p","withConfig","__webpack_exports__","Z","header","subHeader","content","faqRef","contact","param","toggleFaq","setToggleFaq","useState","map","handleToggleFaq","prev","value","i","index","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","jsxs","div","id","ref","className","jsx","h2","h4","concat","section","Object","keys","onClick","Image","src","width","height","alt","values","faqSchema","mainEntity","name","acceptedAnswer","text","pages_faq","faqs","faqPage","featuredExp","citydropdown","headData","jsx_runtime","Fragment","Head","meta","replaceTripshepherdWithSeeSight","title","script","type","dangerouslySetInnerHTML","__html","JSON","stringify","link","href","rel","PageHero","trustworthy","video","toLocaleUpperCase","snippet","media","heroMedia","url","Faqs","sectionSubheader","sectionContent","FeaturedExperiences","Adventure","Newsletter"],"sourceRoot":""}