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AAGA,IAAc,KAC7BtB,OAAO3H,SAASoJ,OAGnBzB,OAAO0B,QAAQC,aAAa,CAAC,EAAGjV,SAASa,MAAOgU,EAAO,EAG5CK,EAAYjC,GAA2B,kBAAVA,EAE7B3B,EAAkBpD,UAC7B,IAAIiH,EACJ,IACEA,QAAiBC,EACjBD,EAAS1M,KAAOwL,EAASkB,GAAU1M,KACrC,CAAE,MAAOqG,GACHA,GAAOqG,UAAU1M,OACnB0M,EAAWrG,EACXqG,EAASA,SAAS1M,KAAOwL,EAASkB,GAAUA,UAAU1M,MAE1D,CACA,OAAO0M,CAAQ,C","sources":["webpack://gohiring-mpt/./frontend/bundles/components/common/icon.js","webpack://gohiring-mpt/./frontend/bundles/components/common/modal/use_modal.js","webpack://gohiring-mpt/./frontend/bundles/components/common/modal/modal.js","webpack://gohiring-mpt/./frontend/bundles/components/common/lib/utils.js","webpack://gohiring-mpt/./frontend/bundles/components/common/styles/flex.js","webpack://gohiring-mpt/./frontend/bundles/components/common/styles/modal.js","webpack://gohiring-mpt/./frontend/bundles/components/common/styles/utils.js","webpack://gohiring-mpt/./frontend/bundles/components/common/styles/variables.js","webpack://gohiring-mpt/./frontend/bundles/lib/use_visibility.js","webpack://gohiring-mpt/./frontend/bundles/store.js","webpack://gohiring-mpt/./frontend/bundles/utils.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nconst StyledIcon = styled.span`\n // we need to override the 3rd party css with this one\n // this helps us avoid the use of !important\n &.material-symbols-outlined[role='presentation'] {\n font-size: ${(props) => props.size}px;\n ${({ color }) => (color ? `color: ${color};` : '')}\n }\n`;\n\n/**\n * A wrapper for materialized icons (https://bit.ly/3CbVHvl).\n * we use data-icon for tracking\n */\nconst Icon = ({ name, size, color }) => (\n \n {name}\n \n);\n\nIcon.defaultProps = {\n size: 13,\n};\n\nIcon.propTypes = {\n name: PropTypes.string.isRequired,\n size: PropTypes.number,\n color: PropTypes.string,\n};\n\nexport default Icon;\n","import React, { useCallback, useEffect, useState } from 'react';\nimport useVisibility from '../../../lib/use_visibility';\nimport { Modal as ModalComponent, ModalPropTypes } from './modal';\n\nexport const useModal = (initialVisibilityState = false) => {\n const {\n shown,\n show: open,\n hide,\n toggleVisibility: toggle,\n } = useVisibility(null, initialVisibilityState);\n const [overflow, setOverflow] = useState();\n const close = useCallback(hide, []);\n useEffect(() => {\n if (shown) {\n setOverflow(document.documentElement.style.overflow);\n document.documentElement.style.overflow = 'hidden';\n } else {\n // in case initial overflow is `undefined`, it would not override the\n // 'hidden' (or any other) overflow value so we explicitly set it to\n // an empty string if the initial overflow is falsy\n document.documentElement.style.overflow = overflow || '';\n }\n return () => {\n if (shown) {\n document.documentElement.style.overflow = overflow || '';\n }\n };\n }, [shown]); //eslint-disable-line react-hooks/exhaustive-deps\n\n const Modal = useCallback(\n (modalProps) => {\n return ;\n },\n [shown]\n );\n\n Modal.propTypes = ModalPropTypes;\n return {\n shown,\n toggle,\n open,\n close,\n Modal,\n };\n};\n","import PropTypes from 'prop-types';\nimport React, { useRef } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport useI18n from '../../../lib/use_i18n';\nimport Icon from '../icon';\nimport { getPortalContainer } from '../lib/utils';\nimport {\n ModalBody,\n ModalHeadWrapper,\n ModalWrapper,\n Overlay,\n XButton,\n} from '../styles/modal';\n\nexport const MODAL_WRAPPER_ID = 'modal-wrapper';\nexport const Modal = ({\n children,\n close,\n closeOnBlur,\n height,\n hideHeader,\n hideX,\n id,\n overlayStyle,\n shown,\n style,\n title,\n trackingIdPrefix,\n width,\n}) => {\n const { translate } = useI18n('app.modal');\n const portalContainerRef = useRef(getPortalContainer(MODAL_WRAPPER_ID));\n return shown\n ? createPortal(\n {\n e.stopPropagation();\n e.nativeEvent.stopPropagation();\n e.nativeEvent.preventDefault();\n closeOnBlur && close();\n }}\n style={overlayStyle}\n >\n {\n e.stopPropagation();\n e.nativeEvent.stopPropagation();\n }}\n role=\"dialog\"\n style={style}\n width={width}\n >\n {hideHeader ? null : (\n \n

{title}

\n {hideX ? null : (\n \n \n \n )}\n
\n )}\n {children} \n \n ,\n // without the container element, the native events would always bubble up to the document.body\n // Leaking unwanted events to the body element was problematic because useVisibility is handling\n // outside clicks utilizing body's click handler. Without the container element we would\n // face unwaranted hide actions from useVisibility hook.\n portalContainerRef.current\n )\n : null;\n};\n\nexport const ModalPropTypes = {\n children: PropTypes.node.isRequired,\n close: PropTypes.func,\n closeOnBlur: PropTypes.bool,\n height: PropTypes.string,\n hideHeader: PropTypes.bool,\n hideX: PropTypes.bool,\n id: PropTypes.string,\n overlayStyle: PropTypes.object,\n style: PropTypes.object,\n title: PropTypes.string,\n trackingIdPrefix: PropTypes.string,\n width: PropTypes.string,\n};\n\nModal.propTypes = {\n ...ModalPropTypes,\n close: PropTypes.func.isRequired,\n shown: PropTypes.bool.isRequired,\n};\n\nModal.defaultProps = {\n closeOnBlur: false,\n title: '',\n trackingIdPrefix: '',\n};\n","// returns the portal container element based on the id,\n// creating it along the way if it does not exist yet\nexport const getPortalContainer = (containerId) => {\n const existing = document.getElementById(containerId);\n if (existing) return existing;\n\n const container = document.createElement('div');\n container.id = containerId;\n document.body.appendChild(container);\n return container;\n};\n","import styled from 'styled-components';\nimport { propsToAttributes, withCustomProps } from './utils';\n\nexport const Flex = withCustomProps(styled.div`\n display: flex;\n ${propsToAttributes}\n`);\n\nexport const ButtonsWrapper = styled(Flex)`\n display: flex;\n justify-content: end;\n gap: 8px;\n`;\n","import styled from 'styled-components';\nimport { ButtonsWrapper } from './flex';\nimport { modalZIndex } from './variables';\n\nexport const ModalHeadWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n h3 {\n margin: 0;\n }\n`;\n\nexport const ModalBody = styled.div`\n overflow: auto;\n display: flex;\n flex-direction: column;\n height: 100%;\n flex-grow: 1;\n & > div {\n height: 100%;\n flex-grow: 1;\n overflow: visible;\n overflow-y: visible !important; // we want modal to take over the scrolling\n }\n position: relative;\n ${ButtonsWrapper} {\n position: sticky;\n bottom: 0;\n background: white;\n }\n`;\n\nexport const XButton = styled.button`\n background-color: white;\n border: none;\n font-size: 34px;\n font-weight: 300;\n line-height: 24px;\n opacity: 0.6;\n transition: all 0.2s;\n padding: 0;\n &:hover {\n opacity: 1;\n }\n`;\n\nexport const ModalWrapper = styled.div`\n border-radius: 3px;\n width: ${({ width }) => width || '600px'};\n height: ${({ height }) => height || ''};\n background: white;\n opacity: 1;\n display: flex;\n flex-direction: column;\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);\n margin-bottom: auto;\n margin-top: 32px;\n max-height: calc(100vh - 64px);\n max-width: calc(100vw - 64px);\n overflow-y: auto;\n & > * {\n padding: 16px;\n }\n animation: 0.15s ease-out 0s 1 fadeIn, 0.2s slideIn;\n @keyframes slideIn {\n 0% {\n transform: translateY(-100%);\n }\n 100% {\n transform: translateY(0);\n }\n }\n`;\n\nexport const Overlay = styled.div`\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: ${modalZIndex}; // higher than user flow button\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(0, 0, 0, 0.5);\n transition: opacity 0.15s linear;\n animation: 0.15s ease-out 0s 1 fadeIn;\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n`;\n\nexport const ModalFooter = styled(ButtonsWrapper)`\n margin-top: 32px;\n`;\n","import isPropValid from '@emotion/is-prop-valid';\nimport { forwardRef } from 'react';\nimport { StyleSheetManager } from 'styled-components';\nimport { kebabise } from '../../../utils';\n\nconst OWN_PROPS = ['children', 'theme', 'className'];\n\n/**\n *\n * since upgrade to styled-components v6 propsToAttributes\n * must be used inside the withCustomProps wrapper. e.g.\n *\n * export const Flex = withCustomProps(styled.div`\n * display: flex;\n * ${propsToAttributes}\n * `);\n *\n */\nexport const propsToAttributes = (props = {}) =>\n Object.keys(props)\n .filter((prop) => !OWN_PROPS.includes(prop) && !prop.startsWith('data-'))\n .map((key) => `${kebabise(key)}: ${props[key]};`)\n .join('\\n');\n\n/**\n * after upgrading to version 6, in order to not rename every prop we\n * are passing to a styled component by adding the prefix '$', we are\n * creating a wrapper that will mimic the bahavior of the older version (5)\n * https://styled-components.com/docs/faqs#shouldforwardprop-is-no-longer-provided-by-default\n */\nexport const withCustomProps = (WrappedComponent) => {\n const wrapper = forwardRef((props, ref) => (\n \n \n \n ));\n wrapper.displayName = 'withCustomProps';\n return wrapper;\n};\n\n// This implements the default behavior from styled-components v5\nconst shouldForwardProp = (propName, target) => {\n if (typeof target === 'string') {\n // For HTML elements, forward the prop if it is a valid HTML attribute\n return isPropValid(propName);\n }\n // For other elements, forward all props\n return true;\n};\n\n// transforms hex values to rgba\nexport const withOpacity = (hex, opacity = 1) => {\n if (hex.length === 4) {\n hex = `#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`;\n }\n\n const r = parseInt(hex.slice(1, 3), 16);\n const g = parseInt(hex.slice(3, 5), 16);\n const b = parseInt(hex.slice(5, 7), 16);\n\n return `rgba(${r},${g},${b},${opacity})`;\n};\n","// Style Variables\n\n// Colour\nexport const darkBlue = '#1c2c3a';\nexport const backgroundGray = '#f0f0f0';\nexport const backgroundBlue = '#e4f3ff';\nexport const borderLightGray = '#ddd';\nexport const borderButtonLightGray = '#eee';\nexport const darkGray = '#444';\nexport const lightGray = '#666';\nexport const gray = '#999';\nexport const dividerGray = '#f2f2f2';\nexport const placeholderGray = '#bbb';\nexport const red = '#cc3c3c';\nexport const errorRed = '#e51c23';\nexport const blue = '#3a88ff';\nexport const lightBlue = '#2196f3';\nexport const deepBlue = '#0a6ebd';\nexport const white = '#ffffff';\n\nexport const paleBlueAccented = '#d9eaff';\n\nexport const yellow = '#ffb74d';\nexport const paleYellow = '#fffde7';\nexport const paleYellowAccented = '#fffbd1';\n\nexport const green = '#4caf74';\nexport const paleGreen = '#defbe6';\nexport const paleGreenAccented = '#c4fbd3';\n\nexport const paleRed = '#ffebee';\nexport const paleRedAccented = '#ffdbe1';\n\nexport const colorText = darkBlue;\n\nexport const fontFamily =\n '\"Roboto\", \"Helvetica Neue\", Helvetica, Arial, sans-serif';\nexport const fontWeightNormal = '400';\nexport const fontWeightBold = '700';\nexport const fontSizeXS = '0.8125rem';\nexport const fontSizeS = '0.875rem';\nexport const fontSize = '14px';\nexport const fontSizeL = '16px';\nexport const fontSizeXL = '20px';\n\nexport const lineheightSmall = '1.5rem';\nexport const lineheight = '1.846';\n\nexport const gridColumn = 'calc(100vw/25)';\nexport const avatarColWidth = 'calc(100vw/12.5)';\nexport const nameColWidth = '60vw';\nexport const mobileBreakpoint = '768px';\n\nexport const compactBold = `\n font-weight: ${fontWeightBold};\n letter-spacing: 0.1px;\n`;\nexport const iconsFont = \"'Material Symbols Outlined'\";\n\n// higher than user flow buttons (12345xx)\n// but lower than user flow hints (123461x)\nexport const modalZIndex = 1234600;\n\nexport const popoverZIndex = modalZIndex + 1;\n","import { useState, useEffect } from 'react';\n\n/**\n * Toggles visibility of a component after calling a `toggleVisibility` function.\n *\n * const { shown, toggleVisibility, show, hide } = useVisibility(parentRef, initialVisibilityState, closeAllBeforeShow);\n *\n * \n * { shown && <>Hidden by default }\n *\n * If the parent reference is given (an instance of the `useRef` hook), a click outside of the\n * parent component will hide the component.\n */\nconst useVisibility = (\n parentRef,\n initialVisibilityState = false,\n closeAllBeforeShow = false,\n rootElSelector\n) => {\n const [shown, setShown] = useState(initialVisibilityState);\n const toggleVisibility = (event) => {\n shown ? hide(event) : show(event);\n };\n\n const show = (event) => {\n closeAllBeforeShow && document.body.click();\n handleEvent(event);\n setShown(true);\n };\n const hide = (event) => {\n handleEvent(event);\n setShown(false);\n };\n\n // if we use this hook inside of a modal or any other element that prevents\n // the events to reach the body element we should declare it as the root\n // element, in order to handle closeOnClickOutside correctly\n const rootEl = document.querySelector(rootElSelector) || document.body;\n\n useEffect(() => {\n if (!shown || !parentRef) return;\n\n const closeOnClickOutside = (event) => {\n // this method gets called 2 times after clicking on the label of a checkbox (the first event\n // brings the label as a target, the second one brings the checkbox). When it is called second\n // time, `event.target` points to the previous version of the checkbox which was removed after\n // re-rendering. So, to keep the dropdown open, events on checkboxes are ignored\n if (\n parentRef.current &&\n event.target.type != 'checkbox' &&\n !parentRef.current.contains(event.target)\n )\n setShown(false);\n };\n\n rootEl.addEventListener('click', closeOnClickOutside);\n\n return () => rootEl.removeEventListener('click', closeOnClickOutside);\n }, [shown, parentRef]);\n\n return { shown, toggleVisibility, show, hide };\n};\n\nconst handleEvent = (event) => {\n // we have to stop propagation to prevent event from bubbling\n // outside the clicked element triggering closeOnClickOutside\n if (event) {\n event.stopPropagation && event.stopPropagation();\n }\n};\nexport default useVisibility;\n","import axios from 'axios';\nimport { dataToCamelCase, serpentize } from './utils';\n\n/**\n * This file contains a bunch of functions for working with the backend.\n * They aren't wrapped into any class (object), because different packs\n * might use different functions, thus, after tree shaking (https://webpack.js.org/guides/tree-shaking/)\n * packs will contain only used functions.\n */\n\nexport function fetch(url, params = {}) {\n const headers = { 'X-Requested-With': 'XMLHttpRequest' };\n\n return axios.get(url, { params, headers }).then((res) => res.data);\n}\n\n// unfortunately, a `delete` name is reserved\nexport function destroy(url) {\n return axios.delete(url);\n}\n\nexport function getDraft(id) {\n return axios.get(`/jobs/${id}/details/edit`);\n}\n\nexport function fetchPaymentAddresses() {\n return fetch('/payment_addresses');\n}\n\nexport function deletePaymentAddress(id) {\n return destroy(`/payment_addresses/${id}`);\n}\n\nexport function createPaymentAddress(attrs) {\n return axios.post('/payment_addresses', { payment_address: attrs });\n}\n\nexport function updatePaymentAddress(attrs) {\n return axios.put(`/payment_addresses/${attrs.id}`, {\n payment_address: attrs,\n });\n}\n\nexport function fetchJobGroups() {\n return fetch('/job_groups');\n}\n\nexport function fetchJobGroup(id) {\n return fetch(`/job_groups/${id}`);\n}\n\nexport function deleteJobGroup(id) {\n return destroy(`/job_groups/${id}`);\n}\n\nexport function createJobGroup(attrs) {\n return axios.post('/job_groups', { job_group: attrs });\n}\n\nexport function updateJobGroup(id, attrs) {\n return axios.put(`/job_groups/${id}`, { job_group: attrs });\n}\n\nexport function updateJobCategories(id, attrs) {\n return axios\n .put(`/jobs/${id}/categories`, { publication: attrs })\n .then((res) => res.data);\n}\n\nexport function updateRevisionCategories(id, attrs) {\n return axios\n .put(`/revisions/${id}/categories`, { publication: attrs })\n .then((res) => res.data);\n}\n\nexport function createFavoriteChannel(id) {\n return axios.post('/favorite_channels', { channel_id: id });\n}\n\nexport function deleteFavoriteChannel(id) {\n return destroy(`/favorite_channels/${id}`);\n}\n\nexport function acceptAgreement(cookies) {\n // cookies parameter doesn't get used by the server, but it gets logged\n return axios.patch('/accept-agreement', { cookies });\n}\n\nexport function declineAgreement() {\n return axios.patch('/decline-agreement');\n}\n\nexport function getNewFork(id) {\n return axios.get(`/jobs/${id}/new`);\n}\n\nexport function deleteJob(id) {\n return destroy(`/jobs/${id}`);\n}\n\nexport function cloneJob(id) {\n return axios.post(`/jobs/${id}/clone`);\n}\n\nexport function saveOrder(jobId, orderId, items, modifiedAt) {\n const channelIds = items.map((item) => item.id);\n\n return axios.patch(`/jobs/${jobId}/channels`, {\n order_id: orderId,\n channel_ids: channelIds,\n modified_at: modifiedAt,\n });\n}\n\nexport function updateCustomizations(customizations) {\n return axios.patch('/company/customizations', {\n customizations: customizations,\n });\n}\n\nexport function fetchLocations(\n { page, perPage, includeArchived, searchTerm, order, orderBy },\n path = '/settings/locations'\n) {\n return fetch(path, {\n page,\n per_page: perPage,\n include_archived: includeArchived,\n search_term: searchTerm || undefined,\n order: order,\n order_by: orderBy,\n });\n}\n\nexport function createLocation(attrs) {\n return axios.post('/settings/locations', { location: attrs });\n}\n\nexport function updateLocation(attrs) {\n return axios.put(`/settings/locations/${attrs.id}`, { location: attrs });\n}\n\nexport function deleteLocation(id) {\n return destroy(`/settings/locations/${id}`);\n}\n\nexport function archiveLocation(id) {\n return axios.put(`/settings/locations/${id}/archive`);\n}\n\nexport function unarchiveLocation(id) {\n return axios.put(`/settings/locations/${id}/unarchive`);\n}\n\nexport function fetchUserProfile() {\n return fetch('/settings/profile');\n}\n\nexport function updateUserProfile(attrs) {\n return axios.put('/settings/profile', { profile: attrs });\n}\n\nexport function updatePassword(attrs) {\n return axios.put('/settings/passwords', { change_password: attrs });\n}\n\nexport function confirmOrder(jobId, attrs) {\n return axios.put(`/jobs/${jobId}/order/confirm`, { order: attrs });\n}\n\nexport function fetchJobProfiles() {\n return fetch('/job_profiles');\n}\n\nexport function fetchJobProfile(id) {\n return fetch(`/job_profiles/${id}`);\n}\n\nexport function createJobProfile(attrs) {\n return axios.post('/job_profiles', { job_profile: attrs });\n}\n\nexport function updateJobProfile(id, attrs) {\n return axios.put(`/job_profiles/${id}`, { job_profile: attrs });\n}\n\nexport function updateCompanySettings(settings) {\n return axios.patch('/company/settings', settings);\n}\n\nexport function fetchJobs({\n page,\n perPage,\n searchTerm,\n archived,\n orderBy,\n order,\n locationIds,\n userIds,\n frameContractIds,\n}) {\n return fetch('/jobs', {\n page,\n archived,\n // don't send the order param as a string, otherwise, order confirmation requests couldn't\n // be logged in ElasticSearch\n order_direction: order,\n per_page: perPage,\n search_term: searchTerm,\n order_by: orderBy,\n location_ids: locationIds,\n user_ids: userIds,\n frame_contract_ids: frameContractIds,\n });\n}\n\nexport function fetchPostings(jobId) {\n return fetch(`/jobs/${jobId}/postings`);\n}\n\nexport function fetchJobPreview(jobId) {\n return fetch(`/jobs/${jobId}/preview`);\n}\n\nexport function fetchRevisionPreview(revisionId) {\n return fetch(`/revisions/${revisionId}/preview`);\n}\n\nexport function fetchAdTemplateSource(templateId) {\n return fetch(`/ad_templates/${templateId}/source`);\n}\n\nexport function expirePosting(postingId) {\n return axios.put(`/postings/${postingId}/expire`);\n}\n\nexport function archiveJob(id) {\n return axios.put(`/jobs/${id}/archive`);\n}\n\nexport function setActiveCompany(companyId) {\n return axios.patch('/users/companies', { selected_company_id: companyId });\n}\n\nexport async function uploadMediaAsset({\n file,\n mediaAssetType,\n onError,\n onSuccess,\n onUploadProgress,\n signal,\n}) {\n // Request presigned URL from S3\n try {\n const options = {\n signal,\n onUploadProgress: onUploadProgress,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n };\n\n const formData = new FormData();\n\n formData.append('file', file);\n formData.append('media_asset_type', mediaAssetType);\n formData.append('name', file.name);\n\n const { data } = await axios.post('/media_assets', formData, options);\n onSuccess && onSuccess(data);\n return data;\n } catch (error) {\n onError && onError(error);\n }\n}\n\nexport const fetchMediaAssets = async (media_asset_type = 'header') =>\n fetch('/media_assets', { media_asset_type });\n\nexport const updateMediaAsset = (mediaAsset) =>\n axios.patch(`/media_assets/${mediaAsset?.id}`, mediaAsset);\n\nexport async function uploadLogo({\n file,\n onUploadProgress,\n onSuccess,\n onError,\n signal,\n}) {\n const options = {\n signal,\n onUploadProgress: onUploadProgress,\n headers: {\n 'Content-Type': file.type,\n },\n };\n\n const formData = new FormData();\n formData.append('company_logo[logo]', file);\n try {\n const { data } = await axios.patch('/company_logo', formData, options);\n onSuccess && onSuccess(data);\n return data;\n } catch (error) {\n onError && onError(error);\n }\n}\n\nexport const deleteLogo = async () => destroy('/company_logo');\n\nexport function validateImage(url) {\n return axios.get('/file_size', { params: { url } });\n}\n\nexport function updateSocialProfile(attrs) {\n return axios.patch('/company/social-profile', { social_profile: attrs });\n}\n\nexport function fetchCareerSiteChannels() {\n return fetch('/channels/career-site');\n}\n\nexport function saveCareerSiteChannels(ids) {\n return axios.patch('/company/save-career-sites', { ids });\n}\n\nexport function updateFrameContract(frameContract) {\n return axios.patch(`/frame_contracts/${frameContract?.id}`, {\n frameContract,\n });\n}\n\nexport function createFrameContract(frameContract) {\n return axios.post(`/frame_contracts`, { frameContract });\n}\n\nexport function createRevision(values) {\n return axios.post(\n `/postings/${values.job_id}/${values.posting_id}/revision/new`,\n { publication: values }\n );\n}\n\nexport function updateRevision(values) {\n return axios.patch(`/revisions/${values.id}/details`, {\n publication: values,\n });\n}\n\nexport function createJob(values) {\n return axios.post('/jobs/new', { publication: values });\n}\n\nexport function updateJob(values) {\n return axios.patch(`/jobs/${values.id}/details`, { publication: values });\n}\n\nexport const signUp = (values) => axios.post('/signup', { signup: values });\nexport const signIn = (values) => axios.post('/signin', { signin: values });\nexport const requestResetPassword = (values) => axios.post('/resets', values);\nexport const resetPassword = ({ values, url }) => axios.put(url, values);\n\nexport async function fetchFrameContracts({\n contingentType: contingent_type,\n state,\n used,\n}) {\n return await fetch('/frame_contracts', { contingent_type, state, used });\n}\n\nexport function fetchCompanyUsers({ searchTerm, stateFilter }) {\n return fetch('/companies/users', {\n search_term: searchTerm,\n state_filter: stateFilter,\n });\n}\n\nexport const URL = {\n favoriteChannelsList: '/companies/favorite_lists',\n supplier: '/onsite_apply_suppliers',\n};\n\nexport const fetchFavoriteChannelsLists = () => fetch(URL.favoriteChannelsList);\n\nexport const createFavoriteChannelsList = (favoriteList) =>\n dataToCamelCase(\n axios.post(URL.favoriteChannelsList, serpentize(favoriteList))\n );\n\nexport const udpateFavoriteChannelsList = async ({\n id,\n ...favoriteChannelsList\n}) =>\n dataToCamelCase(\n axios.patch(\n `${URL.favoriteChannelsList}/${id}`,\n serpentize(favoriteChannelsList)\n )\n );\n\nexport const deleteFvaoriteChannelsList = (favouriteListId) =>\n destroy(`${URL.favoriteChannelsList}/${favouriteListId}`);\n\nexport const removeChannelFromFavoritesList = ({ listId, channelId }) =>\n destroy(`${URL.favoriteChannelsList}/${listId}/channels/${channelId}`);\n\nexport const addChannelToFavoriteList = ({ listId, channelId }) =>\n axios.post(`${URL.favoriteChannelsList}/${listId}/channels`, {\n id: channelId,\n });\n\nexport const updateOnsiteApplySupplier = (supplier) =>\n dataToCamelCase(axios.patch(URL.supplier, serpentize(supplier)));\n","/**\n * Common javascript functions.\n * Please don't let this file get too big.\n */\n\n/**\n * Convert from camelCase to kebab-case.\n */\nexport const kebabise = (str) =>\n str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n\n/**\n * Remove whitespace from string.\n */\nexport const replaceWhitespace = (str, replaceWith = '_') =>\n str.replace(/\\s+/g, replaceWith).replace(/[^A-Za-z_-]/, '');\n\nexport const removeEmptyKeys = (values) => {\n const normalizedValues = {};\n Object.keys(values).forEach((key) => {\n if (values[key] || values[key] === 0 || values[key] === false) {\n normalizedValues[key] = values[key];\n }\n });\n return normalizedValues;\n};\n\nconst DOMAIN_SEGMENT_PATTERN = '[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?';\nexport const isURLValid = (str) => {\n // TLD of a domain name can be up to 63 characters (https://tools.ietf.org/html/rfc1034)\n const urlPattern = new RegExp(\n `^(http|https)://` +\n `${DOMAIN_SEGMENT_PATTERN}` +\n `(?:\\\\.${DOMAIN_SEGMENT_PATTERN})*` +\n `\\\\.[a-z]{2,63}(?:(:[0-9]{1,5})?(/|#|\\\\?).*)?$`,\n 'i'\n );\n return urlPattern.test(str);\n};\n\nexport const findItemByAttr = (array, value, attribute = 'id') =>\n array.find((el) => el[attribute] === value);\n\n// a polyfill for window.crypto.randomUUID function based on\n// https://stackoverflow.com/a/2117523/7562654\nexport const randomUUID = () => {\n return (\n window?.crypto?.randomUUID?.() ||\n '10000000-1000-4000-8000-100000000000'.replace(/[018]/g, (c) =>\n (\n +c ^\n (window.crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (+c / 4)))\n ).toString(16)\n )\n );\n};\n\nexport const toggle = (item, list = []) =>\n list.includes(item)\n ? list.filter((addedId) => addedId != item)\n : [...list, item];\n\nexport const stringToCamelCase = (str) => {\n return str.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());\n};\n\nexport const camelize = (obj) => {\n if (Array.isArray(obj)) {\n return obj.map(camelize);\n } else if (obj && typeof obj === 'object') {\n return Object.keys(obj).reduce((acc, key) => {\n const camelCaseKey = stringToCamelCase(key);\n acc[camelCaseKey] = camelize(obj[key]); // recursively handle nested objects\n return acc;\n }, {});\n }\n return obj; // return the value if is not an object\n};\n\n// Helper function to convert a string from camelCase to snake_case\nconst camelToSnakeCase = (str) => {\n return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n};\n\nexport const serpentize = (obj) => {\n if (Array.isArray(obj)) {\n return obj.map(serpentize);\n } else if (obj && typeof obj === 'object') {\n return Object.keys(obj).reduce((acc, key) => {\n const snakeCaseKey = camelToSnakeCase(key);\n acc[snakeCaseKey] = serpentize(obj[key]); // recursively handle nested objects\n return acc;\n }, {});\n }\n return obj;\n};\n\nexport const removeSearchParam = (searchParamName) => {\n // get the current URL parameters\n const searchParams = new URLSearchParams(window.location.search);\n\n // remove the tabs parameter\n searchParams.delete(searchParamName);\n\n const newSearch = searchParams.toString();\n\n // create a new URL without the specified parameter\n const newUrl = `${window.location.pathname}${\n newSearch ? `?${newSearch}` : ''\n }${window.location.hash}`;\n\n // use the history to avoid refresh\n window.history.replaceState({}, document.title, newUrl);\n};\n\nexport const isNumber = (value) => typeof value === 'number';\n\nexport const dataToCamelCase = async (responsePromise) => {\n let response;\n try {\n response = await responsePromise;\n response.data = camelize(response?.data);\n } catch (error) {\n if (error?.response?.data) {\n response = error;\n response.response.data = camelize(response?.response?.data);\n }\n }\n return response;\n};\n"],"names":["StyledIcon","styled","span","props","size","color","Icon","name","className","role","defaultProps","useModal","initialVisibilityState","shown","show","open","hide","toggleVisibility","toggle","useVisibility","overflow","setOverflow","useState","close","useCallback","useEffect","document","documentElement","style","Modal","modalProps","MODAL_WRAPPER_ID","children","closeOnBlur","height","hideHeader","hideX","id","overlayStyle","title","trackingIdPrefix","width","translate","useI18n","portalContainerRef","useRef","containerId","existing","getElementById","container","createElement","body","appendChild","getPortalContainer","createPortal","onClick","e","stopPropagation","nativeEvent","preventDefault","current","PropTypes","isRequired","Flex","withCustomProps","div","propsToAttributes","ButtonsWrapper","ModalHeadWrapper","ModalBody","XButton","button","ModalWrapper","Overlay","modalZIndex","ModalFooter","OWN_PROPS","Object","keys","filter","prop","includes","startsWith","map","key","kebabise","join","WrappedComponent","wrapper","forwardRef","ref","shouldForwardProp","displayName","propName","target","isPropValid","withOpacity","hex","opacity","length","parseInt","slice","backgroundGray","backgroundBlue","borderLightGray","borderButtonLightGray","darkGray","lightGray","gray","dividerGray","placeholderGray","red","errorRed","blue","lightBlue","deepBlue","white","paleBlueAccented","yellow","paleYellow","paleYellowAccented","green","paleGreen","paleGreenAccented","paleRed","paleRedAccented","colorText","fontFamily","fontWeightBold","fontSizeXS","fontSizeS","fontSize","fontSizeL","fontSizeXL","lineheightSmall","gridColumn","nameColWidth","mobileBreakpoint","compactBold","iconsFont","popoverZIndex","handleEvent","event","parentRef","closeAllBeforeShow","rootElSelector","setShown","click","rootEl","querySelector","closeOnClickOutside","type","contains","addEventListener","removeEventListener","fetch","url","params","axios","get","headers","then","res","data","destroy","delete","fetchPaymentAddresses","deletePaymentAddress","createPaymentAddress","attrs","post","payment_address","updatePaymentAddress","put","fetchJobGroups","deleteJobGroup","createJobGroup","job_group","updateJobCategories","publication","updateRevisionCategories","acceptAgreement","cookies","patch","declineAgreement","getNewFork","deleteJob","cloneJob","saveOrder","jobId","orderId","items","modifiedAt","channelIds","item","order_id","channel_ids","modified_at","updateCustomizations","customizations","fetchLocations","page","perPage","includeArchived","searchTerm","order","orderBy","per_page","include_archived","search_term","undefined","order_by","createLocation","location","updateLocation","deleteLocation","archiveLocation","unarchiveLocation","fetchUserProfile","updateUserProfile","profile","updatePassword","change_password","confirmOrder","fetchJobProfiles","fetchJobProfile","createJobProfile","job_profile","updateJobProfile","updateCompanySettings","settings","fetchJobs","archived","locationIds","userIds","frameContractIds","order_direction","location_ids","user_ids","frame_contract_ids","fetchPostings","fetchJobPreview","fetchRevisionPreview","revisionId","fetchAdTemplateSource","templateId","expirePosting","postingId","archiveJob","setActiveCompany","companyId","selected_company_id","async","uploadMediaAsset","file","mediaAssetType","onError","onSuccess","onUploadProgress","signal","options","formData","FormData","append","error","fetchMediaAssets","media_asset_type","updateMediaAsset","mediaAsset","uploadLogo","deleteLogo","validateImage","updateSocialProfile","social_profile","fetchCareerSiteChannels","saveCareerSiteChannels","ids","updateFrameContract","frameContract","createFrameContract","createRevision","values","job_id","posting_id","updateRevision","createJob","updateJob","signUp","signup","signIn","signin","requestResetPassword","resetPassword","fetchFrameContracts","contingentType","contingent_type","state","used","fetchCompanyUsers","stateFilter","state_filter","URL","createFavoriteChannelsList","favoriteList","dataToCamelCase","serpentize","udpateFavoriteChannelsList","favoriteChannelsList","deleteFvaoriteChannelsList","favouriteListId","removeChannelFromFavoritesList","listId","channelId","addChannelToFavoriteList","updateOnsiteApplySupplier","supplier","str","replace","letter","toLowerCase","replaceWhitespace","replaceWith","removeEmptyKeys","normalizedValues","forEach","DOMAIN_SEGMENT_PATTERN","isURLValid","RegExp","test","findItemByAttr","array","value","attribute","find","el","randomUUID","window","crypto","c","getRandomValues","Uint8Array","toString","list","addedId","stringToCamelCase","_","toUpperCase","camelize","obj","Array","isArray","reduce","acc","removeSearchParam","searchParamName","searchParams","URLSearchParams","search","newSearch","newUrl","pathname","hash","history","replaceState","isNumber","response","responsePromise"],"sourceRoot":""}