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CAAaD,EAAW,IAaVrsB,MAAMugB,KACpBxnB,SAASyK,iBAAiB,2BAGpBjL,SAAQg0B,IACd,IAAIC,IAAJ,CAAQD,EAAM,GAoBE,M,6DC/CpB,MAAME,EAAiBl1B,IAKrB,SAASm1B,KAAQC,GACfpgB,OAAOqgB,WAAWnV,KAAKkV,EACzB,CAJApgB,OAAOqgB,UAAYrgB,OAAOqgB,WAAa,GAMvCF,EAAK,KAAM,IAAIzhB,MACfyhB,EAAK,SATSjG,eASQ,CAAEoG,cAAet1B,EAAEmsB,OAAO7a,KAAM,EAOxD,MAJiCikB,KAC/B/zB,SAASkmB,iBAAiB,aAAcwN,EAAc,ECHxD,MAAMM,EAAcC,EAAAA,GAAYC,QAQhCC,EAAAA,IAEA50B,EAAAA,MAeA60B,EAAAA,GAAY,CACVC,IAAK3G,4EACL4G,YAAa5G,kBAAY6G,YAAc7G,eAUzC,MAAM8G,EAAUj1B,EAAAA,MAEhBy0B,EAAYS,MAAKC,EAAAA,EAAAA,IAAuBF,IAGxC,MAAMG,EAA0Bp1B,EAAAA,MAGhCusB,IAAAA,WAAyB6I,GAkBzB,CAAC,eAAgB,sBAAsBn1B,SAAQo1B,GAC7C50B,SAASkmB,iBAAiB0O,GAAW,EAAGplB,YACtCsc,IAAAA,gBAA+Btc,GAAUxP,SAAS60B,UAKtDd,G","sources":["webpack://megajobs/./app/frontend/channels/ sync _channel\\.ts$u","webpack://megajobs/./app/frontend/components/ sync ^\\.\\/.*$","webpack://megajobs/./app/frontend/controllers/ sync .[js%7Cts]$u","webpack://megajobs/./app/frontend/images/ sync ^\\.\\/.*$","webpack://megajobs/./app/frontend/channels/index.ts","webpack://megajobs/./app/frontend/components/Carousel.tsx","webpack://megajobs/./app/frontend/components/CarouselImages.tsx","webpack://megajobs/./app/frontend/components/CustomSelect.tsx","webpack://megajobs/./app/frontend/components/EndDate.tsx","webpack://megajobs/./app/frontend/components/FeaturedListings.tsx","webpack://megajobs/./app/frontend/components/HorizontalNav.tsx","webpack://megajobs/./app/frontend/components/ParentAndChildrenSelect.tsx","webpack://megajobs/./app/frontend/components/RadioSelect.tsx","webpack://megajobs/./app/frontend/components/SalaryRange.tsx","webpack://megajobs/./app/frontend/components/ShareLinks.tsx","webpack://megajobs/./app/frontend/components/SupportingCallsToAction.tsx","webpack://megajobs/./app/frontend/components/Welcome.tsx","webpack://megajobs/./app/frontend/components/categories/ServerRenderedSEO.tsx","webpack://megajobs/./app/frontend/components/categories/Show.tsx","webpack://megajobs/./app/frontend/components/contentful/AssetLink.tsx","webpack://megajobs/./app/frontend/components/contentful/MarkdownContent.tsx","webpack://megajobs/./app/frontend/components/contentful/RichTextContent.tsx","webpack://megajobs/./app/frontend/components/contentful/RichTextEntry.tsx","webpack://megajobs/./app/frontend/components/draft_listings/Features.tsx","webpack://megajobs/./app/frontend/components/draft_listings/SampleJobLink.tsx","webpack://megajobs/./app/frontend/components/generated_cv/Introduction.tsx","webpack://megajobs/./app/frontend/components/listing/JobCategories.tsx","webpack://megajobs/./app/frontend/components/listing/JobType.tsx","webpack://megajobs/./app/frontend/components/listing/Locations.tsx","webpack://megajobs/./app/frontend/components/listing/Remuneration.tsx","webpack://megajobs/./app/frontend/components/multiselect/CheckboxMultiSelect.tsx","webpack://megajobs/./app/frontend/components/multiselect/NestedMultiSelect.tsx","webpack://megajobs/./app/frontend/components/multiselect/NestedMultiValueContainer.tsx","webpack://megajobs/./app/frontend/components/multiselect/NestedOption.tsx","webpack://megajobs/./app/frontend/components/multiselect/helpers.tsx","webpack://megajobs/./app/frontend/components/multiselect/styles.tsx","webpack://megajobs/./app/frontend/components/resources/Banner.tsx","webpack://megajobs/./app/frontend/components/resources/CallsToAction.tsx","webpack://megajobs/./app/frontend/components/resources/FeaturedResources.tsx","webpack://megajobs/./app/frontend/components/resources/ResourceList.tsx","webpack://megajobs/./app/frontend/components/resources/ServerRenderedSEO.tsx","webpack://megajobs/./app/frontend/components/resources/Show.tsx","webpack://megajobs/./app/frontend/controllers/add_class_controller.ts","webpack://megajobs/./app/frontend/controllers/autosave_controller.ts","webpack://megajobs/./app/frontend/controllers/character_counter_controller.ts","webpack://megajobs/./app/frontend/controllers/conditional_fields_controller.ts","webpack://megajobs/./app/frontend/controllers/field_match_controller.ts","webpack://megajobs/./app/frontend/controllers/file_picker_controller.ts","webpack://megajobs/./app/frontend/controllers/modal_controller.ts","webpack://megajobs/./app/frontend/controllers/nested_fields_controller.ts","webpack://megajobs/./app/frontend/controllers/react_mounter_controller.ts","webpack://megajobs/./app/frontend/controllers/redirect_top_controller.ts","webpack://megajobs/./app/frontend/controllers/required_fields_controller.ts","webpack://megajobs/./app/frontend/controllers/stripe_payment_intent_controller.ts","webpack://megajobs/./app/frontend/controllers/trix_editor_controller.ts","webpack://megajobs/./app/frontend/controllers/trix_editor_interpolate_controller.ts","webpack://megajobs/./app/frontend/controllers/visibility_when_changed_controller.ts","webpack://megajobs/./app/frontend/controllers/zendesk_chat_widget_controller.ts","webpack://megajobs/./app/frontend/hooks/useWindowSize.tsx","webpack://megajobs/./app/frontend/js/contentful/client.ts","webpack://megajobs/./app/frontend/js/contentful/useContentful.ts","webpack://megajobs/./app/frontend/js/bootstrap.ts","webpack://megajobs/./app/frontend/js/analytics.ts","webpack://megajobs/./app/frontend/packs/application.ts"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 4059;\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./Carousel\": 4841,\n\t\"./Carousel.tsx\": 4841,\n\t\"./CarouselImages\": 5343,\n\t\"./CarouselImages.tsx\": 5343,\n\t\"./CustomSelect\": 4870,\n\t\"./CustomSelect.tsx\": 4870,\n\t\"./EndDate\": 1728,\n\t\"./EndDate.tsx\": 1728,\n\t\"./FeaturedListings\": 6930,\n\t\"./FeaturedListings.tsx\": 6930,\n\t\"./HorizontalNav\": 9828,\n\t\"./HorizontalNav.tsx\": 9828,\n\t\"./ParentAndChildrenSelect\": 117,\n\t\"./ParentAndChildrenSelect.tsx\": 117,\n\t\"./RadioSelect\": 8878,\n\t\"./RadioSelect.tsx\": 8878,\n\t\"./SalaryRange\": 9394,\n\t\"./SalaryRange.tsx\": 9394,\n\t\"./ShareLinks\": 8063,\n\t\"./ShareLinks.tsx\": 8063,\n\t\"./SupportingCallsToAction\": 7420,\n\t\"./SupportingCallsToAction.tsx\": 7420,\n\t\"./Welcome\": 783,\n\t\"./Welcome.tsx\": 783,\n\t\"./categories/ServerRenderedSEO\": 1763,\n\t\"./categories/ServerRenderedSEO.tsx\": 1763,\n\t\"./categories/Show\": 4051,\n\t\"./categories/Show.tsx\": 4051,\n\t\"./contentful/AssetLink\": 2322,\n\t\"./contentful/AssetLink.tsx\": 2322,\n\t\"./contentful/MarkdownContent\": 4016,\n\t\"./contentful/MarkdownContent.tsx\": 4016,\n\t\"./contentful/RichTextContent\": 2004,\n\t\"./contentful/RichTextContent.tsx\": 2004,\n\t\"./contentful/RichTextEntry\": 4687,\n\t\"./contentful/RichTextEntry.tsx\": 4687,\n\t\"./draft_listings/Features\": 8408,\n\t\"./draft_listings/Features.tsx\": 8408,\n\t\"./draft_listings/SampleJobLink\": 7414,\n\t\"./draft_listings/SampleJobLink.tsx\": 7414,\n\t\"./generated_cv/Introduction\": 1135,\n\t\"./generated_cv/Introduction.tsx\": 1135,\n\t\"./listing/JobCategories\": 443,\n\t\"./listing/JobCategories.tsx\": 443,\n\t\"./listing/JobType\": 8007,\n\t\"./listing/JobType.tsx\": 8007,\n\t\"./listing/Locations\": 6362,\n\t\"./listing/Locations.tsx\": 6362,\n\t\"./listing/Remuneration\": 9959,\n\t\"./listing/Remuneration.tsx\": 9959,\n\t\"./multiselect/CheckboxMultiSelect\": 2695,\n\t\"./multiselect/CheckboxMultiSelect.tsx\": 2695,\n\t\"./multiselect/NestedMultiSelect\": 3901,\n\t\"./multiselect/NestedMultiSelect.tsx\": 3901,\n\t\"./multiselect/NestedMultiValueContainer\": 2105,\n\t\"./multiselect/NestedMultiValueContainer.tsx\": 2105,\n\t\"./multiselect/NestedOption\": 9755,\n\t\"./multiselect/NestedOption.tsx\": 9755,\n\t\"./multiselect/helpers\": 8206,\n\t\"./multiselect/helpers.tsx\": 8206,\n\t\"./multiselect/styles\": 9995,\n\t\"./multiselect/styles.tsx\": 9995,\n\t\"./resources/Banner\": 3079,\n\t\"./resources/Banner.tsx\": 3079,\n\t\"./resources/CallsToAction\": 9743,\n\t\"./resources/CallsToAction.tsx\": 9743,\n\t\"./resources/FeaturedResources\": 9664,\n\t\"./resources/FeaturedResources.tsx\": 9664,\n\t\"./resources/ResourceList\": 5057,\n\t\"./resources/ResourceList.tsx\": 5057,\n\t\"./resources/ServerRenderedSEO\": 8880,\n\t\"./resources/ServerRenderedSEO.tsx\": 8880,\n\t\"./resources/Show\": 2766,\n\t\"./resources/Show.tsx\": 2766\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1011;","var map = {\n\t\"./add_class_controller.ts\": 5913,\n\t\"./autosave_controller.ts\": 4161,\n\t\"./character_counter_controller.ts\": 3753,\n\t\"./conditional_fields_controller.ts\": 3039,\n\t\"./field_match_controller.ts\": 3303,\n\t\"./file_picker_controller.ts\": 666,\n\t\"./modal_controller.ts\": 3106,\n\t\"./nested_fields_controller.ts\": 4970,\n\t\"./react_mounter_controller.ts\": 3399,\n\t\"./redirect_top_controller.ts\": 7467,\n\t\"./required_fields_controller.ts\": 880,\n\t\"./stripe_payment_intent_controller.ts\": 9360,\n\t\"./trix_editor_controller.ts\": 9190,\n\t\"./trix_editor_interpolate_controller.ts\": 7662,\n\t\"./visibility_when_changed_controller.ts\": 5999,\n\t\"./zendesk_chat_widget_controller.ts\": 6029,\n\t\"controllers/add_class_controller.ts\": 5913,\n\t\"controllers/autosave_controller.ts\": 4161,\n\t\"controllers/character_counter_controller.ts\": 3753,\n\t\"controllers/conditional_fields_controller.ts\": 3039,\n\t\"controllers/field_match_controller.ts\": 3303,\n\t\"controllers/file_picker_controller.ts\": 666,\n\t\"controllers/modal_controller.ts\": 3106,\n\t\"controllers/nested_fields_controller.ts\": 4970,\n\t\"controllers/react_mounter_controller.ts\": 3399,\n\t\"controllers/redirect_top_controller.ts\": 7467,\n\t\"controllers/required_fields_controller.ts\": 880,\n\t\"controllers/stripe_payment_intent_controller.ts\": 9360,\n\t\"controllers/trix_editor_controller.ts\": 9190,\n\t\"controllers/trix_editor_interpolate_controller.ts\": 7662,\n\t\"controllers/visibility_when_changed_controller.ts\": 5999,\n\t\"controllers/zendesk_chat_widget_controller.ts\": 6029\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 9336;","var map = {\n\t\"./allDone.svg\": 8870,\n\t\"./applicant.svg\": 6773,\n\t\"./applicantsIcon.svg\": 8231,\n\t\"./blue_tick.svg\": 883,\n\t\"./brandFeat.svg\": 5480,\n\t\"./candidateFeat.svg\": 5312,\n\t\"./companyFeat.svg\": 894,\n\t\"./companyHubPromo.svg\": 7008,\n\t\"./companyIcon.svg\": 8089,\n\t\"./connJtoE-LB.png\": 9491,\n\t\"./contact.svg\": 8091,\n\t\"./copy.svg\": 7650,\n\t\"./cross.svg\": 1631,\n\t\"./cvBuilder.svg\": 9179,\n\t\"./cvBuilderPromo.svg\": 9820,\n\t\"./cvFeat.svg\": 1662,\n\t\"./cvIcon.svg\": 2505,\n\t\"./delete.svg\": 6132,\n\t\"./downArrow.png\": 2295,\n\t\"./download.svg\": 49,\n\t\"./downloadWhite.svg\": 6860,\n\t\"./edit.svg\": 8505,\n\t\"./editFeat.svg\": 3489,\n\t\"./email.svg\": 527,\n\t\"./email/applicantsIcon@2x.png\": 1413,\n\t\"./email/bulbG.png\": 2485,\n\t\"./email/companyIcon@2x.png\": 8785,\n\t\"./email/emailWrite@2x.png\": 7736,\n\t\"./email/facebook@2x.png\": 2939,\n\t\"./email/fullLogo.png\": 3639,\n\t\"./email/handsG.png\": 544,\n\t\"./email/linkedG.png\": 8847,\n\t\"./email/linkedIn@2x.png\": 2549,\n\t\"./email/magnifyG.png\": 1385,\n\t\"./email/penG.png\": 7377,\n\t\"./email/renewG.png\": 5659,\n\t\"./email/twitter@2x.png\": 6332,\n\t\"./employer.svg\": 9770,\n\t\"./employerProfile.svg\": 4817,\n\t\"./facebook.svg\": 5185,\n\t\"./facebookFeat.svg\": 8489,\n\t\"./facebookPromo.svg\": 8234,\n\t\"./facebookShare.svg\": 1190,\n\t\"./fullLogo.svg\": 8895,\n\t\"./fullLogoCoNZ.png\": 8150,\n\t\"./goToFirst.svg\": 9790,\n\t\"./goToLast.svg\": 8028,\n\t\"./green-check.svg\": 7929,\n\t\"./green_tick.svg\": 5174,\n\t\"./handsG.png\": 4095,\n\t\"./helpYtoE-LB.png\": 9649,\n\t\"./helpYtoJ-LB.png\": 8188,\n\t\"./hrFeat.svg\": 9203,\n\t\"./hrPromo.svg\": 968,\n\t\"./inviteLarge.svg\": 8631,\n\t\"./jobseeker.svg\": 8987,\n\t\"./jobseekerProfile.svg\": 6414,\n\t\"./koruOverlay.svg\": 7388,\n\t\"./leftArrow.svg\": 3521,\n\t\"./letterIcon.svg\": 6382,\n\t\"./lightbulb.svg\": 9242,\n\t\"./linkArrowBG.svg\": 2337,\n\t\"./linkArrowGB.svg\": 6159,\n\t\"./linkedIn.svg\": 6383,\n\t\"./linkedinShare.svg\": 6328,\n\t\"./listJobIcon.svg\": 2449,\n\t\"./list_icon_disabled.svg\": 4078,\n\t\"./list_icon_enabled.svg\": 6389,\n\t\"./mLogo.svg\": 4315,\n\t\"./magnify.svg\": 4838,\n\t\"./mailIcon.svg\": 4395,\n\t\"./matchingProfileIcon.svg\": 2648,\n\t\"./matchingPromo.svg\": 45,\n\t\"./myJobsIcon.svg\": 2632,\n\t\"./next.svg\": 7042,\n\t\"./notes.svg\": 4796,\n\t\"./opengraph_metadata_image.png\": 5264,\n\t\"./paperPlane.svg\": 3673,\n\t\"./play.svg\": 1391,\n\t\"./previous.svg\": 6470,\n\t\"./priorityFeat.svg\": 4429,\n\t\"./relist.svg\": 2374,\n\t\"./relistWhite.png\": 6861,\n\t\"./rename.svg\": 6631,\n\t\"./sample.svg\": 6191,\n\t\"./saveJob.svg\": 3855,\n\t\"./savedJob.svg\": 8764,\n\t\"./schedule.svg\": 4258,\n\t\"./sendIcon.svg\": 860,\n\t\"./sendIconPrimary.svg\": 2566,\n\t\"./sendIconPrimaryLighter.svg\": 1555,\n\t\"./sendIconWhite.svg\": 675,\n\t\"./squiggle.svg\": 992,\n\t\"./tooltip.svg\": 8498,\n\t\"./twitter.svg\": 7742,\n\t\"./twitterShare.svg\": 9235,\n\t\"./twitter_metadata_image.png\": 6771,\n\t\"./verifyEmail.svg\": 6434,\n\t\"./warning.svg\": 8923,\n\t\"./write.svg\": 9846\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 8257;","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.ts$/u);\n\nchannels.keys().forEach(channels);\n","import BootstrapCarousel from 'bootstrap/js/dist/carousel';\nimport { Entry } from 'contentful';\nimport { useEffect } from 'preact/hooks';\nimport React from 'react';\nimport { ICallToActionFields, IResourceFields } from '../types/contentful';\n\nconst Carousel: React.FC<{\n readonly carouselItems:\n | Array>>\n | Array>>\n | CarouselImage[][]\n | Listing[][];\n readonly theme?: 'dark' | 'light';\n readonly carouselId: string;\n}> = ({ carouselItems, carouselId, theme = 'dark', children }) => {\n useEffect(() => {\n /**\n * Recreate the carousel when the items change. This is used as a cache-buster\n * when rendering dynamic lists of items. For example, if we display 3 items\n * for large screens, 2 for medium, 1 for small, we can include the window\n * size in the ID. When the ID changes, the carousel instance used by\n * Bootstrap will be recreated. This means that indicators and other\n * carousel state are reset.\n */\n const carouselNode = document.getElementById(`${carouselId}-carousel`);\n\n if (!carouselNode) {\n return;\n }\n\n BootstrapCarousel.getInstance(carouselNode)?.dispose();\n BootstrapCarousel.getOrCreateInstance(carouselNode);\n }, [carouselId]);\n\n return (\n !!c)\n .join(' ')}\n data-bs-interval=\"false\"\n >\n \n
\n \n \n Previous\n \n
\n\n {carouselItems.map((_carouselSlideItems, idx) => {\n return (\n // because we're not dynamically updating the state to change the array of carousel items,\n // it is ok to use the idx as part of the key in this scenario\n // eslint-disable-next-line react/no-array-index-key\n
\n \n
\n );\n })}\n\n
\n \n \n Next\n \n
\n \n\n
\n \n \n Previous\n \n\n \n \n Next\n \n\n {children}\n
\n \n );\n};\n\nexport default Carousel;\n","import chunk from 'lodash-es/chunk';\nimport React from 'react';\nimport { useState } from 'react';\nimport Carousel from './Carousel';\nimport CustomSelect from './CustomSelect';\nimport useWindowSize from '../hooks/useWindowSize';\n\nconst desktopWidth = 1320;\nconst tabletWidth = 960;\n\nconst determineCarouselLayoutDimensions = (\n partner: boolean,\n width: number\n): [imageWidth: number, itemCount: number] => {\n let imageWidth = 334;\n let itemCount = 1;\n\n // non partner carousel widths\n if (width > tabletWidth) {\n imageWidth = 232;\n itemCount = 3;\n }\n\n if (width > desktopWidth) {\n imageWidth = 212;\n itemCount = 5;\n }\n\n // partner carousel widths\n if (partner) {\n imageWidth = 155;\n itemCount = 2;\n\n if (width > tabletWidth) {\n imageWidth = 168;\n itemCount = 4;\n }\n\n if (width > desktopWidth) {\n imageWidth = 240;\n itemCount = 5;\n }\n }\n\n return [imageWidth, itemCount];\n};\n\nexport const CarouselImage: React.FC<{\n readonly items: CarouselImage[];\n readonly imageOnlyCarouselId: string;\n readonly isPartner: boolean;\n readonly locations: CustomSelectOptions;\n readonly heading: string;\n}> = ({ items, imageOnlyCarouselId, isPartner, locations, heading }) => {\n const windowSize = useWindowSize();\n\n const [imageWidth, itemCount] = determineCarouselLayoutDimensions(\n isPartner,\n windowSize.width ?? 0\n );\n\n const [selectedLocation, setSelectedLocation] = useState(' ');\n const [numTimesSelectedLocationChanged, setNumTimesSelectedLocationChanged] =\n useState(0);\n\n const onLocationChange = (selectedValue: string) => {\n setNumTimesSelectedLocationChanged(numTimesSelectedLocationChanged + 1);\n setSelectedLocation(selectedValue);\n };\n\n const carouselSlideItems = chunk(\n selectedLocation === ' '\n ? items\n : items\n .filter(\n carouselItem => carouselItem.locationId === Number(selectedLocation)\n )\n .sort((a, b) => Number(a.regionOrder) - Number(b.regionOrder)),\n itemCount\n );\n\n return (\n
\n
\n

{heading}

\n\n {!isPartner && (\n onLocationChange(selected.value)}\n />\n )}\n
\n\n {/* The -version-${numTimesSelectedLocationChanged}-${imageWidth} in the carouselId and key attributes */}\n {/* ensure that both the indicators created inside the Carousel component and the carouselSlideItems inside this compenent */}\n {/* rerender whenever either changes - otherwise, if you are on page 3 of the indicators and either the */}\n {/* windows gets smalled or the dropdown changes and there are no longer 3 pages of cards */}\n {/* then you are presented with a page of cards that doesn't exist - you see nothing and the indicators are broken */}\n {/* the Carousel compenent has a comment to that effect as its intended useage */}\n
\n \n {carouselSlideItems.map((carouselItems, idx) => (\n \n
\n {carouselItems.map(({ id, description, clickUrl, image }) => (\n \n \n \n \n
\n ))}\n
\n
\n ))}\n \n \n \n );\n};\n\nexport default CarouselImage;\n","import { useEffect, useState } from 'preact/hooks';\nimport ReactSelect from 'react-select';\nimport CreatableSelect from 'react-select/creatable';\nimport ReactSelectInterface from 'react-select/dist/declarations/src/Select';\n\nconst defaultStyles = {\n container: (base: object) => ({\n ...base,\n padding: 0\n }),\n control: (base: object, state: { isDisabled: boolean }) => ({\n ...base,\n backgroundColor: `${state.isDisabled ? '#d1d2d380' : ''}`,\n transition: 'background-color 300ms',\n border: 'none',\n boxShadow: 'none',\n padding: 0\n }),\n dropdownIndicator: () => ({\n display: 'none'\n }),\n indicatorSeparator: () => ({\n width: 0\n }),\n placeholder: (base: object) => ({\n ...base,\n fontStyle: 'italic',\n color: '#bababa'\n }),\n valueContainer: (base: object) => ({\n ...base,\n padding: '.5rem 1rem'\n }),\n menu: (base: object) => ({\n ...base,\n zIndex: 3\n })\n};\n\ninterface CustomSelectProps {\n className?: string;\n creatable?: boolean;\n components?: object;\n controlledValue?: CustomSelectOption | CustomSelectOptions | string;\n customRef?: React.RefObject;\n hasError?: boolean;\n id: string;\n label?: string;\n labelClassName?: string;\n name: string;\n placeholder?: string;\n closeMenuOnSelect?: boolean;\n hideSelectedOptions?: boolean;\n initialValue?: number[] | string[] | number | string;\n isClearable?: boolean;\n isDisabled?: boolean;\n isMulti?: boolean;\n isOptionDisabled?: (option: { label: string; value: string }) => boolean | '';\n isSearchable?: boolean;\n menuIsOpen?: boolean; // for testing\n options: CustomSelectOptions;\n includePlaceholderOption?: boolean; // can be used for a label that shouldn't have a value\n onChange?: (\n newValue: { label: string; value: string },\n meta: { name: string; action: string }\n ) => void;\n required?: boolean;\n styles?: object;\n}\n\nconst CustomSelect: React.FC = ({\n className,\n creatable,\n components,\n controlledValue,\n customRef,\n hasError,\n id,\n initialValue,\n isDisabled,\n label: fieldLabel,\n labelClassName: fieldLabelClassName,\n onChange,\n options,\n placeholder,\n includePlaceholderOption,\n required,\n styles,\n ...rest\n}) => {\n const normalizedOptions = buildNormalizedOptions(\n options,\n initialValue,\n creatable\n );\n const defaultOptions = findDefaultOptions(normalizedOptions, initialValue);\n\n // This needs to be seperate from normalized/default\n // because those rely on the value prop to support createable\n // whereas the placholderOption exists to provide a label without a value\n const selectOptions = includePlaceholderOption\n ? [{ label: placeholder, value: ' ' }, ...normalizedOptions]\n : normalizedOptions;\n\n const [requiredInputValue, setRequiredInputValue] = useState(\n initialValue ? 'present' : ''\n );\n\n // Trigger required field form validations\n useEffect(() => {\n if (!required) {\n return;\n }\n const requiredInput: HTMLInputElement | null = document.querySelector(\n `[data-required-id=\"${id}\"]`\n );\n\n if (requiredInput && !(requiredInputValue === requiredInput.value)) {\n requiredInput.setAttribute('value', requiredInputValue);\n // need to trigger the listener in `required_fields_controller`\n // requiredInput.blur() _should_ work but doesn't :(\n requiredInput.dispatchEvent(new Event('change'));\n }\n }, [requiredInputValue, id, required]);\n\n /** React-Select does not emit native change events on the hidden input\n * field that it creates. This onChange wrapper fixes that by emitting a change\n * event on the input when the select value changes. If a React-Select onChange\n * prop is given, it'll then call that with the original args.\n */\n const wrappedOnChange = (\n newValue: { label: string; value: string },\n meta: { action: string; name: string }\n ) => {\n if (meta.action === 'select-option') {\n const input = document.querySelector(\n `input[name='${meta.name}']`\n );\n const event = new Event('change', { bubbles: true, cancelable: true });\n\n input?.dispatchEvent(event);\n }\n\n if (onChange) {\n onChange(newValue, meta);\n }\n\n if (required) {\n const valueRemoved = Array.isArray(newValue) && newValue.length < 1;\n\n setRequiredInputValue(valueRemoved ? '' : 'present');\n }\n };\n\n const selectProps = {\n ...rest,\n className: `form-select ${className ?? ''}${\n hasError && !isDisabled ? 'is-invalid' : ''\n }`,\n components,\n defaultValue: defaultOptions,\n inputId: id,\n isDisabled,\n onChange: wrappedOnChange,\n options: selectOptions,\n placeholder,\n styles: { ...defaultStyles, ...styles },\n ref: customRef,\n value: controlledValue\n };\n\n const select = (props: object) => {\n return creatable ? (\n \n ) : (\n \n );\n };\n\n return (\n
\n {fieldLabel && (\n \n {fieldLabel}\n \n )}\n {select(selectProps)}\n
\n );\n};\n\nexport default CustomSelect;\n\nconst findDefaultOptions = (\n normalizedOptions: CustomSelectOption[],\n initialValue: number[] | string[] | number | string | undefined\n) => {\n if (!initialValue) {\n return undefined;\n } else if (Array.isArray(initialValue)) {\n return initialValue.map(val =>\n normalizedOptions.find(opt => opt.value === val.toString())\n );\n }\n\n return normalizedOptions.find(opt => opt.value === initialValue.toString());\n};\n\nconst buildNormalizedOptions = (\n options: CustomSelectOptions,\n initialValue: number[] | string[] | number | string | undefined,\n creatable: boolean | undefined\n) => {\n const normalizedOptions = options.map(option => {\n const { label, value } = option;\n\n return {\n label,\n value: value ? value.toString() : label\n };\n });\n\n /** For createable selects, if users add an option, they will only input a single string\n * if the initialValue string does not match an option name or value, it was created by a user\n * so we display their option using the initialValue string for both the label and the value\n\n * Note: only supports creatable single select, does not currently handle\n * createable multiselect as we don't have a use case for it\n * however the logic could be adapted in the future if needed\n */\n if (\n creatable &&\n typeof initialValue === 'string' &&\n initialValue.length > 0 &&\n !options.find(opt =>\n /** because we support supplying either name or name+value\n * and normaliz it with the above normalizedOptions method\n * we have to check if the initialValue string matches either\n * the option name or the option value\n */\n opt.value ? opt.value === initialValue : opt.label === initialValue\n )\n ) {\n normalizedOptions.unshift({ label: initialValue, value: initialValue });\n }\n\n return normalizedOptions;\n};\n","import React, { useState } from 'react';\nimport CustomSelect from './CustomSelect';\n\ninterface EndDateProps {\n readonly monthOptions: CustomSelectOptions;\n readonly yearOptions: CustomSelectOptions;\n readonly hasMonthError: boolean;\n readonly hasYearError: boolean;\n readonly monthDefaultValue?: string;\n readonly yearDefaultValue?: string;\n readonly formName: string;\n readonly formId: string;\n readonly currentCheckboxValue: string;\n readonly endedError?: string[];\n}\n\nconst EndDate: React.FC = ({\n monthOptions,\n yearOptions,\n hasMonthError,\n hasYearError,\n monthDefaultValue,\n yearDefaultValue,\n formName,\n formId,\n currentCheckboxValue,\n endedError\n}) => {\n const [current, setCurrent] = useState(!!currentCheckboxValue);\n\n const onCurrentChange = () => {\n setCurrent(!current);\n };\n\n return (\n <>\n
\n \n
\n \n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n {endedError && !current && (\n
{endedError}
\n )}\n \n );\n};\n\nexport default EndDate;\n","import chunk from 'lodash-es/chunk';\nimport React from 'react';\nimport { useState } from 'react';\nimport Carousel from './Carousel';\nimport CustomSelect from './CustomSelect';\nimport useWindowSize from '../hooks/useWindowSize';\n\nexport const FeaturedListings: React.FC<{\n readonly items: Listing[];\n readonly locations: CustomSelectOptions;\n readonly heading: string;\n readonly showRegionsDropdown: boolean;\n}> = ({ items, locations, heading, showRegionsDropdown }) => {\n const windowSize = useWindowSize();\n let itemCount = 1;\n const maxItems = 12;\n\n if (windowSize.width) {\n if (windowSize.width > 960) {\n itemCount = 2;\n }\n\n if (windowSize.width > 1320) {\n itemCount = 4;\n }\n }\n\n const [selectedLocation, setSelectedLocation] = useState(' ');\n const [numTimesSelectedLocationChanged, setNumTimesSelectedLocationChanged] =\n useState(0);\n\n const onLocationChange = (selectedValue: string) => {\n setNumTimesSelectedLocationChanged(numTimesSelectedLocationChanged + 1);\n setSelectedLocation(selectedValue);\n };\n\n const carouselSlideItems = chunk(\n (selectedLocation === ' '\n ? items\n : items.filter(\n carouselItem => carouselItem.locationId === Number(selectedLocation)\n )\n ).slice(0, maxItems),\n itemCount\n );\n\n return (\n
\n
\n

{heading}

\n\n onLocationChange(selected.value)}\n />\n
\n\n {/* The -version-${numTimesSelectedLocationChanged}-${itemCount} in the carouselId and key attributes */}\n {/* ensure that both the indicators created inside the Carousel component and the carouselSlideItems inside this compenent */}\n {/* rerender whenever either changes - otherwise, if you are on page 3 of the indicators and either the */}\n {/* windows gets smalled or the dropdown changes and there are no longer 3 pages of cards */}\n {/* then you are presented with a page of cards that doesn't exist - you see nothing and the indicators are broken */}\n {/* the Carousel compenent has a comment to that effect as its intended useage */}\n
\n \n {carouselSlideItems.map((carouselItems, idx) => (\n \n
\n
\n {carouselItems.map(item => {\n const {\n title,\n id,\n location,\n summary,\n logo,\n expires,\n saveButtonHtml\n } = item;\n\n return (\n \n
\n \n \n\n

\n {title}\n

\n
\n {location}\n | {expires}\n
\n
\n {summary}\n
\n \n\n
\n \n
\n
\n
\n );\n })}\n
\n
\n
\n ))}\n \n \n \n );\n};\n\nexport default FeaturedListings;\n","import { useEffect } from 'preact/hooks';\nimport React, { useState } from 'react';\nimport useWindowSize from '../hooks/useWindowSize';\nimport next from '../images/next.svg';\nimport previous from '../images/previous.svg';\n\ninterface Link {\n text: string;\n href: string;\n className: string;\n iconUrl?: string;\n}\n\ninterface HorizontalNavProps {\n readonly links: [Link];\n readonly defaultLink: string;\n}\n\nconst MobileLinkList: React.FC = props => {\n let navItemsNode: HTMLElement | null = null;\n\n const { links, defaultLink } = props;\n\n const [currentIndex, setCurrentIndex] = useState(\n links.findIndex(link => link.href === defaultLink)\n );\n\n const [scrollableValue, setScrollableValue] = useState();\n\n const checkScrollable = () => {\n if (navItemsNode) {\n setScrollableValue(navItemsNode.scrollWidth > navItemsNode.clientWidth);\n }\n };\n\n // Check scrollability when component renders\n useEffect(checkScrollable);\n\n // Scroll to the correct nav item\n useEffect(() => {\n if (scrollableValue !== undefined) {\n navItemsNode\n ?.querySelectorAll('.nav-item')\n [currentIndex]?.scrollIntoView({ block: 'nearest', inline: 'start' });\n }\n }, [navItemsNode, currentIndex, scrollableValue]);\n\n const canPrevious = currentIndex > 0;\n const canNext = currentIndex < links.length - 1;\n\n const decrementCurrentIndex = () => {\n if (canPrevious) {\n setCurrentIndex(currentIndex - 1);\n }\n };\n\n const incrementCurrentIndex = () => {\n if (canNext) {\n setCurrentIndex(currentIndex + 1);\n }\n };\n\n return (\n
    \n
    \n {scrollableValue && canPrevious && (\n \n \"previous\"\n \n )}\n
    \n (navItemsNode = node)}\n >\n {links.map(({ text, href, className }) => {\n return (\n
  • \n \n {text}\n \n
  • \n );\n })}\n \n
    \n {scrollableValue && canNext && (\n \n \"next\"\n \n )}\n
    \n
\n );\n};\n\nconst DesktopLinkList: React.FC<{ readonly links: [Link] }> = ({ links }) => {\n return (\n
    \n {links.map((link, idx) => {\n const { text, href, className, iconUrl } = link;\n\n return (\n
  • \n \n {iconUrl && {text}}\n {text}\n \n
  • \n );\n })}\n
\n );\n};\n\nconst HorizontalNav: React.FC = props => {\n const windowSize = useWindowSize();\n\n return windowSize.width && windowSize.width < 960 ? (\n \n ) : (\n \n );\n};\n\nexport default HorizontalNav;\n","import React, { useRef, useState } from 'react';\nimport ReactSelectInterface from 'react-select/dist/declarations/src/Select';\nimport CustomSelect from './CustomSelect';\nimport CheckboxMultiSelect from './multiselect/CheckboxMultiSelect';\n\ninterface ParentAndChildrenSelectProps {\n readonly formName: string;\n readonly formId: string;\n readonly parentFieldName: string;\n readonly childrenFieldName: string;\n readonly currentParentValue?: string;\n readonly currentChildrenValue?: string[];\n readonly parentOptions: CustomSelectOptions;\n readonly childrenOptions: SelectOptionsWithParents;\n readonly parentPlaceholder: string;\n readonly childrenPlaceholder: string;\n readonly parentLabel: string;\n readonly childrenLabel: string;\n readonly parentRequired?: boolean;\n readonly parentHasError: boolean;\n readonly parentError: string;\n readonly childrenHasError: boolean;\n readonly childrenError: string;\n readonly includeParentPlaceholderOption?: boolean;\n}\n\nconst ParentAndChildrenSelect: React.FC = ({\n formName,\n formId,\n parentFieldName,\n childrenFieldName,\n currentParentValue,\n currentChildrenValue,\n parentOptions,\n childrenOptions,\n parentPlaceholder,\n childrenPlaceholder,\n parentLabel,\n childrenLabel,\n parentHasError,\n parentError,\n childrenHasError,\n childrenError,\n parentRequired,\n includeParentPlaceholderOption\n}) => {\n const [currentParent, setCurrentParent] = useState();\n const [currentChildrenOptions, setChildrenOptions] =\n useState(childrenOptions);\n\n const childrenInputRef = useRef(null);\n\n const onCurrentParentChange = (selected: {\n label: string;\n value: string;\n }) => {\n const filteredChildren = childrenOptions.filter(\n children => children.parent_id === Number(selected.value)\n );\n\n setChildrenOptions(filteredChildren);\n setCurrentParent(selected);\n\n if (childrenInputRef.current) {\n childrenInputRef.current.clearValue();\n }\n };\n\n return (\n <>\n
\n \n {parentHasError ? : null}\n {parentError && (\n
{parentError}
\n )}\n
\n
\n \n {childrenHasError ? : null}\n {childrenError && (\n
{childrenError}
\n )}\n
\n \n );\n};\n\nexport default ParentAndChildrenSelect;\n","import { components } from 'react-select';\nimport { OptionProps } from 'react-select/dist/declarations/src/components/Option';\nimport { SingleValueProps } from 'react-select/dist/declarations/src/components/SingleValue';\nimport CustomSelect from './CustomSelect';\n\nconst styles = {\n placeholder: (base: object) => ({\n ...base,\n color: '#1b2224'\n }),\n option: (base: object, data: { isFocused: boolean }): object => ({\n ...base,\n backgroundColor: data.isFocused ? '#DEEBFF' : 'transparent',\n color: '#1b2224'\n }),\n valueContainer: (base: object) => ({\n ...base,\n // this as extra padding because it is not searchable\n // otherwise searchable and non-searchable elements have different heights\n // on searchable selects the Input component creates extra space\n padding: '.75rem 1rem',\n display: 'flex'\n })\n};\n\ninterface RadioSelectProps {\n className?: string;\n id: string;\n isDisabled?: boolean;\n hasError: boolean;\n label?: string;\n menuIsOpen?: boolean; // for testing\n name: string;\n options: Array<{ label: string }>;\n onChange?: (\n newValue: { label: string; value: number | string },\n meta: { name: string; action: string }\n ) => void;\n placeholder: string;\n initialValue?: string[];\n}\n\nconst RadioSelect: React.FC = ({\n placeholder,\n className,\n ...rest\n}) => {\n const Option = (props: OptionProps) => {\n const { label, isSelected } = props;\n\n return (\n
\n \n null}\n className=\"form-check-input\"\n />\n \n \n
\n );\n };\n\n const SingleValue = (\n props: SingleValueProps<{ label: string; value: string }>\n ) => {\n const labelToBeDisplayed =\n props.data.label === 'All' ? placeholder : props.data.label;\n\n return (\n \n {labelToBeDisplayed}\n \n );\n };\n\n return (\n \n );\n};\n\nexport default RadioSelect;\n","import React, { useMemo, useState } from 'react';\nimport CustomSelect from './CustomSelect';\n\nconst styles = {\n placeholder: (base: object) => ({\n ...base,\n fontWeight: 'normal'\n }),\n valueContainer: (base: object) => ({\n ...base,\n padding: '0.25rem 0.5rem'\n })\n};\n\ninterface SalaryRangeProps {\n readonly salaryRangeType: string;\n readonly options: SalaryRangeInterface[];\n readonly salaryBandFromId: string | null;\n readonly salaryBandToId: string | null;\n readonly menuIsOpen?: boolean;\n}\n\nconst SalaryRange: React.FC = ({\n menuIsOpen,\n salaryRangeType,\n salaryBandFromId,\n salaryBandToId,\n options\n}) => {\n const annualOptions = useMemo(\n () => options.filter(opt => opt.remuneration_period === 'annually'),\n [options]\n );\n\n const hourlyOptions = useMemo(\n () => options.filter(opt => opt.remuneration_period === 'hourly'),\n [options]\n );\n\n const [currentSalaryRangeType, setCurrentSalaryRangeType] =\n useState(salaryRangeType);\n\n const currentOptions =\n currentSalaryRangeType === 'hourly' ? hourlyOptions : annualOptions;\n\n const fromOptions = useMemo(\n () =>\n currentOptions.map(opt => {\n return {\n label: opt.display_value,\n value: opt.id\n };\n }),\n [currentOptions]\n );\n\n const toOptions = useMemo(\n () =>\n currentOptions.map(opt => {\n return {\n label: opt.display_value,\n value: opt.id\n };\n }),\n [currentOptions]\n );\n\n const fromInitialOption = fromOptions.find(\n opt =>\n salaryBandFromId && opt.value.toString() === salaryBandFromId.toString()\n );\n\n const toInitialOption = toOptions.find(\n opt => salaryBandToId && opt.value.toString() === salaryBandToId.toString()\n );\n\n const [salaryFrom, setSalaryFrom] = useState(fromInitialOption ?? '');\n const [salaryTo, setSalaryTo] = useState(toInitialOption ?? '');\n\n /*\n Having tried other approaches like functional composition and switch statements\n This is a rare case where nested ternary is actually the most legible way of writing this\n\n The logic builds the placeholder based on what values are present\n If both values are set, use those.\n If only one value is set, use the string 'Any' for the other value\n If neither value is set, fall back a default\n */\n const placeholder =\n /* eslint-disable no-nested-ternary */\n typeof salaryFrom === 'object' && typeof salaryTo === 'object'\n ? `${salaryFrom.label} to ${salaryTo.label}`\n : typeof salaryFrom === 'object'\n ? `${salaryFrom.label} to any`\n : typeof salaryTo === 'object'\n ? `any to ${salaryTo.label}`\n : 'Any Pay Range';\n /* eslint-enable no-nested-ternary */\n\n const onSalaryRangeTypeChange = (value: string) => {\n setCurrentSalaryRangeType(value);\n setSalaryFrom('');\n setSalaryTo('');\n };\n\n // due to using min and max values\n // in addition to doing a numeric comparsion\n // this also compares labels to filter out options where\n // the value is greater but the label is the same\n const optionIsDisabled = (option: { label: string; value: string }) => {\n if (typeof salaryFrom !== 'object') {\n return false;\n }\n\n const salaryBandFrom = currentOptions.find(\n ({ id }) => id.toString() === salaryFrom.value\n );\n const salaryBandTo = currentOptions.find(\n ({ id }) => id.toString() === option.value\n );\n\n return !!(\n salaryBandFrom &&\n salaryBandTo &&\n (Number(salaryBandTo.minimum_salary) <=\n Number(salaryBandFrom.minimum_salary) ||\n option.label === salaryFrom.label)\n );\n };\n\n return (\n
\n \n {placeholder}\n \n \n
\n
\n
\n \n Annually\n \n \n Hourly\n \n
\n onSalaryRangeTypeChange(event.target.value)}\n className=\"visually-hidden\"\n />\n onSalaryRangeTypeChange(event.target.value)}\n className=\"visually-hidden\"\n />\n
\n
\n
\n setSalaryFrom(opt)}\n options={fromOptions}\n placeholder=\"Any\"\n styles={styles}\n />\n
\n\n
\n setSalaryTo(opt)}\n options={toOptions}\n placeholder=\"Any\"\n styles={styles}\n isOptionDisabled={optionIsDisabled}\n />\n
\n
\n
\n
\n \n );\n};\n\nexport default SalaryRange;\n","import FacebookShareIcon from '../images/facebookShare.svg';\nimport LinkedinShareIcon from '../images/linkedinShare.svg';\nimport TwitterShareIcon from '../images/twitterShare.svg';\n\nconst ShareLinks: React.FC<{ url: string }> = ({ url }) => (\n
\n \n \"Facebook\"\n \n \n \"Twitter\"\n \n \n \"LinkedIn\"\n \n
\n);\n\nexport default ShareLinks;\n","import { Entry } from 'contentful';\nimport chunk from 'lodash-es/chunk';\nimport React from 'react';\nimport Carousel from './Carousel';\nimport useWindowSize from '../hooks/useWindowSize';\nimport useContentful from '../js/contentful/useContentful';\nimport {\n ICallToActionFields,\n ICallToActionListFields\n} from '../types/contentful';\n\nexport const SupportingCallToActionCard: React.FC<{\n readonly item: Entry;\n}> = ({ item }) => {\n const { title, description, image, accentColour } = item.fields;\n\n return (\n
\n \n {image && (\n \n )}\n

{title}

\n {description &&
{description}
}\n
\n \n );\n};\n\nconst SupportingCallsToAction: React.FC<{\n readonly page: string;\n readonly audience: Audience;\n}> = ({ page, audience }) => {\n const { fetched, data } = useContentful({\n contentType: 'callToActionList',\n query: {\n 'fields.location': page,\n 'fields.audience': audience\n }\n });\n\n const windowSize = useWindowSize();\n let itemCount = 1;\n\n if (windowSize.width) {\n if (windowSize.width > 720) {\n itemCount = 2;\n }\n\n if (windowSize.width > 1200) {\n itemCount = 4;\n }\n }\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n return null;\n }\n\n const { callsToAction } = data.items[0].fields;\n const carouselItems = chunk(callsToAction, itemCount);\n\n return itemCount < 4 ? (\n \n {carouselItems.map((carouselSlideItems, idx) => {\n return (\n \n
\n
\n {carouselSlideItems.map(item => (\n \n ))}\n
\n
\n \n );\n })}\n \n ) : (\n
\n
\n {callsToAction.map(callToAction => {\n return (\n \n );\n })}\n
\n
\n );\n};\n\nexport default SupportingCallsToAction;\n","import { Entry } from 'contentful';\nimport React from 'react';\nimport useContentful from '../js/contentful/useContentful';\nimport {\n ICallToActionFields,\n ICallToActionListFields\n} from '../types/contentful';\n\nexport const WelcomeCallToActionCard: React.FC<{\n readonly item: Entry;\n}> = ({ item }) => {\n const { title, description, image, callToActionText, callToActionUrl } =\n item.fields;\n\n const imageSrc = image?.fields.file.url;\n\n return (\n
\n {imageSrc && (\n \n {title}\n \n )}\n
\n

{title}

\n

{description}

\n {callToActionText && callToActionUrl && (\n \n {callToActionText}\n \n )}\n
\n
\n );\n};\n\nconst WelcomeCallsToAction: React.FC<{\n readonly audience: Audience;\n}> = ({ audience }) => {\n const { fetched, data } = useContentful({\n contentType: 'callToActionList',\n query: {\n 'fields.location': 'Welcome page',\n 'fields.audience': audience\n }\n });\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n return null;\n }\n\n const { callsToAction } = data.items[0].fields;\n\n return (\n <>\n {callsToAction.map(callToAction => {\n return (\n \n );\n })}\n \n );\n};\n\nexport default WelcomeCallsToAction;\n","import { Entry, EntryCollection } from 'contentful';\nimport resolveResponse from 'contentful-resolve-response';\nimport React from 'react';\nimport { ICategoryContentFields } from '../../types/contentful';\n\nconst ServerRenderedSEO: React.FC<{\n // This type is extremely forgiving, since this data comes from the backend.\n // We have extra defensiveness built into this component to guard against\n // missing data, which is why we allow this to be a partial of the entry collection,\n // or null\n readonly entryCollection: Partial<\n EntryCollection\n > | null;\n}> = ({ entryCollection }) => {\n if (!entryCollection?.items) {\n return null;\n }\n\n const categoryCollection = resolveResponse(entryCollection, {\n removeUnresolved: true\n }) as Array>;\n const category = categoryCollection.at(0);\n\n if (!category) {\n return null;\n }\n\n const { categoryName, heroImage, keywords, excerpt } = category.fields;\n const title = `Megajobs - ${categoryName}`;\n\n const createdAt = new Date(category.sys.createdAt);\n const updatedAt = new Date(category.sys.updatedAt);\n const heroImageUrl = (heroImage ? heroImage.fields.file.url : '').replace(\n /^\\/\\//u,\n 'https://'\n );\n\n const metas: Record = {\n 'og:title': title,\n 'twitter:title': title,\n 'twitter:description': excerpt,\n 'description': excerpt,\n 'og:description': excerpt,\n 'og:image': heroImageUrl,\n 'keywords': keywords?.toString(),\n 'twitter:image:src': heroImageUrl,\n 'DCTERMS.created': createdAt.toISOString(),\n 'DCTERMS.modified': updatedAt.toISOString()\n };\n\n return (\n <>\n {title}\n {Object.keys(metas).map(metaKey => (\n \n ))}\n \n );\n};\n\nexport default ServerRenderedSEO;\n","import { Entry } from 'contentful';\nimport { useEffect } from 'preact/hooks';\nimport React from 'react';\nimport useContentful from '../../js/contentful/useContentful';\nimport { ICategoryContentFields } from '../../types/contentful';\nimport RichTextContent from '../contentful/RichTextContent';\nimport { ResourceList } from '../resources/ResourceList';\n\nconst ShowCategory: React.FC<{\n readonly category: Entry;\n readonly categoryJobsCount: string;\n readonly categorySearchPath: string;\n}> = ({ category, categoryJobsCount, categorySearchPath }) => {\n const {\n categoryName,\n heroImage,\n introduction,\n relatedResources,\n keywords,\n excerpt\n } = category.fields;\n\n const heroImageUrl = heroImage ? heroImage.fields.file.url : '';\n const heroImageTitle = heroImage ? heroImage.fields.title : '';\n\n useEffect(() => {\n const createdAt = new Date(category.sys.createdAt);\n const updatedAt = new Date(category.sys.updatedAt);\n\n document.title = `${document.title}: ${categoryName}`;\n const metas: Record = {\n 'og:title': categoryName,\n 'twitter:title': categoryName,\n 'twitter:description': excerpt,\n 'description': excerpt,\n 'og:description': excerpt,\n 'og:image': heroImageUrl,\n 'keywords': keywords?.toString(),\n 'twitter:image:src': heroImageUrl,\n 'DCTERMS.created': createdAt.toISOString(),\n 'DCTERMS.modified': updatedAt.toISOString()\n };\n\n Object.keys(metas).forEach(metaKey => {\n const metaTag = document.head.querySelector(\n `meta[name='${metaKey}']`\n );\n const metaValue = metas[metaKey];\n\n return metaTag && metaValue && (metaTag.content = metaValue);\n });\n }, [heroImageUrl, category, introduction, categoryName, keywords, excerpt]);\n\n return (\n <>\n
\n {heroImageTitle}\n
\n
\n

{categoryName}

\n\n {introduction && (\n
\n \n
\n )}\n
\n
\n

\n We currently have {categoryJobsCount} {categoryName} jobs\n

\n \n View all available jobs\n \n
\n\n

Related Articles

\n
\n {relatedResources && }\n
\n \n );\n};\n\nconst Show: React.FC<{\n readonly categoryName: string;\n readonly categoryJobsCount: string;\n readonly categorySearchPath: string;\n}> = ({ categoryName, categoryJobsCount, categorySearchPath }) => {\n const { fetched, data } = useContentful({\n contentType: 'categoryContent',\n query: {\n 'fields.categoryName': categoryName\n }\n });\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n window.location.pathname = '/404';\n\n return null;\n }\n\n const [category] = data.items;\n\n return (\n \n );\n};\n\nexport default Show;\nexport { ShowCategory };\n","import { Asset } from 'contentful';\nimport { useEffect, useState } from 'preact/compat';\nimport React from 'react';\nimport contentfulClient from '../../js/contentful/client';\n\ninterface AssetLinkProps\n extends React.DetailedHTMLProps<\n React.AnchorHTMLAttributes,\n HTMLAnchorElement\n > {\n readonly innerText?: string;\n readonly children?: React.ReactNode;\n readonly title: string;\n}\n\nconst AssetLink: React.FC = ({\n title,\n children,\n innerText,\n ...props\n}) => {\n const [asset, setAsset] = useState(null);\n\n useEffect(() => {\n const client = contentfulClient();\n\n client\n .getAssets({\n 'query': {\n limit: 1,\n order: 'sys.createdAt'\n },\n 'fields.title': title\n })\n .then(collection => setAsset(collection.items[0]))\n .catch(console.error);\n }, [title]);\n\n return (\n asset && (\n \n {children ?? innerText}\n \n )\n );\n};\n\nexport default AssetLink;\n","import React from 'preact/compat';\nimport Markdown from 'react-markdown';\nimport RemarkBreaks from 'remark-breaks';\nimport GfmMarkdown from 'remark-gfm';\nimport useContentful from '../../js/contentful/useContentful';\n\ninterface EntryWithContent {\n content: string;\n}\n\nconst MarkdownContent: React.FC<{\n contentType: string;\n query: Record;\n}> = ({ contentType, query }) => {\n const { data } = useContentful({\n contentType,\n query: {\n order: 'sys.createdAt',\n limit: 1,\n ...query\n }\n });\n\n const content = data?.items[0];\n\n return content ? (\n \n {content.fields.content}\n \n ) : null;\n};\n\nexport default MarkdownContent;\n","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport {\n type Options as RenderOptions,\n documentToReactComponents\n} from '@contentful/rich-text-react-renderer';\nimport {\n BLOCKS,\n Block,\n Document,\n INLINES,\n Inline\n} from '@contentful/rich-text-types';\nimport embed from 'embed-video';\nimport React from 'preact/compat';\nimport { ReactNode } from 'react'; // We're still using Preact, we just need this type\n\nexport type { RenderOptions };\n\nconst isEmbeddableUrl = (url: string) => {\n // currently the embed library will error if there isn't a hostname,\n // so we have to actually explicitly handle if an error is thrown\n try {\n return !!embed.info(url);\n } catch {\n return false;\n }\n};\n\nexport const options = {\n renderNode: {\n [BLOCKS.HEADING_1]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [BLOCKS.HEADING_2]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [BLOCKS.HEADING_3]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [BLOCKS.HEADING_4]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [BLOCKS.HEADING_5]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [BLOCKS.HEADING_6]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [INLINES.HYPERLINK]: (node: Block | Inline, children: ReactNode) => {\n if (isEmbeddableUrl(node.data.uri as string)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const html = embed(node.data.uri as string)!;\n\n return (\n \n );\n }\n\n return {children};\n },\n [BLOCKS.PARAGRAPH]: (_node: Block | Inline, children: ReactNode) => (\n

{children}

\n ),\n [BLOCKS.EMBEDDED_ASSET]: (node: Block | Inline, _children: ReactNode) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return node.data.target?.fields?.file?.details?.image ? (\n \n ) : null;\n }\n }\n};\n\nconst RichTextContent: React.FC<{\n content: Document;\n renderOptions?: RenderOptions;\n}> = ({ content, renderOptions = {} }) => {\n return (\n <>\n {documentToReactComponents(content, {\n ...options,\n ...renderOptions\n })}\n \n );\n};\n\nexport default RichTextContent;\n","import { Document } from '@contentful/rich-text-types';\nimport React from 'react';\nimport RichTextContent, { RenderOptions } from './RichTextContent';\nimport useContentful from '../../js/contentful/useContentful';\n\ninterface EntryWithContent {\n content: Document;\n}\n\nexport type { RenderOptions };\n\nconst RichTextEntry: React.FC<{\n readonly contentType: string;\n readonly query: Record;\n readonly renderOptions?: RenderOptions;\n}> = ({ contentType, query, renderOptions = {} }) => {\n const { data } = useContentful({\n contentType,\n query: {\n order: 'sys.createdAt',\n limit: 1,\n ...query\n }\n });\n\n const entry = data?.items[0];\n const { content } = entry?.fields ?? {};\n\n return content ? (\n \n ) : null;\n};\n\nexport default RichTextEntry;\n","import { Entry } from 'contentful';\nimport React from 'react';\nimport useContentful from '../../js/contentful/useContentful';\nimport {\n ICallToActionFields,\n ICallToActionListFields\n} from '../../types/contentful';\n\nexport const FeatureCard: React.FC<{\n readonly item: Entry;\n}> = ({ item }) => {\n const { title, description, image } = item.fields;\n\n return (\n
\n {image && (\n \n )}\n

{title}

\n {description &&
{description}
}\n
\n );\n};\n\nconst ListingFeatures: React.FC = () => {\n const { fetched, data } = useContentful({\n contentType: 'callToActionList',\n query: { 'fields.location': 'List A Job Page' }\n });\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n return null;\n }\n\n const { callsToAction } = data.items[0].fields;\n\n return (\n
\n
\n {callsToAction.map(callToAction => {\n return (\n \n );\n })}\n
\n
\n );\n};\n\nexport default ListingFeatures;\n","import SampleIcon from '../../images/sample.svg';\nimport AssetLink from '../contentful/AssetLink';\n\nconst SampleJobLink: React.FC = () => (\n \n View Sample Job\n \"Sample\n \n);\n\nexport default SampleJobLink;\n","import { BLOCKS, Block, Inline } from '@contentful/rich-text-types';\nimport React, { ReactNode } from 'react';\nimport { options as DefaultRenderOptions } from '../contentful/RichTextContent';\nimport RichTextEntry from '../contentful/RichTextEntry';\n\nconst Introduction: React.FC = () => (\n (\n

{children}

\n )\n }\n }}\n />\n);\n\nexport default Introduction;\n","import React, { useRef, useState } from 'react';\nimport ReactSelectInterface from 'react-select/dist/declarations/src/Select';\nimport CustomSelect from '../CustomSelect';\n\ninterface JobCategoriesProps {\n readonly formName: string;\n readonly formId: string;\n readonly currentCategoryValue?: number | string;\n readonly currentSubCategoryValue?: number | string;\n readonly categoryOptions: CustomSelectOptions;\n readonly subCategoryOptions: SelectOptionsWithParents;\n readonly categoryFieldHasError: boolean;\n readonly categoryFieldError: string;\n readonly subCategoryFieldHasError: boolean;\n readonly subCategoryFieldError: string;\n readonly categoryFieldPlaceholder: string;\n readonly subCategoryFieldPlaceholder: string;\n}\n\nconst JobCategories: React.FC = ({\n formName,\n formId,\n currentCategoryValue,\n currentSubCategoryValue,\n categoryOptions,\n subCategoryOptions,\n categoryFieldHasError,\n categoryFieldError,\n subCategoryFieldHasError,\n subCategoryFieldError,\n categoryFieldPlaceholder,\n subCategoryFieldPlaceholder\n}) => {\n const [currentCategory, setCurrentCategory] = useState(currentCategoryValue);\n const [currentSubCategoryOptions, setSubCategoryOptions] = useState(\n subCategoryOptions.filter(\n category => Number(category.parent_id) === Number(currentCategoryValue)\n )\n );\n const subCategoryInputRef = useRef(null);\n const onCurrentCategoryChange = (selected: {\n label: string;\n value: number | string;\n }) => {\n const filteredSubCategories = subCategoryOptions.filter(\n category => Number(category.parent_id) === Number(selected.value)\n );\n\n setSubCategoryOptions(filteredSubCategories);\n setCurrentCategory(selected.value);\n\n if (subCategoryInputRef.current) {\n subCategoryInputRef.current.clearValue();\n }\n };\n\n return (\n <>\n
\n \n {categoryFieldHasError ? : null}\n {categoryFieldError && (\n
{categoryFieldError}
\n )}\n
\n
\n \n {subCategoryFieldHasError ? : null}\n {subCategoryFieldError && (\n
\n {subCategoryFieldError}\n
\n )}\n
\n \n );\n};\n\nexport default JobCategories;\n","import React, { useState } from 'react';\nimport CustomSelect from '../CustomSelect';\n\ntype SelectOptionsWithFte = Array<{\n full_time_equivalent: boolean;\n label: string;\n value: string;\n}>;\n\ninterface JobTypeProps {\n readonly formName: string;\n readonly formId: string;\n readonly jobTypeValue?: string;\n readonly showHoursField: boolean;\n readonly jobTypeOptions: SelectOptionsWithFte;\n readonly jobTypeFieldHasError: boolean;\n readonly jobTypeError: string;\n readonly hoursPerWeekFixed: boolean;\n readonly hoursPerWeek?: number;\n readonly hoursPerWeekMin?: number;\n readonly hoursPerWeekMax?: number;\n readonly hoursPerWeekMaxFieldHasError: boolean;\n readonly hoursPerWeekMaxError: string;\n readonly jobTypeFieldPlaceholder: string;\n}\n\nconst JobType: React.FC = ({\n formName,\n formId,\n jobTypeValue,\n showHoursField,\n jobTypeOptions,\n jobTypeFieldHasError,\n hoursPerWeekFixed,\n hoursPerWeek,\n hoursPerWeekMin,\n hoursPerWeekMax,\n jobTypeError,\n hoursPerWeekMaxFieldHasError,\n hoursPerWeekMaxError,\n jobTypeFieldPlaceholder\n}) => {\n const [hoursFieldVisible, setHoursFieldVisible] = useState(showHoursField);\n const [currentHoursPerWeekFixed, setCurrentHoursPerWeekFixed] =\n useState(hoursPerWeekFixed);\n\n const onJobTypeChange = (selected: {\n label: string;\n value: number | string;\n }) => {\n const jobType = jobTypeOptions.find(jt => jt.value === selected.value);\n\n setHoursFieldVisible(!jobType?.full_time_equivalent);\n };\n\n const onHoursFixedChange = (value: string) => {\n setCurrentHoursPerWeekFixed(value === '1');\n };\n\n return (\n <>\n
\n onJobTypeChange(selected)}\n initialValue={jobTypeValue}\n required\n />\n {jobTypeFieldHasError ? : null}\n {jobTypeError && (\n
{jobTypeError}
\n )}\n
\n {!hoursFieldVisible ? (\n \n ) : (\n
\n \n How many hours per week is this role?\n \n
\n onHoursFixedChange(event.target.value)}\n className=\"form-check-input\"\n />\n \n Fixed\n \n \n \n \n \n onHoursFixedChange(event.target.value)}\n className=\"form-check-input\"\n />\n \n Range\n \n
\n \n to\n \n \n {hoursPerWeekMaxFieldHasError ? (\n \n ) : null}\n {hoursPerWeekMaxError && (\n
\n {hoursPerWeekMaxError}\n
\n )}\n
\n
\n
\n )}\n \n );\n};\n\nexport default JobType;\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport ReactSelectInterface from 'react-select/dist/declarations/src/Select';\nimport CustomSelect from '../CustomSelect';\n\ninterface LocationsProps {\n readonly formName: string;\n readonly formId: string;\n readonly currentLocationValue?: string;\n readonly currentSubLocationValue?: string;\n readonly locationOptions: CustomSelectOptions;\n readonly subLocationOptions: SelectOptionsWithParents;\n readonly locationFieldHasError: boolean;\n readonly locationFieldError: string;\n readonly subLocationFieldHasError: boolean;\n readonly subLocationFieldError: string;\n readonly locationFieldPlaceholder: string;\n readonly subLocationFieldPlaceholder: string;\n}\n\nconst Locations: React.FC = ({\n formName,\n formId,\n currentLocationValue,\n currentSubLocationValue,\n locationOptions,\n subLocationOptions,\n locationFieldHasError,\n locationFieldError,\n subLocationFieldHasError,\n subLocationFieldError,\n locationFieldPlaceholder,\n subLocationFieldPlaceholder\n}) => {\n const [currentLocation, setCurrentLocation] = useState(currentLocationValue);\n const [currentSubLocationOptions, setSubLocationOptions] =\n useState(subLocationOptions);\n const subLocationInputRef = useRef(null);\n const onCurrentLocationChange = (selected: {\n label: string;\n value: number | string;\n }) => {\n filterSubLocations(selected.value);\n setCurrentLocation(selected.label);\n\n if (subLocationInputRef.current) {\n subLocationInputRef.current.clearValue();\n }\n };\n\n const filterSubLocations = useCallback(\n (parentId: number | string) => {\n const filteredSubLocations = subLocationOptions.filter(\n location => location.parent_id === Number(parentId)\n );\n\n setSubLocationOptions(filteredSubLocations);\n },\n [subLocationOptions]\n );\n\n useEffect(() => {\n if (currentLocation) {\n if (subLocationOptions === currentSubLocationOptions) {\n filterSubLocations(currentLocation);\n }\n }\n }, [\n currentLocation,\n currentSubLocationOptions,\n filterSubLocations,\n subLocationOptions\n ]);\n\n return (\n <>\n
\n \n {locationFieldHasError ? : null}\n {locationFieldError && (\n
{locationFieldError}
\n )}\n
\n
\n \n \n {subLocationFieldHasError ? : null}\n {subLocationFieldError && (\n
\n {subLocationFieldError}\n
\n )}\n
\n \n );\n};\n\nexport default Locations;\n","import React, { useState } from 'react';\n\ninterface RemunerationProps {\n readonly formName: string;\n readonly formId: string;\n readonly remunerationType: string;\n readonly salaryFixed: boolean;\n readonly salary: number;\n readonly salaryMin: number;\n readonly salaryMax: number;\n readonly salaryMaxFieldHasError: boolean;\n readonly salaryMaxFieldError: string[];\n readonly salaryMinFieldHasError: boolean;\n readonly salaryMinFieldError: string[];\n readonly salaryFieldHasError: boolean;\n readonly salaryFieldError: string[];\n readonly hourlyRateFixed: boolean;\n readonly hourlyRate: number;\n readonly hourlyRateMin: number;\n readonly hourlyRateMax: number;\n readonly hourlyRateMaxFieldHasError: boolean;\n readonly hourlyRateMaxFieldError: string[];\n}\n\nconst Remuneration: React.FC = ({\n formId,\n formName,\n remunerationType,\n salaryFixed,\n salary: originalSalary,\n salaryMin,\n salaryMax,\n hourlyRateFixed,\n hourlyRate,\n hourlyRateMin,\n hourlyRateMax,\n salaryMaxFieldHasError,\n salaryMaxFieldError,\n salaryMinFieldHasError,\n salaryMinFieldError,\n salaryFieldHasError,\n salaryFieldError,\n hourlyRateMaxFieldHasError,\n hourlyRateMaxFieldError\n}) => {\n const [currentSalaryFixed, setCurrentSalaryFixed] = useState(salaryFixed);\n const [currentHourlyRateFixed, setCurrentHourlyRateFixed] =\n useState(hourlyRateFixed);\n const [currentRemunerationType, setCurrentRemunerationType] =\n useState(remunerationType);\n const [salary, setSalary] = useState(originalSalary || 0);\n const [minimumSalary, setMinimumSalary] = useState(salaryMin || 0);\n const [maximumSalary, setMaximumSalary] = useState(salaryMax || 0);\n\n const onSalaryFixedChange = (value: string) => {\n setCurrentSalaryFixed(value === '1');\n };\n\n const onHourlyRateFixedChange = (value: string) => {\n setCurrentHourlyRateFixed(value === '1');\n };\n\n const onRemunerationTypeChange = (value: string) => {\n setCurrentRemunerationType(value);\n };\n\n function getSalaryFields() {\n return (\n
\n onSalaryFixedChange(event.target.value)}\n className=\"form-check-input\"\n />\n \n Fixed\n \n
\n
\n $\n \n setSalary(parseInt(event.target.value) * 1000)}\n value={salary / 1000}\n />\n
\n \n {salaryFieldHasError ? : null}\n {salaryFieldHasError ? (\n
\n {salaryFieldError.join(', ')}\n
\n ) : null}\n
\n onSalaryFixedChange(event.target.value)}\n className=\"form-check-input\"\n />\n \n Range\n \n
\n
\n $\n \n \n setMinimumSalary(parseInt(event.target.value) * 1000)\n }\n value={minimumSalary / 1000}\n />\n
\n k\n to\n
\n $\n \n \n setMaximumSalary(parseInt(event.target.value) * 1000)\n }\n value={maximumSalary / 1000}\n />\n
\n k\n Annually\n {salaryMinFieldHasError ? : null}\n {salaryMinFieldHasError ? (\n
\n {salaryMinFieldError.join(', ')}\n
\n ) : null}\n {salaryMaxFieldHasError ? : null}\n {salaryMaxFieldHasError ? (\n
\n {salaryMaxFieldError.join(', ')}\n
\n ) : null}\n
\n
\n );\n }\n\n function getHourlyRateFields() {\n return (\n
\n onHourlyRateFixedChange(event.target.value)}\n className=\"form-check-input\"\n />\n \n Fixed\n \n
\n
\n $\n \n
\n \n
\n onHourlyRateFixedChange(event.target.value)}\n className=\"form-check-input\"\n />\n \n Range\n \n
\n
\n $\n \n
\n to\n
\n $\n \n
\n per hour\n {hourlyRateMaxFieldHasError ? : null}\n {hourlyRateMaxFieldHasError ? (\n
\n {hourlyRateMaxFieldError.join(', ')}\n
\n ) : null}\n
\n
\n );\n }\n\n return (\n
\n
\n \n Salary\n \n \n Hourly Rate\n \n
\n onRemunerationTypeChange(event.target.value)}\n className=\"visually-hidden\"\n />\n onRemunerationTypeChange(event.target.value)}\n className=\"visually-hidden\"\n />\n {currentRemunerationType === 'salary'\n ? getSalaryFields()\n : getHourlyRateFields()}\n
\n );\n};\n\nexport default Remuneration;\n","import { components } from 'react-select';\nimport ReactSelectInterface from 'react-select/dist/declarations/src/Select';\nimport { OptionProps } from 'react-select/dist/declarations/src/components/Option';\nimport { ValueContainerProps } from 'react-select/dist/declarations/src/components/containers';\nimport CustomSelect from '../CustomSelect';\n\nconst styles = {\n option: (base: object, data: { isFocused: boolean }): object => ({\n ...base,\n backgroundColor: data.isFocused ? '#DEEBFF' : 'transparent',\n color: '#1b2224'\n }),\n placeholder: (base: object) => ({\n ...base\n }),\n valueContainer: (base: object) => ({\n ...base,\n padding: '.5rem 1rem',\n display: 'flex'\n })\n};\n\ninterface CheckboxMultiSelectProps {\n className?: string;\n closeMenuOnSelect?: boolean;\n customRef?: React.RefObject;\n id: string;\n initialValue?: string[];\n isDisabled?: boolean;\n includePlaceholderOption?: boolean;\n hasError: boolean;\n label?: string;\n menuIsOpen?: boolean; // for testing\n name: string;\n options: CustomSelectOptions;\n onChange?: (\n newValue: { label: string; value: number | string },\n meta: { name: string; action: string }\n ) => void;\n placeholder?: string;\n showSearchComponent?: boolean;\n}\n\nconst CheckboxMultiSelect: React.FC = ({\n placeholder,\n className,\n closeMenuOnSelect = false,\n showSearchComponent = true,\n ...rest\n}) => {\n const Option = (\n props: OptionProps<{ label: string; value: number | string }>\n ) => {\n const { isSelected, label, data, selectOption } = props;\n\n const onClickMultiOption = (e: React.FormEvent) => {\n selectOption({ ...data });\n e.stopPropagation();\n e.preventDefault();\n };\n\n return (\n
\n \n null}\n className=\"form-check-input\"\n />\n {/* click handler should be on the input as indicated here:\n https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/672\n\n however in this case this causes a bug where clicks on the label close the menu\n and do not select the target, and therefore the label must have a click handler\n https://github.com/JedWatson/react-select/issues/4666 */}\n {/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */}\n \n  {label}\n \n \n
\n );\n };\n\n const SearchValueContainer = (props: ValueContainerProps) => {\n const { children, getValue } = props;\n const currentValues = getValue();\n\n const prefix =\n currentValues.length > 0 ? `(${currentValues.length})` : 'All ';\n\n return (\n \n \n {prefix}\n {placeholder}\n \n {/* Second child in array is input we want to render but\n @ts-expect-error because typescript not acknowledging React.fragment is an array */}\n {children?.[1]}\n \n );\n };\n\n return (\n \n );\n};\n\nexport default CheckboxMultiSelect;\n","import { useMemo, useState } from 'react';\nimport ReactSelect, { ActionMeta, MultiValue, SingleValue } from 'react-select';\nimport MultiValueComponent from './NestedMultiValueContainer';\nimport OptionComponent from './NestedOption';\nimport { groupOptions, normalizeOptions } from './helpers';\nimport styles from './styles';\n\ninterface NestedMultiSelectProps {\n className?: string;\n id: string;\n initialValue?: string[];\n label?: string;\n menuIsOpen?: boolean; // for testing\n name: string;\n optionGroups?: boolean;\n options: Array<{\n label: string;\n value: string;\n parent_id?: string;\n principality?: string;\n }>;\n placeholder: string;\n}\n\nconst NestedMultiSelect: React.FC = ({\n className,\n id,\n initialValue,\n optionGroups,\n label: fieldLabel,\n name: fieldName,\n options,\n ...rest\n}) => {\n const normalizedOptions = useMemo(() => normalizeOptions(options), [options]);\n\n const groupedOptions = optionGroups\n ? groupOptions(normalizedOptions)\n : undefined;\n\n const defaultOptions = initialValue\n ?.map(sel =>\n normalizedOptions.find((opt: { value: string }) => opt.value === sel)\n )\n .filter(\n (sel): sel is NestedMultiSelectOptionInterface => sel !== undefined\n );\n\n const [selectedValues, setSelectedValues] = useState(defaultOptions ?? []);\n\n const childChange = (option: NestedMultiSelectOptionInterface): void => {\n const checked = !!selectedValues.find(sel => {\n return sel.value === option.value;\n });\n\n switch (checked) {\n case false:\n setSelectedValues([\n ...selectedValues.filter(sel => {\n // Remove the parent of the child from the array of selectedValues\n return sel.value !== option.parentId;\n }),\n option\n ]);\n break;\n\n default:\n setSelectedValues(\n selectedValues.filter(sel => sel.value !== option.value)\n );\n\n break;\n }\n };\n\n const parentChange = (\n meta: ActionMeta\n ): void => {\n switch (meta.action) {\n case 'select-option':\n setSelectedValues(\n [\n ...selectedValues.filter(sel => {\n // Remove any children of the parent from the array of selectedValues\n return sel.parentId !== meta.option?.value;\n }),\n meta.option\n ].filter(\n (sel): sel is NestedMultiSelectOptionInterface => sel !== undefined\n )\n );\n\n break;\n\n case 'deselect-option':\n case 'remove-value':\n case 'pop-value':\n setSelectedValues(\n selectedValues.filter(sel => {\n // Remove the parent and any children of that parent from the array of selectedValues\n return (\n sel.value !== meta.option?.value &&\n sel.parentId !== meta.option?.value\n );\n })\n );\n\n break;\n // Meta actions which trigger the default\n // | 'clear'\n // | 'create-option';\n default:\n console.error(`Meta action ${meta.action} has not been implemented`);\n }\n };\n\n const onChange = (\n _newValue:\n | MultiValue\n | SingleValue,\n meta: ActionMeta\n ): void => {\n if (meta.option?.parentId) {\n childChange(meta.option);\n } else {\n parentChange(meta);\n }\n };\n\n /** React-Select does not emit native change events on the hidden input\n * field that it creates. This onChange wrapper fixes that by emitting a change\n * event on the input when the select value changes. If a React-Select onChange\n * prop is given, it'll then call that with the original args.\n */\n const wrappedOnChange = (\n newValue:\n | MultiValue\n | SingleValue,\n meta: ActionMeta\n ) => {\n if (meta.action === 'select-option') {\n const input = document.querySelector(\n `input[name='${meta.name ?? 'custom-select'}']`\n );\n const event = new Event('change', { bubbles: true, cancelable: true });\n\n input?.dispatchEvent(event);\n }\n\n onChange(newValue, meta);\n };\n\n return (\n
\n ComponentType>> | undefined'\n // is not assignable to type\n // 'ComponentType>> | undefined'\n // @ts-expect-error TS have tried to unpick the type web unsuccessfully\n MultiValue: MultiValueComponent,\n // Type '(props: CustomOptionProps) => ComponentType>> | undefined'\n // is not assignable to type\n // 'ComponentType>> | undefined'\n // @ts-expect-error TS have tried to unpick the type web unsuccessfully\n Option: OptionComponent\n }}\n defaultValue={defaultOptions}\n id={id}\n hideSelectedOptions={false}\n initialValue={defaultOptions}\n isMulti\n isClearable={false}\n fieldLabel={fieldLabel}\n // menuIsOpen\n normalizedOptions={normalizedOptions}\n name={fieldName}\n onChange={wrappedOnChange}\n options={optionGroups ? groupedOptions : normalizedOptions}\n styles={styles(id)}\n selectedValues={selectedValues}\n setSelectedValues={setSelectedValues}\n value={selectedValues}\n />\n
\n );\n};\n\nexport default NestedMultiSelect;\n","import uniqBy from 'lodash-es/uniqBy';\nimport { ComponentType } from 'preact';\nimport { GroupBase, MultiValueProps } from 'react-select';\nimport { CustomSelectProps } from './NestedOption';\n\n// Interface 'CustomMultiValueProps' incorrectly extends interface 'MultiValueProps>'.\n// The types of 'selectProps.backspaceRemovesValue' are incompatible between these types.\n// Type 'boolean | undefined' is not assignable to type 'boolean'.\n// Type 'undefined' is not assignable to type 'boolean'.\n// @ts-expect-error TS have tried to unpick the type web unsuccessfully\ninterface CustomMultiValueProps\n extends MultiValueProps {\n readonly selectProps: CustomSelectProps;\n}\nconst MultiValueContainer = (\n props: CustomMultiValueProps\n):\n | ComponentType<\n MultiValueProps<\n NestedMultiSelectOptionInterface,\n true,\n GroupBase\n >\n >\n | undefined => {\n const { index, selectProps, getValue } = props;\n\n const { normalizedOptions, id } = selectProps;\n const selectedValues = getValue();\n\n if (index > 0) {\n return undefined;\n }\n\n const labelForSingleParentCategory = () => {\n const firstCategoryParent = selectedValues.find(\n val => val.parentId === null\n );\n\n const multipleValues = selectedValues.length > 1;\n\n const labelFromChild = multipleValues\n ? normalizedOptions.find(val => val.value === selectedValues[0]?.parentId)\n ?.label\n : selectedValues[0]?.label;\n\n return firstCategoryParent ? firstCategoryParent.label : labelFromChild;\n };\n\n const multipleParents =\n selectedValues.filter(sel => sel.parentId === null).length > 1 ||\n uniqBy(selectedValues, 'parentId').length > 1;\n\n const childrenToRender = [];\n const pluralizedLabel = id[0].toUpperCase() + id.substring(1);\n\n if (multipleParents) {\n childrenToRender.push(Multiple {pluralizedLabel});\n } else {\n if (selectedValues.length > 1) {\n childrenToRender.push(({selectedValues.length}) );\n }\n\n if (selectedValues.length > 0) {\n childrenToRender.push(labelForSingleParentCategory());\n }\n }\n\n // Type 'Element' is not assignable to type\n // 'ComponentType>> | undefined'.\n // Type 'ReactElement' is not assignable to type\n // 'FunctionComponent>>'\n // @ts-expect-error TS have tried to unpick the type web unsuccessfully\n return {childrenToRender};\n};\n\nexport default MultiValueContainer;\n","import { ComponentType } from 'preact';\nimport {\n GroupBase,\n MultiValueProps,\n OptionProps,\n Props,\n components\n} from 'react-select';\n\nconst childOptionStyle = {\n marginLeft: '2rem'\n};\n\nconst selectAllStyle = {\n margin: '0.5rem 0 0.5rem 2rem'\n};\n\nconst ChildOption = (props: {\n readonly data: NestedMultiSelectOptionInterface;\n readonly selectedValues: NestedMultiSelectOptionInterface[];\n readonly onClick: (e: React.FormEvent) => void;\n}) => {\n const { data, selectedValues, onClick } = props;\n\n const { label, value } = data;\n\n const checked = !!selectedValues.find(sel => {\n return sel.value === value;\n });\n\n return (\n // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions\n \n \n  {label}\n \n );\n};\n\nconst ParentOption = ({\n checked,\n label,\n value,\n onClick,\n alt\n}: {\n readonly alt: string;\n readonly value: string;\n readonly checked: boolean;\n readonly label: string;\n readonly onClick: (e: React.FormEvent) => void;\n}) => {\n return (\n /* click handler should be on the input as indicated here:\n https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/672\n\n however in this case this causes a bug where clicks on the label close the menu\n and do not select the target, and therefore the label must have a click handler\n https://github.com/JedWatson/react-select/issues/4666 */\n /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */\n \n );\n};\n\nexport interface CustomSelectProps\n extends Props<\n NestedMultiSelectOptionInterface,\n true,\n GroupBase\n > {\n id: string;\n normalizedOptions: NestedMultiSelectOptionInterface[];\n selectedValues: NestedMultiSelectOptionInterface[];\n setSelectedValues: (newValue: NestedMultiSelectOptionInterface[]) => void;\n}\n\n// Interface 'CustomOptionProps' incorrectly extends interface\n// 'OptionProps>'.\n// The types of 'selectProps.backspaceRemovesValue' are incompatible between these types.\n// Type 'boolean | undefined' is not assignable to type 'boolean'.\n// Type 'undefined' is not assignable to type 'boolean'.ts(2430)\n// @ts-expect-error TS have tried to unpick the type web unsuccessfully\ninterface CustomOptionProps\n extends OptionProps {\n selectProps: CustomSelectProps;\n}\n\nconst OptionComponent = (\n props: CustomOptionProps\n):\n | ComponentType<\n MultiValueProps<\n NestedMultiSelectOptionInterface,\n true,\n GroupBase\n >\n >\n | undefined => {\n const { data, selectOption, selectProps } = props;\n const { parentId, value, label } = data;\n const isParent = parentId === null;\n const { normalizedOptions, selectedValues, setSelectedValues } = selectProps;\n\n const parent = isParent\n ? data\n : normalizedOptions.find(opt => opt.value === data.parentId);\n\n const parentSelected = !!selectedValues.find(\n sel => sel.value === parent?.value\n );\n\n const childSelected = !!selectedValues.find(\n sel => sel.parentId === (isParent ? data.value : data.parentId)\n );\n\n const onParentClick = (e: React.FormEvent) => {\n e.stopPropagation();\n e.preventDefault();\n\n if (childSelected) {\n setSelectedValues([\n ...selectedValues.filter(sel => {\n // Remove any children of the parent from the array of selectedValues\n return sel.parentId !== parent?.value;\n })\n ]);\n } else {\n selectOption({ ...data });\n }\n };\n\n const onSelectAllClick = (e: React.FormEvent) => {\n e.stopPropagation();\n e.preventDefault();\n\n selectOption({ ...data });\n };\n\n const ChildComponent =\n parentSelected || childSelected ? (\n // Type '{ children: Element; selectProps: CustomSelectProps; innerRef: (instance: HTMLDivElement | null) => void; innerProps: DetailedHTMLProps, HTMLDivElement>; ... 17 more ...; theme: Theme; }' is not assignable to type 'OptionProps>'.\n // The types of 'selectProps.backspaceRemovesValue' are incompatible between these types.\n // Type 'boolean | undefined' is not assignable to type 'boolean'.\n // Type 'undefined' is not assignable to type 'boolean'.\n // @ts-expect-error TS have tried to unpick the type web unsuccessfully\n \n \n \n ) : undefined;\n\n const OptionToRender = isParent ? (\n // Type '{ children: Element; selectProps: CustomSelectProps; innerRef: (instance: HTMLDivElement | null) => void; innerProps: DetailedHTMLProps, HTMLDivElement>; ... 17 more ...; theme: Theme; }' is not assignable to type 'OptionProps>'.\n // The types of 'selectProps.backspaceRemovesValue' are incompatible between these types.\n // Type 'boolean | undefined' is not assignable to type 'boolean'.\n // Type 'undefined' is not assignable to type 'boolean'.\n // @ts-expect-error TS have tried to unpick the type web unsuccessfully\n \n \n {(parentSelected || childSelected) && (\n <>\n
\n \n
\n
\n \n )}\n
\n ) : (\n ChildComponent\n );\n\n // Type 'Element | undefined' is not assignable to type 'ComponentType>> | undefined'.\n // @ts-expect-error TS have tried to unpick the type web unsuccessfully\n return OptionToRender;\n};\n\nexport default OptionComponent;\n","import sortBy from 'lodash-es/sortBy';\n\nexport const nestOptions = (\n options: NestedMultiSelectOptionInterface[]\n): NestedMultiSelectOptionInterface[] => {\n const parentOptions = sortBy(\n options.filter(opt => opt.parentId === null),\n 'label'\n );\n\n return parentOptions\n .map(parentOpt => {\n const children = options\n .filter(opt => opt.parentId === parentOpt.value)\n .map(opt => {\n opt.group = parentOpt.group;\n\n return opt;\n });\n\n return [parentOpt, ...children];\n })\n .flat();\n};\n\nexport const normalizeOptions = (\n options: Array<{\n label: string;\n value: string;\n parent_id?: string;\n principality?: string;\n }>\n): NestedMultiSelectOptionInterface[] => {\n return nestOptions(\n options.map(opt => {\n return {\n label: opt.label,\n value: opt.value.toString(),\n parentId: opt.parent_id ? opt.parent_id.toString() : null,\n group: opt.principality ?? ''\n };\n })\n );\n};\n\nexport const groupOptions = (\n options: NestedMultiSelectOptionInterface[]\n): GroupedNestedMultiSelectOptionInterface[] => {\n const grouped = options.reduce(\n (groups: Record, opt) => ({\n ...groups,\n // Type is not express properly above, causing a false postive (condition is required)\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n [opt.group]: [...(groups[opt.group] || []), opt]\n }),\n {}\n );\n\n return Object.keys(grouped).map(label => ({\n label,\n options: grouped[label]\n }));\n};\n","const nestedMultiSelectStyles = (label: string): object => ({\n container: (base: object): object => ({\n ...base,\n padding: 0\n }),\n control: (base: object, state: { isDisabled: boolean }): object => ({\n ...base,\n backgroundColor: `${state.isDisabled ? '#d8d8d8' : ''}`,\n transition: 'background-color 300ms',\n border: 'none',\n boxShadow: 'none',\n padding: 0\n }),\n dropdownIndicator: (): object => ({\n display: 'none'\n }),\n indicatorSeparator: (): object => ({\n width: 0\n }),\n group: (base: object): object => ({\n ...base,\n paddingTop: 0\n }),\n groupHeading: (): object => ({\n color: 'black',\n fontWeight: 600,\n fontSize: 16,\n padding: 0\n }),\n menu: (base: object): object => ({\n ...base,\n padding: '1.5rem',\n width: '414px'\n }),\n menuList: (base: object): object => ({\n ...base,\n '&:before': {\n content: JSON.stringify(`Select ${label} from below`),\n fontWeight: 'bold',\n marginBottom: '1rem',\n top: '-0.3rem',\n position: 'relative',\n fontSize: '18px'\n }\n }),\n option: (base: object, data: { isFocused: boolean }): object => ({\n ...base,\n backgroundColor: data.isFocused ? '#DEEBFF' : 'white',\n color: '#1b2224',\n paddingTop: '6px',\n paddingBottom: '6px'\n }),\n placeholder: (base: object): object => ({\n ...base,\n color: '#BABABA',\n fontStyle: 'italic'\n }),\n valueContainer: (base: object): object => ({\n ...base,\n padding: '.5rem 1rem',\n display: 'flex'\n })\n});\n\nexport default nestedMultiSelectStyles;\n","import React from 'react';\nimport useContentful from '../../js/contentful/useContentful';\nimport { IPageIntroductionFields } from '../../types/contentful';\n\nconst ResourcesBanner: React.FC<{ readonly audience: Audience }> = ({\n audience\n}) => {\n const { fetched, data } = useContentful({\n contentType: 'pageIntroduction',\n query: {\n 'order': 'sys.createdAt',\n 'limit': 1,\n 'fields.page': 'Resources',\n 'fields.audience': audience\n }\n });\n\n // Loading state and not found state\n if (!fetched || !data?.items.length) {\n return
;\n }\n\n const heroImage = data.items[0].fields.heroImage;\n\n return heroImage ? (\n
\n {heroImage.fields.title}\n
\n ) : null;\n};\n\nexport default ResourcesBanner;\n","import { Entry } from 'contentful';\nimport React from 'react';\nimport Markdown from 'react-markdown';\nimport GfmMarkdown from 'remark-gfm';\nimport useContentful from '../../js/contentful/useContentful';\nimport {\n ICallToActionFields,\n ICallToActionListFields\n} from '../../types/contentful';\n\nconst CallToActionCard: React.FC<{\n readonly callToAction: Entry;\n}> = ({ callToAction }) => {\n const {\n title,\n description,\n callToActionText,\n callToActionUrl,\n secondaryCallToActionText,\n secondaryCallToActionUrl,\n image,\n accentColour\n } = callToAction.fields;\n\n return (\n
\n {image && (\n \n )}\n \n

{title}

\n {description && (\n
\n \n {description}\n \n
\n )}\n
\n {callToActionText && callToActionUrl && (\n
\n \n {callToActionText}\n \n
\n )}\n {secondaryCallToActionText && secondaryCallToActionUrl && (\n
\n \n {secondaryCallToActionText}\n \n
\n )}\n
\n
\n
\n );\n};\n\nconst ResourcesCallToAction: React.FC<{\n readonly page: string;\n readonly audience?: Audience;\n}> = ({ page, audience }) => {\n const { fetched, data } = useContentful({\n contentType: 'callToActionList',\n query: {\n 'fields.location': page,\n 'fields.audience': audience\n }\n });\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n return null;\n }\n\n const { callsToAction } = data.items[0].fields;\n\n return (\n
\n {callsToAction.map(callToAction => (\n \n ))}\n
\n );\n};\n\nexport default ResourcesCallToAction;\n","import { Entry } from 'contentful';\nimport chunk from 'lodash-es/chunk';\nimport React from 'react';\nimport useWindowSize from '../../hooks/useWindowSize';\nimport useContentful from '../../js/contentful/useContentful';\nimport { IResourceFields } from '../../types/contentful';\nimport Carousel from '../Carousel';\n\nexport const FeaturedCard: React.FC<{\n readonly item: Entry;\n}> = ({ item }) => {\n const { title, cardImage, summary, publishedAt, slug, category, audience } =\n item.fields;\n\n // Contentful Types lie - this field is required, but a draft asset is sufficient,\n // which means this field CAN in fact be null.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!cardImage) {\n console.warn(\n `Resource ${title} is missing an image so was skipped from rendering`\n );\n\n return null;\n }\n\n const datePublished = new Date(\n publishedAt ?? item.sys.createdAt\n ).toLocaleDateString('en-NZ', {\n year: 'numeric',\n day: '2-digit',\n month: 'long'\n });\n\n const badgeColorMap = {\n 'Job Seekers': 'primary',\n 'Employers': 'secondary',\n 'Resources': 'orange',\n 'News': 'yellow',\n 'Both': 'muted-secondary'\n };\n\n return (\n \n \n \n \n
\n
\n {/* @ts-expect-error audience is required by the API request but typescript hasn't registered this so yells about possible undefineds*/}\n \n For {audience}\n \n {/* @ts-expect-error category is required to be News or Resources by the API request but typescript hasn't registered this so yells about missing key*/}\n \n {category}\n \n
\n

{title}

\n

{datePublished}

\n {category !== 'Videos' && (\n

\n {summary}\n ... \n \n Read More\n \n

\n )}\n
\n \n );\n};\n\nconst FeaturedResources: React.FC<{\n readonly id?: string;\n readonly category?: string;\n}> = ({ category = 'Resources,News', id = 'ResourcesAndNews' }) => {\n const { fetched, data } = useContentful({\n contentType: 'resource',\n query: {\n 'order': '-fields.publishedAt',\n 'fields.audience[in]': 'Job Seekers,Employers,Both',\n 'fields.featured': true,\n 'fields.category[in]': category\n }\n });\n\n const windowSize = useWindowSize();\n let itemCount = 1;\n\n if (windowSize.width) {\n if (windowSize.width > 960) {\n itemCount = 2;\n }\n\n if (windowSize.width > 1320) {\n itemCount = 3;\n }\n }\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n return null;\n }\n\n const { items } = data;\n const carouselItems = chunk(items, itemCount);\n\n return (\n \n {carouselItems.map((carouselSlideItems, idx) => {\n return (\n \n
\n
\n {carouselSlideItems.map(item => (\n \n ))}\n
\n
\n \n );\n })}\n \n );\n};\n\nexport default FeaturedResources;\n","import { Entry } from 'contentful';\nimport capitalize from 'lodash-es/capitalize';\nimport { useCallback } from 'preact/hooks';\nimport React, { useEffect, useState } from 'react';\nimport ReactPaginate from 'react-paginate';\nimport PlayIcon from '../../images/play.svg';\nimport useContentful from '../../js/contentful/useContentful';\nimport { IResourceFields } from '../../types/contentful';\n\nconst ImagePlaceholder: React.FC<{\n readonly url: string;\n readonly title: string;\n}> = ({ url, title }) => {\n return (\n \n {title}\n \n );\n};\n\nconst VideoPlaceholder: React.FC<{\n readonly url: string;\n readonly title: string;\n}> = ({ url, title }) => {\n return (\n \n
\n {title}\n
\n \n \"play-icon\"\n \n
\n \n );\n};\n\nexport const ResourceList: React.FC<{\n readonly resources: Array>;\n readonly audience?: Audience;\n}> = ({ resources, audience }) => {\n return (\n <>\n {resources.map(resource => {\n const { title, cardImage, summary, publishedAt, slug, category } =\n resource.fields;\n\n const datePublished = new Date(\n publishedAt ?? resource.sys.createdAt\n ).toLocaleDateString('en-NZ', {\n year: 'numeric',\n day: '2-digit',\n month: 'long'\n });\n\n // Contentful Types lie - this field is required, but a draft asset is sufficient,\n // which means this field CAN in fact be null.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!cardImage) {\n console.warn(\n `Resource ${title} is missing an image so was skipped from rendering`\n );\n\n return;\n }\n\n return (\n \n
\n

{title}

\n

{datePublished}

\n

{summary}

\n
\n {category === 'Videos' ? (\n \n ) : (\n \n )}\n \n );\n })}\n \n );\n};\n\nconst PaginatedResourceList: React.FC<{\n readonly audience: Audience;\n readonly itemsPerPage?: number;\n readonly items: Array>;\n}> = ({ itemsPerPage = 5, items, audience }) => {\n const [resources, setResources] = useState>>([]);\n const [pageCount, setPageCount] = useState(0);\n const [itemOffset, setItemOffset] = useState(0);\n\n useEffect(() => {\n const endOffset = itemOffset + itemsPerPage;\n\n setResources(items.slice(itemOffset, endOffset));\n setPageCount(Math.ceil(items.length / itemsPerPage));\n }, [itemOffset, itemsPerPage, items]);\n\n const handlePageClick = useCallback(\n (event: { selected: number }) => {\n const newOffset = (event.selected * itemsPerPage) % items.length;\n\n setItemOffset(newOffset);\n },\n [items, itemsPerPage]\n );\n\n return (\n
\n \n \n
\n );\n};\n\ninterface ResourceListWrapperProps {\n readonly audience: Audience;\n readonly category: 'news' | 'resources' | 'videos';\n}\n\nconst ResourceListWrapper: React.FC = ({\n audience,\n category\n}) => {\n const { fetched, data } = useContentful({\n contentType: 'resource',\n query: {\n 'fields.audience[in]': `${audience},Both`,\n 'fields.category': capitalize(category)\n }\n });\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n window.location.pathname = '/resources';\n\n return null;\n }\n\n const { items } = data;\n\n // Due to the requirement to sort this list by either\n // publishedAt or createdAt, we are unable to do this via\n // the contentful API which would be the preferred solution\n // so instead we have to do this manually here.\n\n const orderedItems = items\n .sort(\n (resource1, resource2) =>\n Date.parse(resource1.fields.publishedAt ?? resource1.sys.createdAt) -\n Date.parse(resource2.fields.publishedAt ?? resource2.sys.createdAt)\n )\n .reverse();\n\n return ;\n};\n\nexport default ResourceListWrapper;\n","import { Entry, EntryCollection } from 'contentful';\nimport resolveResponse from 'contentful-resolve-response';\nimport React from 'react';\nimport { IResourceFields } from '../../types/contentful';\n\nconst ServerRenderedSEO: React.FC<{\n // This type is extremely forgiving, since this data comes from the backend.\n // We have extra defensiveness built into this component to guard against\n // missing data, which is why we allow this to be a partial of the entry collection,\n // or null\n readonly entryCollection: Partial> | null;\n}> = ({ entryCollection }) => {\n if (!entryCollection?.items) {\n return null;\n }\n\n const resourceCollection = resolveResponse(entryCollection, {\n removeUnresolved: true\n }) as Array>;\n const resource = resourceCollection.at(0);\n\n if (!resource) {\n return null;\n }\n\n const createdAt = new Date(resource.sys.createdAt);\n const publishedAt = new Date(resource.fields.publishedAt ?? createdAt);\n const { title, heroImage, keywords, excerpt } = resource.fields;\n\n const pageTitle = `Megajobs - ${title}`;\n const updatedAt = new Date(resource.sys.updatedAt);\n\n // CC-1721: Types generated from contentful say that hero image is a required\n // property but if the customer unpublishes the image the field can be unresolveable.\n // this means the heroImage variable we get from resource.fields may in fact NOT\n // be of type heroImage since its coming in from an outside system.\n // So we cast heroImage to heroImage just in case its not already a heroImage\n // so we can either get the url properly or just return ''\n const heroImageUrl = (\n (heroImage as Partial | undefined)?.fields?.file.url ?? ''\n ).replace(/^\\/\\//u, 'https://');\n\n const metas: Record = {\n 'og:title': pageTitle,\n 'twitter:title': pageTitle,\n 'twitter:description': excerpt,\n 'description': excerpt,\n 'og:description': excerpt,\n 'og:image': heroImageUrl,\n 'keywords': keywords?.toString(),\n 'twitter:image:src': heroImageUrl,\n 'DCTERMS.created': publishedAt.toISOString(),\n 'DCTERMS.modified': updatedAt.toISOString()\n };\n\n return (\n <>\n {pageTitle}\n {Object.keys(metas).map(metaKey => (\n \n ))}\n \n );\n};\n\nexport default ServerRenderedSEO;\n","import { Entry } from 'contentful';\nimport embed from 'embed-video';\nimport { useEffect, useMemo } from 'preact/hooks';\nimport React from 'react';\nimport useContentful from '../../js/contentful/useContentful';\nimport { IResourceFields } from '../../types/contentful';\nimport RichTextContent from '../contentful/RichTextContent';\n\nconst VideoResource: React.FC<{\n readonly title: string;\n readonly videoEmbedUrl: string;\n readonly publishedAt: Date;\n}> = ({ title, videoEmbedUrl, publishedAt }) => {\n const videoEmbedHtml = videoEmbedUrl && embed(videoEmbedUrl);\n\n return (\n <>\n

{title}

\n
\n \n Published{' '}\n {publishedAt.toLocaleDateString('en-NZ', {\n day: 'numeric',\n month: 'long',\n year: 'numeric'\n })}\n \n
\n {videoEmbedHtml && (\n \n )}\n \n );\n};\n\n// CCSD-3400\n// the image MUST be at least 1200x627 for sharing on social media (linkedin), which is 1.91:1 aspect ratio.\n// We want our image to be at least 1400 wide, and if the source images aspect ratio is wider the 1.91:1 (like 2.24:1)\n// then we get an image thats too short to fit on social media\n// So, we need to ensure its at least 627 high (for linkedin) and at least 1400 wide (for this site)\n// and we fit by filling in the extra space with transparency.\n\nconst WrittenResourceHeader: React.FC<{\n readonly title: string;\n readonly audience?: string;\n readonly heroImageUrl?: string;\n readonly heroImageTitle?: string;\n readonly publishedAt: Date;\n}> = ({ publishedAt, heroImageUrl, heroImageTitle, audience, title }) => {\n return (\n <>\n \n \n
\n

{title}

\n
\n \n Published{' '}\n {publishedAt.toLocaleDateString('en-NZ', {\n day: 'numeric',\n month: 'long',\n year: 'numeric'\n })}\n \n
\n \n );\n};\n\nconst ShowResource: React.FC<{ readonly resource: Entry }> = ({\n resource\n}) => {\n const {\n title,\n audience,\n heroImage,\n content,\n summary,\n videoEmbedUrl,\n excerpt,\n keywords\n } = resource.fields;\n\n const heroImageUrl = heroImage.fields.file.url;\n const heroImageTitle = heroImage.fields.title;\n\n const updatedAt = useMemo(\n () => new Date(resource.sys.updatedAt),\n [resource.sys.updatedAt]\n );\n const publishedAt = useMemo(() => {\n const createdAt = new Date(resource.sys.createdAt);\n\n return new Date(resource.fields.publishedAt ?? createdAt);\n }, [resource.fields.publishedAt, resource.sys.createdAt]);\n\n useEffect(() => {\n document.title = `${document.title}: ${title}`;\n const metas: Record = {\n 'og:title': title,\n 'twitter:title': title,\n 'twitter:description': excerpt,\n 'description': excerpt,\n 'og:description': excerpt,\n 'og:image': heroImageUrl,\n 'keywords': keywords?.toString(),\n 'twitter:image:src': heroImageUrl,\n 'DCTERMS.created': publishedAt.toISOString(),\n 'DCTERMS.modified': updatedAt.toISOString()\n };\n\n Object.keys(metas).forEach(metaKey => {\n const metaTag = document.head.querySelector(\n `meta[name='${metaKey}']`\n );\n const metaValue = metas[metaKey];\n\n return metaTag && metaValue && (metaTag.content = metaValue);\n });\n }, [\n heroImageUrl,\n publishedAt,\n resource,\n summary,\n title,\n updatedAt,\n excerpt,\n keywords\n ]);\n\n return (\n <>\n {videoEmbedUrl ? (\n \n ) : (\n \n )}\n\n {content && (\n
\n \n
\n )}\n \n );\n};\n\nconst Show: React.FC<{ readonly slug: string }> = ({ slug }) => {\n const { fetched, data } = useContentful({\n contentType: 'resource',\n query: {\n 'fields.slug': slug\n }\n });\n\n // Loading state\n if (!fetched) {\n return (\n
\n
\n Loading...\n
\n
\n );\n }\n\n // Not found state\n if (!data?.items.length) {\n window.location.pathname = '/404';\n\n return null;\n }\n\n const [resource] = data.items;\n\n return ;\n};\n\nexport default Show;\nexport { ShowResource };\n","import { Controller } from '@hotwired/stimulus';\n\n/**\n * This controller adds a CSS class to an element or elements when the action is triggered.\n * It is intentionally very generic, and doesn't prescribe what event should occur for the\n * action to be triggered. Instead, add a data-action attribute to your element to determine\n * when to add the class. The class name can be specified with data-add-class-class-name-value.\n *\n * Usage example:\n *\n *
\n * \n *
\n *
\n *
\n */\nexport default class AddClassController extends Controller {\n private declare readonly classNameValue: string;\n private declare readonly classRecipientTargets: HTMLElement[];\n\n public static values = { className: String };\n public static targets = ['classRecipient'];\n\n public add(): void {\n this.classRecipientTargets.forEach(target =>\n target.classList.add(this.classNameValue)\n );\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport debounce from 'lodash-es/debounce';\n\nexport default class Autosave extends Controller<\n HTMLFieldSetElement | HTMLFormElement\n> {\n private declare readonly delayValue: number;\n private declare readonly performInitialSaveValue: boolean;\n private declare readonly bindFormEventsValue: boolean;\n\n public static values = {\n delay: Number,\n performInitialSave: Boolean,\n bindFormEvents: Boolean\n };\n\n public initialize(): void {\n this.save = this.save.bind(this);\n }\n\n public connect(): void {\n if (this.delayValue > 0) {\n // This function is bound in initialize()\n // eslint-disable-next-line @typescript-eslint/unbound-method\n this.save = debounce(this.save, this.delayValue);\n }\n\n if (this.bindFormEventsValue) {\n this.form.addEventListener('change', () => {\n this.save();\n });\n }\n\n if (this.performInitialSaveValue) {\n this.save();\n }\n }\n\n public disconnect(): void {\n if (this.bindFormEventsValue) {\n this.form.removeEventListener('change', () => this.save());\n }\n }\n\n public get form(): HTMLFormElement {\n return (this.element.form || super.element) as HTMLFormElement;\n }\n\n public save(): void {\n this.form.requestSubmit();\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class CharacterCounter extends Controller {\n private declare readonly counterTarget: HTMLElement;\n private declare readonly remainingTarget: HTMLElement;\n private declare readonly inputTarget: HTMLInputElement;\n\n public static targets = ['input', 'counter', 'remaining'];\n\n public initialize(): void {\n this._update = this._update.bind(this);\n }\n\n public connect(): void {\n this._update();\n this.inputTarget.addEventListener('input', this._update.bind(this));\n this.inputTarget.addEventListener('trix-change', this._update.bind(this));\n }\n\n public disconnect(): void {\n this.inputTarget.removeEventListener('input', this._update.bind(this));\n this.inputTarget.removeEventListener(\n 'trix-change',\n this._update.bind(this)\n );\n }\n\n private _update(): void {\n const maxLength = this.inputTarget.getAttribute('maxlength');\n\n if (maxLength === null) {\n throw Error('The maxlength attribute is missing');\n }\n\n const limit = parseInt(maxLength);\n\n this.counterTarget.innerHTML = this._count.toString();\n this.remainingTarget.innerHTML = (limit - this._count).toString();\n }\n\n private get _count(): number {\n return this.inputTarget.value.length;\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\n/**\n * This controller conditionally disables a target based on the number of checkable\n * inputs that are checked up to maxlength.\n * We expect that the element is checkable, since this is the state we check.\n */\n\nexport default class ConditionalFieldsController extends Controller {\n public static targets = ['disableField', 'enableField', 'trigger'];\n public static values = {\n maxlength: { type: Number, default: 1 }\n };\n\n private declare readonly triggerTargets: HTMLInputElement[];\n private declare readonly disableFieldTargets: HTMLInputElement[];\n private declare readonly enableFieldTargets: HTMLInputElement[];\n private declare readonly maxlengthValue: number;\n private declare triggerGroup: Set;\n\n public connect(): void {\n // We handle change events on all elements with the same name,\n // even though they might not be direct targets.\n // This allows us to know when something was 'unchecked', and\n // update the state of this controller\n this.triggerGroup = new Set([\n ...this.triggerTargets,\n ...(Array.from(\n document.getElementsByName(this.triggerTargets[0].name)\n ) as HTMLInputElement[])\n ]);\n\n this.triggerGroup.forEach(trigger =>\n trigger.addEventListener('change', () => this._onChange())\n );\n\n this.triggerTargets[0].dispatchEvent(new Event('change'));\n }\n\n public disconnect(): void {\n this.triggerGroup.forEach(trigger =>\n trigger.removeEventListener('change', () => this._onChange())\n );\n }\n\n private _onChange(): void {\n const checkedTargets = this.triggerTargets.filter(({ checked }) => checked);\n\n if (checkedTargets.length >= this.maxlengthValue) {\n this.disableFieldTargets\n .filter(field => !checkedTargets.includes(field)) // Don't disable the field if it's also a target\n .forEach(field => field.setAttribute('disabled', 'disabled'));\n this.enableFieldTargets.forEach(field =>\n field.removeAttribute('disabled')\n );\n } else {\n this.disableFieldTargets.forEach(field =>\n field.removeAttribute('disabled')\n );\n this.enableFieldTargets.forEach(field =>\n field.setAttribute('disabled', 'disabled')\n );\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class FieldMatchController extends Controller {\n public static targets = ['newPassword', 'passwordConfirmation'];\n private declare readonly newPasswordTarget: HTMLInputElement;\n private declare readonly passwordConfirmationTarget: HTMLInputElement;\n\n public connect(): void {\n this.passwordConfirmationTarget.setCustomValidity('does not match');\n\n this.newPasswordTarget.addEventListener('keyup', this._validatePassword);\n this.newPasswordTarget.addEventListener('blur', this._validatePassword);\n this.passwordConfirmationTarget.addEventListener(\n 'keyup',\n this._validatePassword\n );\n this.passwordConfirmationTarget.addEventListener(\n 'blur',\n this._validatePassword\n );\n }\n\n public disconnect(): void {\n this.newPasswordTarget.removeEventListener('keyup', this._validatePassword);\n this.newPasswordTarget.removeEventListener('blur', this._validatePassword);\n this.passwordConfirmationTarget.removeEventListener(\n 'keyup',\n this._validatePassword\n );\n this.passwordConfirmationTarget.removeEventListener(\n 'blur',\n this._validatePassword\n );\n }\n\n private readonly _validatePassword = (): void => {\n if (this.passwordConfirmationTarget.value.length < 1) {\n return;\n }\n\n let passwordsMatch = document.getElementById('passwordsMatch');\n\n if (!passwordsMatch) {\n passwordsMatch = document.createElement('small');\n\n passwordsMatch.setAttribute('class', 'form-text text-muted');\n passwordsMatch.setAttribute('id', 'passwordsMatch');\n this.passwordConfirmationTarget.insertAdjacentElement(\n 'afterend',\n passwordsMatch\n );\n }\n\n if (\n this.newPasswordTarget.value === this.passwordConfirmationTarget.value\n ) {\n passwordsMatch.textContent = 'Passwords match';\n this.passwordConfirmationTarget.setCustomValidity('');\n } else {\n passwordsMatch.textContent = 'Passwords do not match';\n this.passwordConfirmationTarget.setCustomValidity('does not match');\n }\n };\n}\n","/* eslint-disable @typescript-eslint/unbound-method */\nimport { Controller } from '@hotwired/stimulus';\n\nexport default class FilePickerController extends Controller {\n private declare readonly inputTarget: HTMLInputElement;\n private declare readonly filenameTarget: HTMLElement;\n private declare readonly imagePreviewTarget: HTMLImageElement;\n private declare readonly presenceBasedTargets: HTMLElement[];\n private declare readonly absenceBasedTargets: HTMLElement[];\n private declare readonly hasImagePreviewTarget: boolean;\n private existingFilename: string | null = null;\n\n public static targets = [\n 'input',\n 'filename',\n 'presenceBased',\n 'absenceBased',\n 'imagePreview'\n ];\n\n public static values = {\n filename: String\n };\n\n public initialize(): void {\n this._onChange = this._onChange.bind(this);\n }\n\n public connect(): void {\n this.inputTarget.addEventListener('change', this._onChange);\n this.existingFilename = this.filenameTarget.textContent;\n this._onChange();\n }\n\n public disconnect(): void {\n this.inputTarget.removeEventListener('change', this._onChange);\n }\n\n public reset(): void {\n // Often, a file input will be paired with a hidden field so that an\n // already-attached file is retained when editing a record. This block\n // properly resets this, reflecting that if the user wants to reset the input,\n // we should clear both the file field, and any other fields that are used to\n // store the attachment state, which will cause the attachment to be detached\n // rather than just clearing the 'new' state and keeping the old.\n document\n .querySelectorAll(`[name=\"${this.inputTarget.name}\"]`)\n .forEach(field => (field.value = ''));\n this.existingFilename = null;\n this.inputTarget.dispatchEvent(new Event('change', { bubbles: true }));\n }\n\n private _onChange(): void {\n const firstFile = this.inputTarget.files?.item(0);\n const hasValue = !!firstFile || (this.existingFilename?.length ?? 0) > 0;\n\n this.filenameTarget.textContent = firstFile?.name ?? this.existingFilename;\n\n this.presenceBasedTargets.forEach(el =>\n el.classList.toggle('d-none', !hasValue)\n );\n\n this.absenceBasedTargets.forEach(el =>\n el.classList.toggle('d-none', hasValue)\n );\n\n if (this.hasImagePreviewTarget) {\n if (!hasValue) {\n this.imagePreviewTarget.classList.add('d-none');\n\n return;\n }\n\n if (firstFile?.type.startsWith('image/')) {\n const reader = new FileReader();\n\n reader.readAsDataURL(firstFile);\n\n reader.onloadend = () => {\n this.imagePreviewTarget.classList.remove('d-none');\n if (typeof reader.result === 'string') {\n this.imagePreviewTarget.src = reader.result;\n }\n };\n }\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport Modal from 'bootstrap/js/dist/modal';\n\ndeclare global {\n interface DocumentEventMap {\n 'turbo:submit-end': TurboEvent;\n }\n}\n\nexport default class ModalController extends Controller {\n private modal: Modal | undefined;\n\n public connect(): void {\n this.modal = Modal.getOrCreateInstance(this.element);\n\n if (this.element.classList.contains('show')) {\n this.modal.show();\n }\n\n document.addEventListener('turbo:submit-end', this._handleSubmit);\n this.element.addEventListener('hidden.bs.modal', this._navigateOnClose);\n }\n\n public disconnect(): void {\n this.element.removeEventListener('hidden.bs.modal', this._navigateOnClose);\n }\n\n protected _close(): void {\n const element = this.element;\n\n this.modal?.hide();\n\n element.addEventListener(\n 'hidden.bs.modal',\n () => {\n this.modal?.dispose();\n },\n { once: true }\n );\n }\n\n private readonly _handleSubmit = (e: TurboEvent) => {\n if (e.detail.success) {\n this._close();\n }\n };\n\n private readonly _navigateOnClose = () => {\n const modal = this.element as HTMLElement;\n\n // Note that if modalCloseUrl is set, this could override a redirect coming from the server\n if (!modal.dataset.modalCloseUrl) {\n return;\n }\n const closeUrl = new URL(modal.dataset.modalCloseUrl, window.location.href);\n\n window.location.href = `${window.location.origin}${closeUrl.pathname}${closeUrl.search}${closeUrl.hash}`;\n };\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class NestedFieldsController extends Controller {\n private declare readonly targetTarget: HTMLElement;\n private declare readonly templateTarget: HTMLElement;\n private declare readonly wrapperSelectorValue: string;\n\n public static targets = ['target', 'template'];\n public static values = {\n wrapperSelector: {\n type: String,\n default: '.nested-fields-wrapper'\n }\n };\n\n public add(e: Event): void {\n e.preventDefault();\n\n const content: string = this.templateTarget.innerHTML.replace(\n /NEW_RECORD/gu,\n new Date().getTime().toString()\n );\n\n this.targetTarget.insertAdjacentHTML('beforebegin', content);\n }\n\n public remove(e: Event): void {\n e.preventDefault();\n\n const target = e.target as HTMLElement;\n const wrapper: HTMLElement | null = target.closest(\n this.wrapperSelectorValue\n );\n\n wrapper?.remove();\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport ReactRailsUJS from 'react_ujs';\n\n// We need to mount React components after a turbo-streams response. Turbo\n// doesn't have a built-in 'after-stream-render' event so we implement this\n// functionality by attaching a `data-controller=\"react-mounter\"` attribute to\n// whatever DOM node contains the react components we need to re-mount. This\n// stimulus controller will attempt to mount any react components within it's\n// DOM node when it notices that the DOM node changes.\n\nexport default class ReactMounterController extends Controller {\n public connect(): void {\n ReactRailsUJS.mountComponents(this.element);\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { visit } from '@hotwired/turbo';\n\ninterface FetchResponse {\n response: {\n redirected: boolean;\n url: string;\n };\n}\n\nconst submitDidEnd = ({\n detail\n}: CustomEvent<{ success: boolean; fetchResponse?: FetchResponse }>): void => {\n if (detail.success && detail.fetchResponse?.response.redirected) {\n visit(detail.fetchResponse.response.url);\n }\n};\n\n// Turbo has an issue with redirects coming from a frame, like a modal.\n// It does the redirect, but it filters the response from the redirect so that\n// only the submitted turbo frame's content is updated. This is normally good,\n// unless your frame is something like a modal where you actually want to update\n// the rest of the page.\n//\n// This controller intercepts form submits, and if the response is successful\n// and was a redirect, it prompts Turbo to 'visit' the location using it's cache\n// before falling back to another network request.\nexport default class RedirectTopController extends Controller {\n public connect(): void {\n this.element.addEventListener(\n 'turbo:submit-end',\n submitDidEnd as EventListener\n );\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class RequiredFieldsController extends Controller {\n private requiredFields: HTMLInputElement[] = [];\n\n public connect(): void {\n this.element.disabled = true;\n\n if (this.element.form) {\n this.requiredFields = Array.from(\n this.element.form.querySelectorAll('[required]')\n );\n this.requiredFields.map(input => {\n input.addEventListener('keyup', this._checkFormValidity);\n input.addEventListener('blur', this._checkFormValidity);\n input.addEventListener('change', this._checkFormValidity);\n });\n\n this._checkFormValidity();\n }\n }\n\n public disconnect(): void {\n if (this.element.form) {\n this.requiredFields.map(input => {\n input.removeEventListener('keyup', this._checkFormValidity);\n input.removeEventListener('blur', this._checkFormValidity);\n input.removeEventListener('change', this._checkFormValidity);\n });\n }\n }\n\n private readonly _checkFormValidity = (): void => {\n const formIsValid = this.element.form?.checkValidity();\n const elementsAreValid =\n this.requiredFields.filter(input =>\n // Disable this check because the input may not _necessarily_ be an input.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n input.checkValidity ? input.checkValidity() : true\n ).length === this.requiredFields.length;\n\n this.element.disabled = !(formIsValid && elementsAreValid);\n };\n}\n","import { Controller } from '@hotwired/stimulus';\nimport {\n Appearance,\n CssFontSource,\n Stripe,\n StripeElements,\n StripePaymentElement,\n loadStripe\n} from '@stripe/stripe-js';\n\nconst appearance: Appearance = {\n theme: 'stripe',\n variables: {\n fontSizeBase: '16px',\n fontFamily: 'Raleway, sans-serif'\n },\n rules: {\n '.Label': {\n fontWeight: 'bold',\n fontSize: '18px'\n },\n '.Input': {\n fontSize: '1rem',\n padding: '0.75rem',\n lineHeight: '1.5',\n border: '0.125rem solid #d1d2d3',\n borderRadius: '0.6875rem'\n },\n '.Input:focus': {\n borderColor: '#000',\n boxShadow: 'none'\n }\n }\n};\n\n// Loading fonts from our own asset bundle doesn't appear to work.\n// There are no CSP warnings, but something in Stripe is blocking the request,\n// I think.\nconst fonts: CssFontSource[] = [\n { cssSrc: 'https://fonts.googleapis.com/css?family=Raleway:400,700' }\n];\n\n// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\nconst stripePublishableKey = process.env.STRIPE_PUBLISHABLE_KEY!;\n\nexport default class StripePaymentIntentController extends Controller {\n public static targets = ['paymentElement', 'errors'];\n public static values = { clientSecret: String, returnPath: String };\n private declare stripe: Stripe;\n private declare elements: StripeElements;\n private declare paymentElement: StripePaymentElement;\n private declare readonly errorsTarget: HTMLElement;\n private declare readonly paymentElementTarget: HTMLElement;\n private declare readonly clientSecretValue: string;\n private declare readonly returnPathValue: string;\n\n public async connect(): Promise {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.stripe = (await loadStripe(stripePublishableKey))!;\n this.elements = this.stripe.elements({\n appearance,\n fonts,\n clientSecret: this.clientSecretValue\n });\n\n this.paymentElement = this.elements.create('payment', {\n terms: { card: 'never' }\n });\n this.paymentElement.mount(this.paymentElementTarget);\n }\n\n public async submit(event: Event): Promise {\n event.preventDefault();\n this._setFormEnabled(false);\n this._setError(null);\n\n try {\n const result = await this.stripe.confirmPayment({\n elements: this.elements,\n confirmParams: {\n return_url: window.location.origin + this.returnPathValue\n }\n });\n\n this._setError(\n // validation errors appear on the form by default\n // so we don't want to display the error twice\n result.error.type === 'validation_error' ? null : result.error.message\n );\n } finally {\n this._setFormEnabled(true);\n }\n }\n\n private _setError(error: string | null | undefined) {\n this.errorsTarget.innerText = error ?? '';\n }\n\n private _setFormEnabled(enabled: boolean): void {\n const elements = Array.from(this.element.elements) as [HTMLFormElement];\n\n elements.forEach(el => (el.disabled = !enabled));\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport interface TrixEditor {\n value: string;\n element: HTMLElement;\n insertString(str: string): void;\n recordUndoEntry(key: string): void;\n}\n\nexport interface TrixEditorElement extends HTMLTextAreaElement {\n toolbarElement: HTMLElement;\n editor: TrixEditor;\n}\n\nexport default class TrixEditorController extends Controller {\n private toolbar!: HTMLElement;\n private readonly observer: MutationObserver = new MutationObserver(\n mutationRecords => this._mutationObserverCallback(mutationRecords)\n );\n\n public connect(): void {\n this.toolbar = this.element.toolbarElement;\n this.element.addEventListener('trix-change', () => {\n this.element.dispatchEvent(new Event('change'));\n });\n\n this.element.checkValidity = () => this.checkValidity();\n this.observer.observe(this.element, {\n attributeFilter: ['disabled'],\n attributeOldValue: true\n });\n\n // Block drag-and-drop file uploads\n this.element.addEventListener('trix-file-accept', event =>\n event.preventDefault()\n );\n }\n\n public disconnect(): void {\n this.observer.disconnect();\n }\n\n public disable(): void {\n this.toolbar.setAttribute('disabled', 'disabled');\n this.toolbar\n .querySelectorAll('.trix-button')\n .forEach(btn => (btn.disabled = true));\n\n this.element.editor.element.contentEditable = 'false';\n }\n\n public enable(): void {\n this.toolbar.removeAttribute('disabled');\n this.toolbar\n .querySelectorAll('.trix-button')\n .forEach(btn => (btn.disabled = false));\n this.element.editor.element.contentEditable = 'true';\n }\n\n public checkValidity(): boolean {\n if (\n this.element.getAttribute('disabled') ??\n !this.element.getAttribute('required')\n ) {\n return true;\n }\n\n return this.element.value.length > 0;\n }\n\n private _mutationObserverCallback(mutationList: MutationRecord[]) {\n mutationList.forEach(record => {\n if (record.type === 'attributes' && record.attributeName === 'disabled') {\n // Old value being null means the element was not there, but now is.\n // This matches the normal disabled attribute behaviour which doesn't care\n // what the attribute value actually is, just that it is there.\n if (!record.oldValue) {\n this.disable(); // Attribute has gone from no value to value -> attribute was added\n } else {\n this.enable(); // Attribute has gone from value to no value -> attribute was removed\n }\n }\n });\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { TrixEditor, TrixEditorElement } from './trix_editor_controller';\n\nexport default class TrixEditorInterpolateController extends Controller {\n private toolbar!: HTMLElement;\n private interpolationControl!: HTMLSelectElement;\n private editor!: TrixEditor;\n private interpolations!: Record;\n\n public connect(): void {\n this.interpolations = JSON.parse(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.element.dataset.interpolations!\n ) as Record;\n\n this.element.addEventListener('trix-initialize', () => {\n this.toolbar = this.element.toolbarElement;\n this.editor = this.element.editor;\n this.interpolationControl = this._buildInterpolationControl();\n this._addInterpolationControl();\n this.interpolationControl.addEventListener('change', () =>\n this._interpolate()\n );\n });\n }\n\n public disconnect(): void {\n this.interpolationControl.removeEventListener('change', () =>\n this._interpolate()\n );\n }\n\n private _interpolate(): void {\n // Can't destructure an HTMLElementCollection\n // eslint-disable-next-line prefer-destructuring\n const selectedOption = this.interpolationControl.selectedOptions[0];\n\n this.element.editor.recordUndoEntry(`Insert ${selectedOption.innerText}`);\n this.editor.insertString(selectedOption.value);\n this.interpolationControl.value = '';\n }\n\n private _addInterpolationControl(): void {\n const toolsElement = this.toolbar.querySelector(\n '.trix-button-group--block-tools'\n );\n\n toolsElement?.insertBefore(\n this.interpolationControl,\n toolsElement.firstChild\n );\n }\n\n private _buildInterpolationControl(): HTMLSelectElement {\n const select = document.createElement('select');\n const insertOption = (label: string, value: string | null) => {\n const option = document.createElement('option');\n\n option.innerText = label;\n option.value = value ?? '';\n select.appendChild(option);\n\n return option;\n };\n\n select.dataset.testId = 'trix-editor-interpolate';\n select.className = 'form-select form-select-sm me-2';\n insertOption('Insert Reference', null).disabled = true;\n\n Object.keys(this.interpolations).forEach(interpolationLabel =>\n insertOption(interpolationLabel, this.interpolations[interpolationLabel])\n );\n\n return select;\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class VisibilityWhenChangedController extends Controller {\n public static targets = ['input', 'element'];\n\n private declare readonly inputTarget: HTMLInputElement;\n private declare readonly elementTargets: HTMLElement[];\n\n public connect(): void {\n this.inputTarget.addEventListener('input', this._checkVisibility);\n }\n\n public disconnect(): void {\n this.inputTarget.removeEventListener('input', this._checkVisibility);\n }\n\n private readonly _checkVisibility = (): void => {\n const newValue = this.inputTarget.value;\n const oldValue = this.inputTarget.defaultValue;\n const isVisible = newValue !== oldValue;\n\n this.elementTargets.forEach(el => (el.hidden = !isVisible));\n };\n}\n","import { Controller } from '@hotwired/stimulus';\n\n// https://mentalized.net/journal/2019/04/26/zendesk-web-widget-turbolinks/\n\n// zendesk won't reinitialize if it thinks it already has\n// that includes not reinitializing even across turbo page loads\n// but it only knows if it's initialized by the presence of window.zEACLoaded\n// so let's mislead it\n\nexport default class ZendeskChatWidgetController extends Controller {\n public disconnect(): void {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n (window as any).zEACLoaded = undefined;\n }\n}\n","import { useEffect, useState } from 'react';\n\ninterface Size {\n width: number | undefined;\n height: number | undefined;\n}\n\nconst useWindowSize = (): Size => {\n // Initialize state with undefined width/height so server and client renders match\n // Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/\n const [size, setSize] = useState({\n width: undefined,\n height: undefined\n });\n\n useEffect(() => {\n // Handler to call on window resize\n function handleResize() {\n // Set window width/height to state\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n\n // Add event listener\n window.addEventListener('resize', handleResize);\n\n // Call handler right away so state gets updated with initial window size\n handleResize();\n\n // Remove event listener on cleanup\n return () => window.removeEventListener('resize', handleResize);\n }, []); // Empty array ensures that effect is only run on mount\n\n return size;\n};\n\nexport default useWindowSize;\n","import { ContentfulClientApi, createClient } from 'contentful';\n\ndeclare const process: {\n env: {\n CONTENTFUL_SPACE_ID: string;\n CONTENTFUL_DELIVERY_ACCESS_TOKEN: string;\n };\n};\n\nconst buildClient = (): ContentfulClientApi =>\n createClient({\n space: process.env.CONTENTFUL_SPACE_ID,\n accessToken: process.env.CONTENTFUL_DELIVERY_ACCESS_TOKEN,\n removeUnresolved: true\n });\n\nexport default buildClient;\n","import { ContentfulClientApi, EntryCollection } from 'contentful';\nimport { useEffect, useState } from 'preact/compat';\nimport contentfulClient from './client';\n\ninterface UseContentfulProps {\n contentType: string | null;\n include?: number | null;\n locale?: string | null;\n query?: Record;\n}\n\ninterface FetchDataProps extends UseContentfulProps {\n client: ContentfulClientApi;\n}\n\nexport const fetchData = async (\n props: FetchDataProps\n): Promise> => {\n const { client, contentType, include, locale, query } = props;\n\n return client.getEntries({\n content_type: contentType,\n locale,\n include,\n ...query\n });\n};\n\nconst useContentful = (\n props: UseContentfulProps\n): {\n data: EntryCollection | null;\n loading: boolean;\n error: string | null;\n fetched: boolean;\n} => {\n const [error, setError] = useState(null);\n const [loading, setLoading] = useState(false);\n const [data, setData] = useState | null>(null);\n const [fetched, setFetched] = useState(!!data);\n\n // Props are stringified so we have a stable value to compare\n // against in the useEffect hook\n const stringifiedProps = JSON.stringify(props);\n\n useEffect(() => {\n if (fetched) {\n setFetched(false);\n }\n\n const requestContentfulData = () => {\n setLoading(true);\n\n fetchData({ ...props, client: contentfulClient() })\n .then(response => {\n setData(response);\n setLoading(false);\n setFetched(true);\n })\n .catch((err: string) => {\n setError(err);\n });\n };\n\n requestContentfulData();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [stringifiedProps]);\n\n const finish = () => ({ data, error, fetched, loading });\n\n return finish();\n};\n\nexport default useContentful;\n","/* eslint-disable no-new */\nimport Carousel from 'bootstrap/js/dist/carousel';\nimport Collapse from 'bootstrap/js/dist/collapse';\nimport Dropdown from 'bootstrap/js/dist/dropdown';\nimport Tab from 'bootstrap/js/dist/tab';\nimport Tooltip from 'bootstrap/js/dist/tooltip';\n\nfunction initializeTooltips() {\n const tooltipTriggerList = Array.from(\n document.querySelectorAll('[data-bs-toggle=\"tooltip\"]')\n );\n\n tooltipTriggerList.forEach(tooltipTriggerEl => {\n new Tooltip(tooltipTriggerEl);\n });\n}\n\nfunction initializeDropdowns() {\n const dropdownList = Array.from(document.querySelectorAll('.dropdown'));\n\n dropdownList.forEach(dropdownEl => {\n new Dropdown(dropdownEl);\n });\n}\n\nfunction initializeCarousels() {\n const carouselList = Array.from(document.querySelectorAll('.carousel'));\n\n carouselList.forEach(carouselEl => {\n new Carousel(carouselEl);\n });\n}\n\nfunction initializeTabs() {\n const tabList = Array.from(\n document.querySelectorAll('[data-bs-toggle=\"tab\"]')\n );\n\n tabList.forEach(tabEl => {\n new Tab(tabEl);\n });\n}\n\nfunction initializeCollapse() {\n const collapseElementList = Array.from(\n document.querySelectorAll('.collapse')\n );\n\n collapseElementList.map(\n collapseEl => new Collapse(collapseEl, { toggle: false })\n );\n}\n\n['DOMContentLoaded', 'turbo:render', 'turbo:frame-render'].forEach(evt =>\n document.addEventListener(evt, () => {\n initializeCarousels();\n initializeCollapse();\n initializeTooltips();\n initializeDropdowns();\n initializeTabs();\n })\n);\n","declare global {\n interface Window {\n dataLayer?: [];\n }\n}\n\ndeclare global {\n interface DocumentEventMap {\n 'turbo:load': TurboEvent;\n }\n}\n\nconst sendGtagEvent = (e: TurboEvent) => {\n const GA_ID = process.env.GOOGLE_ANALYTICS_ID;\n\n window.dataLayer = window.dataLayer ?? [];\n\n function gtag(...args: unknown[]) {\n window.dataLayer?.push(args as never);\n }\n\n gtag('js', new Date());\n gtag('config', GA_ID, { page_location: e.detail.url });\n};\n\nconst pageLoadAnalyticsListner = (): void => {\n document.addEventListener('turbo:load', sendGtagEvent);\n};\n\nexport default pageLoadAnalyticsListner;\n","// The application.js pack is defered by default which means that nothing imported\n// in this file will begin executing until after the page has loaded. This helps to\n// speed up page loading times, especially in apps that have large amounts of js.\n//\n// If you have javascript that *must* execute before the page has finished loading,\n// create a separate 'boot.js' pack in the frontend/packs directory and import any\n// required files in that. Also remember to add a separate pack_tag entry with:\n// <%= javascript_pack_tag \"boot\", \"data-turbolinks-track\": \"reload\" %>\n// to the views/layouts/application.html.erb file above the existing application pack tag.\n//\n// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\nimport { Application } from '@hotwired/stimulus';\nimport * as ActiveStorage from '@rails/activestorage';\nimport * as Sentry from '@sentry/browser';\nimport ReactRailsUJS from 'react_ujs';\nimport '../js/bootstrap.ts';\n// eslint-disable-next-line import/order\nimport { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';\n\nconst application = Application.start();\n\nimport '../stylesheets/application.scss';\nimport 'channels';\nimport '@hotwired/turbo-rails';\nimport 'trix';\nimport '@rails/actiontext';\n\nActiveStorage.start();\n\nrequire.context('../images', true);\n\n// A note about standalone images\n// If you need them to be compiled, you MUST require them here.\n// image_pack_tag, etc does this for you, but NOT if you are wanting to use\n// something standalone (like asset_url)\nimport '../images/opengraph_metadata_image.png';\nimport '../images/twitter_metadata_image.png';\n\n// Initialize Sentry Error Reporting\n//\n// Import all your application's JS after this section because we need Sentry\n// to be initialized **before** we import any of our actual JS so that Sentry\n// can report errors from it.\n//\nSentry.init({\n dsn: process.env.SENTRY_DSN,\n environment: process.env.SENTRY_ENV ?? process.env.RAILS_ENV\n});\n\n// Uncomment this Sentry by sending an exception every time the page loads.\n// Obviously this is a very noisy activity and we do have limits on Sentry so\n// you should never do this on a deployed environment.\n//\n// Sentry.captureException(new Error('Away-team to Enterprise, two to beam directly to sick bay...'));\n\n// Import all your application's JS here\nconst context = require.context('controllers', true, /.[js|ts]$/u);\n\napplication.load(definitionsFromContext(context));\n\n// Support component names relative to this directory:\nconst componentRequireContext = require.context('components', true);\n\n// eslint-disable-next-line react-hooks/rules-of-hooks\nReactRailsUJS.useContext(componentRequireContext);\n\n// Automatically mount React components when Turbo renders.\n// This can be from two different events:\n//\n// turbo:render: fires after Turbo renders the page. This event fires twice\n// during an application visit to a cached location: once after\n// rendering the cached version, and again after rendering the fresh version.\n//\n// turbo:frame-render: fires right after element renders its view.\n// The specific element is the event target.\n// Access the FetchResponse object with event.detail.fetchResponse property.\n//\n// We need to listen for both events since :render is primarily triggered by page navigations,\n// and :render-frame is triggered by turbo-frame events, often form submissions.\n//\n// CAUTION: Listening to these events doesn't handle all the cases. In particular,\n// adding DOM nodes still requires a component mount.\n['turbo:render', 'turbo:frame-render'].forEach(eventName =>\n document.addEventListener(eventName, ({ target }) =>\n ReactRailsUJS.mountComponents((target ?? document.body) as HTMLElement)\n )\n);\n\nimport pageLoadAnalyticsListner from '../js/analytics';\npageLoadAnalyticsListner();\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","channels","require","forEach","Carousel","carouselItems","carouselId","theme","children","useEffect","carouselNode","document","getElementById","BootstrapCarousel","dispose","_jsxs","className","length","filter","c","join","_jsx","type","_carouselSlideItems","idx","CarouselImage","items","imageOnlyCarouselId","isPartner","locations","heading","windowSize","useWindowSize","imageWidth","itemCount","determineCarouselLayoutDimensions","partner","width","selectedLocation","setSelectedLocation","useState","numTimesSelectedLocationChanged","setNumTimesSelectedLocationChanged","carouselSlideItems","chunk","carouselItem","locationId","Number","sort","a","b","regionOrder","CustomSelect","name","options","placeholder","includePlaceholderOption","onChange","selected","onLocationChange","selectedValue","value","description","clickUrl","image","href","src","alt","defaultStyles","container","base","padding","control","state","backgroundColor","isDisabled","transition","border","boxShadow","dropdownIndicator","display","indicatorSeparator","fontStyle","color","valueContainer","menu","zIndex","creatable","components","controlledValue","customRef","hasError","initialValue","label","fieldLabel","labelClassName","fieldLabelClassName","required","styles","rest","normalizedOptions","buildNormalizedOptions","defaultOptions","findDefaultOptions","selectOptions","requiredInputValue","setRequiredInputValue","requiredInput","querySelector","setAttribute","dispatchEvent","Event","selectProps","defaultValue","inputId","wrappedOnChange","newValue","meta","action","input","event","bubbles","cancelable","valueRemoved","Array","isArray","ref","htmlFor","props","CreatableSelect","ReactSelect","val","find","opt","toString","option","unshift","EndDate","monthOptions","yearOptions","hasMonthError","hasYearError","monthDefaultValue","yearDefaultValue","formName","formId","currentCheckboxValue","endedError","current","setCurrent","_Fragment","checked","onCurrentChange","FeaturedListings","showRegionsDropdown","slice","item","title","location","summary","logo","expires","saveButtonHtml","height","dangerouslySetInnerHTML","__html","MobileLinkList","navItemsNode","links","defaultLink","currentIndex","setCurrentIndex","findIndex","link","scrollableValue","setScrollableValue","checkScrollable","scrollWidth","clientWidth","undefined","querySelectorAll","scrollIntoView","block","inline","canPrevious","canNext","onClick","decrementCurrentIndex","previous","node","text","incrementCurrentIndex","next","DesktopLinkList","iconUrl","ParentAndChildrenSelect","parentFieldName","childrenFieldName","currentParentValue","currentChildrenValue","parentOptions","childrenOptions","parentPlaceholder","childrenPlaceholder","parentLabel","childrenLabel","parentHasError","parentError","childrenHasError","childrenError","parentRequired","includeParentPlaceholderOption","currentParent","setCurrentParent","currentChildrenOptions","setChildrenOptions","childrenInputRef","useRef","filteredChildren","parent_id","clearValue","CheckboxMultiSelect","closeMenuOnSelect","showSearchComponent","data","isFocused","RadioSelect","Option","isSelected","SingleValue","labelToBeDisplayed","hideSelectedOptions","isClearable","isSearchable","fontWeight","SalaryRange","menuIsOpen","salaryRangeType","salaryBandFromId","salaryBandToId","annualOptions","useMemo","remuneration_period","hourlyOptions","currentSalaryRangeType","setCurrentSalaryRangeType","currentOptions","fromOptions","display_value","toOptions","fromInitialOption","toInitialOption","salaryFrom","setSalaryFrom","salaryTo","setSalaryTo","onSalaryRangeTypeChange","style","minWidth","target","isOptionDisabled","salaryBandFrom","salaryBandTo","minimum_salary","ShareLinks","url","encodeURIComponent","rel","FacebookShareIcon","TwitterShareIcon","LinkedinShareIcon","SupportingCallToActionCard","accentColour","fields","file","SupportingCallsToAction","page","audience","fetched","useContentful","contentType","query","role","callsToAction","callToAction","WelcomeCallToActionCard","callToActionText","callToActionUrl","imageSrc","WelcomeCallsToAction","ServerRenderedSEO","entryCollection","category","resolveResponse","removeUnresolved","at","categoryName","heroImage","keywords","excerpt","createdAt","Date","sys","updatedAt","heroImageUrl","replace","metas","toISOString","metaKey","content","ShowCategory","categoryJobsCount","categorySearchPath","introduction","relatedResources","heroImageTitle","metaTag","head","metaValue","RichTextContent","ResourceList","resources","Show","window","pathname","AssetLink","innerText","asset","setAsset","contentfulClient","getAssets","limit","order","then","collection","catch","console","error","MarkdownContent","Markdown","remarkPlugins","RemarkBreaks","GfmMarkdown","linkTarget","renderNode","BLOCKS","HEADING_1","_node","HEADING_2","HEADING_3","HEADING_4","HEADING_5","HEADING_6","INLINES","HYPERLINK","embed","isEmbeddableUrl","uri","html","PARAGRAPH","EMBEDDED_ASSET","_children","details","renderOptions","documentToReactComponents","RichTextEntry","entry","FeatureCard","ListingFeatures","SampleJobLink","SampleIcon","Introduction","DefaultRenderOptions","JobCategories","currentCategoryValue","currentSubCategoryValue","categoryOptions","subCategoryOptions","categoryFieldHasError","categoryFieldError","subCategoryFieldHasError","subCategoryFieldError","categoryFieldPlaceholder","subCategoryFieldPlaceholder","currentCategory","setCurrentCategory","currentSubCategoryOptions","setSubCategoryOptions","subCategoryInputRef","filteredSubCategories","JobType","jobTypeValue","showHoursField","jobTypeOptions","jobTypeFieldHasError","hoursPerWeekFixed","hoursPerWeek","hoursPerWeekMin","hoursPerWeekMax","jobTypeError","hoursPerWeekMaxFieldHasError","hoursPerWeekMaxError","jobTypeFieldPlaceholder","hoursFieldVisible","setHoursFieldVisible","currentHoursPerWeekFixed","setCurrentHoursPerWeekFixed","onHoursFixedChange","jobType","jt","full_time_equivalent","onJobTypeChange","disabled","min","max","Locations","currentLocationValue","currentSubLocationValue","locationOptions","subLocationOptions","locationFieldHasError","locationFieldError","subLocationFieldHasError","subLocationFieldError","locationFieldPlaceholder","subLocationFieldPlaceholder","currentLocation","setCurrentLocation","currentSubLocationOptions","setSubLocationOptions","subLocationInputRef","filterSubLocations","useCallback","parentId","filteredSubLocations","Remuneration","remunerationType","salaryFixed","salary","originalSalary","salaryMin","salaryMax","hourlyRateFixed","hourlyRate","hourlyRateMin","hourlyRateMax","salaryMaxFieldHasError","salaryMaxFieldError","salaryMinFieldHasError","salaryMinFieldError","salaryFieldHasError","salaryFieldError","hourlyRateMaxFieldHasError","hourlyRateMaxFieldError","currentSalaryFixed","setCurrentSalaryFixed","currentHourlyRateFixed","setCurrentHourlyRateFixed","currentRemunerationType","setCurrentRemunerationType","setSalary","minimumSalary","setMinimumSalary","maximumSalary","setMaximumSalary","onSalaryFixedChange","onHourlyRateFixedChange","onRemunerationTypeChange","step","parseInt","selectOption","onClickMultiOption","stopPropagation","preventDefault","onKeyUp","ValueContainer","getValue","currentValues","prefix","isMulti","NestedMultiSelect","optionGroups","fieldName","normalizeOptions","groupedOptions","groupOptions","sel","selectedValues","setSelectedValues","_newValue","parentChange","MultiValue","MultiValueComponent","OptionComponent","index","multipleParents","uniqBy","childrenToRender","pluralizedLabel","toUpperCase","substring","push","labelForSingleParentCategory","firstCategoryParent","labelFromChild","childOptionStyle","marginLeft","selectAllStyle","margin","ChildOption","ParentOption","isParent","parent","parentSelected","childSelected","onSelectAllClick","ChildComponent","nestOptions","sortBy","parentOpt","group","flat","principality","grouped","reduce","groups","paddingTop","groupHeading","fontSize","menuList","JSON","stringify","marginBottom","top","position","paddingBottom","ResourcesBanner","CallToActionCard","secondaryCallToActionText","secondaryCallToActionUrl","ResourcesCallToAction","FeaturedCard","cardImage","publishedAt","slug","warn","datePublished","toLocaleDateString","year","day","month","badgeColorMap","FeaturedResources","ImagePlaceholder","VideoPlaceholder","PlayIcon","resource","toLowerCase","PaginatedResourceList","itemsPerPage","setResources","pageCount","setPageCount","itemOffset","setItemOffset","endOffset","Math","ceil","handlePageClick","newOffset","ReactPaginate","onPageChange","pageRangeDisplayed","breakLabel","breakClassName","pageClassName","pageLinkClassName","previousLabel","previousClassName","previousLinkClassName","nextLabel","nextClassName","nextLinkClassName","activeClassName","activeLinkClassName","disabledClassName","disabledLinkClassName","ResourceListWrapper","capitalize","orderedItems","resource1","resource2","parse","reverse","pageTitle","VideoResource","videoEmbedUrl","videoEmbedHtml","WrittenResourceHeader","ShowResource","AddClassController","Controller","String","add","this","classRecipientTargets","classList","classNameValue","Autosave","delay","performInitialSave","Boolean","bindFormEvents","initialize","save","bind","connect","delayValue","debounce","bindFormEventsValue","form","addEventListener","performInitialSaveValue","disconnect","removeEventListener","element","super","requestSubmit","CharacterCounter","_update","inputTarget","maxLength","getAttribute","counterTarget","innerHTML","_count","remainingTarget","ConditionalFieldsController","maxlength","default","triggerGroup","Set","triggerTargets","from","getElementsByName","trigger","_onChange","checkedTargets","maxlengthValue","disableFieldTargets","field","includes","enableFieldTargets","removeAttribute","FieldMatchController","passwordConfirmationTarget","setCustomValidity","newPasswordTarget","_validatePassword","passwordsMatch","createElement","insertAdjacentElement","textContent","FilePickerController","existingFilename","filename","filenameTarget","reset","firstFile","files","hasValue","presenceBasedTargets","el","toggle","absenceBasedTargets","hasImagePreviewTarget","imagePreviewTarget","startsWith","reader","FileReader","readAsDataURL","onloadend","remove","result","ModalController","modal","Modal","contains","show","_handleSubmit","_navigateOnClose","_close","hide","once","detail","success","dataset","modalCloseUrl","closeUrl","URL","origin","search","hash","NestedFieldsController","wrapperSelector","templateTarget","getTime","targetTarget","insertAdjacentHTML","wrapper","closest","wrapperSelectorValue","ReactMounterController","ReactRailsUJS","submitDidEnd","fetchResponse","response","redirected","visit","RedirectTopController","RequiredFieldsController","requiredFields","_checkFormValidity","formIsValid","checkValidity","elementsAreValid","appearance","variables","fontSizeBase","fontFamily","rules","lineHeight","borderRadius","borderColor","fonts","cssSrc","StripePaymentIntentController","clientSecret","returnPath","stripe","loadStripe","process","elements","clientSecretValue","paymentElement","create","terms","card","mount","paymentElementTarget","submit","_setFormEnabled","_setError","confirmPayment","confirmParams","return_url","returnPathValue","message","errorsTarget","enabled","TrixEditorController","observer","MutationObserver","mutationRecords","_mutationObserverCallback","toolbar","toolbarElement","observe","attributeFilter","attributeOldValue","disable","btn","editor","contentEditable","enable","mutationList","record","attributeName","oldValue","TrixEditorInterpolateController","interpolations","interpolationControl","_buildInterpolationControl","_addInterpolationControl","_interpolate","selectedOption","selectedOptions","recordUndoEntry","insertString","toolsElement","insertBefore","firstChild","select","insertOption","appendChild","testId","interpolationLabel","VisibilityWhenChangedController","_checkVisibility","isVisible","elementTargets","hidden","ZendeskChatWidgetController","zEACLoaded","size","setSize","handleResize","innerWidth","innerHeight","buildClient","createClient","space","accessToken","setError","loading","setLoading","setData","setFetched","stringifiedProps","async","client","include","locale","getEntries","content_type","fetchData","err","evt","carouselEl","collapseEl","Collapse","tooltipTriggerEl","Tooltip","dropdownEl","Dropdown","tabEl","Tab","sendGtagEvent","gtag","args","dataLayer","page_location","pageLoadAnalyticsListner","application","Application","start","ActiveStorage","Sentry","dsn","environment","SENTRY_ENV","context","load","definitionsFromContext","componentRequireContext","eventName","body"],"sourceRoot":""}