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ACrC,MAAM6tC,EAAQ1lD,KAAK+5C,cACnB/5C,KAAK+5C,cAAc96C,GAAK,yBAA2BI,EAAEoB,OAAOiC,MAC5D,IAAIqN,EAASpI,OAAOC,SAASmI,OACzBtI,EAAM,IAAIrG,IAAI2O,EAAS,iBAAmB1Q,EAAEoB,OAAOiC,OACnDi1C,GACFlwC,EAAIsuC,aAAanR,OAAO,gBAAiB+S,GAE3C+N,EAAMvkD,IAAMsG,CACd,E,mECfF,IAAIihD,EAAW/yC,EAAQ,MAER,MAAM7Q,EACnBojB,WAAAA,GACEloB,KAAK2oD,YAAuDhhD,OAAOihD,GACrE,CAEA7jD,QAAAA,GACM/E,KAAK2oD,WAAahhD,OAAOkhD,aAC3BH,EAAS3jD,SAAS4C,OAAOkhD,YACzBH,EAASI,OAAOz3B,IAAI,CAClB03B,YAAaphD,OAAOqhD,aACpBC,OAAQthD,OAAOuhD,cACfC,QAASxhD,OAAOkhD,aAGtB,CAEAvjD,KAAAA,CAAMJ,EAAYE,EAAmB,CAAC,GAChC,eAAgB+3B,YAClB/3B,EAA2B,SAAI+3B,UAAUisB,WAAWC,UAElDrpD,KAAK2oD,UACPD,EAASpjD,MAAMJ,EAAYE,GAE3BvB,QAAQC,IAAIoB,EAAYE,EAE5B,E","sources":["webpack://gumstack/./client/controllers/ sync \\.js$","webpack://gumstack/./client/controllers/account_controller.js","webpack://gumstack/./client/controllers/ai_flows_controller.js","webpack://gumstack/./client/controllers/alert_controller.js","webpack://gumstack/./client/controllers/analytics_controller.js","webpack://gumstack/./client/controllers/attachment_controller.js","webpack://gumstack/./client/controllers/auto_redirect_controller.js","webpack://gumstack/./client/controllers/auto_save_controller.js","webpack://gumstack/./client/controllers/auto_save_indicator_controller.js","webpack://gumstack/./client/controllers/auto_submit_controller.js","webpack://gumstack/./client/controllers/autosize_controller.js","webpack://gumstack/./client/controllers/billing_controller.js","webpack://gumstack/./client/controllers/bsmodal_controller.js","webpack://gumstack/./client/controllers/bsoffcanvas_controller.js","webpack://gumstack/./client/controllers/bsrowclick_controller.js","webpack://gumstack/./client/controllers/bstab_controller.js","webpack://gumstack/./client/controllers/bstooltip_controller.js","webpack://gumstack/./client/controllers/business_accounts_controller.js","webpack://gumstack/./client/lib/view-port.js","webpack://gumstack/./client/controllers/calendar_flatpickr_controller.js","webpack://gumstack/./client/controllers/campaign_custom_value_controller.js","webpack://gumstack/./client/controllers/campaign_edit_controller.js","webpack://gumstack/./client/controllers/character_counter_controller.js","webpack://gumstack/./client/controllers/character_undertaker_controller.js","webpack://gumstack/./client/controllers/checkbox_select_all_controller.js","webpack://gumstack/./client/controllers/choice_controller.js","webpack://gumstack/./client/controllers/clear_input_controller.js","webpack://gumstack/./client/controllers/code_editor_controller.js","webpack://gumstack/./client/controllers/component_controller.js","webpack://gumstack/./client/controllers/constantize_controller.js","webpack://gumstack/./client/controllers/contact_controller.js","webpack://gumstack/./client/controllers/conversation_controller.js","webpack://gumstack/./client/controllers/conversations_bulk_assign_controller.js","webpack://gumstack/./client/controllers/create_session_controller.js","webpack://gumstack/./client/controllers/custom_attribute_controller.js","webpack://gumstack/./client/controllers/customize_trix_controller.js","webpack://gumstack/./client/controllers/customize_widget_controller.js","webpack://gumstack/./client/controllers/dashboard_controller.js","webpack://gumstack/./client/controllers/data_mapping_controller.js","webpack://gumstack/./client/controllers/date_picker_controller.js","webpack://gumstack/./client/controllers/daterange_controller.js","webpack://gumstack/./client/controllers/datetime_controller.js","webpack://gumstack/./client/controllers/debounced_search_controller.js","webpack://gumstack/./client/controllers/dropzone_controller.js","webpack://gumstack/./client/controllers/echarts_controller.js","webpack://gumstack/./client/controllers/edit_session_controller.js","webpack://gumstack/./client/controllers/editorjs/media_library.js","webpack://gumstack/./client/controllers/editorjs_controller.js","webpack://gumstack/./client/controllers/editorjs_transformer.js","webpack://gumstack/./client/controllers/embed/index.js","webpack://gumstack/./client/controllers/emoji_picker_controller.js","webpack://gumstack/./client/controllers/flatpickr_controller.js","webpack://gumstack/./client/controllers/form_redirect_controller.js","webpack://gumstack/./client/controllers/funnel_chart_controller.js","webpack://gumstack/./client/controllers/hide_modal_controller.js","webpack://gumstack/./client/controllers/highlightjs_controller.js","webpack://gumstack/./client/controllers/inbox_video_call_controller.js","webpack://gumstack/./client/controllers/index.js","webpack://gumstack/./client/controllers/interactive_message_controller.js","webpack://gumstack/./client/controllers/issue_controller.js","webpack://gumstack/./client/controllers/lead_queue_controller.js","webpack://gumstack/./client/controllers/live/gemini_live_api.js","webpack://gumstack/./client/controllers/live/live_media_manager.js","webpack://gumstack/./client/controllers/live_call_controller.js","webpack://gumstack/./client/controllers/live_controller.js","webpack://gumstack/./client/controllers/media_library_controller.js","webpack://gumstack/./client/controllers/message_controller.js","webpack://gumstack/./client/controllers/message_feedback_controller.js","webpack://gumstack/./client/controllers/modal_controller.js","webpack://gumstack/./client/controllers/nav_bar_controller.js","webpack://gumstack/./client/controllers/nav_sidebar_controller.js","webpack://gumstack/./client/controllers/navlink_controller.js","webpack://gumstack/./client/controllers/ninja_keys_controller.js","webpack://gumstack/./client/controllers/notifications_controller.js","webpack://gumstack/./client/controllers/offcanvas_controller.js","webpack://gumstack/./client/controllers/office_hour_controller.js","webpack://gumstack/./client/controllers/onboarding_controller.js","webpack://gumstack/./client/controllers/otp_controller.js","webpack://gumstack/./client/controllers/payment_controller.js","webpack://gumstack/./client/controllers/phone_onboarding_controller.js","webpack://gumstack/./client/controllers/photoswipe_controller.js","webpack://gumstack/./client/controllers/popup_picker_controller.js","webpack://gumstack/./client/controllers/pricing_controller.js","webpack://gumstack/./client/controllers/qrcode_controller.js","webpack://gumstack/./client/controllers/razorpay_controller.js","webpack://gumstack/./client/controllers/read_more_controller.js","webpack://gumstack/./client/controllers/recaptcha_v2_controller.js","webpack://gumstack/./client/controllers/required_fields_controller.js","webpack://gumstack/./client/controllers/reveal_controller.js","webpack://gumstack/./client/controllers/select2_controller.js","webpack://gumstack/./client/controllers/select_controller.js","webpack://gumstack/./client/controllers/selector_controller.js","webpack://gumstack/./client/controllers/session_controller.js","webpack://gumstack/./client/controllers/session_creation_controller.js","webpack://gumstack/./client/controllers/session_queue_controller.js","webpack://gumstack/./client/controllers/session_room_controller.js","webpack://gumstack/./client/controllers/session_sidebar_controller.js","webpack://gumstack/./client/controllers/sessions_controller.js","webpack://gumstack/./client/controllers/set_file_value_controller.js","webpack://gumstack/./client/controllers/settings_controller.js","webpack://gumstack/./client/controllers/sidecar_controller.js","webpack://gumstack/./client/controllers/sla_controller.js","webpack://gumstack/./client/controllers/slide_controller.js","webpack://gumstack/./client/controllers/slot_picker_controller.js","webpack://gumstack/./client/controllers/smart_scroll_controller.js","webpack://gumstack/./client/controllers/smart_scroll_item_controller.js","webpack://gumstack/./client/controllers/sortable_controller.js","webpack://gumstack/./client/controllers/splash_controller.js","webpack://gumstack/./client/controllers/sso_controller.js","webpack://gumstack/./client/controllers/stimulus_utils.js","webpack://gumstack/./client/controllers/story_controller.js","webpack://gumstack/./client/controllers/story_page_controller.js","webpack://gumstack/./client/controllers/story_player_controller.js","webpack://gumstack/./client/controllers/subscriber_autocomplete_controller.js","webpack://gumstack/./client/controllers/tabs_controller.js","webpack://gumstack/./client/controllers/telephone_input_controller.js","webpack://gumstack/./client/controllers/template_message_controller.js","webpack://gumstack/./client/controllers/time_period_controller.js","webpack://gumstack/./client/controllers/trigger_file_picker_controller.js","webpack://gumstack/./client/controllers/turbo_fetch_controller.js","webpack://gumstack/./client/controllers/turbo_frame_controller.js","webpack://gumstack/./client/controllers/unavailability_controller.js","webpack://gumstack/./client/controllers/user_autocomplete_controller.js","webpack://gumstack/./client/controllers/variable_picker_controller.js","webpack://gumstack/./client/controllers/video_apps_controller.js","webpack://gumstack/./client/controllers/video_call_creation_controller.js","webpack://gumstack/./client/controllers/visibility_controller.js","webpack://gumstack/./client/controllers/whatsapp_template_controller.js","webpack://gumstack/./client/lib/analytics.js"],"sourcesContent":["var map = {\n\t\"./account_controller.js\": 1955,\n\t\"./action_panel_controller.js\": 1707,\n\t\"./ai_flows_controller.js\": 6770,\n\t\"./alert_controller.js\": 7224,\n\t\"./analytics_controller.js\": 4294,\n\t\"./attachment_controller.js\": 6733,\n\t\"./auto_redirect_controller.js\": 6846,\n\t\"./auto_save_controller.js\": 9205,\n\t\"./auto_save_indicator_controller.js\": 8591,\n\t\"./auto_submit_controller.js\": 8878,\n\t\"./autosize_controller.js\": 8232,\n\t\"./billing_controller.js\": 2263,\n\t\"./bsmodal_controller.js\": 7318,\n\t\"./bsoffcanvas_controller.js\": 8454,\n\t\"./bsrowclick_controller.js\": 4763,\n\t\"./bstab_controller.js\": 5104,\n\t\"./bstooltip_controller.js\": 2424,\n\t\"./business_accounts_controller.js\": 3167,\n\t\"./calendar_flatpickr_controller.js\": 3751,\n\t\"./call_invite_controller.js\": 6726,\n\t\"./campaign_custom_value_controller.js\": 3696,\n\t\"./campaign_edit_controller.js\": 7831,\n\t\"./cart_controller.js\": 6424,\n\t\"./character_counter_controller.js\": 5266,\n\t\"./character_undertaker_controller.js\": 7373,\n\t\"./checkbox_select_all_controller.js\": 8316,\n\t\"./choice_controller.js\": 2559,\n\t\"./clear_input_controller.js\": 7140,\n\t\"./clipboard_controller.js\": 9325,\n\t\"./code_editor_controller.js\": 7219,\n\t\"./component_controller.js\": 5267,\n\t\"./constantize_controller.js\": 3472,\n\t\"./contact_controller.js\": 2250,\n\t\"./conversation_controller.js\": 8667,\n\t\"./conversations_bulk_assign_controller.js\": 5239,\n\t\"./create_session_controller.js\": 1687,\n\t\"./custom_attribute_controller.js\": 6442,\n\t\"./customize_trix_controller.js\": 9747,\n\t\"./customize_widget_controller.js\": 3734,\n\t\"./dashboard_controller.js\": 6658,\n\t\"./data_mapping_controller.js\": 4949,\n\t\"./date_picker_controller.js\": 8135,\n\t\"./date_slot_picker_controller.js\": 9858,\n\t\"./daterange_controller.js\": 4569,\n\t\"./datetime_controller.js\": 565,\n\t\"./debounced_search_controller.js\": 9480,\n\t\"./dropzone_controller.js\": 1283,\n\t\"./echarts_controller.js\": 3208,\n\t\"./edit_session_controller.js\": 7127,\n\t\"./editorjs/media_library.js\": 6822,\n\t\"./editorjs_controller.js\": 5432,\n\t\"./editorjs_transformer.js\": 77,\n\t\"./embed/index.js\": 5001,\n\t\"./emoji_picker_controller.js\": 4785,\n\t\"./feedback_controller.js\": 7003,\n\t\"./flatpickr_controller.js\": 9310,\n\t\"./form_redirect_controller.js\": 4303,\n\t\"./funnel_chart_controller.js\": 2851,\n\t\"./google_analytics_controller.js\": 2518,\n\t\"./hide_modal_controller.js\": 5584,\n\t\"./highlightjs_controller.js\": 267,\n\t\"./inbox_video_call_controller.js\": 2101,\n\t\"./incoming_video_call_controller.js\": 2993,\n\t\"./index.js\": 1935,\n\t\"./interactive_message_controller.js\": 9822,\n\t\"./issue_controller.js\": 4239,\n\t\"./lead_queue_controller.js\": 6516,\n\t\"./live/gemini_live_api.js\": 7235,\n\t\"./live/live_media_manager.js\": 1577,\n\t\"./live_call_controller.js\": 7275,\n\t\"./live_controller.js\": 5100,\n\t\"./media_library_controller.js\": 7018,\n\t\"./message_controller.js\": 9131,\n\t\"./message_feedback_controller.js\": 9315,\n\t\"./modal_controller.js\": 4921,\n\t\"./nav_bar_controller.js\": 3259,\n\t\"./nav_sidebar_controller.js\": 4396,\n\t\"./navlink_controller.js\": 9318,\n\t\"./ninja_keys_controller.js\": 9249,\n\t\"./notifications_controller.js\": 3442,\n\t\"./offcanvas_controller.js\": 5489,\n\t\"./office_hour_controller.js\": 2027,\n\t\"./onboarding_controller.js\": 513,\n\t\"./otp_controller.js\": 2097,\n\t\"./payment_controller.js\": 6744,\n\t\"./phone_onboarding_controller.js\": 9869,\n\t\"./photoswipe_controller.js\": 9664,\n\t\"./popup_picker_controller.js\": 7453,\n\t\"./pricing_controller.js\": 8288,\n\t\"./qrcode_controller.js\": 8852,\n\t\"./razorpay_controller.js\": 7724,\n\t\"./read_more_controller.js\": 450,\n\t\"./recaptcha_v2_controller.js\": 2948,\n\t\"./required_fields_controller.js\": 9395,\n\t\"./reveal_controller.js\": 6261,\n\t\"./select2_controller.js\": 4696,\n\t\"./select_controller.js\": 6742,\n\t\"./selector_controller.js\": 8853,\n\t\"./session_controller.js\": 7754,\n\t\"./session_creation_controller.js\": 6806,\n\t\"./session_queue_controller.js\": 5538,\n\t\"./session_room_controller.js\": 9536,\n\t\"./session_sidebar_controller.js\": 8023,\n\t\"./sessions_controller.js\": 8445,\n\t\"./set_file_value_controller.js\": 3285,\n\t\"./settings_controller.js\": 4237,\n\t\"./share_controller.js\": 1471,\n\t\"./shopify_widget_overlay_controller.js\": 1586,\n\t\"./sidecar_controller.js\": 3663,\n\t\"./sla_controller.js\": 5924,\n\t\"./slide_controller.js\": 3967,\n\t\"./slot_picker_controller.js\": 383,\n\t\"./smart_scroll_controller.js\": 1367,\n\t\"./smart_scroll_item_controller.js\": 4847,\n\t\"./snack_controller.js\": 9948,\n\t\"./sortable_controller.js\": 3394,\n\t\"./splash_controller.js\": 4371,\n\t\"./sso_controller.js\": 2327,\n\t\"./stimulus_utils.js\": 1517,\n\t\"./story_controller.js\": 7509,\n\t\"./story_page_controller.js\": 4709,\n\t\"./story_player_controller.js\": 6011,\n\t\"./subscriber_autocomplete_controller.js\": 755,\n\t\"./tabs_controller.js\": 1634,\n\t\"./telephone_input_controller.js\": 4787,\n\t\"./template_message_controller.js\": 7656,\n\t\"./time_period_controller.js\": 7079,\n\t\"./timezone_search_controller.js\": 5094,\n\t\"./trigger_file_picker_controller.js\": 1324,\n\t\"./turbo_fetch_controller.js\": 4155,\n\t\"./turbo_frame_controller.js\": 6308,\n\t\"./unavailability_controller.js\": 4034,\n\t\"./user_autocomplete_controller.js\": 5774,\n\t\"./variable_picker_controller.js\": 875,\n\t\"./video_apps_controller.js\": 6282,\n\t\"./video_call_controller.js\": 9233,\n\t\"./video_call_creation_controller.js\": 8270,\n\t\"./video_call_participation_controller.js\": 7748,\n\t\"./visibility_controller.js\": 9434,\n\t\"./whatsapp_template_controller.js\": 5385,\n\t\"./widget/index.js\": 4024,\n\t\"./widget_preview_controller.js\": 5799,\n\t\"./widget_video_call_controller.js\": 9977,\n\t\"controllers/account_controller.js\": 1955,\n\t\"controllers/action_panel_controller.js\": 1707,\n\t\"controllers/ai_flows_controller.js\": 6770,\n\t\"controllers/alert_controller.js\": 7224,\n\t\"controllers/analytics_controller.js\": 4294,\n\t\"controllers/attachment_controller.js\": 6733,\n\t\"controllers/auto_redirect_controller.js\": 6846,\n\t\"controllers/auto_save_controller.js\": 9205,\n\t\"controllers/auto_save_indicator_controller.js\": 8591,\n\t\"controllers/auto_submit_controller.js\": 8878,\n\t\"controllers/autosize_controller.js\": 8232,\n\t\"controllers/billing_controller.js\": 2263,\n\t\"controllers/bsmodal_controller.js\": 7318,\n\t\"controllers/bsoffcanvas_controller.js\": 8454,\n\t\"controllers/bsrowclick_controller.js\": 4763,\n\t\"controllers/bstab_controller.js\": 5104,\n\t\"controllers/bstooltip_controller.js\": 2424,\n\t\"controllers/business_accounts_controller.js\": 3167,\n\t\"controllers/calendar_flatpickr_controller.js\": 3751,\n\t\"controllers/call_invite_controller.js\": 6726,\n\t\"controllers/campaign_custom_value_controller.js\": 3696,\n\t\"controllers/campaign_edit_controller.js\": 7831,\n\t\"controllers/cart_controller.js\": 6424,\n\t\"controllers/character_counter_controller.js\": 5266,\n\t\"controllers/character_undertaker_controller.js\": 7373,\n\t\"controllers/checkbox_select_all_controller.js\": 8316,\n\t\"controllers/choice_controller.js\": 2559,\n\t\"controllers/clear_input_controller.js\": 7140,\n\t\"controllers/clipboard_controller.js\": 9325,\n\t\"controllers/code_editor_controller.js\": 7219,\n\t\"controllers/component_controller.js\": 5267,\n\t\"controllers/constantize_controller.js\": 3472,\n\t\"controllers/contact_controller.js\": 2250,\n\t\"controllers/conversation_controller.js\": 8667,\n\t\"controllers/conversations_bulk_assign_controller.js\": 5239,\n\t\"controllers/create_session_controller.js\": 1687,\n\t\"controllers/custom_attribute_controller.js\": 6442,\n\t\"controllers/customize_trix_controller.js\": 9747,\n\t\"controllers/customize_widget_controller.js\": 3734,\n\t\"controllers/dashboard_controller.js\": 6658,\n\t\"controllers/data_mapping_controller.js\": 4949,\n\t\"controllers/date_picker_controller.js\": 8135,\n\t\"controllers/date_slot_picker_controller.js\": 9858,\n\t\"controllers/daterange_controller.js\": 4569,\n\t\"controllers/datetime_controller.js\": 565,\n\t\"controllers/debounced_search_controller.js\": 9480,\n\t\"controllers/dropzone_controller.js\": 1283,\n\t\"controllers/echarts_controller.js\": 3208,\n\t\"controllers/edit_session_controller.js\": 7127,\n\t\"controllers/editorjs/media_library.js\": 6822,\n\t\"controllers/editorjs_controller.js\": 5432,\n\t\"controllers/editorjs_transformer.js\": 77,\n\t\"controllers/embed/index.js\": 5001,\n\t\"controllers/emoji_picker_controller.js\": 4785,\n\t\"controllers/feedback_controller.js\": 7003,\n\t\"controllers/flatpickr_controller.js\": 9310,\n\t\"controllers/form_redirect_controller.js\": 4303,\n\t\"controllers/funnel_chart_controller.js\": 2851,\n\t\"controllers/google_analytics_controller.js\": 2518,\n\t\"controllers/hide_modal_controller.js\": 5584,\n\t\"controllers/highlightjs_controller.js\": 267,\n\t\"controllers/inbox_video_call_controller.js\": 2101,\n\t\"controllers/incoming_video_call_controller.js\": 2993,\n\t\"controllers/index.js\": 1935,\n\t\"controllers/interactive_message_controller.js\": 9822,\n\t\"controllers/issue_controller.js\": 4239,\n\t\"controllers/lead_queue_controller.js\": 6516,\n\t\"controllers/live/gemini_live_api.js\": 7235,\n\t\"controllers/live/live_media_manager.js\": 1577,\n\t\"controllers/live_call_controller.js\": 7275,\n\t\"controllers/live_controller.js\": 5100,\n\t\"controllers/media_library_controller.js\": 7018,\n\t\"controllers/message_controller.js\": 9131,\n\t\"controllers/message_feedback_controller.js\": 9315,\n\t\"controllers/modal_controller.js\": 4921,\n\t\"controllers/nav_bar_controller.js\": 3259,\n\t\"controllers/nav_sidebar_controller.js\": 4396,\n\t\"controllers/navlink_controller.js\": 9318,\n\t\"controllers/ninja_keys_controller.js\": 9249,\n\t\"controllers/notifications_controller.js\": 3442,\n\t\"controllers/offcanvas_controller.js\": 5489,\n\t\"controllers/office_hour_controller.js\": 2027,\n\t\"controllers/onboarding_controller.js\": 513,\n\t\"controllers/otp_controller.js\": 2097,\n\t\"controllers/payment_controller.js\": 6744,\n\t\"controllers/phone_onboarding_controller.js\": 9869,\n\t\"controllers/photoswipe_controller.js\": 9664,\n\t\"controllers/popup_picker_controller.js\": 7453,\n\t\"controllers/pricing_controller.js\": 8288,\n\t\"controllers/qrcode_controller.js\": 8852,\n\t\"controllers/razorpay_controller.js\": 7724,\n\t\"controllers/read_more_controller.js\": 450,\n\t\"controllers/recaptcha_v2_controller.js\": 2948,\n\t\"controllers/required_fields_controller.js\": 9395,\n\t\"controllers/reveal_controller.js\": 6261,\n\t\"controllers/select2_controller.js\": 4696,\n\t\"controllers/select_controller.js\": 6742,\n\t\"controllers/selector_controller.js\": 8853,\n\t\"controllers/session_controller.js\": 7754,\n\t\"controllers/session_creation_controller.js\": 6806,\n\t\"controllers/session_queue_controller.js\": 5538,\n\t\"controllers/session_room_controller.js\": 9536,\n\t\"controllers/session_sidebar_controller.js\": 8023,\n\t\"controllers/sessions_controller.js\": 8445,\n\t\"controllers/set_file_value_controller.js\": 3285,\n\t\"controllers/settings_controller.js\": 4237,\n\t\"controllers/share_controller.js\": 1471,\n\t\"controllers/shopify_widget_overlay_controller.js\": 1586,\n\t\"controllers/sidecar_controller.js\": 3663,\n\t\"controllers/sla_controller.js\": 5924,\n\t\"controllers/slide_controller.js\": 3967,\n\t\"controllers/slot_picker_controller.js\": 383,\n\t\"controllers/smart_scroll_controller.js\": 1367,\n\t\"controllers/smart_scroll_item_controller.js\": 4847,\n\t\"controllers/snack_controller.js\": 9948,\n\t\"controllers/sortable_controller.js\": 3394,\n\t\"controllers/splash_controller.js\": 4371,\n\t\"controllers/sso_controller.js\": 2327,\n\t\"controllers/stimulus_utils.js\": 1517,\n\t\"controllers/story_controller.js\": 7509,\n\t\"controllers/story_page_controller.js\": 4709,\n\t\"controllers/story_player_controller.js\": 6011,\n\t\"controllers/subscriber_autocomplete_controller.js\": 755,\n\t\"controllers/tabs_controller.js\": 1634,\n\t\"controllers/telephone_input_controller.js\": 4787,\n\t\"controllers/template_message_controller.js\": 7656,\n\t\"controllers/time_period_controller.js\": 7079,\n\t\"controllers/timezone_search_controller.js\": 5094,\n\t\"controllers/trigger_file_picker_controller.js\": 1324,\n\t\"controllers/turbo_fetch_controller.js\": 4155,\n\t\"controllers/turbo_frame_controller.js\": 6308,\n\t\"controllers/unavailability_controller.js\": 4034,\n\t\"controllers/user_autocomplete_controller.js\": 5774,\n\t\"controllers/variable_picker_controller.js\": 875,\n\t\"controllers/video_apps_controller.js\": 6282,\n\t\"controllers/video_call_controller.js\": 9233,\n\t\"controllers/video_call_creation_controller.js\": 8270,\n\t\"controllers/video_call_participation_controller.js\": 7748,\n\t\"controllers/visibility_controller.js\": 9434,\n\t\"controllers/whatsapp_template_controller.js\": 5385,\n\t\"controllers/widget/index.js\": 4024,\n\t\"controllers/widget_preview_controller.js\": 5799,\n\t\"controllers/widget_video_call_controller.js\": 9977\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 = 3397;","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'noticeDuration',\n 'slotItem',\n 'customTime',\n 'integrationForm',\n 'profilePic',\n 'profilePicForm',\n 'notificationWrapper',\n 'notificationToggle',\n 'notificationError',\n 'ringtoneInput',\n 'ringtoneWrapper',\n 'instructionsInput',\n ];\n\n connect() {\n this._handleSlotItemClick();\n this.checkAndEnableNotifications();\n }\n\n toggleIntegrationForm() {\n $('#app-integration-form').fadeToggle();\n }\n\n open360DialogPermissionScreen() {\n const windowFeatures =\n 'toolbar=no, menubar=no, width=600, height=900, top=100, left=100';\n open(\n 'https://hub.360dialog.com/dashboard/app/uXt6vjPA/permissions',\n 'integratedOnboardingWindow',\n windowFeatures\n );\n }\n\n showCustomTime(e) {\n e.target.style.display = 'none';\n this.customTimeTarget.classList.remove('d-none');\n this.customTimeTarget.classList.add('d-flex');\n }\n\n changeProfilePic(e) {\n if (e.target.files[0])\n this.profilePicTarget.src = URL.createObjectURL(e.target.files[0]);\n this.profilePicFormTarget.requestSubmit();\n }\n\n checkAndEnableNotifications() {\n if (this.hasNotificationToggleTarget) {\n var granted = Notification.permission == 'granted';\n this.notificationWrapperTarget.dataset.notificationEnabled = granted;\n this.notificationToggleTarget.checked = granted;\n this.notificationToggleTarget.disabled = granted;\n }\n }\n\n enableNotifications() {\n this.notificationToggleTarget.checked = false;\n Notification.requestPermission().then((res) => {\n if (res == 'denied')\n this.notificationErrorTarget.classList.remove('d-none');\n this.checkAndEnableNotifications();\n });\n }\n\n toggleRingtone() {\n let enabled = this.ringtoneInputTarget.value == 'true';\n this.ringtoneInputTarget.value = !enabled;\n this.ringtoneWrapperTarget.dataset.ringtone = !enabled;\n }\n\n _handleSlotItemClick() {\n if (this.hasSlotItemTarget) {\n this.slotItemTargets.forEach((el) => {\n el.addEventListener('click', () => {\n if (!el.classList.contains('active')) el.classList.add('active');\n this.noticeDurationTarget.value = parseInt(el.dataset.value);\n this._reset_slots(el);\n });\n });\n }\n }\n\n _reset_slots(slot) {\n let slots = document.querySelectorAll('.slot-item');\n slots.forEach((el) => {\n if (slot !== el) el.classList.remove('active');\n });\n }\n\n playRingtone() {\n let ringtoneEl = document.querySelector('audio#dummy-ringtone');\n if (ringtoneEl) {\n ringtoneEl\n .play()\n .then(console.log('played audio'))\n .catch((e) => {\n console.log('audio did not play', e);\n });\n ringtoneEl.muted = false;\n }\n }\n\n setScheduledCallMode(e) {\n if (e.target.checked)\n this.element.dataset.scheduledCallMode = e.target.value;\n if (e.target.value == 'gumstack')\n this.instructionsInputTarget.setAttribute(\n 'placeholder',\n 'Include any other instructions here.'\n );\n else\n this.instructionsInputTarget.setAttribute(\n 'placeholder',\n 'INCLUDE MEETING LINK OR INSTRUCTIONS ON HOW YOU\\'LL CALL THEM BACK'\n );\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['value'];\n\n mediaSelected(e) {\n const mediaId = e.detail.media_id;\n this.valueTarget.value = mediaId;\n this.valueTarget.form.requestSubmit();\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n connect() {\n setInterval(() => {\n this.element.classList.remove('show');\n this.element.classList.add('hide');\n }, 4000);\n }\n}\n","import { event } from 'jquery';\nimport { Controller } from 'stimulus';\nimport Analytics from '../lib/analytics';\n\nexport default class extends Controller {\n connect() {\n this.analytics = new Analytics();\n this.analytics.identify();\n }\n\n trackEvent(event) {\n const element = this.element;\n const event_name = element.dataset.eventName;\n const event_properties = this._get_event_properties(element.dataset);\n event_properties['scope'] = 'user_action';\n\n this.analytics.track(event_name, event_properties);\n }\n\n _get_event_properties(obj) {\n const event_properties = Object.keys(obj)\n .filter((key) => key.startsWith('analytics'))\n .reduce((filtered, key) => {\n filtered[key.split('analytics')[1]] = obj[key];\n return filtered;\n }, {});\n\n return event_properties;\n }\n}\n","// import Rails from '@rails/ujs'\nimport { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport $ from 'jquery';\n// let lastMessageId\n// const reload = controller => {\n// controller.stimulate('ChatReflex#reload')\n// }\n// const debouncedReload = debounce(reload, 100)\n\nexport default class extends Controller {\n static targets = ['uploadModal', 'notificationTemplate'];\n connect() {\n StimulusReflex.register(this);\n }\n\n reload() {\n this.stimulate('Attachment#fetch', this.element.dataset.sessionId);\n }\n\n notify() {\n let appUID = this.element.dataset.appUid;\n let appParent = document.querySelector('#' + appUID + '-app');\n let isAppOn = appParent.dataset['appDisplay'] == 'true';\n if (!isAppOn) {\n let content = this.notificationTemplateTarget.innerHTML;\n const fragment = document.createRange().createContextualFragment(content);\n this.element.parentElement.appendChild(fragment);\n var rect = this.element.getBoundingClientRect();\n $('.app-notification').css('left', rect.x - 60);\n $('.app-notification').css('top', rect.y - 65);\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport * as Turbo from '@hotwired/turbo';\n\nexport default class extends Controller {\n static targets = ['timer'];\n static values = { duration: Number };\n\n connect() {\n this.startTimer();\n }\n\n startTimer() {\n this.durationValue = this.durationValue || 5000;\n console.log(this.durationValue);\n this.timeInteraval = setInterval(() => {\n this.timerTarget.innerText = this.durationValue / 1000;\n this.durationValue -= 1000;\n console.log(this.durationValue);\n if (this.durationValue <= 0) {\n let url =\n new URLSearchParams(window.location.search).get('back_to') ||\n window.location.pathname;\n this.next(url);\n }\n }, 1000);\n }\n\n next(url) {\n clearInterval(this.timeInteraval);\n history.pushState({ turbo_frame_history: true }, '', url);\n\n Turbo.visit(url);\n }\n}\n","import { Controller } from 'stimulus';\nimport debounced from 'debounced';\n\nexport default class extends Controller {\n static targets = ['input', 'form'];\n static outlets = ['auto-save-indicator'];\n\n connect() {\n debounced.initialize({\n input: { wait: 500 },\n keyup: { wait: 500 },\n 'trix-change': { wait: 100 },\n change: { wait: 600 },\n });\n if (this.hasInputTarget) {\n this.inputTargets.forEach((inputTarget) => {\n if (\n inputTarget instanceof HTMLInputElement ||\n inputTarget instanceof HTMLTextAreaElement\n ) {\n if (\n typeof inputTarget.setSelectionRange === 'function' &&\n inputTarget.type == 'text'\n ) {\n inputTarget.setSelectionRange(\n inputTarget.value.length,\n inputTarget.value.length\n );\n }\n }\n });\n }\n if (this.hasAutoSaveIndicatorOutlet) {\n this.boundInput = this.input.bind(this);\n this.boundSubmitEnd = this.submitEnd.bind(this);\n this.formTarget.addEventListener('input', this.boundInput);\n this.formTarget.addEventListener('turbo:submit-end', this.boundSubmitEnd);\n }\n }\n\n disconnect() {\n if (this.hasAutoSaveIndicatorOutlet) {\n this.formTarget.removeEventListener('input', this.boundInput);\n this.formTarget.removeEventListener(\n 'turbo:submit-end',\n this.boundSubmitEnd\n );\n }\n }\n\n save() {\n this.formTarget.requestSubmit();\n }\n\n input() {\n this.autoSaveIndicatorOutlet.showIndicator();\n }\n\n submitEnd() {\n setTimeout(() => {\n this.autoSaveIndicatorOutlet.hideIndicator();\n }, 1000);\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['saving', 'saved'];\n\n connect() {\n this.showingSaving = false;\n this.showingSaved = false;\n }\n\n showIndicator() {\n if (this.showingSaving || this.showingSaved) return;\n this.showingSaving = true;\n this.savingTarget.classList.remove('d-none');\n }\n\n hideIndicator() {\n if (!this.showingSaving || this.showingSaved) return;\n\n this.showingSaving = false;\n this.showingSaved = true;\n\n this.savingTarget.classList.add('d-none');\n this.savedTarget.classList.remove('d-none');\n\n setTimeout(() => {\n this.savedTarget.classList.add('d-none');\n this.showingSaved = false;\n }, 2000);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n submit(event) {\n event.target.form.requestSubmit()\n }\n}","import autosize from 'autosize';\nimport { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n connect() {\n autosize(this.element);\n this.#setupIntersectionObserver();\n }\n\n disconnect() {\n if (this.observer) {\n this.observer.disconnect();\n }\n autosize.destroy(this.element);\n }\n\n #setupIntersectionObserver() {\n this.observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n autosize.update(this.element);\n }\n });\n });\n\n this.observer.observe(this.element);\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static values = { quantity: Number, proPlanActive: String };\n static targets = [\n 'upgardeBtn',\n 'formWrapper',\n 'confirmBtn',\n 'quantity',\n 'price',\n ];\n\n connect() {\n this.initial_quantity = parseInt(this.quantityTarget.value);\n this._setPrice(this.initial_quantity);\n }\n\n _setPrice(no_of_agents) {\n let price = no_of_agents * 29;\n this.priceTarget.innerText = `$${price}`;\n }\n\n showBillingForm() {\n this.upgardeBtnTarget.style.animation = 'fadeOut 0.5s 4.5s';\n this.upgardeBtnTarget.classList.toggle('d-none');\n\n this.formWrapperTarget.style.animation = 'fadeIn 0.5s forwards';\n this.formWrapperTarget.classList.toggle('d-none');\n }\n\n increment() {\n let new_value = parseInt(this.quantityTarget.value) + 1;\n if (new_value <= 10) {\n this.quantityTarget.value = new_value;\n this.quantityValue = new_value;\n this._setPrice(new_value);\n }\n\n this.confirmBtnTarget.disabled =\n this.quantityValue == this.initial_quantity ||\n this.proPlanActive == 'true';\n }\n\n decrement() {\n let new_value = parseInt(this.quantityTarget.value) - 1;\n if (new_value >= 1) {\n this.quantityTarget.value = new_value;\n this.quantityValue = new_value;\n this._setPrice(new_value);\n }\n this.confirmBtnTarget.disabled =\n this.quantityValue == this.initial_quantity ||\n this.proPlanActive == 'true';\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"bsmodal\"\nexport default class extends Controller {\n connect() {\n this.modal = new bootstrap.Modal(this.element, {\n keyboard: false,\n })\n this.modal.show()\n }\n\n disconnect() {\n this.modal.hide()\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"bsmodal\"\nexport default class extends Controller {\n connect() {\n this.offcanvas = new bootstrap.Offcanvas(this.element, {\n keyboard: false,\n })\n this.offcanvas.show()\n }\n\n disconnect() {\n this.offcanvas.hide()\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener('click', () => { this.onRowClick() });\n }\n\n onRowClick() {\n const url = this.element.dataset.href;\n Turbo.visit(url);\n }\n}","import { Controller } from 'stimulus';\nimport * as Turbo from '@hotwired/turbo';\n\nexport default class extends Controller {\n static values = {\n forceVisit: Boolean,\n tabParam: String, default: 'tab',\n };\n\n connect() {\n this.element.querySelectorAll('.nav-item').forEach((navItem) => {\n navItem.addEventListener('click', (e) => {\n this.onTabClick(e);\n });\n });\n }\n\n onTabClick(e) {\n let navLink = e.target.closest('[data-bs-toggle=\"tab\"]');\n const hash = window.location.hash\n if (navLink && navLink.id) {\n window.history.replaceState(\n null,\n null,\n `?${this.tabParamValue}=${navLink.id.replace('-tab', '')}${hash ? hash : ''}`\n );\n }\n\n if (this.hasForceVisitValue && this.forceVisitValue) {\n Turbo.visit(window.location.href, { action: 'replace' });\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"bstooltip\"\nexport default class extends Controller {\n static values = {\n title: String,\n placement: String,\n customClass: String\n }\n\n connect() {\n const options = {\n title: this.titleValue,\n placement: this.hasPlacementValue ? this.placementValue : 'top',\n customClass: this.customClassValue\n };\n console.log(this.customClassValue);\n if (this.hasCustomClassValue) {\n options['template'] = '
'\n }\n this.tooltip = new bootstrap.Tooltip(this.element, options);\n this.tooltip.enable();\n }\n\n disconnect() {\n this.tooltip.disable();\n }\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static values = { solutionId: String };\n\n open360DialogPermissionScreen() {\n const windowFeatures =\n 'toolbar=no, menubar=no, width=600, height=900, top=100, left=100';\n open(\n 'https://hub.360dialog.com/dashboard/app/uXt6vjPA/permissions',\n 'integratedOnboardingWindow',\n windowFeatures\n );\n }\n\n openMetaDialogScreen() {\n this.hideAlert();\n window.addEventListener('message', this.sessionInfoListener.bind(this)); // Add event listener to listen to the session info\n let configuration = {\n config_id: '1393833954534708', // configuration ID obtained in the previous step goes here\n response_type: 'code', // must be set to 'code' for System User access token\n override_default_response_type: true,\n extras: {\n \"feature\": \"whatsapp_embedded_signup\",\n \"sessionInfoVersion\": 3,\n setup: {\n // Prefilled data can go here\n }\n }\n }\n\n // Add solution id to the configuration extras setup object\n if(this.hasSolutionIdValue && this.solutionIdValue){\n configuration.extras.setup.solutionID = this.solutionIdValue;\n }\n\n if (typeof FB !== 'undefined') {\n FB.login((response) => {\n const code = response?.authResponse?.code;\n if (code && this.phone_number_id && this.waba_id) {\n this.showAlert(\"Connecting your phone number... Please do not close or refresh the page.\");\n // Use this token to call the debug_token API and get the shared WABA's ID\n window.location.href = \"/account/integrations/whatsapp?code=\" + code + \n \"&phone_number_id=\" + this.phone_number_id + \n \"&waba_id=\" + this.waba_id;\n } else {\n this.showAlert(\"Couldn't connect your phone number. Please try again.\");\n console.error(\"Missing code, phone_number_id, or waba_id\");\n }\n }, configuration);\n } else {\n console.error(\"FB object is not defined\");\n }\n }\n\n showAlert(text) {\n document.querySelector('#phone-alert').classList.remove('d-none');\n document.querySelector('#phone-alert-text').innerText = text;\n }\n\n hideAlert() {\n document.querySelector('#phone-alert').classList.add('d-none');\n document.querySelector('#phone-alert-text').innerText = \"\";\n }\n\n sessionInfoListener(event) {\n if (event.origin == null) {\n return;\n }\n \n // Make sure the data is coming from facebook.com\n if (!event.origin.endsWith(\"facebook.com\")) {\n return;\n }\n \n try {\n const data = JSON.parse(event.data);\n if (data.type === 'WA_EMBEDDED_SIGNUP') {\n // if user finishes the Embedded Signup flow\n if (data.event === 'FINISH') {\n const {phone_number_id, waba_id} = data.data;\n this.phone_number_id = phone_number_id;\n this.waba_id = waba_id;\n console.log(\"Phone number ID \", phone_number_id, \" WhatsApp business account ID \", waba_id);\n }\n // if user reports an error during the Embedded Signup flow\n else if (data.event === 'ERROR') {\n const {error_message} = data.data;\n console.error(\"error \", error_message);\n }\n // if user cancels the Embedded Signup flow\n else {\n const{current_step} = data.data;\n console.warn(\"Cancel at \", current_step);\n }\n }\n } catch {\n // Don’t parse info that’s not a JSON\n console.log('Non JSON Response', event.data);\n }\n };\n}","export default function getViewport() {\n const width = Math.max(\n document.documentElement.clientWidth,\n window.innerWidth || 0\n );\n if (width <= 576) return 'xs';\n if (width <= 768) return 'sm';\n if (width <= 992) return 'md';\n if (width <= 1200) return 'lg';\n return 'xl';\n}\n","import Flatpickr from 'stimulus-flatpickr';\nimport weekSelectPlugin from 'flatpickr/dist/plugins/weekSelect/weekSelect.js';\nimport viewPort from '../lib/view-port';\n\nexport default class extends Flatpickr {\n connect() {\n const { flatpickrPlugin, view } = this.element.dataset;\n this.config = {\n disableMobile: true,\n position: 'left',\n };\n if (\n flatpickrPlugin == 'week-select' &&\n view == 'WEEK' &&\n (viewPort() != 'xs' || viewPort != 'sm')\n ) {\n this.config.plugins = [new weekSelectPlugin({})];\n }\n\n super.connect();\n }\n\n change(value) {\n const { target } = this.element.dataset;\n const dom = document.getElementById(target);\n dom.value = value[0].toISOString();\n dom.dispatchEvent(new Event('change'));\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['value', 'image'];\n\n mediaSelected(e) {\n const mediaURL = e.detail.selected_url;\n const mediaId = e.detail.media_id;\n if (this.hasImageTarget) {\n this.imageTarget.src = mediaURL;\n }\n this.valueTarget.value = mediaId;\n this.valueTarget.form.requestSubmit();\n }\n}\n","import moment from 'moment';\nimport initIntlTelephoneInput from '../lib/telephone_input';\nimport { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'scheduleModeSelect',\n 'scheduleModeConfig',\n 'deliveryModeSelect',\n 'deliveryModeConfig',\n 'scheduledLaunchTime',\n 'scheduledStartDate',\n 'scheduledEndDate',\n 'launchTime',\n 'receivers',\n ];\n\n connect() {\n if (this.hasScheduleModeSelectTarget) {\n this.changeScheduleMode();\n if (this.scheduledLaunchTimeTarget.value) {\n this._changeScheduledLaunchTime(this.scheduledLaunchTimeTarget.value);\n }\n this.changeDeliveryMode();\n }\n if (this.hasReceiversTarget) {\n this.initReceiversField();\n }\n }\n\n changeScheduleMode() {\n if (this.scheduleModeSelectTarget.value == 'instant') {\n this.scheduleModeConfigTarget.classList.add('d-none');\n this.scheduleModeConfigTarget\n .querySelector('input[type=datetime-local]')\n .removeAttribute('required');\n this.resetDefaultDeliveryTimes();\n } else {\n this.scheduleModeConfigTarget.classList.remove('d-none');\n this.scheduleModeConfigTarget\n .querySelector('input[type=datetime-local]')\n .setAttribute('required', true);\n }\n }\n\n changeDeliveryMode() {\n if (this.deliveryModeSelectTarget.value == 'bulk') {\n this.deliveryModeConfigTarget.classList.add('d-none');\n this.deliveryModeConfigTarget\n .querySelectorAll('input[type=date]')[0]\n .removeAttribute('required');\n this.deliveryModeConfigTarget.querySelectorAll(\n 'input[type=date]'\n )[0].value = '';\n } else {\n this.deliveryModeConfigTarget.classList.remove('d-none');\n this.scheduledStartDateTarget.setAttribute('required', true);\n this.scheduledEndDateTarget.setAttribute('required', true);\n }\n }\n\n changeScheduledLaunchTime(e) {\n this._changeScheduledLaunchTime(e.target.value);\n }\n\n _changeScheduledLaunchTime(dt) {\n this.setDefaultScheduledStartDate(dt);\n this.setDefaultLaunchTime(dt);\n }\n\n setDefaultScheduledStartDate(dt) {\n if (dt.match('\\\\d+-\\\\d+-\\\\d+') && dt.match('\\\\d+-\\\\d+-\\\\d+')[0]) {\n this.scheduledStartDateTarget.value = dt.match('\\\\d+-\\\\d+-\\\\d+')[0];\n this.scheduledStartDateTarget.setAttribute(\n 'min',\n dt.match('\\\\d+-\\\\d+-\\\\d+')[0]\n );\n }\n }\n\n setDefaultLaunchTime(dt) {\n if (dt.match('\\\\d+:\\\\d+') && dt.match('\\\\d+:\\\\d+')[0]) {\n this.launchTimeTarget.value = dt.match('\\\\d+:\\\\d+')[0];\n this.launchTimeTarget.setAttribute('min', dt.match('\\\\d+:\\\\d+')[0]);\n }\n }\n\n resetDefaultDeliveryTimes() {\n this.scheduledStartDateTarget.setAttribute(\n 'min',\n moment(new Date()).format('YYYY-MM-DD')\n );\n }\n\n initReceiversField() {\n initIntlTelephoneInput();\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['input', 'counter'];\n static values = { maxLength: Number };\n\n connect() {\n this.inputTarget.addEventListener('input', this.count.bind(this));\n this.count();\n }\n\n count() {\n let inputValue = this.inputTarget.value;\n let length = inputValue.length;\n\n if (length > this.maxLengthValue) {\n inputValue = inputValue.substring(0, this.maxLengthValue);\n length = this.maxLengthValue;\n }\n\n this.inputTarget.value = inputValue;\n this.counterTarget.textContent = `${length}/${this.maxLengthValue}`;\n }\n}\n","// 🪦\nimport { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['input'];\n\n connect() {\n this.inputTarget.addEventListener('input', this.underscore.bind(this));\n this.underscore();\n }\n\n underscore() {\n let inputValue = this.inputTarget.value;\n this.inputTarget.value = inputValue.replace(/ /g, '_').replace(/[^a-zA-Z0-9_]/g, '');\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['checkboxAll', 'checkbox', 'action', 'counter'];\n static values = { selected: Array };\n\n initialize() {\n this.toggle = this.toggle.bind(this);\n this.refresh = this.refresh.bind(this);\n }\n\n checkboxAllTargetConnected(checkbox) {\n checkbox.addEventListener('change', this.toggle);\n\n this.refresh();\n }\n\n checkboxTargetConnected(checkbox) {\n checkbox.addEventListener('change', this.refresh);\n\n this.refresh();\n }\n\n checkboxAllTargetDisconnected(checkbox) {\n checkbox.removeEventListener('change', this.toggle);\n\n this.refresh();\n }\n\n checkboxTargetDisconnected(checkbox) {\n checkbox.removeEventListener('change', this.refresh);\n\n this.refresh();\n }\n\n toggle(e) {\n e.preventDefault();\n\n this.checkboxTargets.forEach((checkbox) => {\n // @ts-ignore\n checkbox.checked = e.target.checked;\n this.triggerInputEvent(checkbox);\n });\n\n this.refreshAction();\n }\n\n refresh() {\n const checkboxesCount = this.checkboxTargets.length;\n const checkboxesCheckedCount = this.checked.length;\n\n this.refreshAction();\n this.checkboxAllTarget.checked = checkboxesCheckedCount > 0;\n this.checkboxAllTarget.indeterminate =\n checkboxesCheckedCount > 0 && checkboxesCheckedCount < checkboxesCount;\n }\n\n refreshAction() {\n if (this.hasSelectedValue) {\n this.selectedValue = this.getSelectedValues();\n }\n const checkboxesCheckedCount = this.checked.length;\n if (this.hasCounterTarget) {\n if (checkboxesCheckedCount == 0) {\n this.counterTarget.innerText = 'Select';\n } else {\n this.counterTarget.innerText = `${checkboxesCheckedCount} conversations selected`;\n }\n }\n if (this.hasActionTarget) {\n if (checkboxesCheckedCount == 0) {\n this.actionTarget.classList.add('d-none');\n } else {\n this.actionTarget.classList.remove('d-none');\n }\n }\n }\n\n getSelectedValues() {\n return this.checked.map((checkbox) => checkbox.value);\n }\n\n triggerInputEvent(checkbox) {\n const event = new Event('input', { bubbles: false, cancelable: true });\n\n checkbox.dispatchEvent(event);\n }\n\n get checked() {\n return this.checkboxTargets.filter((checkbox) => checkbox.checked);\n }\n\n get unchecked() {\n return this.checkboxTargets.filter((checkbox) => !checkbox.checked);\n }\n}\n","import { Controller } from 'stimulus';\nimport Choices from 'choices.js';\nrequire('choices.js/public/assets/styles/choices.min.css');\nexport default class extends Controller {\n connect() {\n let sortable = true;\n if (\n Object.prototype.hasOwnProperty.call(this.element.dataset, 'sortable')\n ) {\n sortable = this.element.dataset.sortable === 'true';\n }\n new Choices(this.element, {\n shouldSort: sortable,\n shouldSortItems: sortable,\n removeItemButton: true,\n classNames: {\n containerOuter:\n 'choices form-control form-control-sm py-0 d-flex align-items-center',\n containerInner: '',\n input: 'choices__input',\n },\n });\n }\n}\n","// app/javascript/controllers/clear_input_controller.js\nimport { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n connect() {\n this.inputTargets = this.element.querySelectorAll('input[type=\"text\"]')\n this.mediaTargets = this.element.querySelectorAll('input[type=\"file\"]')\n }\n\n clear(event) {\n // event.preventDefault();\n this.inputTargets.forEach(input => {\n input.value = \"\";\n });\n this.mediaTargets.forEach(media => {\n media.value = null;\n });\n }\n}","import { Controller } from 'stimulus';\nimport { EditorView, basicSetup } from 'codemirror';\nimport { html } from '@codemirror/lang-html';\nimport { json } from '@codemirror/lang-json';\n\nexport default class extends Controller {\n static targets = [];\n\n connect() {\n let textarea = this.element;\n this.view = new EditorView({\n doc: textarea.value,\n extensions: [basicSetup, json(), html()],\n });\n textarea.parentNode.insertBefore(this.view.dom, textarea);\n textarea.style.display = 'none';\n if (textarea.form)\n textarea.form.addEventListener('submit', () => {\n textarea.value = this.view.state.doc.toString();\n });\n }\n}\n","import { Controller } from 'stimulus';\nimport moment from 'moment';\n\nexport default class extends Controller {\n static targets = ['input'];\n\n connect() {}\n\n changeType() {\n const value = this.inputTarget.value;\n if (value.indexOf('http://') === 0 || value.indexOf('https://') === 0) {\n this.inputTarget.type = 'url';\n } else if (value.indexOf('{{') === 0) {\n this.inputTarget.type = 'text';\n }\n }\n\n resetDateTimeField(e) {\n if (e.target.checked) {\n this.inputTarget.classList.remove('d-none');\n this.inputTarget.value = moment(new Date()).add(7, 'days').format();\n } else {\n this.inputTarget.classList.add('d-none');\n this.inputTarget.value = '';\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['source', 'destination'];\n\n connect() {\n this.sourceTarget.addEventListener('input', () => {\n if (this.destinationTarget.readOnly) return;\n\n this.destinationTarget.value = this.sourceTarget.value\n .toLowerCase()\n .replaceAll(' ', '_')\n .replaceAll(/[^a-zA-Z0-9_]/g, '');\n });\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['activeDetail'];\n static values = {\n subscriberId: Number,\n };\n connect() {\n if (this.hasSubscriberIdValue) {\n this.getSubscriber(this.subscriberIdValue);\n }\n }\n\n setActive(e) {\n this.activeDetailTargets.forEach((element) => {\n element.classList.remove('active');\n });\n\n e.currentTarget.firstElementChild.firstElementChild.classList.add('active');\n }\n\n getSubscriber(id) {\n let el = document.querySelector(`[id=\"subscriber_${id}\"]`);\n el.firstElementChild.firstElementChild.classList.add('active');\n }\n}\n","import { Controller } from 'stimulus';\nimport { patch, get } from '@rails/request.js';\n\nexport default class extends Controller {\n static targets = [\n 'conversationFilter',\n 'conversationStatus',\n 'conversationsList',\n 'statusModal',\n 'statusField',\n 'validateFormFields',\n 'selector',\n ];\n static values = { url: String, newCommentUrl: String };\n\n connect() {\n if (this.element.getAttribute('data-trigger') == 'onload') {\n if (this.element.getAttribute('data-action') == 'navigateToNextIn') {\n this.navigateToNextIn(\n this.element.getAttribute('data-navigation-param')\n );\n }\n }\n }\n\n async addAssignedTo(e) {\n await patch(e.target.dataset.url, {\n responseKind: 'turbo-stream',\n body: JSON.stringify({\n conversation: {\n assigned_to_id: e.target.dataset.userId,\n assigned_to_type: e.target.dataset.userType,\n status: e.target.dataset.conversationStatus,\n },\n }),\n });\n this.closeAssignmentPanel();\n }\n\n async removeAssignedTo(e) {\n await patch(e.target.dataset.url, {\n responseKind: 'turbo-stream',\n body: JSON.stringify({\n conversation: {\n assigned_to_id: null,\n assigned_to_type: null,\n },\n }),\n });\n this.closeAssignmentPanel();\n }\n\n async removeAssignedToGroup(e) {\n await patch(e.target.dataset.url, {\n responseKind: 'turbo-stream',\n body: JSON.stringify({\n conversation: {\n groups_attributes: { id: e.target.dataset.groupId, _destroy: true },\n },\n }),\n });\n this.closeAssignmentPanel();\n }\n\n async addAssignedToGroup(e) {\n await patch(e.target.dataset.url, {\n responseKind: 'turbo-stream',\n body: JSON.stringify({\n conversation: {\n group_ids: [e.target.dataset.groupId],\n },\n }),\n });\n this.closeAssignmentPanel();\n }\n\n getSelectedConversations() {\n let selectedConversations = [];\n if (this.hasSelectorTarget) {\n selectedConversations = JSON.parse(\n this.selectorTarget.dataset.checkboxSelectAllSelectedValue\n );\n }\n return selectedConversations;\n }\n\n async showDetails(e) {\n let conversationIds = this.getSelectedConversations();\n let target_url = this.hasNewCommentUrlValue ? this.newCommentUrlValue : e.target.dataset.url;\n if (conversationIds.length > 0) {\n target_url = target_url + '?id_in=' + conversationIds.join(',');\n }\n\n await get(target_url, {\n responseKind: 'turbo-stream',\n });\n }\n\n async navigateToNextIn(selector) {\n if (selector == null || selector == '' || selector == undefined) {\n return;\n }\n let conversationIds = [];\n document.querySelectorAll(selector).forEach((e) => {\n conversationIds.push(e.id);\n });\n if (conversationIds.length == 0) {\n document.querySelectorAll(\"#conversations .conversation-listing\").forEach((e) => {\n conversationIds.push(e.id);\n });\n }\n let index = 0;\n if (this.element && this.element.dataset.previousConversationId) {\n index = conversationIds.findIndex((e, i) => {\n return e == \"conversation_\" + this.element.dataset.previousConversationId;\n });\n index = index + 1;\n if (conversationIds.length == 0 || index >= conversationIds.length) {\n index = 0;\n } else if (index + 1 >= conversationIds.length) {\n index = conversationIds.length - 1;\n }\n } else {\n index = 0;\n }\n if (conversationIds.length > 0) {\n let link = document\n .getElementById(conversationIds[index])\n .querySelector('a[data-controller=\\'turbo-fetch\\']');\n if (link) {\n await get(link.getAttribute('href'), {\n responseKind: 'turbo-stream',\n });\n }\n }\n }\n\n async navigateToNextUnassigned() {\n this.navigateToNextIn(\n '.conversations_container.active .conversation-listing'\n );\n }\n\n async navigateToNextConversation() {\n this.navigateToNextIn('.conversation-listing');\n }\n\n async launchStatusModal(e) {\n let modalController = this.application.getControllerForElementAndIdentifier(\n this.statusModalTarget,\n 'modal'\n );\n modalController.open();\n await get(e.target.dataset.url, {\n responseKind: 'turbo-stream',\n });\n }\n\n closeStatusModal() {\n let modal = document.querySelector(\n '[data-conversation-target=\\'statusModal\\']'\n );\n modal.classList.add('hidden');\n modal.classList.remove('show');\n modal.setAttribute('aria-hidden', 'true');\n document.querySelector('body').classList.remove('modal-open');\n if (document.querySelector('.modal-backdrop')) {\n document.querySelector('.modal-backdrop').remove();\n }\n }\n\n closeAssignmentPanel() {\n let panel = document.querySelector('.offcanvas.show');\n if (panel) {\n panel.classList.remove('show');\n }\n }\n\n conversationStatusChange(e) {\n e.preventDefault();\n if (e.target.dataset.cafpresent == 'true') {\n this.launchStatusModal(e);\n } else {\n let status = e.target.dataset.status;\n this.statusFieldTarget.value = status;\n this.conversationStatusTarget.dispatchEvent(\n new CustomEvent('submit', { bubbles: true })\n );\n }\n }\n\n validateForm() {\n var validForm = true;\n this.validateFormFieldsTarget\n .querySelectorAll('[required]')\n .forEach((el) => {\n validForm = validForm && this.customValidation(el, el.dataset.rulename);\n });\n if (validForm) {\n this.closeStatusModal();\n this.validateFormFieldsTarget.dispatchEvent(\n new CustomEvent('submit', { bubbles: true })\n );\n }\n }\n\n customValidation(element, rulename) {\n var validField = true;\n var value = element.value;\n var el = this.validateFormFieldsTarget.querySelector(\n element.dataset.errortarget\n );\n switch (rulename) {\n case 'textvalidate':\n if (value.length == 0) {\n validField = false;\n el.classList.remove('d-none');\n } else {\n validField = true;\n el.classList.add('d-none');\n }\n break;\n case 'numbervalidate':\n if (value.length == 0) {\n validField = false;\n el.classList.remove('d-none');\n } else {\n validField = true;\n el.classList.add('d-none');\n }\n break;\n case 'selectvalidate':\n if (value.length == 0) {\n validField = false;\n el.classList.remove('d-none');\n } else {\n validField = true;\n el.classList.add('d-none');\n }\n break;\n case 'booleanvalidate':\n if (element.checked) {\n validField = true;\n el.classList.add('d-none');\n } else {\n validField = false;\n el.classList.remove('d-none');\n }\n break;\n case 'emailvalidate':\n /* eslint-disable */\n var re =\n /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n /* eslint-disable */\n if (re.test(value)) {\n validField = true;\n el.classList.add('d-none');\n } else {\n validField = false;\n el.classList.remove('d-none');\n }\n break;\n }\n return validField;\n }\n\n filterToggle() {\n if (this.conversationFilterTarget.classList.contains('show')) {\n this.conversationFilterTarget.classList.remove('show');\n } else {\n this.conversationFilterTarget.classList.add('show');\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [];\n\n connect() {\n this.addEventListeners();\n }\n\n addEventListeners() {\n let parentEl = this.element;\n this.element\n .querySelector('input[name=\\'select_all\\']')\n .addEventListener('change', (evt) => {\n parentEl.querySelectorAll('input.row_selection').forEach((el) => {\n if (evt.target.checked) {\n el.setAttribute('checked', evt.target.checked);\n } else {\n el.removeAttribute('checked');\n }\n });\n });\n this.element\n .querySelector('form.assignment-form')\n .addEventListener('submit', (e) => {\n let selectedConversations = [];\n parentEl\n .querySelectorAll('input.row_selection:checked')\n .forEach((e) => {\n selectedConversations.push(e.value);\n });\n if (selectedConversations.length == 0) {\n e.preventDefault();\n return false;\n } else {\n parentEl.querySelector(\n 'input[name=\\'assignment_conversations\\']'\n ).value = selectedConversations.join(',');\n return true;\n }\n });\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport { isElementAvailable } from '../helpers';\nimport { Turbo } from '@hotwired/turbo-rails';\n\nexport default class extends Controller {\n static targets = ['startTime'];\n connect() {\n StimulusReflex.register(this);\n document.addEventListener(\n 'cable-ready:after-morph',\n this.refreshSlotPicker.bind(this)\n );\n }\n\n disconnect() {\n document.removeEventListener(\n 'cable-ready:after-morph',\n this.refreshSlotPicker\n );\n }\n\n changeStartTime(event) {\n this.stimulate('CreateSessionComponent#start_time', event.target);\n }\n\n refreshSlotPicker() {\n if (isElementAvailable('slot_picker_parent')) {\n let slotPickerController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector('#slot_picker_parent'),\n 'slot-picker'\n );\n if (slotPickerController) {\n slotPickerController.connect();\n }\n }\n }\n\n submitSuccess(anchorElement) {\n const { redirectPath } = anchorElement.dataset;\n Turbo.visit(redirectPath);\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['select', 'button'];\n\n connect() {\n this.showOrHideTarget(this.selectTarget.value);\n this.selectTarget.addEventListener('change', (e) => {\n this.showOrHideTarget(e.target.value);\n });\n }\n\n showOrHideTarget(select_value) {\n if (select_value === 'single_select' || select_value === 'multi_select') {\n this.buttonTarget.classList.remove('d-none');\n } else {\n this.buttonTarget.classList.add('d-none');\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static values = { allowVariables: Boolean, editor: String };\n\n connect() {\n let buttonGroupFileTools =\n this.element.editorController.toolbarController.element.querySelector(\n '[data-trix-button-group=\"text-tools\"]'\n );\n let buttonHTML =\n ``;\n\n if (this.editorValue) {\n buttonHTML =\n ``;\n }\n buttonGroupFileTools.insertAdjacentHTML('beforeend', buttonHTML);\n\n if (this.hasAllowVariablesValue && this.allowVariablesValue) {\n const variableButtonHTML =\n '';\n buttonGroupFileTools.insertAdjacentHTML('beforeend', variableButtonHTML);\n }\n }\n\n insertString(value) {\n this.element.editor.insertString(value);\n }\n\n disconnect() { }\n}\n","import { Controller } from 'stimulus';\nimport { lightOrDark } from '../helpers';\nimport hljs from 'highlight.js/lib/core';\nimport xml from 'highlight.js/lib/languages/xml';\nhljs.registerLanguage('xml', xml);\nimport 'highlight.js/styles/stackoverflow-light.css';\nexport default class extends Controller {\n static targets = [\n 'container',\n 'colorPicker',\n 'colorInput',\n 'colorTheme',\n 'color',\n 'mockup',\n 'mockupLogo',\n 'bubbleRadio',\n 'cardRadio',\n 'emailCbx',\n 'phoneNumberCbx',\n 'cbxError',\n 'form',\n 'noBot',\n ];\n\n connect() {\n this._handleWidgetSelection();\n this._highlightCode();\n if (this.hasColorTarget) this.handleColorSelection();\n }\n\n logoChanged(e) {\n let input = e.target;\n let logo = document.getElementById(input.dataset.logoId);\n if (input.files && input.files[0]) {\n var reader = new FileReader();\n reader.onload = (e) => {\n logo.src = e.target.result;\n logo.classList.remove('d-none');\n };\n reader.readAsDataURL(input.files[0]);\n if (input.dataset.hasOwnProperty('textId'))\n document.getElementById(input.dataset.textId).innerText =\n input.files[0].name;\n }\n }\n\n positionChanged(e) {\n let position_x_label = document.getElementById('position_x_label');\n if (position_x_label) {\n position_x_label.textContent = e.target.value == \"bottom-left\" ? \"From Left\" : \"From Right\"\n }\n }\n\n colorChanged(e) {\n let value = e.target.value;\n if (e.target == this.colorInputTarget) {\n if (this._is_valid_color(value)) this.chooseColor(value);\n } else this.chooseColor(value);\n }\n\n setBrandColor(color) {\n let theme = lightOrDark(color);\n this.colorThemeTarget.value = theme;\n this.containerTarget.dataset.themeMode = theme;\n this.containerTarget.style.cssText = `--brandColor:${color}`;\n }\n\n handleColorSelection() {\n this.colorTargets.forEach((element) => {\n element.addEventListener('click', () => {\n this.colorClickEvent(element);\n });\n });\n }\n\n colorClickEvent(el) {\n let color = el.dataset.value;\n if (!el.classList.contains('active')) {\n el.classList.add('active');\n this.chooseColor(color);\n this._reset_color_selection(el);\n }\n }\n\n chooseColor(color) {\n this.colorPickerTarget.value = color;\n this.colorInputTarget.value = color;\n this.setBrandColor(color);\n }\n\n reload() {\n window.location.reload();\n }\n\n scrollToMockup() {\n this.mockupTarget.scrollIntoView({ behavior: 'smooth' });\n }\n\n changeFragment(e) {\n let fragment = document.getElementById(e.target.dataset.fragmentId);\n if (fragment) {\n this._reset_fragment(fragment);\n this._setData(fragment, 'display', 'true');\n }\n }\n\n changeMockup(e) {\n let mockup = document.getElementById(e.target.dataset.mockupId);\n if (mockup) {\n this._reset_mockup(mockup);\n this._setData(mockup, 'display', 'true');\n }\n }\n\n changeCtaText(e) {\n let cta = document.getElementById(e.target.dataset.ctaId);\n if (cta) cta.innerText = e.target.value;\n }\n\n noBotsChanged(e) {\n if (e.target.checked) this.noBotTarget.classList.remove('d-none');\n else this.noBotTarget.classList.add('d-none');\n }\n\n selectType(type) {\n let is_bubble = type == 'bubble';\n this.cardRadioTarget.dataset.active = is_bubble ? false : true;\n this.bubbleRadioTarget.dataset.active = is_bubble ? true : false;\n let fragment = document.getElementById(type);\n if (fragment) {\n this._reset_fragment(fragment);\n this._setData(fragment, 'display', 'true');\n }\n }\n\n validateCbx() {\n if (!this.emailCbxTarget.checked && !this.phoneNumberCbxTarget.checked) {\n this.cbxErrorTarget.innerText =\n 'Phone number or Email Address is Required';\n this.formInvalid = true;\n } else {\n this.cbxErrorTarget.innerText = '';\n this.formInvalid = false;\n }\n }\n\n submitForm() {\n if (this.formInvalid == true) {\n let form = document.getElementById('widgetfour');\n $('#collapseWidgetfour').collapse('show');\n form.scrollIntoView({ behavior: 'smooth' });\n } else {\n this.formTarget.submit();\n }\n }\n\n _setData(el, attrib, value) {\n el.dataset[attrib] = value;\n }\n\n _reset_fragment(fragment) {\n let fragments = document.querySelectorAll('.fragment');\n fragments.forEach((el) => {\n if (fragment.id != el.id) this._setData(el, 'display', 'false');\n });\n }\n\n _reset_mockup(mockup) {\n let mockups = document.querySelectorAll('.mockup');\n mockups.forEach((el) => {\n if (mockup.id != el.id) this._setData(el, 'display', 'false');\n });\n }\n\n _reset_color_selection(el) {\n this.colorTargets.forEach((element) => {\n if (element != el) element.classList.remove('active');\n });\n }\n\n _is_valid_color(color) {\n return /^#([0-9A-F]{3}){1,2}$/i.test(color);\n }\n\n _handleWidgetSelection() {\n if (this.hasBubbleRadioTarget && this.hasCardRadioTarget) {\n this.bubbleRadioTarget.onclick = () => {\n this.selectType('bubble');\n };\n this.cardRadioTarget.onclick = () => {\n this.selectType('card');\n };\n this._autoSelect();\n }\n }\n\n _autoSelect() {\n if (this.element.dataset.callback != 'true') {\n if (this.bubbleRadioTarget.dataset.active == 'true')\n this.selectType('bubble');\n if (this.cardRadioTarget.dataset.active == 'true')\n this.selectType('card');\n }\n }\n\n _highlightCode() {\n document.querySelectorAll('code').forEach((el) => {\n hljs.highlightElement(el);\n });\n }\n}\n","import { Controller } from 'stimulus';\nimport { get } from '@rails/request.js';\n\nexport default class extends Controller {\n static values = { url: String };\n static targets = ['input'];\n\n connect() {\n console.log('dashboard controller loaded');\n }\n\n async apply(e) {\n let url = this.urlValue + '?daterange=' + this.inputTarget.value;\n const response = await get(url, { responseKind: 'turbo-stream' });\n if (response.ok) {\n console.log('response worked');\n }\n e.preventDefault();\n }\n}\n","import { Controller } from 'stimulus';\nimport { get } from '@rails/request.js';\n\nexport default class extends Controller {\n static values = { url: String };\n\n async apply(e) {\n let url = this.urlValue + '?workflow_id=' + e.srcElement.value;\n const response = await get(url, { responseKind: 'turbo-stream' });\n if (response.ok) {\n console.log('response worked');\n }\n e.preventDefault();\n }\n}","import flatpickr from 'flatpickr';\nimport StimulusReflex from 'stimulus_reflex';\nimport { Controller } from 'stimulus';\n\nclass DatePickerController extends Controller {\n connect() {\n StimulusReflex.register(this);\n document.addEventListener('cable-ready:after-morph', () => {\n this.initializeDatePicker();\n });\n this.initializeDatePicker();\n }\n\n initializeDatePicker() {\n const fromDate = document.querySelector('#from_date');\n flatpickr(fromDate, {\n altInput: true,\n altFormat: 'j F Y',\n dateFormat: 'Y-m-d',\n defaultDate: fromDate.value,\n });\n const toDate = document.querySelector('#to_date');\n flatpickr(toDate, {\n altInput: true,\n altFormat: 'j F Y',\n dateFormat: 'Y-m-d',\n defaultDate: toDate.value,\n });\n }\n\n setStartTime(e) {\n this.stimulate('UnavailableSlotsComponent#set_starttime', e.target);\n }\n\n setEndTime(e) {\n this.stimulate('UnavailableSlotsComponent#set_endtime', e.target);\n }\n}\n\nexport default DatePickerController;\n","import { Controller } from 'stimulus';\nimport 'bootstrap-daterangepicker';\nimport moment from 'moment';\nimport $ from 'jquery';\n\nexport default class extends Controller {\n static values = { start: String, end: String };\n static targets = ['input'];\n\n connect() {\n const config = {\n ranges: {\n Today: [moment(), moment()],\n Yesterday: [moment().subtract(1, 'days'), moment().subtract(1, 'days')],\n 'Last 7 Days': [moment().subtract(6, 'days'), moment()],\n 'Last 30 Days': [moment().subtract(29, 'days'), moment()],\n 'This Month': [moment().startOf('month'), moment().endOf('month')],\n 'Last Month': [\n moment().subtract(1, 'month').startOf('month'),\n moment().subtract(1, 'month').endOf('month'),\n ],\n },\n locale: {\n format: 'DD/MM/YYYY',\n },\n opens: 'left',\n drops: 'down',\n autoApply: true,\n alwaysShowCalendars: false,\n showCustomRangeLabel: true,\n };\n\n if (this.startValue === '' || this.endValue === '') {\n $(this.inputTarget).daterangepicker(config);\n $(this.inputTarget).val('');\n } else {\n config['startDate'] = moment(this.startValue);\n config['endDate'] = moment(this.endValue);\n $(this.inputTarget).daterangepicker(config);\n }\n }\n}\n","import { Controller } from 'stimulus';\nimport moment from 'moment';\nimport { Tooltip } from 'bootstrap';\n\nexport default class extends Controller {\n static values = { format: String, time: String, showRelative: Boolean };\n static targets = ['display'];\n\n connect() {\n let formattedTime = '';\n let tooltipContent = '';\n\n if(this.hasShowRelativeValue && this.showRelativeValue == true) {\n formattedTime = moment(this.timeValue).fromNow();\n tooltipContent = moment(this.timeValue).format(this.formatValue);\n } else {\n formattedTime = moment(this.timeValue).format(this.formatValue);\n tooltipContent = moment(this.timeValue).fromNow();\n }\n\n this.displayTarget.innerText = formattedTime;\n this.displayTarget.setAttribute('data-bs-toggle', 'tooltip');\n this.displayTarget.setAttribute('data-bs-placement', 'top');\n this.displayTarget.setAttribute('title', tooltipContent);\n\n // Initialize Bootstrap tooltip\n this.tooltip = new Tooltip(this.displayTarget);\n\n // Update tooltip content every minute if showing relative time\n if (this.showRelativeValue) {\n this.timer = setInterval(() => {\n this.tooltip.setContent({ '.tooltip-inner': moment(this.timeValue).fromNow() });\n }, 60000);\n }\n }\n\n disconnect() {\n if (this.timer) clearInterval(this.timer);\n if (this.tooltip) this.tooltip.dispose();\n }\n}","import { Controller } from 'stimulus';\nimport debounced from 'debounced';\n\nexport default class extends Controller {\n static targets = ['searchInput', 'searchForm'];\n\n connect() {\n debounced.initialize({ input: { wait: 500 }, keyup: { wait: 500 }, \"trix-change\": {wait: 100}});\n if (this.hasSearchInputTarget && (this.searchInputTarget instanceof HTMLInputElement || this.searchInputTarget instanceof HTMLTextAreaElement)) {\n if (typeof this.searchInputTarget.setSelectionRange === 'function') {\n this.searchInputTarget.setSelectionRange(\n this.searchInputTarget.value.length,\n this.searchInputTarget.value.length\n );\n }\n }\n }\n\n search() {\n this.searchFormTarget.requestSubmit();\n }\n}\n","import Dropzone from 'dropzone';\nimport { Controller } from 'stimulus';\nimport { DirectUpload } from '@rails/activestorage';\nimport { getMetaValue, findElement, removeElement, insertAfter } from 'helpers';\n\nexport default class extends Controller {\n static targets = ['input', 'button', 'createBtn'];\n static values = {\n url: String,\n headers: String,\n maxFiles: Number,\n maxFileSize: Number,\n acceptedFiles: String,\n addRemoveLinks: Boolean,\n autoAttach: Boolean,\n maxFileSizeByType: Object,\n };\n\n connect() {\n if (!this.dropZone) {\n this.dropZone = createDropZone(this);\n this.bindEvents();\n }\n document.addEventListener(\n 'cable-ready:after-morph',\n this._reconnect.bind(this)\n );\n this.hideFileInput();\n Dropzone.autoDiscover = false; // necessary quirk for Dropzone error in console\n }\n\n disconnect() {\n // document.removeEventListener(\"cable-ready:after-morph\",this._reconnect.bind(this));\n }\n\n _reconnect() {\n if (!this.dropZone) {\n this.dropZone = createDropZone(this);\n }\n this.hideFileInput();\n this.bindEvents();\n }\n\n // Private\n hideFileInput() {\n if (this.hasButtonTarget) {\n this.buttonTarget.style.display = 'none';\n }\n if (this.hasInputTarget) {\n this.inputTarget.disabled = true;\n this.inputTarget.style.display = 'none';\n }\n }\n\n clickSaveButton() {\n if (this.hasButtonTarget) {\n this.buttonTarget.click();\n }\n }\n\n showSaveBtn() {\n if (this.hasButtonTarget) {\n this.buttonTarget.style.display = 'block';\n }\n }\n\n hideSaveBtn() {\n if (this.hasButtonTarget) {\n this.buttonTarget.style.display = 'none';\n }\n }\n\n disableCreateBtn() {\n if (this.hasCreateBtnTarget) {\n this.createBtnTarget.setAttribute('disabled', true);\n }\n }\n\n enableCreateBtn() {\n if (this.hasCreateBtnTarget) {\n this.createBtnTarget.removeAttribute('disabled');\n }\n }\n\n bindEvents() {\n this.dropZone.on('addedfile', (file) => {\n this.disableCreateBtn();\n setTimeout(() => {\n file.accepted && createDirectUploadController(this, file).start();\n }, 500);\n });\n\n this.dropZone.on('removedfile', (file) => {\n file.controller && removeElement(file.controller.hiddenInput);\n if (this.dropZone.getQueuedFiles().length == 0) {\n this.hideSaveBtn();\n }\n });\n\n this.dropZone.on('canceled', (file) => {\n file.controller && file.controller.xhr.abort();\n });\n\n this.dropZone.on('queuecomplete', () => {\n this.enableCreateBtn();\n if (this.hasAutoAttachValue && this.autoAttachValue) {\n this.clickSaveButton();\n } else {\n this.showSaveBtn();\n }\n });\n }\n\n get headers() {\n return { 'X-CSRF-Token': getMetaValue('csrf-token') };\n }\n\n get url() {\n return this.inputTarget.getAttribute('data-direct-upload-url');\n }\n\n get maxFiles() {\n return this.maxFilesValue || 1;\n }\n\n get maxFileSize() {\n return this.maxFileSizeValue || 256;\n }\n\n get maxFileSizeByType() {\n return this.maxFileSizeByTypeValue || {};\n }\n\n get acceptedFiles() {\n return this.acceptedFilesValue;\n }\n\n get addRemoveLinks() {\n return this.addRemoveLinksValue || true;\n }\n}\n\nclass DirectUploadController {\n constructor(source, file) {\n this.directUpload = createDirectUpload(file, source.url, this);\n this.source = source;\n this.file = file;\n }\n\n start() {\n this.file.controller = this;\n this.hiddenInput = this.createHiddenInput();\n this.directUpload.create((error, attributes) => {\n if (error) {\n removeElement(this.hiddenInput);\n this.emitDropzoneError(error);\n } else {\n this.hiddenInput.value = attributes.signed_id;\n this.emitDropzoneSuccess();\n }\n });\n }\n\n createHiddenInput() {\n const input = document.createElement('input');\n input.type = 'hidden';\n input.name = this.source.inputTarget.name;\n insertAfter(input, this.source.inputTarget);\n return input;\n }\n\n directUploadWillStoreFileWithXHR(xhr) {\n this.bindProgressEvent(xhr);\n this.emitDropzoneUploading();\n }\n\n bindProgressEvent(xhr) {\n this.xhr = xhr;\n this.xhr.upload.addEventListener('progress', (event) =>\n this.uploadRequestDidProgress(event)\n );\n }\n\n uploadRequestDidProgress(event) {\n // const element = this.source.element;\n const progress = (event.loaded / event.total) * 100;\n findElement(\n this.file.previewTemplate,\n '.dz-upload'\n ).style.width = `${progress}%`;\n }\n\n emitDropzoneUploading() {\n this.file.status = Dropzone.UPLOADING;\n this.source.dropZone.emit('processing', this.file);\n }\n\n emitDropzoneError(error) {\n this.file.status = Dropzone.ERROR;\n this.source.dropZone.emit('error', this.file, error);\n this.source.dropZone.emit('complete', this.file);\n }\n\n emitDropzoneSuccess() {\n this.file.status = Dropzone.SUCCESS;\n this.source.dropZone.emit('success', this.file);\n this.source.dropZone.emit('complete', this.file);\n }\n}\n\nfunction createDirectUploadController(source, file) {\n return new DirectUploadController(source, file);\n}\n\nfunction createDirectUpload(file, url, controller) {\n return new DirectUpload(file, url, controller);\n}\n\nfunction createDropZone(controller) {\n Dropzone.autoDiscover = false;\n return new Dropzone(controller.element, {\n url: controller.url,\n headers: controller.headers,\n maxFiles: controller.maxFiles,\n maxFilesize: controller.maxFileSize,\n acceptedFiles: controller.acceptedFiles,\n addRemoveLinks: controller.addRemoveLinks,\n autoQueue: false,\n });\n}\n","import * as echarts from 'echarts';\nimport { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['chartdom'];\n static values = { series: Object, options: Object };\n\n connect() {\n var chartDom = this.element;\n var myChart = echarts.init(chartDom);\n var option;\n\n const data = this.seriesValue['data'];\n const legend_data = data.map((item) => item.name);\n const title = this.optionsValue['title'];\n\n option = {\n title: {\n text: title,\n },\n tooltip: {\n trigger: 'item',\n formatter: '{a}
{b} : {c}%',\n },\n toolbox: {\n feature: {},\n },\n legend: {\n data: legend_data,\n },\n series: [\n {\n name: title,\n type: 'funnel',\n left: '10%',\n top: 60,\n bottom: 60,\n width: '80%',\n min: 0,\n max: 100,\n minSize: '0%',\n maxSize: '100%',\n orient: this.optionsValue['orient'],\n gap: 0,\n sort: 'none',\n label: {\n show: true,\n position: 'inside',\n formatter: '{b} : {c}%',\n },\n labelLine: {\n length: 10,\n lineStyle: {\n width: 1,\n type: 'solid',\n },\n },\n itemStyle: {\n borderColor: '#fff',\n borderWidth: 1,\n },\n emphasis: {\n label: {\n fontSize: 20,\n },\n },\n data: data,\n },\n ],\n };\n\n option && myChart.setOption(option);\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport { isElementAvailable } from '../helpers';\nimport { Turbo } from '@hotwired/turbo-rails';\n\nexport default class extends Controller {\n static targets = ['startTime'];\n connect() {\n StimulusReflex.register(this);\n document.addEventListener(\n 'cable-ready:after-morph',\n this.refreshSlotPicker.bind(this)\n );\n }\n\n disconnect() {\n document.removeEventListener(\n 'cable-ready:after-morph',\n this.refreshSlotPicker\n );\n }\n\n changeStartTime(event) {\n this.stimulate('EditSessionComponent#start_time', event.target);\n }\n\n refreshSlotPicker() {\n if (isElementAvailable('slot_picker_parent')) {\n let slotPickerController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector('#slot_picker_parent'),\n 'slot-picker'\n );\n if (slotPickerController) {\n slotPickerController.connect();\n }\n }\n }\n\n submitSuccess(anchorElement) {\n const { redirectPath } = anchorElement.dataset;\n Turbo.visit(redirectPath);\n }\n}\n","import { Turbo } from '@hotwired/turbo-rails';\nclass MediaLibrary {\n constructor({ config, api }) {\n this.mediaLibraryUrl = config.endpoint;\n this.api = api;\n }\n\n render() {\n let block_index = this.api.blocks.getCurrentBlockIndex();\n fetch(this.mediaLibraryUrl + `&block_index=${block_index}`, {\n headers: {\n Accept: 'text/vnd.turbo-stream.html',\n },\n })\n .then((r) => r.text())\n .then((html) => Turbo.renderStreamMessage(html));\n }\n\n save(blockContent) {\n return {\n url: blockContent.value,\n };\n }\n\n static get toolbox() {\n return {\n title: 'Media library',\n icon: '',\n };\n }\n}\n\nexport default MediaLibrary;\n","import { Controller } from 'stimulus';\nimport EditorJS from '@editorjs/editorjs';\nimport Header from '@editorjs/header';\nimport InlineImage from 'editorjs-inline-image';\nimport Embed from '@editorjs/embed';\nimport { patch } from '@rails/request.js';\nimport edjsHTML from 'editorjs-html';\nimport NestedList from '@editorjs/nested-list';\nconst Quote = require('@editorjs/quote');\nconst Delimiter = require('@editorjs/delimiter');\nimport transforms from './editorjs_transformer';\nimport MediaLibrary from './editorjs/media_library';\n\nclass InlineImageTool extends InlineImage {\n static get toolbox() {\n return {\n title: 'External Image',\n icon: '',\n };\n }\n}\n\nexport default class extends Controller {\n static targets = [];\n static values = {\n data: Object,\n url: String,\n readOnly: Boolean,\n mediaLibraryUrl: String,\n };\n connect() {\n if (this.readOnlyValue) {\n const edjsParser = edjsHTML({\n delimiter: transforms['delimiter'],\n quote: transforms['quote'],\n paragraph: transforms['paragraph'],\n list: transforms['list'],\n embed: transforms['embed'],\n image: transforms['image'],\n code: transforms['code'],\n });\n let parsedNodes = edjsParser.parse(this.dataValue);\n let html = '';\n parsedNodes.forEach((element) => {\n html += element;\n });\n document.querySelector('#editor-content').innerHTML = html;\n } else {\n this.editor = new EditorJS({\n holder: 'editor',\n readOnly: this.readOnlyValue,\n placeholder: 'Let\\'s write an awesome post!',\n tools: {\n header: {\n class: Header,\n shortcut: 'CMD+SHIFT+H',\n config: {\n placeholder: 'Enter a header',\n levels: [1, 2, 3, 4, 5],\n defaultLevel: 1,\n },\n },\n delimiter: Delimiter,\n library: {\n class: MediaLibrary,\n config: {\n endpoint: this.hasMediaLibraryUrlValue\n ? this.mediaLibraryUrlValue\n : '',\n },\n },\n embed: {\n class: Embed,\n inlineToolbar: true,\n },\n list: {\n class: NestedList,\n inlineToolbar: true,\n config: {\n defaultStyle: 'unordered',\n },\n },\n quote: {\n class: Quote,\n inlineToolbar: true,\n shortcut: 'CMD+SHIFT+O',\n config: {\n quotePlaceholder: 'Enter a quote',\n captionPlaceholder: 'Quote\\'s author',\n },\n },\n image: {\n class: InlineImageTool,\n inlineToolbar: true,\n config: {\n embed: {\n display: true,\n },\n unsplash: {\n appName: 'Post Embed',\n clientId: 'gM8nlGs54ICh8BAY9FulNBQ0jsMh81Dxm3w_DXfpKP4',\n },\n },\n },\n },\n data: this.dataValue,\n autofocus: true,\n onChange: () => {\n this.save();\n },\n });\n }\n }\n\n _modifyEditorStatusText(text, disabled = false) {\n if (document.querySelector('#editor-status') != null) {\n let button = document.querySelector('#editor-status');\n button.innerHTML = text;\n button.disabled = disabled;\n }\n }\n\n imageSelected(event) {\n this.editor.blocks.insert(\n 'image',\n { url: event.detail.selected_url },\n undefined,\n event.detail.block_index\n );\n }\n\n save() {\n this._modifyEditorStatusText('Saving...', true);\n this.editor\n .save()\n .then(async (outputData) => {\n console.log('Post data: ', outputData);\n await patch(this.urlValue, {\n responseKind: 'turbo-stream',\n body: JSON.stringify({\n wa_post: {\n data: outputData,\n },\n }),\n });\n this._modifyEditorStatusText('Save Draft');\n })\n .catch((error) => {\n this._modifyEditorStatusText('Saving failed...');\n console.log('Saving failed: ', error);\n });\n }\n}\n","const alignType = ['left', 'right', 'center', 'justify'];\nexport default {\n delimiter: () => {\n return '
';\n },\n\n header: ({ data }) => {\n return `${data.text}`;\n },\n\n paragraph: ({ data }) => {\n const paragraphAlign = data.alignment || data.align;\n\n if (\n typeof paragraphAlign !== 'undefined' &&\n alignType.includes(paragraphAlign)\n ) {\n return `

${data.text}

`;\n } else {\n return `

${data.text}

`;\n }\n },\n\n list: ({ data }) => {\n const listStyle = data.style === 'unordered' ? 'ul' : 'ol';\n\n const recursor = (items, listStyle) => {\n const list = items.map((item) => {\n if (!item.content && !item.items) return `
  • ${item}
  • `;\n\n let list = '';\n if (item.items) list = recursor(item.items, listStyle);\n if (item.content) return `
  • ${item.content}
  • ` + list;\n });\n\n return `<${listStyle}>${list.join('')}`;\n };\n return recursor(data.items, listStyle);\n },\n image: ({ data }) => {\n let caption = data.caption ? data.caption : 'Image';\n return `\"${caption}\"`;\n },\n\n quote: ({ data }) => {\n return `
    \n
    \n

    ${data.text}

    \n
    \n
    \n By ${data.caption}\n
    \n
    `;\n },\n\n code: ({ data }) => {\n return `
    ${data.code}
    `;\n },\n\n embed: ({ data }) => {\n switch (data.service) {\n case 'vimeo':\n return ``;\n case 'youtube':\n return `
    `;\n default:\n throw new Error(\n 'Only Youtube and Vime Embeds are supported right now.'\n );\n }\n },\n};\n","import { Application } from 'stimulus';\nconst application = Application.start();\n\nimport BsmodalController from '../bsmodal_controller';\nimport RecaptchaV2Controller from '../recaptcha_v2_controller';\n\napplication.register('bsmodal', BsmodalController);\napplication.register('recaptcha_v2', RecaptchaV2Controller);\n","import { Controller } from 'stimulus';\nimport { EmojiButton } from '@joeattardi/emoji-button';\n\nexport default class extends Controller {\n static targets = [];\n static values = { editor: String };\n connect() {\n const picker = new EmojiButton();\n const trigger = this.element;\n\n picker.on('emoji', (selection) => {\n let editorController =\n this.application.getControllerForElementAndIdentifier(\n this.editorElement(),\n 'customize-trix'\n );\n editorController.insertString(selection.emoji);\n });\n trigger.addEventListener('click', () => {\n picker.togglePicker(trigger);\n });\n }\n\n editorElement() {\n if (this.hasEditorValue && this.editorValue) {\n return document.querySelector(\"#\" + this.editorValue);\n }\n return document.querySelector('trix-editor');\n }\n}\n","import Flatpickr from 'stimulus-flatpickr';\nimport { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Flatpickr {\n initialize() {}\n\n connect() {\n this.config = {\n onOpen: [this.disableDates.bind(this)],\n disableMobile: true,\n };\n StimulusReflex.register(this);\n super.connect();\n }\n\n disableDates(selectedDates, dateStr, instance) {\n const { availableDates } = instance.element.dataset;\n if (availableDates) {\n const dates = JSON.parse(availableDates).map((date) => new Date(date));\n instance.set('enable', dates);\n } else {\n instance.set('enable', []);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport * as Turbo from \"@hotwired/turbo\"\n\nexport default class extends Controller {\n next(event) {\n if (event.detail.success) {\n const fetchResponse = event.detail.fetchResponse\n\n history.pushState(\n { turbo_frame_history: true },\n \"\",\n fetchResponse.response.url\n )\n\n Turbo.visit(fetchResponse.response.url)\n }\n }\n}","\nimport { Controller } from 'stimulus';\nimport Chart from 'chart.js';\nimport { FunnelChart } from 'chartjs-chart-funnel';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\n\nexport default class extends Controller {\n static targets = ['canvas'];\n static values = { data: Object };\n\n connect() {\n console.log(this.dataValue)\n this.impressionsValue = this.dataValue.impressions;\n this.engagementValue = this.dataValue.engagement;\n this.intentValue = this.dataValue.intent;\n this.goalValue = this.dataValue.goal;\n\n this.chart = new FunnelChart(this.canvasTarget.getContext('2d'), {\n type: 'funnel',\n data: {\n labels: ['Impressions', 'Engagement', 'Intent', 'Goal'],\n datasets: [\n {\n data: [this.impressionsValue, this.engagementValue, this.intentValue, this.goalValue]\n },\n ],\n },\n plugins: [ChartDataLabels],\n });\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"bsmodal\"\nexport default class extends Controller {\n\n static values = {\n target: String,\n }\n\n connect() {\n let element = document.querySelector(this.targetValue);\n this.modal = bootstrap.Modal.getInstance(element);\n this.modal.hide();\n this.element.remove();\n }\n\n disconnect() {\n \n }\n}","import { Controller } from 'stimulus';\nimport hljs from 'highlight.js/lib/core';\nimport xml from 'highlight.js/lib/languages/xml';\nimport hljsCurl from 'highlightjs-curl';\nimport hljsJson from 'highlight.js/lib/languages/json';\n\n// import 'highlight.js/styles/stackoverflow-light.css';\n\nexport default class extends Controller {\n static targets = ['code'];\n connect() {\n hljs.registerLanguage('xml', xml);\n hljs.registerLanguage('json', hljsJson);\n hljs.registerLanguage('curl', hljsCurl);\n this.highlightCode();\n }\n highlightCode() {\n this.codeTargets.forEach((code) => {\n hljs.highlightBlock(code);\n });\n }\n}\n","import { Controller } from 'stimulus';\nimport { Turbo } from '@hotwired/turbo-rails';\nimport { get } from '@rails/request.js';\nexport default class extends Controller {\n static targets = [\n 'ideasWrapper',\n 'ideasOpen',\n 'ideasClose',\n 'inboxFilter',\n 'searchBar',\n 'selectedFilters',\n 'dateInput',\n 'filterForm',\n ];\n static values = { url: String };\n\n connect() {\n this.setDateRange();\n }\n\n redirectToSubscriber(e) {\n if (\n e.target.classList.contains('prevent-redirection') ||\n e.target.classList.contains('dropdown-item')\n )\n return;\n if (this.element.dataset.url) Turbo.visit(this.element.dataset.url);\n }\n\n toggleFilter() {\n if (!this.hasInboxFilterTarget) return;\n if (this.inboxFilterTarget.classList.contains('active'))\n this.inboxFilterTarget.classList.remove('active');\n else this.inboxFilterTarget.classList.add('active');\n }\n\n async showDetail(event) {\n document.querySelector('.loading-spinner').classList.remove('d-none');\n event.preventDefault();\n const response = await get(this.urlValue, { responseKind: 'turbo-stream' });\n if (response.ok) {\n window.history.pushState({}, '', this.urlValue);\n }\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n showSearchBar() {\n if (!this.hasSearchBarTarget || !this.hasSelectedFiltersTarget) return;\n this.searchBarTarget.classList.remove('d-none');\n this.selectedFiltersTarget.classList.replace('d-flex', 'd-none');\n }\n\n setDateRange() {\n if (!this.hasDateInputTarget || !this.hasFilterFormTarget) return;\n document.querySelectorAll('.date-option').forEach((el) => {\n el.addEventListener('click', () => {\n this.dateInputTarget.value = el.dataset.value;\n this.filterFormTarget.submit();\n });\n });\n }\n\n toggleIdeas() {\n if (\n !this.hasIdeasWrapperTarget ||\n !this.hasIdeasOpenTarget ||\n !this.hasIdeasCloseTarget\n )\n return;\n const is_idea_open = this.ideasWrapperTarget.classList.contains('d-none');\n if (is_idea_open) {\n this.element.classList.add('active');\n this.ideasWrapperTarget.classList.remove('d-none');\n this.ideasOpenTarget.classList.add('d-none');\n this.ideasCloseTarget.classList.remove('d-none');\n } else {\n this.element.classList.remove('active');\n this.ideasWrapperTarget.classList.add('d-none');\n this.ideasOpenTarget.classList.remove('d-none');\n this.ideasCloseTarget.classList.add('d-none');\n }\n }\n}\n","import { Application } from 'stimulus';\nimport { definitionsFromContext } from 'stimulus/webpack-helpers';\nimport StimulusReflex from 'stimulus_reflex';\nimport consumer from '../channels/consumer';\nimport { Autocomplete } from 'stimulus-autocomplete';\n\nconst application = Application.start();\nconst context = require.context('.', true, /\\.js$/);\napplication.register('autocomplete', Autocomplete);\napplication.load(definitionsFromContext(context));\nStimulusReflex.initialize(application, { consumer, isolate: true });\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static values = { input: String}\n\n clicked(e){\n // app/views/wa/ai_flows/tests/messages/_form.html.erb\n const form = document.getElementById(\"new_message\");\n const input = document.getElementById(\"message_text\");\n\n const buttonValue = this.inputValue;\n\n input.value = buttonValue;\n form.requestSubmit();\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [];\n static values = {};\n connect() {\n }\n\n save() {\n const editorController = this.application.getControllerForElementAndIdentifier(document.querySelector(\"#editorjs\"), 'editorjs')\n editorController?.save()\n }\n}","// import Rails from '@rails/ujs'\nimport { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\n// let lastMessageId\n// const reload = controller => {\n// controller.stimulate('ChatReflex#reload')\n// }\n// const debouncedReload = debounce(reload, 100)\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n }\n\n beforeReflex(el) {\n document.querySelector('.loading-spinner').classList.remove('d-none');\n }\n\n afterReflex(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n reflexError(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n reflexHalted(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n reload() {\n this.stimulate('LeadQueueReflex#reload');\n }\n\n show_lead(e) {\n if (e.target.nodeName.toLowerCase() == 'input') {\n return;\n }\n e.preventDefault();\n let path = this.element.dataset.href;\n window.location.href = path;\n }\n\n show_session(e) {\n e.preventDefault();\n let path = this.element.dataset.session_url;\n window.location.href = path;\n }\n\n show_modal(e) {\n let modalController = this.application.getControllerForElementAndIdentifier(\n document.getElementById(e.srcElement.dataset['target']),\n 'modal'\n );\n modalController.open();\n }\n\n toggle_lock(e) {\n e.preventDefault();\n let leadId = this.element.dataset.leadId;\n this.stimulate('LeadQueue#toggle_lock_lead', leadId);\n }\n\n place_call(e) {\n e.preventDefault();\n let leadId = this.element.dataset.leadId;\n let userId = this.element.dataset.userId;\n this.stimulate('LeadQueue#place_call', leadId, userId);\n }\n}\n","export class GeminiLiveAPI {\n constructor(options = {}) {\n this.geminiServiceWebsocketUrl = `wss://generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContent?key=${options.apiKey}`;\n this.responseModalities = [\"AUDIO\"];\n \n this.modelName = options.modelName || \"models/gemini-2.0-flash-exp\";\n this.systemInstruction = options.systemInstruction || \"You are my helpful assistant. Don\\'t ask for additional information just make your best judgement.\";\n this.tools = options.tools || [\n { googleSearch: {} },\n { functionDeclarations: [] },\n ];\n \n this.onReceiveResponse = (message) => {\n console.log(\"Default message received callback\", message);\n };\n \n this.onConnectionStarted = () => {\n console.log(\"Default onConnectionStarted\");\n };\n \n this.onConnectionClose = () => {\n console.log(\"Default onConnectedClose\");\n };\n \n this.onErrorMessage = (message) => {\n alert(message);\n };\n \n this.websocket = null;\n }\n\n connect(){\n this.setupWebSocketToService();\n }\n\n disconnect() {\n this.webSocket.close();\n this.webSocket = null;\n }\n\n setupWebSocketToService() {\n console.log(\"connecting: \", this.geminiServiceWebsocketUrl);\n\n this.webSocket = new WebSocket(this.geminiServiceWebsocketUrl);\n\n this.webSocket.onclose = (event) => {\n console.log(\"websocket closed: \", event);\n this.onConnectionClose();\n };\n\n this.webSocket.onerror = (event) => {\n console.log(\"websocket error: \", event);\n this.onErrorMessage(\"Connection error\");\n };\n\n this.webSocket.onopen = (event) => {\n console.log(\"websocket open: \", event);\n this.sendInitialSetupMessages();\n this.onConnectionStarted();\n };\n\n this.webSocket.onmessage = this.onReceiveMessage.bind(this);\n }\n\n sendInitialSetupMessages() {\n const sessionSetupMessage = {\n setup: {\n model: this.modelName,\n generation_config: {\n response_modalities: this.responseModalities,\n speechConfig: {\n voiceConfig: { prebuiltVoiceConfig: { voiceName: \"Aoede\" } },\n }\n },\n system_instruction: {\n parts: [{ text: this.systemInstruction }],\n },\n tools: [\n { googleSearch: {} },\n { functionDeclarations: [] },\n ],\n },\n };\n this.sendMessage(sessionSetupMessage);\n console.log(\"session setup started\");\n }\n\n sendMessage(message) {\n this.webSocket.send(JSON.stringify(message));\n }\n\n async onReceiveMessage(messageEvent) {\n console.log(\"Message received: \", messageEvent);\n\n try {\n if (messageEvent.data instanceof Blob) {\n const text = await new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => resolve(reader.result);\n reader.onerror = reject;\n reader.readAsText(messageEvent.data);\n });\n\n const messageData = JSON.parse(text);\n const message = new GeminiLiveResponseMessage(messageData);\n this.onReceiveResponse(message);\n } else {\n const messageData = JSON.parse(messageEvent.data);\n const message = new GeminiLiveResponseMessage(messageData);\n this.onReceiveResponse(message);\n }\n } catch (error) {\n console.error(\"Error processing message:\", error);\n }\n }\n\n sendTextMessage(text) {\n const textMessage = {\n client_content: {\n turns: [\n {\n role: \"user\",\n parts: [{ text: text }],\n },\n ],\n turn_complete: true,\n },\n };\n this.sendMessage(textMessage);\n }\n\n sendRealtimeInputMessage(data, mime_type) {\n const message = {\n realtime_input: {\n media_chunks: [\n {\n mime_type: mime_type,\n data: data,\n },\n ],\n },\n };\n this.sendMessage(message);\n }\n\n sendAudioMessage(base64PCM) {\n this.sendRealtimeInputMessage(base64PCM, \"audio/pcm\");\n }\n\n sendImageMessage(base64Image, mime_type = \"image/jpeg\") {\n this.sendRealtimeInputMessage(base64Image, mime_type);\n }\n}\n\nclass GeminiLiveResponseMessage {\n constructor(data) {\n this.data = \"\";\n this.type = \"\";\n this.endOfTurn = data?.serverContent?.turnComplete;\n this.interrupted = data?.serverContent?.interrupted;\n\n const parts = data?.serverContent?.modelTurn?.parts;\n\n if (data?.setupComplete) {\n this.type = \"SETUP_COMPLETE\";\n } else if (parts?.length && parts[0].text) {\n this.data = parts[0].text;\n this.type = \"TEXT\";\n } else if (parts?.length && parts[0].inlineData) {\n this.data = parts[0].inlineData.data;\n this.type = \"AUDIO\";\n } else if (data?.toolCall) {\n this.data = parts[0].toolCall;\n this.type = \"TOOL_CALL\"\n } else if (data?.toolCallCancellation) {\n this.data = parts[0].toolCallCancellation;\n }\n }\n}","const pcmProcessorCode = `\n/**\n * @class PCMProcessor\n * @extends AudioWorkletProcessor\n * @description Processes PCM audio data in a Web Audio API context\n */\nclass PCMProcessor extends AudioWorkletProcessor {\n constructor() {\n super();\n console.log(\"PCMProcessor constructed\");\n\n this.buffer = new Float32Array();\n this.isInterrupted = false;\n\n this.port.onmessage = (e) => {\n if (e.data.action === 'interrupt') {\n this.isInterrupted = true;\n this.buffer = new Float32Array();\n } else {\n this.isInterrupted = false;\n const newData = e.data;\n const newBuffer = new Float32Array(\n this.buffer.length + newData.length,\n );\n newBuffer.set(this.buffer);\n newBuffer.set(newData, this.buffer.length);\n this.buffer = newBuffer;\n }\n };\n }\n\n process(inputs, outputs, parameters) {\n if (this.isInterrupted) {\n outputs.forEach(output => {\n for (let i = 0; i < output.length; i++) {\n output[i].fill(0);\n }\n });\n return true;\n }\n\n const output = outputs[0];\n const channelData = output[0];\n\n if (this.buffer.length >= channelData.length) {\n channelData.set(this.buffer.slice(0, channelData.length));\n this.buffer = this.buffer.slice(channelData.length);\n return true;\n }\n\n return true;\n }\n}\n\nregisterProcessor(\"pcm_processor\", PCMProcessor);\n`;\n\n/**\n * Handles audio output for streaming applications\n */\nclass LiveAudioOutputManager {\n /**\n * Creates a new audio output manager\n */\n constructor() {\n this.audioContext = null;\n this.workletNode = null;\n this.initialized = false;\n }\n\n /**\n * Initializes the audio context and worklet\n * @returns {Promise}\n */\n async initializeAudioContext() {\n if (this.initialized) return;\n\n console.log(\"Initializing audio context...\");\n\n try {\n this.audioContext = new (window.AudioContext || window.webkitAudioContext)({\n sampleRate: 24000\n });\n\n const pcmProcessorBlob = new Blob([pcmProcessorCode], { type: 'text/javascript' });\n const pcmProcessorURL = URL.createObjectURL(pcmProcessorBlob);\n\n await this.audioContext.audioWorklet.addModule(pcmProcessorURL);\n\n URL.revokeObjectURL(pcmProcessorURL);\n\n this.workletNode = new AudioWorkletNode(\n this.audioContext,\n \"pcm_processor\"\n );\n\n this.workletNode.connect(this.audioContext.destination);\n this.initialized = true;\n\n console.log(\"Audio context initialized successfully\");\n } catch (error) {\n console.error(\"Failed to initialize audio context:\", error);\n this.initialized = false;\n throw error;\n }\n }\n\n /**\n * Plays a base64-encoded audio chunk\n * @param {string} base64AudioChunk - Base64-encoded PCM audio data\n * @returns {Promise}\n */\n async playAudioChunk(base64AudioChunk) {\n try {\n if (!base64AudioChunk) {\n console.warn(\"Empty audio chunk received\");\n return;\n }\n\n if (!this.initialized) {\n await this.initializeAudioContext();\n }\n\n if (this.audioContext.state === \"suspended\") {\n await this.audioContext.resume();\n }\n\n const arrayBuffer = LiveAudioOutputManager.base64ToArrayBuffer(base64AudioChunk);\n const float32Data = LiveAudioOutputManager.convertPCM16LEToFloat32(arrayBuffer);\n\n this.workletNode.port.postMessage(float32Data);\n } catch (error) {\n console.error(\"Error processing audio chunk:\", error);\n throw error;\n }\n }\n\n /**\n * Stops the audio playback\n */\n stopAudio() {\n if (this.audioContext && this.audioContext.state !== 'closed') {\n // Disconnect the worklet node\n if (this.workletNode) {\n this.workletNode.disconnect();\n }\n\n // Suspend the audio context\n this.audioContext.suspend();\n console.log(\"Audio playback stopped\");\n } else {\n console.warn(\"Audio context is not initialized or already closed.\");\n }\n }\n\n /**\n * Handles interruption from Gemini\n */\n interruptAudio() {\n if (this.workletNode) {\n this.workletNode.port.postMessage({ action: 'interrupt' });\n this.isInterrupted = true;\n console.log(\"Audio playback interrupted\");\n }\n }\n\n /**\n * Converts a base64 string to an ArrayBuffer\n * @param {string} base64 - Base64-encoded string\n * @returns {ArrayBuffer} The decoded array buffer\n */\n static base64ToArrayBuffer(base64) {\n const binaryString = window.atob(base64);\n const bytes = new Uint8Array(binaryString.length);\n\n for (let i = 0; i < binaryString.length; i++) {\n bytes[i] = binaryString.charCodeAt(i);\n }\n\n return bytes.buffer;\n }\n\n /**\n * Converts PCM16LE data to Float32 format\n * @param {ArrayBuffer} pcmData - The PCM data buffer\n * @returns {Float32Array} The converted float data\n */\n static convertPCM16LEToFloat32(pcmData) {\n const inputArray = new Int16Array(pcmData);\n const float32Array = new Float32Array(inputArray.length);\n\n for (let i = 0; i < inputArray.length; i++) {\n float32Array[i] = inputArray[i] / 32768;\n }\n\n return float32Array;\n }\n\n /**\n * Cleans up resources\n */\n dispose() {\n if (this.workletNode) {\n this.workletNode.disconnect();\n this.workletNode = null;\n }\n\n if (this.audioContext) {\n this.audioContext.close().catch(err =>\n console.error(\"Error closing audio context:\", err)\n );\n this.audioContext = null;\n }\n\n this.initialized = false;\n }\n}\n\n/**\n * Manages audio input from microphone\n */\nclass LiveAudioInputManager {\n /**\n * Creates a new audio input manager\n * @param {Object} options - Configuration options\n * @param {number} [options.sampleRate=16000] - Sample rate in Hz\n * @param {number} [options.chunkDuration=1000] - Duration of audio chunks in ms\n */\n constructor(options = {}) {\n this.options = {\n sampleRate: 16000,\n chunkDuration: 1000,\n ...options\n };\n\n this.audioContext = null;\n this.processor = null;\n this.stream = null;\n this.deviceId = null;\n this.interval = null;\n this.pcmData = [];\n this.isRecording = false;\n\n this.onNewAudioRecordingChunk = (audioData) => {\n console.log(\"New audio recording chunk received\");\n };\n }\n\n /**\n * Connects to the microphone and starts recording\n * @returns {Promise}\n */\n async connectMicrophone() {\n try {\n this.audioContext = new AudioContext({\n sampleRate: this.options.sampleRate,\n });\n\n let constraints = {\n audio: {\n channelCount: 1,\n sampleRate: this.options.sampleRate,\n }\n };\n\n if (this.deviceId) {\n constraints.audio.deviceId = { exact: this.deviceId };\n }\n\n this.stream = await navigator.mediaDevices.getUserMedia(constraints);\n\n const source = this.audioContext.createMediaStreamSource(this.stream);\n\n // Note: ScriptProcessorNode is deprecated but AudioWorklet may not be supported in all browsers\n // TODO: Refactor to use AudioWorklet when browser support is better\n this.processor = this.audioContext.createScriptProcessor(4096, 1, 1);\n\n this.processor.onaudioprocess = (e) => {\n const inputData = e.inputBuffer.getChannelData(0);\n // Convert float32 to int16\n const pcm16 = new Int16Array(inputData.length);\n for (let i = 0; i < inputData.length; i++) {\n pcm16[i] = inputData[i] * 0x7fff;\n }\n this.pcmData.push(...pcm16);\n };\n\n source.connect(this.processor);\n this.processor.connect(this.audioContext.destination);\n\n this.interval = setInterval(\n this.recordChunk.bind(this),\n this.options.chunkDuration\n );\n\n this.isRecording = true;\n console.log(\"Microphone connected and recording started\");\n } catch (error) {\n console.error(\"Error connecting microphone:\", error);\n this.cleanupResources();\n throw error;\n }\n }\n\n /**\n * Records a chunk of audio data and converts to base64\n */\n recordChunk() {\n if (this.pcmData.length === 0) {\n console.log(\"No audio data to record\");\n return;\n }\n\n try {\n const buffer = new ArrayBuffer(this.pcmData.length * 2);\n const view = new DataView(buffer);\n\n this.pcmData.forEach((value, index) => {\n view.setInt16(index * 2, value, true);\n });\n\n const base64 = btoa(\n String.fromCharCode.apply(null, new Uint8Array(buffer))\n );\n\n this.onNewAudioRecordingChunk(base64);\n this.pcmData = [];\n } catch (error) {\n console.error(\"Error recording audio chunk:\", error);\n }\n }\n\n /**\n * Disconnects the microphone and stops recording\n */\n disconnectMicrophone() {\n this.cleanupResources();\n console.log(\"Microphone disconnected\");\n }\n\n /**\n * Cleans up all resources\n */\n cleanupResources() {\n if (this.interval) {\n clearInterval(this.interval);\n this.interval = null;\n }\n\n if (this.processor) {\n try {\n this.processor.disconnect();\n this.processor = null;\n } catch (error) {\n console.error(\"Error disconnecting processor:\", error);\n }\n }\n\n if (this.audioContext) {\n try {\n this.audioContext.close();\n this.audioContext = null;\n } catch (error) {\n console.error(\"Error closing audio context:\", error);\n }\n }\n\n if (this.stream) {\n try {\n this.stream.getTracks().forEach(track => track.stop());\n this.stream = null;\n } catch (error) {\n console.error(\"Error stopping media tracks:\", error);\n }\n }\n\n this.pcmData = [];\n this.isRecording = false;\n }\n\n /**\n * Updates the microphone device and restarts recording\n * @param {string} deviceId - The ID of the microphone device\n * @returns {Promise}\n */\n async updateMicrophoneDevice(deviceId) {\n this.deviceId = deviceId;\n\n if (this.isRecording) {\n this.disconnectMicrophone();\n await this.connectMicrophone();\n }\n }\n}\n\n/**\n * Base class for video managers\n */\nclass BaseVideoManager {\n /**\n * Creates a new base video manager\n * @param {HTMLVideoElement} previewVideoElement - Video element for preview\n * @param {HTMLCanvasElement} previewCanvasElement - Canvas element for frame capture\n * @param {Object} options - Configuration options\n * @param {number} [options.captureInterval=1000] - Frame capture interval in ms\n */\n constructor(previewVideoElement, previewCanvasElement, options = {}) {\n if (!previewVideoElement || !previewCanvasElement) {\n throw new Error(\"Video and canvas elements are required\");\n }\n\n this.options = {\n captureInterval: 1000,\n ...options\n };\n\n this.previewVideoElement = previewVideoElement;\n this.previewCanvasElement = previewCanvasElement;\n this.ctx = this.previewCanvasElement.getContext(\"2d\");\n this.stream = null;\n this.interval = null;\n this.isCapturing = false;\n\n this.onNewFrame = (frameData) => {\n console.log(\"New video frame captured\");\n };\n }\n\n /**\n * Stops the media stream\n */\n stopStream() {\n if (!this.stream) return;\n\n try {\n const tracks = this.stream.getTracks();\n tracks.forEach(track => track.stop());\n this.stream = null;\n } catch (error) {\n console.error(\"Error stopping media stream:\", error);\n }\n }\n\n /**\n * Captures a frame and converts it to base64\n * @returns {string} Base64-encoded JPEG image\n */\n captureFrameB64() {\n if (!this.stream || !this.previewVideoElement.videoWidth) {\n return \"\";\n }\n\n try {\n this.previewCanvasElement.width = this.previewVideoElement.videoWidth;\n this.previewCanvasElement.height = this.previewVideoElement.videoHeight;\n\n this.ctx.drawImage(\n this.previewVideoElement,\n 0,\n 0,\n this.previewCanvasElement.width,\n this.previewCanvasElement.height\n );\n\n const imageData = this.previewCanvasElement\n .toDataURL(\"image/jpeg\")\n .split(\",\")[1]\n .trim();\n\n return imageData;\n } catch (error) {\n console.error(\"Error capturing frame:\", error);\n return \"\";\n }\n }\n\n /**\n * Processes a new frame capture\n */\n newFrame() {\n if (!this.isCapturing) return;\n\n const frameData = this.captureFrameB64();\n if (frameData) {\n this.onNewFrame(frameData);\n }\n }\n\n /**\n * Starts the frame capture interval\n */\n startCaptureInterval() {\n this.stopCaptureInterval();\n this.isCapturing = true;\n this.interval = setInterval(\n this.newFrame.bind(this),\n this.options.captureInterval\n );\n }\n\n /**\n * Stops the frame capture interval\n */\n stopCaptureInterval() {\n this.isCapturing = false;\n if (this.interval) {\n clearInterval(this.interval);\n this.interval = null;\n }\n }\n\n /**\n * Cleans up all resources\n */\n cleanup() {\n this.stopCaptureInterval();\n this.stopStream();\n }\n}\n\n/**\n * Manages webcam video capture\n * @extends BaseVideoManager\n */\nclass LiveVideoManager extends BaseVideoManager {\n /**\n * Starts the webcam and begins capturing frames\n * @param {Object} constraints - MediaStream constraints\n * @returns {Promise}\n */\n async startWebcam(constraints = {}) {\n try {\n const defaultConstraints = {\n video: true\n };\n\n const mergedConstraints = {\n ...defaultConstraints,\n ...constraints\n };\n\n this.stream = await navigator.mediaDevices.getUserMedia(mergedConstraints);\n this.previewVideoElement.srcObject = this.stream;\n\n // Wait for video to be ready\n await new Promise(resolve => {\n this.previewVideoElement.onloadedmetadata = () => {\n this.previewVideoElement.play();\n resolve();\n };\n });\n\n this.startCaptureInterval();\n console.log(\"Webcam started successfully\");\n } catch (error) {\n console.error(\"Error accessing the webcam:\", error);\n throw error;\n }\n }\n\n /**\n * Stops the webcam and frame capture\n */\n stopWebcam() {\n this.cleanup();\n console.log(\"Webcam stopped\");\n }\n\n /**\n * Updates the webcam device\n * @param {string} deviceId - The ID of the webcam device\n * @returns {Promise}\n */\n async updateWebcamDevice(deviceId) {\n try {\n const wasCapturing = this.isCapturing;\n this.cleanup();\n\n const constraints = {\n video: { deviceId: { exact: deviceId } }\n };\n\n this.stream = await navigator.mediaDevices.getUserMedia(constraints);\n this.previewVideoElement.srcObject = this.stream;\n\n if (wasCapturing) {\n this.startCaptureInterval();\n }\n\n console.log(\"Webcam device updated\");\n } catch (error) {\n console.error(\"Error updating webcam device:\", error);\n throw error;\n }\n }\n}\n\n/**\n * Manages screen sharing capture\n * @extends BaseVideoManager\n */\nclass LiveScreenManager extends BaseVideoManager {\n /**\n * Starts screen capture and begins capturing frames\n * @param {Object} options - Display media options\n * @returns {Promise}\n */\n async startCapture(options = {}) {\n try {\n this.stream = await navigator.mediaDevices.getDisplayMedia(options);\n this.previewVideoElement.srcObject = this.stream;\n\n // Handle user ending the share\n this.stream.getVideoTracks()[0].addEventListener('ended', () => {\n console.log(\"Screen sharing ended by user\");\n this.stopCapture();\n });\n\n // Wait for video to be ready\n await new Promise(resolve => {\n this.previewVideoElement.onloadedmetadata = () => {\n this.previewVideoElement.play();\n resolve();\n };\n });\n\n this.startCaptureInterval();\n console.log(\"Screen capture started successfully\");\n } catch (error) {\n console.error(\"Error starting screen capture:\", error);\n throw error;\n }\n }\n\n /**\n * Stops screen capture and frame capture\n */\n stopCapture() {\n this.cleanup();\n console.log(\"Screen capture stopped\");\n }\n}\n\n// Export classes for module usage\nexport {\n LiveAudioOutputManager,\n LiveAudioInputManager,\n LiveVideoManager,\n LiveScreenManager\n};","import { Controller } from \"stimulus\";\nimport { createWebsocketProxy } from \"../channels/websocket_proxy_channel\";\nimport { LiveAudioOutputManager, LiveAudioInputManager} from './live/live_media_manager';\n\nexport default class extends Controller {\n static targets = ['connectionIcon', 'connectionStatus']\n static values = { streamSessionId: String }\n\n initialize() {\n this.connected = false;\n this.liveAudioInputManager = new LiveAudioInputManager();\n this.liveAudioOutputManager = new LiveAudioOutputManager();\n\n this.websocket = createWebsocketProxy(\n this.streamSessionIdValue,\n async (data) => {\n try {\n // console.log('data from server to client', JSON.parse(data))\n if (data instanceof Blob) {\n const text = await new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => resolve(reader.result);\n reader.onerror = reject;\n reader.readAsText(data);\n });\n \n const messageData = JSON.parse(text);\n const message = new GeminiLiveResponseMessage(messageData);\n this.processMessage(message);\n } else {\n const messageData = JSON.parse(data);\n const message = new GeminiLiveResponseMessage(messageData);\n this.processMessage(message);\n }\n } catch (error) {\n console.error(\"Error processing message:\", error);\n }\n console.log(\"Message received from server: \", data);\n },\n (error) => {\n console.log(\"Errored on server: \", error);\n },\n () => {\n console.log(\"Connection Established\");\n },\n () => {\n console.log(\"Connection Closed\");\n this.stopAudioInput();\n }\n );\n\n this.liveAudioInputManager.onNewAudioRecordingChunk = (audioData) => {\n this.websocket.send({task: 'send_audio_message', audio: audioData });\n };\n }\n\n updateStatus(text) {\n this.connectionStatusTarget.innerHTML = text;\n }\n\n toggleConnection() {\n if (this.connected) {\n this.liveAudioOutputManager.interruptAudio();\n this.stopAudioInput();\n this.websocket.close();\n this.connected = false;\n this.updateStatus(\"Start Call\");\n this.connectionIconTarget.innerHTML = \"call\";\n } else {\n this.updateStatus('Connecting...')\n console.log(\"Connecting with stream session ID:\", this.streamSessionIdValue);\n this.websocket.send({task: 'connect', stream_session_id: this.streamSessionIdValue});\n }\n }\n\n startAudioInput() {\n this.liveAudioInputManager.connectMicrophone();\n }\n\n stopAudioInput() {\n this.liveAudioInputManager.disconnectMicrophone();\n }\n\n sendText() {\n this.websocket.send({ task: 'send_text_message', text: this.textInputTarget.value })\n }\n\n processMessage(messageResponse) {\n if (messageResponse.interrupted){\n this.liveAudioOutputManager.interruptAudio();\n } else if (messageResponse.type == \"AUDIO\") {\n console.log(\"Gemini messageResponse audio data\", messageResponse.data);\n this.liveAudioOutputManager.playAudioChunk(messageResponse.data);\n } else if (messageResponse.type == \"TEXT\") {\n console.log(\"Gemini said: \", messageResponse.data);\n } else if (messageResponse.type == \"SETUP_COMPLETE\") {\n console.log('Connection to gemini websocket setup complete')\n\n this.startAudioInput();\n this.websocket.send({task: 'send_text_message', text: 'Hello there!'});\n this.connected = true;\n this.updateStatus(\"End Call\");\n this.connectionIconTarget.innerHTML = \"call_end\";\n }\n }\n}\n\n\nclass GeminiLiveResponseMessage {\n constructor(data) {\n this.data = \"\";\n this.type = \"\";\n this.endOfTurn = data?.serverContent?.turnComplete;\n this.interrupted = data?.serverContent?.interrupted;\n\n const parts = data?.serverContent?.modelTurn?.parts;\n\n if (data?.setupComplete) {\n this.type = \"SETUP_COMPLETE\";\n } else if (parts?.length && parts[0].text) {\n this.data = parts[0].text;\n this.type = \"TEXT\";\n } else if (parts?.length && parts[0].inlineData) {\n this.data = parts[0].inlineData.data;\n this.type = \"AUDIO\";\n } else if (data?.toolCall) {\n this.data = parts[0].toolCall;\n this.type = \"TOOL_CALL\"\n } else if (data?.toolCallCancellation) {\n this.data = parts[0].toolCallCancellation;\n }\n }\n};","import { Controller } from 'stimulus';\nimport { GeminiLiveAPI } from './live/gemini_live_api';\nimport { LiveAudioOutputManager, LiveAudioInputManager} from './live/live_media_manager';\n\nexport default class extends Controller {\n static targets = ['connectionIcon', 'connectionStatus']\n static values = {\n connected: { type: Boolean, default: false },\n systemInstruction: { type: String, default: ''},\n modelName: { type: String, default: 'models/gemini-2.0-flash-exp'},\n tools: { type: Object, default: {} },\n startOnConnect: { type: Boolean, default: false },\n apiKey: { type: String, default: ''},\n }\n\n connect() {\n if (this.apiKeyValue == '') {\n return;\n }\n\n this.client = new GeminiLiveAPI({\n modelName: this.modelNameValue,\n systemInstruction: this.systemInstructionValue,\n tools: this.toolsValue,\n apiKey: this.apiKeyValue,\n });\n\n this.liveAudioInputManager = new LiveAudioInputManager();\n this.liveAudioOutputManager = new LiveAudioOutputManager();\n\n this.client.onReceiveResponse = (messageResponse) => {\n if (messageResponse.interrupted){\n this.liveAudioOutputManager.interruptAudio();\n } else if (messageResponse.type == \"AUDIO\") {\n this.liveAudioOutputManager.playAudioChunk(messageResponse.data);\n } else if (messageResponse.type == \"TEXT\") {\n console.log(\"Gemini said: \", messageResponse.data);\n } else if (messageResponse.type == \"SETUP_COMPLETE\") {\n console.log('Connection to gemini websocket setup complete')\n }\n };\n \n this.liveAudioInputManager.onNewAudioRecordingChunk = (audioData) => {\n this.client.sendAudioMessage(audioData);\n };\n\n this.client.onConnectionStarted = () => {\n this.startAudioInput();\n if (this.startOnConnectValue) {\n this.client.sendTextMessage('Hello there!')\n }\n this.connectedValue = true\n }\n\n this.client.onConnectionClose = () => {\n this.stopAudioInput();\n this.connectedValue = false;\n }\n }\n\n toggleConnection(e) {\n e.preventDefault();\n \n if (this.connectedValue) {\n this.connectionStatusTarget.innerHTML = 'Disconnecting...'\n this.client.disconnect();\n this.liveAudioOutputManager.interruptAudio();\n } else {\n this.connectionStatusTarget.innerHTML = 'Connecting...'\n this.client.connect();\n }\n }\n\n connectedValueChanged() {\n console.log('connected value changed to ', this.connectedValue);\n if (this.connectedValue) {\n this.connectionIconTarget.innerHTML = 'call_end';\n this.connectionIconTarget.classList.add('text-danger');\n this.connectionStatusTarget.innerHTML = 'End Call'\n } else {\n this.connectionIconTarget.innerHTML = 'call';\n this.connectionIconTarget.classList.remove('text-danger');\n this.connectionStatusTarget.innerHTML = 'Start Call'\n }\n }\n\n startAudioInput() {\n this.liveAudioInputManager.connectMicrophone();\n }\n\n stopAudioInput() {\n this.liveAudioInputManager.disconnectMicrophone();\n }\n}","import { Controller } from 'stimulus';\nimport { useDispatch } from 'stimulus-use';\n\nexport default class extends Controller {\n static values = { url: String, mediaId: String, blockIndex: Number };\n\n connect() {\n useDispatch(this);\n }\n\n onSelect() {\n let params = { selected_url: this.urlValue, media_id: this.mediaIdValue };\n if (this.hasBlockIndexValue) {\n params.block_index = this.blockIndexValue;\n }\n this.dispatch('selected', params);\n }\n}\n","import { Controller } from 'stimulus';\nimport { post, get, patch } from '@rails/request.js'\n\nexport default class extends Controller {\n static targets = [\n 'chatMessage',\n 'cannedMessageContent',\n 'fileContent',\n 'messageBox',\n 'quickResponseSelect',\n 'submitFormButton',\n ];\n\n static values = {\n aiSuggestionUrl: String,\n };\n\n addCannedMessage(e) {\n const newValue = e.currentTarget.value;\n this.chatMessageTarget.value = newValue;\n this.cannedMessageToggle();\n }\n\n sendButton(e) {\n if (e.keyCode == 13 && (e.ctrlKey || e.altKey)) {\n e.target.value = e.target.value + \"\\n\";\n } else if (e.keyCode == 13) {\n e.target.setAttribute('readonly', '');\n this.submitFormButtonTarget.click();\n e.target.value = '';\n }\n }\n\n fileToggle() {\n if (this.fileContentTarget.classList.contains('show')) {\n this.fileContentTarget.classList.remove('show');\n this.messageBoxTarget.classList.add('show');\n } else {\n this.fileContentTarget.classList.add('show');\n this.messageBoxTarget.classList.remove('show');\n if (this.cannedMessageContentTarget) {\n this.cannedMessageContentTarget.classList.remove('show');\n }\n }\n }\n\n switchQuickResponse() {\n if (this.quickResponseSelectTarget.value) {\n document.querySelectorAll('textarea.quick-response-txt').forEach((e) => {\n if (!e.classList.contains('collapse')) {\n e.classList.add('collapse');\n }\n });\n let quickResponseTxt = document.querySelector(\n 'textarea[data-quick-response-id=\\'' +\n this.quickResponseSelectTarget.value +\n '\\']'\n );\n quickResponseTxt.classList.remove('collapse');\n this.submitFormButtonTarget.disabled = false;\n } else {\n this.submitFormButtonTarget.disabled = true;\n document.querySelectorAll('textarea.quick-response-txt').forEach((e) => {\n if (!e.classList.contains('collapse')) {\n e.classList.add('collapse');\n }\n });\n }\n }\n\n cannedMessageToggle() {\n if (this.cannedMessageContentTarget.classList.contains('show')) {\n this.cannedMessageContentTarget.classList.remove('show');\n this.messageBoxTarget.classList.add('show');\n } else {\n this.cannedMessageContentTarget.classList.add('show');\n this.fileContentTarget.classList.remove('show');\n this.messageBoxTarget.classList.remove('show');\n }\n }\n\n async getAiSuggestion(e) {\n console.log(e.target.classList.contains('disabled'));\n if(e.target.classList.contains('disabled')) return;\n\n e.target.classList.add('disabled');\n e.target.innerHTML = 'Generating...';\n if(this.hasAiSuggestionUrlValue) {\n await get(this.aiSuggestionUrlValue, { responseKind: 'turbo-stream' });\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"commentForm\"];\n\n closeCommentForm(event) {\n event.preventDefault();\n this.commentFormTarget.remove();\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'name',\n 'sessionId',\n 'startTime',\n 'startTimeText',\n 'cancelForm',\n 'rescheduleForm',\n ];\n\n setContent(data) {\n this.nameTarget.innerHTML = data.name;\n this.sessionIdTarget.innerHTML = data.sessionId;\n\n if (this.hasStartTimeTarget && data.startTime !== 'NA') {\n // this.startTimeTarget.value = data.startTime;\n // $(this.startTimeTarget).flatpickr({\n // enableTime: true,\n // minDate: \"today\",\n // altFormat: \"F j, Y at h:i K\",\n // dateFormat: \"Z\",\n // defaultHour: new Date().getHours(),\n // defaultMinute: new Date().getMinutes(),\n // minuteIncrement: 1,\n // appendTo: $('#cal-container')[0]\n // });\n }\n if (this.hasStartTimeTextTarget && data.startTime !== 'NA') {\n this.startTimeTextTarget.innerHTML = data.startTime;\n }\n if (this.hasCancelFormTarget) {\n let url = this.cancelFormTarget.action;\n let origin = new URL(url).origin;\n this.cancelFormTarget.action = `${origin}/sessions/${data.sessionId}`;\n }\n if (this.hasRescheduleFormTarget) {\n this.rescheduleFormTarget.action = `${origin}/sessions/${data.sessionId}`;\n }\n }\n\n open() {\n document.body.classList.add('modal-open');\n this.element.setAttribute('style', 'display: block;');\n this.element.classList.add('show');\n let backdropEl = document.createElement('div');\n backdropEl.classList.add('modal-backdrop', 'fade', 'show');\n document.body.append(backdropEl);\n }\n\n close() {\n document.body.classList.remove('modal-open');\n this.element.removeAttribute('style');\n this.element.classList.remove('show');\n document.getElementsByClassName('modal-backdrop')[0].remove();\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport storageAvailable from '../utils/localStorage';\n\nexport default class extends Controller {\n static targets = ['availability'];\n\n connect() {\n StimulusReflex.register(this);\n this.localStoragePresent = storageAvailable('localStorage');\n }\n\n open(event) {\n event.preventDefault();\n this.handleDom(true);\n }\n\n clickOutside(event) {\n this.handleDom(false);\n }\n\n handleDom(status = false) {\n const dom = document.getElementById('mobile_sidebar');\n if (status) {\n dom.classList.add('show');\n } else {\n dom.classList.remove('show');\n }\n }\n\n toggleExpand() {\n let sidebarEl = document.getElementById('sidebar');\n if (sidebarEl.classList.contains('expanded')) {\n this.localStoragePresent && localStorage.setItem('navbar', 'compact');\n this._collapse();\n } else {\n this.localStoragePresent && localStorage.setItem('navbar', 'expanded');\n this._expand();\n }\n }\n\n _collapse() {\n let sidebarEl = document.getElementById('sidebar');\n let mainEl = document.getElementById('main');\n sidebarEl.classList.remove('expanded');\n sidebarEl.classList.add('compact');\n mainEl.classList.add('expanded');\n }\n\n _expand() {\n let sidebarEl = document.getElementById('sidebar');\n let mainEl = document.getElementById('main');\n sidebarEl.classList.remove('compact');\n sidebarEl.classList.add('expanded');\n mainEl.classList.remove('expanded');\n }\n\n updatePresence() {\n this.stimulate(\n 'PresenceReflex#update_presence',\n this.availabilityTarget.checked ? 'online' : 'unavailable'\n );\n }\n}\n","import { Controller } from 'stimulus';\nimport storageAvailable from '../utils/localStorage';\n\nexport default class extends Controller {\n static targets = [\n 'collapseBtn',\n 'sidebar',\n 'body',\n 'navItem',\n 'onboardingSummary',\n ];\n\n connect() {\n this.localStoragePresent = storageAvailable('localStorage');\n let navbarPreference =\n this.localStoragePresent && localStorage.getItem('navbar');\n\n if (navbarPreference && navbarPreference == 'expanded') {\n this.expand();\n } else {\n this.compact();\n }\n\n this._checkAndShowOnboardingPopup();\n }\n\n expand() {\n $(this.navItemTargets).tooltip('disable');\n this.sidebarTarget.classList.remove('compact');\n this.bodyTarget.classList.remove('compact');\n this.collapseBtnTarget.innerHTML = '';\n this.localStoragePresent && localStorage.setItem('navbar', 'expanded');\n }\n\n compact() {\n $(this.navItemTargets).tooltip('enable');\n this.localStoragePresent && localStorage.setItem('navbar', 'compact');\n this.sidebarTarget.classList.add('compact');\n this.bodyTarget.classList.add('compact');\n this.collapseBtnTarget.innerHTML = '';\n }\n\n toggleCollapse() {\n if (this.sidebarTarget.classList.contains('compact')) {\n this.expand();\n } else {\n this.compact();\n }\n }\n\n toggleOnboardingSummary() {\n if (this.hasOnboardingSummaryTarget)\n $(this.onboardingSummaryTarget).slideToggle();\n }\n\n _checkAndShowOnboardingPopup() {\n if (this.hasOnboardingSummaryTarget) {\n if (this.onboardingSummaryTarget.dataset.autoShow == 'true')\n setTimeout(() => {\n $(this.onboardingSummaryTarget).slideToggle();\n }, 1000);\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['link'];\n static values = {\n section: String,\n };\n\n connect() {\n // Check URL on load\n this.#activateLinkFromHash();\n }\n\n setActiveLinkSection({ target: clickedLink, params: { section } }) {\n this.#setActiveLink(clickedLink, section);\n }\n\n #setActiveLink(link, section) {\n this.linkTargets.forEach((link) => link.classList.remove('active'));\n link.classList.add('active');\n this.sectionValue = section;\n }\n\n sectionValueChanged() {\n const navlinkSections = document.querySelectorAll('[data-navlink-section]');\n navlinkSections.forEach((navlinkSection) => {\n if (navlinkSection.dataset.navlinkSection !== this.sectionValue) {\n navlinkSection.classList.add('d-none');\n } else {\n navlinkSection.classList.remove('d-none');\n }\n });\n }\n\n #activateLinkFromHash() {\n const hash = window.location.hash;\n if (hash) {\n const targetLink = this.linkTargets.find(\n (link) => link.getAttribute('href') === hash\n );\n if (targetLink) {\n this.#setActiveLink(targetLink, targetLink.dataset.navlinkSectionParam);\n }\n } else {\n const firstLinkTarget = this.linkTargets[0];\n this.#setActiveLink(\n firstLinkTarget,\n firstLinkTarget.dataset.navlinkSectionParam\n );\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport \"ninja-keys\"\nimport \"hotkeys-js\"\nimport { get } from '@rails/request.js'\n\nexport default class extends Controller{\n connect(){\n this.element.data = [\n {\n id: 'Apps',\n title: 'Apps',\n hotkey: 'g + a',\n mdIcon: 'apps',\n section: 'Goto',\n handler: () => {\n this.open('/wa/flows')\n }\n },\n {\n id: 'Draft Apps',\n title: 'Draft Apps',\n hotkey: 'g + d',\n mdIcon: 'apps',\n section: 'Goto',\n handler: () => {\n this.open('/wa/flows/drafts')\n }\n },\n {\n id: 'Broadcasts',\n title: 'Broadcasts',\n hotkey: 'g + b',\n mdIcon: 'send',\n section: 'Goto',\n handler: () => {\n this.open('/wa/campaigns')\n }\n },\n {\n id: 'Chat',\n title: 'Chat',\n hotkey: 'g + i',\n mdIcon: 'chat',\n section: 'Goto',\n handler: () => {\n this.open('/conversations')\n }\n },\n \n {\n id: 'Change Conversation Status to Open',\n title: 'Change Conversation Status to Open',\n parent: 'Chat',\n section: 'Chat',\n hotkey: 'shift+O',\n handler: () => {\n document.querySelector('.js-open-conversation').click();\n }\n },\n {\n id: 'Change Conversation Status to Closed',\n title: 'Change Conversation Status to Closed',\n parent: 'Chat',\n section: 'Chat',\n hotkey: 'shift+C',\n handler: () => {\n document.querySelector('.js-close-conversation')?.click();\n }\n },\n {\n id: 'Change Conversation Status to Pending',\n title: 'Change Conversation Status to Pending',\n parent: 'Chat',\n section: 'Chat',\n hotkey: 'shift+P',\n handler: () => {\n document.querySelector('.js-pending-conversation')?.click();\n }\n },\n {\n id: 'Change Conversation Status to Awaiting Response',\n title: 'Change Conversation Status to Awaiting Response',\n parent: 'Chat',\n section: 'Chat',\n hotkey: 'shift+A',\n handler: () => {\n document.querySelector('.js-awaiting-response-conversation')?.click();\n }\n },\n {\n id: 'Assign To Me',\n title: 'Assign To Me',\n parent: 'Chat',\n section: 'Assign To',\n hotkey: 'shift+N+M',\n handler: () => {\n document.querySelector('.js-assign-to-me')?.click();\n }\n },\n {\n id: 'Assign To Others',\n title: 'Assign To Others',\n parent: 'Chat',\n section: 'Assign To',\n hotkey: 'shift+N+O',\n handler: () => {\n document.querySelector('.js-assign-to-others')?.click();\n }\n },\n {\n id: 'Contacts',\n title: 'Contacts',\n hotkey: 'g + c',\n mdIcon: 'contacts',\n section: 'Goto',\n handler: (e) => {\n this.open('/wa/subscribers')\n }\n },\n {\n id: 'Templates',\n title: 'Templates',\n hotkey: 'g + t',\n section: 'Goto',\n handler: () => {\n this.open('/wa/templates')\n }\n },\n {\n id: 'Settings',\n title: 'Settings',\n hotkey: 'g + s',\n section: 'Goto',\n handler: () => {\n this.open('/account')\n }\n },\n {\n id: 'Create App',\n title: 'Create App',\n parent: 'Create',\n hotkey: 'c + a',\n section: 'Create',\n handler: () => {\n this.get('/wa/flows/new')\n }\n },\n {\n id: 'Create Broadcast',\n title: 'Create Broadcast',\n parent: 'Create',\n hotkey: 'c + b',\n section: 'Create',\n handler: () => {\n this.get('/wa/campaigns/new')\n }\n },\n {\n id: 'Create Contact',\n title: 'Create Contact',\n parent: 'Create',\n hotkey: 'c + c',\n section: 'Create',\n handler: () => {\n this.get('/wa/subscribers/new')\n }\n },\n {\n id: 'Create Template',\n title: 'Create Template',\n parent: 'Create',\n hotkey: 'c + t',\n section: 'Create',\n handler: () => {\n this.get('/wa/templates/new')\n }\n }\n ]\n\n this.registerChord();\n }\n\n open(href) {\n window.location.href = href\n }\n\n async get(url) {\n const response = await get(url, {\n responseKind: 'turbo-stream'\n });\n }\n\n registerChord() {\n var chordScope = 'chord'\n\n var chord = {\n handler: null, // The hotkeys handler initiating the chord sequence\n timeout: null, // The chord timeout\n }\n\n var resetChord = function() {\n hotkeys.setScope(chordScope)\n clearTimeout(chord.timeout)\n chord.handler = null\n chord.timeout = null\n }\n\n hotkeys('g, c, ctrl+a', chordScope, function (event, handler) {\n hotkeys.setScope('g-')\n chord.handler = handler\n chord.timeout = setTimeout(function() {\n console.log('Stop waiting for second key after '+chord.handler.key)\n resetChord()\n }, 2000)\n console.log('You pressed '+handler.key+'. Waiting for second key i chord …')\n })\n hotkeys('a, b, c, i, t, d', 'g-', (event, handler) => {\n console.log('You pressed '+chord.handler.key+' followed by '+handler.key)\n switch (chord.handler.key) {\n case 'g':\n switch (handler.key) {\n case 'a':\n this.open('/wa/flows')\n break\n case 'b':\n this.open('/wa/campaigns')\n break\n case 'c':\n this.open('/wa/subscribers')\n break\n case 'd':\n this.open('/wa/flows/drafts')\n break\n case 'i':\n this.open('/conversations')\n break\n case 't':\n this.open('/wa/templates')\n break\n }\n break\n case 'c':\n switch (handler.key) {\n case 'a':\n this.open('/wa/flows/new')\n break\n case 't':\n this.get('/wa/templates/new')\n break\n case 'b':\n this.get('/wa/campaigns/new')\n break\n case 'c':\n this.get('/wa/subscribers/new')\n break\n }\n break\n }\n resetChord()\n })\n\n hotkeys.setScope(chordScope)\n }\n}","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport { Notyf } from 'notyf';\nimport { patch } from '@rails/request.js';\n// let lastMessageId\n// const reload = controller => {\n// controller.stimulate('ChatReflex#reload')\n// }\n// const debouncedReload = debounce(reload, 100)\n\nexport default class extends Controller {\n initialize() {\n this.notyf = new Notyf({\n types: [\n {\n type: 'info',\n dismissible: true,\n icon: false,\n className: 'notification-info',\n position: { x: 'right', y: 'top' },\n },\n ],\n });\n }\n\n connect() {\n StimulusReflex.register(this);\n }\n\n _browserNotify(message) {\n if ('serviceWorker' in navigator) {\n this._serviceWorkerNotify({\n title: 'You have an incoming call',\n body: message,\n });\n return;\n }\n\n if ('Notification' in window) {\n if (Notification.permission === 'granted') {\n let notification = new Notification('You have an incoming call', {\n body: message,\n requireInteraction: true,\n });\n console.log(notification);\n } else if (Notification.permission !== 'denied') {\n // ask for permission\n Notification.requestPermission().then(function (permission) {\n // If the user accepts, let's create a notification\n if (permission === 'granted') {\n new Notification('You have an incoming call', {\n body: message,\n requireInteraction: true,\n });\n }\n });\n }\n return;\n }\n console.log('This browser does not support desktop notification');\n }\n\n updateCounts(el) {\n let unreadCount = 0;\n if (el.target instanceof HTMLTemplateElement &&\n el.target.templateContent &&\n el.target.templateContent.querySelectorAll('.content').length > 0\n ) {\n unreadCount =\n el.target.templateContent.querySelectorAll('.content').length;\n }\n if (unreadCount > 0) {\n document\n .querySelector('.notifications button span.badge')\n .classList.remove('d-none');\n } else {\n document\n .querySelector('.notifications button span.badge')\n .classList.add('d-none');\n }\n }\n\n async markRead() {\n let notificationIds = [];\n document.querySelectorAll('#mini_notifications .content').forEach((el) => {\n notificationIds.push(el.dataset.notificationId);\n });\n if (\n !document.querySelector('#mini_notifications.show') ||\n notificationIds.length == 0\n ) {\n return;\n }\n await patch(this.element.querySelector('button').dataset.url, {\n responseKind: 'turbo-stream',\n body: JSON.stringify({\n notifications: notificationIds,\n }),\n });\n }\n\n _serviceWorkerNotify(message) {\n if (Notification.permission == 'granted') {\n navigator.serviceWorker.getRegistration().then(function (reg) {\n var options = {\n body: message.body,\n icon: '/images/icon-192.png',\n sound: '/call-tone.mp3',\n badge: '/images/badge-128.png',\n data: {\n dateOfArrival: Date.now(),\n primaryKey: 1,\n },\n requireInteraction: true,\n };\n reg.showNotification(message.title, options);\n });\n }\n }\n\n notify(e) {\n if (e.target && e.target.getAttribute('action') == 'remove') {\n this.cancelRingTone();\n return;\n }\n let notificationEl =\n e.target.templateContent.querySelector('.notification');\n if (notificationEl) {\n if (\n notificationEl.dataset.notificationType != 'incoming_call' &&\n notificationEl.dataset.notificationType != 'call_invite'\n ) {\n let notification = this.notyf.success({\n type: 'info',\n message: notificationEl.querySelector(\n 'span[data-notification-attr=\\'message\\']'\n ).innerHTML,\n duration: 0,\n });\n notification.on('click', () => {\n window.location.href = notificationEl.dataset.targetUrl;\n });\n } else {\n let message = notificationEl.querySelector(\n 'span[data-notification-attr=\\'message\\']'\n ).innerHTML;\n if (notificationEl.dataset.playRingtone) {\n this._browserNotify(message);\n this._playRingtone();\n }\n }\n }\n }\n\n hideNotification(e) {\n e.preventDefault();\n let parentEl = e.target.closest('div.notification');\n parentEl.classList.add('d-none');\n }\n\n _playRingtone() {\n let ringtoneEl = document.querySelector('audio#call-ringtone');\n if (ringtoneEl) {\n window.setTimeout(() => {\n ringtoneEl\n .play()\n .then(console.log('played audio'))\n .catch((e) => {\n console.log('audio did not play', e);\n });\n ringtoneEl.muted = false;\n }, 1000);\n window.setTimeout(() => {\n this.cancelRingTone();\n }, 30000);\n }\n }\n\n cancelRingTone(e) {\n if (e) {\n e.stopEventPropogation();\n }\n let ringtoneEl = document.querySelector('audio#call-ringtone');\n ringtoneEl.pause();\n }\n\n show(e) {\n let notificationData = e.detail;\n let notification = this.notyf.success({\n type: 'info',\n message: notificationData.message,\n duration: 0,\n });\n notification.on('click', () => {\n window.location.href = notificationData.targetUrl;\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"bsmodal\"\nexport default class extends Controller {\n connect() {\n this.offCanvas = new bootstrap.Offcanvas(this.element, {\n keyboard: false\n })\n this.offCanvas.show()\n }\n\n disconnect() {\n this.offCanvas.hide()\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['timeField', 'copyTime'];\n\n connect() {}\n\n toggleInputs(e) {\n let element = e.target;\n let checked = element.checked;\n let form_groups = document.querySelectorAll(`.${element.id}_group`);\n if (checked) this._checkOfficeHour(form_groups);\n else this._uncheckOfficeHour(form_groups);\n }\n\n _uncheckOfficeHour(elements) {\n elements.forEach((form_group) => {\n form_group.classList.replace('d-block', 'd-none');\n form_group.querySelectorAll('input').forEach((el) => {\n if (el.name.indexOf('_destroy') > -1) el.value = 1;\n });\n });\n }\n\n _checkOfficeHour(elements) {\n elements.forEach((form_group) => {\n form_group.classList.replace('d-none', 'd-block');\n form_group.querySelectorAll('input').forEach((el) => {\n if (el.name.indexOf('_destroy') > -1) el.value = false;\n });\n });\n }\n\n copyTime() {\n let container = document.querySelectorAll('.day-group.d-block')[0];\n if (container) {\n let start_time = container.querySelector('.start_at');\n let end_time = container.querySelector('.close_at');\n document.querySelectorAll('.start_at').forEach((el) => {\n el.value = start_time.value;\n });\n document.querySelectorAll('.close_at').forEach((el) => {\n el.value = end_time.value;\n });\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'overlay',\n 'scriptSuccess',\n 'enableWidgetForm',\n 'hiddenInput',\n 'emailNotification',\n 'handleInput',\n 'handleText'\n ];\n connect() {\n this._handleScriptSuccessMessage();\n }\n\n playVideo() {\n $('.overlay').fadeOut();\n }\n\n submitWidgetForm() {\n let form = document.getElementById('widget_hidden_form');\n if (form) {\n if (form.reportValidity()) form.submit();\n }\n }\n\n submitEnableWidgetForm(e) {\n if (this.hasEnableWidgetFormTarget) {\n this.hiddenInputTarget.value = e.target.checked ? '1' : '0';\n this.enableWidgetFormTarget.submit();\n }\n }\n\n generateSlug(e){\n let slug = e.target.value\n .trim()\n .toLowerCase()\n .replace(/ /g,'-')\n .replace(/[^\\w-]+/g,'')\n console.log(slug);\n if(!this.hasHandleInputTarget || !this.hasHandleTextTarget)\n return;\n this.handleInputTarget.value = slug\n this.handleTextTarget.innerHTML = slug\n }\n\n _handleScriptSuccessMessage() {\n if (this.hasEmailNotificationTarget) {\n setTimeout(() => {\n this.emailNotificationTarget.remove();\n }, 2500);\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'distance',\n 'timeRemainingWrapper',\n 'timeRemaining',\n 'redirectBtn',\n ];\n connect() {\n const timerElement = this.timeRemainingTarget;\n const redirectBtn = this.redirectBtnTarget;\n const timeRemainingWrapper = this.timeRemainingWrapperTarget;\n var distance = parseInt(this.distanceTarget.value) - 1000;\n var x = setInterval(function () {\n if (distance <= 0) {\n clearInterval(x);\n timeRemainingWrapper.classList.add('d-none');\n redirectBtn.classList.remove('d-none');\n }\n var seconds = Math.floor((distance % (1000 * 60)) / 1000);\n timerElement.innerHTML = seconds + ' seconds';\n distance = distance - 1000;\n }, 1000);\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['distance'];\n connect() {\n var distance = parseInt(this.distanceTarget.value);\n var x = setInterval(function () {\n if (distance < 0) {\n clearInterval(x);\n document.getElementById('expired_redirect_link').click();\n }\n var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));\n var seconds = Math.floor((distance % (1000 * 60)) / 1000);\n document.getElementById('time_remaining').innerHTML =\n minutes + ' minutes ' + seconds + ' seconds';\n distance = distance - 1000;\n }, 1000);\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['input', 'button']\n\n connect() {\n this.checkAll()\n }\n\n // Check whether all the check box inputs are checked\n // if checked, enable the submit button\n // if not checked, disable the submit button\n // by default the button should be disabled\n checkAll(e) {\n let checked = true;\n\n this.inputTargets.forEach(input => {\n if (!input.checked) {\n checked = false;\n }\n })\n if (checked) {\n // add disabled class to button target\n this.buttonTarget.classList.remove('disabled')\n } else {\n // remove disabled class from button target\n this.buttonTarget.classList.add('disabled')\n }\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [];\n\n initPhotoSwipeFromDOM(gallerySelector) {\n // parse slide data (url, title, size ...) from DOM elements\n // (children of gallerySelector)\n var parseThumbnailElements = function (el) {\n var thumbElements = el.childNodes,\n numNodes = thumbElements.length,\n items = [],\n figureEl,\n linkEl,\n size,\n item;\n\n for (var i = 0; i < numNodes; i++) {\n figureEl = thumbElements[i]; //
    element\n\n // include only element nodes\n if (figureEl.nodeType !== 1) {\n continue;\n }\n\n linkEl = figureEl.children[0]; // element\n\n size = linkEl.getAttribute('data-size').split('x');\n\n // create slide object\n item = {\n src: linkEl.getAttribute('href'),\n w: parseInt(size[0], 10),\n h: parseInt(size[1], 10),\n };\n\n if (figureEl.children.length > 1) {\n //
    content\n item.title = figureEl.children[1].innerHTML;\n }\n\n if (linkEl.children.length > 0) {\n // thumbnail element, retrieving thumbnail url\n item.msrc = linkEl.children[0].getAttribute('src');\n }\n\n item.el = figureEl; // save link to element for getThumbBoundsFn\n items.push(item);\n }\n\n return items;\n };\n\n // find nearest parent element\n var closest = function closest(el, fn) {\n return el && (fn(el) ? el : closest(el.parentNode, fn));\n };\n\n // triggers when user clicks on thumbnail\n var onThumbnailsClick = function (e) {\n e = e || window.event;\n e.preventDefault ? e.preventDefault() : (e.returnValue = false);\n\n var eTarget = e.target || e.srcElement;\n\n // find root element of slide\n var clickedListItem = closest(eTarget, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'FIGURE';\n });\n\n if (!clickedListItem) {\n return;\n }\n\n // find index of clicked item by looping through all child nodes\n // alternatively, you may define index via data- attribute\n var clickedGallery = clickedListItem.parentNode,\n childNodes = clickedListItem.parentNode.childNodes,\n numChildNodes = childNodes.length,\n nodeIndex = 0,\n index;\n\n for (var i = 0; i < numChildNodes; i++) {\n if (childNodes[i].nodeType !== 1) {\n continue;\n }\n\n if (childNodes[i] === clickedListItem) {\n index = nodeIndex;\n break;\n }\n nodeIndex++;\n }\n\n if (index >= 0) {\n // open PhotoSwipe if valid index found\n openPhotoSwipe(index, clickedGallery);\n }\n return false;\n };\n\n // parse picture index and gallery index from URL (#&pid=1&gid=2)\n var photoswipeParseHash = function () {\n var hash = window.location.hash.substring(1),\n params = {};\n\n if (hash.length < 5) {\n return params;\n }\n\n var vars = hash.split('&');\n for (var i = 0; i < vars.length; i++) {\n if (!vars[i]) {\n continue;\n }\n var pair = vars[i].split('=');\n if (pair.length < 2) {\n continue;\n }\n params[pair[0]] = pair[1];\n }\n\n if (params.gid) {\n params.gid = parseInt(params.gid, 10);\n }\n\n return params;\n };\n\n var openPhotoSwipe = function (\n index,\n galleryElement,\n disableAnimation,\n fromURL\n ) {\n var pswpElement = document.querySelectorAll('.pswp')[0],\n gallery,\n options,\n items;\n\n items = parseThumbnailElements(galleryElement);\n\n // define options (if needed)\n options = {\n // define gallery index (for URL)\n galleryUID: galleryElement.getAttribute('data-pswp-uid'),\n\n getThumbBoundsFn: function (index) {\n // See Options -> getThumbBoundsFn section of documentation for more info\n var thumbnail = items[index].el.getElementsByTagName('img')[0], // find thumbnail\n pageYScroll =\n window.pageYOffset || document.documentElement.scrollTop,\n rect = thumbnail.getBoundingClientRect();\n\n return { x: rect.left, y: rect.top + pageYScroll, w: rect.width };\n },\n };\n\n // PhotoSwipe opened from URL\n if (fromURL) {\n if (options.galleryPIDs) {\n // parse real index when custom PIDs are used\n // http://photoswipe.com/documentation/faq.html#custom-pid-in-url\n for (var j = 0; j < items.length; j++) {\n if (items[j].pid == index) {\n options.index = j;\n break;\n }\n }\n } else {\n // in URL indexes start from 1\n options.index = parseInt(index, 10) - 1;\n }\n } else {\n options.index = parseInt(index, 10);\n }\n\n // exit if index not found\n if (isNaN(options.index)) {\n return;\n }\n\n if (disableAnimation) {\n options.showAnimationDuration = 0;\n }\n\n // Pass data to PhotoSwipe and initialize it\n /* eslint-disable */\n gallery = new PhotoSwipe(\n pswpElement,\n PhotoSwipeUI_Default,\n items,\n options\n ); // eslint-disable\n /* eslint-enable */\n\n gallery.init();\n };\n\n // loop through all gallery elements and bind events\n var galleryElements = document.querySelectorAll(gallerySelector);\n\n for (var i = 0, l = galleryElements.length; i < l; i++) {\n galleryElements[i].setAttribute('data-pswp-uid', i + 1);\n galleryElements[i].onclick = onThumbnailsClick;\n }\n\n // Parse URL and open gallery if it contains #&pid=3&gid=1\n var hashData = photoswipeParseHash();\n if (hashData.pid && hashData.gid) {\n openPhotoSwipe(\n hashData.pid,\n galleryElements[hashData.gid - 1],\n true,\n true\n );\n }\n }\n\n connect() {\n this.initPhotoSwipeFromDOM('.message-gallery');\n }\n}\n","import { Controller } from 'stimulus';\nimport { EmojiButton } from '@joeattardi/emoji-button';\n\nexport default class extends Controller {\n static targets = ['emojiMessage', 'emojiIcon'];\n connect() {\n if (this.hasEmojiIconTarget && this.hasEmojiMessageTarget) {\n const picker = new EmojiButton();\n const trigger = this.emojiIconTarget;\n const msg = this.emojiMessageTarget;\n\n picker.on('emoji', (selection) => {\n const newValue = selection.emoji;\n msg.value += newValue;\n });\n\n trigger.addEventListener('click', () => picker.togglePicker(trigger));\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static values = { country: String };\n static targets = [\n 'basicPrice',\n 'premiumPrice',\n 'period',\n 'basicPricingSelect',\n 'premiumPricingSelect',\n 'period',\n 'periodSelect',\n 'basicBuyButton',\n 'premiumBuyButton',\n ];\n\n connect() {\n let pricingUrl =\n process.env.NODE_ENV === 'production'\n ? 'https://w.gumstack.com/pricing.json'\n : 'https://w.gumstack.com/dev_pricing.json';\n fetch(pricingUrl)\n .then((response) => response.json())\n .then((data) => {\n this.pricing_data = data;\n this.updatePrice();\n });\n }\n\n updatePrice() {\n this.periodTargets.forEach((period) => {\n period.innerText = this.period();\n });\n this.updateBasicPrice();\n this.updatePremiumPrice();\n }\n\n updateBasicPrice() {\n this.basicPriceTarget.innerText =\n this.currency() + this.priceForPlan(this.basicPricingSelectTarget.value);\n\n let publishableKey =\n this.basicBuyButtonTarget.getAttribute('publishable-key');\n let customerSessionClientSecret = this.basicBuyButtonTarget.getAttribute(\n 'customer-session-client-secret'\n );\n\n let stripeBuyButton = document.createElement('stripe-buy-button');\n stripeBuyButton.setAttribute(\n 'buy-button-id',\n this.buy_button_id(this.basicPricingSelectTarget.value)\n );\n stripeBuyButton.setAttribute('publishable-key', publishableKey);\n stripeBuyButton.setAttribute(\n 'customer-session-client-secret',\n customerSessionClientSecret\n );\n this.basicBuyButtonTarget.innerHTML = '';\n this.basicBuyButtonTarget.appendChild(stripeBuyButton);\n\n this.buy_button_id(this.basicPricingSelectTarget.value);\n }\n\n updatePremiumPrice() {\n this.premiumPriceTarget.innerText =\n this.currency() +\n this.priceForPlan(this.premiumPricingSelectTarget.value);\n\n let publishableKey =\n this.premiumBuyButtonTarget.getAttribute('publishable-key');\n let customerSessionClientSecret = this.premiumBuyButtonTarget.getAttribute(\n 'customer-session-client-secret'\n );\n\n let stripeBuyButton = document.createElement('stripe-buy-button');\n stripeBuyButton.setAttribute(\n 'buy-button-id',\n this.buy_button_id(this.premiumPricingSelectTarget.value)\n );\n stripeBuyButton.setAttribute('publishable-key', publishableKey);\n stripeBuyButton.setAttribute(\n 'customer-session-client-secret',\n customerSessionClientSecret\n );\n this.premiumBuyButtonTarget.innerHTML = '';\n this.premiumBuyButtonTarget.appendChild(stripeBuyButton);\n }\n\n currencyCode() {\n return this.countryValue === 'india' ? 'inr' : 'usd';\n }\n\n currency() {\n return this.countryValue === 'india' ? '₹' : '$';\n }\n\n payment_link(tier) {\n return this.pricing_data[tier][this.planPeriod()]['payment_link'];\n }\n\n buy_button_id(tier) {\n return this.pricing_data[tier][this.planPeriod()]['buy_button_id'];\n }\n\n priceForPlan(tier) {\n return this.pricing_data[tier][this.planPeriod()][this.currencyCode()];\n }\n\n planPeriod() {\n return this.periodSelectTarget.checked ? 'yearly' : 'monthly';\n }\n\n period() {\n return this.periodSelectTarget.checked ? 'year' : 'month';\n }\n}\n","import { Controller } from 'stimulus';\nimport QRCode from 'qrcode';\n\nexport default class extends Controller {\n static values = { link: String, scale: { type: Number, default: 6 } };\n static targets = ['canvas', 'downloadPNGBtn', 'downloadSVGBtn'];\n\n connect() {\n QRCode.toCanvas(\n this.canvasTarget,\n this.linkValue,\n { scale: this.scaleValue },\n function (error) {\n if (error) console.error(error);\n console.log('success!');\n }\n );\n if (this.hasDownloadPNGBtnTarget) {\n this.createPNGDownload();\n }\n if (this.hasDownloadSVGBtnTarget) {\n this.createSVGDownload();\n }\n }\n\n createPNGDownload() {\n this.downloadPNGBtnTarget.download = 'qrcode.png';\n this.downloadPNGBtnTarget.href = this.canvasTarget.toDataURL();\n }\n\n async createSVGDownload() {\n const svg = await QRCode.toString(this.linkValue, { type: 'svg' });\n const blob = new Blob([svg], { type: 'image/svg+xml;charset=utf-8' });\n const url = URL.createObjectURL(blob);\n\n this.downloadSVGBtnTarget.href = url;\n this.downloadSVGBtnTarget.download = 'qrcode.svg';\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = [\n 'paymentIdInput',\n 'orderIdInput',\n 'signatureInput',\n 'paymentForm',\n ];\n connect() {\n let data = this.element.dataset;\n let options = {\n key: data['razorpayKey'],\n amount: data['razorpayAmount'],\n currency: data['razorpayCurrency'],\n name: data['razorpayName'],\n description: data['razorpayDescription'],\n order_id: data['razorpayOrder_id'],\n handler: (response) => {\n this._successHandler(response);\n },\n prefill: {\n name: data['razorpaySubscriber.name'],\n email: data['razorpaySubscriber.email'],\n contact: data['razorpaySubscriber.contact'],\n },\n theme: {\n color: data['razorpayTheme.color'],\n },\n };\n this.rzp = new Razorpay(options); // eslint-disable-line\n this.showModal();\n }\n\n _successHandler(response) {\n this.paymentIdInputTarget.value = response.razorpay_payment_id;\n this.orderIdInputTarget.value = response.razorpay_order_id;\n this.signatureInputTarget.value = response.razorpay_signature;\n this.paymentFormTarget.requestSubmit();\n }\n\n showModal() {\n this.rzp && this.rzp.open();\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['content'];\n\n connect() {\n this.open = false;\n }\n\n toggle(event) {\n this.open === false ? this.show(event) : this.hide(event);\n }\n\n show() {\n this.open = true;\n this.contentTarget.style.setProperty('--read-more-line-clamp', '\\'unset\\'');\n }\n\n hide() {\n this.open = false;\n this.contentTarget.style.removeProperty('--read-more-line-clamp');\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static values = { siteKey: String }\n\n connect() {\n grecaptcha.render(\"recaptchaV2\", { sitekey: this.siteKeyValue })\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static values = {\n strategy: String, default: 'all'\n }\n\n connect() {\n this.boundValidateForm = this.validateForm.bind(this);\n this.element\n .querySelectorAll('input[required], textarea[required], select[required]')\n .forEach((element) => {\n element.addEventListener(\n this.getEventType(element),\n this.boundValidateForm\n );\n });\n this.validateForm();\n }\n\n disconnect() {\n this.element\n .querySelectorAll('input[required], textarea[required], select[required]')\n .forEach((element) => {\n element.removeEventListener(\n this.getEventType(element),\n this.boundValidateForm\n );\n });\n }\n\n validateForm() {\n let isValid = true;\n const inputFields = this.element.querySelectorAll(\n 'input[required], textarea[required], select[required]'\n );\n const submitButton = this.element.querySelector('[type=\"submit\"]') || this.element.querySelector('[role=\"submit\"]');\n\n if (this.strategyValue === 'all') {\n inputFields.forEach((field) => {\n let fieldValue = field.value.trim();\n if (field.type === 'file') {\n if (field.files.length > 0) {\n fieldValue = field.files[0].name; // Use file name\n } else {\n fieldValue = '';\n }\n }\n if (fieldValue === '') {\n isValid = false;\n }\n });\n } else if (this.strategyValue === 'any') {\n isValid = Array.from(inputFields).some((field) => {\n let fieldValue = field.value.trim();\n if (field.type === 'file') {\n if (field.files.length > 0) {\n fieldValue = field.files[0].name; // Use file name\n } else {\n fieldValue = '';\n }\n }\n return fieldValue !== '';\n });\n }\n\n if (submitButton) {\n submitButton.disabled = !isValid;\n }\n }\n\n getEventType(element) {\n if (element.tagName === 'SELECT') {\n return 'change';\n } else if (element.type === 'file') {\n return 'change';\n } else {\n return 'input';\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['item'];\n static classes = ['hidden'];\n static values = { more: String, less: String };\n\n connect() {\n this.class = this.hasHiddenClass ? this.hiddenClass : 'd-none';\n }\n\n toggle(e) {\n console.log(e.target.innerText);\n let moreText = this.hasMoreValue ? this.moreValue : 'expand_more';\n if (e.target.innerText == moreText) {\n e.target.innerText = this.lessValue ? this.lessValue : 'expand_less';\n } else {\n e.target.innerText = this.hasMoreValue ? this.moreValue : 'expand_more';\n }\n\n this.itemTargets.forEach((item) => {\n item.classList.toggle(this.class);\n });\n }\n}\n","import { Controller } from 'stimulus';\nimport $ from 'jquery';\n\nrequire('select2/dist/css/select2');\nrequire('select2-bootstrap-theme/dist/select2-bootstrap');\n\nimport Select2 from 'select2';\n\nexport default class extends Controller {\n connect() {\n const dom = this.element.getElementsByClassName('gs-select2').item(0);\n const options = this.getOptions(dom);\n $(dom).select2(options);\n if (options.limitShownOptions) {\n this.#limitShownOptions(dom)\n }\n }\n\n getOptions(dom) {\n let options = {\n theme: 'bootstrap',\n dropdownParent: this.element,\n selectionCssClass: 'form-select',\n };\n for (let key in dom.dataset) {\n try {\n if (this.#isJSONParseableOption(dom.dataset[key])) {\n options[key] = JSON.parse(dom.dataset[key]);\n } else {\n options[key] = dom.dataset[key];\n }\n } catch (e) {\n console.log(e);\n }\n }\n console.log(options);\n return options;\n }\n\n #isJSONParseableOption(value) {\n return value.startsWith('{') || ['true', 'false'].includes(value);\n }\n\n #limitShownOptions(dom) {\n dom.nextElementSibling.querySelector('.select2-selection__rendered').style.maxHeight = '60px';\n }\n}\n","import { Controller } from 'stimulus';\nimport { Turbo } from '@hotwired/turbo-rails';\n\nexport default class extends Controller {\n static values = { url: String, param: String };\n\n changed(e) {\n let url = new URL(this.urlValue);\n if (e.target.value) {\n url.searchParams.set(this.paramValue, e.target.value);\n } else {\n url.searchParams.delete(this.paramValue);\n }\n Turbo.visit(url);\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['item'];\n static classes = ['selectedItem'];\n\n selected(event) {\n this.itemTargets.forEach((item) => {\n item.classList.remove(this.selectedItemClass);\n });\n\n event.currentTarget.classList.add(this.selectedItemClass);\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport { Turbo } from '@hotwired/turbo-rails';\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n }\n\n beforeShowSession(el) {\n document.querySelector('.loading-spinner').classList.remove('d-none');\n const url = new URL(window.location);\n if (url.searchParams.has('mobile')) url.searchParams.delete('mobile');\n switch (el.dataset.type) {\n case 'session':\n if (url.searchParams.has('visit_id'))\n url.searchParams.delete('visit_id');\n url.searchParams.set('vc_id', el.dataset.videoCallId);\n break;\n case 'visit':\n if (url.searchParams.has('vc_id')) url.searchParams.delete('vc_id');\n url.searchParams.set('visit_id', el.dataset.sessionQueueId);\n break;\n default:\n break;\n }\n window.history.pushState({}, '', url);\n }\n\n afterShowSession() {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n beforeHideSession() {\n document.querySelector('.loading-spinner').classList.remove('d-none');\n }\n\n afterHideSession() {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n hideSessionError() {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n hideSessionHalted() {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n showSessionError() {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n showSessionHalted() {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n showSession() {\n this.stimulate('Session#show_session', this.element.dataset);\n }\n\n hideSession() {\n this.stimulate('Session#hide_session', this.element.dataset);\n }\n\n redirectSession() {\n Turbo.visit(this.element.dataset.url);\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n this.element.addEventListener('autocomplete.change', (e) => {\n let duration = this.element\n .getRootNode()\n .querySelector('#session_duration').value;\n this._fetch_availability(e.detail.value, duration);\n });\n }\n\n beforeReflex(el) {\n document.querySelector('.loading-spinner').classList.remove('d-none');\n }\n\n afterReflex(el, reflex) {\n if (document.querySelector('.loading-spinner')) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n let slotPickerController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector('#slot_picker_parent'),\n 'slot-picker'\n );\n if (slotPickerController) {\n slotPickerController.connect();\n }\n let autocompleteController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector(\n '[data-controller=\"autocomplete session-creation\"]'\n ),\n 'autocomplete'\n );\n if (autocompleteController) {\n autocompleteController.connect();\n }\n\n if (reflex == 'SessionCreation#get_subscribers') {\n // document.querySelector('#launchSubscriberModal').click();\n this.openModal('subscriberSelectModal');\n }\n }\n\n reflexError(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n reflexHalted(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n fetch_availability(event) {\n event.preventDefault();\n let userId = this.element\n .getRootNode()\n .querySelector('#session_user_id').value;\n let duration = this.element\n .getRootNode()\n .querySelector('#session_duration').value;\n this._fetch_availability(userId, duration);\n }\n\n toggle_ignore_office_hours(event) {\n event.preventDefault();\n let user_id = event.target\n .getRootNode()\n .querySelector('#session_user_id').value;\n this.stimulate('SessionCreation#toggle_ignore_office_hours');\n }\n\n _fetch_availability(userId, duration) {\n console.log('userId: ' + userId + ', duration: ' + duration);\n this.stimulate('SessionCreation#set_session_attributes');\n }\n\n get_subscribers(event) {\n event.preventDefault();\n var search_query = this.element.querySelector('#search_query').value;\n console.log('Subscriber Search Query:', search_query);\n this.stimulate('SessionCreation#get_subscribers', search_query);\n }\n\n select_subscriber() {\n let subscriber_id = this.element.dataset.subscriberId;\n console.log('Selected:', subscriber_id);\n this.stimulate('SessionCreation#find_subscriber', subscriber_id);\n }\n\n build_subscriber() {\n this.stimulate('SessionCreation#build_subscriber');\n }\n\n afterBuildSubscriber() {\n this.openModal('subscriberBuildModal');\n }\n\n add_subscriber() {\n this.closeModal();\n this.stimulate('SessionCreation#set_session_attributes');\n }\n\n openModal(modalName) {\n document.getElementById('backdrop').style.display = 'block';\n document.getElementById(modalName).style.display = 'block';\n document.getElementById(modalName).classList.add('show');\n }\n\n closeModal() {\n document.querySelectorAll('.modal').forEach((item) => {\n item.style.display = 'none';\n item.classList.remove('show');\n });\n document.getElementById('backdrop').style.display = 'none';\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport { isElementAvailable } from '../helpers';\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n document.addEventListener(\n 'cable-ready:after-morph',\n this.refreshSlotPicker.bind(this)\n );\n }\n\n disconnect() {\n document.removeEventListener(\n 'cable-ready:after-morph',\n this.refreshSlotPicker\n );\n }\n\n sort() {\n let controller = this.application.getControllerForElementAndIdentifier(\n document.getElementById(this.element.dataset.target),\n 'sortable'\n );\n if (controller) controller.sort();\n }\n remove() {\n var el = document.querySelector(\n `[data-session-id=\"${this.element.dataset.id}\"]`\n );\n var nameElement = document.getElementById('participant_names');\n if (nameElement.innerText)\n nameElement.innerText = `${nameElement.innerText},${el.dataset.participantName}`;\n else\n nameElement.innerText = `Proceeding will cancel sessions with ${el.dataset.participantName}`;\n el.remove();\n }\n\n refreshSlotPicker() {\n if (isElementAvailable('slot_picker_parent')) {\n let slotPickerController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector('#slot_picker_parent'),\n 'slot-picker'\n );\n if (slotPickerController) {\n slotPickerController.connect();\n }\n }\n }\n\n reload() {\n this.stimulate('SessionQueueReflex#reload');\n }\n}\n","// import Rails from '@rails/ujs'\nimport { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n }\n\n beforeReflex(el) {}\n\n afterReflex(el) {}\n\n onStatusChange() {\n console.log('SessionRoomController.js: onStatusChange');\n window.location.reload();\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n }\n\n open(start, end, selectedUserId) {\n const duration = (end - start) / 60000; // convert millisecond to minute\n const startTime = new Date(start.getTime());\n if (startTime.getTime() < Date.now()) {\n return;\n }\n this.element.classList.remove('close');\n this.element.dataset.start = startTime.toISOString();\n this.element.dataset.duration = duration;\n this.element.dataset.selectedUserId = selectedUserId;\n this.stimulate('SessionSidebarComponent#update_start_time');\n }\n\n close(event) {\n event.preventDefault();\n this.element.classList.add('close');\n this.stimulate('SessionSidebarComponent#close');\n const { success } = event.target.parentNode.dataset;\n if (success == 'true') {\n this.triggerCalendarElements();\n }\n }\n\n triggerCalendarElements() {\n const switchWeekDom = document.getElementById('switch_week_link');\n if (switchWeekDom.classList.contains('btn-purple')) {\n switchWeekDom.click();\n }\n const switchDayDom = document.getElementById('switch_day_link');\n if (switchDayDom.classList.contains('btn-purple')) {\n switchDayDom.click();\n }\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport initIntlTelephoneInput from '../lib/telephone_input.js';\n\nexport default class extends Controller {\n static targets = ['cancelModal', 'rescheduleModal'];\n connect() {\n StimulusReflex.register(this);\n let el = document.querySelector('.add_fields');\n if (el)\n el.addEventListener('click', (e) => {\n this.refreshIntlTelephoneInput(e);\n });\n }\n\n refreshIntlTelephoneInput() {\n setTimeout(() => {\n initIntlTelephoneInput();\n }, 50);\n }\n\n scrollToFilters() {\n let el = document.querySelector('#session_listing_container');\n if (el.scrollTop > 0) el.scrollTo(0, 0);\n }\n\n launchCancelModal(event) {\n let modalController = this.application.getControllerForElementAndIdentifier(\n this.cancelModalTarget,\n 'modal'\n );\n modalController.setContent(event.currentTarget.dataset);\n modalController.open();\n\n console.log(event.currentTarget.dataset);\n event.stopPropagation();\n }\n launchRescheduleModal(event) {\n let modalController = this.application.getControllerForElementAndIdentifier(\n this.rescheduleModalTarget,\n 'modal'\n );\n modalController.setContent(event.currentTarget.dataset);\n modalController.open();\n console.log(event.currentTarget.dataset);\n event.stopPropagation();\n }\n}\n","import { Controller } from 'stimulus';\n\n// reference: https://pqina.nl/blog/set-value-to-file-input/\nexport default class extends Controller {\n static targets = ['fileField', 'preview', 'button'];\n static values = {\n fileName: { type: String, default: '' },\n contentType: { type: String, default: '' },\n base64: { type: String, default: '' },\n };\n\n connect() {\n const fileInput = this.fileFieldTarget;\n const file = new File([this.#base64ToArrayBuffer()], this.fileNameValue, {\n type: this.contentTypeValue,\n });\n const dataTransfer = new DataTransfer();\n dataTransfer.items.add(file);\n fileInput.files = dataTransfer.files;\n }\n\n #base64ToArrayBuffer() {\n const binaryString = atob(this.base64Value);\n const bytes = new Uint8Array(binaryString.length);\n for (let i = 0; i < binaryString.length; i++) {\n bytes[i] = binaryString.charCodeAt(i);\n }\n return bytes;\n }\n\n setFile(event) {\n const file = event.target.files[0];\n if (file && this.hasPreviewTarget) {\n const fileNameElement = this.previewTarget.querySelector('.file-name');\n if (fileNameElement) {\n fileNameElement.textContent = `Attached: ${file.name}`;\n }\n this.previewTarget.classList.remove('d-none');\n this.buttonTarget.classList.add('d-none');\n this.previewTarget.querySelector('.remove-file').addEventListener('click', () => {\n this.previewTarget.classList.add('d-none');\n this.buttonTarget.classList.remove('d-none');\n this.fileFieldTarget.value = null;\n const event = new Event('change', { bubbles: true });\n this.fileFieldTarget.dispatchEvent(event);\n this.previewTarget.querySelector('.file-name').textContent = null;\n });\n }\n }\n\n clearFile() {\n this.fileFieldTarget.value = null;\n const event = new Event('change', { bubbles: true });\n this.fileFieldTarget.dispatchEvent(event);\n if (this.hasPreviewTarget) {\n this.previewTarget.classList.add('d-none');\n this.buttonTarget.classList.remove('d-none');\n if (this.previewTarget.querySelector('.file-name')) {\n this.previewTarget.querySelector('.file-name').textContent = null;\n }\n }\n if (this.hasFileNameTarget) {\n this.fileNameTarget.textContent = '';\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['form'];\n connect() {}\n\n async save() {\n this.formTarget.dispatchEvent(new CustomEvent('submit', { bubbles: true }));\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['wrapper'];\n\n showSideCar() {\n this.wrapperTarget.style.animation = 'fadeIn 0.5s forwards';\n this.wrapperTarget.classList.toggle('d-none');\n }\n\n hideSideCar() {\n this.wrapperTarget.style.animation = 'fadeOut 0.5s 4.5s';\n this.wrapperTarget.classList.toggle('d-none');\n }\n}\n","import { Controller } from 'stimulus';\nimport moment from 'moment';\n\nexport default class extends Controller {\n static targets = ['container'];\n static values = { delay: String, frt: String };\n\n connect() {\n this.delay = parseInt(this.delayValue);\n this.frt = parseInt(this.frtValue);\n if (this.delay && this.frt) {\n this.timer = setInterval(() => {\n this.updateTimer();\n }, 1000);\n }\n }\n\n updateTimer() {\n if (this.delay < this.frt) {\n this.containerTarget.classList.remove('text-danger');\n this.containerTarget.classList.add('text-warning');\n this.containerTarget.innerText =\n 'FRT: due ' +\n moment()\n .add(this.frt - this.delay, 'seconds')\n .fromNow();\n } else {\n this.containerTarget.classList.add('text-danger');\n this.containerTarget.classList.remove('text-warning');\n this.containerTarget.innerText =\n 'FRT: overdue by ' +\n moment()\n .add(this.delay - this.frt, 'seconds')\n .fromNow(true);\n }\n this.delay += 1;\n }\n\n disconnect() {\n if (this.timer) {\n clearInterval(this.timer);\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['content'];\n\n toggle() {\n this.contentTarget.classList.toggle('active');\n }\n}","import moment from 'moment';\nimport { Controller } from 'stimulus';\nimport Analytics from '../lib/analytics';\n\nconst SLOT_PICKER_BUTTON_TEMPLATE = `\n\n`;\n\nconst SLOT_PICKER_CONTAINER_TEMPLATE = `\n
    \n
    \n
    \n
    \n`;\n\nconst SLOT_PICKER_CALENDAR_TEMPLATE = `\n
    \n
    \n \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n Mo\n Tu\n We\n Th\n Fr\n Sa\n Su\n
    \n
    \n
    \n
    \n`;\n\nconst SLOT_PICKER_DAY_SLOTS_TEMPLATE = `\n
    \n
    \n \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n
    \n Morning\n
    \n
    \n
    \n
    \n Afternoon\n
    \n
    \n
    \n
    \n Evening\n
    \n
    \n
    \n
    \n Night\n
    \n
    \n
    \n
    \n
    \n`;\n\nconst SLOT_CELL_TEMPLATE = `\n
    slot-picker#selectSlot\">\n`;\n\nconst DATE_CELL_TEMPLATE = `\nslot-picker#selectDate\">\n`;\n\nconst NO_SLOTS_CELL_TEMPLATE = `\nSlots not available\n`;\n\nclass CalGridController extends Controller {\n static targets = [\n 'input',\n 'toggleButton',\n 'dropdown',\n 'root',\n 'calendar',\n 'grid',\n 'slots',\n 'morningSlots',\n 'afternoonSlots',\n 'eveningSlots',\n 'nightSlots',\n 'currMonth',\n 'currDate',\n 'prevMonthBtn',\n 'nextMonthBtn',\n 'backToMonthBtn',\n 'submitBtn',\n ];\n\n connect() {\n if (this.element.querySelector('#slot-picker--pickerButton')) {\n return;\n }\n this.element.classList.add('slot-picker');\n this.showToggleOfficeHours =\n this.element.dataset.showToggleOfficeHours === 'true';\n this.ignoreOfficeHours = this.element.dataset.ignoreOfficeHours === 'true';\n this.hideCalendar = this.element.dataset.hideCalendar === 'true';\n this.autoSubmit = this.element.dataset.autoSubmit === 'true';\n let tmpEl = document.createElement('div');\n tmpEl.innerHTML = SLOT_PICKER_BUTTON_TEMPLATE;\n this.element.appendChild(tmpEl.firstElementChild);\n\n tmpEl.innerHTML = SLOT_PICKER_CONTAINER_TEMPLATE;\n this.element.appendChild(tmpEl.firstElementChild);\n\n this.availability =\n this.element.dataset.json != 'null'\n ? this.loadAvailability(this.element.dataset.json)\n : null;\n this.selectionTargetValue = this.element.dataset.selectionTargetValue;\n this.selectionTargetDisplay = this.element.dataset.selectionTargetDisplay;\n let startDate = moment();\n this.startDate = moment();\n this.data.set('month', startDate.date(1).format('YYYY-MM-DD'));\n this.endDate = moment().add(this.visibilityDays(), 'days');\n this.availability && this.renderCalendar();\n\n if (this.hideCalendar) {\n this.hideWidget();\n } else {\n this.showWidget();\n }\n this.addFocusOutListener();\n }\n\n disconnect() {\n console.log('Disconnecting Slot Picker Controller!');\n }\n\n renderCalendar() {\n this.rootTarget.innerHTML = SLOT_PICKER_CALENDAR_TEMPLATE;\n this.makeCalendar();\n }\n\n toggleWidget(e) {\n e.preventDefault();\n if (this.element.dataset.widgetState == 'opened') {\n this.hideWidget();\n } else {\n this.showWidget();\n }\n }\n\n visibilityDays() {\n try {\n let vis = parseInt(this.element.dataset.visibilitydays);\n if (isNaN(vis)) {\n return 45;\n }\n return vis;\n } catch (e) {\n return 45;\n }\n }\n\n loadAvailability(json) {\n let slots = {};\n JSON.parse(json).forEach((slot) => {\n slots[new Date(slot.start).toDateString()] =\n slots[new Date(slot.start).toDateString()] || [];\n slots[new Date(slot.start).toDateString()].push(slot);\n });\n return slots;\n }\n\n showWidget() {\n // this.toggleButtonTarget.innerText = 'Close'\n this.element.dataset.widgetState = 'opened';\n this.dropdownTarget.classList.add('show');\n }\n\n hideWidget() {\n // this.toggleButtonTarget.innerText = 'Open'\n this.element.dataset.widgetState = 'closed';\n this.dropdownTarget.classList.remove('show');\n }\n\n prevMonth(e) {\n e.preventDefault();\n this.currMoment = this.currMoment.add(-1, 'month');\n this.makeCalendar();\n }\n\n nextMonth(e) {\n e.preventDefault();\n this.currMoment = this.currMoment.add(1, 'month');\n this.makeCalendar();\n }\n\n toggleOfficeHours() {\n let officeHourContainers = this.element\n .getRootNode()\n .querySelectorAll('.toggle-office-hours-container');\n if (this.showToggleOfficeHours) {\n officeHourContainers.forEach((item) => item.classList.remove('d-none'));\n }\n officeHourContainers.forEach(\n (item) =>\n (item.querySelector('.toggle_office_hours').checked =\n !this.ignoreOfficeHours)\n );\n }\n\n makeCalendar() {\n let d = this.currMoment;\n if (this.diffMonths(d, this.startDate) <= 0) {\n this.prevMonthBtnTarget.disabled = true;\n } else {\n this.prevMonthBtnTarget.disabled = false;\n }\n if (this.diffMonths(d, this.endDate) >= 0) {\n this.nextMonthBtnTarget.disabled = true;\n } else {\n this.nextMonthBtnTarget.disabled = false;\n }\n this.currMonthTarget.innerText = d.format('MMM YYYY');\n this.gridTarget.innerHTML = '';\n this.gridTarget.style.setProperty('--month-offset', d.isoWeekday());\n this.renderDates(d);\n var self = this;\n }\n\n renderDates(d) {\n this.toggleOfficeHours();\n for (let i = 1; i <= d.daysInMonth(); i++) {\n let tmpEl = document.createElement('div');\n let daySlots = this.availability[d.date(i).toDate().toDateString()];\n if (daySlots && daySlots.length > 0) {\n tmpEl.innerHTML = DATE_CELL_TEMPLATE;\n } else {\n tmpEl.innerHTML = NO_SLOTS_CELL_TEMPLATE;\n }\n let btn = tmpEl.firstElementChild;\n\n btn.dataset.date = d.date(i).toDate().toDateString();\n btn.innerText = i;\n this.gridTarget.appendChild(btn);\n }\n }\n\n renderSlots(date) {\n if (!this.availability[date]) {\n return;\n }\n this.toggleOfficeHours();\n let slotsCount = [\n { slot: this.morningSlotsTarget, count: 0 },\n { slot: this.afternoonSlotsTarget, count: 0 },\n { slot: this.eveningSlotsTarget, count: 0 },\n { slot: this.nightSlotsTarget, count: 0 },\n ];\n this.availability[date].forEach((slot) => {\n let slotTime = moment(slot.start);\n let tmpEl = document.createElement('div');\n tmpEl.innerHTML = SLOT_CELL_TEMPLATE;\n let slotBtn = tmpEl.firstElementChild;\n slotBtn.innerHTML = slotTime.format('h:mm');\n slotBtn.dataset.slot = slot.start;\n if (slotTime.hour() < 12) {\n this.morningSlotsTarget.appendChild(slotBtn);\n slotsCount.find((item) => item.slot === this.morningSlotsTarget)\n .count++;\n }\n if (slotTime.hour() >= 12 && slotTime.hour() < 16) {\n this.afternoonSlotsTarget.appendChild(slotBtn);\n slotsCount.find((item) => item.slot === this.afternoonSlotsTarget)\n .count++;\n }\n if (slotTime.hour() >= 16 && slotTime.hour() < 19) {\n this.eveningSlotsTarget.appendChild(slotBtn);\n slotsCount.find((item) => item.slot === this.eveningSlotsTarget)\n .count++;\n }\n if (slotTime.hour() >= 19) {\n this.nightSlotsTarget.appendChild(slotBtn);\n slotsCount.find((item) => item.slot === this.nightSlotsTarget).count++;\n }\n // this.slotsGridTarget.appendChild(slotBtn);\n });\n slotsCount.forEach((item) => {\n if (item.count == 0) {\n item.slot.parentNode.classList.add('d-none');\n }\n });\n }\n\n selectDate(e) {\n e.preventDefault();\n let date = e.target.dataset.date;\n this.rootTarget.innerHTML = SLOT_PICKER_DAY_SLOTS_TEMPLATE;\n this.currDateTarget.innerHTML = moment(date).format('DD MMM, YYYY');\n this.renderSlots(date);\n this.backToMonthBtnTarget.dataset.date = date;\n }\n\n selectSlot(e) {\n e.preventDefault();\n let slot = e.target.dataset.slot;\n let valueEl = document.querySelector(this.selectionTargetValue);\n if (valueEl) {\n valueEl.value = slot;\n }\n let displayEl = document.querySelector(this.selectionTargetDisplay);\n if (displayEl) {\n displayEl.value = moment(slot).format('ddd DD MMM, h:mm a');\n displayEl.dispatchEvent(new Event('change'));\n }\n this.hideWidget();\n\n if (this.autoSubmit) {\n this.submitBtnTarget.click();\n new Analytics().track('selected_slot', {\n slot,\n registrable_id: this.element.dataset.registrableId,\n account_id: this.element.dataset.accountId,\n });\n }\n }\n\n backToMonth(e) {\n e.preventDefault();\n let date = e.target.dataset.date;\n this.renderCalendar();\n }\n\n addFocusOutListener() {\n // var self = this;\n // this.element.addEventListener('focusout', (event)=> {\n // if (!self.element.contains(event.relatedTarget)) {\n // self.hideWidget();\n // }\n // });\n }\n\n get currMoment() {\n return moment(this.data.get('month'));\n }\n\n set currMoment(m) {\n if (moment.isMoment(m)) {\n this.data.set('month', m.format('YYYY-MM-DD'));\n } else {\n this.currMoment = moment(m);\n }\n }\n\n get startDate() {\n return moment(this.data.get('startDate'));\n }\n\n get endDate() {\n return moment(this.data.get('endDate'));\n }\n\n set endDate(d) {\n if (!moment.isMoment(d)) {\n d = moment(d);\n }\n this.data.set('endDate', d.endOf('month'));\n }\n\n set startDate(d) {\n if (!moment.isMoment(d)) {\n d = moment(d);\n }\n this.data.set('startDate', d);\n }\n\n diffMonths(d1, d2) {\n let diff = d1.month() - d2.month() + 12 * (d1.year() - d2.year());\n return diff;\n }\n}\n\nexport default CalGridController;\n","import { Controller } from 'stimulus';\nimport Rails from '@rails/ujs';\n\nconst observer = new ResizeObserver((entries) => {\n for (let entry of entries) {\n Rails.fire(entry.target, 'resize');\n }\n});\n\nexport default class extends Controller {\n static values = { scrollOnConnect: { type: Boolean, default: true } };\n static targets = ['item'];\n\n connect() {\n observer.observe(this.element);\n this.shouldScroll = true;\n if (this.scrollOnConnectValue) this.scrollToBottom();\n }\n\n disconnect() {\n observer.unobserve(this.element);\n }\n\n scrollToBottom() {\n const { scrollHeight, clientHeight } = this.element;\n if (scrollHeight >= clientHeight) {\n this.element.scrollTop = scrollHeight - clientHeight;\n }\n }\n\n handleAdded() {\n const { scrollHeight, clientHeight } = this.element;\n if (clientHeight >= scrollHeight) {\n this.shouldScroll = true;\n }\n\n if (this.shouldScroll) {\n this.scrollToBottom();\n }\n }\n\n itemTargetConnected(element) {\n if (element.dataset['scrollToBottom'] != 'true') return;\n\n delete element.dataset['scrollToBottom'];\n this.scrollToBottom();\n }\n\n handleScroll() {\n const { scrollTop, scrollHeight, clientHeight, offsetHeight } =\n this.element;\n if (clientHeight >= scrollHeight) {\n this.shouldScroll = true;\n } else {\n this.shouldScroll = Math.abs(scrollTop + offsetHeight - scrollHeight) < 1;\n }\n }\n}\n","import { Controller } from 'stimulus';\nimport { getParentController } from './stimulus_utils';\nimport Rails from '@rails/ujs';\n\nexport default class extends Controller {\n connect() {\n const parent = getParentController(this, 'smart-scroll');\n Rails.fire(parent.element, 'smart-scroll:added');\n }\n}\n","import { Controller } from 'stimulus';\nimport Sortable from 'sortablejs';\nimport { patch } from '@rails/request.js'\n\nexport default class extends Controller {\n static values = { url: String, column: String, klass: String, group: String }\n\n connect() {\n this.initSortable();\n }\n\n initSortable() {\n var options = {\n dataIdAttr: 'data-id',\n fallbackOnBody: true,\n group: this.groupValue,\n swapThreshold: 0.65,\n animation: 150,\n sort: true,\n handle: '.sortable-handle',\n onSort: this.sort.bind(this),\n };\n\n this.sortable = Sortable.create(this.element, options);\n }\n\n disconnect() {\n this.sortable.destroy();\n }\n\n sort(evt) {\n const { item: { dataset: { id } }, newIndex } = evt;\n this.updatePosition(this.urlValue.replace(':id', id), newIndex);\n }\n\n async updatePosition(url, position) {\n const { klassValue, columnValue } = this;\n let data = { [klassValue]: { [columnValue]: position } };\n\n const response = await patch(url, {\n responseKind: 'turbo-stream',\n body: JSON.stringify(data)\n });\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['downloadPopup', 'linkToggle', 'link'];\n\n connect() {\n this.showDownloadPopup();\n }\n\n showDownloadPopup() {\n if (!this.hasDownloadPopupTarget) return;\n if (this.downloadPopupTarget.dataset.show == 'false') return;\n setTimeout(() => {\n this.downloadPopupTarget.classList.remove('d-none');\n }, 2000);\n }\n\n closeDownloadPopup() {\n if (!this.hasDownloadPopupTarget) return;\n this.downloadPopupTarget.remove();\n }\n\n toggleVideoStoreLink() {\n if (!this.hasLinkToggleTarget || !this.hasLinkTarget) return;\n let active = this.linkToggleTarget.dataset.active == \"true\"\n this.linkToggleTarget.dataset.active = !active;\n let preview_url = document.getElementById(\"preview-url-btn\");\n let bagitLink = this.element.dataset.bagitLink\n let videoStoreLink = this.element.dataset.videoStoreLink\n if (active) {\n this.linkTarget.innerHTML = bagitLink\n this.linkToggleTarget.innerHTML = \"Use your domain\"\n this.element.dataset.text = bagitLink\n if(preview_url) preview_url.setAttribute('href',`${bagitLink}?preview=true`);\n }\n else {\n this.linkTarget.innerHTML = videoStoreLink\n this.linkToggleTarget.innerHTML = \"Use bagit.live\"\n this.element.dataset.text = videoStoreLink\n if(preview_url) preview_url.setAttribute('href',videoStoreLink);\n }\n }\n\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Controller {\n static targets = ['client', 'secret'];\n\n connect() {\n StimulusReflex.register(this);\n $('select#provider_name').trigger('change');\n }\n\n switchProvider(event) {\n $('.validatable_field').parents('.form-group').removeClass('d-none');\n $('.validatable_field').parents('.form-group').show();\n let allowedColumns = JSON.parse(event.target.dataset.allowedColumns);\n let allowedFields = allowedColumns[event.target.value].map(\n (val) => 'provider_' + val\n );\n $('.validatable_field').each(function (field) {\n if (!allowedFields.includes(this.id)) {\n $(this).parents('.form-group').hide();\n }\n });\n }\n\n toggleVisibility(e) {\n if (this.targets.find(e.target.dataset.value)) {\n let target = this.targets.find(e.target.dataset.value);\n target.type = target.type == 'password' ? 'text' : 'password';\n e.target.innerHTML =\n target.type == 'password' ? 'visibility' : 'visibility_off';\n }\n }\n}\n","export function getParentController(controller, identifier) {\n const application = controller.application;\n let element = controller.element;\n do {\n let foundController = application.getControllerForElementAndIdentifier(\n element,\n identifier\n );\n if (foundController) {\n return foundController;\n }\n } while ((element = element.parentElement));\n}\n","import { Controller } from 'stimulus';\nimport { get } from '@rails/request.js';\n\nexport default class extends Controller {\n static targets = ['storyPageSelector'];\n\n connect() {\n this.selected_story_page_id = this.storyPageSelectorTarget.value;\n this.selected_story_page_url =\n this.storyPageSelectorTarget.selectedOptions[0].dataset.storyPageUrl;\n }\n\n async pageSelected(e) {\n this.selected_story_page_id = this.storyPageSelectorTarget.value;\n this.selected_story_page_url =\n e.target.selectedOptions[0].dataset.storyPageUrl;\n await get(this.selected_story_page_url, {\n responseKind: 'turbo-stream',\n });\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['image', 'value']\n imageSelected(e) {\n let image_url = e.detail.selected_url\n this.imageTarget.src = image_url;\n this.valueTarget.value = image_url;\n this.valueTarget.form.requestSubmit();\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static values = { storyUrl: String };\n\n connect() {\n const stories = [\n {\n href: this.storyUrlValue,\n },\n ];\n const playerContainer = this.element;\n playerContainer.innerHTML = null;\n const playerEl = document.createElement('amp-story-player');\n playerEl.setAttribute(\n 'style',\n `height: ${this.element.dataset['crop'] || 'calc(100vh - 160px)'};`\n );\n playerContainer.append(playerEl);\n // eslint-disable-next-line\n const player = new AmpStoryPlayer(window, playerEl);\n player.load();\n\n if (playerEl.isReady) {\n playerEl.add(stories);\n } else {\n playerEl.addEventListener('ready', () => {\n playerEl.add(stories);\n });\n }\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\nimport debounced from 'debounced';\n\nexport default class extends Controller {\n connect() {\n debounced.initialize({ input: { wait: 1000 }, keyup: { wait: 1000 } });\n StimulusReflex.register(this);\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['tab'];\n static values = { parameter: String };\n\n connect() {\n let selection = this.findSelectedTab(new URL(window.location.href));\n if (!selection) {\n selection = this.element.dataset.tabsDefaultValue;\n }\n this.refreshTabSelection(selection);\n this.refreshTabContents(selection);\n this.addTabClickListeners();\n }\n\n setActiveTab(selection) {\n this.showTabLoadingIndicator(selection);\n this.refreshTabSelection(selection);\n this.refreshTabContents(selection);\n }\n\n findSelectedTab(parent_url) {\n return parent_url.searchParams.get(this.parameterValue);\n }\n\n showTabLoadingIndicator(selection) {\n let spinner = document\n .querySelector('#tab-loading-spinner div')\n .cloneNode(true);\n let listEl = document.querySelector(\n '#conversations_' + selection + '_list'\n );\n if (listEl && spinner) {\n listEl.insertBefore(spinner, listEl.firstChild);\n }\n }\n\n refreshTabSelection(selection) {\n if (selection === '' || selection == null) return;\n for (var i = 0, len = this.tabTargets.length; i < len; i++) {\n if (this.tabTargets[i].getAttribute('data-selection') == selection) {\n this.tabTargets[i].classList.add('active');\n } else {\n this.tabTargets[i].classList.remove('active');\n }\n }\n }\n\n refreshTabContents(selection) {\n let tabs = ['open', 'closed', 'unassigned'];\n tabs.forEach((tab) => {\n let listFrame = document.querySelector(\n 'turbo-frame[data-conversation-list-target=\"' + tab + '\"]'\n );\n if (tab == selection && listFrame) {\n listFrame.classList.remove('d-none');\n listFrame.classList.add('active');\n } else if (listFrame) {\n listFrame.classList.remove('active');\n listFrame.classList.add('d-none');\n }\n });\n }\n\n addTabClickListeners() {\n let self = this;\n this.tabTargets.forEach((e) => {\n e.addEventListener('click', (evnt) => {\n if (!evnt.target.href) {\n evnt.preventDefault();\n return false;\n }\n let newUrl = new URL(evnt.target.href);\n window.history.pushState({}, '', newUrl);\n self.setActiveTab(self.findSelectedTab(newUrl));\n });\n });\n }\n}\n","import { Controller } from 'stimulus';\nimport initIntlTelephoneInput from '../lib/telephone_input';\n\nexport default class extends Controller {\n connect() {\n initIntlTelephoneInput();\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['value', 'image', 'video', 'document'];\n\n mediaSelected(e) {\n const mediaURL = e.detail.selected_url;\n if (this.hasImageTarget) {\n this.imageTarget.src = mediaURL;\n }\n if (this.hasVideoTarget) {\n this.videoTarget.src = mediaURL;\n this.videoTarget.parentElement.load();\n }\n if (this.hasDocumentTarget) {\n this.documentTarget.src = mediaURL;\n }\n this.valueTarget.value = mediaURL;\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['weekdays'];\n connect() {}\n\n static days = {\n sunday: 1,\n monday: 2,\n tuesday: 4,\n wednesday: 8,\n thursday: 16,\n friday: 32,\n saturday: 64,\n };\n\n toggleInputs(e) {\n let element = e.target;\n let checked = element.checked;\n if (isNaN(parseInt(this.weekdaysTarget.value))) {\n this.weekdaysTarget.value = 0;\n }\n if (checked) {\n this.weekdaysTarget.value =\n parseInt(this.weekdaysTarget.value) + this.constructor.days[element.id];\n } else {\n this.weekdaysTarget.value =\n parseInt(this.weekdaysTarget.value) - this.constructor.days[element.id];\n }\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['fileField'];\n static values = { maxFileSize: Number };\n\n submit() {\n if (this.fileFieldTarget.files[0].size > this.maxFileSizeValue) {\n window.alert('File size is too large');\n this.value = '';\n return;\n }\n\n this.fileFieldTarget.form.requestSubmit();\n this.fileFieldTarget.value = '';\n }\n\n triggerFilePicker() {\n this.fileFieldTarget.click();\n return false;\n }\n}\n","import { Controller } from 'stimulus';\nimport { get } from '@rails/request.js';\n\nexport default class extends Controller {\n static values = {\n updateHistory: Boolean,\n };\n connect() {\n let url = this.element.href;\n this.element.addEventListener('click', (e) => {\n e.preventDefault();\n let spinnerEl = document.querySelector('.loading-spinner');\n if (spinnerEl) {\n spinnerEl.classList.remove('d-none');\n }\n if (this.hasUpdateHistoryValue && this.updateHistoryValue) {\n history.pushState({ turbo_frame_history: true }, '', url);\n }\n let resp = get(url, { responseKind: 'turbo-stream' });\n resp.finally(() => {\n if (spinnerEl) {\n spinnerEl.classList.add('d-none');\n }\n });\n });\n }\n}\n","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static values = {\n url: String,\n target: String\n };\n\n connect() {\n this.element.addEventListener('click', this.onClick.bind(this));\n }\n\n onClick() {\n if (this.urlValue) {\n let frame = document.querySelector(this.targetValue)\n frame.src = this.urlValue;\n frame.reload();\n }\n }\n}","import { Controller } from 'stimulus';\nimport { post, patch } from '@rails/request.js';\n\nexport default class extends Controller {\n static values = { userId: String, createUrl: String, updateUrl: String, updateDuration: String };\n static targets = [\"option\", \"input\", \"submit\"];\n\n connect(){\n let default_option;\n for(let i=0; i 0 && this.fallbackTarget.value.length > 0) {\n this.buttonTarget.disabled = false\n } else {\n this.buttonTarget.disabled = true\n }\n }\n }\n\n selected(e) {\n let value = e.target.value;\n if (value in this.variables) {\n if (this.hasNameTarget) {\n this.nameTarget.value = this.variables[value]['name']\n if (this.variables[value]['category'] == 'subscriber') {\n this.nameTarget.disabled = true;\n }\n else {\n this.nameTarget.disabled = false;\n this.nameTarget.focus();\n }\n }\n if (this.hasFallbackTarget) {\n this.fallbackTarget.value = this.variables[value]['fallback']\n this.fallbackTarget.focus();\n }\n if (this.hasExampleTarget)\n this.exampleTarget.value = this.variables[value]['example']\n\n this.buttonTarget.disabled = false\n } else {\n this.resetValue();\n }\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n this.controllers = {\n note: 'Note#fetch',\n attachment: 'Attachment#fetch',\n };\n }\n\n _setData(el, attrib, value) {\n el.dataset[attrib] = value;\n }\n\n _getData(el, attrib) {\n return el.dataset[attrib];\n }\n\n _reset(currentAppId) {\n let me = this;\n let elements = document.getElementsByClassName('sidebar-app');\n for (let el of elements) {\n if (currentAppId != el.id) {\n el.classList.add('d-none');\n me._setData(el, 'appDisplay', 'false');\n }\n }\n }\n\n toggle_app(event) {\n event.preventDefault();\n $('.app-notification').addClass('d-none');\n let appUID = this.element.dataset.appUid;\n let appParent = document.querySelector('#' + appUID + '-app');\n this._reset(appParent.id);\n let isAppShowing = this._getData(appParent, 'appDisplay') == 'true';\n if (isAppShowing) {\n appParent.classList.add('d-none');\n document.querySelector('#session_room').classList.remove('app-shown');\n this._setData(appParent, 'appDisplay', 'false');\n } else {\n let controllerAction = this.controllers[appUID];\n this.stimulate(controllerAction, this.element.dataset.sessionId);\n appParent.classList.remove('d-none');\n document.querySelector('#session_room').classList.add('app-shown');\n this._setData(appParent, 'appDisplay', 'true');\n }\n }\n}\n","import { Controller } from 'stimulus';\nimport StimulusReflex from 'stimulus_reflex';\n\nexport default class extends Controller {\n connect() {\n StimulusReflex.register(this);\n this.element.addEventListener('autocomplete.change', (e) => {\n let duration_element = this.element\n .getRootNode()\n .querySelector('#video_call_duration');\n let duration = duration_element.value;\n let sessionId = this.element\n .getRootNode()\n .querySelector('#video_call_session_id').value;\n this._fetch_availability(e.detail.value, duration, sessionId);\n });\n }\n\n beforeReflex(el) {\n document.querySelector('.loading-spinner').classList.remove('d-none');\n let slotPickerController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector('#slot_picker_parent'),\n 'slot-picker'\n );\n if (slotPickerController) {\n slotPickerController.disconnect();\n }\n let autocompleteController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector(\n '[data-controller=\"autocomplete video-call-creation\"]'\n ),\n 'autocomplete'\n );\n if (autocompleteController) {\n autocompleteController.disconnect();\n }\n }\n\n afterReflex(el, reflex) {\n if (document.querySelector('.loading-spinner')) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n let slotPickerController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector('#slot_picker_parent'),\n 'slot-picker'\n );\n if (slotPickerController) {\n slotPickerController.connect();\n }\n let autocompleteController =\n this.application.getControllerForElementAndIdentifier(\n document.querySelector(\n '[data-controller=\"autocomplete video-call-creation\"]'\n ),\n 'autocomplete'\n );\n if (autocompleteController) {\n autocompleteController.connect();\n }\n }\n\n reflexError(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n reflexHalted(el) {\n document.querySelector('.loading-spinner').classList.add('d-none');\n }\n\n fetch_availability(event) {\n event.preventDefault();\n let userId = this.element\n .getRootNode()\n .querySelector('#video_call_user_id').value;\n let sessionId = this.element\n .getRootNode()\n .querySelector('#video_call_session_id').value;\n let duration = this.element\n .getRootNode()\n .querySelector('#video_call_duration').value;\n this._fetch_availability(userId, duration, sessionId);\n }\n\n toggle_ignore_office_hours(event) {\n event.preventDefault();\n let user_id = event.target\n .getRootNode()\n .querySelector('#video_call_user_id').value;\n this.stimulate('VideoCallCreation#toggle_ignore_office_hours');\n }\n\n _fetch_availability(userId, duration, sessionId) {\n console.log(\n 'userId: ' +\n userId +\n ', duration: ' +\n duration +\n ', sessionId: ' +\n sessionId\n );\n this.stimulate(\n 'VideoCallCreation#fetch_availability',\n userId,\n duration,\n sessionId\n );\n }\n\n openModal(modalName) {\n document.getElementById('backdrop').style.display = 'block';\n document.getElementById(modalName).style.display = 'block';\n document.getElementById(modalName).classList.add('show');\n }\n\n closeModal() {\n document.querySelectorAll('.modal').forEach((item) => {\n item.style.display = 'none';\n item.classList.remove('show');\n });\n document.getElementById('backdrop').style.display = 'none';\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"section\"];\n\n revealSection(event) {\n const sectionName = event.currentTarget.dataset.visibilitySectionParam;\n this.sectionTargets.forEach((sectionTarget) => {\n if (sectionTarget.dataset.sectionName === sectionName) {\n sectionTarget.classList.remove('d-none');\n if (sectionTarget.dataset.formId) {\n const form = document.getElementById(sectionTarget.dataset.formId);\n if (form) {\n form.requestSubmit();\n }\n }\n } else {\n sectionTarget.classList.add('d-none');\n }\n });\n }\n}","import { Controller } from 'stimulus';\n\nexport default class extends Controller {\n static targets = ['preview'];\n\n changed(e) {\n let subscriber_id = e.target.dataset.subscriberId;\n const frame = this.previewTarget;\n this.previewTarget.id = 'wa_whats_app_template_' + e.target.value;\n let origin = window.location.origin;\n let url = new URL(origin + '/wa/templates/' + e.target.value);\n if (subscriber_id) {\n url.searchParams.append('subscriber_id', subscriber_id);\n }\n frame.src = url;\n }\n}\n","var mixpanel = require('mixpanel-browser');\n\nexport default class Analytics {\n constructor() {\n this.can_track = process.env.NODE_ENV === 'production' && !!window._mt;\n }\n\n identify() {\n if (this.can_track && window._mt_userid) {\n mixpanel.identify(window._mt_userid);\n mixpanel.people.set({\n $first_name: window._mt_username,\n $email: window._mt_useremail,\n USER_ID: window._mt_userid,\n });\n }\n }\n\n track(event_name, event_properties = {}) {\n if ('connection' in navigator) {\n event_properties['liteMode'] = navigator.connection.saveData;\n }\n if (this.can_track) {\n mixpanel.track(event_name, event_properties);\n } else {\n console.log(event_name, event_properties);\n }\n }\n}\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","Controller","static","connect","this","_handleSlotItemClick","checkAndEnableNotifications","toggleIntegrationForm","$","fadeToggle","open360DialogPermissionScreen","open","showCustomTime","target","style","display","customTimeTarget","classList","remove","add","changeProfilePic","files","profilePicTarget","src","URL","createObjectURL","profilePicFormTarget","requestSubmit","hasNotificationToggleTarget","granted","Notification","permission","notificationWrapperTarget","dataset","notificationEnabled","notificationToggleTarget","checked","disabled","enableNotifications","requestPermission","then","res","notificationErrorTarget","toggleRingtone","enabled","ringtoneInputTarget","value","ringtoneWrapperTarget","ringtone","hasSlotItemTarget","slotItemTargets","forEach","el","addEventListener","contains","noticeDurationTarget","parseInt","_reset_slots","slot","document","querySelectorAll","playRingtone","ringtoneEl","querySelector","play","console","log","catch","muted","setScheduledCallMode","element","scheduledCallMode","instructionsInputTarget","setAttribute","mediaSelected","mediaId","detail","media_id","valueTarget","form","setInterval","analytics","Analytics","identify","trackEvent","event","event_name","eventName","event_properties","_get_event_properties","track","obj","filter","key","startsWith","reduce","filtered","split","StimulusReflex","reload","stimulate","sessionId","notify","appUID","appUid","content","notificationTemplateTarget","innerHTML","fragment","createRange","createContextualFragment","parentElement","appendChild","rect","getBoundingClientRect","css","x","y","duration","Number","startTimer","durationValue","timeInteraval","timerTarget","innerText","url","URLSearchParams","window","location","search","get","pathname","next","clearInterval","history","pushState","turbo_frame_history","Turbo","debounced","initialize","input","wait","keyup","change","hasInputTarget","inputTargets","inputTarget","HTMLInputElement","HTMLTextAreaElement","setSelectionRange","type","length","hasAutoSaveIndicatorOutlet","boundInput","bind","boundSubmitEnd","submitEnd","formTarget","disconnect","removeEventListener","save","autoSaveIndicatorOutlet","showIndicator","setTimeout","hideIndicator","showingSaving","showingSaved","savingTarget","savedTarget","submit","autosize","observer","destroy","IntersectionObserver","entries","entry","isIntersecting","update","observe","quantity","proPlanActive","String","initial_quantity","quantityTarget","_setPrice","no_of_agents","price","priceTarget","showBillingForm","upgardeBtnTarget","animation","toggle","formWrapperTarget","increment","new_value","quantityValue","confirmBtnTarget","decrement","modal","bootstrap","Modal","keyboard","show","hide","offcanvas","Offcanvas","onRowClick","href","visit","forceVisit","Boolean","tabParam","default","navItem","onTabClick","navLink","closest","hash","replaceState","tabParamValue","replace","hasForceVisitValue","forceVisitValue","action","title","placement","customClass","options","titleValue","hasPlacementValue","placementValue","customClassValue","hasCustomClassValue","tooltip","Tooltip","enable","disable","solutionId","openMetaDialogScreen","hideAlert","sessionInfoListener","configuration","config_id","response_type","override_default_response_type","extras","setup","hasSolutionIdValue","solutionIdValue","solutionID","FB","login","response","authResponse","phone_number_id","waba_id","showAlert","error","text","origin","endsWith","data","JSON","parse","error_message","current_step","warn","getViewport","width","Math","max","documentElement","clientWidth","innerWidth","Flatpickr","flatpickrPlugin","view","config","disableMobile","position","viewPort","plugins","weekSelectPlugin","super","dom","getElementById","toISOString","dispatchEvent","Event","mediaURL","selected_url","hasImageTarget","imageTarget","hasScheduleModeSelectTarget","changeScheduleMode","scheduledLaunchTimeTarget","_changeScheduledLaunchTime","changeDeliveryMode","hasReceiversTarget","initReceiversField","scheduleModeSelectTarget","scheduleModeConfigTarget","removeAttribute","resetDefaultDeliveryTimes","deliveryModeSelectTarget","deliveryModeConfigTarget","scheduledStartDateTarget","scheduledEndDateTarget","changeScheduledLaunchTime","dt","setDefaultScheduledStartDate","setDefaultLaunchTime","match","launchTimeTarget","moment","Date","format","initIntlTelephoneInput","maxLength","count","inputValue","maxLengthValue","substring","counterTarget","textContent","underscore","selected","Array","refresh","checkboxAllTargetConnected","checkbox","checkboxTargetConnected","checkboxAllTargetDisconnected","checkboxTargetDisconnected","preventDefault","checkboxTargets","triggerInputEvent","refreshAction","checkboxesCount","checkboxesCheckedCount","checkboxAllTarget","indeterminate","hasSelectedValue","selectedValue","getSelectedValues","hasCounterTarget","hasActionTarget","actionTarget","bubbles","cancelable","unchecked","require","sortable","prototype","hasOwnProperty","call","Choices","shouldSort","shouldSortItems","removeItemButton","classNames","containerOuter","containerInner","mediaTargets","clear","media","textarea","EditorView","doc","extensions","basicSetup","json","html","parentNode","insertBefore","state","toString","changeType","indexOf","resetDateTimeField","sourceTarget","destinationTarget","readOnly","toLowerCase","replaceAll","subscriberId","hasSubscriberIdValue","getSubscriber","subscriberIdValue","setActive","activeDetailTargets","currentTarget","firstElementChild","newCommentUrl","getAttribute","navigateToNextIn","addAssignedTo","patch","responseKind","body","stringify","conversation","assigned_to_id","userId","assigned_to_type","userType","status","conversationStatus","closeAssignmentPanel","removeAssignedTo","removeAssignedToGroup","groups_attributes","groupId","_destroy","addAssignedToGroup","group_ids","getSelectedConversations","selectedConversations","hasSelectorTarget","selectorTarget","checkboxSelectAllSelectedValue","showDetails","conversationIds","target_url","hasNewCommentUrlValue","newCommentUrlValue","join","selector","undefined","push","index","previousConversationId","findIndex","i","link","navigateToNextUnassigned","navigateToNextConversation","launchStatusModal","application","getControllerForElementAndIdentifier","statusModalTarget","closeStatusModal","panel","conversationStatusChange","cafpresent","statusFieldTarget","conversationStatusTarget","CustomEvent","validateForm","validForm","validateFormFieldsTarget","customValidation","rulename","validField","errortarget","test","filterToggle","conversationFilterTarget","addEventListeners","parentEl","evt","refreshSlotPicker","changeStartTime","isElementAvailable","slotPickerController","submitSuccess","anchorElement","redirectPath","showOrHideTarget","selectTarget","select_value","buttonTarget","allowVariables","editor","buttonGroupFileTools","editorController","toolbarController","buttonHTML","editorValue","insertAdjacentHTML","hasAllowVariablesValue","allowVariablesValue","variableButtonHTML","insertString","hljs","registerLanguage","xml","_handleWidgetSelection","_highlightCode","hasColorTarget","handleColorSelection","logoChanged","logo","logoId","reader","FileReader","onload","result","readAsDataURL","textId","name","positionChanged","position_x_label","colorChanged","colorInputTarget","_is_valid_color","chooseColor","setBrandColor","color","theme","lightOrDark","colorThemeTarget","containerTarget","themeMode","cssText","colorTargets","colorClickEvent","_reset_color_selection","colorPickerTarget","scrollToMockup","mockupTarget","scrollIntoView","behavior","changeFragment","fragmentId","_reset_fragment","_setData","changeMockup","mockup","mockupId","_reset_mockup","changeCtaText","cta","ctaId","noBotsChanged","noBotTarget","selectType","is_bubble","cardRadioTarget","active","bubbleRadioTarget","validateCbx","emailCbxTarget","phoneNumberCbxTarget","cbxErrorTarget","formInvalid","submitForm","collapse","attrib","hasBubbleRadioTarget","hasCardRadioTarget","onclick","_autoSelect","callback","highlightElement","apply","urlValue","ok","srcElement","DatePickerController","initializeDatePicker","fromDate","flatpickr","altInput","altFormat","dateFormat","defaultDate","toDate","setStartTime","setEndTime","start","end","ranges","Today","Yesterday","subtract","startOf","endOf","locale","opens","drops","autoApply","alwaysShowCalendars","showCustomRangeLabel","startValue","endValue","daterangepicker","val","time","showRelative","formattedTime","tooltipContent","hasShowRelativeValue","showRelativeValue","timeValue","fromNow","formatValue","displayTarget","timer","setContent","dispose","hasSearchInputTarget","searchInputTarget","searchFormTarget","headers","maxFiles","maxFileSize","acceptedFiles","addRemoveLinks","autoAttach","maxFileSizeByType","dropZone","createDropZone","bindEvents","_reconnect","hideFileInput","Dropzone","hasButtonTarget","clickSaveButton","click","showSaveBtn","hideSaveBtn","disableCreateBtn","hasCreateBtnTarget","createBtnTarget","enableCreateBtn","on","file","accepted","source","DirectUploadController","createDirectUploadController","controller","removeElement","hiddenInput","getQueuedFiles","xhr","abort","hasAutoAttachValue","autoAttachValue","getMetaValue","maxFilesValue","maxFileSizeValue","maxFileSizeByTypeValue","acceptedFilesValue","addRemoveLinksValue","constructor","directUpload","DirectUpload","createDirectUpload","createHiddenInput","create","attributes","emitDropzoneError","signed_id","emitDropzoneSuccess","createElement","insertAfter","directUploadWillStoreFileWithXHR","bindProgressEvent","emitDropzoneUploading","upload","uploadRequestDidProgress","progress","loaded","total","findElement","previewTemplate","emit","maxFilesize","autoQueue","series","option","chartDom","myChart","echarts","seriesValue","legend_data","item","optionsValue","trigger","formatter","toolbox","feature","legend","left","top","bottom","min","minSize","maxSize","orient","gap","sort","label","labelLine","lineStyle","itemStyle","borderColor","borderWidth","emphasis","fontSize","setOption","api","mediaLibraryUrl","endpoint","render","block_index","blocks","getCurrentBlockIndex","fetch","Accept","r","blockContent","icon","Quote","Delimiter","InlineImageTool","InlineImage","readOnlyValue","parsedNodes","edjsHTML","delimiter","transforms","quote","paragraph","list","embed","image","dataValue","EditorJS","holder","placeholder","tools","header","class","Header","shortcut","levels","defaultLevel","library","MediaLibrary","hasMediaLibraryUrlValue","mediaLibraryUrlValue","Embed","inlineToolbar","NestedList","defaultStyle","quotePlaceholder","captionPlaceholder","unsplash","appName","clientId","autofocus","onChange","_modifyEditorStatusText","button","imageSelected","insert","async","outputData","wa_post","alignType","level","paragraphAlign","alignment","align","includes","listStyle","recursor","items","caption","service","height","Application","register","BsmodalController","RecaptchaV2Controller","picker","EmojiButton","selection","editorElement","emoji","togglePicker","hasEditorValue","onOpen","disableDates","selectedDates","dateStr","instance","availableDates","dates","date","set","success","fetchResponse","impressionsValue","impressions","engagementValue","engagement","intentValue","intent","goalValue","goal","chart","FunnelChart","canvasTarget","getContext","labels","datasets","ChartDataLabels","targetValue","getInstance","hljsJson","hljsCurl","highlightCode","codeTargets","highlightBlock","setDateRange","redirectToSubscriber","toggleFilter","hasInboxFilterTarget","inboxFilterTarget","showDetail","showSearchBar","hasSearchBarTarget","hasSelectedFiltersTarget","searchBarTarget","selectedFiltersTarget","hasDateInputTarget","hasFilterFormTarget","dateInputTarget","filterFormTarget","toggleIdeas","hasIdeasWrapperTarget","hasIdeasOpenTarget","hasIdeasCloseTarget","ideasWrapperTarget","ideasOpenTarget","ideasCloseTarget","context","Autocomplete","load","definitionsFromContext","consumer","isolate","clicked","buttonValue","beforeReflex","afterReflex","reflexError","reflexHalted","show_lead","nodeName","path","show_session","session_url","show_modal","toggle_lock","leadId","place_call","GeminiLiveAPI","geminiServiceWebsocketUrl","apiKey","responseModalities","modelName","systemInstruction","googleSearch","functionDeclarations","onReceiveResponse","message","onConnectionStarted","onConnectionClose","onErrorMessage","alert","websocket","setupWebSocketToService","webSocket","close","WebSocket","onclose","onerror","onopen","sendInitialSetupMessages","onmessage","onReceiveMessage","sessionSetupMessage","model","generation_config","response_modalities","speechConfig","voiceConfig","prebuiltVoiceConfig","voiceName","system_instruction","parts","sendMessage","send","messageEvent","Blob","Promise","reject","readAsText","messageData","GeminiLiveResponseMessage","sendTextMessage","textMessage","client_content","turns","role","turn_complete","sendRealtimeInputMessage","mime_type","realtime_input","media_chunks","sendAudioMessage","base64PCM","sendImageMessage","base64Image","endOfTurn","serverContent","turnComplete","interrupted","modelTurn","setupComplete","inlineData","toolCall","toolCallCancellation","LiveAudioOutputManager","audioContext","workletNode","initialized","initializeAudioContext","AudioContext","webkitAudioContext","sampleRate","pcmProcessorBlob","pcmProcessorURL","audioWorklet","addModule","revokeObjectURL","AudioWorkletNode","destination","playAudioChunk","base64AudioChunk","resume","arrayBuffer","base64ToArrayBuffer","float32Data","convertPCM16LEToFloat32","port","postMessage","stopAudio","suspend","interruptAudio","isInterrupted","base64","binaryString","atob","bytes","Uint8Array","charCodeAt","buffer","pcmData","inputArray","Int16Array","float32Array","Float32Array","err","LiveAudioInputManager","chunkDuration","processor","stream","deviceId","interval","isRecording","onNewAudioRecordingChunk","audioData","connectMicrophone","constraints","audio","channelCount","exact","navigator","mediaDevices","getUserMedia","createMediaStreamSource","createScriptProcessor","onaudioprocess","inputData","inputBuffer","getChannelData","pcm16","recordChunk","cleanupResources","ArrayBuffer","DataView","setInt16","btoa","fromCharCode","disconnectMicrophone","getTracks","stop","updateMicrophoneDevice","BaseVideoManager","previewVideoElement","previewCanvasElement","captureInterval","ctx","isCapturing","onNewFrame","frameData","stopStream","captureFrameB64","videoWidth","videoHeight","drawImage","toDataURL","trim","newFrame","startCaptureInterval","stopCaptureInterval","cleanup","LiveVideoManager","startWebcam","mergedConstraints","video","srcObject","onloadedmetadata","stopWebcam","updateWebcamDevice","wasCapturing","LiveScreenManager","startCapture","getDisplayMedia","getVideoTracks","stopCapture","streamSessionId","connected","liveAudioInputManager","liveAudioOutputManager","createWebsocketProxy","streamSessionIdValue","processMessage","stopAudioInput","task","updateStatus","connectionStatusTarget","toggleConnection","connectionIconTarget","stream_session_id","startAudioInput","sendText","textInputTarget","messageResponse","startOnConnect","apiKeyValue","client","modelNameValue","systemInstructionValue","toolsValue","startOnConnectValue","connectedValue","connectedValueChanged","blockIndex","useDispatch","onSelect","params","mediaIdValue","hasBlockIndexValue","blockIndexValue","dispatch","aiSuggestionUrl","addCannedMessage","newValue","chatMessageTarget","cannedMessageToggle","sendButton","keyCode","ctrlKey","altKey","submitFormButtonTarget","fileToggle","fileContentTarget","messageBoxTarget","cannedMessageContentTarget","switchQuickResponse","quickResponseSelectTarget","getAiSuggestion","hasAiSuggestionUrlValue","aiSuggestionUrlValue","closeCommentForm","commentFormTarget","nameTarget","sessionIdTarget","hasStartTimeTarget","startTime","hasStartTimeTextTarget","startTimeTextTarget","hasCancelFormTarget","cancelFormTarget","hasRescheduleFormTarget","rescheduleFormTarget","backdropEl","append","getElementsByClassName","localStoragePresent","storageAvailable","handleDom","clickOutside","toggleExpand","localStorage","setItem","_collapse","_expand","sidebarEl","mainEl","updatePresence","availabilityTarget","navbarPreference","getItem","expand","compact","_checkAndShowOnboardingPopup","navItemTargets","sidebarTarget","bodyTarget","collapseBtnTarget","toggleCollapse","toggleOnboardingSummary","hasOnboardingSummaryTarget","onboardingSummaryTarget","slideToggle","autoShow","section","setActiveLinkSection","clickedLink","linkTargets","sectionValue","sectionValueChanged","navlinkSection","targetLink","find","navlinkSectionParam","firstLinkTarget","hotkey","mdIcon","handler","parent","registerChord","chordScope","chord","timeout","resetChord","hotkeys","setScope","clearTimeout","notyf","Notyf","types","dismissible","className","_browserNotify","_serviceWorkerNotify","notification","requireInteraction","updateCounts","unreadCount","HTMLTemplateElement","templateContent","markRead","notificationIds","notificationId","notifications","serviceWorker","getRegistration","reg","sound","badge","dateOfArrival","now","primaryKey","showNotification","cancelRingTone","notificationEl","notificationType","targetUrl","_playRingtone","hideNotification","stopEventPropogation","pause","notificationData","offCanvas","toggleInputs","form_groups","_checkOfficeHour","_uncheckOfficeHour","elements","form_group","copyTime","container","start_time","end_time","_handleScriptSuccessMessage","playVideo","fadeOut","submitWidgetForm","reportValidity","submitEnableWidgetForm","hasEnableWidgetFormTarget","hiddenInputTarget","enableWidgetFormTarget","generateSlug","slug","hasHandleInputTarget","hasHandleTextTarget","handleInputTarget","handleTextTarget","hasEmailNotificationTarget","emailNotificationTarget","timerElement","timeRemainingTarget","redirectBtn","redirectBtnTarget","timeRemainingWrapper","timeRemainingWrapperTarget","distance","distanceTarget","seconds","floor","minutes","checkAll","initPhotoSwipeFromDOM","gallerySelector","fn","onThumbnailsClick","returnValue","eTarget","clickedListItem","tagName","toUpperCase","clickedGallery","childNodes","numChildNodes","nodeIndex","nodeType","openPhotoSwipe","galleryElement","disableAnimation","fromURL","pswpElement","figureEl","linkEl","size","thumbElements","numNodes","children","w","h","msrc","parseThumbnailElements","galleryUID","getThumbBoundsFn","thumbnail","getElementsByTagName","pageYScroll","pageYOffset","scrollTop","galleryPIDs","j","pid","isNaN","showAnimationDuration","PhotoSwipe","PhotoSwipeUI_Default","init","galleryElements","l","hashData","vars","pair","gid","photoswipeParseHash","hasEmojiIconTarget","hasEmojiMessageTarget","emojiIconTarget","msg","emojiMessageTarget","country","pricing_data","updatePrice","periodTargets","period","updateBasicPrice","updatePremiumPrice","basicPriceTarget","currency","priceForPlan","basicPricingSelectTarget","publishableKey","basicBuyButtonTarget","customerSessionClientSecret","stripeBuyButton","buy_button_id","premiumPriceTarget","premiumPricingSelectTarget","premiumBuyButtonTarget","currencyCode","countryValue","payment_link","tier","planPeriod","periodSelectTarget","scale","QRCode","linkValue","scaleValue","hasDownloadPNGBtnTarget","createPNGDownload","hasDownloadSVGBtnTarget","createSVGDownload","downloadPNGBtnTarget","download","svg","blob","downloadSVGBtnTarget","amount","description","order_id","_successHandler","prefill","email","contact","rzp","Razorpay","showModal","paymentIdInputTarget","razorpay_payment_id","orderIdInputTarget","razorpay_order_id","signatureInputTarget","razorpay_signature","paymentFormTarget","contentTarget","setProperty","removeProperty","siteKey","grecaptcha","sitekey","siteKeyValue","strategy","boundValidateForm","getEventType","isValid","inputFields","submitButton","strategyValue","field","fieldValue","from","some","more","less","hasHiddenClass","hiddenClass","moreText","hasMoreValue","moreValue","lessValue","itemTargets","getOptions","select2","limitShownOptions","dropdownParent","selectionCssClass","nextElementSibling","maxHeight","param","changed","searchParams","paramValue","delete","selectedItemClass","beforeShowSession","has","videoCallId","sessionQueueId","afterShowSession","beforeHideSession","afterHideSession","hideSessionError","hideSessionHalted","showSessionError","showSessionHalted","showSession","hideSession","redirectSession","getRootNode","_fetch_availability","reflex","autocompleteController","openModal","fetch_availability","toggle_ignore_office_hours","get_subscribers","search_query","select_subscriber","subscriber_id","build_subscriber","afterBuildSubscriber","add_subscriber","closeModal","modalName","nameElement","participantName","onStatusChange","selectedUserId","getTime","triggerCalendarElements","switchWeekDom","switchDayDom","refreshIntlTelephoneInput","scrollToFilters","scrollTo","launchCancelModal","modalController","cancelModalTarget","stopPropagation","launchRescheduleModal","rescheduleModalTarget","fileName","contentType","fileInput","fileFieldTarget","File","fileNameValue","contentTypeValue","dataTransfer","DataTransfer","base64Value","setFile","hasPreviewTarget","fileNameElement","previewTarget","clearFile","hasFileNameTarget","fileNameTarget","showSideCar","wrapperTarget","hideSideCar","delay","frt","delayValue","frtValue","updateTimer","CalGridController","showToggleOfficeHours","ignoreOfficeHours","hideCalendar","autoSubmit","tmpEl","availability","loadAvailability","selectionTargetValue","selectionTargetDisplay","startDate","endDate","visibilityDays","renderCalendar","hideWidget","showWidget","addFocusOutListener","rootTarget","makeCalendar","toggleWidget","widgetState","vis","visibilitydays","slots","toDateString","dropdownTarget","prevMonth","currMoment","nextMonth","toggleOfficeHours","officeHourContainers","d","diffMonths","prevMonthBtnTarget","nextMonthBtnTarget","currMonthTarget","gridTarget","isoWeekday","renderDates","daysInMonth","daySlots","btn","renderSlots","slotsCount","morningSlotsTarget","afternoonSlotsTarget","eveningSlotsTarget","nightSlotsTarget","slotTime","slotBtn","hour","selectDate","currDateTarget","backToMonthBtnTarget","selectSlot","valueEl","displayEl","submitBtnTarget","registrable_id","registrableId","account_id","accountId","backToMonth","m","d1","d2","month","year","ResizeObserver","Rails","scrollOnConnect","shouldScroll","scrollOnConnectValue","scrollToBottom","unobserve","scrollHeight","clientHeight","handleAdded","itemTargetConnected","handleScroll","offsetHeight","abs","getParentController","column","klass","group","initSortable","dataIdAttr","fallbackOnBody","groupValue","swapThreshold","handle","onSort","Sortable","newIndex","updatePosition","klassValue","columnValue","showDownloadPopup","hasDownloadPopupTarget","downloadPopupTarget","closeDownloadPopup","toggleVideoStoreLink","hasLinkToggleTarget","hasLinkTarget","linkToggleTarget","preview_url","bagitLink","videoStoreLink","linkTarget","switchProvider","parents","removeClass","allowedFields","allowedColumns","each","toggleVisibility","targets","identifier","foundController","selected_story_page_id","storyPageSelectorTarget","selected_story_page_url","selectedOptions","storyPageUrl","pageSelected","image_url","storyUrl","stories","storyUrlValue","playerContainer","playerEl","AmpStoryPlayer","isReady","parameter","findSelectedTab","tabsDefaultValue","refreshTabSelection","refreshTabContents","addTabClickListeners","setActiveTab","showTabLoadingIndicator","parent_url","parameterValue","spinner","cloneNode","listEl","firstChild","len","tabTargets","tab","listFrame","self","evnt","newUrl","hasVideoTarget","videoTarget","hasDocumentTarget","documentTarget","sunday","monday","tuesday","wednesday","thursday","friday","saturday","weekdaysTarget","days","triggerFilePicker","updateHistory","spinnerEl","hasUpdateHistoryValue","updateHistoryValue","finally","onClick","frame","createUrl","updateUrl","updateDuration","default_option","optionTargets","selectRadioOption","createUnavailability","post","createUrlValue","updateUnavailability","updateUrlValue","updateDurationValue","getSelectedUserId","hideSubscriberPlaceholders","hideSubscriberPlaceholdersValue","hasHideSubscriberPlaceholdersValue","variables","assign","modalId","modal_element","insertValue","resetValue","fallbackTarget","insertCustomString","hasNameTarget","hasFallbackTarget","validateCustomString","focus","hasExampleTarget","exampleTarget","controllers","note","attachment","_getData","_reset","currentAppId","me","toggle_app","addClass","appParent","controllerAction","revealSection","sectionName","visibilitySectionParam","sectionTargets","sectionTarget","formId","mixpanel","can_track","_mt","_mt_userid","people","$first_name","_mt_username","$email","_mt_useremail","USER_ID","connection","saveData"],"sourceRoot":""}