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AAc,KACd,UAAW,KACX,aAAc,MAIf,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,EAC5B,CACA,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,CACP,CACA,OAAOP,EAAIE,EACZ,CACAD,EAAeS,KAAO,WACrB,OAAOC,OAAOD,KAAKV,EACpB,EACAC,EAAeW,QAAUR,EACzBS,EAAOC,QAAUb,EACjBA,EAAeE,GAAK,I","sources":["webpack://bufo/./app/javascript/controllers/ sync _controller\\.js$","webpack://bufo/./app/javascript/channels/consumer.js","webpack://bufo/./app/javascript/controllers/address_autocomplete_controller.js","webpack://bufo/./app/javascript/controllers/admin/crm/email_signature_controller.js","webpack://bufo/./app/javascript/controllers/admin/crm/email_templates_controller.js","webpack://bufo/./app/javascript/controllers/admin/crm/leads/tab_controller.js","webpack://bufo/./app/javascript/controllers/admin/crm/leads/tabs_controller.js","webpack://bufo/./app/javascript/controllers/admin/crm/leads_controller.js","webpack://bufo/./app/javascript/controllers/admin/customers/payment_details_controller.js","webpack://bufo/./app/javascript/controllers/admin/customers/search_controller.js","webpack://bufo/./app/javascript/controllers/admin/customers/subscription_controller.js","webpack://bufo/./app/javascript/controllers/admin/forms/role_form_controller.js","webpack://bufo/./app/javascript/controllers/admin/nested_sidebar_controller.js","webpack://bufo/./app/javascript/controllers/admin/payment_methods/delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/admin/promotions/delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/admin/promotions/multi_select_controller.js","webpack://bufo/./app/javascript/controllers/admin/promotions/waterfall_discounts_controller.js","webpack://bufo/./app/javascript/controllers/admin/questionnaires/flag_controller.js","webpack://bufo/./app/javascript/controllers/admin/questionnaires/question_delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/admin/questionnaires/question_form_controller.js","webpack://bufo/./app/javascript/controllers/admin/questionnaires/questionnaire_delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/admin/reflex_authorization_controller.js","webpack://bufo/./app/javascript/controllers/admin/sidebar_controller.js","webpack://bufo/./app/javascript/controllers/admin/states/state_delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/admin/subscription_types_controller.js","webpack://bufo/./app/javascript/controllers/admin/zones/delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/admin/zones/state_and_country_select_controller.js","webpack://bufo/./app/javascript/controllers/alerts_controller.js","webpack://bufo/./app/javascript/controllers/application_controller.js","webpack://bufo/./app/javascript/controllers/cp/doctors/awaiting_consultation_controller.js","webpack://bufo/./app/javascript/controllers/cp/doctors/treatment_plan_controller.js","webpack://bufo/./app/javascript/controllers/cp/pharmacists/compounding_log_controller.js","webpack://bufo/./app/javascript/controllers/cp/pharmacists/log_print_labels_controller.js","webpack://bufo/./app/javascript/controllers/cp/pharmacists/remaining_count_controller.js","webpack://bufo/./app/javascript/controllers/cp/pharmacists/shipping_controller.js","webpack://bufo/./app/javascript/controllers/cp/search_controller.js","webpack://bufo/./app/javascript/controllers/dashboard_controller.js","webpack://bufo/./app/javascript/controllers/dropzone_controller.js","webpack://bufo/./app/javascript/controllers/file_upload_controller.js","webpack://bufo/./app/javascript/controllers/flashing_indicator_controller.js","webpack://bufo/./app/javascript/controllers/forms/change_prescription_controller.js","webpack://bufo/./app/javascript/controllers/forms/input_actions_controller.js","webpack://bufo/./app/javascript/controllers/forms/subscription_pause_reasons_controller.js","webpack://bufo/./app/javascript/controllers/forms/weight_loss/treatment_cancellation_reasons_controller.js","webpack://bufo/./app/javascript/controllers/id_verification_controller.js","webpack://bufo/./app/javascript/controllers/index.js","webpack://bufo/./app/javascript/controllers/input_validation_controller.js","webpack://bufo/./app/javascript/controllers/modal_controller.js","webpack://bufo/./app/javascript/helpers/checkSession.js","webpack://bufo/./app/javascript/controllers/multi_select_controller.js","webpack://bufo/./app/javascript/controllers/nested_form_controller.js","webpack://bufo/./app/javascript/controllers/product_controller.js","webpack://bufo/./app/javascript/controllers/questionnaire_controller.js","webpack://bufo/./app/javascript/controllers/redirect_controller.js","webpack://bufo/./app/javascript/controllers/shared/address_controller.js","webpack://bufo/./app/javascript/controllers/shared/credit_card_controller.js","webpack://bufo/./app/javascript/controllers/sortable_controller.js","webpack://bufo/./app/javascript/controllers/store/accordion_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/begin_checkout_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/complete_questionnaire_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/hard_stop_demographics_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/hard_stop_questionnaire_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/log_in_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/order_summary_subscription_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/page_views_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/purchase_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/quantity_selected_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/questionnaire_questions_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/sign_ups_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/submit_payment_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/variant_selected_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/variants_loaded_controller.js","webpack://bufo/./app/javascript/controllers/store/analytics/google_tag_manager/zendesk_chat_controller.js","webpack://bufo/./app/javascript/controllers/utilities/scrolling.js","webpack://bufo/./app/javascript/controllers/store/cart/checkout_address_controller.js","webpack://bufo/./app/javascript/controllers/store/cart/clear_checkout_address_controller.js","webpack://bufo/./app/javascript/controllers/store/cart/summary_controller.js","webpack://bufo/./app/javascript/controllers/store/checkout/checkout_controller.js","webpack://bufo/./app/javascript/controllers/store/glp1_controller.js","webpack://bufo/./app/javascript/controllers/store/koreai_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/comment_toggle_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/id_verification_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/inbox_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/mobile_nav_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/order_more_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/profile_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/progress_bar_controller.js","webpack://bufo/./app/javascript/controllers/store/members_portal/subscription_controller.js","webpack://bufo/./app/javascript/controllers/store/mobile_navigation_controller.js","webpack://bufo/./app/javascript/controllers/store/questionnaires/file_upload_controller.js","webpack://bufo/./app/javascript/controllers/user/cancellation_controller.js","webpack://bufo/./app/javascript/controllers/user/registrations/input_controller.js","webpack://bufo/./app/javascript/controllers/user/signup_controller.js","webpack://bufo/./app/javascript/controllers/user_demographics_controller.js","webpack://bufo/./app/javascript/controllers/utilities/csrf_controller.js","webpack://bufo/./app/javascript/controllers/utilities/delete_confirmation_controller.js","webpack://bufo/./app/javascript/controllers/utilities/loading_spinner.js","webpack://bufo/./app/javascript/controllers/utilities/order_summary_promo_application.js","webpack://bufo/./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["var map = {\n\t\"./address_autocomplete_controller.js\": 4889,\n\t\"./admin/crm/email_signature_controller.js\": 1787,\n\t\"./admin/crm/email_templates_controller.js\": 5861,\n\t\"./admin/crm/leads/tab_controller.js\": 5637,\n\t\"./admin/crm/leads/tabs_controller.js\": 6425,\n\t\"./admin/crm/leads_controller.js\": 1176,\n\t\"./admin/customers/payment_details_controller.js\": 4784,\n\t\"./admin/customers/search_controller.js\": 8430,\n\t\"./admin/customers/subscription_controller.js\": 8082,\n\t\"./admin/forms/role_form_controller.js\": 6275,\n\t\"./admin/nested_sidebar_controller.js\": 3804,\n\t\"./admin/payment_methods/delete_confirmation_controller.js\": 2857,\n\t\"./admin/promotions/delete_confirmation_controller.js\": 9654,\n\t\"./admin/promotions/multi_select_controller.js\": 810,\n\t\"./admin/promotions/waterfall_discounts_controller.js\": 1155,\n\t\"./admin/questionnaires/flag_controller.js\": 4431,\n\t\"./admin/questionnaires/question_delete_confirmation_controller.js\": 9211,\n\t\"./admin/questionnaires/question_form_controller.js\": 44,\n\t\"./admin/questionnaires/questionnaire_delete_confirmation_controller.js\": 1064,\n\t\"./admin/reflex_authorization_controller.js\": 9731,\n\t\"./admin/sidebar_controller.js\": 3075,\n\t\"./admin/states/state_delete_confirmation_controller.js\": 2855,\n\t\"./admin/subscription_types_controller.js\": 792,\n\t\"./admin/zones/delete_confirmation_controller.js\": 8343,\n\t\"./admin/zones/state_and_country_select_controller.js\": 2636,\n\t\"./alerts_controller.js\": 5933,\n\t\"./application_controller.js\": 2605,\n\t\"./cp/doctors/awaiting_consultation_controller.js\": 9894,\n\t\"./cp/doctors/treatment_plan_controller.js\": 7328,\n\t\"./cp/pharmacists/compounding_log_controller.js\": 3852,\n\t\"./cp/pharmacists/log_print_labels_controller.js\": 4667,\n\t\"./cp/pharmacists/remaining_count_controller.js\": 5483,\n\t\"./cp/pharmacists/shipping_controller.js\": 8010,\n\t\"./cp/search_controller.js\": 2058,\n\t\"./dashboard_controller.js\": 5225,\n\t\"./dropzone_controller.js\": 6712,\n\t\"./file_upload_controller.js\": 2390,\n\t\"./flashing_indicator_controller.js\": 9087,\n\t\"./forms/change_prescription_controller.js\": 7741,\n\t\"./forms/input_actions_controller.js\": 6797,\n\t\"./forms/subscription_pause_reasons_controller.js\": 8655,\n\t\"./forms/weight_loss/treatment_cancellation_reasons_controller.js\": 3848,\n\t\"./id_verification_controller.js\": 8533,\n\t\"./input_validation_controller.js\": 3703,\n\t\"./modal_controller.js\": 860,\n\t\"./multi_select_controller.js\": 3193,\n\t\"./nested_form_controller.js\": 8769,\n\t\"./product_controller.js\": 825,\n\t\"./questionnaire_controller.js\": 4247,\n\t\"./redirect_controller.js\": 789,\n\t\"./shared/address_controller.js\": 6951,\n\t\"./shared/credit_card_controller.js\": 3365,\n\t\"./sortable_controller.js\": 4493,\n\t\"./store/accordion_controller.js\": 223,\n\t\"./store/analytics/google_tag_manager/begin_checkout_controller.js\": 4723,\n\t\"./store/analytics/google_tag_manager/complete_questionnaire_controller.js\": 2856,\n\t\"./store/analytics/google_tag_manager/hard_stop_demographics_controller.js\": 7215,\n\t\"./store/analytics/google_tag_manager/hard_stop_questionnaire_controller.js\": 3342,\n\t\"./store/analytics/google_tag_manager/log_in_controller.js\": 6696,\n\t\"./store/analytics/google_tag_manager/order_summary_subscription_controller.js\": 8695,\n\t\"./store/analytics/google_tag_manager/page_views_controller.js\": 3996,\n\t\"./store/analytics/google_tag_manager/purchase_controller.js\": 9850,\n\t\"./store/analytics/google_tag_manager/quantity_selected_controller.js\": 6928,\n\t\"./store/analytics/google_tag_manager/questionnaire_questions_controller.js\": 7450,\n\t\"./store/analytics/google_tag_manager/sign_ups_controller.js\": 8127,\n\t\"./store/analytics/google_tag_manager/submit_payment_controller.js\": 8767,\n\t\"./store/analytics/google_tag_manager/variant_selected_controller.js\": 578,\n\t\"./store/analytics/google_tag_manager/variants_loaded_controller.js\": 9703,\n\t\"./store/analytics/google_tag_manager/zendesk_chat_controller.js\": 9960,\n\t\"./store/cart/checkout_address_controller.js\": 2242,\n\t\"./store/cart/clear_checkout_address_controller.js\": 4607,\n\t\"./store/cart/summary_controller.js\": 6720,\n\t\"./store/checkout/checkout_controller.js\": 6357,\n\t\"./store/glp1_controller.js\": 2190,\n\t\"./store/koreai_controller.js\": 7682,\n\t\"./store/members_portal/comment_toggle_controller.js\": 3678,\n\t\"./store/members_portal/id_verification_controller.js\": 4849,\n\t\"./store/members_portal/inbox_controller.js\": 1142,\n\t\"./store/members_portal/mobile_nav_controller.js\": 3033,\n\t\"./store/members_portal/order_more_controller.js\": 584,\n\t\"./store/members_portal/profile_controller.js\": 3451,\n\t\"./store/members_portal/progress_bar_controller.js\": 4775,\n\t\"./store/members_portal/subscription_controller.js\": 9210,\n\t\"./store/mobile_navigation_controller.js\": 8111,\n\t\"./store/questionnaires/file_upload_controller.js\": 5256,\n\t\"./user/cancellation_controller.js\": 1336,\n\t\"./user/registrations/input_controller.js\": 7733,\n\t\"./user/signup_controller.js\": 4219,\n\t\"./user_demographics_controller.js\": 2481,\n\t\"./utilities/csrf_controller.js\": 5322,\n\t\"./utilities/delete_confirmation_controller.js\": 1626,\n\t\"controllers/address_autocomplete_controller.js\": 4889,\n\t\"controllers/admin/crm/email_signature_controller.js\": 1787,\n\t\"controllers/admin/crm/email_templates_controller.js\": 5861,\n\t\"controllers/admin/crm/leads/tab_controller.js\": 5637,\n\t\"controllers/admin/crm/leads/tabs_controller.js\": 6425,\n\t\"controllers/admin/crm/leads_controller.js\": 1176,\n\t\"controllers/admin/customers/payment_details_controller.js\": 4784,\n\t\"controllers/admin/customers/search_controller.js\": 8430,\n\t\"controllers/admin/customers/subscription_controller.js\": 8082,\n\t\"controllers/admin/forms/role_form_controller.js\": 6275,\n\t\"controllers/admin/nested_sidebar_controller.js\": 3804,\n\t\"controllers/admin/payment_methods/delete_confirmation_controller.js\": 2857,\n\t\"controllers/admin/promotions/delete_confirmation_controller.js\": 9654,\n\t\"controllers/admin/promotions/multi_select_controller.js\": 810,\n\t\"controllers/admin/promotions/waterfall_discounts_controller.js\": 1155,\n\t\"controllers/admin/questionnaires/flag_controller.js\": 4431,\n\t\"controllers/admin/questionnaires/question_delete_confirmation_controller.js\": 9211,\n\t\"controllers/admin/questionnaires/question_form_controller.js\": 44,\n\t\"controllers/admin/questionnaires/questionnaire_delete_confirmation_controller.js\": 1064,\n\t\"controllers/admin/reflex_authorization_controller.js\": 9731,\n\t\"controllers/admin/sidebar_controller.js\": 3075,\n\t\"controllers/admin/states/state_delete_confirmation_controller.js\": 2855,\n\t\"controllers/admin/subscription_types_controller.js\": 792,\n\t\"controllers/admin/zones/delete_confirmation_controller.js\": 8343,\n\t\"controllers/admin/zones/state_and_country_select_controller.js\": 2636,\n\t\"controllers/alerts_controller.js\": 5933,\n\t\"controllers/application_controller.js\": 2605,\n\t\"controllers/cp/doctors/awaiting_consultation_controller.js\": 9894,\n\t\"controllers/cp/doctors/treatment_plan_controller.js\": 7328,\n\t\"controllers/cp/pharmacists/compounding_log_controller.js\": 3852,\n\t\"controllers/cp/pharmacists/log_print_labels_controller.js\": 4667,\n\t\"controllers/cp/pharmacists/remaining_count_controller.js\": 5483,\n\t\"controllers/cp/pharmacists/shipping_controller.js\": 8010,\n\t\"controllers/cp/search_controller.js\": 2058,\n\t\"controllers/dashboard_controller.js\": 5225,\n\t\"controllers/dropzone_controller.js\": 6712,\n\t\"controllers/file_upload_controller.js\": 2390,\n\t\"controllers/flashing_indicator_controller.js\": 9087,\n\t\"controllers/forms/change_prescription_controller.js\": 7741,\n\t\"controllers/forms/input_actions_controller.js\": 6797,\n\t\"controllers/forms/subscription_pause_reasons_controller.js\": 8655,\n\t\"controllers/forms/weight_loss/treatment_cancellation_reasons_controller.js\": 3848,\n\t\"controllers/id_verification_controller.js\": 8533,\n\t\"controllers/input_validation_controller.js\": 3703,\n\t\"controllers/modal_controller.js\": 860,\n\t\"controllers/multi_select_controller.js\": 3193,\n\t\"controllers/nested_form_controller.js\": 8769,\n\t\"controllers/product_controller.js\": 825,\n\t\"controllers/questionnaire_controller.js\": 4247,\n\t\"controllers/redirect_controller.js\": 789,\n\t\"controllers/shared/address_controller.js\": 6951,\n\t\"controllers/shared/credit_card_controller.js\": 3365,\n\t\"controllers/sortable_controller.js\": 4493,\n\t\"controllers/store/accordion_controller.js\": 223,\n\t\"controllers/store/analytics/google_tag_manager/begin_checkout_controller.js\": 4723,\n\t\"controllers/store/analytics/google_tag_manager/complete_questionnaire_controller.js\": 2856,\n\t\"controllers/store/analytics/google_tag_manager/hard_stop_demographics_controller.js\": 7215,\n\t\"controllers/store/analytics/google_tag_manager/hard_stop_questionnaire_controller.js\": 3342,\n\t\"controllers/store/analytics/google_tag_manager/log_in_controller.js\": 6696,\n\t\"controllers/store/analytics/google_tag_manager/order_summary_subscription_controller.js\": 8695,\n\t\"controllers/store/analytics/google_tag_manager/page_views_controller.js\": 3996,\n\t\"controllers/store/analytics/google_tag_manager/purchase_controller.js\": 9850,\n\t\"controllers/store/analytics/google_tag_manager/quantity_selected_controller.js\": 6928,\n\t\"controllers/store/analytics/google_tag_manager/questionnaire_questions_controller.js\": 7450,\n\t\"controllers/store/analytics/google_tag_manager/sign_ups_controller.js\": 8127,\n\t\"controllers/store/analytics/google_tag_manager/submit_payment_controller.js\": 8767,\n\t\"controllers/store/analytics/google_tag_manager/variant_selected_controller.js\": 578,\n\t\"controllers/store/analytics/google_tag_manager/variants_loaded_controller.js\": 9703,\n\t\"controllers/store/analytics/google_tag_manager/zendesk_chat_controller.js\": 9960,\n\t\"controllers/store/cart/checkout_address_controller.js\": 2242,\n\t\"controllers/store/cart/clear_checkout_address_controller.js\": 4607,\n\t\"controllers/store/cart/summary_controller.js\": 6720,\n\t\"controllers/store/checkout/checkout_controller.js\": 6357,\n\t\"controllers/store/glp1_controller.js\": 2190,\n\t\"controllers/store/koreai_controller.js\": 7682,\n\t\"controllers/store/members_portal/comment_toggle_controller.js\": 3678,\n\t\"controllers/store/members_portal/id_verification_controller.js\": 4849,\n\t\"controllers/store/members_portal/inbox_controller.js\": 1142,\n\t\"controllers/store/members_portal/mobile_nav_controller.js\": 3033,\n\t\"controllers/store/members_portal/order_more_controller.js\": 584,\n\t\"controllers/store/members_portal/profile_controller.js\": 3451,\n\t\"controllers/store/members_portal/progress_bar_controller.js\": 4775,\n\t\"controllers/store/members_portal/subscription_controller.js\": 9210,\n\t\"controllers/store/mobile_navigation_controller.js\": 8111,\n\t\"controllers/store/questionnaires/file_upload_controller.js\": 5256,\n\t\"controllers/user/cancellation_controller.js\": 1336,\n\t\"controllers/user/registrations/input_controller.js\": 7733,\n\t\"controllers/user/signup_controller.js\": 4219,\n\t\"controllers/user_demographics_controller.js\": 2481,\n\t\"controllers/utilities/csrf_controller.js\": 5322,\n\t\"controllers/utilities/delete_confirmation_controller.js\": 1626\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 `bin/rails generate channel` command.\n\nimport { createConsumer } from \"@rails/actioncable\"\n\nexport default createConsumer()\n","import { Controller } from 'stimulus';\nimport 'jquery-ui-dist/jquery-ui.min.js';\nimport 'jquery-ui-dist/jquery-ui.min.css';\n\nexport default class extends Controller {\n static targets = ['address1', 'address1Error'];\n\n connect() {\n this.address1Targets.forEach((addressInput, index) => {\n this.autocompleteAddress(addressInput, this.address1ErrorTargets[index]);\n });\n }\n\n // https://api.jqueryui.com/autocomplete/\n autocompleteAddress(addressInput, addressError) {\n $(addressInput).autocomplete({\n minLength: 8,\n delay: 1000,\n source: (_request, response) => {\n $.ajax({\n url: '/api/smarty/suggestions',\n dataType: 'json',\n data: { search: addressInput.value, filterByShippingZone: addressInput.getAttribute('data-address-type') == 'shipping', productSgid: addressInput.dataset.productSgid },\n success: (data) => {\n if (addressError) addressError.innerHTML = '';\n if ((data.suggestions == null) || (data.suggestions.length <= 0)) {\n response([{ label: 'No Suggestions Found', val: -1 }]);\n } else {\n response($.map(data.suggestions, function(item) {\n return {\n label: item.street_line + ' ' + item.secondary + ' ' + item.city + ', ' + item.state + ' ' + item.zipcode,\n data: item,\n value: item.street_line\n }\n }));\n }\n },\n error: (jqXHR, _textStatus, _errorThrown) => {\n if (jqXHR.status == 429) { // Too Many Requests\n const error = `Address autocompletion is unavailable at this time. Please try again in ${jqXHR.getResponseHeader('retry-after')} seconds.`;\n console.warn(error);\n }\n }\n });\n },\n select: function(_e, u) {\n if (u.item.val == -1) {\n $(this).val('');\n return false;\n } else {\n var container = $(this).closest('.smarty-us-autocomplete-pro-container');\n $(container).find('.smarty-us-autocomplete-address2').val(u.item.data['secondary']);\n $(container).find('.smarty-us-autocomplete-city').val(u.item.data['city']);\n $(container).find('.smarty-us-autocomplete-zip').val(u.item.data['zipcode']);\n $(container).find('.smarty-us-autocomplete-state').find(`[data-code='${u.item.data['state']}']`).prop('selected', true);\n $(this).blur();\n }\n }\n });\n $('.ui-helper-hidden-accessible').hide();\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['allowedTags'];\n\n trixEl = document.querySelector('trix-editor');\n\n timerId = null;\n\n connect() {\n super.connect();\n this.checkTagsOnLoad();\n this.addClickEventOnEditorTags();\n document.addEventListener('trix-change', this.displayPreview.bind(this));\n document.addEventListener('trix-change', this.customizeFont.bind(this));\n this.trixEl.addEventListener(\n 'keydown',\n this.disableEditorTyping.bind(this),\n );\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Admin::Crm::EmailSignatureReflex#render_preview',\n this.trixEl.innerHTML,\n );\n },\n });\n }\n\n disconnect() {\n document.removeEventListener('trix-change', this.displayPreview.bind(this));\n document.removeEventListener('trix-change', this.customizeFont.bind(this));\n this.trixEl.removeEventListener(\n 'keydown',\n this.disableEditorTyping.bind(this),\n );\n this.trixEl.innerHTML = '';\n }\n\n // Display preview on text editor change\n displayPreview() {\n const debouncePreview = () => {\n clearTimeout(this.timerId);\n\n this.timerId = setTimeout(\n () => {\n this.stimulate(\n 'Admin::Crm::EmailSignatureReflex#render_preview',\n this.trixEl.innerHTML,\n );\n },\n this.timerId ? 1000 : 500,\n );\n };\n\n debouncePreview();\n }\n\n customizeFont(event) {\n if (event.detail && event.detail.attribute === 'fontSize') {\n const fontSize = event.detail.value;\n const selectedRange = this.trixEl.editor.getSelectedRange();\n\n if (selectedRange) {\n this.trixEl.editor.activateAttribute('fontSize', fontSize);\n }\n }\n\n if (event.detail && event.detail.attribute === 'fontFamily') {\n const fontFamily = event.detail.value;\n const selectedRange = this.trixEl.editor.getSelectedRange();\n\n if (selectedRange) {\n this.trixEl.editor.activateAttribute('fontFamily', fontFamily);\n }\n }\n\n this.addClickEventOnEditorTags();\n }\n\n disableEditorTyping(e) {\n const isCollapsed =\n this.trixEl.editor.selectionManager.selectionIsCollapsed();\n\n if (e.key !== ' ' && e.key !== 'Enter' && e.key !== 'Backspace') {\n e.preventDefault();\n }\n\n // Prevent deleting tags\n if (e.key === 'Backspace' || e.key === 'Delete') {\n const cursorPos = this.trixEl.editor.getPosition();\n\n const currentChar = this.trixEl.editor\n .getDocument()\n .toString()\n .charAt(cursorPos - 1);\n const previousChar = this.trixEl.editor\n .getDocument()\n .toString()\n .charAt(cursorPos - 2);\n\n if (\n previousChar.match(/[a-z]/i) ||\n currentChar.match(/[a-z]/i) ||\n !isCollapsed\n ) {\n e.preventDefault();\n }\n }\n\n if (e.key === 'Enter' || e.key === ' ') {\n if (!isCollapsed) {\n e.preventDefault();\n }\n }\n }\n\n // On page load ensure tags are only selectable if they are not already in the editor\n checkTagsOnLoad() {\n const allowedTags = JSON.parse(this.allowedTagsTarget.value);\n const editorLoadedContent = this.trixEl.querySelectorAll(\n 'span, del, strong, em, u',\n );\n\n editorLoadedContent.forEach((editorEl) => {\n const tagName = editorEl.textContent.trim();\n const tagKeys = Object.keys(allowedTags);\n\n if (tagKeys.includes(tagName)) {\n const tagToRemove = document.querySelectorAll('.tag');\n\n tagToRemove.forEach((tag) => {\n if (\n tag.textContent.toLowerCase().replace('+', '').trim() ===\n tagName.toLowerCase().trim()\n ) {\n tag.remove();\n }\n });\n }\n });\n }\n\n // Inject any styles that are applied to the editor into the tag\n injectStyles() {\n const fontFamily = document.querySelector(\n '.trix-button-group--font-family',\n ).value;\n const fontSize = document.querySelector(\n '.trix-button-group--font-size',\n ).value;\n const isBold = this.trixEl.editor.attributeIsActive('bold');\n const isItalic = this.trixEl.editor.attributeIsActive('italic');\n const isUnderline = this.trixEl.editor.attributeIsActive('underline');\n return `font-family: ${fontFamily}; font-size: ${fontSize}; ${\n isBold ? 'font-weight: bold;' : ''\n } ${isItalic ? 'font-style: italic;' : ''}${\n isUnderline ? 'text-decoration: underline;' : ''\n }`;\n }\n\n onClickInsertTag(element) {\n const el = element.currentTarget;\n const tag = el.textContent.replace('+', '').trim();\n const style = this.injectStyles();\n const isStrike = this.trixEl.editor.attributeIsActive('strike');\n\n let tagHtml = `${tag} `;\n\n if (isStrike) {\n tagHtml = `${tag} `;\n }\n\n this.trixEl.editor.insertHTML(tagHtml);\n\n el.remove();\n }\n\n addClickEventOnEditorTags() {\n document.querySelectorAll('trix-editor span').forEach((el) => {\n el.removeEventListener('dblclick', this.onDblClickRemoveTag.bind(this));\n el.addEventListener('dblclick', this.onDblClickRemoveTag.bind(this));\n el.addEventListener('click', this.onClickHighlightTag.bind(this));\n });\n }\n\n onClickHighlightTag(e) {\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n\n const range = document.createRange();\n range.selectNodeContents(e.currentTarget);\n const selection = window.getSelection();\n selection.removeAllRanges();\n selection.addRange(range);\n }\n\n onDblClickRemoveTag(e) {\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n e.currentTarget.remove();\n\n const allowedTags = JSON.parse(this.allowedTagsTarget.value);\n const tag = e.currentTarget.textContent.trim();\n const tagKeys = Object.keys(allowedTags);\n\n if (!tag.length) return;\n if (tagKeys.includes(tag)) {\n this.appendToTagsList(tag);\n }\n }\n\n appendToTagsList(tag) {\n // Get a reference to the tag container element\n const tagsContainer = document.querySelector('#tags-container');\n\n // Create a new span element\n const span = document.createElement('span');\n\n span.classList.add(\n 'tag',\n 'inline-flex',\n 'items-center',\n 'rounded-full',\n 'bg-gray-50',\n 'px-2',\n 'py-1',\n 'text-xs',\n 'font-medium',\n 'text-gray-600',\n 'ring-1',\n 'ring-inset',\n 'cursor-pointer',\n 'gap-x-0.5',\n 'ring-gray-500/10',\n 'hover:bg-gray-500/20',\n 'border-[1px]',\n );\n\n span.setAttribute(\n 'data-action',\n 'click->admin--crm--email-signature#onClickInsertTag',\n );\n\n span.textContent = `+ ${tag}`;\n\n // Append the span element to the tag container\n tagsContainer.appendChild(span);\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['subject', 'body'];\n\n connect() {\n super.connect();\n this.subjectTarget.addEventListener('focus', this.toggleFocusedDataAttribute.bind(this));\n this.bodyTarget.addEventListener('focus', this.toggleFocusedDataAttribute.bind(this));\n }\n\n disconnect() {\n super.disconnect();\n this.subjectTarget.removeEventListener('focus', this.toggleFocusedDataAttribute.bind(this));\n this.bodyTarget.removeEventListener('focus', this.toggleFocusedDataAttribute.bind(this));\n }\n\n toggleFocusedDataAttribute(event) {\n const element = event.currentTarget;\n element.dataset.focused = 'true';\n\n if (element === this.subjectTarget) {\n this.bodyTarget.dataset.focused = 'false';\n } else if (element === this.bodyTarget) {\n this.subjectTarget.dataset.focused = 'false';\n }\n }\n\n // Allows for tags to be inserted into the subject or body of an email template\n onClickInsertTag(event) {\n if (this.subjectTarget.dataset.focused !== 'true' && this.bodyTarget.dataset.focused !== 'true') return;\n\n const tag = `{{${event.currentTarget.dataset.tag}}}`;\n const focusedEl = document.querySelector('[data-focused=true]');\n const [start, end] = [focusedEl.selectionStart, focusedEl.selectionEnd];\n\n focusedEl.setRangeText(tag, start, end, 'end');\n focusedEl.focus();\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n\n disconnect() {\n super.disconnect();\n }\n\n clearFields() {\n // Select all input fields that are text, textarea or select fields\n const inputs = document.querySelectorAll(\n '.clearable input[type=\"text\"], .clearable textarea, .clearable select',\n );\n\n // Loop through the inputs and clear their values\n inputs.forEach((element) => {\n const input = element;\n input.value = '';\n });\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['textArea'];\n\n renderTabSuccess() {\n this.hideReplies();\n }\n\n createNoteSuccess(element) {\n const viewRepliesSpan = document.querySelector(`span[data-meta-id=\"${element.dataset.rootConversationId}\"]`);\n viewRepliesSpan.dataset.hideReplies = 'false';\n viewRepliesSpan.querySelector('span').classList.remove('rotate-180');\n\n this.hideReplies(`:not([data-meta-id=\"${element.dataset.rootConversationId}\"])`);\n }\n\n connect() {\n super.connect();\n this.leadId = this.element.dataset.leadId;\n this.activeTab = document.querySelector('[data-tab=email]');\n this.hideReplies();\n }\n\n disconnect() {\n super.disconnect();\n }\n\n submitNote(event) {\n event.preventDefault();\n event.stopPropagation();\n\n this.stimulate(\n 'Admin::Crm::LeadReflex#create_note',\n event.target,\n this.activeTab.dataset.tab,\n this.textAreaTarget.value,\n );\n }\n\n cancelNote(event) {\n event.target.closest('form').remove();\n }\n\n selectTab(event) {\n // deactivate old tab\n this.activeTab.classList.remove('text-blue-700', 'border-blue-700');\n\n // activate new tab & stimulate reflex\n this.activeTab = event.target;\n this.activeTab.classList.add('text-blue-700', 'border-blue-700');\n this.stimulate('Admin::Crm::LeadReflex#render_tab', this.leadId, this.activeTab.dataset.tab)\n .then(() => {\n // remove \"add note\" and \"reply\" actions when viewing the \"All Comms\" tab\n // this tab should be view only\n if (this.activeTab.dataset.tab === 'comms') {\n document.querySelectorAll(\"div[data-reflex='click->Admin::Crm::LeadReflex#new_note_form']\").forEach((el) => el.remove());\n document.querySelectorAll(\"div[data-reflex='click->Admin::Crm::LeadReflex#reply_to_email']\").forEach((el) => el.remove());\n }\n });\n }\n\n hideReplies(selectors = '') {\n const query = `div[id*=\"box-container-\"][data-has-replies=\"true\"]${selectors}`;\n const rootConversationsWithReplies = document.querySelectorAll(query);\n rootConversationsWithReplies.forEach((conversation) => {\n const replies = conversation.querySelectorAll('div[id*=\"box-container-\"]');\n replies.forEach((reply) => reply.classList.add('hidden'));\n });\n }\n}\n","import Toastify from 'toastify-js';\nimport ApplicationController from '../../application_controller';\n\nexport default class Lead extends ApplicationController {\n static targets = ['activeTab', 'copyEmail', 'copyPhone', 'salesRepSelect', 'message', 'copyLink'];\n\n connect() {\n super.connect();\n }\n\n reflexSuccess(_, reflex) {\n if (reflex === 'Admin::Crm::LeadReflex#create_note') {\n this.showToast({\n text: 'Note successfully created!',\n });\n }\n\n if (reflex === 'Admin::Crm::LeadReflex#update') {\n this.showToast({\n text: 'Updated touches successfully!',\n });\n }\n\n if (reflex === 'Admin::Crm::CallLogHistoryFormReflex#create') {\n this.clearFields();\n }\n\n if (reflex === 'Admin::Crm::LeadReflex#reply_to_email') {\n const body = document.getElementById('crm_email_body');\n body.setSelectionRange(0, 0);\n body.focus();\n body.style.height = '1px';\n body.style.height = `${25 + body.scrollHeight}px`;\n }\n }\n\n resetStyles() {\n const elements = document.querySelectorAll('[data-tab]');\n\n elements.forEach((element) => {\n element.classList.remove('text-blue-700', 'border-blue-700');\n });\n }\n\n clearFields() {\n // Select all input fields that are text, textarea or select fields\n const inputs = document.querySelectorAll(\n '.clearable input[type=\"text\"], .clearable textarea, .clearable select',\n );\n\n // Loop through the inputs and clear their values\n inputs.forEach((input) => {\n const inputField = input;\n inputField.value = '';\n });\n }\n\n async copyToClipboard(event) {\n const { field } = event.currentTarget.dataset;\n const copiedText = this[`copy${field}Target`].textContent;\n\n try {\n await navigator.clipboard.writeText(copiedText);\n\n Toastify({\n text: `Copied ${copiedText} to clipboard!`,\n duration: 1000,\n close: true,\n gravity: 'top',\n position: 'center',\n stopOnFocus: true,\n style: {\n background: 'linear-gradient(to right, #0859A6, #0971D3)',\n },\n }).showToast();\n } catch (error) {\n Toastify({\n text: `There was an error copying ${copiedText} to clipboard. Please try again.`,\n duration: 1000,\n close: true,\n gravity: 'top',\n position: 'center',\n stopOnFocus: true,\n style: {\n background: '#d41111',\n },\n }).showToast();\n }\n }\n\n addNote(event) {\n this.stimulate(\n 'Admin::Crm::LeadReflex#new_note_form',\n event.currentTarget.dataset.currentIndex,\n );\n }\n\n assignSalesRep() {\n this.stimulate(\n 'Admin::Crm::AssignRepModalReflex#assign_rep',\n this.salesRepSelectTarget.value,\n );\n }\n\n toggleRetentionStatus(e) {\n const winBtn = document.getElementById('win-button');\n const loseBtn = document.getElementById('lose-button');\n const winCss = ['bg-green-win', 'border-green-win', 'text-white'];\n const loseCss = ['bg-red-600', 'border-red-600', 'text-white'];\n\n if (e.currentTarget.dataset.status === 'win') {\n winBtn.classList.add(...winCss);\n loseBtn.classList.remove(...loseCss);\n } else {\n loseBtn.classList.add(...loseCss);\n winBtn.classList.remove(...winCss);\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\n 'number',\n 'expiry',\n 'verificationValue',\n 'address1',\n 'city',\n 'stateId',\n 'zipcode',\n 'submitBtn',\n 'form',\n ];\n\n connect() {\n super.connect();\n this.addInputEventListeners();\n this.toggleButtonEnabled();\n }\n\n disconnect() {\n super.disconnect();\n this.removeInputEventListeners();\n }\n\n submitForm(event) {\n event?.preventDefault();\n this.element.removeAttribute('data-action');\n this.formTarget.submit();\n }\n\n formInputs() {\n return [\n this.numberTarget,\n this.expiryTarget,\n this.verificationValueTarget,\n this.address1Target,\n this.cityTarget,\n this.stateIdTarget,\n this.zipcodeTarget,\n ];\n }\n\n valid() {\n return this.formInputs().every((input) => input.value);\n }\n\n clearRepeatAddressValidation() {\n window.addressLookupBypassed = false;\n window.addressValidatedWithSmarty = false;\n this.toggleButtonEnabled();\n }\n\n enableSubmit() {\n this.submitBtnTarget.classList.remove('cursor-not-allowed');\n this.submitBtnTarget.removeAttribute('disabled');\n }\n\n disableSubmit() {\n this.submitBtnTarget.classList.add('cursor-not-allowed');\n this.submitBtnTarget.setAttribute('disabled', 'disabled');\n }\n\n toggleButtonEnabled() {\n if (this.valid()) {\n this.enableSubmit();\n } else {\n this.disableSubmit();\n }\n }\n\n addInputEventListeners() {\n this.submitBtnTarget.addEventListener('click', this.submitForm.bind(this));\n this.formInputs().forEach((input) => input.addEventListener('input', this.toggleButtonEnabled.bind(this)));\n }\n\n removeInputEventListeners() {\n this.submitBtnTarget.removeEventListener('click', this.submitForm.bind(this));\n }\n}\n","import ApplicationController from \"../../application_controller\";\nimport $ from 'jquery';\nimport 'typeahead.js';\nimport Bloodhound from 'typeahead.js/dist/bloodhound';\n\nexport default class extends ApplicationController {\n connect() {\n this.setupTypeahead();\n }\n\n setupTypeahead() {\n var search_results = new Bloodhound({\n datumTokenizer: Bloodhound.tokenizers.whitespace,\n queryTokenizer: Bloodhound.tokenizers.whitespace,\n remote: {\n url: '/search?query=%QUERY',\n wildcard: '%QUERY'\n }\n });\n\n $('#search-field').typeahead(\n {\n highlight: true,\n classNames: {\n menu: 'tt-menu min-w-[427px]',\n dataset: 'tt-dataset bg-white rounded shadow-lg\tdivide-y divide-gray-200',\n selectable: 'p-4'\n }\n },\n {\n source: search_results,\n templates: {\n suggestion: function(data) {\n return ``;\n }\n },\n limit: 20,\n }\n );\n\n $('#search-field').bind('typeahead:select', function(ev, suggestion) {\n $(this).typeahead('val', suggestion.display);\n\n window.location = suggestion.url\n });\n }\n}\n","import moment from 'moment';\nimport ApplicationController from '../../application_controller';\n\nconst nextOccurrenceAtId = 'store_subscriptions_subscription_next_occurrence_at';\nconst subTypeId = 'store_subscriptions_subscription_subscription_type_id';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n // Disable next refill date field if one time purchase\n if (document.getElementById(subTypeId).selectedOptions[0].dataset.monthsCount === '99') {\n this.disableNextOccurrenceAt();\n }\n }\n\n setNextOccurrenceAt() {\n const nextOccurrenceAt = this.nextOccurrenceAt();\n nextOccurrenceAt ? this.enableNextOccurrenceAt() : this.disableNextOccurrenceAt();\n document.getElementById(nextOccurrenceAtId).value = nextOccurrenceAt;\n }\n\n nextOccurrenceAt() {\n const { monthsCount } = document.getElementById(subTypeId).selectedOptions[0].dataset;\n const pausedBtn = document.getElementById('store_subscriptions_subscription_paused');\n if (pausedBtn.checked) return null;\n\n let nextOccurrenceAt;\n\n switch (monthsCount) {\n case '1': // monthly\n nextOccurrenceAt = moment().add(1, 'months').format('MM/DD/YYYY');\n break;\n case '3': // quarterly\n nextOccurrenceAt = moment().add(3, 'months').format('MM/DD/YYYY');\n break;\n case '99': // one time purchase\n nextOccurrenceAt = null;\n break;\n default:\n nextOccurrenceAt = null;\n break;\n }\n return nextOccurrenceAt;\n }\n\n disableNextOccurrenceAt() {\n const nextOccurrenceAt = document.getElementById(nextOccurrenceAtId);\n nextOccurrenceAt.parentNode.classList.add('hover:cursor-not-allowed');\n nextOccurrenceAt.classList.add('pointer-events-none', 'bg-gray-100');\n nextOccurrenceAt.value = null;\n }\n\n enableNextOccurrenceAt() {\n const nextOccurrenceAt = document.getElementById(nextOccurrenceAtId);\n nextOccurrenceAt.parentNode.classList.remove('hover:cursor-not-allowed');\n nextOccurrenceAt.classList.remove('pointer-events-none', 'bg-gray-100');\n }\n\n closeModal() {\n const modal = document.querySelector('[data-modal-target=modal]');\n const overlay = document.querySelector('[data-modal-target=overlay]');\n const modalTitle = document.getElementById('modal-title');\n const modalContent = document.getElementById('modal-content');\n\n modal.classList.remove('opacity-100', 'visible');\n modal.classList.add('opacity-0', 'invisible', 'modal');\n overlay.classList.remove('bg-opacity-75', 'visible');\n overlay.classList.add('bg-opacity-0', 'invisible');\n modalTitle.innerHTML = '';\n modalContent.innerHTML = '';\n }\n}\n","import ApplicationController from \"../../application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\"permissions\", \"permission\", \"chevron\"];\n\n connect() {\n super.connect();\n }\n\n togglePermissions() {\n if (!this.hasPermissionsTarget) return;\n this.permissionsTarget.classList.toggle(\"hidden\");\n this.chevronTarget.classList.toggle(\"rotate-[-90deg]\");\n }\n\n removePermission() {\n this.permissionTarget.remove();\n }\n}\n","import ApplicationController from \"../application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\n \"nestedSidebar\",\n \"nestedSidebarIcon\",\n \"nestedSidebarContainer\",\n ];\n\n connect() {\n super.connect();\n }\n\n initialize() {\n window.addEventListener(\"scroll\", this.handleScroll.bind(this), {\n passive: true,\n });\n }\n\n handleScroll() {\n const header = document.querySelector(\"header\");\n\n const headerBounds = header.getBoundingClientRect();\n\n if (window.scrollY > headerBounds.bottom) {\n this.nestedSidebarTarget.classList.add(\"top-0\");\n } else if (window.scrollY === 0) {\n this.nestedSidebarTarget.classList.remove(\"top-0\");\n }\n }\n\n toggle() {\n this.nestedSidebarTarget.classList.toggle(\"w-7\");\n this.nestedSidebarTarget.classList.toggle(\"w-56\");\n this.nestedSidebarContainerTarget.classList.toggle(\"opacity-0\");\n this.nestedSidebarContainerTarget.classList.toggle(\"delay-100\");\n this.nestedSidebarIconTarget.classList.toggle(\"rotate-180\");\n }\n}\n","import { DeleteConfirmationController } from \"../../utilities/delete_confirmation_controller.js\";\n\nexport default class extends DeleteConfirmationController {\n connect() {\n super.connect();\n }\n\n delete(event) {\n event.preventDefault();\n event.stopPropagation();\n\n const ok = super.deleteConfirmation(\"payment method\");\n if (!ok) return false;\n\n const el = event.currentTarget;\n const id = el.dataset.id;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n \"Admin::PaymentMethods::Table#delete_payment_method\",\n id\n );\n },\n });\n }\n}\n","import { DeleteConfirmationController } from \"../../utilities/delete_confirmation_controller.js\";\n\nexport default class extends DeleteConfirmationController {\n connect() {\n super.connect();\n }\n\n delete(event) {\n event.preventDefault();\n event.stopPropagation();\n\n const ok = super.deleteConfirmation(\"promotion\");\n if (!ok) return false;\n\n const el = event.currentTarget;\n const id = el.dataset.id;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\"Admin::Promotions::Table#delete_promotion\", id);\n },\n });\n }\n}\n","import ApplicationController from '../../application_controller';\n// https://yarnpkg.com/package/select2\n// https://select2.org\nimport 'select2/dist/css/select2.min.css';\nimport 'select2/dist/js/select2.min.js';\n\nexport default class extends ApplicationController {\n connect() {\n $(this.element).select2();\n\n // Set selected option values for Option Value Promotion Rule\n if (this.element.dataset.selectedIds != undefined && this.element.dataset.productRule == 'option_value') {\n const selectedIds = JSON.parse(this.element.dataset.selectedIds);\n $(this.element).val(selectedIds);\n $(this.element).trigger('change');\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['addRuleBtn', 'rulesContainer', 'newRuleTemplate'];\n\n connect() {\n super.connect();\n this.addRuleBtnTarget.addEventListener('click', this.addDiscount.bind(this));\n }\n\n disconnect() {\n super.disconnect();\n this.addRuleBtnTarget.removeEventListener('click', this.addDiscount.bind(this));\n }\n\n addDiscount() {\n const newRow = this.newRuleTemplateTarget.cloneNode(true);\n\n newRow.querySelectorAll('input[type=number][disabled]').forEach(el => el.removeAttribute('disabled'));\n newRow.style.display = '';\n newRow.id = '';\n\n const ruleIndex = this.rulesContainerTarget.querySelectorAll('tr:not([style*=\"display: none\"])').length + 1;\n newRow.innerHTML = newRow.innerHTML.replace(/ORDER_NUMBER/g, ruleIndex);\n\n const orderNumberInput = newRow.querySelector('input.input[type=text]');\n if (orderNumberInput) orderNumberInput.value = ruleIndex;\n\n this.rulesContainerTarget.appendChild(newRow);\n }\n\n removeDiscount(event) {\n event.target.closest('tr').remove();\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.timestamp = this.element.dataset.timestamp;\n }\n\n removeFlag() {\n\n // If record hasn't been saved, remove form from the page\n // if (this.element.dataset.newRecord === 'true') {\n // this.element.remove();\n // } else {\n // // Delete record from database, then remove form from page\n // const ok = confirm(\"Are you sure you'd like to delete this answer?\");\n // if (!ok) return false;\n //\n // // https://docs.stimulusreflex.com/rtfm/lifecycle#promises\n // this.stimulate('Admin::Questionnaires::QuestionAndAnswer#delete_answer_option', this.element.dataset.recordId)\n // // Successful record deletion\n // .then(payload => {\n // const { data, element, event } = payload;\n // const { attrs, reflexId } = data;\n // document.getElementById(`ao-${this.timestamp}`).remove();\n // })\n // // Error upon record deletion\n // .catch(payload => {\n // const { data, element, event } = payload;\n // const { attrs, reflexId } = data;\n // const { error } = event.detail.stimulusReflex;\n // // TODO: handle error on record deletion\n // });\n }\n}\n","import { DeleteConfirmationController } from \"../../utilities/delete_confirmation_controller.js\";\n\nexport default class extends DeleteConfirmationController {\n connect() {\n super.connect();\n }\n\n delete(event) {\n event.preventDefault();\n event.stopPropagation();\n\n const ok = super.deleteConfirmation(\"question\");\n if (!ok) return false;\n\n const el = event.currentTarget;\n const sgid = el.dataset.sgid;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\"Sortable#remove_from_list\", sgid);\n },\n });\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.timestamp = this.element.dataset.timestamp;\n }\n\n removeAnswerOption() {\n // Ensure last answer option form can't be removed\n if (document.querySelectorAll('[answer-option-form]').length === 1) {\n alert('Cannot remove last answer.');\n return;\n }\n\n // If record hasn't been saved, remove form from the page\n if (this.element.dataset.newRecord === 'true') {\n this.element.remove();\n } else {\n // Delete record from database, then remove form from page\n const ok = confirm(\"Are you sure you'd like to delete this answer?\");\n if (!ok) return false;\n\n // https://docs.stimulusreflex.com/rtfm/lifecycle#promises\n this.stimulate('Admin::Questionnaires::QuestionAndAnswer#delete_answer_option', this.element.dataset.recordId)\n // Successful record deletion\n .then(payload => {\n const { data, element, event } = payload;\n const { attrs, reflexId } = data;\n document.getElementById(`ao-${this.timestamp}`).remove();\n })\n // Error upon record deletion\n .catch(payload => {\n const { data, element, event } = payload;\n const { attrs, reflexId } = data;\n const { error } = event.detail.stimulusReflex;\n // TODO: handle error on record deletion\n });\n }\n }\n\n // Hide/show answer option form\n toggleAnswerDropdown() {\n const answerField = this.element.querySelector(`[answer-field='${this.timestamp}']`);\n const dropdownIcon = this.element.querySelector(`[dropdown-icon-answer='${this.timestamp}']`);\n\n if (answerField.classList.contains('hidden')) {\n dropdownIcon.classList.remove('-rotate-90');\n answerField.classList.remove('hidden');\n } else {\n dropdownIcon.classList.add('-rotate-90');\n answerField.classList.add('hidden');\n }\n }\n\n // Hide/show settings area for answer option\n toggleSettingsDropdown() {\n const settingsFields = this.element.querySelector(`[settings-fields='${this.timestamp}']`);\n const dropdownIcon = this.element.querySelector(`[dropdown-icon-settings='${this.timestamp}']`);\n\n if (settingsFields.classList.contains('hidden')) {\n dropdownIcon.classList.add('rotate-90');\n settingsFields.classList.remove('hidden');\n } else {\n dropdownIcon.classList.remove('rotate-90');\n settingsFields.classList.add('hidden');\n }\n }\n\n // Hide/show more info area for answer option\n toggleMoreInfoDropdown() {\n const moreInfoFields = this.element.querySelector(`[more-info-fields='${this.timestamp}']`);\n\n if (moreInfoFields.classList.contains('hidden')) {\n moreInfoFields.classList.remove('hidden');\n } else {\n moreInfoFields.classList.add('hidden');\n }\n }\n}\n","import { DeleteConfirmationController } from \"../../utilities/delete_confirmation_controller.js\";\n\nexport default class extends DeleteConfirmationController {\n connect() {\n super.connect();\n }\n\n delete(event) {\n event.preventDefault();\n event.stopPropagation();\n\n const ok = super.deleteConfirmation(\"questionnaire\");\n if (!ok) return false;\n\n const el = event.currentTarget;\n const id = el.dataset.id;\n const direction = el.dataset.direction;\n const page = el.dataset.page;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n \"Admin::Questionnaires::QuestionnaireTable#delete_record\",\n id,\n direction,\n page\n );\n },\n });\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n\n document.addEventListener('unauthorizedReflexAccess', this.showUnauthorizedModal.bind(this));\n }\n\n disconnect() {\n document.removeEventListener('unauthorizedReflexAccess', this.showUnauthorizedModal.bind(this));\n }\n\n showUnauthorizedModal() {\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Admin::UnauthorizedReflex#show');\n }\n })\n }\n}\n","import ApplicationController from \"../application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\"sidebar\", \"menu\", \"menuOverlay\", \"mobileMenu\"];\n\n connect() {\n super.connect();\n }\n\n openSidebar() {\n this.mobileMenuTarget.classList.remove(\"invisible\");\n this.menuOverlayTarget.classList.add(\"is-open\");\n this.menuTarget.classList.add(\"is-open\");\n }\n\n closeSidebar() {\n this.mobileMenuTarget.classList.add(\"invisible\");\n this.menuOverlayTarget.classList.remove(\"is-open\");\n this.menuTarget.classList.remove(\"is-open\");\n }\n}\n","import { DeleteConfirmationController } from \"../../utilities/delete_confirmation_controller.js\";\n\nexport default class extends DeleteConfirmationController {\n connect() {\n super.connect();\n }\n\n delete(event) {\n event.preventDefault();\n\n const ok = super.deleteConfirmation(\"state\");\n if (!ok) return false;\n\n const el = event.currentTarget;\n const id = el.dataset.id;\n const direction = el.dataset.direction;\n const page = el.dataset.page;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n \"Admin::States::StateTable#delete_state\",\n id,\n direction,\n page\n );\n },\n });\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n\n add_association(event) {\n event.preventDefault();\n const { target } = event.currentTarget.dataset;\n const form = event.currentTarget.closest('.subscription-adjustment-form');\n const targetElement = form.querySelector(`template.${target}`);\n const content = targetElement.innerHTML.replace(/NEW_RECORD/g, new Date().getTime());\n form.getElementsByClassName(`${target}-adjustments`)[0].insertAdjacentHTML('beforebegin', content);\n }\n\n remove_association(event) {\n event.preventDefault();\n const item = event.target.closest('.nested-fields');\n item.querySelector(\"input[name*='_destroy']\").value = 1;\n item.style.display = 'none';\n }\n}\n","import { DeleteConfirmationController } from \"../../utilities/delete_confirmation_controller.js\";\n\nexport default class extends DeleteConfirmationController {\n connect() {\n super.connect();\n }\n\n delete(event) {\n event.preventDefault();\n\n const ok = super.deleteConfirmation(\"zone\");\n if (!ok) return false;\n\n const el = event.currentTarget;\n const id = el.dataset.id;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\"Admin::Zones::TableAndForm#delete_zone\", id);\n },\n });\n }\n}\n","import ApplicationController from '../../application_controller';\n// https://yarnpkg.com/package/select2\n// https://select2.org\nimport 'select2/dist/css/select2.min.css';\nimport 'select2/dist/js/select2.min.js';\n\nexport default class extends ApplicationController {\n connect() {\n $(this.element).select2();\n\n // Set selected states/countries in select dropdown for Spree::Zone records\n // Not set by default because :state_ids and :country_ids are not attributes\n // https://select2.org/programmatic-control/add-select-clear-items#selecting-options\n const selectedIds = JSON.parse(this.element.dataset.selectedIds);\n $(this.element).val(selectedIds);\n $(this.element).trigger('change');\n }\n}\n","import ApplicationController from './application_controller';\n\nexport default class AlertsController extends ApplicationController {\n static targets = ['successAlert', 'errorAlert'];\n\n connect() {\n super.connect();\n }\n\n successAlertTargetConnected() {\n $(this.successAlertTarget)\n .fadeTo(5000, 500)\n .slideUp(500, this.dispatchAlertRemovedEvent);\n }\n\n errorAlertTargetConnected() {\n $(this.errorAlertTarget)\n .fadeTo(5000, 500)\n .slideUp(500, this.dispatchAlertRemovedEvent);\n }\n\n dismissAlert() {\n this.element.remove();\n this.dispatchAlertRemovedEvent();\n }\n\n dispatchAlertRemovedEvent(name = 'flash-msg-removed') {\n window.dispatchEvent(new Event(name));\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport Toastify from 'toastify-js';\nimport 'toastify-js/src/toastify.css';\n\nexport default class extends Controller {\n TIMEOUT = 0;\n\n async connect() {\n StimulusReflex.register(this);\n }\n\n removeToasts() {\n const toasts = document.querySelectorAll('.toastify');\n\n if (toasts.length > 0) {\n toasts.forEach((toast) => toast.classList.remove('on'));\n }\n }\n\n showToast({ text, type = 'info', duration = 1000 }) {\n // Removes toasts from the DOM to prevent stacking\n this.removeToasts();\n\n Toastify({\n text,\n duration,\n close: true,\n gravity: 'top',\n position: 'center',\n stopOnFocus: true,\n className: 'text-white tracking-wider !min-w-full text-center z-50 relative py-2 !top-0',\n style: {\n background:\n type === 'info'\n ? 'linear-gradient(to right, #0859A6, #0971D3)'\n : '#D41111',\n },\n }).showToast();\n }\n\n reflexSuccess(_, reflex) {\n if (reflex === 'Admin::Crm::AssignRepModalReflex#confirm') {\n this.showToast({\n text: 'Sales rep successfully assigned!',\n });\n }\n }\n\n reflexError() {\n this.showToast({\n text: 'There was an error processing your request. Please refresh the page to try again or reach out to customer care for assistance.',\n type: 'error',\n duration: -1,\n });\n }\n\n // eslint-disable-next-line consistent-return\n callStimulusAction({ maxRetries = 30, cb }) {\n clearTimeout(this.TIMEOUT);\n\n // If action cable connection is open, call the reflex action\n if (document.body.classList.contains('stimulus-reflex-connected')) {\n try {\n cb();\n } catch (error) {\n if (maxRetries <= 0) {\n // Clear timeout to ensure it's ready for another called reflex\n return this.showToast({\n text: 'There was an error processing your request. Please refresh the page to try again or reach out to customer care for assistance.',\n type: 'error',\n duration: -1,\n });\n }\n // If there is an error, retry reflex action\n this.TIMEOUT = setTimeout(() => {\n this.showToast({\n text: `There was an issue. Retrying request ${maxRetries} more times`,\n });\n this.callStimulusAction({ maxRetries: maxRetries - 1, cb });\n }, 1000);\n }\n } else {\n // If action cable connection is closed, retry reflex action\n this.TIMEOUT = setTimeout(() => {\n this.callStimulusAction({ maxRetries: maxRetries - 1, cb });\n }, 1000);\n }\n }\n}\n","import ApplicationController from \"../../application_controller\";\nimport moment from \"moment\";\n\nexport default class AwaitingConsultationController extends ApplicationController {\n connect() {\n super.connect();\n }\n\n initialize() {\n const countingElements = document.querySelectorAll(\".timeago\");\n\n countingElements.forEach((element) => {\n this.counterSinceTime(element.dataset.datetime, element);\n });\n }\n\n counterSinceTime(date, el) {\n var theDate = moment(date).toDate();\n var _second = 1000;\n var _minute = _second * 60;\n var _hour = _minute * 60;\n var _day = _hour * 24;\n var element = el;\n var timer;\n\n function count() {\n var now = new Date();\n if (theDate > now) {\n var distance = theDate - now;\n if (distance < 0) {\n clearInterval(timer);\n return;\n }\n } else {\n var distance = now - theDate;\n if (distance < 0) {\n clearInterval(timer);\n return;\n }\n }\n var days = Math.floor(distance / _day);\n var hours = Math.floor((distance % _day) / _hour);\n if (hours < 10) {\n hours = \"0\" + hours;\n }\n var minutes = Math.floor((distance % _hour) / _minute);\n if (minutes < 10) {\n minutes = \"0\" + minutes;\n }\n var seconds = Math.floor((distance % _minute) / _second);\n if (seconds < 10) {\n seconds = \"0\" + seconds;\n }\n var daytext = \"\";\n if (days > 1) {\n daytext = \" days \";\n } else {\n daytext = \" day \";\n }\n if (days > 0) {\n element.innerHTML =\n '' +\n '' +\n days +\n \"d\" +\n \" \" +\n '' +\n hours +\n \"h\" +\n \" \" +\n '' +\n minutes +\n \"m\" +\n \" \" +\n '' +\n seconds +\n \"s\";\n } else if (hours > 0) {\n element.innerHTML =\n '' +\n hours +\n \"h\" +\n \" \" +\n '' +\n minutes +\n \"m\" +\n \" \" +\n '' +\n seconds +\n \"s\";\n } else if (minutes > 0) {\n element.innerHTML =\n '' +\n minutes +\n \"m\" +\n \" \" +\n '' +\n seconds +\n \"s\";\n } else {\n element.innerHTML = '' + seconds + \"s\";\n }\n }\n\n timer = setInterval(count, 1000);\n }\n}\n","import ApplicationController from \"../../application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\n \"orderId\",\n \"medicationCategoryId\",\n \"productId\",\n \"variantId\",\n \"isEscalating\",\n ];\n\n connect() {\n super.connect();\n }\n\n updateMedicationCategory(event) {\n const medicationCategoryId = event.target.value;\n this.medicationCategoryIdTarget.value = medicationCategoryId;\n this.updatePrescriptionForm();\n }\n\n updatePrescriptionForm(event) {\n event?.preventDefault();\n event?.stopPropagation();\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n \"Cp::Doctor::TreatmentPlan#update_prescription_form\",\n this.medicationCategoryIdTarget.value,\n this.orderIdTarget.value,\n this.productIdTarget.value,\n this.variantIdTarget.value,\n this.isEscalatingTarget.value\n );\n },\n });\n }\n}\n","import ApplicationController from '../../application_controller';\nimport Sortable from 'sortablejs';\n\nexport default class PharmacistsCompoundingLogController extends ApplicationController {\n connect() {\n super.connect();\n\n this.sortable = Sortable.create(this.element, {\n animation: 150,\n handle: '.drag-handle',\n ghostClass: 'bg-primary',\n });\n }\n}\n","import cableReady from 'cable_ready';\nimport ApplicationController from '../../application_controller';\nimport consumer from '../../../channels/consumer';\n\nexport default class extends ApplicationController {\n EVENT_NAME = 'cp:pharmacists:log:print_labels';\n\n static targets = ['printLabelArea'];\n\n connect() {\n super.connect();\n\n consumer.subscriptions.create(\n 'PharmacyEventsChannel',\n {\n received: (data) => {\n if (data.cableReady) cableReady.perform(data.operations);\n },\n },\n );\n\n document.addEventListener(this.EVENT_NAME, this.reloadPrintLabels.bind(this));\n this.autoReload();\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener(this.EVENT_NAME, this.reloadPrintLabels.bind(this));\n }\n\n // Triggered when the CableReady event for this controller is received\n // Replace the loading button with the new print labels button\n reloadPrintLabels(event) {\n this.printLabelAreaTarget.innerHTML = event.detail.html;\n }\n\n // Only triggered if the loading button is visible\n // Reload the page every 5 seconds to check if the new labels are now available\n //\n // Sometimes the generation of the labels happens so quickly, CableReady dispatches the\n // event before the page is fully loaded and connected to ActionCable.\n autoReload() {\n const loadingButton = this.printLabelAreaTarget.querySelector('.loading_button_with_spinner');\n if (!loadingButton) return;\n\n setTimeout(() => {\n if (document.querySelector('.loading_button_with_spinner')) {\n window.location.reload();\n }\n }, 10000);\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['input'];\n\n connect() {\n super.connect();\n }\n\n updateRemainingCount(event) {\n this.stimulate(\n 'Cp::Pharmacists::CompoundingLogRemainingCount#update',\n this.inputTarget.value,\n event.currentTarget.dataset.logId\n )\n }\n}\n","import ApplicationController from \"../../application_controller\";\n\nexport default class PharmacistsShippingController extends ApplicationController {\n static targets = [\"shippingLabel\"];\n\n connect() {\n super.connect();\n\n if (!this.hasShippingLabelTarget) return;\n\n const orderItemId = this.shippingLabelTarget.value;\n\n if (orderItemId) {\n const printWindow = window.open(\n `${this.shippingLabelTarget.dataset.path}.pdf`,\n \"popup\",\n \"width=auto,height=auto\"\n );\n\n if (printWindow) {\n printWindow.focus();\n printWindow.print();\n }\n }\n }\n}\n","import ApplicationController from \"../application_controller\";\n\nexport default class SearchController extends ApplicationController {\n static targets = [\"search\"];\n\n connect() {\n super.connect();\n }\n\n initialize() {\n const input = $(\".ransack_search_form\").find(\"form\");\n\n $(this.searchTargets).on(\"click\", function () {\n input.trigger(\"submit\");\n });\n\n input.on(\"keypress\", function (e) {\n if (e.key === \"Enter\") {\n input.trigger(\"submit\");\n }\n });\n }\n}\n","import ApplicationController from \"./application_controller\";\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n}\n","import Dropzone from \"dropzone\";\nimport { Controller } from \"stimulus\";\nimport { DirectUpload } from \"@rails/activestorage\";\n\nexport default class extends Controller {\n static targets = [\"input\"];\n url = this.inputTarget.dataset.directUploadUrl;\n\n connect() {\n this.dropZone = new Dropzone(this.element, this.dropZoneConfig);\n // Disable image upload if image attached\n if (this.data.get(\"imageAttached\") === \"true\") this.disableImageUpload(this.dropZone.hiddenFileInput, this.element);\n this.displayExistingFile();\n this.bindEvents();\n }\n\n get dropZoneConfig() {\n return {\n url: this.url,\n headers: { \"X-CSRF-Token\": document.head.querySelector(\"[name=csrf-token]\").content },\n maxFiles: this.data.get(\"maxFiles\") || 1,\n maxFilesize: this.data.get(\"maxFileSize\") || 10,\n acceptedFiles: 'image/*',\n addRemoveLinks: true,\n autoQueue: false\n }\n }\n\n // Show images if already saved in S3 bucket\n displayExistingFile() {\n let dzImageUrl = this.data.get(\"imageUrl\");\n let dzImageName = this.data.get(\"imageName\");\n\n if (this.data.get(\"imageAttached\") === \"false\") return;\n if (dzImageUrl === null) return;\n\n let mockFile = { name: dzImageName, size: 10000000 };\n this.dropZone.displayExistingFile(mockFile, dzImageUrl, null, \"\", false);\n\n // Wrap image link around dz-details div\n let dzId = \"#dz-\" + dzImageName;\n $(dzId + \" .dz-details\").wrap(``);\n $(dzId + \" .dz-details\").css(\"cursor\", \"pointer\");\n }\n\n bindEvents() {\n const controller = this;\n\n // Disable image upload if image successfully added\n this.dropZone.on(\"addedfile\", function(file) {\n setTimeout(() => {\n if (file.status === \"added\") {\n new DirectUploadController(file, controller.url, controller, this).upload();\n controller.disableImageUpload(this.hiddenFileInput, this.element);\n }\n }, 500);\n });\n\n // Enable image upload when image is removed\n this.dropZone.on(\"removedfile\", function(_file) {\n controller.enableImageUpload(this.hiddenFileInput, this.element);\n });\n }\n\n disableImageUpload(hiddenFileInput, parentElement) {\n hiddenFileInput.setAttribute(\"disabled\", \"disabled\");\n parentElement.classList.add(\"hover:cursor-not-allowed\");\n const els = parentElement.getElementsByTagName(\"*\");\n for (const el of els) { el.classList.add(\"hover:cursor-not-allowed\"); }\n }\n\n enableImageUpload(hiddenFileInput, parentElement) {\n hiddenFileInput.removeAttribute(\"disabled\");\n parentElement.classList.remove(\"hover:cursor-not-allowed\");\n const els = parentElement.getElementsByTagName(\"*\");\n for (const el of els) { el.classList.remove(\"hover:cursor-not-allowed\"); }\n }\n}\n\nclass DirectUploadController {\n constructor(file, url, stimulusController, dropZone) {\n this.directUpload = new DirectUpload(file, url, this);\n this.file = file;\n this.controller = stimulusController;\n this.dropZone = dropZone;\n }\n\n upload() {\n this.directUpload.create((error, blob) => {\n if (error) {\n this.emitDropzoneError(error);\n } else {\n this.createHiddenInput(blob.signed_id);\n this.emitDropzoneSuccess();\n }\n });\n }\n\n // Create and append hidden input element to form\n createHiddenInput(value) {\n const input = document.createElement(\"input\");\n input.type = \"hidden\";\n input.name = this.controller.inputTarget.name;\n input.value = value;\n this.controller.element.closest(\"form\").appendChild(input);\n }\n\n directUploadWillStoreFileWithXHR(request) {\n request.upload.addEventListener(\"progress\", event => this.directUploadDidProgress(event));\n }\n\n directUploadDidProgress(event) {\n const uploadProgress = (event.loaded / event.total) * 100;\n this.file.previewTemplate.querySelector(\".dz-upload\").style.width = `${uploadProgress}%`;\n }\n\n emitDropzoneError(error) {\n this.file.status = Dropzone.ERROR;\n this.controller.dropZone.emit(\"error\", this.file, error);\n this.controller.dropZone.emit(\"complete\", this.file);\n }\n\n emitDropzoneSuccess() {\n this.file.status = Dropzone.SUCCESS;\n this.controller.dropZone.emit(\"success\", this.file);\n this.controller.dropZone.emit(\"complete\", this.file);\n }\n}\n","import ApplicationController from \"./application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\"preview\", \"fileInput\", \"svg\", \"file\"];\n\n connect() {\n super.connect();\n }\n\n add() {\n const [file] = this.fileInputTarget.files;\n\n if (file) {\n this.previewTarget.classList.add(\"w-full\");\n this.previewTarget.src = URL.createObjectURL(file);\n this.svgTarget.remove();\n }\n }\n}\n","import ApplicationController from './application_controller';\n\nexport default class extends ApplicationController {\n // Connect controller directly on element/icon to flash\n connect() {\n super.connect();\n\n this.interval = setInterval(() => this.flash(), 500);\n }\n\n disconnect() {\n super.disconnect();\n\n clearInterval(this.interval);\n }\n\n flash() {\n this.element.style.visibility = (this.element.style.visibility === 'hidden' ? 'visible' : 'hidden');\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['comment', 'submit'];\n\n connect() {\n super.connect();\n this.commentTarget.addEventListener(\n 'input',\n this.onCommentInput.bind(this),\n );\n\n const radioButtons = this.element.querySelectorAll('input[type=\"radio\"]');\n radioButtons.forEach((radio) => {\n radio.addEventListener('click', (event) => this.onRadioClick(event));\n });\n }\n\n onRadioClick(event) {\n const selectedRadio = event.target;\n\n if (selectedRadio) {\n const submitButton = this.submitTarget;\n submitButton.disabled = false;\n submitButton.classList.add('cursor-pointer');\n const { strength } = selectedRadio.dataset;\n const comment = this.commentTarget;\n comment.value = `I would like to change my treatment strength to ${strength}`;\n }\n }\n\n onCommentInput() {\n const comment = this.commentTarget;\n const submitButton = this.submitTarget;\n\n submitButton.disabled = comment.value.trim() === '';\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\n 'form',\n 'password',\n 'confirmPassword',\n 'passwordIcon',\n 'confirmPasswordIcon',\n 'phoneField',\n 'dobField',\n 'zipField',\n ];\n\n connect() {\n super.connect();\n }\n\n initialize() {\n if (this.hasFormTarget) {\n $(this.formTarget).on('submit', (e) => {\n e.preventDefault();\n $(this.phoneFieldTargets).unmask();\n this.formTarget.submit();\n });\n }\n\n if (this.hasDobFieldTarget) {\n $(this.dobFieldTarget).mask('00/00/0000');\n }\n\n if (this.hasPhoneFieldTarget) {\n $(this.phoneFieldTargets).mask('(000) 000-0000');\n }\n\n if (this.hasZipFieldTarget) {\n $(this.zipFieldTarget).mask('00000');\n }\n\n if (this.element.dataset.eyeSlashSrc) {\n this.eyeSlashSrc = this.element.dataset.eyeSlashSrc;\n }\n\n if (this.element.dataset.eyeSrc) {\n this.eyeSrc = this.element.dataset.eyeSrc;\n }\n }\n\n togglePassword() {\n this.toggleInput(this.passwordTarget, this.passwordIconTarget);\n }\n\n toggleConfirmPassword() {\n this.toggleInput(\n this.confirmPasswordTarget,\n this.confirmPasswordIconTarget,\n );\n }\n\n toggleInput(input, img) {\n if (input.type === 'password') {\n input.type = 'text';\n img.src = img.dataset.visible;\n } else {\n input.type = 'password';\n img.src = img.dataset.blocked;\n }\n\n input.focus();\n }\n\n toggleSecureField(event) {\n const toggleElement = event.currentTarget;\n const field = document.getElementById(toggleElement.dataset.fieldId);\n\n if (field.type === 'password') {\n field.type = 'text';\n if (this.eyeSrc) toggleElement.src = this.eyeSrc;\n } else {\n field.type = 'password';\n if (this.eyeSlashSrc) toggleElement.src = this.eyeSlashSrc;\n }\n\n field.focus();\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['pause', 'option'];\n\n connect() {\n super.connect();\n this.element.addEventListener('change', this.onFormChange.bind(this));\n\n const pauseRadio = document.getElementById('pause');\n\n if (!pauseRadio) {\n this.onFormChange();\n }\n }\n\n onFormChange() {\n const pauseRadio = document.getElementById('pause');\n const pauseReasons = $('.pause-reasons');\n const titleAndSubtitle = $('.title-and-subtitle');\n const submitBtn = $('#submitBtn');\n\n const isPaused = pauseRadio && pauseRadio.checked;\n\n const reasonSelected =\n $(\n 'input[name=\"store_subscriptions_subscription[cancellation_reasons]\"]:checked',\n ).length > 0;\n\n const enableSubmit = !isPaused || reasonSelected;\n submitBtn.prop('disabled', !enableSubmit);\n submitBtn.addClass('cursor-pointer');\n\n if (isPaused) {\n pauseReasons\n .removeClass('invisible opacity-0 max-h-0')\n .addClass('opacity-100 max-h-full');\n titleAndSubtitle.addClass('hidden');\n } else {\n pauseReasons\n .addClass('invisible opacity-0 max-h-0')\n .removeClass('opacity-100 max-h-full');\n titleAndSubtitle.removeClass('hidden');\n }\n }\n\n submit(e) {\n const reason = $('.pause-reasons').find('input[type=radio]:checked');\n if (reason.val() !== 'Other: Please explain.') return;\n\n // Add text from \"Other\" option text field to the radio button input field\n e.preventDefault();\n $(e.currentTarget).submit();\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['submitButton', 'cancelRadio', 'cancelReasons', 'option'];\n\n connect() {\n super.connect();\n if (this.hasCancelRadioTarget) {\n this.onFormChange();\n }\n }\n\n onFormChange() {\n const isCancelled = this.cancelRadioTarget.checked;\n const reasonSelected = this.optionTargets.some(option => option.checked);\n\n if (isCancelled) {\n this.cancelReasonsTarget.classList.remove('invisible', 'opacity-0', 'max-h-0');\n this.cancelReasonsTarget.classList.add('opacity-100', 'max-h-full');\n } else {\n this.cancelReasonsTarget.classList.add('invisible', 'opacity-0', 'max-h-0');\n this.cancelReasonsTarget.classList.remove('opacity-100', 'max-h-full');\n }\n\n this.submitButtonTarget.disabled = !(isCancelled && reasonSelected);\n if (this.submitButtonTarget.disabled) {\n this.submitButtonTarget.classList.add('cursor-pointer');\n }\n }\n\n submit(e) {\n const reason = $('.cancel-reasons').find('input[type=radio]:checked');\n if (reason.val() !== 'Other: Please explain.') return;\n\n // Add text from \"Other\" option text field to the radio button input field\n e.preventDefault();\n $(e.currentTarget).submit();\n }\n}\n","/* global Persona */\nimport cableReady from 'cable_ready';\nimport moment from 'moment';\nimport ApplicationController from './application_controller';\nimport consumer from '../channels/consumer';\nimport {\n hideLoadingSpinner,\n showLoadingSpinner,\n} from './utilities/loading_spinner';\n\nexport default class extends ApplicationController {\n static targets = ['help', 'submitBtn', 'firstName', 'lastName', 'dob'];\n\n connect() {\n super.connect();\n\n consumer.subscriptions.create('IdVerificationChannel', {\n received: (data) => {\n if (data.cableReady) cableReady.perform(data.operations);\n },\n });\n\n document.addEventListener(\n 'openIdVerificationModal',\n this.verificationForm.bind(this),\n );\n\n document.addEventListener(\n 'completeIdVerification',\n this.completeIdVerification.bind(this),\n );\n\n document.addEventListener(\n 'failIdVerification',\n this.failIdVerification.bind(this),\n );\n }\n\n submitBtnTargetConnected() {\n $('.dob_field').mask('00/00/0000');\n this.validateFormInputs();\n $('#user_first_name, #user_last_name, #user_date_of_birth').on(\n 'input',\n this.validateFormInputs.bind(this),\n );\n\n $('#user_first_name, #user_last_name, #user_date_of_birth').on(\n 'change',\n this.validateFormInputs.bind(this),\n );\n }\n\n validateFormInputs() {\n if (\n this.firstNameTarget.value.trim().length &&\n this.lastNameTarget.value.trim().length\n ) {\n const dob = this.dobTarget.value.trim();\n if (dob.length < 10) {\n this.disableSubmitBtn();\n } else if (this.isValidDOB(dob)) {\n this.enableSubmitBtn();\n } else {\n this.setAndReportValidity(\n this.dobTarget,\n 'Date of Birth must be a valid date between 18 and 120 years of age',\n );\n this.disableSubmitBtn();\n }\n } else {\n this.disableSubmitBtn();\n }\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener(\n 'openIdVerificationModal',\n this.verificationForm.bind(this),\n );\n document.removeEventListener(\n 'completeIdVerification',\n this.completeIdVerification.bind(this),\n );\n document.removeEventListener(\n 'failIdVerification',\n this.failIdVerification.bind(this),\n );\n }\n\n // https://docs.withpersona.com/docs/quickstart-embedded-flow\n // https://docs.withpersona.com/docs/embedded-flow-event-handling\n // https://docs.withpersona.com/docs/embedded-flow-parameters\n initPersona(event) {\n event.preventDefault();\n\n showLoadingSpinner();\n\n const client = new Persona.Client({\n templateId: this.data.get('persona-template-id'),\n environmentId: this.data.get('persona-environment-id'),\n themeSetId: this.data.get('persona-theme-set-id') || null,\n fields: {\n brand: this.data.get('persona-brand-name') || null,\n },\n referenceId: this.data.get('user-email'),\n onReady: () => client.open(),\n onCancel: () => hideLoadingSpinner(),\n onEvent: (name, { inquiryId }) => {\n if (name === 'start') {\n this.updateUserInquiryId(inquiryId);\n }\n },\n onComplete: ({ status }) => {\n if (['failed', 'needs_review', 'declined'].includes(status)) {\n $.get('/user_verifications/verification_failed');\n hideLoadingSpinner();\n }\n },\n });\n }\n\n updateUserInquiryId(inquiryId) {\n $.ajax({\n url: '/user_verifications',\n type: 'PUT',\n beforeSend(xhr) {\n xhr.setRequestHeader(\n 'X-CSRF-Token',\n $('meta[name=\"csrf-token\"]').attr('content'),\n );\n },\n data: `persona_inquiry_id=${inquiryId}`,\n });\n }\n\n needHelp() {\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::Questionnaires::NeedHelp#show');\n },\n });\n }\n\n verificationForm() {\n this.callStimulusAction({\n cb: () => {\n hideLoadingSpinner();\n this.stimulate('Store::Questionnaires::VerificationForm#show');\n },\n });\n }\n\n completeIdVerification() {\n window.location.href = '/user_verifications/complete_order';\n }\n\n failIdVerification() {\n hideLoadingSpinner();\n }\n\n isValidDOB(dob = '') {\n const currentYear = moment().year();\n const birthYear = moment(dob, 'MM/DD/YYYY').year();\n const age = currentYear - birthYear;\n return age >= 18 && birthYear >= currentYear - 120;\n }\n\n enableSubmitBtn() {\n [this.firstNameTarget, this.lastNameTarget, this.dobTarget].forEach(\n (input) => this.setAndReportValidity(input, ''),\n );\n this.submitBtnTarget.classList.remove('hover:cursor-not-allowed');\n this.submitBtnTarget.removeAttribute('disabled');\n }\n\n disableSubmitBtn() {\n this.submitBtnTarget.classList.add('hover:cursor-not-allowed');\n this.submitBtnTarget.setAttribute('disabled', true);\n }\n\n setAndReportValidity(element, message = '') {\n element.setCustomValidity(message);\n element.reportValidity();\n }\n}\n","// Load all the controllers within this directory and all subdirectories.\n// Controller files must be named *_controller.js.\n\nimport { Application } from \"@hotwired/stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\";\nimport StimulusReflex from \"stimulus_reflex\";\nimport consumer from \"../channels/consumer\";\n\nconst application = Application.start();\nconst context = require.context(\"controllers\", true, /_controller\\.js$/);\napplication.load(definitionsFromContext(context));\napplication.consumer = consumer;\nStimulusReflex.initialize(application, { consumer });\nStimulusReflex.debug = process.env.RAILS_ENV === \"development\";\n\n// https://github.com/adrienpoly/stimulus-flatpickr#basic-usage\n// Import Flatpickr\nimport Flatpickr from 'stimulus-flatpickr';\n// Import style for flatpickr\nrequire('flatpickr/dist/themes/airbnb.css');\n// Manually register Flatpickr as a stimulus controller\napplication.register('flatpickr', Flatpickr);\n","import ApplicationController from \"./application_controller\";\nimport Cleave from \"cleave.js\";\nimport \"jquery-mask-plugin\";\n\nexport default class extends ApplicationController {\n static targets = [\"form\", \"text-field\", \"errorContainer\"];\n static values = { roleType: String };\n\n connect() {\n super.connect();\n this.setFieldMasks();\n }\n\n inputChange(element) {\n if (element.target.value) {\n element.target.classList.remove(\"error\");\n\n if (\n element.target.nextElementSibling &&\n element.target.nextElementSibling.classList.contains(\"text-error\")\n ) {\n element.target.nextElementSibling.textContent = \"\";\n }\n }\n }\n\n submitError(event) {\n let [xhr] = event.detail;\n\n const { errors } = xhr;\n\n this.errorContainerTargets.forEach((errorContainer) => {\n const errorType = errorContainer.dataset.errorType;\n const errorMsg = this.extractError({ errors, type: errorType });\n\n errorContainer.innerText = errorMsg || \"\";\n\n this.setFieldMasks();\n });\n }\n\n submitForm(event, settings) {\n $(\".phone_field\").unmask();\n\n let isValid = this.validateForm(this.formTarget);\n\n // If our form is invalid, prevent default on the event\n // so that the form is not submitted\n if (!isValid) {\n event.preventDefault();\n this.setFieldMasks();\n return;\n }\n }\n\n validateForm() {\n let isValid = true;\n\n let requiredFieldSelectors =\n \"textarea:required, input:required, select:required\";\n\n let requiredFields = this.formTarget.querySelectorAll(\n requiredFieldSelectors\n );\n\n requiredFields.forEach((field) => {\n if (!field.disabled && !field.value.trim()) {\n field.focus();\n\n field.classList.add(\"error\");\n\n if (field.nextElementSibling) {\n field.nextElementSibling.textContent = \"Can't be blank\";\n }\n\n isValid = false;\n\n return false;\n }\n });\n\n // If we already know we're invalid, just return false\n if (!isValid) {\n return false;\n }\n\n // Search for any browser invalidated input fields and focus them\n let invalidFields = this.formTarget.querySelectorAll(\"input:invalid\");\n\n invalidFields.forEach((field) => {\n if (!field.disabled) {\n field.focus();\n isValid = false;\n }\n });\n\n return isValid;\n }\n\n extractError({ errors, type }) {\n if (!errors || !Array.isArray(errors)) return;\n\n const foundError = errors.find(\n (error) => error.type.toLowerCase() === type.toLowerCase()\n );\n\n return foundError?.detail?.replace(\".\", \" \");\n }\n\n setFieldMasks() {\n $(\".zip_field\").mask(\"00000\");\n $(\".phone_field\").mask(\"(000) 000-0000\");\n $(\".dob_field\").mask(\"00/00/0000\");\n $(\".cvv_field\").mask(\"0000\");\n\n if ($(\".expiry_field\").length) {\n new Cleave(\".expiry_field\", {\n date: true,\n datePattern: [\"m\", \"y\"],\n });\n }\n\n if ($(\".cc_field\").length) {\n new Cleave(\".cc_field\", {\n creditCard: true,\n });\n }\n }\n\n duplicateAddress() {\n const checkbox = $(\"#checkout_form_replicate_ship_address\");\n\n const shipAddress = {\n address1: $(\"#checkout_form_ship_address_attributes_address1\"),\n address2: $(\"#checkout_form_ship_address_attributes_address2\"),\n city: $(\"#checkout_form_ship_address_attributes_city\"),\n state: $(\"#checkout_form_ship_address_attributes_state_id\"),\n zipcode: $(\"#checkout_form_ship_address_attributes_zipcode\"),\n };\n\n const billAddress = {\n address1: $(\"#checkout_form_bill_address_attributes_address1\"),\n address2: $(\"#checkout_form_bill_address_attributes_address2\"),\n city: $(\"#checkout_form_bill_address_attributes_city\"),\n state: $(\"#checkout_form_bill_address_attributes_state_id\"),\n zipcode: $(\"#checkout_form_bill_address_attributes_zipcode\"),\n };\n\n if (checkbox.is(\":checked\")) {\n Object.keys(shipAddress).forEach((key) => {\n billAddress[key].val(shipAddress[key].val());\n });\n } else {\n Object.keys(billAddress).forEach((key) => {\n billAddress[key].val(\"\");\n });\n }\n }\n}\n","import checkSession from '../helpers/checkSession';\nimport ApplicationController from './application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\n 'modal',\n 'overlay',\n 'title',\n 'content',\n 'requiredQuestionnaire',\n 'questionnaireCol',\n 'questionnaireList',\n ];\n\n connect() {\n super.connect();\n document.addEventListener('openModal', this.openModal);\n document.addEventListener('closeModal', this.closeModal.bind(this));\n this.element[this.identifier] = this;\n }\n\n disconnect() {\n document.removeEventListener('openModal', this.openModal);\n document.addEventListener('closeModal', this.closeModal.bind(this));\n this.closeModal();\n }\n\n initialize() {\n checkSession(this);\n }\n\n questionnaireListTargetConnected() {\n if (this.requiredQuestionnaireTarget.checked) {\n this.toggleRequiredQuestionnaire();\n }\n }\n\n openModal(event) {\n const { html, title, overlayOpacity } = event.detail;\n\n const modal = document.querySelector('.modal');\n\n if (!modal) return;\n\n const modalTitle = document.getElementById('modal-title');\n const modalContent = document.getElementById('modal-content');\n const overlay = document.querySelector('.modal-overlay');\n\n modal.classList.add('opacity-100', 'visible');\n modal.classList.remove('opacity-0', 'invisible', 'modal');\n\n overlay.classList.add(overlayOpacity, 'visible');\n overlay.classList.remove('bg-opacity-0', 'invisible');\n\n if (modalTitle && title) modalTitle.insertAdjacentText('beforeend', title);\n modalContent.insertAdjacentHTML('beforeend', html);\n }\n\n closeModal(event) {\n if (event) event.preventDefault();\n this.modalTarget.classList.remove('opacity-100', 'visible');\n this.modalTarget.classList.add('opacity-0', 'invisible', 'modal');\n this.overlayTarget.classList.remove(\n 'bg-opacity-75',\n 'bg-opacity-100',\n 'visible',\n );\n this.overlayTarget.classList.add('bg-opacity-0', 'invisible');\n if (this.hasTitleTarget) {\n this.inactivateSessionModal();\n this.titleTarget.innerHTML = '';\n }\n this.contentTarget.innerHTML = '';\n }\n\n inactivateSessionModal() {\n if (this.titleTarget.textContent.toLowerCase().includes('timeout')) {\n window.sessionModalActive = false;\n }\n }\n\n toggleRequiredQuestionnaire() {\n this.questionnaireColTarget.classList.toggle('hidden');\n this.questionnaireListTarget.required =\n !this.questionnaireListTarget.required;\n }\n}\n","export default function (stimulus) {\n if (window.checkSessionInitiated) return;\n\n window.checkSessionInitiated = true;\n window.sessionModalActive = false;\n\n let heartBeatActivated = false;\n\n class HeartBeat {\n constructor() {\n $(() => {\n this.initHeartBeat();\n });\n }\n\n initHeartBeat() {\n this.lastActive = new Date().valueOf();\n\n if (!heartBeatActivated) {\n [\"mousemove\", \"scroll\", \"click\", \"keydown\"].forEach((activity) => {\n document.addEventListener(\n activity,\n (ev) => {\n this.lastActive =\n ev.timeStamp + performance.timing.navigationStart;\n },\n false\n );\n });\n heartBeatActivated = true;\n }\n }\n }\n\n window.heartBeat = new HeartBeat();\n\n const sessionTimeoutPollFrequency = 10;\n\n let timeout = 0;\n\n const pollForSessionTimeout = () => {\n if (\n Date.now() - window.heartBeat.lastActive <\n sessionTimeoutPollFrequency * 1000\n ) {\n timeout = setTimeout(\n pollForSessionTimeout,\n sessionTimeoutPollFrequency * 1000\n );\n return;\n }\n\n $.ajax({\n url: \"/check_session_timeout\",\n })\n .done((data) => {\n if (data && data.time_left) {\n if (data.time_left <= 60 && !window.sessionModalActive) {\n stimulus.stimulate(\n \"Store::Modals::SessionTimeoutReflex#set_session_timeout_details\",\n \"session_remaining\"\n );\n window.sessionModalActive = true;\n }\n } else {\n clearTimeout(timeout);\n }\n })\n .fail((data) => {\n if (data.status === 401) {\n window.sessionModalActive = false;\n\n stimulus.closeModal();\n\n stimulus.stimulate(\n \"Store::Modals::SessionTimeoutReflex#set_session_timeout_details\",\n \"session_timed_out\"\n );\n }\n });\n\n timeout = setTimeout(\n pollForSessionTimeout,\n sessionTimeoutPollFrequency * 1000\n );\n };\n\n // Begin checking 10 minutes after loading the page\n timeout = setTimeout(pollForSessionTimeout, 10 * 60 * 1000);\n}\n","import ApplicationController from './application_controller';\n// https://yarnpkg.com/package/select2\n// https://select2.org\nimport 'select2/dist/css/select2.min.css';\nimport 'select2/dist/js/select2.min.js';\n\nexport default class extends ApplicationController {\n connect() {\n $(this.element).select2();\n }\n}\n","import ApplicationController from \"./application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\"template\", \"states\", \"role\", \"add_item\", \"addLicenseBtn\"];\n\n connect() {\n super.connect();\n }\n\n add_state_association() {\n const content = this.templateTarget.innerHTML.replace(\n /NEW_RECORD/g,\n new Date().getTime()\n );\n this.statesTarget.insertAdjacentHTML(\"beforeend\", content);\n $(this.addLicenseBtnTarget).hide();\n }\n\n remove_state_association(event) {\n const states = document.querySelectorAll(\".licensed_state\");\n\n if (states.length === 1) {\n $(this.addLicenseBtnTarget).show();\n }\n\n let wrapper = event.target.closest(\".licensed_state\");\n\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 wrapper.classList.remove(\"licensed_state\");\n }\n }\n\n add_association(event) {\n event.preventDefault();\n var content = this.templateTarget.innerHTML.replace(/NEW_RECORD/g, new Date().getTime());\n this.add_itemTarget.insertAdjacentHTML('beforebegin', content);\n }\n\n remove_association(event) {\n event.preventDefault();\n let item = event.target.closest(\".nested-fields\");\n item.querySelector(\"input[name*='_destroy']\").value = 1;\n item.style.display = 'none';\n }\n}\n","import ApplicationController from \"./application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\n \"requiredQuestionnaire\",\n \"questionnaireCol\",\n \"questionnaireList\",\n ];\n\n connect() {\n super.connect();\n\n if (\n this.hasRequiredQuestionnaireTarget &&\n this.requiredQuestionnaireTarget.checked\n ) {\n this.toggleRequiredQuestionnaire();\n }\n }\n\n toggleRequiredQuestionnaire() {\n this.questionnaireColTarget.classList.toggle(\"hidden\");\n this.questionnaireListTarget.required =\n !this.questionnaireListTarget.required;\n }\n}\n","import ApplicationController from './application_controller';\nimport { showLoadingSpinner } from './utilities/loading_spinner';\n\nexport default class extends ApplicationController {\n static targets = [\n 'noneAnswer',\n 'regularAnswer',\n 'commentable',\n 'endResponse',\n 'freeTextField',\n 'nextButtonLink',\n \"allowHardStop\",\n ];\n\n connect() {\n super.connect();\n\n /*\n If the NavigationComponent does not have a next path,\n - prevent default behavior\n - submit the form through this controller\n - select combination form will be submitted (does not have next path)\n */\n if (this.hasNextButtonLinkTarget) {\n const submitBtn = document.querySelector('.store-button.submit');\n\n if (this.nextButtonLinkTarget.dataset.nextPath === 'false') {\n this.nextButtonLinkTarget.addEventListener('click', (e) => {\n e.preventDefault();\n if (submitBtn.disabled === false) {\n this.submitForm();\n }\n });\n }\n }\n\n document.addEventListener('auto-advance-to-next-question', this.submitForm);\n document.addEventListener(\n 'enable-form-submit-arrow',\n this.activateArrowAndEnableSubmit.bind(this),\n );\n document.addEventListener(\n 'disable-form-submit-arrow',\n this.deactivateArrowAndEnableSubmit.bind(this),\n );\n }\n\n disconnect() {\n document.removeEventListener(\n 'auto-advance-to-next-question',\n this.submitForm,\n );\n document.removeEventListener(\n 'enable-form-submit-arrow',\n this.activateArrowAndEnableSubmit.bind(this),\n );\n document.removeEventListener(\n 'disable-form-submit-arrow',\n this.deactivateArrowAndEnableSubmit.bind(this),\n );\n }\n\n initialize() {\n this.checkOnLoad();\n this.shouldEnableSubForm();\n this.handleQuantitySelectionTooltips();\n }\n\n disableSubmit() {\n const submitBtn = document.querySelector('.store-button.submit');\n\n if (submitBtn) {\n submitBtn.disabled = true;\n submitBtn.removeEventListener('click', this.submitForm);\n }\n }\n\n enableSubmit() {\n const submitBtn = document.querySelector('.store-button.submit');\n\n if (submitBtn) {\n submitBtn.addEventListener('click', this.submitForm);\n }\n }\n\n activateArrowAndEnableSubmit() {\n this.activateNextButton();\n this.enableSubmit();\n }\n\n deactivateArrowAndEnableSubmit() {\n this.deactivateRightArrow();\n this.disableSubmit();\n }\n\n clickSubmitBtn() {\n const submitBtn = document.querySelector('.store-button.submit');\n\n if (submitBtn) {\n submitBtn.click();\n }\n }\n\n submitForm() {\n if (window.questionnaireHardStop) return;\n document.querySelector('.store-button.submit').style.pointerEvents = 'none'; // prevent button from being clicked multiple times\n document.querySelector('form').submit();\n }\n\n checkMultiAnswer() {\n const el = $('.multi_answer_cb');\n\n el.each((idx) => {\n if ($(el[idx]).prop('checked') === true) {\n $(el[idx])\n .prop('checked', true)\n .parent('li')\n .addClass('border-blue-fw_dark font-bold');\n\n this.activateNextButton();\n this.enableSubmit();\n $(el[idx])\n .nextAll('.more-info:first')\n .removeClass('hidden')\n .addClass('');\n\n const li = $(el[idx]).parent('li').addClass('mb-0');\n const moreInfo = li.next('.more-info');\n\n if (moreInfo.length) {\n moreInfo.addClass('mb-0').removeClass('hidden');\n }\n }\n });\n }\n\n checkSingleChoice() {\n const el = $('.qa-radio');\n\n el.each((idx) => {\n if ($(el[idx]).prop('checked') === true) {\n $(el[idx])\n .prop('checked', true)\n .prev()\n .addClass('font-bold !border-blue-fw_dark');\n\n this.activateNextButton();\n this.enableSubmit();\n $(el[idx])\n .nextAll('.more-info:first')\n .removeClass('hidden')\n .parent()\n .find('label')\n .addClass('mb-0');\n }\n });\n\n this.checkDosageQuantityRadios();\n }\n\n checkFileUploads() {\n if (document.querySelector('li.image_item') !== null) {\n this.activateNextButton();\n this.enableSubmit();\n }\n }\n\n checkOnLoad() {\n this.checkMultiAnswer();\n this.checkSingleChoice();\n this.checkFileUploads();\n $(\n \"input[name$='store_order[line_items_attributes][quantity]']:checked\",\n ).trigger('focus');\n }\n\n activateNextButton() {\n if (!this.shouldEnableSectionForm()) return;\n const submitBtnEl = document.querySelector('.store-button.submit');\n if (!submitBtnEl) return;\n if (this.checkHardStops()) return;\n submitBtnEl.disabled = false;\n }\n\n deactivateRightArrow() {\n if (!this.shouldEnableSectionForm()) return;\n const submitBtnEl = document.querySelector('.store-button');\n if (!submitBtnEl) return;\n if (!submitBtnEl.dataset.rightarrowsubmitDisabled) return;\n\n const newSrc = submitBtnEl.dataset.rightarrowsubmitDisabled;\n const rightArrowEl = document.querySelector('.right-arrow');\n\n rightArrowEl.setAttribute('alt', 'right-arrow-inactive');\n rightArrowEl.setAttribute('src', newSrc);\n }\n\n disableEnableSurveySubmit() {\n if (window.questionnaireHardStop) return;\n\n if (!this.shouldEnableSectionForm()) return;\n\n $('.qa-radio, .multi_answer_cb, .doses-radio').each(() => {\n if (\n $('.qa-radio:checked, .multi_answer_cb:checked, .doses-radio:checked').length\n ) {\n this.enableSubmit();\n this.activateNextButton();\n } else {\n this.disableSubmit();\n }\n });\n }\n\n selectMultipleAnswers(event) {\n event.preventDefault();\n\n if (event.target.nodeName !== 'LABEL') return;\n\n const selectedLabel = event.target;\n const selectedInput =\n selectedLabel.parentNode.getElementsByTagName('input')[0];\n\n const answers = this.regularAnswerTargets;\n const noneAnswers = this.noneAnswerTargets;\n const endResponses = this.endResponseTargets;\n\n if (noneAnswers.includes(selectedLabel)) {\n answers.forEach((answer) => this.deselectOption(answer));\n endResponses.forEach((endResponse) => this.deselectOption(endResponse));\n }\n\n if (answers.includes(selectedLabel)) {\n noneAnswers.forEach((answer) => this.deselectOption(answer));\n }\n\n if (endResponses.includes(selectedLabel)) {\n noneAnswers.forEach((answer) => this.deselectOption(answer));\n }\n\n this.displayMoreInfo($(selectedInput));\n\n if (\n selectedInput.checked &&\n !this.autoAdvanceAnswerSelected(selectedLabel)\n ) {\n this.deselectOption(selectedLabel);\n } else {\n this.selectOption(selectedLabel);\n }\n\n this.checkHardStops();\n\n if (this.autoAdvanceAnswerSelected(selectedLabel)) {\n document.dispatchEvent(this.advanceToNextQuestionEvent);\n }\n }\n\n /* eslint no-param-reassign: \"error\" */\n selectOption(labelElement) {\n if (labelElement.nodeName === 'LI') return;\n labelElement.parentNode.getElementsByTagName('input')[0].checked = true;\n labelElement.parentNode.classList.add('border-blue-fw_dark', 'font-bold');\n }\n\n /* eslint no-param-reassign: \"error\" */\n deselectOption(labelElement) {\n if (labelElement.nodeName === 'LI') return;\n labelElement.parentNode.getElementsByTagName('input')[0].checked = false;\n labelElement.parentNode.classList.remove('border-blue-fw_dark', 'font-bold');\n }\n\n toggleRadioButton(event) {\n window.questionnaireHardStop = false;\n\n const selected = $(event.target);\n const unselected = $(this.element)\n .find('input[type=radio]:not(checked)')\n .not(`#${selected.attr('id')}`);\n\n this.closeMoreInfos(event.target);\n\n this.displayMoreInfo(selected);\n\n selected\n .attr('checked', 'checked')\n .parent('li')\n .children('label')\n .addClass('mb-0 !border-blue-fw_dark font-bold');\n\n unselected\n .removeAttr('checked')\n .parent('li')\n .children('label')\n .removeClass('!border-blue-fw_dark font-bold');\n\n if (this.autoAdvanceAnswerSelected(event.target)) {\n document.dispatchEvent(this.advanceToNextQuestionEvent);\n }\n }\n\n toggleMultipleRadioButton(event) {\n const selected = $(event.target);\n const unselected = selected\n .closest('radiogroup')\n .find('input[type=radio]:not(checked)')\n .not(`#${selected.attr('id')}`);\n\n selected\n .attr('checked', 'checked')\n .prev()\n .addClass('!border-blue-fw_dark font-bold');\n unselected\n .removeAttr('checked')\n .prev()\n .removeClass('!border-blue-fw_dark font-bold');\n }\n\n // Hide/show more info area for answer option\n toggleUserAnswerFreeText(event) {\n const noneAnswer = $(event.target).data('none-answer');\n\n if (noneAnswer) {\n $(this.commentableTarget).css('display', 'none');\n return;\n }\n\n $(this.commentableTarget).toggle('hidden');\n }\n\n hardStop(event) {\n const selectedLabel = event.target;\n\n const endResponse =\n selectedLabel.parentNode.getElementsByTagName('input')[0];\n\n if (endResponse.checked) {\n window.questionnaireHardStop = true;\n\n this.disableSubmit();\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::Questionnaires::HardStop#show');\n },\n });\n } else {\n this.deselectOption(selectedLabel);\n }\n }\n\n checkHardStops() {\n const endResponses = this.endResponseTargets;\n\n const hasHardStop = Array.from(endResponses).some((label) => {\n const inputId = label.getAttribute('for');\n const input = document.getElementById(inputId);\n return input && input.checked;\n });\n\n if (!hasHardStop) {\n window.questionnaireHardStop = false;\n }\n\n return hasHardStop;\n }\n\n checkDosageQuantityRadios(e) {\n if (e !== undefined && e.type === 'click') showLoadingSpinner();\n\n const dosages = $(\"input[name$='variant_id']\");\n dosages.each((idx) => {\n if ($(dosages[idx]).prop('checked')) {\n $(dosages[idx])\n .prop('checked', true)\n .siblings('label')\n .addClass('bg-store-primary text-store-amberblack')\n .text('Selected combination');\n\n this.activateNextButton();\n this.enableSubmit();\n if (e !== undefined && e.type === 'click') {\n setTimeout(() => this.clickSubmitBtn(), 300);\n }\n }\n });\n\n const quantities = $('.doses-radio');\n\n quantities.each((idx) => {\n if ($(quantities[idx]).prop('checked')) {\n this.activateNextButton();\n this.enableSubmit();\n }\n });\n }\n\n checkFrequencyQuantityRadios(e) {\n if (e !== undefined && e.type === 'click') showLoadingSpinner();\n\n const frequencies = $(\n \"input[name$='store_order[line_items_attributes][quantity]']\",\n );\n\n frequencies.each((idx) => {\n const frequencySelection = $(frequencies[idx]);\n if (frequencySelection.prop('checked')) {\n frequencySelection\n .prop('checked', true)\n .parentsUntil('.frequency-card')\n .parent()\n .removeClass('bg-white');\n this.activateNextButton();\n this.enableSubmit();\n if (e !== undefined && e.type === 'click') {\n setTimeout(() => this.clickSubmitBtn(), 300);\n }\n } else {\n frequencySelection\n .prop('checked', false)\n .parentsUntil('.frequency-card')\n .parent()\n .addClass('bg-white');\n }\n });\n\n this.disableEnableSurveySubmit();\n }\n\n freeTextFieldTargetConnected() {\n this.activateNextButton();\n this.enableSubmit();\n }\n\n displayMoreInfo(input) {\n const hasMoreInfo = input.parent('li').data('needMoreInfo');\n\n if (hasMoreInfo) {\n input.parent('li').addClass('mb-0');\n const moreInfo = $(input).nextAll('.more-info:first').length\n ? $(input).nextAll('.more-info:first')\n : $(input).parent('li').nextAll('.more-info:first');\n\n moreInfo.toggle('hidden');\n }\n }\n\n closeMoreInfos(clickEl) {\n const inputs = $('.qa-radio');\n\n inputs.each(function () {\n if (clickEl === this) return;\n $(this).nextAll('.more-info:first').addClass('hidden').hide();\n });\n }\n\n shouldEnableSectionForm() {\n const sectionId = $('#user_answer_form_section_id');\n\n if (!sectionId.length) return true;\n\n const qaRadioChecked = $('.qa-radio:checked').length;\n\n const questionIds = $('#user_answer_form_question_ids')\n .val()\n .split(' ').length;\n\n return qaRadioChecked === questionIds;\n }\n\n shouldEnableSubForm() {\n const qaRadioChecked = $('.radio-lg:checked').length;\n\n if (qaRadioChecked) {\n this.activateNextButton();\n this.enableSubmit();\n }\n }\n\n get advanceToNextQuestionEvent() {\n return new CustomEvent('auto-advance-to-next-question');\n }\n\n autoAdvanceAnswerSelected(element) {\n return element.dataset.autoAdvance === 'true';\n }\n\n toggleSubscriptionSelectionCheckMarks(e) {\n const { checkWhiteSrc } = this.element.dataset;\n const { checkDarkSrc } = this.element.dataset;\n\n // White check marks for selected sub type\n e.currentTarget\n .querySelectorAll('img')\n .forEach((img) => $(img).attr('src', checkWhiteSrc));\n\n // Black check marks for non-selected sub types\n document\n .querySelectorAll('input[type=radio]:not(:checked)')\n .forEach((input) => {\n const imgs = input.parentElement.querySelectorAll('img');\n imgs.forEach((img) => $(img).attr('src', checkDarkSrc));\n });\n }\n\n handleQuantitySelectionTooltips() {\n if (this.element.dataset.step !== 'quantity_selection') return;\n\n const isQuarterly = this.element.dataset.isQuarterly === 'true';\n const packsPerShipment = isQuarterly ? [18, 36, 54, 72] : [1, 2, 3, 4];\n\n packsPerShipment.forEach((num) => {\n const experiences = isQuarterly === true ? num : num * 6;\n const days = isQuarterly === true ? 90 : 30;\n const $tooltip = $(`#${num}-packs-per-shipment-tooltip`);\n\n $tooltip.tooltipster({\n theme: 'rugiet',\n position: window.matchMedia('(max-width: 767px)').matches\n ? 'top'\n : 'right',\n content: $(\n `
${experiences} experiences over ${days} days
`,\n ),\n trigger: 'custom',\n triggerOpen: {\n mouseenter: true,\n touchstart: true,\n },\n triggerClose: {\n mouseleave: true,\n tap: true,\n },\n });\n });\n\n $('.not-available-tooltip').tooltipster({\n theme: 'rugiet',\n position: window.matchMedia('(max-width: 767px)').matches\n ? 'top'\n : 'right',\n content: $(\n \"

Recommended to have the best experiences
in one month.

\",\n ),\n contentCloning: true,\n trigger: 'custom',\n triggerOpen: {\n mouseenter: true,\n touchstart: true,\n },\n triggerClose: {\n mouseleave: true,\n tap: true,\n },\n });\n }\n}\n","import ApplicationController from './application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n document.addEventListener('stimulus-reflex-redirect', this.redirect);\n }\n\n disconnect() {\n super.disconnect();\n document.removeEventListener('stimulus-reflex-redirect', this.redirect);\n }\n\n redirect(event) {\n const { url } = event.detail;\n if (url) window.location.href = url;\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\n 'address1',\n 'address2',\n 'city',\n 'stateId',\n 'zipcode',\n 'form',\n 'submitBtn',\n 'addressTouched',\n 'lookupValidationSkipped',\n ];\n\n validStates = this.stateIdTarget.dataset.validStates;\n\n connect() {\n super.connect();\n this.addInputEventListeners();\n this.addressTouchedTarget.value = false;\n this.toggleButtonEnabled();\n this.checkedWithSmarty = false;\n };\n\n disconnect() {\n super.disconnect();\n this.removeInputEventListeners();\n };\n\n validateAddress(event) {\n event?.preventDefault();\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n `Shared::ShipAddress#validate`,\n this.address1Target.value,\n this.address2Target.value,\n this.cityTarget.value,\n this.stateIdTarget.value,\n this.zipcodeTarget.value,\n this.checkedWithSmarty || false\n );\n }\n });\n };\n\n submitForm(event) {\n event?.preventDefault();\n if (this.checkedWithSmarty) {\n this.formTarget.submit();\n } else {\n this.validateAddress();\n }\n };\n\n clearRepeatAddressValidation() {\n this.lookupValidationSkippedTarget.value = false;\n this.checkedWithSmarty = false;\n this.toggleButtonEnabled();\n };\n\n touched() {\n return this.addressTouchedTarget.value === 'true';\n }\n\n toggleButtonEnabled() {\n this.touched() && this.addressValuesPresent() ? this.enableSubmit() : this.disableSubmit();\n }\n\n addressValuesPresent() {\n return this.formInputs().every(element => element.value);\n }\n\n formInputs() {\n return [\n this.address1Target,\n this.cityTarget,\n this.stateIdTarget,\n this.zipcodeTarget\n ].filter(element => element)\n }\n\n reset() {\n this.checkedWithSmarty = false;\n this.lookupValidationSkippedTarget.value = false;\n this.toggleButtonEnabled();\n }\n\n bypassValidation() {\n this.checkedWithSmarty = true;\n this.lookupValidationSkippedTarget.value = true;\n this.submitForm();\n }\n\n validatedSubmit() {\n this.checkedWithSmarty = true;\n this.lookupValidationSkippedTarget.value = false;\n this.submitForm();\n }\n\n enableSubmit() {\n this.submitBtnTarget.classList.remove('cursor-not-allowed');\n this.submitBtnTarget.removeAttribute('disabled');\n }\n\n disableSubmit() {\n this.submitBtnTarget.classList.add('cursor-not-allowed');\n this.submitBtnTarget.setAttribute('disabled', 'disabled');\n }\n\n displayAddressErrors(event) {\n const parentOfFieldElement = this.address1Target.parentNode;\n const { errorMessage } = event.detail;\n\n this.address1Target.focus();\n parentOfFieldElement.querySelector('p.text-error').innerHTML = errorMessage;\n }\n\n onChange() {\n this.addressTouchedTarget.value = true;\n this.checkedWithSmarty = false;\n this.lookupValidationSkippedTarget.value = false;\n this.toggleButtonEnabled()\n }\n\n onInput() {\n this.addressTouchedTarget.value = true;\n this.checkedWithSmarty = false;\n this.lookupValidationSkippedTarget.value = false;\n this.toggleButtonEnabled()\n }\n\n addInputEventListeners() {\n this.submitBtnTarget.addEventListener('click', this.submitForm.bind(this));\n\n document.addEventListener(\n `shared-address-disable-submit`,\n this.disableSubmit.bind(this),\n );\n\n document.addEventListener(\n `shared-address-enable-submit`,\n this.enableSubmit.bind(this),\n );\n\n document.addEventListener(\n `shared-address-validation-submit`,\n this.validatedSubmit.bind(this),\n );\n\n document.addEventListener(\n `shared-address-validation-bypass`,\n this.bypassValidation.bind(this),\n );\n\n document.addEventListener(\n `shared-address-validation-display-address-errors`,\n this.displayAddressErrors.bind(this),\n );\n\n document.addEventListener(\n `shared-address-validation-reset`,\n this.reset.bind(this),\n );\n\n this.formInputs().forEach((input) => {\n input.addEventListener('change', this.onChange.bind(this));\n input.addEventListener('input', this.onInput.bind(this));\n });\n this.address2Target.addEventListener('change', this.onChange.bind(this));\n this.address2Target.addEventListener('input', this.onInput.bind(this));\n }\n\n removeInputEventListeners() {\n this.submitBtnTarget.removeEventListener('click', this.submitForm.bind(this));\n\n document.removeEventListener(\n `shared-address-validation-submit`,\n this.validatedSubmit.bind(this),\n );\n\n document.removeEventListener(\n `shared-address-validation-bypass`,\n this.bypassValidation.bind(this),\n );\n\n document.removeEventListener(\n `shared-address-validation-display-address-errors`,\n this.displayAddressErrors.bind(this),\n );\n\n this.formInputs().forEach((input) => {\n input.removeEventListener('change', this.onChange.bind(this));\n input.removeEventListener('input', this.onInput.bind(this));\n });\n this.address2Target.removeEventListener('change', this.onChange.bind(this));\n this.address2Target.removeEventListener('input', this.onInput.bind(this));\n }\n}\n\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\n 'number',\n 'expiry',\n 'verificationValue',\n 'billing_zipcode',\n 'addressToggle',\n 'address1',\n 'address2',\n 'city',\n 'stateId',\n 'zipcode',\n 'form',\n 'submitBtn',\n 'creditCardTouched',\n 'addressTouched',\n 'paymentMethodId',\n 'lookupValidationSkipped',\n ];\n\n connect() {\n super.connect();\n\n document.addEventListener('shared-credit-card-rewire', this.rewire.bind(this));\n document.addEventListener('shared-credit-card-validation-disable-submit', this.toggleButtonEnabled.bind(this));\n document.addEventListener('shared-credit-card-validation-bypass', this.bypassValidation.bind(this));\n document.addEventListener('shared-credit-card-validation-reset', this.reset.bind(this));\n document.addEventListener('shared-credit-card-validation-submit', this.validatedSubmit.bind(this));\n\n this.addInputEventListeners();\n\n if (this.addressToggleTarget) {\n this.addressToggleTarget.addEventListener('change', this.loadAddressForm.bind(this));\n this.stimulate('Shared::CreditCardReflex#toggle_address', true);\n }\n\n if (this.submitBtnTarget) {\n this.submitBtnTarget.addEventListener('click', this.submitForm.bind(this));\n }\n\n this.toggleButtonEnabled();\n\n this.checkedWithSmarty = false;\n }\n\n disconnect() {\n document.removeEventListener('shared-credit-card-rewire', this.rewire.bind(this));\n document.removeEventListener('shared-credit-card-validation-disable-submit', this.toggleButtonEnabled.bind(this));\n document.removeEventListener('shared-credit-card-validation-bypass', this.bypassValidation.bind(this));\n document.removeEventListener('shared-credit-card-validation-reset', this.reset.bind(this));\n document.removeEventListener('shared-credit-card-validation-submit', this.validatedSubmit.bind(this));\n\n this.removeInputEventListeners();\n\n if (this.addressToggleTarget) {\n this.addressToggleTarget.removeEventListener('change', this.loadAddressForm.bind(this));\n }\n }\n\n rewire() {\n this.removeInputEventListeners();\n this.addInputEventListeners();\n this.toggleButtonEnabled();\n }\n\n reset() {\n this.checkedWithSmarty = false;\n this.lookupValidationSkippedTarget.value = false;\n this.toggleButtonEnabled();\n }\n\n bypassValidation() {\n this.checkedWithSmarty = true;\n this.lookupValidationSkippedTarget.value = true;\n this.submitForm();\n }\n\n validatedSubmit() {\n this.checkedWithSmarty = true;\n this.lookupValidationSkippedTarget.value = false;\n this.submitForm();\n }\n\n submitForm(event) {\n event?.preventDefault();\n if ((!this.hasAddressToggleTarget || this.addressToggleTarget.checked) && !this.checkedWithSmarty) {\n this.verifyAddress();\n } else {\n this.formTarget.submit();\n }\n }\n\n valuesPresent() {\n const creditCardPresent = this.creditCardValuesPresent();\n const billAddressPresent = this.billAddressValuesPresent();\n return creditCardPresent && billAddressPresent;\n }\n\n addressTouched() {\n return this.hasAddressTouchedTarget && this.addressToggleTarget.checked && this.addressTouchedTarget.value === 'true';\n }\n\n creditCardTouched() {\n return this.creditCardTouchedTarget.value === 'true';\n }\n\n touched() {\n return this.addressTouched() || this.creditCardTouched();\n }\n\n creditCardValuesPresent() {\n return this.creditCardInputs().every((element) => element.value);\n }\n\n billAddressValuesPresent() {\n return this.addressInputs().every((element) => element.value);\n }\n\n formInputs() {\n if (this.addressToggleTarget.checked) {\n return [...this.creditCardInputs(), ...this.addressInputs()];\n }\n return [...this.creditCardInputs()];\n }\n\n creditCardInputs() {\n const inputs = [];\n if (this.hasNumberTarget) {\n inputs.push(this.numberTarget);\n }\n if (this.hasVerificationValueTarget) {\n inputs.push(this.verificationValueTarget);\n }\n if (this.hasExpiryTarget) {\n inputs.push(this.expiryTarget);\n }\n if (this.hasZipcodeTarget) {\n inputs.push(this.zipcodeTarget);\n }\n return inputs;\n }\n\n addressInputs() {\n const inputs = [];\n if (this.hasAddress1Target) {\n inputs.push(this.address1Target);\n }\n if (this.hasAddress2Target) {\n inputs.push(this.address2Target);\n }\n if (this.hasCityTarget) {\n inputs.push(this.cityTarget);\n }\n if (this.hasStateIdTarget) {\n inputs.push(this.stateIdTarget);\n }\n if (this.hasZipcodeTarget) {\n inputs.push(this.zipcodeTarget);\n }\n return inputs;\n }\n\n loadAddressForm(event) {\n event?.preventDefault();\n const { checked } = event.currentTarget;\n this.removeInputEventListeners();\n this.stimulate('Shared::CreditCardReflex#toggle_address', checked);\n super.connect();\n }\n\n verifyAddress() {\n return this.callStimulusAction.bind(this)({\n cb: () => {\n this.stimulate(\n 'Shared::CreditCardReflex#validate',\n this.address1Target.value,\n this.address2Target.value,\n this.cityTarget.value,\n this.stateIdTarget.value,\n this.zipcodeTarget.value,\n this.checkedWithSmarty || false,\n );\n },\n });\n }\n\n clearRepeatAddressValidation() {\n this.addressLookupBypassed = false;\n this.checkedWithSmarty = false;\n this.toggleButtonEnabled();\n }\n\n addInputEventListeners() {\n this.creditCardInputs().forEach((input) => {\n input.addEventListener('change', this.onCardChange.bind(this));\n input.addEventListener('input', this.onCardInput.bind(this));\n });\n\n this.addressInputs().forEach((input) => {\n input.addEventListener('change', this.onAddressChange.bind(this));\n input.addEventListener('input', this.onAddressInput.bind(this));\n });\n\n }\n\n removeInputEventListeners() {\n this.creditCardInputs().forEach((input) => {\n input.removeEventListener('change', this.onCardChange.bind(this));\n input.removeEventListener('input', this.onCardInput.bind(this));\n });\n\n this.addressInputs().forEach((input) => {\n input.removeEventListener('change', this.onAddressChange.bind(this));\n input.removeEventListener('input', this.onAddressInput.bind(this));\n });\n }\n\n toggleButtonEnabled() {\n const cardReady = this.creditCardTouched() && this.creditCardValuesPresent();\n const addressReady = this.addressTouched() && this.billAddressValuesPresent();\n if (cardReady || addressReady) {\n this.enableSubmit();\n } else {\n this.disableSubmit();\n }\n }\n\n enableSubmit() {\n this.submitBtnTarget.classList.remove('cursor-not-allowed', 'bg-gray-200');\n this.submitBtnTarget.removeAttribute('disabled');\n }\n\n disableSubmit() {\n this.submitBtnTarget.classList.add('cursor-not-allowed', 'bg-gray-200');\n this.submitBtnTarget.setAttribute('disabled', 'disabled');\n }\n\n onCardChange() {\n this.creditCardTouchedTarget.value = 'true';\n this.toggleButtonEnabled();\n }\n\n onCardInput() {\n this.creditCardTouchedTarget.value = 'true';\n this.toggleButtonEnabled();\n }\n\n onAddressChange() {\n if (this.hasAddressTouchedTarget) {\n this.addressTouchedTarget.value = 'true';\n }\n this.toggleButtonEnabled();\n }\n\n onAddressInput() {\n if (this.hasAddressTouchedTarget) {\n this.addressTouchedTarget.value = 'true';\n }\n this.toggleButtonEnabled();\n }\n}\n","import ApplicationController from \"./application_controller\";\nimport Sortable from \"sortablejs\";\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.sortable = Sortable.create(this.element, {\n animation: 150,\n handle: \".drag-handle\",\n onEnd: this.updatePosition.bind(this),\n });\n }\n\n updatePosition(event) {\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n \"Sortable#insert_at\",\n event.item.dataset.sgid,\n event.newIndex + 1\n );\n },\n });\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['content'];\n\n toggle(event) {\n event.preventDefault();\n const content = event.currentTarget.closest('.flex').nextElementSibling;\n const openIcon = event.currentTarget\n .closest('div')\n .querySelector('.open-icon');\n const closeIcon = event.currentTarget\n .closest('div')\n .querySelector('.close-icon');\n\n if (content.classList.contains('max-h-0')) {\n content.classList.remove('max-h-0');\n content.classList.add('max-h-screen');\n openIcon.classList.add('hidden');\n closeIcon.classList.remove('hidden');\n } else {\n content.classList.remove('max-h-screen');\n content.classList.add('max-h-0');\n openIcon.classList.remove('hidden');\n closeIcon.classList.add('hidden');\n }\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId,\n price,\n itemName,\n itemId,\n itemVariant,\n quantity,\n subscriptionType,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'begin_checkout',\n userId: +userId,\n user_type: 'prospect',\n ecommerce: {\n items: [\n {\n item_name: itemName,\n item_id: +itemId,\n price: parseFloat(price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_category2: subscriptionType,\n item_variant: +itemVariant,\n item_list_id: 'order_summary',\n item_list_name: 'order summary',\n index: 0,\n quantity: +quantity,\n },\n ],\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId, questionId, questionName, questionCategory, productId,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'med_ed_question_completed',\n userId: +userId,\n question_no: `question_${questionId}`,\n question: questionName,\n question_category: questionCategory,\n product_id: +productId,\n user_type: 'prospect',\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n EVENT_NAME = 'GMT_TRACK_HARD_STOP';\n\n connect() {\n super.connect();\n\n document.addEventListener(this.EVENT_NAME, this.trackEvent.bind(this));\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener(this.EVENT_NAME, this.trackEvent.bind(this));\n }\n\n trackEvent() {\n const { userId } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'med_ed_question_cannot_complete',\n question_no: 'question_0',\n question: 'User Demographics',\n question_category: 'demographics',\n userId: +userId,\n user_type: 'prospect',\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n EVENT_NAME = 'GMT_TRACK_HARD_STOP';\n\n connect() {\n super.connect();\n\n document.addEventListener(this.EVENT_NAME, this.trackEvent.bind(this));\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener(this.EVENT_NAME, this.trackEvent.bind(this));\n }\n\n trackEvent() {\n const {\n userId,\n questionId,\n questionName,\n questionCategory,\n productId,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'med_ed_question_cannot_complete',\n question_no: `question_${questionId}`,\n question: questionName,\n question_category: questionCategory,\n product_id: +productId,\n userId: +userId,\n user_type: 'prospect',\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const { userId, user_type } = this.element.dataset;\n const dataLayerPageViewObj = {\n event: 'login',\n userId: +userId,\n user_type,\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId,\n subscriptionType,\n subscriptionAdjustments,\n quantity,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'select_subscription',\n userId: +userId,\n subscription: subscriptionType,\n dosespermonth: quantity,\n subscription_adjustment: subscriptionAdjustments,\n user_type: 'prospect',\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const { pagePath, pageLocation, pageTitle, userId } = this.element.dataset;\n const dataLayerPageViewObj = {\n 'event': 'pageView',\n 'page_path': pagePath,\n 'page_location': pageLocation,\n 'page_title': pageTitle,\n };\n\n if (userId) {\n dataLayerPageViewObj['userId'] = +userId;\n }\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId,\n price,\n itemName,\n itemId,\n itemVariant,\n quantity,\n subscriptionType,\n orderTotal,\n promoCodeDiscount,\n subscriptionAdjustment,\n promoCode,\n paymentMethod,\n orderId,\n sha256EmailAddress,\n sha256PhoneNumber,\n sha256FirstName,\n sha256LastName,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'purchase',\n userId: +userId,\n user_type: 'patient',\n sha256_email_address: sha256EmailAddress,\n sha256_phone_number: sha256PhoneNumber,\n sha256_first_name: sha256FirstName,\n sha256_last_name: sha256LastName,\n ecommerce: {\n transaction_id: orderId,\n currency: 'USD',\n value: +orderTotal,\n coupon: promoCode,\n coupon_discount: +promoCodeDiscount,\n subscription_adjustment: subscriptionAdjustment,\n shipping_tier: 'Free',\n shipping: 0,\n tax: 0,\n affiliation: 'Rugiet Online Store',\n payment_method: paymentMethod,\n items: [\n {\n item_name: itemName,\n item_id: +itemId,\n price: parseFloat(price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_category2: subscriptionType,\n item_variant: +itemVariant,\n item_list_id: 'shipping_form',\n item_list_name: 'shipping form',\n index: 0,\n quantity: +quantity,\n },\n ],\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId,\n price,\n itemName,\n itemId,\n itemVariant,\n quantity,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'add_to_cart',\n userId: +userId,\n user_type: 'prospect',\n ecommerce: {\n items: [\n {\n item_name: itemName,\n item_id: +itemId,\n price: parseFloat(price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_variant: +itemVariant,\n item_list_id: 'select_your_quantity',\n item_list_name: 'select your quantity',\n index: 0,\n quantity: +quantity,\n },\n ],\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n ITEM_QUESTION_POSITION = 'GTM_MED_ED_QUESTION_STEPS_QUESTION_POSITION';\n\n ITEM_SECTION_POSITION = 'GTM_MED_ED_QUESTION_STEPS_SECTION_POSITION';\n\n connect() {\n super.connect();\n\n if (!this.isSamePage()) this.trackEvent();\n }\n\n isSamePage() {\n const { sectionPosition, questionPosition } = this.element.dataset;\n const { lastSectionPosition, lastQuestionPosition } = this.parseLastPositions();\n\n if (sectionPosition || lastSectionPosition) {\n return +sectionPosition === +lastSectionPosition && +questionPosition === +lastQuestionPosition;\n }\n return +questionPosition === +lastQuestionPosition;\n }\n\n parseLastPositions() {\n let lastSectionPosition = localStorage.getItem(this.ITEM_SECTION_POSITION);\n if (lastSectionPosition) lastSectionPosition = +lastSectionPosition;\n\n let lastQuestionPosition = localStorage.getItem(this.ITEM_QUESTION_POSITION);\n if (lastQuestionPosition) lastQuestionPosition = +lastQuestionPosition;\n\n return { lastSectionPosition, lastQuestionPosition };\n }\n\n stepDirection(sectionPosition, questionPosition) {\n const { lastSectionPosition, lastQuestionPosition } = this.parseLastPositions();\n\n if (!sectionPosition && lastSectionPosition) return 'forward';\n if (sectionPosition > lastSectionPosition) return 'forward';\n if (sectionPosition > lastSectionPosition && questionPosition > lastQuestionPosition) return 'forward';\n if (!sectionPosition && questionPosition > lastQuestionPosition) return 'forward';\n\n return 'backward';\n }\n\n trackEvent() {\n const {\n userId,\n questionId,\n questionName,\n questionCategory,\n productId,\n sectionPosition,\n questionPosition,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: `med_ed_question_steps_${this.stepDirection(+sectionPosition, +questionPosition)}`,\n question_no: `question_${questionId}`,\n question: questionName,\n question_category: questionCategory,\n product_id: +productId,\n userId: +userId,\n user_type: 'prospect',\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n localStorage.setItem(this.ITEM_QUESTION_POSITION, questionPosition);\n localStorage.setItem(this.ITEM_SECTION_POSITION, sectionPosition);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId,\n sha256EmailAddress,\n sha256FirstName,\n sha256LastName,\n } = this.element.dataset;\n const dataLayerPageViewObj = {\n event: 'sign_up',\n userId: +userId,\n user_type: 'prospect',\n sha256_email_address: sha256EmailAddress,\n sha256_first_name: sha256FirstName,\n sha256_last_name: sha256LastName,\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n\n trackEvent() {\n const {\n userId,\n price,\n itemName,\n itemId,\n itemVariant,\n quantity,\n subscriptionType,\n orderTotal,\n promoCodeDiscount,\n subscriptionAdjustment,\n promoCode,\n paymentMethod,\n } = this.element.dataset;\n\n let dataLayerPageViewObj = {\n event: 'add_shipping_info',\n userId: +userId,\n user_type: 'prospect',\n ecommerce: {\n currency: 'USD',\n value: +orderTotal,\n coupon: promoCode,\n coupon_discount: +promoCodeDiscount,\n subscription_adjustment: this.subscriptionAdjustmentNumberLabel(+subscriptionAdjustment),\n shipping_tier: 'Free',\n items: [\n {\n item_name: itemName,\n item_id: +itemId,\n price: parseFloat(price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_category2: subscriptionType,\n item_variant: +itemVariant,\n item_list_id: 'shipping_and_payment_form',\n item_list_name: 'shipping and payment form',\n index: 0,\n quantity: +quantity,\n },\n ],\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n\n dataLayerPageViewObj = {\n event: 'add_payment_info',\n userId: +userId,\n ecommerce: {\n currency: 'USD',\n value: +orderTotal,\n coupon: promoCode,\n coupon_discount: +promoCodeDiscount,\n subscription_adjustment: this.subscriptionAdjustmentNumberLabel(+subscriptionAdjustment),\n payment_method: paymentMethod,\n items: [\n {\n item_name: itemName,\n item_id: +itemId,\n price: parseFloat(price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_category2: subscriptionType,\n item_variant: +itemVariant,\n item_list_id: 'shipping_and_payment_form',\n item_list_name: 'shipping and payment form',\n index: 0,\n quantity: +quantity,\n },\n ],\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n\n subscriptionAdjustmentNumberLabel(amount) {\n const amountNumber = +amount;\n\n if (amount > 0) {\n return `$${amount} Added`;\n } if (amount < 0) {\n return `$${amount} Deducted`;\n }\n return 'None';\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const {\n userId,\n price,\n itemName,\n itemId,\n itemVariant,\n } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'selectItem',\n userId: +userId,\n user_type: 'prospect',\n ecommerce: {\n items: [\n {\n item_name: itemName,\n item_id: +itemId,\n price: parseFloat(price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_variant: +itemVariant,\n item_list_id: 'select_your_product',\n item_list_name: 'select your product',\n index: 0,\n quantity: 1,\n },\n ],\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n const { userId } = this.element.dataset;\n\n const dataLayerPageViewObj = {\n event: 'view_item_list',\n userId: +userId,\n user_type: 'prospect',\n ecommerce: {\n items: this.items(),\n },\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n }\n\n items() {\n const items = JSON.parse(this.element.dataset.items);\n return items.map((item, index) => ({\n item_name: item.name,\n item_id: +item.product_id,\n price: parseFloat(item.price),\n item_brand: 'Rugiet',\n item_category: 'Rugiet Ready',\n item_variant: +item.id,\n item_list_id: 'select_your_quantity',\n item_list_name: 'select your quantity',\n index,\n quantity: 1,\n }));\n }\n}\n","import ApplicationController from '../../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.trackEvent();\n }\n\n trackEvent() {\n try {\n window.zESettings = {\n analytics: false\n };\n window.dataLayer = window.dataLayer || [];\n var EVENTS_TO_SEND = ['Web Widget Opened', 'Web Widget Minimised'];\n zE('webWidget:on', 'userEvent', function (event) {\n if (event.action === event.action.indexOf(EVENTS_TO_SEND) < 0) return;\n\n var dataLayerPageViewObj = {\n 'event': 'Zendesk_Web_Widget',\n 'category': 'Contact Us',\n 'action': event.action\n };\n\n window.dataLayer.push(dataLayerPageViewObj);\n })\n } catch (e) {\n console.log(\"Zendesk Widget Error: \", e);\n }\n }\n}\n","export function scrollToElement(pageElement) {\n let positionX = 0,\n positionY = 0;\n\n while (pageElement != null) {\n positionX += pageElement.offsetLeft;\n positionY += pageElement.offsetTop;\n pageElement = pageElement.offsetParent;\n\n try {\n window.scrollTo({ left: positionX, top: positionY, behavior: 'smooth' });\n } catch (_e) {\n window.scrollTo(positionX, positionY);\n }\n }\n}\n","import ApplicationController from '../../application_controller';\nimport { scrollToElement } from '../../utilities/scrolling';\n\nexport default class extends ApplicationController {\n static targets = [\n 'address1',\n 'address2',\n 'city',\n 'stateId',\n 'zipcode',\n 'form',\n 'submitBtn',\n 'addressToggle',\n ];\n\n validStates = this.stateIdTarget.dataset.validStates;\n\n connect() {\n super.connect();\n this.addStoredFieldValues();\n document.addEventListener('store-checkout-address-rewire', this.rewire.bind(this));\n document.addEventListener('store-checkout-address-validation-bypass', this.bypassValidation.bind(this));\n document.addEventListener('store-checkout-address-validation-enableSubmit', this.enableSubmit.bind(this));\n document.addEventListener('store-checkout-address-validation-display-address-errors', this.displayAddressErrors.bind(this));\n this.addressToggleTarget.addEventListener('change', this.loadAddressForm.bind(this));\n this.addInputEventListeners();\n this.toggleButtonEnabled();\n }\n\n disconnect() {\n super.disconnect();\n document.removeEventListener('store-checkout-address-rewire', this.rewire.bind(this));\n document.removeEventListener('store-checkout-address-validation-bypass', this.bypassValidation.bind(this));\n document.removeEventListener('store-checkout-address-validation-enableSubmit', this.enableSubmit.bind(this));\n document.removeEventListener('store-checkout-address-validation-display-address-errors', this.displayAddressErrors.bind(this));\n this.addressToggleTarget.removeEventListener('change', this.loadAddressForm.bind(this));\n this.removeInputEventListeners();\n delete window.storeCheckoutSkipAddressLookup;\n delete window.storeCheckoutValidatedCurrentValues;\n }\n\n rewire() {\n this.removeInputEventListeners();\n this.addInputEventListeners();\n this.toggleButtonEnabled();\n }\n\n submitForm(event) {\n if (event) event.preventDefault();\n\n if (!this.addressValuesPresent() || window.storeCheckoutSkipAddressLookup) {\n this.formTarget.removeAttribute('data-action');\n this.formTarget.submit();\n } else {\n this.removeBypassedHiddenField();\n this.validateAddress();\n window.storeCheckoutValidatedCurrentValues = true;\n this.address1Target.parentNode.querySelector('p.text-error').innerHTML = '';\n }\n }\n\n addressValuesPresent() {\n return this.address1Target.value &&\n this.cityTarget.value &&\n this.stateIdTarget.value &&\n this.zipcodeTarget.value;\n }\n\n validateAddress() {\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::CheckoutAddressReflex#validate',\n this.address1Target.value,\n this.address2Target.value,\n this.cityTarget.value,\n this.stateIdTarget.value,\n this.zipcodeTarget.value,\n window.storeCheckoutValidatedCurrentValues || false,\n );\n },\n });\n }\n\n loadAddressForm(event) {\n event?.preventDefault();\n this.removeInputEventListeners();\n const { checked } = event.currentTarget;\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::Cart::CheckoutAddressReflex#toggle_address', null, checked);\n },\n });\n this.addInputEventListeners();\n }\n\n bypassValidation(event) {\n const { logSkip } = event.detail;\n if (logSkip) this.addBypassedHiddenField();\n window.storeCheckoutSkipAddressLookup = true;\n this.submitForm();\n }\n\n addBypassedHiddenField() {\n const input = document.createElement('input');\n input.setAttribute('type', 'hidden');\n input.setAttribute('name', 'checkout_form[skip_address_lookup]');\n input.setAttribute('value', 'true');\n input.setAttribute('id', 'skip_address_lookup_field');\n this.formTarget.appendChild(input);\n }\n\n removeBypassedHiddenField() {\n const hiddenField = document.getElementById('skip_address_lookup_field');\n if (hiddenField) hiddenField.remove();\n }\n\n enableSubmit() {\n scrollToElement(this.address1Target.parentNode);\n this.toggleButtonEnabled();\n }\n\n clearRepeatAddressValidation() {\n window.storeCheckoutValidatedCurrentValues = false;\n this.toggleButtonEnabled();\n }\n\n formInputs() {\n return Array.from(this.formTarget.querySelectorAll('input[type=text]:not(#store_checkout_form_ship_address_attributes_address2, #bill_address_attributes_address2), option:checked, select'));\n }\n\n toggleButtonEnabled() {\n if (this.formInputs().every((input) => input.value) && this.serviceableStateSelected()) {\n this.enableSubmitButton();\n } else {\n this.disableSubmitButton();\n }\n }\n\n enableSubmitButton() {\n this.submitBtnTarget.removeAttribute('disabled');\n this.submitBtnTarget.classList.remove('cursor-not-allowed');\n }\n\n disableSubmitButton() {\n this.submitBtnTarget.setAttribute('disabled', 'disabled');\n this.submitBtnTarget.classList.add('cursor-not-allowed');\n }\n\n addInputEventListeners() {\n this.stateIdTarget.addEventListener('change', this.validateServiceableState.bind(this));\n this.formInputs().forEach((input) => {\n input.addEventListener('change', this.toggleButtonEnabled.bind(this));\n input.addEventListener('input', this.toggleButtonEnabled.bind(this));\n });\n }\n\n removeInputEventListeners() {\n this.formInputs().forEach((input) => {\n input.removeEventListener('change', this.toggleButtonEnabled.bind(this));\n input.removeEventListener('input', this.toggleButtonEnabled.bind(this));\n });\n this.stateIdTarget.removeEventListener('change', this.validateServiceableState.bind(this));\n }\n\n storeFieldValues(event) {\n const element = event.currentTarget;\n localStorage.setItem(element.id, element.value);\n }\n\n addStoredFieldValues() {\n this.formFieldsForLocalstorage().forEach((target) => {\n const value = localStorage.getItem(target.id);\n /* eslint no-param-reassign: [\"error\", { \"props\": false }] */\n if (value) target.value = value;\n });\n }\n\n formFieldsForLocalstorage() {\n return [\n this.address1Target,\n this.address2Target,\n this.cityTarget,\n this.zipcodeTarget,\n this.stateIdTarget,\n ];\n }\n\n displayAddressErrors(event) {\n const parentOfFieldElement = this.address1Target.parentNode;\n const { errorMessage } = event.detail;\n\n scrollToElement(parentOfFieldElement);\n parentOfFieldElement.querySelector('p.text-error').innerHTML = errorMessage;\n }\n\n validateServiceableState() {\n if (this.serviceableStateSelected()) {\n this.toggleButtonEnabled();\n } else {\n this.disableSubmitButton();\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::Cart::CheckoutAddress#unserviceable_state');\n },\n });\n }\n }\n\n serviceableStateSelected() {\n if (!this.stateIdTarget.value) return false;\n\n const { validStates } = this.stateIdTarget.dataset;\n return validStates.includes(this.stateIdTarget.value);\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.removeStoredFieldValues();\n $('#store-container').removeClass('px-[25px]');\n $('.checkout-progress').addClass('mx-auto mobile:mx-0 w-[316px] mobile:w-full');\n $('.checkout-progress__bar').addClass('px-[25px] mobile:px-0');\n }\n\n removeStoredFieldValues() {\n [\n 'checkout_form_ship_address_attributes_address1',\n 'checkout_form_ship_address_attributes_address2',\n 'checkout_form_ship_address_attributes_city',\n 'checkout_form_ship_address_attributes_zipcode',\n ].forEach((fieldId) => {\n if (localStorage.getItem(fieldId)) {\n localStorage.removeItem(fieldId);\n }\n });\n }\n}\n","// eslint-disable-next-line no-unused-vars\nimport tooltipster from 'tooltipster';\nimport ApplicationController from '../../application_controller';\nimport {\n handlePromoError,\n handlePromoSuccess,\n} from '../../utilities/order_summary_promo_application';\n\nexport default class extends ApplicationController {\n static targets = [\n 'variant',\n 'subscriptionType',\n 'packsPerMonth',\n 'monthsCount',\n 'promoCodeContainer',\n 'promoCode',\n 'consent',\n 'agreementBtn',\n 'otpContainer',\n 'otpToggleArrow',\n ];\n\n beforeReflex() {\n document.body.classList.add('wait');\n const spinner = document.querySelector('.spinner');\n spinner.classList.remove('invisible', 'opacity-0');\n spinner.classList.add('opacity-90', 'bg-white');\n }\n\n afterReflex() {\n document.body.classList.remove('wait');\n const spinner = document.querySelector('.spinner');\n spinner.classList.add('invisible', 'opacity-0');\n }\n\n connect() {\n super.connect();\n this.handleTooltips();\n\n document.addEventListener('promo-update-success', this.handlePromoSuccess);\n document.addEventListener('promo-update-error', this.handlePromoError);\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener(\n 'promo-update-success',\n this.handlePromoSuccess,\n );\n document.removeEventListener('promo-update-error', this.handlePromoError);\n }\n\n toggleOneTimePurchase() {\n // Disable showing/hiding of OTP sub type if OTP is selected\n if (\n this.otpContainerTarget.querySelector(\n 'input[name=\"subscription_type_id\"]',\n ).checked\n ) {\n return;\n }\n\n this.otpContainerTarget.classList.toggle('overflow-hidden');\n\n if (this.otpContainerTarget.style.height === '0px') {\n this.otpContainerTarget.style.height = '125px';\n } else {\n this.otpContainerTarget.style.height = '0px';\n }\n this.otpToggleArrowTarget.classList.toggle('rotate-180');\n }\n\n toggleRefundSummary() {\n $('.refund-summary').slideToggle();\n }\n\n selectSubType(event) {\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#sub_type_update',\n +event.currentTarget.value,\n );\n },\n });\n }\n\n checkSub(e) {\n e.preventDefault();\n const { monthsCount } = e.target.dataset;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::Prepayment#show',\n +monthsCount,\n +e.target.dataset.orderId,\n );\n },\n });\n }\n\n consentChecked() {\n this.toggleProceedBtn();\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#toggle_consent_accepted',\n this.consentTarget.checked,\n );\n },\n });\n }\n\n // This is used in conjunction with the Up Sell Modal to change the subscription type to quarterly\n changeSub(e, quarterlySubId = 2) {\n e.preventDefault();\n this.element.modal.closeModal();\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#sub_type_update',\n quarterlySubId,\n );\n },\n });\n }\n\n // TODO: Deprecate. Not used anywhere?\n // https://www.heteroclito.fr/modules/tooltipster/\n handleTooltips() {\n const isMobile = window.matchMedia('(max-width: 767px)').matches;\n\n // dose strength tooltip\n $('.dose-tooltip:not(\".tooltipstered\")').tooltipster({\n theme: 'rugiet',\n position: isMobile ? 'top' : 'right',\n content: $(\n \"

Cost per troche.

Rugiet Ready recommends starting
with half a troche to see if that's
enough to get the job done.

\",\n ),\n trigger: 'custom',\n triggerOpen: {\n mouseenter: true,\n touchstart: true,\n },\n triggerClose: {\n mouseleave: true,\n tap: true,\n },\n });\n // packs per month tooltip\n $('.ppm-tooltip:not(\".tooltipstered\")').tooltipster({\n theme: 'rugiet',\n position: isMobile ? 'top' : 'right',\n content: $(\n \"

Cost per month.

You'll be billed for the full price of
your plan and the number of doses
and shipped, whether it's a 30-Day Plan
(Monthly) or 90-Day plan (Quarterly).

\",\n ),\n trigger: 'custom',\n triggerOpen: {\n mouseenter: true,\n touchstart: true,\n },\n triggerClose: {\n mouseleave: true,\n tap: true,\n },\n });\n }\n\n variantUpdate() {\n const variantId = this.variantTarget.value;\n const subTypeId = this.subscriptionTypeTarget.value;\n const packsPerMonth = this.packsPerMonthTarget.value;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#variant_update',\n +variantId,\n +subTypeId,\n +packsPerMonth,\n );\n },\n });\n }\n\n promoUpdate(e) {\n e.preventDefault();\n const promoCode = this.promoCodeTarget.value;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::Cart::OrderSummary#promo_update', promoCode);\n },\n });\n }\n\n handlePromoSuccess(event) {\n const { result } = event.detail;\n const promoTextField = document.getElementById('promotion_promo_code');\n const resultTag = document.getElementById('promo-code-result');\n const promoApplyBtn = document.getElementById('promo-apply-btn');\n handlePromoSuccess(result, promoTextField, resultTag, promoApplyBtn);\n }\n\n handlePromoError(event) {\n const { result } = event.detail;\n const resultTag = document.getElementById('promo-code-result');\n const promoApplyBtn = document.getElementById('promo-apply-btn');\n handlePromoError(result, resultTag, promoApplyBtn);\n }\n\n togglePromoCode(element) {\n element.preventDefault();\n this.promoCodeContainerTarget.classList.toggle('hidden');\n this.promoCodeContainerTarget.classList.toggle('opacity-0');\n this.promoCodeContainerTarget.classList.toggle('invisible');\n }\n\n toggleProceedBtn() {\n const btn = this.agreementBtnTarget;\n\n if (this.consentTarget.checked) {\n btn.classList.remove('bg-gray-200', 'cursor-not-allowed');\n btn.classList.add('bg-store-amberblack', 'hover:bg-store-slate-950', 'text-white');\n btn.removeAttribute('disabled');\n } else {\n btn.classList.remove('bg-store-amberblack', 'hover:bg-store-slate-950', 'text-white');\n btn.classList.add('bg-gray-200', 'cursor-not-allowed');\n btn.setAttribute('disabled', 'disabled');\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n\n initialize() {\n if (this.element.dataset.orderCompleted === 'true') {\n window.location = '/user_verifications';\n }\n }\n}\n","import ApplicationController from '../application_controller';\nimport { showLoadingSpinner } from '../utilities/loading_spinner';\n\nexport default class extends ApplicationController {\n static targets = ['metforminForm', 'accordion', 'multiFieldForm'];\n\n connect() {\n super.connect();\n\n this.submitMetforminForm();\n this.initializeAccordion();\n this.enableFormSubmitOnAllFieldsFilled();\n document.addEventListener('stimulus-reflex:after', (event) => {\n if (event.detail.reflex === 'Store::Cart::OrderSummary#promo_update') this.initializeAccordion();\n });\n }\n\n disconnect() {\n super.disconnect();\n }\n\n submitMetforminForm() {\n if (!this.hasMetforminFormTarget) return;\n\n showLoadingSpinner();\n this.metforminFormTarget.submit();\n }\n\n initializeAccordion() {\n if (!this.hasAccordionTarget) return;\n\n const $el = $(this.accordionTarget);\n $el.accordion({\n active: false,\n collapsible: true,\n heightStyle: 'content',\n beforeActivate: function(_event, ui) {\n const oldHeader = ui.oldHeader[0];\n const newHeader = ui.newHeader[0];\n if (oldHeader) oldHeader.querySelector('img')?.classList?.add('rotate-180');\n if (newHeader) newHeader.querySelector('img')?.classList?.remove('rotate-180');\n }\n });\n $el.accordion('refresh');\n }\n\n enableFormSubmit(event) {\n const submit = event.currentTarget.closest('form').querySelector('.store-button, input[type=submit]');\n if (submit && submit.disabled) submit.removeAttribute('disabled');\n }\n\n disableFormSubmit(event) {\n const submit = event.currentTarget.closest('form').querySelector('.store-button, input[type=submit]');\n if (submit && !submit.disabled) submit.setAttribute('disabled', 'disabled')\n }\n\n enableFormSubmitOnAllFieldsFilled() {\n if (!this.hasMultiFieldFormTarget) return;\n\n const form = this.multiFieldFormTarget;\n const requiredFields = form.querySelectorAll('input[required]');\n const allFieldsFilled = () => {\n return Array.from(requiredFields)\n .filter(input => {\n // Exclude hidden fields based on type, display, or visibility\n return (\n input.type !== 'hidden' &&\n window.getComputedStyle(input).display !== 'none' &&\n window.getComputedStyle(input).visibility !== 'hidden'\n );\n })\n .every(input => {\n if (input.type === 'submit' || input.type === 'button') return true;\n if (input.type === 'checkbox' || input.type === 'radio') {\n const group = form.querySelectorAll(`input[name=\"${input.name}\"]`);\n return Array.from(group).some(field => field.checked);\n }\n return input.value.trim() !== '';\n });\n };\n const toggleSubmitButton = (event) => {\n allFieldsFilled() ? this.enableFormSubmit(event) : this.disableFormSubmit(event);\n };\n\n form.addEventListener('input', toggleSubmitButton);\n }\n\n consentToggled(event) {\n event.currentTarget.checked ? this.enableFormSubmit(event) : this.disableFormSubmit(event);\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#toggle_consent_accepted',\n event.currentTarget.checked,\n );\n },\n });\n }\n\n clearFormQueryParams(event) {\n const form = event.currentTarget.closest('form');\n if (!form) return;\n\n event.preventDefault();\n window.location.href = form.action;\n }\n\n showLoadingSpinner() {\n showLoadingSpinner();\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n this.waitForSrc(() => {\n this.initKoreAi();\n });\n }\n\n initKoreAi() {\n const jwt = this.data.get('jwt');\n if (jwt) {\n KoreSDK.chatConfig.botOptions.botInfo.customData = {\n jwt: `${jwt}`,\n };\n }\n KoreSDK.chatConfig.allowLocation = false;\n KoreSDK.show(KoreSDK.chatConfig);\n }\n\n waitForSrc(callback) {\n console.log('ran');\n if (window.KoreSDK) {\n callback();\n } else {\n setTimeout(() => {\n this.waitForSrc(callback);\n }, 50);\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\"yesInput\", \"noInput\", \"commentArea\", \"commentContainer\"]\n\n connect() {\n super.connect();\n }\n\n toggle() {\n if (this.yesInputTarget.checked) {\n this.commentContainerTarget.classList.remove('hidden')\n this.commentContainerTarget.classList.add('flex')\n this.commentAreaTarget.disabled = false\n this.commentAreaTarget.required = true\n } else {\n this.commentContainerTarget.classList.add('hidden')\n this.commentContainerTarget.classList.remove('flex')\n this.commentAreaTarget.disabled = true\n this.commentAreaTarget.required = false\n }\n }\n}\n","/* global Persona */\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport cableReady from 'cable_ready';\nimport ApplicationController from '../../application_controller';\nimport consumer from '../../../channels/consumer';\nimport {\n hideLoadingSpinner,\n showLoadingSpinner,\n} from '../../utilities/loading_spinner';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n if (!(this.data.get('can-update') === 'true')) return;\n\n consumer.subscriptions.create(\n 'Store::MembersPortal::IdVerificationChannel',\n {\n received: (data) => {\n if (data.cableReady) cableReady.perform(data.operations);\n },\n },\n );\n\n document.addEventListener(\n 'completeNewID',\n this.completeIdVerification.bind(this),\n );\n }\n\n // https://docs.withpersona.com/docs/quickstart-embedded-flow\n // https://docs.withpersona.com/docs/embedded-flow-event-handling\n // https://docs.withpersona.com/docs/embedded-flow-parameters\n initPersona(event) {\n event.preventDefault();\n\n if (!(this.data.get('can-update') === 'true')) return;\n showLoadingSpinner();\n\n const client = new Persona.Client({\n templateId: this.data.get('persona-template-id'),\n environmentId: this.data.get('persona-environment-id'),\n themeSetId: this.data.get('persona-theme-set-id') || null,\n fields: {\n brand: this.data.get('persona-brand-name') || null,\n },\n referenceId: this.data.get('user-email'),\n onReady: () => client.open(),\n onCancel: () => hideLoadingSpinner(),\n onEvent: (name, { inquiryId }) => {\n if (name === 'start') {\n this.updateUserInquiryId(inquiryId);\n }\n },\n onComplete: ({ status }) => {\n if (status === 'failed') {\n $.get('/id_verifications/verification_failed');\n }\n hideLoadingSpinner();\n },\n });\n }\n\n updateUserInquiryId(inquiryId) {\n $.ajax({\n url: '/id_verifications',\n type: 'PUT',\n beforeSend(xhr) {\n xhr.setRequestHeader(\n 'X-CSRF-Token',\n $('meta[name=\"csrf-token\"]').attr('content'),\n );\n },\n data: `persona_inquiry_id=${inquiryId}`,\n });\n }\n\n completeIdVerification(event) {\n const image = document.getElementById('members-portal-profile-image');\n const downloadingImage = new Image();\n\n downloadingImage.onload = function () {\n image.src = this.src;\n hideLoadingSpinner();\n };\n\n downloadingImage.src = event.detail.imageUrl;\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['sendTo', 'phiMessage', 'fileInput', 'imgPreviewContainer', 'fileInputLabel'];\n\n connect() {\n super.connect();\n if (this.hasSendToTarget) {\n this.sendToTarget.addEventListener('change', this.togglePhiMessage.bind(this));\n this.sendToTarget.addEventListener('change', this.toggleFileUpload.bind(this));\n }\n }\n\n disconnect() {\n super.disconnect();\n if (this.hasSendToTarget) {\n this.sendToTarget.removeEventListener('change', this.togglePhiMessage.bind(this));\n this.sendToTarget.removeEventListener('change', this.toggleFileUpload.bind(this));\n }\n }\n\n togglePhiMessage() {\n if (+this.sendToTarget.value === 2) {\n this.phiMessageTarget.classList.add('hidden');\n } else {\n this.phiMessageTarget.classList.remove('hidden');\n }\n }\n\n toggleFileUpload() {\n const fileUploadContainer = document.getElementById('file-upload-container');\n if (!fileUploadContainer) return;\n\n if (+this.sendToTarget.value === 2) {\n fileUploadContainer.style.display = 'block';\n this.fileInputTarget.disabled = false;\n } else {\n fileUploadContainer.style.display = 'none';\n this.fileInputTarget.disabled = true;\n }\n }\n\n previewFiles() {\n const { files } = this.fileInputTarget;\n if (files.length === 0) return;\n\n this.imgPreviewContainerTarget.classList.remove('hidden');\n\n Array.from(files).forEach((file) => {\n const reader = new FileReader();\n reader.onload = () => {\n this.buildImagePreview(file, reader);\n };\n reader.onerror = (e) => {\n this.showToast({\n text: `Error reading file: ${e.toString()}`,\n type: 'error',\n duration: 5000,\n });\n };\n reader.readAsDataURL(file);\n });\n\n this.imgPreviewContainerTarget.closest('.collapsible-content').style.maxHeight = '600px';\n }\n\n buildImagePreview(file, reader) {\n const [thumbnailContainer, fallbackContainer, image] = this.createThumbnail(file, reader);\n const removeIcon = this.addRemoveIcon(file, thumbnailContainer);\n\n if (image) thumbnailContainer.appendChild(image);\n if (fallbackContainer) thumbnailContainer.appendChild(fallbackContainer);\n thumbnailContainer.appendChild(removeIcon);\n this.imgPreviewContainerTarget.appendChild(thumbnailContainer);\n }\n\n createThumbnail(file, reader) {\n let fallbackContainer;\n let image;\n const div = document.createElement('div');\n div.className = 'thumbnail-container flex flex-col items-center';\n\n if (file.type === 'image/heic' || file.type === 'image/heif') {\n fallbackContainer = document.createElement('div');\n fallbackContainer.className = 'border border-black rounded-md col-span-1 flex align-center items-center h-[60px] md:h-[80px] w-[60px] md:w-[80px]';\n fallbackContainer.innerHTML = \"

Preview not Available

\";\n } else {\n image = document.createElement('img');\n image.className = 'p-1 border border-black rounded-md col-span-1 flex place-self-center h-[60px] md:h-[80px] w-[60px] md:w-[80px]';\n image.src = reader.result;\n }\n\n return [div, fallbackContainer, image];\n }\n\n addRemoveIcon(file, thumbnailContainer) {\n const removeIcon = document.createElement('i');\n removeIcon.className = 'hover:cursor-pointer fas fa-times-circle block text-xl mt-px -my-1';\n removeIcon.onclick = () => {\n this.removeFileFromFileList(file);\n thumbnailContainer.remove();\n this.updateAfterRemoval();\n };\n\n return removeIcon;\n }\n\n updateAfterRemoval() {\n if (this.imgPreviewContainerTarget.querySelector('.thumbnail-container')) return;\n\n this.imgPreviewContainerTarget.classList.add('hidden');\n this.fileInputLabelTarget.classList.remove('hidden');\n this.imgPreviewContainerTarget.closest('.collapsible-content').style.maxHeight = '600px';\n }\n\n validateFiles() {\n const { files } = this.fileInputTarget;\n const allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'heic', 'heif'];\n const sizeLimit = 5 * 1024 * 1024; // 5 megabytes\n\n if (files.length > 10) {\n this.showToast({\n text: 'Please select 10 or fewer files.',\n type: 'error',\n duration: 5000,\n });\n this.clearFileInputValue();\n return;\n }\n\n const invalidFile = Array.from(files).find((file) => {\n const fileExtension = file.name.split('.').pop().toLowerCase();\n const isInvalidType = !allowedExtensions.includes(fileExtension);\n const isOversized = file.size > sizeLimit;\n\n if (isInvalidType) {\n this.showToast({\n text: 'One of your files has an invalid file type. Please select files with a valid type.',\n type: 'error',\n duration: 5000,\n });\n } else if (isOversized) {\n this.showToast({\n text: 'One of your files exceeds 5 MB in size. Please select files smaller than 5 MB.',\n type: 'error',\n duration: 5000,\n });\n }\n\n return isInvalidType || isOversized;\n });\n\n if (invalidFile) this.clearFileInputValue();\n }\n\n clearFileInputValue() {\n this.fileInputTarget.value = '';\n }\n\n removeFileFromFileList(fileToRemove) {\n const dt = new DataTransfer();\n const { files } = this.fileInputTarget;\n\n Array.from(files).forEach((file) => {\n if (file.name !== fileToRemove.name) {\n dt.items.add(file);\n }\n });\n\n this.fileInputTarget.files = dt.files;\n }\n\n removeFilePreviews() {\n this.imgPreviewContainerTarget.querySelectorAll('.thumbnail-container').forEach((thumbnail) => thumbnail.remove());\n this.imgPreviewContainerTarget.classList.add('hidden');\n if (this.fileInputTarget.files.length) this.fileInputLabelTarget.classList.add('hidden');\n }\n\n toggleCollapse(event) {\n const content = event.currentTarget.parentElement.querySelector('.collapsible-content');\n const chevron = event.currentTarget.querySelector('img');\n\n if (content.classList.contains('expanded')) {\n content.style.maxHeight = '0';\n } else {\n content.style.maxHeight = `${content.scrollHeight}px`;\n }\n\n chevron.classList.toggle('rotate-180');\n content.classList.toggle('expanded');\n }\n\n promoUpdate() {\n const promoCode = document.getElementById('promo_code').value;\n if (!!promoCode) {\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::MembersPortal::PromoUpdateReflex#update', promoCode);\n },\n });\n }\n }\n\n toggleWeightHistory() {\n document.querySelectorAll('.card.toggle-target').forEach(el => el.classList.toggle('!hidden'));\n }\n}\n","import ApplicationController from \"../../application_controller\";\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n\n initialize() {\n $(this.element).select2({\n templateSelection: this.formatState,\n minimumResultsForSearch: Infinity,\n });\n }\n\n formatState(state) {\n if (!state.id) {\n return state.text;\n }\n\n if (window.location.pathname !== state.id) {\n window.location = state.id;\n }\n\n const $state = $(\n ''\n );\n\n $state.find(\"span\").text(state.text);\n\n return $state;\n }\n}\n","import ApplicationController from '../../application_controller';\nimport { hideLoadingSpinner, showLoadingSpinner } from '../../utilities/loading_spinner';\nimport { handlePromoSuccess, handlePromoError } from '../../utilities/order_summary_promo_application';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n\n document.addEventListener('promo-update-success', this.handlePromoSuccess);\n document.addEventListener('promo-update-error', this.handlePromoError);\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener('promo-update-success', this.handlePromoSuccess);\n document.removeEventListener('promo-update-error', this.handlePromoError);\n }\n\n orderMore(event) {\n event.preventDefault();\n showLoadingSpinner();\n this.stimulate('Store::MembersPortal::OrderNow#set_order_now_details').then(hideLoadingSpinner);\n }\n\n confirmOrderMore(event) {\n event.preventDefault();\n event.currentTarget.style = 'pointer-events: none;';\n event.currentTarget.classList.add('bg-gray-light');\n event.target.textContent = 'Processing...';\n this.stimulate('Store::MembersPortal::OrderNow#set_order_now_details');\n }\n\n handlePromoSuccess(event) {\n const { result } = event.detail;\n const promoTextField = document.getElementById('promo_code');\n const resultTag = document.getElementById('promo-code-result');\n handlePromoSuccess(result, promoTextField, resultTag);\n }\n\n handlePromoError(event) {\n const { result } = event.detail;\n const resultTag = document.getElementById('promo-code-result');\n handlePromoError(result, resultTag);\n }\n}\n","import ApplicationController from \"../../application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\"imageContainer\", \"toggleButton\", \"smsMessage\"];\n\n connect() {\n super.connect();\n }\n\n disconnect() {\n if (!this.imageContainerTarget.classList.contains(\"invisible\")) {\n this.toggleId();\n }\n }\n\n smsMessageTargetConnected() {\n setTimeout(() => {\n $(this.smsMessageTarget).remove();\n }, 2000);\n }\n\n toggleId() {\n this.imageContainerTarget.classList.toggle(\"invisible\");\n this.imageContainerTarget.classList.toggle(\"h-0\");\n this.imageContainerTarget.classList.toggle(\"opacity-0\");\n this.imageContainerTarget.classList.toggle(\"scale-0\");\n this.toggleButtonText();\n }\n\n toggleButtonText() {\n const buttonText = this.toggleButtonTarget.innerText.toLowerCase();\n\n if (buttonText.includes(\"show\")) {\n this.toggleButtonTarget.innerText = \"Hide ID\";\n } else {\n this.toggleButtonTarget.innerText = \"Show ID\";\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['fill', 'currentstep', 'tooltip', 'success', 'fail'];\n\n // Check if progress bar has a failure step\n HAS_FAILED = false;\n\n // Progress bar can be default or refill\n TYPE = $(this.currentstepTarget).data('type');\n\n // Steps for the regular progress bar\n PROGRESS_BAR_STEPS = {\n 1: {\n title: 'Order Placed',\n tooltip: '',\n display: true,\n },\n 2: {\n title: 'Dr Review',\n tooltip:\n 'Your doctor is reviewing your medical questionnaire. Please check your secure inbox for any messages from your doctor.',\n display: true,\n },\n 3: {\n title: 'Rx Approved',\n tooltip:\n 'Your doctor has approved your prescription. Please check your secure inbox for any messages from your doctor.',\n display: true,\n },\n 4: {\n title: 'RX Approved & Filed in Rx',\n tooltip: '',\n display: false,\n },\n 5: {\n title: 'Order Filled & Shipped',\n tooltip:\n 'Shipping information has been sent to you. Please check your secure inbox for any messages from your doctor.',\n display: true,\n },\n 6: {\n title: 'Delivered',\n tooltip:\n 'Your order has been delivered. Tracking number is available on the My Orders page.',\n display: true,\n },\n };\n\n // Steps for the refill progress bar\n REFILL_PROGRESS_BAR_STEPS = {\n 1: {\n title: 'Order Processed',\n tooltip: '',\n display: true,\n },\n 2: {\n title: 'Rx Approved',\n tooltip:\n 'Your doctor has authorized your prescription. Your medication will now be filled and shipped to you.',\n display: true,\n },\n 3: {\n title: 'Order Filled & Shipped',\n tooltip:\n 'Your order has been shipped. Tracking number is available on the My Orders page.',\n display: true,\n },\n 4: {\n title: 'Delivered',\n tooltip:\n 'Click Order More or Start Subscription to receive a new order.\"',\n display: true,\n },\n };\n\n // Errors that are displayed on the progress bar\n ERRORS = {\n 7: {\n title: 'Rx Discontinued',\n tooltip: 'Your doctor has discontinued your prescription.',\n },\n 8: {\n title: 'Rx Declined',\n tooltip:\n 'Your doctor was unable to approve your order request. Please check your secure inbox for details. Your credit card will not be charged and your pre-authorized hold will be released.',\n },\n 9: {\n title: 'Not Delivered',\n tooltip:\n 'Your order was not delivered. Please review your tracking number which is available on the My Orders page. For any questions or inquiries, please reach out to customer care for assistance.',\n },\n 10: {\n title: 'Order Cancelled',\n tooltip: '',\n },\n 11: {\n title: 'Payment Failed',\n tooltip: '',\n },\n };\n\n connect() {\n super.connect();\n }\n\n initialize() {\n this.setupProgressBar();\n this.initTooltips();\n }\n\n disconnect() {\n $('.progress-bar__step').remove();\n }\n\n initTooltips() {\n $(this.tooltipTargets).on('mouseenter', (event) => {\n event.preventDefault();\n\n if (!event.target.dataset.title.length) return;\n\n const tooltip = $(\n `
${event.target.dataset.title}
`,\n );\n\n $(event.target.parentNode).append(tooltip);\n });\n\n $(this.tooltipTargets).on('mouseleave', (event) => {\n $(event.target.parentNode).find('.progress-bar__tooltip').remove();\n });\n }\n\n /*\n Create progress bar steps depending on type of progress bar\n Also adds any error state if needed.\n */\n setupProgressBar() {\n const currentstep = +$(this.currentstepTarget).val();\n\n let completedSteps = 0;\n\n const refillSteps = Array.from(\n Array(Object.keys(this.REFILL_PROGRESS_BAR_STEPS).length),\n (_, i) => i + 1,\n );\n\n const defaultSteps = Array.from(\n Array(Object.keys(this.PROGRESS_BAR_STEPS).length),\n (_, i) => i + 1,\n );\n\n if (this.TYPE === 'default') {\n completedSteps = defaultSteps;\n } else {\n completedSteps = refillSteps;\n }\n\n completedSteps.forEach((step) => {\n if (this.ERRORS[currentstep]?.title === 'Not Delivered' && step === 4) {\n this.appendError(currentstep);\n this.HAS_FAILED = true;\n } else if (\n (this.ERRORS[currentstep]?.title === 'Order Cancelled' ||\n this.ERRORS[currentstep]?.title === 'Payment Failed') &&\n step === 1\n ) {\n this.appendError(currentstep);\n this.HAS_FAILED = true;\n } else if (\n (this.ERRORS[currentstep]?.title === 'Rx Declined' ||\n this.ERRORS[currentstep]?.title === 'Rx Discontinued') &&\n step === 2\n ) {\n this.appendError(currentstep);\n this.HAS_FAILED = true;\n } else {\n this.addProgressBarStep(completedSteps, currentstep, step);\n }\n });\n }\n\n /*\n Add a step to the progress bar\n Adds blue fill to the progress bar if the step is completed\n Adds a half filled blue fill if the step is current one\n */\n addProgressBarStep(completedSteps, currentstep, step) {\n const foundStep =\n this.TYPE === 'refill'\n ? this.REFILL_PROGRESS_BAR_STEPS[step]\n : this.PROGRESS_BAR_STEPS[step];\n\n if (!foundStep.display) return;\n\n const stepDiv = $(\n `

${foundStep.title}

`,\n );\n\n $(this.fillTarget).append(stepDiv);\n\n if (currentstep >= step && !this.HAS_FAILED) {\n const completed = $('
');\n\n stepDiv.append(completed);\n\n const isDelivered =\n (this.TYPE === 'default' && step === 6) ||\n (this.TYPE === 'refill' && step === 4);\n\n if (step === currentstep && !isDelivered) {\n completed.addClass('completed halfway');\n } else {\n completed.addClass('completed');\n }\n\n this.appendCheck(stepDiv, 'success', step);\n }\n }\n\n // Appends error icon to the progress bar\n appendError(currentstep) {\n const stepDiv = $(\n `

${this.ERRORS[currentstep].title}

`,\n );\n\n $(this.fillTarget).append(stepDiv);\n\n const completed = $('
');\n\n stepDiv.append(completed);\n\n completed.addClass('completed halfway');\n\n this.appendCheck(stepDiv, 'error', currentstep);\n }\n\n // Appends check icon to the progress bar\n appendCheck(div, type, step) {\n const image = $(\"\");\n const success = this.successTarget.dataset.asset;\n const fail = this.failTarget.dataset.asset;\n\n let foundStep =\n this.TYPE === 'refill'\n ? this.REFILL_PROGRESS_BAR_STEPS[step]\n : this.PROGRESS_BAR_STEPS[step];\n\n if (type === 'error') {\n image.attr('src', fail);\n foundStep = this.ERRORS[step];\n } else {\n image.attr('src', success);\n }\n\n image.attr('data-store--members-portal--progress-bar-target', 'tooltip');\n\n $(image).attr('data-title', foundStep.tooltip);\n\n div.append(image);\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = [];\n\n connect() {\n super.connect();\n\n this.showReactivatedModal();\n this.showChangeSubscriptionModal();\n }\n\n showReactivatedModal() {\n const reactivated = document.getElementById('reactivated');\n if (reactivated?.value !== 'true') return;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::MembersPortal::ReactivatedReflex#set_reactivated_details');\n },\n });\n }\n\n showChangeSubscriptionModal() {\n const skipAMonth = document.getElementById('subscription_skip_a_month');\n if (skipAMonth?.value !== 'true') return;\n\n const { subscriptionId, variantId } = skipAMonth.dataset;\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::MembersPortal::ChangeSubscription#set_change_subscription_details', +subscriptionId, +variantId)\n .then(() => document.getElementById('store_subscriptions_subscription_subscription_type_id_skip').click());\n },\n });\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['menu'];\n\n connect() {\n if (this.hasMenuTarget) {\n this.menuTarget.classList.add('-translate-x-full');\n }\n }\n\n toggle() {\n if (this.menuTarget.classList.contains('-translate-x-full')) {\n this.menuTarget.classList.remove('-translate-x-full', 'opacity-0');\n this.menuTarget.classList.add('translate-x-0', 'opacity-100');\n } else {\n this.menuTarget.classList.remove('translate-x-0', 'opacity-100');\n this.menuTarget.classList.add('-translate-x-full', 'opacity-0');\n }\n }\n}\n","/* eslint-disable no-restricted-globals */\n/* eslint-disable no-alert */\n/* eslint-disable no-param-reassign */\n\nimport ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n removeFile(event) {\n event.preventDefault();\n event.stopPropagation();\n if (confirm('Are you sure you want to delete this file?') === false) return;\n\n const { dataset } = event.currentTarget;\n const { entryId } = dataset;\n const attachmentId = dataset.fileId;\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::Questionnaires::FileUpload#remove_file', entryId, attachmentId);\n },\n });\n event.currentTarget.closest('li.image_item').remove();\n if (document.querySelector('li.image_item') !== null) return;\n\n document.dispatchEvent(new Event('disable-form-submit-arrow'));\n }\n\n filesSelected(event) {\n const { files } = event.target;\n\n if (files.length > 0 && files.length <= 10) {\n for (let i = 0; i < files.length; i += 1) {\n const file = files[i];\n\n if (file.size <= 5 * 1024 * 1024) {\n if (/image\\/.*/.test(file.type)) {\n document.dispatchEvent(new Event('enable-form-submit-arrow'));\n } else {\n this.showToast({\n text: 'One of your files has an invalid file type, please select files with a valid type.',\n type: 'error',\n duration: 5000,\n });\n event.target.value = '';\n document.dispatchEvent(new Event('disable-form-submit-arrow'));\n break;\n }\n } else {\n this.showToast({\n text: 'One of your files exceeds 5 MB in size, please choose files smaller than 5 MB.',\n type: 'error',\n duration: 5000,\n });\n event.target.value = '';\n document.dispatchEvent(new Event('disable-form-submit-arrow'));\n break;\n }\n }\n } else {\n this.showToast({\n text: 'Please select 10 or fewer files.',\n type: 'error',\n duration: 5000,\n });\n event.target.value = '';\n document.dispatchEvent(new Event('disable-form-submit-arrow'));\n }\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n document.addEventListener('stimulus-reflex:halted', this.reachOutToCustomerCareModal.bind(this));\n }\n\n disconnect() {\n super.disconnect();\n document.removeEventListener('stimulus-reflex:halted', this.reachOutToCustomerCareModal.bind(this));\n }\n\n reasonSelected(e) {\n e.target.setAttribute('data-reason-selected', true);\n const overrideBtn = document.getElementById('override-btn');\n\n if (!overrideBtn) {\n this.enableSubmitBtn();\n } else if (overrideBtn.dataset.override) {\n this.enableSubmitBtn();\n }\n }\n\n enableSubmitBtn() {\n const submitBtn = document.getElementById('submit-btn');\n submitBtn.classList.remove('cursor-not-allowed');\n submitBtn.disabled = false;\n }\n\n disableSubmitBtn() {\n const submitBtn = document.getElementById('submit-btn');\n submitBtn.classList.add('cursor-not-allowed');\n submitBtn.disabled = true;\n }\n\n toggleSubmitBtn(overrideBtn = null, e) {\n if (!overrideBtn) {\n e.target.value.length ? this.enableSubmitBtn() : this.disableSubmitBtn();\n } else if (overrideBtn.dataset.override) {\n this.enableSubmitBtn();\n }\n }\n\n setOverrideAttribute(e) {\n e.target.dataset.override = true;\n if ($('input[data-reason-selected=\"true\"]').length) this.enableSubmitBtn();\n }\n\n reachOutToCustomerCareModal(event) {\n if (event.detail.reflex !== 'Store::MembersPortal::CancelAccountReflex#set_cancel_account_details') return;\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate('Store::MembersPortal::CancelAccount#reach_out_to_cc');\n },\n });\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static inputContainerClass = '.input-container';\n\n connect() {\n super.connect();\n this.initializeListeners();\n this.triggerFocusOnAutofill();\n }\n\n getInputs() {\n return this.element.querySelectorAll('.store-input');\n }\n\n initializeListeners() {\n this.getInputs().forEach((input) => {\n const parent = input.closest(this.constructor.inputContainerClass);\n this.updateFilledClass(input);\n\n input.addEventListener('focus', () => parent.classList.add('typing'));\n input.addEventListener('focusout', () =>\n parent.classList.remove('typing'),\n );\n input.addEventListener('blur', () => this.updateFilledClass(input));\n input.addEventListener('keyup', () => this.updateFilledClass(input));\n input.addEventListener('keydown', () => this.updateFilledClass(input));\n });\n }\n\n updateFilledClass(input) {\n const parent = input.closest(this.constructor.inputContainerClass);\n parent.classList.toggle('filled', input.value.trim() !== '');\n parent.classList.remove('typing');\n this.filledInitialCheck();\n }\n\n triggerFocusOnAutofill() {\n window.addEventListener('load', () => {\n this.getInputs().forEach((input) => {\n const isAutofilled =\n window\n .getComputedStyle(input)\n .getPropertyValue('background-color') === 'rgb(232, 240, 254)';\n if (isAutofilled || input.value.trim() !== '') {\n input.dispatchEvent(new Event('focus'));\n }\n });\n });\n }\n\n filledInitialCheck() {\n const emailInput = document.querySelector('input#user_email');\n const fnameInput = document.querySelector('input#user_first_name');\n const lnameInput = document.querySelector('input#user_last_name');\n if (\n emailInput.value.trim() !== '' &&\n fnameInput.value.trim() !== '' &&\n lnameInput.value.trim() !== ''\n ) {\n const user_password = document.querySelector('input#user_password');\n user_password\n .closest(this.constructor.inputContainerClass)\n .classList.remove('!hidden');\n }\n }\n}\n","import ApplicationController from \"../application_controller\";\n\nexport default class extends ApplicationController {\n static targets = [\"container\", \"email\", \"validEmail\", \"emailValidationContainer\"];\n\n processChange = this.debounce((e) => this.checkEmail(e), 3000);\n\n validateEmailField = _event => {\n if (!this.emailValidationContainerTarget.classList.contains(\"field_with_errors\")) return;\n\n this.emailValidationContainerTarget.classList.remove(\"field_with_errors\");\n }\n\n invalidateEmailField = _event => {\n if (this.emailValidationContainerTarget.classList.contains(\"field_with_errors\")) return;\n\n this.emailValidationContainerTarget.classList.add(\"field_with_errors\");\n }\n\n connect() {\n super.connect();\n\n document.addEventListener('keyup', this.processChange)\n document.addEventListener(\"validEmail\", this.validateEmailField);\n document.addEventListener(\"invalidEmail\", this.invalidateEmailField);\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener('keyup', this.processChange)\n document.removeEventListener(\"validEmail\", this.validateEmailField);\n document.removeEventListener(\"invalidEmail\", this.invalidateEmailField);\n }\n\n validEmailTargetConnected() {\n $(this.validEmailTarget).on(\"click\", (e) => {\n this.validateEmailField(e);\n $(this.emailTarget).val($(this.validEmailTarget).text());\n $(this.containerTarget).remove();\n });\n }\n\n debounce(func, timeout = 300) {\n let timer;\n\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n func.apply(this, args);\n }, timeout);\n };\n }\n\n checkEmail() {\n if (!this.emailTarget.value.length) return;\n\n $.ajax({\n type: 'POST',\n url: '/registration_validations',\n data: { validations: { email: this.emailTarget.value } },\n }).done(function (result) {\n const errorEl = document.querySelector('#email-validation-error');\n const { html } = result\n\n if (errorEl) {\n errorEl.innerHTML = html;\n }\n }).fail(function (error) {\n console.error(error)\n })\n }\n}\n","import moment from 'moment';\nimport ApplicationController from './application_controller';\n\nexport default class extends ApplicationController {\n static targets = [\n 'dob',\n 'phoneNum',\n 'ftHeight',\n 'inHeight',\n 'weight',\n 'submit',\n 'arrow',\n ];\n\n /* eslint no-unused-expressions: [\"error\", { \"allowTernary\": true }] */\n afterValidatePhoneNumber() {\n this.phoneNumTarget.getAttribute('valid') === 'true'\n ? this.enableSubmitButton()\n : this.disableSubmitButton();\n }\n\n connect() {\n super.connect();\n this.addEventListeners();\n this.disableSubmitButton();\n }\n\n disconnect() {\n super.disconnect();\n this.removeEventListeners();\n }\n\n addEventListeners() {\n this.dobHandler = this.validateDob.bind(this);\n this.phoneNumHandler = this.validatePhoneNumber.bind(this);\n\n this.dobTarget.addEventListener('blur', this.dobHandler);\n this.phoneNumTarget.addEventListener('change', this.phoneNumHandler);\n this.phoneNumTarget.addEventListener('input', this.phoneNumHandler);\n this.inHeightTarget.addEventListener(\n 'input',\n this.validateInches.bind(this),\n );\n }\n\n removeEventListeners() {\n this.dobTarget.removeEventListener('blur', this.dobHandler);\n this.phoneNumTarget.removeEventListener('change', this.phoneNumHandler);\n this.phoneNumTarget.removeEventListener('input', this.phoneNumHandler);\n this.inHeightTarget.removeEventListener('change', this.inHeightHandler);\n }\n\n validateInches() {\n const value = parseInt(this.inHeightTarget.value, 10);\n if (value < 0 || value > 11 || Number.isNaN(value)) {\n this.inHeightTarget.value = '';\n }\n }\n\n validateDob() {\n if (this.dobTarget.value.length < 10) {\n // \"MM/DD/YYYY\"\n this.dobTarget.setAttribute('valid', false);\n this.disableSubmitButton();\n return;\n }\n\n if (this.isValidDOB()) {\n this.dobTarget.setAttribute('valid', true);\n this.enableSubmitButton();\n } else {\n this.dobTarget.setAttribute('valid', false);\n this.disableSubmitButton();\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'UserDemographics::Ineligible#set_ineligible_details',\n 'dob',\n );\n },\n });\n }\n }\n\n validatePhoneNumber() {\n if (this.phoneNumTarget.value.length < 14) {\n // \"(XXX) XXX-XXXX\"\n this.phoneNumTarget.setAttribute('valid', false);\n this.disableSubmitButton();\n } else {\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'UserDemographics::Ineligible#validate_phone_number',\n this.phoneNumTarget.value,\n );\n },\n });\n }\n }\n\n isValidDOB() {\n const currentYear = moment().year();\n const birthYear = moment(this.dobTarget.value, 'MM/DD/YYYY').year();\n const age = currentYear - birthYear;\n return age >= 18 && birthYear >= currentYear - 120;\n }\n\n disableSubmitButton() {\n if (this.submitTarget.hasAttribute('disabled')) return;\n if (!this.hasArrowTarget) return;\n\n if (this.allFieldsValid()) {\n this.arrowTarget.setAttribute(\n 'src',\n this.arrowTarget.dataset.rightArrowActive,\n );\n this.submitTarget.removeAttribute('disabled');\n return;\n }\n\n this.submitTarget.setAttribute('disabled', true);\n this.arrowTarget.setAttribute('alt', 'right-arrow-inactive');\n this.arrowTarget.setAttribute(\n 'src',\n this.arrowTarget.dataset.rightArrowInactive,\n );\n this.arrowTarget.classList.remove('hover:cursor-pointer');\n this.arrowTarget.classList.add('hover:cursor-not-allowed');\n this.submitTarget.classList.remove('hover:cursor-pointer');\n this.submitTarget.classList.add('hover:cursor-not-allowed');\n }\n\n enableSubmitButton() {\n if (!this.submitTarget.hasAttribute('disabled')) return;\n if (!this.allFieldsValid()) return;\n if (!this.hasArrowTarget) return;\n\n this.submitTarget.removeAttribute('disabled');\n if (this.hasArrowTarget) {\n this.arrowTarget.setAttribute('alt', 'right-arrow-active');\n this.arrowTarget.setAttribute(\n 'src',\n this.arrowTarget.dataset.rightArrowActive,\n );\n this.arrowTarget.classList.add('hover:cursor-pointer');\n this.arrowTarget.classList.remove('hover:cursor-not-allowed');\n }\n this.submitTarget.classList.add('hover:cursor-pointer');\n this.submitTarget.classList.remove('hover:cursor-not-allowed');\n }\n\n allFieldsValid() {\n const fields = [this.dobTarget, this.phoneNumTarget];\n return fields.every((field) => field.getAttribute('valid') === 'true');\n }\n}\n","/*\nUsed to force the CSRF tokens / Auth to be refreshed.\nSimply connect the controller to the page and dispatch the event: `refreshCSRFToken`\n*/\n\nimport Rails from '@rails/ujs';\nimport ApplicationController from '../application_controller';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n document.addEventListener('refreshCSRFToken', this.refreshCSRFToken);\n }\n\n refreshCSRFToken() {\n // Ensure CSRF tokens are refreshed before updating forms.\n Rails.refreshCSRFTokens();\n\n // Iterate over all forms and update or insert the CSRF token.\n document.querySelectorAll('form').forEach((form) => {\n let csrf = form.querySelector('input[name=\"authenticity_token\"]');\n\n // If the CSRF input exists, update its value.\n if (csrf) {\n csrf.value = Rails.csrfToken();\n } else {\n // If the CSRF input does not exist, create it and append to the form.\n csrf = document.createElement('input');\n csrf.type = 'hidden';\n csrf.name = 'authenticity_token';\n csrf.value = Rails.csrfToken();\n form.appendChild(csrf);\n }\n });\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener('refreshCSRFToken', Rails.refreshCSRFTokens);\n }\n}\n","import ApplicationController from '../application_controller';\n\nexport class DeleteConfirmationController extends ApplicationController {\n connect() {\n super.connect();\n }\n\n deleteConfirmation(resource) {\n return confirm(`Are you sure you'd like to delete this ${resource}?`);\n }\n}\n","export function showLoadingSpinner() {\n document.body.classList.add('wait');\n const spinner = document.querySelector('.spinner');\n if (!spinner) return;\n spinner.classList.remove('invisible', 'opacity-0');\n spinner.classList.add('opacity-90', 'bg-white');\n spinner.style.zIndex = 1;\n}\n\nexport function hideLoadingSpinner() {\n document.body.classList.remove('wait');\n const spinner = document.querySelector('.spinner');\n if (!spinner) return;\n spinner.classList.add('invisible', 'opacity-0');\n}\n","export function handlePromoSuccess(result, promoTextField, resultTag, promoApplyBtn = null) {\n promoTextField.value = '';\n resultTag.classList.remove('text-error');\n resultTag.classList.add('text-success');\n resultTag.innerHTML = result;\n if (promoApplyBtn) promoApplyBtn.removeAttribute('disabled');\n}\n\nexport function handlePromoError(result, resultTag, promoApplyBtn = null) {\n resultTag.classList.remove('text-success');\n resultTag.classList.add('text-error');\n resultTag.innerHTML = result;\n if (promoApplyBtn) promoApplyBtn.removeAttribute('disabled');\n}\n","var map = {\n\t\"./af\": 2786,\n\t\"./af.js\": 2786,\n\t\"./ar\": 867,\n\t\"./ar-dz\": 4130,\n\t\"./ar-dz.js\": 4130,\n\t\"./ar-kw\": 6135,\n\t\"./ar-kw.js\": 6135,\n\t\"./ar-ly\": 6440,\n\t\"./ar-ly.js\": 6440,\n\t\"./ar-ma\": 7702,\n\t\"./ar-ma.js\": 7702,\n\t\"./ar-sa\": 6040,\n\t\"./ar-sa.js\": 6040,\n\t\"./ar-tn\": 7100,\n\t\"./ar-tn.js\": 7100,\n\t\"./ar.js\": 867,\n\t\"./az\": 1083,\n\t\"./az.js\": 1083,\n\t\"./be\": 9808,\n\t\"./be.js\": 9808,\n\t\"./bg\": 8338,\n\t\"./bg.js\": 8338,\n\t\"./bm\": 7438,\n\t\"./bm.js\": 7438,\n\t\"./bn\": 8905,\n\t\"./bn-bd\": 6225,\n\t\"./bn-bd.js\": 6225,\n\t\"./bn.js\": 8905,\n\t\"./bo\": 1560,\n\t\"./bo.js\": 1560,\n\t\"./br\": 1278,\n\t\"./br.js\": 1278,\n\t\"./bs\": 622,\n\t\"./bs.js\": 622,\n\t\"./ca\": 2468,\n\t\"./ca.js\": 2468,\n\t\"./cs\": 5822,\n\t\"./cs.js\": 5822,\n\t\"./cv\": 877,\n\t\"./cv.js\": 877,\n\t\"./cy\": 7373,\n\t\"./cy.js\": 7373,\n\t\"./da\": 4780,\n\t\"./da.js\": 4780,\n\t\"./de\": 9740,\n\t\"./de-at\": 217,\n\t\"./de-at.js\": 217,\n\t\"./de-ch\": 894,\n\t\"./de-ch.js\": 894,\n\t\"./de.js\": 9740,\n\t\"./dv\": 5300,\n\t\"./dv.js\": 5300,\n\t\"./el\": 837,\n\t\"./el.js\": 837,\n\t\"./en-au\": 8348,\n\t\"./en-au.js\": 8348,\n\t\"./en-ca\": 7925,\n\t\"./en-ca.js\": 7925,\n\t\"./en-gb\": 2243,\n\t\"./en-gb.js\": 2243,\n\t\"./en-ie\": 6436,\n\t\"./en-ie.js\": 6436,\n\t\"./en-il\": 7207,\n\t\"./en-il.js\": 7207,\n\t\"./en-in\": 4175,\n\t\"./en-in.js\": 4175,\n\t\"./en-nz\": 6319,\n\t\"./en-nz.js\": 6319,\n\t\"./en-sg\": 1662,\n\t\"./en-sg.js\": 1662,\n\t\"./eo\": 2915,\n\t\"./eo.js\": 2915,\n\t\"./es\": 5655,\n\t\"./es-do\": 5251,\n\t\"./es-do.js\": 5251,\n\t\"./es-mx\": 6112,\n\t\"./es-mx.js\": 6112,\n\t\"./es-us\": 1146,\n\t\"./es-us.js\": 1146,\n\t\"./es.js\": 5655,\n\t\"./et\": 5603,\n\t\"./et.js\": 5603,\n\t\"./eu\": 7763,\n\t\"./eu.js\": 7763,\n\t\"./fa\": 6959,\n\t\"./fa.js\": 6959,\n\t\"./fi\": 1897,\n\t\"./fi.js\": 1897,\n\t\"./fil\": 2549,\n\t\"./fil.js\": 2549,\n\t\"./fo\": 4694,\n\t\"./fo.js\": 4694,\n\t\"./fr\": 4470,\n\t\"./fr-ca\": 3049,\n\t\"./fr-ca.js\": 3049,\n\t\"./fr-ch\": 2330,\n\t\"./fr-ch.js\": 2330,\n\t\"./fr.js\": 4470,\n\t\"./fy\": 5044,\n\t\"./fy.js\": 5044,\n\t\"./ga\": 9295,\n\t\"./ga.js\": 9295,\n\t\"./gd\": 2101,\n\t\"./gd.js\": 2101,\n\t\"./gl\": 8794,\n\t\"./gl.js\": 8794,\n\t\"./gom-deva\": 7884,\n\t\"./gom-deva.js\": 7884,\n\t\"./gom-latn\": 3168,\n\t\"./gom-latn.js\": 3168,\n\t\"./gu\": 5349,\n\t\"./gu.js\": 5349,\n\t\"./he\": 4206,\n\t\"./he.js\": 4206,\n\t\"./hi\": 94,\n\t\"./hi.js\": 94,\n\t\"./hr\": 316,\n\t\"./hr.js\": 316,\n\t\"./hu\": 2138,\n\t\"./hu.js\": 2138,\n\t\"./hy-am\": 1423,\n\t\"./hy-am.js\": 1423,\n\t\"./id\": 9218,\n\t\"./id.js\": 9218,\n\t\"./is\": 135,\n\t\"./is.js\": 135,\n\t\"./it\": 626,\n\t\"./it-ch\": 150,\n\t\"./it-ch.js\": 150,\n\t\"./it.js\": 626,\n\t\"./ja\": 9183,\n\t\"./ja.js\": 9183,\n\t\"./jv\": 4286,\n\t\"./jv.js\": 4286,\n\t\"./ka\": 2105,\n\t\"./ka.js\": 2105,\n\t\"./kk\": 7772,\n\t\"./kk.js\": 7772,\n\t\"./km\": 8758,\n\t\"./km.js\": 8758,\n\t\"./kn\": 9282,\n\t\"./kn.js\": 9282,\n\t\"./ko\": 3730,\n\t\"./ko.js\": 3730,\n\t\"./ku\": 1408,\n\t\"./ku.js\": 1408,\n\t\"./ky\": 3291,\n\t\"./ky.js\": 3291,\n\t\"./lb\": 6841,\n\t\"./lb.js\": 6841,\n\t\"./lo\": 5466,\n\t\"./lo.js\": 5466,\n\t\"./lt\": 7010,\n\t\"./lt.js\": 7010,\n\t\"./lv\": 7595,\n\t\"./lv.js\": 7595,\n\t\"./me\": 9861,\n\t\"./me.js\": 9861,\n\t\"./mi\": 5493,\n\t\"./mi.js\": 5493,\n\t\"./mk\": 5966,\n\t\"./mk.js\": 5966,\n\t\"./ml\": 7341,\n\t\"./ml.js\": 7341,\n\t\"./mn\": 5115,\n\t\"./mn.js\": 5115,\n\t\"./mr\": 370,\n\t\"./mr.js\": 370,\n\t\"./ms\": 9847,\n\t\"./ms-my\": 1237,\n\t\"./ms-my.js\": 1237,\n\t\"./ms.js\": 9847,\n\t\"./mt\": 2126,\n\t\"./mt.js\": 2126,\n\t\"./my\": 6165,\n\t\"./my.js\": 6165,\n\t\"./nb\": 4924,\n\t\"./nb.js\": 4924,\n\t\"./ne\": 6744,\n\t\"./ne.js\": 6744,\n\t\"./nl\": 3901,\n\t\"./nl-be\": 9814,\n\t\"./nl-be.js\": 9814,\n\t\"./nl.js\": 3901,\n\t\"./nn\": 3877,\n\t\"./nn.js\": 3877,\n\t\"./oc-lnc\": 2135,\n\t\"./oc-lnc.js\": 2135,\n\t\"./pa-in\": 5858,\n\t\"./pa-in.js\": 5858,\n\t\"./pl\": 4495,\n\t\"./pl.js\": 4495,\n\t\"./pt\": 9520,\n\t\"./pt-br\": 7971,\n\t\"./pt-br.js\": 7971,\n\t\"./pt.js\": 9520,\n\t\"./ro\": 6459,\n\t\"./ro.js\": 6459,\n\t\"./ru\": 1793,\n\t\"./ru.js\": 1793,\n\t\"./sd\": 950,\n\t\"./sd.js\": 950,\n\t\"./se\": 490,\n\t\"./se.js\": 490,\n\t\"./si\": 124,\n\t\"./si.js\": 124,\n\t\"./sk\": 4249,\n\t\"./sk.js\": 4249,\n\t\"./sl\": 4985,\n\t\"./sl.js\": 4985,\n\t\"./sq\": 1104,\n\t\"./sq.js\": 1104,\n\t\"./sr\": 9131,\n\t\"./sr-cyrl\": 9915,\n\t\"./sr-cyrl.js\": 9915,\n\t\"./sr.js\": 9131,\n\t\"./ss\": 5893,\n\t\"./ss.js\": 5893,\n\t\"./sv\": 8760,\n\t\"./sv.js\": 8760,\n\t\"./sw\": 1172,\n\t\"./sw.js\": 1172,\n\t\"./ta\": 7333,\n\t\"./ta.js\": 7333,\n\t\"./te\": 3110,\n\t\"./te.js\": 3110,\n\t\"./tet\": 2095,\n\t\"./tet.js\": 2095,\n\t\"./tg\": 7321,\n\t\"./tg.js\": 7321,\n\t\"./th\": 9041,\n\t\"./th.js\": 9041,\n\t\"./tk\": 9005,\n\t\"./tk.js\": 9005,\n\t\"./tl-ph\": 5768,\n\t\"./tl-ph.js\": 5768,\n\t\"./tlh\": 9444,\n\t\"./tlh.js\": 9444,\n\t\"./tr\": 2397,\n\t\"./tr.js\": 2397,\n\t\"./tzl\": 8254,\n\t\"./tzl.js\": 8254,\n\t\"./tzm\": 1106,\n\t\"./tzm-latn\": 699,\n\t\"./tzm-latn.js\": 699,\n\t\"./tzm.js\": 1106,\n\t\"./ug-cn\": 9288,\n\t\"./ug-cn.js\": 9288,\n\t\"./uk\": 7691,\n\t\"./uk.js\": 7691,\n\t\"./ur\": 3795,\n\t\"./ur.js\": 3795,\n\t\"./uz\": 6791,\n\t\"./uz-latn\": 588,\n\t\"./uz-latn.js\": 588,\n\t\"./uz.js\": 6791,\n\t\"./vi\": 5666,\n\t\"./vi.js\": 5666,\n\t\"./x-pseudo\": 4378,\n\t\"./x-pseudo.js\": 4378,\n\t\"./yo\": 5805,\n\t\"./yo.js\": 5805,\n\t\"./zh-cn\": 3839,\n\t\"./zh-cn.js\": 3839,\n\t\"./zh-hk\": 5726,\n\t\"./zh-hk.js\": 5726,\n\t\"./zh-mo\": 9807,\n\t\"./zh-mo.js\": 9807,\n\t\"./zh-tw\": 4152,\n\t\"./zh-tw.js\": 4152\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 = 6700;"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","createConsumer","Controller","static","connect","this","address1Targets","forEach","addressInput","index","autocompleteAddress","address1ErrorTargets","addressError","$","autocomplete","minLength","delay","source","_request","response","ajax","url","dataType","data","search","value","filterByShippingZone","getAttribute","productSgid","dataset","success","innerHTML","suggestions","length","label","val","item","street_line","secondary","city","state","zipcode","error","jqXHR","_textStatus","_errorThrown","status","getResponseHeader","console","warn","select","_e","u","container","closest","find","prop","blur","hide","ApplicationController","trixEl","document","querySelector","timerId","super","checkTagsOnLoad","addClickEventOnEditorTags","addEventListener","displayPreview","bind","customizeFont","disableEditorTyping","callStimulusAction","cb","stimulate","disconnect","removeEventListener","debouncePreview","clearTimeout","setTimeout","event","detail","attribute","fontSize","editor","getSelectedRange","activateAttribute","fontFamily","isCollapsed","selectionManager","selectionIsCollapsed","key","preventDefault","cursorPos","getPosition","currentChar","getDocument","toString","charAt","match","allowedTags","JSON","parse","allowedTagsTarget","querySelectorAll","editorEl","tagName","textContent","trim","includes","tag","toLowerCase","replace","remove","injectStyles","attributeIsActive","onClickInsertTag","element","el","currentTarget","style","tagHtml","insertHTML","onDblClickRemoveTag","onClickHighlightTag","stopPropagation","stopImmediatePropagation","range","createRange","selectNodeContents","selection","window","getSelection","removeAllRanges","addRange","tagKeys","appendToTagsList","tagsContainer","span","createElement","classList","add","setAttribute","appendChild","subjectTarget","toggleFocusedDataAttribute","bodyTarget","focused","focusedEl","start","end","selectionStart","selectionEnd","setRangeText","focus","clearFields","renderTabSuccess","hideReplies","createNoteSuccess","viewRepliesSpan","rootConversationId","leadId","activeTab","submitNote","target","tab","textAreaTarget","cancelNote","selectTab","then","selectors","query","conversation","reply","Lead","reflexSuccess","_","reflex","showToast","text","body","getElementById","setSelectionRange","height","scrollHeight","resetStyles","input","copyToClipboard","field","copiedText","navigator","clipboard","writeText","Toastify","duration","close","gravity","position","stopOnFocus","background","addNote","currentIndex","assignSalesRep","salesRepSelectTarget","toggleRetentionStatus","winBtn","loseBtn","winCss","loseCss","addInputEventListeners","toggleButtonEnabled","removeInputEventListeners","submitForm","removeAttribute","formTarget","submit","formInputs","numberTarget","expiryTarget","verificationValueTarget","address1Target","cityTarget","stateIdTarget","zipcodeTarget","valid","every","clearRepeatAddressValidation","addressLookupBypassed","addressValidatedWithSmarty","enableSubmit","submitBtnTarget","disableSubmit","setupTypeahead","search_results","Bloodhound","datumTokenizer","whitespace","queryTokenizer","remote","wildcard","typeahead","highlight","classNames","menu","selectable","templates","suggestion","email","display","phone_number","date_of_birth","limit","ev","location","nextOccurrenceAtId","subTypeId","selectedOptions","monthsCount","disableNextOccurrenceAt","setNextOccurrenceAt","nextOccurrenceAt","enableNextOccurrenceAt","checked","moment","format","parentNode","closeModal","modal","overlay","modalTitle","modalContent","togglePermissions","hasPermissionsTarget","permissionsTarget","toggle","chevronTarget","removePermission","permissionTarget","initialize","handleScroll","passive","headerBounds","getBoundingClientRect","scrollY","bottom","nestedSidebarTarget","nestedSidebarContainerTarget","nestedSidebarIconTarget","DeleteConfirmationController","delete","deleteConfirmation","select2","undefined","selectedIds","productRule","trigger","addRuleBtnTarget","addDiscount","newRow","newRuleTemplateTarget","cloneNode","ruleIndex","rulesContainerTarget","orderNumberInput","removeDiscount","timestamp","removeFlag","sgid","removeAnswerOption","newRecord","confirm","recordId","payload","attrs","reflexId","catch","stimulusReflex","alert","toggleAnswerDropdown","answerField","dropdownIcon","contains","toggleSettingsDropdown","settingsFields","toggleMoreInfoDropdown","moreInfoFields","direction","page","showUnauthorizedModal","openSidebar","mobileMenuTarget","menuOverlayTarget","menuTarget","closeSidebar","add_association","form","content","Date","getTime","getElementsByClassName","insertAdjacentHTML","remove_association","AlertsController","successAlertTargetConnected","successAlertTarget","fadeTo","slideUp","dispatchAlertRemovedEvent","errorAlertTargetConnected","errorAlertTarget","dismissAlert","name","dispatchEvent","Event","TIMEOUT","StimulusReflex","removeToasts","toasts","toast","type","className","reflexError","maxRetries","AwaitingConsultationController","counterSinceTime","datetime","date","timer","theDate","toDate","_minute","_second","_hour","_day","setInterval","distance","now","clearInterval","days","Math","floor","hours","minutes","seconds","updateMedicationCategory","medicationCategoryId","medicationCategoryIdTarget","updatePrescriptionForm","orderIdTarget","productIdTarget","variantIdTarget","isEscalatingTarget","PharmacistsCompoundingLogController","sortable","Sortable","create","animation","handle","ghostClass","EVENT_NAME","consumer","subscriptions","received","cableReady","perform","operations","reloadPrintLabels","autoReload","printLabelAreaTarget","html","reload","updateRemainingCount","inputTarget","logId","PharmacistsShippingController","hasShippingLabelTarget","shippingLabelTarget","printWindow","open","path","print","SearchController","searchTargets","on","directUploadUrl","dropZone","Dropzone","dropZoneConfig","get","disableImageUpload","hiddenFileInput","displayExistingFile","bindEvents","headers","head","maxFiles","maxFilesize","acceptedFiles","addRemoveLinks","autoQueue","dzImageUrl","dzImageName","mockFile","size","dzId","wrap","css","controller","file","DirectUploadController","upload","_file","enableImageUpload","parentElement","els","getElementsByTagName","constructor","stimulusController","directUpload","DirectUpload","blob","emitDropzoneError","createHiddenInput","signed_id","emitDropzoneSuccess","directUploadWillStoreFileWithXHR","request","directUploadDidProgress","uploadProgress","loaded","total","previewTemplate","width","ERROR","emit","SUCCESS","fileInputTarget","files","previewTarget","src","URL","createObjectURL","svgTarget","interval","flash","visibility","commentTarget","onCommentInput","radio","onRadioClick","selectedRadio","submitButton","submitTarget","disabled","strength","comment","hasFormTarget","phoneFieldTargets","unmask","hasDobFieldTarget","dobFieldTarget","mask","hasPhoneFieldTarget","hasZipFieldTarget","zipFieldTarget","eyeSlashSrc","eyeSrc","togglePassword","toggleInput","passwordTarget","passwordIconTarget","toggleConfirmPassword","confirmPasswordTarget","confirmPasswordIconTarget","img","visible","blocked","toggleSecureField","toggleElement","fieldId","onFormChange","pauseRadio","pauseReasons","titleAndSubtitle","submitBtn","isPaused","reasonSelected","addClass","removeClass","hasCancelRadioTarget","isCancelled","cancelRadioTarget","optionTargets","some","option","cancelReasonsTarget","submitButtonTarget","verificationForm","completeIdVerification","failIdVerification","submitBtnTargetConnected","validateFormInputs","firstNameTarget","lastNameTarget","dob","dobTarget","disableSubmitBtn","isValidDOB","enableSubmitBtn","setAndReportValidity","initPersona","showLoadingSpinner","client","Persona","Client","templateId","environmentId","themeSetId","fields","brand","referenceId","onReady","onCancel","hideLoadingSpinner","onEvent","inquiryId","updateUserInquiryId","onComplete","beforeSend","xhr","setRequestHeader","attr","needHelp","href","currentYear","year","birthYear","message","setCustomValidity","reportValidity","application","Application","context","require","load","definitionsFromContext","debug","process","register","Flatpickr","roleType","String","setFieldMasks","inputChange","nextElementSibling","submitError","errors","errorContainerTargets","errorContainer","errorType","errorMsg","extractError","innerText","settings","validateForm","isValid","Array","isArray","foundError","Cleave","datePattern","creditCard","duplicateAddress","checkbox","shipAddress","address1","address2","billAddress","is","openModal","identifier","stimulus","checkSessionInitiated","sessionModalActive","heartBeatActivated","heartBeat","initHeartBeat","lastActive","valueOf","activity","timeStamp","performance","timing","navigationStart","timeout","pollForSessionTimeout","sessionTimeoutPollFrequency","done","time_left","fail","checkSession","questionnaireListTargetConnected","requiredQuestionnaireTarget","toggleRequiredQuestionnaire","title","overlayOpacity","insertAdjacentText","modalTarget","overlayTarget","hasTitleTarget","inactivateSessionModal","titleTarget","contentTarget","questionnaireColTarget","questionnaireListTarget","required","add_state_association","templateTarget","statesTarget","addLicenseBtnTarget","remove_state_association","show","wrapper","add_itemTarget","hasRequiredQuestionnaireTarget","hasNextButtonLinkTarget","nextButtonLinkTarget","nextPath","activateArrowAndEnableSubmit","deactivateArrowAndEnableSubmit","checkOnLoad","shouldEnableSubForm","handleQuantitySelectionTooltips","activateNextButton","deactivateRightArrow","clickSubmitBtn","click","questionnaireHardStop","pointerEvents","checkMultiAnswer","each","idx","parent","nextAll","moreInfo","next","checkSingleChoice","prev","checkDosageQuantityRadios","checkFileUploads","shouldEnableSectionForm","submitBtnEl","checkHardStops","rightarrowsubmitDisabled","newSrc","rightArrowEl","disableEnableSurveySubmit","selectMultipleAnswers","nodeName","selectedLabel","selectedInput","answers","regularAnswerTargets","noneAnswers","noneAnswerTargets","endResponses","endResponseTargets","answer","deselectOption","endResponse","displayMoreInfo","autoAdvanceAnswerSelected","selectOption","advanceToNextQuestionEvent","labelElement","toggleRadioButton","selected","unselected","not","closeMoreInfos","children","removeAttr","toggleMultipleRadioButton","toggleUserAnswerFreeText","commentableTarget","hardStop","hasHardStop","from","inputId","dosages","siblings","quantities","checkFrequencyQuantityRadios","frequencies","frequencySelection","parentsUntil","freeTextFieldTargetConnected","clickEl","split","CustomEvent","autoAdvance","toggleSubscriptionSelectionCheckMarks","checkWhiteSrc","checkDarkSrc","step","isQuarterly","num","experiences","tooltipster","theme","matchMedia","matches","triggerOpen","mouseenter","touchstart","triggerClose","mouseleave","tap","contentCloning","redirect","validStates","addressTouchedTarget","checkedWithSmarty","validateAddress","address2Target","lookupValidationSkippedTarget","touched","addressValuesPresent","filter","reset","bypassValidation","validatedSubmit","displayAddressErrors","parentOfFieldElement","errorMessage","onChange","onInput","rewire","addressToggleTarget","loadAddressForm","hasAddressToggleTarget","verifyAddress","valuesPresent","creditCardPresent","creditCardValuesPresent","billAddressPresent","billAddressValuesPresent","addressTouched","hasAddressTouchedTarget","creditCardTouched","creditCardTouchedTarget","creditCardInputs","addressInputs","inputs","hasNumberTarget","push","hasVerificationValueTarget","hasExpiryTarget","hasZipcodeTarget","hasAddress1Target","hasAddress2Target","hasCityTarget","hasStateIdTarget","onCardChange","onCardInput","onAddressChange","onAddressInput","cardReady","addressReady","onEnd","updatePosition","newIndex","openIcon","closeIcon","trackEvent","userId","price","itemName","itemId","itemVariant","quantity","subscriptionType","dataLayerPageViewObj","user_type","ecommerce","items","item_name","item_id","parseFloat","item_brand","item_category","item_category2","item_variant","item_list_id","item_list_name","dataLayer","questionId","questionName","questionCategory","productId","question_no","question","question_category","product_id","subscriptionAdjustments","subscription","dosespermonth","subscription_adjustment","pagePath","pageLocation","pageTitle","orderTotal","promoCodeDiscount","subscriptionAdjustment","promoCode","paymentMethod","orderId","sha256EmailAddress","sha256PhoneNumber","sha256FirstName","sha256LastName","sha256_email_address","sha256_phone_number","sha256_first_name","sha256_last_name","transaction_id","currency","coupon","coupon_discount","shipping_tier","shipping","tax","affiliation","payment_method","ITEM_QUESTION_POSITION","ITEM_SECTION_POSITION","isSamePage","sectionPosition","questionPosition","lastSectionPosition","lastQuestionPosition","parseLastPositions","localStorage","getItem","stepDirection","setItem","subscriptionAdjustmentNumberLabel","amount","zESettings","analytics","EVENTS_TO_SEND","zE","action","indexOf","log","scrollToElement","pageElement","positionX","positionY","offsetLeft","offsetTop","offsetParent","scrollTo","left","top","behavior","addStoredFieldValues","storeCheckoutSkipAddressLookup","storeCheckoutValidatedCurrentValues","removeBypassedHiddenField","logSkip","addBypassedHiddenField","hiddenField","serviceableStateSelected","enableSubmitButton","disableSubmitButton","validateServiceableState","storeFieldValues","formFieldsForLocalstorage","removeStoredFieldValues","removeItem","beforeReflex","spinner","afterReflex","handleTooltips","handlePromoSuccess","handlePromoError","toggleOneTimePurchase","otpContainerTarget","otpToggleArrowTarget","toggleRefundSummary","slideToggle","selectSubType","checkSub","consentChecked","toggleProceedBtn","consentTarget","changeSub","quarterlySubId","isMobile","variantUpdate","variantId","variantTarget","subscriptionTypeTarget","packsPerMonth","packsPerMonthTarget","promoUpdate","promoCodeTarget","result","promoTextField","resultTag","promoApplyBtn","togglePromoCode","promoCodeContainerTarget","btn","agreementBtnTarget","orderCompleted","submitMetforminForm","initializeAccordion","enableFormSubmitOnAllFieldsFilled","hasMetforminFormTarget","metforminFormTarget","hasAccordionTarget","$el","accordionTarget","accordion","active","collapsible","heightStyle","beforeActivate","_event","ui","oldHeader","newHeader","enableFormSubmit","disableFormSubmit","hasMultiFieldFormTarget","multiFieldFormTarget","requiredFields","getComputedStyle","group","consentToggled","clearFormQueryParams","waitForSrc","initKoreAi","jwt","KoreSDK","chatConfig","botOptions","botInfo","customData","allowLocation","callback","yesInputTarget","commentContainerTarget","commentAreaTarget","image","downloadingImage","Image","onload","imageUrl","hasSendToTarget","sendToTarget","togglePhiMessage","toggleFileUpload","phiMessageTarget","fileUploadContainer","previewFiles","imgPreviewContainerTarget","reader","FileReader","buildImagePreview","onerror","readAsDataURL","maxHeight","thumbnailContainer","fallbackContainer","createThumbnail","removeIcon","addRemoveIcon","div","onclick","removeFileFromFileList","updateAfterRemoval","fileInputLabelTarget","validateFiles","allowedExtensions","clearFileInputValue","fileExtension","pop","isInvalidType","isOversized","fileToRemove","dt","DataTransfer","removeFilePreviews","thumbnail","toggleCollapse","chevron","toggleWeightHistory","templateSelection","formatState","minimumResultsForSearch","Infinity","pathname","$state","orderMore","confirmOrderMore","imageContainerTarget","toggleId","smsMessageTargetConnected","smsMessageTarget","toggleButtonText","toggleButtonTarget","HAS_FAILED","TYPE","currentstepTarget","PROGRESS_BAR_STEPS","tooltip","REFILL_PROGRESS_BAR_STEPS","ERRORS","setupProgressBar","initTooltips","tooltipTargets","append","currentstep","completedSteps","refillSteps","i","defaultSteps","appendError","addProgressBarStep","foundStep","stepDiv","fillTarget","completed","isDelivered","appendCheck","successTarget","asset","failTarget","showReactivatedModal","showChangeSubscriptionModal","reactivated","skipAMonth","subscriptionId","hasMenuTarget","removeFile","entryId","attachmentId","fileId","filesSelected","test","reachOutToCustomerCareModal","overrideBtn","override","toggleSubmitBtn","setOverrideAttribute","initializeListeners","triggerFocusOnAutofill","getInputs","inputContainerClass","updateFilledClass","filledInitialCheck","getPropertyValue","emailInput","fnameInput","lnameInput","processChange","debounce","checkEmail","validateEmailField","emailValidationContainerTarget","invalidateEmailField","validEmailTargetConnected","validEmailTarget","emailTarget","containerTarget","func","args","apply","validations","errorEl","afterValidatePhoneNumber","phoneNumTarget","addEventListeners","removeEventListeners","dobHandler","validateDob","phoneNumHandler","validatePhoneNumber","inHeightTarget","validateInches","inHeightHandler","parseInt","Number","isNaN","hasAttribute","hasArrowTarget","allFieldsValid","arrowTarget","rightArrowActive","rightArrowInactive","refreshCSRFToken","Rails","csrf","resource","zIndex"],"sourceRoot":""}