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AA,EAAQ,MAKiC,QAArCG,SAASopB,KAAKroB,QAAQy2B,cACtBjqB,OAAOkqB,YAAc,EAEbV,EAAWW,eAAexE,UAAUttB,KACxC8xB,eAAexE,UAAUttB,KAAO,WAC5B2H,OAAOkqB,cACP72B,KAAKyd,iBAAiB,WAAW,WAC7B9Q,OAAOkqB,aACV,IACDV,EAAShpB,MAAMnN,KAAM+2B,UACxB,E","sources":["webpack://roastertools-portal/./app/javascript/channels/ sync _channel\\.js$","webpack://roastertools-portal/./app/javascript/controllers/ sync _controller\\.js$","webpack://roastertools-portal/./app/javascript/channels/consumer.js","webpack://roastertools-portal/./app/javascript/channels/index.js","webpack://roastertools-portal/./app/javascript/channels/test_channel.js","webpack://roastertools-portal/./app/javascript/controllers/able_controller.js","webpack://roastertools-portal/./app/javascript/controllers/address_controller.js","webpack://roastertools-portal/./app/javascript/controllers/aggregated_demand_controller.js","webpack://roastertools-portal/./app/javascript/controllers/application_controller.js","webpack://roastertools-portal/./app/javascript/controllers/auto_select_controller.js","webpack://roastertools-portal/./app/javascript/controllers/batch_controller.js","webpack://roastertools-portal/./app/javascript/controllers/button_toggle_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/demand_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/demand_indicator_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/fulfill_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/inventory_count_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/online_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/operation_task_controller.js","webpack://roastertools-portal/./app/javascript/controllers/cableready/refresh_controller.js","webpack://roastertools-portal/./app/javascript/controllers/chained_select_target_controller.js","webpack://roastertools-portal/./app/javascript/controllers/chained_selects_controller.js","webpack://roastertools-portal/./app/javascript/controllers/checkbox_switch_controller.js","webpack://roastertools-portal/./app/javascript/controllers/checkbox_toggle_controller.js","webpack://roastertools-portal/./app/javascript/controllers/clicker_controller.js","webpack://roastertools-portal/./app/javascript/controllers/clipboard_controller.js","webpack://roastertools-portal/./app/javascript/controllers/commerce_orders_controller.js","webpack://roastertools-portal/./app/javascript/controllers/contact_controller.js","webpack://roastertools-portal/./app/javascript/controllers/contact_email_controller.js","webpack://roastertools-portal/./app/javascript/controllers/content_loader_controller.js","webpack://roastertools-portal/./app/javascript/controllers/content_loader_from_selector_controller.js","webpack://roastertools-portal/./app/javascript/controllers/conversion_controller.js","webpack://roastertools-portal/./app/javascript/controllers/copy_controller.js","webpack://roastertools-portal/./app/javascript/controllers/date_range_picker_controller.js","webpack://roastertools-portal/./app/javascript/controllers/delivery_methods_controller.js","webpack://roastertools-portal/./app/javascript/controllers/demand_modal_controller.js","webpack://roastertools-portal/./app/javascript/controllers/disable_button_controller.js","webpack://roastertools-portal/./app/javascript/controllers/discount_controller.js","webpack://roastertools-portal/./app/javascript/controllers/draggable_controller.js","webpack://roastertools-portal/./app/javascript/controllers/dropdown_controller.js","webpack://roastertools-portal/./app/javascript/controllers/dynamic_value_from_input_controller.js","webpack://roastertools-portal/./app/javascript/controllers/element_controller.js","webpack://roastertools-portal/./app/javascript/controllers/enable_on_event_controller.js","webpack://roastertools-portal/./app/javascript/controllers/filter_controller.js","webpack://roastertools-portal/./app/javascript/controllers/flatpickr_controller.js","webpack://roastertools-portal/./app/javascript/controllers/fulfills_controller.js","webpack://roastertools-portal/./app/javascript/controllers/hello_controller.js","webpack://roastertools-portal/./app/javascript/controllers/helpscout_beacon_controller.js","webpack://roastertools-portal/./app/javascript/controllers/highlight_controller.js","webpack://roastertools-portal/./app/javascript/controllers/hovercard_controller.js","webpack://roastertools-portal/./app/javascript/controllers/integrations/accounting_customers_controller.js","webpack://roastertools-portal/./app/javascript/controllers/integrations/commerce_orders_controller.js","webpack://roastertools-portal/./app/javascript/controllers/integrations/commerce_variants_controller.js","webpack://roastertools-portal/./app/javascript/controllers/justifi_credit_card_form_controller.js","webpack://roastertools-portal/./app/javascript/controllers/line_items_controller.js","webpack://roastertools-portal/./app/javascript/controllers/load_controller.js","webpack://roastertools-portal/./app/javascript/controllers/modal_controller.js","webpack://roastertools-portal/./app/javascript/controllers/nested_form_controller.js","webpack://roastertools-portal/./app/javascript/controllers/number_field_controller.js","webpack://roastertools-portal/./app/javascript/controllers/operation_tasks_controller.js","webpack://roastertools-portal/./app/javascript/controllers/order_controller.js","webpack://roastertools-portal/./app/javascript/controllers/paste_controller.js","webpack://roastertools-portal/./app/javascript/controllers/phone_format_controller.js","webpack://roastertools-portal/./app/javascript/controllers/plaid_controller.js","webpack://roastertools-portal/./app/javascript/controllers/plans_controller.js","webpack://roastertools-portal/./app/javascript/controllers/portal_other_product_controller.js","webpack://roastertools-portal/./app/javascript/controllers/price_levels_controller.js","webpack://roastertools-portal/./app/javascript/controllers/price_reloader_controller.js","webpack://roastertools-portal/./app/javascript/controllers/print_controller.js","webpack://roastertools-portal/./app/javascript/controllers/product_price_controller.js","webpack://roastertools-portal/./app/javascript/controllers/products_controller.js","webpack://roastertools-portal/./app/javascript/controllers/query_controller.js","webpack://roastertools-portal/./app/javascript/controllers/radio_button_toggle_controller.js","webpack://roastertools-portal/./app/javascript/controllers/roaster_pay_hosted_onboarding_controller.js","webpack://roastertools-portal/./app/javascript/controllers/roasts_controller.js","webpack://roastertools-portal/./app/javascript/controllers/rutter_controller.js","webpack://roastertools-portal/./app/javascript/controllers/sales_call_list_controller.js","webpack://roastertools-portal/./app/javascript/controllers/scroll_banner_controller.js","webpack://roastertools-portal/./app/javascript/controllers/search_params_controller.js","webpack://roastertools-portal/./app/javascript/controllers/selectable_controller.js","webpack://roastertools-portal/./app/javascript/controllers/shopify_variant_controller.js","webpack://roastertools-portal/./app/javascript/controllers/simple_math_controller.js","webpack://roastertools-portal/./app/javascript/controllers/single_tippy_controller.js","webpack://roastertools-portal/./app/javascript/controllers/stripe_controller.js","webpack://roastertools-portal/./app/javascript/controllers/switchable_controller.js","webpack://roastertools-portal/./app/javascript/controllers/toggle_controller.js","webpack://roastertools-portal/./app/javascript/controllers/tom_select_controller.js","webpack://roastertools-portal/./app/javascript/controllers/transaction_form_controller.js","webpack://roastertools-portal/./app/javascript/controllers/variant_price_controller.js","webpack://roastertools-portal/./app/javascript/controllers/video_controller.js","webpack://roastertools-portal/./app/javascript/packs/application.js","webpack://roastertools-portal/./app/javascript/controllers/index.js"],"sourcesContent":["var map = {\n\t\"./test_channel.js\": 3612,\n\t\"channels/test_channel.js\": 3612\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 = 6463;","var map = {\n\t\"./able_controller.js\": 2593,\n\t\"./address_controller.js\": 8151,\n\t\"./aggregated_demand_controller.js\": 2253,\n\t\"./application_controller.js\": 2605,\n\t\"./auto_select_controller.js\": 7200,\n\t\"./batch_controller.js\": 5174,\n\t\"./button_toggle_controller.js\": 4645,\n\t\"./cableready/demand_controller.js\": 4265,\n\t\"./cableready/demand_indicator_controller.js\": 4350,\n\t\"./cableready/fulfill_controller.js\": 4082,\n\t\"./cableready/inventory_count_controller.js\": 5168,\n\t\"./cableready/online_controller.js\": 1537,\n\t\"./cableready/operation_task_controller.js\": 9762,\n\t\"./cableready/refresh_controller.js\": 8751,\n\t\"./chained_select_target_controller.js\": 9872,\n\t\"./chained_selects_controller.js\": 2525,\n\t\"./checkbox_switch_controller.js\": 4862,\n\t\"./checkbox_toggle_controller.js\": 7226,\n\t\"./class_toggle_controller.js\": 8164,\n\t\"./clicker_controller.js\": 3744,\n\t\"./clipboard_controller.js\": 6187,\n\t\"./commerce_orders_controller.js\": 6424,\n\t\"./contact_controller.js\": 8489,\n\t\"./contact_email_controller.js\": 1549,\n\t\"./content_loader_controller.js\": 9797,\n\t\"./content_loader_from_selector_controller.js\": 1075,\n\t\"./conversion_controller.js\": 195,\n\t\"./copy_controller.js\": 6348,\n\t\"./date_range_picker_controller.js\": 368,\n\t\"./delivery_methods_controller.js\": 4546,\n\t\"./demand_modal_controller.js\": 475,\n\t\"./disable_button_controller.js\": 5171,\n\t\"./discount_controller.js\": 4097,\n\t\"./draggable_controller.js\": 8627,\n\t\"./dropdown_controller.js\": 1826,\n\t\"./dynamic_value_from_input_controller.js\": 1938,\n\t\"./element_controller.js\": 2396,\n\t\"./enable_on_event_controller.js\": 4443,\n\t\"./filter_controller.js\": 9455,\n\t\"./flatpickr_controller.js\": 864,\n\t\"./fulfills_controller.js\": 7163,\n\t\"./hello_controller.js\": 6155,\n\t\"./helpscout_beacon_controller.js\": 8231,\n\t\"./highlight_controller.js\": 4096,\n\t\"./hovercard_controller.js\": 7734,\n\t\"./integrations/accounting_customers_controller.js\": 2388,\n\t\"./integrations/commerce_orders_controller.js\": 8010,\n\t\"./integrations/commerce_variants_controller.js\": 7079,\n\t\"./justifi_credit_card_form_controller.js\": 9228,\n\t\"./line_items_controller.js\": 7934,\n\t\"./load_controller.js\": 1608,\n\t\"./modal_controller.js\": 7654,\n\t\"./nested_form_controller.js\": 8769,\n\t\"./number_field_controller.js\": 7695,\n\t\"./operation_tasks_controller.js\": 1726,\n\t\"./order_controller.js\": 3521,\n\t\"./paste_controller.js\": 1641,\n\t\"./phone_format_controller.js\": 6936,\n\t\"./plaid_controller.js\": 5507,\n\t\"./plans_controller.js\": 8446,\n\t\"./portal_other_product_controller.js\": 2968,\n\t\"./price_levels_controller.js\": 3924,\n\t\"./price_reloader_controller.js\": 4987,\n\t\"./print_controller.js\": 5852,\n\t\"./product_price_controller.js\": 9306,\n\t\"./products_controller.js\": 5441,\n\t\"./query_controller.js\": 3323,\n\t\"./radio_button_toggle_controller.js\": 2249,\n\t\"./roaster_pay_hosted_onboarding_controller.js\": 5868,\n\t\"./roasts_controller.js\": 2972,\n\t\"./rutter_controller.js\": 9785,\n\t\"./sales_call_list_controller.js\": 2584,\n\t\"./scroll_banner_controller.js\": 398,\n\t\"./search_params_controller.js\": 1953,\n\t\"./selectable_controller.js\": 1122,\n\t\"./shopify_variant_controller.js\": 877,\n\t\"./simple_math_controller.js\": 7537,\n\t\"./single_tippy_controller.js\": 2025,\n\t\"./stripe_controller.js\": 2254,\n\t\"./switchable_controller.js\": 632,\n\t\"./toggle_controller.js\": 5467,\n\t\"./tom_select_controller.js\": 4771,\n\t\"./transaction_form_controller.js\": 2854,\n\t\"./variant_price_controller.js\": 5878,\n\t\"./video_controller.js\": 3901,\n\t\"controllers/able_controller.js\": 2593,\n\t\"controllers/address_controller.js\": 8151,\n\t\"controllers/aggregated_demand_controller.js\": 2253,\n\t\"controllers/application_controller.js\": 2605,\n\t\"controllers/auto_select_controller.js\": 7200,\n\t\"controllers/batch_controller.js\": 5174,\n\t\"controllers/button_toggle_controller.js\": 4645,\n\t\"controllers/cableready/demand_controller.js\": 4265,\n\t\"controllers/cableready/demand_indicator_controller.js\": 4350,\n\t\"controllers/cableready/fulfill_controller.js\": 4082,\n\t\"controllers/cableready/inventory_count_controller.js\": 5168,\n\t\"controllers/cableready/online_controller.js\": 1537,\n\t\"controllers/cableready/operation_task_controller.js\": 9762,\n\t\"controllers/cableready/refresh_controller.js\": 8751,\n\t\"controllers/chained_select_target_controller.js\": 9872,\n\t\"controllers/chained_selects_controller.js\": 2525,\n\t\"controllers/checkbox_switch_controller.js\": 4862,\n\t\"controllers/checkbox_toggle_controller.js\": 7226,\n\t\"controllers/class_toggle_controller.js\": 8164,\n\t\"controllers/clicker_controller.js\": 3744,\n\t\"controllers/clipboard_controller.js\": 6187,\n\t\"controllers/commerce_orders_controller.js\": 6424,\n\t\"controllers/contact_controller.js\": 8489,\n\t\"controllers/contact_email_controller.js\": 1549,\n\t\"controllers/content_loader_controller.js\": 9797,\n\t\"controllers/content_loader_from_selector_controller.js\": 1075,\n\t\"controllers/conversion_controller.js\": 195,\n\t\"controllers/copy_controller.js\": 6348,\n\t\"controllers/date_range_picker_controller.js\": 368,\n\t\"controllers/delivery_methods_controller.js\": 4546,\n\t\"controllers/demand_modal_controller.js\": 475,\n\t\"controllers/disable_button_controller.js\": 5171,\n\t\"controllers/discount_controller.js\": 4097,\n\t\"controllers/draggable_controller.js\": 8627,\n\t\"controllers/dropdown_controller.js\": 1826,\n\t\"controllers/dynamic_value_from_input_controller.js\": 1938,\n\t\"controllers/element_controller.js\": 2396,\n\t\"controllers/enable_on_event_controller.js\": 4443,\n\t\"controllers/filter_controller.js\": 9455,\n\t\"controllers/flatpickr_controller.js\": 864,\n\t\"controllers/fulfills_controller.js\": 7163,\n\t\"controllers/hello_controller.js\": 6155,\n\t\"controllers/helpscout_beacon_controller.js\": 8231,\n\t\"controllers/highlight_controller.js\": 4096,\n\t\"controllers/hovercard_controller.js\": 7734,\n\t\"controllers/integrations/accounting_customers_controller.js\": 2388,\n\t\"controllers/integrations/commerce_orders_controller.js\": 8010,\n\t\"controllers/integrations/commerce_variants_controller.js\": 7079,\n\t\"controllers/justifi_credit_card_form_controller.js\": 9228,\n\t\"controllers/line_items_controller.js\": 7934,\n\t\"controllers/load_controller.js\": 1608,\n\t\"controllers/modal_controller.js\": 7654,\n\t\"controllers/nested_form_controller.js\": 8769,\n\t\"controllers/number_field_controller.js\": 7695,\n\t\"controllers/operation_tasks_controller.js\": 1726,\n\t\"controllers/order_controller.js\": 3521,\n\t\"controllers/paste_controller.js\": 1641,\n\t\"controllers/phone_format_controller.js\": 6936,\n\t\"controllers/plaid_controller.js\": 5507,\n\t\"controllers/plans_controller.js\": 8446,\n\t\"controllers/portal_other_product_controller.js\": 2968,\n\t\"controllers/price_levels_controller.js\": 3924,\n\t\"controllers/price_reloader_controller.js\": 4987,\n\t\"controllers/print_controller.js\": 5852,\n\t\"controllers/product_price_controller.js\": 9306,\n\t\"controllers/products_controller.js\": 5441,\n\t\"controllers/query_controller.js\": 3323,\n\t\"controllers/radio_button_toggle_controller.js\": 2249,\n\t\"controllers/roaster_pay_hosted_onboarding_controller.js\": 5868,\n\t\"controllers/roasts_controller.js\": 2972,\n\t\"controllers/rutter_controller.js\": 9785,\n\t\"controllers/sales_call_list_controller.js\": 2584,\n\t\"controllers/scroll_banner_controller.js\": 398,\n\t\"controllers/search_params_controller.js\": 1953,\n\t\"controllers/selectable_controller.js\": 1122,\n\t\"controllers/shopify_variant_controller.js\": 877,\n\t\"controllers/simple_math_controller.js\": 7537,\n\t\"controllers/single_tippy_controller.js\": 2025,\n\t\"controllers/stripe_controller.js\": 2254,\n\t\"controllers/switchable_controller.js\": 632,\n\t\"controllers/toggle_controller.js\": 5467,\n\t\"controllers/tom_select_controller.js\": 4771,\n\t\"controllers/transaction_form_controller.js\": 2854,\n\t\"controllers/variant_price_controller.js\": 5878,\n\t\"controllers/video_controller.js\": 3901\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 = 7074;","// Action Cable provides the framework to deal with WebSockets in Rails.\n// You can generate new channels where WebSocket features live using the `rails generate channel` command.\n\nimport { createConsumer } from '@rails/actioncable'\n\nexport default createConsumer()","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","import consumer from './consumer'\n\nconst messagesContainer = document.getElementById(\"messagesContainer\")\nif (messagesContainer) {\n consumer.subscriptions.create({ channel: 'TestChannel', id: \"1\" }, {\n received (data) {\n messagesContainer.insertAdjacentHTML('beforeend', data)\n }\n })\n}\n","import { Controller } from \"stimulus\";\n\nconst DISABLED_BG = 'tw-bg-gray-100';\nconst ENABLED_BG = 'tw-white';\nconst ENABLED_TEXT = 'tw-text-teal-900';\nconst DISABLED_TEXT = 'tw-text-zinc-400'; \n\nexport default class extends Controller {\n static targets = [\n 'form',\n 'text',\n ]\n\n addCss(options) {\n this.formTargets.forEach(element => {\n if (element.dataset.disabled === 'true') {return}\n element.classList.add(options.bgColor);\n })\n }\n\n removeCss(options) {\n this.formTargets.forEach(element => {\n if (element.dataset.disabled === 'true') {return}\n element.classList.remove(options.bgColor);\n })\n }\n\n toggle() {\n if (this.hasFormTarget) {\n this.formTargets.forEach(element => {\n if (element.dataset.disabled === 'true') {return}\n if (element.dataset.tomSelectTarget == 'select') {\n element.disabled ? element.tomselect.enable() : element.tomselect.disable()\n } else {\n if (element.disabled) {\n this.removeCss({\n bgColor: DISABLED_BG,\n textColor: DISABLED_TEXT\n });\n this.addCss({\n bgColor: ENABLED_BG,\n textColor: ENABLED_TEXT\n });\n element.disabled = !element.disabled\n } else {\n this.removeCss({\n bgColor: ENABLED_BG,\n textColor: ENABLED_TEXT\n });\n this.addCss({\n bgColor: DISABLED_BG,\n textColor: DISABLED_TEXT\n });\n\n element.disabled = !element.disabled\n }\n }\n })\n } else {\n console.log('no element targets')\n }\n if (this.hasTextTarget) {\n this.textTargets.forEach(element => {\n element.classList.toggle('tw-opacity-50');\n })\n }\n }\n\n // Private\n\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['country', 'province'];\n static outlets = ['tom-select'];\n\n setCountryInProvince() {\n const provinceDropdown = this.provinceTarget.tomselect;\n\n provinceDropdown.clear();\n provinceDropdown.clearOptions();\n const remoteLoad = this.tomSelectOutlet.remoteLoad('/searches/provinces/', {\"country\": this.countryTarget.value});\n provinceDropdown.settings.load = remoteLoad['load'];\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['container', 'checkbox', 'errorContent']\n\n connect() {\n this.placeholder = this.containerTarget.innerHTML;\n this.calculate()\n }\n\n calculate() {\n this.containerTarget.insertAdjacentHTML('afterbegin','')\n setTimeout(() => {\n this.refreshOrShowPlaceholder()\n }, 5)\n }\n\n // private\n\n refreshOrShowPlaceholder() {\n let query_string = this.getQueryString()\n if (query_string.length > 0) {\n this.fetchHTML(query_string);\n } else {\n this.containerTarget.innerHTML = this.placeholder;\n }\n }\n\n getQueryString() {\n let query_string = \"\"\n this.checkboxTargets.forEach((e, i) => {\n if (e.checked == true) {\n query_string += '&order_ids%5B%5D=' + e.value\n }\n })\n return query_string.slice(1)\n }\n\n fetchHTML(query_string) {\n fetch(\"/demands?\" + query_string)\n .then(response => {\n if (response.ok) {\n response.blob()\n .then(response => response.text())\n .then(html => { this.containerTarget.innerHTML = html })\n } else {\n this.showError();\n }\n })\n .catch(_error => {\n this.showError();\n })\n }\n\n showError() {\n this.containerTarget.innerHTML = this.errorContentTarget.innerHTML;\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n // Use outlets API once Stimulus 3.2 is released\n // https://github.com/hotwired/stimulus/pull/576\n controllerForElement(controller, element) {\n return this.application.getControllerForElementAndIdentifier(element, controller)\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n connect() {\n if (this.element.tagName == \"SELECT\") {\n this.element.querySelector(\"option:not([value=''])\")?.\n setAttribute('selected', true)\n\n // Safari hack to ensure that the first option is selected\n let selectedValue = this.element.querySelector(\"option:not([value=''])\")?.value\n this.element.value = selectedValue\n\n this.element.dispatchEvent(new Event(\"change\"))\n }\n }\n}","import { Controller } from \"stimulus\";\nexport default class extends Controller {\n static outlets = [\n 'checkbox-switch'\n ]\n\n toggle_checkbox_switches(event) {\n if (this.hasCheckboxSwitchOutlet) {\n this.checkboxSwitchOutlets.forEach(outlet => {\n outlet.switchTarget.checked = !outlet.switchTarget.checked\n outlet.toggle(event)\n })\n }\n }\n\n // Private\n\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['button']\n static values = { open: Boolean }\n\n connect() {\n this.toggleClass = this.data.get('class') || 'hidden'\n }\n\n toggle(event) {\n event.preventDefault()\n\n this.openValue = !this.openValue\n }\n\n hide(event) {\n event.preventDefault();\n\n this.openValue = false;\n }\n\n show(event) {\n event.preventDefault();\n\n this.openValue = true;\n }\n\n openValueChanged() {\n if (!this.toggleClass) { return }\n\n this.buttonTargets.forEach(target => {\n target.classList.toggle(this.toggleClass)\n })\n }\n}","import ApplicationController from '../application_controller';\nimport CableReady from 'cable_ready'\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n console.log(\"DemandController\")\n consumer.subscriptions.create(\n {\n channel: \"DemandChannel\",\n demandable_date: this.element.dataset.demandableDate,\n account_id: this.element.dataset.accountId\n },\n {\n connected () {\n console.log(\"DemandChannel Connected\")\n },\n received (data) {\n console.log(\"Inside DemandChannel#received\")\n if (data.cableReady) CableReady.perform(data.operations)\n }\n })\n }\n}\n","import ApplicationController from '../application_controller';\nimport CableReady from 'cable_ready'\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n consumer.subscriptions.create(\n {\n channel: \"DemandIndicatorChannel\",\n task: this.element.dataset.task,\n account_id: this.element.dataset.accountId\n },\n {\n connected () {\n },\n received (data) {\n if (data.cableReady) CableReady.perform(data.operations)\n }\n })\n }\n}\n","import ApplicationController from '../application_controller';\nimport CableReady from 'cable_ready'\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n consumer.subscriptions.create(\n {\n channel: \"FulfillChannel\",\n resource_id: this.element.dataset.resourceId,\n resource_type: this.element.dataset.resourceType,\n },\n {\n received (data) {\n if (data.cableReady) CableReady.perform(data.operations)\n }\n })\n }\n}\n","import ApplicationController from '../application_controller';\nimport CableReady from 'cable_ready'\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n consumer.subscriptions.create(\n {\n channel: \"InventoryCountChannel\",\n inventory_count_id: this.element.dataset.inventoryCountId\n },\n {\n connected () {\n console.log(\"OperationTaskChannel Connected\")\n },\n received (data) {\n console.log(\"Inside InventoryCountController#received\")\n if (data.cableReady) CableReady.perform(data.operations)\n }\n })\n }\n}","import ApplicationController from '../application_controller';\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n consumer.subscriptions.create(\n {\n channel: \"OnlineChannel\",\n controller_name: this.element.dataset.contName,\n action_name: this.element.dataset.actionName,\n },\n {\n connected () {\n console.log(\"OnlineChannel Connected\")\n },\n received (data) {\n console.log(\"Inside OnlineChannel#received\")\n const container = document.getElementById(\"online_users\")\n const user_target = `user_${userId}`\n container.innerHTML = data.html;\n document.getElementById(user_target).remove()\n }\n })\n const userId = this.element.dataset.userId\n }\n}\n","import ApplicationController from '../application_controller';\nimport CableReady from 'cable_ready'\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n console.log(\"Hello Nested controller\")\n consumer.subscriptions.create(\n {\n channel: \"OperationTaskChannel\",\n task_name: this.element.dataset.taskName,\n account_id: this.element.dataset.accountId\n },\n {\n connected () {\n console.log(\"OperationTaskChannel Connected\")\n },\n received (data) {\n console.log(\"Inside #received\")\n if (data.cableReady) CableReady.perform(data.operations)\n }\n })\n }\n}\n","import ApplicationController from '../application_controller';\nimport CableReady from 'cable_ready'\nimport consumer from '../../channels/consumer'\n\nexport default class extends ApplicationController {\n connect() {\n consumer.subscriptions.create(\n {\n channel: \"RefreshChannel\",\n page_identifier: this.element.dataset.pageIdentifier,\n account_id: this.element.dataset.accountId,\n },\n {\n connected () {\n },\n received (data) {\n if (data.cableReady) {\n CableReady.perform(data.operations);\n }\n }\n }\n )\n }\n}\n","import ApplicationController from './application_controller'\n\nexport default class extends ApplicationController {\n\n static values = {\n sourceId: String,\n optionSelector: String\n }\n\n connect() {\n this.sourceController =\n super.controllerForElement(\n \"chained-selects\",\n document.querySelector(`select#${this.sourceIdValue}`)\n )\n\n this.sourceController.chainTo(this)\n }\n\n showOptions(value) {\n this.hideAllOptions()\n\n let selector = this.optionSelectorValue.replace(/{value}/, value)\n let options = this.element.querySelectorAll(`option${selector}`)\n\n options.forEach((option) => {\n option.hidden = false\n option.removeAttribute('disabled')\n })\n\n this.autoSelect(options[0])\n }\n\n // PRIVATE\n\n hideAllOptions() {\n this.allOptions.forEach((option) => {\n option.hidden = true\n option.setAttribute('hidden', '')\n option.setAttribute('disabled', 'disabled')\n })\n\n this.element.selectedIndex = 0\n }\n\n autoSelect(option) {\n this.element.selectedIndex = option.index\n this.element.dispatchEvent(new Event(\"change\"))\n }\n\n get allOptions() {\n return this.element.querySelectorAll(\"option\")\n }\n}","import ApplicationController from './application_controller'\n\nexport default class extends ApplicationController {\n\n chainTo(controller) {\n this.chainedController = controller\n this.updateChainedOptions()\n }\n\n updateChainedOptions() {\n this.chainedController.showOptions(this.element.value)\n }\n}","import { Controller } from 'stimulus'\n\nconst easeInStage = ['tw-opacity-100', 'tw-ease-in', 'tw-duration-100'];\nconst easeOutStage = ['tw-opacity-0', 'tw-ease-out', 'tw-duration-100'];\nconst DISABLED_BG = 'tw-bg-gray-200';\nconst ENABLED_BG = 'tw-bg-teal-300';\nconst TRANSLATE_X_0 = 'tw-translate-x-0';\nconst TRANSLATE_X_5 = 'tw-translate-x-5'; \n\nexport default class extends Controller {\n static targets = [\n 'background',\n 'switch',\n 'slider',\n 'disableIcon',\n 'enableIcon',\n 'spinner',\n 'success',\n 'error'\n ]\n\n static outlets = [\n 'toggle',\n 'able'\n ]\n\n addCss(options) {\n this.backgroundTarget.classList.add(options.bgColor);\n this.sliderTarget.classList.add(options.translateX);\n this.disableIconTarget.classList.add(...options.crossIconAnimation);\n this.enableIconTarget.classList.add(...options.checkedIconAnimation);\n }\n\n removeCss(options) {\n this.backgroundTarget.classList.remove(options.bgColor);\n this.sliderTarget.classList.remove(options.translateX);\n this.disableIconTarget.classList.remove(...options.crossIconAnimation);\n this.enableIconTarget.classList.remove(...options.checkedIconAnimation);\n }\n\n toggle(event) {\n if (this.hasAbleOutlet) {\n this.ableOutlets.forEach(outlet => {\n outlet.toggle()\n })\n }\n this.spinnerTarget.classList.remove('tw-hidden');\n\n if (this.switchTarget.checked && this.switchTarget.dataset.params) {\n if (this.url) {\n this.sync(this.url, 'POST', this.switchTarget.checked, this.params)\n } else {\n this.spinnerTarget.classList.add('tw-hidden');\n }\n this.enableSwitch()\n } else if (this.switchTarget.checked) {\n if (this.url) {\n this.sync(this.url, 'PATCH', this.switchTarget.checked, this.params)\n } else {\n this.spinnerTarget.classList.add('tw-hidden');\n }\n this.enableSwitch()\n } else if (this.switchTarget.dataset.params) {\n this.disableSwitch()\n if (this.url) {\n this.sync(this.url, 'DELETE', this.switchTarget.checked, this.params)\n } else {\n this.spinnerTarget.classList.add('tw-hidden');\n }\n } else {\n this.disableSwitch()\n if (this.url) {\n this.sync(this.url, 'PATCH', this.switchTarget.checked, this.params)\n } else {\n this.spinnerTarget.classList.add('tw-hidden');\n }\n }\n if (this.hasToggleOutlet) {\n console.log('has toggle outlet', this.toggleOutlets)\n this.toggleOutlet.toggle(event)\n }\n }\n\n sync(url, method, state, params) {\n fetch(url, {\n method: method,\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: this.switchTarget.dataset.params ? params : JSON.stringify(params)\n })\n .then(response => {\n if (response.ok) {\n setTimeout(() => {\n this.spinnerTarget.classList.add('tw-hidden');\n this.showSuccess();\n }, 250);\n } else {\n setTimeout(() => {\n this.spinnerTarget.classList.add('tw-hidden');\n this.showError();\n this.revertState(state);\n }, 250);\n }\n })\n .catch(_error => {\n this.showError();\n }) \n }\n\n enableSwitch() {\n this.removeCss({\n bgColor: DISABLED_BG,\n translateX: TRANSLATE_X_0,\n crossIconAnimation: easeInStage,\n checkedIconAnimation: easeOutStage,\n });\n this.addCss({\n bgColor: ENABLED_BG,\n translateX: TRANSLATE_X_5,\n crossIconAnimation: easeOutStage,\n checkedIconAnimation: easeInStage,\n });\n }\n\n disableSwitch() {\n this.removeCss({\n bgColor: ENABLED_BG,\n translateX: TRANSLATE_X_5,\n crossIconAnimation: easeOutStage,\n checkedIconAnimation: easeInStage,\n });\n this.addCss({\n bgColor: 'tw-bg-gray-200',\n translateX: 'tw-translate-x-0',\n crossIconAnimation: easeInStage,\n checkedIconAnimation: easeOutStage,\n });\n }\n\n revertState(state) {\n if (state == true) {\n this.disableSwitch()\n this.switchTarget.checked = false\n } else {\n this.enableSwitch()\n this.switchTarget.checked = true\n }\n }\n\n toggleOnly() {\n this.revertState(this.switchTarget.checked)\n }\n\n get params() {\n let data = {}\n data[this.switchTarget.dataset.object] = {\n [this.switchTarget.dataset.attribute]: this.switchTarget.checked\n }\n \n return this.switchTarget.dataset.params ? this.switchTarget.dataset.params : data;\n }\n\n get attribute() {\n return this.switchTarget.dataset.attribute\n }\n\n showError() {\n this.errorTarget.classList.remove('tw-hidden');\n setTimeout(() => {\n this.errorTarget.classList.add('tw-hidden');\n }, 950);\n }\n\n showSuccess() {\n this.successTarget.classList.remove('tw-hidden');\n setTimeout(() => {\n this.successTarget.classList.add('tw-hidden');\n }, 950);\n }\n\n get url() {\n return this.switchTarget.dataset.url\n }\n\n get token() {\n return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['toggleable']\n static values = { open: Boolean }\n\n connect() {\n this.toggleClass = this.data.get('class') || 'hidden'\n }\n\n toggle(event) {\n event.preventDefault()\n\n if (event.target.type == 'checkbox') {\n this.openValue = event.target.checked\n } else {\n this.openValue = !this.openValue\n }\n }\n\n hide(event) {\n event.preventDefault();\n\n this.openValue = false;\n }\n\n show(event) {\n event.preventDefault();\n\n this.openValue = true;\n }\n\n openValueChanged() {\n if (!this.toggleClass) { return }\n\n this.toggleableTargets.forEach(target => {\n if (this.openValue) {\n target.classList.add(this.toggleClass)\n } else {\n target.classList.remove(this.toggleClass)\n }\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n condition: Boolean,\n delay: Number,\n intersection: Boolean,\n clearOnDisconnect: Boolean\n }\n\n connect() {\n if (this.hasConditionValue && this.conditionValue) {\n this.timeout = setTimeout(() => { this.click(); }, this.delay)\n }\n if (this.hasIntersectionValue && this.intersectionValue) {\n this.timeout = setTimeout(() => { this.lazyClick(); }, this.delay)\n }\n }\n\n disconnect() {\n if (this.timeout && this.hasClearOnDisconnectValue && this.clearOnDisconnectValue) {\n clearTimeout(this.timeout);\n }\n }\n\n click() {\n this.element.click()\n }\n\n lazyClick () {\n const options = {\n threshold: 1,\n rootMargin: '0px'\n }\n\n const observer = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n this.element.click()\n observer.unobserve(entry.target)\n }\n })\n }, options)\n\n observer.observe(this.element)\n }\n\n // private\n\n get delay() {\n return this.hasDelayValue ? this.delayValue : 300\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"link\"]\n\n copy() {\n const url = this.linkTarget.href;\n navigator.clipboard.writeText(url).then(() => {\n this.element.querySelector('#send-link-button').textContent = \"Link Copied\";\n })\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['order', 'selected'];\n\n async importSelected(event) {\n event.preventDefault();\n const OrderIds = this.checkedOrderTargets().map(element => element.dataset.id);\n\n await fetch('/commerce/orders/import', {\n method: 'POST',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ 'order_ids': OrderIds }),\n });\n }\n\n async checkImportability(event) {\n event.preventDefault();\n const OrderIds = this.checkedOrderTargets().map(element => element.dataset.id);\n\n await fetch(`/commerce/orders/importability_checks`, {\n method: 'POST',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ 'order_ids': OrderIds }),\n });\n }\n\n toggle(event) {\n var id = event.target.closest('tr').getAttribute('data-id');\n var element = document.getElementById(`commerce-order-${id}-expandable`);\n if (element.hidden) {\n element.hidden = false;\n } else {\n element.hidden = true;\n }\n }\n\n importOrders(event) {\n event.preventDefault();\n const OrderIds = this.checkedOrderTargets().map(element => element.dataset.id);\n let id = document.getElementById(\"rutter_connection_id\").value;\n let url = `/integrations/commerce/${id}/setup/import_orders/import`;\n let redirectUrl = `/integrations/commerce/${id}/setup/summary`;\n\n fetch(url, {\n method: 'POST',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ 'selected_order_ids': OrderIds }),\n });\n window.location.href = redirectUrl;\n }\n\n async updateImportStatus(event) {\n event.preventDefault();\n const OrderIds = this.checkedOrderTargets().map(element => element.dataset.id);\n const importStatus = event.target.closest('[data-import-status]').getAttribute('data-import-status');\n\n await fetch('/commerce/orders/import_statuses', {\n method: 'PATCH',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ 'order_ids': OrderIds, 'import_status': importStatus }),\n });\n }\n\n // private\n\n checkedOrderTargets() {\n return this.orderTargets.filter(order => order.querySelector('input').checked);\n }\n\n\n get token() {\n return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content');\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n form() {\n var $form = new Forms.Contacts('.contacts-index');\n $form.apply();\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"contactSelect\", \"sendEmailButton\"]\n\n connect() {\n this.customerId = this.data.get(\"customerId\");\n }\n\n updateFormAction() {\n const contactId = this.contactSelectTarget.value;\n\n if (contactId) {\n this.sendEmailButtonTarget.classList.remove(\"tw-hidden\");\n this.sendEmailButtonTarget.setAttribute(\"formaction\", `/contacts/${contactId}/payment_method_emails?customer_id=${this.customerId}`);\n } else {\n this.sendEmailButtonTarget.classList.add(\"tw-hidden\");\n this.sendEmailButtonTarget.setAttribute(\"formaction\", \"#\");\n }\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['container', 'errorContent']\n\n connect() {\n if (this.data.get('wait') != \"true\") {\n this.load()\n } else {\n this.lazyLoad()\n }\n }\n\n load() {\n this.abortPreviousFetchRequest()\n\n this.abortController = new AbortController()\n\n setTimeout(() => {\n this.fetchHTML()\n }, 5)\n }\n\n fetchHTML() {\n fetch(this.data.get(\"url\"))\n .then(response => {\n if (response.ok) {\n response.blob()\n .then(response => response.text())\n .then(html => { this.containerTarget.innerHTML = html })\n } else {\n this.showError();\n }\n })\n .catch(_error => {\n this.showError();\n })\n }\n\n lazyLoad () {\n const options = {\n threshold: this.lazyLoadingThresholdValue,\n rootMargin: this.lazyLoadingRootMarginValue || '0px'\n }\n\n const observer = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n this.load()\n observer.unobserve(entry.target)\n }\n })\n }, options)\n\n observer.observe(this.element)\n }\n\n // private\n\n showError() {\n this.containerTarget.innerHTML = this.errorNotification\n Honeybadger.notify('Content loader failed to load', this.data.get(\"url\"))\n }\n\n get errorNotification() {\n if (this.hasErrorContentsTarget) {\n return this.errorContentTarget.innerHTML\n }\n else {\n return 'Content could not be loaded.'\n }\n }\n\n abortPreviousFetchRequest() {\n if(this.abortController) {\n this.abortController.abort()\n console.log('Content loader aborted!')\n }\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['container']\n\n connect() {\n }\n\n load(event) {\n this.containerTarget.insertAdjacentHTML('afterbegin','')\n setTimeout(() => {\n const customerId = event.target.options[event.target.selectedIndex].value\n if (customerId) {\n let urlParams = \"\"\n urlParams = `?${this.data.get(\"param-key\")}=${customerId}`\n fetch(this.data.get(\"url\") + urlParams)\n .then(response => response.text())\n .then(html => {\n const parser = new DOMParser();\n\n // Parse the text\n const parsed_html = parser.parseFromString(html, \"text/html\");\n const content = parsed_html.querySelector('[data-content-loader-from-selector-target=\"container\"]');\n this.containerTarget.innerHTML = content.innerHTML;\n })\n } else {\n this.containerTarget.querySelector('.element-spinner').remove()\n }\n }, 5)\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['green', 'roast']\n static values = { ratio: Number }\n\n calculateGreen() {\n this.timeout = setTimeout(() => {\n this.displayGreenResult()\n }, this.delay)\n }\n\n displayGreenResult() {\n if (this.hasGreenTarget) {\n let result = (this.roastTarget.value*this.ratio).toFixed(4)\n console.log(\"Calculated green result:\", result)\n this.greenTarget.value = result\n }\n }\n\n calculateRoast() {\n this.timeout = setTimeout(() => {\n this.displayRoastResult()\n }, this.delay)\n }\n\n displayRoastResult() {\n if (this.hasRoastTarget) {\n let result = (this.greenTarget.value/this.ratio).toFixed(4)\n console.log(\"Calculated roast result:\", result)\n this.roastTarget.value = result\n }\n }\n\n get delay() {\n return 350\n }\n\n get ratio() {\n return this.ratioValue || 1\n }\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['source', 'output']\n\n static values = {\n type: { type: Number, default: 0 },\n delay: { type: Number, default: 0 }\n }\n\n static outlets = [\n 'paste'\n ]\n\n clone(event) {\n if (this.hasPasteOutlet) {\n console.log(\"cloning\")\n this.pasteOutlets.forEach(paste => {\n let value = this.getContentValue(event)\n paste.update(paste.outputTarget, value)\n })\n } else {\n this.getContentValue(event)\n }\n }\n\n // Private\n\n getContentValue(event) {\n switch(this.typeValue) {\n case 0:\n // Copy source's value\n return this.sourceTarget.value\n case 1:\n // Copy the event's data-content-value\n return event.target.dataset.contentValue\n }\n }\n\n paste(event) {\n this.timeout = setTimeout(() => {\n this.pasting(event)\n }, this.delayValue)\n }\n\n pasting(event) {\n let contentValue = (this.hasUseTargetInputValue && this.useTargetInputValue) ?\n this.inputTarget.value :\n event.target.dataset.contentValue\n if (this.hasOutputTarget) {\n this.outputTargets.forEach(target => {\n target.value = contentValue\n\n const e = new Event(\"change\");\n target.dispatchEvent(e)\n })\n }\n }\n\n pasting_from_tom_select(event) {\n let contentValue = event.target.value\n if (this.hasOutputTarget) {\n this.outputTargets.forEach(target => {\n target.value = contentValue\n })\n }\n }\n\n selectAll(event) {\n event.target.select()\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['rangeSelect', 'startDate', 'endDate', 'startDiv', 'endDiv']\n\n connect() {\n this.toggleClass = this.data.get('class') || 'tw-invisible'\n this.showInputs()\n }\n\n setDates() {\n if (this.hasStartDateTarget && this.rangeSelectTarget.value != 'custom') {\n const date_array = JSON.parse(this.rangeSelectTarget.value)\n this.startDateTarget.value = date_array[0] || ''\n this.endDateTarget.value = date_array[1] || ''\n console.log(JSON.parse(this.rangeSelectTarget.value))\n console.log(this.rangeSelectTarget.value)\n }\n }\n\n showInputs() {\n if (this.rangeSelectTarget.value != 'custom') {\n this.startDivTarget.classList.add(this.toggleClass)\n this.endDivTarget.classList.add(this.toggleClass)\n } else {\n this.startDivTarget.classList.remove(this.toggleClass)\n this.endDivTarget.classList.remove(this.toggleClass)\n }\n }\n\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['type', 'charge', 'rate', 'createShippingLabelCheckbox'];\n static values = { deliveryMethodTypes: Array };\n\n toggleFields() {\n const deliveryMethodType = this.getDeliveryMethodType(this.typeTarget.value);\n\n if (deliveryMethodType) {\n this.chargeTarget.disabled = !deliveryMethodType.charge_required;\n this.rateTarget.disabled = !deliveryMethodType.rate_required;\n this.createShippingLabelCheckboxTarget.disabled = deliveryMethodType.require_label;\n if (!this.typeTarget.disabled) this.createShippingLabelCheckboxTarget.checked = deliveryMethodType.require_label;\n } else {\n this.chargeTarget.disabled = true;\n this.rateTarget.disabled = true;\n this.createShippingLabelCheckboxTarget.disabled = true;\n this.createShippingLabelCheckboxTarget.checked = false;\n }\n }\n\n getDeliveryMethodType(selectedType) {\n return this.deliveryMethodTypesValue.find(deliveryMethodType => deliveryMethodType.klass_name === selectedType) || null;\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['modal']\n\n connect() {\n }\n\n open() {\n this.modalTarget.classList.add(\"in\");\n this.modalTarget.setAttribute(\"style\", \"display: block;\");\n document.body.classList.add(\"modal-open\");\n const backdrop = document.createElement('div');\n backdrop.classList.add('modal-backdrop', 'fade', 'in');\n document.body.appendChild(backdrop);\n }\n\n close() {\n this.modalTarget.removeAttribute(\"style\", \"display: block;\");\n this.modalTarget.classList.remove(\"in\");\n document.body.classList.remove(\"modal-open\");\n document.body.querySelector('.modal-backdrop').remove();\n this.modalTarget.querySelector(\".modal-body\").innerHTML = ''\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"button\"]\n\n enable() {\n this.buttonTarget.classList.remove(\"tw-invisible\")\n this.buttonTarget.removeAttribute('disabled')\n }\n\n toggle() {\n this.buttonTarget.classList.add(\"tw-invisible\")\n this.buttonTarget.setAttribute('disabled', 'disabled')\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['discountType', 'discountInputField'];\n static classes = ['hidden'];\n\n changeDiscountType() {\n this.hideDiscountTypeTargets();\n this.resetDiscountInputFieldValue();\n this.discountTypeElement.classList.remove(this.hiddenClass);\n }\n\n hideDiscountTypeTargets() {\n this.discountTypeTargets.forEach(target => target.classList.add(this.hiddenClass));\n }\n\n resetDiscountInputFieldValue() {\n this.discountInputFieldTargets.forEach(target => target.value = '');\n }\n\n get discountTypeElement() {\n return this.discountTypeTargets.find(element => element.id === event.target.dataset.discountTypeKind);\n }\n}\n","import { Controller } from \"stimulus\"\nimport Sortable from \"sortablejs\";\n// import { Sortable, MultiDrag, Swap, OnSpill, AutoScroll } from \"sortablejs\";\n\nexport default class extends Controller {\n\n static targets = ['date', 'group', 'index', 'display']\n\n static classes = [ \"handle\", \"draggable\", \"ghost\" ] \n\n static values = {\n type: String,\n page: Number,\n pagyOffset: Number,\n form: Boolean\n }\n\n connect() {\n this.sortable = Sortable.create(this.element, {\n ...(this.hasHandleClass && { handle: `.${this.handleClass}` }),\n ...(this.hasDraggableClass && { draggable: `.${this.draggableClass}` }),\n ...(this.hasGroupTarget && { group: 'group' }),\n ...(this.hasGhostClass && { ghostClass: `${this.ghostClass}` }),\n animation: 150,\n emptyInsertThreshold: 25,\n onEnd: this.persist.bind(this)\n })\n }\n\n // private\n\n persist(event) {\n\n if (this.hasIndexTarget) {\n var index = 0;\n this.indexTargets.forEach(indexTarget => {\n indexTarget.setAttribute('value', index)\n index += 1\n });\n var display_index = 1;\n this.displayTargets.forEach(displayTarget => {\n displayTarget.innerHTML = display_index\n display_index += 1\n });\n }\n\n if (this.hasTypeValue && this.typeValue == 'date') {\n const date = event.to.dataset.draggableDate;\n const resourceId = event.item.dataset.resourceId;\n const url = this.url.replace(\":id\", resourceId);\n fetch(url, {\n method: 'PUT',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ \"date\": date })\n });\n } else if (this.hasIndexTargets) {\n this.indexTargets.forEach(indexTarget => {\n indexTarget.setAttribute('value', this.calculatedIndex(event))\n });\n } else if (this.url) {\n const resourceId = event.item.dataset.resourceId;\n const url = this.url.replace(\":id\", resourceId);\n fetch(url, {\n method: 'PUT',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ \"index\": this.calculatedIndex(event) })\n });\n }\n }\n\n calculatedIndex(event) {\n let calculatedIndex = event.newIndex\n if (this.hasPageValue && this.hasPagyOffsetValue) {\n calculatedIndex = this.pagyOffsetValue + event.newIndex\n }\n console.log('calculatedIndex', calculatedIndex)\n return calculatedIndex\n }\n\n get url() {\n return this.data.get(\"url\");\n }\n\n get token() {\n return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['menu']\n\n connect() {\n this.toggleClass = this.data.get('class') || 'tw-hidden'\n }\n\n toggle() {\n this.menuTarget.classList.toggle(this.toggleClass)\n }\n\n open() {\n if (this.menuTarget.classList.contains(this.toggleClass)) {\n this.menuTarget.classList.remove(this.toggleClass)\n }\n }\n\n hide(event) {\n if (this.element.contains(event.target) === false && !this.menuTarget.classList.contains(this.toggleClass)) {\n this.menuTarget.classList.add(this.toggleClass)\n }\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = ['dateInput']\n\n connect() {\n console.log(\"Hello dynamicValueFromInput\")\n }\n\n change(event) {\n const value = event.target.value;\n if (this.hasDateInputTarget) {\n const offset = parseInt(this.dateInputTarget.dataset.offset) || 0;\n let date = new Date(value)\n let tz_offset = new Date(value).getTimezoneOffset()\n\n date.setMinutes(date.getMinutes() + tz_offset)\n date.setDate(date.getDate() + offset)\n\n var fp = this.dateInputTarget._flatpickr\n fp.setDate(date, \"M d Y\")\n\n let formattedDate = fp.formatDate(date, \"M d Y\")\n this.dateInputTarget.value = formattedDate\n }\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"click\" ]\n\n click() {\n this.clickTargets.forEach(target => target.click())\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static values = { target: String }\n\n connect() {\n this.element.style.setProperty(\"opacity\", 0.4)\n this.element.style.setProperty(\"pointer-events\", \"none\")\n }\n\n enable(event) {\n if (event.target.id == this.targetValue) {\n this.element.style.removeProperty(\"opacity\")\n this.element.style.removeProperty(\"pointer-events\")\n }\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"source\", \"filterable\", \"balance\" ]\n static values = { totalCount: Number, filteredCount: Number }\n static classes = [ \"filteredOut\" ]\n\n connect() {\n this.countFilterables();\n }\n\n filter(event) {\n if (event) { event.preventDefault(); }\n let lowerCaseFilterTerm = this.lowerCasedFilterTerm(event);\n let filteredOutCount = 0;\n this.filterableTargets.forEach((filterable) => {\n const keyMatched = filterable.dataset.filterKey.toLowerCase().includes( lowerCaseFilterTerm )\n filterable.classList.toggle(this.filterOutClass, !keyMatched )\n if (!keyMatched) { filteredOutCount +=1; }\n })\n this.filteredCountValue = this.totalCountValue - filteredOutCount;\n\n }\n\n filteredCountValueChanged() {\n if (this.hasBalanceTarget) {\n this.balanceTarget.innerText = `Showing ${this.filteredCountValue} of ${this.totalCountValue}`;\n }\n }\n\n // private\n\n countFilterables() {\n let filteredOutCount = 0;\n this.filterableTargets.forEach(filterable => {\n if (filterable.classList.contains(this.filterOutClass) ) {\n filteredOutCount += 1;\n }\n })\n this.totalCountValue = this.filterableTargets.length;\n this.filteredCountValue = this.totalCountValue - filteredOutCount\n }\n\n lowerCasedFilterTerm(event) {\n if (this.hasSourceTarget) {\n return this.sourceTarget.value.toLowerCase();\n } else if (event) {\n return event.target.value.toLowerCase();\n } else {\n console.log(\"You need to select a sourceTarget\")\n }\n }\n\n get filterOutClass() {\n return this.hasFilteredOutClass ? this.fiteredOutClass : 'tw-hidden'\n }\n\n}\n","import { Controller } from 'stimulus';\nimport flatpickr from 'flatpickr';\nexport default class extends Controller {\n\n static targets = ['input', 'rangeSelect', 'startDate', 'endDate']\n\n static values = {\n minDate: String\n }\n\n connect() {\n if (this.hasInputTarget) {\n this.fp = flatpickr(this.inputTarget, {\n dateFormat: \"M d Y\",\n ...(this.hasMinDateValue && { minDate: `${this.minDateValue}` })\n });\n }\n if (this.hasRangeSelectTarget) {\n console.log('rangeSelect', this.rangeSelectTarget.value)\n }\n }\n\n setDates() {\n if (this.hasRangeSelectTarget && this.hasStartDateTarget) {\n const date_array = JSON.parse(this.rangeSelectTarget.value)\n this.startDateTarget.value = date_array[0]\n console.log(obj[0])\n console.log(JSON.parse(this.rangeSelectTarget.value))\n console.log(Array.from(this.rangeSelectTarget.value))\n console.log(this.rangeSelectTarget.value)\n }\n }\n\n clear() {\n this.fp.clear()\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"item\", \"selected\", \"replacementContainer\", \"replaceable\"]\n\n update(event) {\n event.preventDefault();\n const url = event.currentTarget.dataset.url;\n event.currentTarget.innerHTML = this.replacementContainerTarget.innerHTML;\n fetch(url, { method: 'PUT', headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' }, body: JSON.stringify({}) })\n }\n\n updateGroup(event) {\n event.preventDefault();\n const resourceIds = this.itemTargets.map(element => element.dataset.resourceId);\n this.replaceableTargets.forEach(element => {\n if (element.dataset.fulfilled != 'true') {\n element.innerHTML = this.replacementContainerTarget.innerHTML;\n }\n });\n const url = event.currentTarget.dataset.url;\n fetch(url, {\n method: 'PUT',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ \"resource_ids\": resourceIds, \"fulfill\": true })\n });\n }\n\n updateAll(event) {\n event.preventDefault();\n const url = event.currentTarget.dataset.url;\n fetch(url, { method: 'PUT', headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' }, body: JSON.stringify({}) })\n }\n\n markAllAsComplete(event) {\n event.preventDefault();\n const resourceIds = this.selectedTargets.map(element => element.dataset.resourceId)\n\n this.selectedTargets.forEach(element => {\n let domId = element.dataset.domId\n if (element.dataset.completed != 'true') {\n document.querySelector(`span#${domId}`).innerHTML = this.replacementContainerTarget.innerHTML;\n }\n });\n const url = event.currentTarget.dataset.url;\n fetch(url, {\n method: 'PUT',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ \"resource_ids\": resourceIds, \"fulfill\": true })\n });\n }\n\n markSelectedAsComplete(event) {\n event.preventDefault();\n const resourceIds = this.checkedSelectedTargets().map(element => element.dataset.resourceId)\n\n this.checkedSelectedTargets().forEach(element => {\n let domId = element.dataset.domId\n if (element.dataset.completed != 'true') {\n document.querySelector(`span#${domId}`).innerHTML = this.replacementContainerTarget.innerHTML;\n }\n });\n const url = event.currentTarget.dataset.url;\n fetch(url, {\n method: 'PUT',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ \"resource_ids\": resourceIds, \"fulfill\": true })\n });\n }\n\n markSelectedAsIncomplete(event) {\n event.preventDefault();\n const resourceIds = this.checkedSelectedTargets().map(element => element.dataset.resourceId)\n\n this.checkedSelectedTargets().forEach(element => {\n let domId = element.dataset.domId\n if (element.dataset.completed == 'true') {\n document.querySelector(`span#${domId}`).innerHTML = this.replacementContainerTarget.innerHTML;\n }\n });\n const url = event.currentTarget.dataset.url;\n fetch(url, {\n method: 'PUT',\n headers: { 'X-CSRF-Token': this.token, 'Content-Type': 'application/json' },\n body: JSON.stringify({ \"resource_ids\": resourceIds, \"fulfill\": false })\n });\n }\n\n // private\n\n checkedSelectedTargets() {\n return this.selectedTargets.filter(selected => selected.checked)\n }\n\n replaceableSpans() {\n return document.querySelectorAll()\n }\n\n get token() {\n return document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n }\n}\n","// Visit The Stimulus Handbook for more details \n// https://stimulusjs.org/handbook/introduction\n// \n// This example controller works with specially annotated HTML like:\n//\n//