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AAcC,EAAAA,EAAAA,IAAQ,+BACvByC,EAAgBC,IAAqBC,EAAAA,EAAAA,WAAS,KAC5C,CAAEC,MAAOL,EAAgBM,KAAMC,MAAOP,EAAgB9D,OAEzDsE,GAAiBC,EAAAA,EAAAA,SAAO,GAuB9B,OAfAzC,EAAAA,EAAAA,YAAU,KACJwC,EAAeE,QACjBF,EAAeE,SAAU,EAEzB,WACE,IACE,MAAMC,QAAaC,EAAAA,EAAAA,IAAiBV,EAAeK,OACnDxC,OAAO8C,SAASC,QAAQH,EAAKI,SAASF,SACxC,CAAE,MAAOvE,GACP0E,MAAMC,MAAM3E,EAAE4E,SAASC,MAAMC,MAC/B,CACD,EAPD,EAQF,GACC,CAAClB,KAGF,SAAC,KAAM,CACLhE,GAAG,4BACH0C,OAAQA,EACRyC,iBAAkB,IAAM7D,EAAU,eAClC8D,WAAY,CAAEzB,oBAAmB0B,OAAO,MACxCC,QA1BKvB,EACJlE,KAAK0F,IAAO,CAAQpB,MAAOoB,EAAQnB,KAAMC,MAAOkB,EAAQvF,OACxDwF,MAAK,CAACC,EAAGC,IAAOD,EAAEtB,MAAQuB,EAAEvB,MAAQ,GAAK,IAyB1CwB,aAAc3B,EACd4B,QAAQ,kCACRC,SAAU5B,GACV,ECzFN6B,EAAAA,OAIAjE,OAAOD,cAAgBA,EAAAA,EAEvBC,OAAOkE,aAAaC,SAAS,CAC3BC,cAAcC,EAAAA,EAAAA,IAASD,EAAAA,GACvBE,cAAcD,EAAAA,EAAAA,IAASC,GACvBC,mBAAmBF,EAAAA,EAAAA,IAASE,I","sources":["webpack://gohiring-mpt/./frontend/images/ sync ^\\.\\/.*$","webpack://gohiring-mpt/./frontend/bundles/components/cookie_banner.js","webpack://gohiring-mpt/./frontend/bundles/components/top_bar/companies_selector.js","webpack://gohiring-mpt/./frontend/packs/application.js"],"sourcesContent":["var map = {\n\t\"./chosen-sprite.png\": 6044,\n\t\"./chosen-sprite@2x.png\": 21196,\n\t\"./exclamation-mark.png\": 20905,\n\t\"./icons/linkedin.svg\": 76038,\n\t\"./icons/xing.svg\": 97384,\n\t\"./logo_monochrome.svg\": 24648,\n\t\"./partner_logos/concludis.svg\": 6679,\n\t\"./partner_logos/dvinci.svg\": 11140,\n\t\"./partner_logos/freie-universitat-berlin.svg\": 83454,\n\t\"./partner_logos/hr-works.svg\": 1304,\n\t\"./partner_logos/indeed.svg\": 7240,\n\t\"./partner_logos/jobsora.svg\": 64005,\n\t\"./partner_logos/jobtome.svg\": 45733,\n\t\"./partner_logos/jobvector.svg\": 29225,\n\t\"./partner_logos/just-remote.svg\": 50180,\n\t\"./partner_logos/kleinanzeigen.svg\": 33809,\n\t\"./partner_logos/linked-in.svg\": 42364,\n\t\"./partner_logos/mhm-hr.svg\": 23856,\n\t\"./partner_logos/monster.svg\": 71499,\n\t\"./partner_logos/perbit.svg\": 19965,\n\t\"./partner_logos/personio.svg\": 10348,\n\t\"./partner_logos/rexx.svg\": 21440,\n\t\"./partner_logos/step-stone.svg\": 98665,\n\t\"./partner_logos/talents-connect.svg\": 33921,\n\t\"./partner_logos/tik-tok.svg\": 12496,\n\t\"./power_bi/ad_monitor.png\": 3904,\n\t\"./power_bi/ad_tester.png\": 601,\n\t\"./power_bi/repostings.png\": 2158,\n\t\"./status/logo_status.png\": 69295,\n\t\"./status/plug_status.svg\": 68043,\n\t\"./templates/template_a.png\": 15504\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 = 32281;","/* eslint-disable jsx-a11y/anchor-is-valid */\n\nimport React, { useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { useModal } from './common/modal';\nimport { Flex } from './common/styles/flex';\n\nimport useI18n from '../lib/use_i18n';\n\nimport styled from 'styled-components';\nimport { fontSizeL } from './common/styles/variables';\nimport LocaleSelector from './common/locale_selector';\n\nconst AcceptBtn = styled.button`\n width: 100%;\n`;\n\nconst Row = styled.div`\n width: 100%;\n text-align: center;\n padding-top: 13px;\n`;\n\nconst Msg = styled.div`\n font-size: ${fontSizeL};\n color: #444;\n\n p {\n margin-bottom: 13px;\n }\n`;\n\n/**\n * Displays a popup allowing users to give informed consent for the\n * use of tracking cookies by the website.\n */\nconst CookieBanner = ({\n furtherInformationUrl,\n availableLocales,\n currentLocale,\n}) => {\n const { translate } = useI18n('cookies');\n\n const { Modal, close, open } = useModal();\n\n // Access the CookieConsent lib via the window object.\n // This gives us access to the instance where tracking code is registered,\n // and avoids importing the lib into this javascript pack.\n const CookieConsent = window.CookieConsent;\n\n const acceptCookies = () => {\n CookieConsent.acceptCookies();\n close();\n };\n\n const rejectCookies = () => {\n CookieConsent.rejectCookies();\n close();\n };\n\n useEffect(() => {\n if (CookieConsent && CookieConsent.showBanner()) {\n open();\n }\n }, []);\n\n return (\n \n \n {translate('.warning')}\n \n \n \n {translate('.further_information')}\n \n \n \n \n \n \n \n \n \n {translate('.accept')}\n \n \n \n \n {translate('.reject')}\n \n \n \n );\n};\n\nCookieBanner.propTypes = {\n furtherInformationUrl: PropTypes.string.isRequired,\n currentLocale: PropTypes.string.isRequired,\n availableLocales: PropTypes.array.isRequired,\n};\n\nexport default CookieBanner;\n","import React, { useEffect, useState, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport Select, { components } from 'react-select';\nimport { Option } from '../common/form';\nimport styled from 'styled-components';\nimport { setActiveCompany } from '../../store';\nimport useI18n from '../../lib/use_i18n';\n\nconst StyledIcon = styled.span`\n padding: 0px;\n`;\n\nconst styles = {\n control: (styles) => ({\n ...styles,\n borderStyle: 'none',\n backgroundColor: 'none',\n }),\n indicatorSeparator: () => ({}),\n singleValue: (styles) => ({\n ...styles,\n color: 'white',\n fontSize: '16px',\n }),\n valueContainer: (styles) => ({\n ...styles,\n padding: '2px 4px',\n minWidth: '150px',\n maxWidth: '380px',\n }),\n input: (styles) => ({\n ...styles,\n color: 'white',\n 'input[type=text]': {\n boxShadow: 'none',\n },\n }),\n indicatorsContainer: (styles) => ({\n ...styles,\n padding: '0px',\n }),\n menuList: (styles) => ({\n ...styles,\n color: 'black',\n }),\n};\n\nconst CaretDownIcon = () => {\n return (\n \n arrow_drop_down\n \n );\n};\n\nconst DropdownIndicator = (props) => (\n \n \n \n);\n\nconst CompaniesSelector = ({ selectedCompany, companies }) => {\n const { translate } = useI18n('top_bar.companies_selector');\n const [selectedOption, setSelectedOption] = useState(() => {\n return { label: selectedCompany.name, value: selectedCompany.id };\n });\n const isInitialMount = useRef(true);\n\n const options = () => {\n return companies\n .map((company) => ({ label: company.name, value: company.id }))\n .sort((a, b) => (a.label > b.label ? 1 : -1));\n };\n\n useEffect(() => {\n if (isInitialMount.current) {\n isInitialMount.current = false;\n } else {\n (async () => {\n try {\n const resp = await setActiveCompany(selectedOption.value);\n window.location.replace(resp.headers?.location);\n } catch (e) {\n Flash.alert(e.response.data?.error);\n }\n })();\n }\n }, [selectedOption]);\n\n return (\n translate('.no_options')}\n components={{ DropdownIndicator, Option }}\n options={options()}\n defaultValue={selectedOption}\n inputId=\"topBar-dropdown-companies-input\"\n onChange={setSelectedOption}\n />\n );\n};\n\nCompaniesSelector.propTypes = {\n selectedCompany: PropTypes.object.isRequired,\n companies: PropTypes.arrayOf(PropTypes.object).isRequired,\n};\n\nexport default CompaniesSelector;\n","import 'styles/application';\nimport '../bundles/react_on_rails';\nimport { topLevel } from '../bundles/hoc';\nimport { Notification } from '../bundles/components/common/notification';\nimport CookieBanner from '../bundles/components/cookie_banner';\nimport CookieConsent from '../bundles/lib/cookie-consent';\nimport CompaniesSelector from '../bundles/components/top_bar/companies_selector';\n\n// makes sure Webpack knows images\n//eslint-disable-next-line\nrequire.context('../images', true);\n\n// We add the lib to the window object so that it is available to non-webpack\n// tracking code.\nwindow.CookieConsent = CookieConsent;\n\nwindow.ReactOnRails.register({\n Notification: topLevel(Notification),\n CookieBanner: topLevel(CookieBanner),\n CompaniesSelector: topLevel(CompaniesSelector),\n});\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","AcceptBtn","styled","button","Row","div","Msg","fontSizeL","furtherInformationUrl","availableLocales","currentLocale","translate","useI18n","Modal","close","open","useModal","CookieConsent","window","useEffect","showBanner","hideX","hideHeader","justifyContent","href","onClick","acceptCookies","className","rejectCookies","StyledIcon","span","styles","control","borderStyle","backgroundColor","indicatorSeparator","singleValue","color","fontSize","valueContainer","padding","minWidth","maxWidth","input","boxShadow","indicatorsContainer","menuList","CaretDownIcon","DropdownIndicator","props","c","selectedCompany","companies","selectedOption","setSelectedOption","useState","label","name","value","isInitialMount","useRef","current","resp","setActiveCompany","location","replace","headers","Flash","alert","response","data","error","noOptionsMessage","components","Option","options","company","sort","a","b","defaultValue","inputId","onChange","require","ReactOnRails","register","Notification","topLevel","CookieBanner","CompaniesSelector"],"sourceRoot":""}
{translate('.warning')}