{"version":3,"sources":["webpack:///./node_modules/date-fns/esm/toDate/index.js","webpack:///./node_modules/date-fns/esm/isAfter/index.js","webpack:///./node_modules/date-fns/esm/_lib/requiredArgs/index.js","webpack:///./src/templates/Search.tsx"],"names":["toDate","argument","arguments","argStr","Object","prototype","toString","call","Date","getTime","console","warn","Error","stack","NaN","isAfter","dirtyDate","dirtyDateToCompare","date","dateToCompare","requiredArgs","required","args","length","TypeError","App","props","pageContext","show","React","setDate","interval","setInterval","clearInterval","title","description","openGraph","url","slug","site_name","images","ogpImage","alt","className","startDateTime"],"mappings":"8FAAA,gFAmCe,SAASA,EAAOC,GAC7B,YAAa,EAAGC,WAChB,IAAIC,EAASC,OAAOC,UAAUC,SAASC,KAAKN,GAE5C,OAAIA,aAAoBO,MAA4B,iBAAbP,GAAoC,kBAAXE,EAEvD,IAAIK,KAAKP,EAASQ,WACI,iBAAbR,GAAoC,oBAAXE,EAClC,IAAIK,KAAKP,IAES,iBAAbA,GAAoC,oBAAXE,GAAoD,oBAAZO,UAE3EA,QAAQC,KAAK,+IAEbD,QAAQC,MAAK,IAAIC,OAAQC,QAGpB,IAAIL,KAAKM,Q,kCCpDpB,8DAyBe,SAASC,EAAQC,EAAWC,GACzC,YAAa,EAAGf,WAChB,IAAIgB,EAAO,YAAOF,GACdG,EAAgB,YAAOF,GAC3B,OAAOC,EAAKT,UAAYU,EAAcV,Y,kCC7BzB,SAASW,EAAaC,EAAUC,GAC7C,GAAIA,EAAKC,OAASF,EAChB,MAAM,IAAIG,UAAUH,EAAW,aAAeA,EAAW,EAAI,IAAM,IAAM,uBAAyBC,EAAKC,OAAS,YAFpH,mC,kCCAA,uIAce,SAASE,EAAIC,GAAc,IAChCC,EAAgBD,EAAhBC,YACAC,EAASD,EAATC,KAFgC,EAIhBC,WAAe,IAAIrB,MAApCU,EAJiC,KAI3BY,EAJ2B,KAaxC,OAPAD,aAAgB,WACd,IAAME,EAAWC,aAAY,WAC3BF,EAAQ,IAAItB,QACX,KACH,OAAO,kBAAMyB,cAAcF,MAC1B,IAGD,gCACGH,GACC,gBAAC,YAAD,CACEM,MAAON,EAAKM,MACZC,YAAaP,EAAKO,YAClBC,UAAW,CACTC,IAAK,iCAAiCT,EAAKU,KAC3CJ,MAAON,EAAKM,MACZC,YAAaP,EAAKO,YAClBI,UAAW,8BACXC,OAAQ,CACN,CACEH,IAAKT,EAAKa,SAAWb,EAAKa,SAASJ,IAAM,GACzCK,IAAKd,EAAKM,WAMpB,gBAAC,IAAD,KACE,6BAAWN,EAAKM,MAAhB,iCAEF,uBAAKS,UAAU,OACb,gBAAC,IAAD,CAAQf,KAAMA,GACXb,YAAQG,EAAM,IAAIV,KAAKmB,EAAYC,KAAKgB,iBACvC,gBAAC,IAAD,CAAQhB,KAAMD,EAAYC","file":"component---src-templates-search-tsx-c8b59f9f6205701a262e.js","sourcesContent":["import \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.date.to-string\";\nimport \"core-js/modules/es6.object.to-string\";\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\n\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument); // Clone the date\n\n if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule\"); // eslint-disable-next-line no-console\n\n console.warn(new Error().stack);\n }\n\n return new Date(NaN);\n }\n}","import toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date that should be after the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is after the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\n\nexport default function isAfter(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() > dateToCompare.getTime();\n}","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import * as React from \"react\";\nimport \"@aws-amplify/ui/dist/style.css\";\nimport Teaser from \"components/pages/front/Teaser\";\nimport Search from \"components/pages/front/Search\";\nimport Layout from \"components/layouts/Common\";\nimport { isBefore, isAfter } from \"date-fns\";\nimport { Helmet } from \"react-helmet\";\nimport { GatsbySeo } from \"gatsby-plugin-next-seo\";\nimport SearchBar from \"material-ui-search-bar\"; // *snip* return (\n\ntype Props = {\n pageContext: any;\n};\n\nexport default function App(props: Props) {\n const { pageContext } = props;\n const { show } = pageContext;\n\n const [date, setDate] = React.useState(new Date());\n\n React.useEffect(() => {\n const interval = setInterval(() => {\n setDate(new Date());\n }, 1000);\n return () => clearInterval(interval);\n }, []);\n\n return (\n <>\n {show && (\n \n )}\n \n {`${show.title} ONLINE BOATSHOW オンラインボートショー`}\n \n
\n \n {isAfter(date, new Date(pageContext.show.startDateTime)) && (\n \n )}\n \n
\n \n );\n}\n"],"sourceRoot":""}