{"version":3,"sources":["webpack:///./src/components/dyanamic-lists/blogPost.jsx","webpack:///./src/components/dyanamic-lists/cruiseType.jsx","webpack:///./src/components/dyanamic-lists/sailingArea.jsx","webpack:///./src/components/dyanamic-lists/shippingCompany.jsx","webpack:///./src/templates/wildcardPage.jsx","webpack:///./src/utils/addWidthParameter.js","webpack:///./src/components/seo/seo-headers.jsx"],"names":["blogPost","content","general","className","to","detailPath","Boolean","image","url","src","addWidthParameter","alt","title","CruiseType","cruiseType","setSearchSelection","useContext","GlobalContext","usps","handleClick","selectedCruiseTypes","selectedSailingAreas","selectedDates","getMonths","selectedDurations","itemId","onClick","usP1","text","usP2","usP3","dangerouslySetInnerHTML","__html","description","toLowerCase","sailingArea","shippingCompany","company","WildcardPage","pageContext","page","shippingCompanies","sailingAreas","cruiseTypes","blogPosts","navigation","privacy","location","setNavigation","setPrivacy","theme","layout","seo","pageTitle","filter","c","isThalassa","isSelectTogether","isTiny","headerImage","headerText","isTinted","backgroundTinted","showQsm","qsm","pagePath","pathname","siteName","websiteName","Helmet","isShippingCompanies","length","map","index","key","isSailingAreas","isCruiseTypes","isBlogPost","width","queryStringIndex","indexOf","queryString","slice","undefined","params","URLSearchParams","set","toString","canonical","pathName","name","keywords","property","rel","href"],"mappings":"sJAIe,cAAmB,IAAD,IAAfA,EAAe,EAAfA,SAEhB,KAAKA,SAAD,UAACA,EAAUC,eAAX,aAAC,EAAmBC,SACtB,OAAO,qCAGT,IAAMA,EAAUF,EAASC,QAAQC,QAEjC,OACE,yBAAKC,UAAU,oBACb,yBAAKA,UAAU,sCACb,yBAAKA,UAAU,wBACb,kBAAC,IAAD,CAAMC,GAAIF,EAAQG,WAAYF,UAAU,oBACrCG,QAAO,UAACJ,EAAQK,aAAT,aAAC,EAAeC,MACtB,yBACEC,IAAKC,YAAkBR,EAAQK,MAAMC,IAAK,KAC1CG,IAAKT,EAAQU,MACbT,UAAU,iCAKlB,wBAAIA,UAAU,uBACZ,kBAAC,IAAD,CAAMC,GAA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IA,EAAI7C,aAAR,aAAI,EAAWC,OAAQ,0BAAMoF,SAAS,WAAW3F,QAASmD,EAAI7C,MAAMC,MAC/EF,QAAQ8C,IAAG,UAAIA,EAAI7C,aAAR,aAAI,EAAWC,OAAQ,0BAAMoF,SAAS,sBAAsB3F,QAASmD,EAAI7C,MAAMC,MAC1FF,QAAQ6D,IAAa,0BAAMyB,SAAS,eAAe3F,QAASkE,IAE5D7D,QAAQ+C,IAAc,0BAAMqC,KAAK,gBAAgBzF,QAASoD,IAC1D/C,QAAQ8C,GAAOA,EAAInB,cAAgB,0BAAMyD,KAAK,sBAAsBzF,QAASmD,EAAInB,cACjF3B,QAAQ8C,IAAG,UAAIA,EAAI7C,aAAR,aAAI,EAAWC,OAAQ,0BAAMkF,KAAK,gBAAgBzF,QAASmD,EAAI7C,MAAMC,MAEhFF,QAAQkF,IAAc,0BAAMK,IAAI,YAAYC,KAAI,gCAAkCL","file":"component---src-templates-wildcard-page-jsx-c7bde6b87dedde022b54.js","sourcesContent":["import { Link } from \"gatsby\";\nimport React from \"react\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\n\nexport default ({ blogPost }) => {\n // Fast escape\n if (!blogPost?.content?.general) {\n return <>;\n }\n\n const general = blogPost.content.general;\n\n return (\n
\n
\n
\n \n {Boolean(general.image?.url) && (\n \n )}\n \n
\n

\n \n {general.title}\n \n

\n
\n
\n Lees meer\n
\n
\n
\n
\n );\n};\n","import { add, startOfMonth } from \"date-fns\";\n\nimport { Link } from \"gatsby\";\nimport React, { useContext } from \"react\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\nimport GlobalContext from \"../../contexts/global-provider\";\nimport { getMonths } from \"../../utils/dateUtils\";\n\nconst CruiseType = ({ cruiseType }) => {\n const { setSearchSelection } = useContext(GlobalContext);\n // Fast escape\n if (!cruiseType?.content?.general || !cruiseType?.content?.usps) {\n return <>;\n }\n\n const general = cruiseType.content.general;\n const usps = cruiseType.content.usps;\n\n // Actions\n const handleClick = (cruiseType) => {\n setSearchSelection({\n selectedCruiseTypes: [cruiseType],\n selectedSailingAreas: [],\n selectedDates: getMonths(),\n selectedDurations: [],\n });\n };\n\n return (\n
\n
\n
\n handleClick(cruiseType)}\n className=\"link link--plain\"\n >\n {Boolean(general.image?.url) && (\n \n )}\n \n
\n

\n handleClick(cruiseType)}\n className=\"link link--plain\"\n >\n {general.title}\n \n

\n
\n {Boolean(usps?.usP1?.content?.general) && (\n
{usps.usP1.content.general.text}
\n )}\n {Boolean(usps?.usP2?.content?.general) && (\n
{usps.usP2.content.general.text}
\n )}\n {Boolean(usps?.usP3?.content?.general) && (\n
{usps.usP3.content.general.text}
\n )}\n
\n
\n
\n
\n handleClick(cruiseType)}\n >\n Toon alle {cruiseType.content.general.title.toLowerCase()}\n \n
\n
\n
\n
\n );\n};\n\n\n\nexport default CruiseType;\n","import { Link } from \"gatsby\";\nimport React from \"react\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\n\nexport default ({ sailingArea }) => {\n // Fast escape\n if (!sailingArea?.content?.general) {\n return <>;\n }\n\n const general = sailingArea.content.general;\n\n return (\n
\n
\n
\n \n {Boolean(general.image?.url) && (\n \n )}\n \n
\n

\n \n {general.title}\n \n

\n
{general.description}
\n
\n
\n Meer info\n
\n
\n
\n
\n );\n};\n","import { Link } from \"gatsby\";\nimport React from \"react\";\nimport { addWidthParameter } from \"../../utils/addWidthParameter\";\n\nexport default ({ shippingCompany }) => {\n // Fast escape\n if (!shippingCompany?.company?.content?.general) {\n return <>;\n }\n\n const company = shippingCompany.company;\n\n return (\n
\n
\n
\n {Boolean(company?.content?.general?.image) && (\n \n \n \n )}\n
\n

\n \n {company?.content?.general?.title}\n \n

\n
{company?.content?.general?.description}
\n\n
\n
\n Meer info\n
\n
\n
\n
\n );\n};\n","import BlogPost from \"../components/dyanamic-lists/blogPost\";\nimport CruiseType from \"../components/dyanamic-lists/cruiseType\";\nimport { Helmet } from \"react-helmet\";\nimport Layout from \"./layout\";\nimport React, { useContext } from \"react\";\nimport SailingArea from \"../components/dyanamic-lists/sailingArea\";\nimport SeoHeaders from \"../components/seo/seo-headers\";\nimport ShippingCompany from \"../components/dyanamic-lists/shippingCompany\";\nimport { websiteName } from \"../settings\";\nimport GlobalContext from \"../contexts/global-provider\";\n\nconst WildcardPage = ({\n pageContext: { page, shippingCompanies, sailingAreas, cruiseTypes, blogPosts, navigation, privacy },\n location,\n}) => {\n\n const {setNavigation, setPrivacy, theme} = useContext(GlobalContext);\n setNavigation(navigation);\n setPrivacy(privacy);\n \n // Data\n\n const general = page?.content?.general;\n const layout = page?.content?.layout;\n const seo = page?.content?.seo;\n\n if (!general || !layout || !seo) {\n return <>;\n }\n\n const pageTitle = seo?.title ?? page.content.general.title;\n\n if (theme === \"thalassa\") {\n cruiseTypes = cruiseTypes.filter(c => c.content.general.isThalassa);\n } else if (theme === \"select-together\") {\n cruiseTypes = cruiseTypes.filter(c => c.content.general.isSelectTogether);\n }\n // Output\n\n return (\n \n \n \n {pageTitle}\n \n\n
\n
\n

{general.title}

\n
\n
\n {Boolean(general.isShippingCompanies && shippingCompanies?.length) &&\n shippingCompanies.map((shippingCompany, index) => (\n \n ))}\n {Boolean(general.isSailingAreas && sailingAreas?.length) &&\n sailingAreas.map((sailingArea, index) => )}\n {Boolean(general.isCruiseTypes && cruiseTypes?.length) &&\n cruiseTypes.map((cruiseType, index) => )}\n {Boolean(general.isBlogPost && blogPosts?.length) &&\n blogPosts.map((blogPost, index) => )}\n
\n
\n \n );\n};\n\nexport default WildcardPage;\n","export const addWidthParameter = (url, width) => {\n // Fast escape\n if (!url) {\n return url;\n }\n\n const queryStringIndex = url.indexOf(\"?\");\n const queryString = queryStringIndex > -1 ? url.slice(queryStringIndex) : undefined;\n const params = new URLSearchParams(queryString);\n\n params.set(\"width\", width);\n\n return `${url.slice(0, queryStringIndex > -1 ? queryStringIndex : undefined)}?${params.toString()}`;\n};\n","import React from \"react\";\nimport { Helmet } from \"react-helmet\";\n\nexport default ({ seo, pageTitle, pagePath, siteName, canonical, pathName }) => (\n \n {Boolean(seo && seo.description) && }\n {Boolean(seo && seo.keywords) && }\n\n {Boolean(pageTitle) && }\n {Boolean(seo && seo.description) && }\n {Boolean(pagePath) && }\n {Boolean(seo && seo.image?.url) && }\n {Boolean(seo && seo.image?.url) && }\n {Boolean(siteName) && }\n\n {Boolean(pageTitle) && }\n {Boolean(seo && seo.description) && }\n {Boolean(seo && seo.image?.url) && }\n\n {Boolean(canonical) && }\n \n);\n"],"sourceRoot":""}