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OAAOA,EAETA,EAAUA,EAAQ+R,aACnB,CACF,CAEM,SAAStI,EAAcuX,EAASjH,GAAmB,IAAb4T,EAAY,uDAAJ,CAAC,EAC9C3tB,EAAU2E,SAAS8E,cAAcuX,GAEvChhB,EAAQsX,YAAcyC,EAEtB,cAA2Brb,OAAO0H,QAAQunB,GAA1C,eAAkD,CAAC,IAAD,gBAAtCpU,EAAsC,KAAjCjY,EAAiC,MAChC,WAAZ0f,GAAgC,aAARzH,GAAuBjY,IAGnDtB,EAAQoO,aAAamL,EAAKjY,EAC3B,CAED,OAAOtB,CACR,+TCjCoBmN,EAAAA,WACnB,WAAYnN,EAAS4tB,EAAWF,gGAAW,CAAD,QACxC1uB,KAAK0uB,SAAW,kBAAaA,EAAQ,WAAR,YAAb,EAChB1uB,KAAK4uB,UAAYA,EACjB5uB,KAAKgB,QAAUA,EACfhB,KAAKgB,QAAQ2U,iBAAiB3V,KAAK4uB,UAAW5uB,KAAK0uB,UAAU,EAC9D,WAIA,SAJA,0BAED,WACE1uB,KAAKgB,QAAQ4U,oBAAoB5V,KAAK4uB,UAAW5uB,KAAK0uB,UAAU,EACjE,sFAVkBvgB,0CCMb0gB,iCAAAA,GAAML,EAAAA,EAAAA,IAAe,eAGzBM,EAAAA,GAAY,CACVD,IAAAA,EACAE,aAAc,CAAC,IAAIC,EAAAA,GAAAA,IAInBC,iBAAkB,IAGpB1iB,QAAQ2J,MAAM","sources":["webpack://marketplace/./app/javascript/controllers/common/ sync \\.js$","webpack://marketplace/./app/javascript/controllers/common/add_remove_controller.js","webpack://marketplace/./app/javascript/controllers/common/auto_submit_form_controller.js","webpack://marketplace/./app/javascript/controllers/common/availability_controller.js","webpack://marketplace/./app/javascript/controllers/common/calculation_controller.js","webpack://marketplace/./app/javascript/controllers/common/check_box_label_controller.js","webpack://marketplace/./app/javascript/controllers/common/checkbox_copy_controller.js","webpack://marketplace/./app/javascript/controllers/common/clear_checkboxes_controller.js","webpack://marketplace/./app/javascript/controllers/common/clear_textbox_controller.js","webpack://marketplace/./app/javascript/controllers/common/clipboard_controller.js","webpack://marketplace/./app/javascript/controllers/common/collapsed_text_controller.js","webpack://marketplace/./app/javascript/controllers/common/confirm_controller.js","webpack://marketplace/./app/javascript/lib/image.js","webpack://marketplace/./app/javascript/controllers/common/crop_controller.js","webpack://marketplace/./app/javascript/controllers/common/defaults_controller.js","webpack://marketplace/./app/javascript/controllers/common/dropdown_menu_controller.js","webpack://marketplace/./app/javascript/controllers/common/expand_card_controller.js","webpack://marketplace/./app/javascript/controllers/common/filter_list_controller.js","webpack://marketplace/./app/javascript/controllers/common/flash_controller.js","webpack://marketplace/./app/javascript/controllers/common/form_controller.js","webpack://marketplace/./app/javascript/controllers/common/gallery_controller.js","webpack://marketplace/./app/javascript/controllers/common/hidden_fields_controller.js","webpack://marketplace/./app/javascript/controllers/common/input_copy_controller.js","webpack://marketplace/./app/javascript/controllers/common/input_copy_submit_controller.js","webpack://marketplace/./app/javascript/controllers/common/listbox_controller.js","webpack://marketplace/./app/javascript/controllers/common/loader_controller.js","webpack://marketplace/./app/javascript/controllers/common/menu_controller.js","webpack://marketplace/./app/javascript/controllers/common/mixpanel_event_controller.js","webpack://marketplace/./app/javascript/controllers/common/modal_controller.js","webpack://marketplace/./app/javascript/controllers/common/multi_select_controller.js","webpack://marketplace/./app/javascript/controllers/common/multi_upload_controller.js","webpack://marketplace/./app/javascript/controllers/common/nav_menu_controller.js","webpack://marketplace/./app/javascript/controllers/common/optional_field_controller.js","webpack://marketplace/./app/javascript/controllers/common/pulse_until_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_checkbox_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_copy_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_hidden_section_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_input_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_input_toggle_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_label_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_label_with_default_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_reset_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_section_toggle_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_selection_toggle_controller.js","webpack://marketplace/./app/javascript/controllers/common/radio_button_visible_section_controller.js","webpack://marketplace/./app/javascript/controllers/common/refresh_controller.js","webpack://marketplace/./app/javascript/controllers/common/reload_page_controller.js","webpack://marketplace/./app/javascript/lib/fetch.js","webpack://marketplace/./app/javascript/controllers/common/remote_multi_select_controller.js","webpack://marketplace/./app/javascript/controllers/common/remote_multi_select_copy_input_controller.js","webpack://marketplace/./app/javascript/controllers/common/replace_controller.js","webpack://marketplace/./app/javascript/controllers/common/screen_controller.js","webpack://marketplace/./app/javascript/controllers/common/search_controller.js","webpack://marketplace/./app/javascript/controllers/common/secondary_dropdown_menu_controller.js","webpack://marketplace/./app/javascript/controllers/common/select_hidden_section_controller.js","webpack://marketplace/./app/javascript/controllers/common/select_input_controller.js","webpack://marketplace/./app/javascript/controllers/common/select_other_field_controller.js","webpack://marketplace/./app/javascript/controllers/common/slider_controller.js","webpack://marketplace/./app/javascript/controllers/common/sortable_controller.js","webpack://marketplace/./app/javascript/controllers/common/src_clear_controller.js","webpack://marketplace/./app/javascript/controllers/common/stepper_progress_controller.js","webpack://marketplace/./app/javascript/controllers/common/success_controller.js","webpack://marketplace/./app/javascript/controllers/common/swap_input_button_controller.js","webpack://marketplace/./app/javascript/controllers/common/text_field_swap_controller.js","webpack://marketplace/./app/javascript/controllers/common/textarea_controller.js","webpack://marketplace/./app/javascript/controllers/common/toggle_add_check_controller.js","webpack://marketplace/./app/javascript/controllers/common/toggle_switch_check_box_controller.js","webpack://marketplace/./app/javascript/controllers/common/toggle_switch_select_controller.js","webpack://marketplace/./app/javascript/controllers/common/toggle_switch_view_controller.js","webpack://marketplace/./app/javascript/controllers/common/tooltip_controller.js","webpack://marketplace/./app/javascript/controllers/common/transition_controller.js","webpack://marketplace/./app/javascript/controllers/common/transition_section_controller.js","webpack://marketplace/./app/javascript/controllers/mixins/use-auto-focusable.js","webpack://marketplace/./app/javascript/controllers/mixins/use-direct-upload.js","webpack://marketplace/./app/javascript/controllers/mixins/use-floating-popup.js","webpack://marketplace/./app/javascript/controllers/mixins/use-sync-frame.js","webpack://marketplace/./app/javascript/lib/dom.js","webpack://marketplace/./app/javascript/lib/element_listener.js","webpack://marketplace/./app/javascript/lib/sentry.js"],"sourcesContent":["var map = {\n\t\"./add_remove_controller.js\": 2204,\n\t\"./auto_submit_form_controller.js\": 7023,\n\t\"./availability_controller.js\": 6800,\n\t\"./calculation_controller.js\": 3712,\n\t\"./check_box_label_controller.js\": 3846,\n\t\"./checkbox_copy_controller.js\": 8458,\n\t\"./clear_checkboxes_controller.js\": 7216,\n\t\"./clear_textbox_controller.js\": 6388,\n\t\"./clipboard_controller.js\": 6698,\n\t\"./collapsed_text_controller.js\": 7073,\n\t\"./confirm_controller.js\": 3017,\n\t\"./crop_controller.js\": 249,\n\t\"./defaults_controller.js\": 4380,\n\t\"./dropdown_menu_controller.js\": 5464,\n\t\"./expand_card_controller.js\": 7743,\n\t\"./filter_list_controller.js\": 1679,\n\t\"./flash_controller.js\": 7266,\n\t\"./form_controller.js\": 4299,\n\t\"./gallery_controller.js\": 5036,\n\t\"./hidden_fields_controller.js\": 8138,\n\t\"./input_copy_controller.js\": 6321,\n\t\"./input_copy_submit_controller.js\": 480,\n\t\"./listbox_controller.js\": 4084,\n\t\"./loader_controller.js\": 297,\n\t\"./menu_controller.js\": 669,\n\t\"./mixpanel_event_controller.js\": 5064,\n\t\"./modal_controller.js\": 8241,\n\t\"./multi_select_controller.js\": 2301,\n\t\"./multi_upload_controller.js\": 4948,\n\t\"./nav_menu_controller.js\": 6283,\n\t\"./optional_field_controller.js\": 9127,\n\t\"./pulse_until_controller.js\": 765,\n\t\"./radio_button_checkbox_controller.js\": 6264,\n\t\"./radio_button_copy_controller.js\": 2731,\n\t\"./radio_button_hidden_section_controller.js\": 6761,\n\t\"./radio_button_input_controller.js\": 5896,\n\t\"./radio_button_input_toggle_controller.js\": 2707,\n\t\"./radio_button_label_controller.js\": 1599,\n\t\"./radio_button_label_with_default_controller.js\": 1727,\n\t\"./radio_button_reset_controller.js\": 9464,\n\t\"./radio_button_section_toggle_controller.js\": 9550,\n\t\"./radio_button_selection_toggle_controller.js\": 3340,\n\t\"./radio_button_visible_section_controller.js\": 9703,\n\t\"./refresh_controller.js\": 3861,\n\t\"./reload_page_controller.js\": 5613,\n\t\"./remote_multi_select_controller.js\": 2856,\n\t\"./remote_multi_select_copy_input_controller.js\": 1133,\n\t\"./replace_controller.js\": 6615,\n\t\"./screen_controller.js\": 4936,\n\t\"./search_controller.js\": 8014,\n\t\"./secondary_dropdown_menu_controller.js\": 3423,\n\t\"./select_hidden_section_controller.js\": 2705,\n\t\"./select_input_controller.js\": 7231,\n\t\"./select_other_field_controller.js\": 5585,\n\t\"./slider_controller.js\": 53,\n\t\"./sortable_controller.js\": 5569,\n\t\"./src_clear_controller.js\": 9159,\n\t\"./stepper_progress_controller.js\": 2388,\n\t\"./success_controller.js\": 4130,\n\t\"./swap_input_button_controller.js\": 7945,\n\t\"./text_field_swap_controller.js\": 1767,\n\t\"./textarea_controller.js\": 9564,\n\t\"./toggle_add_check_controller.js\": 5707,\n\t\"./toggle_switch_check_box_controller.js\": 7593,\n\t\"./toggle_switch_select_controller.js\": 3171,\n\t\"./toggle_switch_view_controller.js\": 8710,\n\t\"./tooltip_controller.js\": 2135,\n\t\"./transition_controller.js\": 4426,\n\t\"./transition_section_controller.js\": 7810,\n\t\"controllers/common/add_remove_controller.js\": 2204,\n\t\"controllers/common/auto_submit_form_controller.js\": 7023,\n\t\"controllers/common/availability_controller.js\": 6800,\n\t\"controllers/common/calculation_controller.js\": 3712,\n\t\"controllers/common/check_box_label_controller.js\": 3846,\n\t\"controllers/common/checkbox_copy_controller.js\": 8458,\n\t\"controllers/common/clear_checkboxes_controller.js\": 7216,\n\t\"controllers/common/clear_textbox_controller.js\": 6388,\n\t\"controllers/common/clipboard_controller.js\": 6698,\n\t\"controllers/common/collapsed_text_controller.js\": 7073,\n\t\"controllers/common/confirm_controller.js\": 3017,\n\t\"controllers/common/crop_controller.js\": 249,\n\t\"controllers/common/defaults_controller.js\": 4380,\n\t\"controllers/common/dropdown_menu_controller.js\": 5464,\n\t\"controllers/common/expand_card_controller.js\": 7743,\n\t\"controllers/common/filter_list_controller.js\": 1679,\n\t\"controllers/common/flash_controller.js\": 7266,\n\t\"controllers/common/form_controller.js\": 4299,\n\t\"controllers/common/gallery_controller.js\": 5036,\n\t\"controllers/common/hidden_fields_controller.js\": 8138,\n\t\"controllers/common/input_copy_controller.js\": 6321,\n\t\"controllers/common/input_copy_submit_controller.js\": 480,\n\t\"controllers/common/listbox_controller.js\": 4084,\n\t\"controllers/common/loader_controller.js\": 297,\n\t\"controllers/common/menu_controller.js\": 669,\n\t\"controllers/common/mixpanel_event_controller.js\": 5064,\n\t\"controllers/common/modal_controller.js\": 8241,\n\t\"controllers/common/multi_select_controller.js\": 2301,\n\t\"controllers/common/multi_upload_controller.js\": 4948,\n\t\"controllers/common/nav_menu_controller.js\": 6283,\n\t\"controllers/common/optional_field_controller.js\": 9127,\n\t\"controllers/common/pulse_until_controller.js\": 765,\n\t\"controllers/common/radio_button_checkbox_controller.js\": 6264,\n\t\"controllers/common/radio_button_copy_controller.js\": 2731,\n\t\"controllers/common/radio_button_hidden_section_controller.js\": 6761,\n\t\"controllers/common/radio_button_input_controller.js\": 5896,\n\t\"controllers/common/radio_button_input_toggle_controller.js\": 2707,\n\t\"controllers/common/radio_button_label_controller.js\": 1599,\n\t\"controllers/common/radio_button_label_with_default_controller.js\": 1727,\n\t\"controllers/common/radio_button_reset_controller.js\": 9464,\n\t\"controllers/common/radio_button_section_toggle_controller.js\": 9550,\n\t\"controllers/common/radio_button_selection_toggle_controller.js\": 3340,\n\t\"controllers/common/radio_button_visible_section_controller.js\": 9703,\n\t\"controllers/common/refresh_controller.js\": 3861,\n\t\"controllers/common/reload_page_controller.js\": 5613,\n\t\"controllers/common/remote_multi_select_controller.js\": 2856,\n\t\"controllers/common/remote_multi_select_copy_input_controller.js\": 1133,\n\t\"controllers/common/replace_controller.js\": 6615,\n\t\"controllers/common/screen_controller.js\": 4936,\n\t\"controllers/common/search_controller.js\": 8014,\n\t\"controllers/common/secondary_dropdown_menu_controller.js\": 3423,\n\t\"controllers/common/select_hidden_section_controller.js\": 2705,\n\t\"controllers/common/select_input_controller.js\": 7231,\n\t\"controllers/common/select_other_field_controller.js\": 5585,\n\t\"controllers/common/slider_controller.js\": 53,\n\t\"controllers/common/sortable_controller.js\": 5569,\n\t\"controllers/common/src_clear_controller.js\": 9159,\n\t\"controllers/common/stepper_progress_controller.js\": 2388,\n\t\"controllers/common/success_controller.js\": 4130,\n\t\"controllers/common/swap_input_button_controller.js\": 7945,\n\t\"controllers/common/text_field_swap_controller.js\": 1767,\n\t\"controllers/common/textarea_controller.js\": 9564,\n\t\"controllers/common/toggle_add_check_controller.js\": 5707,\n\t\"controllers/common/toggle_switch_check_box_controller.js\": 7593,\n\t\"controllers/common/toggle_switch_select_controller.js\": 3171,\n\t\"controllers/common/toggle_switch_view_controller.js\": 8710,\n\t\"controllers/common/tooltip_controller.js\": 2135,\n\t\"controllers/common/transition_controller.js\": 4426,\n\t\"controllers/common/transition_section_controller.js\": 7810\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 = 6655;","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['addedBox', 'removedBox'];\n\n  connect() {\n  }\n\n  remove(ev) {\n    const { currentTarget: { id } } = ev;\n\n    this.updateSelfRemoved(id)\n    this.updateRemovedList(id)\n  }\n\n  add(ev) {\n    const { currentTarget: { id } } = ev;\n\n    this.updateSelfAdded(id)\n    this.updateAddedList(id)\n  }\n\n  updateSelfRemoved(id) {\n    this.addedBoxTargets.forEach(addedBox => {\n      if (addedBox.id == id) {\n        addedBox.classList.add('hidden')\n      }\n    })\n  }\n\n  updateSelfAdded(id) {\n    this.removedBoxTargets.forEach(removedBox => {\n      if (removedBox.id == id) {\n        removedBox.classList.add('hidden')\n      }\n    })\n  }\n\n  updateRemovedList(id) {\n    this.removedBoxTargets.forEach(removedBox => {\n      if (removedBox.id == id) {\n        removedBox.classList.remove('hidden')\n      }\n    })\n  }\n\n  updateAddedList(id) {\n    this.addedBoxTargets.forEach(addedBox => {\n      if (addedBox.id == id) {\n        addedBox.classList.remove('hidden')\n      }\n    })\n  }\n\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce, useDispatch } from 'stimulus-use';\n\nimport { useAutoFocusable } from '../mixins';\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  submit = (ev) => {\n    this.element.requestSubmit()\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useTransition } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = [\n    'form', 'help', 'next', 'nextButton', 'nextOpenDate',\n    'notAvailableLabel', 'notAvailableDate', 'notAvailableDateInput',\n    'popup', 'roleType', 'hoursPerWeek'\n  ];\n\n  get checked() {\n    return [...this.element.querySelectorAll('input:checked')];\n  }\n\n  connect() {\n    useClickOutside(this);\n    useTransition(this, { element: this.popupTarget });\n  }\n\n  clickOutside() {\n    this.reset();\n  }\n\n  toggle(ev) {\n    if (this.checked.length > 0) {\n      this.helpTarget.classList.add('hidden');\n      this.nextTarget.classList.remove('hidden');\n    } else {\n      this.nextTarget.classList.add('hidden');\n      this.helpTarget.classList.remove('hidden');\n    }\n  }\n\n  nextStep() {\n    this.nextButtonTarget.classList.add('hidden');\n    this.roleTypeTargets.forEach(label => label.classList.add('hidden'));\n    this.hoursPerWeekTargets.forEach(label => label.classList.remove('hidden'));\n  }\n\n  notAvailableStep(ev) {\n    this.nextButtonTarget.classList.add('hidden');\n    this.roleTypeTargets.forEach(label => {\n      if (label !== ev.currentTarget)\n        label.classList.add('hidden');\n    });\n\n    this.notAvailableLabelTarget.classList.add('hidden');\n    this.notAvailableDateTarget.classList.remove('hidden');\n  }\n\n  submit() {\n    this.formTarget.dispatchEvent(new CustomEvent('submit', { bubbles: true }));\n  }\n\n  submitNotAvailable() {\n    const { value } = this.nextOpenDateTarget;\n\n    if (value && value !== '') {\n      this.notAvailableDateInputTarget.value = value;\n      this.notAvailableDateInputTarget.form.dispatchEvent(new CustomEvent('submit', { bubbles: true }));\n    }\n  }\n\n  async reset() {\n    if (this.reseting)\n      return;\n\n    this.reseting = true;\n    this.element.classList.add('pointer-events-none');\n\n    await this.leave();\n\n    this.checked.forEach(input => input.checked = false);\n\n    this.nextButtonTarget.classList.remove('hidden');\n    this.notAvailableLabelTarget.classList.remove('hidden');\n    this.roleTypeTargets.forEach(label => label.classList.remove('hidden'));\n    this.hoursPerWeekTargets.forEach(label => label.classList.add('hidden'));\n    this.notAvailableDateTarget.classList.add('hidden');\n\n    this.element.classList.remove('pointer-events-none');\n\n    delete this.reseting;\n  }\n}\n","import { Controller } from 'stimulus';\nimport AutoNumeric from 'autonumeric'\n\nexport default class extends Controller {\n  static targets = [ 'rateAmount', 'feePercent', 'feeAmount', 'totalAmount' ]\n  static values = {\n    currencyCode: String,\n    percent: Number\n  };\n\n  connect() {\n    const autoNumericOptionsUSD = {\n      digitGroupSeparator        : ',',\n      decimalCharacter           : '.',\n      decimalCharacterAlternative: ',',\n      currencySymbol             : '\\u202fUS$',\n      currencySymbolPlacement    : AutoNumeric.options.currencySymbolPlacement.prefix,\n      roundingMethod             : 'B',\n      decimalPlaces              : 2,\n      selectNumberOnly           : true,\n      unformatOnSubmit           : true\n    }\n\n    const autoNumericOptionsCAD = {\n      digitGroupSeparator        : ',',\n      decimalCharacter           : '.',\n      decimalCharacterAlternative: ',',\n      currencySymbol             : '\\u202fC$',\n      currencySymbolPlacement    : AutoNumeric.options.currencySymbolPlacement.prefix,\n      roundingMethod             : 'B',\n      decimalPlaces              : 2,\n      selectNumberOnly           : true,\n      unformatOnSubmit           : true\n    }\n\n    const autoNumericOptionsAUD = {\n      digitGroupSeparator        : ',',\n      decimalCharacter           : '.',\n      decimalCharacterAlternative: ',',\n      currencySymbol             : '\\u202fA$',\n      currencySymbolPlacement    : AutoNumeric.options.currencySymbolPlacement.prefix,\n      roundingMethod             : 'B',\n      decimalPlaces              : 2,\n      selectNumberOnly           : true,\n      unformatOnSubmit           : true\n    }\n\n    const autoNumericOptionsGBP = {\n      digitGroupSeparator        : ',',\n      decimalCharacter           : '.',\n      decimalCharacterAlternative: ',',\n      currencySymbol             : '\\u202f£',\n      currencySymbolPlacement    : AutoNumeric.options.currencySymbolPlacement.prefix,\n      roundingMethod             : 'B',\n      decimalPlaces              : 2,\n      selectNumberOnly           : true,\n      unformatOnSubmit           : true\n    }\n\n    var currencyCode = this.currencyCodeValue.toLowerCase()\n    switch(currencyCode) {\n      case 'usd':\n        this.autoNumericOptions = autoNumericOptionsUSD\n        break;\n      case 'cad':\n        this.autoNumericOptions = autoNumericOptionsCAD\n        break;\n      case 'aud':\n        this.autoNumericOptions = autoNumericOptionsAUD\n        break;\n      case 'gbp':\n        this.autoNumericOptions = autoNumericOptionsGBP\n        break;\n      default:\n        this.autoNumericOptions = autoNumericOptionsUSD\n    }\n\n    new AutoNumeric(this.rateAmountTarget, this.autoNumericOptions)\n    new AutoNumeric(this.feeAmountTarget, this.autoNumericOptions)\n    new AutoNumeric(this.totalAmountTarget, this.autoNumericOptions)\n  }\n\n  // when changing the rate\n  updateFeeAmountByPercentOfRate() {\n    const feeAmount = (this.rateAmount() * (this.feePercentTarget.value / 100))\n    AutoNumeric.getAutoNumericElement(this.feeAmountTarget).set(feeAmount)\n  }\n\n  updateTotalAmount() {\n    this.previousAdjustment = 'rate'\n    this.updateFeeAmountByPercentOfRate()\n    const totalAmount = this.rateAmount() + this.feeAmount()\n    AutoNumeric.getAutoNumericElement(this.totalAmountTarget).set(totalAmount)\n  }\n\n\n  // when changing the total\n  updateRateAmount() {\n    this.previousAdjustment = 'total'\n    const rateAmount = this.totalAmount() / ( 1 + (this.feePercentTarget.value / 100) )\n    const rateAmountRounded = Math.round((rateAmount + Number.EPSILON) * 100) / 100\n    AutoNumeric.getAutoNumericElement(this.rateAmountTarget).set(rateAmountRounded)\n    this.updateFeeAmountBySubtraction()\n  }\n\n  // depending on which value the user has previously adjusted\n  // we assume they want to see the change in other values if fee percent is adjusted\n  updateFeePercent() {\n    if (this.previousAdjustment === 'rate') {\n      this.updateTotalAmount()\n    } else {\n      this.updateRateAmount()\n    }\n  }\n\n  updateFeeAmountBySubtraction() {\n    const feeAmount = this.totalAmount() - this.rateAmount()\n    AutoNumeric.getAutoNumericElement(this.feeAmountTarget).set(feeAmount)\n  }\n\n  rateAmount() {\n    return AutoNumeric.getAutoNumericElement(this.rateAmountTarget).getNumber()\n  }\n\n  feeAmount() {\n    return AutoNumeric.getAutoNumericElement(this.feeAmountTarget).getNumber()\n  }\n\n  totalAmount() {\n    return AutoNumeric.getAutoNumericElement(this.totalAmountTarget).getNumber()\n  }\n\n  unformatAmountFields () {\n    AutoNumeric.getAutoNumericElement(this.rateAmountTarget).formUnformat()\n    AutoNumeric.getAutoNumericElement(this.feeAmountTarget).formUnformat()\n    AutoNumeric.getAutoNumericElement(this.totalAmountTarget).formUnformat()\n  }\n\n  set previousAdjustment(value) {\n    this.data.set('previousAdjustment', value)\n  }\n\n  get previousAdjustment() {\n    return this.data.get('previousAdjustment')\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['checkBox','label'];\n\n  connect() {\n    this.checkBoxTargets.forEach((el, i) => {\n      if (el.checked) {\n        var selector = 'label[for=' + `\"${el.id}\"` + ']'\n        var label = document.querySelector(selector);\n        label.classList.add('bg-gray-500')\n      }\n    })\n  }\n\n  checked() {\n    if (this.checkBoxTarget.checked) {\n      this.labelTarget.classList.add('bg-gray-500')\n    } else {\n      this.labelTarget.classList.remove('bg-gray-500')\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce } from 'stimulus-use';\n\nexport default class extends Controller {\n  static debounces = ['updateInput'];\n\n  static targets = ['copyInput','input'];\n\n  connect() {\n    useDebounce(this);\n\n    this.setCopyInputs()\n  }\n\n  updateInput(ev) {\n    const { target } = ev;\n\n    this.copyInputTargets.forEach((copyInput) => {\n      if (copyInput.id.includes(target.id.concat(\"-copy\"))) {\n        if (target.checked) {\n          copyInput.checked = true\n        } else {\n          copyInput.checked = false\n        }\n      }\n    })\n  }\n\n  setCopyInputs(){\n    this.inputTargets.forEach((input) => {\n      this.copyInputTargets.forEach((copyInput) => {\n        if (copyInput.id.includes(input.id.concat(\"-copy\"))) {\n          if (input.checked) {\n            copyInput.checked = true\n          } else {\n            copyInput.checked = false\n          }\n        }\n      })\n    });\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['checkbox'];\n\n  connect() {\n  }\n\n  clear() {\n    this.checkboxTargets.forEach(checkbox => checkbox.checked = false);\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['textbox'];\n\n  connect() {\n  }\n\n  clear() {\n    this.textboxTarget.value = '';\n  }\n}\n","import copy from 'copy-to-clipboard';\nimport { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n  static targets = ['message', 'form'];\n\n  static values = {\n    copy: String\n  };\n\n  copy(ev) {\n    ev.preventDefault();\n\n    copy(this.copyValue);\n\n    if (this.hasMessageTarget) {\n      this.messageTarget.classList.remove('opacity-0');\n\n      setTimeout(() => {\n        this.messageTarget.classList.add('opacity-0');\n      }, 3000);\n    }\n  }\n\n  copyFormLocation(ev) {\n    if (this.hasFormTarget) {\n      const formData = new FormData(this.formTarget);\n      const formEntries = [...formData.entries()]\n        .filter(([ _, value ]) => value.length > 0)\n        .map(x => `${x[0]}=${x[1]}`)\n\n      const search = formEntries.join('&');\n\n      copy(`${window.location.href}?${search}`);\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useMatchMedia } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['button'];\n  static values = {\n    collapsed: Boolean, copy: String,\n  };\n\n  get paragraphElements() {\n    return [...this.element.querySelectorAll('p:nth-child(n+2)')];\n  }\n\n  connect() {\n    this.initialCopy = this.buttonTarget.innerText;\n\n    if (this.hasCollapsedValue && this.collapsedValue) {\n      this.collapse();\n    }\n\n    useMatchMedia(this, {\n      mediaQueries: {\n        small: '(max-width: 640px)'\n      }\n    });\n  }\n\n  isSmall() {\n    this.collapse();\n  }\n\n  toggle() {\n    if (this.state === 'collapsed') {\n      this.expand();\n    } else {\n      this.collapse();\n    }\n  }\n\n  collapse() {\n    const pNodes = this.paragraphElements;\n    const heights = pNodes.map(p => p.offsetHeight);\n\n    if (pNodes.length < 1) {\n      this.buttonTarget.classList.add('hidden');\n\n      return;\n    }\n\n    pNodes.forEach(p => {\n      p.classList.add('transition-all', 'overflow-hidden');\n      p.style.height = 0;\n      p.style.marginTop = 0;\n      p.style.marginBottom = 0;\n    });\n\n    this.buttonTarget.innerText = this.initialCopy;\n    this.buttonTarget.scrollIntoView();\n    this.state = 'collapsed';\n  }\n\n  expand() {\n    this.paragraphElements.forEach(p => {\n      p.style.height = p.style.marginTop = p.style.marginBottom = null;\n    });\n\n    this.buttonTarget.innerText = this.copyValue;\n    this.state = 'expanded';\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static values = { message: String };\n\n  ask(ev) {\n    if (!confirm(this.messageValue)) {\n      ev.preventDefault();\n      ev.stopPropagation();\n    }\n  }\n}\n","function readFile(file) {\n  const reader = new FileReader();\n\n  return new Promise((resolve, reject) => {\n    reader.onload = ev => resolve(ev.target.result);\n    reader.onerror = err => reject(err);\n\n    reader.readAsDataURL(file);\n  });\n}\n\nfunction loadImage(dataURI) {\n  const img = new Image();\n\n  return new Promise((resolve, reject) => {\n    img.onload = () => resolve(img);\n    img.onerror = err => reject(err);\n\n    img.src = dataURI;\n  });\n}\n\nexport async function loadImageFromFile(file, contraints = {}) {\n  const img = await loadImage(await readFile(file));\n\n  if (!contraints || !contraints.max)\n    return img.src;\n\n  const canvas = document.createElement('canvas');\n  const ctx = canvas.getContext('2d');\n\n  const { width, height } = img;\n\n  let resizeHgt = height;\n  let resizeWdt = width;\n\n  if (width > height) {\n    if (width > contraints.max) {\n      resizeHgt = height * (contraints.max / width);\n      resizeWdt = contraints.max;\n    }\n  } else {\n    if (height > contraints.max) {\n      resizeHgt = contraints.max;\n      resizeWdt = width * (contraints.max / height);\n    }\n  }\n\n  canvas.width = resizeWdt;\n  canvas.height = resizeHgt;\n\n  ctx.drawImage(img, 0, 0, resizeWdt, resizeHgt);\n\n  return canvas.toDataURL(file.type);\n}\n","import Cropper from 'cropperjs';\nimport { Controller } from 'stimulus';\nimport { useDispatch } from 'stimulus-use';\n\nimport { useDirectUpload } from '../mixins';\nimport { loadImageFromFile } from '../../lib/image';\n\nexport default class extends Controller {\n  static targets = [\n    'button', 'box', 'field', 'image', 'input', 'message', 'placeholder', 'preview'\n  ];\n\n  static values = {\n    aspectRatio: Array, autoClose: Boolean\n  };\n\n  connect() {\n    useDispatch(this);\n    useDirectUpload(this);\n  }\n\n  get directUploadInput() {\n    return this.inputTarget;\n  }\n\n  async load() {\n    const [ file ] = this.inputTarget.files;\n\n    try {\n      const imgSrc = await loadImageFromFile(file, { max: 2400 });\n      const [ aspectRatioWidth, aspectRatioHeight ] = this.hasAspectRatioValue ? this.aspectRatioValue : [1, 1]\n\n      const data = {};\n\n      if (this.hasBoxTarget) {\n        Object.assign(data, {\n          width: this.boxTarget.offsetWidth,\n          height: this.boxTarget.offsetHeight,\n        });\n\n        this.boxTarget.style.height = `${data.height}px`;\n        this.boxTarget.style.width = `${data.width}px`;\n      }\n\n      this.filename = file.name;\n      this.imageTarget.src = imgSrc;\n\n      if (this.hasPlaceholderTarget) {\n        this.placeholderTarget.classList.add('hidden');\n      }\n\n      this.cropper = new Cropper(this.imageTarget, {\n        aspectRatio: aspectRatioWidth / aspectRatioHeight\n      });\n\n      this.buttonTarget.classList.remove('opacity-0', 'pointer-events-none');\n      this.inputTarget.value = '';\n    } catch(err) {\n      // TODO handle errors\n      console.warn(err);\n    }\n  }\n\n  async process(ev) {\n    ev.preventDefault();\n\n    this.cropper.getCroppedCanvas().toBlob(async (blob) => {\n      this.buttonTarget.classList.add('is-loading');\n      this.cropper.disable();\n\n      const attachment = await this.upload('crop_' + this.filename, blob);\n\n      this.buttonTarget.classList.remove('is-loading');\n\n      this.fieldTarget.disabled = false;\n      this.fieldTarget.value = attachment.signed_id;\n\n      this.imageTarget.src = '';\n      this.cropper.destroy();\n\n      const { form } = this.fieldTarget;\n\n      if (form) {\n        form.dispatchEvent(new CustomEvent('submit', { bubbles: true }));\n      }\n\n      if (!this.hasAutoCloseValue || this.autoCloseValue !== false) {\n        setTimeout(() => {\n          this.dispatch('close');\n        }, 250);\n      }\n    })\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce } from 'stimulus-use';\n\nconst filters = {\n  first: x => x.split(' ', 2).shift(),\n  none: x => x,\n};\n\n// TODO add support for multiple fields\nexport default class extends Controller {\n  static debounces = ['updateInput'];\n\n  static targets = ['input'];\n\n  static values = {\n    filter: String\n  };\n\n  connect() {\n    useDebounce(this);\n  }\n\n  updateInput(ev) {\n    const { target } = ev;\n\n    if (this.hasInputTarget) {\n      this.inputTarget.value = filters[this.filterValue || 'none'](target.value);\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useDispatch, useHotkeys, useTransition } from 'stimulus-use';\n\nimport ElementListener from '../../lib/element_listener';\n\n// TODO\n// set aria-controls attribute\n// set aria-selected attribute\n// set aria-activedescendant=\"headlessui-listbox-option-60\" as focus changes\n\nexport default class extends Controller {\n  static targets = ['arrow', 'button', 'menu', 'menuItem', 'overlay'];\n\n  static values = {\n    itemFocusClass: String,\n  };\n\n  connect() {\n    this.focusedIndex = -1;\n    this.itemFocusClasses = this.itemFocusClassValue.split(' ');\n\n    this.listener = new ElementListener(this.element, 'click', ev => {\n      if (this.opened) {\n        const path = event.composedPath ? event.composedPath() : event.path;\n\n        if ([...path].find(e => e && e.role === 'none')) {\n          this.closeMenu();\n        }\n      }\n    });\n\n    useClickOutside(this);\n    useDispatch(this);\n\n    // https://www.w3.org/TR/wai-aria-practices-1.2/#menubutton\n    // https://headlessui.dev/react/menu#keyboard-interaction\n    useHotkeys(this, {\n      'Enter': [this.onFocus],\n      'Space': [this.onFocus],\n      'Down': [this.onNextMenuItem],\n      'Up': [this.onPreviousMenuItem],\n      'Right': [this.onNextMenuItem],\n      'Left': [this.onPreviousMenuItem],\n      'Escape': [this.onEscapePress],\n      'Tab': [this.onTabPress],\n      'Shift+Tab': [this.onTabPress],\n    });\n\n    useTransition(this, {\n      element: this.menuTarget\n    });\n  }\n\n  disconnect() {\n    this.updateOverlay(false);\n    this.listener.remove();\n  }\n\n  openMenu() {\n    console.log('openMenu', this.menuTarget);\n\n    this.buttonTarget.setAttribute('aria-expanded', 'true');\n    this.buttonTarget.setAttribute('aria-controls', this.menuTarget.id);\n    this.updateOverlay(true);\n\n    this.buttonTarget.classList.remove('text-prussian-700');\n    this.buttonTarget.classList.add('bg-prussian-700', 'text-white');\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.add('-rotate-180');\n    }\n\n    requestAnimationFrame(async () => {\n      await this.enter();\n\n      this.opened = true;\n    });\n  }\n\n  closeMenu() {\n    console.log('closeMenu', this.menuTarget);\n\n    if (!this.opened)\n      return;\n\n    this.focusedIndex = -1;\n    this.opened = false;\n\n    this.buttonTarget.setAttribute('aria-expanded', 'false');\n    this.buttonTarget.removeAttribute('aria-controls');\n\n    this.updateFocus();\n    this.updateOverlay(false);\n\n    this.buttonTarget.classList.add('text-prussian-700');\n    this.buttonTarget.classList.remove('bg-prussian-700', 'text-white');\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.remove('-rotate-180');\n    }\n\n    requestAnimationFrame(() => {\n      this.leave();\n    });\n  }\n\n  updateFocus() {\n    console.log('updateFocus', this.focusedIndex);\n\n    this.menuItemTargets.forEach(item => item.classList.remove(...this.itemFocusClasses));\n\n    if (this.focusedIndex > -1) {\n      const item = this.menuItemTargets[this.focusedIndex]\n\n      item.classList.add(...this.itemFocusClasses);\n      item.focus();\n    }\n  }\n\n  updateOverlay(visible) {\n    if (this.hasOverlayTarget) {\n      if (visible) {\n        this.overlayTarget.classList.remove('hidden', 'opacity-0', 'pointer-events-none');\n\n        document.body.classList.add('overflow-y-hidden');\n      } else {\n        this.overlayTarget.classList.add('opacity-0', 'hidden', 'pointer-events-none');\n\n        document.body.classList.remove('overflow-y-hidden');\n      }\n    }\n  }\n\n  blur() {\n    console.log('blur');\n\n    this.focusedIndex = -1;\n    this.updateFocus();\n  }\n\n  focusFirstItem() {\n    console.log('focusFirstItem');\n\n    this.focusedIndex = 0;\n    this.updateFocus();\n  }\n\n\n  focusItem(ev) {\n    console.log('focusItem', ev);\n\n    this.focusedIndex = this.menuItemTargets.findIndex(item => item === ev.target);\n    this.updateFocus();\n  }\n\n  clickOutside(ev) {\n    if (this.transitioned) {\n      if (ev.target instanceof HTMLButtonElement && ev.target.type === 'submit') {\n        this.closeMenu();\n\n      } else {\n        ev.preventDefault();\n\n        this.closeMenu();\n      }\n    }\n  }\n\n  onClick() {\n    console.log('onClick');\n\n    if (this.transitioned) this.closeMenu();\n    else this.openMenu();\n  }\n\n  onEscapePress() {\n    console.log('onEscapePress');\n\n    this.closeMenu();\n  }\n\n  onFocus(ev) {\n    if (this.hasButtonTarget && this.buttonTarget === document.activeElement) {\n      ev.preventDefault();\n\n      this.openMenu();\n      this.focusFirstItem();\n    }\n  }\n\n  onTabPress() {\n    console.log('onTabPress');\n\n    setTimeout(() => {\n      if (this.focusedIndex > -1) {\n        this.closeMenu();\n      }\n    }, 1);\n  }\n\n  onNextMenuItem(ev) {\n    console.log('onNextMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex++;\n\n      if (this.focusedIndex == this.menuItemTargets.length) {\n        this.focusedIndex = 0; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n\n  onPreviousMenuItem(ev) {\n    console.log('onPreviousMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex--;\n\n      if (this.focusedIndex < 0) {\n        this.focusedIndex = this.menuItemTargets.length - 1; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['sectionOne', 'sectionTwo'];\n  static values = {\n    initView: String\n  }\n\n  connect() {\n    if (this.initViewValue == \"sectionTwo\") {\n      this.sectionTwoTarget.classList.remove('hidden');\n      this.sectionTwoTarget.style.opacity = 1;\n\n      this.sectionOneTarget.classList.add('hidden');\n      this.sectionOneTarget.style.opacity = 0;\n\n    };\n  }\n\n  viewSectionOne() {\n    this.sectionTwoTarget.style.transitionProperty = 'height, margin, padding';\n    this.sectionTwoTarget.style.transitionDuration = 500 + 'ms';\n    this.sectionTwoTarget.style.boxSizing = 'border-box';\n    this.sectionTwoTarget.style.height = this.sectionTwoTarget.offsetHeight + 'px';\n    this.sectionTwoTarget.offsetHeight;\n    this.sectionTwoTarget.style.overflow = 'hidden';\n    this.sectionTwoTarget.style.height = 0;\n    window.setTimeout( () => {\n          this.sectionTwoTarget.style.display = 'none';\n          this.sectionTwoTarget.style.removeProperty('height');\n          this.sectionTwoTarget.style.removeProperty('overflow');\n          this.sectionTwoTarget.style.removeProperty('transition-duration');\n          this.sectionTwoTarget.style.removeProperty('transition-property');\n          this.sectionTwoTarget.classList.add('hidden');\n          this.sectionOneTarget.classList.remove('hidden');\n    }, 500);\n  }\n\n  viewSectionTwo() {\n    this.sectionOneTarget.classList.add('hidden');\n    this.sectionTwoTarget.classList.remove('hidden');\n\n    this.sectionTwoTarget.style.removeProperty('display');\n    let display = window.getComputedStyle(this.sectionTwoTarget).display;\n    if (display === 'none') display = 'block';\n    this.sectionTwoTarget.style.display = display;\n    let height = this.sectionTwoTarget.offsetHeight;\n    this.sectionTwoTarget.style.overflow = 'hidden';\n    this.sectionTwoTarget.style.height = 0;\n    this.sectionTwoTarget.offsetHeight;\n    this.sectionTwoTarget.style.boxSizing = 'border-box';\n    this.sectionTwoTarget.style.transitionProperty = \"height, margin, padding\";\n    this.sectionTwoTarget.style.transitionDuration = 500 + 'ms';\n    this.sectionTwoTarget.style.height = height + 'px';\n    window.setTimeout( () => {\n      this.sectionTwoTarget.style.removeProperty('height');\n      this.sectionTwoTarget.style.removeProperty('overflow');\n      this.sectionTwoTarget.style.removeProperty('transition-duration');\n      this.sectionTwoTarget.style.removeProperty('transition-property');\n    }, 500);\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = [ \"source\", \"filterable\"]\n\n  connect() {\n  }\n\n  filter(event) {\n    let lowerCaseFilterTerm = this.sourceTarget.value.toLowerCase()\n\n    if (!this.sourceTarget.value) {\n      this.filterableTargets.forEach((el, i) => {\n        el.classList.add(\"hidden\")\n      })\n    } else {\n      this.filterableTargets.forEach((el, i) => {\n        let filterableKey =  el.getAttribute(\"data-filter-list-key\")\n\n        if (filterableKey.includes( lowerCaseFilterTerm )) {\n          el.classList.remove(\"hidden\")\n        } else {\n          el.classList.add(\"hidden\")\n        }\n      })\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDispatch, useVisibility } from 'stimulus-use';\n\nimport ElementListener from '../../lib/element_listener';\nimport { findParentWith } from '../../lib/dom';\n\nexport default class extends Controller {\n  static targets = ['message'];\n\n  get topMessage() {\n    return this.messageTargets[0];\n  }\n\n  connect() {\n    useDispatch(this);\n    useVisibility(this);\n\n    this.listener = new ElementListener(document.documentElement, 'turbo:before-stream-render', this.onBeforeStreamRender);\n\n    this.secondsCounted = 0;\n\n    this.frame = requestAnimationFrame(() => {\n      this.showNextMessage();\n      this.resume();\n    });\n  }\n\n  disconnect() {\n    this.listener.remove();\n\n    cancelAnimationFrame(this.frame);\n    clearInterval(this.timer);\n  }\n\n  pause() {\n    clearInterval(this.timer);\n  }\n\n  resume() {\n    clearInterval(this.timer);\n\n    if (this.messageTargets.length > 0) {\n      this.timer = setInterval(() => {\n        this.secondsCounted++;\n        this.tick();\n      }, 1000);\n    }\n  }\n\n  visible() {\n    this.resume();\n  }\n\n  invisible() {\n    clearInterval(this.timer);\n  }\n\n  showNextMessage() {\n    const target = this.topMessage;\n\n    if (target) {\n      this.dispatch('open', { target });\n    }\n  }\n\n  remove() {\n    const target = this.topMessage;\n\n    if (target) {\n      this.dispatch('close', { target });\n      this.frame = setTimeout(() => {\n        target.remove();\n\n        this.showNextMessage();\n        this.resume();\n      }, 110); // roughly after the transition\n    }\n  }\n\n  tick() {\n    if (this.secondsCounted === 6) {\n      this.secondsCounted = 0;\n      this.remove();\n    }\n  }\n\n  onBeforeStreamRender = (ev) => {\n    requestAnimationFrame(() => {\n      requestAnimationFrame(() => {\n        if (this.messageTargets.length > 0) {\n          this.showNextMessage();\n          this.resume();\n        }\n      });\n    });\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce, useDispatch } from 'stimulus-use';\n\nimport { useAutoFocusable } from '../mixins';\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  static debounces = ['submit'];\n  static targets = ['invisible'];\n\n  static values = {\n    keepOpen: Boolean\n  };\n\n  get formElement() {\n    return this.element.querySelector('form');\n  }\n\n  connect() {\n    this.listener = new ElementListener(document.documentElement, 'turbo:submit-end', this.onTurboSubmitEnd);\n\n    useAutoFocusable(this);\n    useDebounce(this);\n    useDispatch(this);\n  }\n\n  disconnect() {\n    this.listener.remove();\n  }\n\n  resetRadios(ev) {\n    ev.preventDefault();\n\n    const input = ev.currentTarget.parentElement.querySelector('input[type=\"radio\"]:checked');\n\n    if (input) {\n      input.checked = false\n    }\n  }\n\n  radioChanged(ev) {\n    const { target: { name, value } } = ev;\n\n    [...this.formElement.querySelectorAll(`input[data-radio-name=\"${name}\"]`)].forEach(input => {\n      if (input.dataset.radioValue === value) {\n        input.classList.add('opacity-100');\n      } else {\n        input.classList.remove('opacity-100');\n      }\n    });\n  }\n\n  toggleDisabledWithChecked(ev) {\n    const { target } = ev;\n    const { dataset: { fieldName } } = target;\n\n    if (fieldName) {\n      const input = target.form.querySelector(`input[name=\"${fieldName}\"]`);\n\n      input.disabled = target.checked;\n    }\n  }\n\n  submit = (ev) => {\n    this.formElement.dispatchEvent(new CustomEvent('submit', { bubbles: true }));\n  }\n\n  onTurboSubmitEnd = (event) => {\n    if (this.keepOpenValue === true)\n      return;\n\n    if (event.detail.success && event.detail.formSubmission.formElement === this.formElement) {\n      this.dispatch('close');\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = [\n    'container', 'image', 'indicator'\n  ];\n\n  connect() {\n    this.observer = new IntersectionObserver(this.updateIndicators, {\n      root: this.containerTarget, threshold: 0.5\n    })\n\n    this.imageTargets.forEach(image => this.observer.observe(image));\n  }\n\n  scrollTo(ev) {\n    const { currentTarget } = ev;\n    const index = [...currentTarget.parentElement.children].indexOf(currentTarget);\n    const image = this.containerTarget.children[index];\n\n    image.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n  }\n\n  updateIndicators = (entries) => {\n    if (!this.hasIndicatorTarget)\n      return;\n\n    entries.forEach(entry => {\n      const intersectingIndex = this.imageTargets.indexOf(entry.target);\n      const indicator = this.indicatorTargets[intersectingIndex];\n\n      if (entry.intersectionRatio > 0.5) {\n        indicator.classList.add('bg-primary-700');\n        indicator.classList.remove('bg-primary-100');\n      } else {\n        indicator.classList.add('bg-primary-100');\n        indicator.classList.remove('bg-primary-700');\n      }\n    })\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDispatch } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = [\n    'checkbox', 'input', 'inputalt'\n  ];\n\n  connect() {\n    useDispatch(this);\n\n    this.toggle();\n  }\n\n  toggle() {\n    if (this.checkboxTarget.checked) {\n      this.inputTarget.classList.add('hidden')\n\n      if (this.hasInputaltTarget)\n        this.inputaltTarget.classList.remove('hidden')\n    } else {\n      this.inputTarget.classList.remove('hidden')\n\n      if (this.hasInputaltTarget)\n        this.inputaltTarget.classList.add('hidden')\n    }\n\n    this.dispatch('toggled');\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce } from 'stimulus-use';\n\nexport default class extends Controller {\n  static debounces = ['updateInput'];\n\n  static targets = ['copyInput','input'];\n\n  connect() {\n    useDebounce(this);\n\n    this.setCopyInputs()\n  }\n\n  updateInput(ev) {\n    const { target } = ev;\n\n    this.copyInputTargets.forEach((copyInput) => {\n      if (copyInput.id.includes(target.id.concat(\"-copy\"))) {\n        copyInput.value = target.value;\n      }\n    })\n  }\n\n  setCopyInputs(){\n    this.inputTargets.forEach((input) => {\n      this.copyInputTargets.forEach((copyInput) => {\n        if (copyInput.id.includes(input.id.concat(\"-copy\"))) {\n          copyInput.value = input.value;\n        }\n      })\n    });\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce } from 'stimulus-use';\n\nexport default class extends Controller {\n  static debounces = ['updateInput'];\n\n  static targets = ['copyInput','button'];\n\n  connect() {\n    useDebounce(this);\n  }\n\n  updateInput(ev) {\n    const { target } = ev;\n\n    this.copyInputTarget.value = target.innerText;\n\n    this.buttonTarget.click()\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useHotkeys } from 'stimulus-use';\n\n// TODO this is incomplete and should be connected with form inputs\nexport default class extends Controller {\n  static targets = ['button', 'list', 'listItem'];\n  static values = { itemFocusClass: String };\n\n  get selectedListItem() {\n    return this.listItemTargets.find(item => item.getAttribute('aria-selected') === 'true');\n  }\n\n  connect() {\n    this.focusedIndex = -1;\n    this.itemFocusClasses = this.itemFocusClassValue.split(' ');\n    this.initialSelectedListItem = this.selectedListItem;\n\n    useClickOutside(this);\n\n    // https://headlessui.dev/react/listbox#accessibility-notes\n    useHotkeys(this, {\n      'Enter': [this.onFocus],\n      'Space': [this.onFocus],\n      'Down': [this.onNextMenuItem],\n      'Up': [this.onPreviousMenuItem],\n      'Right': [this.onNextMenuItem],\n      'Left': [this.onPreviousMenuItem],\n      'Escape': [this.onEscapePress],\n      // TODO\n      // add Home and End for first/last focus\n      // A-Z and a-z for first item that matches keyboard input\n    });\n  }\n\n  toggle() {\n    if (this.focusedIndex === -1) {\n      this.expand();\n    } else {\n      this.collapse();\n    }\n  }\n\n  expand() {\n    this.buttonTarget.setAttribute('aria-expanded', 'true');\n    this.buttonTarget.setAttribute('aria-controls', this.listTarget.id);\n\n    this.listTarget.classList.remove('opacity-0', 'pointer-events-none');\n\n    this.focusedIndex = [...this.listTarget.children].indexOf(this.selectedListItem);\n  }\n\n  collapse() {\n    this.buttonTarget.setAttribute('aria-expanded', 'false');\n    this.buttonTarget.removeAttribute('aria-controls');\n\n    this.listTarget.classList.add('opacity-0', 'pointer-events-none');\n    this.listTarget.removeAttribute('aria-activedescendant');\n\n    this.focusedIndex = -1;\n    this.updateFocus();\n\n    this.initialSelectedListItem.setAttribute('aria-selected', 'true');\n    this.initialSelectedListItem.classList.add(...this.itemFocusClasses);\n  }\n\n  clickOutside(ev) {\n    if (this.focusedIndex > -1) {\n      this.collapse();\n    }\n  }\n\n  updateFocus() {\n    this.listItemTargets.forEach(item => {\n      item.classList.remove(...this.itemFocusClasses)\n      item.removeAttribute('aria-selected');\n    });\n\n    if (this.focusedIndex > -1) {\n      const item = this.listItemTargets[this.focusedIndex]\n\n      this.listTarget.setAttribute('aria-activedescendant', item.id);\n\n      item.setAttribute('aria-selected', 'true');\n      item.classList.add(...this.itemFocusClasses);\n      item.focus();\n    }\n  }\n\n  onEscapePress() {\n    this.collapse();\n  }\n\n  // TODO this is specific to anchor elements and links\n  onFocus() {\n    const item = this.listItemTargets[this.focusedIndex];\n\n    if (item) {\n      const anchor = item.querySelector('a');\n\n      if (anchor)\n        anchor.click();\n    }\n  }\n\n  onNextMenuItem(ev) {\n    if (this.focusedIndex > -1) {\n      this.focusedIndex++;\n\n      if (this.focusedIndex == this.listItemTargets.length) {\n        this.focusedIndex = 0; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n\n  onPreviousMenuItem(ev) {\n    if (this.focusedIndex > -1) {\n      this.focusedIndex--;\n\n      if (this.focusedIndex < 0) {\n        this.focusedIndex = this.listItemTargets.length - 1; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\n// TODO disable for sync frames within engagements\nexport default class extends Controller {\n  static targets = ['svg'];\n\n  get docEl() {\n    return document.documentElement;\n  }\n\n  connect() {\n    this.docEl.addEventListener('turbo:before-fetch-request', this.beforeFetchRequest, false);\n    this.docEl.addEventListener('turbo:before-fetch-response', this.beforeFetchResponse, false);\n    this.docEl.addEventListener('turbo:frame-render', this.beforeFrameRender, false);\n  }\n\n  disconnect() {\n    this.docEl.removeEventListener('turbo:before-fetch-request', this.beforeFetchRequest, false);\n    this.docEl.removeEventListener('turbo:before-fetch-response', this.beforeFetchResponse, false);\n    this.docEl.removeEventListener('turbo:frame-render', this.beforeFrameRender, false);\n  }\n\n  showLoader = () => {\n    //console.log('showLoader');\n\n    this.svgTarget.classList.remove('is-spinning');\n\n    requestAnimationFrame(() => {\n      if (this.docEl.querySelector('#success-modal') != null)\n        return;\n\n      this.element.classList.add('opacity-100');\n      this.svgTarget.classList.add('is-spinning');\n    });\n  }\n\n  hideLoader = () => {\n    //console.log('hideLoader');\n\n    this.element.classList.remove('opacity-100');\n  }\n\n  beforeFetchRequest = ev => {\n    //console.log(ev.type);\n\n    clearTimeout(this.timer);\n\n    this.timer = setTimeout(this.showLoader, 200);\n  }\n\n  beforeFetchResponse = ev => {\n    //console.log(ev.type);\n\n    clearTimeout(this.timer);\n\n    this.hideLoader();\n  }\n\n  beforeFrameRender = ev => {\n    //console.log(ev.type);\n\n    this.hideLoader();\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useDispatch, useHotkeys, useTransition } from 'stimulus-use';\n\nimport ElementListener from '../../lib/element_listener';\n\n// TODO\n// set aria-controls attribute\n// set aria-selected attribute\n// set aria-activedescendant=\"headlessui-listbox-option-60\" as focus changes\n\nexport default class extends Controller {\n  static targets = ['arrow', 'button', 'menu', 'menuItem', 'overlay'];\n\n  static values = {\n    itemFocusClass: String,\n  };\n\n  connect() {\n    this.focusedIndex = -1;\n    this.itemFocusClasses = this.itemFocusClassValue.split(' ');\n\n    this.listener = new ElementListener(this.element, 'click', ev => {\n      if (this.opened) {\n        const path = event.composedPath ? event.composedPath() : event.path;\n\n        if ([...path].find(e => e && e.role === 'none')) {\n          this.closeMenu();\n        }\n      }\n    });\n\n    useClickOutside(this);\n    useDispatch(this);\n\n    // https://www.w3.org/TR/wai-aria-practices-1.2/#menubutton\n    // https://headlessui.dev/react/menu#keyboard-interaction\n    useHotkeys(this, {\n      'Enter': [this.onFocus],\n      'Space': [this.onFocus],\n      'Down': [this.onNextMenuItem],\n      'Up': [this.onPreviousMenuItem],\n      'Right': [this.onNextMenuItem],\n      'Left': [this.onPreviousMenuItem],\n      'Escape': [this.onEscapePress],\n      'Tab': [this.onTabPress],\n      'Shift+Tab': [this.onTabPress],\n    });\n\n    useTransition(this, {\n      element: this.menuTarget\n    });\n  }\n\n  disconnect() {\n    this.updateOverlay(false);\n    this.listener.remove();\n  }\n\n  openMenu() {\n    //console.log('openMenu', this.menuTarget);\n\n    this.buttonTarget.setAttribute('aria-expanded', 'true');\n    this.buttonTarget.setAttribute('aria-controls', this.menuTarget.id);\n    this.updateOverlay(true);\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.add('-rotate-180');\n    }\n\n    requestAnimationFrame(async () => {\n      await this.enter();\n\n      this.opened = true;\n    });\n  }\n\n  closeMenu() {\n    //console.log('closeMenu', this.menuTarget);\n\n    if (!this.opened)\n      return;\n\n    this.focusedIndex = -1;\n    this.opened = false;\n\n    this.buttonTarget.setAttribute('aria-expanded', 'false');\n    this.buttonTarget.removeAttribute('aria-controls');\n\n    this.updateFocus();\n    this.updateOverlay(false);\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.remove('-rotate-180');\n    }\n\n    requestAnimationFrame(() => {\n      this.leave();\n    });\n  }\n\n  updateFocus() {\n    //console.log('updateFocus', this.focusedIndex);\n\n    this.menuItemTargets.forEach(item => item.classList.remove(...this.itemFocusClasses));\n\n    if (this.focusedIndex > -1) {\n      const item = this.menuItemTargets[this.focusedIndex]\n\n      item.classList.add(...this.itemFocusClasses);\n      item.focus();\n    }\n  }\n\n  updateOverlay(visible) {\n    if (this.hasOverlayTarget) {\n      if (visible) {\n        this.overlayTarget.classList.remove('hidden', 'opacity-0', 'pointer-events-none');\n\n        document.body.classList.add('overflow-y-hidden');\n      } else {\n        this.overlayTarget.classList.add('opacity-0', 'hidden', 'pointer-events-none');\n\n        document.body.classList.remove('overflow-y-hidden');\n      }\n    }\n  }\n\n  blur() {\n    //console.log('blur');\n\n    this.focusedIndex = -1;\n    this.updateFocus();\n  }\n\n  focusFirstItem() {\n    //console.log('focusFirstItem');\n\n    this.focusedIndex = 0;\n    this.updateFocus();\n  }\n\n\n  focusItem(ev) {\n    //console.log('focusItem', ev);\n\n    this.focusedIndex = this.menuItemTargets.findIndex(item => item === ev.target);\n    this.updateFocus();\n  }\n\n  clickOutside(ev) {\n    if (this.transitioned) {\n      if (ev.target instanceof HTMLButtonElement && ev.target.type === 'submit') {\n        this.closeMenu();\n\n      } else {\n        ev.preventDefault();\n\n        this.closeMenu();\n      }\n    }\n  }\n\n  onClick() {\n    console.log('onClick');\n\n    if (this.transitioned) this.closeMenu();\n    else this.openMenu();\n  }\n\n  onEscapePress() {\n    //console.log('onEscapePress');\n\n    this.closeMenu();\n  }\n\n  onFocus(ev) {\n    if (this.hasButtonTarget && this.buttonTarget === document.activeElement) {\n      ev.preventDefault();\n\n      this.openMenu();\n      this.focusFirstItem();\n    }\n  }\n\n  onTabPress() {\n    //console.log('onTabPress');\n\n    setTimeout(() => {\n      if (this.focusedIndex > -1) {\n        this.closeMenu();\n      }\n    }, 1);\n  }\n\n  onNextMenuItem(ev) {\n    //console.log('onNextMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex++;\n\n      if (this.focusedIndex == this.menuItemTargets.length) {\n        this.focusedIndex = 0; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n\n  onPreviousMenuItem(ev) {\n    //console.log('onPreviousMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex--;\n\n      if (this.focusedIndex < 0) {\n        this.focusedIndex = this.menuItemTargets.length - 1; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useMeta } from 'stimulus-use';\n\nimport mixpanel from 'mixpanel-browser';\n\nexport default class extends Controller {\n  static metaNames = ['mppt'];\n\n  static values = {\n    name: String, properties: Object\n  };\n\n  connect() {\n    useMeta(this);\n\n    if (window.location.pathname.startsWith('/admins/'))\n      return;\n\n    mixpanel.init(this.mpptMeta, { debug: this.application.__debug });\n    mixpanel.track(this.nameValue, this.propertiesValue, {transport: 'sendBeacon'});\n\n    const style = 'color:white; background-color: #022F4C; padding: 0.25em 0.5em';\n\n    console.group(`Mixpanel Event %c${this.nameValue}`, style);\n\n    if (Object.keys(this.propertiesValue).length > 0) {\n      console.table(this.propertiesValue);\n    }\n\n    console.groupEnd();\n\n    this.element.remove();\n  }\n}\n","import { Controller } from \"stimulus\";\nimport { useDispatch, useHotkeys, useTransition } from 'stimulus-use';\n\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  static targets = ['modal'];\n  static values = {\n    opened: Boolean,\n    disableScroll: Boolean,\n  };\n\n  connect() {\n    this.opened = this.openedValue;\n\n    this.listeners = [\n      new ElementListener(document.documentElement, 'application:openModal', this.onModalOpen),\n      new ElementListener(document.documentElement, 'application:closeModal', this.onModalClose),\n    ];\n\n    useDispatch(this);\n\n    // https://www.w3.org/TR/wai-aria-practices-1.2/#dialog_modal\n    // https://headlessui.dev/react/dialog#keyboard-interaction\n    useHotkeys(this, {\n      'Tab': [this.onNextFocusItem],\n      'Shift+Tab': [this.onPreviousFocusItem],\n      'Escape': [this.onEscape]\n    });\n\n    if (this.opened) {\n      if (this.hasDisableScrollValue && this.disableScrollValue !== false) {\n        document.body.classList.add('overflow-y-hidden');\n      } else if (!this.hasDisableScrollValue) {\n        document.body.classList.add('overflow-y-hidden');\n      }\n\n      requestAnimationFrame(() => {\n        this.dispatch('opened', { modalId: this.id });\n      });\n    }\n  }\n\n  disconnect() {\n    this.listeners.forEach(l => l.remove());\n  }\n\n  get focusableElementsAndIndex() {\n    const elements = Array.from(this.element.querySelectorAll(\n      'button, a[href], input[type=\"text\"], input[type=\"number\"], input[type=\"email\"], textarea'\n    ));\n\n    return [\n      elements, elements.findIndex(e => e === document.activeElement)\n    ];\n  }\n\n  get id() {\n    return this.data.get('id');\n  }\n\n  open() {\n    if (!this.hasModalTarget) {\n      console.warn('ModalController is missing its \"modal\" target', this.element);\n\n      return;\n    }\n\n    document.body.classList.add('overflow-y-hidden');\n\n    this.opened = true;\n    this.dispatch('opened', { modalId: this.id });\n  }\n\n  close(ev) {\n    if (!this.opened)\n      return;\n\n    if (ev && ev.preventDefault && ev.target.type !== 'submit')\n      ev.preventDefault();\n\n    document.body.classList.remove('overflow-y-hidden');\n\n    this.opened = false;\n    this.dispatch('closed', { modalId: this.id });\n  }\n\n  remove() {\n    this.element.remove();\n  }\n\n  onModalOpen = (ev) => {\n    if (ev.detail.modalId === this.element.dataset.modalId) {\n      this.open();\n    }\n  }\n\n  onModalClose = (ev) => {\n    if (ev.detail.modalId === this.element.dataset.modalId) {\n      this.close();\n    }\n  }\n\n  onNextFocusItem(ev) {\n    if (this.opened) {\n      const [elements, index] = this.focusableElementsAndIndex;\n\n      ev.preventDefault();\n\n      if (index < 0 || index === elements.length - 1) elements[0].focus();\n      else elements[index + 1].focus();\n    }\n  }\n\n  onPreviousFocusItem(ev) {\n    if (this.opened) {\n      const [elements, index] = this.focusableElementsAndIndex;\n\n      ev.preventDefault();\n\n      if (index === 0) elements[elements.length - 1].focus();\n      else elements[index - 1].focus();\n    }\n  }\n\n  onEscape(ev) {\n    if (this.opened) {\n      ev.preventDefault();\n\n      this.close();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useDebounce, useMemo, useTransition } from 'stimulus-use';\nimport { useDispatch } from 'stimulus-use'\n\nimport { useFloatingPopups } from '../mixins';\n\nimport ElementListener from '../../lib/element_listener';\n\nconst STOP_WORDS = new RegExp(\n  '^(i|we|it|its|itself|they|what|which|who|whom|this|that|these|those|am|is|are|was|were|be|been|being|have|has|had|having|do|does|did|doing|a|an|the|and|but|if|or|because|as|until|while|of|at|by|for|with|about|against|between|into|through|during|before|after|above|below|to|from|up|down|in|out|on|off|over|under|again|further|then|once|here|there|when|where|why|how|all|any|both|each|few|more|most|other|some|such|no|nor|not|only|own|same|so|than|too|very|can|will|just|should|now|they|them|their|theirs)$', 'i'\n);\n\nwindow.STOP_WORDS = STOP_WORDS;\n\nexport default class extends Controller {\n  static debounces = [\n    'performSearch', 'onNextFocusItem', 'onPreviousFocusItem', 'onScroll'\n  ];\n\n  static memos = ['optionTexts', 'optionValues'];\n  static targets = [\n    'arrow', 'limitMessage', 'input', 'template', 'option', 'suggested', 'pool', 'popup', 'placeholder'\n  ];\n\n  static values = {\n    defaultTextClass: String,\n    focusedBgClass: String,\n    focusedTextClass: String,\n    limit: Number,\n    tagIds: Array,\n    visible: String\n  };\n\n  get optionTexts() {\n    return this.optionTargets.map(\n      opt => opt.textContent.normalize('NFD')\n        .replace(/\\.,/g, '')\n        .split(/\\s+/)\n        .filter(word => !STOP_WORDS.test(word))\n        .join(' ').trim().toLowerCase()\n    );\n  }\n\n  get optionValues() {\n    return this.optionTargets.map(opt => +opt.dataset.value);\n  }\n\n  get focusedOptions() {\n    return Array.from(this.element.querySelectorAll('li[aria-selected=\"true\"]'));\n  }\n\n  connect() {\n    this.availableIndexes = new Set();\n    this.selectedIds = new Set(Array.from(this.tagIdsValue));\n    this.focusedItemIndex = -1;\n\n    useClickOutside(this);\n    useDebounce(this);\n    useFloatingPopups(this, { displaceSelector: 'fieldset' });\n    useMemo(this);\n    useTransition(this, { element: this.popupTarget });\n    useDispatch(this)\n\n    if (this.hasPlaceholderTarget && this.selectedIds.size < 1) {\n      this.placeholderTarget.classList.remove('opacity-0');\n    }\n\n    this.selectedIds.forEach(id => {\n      const node = this.element.querySelector(`li[data-value=\"${id}\"]`);\n\n      if (node) {\n        this.addSelectedNode(node.dataset.label, id);\n      }\n    });\n\n    this.limitMessageTarget.classList.add('hidden');\n    this.updateLimit();\n\n    this.listener = new ElementListener(this.scrollRoot, 'scroll', this.onScroll);\n\n    requestAnimationFrame(() => {\n      this.positionPopup();\n    });\n  }\n\n  disconnect() {\n    this.listener.remove();\n  }\n\n  addSelectedNode(label, value) {\n    const node = this.templateTarget.content.cloneNode(true);\n\n    node.querySelector('span').innerText = label;\n    node.querySelector('button').value = value;\n    node.querySelector('input').value = value;\n\n    this.poolTarget.insertBefore(node, this.inputTarget);\n\n    if (this.hasSuggestedTarget) {\n      const suggestedButton = this.suggestedTarget.querySelector(`button[data-value=\"${value}\"]`);\n\n      if (suggestedButton) {\n        suggestedButton.remove();\n      }\n    }\n  }\n\n  addSuggested(ev) {\n    ev.preventDefault();\n\n    const { target: { value } } = ev;\n\n    addSe\n  }\n\n  changeInput() {\n    const { value } = this.inputTarget;\n\n    if (this.hasPlaceholderTarget) {\n      if (value.length > 0) {\n        this.placeholderTarget.classList.add('opacity-0');\n      } else if (this.selectedIds.size < 1) {\n        this.placeholderTarget.classList.remove('opacity-0');\n      }\n    }\n\n    this.search = value.toString().trim().toLowerCase();\n\n    this.performSearch();\n  }\n\n  async close() {\n    this.focusedItemIndex = -1;\n    this.inputTarget.value = '';\n    this.search = undefined;\n\n    if (this.hasPlaceholderTarget) {\n      if (this.selectedIds.size < 1) {\n        this.placeholderTarget.classList.remove('opacity-0');\n      } else {\n        this.placeholderTarget.classList.add('opacity-0');\n      }\n    }\n\n    await this.leave();\n\n    this.arrowTarget.classList.remove('rotate-180');\n    this.arrowTarget.setAttribute('aria-expanded', 'false');\n\n    // TODO this is not resetting scroll\n    this.popupTarget.scrollTop = 0;\n    this.positionPopup();\n  }\n\n  clickArrow() {\n    if (this.search !== undefined) {\n      this.close();\n\n    } else {\n      this.search = '';\n      this.performSearch(true);\n    }\n  }\n\n  clickOutside(ev) {\n    if (this.search !== undefined) {\n      ev.preventDefault();\n\n      this.close();\n    }\n  }\n\n  focusContainer() {\n    this.inputTarget.focus();\n  }\n\n  hoverOption(ev) {\n    if (this.scrolling !== undefined)\n      return;\n\n    const index = [...this.availableIndexes].indexOf(this.optionTargets.indexOf(ev.currentTarget));\n\n    this.updateFocus(index);\n  }\n\n  keypressInput(ev) {\n    if (ev.key === 'ArrowDown') {\n      ev.preventDefault();\n\n      this.onNextFocusItem();\n    } else if (ev.key === 'ArrowUp') {\n      ev.preventDefault();\n\n      this.onPreviousFocusItem();\n    } else if (ev.key === 'Enter') {\n      ev.preventDefault();\n\n      this.onFocusSelected(ev);\n    } else if (ev.key === 'Backspace' && ev.currentTarget.value.length === 0) {\n      ev.preventDefault();\n\n      this.onBackspaceRemove();\n    } else if (ev.key === 'Escape') {\n      this.inputTarget.blur();\n    }\n  }\n\n  updateLimit() {\n    if (this.selectedIds.size <= this.limitValue) {\n      this.inputTarget.disabled = false;\n      this.limitMessageTarget.classList.add('hidden');\n    } else {\n      this.inputTarget.disabled = true;\n      this.limitMessageTarget.classList.remove('hidden');\n    }\n  }\n\n  performSearch(allowEmptySearch = false) {\n    // Reset the available set\n    this.availableIndexes.clear();\n\n    if (this.search !== '' || allowEmptySearch === true) {\n      this.optionTexts.forEach((text, index) => {\n        if (!this.selectedIds.has(this.optionValues[index]) && text.includes(this.search)) {\n          this.availableIndexes.add(index);\n        }\n      });\n    }\n\n    this.updateFocus(-1);\n    this.renderMenu();\n  }\n\n  renderMenu() {\n    if (this.renderId)\n      cancelAnimationFrame(this.renderId);\n\n    if (this.availableIndexes.size > 0) {\n      this.arrowTarget.classList.add('rotate-180');\n      this.arrowTarget.setAttribute('aria-expanded', 'true');\n\n      this.enter();\n    } else {\n      this.arrowTarget.classList.remove('rotate-180');\n      this.arrowTarget.setAttribute('aria-expanded', 'false');\n\n      this.leave();\n    }\n\n    this.renderId = requestAnimationFrame(() => {\n      this.optionTargets.forEach((opt, index) => {\n        opt.className = (\n          this.availableIndexes.has(index) ? this.visibleValue : 'hidden'\n        );\n      });\n\n      delete this.renderId;\n    });\n  }\n\n  async removeOption(ev) {\n    ev.preventDefault();\n\n    await this.close();\n\n    if (ev.currentTarget) {\n      this.selectedIds.delete(+ev.currentTarget.value);\n\n      ev.currentTarget.parentElement.remove();\n\n      this.updateLimit();\n      this.positionPopup();\n    }\n\n    if (this.hasPlaceholderTarget && this.selectedIds.size < 1) {\n      this.placeholderTarget.classList.remove('opacity-0');\n    }\n    this.dispatch('tag-removed')\n  }\n\n  async selectOption(ev) {\n    ev.preventDefault();\n\n    const { dataset: { value } } = ev.currentTarget;\n\n    if (value !== '' || value !== null) {\n      const id = +value;\n\n      if (!this.selectedIds.has(id)) {\n        this.selectedIds.add(id);\n        this.addSelectedNode(ev.currentTarget.dataset.label, id);\n        this.updateLimit();\n      }\n\n      await this.close();\n    }\n    this.dispatch('tag-selected')\n  }\n\n  // TODO refactor this to be less specific to DOM structure and the option\n  // HTML\n  updateFocus(newIndex, scrollTo = false) {\n    this.focusedOptions.forEach(li => {\n      const descNode = li.querySelector('p:nth-child(2)');\n\n      if (descNode) {\n        descNode.classList.remove(this.focusedTextClassValue);\n        descNode.classList.add(this.defaultTextClassValue);\n      }\n\n      li.classList.remove(this.focusedBgClassValue, this.focusedTextClassValue);\n      li.setAttribute('aria-selected', 'false');\n    });\n\n    if (newIndex === -1) {\n      this.focusedItemIndex = newIndex;\n      return;\n    }\n\n    const node = this.optionTargets[[...this.availableIndexes][newIndex]];\n\n    if (!node)\n      return;\n\n    const descNode = node.querySelector('p:nth-child(2)');\n\n    this.focusedItemIndex = newIndex;\n\n    if (descNode) {\n      descNode.classList.remove(this.defaultTextClassValue);\n      descNode.classList.add(this.focusedTextClassValue);\n    }\n\n    node.classList.add(this.focusedBgClassValue, this.focusedTextClassValue);\n    node.setAttribute('aria-selected', 'true');\n\n    this.popupTarget.setAttribute('aria-activedescendant', node.id);\n\n    if (scrollTo) {\n      node.scrollIntoView({ behavior: 'smooth', block: 'end', inline: 'nearest' });\n\n      if (this.scrolling)\n        clearTimeout(this.scrolling);\n\n      this.scrolling = setTimeout(() => {\n        this.scrolling = undefined;\n      }, 250);\n    }\n  }\n\n  async onBackspaceRemove() {\n    await this.close();\n\n    if (this.selectedIds.size > 0) {\n      this.selectedIds.delete([...this.selectedIds].pop());\n      this.poolTarget.querySelector('div:last-of-type').remove();\n\n      this.updateLimit();\n      this.positionPopup();\n    }\n  }\n\n  async onFocusSelected(ev) {\n    const option = this.optionTargets[[...this.availableIndexes][this.focusedItemIndex]];\n\n    if (option) {\n      const id = +option.dataset.value;\n\n      this.selectedIds.add(id);\n      this.addSelectedNode(option.dataset.label, id);\n\n      await this.close();\n    }\n  }\n\n  onNextFocusItem = () => {\n    this.updateFocus(this.focusedItemIndex + 1, true);\n  }\n\n  onPreviousFocusItem = () => {\n    this.updateFocus(this.focusedItemIndex - 1, true);\n  }\n\n  onScroll = () => {\n    this.positionPopup();\n  }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n  // filesTarget is going to contain the list of input elements we've added\n  // files to - these are the input elements that we're going to submit.\n  static targets = [\"files\"]\n\n  addFile(event) {\n    // Grab some references for later\n    const originalInput = event.target\n    const originalParent = originalInput.parentNode\n\n    // Create a new input field to use going forward\n    const newInput = originalInput.cloneNode()\n\n    // Clear the filelist - some browsers maintain the filelist when cloning,\n    // others don't\n    newInput.value = \"\";\n\n    // Remove the \"no files selected\" text\n    newInput.style.width = \"97px\";\n    newInput.title = \"\";\n\n    // Clear parent and add new input to the DOM where the original input was\n    originalParent.innerHTML = \"\";\n    originalParent.append(newInput)\n\n    // Loop through all the files and let each one be its own input field\n    this.files = Array.from(event.target.files)\n\n    for (var i = 0; i < this.files.length; i++) {\n      // Create an element that contains our input element\n      let selectedFile = document.createElement(\"div\")\n      selectedFile.classList.add(\"border\", \"rounded-md\", \"p-4\", \"flex\", \"justify-between\")\n\n      let inputNode = document.createElement(\"input\");\n      inputNode.setAttribute('type', 'file');\n      inputNode.setAttribute('multiple', 'multiple');\n      inputNode.setAttribute('name', originalInput.name);\n      inputNode.classList.add(\"hidden\")\n      selectedFile.append(inputNode)\n\n      // Set that input to one of the files in the FileList\n      let dt = new DataTransfer();\n      dt.items.add(this.files[i])\n      selectedFile.children[0].files = dt.files\n      console.log(selectedFile.children[0].files)\n\n      // Create label (the visible part of the new input element) with the name of\n      // the file.\n      let labelNode = document.createElement(\"label\");\n      let textElement = document.createTextNode(this.files[i].name);\n      labelNode.appendChild(textElement);\n      selectedFile.appendChild(labelNode);\n\n      // Create trash can icon\n      const iconSvg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n      const iconPath = document.createElementNS(\n        'http://www.w3.org/2000/svg',\n        'path'\n      );\n\n      iconSvg.setAttribute('fill', 'none');\n      iconSvg.setAttribute('viewBox', '0 0 24 24');\n      iconSvg.setAttribute('stroke', 'currentColor');\n      iconSvg.classList.add('w-5', 'h-5', 'text-indicator-red', \"pointer-events-none\");\n\n      iconPath.setAttribute(\n        'd',\n        'M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16'\n      );\n      iconPath.setAttribute('stroke-linecap', 'round');\n      iconPath.setAttribute('stroke-linejoin', 'round');\n      iconPath.setAttribute('stroke-width', '2');\n\n      iconSvg.appendChild(iconPath);\n\n      // Create button with trash can\n      let buttonNode = document.createElement(\"button\");\n      buttonNode.classList.add(\"items-center\")\n      buttonNode.setAttribute('data-action', \"multi-upload#removeFile\");\n      buttonNode.setAttribute('type', \"button\");\n      buttonNode.appendChild(iconSvg);\n      selectedFile.appendChild(buttonNode);\n\n      // Add the selected file to the list of selected files\n      this.filesTarget.append(selectedFile)\n    }\n  }\n\n  removeFile(event) {\n    const selectedFile = event.target\n    const selectedFileParent = selectedFile.parentNode\n\n    selectedFileParent.remove()\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useDispatch, useHotkeys, useTransition } from 'stimulus-use';\n\nimport ElementListener from '../../lib/element_listener';\n\n// TODO\n// set aria-controls attribute\n// set aria-selected attribute\n// set aria-activedescendant=\"headlessui-listbox-option-60\" as focus changes\n\nexport default class extends Controller {\n  static targets = ['arrow', 'button', 'menu', 'menuItem', 'overlay'];\n\n  static values = {\n    itemFocusClass: String,\n  };\n\n  connect() {\n    this.focusedIndex = -1;\n    this.itemFocusClasses = this.itemFocusClassValue.split(' ');\n\n    this.listener = new ElementListener(this.element, 'click', ev => {\n      if (this.opened) {\n        const path = event.composedPath ? event.composedPath() : event.path;\n\n        if ([...path].find(e => e && e.role === 'none')) {\n          this.closeMenu();\n        }\n      }\n    });\n\n    useClickOutside(this);\n    useDispatch(this);\n\n    // https://www.w3.org/TR/wai-aria-practices-1.2/#menubutton\n    // https://headlessui.dev/react/menu#keyboard-interaction\n    useHotkeys(this, {\n      'Enter': [this.onFocus],\n      'Space': [this.onFocus],\n      'Down': [this.onNextMenuItem],\n      'Up': [this.onPreviousMenuItem],\n      'Right': [this.onNextMenuItem],\n      'Left': [this.onPreviousMenuItem],\n      'Escape': [this.onEscapePress],\n      'Tab': [this.onTabPress],\n      'Shift+Tab': [this.onTabPress],\n    });\n\n    useTransition(this, {\n      element: this.menuTarget\n    });\n  }\n\n  disconnect() {\n    this.updateOverlay(false);\n    this.listener.remove();\n  }\n\n  openMenu() {\n    //console.log('openMenu', this.menuTarget);\n\n    this.buttonTarget.setAttribute('aria-expanded', 'true');\n    this.buttonTarget.setAttribute('aria-controls', this.menuTarget.id);\n    this.updateOverlay(true);\n\n    this.buttonTarget.classList.add('border-b-2', 'border-b-prussian-900', 'border-t-2', 'border-t-white');\n    this.buttonTarget.classList.remove('hover:border-b-2', 'hover:border-b-kashmir-700', 'hover:border-t-2', 'hover:border-t-white');\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.add('-rotate-180');\n    }\n\n    requestAnimationFrame(async () => {\n      await this.enter();\n\n      this.opened = true;\n    });\n  }\n\n  closeMenu() {\n    //console.log('closeMenu', this.menuTarget);\n\n    if (!this.opened)\n      return;\n\n    this.focusedIndex = -1;\n    this.opened = false;\n\n    this.buttonTarget.setAttribute('aria-expanded', 'false');\n    this.buttonTarget.removeAttribute('aria-controls');\n\n    this.updateFocus();\n    this.updateOverlay(false);\n\n    this.buttonTarget.classList.remove('border-b-2', 'border-b-prussian-900', 'border-t-2', 'border-t-white');\n    this.buttonTarget.classList.add('hover:border-b-2', 'hover:border-b-kashmir-700', 'hover:border-t-2', 'hover:border-t-white');\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.remove('-rotate-180');\n    }\n\n    requestAnimationFrame(() => {\n      this.leave();\n    });\n  }\n\n  updateFocus() {\n    //console.log('updateFocus', this.focusedIndex);\n\n    this.menuItemTargets.forEach(item => item.classList.remove(...this.itemFocusClasses));\n\n    if (this.focusedIndex > -1) {\n      const item = this.menuItemTargets[this.focusedIndex]\n\n      item.classList.add(...this.itemFocusClasses);\n      item.focus();\n    }\n  }\n\n  updateOverlay(visible) {\n    if (this.hasOverlayTarget) {\n      if (visible) {\n        this.overlayTarget.classList.remove('hidden', 'opacity-0', 'pointer-events-none');\n\n        document.body.classList.add('overflow-y-hidden');\n      } else {\n        this.overlayTarget.classList.add('opacity-0', 'hidden', 'pointer-events-none');\n\n        document.body.classList.remove('overflow-y-hidden');\n      }\n    }\n  }\n\n  blur() {\n    //console.log('blur');\n\n    this.focusedIndex = -1;\n    this.updateFocus();\n  }\n\n  focusFirstItem() {\n    //console.log('focusFirstItem');\n\n    this.focusedIndex = 0;\n    this.updateFocus();\n  }\n\n\n  focusItem(ev) {\n    //console.log('focusItem', ev);\n\n    this.focusedIndex = this.menuItemTargets.findIndex(item => item === ev.target);\n    this.updateFocus();\n  }\n\n  clickOutside(ev) {\n    if (this.transitioned) {\n      if (ev.target instanceof HTMLButtonElement && ev.target.type === 'submit') {\n        this.closeMenu();\n\n      } else {\n        ev.preventDefault();\n\n        this.closeMenu();\n      }\n    }\n  }\n\n  onClick() {\n    console.log('onClick');\n\n    if (this.transitioned) this.closeMenu();\n    else this.openMenu();\n  }\n\n  onEscapePress() {\n    //console.log('onEscapePress');\n\n    this.closeMenu();\n  }\n\n  onFocus(ev) {\n    if (this.hasButtonTarget && this.buttonTarget === document.activeElement) {\n      ev.preventDefault();\n\n      this.openMenu();\n      this.focusFirstItem();\n    }\n  }\n\n  onTabPress() {\n    //console.log('onTabPress');\n\n    setTimeout(() => {\n      if (this.focusedIndex > -1) {\n        this.closeMenu();\n      }\n    }, 1);\n  }\n\n  onNextMenuItem(ev) {\n    //console.log('onNextMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex++;\n\n      if (this.focusedIndex == this.menuItemTargets.length) {\n        this.focusedIndex = 0; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n\n  onPreviousMenuItem(ev) {\n    //console.log('onPreviousMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex--;\n\n      if (this.focusedIndex < 0) {\n        this.focusedIndex = this.menuItemTargets.length - 1; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['button', 'input'];\n\n  show(ev) {\n    ev.currentTarget.remove();\n\n    this.buttonTarget.classList.remove('opacity-0');\n    this.inputTarget.classList.remove('opacity-0');\n    this.inputTarget.focus();\n  }\n}\n","import { Controller } from 'stimulus';\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  static values = {\n    trigger: String\n  };\n\n  connect() {\n    this.element.classList.add('animate-pulse');\n    this.listener = new ElementListener(this.element, this.triggerValue, this.onStopPulse);\n  }\n\n  disconnect() {\n    this.listener.remove();\n  }\n\n  onStopPulse = () => {\n    this.element.classList.remove('animate-pulse');\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['checkbox'];\n  static values = {\n    trigger: String\n  }\n\n  connect() {\n  }\n\n  radioChanged(ev) {\n    const { target: { value } } = ev;\n\n    if (value == this.triggerValue) {\n      this.checkboxTarget.checked = false\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDebounce } from 'stimulus-use';\n\nexport default class extends Controller {\n  static debounces = ['updateInput'];\n\n  static targets = ['copyInput','input'];\n\n  connect() {\n    useDebounce(this);\n\n    this.setCopyInputs()\n  }\n\n  updateInput(ev) {\n    const { target } = ev;\n\n    this.copyInputTargets.forEach((copyInput) => {\n      if (copyInput.id.includes(target.id.concat(\"-copy\"))) {\n\n        if (target.checked) {\n          copyInput.checked = true\n        } else {\n          copyInput.checked = false\n        }\n      }\n    })\n  }\n\n  setCopyInputs(){\n    this.inputTargets.forEach((input) => {\n      this.copyInputTargets.forEach((copyInput) => {\n        if (copyInput.id.includes(input.id.concat(\"-copy\"))) {\n          if (input.checked) {\n            copyInput.checked = true\n          } else {\n            copyInput.checked = false\n          }\n        }\n      })\n    });\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useTransition } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['button', 'hiddenSection'];\n  static values = {\n    trigger: String\n  }\n\n  connect() {\n    useTransition(this, {\n      element: this.hiddenSectionTarget,\n      transitioned: false,\n    });\n\n    const selectedValue = this.buttonTargets.find(button => button.checked).value\n\n    if (selectedValue === this.triggerValue) {\n      this.enter()\n    } else {\n      this.leave()\n    }\n  }\n\n  radioChanged(ev) {\n    const { target: { value } } = ev;\n\n    if (value === this.triggerValue) {\n      this.enter()\n    } else {\n      this.leave()\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['input'];\n  static values = {\n    trigger: String\n  }\n\n  connect() {\n  }\n\n  radioChanged(ev) {\n    const { target: { value } } = ev;\n\n    if (value !== this.triggerValue) {\n      this.inputTarget.value = \"\"\n    }\n  }\n}\n","import {Controller} from \"stimulus\"\n\nconst RADIO_BUTTON_TOGGLE = 'radio-button-selection-toggle'\n\nexport default class extends Controller {\n  static targets = [\"section\"]\n\n  connect() {\n    document.addEventListener(RADIO_BUTTON_TOGGLE, this.handleSelection.bind(this));\n  }\n\n  handleSelection(event) {\n    this.sectionTargets.forEach((section) => {\n      this.clearInputs(section)\n      this.removeErrorMessages(section)\n      this.resetSelects(section)\n    });\n  }\n\n  clearInputs(section) {\n    var inputs = section.querySelectorAll(\"input\");\n    inputs.forEach((input) => {\n      input.value = null;\n    })\n  }\n\n  removeErrorMessages(section) {\n    var errors = section.querySelectorAll(\"[data-error]\");\n    errors.forEach((error) => {\n      error.remove();\n    })\n  }\n\n  resetSelects(section) {\n    var selects = section.querySelectorAll(\"select\");\n\n    selects.forEach((select) => {\n      select.selectedIndex =0;\n    })\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['label'];\n\n  radioChanged(ev) {\n    this.labelTargets.forEach((el, i) => {\n      el.classList.toggle('bg-gray-500', ev.target.labels[0] == el )\n    })\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['button', 'label'];\n\n  connect() {\n    this.buttonTargets.forEach((el, i) => {\n      if (el.checked) {\n        var selector = 'label[for=' + el.id + ']'\n        var label = document.querySelector(selector);\n        label.classList.add('bg-gray-500')\n      }\n    })\n  }\n\n  radioChanged(ev) {\n    this.buttonTargets.forEach((el, i) => {\n      if (el.checked) {\n        var selector = 'label[for=' + el.id + ']'\n        var label = document.querySelector(selector);\n        label.classList.add('bg-gray-500')\n      } else {\n        var selector = 'label[for=' + el.id + ']'\n        var label = document.querySelector(selector);\n        label.classList.remove('bg-gray-500')\n      }\n    })\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['button'];\n\n  connect() {\n  }\n\n  radioChanged(ev) {\n    if (ev.target.value == 'false' ) {\n      this.buttonTargets.forEach((el, i) => {\n        if (el.value == 'false'){\n          el.checked = true;\n        }\n      })\n    }\n  }\n}","import {Controller} from \"stimulus\"\n\nconst RADIO_BUTTON_TOGGLE = 'radio-button-selection-toggle'\n\nexport default class extends Controller {\n  static targets = [\"section\"]\n\n  static values = {\n    initButton: Number\n  }\n\n  connect() {\n    document.addEventListener(RADIO_BUTTON_TOGGLE, this.handleSelection.bind(this));\n    this.sectionTargets.forEach((section) => {\n      if (section.id == this.initButtonValue) {\n        section.classList.remove('hidden')\n      } else {\n        section.classList.add('hidden')\n      }\n    });\n  }\n\n  handleSelection(event) {\n    this.sectionTargets.forEach((section) => {\n      if (section.id == event.detail.value) {\n        section.classList.remove('hidden')\n      } else {\n        section.classList.add('hidden')\n      }\n    });\n  }\n}\n","import {Controller} from \"stimulus\"\n\nconst RADIO_BUTTON_TOGGLE = 'radio-button-selection-toggle'\n\nexport default class extends Controller {\n  static targets = [\"radioButton\"]\n\n  connect() {\n  }\n\n  radioChanged(event) {\n    event.stopImmediatePropagation()\n\n    const selectionEvent = new CustomEvent(RADIO_BUTTON_TOGGLE, {\n      detail: {\n        name: event.target.name,\n        value: event.target.value\n      }\n    });\n\n    document.dispatchEvent(selectionEvent);\n    return false;\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useTransition } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['button', 'visibleSection'];\n  static values = {\n    trigger: String\n  }\n\n  connect() {\n    useTransition(this, {\n      element: this.visibleSectionTarget,\n      transitioned: false,\n    });\n\n    const selectedValue = this.buttonTargets.find(button => button.checked).value\n\n    if (selectedValue === this.triggerValue) {\n      this.leave()\n    } else {\n      this.enter()\n    }\n  }\n\n  radioChanged(ev) {\n    const { target: { value } } = ev;\n\n    if (value === this.triggerValue) {\n      this.leave()\n    } else {\n      this.enter()\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  static values = {\n    interval: Number, src: String,\n  }\n\n  connect() {\n    this.listener = new ElementListener(this.element, 'turbo:frame-render', this.onFrameRender);\n    this.timeout = setInterval(() => {\n      this.element.src = null;\n      this.element.src = this.srcValue;\n    }, this.intervalValue);\n  }\n\n  disconnect() {\n    this.listener.remove();\n\n    clearTimeout(this.timeout);\n  }\n\n  onFrameRender = () => {\n    if (this.element.querySelector('[data-refresh-halt=\"true\"]') !== null) {\n      clearTimeout(this.timeout);\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['input'];\n\n  connect() {\n    this.inputTarget.value == 'reload' ? location.reload(true) : this.inputTarget.value = 'reload'\n  }\n}\n","export function controlledFetch(resource, init) {\n  const controller = new AbortController();\n  const { signal } = controller;\n\n  return [\n    fetch(resource, { ...init, signal }), controller\n  ];\n}\n\n","import { Controller } from 'stimulus';\nimport { useDebounce, useMemo, useTransition } from 'stimulus-use';\n\nimport { useFloatingPopups } from '../mixins';\nimport { controlledFetch } from '../../lib';\n\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  static debounces = [\n    'performSearch', 'onNextFocusItem', 'onPreviousFocusItem', 'onScroll'\n  ];\n\n  static targets = [\n    'limitMessage', 'input', 'template', 'option', 'pool', 'popup', 'placeholder', 'newTemplate'\n  ];\n\n  static values = {\n    allowNew: Boolean,\n    focusedClass: String,\n    limit: Number,\n    selected: Array,\n    newSelected: Array,\n    newName: String,\n    remoteUrl: String,\n    visible: String,\n  };\n\n  get focusedOptions() {\n    return Array.from(this.popupTarget.querySelectorAll('li[aria-selected=\"true\"]'));\n  }\n\n  get options() {\n    return Array.from(this.popupTarget.querySelectorAll('li'));\n  }\n\n  get remoteUrl() {\n    return [...this.selectedIds].reduce(\n      (url, id) => url += `&exclude[]=${id}`, `${this.remoteUrlValue}?name=${this.search}`\n    );\n  }\n\n  connect() {\n    this.selectedIds = new Set(Array.from(this.selectedValue.map(pair => pair[0])));\n    this.focusedClassList = this.focusedClassValue.split(' ');\n    this.focusedItemIndex = -1;\n\n    useDebounce(this);\n    useFloatingPopups(this);\n    useMemo(this);\n    useTransition(this, { element: this.popupTarget });\n\n    this.selectedValue.forEach(([ value, label ]) => {\n      this.addSelectedNode(label, value);\n    });\n\n    this.newSelectedValue.forEach(([ value, label ]) => {\n      this.addNewSelectedNode(label, value);\n    });\n\n    this.updateLimit();\n\n    this.listener = new ElementListener(this.scrollRoot, 'scroll', this.onScroll);\n\n    requestAnimationFrame(() => {\n      this.positionPopup();\n    });\n  }\n\n  disconnect() {\n    this.listener.remove();\n  }\n\n  addSelectedNode(label, value) {\n    const node = this.templateTarget.content.cloneNode(true);\n\n    node.querySelector('span').innerText = label;\n    node.querySelector('button').value = value;\n    node.querySelector('input').value = value;\n\n    this.poolTarget.insertBefore(node, this.inputTarget);\n  }\n\n  addNewSelectedNode(label, value) {\n    const node = this.templateTarget.content.cloneNode(true);\n\n    node.querySelector('span').innerText = label;\n\n    const input = node.querySelector('input');\n\n    input.dataset.newEntity = true;\n    input.name = this.newNameValue;\n    input.value = label;\n\n    this.poolTarget.insertBefore(node, this.inputTarget);\n  }\n\n  addNewOption(ev) {\n    const { currentTarget: { dataset: { label, inputName } } } = ev;\n    const node = this.templateTarget.content.cloneNode(true);\n\n    node.querySelector('span').innerText = label;\n\n    const input = node.querySelector('input');\n\n    input.dataset.newEntity = true;\n    input.name = inputName;\n    input.value = label;\n\n    this.poolTarget.insertBefore(node, this.inputTarget);\n    this.updateLimit();\n    this.close();\n  }\n\n  changeInput() {\n    const { value } = this.inputTarget;\n\n    if (this.hasPlaceholderTarget) {\n      if (value.length > 0) {\n        this.placeholderTarget.classList.add('opacity-0');\n      } else {\n        this.placeholderTarget.classList.remove('opacity-0');\n      }\n    }\n\n    this.search = value.toString().trim().toLowerCase();\n    this.performSearch();\n  }\n\n  async close() {\n    this.focusedItemIndex = -1;\n    this.inputTarget.value = '';\n\n    if (this.hasPlaceholderTarget) {\n      this.placeholderTarget.classList.remove('opacity-0');\n    }\n\n    await this.leave();\n\n    // TODO this is not resetting scroll\n    this.popupTarget.scrollTop = 0;\n    this.positionPopup();\n  }\n\n  focusContainer() {\n    this.inputTarget.focus();\n  }\n\n  hoverOption(ev) {\n    if (this.scrolling !== undefined)\n      return;\n\n    const index = this.optionTargets.indexOf(ev.currentTarget);\n\n    this.updateFocus(index);\n  }\n\n  keypressInput(ev) {\n    if (ev.key === 'ArrowDown') {\n      ev.preventDefault();\n\n      this.onNextFocusItem();\n    } else if (ev.key === 'ArrowUp') {\n      ev.preventDefault();\n\n      this.onPreviousFocusItem();\n    } else if (ev.key === 'Enter') {\n      ev.preventDefault();\n\n      this.onFocusSelected(ev);\n    } else if (ev.key === 'Backspace' && ev.currentTarget.value.length === 0) {\n      ev.preventDefault();\n\n      this.onBackspaceRemove();\n    } else if (ev.key === 'Escape') {\n      this.inputTarget.blur();\n    }\n  }\n\n  updateLimit() {\n    const totalSize = this.selectedIds.size +\n      this.poolTarget.querySelectorAll('input[data-new-entity]').length;\n\n    if (totalSize <= this.limitValue) {\n      this.inputTarget.disabled = false;\n      this.limitMessageTarget.classList.add('hidden');\n    } else {\n      this.inputTarget.disabled = true;\n      this.limitMessageTarget.classList.remove('hidden');\n    }\n  }\n\n  async performSearch() {\n    this.updateFocus(-1);\n\n    if (this.ongoingFetchController !== undefined) {\n      this.ongoingFetchController.abort();\n      this.ongoingFetchController = undefined;\n    }\n\n    if (this.search === '') {\n      this.close();\n      return;\n    }\n\n    const [ promise, controller ] = controlledFetch(this.remoteUrl, {\n      credentials: 'same-origin', headers: {\n        'Accept': 'text/html, application/xhtml+xml',\n        'X-Requested-With': 'XMLHttpRequest'\n      }\n    });\n\n    this.ongoingFetchController = controller;\n\n    try {\n      const response = await promise;\n      const text = await response.text();\n\n      if (text.length < 1) {\n        if (this.allowNewValue) {\n          const newNode = this.newTemplateTarget.content.cloneNode(true);\n\n          newNode.querySelector('span strong').innerText = this.inputTarget.value;\n          newNode.querySelector('li').dataset.label = this.inputTarget.value;\n\n          this.popupTarget.innerHTML = '';\n          this.popupTarget.appendChild(newNode);\n          this.enter();\n\n        } else {\n          this.leave();\n        }\n      } else {\n        this.popupTarget.innerHTML = text;\n        this.enter();\n      }\n    } catch (error) {\n      console.warn(error);\n    }\n  }\n\n  async removeOption(ev) {\n    ev.preventDefault();\n\n    await this.close();\n\n    if (ev.currentTarget) {\n      this.selectedIds.delete(+ev.currentTarget.value);\n\n      ev.currentTarget.parentElement.remove();\n\n      this.updateLimit();\n      this.positionPopup();\n    }\n  }\n\n  async selectOption(ev) {\n    ev.preventDefault();\n\n    const { dataset: { value } } = ev.currentTarget;\n\n    if (value !== '' || value !== null) {\n      const id = +value;\n\n      this.selectedIds.add(id);\n      this.addSelectedNode(ev.currentTarget.dataset.label, id);\n      this.updateLimit();\n\n      await this.close();\n    }\n  }\n\n  updateFocus(newIndex, scrollTo = false) {\n    this.focusedOptions.forEach(li => {\n      li.classList.remove(...this.focusedClassList);\n      li.removeAttribute('aria-selected');\n    });\n\n    this.focusedItemIndex = newIndex;\n\n    if (this.focusedItemIndex === -1)\n      return;\n\n    const node = this.optionTargets[this.focusedItemIndex];\n\n    if (!node)\n      return;\n\n    node.classList.add(...this.focusedClassList);\n    node.setAttribute('aria-selected', 'true');\n\n    this.popupTarget.setAttribute('aria-activedescendant', node.id);\n\n    if (scrollTo) {\n      node.scrollIntoView({ behavior: 'smooth', block: 'end', inline: 'nearest' });\n\n      if (this.scrolling)\n        clearTimeout(this.scrolling);\n\n      this.scrolling = setTimeout(() => {\n        this.scrolling = undefined;\n      }, 250);\n    }\n  }\n\n  async onBackspaceRemove() {\n    await this.close();\n\n    if (this.selectedIds.size > 0) {\n      this.selectedIds.delete([...this.selectedIds].pop());\n      this.poolTarget.querySelector('div:last-of-type').remove();\n\n      this.updateLimit();\n      this.positionPopup();\n    }\n  }\n\n  async onFocusSelected(ev) {\n    const option = this.optionTargets[this.focusedItemIndex];\n\n    if (option) {\n      const id = +option.dataset.value;\n\n      this.selectedIds.add(id);\n      this.addSelectedNode(option.dataset.label, id);\n      this.updateLimit();\n\n      await this.close();\n    }\n  }\n\n  onNextFocusItem = () => {\n    this.updateFocus(this.focusedItemIndex + 1, true);\n  }\n\n  onPreviousFocusItem = () => {\n    this.updateFocus(this.focusedItemIndex - 1, true);\n  }\n\n  onScroll = () => {\n    this.positionPopup();\n  }\n}\n","import { Controller } from 'stimulus'\nimport { useMutation } from 'stimulus-use'\n\nexport default class extends Controller {\n  static targets = ['copyInput'];\n\n  connect() {\n    useMutation(this, { childList: true, subtree: true })\n  }\n\n  mutate(entries) {\n    for (const mutation of entries) {\n      for (const node of mutation.addedNodes) {\n        if (node.tagName == 'DIV') {\n          if (node.querySelector('input') !== null) {\n            this.copyInputTargets.forEach((copyInput) => {\n              const inputNode = node.querySelector('input')\n              const clonedNode = inputNode.cloneNode(true)\n              copyInput.appendChild(clonedNode)\n            })\n          }\n        }\n      }\n\n      for (const node of mutation.removedNodes) {\n        if (node.tagName == 'DIV') {\n          if (node.querySelector('input') !== null) {\n            this.copyInputTargets.forEach((copyInput) => {\n              const inputNode = node.querySelector('input')\n              \n              copyInput.querySelector(`input[name=\"${inputNode.name}\"]`).remove();\n            })\n          }\n        }\n      }\n    }\n  }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['button', 'section', 'replacement'];\n\n  connect() {\n  }\n\n  onClick() {\n    this.replacementTarget.classList.remove('hidden')\n    this.sectionTarget.classList.add('hidden')\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useWindowResize } from 'stimulus-use';\n\nexport default class extends Controller {\n  connect() {\n    useWindowResize(this)\n\n    setTimeout(() => {\n      // TODO scroll on certain turbo nav?\n      window.scrollTo(0, 1);\n\n      this.updateVHOverride();\n    }, 1);\n  }\n\n  windowResize() {\n    this.updateVHOverride();\n  }\n\n  updateVHOverride() {\n    // First we get the viewport height and we multiple it by 1% to get a value for a vh unit\n    let vh = window.innerHeight * 0.01;\n\n    // Then we set the value in the --vh custom property to the root of the document\n    document.documentElement.style.setProperty('--vh', `${vh}px`);\n  }\n}\n","import algoliasearch from 'algoliasearch/lite';\nimport { autocomplete, getAlgoliaResults } from '@algolia/autocomplete-js';\n\nimport { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static values = {\n    appId: String,\n    apiKey: String,\n    detached: Boolean,\n    filters: String,\n    websiteUri: String\n  };\n\n  connect() {\n    const searchClient = algoliasearch(this.appIdValue, this.apiKeyValue);\n    const queryParams = {}\n    const websiteUri = this.websiteUriValue;\n\n    if (this.hasFiltersValue) {\n      queryParams.filters = this.filtersValue\n    }\n\n    const options = {\n      container: this.element,\n\n      classNames: {\n        root: 'rounded-lg',\n        form: 'rounded-lg',\n        input: 'rounded-r-lg border-gray-700 focus:border-primary-500 focus:ring-primary-500',\n        inputWrapper: 'rounded-lg',\n        list: 'divide-y divide-fawn-700',\n        detachedSearchButton: 'rounded-md border-transparent',\n        detachedSearchButtonIcon: 'text-gray-900 hover:text-primary-700'\n      },\n\n      placeholder: '',\n\n      getSources() {\n        return [{\n          sourceId: 'pages',\n\n          getItems({ query }) {\n            return getAlgoliaResults({\n              searchClient, queries: [{\n                indexName: 'publicist', query, ...queryParams\n              }],\n            });\n          },\n\n          getItemUrl({ item }) {\n            return `${location.origin}${item.slug}`;\n          },\n\n          templates: {\n            item({ item, html }) {\n              return html`<a href=${`${websiteUri}${item.slug}`} class=\"py-4\" target=\"_blank\">\n                <div class=\"flex justify-between items-start gap-8\">\n                  <div class=\"shrink\">\n                    <p class=\"text-p3 leading-p3 text-primary-700\">${item.title}</p>\n                  </div>\n\n                  <div>\n                    <span class=\"text-p5 leading-p5 bg-highlight-opal text-primary-700 rounded-lg inline-flex items-center gap-2 px-3 py-1 text-p5 leading-none uppercase whitespace-nowrap\">\n                      ${item.facet}\n                    </span>\n                  </div>\n                </div>\n                <p class=\"text-p4 leading-p4 text-gray-900\">${item.description}</p>\n              </a>`;\n            },\n\n            noResults({ html }) {\n              return html`\n                <div class=\"py-4 space-y-4\">\n                  <p class=\"text-p2 leading-p2 text-primary-700\">No results found.</p>\n                </div>\n              `;\n            }\n          },\n        }];\n      }\n    };\n\n    if (this.detachedValue) {\n      options.detachedMediaQuery = ''; // always in detached mode\n    }\n\n    this.autocomplete = autocomplete(options);\n  }\n\n  disconnect() {\n    if (this.autocomplete) {\n      this.autocomplete.destroy();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useClickOutside, useDispatch, useHotkeys, useTransition } from 'stimulus-use';\n\nimport ElementListener from '../../lib/element_listener';\n\n// TODO\n// set aria-controls attribute\n// set aria-selected attribute\n// set aria-activedescendant=\"headlessui-listbox-option-60\" as focus changes\n\nexport default class extends Controller {\n  static targets = ['arrow', 'button', 'menu', 'menuItem', 'overlay'];\n\n  static values = {\n    itemFocusClass: String,\n  };\n\n  connect() {\n    this.focusedIndex = -1;\n    this.itemFocusClasses = this.itemFocusClassValue.split(' ');\n\n    this.listener = new ElementListener(this.element, 'click', ev => {\n      if (this.opened) {\n        const path = event.composedPath ? event.composedPath() : event.path;\n\n        if ([...path].find(e => e && e.role === 'none')) {\n          this.closeMenu();\n        }\n      }\n    });\n\n    useClickOutside(this);\n    useDispatch(this);\n\n    // https://www.w3.org/TR/wai-aria-practices-1.2/#menubutton\n    // https://headlessui.dev/react/menu#keyboard-interaction\n    useHotkeys(this, {\n      'Enter': [this.onFocus],\n      'Space': [this.onFocus],\n      'Down': [this.onNextMenuItem],\n      'Up': [this.onPreviousMenuItem],\n      'Right': [this.onNextMenuItem],\n      'Left': [this.onPreviousMenuItem],\n      'Escape': [this.onEscapePress],\n      'Tab': [this.onTabPress],\n      'Shift+Tab': [this.onTabPress],\n    });\n\n    useTransition(this, {\n      element: this.menuTarget\n    });\n  }\n\n  disconnect() {\n    this.updateOverlay(false);\n    this.listener.remove();\n  }\n\n  openMenu() {\n    console.log('openMenu', this.menuTarget);\n\n    this.buttonTarget.setAttribute('aria-expanded', 'true');\n    this.buttonTarget.setAttribute('aria-controls', this.menuTarget.id);\n    this.updateOverlay(true);\n\n    this.buttonTarget.classList.remove('text-prussian-700');\n    this.buttonTarget.classList.add('bg-snow-800', 'border-prussian-700');\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.add('-rotate-180');\n    }\n\n    requestAnimationFrame(async () => {\n      await this.enter();\n\n      this.opened = true;\n    });\n  }\n\n  closeMenu() {\n    console.log('closeMenu', this.menuTarget);\n\n    if (!this.opened)\n      return;\n\n    this.focusedIndex = -1;\n    this.opened = false;\n\n    this.buttonTarget.setAttribute('aria-expanded', 'false');\n    this.buttonTarget.removeAttribute('aria-controls');\n\n    this.updateFocus();\n    this.updateOverlay(false);\n\n    this.buttonTarget.classList.add('text-prussian-700');\n    this.buttonTarget.classList.remove('bg-snow-800', 'border-prussian-700');\n\n    if (this.hasArrowTarget) {\n      this.arrowTarget.classList.remove('-rotate-180');\n    }\n\n    requestAnimationFrame(() => {\n      this.leave();\n    });\n  }\n\n  updateFocus() {\n    console.log('updateFocus', this.focusedIndex);\n\n    this.menuItemTargets.forEach(item => item.classList.remove(...this.itemFocusClasses));\n\n    if (this.focusedIndex > -1) {\n      const item = this.menuItemTargets[this.focusedIndex]\n\n      item.classList.add(...this.itemFocusClasses);\n      item.focus();\n    }\n  }\n\n  updateOverlay(visible) {\n    if (this.hasOverlayTarget) {\n      if (visible) {\n        this.overlayTarget.classList.remove('hidden', 'opacity-0', 'pointer-events-none');\n\n        document.body.classList.add('overflow-y-hidden');\n      } else {\n        this.overlayTarget.classList.add('opacity-0', 'hidden', 'pointer-events-none');\n\n        document.body.classList.remove('overflow-y-hidden');\n      }\n    }\n  }\n\n  blur() {\n    console.log('blur');\n\n    this.focusedIndex = -1;\n    this.updateFocus();\n  }\n\n  focusFirstItem() {\n    console.log('focusFirstItem');\n\n    this.focusedIndex = 0;\n    this.updateFocus();\n  }\n\n\n  focusItem(ev) {\n    console.log('focusItem', ev);\n\n    this.focusedIndex = this.menuItemTargets.findIndex(item => item === ev.target);\n    this.updateFocus();\n  }\n\n  clickOutside(ev) {\n    if (this.transitioned) {\n      if (ev.target instanceof HTMLButtonElement && ev.target.type === 'submit') {\n        this.closeMenu();\n\n      } else {\n        ev.preventDefault();\n\n        this.closeMenu();\n      }\n    }\n  }\n\n  onClick() {\n    console.log('onClick');\n\n    if (this.transitioned) this.closeMenu();\n    else this.openMenu();\n  }\n\n  onEscapePress() {\n    console.log('onEscapePress');\n\n    this.closeMenu();\n  }\n\n  onFocus(ev) {\n    if (this.hasButtonTarget && this.buttonTarget === document.activeElement) {\n      ev.preventDefault();\n\n      this.openMenu();\n      this.focusFirstItem();\n    }\n  }\n\n  onTabPress() {\n    console.log('onTabPress');\n\n    setTimeout(() => {\n      if (this.focusedIndex > -1) {\n        this.closeMenu();\n      }\n    }, 1);\n  }\n\n  onNextMenuItem(ev) {\n    console.log('onNextMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex++;\n\n      if (this.focusedIndex == this.menuItemTargets.length) {\n        this.focusedIndex = 0; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n\n  onPreviousMenuItem(ev) {\n    console.log('onPreviousMenuItem');\n\n    if (this.focusedIndex > -1) {\n      this.focusedIndex--;\n\n      if (this.focusedIndex < 0) {\n        this.focusedIndex = this.menuItemTargets.length - 1; // wrap focus around\n      }\n\n      ev.preventDefault();\n      this.updateFocus();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useTransition } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['select', 'hiddenSection'];\n  static values = {\n    trigger: String\n  }\n\n  connect() {\n    useTransition(this, {\n      element: this.hiddenSectionTarget,\n      transitioned: false,\n    });\n\n    const selectedValue = this.selectTarget.options[this.selectTarget.selectedIndex].value\n\n    if (selectedValue === this.triggerValue) {\n      this.enter()\n    } else {\n      this.leave()\n    }\n  }\n\n  selectChanged(ev) {\n    const { target: { value } } = ev;\n\n    if (value === this.triggerValue) {\n      this.enter()\n    } else {\n      this.leave()\n    }\n  }\n\n  hiddenSelectChanged() {\n    const selectedValue = this.selectTarget.options[this.selectTarget.selectedIndex].value\n\n    if (selectedValue === this.triggerValue) {\n      this.enter()\n    } else {\n      this.leave()\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['select', 'input'];\n  static values = {\n    trigger: String\n  }\n\n  connect() {\n  }\n\n  selectChanged(ev) {\n    const { target: { value } } = ev;\n\n    if (value !== this.triggerValue) {\n      this.inputTarget.value = \"\"\n    }\n  }\n\n  hiddenSelectChanged() {\n    const selectedValue = this.selectTarget.options[this.selectTarget.selectedIndex].value\n\n    if (selectedValue !== this.triggerValue) {\n      this.inputTarget.value = \"\"\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['other', 'selection'];\n\n  connect() {\n    this.hideOther(this.selectionTarget.value)\n  }\n\n  selectChanged(ev) {\n    const { target: { value } } = ev;\n\n    this.hideOther(value)\n  }\n\n  hideOther(value) {\n    if (value == 'other') {\n      this.otherTarget.classList.remove('hidden');\n    } else {\n      this.otherTarget.classList.add('hidden');\n    }\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useTransition } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['section'];\n  static values = {\n    initPosition: String\n  }\n\n  connect() {\n    if (this.initPositionValue == \"up\") {\n      this.sectionTarget.classList.add('hidden')\n    };\n  }\n\n  slideUp() {\n    this.sectionTarget.style.transitionProperty = 'height, margin, padding';\n    this.sectionTarget.style.transitionDuration = 800 + 'ms';\n    this.sectionTarget.style.boxSizing = 'border-box';\n    this.sectionTarget.style.height = this.sectionTarget.offsetHeight + 'px';\n    this.sectionTarget.offsetHeight;\n    this.sectionTarget.style.overflow = 'hidden';\n    this.sectionTarget.style.height = 0;\n    this.sectionTarget.style.paddingTop = 0;\n    this.sectionTarget.style.paddingBottom = 0;\n    this.sectionTarget.style.marginTop = 0;\n    this.sectionTarget.style.marginBottom = 0;\n    window.setTimeout( () => {\n          this.sectionTarget.style.display = 'none';\n          this.sectionTarget.style.removeProperty('height');\n          this.sectionTarget.style.removeProperty('padding-top');\n          this.sectionTarget.style.removeProperty('padding-bottom');\n          this.sectionTarget.style.removeProperty('margin-top');\n          this.sectionTarget.style.removeProperty('margin-bottom');\n          this.sectionTarget.style.removeProperty('overflow');\n          this.sectionTarget.style.removeProperty('transition-duration');\n          this.sectionTarget.style.removeProperty('transition-property');\n    }, 800);\n  }\n\n  slideDown() {\n      this.sectionTarget.style.removeProperty('display');\n      let display = window.getComputedStyle(this.sectionTarget).display;\n      if (display === 'none') display = 'block';\n      this.sectionTarget.style.display = display;\n      let height = this.sectionTarget.offsetHeight;\n      this.sectionTarget.style.overflow = 'hidden';\n      this.sectionTarget.style.height = 0;\n      this.sectionTarget.style.paddingTop = 0;\n      this.sectionTarget.style.paddingBottom = 0;\n      this.sectionTarget.style.marginTop = 0;\n      this.sectionTarget.style.marginBottom = 0;\n      this.sectionTarget.offsetHeight;\n      this.sectionTarget.style.boxSizing = 'border-box';\n      this.sectionTarget.style.transitionProperty = \"height, margin, padding\";\n      this.sectionTarget.style.transitionDuration = 800 + 'ms';\n      this.sectionTarget.style.height = height + 'px';\n      this.sectionTarget.style.removeProperty('padding-top');\n      this.sectionTarget.style.removeProperty('padding-bottom');\n      this.sectionTarget.style.removeProperty('margin-top');\n      this.sectionTarget.style.removeProperty('margin-bottom');\n      window.setTimeout( () => {\n        this.sectionTarget.style.removeProperty('height');\n        this.sectionTarget.style.removeProperty('overflow');\n        this.sectionTarget.style.removeProperty('transition-duration');\n        this.sectionTarget.style.removeProperty('transition-property');\n      }, 800);\n  }\n}\n","import { Application } from \"stimulus\"\nimport Sortable from \"stimulus-sortable\"\n\nconst application = Application.start()\napplication.register(\"sortable\", Sortable)\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n  static targets = ['modal'];\n\n  connect() {\n  }\n\n  clear() {\n    this.modalTarget.src = \"\"\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['iconEmpty', 'iconFilled', 'text', 'line'];\n  static values = {\n    index: String\n  };\n\n  connect() {\n    let index = Number(this.indexValue)\n\n    this.iconEmptyTargets.forEach(icon => {\n      let key =  Number(icon.getAttribute(\"data-stepper-progress-index-key\"))\n\n      if (key <= index) {\n        icon.classList.add('hidden')\n      } else {\n        icon.classList.remove('hidden')\n      }\n    })\n\n    this.iconFilledTargets.forEach(icon => {\n      let key =  Number(icon.getAttribute(\"data-stepper-progress-index-key\"))\n\n      if (key <= index) {\n        icon.classList.remove('hidden')\n      } else {\n        icon.classList.add('hidden')\n      }\n    })\n\n    this.textTargets.forEach(text => {\n      let key =  Number(text.getAttribute(\"data-stepper-progress-index-key\"))\n\n      if (key <= index) {\n        text.classList.remove('text-kashmir-800')\n        text.classList.add('text-juniper-900')\n      } else {\n        text.classList.add('text-kashmir-800')\n        text.classList.remove('text-juniper-900')\n      }\n    })\n\n    this.lineTargets.forEach(line => {\n      let key =  Number(line.getAttribute(\"data-stepper-progress-index-key\"))\n\n      if (key <= index) {\n        line.classList.remove('border-kashmir-800')\n        line.classList.add('border-juniper-900')\n      } else {\n        line.classList.add('border-kashmir-800')\n        line.classList.remove('border-juniper-900')\n      }\n    })\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDispatch } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['button', 'circle', 'svg'];\n\n  get msAfterConnected() {\n    return Date.now() - this.connectedAt;\n  }\n\n  connect() {\n    const duration = 5000;\n    const start = Date.now();\n\n    let tick = 0;\n\n    useDispatch(this);\n\n    this.connectedAt = Date.now();\n    this.scheduleTick();\n  }\n\n  scheduleTick() {\n    setTimeout(() => {\n      this.svgTarget.classList.remove('hidden');\n      this.tick()\n    }, 100);\n  }\n\n  setProgress(percentage) {\n    const circle = this.circleTarget;\n\n    const radius = circle.r.baseVal.value;\n    const circumference = radius * 2 * Math.PI;\n\n    circle.style.strokeDasharray = `${circumference} ${circumference}`;\n    circle.style.strokeDashoffset = `${circumference}`;\n\n    const offset = circumference - percentage * circumference;\n\n    circle.style.strokeDashoffset = offset;\n  }\n\n  tick() {\n    const ms = this.msAfterConnected;\n\n    if (ms > 5000) {\n      this.setProgress(1);\n      this.buttonTarget.classList.add('animate-pulse', 'animation-delay-100');\n\n      setTimeout(() => {\n        this.dispatch('close');\n      }, 1000);\n    } else {\n      this.setProgress(ms / 5000);\n      this.scheduleTick();\n    }\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['checkbox', 'input', 'button'];\n  static values = {\n    initSelected: Array,\n  };\n\n  connect() {\n  }\n\n  getSelected() {\n    var selected = [];\n\n    var checkboxes = this.checkboxTargets;\n\n    for (var i = 0; i < checkboxes.length; i++) {\n      var checkbox = checkboxes[i];\n\n      if (checkbox.checked) selected.push(checkbox.value);\n    }\n\n    return selected;\n  }\n\n  updateSelected() {\n    this.selectedArray = this.getSelected();\n\n    if (this.checkEquals(this.selectedArray, this.initSelectedValue)) {\n\n      this.inputTarget.style.transition = 600 + 'ms';\n      this.inputTarget.style.opacity = 1;\n      this.buttonTarget.style.transition = 600 + 'ms';\n      this.buttonTarget.style.opacity = 0;\n      window.setTimeout( () => {\n            this.inputTarget.classList.remove('hidden');\n            this.buttonTarget.classList.add('hidden');\n      }, 600);\n\n    } else {\n\n      this.inputTarget.style.transition = 600 + 'ms';\n      this.inputTarget.style.opacity = 0;\n      this.buttonTarget.style.transition = 600 + 'ms';\n      this.buttonTarget.style.opacity = 1;\n      window.setTimeout( () => {\n            this.buttonTarget.classList.remove('hidden');\n            this.inputTarget.classList.add('hidden');\n      }, 600);\n\n    }\n  }\n\n  checkEquals(a, b) {\n    a.sort();\n    b.sort();\n\n    return a.length === b.length && a.every((v, i) => v === b[i]);\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['textField', 'checkBox', 'textFieldSection', 'checkBoxSection', 'textFieldSectionButton', 'checkBoxSectionButton'];\n\n  static values = {\n    initialView: String\n  };\n\n  connect() {\n    if (this.initialViewValue == 'textFieldSection') {\n      this.showTextFieldSection();\n    } else {\n      this.showCheckBoxSection();\n    }\n  }\n\n  showCheckBoxSection() {\n    this.checkBoxSectionButtonTarget.classList.add('hidden');\n    this.textFieldSectionButtonTarget.classList.remove('hidden');\n\n    this.checkBoxSectionTarget.classList.remove('hidden');\n    this.textFieldSectionTarget.classList.add('hidden');\n    this.checkBoxTarget.value = '1';\n  }\n\n  showTextFieldSection() {\n    this.textFieldSectionButtonTarget.classList.add('hidden');\n    this.checkBoxSectionButtonTarget.classList.remove('hidden');\n\n    this.textFieldSectionTarget.classList.remove('hidden');\n    this.checkBoxSectionTarget.classList.add('hidden');\n    this.checkBoxTarget.value = '0';\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static values = {\n    autoGrow: Boolean, copy: Object, limit: Number, minimum: Number\n  };\n\n  connect() {\n    this.maxRows = this.element.rows * 4;\n    this.element.maxLength = this.limitValue;\n\n    this.adjustTextArea();\n    this.renderStatus();\n  }\n\n  disconnect() {\n    if (this.statusNode) {\n      this.statusNode.remove();\n    }\n  }\n\n  adjustTextArea() {\n    if (this.hasAutoGrowValue && this.autoGrowValue) {\n      const rect = this.element.getBoundingClientRect();\n\n      if (this.element.rows >= this.maxRows)\n        return;\n\n      if (rect.height < this.element.scrollHeight) {\n        this.element.rows += 1;\n\n        requestAnimationFrame(() => {\n          this.adjustTextArea();\n        });\n      }\n    }\n  }\n\n  // TODO deprecate this method\n  renderLimit() {\n    this.renderStatus();\n  }\n\n  renderStatus() {\n    if (!this.hasLimitValue)\n      return;\n\n    if (!this.statusNode) {\n      this.statusNode = document.createElement('span');\n      this.statusNode.setAttribute('class', 'text-gray-900 text-sm leading-none text-right block h-4');\n      this.element.parentElement.appendChild(this.statusNode);\n    }\n\n    const remaining = this.limitValue - this.element.value.length;\n\n    this.statusNode.classList.remove('!text-indicator-red');\n\n    if (this.hasMinimumValue && (this.element.value.length <= this.minimumValue)) {\n      this.statusNode.classList.remove('opacity-0');\n\n\n      if (this.element.value.length < this.minimumValue) {\n        const minRemaining = this.minimumValue - this.element.value.length;\n\n        if (minRemaining > 1) {\n          this.statusNode.textContent = `${minRemaining} ${this.copyValue.minimum.other}`;\n        } else {\n          this.statusNode.textContent = `1 ${this.copyValue.minimum.one}`;\n        }\n      } else {\n        this.statusNode.classList.add('opacity-0');\n      }\n    } else {\n      if (this.element.value.length <= this.limitValue) {\n        this.statusNode.classList.add('opacity-0')\n\n        if (remaining < 1) {\n          this.statusNode.classList.remove('opacity-0')\n          this.statusNode.textContent = this.copyValue.limit.zero;\n          this.statusNode.classList.add('!text-indicator-red');\n        }\n      }\n    }\n  }\n\n\n  change = () => {\n    this.adjustTextArea();\n    this.renderStatus();\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['input', 'checkImage', 'addImage'];\n  static values = {\n    initStatus: String\n  }\n\n  connect() {\n    this.initAddChecks(this.inputTargets)\n  }\n\n  toggle(ev) {\n    const { target } = ev;\n\n    this.setAddChecks(target);\n  }\n\n  initAddChecks(inputTargets) {\n    inputTargets.forEach((target) => {\n      this.setAddChecks(target);\n    })\n  }\n\n  setAddChecks(target) {\n    this.checkImageTargets.forEach((checkImage) => {\n      if (checkImage.id.includes(target.id)) {\n        if (target.checked) {\n          checkImage.classList.remove('hidden')\n        } else {\n          checkImage.classList.add('hidden')\n        }\n      }\n    })\n\n    this.addImageTargets.forEach((addImage) => {\n      if (addImage.id.includes(target.id)) {\n        if (target.checked) {\n          addImage.classList.add('hidden')\n        } else {\n          addImage.classList.remove('hidden')\n        }\n      }\n    })\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['lever', 'checkBox'];\n  static values = {\n    initStatus: String\n  }\n\n  connect() {\n    if (this.initStatusValue == \"on\") {\n      this.turnOn()\n    } else {\n      this.turnOff()\n    }\n  }\n\n  toggle() {\n    if (this.status == \"off\") {\n      this.turnOn()\n    } else {\n      this.turnOff()\n    }\n  }\n\n  turnOn() {\n    this.checkBoxTarget.checked = true\n    this.status = \"on\"\n  }\n\n  turnOff() {\n    this.checkBoxTarget.checked = false\n    this.status = \"off\"\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDispatch } from 'stimulus-use';\n\nexport default class extends Controller {\n  static targets = ['lever', 'select'];\n  static values = {\n    initStatus: String\n  }\n\n  connect() {\n    useDispatch(this);\n\n    if (this.initStatusValue == \"on\") {\n      this.turnOn()\n    } else {\n      this.turnOff()\n    }\n  }\n\n  toggle() {\n    if (this.status == \"off\") {\n      this.turnOn()\n    } else {\n      this.turnOff()\n    }\n  }\n\n  turnOn() {\n    this.selectTarget.selectedIndex = 0\n    this.dispatch('selectChanged');\n    this.status = \"on\"\n  }\n\n  turnOff() {\n    this.selectTarget.selectedIndex = 1\n    this.dispatch('selectChanged');\n    this.status = \"off\"\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['lever', 'onView', 'offView'];\n  static values = {\n    initStatus: String\n  }\n\n  connect() {\n    if (this.initStatusValue == \"on\") {\n      this.turnOn()\n    } else {\n      this.turnOff()\n    }\n  }\n\n  toggle() {\n    if (this.status == \"off\") {\n      this.turnOn()\n    } else {\n      this.turnOff()\n    }\n  }\n\n  turnOn() {\n    this.moveLeverRight()\n    this.showOn()\n    this.status = \"on\"\n  }\n\n  turnOff() {\n    this.moveLeverLeft()\n    this.showOff()\n    this.status = \"off\"\n  }\n\n  moveLeverRight() {\n    this.leverTarget.classList.add('translate-x-5')\n    this.leverTarget.classList.remove('translate-x-0')\n  }\n\n  moveLeverLeft() {\n    this.leverTarget.classList.remove('translate-x-5')\n    this.leverTarget.classList.add('translate-x-0')\n  }\n\n  showOn() {\n    this.onViewTarget.classList.remove('hidden')\n    this.offViewTarget.classList.add('hidden')\n  }\n\n  showOff() {\n    this.onViewTarget.classList.add('hidden')\n    this.offViewTarget.classList.remove('hidden')\n  }\n}\n","import { Controller } from 'stimulus';\nimport { computePosition, autoPlacement, offset } from '@floating-ui/dom';\n\nimport ElementListener from '../../lib/element_listener';\n\nexport default class extends Controller {\n  static values = {\n    bg: String, text: String\n  };\n\n  connect() {\n    const bg = this.bgValue || 'bg-gray-900';\n\n    this.popupElement = document.createElement('div');\n    this.popupElement.innerHTML = this.textValue;\n    this.popupElement.className = `transition-opacity opacity-0 ${bg} rounded-md shadow-lg px-2 py-1 ` +\n      'text-p5 md:text-p4 text-center leading-p5 text-white absolute top-0 left-0 max-w-[40ch] width-[max-content] pointer-events-none z-50';\n\n    this.listeners = [\n      new ElementListener(this.element, 'mouseenter', this.show),\n      new ElementListener(this.element, 'mouseleave', this.hide),\n      new ElementListener(this.element, 'tap', this.show),\n    ];\n\n    document.body.appendChild(this.popupElement);\n\n    requestAnimationFrame(() => {\n      this.positionPopup();\n    });\n  }\n\n  disconnect() {\n    this.popupElement.remove();\n    this.listeners.forEach(l => l.remove());\n  }\n\n  show = () => {\n    this.positionPopup()\n    this.visible = true;\n\n    setTimeout(() => {\n      if (this.visible) {\n        this.popupElement.classList.remove('opacity-0');\n      }\n    }, 300);\n  }\n\n  hide = () => {\n    this.visible = false;\n    this.popupElement.classList.add('opacity-0');\n  }\n\n  positionPopup() {\n    computePosition(this.element, this.popupElement, {\n      middleware: [autoPlacement(), offset(10)],\n    }).then(({ x, y, strategy }) => {\n      Object.assign(this.popupElement.style, {\n        left: `${x}px`, top: `${y}px`, position: strategy\n      });\n    });\n  }\n}\n","import { Controller } from 'stimulus';\nimport { useDispatch, useTransition } from 'stimulus-use';\n\nimport { findParentWith } from '../../lib/dom';\n\nexport default class extends Controller {\n  connect() {\n    useDispatch(this);\n    useTransition(this);\n\n    const transitionEnter = this.enter;\n    const transitionLeave = this.leave;\n\n    const modalTarget = findParentWith(\n      this.element, e => e.dataset && e.dataset.controller === 'modal'\n    );\n\n    this.enter = async (ev) => {\n      // Explicit modalId and modal controller, limit to only matching modal\n      if (ev.detail.hasOwnProperty('modalId') && modalTarget) {\n        if (ev.detail.modalId !== modalTarget.dataset.modalId) {\n          return;\n        }\n      }\n\n      // Explicit target element, limit to only matching element\n      if (ev.detail.hasOwnProperty('target')) {\n        if (ev.detail.target !== this.element)\n          return;\n      }\n\n      await transitionEnter();\n    };\n\n    // TODO ensure only the correct modal is leaving. for instance if a flash\n    // is open and edit modal, both will close when either is closed.\n    this.leave = async (ev) => {\n      // Explicit target element, limit to only matching element\n      if (ev.detail.hasOwnProperty('target')) {\n        if (ev.detail.target !== this.element)\n          return;\n      }\n\n      await transitionLeave();\n\n      this.dispatch('finished');\n    };\n  }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n  static targets = ['sectionOne', 'sectionTwo', 'sectionThree', 'sectionFour'];\n  static values = {\n    initView: String\n  }\n\n  connect() {\n    if (this.initViewValue == \"sectionTwo\") {\n      this.sectionTwoTarget.classList.remove('hidden');\n      this.sectionTwoTarget.style.opacity = 1;\n      this.sectionThreeTarget.classList.remove('hidden');\n      this.sectionThreeTarget.style.opacity = 1;\n      this.sectionOneTarget.classList.add('hidden');\n      this.sectionOneTarget.style.opacity = 0;\n      this.sectionFourTarget.classList.add('hidden');\n      this.sectionFourTarget.style.opacity = 0;\n    };\n  }\n\n  viewSectionOne() {\n    this.sectionOneTarget.style.transition = 600 + 'ms';\n    this.sectionOneTarget.style.opacity = 1;\n    this.sectionFourTarget.style.transition = 600 + 'ms';\n    this.sectionFourTarget.style.opacity = 1;\n    this.sectionTwoTarget.style.transition = 600 + 'ms';\n    this.sectionTwoTarget.style.opacity = 0;\n    this.sectionThreeTarget.style.transition = 600 + 'ms';\n    this.sectionThreeTarget.style.opacity = 0;\n    window.setTimeout( () => {\n          this.sectionOneTarget.classList.remove('hidden');\n          this.sectionFourTarget.classList.remove('hidden');\n          this.sectionTwoTarget.classList.add('hidden');\n          this.sectionThreeTarget.classList.add('hidden');\n    }, 600);\n  }\n\n  viewSectionTwo() {\n    this.sectionOneTarget.style.transition = 600 + 'ms';\n    this.sectionOneTarget.style.opacity = 0;\n    this.sectionFourTarget.style.transition = 600 + 'ms';\n    this.sectionFourTarget.style.opacity = 0;\n    this.sectionTwoTarget.style.transition = 600 + 'ms';\n    this.sectionTwoTarget.style.opacity = 1;\n    this.sectionThreeTarget.style.transition = 600 + 'ms';\n    this.sectionThreeTarget.style.opacity = 1;\n    window.setTimeout( () => {\n          this.sectionTwoTarget.classList.remove('hidden');\n          this.sectionThreeTarget.classList.remove('hidden');\n          this.sectionOneTarget.classList.add('hidden');\n          this.sectionFourTarget.classList.add('hidden');\n    }, 600);\n  }\n}\n","export const useAutoFocusable = (controller, options = {}) => {\n  Object.assign(controller, {\n    setFocus(input) {\n      requestAnimationFrame(() => {\n        input.focus();\n      });\n    }\n  });\n\n  const inputs = controller.element.querySelectorAll('input[type=\"text\"], input[type=\"email\"], input[type=\"number\"], textarea');\n\n  for (let input of inputs) {\n    if (input.value === '' && input.tabIndex > -1 &&\n      input.getAttribute('data-multi-select-target') == null &&\n      input.getAttribute('data-remote-multi-select-target') == null) {\n      controller.setFocus(input);\n\n      break;\n    }\n  }\n};\n","import { DirectUpload } from \"@rails/activestorage\";\n\nexport const useDirectUpload = (controller, options = {}) => {\n  const delegate = {\n    directUploadWillCreateBlobWithXHR(...args) {\n      controller.dispatch('before-blob-request');\n    },\n\n    directUploadWillStoreFileWithXHR(...args) {\n      controller.dispatch('before-storage-request');\n    }\n  };\n\n  Object.assign(controller, {\n    async upload(filename, blob) {\n      // Ensure blob has a name for Rails' BlobRecord\n      Object.assign(blob, {\n        name: filename\n      });\n\n      return new Promise((resolve, reject) => {\n        const directUploadUrl = this.directUploadInput.getAttribute(\"data-direct-upload-url\");\n        const directUploadToken = this.directUploadInput.getAttribute(\"data-direct-upload-token\");\n        const attachmentName = this.directUploadInput.getAttribute(\"data-direct-upload-attachment-name\");\n\n        const directUpload = new DirectUpload(\n          blob, directUploadUrl, directUploadToken, attachmentName, delegate\n        );\n\n        directUpload.create((err, attachment) => {\n          if (err) reject(err);\n          else resolve(attachment);\n        });\n      });\n    }\n  });\n};\n","import { computePosition, autoPlacement, offset, shift, size } from '@floating-ui/dom';\n\nexport const useFloatingPopups = (controller, options = {}) => {\n  const targetName = 'popupTarget';\n\n  const apply = ({ x, y, strategy }) => {\n    Object.assign(controller[targetName].style, {\n      left: `${x}px`, top: `${y}px`, position: strategy\n    });\n  }\n\n  const sizeApply = ({ reference }) => {\n    controller[targetName].style.width = `${reference.width}px`;\n  };\n\n  const displace = (...args) => {\n    const { offsetParent } = controller.element;\n\n    const displaceElement = options.displaceSelector ?\n      controller.element.querySelector(options.displaceSelector) : null;\n\n    if (!offsetParent)\n      return 0;\n\n    if (offsetParent.className === 'h-full relative') {\n      const rect = offsetParent.getBoundingClientRect();\n      const { y } = rect;\n\n      return (-(y + document.documentElement.scrollTop) + 10);\n    } else if (offsetParent.dataset.id === 'admin-modal-body') {\n      const top = offsetParent.scrollTop;\n\n      if (top) {\n        return -50 + top;\n      } else {\n        return -50;\n      }\n    } else if (offsetParent.dataset.id === 'modal-body') {\n      const top = offsetParent.scrollTop;\n\n      if (top) {\n        return -(offsetParent.previousElementSibling.offsetHeight) + 10 + top;\n      } else {\n        return -(offsetParent.previousElementSibling.offsetHeight) + 10 ;\n      }\n    } else if (displaceElement) {\n      return -(displaceElement.clientHeight);\n\n    } else {\n      return 10;\n    }\n  };\n\n  const positionPopup = () => {\n    // Never reposition when already visible\n    if (!controller[targetName].classList.contains('hidden'))\n      return;\n\n    computePosition(controller.element, controller[targetName], {\n      middleware: [\n        autoPlacement({ alignment: 'bottom-start', allowedPlacements: ['bottom-start'] }),\n        size({ apply: sizeApply }),\n        offset(displace)\n      ]\n    }).then(apply);\n  };\n\n  Object.assign(controller, {\n    get scrollRoot() {\n      let { element } = controller;\n\n      while (element !== document.body) {\n        if (element.classList.contains('overflow-y-auto') || element.classList.contains('overflow-y-scroll'))\n          return element;\n\n        element = element.parentElement;\n      }\n\n      return element;\n    },\n\n    positionPopup\n  });\n};\n","import { DataMap } from '@stimulus/core/dist/data_map';\n\nexport const useSyncFrame = (controller, options = {}) => {\n  const identifier = 'sync-event';\n\n  const reloadFrame = async (frame, timestamp) => {\n    const frameDataMap = new DataMap({ element: frame, identifier });\n\n    const framePath = frameDataMap.get('path');\n    const frameTimestamp = frameDataMap.get('timestamp');\n\n    // console.debug('<turbo-frame> sync', frame);\n\n    // The turbo-frame needs to be reload via it's src attribute\n    if (!frameTimestamp || isStale(timestamp, frameTimestamp)) {\n      // console.debug('<turbo-frame> reload', framePath, frameTimestamp);\n\n      await frame.loaded;\n\n      if (frame.src)\n        frame.src = null;\n\n      requestAnimationFrame(() => {\n        requestAnimationFrame(() => {\n          frame.src = framePath;\n        });\n      });\n    }\n  }\n\n  Object.assign(controller, { reloadFrame });\n};\n","export function getMetaContent(name) {\n  const meta = document.querySelector(`meta[name=\"${name}\"]`);\n\n  if (meta) {\n    return meta.content;\n  }\n}\n\nexport function findParentWith(element, callback) {\n  for (let i = 0; i < 10; i++) {\n    if (!element)\n      return;\n\n    if (callback(element))\n      return element;\n\n    element = element.parentElement;\n  }\n}\n\nexport function createElement(tagName, text, attrs = {}) {\n  const element = document.createElement(tagName);\n\n  element.textContent = text;\n\n  for (const [key, value] of Object.entries(attrs)) {\n    if (tagName === 'option' && key === 'selected' && !value)\n      continue;\n\n    element.setAttribute(key, value);\n  }\n\n  return element;\n}\n","export default class ElementListener {\n  constructor(element, eventName, callback) {\n    this.callback = (...args) => callback(...args);\n    this.eventName = eventName;\n    this.element = element;\n    this.element.addEventListener(this.eventName, this.callback, false);\n  }\n\n  remove() {\n    this.element.removeEventListener(this.eventName, this.callback, false);\n  }\n}\n","import * as Sentry from \"@sentry/browser\";\nimport { Integrations } from \"@sentry/tracing\";\n\nimport { getMetaContent } from './dom';\n\n(!function() {\n  const dsn = getMetaContent('sentry_dsn');\n\n  if (dsn) {\n    Sentry.init({\n      dsn,\n      integrations: [new Integrations.BrowserTracing()],\n\n      // Set tracesSampleRate to 1.0 to capture 100% of transactions for\n      // performance monitoring.  We recommend adjusting this value in production\n      tracesSampleRate: 1.0,\n    });\n  } else {\n    console.debug('No error repoerting loaded');\n  }\n}());\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","ev","currentTarget","this","updateSelfRemoved","updateRemovedList","updateSelfAdded","updateAddedList","addedBoxTargets","forEach","addedBox","classList","add","removedBoxTargets","removedBox","remove","Controller","targets","submit","element","requestSubmit","i","querySelectorAll","useClickOutside","useTransition","popupTarget","reset","checked","length","helpTarget","nextTarget","nextButtonTarget","roleTypeTargets","label","hoursPerWeekTargets","notAvailableLabelTarget","notAvailableDateTarget","formTarget","dispatchEvent","CustomEvent","bubbles","value","nextOpenDateTarget","notAvailableDateInputTarget","form","reseting","leave","input","autoNumericOptionsUSD","digitGroupSeparator","decimalCharacter","decimalCharacterAlternative","currencySymbol","currencySymbolPlacement","AutoNumeric","roundingMethod","decimalPlaces","selectNumberOnly","unformatOnSubmit","autoNumericOptionsCAD","autoNumericOptionsAUD","autoNumericOptionsGBP","currencyCodeValue","toLowerCase","autoNumericOptions","rateAmountTarget","feeAmountTarget","totalAmountTarget","feeAmount","rateAmount","feePercentTarget","set","previousAdjustment","updateFeeAmountByPercentOfRate","totalAmount","rateAmountRounded","Math","round","Number","EPSILON","updateFeeAmountBySubtraction","updateTotalAmount","updateRateAmount","getNumber","formUnformat","data","get","values","currencyCode","String","percent","checkBoxTargets","el","selector","document","querySelector","checkBoxTarget","labelTarget","useDebounce","setCopyInputs","target","copyInputTargets","copyInput","includes","concat","inputTargets","debounces","checkboxTargets","checkbox","textboxTarget","preventDefault","copy","copyValue","hasMessageTarget","messageTarget","setTimeout","hasFormTarget","search","FormData","entries","filter","x","join","window","location","href","initialCopy","buttonTarget","innerText","hasCollapsedValue","collapsedValue","collapse","useMatchMedia","mediaQueries","small","state","expand","pNodes","paragraphElements","p","offsetHeight","style","height","marginTop","marginBottom","scrollIntoView","collapsed","Boolean","confirm","messageValue","stopPropagation","message","readFile","file","reader","FileReader","Promise","reject","onload","result","onerror","err","readAsDataURL","loadImage","dataURI","img","Image","src","loadImageFromFile","contraints","max","canvas","createElement","ctx","getContext","width","resizeHgt","resizeWdt","drawImage","toDataURL","type","useDispatch","useDirectUpload","inputTarget","files","imgSrc","hasAspectRatioValue","aspectRatioValue","aspectRatioWidth","aspectRatioHeight","hasBoxTarget","assign","boxTarget","offsetWidth","filename","name","imageTarget","hasPlaceholderTarget","placeholderTarget","cropper","Cropper","aspectRatio","console","warn","getCroppedCanvas","toBlob","blob","disable","upload","attachment","fieldTarget","disabled","signed_id","destroy","hasAutoCloseValue","autoCloseValue","dispatch","Array","autoClose","filters","first","split","shift","none","hasInputTarget","filterValue","focusedIndex","itemFocusClasses","itemFocusClassValue","listener","ElementListener","opened","event","composedPath","path","find","role","closeMenu","useHotkeys","onFocus","onNextMenuItem","onPreviousMenuItem","onEscapePress","onTabPress","menuTarget","updateOverlay","log","setAttribute","hasArrowTarget","arrowTarget","requestAnimationFrame","enter","removeAttribute","updateFocus","menuItemTargets","item","focus","visible","hasOverlayTarget","overlayTarget","body","findIndex","transitioned","HTMLButtonElement","openMenu","hasButtonTarget","activeElement","focusFirstItem","itemFocusClass","initViewValue","sectionTwoTarget","opacity","sectionOneTarget","transitionProperty","transitionDuration","boxSizing","overflow","display","removeProperty","getComputedStyle","initView","lowerCaseFilterTerm","sourceTarget","filterableTargets","getAttribute","onBeforeStreamRender","messageTargets","showNextMessage","resume","useVisibility","documentElement","secondsCounted","frame","cancelAnimationFrame","clearInterval","timer","setInterval","tick","topMessage","formElement","onTurboSubmitEnd","keepOpenValue","detail","success","formSubmission","useAutoFocusable","parentElement","dataset","radioValue","fieldName","keepOpen","updateIndicators","hasIndicatorTarget","entry","intersectingIndex","imageTargets","indexOf","indicator","indicatorTargets","intersectionRatio","observer","IntersectionObserver","root","containerTarget","threshold","image","observe","index","children","behavior","block","toggle","checkboxTarget","hasInputaltTarget","inputaltTarget","copyInputTarget","click","listItemTargets","initialSelectedListItem","selectedListItem","listTarget","anchor","showLoader","svgTarget","docEl","hideLoader","beforeFetchRequest","clearTimeout","beforeFetchResponse","beforeFrameRender","addEventListener","removeEventListener","useMeta","pathname","startsWith","mixpanel","mpptMeta","debug","application","__debug","nameValue","propertiesValue","transport","group","table","groupEnd","metaNames","properties","onModalOpen","modalId","open","onModalClose","close","openedValue","listeners","onNextFocusItem","onPreviousFocusItem","onEscape","hasDisableScrollValue","disableScrollValue","l","elements","from","hasModalTarget","focusableElementsAndIndex","disableScroll","STOP_WORDS","RegExp","focusedItemIndex","onScroll","positionPopup","optionTargets","opt","textContent","normalize","replace","word","test","trim","availableIndexes","Set","selectedIds","tagIdsValue","useFloatingPopups","displaceSelector","useMemo","size","node","addSelectedNode","limitMessageTarget","updateLimit","scrollRoot","templateTarget","content","cloneNode","poolTarget","insertBefore","hasSuggestedTarget","suggestedButton","suggestedTarget","addSe","toString","performSearch","undefined","scrollTop","scrolling","key","onFocusSelected","onBackspaceRemove","blur","limitValue","allowEmptySearch","clear","optionTexts","text","has","optionValues","renderMenu","renderId","className","visibleValue","newIndex","scrollTo","focusedOptions","li","descNode","focusedTextClassValue","defaultTextClassValue","focusedBgClassValue","inline","pop","option","memos","defaultTextClass","focusedBgClass","focusedTextClass","limit","tagIds","originalInput","originalParent","parentNode","newInput","title","innerHTML","append","selectedFile","inputNode","dt","DataTransfer","items","labelNode","textElement","createTextNode","appendChild","iconSvg","createElementNS","iconPath","buttonNode","filesTarget","onStopPulse","triggerValue","trigger","hiddenSectionTarget","buttonTargets","button","handleSelection","bind","sectionTargets","section","clearInputs","removeErrorMessages","resetSelects","error","select","selectedIndex","labelTargets","labels","initButtonValue","initButton","stopImmediatePropagation","selectionEvent","visibleSectionTarget","onFrameRender","timeout","srcValue","intervalValue","interval","reload","controlledFetch","resource","init","controller","AbortController","signal","fetch","reduce","url","remoteUrlValue","selectedValue","pair","focusedClassList","focusedClassValue","newSelectedValue","addNewSelectedNode","newEntity","newNameValue","inputName","ongoingFetchController","abort","remoteUrl","credentials","headers","promise","response","allowNewValue","newNode","newTemplateTarget","allowNew","focusedClass","selected","newSelected","newName","useMutation","childList","subtree","mutation","addedNodes","tagName","clonedNode","removedNodes","replacementTarget","sectionTarget","useWindowResize","updateVHOverride","vh","innerHeight","setProperty","searchClient","algoliasearch","appIdValue","apiKeyValue","queryParams","websiteUri","websiteUriValue","hasFiltersValue","filtersValue","options","container","classNames","inputWrapper","list","detachedSearchButton","detachedSearchButtonIcon","placeholder","getSources","sourceId","getItems","query","getAlgoliaResults","queries","indexName","getItemUrl","origin","slug","templates","html","facet","description","noResults","detachedValue","detachedMediaQuery","autocomplete","appId","apiKey","detached","selectTarget","hideOther","selectionTarget","otherTarget","initPositionValue","paddingTop","paddingBottom","initPosition","Application","register","Sortable","modalTarget","indexValue","iconEmptyTargets","icon","iconFilledTargets","textTargets","lineTargets","line","Date","now","connectedAt","scheduleTick","percentage","circle","circleTarget","circumference","r","baseVal","PI","strokeDasharray","strokeDashoffset","offset","ms","msAfterConnected","setProgress","checkboxes","push","selectedArray","getSelected","checkEquals","initSelectedValue","transition","a","b","sort","every","v","initSelected","initialViewValue","showTextFieldSection","showCheckBoxSection","checkBoxSectionButtonTarget","textFieldSectionButtonTarget","checkBoxSectionTarget","textFieldSectionTarget","initialView","change","adjustTextArea","renderStatus","maxRows","rows","maxLength","statusNode","hasAutoGrowValue","autoGrowValue","rect","getBoundingClientRect","scrollHeight","hasLimitValue","remaining","hasMinimumValue","minimumValue","minRemaining","minimum","other","one","zero","autoGrow","initAddChecks","setAddChecks","checkImageTargets","checkImage","addImageTargets","addImage","initStatus","initStatusValue","turnOn","turnOff","status","moveLeverRight","showOn","moveLeverLeft","showOff","leverTarget","onViewTarget","offViewTarget","show","popupElement","hide","bg","bgValue","textValue","computePosition","middleware","autoPlacement","then","y","strategy","left","top","position","transitionEnter","transitionLeave","findParentWith","hasOwnProperty","sectionThreeTarget","sectionFourTarget","setFocus","inputs","tabIndex","delegate","directUploadWillCreateBlobWithXHR","directUploadWillStoreFileWithXHR","directUploadUrl","directUploadInput","directUploadToken","attachmentName","DirectUpload","create","targetName","apply","sizeApply","reference","displace","offsetParent","displaceElement","previousElementSibling","clientHeight","contains","alignment","allowedPlacements","useSyncFrame","identifier","reloadFrame","timestamp","frameDataMap","DataMap","framePath","frameTimestamp","isStale","loaded","getMetaContent","meta","callback","attrs","eventName","dsn","Sentry","integrations","Integrations","tracesSampleRate"],"sourceRoot":""}