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B,GACtB,IAAMC,EAASD,EAAME,mBACrBC,EAAWF,EAAM/lB,UAEjB8lB,EAAMrjB,iBAAiB,UAAU,SAASnE,GACxC,IAAI4nB,EAAW,IAGbA,EADElnB,KAAKiW,OAASjW,KAAKiW,MAAMtT,OAAS,GACvB3C,KAAK2S,aAAc,0BAA6B,IAAKxP,QAAS,UAAWnD,KAAKiW,MAAMtT,QAEtFrD,EAAE2G,OAAOhD,MAAMgB,MAAO,MAAOkjB,OAIxCJ,EAAMtf,cAAe,QAASzG,UAAYkmB,EAE1CH,EAAM/lB,UAAYimB,CAErB,GACF,IAEkBzjB,SAASoF,iBAAiB,wBAClCxG,SAAQ,SAASglB,GAC1BA,EAASC,SAAW,WACFrnB,KAAKuH,QAAQ,8BACrBE,cAAc,2BAA2BxE,MAAQjD,KAAKwL,QAAU,EAAI,CAC7E,CACF,GACF,IAGGob,MAEP,G","sources":["webpack://victory-quotes/./app/components/ sync _controller\\.js$","webpack://victory-quotes/./app/javascript/channels/ sync _channel\\.js$","webpack://victory-quotes/./app/javascript/components/ sync ^\\.\\/.*$","webpack://victory-quotes/./app/javascript/controllers/ sync _controller\\.js$","webpack://victory-quotes/./app/javascript/src/ sync ^\\.\\/.*$","webpack://victory-quotes/./app/components/zest/timer_controller.js","webpack://victory-quotes/./app/javascript/channels/index.js","webpack://victory-quotes/./app/javascript/components/ItemGroup.jsx","webpack://victory-quotes/./app/javascript/components/Loader.jsx","webpack://victory-quotes/./app/javascript/components/ProductCatalogue.jsx","webpack://victory-quotes/./app/javascript/components/ProductOptions.jsx","webpack://victory-quotes/./app/javascript/components/ProductStyles.jsx","webpack://victory-quotes/./app/javascript/components/ProductTypes.jsx","webpack://victory-quotes/./app/javascript/components/ProductVariants.jsx","webpack://victory-quotes/./app/javascript/components/Products.jsx","webpack://victory-quotes/./app/javascript/controllers/accordion_controller.js","webpack://victory-quotes/./app/javascript/channels/consumer.js","webpack://victory-quotes/./app/javascript/controllers/accounts_controller.js","webpack://victory-quotes/./app/javascript/controllers/appointment_issues_controller.js","webpack://victory-quotes/./app/javascript/controllers/appointment_table_time_controller.js","webpack://victory-quotes/./app/javascript/controllers/auto_save_form_controller.js","webpack://victory-quotes/./app/javascript/controllers/auto_select_field_content_controller.js","webpack://victory-quotes/./app/javascript/controllers/auto_submit_form_controller.js","webpack://victory-quotes/./app/javascript/controllers/bulk_controller.js","webpack://victory-quotes/./app/javascript/controllers/checkbox_select_all_controller.js","webpack://victory-quotes/./app/javascript/controllers/clipboard_controller.js","webpack://victory-quotes/./app/javascript/controllers/concerns/handle_required_fields.js","webpack://victory-quotes/./app/javascript/controllers/confetti_controller.js","webpack://victory-quotes/./app/javascript/controllers/crew_service_controller.js","webpack://victory-quotes/./app/javascript/controllers/door_knock_controller.js","webpack://victory-quotes/./app/javascript/controllers/estimate_item_controller.js","webpack://victory-quotes/./app/javascript/controllers/fab_controller.js","webpack://victory-quotes/./app/javascript/controllers/gallery_controller.js","webpack://victory-quotes/./app/javascript/controllers/geolocation_controller.js","webpack://victory-quotes/./app/javascript/controllers/index.js","webpack://victory-quotes/./app/javascript/controllers/install_calendar_controller.js","webpack://victory-quotes/./app/javascript/controllers/install_completion_date_controller.js","webpack://victory-quotes/./app/javascript/controllers/material_return_bundle_controller.js","webpack://victory-quotes/./app/javascript/controllers/mentions_controller.js","webpack://victory-quotes/./app/javascript/controllers/nested_form_controller.js","webpack://victory-quotes/./app/javascript/controllers/notes_controller.js","webpack://victory-quotes/./app/javascript/controllers/ordered_turbo_appends_controller.js","webpack://victory-quotes/./app/javascript/controllers/password_controller.js","webpack://victory-quotes/./app/javascript/controllers/popup_controller.js","webpack://victory-quotes/./app/javascript/controllers/pricing_controller.js","webpack://victory-quotes/./app/javascript/controllers/product_selector_controller.js","webpack://victory-quotes/./app/javascript/controllers/project_edit_controller.js","webpack://victory-quotes/./app/javascript/controllers/read_more_controller.js","webpack://victory-quotes/./app/javascript/controllers/ready_for_install_date_controller.js","webpack://victory-quotes/./app/javascript/controllers/rescheduled_reason_controller.js","webpack://victory-quotes/./app/javascript/controllers/scroll_into_view_controller.js","webpack://victory-quotes/./app/javascript/controllers/scroll_position_controller.js","webpack://victory-quotes/./app/javascript/controllers/secondary_service_types_controller.js","webpack://victory-quotes/./app/javascript/controllers/selectable_row_controller.js","webpack://victory-quotes/./app/javascript/controllers/show_more_controller.js","webpack://victory-quotes/./app/javascript/controllers/split_datetime_fields_controller.js","webpack://victory-quotes/./app/javascript/controllers/split_time_fields_controller.js","webpack://victory-quotes/./app/javascript/controllers/toggle_fields_by_name_controller.js","webpack://victory-quotes/./app/javascript/controllers/toggle_fields_controller.js","webpack://victory-quotes/./app/javascript/controllers/toggle_fields_radio_controller.js","webpack://victory-quotes/./app/javascript/controllers/toggle_fields_select_controller.js","webpack://victory-quotes/./app/javascript/controllers/tooltip_controller.js","webpack://victory-quotes/./app/javascript/controllers/unavailability_controller.js","webpack://victory-quotes/./app/javascript/controllers/zipcode_field_controller.js","webpack://victory-quotes/./app/javascript/src/actiontext.js","webpack://victory-quotes/./app/javascript/src/confirm.js","webpack://victory-quotes/./app/javascript/src/direct_uploads.js","webpack://victory-quotes/./app/javascript/src/forms.js"],"sourcesContent":["var map = {\n\t\"./zest/timer_controller.js\": 1694,\n\t\"zest/timer_controller.js\": 1694\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 = 2181;","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 6463;\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./ItemGroup\": 2831,\n\t\"./ItemGroup.jsx\": 2831,\n\t\"./Loader\": 7317,\n\t\"./Loader.jsx\": 7317,\n\t\"./ProductCatalogue\": 7436,\n\t\"./ProductCatalogue.jsx\": 7436,\n\t\"./ProductOptions\": 9289,\n\t\"./ProductOptions.jsx\": 9289,\n\t\"./ProductStyles\": 6941,\n\t\"./ProductStyles.jsx\": 6941,\n\t\"./ProductTypes\": 136,\n\t\"./ProductTypes.jsx\": 136,\n\t\"./ProductVariants\": 8669,\n\t\"./ProductVariants.jsx\": 8669,\n\t\"./Products\": 8934,\n\t\"./Products.jsx\": 8934\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 = 982;","var map = {\n\t\"./accordion_controller.js\": 9884,\n\t\"./accounts_controller.js\": 2614,\n\t\"./appointment_issues_controller.js\": 8821,\n\t\"./appointment_table_time_controller.js\": 9518,\n\t\"./auto_save_form_controller.js\": 3437,\n\t\"./auto_select_field_content_controller.js\": 4407,\n\t\"./auto_submit_form_controller.js\": 5274,\n\t\"./bulk_controller.js\": 8330,\n\t\"./checkbox_select_all_controller.js\": 8623,\n\t\"./clipboard_controller.js\": 6187,\n\t\"./confetti_controller.js\": 6462,\n\t\"./crew_service_controller.js\": 5252,\n\t\"./door_knock_controller.js\": 4115,\n\t\"./estimate_item_controller.js\": 2760,\n\t\"./fab_controller.js\": 5054,\n\t\"./gallery_controller.js\": 5554,\n\t\"./geolocation_controller.js\": 2833,\n\t\"./install_calendar_controller.js\": 3004,\n\t\"./install_completion_date_controller.js\": 7912,\n\t\"./material_return_bundle_controller.js\": 3909,\n\t\"./mentions_controller.js\": 1072,\n\t\"./nested_form_controller.js\": 8769,\n\t\"./notes_controller.js\": 5247,\n\t\"./ordered_turbo_appends_controller.js\": 4129,\n\t\"./password_controller.js\": 143,\n\t\"./popup_controller.js\": 8643,\n\t\"./pricing_controller.js\": 3209,\n\t\"./product_selector_controller.js\": 5515,\n\t\"./project_edit_controller.js\": 5676,\n\t\"./read_more_controller.js\": 2456,\n\t\"./ready_for_install_date_controller.js\": 7517,\n\t\"./rescheduled_reason_controller.js\": 6585,\n\t\"./scroll_into_view_controller.js\": 2836,\n\t\"./scroll_position_controller.js\": 7878,\n\t\"./secondary_service_types_controller.js\": 2343,\n\t\"./selectable_row_controller.js\": 7671,\n\t\"./show_more_controller.js\": 2145,\n\t\"./split_datetime_fields_controller.js\": 9148,\n\t\"./split_time_fields_controller.js\": 3154,\n\t\"./toggle_fields_by_name_controller.js\": 3705,\n\t\"./toggle_fields_controller.js\": 4863,\n\t\"./toggle_fields_radio_controller.js\": 4372,\n\t\"./toggle_fields_select_controller.js\": 2577,\n\t\"./tooltip_controller.js\": 6783,\n\t\"./unavailability_controller.js\": 3051,\n\t\"./zipcode_field_controller.js\": 6255,\n\t\"controllers/accordion_controller.js\": 9884,\n\t\"controllers/accounts_controller.js\": 2614,\n\t\"controllers/appointment_issues_controller.js\": 8821,\n\t\"controllers/appointment_table_time_controller.js\": 9518,\n\t\"controllers/auto_save_form_controller.js\": 3437,\n\t\"controllers/auto_select_field_content_controller.js\": 4407,\n\t\"controllers/auto_submit_form_controller.js\": 5274,\n\t\"controllers/bulk_controller.js\": 8330,\n\t\"controllers/checkbox_select_all_controller.js\": 8623,\n\t\"controllers/clipboard_controller.js\": 6187,\n\t\"controllers/confetti_controller.js\": 6462,\n\t\"controllers/crew_service_controller.js\": 5252,\n\t\"controllers/door_knock_controller.js\": 4115,\n\t\"controllers/estimate_item_controller.js\": 2760,\n\t\"controllers/fab_controller.js\": 5054,\n\t\"controllers/gallery_controller.js\": 5554,\n\t\"controllers/geolocation_controller.js\": 2833,\n\t\"controllers/install_calendar_controller.js\": 3004,\n\t\"controllers/install_completion_date_controller.js\": 7912,\n\t\"controllers/material_return_bundle_controller.js\": 3909,\n\t\"controllers/mentions_controller.js\": 1072,\n\t\"controllers/nested_form_controller.js\": 8769,\n\t\"controllers/notes_controller.js\": 5247,\n\t\"controllers/ordered_turbo_appends_controller.js\": 4129,\n\t\"controllers/password_controller.js\": 143,\n\t\"controllers/popup_controller.js\": 8643,\n\t\"controllers/pricing_controller.js\": 3209,\n\t\"controllers/product_selector_controller.js\": 5515,\n\t\"controllers/project_edit_controller.js\": 5676,\n\t\"controllers/read_more_controller.js\": 2456,\n\t\"controllers/ready_for_install_date_controller.js\": 7517,\n\t\"controllers/rescheduled_reason_controller.js\": 6585,\n\t\"controllers/scroll_into_view_controller.js\": 2836,\n\t\"controllers/scroll_position_controller.js\": 7878,\n\t\"controllers/secondary_service_types_controller.js\": 2343,\n\t\"controllers/selectable_row_controller.js\": 7671,\n\t\"controllers/show_more_controller.js\": 2145,\n\t\"controllers/split_datetime_fields_controller.js\": 9148,\n\t\"controllers/split_time_fields_controller.js\": 3154,\n\t\"controllers/toggle_fields_by_name_controller.js\": 3705,\n\t\"controllers/toggle_fields_controller.js\": 4863,\n\t\"controllers/toggle_fields_radio_controller.js\": 4372,\n\t\"controllers/toggle_fields_select_controller.js\": 2577,\n\t\"controllers/tooltip_controller.js\": 6783,\n\t\"controllers/unavailability_controller.js\": 3051,\n\t\"controllers/zipcode_field_controller.js\": 6255\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;","var map = {\n\t\"./actiontext\": 782,\n\t\"./actiontext.js\": 782,\n\t\"./confirm\": 7850,\n\t\"./confirm.js\": 7850,\n\t\"./direct_uploads\": 2345,\n\t\"./direct_uploads.js\": 2345,\n\t\"./forms\": 5719,\n\t\"./forms.js\": 5719\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 = 2144;","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"clock\"];\n static values = { datetime: String };\n\n connect() {\n this.startTime = Date.parse(this.datetimeValue);\n this.tick = setInterval(this.tick.bind(this), 1000);\n }\n disconnect() {\n clearInterval(this.tick);\n }\n\n tick() {\n const duration = this._getDuration({\n start: this.startTime,\n end: new Date(),\n });\n\n this.updateClock(duration);\n }\n\n updateClock(duration) {\n this.clockTarget.innerHTML = this.renderClock(duration);\n }\n\n renderClock({ hours, minutes, seconds }) {\n return `${this.renderHours(hours)}${this.renderMinutes(minutes)}${this.renderSeconds(seconds)}`;\n }\n\n renderHours(hours) {\n if(hours <= 0) { return \"\" }\n\n return `${hours}:`\n }\n\n renderMinutes(minutes) {\n return `${minutes.toString().padStart(2, \"0\")}:`\n }\n\n renderSeconds(seconds) {\n return `${seconds.toString().padStart(2, \"0\")}`\n }\n\n _getDuration({ start, end }) {\n const elapsedMilliseconds = end - start;\n const hours = Math.floor(elapsedMilliseconds / 3600000);\n const minutes = Math.floor((elapsedMilliseconds % 3600000) / 60000);\n const seconds = Math.floor((elapsedMilliseconds % 60000) / 1000);\n\n return { hours, minutes, seconds };\n }\n}\n","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","import React from \"react\";\n\nconst ensureSlashesAreSpaced = string => string.replace(/\\s?\\/\\s?/, \" / \");\n\nconst ItemGroup = ({ title, name, options, onChange = () => {}, current, children }) => {\n if (current && options.length === 1) {\n onChange(options[0]);\n }\n\n return (<>\n

{title}

\n \n \n )\n};\n\nexport default ItemGroup;\n","import React from \"react\";\nimport useSWR from \"swr\";\n\nclass LoaderCache {\n constructor() {\n this.cache = {};\n\n document.addEventListener('turbo:load', () => {\n this.cache = {};\n });\n }\n\n set(url, data) {\n this.cache[this.getKey(url)] = data;\n }\n\n get(url) {\n return this.cache[this.getKey(url)];\n }\n\n has(url) {\n return this.cache.hasOwnProperty(this.getKey(url));\n }\n\n getKey(url) {\n // without query params\n return url.split('?')[0];\n }\n}\n\nconst cache = new LoaderCache();\n\nconst fetcher = (...args) => fetch(...args).then((res) => res.json());\n\nconst Loader = ({ url, as = \"data\", children }) => {\n let { data, error } = useSWR(url, fetcher, { revalidateOnFocus: false });\n\n if (cache.has(url) && !data) {\n data = cache.get(url);\n } else {\n if (error) return
Error
; // TODO: do something sensible here\n if (!data) return
Loading...
;\n\n cache.set(url, data);\n }\n\n return React.Children.map(children, child => React.cloneElement(child, { [as]: data }));\n};\n\nexport default Loader;\n","import React, { useState } from \"react\";\n\nimport ProductTypes from \"./ProductTypes\";\nimport ProductStyles from \"./ProductStyles\";\nimport Products from \"./Products\";\nimport ProductVariants, { formatPrice, displayMeasurementType } from \"./ProductVariants\";\nimport ProductOptions from \"./ProductOptions\";\n\nconst ProductCatalogue = ({ productTypes }) => {\n const [productType, setProductType] = useState();\n const [productStyle, setProductStyle] = useState();\n const [product, setProduct] = useState();\n const [productVariant, setProductVariant] = useState();\n const [productOptions, setProductOptions] = useState({});\n const [quantity, setQuantity] = useState(1);\n let totalCost = 0;\n \n const selectedCorrectNumberOfOptions = productVariant ? Object.keys(productOptions).length === product.option_groups.length : false;\n\n if (selectedCorrectNumberOfOptions) {\n totalCost = parseFloat(productVariant.price);\n\n Object.keys(productOptions).forEach(key => {\n totalCost += parseFloat(productOptions[key]);\n });\n }\n\n return (\n
\n {\n setProductType(option);\n setProductStyle();\n setProduct();\n setProductVariant();\n setQuantity(1);\n }} />\n\n {productType && (\n {\n setProductStyle(option);\n setProduct();\n setProductVariant();\n setQuantity(1);\n }} />\n )}\n\n {productStyle && (\n {\n setProduct(option);\n setProductVariant();\n setProductOptions({});\n setQuantity(1);\n }} />\n )}\n\n {product && (\n {\n setProductVariant(option);\n }} />\n )}\n\n {productVariant && product.option_groups.length > 0 && (\n {\n setProductOptions({\n ...productOptions,\n [optionGroup.id]: option.price\n });\n }} />\n )}\n\n {selectedCorrectNumberOfOptions && (<>\n
\n

Quantity

\n\n {\n const newQuantity = event.target.value;\n\n if (newQuantity === \"\" || (!isNaN(newQuantity) && newQuantity > 0)) {\n setQuantity(newQuantity);\n } else {\n setQuantity(1);\n }\n }} />\n {displayMeasurementType(product.measurement_type) && {displayMeasurementType(product.measurement_type)}}\n =\n {formatPrice(totalCost * quantity)}\n
\n\n
\n

Additional information

\n\n \n
\n\n \n )}\n
\n );\n};\n\nexport default ProductCatalogue;\n","import React from \"react\";\n\nimport ItemGroup from \"./ItemGroup\";\n\nimport { formatPrice } from \"./ProductVariants\";\n\nconst ItemMeta = ({ option }) => {\n return (\n \n {formatPrice(option.price)}\n \n );\n};\n\nconst ProductOptions = ({ product, onChange, ...props }) => {\n return product.option_groups.map((option_group, index) => {\n return (\n onChange(option_group, option)}\n {...props}\n >\n \n \n );\n });\n};\n\nexport default ProductOptions;\n","import React from \"react\";\n\nimport Loader from \"./Loader\";\nimport ItemGroup from \"./ItemGroup\";\n\nconst ItemMeta = ({ option }) => {\n return {option.sellable_products_count};\n};\n\nconst ProductStyles = ({ productStyles, ...props }) => {\n return (\n \n \n \n );\n};\n\nexport default (props) => {\n if (props.productStyles) return ;\n\n if (!props.productType) return null;\n\n return (\n \n \n \n );\n};\n","import React from \"react\";\n\nimport Loader from \"./Loader\";\nimport ItemGroup from \"./ItemGroup\";\n\nconst ItemMeta = ({ option }) => {\n return {option.sellable_products_count};\n};\n\nconst ProductTypes = ({ productTypes, ...props }) => {\n return (\n \n \n \n );\n};\n\nexport default (props) => {\n if (props.productTypes) return ;\n\n return (\n \n \n \n );\n};\n","import React from \"react\";\n\nimport ItemGroup from \"./ItemGroup\";\n\nexport const formatPrice = price => `$${parseFloat(price).toFixed(2)}`;\n\nexport const displayMeasurementType = type => type === \"SF\" ? \"sq. ft\" : \"\"\n\nconst ItemMeta = ({ product, option }) => {\n const measurementType = displayMeasurementType(product.measurement_type);\n\n return (\n \n {formatPrice(option.price)}\n {measurementType ? ` / ${measurementType}` : null}\n \n );\n};\n\nconst ProductVariants = ({ product, variants, ...props }) => {\n return (\n \n \n \n );\n};\n\nexport default ProductVariants;\n","import React from \"react\";\n\nimport Loader from \"./Loader\";\nimport ItemGroup from \"./ItemGroup\";\n\nconst ItemMeta = ({ option }) => {\n return {option.variants.length};\n};\n\nconst Products = ({ products, ...props }) => {\n return (\n \n \n \n );\n};\n\nexport default (props) => {\n if (props.products) return ;\n\n if (!props.productStyle) return null;\n\n return (\n \n \n \n );\n};\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"item\", \"content\"];\n\n toggle(event) {\n const currentItem = event.currentTarget.closest('[data-accordion-target=\"item\"]');\n const currentContent = currentItem.querySelector('[data-accordion-target=\"content\"]');\n const currentIcon = currentItem.querySelector('[data-accordion-target=\"icon\"]');\n\n this.itemTargets.forEach((item) => {\n if (item !== currentItem) {\n item.querySelector('[data-accordion-target=\"content\"]').classList.add(\"hidden\");\n item.querySelector('[data-accordion-target=\"icon\"]').classList.remove(\"fa-chevron-up\");\n item.querySelector('[data-accordion-target=\"icon\"]').classList.add(\"fa-chevron-down\");\n }\n });\n\n currentContent.classList.toggle(\"hidden\");\n currentIcon.classList.toggle(\"fa-chevron-up\");\n currentIcon.classList.toggle(\"fa-chevron-down\");\n }\n}\n","// 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()\n","// Reconnect ActionCable after switching accounts\n\nimport { Controller } from \"stimulus\"\nimport consumer from \"../channels/consumer\"\n\nexport default class extends Controller {\n reconnect(event) {\n if (consumer.connection.isActive()) {\n consumer.connection.reopen()\n }\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"repAssignForm\"]\n\n submitWithIndex(event) {\n event.preventDefault();\n const form = event.target.closest(\"form\");\n\n const index = Array.from(this.element.querySelectorAll(\"form\")).indexOf(form);\n\n // Create a hidden input to include the selection_rank in the form submission\n const indexInput = document.createElement(\"input\");\n indexInput.type = \"hidden\";\n indexInput.name = \"appointment_issue[selection_rank]\";\n indexInput.value = index + 1;\n\n form.appendChild(indexInput);\n form.submit();\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"timeSinceAssignment\", \"timeTillAppointment\"];\n\n static values = {\n appointmentAt: String,\n assignedAt: String,\n appointmentId: String\n };\n\n updateTimes(appointmentAtValue, assignedAtValue) {\n this.interval = setInterval(() => {\n const timeSince = new Date().getTime() - assignedAtValue \n const timeTill = appointmentAtValue - new Date().getTime()\n\n this.timeSinceAssignmentTarget.innerHTML = `${this.hoursFromTime(timeSince)}h : ${this.minutesFromTime(timeSince)}m`\n this.timeTillAppointmentTarget.innerHTML = `${this.hoursFromTime(timeTill)}h : ${this.minutesFromTime(timeTill)}m`\n }, 1000)\n }\n\n hoursFromTime(time) {\n return Math.floor(time / (1000 * 60 * 60))\n }\n\n minutesFromTime(time) {\n return Math.floor((time % (1000 * 60 * 60)) / (1000 * 60))\n }\n\n connect() {\n const appointmentAtValue = new Date(this.appointmentAtValue).getTime()\n const assignedAtValue = new Date(this.assignedAtValue).getTime()\n \n this.updateTimes(appointmentAtValue, assignedAtValue)\n }\n\n disconnect() {\n clearInterval(this.interval)\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"form\"];\n\n connect() {\n // Auto-submit the form on field changes\n this.formTarget.addEventListener(\"change\", this.autoSubmit.bind(this));\n }\n\n autoSubmit(event) {\n const formData = new FormData(this.formTarget);\n\n const method = this.formTarget.querySelector(\"input[name='_method']\")?.value || \"POST\";\n\n fetch(this.formTarget.action, {\n method: method.toUpperCase(),\n body: formData,\n headers: {\n \"X-Requested-With\": \"XMLHttpRequest\",\n Accept: \"application/json\",\n },\n credentials: \"same-origin\",\n })\n .then((response) => {\n if (response.ok) {\n console.log(`[auto_save_form_controller] Saved`);\n }\n })\n .catch((error) => {\n console.error(\"[auto_save_form_controller] Error:\", error);\n });\n }\n}\n","// For the automatic selection of text in a form field to enable fast updating\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n select(event) {\n event.target.select()\n event.target.focus()\n }\n}\n","// Reconnect ActionCable after switching accounts\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n submit() {\n // https://stackoverflow.com/a/69537709\n this.element.requestSubmit();\n }\n}\n","// The BulkController can be used for adding bulk operations to your index views.\n// You can add a Select All checkbox and checkboxes for each record and easily grab\n// the selected records.\n//\n// Usage:\n//\n// import BulkController from \"controllers/bulk_controller\"\n//\n// export default class extends BulkController {\n// }\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n\tstatic targets = [ \"checkbox\", \"selectAll\" ]\n\n // Toggles all checkboxes based upon what is currently checked\n toggleSelectAll(event) {\n (!this.allCheckboxesSelected) ? this.selectAll() : this.unselectAll()\n }\n\n // Selects all checkboxes\n selectAll() {\n this.selectAllTarget.checked = true\n this.selectAllTarget.indeterminate = false\n this.unselected.forEach(target => target.checked = true)\n }\n\n // Unselects all checkboxes\n unselectAll() {\n this.selectAllTarget.checked = false\n this.selectAllTarget.indeterminate = false\n this.selected.forEach(target => target.checked = false)\n }\n\n // Keep track of SelectAll state based upon how many checkboxes are selected\n change(event) {\n if (this.noCheckboxesSelected) {\n this.selectAllTarget.checked = false\n this.selectAllTarget.indeterminate = false\n\n } else if (this.allCheckboxesSelected) {\n this.selectAllTarget.checked = true\n this.selectAllTarget.indeterminate = false\n\n } else {\n this.selectAllTarget.indeterminate = true\n }\n }\n\n // Returns true if Select All checkbox is checked\n get selectedAll() {\n return this.selectAllTarget.checked\n }\n\n // Returns all selected checkboxes\n get selected() {\n return this.checkboxTargets.filter(target => target.checked)\n }\n\n // Returns all unselected checkboxes\n get unselected() {\n return this.checkboxTargets.filter(target => !target.checked)\n }\n\n // Returns data-id attributes for all selected checkboxes\n get selectedIds() {\n return this.selected.map(target => target.dataset.id)\n }\n\n // Returns true if all checkboxes are checked\n get allCheckboxesSelected() {\n return this.checkboxTargets.every(target => target.checked)\n }\n\n // Returns true if no checkboxes are checked\n get noCheckboxesSelected() {\n return this.checkboxTargets.every(target => !target.checked)\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"parent\", \"child\"]\n\n toggleChildren() {\n if (this.parentTarget.checked) {\n this.childTargets.map(x => x.checked = true)\n } else {\n this.childTargets.map(x => x.checked = false)\n }\n }\n\n toggleParent() {\n if (this.childTargets.map(x => x.checked).includes(false)) {\n this.parentTarget.checked = false\n } else {\n this.parentTarget.checked = true\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"source\", \"initial\", \"response\"];\n static values = {\n copy: String,\n };\n\n copy() {\n navigator.clipboard.writeText(this.getCopyValue());\n\n this.toggleInitialTarget(false);\n\n if (this.hasResponseTarget) {\n this.responseTarget.classList.remove(\"hidden\");\n } else {\n this.showTemporaryCopiedMessage();\n }\n\n this.resetAfterDelay();\n }\n\n getCopyValue() {\n return this.hasSourceTarget && this.sourceTarget.value\n ? this.sourceTarget.value\n : this.copyValue;\n }\n\n toggleInitialTarget(visible) {\n this.initialTarget.classList.toggle(\"hidden\", !visible);\n }\n\n showTemporaryCopiedMessage() {\n const copiedMessage = document.createElement(\"span\");\n copiedMessage.textContent = \"Copied!\";\n this.initialTarget.insertAdjacentElement(\"afterend\", copiedMessage);\n this.temporaryMessage = copiedMessage;\n }\n\n resetAfterDelay() {\n setTimeout(() => {\n this.toggleInitialTarget(true);\n\n if (this.hasResponseTarget) {\n this.responseTarget.classList.add(\"hidden\");\n }\n\n if (this.temporaryMessage) {\n this.temporaryMessage.remove();\n this.temporaryMessage = null;\n }\n }, 2000);\n }\n}","/**\n * disables all required fields within a content area\n */\nconst disableAllRequiredFields = ($target) => {\n Array.from($target.querySelectorAll(\"[required]\")).forEach($element => $element.setAttribute(\"disabled\", true))\n}\n\n/**\n * enables all required fields within a content area\n */\nconst enableAllRequiredFields = ($target) => {\n Array.from($target.querySelectorAll(\"[required]\")).forEach($element => $element.removeAttribute(\"disabled\"))\n}\n\nexport const handleRequiredFields = ($target) => {\n if($target.classList.contains('hidden')) {\n disableAllRequiredFields($target)\n } else {\n enableAllRequiredFields($target)\n }\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n connect() {\n if (typeof tsParticles === 'undefined') return;\n\n tsParticles.load(\"tsparticles\", {\n emitters: [\n {\n startCount: 100,\n life: {\n duration: 3,\n count: 1,\n },\n position: {\n x: 0,\n y: 10,\n },\n particles: {\n color: {\n value: [\"#F16022\", \"#fff\"],\n },\n move: {\n direction: \"top-right\",\n },\n },\n },\n {\n startCount: 100,\n life: {\n duration: 3,\n count: 1,\n },\n position: {\n x: 100,\n y: 10,\n },\n particles: {\n color: {\n value: [\"#F16022\", \"#fff\"],\n },\n move: {\n direction: \"top-left\",\n },\n },\n },\n ],\n preset: \"confetti\",\n });\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"tiers\", \"tier\"]\n\n // make sure we show the tiers when selecting a service\n // make sure we hide and disable the tiers when unselecting a service\n serviceChange(event) {\n const $serviceCheckbox = event.target\n\n if ($serviceCheckbox.checked) {\n this.tiersTarget.classList.remove(\"hidden\")\n this.tierTargets.forEach(tier => tier.removeAttribute(\"disabled\"))\n } else {\n this.tiersTarget.classList.add(\"hidden\")\n this.tierTargets.forEach(tier => tier.setAttribute(\"disabled\", true))\n }\n }\n\n // prevent more than one tier checkbox being checked in this service\n tierChange(event) {\n const $tierCheckbox = event.target\n\n if ($tierCheckbox.checked) {\n this.tierTargets.forEach(tier => tier.checked = false)\n $tierCheckbox.checked = true\n }\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"longitude\", \"latitude\"];\n\n createWithLocation(event) {\n event.target.disabled = true\n event.target.innerText = \"Finding you...\"\n\n const success = ({ coords }) => {\n this.longitudeTarget.value = coords.longitude;\n this.latitudeTarget.value = coords.latitude;\n\n this.element.requestSubmit();\n }\n\n const error = (geolocationError) => {\n if (geolocationError instanceof GeolocationPositionError) {\n switch (geolocationError.code) {\n case 1: alert(\"You need to allow Orange to access your location\")\n }\n }\n\n // whatever the error, we should create the DoorKnock and continue\n this.element.requestSubmit();\n }\n\n navigator.geolocation.getCurrentPosition(success, error)\n }\n}\n","// Reconnect ActionCable after switching accounts\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"button\"];\n\n change() {\n this.buttonTarget.classList.remove(\"hidden\");\n }\n}\n","import { Controller } from \"stimulus\"\n\nconst OVERLAY_ID = \"fab-overlay\";\nconst FAB_OPEN_ID = \"fab-open\";\nconst OVERLAY_CLASS = \"fixed inset-0 w-screen h-screen bg-black bg-opacity-30 z-40\";\n\nexport default class extends Controller {\n static targets = [\"items\"]\n\n connect() {\n this.fabCheckbox = document.getElementById(FAB_OPEN_ID);\n }\n\n toggle(event) {\n event.target.checked ? this.showFab() : this.dismissFab();\n }\n\n showFab() {\n if (!this.fabCheckbox) return;\n this.fabCheckbox.checked = true;\n this.createOverlay();\n this.toggleScroll(false);\n this.toggleItems(true);\n }\n\n dismissFab() {\n if (!this.fabCheckbox) return;\n this.fabCheckbox.checked = false;\n this.removeOverlay();\n this.toggleScroll(true);\n this.toggleItems(false);\n }\n\n createOverlay() {\n const overlay = document.createElement(\"div\");\n overlay.id = OVERLAY_ID;\n overlay.className = OVERLAY_CLASS;\n overlay.addEventListener(\"click\", this.dismissFab.bind(this));\n document.body.appendChild(overlay);\n }\n\n removeOverlay() {\n const overlay = document.getElementById(OVERLAY_ID);\n overlay?.remove();\n }\n\n toggleScroll(enable) {\n document.documentElement.classList.toggle(\"overflow-hidden\", !enable);\n }\n\n toggleItems(show) {\n this.itemsTarget.classList.toggle('translate-x-0', show);\n this.itemsTarget.classList.toggle('translate-x-full', !show);\n }\n\n disconnect() {\n this.toggleScroll(true);\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"modal\", \"modalImage\", \"prevButton\", \"nextButton\", \"indicators\"];\n\n initialize() {\n this.currentIndex = 0;\n this.images = [];\n }\n\n open(event) {\n event.preventDefault()\n\n const gallerySection = event.currentTarget.closest(\"[data-gallery]\");\n this.images = Array.from(gallerySection.querySelectorAll(\"[data-gallery-image]\")).map(img => img.dataset.imageUrl);\n \n this.currentIndex = this.images.indexOf(event.currentTarget.dataset.imageUrl);\n\n this.showImage();\n \n this.modalTarget.classList.remove(\"hidden\");\n }\n\n close() {\n this.modalTarget.classList.add(\"hidden\");\n }\n\n next() {\n if (this.currentIndex < this.images.length - 1) {\n this.currentIndex++;\n this.showImage();\n }\n }\n\n prev() {\n if (this.currentIndex > 0) {\n this.currentIndex--;\n this.showImage();\n }\n }\n\n goTo(event) {\n this.currentIndex = parseInt(event.currentTarget.dataset.index, 10);\n this.showImage();\n }\n\n showImage() {\n this.modalImageTarget.src = this.images[this.currentIndex];\n\n this.prevButtonTarget.classList.toggle(\"hidden\", this.currentIndex === 0);\n this.nextButtonTarget.classList.toggle(\"hidden\", this.currentIndex === this.images.length - 1);\n\n this.indicatorsTarget.querySelectorAll(\"button\").forEach((dot, index) => {\n dot.classList.toggle(\"bg-negative/60\", index === this.currentIndex);\n dot.classList.toggle(\"bg-negative/10\", index !== this.currentIndex);\n });\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener(\"click\", this.handleClick.bind(this));\n }\n\n handleClick(event) {\n event.preventDefault();\n\n const linkElement = this.element;\n\n // Disable the link and update text\n linkElement.classList.add(\"disabled\");\n const originalText = linkElement.innerHTML;\n linkElement.innerHTML = \"Finding you...\";\n\n const success = ({ coords }) => {\n // Create the new URL with the coordinates as parameters\n const baseUrl = linkElement.getAttribute(\"href\");\n const separator = baseUrl.includes(\"?\") ? \"&\" : \"?\";\n const newUrl = `${baseUrl}${separator}lng=${coords.longitude}&lat=${coords.latitude}`;\n\n // Navigate to the new URL\n window.location.href = newUrl;\n };\n\n const error = (geolocationError) => {\n if (geolocationError instanceof GeolocationPositionError) {\n switch (geolocationError.code) {\n case 1:\n alert(\"You need to allow Orange to access your location\");\n break;\n }\n }\n\n // Reset the link\n linkElement.classList.remove(\"disabled\");\n linkElement.innerHTML = originalText;\n\n // Continue to the original URL without coordinates\n window.location.href = linkElement.getAttribute(\"href\");\n };\n\n navigator.geolocation.getCurrentPosition(success, error);\n }\n}\n","// Load all the controllers within this directory and all subdirectories,\n// and controllers in the components folder.\n// Controller files must be named *_controller.js.\n\nimport { Application } from \"stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\"controllers\", true, /_controller\\.js$/)\nconst contextComponents = require.context(\"../../components\", true, /_controller\\.js$/)\napplication.load(\n definitionsFromContext(context).concat(\n definitionsFromContext(contextComponents))\n)\n\nimport { Dropdown, Modal, Tabs, Popover, Toggle, Slideover } from \"tailwindcss-stimulus-components\"\napplication.register('dropdown', Dropdown)\napplication.register('modal', Modal)\napplication.register('tabs', Tabs)\napplication.register('popover', Popover)\napplication.register('toggle', Toggle)\napplication.register('slideover', Slideover)\n\nimport Flatpickr from 'stimulus-flatpickr'\napplication.register('flatpickr', Flatpickr)\n","import { Controller } from \"stimulus\";\n\n// NGL, this is a bit hacky\n// The problem is that we want installs which span multiple days to be in the same predictable position each day\n// so that each day you can easily see the difference between new and continuing installs\n// The theory to the solution is as we loop over the calendar to keep track of yesterday's installs, and then make\n// sure that any installs from yesterday that are also today are in the same position today.\nexport default class extends Controller {\n installPositions = []\n\n connect() {\n // ok so there's something weird and turboy (maybe) going on here\n // when returning to this page, like clicking back from an install to the calendar\n // all of the page is already correct, and running any of this code makes it bad\n // so we check for any blank installs, which only this code creates, and leave if there are any\n if (this.element.querySelectorAll(\".blankInstall\").length > 0) return;\n\n const cells = this.element.querySelectorAll(\".calendar-day\");\n\n cells.forEach(cell => {\n const installs = Array.from(cell.querySelectorAll(\"[data-entry-id]\"));\n const todayInstallIds = installs.map(install => install.getAttribute(\"data-entry-id\"));\n let movedInstalls = 0;\n\n installs.forEach(install => {\n this.hideSubsequentInstallsWithSameId(install);\n });\n\n if (this.installPositions.length === 0 || todayInstallIds.length === 0) {\n this.installPositions = todayInstallIds;\n return;\n }\n\n const moveInstall = install => {\n cell.querySelector(\".ordered-installs\").appendChild(install)\n movedInstalls++\n };\n\n // loop over yesterdays installs\n this.installPositions.forEach(installId => {\n // if install also exists today\n if (todayInstallIds.indexOf(installId) > -1) {\n // move today's install to that position\n moveInstall(cell.querySelector(`[data-entry-id=\"${installId}\"]`))\n } else {\n // otherwise move a new install into this position\n const newInstall = cell.querySelector(\".installs [data-entry-new]\");\n if (newInstall) {\n moveInstall(newInstall)\n } else if (movedInstalls < todayInstallIds.length) {\n // or if we haven't yet moved all of today's installs\n // create a blank install at that position\n const blankInstall = document.createElement(\"div\");\n blankInstall.className = \"calendar-entry blankInstall\";\n cell.querySelector(\".ordered-installs\").appendChild(blankInstall);\n }\n }\n });\n\n this.installPositions = Array.from(cell.querySelectorAll(\".calendar-entry\")).map(install => install.getAttribute(\"data-entry-id\"));\n });\n }\n\n hideSubsequentInstallsWithSameId(element) {\n const installId = element.getAttribute(\"data-entry-id\");\n const installs = Array.from(this.element.querySelectorAll(`[data-entry-id=\"${installId}\"]`));\n const currentIndex = installs.indexOf(element);\n\n installs.slice(currentIndex + 1).forEach(install => {\n install.classList.add(\"subsequentInstall\");\n install.style.width = \"100%\";\n });\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"startDate\", \"numberOfDays\", \"completedDate\", \"completionTime\", \"estimatedDate\", \"numberOfBusinessDays\"];\n\n calculatedEndDate() {\n let currentDate = this.startDateTarget.value;\n if (!this.hasNumberOfDaysTarget || !this.isDate(currentDate)) {\n return\n }\n let numberOfDays = this.numberOfDaysTarget.value;\n fetch(`/calculated_completion_date.json?start_date=${currentDate}&number_of_days=${numberOfDays}`)\n .then(response => response.json())\n .then((data) => {\n this.completedDateTarget.innerHTML = data.completion_date\n });\n }\n\n numberOfDays() {\n if (!this.hasEstimatedDateTarget) {\n return\n }\n\n const startDate = new Date(this.startDateTarget.value);\n const endDate = new Date(this.estimatedDateTarget.value);\n\n if (!this.isDate(startDate) || !this.isDate(endDate)) {\n return\n }\n\n fetch(`/calculated_number_of_days.json?start_date=${startDate}&end_date=${endDate}`)\n .then(response => response.json())\n .then((data) => {\n this.completionTimeTarget.value = data.number_of_days\n this.numberOfBusinessDaysTarget.innerHTML = data.number_of_days\n });\n }\n\n isDate(date) {\n return (new Date(date) !== \"Invalid Date\") && !isNaN(new Date(date));\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"checkbox\", \"fileInput\", \"fileGroup\"];\n\n connect() {\n this.toggleFileGroup(); \n }\n\n toggleCheckbox() {\n if (this.fileInputTarget.files.length > 0) {\n this.checkboxTarget.checked = false;\n }\n }\n\n toggleFileInput() {\n if (this.checkboxTarget.checked) {\n this.fileInputTarget.value = \"\";\n }\n this.toggleFileGroup();\n }\n\n toggleFileGroup() {\n if (this.checkboxTarget.checked) {\n this.fileGroupTarget.classList.add(\"hidden\");\n } else {\n this.fileGroupTarget.classList.remove(\"hidden\");\n }\n }\n}\n","import { Controller } from \"stimulus\"\nimport Tribute from \"tributejs\"\nimport Trix from \"trix\"\n\nexport default class extends Controller {\n static targets = [ \"field\" ]\n\n connect() {\n this.editor = this.fieldTarget.editor\n this.initializeTribute()\n }\n\n initializeTribute() {\n this.tribute = new Tribute({\n allowSpaces: true,\n lookup: 'name',\n values: this.fetchUsers,\n })\n this.tribute.attach(this.fieldTarget)\n this.fieldTarget.addEventListener('tribute-replaced', this.replaced)\n this.tribute.range.pasteHtml = this._pasteHtml.bind(this)\n }\n\n disconnect() {\n this.tribute.detach(this.fieldTarget)\n }\n\n fetchUsers(text, callback) {\n fetch(`/users/mentions.json?query=${text}`)\n .then(response => response.json())\n .then(users => callback(users))\n .catch(error => callback([]))\n }\n\n replaced(e) {\n let mention = e.detail.item.original\n let attachment = new Trix.Attachment({\n content: mention.content,\n sgid: mention.sgid,\n })\n this.editor.insertAttachment(attachment)\n this.editor.insertString(\" \")\n }\n\n _pasteHtml(html, startPos, endPos) {\n let range = this.editor.getSelectedRange()\n let position = range[0]\n let length = endPos - startPos\n\n this.editor.setSelectedRange([position - length, position])\n this.editor.deleteInDirection(\"backward\")\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"links\", \"template\"];\n\n connect() {}\n\n addAssociation(event) {\n event.preventDefault();\n\n const content = this.templateTarget.innerHTML.replace(\n /NEW_RECORD/g,\n new Date().getTime()\n );\n this.linksTarget.insertAdjacentHTML(\"beforebegin\", content);\n }\n\n removeAssociation(event) {\n event.preventDefault();\n\n const wrapper = event.target.closest(\".nested-fields\");\n if (wrapper.dataset.newRecord === \"true\") {\n wrapper.remove();\n } else {\n wrapper.querySelector(\"input[name*='_destroy']\").value = 1;\n wrapper.style.display = \"none\";\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"showButton\", \"form\", \"field\"];\n\n showForm() {\n this.showButtonTarget.classList.add(\"hidden\");\n this.formTarget.classList.remove(\"hidden\");\n this.fieldTarget.focus();\n }\n}\n","// https://github.com/hotwired/turbo/issues/109\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n sorting = false\n\n initialize() {\n this.element.addEventListener('DOMNodeInserted', event => {\n if (this.sorting) return;\n\n if (event.target.parentNode === this.element) {\n this.sortChildren();\n }\n });\n }\n\n sortChildren() {\n const children = Array.from(this.element.children);\n \n if (elementsAreSorted(children)) return;\n\n this.sorting = true;\n\n children.sort(compareElements).forEach(child => this.element.append(child))\n\n this.sorting = false;\n }\n}\n\nfunction elementsAreSorted([ left, ...rights ]) {\n for (const right of rights) {\n if (compareElements(left, right) > 0) return false\n left = right\n }\n return true\n}\n\nfunction compareElements(left, right) {\n return getSortCode(left) - getSortCode(right)\n}\n\nfunction getSortCode(element) {\n return element.getAttribute(\"data-sort-code\") || 0\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"password\", \"confirmPassword\", \"matchMessage\", \"lengthMessage\", \"submitButton\"];\n static values = {\n minimumLength: Number,\n };\n\n checkPasswordMatch() {\n const password = this.passwordTarget.value;\n const confirmPassword = this.confirmPasswordTarget.value;\n\n const isMatch = password === confirmPassword;\n const isTooShort = password.length < this.minimumLengthValue;\n\n if (password && confirmPassword) {\n this.updateMessages(isMatch, isTooShort);\n this.toggleSubmitButton(isMatch && !isTooShort);\n } else {\n this.clearMessages();\n this.disableSubmitButton();\n }\n }\n\n updateMessages(isMatch, isTooShort) {\n this.updateMatchMessage(isMatch);\n this.updateLengthMessage(isTooShort);\n }\n\n updateMatchMessage(isMatch) {\n this.matchMessageTarget.textContent = isMatch ? \"\" : \"Passwords do not match!\";\n }\n\n updateLengthMessage(isTooShort) {\n this.lengthMessageTarget.textContent = isTooShort ? `Password needs to be at least ${this.minimumLengthValue} characters` : \"\";\n }\n\n clearMessages() {\n this.matchMessageTarget.textContent = \"\";\n this.lengthMessageTarget.textContent = \"\";\n }\n\n toggleSubmitButton(enable) {\n enable ? this.submitButtonTarget.removeAttribute(\"disabled\") : this.disableSubmitButton();\n }\n\n disableSubmitButton() {\n this.submitButtonTarget.setAttribute(\"disabled\", true);\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"focusField\"];\n\n show(popupName) {\n document.querySelector(`[data-popup=\"${popupName}\"]`).classList.remove(\"hidden\");\n if(this.hasFocusFieldTarget) this.focusFieldTarget.focus();\n }\n\n open(event) {\n const popupName = event.target.getAttribute(\"data-popup-name\");\n\n this.show(popupName);\n }\n\n close(event) {\n const popupName = event.target.getAttribute(\"data-popup-name\");\n\n document.querySelector(`[data-popup=\"${popupName}\"]`).classList.add(\"hidden\");\n }\n\n load(event) {\n event.preventDefault();\n\n let modalSize = event.target.closest(\"a\").getAttribute(\"data-modal-size\");\n let jsUrl = event.target.closest(\"a\").href;\n\n if (jsUrl.indexOf('?') > -1) {\n jsUrl = jsUrl.replace('?', '.js?');\n } else {\n jsUrl += '.js';\n }\n\n fetch(jsUrl)\n .then(response => {\n if (response.status === 401 && response.statusText === 'Unauthorized'){\n window.location.reload();\n return Promise.reject();\n } else {\n return response.text()\n }\n })\n .then(html => {\n // this.show('loaded-modal', html);\\\n document.querySelector('#popup-body-loaded-modal').innerHTML = html;\n\n if (modalSize === 'full-screen') {\n document.querySelector('#popup-container-loaded-modal').classList.remove(\"xl:w-1/2\");\n } else {\n document.querySelector('#popup-container-loaded-modal').classList.add(\"xl:w-1/2\");\n }\n\n this.show('loaded-modal');\n });\n }\n}\n","// Options:\n//\n// Use data-pricing-active=\"yearly\" to select yearly by default\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"toggle\", \"frequency\", \"plans\" ]\n\n connect() {\n // Classes toggle on the plan switcher items\n this.activeFrequencyClass = (this.data.get(\"active-frequency-class\") || \"bg-default text-focus\").split(\" \")\n this.inactiveFrequencyClass = (this.data.get(\"inactive-frequency-class\") || \"text-negative hover:text-secondary\").split(\" \")\n\n // Classes toggle on the plans\n this.activePlansClass = (this.data.get(\"activePlansClass\") || \"flex\").split(\" \")\n this.inactivePlansClass = (this.data.get(\"inactivePlansClass\") || \"hidden\").split(\" \")\n\n // Remove any targets without plans in them\n this.frequencyTargets.forEach(target => {\n let frequency = target.dataset.frequency\n let index = this.plansTargets.findIndex((element) => element.dataset.frequency == frequency && element.childElementCount > 0)\n if (index == -1) target.remove()\n })\n\n // Hide frequency toggle if we have less than 2 frequencies with plans\n if (this.frequencyTargets.length < 2) this._hideFrequencyToggle()\n\n let frequency = this.data.get(\"active\") || this.frequencyTargets[0].dataset.frequency\n this._toggle(frequency)\n }\n\n // Switches visible plans\n switch(event) {\n event.preventDefault()\n this._toggle(event.target.dataset.frequency)\n }\n\n // Hides frequency toggle\n _hideFrequencyToggle() {\n this.toggleTarget.classList.add(\"hidden\")\n }\n\n // Toggles visible plans and selected frequency\n // Expects: \"monthly\", \"yearly\", etc\n _toggle(frequency) {\n // Keep track of active frequency on a data attribute\n this.data.set(\"active\", frequency)\n\n this.frequencyTargets.forEach(target => {\n if (target.dataset.frequency == frequency) {\n this.showFrequency(target)\n } else {\n this.hideFrequency(target)\n }\n })\n\n this.plansTargets.forEach(target => {\n if (target.dataset.frequency == frequency) {\n this.showPlans(target)\n } else {\n this.hidePlans(target)\n }\n })\n }\n\n showFrequency(element) {\n element.classList.add(...this.activeFrequencyClass)\n element.classList.remove(...this.inactiveFrequencyClass)\n }\n\n hideFrequency(element) {\n element.classList.remove(...this.activeFrequencyClass)\n element.classList.add(...this.inactiveFrequencyClass)\n }\n\n showPlans(element) {\n element.classList.add(...this.activePlansClass)\n element.classList.remove(...this.inactivePlansClass)\n }\n\n hidePlans(element) {\n element.classList.remove(...this.activePlansClass)\n element.classList.add(...this.inactivePlansClass)\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"productType\", \"productStyle\", \"product\"];\n\n connect() {\n this.productTypeTarget.querySelector(\"option\").selected = true;\n this.productStyleTarget.querySelector(\"option\").selected = true;\n this.productTarget.querySelector(\"option\").selected = true;\n this.productStyleTarget.disabled = true;\n this.productTarget.disabled = true;\n }\n\n filterProductStyles() {\n const productTypeId = this.productTypeTarget.value;\n\n if (productTypeId) {\n this.productStyleTarget\n .querySelectorAll(`optgroup`)\n .forEach((optgroup) => (optgroup.style.display = \"none\"));\n\n this.productStyleTarget.querySelector(\n `optgroup[label=\"${productTypeId}\"]`\n ).style.display = \"block\";\n\n this.productStyleTarget.disabled = false;\n }\n }\n\n filterProducts() {\n const productStyleId = this.productStyleTarget.value;\n console.log(\"filterProducts\", this.productStyleTarget.value)\n\n if (productStyleId) {\n this.productTarget\n .querySelectorAll(`optgroup`)\n .forEach((optgroup) => (optgroup.style.display = \"none\"));\n\n this.productTarget.querySelector(\n `optgroup[label=\"${productStyleId}\"]`\n ).style.display = \"block\";\n\n this.productTarget.disabled = false;\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"searchSection\"];\n \n toggle(event) {\n event.preventDefault();\n this.searchSectionTarget.classList.toggle(\"hidden\");\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"summary\", \"whole\"];\n\n open() {\n this.summaryTarget.classList.add(\"hidden\");\n this.wholeTarget.classList.remove(\"hidden\");\n }\n\n close() {\n this.summaryTarget.classList.remove(\"hidden\");\n this.wholeTarget.classList.add(\"hidden\");\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['formSubmit', 'date'];\n\n update() {\n this.formSubmitTarget.setAttribute(\"href\", `/projects/ready_for_install?date=${this.date()}`)\n }\n\n date() { return this.dateTarget.value }\n}","import { Controller } from \"stimulus\";\nimport { handleRequiredFields } from \"./concerns/handle_required_fields\";\n\nexport default class extends Controller {\n static targets = [\"reasons\"];\n static values = {\n appointmentAt: String,\n appointmentCreated: String\n };\n\n change(event) {\n if (this.overFifteenMinutesOld()) {\n this.reasonsTarget.classList.toggle(\"hidden\", this.datesAreTheSame(event.target.value, this.appointmentAtValue));\n }\n\n handleRequiredFields(this.reasonsTarget);\n }\n\n datesAreTheSame(date1, date2) {\n return new Date(date1).toLocaleDateString() === new Date(date2).toLocaleDateString()\n }\n\n overFifteenMinutesOld() {\n const appointmentCreated = new Date(this.appointmentCreatedValue);\n const now = new Date();\n const difference = now - appointmentCreated;\n\n const minutes = difference / 1000 / 60;\n\n return minutes > 15;\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static values = {\n selector: String\n }\n\n connect() {\n const $targetElement = this.element.querySelector(this.selectorValue);\n\n if (!$targetElement) return;\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#block\n $targetElement.scrollIntoView({ inline: \"center\", block: \"nearest\" });\n }\n}\n","import { Controller } from \"stimulus\";\n\n// consider adding the scroll element as a value if we need to target a specific element\n\nexport default class extends Controller {\n connect() {\n document.addEventListener(\"turbo:render\", this.handleScroll);\n document.addEventListener(\"turbo:before-cache\", this.saveScrollPosition);\n }\n\n disconnect() {\n document.removeEventListener(\"turbo:render\", this.handleScroll);\n document.removeEventListener(\"turbo:before-cache\", this.saveScrollPosition);\n }\n\n handleScroll = () => {\n const main = document.querySelector(\".main-content-area\");\n\n requestAnimationFrame(() => {\n const savedPosition = sessionStorage.getItem(\"scroll-position\");\n\n if (main && savedPosition) {\n main.scrollTo(0, parseInt(savedPosition, 10));\n\n // Remove the stored position so it's only used once\n sessionStorage.removeItem(\"scroll-position\");\n }\n });\n }\n\n saveScrollPosition = () => {\n const main = document.querySelector(\".main-content-area\");\n\n if (main) {\n sessionStorage.setItem(\"scroll-position\", main.scrollTop);\n }\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"fields\", \"selector\"];\n\n toggle(event) {\n const $target = this.element.querySelector(`[data-secondary-service-types-target=\"fields\"]`);\n\n if($target.classList.contains('hidden')) {\n $target.classList.remove(\"hidden\");\n this.selectorTarget.innerHTML = \"- Add one or more secondary products\"\n } else {\n $target.classList.add(\"hidden\");\n this.selectorTarget.innerHTML = \"+ Add one or more secondary products\"\n };\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n selectableElementTypes() {\n return ['a', 'label', 'button', 'input'];\n }\n\n connect() {\n this.element.addEventListener('click', event => {\n if (!this.selectableElement(event) && this.firstSelectableElementInRow(event)) {\n this.firstSelectableElementInRow(event).click();\n }\n });\n }\n\n selectableElement(event) {\n const elementType = event.target.nodeName.toLowerCase();\n\n return this.selectableElementTypes().indexOf(elementType) > -1;\n }\n\n firstSelectableElementInRow(event) {\n const row = event.target.closest('tr');\n \n return row.querySelector(this.selectableElementTypes().join(','));\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"moreContent\", \"buttonText\", \"buttonIcon\"]\n static values = {\n showMoreText: String,\n showLessText: String\n }\n\n connect() {\n this.isOpen = false\n this.updateButton()\n }\n\n toggle() {\n this.isOpen = !this.isOpen\n this.moreContentTarget.classList.toggle(\"hidden\")\n this.updateButton()\n }\n\n updateButton() {\n const buttonText = this.isOpen ? this.showLessTextValue || \"Show Less\" : this.showMoreTextValue || \"Show More\"\n const iconClass = this.isOpen ? \"fa-chevron-up\" : \"fa-chevron-down\"\n\n this.buttonTextTarget.innerHTML = buttonText\n this.buttonIconTarget.classList.remove(\"fa-chevron-up\", \"fa-chevron-down\")\n this.buttonIconTarget.classList.add(iconClass) }\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['appointmentAt', 'date', 'hour', 'minutes', 'period'];\n\n update() {\n this.appointmentAtTarget.value = `${this.date()} ${this.hour()}:${this.minutes()}`;\n \n this.periodTarget.innerHTML = this.period();\n }\n\n period() {\n if (!this.hour()) return \"\";\n\n return this.hour() < 12 ? \"AM\" : \"PM\";\n }\n\n date() { return this.dateTarget.value }\n\n hour() { return this.hourTarget.value }\n\n minutes() { return this.minutesTarget.value }\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['timeField', 'hour', 'minutes', 'period'];\n\n connect() {\n this.periodTarget.innerHTML = this.period();\n }\n\n update() {\n this.timeFieldTarget.value = `${this.hour()}:${this.minutes()}`;\n \n this.periodTarget.innerHTML = this.period();\n }\n\n period() {\n if (!this.hour()) return \"\";\n\n return this.hour() < 12 ? \"AM\" : \"PM\";\n }\n\n hour() { return this.hourTarget.value }\n\n minutes() { return this.minutesTarget.value }\n}\n","import { Controller } from \"stimulus\"\nimport { handleRequiredFields } from \"./concerns/handle_required_fields\";\n\nexport default class extends Controller {\n static targets =[\"hiddenFields\"]\n\n toggle(event) {\n this.hiddenFieldsTargets.forEach($target => {\n\n const checkboxes = $target.dataset.for.split(',').map(name => name.trim());\n const isVisible = checkboxes.some(name => {\n\n const checkbox = document.querySelector(`[name=\"${name}\"][type=\"checkbox\"]`);\n\n return checkbox ? checkbox.checked : false;\n });\n\n $target.classList.toggle('hidden', !isVisible);\n\n handleRequiredFields($target);\n });\n }\n\n connect() {\n Array.from(this.hiddenFieldsTargets).forEach(handleRequiredFields);\n }\n}\n","import { Controller } from \"stimulus\"\nimport { handleRequiredFields } from \"./concerns/handle_required_fields\";\n\nexport default class extends Controller {\n static targets =[\"hiddenFields\"]\n\n toggle(event) {\n const $target = this.hiddenFieldsTargets.find((el) => el.dataset.for === event.target.value)\n if (!$target) return;\n\n $target.classList.toggle('hidden', !event.target.checked);\n\n if ($target.dataset.cleanable === 'true') {\n this.cleanTargetValue($target);\n } else {\n handleRequiredFields($target);\n }\n }\n\n toggleReverse(event) {\n const $target = this.hiddenFieldsTargets.find((el) => el.dataset.for === event.target.value)\n if (!$target) return;\n\n $target.classList.toggle('hidden', event.target.checked);\n\n handleRequiredFields($target);\n }\n\n cleanTargetValue(elem) {\n if (elem.classList.contains('hidden')) {\n elem.removeAttribute('required');\n elem.value = '';\n } else {\n elem.setAttribute('required', true);\n }\n }\n\n\n connect() {\n Array.from(this.hiddenFieldsTargets).forEach(handleRequiredFields);\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n /**\n * disables all required and .disabled-if-hidden fields within a content area\n * .disabled-if-hidden applied for repeated and mutually exclusive fields. And the hidden one should be disabled\n */\n disableAllRequiredFields($target) {\n Array.from($target.querySelectorAll(\"[required], .disabled-if-hidden\")).forEach($element => $element.setAttribute(\"disabled\", true))\n }\n\n /**\n * enables all required and .disabled-if-hidden fields within a content area\n */\n enableAllRequiredFields($target) {\n Array.from($target.querySelectorAll(\"[required], .disabled-if-hidden\")).forEach($element => $element.removeAttribute(\"disabled\"))\n }\n\n /** \n * Hides each form section other than the one selected\n */\n hideNonSelectedFields(selectedFieldValue) {\n const fieldsToHide = this.element.querySelectorAll(`[data-toggle-fields-radio-target]:not( [data-toggle-fields-radio-target=\"${selectedFieldValue}\"] )`)\n Array.from(fieldsToHide).forEach($element => {\n $element.classList.add('hidden')\n this.disableAllRequiredFields($element)\n })\n }\n\n formatSecondaryInputs(selectedFieldValue) {\n const disabledLabelClasses = [\"border-disabled\", \"bg-disabled\", \"text-secondary\"]\n \n Array.from(this.element.querySelectorAll(`[data-controller=\"secondary-service-types\"] input[type=\"checkbox\"]:not([value=\"${selectedFieldValue}\"])`)).forEach($element => {\n $element.removeAttribute(\"disabled\")\n $element.checked = false\n $element.closest(\"label\").classList.remove(...disabledLabelClasses)\n })\n\n const secondaryToDisable = this.element.querySelector(`[data-controller=\"secondary-service-types\"] input[type=\"checkbox\"][value=\"${selectedFieldValue}\"]`)\n\n if (!secondaryToDisable) return;\n\n secondaryToDisable.setAttribute(\"disabled\", true)\n secondaryToDisable.checked = false\n secondaryToDisable.closest(\"label\").classList.add(...disabledLabelClasses)\n }\n\n toggle(event) {\n const target = event.target.value;\n const $target = this.element.querySelector(`[data-toggle-fields-radio-target=\"${target}\"]`);\n\n this.hideNonSelectedFields(target)\n this.formatSecondaryInputs(target)\n \n if (!$target) return;\n\n $target.classList.toggle('hidden', !event.target.checked);\n\n if($target.classList.contains('hidden')) {\n this.disableAllRequiredFields($target)\n } else {\n this.enableAllRequiredFields($target)\n };\n }\n\n connect() {\n const $targets = this.element.querySelectorAll(`[data-toggle-fields-radio-target]`);\n\n Array.from($targets).forEach($target => {\n if($target.classList.contains('hidden')) {\n this.disableAllRequiredFields($target);\n }\n });\n }\n}\n","import { Controller } from \"stimulus\"\n\n/**\n * allows a select box to toggle the display of content areas associated with its values\n */\nexport default class extends Controller {\n static targets = [\"select\"]\n\n /**\n * disables all required fields within a content area\n */\n disableAllRequiredFields($target) {\n Array.from($target.querySelectorAll(\"[required]\")).forEach($element => $element.setAttribute(\"disabled\", true))\n }\n\n /**\n * enables all required fields within a content area\n */\n enableAllRequiredFields($target) {\n Array.from($target.querySelectorAll(\"[required]\")).forEach($element => $element.removeAttribute(\"disabled\"))\n }\n\n /**\n * hides all possible content areas\n */\n hideAllContents() {\n const $targets = this.element.querySelectorAll(`[data-toggle-fields-select-target]`)\n \n if ($targets.length === 0) return\n\n const withoutSelect = $target => $target !== this.selectTarget\n const hideAndDisableTarget = $target => {\n $target.classList.add(\"hidden\")\n this.disableAllRequiredFields($target)\n }\n \n Array.from($targets).filter(withoutSelect).forEach(hideAndDisableTarget)\n }\n\n /**\n * shows the content area associated with the selected value\n */\n showSelectedContent() {\n const $target = this.element.querySelector(`[data-toggle-fields-select-target=\"${this.selectTarget.value}\"]`)\n\n if (!$target) return\n\n $target.classList.remove(\"hidden\")\n this.enableAllRequiredFields($target)\n }\n\n toggle() {\n this.hideAllContents()\n this.showSelectedContent()\n }\n\n initialize() {\n this.toggle()\n }\n}\n","import { Controller } from \"stimulus\";\nimport tippy from \"tippy.js\";\n\nexport default class extends Controller {\n connect() {\n this.tippy = tippy(this.element);\n }\n\n disconnect() {\n this.tippy.destroy();\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"startDate\", \"endDate\", \"endDateContainer\"];\n\n setStartDate(event) {\n const startDateValue = event.target.value;\n if (!startDateValue) return;\n\n const startDate = new Date(startDateValue);\n const endDateInput = this.endDateTarget;\n const endDateFlatpickr = endDateInput._flatpickr;\n const endDate = endDateInput.value ? new Date(endDateInput.value) : null;\n\n if (!endDate || startDate > endDate) {\n endDateFlatpickr.setDate(startDate);\n }\n\n endDateFlatpickr.set(\"minDate\", startDate);\n this.endDateContainerTarget.classList.remove(\"hidden\");\n }\n}\n","import { Controller } from \"stimulus\";\nimport { get } from \"@rails/request.js\";\n\nexport default class extends Controller {\n checkZipcode(event) {\n const zipcode = event.target.value;\n let url = event.target.dataset.url || `/configuration/zipcodes/:code/check`;\n if (zipcode.length !== 5) {\n return;\n }\n\n get(url.replace(\":code\", zipcode), { responseKind: \"turbo-stream\" });\n }\n}\n","import Trix from \"trix\"\n\nlet lang = Trix.config.lang;\n\nTrix.config.textAttributes.inlineCode = {\n tagName: \"code\",\n inheritable: true\n}\n\nTrix.config.toolbar = {\n getDefaultHTML: function() {\n return `\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n \n
\n \n
\n
\n
\n `\n }\n}\n\nclass EmbedController {\n constructor(element) {\n this.patterns = undefined\n this.element = element\n this.editor = element.editor\n this.toolbar = element.toolbarElement\n this.hrefElement = this.toolbar.querySelector(\"[data-trix-input][name='href']\")\n this.embedContainerElement = this.toolbar.querySelector(\"[data-behavior='embed_container']\")\n this.embedElement = this.toolbar.querySelector(\"[data-behavior='embed_url']\")\n\n this.reset()\n this.installEventHandlers()\n }\n\n installEventHandlers() {\n this.hrefElement.addEventListener(\"input\", this.didInput.bind(this))\n this.hrefElement.addEventListener(\"focusin\", this.didInput.bind(this))\n this.embedElement.addEventListener(\"click\", this.embed.bind(this))\n }\n\n didInput(event) {\n let value = event.target.value.trim()\n\n // Load patterns from server so we can dynamically update them\n if (this.patterns === undefined) {\n this.loadPatterns(value)\n\n // When patterns are loaded, we can just fetch the embed code\n } else if (this.match(value)) {\n this.fetch(value)\n\n // No embed code, just reset the form\n } else {\n this.reset()\n }\n }\n\n loadPatterns(value) {\n Rails.ajax({\n type: \"get\",\n url: \"/action_text/embeds/patterns.json\",\n success: (response) => {\n this.patterns = response.map(pattern => new RegExp(pattern.source, pattern.options))\n if (this.match(value)) {\n this.fetch(value)\n }\n }\n })\n }\n\n // Checks if a url matches an embed code format\n match(value) {\n return this.patterns.some(regex => regex.test(value))\n }\n\n fetch(value) {\n Rails.ajax({\n url: `/action_text/embeds?id=${encodeURIComponent(value)}`,\n type: 'post',\n error: this.reset.bind(this),\n success: this.showEmbed.bind(this)\n })\n }\n\n embed(event) {\n if (this.currentEmbed == null) { return }\n\n let attachment = new Trix.Attachment(this.currentEmbed)\n this.editor.insertAttachment(attachment)\n this.element.focus()\n }\n\n showEmbed(embed) {\n this.currentEmbed = embed\n this.embedContainerElement.style.display = \"block\"\n }\n\n reset() {\n this.embedContainerElement.style.display = \"none\"\n this.currentEmbed = null\n }\n}\n\nclass InlineCode {\n constructor(element) {\n this.element = element\n this.editor = element.editor\n this.toolbar = element.toolbarElement\n\n this.installEventHandlers()\n }\n\n installEventHandlers() {\n const blockCodeButton = this.toolbar.querySelector(\"[data-trix-attribute=code]\")\n const inlineCodeButton = blockCodeButton.cloneNode(true)\n\n inlineCodeButton.hidden = true\n inlineCodeButton.dataset.trixAttribute = \"inlineCode\"\n blockCodeButton.insertAdjacentElement(\"afterend\", inlineCodeButton)\n\n this.element.addEventListener(\"trix-selection-change\", _ => {\n const type = this.getCodeFormattingType()\n blockCodeButton.hidden = type == \"inline\"\n inlineCodeButton.hidden = type == \"block\"\n })\n }\n\n getCodeFormattingType() {\n if (this.editor.attributeIsActive(\"code\")) return \"block\"\n if (this.editor.attributeIsActive(\"inlineCode\")) return \"inline\"\n\n const range = this.editor.getSelectedRange()\n if (range[0] == range[1]) return \"block\"\n\n const text = this.editor.getSelectedDocument().toString().trim()\n return /\\n/.test(text) ? \"block\" : \"inline\"\n }\n}\n\ndocument.addEventListener(\"trix-initialize\", function(event) {\n new EmbedController(event.target)\n new InlineCode(event.target)\n})\n","// Custom TailwindCSS modals for confirm dialogs\n\nconst Rails = require(\"@rails/ujs\")\n\n// Cache a copy of the old Rails.confirm since we'll override it when the modal opens\nconst old_confirm = Rails.confirm;\n\n// Elements we want to listen to for data-confirm\nconst elements = ['a[data-confirm]', 'button[data-confirm]', 'input[type=submit][data-confirm]']\n\nconst createConfirmModal = (element) => {\n var id = 'confirm-modal-' + String(Math.random()).slice(2, -1);\n var confirm = element.dataset.confirm;\n var yes = element.dataset.yes || \"Confirm\";\n var no = element.dataset.no || \"Cancel\";\n\n var content = `\n
\n
\n\n
\n

${confirm}

\n\n
\n \n \n
\n
\n
\n
\n `\n\n // Append the modal to the body\n document.body.insertAdjacentHTML(\"beforeend\", content);\n\n var modal = document.getElementById(id);\n element.dataset.confirmModal = `#${id}`\n\n modal.addEventListener(\"keyup\", (event) => {\n if(event.key === \"Escape\") {\n event.preventDefault()\n element.removeAttribute(\"data-confirm-modal\")\n modal.remove()\n }\n })\n\n modal.querySelector(\"[data-behavior='cancel']\").addEventListener(\"click\", (event) => {\n event.preventDefault()\n element.removeAttribute(\"data-confirm-modal\")\n modal.remove()\n })\n modal.querySelector(\"[data-behavior='commit']\").addEventListener(\"click\", (event) => {\n event.preventDefault()\n\n // Allow the confirm to go through\n Rails.confirm = () => { return true }\n\n // Click the link again\n element.click()\n\n // Remove the confirm attribute and modal\n element.removeAttribute(\"data-confirm-modal\")\n Rails.confirm = old_confirm\n\n modal.remove()\n })\n\n modal.querySelector(\"[data-behavior='commit']\").focus()\n return modal\n}\n\n// Checks if confirm modal is open\nconst confirmModalOpen = (element) => {\n return !!element.dataset.confirmModal;\n}\n\nconst handleConfirm = (event) => {\n // If there is a modal open, let the second confirm click through\n if (confirmModalOpen(event.target)) {\n return true\n\n // First click, we need to spawn the modal\n } else {\n createConfirmModal(event.target)\n return false\n }\n}\n\n// When a Rails confirm event fires, we'll handle it\nRails.delegate(document, elements.join(', '), 'confirm', handleConfirm)\n","addEventListener(\"direct-upload:initialize\", event => {\n const { target, detail } = event\n const { id, file } = detail\n target.insertAdjacentHTML(\"beforebegin\", `\n
\n
\n ${file.name}\n
\n `)\n})\n\naddEventListener(\"direct-upload:start\", event => {\n const { id } = event.detail\n const element = document.getElementById(`direct-upload-${id}`)\n element.classList.remove(\"direct-upload--pending\")\n})\n\naddEventListener(\"direct-upload:progress\", event => {\n const { id, progress } = event.detail\n const progressElement = document.getElementById(`direct-upload-progress-${id}`)\n progressElement.style.width = `${progress}%`\n})\n\naddEventListener(\"direct-upload:error\", event => {\n event.preventDefault()\n const { id, error } = event.detail\n const element = document.getElementById(`direct-upload-${id}`)\n element.classList.add(\"direct-upload--error\")\n element.setAttribute(\"title\", error)\n})\n\naddEventListener(\"direct-upload:end\", event => {\n const { id } = event.detail\n const element = document.getElementById(`direct-upload-${id}`)\n element.classList.add(\"direct-upload--complete\")\n})\n","document.addEventListener(\"turbo:load\", ()=> {\n\n const Forms = {\n init() {\n this.fileInputToggle();\n },\n\n fileInputToggle() {\n const inputs = document.querySelectorAll('.form-file');\n\n inputs.forEach(function(input) {\n const label = input.nextElementSibling,\n labelVal = label.innerHTML;\n\n input.addEventListener('change', function(e) {\n var fileName = '';\n\n if (this.files && this.files.length > 1) {\n fileName = ( this.getAttribute( 'data-multiple-caption' ) || '' ).replace( '{count}', this.files.length );\n } else {\n fileName = e.target.value.split( '\\\\' ).pop();\n }\n\n if (fileName) {\n label.querySelector( 'span' ).innerHTML = fileName;\n } else {\n label.innerHTML = labelVal;\n }\n });\n });\n\n const checkBoxes = document.querySelectorAll('.destroy-nested-item')\n checkBoxes.forEach(function(checkBox) {\n checkBox.onchange = function() {\n const wrapper = this.closest(\".nested-item-checkbox-form\");\n wrapper.querySelector(\"input[name*='_destroy']\").value = this.checked ? 0 : 1;\n }\n })\n }\n };\n\n Forms.init();\n\n});\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","webpackEmptyContext","connect","this","startTime","Date","parse","datetimeValue","tick","setInterval","bind","disconnect","clearInterval","duration","_getDuration","start","end","updateClock","clockTarget","innerHTML","renderClock","hours","minutes","seconds","renderHours","renderMinutes","renderSeconds","toString","padStart","elapsedMilliseconds","Math","floor","Controller","targets","values","datetime","String","channels","require","forEach","title","name","options","onChange","current","children","length","className","option","key","type","defaultChecked","value","event","replace","React","child","cache","LoaderCache","document","addEventListener","set","url","data","getKey","get","has","hasOwnProperty","split","fetcher","fetch","then","res","json","as","useSWR","revalidateOnFocus","error","productTypes","useState","productType","setProductType","productStyle","setProductStyle","product","setProduct","productVariant","setProductVariant","productOptions","setProductOptions","quantity","setQuantity","totalCost","selectedCorrectNumberOfOptions","option_groups","parseFloat","price","optionGroup","min","newQuantity","target","isNaN","displayMeasurementType","measurement_type","formatPrice","row","ItemMeta","props","option_group","index","sellable_products_count","ProductStyles","productStyles","ProductTypes","toFixed","measurementType","variants","Products","products","toggle","currentItem","currentTarget","closest","currentContent","querySelector","currentIcon","itemTargets","item","classList","add","remove","createConsumer","reconnect","consumer","connection","isActive","reopen","submitWithIndex","preventDefault","form","Array","from","element","querySelectorAll","indexOf","indexInput","createElement","appendChild","submit","updateTimes","appointmentAtValue","assignedAtValue","interval","timeSince","getTime","timeTill","timeSinceAssignmentTarget","hoursFromTime","minutesFromTime","timeTillAppointmentTarget","time","appointmentAt","assignedAt","appointmentId","formTarget","autoSubmit","formData","FormData","method","action","toUpperCase","body","headers","Accept","credentials","response","ok","console","log","select","focus","requestSubmit","toggleSelectAll","allCheckboxesSelected","unselectAll","selectAll","selectAllTarget","checked","indeterminate","unselected","selected","change","noCheckboxesSelected","checkboxTargets","filter","dataset","every","toggleChildren","parentTarget","childTargets","x","toggleParent","includes","copy","navigator","clipboard","writeText","getCopyValue","toggleInitialTarget","hasResponseTarget","responseTarget","showTemporaryCopiedMessage","resetAfterDelay","hasSourceTarget","sourceTarget","copyValue","visible","initialTarget","copiedMessage","textContent","insertAdjacentElement","temporaryMessage","setTimeout","handleRequiredFields","$target","contains","$element","setAttribute","disableAllRequiredFields","removeAttribute","enableAllRequiredFields","tsParticles","load","emitters","startCount","life","count","position","y","particles","color","move","direction","preset","serviceChange","tiersTarget","tierTargets","tier","tierChange","$tierCheckbox","createWithLocation","disabled","innerText","geolocation","getCurrentPosition","coords","longitudeTarget","longitude","latitudeTarget","latitude","geolocationError","GeolocationPositionError","alert","buttonTarget","OVERLAY_ID","fabCheckbox","getElementById","showFab","dismissFab","createOverlay","toggleScroll","toggleItems","removeOverlay","overlay","enable","documentElement","show","itemsTarget","initialize","currentIndex","images","open","gallerySection","img","imageUrl","showImage","modalTarget","close","next","prev","goTo","parseInt","modalImageTarget","src","prevButtonTarget","nextButtonTarget","indicatorsTarget","dot","handleClick","linkElement","originalText","baseUrl","getAttribute","separator","newUrl","window","location","href","application","Application","context","contextComponents","definitionsFromContext","concat","register","Dropdown","Modal","Tabs","Popover","Toggle","Slideover","Flatpickr","installPositions","cell","installs","todayInstallIds","install","movedInstalls","hideSubsequentInstallsWithSameId","moveInstall","installId","newInstall","blankInstall","slice","style","width","calculatedEndDate","currentDate","startDateTarget","hasNumberOfDaysTarget","isDate","numberOfDays","numberOfDaysTarget","completedDateTarget","completion_date","hasEstimatedDateTarget","startDate","endDate","estimatedDateTarget","completionTimeTarget","number_of_days","numberOfBusinessDaysTarget","date","toggleFileGroup","toggleCheckbox","fileInputTarget","files","checkboxTarget","toggleFileInput","fileGroupTarget","editor","fieldTarget","initializeTribute","tribute","Tribute","allowSpaces","lookup","fetchUsers","attach","replaced","range","pasteHtml","_pasteHtml","detach","text","callback","users","mention","detail","original","attachment","Trix","content","sgid","insertAttachment","insertString","html","startPos","endPos","getSelectedRange","setSelectedRange","deleteInDirection","addAssociation","templateTarget","linksTarget","insertAdjacentHTML","removeAssociation","wrapper","newRecord","display","showForm","showButtonTarget","sorting","parentNode","sortChildren","left","right","compareElements","elementsAreSorted","sort","append","getSortCode","checkPasswordMatch","password","passwordTarget","confirmPassword","confirmPasswordTarget","isMatch","isTooShort","minimumLengthValue","updateMessages","toggleSubmitButton","clearMessages","disableSubmitButton","updateMatchMessage","updateLengthMessage","matchMessageTarget","lengthMessageTarget","submitButtonTarget","minimumLength","Number","popupName","hasFocusFieldTarget","focusFieldTarget","modalSize","jsUrl","status","statusText","reload","Promise","reject","activeFrequencyClass","inactiveFrequencyClass","activePlansClass","inactivePlansClass","frequencyTargets","frequency","plansTargets","findIndex","childElementCount","_hideFrequencyToggle","_toggle","toggleTarget","showFrequency","hideFrequency","showPlans","hidePlans","productTypeTarget","productStyleTarget","productTarget","filterProductStyles","productTypeId","optgroup","filterProducts","productStyleId","searchSectionTarget","summaryTarget","wholeTarget","update","formSubmitTarget","dateTarget","overFifteenMinutesOld","reasonsTarget","datesAreTheSame","date1","date2","toLocaleDateString","appointmentCreated","appointmentCreatedValue","$targetElement","selectorValue","scrollIntoView","inline","block","selector","handleScroll","main","requestAnimationFrame","savedPosition","sessionStorage","getItem","scrollTo","removeItem","saveScrollPosition","setItem","scrollTop","removeEventListener","selectorTarget","selectableElementTypes","selectableElement","firstSelectableElementInRow","click","elementType","nodeName","toLowerCase","join","isOpen","updateButton","moreContentTarget","buttonText","showLessTextValue","showMoreTextValue","iconClass","buttonTextTarget","buttonIconTarget","showMoreText","showLessText","appointmentAtTarget","hour","periodTarget","period","hourTarget","minutesTarget","timeFieldTarget","hiddenFieldsTargets","isVisible","trim","some","checkbox","find","el","cleanable","cleanTargetValue","toggleReverse","elem","hideNonSelectedFields","selectedFieldValue","fieldsToHide","formatSecondaryInputs","disabledLabelClasses","secondaryToDisable","$targets","hideAllContents","selectTarget","showSelectedContent","tippy","destroy","setStartDate","startDateValue","endDateInput","endDateTarget","endDateFlatpickr","_flatpickr","setDate","endDateContainerTarget","checkZipcode","zipcode","responseKind","lang","tagName","inheritable","getDefaultHTML","bold","italic","strike","link","heading1","quote","bullets","numbers","outdent","indent","attachFiles","undo","redo","urlPlaceholder","unlink","EmbedController","patterns","undefined","toolbar","toolbarElement","hrefElement","embedContainerElement","embedElement","reset","installEventHandlers","didInput","embed","loadPatterns","match","Rails","ajax","success","pattern","RegExp","source","regex","test","encodeURIComponent","showEmbed","currentEmbed","InlineCode","blockCodeButton","inlineCodeButton","cloneNode","hidden","trixAttribute","_","getCodeFormattingType","attributeIsActive","getSelectedDocument","old_confirm","confirm","delegate","confirmModal","random","yes","no","modal","createConfirmModal","file","progress","init","fileInputToggle","input","label","nextElementSibling","labelVal","fileName","pop","checkBox","onchange"],"sourceRoot":""}