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OAAO,aAC9Cqf,EAAajb,YAAc,EAC7B,E,4DCzDF,MAAM0a,EAAca,EAAAA,GAAY/F,QAC1BnD,EAAUmJ,EAAAA,MAChBd,EAAYe,MAAKC,EAAAA,EAAAA,IAAuBrJ,IACxCJ,OAAO0J,SAAWjB,C","sources":["webpack://fincen-web/./app/javascript/controllers/ sync \\.js$","webpack://fincen-web/./app/javascript/controllers/address_formatter_controller.js","webpack://fincen-web/./app/javascript/controllers/array_form_controller.js","webpack://fincen-web/./app/javascript/controllers/bulk_companies_controller.js","webpack://fincen-web/./app/javascript/controllers/bulk_invites_controller.js","webpack://fincen-web/./app/javascript/controllers/checkbox_select_all_controller.js","webpack://fincen-web/./app/javascript/controllers/checkout_controller.js","webpack://fincen-web/./app/javascript/controllers/clipboard_controller.js","webpack://fincen-web/./app/javascript/controllers/companies_bulk_controller.js","webpack://fincen-web/./app/javascript/controllers/company_filings_controller.js","webpack://fincen-web/./app/javascript/controllers/company_fincen_id_formatter_controller.js","webpack://fincen-web/./app/javascript/controllers/company_form/address_fields_controller.js","webpack://fincen-web/./app/javascript/controllers/company_form/dba_names_fields_controller.js","webpack://fincen-web/./app/javascript/controllers/company_form/formation_fields_controller.js","webpack://fincen-web/./app/javascript/controllers/company_form/name_field_controller.js","webpack://fincen-web/./app/javascript/controllers/company_form_controller.js","webpack://fincen-web/./app/javascript/controllers/company_tax_id_controller.js","webpack://fincen-web/./app/javascript/controllers/complete_report_controller.js","webpack://fincen-web/./app/javascript/controllers/country_select_controller.js","webpack://fincen-web/./app/javascript/controllers/country_state_fields_controller.js","webpack://fincen-web/./app/javascript/controllers/custom_date_controller.js","webpack://fincen-web/./app/javascript/controllers/document_type_controller.js","webpack://fincen-web/./app/javascript/controllers/ein_formatter_controller.js","webpack://fincen-web/./app/javascript/controllers/fincen_id_formatter_controller.js","webpack://fincen-web/./app/javascript/controllers/form_controller.js","webpack://fincen-web/./app/javascript/controllers/formation_date_checkbox_toggle_controller.js","webpack://fincen-web/./app/javascript/controllers/gtag_controller.js","webpack://fincen-web/./app/javascript/controllers/guide_form_controller.js","webpack://fincen-web/./app/javascript/controllers/id_form_controller.js","webpack://fincen-web/./app/javascript/controllers/image_preview_controller.js","webpack://fincen-web/./app/javascript/controllers/info_controller.js","webpack://fincen-web/./app/javascript/controllers/input_formatter_controller.js","webpack://fincen-web/./app/javascript/controllers/introjs/companies_controller.js","webpack://fincen-web/./app/javascript/controllers/introjs/company_controller.js","webpack://fincen-web/./app/javascript/controllers/introjs/dashboard_controller.js","webpack://fincen-web/./app/javascript/controllers/introjs/intro_controller.js","webpack://fincen-web/./app/javascript/controllers/modal_controller.js","webpack://fincen-web/./app/javascript/controllers/my_documents_controller.js","webpack://fincen-web/./app/javascript/controllers/responsible_party_controller.js","webpack://fincen-web/./app/javascript/controllers/state_select_controller.js","webpack://fincen-web/./app/javascript/controllers/tooltip_controller.js","webpack://fincen-web/./app/javascript/controllers/trix_mentions_controller.js","webpack://fincen-web/./app/javascript/controllers/user_check_controller.js","webpack://fincen-web/./app/javascript/controllers/validation_controller.js","webpack://fincen-web/./app/javascript/stimulus.js"],"sourcesContent":["var map = {\n\t\"./address_formatter_controller.js\": 3299,\n\t\"./array_form_controller.js\": 7168,\n\t\"./bulk_companies_controller.js\": 6408,\n\t\"./bulk_invites_controller.js\": 5359,\n\t\"./checkbox_select_all_controller.js\": 7582,\n\t\"./checkout_controller.js\": 4068,\n\t\"./clipboard_controller.js\": 222,\n\t\"./companies_bulk_controller.js\": 8472,\n\t\"./company_filings_controller.js\": 8070,\n\t\"./company_fincen_id_formatter_controller.js\": 2902,\n\t\"./company_form/address_fields_controller.js\": 4665,\n\t\"./company_form/dba_names_fields_controller.js\": 9723,\n\t\"./company_form/formation_fields_controller.js\": 6806,\n\t\"./company_form/name_field_controller.js\": 4717,\n\t\"./company_form_controller.js\": 8830,\n\t\"./company_tax_id_controller.js\": 9957,\n\t\"./complete_report_controller.js\": 882,\n\t\"./country_select_controller.js\": 633,\n\t\"./country_state_fields_controller.js\": 8424,\n\t\"./custom_date_controller.js\": 9484,\n\t\"./document_type_controller.js\": 8930,\n\t\"./ein_formatter_controller.js\": 6775,\n\t\"./fincen_id_formatter_controller.js\": 774,\n\t\"./form_controller.js\": 4910,\n\t\"./formation_date_checkbox_toggle_controller.js\": 5011,\n\t\"./gtag_controller.js\": 7873,\n\t\"./guide_form_controller.js\": 513,\n\t\"./id_form_controller.js\": 9572,\n\t\"./image_preview_controller.js\": 3110,\n\t\"./info_controller.js\": 1680,\n\t\"./input_formatter_controller.js\": 6183,\n\t\"./introjs/companies_controller.js\": 6955,\n\t\"./introjs/company_controller.js\": 5171,\n\t\"./introjs/dashboard_controller.js\": 8010,\n\t\"./introjs/intro_controller.js\": 8692,\n\t\"./modal_controller.js\": 3083,\n\t\"./my_documents_controller.js\": 3589,\n\t\"./responsible_party_controller.js\": 7833,\n\t\"./state_select_controller.js\": 3842,\n\t\"./tooltip_controller.js\": 9213,\n\t\"./trix_mentions_controller.js\": 7241,\n\t\"./user_check_controller.js\": 1612,\n\t\"./validation_controller.js\": 3861,\n\t\"controllers/address_formatter_controller.js\": 3299,\n\t\"controllers/array_form_controller.js\": 7168,\n\t\"controllers/bulk_companies_controller.js\": 6408,\n\t\"controllers/bulk_invites_controller.js\": 5359,\n\t\"controllers/checkbox_select_all_controller.js\": 7582,\n\t\"controllers/checkout_controller.js\": 4068,\n\t\"controllers/clipboard_controller.js\": 222,\n\t\"controllers/companies_bulk_controller.js\": 8472,\n\t\"controllers/company_filings_controller.js\": 8070,\n\t\"controllers/company_fincen_id_formatter_controller.js\": 2902,\n\t\"controllers/company_form/address_fields_controller.js\": 4665,\n\t\"controllers/company_form/dba_names_fields_controller.js\": 9723,\n\t\"controllers/company_form/formation_fields_controller.js\": 6806,\n\t\"controllers/company_form/name_field_controller.js\": 4717,\n\t\"controllers/company_form_controller.js\": 8830,\n\t\"controllers/company_tax_id_controller.js\": 9957,\n\t\"controllers/complete_report_controller.js\": 882,\n\t\"controllers/country_select_controller.js\": 633,\n\t\"controllers/country_state_fields_controller.js\": 8424,\n\t\"controllers/custom_date_controller.js\": 9484,\n\t\"controllers/document_type_controller.js\": 8930,\n\t\"controllers/ein_formatter_controller.js\": 6775,\n\t\"controllers/fincen_id_formatter_controller.js\": 774,\n\t\"controllers/form_controller.js\": 4910,\n\t\"controllers/formation_date_checkbox_toggle_controller.js\": 5011,\n\t\"controllers/gtag_controller.js\": 7873,\n\t\"controllers/guide_form_controller.js\": 513,\n\t\"controllers/id_form_controller.js\": 9572,\n\t\"controllers/image_preview_controller.js\": 3110,\n\t\"controllers/info_controller.js\": 1680,\n\t\"controllers/input_formatter_controller.js\": 6183,\n\t\"controllers/introjs/companies_controller.js\": 6955,\n\t\"controllers/introjs/company_controller.js\": 5171,\n\t\"controllers/introjs/dashboard_controller.js\": 8010,\n\t\"controllers/introjs/intro_controller.js\": 8692,\n\t\"controllers/modal_controller.js\": 3083,\n\t\"controllers/my_documents_controller.js\": 3589,\n\t\"controllers/responsible_party_controller.js\": 7833,\n\t\"controllers/state_select_controller.js\": 3842,\n\t\"controllers/tooltip_controller.js\": 9213,\n\t\"controllers/trix_mentions_controller.js\": 7241,\n\t\"controllers/user_check_controller.js\": 1612,\n\t\"controllers/validation_controller.js\": 3861\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 = 7461;","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tthis.element.addEventListener(\"input\", this.formatCompanyName.bind(this));\n\t}\n\n\tformatCompanyName() {\n\t\t// replaces characters that are not letters, numbers, or the following special characters: `*()={}[];:\"<>\\\n\t\tlet cleanedInput = this.element.value.replace(/[`*()={}[\\];:\"<>\\\\]/g, \"\");\n\t\tthis.element.value = cleanedInput;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"list\", \"item\", \"remove\", \"template\"];\n\n\tadd() {\n\t\tconst item = this.templateTarget.content.cloneNode(true);\n\t\tthis.listTarget.appendChild(item);\n\t\tconsole.log(\"add\", this.listTarget);\n\t}\n\n\tremove(event) {\n\t\tconst index = this.removeTargets.findIndex((n) => n === event.currentTarget);\n\t\tconst item = this.itemTargets[index];\n\t\titem.remove();\n\t}\n}\n","import CheckboxSelectAll from \"./checkbox_select_all_controller\"\n\n// Connects to data-controller=\"bulk-companies\"\nexport default class extends CheckboxSelectAll {\n connect() {\n super.connect()\n }\n\n checkReadyToFile(e) {\n e.preventDefault()\n\n this.checkboxTargets.forEach((checkbox) => checkbox.checked = false)\n this.checkboxTargets.forEach((checkbox) => {\n if (checkbox.dataset.readyToFile === \"true\") {\n checkbox.checked = true\n }\n })\n this.refresh()\n }\n\n checkFileUpdate(e) {\n e.preventDefault()\n\n this.checkboxTargets.forEach((checkbox) => checkbox.checked = false)\n this.checkboxTargets.forEach((checkbox) => {\n if (checkbox.dataset.fileUpdate === \"true\") {\n checkbox.checked = true\n }\n })\n this.refresh()\n }\n\n checkIncompleteInfo(e) {\n e.preventDefault()\n\n this.checkboxTargets.forEach((checkbox) => checkbox.checked = false)\n this.checkboxTargets.forEach((checkbox) => {\n if (checkbox.dataset.incompleteInfo === \"true\") {\n checkbox.checked = true\n }\n })\n this.refresh()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"parent\", \"child\", \"selectedIds\", \"declinedIds\"];\n\n\tconnect() {\n\t\tif (this.parentTarget) {\n\t\t\tthis.childTargets.map((x) => (x.checked = false));\n\t\t\tthis.parentTarget.checked = false;\n\t\t}\n\t}\n\n\ttoggleChildren() {\n\t\tif (this.parentTarget.checked) {\n\t\t\tthis.childTargets.map((x) => (x.checked = true));\n\t\t} else {\n\t\t\tthis.childTargets.map((x) => (x.checked = false));\n\t\t}\n\t}\n\n\ttoggleParent() {\n\t\tif (this.childTargets.map((x) => x.checked).includes(false)) {\n\t\t\tthis.parentTarget.checked = false;\n\t\t} else {\n\t\t\tthis.parentTarget.checked = true;\n\t\t}\n\t}\n\n\tacceptInvites() {\n\t\tif (this.checked.length == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst acceptedIds = [];\n\t\tthis.checked.forEach((row) => acceptedIds.push(row.value));\n\t\tthis.selectedIdsTarget.value = acceptedIds;\n\t}\n\n\tdeclineInvites() {\n\t\tif (this.checked.length == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst declinedIds = [];\n\t\tthis.checked.forEach((row) => declinedIds.push(row.value));\n\t\tthis.declinedIdsTarget.value = declinedIds;\n\t}\n\n\tget checked() {\n\t\treturn this.childTargets.filter((checkbox) => checkbox.checked);\n\t}\n}\n","// See https://www.stimulus-components.com/docs/stimulus-checkbox-select-all/\n\nimport CheckboxSelectAll from \"@stimulus-components/checkbox-select-all\"\n\n// Connects to data-controller=\"checkbox-select-all\"\nexport default class extends CheckboxSelectAll {\n static targets = [\"submitButton\"]\n\n connect() {\n super.connect()\n\n if (this.hasSubmitButtonTarget) {\n this.toggleSubmitButton()\n }\n }\n\n toggleSubmitButton() {\n this.submitButtonTarget.disabled = this.checked.length === 0\n }\n\n checkAll(e) {\n e.preventDefault()\n\n this.checkboxTargets.forEach((checkbox) => checkbox.checked = true)\n this.refresh()\n }\n\n checkNone(e) {\n e.preventDefault()\n\n this.checkboxTargets.forEach((checkbox) => checkbox.checked = false)\n this.refresh()\n }\n\n toggle(e) {\n super.toggle(e)\n\n this.checkboxTargets.forEach((checkbox) => this.highlightRow(checkbox))\n }\n\n refresh() {\n super.refresh()\n\n this.checkboxTargets.forEach((checkbox) => this.highlightRow(checkbox))\n }\n\n highlightRow(checkbox) {\n checkbox.closest(\"tr\").classList.toggle(\"table-primary\", checkbox.checked)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport { csrfToken } from \"@rails/ujs\";\n\nconst EMAIL_REGEX = /^[\\w!#$%&'*+\\/=?`{|}~^.-]+(?:\\.[\\w!#$%&'*+\\/=?`{|}~^.-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,18}$/;\n\nexport default class extends Controller {\n\tstatic targets = [\"otherErrorWarning\", \"submitButton\"];\n\n\tinitialize() {\n\t\tthis.submitButtonTarget.disabled = true;\n\t\tthis.checkFormValidity();\n\t}\n\n\tcheckFormValidity() {\n\t\tconst form = this.element;\n\t\tconst requiredFields = form.querySelectorAll(\"[required]\");\n\n\t\trequiredFields.forEach((field) => {\n\t\t\tfield.addEventListener(\"input\", () => {\n\t\t\t\tconst allFilled = Array.from(requiredFields).every((input) => input.value.trim() !== \"\");\n\t\t\t\tthis.submitButtonTarget.disabled = !allFilled;\n\t\t\t});\n\t\t});\n\t}\n\n\tareRequiredFieldsFilled(form) {\n\t\tconst requiredFields = form.querySelectorAll(\"[required]\");\n\t\treturn Array.from(requiredFields).every((field) => field.value.trim() !== \"\");\n\t}\n\n\tisEmailValid(email) {\n\t\treturn EMAIL_REGEX.test(email);\n\t}\n\n\tsubmit(event) {\n\t\tevent.preventDefault();\n\t\tconst form = this.element;\n\n\t\tif (!this.areRequiredFieldsFilled(form)) {\n\t\t\tthis.otherErrorWarningTarget.textContent = \"Please fill out all required fields.\";\n\t\t\tthis.otherErrorWarningTarget.classList.remove(\"hidden\");\n\t\t\treturn;\n\t\t}\n\n\t\tconst formData = new FormData(form);\n\t\tconst email = formData.get(\"user[email]\");\n\n\t\tif (!this.isEmailValid(email)) {\n\t\t\tthis.otherErrorWarningTarget.textContent = \"Please enter a valid email address.\";\n\t\t\tthis.otherErrorWarningTarget.classList.remove(\"hidden\");\n\t\t\treturn;\n\t\t}\n\n\t\tthis.otherErrorWarningTarget.classList.add(\"hidden\");\n\n\t\tconst recaptchaResponse = form.querySelector('[name=\"g-recaptcha-response\"]')?.value;\n\n\t\tconst productId = formData.get(\"product_id\");\n\t\tconst companyName = formData.get(\"company_name\");\n\t\tconst mode = formData.get(\"mode\");\n\n\t\tfetch(form.action, {\n\t\t\tmethod: \"POST\",\n\t\t\theaders: {\n\t\t\t\t\"X-CSRF-Token\": csrfToken(),\n\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tuser: {\n\t\t\t\t\temail: email,\n\t\t\t\t\tpassword: formData.get(\"user[password]\"),\n\t\t\t\t\tpassword_confirmation: formData.get(\"user[password_confirmation]\"),\n\t\t\t\t\tuser_property_attributes: {\n\t\t\t\t\t\tlegal_first_name: formData.get(\"user[user_property_attributes][legal_first_name]\"),\n\t\t\t\t\t\tlegal_last_name: formData.get(\"user[user_property_attributes][legal_last_name]\"),\n\t\t\t\t\t},\n\t\t\t\t\trecaptcha_token: recaptchaResponse,\n\t\t\t\t},\n\t\t\t\tcompany_name: companyName,\n\t\t\t\tproduct_id: productId,\n\t\t\t\tmode: mode,\n\t\t\t}),\n\t\t})\n\t\t\t.then((response) => response.json())\n\t\t\t.then((data) => {\n\t\t\t\tif (data.sessionId) {\n\t\t\t\t\tstripe.redirectToCheckout({ sessionId: data.sessionId });\n\t\t\t\t} else if (data.error) {\n\t\t\t\t\tgrecaptcha.reset();\n\t\t\t\t\tconst error_message = data.error[\"recaptcha\"] ? data.error[\"recaptcha\"] : data.error;\n\t\t\t\t\tthis.otherErrorWarningTarget.textContent = error_message;\n\t\t\t\t\tthis.otherErrorWarningTarget.classList.remove(\"hidden\");\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.error(\"Error:\", error);\n\t\t\t});\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { Tooltip } from 'bootstrap'\n\nexport default class extends Controller {\n static targets = [\"tooltip\", \"source\"]\n\n connect() {\n if (this.hasTooltipTarget) {\n this.tooltip = new Tooltip(this.tooltipTarget, { trigger: \"manual\" })\n }\n }\n\n show() {\n if (this.hasTooltipTarget) {\n this.tooltip.show()\n }\n }\n\n hide() {\n if (this.hasTooltipTarget) {\n this.tooltip.hide()\n }\n }\n\n copy(e) {\n navigator.clipboard.writeText(this.sourceTarget.value)\n\n if (this.hasTooltipTarget) {\n this.tooltip.hide()\n const originalText = this.tooltipTarget.dataset.originalTitle\n this.tooltipTarget.dataset.originalTitle = \"Copied!\"\n this.tooltip.show()\n setTimeout(() => {\n this.tooltip.hide()\n this.tooltipTarget.dataset.originalTitle = originalText\n }, 2000)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\n 'allPagesSelectionRow',\n 'bulkSelect',\n 'checkbox',\n 'currentPageSelectionRow',\n 'file',\n 'row',\n 'selectedIds',\n ]\n\n toggleAll(event) {\n const checkboxes = this.checkboxTargets.filter((n) => !n.disabled)\n const allChecked =\n event.params.check ??\n (checkboxes.length === 0\n ? this.bulkSelectTarget.checked\n : !checkboxes.some((n) => n.checked))\n this.bulkSelectTarget.indeterminate = false\n this.bulkSelectTarget.checked = allChecked\n this.currentPageSelectionRowTarget.classList.toggle('d-none', !allChecked)\n checkboxes.forEach((checkbox) => {\n checkbox.checked = allChecked\n this.rowTargets.forEach((row) => {\n if (!row.contains(checkbox)) return\n\n row.classList.toggle('table-primary', allChecked)\n })\n })\n this.fileTarget.disabled = !allChecked\n this.storeSelection()\n }\n\n selectAll() {\n this.currentPageSelectionRowTarget.classList.add('d-none')\n this.allPagesSelectionRowTarget.classList.remove('d-none')\n this.selectedIdsTarget.value = 'all_ready_to_file'\n }\n\n clearSelection() {\n const checkboxes = this.checkboxTargets.filter((n) => !n.disabled)\n this.bulkSelectTarget.indeterminate = false\n this.bulkSelectTarget.checked = false\n this.allPagesSelectionRowTarget.classList.add('d-none')\n checkboxes.forEach((checkbox) => {\n checkbox.checked = false\n })\n this.fileTarget.disabled = true\n this.storeSelection()\n }\n\n toggle(event) {\n const checkboxes = this.checkboxTargets.filter((n) => !n.disabled)\n const checked = checkboxes.some((n) => n.checked)\n const unchecked = checkboxes.some((n) => !n.checked)\n const allChecked = checked && !unchecked\n this.bulkSelectTarget.checked = allChecked\n this.bulkSelectTarget.indeterminate = checked && unchecked\n this.currentPageSelectionRowTarget.classList.toggle('d-none', !allChecked)\n this.allPagesSelectionRowTarget.classList.add('d-none')\n this.rowTargets.forEach((row) => {\n if (!row.contains(event.currentTarget)) return\n\n row.classList.toggle('table-primary', event.currentTarget.checked)\n })\n this.fileTarget.disabled = !checked\n this.storeSelection()\n }\n\n storeSelection() {\n const ids = this.checkboxTargets\n .filter((n) => n.checked && !n.disabled)\n .map((n) => n.value)\n this.selectedIdsTarget.value = ids.join(',')\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"remindAdminsButton\", \"remindMemberButton\", \"transmitReportButton\"];\n\n\tasync remindAdmins({ params: { id } }) {\n\t\tconst spinner = this.remindAdminsButtonTarget.getElementsByClassName(\"fa-spinner\")[0];\n\t\tspinner.classList.remove(\"hidden\");\n\t\tthis.remindAdminsButtonTarget.disabled = true;\n\n\t\tconst request = await this.turboStreamRequest(\"/pending_reports/remind_admins\", \"POST\", { company_id: id });\n\n\t\tif (request.ok) {\n\t\t\ttoastr.info(\"Reminder has been sent\");\n\t\t} else {\n\t\t\tbootbox.alert('' + request.statusText + \"\");\n\t\t}\n\t\tspinner.classList.add(\"hidden\");\n\t\tthis.remindAdminsButtonTarget.disabled = false;\n\t}\n\n\tasync remindMember({ params: { memberId } }) {\n\t\tconst spinner = this.remindMemberButtonTarget.getElementsByClassName(\"fa-spinner\")[0];\n\t\tspinner.classList.remove(\"hidden\");\n\t\tthis.remindMemberButtonTarget.disabled = true;\n\n\t\tconst request = await this.turboStreamRequest(\"/pending_reports/remind_member\", \"POST\", { company_member_id: memberId });\n\n\t\tif (request.ok) {\n\t\t\ttoastr.info(\"Reminder has been sent\");\n\t\t} else {\n\t\t\tbootbox.alert('' + request.statusText + \"\");\n\t\t}\n\t\tspinner.classList.add(\"hidden\");\n\t\tthis.remindMemberButtonTarget.disabled = false;\n\t}\n\n\tasync transmitReport({ params: { companyId } }) {\n\t\tconst spinner = this.transmitReportButtonTarget.getElementsByClassName(\"fa-spinner\")[0];\n\t\tconst _this = this;\n\n\t\tawait bootbox.confirm({\n\t\t\tmessage: \"By clicking on 'Submit and File' you are confirming that your BOI report is true, correct and complete and in accordance with our\" + \"\" + \" Terms of Service \" + \"\" + \"and that FinCEN Report Company, LLC is authorized by you to file this BOI report with FinCEN via electronic means and to submit your name to FinCEN as the filer of this BOI report.

Submitting your report will add it to the queue for processing which may take up to 24 hours. You will receive an email confirmation when your report is filed.\",\n\t\t\tbuttons: {\n\t\t\t\tconfirm: {\n\t\t\t\t\tlabel: \"Submit and File\",\n\t\t\t\t\tclassName: \"btn-primary\",\n\t\t\t\t},\n\t\t\t\tcancel: {\n\t\t\t\t\tlabel: \"Cancel\",\n\t\t\t\t\tclassName: \"btn-secondary\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tcallback: async function (isConfirmed) {\n\t\t\t\tif (!isConfirmed) return;\n\n\t\t\t\tspinner?.classList.remove(\"hidden\");\n\t\t\t\t_this.transmitReportButtonTarget.disabled = true;\n\n\t\t\t\tconst request = await _this.turboStreamRequest(\"/pending_reports\", \"POST\", { company_id: companyId });\n\t\t\t\tif (request.ok) {\n\t\t\t\t\ttoastr.info(\"Report has been transmitted\");\n\t\t\t\t\tconst reportStatus = document.getElementById(\"report-status\");\n\t\t\t\t\treportStatus.innerText = \"Report is Pending Submission to FinCEN. Please allow 24 hours for processing.\";\n\t\t\t\t\tdocument.getElementById(\"previous-filing\")?.remove();\n\t\t\t\t} else {\n\t\t\t\t\tbootbox.alert('' + request.statusText + \"\");\n\t\t\t\t\t_this.transmitReportButtonTarget.disabled = true;\n\t\t\t\t}\n\t\t\t\tspinner?.classList.add(\"hidden\");\n\t\t\t},\n\t\t});\n\t}\n\n\tasync turboStreamRequest(url, method, data = {}) {\n\t\tconst response = await fetch(url, {\n\t\t\tmethod,\n\t\t\tbody: JSON.stringify(data),\n\t\t\theaders: {\n\t\t\t\t\"X-CSRF-Token\": this.csrfToken,\n\t\t\t\tAccept: \"text/vnd.turbo-stream.html\",\n\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t},\n\t\t}).then((r) => r);\n\n\t\treturn response;\n\t}\n\n\tget csrfToken() {\n\t\treturn document.querySelector(\"[name='csrf-token']\")?.content;\n\t}\n}\n\n//end\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tif (!this.element.value.startsWith(\"2\")) {\n\t\t\tthis.element.value = \"2\";\n\t\t}\n\t\tthis.element.addEventListener(\"input\", this.formatFincenId.bind(this));\n\t}\n\n\tformatFincenId() {\n\t\tconst alert = document.querySelector(\".company-fincen-id-alert\");\n\n\t\talert.classList.remove(\"hidden\");\n\n\t\tlet cleanedInput = this.element.value.replace(/\\D/g, \"\");\n\t\tif (cleanedInput.length === 0) {\n\t\t\tthis.element.value = \"2\";\n\t\t\treturn;\n\t\t}\n\n\t\t// this ensures the input always starts with \"2\":\n\t\tif (cleanedInput[0] !== \"2\") {\n\t\t\tcleanedInput = \"2\" + cleanedInput;\n\t\t}\n\n\t\tcleanedInput = cleanedInput.substring(0, 12);\n\t\tlet formattedFincenId = cleanedInput.replace(/^(\\d{4})(\\d{4})/, \"$1-$2-\");\n\t\tformattedFincenId = formattedFincenId.substring(0, 14);\n\n\t\tif (formattedFincenId.length === 14) {\n\t\t\talert.classList.add(\"hidden\");\n\t\t}\n\n\t\tthis.element.value = formattedFincenId;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"company-form--address-fields\"\nexport default class extends Controller {\n static targets = [\"countryField\", \"stateField\"]\n static values = { requiredFields: Boolean }\n\n connect() {\n this.initializeFields()\n }\n\n initializeFields() {\n this.init = true\n this.selectCountry()\n this.init = false\n }\n\n selectCountry() {\n switch (this.selectedCountryType) {\n case \"US\":\n this.enableStateField(true)\n break\n case \"Territory\":\n this.enableStateField(false)\n break\n default:\n this.enableStateField(true)\n break\n }\n }\n\n enableStateField(enable) {\n this.stateFieldTarget.disabled = !enable\n if (this.init === false) {\n this.stateFieldTarget.value = \"\"\n }\n if (this.requiredFieldsValue) {\n this.stateFieldTarget.required = enable\n }\n }\n\n get selectedCountryType() {\n return this.countryFieldTarget.selectedOptions[0].dataset.countryType\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['list', 'item', 'remove', 'template']\n\n add() {\n const item = this.templateTarget.content.cloneNode(true)\n this.listTarget.appendChild(item)\n }\n\n remove(event) {\n const index = this.removeTargets.findIndex(n => n === event.currentTarget)\n const item = this.itemTargets[index]\n item.remove()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\n// Connects to data-controller=\"company-form--formation-fields\"\nexport default class extends Controller {\n\tstatic targets = [\"countryField\", \"stateField\", \"tribeField\", \"otherTribeField\", \"foreignCountryAlert\"];\n\tstatic values = { otherTribeId: String, usTerritoryIds: Array, usId: Number };\n\n\tconnect() {\n\t\tthis.initializeFields();\n\t}\n\n\tinitializeFields() {\n\t\tif (this.countryFieldTarget.value === \"\" || this.usTerritoryIdsValue.includes(Number(this.countryFieldTarget.value))) {\n\t\t\treturn;\n\t\t} else if (this.usIdValue !== Number(this.countryFieldTarget.value)) {\n\t\t\tthis.foreignCountryAlertTarget.classList.remove(\"d-none\");\n\t\t}\n\n\t\tif (this.stateFieldTarget.value === \"\" && this.tribeFieldTarget.value === \"\") {\n\t\t\tthis.stateFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t\tthis.tribeFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t}\n\n\t\tif (this.stateFieldTarget.value !== \"\") {\n\t\t\tthis.stateFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t}\n\n\t\tif (this.tribeFieldTarget.value !== \"\") {\n\t\t\tthis.tribeFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t}\n\n\t\tif (this.tribeFieldTarget.value === this.otherTribeIdValue) {\n\t\t\tthis.otherTribeFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t}\n\t}\n\n\tselectCountry(e) {\n\t\tif (e.target.value === \"\" || this.usTerritoryIdsValue.includes(Number(e.target.value))) {\n\t\t\tthis.toggleFields({ showStateField: false, showTribeField: false, showOtherTribeField: false });\n\t\t} else {\n\t\t\tthis.toggleFields({ showStateField: true, showTribeField: true, showOtherTribeField: false });\n\t\t}\n\n\t\tif (e.target.value === \"\" || this.usTerritoryIdsValue.includes(Number(e.target.value)) || this.usIdValue === Number(e.target.value)) {\n\t\t\tthis.foreignCountryAlertTarget.classList.add(\"d-none\");\n\t\t} else {\n\t\t\tthis.foreignCountryAlertTarget.classList.remove(\"d-none\");\n\t\t}\n\t}\n\n\tselectState(e) {\n\t\tif (e.target.value === \"\") {\n\t\t\tthis.toggleFields({ showTribeField: true, showOtherTribeField: false });\n\t\t} else {\n\t\t\tthis.toggleFields({ showTribeField: false, showOtherTribeField: false });\n\t\t}\n\t}\n\n\tselectTribe(e) {\n\t\tif (e.target.value === \"\") {\n\t\t\tthis.toggleFields({ showStateField: true, showOtherTribeField: false });\n\t\t} else if (e.target.value === this.otherTribeIdValue) {\n\t\t\tthis.toggleFields({ showStateField: false, showOtherTribeField: true });\n\t\t} else {\n\t\t\tthis.toggleFields({ showStateField: false, showOtherTribeField: false });\n\t\t}\n\t}\n\n\ttoggleFields({ showStateField, showTribeField, showOtherTribeField }) {\n\t\tif (showStateField === true) {\n\t\t\tthis.stateFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t\tthis.stateFieldTarget.value = \"\";\n\t\t} else if (showStateField === false) {\n\t\t\tthis.stateFieldTarget.parentElement.classList.add(\"d-none\");\n\t\t\tthis.stateFieldTarget.value = \"\";\n\t\t}\n\n\t\tif (showTribeField === true) {\n\t\t\tthis.tribeFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t\tthis.tribeFieldTarget.value = \"\";\n\t\t} else if (showTribeField === false) {\n\t\t\tthis.tribeFieldTarget.parentElement.classList.add(\"d-none\");\n\t\t\tthis.tribeFieldTarget.value = \"\";\n\t\t}\n\n\t\tif (showOtherTribeField === true) {\n\t\t\tthis.otherTribeFieldTarget.parentElement.classList.remove(\"d-none\");\n\t\t\tthis.otherTribeFieldTarget.value = \"\";\n\t\t} else if (showOtherTribeField === false) {\n\t\t\tthis.otherTribeFieldTarget.parentElement.classList.add(\"d-none\");\n\t\t\tthis.otherTribeFieldTarget.value = \"\";\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tthis.element.addEventListener(\"input\", this.formatCompanyName.bind(this));\n\t}\n\n\tformatCompanyName() {\n\t\t// replaces characters that are not letters, numbers, or the following special characters: !@#$%^&',.?+-_~\n\t\tlet cleanedInput = this.element.value.replace(/[^a-zA-Z0-9\\s!@#$%^&',.\\/?|+\\-_~]/g, \"\");\n\t\tthis.element.value = cleanedInput;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"formationCountry\",\n \"formationCountryNoteForNonUsTerritory\",\n \"orgstate\",\n ]\n\n static values = {\n usTerritoryIds: Array,\n }\n\n connect() {\n this.updateFormationCountryRequirements()\n }\n\n updateFormationCountryRequirements() {\n const isUsTerritory = this.isFormationCountryUsTerritory()\n\n this.formationCountryNoteForNonUsTerritoryTarget.classList.toggle(\n \"hidden\",\n isUsTerritory\n )\n this.orgstateTarget.required = !isUsTerritory\n }\n\n isFormationCountryUsTerritory() {\n return this.usTerritoryIdsValue.some(\n (id) => id.toString() === this.formationCountryTarget.value\n )\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"taxIdTypeField\", \"einField\", \"ssnField\", \"foreignField\", \"foreignCountryField\"]\n\n connect() {\n this.currentType = this.taxIdTypeFieldTarget.value\n this.show(this.currentType)\n }\n\n selectTaxIdType(event) {\n this.currentType = event.target.value\n this.show(this.currentType)\n }\n\n show(type) {\n if (type === \"ein\") {\n this.einFieldTarget.parentElement.classList.remove(\"d-none\")\n this.ssnFieldTarget.parentElement.classList.add(\"d-none\")\n this.foreignFieldTarget.parentElement.classList.add(\"d-none\")\n this.foreignCountryFieldTarget.parentElement.classList.add(\"d-none\")\n this.ssnFieldTarget.value = \"\"\n this.foreignFieldTarget.value = \"\"\n this.foreignCountryFieldTarget.value = \"\"\n } else if (type === \"ssn_itin\") {\n this.einFieldTarget.parentElement.classList.add(\"d-none\")\n this.ssnFieldTarget.parentElement.classList.remove(\"d-none\")\n this.foreignFieldTarget.parentElement.classList.add(\"d-none\")\n this.foreignCountryFieldTarget.parentElement.classList.add(\"d-none\")\n this.einFieldTarget.value = \"\"\n this.foreignFieldTarget.value = \"\"\n this.foreignCountryFieldTarget.value = \"\"\n } else if (type === \"foreign\") {\n this.einFieldTarget.parentElement.classList.add(\"d-none\")\n this.ssnFieldTarget.parentElement.classList.add(\"d-none\")\n this.foreignFieldTarget.parentElement.classList.remove(\"d-none\")\n this.foreignCountryFieldTarget.parentElement.classList.remove(\"d-none\")\n this.einFieldTarget.value = \"\"\n this.ssnFieldTarget.value = \"\"\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"successInput\", \"boirIdInput\", \"trackingIdInput\", \"fincenIdInput\", \"filingErrorsInput\", \"boirResultInput\"];\n\n\tadjustRequiredFields(event) {\n\t\tconst successRequired = document.querySelectorAll(\".success-required\");\n\t\tconst errorRequired = document.querySelector(\".error-required\");\n\n\t\tif (event.target.checked) {\n\t\t\tthis.boirIdInputTarget.required = true;\n\t\t\tthis.trackingIdInputTarget.required = true;\n\t\t\tthis.fincenIdInputTarget.required = true;\n\t\t\tthis.boirResultInputTarget.required = true;\n\t\t\tthis.filingErrorsInputTarget.required = false;\n\n\t\t\tsuccessRequired.forEach((element) => {\n\t\t\t\telement.classList.remove(\"hidden\");\n\t\t\t});\n\t\t\terrorRequired.classList.add(\"hidden\");\n\t\t} else {\n\t\t\tthis.filingErrorsInputTarget.required = true;\n\t\t\tthis.boirIdInputTarget.required = false;\n\t\t\tthis.trackingIdInputTarget.required = false;\n\t\t\tthis.fincenIdInputTarget.required = false;\n\t\t\tthis.boirResultInputTarget.required = false;\n\n\t\t\tsuccessRequired.forEach((element) => {\n\t\t\t\telement.classList.add(\"hidden\");\n\t\t\t});\n\t\t\terrorRequired.classList.remove(\"hidden\");\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n/**\n * @example\n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n */\nexport default class extends Controller {\n static outlets = [\"state-select\"]\n\n updateStateSelect() {\n this.stateSelectOutlets.forEach(n => n.updateOptions())\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"countrySelect\", \"stateSelect\", \"zipcodeInput\"];\n\n\tconnect() {\n\t\tthis.disableStateSelect(this.countrySelectTarget.value);\n\t}\n\n\tselectCountry(event) {\n\t\tconst countryId = event.target.value;\n\n\t\tthis.disableStateSelect(countryId);\n\t}\n\n\tdisableStateSelect(countryId) {\n\t\tconst options = this.stateSelectTarget.querySelectorAll(`option[data-country-id=\"${countryId}\"]`);\n\t\tconst requiredLabel = document.getElementById(\"state-required-label\");\n\t\tconst requiredworkLabel = document.getElementById(\"work-state-label\");\n\n\t\tif (options.length == 0) {\n\t\t\tthis.stateSelectTarget.value = \"\";\n\t\t\tthis.stateSelectTarget.setAttribute(\"disabled\", true);\n\t\t\trequiredLabel?.classList.add(\"hidden\");\n\t\t\trequiredworkLabel?.classList.add(\"hidden\");\n\t\t} else {\n\t\t\tthis.stateSelectTarget.removeAttribute(\"disabled\");\n\t\t\trequiredLabel?.classList.remove(\"hidden\");\n\t\t\trequiredworkLabel?.classList.remove(\"hidden\");\n\t\t}\n\t}\n\n\tformatZipcode() {\n\t\tconst countryId = this.countrySelectTarget.value;\n\t\tconst zipcode = this.zipcodeInputTarget.value;\n\n\t\t// 233 is the country ID for United States\n\t\tif (countryId == 233) {\n\t\t\tthis.zipcodeInputTarget.setAttribute(\"maxlength\", 5);\n\t\t\tthis.zipcodeInputTarget.value = zipcode.replace(/\\D/g, \"\").substring(0, 5);\n\t\t} else {\n\t\t\tthis.zipcodeInputTarget.setAttribute(\"maxlength\", 9);\n\t\t\tthis.zipcodeInputTarget.value = zipcode.replace(/\\W/g, \"\").substring(0, 9);\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tthis.element.addEventListener(\"change\", this.showDateRangeField.bind(this));\n\n\t\tthis.startDateInput = document.querySelector('[name=\"start_date\"]');\n\t\tthis.endDateInput = document.querySelector('[name=\"end_date\"]');\n\t\tthis.errorField = document.getElementById(\"date-range-error\");\n\t\tthis.submitButton = document.getElementById(\"custom-date-submit-btn\");\n\n\t\tthis.startDateInput.addEventListener(\"input\", this.validateDates.bind(this));\n\t\tthis.endDateInput.addEventListener(\"input\", this.validateDates.bind(this));\n\n\t\tthis.validateDates();\n\t}\n\n\tshowDateRangeField() {\n\t\tlet dateRangeField = document.getElementById(\"date-range-field\");\n\n\t\tif (!dateRangeField) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.element.value === \"custom\") {\n\t\t\tdateRangeField.classList.remove(\"hidden\");\n\t\t} else {\n\t\t\tdateRangeField.classList.add(\"hidden\");\n\t\t\tthis.clearError();\n\t\t\tthis.enableSubmit();\n\t\t}\n\t}\n\n\tvalidateDates() {\n\t\tconst startDate = new Date(this.startDateInput.value);\n\t\tconst endDate = new Date(this.endDateInput.value);\n\n\t\tif (endDate <= startDate) {\n\t\t\tthis.showError(\"End date must be greater than start date.\");\n\t\t\tthis.disableSubmit();\n\t\t} else {\n\t\t\tthis.clearError();\n\t\t\tthis.enableSubmit();\n\t\t}\n\t}\n\n\tshowError(message) {\n\t\tthis.errorField.textContent = message;\n\t\tthis.errorField.style.display = \"block\";\n\t}\n\n\tclearError() {\n\t\tthis.errorField.style.display = \"none\";\n\t\tthis.errorField.textContent = \"\";\n\t}\n\n\tdisableSubmit() {\n\t\tthis.submitButton.disabled = true;\n\t}\n\n\tenableSubmit() {\n\t\tthis.submitButton.disabled = false;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"documentType\"];\n\n\tconnect() {\n\t\tthis.documentTypeChanged();\n\t}\n\n\tdocumentTypeChanged(event) {\n\t\tconst issuingState = document.querySelector(\"#user_user_property_attributes_issuing_state_id\");\n\t\tconst issuingStateLabel = document.querySelector(\"#issuing_state_label\");\n\t\tconst issuingCountry = document.querySelector(\"#user_user_property_attributes_issuing_country_id\");\n\t\tconst issuingCountryLabel = document.querySelector(\"#issuing_country_label\");\n\t\tconst issuingOther = document.querySelector(\"#user_user_property_attributes_issuing_other_id\");\n\t\tconst issuingOtherLabel = document.querySelector(\"#issuing_other_label\");\n\t\tconst issuingText = document.querySelector(\"#user_user_property_attributes_issuing_other_text\");\n\t\tconst issuingOtherTextLabel = document.querySelector(\"#issuing_text_label\");\n\n\t\tissuingState.classList.add(\"hidden\");\n\t\tissuingStateLabel.classList.add(\"hidden\");\n\t\tissuingCountry.classList.add(\"hidden\");\n\t\tissuingCountryLabel.classList.add(\"hidden\");\n\t\tissuingOther.classList.add(\"hidden\");\n\t\tissuingOtherLabel.classList.add(\"hidden\");\n\t\tissuingText.classList.add(\"hidden\");\n\t\tissuingOtherTextLabel.classList.add(\"hidden\");\n\n\t\tif (this.documentTypeTarget.value == 1) {\n\t\t\tissuingState.classList.remove(\"hidden\");\n\t\t\tissuingStateLabel.classList.remove(\"hidden\");\n\t\t\tissuingCountry.value = \"233\";\n\t\t} else if (this.documentTypeTarget.value == 2) {\n\t\t\tissuingCountry.value = \"233\";\n\t\t} else if (this.documentTypeTarget.value == 3) {\n\t\t\tissuingCountry.value = \"\";\n\t\t\tissuingCountryLabel.classList.remove(\"hidden\");\n\t\t\tissuingCountry.classList.remove(\"hidden\");\n\t\t} else if (this.documentTypeTarget.value == 4) {\n\t\t\tissuingCountry.value = \"233\";\n\t\t\tissuingCountry.classList.remove(\"hidden\");\n\t\t\tissuingCountryLabel.classList.remove(\"hidden\");\n\t\t\tissuingState.classList.remove(\"hidden\");\n\t\t\tissuingStateLabel.classList.remove(\"hidden\");\n\t\t\tissuingOther.classList.remove(\"hidden\");\n\t\t\tissuingOtherLabel.classList.remove(\"hidden\");\n\t\t\tissuingText.classList.remove(\"hidden\");\n\t\t\tissuingOtherTextLabel.classList.remove(\"hidden\");\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tthis.element.addEventListener(\"input\", this.formatEin.bind(this));\n\t}\n\n\tformatEin() {\n\t\tlet cleanedInput = this.element.value.replace(/\\D/g, \"\");\n\t\t// Format the EIN with a dash after the second number\n\t\tlet formattedEin = cleanedInput.replace(/^(\\d{2})/, \"$1-\");\n\t\tformattedEin = formattedEin.substring(0, 10);\n\n\t\tthis.element.value = formattedEin;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tthis.element.addEventListener(\"input\", this.formatFincenId.bind(this));\n\t}\n\n\tformatFincenId() {\n\t\tconst addBOorOfficerDiv = document.querySelector(\"#member-by-fincen-id\");\n\t\tconst addBOorOfficerSectionIsVisible = addBOorOfficerDiv?.classList.contains(\"show\");\n\t\tconst alert = addBOorOfficerSectionIsVisible ? document.querySelector(\".fincen-id-alert-bo\") : document.querySelector(\".fincen-id-alert\");\n\n\t\talert?.classList.remove(\"hidden\");\n\n\t\tlet cleanedInput = this.element.value.replace(/\\D/g, \"\");\n\t\tif (cleanedInput.length === 0) {\n\t\t\tthis.element.value = \"\";\n\t\t\treturn;\n\t\t}\n\n\t\tcleanedInput = cleanedInput.substring(0, 12);\n\t\tlet formattedFincenId = cleanedInput.replace(/^(\\d{4})(\\d{4})/, \"$1-$2-\");\n\t\tformattedFincenId = formattedFincenId.substring(0, 14);\n\n\t\tif (formattedFincenId.length === 14) {\n\t\t\talert?.classList.add(\"hidden\");\n\t\t}\n\n\t\tthis.element.value = formattedFincenId;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce } from 'lodash-es'\n\nexport default class extends Controller {\n connect () {\n this.form = this.element\n }\n\n submit () {\n if (this.form.requestSubmit) {\n this.form.requestSubmit()\n } else {\n this.form.dispatchEvent(new CustomEvent('submit', { bubbles: true }))\n }\n }\n\n submitWithDebounce = debounce(this.submit, 300)\n\n submitOnEnter (event) {\n if (event.keyCode == 13) {\n this.submitWithDebounce()\n }\n }\n\n submitWithDisabledFields (e) {\n e.preventDefault()\n var persistedDisabledFields = this.disabledFields\n // enable disabled fields to allow them to be submitted\n persistedDisabledFields.forEach((element) => element.disabled = false)\n this.submit()\n // disable fields again if submission fails\n persistedDisabledFields.forEach((element) => element.disabled = true)\n }\n\n get disabledFields() {\n return this.form.querySelectorAll(\"input[disabled], select[disabled]\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"beforeCta\", \"afterCta\", \"formationDate\"];\n\n\tconnect() {\n\t\tthis.beforeCtaTarget.addEventListener(\"change\", this.toggleCheckbox.bind(this, \"before\"));\n\t\tthis.afterCtaTarget.addEventListener(\"change\", this.toggleCheckbox.bind(this, \"after\"));\n\t\tthis.updateFormationDateField();\n\t}\n\n\ttoggleCheckbox(selected) {\n\t\tif (selected === \"before\") {\n\t\t\tif (this.beforeCtaTarget.checked) {\n\t\t\t\tthis.afterCtaTarget.checked = false;\n\t\t\t}\n\t\t} else if (selected === \"after\") {\n\t\t\tif (this.afterCtaTarget.checked) {\n\t\t\t\tthis.beforeCtaTarget.checked = false;\n\t\t\t}\n\t\t}\n\t\tthis.updateFormationDateField();\n\t}\n\n\tupdateFormationDateField() {\n\t\tconst isBeforeChecked = this.beforeCtaTarget.checked;\n\t\tconst isAfterChecked = this.afterCtaTarget.checked;\n\n\t\tif (isBeforeChecked || isAfterChecked) {\n\t\t\tthis.formationDateTarget.disabled = true;\n\t\t} else {\n\t\t\tthis.formationDateTarget.disabled = false;\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"gtag\"\nexport default class extends Controller {\n sendEvent({ params: { event, payload } }) {\n if (!this.isProdEnvironment) return\n\n event.split(\",\").forEach(event_name => {\n if (event_name === \"\") return\n gtag(\"event\", event_name, payload)\n })\n }\n\n get isProdEnvironment() {\n return document.head.querySelector(\"meta[name=rails_env]\").content === \"production\"\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"kindField\", \"guideForField\", \"urlField\", \"fileField\", \"externalUrlField\", \"slugInput\"];\n\n\tconnect() {\n\t\tconst mediaFormat = document.querySelector(\"input[name='guide[media_format]']:checked\").value;\n\t\tthis.showAndHideGuideFields(mediaFormat);\n\t}\n\n\tchangeMediaFormat(event) {\n\t\tconst mediaFormat = event.target.value;\n\t\tthis.showAndHideGuideFields(mediaFormat);\n\t}\n\n\tshowAndHideGuideFields(mediaFormat) {\n\t\tif (mediaFormat === \"url\") {\n\t\t\tthis.kindFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.fileFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.urlFieldTarget.classList.remove(\"hidden\");\n\t\t\tthis.guideForFieldTarget.classList.remove(\"hidden\");\n\t\t\tthis.externalUrlFieldTarget.classList.add(\"hidden\");\n\t\t} else if (mediaFormat === \"pdf\") {\n\t\t\tthis.kindFieldTarget.classList.remove(\"hidden\");\n\t\t\tthis.fileFieldTarget.classList.remove(\"hidden\");\n\t\t\tthis.urlFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.guideForFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.externalUrlFieldTarget.classList.add(\"hidden\");\n\t\t} else if (mediaFormat === \"external_link\") {\n\t\t\tthis.kindFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.fileFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.urlFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.guideForFieldTarget.classList.add(\"hidden\");\n\t\t\tthis.externalUrlFieldTarget.classList.remove(\"hidden\");\n\t\t}\n\t}\n\n\thandleSlugChange(event) {\n\t\tconst alert = document.querySelector(\".slug-alert\");\n\t\tlet value = event.target.value;\n\t\talert?.classList.remove(\"hidden\");\n\n\t\t// Convert to lowercase and replace invalid characters\n\t\tvalue = value.toLowerCase().replace(/[^a-z0-9\\-]/g, \"\");\n\n\t\t// Trim the slug to 32 characters if necessary\n\t\tif (value.length > 32) {\n\t\t\tvalue = value.substring(0, 32);\n\t\t\talert.classList.add(\"hidden\"); // Hide alert if within limit\n\t\t}\n\n\t\t// Update the slug field with the formatted value\n\t\tthis.slugInputTarget.value = value;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\n// Connects to data-controller=\"id-form\"\nexport default class extends Controller {\n\tstatic targets = [\"documentTypeField\", \"countryField\", \"stateField\", \"tribeField\", \"otherField\"];\n\tstatic values = { requiredFields: Boolean };\n\n\tconnect() {\n\t\tthis.initializeFields();\n\t}\n\n\tinitializeFields() {\n\t\t// hide irrelevant country options\n\t\tswitch (this.selectedDocumentType) {\n\t\t\tcase \"StateDL\":\n\t\t\tcase \"StateLocalTribeID\":\n\t\t\t\tthis.foreignCountries.forEach((element) => (element.hidden = true));\n\t\t\tcase \"Foreign\":\n\t\t\t\tthis.usCountries.forEach((element) => (element.hidden = true));\n\t\t\tcase \"USPassport\":\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// enforce us passport\n\t\tif (this.selectedDocumentType === \"USPassport\") {\n\t\t\tthis.countryFieldTarget.disabled = true;\n\t\t\tthis.countryFieldTarget.value = this.usId;\n\t\t}\n\n\t\t// enable if fields are set\n\t\tif (this.stateFieldTarget.value !== \"\") {\n\t\t\tthis.stateFieldTarget.disabled = false;\n\t\t}\n\t\tif (this.tribeFieldTarget.value !== \"\") {\n\t\t\tthis.tribeFieldTarget.disabled = false;\n\t\t}\n\t\tif (this.otherFieldTarget.value !== \"\") {\n\t\t\tthis.otherFieldTarget.disabled = false;\n\t\t}\n\t}\n\n\tselectDocumentType() {\n\t\tswitch (this.selectedDocumentType) {\n\t\t\tcase \"StateDL\":\n\t\t\t\tthis.enableCountryField(true, { us: true, foreign: false });\n\t\t\t\tthis.enableStateField(true);\n\t\t\t\tthis.enableTribeField(false);\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t\tcase \"StateLocalTribeID\":\n\t\t\t\tthis.enableCountryField(true, { us: true, foreign: false });\n\t\t\t\tthis.enableStateField(true);\n\t\t\t\tthis.enableTribeField(true);\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t\tcase \"USPassport\":\n\t\t\t\tthis.enableCountryField(false);\n\t\t\t\tthis.countryFieldTarget.value = this.usId;\n\t\t\t\tthis.enableStateField(false);\n\t\t\t\tthis.enableTribeField(false);\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t\tcase \"Foreign\":\n\t\t\t\tthis.enableCountryField(true, { us: false, foreign: true });\n\t\t\t\tthis.enableStateField(false);\n\t\t\t\tthis.enableTribeField(false);\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis.enableCountryField(true, { us: true, foreign: true });\n\t\t\t\tthis.enableStateField(true);\n\t\t\t\tthis.enableTribeField(false);\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tselectCountry() {\n\t\tswitch (this.selectedCountryType) {\n\t\t\tcase \"US\":\n\t\t\t\tthis.enableStateField(true);\n\t\t\t\tthis.enableTribeField(this.selectedDocumentType === \"StateLocalTribeID\");\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t\tcase \"Territory\":\n\t\t\tcase \"Foreign\":\n\t\t\t\tthis.enableStateField(false);\n\t\t\t\tthis.enableTribeField(false);\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis.enableStateField(true);\n\t\t\t\tthis.enableTribeField(this.selectedDocumentType === \"StateLocalTribeID\");\n\t\t\t\tthis.enableOtherField(false);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tselectState() {\n\t\tif (this.selectedDocumentType === \"StateLocalTribeID\") {\n\t\t\tswitch (this.stateFieldTarget.value) {\n\t\t\t\tcase \"\":\n\t\t\t\t\tthis.enableTribeField(true);\n\t\t\t\t\tthis.enableOtherField(false);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis.enableTribeField(false);\n\t\t\t\t\tthis.enableOtherField(false);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tselectTribe() {\n\t\tif (this.selectedTribeElement.innerText.includes(\"Other\")) {\n\t\t\tthis.enableStateField(false);\n\t\t\tthis.enableOtherField(true);\n\t\t} else if (this.selectedTribeElement.value === \"\") {\n\t\t\tthis.enableStateField(true);\n\t\t\tthis.enableOtherField(false);\n\t\t} else {\n\t\t\tthis.enableStateField(false);\n\t\t\tthis.enableOtherField(false);\n\t\t}\n\t}\n\n\tenableCountryField(enable, { us = true, foreign = true } = {}) {\n\t\tthis.countryFieldTarget.disabled = !enable;\n\t\tthis.countryFieldTarget.value = \"\";\n\t\tthis.usCountries.forEach((element) => (element.hidden = !us));\n\t\tthis.foreignCountries.forEach((element) => (element.hidden = !foreign));\n\t\tthis.countryFieldTarget.closest(\".form-group\").classList.remove(\"has-error\");\n\t\tconst errorMessageElement = this.countryFieldTarget.closest(\".form-group\").querySelector(\".error-message\");\n\t\tif (errorMessageElement) {\n\t\t\terrorMessageElement.textContent = \"\";\n\t\t}\n\t}\n\n\tenableStateField(enable) {\n\t\tthis.stateFieldTarget.disabled = !enable;\n\t\tthis.stateFieldTarget.value = \"\";\n\t\tthis.stateFieldTarget.closest(\".form-group\").classList.remove(\"has-error\");\n\t\tconst errorMessageElement = this.stateFieldTarget.closest(\".form-group\").querySelector(\".error-message\");\n\t\tif (errorMessageElement) {\n\t\t\terrorMessageElement.textContent = \"\";\n\t\t}\n\t\tif (this.requiredFieldsValue) {\n\t\t\tconst stateFieldLabel = document.getElementById(\"state-field-label\");\n\t\t\tif (enable) {\n\t\t\t\tstateFieldLabel.classList.remove(\"hidden\");\n\t\t\t} else {\n\t\t\t\tstateFieldLabel.classList.add(\"hidden\");\n\t\t\t}\n\t\t}\n\t}\n\n\tenableTribeField(enable) {\n\t\tthis.tribeFieldTarget.disabled = !enable;\n\t\tthis.tribeFieldTarget.value = \"\";\n\t\tthis.tribeFieldTarget.closest(\".form-group\").classList.remove(\"has-error\");\n\t\tconst errorMessageElement = this.tribeFieldTarget.closest(\".form-group\").querySelector(\".error-message\");\n\t\tif (errorMessageElement) {\n\t\t\terrorMessageElement.textContent = \"\";\n\t\t}\n\t\tif (this.requiredFieldsValue) {\n\t\t\tconst tribeFieldLabel = document.getElementById(\"tribe-field-label\");\n\t\t\tif (enable) {\n\t\t\t\ttribeFieldLabel.classList.remove(\"hidden\");\n\t\t\t} else {\n\t\t\t\ttribeFieldLabel.classList.add(\"hidden\");\n\t\t\t}\n\t\t}\n\t}\n\n\tenableOtherField(enable) {\n\t\tthis.otherFieldTarget.disabled = !enable;\n\t\tthis.otherFieldTarget.value = \"\";\n\t\tthis.otherFieldTarget.closest(\".form-group\").classList.remove(\"has-error\");\n\t\tconst errorMessageElement = this.otherFieldTarget.closest(\".form-group\").querySelector(\".error-message\");\n\t\tif (errorMessageElement) {\n\t\t\terrorMessageElement.textContent = \"\";\n\t\t}\n\t\tif (this.requiredFieldsValue) {\n\t\t\tconst otherFieldLabel = document.getElementById(\"other-field-label\");\n\t\t\tif (enable) {\n\t\t\t\totherFieldLabel.classList.remove(\"hidden\");\n\t\t\t} else {\n\t\t\t\totherFieldLabel.classList.add(\"hidden\");\n\t\t\t}\n\t\t}\n\t}\n\n\tget selectedDocumentType() {\n\t\treturn this.documentTypeFieldTarget.selectedOptions[0].dataset.documentType;\n\t}\n\n\tget selectedCountryType() {\n\t\treturn this.countryFieldTarget.selectedOptions[0].dataset.countryType;\n\t}\n\n\tget selectedTribeElement() {\n\t\treturn this.tribeFieldTarget.selectedOptions[0];\n\t}\n\n\tget usId() {\n\t\treturn this.countryFieldTarget.querySelector(\"[data-country-type='US']\").value;\n\t}\n\n\tget usCountries() {\n\t\treturn this.countryFieldTarget.querySelectorAll(\"[data-country-type='US'], [data-country-type='Territory']\");\n\t}\n\n\tget foreignCountries() {\n\t\treturn this.countryFieldTarget.querySelectorAll(\"[data-country-type='Foreign']\");\n\t}\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['output', 'input']\n\n readURL() {\n const input = this.inputTarget\n const output = this.outputTarget\n const [file] = input.files\n\n if (file) {\n const reader = new FileReader()\n if (file.type === 'application/pdf') {\n reader.onload = async () => {\n const typedArray = new Uint8Array(reader.result)\n const loadingTask = pdfjsLib.getDocument(typedArray)\n const pdf = await loadingTask.promise\n const page = await pdf.getPage(1)\n\n const scale = 1\n const viewport = page.getViewport({ scale })\n // Support HiDPI-screens.\n const outputScale = window.devicePixelRatio || 1\n\n //\n // Prepare canvas using PDF page dimensions\n //\n const canvas = document.createElement('canvas')\n const context = canvas.getContext('2d')\n\n canvas.width = Math.floor(viewport.width * outputScale)\n canvas.height = Math.floor(viewport.height * outputScale)\n\n const transform =\n outputScale !== 1 ? [outputScale, 0, 0, outputScale, 0, 0] : null\n\n //\n // Render PDF page into canvas context\n //\n const renderContext = {\n canvasContext: context,\n transform,\n viewport,\n }\n await page.render(renderContext).promise\n canvas.toBlob((blob) => {\n const url = URL.createObjectURL(blob)\n output.onload = () => {\n URL.revokeObjectURL(url)\n }\n output.dataset.originalSrc ??= output.getAttribute('src') ?? ''\n output.src = url\n })\n }\n reader.readAsArrayBuffer(file)\n } else {\n reader.onload = () => {\n output.dataset.originalSrc ??= output.getAttribute('src') ?? ''\n output.src = reader.result\n }\n\n reader.readAsDataURL(file)\n }\n } else {\n output.src = output.dataset.originalSrc ?? ''\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tconnect() {\n\t\tconst addressType = document.querySelector(\"input[name='user_properties[address_type]']:checked\").value;\n\t\tthis.showAndHideAddresses(addressType);\n\t}\n\n\tchangeAddressType(event) {\n\t\tconst addressType = event.target.value;\n\t\tthis.showAndHideAddresses(addressType);\n\t}\n\n\tshowAndHideAddresses(addressType) {\n\t\tconst homeSection = document.getElementById(\"home_address\");\n\t\tconst workSection = document.getElementById(\"work_address\");\n\n\t\tconst mailingRequiredFields = document.querySelectorAll(\".mailing-required-field\");\n\t\tconst workRequiredFields = document.querySelectorAll(\".work-required-field\");\n\n\t\tif (addressType === \"home\") {\n\t\t\thomeSection.classList.remove(\"hidden\");\n\t\t\tworkSection?.classList.add(\"hidden\");\n\n\t\t\tmailingRequiredFields.forEach((element) => {\n\t\t\t\telement.required = true;\n\t\t\t});\n\n\t\t\tworkRequiredFields.forEach((element) => {\n\t\t\t\telement.required = false;\n\t\t\t});\n\t\t} else if (addressType === \"work\") {\n\t\t\thomeSection.classList.add(\"hidden\");\n\t\t\tworkSection?.classList.remove(\"hidden\");\n\n\t\t\tmailingRequiredFields.forEach((element) => {\n\t\t\t\telement.required = false;\n\t\t\t});\n\n\t\t\tworkRequiredFields.forEach((element) => {\n\t\t\t\telement.required = true;\n\t\t\t});\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"input-formatter\"\nexport default class extends Controller {\n formatSSN(e) {\n // Only allow digits\n let formattedSSN = e.target.value.replace(/\\D/g, \"\")\n // Limit the length of the string to 9 characters\n formattedSSN = formattedSSN.substring(0, 9)\n e.target.value = formattedSSN\n }\n\n formatForeign(e) {\n // Only allow alphanumeric\n let formattedForeign = e.target.value.replace(/[^a-zA-Z0-9]/g, \"\")\n // Limit the length of the string to 25 characters\n formattedForeign = formattedForeign.substring(0, 25)\n e.target.value = formattedForeign\n }\n}\n","import { IntroController } from \"./intro_controller\"\n\nexport default class extends IntroController {\n setDontShowAgainCookie() {\n this.intro.setOption(\"dontShowAgainCookie\", `introjs-dontShowAgain-companies-${this.userIdValue}`)\n }\n\n addSteps() {\n this.intro.addSteps([\n {\n intro: \"Welcome to the My Companies page.\\\n Here you can view all the companies you are associated with.\\\n If you want to view the complete guide to working with companies please see the following document:\\\n Company Admin Handbook\"\n },\n {\n element: \".tab-menu\",\n intro: \"You can switch between your companies and invitations using these tabs.\"\n },\n {\n element: \"a.float-right\",\n intro: \"You can add a new company by using this button.\"\n },\n {\n element: \"thead\",\n intro: \"In this table you can see all the companies you are associated with including their name, type, state of formation, your roles, and the filing due date.\\\n You can click on a specific company to view this company's details, add new members, and manage existing members.\"\n },\n {\n element: \"input[type='search']\",\n intro: \"You can search for your companies by name, reference id or file number by entering information here and pressing the Enter key.\"\n },\n {\n element: \"a.sort_link\",\n intro: \"You can also sort the companies by name, company type, and organization state by using these buttons.\"\n },\n {\n element: \"#start-intro\",\n title: \"Thats it!\",\n intro: \"You can restart this walkthrough any time if you need to revisit this information.\"\n }\n ])\n }\n}\n","import { IntroController } from \"./intro_controller\"\n\nexport default class extends IntroController {\n setDontShowAgainCookie() {\n this.intro.setOption(\"dontShowAgainCookie\", `introjs-dontShowAgain-company-${this.userIdValue}`)\n }\n\n addSteps() {\n this.intro.addSteps([\n {\n title: \"Welcome to FinCEN Report\",\n intro: \"Let's get started with a quick introduction to your company page.\\\n Each company you are a member of has a page like this one.\"\n },\n {\n element: \".company-action-buttons\",\n title: \"Important Actions\",\n intro: \"Use these buttons to invite new members, edit the company information or leave the company.\"\n },\n {\n element: \".tab-menu\",\n title: \"Sections of your Company\",\n intro: \"Use these buttons to look at each section of the company information.\\\n The default page is General Information, you can also access Billing, Members and Pending Invitations.\"\n },\n {\n element: \".status_information .card-header\",\n title: \"Company Status\",\n intro: \"This section shows the status of your company.\\\n If there are any issues that prevent your company from filing you will see the details here.\\\n Once all warnings are resolved you can file a beneficial ownership report.\"\n },\n {\n element: \"#previous-filings\",\n title: \"Your Previous Filings\",\n intro: \"This section shows all of the beneficial ownership reports that have been filed for this company.\\\n You can view the details of each report here.\"\n },\n {\n element: \"#start-intro\",\n title: \"Thats it!\",\n intro: \"You can restart this introduction any time if you need to revisit these hints.\"\n }\n ])\n }\n}\n","import { IntroController } from \"./intro_controller\"\n\nexport default class extends IntroController {\n setDontShowAgainCookie() {\n this.intro.setOption(\"dontShowAgainCookie\", `introjs-dontShowAgain-dashboard-${this.userIdValue}`)\n }\n\n addSteps() {\n // If the user is on a mobile device, toggle the hamburger menu when the user navigates the intro\n this.toggleHamburgerMenu()\n\n this.intro.addStep({\n title: \"Welcome to FinCEN Report\",\n intro: \"Let's get started with a quick introduction to your dashboard.\"\n })\n\n if (this.isMobile) {\n this.intro.addStep({\n element: \"#hamburger\",\n title: \"The Menu\",\n intro: \"Use the hamburger menu to navigate the dashboard.\"\n })\n }\n\n this.intro.addSteps([\n {\n element: `${this.navId} #my-info`,\n title: \"Personal Information & Identifying Documents\",\n intro: \"Provide personal contact information that will be used in all of your reports for all of your companies.\\\n Upload the appropriate identifying documents to verify your identity.\\\n These documents will be submitted with your beneficial ownership report(s).\"\n },\n {\n element: `${this.navId} #my-companies`,\n title: \"Your First Company\",\n intro: \"Set up or join your first company.\\\n After you have setup or joined a company you or the admin of the company can file a beneficial ownership report.\"\n },\n {\n element: \"#start-intro\",\n title: \"Thats it!\",\n intro: \"You can restart this introduction any time if you need to revisit these three quick steps.\"\n }\n ])\n }\n\n toggleHamburgerMenu() {\n if (this.isMobile) {\n this.intro.onbeforechange((element) => {\n if (element.closest(\"#myLinks\")?.checkVisibility() === false) {\n document.querySelector(\"#hamburger\").click()\n } else if (document.querySelector(\"#myLinks\").checkVisibility() && element.closest(\"#myLinks\") === null) {\n document.querySelector(\"#hamburger\").click()\n }\n })\n }\n }\n\n get isMobile() {\n return document.querySelector(\".topnav\").checkVisibility()\n }\n\n get navId() {\n return this.isMobile ? \".topnav\" : \"#sidebar\"\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport class IntroController extends Controller {\n static values = { userId: Number, disableAutoStart: Boolean }\n\n connect() {\n if (this.isTestEnvironment) return\n this.intro = introJs()\n this.intro.setOption(\"dontShowAgain\", true)\n this.setDontShowAgainCookie()\n this.addSteps()\n this.autoStart()\n }\n\n autoStart() {\n if (this.disableAutoStartValue === true) return\n this.intro.start()\n }\n\n start() {\n if (this.isTestEnvironment) return\n this.intro.setOption(\"dontShowAgain\", false)\n this.intro.start()\n }\n\n get isTestEnvironment() {\n return document.head.querySelector(\"meta[name=rails_env]\").content === \"test\"\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { Modal } from 'bootstrap'\n\nexport default class extends Controller {\n static targets = [\"modal\", \"dialog\", \"title\", \"body\", \"autohide\", \"show\"]\n\n connect() {\n this.modal = new Modal(this.modalTarget, {})\n }\n\n open(event) {\n event.preventDefault()\n event.stopPropagation()\n\n if (event.currentTarget.dataset.title !== undefined) {\n this.titleTarget.textContent = event.currentTarget.dataset.title\n } else {\n this.titleTarget.textContent = event.currentTarget.textContent\n }\n\n if (event.currentTarget.dataset.modalSize !== undefined) {\n this.dialogTarget.classList.remove(\"modal-lg\")\n this.dialogTarget.classList.add(event.currentTarget.dataset.modalSize)\n }\n\n fetch(event.currentTarget.href)\n .then(response => response.text())\n .then(html => {\n this.bodyTarget.innerHTML = html\n this.modal.show()\n })\n }\n\n hide() {\n this.modal.hide()\n }\n\n autohideTargetConnected() {\n this.hide()\n }\n\n showTargetConnected(target) {\n if (target.dataset.title !== undefined) {\n this.titleTarget.textContent = target.dataset.title\n }\n\n if (target.dataset.url !== undefined) {\n fetch(target.dataset.url)\n .then(response => response.text())\n .then(html => {\n this.bodyTarget.innerHTML = html\n this.modal.show()\n })\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"documentTypeField\", \"countryField\", \"stateField\", \"tribeField\", \"otherTribeField\"];\n\tstatic values = { otherTribeId: String, usTerritoryIds: Array, usId: Number };\n\n\tconnect() {\n\t\tthis.initializeFields();\n\t}\n\n\tinitializeFields() {\n\t\tconsole.log(\"myDocumentsFieldsController initialized\", this.stateFieldTarget.value);\n\t\tthis.countryFieldTarget.disabled = false;\n\n\t\tconst documentType = this.documentTypeFieldTarget.value;\n\t\tconst stateValue = this.stateFieldTarget.value;\n\t\tconst tribeValue = this.tribeFieldTarget.value;\n\t\tconst otherTribeValue = this.otherTribeFieldTarget.value;\n\n\t\tconst showElement = (element) => element.classList.remove(\"hidden\");\n\t\tconst hideElement = (element) => element.classList.add(\"hidden\");\n\n\t\tconst toggleFields = (showStateField, showTribeField, showOtherTribeField) => {\n\t\t\tshowStateField ? showElement(this.stateFieldTarget.parentElement) : hideElement(this.stateFieldTarget.parentElement);\n\t\t\tshowTribeField ? showElement(this.tribeFieldTarget.parentElement) : hideElement(this.tribeFieldTarget.parentElement);\n\t\t\tshowOtherTribeField ? showElement(this.otherTribeFieldTarget.parentElement) : hideElement(this.otherTribeFieldTarget.parentElement);\n\t\t};\n\n\t\tif (documentType === \"\") {\n\t\t\thideElement(this.countryFieldTarget.parentElement);\n\t\t\ttoggleFields(false, false, false);\n\t\t} else {\n\t\t\tshowElement(this.countryFieldTarget.parentElement);\n\n\t\t\tswitch (documentType) {\n\t\t\t\tcase \"1\": // State issued Driver's License\n\t\t\t\t\ttoggleFields(true, false, false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\": // US Passport\n\t\t\t\t\tthis.countryFieldTarget.disabled = true;\n\t\t\t\t\tthis.countryFieldTarget.value = this.usIdValue;\n\t\t\t\t\ttoggleFields(false, false, false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"3\": // Foreign Passport\n\t\t\t\t\ttoggleFields(false, false, false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"4\": // State/Local or Tribe\n\t\t\t\t\tif (stateValue !== \"\" && stateValue !== \"0\") {\n\t\t\t\t\t\ttoggleFields(true, false, false);\n\t\t\t\t\t} else if (tribeValue !== \"\" && tribeValue != 1187) {\n\t\t\t\t\t\t// Id: 1187 Other (please add description)\n\t\t\t\t\t\ttoggleFields(false, true, false);\n\t\t\t\t\t} else if (tribeValue == 1187) {\n\t\t\t\t\t\ttoggleFields(false, true, true);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttoggleFields(true, true, false);\n\t\t\t}\n\t\t}\n\t}\n\n\tselectDocumentType(e) {\n\t\tconst docType = e.target.value;\n\t\tthis.countryFieldTarget.disabled = false;\n\t\tthis.countryFieldTarget.parentElement.classList.remove(\"hidden\");\n\n\t\tif (docType === \"\") {\n\t\t\tthis.toggleFields({ showStateField: false, showTribeField: false, showOtherTribeField: false });\n\t\t} else if (docType === \"1\") {\n\t\t\t//state issued id\n\t\t\tthis.toggleFields({ showStateField: true, showTribeField: false, showOtherTribeField: false });\n\t\t} else if (docType === \"2\") {\n\t\t\t//US Passport\n\t\t\tthis.countryFieldTarget.parentElement.value = this.usIdValue;\n\t\t\tthis.countryFieldTarget.disabled = true;\n\t\t\tthis.toggleFields({ showStateField: false, showTribeField: false, showOtherTribeField: false });\n\t\t} else if (docType === \"3\") {\n\t\t\t//Foreign Passport\n\t\t\tthis.toggleFields({ showStateField: false, showTribeField: false, showOtherTribeField: false });\n\t\t} else if (docType === \"4\") {\n\t\t\t//State/Local or Tribe\n\t\t\tthis.toggleFields({ showStateField: true, showTribeField: true, showOtherTribeField: false });\n\t\t}\n\t}\n\n\tselectCountry(e) {\n\t\tif (this.documentTypeFieldTarget.value === \"3\") {\n\t\t\tthis.toggleFields({ showStateField: false, showTribeField: false, showOtherTribeField: false });\n\t\t} else if (e.target.value === \"\" || this.usTerritoryIdsValue.includes(Number(e.target.value)) || this.usIdValue !== Number(e.target.value)) {\n\t\t\tthis.toggleFields({ showStateField: false, showTribeField: false, showOtherTribeField: false });\n\t\t} else {\n\t\t\tthis.toggleFields({ showStateField: true, showTribeField: true, showOtherTribeField: false });\n\t\t}\n\t}\n\n\tselectState(e) {\n\t\tif (e.target.value === \"\") {\n\t\t\tthis.toggleFields({ showTribeField: true, showOtherTribeField: false });\n\t\t} else {\n\t\t\tthis.toggleFields({ showTribeField: false, showOtherTribeField: false });\n\t\t}\n\t}\n\n\tselectTribe(e) {\n\t\tif (e.target.value === \"\") {\n\t\t\tthis.toggleFields({ showStateField: true, showOtherTribeField: false });\n\t\t} else if (e.target.value === this.otherTribeIdValue) {\n\t\t\tthis.toggleFields({ showStateField: false, showOtherTribeField: true });\n\t\t} else {\n\t\t\tthis.toggleFields({ showStateField: false, showOtherTribeField: false });\n\t\t}\n\t}\n\n\ttoggleFields({ showStateField, showTribeField, showOtherTribeField }) {\n\t\tif (showStateField === true) {\n\t\t\tthis.stateFieldTarget.parentElement.classList.remove(\"hidden\");\n\t\t\tthis.stateFieldTarget.value = \"\";\n\t\t} else if (showStateField === false) {\n\t\t\tthis.stateFieldTarget.parentElement.classList.add(\"hidden\");\n\t\t\tthis.stateFieldTarget.value = \"\";\n\t\t}\n\t\tif (showTribeField === true) {\n\t\t\tthis.tribeFieldTarget.parentElement.classList.remove(\"hidden\");\n\t\t\tthis.tribeFieldTarget.value = \"\";\n\t\t} else if (showTribeField === false) {\n\t\t\tthis.tribeFieldTarget.parentElement.classList.add(\"hidden\");\n\t\t\tthis.tribeFieldTarget.value = \"\";\n\t\t}\n\t\tif (showOtherTribeField === true) {\n\t\t\tthis.otherTribeFieldTarget.parentElement.classList.remove(\"hidden\");\n\t\t\tthis.otherTribeFieldTarget.value = \"\";\n\t\t} else if (showOtherTribeField === false) {\n\t\t\tthis.otherTribeFieldTarget.parentElement.classList.add(\"hidden\");\n\t\t\tthis.otherTribeFieldTarget.value = \"\";\n\t\t}\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"customerIdField\", \"responsiblePartyCheckbox\"]\n\n connect() {\n if (this.customerIdFieldTarget.value) {\n this.responsiblePartyCheckboxTarget.disabled = false\n } else {\n this.responsiblePartyCheckboxTarget.disabled = true\n }\n }\n\n focusCustomerId(event) {\n if (event.target.value) {\n this.responsiblePartyCheckboxTarget.disabled = false\n } else {\n this.responsiblePartyCheckboxTarget.checked = false\n this.responsiblePartyCheckboxTarget.disabled = true\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n/**\n * @example\n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n */\nexport default class extends Controller {\n static outlets = [\"country-select\"]\n\n initialize() {\n this.#createOptionsByCountry()\n this.selectedStateByCountry = {}\n }\n\n get country() {\n return this.countrySelectOutletElement.value ?? \"\"\n }\n\n countrySelectOutletConnected() {\n this.rememberSelection()\n this.updateOptions()\n }\n\n rememberSelection() {\n this.selectedStateByCountry[this.country] = this.element.value\n }\n\n restoreSelection() {\n this.element.value = this.selectedStateByCountry[this.country] ?? \"\"\n this.element.value = this.element.value // workaround nonexistent option\n }\n\n updateOptions() {\n this.element.innerHTML = this.optionsByCountry[this.country] ?? this.optionsByCountry[\"\"]\n this.restoreSelection()\n }\n\n #createOptionsByCountry() {\n const byCountry = {}\n this.element.querySelectorAll('option').forEach(option => {\n (byCountry[option.dataset.countryId ?? \"\"] ??= []).push(option.outerHTML)\n })\n const shared = byCountry[\"\"] ?? []\n Object.entries(byCountry).forEach(([country, options]) => {\n if (country !== \"\") {\n options = shared.concat(options)\n }\n byCountry[country] = options.join(\"\\n\")\n })\n this.optionsByCountry = byCountry\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { Popover } from \"bootstrap\"\n\nexport default class extends Controller {\n static targets = [\"content\"]\n\n connect() {\n this.popover = new Popover(this.element, {\n content: this.contentTarget,\n html: true,\n trigger: \"hover\"\n })\n }\n\n toggle(e) {\n e.preventDefault()\n this.popover.toggle()\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Tribute from 'tributejs'\nimport Trix from 'trix'\n\n// Connects to data-controller=\"trix-mentions\"\nexport default class extends Controller {\n static values = {\n urlTemplate: String,\n }\n\n connect() {\n this.initializeTribute()\n }\n\n initializeTribute() {\n this.tribute = new Tribute({\n values: this._fetch.bind(this),\n allowSpaces: true,\n requireLeadingSpace: false,\n })\n this.tribute.attach(this.element)\n this.tribute.range.pasteHtml = this._pasteHtml.bind(this)\n this.element.addEventListener('tribute-replaced', this._replaced.bind(this))\n }\n\n get editor() {\n return this.element.editor\n }\n\n _fetch(text, cb) {\n fetch(this.urlTemplateValue.replace(':q', encodeURIComponent(text)))\n .then((response) => response.json())\n .then(cb)\n .catch(() => cb([]))\n }\n\n _pasteHtml(html, startPos, endPos) {\n const position = this.editor.getPosition()\n this.editor.setSelectedRange([position - (endPos - startPos), position])\n this.editor.deleteInDirection('backward')\n }\n\n _replaced(event) {\n const { sgid, content } = event.detail.item.original\n const attachment = new Trix.Attachment({ sgid, content })\n this.editor.insertAttachment(attachment)\n this.editor.insertString(' ')\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\tstatic targets = [\"emailField\", \"companyField\", \"modal\"];\n\n\tcheckUser(event) {\n\t\tevent.preventDefault();\n\t\tconst email = this.emailFieldTarget.value; // Get the email value\n\t\tconst company = this.companyFieldTarget.value; // Get the company value\n\n\t\tfetch(\"/company/check_member\", {\n\t\t\tmethod: \"POST\",\n\t\t\theaders: {\n\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\t\"X-CSRF-Token\": this.csrfToken,\n\t\t\t},\n\t\t\tbody: JSON.stringify({ email: email, company: company }),\n\t\t})\n\t\t\t.then((response) => response.json())\n\t\t\t.then((data) => {\n\t\t\t\tconst modalSubmitBtn = this.modalTarget.querySelector(\"#modalSubmitBtn\");\n\t\t\t\tmodalSubmitBtn.classList?.remove(\"hidden\");\n\t\t\t\tif (data.member_exists) {\n\t\t\t\t\tthis.showModal(\"This user already exists and is a member of this company.\");\n\t\t\t\t\t// hide the submit button inside the modal\n\t\t\t\t\tmodalSubmitBtn.classList.add(\"hidden\");\n\t\t\t\t} else if (data.user_exists) {\n\t\t\t\t\tthis.showModal(\"This user already exists. Would you like to add this user to the company?\");\n\t\t\t\t} else {\n\t\t\t\t\tthis.submitWithDisabledFields(event);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.error(\"Error:\", error);\n\t\t\t});\n\t}\n\n\tshowModal(message) {\n\t\tconst modalElement = this.modalTarget;\n\t\tmodalElement.querySelector(\".modal-body\").textContent = message;\n\t\t$(modalElement).modal(\"show\"); // Show the modal using Bootstrap's modal function\n\t}\n\n\tsubmitWithDisabledFields(event) {\n\t\tconst formController = this.application.getControllerForElementAndIdentifier(this.element.closest(\"form\"), \"form\");\n\t\tformController.submitWithDisabledFields(event); // Call submitWithDisabledFields from form controller\n\t}\n\n\tget csrfToken() {\n\t\treturn document.querySelector(\"[name='csrf-token']\")?.content;\n\t}\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"input\"]\n\n connect() {\n this.inputTargets.forEach(input => {\n // Ignore html5 validation if the field is required\n if (input.hasAttribute(\"required\")) { input.removeAttribute(\"required\") }\n\n input.addEventListener(\"input\", (event) => this.clearError(event))\n })\n }\n\n validate(event) {\n let formIsValid = true\n let firstErrorInput = null\n\n this.inputTargets.forEach(input => {\n const errorElement = input.closest(\".form-group\").querySelector(\".error-message\")\n const errorMessage = input.getAttribute(\"data-validation-error-message\")\n\n // Clear previous error state\n input.closest(\".form-group\").classList.remove(\"has-error\")\n errorElement.textContent = \"\"\n\n // Skip validation if the field is disabled or hidden\n if (input.disabled || input.closest(\".hidden\")) return\n\n // Validate if the field is empty\n if (input.value.trim() === \"\") {\n // Prevent form submission\n event.preventDefault()\n formIsValid = false\n\n // Apply error styling and set error message\n input.closest(\".form-group\").classList.add(\"has-error\")\n errorElement.textContent = errorMessage\n\n // Set the first error field to scroll to, if not already set\n if (!firstErrorInput) {\n firstErrorInput = input\n }\n }\n })\n\n // Scroll to the first error field if there is any invalid fields\n if (!formIsValid && firstErrorInput) {\n firstErrorInput.scrollIntoView({ behavior: \"smooth\", block: \"center\" })\n firstErrorInput.focus()\n }\n\n return formIsValid\n }\n\n clearError(event) {\n const input = event.target\n const errorElement = input.closest(\".form-group\").querySelector(\".error-message\")\n input.closest(\".form-group\").classList.remove(\"has-error\")\n errorElement.textContent = \"\"\n }\n}\n","import { Application } from \"@hotwired/stimulus\"\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\"./controllers\", true, /\\.js$/)\napplication.load(definitionsFromContext(context))\nwindow.Stimulus = application\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","Controller","connect","this","element","addEventListener","formatCompanyName","bind","cleanedInput","value","replace","static","add","item","templateTarget","content","cloneNode","listTarget","appendChild","console","log","remove","event","index","removeTargets","findIndex","n","currentTarget","itemTargets","CheckboxSelectAll","super","checkReadyToFile","preventDefault","checkboxTargets","forEach","checkbox","checked","dataset","readyToFile","refresh","checkFileUpdate","fileUpdate","checkIncompleteInfo","incompleteInfo","parentTarget","childTargets","x","toggleChildren","toggleParent","includes","acceptInvites","length","acceptedIds","row","push","selectedIdsTarget","declineInvites","declinedIds","declinedIdsTarget","filter","hasSubmitButtonTarget","toggleSubmitButton","submitButtonTarget","disabled","checkAll","checkNone","toggle","highlightRow","closest","classList","EMAIL_REGEX","initialize","checkFormValidity","requiredFields","querySelectorAll","field","allFilled","Array","from","every","input","trim","areRequiredFieldsFilled","form","isEmailValid","email","test","submit","otherErrorWarningTarget","textContent","formData","FormData","get","recaptchaResponse","querySelector","productId","companyName","mode","fetch","action","method","headers","csrfToken","body","JSON","stringify","user","password","password_confirmation","user_property_attributes","legal_first_name","legal_last_name","recaptcha_token","company_name","product_id","then","response","json","data","sessionId","stripe","redirectToCheckout","error","grecaptcha","reset","error_message","catch","hasTooltipTarget","tooltip","Tooltip","tooltipTarget","trigger","show","hide","copy","navigator","clipboard","writeText","sourceTarget","originalText","originalTitle","setTimeout","toggleAll","checkboxes","allChecked","params","check","bulkSelectTarget","some","indeterminate","currentPageSelectionRowTarget","rowTargets","contains","fileTarget","storeSelection","selectAll","allPagesSelectionRowTarget","clearSelection","unchecked","ids","join","remindAdmins","spinner","remindAdminsButtonTarget","getElementsByClassName","request","turboStreamRequest","company_id","ok","toastr","info","bootbox","alert","statusText","remindMember","memberId","remindMemberButtonTarget","company_member_id","transmitReport","companyId","transmitReportButtonTarget","_this","confirm","message","buttons","label","className","cancel","callback","async","isConfirmed","document","getElementById","innerText","url","Accept","r","startsWith","formatFincenId","substring","formattedFincenId","Boolean","initializeFields","init","selectCountry","selectedCountryType","enableStateField","enable","stateFieldTarget","requiredFieldsValue","required","countryFieldTarget","selectedOptions","countryType","otherTribeId","String","usTerritoryIds","usId","Number","usTerritoryIdsValue","usIdValue","foreignCountryAlertTarget","tribeFieldTarget","parentElement","otherTribeIdValue","otherTribeFieldTarget","target","toggleFields","showStateField","showTribeField","showOtherTribeField","selectState","selectTribe","updateFormationCountryRequirements","isUsTerritory","isFormationCountryUsTerritory","formationCountryNoteForNonUsTerritoryTarget","orgstateTarget","toString","formationCountryTarget","currentType","taxIdTypeFieldTarget","selectTaxIdType","type","einFieldTarget","ssnFieldTarget","foreignFieldTarget","foreignCountryFieldTarget","adjustRequiredFields","successRequired","errorRequired","boirIdInputTarget","trackingIdInputTarget","fincenIdInputTarget","boirResultInputTarget","filingErrorsInputTarget","updateStateSelect","stateSelectOutlets","updateOptions","disableStateSelect","countrySelectTarget","countryId","options","stateSelectTarget","requiredLabel","requiredworkLabel","setAttribute","removeAttribute","formatZipcode","zipcode","zipcodeInputTarget","showDateRangeField","startDateInput","endDateInput","errorField","submitButton","validateDates","dateRangeField","clearError","enableSubmit","startDate","Date","showError","disableSubmit","style","display","documentTypeChanged","issuingState","issuingStateLabel","issuingCountry","issuingCountryLabel","issuingOther","issuingOtherLabel","issuingText","issuingOtherTextLabel","documentTypeTarget","formatEin","formattedEin","addBOorOfficerDiv","addBOorOfficerSectionIsVisible","requestSubmit","dispatchEvent","CustomEvent","bubbles","submitWithDebounce","debounce","submitOnEnter","keyCode","submitWithDisabledFields","persistedDisabledFields","disabledFields","beforeCtaTarget","toggleCheckbox","afterCtaTarget","updateFormationDateField","selected","isBeforeChecked","isAfterChecked","formationDateTarget","sendEvent","payload","isProdEnvironment","split","event_name","gtag","head","mediaFormat","showAndHideGuideFields","changeMediaFormat","kindFieldTarget","fileFieldTarget","urlFieldTarget","guideForFieldTarget","externalUrlFieldTarget","handleSlugChange","toLowerCase","slugInputTarget","selectedDocumentType","foreignCountries","hidden","usCountries","otherFieldTarget","selectDocumentType","enableCountryField","us","foreign","enableTribeField","enableOtherField","selectedTribeElement","errorMessageElement","stateFieldLabel","tribeFieldLabel","otherFieldLabel","documentTypeFieldTarget","documentType","readURL","inputTarget","output","outputTarget","file","files","reader","FileReader","onload","typedArray","Uint8Array","result","loadingTask","pdfjsLib","getDocument","pdf","promise","page","getPage","viewport","getViewport","scale","outputScale","window","devicePixelRatio","canvas","createElement","context","getContext","width","Math","floor","height","renderContext","canvasContext","transform","render","toBlob","blob","URL","createObjectURL","revokeObjectURL","originalSrc","getAttribute","src","readAsArrayBuffer","readAsDataURL","addressType","showAndHideAddresses","changeAddressType","homeSection","workSection","mailingRequiredFields","workRequiredFields","formatSSN","formattedSSN","formatForeign","formattedForeign","IntroController","setDontShowAgainCookie","intro","setOption","userIdValue","addSteps","title","toggleHamburgerMenu","addStep","isMobile","navId","onbeforechange","checkVisibility","click","userId","disableAutoStart","isTestEnvironment","introJs","autoStart","disableAutoStartValue","start","modal","Modal","modalTarget","open","stopPropagation","undefined","titleTarget","modalSize","dialogTarget","href","text","html","bodyTarget","innerHTML","autohideTargetConnected","showTargetConnected","stateValue","tribeValue","showElement","hideElement","docType","customerIdFieldTarget","responsiblePartyCheckboxTarget","focusCustomerId","selectedStateByCountry","country","countrySelectOutletElement","countrySelectOutletConnected","rememberSelection","restoreSelection","optionsByCountry","byCountry","option","outerHTML","shared","entries","concat","popover","Popover","contentTarget","urlTemplate","initializeTribute","tribute","Tribute","values","_fetch","allowSpaces","requireLeadingSpace","attach","range","pasteHtml","_pasteHtml","_replaced","editor","cb","urlTemplateValue","encodeURIComponent","startPos","endPos","position","getPosition","setSelectedRange","deleteInDirection","sgid","detail","original","attachment","Trix","Attachment","insertAttachment","insertString","checkUser","emailFieldTarget","company","companyFieldTarget","modalSubmitBtn","member_exists","showModal","user_exists","modalElement","$","application","getControllerForElementAndIdentifier","inputTargets","hasAttribute","validate","formIsValid","firstErrorInput","errorElement","errorMessage","scrollIntoView","behavior","block","focus","Application","require","load","definitionsFromContext","Stimulus"],"sourceRoot":""}