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VF,EAAUK,GAGnB,OAAOL,CAAS,EAGL6B,EAAkB9B,IAC7B,MAAMC,EAAY,IAAKD,GACjBG,EAAgB,CAAC,iBAAkB,gBAAiB,cACpD4B,EAAgB,CAAC,cAAe,YAAa,WAAY,OACzD3B,EAAoB,CAAC,UAAW,aAEtC,IAAK,MAAME,KAAQF,OAC4DrG,IAAzEiG,EAAuC,+BAAsB,mBAAEM,KACnEL,EAA0C,+BAAsB,mBAAEK,GAChEN,EAAuC,+BAAsB,mBAAEM,GAAMrN,OAGzE,IAAK,MAAMqN,KAAQH,SACVF,EAAUK,GAGnB,GAA0B,SAAtBzC,OAAOmE,WACT,IAAK,MAAM1B,KAAQyB,SACV9B,EAAUK,GAIrB,OAAOL,CAAS,EAGLgC,EAAgBA,CAACjC,EAAQkC,KACpC,MAAMjC,EAAYkC,IAAUnC,GAgB5B,cAdOC,EAAUmC,SAEblI,EAAEmI,QAAQpC,EAAUqC,QAAQC,QAASL,EAAcI,QAAQC,gBACtDtC,EAAUqC,QAAQC,QAEzBtC,EAAUqC,QAAQC,QAAUrI,EAAEsI,UAAUvC,EAAUqC,QAAQC,SAAUE,GAC9DvI,EAAEwI,SAASD,GACNA,EAAIxP,MAEJwP,IAKNxC,CAAS,C,sBC9IlB,KAAgB,MAAQ,oCAAoC,UAAY,wCAAwC,SAAW,uCAAuC,MAAQ,oC,qBCA1K,KAAgB,cAAgB,mCAAmC,SAAW,8BAA8B,MAAQ,2BAA2B,WAAa,gCAAgC,WAAa,gCAAgC,MAAQ,2BAA2B,MAAQ,2BAA2B,SAAW,8BAA8B,YAAc,iCAAiC,cAAgB,mCAAmC,OAAS,4BAA4B,UAAY,+B","sources":["webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/AsyncSelectField.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/CheckboxField.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/CreatableSelectField.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/styles/FormFlashMsg.module.scss?d54f","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/FormFlashMsg.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/styles/Label.module.scss?3ed8","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/Label.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/ScrollToError.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/SelectErrorMessage.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/SelectField.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/TextAreaField.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/components/TextField.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/styles/customStyles.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/utils/form.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/utils/helpers.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/utils/paramModifiers.js","webpack://marmosetmusic/./app/assets/javascripts/source/shared/styles/CheckboxField.module.scss?b1b8","webpack://marmosetmusic/./app/assets/javascripts/source/shared/styles/form.module.scss?53eb"],"sourcesContent":["import React from \"react\"\nimport AsyncSelect from \"react-select/async\"\nimport AsyncCreatableSelect from \"react-select/async-creatable\"\nimport { ErrorMessage } from \"formik\"\nimport { formatId, formatAriaLabel } from \"../utils/form\"\nimport { selectFieldCustomStyle } from \"../styles/customStyles\"\nimport cx from \"classnames\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst AsyncSelectField = (props) => {\n const {\n fieldName,\n label,\n value,\n isDisabled,\n isClearable,\n isMulti,\n closeMenuOnSelect,\n loadOptions,\n placeholder,\n defaultOptions,\n loadOnFocus,\n canCreateOption,\n classNamePrefix,\n showErrorBorder,\n admin,\n } = props\n\n const handleChange = (selectedValue) => {\n props.onChange(fieldName, selectedValue)\n }\n\n const handleBlur = () => {\n props.onBlur(fieldName, true)\n }\n\n const handleOnFocus = () => {\n loadOnFocus ? props.loadOptions() : () => false\n }\n\n const selectProps = {\n placeholder,\n isMulti,\n value,\n placeholder,\n loadOptions,\n defaultOptions,\n closeMenuOnSelect,\n isDisabled,\n isClearable,\n classNamePrefix,\n id: formatId(fieldName),\n onChange: handleChange,\n onBlur: handleBlur,\n onFocus: handleOnFocus,\n styles: admin ? {} : selectFieldCustomStyle(showErrorBorder),\n }\n\n return (\n
\n \n {canCreateOption ? (\n \n ) : (\n \n )}\n \n
\n )\n}\n\nAsyncSelectField.defaultProps = {\n isMulti: false,\n closeMenuOnSelect: true,\n defaultOptions: false,\n canCreateOption: false,\n placeholder: \"Select...\",\n showLabel: true,\n isDisabled: false,\n isClearable: false,\n className: \"react-select-container\",\n classNamePrefix: \"react-select\",\n admin: false,\n showErrorBorder: false,\n}\n\nexport default AsyncSelectField\n","import React from \"react\"\nimport { Field, ErrorMessage } from \"formik\"\nimport cx from \"classnames\"\nimport styles from \"../styles/CheckboxField.module.scss\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst CheckboxField = ({ admin, checked, wrapperClass, label, fieldName, disabled }) => {\n return (\n
\n \n \n {label}\n \n \n
\n )\n}\n\nCheckboxField.defaultProps = {\n label: \"\",\n checked: false,\n disabled: false,\n}\n\nexport default CheckboxField\n","import React from \"react\"\nimport SelectErrorMessage from \"./SelectErrorMessage\"\nimport CreatableSelect from \"react-select/creatable\"\nimport Label from \"./Label\"\nimport cx from \"classnames\"\nimport { selectFieldCustomStyle } from \"../styles/customStyles\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst CreatableSelectField = (props) => {\n const {\n fieldName,\n label,\n options,\n onChange,\n onBlur,\n value,\n isMulti,\n closeMenuOnSelect,\n placeholder,\n isDisabled,\n isClearable,\n isLoading,\n allowCreateWhileLoading,\n onCreateOption,\n showErrorBorder,\n hint,\n admin,\n } = props\n\n const handleChange = (selectedValue) => {\n onChange(fieldName, selectedValue)\n }\n\n const handleBlur = () => {\n onBlur(fieldName, true)\n }\n\n return (\n
\n \n \n \n
\n )\n}\n\nCreatableSelectField.defaultProps = {\n isMulti: false,\n closeMenuOnSelect: true,\n placeholder: \"Select..\",\n isDisabled: false,\n isClearable: false,\n isLoading: false,\n allowCreateWhileLoading: false,\n hint: false,\n admin: false,\n showErrorBorder: false,\n}\n\nexport default CreatableSelectField\n","// extracted by mini-css-extract-plugin\nexport default {\"flash\":\"FormFlashMsg-module_flash__MGBxv\",\"admin\":\"FormFlashMsg-module_admin__wWBDb\",\"success\":\"FormFlashMsg-module_success__Z7o2l\",\"error\":\"FormFlashMsg-module_error__BOLEc\",\"public\":\"FormFlashMsg-module_public__yJCiO\"};","import React from \"react\"\nimport cx from \"classnames\"\nimport styles from \"../styles/FormFlashMsg.module.scss\"\n\nconst FormFlashMsg = ({ status, type, children, messages }) => {\n const classNames = cx(\n \"flash-msg\", // for the scrollIntoView, not styling\n styles.flash,\n styles[status],\n styles[type]\n )\n\n return (\n
\n {children}\n {messages && }\n
\n )\n}\n\nconst MessageList = ({ messages }) => {\n return (\n \n )\n}\n\nFormFlashMsg.defaultProps = {\n messages: false,\n type: \"admin\",\n}\n\nexport default FormFlashMsg\n","// extracted by mini-css-extract-plugin\nexport default {\"label\":\"Label-module_label__JL9B3\",\"text\":\"Label-module_text__A2HUc\",\"hint\":\"Label-module_hint__TDAcb\"};","import React from \"react\"\nimport cx from \"classnames\"\nimport styles from \"../styles/Label.module.scss\"\n\nconst Label = ({ htmlFor, text, hint, classNames }) => {\n return (\n \n )\n}\n\nLabel.defaultProps = {\n hint: false,\n classNames: styles.label,\n}\n\nexport default Label\n","import React from \"react\"\nimport { connect } from \"formik\"\n\nclass ScrollToError extends React.Component {\n componentDidUpdate(prevProps) {\n const { isSubmitting, isValidating } = prevProps.formik\n\n if (isSubmitting && !isValidating) {\n const element = document.querySelector(\".error-msg\")\n\n if (element) {\n element.scrollIntoView({\n behavior: \"smooth\",\n block: \"center\",\n inline: \"center\",\n })\n }\n }\n }\n\n render() {\n return null\n }\n}\n\nexport default connect(ScrollToError)\n","import React, { Fragment } from \"react\"\nimport { connect, getIn } from \"formik\"\nimport cx from \"classnames\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst SelectErrorMessage = ({ formik, className, name }) => {\n const errors = getIn(formik.errors, name)\n const touched = getIn(formik.touched, name)\n\n return (\n \n {errors && touched && (\n
\n {/* last condition allows for multi-select (array) */}\n {errors.value || errors.label || errors}\n
\n )}\n
\n )\n}\n\nSelectErrorMessage.defaultProps = {\n className: cx(formStyles.errorMsg, \"error-msg\"),\n}\n\nexport default connect(SelectErrorMessage)\n","import React from \"react\"\nimport Select, { createFilter } from \"react-select\"\nimport SelectErrorMessage from \"./SelectErrorMessage\"\nimport Label from \"./Label\"\nimport { selectFieldCustomStyle } from \"../styles/customStyles\"\nimport { formatId, formatAriaLabel } from \"../utils/form\"\nimport cx from \"classnames\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst SelectField = (props) => {\n const {\n wrapperClass,\n inputClass,\n dataCy,\n fieldName,\n label,\n options,\n onChange,\n onBlur,\n value,\n isMulti,\n closeMenuOnSelect,\n isDisabled,\n isLoading,\n placeholder,\n classNamePrefix,\n showErrorBorder,\n matchFrom,\n hint,\n admin,\n } = props\n\n const handleChange = (selectedValue) => {\n onChange(fieldName, selectedValue)\n }\n\n const handleBlur = () => {\n onBlur(fieldName, true)\n }\n\n return (\n
\n \n \n \n
\n )\n}\n\nSelectField.defaultProps = {\n isMulti: false,\n closeMenuOnSelect: true,\n isDisabled: false,\n isLoading: false,\n placeholder: \"Select...\",\n classNamePrefix: \"react-select\",\n inputClass: \"\",\n wrapperClass: \"\",\n dataCy: \"\",\n showErrorBorder: false,\n isDisabled: false,\n matchFrom: \"any\",\n admin: false,\n showErrorBorder: false,\n}\n\nexport default SelectField\n","import React from \"react\"\nimport { Field, ErrorMessage } from \"formik\"\nimport cx from \"classnames\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst TextFieldArea = (props) => {\n const {\n rows,\n cols,\n label,\n fieldName,\n inputClass,\n innerRef,\n maxLength,\n placeholder,\n showErrorBorder,\n admin,\n } = props\n\n return (\n
\n \n \n \n
\n )\n}\n\nTextFieldArea.defaultProps = {\n rows: \"20\",\n cols: \"100\",\n maxLength: \"500\",\n placeholder: \"\",\n innerRef: null,\n admin: false,\n}\n\nexport default TextFieldArea\n","import React from \"react\"\nimport cx from \"classnames\"\nimport { Field, ErrorMessage } from \"formik\"\nimport { formatId, formatAriaLabel } from \"../utils/form\"\nimport formStyles from \"../styles/form.module.scss\"\n\nconst TextField = (props) => {\n const {\n wrapperClass,\n inputClass,\n dataCy,\n type,\n label,\n fieldName,\n innerRef,\n disabled,\n placeholder,\n showErrorBorder,\n maxLength,\n admin,\n } = props\n\n return (\n
\n \n {label}\n \n \n \n
\n )\n}\n\nTextField.defaultProps = {\n wrapperClass: \"\",\n inputClass: \"\",\n dataCy: \"\",\n innerRef: null,\n type: \"text\",\n showErrorBorder: false,\n admin: false,\n}\n\nexport default TextField\n","import cx from \"classnames\"\n\nexport const selectFieldCustomStyle = (showErrorBorder = false) => {\n return {\n container: (provided, _) => ({\n ...provided,\n fontFamily: \"NeuzeitGro, georgia\",\n }),\n control: (provided, state) => ({\n ...provided,\n borderRadius: 0,\n border: `2px solid ${showErrorBorder ? \"var(--error-red)\" : \"var(--grey)\"}`,\n borderColor: showErrorBorder ? \"var(--error-red)\" : \"var(--grey)\",\n fontSize: \"16px\",\n color: state.isFocused ? \"var(--purple)\" : \"\",\n boxShadow: \"none\",\n \"&:hover\": {\n border: \"2px solid var(--grey)\",\n },\n }),\n singleValue: (provided, _) => ({\n ...provided,\n color: \"#000\",\n }),\n menu: (provided, state) => ({\n ...provided,\n borderColor: state.Selected ? \"var(--purple)\" : \"\",\n borderRadius: 0,\n borderLeft: \"2px solid var(--grey)\",\n borderRight: \"2px solid var(--grey)\",\n borderBottom: \"2px solid var(--grey)\",\n fontSize: \"16px\",\n marginBottom: 0,\n marginTop: 0,\n }),\n option: (provided, state) => ({\n ...provided,\n borderBottom: \"2px solid var(--lightest-grey)\",\n backgroundColor: state.isSelected ? \"var(--purple)\" : \"\",\n \"&:hover\": {\n background: \"var(--purple)\",\n color: \"var(--white)\",\n },\n }),\n valueContainer: (provided, _) => ({\n ...provided,\n alignContent: \"center\",\n height: \"42px\",\n }),\n singleValue: (provided, state) => {\n const opacity = state.isDisabled ? 0.5 : 1\n const transition = \"opacity 300ms\"\n\n return { ...provided, opacity, transition }\n },\n }\n}\n","import get from \"lodash.get\"\n\nexport const formatAriaLabel = (fieldName) => {\n let array = fieldName.split(/\\./g)\n let label = array[array.length - 1]\n return label.replace(/\\_/g, \" \")\n}\n\nexport const formatId = (fieldName) => {\n return fieldName.replace(/\\./g, \"_\")\n}\n\nexport const showErrorBorder = (errors, touched, fieldName) => {\n return get(touched, fieldName) && get(errors, fieldName)\n}\n","export const range = (n) => [...Array(n).keys()]\n\nexport const stripProtocol = (url) => url.replace(/(^\\w+:|^)\\/\\//, \"\")\n\nexport const YOUTUBE_LINK_REGEX = /(?<=[=\\/&])[a-zA-Z0-9_\\-]{11}(?=[=\\/&?#\\n\\r]|$)/\nexport const SPOTIFY_TRACK_LINK_REGEX =\n /^(https:\\/\\/|http:\\/\\/)?(open.spotify.com\\/track\\/|spotify:track:)([a-zA-Z0-9]+)(.*)$/m\n\nexport const internalRoles = [\n \"admin\",\n \"business_affairs\",\n \"staff\",\n \"marketing\",\n \"a_and_r\",\n \"internal\",\n]\n\nexport const pronounOptions = [\n { label: \"He/Him\", value: \"he/him\" },\n { label: \"She/Her\", value: \"she/her\" },\n { label: \"They/Them\", value: \"they/them\" },\n { label: \"He/They\", value: \"he/they\" },\n { label: \"She/They\", value: \"she/they\" },\n { label: \"Prefer not to say\", value: \"prefer not to say\" },\n]\n\nexport const communityOptions = [\n {\n label: \"Disability/disabilities (Cognitive, Intellectual, or other)\",\n value: \"Disability/disabilities (Cognitive, Intellectual, or other)\",\n },\n { label: \"Homeless/Houseless\", value: \"Homeless/Houseless\" },\n { label: \"Immigrant/Refugee\", value: \"Immigrant/Refugee\" },\n { label: \"LGBTQIA+\", value: \"LGBTQIA+\" },\n { label: \"Served in a branch of the military\", value: \"Served in a branch of the military\" },\n { label: \"None of these\", value: \"None of these\" },\n { label: \"Prefer not to say\", value: \"Prefer not to say\" },\n]\n\nexport const genderOptions = [\n { label: \"Woman\", value: \"Woman\" },\n { label: \"Man\", value: \"Man\" },\n { label: \"Non-Binary\", value: \"Non-Binary\" },\n { label: \"Trans Man\", value: \"Trans Man\" },\n { label: \"Trans Woman\", value: \"Trans Woman\" },\n { label: \"Two-Spirit\", value: \"Two-Spirit\" },\n { label: \"Intersex\", value: \"Intersex\" },\n { label: \"Gender Non-Conforming\", value: \"Gender Non-Conforming\" },\n { label: \"I prefer not to say\", value: \"I prefer not to say\" },\n]\n\nexport const ethnicityOptions = [\n { label: \"African American or Black\", value: \"African American or Black\" },\n { label: \"East Asian\", value: \"East Asian\" },\n { label: \"Latinx/Hispanic\", value: \"Latinx/Hispanic\" },\n { label: \"Native American or Alaskan Native\", value: \"Native American or Alaskan Native\" },\n { label: \"Native Hawaiian or Pacific Islander\", value: \"Native Hawaiian or Pacific Islander\" },\n { label: \"Middle Eastern\", value: \"Middle Eastern\" },\n { label: \"South Asian\", value: \"South Asian\" },\n { label: \"Southeast Asian\", value: \"Southeast Asian\" },\n { label: \"White/European\", value: \"White/European\" },\n { label: \"Aboriginal\", value: \"Aboriginal\" },\n { label: \"I prefer not to say\", value: \"I prefer not to say\" },\n]\n\nexport const replaceMMUrl = (url) => {\n if (url) {\n return url.replace(/(https:\\/\\/)?(http:\\/\\/)?(www\\.)?(marmosetmusic\\.com)(\\/)?/, \"/\")\n }\n}\n\nexport const validateEmail = (email) => {\n return email.match(\n /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n )\n}\n\nexport const resizeVimeoThumbnail = (url) => url.replace(/(_\\d{3}[x]\\d{3})/, \"_513\")\n\nexport const createVimeoSrcSet = (url) => {\n let lowres = url.replace(/(_\\d{3}[x]\\d{3})/, \"_513\")\n let hires = url.replace(/(_\\d{3}[x]\\d{3})/, \"_1026\")\n let srcSet = `${lowres} 1x, ${hires} 2x`\n return srcSet\n}\n\nexport const createSrcSet = (item, sizes) => {\n let arr = []\n for (var key in item) {\n if (item[key] && item[key].hasOwnProperty(\"url\") && sizes.hasOwnProperty(key)) {\n arr.push(`${item[key].url} ${sizes[key]}`)\n }\n }\n let srcSet = `${item.url} 1x`\n if (arr.length > 0) {\n srcSet = arr.join(\", \")\n }\n return srcSet\n}\n\nexport const styleHeader = () => {\n const rect = document.querySelector(\".sub-hero\"),\n targ = document.querySelectorAll(\".hero-background\")\n\n if (rect === null) return false\n\n if (Math.ceil(rect.getBoundingClientRect().top) <= 0) {\n targ.forEach((el) => el.classList.replace(\"hero-fixed\", \"hero-absolute\"))\n } else {\n targ.forEach((el) => el.classList.replace(\"hero-absolute\", \"hero-fixed\"))\n }\n}\n\nexport const clearUrlQuery = () => {\n let url = window.location.href\n url = url.split(\"?\")[0]\n window.history.replaceState(null, null, url)\n}\n\nexport const escapeToClose = (setOpenModal) => {\n const keyListener = (e) => {\n if (e.keyCode === 27) {\n e.stopPropagation()\n setOpenModal(false)\n }\n }\n\n document.addEventListener(\"keydown\", keyListener)\n\n return () => document.removeEventListener(\"keydown\", keyListener)\n}\n\nexport const generateUniqueKey = () => {\n let S4 = () => {\n return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)\n }\n return S4() + S4() + \"-\" + S4() + \"-\" + S4()\n}\n\nexport const addUIDs = (item) => {\n if (Array.isArray(item)) {\n item = item.map((array_item) => {\n array_item = addUIDs(array_item)\n return array_item\n })\n } else if (typeof item === \"object\" && item !== null) {\n if (!item.hasOwnProperty(\"uid\")) {\n item[\"uid\"] = generateUniqueKey()\n for (var k in item) {\n item[k] = addUIDs(item[k])\n }\n }\n }\n return item\n}\n\nconst tagIsPresent = (el, key) => {\n if (!el.getAttribute(\"data-tags\")) {\n return false\n } else if (el.getAttribute(\"data-tags\") && el.getAttribute(\"data-tags\").indexOf(key) < 0) {\n return false\n } else {\n return true\n }\n}\n\nexport const filterItems = (filter_key) => {\n filter_key = \"\" ? \"All\" : filter_key\n let team = document.querySelector(\".prismicTeam\")\n let team_items = team.querySelectorAll(\".prismicTeamItem[data-tags]\")\n let pos = 1\n for (let i = 0; i < team_items.length; ++i) {\n let member = team_items[i]\n if (filter_key != \"All\" && !tagIsPresent(member, filter_key)) {\n member.setAttribute(\"data-position\", 0)\n } else {\n member.setAttribute(\"data-position\", pos)\n if (pos === 6) {\n pos = 4\n } else {\n pos += 1\n }\n }\n }\n}\n","import isequal from \"lodash.isequal\"\nimport clonedeep from \"lodash.clonedeep\"\n\n// React-Select formats values as { label: \"\", value: \"\"}\n// so values need to be extracted and modified to work with rails objects\n// credits_attributes also need to be formatted as an indexed hash to work with has_many\nexport const songVersionParams = (params) => {\n const newParams = { ...params }\n const multiSelectAttrs = [\"genre_list\", \"instrument_list\", \"keyword_list\", \"station_list\"]\n const privateParams = [\"duplicate_song_version_id\"]\n const singleSelectAttrs = [\n \"artist_id\",\n \"song_id\",\n \"album_id\",\n \"primary_genre_list\",\n \"release_year\",\n \"energy\",\n \"arc\",\n \"state\",\n ]\n\n for (const multiAttr of multiSelectAttrs) {\n const attr = params[multiAttr]\n if (!Array.isArray(attr) || attr.length === 0) continue\n newParams[multiAttr] = attr.map((obj) => obj.value)\n }\n\n for (const attr of singleSelectAttrs) {\n if (typeof params[attr] !== \"object\") continue\n newParams[attr] = params[attr].value\n }\n\n const firstCreditAttr = params.credits_attributes[0]\n const blankCreditAttr = { id: \"\", vendor_id: \"\", split: \"\", _destroy: false }\n\n if (isequal(firstCreditAttr, blankCreditAttr)) {\n delete newParams[\"credits_attributes\"]\n } else {\n newParams.credits_attributes = params.credits_attributes.reduce((obj, credit, index) => {\n obj[index] = {\n id: credit.id || \"\",\n vendor_id: credit.vendor_id.value,\n _destroy: credit._destroy,\n split: credit.split,\n }\n return obj\n }, {})\n }\n\n const firstContributorAttr = params.song_version_contributors_attributes[0]\n const blankContributorAttr = { id: \"\", contributor_id: \"\", share: \"\", _destroy: false }\n if (isequal(firstContributorAttr, blankContributorAttr)) {\n delete newParams[\"song_version_contributors_attributes\"]\n } else {\n newParams.song_version_contributors_attributes =\n params.song_version_contributors_attributes.reduce((obj, contributor, index) => {\n obj[index] = {\n id: contributor.id || \"\",\n contributor_id: contributor.contributor_id.value,\n _destroy: contributor._destroy,\n share: contributor.share,\n }\n return obj\n }, {})\n }\n\n const firstPublisherAttr = params.song_version_publishers_attributes[0]\n const blankPublisherAttr = {\n id: \"\",\n publisher_id: \"\",\n ipi_number: \"\",\n share: \"\",\n contributor_id: \"\",\n }\n if (isequal(firstPublisherAttr, blankPublisherAttr)) {\n delete newParams[\"song_version_publishers_attributes\"]\n } else {\n newParams.song_version_publishers_attributes = params.song_version_publishers_attributes.reduce(\n (obj, publisher, index) => {\n obj[index] = {\n id: publisher.id || \"\",\n contributor_id: publisher.contributor_id.value,\n publisher_id: publisher.publisher_id.value,\n _destroy: publisher._destroy,\n share: publisher.share,\n }\n return obj\n },\n {}\n )\n }\n\n newParams.mp3_genres = [newParams.primary_genre_list, newParams.genre_list].flat().join(\"/\")\n\n for (const attr of privateParams) {\n delete newParams[attr]\n }\n\n return newParams\n}\n\nexport const checkoutParams = (params) => {\n const newParams = { ...params }\n const privateParams = [\"agree_to_terms\", \"save_new_card\", \"saved_card\"]\n const testingParams = [\"card_number\", \"exp_month\", \"exp_year\", \"cvc\"]\n const singleSelectAttrs = [\"country\", \"subregion\"]\n\n for (const attr of singleSelectAttrs) {\n if (params[\"billing_information_attributes\"][\"address_attributes\"][attr] === undefined) continue\n newParams[\"billing_information_attributes\"][\"address_attributes\"][attr] =\n params[\"billing_information_attributes\"][\"address_attributes\"][attr].value\n }\n\n for (const attr of privateParams) {\n delete newParams[attr]\n }\n\n if (window._rails_env !== \"test\") {\n for (const attr of testingParams) {\n delete newParams[attr]\n }\n }\n\n return newParams\n}\n\nexport const profileParams = (params, initialValues) => {\n const newParams = clonedeep(params)\n\n delete newParams.otherJob\n\n if (_.isEqual(newParams.profile.address, initialValues.profile.address)) {\n delete newParams.profile.address\n } else {\n newParams.profile.address = _.mapObject(newParams.profile.address, (val) => {\n if (_.isObject(val)) {\n return val.value\n } else {\n return val\n }\n })\n }\n\n return newParams\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"label\":\"CheckboxField-module_label__AbZ6O\",\"labelText\":\"CheckboxField-module_labelText__La_ym\",\"disabled\":\"CheckboxField-module_disabled__I6cOC\",\"admin\":\"CheckboxField-module_admin__IXCS_\"};","// extracted by mini-css-extract-plugin\nexport default {\"groupedInputs\":\"form-module_groupedInputs__UDWo1\",\"fieldRow\":\"form-module_fieldRow__Q5Mg0\",\"input\":\"form-module_input__KY1MX\",\"adminInput\":\"form-module_adminInput__BoeFw\",\"inputError\":\"form-module_inputError__eXUVW\",\"label\":\"form-module_label__Ukoa_\",\"admin\":\"form-module_admin__kzTj9\",\"errorMsg\":\"form-module_errorMsg__Yexds\",\"slideInDown\":\"form-module_slideInDown__rdz8I\",\"columnWrapper\":\"form-module_columnWrapper__oOWpO\",\"column\":\"form-module_column__MVrsp\",\"submitBtn\":\"form-module_submitBtn__mva78\"};"],"names":["AsyncSelectField","props","fieldName","label","value","isDisabled","isClearable","isMulti","closeMenuOnSelect","loadOptions","placeholder","defaultOptions","loadOnFocus","canCreateOption","classNamePrefix","showErrorBorder","admin","selectProps","id","formatId","onChange","selectedValue","onBlur","handleBlur","onFocus","handleOnFocus","styles","selectFieldCustomStyle","React","className","formStyles","fieldRow","htmlFor","cx","AsyncCreatableSelect","Object","assign","formatAriaLabel","AsyncSelect","ErrorMessage","name","component","defaultProps","showLabel","CheckboxField","_ref","checked","wrapperClass","disabled","Field","type","labelText","errorMsg","CreatableSelectField","options","isLoading","allowCreateWhileLoading","onCreateOption","hint","Label","text","classNames","CreatableSelect","SelectErrorMessage","FormFlashMsg","status","children","messages","flash","MessageList","_ref2","map","msg","i","key","ScrollToError","componentDidUpdate","prevProps","isSubmitting","isValidating","formik","element","document","querySelector","scrollIntoView","behavior","block","inline","render","connect","errors","getIn","touched","Fragment","SelectField","inputClass","dataCy","matchFrom","Select","filterOption","createFilter","ignoreCase","tabSelectsValue","TextFieldArea","rows","cols","innerRef","maxLength","inputError","TextField","adminInput","input","arguments","length","undefined","container","provided","_","fontFamily","control","state","borderRadius","border","borderColor","fontSize","color","isFocused","boxShadow","singleValue","menu","Selected","borderLeft","borderRight","borderBottom","marginBottom","marginTop","option","backgroundColor","isSelected","background","valueContainer","alignContent","height","opacity","transition","array","split","replace","get","range","n","Array","keys","YOUTUBE_LINK_REGEX","SPOTIFY_TRACK_LINK_REGEX","internalRoles","pronounOptions","communityOptions","genderOptions","ethnicityOptions","replaceMMUrl","url","validateEmail","email","match","resizeVimeoThumbnail","createVimeoSrcSet","createSrcSet","item","sizes","arr","hasOwnProperty","push","srcSet","join","clearUrlQuery","window","location","href","history","replaceState","escapeToClose","setOpenModal","keyListener","e","keyCode","stopPropagation","addEventListener","removeEventListener","generateUniqueKey","S4","Math","random","toString","substring","addUIDs","isArray","array_item","k","filterItems","filter_key","team_items","querySelectorAll","pos","member","el","getAttribute","indexOf","setAttribute","tagIsPresent","songVersionParams","params","newParams","multiSelectAttrs","privateParams","singleSelectAttrs","multiAttr","attr","obj","firstCreditAttr","credits_attributes","isequal","vendor_id","_destroy","reduce","credit","index","firstContributorAttr","song_version_contributors_attributes","contributor_id","share","contributor","firstPublisherAttr","song_version_publishers_attributes","publisher_id","ipi_number","publisher","mp3_genres","primary_genre_list","genre_list","flat","checkoutParams","testingParams","_rails_env","profileParams","initialValues","clonedeep","otherJob","isEqual","profile","address","mapObject","val","isObject"],"sourceRoot":""}