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ACR,UAAW,KACX,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,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/product_select_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/medication_controller.js","webpack://bufo/./app/javascript/controllers/admin/forms/product_intro_controller.js","webpack://bufo/./app/javascript/controllers/admin/forms/role_form_controller.js","webpack://bufo/./app/javascript/controllers/admin/forms/variant_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/payment_methods/state_select_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/blotout_consent_controller.js","webpack://bufo/./app/javascript/controllers/cp/doctors/awaiting_consultation_controller.js","webpack://bufo/./app/javascript/controllers/cp/doctors/prescription_denial_reason_form_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/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/dose_spot_ui_controller.js","webpack://bufo/./app/javascript/controllers/dropzone_controller.js","webpack://bufo/./app/javascript/controllers/dynamic_fields_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/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/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/shared/dropin_initializer.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/koreai_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/renew_prescription_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/store/questionnaires/pre_questionnaire_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/signin_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/./app/javascript/controllers/utilities/questionnaire/answers_checker.js","webpack://bufo/./app/javascript/controllers/utilities/user/keep_pre_questionnaire.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/product_select_controller.js\": 7087,\n\t\"./admin/customers/search_controller.js\": 8430,\n\t\"./admin/customers/subscription_controller.js\": 8082,\n\t\"./admin/forms/medication_controller.js\": 6176,\n\t\"./admin/forms/product_intro_controller.js\": 1277,\n\t\"./admin/forms/role_form_controller.js\": 6275,\n\t\"./admin/forms/variant_controller.js\": 6277,\n\t\"./admin/nested_sidebar_controller.js\": 3804,\n\t\"./admin/payment_methods/delete_confirmation_controller.js\": 2857,\n\t\"./admin/payment_methods/state_select_controller.js\": 8938,\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\"./blotout_consent_controller.js\": 2761,\n\t\"./cp/doctors/awaiting_consultation_controller.js\": 9894,\n\t\"./cp/doctors/prescription_denial_reason_form_controller.js\": 5091,\n\t\"./cp/pharmacists/compounding_log_controller.js\": 3852,\n\t\"./cp/pharmacists/log_print_labels_controller.js\": 4667,\n\t\"./cp/pharmacists/shipping_controller.js\": 8010,\n\t\"./cp/search_controller.js\": 2058,\n\t\"./dashboard_controller.js\": 5225,\n\t\"./dose_spot_ui_controller.js\": 9881,\n\t\"./dropzone_controller.js\": 6712,\n\t\"./dynamic_fields_controller.js\": 8498,\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\"./id_verification_controller.js\": 8533,\n\t\"./input_validation_controller.js\": 3703,\n\t\"./modal_controller.js\": 860,\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/koreai_controller.js\": 7682,\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/renew_prescription_controller.js\": 4122,\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\"./store/questionnaires/pre_questionnaire_controller.js\": 9022,\n\t\"./user/cancellation_controller.js\": 1336,\n\t\"./user/registrations/input_controller.js\": 7733,\n\t\"./user/signin_controller.js\": 6449,\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/product_select_controller.js\": 7087,\n\t\"controllers/admin/customers/search_controller.js\": 8430,\n\t\"controllers/admin/customers/subscription_controller.js\": 8082,\n\t\"controllers/admin/forms/medication_controller.js\": 6176,\n\t\"controllers/admin/forms/product_intro_controller.js\": 1277,\n\t\"controllers/admin/forms/role_form_controller.js\": 6275,\n\t\"controllers/admin/forms/variant_controller.js\": 6277,\n\t\"controllers/admin/nested_sidebar_controller.js\": 3804,\n\t\"controllers/admin/payment_methods/delete_confirmation_controller.js\": 2857,\n\t\"controllers/admin/payment_methods/state_select_controller.js\": 8938,\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/blotout_consent_controller.js\": 2761,\n\t\"controllers/cp/doctors/awaiting_consultation_controller.js\": 9894,\n\t\"controllers/cp/doctors/prescription_denial_reason_form_controller.js\": 5091,\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/shipping_controller.js\": 8010,\n\t\"controllers/cp/search_controller.js\": 2058,\n\t\"controllers/dashboard_controller.js\": 5225,\n\t\"controllers/dose_spot_ui_controller.js\": 9881,\n\t\"controllers/dropzone_controller.js\": 6712,\n\t\"controllers/dynamic_fields_controller.js\": 8498,\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/id_verification_controller.js\": 8533,\n\t\"controllers/input_validation_controller.js\": 3703,\n\t\"controllers/modal_controller.js\": 860,\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/koreai_controller.js\": 7682,\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/renew_prescription_controller.js\": 4122,\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/store/questionnaires/pre_questionnaire_controller.js\": 9022,\n\t\"controllers/user/cancellation_controller.js\": 1336,\n\t\"controllers/user/registrations/input_controller.js\": 7733,\n\t\"controllers/user/signin_controller.js\": 6449,\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' },\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.log(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 '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.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';\n\nexport default class extends ApplicationController {\n connect() {\n super.connect();\n }\n\n submit_form(event) {\n event.preventDefault();\n event.target.closest('form').submit();\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 = ['ingredientFields', 'container', 'destroyField'];\n\n connect() {\n super.connect();\n }\n\n addIngredient(event) {\n event.preventDefault();\n const newField = this.ingredientFieldsTarget.cloneNode(true);\n newField.querySelectorAll('input').forEach((input) => {\n input.value = '';\n input.name = input.name.replace(/\\d+/, new Date().getTime());\n });\n this.containerTarget.appendChild(newField);\n }\n\n removeIngredient(event) {\n event.preventDefault();\n const field = event.currentTarget.closest('.ingredient-fields');\n if (field) {\n const destroyField = field.querySelector(\n \"[data-target='admin--forms--medication.destroyField']\",\n );\n if (destroyField) {\n destroyField.value = '1';\n field.style.display = 'none';\n }\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static targets = ['template'];\n\n connect() {\n super.connect();\n }\n\n addField() {\n const container = document.getElementById('image-descriptions-fields');\n const template = this.templateTarget.cloneNode(true); // Clone the hidden template\n template.classList.remove('hidden'); // Remove hidden class\n template.removeAttribute('data-image-descriptions-target'); // Remove the target attribute\n container.appendChild(template);\n }\n\n removeField(event) {\n event.currentTarget.parentElement.remove();\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 = ['displayByDoses', 'doseSettings', 'doseLabelContainer'];\n\n connect() {\n super.connect();\n const isChecked = this.displayByDosesTarget.checked;\n this.toggleDoseSettingsOnLoad(isChecked);\n }\n\n toggleDoseSettings() {\n const isChecked = this.displayByDosesTarget.checked;\n this.doseSettingsTargets.forEach((label) => {\n label.classList.toggle('required', isChecked);\n });\n this.updateDoseLabelContainer(isChecked);\n }\n\n toggleDoseSettingsOnLoad(isChecked) {\n this.doseSettingsTargets.forEach((label) => {\n label.classList.toggle('required', isChecked);\n });\n this.updateDoseLabelContainer(isChecked);\n }\n\n updateDoseLabelContainer(isChecked) {\n const doseLabel = this.doseLabelContainerTarget.querySelector('label');\n this.doseLabelContainerTarget.classList.toggle('hidden', !isChecked);\n\n if (doseLabel) {\n doseLabel.classList.toggle('required', isChecked);\n }\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 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 { 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 render_form(event) {\n event.preventDefault();\n const form = event.currentTarget.closest('form');\n this.stimulate(\n 'Admin::SubscriptionTypes::FormReflex#render_form',\n event.target.dataset.subscriptionTypeId,\n form.querySelector('#product_id').value,\n form.querySelector('#variant_id').value\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\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';\n\nexport default class extends ApplicationController {\n static targets = ['consentAsked'];\n\n connect() {\n super.connect();\n document.addEventListener('BLOTOUT_CONSENT_GRANTED', this.onConsentGranted.bind(this));\n document.addEventListener('BLOTOUT_CONSENT_DENIED', this.onConsentDenied.bind(this));\n this.checkBlotoutConsent();\n }\n\n disconnect() {\n super.disconnect();\n document.removeEventListener('BLOTOUT_CONSENT_GRANTED', this.onConsentGranted.bind(this));\n document.removeEventListener('BLOTOUT_CONSENT_DENIED', this.onConsentDenied.bind(this));\n }\n\n onConsentGranted(event) {\n event.preventDefault();\n const { email, firstName, lastName } = event.detail;\n window.edgetag('consent', { all: true });\n // https://app.edgetag.io/docs/js#data\n window.edgetag('data', { email, firstName, lastName });\n window.edgetag('tag', 'Contact');\n }\n\n onConsentDenied(event) {\n event.preventDefault();\n window.edgetag('consent', { all: false });\n window.edgetag('tag', 'Contact');\n }\n\n checkBlotoutConsent() {\n if (this.consentAskedTarget.value === 'true') return;\n\n // Launch the Blotout consent modal\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'UserDemographics::BlotoutConsent#render_consent_form'\n );\n },\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 'otherReasonContainer',\n 'textArea',\n 'cancellationReasonsHidden',\n 'reasonDropdown',\n 'reviewNote',\n ];\n\n connect() {\n this.initializeSelect2();\n }\n\n initializeSelect2() {\n $(this.reasonDropdownTarget)\n .select2({\n minimumResultsForSearch: Infinity,\n width: '400px',\n })\n .on('change', this.syncCancellationReason.bind(this));\n }\n\n syncCancellationReason(event) {\n const isOtherSelected = this.selectedValue() === 'other';\n this.otherReasonContainerTarget.style.display = isOtherSelected\n ? 'block'\n : 'none';\n\n if (isOtherSelected) {\n this.cancellationReasonsHiddenTarget.value =\n this.textAreaTarget.value || '';\n } else {\n this.cancellationReasonsHiddenTarget.value = this.selectedValue();\n this.textAreaTarget.value = '';\n }\n\n this.updateReviewNote();\n this.enableSubmitButton();\n }\n\n enableSubmitButton() {\n const button = document.querySelector('#deny_request_button');\n button.removeAttribute('disabled');\n }\n\n updateOtherReason() {\n if (this.otherReasonContainerTarget.style.display === 'block') {\n this.cancellationReasonsHiddenTarget.value = this.textAreaTarget.value;\n }\n }\n\n updateReviewNote() {\n const prescriptonForm = document.querySelector('#prescription_form');\n const reviewNote = this.reviewNoteTarget;\n reviewNote.value = prescriptonForm.querySelector('.review_note').value;\n }\n\n submit(event) {\n if (this.selectedValue() !== 'other') return;\n\n event.preventDefault();\n this.reasonDropdownTarget.value = this.cancellationReasonsHiddenTarget.value;\n document.getElementById('prescription_deny_form').submit();\n }\n\n selectedValue() {\n return this.reasonDropdownTarget.value?.toLowerCase()?.trim();\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 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.find('select').on('change', function (e) {\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 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 toggle() {\n const doseSpotUi = document.getElementById('dose-spot-ui');\n doseSpotUi.style.display = doseSpotUi.style.display === 'block' ? 'none' : 'block';\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","// app/javascript/controllers/dynamic_fields_controller.js\nimport { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'faqsFieldsContainer',\n 'highlightsFieldsContainer',\n 'faqsTemplate',\n 'highlightsTemplate',\n ];\n\n addField(event) {\n event.preventDefault();\n\n const templateTargetName = event.target.dataset.target;\n const containerTargetName = event.target.dataset.container;\n\n const template = this.targets.find(templateTargetName.split('.').pop());\n const container = this.targets.find(containerTargetName.split('.').pop());\n\n const content = template.innerHTML;\n container.insertAdjacentHTML('beforeend', content);\n }\n\n removeField(event) {\n event.preventDefault();\n\n const fieldContainer = event.target.closest('.field-container');\n if (fieldContainer) {\n const destroyField = fieldContainer.querySelector(\n 'input[type=\"hidden\"][name*=\"_destroy\"]',\n );\n if (destroyField) {\n // For FAQs, set _destroy to '1' and hide the field\n destroyField.value = '1';\n fieldContainer.style.display = 'none';\n } else {\n // For Highlights, remove the field from the DOM\n fieldContainer.remove();\n }\n }\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 Rugiet Ready ED 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', 'isAdmin'];\n\n connect() {\n super.connect();\n this.element.addEventListener('change', this.onFormChange.bind(this));\n this.onFormChange();\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 const isPaused = pauseRadio && pauseRadio.checked;\n const nonPauseReasonSelected = $('input[name=\"store_subscriptions_subscription[subscription_type_id]\"]:checked:not([value=\"pause\"])').length > 0;\n const pauseReasonSelected = $('input[name=\"store_subscriptions_subscription[cancellation_reasons]\"]:checked').length > 0;\n const enableSubmit = nonPauseReasonSelected || (!nonPauseReasonSelected && pauseReasonSelected);\n\n submitBtn.prop('disabled', !enableSubmit);\n submitBtn.css('cursor', enableSubmit ? 'pointer' : 'not-allowed');\n\n if (isPaused || this.hasIsAdminTarget) {\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","/* global Persona */\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 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 'completeIdVerification',\n this.completeIdVerification.bind(this),\n );\n\n document.addEventListener(\n 'failIdVerification',\n this.failIdVerification.bind(this),\n );\n }\n\n disconnect() {\n super.disconnect();\n\n document.removeEventListener(\n 'completeIdVerification',\n this.completeIdVerification.bind(this),\n );\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 completeIdVerification() {\n window.location.href = '/user_verifications/complete_order';\n }\n\n failIdVerification() {\n hideLoadingSpinner();\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.removeEventListener('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 document.body.style.overflow = 'hidden';\n const { html, title, overlayOpacity, modalContainerCss } = 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 const modalContainer = document.querySelector('.modal-container');\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 if (modalContainerCss && modalContainer) {\n modalContainer.classList = modalContainerCss;\n }\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 document.dispatchEvent(new CustomEvent('modalIsClosed'));\n document.body.style.overflow = '';\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\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\n connect() {\n super.connect();\n this.initializeToggles();\n }\n\n initializeToggles() {\n const checkboxes = this.element.querySelectorAll('[data-toggle-target]');\n checkboxes.forEach((checkbox) => {\n this.toggleSection({ target: checkbox });\n });\n }\n\n toggleSection(event) {\n const checkbox = event.target;\n const targetSelectors = checkbox.dataset.toggleTarget.split(',');\n\n targetSelectors.forEach((selector) => {\n const toggleElement = document.querySelector(selector.trim());\n if (toggleElement) {\n toggleElement.classList.toggle('hidden', !checkbox.checked);\n }\n });\n\n const inputTargetSelector = checkbox.dataset.inputTarget;\n const inputTarget = document.querySelector(inputTargetSelector);\n if (inputTarget) {\n inputTarget.required = checkbox.checked;\n }\n }\n}\n","import ApplicationController from './application_controller';\nimport { showLoadingSpinner } from './utilities/loading_spinner';\nimport {\n selectOption,\n deselectOption,\n checkHardStops,\n activateNextButton,\n focusOnStoreOrder,\n checkSingleChoice,\n checkMultiAnswer,\n} from './utilities/questionnaire/answers_checker';\n\nexport default class extends ApplicationController {\n static targets = [\n 'noneAnswer',\n 'regularAnswer',\n 'commentable',\n 'endResponse',\n 'freeTextField',\n 'nextButtonLink',\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 activateNextButton() {\n activateNextButton(this);\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 const submitBtn = document.querySelector('.store-button.submit');\n submitBtn.style.pointerEvents = 'none';\n submitBtn.style.cursor = 'not-allowed';\n submitBtn.disabled = true;\n document.querySelector('form').submit();\n }\n\n checkFileUploads() {\n if (document.querySelector('li.image_item') !== null) {\n this.activateNextButton();\n this.enableSubmit();\n }\n }\n\n checkOnLoad() {\n checkMultiAnswer(this);\n checkSingleChoice(this);\n this.checkDosageQuantityRadios();\n this.checkFileUploads();\n focusOnStoreOrder();\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')\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) => deselectOption(answer));\n endResponses.forEach((endResponse) => deselectOption(endResponse));\n }\n\n if (answers.includes(selectedLabel)) {\n noneAnswers.forEach((answer) => deselectOption(answer));\n }\n\n if (endResponses.includes(selectedLabel)) {\n noneAnswers.forEach((answer) => deselectOption(answer));\n }\n\n this.displayMoreInfo($(selectedInput));\n\n if (\n selectedInput.checked &&\n !this.autoAdvanceAnswerSelected(selectedLabel)\n ) {\n deselectOption(selectedLabel);\n } else {\n selectOption(selectedLabel);\n }\n\n checkHardStops(this);\n\n if (this.autoAdvanceAnswerSelected(selectedLabel)) {\n document.dispatchEvent(this.advanceToNextQuestionEvent);\n }\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-store-darkgray font-bold');\n\n unselected\n .removeAttr('checked')\n .parent('li')\n .children('label')\n .removeClass('!border-store-darkgray 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-store-darkgray font-bold');\n unselected\n .removeAttr('checked')\n .prev()\n .removeClass('!border-store-darkgray 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 deselectOption(selectedLabel);\n }\n }\n\n checkDosageQuantityRadios(e) {\n const dosages = $('.card-radio');\n\n dosages.each((_, dosage) => {\n this.activateNextButton();\n\n const isChecked = $(dosage).prop('checked');\n const details = $(dosage).closest('.border').find('.variant-details');\n const label = $(dosage).closest('.border');\n\n if (isChecked) {\n $(dosage).prop('checked', true);\n\n label.addClass('border-black').addClass('border-2');\n details.removeClass('hidden').addClass('block');\n } else {\n label.removeClass('border-black').removeClass('border-2');\n details.removeClass('block').addClass('hidden');\n }\n });\n }\n\n checkFrequencyQuantityRadios(e) {\n if (e !== undefined && e.type === 'click') showLoadingSpinner();\n const frequencies = $(\n \"input[type=radio][name$='store_order[line_items_attributes][quantity]'],input[type=radio][name$='store_order[line_items_attributes][variant_id]']\",\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 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 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';\nimport { DropInInitializer } from './dropin_initializer';\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 'dropInContainer',\n 'paymentMethodType',\n 'paymentMethodNonce',\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.hasAddressToggleTarget) {\n this.addressToggleTarget.addEventListener('change', this.loadAddressForm.bind(this));\n this.stimulate('Shared::CreditCardReflex#toggle_address', true);\n }\n\n this.toggleButtonEnabled();\n\n this.checkedWithSmarty = false;\n\n if (this.hasDropInContainerTarget) {\n this.checkoutClientToken = this.dropInContainerTarget.dataset.checkoutClientToken;\n DropInInitializer.initializeDropIn(\n this,\n this.submitBtnTarget,\n this.checkoutClientToken,\n this.onCardChange.bind(this),\n this.dropInContainerTarget.dataset.orderAmount,\n 'vault',\n this.dropInContainerTarget.dataset.googlePayMerchantId,\n 'Merchant',\n );\n }\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.hasAddressToggleTarget) {\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 DropInInitializer.disableChoosePayment(this);\n\n if ((!this.hasAddressToggleTarget || this.addressToggleTarget.checked) && !this.checkedWithSmarty) {\n this.verifyAddress();\n } else {\n this.formTarget.submit();\n }\n }\n\n addressTouched() {\n if (!this.hasAddressToggleTarget) {\n return false;\n }\n return 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 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 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 addressReady = !this.addressTouched() || (this.addressTouched() && this.billAddressValuesPresent());\n const dropInReady = this.hasDropInContainerTarget && this.paymentMethodTypeTarget.value !== '';\n if (addressReady && dropInReady) {\n this.enableSubmitButton();\n } else {\n this.disableSubmitButton();\n }\n }\n\n enableSubmitButton() {\n this.submitBtnTarget.classList.remove('cursor-not-allowed', 'bg-gray-200');\n this.submitBtnTarget.removeAttribute('disabled');\n DropInInitializer.enableChoosePayment(this);\n }\n\n disableSubmitButton() {\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 dropin from 'braintree-web-drop-in';\n\nexport const DropInInitializer = {\n initializeDropIn(\n controller,\n submitButton,\n checkoutClientToken,\n enableSubmitButton,\n orderAmount,\n paypalFlow,\n googlePayMerchantId,\n applePayMerchantName,\n ) {\n if (!checkoutClientToken || checkoutClientToken === '') {\n return;\n }\n\n this.containerId = '#bt_drop_in';\n\n const dropinOptions = {\n vaultManager: true,\n preselectVaultedPaymentMethod: true,\n authorization: checkoutClientToken,\n container: this.containerId,\n card: {\n vault: {\n allowVaultCardOverride: true,\n },\n },\n };\n\n if (paypalFlow) {\n dropinOptions.paypal = {\n flow: paypalFlow,\n currency: 'USD',\n intent: 'authorize',\n buttonStyle: {\n shape: 'rect',\n color: 'blue',\n size: 'large',\n },\n };\n }\n\n if (applePayMerchantName) {\n dropinOptions.applePay = {\n displayName: applePayMerchantName,\n paymentRequest: {\n total: {\n label: 'Rugiet',\n amount: orderAmount,\n },\n requiredBillingContactFields: ['postalAddress'],\n },\n };\n }\n\n if (googlePayMerchantId) {\n dropinOptions.googlePay = {\n googlePayVersion: 2,\n merchantId: googlePayMerchantId,\n transactionInfo: {\n totalPriceStatus: 'ESTIMATED',\n totalPrice: orderAmount,\n currencyCode: 'USD',\n },\n };\n }\n\n dropin.create(\n {\n authorization: checkoutClientToken,\n container: this.containerId,\n ...dropinOptions,\n },\n (createErr, dropinInstance) => {\n if (createErr) {\n console.error('Error creating Drop-in instance:', createErr);\n return;\n }\n\n controller.dropinInstance = dropinInstance;\n\n submitButton.addEventListener('click', (event) => {\n event.preventDefault();\n\n dropinInstance.requestPaymentMethod((err, payload) => {\n if (err) {\n console.error('Error requesting payment method:', err);\n return;\n }\n\n controller.paymentMethodNonceTarget.value = payload.nonce;\n controller.submitForm();\n });\n });\n\n if (dropinInstance.isPaymentMethodRequestable()) {\n // This will be true if you generated the client token\n // with a customer ID and there is a saved payment method\n // available to tokenize with that customer.\n enableSubmitButton();\n }\n\n dropinInstance.on('paymentMethodRequestable', (event) => {\n switch (event.type) {\n case 'CreditCard':\n if (!event.paymentMethodIsSelected) {\n controller.paymentMethodTypeTarget.value = event.type;\n enableSubmitButton();\n }\n break;\n case 'GooglePayCard':\n case 'AndroidPayCard':\n case 'ApplePayCard':\n case 'PayPalAccount':\n if (event.paymentMethodIsSelected) {\n controller.paymentMethodTypeTarget.value = event.type;\n enableSubmitButton();\n }\n break;\n default:\n break;\n }\n });\n\n dropinInstance.on('noPaymentMethodRequestable', () => {\n controller.disableSubmitButton();\n });\n },\n );\n },\n\n disableChoosePayment(controller) {\n if (controller.dropinInstance) {\n controller.dropinInstance.updateConfiguration({\n card: { flow: 'disabled' },\n });\n document.querySelector(this.containerId).style.pointerEvents = 'none';\n document.querySelector(this.containerId).style.opacity = '0.6';\n }\n },\n\n enableChoosePayment(controller) {\n if (controller.dropinInstance) {\n controller.dropinInstance.updateConfiguration({\n card: { flow: 'vault' },\n });\n document.querySelector(this.containerId).style.pointerEvents = 'auto';\n document.querySelector(this.containerId).style.opacity = '1';\n }\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-auto');\n openIcon.classList.add('hidden');\n closeIcon.classList.remove('hidden');\n } else {\n content.classList.remove('max-h-auto');\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';\nimport { DropInInitializer } from '../../shared/dropin_initializer';\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 'dropInContainer',\n 'paymentMethodNonce',\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 document.addEventListener('modalIsClosed', this.handleCloseAndEnablePayment.bind(this));\n\n if (this.hasAddressToggleTarget) {\n this.addressToggleTarget.addEventListener('change', this.loadAddressForm.bind(this));\n\n // Trigger loadAddressForm on page load\n document.addEventListener('DOMContentLoaded', () => {\n const { checked } = this.addressToggleTarget;\n if (checked) {\n // Manually call loadAddressForm with a synthetic event\n const event = new Event('change', { bubbles: true, cancelable: true });\n this.addressToggleTarget.checked = checked; // Ensure it reflects the correct checked state\n this.addressToggleTarget.dispatchEvent(event); // Dispatch the event to trigger the function\n }\n });\n }\n this.addInputEventListeners();\n this.toggleButtonEnabled();\n\n if (this.hasDropInContainerTarget) {\n this.checkoutClientToken = this.dropInContainerTarget.dataset.checkoutClientToken;\n DropInInitializer.initializeDropIn(\n this,\n this.submitBtnTarget,\n this.checkoutClientToken,\n this.toggleButtonEnabled.bind(this),\n this.dropInContainerTarget.dataset.orderAmount,\n 'vault',\n this.dropInContainerTarget.dataset.googlePayMerchantId,\n 'Merchant',\n );\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 document.removeEventListener('modalIsClosed', this.handleCloseAndEnablePayment.bind(this));\n if (this.hasAddressToggleTarget) {\n this.addressToggleTarget.removeEventListener('change', this.loadAddressForm.bind(this));\n }\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 this.disableSubmitButton();\n DropInInitializer.disableChoosePayment(this);\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 && this.cityTarget.value && this.stateIdTarget.value && 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 DropInInitializer.enableChoosePayment(this);\n }\n\n clearRepeatAddressValidation() {\n window.storeCheckoutValidatedCurrentValues = false;\n this.toggleButtonEnabled();\n }\n\n formInputs() {\n return Array.from(\n this.formTarget.querySelectorAll(\n 'input[type=text]:not(#store_checkout_form_ship_address_attributes_address2, #bill_address_attributes_address2), option:checked, select',\n ),\n );\n }\n\n submitButtonCanBeEnabled() {\n return this.formInputs().every((input) => input.value) && this.serviceableStateSelected();\n }\n\n toggleButtonEnabled() {\n if (this.submitButtonCanBeEnabled()) {\n this.enableSubmitButton();\n } else {\n this.disableSubmitButton();\n }\n }\n\n enableSubmitButton() {\n if (this.hasSubmitBtnTarget) {\n this.submitBtnTarget.removeAttribute('disabled');\n this.submitBtnTarget.classList.remove('cursor-not-allowed');\n }\n DropInInitializer.enableChoosePayment(this);\n }\n\n disableSubmitButton() {\n if (this.hasSubmitBtnTarget) {\n this.submitBtnTarget.setAttribute('disabled', 'disabled');\n this.submitBtnTarget.classList.add('cursor-not-allowed');\n }\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 if (value) target.value = value;\n });\n }\n\n formFieldsForLocalstorage() {\n return [this.address1Target, this.address2Target, this.cityTarget, this.zipcodeTarget, this.stateIdTarget];\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 handleCloseAndEnablePayment() {\n this.toggleButtonEnabled();\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 'promoCode',\n 'promoSubmit',\n 'consent',\n 'agreementBtn',\n 'otpContainer',\n 'otpToggleArrow',\n 'savingsSwitchContainer',\n 'summaryTitle',\n 'summaryContent',\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-transparent');\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 otpChecked() {\n return this.otpContainerTarget.querySelector(\n 'input[name=\"subscription_type_id\"]',\n ).checked\n }\n\n getSelectedSubscriptionTypeInput() {\n return this.element.querySelector('input[name=\"subscription_type_id\"]:checked');\n }\n\n isOtp(element) {\n if (!this.hasOtpContainerTarget) return;\n const otpInput = this.otpContainerTarget.querySelector('input[name=\"subscription_type_id\"]');\n if (otpInput && otpInput.checked) {\n return otpInput;\n }\n }\n\n toggleOneTimePurchase() {\n const selectedInput = this.getSelectedSubscriptionTypeInput();\n\n // Disable showing/hiding of OTP sub type if OTP is selected\n if (selectedInput && this.isOtp(selectedInput)) {\n return;\n }\n\n this.otpContainerTarget.classList.toggle('overflow-hidden');\n\n if (this.otpContainerTarget.style.height === '0px') {\n this.otpContainerTarget.style.height = '102px';\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 toggleSavingsSwitchVisibility(show) {\n if (!this.hasSavingsSwitchContainerTarget) return;\n\n const container = this.savingsSwitchContainerTarget;\n\n if (show) {\n container.classList.add('max-h-60', 'opacity-100');\n container.classList.remove('hidden', 'max-h-0', 'opacity-0', '!my-0');\n } else {\n container.classList.add('max-h-0', 'opacity-0', '!my-0');\n container.classList.remove('max-h-60', 'opacity-100');\n\n container.addEventListener('transitionend', () => {\n if (container.classList.contains('max-h-0')) {\n container.classList.add('hidden');\n }\n }, { once: true });\n }\n }\n\n selectSubType(event) {\n const subTypeId = +event.currentTarget.value;\n const isOtp = this.isOtp(event.currentTarget);\n\n this.toggleSavingsSwitchVisibility(isOtp);\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#sub_type_update',\n subTypeId,\n );\n },\n });\n }\n\n selectQuarterly(e, quarterlySubId = 2) {\n e.preventDefault();\n\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::Cart::OrderSummary#sub_type_update',\n quarterlySubId,\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 if (this.consentTarget.checked) {\n this.agreementBtnTarget.removeAttribute('disabled');\n } else {\n this.agreementBtnTarget.setAttribute('disabled', true);\n }\n }\n\n onPromoCodeInput(e) {\n const promoCode = this.promoCodeTarget;\n const submitButton = this.promoSubmitTarget;\n\n submitButton.disabled = promoCode.value.trim() === '';\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 toggleSummaryContent() {\n if (this.hasSummaryContentTarget) {\n const h3Element = this.summaryTitleTarget.querySelector('h3');\n const imgElement = this.summaryTitleTarget.querySelector('img');\n\n h3Element.classList.toggle('mb-q-16');\n imgElement.classList.toggle('rotate-180');\n imgElement.classList.toggle('mb-[14px]');\n\n this.summaryContentTarget.classList.toggle('translate-y-1/2');\n this.summaryContentTarget.classList.toggle('max-h-0');\n this.summaryContentTarget.classList.toggle('invisible');\n this.summaryContentTarget.classList.toggle('opacity-0');\n }\n }\n}\n","import ApplicationController from '../../application_controller';\n\nexport default class extends ApplicationController {\n static values = {\n hasProducts: Boolean,\n };\n\n static targets = ['addressCard', 'addressForm'];\n\n connect() {\n super.connect();\n if (!this.hasProductsValue) return;\n\n this.modalCalled = false;\n this.originalAddress = this.captureAddressValues();\n document.addEventListener('click', this.handleCancelClick.bind(this));\n }\n\n disconnect() {\n document.removeEventListener('click', this.handleCancelClick.bind(this));\n }\n\n initialize() {\n if (!this.hasProductsValue) return;\n\n this.addressInputs = document.querySelectorAll(\n 'input[name^=\"store_checkout_form[ship_address_attributes]\"], select[name^=\"store_checkout_form[ship_address_attributes]\"]',\n );\n this.addressInputs.forEach((input) => {\n input.addEventListener('blur', this.handleBlur.bind(this));\n });\n }\n\n toggleAddressForm() {\n this.addressCardTarget.classList.toggle('hidden');\n this.addressFormTarget.classList.toggle('hidden');\n }\n\n handleCancelClick(event) {\n if (\n event.target.matches(\n '[data-action=\"click->store--checkout--checkout#cancelChange\"]',\n )\n ) {\n this.cancelChange();\n }\n }\n\n handleBlur() {\n if (this.modalCalled || !this.hasAddressChanged()) return;\n\n this.modalCalled = true;\n\n this.callStimulusAction({\n cb: () =>\n this.stimulate(\n 'Store::Cart::CheckoutAddressReflex#prefill_confirm_modal',\n ),\n });\n }\n\n hasAddressChanged() {\n return Array.from(this.addressInputs).some(\n (input) => input.value !== this.originalAddress[input.name],\n );\n }\n\n captureAddressValues() {\n return Array.from(this.addressInputs).reduce((values, input) => {\n values[input.name] = input.value;\n return values;\n }, {});\n }\n\n restoreAddressValues() {\n Object.entries(this.originalAddress).forEach(([name, value]) => {\n const input = document.querySelector(\n `input[name=\"${name}\"], select[name=\"${name}\"]`,\n );\n if (input) input.value = value;\n });\n }\n\n cancelChange() {\n this.restoreAddressValues();\n document.dispatchEvent(new CustomEvent('closeModal'));\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","/* 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', 'productSelect', 'truncatedComment'];\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 expandComment(event) {\n event.preventDefault();\n \n const commentText = event.currentTarget.dataset.commentTextValue;\n const truncatedCommentText = event.currentTarget.dataset.truncatedTextValue;\n const nearestCommentTarget = this.findNearestCommentTarget(event.currentTarget);\n \n if (nearestCommentTarget) {\n const isExpanded = event.currentTarget.classList.contains('expanded');\n this.toggleComment(\n nearestCommentTarget,\n event.currentTarget,\n isExpanded ? truncatedCommentText : commentText,\n isExpanded\n );\n }\n }\n \n findNearestCommentTarget(currentTarget) {\n return this.truncatedCommentTargets.find((target) =>\n target.closest('.comment-container') === currentTarget.closest('.comment-container')\n );\n }\n \n toggleComment(commentTarget, toggleButton, text, isExpanded) {\n commentTarget.innerHTML = text;\n toggleButton.textContent = isExpanded ? 'Show more' : 'Show less';\n toggleButton.classList.toggle('expanded', !isExpanded);\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 this.handleOrderPreferenceAfterUnpause();\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 handleOrderPreferenceAfterUnpause() {\n const orderNowAfterUnpause = document.getElementById('order-now-after-unpause');\n const orderLaterAfterUnpause = document.getElementById('order-later-after-unpause');\n\n if (orderNowAfterUnpause) {\n orderNowAfterUnpause.remove();\n showLoadingSpinner();\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::MembersPortal::OrderNow#set_order_now_details'\n ).then(hideLoadingSpinner);\n },\n });\n }\n\n if (orderLaterAfterUnpause) {\n const subscriptionId = orderLaterAfterUnpause.dataset.subscriptionId;\n orderLaterAfterUnpause.remove();\n showLoadingSpinner();\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::MembersPortal::ChangeNextProcessingDate#set_next_processing_date_details',\n subscriptionId\n ).then(hideLoadingSpinner);\n },\n });\n }\n }\n\n resumeSubFromOrderSummary(event) {\n event.preventDefault();\n this.callStimulusAction({\n cb: () => {\n document.querySelector('button[data-action=\"click->modal#closeModal\"]').click();\n this.stimulate(\n 'Store::MembersPortal::ChangeSubscription#set_change_subscription_details',\n event.currentTarget.dataset.subscriptionId,\n event.currentTarget.dataset.variantId\n );\n },\n });\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 'commentContainer',\n 'radioButton',\n 'submitButton',\n 'ccExpired',\n ];\n\n connect() {\n super.connect();\n this.validateForm();\n }\n\n promoUpdate() {\n const promoCode = document.getElementById('promo_code').value;\n if (!!promoCode) {\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'Store::MembersPortal::PromoUpdateReflex#update',\n promoCode,\n );\n },\n });\n }\n }\n\n select(event) {\n const value = event.target.value;\n\n this.radioButtonTargets.forEach((radioInput) => {\n const isActive = radioInput.value === value;\n\n const label = radioInput.closest('label');\n if (isActive) {\n label.classList.add('bg-black-charcoal', 'text-white');\n label.classList.remove('bg-white', 'text-black');\n } else {\n label.classList.add('bg-white', 'text-black');\n label.classList.remove('bg-black-charcoal', 'text-white');\n }\n });\n\n if (value) {\n this.commentContainerTarget.classList.remove('hidden');\n this.commentContainerTarget\n .querySelector('textarea')\n .setAttribute('required', 'required');\n\n if (value === 'no') {\n this.commentContainerTarget.querySelector('textarea').value =\n 'No, nothing has changed in my medical history or medications.';\n } else {\n this.commentContainerTarget.querySelector('textarea').value = '';\n }\n } else {\n this.commentContainerTarget.classList.add('hidden');\n this.commentContainerTarget\n .querySelector('textarea')\n .removeAttribute('required');\n }\n }\n\n validateForm() {\n const hasValidCC = this.hasValidCreditCard();\n const radioSelected = this.radioButtonTargets.some(\n (input) => input.checked,\n );\n\n if (hasValidCC && radioSelected) {\n this.submitButtonTarget.removeAttribute('disabled');\n } else {\n this.submitButtonTarget.setAttribute('disabled', 'true');\n }\n }\n\n hasValidCreditCard() {\n const ccExpired = this.ccExpiredTarget.value === 'true';\n return !ccExpired;\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';\nimport { selectOption, deselectOption, activateNextButton, checkSingleChoice, checkMultiAnswer } from '../../utilities/questionnaire/answers_checker';\n\nexport default class extends ApplicationController {\n static targets = [\"questionnaireContainer\"];\n\n connect() {\n super.connect();\n this.answers = {};\n localStorage.setItem('questionnaireAnswers', '{}');\n this.userSignedIn = this.questionnaireContainerTarget.dataset.userSignedIn === \"true\";\n this.productId = this.questionnaireContainerTarget.dataset.productId;\n this.floodlightId = this.questionnaireContainerTarget.dataset.floodlightId;\n this.trackFloodlightEvent('g_eve003');\n if (this.userSignedIn) {\n this._findAndKeepAnswers();\n }\n }\n\n initialize() {\n this.initializeQuestion();\n checkSingleChoice(this);\n checkMultiAnswer(this);\n }\n\n initializeQuestion() {\n const currentStep = this.questionnaireContainerTarget.dataset.currentStep;\n const currentQuestion = this.questionnaireContainerTarget.querySelector(`.spz-form-step.step-${currentStep}`);\n currentQuestion.classList.remove('hidden');\n if (currentStep > '1') {\n const firstQuestion = this.questionnaireContainerTarget.querySelector('.spz-form-step.step-1');\n firstQuestion.classList.add('hidden');\n const backButton = this.questionnaireContainerTarget.querySelector('.store-button--back');\n backButton.classList.remove('hidden');\n }\n this._disableSubmitButton();\n }\n\n selectMultipleAnswers(event) {\n const selectedLabel = event.target;\n const selectedInput = selectedLabel.parentNode.getElementsByTagName('input')[0];\n\n if (selectedInput.checked) {\n deselectOption(selectedLabel);\n } else {\n selectOption(selectedLabel);\n }\n\n this._saveAnswer(event.target, true);\n activateNextButton(this);\n }\n\n activateNextButton() {\n activateNextButton(this);\n }\n\n disableEnableSurveySubmit(event) {\n const firstActiveQuestion = event.target.closest('form').querySelector('.spz-form-step:not(.hidden)');\n\n const anyCheckedAnswers = firstActiveQuestion.querySelectorAll('.qa-radio:checked, .multi_answer_cb:checked, .doses-radio:checked').length\n\n if (anyCheckedAnswers) {\n activateNextButton(this);\n } else {\n this._disableSubmitButton();\n }\n }\n\n nextQuestion(event) {\n this._disableSubmitButton();\n\n const questionsForm = event.target.closest('form');\n const currentStep = questionsForm.dataset.currentStep;\n const isNextStep = questionsForm.dataset.questionsCount !== currentStep;\n\n if (isNextStep) {\n const nextStep = parseInt(currentStep) + 1;\n const currentStepElement = questionsForm.querySelector(`.spz-form-step.step-${currentStep}`);\n const nextStepElement = questionsForm.querySelector(`.spz-form-step.step-${nextStep}`);\n\n currentStepElement.classList.add('hidden');\n nextStepElement.classList.remove('hidden');\n this.disableEnableSurveySubmit(event);\n\n questionsForm.dataset.currentStep = nextStep;\n\n if (currentStep >= '1') {\n const backButton = questionsForm.querySelector('.store-button--back');\n backButton.classList.remove('hidden');\n this._modifyNextButton();\n }\n this.trackFloodlightEvent('g_eve00' + (parseInt(nextStep) + 2).toString());\n this.updateProgressBar(questionsForm.dataset.progressBarSteps, nextStep);\n } else {\n this._storeAnswersAndRedirect();\n }\n }\n\n updateProgressBar(registrationSteps, stepIndex) {\n const progressBar = document.querySelector('.checkout-progress__bar');\n const percentage = ((stepIndex) * 100 / (Number(registrationSteps) + 1)).toFixed(2);\n progressBar.style.width = `${percentage}%`;\n }\n\n previousQuestion(event) {\n const questionsForm = event.target.closest('form');\n const currentStep = parseInt(questionsForm.dataset.currentStep);\n\n if (currentStep > 1) {\n const previousStep = currentStep - 1;\n const currentStepElement = questionsForm.querySelector(`.spz-form-step.step-${currentStep}`);\n const previousStepElement = questionsForm.querySelector(`.spz-form-step.step-${previousStep}`);\n\n currentStepElement.classList.add('hidden');\n previousStepElement.classList.remove('hidden');\n\n questionsForm.dataset.currentStep = previousStep;\n this.disableEnableSurveySubmit(event)\n\n this.updateProgressBar(questionsForm.dataset.progressBarSteps, previousStep);\n\n if (previousStep === 1) {\n const backButton = questionsForm.querySelector('.store-button--back');\n backButton.classList.add('hidden');\n this._modifyNextButton();\n }\n }\n }\n\n trackFloodlightEvent(eventId) {\n if (window.gtag) {\n gtag('event', 'conversion', {\n 'allow_custom_scripts': true,\n 'send_to': `${this.floodlightId}/rugie0/${eventId}+standard`\n });\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-store-darkgray font-bold');\n unselected\n .removeAttr('checked')\n .prev()\n .removeClass('!border-store-darkgray font-bold');\n\n this._saveAnswer(event.target, false);\n }\n\n _findAndKeepAnswers() {\n const questionSections = this.questionnaireContainerTarget.querySelectorAll('.spz-form-step');\n questionSections.forEach(questionSection => {\n const checkedInputs = questionSection.querySelectorAll('input:checked');\n checkedInputs.forEach(input => {\n const questionId = input.closest('ul').dataset.questionId;\n const answerOptionId = input.value;\n\n if (!this.answers[questionId]) {\n this.answers[questionId] = [];\n }\n\n this.answers[questionId].push(answerOptionId);\n });\n });\n localStorage.setItem('questionnaireAnswers', JSON.stringify(this.answers));\n }\n\n _storeAnswersAndRedirect() {\n if (this.userSignedIn) {\n const baseFormUrl = this.questionnaireContainerTarget.action;\n const storeAnswersUrl = `${baseFormUrl}/store_pre_questionnaire_answers`\n\n fetch(storeAnswersUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-Token': document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n },\n body: JSON.stringify({ questionnaire_answers: this.answers })\n })\n .then(response => response.json())\n .then(data => {\n const nextPath = data.next_path;\n window.location.href = nextPath;\n }).catch(error => console.error('Error:', error));\n } else {\n window.location.href = '/users/sign_up';\n }\n }\n\n _disableSubmitButton() {\n const submitBtnEl = document.querySelector('.store-button.submit');\n submitBtnEl.disabled = true;\n }\n\n _saveAnswer(targetEl, isMultiple) {\n const questionId = targetEl.closest('ul').dataset.questionId;\n const answerOptionId = targetEl.value;\n\n if (!this.answers[questionId]) {\n this.answers[questionId] = [];\n }\n\n if (isMultiple) {\n if (targetEl.checked) {\n this.answers[questionId].push(answerOptionId);\n } else {\n this.answers[questionId] = this.answers[questionId].filter(id => id !== answerOptionId);\n }\n\n if (this.answers[questionId].length === 0) {\n delete this.answers[questionId];\n }\n } else {\n this.answers[questionId] = [answerOptionId];\n }\n\n localStorage.setItem('questionnaireAnswers', JSON.stringify(this.answers));\n }\n\n _modifyNextButton() {\n const currentStep = parseInt(this.questionnaireContainerTarget.dataset.currentStep);\n const nextBtn = this.questionnaireContainerTarget.querySelector('.store-button.spz-next');\n\n if (currentStep == 1) {\n nextBtn.classList.add('flex-1');\n } else if (currentStep > 1) {\n nextBtn.classList.remove('flex-1');\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\";\nimport { assignPreQuestionnaireAnswers } from \"../utilities/user/keep_pre_questionnaire\"\n\nexport default class extends ApplicationController {\n static targets = [\"formContainer\"];\n\n connect() {\n super.connect();\n assignPreQuestionnaireAnswers(this.formContainerTarget);\n }\n}\n","import ApplicationController from \"../application_controller\";\nimport { assignPreQuestionnaireAnswers } from \"../utilities/user/keep_pre_questionnaire\"\n\nexport default class extends ApplicationController {\n static targets = [\"container\", \"email\", \"validEmail\", \"emailValidationContainer\", \"formContainer\"];\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 assignPreQuestionnaireAnswers(this.formContainerTarget);\n if (localStorage.getItem('questionnaireAnswers') !== null) {\n $.ajax({\n type: 'GET',\n url: '/progress_bar_width',\n data: {\n questionnaire_answers: localStorage.getItem('questionnaireAnswers'),\n controller_name: 'users/sign_up',\n action_name: 'new'\n },\n success: function(response) {\n const progressPercent = response.progress_bar_width;\n $('.checkout-progress__bar').css('width', progressPercent + '%');\n },\n error: function(error) {\n console.error('Error fetching progress bar width:', error);\n }\n });\n }\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 = ['dob', 'phoneNum', 'state', 'submit'];\n\n validStates = this.stateTarget.dataset.validStates;\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 this.stateHandler = this.validateState.bind(this);\n\n this.dobTarget.addEventListener('input', this.dobHandler);\n this.phoneNumTarget.addEventListener('input', this.phoneNumHandler);\n this.stateTarget.addEventListener('change', this.stateHandler);\n this.stateTarget.addEventListener('input', this.stateHandler);\n }\n\n removeEventListeners() {\n this.dobTarget.removeEventListener('input', this.dobHandler);\n this.phoneNumTarget.removeEventListener('input', this.phoneNumHandler);\n this.stateTarget.removeEventListener('change', this.stateHandler);\n this.stateTarget.removeEventListener('input', this.stateHandler);\n }\n\n validateDob() {\n const errMsg = $('#dob_error_message');\n if (errMsg.length) {\n errMsg.html('');\n }\n\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: async () => {\n await this.stimulate(\n 'UserDemographics::Ineligible#validate_phone_number',\n this.phoneNumTarget.value,\n );\n const errMsg = $('#phone_error_message');\n\n if (errMsg.html().length === 0) {\n this.phoneNumTarget.setAttribute('valid', true);\n } else {\n this.phoneNumTarget.setAttribute('valid', false);\n this.disableSubmitButton();\n }\n },\n });\n }\n }\n\n validateState() {\n if (!this.stateTarget.value) {\n this.stateTarget.setAttribute('valid', false);\n this.disableSubmitButton();\n return;\n }\n\n if (this.validStates.includes(this.stateTarget.value)) {\n this.stateTarget.setAttribute('valid', true);\n this.enableSubmitButton();\n } else {\n this.stateTarget.setAttribute('valid', false);\n this.disableSubmitButton();\n this.callStimulusAction({\n cb: () => {\n this.stimulate(\n 'UserDemographics::Ineligible#set_ineligible_details',\n 'state',\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.allFieldsValid()) {\n this.submitTarget.removeAttribute('disabled');\n return;\n }\n\n this.submitTarget.setAttribute('disabled', true);\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\n this.submitTarget.removeAttribute('disabled');\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, this.stateTarget];\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-transparent');\n spinner.style.zIndex = 9999;\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 if (promoTextField) promoTextField.value = '';\n resultTag.classList.remove('text-error');\n resultTag.classList.add('text-store-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-store-success');\n resultTag.classList.add('text-error');\n resultTag.innerHTML = result;\n if (promoApplyBtn) promoApplyBtn.removeAttribute('disabled');\n}\n","export function focusOnStoreOrder() {\n $(\n \"input[name$='store_order[line_items_attributes][quantity]']:checked\",\n ).trigger('focus');\n}\n\nexport function checkSingleChoice(context) {\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-store-darkgray bg-green');\n\n activateNextButton(context);\n if (typeof context.enableSubmit === 'function') {\n context.enableSubmit();\n }\n $(el[idx])\n .nextAll('.more-info:first')\n .removeClass('hidden')\n .parent()\n .find('label')\n .addClass('mb-0');\n }\n });\n}\n\nexport function checkMultiAnswer(context) {\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-store-darkgray font-bold');\n\n activateNextButton(context);\n if (typeof context.enableSubmit === 'function') {\n context.enableSubmit();\n }\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\nexport function checkHardStops(context) {\n const endResponses = context.endResponseTargets;\n if (!endResponses) return;\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\nexport function activateNextButton(context) {\n if (typeof context.shouldEnableSectionForm === 'function' && !context.shouldEnableSectionForm()) return;\n const submitBtnEl = document.querySelector('.store-button.submit');\n if (!submitBtnEl) return;\n if (checkHardStops(context)) return;\n submitBtnEl.disabled = false;\n}\n\nexport function selectOption(labelElement) {\n if (labelElement.nodeName === 'LI') return;\n labelElement.parentNode.getElementsByTagName('input')[0].checked = true;\n labelElement.parentNode.classList.add('border-store-darkgray', 'font-bold');\n}\n\nexport function deselectOption(labelElement) {\n if (labelElement.nodeName === 'LI') return;\n labelElement.parentNode.getElementsByTagName('input')[0].checked = false;\n labelElement.parentNode.classList.remove(\n 'border-store-darkgray',\n 'font-bold',\n );\n}\n","export function assignPreQuestionnaireAnswers(form) {\n const answers = localStorage.getItem('questionnaireAnswers') || '{}';\n if (answers.length > 0 && answers !== '{}') {\n const input = document.createElement('input');\n input.type = 'hidden';\n input.name = 'questionnaire_answers';\n input.value = answers;\n form.appendChild(input);\n }\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","success","innerHTML","suggestions","length","label","val","item","street_line","secondary","city","state","zipcode","error","jqXHR","_textStatus","_errorThrown","status","getResponseHeader","console","log","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","dataset","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","address1Target","cityTarget","stateIdTarget","zipcodeTarget","valid","every","clearRepeatAddressValidation","addressLookupBypassed","addressValidatedWithSmarty","enableSubmit","submitBtnTarget","disableSubmit","submit_form","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","addIngredient","newField","ingredientFieldsTarget","cloneNode","name","Date","getTime","containerTarget","removeIngredient","destroyField","addField","template","templateTarget","removeField","parentElement","togglePermissions","hasPermissionsTarget","permissionsTarget","toggle","chevronTarget","removePermission","permissionTarget","isChecked","displayByDosesTarget","toggleDoseSettingsOnLoad","toggleDoseSettings","doseSettingsTargets","updateDoseLabelContainer","doseLabel","doseLabelContainerTarget","initialize","handleScroll","passive","headerBounds","getBoundingClientRect","scrollY","bottom","nestedSidebarTarget","nestedSidebarContainerTarget","nestedSidebarIconTarget","DeleteConfirmationController","delete","deleteConfirmation","select2","undefined","selectedIds","productRule","trigger","addRuleBtnTarget","addDiscount","newRow","newRuleTemplateTarget","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","getElementsByClassName","insertAdjacentHTML","remove_association","render_form","subscriptionTypeId","AlertsController","successAlertTargetConnected","successAlertTarget","fadeTo","slideUp","dispatchAlertRemovedEvent","errorAlertTargetConnected","errorAlertTarget","dismissAlert","dispatchEvent","Event","TIMEOUT","StimulusReflex","removeToasts","toasts","toast","type","className","reflexError","maxRetries","onConsentGranted","onConsentDenied","checkBlotoutConsent","firstName","lastName","edgetag","all","consentAskedTarget","AwaitingConsultationController","counterSinceTime","datetime","date","timer","theDate","toDate","_minute","_second","_hour","_day","setInterval","distance","now","clearInterval","days","Math","floor","hours","minutes","seconds","initializeSelect2","reasonDropdownTarget","minimumResultsForSearch","Infinity","width","on","syncCancellationReason","isOtherSelected","selectedValue","otherReasonContainerTarget","cancellationReasonsHiddenTarget","updateReviewNote","enableSubmitButton","updateOtherReason","prescriptonForm","reviewNoteTarget","PharmacistsCompoundingLogController","sortable","Sortable","create","animation","handle","ghostClass","EVENT_NAME","consumer","subscriptions","received","cableReady","perform","operations","reloadPrintLabels","autoReload","printLabelAreaTarget","html","reload","PharmacistsShippingController","hasShippingLabelTarget","shippingLabelTarget","printWindow","open","path","print","SearchController","searchTargets","doseSpotUi","inputTarget","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","els","getElementsByTagName","constructor","stimulusController","directUpload","DirectUpload","blob","emitDropzoneError","createHiddenInput","signed_id","emitDropzoneSuccess","directUploadWillStoreFileWithXHR","request","directUploadDidProgress","uploadProgress","loaded","total","previewTemplate","ERROR","emit","SUCCESS","templateTargetName","containerTargetName","targets","split","pop","fieldContainer","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","nonPauseReasonSelected","pauseReasonSelected","hasIsAdminTarget","removeClass","addClass","completeIdVerification","failIdVerification","initPersona","showLoadingSpinner","client","Persona","Client","templateId","environmentId","themeSetId","fields","brand","referenceId","onReady","onCancel","hideLoadingSpinner","onEvent","inquiryId","updateUserInquiryId","onComplete","beforeSend","xhr","setRequestHeader","attr","needHelp","href","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","overflow","title","overlayOpacity","modalContainerCss","modalContainer","insertAdjacentText","modalTarget","overlayTarget","hasTitleTarget","inactivateSessionModal","titleTarget","contentTarget","CustomEvent","questionnaireColTarget","questionnaireListTarget","required","add_state_association","statesTarget","addLicenseBtnTarget","remove_state_association","show","wrapper","add_itemTarget","initializeToggles","toggleSection","toggleTarget","selector","inputTargetSelector","hasNextButtonLinkTarget","nextButtonLinkTarget","nextPath","activateArrowAndEnableSubmit","deactivateArrowAndEnableSubmit","checkOnLoad","shouldEnableSubForm","handleQuantitySelectionTooltips","activateNextButton","deactivateRightArrow","clickSubmitBtn","click","questionnaireHardStop","pointerEvents","cursor","checkFileUploads","checkMultiAnswer","checkSingleChoice","checkDosageQuantityRadios","focusOnStoreOrder","shouldEnableSectionForm","submitBtnEl","rightarrowsubmitDisabled","newSrc","rightArrowEl","disableEnableSurveySubmit","each","selectMultipleAnswers","nodeName","selectedLabel","selectedInput","answers","regularAnswerTargets","noneAnswers","noneAnswerTargets","endResponses","endResponseTargets","answer","deselectOption","endResponse","displayMoreInfo","autoAdvanceAnswerSelected","selectOption","checkHardStops","advanceToNextQuestionEvent","toggleRadioButton","selected","unselected","not","closeMoreInfos","parent","children","removeAttr","toggleMultipleRadioButton","prev","toggleUserAnswerFreeText","commentableTarget","hardStop","dosage","details","checkFrequencyQuantityRadios","frequencies","idx","frequencySelection","parentsUntil","freeTextFieldTargetConnected","nextAll","clickEl","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","hasAddressToggleTarget","addressToggleTarget","loadAddressForm","hasDropInContainerTarget","checkoutClientToken","dropInContainerTarget","DropInInitializer","initializeDropIn","onCardChange","orderAmount","googlePayMerchantId","disableChoosePayment","verifyAddress","addressTouched","creditCardTouched","creditCardTouchedTarget","creditCardValuesPresent","creditCardInputs","billAddressValuesPresent","addressInputs","inputs","hasNumberTarget","push","numberTarget","hasVerificationValueTarget","verificationValueTarget","hasExpiryTarget","expiryTarget","hasZipcodeTarget","hasAddress1Target","hasAddress2Target","hasCityTarget","hasStateIdTarget","onCardInput","onAddressChange","onAddressInput","addressReady","dropInReady","paymentMethodTypeTarget","disableSubmitButton","enableChoosePayment","hasAddressTouchedTarget","paypalFlow","applePayMerchantName","containerId","dropinOptions","vaultManager","preselectVaultedPaymentMethod","authorization","card","vault","allowVaultCardOverride","paypal","flow","currency","intent","buttonStyle","shape","color","applePay","displayName","paymentRequest","amount","requiredBillingContactFields","googlePay","googlePayVersion","merchantId","transactionInfo","totalPriceStatus","totalPrice","currencyCode","dropin","createErr","dropinInstance","requestPaymentMethod","err","paymentMethodNonceTarget","nonce","isPaymentMethodRequestable","paymentMethodIsSelected","updateConfiguration","opacity","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","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","zESettings","analytics","EVENTS_TO_SEND","zE","action","indexOf","scrollToElement","pageElement","positionX","positionY","offsetLeft","offsetTop","offsetParent","scrollTo","left","top","behavior","addStoredFieldValues","handleCloseAndEnablePayment","bubbles","cancelable","storeCheckoutSkipAddressLookup","storeCheckoutValidatedCurrentValues","removeBypassedHiddenField","logSkip","addBypassedHiddenField","hiddenField","from","submitButtonCanBeEnabled","serviceableStateSelected","hasSubmitBtnTarget","validateServiceableState","storeFieldValues","formFieldsForLocalstorage","removeStoredFieldValues","removeItem","beforeReflex","spinner","afterReflex","handleTooltips","handlePromoSuccess","handlePromoError","otpChecked","otpContainerTarget","getSelectedSubscriptionTypeInput","isOtp","hasOtpContainerTarget","otpInput","toggleOneTimePurchase","otpToggleArrowTarget","toggleRefundSummary","slideToggle","toggleSavingsSwitchVisibility","hasSavingsSwitchContainerTarget","savingsSwitchContainerTarget","once","selectSubType","selectQuarterly","quarterlySubId","checkSub","consentChecked","consentTarget","agreementBtnTarget","onPromoCodeInput","promoCodeTarget","promoSubmitTarget","changeSub","isMobile","variantUpdate","variantId","variantTarget","subscriptionTypeTarget","packsPerMonth","packsPerMonthTarget","promoUpdate","result","promoTextField","resultTag","promoApplyBtn","toggleSummaryContent","hasSummaryContentTarget","h3Element","summaryTitleTarget","imgElement","summaryContentTarget","hasProducts","Boolean","hasProductsValue","modalCalled","originalAddress","captureAddressValues","handleCancelClick","handleBlur","toggleAddressForm","addressCardTarget","addressFormTarget","cancelChange","hasAddressChanged","some","reduce","values","restoreAddressValues","entries","waitForSrc","initKoreAi","jwt","KoreSDK","chatConfig","botOptions","botInfo","customData","allowLocation","callback","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","isInvalidType","isOversized","fileToRemove","dt","DataTransfer","removeFilePreviews","thumbnail","toggleCollapse","chevron","expandComment","commentText","commentTextValue","truncatedCommentText","truncatedTextValue","nearestCommentTarget","findNearestCommentTarget","isExpanded","toggleComment","truncatedCommentTargets","toggleButton","templateSelection","formatState","pathname","$state","handleOrderPreferenceAfterUnpause","orderMore","confirmOrderMore","orderNowAfterUnpause","orderLaterAfterUnpause","subscriptionId","resumeSubFromOrderSummary","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","radioButtonTargets","radioInput","isActive","commentContainerTarget","hasValidCC","hasValidCreditCard","radioSelected","submitButtonTarget","ccExpiredTarget","showReactivatedModal","showChangeSubscriptionModal","reactivated","skipAMonth","hasMenuTarget","removeFile","entryId","attachmentId","fileId","filesSelected","test","userSignedIn","questionnaireContainerTarget","floodlightId","trackFloodlightEvent","_findAndKeepAnswers","initializeQuestion","currentStep","_disableSubmitButton","_saveAnswer","nextQuestion","questionsForm","questionsCount","nextStep","parseInt","currentStepElement","nextStepElement","_modifyNextButton","updateProgressBar","progressBarSteps","_storeAnswersAndRedirect","registrationSteps","stepIndex","progressBar","percentage","Number","toFixed","previousQuestion","previousStep","previousStepElement","eventId","gtag","questionSection","answerOptionId","stringify","baseFormUrl","fetch","method","questionnaire_answers","json","next_path","targetEl","isMultiple","nextBtn","reachOutToCustomerCareModal","reasonSelected","overrideBtn","override","enableSubmitBtn","disableSubmitBtn","toggleSubmitBtn","setOverrideAttribute","initializeListeners","triggerFocusOnAutofill","getInputs","inputContainerClass","updateFilledClass","filledInitialCheck","getComputedStyle","getPropertyValue","emailInput","fnameInput","lnameInput","assignPreQuestionnaireAnswers","formContainerTarget","processChange","debounce","checkEmail","validateEmailField","_event","emailValidationContainerTarget","invalidateEmailField","controller_name","action_name","progressPercent","progress_bar_width","validEmailTargetConnected","validEmailTarget","emailTarget","func","args","apply","validations","errorEl","stateTarget","afterValidatePhoneNumber","phoneNumTarget","addEventListeners","removeEventListeners","dobHandler","validateDob","phoneNumHandler","validatePhoneNumber","stateHandler","validateState","dobTarget","errMsg","isValidDOB","async","currentYear","year","birthYear","hasAttribute","allFieldsValid","refreshCSRFToken","Rails","csrf","resource","zIndex","moreInfo","next","hasHardStop","inputId","labelElement"],"sourceRoot":""}