{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/stories/Components/Cards/DocumentCard/DocumentCard.tsx","webpack:///./src/helpers/flickingStyles.ts","webpack:///./src/stories/Components/Global/Typography/Heading.tsx","webpack:///./src/helpers/date.ts","webpack:///./src/helpers/fonts.ts","webpack:///./src/img/icons/chevron.svg","webpack:///./src/stories/Widgets/Content/DocumentList/DocumentList.styles.tsx","webpack:///./src/stories/Widgets/Content/DocumentList/DocumentList.widget.tsx"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","42","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice","DocumentCard","React","forwardRef","props","ref","createElement","DocumentCardStyles","Card","href","document","url","draggable","isLatestNewsWidget","TagArea","noticeTag","NoticeTag","groundforceDivision","DivisionTag","class","Media","Image","src","imageUrl","width","height","sizes","until","Device","TabletLarge","DesktopLarge","layout","objectFit","alt","title","fullPaddingTop","Content","date","Date","as","dateTime","formatDateISO","formatDateShort","tag","Tag","Title","ParagraphContent","size","description","Icon","Chevron","displayName","FlickingCss","css","PluginCss","Heading","children","semantic","visual","otherProps","formatStringDate","dateString","formatDate","toISOString","Intl","DateTimeFormat","undefined","day","month","year","format","formatDateLong","fonts","DaxPro","Bold","BoldItalic","Medium","SlightlyLessThanMedium","Regular","RegularItalic","Light","_path","_extends","assign","target","arguments","source","SvgChevron","xmlns","viewBox","fill","DocumentListStyles","Wrapper","styled","div","HeadingStyles","Inner","brand","primary","Slider","Desktop","from","MobileLarge","Tablet","SlideItem","withWidget","sliderRef","useRef","Grid","Default","Flicking","align","ALIGN","PREV","documents","map","x","hydrate","HydrateOption","InView"],"mappings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DRqE,uBAVM,SAACrG,GAClB,IAAMsG,EAAYC,iBAAO,MACzB,OAAQzG,IAAMI,cAAcqF,EAAmBC,QAAS,KACpD1F,IAAMI,cAAcsG,IAAKC,QAAS,KAC9B3G,IAAMI,cAAcqF,EAAmBK,MAAO,KAC1C9F,IAAMI,cAAciD,IAAS,CAAEG,OAAQ,KAAMD,SAAU,MAAQrD,EAAM8B,OACrEhC,IAAMI,cAAcqF,EAAmBQ,OAAQ,KAC3CjG,IAAMI,cAAcwG,IAAU,CAAEzG,IAAKqG,EAAWK,MAAOC,IAAMC,MAAQ7G,EAAM8G,UAAUC,KAAI,SAACC,EAAG3K,GAAJ,OAAWyD,IAAMI,cAAcqF,EAAmBa,UAAW,CAAEjH,IAAK9C,GACzJyD,IAAMI,cAAcL,IAAc,CAAEV,IAAK9C,EAAGiE,SAAU0G,eAEtC,eAAgB,CAAEC,QAASC,IAAcC","file":"DocumentList-bc59af574330b77ca027.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t42: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/sitefiles/next-gen/dist/\";\n\n \tvar jsonpArray = this[\"nextGenJsonpFunction\"] = this[\"nextGenJsonpFunction\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([596,0,1,2,8,10,13]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import { formatDateISO, formatDateShort } from '@helpers/date';\r\nimport { Device, until } from '@helpers/media';\r\nimport { ReactComponent as Chevron } from '@img/icons/chevron.svg';\r\nimport Image from '@stories/Components/Media/Image/Image';\r\nimport React from 'react';\r\nimport { DocumentCardStyles } from './DocumentCard.styles';\r\nconst DocumentCard = React.forwardRef((props, ref) => {\r\n return (React.createElement(DocumentCardStyles.Card, { ref: ref, href: props.document.url, draggable: false, isLatestNewsWidget: props.isLatestNewsWidget },\r\n React.createElement(DocumentCardStyles.TagArea, null,\r\n props.document.noticeTag ? (React.createElement(DocumentCardStyles.NoticeTag, null, props.document.noticeTag)) : null,\r\n props.document.groundforceDivision &&\r\n props.document.groundforceDivision.name.length > 0 && (React.createElement(DocumentCardStyles.DivisionTag, { \"data-tag-colour\": props.document.groundforceDivision.class }, props.document.groundforceDivision.name))),\r\n React.createElement(DocumentCardStyles.Media, { isLatestNewsWidget: props.isLatestNewsWidget },\r\n React.createElement(Image, { src: props.document.imageUrl, width: 387, height: 247, sizes: `${until(Device.TabletLarge)} 50vw, ${until(Device.DesktopLarge)} 33vw, 25vw`, layout: \"responsive\", objectFit: \"cover\", alt: props.document.title || '', draggable: false, fullPaddingTop: props.document.fullPaddingTop })),\r\n React.createElement(DocumentCardStyles.Content, null,\r\n props.document.date && (React.createElement(DocumentCardStyles.Date, { as: \"time\", dateTime: formatDateISO(props.document.date) }, formatDateShort(props.document.date))),\r\n props.document.tag && (React.createElement(DocumentCardStyles.Tag, null, props.document.tag)),\r\n React.createElement(DocumentCardStyles.Title, { isLatestNewsWidget: props.isLatestNewsWidget }, props.document.title),\r\n React.createElement(DocumentCardStyles.ParagraphContent, { size: \"small\", isLatestNewsWidget: props.isLatestNewsWidget }, props.document.description),\r\n React.createElement(DocumentCardStyles.Icon, null,\r\n React.createElement(Chevron, null)))));\r\n});\r\nDocumentCard.displayName = 'DocumentCard';\r\nexport default DocumentCard;\r\n","import { css } from 'styled-components';\r\nimport PluginCss from '!raw-loader!@egjs/react-flicking/dist/flicking.css';\r\nexport const FlickingCss = css `\r\n ${PluginCss};\r\n`;\r\n","import React from 'react';\r\nimport s from './Heading.styles';\r\nconst Heading = ({ children, semantic = 'h1', visual, ...otherProps }) => {\r\n return (React.createElement(s.Heading, { as: semantic, visual: visual, ...otherProps }, children));\r\n};\r\nexport default Heading;\r\n","export function formatStringDate(dateString) {\r\n const date = new Date(dateString);\r\n return formatDate(date);\r\n}\r\nexport function formatDateISO(value) {\r\n let date = value;\r\n if (typeof date === 'string') {\r\n date = new Date(date);\r\n }\r\n return date.toISOString();\r\n}\r\nexport function formatDate(value) {\r\n let date = value;\r\n if (typeof date === 'string') {\r\n date = new Date(date);\r\n }\r\n return new Intl.DateTimeFormat(undefined, {\r\n day: 'numeric',\r\n month: 'short',\r\n year: 'numeric',\r\n }).format(date);\r\n}\r\nexport function formatDateLong(value) {\r\n let date = value;\r\n if (typeof date === 'string') {\r\n date = new Date(date);\r\n }\r\n return new Intl.DateTimeFormat(undefined, {\r\n day: 'numeric',\r\n month: 'long',\r\n year: 'numeric',\r\n }).format(date);\r\n}\r\nexport function formatDateShort(value) {\r\n let date = value;\r\n if (typeof date === 'string') {\r\n date = new Date(date);\r\n }\r\n return new Intl.DateTimeFormat(undefined, {\r\n day: 'numeric',\r\n month: '2-digit',\r\n year: '2-digit',\r\n }).format(date);\r\n}\r\n","import { css } from 'styled-components';\r\nexport const fonts = {\r\n DaxPro: {\r\n Bold: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: normal;\r\n font-weight: 700;\r\n `,\r\n BoldItalic: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: italic;\r\n font-weight: 700;\r\n `,\r\n Medium: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: normal;\r\n font-weight: 600;\r\n `,\r\n SlightlyLessThanMedium: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: normal;\r\n font-weight: 500;\r\n `,\r\n Regular: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: normal;\r\n font-weight: 400;\r\n `,\r\n RegularItalic: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: italic;\r\n font-weight: 400;\r\n `,\r\n Light: css `\r\n font-family: 'ff-dax-pro', Arial, sans-serif;\r\n font-style: normal;\r\n font-weight: 200;\r\n `,\r\n },\r\n};\r\n","var _path;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgChevron(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20.679 12.461\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n \"data-name\": \"Path 99\",\n d: \"M19.618 11.4l-9.279-9.279L1.06 11.4\",\n fill: \"none\"\n })));\n}\n\nexport default __webpack_public_path__ + \"056c9f699b39d0845225c962dec7c133.svg\";\nexport { SvgChevron as ReactComponent };","import brand from '@helpers/brand';\r\nimport { FlickingCss } from '@helpers/flickingStyles';\r\nimport { Device, from, until } from '@helpers/media';\r\nimport { DocumentCardStyles } from '@stories/Components/Cards/DocumentCard/DocumentCard.styles';\r\nimport HeadingStyles from '@stories/Components/Global/Typography/Heading.styles';\r\nimport styled from 'styled-components';\r\nconst Wrapper = styled.div `\r\n margin: 50px 0px;\r\n overflow: hidden;\r\n\r\n ${HeadingStyles.Heading} {\r\n grid-column: span 12;\r\n text-align: center;\r\n }\r\n`;\r\nconst Inner = styled.div `\r\n grid-column: span 12;\r\n\r\n ${HeadingStyles.Heading} {\r\n color: ${brand.primary.alt};\r\n }\r\n`;\r\nconst Slider = styled.div `\r\n --slide-gap: 5px;\r\n --slide-size: 65vw;\r\n ${FlickingCss};\r\n position: relative;\r\n left: calc(-1 * var(--slide-gap));\r\n width: calc(100% + var(--slide-gap));\r\n\r\n @media ${until(Device.Desktop)} {\r\n .flicking-viewport {\r\n overflow: visible;\r\n }\r\n }\r\n\r\n @media ${from(Device.MobileLarge)} {\r\n --slide-size: 44%;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n --slide-gap: 15px;\r\n --slide-size: 31%;\r\n }\r\n\r\n @media ${from(Device.Desktop)} {\r\n --slide-size: 25%;\r\n }\r\n`;\r\nconst SlideItem = styled.div `\r\n width: calc(var(--slide-size) + ((var(--slide-gap) / 4) - var(--slide-gap)));\r\n padding: var(--slide-gap);\r\n\r\n @media ${from(Device.MobileLarge)} {\r\n min-width: 44%;\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n min-width: 31%;\r\n }\r\n\r\n @media ${from(Device.Desktop)} {\r\n min-width: 25%;\r\n }\r\n\r\n ${DocumentCardStyles.Card} {\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n }\r\n\r\n ${DocumentCardStyles.Content} {\r\n flex: 1;\r\n }\r\n`;\r\nexport const DocumentListStyles = {\r\n Wrapper,\r\n Inner,\r\n Slider,\r\n SlideItem,\r\n};\r\n","import { HydrateOption } from '@core/enums';\r\nimport Flicking, { ALIGN } from '@egjs/react-flicking';\r\nimport { Grid } from '@helpers/grid';\r\nimport withWidget from '@hoc/withWidget';\r\nimport DocumentCard from '@stories/Components/Cards/DocumentCard/DocumentCard';\r\nimport Heading from '@stories/Components/Global/Typography/Heading';\r\nimport React, { useRef } from 'react';\r\nimport { DocumentListStyles } from './DocumentList.styles';\r\nconst DocumentList = (props) => {\r\n const sliderRef = useRef(null);\r\n return (React.createElement(DocumentListStyles.Wrapper, null,\r\n React.createElement(Grid.Default, null,\r\n React.createElement(DocumentListStyles.Inner, null,\r\n React.createElement(Heading, { visual: \"h5\", semantic: \"h2\" }, props.title),\r\n React.createElement(DocumentListStyles.Slider, null,\r\n React.createElement(Flicking, { ref: sliderRef, align: ALIGN.PREV }, props.documents.map((x, i) => (React.createElement(DocumentListStyles.SlideItem, { key: i },\r\n React.createElement(DocumentCard, { key: i, document: x }))))))))));\r\n};\r\nexport default withWidget(DocumentList, 'DocumentList', { hydrate: HydrateOption.InView });\r\n"],"sourceRoot":""}