1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/membership_platform-CL9yGeGg.css","assets/karla-font-6ORG599d.css","assets/rubik-font-C7PXSX9F.css","assets/noto-sans-font-DJ25hDqD.css","assets/analytics_creator-GQOeB4rF.js","assets/chunk-BBRjo-9F.js","assets/dist-Bfo7hZtR.js","assets/dist-DVwav7_F.js","assets/hoist-non-react-statics.cjs-BSUJY59o.js","assets/lodash-fRxZxyr8.js","assets/regex-Dg6Ypktq.js","assets/dist-DpLgsRfL.js","assets/react-CgWhlUet.js","assets/noop-Bxbxtpf_.js","assets/mobx.module-D8DpqJEi.js","assets/moment-CSVMwz1s.js","assets/emotion-styled.browser.esm-4FI-bo8L.js","assets/error_boundary-CYFJBKMo.js","assets/defineProperty-BA_8-bVA.js","assets/classnames-DggTi6Wt.js","assets/dist-YdAS1Ajj.js","assets/react-dom-Dct9wJlh.js","assets/prop-types-DUWfPgsH.js","assets/jsx-runtime-CLsEzmKX.js","assets/line_chart-BCfd8qUb.js","assets/_arrayIncludes-zA7bK9qu.js","assets/isObject-rpw8OCJV.js","assets/isEqual-CHIxW807.js","assets/_copyArray-zdu7cfo3.js","assets/mobxreact.esm--Z-zxU5E.js","assets/creator_page_layout-BiF94mG7.js","assets/LoadingOverlay-tczTdwvx.js","assets/Box-DUgUM0SD.js","assets/Loader-cfy33szn.js","assets/create-vars-resolver-Dl54klxl.js","assets/Overlay-B6yMaQmk.js","assets/polymorphic-factory-tSgE1Rnj.js","assets/get-default-z-index-C2m_kzJG.js","assets/Transition-C7B0cRZ4.js","assets/stack-C29JbaBR.js","assets/link-Dqc1rAsQ.js","assets/chunk-5KNZJZUH-BL9wFg-j.js","assets/preload-helper-CiNWltrX.js","assets/interactive_legend-CHbToH9U.js","assets/dist-DClUQkFl.js","assets/analytics_constants-D8BGxQWI.js","assets/analytics_date_inputs-B_fSz9yu.js","assets/chart_type_toggle_button-C6eBuoPV.js","assets/continents_pie_chart-DF3kaJhs.js","assets/country_code_with_flag-1Y-m-5kT.js","assets/creator_analytics_pie_chart-BXsTT8Bh.js","assets/victory-pie-COZEuRnv.js","assets/negate-lG4lY7bB.js","assets/react-fast-compare-CICRb13H.js","assets/countries_pie_chart-DdiU2kEs.js","assets/exit_survey_reasons_pie_chart-BXn5x88e.js","assets/pluralize-CIhLtjWh.js","assets/free_membership_access_callout-jXq3q7mr.js","assets/notes_section-DyvWRhNT.js","assets/Button-BCirr4aX.js","assets/UnstyledButton-BDcfEVSp.js","assets/collapsible_section-BMEtP-Qc.js","assets/payment_migration_counts-CEBgU2Ez.js","assets/Card-w6IzJlTf.js","assets/Paper-DBTA6WQ5.js","assets/create-safe-context-BnLshjgo.js","assets/Center-BkSiq3X0.js","assets/Text-q2W3VBtd.js","assets/report_table-cDFDtxAL.js","assets/mantine_table-56TyI-Zx.js","assets/table_tabs-B57xjQxz.js","assets/price_selection-BnfoGka2.js","assets/Checkbox-ub7sHfVi.js","assets/Input-DxHq9c8b.js","assets/CloseButton-7BodJhLH.js","assets/use-id-LyhHoZbZ.js","assets/use-isomorphic-effect-CGR94vmL.js","assets/use-merged-ref-BDuBycLg.js","assets/use-uncontrolled-B9ekXIKz.js","assets/back_end_explainer-DadrhICi.js","assets/banner_notice_index_whitelabel-DR_gK1vL.js","assets/Alert-DMht3LdZ.js","assets/Badge-855wyr8V.js","assets/creator_bulk_delete_bar-DjFEUKSl.js","assets/Group-Bj__xN1C.js","assets/mantine_delete_button-m7ZZwCFa.js","assets/mantine_confirm_button-D_-kjFIj.js","assets/Menu-DbRcQ7eo.js","assets/floating-ui.react-aPiCKR77.js","assets/Popover-Mh-QYZMC.js","assets/FocusTrap-CVVg9K13.js","assets/OptionalPortal-BB1Q48SS.js","assets/is-element-Dq1jbMGm.js","assets/get-floating-position-CclcXnxF.js","assets/create-event-handler-D8Cmwcim.js","assets/fa-BLZTeAW-.js","assets/creator_index_table-C9ELBbzi.js","assets/creator_title_section-BHHF51xM.js","assets/text-NYl1HIVk.js","assets/banner_notice_create-BK7JBjhB.js","assets/create_with_title-CdXtQHch.js","assets/Modal-DJ_VzIKh.js","assets/ScrollArea-CBakj6NX.js","assets/to-int-OEbA2KUk.js","assets/Stack-DWBJOIMl.js","assets/TextInput-CYEU1KZt.js","assets/InputBase-klHph9Sy.js","assets/campaign_type_edit-CrPnPClV.js","assets/campaign_type_edit-C8ktDOC5.js","assets/in_place_text-4JgbC7jE.js","assets/react-datepicker.min-ywSbkAD1.js","assets/v4-CdF_QWgJ.js","assets/alert-qWfVhieN.js","assets/button-CkqJEy63.js","assets/in_place_text_input-Bfa3KZIW.js","assets/with_legend-B4XVlqZl.js","assets/fieldset-VgLifBbc.js","assets/text_display-DbLSLJFb.js","assets/markdown-it-Uvi-f_Om.js","assets/admin_breadcrumbs-BsVDVh_5.js","assets/in_place_checkbox-B8HzRbNW.js","assets/confirmation-Cvs7UG0R.js","assets/in_place_select-D4HVoD0-.js","assets/editable-BDQkTPjK.js","assets/info_tooltip-Rk5YjEux.js","assets/lib-B4JVjBMP.js","assets/spinner-CZwjBr1Y.js","assets/js.
1cookie-C34XSNAj.js","assets/campaign_type_filter_index-D1RNriWi.js","assets/delete_button-Bki1HBgA.js","assets/fa_block-BwvcIyqn.js","assets/table_wrapper-DRDSOstZ.js","assets/campaign_type_filter_create-DX5MJr1_.js","assets/button_primary-BkpNeLm-.js","assets/campaign_index-D52lQxvm.js","assets/sortable_columns-D4WP3YRL.js","assets/paginator-j4pWQKWA.js","assets/campaign_create-CnK6mtsA.js","assets/simple_user_index-CqpnGu0V.js","assets/check_if_true-C1eRwbhu.js","assets/campaign_type_index-CAVQwzmT.js","assets/campaign_type_index-VKJ6s4eW.js","assets/campaign_type_create-B9VKGV-Y.js","assets/campaign_edit-By29nJHP.js","assets/campaign_edit-wt7Kjzhj.js","assets/fa_warning-DYIF-Eok.js","assets/membership_type_select-DaP2TLsG.js","assets/mantine_in_place_checkbox-D7nFplPz.js","assets/campaign_message_index-B5G-AM3J.js","assets/community_page_edit-C9jCWb1r.js","assets/admin_section-BfERov8w.js","assets/Title-CtpBTzes.js","assets/creator_index_results_count-BsK6vK4t.js","assets/inline_membership_type_select-BoMs8S5q.js","assets/membership_type_short_code-CSW7YY1j.js","assets/mantine_in_place_text-BUecMe-C.js","assets/debounce-5D7lpOSx.js","assets/mantine_style_image_upload-7mk2luxy.js","assets/mantine_paginator-vQQoSneS.js","assets/Pagination-Cfdd82wP.js","assets/creator-BnjzLoIg.js","assets/download_link_type_create-CV4NjVFs.js","assets/download_link_type_edit-sU9hMv-s.js","assets/Breadcrumbs-CO0g03Gk.js","assets/font_awesome_icon_select-DQMfQqkl.js","assets/mantine_in_place_select-Dk7XK7mW.js","assets/download_link_type_index-CPzJMr3K.js","assets/download_link_copy_from_web-DBTGkxra.js","assets/download_link_edit-qkD3mlDp.js","assets/download_link_upload_screen-h2fS7rPU.js","assets/Flex-CGnrAg4k.js","assets/download_link_file_upload-Dh9vAyt_.js","assets/FileInput-DAVYK9R9.js","assets/email_index-B1mwNHTu.js","assets/emails_hub-Cc_VMq5_.js","assets/exercise_entry_create-DXyA3LWe.js","assets/exercise_entry_index-CQblNnzf.js","assets/exercise_drag-CJ9muy3a.js","assets/exercise_input_table-BVPIEAUO.js","assets/modal-Dc-ZOn5x.js","assets/sentence_breakdown-0iwf4k11.js","assets/sentence_search-radpR26e.js","assets/type_ahead-Dqkz4vfE.js","assets/word_search-D_uV7Gno.js","assets/multiple_choice_input-DTugRWkr.js","assets/merge_words_edit-BnYTQXcc.js","assets/video_players_with_type-BstCjqjP.js","assets/media_option_index-yJqVKd3w.js","assets/in_place_media_upload-s4CHd8jz.js","assets/delete_upload_btn-BE3ERYCb.js","assets/exercise_highlight-CHouKIjl.js","assets/exercise_match_media-Bea5gyYv.js","assets/exercise_match_text-Dl8PCXi8.js","assets/exercise_multiple_choice-BTE3T_D_.js","assets/exercise_reorder-CQ3rnn_T.js","assets/exercise_sentence_enter-BQCQLh2A.js","assets/exercise_word_enter-C-mTPyCN.js","assets/exercise_word_options-Cv3Xxv90.js","assets/exercise_type_create-BGNet4s-.js","assets/exercise_type_index-D91Af_bT.js","assets/exercise_ai_review_redirect-B8qgcYSv.js","assets/exercise_create-DFh478jR.js","assets/exercise_edit-CkxP0_oB.js","assets/mantine_rich_text_section-Y-71A1w9.js","assets/episode_code-DltsUj_G.js","assets/exercise_preview_modal-_0Gw0pjI.js","assets/worksheet_search-BAp2COZO.js","assets/rating_index-C6ugkdtu.js","assets/tag_edit-ZK2IEMQU.js","assets/tag_category_indicators-4DHLO9gE.js","assets/exercise_index_whitelabel-BYO-Lt9X.js","assets/Container-CLW9wRdW.js","assets/HoverCard-DqFeJqrp.js","assets/Indicator-ZbN-txPj.js","assets/exit_survey_edit-ONet_FXQ.js","assets/exit_survey_reason_create-BgUTfFIO.js","assets/file_management-8rm0Rd72.js","assets/grid_item_create-DjM5vZIO.js","assets/grid_item_edit-DMhkCBdG.js","assets/grid_item_index-CHDJCbob.js","assets/creator_sidebar_wrapper-DO-ZYeQU.js","assets/learning_path_create-CLe04Mpw.js","assets/learning_path_edit-BCN88Dgm.js","assets/color_dropdown-D-MI1NvQ.js","assets/in_place_flat_select-C3_43k2x.js","assets/welcome_screen_card-D2mmdikz.js","assets/learning_path_index-BVPpUy-M.js","assets/mailerlite_group_index-CB9uvsNU.js","assets/mailerlite_group_index.stories-WdZa_0Ru.js","assets/membership_group_index_whitelabel-DbEK5m4H.js","assets/membership_group_create-B92OP81u.js","assets/membership_types-CWn7NRPN.js","assets/membership_type_edit-BxvHUbdZ.js","assets/MultiSelect-BnQstVez.js","assets/ComboboxChevron-DfbSfeZx.js","assets/membership_type_index-g9yepk0j.js","assets/membership_type_create-ByOQiyRg.js","assets/memberships_hub-D9e6veOx.js","assets/notification_announcement_edit-w2kMipmr.js","assets/mantine_style_date_picker-DFH_Ohl4.js","assets/in_place_date_picker-CpIHLTz4.js","assets/notification_announcement_index-Du6QS6r2.js","assets/podcast_episode_
1create-CpyL5auU.js","assets/podcast_episode_edit-CIn2tmHO.js","assets/podcast_episode_publication_state_banner-DMlPJqZw.js","assets/podcast_episode_index-8yXBICBK.js","assets/podcast_create-Crdu_7k8.js","assets/podcast_edit-cdHylSMQ.js","assets/podcast_publication_state_banner-DJU9mT-D.js","assets/rss_import-CVMC_Iqv.js","assets/podcast_index-Cp--7AeG.js","assets/producer-BZUN1mBd.js","assets/sentence_studio-U6YOkJyH.js","assets/outline_button-DTXCuGQi.js","assets/video_player_recorder-BkkfscaB.js","assets/keymaster-DK-OlJaq.js","assets/video_player-Dsl-L_or.js","assets/patterns-D5XT2Pe3.js","assets/producer_default-CVzg3ZCK.js","assets/simple_sentence_index-DP0V3X0J.js","assets/simple_sentence_index_row-B3pAFtfl.js","assets/producer_concept-0UBsqya1.js","assets/producer_navigation-t7A8fAQZ.js","assets/exercise_ratings_index-8c4tN7sn.js","assets/recording_sessions_index-BEvAMMh-.js","assets/recording_sessions_show-CiyMW4Cu.js","assets/video_clip_index-BPLsAdOR.js","assets/sentence_edit-DE9XlsM5.js","assets/sentence_edit-Dpmxd5AF.js","assets/in_place_video_upload-C8PncT5s.js","assets/concept_index-HmboLIa5.js","assets/concept_create-DVqY_bb2.js","assets/sentence_concept_edit--cgCLgmA.js","assets/checkbox-D8i-3Qyu.js","assets/answer_association_edit-TsrdJlLp.js","assets/question_association_edit-Dd5J8s7_.js","assets/sentence_source_edit-6oXC9IdD.js","assets/vocab_concept_create-C8XCY2K4.js","assets/search_multi_select-BUYAbm7F.js","assets/word_index-BQf5WjMJ.js","assets/concept_word_index-BKvfoJ5M.js","assets/language_button-BhpzX4CV.js","assets/modal_wrapper-CNP4aGBO.js","assets/word_swap-nmEpgjyJ.js","assets/word_batch_create-Bjvn_dO5.js","assets/word_create-BqwgYSia.js","assets/translation_index-kRXE14yn.js","assets/word_index_row-fwEPlUL6.js","assets/encircle_icon-D4GE8-nJ.js","assets/concept_checkbox-w0TUTrYh.js","assets/concept_select-vAruXNZW.js","assets/word_source_edit-CBAF6W2f.js","assets/word_source_edit_modal-BF7polfk.js","assets/word_source_edit_child-CQPjfPQT.js","assets/word_source_edit_root-CM-r32NA.js","assets/plural_edit-BAb4HC9C.js","assets/root_word_edit-DR3O0fY8.js","assets/sentences-4_ROKUEz.js","assets/sentence_index-yr-xysQq.js","assets/custom_tab_create-RqIxsHT-.js","assets/custom_tab_edit-hz94C-F0.js","assets/custom_tab_index-BcJWdUt-.js","assets/site-D4p0-CT-.js","assets/membership_group_edit_whitelabel-CRTNzZ0Y.js","assets/CopyButton-Br-VLxZJ.js","assets/membership_edit_whitelabel-2kfXBVkA.js","assets/site_language_edit-D-bss2zw.js","assets/language_edit-OmUtNPSO.js","assets/backend_title-BuUW2IJW.js","assets/special_character_buttons-0sOvzNjN.js","assets/site_layout-CqMKlGvo.js","assets/site_edit-pq4WZIn1.js","assets/users_edit_helpers-CRL4YASe.js","assets/users_edit_helpers-B2YWNZ3t.js","assets/site_navigation-Dnec4BHi.js","assets/navigation_item_index-CiQsIGR-.js","assets/navigation_item_create-3RpdWBW8.js","assets/site_page_edit-XCz-_mO-.js","assets/pages-ClgI1Lrw.js","assets/page_edit-gOiGIc63.js","assets/preset_page_slugs-BsoAL1Kh.js","assets/page_index-FyLnTSmN.js","assets/page_create-RfFHpH63.js","assets/site_page_index-COpEhMen.js","assets/stripe_analytics_series_index-BXV2Mws2.js","assets/subscriptions-wtAYIPx0.js","assets/site_subscription_index-BnPZVX-c.js","assets/subscription_index-Dl3Nrse1.js","assets/subscription_create-tXP01-wO.js","assets/survey_create-CW1C63UP.js","assets/survey_edit-CROhiTpO.js","assets/survey_question_create-4p5xYsqR.js","assets/survey_question_option_create-DUvWGkah.js","assets/survey_index-BvxgXrbg.js","assets/surveys_hub-QnIF9BLo.js","assets/tag_category_create-pGsxaEN1.js","assets/tag_category_settings--iCioH3H.js","assets/tag_create-CkWYdLMf.js","assets/tags_index-CbPmQmJR.js","assets/upload_net_revenue-eXAscIdY.js","assets/uploaded_audio_index-CkbnlvN5.js","assets/uploaded_image_index-spFeeaR1.js","assets/browser-image-compression-DR6hhVso.js","assets/Image-CfGvSi5K.js","assets/add_subscription_modal-DtiWuaI1.js","assets/admins_index-C1vaz8W5.js","assets/user_role_badge_colors-DQbrDtPU.js","assets/early_access_badge-DU8lKOrG.js","assets/early_access_modal
1-EeeHKqed.js","assets/edit_role_modal-Dn68Zcni.js","assets/email_notification_settings_section-DP2Rd8vW.js","assets/email_section-B2rKcb_p.js","assets/select_all_text_on_click-DK8N6vnD.js","assets/emails_sent_by_site_section-BBACII35.js","assets/integrations_section-BssyI2_7.js","assets/manage_password_modal-8kEdGZ3n.js","assets/membership_group_section-BAdaAAke.js","assets/membership_type_section-Cn71T9cz.js","assets/name_section-Scw3d0rj.js","assets/payment_migration_section-BfkW3w0y.js","assets/rss_feeds_section-CkGA413n.js","assets/subscriptions_section-Mm7OQUXg.js","assets/support_emails_sent_by_user_section-CNzQcumW.js","assets/user_actions_menu-B2OPWIFK.js","assets/user_breadcrumbs-D1gmHe3e.js","assets/user_info_badges_row-wWaRqgvB.js","assets/user_role_badge-CuAayHo5.js","assets/users_edit-DJHQ7kYS.js","assets/users_edit_free_membership_modal-BV8YkDdk.js","assets/users_index-CME2V7Az.js","assets/video_clips-DMa9e76d.js","assets/video_clips_container-C1_bs3ga.js","assets/video_clips_container-PHvmkdmf.js","assets/word_tag_create-ixiljI3N.js","assets/word_tag_edit-_IKnq5XN.js","assets/word_tags_index-C7yG3iHH.js","assets/word_index-DSU2AyuE.js","assets/exercises_section-OB6WWz6S.js","assets/vocab_edit-CURHBPH3.js","assets/worksheet_breadcrumb_item-DPR5rJwh.js","assets/worksheet_word_index-CgTT3LIi.js","assets/worksheet_word_index_row-Bglsi_hG.js","assets/gender_variant_edit-Bqe8sHKn.js","assets/word_structure_edit-BRSCf2-3.js","assets/square_button-CJ3mFciV.js","assets/worksheet_ai_chat_conversation-BZY5lbOz.js","assets/worksheet_ai_chat_helpers-BgnVEt5V.js","assets/worksheet_ai_chat_exercise_modal-BNCBNpql.js","assets/worksheet_ai_chat_message_input-DmSa5_39.js","assets/worksheet_ai_chat_previous_chats-C98OUc6J.js","assets/worksheet_ai_chat_state-BdkxwjZ7.js","assets/worksheet_ai_chats-CXQ_GKST.js","assets/worksheet_comment_overview-CHVuxwUj.js","assets/worksheet_comment_overview.styles-BzCBr3GQ.js","assets/worksheet_comments-YXsAy8fw.js","assets/SegmentedControl-BDyo6A_o.js","assets/get-env-UFQJO31G.js","assets/worksheet_create-CpiKUVrF.js","assets/worksheet_episode_code_validation-DxqzVzyv.js","assets/worksheet_custom_tab_edit-Cqc5vVz2.js","assets/worksheet_edit-CIJSp48o.js","assets/worksheet_unpublished_badge-CgWBANod.js","assets/worksheet_index-sryJocQX.js","assets/worksheet_settings-C_jDU-19.js","assets/affiliate_payout_index-eKJ5Q-kE.js","assets/affiliate_payout_show-Cpi6wxg-.js","assets/ai_service_create-C_bRR18P.js","assets/ai_service_index-lhSdmEjr.js","assets/analytics_default-CU0FC5Yk.js","assets/banner_notice_edit_default-Dj-fDaov.js","assets/banner_notice_edit_whitelabel-6jXYNpgg.js","assets/banner_notice_index_default-Bdga9G8c.js","assets/builder-Bn5igbYq.js","assets/campaign_message_show-D2JB0Q7j.js","assets/card_rule_interjection_edit-tVH8aAmR.js","assets/card_type_create-BxucflMc.js","assets/card_type_edit-CTWncO0G.js","assets/card_type_index-tiKDWNeO.js","assets/card_index-D8dk-Osz.js","assets/card_index_row-kv4OlZv2.js","assets/minimal_pair_edit-DQoAYB4O.js","assets/user_submission_index-avE95VGY.js","assets/challenge_index-g6GEhbVG.js","assets/comment_index-BXcFsV5k.js","assets/comment_overview.styles-DMkcGW_B.js","assets/comment_overview_row-DXmlHO3n.js","assets/concept-B_5Qrcm6.js","assets/concept_category_create-zQy6Y_xJ.js","assets/concept_category_edit-pvGM_FfQ.js","assets/concept_category_concept_index-BU62NBq_.js","assets/concept_category_index-S6lJtf11.js","assets/concept_batch_add_words-BxwBSO8T.js","assets/concept_edit-CAW4b4yL.js","assets/youtube_video-4ki7Ov0B.js","assets/contact_message_index-CuBrdtgN.js","assets/contact_message_tags_modal-Dec4u7o9.js","assets/contact_message_show-CN68AcUG.js","assets/campaign_messages_dashboard-BOr0qlnh.js","assets/line_chart_with_controls-DRIPVjpZ.js","assets/filter_date-BmG_1qVW.js","assets/dashboard-DL5awf9S.js","assets/dashboard_count-laeWFXDL.js","assets/exercises_dashboard-0ksvDzxJ.js","assets/levels_dashboard-Bt7KnE1O.js","assets/payments_dashboard-ChjQSHVN.js","assets/deck-JvcNAh4P.js","assets/deck_rulebook_create-htua2BhO.js","assets/deck_rulebook_edit-zu7V8ee5.js","assets/deck_rulebook_index-h139fRlF.js","assets/deck_edit-Bgjp5qju.js","assets/exercise_index_default-CXWeEa9G.js","assets/user_deck_index-BrMbyopA.js","assets/progress_bar-SiCnxRkm.js","assets/deck_index-DLmrU6-_.js","assets/review_deck_index-CdiEmKFe.js","assets/reviews_index-Cepg2uon.js","assets/faq_category_create-COZvQsMQ.js","assets/faq_category_edit-7_wPQH3_.js","assets/faq_item_create-DhJ6UiRb.js","assets/faq_item_index-BRLJLKSt.js","assets/faq_category_index-hpJt_je0.js","assets/faq_item_edit-DeWviOqj.js","assets/forum_create-DTy6TwQ6.js","assets/forum_edit-M6KAs4n6.js","assets/forum_index-BAKrPjJI.js","assets/grammar_description_edit-C28I43cx.js","assets/format_cleanup_cost-DgbByHMa.js","assets/grammar_description_index-CuYk65RW.js","assets/group_create-DU9sIT3j.js","assets/group_edit-CKgPXvZi.js","assets/group_index-D-wpKkvB.js","assets/interjection_create-DTu6wWDv.js","assets/interjection_edit-BV0D4-vN.js","assets/interjection_index-BKT-hI_0.js","assets/invitation_index-97yUUtZS.js","assets/jobs-5q7wkxEp.js","assets/job_edit-StdDzmgH.js","assets/job_index-DEvsU06e.js","assets/job_create-BYCpPy9r.js","assets/ai_services_priority_order-gIG3AWU
1R.js","assets/language_index-ChyMOtQo.js","assets/league_level_edit-DSxPTkh3.js","assets/league_levels_index-CF2M5ThU.js","assets/level_edit-DPyKfQOK.js","assets/level_index-CjMTTI9Q.js","assets/membership_group_edit_default-CmiHTnQD.js","assets/membership_index-BmTV6ybM.js","assets/membership_create-BjoOCGZV.js","assets/membership_group_index_default-DSPT2ppZ.js","assets/membership_type_create-DxibD_Cg.js","assets/membership_type_edit-sSIjNWzV.js","assets/membership_type_index-MOenkgbf.js","assets/membership_edit_default-Ce1S1aQU.js","assets/navigation_item_edit-C4bH0YM7.js","assets/page_select-Brr2tKx7.js","assets/navigation_item_path_warning-ZTjocfQK.js","assets/notification_index-Dvygegdy.js","assets/send_notification-Cn9kAUXL.js","assets/outreach-CNTcKdDX.js","assets/payment_intent_index-kUWTB0Y7.js","assets/payment_create-D8A2rPRK.js","assets/payment_edit-DhNCtNjH.js","assets/payment_index-BprPw4YB.js","assets/promotion_create-D44xac-y.js","assets/promotion_edit-C2VEdasa.js","assets/promotion_index-l40gkXQQ.js","assets/rating_type_create-DqM_hEEl.js","assets/rating_type_edit-BeTP8f_y.js","assets/rating_type_index-BF_jwm5F.js","assets/rating_edit-C5W3CWSL.js","assets/referrer_option_create-Y6ZB7ZNe.js","assets/referrer_option_index-Bk0QpooA.js","assets/sentence_submission_index-GZZUA9fz.js","assets/session_index-DPqPErXL.js","assets/site-mcizXMZJ.js","assets/site_release_create-33zBUcE4.js","assets/site_release_edit-sR4Z9cAG.js","assets/site_release_index-C1XhiiO7.js","assets/site_create-DyMUAv-5.js","assets/site_index-05xbr1Ei.js","assets/source_edit-B6DxDk2W.js","assets/source_index-PIBgCuSX.js","assets/subscription-DSevn1i4.js","assets/subscription_edit_default-KJoxLFUA.js","assets/user_subscription_create-PKEiapi_.js","assets/subscription_edit_whitelabel-BZ0ILi9z.js","assets/target_edit-UIAFoZMV.js","assets/target_index-BPNY3svk.js","assets/team_member_create-BJWzKqS7.js","assets/team_member_edit-ByYFmfCP.js","assets/team_member_index-Dj76Hw3f.js","assets/translation-D5urhm3J.js","assets/translation_source_edit-DJkr-99q.js","assets/translation_source_index-BdiwyBnw.js","assets/word_modal-BDl8QgX4.js","assets/tree_module_create-Bc882ytl.js","assets/tree_module_edit-CKBpvV0i.js","assets/concept_search-Cvh4yaQn.js","assets/tree_node-BqK5mPDN.js","assets/tree_module_index-CFeQwfVD.js","assets/concept_studio-DLu75ZMI.js","assets/tree_node_edit-DuowlFaW.js","assets/tree_create-FVsZLoTB.js","assets/tree_edit-C96vYvaI.js","assets/tree_index-z5s7QX2d.js","assets/user-xgiSukbK.js","assets/user_concept_index-Br5SAdH8.js","assets/user_exercise_index-Bb8lF_5N.js","assets/user_group_create-BPbFLzY2.js","assets/user_translation_index-DBALIVRy.js","assets/password_change-DcE6TO32.js","assets/user_create-BN0Uqg6W.js","assets/user_edit-p4BFhSyf.js","assets/user_forum_posts_index-VIT59zXY.js","assets/user_index-BaRUQq_F.js","assets/version_index-DLXl6ayi.js","assets/version_show-Chjw1zf6.js","assets/video_clip_edit-CoFa37xR.js","assets/word_association_edit-DOQ2YNK-.js","assets/word_association_show-DdwbGyWC.js","assets/word_count_index-LIMbjD4O.js","assets/word_type_create-CsFfwcGG.js","assets/word_type_edit-C9JzZ0NU.js","assets/word_type_index-ZVjZKCV8.js","assets/exclude_edit-Cg8s1nku.js","assets/meanings_edit-C4G5tr9v.js","assets/regenerate_meanings_modal-CzLGvX8v.js","assets/register_select-Dvf2qEnN.js","assets/synonyms_edit_modal-Df8VMqZq.js","assets/related_word_table_row-BQNt66o1.js","assets/related_words_edit-WxceSRtO.js","assets/synonyms_edit-DYya4Ajw.js","assets/word_edit-C6aYm7C7.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`b118a3387c06afdf625a4e3c513ea6a95901cac8`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b7681a65-eed4-480f-a64e-df60557e22ec`,e._sentryDebugIdIdentifier=`sentry-dbid-b7681a65-eed4-480f-a64e-df60557e22ec`)}catch{}})();import{o as e,r as t,t as n}from"./chunk-BBRjo-9F.js";import{t as r}from"./react-CgWhlUet.js";import{t as i}from"./react-dom-Dct9wJlh.js";import{n as a,t as o}from"./preload-helper-CiNWltrX.js";import{a as s,c,d as l,i as u,l as d,n as f,o as p,r as m,s as h,u as g}from"./chunk-5KNZJZUH-BL9wFg-j.js";import{C as _,S as v,n as y,r as b,t as x,v as S,w as C,x as ee,y as w}from"./dist-Bfo7hZtR.js";import{_ as T,c as E,f as D,r as O,s as te,v as ne,w as re,x as ie}from"./mobx.module-D8DpqJEi.js";import{t as ae}
2from"./lodash-fRxZxyr8.js";import{n as k,t as A}from"./moment-CSVMwz1s.js";import{a as oe,i as se,l as ce,o as le,t as ue}from"./dist-DVwav7_F.js";import{t as de}from"./dist-DpLgsRfL.js";import{t as j}from"./mobxreact.esm--Z-zxU5E.js";import{t as fe}from"./prop-types-DUWfPgsH.js";import{t as pe}from"./classnames-DggTi6Wt.js";import{a as me,i as he,n as ge,r as _e,t as M}from"./error_boundary-CYFJBKMo.js";import{a as ve,i as ye,n as be,o as xe,t as Se}from"./dist-YdAS1Ajj.js";import{a as Ce,c as we,i as Te,l as Ee,o as De,s as Oe,t as N}from"./emotion-styled.browser.esm-4FI-bo8L.js";import{t as ke}from"./jsx-runtime-CLsEzmKX.js";import{t as Ae}from"./js.cookie-C34XSNAj.js";import{t as P}from"./spinner-CZwjBr1Y.js";import{t as je}from"./dist-DClUQkFl.js";import{t as Me}from"./youtube_video-4ki7Ov0B.js";import{a as Ne,i as Pe,n as Fe,o as Ie,r as Le,s as Re,t as F}from"./link-Dqc1rAsQ.js";import{t as I}from"./button-CkqJEy63.js";import{D as ze,E as Be,F as Ve,I as He,L as Ue,N as We,O as Ge,P as Ke,T as qe,_ as Je,b as Ye,c as Xe,d as Ze,f as Qe,g as $e,h as et,j as tt,m as nt,n as rt,o as it,p as at,r as ot,t as L,u as st,w as ct,x as lt,y as ut}from"./Box-DUgUM0SD.js";import{n as dt,r as ft,t as pt}from"./get-base-value-Cfi4q5M2.js";import{t as mt}from"./is-element-Dq1jbMGm.js";import{t as ht}from"./create-safe-context-BnLshjgo.js";import{t as gt}from"./get-default-z-index-C2m_kzJG.js";import{t as _t}from"./Popover-Mh-QYZMC.js";import{i as vt,n as yt,o as bt,s as xt,t as St}from"./create-vars-resolver-Dl54klxl.js";import{t as Ct}from"./use-id-LyhHoZbZ.js";import{t as wt}from"./ScrollArea-CBakj6NX.js";import{i as Tt,n as Et,r as Dt,t as Ot}from"./Transition-C7B0cRZ4.js";import{t as kt}from"./use-isomorphic-effect-CGR94vmL.js";import{t as At}from"./Modal-DJ_VzIKh.js";import{n as jt,r as Mt}from"./use-merged-ref-BDuBycLg.js";import{t as Nt}from"./use-uncontrolled-B9ekXIKz.js";import{t as Pt}from"./get-env-UFQJO31G.js";import{n as Ft,r as It,t as Lt}from"./get-floating-position-CclcXnxF.js";import{n as Rt,t as zt}from"./OptionalPortal-BB1Q48SS.js";import{n as Bt,r as Vt,t as Ht}from"./Input-DxHq9c8b.js";import{t as Ut}from"./polymorphic-factory-tSgE1Rnj.js";import{_ as Wt,a as Gt,b as Kt,c as qt,d as Jt,f as Yt,g as Xt,i as Zt,m as Qt,o as $t,r as en,s as tn,t as nn,u as rn,x as an,y as on}from"./floating-ui.react-aPiCKR77.js";import{t as sn}from"./UnstyledButton-BDcfEVSp.js";import{t as cn}from"./Paper-DBTA6WQ5.js";import{t as ln}from"./Loader-cfy33szn.js";import{t as un}from"./Group-Bj__xN1C.js";import{t as dn}from"./InputBase-klHph9Sy.js";import{t as fn}from"./Text-q2W3VBtd.js";import{n as pn,r as mn,t as hn}from"./ComboboxChevron-DfbSfeZx.js";import{t as gn}from"./Badge-855wyr8V.js";import{t as _n}from"./Button-BCirr4aX.js";import{t as vn}from"./Card-w6IzJlTf.js";import{t as yn}from"./Center-BkSiq3X0.js";import{t as bn}from"./Image-CfGvSi5K.js";import{t as xn}from"./Stack-DWBJOIMl.js";import{t as Sn}from"./TextInput-CYEU1KZt.js";import{t as Cn}from"./Title-CtpBTzes.js";import{t as R}from"./text-NYl1HIVk.js";import{t as wn}from"./v4-CdF_QWgJ.js";import{t as Tn}from"./lib-B4JVjBMP.js";import{t as En}from"./info_tooltip-Rk5YjEux.js";import{t as Dn}from"./modal-Dc-ZOn5x.js";import{n as On,t as kn}from"./episode_code-DltsUj_G.js";import{n as z,t as An}from"./stack-C29JbaBR.js";import{t as B}from"./alert-qWfVhieN.js";import{t as jn}from"./checkbox-D8i-3Qyu.js";import{t as Mn}from"./fa-BLZTeAW-.js";import{t as Nn}from"./fa_warning-DYIF-Eok.js";import{t as Pn}from"./outline_button-DTXCuGQi.js";import{t as Fn}from"./progress_bar-SiCnxRkm.js";import{t as In}from"./paginator-j4pWQKWA.js";import{t as Ln}from"./keymaster-DK-OlJaq.js";import{$ as Rn,A as zn,B as Bn,C as Vn,Ct as Hn,D as Un,Dt as Wn,E as Gn,Et as Kn,F as qn,G as Jn,H as Yn,I as Xn,J as Zn,K as Qn,L as $n,M as er,N as tr,O as nr,Ot as rr,P as ir,Q as ar,R as or,S as sr,St as cr,T as lr,Tt as ur,U as dr,V as fr,W as pr,X as mr,Y as hr,Z as gr,_ as _r,_t as vr,a as yr,at as br,b as xr,bt as Sr,c as Cr,ct as wr,d as Tr,dt as Er,et as Dr,f as Or,ft as kr,g as Ar,gt as jr,h as Mr,ht as Nr,i as Pr,it as Fr,j as Ir,k as Lr,kt as Rr,l as zr,lt as Br,m as Vr,mt as Hr,n as Ur,nt as Wr,o as Gr,ot as Kr,p as qr,pt as Jr,q as Yr,r as Xr,rt as Zr,s as Qr,st as $r,t as ei,tt as ti,u as ni,ut as ri,v as ii,vt as ai,w as oi,wt as si,x as ci,xt as li,y as ui,yt as di,z as fi}from"./victory-pie-COZEuRnv.js";import{E as pi,K as mi,T as hi,W as gi,l as _i}from"./_arrayIncludes-zA7bK9qu.js";import{i as vi,r as yi,t as bi}from"./isObject-rpw8OCJV.js";import{a as xi,f as Si,h as Ci,l as wi,n as Ti,r as Ei}from"./isEqual-CHIxW807.js";import{t as Di}from"./react-fast-compare-CICRb13H.js";import{t as Oi}from"./debounce-5D7lpOSx.js";import{t as ki}from"./interactive_legend-CHbToH9U.js";import{t as Ai}from"./video_player-Dsl-L_or.js";import{t as ji}from"./language_button-BhpzX4CV.js";import{t as Mi}from"./pluralize-CIhLtjWh.js";import{t as Ni}from"./fieldset-VgLifBbc.js";import{t as Pi}from"./with_legend-B4XVlqZl.js";import{t as Fi}from"./in_place_select-D4HVoD0-.js";import{t as Ii}from"./in_place_text_input-Bfa3KZIW.js";import{t as Li}from"./sentence_breakdown-0iwf4k11.js";import{a as Ri,c as zi,d as Bi,f as Vi,i as Hi,l as Ui,o as Wi,p as Gi,r as Ki,s as qi,t as Ji,u as Yi}from"./concept_word_index-BKvfoJ5M.js";import{t as Xi}from"./confirmation-Cvs7UG0R.js";import{t as Zi}from"./in_place_checkbox-B8HzRbNW.js";import{t as Qi}from"./in_place_text-4JgbC7jE.js";import{n as $i}from"./text_display-DbLSLJFb.js";import{n as ea,t as ta}from"./special_character_buttons-0sOvzNjN.js";import{t as na}from"./fa_block-BwvcIyqn.js";import{t as ra}from"./delete_button-Bki1HBgA.js";import{t as ia}from"./browser-image-compression-DR6hhVso.js";import{t as aa}from"./delete_upload_btn-BE3ERYCb.js";import{n as oa}from"./table_wrapper-DRDSOstZ.js";import{t as sa}from"./button_primary-BkpNeLm-.js";import{a as ca,i as la,n as ua,r as da,t as fa}from"./filter_date-BmG_1qVW.js";import{t as pa}from"./type_ahead-Dqkz4vfE.js";import{n as ma,t as ha}from"./welcome_screen_card-D2mmdikz.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ga=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,ee=5,w=-1;function T(){return g?!0:!(e.unstable_now()-w<ee)}
vendor: 13,580 bytes, lines 2-9
2function E(){if(g=!1,S){var t=e.unstable_now();w=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&T());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,te=O.port2;O.port1.onmessage=E,D=function(){te.postMessage(null)}}else D=function(){_(E,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),eee=n(((e,t)=>{t.exports=ga()})),_a=n((e=>{var t=eee(),n=r(),a=i();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case ee:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function de(e,t){ce++,se[ce]=e.current,e.current=t}var j=le(null),fe=le(null),pe=le(null),me=le(null);function he(e,t){switch(de(pe,t),de(fe,e),de(j,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(j),de(j,e)}function ge(){ue(j),ue(fe),ue(pe)}function _e(e){e.memoizedState!==null&&de(me,e);var t=j.current,n=Wd(t,e.type);t!==n&&(de(fe,e),de(j,n))}function M(e){fe.current===e&&(ue(j),ue(fe)),me.current===e&&(ue(me),$f._currentValue=oe)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,N=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,P=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Fe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function F(e){if(typeof Fe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var I=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-I(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-I(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-I(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function it(){var e=A.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function at(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var ot=Math.random().toString(36).slice(2),L=`__reactFiber$`+ot,st=`__reactProps$`+ot,ct=`__reactContainer$`+ot,lt=`__reactEvents$`+ot,ut=`__reactListeners$`+ot,dt=`__reactHandles$`+ot,ft=`__reactResources$`+ot,pt=`__reactMarker$`+ot;function mt(e){delete e[L],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[L];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[L]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pf(e);e!==null;){if(n=e[L])return n;e=pf(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[L]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Tt={},Et={};function Dt(e){return Te.call(Et,e)?!0:Te.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function At(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function It(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Lt=/[\n"\\]/g;function Rt(e){return e.replace(Lt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Vt(e,o,jt(n)):Vt(e,o,jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+jt(s):e.removeAttribute(`name`)}function Bt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Pt(e)}function Vt(e,t,n){t===`number`&&It(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ut(e,t,n){if(t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+jt(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(ae(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,502 bytes, line 9
9n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Kt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Jt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(o(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&qt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&qt(e,a,t[a])}function Yt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Xt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qt(e){return Zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function $t(){}var en=null;function tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,rn=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(zt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Rt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[st]||null;if(!i)throw Error(o(90));zt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ft(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(nn!==null||rn!==null)&&(xu(),nn&&(t=nn,e=rn,rn=nn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(o(231,t,typeof n));return n}var ln=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,`passive`,{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return mn=i.slice(e,1<r?1-r:void 0)}function gn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _n(){return!0}function vn(){return!1}function yn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?_n:vn,this.isPropagationStopped=vn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=m({},bn,{view:0,detail:0}),Cn=yn(Sn),R,wn,Tn,En=m({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Tn&&(Tn&&e.type===`mousemove`?(R=e.screenX-Tn.screenX,wn=e.screenY-Tn.screenY):wn=R=0,Tn=e),R)},movementY:function(e){return`movementY`in e?e.movementY:wn}}),Dn=yn(En),On=yn(m({},En,{dataTransfer:0})),kn=yn(m({},Sn,{relatedTarget:0})),z=yn(m({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),An=yn(m({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),B=yn(m({},bn,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=yn(m({},Sn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=yn(m({},En,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=yn(m({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=yn(m({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=yn(m({},En,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Vn=yn(m({},bn,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=ln&&`CompositionEvent`in window,Wn=null;ln&&`documentMode`in document&&(Wn=document.documentMode);var Gn=ln&&`TextEvent`in window&&!Wn,Kn=ln&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=hn(),mn=pn=fn=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){nn?rn?rn.push(r):rn=[r]:nn=r,t=Dd(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){bd(e,0)}function or(e){if(Ft(_t(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(ln){var lr;if(ln){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,tn(e)),sn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Te.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=It(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=ln&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==It(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 101,032 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=Dd(Or,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};ln&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),St(t,[e])}var qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-I(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<fu)throw fu=0,pu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ci(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,j.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=ai(31,n,t,i),e.elementType=D,e.lanes=a,e;case v:return ui(n.children,i,a,t);case y:s=8,i|=24;break;case b:return e=ai(12,n,t,i|2),e.elementType=b,e.lanes=a,e;case ee:return e=ai(13,n,t,i),e.elementType=ee,e.lanes=a,e;case w:return e=ai(19,n,t,i),e.elementType=w,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(o(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-I(r)-1;r&=~(1<<i),n+=1;var a=32-I(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-I(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,Fi=Error(o(519));function Ii(e){throw Hi(hi(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[L]=e,t[st]=r,n){case`dialog`:xd(`cancel`,t),xd(`close`,t);break;case`iframe`:case`object`:case`embed`:xd(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)xd(vd[n],t);break;case`source`:xd(`error`,t);break;case`img`:case`image`:case`link`:xd(`error`,t),xd(`load`,t);break;case`details`:xd(`toggle`,t);break;case`input`:xd(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:xd(`invalid`,t);break;case`textarea`:xd(`invalid`,t),Wt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(xd(`beforetoggle`,t),xd(`toggle`,t)),r.onScroll!=null&&xd(`scroll`,t),r.onScrollEnd!=null&&xd(`scrollend`,t),r.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function zi(e){if(e!==Ai)return!1;if(!Mi)return Ri(e),Mi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gd(e.type,e.memoizedProps)),n=!n),n&&ji&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));ji=ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));ji=ff(e)}else t===27?(t=ji,$d(e.type)?(e=df,df=null,ji=e):ji=t):ji=Ai?uf(e.stateNode.nextSibling):null;return!0}function Bi(){ji=Ai=null,Mi=!1}function Vi(){var e=Ni;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Ni=null),e}function Hi(e){Ni===null?Ni=[e]:Ni.push(e)}var Ui=le(null),Wi=null,Gi=null;function Ki(e,t,n){de(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,ue(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ji(a.return,n,e),r||(s=null);break a}a=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(o(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ji(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Xi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var c=i.type;yr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===me.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}i=i.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(o(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=fd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=k.S;k.S=function(e,t){tu=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=le(null);function _a(){var e=ga.current;return e===null?Rl.pooledCache:e}function va(e,t){t===null?de(ga,ga.current):de(ga,t.pool)}function V(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ya=Error(o(460)),ba=Error(o(474)),xa=Error(o(542)),H={then:function(){}};function U(e){return e=e.status,e===`fulfilled`||e===`rejected`}function W(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($t,$t),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,K(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Rl,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,K(e),e}throw Sa=t,ya}}function G(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Sa=e,ya):e}}var Sa=null;function Ca(){if(Sa===null)throw Error(o(459));var e=Sa;return Sa=null,e}function K(e){if(e===ya||e===xa)throw Error(o(483))}var wa=null,Ta=0;function Ea(e){var t=Ta;return Ta+=1,wa===null&&(wa=[]),W(wa,e,t)}function Da(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Oa(e,t){throw t.$$typeof===h?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ka(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=si(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=di(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===E&&G(a)===t.type)?(t=i(t,n.props),Da(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),Da(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ui(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=li(t.type,t.key,t.props,null,e.mode,n),Da(n,t),n.return=e,n;case _:return t=pi(t,e.mode,n),t.return=e,t;case E:return t=G(t),f(e,t,n)}if(ae(t)||ne(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ea(t),n);if(t.$$typeof===S)return f(e,ea(e,t),n);Oa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case E:return n=G(n),p(e,t,n,r)}if(ae(n)||ne(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ea(n),r);if(n.$$typeof===S)return p(e,t,ea(e,n),r);Oa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=G(r),m(e,t,n,r,i)}if(ae(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ea(r),i);if(r.$$typeof===S)return m(e,t,n,ea(t,r),i);Oa(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Mi&&Ti(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return Mi&&Ti(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Mi&&Ti(i,h),l}function y(i,s,c,l){if(c==null)throw Error(o(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Mi&&Ti(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return Mi&&Ti(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Mi&&Ti(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===v&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case g:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&G(l)===r.type){n(e,r.sibling),c=i(r,a.props),Da(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===v?(c=ui(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=li(a.type,a.key,a.props,null,e.mode,c),Da(c,a),c.return=e,e=c)}return s(e);case _:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=pi(a,e.mode,c),c.return=e,e=c}return s(e);case E:return a=G(a),b(e,r,a,c)}if(ae(a))return h(e,r,a,c);if(ne(a)){if(l=ne(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),y(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ea(a),c);if(a.$$typeof===S)return b(e,r,ea(e,a),c);Oa(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=di(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=b(e,t,n,r);return wa=null,i}catch(t){if(t===ya||t===xa)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ll&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function La(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ra(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var za=!1;function Ba(){if(za){var e=da;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Bl&f)===f:(r&f)===f){f!==0&&f===ua&&(za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ma=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ha(n[e],t)}var Wa=le(null),Ga=le(0);function Ka(e,t){e=Wl,de(Ga,e),de(Wa,t),Wl=e|t.baseLanes}function qa(){de(Ga,Wl),de(Wa,Wa.current)}function Ja(){Wl=Ga.current,ue(Wa),ue(Ga)}var Ya=le(null),Xa=null;function Za(e){var t=e.alternate;de(no,no.current&1),de(Ya,e),Xa===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Xa=e)}function Qa(e){de(no,no.current),de(Ya,e),Xa===null&&(Xa=e)}function $a(e){e.tag===22?(de(no,no.current),de(Ya,e),Xa===null&&(Xa=e)):eo(e)}function eo(){de(no,no.current),de(Ya,Ya.current)}function to(e){ue(Ya),Xa===e&&(Xa=null),ue(no)}var no=le(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=0,ao=null,oo=null,so=null,co=!1,lo=!1,uo=!1,fo=0,po=0,mo=null,ho=0;function go(){throw Error(o(321))}function _o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function vo(e,t,n,r,i,a){return io=a,ao=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Fs:Is,uo=!1,a=n(r,i),uo=!1,lo&&(a=bo(t,n,r,i)),yo(e),a}function yo(e){k.H=Ps;var t=oo!==null&&oo.next!==null;if(io=0,so=oo=ao=null,co=!1,po=0,mo=null,t)throw Error(o(300));e===null||$s||(e=e.dependencies,e!==null&&Zi(e)&&($s=!0))}function bo(e,t,n,r){ao=e;var i=0;do{if(lo&&(mo=null),po=0,lo=!1,25<=i)throw Error(o(301));if(i+=1,so=oo=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}k.H=Ls,a=t(n,r)}while(lo);return a}function xo(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?Oo(t):t,e=e.useState()[0],(oo===null?null:oo.memoizedState)!==e&&(ao.flags|=1024),t}function So(){var e=fo!==0;return fo=0,e}function Co(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function wo(e){if(co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}co=!1}io=0,so=oo=ao=null,lo=!1,po=fo=0,mo=null}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return so===null?ao.memoizedState=so=e:so=so.next=e,so}function Eo(){if(oo===null){var e=ao.alternate;e=e===null?null:e.memoizedState}else e=oo.next;var t=so===null?ao.memoizedState:so.next;if(t!==null)so=t,oo=e;else{if(e===null)throw ao.alternate===null?Error(o(467)):Error(o(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},so===null?ao.memoizedState=so=e:so=so.next=e}return so}function Do(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oo(e){var t=po;return po+=1,mo===null&&(mo=[]),e=W(mo,e,t),t=ao,(so===null?t.memoizedState:so.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Fs:Is),e}function ko(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Oo(e);if(e.$$typeof===S)return $i(e)}throw Error(o(438,String(e)))}function Ao(e){var t=null,n=ao.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ao.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Do(),ao.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function jo(e,t){return typeof t==`function`?t(e):t}function Mo(e){return No(Eo(),oo,e)}function No(e,t,n){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(io&f)===f:(Bl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((io&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=a):l=l.next=f,ao.lanes|=p,Kl|=p;f=u.action,uo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=a):l=l.next=p,ao.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!yr(a,e.memoizedState)&&($s=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Po(e){var t=Eo(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);yr(a,t.memoizedState)||($s=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Fo(e,t,n){var r=ao,i=Eo(),a=Mi;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!yr((oo||i).memoizedState,n);if(s&&(i.memoizedState=n,$s=!0),i=i.queue,os(Ro.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||so!==null&&so.memoizedState.tag&1){if(r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,i,n,t),null),Rl===null)throw Error(o(349));a||io&127||Io(r,t,n)}return n}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ao.updateQueue,t===null?(t=Do(),ao.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lo(e,t,n,r){t.value=n,t.getSnapshot=r,zo(t)&&Bo(e)}function Ro(e,t,n){return n(function(){zo(t)&&Bo(e)})}function zo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Bo(e){var t=ei(e,2);t!==null&&gu(t,e,2)}function Vo(e){var t=To();if(typeof e==`function`){var n=e;if(e=n(),uo){F(!0);try{n()}finally{F(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:e},t}function Ho(e,t,n,r){return e.baseState=n,No(e,oo,typeof r==`function`?r:jo)}function Uo(e,t,n,r,i){if(js(e))throw Error(o(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};k.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Wo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Wo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Go(e,t,s)}catch(n){qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Go(e,t,a)}catch(n){qo(e,t,n)}}function Go(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ko(e,t,n)},function(n){return qo(e,t,n)}):Ko(e,t,n)}function Ko(e,t,n){t.status=`fulfilled`,t.value=n,Jo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Wo(e,n)))}function qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Jo(t),t=t.next;while(t!==r)}e.action=null}function Jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yo(e,t){return t}function Xo(e,t){if(Mi){var n=Rl.formState;if(n!==null){a:{var r=ao;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=uf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=uf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=To(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:t},n.queue=r,n=Os.bind(null,ao,r),r.dispatch=n,r=Vo(!1),a=As.bind(null,ao,!1,r.queue),r=To(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Uo.bind(null,ao,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Zo(e){return Qo(Eo(),oo,e)}function Qo(e,t,n){if(t=No(e,t,Yo)[0],e=Mo(jo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Oo(t)}catch(e){throw e===ya?xa:e}else r=t;t=Eo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ao.flags|=2048,ts(9,{destroy:void 0},$o.bind(null,i,n),null)),[r,a,e]}function $o(e,t){e.action=t}function es(e){var t=Eo(),n=oo;if(n!==null)return Qo(t,n,e);Eo(),t=t.memoizedState,n=Eo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ts(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ao.updateQueue,t===null&&(t=Do(),ao.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ns(){return Eo().memoizedState}function rs(e,t,n,r){var i=To();ao.flags|=e,i.memoizedState=ts(1|t,{destroy:void 0},n,r===void 0?null:r)}function is(e,t,n,r){var i=Eo();r=r===void 0?null:r;var a=i.memoizedState.inst;oo!==null&&r!==null&&_o(r,oo.memoizedState.deps)?i.memoizedState=ts(t,a,n,r):(ao.flags|=e,i.memoizedState=ts(1|t,a,n,r))}function as(e,t){rs(8390656,8,e,t)}function os(e,t){is(2048,8,e,t)}function ss(e){ao.flags|=4;var t=ao.updateQueue;if(t===null)t=Do(),ao.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function cs(e){var t=Eo().memoizedState;return ss({ref:t,nextImpl:e}),function(){if(Ll&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ls(e,t){return is(4,2,e,t)}function us(e,t){return is(4,4,e,t)}function ds(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fs(e,t,n){n=n==null?null:n.concat([e]),is(4,4,ds.bind(null,t,e),n)}function ps(){}function ms(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hs(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&_o(t,r[1]))return r[0];if(r=e(),uo){F(!0);try{e()}finally{F(!1)}}return n.memoizedState=[r,t],r}function gs(e,t,n){return n===void 0||io&1073741824&&!(Bl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),ao.lanes|=e,Kl|=e,n)}function _s(e,t,n,r){return yr(n,t)?n:Wa.current===null?!(io&42)||io&1073741824&&!(Bl&261930)?($s=!0,e.memoizedState=n):(e=hu(),ao.lanes|=e,Kl|=e,t):(e=gs(e,n,r),yr(e,t)||($s=!0),e)}function vs(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};k.T=s,As(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,ma(c,r),mu(e)):ks(e,t,r,mu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=xs(e).queue;vs(e,i,t,oe,n===null?ys:function(){return Ss(e),n(r)})}function xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},mu())}function Cs(){return $i($f)}function ws(){return Eo().memoizedState}function Ts(){return Eo().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Fa(n);var r=Ia(t,e,n);r!==null&&(gu(r,t,n),La(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=$r(e,t,n,r),n!==null&&(gu(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,mu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Qr(e,t,i,0),Rl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return gu(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(o(479))}else t=$r(e,n,r,2),t!==null&&gu(t,e,2)}function js(e){var t=e.alternate;return e===ao||t!==null&&t===ao}function Ms(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Ps={readContext:$i,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ps.useEffectEvent=go;var Fs={readContext:$i,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:as,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),rs(4194308,4,ds.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){rs(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){F(!0);try{e()}finally{F(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){F(!0);try{n(t)}finally{F(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,ao,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Vo(e);var t=e.queue,n=Os.bind(null,ao,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ps,useDeferredValue:function(e,t){return gs(To(),e,t)},useTransition:function(){var e=Vo(!1);return e=vs.bind(null,ao,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ao,i=To();if(Mi){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Rl===null)throw Error(o(349));Bl&127||Io(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,as(Ro.bind(null,r,a,e),[e]),r.flags|=2048,ts(9,{destroy:void 0},Lo.bind(null,r,a,n,t),null),n},useId:function(){var e=To(),t=Rl.identifierPrefix;if(Mi){var n=wi,r=Ci;n=(r&~(1<<32-I(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ho++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:Xo,useActionState:Xo,useOptimistic:function(e){var t=To();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=As.bind(null,ao,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ao,useCacheRefresh:function(){return To().memoizedState=Es.bind(null,ao)},useEffectEvent:function(e){var t=To(),n={impl:e};return t.memoizedState=n,function(){if(Ll&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Is={readContext:$i,use:ko,useCallback:ms,useContext:$i,useEffect:os,useImperativeHandle:fs,useInsertionEffect:ls,useLayoutEffect:us,useMemo:hs,useReducer:Mo,useRef:ns,useState:function(){return Mo(jo)},useDebugValue:ps,useDeferredValue:function(e,t){return _s(Eo(),oo.memoizedState,e,t)},useTransition:function(){var e=Mo(jo)[0],t=Eo().memoizedState;return[typeof e==`boolean`?e:Oo(e),t]},useSyncExternalStore:Fo,useId:ws,useHostTransitionStatus:Cs,useFormState:Zo,useActionState:Zo,useOptimistic:function(e,t){return Ho(Eo(),oo,e,t)},useMemoCache:Ao,useCacheRefresh:Ts};Is.useEffectEvent=cs;var Ls={readContext:$i,use:ko,useCallback:ms,useContext:$i,useEffect:os,useImperativeHandle:fs,useInsertionEffect:ls,useLayoutEffect:us,useMemo:hs,useReducer:Po,useRef:ns,useState:function(){return Po(jo)},useDebugValue:ps,useDeferredValue:function(e,t){var n=Eo();return oo===null?gs(n,e,t):_s(n,oo.memoizedState,e,t)},useTransition:function(){var e=Po(jo)[0],t=Eo().memoizedState;return[typeof e==`boolean`?e:Oo(e),t]},useSyncExternalStore:Fo,useId:ws,useHostTransitionStatus:Cs,useFormState:es,useActionState:es,useOptimistic:function(e,t){var n=Eo();return oo===null?(n.baseState=e,[e,n.queue.dispatch]):Ho(n,oo,e,t)},useMemoCache:Ao,useCacheRefresh:Ts};Ls.useEffectEvent=cs;function Rs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Fa(r);i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(gu(t,e,r),La(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Fa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(gu(t,e,r),La(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Fa(n);r.tag=2,t!=null&&(r.callback=t),t=Ia(e,r,n),t!==null&&(gu(t,e,n),La(t,e,n))}};function Bs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Vs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zs.enqueueReplaceState(t,t.state,null)}function Hs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Us(e){qr(e)}function Ws(e){console.error(e)}function Gs(e){qr(e)}function Ks(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Js(e,t,n){return n=Fa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ks(e,t)},n}function Ys(e){return e=Fa(e),e.tag=3,e}function Xs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){qs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Zs(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,i,!0),n=Ya.current,n!==null){switch(n.tag){case 31:case 13:return Xa===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===H?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,i)),!1;case 22:return n.flags|=65536,r===H?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,i)),!1}throw Error(o(435,n.tag))}return qu(e,r,i),Ou(),!1}if(Mi)return t=Ya.current,t===null?(r!==Fi&&(t=Error(o(423),{cause:r}),Hi(hi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=hi(r,n),i=Js(e.stateNode,r,i),Ra(e,i),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Fi&&(e=Error(o(422),{cause:r}),Hi(hi(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=hi(a,n),Zl===null?Zl=[a]:Zl.push(a),Gl!==4&&(Gl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Js(n.stateNode,r,e),Ra(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(iu===null||!iu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Ys(i),Xs(i,e,n,r),Ra(n,i),!1}n=n.return}while(n!==null);return!1}var Qs=Error(o(461)),$s=!1;function ec(e,t,n,r){t.child=e===null?ja(t,null,n,r):Aa(t,e.child,n,r)}function tc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=vo(e,t,n,o,a,i),s=So(),e!==null&&!$s?(Co(e,t,i),Tc(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,ec(e,t,r,i),t.child)}function nc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,rc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ec(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return Tc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function rc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if($s=!1,t.pendingProps=r=a,Ec(e,i))e.flags&131072&&($s=!0);else return t.lanes=e.lanes,Tc(e,t,i)}return dc(e,t,n,r,i)}function ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return oc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?qa():Ka(t,a),$a(t);else return r=t.lanes=536870912,oc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),qa(),eo(t)):(va(t,a.cachePool),Ka(t,a),eo(t),t.memoizedState=null);return ec(e,t,i,n),t.child}function ac(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),qa(),$a(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function sc(e,t){return t=bc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cc(e,t,n){return Aa(t,e.child,null,n),e=sc(t,t.pendingProps),e.flags|=2,to(t),t.memoizedState=null,e}function lc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=sc(t,r),t.lanes=536870912,ac(null,e);if(Qa(t),(e=ji)?(e=of(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return sc(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(Qa(t),i)if(t.flags&256)t.flags&=-257,t=cc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if($s||Xi(e,t,n,!1),i=(n&e.childLanes)!==0,$s||i){if(r=Rl,r!==null&&(s=tt(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,ei(e,s),gu(r,e,s),Qs;Ou(),t=cc(e,t,n)}else e=a.treeContext,ji=uf(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=sc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function dc(e,t,n,r,i){return Qi(t),n=vo(e,t,n,r,void 0,i),r=So(),e!==null&&!$s?(Co(e,t,i),Tc(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,ec(e,t,n,i),t.child)}function fc(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=bo(t,r,n,i),yo(e),r=So(),e!==null&&!$s?(Co(e,t,a),Tc(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,ec(e,t,n,a),t.child)}function pc(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=zs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Na(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Rs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&zs.enqueueReplaceState(a,a.state,null),Va(t,r,a,i),Ba(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Hs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Vs(t,a,r,o),Ma=!1;var f=t.memoizedState;a.state=f,Va(t,r,a,i),Ba(),l=t.memoizedState,s||f!==l||Ma?(typeof d==`function`&&(Rs(t,n,d,r),l=t.memoizedState),(c=Ma||Bs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pa(e,t),o=t.memoizedProps,u=Hs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Vs(t,a,r,c),Ma=!1,f=t.memoizedState,a.state=f,Va(t,r,a,i),Ba();var p=t.memoizedState;o!==d||f!==p||Ma||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Rs(t,n,s,r),p=t.memoizedState),(u=Ma||Bs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,uc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Aa(t,e.child,null,i),t.child=Aa(t,null,n,i)):ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Tc(e,t,i),e}function mc(e,t,n,r){return Bi(),t.flags|=256,ec(e,t,n,r),t.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:V()}}function _c(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function vc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(no.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Mi){if(i?Za(t):eo(t),(e=ji)?(e=of(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(eo(t),i=t.mode,c=bc({mode:`hidden`,children:c},i),r=ui(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,ac(null,r)):(Za(t),yc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(Za(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState===null?(eo(t),c=r.fallback,i=t.mode,r=bc({mode:`visible`,children:r.children},i),c=ui(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Aa(t,e.child,null,n),r=t.child,r.memoizedState=gc(n),r.childLanes=_c(e,s,n),t.memoizedState=hc,t=ac(null,r)):(eo(t),t.child=e.child,t.flags|=128,t=null);else if(Za(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=xc(e,t,n)}else if($s||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,$s||s){if(s=Rl,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),gu(s,e,r),Qs;sf(c)||Ou(),t=xc(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=uf(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=yc(t,r.children),t.flags|=4096);return t}return i?(eo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,i,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ac(null,r),r=t.child,c=e.child.memoizedState,c===null?c=gc(n):(i=c.cachePool,i===null?i=V():(l=aa._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=_c(e,s,n),t.memoizedState=hc,ac(e.child,r)):(Za(t),n=e.child,e=n.sibling,n=si(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function yc(e,t){return t=bc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function bc(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return Aa(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function Cc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function wc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=no.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,de(no,o),ec(e,t,r,n),r=Mi?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sc(e,n,t);else if(e.tag===19)Sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cc(t,!0,n,null,a,r);break;case`together`:Cc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ec(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Zi(e))):!0}function Dc(e,t,n){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:_e(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Za(t),e=Tc(e,t,n),e===null?null:e.sibling):vc(e,t,n):(Za(t),t.flags|=128,null);Za(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return wc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),de(no,no.current),r)break;return null;case 22:return t.lanes=0,ic(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return Tc(e,t,n)}function Oc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$s=!0;else{if(!Ec(e,n)&&!(t.flags&128))return $s=!1,Dc(e,t,n);$s=!!(e.flags&131072)}else $s=!1,Mi&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=G(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=Hs(e,r),t.tag=1,t=pc(null,t,e,r,n)):(t.tag=0,t=dc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=tc(null,t,e,r,n);break a}else if(i===T){t.tag=14,t=nc(null,t,e,r,n);break a}}throw t=ie(e)||e,Error(o(306,t,``))}}return t;case 0:return dc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Hs(r,t.pendingProps),pc(e,t,r,i,n);case 3:a:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Pa(e,t),Va(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0),Ba(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=mc(e,t,r,n);break a}else if(r!==i){i=hi(Error(o(424)),t),Hi(i),t=mc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=uf(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===i){t=Tc(e,t,n);break a}ec(e,t,r,n)}t=t.child}return t;case 26:return uc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=Hd(pe.current).createElement(n),r[L]=t,r[st]=e,Id(r,n,e),yt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&Mi&&(r=t.stateNode=mf(t.type,t.pendingProps,pe.current),Ai=t,Pi=!0,i=ji,$d(t.type)?(df=i,ji=uf(r.firstChild)):ji=i),ec(e,t,t.pendingProps.children,n),uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((i=r=ji)&&(r=rf(r,t.type,t.pendingProps,Pi),r===null?i=!1:(t.stateNode=r,Ai=t,ji=uf(r.firstChild),Pi=!1,i=!0)),i||Ii(t)),_e(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,Gd(i,a)?r=null:s!==null&&Gd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=vo(e,t,xo,null,null,n),$f._currentValue=i),uc(e,t),ec(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=af(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Ii(t)),null;case 13:return vc(e,t,n);case 4:return he(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,n):ec(e,t,r,n),t.child;case 11:return tc(e,t,t.type,t.pendingProps,n);case 7:return ec(e,t,t.pendingProps,n),t.child;case 8:return ec(e,t,t.pendingProps.children,n),t.child;case 12:return ec(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),ec(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Qi(t),i=$i(i),r=r(i),t.flags|=1,ec(e,t,r,n),t.child;case 14:return nc(e,t,t.type,t.pendingProps,n);case 15:return rc(e,t,t.type,t.pendingProps,n);case 19:return wc(e,t,n);case 31:return lc(e,t,n);case 22:return ic(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(i=_a(),i===null&&(i=Rl,a=oa(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Na(t),Ki(t,aa,i)):((e.lanes&n)!==0&&(Pa(e,t),Va(t,null,null,n),Ba()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Ki(t,aa,r),r!==i.cache&&Yi(t,[aa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ki(t,aa,r))),ec(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function kc(e){e.flags|=4}function Ac(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw Sa=H,ba}else e.flags&=-16777217}function jc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Tu())e.flags|=8192;else throw Sa=H,ba}function Mc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,Xl|=t)}function Nc(e,t){if(!Mi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pc(t),null;case 1:return Pc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?kc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Pc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(kc(t),a===null?(Pc(t),Ac(t,i,null,r,n)):(Pc(t),jc(t,a))):a?a===e.memoizedState?(Pc(t),t.flags&=-16777217):(kc(t),Pc(t),jc(t,a)):(e=e.memoizedProps,e!==r&&kc(t),Pc(t),Ac(t,i,e,r,n)),null;case 27:if(M(t),n=pe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Pc(t),null}e=j.current,zi(t)?Li(t,e):(e=mf(i,r,n),t.stateNode=e,kc(t))}return Pc(t),null;case 5:if(M(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Pc(t),null}if(a=j.current,zi(t))Li(t,a);else{var s=Hd(pe.current);switch(a){case 1:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=s.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[L]=t,a[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;a:switch(Id(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=pe.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ai,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[L]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Ii(t,!0)}else e=Hd(e).createTextNode(r),e[L]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[L]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(o(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[L]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),i=!1}else i=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(to(t),t):(to(t),null)}return to(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mc(t,t.updateQueue),Pc(t),null);case 4:return ge(),e===null&&X(t.stateNode.containerInfo),Pc(t),null;case 10:return qi(t.type),Pc(t),null;case 19:if(ue(no),r=t.memoizedState,r===null)return Pc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Nc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ro(e),a!==null){for(t.flags|=128,Nc(r,!1),e=a.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return de(no,no.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>nu&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ro(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Mi)return Pc(t),null}else 2*ke()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=no.current,de(no,i?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return to(t),Ja(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ue(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),Pc(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Ic(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return M(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(o(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(no),null;case 4:return ge(),null;case 10:return qi(t.type),null;case 22:case 23:return to(t),Ja(),e!==null&&ue(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Lc(e,t){switch(Oi(t),t.tag){case 3:qi(aa),ge();break;case 26:case 27:case 5:M(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:ue(no);break;case 10:qi(t.type);break;case 22:case 23:to(t),Ja(),e!==null&&ue(ga);break;case 24:qi(aa)}}function Rc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){Ku(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Uc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Wc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Gc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Ku(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[L]=e,t[st]=n}catch(t){Ku(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Bd=cp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===a&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},cp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Hs(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tl=e;break}tl=t.return}}function rl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:vl(e,n),r&4&&Rc(5,n);break;case 1:if(vl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Hs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&Bc(n),r&512&&Hc(n,n.return);break;case 3:if(vl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ua(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Xc(n);case 26:case 5:vl(e,n),t===null&&r&4&&Wc(n),r&512&&Hc(n,n.return);break;case 12:vl(e,n);break;case 31:vl(e,n),r&4&&ll(e,n);break;case 13:vl(e,n),r&4&&ul(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),lf(e,n))));break;case 22:if(r=n.memoizedState!==null||Zc,!r){t=t!==null&&t.memoizedState!==null||Qc,i=Zc;var a=Qc;Zc=r,(Qc=t)&&!a?bl(e,n,(n.subtreeFlags&8772)!=0):vl(e,n),Zc=i,Qc=a}break;case 30:break;default:vl(e,n)}}function il(e){var t=e.alternate;t!==null&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var al=null,ol=!1;function sl(e,t,n){for(n=n.child;n!==null;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount==`function`)try{Re.onCommitFiberUnmount(Le,n)}catch{}switch(n.tag){case 26:Qc||Uc(n,t),sl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qc||Uc(n,t);var r=al,i=ol;$d(n.type)&&(al=n.stateNode,ol=!1),sl(e,t,n),hf(n.stateNode),al=r,ol=i;break;case 5:Qc||Uc(n,t);case 6:if(r=al,i=ol,al=null,sl(e,t,n),al=r,ol=i,al!==null)if(ol)try{(al.nodeType===9?al.body:al.nodeName===`HTML`?al.ownerDocument.body:al).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{al.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:al!==null&&(ol?(e=al,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):ef(al,n.stateNode));break;case 4:r=al,i=ol,al=n.stateNode.containerInfo,ol=!0,sl(e,t,n),al=r,ol=i;break;case 0:case 11:case 14:case 15:zc(2,n,t),Qc||zc(4,n,t),sl(e,t,n);break;case 1:Qc||(Uc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Vc(n,t,r)),sl(e,t,n);break;case 21:sl(e,t,n);break;case 22:Qc=(r=Qc)||n.memoizedState!==null,sl(e,t,n),Qc=r;break;default:sl(e,t,n)}}function ll(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Ku(t,t.return,e)}}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Ku(t,t.return,e)}}function dl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new el),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new el),t;default:throw Error(o(435,e.tag))}}function fl(e,t){var n=dl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function pl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){al=c.stateNode,ol=!1;break a}break;case 5:al=c.stateNode,ol=!1;break a;case 3:case 4:al=c.stateNode.containerInfo,ol=!0;break a}c=c.return}if(al===null)throw Error(o(160));cl(a,s,i),al=null,ol=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hl(t,e),t=t.sibling}var ml=null;function hl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pl(t,e),gl(e),r&4&&(zc(3,e,e.return),Rc(3,e),zc(5,e,e.return));break;case 1:pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),r&64&&Zc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=ml;if(pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[pt]||a[L]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Id(a,r,n),a[L]=e,yt(a),r=a;break a;case`link`:var s=Hf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}a=i.createElement(r),Id(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=Hf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}a=i.createElement(r),Id(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[L]=e,yt(a),r=a}e.stateNode=r}else Uf(i,e.type,e.stateNode);else e.stateNode=Lf(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&Gc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Uf(i,e.type,e.stateNode):Lf(i,r,e.memoizedProps))}break;case 27:pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),n!==null&&r&4&&Gc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pl(t,e),gl(e),r&512&&(Qc||n===null||Uc(n,n.return)),e.flags&32){i=e.stateNode;try{Gt(i,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Gc(e,i,n===null?i:n.memoizedProps)),r&1024&&($c=!0);break;case 6:if(pl(t,e),gl(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Vf=null,i=ml,ml=_f(t.containerInfo),pl(t,e),ml=i,gl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Ku(e,e.return,t)}$c&&($c=!1,_l(e));break;case 4:r=ml,ml=_f(e.stateNode.containerInfo),pl(t,e),gl(e),ml=r;break;case 12:pl(t,e),gl(e);break;case 31:pl(t,e),gl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fl(e,r)));break;case 13:pl(t,e),gl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Zc,d=Qc;if(Zc=u||i,Qc=d||l,pl(t,e),Qc=d,Zc=u,gl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Zc||Qc||yl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?tf(m,!0):tf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,fl(e,n))));break;case 19:pl(t,e),gl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,fl(e,r)));break;case 30:break;case 21:break;default:pl(t,e),gl(e)}}function gl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Kc(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;Yc(e,qc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Gt(a,``),n.flags&=-33),Yc(e,qc(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Jc(e,qc(e),s);break;default:throw Error(o(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _l(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_l(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rl(e,t.alternate,t),t=t.sibling}function yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:zc(4,t,t.return),yl(t);break;case 1:Uc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Vc(t,t.return,n),yl(t);break;case 27:hf(t.stateNode);case 26:case 5:Uc(t,t.return),yl(t);break;case 22:t.memoizedState===null&&yl(t);break;case 30:yl(t);break;default:yl(t)}e=e.sibling}}function bl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:bl(i,a,n),Rc(4,a);break;case 1:if(bl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ha(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&Bc(a),Hc(a,a.return);break;case 27:Xc(a);case 26:case 5:bl(i,a,n),n&&r===null&&o&4&&Wc(a),Hc(a,a.return);break;case 12:bl(i,a,n);break;case 31:bl(i,a,n),n&&o&4&&ll(i,a);break;case 13:bl(i,a,n),n&&o&4&&ul(i,a);break;case 22:a.memoizedState===null&&bl(i,a,n),Hc(a,a.return);break;case 30:break;default:bl(i,a,n)}t=t.sibling}}function xl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function Sl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Cl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wl(e,t,n,r),t=t.sibling}function wl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Cl(e,t,n,r),i&2048&&Rc(9,t);break;case 1:Cl(e,t,n,r);break;case 3:Cl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){Cl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else Cl(e,t,n,r);break;case 31:Cl(e,t,n,r);break;case 13:Cl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Cl(e,t,n,r):(a._visibility|=2,Tl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Cl(e,t,n,r):El(e,t),i&2048&&xl(o,t);break;case 24:Cl(e,t,n,r),i&2048&&Sl(t.alternate,t);break;default:Cl(e,t,n,r)}}function Tl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Tl(a,o,s,c,i),Rc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Tl(a,o,s,c,i)):u._visibility&2?Tl(a,o,s,c,i):El(a,o),i&&l&2048&&xl(o.alternate,o);break;case 24:Tl(a,o,s,c,i),i&&l&2048&&Sl(o.alternate,o);break;default:Tl(a,o,s,c,i)}t=t.sibling}}function El(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:El(n,r),i&2048&&xl(r.alternate,r);break;case 24:El(n,r),i&2048&&Sl(r.alternate,r);break;default:El(n,r)}t=t.sibling}}var Dl=8192;function Ol(e,t,n){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)kl(e,t,n),e=e.sibling}function kl(e,t,n){switch(e.tag){case 26:Ol(e,t,n),e.flags&Dl&&e.memoizedState!==null&&Kf(n,ml,e.memoizedState,e.memoizedProps);break;case 5:Ol(e,t,n);break;case 3:case 4:var r=ml;ml=_f(e.stateNode.containerInfo),Ol(e,t,n),ml=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Dl,Dl=16777216,Ol(e,t,n),Dl=r):Ol(e,t,n));break;default:Ol(e,t,n)}}function Al(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];tl=r,Pl(r,e)}Al(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ml(e),e=e.sibling}function Ml(e){switch(e.tag){case 0:case 11:case 15:jl(e),e.flags&2048&&zc(9,e,e.return);break;case 3:jl(e);break;case 12:jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Nl(e)):jl(e);break;default:jl(e)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];tl=r,Pl(r,e)}Al(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:zc(8,t,t.return),Nl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Nl(t));break;default:Nl(t)}e=e.sibling}}function Pl(e,t){for(;tl!==null;){var n=tl;switch(n.tag){case 0:case 11:case 15:zc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,tl=r;else a:for(n=e;tl!==null;){r=tl;var i=r.sibling,a=r.return;if(il(r),r===n){tl=null;break a}if(i!==null){i.return=a,tl=i;break a}tl=a}}}var Fl={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},Il=typeof WeakMap==`function`?WeakMap:Map,Ll=0,Rl=null,zl=null,Bl=0,Vl=0,Hl=null,q=!1,J=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Ll&2&&Bl!==0?Bl&-Bl:k.T===null?it():fd()}function hu(){if(Yl===0)if(!(Bl&536870912)||Mi){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),Yl=e}else Yl=536870912;return e=Ya.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Rl&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Bl,Yl,!1)),Ze(e,n),(!(Ll&2)||e!==Rl)&&(e===Rl&&(!(Ll&2)&&(ql|=n),Gl===4&&bu(e,Bl,Yl,!1)),ad(e))}function _u(e,t,n){if(Ll&6)throw Error(o(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||qe(e,t),i=r?ju(e,t):ku(e,t,!0),a=r;do{if(i===0){J&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!yu(n)){i=ku(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=a,ql|=a,i=4;break a}a=Ql,Ql=i,a!==null&&(Ql===null?Ql=a:Ql.push.apply(Ql,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!q);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=eu+300-ke(),10<i)){if(bu(r,t,Yl,!q),Ke(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Jd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,q,a,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,q,a,null,-0,0)}}break}while(1);ad(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},kl(t,a,d);var m=(a&62914560)===a?eu-ke():(a&4194048)===a?tu-ke():0;if(m=Jf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-I(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function xu(){return Ll&6?!0:(od(0,!1),!1)}function Su(){if(zl!==null){if(Vl===0)var e=zl.return;else e=zl,Gi=Wi=null,wo(e),wa=null,Ta=0,e=zl;for(;e!==null;)Lc(e.alternate,e),e=e.return;zl=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Rl=e,zl=n=si(e.current,null),Bl=t,Vl=0,Hl=null,q=!1,J=qe(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-I(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Zr(),n}function wu(e,t){ao=null,k.H=Ps,t===ya||t===xa?(t=Ca(),Vl=3):t===ba?(t=Ca(),Vl=4):Vl=t===Qs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,zl===null&&(Gl=1,Ks(e,hi(t,e.current)))}function Tu(){var e=Ya.current;return e===null?!0:(Bl&4194048)===Bl?Xa===null:(Bl&62914560)===Bl||Bl&536870912?e===Xa:!1}function Eu(){var e=k.H;return k.H=Ps,e===null?Ps:e}function Du(){var e=k.A;return k.A=Fl,e}function Ou(){Gl=4,q||(Bl&4194048)!==Bl&&Ya.current!==null||(J=!0),!(Kl&134217727)&&!(ql&134217727)||Rl===null||bu(Rl,Bl,Yl,!1)}function ku(e,t,n){var r=Ll;Ll|=2;var i=Eu(),a=Du();(Rl!==e||Bl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(Vl!==0&&zl!==null){var s=zl,c=Hl;switch(Vl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:Ya.current===null&&(t=!0);var l=Vl;if(Vl=0,Hl=null,Fu(e,s,c,l),n&&J){o=0;break a}break;default:l=Vl,Vl=0,Hl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,Ll=r,k.H=i,k.A=a,zl===null&&(Rl=null,Bl=0,Zr()),o}function Au(){for(;zl!==null;)Nu(zl)}function ju(e,t){var n=Ll;Ll|=2;var r=Eu(),i=Du();Rl!==e||Bl!==t?(ru=null,nu=ke()+500,Cu(e,t)):J=qe(e,t);a:do try{if(Vl!==0&&zl!==null){t=zl;var a=Hl;b:switch(Vl){case 1:Vl=0,Hl=null,Fu(e,t,a,1);break;case 2:case 9:if(U(a)){Vl=0,Hl=null,Pu(t);break}t=function(){Vl!==2&&Vl!==9||Rl!==e||(Vl=7),ad(e)},a.then(t,t);break a;case 3:Vl=7;break a;case 4:Vl=5;break a;case 7:U(a)?(Vl=0,Hl=null,Pu(t)):(Vl=0,Hl=null,Fu(e,t,a,7));break;case 5:var s=null;switch(zl.tag){case 26:s=zl.memoizedState;case 5:case 27:var c=zl;if(s?Gf(s):c.stateNode.complete){Vl=0,Hl=null;var l=c.sibling;if(l!==null)zl=l;else{var u=c.return;u===null?zl=null:(zl=u,Iu(u))}break b}}Vl=0,Hl=null,Fu(e,t,a,5);break;case 6:Vl=0,Hl=null,Fu(e,t,a,6);break;case 8:Su(),Gl=6;break a;default:throw Error(o(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Gi=Wi=null,k.H=r,k.A=i,Ll=n,zl===null?(Rl=null,Bl=0,Zr(),Gl):0}function Mu(){for(;zl!==null&&!Oe();)Nu(zl)}function Nu(e){var t=Oc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):zl=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=fc(n,t,t.pendingProps,t.type,void 0,Bl);break;case 11:t=fc(n,t,t.pendingProps,t.type.render,t.ref,Bl);break;case 5:wo(t);default:Lc(n,t),t=zl=ci(t,Wl),t=Oc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):zl=t}function Fu(e,t,n,r){Gi=Wi=null,wo(t),wa=null,Ta=0;var i=t.return;try{if(Zs(e,i,t,n,Bl)){Gl=1,Ks(e,hi(n,e.current)),zl=null;return}}catch(t){if(i!==null)throw zl=i,t;Gl=1,Ks(e,hi(n,e.current)),zl=null;return}t.flags&32768?(Mi||r===1?e=!0:J||Bl&536870912?e=!1:(q=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ya.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,q);return}e=t.return;var n=Fc(t.alternate,t,Wl);if(n!==null){zl=n;return}if(t=t.sibling,t!==null){zl=t;return}zl=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Ic(e.alternate,e);if(n!==null){n.flags&=32767,zl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){zl=e;return}zl=e=n}while(e!==null);Gl=6,zl=null}function Ru(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Ll&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=Xr,Qe(e,n,a,s,c,l),e===Rl&&(zl=Rl=null,Bl=0),su=t,ou=e,cu=n,lu=a,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Me,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=k.T,k.T=null,i=A.p,A.p=2,s=Ll,Ll|=4;try{nl(e,t,n)}finally{Ll=s,A.p=i,k.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=Ll;Ll|=4;try{hl(t,e);var a=Vd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!Bd,Vd=Bd=null}finally{Ll=i,A.p=r,k.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=Ll;Ll|=4;try{rl(e,t.alternate,t)}finally{Ll=i,A.p=r,k.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,N();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),rt(n),t=t.stateNode,Re&&typeof Re.onCommitFiberRoot==`function`)try{Re.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=k.T,i=A.p,A.p=2,k.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{k.T=t,A.p=i}}cu&3&&Uu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,od(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=rt(cu),r=k.T,i=A.p;try{A.p=32>n?32:n,k.T=null,n=uu,uu=null;var a=ou,s=cu;if(au=0,su=ou=null,cu=0,Ll&6)throw Error(o(331));var c=Ll;if(Ll|=4,Ml(a.current),wl(a,a.current,s,n),Ll=c,od(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,a)}catch{}return!0}finally{A.p=i,k.T=r,Hu(e,t)}}function Gu(e,t,n){t=hi(n,t),t=Js(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Ze(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=hi(n,e),n=Ys(2),r=Ia(t,n,2),r!==null&&(Xs(n,r,t,e),Ze(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Rl===e&&(Bl&n)===n&&(Gl===4||Gl===3&&(Bl&62914560)===Bl&&300>ke()-eu?!(Ll&2)&&Cu(e,0):Jl|=n,Xl===Bl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ye()),e=ei(e,t),e!==null&&(Ze(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return Ee(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,dd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-I(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Bl,a=Ke(r,r===Rl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,ud(r,a));r=r.next}while(n);rd=!1}}function Y(){sd()}function sd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=ke(),n=null,r=$u;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-I(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Rl,n=Bl,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),rt(n)){case 2:case 8:n=je;break;case 32:n=Me;break;case 268435456:n=Pe;break;default:n=Me}return r=ld.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Bl;return r=Ke(e,e===Rl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Zd(function(){Ll&6?Ee(P,Y):sd()})}function fd(){if(id===0){var e=ua;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),id=e}return id}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?md(i,o):new FormData(i);bs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),bs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Gr.length;gd++){var _d=Gr[gd];Kr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}}}}function xd(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function X(e){if(!e[Cd]){e[Cd]=!0,bt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!un||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ht(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}sn(function(){var r=a,i=tn(n),o=[];a:{var s=Wr.get(e);if(s!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=kn;break;case`focusout`:u=`blur`,l=kn;break;case`beforeblur`:case`afterblur`:l=kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Dn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=On;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=z;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=An;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=cn(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==en&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Dn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:_t(l),h=u==null?s:_t(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(o,s,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(s=r?_t(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=sr;else if(tr(s))if(cr)v=_r;else{v=hr;var y=mr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Yt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Vt(s,`number`,s.value)}switch(y=r?_t(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(o,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(o,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}
vendor: 4,216 bytes, lines 9-10
9else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,Zn=!0)),y=Dd(r,x),0<y.length&&(x=new B(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new B(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),hd(o,e,r,n,i)}bd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=cn(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=cn(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=cn(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,` 10`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Pd(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,a);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&Pd(e,t,`name`,i.name,i,null),Pd(e,t,`formEncType`,i.formEncType,i,null),Pd(e,t,`formMethod`,i.formMethod,i,null),Pd(e,t,`formTarget`,i.formTarget,i,null)):(Pd(e,t,`encType`,i.encType,i,null),Pd(e,t,`method`,i.method,i,null),Pd(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInl
10ine`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:xd(`beforetoggle`,e),xd(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Xt.get(n)||n,Ot(e,n,r))}}function Fd(e,t,n,r,i,a){switch(n){case`style`:Jt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[st]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ot(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:xd(`error`,e),xd(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Pd(e,t,a,s,n,null)}}i&&Pd(e,t,`srcSet`,n.srcSet,n,null),r&&Pd(e,t,`src`,n.src,n,null);return;case`input`:xd(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:Pd(e,t,r,d,n,null)}}Bt(e,a,c,l,u,s,i,!1);return;case`select`:for(i in xd(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Pd(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&Ht(e,!!r,n,!0):Ht(e,!!r,t,!1);return;case`textarea`:for(s in xd(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:Pd(e,t,s,c,n,null)}Wt(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Pd(e,t,l,r,n,null)}return;case`dialog`:xd(`beforetoggle`,e),xd(`toggle`,e),xd(`cancel`,e),xd(`close`,e);break;case`iframe`:case`object`:xd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)xd(vd[r],e);break;case`image`:xd(`error`,e),xd(`load`,e);break;case`details`:xd(`toggle`,e);break;case`embed`:case`source`:case`link`:xd(`error`,e),xd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Pd(e,t,u,r,n,null)}return;default:if(Yt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Pd(e,t,c,r,n,null))}function Ld(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Pd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(o(137,t));break;default:m!==f&&Pd(e,t,p,m,r,f)}}zt(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||Pd(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:s=a;default:a!==l&&Pd(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ht(e,!!n,n?[]:``,!1):Ht(e,!!n,t,!0)):Ht(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Pd(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&Pd(e,t,s,i,r,a)}Ut(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Pd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Pd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Pd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(o(137,t));break;default:Pd(e,t,u,p,r,m)}return;default:if(Yt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Pd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Pd(e,t,f,p,r,m)}function Rd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Rd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Pp(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;
vendor: 20,900 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var gf=new Map,Z=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=A.d;A.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=xu();return e||t}function bf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?Ss(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Z.has(i)||(Z.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}gf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Id(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!gf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Id(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=vt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);yt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=vt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=gf.get(i))&&Bf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=vt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Bf(e,t),a=n.createElement(`script`),yt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var i=(i=pe.current)?_f(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=vt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var a=vt(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(Mf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),a||Pf(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=vt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function jf(e){return`href="`+Rt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),yt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Rt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Id(r,`style`,i),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=jf(n.href);var a=e.querySelector(Mf(i));if(a)return t.state.loading|=4,t.instance=a,yt(a),a;r=Nf(n),(i=gf.get(i))&&zf(r,i),a=(e.ownerDocument||e).createElement(`link`),yt(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(a,`link`,r),t.state.loading|=4,Rf(a,n.precedence,e),t.instance=a;case`script`:return a=Ff(n.src),(i=e.querySelector(If(a)))?(t.instance=i,yt(i),i):(r=n,(i=gf.get(a))&&(r=m({},n),Bf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),yt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[L]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=gf.get(i))&&zf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function np(e){return e?(e=ri,e):ri}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(gu(n,e,t),La(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=nt(t);var n=ei(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,dp(e,t,n,r)}finally{A.p=a,k.T=i}}function up(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,dp(e,t,n,r)}finally{A.p=a,k.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-I(o);s.entanglements[1]|=c,o&=~c}ad(a),!(Ll&6)&&(nu=ke()+500,od(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=tn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=ht(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case P:return 2;case je:return 8;case Me:case Ne:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=ht(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,at(e.priority,function(){sp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,at(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);en=r,n.target.dispatchEvent(r),en=null}else return t=gt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,bs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;rp(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[ct]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=it();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.6`)throw Error(o(527,Rp,`19.2.6`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.6`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Le=Bp.inject(zp),Re=Bp}catch{}}e.createRoot=function(e,t){if(!s(e))throw Error(o(299));var n=!1,r=``,i=Us,a=Ws,c=Gs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,i,a,c,Fp),e[ct]=t.current,X(e),new Ip(t)}})),va=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_a()})),V=e(r(),1),ya=e(i(),1);function ba(e){return V.createElement(m,{flushSync:ya.flushSync,...e})}s();var xa=va(),H=x();D();var U=y(),W=ue(),G=ae(),Sa,Ca=M(j(Sa=class extends V.Component{constructor(e){super(e);let t,n=new URLSearchParams(window.location.search);if(window.location.href.includes(`/promotion/`)&&(t=window.location.href.split(`/`).includes(`promotion`)?window.location.href.split(`/`)[window.location.href.split(`/`).indexOf(`promotion`)+1]:null),n.has(`pr`)&&(t=n.get(`pr`)),t&&((0,W.setCookieValue)(`promotion-code`,t),!U.AppUI.userIsSignedIn)){let e=`promotion_${t}_tracked`;(0,W.getCookieValue)(e)||((0,W.setCookieValue)(e,!0),U.AppUI.promotionStore.incrementVisitorsCount({ids:{slug:t}},G.noop))}this.disposer=te(()=>{U.AppUI.authUserStore.hasShowData&&U.AppUI.routeToHome()})}componentWillUnmount(){this.disposer&&this.disposer()}render(){return null}})||Sa),K=ke(),wa=(e,t)=>n=>U.AppUI.siteIsDefault?(0,K.jsx)(e,{...n}):(0,K.jsx)(t,{...n});w();var Ta,Ea,Da=N.a` 11 width: ${e=>e.width}; 12 margin: ${e=>e.margin}; 13 .fa { 14 font-size: 20px; 15 } 16`,Oa=N.div` 17 height: 100%; 18 padding: 5px; 19 img { 20 width: auto; 21 height: 100%; 22 border-radius: 5px; 23 } 24`,ka=M(j(Ta=(Ea=class extends V.Component{render(){return _(this.props.podcastEpisode)&&_(this.props.podcastEpisode.interactivePlayerLink)?(0,K.jsx)(Da,{href:this.props.hasAccess?this.props.podcastEpisode.interactivePlayerLink:null,download:`Worksheet`,target:`_blank`,rel:`noopener noreferrer`,width:this.props.width,margin:this.props.margin,children:(0,K.jsxs)(I,{borderRadius:`10px`,width:`100%`,height:this.props.height,justifyContent:`space-between`,background:`#f1f3f5`,color:`#333`,padding:`0 20px 0 0`,scaleOnHover:1.03,scaleOnActive:.97,fontSize:`18px`,cursor:`pointer`,children:[(0,K.jsx)(Oa,{children:this.props.showImage&&_(this.props.podcastEpisode?.podcast?.imageUrl)&&(0,K.jsx)(`img`,{alt:``,src:this.props.podcastEpisode?.podcast?.imageUrl})}),(0,K.jsx)(`div`,{children:`Interactive Transcript`}),(0,K.jsx)(`i`,{className:`fa fa-external-link`})]})}):null}},Ea.defaultProps={width:`100%`,margin:`0`,height:`60px`,showImage:!0},Ea))||Ta);w();var Aa,ja,Ma=N.div` 25 position: relative; 26 min-height: fit-content; 27 height: 100%; 28 font-size: 16px; 29 width: 100%; 30 max-width: ${e=>e.width}; 31 aspect-ratio: ${e=>e.isYoutubeAllowed?`16 / 9`:``}; 32 display: flex; 33 flex-direction: column; 34 align-items: center; 35 background: white; 36 border-radius: ${e=>e.borderRadius}; 37 @media (max-width: 999px) { 38 order: -1; 39 width: 100%; 40 } 41 .icon-wrapper { 42 display: inline-block; 43 margin: 4px 4px 0 0; 44 } 45 .youtube-icon { 46 display: inline-block; 47 svg { 48 width: 24px; 49 fill: #c4302b; 50 } 51 } 52`,Na=M(j(Aa=(ja=class extends V.Component{render(){return(0,K.jsxs)(Ma,{width:this.props.width,borderRadius:this.props.borderRadius,className:`youtube-player`,isYoutubeAllowed:U.PrivacySettingsState.isYoutubeAllowed,children:[(0,K.jsx)(Me,{url:this.props.url,placeholderImageUrl:this.props.placeholderImageUrl,allowFloating:this.props.allowFloating,autoPlay:this.props.autoPlay}),_(this.props.podcastEpisode)&&this.props.hasAccess&&(0,K.jsx)(ka,{hasAccess:this.props.hasAccess,width:U.AppUI.layout.isMobile?`360px`:`540px`,margin:`10px 0 0 0`,height:`50px`,podcastEpisode:this.props.podcastEpisode})]})}},ja.defaultProps={width:`540px`},ja))||Aa),Pa,Fa,Ia=N.div` 53 position: relative; 54 width: 100%; 55 aspect-ratio: 16 / 9; 56 border: none; 57 border-radius: ${e=>e.borderRadius}; 58 overflow: hidden; 59 cursor: pointer; 60 padding: 0; 61 transition: opacity 0.2s linear; 62 background: #000; 63 64 &:hover { 65 opacity: 0.9; 66 } 67`,La=N.img` 68 width: 100%; 69 height: 100%; 70 object-fit: cover; 71 display: block; 72`,Ra=N.div` 73 width: 100%; 74 height: 100%; 75 background: #222; 76`,za=N.img` 77 position: absolute; 78 top: 50%; 79 left: 50%; 80 transform: translate(-50%, -50%); 81 width: 68px; 82 z-index: 1; 83`,Ba=N.div` 84 position: absolute; 85 right: 8px; 86 bottom: 8px; 87 background: rgba(0, 0, 0, 0.65); 88 color: #fff; 89 border-radius: 4px; 90 padding: 2px 4px; 91 font-size: 12px; 92 font-weight: 700; 93 line-height: 16px; 94 z-index: 1; 95`;function Va(e){let t=parseInt(e,10);return Number.isNaN(t)||t<0?null:`${Math.floor(t/60)}:${(t%60).toString().padStart(2,`0`)}`}var Ha=class extends V.Component{render(){let e=Va(this.props.durationSeconds);return(0,K.jsxs)(Ia,{as:this.props.wrapperElement,type:this.props.wrapperElement===`button`?`button`:void 0,onClick:this.props.onClick,title:this.props.title,"aria-label":this.props.title,borderRadius:this.props.borderRadius,children:[this.props.showPlayButton&&(0,K.jsx)(za,{src:`/images/youtube_play_button.svg`,alt:``}),(0,W.isPresent)(this.props.thumbnailUrl)?(0,K.jsx)(La,{src:this.props.thumbnailUrl,alt:this.props.thumbnailAlt||`Video thumbnail`,className:this.props.imageClassName}):(0,K.jsx)(Ra,{}),(0,W.isPresent)(e)&&(0,K.jsx)(Ba,{children:e})]})}};Ha.defaultProps={borderRadius:`10px`,showPlayButton:!0,title:`Play video`,wrapperElement:`div`};var Ua=j(Pa=(Fa=class extends V.Component{constructor(...e){super(...e),this.state={showPlayer:!1}
95,this.handleThumbnailClick=()=>{this.setState({showPlayer:!0}),this.props.onPlay&&this.props.onPlay()}}componentDidUpdate(e){e.url!==this.props.url&&this.state.showPlayer&&this.setState({showPlayer:!1})}render(){return this.state.showPlayer?(0,K.jsx)(Na,{allowFloating:this.props.allowFloating,hasAccess:this.props.hasAccess,url:this.props.url,placeholderImageUrl:this.props.placeholderImageUrl,podcastEpisode:this.props.podcastEpisode,autoPlay:!0,width:this.props.width,borderRadius:this.props.borderRadius}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Ha,{wrapperElement:`button`,onClick:this.handleThumbnailClick,title:this.props.title,borderRadius:this.props.borderRadius,thumbnailUrl:this.props.thumbnailUrl,thumbnailAlt:this.props.thumbnailAlt,durationSeconds:this.props.durationSeconds}),(0,W.isPresent)(this.props.podcastEpisode)&&this.props.hasAccess&&(0,K.jsx)(ka,{hasAccess:this.props.hasAccess,width:U.AppUI.layout.isMobile?`360px`:`540px`,margin:`10px 0 0 0`,height:`50px`,podcastEpisode:this.props.podcastEpisode})]})}},Fa.defaultProps={borderRadius:`10px`,title:`Play video`,width:`540px`},Fa))||Pa;function Wa(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function Ga(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function Ka(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function qa(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].disabled)return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}function Ja(e,t,n){return Ga(e,n)===Ga(t,n)}function Ya({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a=`rtl`,orientation:o}){return s=>{n?.(s);let c=Array.from(Ga(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>Ja(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=qa(l,c,r),d=Ka(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),!c[0].disabled&&c[0].focus();break;case`End`:{s.stopPropagation(),s.preventDefault();let e=c.length-1;!c[e].disabled&&c[e].focus();break}}}}function Xa(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function Za(e){let t=(0,V.useRef)(void 0);return(0,V.useEffect)(()=>{t.current=e},[e]),t.current}function Qa(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function $a(e){return e.current?e.current.scrollHeight:`auto`}function eo({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={height:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,V.useEffectEvent)(()=>r?.()),c=(0,V.useRef)(null),[l,u]=(0,V.useState)(i?{}:o),[d,f]=(0,V.useState)(i?`entered`:`exited`),p=e=>{(0,ya.flushSync)(()=>u(e))},m=e=>{p(t=>({...t,...e}))},h=n=>{let r=e??Qa(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}};Dt(()=>{e!==0&&s(),i?window.requestAnimationFrame(()=>{(0,ya.flushSync)(()=>f(`entering`)),m({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{let e=$a(c);m({...h(e),height:e})})}):window.requestAnimationFrame(()=>{(0,ya.flushSync)(()=>f(`exiting`));let e=$a(c);m({...h(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>m({height:0,overflow:`hidden`}))})},[i]);let g=e=>{if(!(e.target!==c.current||e.propertyName!==`height`))if(i){let e=$a(c);e===l.height?p({}):m({height:e}),f(`entered`),n?.()}else l.height===0&&(p(o),f(`exited`),n?.())};return{state:d,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:jt(c,e?.ref),onTransitionEnd:g,style:{boxSizing:`border-box`,...e?.style,...l}})}}function to(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function no(e){return e.current?e.current.scrollWidth:`auto`}function ro({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let o={width:0,overflow:`hidden`,...a?{}:{display:`none`}},s=(0,V.useEffectEvent)(()=>r?.()),c=(0,V.useRef)(null),[l,u]=(0,V.useState)(i?{}:o),[d,f]=(0,V.useState)(i?`entered`:`exited`),p=e=>{(0,ya.flushSync)(()=>u(e))},m=e=>{p(t=>({...t,...e}))},h=n=>{let r=e??to(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}};Dt(()=>{e!==0&&s(),i?window.requestAnimationFrame(()=>{(0,ya.flushSync)(()=>f(`entering`)),m({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{let e=no(c);m({...h(e),width:e})})}):window.requestAnimationFrame(()=>{(0,ya.flushSync)(()=>f(`exiting`));let e=no(c);m({...h(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>m({width:0,overflow:`hidden`}))})},[i]);let g=e=>{if(!(e.target!==c.current||e.propertyName!==`width`))if(i){let e=no(c);e===l.width?p({}
95):m({width:e}),f(`entered`),n?.()}else l.width===0&&(p(o),f(`exited`),n?.())};return{state:d,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:jt(c,e?.ref),onTransitionEnd:g,style:{boxSizing:`border-box`,...e?.style,...l}})}}function io(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t<r.length;t+=1){let n=r[t];if(n.shadowRoot){let t=io(e,n.shadowRoot);if(t)return t}}return null}function ao(e,t=document){let n=[],r=t.querySelectorAll(e);n.push(...Array.from(r));let i=t.querySelectorAll(`*`);for(let t=0;t<i.length;t+=1){let r=i[t];if(r.shadowRoot){let t=ao(e,r.shadowRoot);n.push(...t)}}return n}function oo(e){if(!e)return document;let t=e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:document}function so(e){return e===`auto`||e===`dark`||e===`light`}function co({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return so(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&so(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function lo(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, white ${t*100}%)`;let{r:n,g:r,b:i,a}=ze(e),o=e=>Math.round(e+(255-e)*t);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${a})`}function uo({color:e,theme:t,autoContrast:n}){return(typeof n==`boolean`?n:t.autoContrast)&&Be({color:e||t.primaryColor,theme:t}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function fo(e,t){return uo({color:e.colors[e.primaryColor][Ge(e,t)],theme:e,autoContrast:null})}function po(e,t){return typeof e==`boolean`?e:t.autoContrast}function mo(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function ho({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,V.useRef)(null),[a,o]=(0,V.useState)(()=>e.get(t)),s=r||a,c=(0,V.useCallback)(t=>{r||(mo(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,V.useCallback)(()=>{o(t),mo(t,n),e.clear()},[e.clear,t]);return(0,V.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),kt(()=>{mo(e.get(t),n)},[]),(0,V.useEffect)(()=>{if(r)return mo(r,n),()=>{};r===void 0&&mo(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&mo(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}function go(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function _o(e,t){let n=t?[t]:[`:root`,`:host`],r=go(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=go(e.dark),o=go(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function vo({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Ge(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:lt(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Ge(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:ct(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:ct(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:lt(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function yo(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function bo(e,t,n){Ue(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var xo=e=>{let t=Ge(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Ve(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-we
95ight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":fo(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":fo(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};bo(r.variables,e.breakpoints,`breakpoint`),bo(r.variables,e.spacing,`spacing`),bo(r.variables,e.fontSizes,`font-size`),bo(r.variables,e.lineHeights,`line-height`),bo(r.variables,e.shadows,`shadow`),bo(r.variables,e.radius,`radius`),bo(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),Ue(e.colors).forEach(t=>{let n=e.colors[t];if(yo(n)){Object.assign(r.light,vo({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,vo({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0}));return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,vo({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,vo({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return Ue(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function So({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Ge(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:lt(e.colors[t][n],.1),[`--mantine-color-${r}-light-hover`]:lt(e.colors[t][n],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:lt(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Ge(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:lt(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:lt(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:lt(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function Co(e,t,n){Ue(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var wo=e=>{let t=Ge(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Ve(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-we
95ight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":fo(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":fo(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};Co(r.variables,e.breakpoints,`breakpoint`),Co(r.variables,e.spacing,`spacing`),Co(r.variables,e.fontSizes,`font-size`),Co(r.variables,e.lineHeights,`line-height`),Co(r.variables,e.shadows,`shadow`),Co(r.variables,e.radius,`radius`),Co(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),Ue(e.colors).forEach(t=>{let n=e.colors[t];if(yo(n)){Object.assign(r.light,So({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,So({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0}));return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,So({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,So({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return Ue(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function To(){let e=nt(),t=Ye(),n=Ue(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=ft(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:Ke(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:Ke(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Eo({theme:e,generator:t}){let n=xo(e),r=t?.(e);return r?He(n,r):n}var Do=xo(et);function Oo(e){let t={variables:{},light:{},dark:{}};return Ue(e.variables).forEach(n=>{Do.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Ue(e.light).forEach(n=>{Do.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}
95),Ue(e.dark).forEach(n=>{Do.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function ko(e){return _o({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function Ao({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=nt(),r=Ye(),i=Eo({theme:n,generator:Je()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=_o(a?Oo(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:ko(e)}`}}):null}Ao.displayName=`@mantine/CssVariables`;function jo({respectReducedMotion:e,getRootElement:t}){kt(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function Mo({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=co(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=ho({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return jo({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)($e,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(at,{theme:e,children:[o&&(0,K.jsx)(Ao,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(To,{}),t]})})}Mo.displayName=`@mantine/core/MantineProvider`;function No({children:e,theme:t,env:n}){return(0,K.jsx)($e,{value:{colorScheme:`auto`,setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:`mantine`,cssVariablesSelector:`:root`,withStaticClasses:!1,headless:!0,env:n},children:(0,K.jsx)(at,{theme:t,children:e})})}No.displayName=`@mantine/core/HeadlessMantineProvider`;function Po(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Po(n,t)}),{}):typeof e==`function`?e(t):e??{}}var Fo={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`},Io=rt(e=>{let{children:t,expanded:n,transitionDuration:r,transitionTimingFunction:i,style:a,onTransitionEnd:o,onTransitionStart:s,animateOpacity:c,keepMounted:l,ref:u,orientation:d,...f}=Qe(`Collapse`,Fo,e),p=ut(),m=nt(),h=Et(),g=m.respectReducedMotion&&h?0:r,_=(d===`horizontal`?ro:eo)({expanded:n,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:o,onTransitionStart:s,keepMounted:!1});if(g===0)return l===!0&&p!==`test`?(0,K.jsx)(V.Activity,{mode:n?`visible`:`hidden`,children:(0,K.jsx)(L,{...f,children:t})}):n?(0,K.jsx)(L,{...f,children:t}):null;let v=_.state===`exited`,y;return y=l===!1?v?null:t:l===!0?(0,K.jsx)(V.Activity,{mode:v?`hidden`:`visible`,children:t}):t,(0,K.jsx)(L,{...f,..._.getCollapseProps({style:{opacity:n||!c?1:0,transition:c?`opacity ${g}ms ${i}`:`none`,...Po(a,m)},ref:u}),children:y})});Io.displayName=`@mantine/core/Collapse`;var Lo={duration:100,transition:`fade`};function Ro(e,t){return{...Lo,...t,...e}}var zo={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Bo={orientation:`horizontal`},Vo=St((e,{borderWidth:t})=>({group:{"--ai-border-width":Ve(t)}})),Ho=rt(e=>{let t=Qe(`ActionIconGroup`,Bo,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=Qe(`ActionIconGroup`,Bo,e);return(0,K.jsx)(L,{...Ze({name:`ActionIconGroup`,props:t,classes:zo,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:Vo,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});Ho.classes=zo,Ho.varsResolver=Vo,Ho.displayName=`@mantine/core/ActionIconGroup`;var Uo=St((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":bt(o,`section-height`),"--section-padding-x":bt(o,`section-padding-x`),"--section-fz":yt(
95o),"--section-radius":t===void 0?void 0:vt(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Wo=rt(e=>{let t=Qe(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,K.jsx)(L,{...Ze({name:`ActionIconGroupSection`,props:t,classes:zo,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Uo,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});Wo.classes=zo,Wo.varsResolver=Uo,Wo.displayName=`@mantine/core/ActionIconGroupSection`;var Go=St((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":bt(t,`ai-size`),"--ai-radius":n===void 0?void 0:vt(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),Ko=Ut(e=>{let t=Qe(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=Ze({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:zo,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:Go});return(0,K.jsxs)(sn,{...C(`root`,{active:!_&&!c&&!v}),...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,K.jsx)(Ot,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,K.jsx)(L,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(ln,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,K.jsx)(L,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});Ko.classes=zo,Ko.varsResolver=Go,Ko.displayName=`@mantine/core/ActionIcon`,Ko.Group=Ho,Ko.GroupSection=Wo;var[qo,Jo]=ht(`Accordion component was not found in the tree`);function Yo({style:e,size:t=16,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:Ve(t),height:Ve(t),display:`block`},...n,children:(0,K.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Yo.displayName=`@mantine/core/AccordionChevron`;var[Xo,Zo]=ht(`Accordion.Item component was not found in the tree`),Qo={root:`m_9bdbb667`,panel:`m_df78851f`,content:`m_4ba554d4`,itemTitle:`m_8fa820a0`,control:`m_4ba585b8`,"control--default":`m_6939a5e9`,"control--contained":`m_4271d21b`,label:`m_df3ffa0f`,chevron:`m_3f35ae96`,icon:`m_9bd771fe`,item:`m_9bd7b098`,"item--default":`m_fe19b709`,"item--contained":`m_1f921b3b`,"item--filled":`m_2cdf939a`,"item--separated":`m_9f59b069`},$o=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,chevron:o,icon:s,onClick:c,onKeyDown:l,children:u,disabled:d,mod:f,...p}=Qe(`AccordionControl`,null,e),{value:m}=Zo(),h=Jo(),g=h.isItemActive(m),_=typeof h.order==`number`,v=`h${h.order}`,y=(0,K.jsxs)(sn,{...h.getStyles(`control`,{className:n,classNames:t,style:r,styles:i,variant:h.variant}),unstyled:h.unstyled,mod:[`accordion-control`,{active:g,"chevron-position":h.chevronPosition,disabled:d},f],onClick:e=>{c?.(e),h.onChange(m)},type:`button`,disabled:d,"aria-expanded":g,"aria-controls":h.getRegionId(m),id:h.getControlId(m),onKeyDown:Ya({siblingSelector:`[data-accordion-control]`,parentSelector:`[data-accordion]`,activateOnFocus:!1,loop:h.loop,orientation:`vertical`,onKeyDown:l}),...p,children:[(0,K.jsx)(L,{component:`span`,mod:{rotate:!h.disableChevronRotation&&g,position:h.chevronPosition},...h.getStyles(`chevron`,{classNames:t,styles:i}),children:o||h.chevron}),(0,K.jsx)(`span`,{...h.getStyles(`label`,{classNames:t,styles:i}),children:u}),s&&(0,K.jsx)(L,{component:`span`,mod:{"chevron-position":h.chevronPosition},...h.getStyles(`icon`,{classNames:t,styles:i}),children:s})]});return _?(0,K.jsx)(v,{...h.getStyles(`itemTitle`,{classNames:t,styles:i}),children:y}):y});$o.displayName=`@mantine/core/AccordionControl`,$o.classes=Qo;var es=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,mod:s,...c}=Qe(`AccordionItem`,null,e),l=Jo();return(0,K.jsx)(Xo,{value:{value:o},children:(0,K.jsx)(L,{mod:[{active:l.isItemActive(o)},s],...l.getStyles(`item`,{className:n,classNames:t,styles:i,style:r,variant:l.variant}),...c})})});es.displayName=`@mantine/core/AccordionItem`,es.classes=Qo;var ts=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,keepMounted:s,...c}=Qe(`AccordionPanel`,null,e),{value:l}=Zo(),u=Jo();return(0,K.jsx)(Io,{...u.getStyles(`panel`,{className:n,classNames:t,style:r,styles:i}),expanded:u.isItemActive(l),transitionDuration:u.transitionDuration??200,role:`region`,id:u.getRegionId(l),"aria-labelledby":u.getControlId(l),keepMounted:s??u.keepMounted,...c,children:(0,K.jsx)(`div`,{...u.getStyles(`content`,{classNames:t,styles:i}),children:o})})});ts.displayName=`@mantine/core/AccordionPanel`,ts.classes=Qo;var ns={multiple:!1,disableChevronRotation:!1,chevronPosition:`right`,variant:`default`,chevronSize:`auto`,chevronIconSize:16},rs=St((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:Ve(n),"--accordion-radius":r===void 0?void 0:vt(r)}})),is=ot(e=>{let t=Qe(`Accordion`,ns,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,multiple:l,value:u,defaultValue:d,onChange:f,id:p,loop:m,transitionDuration:h,disableChevronRotation:g,chevronPosition:_,chevronSize:v,order:y,
95chevron:b,variant:x,radius:S,chevronIconSize:C,attributes:ee,keepMounted:w,...T}=t,E=Ct(p),[D,O]=Nt({value:u,defaultValue:d,finalValue:l?[]:null,onChange:f}),te=e=>Array.isArray(D)?D.includes(e):e===D,ne=e=>{O(Array.isArray(D)?D.includes(e)?D.filter(t=>t!==e):[...D,e]:e===D?null:e)},re=Ze({name:`Accordion`,classes:Qo,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:ee,vars:s,varsResolver:rs});return(0,K.jsx)(qo,{value:{isItemActive:te,onChange:ne,getControlId:Wa(`${E}-control`,`Accordion.Item component was rendered with invalid value or without value`),getRegionId:Wa(`${E}-panel`,`Accordion.Item component was rendered with invalid value or without value`),chevron:b===null?null:b||(0,K.jsx)(Yo,{size:C}),transitionDuration:h,disableChevronRotation:g,chevronPosition:_,order:y,loop:m,getStyles:re,variant:x,unstyled:o,keepMounted:w},children:(0,K.jsx)(L,{...re(`root`),id:E,...T,variant:x,"data-accordion":!0,children:c})})});is.classes=Qo,is.varsResolver=rs,is.displayName=`@mantine/core/Accordion`,is.Item=es,is.Panel=ts,is.Control=$o,is.Chevron=Yo;function as(e){return e.reduce((e,t)=>`group`in t?{...e,...as(t.items)}:(e[`${t.value}`]=t,e),{})}var[os,ss]=ht(`Combobox component was not found in tree`);function cs({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,K.jsx)(Ht.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}cs.displayName=`@mantine/core/ComboboxClearButton`;var ls=rt(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=Qe(`ComboboxDropdown`,null,e),s=ss();return(0,K.jsx)(_t.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});ls.classes=pn,ls.displayName=`@mantine/core/ComboboxDropdown`;var us={refProp:`ref`},ds=rt(e=>{let{children:t,refProp:n,ref:r}=Qe(`ComboboxDropdownTarget`,us,e);if(ss(),!mt(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,K.jsx)(_t.Target,{ref:r,refProp:n,children:t})});ds.displayName=`@mantine/core/ComboboxDropdownTarget`;var fs=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Qe(`ComboboxEmpty`,null,e);return(0,K.jsx)(L,{...ss().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});fs.classes=pn,fs.displayName=`@mantine/core/ComboboxEmpty`;function ps({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=ss(),[c,l]=(0,V.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var ms={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},hs=rt(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=Qe(`ComboboxEventsTarget`,ms,e),u=Rt(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, str
95ings, numbers and other primitive values are not supported`);let d=ss();return(0,V.cloneElement)(u,{...ps({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:Mt(c,d.store.targetRef,It(u))})});hs.displayName=`@mantine/core/ComboboxEventsTarget`;var gs=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Qe(`ComboboxFooter`,null,e);return(0,K.jsx)(L,{...ss().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});gs.classes=pn,gs.displayName=`@mantine/core/ComboboxFooter`;var _s=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=Qe(`ComboboxGroup`,null,e),u=ss(),d=Ct(c);return(0,K.jsxs)(L,{role:`group`,"aria-labelledby":s?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[s&&(0,K.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});_s.classes=pn,_s.displayName=`@mantine/core/ComboboxGroup`;var vs=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Qe(`ComboboxHeader`,null,e);return(0,K.jsx)(L,{...ss().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});vs.classes=pn,vs.displayName=`@mantine/core/ComboboxHeader`;function ys({value:e,valuesDivider:t=`,`,...n}){return(0,K.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}ys.displayName=`@mantine/core/ComboboxHiddenInput`;var bs=rt(e=>{let t=Qe(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,g=ss(),_=(0,V.useId)(),v=c||_;return(0,K.jsx)(L,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...h,id:v,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),d?.(e)}})});bs.classes=pn,bs.displayName=`@mantine/core/ComboboxOption`;var xs=rt(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=Qe(`ComboboxOptions`,null,e),l=ss(),u=Ct(a);return(0,V.useEffect)(()=>{l.store.setListId(u)},[u]),(0,K.jsx)(L,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});xs.classes=pn,xs.displayName=`@mantine/core/ComboboxOptions`;var Ss={withAriaAttributes:!0,withKeyboardNavigation:!0},Cs=rt(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=Qe(`ComboboxSearch`,Ss,e),f=ss(),p=f.getStyles(`search`),m=ps({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,K.jsx)(Ht,{ref:Mt(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});Cs.classes=pn,Cs.displayName=`@mantine/core/ComboboxSearch`;var ws={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ts=rt(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=Qe(`ComboboxTarget`,ws,e),u=Rt(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=ss(),f=(0,V.cloneElement)(u,{...ps({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,K.jsx)(_t.Target,{refProp:n,ref:Mt(c,d.store.targetRef),children:f})});Ts.displayName=`@mantine/core/ComboboxTarget`;function Es(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function Ds(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function Os(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function ks({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Nt({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,V.useRef)(null),u=(0,V.useRef)(-1),d=(0,V.useRef)(null),f=(0,V.useRef)(null),p=(0,V.useRef)(-1),m=(0,V.useRef)(-1),h=(0,V.useRef)(-1),g=(0,V.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),_=(0,V.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,V.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,V.useCallback)(()=>{let e=oo(f.current),t=io(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,V.useCallback)(e=>
95{let t=oo(f.current),n=io(`#${l.current}`,t),r=n?ao(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,V.useCallback)(()=>{let e=oo(f.current),t=io(`#${l.current} [data-combobox-active]`,e);return b(t?ao(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t):0)},[b]),S=(0,V.useCallback)(()=>{let e=oo(f.current),t=ao(`#${l.current} [data-combobox-option]`,e);return b(Ds(u.current,t,a))},[b,a]),C=(0,V.useCallback)(()=>{let e=oo(f.current),t=ao(`#${l.current} [data-combobox-option]`,e);return b(Es(u.current,t,a))},[b,a]),ee=(0,V.useCallback)(()=>{let e=oo(f.current);return b(Os(ao(`#${l.current} [data-combobox-option]`,e)))},[b]),w=(0,V.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=oo(f.current),r=ao(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=oo(f.current),r=ao(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),T=(0,V.useCallback)(()=>{u.current=-1,y()},[y]),E=(0,V.useCallback)(()=>{let e=oo(f.current);(ao(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),D=(0,V.useCallback)(e=>{l.current=e},[]),O=(0,V.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),te=(0,V.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),ne=(0,V.useCallback)(()=>u.current,[]);return(0,V.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:ne,selectOption:b,selectFirstOption:ee,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:T,updateSelectedOptionIndex:w,listId:l.current,setListId:D,clickSelectedOption:E,searchRef:d,focusSearchInput:O,targetRef:f,focusTarget:te}}var As={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},js=St((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":yt(t),"--combobox-option-padding":bt(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:Ve(n),"--combobox-option-fz":yt(t),"--combobox-option-padding":bt(t,`combobox-option-padding`)}})),Ms=e=>{let t=Qe(`Combobox`,As,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,...g}=t,_=ks(),v=o||_,y=Ze({name:p||`Combobox`,classes:pn,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:js}),b=()=>{l?.(),v.closeDropdown()};return(0,K.jsx)(os,{value:{getStyles:y,store:v,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m},children:(0,K.jsx)(_t,{opened:v.dropdownOpened,preventPositionChangeWhenVisible:!1,...g,onChange:e=>!e&&b(),withRoles:!1,unstyled:i,children:a})})};Ms.extend=e=>e,Ms.classes=pn,Ms.varsResolver=js,Ms.displayName=`@mantine/core/Combobox`,Ms.Target=Ts,Ms.Dropdown=ls,Ms.Options=xs,Ms.Option=bs,Ms.Search=Cs,Ms.Empty=fs,Ms.Chevron=hn,Ms.Footer=gs,Ms.Header=vs,Ms.EventsTarget=hs,Ms.DropdownTarget=ds,Ms.Group=_s,Ms.ClearButton=cs,Ms.HiddenInput=ys;function Ns({children:e,role:t}){let n=(0,V.use)(Bt);return n?(0,K.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,K.jsx)(K.Fragment,{children:e})}function Ps({size:e,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:Ve(e),height:Ve(e),...t},"aria-hidden":!0,...n,children:(0,K.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Fs({indeterminate:e,...t}){return e?(0,K.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,K.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,K.jsx)(Ps,{...t})}var Is={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,de
95scription:`m_328f68c0`,error:`m_8e8a99cc`},Ls=Is;function Rs({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=Ze({name:e,props:t,className:n,style:_,classes:Is,classNames:r,styles:i,unstyled:a,attributes:b}),C=c?`${l}-description`:void 0,ee=d&&typeof d!=`boolean`?`${l}-error`:void 0;return(0,K.jsx)(L,{...S(`root`),__vars:{"--label-fz":yt(f),"--label-lh":bt(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,K.jsxs)(L,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,K.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,K.jsx)(L,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,K.jsx)(Ht.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,K.jsx)(Ht.Error,{id:ee,size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}Rs.displayName=`@mantine/core/InlineInput`;function zs(e){return`group`in e}function Bs({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;zs(o)&&i.push({group:o.group,items:Bs({options:o.items,search:t,limit:n-i.length})}),zs(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function Vs(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function Hs(e,t=new Set){if(Array.isArray(e))for(let n of e)if(zs(n))Hs(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function Us(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ws({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!zs(e)){let s=Us(r,e.value),c=t&&(s?(0,K.jsx)(Ps,{className:pn.optionsDropdownCheckIcon}):n?(0,K.jsx)(`div`,{className:pn.optionsDropdownCheckPlaceholder}):null),l=(0,K.jsxs)(K.Fragment,{children:[i===`left`&&c,(0,K.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,K.jsx)(Ms.Option,{value:e.value,disabled:e.disabled,className:tt({[pn.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,K.jsx)(Ws,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,K.jsx)(Ms.Group,{label:e.group,children:s})}function Gs({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,withScrollArea:s=!0,filterOptions:c=!0,withCheckIcon:l=!1,withAlignedLabels:u=!1,value:d,checkIconPosition:f,nothingFoundMessage:p,unstyled:m,labelId:h,renderOption:g,scrollAreaProps:_,"aria-label":v}){Hs(e);let y=typeof i==`string`?(r||Bs)({options:e,search:c?i:``,limit:a??1/0}):e,b=Vs(y),x=y.map(e=>(0,K.jsx)(Ws,{data:e,withCheckIcon:l,withAlignedLabels:u,value:d,checkIconPosition:f,unstyled:m,renderOption:g},zs(e)?e.group:`${e.value}`));return(0,K.jsx)(Ms.Dropdown,{hidden:t||n&&b,"data-composed":!0,children:(0,K.jsxs)(Ms.Options,{labelledBy:h,"aria-label":v,children:[s?(0,K.jsx)(wt.Autosize,{mah:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,..._,children:x}):x,b&&p&&(0,K.jsx)(Ms.Empty,{children:p})]})})}var Ks={root:`m_3eebeb36`,label:`m_9e365f20`},qs={orientation:`horizontal`},Js=St((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?qe(t,e):void 0,"--divider-border-style":n,"--divider-size":bt(r,`divider-size`)}})),Ys=rt(e=>{let t=Qe(`Divider`,qs,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=Ze({name:`Divider`,classes:Ks,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Js});return(0,K.jsx)(L,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,...h(`root`),...m,children:u&&(0,K.jsx)(L,{component:`span`,mod:{position:d},...h(`label`),children:u})})});Ys.classes=Ks,Ys.varsResolver=Js,Ys.displayName=`@mantine/core/Divider`;var[Xs,Zs]=ht(`Grid component was not found in tree`),Qs=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},$s=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:Qs(e,t),ec=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},tc=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function nc({span:e,order:t,offset:n,align:r,selector:i}){let a=nt(),o=Zs(),s=o.breakpoints||a.breakpoints,c=pt(e),l=c===void 0?12:c,u=We({"--col-order":pt(t)?.toString(),"--col-flex-grow":ec(l,o.grow),"--col-flex-basis":Qs(l,o.columns),"--col-width":l===`content`?`auto`:void 0,"--col-max-width":$s(l,o.columns,o.grow),"--col-offset":tc(pt(n),o.columns),"--col-align-self":pt(r)}),d=Ue(s).reduce((i,a)=>(i[a]||(i[a]={}
95),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=ec(e[a],o.grow),i[a][`--col-flex-basis`]=Qs(e[a],o.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=$s(e[a],o.columns,o.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=tc(n[a],o.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),f=dt(Ue(d),s).filter(e=>Ue(d[e.value]).length>0).map(e=>({query:o.type===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:d[e.value]}));return(0,K.jsx)(st,{styles:u,media:o.type===`container`?void 0:f,container:o.type===`container`?f:void 0,selector:i})}var rc={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},ic={span:12},ac=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=Qe(`GridCol`,ic,e),d=Zs(),f=it();return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(nc,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,K.jsx)(L,{...d.getStyles(`col`,{className:tt(n,f),style:r,classNames:t,styles:i}),...u})]})});ac.classes=rc,ac.displayName=`@mantine/core/GridCol`;function oc({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=nt(),s=i||o.breakpoints,c=We({"--grid-gap":xt(pt(e)),"--grid-row-gap":xt(pt(t)),"--grid-column-gap":xt(pt(n))}),l=Ue(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=xt(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=xt(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=xt(n[i])),r),{}),u=dt(Ue(l),s).filter(e=>Ue(l[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:l[e.value]}));return(0,K.jsx)(st,{styles:c,media:a===`container`?void 0:u,container:a===`container`?u:void 0,selector:r})}var sc={gap:`md`,columns:12},cc=St((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),lc=rt(e=>{let t=Qe(`Grid`,sc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=Ze({name:`Grid`,classes:rc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:cc}),x=it();return _===`container`&&g?(0,K.jsxs)(Xs,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,K.jsx)(oc,{selector:`.${x}`,...t}),(0,K.jsx)(`div`,{...b(`container`),children:(0,K.jsx)(L,{...b(`root`,{className:x}),...y,children:(0,K.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,K.jsxs)(Xs,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,K.jsx)(oc,{selector:`.${x}`,...t}),(0,K.jsx)(L,{...b(`root`,{className:x}),...y,children:(0,K.jsx)(`div`,{...b(`inner`),children:h})})]})});lc.classes=rc,lc.varsResolver=cc,lc.displayName=`@mantine/core/Grid`,lc.Col=ac;var uc=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],dc={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};
95function fc(e){Object.keys(dc).forEach(t=>{e.style.setProperty(t,dc[t],`important`)})}function pc(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of uc)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var mc=null;function hc(e,t,n=1,r=1/0){mc||(mc=document.createElement(`textarea`),mc.setAttribute(`tabindex`,`-1`),mc.setAttribute(`aria-hidden`,`true`),mc.setAttribute(`aria-label`,`autosize measurement`),fc(mc)),mc.parentNode===null&&document.body.appendChild(mc);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{mc.style[e]=o[e]}),fc(mc),mc.value=t;let c=s===`border-box`?mc.scrollHeight+a:mc.scrollHeight-i;mc.value=t,c=s===`border-box`?mc.scrollHeight+a:mc.scrollHeight-i,mc.value=`x`;let l=mc.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function gc({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,V.useRef)(null),s=Mt(o,r),c=(0,V.useRef)(0),l=()=>{let n=o.current;if(!n)return;let r=pc(n);if(!r)return;let[i]=hc(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},u=e=>{a||l(),n?.(e)};return(0,V.useLayoutEffect)(l),(0,V.useEffect)(()=>{let e=()=>l();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,V.useEffect)(()=>{let e=()=>l();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,V.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&l()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,K.jsx)(`textarea`,{...i,onChange:u,ref:s})}var _c=rt(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,...o}=Qe([`Input`,`InputWrapper`,`Textarea`],null,e),s=t&&Pt()!==`test`,c=s?{maxRows:n,minRows:r}:{};return(0,K.jsx)(dn,{component:s?gc:`textarea`,...o,__staticSelector:i||`Textarea`,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...c})});_c.classes=dn.classes,_c.displayName=`@mantine/core/Textarea`;function vc(e){return`group`in e}function yc({data:e}){if(vc(e)){let t=e.items.map(e=>(0,K.jsx)(yc,{data:e},e.value));return(0,K.jsx)(`optgroup`,{label:e.group,children:t})}let{value:t,label:n,...r}=e;return(0,K.jsx)(`option`,{value:e.value,...r,children:e.label})}yc.displayName=`@mantine/core/NativeSelectOption`;var bc={size:`sm`,rightSectionPointerEvents:`none`},xc=rt(e=>{let{data:t,children:n,size:r,error:i,rightSection:a,unstyled:o,...s}=Qe([`Input`,`InputWrapper`,`NativeSelect`],bc,e),c=mn(t).map((e,t)=>(0,K.jsx)(yc,{data:e},t));return(0,K.jsx)(dn,{component:`select`,...s,__staticSelector:`NativeSelect`,size:r,pointer:!0,error:i,unstyled:o,rightSection:a||(0,K.jsx)(hn,{size:r,error:i,unstyled:o}),children:n||c})});xc.classes=dn.classes,xc.displayName=`@mantine/core/NativeSelect`;var[Sc,Cc]=ht(`Progress.Root component was not found in tree`),wc={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},Tc=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Qe(`ProgressLabel`,null,e);return(0,K.jsx)(L,{...Cc().getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});Tc.classes=wc,Tc.displayName=`@mantine/core/ProgressLabel`;var Ec=St((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":bt(t,`progress-size`),"--progress-radius":n===void 0?void 0:vt(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),Dc=rt(e=>{let t=Qe(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=Ze({name:`Progress`,classes:wc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Ec});return(0,K.jsx)(Sc,{value:{getStyles:m,autoContrast:c},children:(0,K.jsx)(L,{mod:[{orientation:u},f],...m(`root`),...p})})});Dc.classes=wc,Dc.varsResolver=Ec,Dc.displayName=`@mantine/core/ProgressRoot`;var Oc={withAria:!0},kc=rt(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=Qe(`ProgressSection`,Oc,e),p=Cc(),m=nt(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,K.jsx)(L,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":qe(c,m),"--progress-label-color":po(p.autoContrast,m)?uo({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});kc.classes=wc,kc.displayName=`@mantine/core/ProgressSection`;var Ac=rt(e=>{let t=Qe(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=Vt({classNames:r,styles:i,props:t});return(0,K.jsx)(Dc,{classNames:d,styles:f,vars:a,...u,children:(0,K.jsx)(kc,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});Ac.classes=wc,Ac.displayName=`@mantine/core/Progress`,Ac.Section=kc,Ac.Root=Dc,Ac.Label=Tc;var[jc,Mc]=ht(`Rating was not found in tree`);function Nc(e){let{width:t,height:n,style:r,...i}=e;
95return(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{width:t,height:n,...r},...i,children:(0,K.jsx)(`path`,{d:`M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z`})})}Nc.displayName=`@mantine/core/StarIcon`;function Pc({type:e}){return(0,K.jsx)(Nc,{...Mc().getStyles(`starSymbol`),"data-filled":e===`full`||void 0})}Pc.displayName=`@mantine/core/StarSymbol`;function Fc({getSymbolLabel:e,emptyIcon:t,fullIcon:n,full:r,active:i,value:a,readOnly:o,fractionValue:s,color:c,id:l,onBlur:u,onChange:d,onInputChange:f,style:p,...m}){let h=Mc(),g=typeof n==`function`?n(a):n,_=typeof t==`function`?t(a):t,{dir:v}=an();return(0,K.jsxs)(K.Fragment,{children:[!o&&(0,K.jsx)(`input`,{...h.getStyles(`input`),onKeyDown:e=>(e.key===` `||e.key===`Enter`)&&d(a),id:l,type:`radio`,"data-active":i||void 0,"aria-label":e?.(a),value:a,onBlur:u,onChange:f,...m}),(0,K.jsx)(L,{component:o?`div`:`label`,...h.getStyles(`label`),"data-read-only":o||void 0,htmlFor:l,onClick:o?void 0:()=>d(a),__vars:{"--rating-item-z-index":(s===1?void 0:i?2:0)?.toString()},children:(0,K.jsx)(L,{...h.getStyles(`symbolBody`),__vars:{"--rating-symbol-clip-path":s===1?void 0:v===`ltr`?`inset(0 ${i?100-s*100:100}% 0 0)`:`inset(0 0 0 ${i?100-s*100:100}% )`},children:r?g||(0,K.jsx)(Pc,{type:`full`}):_||(0,K.jsx)(Pc,{type:`empty`})})})]})}Fc.displayName=`@mantine/core/RatingItem`;var Ic={root:`m_f8d312f2`,symbolGroup:`m_61734bb7`,starSymbol:`m_5662a89a`,input:`m_211007ba`,label:`m_21342ee4`,symbolBody:`m_fae05d6a`};function Lc(e,t){let n=Math.round(e/t)*t,r=`${t}`.split(`.`)[1]?.length||0;return Number(n.toFixed(r))}var Rc={size:`sm`,getSymbolLabel:e=>`${e}`,count:5,fractions:1,color:`yellow`},zc=St((e,{size:t,color:n})=>({root:{"--rating-size":bt(t,`rating-size`),"--rating-color":qe(n,e)}})),Bc=rt(e=>{let t=Qe(`Rating`,Rc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,name:c,id:l,value:u,defaultValue:d,onChange:f,fractions:p,count:m,onMouseEnter:h,readOnly:g,allowClear:_,onMouseMove:v,onHover:y,onMouseLeave:b,onTouchStart:x,onTouchEnd:S,size:C,variant:ee,getSymbolLabel:w,color:T,emptySymbol:E,fullSymbol:D,highlightSelectedOnly:O,attributes:te,ref:ne,...re}=t,ie=Ze({name:`Rating`,classes:Ic,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:te,vars:s,varsResolver:zc}),{dir:ae}=an(),k=Ct(c),A=Ct(l),oe=(0,V.useRef)(null),[se,ce]=Nt({value:u,defaultValue:d,finalValue:0,onChange:f}),[le,ue]=(0,V.useState)(-1),[de,j]=(0,V.useState)(!0),fe=Math.floor(p),pe=Math.floor(m),me=1/fe,he=Lc(se,me),ge=le===-1?he:le,_e=e=>{if(!oe.current)return 0;let{left:t,right:n,width:r}=oe.current.getBoundingClientRect(),i=r/pe;return Xa(Lc((ae===`rtl`?n-e:e-t)/i+me/2,me),me,pe)},M=e=>{h?.(e),!g&&j(!1)},ve=e=>{if(v?.(e),g)return;let t=_e(e.clientX);ue(t),t!==le&&y?.(t)},ye=e=>{b?.(e),!g&&(ue(-1),j(!0),le!==-1&&y?.(-1))},be=e=>{let{touches:t}=e;if(t.length===1){if(!g){let e=t[0];ce(_e(e.clientX))}x?.(e)}},xe=e=>{e.preventDefault(),S?.(e)},Se=()=>de&&ue(-1),Ce=e=>{g||ue(typeof e==`number`?e:parseFloat(e.target.value))},we=e=>{if(!g){let t=typeof e==`number`?e:parseFloat(e.target.value);ce(_&&t===he?0:t)}},Te=Array(pe).fill(0).map((e,t)=>{let n=t+1,r=Array.from(Array(t===0?fe+1:fe));return(0,K.jsx)(`div`,{"data-active":!g&&Math.ceil(le)===n||void 0,...ie(`symbolGroup`),children:r.map((e,r)=>{let i=me*(t===0?r:r+1),a=Lc(n-1+i,me);return(0,K.jsx)(Fc,{getSymbolLabel:w,emptyIcon:E,fullIcon:D,full:O?a===ge:a<=ge,active:a===ge,checked:a===he,readOnly:g,fractionValue:i,value:a,name:k,onChange:we,onBlur:Se,onInputChange:Ce,id:`${A}-${t}-${r}`},`${n}-${a}`)})},n)});return(0,K.jsx)(jc,{value:{getStyles:ie},children:(0,K.jsx)(L,{ref:Mt(oe,ne),...ie(`root`),onMouseMove:ve,onMouseEnter:M,onMouseLeave:ye,onTouchStart:be,onTouchEnd:xe,variant:ee,size:C,id:A,...re,children:Te})})});Bc.classes=Ic,Bc.varsResolver=zc,Bc.displayName=`@mantine/core/Rating`;function Vc({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,V.useState)(n),a=(0,V.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Gt({placement:t,middleware:[Wt({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,V.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,V.useEffect)(()=>
95{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Kt(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var Hc={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},Uc={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:gt(`popover`)},Wc=St((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:vt(t),"--tooltip-bg":n?qe(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),Gc=rt(e=>{let t=Qe(`TooltipFloating`,Uc,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...ee}=t,w=nt(),T=Ze({name:`TooltipFloating`,props:t,classes:Hc,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:Wc}),{handleMouseMove:E,x:D,y:O,opened:te,boundaryRef:ne,floating:re,setOpened:ie}=Vc({offset:p,position:m,defaultOpened:v}),ae=Rt(n);if(!ae)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let k=Mt(ne,It(ae),C),A=ae.props,oe=e=>{A.onMouseEnter?.(e),E(e),ie(!0)},se=e=>{A.onMouseLeave?.(e),ie(!1)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(zt,{...x,withinPortal:i,children:(0,K.jsx)(L,{...ee,...T(`tooltip`,{style:{...Po(a,w),zIndex:g,display:!_&&te?`block`:`none`,top:(O&&Math.round(O))??``,left:(D&&Math.round(D))??``}}),variant:y,ref:re,mod:{multiline:h},children:f})}),(0,V.cloneElement)(ae,{...A,[r]:k,onMouseEnter:oe,onMouseLeave:se})]})});Gc.classes=Hc,Gc.varsResolver=Wc,Gc.displayName=`@mantine/core/TooltipFloating`;var Kc=(0,V.createContext)({withinGroup:!1}),qc={openDelay:0,closeDelay:0};function Jc(e){let{openDelay:t,closeDelay:n,children:r}=Qe(`TooltipGroup`,qc,e);return(0,K.jsx)(Kc,{value:{withinGroup:!0},children:(0,K.jsx)(nn,{delay:{open:t,close:n},children:r})})}Jc.displayName=`@mantine/core/TooltipGroup`,Jc.extend=e=>e;function Yc(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Xc(e){let t=Yc(e.middlewares),n=[Xt(e.offset)];return t.shift&&n.push(Wt(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Yt():Yt(t.flip)),n.push(Jt({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Qt():Qt(t.inline)):e.inline&&n.push(Qt()),n}function Zc(e){let[t,n]=(0,V.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,V.use)(Kc).withinGroup,a=Ct(),o=(0,V.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=Gt({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:Xc(e),whileElementsMounted:on}),{delay:m,currentId:h,setCurrentId:g}=en(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=qt([tn(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),$t(l,{enabled:e.events?.focus,visibleOnly:!0}),rn(l,{role:`tooltip`}),Zt(l,{enabled:e.opened===void 0})]);Dt(()=>{e.onPositionChange?.(d)},[d]);let y=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:y,opened:r,placement:d}}var Qc={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:gt(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},$c=St((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:vt(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),el=rt(e=>{let t=Qe(`Tooltip`,Qc,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:ee,transitionProps:w,multiline:T,events:E,zIndex:D,disabled:O,onClick:te,onMouseEnter:ne,onMouseLeave:re,inline:ie,variant:ae,keepMounted:k,vars:A,portalProps:oe,mod:se,floatingStrategy:ce,middlewares:le,autoContrast:ue,attributes:de,target:j,ref:fe,...pe}=t,{dir:me}
95=an(),he=(0,V.useRef)(null),ge=Zc({position:Lt(me,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:E,arrowRef:he,arrowOffset:x,offset:typeof ee==`number`?ee+(y?b/2:0):ee,inline:ie,strategy:ce,middlewares:le});(0,V.useEffect)(()=>{let e=j instanceof HTMLElement?j:typeof j==`string`?document.querySelector(j):j?.current||null;e&&ge.reference(e)},[j,ge]);let _e=Ze({name:`Tooltip`,props:t,classes:Hc,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:de,rootSelector:`tooltip`,vars:A,varsResolver:$c}),M=Rt(n);if(!j&&!M)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ve=_e(`tooltip`);if(j){let e=Ro(w,{duration:100,transition:`fade`});return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(zt,{...oe,withinPortal:d,children:(0,K.jsx)(Ot,{...e,keepMounted:k,mounted:!O&&!!ge.opened,duration:ge.isGroupPhase?10:e.duration,children:e=>(0,K.jsxs)(L,{...pe,"data-fixed":ce===`fixed`||void 0,variant:ae,mod:[{multiline:T},se],...ve,...ge.getFloatingProps({ref:ge.floating,className:ve.className,style:{...ve.style,...e,zIndex:D,top:ge.y??0,left:ge.x??0}}),children:[a,(0,K.jsx)(Ft,{ref:he,arrowX:ge.arrowX,arrowY:ge.arrowY,visible:y,position:ge.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,..._e(`arrow`)})]})})})})}let ye=M.props,be=Mt(ge.reference,It(M),fe),xe=Ro(w,{duration:100,transition:`fade`});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(zt,{...oe,withinPortal:d,children:(0,K.jsx)(Ot,{...xe,keepMounted:k,mounted:!O&&!!ge.opened,duration:ge.isGroupPhase?10:xe.duration,children:e=>(0,K.jsxs)(L,{...pe,"data-fixed":ce===`fixed`||void 0,variant:ae,mod:[{multiline:T},se],...ge.getFloatingProps({ref:ge.floating,className:_e(`tooltip`).className,style:{..._e(`tooltip`).style,...e,zIndex:D,top:ge.y??0,left:ge.x??0}}),children:[a,(0,K.jsx)(Ft,{ref:he,arrowX:ge.arrowX,arrowY:ge.arrowY,visible:y,position:ge.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,..._e(`arrow`)})]})})}),(0,V.cloneElement)(M,ge.getReferenceProps({onClick:te,onMouseEnter:ne,onMouseLeave:re,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...ye,className:tt(v,ye.className),[i]:be}))]})});el.classes=Hc,el.varsResolver=$c,el.displayName=`@mantine/core/Tooltip`,el.Floating=Gc,el.Group=Jc;var tl={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},nl=ot(e=>{let t=Qe([`Input`,`InputWrapper`,`Select`],tl,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:ee,withScrollArea:w,maxDropdownHeight:T,size:E,searchable:D,rightSection:O,checkIconPosition:te,withCheckIcon:ne,withAlignedLabels:re,nothingFoundMessage:ie,name:ae,form:k,searchValue:A,defaultSearchValue:oe,onSearchChange:se,allowDeselect:ce,error:le,rightSectionPointerEvents:ue,id:de,clearable:j,clearSectionMode:fe,clearButtonProps:pe,hiddenInputProps:me,renderOption:he,onClear:ge,autoComplete:_e,scrollAreaProps:M,__defaultRightSection:ve,__clearSection:ye,__clearable:be,chevronColor:xe,autoSelectOnBlur:Se,openOnFocus:Ce,attributes:we,...Te}=t,Ee=(0,V.useMemo)(()=>mn(m),[m]),De=(0,V.useRef)({}),Oe=(0,V.useMemo)(()=>as(Ee),[Ee]),N=Ct(de),[ke,Ae,P]=Nt({value:h,defaultValue:g,finalValue:null,onChange:p}),je=ke==null?void 0:`${ke}`in Oe?Oe[`${ke}`]:De.current[`${ke}`],Me=Za(je),[Ne,Pe,Fe]=Nt({value:A,defaultValue:oe,finalValue:je?je.label:``,onChange:se}),Ie=ks({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ie.selectFirstOption():Ie.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ie.resetSelectedOption,0)}}),Le=e=>{Pe(e),Ie.resetSelectedOption()},{resolvedClassNames:Re,resolvedStyles:F}=Vt({props:t,styles:r,classNames:n});(0,V.useEffect)(()=>{_&&Ie.selectFirstOption()},[_,Ne]),(0,V.useEffect)(()=>{h===null&&Le(``),h!=null&&je&&(Me?.value!==je.value||Me?.label!==je.label)&&Le(je.label)},[h,je]),(0,V.useEffect)(()=>{!P&&!Fe&&Le(ke==null?``:`${ke}`in Oe?Oe[`${ke}`]?.label:De.current[`${ke}`]?.label||``)},[Oe,ke]),(0,V.useEffect)(()=>{ke&&`${ke}`in Oe&&(De.current[`${ke}`]=Oe[`${ke}`])},[Oe,ke]);let I=(0,K.jsx)(Ms.ClearButton,{...pe,onClear:()=>{Ae(null,null),Le(``),ge?.()}}),ze=j&&!!ke&&!S&&!x;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(Ms,{store:Ie,__staticSelector:`
95Select`,classNames:Re,styles:F,unstyled:i,readOnly:x,size:E,attributes:we,keepMounted:Se,onOptionSubmit:e=>{y?.(e);let t=ce&&`${Oe[e].value}`==`${ke}`?null:Oe[e],n=t?t.value:null;n!==ke&&Ae(n,t),!P&&Le(n==null?``:t?.label||``),Ie.closeDropdown()},...b,children:[(0,K.jsx)(Ms.Target,{targetType:D?`input`:`button`,autoComplete:_e,withExpandedAttribute:!0,children:(0,K.jsx)(dn,{id:N,__defaultRightSection:(0,K.jsx)(Ms.Chevron,{size:E,error:le,unstyled:i,color:xe}),__clearSection:I,__clearable:ze,__clearSectionMode:fe,rightSection:O,rightSectionPointerEvents:ue||`none`,...Te,size:E,__staticSelector:`Select`,disabled:S,readOnly:x||!D,value:Ne,onChange:e=>{Le(e.currentTarget.value),Ie.openDropdown(),_&&Ie.selectFirstOption()},onFocus:e=>{Ce&&D&&Ie.openDropdown(),u?.(e)},onBlur:e=>{Se&&Ie.clickSelectedOption(),D&&Ie.closeDropdown();let t=ke!=null&&(`${ke}`in Oe?Oe[`${ke}`]:De.current[`${ke}`]);Le(t&&t.label||``),d?.(e)},onClick:e=>{D?Ie.openDropdown():Ie.toggleDropdown(),f?.(e)},classNames:Re,styles:F,unstyled:i,pointer:!D,error:le,attributes:we})}),(0,K.jsx)(Gs,{data:Ee,hidden:x||S,filter:C,search:Ne,limit:ee,hiddenWhenEmpty:!ie,withScrollArea:w,maxDropdownHeight:T,filterOptions:!!D&&je?.label!==Ne,value:ke,checkIconPosition:te,withCheckIcon:ne,withAlignedLabels:re,nothingFoundMessage:ie,unstyled:i,labelId:Te.label?`${N}-label`:void 0,"aria-label":Te.label?void 0:Te[`aria-label`],renderOption:he,scrollAreaProps:M})]}),(0,K.jsx)(Ms.HiddenInput,{value:ke,name:ae,form:k,disabled:S,...me})]})});nl.classes={...dn.classes,...Ms.classes},nl.displayName=`@mantine/core/Select`;function rl(e){if(e!==void 0)return typeof e==`number`?Ve(e):e}function il({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=nt(),s=t===void 0?e:t,c=r!==void 0,l=We({"--sg-spacing-x":xt(pt(e)),"--sg-spacing-y":xt(pt(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":rl(r)}:{"--sg-cols":pt(n)?.toString()}}),u=Ue(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=xt(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=xt(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,K.jsx)(st,{styles:l,media:dt(Ue(u),o.breakpoints).filter(e=>Ue(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]})),selector:a})}function al(e){return typeof e==`object`&&e?Ue(e):[]}function ol(e){return e.sort((e,t)=>ft(e)-ft(t))}function sl({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return ol(Array.from(new Set([...al(e),...al(t),...r===void 0?al(n):[]])))}function cl({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=We({"--sg-spacing-x":xt(pt(e)),"--sg-spacing-y":xt(pt(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":rl(r)}:{"--sg-cols":pt(n)?.toString()}}),l=sl({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=xt(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=xt(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,K.jsx)(st,{styles:c,container:l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]})),selector:a})}var ll={container:`m_925c2d2c`,root:`m_2415a157`},ul={cols:1,spacing:`md`,type:`media`},dl=rt(e=>{let t=Qe(`SimpleGrid`,ul,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=Ze({name:`SimpleGrid`,classes:ll,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=it(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(cl,{...t,selector:`.${v}`}),(0,K.jsx)(`div`,{..._(`container`),children:(0,K.jsx)(L,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(il,{...t,selector:`.${v}`}),(0,K.jsx)(L,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});dl.classes=ll,dl.displayName=`@mantine/core/SimpleGrid`;var fl={root:`m_18320242`,"skeleton-fade":`m_299c329c`},pl={visible:!0,animate:!0},ml=St((e,{width:t,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":Ve(n),"--skeleton-width":Ve(i?n:t),"
95--skeleton-radius":i?`1000px`:r===void 0?void 0:vt(r)}})),hl=rt(e=>{let t=Qe(`Skeleton`,pl,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,width:c,height:l,circle:u,visible:d,radius:f,animate:p,mod:m,attributes:h,...g}=t;return(0,K.jsx)(L,{...Ze({name:`Skeleton`,classes:fl,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:ml})(`root`),mod:[{visible:d,animate:p},m],...g})});hl.classes=fl,hl.varsResolver=ml,hl.displayName=`@mantine/core/Skeleton`;var gl=(0,V.createContext)(null),_l={hiddenInputValuesSeparator:`,`},vl=ot((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=Qe(`SwitchGroup`,_l,e),[m,h]=Nt({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,K.jsx)(gl,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,K.jsxs)(Ht.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,K.jsx)(Ns,{role:`group`,children:o}),(0,K.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));vl.classes=Ht.Wrapper.classes,vl.displayName=`@mantine/core/SwitchGroup`;var yl={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},bl={labelPosition:`right`,withThumbIndicator:!0},xl=St((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:vt(t),"--switch-height":bt(r,`switch-height`),"--switch-width":bt(r,`switch-width`),"--switch-thumb-size":bt(r,`switch-thumb-size`),"--switch-label-font-size":bt(r,`switch-label-font-size`),"--switch-track-label-padding":bt(r,`switch-track-label-padding`),"--switch-color":n?qe(n,e):void 0}})),Sl=rt(e=>{let t=Qe(`Switch`,bl,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,offLabel:u,onLabel:d,id:f,size:p,radius:m,wrapperProps:h,thumbIcon:g,checked:_,defaultChecked:v,onChange:y,labelPosition:b,description:x,error:S,disabled:C,variant:ee,rootRef:w,mod:T,withThumbIndicator:E,attributes:D,...O}=t,te=(0,V.use)(gl),ne=p||te?.size,re=Ze({name:`Switch`,props:t,classes:yl,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:xl}),{styleProps:ie,rest:ae}=Xe(O),k=Ct(f),A=[x?`${k}-description`:void 0,S&&typeof S!=`boolean`?`${k}-error`:void 0,ae[`aria-describedby`]].filter(Boolean).join(` `)||void 0,oe={checked:te?.value.includes(ae.value)??_,onChange:e=>{te?.onChange(e),y?.(e)}},se=C||te?.isDisabled?.(ae.value),[ce,le]=Nt({value:oe.checked??_,defaultValue:v,f
95inalValue:!1});return(0,K.jsxs)(Rs,{...re(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:k,size:ne,labelPosition:b,label:l,description:x,error:S,disabled:se,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:o,"data-checked":oe.checked,variant:ee,ref:w,mod:T,attributes:D,inert:ae.inert,...ie,...h,children:[(0,K.jsx)(`input`,{...ae,...oe,disabled:se,checked:ce,"data-checked":oe.checked,onChange:e=>{oe.onChange?.(e),le(e.currentTarget.checked)},id:k,type:`checkbox`,role:`switch`,inert:ae.inert,"aria-describedby":A,...re(`input`)}),(0,K.jsxs)(L,{"aria-hidden":`true`,component:`span`,mod:{error:S,"label-position":b,"without-labels":!d&&!u},...re(`track`),children:[(0,K.jsx)(L,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":E&&!g},...re(`thumb`),children:g}),(0,K.jsx)(`span`,{...re(`trackLabel`),children:ce?d:u})]})]})});Sl.classes={...yl,...Ls},Sl.varsResolver=xl,Sl.displayName=`@mantine/core/Switch`,Sl.Group=vl;var[Cl,wl]=ht(`Table component was not found in the tree`),Tl={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function El(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function Dl(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=rt(r=>{let i=Qe(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=wl();return(0,K.jsx)(L,{component:e,...El(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=Tl,r}var Ol=Dl(`th`,{columnBorder:!0}),kl=Dl(`td`,{columnBorder:!0}),Al=Dl(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),jl=Dl(`thead`,{stickyHeader:!0}),Ml=Dl(`tbody`),Nl=Dl(`tfoot`),Pl=Dl(`caption`,{captionSide:!0}),Fl={type:`scrollarea`},Il=St((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":Ve(t),"--table-max-height":Ve(n),"--table-overflow":r===`native`?`auto`:void 0}})),Ll=rt(e=>{let t=Qe(`TableScrollContainer`,Fl,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=Ze({name:`TableScrollContainer`,classes:Tl,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Il,rootSelector:`scrollContainer`});return(0,K.jsx)(L,{component:d===`scrollarea`?wt:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});Ll.classes=Tl,Ll.varsResolver=Il,Ll.displayName=`@mantine/core/TableScrollContainer`;function Rl({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(Pl,{children:e.caption}),e.head&&(0,K.jsx)(jl,{children:(0,K.jsx)(Al,{children:e.head.map((e,t)=>(0,K.jsx)(Ol,{children:e},t))})}),e.body&&(0,K.jsx)(Ml,{children:e.body.map((e,t)=>(0,K.jsx)(Al,{children:e.map((e,t)=>(0,K.jsx)(kl,{children:e},t))},t))}),e.foot&&(0,K.jsx)(Nl,{children:(0,K.jsx)(Al,{children:e.foot.map((e,t)=>(0,K.jsx)(Ol,{children:e},t))})})]})}Rl.displayName=`@mantine/core/TableDataRenderer`;var zl={withRowBorders:!0,verticalSpacing:7},Bl=St((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":xt(r),"--table-vertical-spacing":xt(i),"--table-border-color":a?qe(a,e):void 0,"--table-striped-color":c&&o?qe(o,e):void 0,"--table-highlight-on-hover-color":l&&s?qe(s,e):void 0,"--table-sticky-header-offset":d?Ve(u):void 0}})),Vl=rt(e=>{let t=Qe(`Table`,zl,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:ee,tabularNums:w,attributes:T,...E}=t,D=Ze({name:`Table`,props:t,className:r,style:i,classes:Tl,classNames:n,styles:a,unstyled:o,attributes:T,rootSelector:`table`,vars:s,varsResolver:Bl});return(0,K.jsx)(Cl,{value:{getStyles:D,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(L,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":w},ee],...D(`table`),...E,children:x||!!b&&(0,K.jsx)(Rl,{data:b})})})});Vl.classes=Tl,Vl.varsResolver=Bl,Vl.displayName=`@mantine/core/Table`,Vl.Td=kl,Vl.Th=Ol,Vl.Tr=Al,Vl.Thead=jl,Vl.Tbody=Ml,Vl.Tfoot=Nl,Vl.Caption=Pl,Vl.ScrollC
95ontainer=Ll,Vl.DataRenderer=Rl;var Hl=e(ce()),q=de(),J=ge();function Ul(e={}){let t=U.AppUI.layout.viewportWidth,n=U.AppUI.layout.viewportHeight;return{...e,view_type:U.AppUI.layout.isMobile?`mobile`:`desktop`,viewport_width:t,viewport_height:n,viewport_proportion:t&&n?Number((t/n).toFixed(3)):null}}var Wl,Gl,Kl=N.div` 96 display: flex; 97 justify-content: center; 98 flex-direction: column; 99 align-items: center; 100 margin: ${e=>e.margin}; 101 .fa { 102 margin-right: 10px; 103 } 104`,ql=M(j(Wl=(Gl=class extends V.Component{constructor(...e){super(...e),this.onClick=()=>{U.AppUI.siteIsDefault||U.AppUI.createEvent(`memrev - click no access button`,Ul({source:`no_access_button`,button_text:this.message,reason:this.props.reason||`become_a_member`,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,destination_route:this.destinationRouteName})),U.ExerciseUI.routeStore.routeToNamed(this.destinationRouteName)}}get message(){if(this.props.message)return this.props.message;switch(this.props.reason){case`create_free_account`:return`Create Free Account to Try`;case`migrate`:return`Switch Payment to our Platform`;case`upgrade`:return`Upgrade to Unlock`;default:return`Become a Member to Unlock`}}get destinationRouteName(){switch(this.props.reason){case`create_free_account`:return`onboarding.register`;case`migrate`:return`settings.billing`;default:return`memberships.index`}}render(){return(0,K.jsxs)(Kl,{margin:this.props.margin,children:[(0,K.jsxs)(I,{background:U.ExerciseUI.site.headerButtonColor,backgroundOnActive:U.ExerciseUI.site.accentColor,backgroundOnHover:U.ExerciseUI.site.transparentAccentColor,color:`white`,onClick:this.onClick,fontSize:this.props.fontSize,height:this.props.height,width:this.props.width,scaleOnHover:1.02,scaleOnActive:1,borderRadius:this.props.borderRadius,children:[this.props.reason===`upgrade`&&(0,K.jsx)(`i`,{className:`fa fa-lock`}),![`create_free_account`,`upgrade`].includes(this.props.reason)&&(0,K.jsx)(J.CrownIcon,{margin:`0 5px 0 0`}),this.message]}),this.props.subText&&(0,K.jsx)(R,{fontSize:14,lineHeight:16,fontWeight:`bold`,color:`#777`,center:!0,margin:`20px 0 0 0`,maxWidth:`600px`,wrap:`balance`,children:this.props.subText}),!U.AppUI.userIsSignedInAndNotGuest&&(0,K.jsx)(F,{className:`underline`,to:`onboarding.sign_in`,children:(0,K.jsx)(R,{fontSize:10,color:`#333`,children:this.props.reason===`create_free_account`?`Already have an Account? Sign in`:`Already a Member? Sign in`})})]})}},Gl.defaultProps={margin:`50px 0 30px 0`,borderRadius:`25px`,height:`50px`,fontSize:`16px`},Gl))||Wl),Jl=N.audio` 105 width: 100%; 106 border-radius: 10px; 107 108 &::-webkit-media-controls-enclosure { 109 border-radius: 10px; 110 } 111`,Yl=class extends V.Component{componentDidMount(){`mediaSession`in navigator&&this.props.podcastEpisode?.podcast?.imageUrl&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.props.podcastEpisode.title,artist:this.props.podcastEpisode.podcast.title,artwork:[{src:this.props.podcastEpisode.podcast.imageUrl,sizes:`512x512`,type:`image/png`}]}))}render(){return this.props.podcastEpisode?.mp3?.url?(0,K.jsx)(Jl,{className:this.props.className,src:this.props.podcastEpisode.mp3.url,controls:!0,controlsList:`nodownload`}):null}},Xl=({children:e})=>U.AppUI.layout.isMobile?null:e,Zl,Ql=N.div` 112 flex: 2; 113 position: relative; 114 height: fit-content; 115 font-size: 16px; 116 width: ${e=>e.width}; 117 display: flex; 118 flex-direction: column; 119 align-items: center; 120 background: white; 121 border-radius: ${e=>e.borderRadius}; 122 @media (max-width: 999px) { 123 order: -1; 124 width: 100%; 125 } 126 iframe, .youtube-video { 127 border-radius: 10px; 128 overflow: hidden; 129 } 130 .icon-wrapper { 131 display: inline-block; 132 margin: 4px 4px 0 0; 133 } 134 .youtube-icon { 135 display: inline-block; 136 svg { 137 width: 24px; 138 fill: #c4302b; 139 } 140 } 141`,$l=N.div` 142 flex: 1; 143 max-width: ${e=>e.maxWidth}; 144 position: relative; 145 border-radius: 10px; 146 display: flex; 147 flex-direction: column; 148 align-items: center; 149 justify-content: center; 150 audio { 151 width: 100%; 152 } 153 margin: 10px; 154`,eu=N.a` 155 img { 156 max-height: ${e=>e.maxHeight}; 157 border-radius: 10px; 158 } 159`,tu=N.div` 160 display: grid; 161 grid-template-columns: minmax(0, 114px) 1fr; 162 gap: 20px; 163 width: 100%; 164 align-items: stretch; 165 166 @media (max-width: 699px) { 167 grid-template-columns: 1fr; 168 } 169`,nu=N.div` 170 width: 100%; 171 172 img { 173 border-radius: 10px; 174 display: block; 175 width: 100%; 176 } 177`,ru=N.div` 178 display: flex; 179 flex-direction: column; 180 gap: 10px; 181 height: 100%; 182 justify-content: center; 183 min-width: 0; 184`,iu=M(j(Zl=class extends V.Component{get noAccessMessage(){switch(this.props.noAccessReason){case`create_free_account`:return`Register to Try Interactive Player`;case`upgrade`:return`Upgrade to Unlock Interactive Player`;case`become_a_member`:return`Upgrade to Unlock Interactive Player`;default:return null}}renderPreviewLayout(){let e=this.props.imageUrl||this.props.podcastEpisode?.imageUrl||this.props.podcast?.imageUrl;return(0,K.jsx)(Ql,{width:this.props.width,borderRadius:this.props.borderRadius,children:(0,K.jsxs)(tu,{children:[(0,K.jsx)(nu,{children:e&&(0,K.jsx)(`img`,{src:e,alt:this.props.podcast?.title?`Podcast cover for ${this.props.podcast.title}`:``})}),(0,K.jsx)(hl,{visible:this.props.loading,children:(0,K.jsxs)(ru,{children:[this.props.hasAccess&&(0,W.isPresent)(this.props.podcastEpisode)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Yl,{podcastEpisode:this.props.podcastEpisode}),(0,K.jsx)(ka,{hasAccess:this.props.hasAccess,margin:`0`,height:`50px`,podcastEpisode:this.props.podcastEpisode,showImage:!1})]}),!this.props.hasAccess&&(0,K.jsx)(ql,{margin:`0`,reason:this.props.noAccessReason,message:this.noAccessMessage})]})})]})})}render(){return this.props.previewLayout?this.renderPreviewLayout():(0,K.jsxs)(Ql,{width:this.props.width,borderRadius:this.props.borderRadius,children:[(0,K.jsx)(Xl,{children:(0,K.jsx)($l,{maxWidth:U.AppUI.layout.isMobile?`170px`:`320px`,children:(0,W.isPresent)(this.props.podcast?.imageUrl)&&(0,K.jsx)(eu,{maxHeight:U.AppUI.layout.isMobile?`150px`:`300px`,children:(0,K.jsx)(`img`,{src:this.props.podcast?.imageUrl,alt:`Podcast cover for ${this.props.podcast.title}`})})})}),this.props.hasAccess&&(0,W.isPresent)(this.props.podcastEpisode)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Yl,{podcastEpisode:this.props.podcastEpisode}),(0,K.jsx)(ka,{hasAccess:this.props.hasAccess,margin:`10px 0 5px 0`,height:`50px`,podcastEpisode:this.props.podcastEpisode,showImage:U.AppUI.layout.isMobile||U.ExerciseUI.worksheet.youtubeUrlIsValid})]}),!this.props.hasAccess&&(0,K.jsx)(ql,{margin:`10px 0`,reason:this.props.noAccessReason,message:this.noAccessMessage})]})}})||Zl),au,ou,su=N.div` 185 margin: ${e=>e.margin}; 186 font-size: ${e=>e.fontSize}; 187 height: ${e=>e.height}; 188 font-weight: bold; 189`,cu=N.span`
190 line-height: 26px; 191 overflow-wrap: break-word; 192 word-break: break-word; 193 .fa-angle-double-right { 194 margin: 0 5px; 195 vertical-align: baseline; 196 } 197`,lu=N(F)` 198 text-decoration: underline; 199 cursor: pointer; 200 color: inherit; 201 &:hover { 202 color: inherit; 203 } 204`,uu=N.span` 205 text-decoration: normal; 206 cursor: default; 207`,du=M(j(au=(ou=class extends V.Component{render(){return(0,K.jsx)(su,{margin:this.props.margin,fontSize:(0,W.pixify)(this.props.fontSize),height:(0,W.pixify)(this.props.height),id:`breadcrumbs`,children:this.props.breadcrumbs.map((e,t)=>(0,K.jsxs)(cu,{children:[(0,W.isPresent)(e.routeToName)?(0,K.jsx)(lu,{to:{name:e.routeToName,params:e.routeToParams},children:e.name}):(0,K.jsx)(uu,{children:e.name}),this.props.breadcrumbs[t+1]&&(0,K.jsx)(`i`,{className:`fa fa-angle-double-right`})]},`breadcrumb-${t}`))})}},ou.defaultProps={margin:0,fontSize:`16px`,height:`40px`},ou))||au);D();var fu,pu;function mu(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hu=N.span` 208 font-weight: bold; 209 font-size: 20px; 210 color: #222; 211 cursor: pointer; 212 display: flex; 213 height: 100%; 214 align-items: center; 215 .fa { 216 margin-right: 5px; 217 } 218`,gu=N.div` 219 height: 20px; 220 margin-bottom: 5px; 221 display: flex; 222 justify-content: space-between; 223 align-items: center; 224`,_u=M(j(fu=(pu=class extends V.Component{constructor(e){super(e),this.goBackToPosts=()=>{U.ExerciseUI.routeStore.routeToNamed(this.homeRouteName)},(0,W.isBlank)(U.ExerciseUI.worksheetNamespace)&&(0,W.isPresent)(U.ExerciseUI.routeStore?.routeName)&&(U.ExerciseUI.worksheetNamespace=U.ExerciseUI.routeStore?.routeName?.split(`.`)[0]),(0,W.isBlank)(U.ExerciseUI.worksheetId)&&(0,W.isPresent)(this.props.worksheetId)&&(U.ExerciseUI.worksheetId=this.props.worksheetId)}get homeRouteName(){return U.ExerciseUI.routeStore?.routeName?.split(`.`)[0]===`exercises`?`videos.index`:`${U.ExerciseUI.worksheetNamespace}.index`}get homeName(){return U.ExerciseUI.routeStore?.routeName?.split(`.`)[0]===`exercises`?`Exercises`:[`learn`,`videos`,`podcast`].includes(U.ExerciseUI.worksheetNamespace)?(0,G.startCase)(U.ExerciseUI.worksheetNamespace):(0,G.startCase)(U.AppUI.user?.site?.navigationItems?.find(e=>e.routeName?.startsWith(U.ExerciseUI.worksheetNamespace))?.name||`Posts`)}get breadCrumbs(){let e=U.ExerciseUI.worksheet?.routeId||U.ExerciseUI.worksheetId,t=[{name:this.homeName,routeToName:this.homeRouteName}];return U.AppUI.layout.isMobile&&(0,W.isPresent)(U.ExerciseUI.worksheet)&&(U.ExerciseUI.routeStore?.routeName?.endsWith(`info.show`)?t.push({name:U.ExerciseUI.worksheet?.nameWithPublished}):t.push({name:U.ExerciseUI.worksheet?.nameWithPublished,routeToName:`${U.ExerciseUI.worksheetNamespace}.info.show`,routeToParams:{groupId:U.ExerciseUI.groupId,worksheetId:e}})),U.ExerciseUI.routeStore?.routeName?.endsWith(`vocab.word`)&&t.push({name:U.AppUI.layout.isMobile||(0,W.isBlank)(U.ExerciseUI.worksheet)?`Vocab`:U.ExerciseUI.worksheet?.nameWithPublished,routeToName:`${U.ExerciseUI.worksheetNamespace}.vocab.show`,routeToParams:{groupId:U.ExerciseUI.groupId,worksheetId:e}}),t}get lastBreadcrumb(){return this.breadCrumbs[this.breadCrumbs.length-1]}render(){return(0,W.isBlank)(this.breadCrumbs)?null:this.props.showAsBreadcrumbs?(0,K.jsx)(du,{breadcrumbs:this.breadCrumbs,height:null,margin:this.props.margin||`0 0 10px 0`}):(0,K.jsx)(gu,{children:(0,K.jsxs)(hu,{background:U.AppUI.site.accentColor,top:U.ExerciseUI.siteIsDefault?(0,G.min)([U.AppUI.layout.viewportHeight-100,this.worksheetBottom-55]):(0,G.min)([U.AppUI.layout.viewportHeight-100,this.worksheetBottom-61]),onClick:()=>U.ExerciseUI.routeStore.routeToNamed(this.lastBreadcrumb.routeToName,this.lastBreadcrumb.routeToParams),margin:this.props.margin||`0 0 0 -40px`,children:[(0,K.jsx)(`i`,{className:`fa fa-angle-left`}),(0,K.jsx)(`span`,{style:{fontSize:`14px`,color:`#222`},children:this.lastBreadcrumb.name})]})})}},mu(pu.prototype,`homeRouteName`,[E],Object.getOwnPropertyDescriptor(pu.prototype,`homeRouteName`),pu.prototype),mu(pu.prototype,`homeName`,[E],Object.getOwnPropertyDescriptor(pu.prototype,`homeName`),pu.prototype),mu(pu.prototype,`breadCrumbs`,[E],Object.getOwnPropertyDescriptor(pu.prototype,`breadCrumbs`),pu.prototype),mu(pu.prototype,`lastBreadcrumb`,[E],Object.getOwnPropertyDescriptor(pu.prototype,`lastBreadcrumb`),pu.prototype),pu))||fu);D();var vu,yu,bu;function xu(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Su=N.div` 225 background: #FFF; 226 color: #343535; 227 padding: 3px 8px; 228 font-size: 11px; 229 line-height: 12px; 230 height: 22px; 231 margin: 3px 3px 0 0; 232 border-radius: 15px; 233 font-weight: bold; 234 border: 1px solid #cbcccb; 235 cursor: ${e=>e.isClickable?`pointer`:`default`}; 236 white-space: nowrap; 237 &:hover { 238 box-shadow: ${e=>e.isClickable?`0 0 6px rgba(33,33,33,.2)`:``}; 239 } 240 &:active { 241 box-shadow: ${e=>e.isClickable?`inset 0 0 6px rgba(33,33,33,.2)`:``}; 242 } 243`,Cu=N(Su)` 244 background: #228BE6; 245 color: white; 246`,wu=N.div` 247 display: flex; 248 width: ${e=>e.width}; 249 justify-content: space-between; 250 align-items: flex-end; 251`,Tu=N.div` 252 display: flex; 253 flex-wrap: wrap; 254`,Eu=N.div` 255 font-size: 14px; 256 color: #616161; 257 margin-top: 5px; 258 text-wrap: nowrap; 259`,Du=M(j(vu=(yu=(bu=class extends V.Component{constructor(...e){super(...e),this.onClickWorksheetTag=e=>{if(this.worksheetFilterClickable&&(0,W.isPresent)(e)){let t=e?.map(e=>e.id).join(`,`);U.AppUI.cookieStore.set(`worksheetTagIds${this.activeView}`,t||null),this.afterClickTag()}},this.onClickWorksheetLevels=()=>{(0,W.isPresent)(this.props.worksheet)&&this.onClickWorksheetTag(this.props.worksheet.levelTags)},this.afterClickTag=()=>{(0,G.isFunction)(this.props.onUpdateFilter)&&this.props.onUpdateFilter()}}get activeView(){return U.ExerciseUI.worksheetNamespace===`worksheets`?`Home`:U.ExerciseUI.worksheetNamespace===`videos`?`Videos`:U.ExerciseUI.worksheetNamespace===`podcast`?`Podcast`:null}get worksheetFilterClickable(){return U.AppUI.site.showWorksheetFilter&&(0,W.isPresent)(this.props.worksheet)}get tagSource(){return(0,W.isPresent)(this.props.worksheet)?this.props.worksheet:this.props.exercise}get levelTags(){let e=this.tagSource;return(0,W.isPresent)(e)?U.AppUI.routeStore.routeName===`videos.index`?e.levelTags.filter(e=>e.displayOnVideoWorksheets):U.AppUI.routeStore.routeName===`podcast.index`?e.levelTags.filter(e=>e.displayOnPodcastWorksheets):e.levelTags:null}get tags(){return(0,W.isPresent)(this.props.worksheet)?(0,W.isPresent)(U.AppUI.routeStore.routeName)?this.props.worksheet?.tagsForRouteName(U.AppUI.routeStore.routeName):this.props.worksheet?.orderedTags:(0,W.isPresent)(this.props.exercise)?this.props.exercise?.orderedTags:[]}render(){return(0,K.jsxs)(wu,{width:this.props.width,children:[(0,K.jsxs)(Tu,{children:[(0,W.isPresent)(this.levelTags)&&(0,K.jsx)(Su,{onClick:this.onClickWorksheetLevels,isClickable:this.worksheetFilterClickable,children:this.tagSource.levelTagsFormatted},`${this.tagSource.id}-level-tags`),(0,W.isPresent)(this.tags)&&this.tags.map(e=>e?.name&&e?.tagCategoryPublished&&!e.level?(0,K.jsx)(Su,{onClick:()=>this.onClickWorksheetTag([e]),isClickable:this.worksheetFilterClickable,children:e.name},e.id):null),this.props.withEditButton&&(0,K.jsx)(Cu,{onClick:()=>this.props.onEditTags(),isClickable:!0,children:`Edit tags`})]}),this.props.episodeCode&&(0,K.jsx)(Eu,{children:(0,K.jsx)(kn,{episodeCode:this.props.episodeCode})})]})}},bu.defaultProps={width:`100%`},bu),xu(yu.prototype,`activeView`,[E],Object.getOwnPropertyDescriptor(yu.prototype,`activeView`),yu.prototype),xu(yu.prototype,`worksheetFilterClickable`,[E],Object.getOwnPropertyDescriptor(yu.prototype,`worksheetFilterClickable`),yu.prototype),xu(yu.prototype,`tagSource`,[E],Object.getOwnPropertyDescriptor(yu.prototype,`tagSource`),yu.prototype),xu(yu.prototype,`levelTags`,[E],Object.getOwnPropertyDescriptor(yu.prototype,`levelTags`),yu.prototype),xu(yu.prototype,`tags`,[E],Object.getOwnPropertyDescriptor(yu.prototype,`tags`),yu.prototype),yu))||vu);me(),D();var Ou,ku;function Au(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ju=N.div` 260 display: flex; 261 justify-content: center; 262 flex-direction: column; 263 align-items: center; 264 margin: ${e=>e.margin}; 265 .fa { 266 margin-right: 5px; 267 font-size: 20px; 268 } 269`,Mu=M(j(Ou=(ku=class extends V.Component{constructor(...e){super(...e),this.onClick=()=>{let e=!this.props.worksheet?.overrideCompleted;this.props.worksheet.set(`overrideCompleted`,e),H.UserWorksheetStore.updateByWorksheetId({ids:{worksheetId:this.props.worksheet.id},data:{overrideCompleted:e}}),U.ExerciseUI.worksheetStore.hasIndexData&&U.ExerciseUI.worksheetStore.indexData.find(e=>e.id===this.props.worksheet.id)&&this.findWorksheetAndUpdateOverrideCompleted(U.ExerciseUI.worksheetStore.indexData,e),U.ExerciseUI.gridItemStore.hasIndexData&&U.ExerciseUI.gridItemStore.indexData.forEach(t=>{this.findWorksheetAndUpdateOverrideCompleted(t.gridItemWorksheets,e)}),U.ExerciseUI.recentWorksheetStore.hasIndexData&&this.findWorksheetAndUpdateOverrideCompleted(U.ExerciseUI.recentWorksheetStore.indexData,e)},this.findWorksheetAndUpdateOverrideCompleted=(e,t)=>
269{e.forEach(e=>{e.id===this.props.worksheet.id&&e.set(`overrideCompleted`,t)})}}get color(){return`#333`}render(){return(0,K.jsx)(ju,{margin:`10px 0 -10px 0`,children:(0,K.jsxs)(I,{background:U.ExerciseUI.site.accentColor,color:`white`,onClick:this.onClick,fontSize:`14px`,lineHeight:`14px`,height:`30px`,width:`100%`,minWidth:`fit-content`,whiteSpace:`nowrap`,scaleOnHover:1.02,scaleOnActive:1,borderRadius:`5px`,padding:`0px 20px`,children:[this.props.worksheet?.overrideCompleted?(0,K.jsx)(`i`,{className:`fa fa-check-square-o`}):(0,K.jsx)(`i`,{className:`fa fa-square-o`}),(0,K.jsx)(`div`,{children:this.props.worksheet?.overrideCompleted?`You've Completed This Episode`:`Mark Episode as Completed`})]})})}},Au(ku.prototype,`color`,[E],Object.getOwnPropertyDescriptor(ku.prototype,`color`),ku.prototype),ku))||Ou);D();var Nu,Pu,Fu;function Iu(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Lu(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Ru=N.div` 270 flex: 2; 271 height: ${e=>e.height}; 272 max-height: ${e=>e.maxHeight}; 273 position: relative; 274 display: flex; 275 flex-direction: column; 276 overflow-x: hidden; 277`,zu=N.div` 278`,Bu=N.div` 279 font-size: 28px; 280 line-height: 32px; 281 font-weight: 900; 282 overflow-wrap: break-word; 283 word-break: break-word; 284 @media (max-width: 1200px) { 285 font-size: 24px; 286 line-height: 28px; 287 } 288`,Vu=N.div` 289 display: flex; 290 flex-direction: row; 291 justify-content: center; 292 margin-top: 10px; 293 overflow-y: hidden; 294 gap: 10px; 295`,Hu=` 296 box-shadow: inset 0 0 20px #d8d8d8; 297 .fa { 298 transform: scale(1.2); 299 } 300`,Uu=N.div` 301 display: flex; 302 background: #f1f3f5; 303 position: relative; 304 padding: 10px 15px; 305 margin-top: 10px; 306 max-height: ${e=>e.maxHeight}; 307 border-radius: 10px; 308 font-size: 16px; 309 line-height: 22px; 310 width: 100%; 311 cursor: ${e=>e.overflows?`pointer`:null}; 312 &:hover { 313 ${e=>e.overflows?Hu:null} 314 } 315`,Wu=N.div` 316 -webkit-mask-image: ${e=>e.overflows?`linear-gradient(to bottom, black 50%, transparent);`:null}; 317`,Gu=N.div` 318 p, li { 319 margin-block-start: 2px; 320 margin-block-end: 2px; 321 } 322 li { 323 list-style-type: disc; 324 margin-left: 20px; 325 } 326 h1 { 327 font-size: 26px; 328 } 329 h2 { 330 font-size: 22px; 331 } 332 h1,h2,h3,h4,h5,h6 { 333 font-family: 'Karla', sans-serif !important; 334 margin-block-start: 15px; 335 margin-block-end: 5px; 336 font-weight: 600; 337 } 338 a { 339 color: ${e=>e.linkColor}; 340 font-weight: 600; 341 } 342 ::-webkit-scrollbar {
343 width: 8px; 344 } 345 ::-webkit-scrollbar-thumb { 346 background-color: #888; 347 border-radius: 4px; 348 } 349 350`,Ku=N.div` 351 display: flex; 352 align-items: flex-end; 353 font-size: 14px; 354 position: absolute; 355 cursor: pointer; 356 right: 5px; 357 bottom: 10px; 358 color: #636363; 359 cursor: pointer; 360 background: #f1f3f5; 361 padding: 2px 10px; 362 box-shadow: 0 0 7px 2px #f1f3f5; 363 border-radius: 10px; 364 .fa { 365 margin-left: 10px; 366 font-size: 18px; 367 } 368`,qu=N.div` 369 font-size: 14px; 370 color: #636363; 371 width: fit-content; 372 display: flex; 373 align-items: center; 374 gap: 5px; 375 white-space: nowrap; 376`,Ju=N.div` 377 display: flex; 378 justify-content: space-between; 379 align-items: center; 380 flex-wrap: wrap; 381`,Yu=N.div` 382 font-size: 11px; 383 text-decoration: underline; 384 text-align: center; 385`,Xu=N.div` 386 display: flex; 387 justify-content: space-between; 388`,Zu=M(j(Nu=(Pu=class extends V.Component{constructor(...e){super(...e),Iu(this,`descriptionOverflows`,Fu,this),this.goBackToPosts=()=>{U.ExerciseUI.routeStore.routeToNamed(`${U.ExerciseUI.worksheetNamespace}.index`)}}checkOverflow(){let e=document.getElementById(`description-wrapper`);e&&(this.descriptionOverflows=e.scrollHeight>e.offsetHeight)}componentDidMount(){setTimeout(()=>this.checkOverflow(),0)}componentDidUpdate(){setTimeout(()=>this.checkOverflow(),0)}get descriptionWithTargetBlankLinks(){if(!U.ExerciseUI.hasWorksheet||!U.ExerciseUI.worksheet?.description)return``;let e=new DOMParser().parseFromString(U.ExerciseUI.worksheet.description,`text/html`);if(e&&e.body){let t=e.body.getElementsByTagName(`a`);for(let e=0;e<t.length;e++)t[e].setAttribute(`target`,`_blank`)}return new XMLSerializer().serializeToString(e)}get height(){return!U.ExerciseUI.hasWorksheet||!U.ExerciseUI.worksheet||(0,W.isBlank)(U.ExerciseUI.worksheet.description)?`fit-content`:U.AppUI.layout.isMobile?U.ExerciseUI.worksheet.youtubeUrlIsValid?`360px`:`460px`:U.ExerciseUI.worksheet.youtubeUrlIsValid&&(0,W.isPresent)(U.ExerciseUI.worksheet.podcastEpisode)?`360px`:U.ExerciseUI.worksheet.youtubeUrlIsValid?`300px`:(0,W.isPresent)(U.ExerciseUI.worksheet.podcastEpisode)?`440px`:`fit-content`}get descriptionMaxHeight(){return this.props.descriptionMaxHeight?this.props.descriptionMaxHeight:U.AppUI.layout.isMobile&&!U.ExerciseUI.worksheet?.youtubeUrlIsValid?`450px`:`350px`}render(){if(U.ExerciseUI.hasWorksheet)return(0,K.jsxs)(Ru,{maxHeight:this.height,height:`auto`,borderRadius:this.props.borderRadius,children:[(0,K.jsxs)(Xu,{children:[U.ExerciseUI.layout.isDesktop&&(0,K.jsx)(_u,{}),U.ExerciseUI.layout.isDesktop&&U.ExerciseUI.user.anyAdmin&&(0,W.isPresent)(U.ExerciseUI.worksheet)&&(0,K.jsx)(Yu,{children:(0,K.jsx)(F,{to:{name:`creator.worksheets.edit`,params:{worksheetId:U.ExerciseUI.worksheet.id}},children:`Admin Link`})})]}),this.props.showModal&&(0,K.jsx)(Dn,{animate:!0,contentShouldScroll:!0,padding:`20px`,width:U.AppUI.layout.isMobile?`90%`:`600px`,top:`100px`,maxHeight:U.AppUI.layout.isMobile?U.AppUI.layout.viewportHeight-200:U.AppUI.layout.viewportHeight-300,onCloseModal:()=>this.props.onModalChange(!1),iconFill:`white`,title:U.ExerciseUI.worksheet.nameWithPublished,background:U.AppUI.site.secondaryAccentColor||U.AppUI.site.accentColor||`#636363`,children:(0,K.jsx)(Gu,{linkColor:U.AppUI.site.secondaryAccentColor||U.AppUI.site.accentColor||q.Theme.blue,dangerouslySetInnerHTML:{__html:this.descriptionWithTargetBlankLinks},onClick:()=>this.descriptionOverflows?this.props.onModalChange(!0):null})}),(0,K.jsxs)(zu,{children:[(0,K.jsx)(Bu,{children:U.ExerciseUI.worksheet.nameWithPublished}),(0,K.jsxs)(Ju,{children:[(0,K.jsxs)(qu,{"data-tip":!0,"data-for":`publication-date`,children:[(0,W.isPresent)(U.ExerciseUI.worksheet.publishedAt)&&U.ExerciseUI.worksheet.publishedAt.relativeTime,!U.ExerciseUI.worksheet.contentPublishedOnADifferentDay&&(0,K.jsx)(he,{place:`right`,type:`light`,effect:`float`,i
388d:`publication-date`,class:`custom-tooltip`,children:(0,W.isPresent)(U.ExerciseUI.worksheet.publishedAt)&&U.ExerciseUI.worksheet.publishedAt.formattedDateWithYear}),(0,W.isPresent)(U.ExerciseUI.worksheet.contentPublishedAt)&&U.ExerciseUI.worksheet.contentPublishedOnADifferentDay&&(0,K.jsxs)(En,{position:`right`,icon:`calendar`,color:`#636363`,margin:`0 5px`,children:[(0,K.jsx)(`div`,{children:`${(0,G.startCase)(U.ExerciseUI.worksheet.contentType)} originally published on`}),(0,K.jsx)(`div`,{children:U.ExerciseUI.worksheet.contentPublishedAt.fullTextFormattedDateWithYear})]}),U.ExerciseUI.worksheet.episodeCode&&(0,W.isBlank)(U.ExerciseUI.worksheet.podcastEpisode)&&(0,K.jsxs)(`span`,{children:[` · `,(0,K.jsx)(kn,{episodeCode:U.ExerciseUI.worksheet.episodeCode})]})]}),((0,W.isPresent)(U.ExerciseUI.worksheet.worksheetTags)||(0,W.isPresent)(U.ExerciseUI.worksheet.episodeCode))&&(0,K.jsx)(Du,{width:null,worksheet:U.ExerciseUI.worksheet,onUpdateFilter:this.goBackToPosts})]})]}),U.AppUI.layout.isMobile&&U.ExerciseUI.hasWorksheet&&!U.ExerciseUI.worksheet.youtubeUrlIsValid&&(0,W.isPresent)(U.ExerciseUI.worksheet.podcastEpisode)&&(0,K.jsxs)(An,{gap:`xs`,style:{marginTop:`10px`},children:[(0,K.jsx)(Yl,{podcastEpisode:U.ExerciseUI.worksheet.podcastEpisode}),(0,K.jsx)(ka,{hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasAccess,podcastEpisode:U.ExerciseUI.worksheet.podcastEpisode,margin:`5px 0 -5px 0`})]}),U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheet.exerciseEntriesCount===0&&(0,K.jsx)(Mu,{worksheet:U.ExerciseUI.worksheet}),(0,K.jsx)(Vu,{children:(0,W.isPresent)(U.ExerciseUI.worksheet.description)&&(0,K.jsxs)(Uu,{id:`description-wrapper`,overflows:this.descriptionOverflows,maxHeight:this.descriptionMaxHeight,children:[(0,K.jsx)(Wu,{overflows:this.descriptionOverflows,children:(0,K.jsx)(Gu,{overflows:this.descriptionOverflows,linkColor:U.AppUI.site.secondaryAccentColor||U.AppUI.site.accentColor||q.Theme.blue,dangerouslySetInnerHTML:{__html:this.descriptionWithTargetBlankLinks},onClick:()=>this.descriptionOverflows?this.props.onModalChange(!0):null})}),this.descriptionOverflows&&(0,K.jsxs)(Ku,{onClick:()=>this.descriptionOverflows?this.props.onModalChange(!0):null,children:[`View Show Notes`,(0,K.jsx)(`i`,{className:`fa fa-expand`})]})]})}),U.ExerciseUI.hasWorksheet&&!U.ExerciseUI.worksheet?.accessStatus?.hasAccess&&U.AppUI.layout.isMobile&&(0,K.jsx)(ql,{reason:U.ExerciseUI.worksheet?.accessStatus?.reason,margin:`20px 0 5px 0`})]})}},Fu=Lu(Pu.prototype,`descriptionOverflows`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lu(Pu.prototype,`descriptionWithTargetBlankLinks`,[E],Object.getOwnPropertyDescriptor(Pu.prototype,`descriptionWithTargetBlankLinks`),Pu.prototype),Lu(Pu.prototype,`height`,[E],Object.getOwnPropertyDescriptor(Pu.prototype,`height`),Pu.prototype),Lu(Pu.prototype,`descriptionMaxHeight`,[E],Object.getOwnPropertyDescriptor(Pu.prototype,`descriptionMaxHeight`),Pu.prototype),Pu))||Nu);D();var Qu,$u,ed;function td(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function nd(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var rd=N.div` 389 display: flex; 390 @media (max-width: 999px) { 391 flex-direction: column; 392 } 393 gap: 10px; 394`,id=N.div` 395 display: flex; 396 flex-direction: column; 397 gap: 10px; 398 padding: 20px; 399 visibility: ${e=>e.visibility}; 400 background: white; 401 border-radius: 10px; 402 width: ${e=>e.podcastPlayer?``:`580px`}; 403 flex-shrink: 0; 404 @media (max-width: 999px) { 405 width: 100%; 406 } 407`,ad=N.div` 408 height: auto; 409 padding: 20px; 410 background: white; 411 border-radius: 10px; 412 flex: 1 413`,od=j(Qu=($u=class extends V.Component{constructor(...e){super(...e),td(this,`showModal`,ed,this),this.handleVideoThumbnailClick=()=>{U.AppUI.siteIsDefault||U.AppUI.createEvent(`memrev - click YouTube video`,Ul({worksheet_id:U.ExerciseUI.worksheet?.id,youtube_video_id:U.ExerciseUI.worksheet?.youtubeVideoId}))}}get showYoutubeVideo(){return!(U.AppUI.layout.ios&&U.AppUI.layout.isSafari&&this.showModal)}get showPodcastPlayer(){return!U.AppUI.layout.isMobile&&U.ExerciseUI.hasWorksheet&&(0,W.isPresent)(U.ExerciseUI.worksheet?.podcastEpisode)&&(0,W.isBlank)(U.ExerciseUI.formattedYoutubeUrl)}render(){return(0,K.jsxs)(rd,{children:[!U.ExerciseUI.hasWorksheet&&(0,K.jsx)(P,{background:U.AppUI.site.accentColor||`#868686`}),U.ExerciseUI.hasWorksheet&&(0,K.jsx)(ad,{children:(0,K.jsx)(Zu,{borderRadius:this.props.borderRadius,showModal:this.showModal,onModalChange:e=>this.showModal=e})}),this.showPodcastPlayer&&(0,K.jsx)(id,{podcastPlayer:!0,children:(0,K.jsx)(iu,{hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasAccess,noAccessReason:U.ExerciseUI.worksheet?.accessStatus?.reason,podcast:U.ExerciseUI.worksheet?.podcastEpisode?.podcast,podcastEpisode:U.ExerciseUI.worksheet?.podcastEpisode,borderRadius:this.props.borderRadius})}),U.ExerciseUI.hasWorksheet&&(0,W.isPresent)(U.ExerciseUI.formattedYoutubeUrl)&&(0,K.jsx)(id,{id:`video-player`,visibility:this.showYoutubeVideo?`visible`:`hidden`,children:(0,K.jsx)(Ua,{allowFloating:!U.ExerciseUI.exercise?.formattedDescriptionVideo,hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasAccess,url:U.ExerciseUI.formattedYoutubeUrl,thumbnailUrl:U.ExerciseUI.worksheet?.imageUrl,placeholderImageUrl:U.ExerciseUI.worksheet?.image?.url,podcastEpisode:U.ExerciseUI.worksheet?.podcastEpisode,durationSeconds:U.ExerciseUI.worksheet?.videoDurationSeconds,borderRadius:this.props.borderRadius,onPlay:this.handleVideoThumbnailClick})})]})}},ed=nd($u.prototype,`showModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nd($u.prototype,`showYoutubeVideo`,[E],Object.getOwnPropertyDescriptor($u.prototype,`showYoutubeVideo`),$u.prototype),nd($u.prototype,`showPodcastPlayer`,[
413E],Object.getOwnPropertyDescriptor($u.prototype,`showPodcastPlayer`),$u.prototype),$u))||Qu,Y=Se();D();var sd,cd,ld;function ud(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function dd(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var fd=N.div` 414 background: #07314e; 415 height: 100%; 416 width: 100%; 417 position: fixed; 418 z-index: 0; 419 left: 0; 420 right: 0; 421 bottom: 180px; 422 .sparkle-icon-wrapper { 423 pointer-events: none; 424 width: 18px; 425 position: fixed; 426 top: 50px; 427 right: 90px; 428 z-index: 1; 429 svg { 430 fill: yellow; 431 } 432 } 433 .pyro > .before, .pyro > .after { 434 position: absolute; 435 width: 5px; 436 height: 5px; 437 border-radius: 50%; 438 box-shadow: 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff; 439 animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards; } 440 441 .pyro > .after { 442 animation-delay: 1.25s, 1.25s, 1.25s; 443 animation-duration: 1.25s, 1.25s, 6.25s; } 444 445 @keyframes bang { 446 to { 447 box-shadow: 224px -198.66667px #fbff00, 83px -142.66667px #ff00a6, 137px -166.66667px #ff7700, -101px -302.66667px #9dff00, -171px -186.66667px #ff003c, -200px 74.33333px #a600ff, -180px -299.66667px #00ff04, 138px -237.66667px #00ff6f, -200px -280.66667px #00ff84, -37px -382.66667px #fb00ff, 143px -143.66667px #001aff, -111px -81.66667px #2bff00, -106px 3.33333px #4000ff, 189px -255.66667px #ff0011, 21px -307.66667px #4dff00, 103px -345.66667px #00ff3c, 113px -319.66667px #00ff77, -102px -144.66667px #00ffee, -239px -350.66667px #b300ff, -208px -124.66667px #ff00f7, 36px 26.33333px #00c8ff, 248px -320.66667px #6a00ff, 65px -412.66667px #00d0ff, -200px -334.66667px #ff00a2, -111px -195.66667px #ff9500, -203px 26.33333px #ff0033, 71px -403.66667px #09ff00, -165px -374.66667px #002fff, -17px -108.66667px #ff0099, 119px -358.66667px #00ff2b, 18px -249.66667px #0022ff, -32px -371.66667px #00ff77, -182px -188.66667px #6a00ff, -164px -160.66667px #00aaff, -193px 0.33333px #ff6a00, -34px -158.66667px #00fff2, 158px -161.66667px #00b7ff, 199px -212.66667px #ffd500, -132px -57.66667px #ff00f7, 80px -391.66667px #ff00e1, -175px -371.66667px #2b00ff, -143px -412.66667px #00fff7, 191px -337.66667px #00ffe1, -25px -196.66667px #22ff00, -71px -390.66667px #00a6ff, -145px -69.66667px #ffd500, -77px -292.66667px #e600ff, -107px -127.66667px #00ff99, 57px -338.66667px #00c4ff, 145px 78.33333px #59ff00, -177px -77.66667px #b3ff00; } } 448 449 @keyframes gravity { 450 to { 451 transform: translateY(200px); 452 -moz-transform: translateY(200px); 453 -webkit-transform: translateY(200px); 454 -o-transform: translateY(200px); 455 -ms-transform: translateY(200px); 456 opacity: 0; } } 457 458 @keyframes position { 459 0%, 19.9% { 460 margin-top: 10%; 461 margin-left: 40%; } 462 20%, 39.9% { 463 margin-top: 40%; 464 margin-left: 30%; } 465 40%, 59.9% { 466 margin-top: 20%; 467 margin-left: 70%; } 468 60%, 79.9% { 469 margin-top: 30%; 470 margin-left: 20%; } 471 80%, 99.9% { 472 margin-top: 30%; 473 margin-left: 80%; } } 474`,pd=N.div` 475 background: ${e=>e.background}; 476 height: 100%; 477 width: 100%; 478 position: fixed;
479 z-index: 0; 480 left: 0; 481 right: 0; 482 bottom: 180px; 483`,md=N.div` 484 485`,hd=100,gd=j(sd=(cd=class extends V.Component{constructor(e){super(e),ud(this,`starCoordinates`,ld,this),this.plotStars=O(()=>{this.starCoordinates=[],(0,G.times)(hd,()=>{this.starCoordinates.push({left:(0,G.random)(0,100),top:(0,G.random)(0,55)})})}),this.plotStars()}get isLastCard(){return this.props.isLastCard||this.props.percentageComplete===100}get starOpacity(){return this.props.bigStars?1:this.isLastCard?0:.4}get starScale(){return this.props.bigStars?1:.6}render(){return(0,K.jsx)(`div`,{children:(0,K.jsxs)(fd,{children:[this.props.isLastCard&&(0,K.jsxs)(`div`,{className:`pyro`,children:[(0,K.jsx)(`div`,{className:`before`}),(0,K.jsx)(`div`,{className:`after`})]}),(0,K.jsx)(md,{children:this.starCoordinates.map((e,t)=>(0,K.jsx)(J.SparkleIcon,{className:`sparkle-icon-wrapper`,style:{left:`${e.left}%`,top:`${e.top}%`,transform:`scale(${this.starScale})`,opacity:this.starOpacity}},t))}),(0,K.jsx)(pd,{background:`linear-gradient(to top, rgba(17, 114, 212, 0.15) 0%, rgba(17, 114, 212, 0) 30%)`}),this.isLastCard&&(0,K.jsx)(pd,{background:`linear-gradient(to top, rgba(249, 176, 12, 0.3) 0%, rgba(249, 188, 12, 0) 30%)`})]})})}},ld=dd(cd.prototype,`starCoordinates`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),dd(cd.prototype,`isLastCard`,[E],Object.getOwnPropertyDescriptor(cd.prototype,`isLastCard`),cd.prototype),dd(cd.prototype,`starOpacity`,[E],Object.getOwnPropertyDescriptor(cd.prototype,`starOpacity`),cd.prototype),dd(cd.prototype,`starScale`,[E],Object.getOwnPropertyDescriptor(cd.prototype,`starScale`),cd.prototype),cd))||sd,_d=N.div` 486 position: fixed; 487 z-index: 0; 488 left: 0; 489 bottom: 180px; 490 right: 0px; 491 fill: ${e=>e.background}; 492`,vd=class extends V.Component{render(){return(0,K.jsx)(_d,{background:this.props.background,children:(0,K.jsx)(`svg`,{viewBox:`0 0 1203 247`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{d:`M711,162.40625 L706,171 L706,219 L695,219 L695,246 L802,246 L802,175 L772,175 L772,219 L762,219 L762,182 L748,182 L748,219 L738,219 L738,116 L719,148.65625 L719,204 L711,204 L711,162.40625 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M455,162.40625 L450,171 L450,219 L439,219 L439,246 L546,246 L546,175 L516,175 L516,219 L506,219 L506,182 L492,182 L492,219 L482,219 L482,116 L463,148.65625 L463,204 L455,204 L455,162.40625 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M1027,162.40625 L1022,171 L1022,219 L1011,219 L1011,246 L1118,246 L1118,175 L1088,175 L1088,219 L1078,219 L1078,182 L1064,182 L1064,219 L1054,219 L1054,116 L1035,148.65625 L1035,204 L1027,204 L1027,162.40625 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M298,156.5 C298,156.667006 297.998564,156.833677 297.995702,157 L298,193 L302,193 L302,246 L237,246 L237,193 L241,193 L241,157 C241.001436,156.833677 241,156.667006 241,156.5 C241,141.602253 252.430681,129.374285 267,128.108138 L267,122.5 C267,121.119288 268.119288,120 269.5,120 C270.880712,120 272,121.119288 272,122.5 L272,128.108138 C286.569319,129.374285 298,141.602253 298,156.5 Z M217,179 C217,173.477153 221.477153,169 227,169 C232.522847,169 237,173.477153 237,179 L237,246 L217,246 L217,179 Z M302,179 C302,173.477153 306.477153,169 312,169 C317.522847,169 322,173.477153 322,179 L322,246 L302,246 L302,179 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M984.796644,75.5578487 C977.999152,77.4037423 973,83.6180638 973,91 C973,97.9712065 977.458325,103.901115 983.679263,106.094016 C982.493627,140.854403 981.267206,194.156398 980,246 L998.005859,246 C997.291391,193.868606 996.535684,140.373915 995.738737,105.515925 C1001.20809,102.972586 1005,97.4291173 1005,91 C1005,84.2858951 1000.86446,78.537697 995.001703,76.1637237 C994.967414,74.928306 994.933053,73.7079176 994.898621,72.5025586 C997.954936,71.8906584 1000,70.7749376 1000,69.5 C1000,68.2006169 997.875761,67.0666148 994.721708,66.462802 C993.390309,22.1542673 991.953125,0 990.410156,0 C988.769892,0 987.024085,22.1033665 985.172738,66.3100995 C981.532443,66.8596646 979,68.0812517 979,69.5 C979,70.8847061 981.412372,72.081599 984.912629,72.6491833 C984.874012,73.6092235 984.835351,74.5787786 984.796644,75.5578487 Z`,id:`Comb
492ined-Shape`}),(0,K.jsx)(`polygon`,{id:`Combined-Shape`,points:`585 225 554 225 570.5 213 585 223.545455 585 204 607 204 607 246 585 246 585 225 554 225 554 246 585 246`}),(0,K.jsx)(`path`,{d:`M206,208.4 L206,246 L145,246 L145,208.4 L142,203 L145.333333,203 L142,197 L169,197 L175.5,184 L182,197 L209,197 L205.666667,203 L209,203 L206,208.4 Z M198,233 L198,212 L195,212 L195,233 L198,233 Z M190,233 L190,212 L184,212 L184,233 L190,233 Z M179,233 L179,212 L171,212 L171,233 L179,233 Z M166,233 L166,212 L161,212 L161,233 L166,233 Z M156,233 L156,212 L153,212 L153,233 L156,233 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M372,219 L331,219 L331,246 L431,246 L431,219 L389.689453,219 L389.689453,184.9375 L383.25,192.904259 L383.25,175.5 C383.25,174.119288 382.130712,173 380.75,173 C379.369288,173 378.25,174.119288 378.25,175.5 L378.25,192.65452 L372,184.9375 L372,219 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M819.150253,170 L841,170 L841,246 L812,246 L812,179.70908 L819.150253,170 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M851.019406,199.570312 L849.212891,199.570312 L849.212891,199.782985 C849.142051,199.790897 849.071087,199.798786 849,199.806641 L849.212891,199.806641 L849.212891,245.570312 L966.212891,245.570312 L966.212891,199.806641 L966.279297,199.806641 L966.279297,186.785156 C950.776693,186.785156 937.514323,180.856771 926.492188,169 C913.017578,184.395633 907.639648,191.732422 878.433594,189.101562 C875.225515,194.215529 866.087453,197.705112 851.019406,199.570312 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M1164,86.1707057 C1162.83481,86.5825421 1162,87.6937812 1162,89 L1162,98 L1160.5,98 C1159.11929,98 1158,99.1192881 1158,100.5 C1158,101.880712 1159.11929,103 1160.5,103 L1162,103 L1162,169.865047 C1160.04571,170.898091 1158.60284,172.769286 1158.15003,175 L1143,175 L1147,179 L1152.71338,179 L1147,179 L1147,198 L1127,198 L1127,246 L1203,246 L1203,198 L1184,198 L1184,179 L1178.28662,179 L1184,179 L1188,175 L1172.84997,175 C1172.39716,172.769286 1170.95429,170.898091 1169,169.865047 L1169,103 L1170.5,103 C1171.88071,103 1173,101.880712 1173,100.5 C1173,99.1192881 1171.88071,98 1170.5,98 L1169,98 L1169,89 C1169,87.6937812 1168.16519,86.5825421 1167,86.1707057 L1167,80 C1167,79.4477153 1166.55228,79 1166,79 L1165,79 C1164.44772,79 1164,79.4477153 1164,80 L1164,86.1707057 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M133,193.794922 L133,246 L64,246 L64,193.397461 L64,182 L75.6630237,193 L83,193 L83,153 L87,153 L87,133 L87.1659169,133 C87.9521904,128.313335 91.4550658,124.547838 96,123.378052 L96,119.5 C96,118.119288 97.1192881,117 98.5,117 C99.8807119,117 101,118.119288 101,119.5 L101,123.165917 C106.02501,124.008954 109.991046,127.97499 110.834083,133 L111,133 L111,153 L114,153 L114,193 L121.342836,193 L133.005859,182 L133.005859,193.794922 L133,193.794922 Z`,id:`Combined-Shape`}),(0,K.jsx)(`path`,{d:`M685,193.794922 L685,246 L616,246 L616,193.397461 L616,182 L627.663024,193 L635,193 L635,153 L639,153 L639,133 L639.165917,133 C639.95219,128.313335 643.455066,124.547838 648,123.378052 L648,119.5 C648,118.119288 649.119288,117 650.5,117 C651.880712,117 653,118.119288 653,119.5 L653,123.165917 C658.02501,124.008954 661.991046,127.97499 662.834083,133 L663,133 L663,153 L666,153 L666,193 L673.342836,193 L685.005859,182 L685.005859,193.794922 L685,193.794922 Z`,id:`Combined-Shape`}),(0,K.jsx)(`polygon`,{id:`Path-4`,transform:`translate(26.428711, 223.583008) scale(-1, 1) translate(-26.428711, -223.583008) `,points:`0 246.166016 0 215.335938 13.0996094 201 42.0976562 201 52.8574219 209.455078 52.8574219 215.335938 46.6269531 215.335938 46.6269531 246.166016`})]})})})}},yd,bd,xd=N.div` 493 494`,Sd=N.div` 495 position: fixed; 496 z-index: 0; 497 left: 0; 498 height: 183px; 499 bottom: 0; 500 right: 0px; 501 background: ${e=>e.background}; 502`,Cd=j(yd=(bd=class extends V.Component{render(){return U.AppUI.siteIsDefault?(0,K.jsxs)(xd,{children:[(0,K.jsx)(gd,{...this.props}),(0,K.jsx)(vd,{...this.props}),(0,K.jsx)(Sd,{background:this.props.background})]}):null}},bd.defaultProps={background:`#032033`},bd))||yd,X=je(),wd,Td=N.div` 503 border-radius: 50px; 504 background: ${e=>e.background}; 505 height: ${e=>e.height}; 506 flex: 1; 507 position: relative; 508`,Ed=N.div` 509 height: ${e=>e.height}; 510 width: ${e=>e.width}; 511 overflow: hidden; 512 position: absolute; 513 top: 0; 514 bottom: 0; 515 margin: auto; 516 border-radius: 10px; 517`,Dd=N.div` 518 height: ${e=>e.height}; 519 background: ${q.Theme.green}; 520 transform: ${e=>e.transform}; 521 top: 0; 522 bottom: 0; 523 margin: auto; 524 width: 100%; 525 border-radius: 10px; 526 will-change: transform; 527 -moz-transition: all 0.4s linear; 528 -o-transition: all 0.4s linear; 529 -webkit-transition: all 0.4s linear; 530 transition: all 0.4s linear; 531`,Od=j(wd=class extends V.Component{render(){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Td,{background:this.props.background,height:(0,W.pixify)(this.props.backgroundHeight)}),(0,K.jsx)(Ed,{height:(0,W.pixify)(this.props.progressHeight),width:(0,W.pixify)(this.props.progressBarWidth),children:(0,K.jsx)(Dd,{height:(0,W.pixify)(this.props.progressHeight),transform:`translate(${this.props.xPos}px, 0)`})})]})}})||wd,kd=(0,Y.AnimatedProgressBarWrapper)(Od);D(),w();var Ad,jd;function Md(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Nd=N.div` 532 ${(0,X.fixedCenter)()} 533 display: flex; 534 align-items: flex-start; 535 justify-content: center; 536 background: ${e=>e.background}; 537 overflow-y: auto; 538 overflow-x: hidden; 539 padding: 60px 0; 540 box-sizing: border-box; 541 z-index: ${q.Theme.z.foreground}; 542 .title { 543 margin-bottom: 20px; 544 text-align: center; 545 } 546 .onboarding-spinner { 547 position: absolute; 548 top: 0; 549 z-index: 999; 550 } 551 @media only screen and (max-height: 700px) { 552 padding: 10px 0; 553 } 554 @media only screen and (max-width : 649px) { 555 padding: 0; 556 } 557`,Pd=N.div` 558 display: flex; 559 flex-direction: column; 560 align-items: center; 561 position: relative; 562 height: fit-content; 563 background: ${e=>e.background}; 564 border-radius: ${e=>e.isMobile?0:`20px`}; 565 max-width: ${e=>e.isMobile?`100%`:`500px`}; 566 width: ${e=>e.isMobile?`100%`:`auto`}; 567 width: 100%; 568 z-index: 4; 569 padding: 10px; 570 min-height: ${e=>e.isMobile?`100%`:0}; 571 box-sizing: border-box; 572 @media only screen and (max-width : 649px) { 573 padding: 0; 574 } 575 576 @media only screen and (max-height: 700px) { 577 margin: ${e=>e.isMobile?0:`10px auto`}; 578 } 579`,Fd=N.div` 580 display: flex; 581 flex-direction: column; 582 align-items: center; 583 position: relative; 584 width: 100%; 585 min-height: 0; 586 padding: ${e=>e.padding}; 587 overflow: visible; 588 box-sizing: border-box; 589`,Id=N.div` 590 margin-top: 12px; 591 min-height: 0; 592 width: 100%; 593 overflow: visible; 594 -webkit-overflow-scrolling: touch; 595 padding: 0 10px; 596 box-sizing: border-box; 597`,Ld=N.div` 598 position: relative; 599 width: 100%; 600 height: 20px; 601 display: flex; 602 align-items: center; 603`,Rd=j(Ad=(jd=class extends V.Component{constructor(e){super(e),U.AppUI.setUpdatedDeviceLanguageId(this.props.params?.languageId)}get currentRoute(){let e=this.props.routes||[];return U.AppUI.routeStore.routeName||e[e.length-1]?.name}get currentStep(){return this.props.onboardingSteps.find(e=>e.route===this.currentRoute)}render(){return(0,K.jsxs)(Nd,{background:`#044067`,children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(Cd,{percentageComplete:this.currentIndex/3*20})}),(0,K.jsx)(Pd,{className:`onboarding`,isMobile:U.AppUI.layout.isMobile,background:`#fff`,children:(0,K.jsxs)(Fd,{isMobile:U.AppUI.layout.isMobile,padding:U.AppUI.layout.isMobile?`30px 20px`:`20px 10px`,children:[_(this.currentStep)&&this.props.params?.languageId&&(0,K.jsx)(Ld,{children:(0,K.jsx)(kd,{backgroundHeight:20,progressHeight:20,progressBarWidth:440,borderTopRightRadius:`10px`,borderTopLeftRadius:`10px`,borderBottomRightRadius:`10px`,borderBottomLeftRadius:`10px`,background:`#CCC`,total:this.props.onboardingSteps.length+1,current:this.currentStep.stepNumber})}),(0,K.jsx)(Id,{children:(0,K.jsx)(f,{})})]})})]})}},Md(jd.prototype,`currentRoute`,[E],Object.getOwnPropertyDescriptor(jd.prototype,`currentRoute`),jd.prototype),Md(jd.prototype,`currentStep`,[E],Object.getOwnPropertyDescriptor(jd.prototype,`currentStep`),jd.prototype),jd
603))||Ad,zd=M((0,Y.OnboardingWrapper)(Rd));D();var Bd,Vd,Hd,Ud;function Wd(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Gd(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Kd={DE:[`janusz_happy_1.png`,`janusz_happy_2.png`,`cari_happy_1.png`,`cari_happy_2.png`],FR:[`loane_happy.png`,`loane_thumbs_up.png`],ES:[`marina_happy.png`,`marina_thumbs_up.png`]},qd={DE:[`janusz_disappointed_1.png`,`cari_disappointed_1.png`],FR:[`loane_sorry.png`],ES:[`marina_sorry.png`]},Jd={DE:[`sofie_thoughtful_1.png`,`sofie_thoughtful_2.png`],FR:[`alix_thoughtful_1.png`,`alix_thoughtful_2.png`],ES:[`camila_thoughtful_1.png`,`camila_thoughtful_2.png`]},Yd=j(Bd=(Vd=(Ud=class extends V.Component{constructor(e){super(e),Wd(this,`src`,Hd,this),this.assignImage=()=>{this.props.reaction===`happy`?this.src=(0,G.shuffle)(Kd[this.props.languageId||this.props.card?.languageId])[0]:this.props.reaction===`thoughtful`?this.src=(0,G.shuffle)(Jd[this.props.languageId||this.props.card?.languageId])[0]:this.src=(0,G.shuffle)(qd[this.props.languageId||this.props.card?.languageId])[0]},this.assignImage()}componentDidUpdate(e){this.props.reaction!==e.reaction&&this.assignImage()}render(){return(0,K.jsx)(`img`,{src:`/images/${this.src}`,alt:``})}},Ud.defaultProps={width:`120px`,background:`#FFF`},Ud),Hd=Gd(Vd.prototype,`src`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vd))||Bd,Xd,Zd=N.div` 604 display: flex; 605 flex-direction: row; 606 align-items: center; 607 justify-content: center; 608 width: 100%; 609 height: 100px; 610 background: #FFF; 611 margin-bottom: 20px; 612`,Qd=N.div` 613 img { 614 height: 80px; 615 } 616`,$d=N.div` 617 position: relative; 618 background-color: #fff; 619 border-radius: 10px; 620 padding: 15px; 621 width: 260px; 622 border: 2px solid #CCC; 623 font-size: 15px; 624 font-weight: bold; 625 color: #333; 626 margin-left: 20px; 627 min-height: ${e=>e.minHeight}; 628`,ef=N.div` 629 position: absolute; 630 left: -17px; 631 top: 15px; 632`,tf=j(Xd=class extends V.Component{render(){return(0,K.jsxs)(Zd,{children:[(0,K.jsx)(Qd,{children:(0,K.jsx)(Yd,{height:`80px`,width:`80px`,reaction:this.props.reaction,languageId:U.AppUI.targetLanguageId})}),(0,K.jsxs)($d,{minHeight:(0,W.pixify)(this.props.speechBubbleHeight),children:[(0,K.jsx)(ef,{children:(0,K.jsx)(`img`,{src:`/images/speech_bubble_arrow.png`,alt:``})}),this.props.displayedText]})]})}})||Xd,nf=(0,Y.OnboardingIllustrationWrapper)(tf);D(),w();var rf,af;function of(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var sf=N.div` 633 ${(0,X.fixedCenter)()} 634 display: flex; 635 align-items: flex-start; 636 justify-content: center; 637 background: ${e=>e.background}; 638 overflow-y: auto; 639 overflow-x: hidden; 640 padding: 60px 0; 641 box-sizing: border-box; 642 z-index: ${q.Theme.z.foreground}; 643 .title { 644 margin-bottom: 20px; 645 text-align: center; 646 } 647 .onboarding-spinner { 648 position: absolute; 649 top: 0; 650 z-index: 999; 651 } 652 @media only screen and (max-height: 700px) { 653 padding: 10px 0; 654 } 655 @media only screen and (max-width : 649px) { 656 padding: 0; 657 } 658`,cf=N.div` 659 display: flex; 660 align-items: center; 661 flex-direction: column; 662 position: relative; 663 height: fit-content; 664 background: ${e=>e.background}; 665 border-radius: ${e=>e.isMobile?0:`20px`}; 666 max-width: ${e=>e.isMobile?`100%`:`500px`}; 667 width: ${e=>e.isMobile?`100%`:`auto`}; 668 width: 100%; 669 z-index: 4; 670 padding: 10px; 671 min-height: 0; 672 box-sizing: border-box; 673 @media only screen and (max-width : 649px) { 674 padding: 0; 675 } 676 677 @media only screen and (max-height: 700px) { 678 margin: 10px auto; 679 } 680`,lf=N.div` 681 display: flex; 682 flex-direction: column; 683 align-items: center; 684 justify-content: flex-start; 685 position: relative; 686 width: 100%; 687 min-height: 0; 688 padding: ${e=>e.padding}; 689 overflow: visible; 690 z-index: 999; 691 box-sizing: border-box; 692`,uf=N.div` 693 width: 100%; 694 display: flex; 695 flex-direction: column; 696 justify-content: center; 697 align-items: center; 698 padding: 0 10px; 699 box-sizing: border-box; 700`,df=N.div` 701 position: relative; 702 width: 100%; 703 height: 20px; 704 display: flex; 705 align-items: center; 706`,ff=M(j(rf=(af=class extends V.Component{constructor(e){super(e),U.AppUI.setUpdatedDeviceLanguageId(this.props.params?.languageId||`DE`)}get currentRoute(){let e=this.props.routes||[];return U.AppUI.routeStore.routeName||e[e.length-1]?.name}get currentStep(){return this.props.onboardingSteps.find(e=>e.route===this.currentRoute)}
706render(){return(0,K.jsxs)(sf,{background:(0,Hl.default)(U.AppUI.site?.footerBackgroundColor)?`#044067`:U.AppUI.site?.footerBackgroundColor,children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(Cd,{percentageComplete:this.currentIndex/3*20})}),(0,K.jsx)(cf,{className:`onboarding`,isMobile:U.AppUI.layout.isMobile,background:`#fff`,children:(0,K.jsxs)(lf,{isMobile:U.AppUI.layout.isMobile,padding:U.AppUI.layout.isMobile?`30px 20px`:`20px 10px`,children:[_(this.currentStep)&&this.props.params?.languageId&&(0,K.jsx)(df,{children:(0,K.jsx)(kd,{backgroundHeight:20,progressHeight:20,progressBarWidth:440,borderTopRightRadius:`10px`,borderTopLeftRadius:`10px`,borderBottomRightRadius:`10px`,borderBottomLeftRadius:`10px`,background:`#CCC`,total:this.props.onboardingSteps.length+1,current:this.currentStep.stepNumber})}),_(this.currentStep)&&this.props.params?.languageId&&this.currentStep&&!this.currentStep.lottieAnimation&&(0,K.jsx)(nf,{speechBubbleHeight:this.currentStep.speechBubbleHeight,images:this.currentStep.images,text:this.currentStep.text}),(0,K.jsx)(uf,{children:(0,K.jsx)(f,{})})]})})]})}},of(af.prototype,`currentRoute`,[E],Object.getOwnPropertyDescriptor(af.prototype,`currentRoute`),af.prototype),of(af.prototype,`currentStep`,[E],Object.getOwnPropertyDescriptor(af.prototype,`currentStep`),af.prototype),af))||rf);function pf(e){function t(t){let n=h(),r=l(),i=V.useMemo(()=>Object.fromEntries(new URLSearchParams(n.search)),[n.search]);return(0,K.jsx)(e,{...t,location:{...n,query:i},params:r,routeParams:r})}return t.displayName=`WithRouteParams(${e.displayName||e.name||`Component`})`,t}var mf,hf=j(mf=class extends V.Component{render(){return U.AppUI.siteIsDefault?(0,K.jsx)(zd,{...this.props}):(0,K.jsx)(ff,{...this.props})}})||mf,gf=pf(M((0,Y.OnboardingWrapper)(hf))),Z=e(fe()),_f,vf=N.div` 707 width: 100%; 708`,yf=N.div` 709 position: relative; 710 font-size: 14px; 711 border: 1px solid transparent; 712 line-height: 18px; 713 border: 1px solid #cacaca; 714 padding: 5px; 715 cursor: pointer; 716 .fa-caret-down { 717 position: absolute; 718 right: 10px; 719 top: 4px; 720 color: #cacaca; 721 font-size: 18px; 722 } 723 &:hover { 724 background: whitesmoke; 725 } 726`,bf=N.div` 727 ${e=>e.columns===2&&` 728 display: grid; 729 grid-template-columns: 1fr 1fr; 730 gap: 10px; 731 align-items: stretch; 732 grid-auto-rows: ${e.uniformRowHeight?`${e.uniformRowHeight}px`:`minmax(96px, auto)`}; 733 `} 734`,xf=N.div` 735 background: ${e=>e.background}; 736 color: ${e=>e.color}; 737 border: ${e=>e.border}; 738 border-radius: 10px; 739 margin-bottom: ${e=>e.inGrid?0:`10px`}; 740 text-align: center; 741 cursor: pointer; 742 padding: ${e=>e.inGrid?e.uniformRowHeight&&e.uniformRowHeight<=72?`8px 12px`:`12px 12px`:`15px 0`}; 743 font-weight: bold; 744 box-sizing: border-box; 745 ${e=>e.inGrid&&` 746 min-height: ${e.uniformRowHeight?`${e.uniformRowHeight}px`:`96px`}; 747 height: 100%; 748 display: flex; 749 align-items: center; 750 justify-content: center; 751 `} 752 -webkit-user-select: none; 753 -moz-user-select: none; 754 -ms-user-select: none; 755 user-select: none; 756 -moz-transition: all 0.2s ease-in-out; 757 -o-transition: all 0.2s ease-in-out; 758 -webkit-transition: all 0.2s ease-in-out; 759 transition: all 0.2s ease-in-out; 760 &:hover { 761 transform: scale(1.05); 762 } 763 &:active { 764 background: ${q.Theme.green}; 765 color: #FFF; 766 } 767`,Sf=N.div` 768 font-size: 13px; 769 font-style: italic; 770`,Cf=N.div` 771 ${e=>e.inGrid&&` 772 white-space: normal; 773 overflow-wrap: break-word; 774 word-wrap: break-word; 775 line-height: 1.3; 776 max-width: 100%; 777 `} 778`,wf=j(_f=class extends V.Component{constructor(...e){super(...e),this.staticPropTypes={onSelect:Z.default.func,onClear:Z.default.func,value:Z.default.oneOfType([Z.default.string,Z.default.number,Z.default.bool]),options:Z.default.oneOfType([Z.default.array,Z.default.object]).isRequired}}onSelect(e){this.props.onSelect(e)}_value(){if((0,W.isPresent)(this.props.value)){if((0,G.isString)(this.props.options[0]))return this.props.value;let e=this.props.options.find(e=>e.id===this.props.value);if((0,W.isPresent)(e))return e.name}}background(e,t){return!e&&this.props.backgroundColors?this.props.backgroundColors[t%this.props.backgroundColors.length]:e?q.Theme.green:`#FFF`}color(e,t){return this.background(e,t)===`#FFF`?`#333`:`#FFF`}border(e,t){return this.background(e,t)===`#FFF`?`2px solid #CCC`:`2px solid transparent`}render(){return(0,K.jsxs)(vf,{children:[(0,W.isPresent)(this.props.value)&&this.props.collapseValue&&(0,K.jsxs)(yf,{onClick:()=>
778this.props.onSelect(null),children:[this._value(),(0,K.jsx)(`i`,{className:`fa fa-caret-down`})]}),(!this.props.collapseValue||(0,W.isBlank)(this.props.value)&&(0,W.isPresent)(this.props.options))&&(0,K.jsx)(bf,{columns:this.props.columns,uniformRowHeight:this.props.uniformRowHeight,children:this.props.options&&this.props.options.map((e,t)=>(0,K.jsxs)(xf,{inGrid:this.props.columns===2,uniformRowHeight:this.props.uniformRowHeight,onClick:()=>this.onSelect(e.id),background:this.background(e.id===this.props.value,t),color:this.color(e.id===this.props.value,t),border:this.border(e.id===this.props.value,t),children:[(0,K.jsx)(Cf,{inGrid:this.props.columns===2,children:(0,W.isPresent)(this.props.fieldName)?e[this.props.fieldName]:e.name}),e.description&&(0,K.jsx)(Sf,{children:e.description})]},e.id))})]})}})||_f,Tf,Ef=N.div` 779 display: flex; 780 flex-direction: column; 781 align-items: center; 782 width: 100%; 783 height: ${e=>e.height||`auto`}; 784 overflow: visible; 785 padding: ${e=>e.padding||`5px 10px`}; 786 box-sizing: border-box;
787`,Df=j(Tf=class extends V.Component{render(){return(0,K.jsx)(Ef,{height:this.props.height,padding:this.props.padding,children:this.props.children})}})||Tf,Of,kf=N.div` 788 789`,Af=j(Of=class extends V.Component{render(){return(0,K.jsx)(kf,{children:this.props.children})}})||Of,jf,Mf=N.div` 790 margin-top: 20px; 791`,Nf=j(jf=class extends V.Component{constructor(...e){super(...e),this.continue=()=>{U.AppUI.routeStore.routeToNamed(`onboarding.native_language`,{languageId:this.props.params.languageId})}}render(){return(0,K.jsxs)(Af,{children:[(0,K.jsx)(nf,{text:this.props.illustrationText,reaction:`disappointed`,languageId:U.AppUI.targetLanguageId}),(0,K.jsx)(Df,{children:(0,K.jsx)(wf,{value:this.props.levelId,options:q.Levels.filter(e=>e.abbreviation!==`N`),onSelect:this.props.onSetLevelId,fieldName:`name`})}),(0,K.jsx)(Mf,{children:(0,K.jsx)(I,{disabled:(0,W.isBlank)(this.props.levelId),onClick:this.continue,width:`440px`,height:`60px`,children:`Continue`})})]})}})||jf,Pf=pf((0,Y.OnboardingLevelWrapper)(Nf)),Ff,If,Lf=N.div` 792 flex: 1; 793 width: 100%; 794 padding: ${e=>e.padding}; 795 background: ${e=>e.background}; 796 border-radius: ${e=>e.borderRadius}; 797 a { 798 cursor: pointer; 799 } 800 801 form { 802 margin: 0; 803 } 804 805 label { 806 margin-top: 10px; 807 font-size: 14px; 808 margin: 0; 809 text-align: left; 810 color: ${e=>e.color}; 811 } 812 813 input { 814 width: 100%; 815 margin-bottom: 10px; 816 border-radius: 10px; 817 height: 50px; 818 } 819 820 input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:visited, input[type="submit"]:focus { 821 color: ${e=>e.color}; 822 border: none; 823 } 824`,Rf=M(j(Ff=(If=class extends V.Component{render(){return(0,K.jsx)(Lf,{className:this.props.className,padding:this.props.padding,background:this.props.background,borderRadius:this.props.borderRadius,color:this.props.color,children:this.props.children})}},If.defaultProps={padding:`20px`,color:`#000`},If))||Ff),zf=N.div` 825 826`,Bf=N.div` 827 background: ${e=>e.background}; 828 display: inline-block; 829 width: 100%; 830 padding: 10px; 831 font-size: 16px; 832 line-height: 18px; 833 text-align: center; 834 color: white; 835 margin: 0 0 10px 0; 836 border-radius: 3px; 837`,Vf=({errorMessage:e,successMessage:t})=>(0,K.jsxs)(zf,{children:[!t&&e&&(0,K.jsx)(Bf,{background:q.Theme.orange,children:e}),t&&(0,K.jsx)(Bf,{background:q.Theme.green,children:t})]});j(()=>(0,K.jsx)(Vf,{errorMessage:H.ServerStore.errorMessage,successMessage:H.ServerStore.successMessage})),D();var Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np;function rp(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ip(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ap=N.a` 838 font-size: 12px; 839 text-decoration: underline; 840 width: 100%; 841 text-align: center; 842 display: block; 843 border-top: 1px solid #d9dadc; 844 padding-top: 10px; 845 margin-top: 10px; 846 color: black; 847`,op=N.span` 848`,sp=N.div` 849 margin: 15px 0 10px; 850 text-align: ${e=>e.textAlign}; 851 display: grid; 852 grid-template-columns: auto 1fr; 853 grid-gap: 10px; 854 align-items: start; 855 font-size: 14px; 856 line-height: 1.5; 857`,cp=N.p` 858 color: ${q.Theme.gray}; 859 font-size: 12px; 860 line-height: 1.5; 861 margin: 15px 0 10px; 862`,lp=N.div` 863 position: relative; 864 margin-bottom: ${z.sm}; 865 input { 866 margin-bottom: 0 !important; 867 padding-right: ${z.xl} !important; 868 } 869`,up=N.button` 870 width: fit-content !important; 871 position: absolute; 872 right: 10px; 873 top: calc(50% + 2px); 874 transform: translateY(-50%); 875 background: none; 876 border: none; 877 cursor: pointer; 878 padding: 5px; 879 color: ${q.Theme.gray}; 880 881 &:hover { 882 color: ${q.Theme.darkGray}; 883 } 884`,dp=({accentColor:e,onToggleTerms:t,safePrivacyUrl:n,safeTermsOfServiceUrl:r,siteIsDefault:i,teamName:a,termsAccepted:o})=>{let s=i?`/terms`:`https://www.seedlang.com/terms`,c=i?`/privacy`:`https://www.seedlang.com/privacy`,l=!!(r||n),u=i?q.Theme.blue:e,d=a?.replace(/^Easy /,``);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(sp,{children:[(0,K.jsx)(jn,{value:o,onClick:t,selectedBackgroun
884d:u}),(0,K.jsx)(`span`,{children:i?(0,K.jsxs)(`span`,{children:[`I agree to the `,(0,K.jsx)(`a`,{className:`underline`,href:s,target:`_blank`,rel:`noopener noreferrer`,children:`Terms of Service`}),` & `,(0,K.jsx)(`a`,{className:`underline`,href:c,target:`_blank`,rel:`noopener noreferrer`,children:`Privacy Policy`}),`.`]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{children:`I agree to the `}),l&&(0,K.jsxs)(K.Fragment,{children:[r&&(0,K.jsx)(`a`,{className:`underline`,href:r,target:`_blank`,rel:`noopener noreferrer`,children:`Terms`}),r&&n&&(0,K.jsx)(`span`,{children:` & `}),n&&(0,K.jsx)(`a`,{className:`underline`,href:n,target:`_blank`,rel:`noopener noreferrer`,children:`Privacy Policy`}),(0,K.jsx)(`span`,{children:` of Easy Languages GmbH, and the `})]}),(0,K.jsx)(`a`,{className:`underline`,href:s,target:`_blank`,rel:`noopener noreferrer`,children:`Terms`}),(0,K.jsx)(`span`,{children:` & `}),(0,K.jsx)(`a`,{className:`underline`,href:c,target:`_blank`,rel:`noopener noreferrer`,children:`Privacy Policy`}),(0,K.jsx)(`span`,{children:` of the learning platform Seedlang.`})]})})]}),!i&&(0,K.jsxs)(cp,{children:[`Besides account emails, `,a,` will send you tips for using the platform and learning `,d,`, plus its own offers. You can unsubscribe for free anytime.`]})]})},fp=({accentColor:e,buttonBackground:t,color:n,confirmPassword:r,confirmPasswordFocused:i,disabled:a,email:o,emailFocused:s,errorMessage:c,hidePrivacy:l,hideTitle:u,invalidEmail:d,name:f,onBlurConfirmPassword:p,onBlurEmail:m,onBlurPassword:h,onChangeConfirmPassword:g,onChangeEmail:_,onChangeName:v,onChangePassword:y,onFocusConfirmPassword:b,onFocusEmail:x,onFocusPassword:S,onSubmit:C,onTogglePasswordVisibility:ee,onToggleTerms:w,password:T,passwordFocused:E,safePrivacyUrl:D,safeTermsOfServiceUrl:O,siteIsDefault:te,submitting:ne,successMessage:re,teamName:ie,termsAccepted:ae,unmaskPassword:k})=>(0,K.jsxs)(`span`,{children:[ne&&(0,K.jsx)(P,{background:te?q.Theme.blue:e}),!ne&&!u&&(0,K.jsx)(R,{heading:`3`,center:!0,margin:`0 0 10px 0`,color:`#333`,children:`Create Account`}),(0,K.jsxs)(`form`,{acceptCharset:`UTF-8`,onSubmit:C,id:`new_user`,method:`post`,autoComplete:`off`,children:[(0,K.jsx)(Vf,{errorMessage:c,successMessage:re}),(0,K.jsxs)(op,{color:n||`#333`,children:[(0,K.jsxs)(`div`,{className:`form-email`,children:[(0,K.jsx)(`label`,{htmlFor:`name`,children:`Name`}),(0,K.jsx)(`input`,{type:`text`,autoComplete:`off`,noValidate:!0,value:f,onChange:e=>v(e.target.value),id:`name`,maxLength:q.Constants.MAX_NAME_LENGTH})]}),(0,K.jsxs)(`div`,{className:`form-email`,children:[(0,K.jsx)(`label`,{htmlFor:`email`,children:`Email`}),(0,K.jsx)(`input`,{onFocus:x,onBlur:m,autoComplete:`off`,noValidate:!0,value:o,onChange:e=>_(e.target.value),type:`email`,id:`email`}),(0,W.isPresent)(o)&&d&&!s&&(0,K.jsx)(B,{children:`This email address is invalid. Please try another.`})]}),(0,K.jsxs)(`div`,{className:`form-password`,children:[(0,K.jsx)(`label`,{htmlFor:`user_password`,children:`Password`}),(0,K.jsxs)(lp,{children:[(0,K.jsx)(`input`,{onFocus:S,onBlur:h,noValidate:!0,autoComplete:`off`,id:`user_password`,title:`8 characters minimum`,pattern:`.{8,}`,type:k?`text`:`password`,value:T,onChange:e=>y(e.target.value)}),T&&(0,K.jsx)(up,{type:`button`,onClick:ee,tabIndex:-1,children:(0,K.jsx)(`i`,{className:`fa ${k?`fa-eye-slash`:`fa-eye`}`})})]}),(0,W.isPresent)(T)&&T.length<8&&!E&&(0,K.jsx)(B,{children:`Password needs to be at least 8 characters long`})]}),!te&&(0,K.jsxs)(`div`,{className:`form-password`,children:[(0,K.jsx)(`label`,{htmlFor:`confirm_password`,children:`Confirm Password`}),(0,K.jsxs)(lp,{children:[(0,K.jsx)(`input`,{onFocus:b,onBlur:p,noValidate:!0,autoComplete:`off`,id:`confirm_password`,type:k?`text`:`password`,value:r,onChange:e=>g(e.target.value)}),r&&(0,K.jsx)(up,{type:`button`,onClick:ee,tabIndex:-1,children:(0,K.jsx)(`i`,{className:`fa ${k?`fa-eye-slash`:`fa-eye`}`})})]}),(0,W.isPresent)(r)&&T!==r&&!i&&(0,K.jsx)(B,{children:`Passwords don't match`})]})]}),(0,K.jsx)(dp,{accentColor:e,onToggleTerms:w,safePrivacyUrl:D,safeTermsOfServiceUrl:O,siteIsDefault:te,teamName:ie,termsAccepted:ae}),(0,K.jsx)(I,{margin:`10px 0 0 0`,onClick:C,disabled:a,height:`50px`,width:`100%`,borderRadius:`50px`,background:t,color:`#FFF`,children:`Create Account`})]}),!l&&(0,K.jsx)(ap,{href:`/privacy`,children:`View Our Privacy Page`})]}),pp=j(Hf=(Uf=class extends V.Component{constructor(...e){super(...e),rp(this,`email`,Wf,this),rp(this,`password`,Gf,this),rp(this,`confirmPassword`,Kf,this),rp(this,`name`,qf,this),rp(this,`termsAccepted`,Jf,this),rp(this,`invalidEmail`,Yf,this),rp(this,`emailFocused`,Xf,this),rp(this,`passwordFocused`,Zf,this),rp(this,`confirmPasswordFocused`,Qf,this),rp(this,`unmaskPassword`,$f,this),rp(this,`submitting`,ep,this),rp(this,`alreadyExists`,tp,this),rp(this,`isBrowser`,np,this),this.validateEmail=e=>e===`test--`||e===`test++`?!0:/^(([^<>()[\]\\.,;:\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,}))$/.test(String(e).toLowerCase()),this.onChangeEmail=e=>{this.invalidEmail=!this.validateEmail(e),this.email=e},this.onSubmit=e=>{let t=window.location.href.split(`/group/`)[1];if(e.preventDefault(),this.disabled)return;this.submitting=!0;let n={data:{email:this.email,name:this.name,password:this.password,password_confirmation:this.password,level_id:this.props.levelId||U.AppUI.onboardingLevelId,language_id:this.props.languageId||U.AppUI.onboardingLanguageId,target_language_id:this.props.targetLanguageId,promotion_code:(0,W.getCookieValue)(`promotion-code`),allow_cookies:(0,W.getCookieValue)(`allow-cookies`),allow_youtube:(0,W.getCookieValue)(`allow-youtube`),user_agreed_to_terms:this.termsAccepted,user_agreed_to_email:U.AppUI.siteIsDefault?`unset`:`true`,early_access_token:(0,W.getCookieValue)(`early-access-token`)},queryStrings:{group_id:t}};U.AppUI.user?.id&&U.AppUI.user.guest?H.AuthenticateStore.convertGuest(n,this.afterRegister):H.AuthenticateStore.register(n,this.afterRegister)},this.afterRegister=e=>{this.submitting=!1,e.alreadyExists?(this.alreadyExists=!0,U.AppUI.routeStore.routeTo(`/onboarding/exists?email=${encodeURIComponent(this.email)}`)):e.unconfirmed?this.props.onConfirmationRequired({email:this.email,action:`registration`}):(U.AppUI.SIMULATE_MOBILE_AUTH&&this.isBrowser&&localStorage.setItem(`jwtToken`,e.jwtToken),U.AppUI.setAuthUserStoreShowData(e),U.AppUI.set(`registrationSubmitted`,!0),U.AppUI.siteIsDefault&&(U.AppUI.loadReviewDecks(),U.TreeUI.loadTreesFromTargetLanguage(U.AppUI.targetLanguageId)),this.props.onCloseModal&&this.props.onCloseModal(),this.props.afterRegistration&&this.props.afterRegistration())}}
884get buttonBackground(){return U.AppUI.siteIsDefault?q.Theme.blue:U.AppUI.site.accentColor}get disabled(){let e=!U.AppUI.siteIsDefault&&this.password!==this.confirmPassword;return this.submitting||this.invalidEmail||(0,W.isBlank)(this.password)||this.password.length<8||(0,W.isBlank)(this.email)||(0,W.isBlank)(this.name)||!this.termsAccepted||e}render(){return(0,K.jsx)(fp,{accentColor:U.AppUI.site.accentColor,buttonBackground:this.buttonBackground,color:this.props.color,confirmPassword:this.confirmPassword,confirmPasswordFocused:this.confirmPasswordFocused,disabled:this.disabled,email:this.email,emailFocused:this.emailFocused,errorMessage:H.ServerStore.errorMessage,hidePrivacy:this.props.hidePrivacy,hideTitle:this.props.hideTitle,invalidEmail:this.invalidEmail,name:this.name,onBlurConfirmPassword:()=>this.confirmPasswordFocused=!1,onBlurEmail:()=>this.emailFocused=!1,onBlurPassword:()=>this.passwordFocused=!1,onChangeConfirmPassword:e=>this.confirmPassword=e,onChangeEmail:this.onChangeEmail,onChangeName:e=>this.name=e,onChangePassword:e=>this.password=e,onFocusConfirmPassword:()=>this.confirmPasswordFocused=!0,onFocusEmail:()=>this.emailFocused=!0,onFocusPassword:()=>this.passwordFocused=!0,onSubmit:this.onSubmit,onTogglePasswordVisibility:()=>this.unmaskPassword=!this.unmaskPassword,onToggleTerms:()=>this.termsAccepted=!this.termsAccepted,password:this.password,passwordFocused:this.passwordFocused,safePrivacyUrl:U.AppUI.site.safePrivacyUrl,safeTermsOfServiceUrl:U.AppUI.site.safeTermsOfServiceUrl,siteIsDefault:U.AppUI.siteIsDefault,submitting:this.submitting,successMessage:H.ServerStore.successMessage,teamName:U.AppUI.site.teamName,termsAccepted:this.termsAccepted,unmaskPassword:this.unmaskPassword})}},Wf=ip(Uf.prototype,`email`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Gf=ip(Uf.prototype,`password`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Kf=ip(Uf.prototype,`confirmPassword`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),qf=ip(Uf.prototype,`name`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Jf=ip(Uf.prototype,`termsAccepted`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yf=ip(Uf.prototype,`invalidEmail`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xf=ip(Uf.prototype,`emailFocused`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zf=ip(Uf.prototype,`passwordFocused`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qf=ip(Uf.prototype,`confirmPasswordFocused`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$f=ip(Uf.prototype,`unmaskPassword`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ep=ip(Uf.prototype,`submitting`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tp=ip(Uf.prototype,`alreadyExists`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),np=ip(Uf.prototype,`isBrowser`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return typeof window<`u`&&window.localStorage!==void 0}}),ip(Uf.prototype,`buttonBackground`,[E],Object.getOwnPropertyDescriptor(Uf.prototype,`buttonBackground`),Uf.prototype),ip(Uf.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(Uf.prototype,`disabled`),Uf.prototype),Uf))||Hf,mp=({children:e})=>U.AppUI.siteIsDefault?e:null,hp=({children:e})=>U.AppUI.siteIsDefault?null:e;D();var gp,_p,vp;function yp(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function bp(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var xp=N.div` 885 margin: ${e=>e.margin}; 886 width: 100%; 887 text-align: center; 888 margin-top: 12px; 889`,Sp=N.div` 890 cursor: pointer; 891 text-decoration: underline; 892 margin: ${e=>e.margin}; 893 a { 894 color: ${e=>e.color}; 895 } 896 color: ${e=>e.color}; 897`,Cp=N.div` 898 font-size: 14px; 899 color: ${e=>e.color}; 900`,wp=j(gp=(_p=class extends V.Component{constructor(...e){super(...e),yp(this,`expanded`,vp,this),this.expandFormFields=()=>{U.AppUI.set(`expandedEmailRegistrationFields`,!0)}}get isExpanded(){return!this.props.expandEmail||U.AppUI.expandedEmailRegistrationFields}componentDidMount(){H.ServerStore.clearMessages()}get showForm(){return!0}render(){return(0,K.jsxs)(Rf,{padding:0,background:this.props.background,width:this.props.width,borderRadius:this.props.borderRadius,color:this.props.color,children:[!this.show
900Form&&(0,K.jsx)(I,{onClick:this.expandFormFields,scaleOnHover:`1.05`,height:`50px`,borderRadius:`50px`,width:`100%`,background:U.AppUI.siteIsDefault?q.Theme.blue:U.AppUI.site.accentColor,color:`#FFF`,backgroundOnHover:`#FFF`,children:`Create Account`}),this.showForm&&(0,K.jsx)(pp,{checkout:this.props.checkout,showEmailConfirmation:this.props.showEmailConfirmation,showTerms:this.props.showTerms,hidePrivacy:this.props.hidePrivacy,hideTitle:this.props.hideTitle,hideSpinner:this.props.hideSpinner,color:this.props.color,levelId:this.props.levelId,languageId:this.props.languageId,targetLanguageId:this.props.targetLanguageId,onCloseModal:this.props.onCloseModal,afterRegistration:this.props.afterRegistration,onConfirmationRequired:this.props.onConfirmationRequired}),this.props.contentAfterButton,this.props.onSigninLinkClick&&!this.props.hideSigninLink&&(0,K.jsxs)(xp,{children:[(0,K.jsx)(mp,{children:(0,K.jsx)(Sp,{onClick:this.props.onSigninLinkClick,color:`#FFF`,children:`Already have an account?`})}),(0,K.jsx)(hp,{children:(0,K.jsxs)(Cp,{color:U.AppUI.site?.footerBackgroundColor||`#FFF`,children:[`Already a Member?`,` `,(0,K.jsx)(Sp,{as:`span`,onClick:this.props.onSigninLinkClick,color:U.AppUI.site?.footerBackgroundColor||`#FFF`,children:`Sign In.`})]})})]})]})}},vp=bp(_p.prototype,`expanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bp(_p.prototype,`showForm`,[E],Object.getOwnPropertyDescriptor(_p.prototype,`showForm`),_p.prototype),_p))||gp,Tp,Ep=N.div` 901 width: 100%; 902 height: 50px; 903 cursor: pointer; 904 905 -webkit-user-select: none; 906 -moz-user-select: none; 907 -ms-user-select: none; 908 user-select: none; 909 -moz-transition: all 0.2s ease-in-out; 910 -o-transition: all 0.2s ease-in-out; 911 -webkit-transition: all 0.2s ease-in-out; 912 transition: all 0.2s ease-in-out; 913 914 &:hover { 915 transform: scale(${e=>e.scaleOnHover}); 916 } 917 svg { 918 fill: #FFF; 919 } 920`,Dp=j(Tp=class extends V.Component{constructor(...e){super(...e),this.initAppleSignIn=()=>{(0,W.loadScript)(`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`).then(()=>{setTimeout(this.adjustButtonStyle,1),window.AppleID.auth.init({clientId:`com.seedlang.web.main`,scope:`name email`,redirectURI:`https://seedlang.com/apple/callback/not_in_use`,state:``,nonce:``,usePopup:!0}),document.addEventListener(`AppleIDSignInOnSuccess`,this.onAppleSignInSuccess)})},this.onAppleSignInSuccess=e=>{H.AuthenticateStore.signInWithAppleAuthorization({data:{authorization:e.detail.authorization,assign_membership_group_id:U.AppUI.getCookieValue(`assign_membership_group_id`),concept_id:this.props.conceptId}},this.props.afterSignIn)},this.adjustButtonStyle=()=>{let e=document.querySelector(`#appleid-signin > *[role=button]`);e&&(e.style.maxWidth=null)}}componentDidMount(){this.initAppleSignIn()}render(){return(0,K.jsx)(Ep,{id:`appleid-signin`,"data-color":`black`,"data-border":`false`,"data-border-radius":`50`,"data-type":`sign in`,mode:`center-align`,scaleOnHover:this.props.scaleOnHover})}})||Tp;D();var Op,kp,Ap,jp,Mp;function Np(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Pp(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Fp=N.div` 921 font-size: 14px; 922 margin: -5px 0 10px 0; 923 font-weight: bold; 924 text-align: center; 925`,Ip=({accentColor:e,afterSignIn:t,autoFocus:n,disabled:r,email:i,errorMessage:a,onChangeEmail:o,onChangePassword:s,onSubmit:c,password:l,published:u,signInHeader:d,siteIsDefault:f,successMessage:p,teamName:m,transparentAccentColor:h})=>(0,K.jsx)(Rf,{padding:0,color:f?`#333`:`#000`,children:(0,K.jsxs)(`form`,{acceptCharset:`UTF-8`,onSubmit:c,id:`new_user`,children:[(0,K.jsx)(R,{heading:`3`,center:!0,margin:`0 0 10px 0`,color:`#333`,children:d}),u&&!f&&(0,K.jsx)(Fp,{children:`Sign in with Your ${m} or Seedlang Credentials`}),!u&&!f&&(0,K.jsx)(Fp,{children:`Sign in With Your Early Access Credentials`}),(0,K.jsx)(Vf,{errorMessage:a,successMessage:p}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{htmlFor:`user_email`,children:`Email`}),(0,K.jsx)(`input`,{required:!0,autoFocus:n,type:`email`,value:i,onChange:e=>o(e.target.value)})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{htmlFor:`user_password`,children:`Password`}
925),(0,K.jsx)(`input`,{required:!0,type:`password`,value:l,onChange:e=>s(e.target.value)})]}),(0,K.jsx)(I,{margin:`10px 0 0 0`,width:`100%`,disabled:r,onClick:c,height:`50px`,borderRadius:`50px`,scaleOnHover:r?1:1.05,background:f||(0,W.isBlank)(e)?q.Theme.blue:e,backgroundOnHover:f||(0,W.isBlank)(e)?q.Theme.blue:h,backgroundOnActive:f||(0,W.isBlank)(e)?q.Theme.blue:e,color:r?`#e4e4e4`:`#FFF`,children:`Sign In`}),f&&(0,K.jsx)(`div`,{style:{margin:`5px 0 0 0`},children:(0,K.jsx)(Dp,{afterSignIn:t,scaleOnHover:1.05})})]})}),Lp=j(Op=(kp=class extends V.Component{constructor(...e){super(...e),Np(this,`email`,Ap,this),Np(this,`password`,jp,this),Np(this,`readyForRedirect`,Mp,this),this.onSubmit=e=>{e.preventDefault(),this.disabled||H.AuthenticateStore.signIn({data:{assign_membership_group_id:U.AppUI.getCookieValue(`assign_membership_group_id`),concept_id:this.props.conceptId,password:this.password,email:this.email,early_access_token:(0,W.getCookieValue)(`early-access-token`)},failureCallback:this.onSignInFailure},this.afterSignIn)},this.afterSignIn=e=>{e.success?(this.afterLoadUser(e),this.readyForRedirect=!0,U.AppUI.siteIsDefault&&(U.AppUI.loadReviewDecks(),U.TreeUI.loadTreesFromTargetLanguage(U.AppUI.targetLanguageId)),this.props.onboarding&&U.AppUI.createEvent(`onboarding - finish onboarding`)):H.ServerStore.setErrorMessage(e.message)},this.onSignInFailure=e=>{e.code===`unconfirmed`&&this.props.onConfirmationRequired({email:this.email,action:`signIn`})},this.afterLoadUser=e=>{U.AppUI.setAuthUserStoreShowData(e),this.props.onboarding&&(this.readyForRedirect=!0)}}get disabled(){return(0,W.isBlank)(this.email)||(0,W.isBlank)(this.password)}get signInHeader(){return U.AppUI.siteIsDefault?`Sign In to ${U.AppUI.user?.site?.name}`:`Sign In`}componentDidMount(){H.ServerStore.clearMessages(),this.disposeAutorun=te(()=>{this.readyForRedirect&&U.AppUI.routeToSignedInHome()})}componentWillUnmount(){this.disposeAutorun&&this.disposeAutorun()}render(){return(0,K.jsx)(Ip,{accentColor:U.AppUI.site.accentColor,afterSignIn:this.afterSignIn,autoFocus:!U.AppUI.layout.isMobile,disabled:this.disabled,email:this.email,errorMessage:H.ServerStore.errorMessage,onChangeEmail:e=>this.email=e,onChangePassword:e=>this.password=e,onSubmit:this.onSubmit,password:this.password,published:U.AppUI.site.published,signInHeader:this.signInHeader,siteIsDefault:U.AppUI.siteIsDefault,successMessage:H.ServerStore.successMessage,teamName:U.AppUI.user?.site?.teamName,transparentAccentColor:U.AppUI.site.transparentAccentColor})}},Ap=Pp(kp.prototype,`email`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),jp=Pp(kp.prototype,`password`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Mp=Pp(kp.prototype,`readyForRedirect`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pp(kp.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(kp.prototype,`disabled`),kp.prototype),Pp(kp.prototype,`signInHeader`,[E],Object.getOwnPropertyDescriptor(kp.prototype,`signInHeader`),kp.prototype),kp))||Op;D();var Rp,zp,Bp,Vp;function Hp(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Up(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var tee=({accentColor:e,disabled:t,email:n,errorMessage:r,onChangeEmail:i,onSubmit:a,siteIsDefault:o,submitting:s,successMessage:c})=>(0,K.jsx)(Rf,{padding:`20px`,children:(0,K.jsxs)(`form`,{onSubmit:a,autoComplete:`off`,children:[(0,K.jsx)(R,{center:!0,heading:`3`,margin:`0 0 10px 0`,color:`#333`,children:`Forgot Your Password?`}),(0,K.jsx)(Vf,{errorMessage:r,successMessage:c}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{style:{color:`#333`},htmlFor:`user_email`,children:`Email`}),(0,K.jsx)(`input`,{required:!0,type:`email`,value:n,onChange:e=>i(e.target.value)})]}),s&&(0,K.jsx)(P,{background:o?q.Theme.blue:e}),!s&&(0,K.jsx)(I,{margin:`10px 0 0 0`,onClick:a,disabled:t,height:`50px`,width:`100%`,borderRadius:`50px`,background:o?q.Theme.blue:e,backgroundOnHover:o?q.Theme.blue:e,color:t?`#e4e4e4`:`#FFF`,children:`Reset Password`})]})}),Wp=j(Rp=(zp=class extends V.Component{constructor(...e){super(...e),Hp(this,`email`,Bp,this),Hp(this,`submitting`,Vp,this),this.onSubmit=e=>{e.preventDefault(),this.disabled||(this.submitting=!0,H.AuthenticateStore.sendResetPasswordInstructions({data:{email:this.email}},this.afterSubmit))},this.afterSubmit=()=>{this.submitting=!1}}get disabled(){return!(0,W.isValidEmail)(this.email)}componentDidMount(){H.ServerStore.clearMessages()}render(){return(0,K.jsx)(tee,{accentColor:U.AppUI.site.accentColor,disabled:this.disabled,email:this.email,errorMessage:H.ServerStore.errorMessage,onChangeEmail:e=>this.email=e,onSubmit:this.onSubmit,siteIsDefault:U.AppUI.siteIsDefault,submitting:this.submitting,successMessage:H.ServerStore.successMessage})}},Bp=Up(zp.prototype,`email`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Vp=Up(zp.prototype,`submitting`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Up(zp.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(zp.prototype,`disabled`),zp.prototype),zp))||Rp,Gp=class extends V.Component{render(){return(0,K.jsxs)(R,{color:this.props.onDarkBackgroun
925d?`#FFF`:`#333`,style:{marginTop:this.props.marginTop,fontSize:14},textAlign:this.props.textAlign,children:[(0,K.jsx)(K.Fragment,{children:`If you have any questions, you can `}),(0,K.jsx)(F,{to:`contact`,className:`underline`,style:{color:`inherit`},children:`contact us here`}),U.AppUI.site.paymentMigrationConfig.infoUrl&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{children:` or `}),(0,K.jsx)(`a`,{href:U.AppUI.site.paymentMigrationConfig.infoUrl,className:`underline`,style:{color:`inherit`},children:`read more about our migration process here`})]}),(0,K.jsx)(`span`,{children:`.`})]})}};Gp.defaultProps={marginTop:`15px`},D();var Kp,qp;function Jp(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var nee=N.div` 926 ${(0,X.flexCenterColumn)()} 927 margin: ${e=>e.margin}; 928`,Yp=M(j(Kp=(qp=class extends V.Component{constructor(...e){super(...e),this.onClick=()=>{if(U.AppUI.userIsSignedInAndNotGuest){let e=new URL(`https://www.patreon.com/oauth2/authorize`);e.searchParams.set(`response_type`,`code`),e.searchParams.set(`client_id`,this.clientId),e.searchParams.set(`redirect_uri`,this.redirectUrl),e.searchParams.set(`scope`,`identity identity[email] identity.memberships`),window.location.href=e.toString();return}localStorage.setItem(`showPatreonConnectOnConfirm`,`true`),U.AppUI.authenticateStore.redirectRouteNameAfterLogin=`settings.patreon`,U.AppUI.routeStore.routeToNamed(`onboarding.register`)}}get clientId(){return U.AppUI.site.patreonClientId}get redirectUrl(){return`https://${U.AppUI.site.domainString}/api/patreon_callbacks/oauth`}render(){return(0,K.jsx)(nee,{margin:this.props.margin,children:(0,K.jsx)(I,{background:U.AppUI.site.accentColor,width:this.props.width,fontSize:this.props.fontSize,height:this.props.height,borderRadius:this.props.borderRadius,onClick:this.onClick,children:`Connect Patreon Account`})})}},Jp(qp.prototype,`clientId`,[E],Object.getOwnPropertyDescriptor(qp.prototype,`clientId`),qp.prototype),Jp(qp.prototype,`redirectUrl`,[E],Object.getOwnPropertyDescriptor(qp.prototype,`redirectUrl`),qp.prototype),qp))||Kp);D(),be();var Xp,Zp,Qp;function ree(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function iee(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var aee=N.div` 929 ${(0,X.flexLeftColumn)()} 930`,$p=N.div` 931 ${(0,X.flexLeftColumn)()} 932 max-width: 500px; 933 min-width: ${e=>e.minWidth}; 934`,oee=N.div` 935 936`,see=N.div` 937 display: flex; 938 justify-content: center; 939 margin-top: 5px; 940`,em=N.div` 941 width: 100%; 942 ${(0,X.flexLeftColumn)()} 943`,tm=N.div` 944 font-size: 14px; 945 line-height: 18px; 946 margin: 10px 0 0 0; 947 color: #616161; 948 width: 80%; 949 a { 950 color: #616161; 951 } 952`,nm=M(j(Xp=(Zp=class extends V.Component{constructor(...e){super(...e),ree(this,`showConfirmationModal`,Qp,this),this.onRemovePatreonUser=()=>{H.AuthUserStore.update({data:{patreon_user_id:null}},()=>U.AppUI.loadUser()),this.showConfirmationModal=!1}}get introText(){return`If you have an ${U.AppUI.site.teamName} membership on Patreon, ${this.props.onboarding?`sign up with your Patreon account`:`you can link your account here`} to get all the perks of your membership:`}render(){let e=this.props.onDarkBackground?`#FFF`:`#333`;return(0,K.jsxs)(aee,{children:[this.showConfirmationModal&&(0,K.jsxs)(Dn,{onCloseModal:()=>this.showConfirmationModal=!1,title:`Disconnect From Patreon`,width:U.AppUI.layout.isMobile?`90%`:`500px`,background:U.AppUI.site.accentColor,children:[(0,K.jsx)(R,{center:!0,children:`Are you sure you want to disconnect your account from Patreon?`}),U.AppUI.user.activePatreonMember&&(0,K.jsx)(R,{center:!0,children:`Once disconnected, you will not be able to access your benefits.`}),!U.AppUI.user.activePatreonMember&&U.AppUI.user.paymentMigration.isComplete&&(0,K.jsx)(R,{center:!0,children:`You have completed the migration process. After disconnecting, you will still have access to your benefits and perks.`}),(0,K.jsxs)(see,{children:[(0,K.jsx)(I,{borderRadius:`20px`,fontSize:`16px`,height:`40px`,width:`60px`,padding:`0 10px`,margin:`2px 2px 0px 2px`,background:ve.green,onClick:this.onRemovePatreonUser,children:`Yes`}),(0,K.jsx)(I,{borderRadius:`20px`,fontSize:`16px`,height:`40px`,width:`60px`,padding:`0 10px`,margin:`2px 2px 0px 2px`,background:ve.red,onClick:()=>this.showConfirmationModal=!1,children:`No`})]})]}),(0,K.jsxs)(oee,{children:[!U.AppUI.authUserStore.showData.patreonUser&&(0,K.jsxs)($p,{minWidth:this.props.onboarding||U.AppUI.layout.isMobile?`0`:`400px`,children:[(0,K.jsx)(R,{margin:`0 0 20px 0`,color:e,style:{textWrap:`balance`},children:this.introText}),(0,K.jsx)(Yp,{}
952),(0,K.jsx)(Gp,{onDarkBackground:this.props.onDarkBackground})]}),U.AppUI.authUserStore.showData.patreonUser&&(0,K.jsxs)($p,{style:{minWidth:this.props.onboarding?`0`:`400px`},children:[(0,K.jsx)(em,{children:(0,K.jsx)(`h3`,{children:`Patreon Account Details`})}),(0,K.jsxs)(em,{children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(`b`,{children:`Patreon Email`})}),(0,K.jsx)(`div`,{children:U.AppUI.authUserStore.showData.patreonUser.email}),(0,K.jsx)(`br`,{})]}),(0,W.isPresent)(U.AppUI.authUserStore.showData.patreonUser.rewardTitle)&&(0,K.jsxs)(em,{children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(`b`,{children:`Membership Type`})}),(0,K.jsx)(`div`,{children:U.AppUI.authUserStore.showData.patreonUser.rewardTitle}),(0,K.jsx)(`br`,{})]}),!U.AppUI.user.paymentMigration?.isInProgress&&this.props.showRemoveLink&&(0,K.jsx)(em,{children:(0,K.jsx)(I,{onClick:()=>this.showConfirmationModal=!0,children:`Disconnect From Patreon`})}),this.props.showRemoveLink&&U.AppUI.user.paymentMigration?.isInProgress&&(0,K.jsxs)(tm,{children:[`You are currently migrating your payment from Patreon to our platform. You cannot disconnect your account as the process is happening. To see the status of your migration, `,(0,K.jsx)(F,{to:`settings.billing`,className:`underline`,children:`go here.`})]}),U.AppUI.authUserStore.showData.patreonUser.isPatreonActive&&(0,K.jsx)(em,{children:(0,K.jsx)(F,{to:`worksheets.index`,children:(0,K.jsx)(I,{margin:`10px 0 0 0`,children:`View Content`})})})]})]})]})}},Qp=iee(Zp.prototype,`showConfirmationModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zp))||Xp);D();var rm,im,am,om,sm;function cm(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function lm(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var cee=N.div` 953 display: flex; 954 align-items: center; 955 justify-content: flex-start; 956 flex-direction: column; 957 width: 100%; 958 padding: 0; 959 position: relative; 960 .patreon-logo { 961 border-radius: 4px; 962 width: 17px; 963 margin-right: 5px; 964 margin-top: 3px; 965 } 966 .fa-warning { 967 color: #333!important; 968 } 969 .facebook-button { 970 margin: 0 0 10px 0!important; 971 } 972 button { 973 width: 100%; 974 } 975 label { 976 font-size: 14px; 977 margin-bottom: 0; 978 } 979 .form-wrapper { 980 padding: 0; 981 } 982`,um=N.div` 983 ${(0,X.flexCenterColumn)()} 984 width: 100%; 985`,dm=N.div` 986 width: 100%; 987 margin-top: ${e=>e.marginTop}; 988`,fm=N.div` 989 cursor: pointer; 990 font-size: 14px; 991 text-decoration: underline; 992 margin: ${e=>e.margin}; 993 a { 994 color: ${e=>e.color}; 995 } 996 color: ${e=>e.color}; 997`,pm=N.div` 998 margin: ${e=>e.margin}; 999 width: 100%; 1000 text-align: center; 1001`,lee=N.div` 1002 position: absolute; 1003 top: 60px; 1004 right: -10px; 1005 .close-icon { 1006 width: 30px; 1007 } 1008 svg { 1009 width: 30px; 1010 fill: #333; 1011 } 1012 margin-top: -50px; 1013`,uee=N.div` 1014 padding: 20px; 1015 background: whitesmoke; 1016 border-radius: 10px; 1017 width: 100%; 1018`,dee=j(rm=(im=(sm=class extends V.Component{constructor(e){super(e),cm(this,`submittedRegistration`,am,this),cm(this,`authType`,om,this),this.afterRegistration=()=>{this.submittedRegistration=!0,this.props.afterRegistration()},this.reset=()=>{this.submittedRegistration=!1,this.authType=`registration`,U.AppUI.set(`expandedEmailRegistrationFields`,!1)},this.signIn=()=>{this.authType=`signIn`},this.onClickForgotPassword=()=>{this.authType=`forgotPassword`},this.gotoMemberships=()=>{U.AppUI.routeStore.routeToNamed(`memberships.index`)},this.onConfirmationRequired=()=>{throw Error(`Confirmation required, but it should not be required on this site`)},U.AppUI.createEvent(`onboarding - view sign up`,{device:`web`}),U.AppUI.routeStore.routeName===`onboarding.confirm`?this.authType=`confirm`:[`onboarding.sign_in`,`landing`,`worksheets.index`,`page.show`,`videos.index`,`podcast.index`,`memberships.index`].includes(U.AppUI.routeStore.routeName)?this.authType=`signIn`:U.AppUI.routeStore.routeName===`onboarding.forgot_password`&&(this.authType=`forgotPassword`)}componentDidMount(){U.AppUI.userIsLoaded&&this.authType===`signIn`&&U.AppUI.routeToHome()}get groupId(){return window.location.href.split(`/group/`)[1]}render(){return(0,K.jsxs)(cee,{justifyContent:`center`,children:[(0,K.jsx)(nf,{text:this.authType===`registration`?`Please register with email to save your progress!`:`Welc
1018ome back to Seedlang!`,reaction:`happy`,languageId:U.AppUI.targetLanguageId}),U.AppUI.expandedEmailRegistrationFields&&(0,K.jsx)(lee,{children:(0,K.jsx)(J.CloseIcon,{onClick:()=>this.reset()})}),(0,K.jsxs)(um,{children:[this.props.showSpinner&&(0,K.jsx)(P,{background:q.Theme.blue}),!this.props.showSpinner&&this.authType===`registration`&&!1,!this.props.showSpinner&&this.authType===`patreon`&&(0,K.jsx)(uee,{children:(0,K.jsx)(nm,{onboarding:!0})}),!this.props.showSpinner&&this.authType===`registration`&&(0,K.jsx)(wp,{hideSpinner:!0,hidePrivacy:!0,hideSigninLink:!0,onboarding:!0,padding:0,expandEmail:!0,hideTitle:(0,W.isPresent)(this.props.params.languageId),onClickSignIn:this.signIn,afterRegistration:this.afterRegistration,languageId:this.props.languageId,targetLanguageId:this.props.params?.languageId||this.props.targetLanguageId,levelId:this.props.levelId,onConfirmationRequired:this.onConfirmationRequired,onSigninLinkClick:this.signIn}),!this.props.showSpinner&&this.authType===`forgotPassword`&&(0,K.jsx)(Wp,{hideSpinner:!0,onboarding:!0,padding:`0px 0px 20px 0px`}),!this.props.showSpinner&&this.authType===`signIn`&&(0,K.jsx)(Lp,{hideSpinner:!0,onboarding:!0,padding:`0px 0px 20px 0px`,onConfirmationRequired:this.onConfirmationRequired}),this.props.targetLanguageId&&!this.groupId&&!this.props.showSpinner&&!this.props.hideGuestSignIn&&this.authType===`registration`&&!this.submittedRegistration&&!U.AppUI.registrationSubmitted&&!U.AppUI.expandedEmailRegistrationFields&&!U.AppUI.userIsLoaded&&(0,K.jsx)(I,{height:`50px`,borderRadius:`50px`,background:`#8D8D8D`,margin:`10px 0 0 0`,scaleOnHover:1.05,backgroundOnHover:`#9d9d9d`,onClick:this.props.onSkipRegistration,children:`Skip For Now`}),!this.props.showSpinner&&(0,K.jsx)(dm,{marginTop:this.authType===`forgotPassword`?`0`:`20px`,children:(0,K.jsxs)(pm,{margin:`0`,children:[this.authType===`signIn`&&(0,K.jsx)(fm,{onClick:this.reset,color:`#333`,children:`Register for a New Account`}),[`signIn`,`patreon`].includes(this.authType)&&(0,K.jsx)(fm,{onClick:this.onClickForgotPassword,color:`#333`,children:`Forgot Password?`}),[`forgotPassword`,`patreon`].includes(this.authType)&&(0,K.jsxs)(fm,{onClick:this.signIn,color:`#333`,children:[`Sign In to `,U.AppUI.user.site.name]}),this.authType===`registration`&&(0,K.jsx)(fm,{onClick:this.signIn,color:`#333`,children:`Already have an account?`})]})})]})]})}},sm.defaultProps={authType:`registration`},sm),am=lm(im.prototype,`submittedRegistration`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),om=lm(im.prototype,`authType`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.authType}}),lm(im.prototype,`groupId`,[E],Object.getOwnPropertyDescriptor(im.prototype,`groupId`),im.prototype),im))||rm,fee=(0,Y.OnboardingRegistrationWrapper)(dee);D();var mm,hm,gm,_m,vm,ym;function bm(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function xm(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Sm=N.div` 1019 font-size: 16px; 1020 line-height: 18px; 1021 color: #333; 1022 margin: 20px 0; 1023 text-align: center; 1024 color: ${e=>e.color}; 1025 text-wrap: balance; 1026`,Cm=N(F)` 1027 font-size: 14px; 1028 color: #000; 1029 text-decoration: underline; 1030`,wm=N(Rf)` 1031 display: flex; 1032 flex-direction: column; 1033 min-height: 100%; 1034`,Tm=N.div` 1035 display: flex; 1036 flex: 1; 1037 flex-direction: column; 1038 min-height: 100%; 1039 width: 100%; 1040`,Em=N.div` 1041 width: 100%; 1042`,Dm=N.div` 1043 font-size: 14px; 1044 margin-top: auto; 1045 padding-top: 20px; 1046 text-align: center; 1047 width: 100%; 1048`,Om=N(F)` 1049 color: #333; 1050 text-decoration: underline; 1051`,km=N.button` 1052 border: none; 1053 background: none; 1054 cursor: pointer;
1055 color: inherit; 1056 text-decoration: underline; 1057 width: auto !important; 1058 padding: 0; 1059 display: inline; 1060`,Am=({children:e,siteIsDefault:t})=>(0,K.jsx)(R,{center:!0,heading:`3`,color:t?`#FFF`:`#333`,children:e}),jm=({accentColor:e,background:t,borderRadius:n,confirmationTitle:r,errorMessage:i,loading:a,mode:o,nextStep:s,onContinueClick:c,onResendClick:l,patreonButton:u,showContactLink:d,showPatreonConnect:f,signIn:p,siteIsDefault:m,width:h})=>(0,K.jsx)(wm,{padding:0,background:t,borderRadius:n,width:h,children:(0,K.jsxs)(Tm,{children:[(0,K.jsx)(Em,{children:a?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Am,{siteIsDefault:m,children:`Email Confirmation`}),(0,K.jsx)(P,{background:e||q.Theme.blue})]}):i?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Am,{siteIsDefault:m,children:`Email Confirmation`}),(0,K.jsx)(Sm,{color:m?`#FFF`:`#333`,children:i===`Email was already confirmed, please try signing in`?(0,K.jsxs)(K.Fragment,{children:[`Email was already confirmed, please try `,(0,K.jsx)(km,{onClick:p,children:`signing in`}),`.`]}):i})]}):o===`confirmationRequired`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Am,{siteIsDefault:m,children:`Please confirm your email address`}),(0,K.jsxs)(Sm,{color:m?`#FFF`:`#333`,children:[(0,K.jsx)(`p`,{children:`Please click the link in the email we have sent you.`}),(0,K.jsx)(`p`,{children:`Allow a few minutes for the email to arrive and check your Spam folder.`}),(0,K.jsx)(I,{height:`50px`,width:`100%`,margin:`20px 0 0 0`,borderRadius:`50px`,background:e,backgroundOnHover:e,color:`#FFF`,onClick:l,children:`Resend email`})]})]}):o===`emailResent`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Am,{siteIsDefault:m,children:`Please confirm your email address`}),(0,K.jsxs)(Sm,{background:q.Theme.green,padding:10,marginTop:10,children:[(0,K.jsx)(`p`,{children:`The confirmation email has been resent.`}),(0,K.jsx)(`p`,{children:`Allow a few minutes for the email to arrive and check your Spam folder.`})]})]}):o===`confirmed`?(0,K.jsxs)(K.Fragment,{children:[r&&(0,K.jsx)(Am,{siteIsDefault:m,children:r}),(0,K.jsxs)(Sm,{children:[f&&(0,K.jsxs)(An,{gap:`md`,alignItems:`center`,children:[(0,K.jsx)(`p`,{children:`Do you have a paid Patreon membership? Connect it now to access your benefits.`}),u,(0,K.jsx)(Cm,{to:s.path,children:`Go Home`})]}),!f&&s?.path&&(0,K.jsx)(F,{to:s.path,children:(0,K.jsx)(I,{height:`50px`,width:`100%`,borderRadius:`50px`,background:e,backgroundOnHover:e,color:`#FFF`,onClick:c,children:s.label??`Continue`})})]})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Am,{siteIsDefault:m,children:`Email Confirmation`}),(0,K.jsx)(Sm,{color:m?`#FFF`:`#333`,children:`Something went wrong. Please try again.`})]})}),d&&!m&&(0,K.jsx)(Dm,{children:(0,K.jsx)(Om,{to:`/contact`,children:`Contact Us`})})]})}),Mm=j(mm=(hm=class extends V.Component{constructor(...e){super(...e),bm(this,`loading`,gm,this),bm(this,`emailResent`,_m,this),bm(this,`errorMessage`,vm,this),bm(this,`mode`,ym,this),this.onResendClick=async()=>{try{this.errorMessage=null,this.loading=!0,this.mode=`resendingEmail`,await H.AuthenticateStore.sendConfirmationInstructions(),this.mode=`emailResent`}catch(e){console.error(e),this.errorMessage=e.message??`Sorry, there was an error sending the confirmation email.`}finally{this.loading=!1}},this.validateToken=async()=>{try{if(this.errorMessage=null,this.loading=!0,this.mode=`validatingToken`,await H.AuthenticateStore.validateEmailConfirmationToken({data:{token:this.tokenFromUrl}}),await U.AppUI.loadUserPromise({queryStrings:{cache_buster:Math.round(Math.random()*10**12)}}),!U.AppUI.user||U.AppUI.user.signedOut||!U.AppUI.user.id)throw Error(`Sorry, an application error occurred. Your email address has been confirmed, but the server did not return user details. Please try signing in on the home page.`);this.mode=`confirmed`}catch(e){console.error(e),this.errorMessage=e.message??`Sorry, there was an error validating your email address.`}finally{this.loading=!1}},this.onContinueClick=()=>{U.AfterAuth.clear()}}componentDidMount(){H.ServerStore.clearMessages(),this.tokenFromUrl&&this.validateToken()}get tokenFromUrl(){return new URLSearchParams(window.location.search).get(`token`)}get nextStep(){return U.AfterAuth.value?U.AfterAuth.value:U.AppUI.user?.enterNewPassword?{path:`/onboarding/create_password`}:{path:U.AppUI.userIsSignedInAndNotGuest?U.AppUI.site.signedInHomePageRoute:U.AppUI.site.signedOutHomePageRoute,label:`Go Home`}}get confirmationTitle(){return`Email confirmed`}get patreonConnectAvailable(){return U.AppUI.site.patreonClientId&&!U.AppUI.authUserStore.showData.patreonUser}get showPatreonConnect(){if(!this.patreonConnectAvailable)return!1;let e=localStorage.getItem(`showPatreonConnectOnConfirm`)===`true`;return e&&localStorage.removeItem(`showPatreonConnectOnConfirm`),e}get showContactLink(){return[`confirmationRequired`,`emailResent`].includes(this.mode)}render(){let e=this.mode===`confirmed`;return(0,K.jsx)(jm,{accentColor:U.AppUI.site.accentColor,background:this.props.background,borderRadius:this.props.borderRadius,confirmationTitle:e?this.confirmationTitle:null,errorMessage:this.errorMessage,loading:this.loading,mode:this.mode,nextStep:this.nextStep,onContinueClick:this.onContinueClick,onResendClick:this.onResendClick,patreonButton:(0,K.jsx)(Yp,{}),showContactLink:this.showContactLink,showPatreonConnect:e?this.showPatreonConnect:!1,signIn:this.props.signIn,siteIsDefault:U.AppUI.siteIsDefault,width:this.props.width})}},gm=xm(hm.prototype,`loading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_m=xm(hm.prototype,`emailResent`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vm=xm(hm.prototype,`errorMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ym=xm(hm.prototype,`mode`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`confirmationRequired`}}),xm(hm.prototype,`confirmationTitle`,[E],Object.getOwnPropertyDescriptor(hm.prototype,`confirmationTitle`),hm.prototype),xm(hm.prototype,`patreonConnectAvailable`,[E],Object.getOwnPropertyDescriptor(hm.prototype,`patreonConnectAvailable`),hm.prototype),xm(hm.prototype,`showPatreonConnect`,[E],Object.getOwnPropertyDescriptor(hm.prototype,`showPatreonConnect`),hm.prototype),xm(hm.prototype,`showContactLink`,[E],Object.getOwnPropertyDescriptor(hm.prototype,`showContactLink`),hm.prototype),hm))||mm,Nm=class extends V.Component{render(){return U.AppUI.site?.image?(0,K.jsx)(`div`,{children:(0,K.jsx)(`img`,{src:U.AppUI.site.image.url,alt:`${U.AppUI.site.teamName} Logo`,style:{maxHeight:`45px`}})}):null}};D();var Pm,Fm,Im,Lm,Rm;function zm(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Bm(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var pee=N.div` 1061 display: flex; 1062 align-items: center; 1063 justify-content: flex-start; 1064 flex-direction: column; 1065 width: 100%; 1066 padding: 20px 0 0 0; 1067 position: relative; 1068 .patreon-logo { 1069 border-radius: 4px; 1070 width: 17px; 1071 margin-right: 5px; 1072 margin-top: 3px; 1073 } 1074 .fa-warning { 1075 color: #333!important; 1076 } 1077 .facebook-button { 1078 margin: 0 0 10px 0!important; 1079 } 1080 button { 1081 width: 100%; 1082 } 1083 label { 1084 font-size: 14px; 1085 margin-bottom: 0; 1086 } 1087 .form-wrapper { 1088 padding: 0; 1089 } 1090`,mee=N.div` 1091 position: relative; 1092 color: #FFF; 1093 margin: -10px 0 10px 0; 1094 display: flex; 1095 align-items: center; 1096 background: #333; 1097 padding: 5px; 1098 font-size: 14px; 1099 display: flex; 1100 align-items: center; 1101 justify-content: center; 1102 border-radius: 30px; 1103 cursor: pointer; 1104 img { 1105 width: 18px; 1106 margin-right: 5px; 1107 } 1108`,hee=N.div` 1109 display: flex; 1110 flex: ${e=>e.fillPanel?1:`initial`}; 1111 flex-direction: column; 1112 align-items: center; 1113 justify-content: center; 1114 width: 100%; 1115 width: 100%; 1116`,Vm=N.div` 1117 cursor: pointer; 1118 font-size: 14px; 1119 text-decoration: underline; 1120 margin: ${e=>e.margin}; 1121 a { 1122 color: ${e=>e.color}; 1123 } 1124 color: ${e=>e.color}; 1125`,gee=N.div` 1126 margin: ${e=>e.margin}; 1127 width: 100%; 1128 text-align: center; 1129 margin-top: 20px; 1130`,_ee=N.div` 1131 position: absolute; 1132 top: 60px; 1133 right: -10px; 1134 .close-icon { 1135 width: 30px; 1136 } 1137 svg { 1138 width: 30px; 1139 fill: #333; 1140 } 1141 margin-top: -50px; 1142`,vee=N.div` 1143 width: 100%; 1144 display: flex; 1145 justify-content: center; 1146 padding: 20px; 1147 .img { 1148 width: 190px; 1149 } 1150`,yee=N.div` 1151 font-size: 14px; 1152`,bee=()=>(0,K.jsxs)(yee,{children:[`Already a Member on Patreon? `,(0,K.jsx)(F,{className:`underline`,to:`onboarding.patreon`,children:`Connect Here.`})]}),xee=j(Pm=(Fm=(Rm=class extends V.Component{constructor(e){super(e),zm(this,`submittedRegistration`,Im,this),zm(this,`authType`,Lm,this),this.afterRegistration=()=>{this.submittedRegistration=!0,this.props.afterRegistration()},this.reset=()=>{this.submittedRegistration=!1,this.authType=`registration`,U.AppUI.set(`expandedEmailRegistrationFields`,!1)},this.signIn=()=>{this.authType=`signIn`},this.onClickForgotPassword=()=>{this.authType=`forgotPassword`},this.gotoMemberships=()=>{U.AppUI.createEvent(`memrev - click become a member button`,Ul({source:`onboarding_registration`,button_text:`Become a Member`,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,destination_route:`memberships.index`})),U.AppUI.routeStore.routeToNamed(`memberships.index`)},this.onConfirmationRequired=()=>{this.authType=`confirmEmail`},U.AppUI.createEvent(`onboarding - view sign up`,{device:`web`}),this.initState()}async initState(){switch(await(0,W.sleep)(1),U.AppUI.routeStore.routeName){case`onboarding.confirm`:this.authType=`confirmEmail`;break;case`onboarding.sign_in`:this.authType=`signIn`;break;case`onboarding.forgot_password`:this.authType=`forgotPassword`;break;default:break}}componentDidMount(){U.AppUI.userIsLoaded&&this.authType===`signIn`&&U.AppUI.routeToHome()}get groupId(){return window.location.href.split(`/group/`)[1]}get canRegisterForFreeAccount(){return U.AppUI.site.published||(0,W.isPresent)(U.AppUI.getCookieValue(`early-access-token`))}render(){return(0,K.jsxs)(pee,{justifyContent:`flex-start`,children:[U.AppUI.expandedEmailRegistrationFields&&(0,K.jsx)(_ee,{children:(0,K.jsx)(J.CloseIcon,{onClick:()=>this.reset()})}),(0,W.isPresent)(U.AppUI.site?.image)&&(0,K.jsx)(vee,{children:(0,K.jsx)(Nm,{})}),(0,K.jsxs)(hee,{fillPanel:this.authType===`confirmEmail`,children:[this.props.showSpinner&&(0,K.jsx)(P,{background:q.Theme.blue}),!this.props.showSpinner&&this.authType===`forgotPassword`&&(0,K.jsx)(Wp,{hideSpinner:!0,onboarding:!0,padding:`0px 0px 20px 0px`}),!this.props.showSpinner&&this.authType===`signIn`&&(0,K.jsx)(Lp,{hideSpinner:!0,onboarding:!0,padding:`0px 0px 20px 0px`,onConfirmationRequired:this.onConfirmationRequired}),!this.props.showSpinner&&this.authType===`registration`&&(0,K.jsx)(wp,{hideSpinner:!0,hidePrivacy:!0,onboarding:!0,padding:0,expandEmail:!0,hideTitle:(0,W.isPresent)(this.props.params.languageId),onClickSignIn:this.signIn,afterRegistration:this.afterRegistration,languageId:this.props.languageId,targetLanguageId:this.props.params?.languageId||this.props.targetLanguageId,levelId:this.props.levelId,onConfirmationRequired:this.onConfirmationRequired,onSigninLinkClick:this.signIn}),!this.props.showSpinner&&this.authType===`confirmEmail`&&(0,K.jsx)(Mm,{signIn:this.signIn}),this.props.targetLanguageId&&!this.groupId&&!this.props.showSpinner&&!this.props.hideGuestSignIn&&this.authType===`registration`&&!this.submittedRegistration&&!U.AppUI.registrationSubmitted&&!U.AppUI.expandedEmailRegistrationFields&&!U.AppUI.userIsLoaded&&(0,K.jsx)(I,{height:`50px`,borderRadius:`50px`,background:`#8D8D8D`,margin:`10px 0 0 0`,scaleOnHover:1.05,backgroundOnHover:`#9d9d9d`,onClick:this.props.onSkipRegistration,children:`Skip For Now`}),!this.props.showSpinner&&this.authType!==`confirmEmail`&&(0,K.jsxs)(gee,{margin:`0px`,children:[U.AppUI.site.published&&[`signIn`].includes(this.authType)&&(0,K.jsx)(mee,{onClick:this.gotoMemberships,children:`Become a Member`}),this.authType===`signIn`&&U.AppUI.site.patreonClientId&&U.AppUI.site.published&&(0,K.jsx)(bee,{}),this.authType===`signIn`&&this.canRegisterForFreeAccount&&(0,K.jsx)(Vm,{onClick:this.reset,color:`#333`,children:`Register for a Free Account`}),[`signIn`].includes(this.authType)&&(0,K.jsx)(Vm,{onClick:this.onClickForgotPassword,color:(0,W.isBlank)(U.AppUI.site?.footerBackgroun
1152dColor)?`#333`:U.AppUI.site?.footerBackgroundColor,children:`Forgot Password?`}),[`forgotPassword`].includes(this.authType)&&(0,K.jsxs)(Vm,{onClick:this.signIn,color:(0,W.isBlank)(U.AppUI.site?.footerBackgroundColor)?`#333`:U.AppUI.site?.footerBackgroundColor,children:[`Sign In to `,U.AppUI.user.site.name]}),this.authType===`forgotPassword`&&(0,K.jsxs)(B,{padding:`10px 10px 10px 10px`,textAlign:`center`,margin:`10px 0 0 0`,background:`#7e7e7e`,borderRadius:`5px`,border:`1px solid #333`,children:[(0,K.jsx)(Nn,{}),` Note that your credentials between Seedlang and all Easy Languages sites are linked.`]})]})]})]})}},Rm.defaultProps={authType:`registration`},Rm),Im=Bm(Fm.prototype,`submittedRegistration`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lm=Bm(Fm.prototype,`authType`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.authType}}),Bm(Fm.prototype,`groupId`,[E],Object.getOwnPropertyDescriptor(Fm.prototype,`groupId`),Fm.prototype),Bm(Fm.prototype,`canRegisterForFreeAccount`,[E],Object.getOwnPropertyDescriptor(Fm.prototype,`canRegisterForFreeAccount`),Fm.prototype),Fm))||Pm,See=(0,Y.OnboardingRegistrationWrapper)(xee),Hm,Um=pf(j(Hm=class extends V.Component{render(){return U.AppUI.siteIsDefault?(0,K.jsx)(fee,{...this.props}):(0,K.jsx)(See,{...this.props})}})||Hm),Wm,Gm,Cee=N.div` 1153 overflow: hidden; 1154 white-space: nowrap; 1155 background: ${e=>e.disabled?`#b7b7b7`:e.background}; 1156 color: ${e=>e.disabled?`#dadada`:`white`}; 1157 border-radius: 25px; 1158 cursor: ${e=>e.disabled?`default`:`pointer`}; 1159 padding: 10px; 1160 display: flex; 1161 align-items: center; 1162 justify-content: center; 1163 font-size: 14px; 1164 padding: 0 20px; 1165 margin-left: ${e=>e.marginLeft}; 1166 font-weight: bold; 1167 border: 3px solid white; 1168 flex-direction: column; 1169 height: ${e=>e.height}; 1170 .crown-icon { 1171 height: 14px; 1172 } 1173 .icon-wrapper { 1174 width: 20px; 1175 margin-right: 5px; 1176 svg { 1177 fill: ${q.Theme.yellow}; 1178 } 1179 } 1180`,wee=N.div` 1181 display: flex; 1182 align-items: center; 1183 justify-content: center; 1184 width: 100%; 1185`,Km=M(j(Wm=(Gm=class extends V.Component{render(){return(0,K.jsx)(Cee,{height:this.props.height,background:this.props.background,disabled:this.props.disabled,marginLeft:this.props.marginLeft,children:(0,K.jsxs)(wee,{children:[this.props.showIcon&&(0,K.jsx)(J.CrownIcon,{fill:this.props.disabled?`#caca87`:null}),this.props.children]})})}},Gm.defaultProps={showIcon:!0,background:`linear-gradient(-134deg, rgba(59, 215, 197, 0.8) 0%, #0DAFF6 100%)`,marginLeft:`10px`},Gm))||Wm);D();var qm,Jm;function Ym(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Xm=N.div` 1186 text-align: left; 1187`,Zm=N.div` 1188 display: flex; 1189 justify-content: ${e=>e.justifyContent}; 1190`,Qm=N.ol` 1191 li { 1192 margin-bottom: 5px; 1193 } 1194`,$m=({children:e,onClick:t,...n})=>(0,K.jsx)(Pn,{selectedBackground:q.Theme.red,onClick:t,...n,children:e??`Cancel`}),eh=e=>(0,K.jsx)(P,{background:U.AppUI.site.accentColor,...e,margin:e.margin??`${e.marginTop??`0`} ${e.centered?`auto`:`0`} ${e.marginBottom??`0`} ${e.centered?`auto`:`0`}`}),th=({campaignId:e,children:t})=>(0,K.jsx)(`a`,{href:`https://www.patreon.com/settings/memberships/${e}`,target:`_blank`,rel:`noopener noreferrer`,className:`underline`,children:t}),nh=j(qm=(Jm=class extends V.Component{constructor(e){super(e),this.refreshInterval=1e3,this.refreshTimer=null,this.loadingState=new U.LoadingState,this.paymentSetupLoadingState=new U.LoadingState,this.paymentStatusLoadingState=new U.LoadingState,this.cancelledLoadingState=new U.LoadingState,this.loadPaymentMigration=async e=>{let t=e?.loadingState??this.loadingState;if((0,W.isBlank)(this.paymentMigration.id)||e?.forceGetShow){t.started();try{await H.PaymentMigrationStore.getShowPromise(),await U.AppUI.loadUserPromise(),t.succeeded()}catch(e){console.error(e),t.failed(e.message??`Something went wrong. Please try again later.`)}}},this.startPaymentSetup=()=>{this.clearLoadingStates();let e=this.paymentSetupLoadingState;e.started(),H.PaymentMigrationStore.createPaymentSetupSession(e=>{e.url||console.warn(`createPaymentSetupSession resp.url is missing`,e),window.location.href=e.url},{data:{onboarding:!0,membershipId:this.membership.id,currency:this.currency},failureCallback:t=>{e.failed(t.message??`Something went wrong. Please try again later.`)}})},this.cancelMigration=()=>{this.clearLoadingStates(),this.loadingState.started(),this.refreshTimer&&clearTimeout(this.refreshTimer),H.PaymentMigrationStore.destroy({ids:{paymentMigrationId:this.paymentMigration.id}},this.afterDestroy)},this.afterDestroy=()=>{this.loadPaymentMigration({forceGetShow:!0})}
1194,this.handleIHaveCancelledClick=async()=>{let e=this.cancelledLoadingState;this.clearLoadingStates(),e.started();try{await H.PaymentMigrationStore.confirmCancellationPromise(),await U.AppUI.loadUserPromise(),e.succeeded()}catch(t){console.error(t),e.failed(t.message??`Something went wrong. Please try again later.`)}},this.periodicallyRefreshIfNeeded(this.paymentStatusLoadingState),H.PaymentMigrationConfigStore.getShow(),this.loadPaymentMigration()}get paymentMigration(){return H.PaymentMigrationStore.showData}periodicallyRefreshIfNeeded(e){this.paymentMigration.status===`stripe_payment_setup_started`?(e.started(),this.refreshTimer=setTimeout(async()=>{try{await H.PaymentMigrationStore.getShowPromise(),this.refreshInterval*=1.5,this.periodicallyRefreshIfNeeded(e)}catch(t){console.error(`Error loading payment migration`,t),e.failed(t.message??`Something went wrong. Please try again later.`)}},this.refreshInterval)):e.succeeded()}get afterPaymentSetupHtml(){return H.PaymentMigrationConfigStore.showData.afterPaymentSetupMonthlyHtml}get currency(){return this.paymentMigration||console.warn(`paymentMigration is missing in SettingsBillingMigrationSection`),(this.paymentMigration?.currency?.toUpperCase()===void 0||this.paymentMigration?.currency?.toUpperCase()===null)&&console.warn(`paymentMigration.currency is blank in SettingsBillingMigrationSection`),this.paymentMigration?.currency??U.AppUI.user?.currency??`USD`}get currencySymbol(){return this.currency?.toUpperCase()===`USD`?`$`:`â¬`}get membership(){return this.paymentMigration.membership}get cost(){return this.membership.cost(this.currency)}get costMonthly(){return this.membership.costMonthly(this.currency)}get patreonCampaignId(){return U.AppUI.user.site?.patreonCampaignId}get formattedBillingAmount(){let e=this.currencySymbol,t=this.membership.numberMonths===12;return`${e}${t?(0,W.dollar)(this.cost):(0,W.dollar)(this.costMonthly)}.${t?(0,W.cents)(this.cost):(0,W.cents)(this.costMonthly)} / ${t?`year`:`month`}`}get formattedNextChargeDate(){return this.paymentMigration?.nextChargeDate?.fullTextFormattedDateWithFullYear}clearLoadingStates(){this.loadingState.clear(),this.paymentSetupLoadingState.clear(),this.paymentStatusLoadingState.clear(),this.cancelledLoadingState.clear()}render(){return!this.loadingState.isLoading&&!this.paymentMigration?.status?null:(0,K.jsxs)(Xm,{children:[!this.props.onboarding&&(0,W.isPresent)(this.paymentMigration.status)&&!this.paymentMigration.isComplete&&(0,K.jsx)(R,{heading:`4`,margin:`0 0 10px 0`,children:`Migration from Patreon`}),this.loadingState.isLoading&&(0,K.jsx)(eh,{centered:this.props.onboarding}),this.paymentMigration.status===`setting_up`&&(U.AppUI.user.patreonUser?.isPatreonActive?(0,K.jsxs)(K.Fragment,{children:[this.membership?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(R,{margin:`0 0 20px 0`,children:[`Add your payment details here to move your membership from Patreon to our platform. Since your current Patreon payment covers you until `,(0,K.jsx)(`strong`,{children:this.formattedNextChargeDate}),`, the time until then will appear as a`,(0,K.jsx)(`strong`,{children:` "Free Trial" `}),` during checkout â you won't be double-charged.`]}),(0,K.jsxs)(R,{fontSize:`16px`,children:[(0,K.jsxs)(`strong`,{children:[`New membership:`,` `]}),(0,K.jsxs)(`span`,{children:[(0,W.stripHtmlTags)(this.membership.title),` â `,this.currencySymbol,(0,W.dollar)(this.costMonthly),`.`,(0,W.cents)(this.costMonthly),` / month (incl. tax)`,` â `,this.currency?.toUpperCase()===`USD`?this.membership.descriptionUsd:this.membership.descriptionEur]}),` `,(0,K.jsx)(F,{to:{name:`memberships.change`,query:{mode:`payment_migration`,membershipId:this.paymentMigration.membership.id}},style:{color:U.AppUI.site.accentColor,marginLeft:`0.5em`},className:`underline`,children:`Change Tier?`})]}),(0,K.jsx)(Zm,{justifyContent:this.props.onboarding?`center`:`left`,children:this.paymentSetupLoadingState.isLoading?(0,K.jsx)(eh,{marginTop:`20px`,marginBottom:`20px`,centered:this.props.onboarding}):(0,K.jsx)(I,{background:U.AppUI.site.accentColor,margin:`20px 0`,onClick:this.startPaymentSetup,children:`Add Your Payment Details`})})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{margin:`0 0 20px 0`,children:`You have successfully connected to Patreon. In order to fully transition your membership and access all features of our new platform, please migrate your payment method. To do so, first select a membership level below.`}),(0,K.jsx)(Zm,{justifyContent:this.props.onboarding?`center`:`start`,children:(0,K.jsx)(F,{to:{name:`memberships.change`,query:{mode:`payment_migration`}},children:(0,K.jsx)(I,{background:U.AppUI.site.accentColor,className:`underline`,children:`Select Membership Level`})})})]}),!this.props.hideContactLink&&(0,K.jsx)(Gp,{marginTop:this.props.onboarding?`5px`:`20px`,textAlign:this.props.onboarding?`center`:null})]}):!U.AppUI.user.patreonUser&&!this.props.hasActiveSubscription?(0,K.jsxs)(R,{margin:`20p
1194x 0 20px 0`,children:[`If you have a subscription on Patreon, you can`,` `,(0,K.jsx)(F,{to:`settings.patreon`,className:`underline`,style:{color:`inherit`},children:`link your Patreon account`}),` `,`and migrate your subscription to our membership platform.`]}):null),this.paymentMigration.status===`stripe_payment_setup_started`&&(0,K.jsxs)(`div`,{style:{textAlign:this.props.onboarding?`center`:`left`},children:[this.paymentStatusLoadingState.errorMessage?null:this.paymentStatusLoadingState.isLoading?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{margin:`0 0 0 0`,children:`Waiting for confirmation from the payment provider. This should take a few seconds...`}),(0,K.jsx)(eh,{marginTop:`10px`,marginBottom:`10px`,centered:this.props.onboarding}),(0,K.jsx)($m,{onClick:this.cancelMigration,margin:`10px 0 0 0`,children:`Cancel`})]}):null,!this.props.hideContactLink&&(0,K.jsx)(Gp,{marginTop:this.props.onboarding?`5px`:`20px`,textAlign:this.props.onboarding?`center`:null})]}),this.paymentMigration.status===`waiting_for_patreon_cancellation`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{style:{textAlign:this.props.onboarding?`center`:`left`,fontSize:this.props.onboarding?`20px`:`18px`,fontWeight:800,marginTop:`20px`},children:`Payment Details Added Successfully`}),(0,K.jsx)(`p`,{style:{textAlign:this.props.onboarding?`center`:`left`,fontStyle:`italic`,margin:this.props.onboarding?`30px 0 15px 0`:null},children:`Now, make sure to cancel your Patreon subscription to avoid being double-charged.`}),(0,K.jsxs)(Qm,{children:[(0,K.jsx)(`li`,{children:`Click the button to open your Patreon Membership settings`}),(0,K.jsx)(`li`,{children:`Choose "Cancel Membership" and confirm cancellation on Patreon`}),(0,K.jsx)(`li`,{children:`Afterwards, please return to this page`})]}),this.patreonCampaignId&&(0,K.jsx)(`div`,{children:(0,K.jsx)(Zm,{justifyContent:this.props.onboarding?`center`:`start`,children:(0,K.jsx)(th,{campaignId:this.patreonCampaignId,children:(0,K.jsx)(I,{margin:`10px 0`,background:U.AppUI.site.accentColor,fontWeight:800,fontSize:`16px`,children:`Go to Patreon to Cancel Membership`})})})}),!this.cancelledLoadingState.isLoading&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(R,{margin:`20px 0 10px 0`,style:{textAlign:this.props.onboarding?`center`:`left`,fontSize:18,fontWeight:800},children:`Please confirm: Did you cancel on Patreon?`}),(0,K.jsxs)(`div`,{onClick:()=>this.handleIHaveCancelledClick(),style:{marginTop:10,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:4,justifyContent:`center`},children:[(0,K.jsx)(Mn,{i:`check`,className:`disabled`,style:{color:`#ccc`}}),(0,K.jsx)(`span`,{children:`I've Cancelled My Patreon Membership`})]})]}),this.cancelledLoadingState.isLoading&&(0,K.jsx)(eh,{marginTop:`20px`,marginBottom:`10px`,centered:this.props.onboarding}),!this.props.hideContactLink&&(0,K.jsx)(Gp,{marginTop:this.props.onboarding?`5px`:`20px`,textAlign:this.props.onboarding?`center`:null})]}),this.paymentMigration.status===`waiting_for_patreon_expiry`&&(0,K.jsxs)(K.Fragment,{children:[this.props.onboarding&&(0,K.jsx)(`h3`,{style:{textAlign:this.props.onboarding?`center`:`left`},children:`Thank You for Migrating Your Payment Method`}),(0,K.jsxs)(`p`,{children:[`We will start charging you `,(0,K.jsx)(`strong`,{children:this.formattedBillingAmount}),` for the `,(0,K.jsx)(`strong`,{children:this.membership.titleWithMembership}),` once your subscription on Patreon has expired`,this.formattedNextChargeDate&&` (expected on ${this.formattedNextChargeDate})`]}),(0,K.jsx)(`p`,{children:`In the meantime, please enjoy all the benefits and perks connected to your membership.`}),!this.props.onboarding&&(0,K.jsx)($m,{onClick:this.cancelMigration,children:`Cancel Migration`}),!this.props.hideContactLink&&(0,K.jsx)(Gp,{marginTop:this.props.onboarding?`5px`:`20px`,textAlign:this.props.onboarding?`center`:null})]}),this.paymentMigration.status===`completed`&&this.props.onboarding&&(0,K.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,K.jsx)(`h3`,{children:`Thank You for Migrating Your Payment Method`}),`We will start charging you`,` `,(0,K.jsx)(`strong`,{children:this.formattedBillingAmount}),` for the`,` `,(0,K.jsx)(`strong`,{children:this.membership.titleWithMembership}),` on`,` `,(0,K.jsx)(`strong`,{children:this.formattedNextChargeDate})]})]})}},Ym(Jm.prototype,`currency`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`currency`),Jm.prototype),Ym(Jm.prototype,`currencySymbol`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`currencySymbol`),Jm.prototype),Ym(Jm.prototype,`membership`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`membership`),Jm.prototype),Ym(Jm.prototype,`cost`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`cost`),Jm.prototype),Ym(Jm.prototype,`costMonthly`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`costMonthly`),Jm.prototype),Ym(Jm.prototype,`patreonCampaignId`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`patreonCampaignId`),Jm.prototype),Ym(Jm.prototype,`formattedBillingAmount`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`formattedBillingAmount`),Jm.prototype),Ym(Jm.prototype,`formattedNextChargeDate`,[E],Object.getOwnPropertyDescriptor(Jm.prototype,`formattedNextChargeDate`),Jm.prototype),Jm))||qm;D(),w();var rh,ih;function ah(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var oh=N.div` 1195 ${(0,X.flexCenterColumn)()} 1196 width: 100%; 1197 text-align: center; 1198 height: 100%; 1199 overflow: auto; 1200 justify-content: center; 1201`,sh=N.div` 1202`,ch=N.a` 1203 margin: 10px 0 20px 0; 1204`,lh=N.div` 1205 font-size: 12px; 1206 margin-top: 10px; 1207 display: flex; 1208 flex-direction: column; 1209`,uh=N.div` 1210 font-size: 18px; 1211 font-weight: ${e=>e.fontWeight}; 1212 margin-bottom: 10px; 1213`,dh=j(rh=(ih=class extends V.Component{constructor(...e){super(...e),this.onClickBecomeMember=()=>{U.AppUI.createEvent(`memrev - click become a member button`,Ul({source:`onboarding_migration`,button_text:`Become a Member`,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,destination_route:`memberships.index`}))}}get membershipTypeName(){return U.AppUI.user?.currentUserGroup?.membershipType?.name}render(){return(0,K.jsxs)(oh,{className:`onboarding-migration`,children:[_(this.membershipTypeName)&&(0,K.jsxs)(sh,{children:[(0,K.jsx)(ch,{href:`/`,children:(0,K.jsx)(Nm,{})}),U.AppUI.routeStore.routeName!==`onboarding.migration`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`h2`,{children:`You're all set!`}),(0,K.jsxs)(uh,{children:[`Your existing `,(0,K.jsx)(`span`,{style:{fontWeight:`bold`},children:this.membershipTypeName}),` perks are now available.`]})]}),_(U.AppUI.user.paymentMigration)&&U.AppUI.user.paymentMigration?.status===`setting_up`&&(0,K.jsx)(`div`,{style:{margin:`15px 0`,fontWeight:`bold`},children:H.PaymentMigrationStore.showData?.membership?`Migrate Your Payment Method`:`Patreon Account Connected`}
1213),(0,K.jsx)(nh,{onboarding:!0,hideContactLink:!0,hasActiveSubscription:(0,G.last)(U.AppUI.userSubscriptionStore.indexData.filter(e=>e.membership.membershipTypeId===U.AppUI.user.currentGroupMembershipType.id&&e.isActive))}),C(U.AppUI.user.paymentMigration)&&(0,K.jsx)(I,{background:U.AppUI.site.accentColor,margin:`10px 0 0 0`,onClick:U.AppUI.routeToSignedInHome,children:`Go to Your Perks`}),_(U.AppUI.user.paymentMigration)&&[`waiting_for_patreon_expiry`,`completed`].includes(U.AppUI.user.paymentMigration.status)&&(0,K.jsx)(I,{background:U.AppUI.site.accentColor,margin:`10px 0 0 0`,onClick:U.AppUI.routeToSignedInHome,children:`Return to Home Page`}),_(U.AppUI.user.paymentMigration?.status)&&(0,K.jsxs)(lh,{children:[_(U.AppUI.site.paymentMigrationConfig.infoUrl)&&(0,K.jsx)(`a`,{target:`_blank`,rel:`noopener noreferrer`,href:U.AppUI.site.paymentMigrationConfig.infoUrl,className:`underline`,children:`Learn More About Our Migration Process`}),U.AppUI.user.paymentMigration?.status!==`waiting_for_patreon_expiry`&&(0,K.jsx)(F,{to:U.AppUI.site.signedInHomePageRoute,className:`underline`,children:`Come Back Later`})]})]}),C(this.membershipTypeName)&&(0,K.jsxs)(sh,{children:[(0,K.jsx)(ch,{href:`/`,children:(0,K.jsx)(Nm,{})}),(0,K.jsx)(uh,{children:`You'd need to be in one of main Patreon tiers to connect.`}),(0,K.jsx)(F,{to:`memberships.index`,onClick:this.onClickBecomeMember,children:(0,K.jsx)(Km,{height:`50px`,background:U.AppUI.site?.accentColor,children:(0,K.jsx)(`div`,{className:`text`,children:(0,K.jsx)(`span`,{children:`Become a Member`})})})}),(0,K.jsx)(lh,{children:(0,K.jsx)(F,{to:U.AppUI.site.signedInHomePageRoute,className:`underline`,children:`Go Home`})})]})]})}},ah(ih.prototype,`membershipTypeName`,[E],Object.getOwnPropertyDescriptor(ih.prototype,`membershipTypeName`),ih.prototype),ih))||rh,fh,Tee=N.div` 1214 margin-top: 20px; 1215`,Eee=96,Dee=j(fh=class extends V.Component{constructor(...e){super(...e),this.onSubmit=()=>{this.props.onSubmit(),U.AppUI.routeStore.routeToNamed(`onboarding.choose_deck`,{languageId:this.props.params.languageId})}}render(){return(0,K.jsxs)(Af,{children:[(0,K.jsx)(nf,{text:`Where did you hear about us?`,reaction:`disappointed`,languageId:U.AppUI.targetLanguageId}),(0,K.jsx)(Df,{children:(0,K.jsx)(wf,{value:this.props.referrerOptionId,options:this.props.referrerOptions,onSelect:this.props.onSetReferrer,fieldName:`text`,columns:2,uniformRowHeight:Eee})}),(0,K.jsx)(Tee,{children:(0,K.jsx)(I,{onClick:this.onSubmit,width:`440px`,height:`60px`,children:this.props.referrerOptionId?`Continue`:`Skip`})})]})}})||fh,Oee=pf((0,Y.OnboardingReferrerWrapper)(Dee)),ph,kee=N.div` 1216 margin-top: 20px; 1217`,Aee=N.div` 1218 width: 100%; 1219 height: 360px; 1220 max-height: calc(100vh - 330px); 1221 overflow-y: auto; 1222 overflow-x: hidden; 1223 padding-right: 6px; 1224 box-sizing: border-box; 1225`,jee=j(ph=class extends V.Component{constructor(...e){super(...e),this.onSubmit=()=>{this.props.onSubmit();let e=U.AppUI.user.signedOut?`onboarding.registration`:`onboarding.referrer`;U.AppUI.routeStore.routeToNamed(e,{languageId:this.props.params.languageId})}}render(){return(0,K.jsxs)(Af,{children:[(0,K.jsx)(nf,{text:this.props.languageId===`EN`?`What is your native language?`:this.props.languageMessage,languageId:U.AppUI.targetLanguageId,reaction:this.props.languageId===`EN`?`disappointed`:`happy`,marginBottom:20}),(0,K.jsx)(Df,{children:(0,K.jsx)(Aee,{children:(0,K.jsx)(wf,{value:this.props.languageId,options:U.AppUI.AiLanguageOptionsForFilter,onSelect:this.props.onSetNativeLanguageId,fieldName:`name`})})}),(0,K.jsx)(kee,{children:(0,K.jsx)(I,{onClick:this.onSubmit,width:`440px`,height:`60px`,children:`Continue`})})]})}})||ph,Mee=pf((0,Y.OnboardingNativeLanguageWrapper)(jee)),mh,Nee=N.div` 1226 margin-top: 10px; 1227 ${(0,X.flexCenter)()} 1228 background: ${e=>e.background}; 1229 border-radius: 20px; 1230 min-height: ${e=>e.height}; 1231 width: 100%; 1232 cursor: pointer; 1233 -moz-transition: all 0.2s ease-in-out; 1234 -o-transition: all 0.2s ease-in-out; 1235 -webkit-transition: all 0.2s ease-in-out; 1236 transition: all 0.2s ease-in-out; 1237 img { 1238 margin: 0 0 0 10px; 1239 border-radius: 20px; 1240 width: ${e=>e.imageSize}; 1241 height: ${e=>e.imageSize}; 1242 } 1243 &:hover { 1244 transform: scale(1.05); 1245 } 1246`,Pee=N.div` 1247 display: flex; 1248 flex-direction: column; 1249 flex: 1; 1250 padding: 0 10px; 1251`,Fee=N.div` 1252 font-size: ${e=>e.fontSize}; 1253 line-height: ${e=>e.lineHeight}; 1254 text-align: center; 1255 font-weight: bold; 1256 color: white; 1257 text-align: left; 1258`,Iee=N.div` 1259 font-size: ${e=>e.fontSize}; 1260 line-height: ${e=>e.lineHeight}; 1261 color: rgba(255, 255, 255, 0.9); 1262 margin-top: 5px; 1263 font-style: italic; 1264`,Lee=N.div` 1265 width: 80px; 1266 height: 70px; 1267 display: flex; 1268 align-items: center; 1269 justify-content: center; 1270 background: #FFF; 1271 border-radius: 10px; 1272 margin-left: 10px; 1273 .speaking-icon { 1274 svg { 1275 fill: ${q.Theme.orange}; 1276 width: 63px; 1277 height: 63px; 1278 } 1279 } 1280 .dictionary-icon { 1281 svg { 1282 fill: ${q.Theme.green}; 1283 width: 55px; 1284 height: 55px; 1285 } 1286 } 1287 .trivia-circle-icon { 1288 svg { 1289 fill: ${q.Theme.purple}; 1290 padding-left: 6px; 1291 width: 57px; 1292 height: 57px; 1293 } 1294 } 1295 1296 .word-list-icon { 1297 svg { 1298 fill: ${q.Theme.purple}; 1299 width: 46px; 1300 height: 46px; 1301 } 1302 } 1303`,hh=M(j(mh=class extends V.Component{render(){return(0,K.jsxs)(Nee,{height:this.props.height||`120px`,onClick:this.props.onClick,background:this.props.background,imageSize:this.props.imageSize,children:[this.props.icon&&(0,K.jsx)(Lee,{children:this.props.icon}),(0,K.jsxs)(Pee,{children:[(0,K.jsx)(Fee,{fontSize:this.props.isMobile?`19px`:`22px`,lineHeight:this.props.isMobile?`22px`:`25px`,children:this.props.name}),(0,K.jsx)(Iee,{fontSize:`12px`,lineHeight:`14px`,children:this.props.description})]})]})}})||mh);D();var gh,_h;function Ree(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var zee=j(gh=(_h=class extends V.Component{get showWorksheets(){return window.location.href.split(`/group/`)[1]===q.Constants.EASY_GERMAN_GROUP_ID}render(){return(0,K.jsxs)(Af,{children:[(0,K.jsx)(nf,{text:`How would you like to get started?`,reaction:`disappointed`,languageId:U.Ap
1303pUI.targetLanguageId}),(0,K.jsxs)(Df,{children:[this.props.showSpinner&&(0,K.jsx)(P,{background:`white`}),!this.props.showSpinner&&(0,K.jsxs)(`div`,{children:[this.showWorksheets&&(0,K.jsx)(hh,{isMobile:U.AppUI.layout.isMobile,height:`100px`,icon:(0,K.jsx)(J.TriviaCircleIcon,{}),onClick:()=>U.AppUI.routeStore.routeToNamed(`groups.show`,{groupId:q.Constants.EASY_GERMAN_GROUP_ID}),background:q.Theme.purple,name:`Find exercises from Easy German videos.`}),(0,K.jsx)(hh,{isMobile:U.AppUI.layout.isMobile,height:`100px`,icon:(0,K.jsx)(J.SpeakingIcon,{}),onClick:()=>this.props.onSelectLearningPreference(`content_tree`),background:q.Theme.orange,name:`Give me speaking and listening practice.`}),(0,K.jsx)(hh,{isMobile:U.AppUI.layout.isMobile,height:`100px`,icon:(0,K.jsx)(J.DictionaryIcon,{}),onClick:()=>this.props.onSelectLearningPreference(`vocab`),background:q.Theme.green,name:`Help me to increase my vocabulary.`}),U.AppUI.targetLanguageId===`DE`&&!this.showWorksheets&&(0,K.jsx)(hh,{isMobile:U.AppUI.layout.isMobile,height:`100px`,icon:(0,K.jsx)(J.TriviaCircleIcon,{}),onClick:()=>this.props.onSelectLearningPreference(`trivia`),background:q.Theme.purple,name:`I'd like to learn while playing trivia.`}),U.AppUI.targetLanguageId!==`DE`&&!this.showWorksheets&&(0,K.jsx)(hh,{isMobile:U.AppUI.layout.isMobile,height:`100px`,icon:(0,K.jsx)(J.WordListIcon,{}),onClick:()=>this.props.onSelectLearningPreference(`conjugation`),background:q.Theme.purple,name:`I'd like to learn the conjugation of verbs.`})]})]})]})}},Ree(_h.prototype,`showWorksheets`,[E],Object.getOwnPropertyDescriptor(_h.prototype,`showWorksheets`),_h.prototype),_h))||gh,Bee=(0,Y.OnboardingChooseDeckWrapper)(zee);D();var vh,yh,bh,xh,Sh;function Ch(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wh(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Vee=N.div` 1304 ${(0,X.flexCenterColumn)()} 1305 width: 100%; 1306`,Hee=N.div` 1307 ${(0,X.flexCenterColumn)()} 1308 width: 100%; 1309`,Uee=({accentColor:e,disabled:t,onChangePassword:n,onChangePasswordConfirmation:r,onSubmit:i,password:a,passwordConfirmation:o,show:s,showSpinner:c})=>c?(0,K.jsx)(P,{background:e||q.Theme.blue}):(0,K.jsx)(Vee,{className:`onboarding-create-password`,children:(0,K.jsx)(Hee,{children:(0,K.jsxs)(Rf,{padding:0,color:`#000`,children:[(0,K.jsx)(R,{heading:`3`,center:!0,margin:`0 0 20px 0`,color:`#000`,children:`Set Your Password`}),(0,K.jsxs)(`form`,{onSubmit:i,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{children:`Password`}),(0,K.jsx)(`input`,{type:`password`,autoFocus:s,value:a||``,onChange:e=>n(e.currentTarget.value),style:{marginBottom:10}})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{children:`Password Confirmation`}),(0,K.jsx)(`input`,{type:`password`,value:o||``,onChange:e=>r(e.currentTarget.value)})]}),(0,K.jsx)(I,{margin:`20px 0 0 0`,height:`50px`,onClick:i,backgroundColor:q.Theme.green,width:`100%`,disabled:t,children:`Continue`})]})]})})}),Wee=j(vh=(yh=class extends V.Component{constructor(e){super(e),Ch(this,`password`,bh,this),Ch(this,`passwordConfirmation`,xh,this),Ch(this,`showSpinner`,Sh,this),this.onSubmitForm=e=>{e.preventDefault(),this.disabled||this.onSubmitPassword(this.password)},this.onSubmitPassword=e=>{this.showSpinner=!0,U.AppUI.authUserStore.update({data:{password:e,password_confirmation:e}},this.afterSubmitPassword)},this.afterSubmitPassword=()=>{U.AppUI.routeToSignedInHome()},this.init()}
1309async init(){this.showSpinner=!1}get disabled(){return(0,Hl.default)(this.password)||this.password!==this.passwordConfirmation||this.password.length<8}render(){return(0,K.jsx)(Uee,{accentColor:U.AppUI.site.accentColor,disabled:this.disabled,onChangePassword:e=>this.password=e,onChangePasswordConfirmation:e=>this.passwordConfirmation=e,onSubmit:this.onSubmitForm,password:this.password,passwordConfirmation:this.passwordConfirmation,show:this.props.show,showSpinner:this.showSpinner})}},bh=wh(yh.prototype,`password`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xh=wh(yh.prototype,`passwordConfirmation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sh=wh(yh.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),wh(yh.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(yh.prototype,`disabled`),yh.prototype),yh))||vh,Th,Gee=N(Rf)` 1310 text-align: center; 1311 text-wrap: balance; 1312 height: 100%; 1313 display: flex; 1314 align-items: center; 1315`,Eh=N(F)` 1316 font-size: 14px; 1317 text-decoration: underline; 1318 cursor: pointer; 1319`,Kee=N.p` 1320 font-size: 14px; 1321 line-height: 18px; 1322 color: #222; 1323`,qee=({accentColor:e,email:t})=>(0,K.jsx)(Gee,{children:(0,K.jsxs)(An,{gap:`md`,alignItems:`stretch`,children:[(0,K.jsx)(R,{heading:`3`,center:!0,children:`Account Already Exists`}),(0,K.jsxs)(`p`,{children:[`An account with the email address`,t&&(0,K.jsxs)(`strong`,{children:[` `,t]}),` already exists.`]}),(0,K.jsx)(Kee,{children:`Note: All Easy Languages membership sites and Seedlang share accounts. Please sign in with the same password you used there.`}),(0,K.jsxs)(An,{gap:`sm`,alignItems:`center`,children:[(0,K.jsx)(I,{to:`onboarding.sign_in`,height:`50px`,width:`100%`,borderRadius:`50px`,background:e||q.Theme.blue,backgroundOnHover:e||q.Theme.blue,color:`#FFF`,scaleOnHover:`1.05`,children:`Sign In`}),(0,K.jsx)(Eh,{to:`onboarding.forgot_password`,children:`Forgot Password?`}),(0,K.jsx)(Eh,{to:`onboarding.register`,children:`Register for a New Account`})]})]})}),Jee=j(Th=class extends V.Component{render(){let e=new URLSearchParams(window.location.search).get(`email`);return(0,K.jsx)(qee,{accentColor:U.AppUI.site?.accentColor,email:e})}})||Th,Dh=(0,V.createContext)(null);function Yee(){let e=(0,V.use)(Dh);if(e===null)throw Error(`Emotion cache is not available in context, make sure that you have MantineEmotionProvider in the component tree`);return e}var Xee=Ce(({children:e,cache:t},n)=>(0,K.jsx)(Dh,{value:t||n,children:e}));function Zee(e,t){let n=(0,V.useRef)(null);return(!n.current||t.length!==n.current.prevDeps.length||n.current.prevDeps.map((e,n)=>e===t[n]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}var Oh=`ref`;function Qee(e){let t;if(e.length!==1)return{args:e,ref:t};let[n]=e;if(!(n instanceof Object)||!(Oh in n))return{args:e,ref:t};t=n[Oh];let r={...n};return delete r[Oh],{args:[r],ref:t}}var{cssFactory:$ee}=(()=>{function e(e,t,n){let r=[],i=Oe(e,r,n);return r.length<2?n:i+t(r)}function t(t){let{cache:n}=t,r=(...e)=>{let{ref:t,args:r}=Qee(e),i=De(r,n.registered);return we(n,i,!1),`${n.key}-${i.name}${t===void 0?``:` ${t}`}`};return{css:r,cx:(...t)=>e(n.registered,r,tt(t))}}return{cssFactory:t}})();function kh(){let e=Yee();return Zee(()=>$ee({cache:e}),[e])}function ete(e){return`___ref-${e||``}`}function Ah(e,t){return t in e.breakpoints&&typeof t!=`number`?ft(e.breakpoints[t]):ft(t)}var jh=e=>({light:`[data-mantine-color-scheme="light"] &`,dark:`[data-mantine-color-scheme="dark"] &`,rtl:`[dir="rtl"] &`,ltr:`[dir="ltr"] &`,notRtl:`[dir="ltr"] &`,notLtr:`[dir="rtl"] &`,ref:ete,smallerThan:t=>
1323`@media (max-width: ${Ke(Ah(e,t)-.1)})`,largerThan:t=>`@media (min-width: ${Ke(Ah(e,t))})`});function tte(){let e=nt(),{css:t}=kh();return n=>{let r=typeof n==`function`?n(e,jh(e)):n;return r?t(r):``}}function nte(){let e=nt(),{css:t}=kh();return(n,r)=>{if(!n)return{};let i=typeof n==`function`?n(e,r.props,jh(e)):n;return Object.keys(i).reduce((n,r)=>{let a=i[r],o=typeof a==`function`?a(e):a;return{...n,[r]:t(o)}},{})}}var rte={sx:tte,styles:nte};D();var Mh,Nh,Ph,Fh;function ite(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Ih(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ate=N.div` 1324 width: ${e=>e.width}; 1325 overflow: ${e=>e.overflow}; 1326`,ote=N.div` 1327 width: ${e=>e.width}; 1328 cursor: ${e=>e.cursor}; 1329`,ste=N.div` 1330 z-index: ${q.Theme.z[`dropdown-foreground`]}; 1331 top: ${e=>e.top}; 1332 right: ${e=>e.right}; 1333 width: ${e=>e.width}; 1334 font-weight: ${e=>e.fontWeight}; 1335 font-size: ${e=>e.fontSize}; 1336 text-align: ${e=>e.textAlign}; 1337 background: ${e=>e.background}; 1338 position: absolute; 1339 box-shadow: ${e=>e.boxShadow}; 1340 ul { 1341 list-style: none; 1342 margin: 0; 1343 padding: 0; 1344 } 1345 li { 1346 background: var(--dropdown-item-background, ${e=>e.background}); 1347 font-weight: ${e=>e.fontWeight}; 1348 -webkit-user-select: none; 1349 -khtml-user-select: none; 1350 -moz-user-select: -moz-none; 1351 -o-user-select: none; 1352 user-select: none; 1353 color: var(--dropdown-item-color, black); 1354 width: 100%; 1355 margin-bottom: 0; 1356 cursor: pointer; 1357 list-style-type: none; 1358 &.on-click { 1359 align-items: center; 1360 display: flex; 1361 gap: 8px; 1362 justify-content: ${e=>e.textAlign===`center`?`center`:`flex-start`}; 1363 padding: 10px 20px 10px 14px; 1364 font-size: 14px; 1365 svg, path { 1366 fill: currentColor; 1367 } 1368 i { 1369 color: currentColor; 1370 margin: 0; 1371 } 1372 > i, 1373 > svg, 1374 > .icon-wrapper, 1375 > .eye-icon, 1376 > .pencil-icon, 1377 > .pin-icon { 1378 align-items: center; 1379 display: inline-flex; 1380 flex: 0 0 14px; 1381 justify-content: center; 1382 margin: 0 !important; 1383 } 1384 > .icon-wrapper { 1385 > div { 1386 margin: 0 !important; 1387 } 1388 svg { 1389 display: block; 1390 margin: 0 auto; 1391 } 1392 } 1393 a { 1394 align-items: center; 1395 color: inherit; 1396 display: flex; 1397 gap: 8px; 1398 padding: 0; 1399 } 1400 a > i, 1401 a > svg, 1402 a > .icon-wrapper, 1403 a > .eye-icon, 1404 a > .pencil-icon, 1405 a > .pin-icon { 1406 align-items: center; 1407 display: inline-flex; 1408 flex: 0 0 14px; 1409 justify-content: center; 1410 margin: 0 !important; 1411 } 1412 } 1413 a { 1414 display: inline-block; 1415 width: 100%; 1416 padding: 10px 20px; 1417 font-size: 14px; 1418 } 1419 a:hover { 1420 color: white; 1421 } 1422 } 1423 li:hover { 1424 background: ${e=>e.backgroundOnHover}; 1425 color: ${e=>e.colorOnHover}; 1426 a { 1427 color: ${e=>e.colorOnHover}; 1428 } 1429 } 1430 a { 1431 color: black; 1432 text-decoration: none; 1433 } 1434 a:hover { 1435 color: black; 1436 } 1437`,cte=N.div` 1438 z-index: -1; 1439 position: fixed; 1440 pointer-events:initial; 1441 top: 0; 1442 left: 0; 1443 width: 100%; 1444 height: 100%; 1445`,Lh=!1,Rh=j(Mh=(Nh=(Fh=class extends V.Component{constructor(...e){super(...e),ite(this,`active`,Ph,this),this.onMouseOver=()=>{this.useOnClickEvent||(clearTimeout(this._timeout),this.showDropdown())},this.onMouseOut=()=>{this.useOnClickEvent||(this._timeout=setTimeout(this.hideDropdown,350))},this.onDropdownClick=()=>{this.useOnClickEvent&&(this.active?this.hideDropdown():this.showDropdown())},this.showDropdown=()=>{this.active||(this.active=!0,this.props.onShow&&this.props.onShow())},this.hideDropdown=()=>{this.active=!1}}get useOnClickEvent(){return U.AppUI.layout.isMobile||this.props.showOnClick}componentDidUpdate(e){this.props.closeTimestamp&&this.props.closeTimestamp!==e.closeTimestamp&&(this.active=!1)}render(){return(0,K.jsxs)(ate,{width:this.props.linkWidth,overflow:this.props.linkOverflow,children:[(0,K.jsx)(ote,{width:this.props.linkWidth,onClick:this.onDropdownClick,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,cursor:this.props.children.length>1?`pointer`:null,children:this.props.children[0]}),(this.active||Lh)&&(0,K.jsxs)(ste,{top:(0,W.pixify)(this.props.top),width:this.props.dropdownWidth,right:(0,W.pixify)(this.props.right),boxShadow:this.props.boxShadow||`0px 2px 7px rgba(0, 0, 0, 0.25)`,onClick:this.props.closeOnDropdownClick?this.hideDropdown:null,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut,background:this.props.background,fontWeight:this.props.fontWeight,textAlign:this.props.textAlign,backgroundOnHover:this.props.backgroundOnHover,colorOnHover:this.props.colorOnHover,children:[this.useOnClickEvent&&(0,K.jsx)(cte,{onClick:this.hideDropdown}),this.props.children[1]]})]})}},Fh.propTypes={className:Z.default.string,style:Z.default.object,children:({children:e},t,n)=>{V.Children.count(e)!==2&&console.error(`Dropdown requires two children components in ${n}.`)}},Fh.defaultProps={top:`40px`,right:`0`,background:`#FFF`,fontWeight:300,fontSize:`15px`,textAlign:`center`,backgroundOnHover:q.Theme.darkestBlue,colorOnHover:`white`},Fh),Ph=Ih(Nh.prototype,`active`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ih(Nh.prototype,`useOnClickEvent`,[E],Object.getOwnPropertyDescriptor(Nh.prototype,`useOnClickEvent`),Nh.prototype),Nh))||Mh;D();var zh,Bh,Vh;function Hh(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Uh=N.div` 1446 ${(0,X.flexCenter)()} 1447 width: ${e=>e.width}; 1448 height: ${e=>e.height}; 1449 margin: ${e=>e.margin}; 1450 flex-direction: ${e=>e.alignment===`vertical`?`column`:`row`}; 1451 position: relative; 1452 cursor: ${e=>e.onClick?`pointer`:e.cursor||`default`}; 1453 transition: ${e=>e.onClick?`transform 0.08s ease`:`none`}; 1454 ${e=>e.onClick&&` 1455 &:active { 1456 transform: scale(0.97); 1457 } 1458 `} 1459`,Wh=N.div` 1460 width: ${e=>e.width}; 1461 height: ${e=>e.width}; 1462 ${(0,X.flexCenter)()} 1463 position: relative; 1464 border: 3px solid ${e=>e.fill}; 1465 border-radius: 50%; 1466 svg { 1467 width: ${e=>e.svgWidth}; 1468 #background { 1469 fill: ${e=>e.fill}; 1470 } 1471 } 1472`,Gh=N.div` 1473 z-index: ${q.Theme.z.foreground}; 1474 background: ${e=>e.background}; 1475 ${(0,X.flexCenter)()} 1476 color: white; 1477 height: ${e=>e.width}; 1478 width: ${e=>e.width}; 1479 position: absolute; 1480 bottom: ${e=>e.bottom}; 1481 right: ${e=>e.right}; 1482 font-size: ${e=>e.fontSize}; 1483 line-height: ${e=>e.fontSize}; 1484 text-align: center; 1485 font-weight: bold; 1486 border-radius: 50%; 1487 border: ${e=>e.borderWidth} solid ${e=>e.borderColor}; 1488`,Kh=N.div` 1489 z-index: ${q.Theme.z.background}; 1490`,qh=N.div` 1491 flex: 1; 1492 margin: 0 0 0 10px; 1493`,Jh=j(zh=(Bh=(Vh=class extends V.Component{get badgeColor(){return this.props.badgeColorOverride||this.props.badgeColor}
1493get currentLevel(){return this.props.currentLevelOverride||this.props.currentLevel}get levelRoman(){return this.props.levelRomanOverride||this.props.levelRoman}render(){return(0,K.jsx)(`div`,{style:{width:this.props.badgeWidth},children:(0,K.jsxs)(Uh,{alignment:this.props.alignment,margin:this.props.margin,width:this.props.wrapperWidth,height:this.props.wrapperHeight,cursor:this.props.cursor,onClick:this.props.onClick,children:[(0,K.jsxs)(Wh,{fill:this.badgeColor,width:this.props.width,svgWidth:(0,W.pixify)((0,W.depixify)(this.props.width)-10),height:this.props.height,children:[(0,K.jsx)(Kh,{children:this.props.icon}),this.currentLevel>0&&(0,K.jsx)(Gh,{background:this.badgeColor,bottom:this.props.bottom,right:this.props.right,width:(0,W.pixify)(this.props.levelIndicatorWidth),fontSize:(0,W.pixify)(this.props.levelIndicatorFontSize),borderWidth:(0,W.pixify)(this.props.levelIndicatorBorderWidth),borderColor:this.props.levelIndicatorBorderColor,children:this.levelRoman})]}),!this.props.hideInfo&&(0,K.jsxs)(qh,{children:[(0,K.jsx)(R,{bold:!0,fontSize:(0,W.pixify)(this.props.fontSize),lineHeight:`20px`,marginTop:this.props.textMarginTop,marginBottom:this.props.textMarginBottom,children:this.props.name}),this.props.showProgress&&(0,K.jsx)(Fn,{current:this.props.progressCurrent,total:this.props.progressTotal,width:`100%`,borderRadius:`5px`,height:`12px`})]})]})})}},Vh.defaultProps={alignment:`horizontal`,margin:`0 0 10px 0`,fontSize:16,textMarginBottom:3,bottom:`1px`,right:`1px`,levelIndicatorWidth:`20px`,levelIndicatorBorderWidth:`2px`,levelIndicatorFontSize:`10px`,levelIndicatorBorderColor:`#FFF`},Vh),Hh(Bh.prototype,`badgeColor`,[E],Object.getOwnPropertyDescriptor(Bh.prototype,`badgeColor`),Bh.prototype),Hh(Bh.prototype,`currentLevel`,[E],Object.getOwnPropertyDescriptor(Bh.prototype,`currentLevel`),Bh.prototype),Hh(Bh.prototype,`levelRoman`,[E],Object.getOwnPropertyDescriptor(Bh.prototype,`levelRoman`),Bh.prototype),Bh))||zh,Yh=(0,Y.BadgeWrapper)(Jh),Xh=e(xe()),Zh,Qh,$h=M(j(Zh=(Qh=class extends V.Component{fill(e){return this.props[`fill${e}`]||this.props.emptyFill}render(){return(0,K.jsx)(`svg`,{viewBox:`0 0 481 168`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{fill:this.fill(1),id:`segment-1`,d:`M39,145.424901 L39,167.082031 L5.236927,167.082031 C3.09096531,167.082031 1.18431576,165.712664 0.498857214,163.679121 C-0.383190924,161.062357 1.02307388,158.22601 3.63983757,157.343961 L39,145.424901 Z`}),(0,K.jsx)(`polygon`,{fill:this.fill(2),id:`segment-2`,points:`46 143.065369 87 129.245255 87 167.082031 46 167.082031 46 143.065369`}),(0,K.jsx)(`polygon`,{fill:this.fill(3),id:`segment-3`,points:`135 113.065608 135 167.082031 94 167.082031 94 126.885723`}),(0,K.jsx)(`polygon`,{fill:this.fill(4),id:`segment-4`,points:`183 96.8859622 183 167.082031 142 167.082031 142 110.706077`}),(0,K.jsx)(`polygon`,{fill:this.fill(5),id:`segment-5`,points:`190 94.5264304 231 80.706316 231 167.082031 190 167.082031 190 94.5264304`}),(0,K.jsx)(`polygon`,{fill:this.fill(6),id:`segment-6`,points:`279 64.5266698 279 167.082031 238 167.082031 238 78.3467843 279 64.5266698`}),(0,K.jsx)(`polygon`,{fill:this.fill(7),id:`segment-7`,points:`327 48.3470236 327 167.082031 286 167.082031 286 62.1671381 327 48.3470236`}),(0,K.jsx)(`polygon`,{fill:this.fill(8),id:`segment-8`,points:`334 45.9874919 375 32.1673775 375 167.082031 334 167.082031 334 45.9874919`}),(0,K.jsx)(`polygon`,{fill:this.fill(9),id:`segment-9`,points:`423 15.9877313 423 167.082031 382 167.082031 382 29.8078457 423 15.9877313`}),(0,K.jsx)(`path`,{fill:this.fill(10),id:`segment-10`,d:`M430,13.6281996 L467.41129,1.01775303 C468.440503,0.670830119 469.519359,0.493892615 470.605469,0.493892615 C476.128316,0.493892615 480.605469,4.97104512 480.605469,10.4938926 L480.605469,157.082031 C480.605469,162.604879 476.128316,167.082031 470.605469,167.082031 L430,167.082031 L430,13.6281996 Z`})]})})}},Qh.defaultProps={emptyFill:`#e0e0e0`},Qh))||Zh),eg,tg=N.div` 1494 width: 100%; 1495 display: flex; 1496 flex-direction: column; 1497 align-items: center; 1498 padding: 10px; 1499`,ng=N.div` 1500 display: flex; 1501 justify-content: center; 1502 margin-bottom: 25px; 1503`,rg=N.div` 1504`,ig=N.div` 1505 display: flex; 1506 justify-content: center; 1507 margin-bottom: 20px; 1508 svg { 1509 width: 240px; 1510 } 1511`,ag=N.div` 1512 width: 100%; 1513 padding: 18px; 1514`,og=N.div` 1515 width: 100%; 1516 margin-top: 20px; 1517`,sg=N.div` 1518 width: 100%; 1519 display: flex; 1520 align-items: center; 1521 justify-content: center; 1522`,cg=N.div` 1523 width: ${e=>e.width}px; 1524 display: flex; 1525 flex-direction: column; 1526 align-items: center; 1527`,lg={storyteller:J.ShakespeareIcon,interviewMe:J.MicrophoneBadgeIcon,deckmaster:J.CardsIcon,backInTime:J.ClockfaceIcon,storymaster:J.BookIcon,gendermaster:J.DerDieDasIcon,vocabmaster:J.MagnifyWordsIcon,brainiac:J.BrainIcon,triviamaster:J.TriviamasterIcon,pluralmaster:J.PluralIcon,community:J.CommunityBadgeIcon},ug=M(j(eg=class extends V.Component{get currentLevel(){let e=(0,G.findIndex)(this.props.badge.levels,e=>this.props.badge.current<e);return e===-1?this.props.badge.levels.length:e}get currentGoal(){return this.props.badge.levels[this.currentLevel]||this.props.badge.levels[this.props.badge.levels.length-1]}get progressCurrent(){return this.props.badge.current}get progressSegmentCount(){return!this.currentGoal||this.currentGoal<=0?10:Math.ceil(this.progressCurrent/this.currentGoal*10)}get levelText(){return this.currentLevel>0?`Level ${Xh.default.getRomanFromInteger(this.currentLevel)}`:`Level 0`}get progressText(){let e=this.props.badge.interpolationString&&!this.badgeBelongsToAuthUser&&this.badgeUserName?this.props.badge.interpolationString.replace(/^You've /,`${this.badgeUserName} has `):this.props.badge.interpolationString;return e?e.replace(`%{count}`,(0,W.kFormatter)(this.props.badge.current)):`${this.props.badge.description}: ${(0,W.kFormatter)(this.props.badge.current)}`}get badgeBelongsToAuthUser(){return!this.props.badge.user||this.props.badge.user.id?.toString()===U.AppUI.user.id?.toString()}get badgeUserName(){return this.props.badge.user?.name||this.props.badge.user?.firstName}get visibleBadgeLevelsWidth(){let e=U.AppUI.layout.isMobile?320:430,t=U.AppUI.layout.viewportWidth||e+80;return Math.max(Math.min(e,t-80),0)}get modalTop(){return U.AppUI.layout.isMobile?`20px`:`50px`}get modalMaxHeight(){return U.AppUI.layout.isMobile?`calc(100vh - 80px)`:`calc(100vh - 140px)`}get badgeLevelWidth(){return this.visibleBadgeLevelsWidth/5}get visibleBadgeLevelsCount(){return Math.min(this.props.badge.levels.length,5)}get badgeLevelsStartIndex(){let e=Math.max(this.currentLevel-1,0),t=Math.max(this.props.badge.levels.length-this.visibleBadgeLevelsCount,0),n=e-Math.floor(this.visibleBadgeLevelsCount/2);return Math.min(Math.max(n,0),t)}get visibleBadgeLevels(){return this.props.badge.levels.slice(this.badgeLevelsStartIndex,this.badgeLevelsStartIndex+this.visibleBadgeLevelsCount).map((e,t)=>({level:this.badgeLevelsStartIndex+t+1,levelGoal:e}))}get icon(){let e=lg[this.props.badge.badgeSlug];return e?(0,K.jsx)(e,{}):null}badgeLevelColor(e){return e<=this.currentLevel?q.Constants.BADGE_COLORS[e]:`#e0e0e0`}render(){return(0,K.jsx)(Dn,{width:U.AppUI.layout.isMobile?`calc(100% - 20px)`:`560px`,maxWidth:`calc(100% - 20px)`,top:this.modalTop,maxHeight:this.modalMaxHeight,contentShouldScroll:!0,padding:`20px`,iconFill:`#333`,iconTop:`20px`,onCloseModal:this.props.onCloseModal,children:(0,K.jsxs)(tg,{children:[(0,K.jsx)(ng,{children:(0,K.jsx)(Yh,{hideInfo:!0,disableTooltip:!0,alignment:`vertical`,width:`160px`,wrapperW
1527idth:`160px`,wrapperHeight:`160px`,bottom:`7px`,right:`7px`,levelIndicatorWidth:`40px`,levelIndicatorBorderWidth:`5px`,levelIndicatorFontSize:`18px`,name:this.props.badge.name,description:this.props.badge.description,current:this.props.badge.current,levels:this.props.badge.levels,icon:this.icon})}),(0,K.jsxs)(rg,{children:[(0,K.jsx)(R,{bold:!0,heading:1,center:!0,margin:`0 0 8px 0`,children:this.props.badge.name}),(0,K.jsx)(R,{center:!0,children:this.levelText})]}),(0,K.jsx)(ig,{children:(0,K.jsx)($h,{fill1:this.progressSegmentCount>=1?q.Theme.green:`#e0e0e0`,fill2:this.progressSegmentCount>=2?q.Theme.green:`#e0e0e0`,fill3:this.progressSegmentCount>=3?q.Theme.green:`#e0e0e0`,fill4:this.progressSegmentCount>=4?q.Theme.green:`#e0e0e0`,fill5:this.progressSegmentCount>=5?q.Theme.green:`#e0e0e0`,fill6:this.progressSegmentCount>=6?q.Theme.green:`#e0e0e0`,fill7:this.progressSegmentCount>=7?q.Theme.green:`#e0e0e0`,fill8:this.progressSegmentCount>=8?q.Theme.green:`#e0e0e0`,fill9:this.progressSegmentCount>=9?q.Theme.green:`#e0e0e0`,fill10:this.progressSegmentCount>=10?q.Theme.green:`#e0e0e0`})}),(0,K.jsxs)(ag,{children:[(0,K.jsx)(R,{center:!0,margin:`0 0 8px 0`,children:this.progressText}),(0,K.jsx)(R,{center:!0,children:`Next level: ${(0,W.kFormatter)(this.currentGoal)}`})]}),(0,K.jsx)(og,{children:(0,K.jsx)(sg,{children:this.visibleBadgeLevels.map(e=>(0,K.jsxs)(cg,{width:this.badgeLevelWidth,children:[(0,K.jsx)(Yh,{hideInfo:!0,disableTooltip:!0,alignment:`vertical`,width:`54px`,wrapperWidth:`${this.badgeLevelWidth}
1527px`,wrapperHeight:`80px`,bottom:`-6px`,right:`-6px`,levelIndicatorWidth:`22px`,levelIndicatorBorderWidth:`3px`,levelIndicatorFontSize:`8px`,name:this.props.badge.name,description:this.props.badge.description,current:e.levelGoal,levels:this.props.badge.levels,icon:this.icon,badgeColorOverride:this.badgeLevelColor(e.level),currentLevelOverride:e.level,levelRomanOverride:Xh.default.getRomanFromInteger(e.level)}),(0,K.jsx)(R,{center:!0,fontSize:`13px`,margin:`-8px 0 0 0`,color:e.level<=this.currentLevel?`#000`:`#777`,children:(0,W.kFormatter)(e.levelGoal)})]},e.levelGoal))})})]})})}})||eg),dg,fg,pg=N.div` 1528 width: ${e=>e.width}; 1529 text-align: center; 1530 position: relative; 1531 margin: ${e=>e.margin||`0 10px 0 0`}; 1532`,mg=N.div` 1533 background: ${e=>e.displayOverBadge?`${e.background}cc`:e.background}; /* cc is hex for 0.8 opacity */ 1534 width: ${e=>e.width}; 1535 height: ${e=>e.width}; 1536 border-radius: ${e=>e.width}; 1537 color: ${e=>e.color}; 1538 line-height: ${e=>e.lineHeight}; 1539 font-weight: bold; 1540 font-size: 12px; 1541 border: 2px solid ${e=>e.borderColor}; 1542 display: flex; 1543 align-items: center; 1544 justify-content: center; 1545`,hg=j(dg=(fg=class extends V.Component{render(){return(0,K.jsx)(pg,{width:this.props.width,margin:this.props.margin,children:(0,K.jsx)(mg,{width:this.props.width,lineHeight:(0,W.pixify)((0,W.depixify)(this.props.width)-4),background:this.props.background,borderColor:this.props.borderColor,color:this.props.promotionStatus===0?`#333`:`#FFF`,displayOverBadge:this.props.displayOverBadge,children:this.props.rank||this.props.children})})}},fg.defaultProps={width:`25px`},fg))||dg,gg=(0,Y.LeagueRankWrapper)(hg),_g,vg,yg=N.div` 1546 position: relative; 1547 display: flex; 1548 align-items: center; 1549 justify-content: center; 1550 margin: ${e=>e.margin}; 1551 svg { 1552 width: ${e=>e.width}; 1553 height: auto; 1554 } 1555`,bg=N.div` 1556 position: absolute; 1557 right: -10px; 1558 bottom: 0px; 1559 display: flex; 1560 align-items: center; 1561 justify-content: center; 1562`,lte={0:J.LeagueLockedIcon,1:J.LeagueBadge1Icon,2:J.LeagueBadge2Icon,3:J.LeagueBadge3Icon,4:J.LeagueBadge4Icon,5:J.LeagueBadge5Icon,6:J.LeagueBadge6Icon},xg=M(j(_g=(vg=class extends V.Component{render(){let e=lte[this.props.leagueLevelPosition];return e?(0,K.jsxs)(yg,{width:this.props.width,margin:this.props.margin,children:[(0,K.jsx)(e,{...this.props}),this.props.showRank&&!this.props.showIcon&&(0,K.jsx)(bg,{children:(0,K.jsx)(gg,{promotionStatus:this.props.promotionStatus,borderColor:this.props.borderColor,displayOverBadge:!0,children:this.props.rank})}),this.props.showIcon&&this.props.promotionStatus!==0&&(0,K.jsx)(bg,{children:(0,K.jsx)(gg,{promotionStatus:this.props.promotionStatus,borderColor:this.props.borderColor,displayOverBadge:!0,children:(0,K.jsx)(`i`,{className:`fa fa-${this.props.promotionStatus===1?`chevron-up`:`chevron-down`}`})})})]}):null}},vg.defaultProps={width:`80px`},vg))||_g);D();var Sg,Cg;function wg(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ute=N.div` 1563 display: inline-block; 1564 .fragment { 1565 display: inline; 1566 } 1567 .fragment + .fragment { 1568 margin: 0 0 0 5px; 1569 } 1570 .object { 1571 font-weight: bold; 1572 } 1573`,Tg=M(j(Sg=(Cg=class extends V.Component{constructor(...e){super(...e),this.endsWithPunctuation=e=>{if(!e)return!1;let t=e.trim().slice(-1);return[`.`,`!`,`?`].includes(t)}}get lastTextFragment(){let{notification:e}=this.props;return e.notificationObject?e.notificationObject:e.linkText?e.linkText:e.notificationText?e.notificationText:``}get needsPeriod(){return!this.endsWithPunctuation(this.lastTextFragment)}render(){return(0,K.jsxs)(ute,{children:[(0,W.isPresent)(this.props.notification.leagueLevel)&&(0,K.jsx)(`span`,{className:`fragment`,children:this.props.notification.action===`demoted`?(0,K.jsx)(K.Fragment,{children:`You have been demoted to the ${this.props.notification.leagueLevel.name}. Keep learning to climb back up!`}):this.props.notification.action===`promoted`?(0,K.jsx)(K.Fragment,{children:`Well done! You have been promoted to the ${this.props.notification.leagueLevel.name}.`}):(0,K.jsx)(K.Fragment,{children:`You have been added to the ${this.props.notification.leagueLevel.name}. Good luck!`})}),(0,W.isBlank)(this.props.notification.leagueLevel)&&(0,K.jsxs)(K.Fragment,{children:[this.props.notification.primarySender&&(0,K.jsx)(`span`,{className:`fragment`,children:this.props.notification.primarySender.name?this.props.notification.primarySender.name.trim():`Someone`}),this.props.notification.additionalUsers&&(0,K.jsx)(`span`,{className:`fragment`,children:this.props.notification.additionalUsers}),(0,K.jsx)(`span`,{className:`fragment`,children:this.props.notification.notificationText}),this.props.notification.linkText&&(0,K.jsx)(`div`,{className:`fragment object link`,children:this.props.notification.linkText}),this.props.notification.notificationObject&&(0,K.jsx)(`div`,{className:`fragment object`,children:this.props.notification.notificationObject}),this.needsPeriod&&`.`]}
1573)]})}},wg(Cg.prototype,`lastTextFragment`,[E],Object.getOwnPropertyDescriptor(Cg.prototype,`lastTextFragment`),Cg.prototype),wg(Cg.prototype,`needsPeriod`,[E],Object.getOwnPropertyDescriptor(Cg.prototype,`needsPeriod`),Cg.prototype),Cg))||Sg),Eg,Dg,dte=N.div` 1574 margin: ${e=>e.margin}; 1575 padding: 3px; 1576 svg { 1577 fill: #FFF; 1578 } 1579`,fte=N.div` 1580 z-index: ${e=>e.zIndex}; 1581 width: ${e=>e.width}; 1582 position: relative; 1583 display: flex; 1584 flex-direction: column; 1585 align-items: center; 1586 border-radius: 50%; 1587 background: linear-gradient(-134deg,#efefef 0%,#dddddd 100%); 1588`,pte=N.div` 1589 width: ${e=>e.width}; 1590 height: ${e=>e.width}; 1591 background-image: ${e=>`url(${e.imageUrl})`}; 1592 cursor: ${e=>e.hasOnClick?`pointer`:`default`}; 1593 border: ${e=>e.border}; 1594 border-radius: 50%; 1595 background-size: cover; 1596 background-position: center center; 1597`,mte=N.div` 1598 ${(0,X.flexCenterColumn)()} 1599 width: ${e=>e.width}; 1600 height: ${e=>e.width}; 1601 border: ${e=>e.border}; 1602 border-radius: 50%; 1603 background: #616161; 1604 .icon-wrapper { 1605 width: 60%; 1606 height: 60%; 1607 } 1608`,Og=M(j(Eg=(Dg=class extends V.Component{render(){return(0,K.jsx)(dte,{margin:this.props.margin,children:(0,K.jsxs)(fte,{zIndex:this.props.zIndex,width:(0,W.pixify)(this.props.width),children:[this.props.site&&(0,W.isPresent)(this.props.site.teamLogo?.image)&&(0,K.jsx)(pte,{margin:this.props.margin,border:this.props.border,width:(0,W.pixify)(this.props.width),imageUrl:this.props.site.favicon.image.url}),(0,W.isBlank)(this.props.site?.favicon)&&(0,K.jsx)(mte,{margin:this.props.margin,width:(0,W.pixify)(this.props.width),border:this.props.border||this.props.anonymousBorder,children:(0,K.jsx)(J.UserIcon,{})})]})})}},Dg.defaultProps={width:35,fontSize:14},Dg))||Eg);D(),me();var kg,Ag,jg;function hte(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var gte=N.div` 1609 margin: ${e=>e.margin}; 1610 padding: ${e=>e.padding}; 1611 svg { 1612 fill: #FFF; 1613 } 1614`,_te=N.div` 1615 z-index: ${e=>e.zIndex}; 1616 width: ${e=>e.width}; 1617 position: relative; 1618 display: flex; 1619 flex-direction: column; 1620 align-items: center; 1621 border-radius: 50%; 1622 background: ${e=>e.background}; 1623`,vte=N.div` 1624 position: absolute; 1625 top: -2px; 1626 right: -2px; 1627`,yte=N.div` 1628 position: absolute; 1629 top: -5px; 1630 right: -5px; 1631`,bte=N.div` 1632 width: ${e=>e.width}; 1633 height: ${e=>e.width}; 1634 background-image: ${e=>`url(${e.imageUrl})`}; 1635 cursor: ${e=>e.hasOnClick?`pointer`:`default`}; 1636 border: ${e=>e.border}; 1637 border-radius: 50%; 1638 background-size: cover; 1639 background-position: center center; 1640`,xte=N.div` 1641 ${(0,X.flexCenterColumn)()} 1642 width: ${e=>e.width}; 1643 height: ${e=>e.width}; 1644 border: ${e=>e.border}; 1645 cursor: ${e=>e.hasOnClick?`pointer`:`default`}; 1646 border-radius: 50%; 1647 background: #616161; 1648 .icon-wrapper { 1649 width: 60%; 1650 height: 60%; 1651 } 1652`,Ste=N.div` 1653 width: 60px; 1654 font-size: ${e=>e.fontSize}; 1655 line-height: 18px; 1656 text-align: center; 1657`,Mg=M(j(kg=(Ag=(jg=class extends V.Component{constructor(e){super(e),this.onClick=()=>{this.props.clickToProfile?H.RouteStore.routeToNamed(`profiles.show`,{userId:this.props.user.id}):this.props.onClick&&this.props.onClick()},this.uuid=wn()}get hasOnClick(){return this.props.clickToProfile||(0,W.isPresent)(this.props.onClick)}render(){return(0,K.jsx)(gte,{margin:this.props.margin,padding:this.props.padding,children:(0,K.jsxs)(_te,{zIndex:this.props.zIndex,width:(0,W.pixify)(this.props.width),background:U.AppUI.siteIsDefault?`linear-gradient(-134deg,#3BD7C5 0%,#0DAFF6 100%)`:`linear-gradient(-134deg,#efefef 0%,#dddddd 100%)`,children:[!this.props.showLanguageIcon&&this.props.user&&this.props.user.isMember&&!this.props.hideProStatus&&(0,K.jsx)(vte,{children:(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":this.uuid,children:[(0,K.jsx)(J.CrownIcon,{width:(0,W.pixify)(Math.floor(this.props.width/2.5)),showBackgroun
1657d:!0,background:this.props.user.admin||this.props.user.moderator||this.props.user.translator?q.Theme.purple:`#13AB5E`}),!this.props.hideTooltip&&(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:this.uuid,class:`custom-tooltip`,children:this.props.user.title})]})}),this.props.showLanguageIcon&&this.props.user&&(0,K.jsx)(yte,{children:(0,K.jsx)(J.LanguageIcon,{width:`20px`,showTooltip:!0,languageId:this.props.user.languageId})}),this.props.user&&this.props.user.imageUrl&&(0,K.jsx)(bte,{margin:this.props.margin,border:this.props.border,onClick:this.onClick,hasOnClick:this.hasOnClick,width:(0,W.pixify)(this.props.width),imageUrl:this.props.user.imageUrl}),(!this.props.user||(0,W.isBlank)(this.props.user.imageUrl))&&(0,K.jsx)(xte,{margin:this.props.margin,onClick:this.onClick,hasOnClick:this.hasOnClick,width:(0,W.pixify)(this.props.width),border:this.props.border||this.props.anonymousBorder,children:(0,K.jsx)(J.UserIcon,{})}),this.props.displayName&&(0,K.jsx)(Ste,{fontSize:this.props.fontSize,children:this.props.user.name})]})})}},jg.defaultProps={width:35,fontSize:14,padding:`3px`},jg),hte(Ag.prototype,`hasOnClick`,[E],Object.getOwnPropertyDescriptor(Ag.prototype,`hasOnClick`),Ag.prototype),Ag))||kg,{hideText:!0});D();var Ng,Pg,Fg;function Cte(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wte(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Tte=N.div` 1658 .seedlang-icon { 1659 margin-right: 10px; 1660 border-radius: 50%; 1661 border: 1px solid green; 1662 svg { 1663 width: 52px; 1664 } 1665 } 1666`,Ete=N.div` 1667 background: ${e=>e.background}; 1668 display: flex; 1669 align-items: center; 1670 padding: 5px; 1671 font-size: 14px; 1672 line-height: 18px; 1673 border-bottom: 1px solid #CCC; 1674 text-align: left; 1675 cursor: ${e=>e.cursor}; 1676 a { 1677 display: flex; 1678 align-items: center; 1679 flex: 1; 1680 color: inherit; 1681 text-decoration: none; 1682 } 1683`,Dte=N.div` 1684 flex: 1; 1685`,Ote=N.div` 1686 padding: 0 5px 5px 5px; 1687`,kte=N.div` 1688 width: 45px; 1689 height: 45px; 1690 margin: 7px; 1691 background: #FFF; 1692 border-radius: 200px; 1693 border: 3px solid orange; 1694 display: flex; 1695 align-items: center; 1696 justify-content: center; 1697`,Ate=N.div` 1698 width: 64px; 1699`,jte={storyteller:J.ShakespeareIcon,interviewMe:J.MicrophoneBadgeIcon,deckmaster:J.CardsIcon,backInTime:J.ClockfaceIcon,storymaster:J.BookIcon,gendermaster:J.DerDieDasIcon,vocabmaster:J.MagnifyWordsIcon,brainiac:J.BrainIcon,triviamaster:J.TriviamasterIcon,pluralmaster:J.PluralIcon,community:J.CommunityBadgeIcon},Mte=j(Ng=(Pg=class extends V.Component{constructor(...e){super(...e),Cte(this,`selectedBadge`,Fg,this),this.badgeForNotification=e=>{if(!e.badge)return null;let t=e.badgeLevel,n=e.badgeType||e.badge.badgeSlug||e.badge.badge_slug;return{name:e.badge.name,description:e.badge.description,interpolationString:e.badge.interpolationString||e.badge.interpolation_string,current:t?e.badge.levels[t-1]||e.badge.current||0:e.badge.current||0,levels:e.badge.levels,badgeSlug:n,badgeLevel:t}},this.onPressNotification=e=>{let t=this.badgeForNotification(e);e.badgeType&&t&&(this.selectedBadge=t)}}renderNotificationContent(e){let t=this.badgeForNotification(e);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Ate,{children:e.badgeType&&t?(0,K.jsx)(Yh,{hideInfo:!0,disableTooltip:!0,alignment:`vertical`,width:`52px`,wrapperWidth:`52px`,wrapperHeight:`52px`,bottom:`-4px`,right:`-4px`,levelIndicatorWidth:`20px`,levelIndicatorBorderWidth:`2px`,levelIndicatorFontSize:`8px`,cursor:`pointer`,name:t.name,description:t.description,current:t.current,levels:t.levels,icon:V.createElement(jte[t.badgeSlug])}):e.notifiableType===`Streak`?(0,K.jsx)(kte,{children:(0,K.jsx)(J.StreakIcon,{width:`17px`,top:`-3px`,full:!0,hideStreakNumber:!0})}):e.primarySender?(0,K.jsx)(Mg,{clickToProfile:!0,user:e.primarySender,width:52,margin:`0 10px 0 0`}):e.leagueLevel?(0,K.jsx)(xg,{leagueLevelPosition:e.leagueLevel.position,width:`50px`,height:`50px`,margin:`-5px 0 0 0`}
1699):U.AppUI.site.isDefault?(0,K.jsx)(J.SeedlangIcon,{}):(0,K.jsx)(Og,{site:U.AppUI.site,width:52,margin:`0 10px 0 0`})}),(0,K.jsxs)(Dte,{children:[(0,K.jsx)(Tg,{notification:e}),(0,K.jsx)(R,{italic:!0,color:`#777`,fontSize:`13px`,children:e.createdAt&&e.createdAt.relativeTime})]})]})}render(){return(0,K.jsxs)(Tte,{children:[this.selectedBadge&&(0,K.jsx)(ug,{badge:this.selectedBadge,onCloseModal:()=>this.selectedBadge=null}),(0,W.isPresent)(this.props.notifications)&&this.props.notifications.map(e=>{let t=this.badgeForNotification(e);return(0,K.jsx)(Ete,{background:e.seen?`#FFF`:`#edf2fa`,cursor:e.badgeType&&t?`pointer`:null,onClick:()=>this.onPressNotification(e),children:(0,W.isPresent)(e.notificationLink)&&!e.badgeType?(0,K.jsx)(F,{to:e.notificationLink,children:this.renderNotificationContent(e)}):this.renderNotificationContent(e)},e.id)}),(0,W.isPresent)(this.props.notifications)&&(0,K.jsx)(Ote,{children:(0,K.jsx)(In,{compact:!0,onClickScrollToTop:!0,store:this.props.store})})]})}},Fg=wte(Pg.prototype,`selectedBadge`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pg))||Ng,Ig,Nte=N.div` 1700`,Pte=N.div` 1701 background: ${e=>e.background}; 1702 display: flex; 1703 align-items: flex-start; 1704 padding: 5px; 1705 font-size: 14px; 1706 line-height: 18px; 1707 border-bottom: 1px solid #CCC; 1708 text-align: left; 1709 a { 1710 display: flex; 1711 align-items: flex-start; 1712 flex: 1; 1713 color: inherit; 1714 text-decoration: none; 1715 } 1716`,Fte=N.div` 1717 flex: 1; 1718`,Ite=N.div` 1719 padding: 0 5px 5px 5px; 1720`,Lte=N.div` 1721 padding-left: 4px; 1722 margin-right: 8px; 1723 display: flex; 1724 align-items: flex-start; 1725 margin-top: 2px; 1726`,Lg=N.div` 1727 width: 30px; 1728 height: 30px; 1729 border-radius: 50%; 1730 background: ${e=>e.background||`#dddddd`}; 1731 display: flex; 1732 align-items: center; 1733 justify-content: center; 1734 padding-right: 0.5px; 1735 .icon-wrapper { 1736 width: 16px; 1737 height: 16px; 1738 .icon { 1739 width: 16px; 1740 height: 16px; 1741 svg { 1742 fill: #333; 1743 width: 16px; 1744 height: 16px; 1745 } 1746 } 1747 } 1748`,Rte=j(Ig=class extends V.Component{constructor(...e){super(...e),this.isExternalLink=e=>e?e.startsWith(`http://`)||e.startsWith(`https://`):!1}renderNotificationContent(e){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Lte,{children:e.worksheet?.podcastEpisode?.podcast?.imageUrl?(0,K.jsx)(Lg,{background:U.AppUI.site.accentColor,children:(0,K.jsx)(J.MicrophoneIcon,{fill:`#FFF`})}):e.worksheet&&!e.worksheet.podcastEpisode?(0,K.jsx)(Lg,{background:`#ed2021`,children:(0,K.jsx)(J.YoutubeIcon,{fill:`#FFF`})}):e.primarySender||e.announcer?(0,K.jsx)(Mg,{user:e.primarySender||e.announcer,width:30,padding:`0px`}):(0,K.jsx)(Lg,{background:U.AppUI.site.secondaryAccentColor,children:(0,K.jsx)(J.BellIcon,{fill:`#FFF`})})}),(0,K.jsxs)(Fte,{children:[(0,K.jsx)(Tg,{notification:e}),(0,K.jsx)(R,{italic:!0,color:`#777`,fontSize:`13px`,children:e.createdAt&&e.createdAt.relativeTime})]})]})}render(){return(0,K.jsxs)(Nte,{children:[(0,W.isPresent)(this.props.notifications)&&this.props.notifications.map(e=>(0,K.jsx)(Pte,{background:e.seen?`FFF`:`#edf2fa`,children:this.isExternalLink(e.notificationLink)?(0,K.jsx)(`a`,{href:e.notificationLink,target:`_blank`,rel:`noopener noreferrer`,children:this.renderNotificationContent(e)}):(0,K.jsx)(F,{to:e.notificationLink,children:this.renderNotificationContent(e)})},e.id)),(0,W.isPresent)(this.props.notifications)&&(0,K.jsx)(Ite,{children:(0,K.jsx)(In,{compact:!0,onClickScrollToTop:!0,store:this.props.store})})]})}})||Ig,Rg,zte=N.div` 1749 margin-left: ${e=>e.marginLeft}; 1750 position: ${e=>e.isMobile?`initial`:`relative`}; 1751 width: ${e=>e.width}; 1752 height: ${e=>e.height}; 1753 .settings-icon { 1754 cursor: pointer; 1755 background: #585858; 1756 height: 20px; 1757 width: 20px; 1758 border-radius: 50%; 1759 display: flex; 1760 align-items: center; 1761 justify-content: center; 1762 svg { 1763 width: 12px; 1764 fill: #DDD; 1765 } 1766 } 1767`,Bte=N.div` 1768 background: #DDD; 1769 padding: 10px; 1770 font-size: 16px; 1771 display: flex; 1772 align-items: center; 1773 justify-content: center; 1774 min-height: ${e=>e.isMobile?`50px`:null}; 1775 box-sizing: border-box; 1776 position: ${e=>e.isMobile?`sticky`:`relative`}; 1777 top: 0; 1778 z-index: 1; 1779 flex-shrink: 0; 1780`,Vte=N.div` 1781 flex: 1; 1782 text-align: ${e=>e.isMobile?`center`:`left`}; 1783 font-weight: bold; 1784`,Hte=N.button` 1785 position: absolute; 1786 left: 10px; 1787 width: 36px; 1788 height: 36px; 1789 padding: 9px; 1790 border: 0; 1791 background: transparent; 1792 cursor: pointer; 1793 .left-arrow-icon, 1794 svg { 1795 width: 18px; 1796 height: 18px; 1797 fill: #636363; 1798 } 1799`,Ute=N.div` 1800 height: ${e=>e.isMobile?`100dvh`:e.height}; 1801 width: ${e=>e.isMobile?`100vw`:e.width}; 1802 top: ${e=>e.isMobile?0:`55px`}; 1803 right: ${e=>e.isMobile?0:e.right}; 1804 left: ${e=>e.isMobile?0:e.left}; 1805 z-index: ${q.Theme.z[`overlay-1`]}; 1806 background: white; 1807 position: ${e=>e.isMobile?`fixed`:`absolute`}; 1808 box-shadow: 0px 2px 7px rgba(0,0,0,0.25); 1809 border-bottom-right-radius: ${e=>e.isMobile?0:`5px`}; 1810 border-bottom-left-radius: ${e=>e.isMobile?0:`5px`}; 1811 overflow-y: auto; 1812`,Wte=N.div` 1813 display: ${e=>e.isMobile?`none`:`block`}; 1814 right: ${e=>e.right}; 1815 position: absolute; 1816 width: 0; 1817 height: 0; 1818 top: ${e=>e.isMobile?-5:-10}px; 1819 border-style: solid; 1820 border-width: 0 15px 15px 15px; 1821 border-color: transparent transparent #DDD transparent; 1822 z-index: ${q.Theme.z[`overlay-1`]}; 1823`,Gte=N.div` 1824 display: inline-flex; 1825 align-items: center; 1826 justify-content: center; 1827 cursor: pointer; 1828 border-radius: 50%; 1829 font-size: 14px; 1830 height: ${e=>e.width}; 1831 width: ${e=>e.width}; 1832 background: ${e=>e.background?e.background:`#1499b7`}; 1833`,zg=M(j(Rg=class extends V.Component{constructor(e){super(e),this.onClickOutside=e=>{this.props.popupOpened&&this.wrapperRef.current&&!this.wrapperRef.current.contains(e.target)&&this.props.onClickIcon()},this.wrapperRef=V.createRef()}componentDidMount(){document.addEventListener(`click`,this.onClickOutside)}componentWillUnmount(){document.removeEventListener(`click`,this.onClickOutside)}render(){return(0,K.jsxs)(zte,{ref:this.wrapperRef,isMobile:U.AppUI.layout.isMobile,width:U.AppUI.layout.isMobile?`35px`:`42px`,height:this.props.height,marginLeft:U.AppUI.siteIsDefault?`10
1833px`:`15px`,children:[(0,K.jsx)(Gte,{onClick:this.props.onClickIcon,background:this.props.background,width:U.AppUI.layout.isMobile?`35px`:`42px`,children:this.props.icon}),this.props.popupOpened&&(0,K.jsxs)(Ute,{isMobile:U.AppUI.layout.isMobile,height:(0,W.pixify)(this.props.height),width:U.AppUI.layout.isMobile?`100%`:(0,W.pixify)(this.props.width),right:U.AppUI.layout.isMobile?`auto`:(0,W.pixify)(this.props.right),left:U.AppUI.layout.isMobile?`0`:`auto`,children:[(0,K.jsx)(Wte,{isMobile:U.AppUI.layout.isMobile,right:(0,W.pixify)(this.props.arrowRight)}),(0,K.jsxs)(Bte,{isMobile:U.AppUI.layout.isMobile,children:[U.AppUI.layout.isMobile&&(0,K.jsx)(Hte,{"aria-label":`Back`,onClick:this.props.onClickIcon,children:(0,K.jsx)(J.ArrowLeftIcon,{})}),(0,K.jsx)(Vte,{isMobile:U.AppUI.layout.isMobile,children:this.props.title}),this.props.showSettings&&(0,K.jsx)(J.SettingsIcon,{onClick:this.props.onClickSettings})]}),this.props.children]})]})}})||Rg);be(),D();var Bg,Vg;function Kte(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var qte=N.div` 1834 .notifications-icon { 1835 border-radius: 50%; 1836 height: 42px; 1837 width: 42px; 1838 display: inline-flex; 1839 align-items: center; 1840 justify-content: center; 1841 position: relative; 1842 cursor: pointer; 1843 1844 .icon-wrapper { 1845 width: 17px; 1846 height: 20px; 1847 .bell-icon { 1848 width: 18px; 1849 pointer-events: none; 1850 } 1851 svg { 1852 width: 17px; 1853 fill: #333; 1854 } 1855 } 1856 } 1857`,Jte=N.div` 1858 position: relative; 1859 overflow: auto; 1860 height: ${e=>e.isMobile?`calc(100dvh - 50px)`:`calc(100% - 46px)`}; 1861`,Hg=j(Bg=(Vg=class extends V.Component{constructor(...e){super(...e),this.onClickIcon=()=>{!U.AppUI.notificationsOpened&&!U.AppUI.siteIsDefault&&U.AppUI.createEvent(`memrev - view notifications`,Ul()),U.AppUI.toggleNotificationsOpened()}}get height(){return U.AppUI.siteIsDefault?U.AppUI.layout.isMobile?U.AppUI.layout.mobileContentHeight:400:null}render(){return(0,K.jsx)(qte,{children:(0,K.jsx)(zg,{title:`Notifications`,height:this.height,width:U.AppUI.layout.isMobile?`100%`:`400px`,arrowRight:U.AppUI.layout.isMobile?68:56,right:`-50px`,background:this.props.background,onClickIcon:this.onClickIcon,popupOpened:U.AppUI.notificationsOpened,icon:(0,K.jsx)(J.NotificationsIcon,{count:U.AppUI.user.unseenNotificationsCount,hoverColor:this.props.hoverColor,hoverBackground:this.props.hoverBackground}),children:(0,K.jsxs)(Jte,{isMobile:U.AppUI.layout.isMobile,children:[U.AppUI.user.notificationsCount===0&&(0,K.jsx)(R,{center:!0,bold:!0,padding:`20px`,fontSize:`14px`,children:`You have no notifications`}),U.AppUI.user.notificationsCount>0&&!U.AppUI.notificationStore.initialRequestReceived&&(0,K.jsx)(P,{margin:`30px auto`,className:U.AppUI.siteIsDefault?`blue`:null,background:U.AppUI.siteIsDefault||(0,Hl.default)(U.AppUI.site.accentColor)?ve.blue:U.AppUI.site.accentColor}),U.AppUI.notificationStore.hasIndexData&&U.AppUI.siteIsDefault?(0,K.jsx)(Mte,{notifications:U.AppUI.notificationStore.indexData,store:U.AppUI.notificationStore}):(0,K.jsx)(Rte,{notifications:U.AppUI.notificationStore.indexData,store:U.AppUI.notificationStore})]})})})}},Kte(Vg.prototype,`height`,[E],Object.getOwnPropertyDescriptor(Vg.prototype,`height`),Vg.prototype),Vg))||Bg;me();var Ug,Wg,Yte=N.div` 1862 ${(0,X.flexCenter)()} 1863 background: ${e=>e.background}; 1864 width: ${e=>e.width}; 1865 height: ${e=>e.height}; 1866 border-radius: ${e=>e.borderRadius}; 1867 margin: 1px 0; 1868 .lightning-bolt-icon { 1869 height: ${e=>e.iconHeight}; 1870 svg { 1871 width: ${e=>e.iconWidth}; 1872 fill: #FFF; 1873 } 1874 } 1875 &:hover { 1876 border: ${e=>e.showTooltip?`1px solid gray`:null}; 1877 } 1878`,Xte=N.div` 1879 display: flex; 1880 align-items: center; 1881`,Gg=N.div` 1882 display: flex; 1883 align-items: center; 1884 .icon-wrapper { 1885 display: flex; 1886 align-items: center; 1887 } 1888`,Zte=j(Ug=(Wg=class extends V.Component{constructor(e){super(e),this.id=wn()}render(){return(0,K.jsxs)(Yte,{background:this.props.background,border:this.props.border,"data-tip":this.props.showTooltip,"data-for":this.id,showTooltip:this.props.showTooltip,hide:this.props.hide,width:this.props.width,height:this.props.height,borderRadius:this.props.borderRadius,iconHeight:this.props.iconHeight,iconWidth:this.props.iconWidth,children:[this.props.dailyXpCount.streakMet&&(0,K.jsx)(J.LightningBoltIcon,{}),this.props.showTooltip&&(0,K.jsxs)(he,{place:`top`,type:`light`,effect:`s
1888olid`,id:this.id,class:`custom-tooltip`,children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(`b`,{children:this.props.dateString})}),(0,K.jsx)(`div`,{children:`${this.props.dailyXpCount.xp||0} Total XP`}),this.props.xpBreakdowns&&this.props.xpBreakdowns.map(e=>(0,K.jsxs)(Xte,{children:[(0,K.jsx)(Gg,{children:`${e.xp} XP ${e.xpDescriptionFromSlug}`}),this.props.showFlags&&(0,K.jsx)(Gg,{children:(0,K.jsx)(J.LanguageIcon,{width:`12px`,margin:`0 0 0 2px`,languageId:e.languageId||`DE`})})]},e.id))]})]})}},Wg.defaultProps={width:`27px`,height:`27px`,borderRadius:`8px`,iconHeight:`16px`,iconWidth:`10px`},Wg))||Ug,Kg=(0,Y.DailyActivityCalendarDayWrapper)(Zte),qg,Qte=N.div` 1889 ${X.flexCenterColumn} 1890 margin: 10px 0; 1891 height: 210px; 1892`,$te=N.div` 1893 ${(0,X.flexCenterColumn)()} 1894 width: ${e=>e.width}; 1895`,ene=N.div` 1896 display: flex; 1897 flex-direction: column; 1898`,Jg=N.div` 1899 display: flex; 1900 align-items: center; 1901`,tne=N.div` 1902 width: 30px; 1903 height: 30px; 1904 font-weight: bold; 1905 font-size: 13px; 1906 color: #000; 1907 display: flex; 1908 align-items: center; 1909 justify-content: center; 1910`,nne=N.div` 1911 width: 30px; 1912 height: 30px; 1913 font-weight: bold; 1914 color: #000; 1915 display: flex; 1916 align-items: center; 1917 justify-content: center; 1918 font-size: 11px; 1919`,rne=j(qg=class extends V.Component{render(){return(0,K.jsxs)(Qte,{width:(0,W.pixify)(this.props.calendarWidth),children:[this.props.loading&&(0,K.jsx)(P,{}),!this.props.loading&&(0,K.jsxs)($te,{children:[(0,K.jsx)(Jg,{children:[`S`,`M`,`T`,`W`,`T`,`F`,`S`].map((e,t)=>(0,K.jsx)(tne,{children:e},t))}),(0,K.jsx)(ene,{children:this.props.days.map((e,t)=>(0,K.jsx)(Jg,{children:e.map((e,t)=>{let n=this.props.store.indexData.find(t=>t.occurredAt===e[2])||{};return(0,K.jsx)(nne,{children:(0,K.jsx)(Kg,{hide:e[0]!==this.props.selectedMonth,dateString:e[3],month:e[0],day:e[1],currentDay:this.props.currentDay,currentMonth:this.props.currentMonth,showTooltip:e[0]===this.props.selectedMonth,dailyXpCount:n,showFlags:this.props.showFlags,xpBreakdowns:this.props.summarizedXpBreakdowns(n)})},t)})},t))})]})]})}})||qg,Yg,ine=N.div` 1920 display: flex; 1921 align-items: center; 1922`,Xg=N.div` 1923 ${X.flexCenter} 1924 background: ${e=>e.faded?q.Theme.fadedGreen:q.Theme.green}; 1925 font-size: 12px; 1926 margin-right: 8px; 1927 font-weight: bold; 1928 border-radius: 3px; 1929 height: 24px; 1930 padding: 5px; 1931 color: white; 1932 .lightning-bolt-icon { 1933 svg { 1934 width: 9px; 1935 margin: 5px 3px 0 0; 1936 fill: #FFF; 1937 } 1938 } 1939`,ane=N.div` 1940 margin-top: -6px; 1941`,one=N.div` 1942 display: flex; 1943 align-items: center; 1944 width: 100%; 1945`,Zg=N.div` 1946 height: 24px; 1947 width: 24px; 1948 cursor: pointer; 1949 background: ${e=>e.background}; 1950 border-radius: 3px; 1951 display: flex; 1952 align-items: center; 1953 justify-content: center; 1954 margin-left: 5px; 1955 .list-with-bullet-icon svg { 1956 width: 15px; 1957 height: 19px; 1958 } 1959 .calendar-icon svg { 1960 width: 24px; 1961 height: 24px; 1962 margin: 3px 0 0 0; 1963 } 1964 .info-circle-icon svg { 1965 width: 18px; 1966 } 1967 svg { 1968 fill: #FFF; 1969 } 1970 i { 1971 font-size: 14px; 1972 color: #FFF; 1973 } 1974`,sne=N.div` 1975 flex: 1; 1976 display: flex; 1977 justify-content: flex-end; 1978`,cne=j(Yg=class extends V.Component{render(){return(0,K.jsxs)(one,{children:[(0,K.jsxs)(ine,{children:[(0,K.jsx)(Xg,{faded:!0,children:`1-${(this.props.dailyXpGoal||15)-1}XP`}),(0,K.jsxs)(Xg,{children:[(0,K.jsx)(ane,{children:(0,K.jsx)(J.LightningBoltIcon,{})}),`Streak`]})]}),(0,K.jsxs)(sne,{children:[(0,K.jsxs)(Zg,{background:this.props.showInfo?q.Theme.red:`#5b5b5b`,onClick:this.props.toggleInfo,children:[this.props.showInfo&&(0,K.jsx)(`i`,{className:`fa fa-times`}),!this.props.showInfo&&(0,K.jsx)(`i`,{className:`fa fa-info`})]}),(0,K.jsxs)(Zg,{background:`#5b5b5b`,onClick:this.props.onToggleXpView,children:[U.AppUI.user.xpView===`calendar`&&(0,K.jsx)(J.ListWithBulletIcon,{}),U.AppUI.user.xpView===`list`&&(0,K.jsx)(J.CalendarIcon,{})]})]})]})}})||Yg,Qg=e(pe()),$g,lne=N.div` 1979 width: 100%; 1980`,une=N.div` 1981 display: flex; 1982 width: 100%; 1983`,dne=N.div` 1984 flex: 1; 1985 font-size: 13px; 1986 text-align: center; 1987 justify-content: center; 1988 display: flex; 1989 font-weight: bold; 1990 color: #000; 1991 text-transform: uppercase; 1992`,e_=N.div` 1993 cursor: ${e=>e.cursor};
1994 width: 20px; 1995 height: 20px; 1996 display: flex; 1997 align-items: center; 1998 justify-content: center; 1999 i { 2000 margin-left: 10px; 2001 font-size: 29px; 2002 cursor: pointer; 2003 color: #a2a2a2; 2004 &.disabled { 2005 cursor: default; 2006 } 2007 } 2008`,fne=j($g=class extends V.Component{render(){return(0,K.jsx)(lne,{children:(0,K.jsxs)(une,{children:[(0,K.jsx)(e_,{onClick:this.props.decrement,cursor:`pointer`,children:(0,K.jsx)(`i`,{className:`fa fa-angle-left`})}),(0,K.jsx)(dne,{children:this.props.selectedDateString}),(0,K.jsx)(e_,{onClick:this.props.increment,cursor:this.props.monthIsCurrent?`default`:`pointer`,children:(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,`fa-angle-right`,{disabled:this.props.monthIsCurrent})})})]})})}})||$g,t_,pne=N.div` 2009 height: 240px; 2010 overflow: scroll; 2011 margin: 0 0 10px 0; 2012 h3 { 2013 font-size: 16px; 2014 } 2015 p { 2016 font-size: 13px; 2017 line-height: 14px; 2018 } 2019`,mne=j(t_=class extends V.Component{render(){return(0,K.jsxs)(pne,{children:[(0,K.jsx)(`h3`,{children:`What is XP?`}),(0,K.jsx)(`p`,{children:`XP stands for "experience points", and is given for performing learning activities across Seedlang.`}),(0,K.jsx)(`h3`,{children:`What is a Streak?`}),(0,K.jsx)(`p`,{children:`A "streak" is the number of consecutive days in which you meet your XP requirements.`}),(0,K.jsx)(`h3`,{children:`What if I lose my streak?`}),(0,K.jsxs)(`p`,{children:[`You can extend your streak by an extra day by reaching `,U.AppUI.user.streakExtendGoal,`XP in one day.`]}),(0,K.jsxs)(`p`,{children:[`This can be enabled or disabled on the `,(0,K.jsx)(F,{to:`settings.user_profile`,className:`underline`,target:`_blank`,children:`settings page.`})]}),(0,K.jsx)(`p`,{children:`If you are a Pro member, you can also repair your streak once a month by clicking this button.`}),(0,K.jsx)(F,{to:`settings.streak_repair`,children:(0,K.jsx)(I,{padding:`10px`,borderRadius:`5px`,fontSize:`13px`,children:`Repair Streak`})}),(0,K.jsx)(`h3`,{children:`Can I update my time zone?`}),(0,K.jsx)(`p`,{children:`Yes, you can do this by going to your settings page.`}),(0,K.jsx)(F,{to:`settings.user_profile`,children:(0,K.jsx)(I,{padding:`10px`,borderRadius:`5px`,fontSize:`13px`,children:`Settings Page`})})]})}})||t_,n_,hne=N.div` 2020 height: 210px; 2021 overflow: scroll; 2022 margin: 10px 0; 2023`,gne=N.div` 2024 display: flex; 2025 flex-direction: column; 2026 border-bottom: 1px solid #CCC; 2027 margin-bottom: 5px; 2028 padding-bottom: 5px; 2029`,_ne=N.div` 2030 display: flex; 2031 flex-direction: row; 2032 align-items: center; 2033`,vne=N.div` 2034 margin-left: 5px; 2035 font-size: 14px; 2036 font-weight: bold; 2037`,yne=N.div` 2038 margin-left: 33px; 2039 font-size: 12px; 2040`,bne=N.div` 2041 display: flex; 2042 flex-direction: row; 2043 align-items: center; 2044`,xne=N.div` 2045 flex: 1; 2046`,Sne=N.div` 2047 width: 45px; 2048 color: #a5a5a5; 2049 font-style: italic; 2050`,Cne=N.div` 2051 width: 20px; 2052 display: flex; 2053 align-items: center; 2054 justify-content: center; 2055 .icon-wrapper { 2056 display: flex; 2057 align-items: center; 2058 } 2059`,wne=N.div` 2060 font-size: 14px; 2061 margin: 0 10px; 2062`,Tne=j(n_=class extends V.Component{render(){return(0,K.jsxs)(hne,{children:[!this.props.loading&&!this.props.store.hasIndexData&&(0,K.jsxs)(wne,{children:[(0,K.jsx)(Nn,{}),`Your account does not yet have any activity.`]}),this.props.loading&&(0,K.jsx)(P,{}),!this.props.loading&&this.props.store.indexData.map(e=>e.xp>0?(0,K.jsxs)(gne,{children:[(0,K.jsxs)(_ne,{children:[(0,K.jsx)(Kg,{dailyXpCount:e,width:`22px`,height:`22px`,borderRadius:`7px`,iconHeight:`13px`,iconWidth:`8px`,showFlags:this.props.showFlags}),(0,K.jsxs)(vne,{children:[e.xpCalendarDateMonth,` `,e.xpCalendarDateDay]})]}),(0,K.jsx)(yne,{children:this.props.summarizedXpBreakdowns(e)?.map(e=>(0,K.jsxs)(bne,{children:[(0,K.jsx)(xne,{children:`${e.xp} XP ${e.xpDescriptionFromSlug}`}),this.props.showFlags&&(0,K.jsx)(Cne,{children:(0,K.jsx)(J.LanguageIcon,{width:`12px`,languageId:e.languageId||`DE`})}),(0,K.jsx)(Sne,{children:e.occurredAtTimeLocal})]},e.id))})]},e.id):null)]})}})||n_;D();var r_,i_,a_;function Ene(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Dne(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var One=N.div` 2063 width: 210px; 2064`,kne=j(r_=(i_=class extends V.Component{constructor(...e){super(...e),Ene(this,`showInfo`,a_,this)}render(){return(0,K.jsxs)(One,{children:[!this.showInfo&&(0,K.jsx)(fne,{...this.props}),U.AppUI.user.xpView===`calendar`&&!this.showInfo&&(0,K.jsx)(rne,{...this.props,show
2064Flags:this.props.user.targetLanguagesWithXpCount>1}),U.AppUI.user.xpView!==`calendar`&&!this.showInfo&&(0,K.jsx)(Tne,{...this.props,showFlags:this.props.user.targetLanguagesWithXpCount>1}),this.showInfo&&(0,K.jsx)(mne,{hideInfo:()=>this.showInfo=!1}),(0,K.jsx)(cne,{showInfo:this.showInfo,toggleInfo:()=>this.showInfo=!this.showInfo,...this.props})]})}},a_=Dne(i_.prototype,`showInfo`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i_))||r_,o_=(0,Y.DailyActivityWrapper)(kne),s_,Ane=N.div` 2065 2066`,jne=N.div` 2067 margin: 20px; 2068`,Mne=N.div` 2069 display: flex; 2070 flex-direction: column; 2071 align-items: center; 2072 padding: 10px 20px 30px; 2073`,Nne=N.div` 2074 width: 160px; 2075 height: 160px; 2076 background: #FFF; 2077 border-radius: 50%; 2078 border: 10px solid orange; 2079 margin-bottom: 20px; 2080 display: flex; 2081 align-items: center; 2082 justify-content: center; 2083 box-sizing: border-box; 2084`,Pne=N.div` 2085 width: 300px; 2086 max-width: 100%; 2087`,c_=M(j(s_=class extends V.Component{renderDailyActivity(){return(0,K.jsx)(o_,{store:U.AppUI.authUserDailyXpCountStore,dailyXpGoal:U.AppUI.user?.dailyXpGoal,userId:U.AppUI.user?.id,todaysDate:U.AppUI.user?.todaysDate})}render(){return(0,K.jsx)(Ane,{children:(0,K.jsx)(zg,{height:U.AppUI.layout.isMobile?U.AppUI.layout.mobileContentHeight:null,title:U.AppUI.layout.isMobile?`Streak`:`My Activity`,background:this.props.background,arrowRight:U.AppUI.layout.isMobile?17:56,right:`-50px`,width:U.AppUI.layout.isMobile?`100%`:`255px`,onClickIcon:()=>U.AppUI.toggleStreakPopupOpened(),popupOpened:U.AppUI.streakPopupOpened,icon:(0,K.jsx)(J.StreakIcon,{user:U.AppUI.user,color:`rgba(255, 255, 255, 0.8)`,width:U.AppUI.layout.isMobile?`10px`:`13px`,top:U.AppUI.layout.isMobile?`3px`:0,fontSize:U.AppUI.layout.isMobile?`10px`:`12px`}),children:U.AppUI.layout.isMobile?(0,K.jsxs)(Mne,{children:[(0,K.jsx)(R,{heading:2,bold:!0,center:!0,margin:U.AppUI.user.currentStreakCount===0?`10px 0`:`10px 0 20px`,children:U.AppUI.user.currentStreakCount===0?`You don't have a current streak.`:`You have a ${U.AppUI.user.currentStreakCount} day streak!`}),U.AppUI.user.currentStreakCount===0&&(0,K.jsx)(Pne,{children:(0,K.jsx)(R,{color:`#999`,fontSize:`14px`,center:!0,margin:`0 0 20px`,children:`Your "streak" is the number of consecutive days you have earned at least ${U.AppUI.user.dailyXpGoal} XP.`})}),(0,K.jsx)(Nne,{children:(0,K.jsx)(J.StreakIcon,{width:`60px`,height:`100px`,user:U.AppUI.user,full:!0,hideStreakNumber:!0})}),(0,K.jsx)(R,{heading:2,bold:!0,center:!0,margin:`0 0 20px`,children:`XP Progress`}),this.renderDailyActivity()]}):(0,K.jsx)(jne,{children:this.renderDailyActivity()})})})}})||s_),l_=class extends V.Component{render(){return(0,K.jsx)(`div`,{className:`seedlang-logo`,children:(0,K.jsx)(`svg`,{viewBox:`0 0 623 122`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{d:`M121.772,61.161 C121.772,94.652 94.62,121.805 61.128,121.805 C27.635,121.805 0.483,94.652 0.483,61.161 C0.483,27.667 27.635,0.515 61.128,0.515 C94.62,0.515 121.772,27.667 121.772,61.161`,id:`Fill-1`,fill:`#FFFFFF`}),(0,K.jsx)(`path`,{d:`M61.291,70.356 C61.27,70.356 61.251,70.357 61.23,70.357 C61.172,69.472 61.139,68.579 61.139,67.678 C61.139,67.525 61.143,67.373 61.145,67.221 C61.144,67.1 61.14,66.981 61.
208714,66.861 C61.14,67.018 61.136,67.175 61.135,67.332 C61.135,67.448 61.139,67.562 61.139,67.678 C61.139,68.579 61.106,69.472 61.049,70.357 C61.029,70.357 61.01,70.356 60.989,70.356 C60.218,79.401 56.485,87.602 50.764,93.98 L71.518,93.98 C65.797,87.602 62.063,79.401 61.291,70.356`,id:`Fill-10`,fill:`#8F2327`}),(0,K.jsx)(`path`,{d:`M20.647,28.34 C20.59,29.227 20.558,30.121 20.558,31.019 C20.558,53.412 38.669,71.571 61.041,71.652 C61.126,70.653 61.175,69.644 61.186,68.626 C61.002,46.375 42.932,28.387 20.647,28.34`,id:`Fill-11`,fill:`#47A455`}),(0,K.jsx)(`path`,{d:`M101.694,31.019 C101.694,30.121 101.662,29.227 101.604,28.34 C79.356,28.387 61.313,46.314 61.068,68.515 C61.077,69.57 61.127,70.617 61.214,71.652 C83.585,71.568 101.694,53.409 101.694,31.019`,id:`Fill-12`,fill:`#45783A`}),(0,K.jsx)(`path`,{d:`M163.133,94.94 C153.263,94.94 145.555,91.838 138.129,85.728 C137.659,85.352 137.189,84.694 137.189,83.848 C137.189,82.532 138.317,81.404 139.633,81.404 C140.291,81.404 140.855,81.686 141.231,81.968 C147.811,87.89 154.391,90.522 163.415,90.522 C173.285,90.522 180.053,84.976 180.053,77.456 L180.053,77.268 C180.053,70.312 176.387,66.27 161.441,63.262 C145.649,60.066 139.257,54.708 139.257,44.744 L139.257,44.556 C139.257,34.78 148.187,27.26 160.407,27.26 C169.243,27.26 175.353,29.516 181.369,34.028 C181.839,34.404 182.403,35.062 182.403,36.002 C182.403,37.318 181.275,38.446 179.959,38.446 C179.395,38.446 178.831,38.258 178.361,37.882 C172.627,33.464 166.893,31.678 160.219,31.678 C150.537,31.678 144.145,37.224 144.145,44.086 L144.145,44.274 C144.145,51.23 147.717,55.46 163.321,58.656 C178.549,61.758 184.941,67.21 184.941,76.798 L184.941,76.986 C184.941,87.608 175.823,94.94 163.133,94.94 Z M196.789,94 C195.473,94 194.345,92.872 194.345,91.556 L194.345,30.644 C194.345,29.328 195.473,28.2 196.789,28.2 L239.277,28.2 C240.499,28.2 241.533,29.234 241.533,30.456 C241.533,31.678 240.499,32.712 239.277,32.712 L199.233,32.712 L199.233,58.562 L235.047,58.562 C236.269,58.562 237.303,59.596 237.303,60.818 C237.303,62.04 236.269,63.074 235.047,63.074 L199.233,63.074 L199.233,89.488 L239.747,89.488 C240.969,89.488 242.003,90.522 242.003,91.744 C242.003,92.966 240.969,94 239.747,94 L196.789,94 Z M253.099,94 C251.783,94 250.655,92.872 250.655,91.556 L250.655,30.644 C250.655,29.328 251.783,28.2 253.099,28.2 L295.587,28.2 C296.809,28.2 297.843,29.234 297.843,30.456 C297.843,31.678 296.809,32.712 295.587,32.712 L255.543,32.712 L255.543,58.562 L291.357,58.562 C292.579,58.562 293.613,59.596 293.613,60.818 C293.613,62.04 292.579,63.074 291.357,63.074 L255.543,63.074 L255.543,89.488 L296.057,89.488 C297.279,89.488 298.313,90.522 298.313,91.744 C298.313,92.966 297.279,94 296.057,94 L253.099,94 Z M306.965,91.556 L306.965,30.644 C306.965,29.328 308.093,28.2 309.409,28.2 L328.867,28.2 C349.547,28.2 363.835,42.394 363.835,60.912 L363.835,61.1 C363.835,79.618 349.547,94 328.867,94 L309.409,94 C308.093,94 306.965,92.872 306.965,91.556 Z M311.853,89.488 L328.867,89.488 C347.197,89.488 358.759,76.986 358.759,61.288 L358.759,61.1 C358.759,45.496 347.197,32.712 328.867,32.712 L311.853,32.712 L311.853,89.488 Z M373.487,88.172 L373.487,33.464 C373.487,30.268 376.025,27.73 379.315,27.73 C382.511,27.73 385.049,30.268 385.049,33.464 L385.049,83.472 L414.847,83.472 C417.761,83.472 420.111,85.822 420.111,88.736 C420.111,91.65 417.761,94 414.847,94 L379.315,94 C376.025,94 373.487,91.462 373.487,88.172 Z M425.591,89.112 C425.591,88.266 425.873,87.42 426.343,86.48 L450.783,31.96 C452.099,29.046 454.449,27.26 457.739,27.26 L458.303,27.26 C461.593,27.26 463.849,29.046 465.165,31.96 L489.605,86.48 C490.075,87.326 490.263,88.172 490.263,88.924 C490.263,92.026 487.913,94.47 484.811,94.47 C482.085,94.47 480.205,92.872 479.171,90.428 L473.813,78.114 L441.853,78.114 L436.307,90.804 C435.367,93.154 433.393,94.47 430.949,94.47 C427.941,94.47 425.591,92.12 425.591,89.112 Z M446.271,67.868 L469.395,67.868 L457.833,41.266 L446.271,67.868 Z M496.095,88.83 L496.095,33.652 C496.095,30.456 498.633,27.824 501.923,27.824 L503.145,27.824 C505.965,27.824 507.563,29.234 509.161,31.208 L542.061,73.79 L542.061,33.37 C542.061,30.268 544.599,27.73 547.701,27.73 C550.897,27.73 553.435,30.268 553.435,33.37 L553.435,88.642 C553.435,91.838 550.991,94.376 547.795,94.376 L547.325,94.376 C544.599,94.376 542.907,92.966 541.309,90.898 L507.469,47.094 L507.469,88.83 C507.469,91.932 504.931,94.47 501.829,94.47 C498.633,94.47 496.095,91.932 496.095,88.83 Z M594.893,95.128 C574.307,95.128 560.771,80.464 560.771,61.288 L560.771,61.1 C560.771,42.676 574.871,27.072 594.705,27.072 C604.575,27.072 611.155,29.422 617.171,33.746 C618.299,34.592 619.521,36.19 619.521,38.446 C619.521,41.548 616.983,44.18 613.787,44.18 C612.283,44.18 611.155,43.522 610.215,42.8
208764 C605.985,39.762 601.379,37.694 594.235,37.694 C582.109,37.694 572.897,48.316 572.897,60.912 L572.897,61.1 C572.897,74.636 581.827,84.6 595.269,84.6 C601.473,84.6 607.113,82.626 611.155,79.618 L611.155,67.304 L598.183,67.304 C595.363,67.304 593.013,65.142 593.013,62.322 C593.013,59.502 595.363,57.246 598.183,57.246 L616.513,57.246 C619.803,57.246 622.341,59.784 622.341,63.074 L622.341,80.652 C622.341,83.942 621.025,86.292 618.299,87.984 C612.659,91.744 604.763,95.128 594.893,95.128 Z`,id:`SEEDLANG`,fill:`#FFFFFF`})]})})})}};D(),me();var u_,d_,f_;function Fne(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Ine=N.div` 2088 border-radius: ${e=>e.borderRadius}; 2089 padding: ${e=>e.padding}; 2090 background: ${e=>e.selected?e.bgHover||`#14c7f1`:e.background||`#1499b7`}; 2091 display: inline-flex; 2092 justify-content: center; 2093 align-items: center; 2094 margin: 0 0 0 10px; 2095 font-weight: 400; 2096 color: white; 2097 font-size: 14px; 2098 height: 40px; 2099 position: relative; 2100 &:hover { 2101 background: ${e=>e.bgHover?e.bgHover:`#14c7f1`}; ; 2102 } 2103 .classroom-icon { 2104 svg { 2105 margin-top: -5px; 2106 width: 24px; 2107 } 2108 } 2109`,Lne=N.div` 2110 svg { 2111 fill: #FFF; 2112 width: ${e=>e.width}; 2113 margin: ${e=>e.margin}; 2114 } 2115`,Rne=N.div` 2116 margin-left: ${e=>e.marginLeft}; 2117 font-size: ${e=>e.fontSize}; 2118`,p_=N.div` 2119 background: ${e=>e.background||q.Theme.green}; 2120 color: white; 2121 font-size: 11px; 2122 line-height: 13px; 2123 padding: 1px 5px 2px 5px; 2124 position: absolute; 2125 left: -3px; 2126 top: -3px; 2127 border-radius: 5px; 2128 border: 2px solid rgba(255, 255, 255, 0.8); 2129`,m_=M(j(u_=(d_=(f_=class extends V.Component{get padding(){return this.props.padding?this.props.padding:this.props.showText?`8px 10px`:`8px 15px`}render(){return(0,K.jsx)(F,{to:this.props.to,children:(0,K.jsxs)(Ine,{borderRadius:this.props.showText?`40px`:`5px`,padding:this.padding,selected:this.props.selected,background:this.props.background,bgHover:this.props.backgroundHover,"data-tip":!0,"data-for":this.props.text,children:[this.props.showNew&&(0,K.jsx)(p_,{children:`New`}),this.props.showUnpublished&&(0,K.jsx)(p_,{background:q.Theme.red,children:`UNP`}),(0,K.jsx)(Lne,{width:this.props.iconWidth,margin:this.props.iconMargin,children:this.props.icon}),this.props.showText&&(0,K.jsx)(Rne,{fontSize:this.props.fontSize,marginLeft:(0,W.isPresent)(this.props.icon)?this.props.textMarginLeft:0,children:this.props.text}),!this.props.showText&&(0,K.jsx)(he,{place:`bottom`,type:`dark`,effect:`solid`,id:this.props.text,class:`custom-tooltip`,children:this.props.text})]})})}},f_.defaultProps={iconWidth:`20px`,textMarginLeft:`5px`},f_),Fne(d_.prototype,`padding`,[E],Object.getOwnPropertyDescriptor(d_.prototype,`padding`),d_.prototype),d_))||u_),h_,zne=N.div` 2130 display: flex; 2131 align-items: center; 2132 justify-content: center; 2133 margin: ${e=>e.margin}; 2134 .hover-state:hover { 2135 color: #FFF; 2136 } 2137`,Bne=N.div` 2138 display: flex; 2139 align-items: center; 2140 justify-content: center; 2141 padding: 10px; 2142`,Vne=N.div` 2143 flex: 1; 2144 margin-right: 5px; 2145 text-align: left; 2146 font-size: 14px; 2147`,Hne=N.div` 2148 display: flex; 2149 align-items: center; 2150 justify-content: center; 2151 width: 42px; 2152 height: 42px; 2153 background: rgba(255, 255, 255, 0.9); 2154 border-radius: 50%; 2155`,Une=M(j(h_=class extends V.Component{render(){return(0,K.jsx)(zne,{margin:this.props.margin,children:(0,K.jsxs)(Rh,{top:`60px`,right:`60px`,children:[(0,K.jsx)(Hne,{children:(0,K.jsx)(J.LanguageIcon,{width:`32px`,languageId:this.props.languageId||`DE`})}),(0,K.jsx)(`ul`,{children:this.props.languageIds.map(e=>(0,K.jsx)(`li`,{className:`hover-state`,onClick:()=>this.props.onClick(e),children:(0,K.jsxs)(Bne,{children:[(0,K.jsx)(Vne,{children:q.Languages[e]}),(0,K.jsx)(J.LanguageIcon,{width:`25px`,languageId:e})]})},e))})]})})}})||h_);D();var g_,__,v_,y_;function Wne(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function b_(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Gne=N.div` 2156 width: 42px; 2157 margin: 0 10px 5px 5px; 2158`,Kne=N.div` 2159 width: 100%; 2160`,qne=N.header` 2161 display: flex; 2162 z-index: 999; 2163 width: 100%; 2164 height: ${(0,W.pixify)(U.AppUI.layout.desktopHeaderHeight)}; 2165 min-height: ${(0,W.pixify)(U.AppUI.layout.desktopHeaderHeight)}; 2166 align-items: center; 2167 flex-direction: column; 2168 justify-content: center; 2169 background: ${e=>e.background}; 2170 position: ${e=>e.position}; 2171 border-bottom: ${e=>e.borderBottom}; 2172 margin: 0 0 10px 0; 2173 .on-click { 2174 cursor: pointer; 2175 } 2176 .on-click:hover { 2177 color: #FFF; 2178 } 2179`,Jne=N.div` 2180 padding: 0 10px; 2181 display: flex; 2182 align-items: center; 2183 justify-content: center; 2184 width: 100%; 2185 max-width: 1180px; 2186 position: relative; 2187`,Yne=N.div` 2188 width: 190px; 2189 cursor: pointer; 2190`,Xne=N.div` 2191 flex: 1; 2192 display: flex; 2193 align-items: center; 2194 justify-content: flex-end; 2195`,Zne=N.div` 2196`,Qne=j(g_=(__=(y_=class extends V.Component{constructor(...e){super(...e),Wne(this,`showMobileNavigation`,v_,this),this.signOutAndHideNavigation=()=>{this.showMobileNavigation=!1,U.AppUI.signOut(U.AppUI.siteIsDefault)}}matchRoute(e){return(0,W.isPresent)(U.AppUI.routeStore.routeName)&&U.AppUI.routeStore.routeName.match(e)}get showLinkText(){return U.AppUI.targetLanguageId===`DE`?U.AppUI.layout.viewportWidth>1110:U.AppUI.layout.viewportWidth>1059}get simplifiedHeader(){return U.AppUI.routeStore.routeName===`memberships.create`}get showClassroomButton(){return!this.simplifiedHeader&&U.AppUI.userIsSignedIn&&U.AppUI.user.hasClassroomGroup}get showNavigationButton(){return!this.simplifiedHeader}get showTriviaNewLabel(){return U.AppUI.userIsSignedIn&&U.AppUI.user.site?.daysSinceLastTriviaUpdate<=2&&!U.AppUI.user.hideTriviaNewLabel&&(!U.AppUI.user.lastVisitedTriviaAt||U.AppUI.user.lastVisitedTriviaAt.date<U.AppUI.user.site?.lastWebTriviaPublishedAt.date)}render(){return(0,K.jsx)(Kne,{children:(0,K.jsx)(qne,{background:this.props.background,position:this.props.position,children:(0,K.jsxs)(Jne,{children:[U.AppUI.userIsSignedIn&&(0,K.jsx)(Yne,{children:(0,K.jsx)(F,{to:`reviews.home`,children:(0,K.jsx)(l_,{})})}),(0,K.jsxs)(Xne,{children:[U.AppUI.userIsSignedIn&&(0,K.jsxs)(Zne,{children:[this.showNavigationButton&&(0,K.jsx)(m_,{showText:this.showLinkText,showNew:this.props.showStoriesNe
2196wLabel,selected:this.matchRoute(`stories`),to:`stories.home`,text:`Stories`,icon:(0,K.jsx)(J.TreeIcon,{width:`20px`})}),this.showNavigationButton&&(0,K.jsx)(m_,{showText:this.showLinkText,selected:this.matchRoute(`vocab`)&&!this.matchRoute(`worksheets`),to:{name:`vocab.home`,params:{page:1}},text:`Vocab`,iconMargin:`0 0 0 0px`,iconWidth:`20px`,icon:(0,K.jsx)(J.SearchWordsIcon,{width:`20px`})}),this.showNavigationButton&&U.AppUI.targetLanguageId===`DE`&&(0,K.jsx)(m_,{showNew:this.showTriviaNewLabel,showText:this.showLinkText,selected:this.matchRoute(`trivia`),to:`trivia.home`,text:`Trivia`,icon:(0,K.jsx)(J.QuestionIcon,{})}),this.showNavigationButton&&U.AppUI.userIsSignedIn&&U.AppUI.user.isMember&&(0,K.jsx)(m_,{showText:this.showLinkText,selected:this.matchRoute(`grammar`),to:`grammar`,text:`Grammar`,icon:(0,K.jsx)(J.ClassroomIcon,{})}),this.showClassroomButton&&(0,K.jsx)(m_,{showText:this.showLinkText,selected:this.matchRoute(`classroom`),to:{name:`classroom.show`,params:{groupId:U.AppUI.user.classroomGroupId}},text:`Class`,fontSize:`11px`,icon:(0,K.jsx)(J.ClassroomIcon,{}),textMarginLeft:`2px`}),this.showNavigationButton&&(0,K.jsx)(m_,{showText:this.showLinkText,selected:this.matchRoute(`forum`),to:`forums.index`,text:`Discuss`,icon:(0,K.jsx)(J.ChatOutlineIcon,{})})]}),!this.simplifiedHeader&&U.AppUI.userIsSignedIn&&!U.AppUI.user.isMember&&!U.AppUI.user.anyAdmin&&(0,K.jsx)(F,{to:`memberships.index`,children:(0,K.jsx)(Km,{height:`42px`,children:(0,K.jsxs)(`div`,{className:`text`,children:[(0,K.jsx)(`span`,{children:`Go Pro`}),U.AppUI.user.discount&&U.AppUI.layout.viewportWidth>899&&(0,W.isPresent)(U.AppUI.user.membershipGroup?.maximumDiscount)&&U.AppUI.user.membershipGroup?.maximumDiscount>0&&(0,K.jsxs)(`span`,{className:`discount`,children:[` - `,U.AppUI.user.membershipGroup?.maximumDiscount,`% Off`]})]})})}),!this.simplifiedHeader&&U.AppUI.userIsSignedIn&&(0,K.jsx)(Hg,{background:this.props.btnColor}),!this.simplifiedHeader&&U.AppUI.userIsSignedIn&&(0,K.jsx)(c_,{background:this.props.btnColor}),!U.AppUI.userIsSignedIn&&(0,K.jsx)(F,{to:`onboarding.sign_in`,children:(0,K.jsx)(I,{background:`#FFF`,color:`#32d0cd`,fontSize:`14px`,height:`47px`,borderRadius:`47px`,padding:`0 20px`,scaleOnHover:`1.15`,backgroundOnHover:`#FFF`,children:`SIGN IN`})}),U.AppUI.userIsSignedIn&&(0,K.jsx)(Gne,{children:(0,K.jsx)(Une,{languageId:U.AppUI.targetLanguageId,languageIds:q.Constants.LANGUAGE_ABBREVIATIONS,margin:`5px 0 0 10px`,onClick:this.props.onChangeTargetLanguageId})}),!this.simplifiedHeader&&U.AppUI.userIsSignedIn&&(0,K.jsxs)(Rh,{className:`user-profile user-image`,top:`60px`,right:0,children:[(0,K.jsx)(Mg,{hideTooltip:!0,margin:U.AppUI.siteIsDefault?`0 0 0 2px`:`0 0 0 10px`,clickToProfile:!0,width:42,user:U.AppUI.user}),(0,K.jsxs)(`ul`,{children:[(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:`profile`,children:`Profile`})}),(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:`settings.user_profile`,children:`Settings`})}),(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:`more`,children:`More`})}),U.AppUI.user.admin&&(0,K.jsx)(`li`,{children:(0,K.jsx)(`a`,{href:`/builder/dashboard/analytics`,children:`Admin`})}),(U.AppUI.user.admin||U.AppUI.user.translator)&&(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:{name:`translator.home`,params:{languageId:U.AppUI.user.languageId}},children:`Translators`})}),U.AppUI.user.userGroups.filter(e=>e.admin&&e.group?.groupType===`classroom`).map(e=>(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:{name:`classroom.students`,params:{groupId:e.group.id}},children:`Classroom`})},e.id)),U.AppUI.user.admin&&(0,K.jsx)(`li`,{children:(0,K.jsx)(`a`,{href:`/creator/decks`,children:`Video`})}),(0,K.jsx)(`li`,{onClick:()=>U.AppUI.signOut(U.AppUI.siteIsDefault),className:`on-click`,children:`Sign Out`})]})]})]})]})})})}},y_.defaultProps={background:q.Theme.siteHeaderColor},y_),v_=b_(__.prototype,`showMobileNavigation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b_(__.prototype,`showLinkText`,[E],Object.getOwnPropertyDescriptor(__.prototype,`showLinkText`),__.prototype),b_(__.prototype,`simplifiedHeader`,[E],Object.getOwnPropertyDescriptor(__.prototype,`simplifiedHeader`),__.prototype),b_(__.prototype,`showClassroomButton`,[E],Object.getOwnPropertyDescriptor(__.prototype,`showClassroomButton`),__.prototype),b_(__.prototype,`showNavigationButton`,[E],Object.getOwnPropertyDescriptor(__.prototype,`showNavigationButton`),__.prototype),b_(__.prototype,`showTriviaNewLabel`,[E],Object.getOwnPropertyDescriptor(__.prototype,`showTriviaNewLabel`),__.prototype),__))||g_,$ne=(0,Y.HeaderWrapper)(Qne),x_,S_=M(j(x_=class extends V.Component{render(){return(0,K.jsx)(I,{gradient:!this.props.background,background:this.props.background,fontWeight:this.props.fontWeight||`300`,margin:this.props.margin||`0 0 0 10px`,border:`3px solid white`,height:this.props.height||`35px`,fontSize:U.AppUI.layout.isMobile?`12px`:`14px`,borderRadius:this.props.borderRadius,onClick:this.props.onClick,children:this.props.children})}})||x_),C_=`page_view_as`,w_=()=>{try{let e=window.sessionStorage.getItem(C_);if(!e)return{};try{return JSON.parse(e)}catch{return{value:e}}}catch{return{}}},T_=(e,t)=>
2196{try{window.sessionStorage.setItem(C_,JSON.stringify({value:e,navigationItemId:t}))}catch{}},ere=e=>{let{value:t}=w_();T_(t,e)};D();var E_,D_;function tre(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var nre=N.div` 2197 display: flex; 2198 flex-direction: ${e=>e.flexDirection}; 2199 align-items: ${e=>e.alignItems}; 2200 justify-content: ${e=>e.justifyContent}; 2201 flex-wrap: wrap; 2202`,rre=N.a` 2203`,ire=N.div` 2204 display: ${e=>e.display}; 2205 margin-left: 15px; 2206 font-size: 17px; 2207 align-items: center; 2208 justify-content: center; 2209 color: ${e=>e.color}; 2210 border-bottom: 2px solid transparent; 2211 border-bottom-color: ${e=>e.isSelected?e.borderBottomColor:`transparent`}; 2212 &:hover { 2213 border-bottom-color: ${e=>`${e.borderBottomColor}a1`}; 2214 } 2215 a { 2216 color: ${e=>e.color}; 2217 } 2218`,O_=M(j(E_=(D_=class extends V.Component{constructor(...e){super(...e),this.onClickLink=e=>{U.AppUI.set(`clickedLinkId`,e.id),ere(e.id)}}get filteredNavigationItems(){return this.props.navigationItems?this.props.navigationItems.filter(e=>this.props.footer&&e.showInFooter||this.props.header&&e.showInHeader):null}matchRouteDynamic(e){if(e.id===U.AppUI.clickedLinkId)return!0;if((0,W.isPresent)(e.routeName)){let t=e.routeName.replace(`.`,`/`).split(`/`).filter(Boolean);return U.AppUI.routeStore.routeName&&(0,W.isPresent)(U.AppUI.routeStore.routeName.match(t[0]))}else if((0,W.isPresent)(e.path))return window.location.href.match(e.path);return!1}routeCombine(e){let t={name:e.routeName};return e.routeParams&&(t={name:e.routeName,params:JSON.parse(e.routeParams)}),t}render(){return(0,K.jsx)(nre,{flexDirection:this.props.flexDirection,alignItems:this.props.alignItems,justifyContent:this.props.justifyContent,children:this.filteredNavigationItems&&this.filteredNavigationItems.map(e=>!e.path&&!e.routeName?null:(0,K.jsxs)(ire,{display:`inline-flex`,borderBottomColor:this.props.hideBorder?`transparent`:`#b7b7b7`,isSelected:this.matchRouteDynamic(e),color:this.props.color,onClick:()=>this.onClickLink(e),children:[!e.externalLink&&(0,K.jsx)(F,{to:e.routeName?this.routeCombine(e):e.path,onClick:this.props.afterClick,"aria-current":this.matchRouteDynamic(e)?`page`:void 0,"aria-label":this.matchRouteDynamic(e)?`${e.name} (current page)`:e.name,children:e.name},e.id),e.externalLink&&(0,K.jsx)(rre,{href:e.path,target:`_blank`,rel:`noopener noreferrer`,children:e.name})]},e.id))})}},tre(D_.prototype,`filteredNavigationItems`,[E],Object.getOwnPropertyDescriptor(D_.prototype,`filteredNavigationItems`),D_.prototype),D_))||E_);function k_(e){if(!U.AppUI.userIsSignedIn||!U.AppUI.user?.isMember)return`/pages/discord-join`;let t=U.AppUI.user?.elDiscordAssociationExists,n=U.AppUI.user.isAdminForSite(U.AppUI.site.id),r=(U.AppUI.site.discordMembershipTypes||``).split(`,`).filter(Boolean),i=n||r.includes(U.AppUI.user.currentGroupMembershipType?.id);return i&&t?e:i&&!t?`/settings/pages/discord-access`:`/pages/discord-upgrade`}var are=N.div` 2219 width: 100%; 2220`,A_=N.a` 2221 display: inline-flex; 2222 align-items: center; 2223 justify-content: center; 2224 cursor: pointer; 2225 border-radius: 50%; 2226 height: ${e=>e.mobile?`35px`:`42px`}; 2227 width: ${e=>e.mobile?`35px`:`42px`}; 2228 background: #efefef; 2229 margin-left: ${e=>e.isDefault?`10px`:`15px`}; 2230 transition: all 0.2s ease; 2231 color: #333333; 2232 text-decoration: none; 2233 2234 &:hover { 2235 background-color: #5865F2; 2236 color: #FFFFFF; 2237 } 2238`,j_=N.header` 2239 display: flex; 2240 z-index: 999; 2241 width: 100%; 2242 height: ${e=>(0,W.pixify)(e.desktopHeaderHeight)}; 2243 min-height: ${e=>(0,W.pixify)(e.desktopHeaderHeight)}; 2244 align-items: center; 2245 flex-direction: column; 2246 justify-content: center; 2247 background: ${e=>e.background}; 2248 position: ${e=>e.position}; 2249 border-bottom: ${e=>e.borderBottom}; 2250 top: 0; 2251 .on-click { 2252 cursor: pointer; 2253 } 2254 .on-click:hover { 2255 color: #FFF; 2256 } 2257`,M_=N.div` 2258 background: ${e=>e.background}; 2259 height: 30px; 2260 width: 100%; 2261 display: flex; 2262 align-items: center; 2263 justify-content: center; 2264 color: #FFF; 2265 font-size: 16px; 2266 a { 2267 display: flex; 2268 align-items: center; 2269 justify-content: center; 2270 color: #FFF; 2271 } 2272 .icon-wrapper { 2273 margin-right: 5px; 2274 } 2275`,N_=N.div` 2276 padding: 0 10px; 2277 display: flex; 2278 align-items: center; 2279 justify-content: center; 2280 width: 100%; 2281 max-width: 1180px; 2282 position: relative; 2283`,P_=N.div` 2284 width: 190px; 2285 cursor: pointer; 2286`,F_=N.button` 2287 appearance: none; 2288 border: none; 2289 background: none; 2290 display: ${e=>e.display}; 2291 padding-bottom: 3px; 2292 margin-left: 15px; 2293 font-size: 17px; 2294 border-bottom-width: 1px; 2295 border-bottom-style: solid; 2296 border-color: ${e=>e.borderColor}; 2297 &:hover { 2298 color: #000!important; 2299 } 2300`,I_=N.nav` 2301 flex: 1; 2302 display: flex; 2303 align-items: center; 2304 justify-content: flex-end; 2305`,L_=N.div` 2306 position: absolute; 2307 width: 100%; 2308 background: #FFF; 2309 top: ${e=>e.top}; 2310 text-align: right; 2311 display: flex; 2312 flex-direction: column; 2313 align-items: flex-end; 2314 padding: 20px 30px 20px 0; 2315 z-index: 99; 2316 border-bottom: 1px solid #b7b7b7; 2317`,R_=N.button` 2318 appearance: none; 2319 border: none; 2320 background: none; 2321 display: flex; 2322 width: 50px; 2323 margin-left: 10px; 2324 .menu-icon, .close-icon { 2325 cursor: pointer; 2326 svg { 2327 fill: #000; 2328 width: 25px; 2329 } 2330 } 2331`,z_=N.div` 2332 width: 140px; 2333 border-bottom: 1px solid #b7b7b7; 2334 height: 5px; 2335 margin: 10px 0; 2336`;D();var B_,V_,H_;function U_(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function W_(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var G_=class extends V.Component{render(){return(0,K.jsxs)(are,{children:[this.props.showWhiteLabelMembershipButton&&this.props.isMobile&&(0,K.jsx)(M_,{background:this.props.siteAccentColor||`#1f4d6b`,children:(0,K.jsxs)(F,{to:`memberships.index`,onClick:()=>this.props.onClickBecomeMember(`mobile_header_banner`),children:[(0,K.jsx)(J.CrownIcon,{}),(0,K.jsx)(`span`,{children:`Become a Member`})]})}),(0,K.jsxs)(j_,{background:this.props.background,desktopHeaderHeight:this.props.desktopHeaderHeight,position:this.props.position,children:[this.props.showMobileNavigation&&this.props.navigationItems&&(0,K.jsxs)(L_,{top:this.props.showWhiteLabelMembershipButton?`90px`:`70px`,id:`mobile-navigation`,children:[!this.props.userIsSignedInAndNotGuest&&(0,K.jsx)(F,{to:`onboarding.sign_in`,children:(0,K.jsx)(F_,{borderColor:`#FFF`,children:`Sign In`})}),!this.props.userIsSignedInAndNotGuest&&(0,K.jsx)(z_,{}),(0,K.jsx)(O_,{...this.props,header:!0,flexDirection:`column`,alignItems:`flex-end`,afterClick:this.props.onCloseMobileNavigation}),this.props.showMobileDiscordLink&&(0,K.jsx)(F_,{as:`div`,borderColor:`transparent`,children:(0,K.jsx)(`a`,{href:this.props.discordButtonHref,target:`_blank`,rel:`noopener noreferrer`,onClick:this.props.onClickMobileDiscord,children:`Discord`})}),this.props.userIsSignedInAndNotGuest&&(0,K.jsx)(z_,{}),this.props.userIsSignedInAndNotGuest&&(0,K.jsx)(F_,{borderColor:this.props.routeName.startsWith(`settings.all`)?`#b7b7b7`:`transparent`,children:(0,K.jsx)(F,{to:`settings.all`,onClick:this.props.onCloseMobileNavigation,children:`Settings`})}),this.props.userIsSignedInAndNotGuest&&(0,K.jsx)(F_,{as:`button`,type:`button`,borderColor:`#FFF`,onClick:this.props.onSignOut,className:`on-click`,children:`Sign Out`})]}),(0,K.jsxs)(N_,{children:[this.props.hasLogo&&(0,K.jsx)(P_,{children:(0,K.jsx)(F,{to:this.props.whiteLabelHomeRoute,children:(0,K.jsx)(Nm,{})})}),(0,K.jsxs)(I_,{children:[this.props.showNavigationItems&&(0,K.jsx)(O_,{...this.props,header:!0,flexDirection:`row`}),this.props.showDiscordButton&&(0,K.jsx)(A_,{href:this.props.discordButtonHref,target:`_blank`,mobile:this.props.isMobile,isDefault:this.props.siteIsDefault,onClick:this.props.onClickDiscord,children:(0,K.jsx)(J.DiscordIcon,{width:`22px`,fill:`currentColor`})}),this.props.showWhiteLabelMembershipButton&&!this.props.isMobile&&(0,K.jsx)(F,{to:`memberships.index`,onClick:()=>this.props.onClickBecomeMember(`desktop_header_button`),children:(0,K.jsx)(Km,{marginLeft:`15px`,height:`47px`,background:this.props.siteAccentColor,disabled:(0,W.isPresent)(this.props.routeName)&&this.props.routeName===`memberships.index`,children:(0,K.jsx)(`div`,{className:`text`,children:(0,K.jsx)(`span`,{children:`Become a Member`})})})}),!this.props.mobileView&&!this.props.userIsSignedIn&&(0,K.jsx)(F,{to:`onboarding.sign_in`,children:(0,K.jsx)(S_,{height:`47px`,borderRadius:`47px`,fontWeight:`bold`,background:this.props.siteAccentColor,children:`Sign In`})}),this.props.mobileView&&(0,K.jsxs)(R_,{type:`button`,"aria-label":this.props.showMobileNavigation?`Close navigation menu`:`Open navigation menu`,"aria-controls":`mobile-navigation`,"aria-expanded":this.props.showMobileNavigation,onClick:this.props.onToggleMobileNavigation,children:[!this.props.showMobileNavigation&&(0,K.jsx)(J.MenuIcon,{}),this.props.showMobileNavigation&&(0,K.jsx)(J.CloseIcon,{})]}),this.props.userIsSignedIn&&!this.props.mobileView&&(0,K.jsx)(Hg,{background:`#efefef`,hoverBackgroun
2336d:this.props.siteAccentColor||q.Theme.darkGray,hoverColor:`#FFFFFF`}),!this.props.simplifiedHeader&&this.props.userIsSignedIn&&!this.props.mobileView&&(0,K.jsxs)(Rh,{className:`user-profile user-image`,top:`60px`,right:0,backgroundOnHover:`gray`,children:[(0,K.jsx)(Mg,{hideProStatus:!0,hideTooltip:!0,margin:`0 0 0 15px`,padding:`0`,width:42,user:this.props.user}),(0,K.jsxs)(`ul`,{children:[(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:`settings.user_profile`,children:`Settings`})}),this.props.user.isMember&&(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:`memberships.change`,children:`My Membership`})}),this.props.user.currentUserGroup?.admin&&(0,K.jsx)(`li`,{children:(0,K.jsx)(`a`,{href:`/creator/posts`,children:`Admin`})}),(0,K.jsx)(`li`,{onClick:this.props.onSignOut,className:`on-click`,children:`Sign Out`})]})]})]})]})]})]})}};G_.defaultProps={background:q.Theme.siteHeaderColor};var K_=j(B_=(V_=class extends V.Component{constructor(...e){super(...e),U_(this,`showMobileNavigation`,H_,this),this.signOutAndHideNavigation=()=>{this.showMobileNavigation=!1,U.AppUI.signOut(U.AppUI.siteIsDefault)},this.onClickDiscord=()=>{U.AppUI.createEvent(`memrev - click discord`,Ul({discord_url:this.discordButtonHref}))},this.onClickMobileDiscord=()=>{this.onClickDiscord(),this.showMobileNavigation=!1},this.onClickBecomeMember=e=>{U.AppUI.createEvent(`memrev - click become a member button`,Ul({source:e,button_text:`Become a Member`,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,destination_route:`memberships.index`}))}}get mobileView(){return U.AppUI.layout.viewportWidth<800}get showNavigationItems(){return!this.mobileView&&!this.props.simplifiedHeader&&this.props.navigationItems&&!!this.props.navigationItems.length}get discordButtonHref(){return(0,W.isPresent)(U.AppUI.site?.discordServerId)?k_(`https://discord.com/channels/${U.AppUI.site.discordServerId}`):null}get showDiscordButton(){return this.showDiscordLink&&!this.mobileView}get showDiscordLink(){return(0,W.isPresent)(U.AppUI.site?.discordServerId)&&U.AppUI.site.showDiscordButton}get showMobileDiscordLink(){return this.showDiscordLink&&this.mobileView}render(){return(0,K.jsx)(G_,{...this.props,desktopHeaderHeight:U.AppUI.layout.desktopHeaderHeight,discordButtonHref:this.discordButtonHref,hasLogo:!!U.AppUI.site?.image,isMobile:U.AppUI.layout.isMobile,mobileView:this.mobileView,onClickBecomeMember:this.onClickBecomeMember,onClickDiscord:this.onClickDiscord,onClickMobileDiscord:this.onClickMobileDiscord,onCloseMobileNavigation:()=>this.showMobileNavigation=!1,onSignOut:this.signOutAndHideNavigation,onToggleMobileNavigation:()=>this.showMobileNavigation=!this.showMobileNavigation,routeName:U.AppUI.routeStore.routeName,showDiscordButton:this.showDiscordButton,showMobileDiscordLink:this.showMobileDiscordLink,showMobileNavigation:this.showMobileNavigation,showNavigationItems:this.showNavigationItems,siteAccentColor:U.AppUI.site?.accentColor,siteIsDefault:U.AppUI.siteIsDefault,user:U.AppUI.user,userIsSignedIn:U.AppUI.userIsSignedIn,userIsSignedInAndNotGuest:U.AppUI.userIsSignedInAndNotGuest})}},H_=W_(V_.prototype,`showMobileNavigation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W_(V_.prototype,`mobileView`,[E],Object.getOwnPropertyDescriptor(V_.prototype,`mobileView`),V_.prototype),W_(V_.prototype,`showNavigationItems`,[E],Object.getOwnPropertyDescriptor(V_.prototype,`showNavigationItems`),V_.prototype),W_(V_.prototype,`discordButtonHref`,[E],Object.getOwnPropertyDescriptor(V_.prototype,`discordButtonHref`),V_.prototype),W_(V_.prototype,`showDiscordButton`,[E],Object.getOwnPropertyDescriptor(V_.prototype,`showDiscordButton`),V_.prototype),W_(V_.prototype,`showDiscordLink`,[E],Object.getOwnPropertyDescriptor(V_.prototype,`showDiscordLink`),V_.prototype),W_(V_.prototype,`showMobileDiscordLink`,[E],Object.getOwnPropertyDescriptor(V_.prototype,`showMobileDiscordLink`),V_.prototype),V_))||B_,q_=(0,Y.HeaderWrapper)(K_),J_,Y_=N.div` 2337 flex: 1; 2338 ul { 2339 width: 100%; 2340 } 2341 li { 2342 padding: 0 0 5px 0; 2343 display: block; 2344 margin: 0; 2345 font-size: 14px; 2346 } 2347`,X_=N.div` 2348 font-weight: bold; 2349 text-transform: uppercase; 2350 color: rgba(255, 255, 255, 0.8); 2351 font-size: 14px; 2352 margin-bottom: 5px; 2353`,Z_=N(F)` 2354 color: rgb(237, 237, 237); 2355 text-decoration: none; 2356 &:hover { 2357 text-decoration: underline; 2358 } 2359`,Q_=N.a` 2360 color: rgb(237, 237, 237); 2361 text-decoration: none; 2362 &:hover { 2363 text-decoration: underline; 2364 } 2365`,$_=M(j(J_=class extends V.Component{render(){return(0,K.jsxs)(Y_,{children:[(0,K.jsx)(X_,{children:this.props.title}),(0,K.jsx)(`ul`,{children:this.props.links.map(e=>e.route?(0,K.jsx)(`li`,{children:(0,K.jsx)(Z_,{to:{name:e.route},children:e.name})},e.name):(0,K.jsx)(`li`,{children:(0,K.jsx)(Q_,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,children:e.name})},e.name))})]})}})||J_),ev,tv=N.div` 2366 position: relative; 2367 width: 100%; 2368 max-width: 1180px; 2369 margin: 0 auto; 2370 box-sizing: border-box; 2371 display: ${e=>e.display}; 2372 padding: ${e=>e.padding}; 2373`,nv=M(j(ev=class extends V.Component{render(){return(0,K.jsx)(tv,{display:this.props.display,padding:this.props.padding,children:this.props.children})}})||ev),rv,iv=N.footer` 2374 height: 155px; 2375 padding: 28px 15px; 2376 margin: 10px 0 0 0; 2377 background: ${e=>e.bgColor?e.bgColor:q.Theme.footerColor}; 2378 width: 100%; 2379 display: flex; 2380 align-items: center; 2381 justify-content: center; 2382 flex-direction: ${e=>e.flexDirection}; 2383`,av=N.div` 2384 display: flex; 2385 width: 530px; 2386 margin: 0 auto; 2387`,ov=N.div` 2388 flex: 1; 2389 display: flex; 2390 justify-content: flex-end; 2391`,sv=N.div` 2392 ${(0,X.flexCenter)()} 2393 width: 30px; 2394 height: 30px; 2395 background: white; 2396 border-radius: 50%; 2397 margin-left: 10px; 2398 cursor: pointer; 2399 img { 2400 width: 26px;
2401 height: 26px; 2402 } 2403`,cv=N.div` 2404 ${(0,X.flexCenter)()} 2405 margin-top: 20px; 2406 color: #FFF; 2407 img { 2408 width: 23px; 2409 margin-right: 5px; 2410 } 2411`,lv=j(rv=class extends V.Component{render(){return(0,K.jsxs)(iv,{bgColor:this.props.bgColor,flexDirection:U.AppUI.siteIsDefault?`row`:`column`,children:[(0,K.jsxs)(hp,{children:[(0,K.jsx)(O_,{footer:!0,color:`#FFF`,hideBorder:!0,justifyContent:`center`,navigationItems:U.AppUI.user?.site?.navigationItems}),(0,K.jsx)(`a`,{href:`http://www.seedlang.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,K.jsxs)(cv,{children:[(0,K.jsx)(`img`,{alt:``,src:`/images/seedlang_mark.png`}),`Powered by Seedlang`]})})]}),(0,K.jsx)(mp,{children:(0,K.jsxs)(nv,{display:`flex`,children:[(0,K.jsxs)(av,{children:[(0,K.jsx)($_,{title:`Seedlang`,links:[{name:`Memberships`,route:`memberships.index`},{name:`Team`,route:`team`},{name:`Partners`,route:`partners`}]}),(0,K.jsx)($_,{title:`Help`,links:[{name:`Help Center`,route:`help_center`},{name:`Contact Us`,route:`contact`},{name:`Blog`,route:`blog`}]}),(0,K.jsx)($_,{title:`Legal`,links:[{name:`Terms of Service`,route:`terms`},{name:`Privacy Terms`,route:`privacy`},{name:`© ${new Date().getFullYear()} Seedlang, Inc.`,route:`legal`}]})]}),(0,K.jsxs)(ov,{children:[(0,K.jsx)(`a`,{href:q.Constants.SOCIAL_MEDIA_LINKS.instagram[U.AppUI.targetLanguageId||`FR`],target:`_blank`,rel:`noopener noreferrer`,children:(0,K.jsx)(sv,{children:(0,K.jsx)(`img`,{alt:``,src:`/images/instagram_icon.png`})})}),(0,K.jsx)(`a`,{href:q.Constants.SOCIAL_MEDIA_LINKS.tiktok[U.AppUI.targetLanguageId||`FR`],target:`_blank`,rel:`noopener noreferrer`,children:(0,K.jsx)(sv,{children:(0,K.jsx)(`img`,{alt:``,src:`/images/tiktok_icon.png`})})}),(0,K.jsx)(`a`,{href:q.Constants.SOCIAL_MEDIA_LINKS.youtube[U.AppUI.targetLanguageId||`FR`],target:`_blank`,rel:`noopener noreferrer`,children:(0,K.jsx)(sv,{children:(0,K.jsx)(`img`,{alt:``,src:`/images/youtube_icon.png`})})})]})]})})]})}})||rv,uv,dv,fv=N.div` 2412 ${(0,X.flexCenter)()} 2413 width: ${e=>e.width}; 2414 height: ${e=>e.height}; 2415 margin: ${e=>e.margin}; 2416 border-radius: 22px; 2417 border: 2px solid ${e=>e.value?e.selectedBackground:`#d8d8d8`}; 2418 cursor: pointer; 2419 background: #FFF; 2420 font-size: 12px; 2421 &:hover { 2422 background: ${e=>e.value?e.selectedBackgroundHover:e.backgroundHover}; 2423 border: 2px solid ${e=>e.value?`#000`:`#7d7c7c`}; 2424 } 2425`,pv=N.div` 2426 width: ${e=>`${parseInt(e.width,10)/2-1}px`}; 2427 height: ${e=>`${parseInt(e.height,10)/2-1}px`}; 2428 border-radius: 12px; 2429 background: ${q.Theme.darkestBlue}; 2430`,mv=M(j(uv=(dv=class extends V.Component{render(){return(0,K.jsx)(fv,{className:`radio-button`,width:this.props.width,height:this.props.height,margin:this.props.margin,onClick:this.props.onClick,value:this.props.value,background:this.props.background,selectedBackground:this.props.selectedBackground,backgroundHover:this.backgroundHover,selectedBackgroundHover:this.selectedBackgroundHover,children:this.props.value&&(0,K.jsx)(pv,{width:this.props.width,height:this.props.height})})}},dv.defaultProps={background:`#FFF`,selectedBackground:q.Theme.darkestBlue,backgroundHover:`whitesmoke`,selectedBackgroundHover:`#000`,width:`22px`,height:`22px`},dv))||uv),hv,gv=N.div` 2431 padding: 20px; 2432`,_v=N.div` 2433 display: flex; 2434 padding: 10px; 2435 width: 100%; 2436 cursor: pointer; 2437 &:hover { 2438 background: whitesmoke; 2439 } 2440`,vv=N.div` 2441 display: flex; 2442 align-items: center; 2443 flex: 1; 2444`,yv=M(j(hv=class extends V.Component{render(){return(0,K.jsx)(gv,{children:this.props.languageOptions&&this.props.languageOptions.map(e=>(0,K.jsxs)(_v,{onClick:()=>this.props.onClick(e),children:[(0,K.jsxs)(vv,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:e}),(0,K.jsx)(R,{margin:`0 0 0 10px`,children:q.Languages[e]})]}),(0,K.jsx)(mv,{width:`22px`,height:`22px`,value:U.AppUI.targetLanguageId===e})]},e))})}})||hv);D();var bv,xv,Sv;function Cv(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wv(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Tv=N.div` 2445 z-index: ${q.Theme.z[`topmost-under-overlay`]}; 2446 background: ${q.Theme.siteHeaderColor}; 2447 width: 100%; 2448 height: 58px; 2449 display: flex; 2450 align-items: center; 2451 justify-content: right; 2452 padding: 4px 10px; 2453 box-sizing: border-box; 2454 .seedlang-icon-with-circle { 2455 svg { 2456 width: 35px; 2457 height: 35px; 2458 } 2459 } 2460`,Ev=N.div` 2461 flex: 1; 2462 justify-content: flex-end; 2463 display: flex; 2464 align-items: center; 2465`,Dv=N.span` 2466 margin-left: 5px; 2467`,Ov=N.div` 2468 display: flex; 2469 align-items: center; 2470 justify-content: center; 2471 width: 32px; 2472 height: 32px; 2473 background: rgba(255, 255, 255, 0.9); 2474 border-radius: 50%; 2475 cursor: pointer; 2476 margin-left: 10px; 2477`,kv=j(bv=(xv=class extends V.Component{constructor(...e){super(...e),Cv(this,`showLanguagePicker`,Sv,this),this.onChangeTargetLanguageId=e=>{this.showLanguagePicker=!1,this.props.onChangeTargetLanguageId(e)}}render(){return(0,K.jsxs)(Tv,{children:[this.showLanguagePicker&&(0,K.jsx)(Dn,{width:`400px`,height:`300px`,onCloseModal:()=>this.showLanguagePicker=!1,gradient:!0,padding:`0`,title:`Select a Language`,contentShouldScroll:!0,
2477children:(0,K.jsx)(yv,{languageOptions:[`DE`,`ES`,`FR`],onClick:this.onChangeTargetLanguageId})}),(0,K.jsx)(J.SeedlangIconWithCircle,{onClick:()=>U.AppUI.routeStore.routeToNamed(`home`),style:{cursor:`pointer`}}),(0,K.jsxs)(Ev,{children:[!U.AppUI.userIsLoading&&U.AppUI.user.signedOut&&(0,K.jsx)(F,{to:`onboarding.sign_in`,children:(0,K.jsx)(S_,{children:`Sign In`})}),!U.AppUI.user.signedOut&&!U.AppUI.userIsLoading&&!U.AppUI.user.registered&&(0,K.jsx)(F,{to:`onboarding.registration`,children:(0,K.jsx)(S_,{children:`Register`})}),!U.AppUI.user.isMember&&!U.AppUI.user.signedOut&&(0,K.jsxs)(S_,{onClick:()=>U.AppUI.routeStore.routeToNamed(`memberships.index`),children:[(0,K.jsx)(J.CrownIcon,{width:U.AppUI.layout.isMobile?`14px`:`19px`}),(0,K.jsx)(Dv,{children:`Go Pro`})]}),U.AppUI.userIsLoaded&&(0,K.jsx)(Ov,{onClick:()=>this.showLanguagePicker=!0,children:(0,K.jsx)(J.LanguageIcon,{width:`25px`,languageId:U.AppUI.targetLanguage.languageId||`DE`})}),U.AppUI.userIsLoaded&&(0,K.jsx)(Hg,{}),U.AppUI.userIsLoaded&&(0,K.jsx)(c_,{})]})]})}},Sv=wv(xv.prototype,`showLanguagePicker`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xv))||bv,Av=(0,Y.HeaderWrapper)(kv);D();var jv,Mv;function Nv(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Pv=N.div` 2478 ${(0,X.flexCenter)()} 2479 background: ${q.Theme.footerColor}; 2480 height: 50px; 2481 width: 100%; 2482 position: fixed; 2483 bottom: 0; 2484 left: 0; 2485 z-index: ${q.Theme.z[`topmost-under-overlay`]}; 2486 .selected { 2487 background: #3b4b54; 2488 } 2489 .icon-wrapper { 2490 flex: 1; 2491 height: 100%; 2492 margin: 0; 2493 color: rgba(255, 255, 255, 0.9); 2494 display: flex; 2495 } 2496 .icon { 2497 ${(0,X.flexCenter)()} 2498 width: 100%; 2499 } 2500 svg { 2501 fill: #FFF; 2502 opacity: 0.7; 2503 } 2504 .patreon-icon { 2505 svg { 2506 width: 25px; 2507 } 2508 } 2509 .star-icon { 2510 svg { 2511 width: 26px; 2512 } 2513 } 2514 .target-icon { 2515 svg { 2516 width: 26px; 2517 margin-top: 4px; 2518 } 2519 } 2520 .profile-icon { 2521 svg { 2522 width: 21px; 2523 fill: #FFF; 2524 } 2525 } 2526`,Fv=N.div` 2527 width: 24px; 2528 height: 24px; 2529 .question-icon { 2530 svg { 2531 width: 26px; 2532 } 2533 } 2534`,Iv=N.div` 2535 flex: 1; 2536 position: relative; 2537 width: 100%; 2538 display: flex; 2539 align-items: center; 2540 justify-content: center; 2541 cursor: pointer; 2542`,Lv=j(jv=(Mv=class extends V.Component{get right(){return U.AppUI.layout.viewportWidth/10}matchRoute(e){return this.props.currentRoute&&this.props.currentRoute.match(e)}get profileTabSelected(){return[`profile`,`more`,`settings`,`help_center`,`faq`,`contact`,`partners`,`privacy`].some(e=>this.matchRoute(e))}render(){return(0,K.jsxs)(Pv,{bgColor:this.props.bgColor,children:[(0,K.jsx)(Iv,{onClick:()=>U.AppUI.routeStore.routeToNamed(`reviews.home`),className:(0,Qg.default)(`icon-wrapper`,{selected:this.matchRoute(`reviews.home`)}),children:(0,K.jsx)(J.HomeIcon,{fill:`#FFF`,width:`22px`})}),(0,K.jsx)(Iv,{onClick:()=>U.AppUI.routeStore.routeToNamed(`stories.home`),className:(0,Qg.default)(`icon-wrapper`,{selected:this.matchRoute(`stories.home`)}),children:(0,K.jsx)(J.TreeIcon,{fill:`#FFF`,width:`25px`})}),(0,K.jsx)(Iv,{onClick:()=>U.AppUI.routeStore.routeToNamed(`vocab.home`,{page:1}),className:(0,Qg.default)(`icon-wrapper`,{selected:this.matchRoute(`vocab.home`)}),children:(0,K.jsx)(J.SearchWordsIcon,{fill:`#FFF`,width:`26px`})}),(0,K.jsx)(Iv,{className:(0,Qg.default)(`icon-wrapper`,{selected:this.matchRoute(`trivia`)}),onClick:()=>U.AppUI.routeStore.routeToNamed(`trivia.home`),children:(0,K.jsx)(Fv,{children:(0,K.jsx)(J.QuestionIcon,{})})}),(0,K.jsx)(J.ProfileIcon,{onClick:()=>U.AppUI.routeStore.routeToNamed(`profile`),className:(0,Qg.default)({selected:this.profileTabSelected})})]})}},Nv(Mv.prototype,`right`,[E],Object.getOwnPropertyDescriptor(Mv.prototype,`right`),Mv.prototype),Nv(Mv.prototype,`profileTabSelected`,[E],Object.getOwnPropertyDescriptor(Mv.prototype,`profileTabSelected`),Mv.prototype),Mv))||jv;D();var Rv=_e(),zv=e(Ln()),Bv,Vv,Hv,Uv;function Wv(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Gv(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Kv=N.div` 2543 position: absolute; 2544 top: 0; 2545 left: 0; 2546 width: ${e=>e.width}; 2547 z-index: ${q.Theme.z.overlay}; 2548 background: white; 2549`,qv=N.div` 2550 background: ${q.Theme.darkBlue}; 2551 height: ${e=>e.height}; 2552 cursor: pointer; 2553 display: flex; 2554 flex-direction: row; 2555 justify-content: center; 2556 align-items: center; 2557 font-size: 15px; 2558 padding: 0 10px; 2559 .left-arrow-icon { 2560 cursor: pointer; 2561 height: 21px;
2562 margin-top: 1px; 2563 svg { 2564 opacity: 0.8; 2565 height: 21px; 2566 fill: #fff; 2567 } 2568 } 2569`,Jv=N.div` 2570 flex: 1; 2571 color: rgba(255, 255, 255, 0.8); 2572 display: flex; 2573 flex-direction: row; 2574 justify-content: left; 2575 align-items: center; 2576 margin-left: 15px; 2577 padding-right: 70px; 2578 font-size: 18px; 2579`,Yv=N.img` 2580 border-radius: 50%; 2581 margin-right: 5px; 2582`,Xv=N.div` 2583 overflow: auto; 2584 height: ${e=>e.height}; 2585 fieldset { 2586 text-align: left; 2587 } 2588`,Zv=j(Bv=(Vv=(Uv=class extends V.Component{constructor(...e){super(...e),Wv(this,`mounted`,Hv,this)}componentDidMount(){this.props.overlayState.set(`mounted`,!0),(0,zv.default)(`escape`,()=>this.props.overlayState.removeOverlay())}componentWillUnmount(){zv.default.unbind(`escape`)}render(){return(0,K.jsx)(Rv.Motion,{style:{x:(0,Rv.spring)(this.props.overlayState.isOpen&&this.props.overlayState.mounted?this.props.leftPos:this.props.layout.viewportWidth)},onRest:this.props.overlayState.onRest.bind(this.props.overlayState),children:({x:e})=>(this.props.overlayState.setX(e),(0,K.jsxs)(Kv,{height:(0,W.pixify)(this.props.height),width:`100%`,style:{WebkitTransform:`translate3d(${e}px, ${this.props.leftPos}px, 0)`,transform:`translate3d(${e}px, ${this.props.leftPos}px, 0)`},children:[!this.props.hideHeader&&(0,K.jsxs)(qv,{height:(0,W.pixify)(U.DeckUI.layout.deckHeaderHeight),onClick:()=>this.props.overlayState.removeOverlay(),children:[(0,K.jsx)(J.ArrowLeftIcon,{}),(0,K.jsxs)(Jv,{children:[this.props.overlayImage&&(0,K.jsx)(Yv,{src:this.props.overlayImage}),this.props.overlayTitle]})]}),(0,K.jsx)(Xv,{height:this.props.deckOverlay?(0,W.pixify)(this.props.height-50):(0,W.pixify)(this.props.layout.overlayContentHeight),children:this.props.children})]}))})}},Uv.propTypes={overlayState:Z.default.object.isRequired,layout:Z.default.object.isRequired,leftPos:Z.default.number},Uv.defaultProps={leftPos:0},Uv),Hv=Gv(Vv.prototype,`mounted`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vv))||Bv;D();var Qv,$v,ey;function ty(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ny(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ry=N.div` 2589 display: flex; 2590 flex-wrap: wrap; 2591 align-items: center; 2592 justify-content: center; 2593 width: 100%; 2594`,iy=N.div` 2595 padding: 0 20px 20px 20px; 2596 font-weight: bold; 2597`,ay={storyteller:J.ShakespeareIcon,interviewMe:J.MicrophoneBadgeIcon,deckmaster:J.CardsIcon,backInTime:J.ClockfaceIcon,storymaster:J.BookIcon,gendermaster:J.DerDieDasIcon,vocabmaster:J.MagnifyWordsIcon,brainiac:J.BrainIcon,triviamaster:J.TriviamasterIcon,pluralmaster:J.PluralIcon,community:J.CommunityBadgeIcon},oy=j(Qv=($v=class extends V.Component{constructor(...e){super(...e),ty(this,`selectedBadge`,ey,this),this.onPressBadge=e=>{this.selectedBadge={name:e.name,description:e.description,interpolationString:e.interpolationString,current:e.current||0,levels:e.levels,badgeSlug:e.slug,user:this.props.user}}}render(){return(0,K.jsxs)(ry,{children:[this.selectedBadge&&(0,K.jsx)(ug,{badge:this.selectedBadge,onCloseModal:()=>this.selectedBadge=null}),this.props.emptyBadges()&&(0,K.jsx)(iy,{children:`No badges have been earned yet.`}),this.props.filteredBadges.map(e=>!this.props.hideLevel0||e.current>=e.levels[0]?(0,K.jsx)(Yh,{alignment:this.props.alignment,width:this.props.width,wrapperWidth:this.props.wrapperWidth,wrapperHeight:this.props.wrapperHeight,margin:this.props.margin,badgeWidth:this.props.badgeWidth,showProgress:this.props.showProgress,onClick:()=>this.onPressBadge(e),name:e.name,description:e.description,current:e.current||0,levels:e.levels,icon:V.createElement(ay[e.slug]),fontSize:this.props.fontSize,textMarginTop:this.props.textMarginTop,textMarginBottom:this.props.textMarginBottom,bottom:this.props.bottom,right:this.props.right},e.name):null)]})}},ey=ny($v.prototype,`selectedBadge`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$v))||Qv,sy=(0,Y.BadgeCollectionWrapper)(oy),cy=class extends V.Component{render(){return(0,K.jsx)(`svg`,{viewB
2597ox:`0 0 243 170`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:(0,K.jsxs)(`g`,{children:[(0,K.jsx)(`path`,{d:`M61.9999887,92.4999887 C61.9999887,125.360938 88.6390512,152 121.5,152 C154.360949,152 181.000011,125.360938 181.000011,92.4999913 L181.000011,18 L61.9999887,18 L61.9999887,92.4999887 Z M57,0 L186,0 C193.179702,0 199,5.82029825 199,13 L199.000011,92.4999887 C199.000011,135.302063 164.302074,170 121.5,170 C78.6979257,170 43.9999887,135.302063 43.9999887,92.4999887 L44,13 C44,5.82029825 49.8202983,0 57,0 Z`,id:`Rectangle`}),(0,K.jsx)(`polygon`,{id:`Path-2`,points:`37 28 0 28 18.5 46.5 0 65 37 65`}),(0,K.jsx)(`polygon`,{id:`Path-2`,transform:`translate(224.500000, 46.500000) scale(-1, 1) translate(-224.500000, -46.500000) `,points:`243 28 206 28 224.5 46.5 206 65 243 65`})]})})}},ly,uy=N.div` 2598 font-size: ${e=>e.fontSize}; 2599 width: ${e=>e.width}; 2600 position: relative; 2601 svg { 2602 width: ${e=>e.width}; 2603 fill: #575757; 2604 } 2605`,dy=N.div` 2606 ${(0,X.flexCenterColumn)()} 2607 position: absolute; 2608 top: 0; 2609 left: 0; 2610 bottom: 0; 2611 right: 0; 2612 margin: auto; 2613`,fy=M(j(ly=class extends V.Component{render(){return(0,K.jsxs)(uy,{width:this.props.width,fontSize:this.props.fontSize,children:[(0,K.jsxs)(dy,{children:[(0,W.isPresent)(this.props.languageId)&&(0,K.jsx)(J.LanguageIcon,{languageId:this.props.languageId,margin:`3px 0 5px 0`}),(0,K.jsx)(R,{bold:!0,center:!0,color:`#575757`,fontSize:this.props.fontSize,margin:`-3px 0 0 0`,children:this.props.level})]}),(0,K.jsx)(cy,{})]})}})||ly);me();var py,my,hy=N.div` 2614 ${(0,X.flexCenterColumn)()} 2615 padding: ${e=>e.padding}; 2616`,gy=N.div` 2617 ${(0,X.flexCenterColumn)()} 2618`,ore=N.div` 2619 top: -20px; 2620 left: 0; 2621 right: 0; 2622 width: ${e=>e.width}; 2623 margin: 0 auto; 2624`,sre=M(j(py=(my=class extends V.Component{backgroundForSegment(e){return Math.ceil(this.props.targetLanguage.progressOnCurrentLevel/this.props.targetLanguage.xpRangeBetweenLevels*10)>=e?q.Theme.green:`#e6e6e6`}render(){return(0,K.jsxs)(hy,{"data-tip":!0,"data-for":`xp-progress-${this.props.targetLanguage.languageId}`,padding:this.props.padding,children:[(0,K.jsx)(gy,{children:(0,K.jsx)(ore,{width:`100px`,children:(0,K.jsx)(fy,{width:`100px`,fontSize:`16px`,level:this.props.targetLanguage.xpLevel,languageId:this.props.targetLanguage.languageId})})}),(0,K.jsx)(he,{place:`bottom`,type:`dark`,effect:`solid`,id:`xp-progress-${this.props.targetLanguage.languageId}`,class:`custom-tooltip`,children:(0,K.jsxs)(`div`,{children:[this.props.targetLanguage.xp.toLocaleString(`en`),` total XP`]})})]})}},my.defaultProps={padding:`20px 0 0 0`},my))||py);D();var _y,vy;function cre(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var yy=M(j(_y=(vy=class extends V.Component{get fontSize(){return{8:15,7:18,6:21,5:23,4:26,3:31,2:36}[this.props.won.toString().length+this.props.lost.toString().length]}render(){return(0,K.jsxs)(R,{fontSize:this.fontSize,bold:!0,children:[this.props.won,`-`,this.props.lost]})}},cre(vy.prototype,`fontSize`,[E],Object.getOwnPropertyDescriptor(vy.prototype,`fontSize`),vy.prototype),vy))||_y),by,lre=N.div` 2625 ${(0,X.flexCenterColumn)()} 2626`,ure=N.div` 2627 ${(0,X.flexCenter)()} 2628 width: 160px; 2629 height: 160px; 2630 border-radius: 50%; 2631 border: 30px solid #CCC; 2632`,dre=M(j(by=class extends V.Component{render(){return(0,K.jsx)(lre,{children:(0,K.jsx)(ure,{children:(0,K.jsx)(yy,{won:0,lost:0})})})}})||by),fre=function(e){return V.createElement(`defs`,null,V.createElement(`clipPath`,{id:e.clipId?.toString()},e.children))},pre=[`desc`,`id`,`tabIndex`,`origin`];function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}function Sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
2632t%2?Sy(Object(n),!0).forEach(function(t){hre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gre(e,t){if(e==null)return{};var n=_re(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _re(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cy=(0,V.forwardRef)(function(e,t){var n=e.desc,r=e.id,i=e.tabIndex;e.origin;var a=gre(e,pre),o=mre({vectorEffect:`non-scaling-stroke`,id:$r(r,e)?.toString(),tabIndex:$r(i,e)},a);return n?V.createElement(`circle`,xy({},o,{ref:t}),V.createElement(`desc`,null,n)):V.createElement(`circle`,xy({},o,{ref:t}))}),wy=e(Wn()),Ty=e(bi()),Ey=e(Kn());function Dy(e){return xre(e)||bre(e)||yre(e)||vre()}function vre(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2633In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yre(e,t){if(e){if(typeof e==`string`)return Oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oy(e,t)}}function bre(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xre(e){if(Array.isArray(e))return Oy(e)}function Oy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ky(Object(n),!0).forEach(function(t){Sre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cre(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function jy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wre(e,t,n){return t&&jy(e.prototype,t),n&&jy(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Tre(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&My(e,t)}function My(e,t){return My=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},My(e,t)}function Ere(e){var t=kre();return function(){var n=Ny(e),r;if(t){var i=Ny(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Dre(this,r)}}function Dre(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ore(e)}function Ore(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function kre(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
2633function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ny(e)}var Py=function(e){Tre(n,e);var t=Ere(n);function n(e){var r;return Cre(this,n),r=t.call(this,e),r.clipId=void 0,r.clipId=!(0,Ty.default)(e)||e.clipId===void 0?(0,wy.default)(`victory-clip-`):e.clipId,r}return wre(n,[{key:`calculateAttributes`,value:function(e){var t=e.polar,n=e.origin,r=e.clipWidth,i=r===void 0?0:r,a=e.clipHeight,o=a===void 0?0:a,s=e.translateX,c=s===void 0?0:s,l=e.translateY,u=l===void 0?0:l,d=Er({padding:e.clipPadding}),f=e.radius||Hr(e);return{x:(t?n.x:c)-d.left,y:(t?n.y:u)-d.top,width:Math.max((t?f:i)+d.left+d.right,0),height:Math.max((t?f:o)+d.top+d.bottom,0)}}},{key:`renderClippedGroup`,value:function(e,t){var n=Zr(e),r=e.style,i=e.events,a=e.transform,o=e.children,s=e.className,c=e.groupComponent,l=e.tabIndex,u=this.renderClipComponent(e,t),d=Object.assign({className:s,style:r,transform:a,key:`clipped-group-${t}`,clipPath:`url(#${t})`},i);return V.cloneElement(c,Ay(Ay({},d),{},{tabIndex:l},n),[u].concat(Dy(V.Children.toArray(o))))}},{key:`renderGroup`,value:function(e){var t=e.style,n=e.events,r=e.transform,i=e.children,a=e.className,o=e.groupComponent,s=e.tabIndex;return V.cloneElement(o,Object.assign({className:a,style:t,transform:r,"aria-label":e[`aria-label`],tabIndex:s},n),i)}},{key:`renderClipComponent`,value:function(e,t){var n=e.polar,r=e.origin,i=e.clipWidth,a=i===void 0?0:i,o=e.clipHeight,s=o===void 0?0:o,c=e.translateX,l=c===void 0?0:c,u=e.translateY,d=u===void 0?0:u,f=e.circleComponent,p=e.rectComponent,m=e.clipPathComponent,h=Er({padding:e.clipPadding}),g=h.top,_=h.bottom,v=h.left,y=h.right,b;if(n){var x=e.radius||Hr(e),S={r:Math.max(x+v+y,x+g+_,0),cx:r.x-v,cy:r.y-g};b=V.cloneElement(f,S)}else{var C={x:l-v,y:d-g,width:Math.max(a+v+y,0),height:Math.max(s+g+_,0)};b=V.cloneElement(p,C)}return V.cloneElement(m,Object.assign({key:`clip-path-${t}`},e,{clipId:t}),b)}},{key:`getClipValue`,value:function(e,t){var n={x:e.clipWidth,y:e.clipHeight};if(n[t]!==void 0)return n[t];var r=Nr(e,t);return r&&Math.abs(r[0]-r[1])||void 0}},{key:`getTranslateValue`,value:function(e,t){var n={x:e.translateX,y:e.translateY};if(n[t]!==void 0)return n[t];var r=Nr(e,t);return r?Math.min.apply(Math,Dy(r)):void 0}},{key:`render`,value:function(){var e=this.getClipValue(this.props,`y`),t=this.getClipValue(this.props,`x`);if(t===void 0||e===void 0)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,`x`),r=this.getTranslateValue(this.props,`y`),i=(0,Ey.default)({},this.props,{clipHeight:e,clipWidth:t,translateX:n,translateY:r});return this.renderClippedGroup(i,this.clipId)}}]),n}(V.Component);Py.displayName=`VictoryClipContainer`,Py.role=`container`,Py.defaultProps={circleComponent:V.createElement(Cy,null),rectComponent:V.createElement(gr,null),clipPathComponent:V.createElement(fre,null),groupComponent:V.createElement(`g`,null)};function Fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Iy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fy(Object(n),!0).forEach(function(t){Are(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Are(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jre=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.startAngle,a=e.endAngle,o=e.closedPath,s=Math.abs(a-i)/2+i,c=t+r*Math.cos(Kr(i)),l=n-r*Math.sin(Kr(i)),u=t+r*Math.cos(Kr(s)),d=n-r*Math.sin(Kr(s)),f=t+r*Math.cos(Kr(a)),p=n-r*Math.sin(Kr(a)),m=s-i<=180?0:1,h=a-s<=180?0:1;return`${o?` M ${t}, ${n} L ${c}, ${l}`:`M ${c}, ${l}`} ${`A ${r}, ${r}, 0, ${m}, 0, ${u}, ${d}`} ${`A ${r}, ${r}, 0, ${h}, 0, ${f}, ${p}`} ${o?`Z`:``}`},Mre=function(e){var t=$r(e.ariaLabel,e),n=$r(e.desc,e),r=$r(e.id,e),i=wr(Object.assign({stroke:`black`,fill:`none`},e.style),e),a=$r(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},Nre={pathComponent:V.createElement(zn,null),role:`presentation`,shapeRendering:`auto`},Ly=function(e){var t=Mre(Iy(Iy({},Nre),e));return V.cloneElement(t.pathComponent,Iy(Iy({},t.events),{},{"aria-label":t.ariaLabel,d:jre(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform,clipPath:t.clipPath}))};function Ry(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
2633t%2?Ry(Object(n),!0).forEach(function(t){Pre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fre=function(e){var t=$r(e.id,e);return Object.assign({},e,{id:t})},Ire={circleComponent:V.createElement(Cy,null),rectComponent:V.createElement(gr,null),role:`presentation`,shapeRendering:`auto`},Lre=function(e){var t=Fre(zy(zy({},Ire),e));return t.polar?V.cloneElement(t.circleComponent,zy(zy({},t.events),{},{style:t.style,role:t.role,shapeRendering:t.shapeRendering,cx:t.x,cy:t.y,r:t.height,className:t.className})):V.cloneElement(t.rectComponent,zy(zy({},t.events),{},{style:t.style,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,rx:t.rx,ry:t.ry,width:t.width,height:t.height,className:t.className}))},Rre=n(((e,t)=>{var n=vi(),r=yi(),i=`[object Date]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),By=n(((e,t)=>{var n=Rre(),r=pi(),i=hi(),a=i&&i.isDate;t.exports=a?r(a):n})),zre=n(((e,t)=>{var n=gi();function r(e,t){for(var r=-1,i=e.length,a=0,o=[];++r<i;){var s=e[r],c=t?t(s):s;if(!r||!n(c,l)){var l=c;o[a++]=s===0?0:s}}return o}t.exports=r})),Bre=n(((e,t)=>{var n=zre();function r(e){return e&&e.length?n(e):[]}t.exports=r})),Vy=e(By()),Vre=e(Bre()),Hy=e(Si());function Uy(e){return Gre(e)||Wre(e)||Ure(e)||Hre()}function Hre(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2634In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ure(e,t){if(e){if(typeof e==`string`)return Wy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wy(e,t)}}function Wre(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Gre(e){if(Array.isArray(e))return Wy(e)}function Wy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kre(e,t,n){return Ar(t,n)===`log`?function(e){var t=e[0]<0||e[1]<0?-1/(2**53-1):1/(2**53-1);return[e[0]===0?t:e[0],e[1]===0?t:e[1]]}(e):e}function qre(e,t){var n=function(e){return Array.isArray(e)?{left:e[0],right:e[1]}:{left:e,right:e}};return(0,Hy.default)(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function Jre(e,t){var n=`_${t}`;return e.flat().map(function(e){return e[n]&&e[n][1]!==void 0?e[n][1]:e[n]})}function Gy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`min`,r=function(e){return n===`max`?Math.max.apply(Math,Uy(e)):Math.min.apply(Math,Uy(e))},i=n===`max`?-1/0:1/0,a=!1,o=e.flat().reduce(function(e,n){var i=n[`_${t}0`]===void 0?n[`_${t}`]:n[`_${t}0`],o=n[`_${t}1`]===void 0?n[`_${t}`]:n[`_${t}1`],s=r([i,o]);return a=a||i instanceof Date||o instanceof Date,r([e,s])},i);return a?new Date(o):o}function Yre(e,t,n){if(!t.domainPadding)return e;var r=$y(t,n),i=Qy(t,n),a=qre(t,n);if(!a.left&&!a.right)return e;var o=fi(e),s=or(e),c=Nr(t,Br(n,t.horizontal)),l=Math.abs(c[0]-c[1]),u=Math.max(l-a.left-a.right,1),d=Math.abs(s.valueOf()-o.valueOf())/u*l,f={left:d*a.left/l,right:d*a.right/l},p={min:o.valueOf()-f.left,max:s.valueOf()+f.right},m=(0,Hy.default)(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,h=o>=0&&p.min<=0||s<=0&&p.max>=0,g=function(e,t){return t===`min`&&o>=0&&e<=0||t===`max`&&s<=0&&e>=0?0:e};if(h&&m!==!1){var _={left:Math.abs(s-o)*a.left/l,right:Math.abs(s-o)*a.right/l},v={min:g(o.valueOf()-_.left,`min`),max:g(s.valueOf()+_.right,`max`)},y={left:Math.abs(v.max-v.min)*a.left/l,right:Math.abs(v.max-v.min)*a.right/l};p={min:g(o.valueOf()-y.left,`min`),max:g(s.valueOf()+y.right,`max`)}}var b={min:r===void 0?p.min:r,max:i===void 0?p.max:i};return o instanceof Date||s instanceof Date?Yy(new Date(b.min),new Date(b.max)):Yy(b.min,b.max)}function Ky(e,t){var n=ai(e)?e:Jy,r=ai(t)?t:qy;return function(e,t){var i=Xy(e,t);if(i)return r(i,e,t);var a=Cr(e,t),o=a?Zre(e,t,a):n(e,t);return o?r(o,e,t):void 0}}
2634function qy(e,t,n){return Kre(Yre(e,t,n),t,n)}function Xre(e,t){return Ky()(e,t)}function Zre(e,t,n){var r=n||Cr(e,t),i=e.polar,a=e.startAngle,o=a===void 0?0:a,s=e.endAngle,c=s===void 0?360:s;if(r){var l=$y(e,t),u=Qy(e,t),d=Xn(r)?Tr(e,t):[],f=d.length===0?null:d.reduce(function(e,t,n){return e[t]=n+1,e},{}),p=f?r.map(function(e){return f[e]}):r,m=Yy(l===void 0?fi(p):l,u===void 0?or(p):u);return i&&t===`x`&&Math.abs(o-c)===360?eb(m,p):m}}function Jy(e,t,n){var r=n||zr(e),i=e.polar,a=e.startAngle,o=a===void 0?0:a,s=e.endAngle,c=s===void 0?360:s,l=$y(e,t),u=Qy(e,t);if(r.length<1)return l!==void 0&&u!==void 0?Yy(l,u):void 0;var d=Yy(l===void 0?Gy(r,t,`min`):l,u===void 0?Gy(r,t,`max`):u);return i&&t===`x`&&Math.abs(o-c)===360?eb(d,Jre(r,t)):d}function Yy(e,t){return Number(e)===Number(t)?function(e){var t=e===0?2*10**-10:10**-10,n=1,r=e instanceof Date?new Date(Number(e)-n):Number(e)-t,i=e instanceof Date?new Date(Number(e)+n):Number(e)+t;return e===0?[0,i]:[r,i]}(t):[e,t]}function Xy(e,t){var n=$y(e,t),r=Qy(e,t);if((0,Hy.default)(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return Yy(n,r)}function Zy(e,t){var n=Xy(e,t);if(n)return n;var r=zr(e),i=r.reduce(function(e,t){return t._y0<e?t._y0:e},1/0),a=function(n){if(t===`x`)return n;var r=i===1/0?0:i,a=Qy(e,t),o=$y(e,t),s=a===void 0?or(n,r):a;return Yy(o===void 0?fi(n,r):o,s)};return Ky(function(){return Jy(e,t,r)},function(n){return qy(a(n),e,t)})(e,t)}function Qy(e,t){return(0,Hy.default)(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain==`number`||(0,Vy.default)(e.maxDomain)?e.maxDomain:void 0}function $y(e,t){return(0,Hy.default)(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain==`number`||(0,Vy.default)(e.minDomain)?e.minDomain:void 0}function eb(e,t){var n=(0,Vre.default)(t.sort(function(e,t){return e-t})),r=n[1]-n[0];return[e[0],e[1]+r]}function tb(e){var t=function(e){return e&&e.type?e.type.role:``},n=t(e);if(n===`portal`){var r=V.Children.toArray(e.props.children);n=r.length?t(r[0]):``}return[`area`,`axis`,`bar`,`boxplot`,`candlestick`,`errorbar`,`group`,`histogram`,`line`,`pie`,`scatter`,`stack`,`voronoi`].includes(n)}var nb=e(Rr()),rb=e(Ti());function ib(e){return tie(e)||eie(e)||$re(e)||Qre()}function Qre(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2635In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $re(e,t){if(e){if(typeof e==`string`)return ab(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ab(e,t)}}function eie(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function tie(e){if(Array.isArray(e))return ab(e)}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nie(e){return e}function ob(e){return e.dependentAxis?`y`:`x`}function sb(e,t){var n=t||nie,r=function(e){return e.reduce(function(e,t){return t.type&&t.type.role===`axis`&&n(t)?e.concat(t):t.props&&t.props.children?e.concat(r(V.Children.toArray(t.props.children))):e},[])};return r(e)}function cb(e,t){return sb(e,function(e){return e.type.getAxis(e.props)===t})[0]}function lb(e,t){var n=function(e){return t===`dependent`?e.props.dependentAxis:!e.props.dependentAxis},r=function(e){return e.reduce(function(e,t){return t.type&&t.type.role===`axis`&&n(t)||t.props&&t.props.children&&r(V.Children.toArray(t.props.children)).length>0?e.concat(t):e},[])};return r(e)}function ub(e){var t=function(e){var t=Math.min.apply(Math,ib(e)),n=Math.max.apply(Math,ib(e));return n<0?n:Math.max(0,t)};return{x:ir(e.x)?new Date(Math.min.apply(Math,ib(e.x))):t(e.x),y:ir(e.y)?new Date(Math.min.apply(Math,ib(e.y))):t(e.y)}}function db(e,t){return ir(t)?`positive`:function(){return e<=0&&Math.max.apply(Math,ib(t))<=0?`negative`:`positive`}()}function fb(e){return{top:!1,bottom:!1,left:!0,right:!0}
2635[e.orientation||(e.dependentAxis?`left`:`bottom`)]}function pb(e){return e.tickValues!==void 0&&Xn(e.tickValues)}function rie(e){var t=e.tickValues,n=ob(e),r=e.stringMap&&e.stringMap[n],i=t&&!ir(t)?function(e){return e}:void 0;if(!r)return pb(e)?function(e,n){return t[n]}:i;var a=r&&vr(r),o=(0,nb.default)(Object.values(r),function(e){return e}).map(function(e){return a[e]}),s=[``].concat(ib(o),[``]);return function(e){return s[e]}}function iie(e){var t=ob(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&qn(r)?r.map(function(e){return n[e]}):void 0,a=n&&Object.values(n);return i&&i.length!==0?i:a}function mb(e){var t=e.tickValues,n=e.tickFormat;if(t?.length===0)return[];var r=ob(e),i=e.stringMap&&e.stringMap[r],a=function(){if(!(!n||!Array.isArray(n)))return Xn(n)?n.map(function(e,t){return t}):n},o=t;i&&(o=iie(e)),t&&Xn(t)&&(o=i?t.map(function(e){return i[e]}):Hn(1,t.length+1));var s=o?(0,rb.default)(o):a();return Array.isArray(s)&&s.length?function(t){var n=[],i=e.domain&&e.domain[r]||e.domain;if(t)return t.forEach(function(e,t){Array.isArray(i)?e>=fi(i)&&e<=or(i)&&n.push({value:e,index:t}):n.push({value:e,index:t})}),n}(s):void 0}function hb(e,t){var n=e.tickFormat,r=ob(e),i=e.stringMap&&e.stringMap[r];if(!n){var a=rie(e),o=t.tickFormat&&ai(t.tickFormat)?t.tickFormat():function(e){return e};return a||o}else if(n&&Array.isArray(n)){var s=mb(e)?.map(function(e){return e.index}),c=n.filter(function(e,t){return s?.includes(t)});return function(e,t){return c[t]}}else if(n&&ai(n))return i?function(t,n,r){var a=vr(i),o=r.map(function(e){return a[e]});return e.tickFormat(a[t],n,o)}:n;return function(e){return e}}function gb(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(e,t){return t%n===0})}function _b(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,i=mb(e);if(i?.length===0)return[``];var a=i?i.map(function(e){return e.value}):void 0;if(a)return gb(a,r);if(t.ticks&&ai(t.ticks)){var o=r||5,s=t.ticks(o),c=gb(Array.isArray(s)&&s.length?s:t.domain(),r);if(n){var l=c.filter(function(e){return e!==0});return l.length?l:c}return c}return t.domain()}function aie(e,t){var n=e.polar,r=e.startAngle,i=r===void 0?0:r,a=e.endAngle,o=a===void 0?360:a,s=mb(e),c=s&&s?.length!==0?s.map(function(e){return e.value}):void 0;if(Array.isArray(c)){var l=$y(e,t),u=Qy(e,t),d=pb(e),f=c.map(function(e){return Number(e)}),p=d?1:fi(f),m=d?c.length:or(f),h=Yy(l===void 0?p:l,u===void 0?m:u),g=n&&t===`x`&&Math.abs(i-o)===360?eb(h,f):h;return fb(e)&&!n&&g.reverse(),g}}function vb(e,t){var n=ob(e);if(!(t&&t!==n))return Ky(aie)(e,n)}function yb(e,t){if(e.axisValue){var n=t===`x`?`y`:`x`,r=(0,Ty.default)(e.scale)&&ai(e.scale[n])?e.scale[n]:void 0;if(r){var i=t===`x`?`y`:`x`,a=(0,Ty.default)(e.stringMap)&&e.stringMap[i];return r(a&&typeof e.axisValue==`string`?a[e.axisValue]:e.axisValue)}}}function bb(e,t){if(!(0,Ty.default)(e.theme))return Sr(e,t,`axis`);var n=`axis`;if(e.dependentAxis&&e.theme.dependentAxis?n=`dependentAxis`:!e.dependentAxis&&e.theme.independentAxis&&(n=`independentAxis`),n===`axis`)return Sr(e,t,`axis`);var r=(0,Ey.default)({},e.theme[n],e.theme.axis),i=Object.assign({},e.theme,{axis:r});return Sr(Object.assign({},e,{theme:i}),t,`axis`)}function oie(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function sie(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(e,t,n){var r=function(e){return(t===0?n[t+1]:n[t-1])[e]};return{_x:r(`_x`),_y:r(`_y`),_y0:r(`_y0`)}}},onEnter:{duration:500,before:function(e,t,n){var r=function(e){return(t===0?n[t+1]:n[t-1])[e]};return{_x:r(`_x`),_y:r(`_y`),_y0:r(`_y0`)}},after:function(e){return{_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0}}}}}function xb(e){var t=V.useRef();return V.useEffect(function(){t.current=e}),t.current}function Sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
2635t%2?Sb(Object(n),!0).forEach(function(t){cie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lie(e,t){return pie(e)||fie(e,t)||die(e,t)||uie()}function uie(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2636In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function die(e,t){if(e){if(typeof e==`string`)return wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wb(e,t)}}function wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fie(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function pie(e){if(Array.isArray(e))return e}var mie={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Tb=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mie,t=lie(V.useState(e),2),n=t[0],r=t[1],i=V.useCallback(function(e){r(function(t){return Cb(Cb({},t),e)})},[r]);return{state:n,setState:i,getAnimationProps:V.useCallback(function(e,t,r){if(!(e!=null&&e.animate))return t.props.animate;var a=function(){var e=n&&n.childrenTransitions;return e=Bn(e)?e[r]:e,(0,Ey.default)({childrenTransitions:e},n)},o=e.animate&&e.animate.getTransitions,s=a(),c=e.animate&&e.animate.parentState||s;if(!o){var l=tr(e,s,function(e){return i(e)});o=function(e){return l(e,r)}}return(0,Ey.default)({getTransitions:o,parentState:c},e.animate,t.props.animate)},[n,i]),setAnimationState:V.useCallback(function(e,t){if(e!=null&&e.animate)if(e.animate.parentState)i((0,Ey.default)({oldProps:e.animate.parentState.nodesWillExit?e:null,nextProps:t},e.animate.parentState));else{var n=V.Children.toArray(e.children),r=V.Children.toArray(t.children),a=function(e){var t=function(e){return e.type&&e.type.continuous};return Array.isArray(e)?e.some(t):t(e)},o=!e.polar&&n.some(function(e){return a(e)||e?.props?.children&&a(e.props.children)}),s=er(n,r),c=s.nodesWillExit,l=s.nodesWillEnter,u=s.childrenTransitions,d=s.nodesShouldEnter;i({nodesWillExit:c,nodesWillEnter:l,nodesShouldEnter:d,childrenTransitions:Bn(u)?u[0]:u,oldProps:c?e:void 0,nextProps:t,continuous:o})}},[i]),getProps:V.useCallback(function(e){return n&&n.nodesWillExit&&n.oldProps||e},[n])}},Eb=function(e){return(e._y1===void 0?e._y:e._y1)!=null&&e._y0!==null},Db=function(e){return function(t){return e.x(t._x1===void 0?t._x:t._x1)}},Ob=function(e){return function(t){return e.y(t._y1===void 0?t._y:t._y1)}},hie=function(e){return function(t){return-1*e.x(t._x1===void 0?t._x:t._x1)+Math.PI/2}},kb=function(e){return`curve${function(e){return e&&e[0].toUpperCase()+e.slice(1)}(e)}`},gie=function(e){return`${kb(e)}Closed`},Ab=function(e){var t=e.interpolation;if(typeof t==`function`)return t;if(typeof t==`string`){var n=e.polar,r=e.openCurve;return Ur[(r===void 0?!n:r)?kb(t):gie(t)]}return Qr},_ie=function(e){var t=e.polar,n=e.scale,r=e.horizontal;return t?Pr().defined(Eb).curve(Ab(e)).angle(hie(n)).radius(Ob(n)):Gr().defined(Eb).curve(Ab(e)).x(r?Ob(n):Db(n)).y(r?Db(n):Ob(n))};function jb(e,t,n){var r=t.a,i=t.d,a=t.e,o=t.f;return n===`y`?i*e+o:r*e+a}function vie(e){return e.getScreenCTM().inverse()}function Mb(e){return!!(e&&e.identifier!==void 0)}function yie(e){return e.changedTouches&&e.changedTouches.length>0}function Nb(e){if(!Mb(e.nativeEvent)){var t=function(e){return e.nodeName===`svg`?e:e.parentNode?t(e.parentNode):e};return t(e.target)}}function bie(e,t){if(Mb(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=yie(e)?e.changedTouches[0]:e,r=vie(t||Nb(n));return{x:jb(n.clientX,r,`x`),y:jb(n.clientY,r,`y`)}}var Pb=n(((e,t)=>{var n=_i(),r=Ei();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i})),xie=n(((e,t)=>{function n(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}t.exports=n})),Sie=n(((e,t)=>{var n=Ci();
2636function r(e,t,r,i){return n(e,function(e,n,a){t(i,e,r(e),a)}),i}t.exports=r})),Cie=n(((e,t)=>{var n=xie(),r=Sie(),i=_i(),a=mi();function o(e,t){return function(o,s){var c=a(o)?n:r,l=t?t():{};return c(o,e,i(s,2),l)}}t.exports=o})),wie=n(((e,t)=>{var n=wi(),r=Cie(),i=Object.prototype.hasOwnProperty;t.exports=r(function(e,t,r){i.call(e,r)?e[r].push(t):n(e,r,[t])})})),Fb=e(Pb()),Tie=e(wie());function Ib(e){return kie(e)||Oie(e)||Die(e)||Eie()}function Eie(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2637In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Die(e,t){if(e){if(typeof e==`string`)return Lb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lb(e,t)}}function Oie(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function kie(e){if(Array.isArray(e))return Lb(e)}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rb(Object(n),!0).forEach(function(t){Aie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jie(e){var t=e.children,n=e.props,r=e.childComponents,i=e.parentProps,a=t.some(function(e){return e.type&&e.type.role===`histogram`}),o=a&&t.length&&t.every(function(e){return e.type&&e.type.role===`histogram`});if(a&&!o&&Rn(`VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack`),!o)return i;var s=n.bins||r[0].props.bins;if(!Array.isArray(s)){var c=t.reduce(function(e,t){var n=br(t.props.x||`x`);return e.concat(t.props.data.map(function(e){return{x:n(e)}}))},[]),l=t[0].type.getFormattedData;s=l({data:c,bins:s}).reduce(function(e,t,n){var r=t.x0,i=t.x1;return n===0?e.concat([r,i]):e.concat(i)},[])}return zb(zb({},i),{},{bins:s})}function Mie(e,t){var n={polar:e.polar,startAngle:e.startAngle,endAngle:e.endAngle,categories:e.categories,minDomain:e.minDomain,maxDomain:e.maxDomain},r=0,i=t?t.slice(0):V.Children.toArray(e.children);n=jie({children:i,props:e,childComponents:t,parentProps:n});var a=function(e,t,i){var a=Object.assign({},e.props,n),o,s=e;if(Or(e))e.type&&ai(e.type.getData)?(s=i?V.cloneElement(e,i.props):e,o=s.type.getData(a)):o=zr(a);else return null;return r+=1,o.map(function(e,t){return Object.assign({_stack:r,_group:t},e)})},o=i.filter(function(e){return e.type&&e.type.role===`stack`}).length,s=si(i,a,e,[],function(e,t){return e.concat((0,Fb.default)(t,`_group`))});return Object.values((0,Tie.default)(s,o?`_group`:`_stack`))}function Bb(e,t,n){var r=e.datasets,i=e.horizontal?Nr(e,`y`):Nr(e,`x`),a=Math.abs(i[1]-i[0]),o=n===void 0?Array.isArray(r[0])&&r[0].length||1:n,s=(t||r.length)*o;return Math.round(.5*a/s)}function Nie(e,t,n){if(!(e.polar||t!==`x`)){var r=n.filter(function(e){return e.type&&e.type.role&&e.type.role===`group`});if(!(r.length<1)){var i=r[0].props,a=i.offset,o=i.children;if(a){var s=Array.isArray(o)&&o[0];if(s){var c=s.props.barWidth,l=s.props.data&&s.props.data.length||1;if(s&&s.type.role===`stack`){var u=s.props.children&&s.props.children[0];if(!u)return;c=u.props.barWidth,l=s.props.children.length}var d=c||Bb(e,o.length,l);return{x:d*o.length/2+(a-d*((o.length-1)/2))}}}}}}function Pie(e,t,n){var r=n?n.slice(0):V.Children.toArray(e.children),i=e.data?zr(e):void 0,a=e.polar,o=e.startAngle,s=e.endAngle,c=e.categories,l=e.minDomain,u=e.maxDomain,d={horizontal:e.horizontal,polar:a,startAngle:o,endAngle:s,minDomain:l,maxDomain:u,categories:c},f=i?Object.assign(d,{data:i}):d,p=si(r,function(e){var n=Object.assign({},e.props,f);return tb(e)?e.type&&ai(e.type.getDomain)?e.props&&e.type.getDomain(n,t):Xre(n,t):null},e);return[p.length===0?0:fi(p),p.length===0?1:or(p)]}function Vb(e,t,n){var r=n||V.Children.toArray(e.children),i=Xy(e,t),a=Nie(e,t,r),o;if(i)o=i;else{var s=$y(e,t),c=Qy(e,t),l=(e.data||e.y)&&zr(e),u=l?Jy(e,t,l):[],d=Pie(e,t,r);o=Yy(s||fi([].concat(Ib(u),Ib(d))),c||or([].concat(Ib(u),Ib(d))))}return qy(o,Object.assign({domainPadding:a},e),t)}function Hb(e,t,n){if(e.data)return qr(e,t);var r=n?n.slice(0):V.Children.toArray(e.children),i=(0,rb.default)(si(r,function(n){return Ar(Object.assign({},n.props,{horizontal:e.horizontal}),t)},e));return i.length>1?Vr(`linear`):Vr(i[0])}function Ub(e){var t=xr(e,[`groupComponent`,`containerComponent`,`labelComponent`]),n=e.events;return Array.isArray(t)&&(n=Array.isArray(e.events)?t.concat.apply(t,Ib(e.events)):t),n||[]}function Fie(e,t,n){var r=e.style,i=e.colorScale,a=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(i=t.props&&t.props.colorScale?t.props.colorScale:i,a=t.props&&t.props.color?t.props.color:a,!(!i&&!a)){var o=Array.isArray(i)?i:pr(i);return a||o[n%o.length]}}function Iie(e,t,n){return jr(t,e&&e[n]&&e[n].style?e[n].style:{})}function Lie(e,t,n){var r=n.style,i=n.role,a=e.props.style||{};if(Array.isArray(a))return a;var o=e.type&&e.type.role,s=o===`stack`?void 0:Fie(n,e,t),c=o===`line`?{fill:`none`,stroke:s}:{fill:s},l=i===`stack`?{}:{width:Bb(n)},u=(0,Ey.default)({},a.data,Object.assign({},l,r.data,c)),d=(0,Ey.default)({},a.labels,r.labels);return zb(zb({},a),{},{parent:r.parent,data:u,labels:d})}function Rie(e,t){return si(e.slice(0),function(e){var n=e.props||{};if(!tb(e)||!n.categories)return null;var r=n.categories&&!Array.isArray(n.categories)?n.categories[t]:n.props.categories,i=r&&r.filter(function(e){return typeof e==`string`});return i?fr(i):[]})}function zie(e){return si(e.slice(0),function(e){var t=e.props||{},n;if(Or(e))n=e.type&&ai(e.type.getData)?e.type.getData(t):zr(t);else return null;return n.map(function(e){return{x:e.xName,y:e.yName}})},{},{x:[],y:[]},function(e,t){var n=Array.isArray(t)?t.map(function(e){return e.x}
2637).filter(Boolean):t.x,r=Array.isArray(t)?t.map(function(e){return e.y}).filter(Boolean):t.y;return{x:n===void 0?e.x:e.x.concat(n),y:r===void 0?e.y:e.y.concat(r)}})}function Wb(e,t,n){var r=(0,Hy.default)(e.categories)?e.categories[t]:e.categories,i=cb(n,t),a=i?ni(i.props,t):[],o=r||Rie(n,t);return(0,rb.default)([].concat(Ib(o),Ib(a)).flat())}function Gb(e,t){var n=t||V.Children.toArray(e.children),r=Wb(e,`x`,n),i=Wb(e,`y`,n),a=zie(n);return{x:(0,rb.default)([].concat(Ib(r),Ib(a.x)).flat()),y:(0,rb.default)([].concat(Ib(i),Ib(a.y)).flat())}}function Kb(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,i=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,a=!r||!i?n||Gb(e,t):{},o=r||a.x,s=i||a.y;return{x:o.length>0?o:void 0,y:s.length>0?s:void 0}}var Bie=function(e,t){var n=zr(e);n.length<2&&(n=[]);var r=function(e){var n=_r(t[e])===`log`?1/(2**53-1):0,r=t[e].domain(),i=fi(r),a=or(r),o=n;return i<0&&a<=0?o=a:i>=0&&a>0&&(o=i),ir(r)?new Date(o):o};return n.map(function(e){var t=e._y1===void 0?e._y:e._y1,n=e._y0===void 0?r(`y`):e._y0,i=e._x1===void 0?e._x:e._x1,a=e._x0===void 0?r(`x`):e._x0;return Object.assign({},e,{_y0:n,_y1:t,_x0:a,_x1:i})})},Vie=function(e){var t=e.polar,n=ri(e,`area`),r=jr(e.style,n),i={x:Nr(e,`x`),y:Nr(e,`y`)},a={x:Zy(e,`x`),y:Zy(e,`y`)},o={x:qr(e,`x`).domain(a.x).range(e.horizontal?i.y:i.x),y:qr(e,`y`).domain(a.y).range(e.horizontal?i.x:i.y)},s=t?e.origin||Jr(e):void 0;return{style:r,data:Bie(e,o),scale:o,domain:a,origin:s}},Hie=function(e,t){var n=Sr(e,t,`area`),r=Object.assign({},n,Vie(n)),i=r.data,a=r.domain,o=r.events,s=r.groupComponent,c=r.height,l=r.horizontal,u=r.interpolation,d=r.origin,f=r.padding,p=r.polar,m=r.scale,h=r.sharedEvents,g=r.standalone,_=r.style,v=r.theme,y=r.width,b=r.labels,x=r.name,S=r.disableInlineStyles,C={parent:{style:_.parent,width:y,height:c,scale:m,data:i,domain:a,standalone:g,theme:v,polar:p,origin:d,padding:f,name:x,horizontal:l},all:{data:{horizontal:l,polar:p,origin:d,scale:m,data:i,interpolation:u,groupComponent:s,style:S?{}:_.data,disableInlineStyles:S}}};return i.reduce(function(e,t,n){if(mr(r,t,n)!=null||b&&(o||h)){var i=di(t.eventKey)?n:t.eventKey;e[i]={labels:hr(r,n)}}return e},C)};function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qb(Object(n),!0).forEach(function(t){Uie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yb=function(e){return(e._y1===void 0?e._y:e._y1)!=null&&e._y0!==null},Xb=function(e){return function(t){return e.x(t._x1===void 0?t._x:t._x1)}},Zb=function(e){return function(t){return e.y(t._y1===void 0?t._y:t._y1)}},Qb=function(e){return function(t){return e.y(t._y0)}},Wie=function(e){return function(t){return-1*e.x(t._x1===void 0?t._x:t._x1)+Math.PI/2}},Gie=function(e){var t=e.horizontal,n=e.scale,r=Ab(e);return t?yr().defined(Yb).curve(r).x0(Qb(n)).x1(Zb(n)).y(Xb(n)):yr().defined(Yb).curve(r).x(Xb(n)).y1(Zb(n)).y0(Qb(n))},Kie=function(e){var t=e.polar,n=e.scale,r=Ab(e);return t?Xr().defined(Yb).curve(r).angle(Wie(n)).outerRadius(Zb(n)).innerRadius(Qb(n)):Gie(e)},qie=function(e){var t=$r(e.ariaLabel,e),n=$r(e.desc,e),r=$r(e.id,e),i=wr(Object.assign({fill:`black`},e.style),e),a=$r(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},Jie={groupComponent:V.createElement(`g`,null),pathComponent:V.createElement(zn,null),role:`presentation`,shapeRendering:`auto`},Yie=function(e){var t=qie(Jb(Jb({},Jie),e)),n=t.ariaLabel,r=t.role,i=t.shapeRendering,a=t.className,o=t.polar,s=t.origin,c=t.data,l=t.pathComponent,u=t.events,d=t.groupComponent,f=t.clipPath,p=t.id,m=t.style,h=t.desc,g=t.tabIndex,_=Zr(t),v=o&&s?`translate(${s.x}, ${s.y})`:void 0,y=t.transform||v,b=m.stroke&&m.stroke!==`none`&&m.stroke!==`transparent`,x=Kie(t),S=b&&_ie(t),C=m.stroke?`none`:m.fill,ee=Jb(Jb({"aria-label":n,className:a,role:r,shapeRendering:i,transform:y},u),{},{clipPath:f,tabIndex:g}),w=V.cloneElement(l,Object.assign({key:`${p}-area`,style:Object.assign({},m,{stroke:C}),d:x(c),desc:h,tabIndex:g},ee,_)),T=b?V.cloneElement(l,Object.assign({key:`${p}-area-stroke`,style:Object.assign({},m,{fill:`none`}),d:S(c)},ee)):null;return b?V.cloneElement(d,_,[w,T]):w};function Xie(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function $b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zie(e,t,n){return t&&$b(e.prototype,t),n&&$b(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Qie(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&ex(e,t)}
2637function ex(e,t){return ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ex(e,t)}function $ie(e){var t=nae();return function(){var n=tx(e),r;if(t){var i=tx(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return eae(this,r)}}function eae(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return tae(e)}function tae(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function nae(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tx(e){return tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tx(e)}var nx={width:450,height:300,padding:50,interpolation:`linear`},rae={components:[{name:`parent`,index:`parent`},{name:`data`,index:`all`},{name:`labels`}]},rx=function(e){Qie(n,e);var t=$ie(n);function n(){return Xie(this,n),t.apply(this,arguments)}return Zie(n,[{key:`shouldAnimate`,value:function(){return!!this.props.animate}},{key:`render`,value:function(){var e=n.animationWhitelist,t=n.role,r=Sr(this.props,nx,t);if(this.shouldAnimate())return this.animateComponent(r,e);var i=this.renderContinuousData(r);return Fr(r.standalone?this.renderContainer(r.containerComponent,i):i,r)}}]),n}(V.Component);rx.animationWhitelist=[`data`,`domain`,`height`,`padding`,`style`,`width`],rx.defaultProps={containerComponent:V.createElement(ti,null),dataComponent:V.createElement(Yie,null),groupComponent:V.createElement(Py,null),labelComponent:V.createElement(Yn,{renderInPortal:!0}),samples:50,sortKey:`x`,sortOrder:`ascending`,standalone:!0,theme:Ir.grayscale},rx.displayName=`VictoryArea`,rx.role=`area`,rx.continuous=!0,rx.defaultTransitions=oie(),rx.defaultPolarTransitions=sie(),rx.getDomain=Zy,rx.getData=zr,rx.getBaseProps=function(e){return Hie(e,nx)},rx.expectedComponents=[`dataComponent`,`labelComponent`,`groupComponent`,`containerComponent`];var iae=ii(rx,rae);function aae(e){return lae(e)||cae(e)||sae(e)||oae()}function oae(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2638In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sae(e,t){if(e){if(typeof e==`string`)return ix(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ix(e,t)}}function cae(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lae(e){if(Array.isArray(e))return ix(e)}function ix(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ax(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ox={top:-1,left:-1,right:1,bottom:1},sx=function(e){return e!=null},uae=function(e,t){var n=e.orientation,r=e.horizontal;return n?{top:`x`,bottom:`x`,left:`y`,right:`y`}[n]:r?t===`x`?`y`:`x`:t},dae=function(e){var t=ob(e),n=uae(e,t),r=qr(e,t),i=e.domain&&e.domain[t]||vb(e)||r.domain();return r.range(Nr(e,n)),r.domain(i),r},fae=function(e){var t=e.theme,n=e.dependentAxis,r=t&&t.axis&&t.axis.style,i=n?`dependentAxis`:`independentAxis`,a=t&&t[i]&&t[i].style;return r&&a?function(){return[`axis`,`axisLabel`,`grid`,`parent`,`tickLabels`,`ticks`].reduce(function(e,t){return e[t]=(0,Ey.default)({},a[t],r[t]),e},{})}():a||r},cx=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{};return{parent:(0,Ey.default)(n.parent,t.parent,{height:`100%`,width:`100%`}),axis:(0,Ey.default)({},n.axis,t.axis),axisLabel:(0,Ey.default)({},n.axisLabel,t.axisLabel),grid:(0,Ey.default)({},n.grid,t.grid),ticks:(0,Ey.default)({},n.ticks,t.ticks),tickLabels:(0,Ey.default)({},n.tickLabels,t.tickLabels)}},pae=function(e,t,n){var r=e.position,i=e.transform;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},mae=function(e,t,n,r,i){var a=e.position,o=e.transform;return{style:t,x:o.x+a.x,y:o.y+a.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},hae=function(e,t,n){var r=e.edge,i=e.transform;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},gae=function(e,t,n){var r=t.style,i=t.padding,a=t.isVertical,o=e.width,s=e.he
2638ight;return{style:r.axis,x1:a?n.x:i.left+n.x,x2:a?n.x:o-i.right+n.x,y1:a?i.top+n.y:n.y,y2:a?s-i.bottom+n.y:n.y}},_ae=function(e,t){return{tickStyle:wr(e.ticks,t),labelStyle:wr(e.tickLabels,t),gridStyle:wr(e.grid,t)}},vae=function(e,t,n){var r=t.style,i=t.orientation,a=t.padding,o=t.labelPadding,s=t.isVertical,c=ox[i],l=a.left+a.right,u=a.top+a.bottom,d=c<0?`end`:`start`,f=r.axisLabel,p=s?-90:0;return{x:s?n.x+c*o:(e.width-l)/2+a.left+n.x,y:s?(e.height-u)/2+a.top+n.y:c*o+n.y,verticalAnchor:f.verticalAnchor||d,textAnchor:f.textAnchor||`middle`,angle:f.angle===void 0?p:f.angle,style:f,text:e.label}},yae=function(e,t){var n={top:`end`,left:`end`,right:`start`,bottom:`start`}[e];return{textAnchor:t?n:`middle`,verticalAnchor:t?`middle`:n}},bae=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=fb(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},lx=function(e,t,n){var r=t||`positive`;return n?{positive:{x:`left`,y:`bottom`},negative:{x:`right`,y:`top`}}[r][e]:{positive:{x:`bottom`,y:`left`},negative:{x:`top`,y:`right`}}[r][e]},xae=function(e,t){var n=t.style,r=t.scale,i=t.orientation,a=t.padding,o=t.axis,s=t.ticks,c=t.stringTicks,l=t.isVertical,u=t.labelPadding,d=e.polar,f=e.horizontal,p={scale:ax({},o,r),polar:d,horizontal:f,ticks:s,stringTicks:c},m=i===`right`?a.right:a.left,h=i===`top`?a.top:a.bottom,g=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:m,_=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:h,v=n.axisLabel.fontSize||14,y=s.map(function(t,r){var i=c?e.tickValues[t-1]:t;return wr(n.ticks,Object.assign({},p,{tick:i,index:r})).size||0}),b=v+2*Math.max.apply(Math,aae(y))+u,x=1.2*v;return{x:g??(l?b:x),y:_??(l?x:b)}},ux=function(e,t){return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t},Sae=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,s=t.padding,c=s.top,l=s.bottom,u=s.left,d=s.right,f={x:i===`bottom`||i===`top`?i:a.x,y:i===`left`||i===`right`?i:a.y},p={x:f.y===`left`?u:d,y:f.x===`bottom`?l:c},m={x:f.y===`left`?0:e.width,y:f.x===`bottom`?e.height:0},h={x:ux(r.x,o.x[0])||ux(r.x,o.x[1])?0:n.x(r.x),y:ux(r.y,o.y[0])||ux(r.y,o.y[1])?0:n.y(r.y)},g=h.x?Math.abs(m.x-h.x):p.x,_=h.y?Math.abs(m.y-h.y):p.y;return{x:sx(e.offsetX)?e.offsetX:g,y:sx(e.offsetY)?e.offsetY:_}},Cae=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,s=t.padding,c=s.top,l=s.bottom,u=s.left,d=s.right,f={y:i===`bottom`||i===`top`?i:a.x,x:i===`left`||i===`right`?i:a.y},p={x:f.y===`bottom`?l:c,y:f.x===`left`?u:d},m={y:f.x===`left`?0:e.width,x:f.y===`bottom`?e.height:0},h={x:ux(r.x,o.x[0])||ux(r.x,o.x[1])?0:n.x(r.x),y:ux(r.y,o.y[0])||ux(r.y,o.y[1])?0:n.y(r.y)},g=h.x?Math.abs(m.x-h.x):p.x,_=h.y?Math.abs(m.y-h.y):p.y;return{x:sx(e.offsetX)?e.offsetX:_,y:sx(e.offsetY)?e.offsetY:g}},wae=function(e,t,n){var r=t.orientation,i=t.axis,a=yb(e,i);return{top:{x:0,y:a===void 0?n.y:a},bottom:{x:0,y:a===void 0?e.height-n.y:a},left:{x:a===void 0?n.x:a,y:0},right:{x:a===void 0?e.width-n.x:a,y:0}}[r]},Tae=function(e,t,n){var r=e.tickStyle,i=e.labelStyle,a=r.size||0,o=r.padding||0,s=i.padding||0,c=a+o+s,l=ox[t];return{x:n?l*c:0,x2:n?l*a:0,y:n?0:l*c,y2:n?0:l*a}},Eae=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},Dae=function(e,t){var n=t.orientation,r=t.padding,i=t.isVertical,a=-ox[n];return{x:i?a*(e.width-(r.left+r.right)):0,y:i?0:a*(e.height-(r.top+r.bottom))}},Oae=function(e,t){var n=e.padding,r=e.orientation,i=e.crossAxis,a=r===`right`?n.right:n.left,o=r===`top`?n.top:n.bottom;return{x:i?t.x-a:0,y:i?t.y-o:0}},kae=function(e,t){var n=t.domain.x&&t.domain.y?e.horizontal?Cae(e,t):Sae(e,t):xae(e,t);return{globalTransform:wae(e,t,n),gridOffset:Oae(t,n),gridEdge:Dae(e,t)}},Aae=function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?`bottom`:`left`,independent:e.horizontal?`left`:`bottom`};return e.dependentAxis?t.dependent:t.independent},jae=function(e){var t=cx(e,fae(e)),n=Er(e),r=bae(e,t),i=pb(e)?e.tickValues:void 0,a=ob(e),o=vb(e),s=dae(e),c=a===`x`?o:void 0,l=a===`y`?o:void 0,u=a===`x`?s:void 0,d=a===`y`?s:void 0,f=!(e.crossAxis===!1||e.standalone===!0),p=_b(e,s,f),m=hb(e,s),h={x:Nr(e,`x`),y:Nr(e,`y`)},g={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:l},_={x:e.domain&&e.domain.x?qr(e,`x`).domain(e.domain.x).range(e.horizontal?h.y:h.x):u,y:e.domain&&e.domain.y?qr(e,`y`).domain(e.domain.y).range(e.horizontal?h.x:h.y):d},v=g.x&&g.y?ub(g):void 0,y=v?{x:db(v.x,g.x),y:db(v.y,g.y)}:void 0,b=y?{x:lx(`x`,y.y,e.horizontal),y:lx(`y`,y.x,e.horizontal)}:void 0,x=b?e.orientation||b[a]:Aae(e),S=fb(Object.assign({},e,{orientation:x}));return{anchors:yae(x,S),axis:a,crossAxis:f,domain:g,isVertical:S,labelPadding:r,orientation:x,orientations:b,origin:v,padding:n,scale:_,stringTicks:i,style:t,tickFormat:m,ticks:p}},Mae=function(e,t){var n=bb(e,t),r=jae(n),i=r.axis,a=r.style,o=r.orientation,s=r.isVertical,c=r.scale,l=r.ticks,u=r.tickFormat,d=r.anchors,f=r.domain,p=r.stringTicks,m=i===`x`?`y`:`x`,h=n.width,g=n.height,_=n.standalone,v=n.theme,y=n.polar,b=n.padding,x=n.horizontal,S=kae(n,r),C=S.globalTransform,ee=S.gridOffset,w=S.gridEdge,T={scale:ax({},i,c[i]),polar:y,horizontal:x,ticks:l,stringTicks:p},E=gae(n,r,C),D=vae(n,r,C),O={parent:Object.assign({style:a.parent,ticks:l,standalone:_,theme:v,width:h,height:g,padding:b,domain:f},T)},te={dimension:m,range:ax({},m,Nr(n,m)),scale:n.scale&&n.scale[m]?ax({},m,n.scale[m]):void 0};return l.reduce(function(e,t,n){var r=p?p[n]:t,f=u(t,n,l),m=_ae(a,Object.assign({}
2638,T,{tick:r,tickValue:t,index:n,text:f})),h={position:Tae(m,o,s),transform:Eae(c[i]?.call(c,t),C,s)},g={edge:w,transform:{x:s?-ee.x+C.x:c[i]?.call(c,t)+C.x,y:s?c[i]?.call(c,t)+C.y:ee.y+C.y}};return e[n]={axis:Object.assign({dimension:i},T,E),axisLabel:Object.assign({},T,D),ticks:Object.assign({},T,pae(h,m.tickStyle,t)),tickLabels:Object.assign({},T,mae(h,m.labelStyle,d,t,f)),grid:Object.assign({},T,te,hae(g,m.gridStyle,t))},e},O)},dx=e(Dr());function Nae(e){return Lae(e)||Iae(e)||Fae(e)||Pae()}function Pae(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2639In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fae(e,t){if(e){if(typeof e==`string`)return fx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fx(e,t)}}function Iae(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Lae(e){if(Array.isArray(e))return fx(e)}function fx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rae(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function px(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zae(e,t,n){return t&&px(e.prototype,t),n&&px(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Bae(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&mx(e,t)}function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mx(e,t)}function Vae(e){var t=Wae();return function(){var n=hx(e),r;if(t){var i=hx(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Hae(this,r)}}function Hae(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Uae(e)}function Uae(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Wae(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hx(e){return hx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hx(e)}var gx={width:450,height:300,padding:50},Gae={components:[{name:`axis`,index:0},{name:`axisLabel`,index:0},{name:`grid`},{name:`parent`,index:`parent`},{name:`ticks`},{name:`tickLabels`}]},_x=function(e){Bae(n,e);var t=Vae(n);function n(){return Rae(this,n),t.apply(this,arguments)}return zae(n,[{key:`renderLine`,value:function(e){var t=e.axisComponent,n=this.getComponentProps(t,`axis`,0);return V.cloneElement(t,n)}},{key:`renderLabel`,value:function(e){var t=e.axisLabelComponent;if(!e.label)return null;var n=this.getComponentProps(t,`axisLabel`,0);return V.cloneElement(t,n)}},{key:`renderGridAndTicks`,value:function(e){var t=this,n=e.tickComponent,r=e.tickLabelComponent,i=e.gridComponent,a=e.name,o=function(e){var t=e.style,n=t===void 0?{}:t,r=e.events,i=r===void 0?{}:r;return n.stroke!==`transparent`&&n.stroke!==`none`&&n.strokeWidth!==0||!(0,dx.default)(i)};return this.dataKeys.map(function(s,c){var l=t.getComponentProps(n,`ticks`,c),u=V.cloneElement(n,l),d=o(u.props)?u:void 0,f=t.getComponentProps(i,`grid`,c),p=V.cloneElement(i,f),m=o(p.props)?p:void 0,h=t.getComponentProps(r,`tickLabels`,c),g=[m,d,V.cloneElement(r,h)].filter(Boolean);return V.cloneElement(e.groupComponent,{key:`${a}-tick-group-${s}`},g)})}},{key:`fixLabelOverlap`,value:function(e,t){var n=fb(t),r=n?t.he
2639ight:t.width,i=function(e){return e.type&&e.type.role===`label`},a=e.map(function(e){return e.props.children}).reduce(function(e,t){return e.concat(t)},[]).filter(i).map(function(e){return e.props}),o=function(e){return typeof e==`object`?Object.assign({},{top:0,right:0,bottom:0,left:0},e):{top:e,right:e,bottom:e,left:e}},s=a.reduce(function(e,t){var r=o(t.style.padding),i=dr(t.text,{angle:t.angle,fontSize:t.style.fontSize,letterSpacing:t.style.letterSpacing,fontFamily:t.style.fontFamily});return e+(n?i.height+r.top+r.bottom:i.width+r.right+r.left)},0),c=Math.floor(r*e.length/s),l=Math.ceil(e.length/c)||1,u=function(e){return e.props.children.filter(i).reduce(function(e,t){return(n?t.props.y:t.props.x)||0},0)};return e.sort(function(e,t){return n?u(t)-u(e):u(e)-u(t)}).filter(function(e,t){return t%l===0})}},{key:`shouldAnimate`,value:function(){return!!this.props.animate}},{key:`render`,value:function(){var e=vx.animationWhitelist,t=bb(this.props,gx),n=Zr(this.props);if(this.shouldAnimate())return this.animateComponent(t,e);var r=this.renderGridAndTicks(t),i=t.fixLabelOverlap?this.fixLabelOverlap(r,t):r,a=[this.renderLine(t),this.renderLabel(t)].concat(Nae(i)),o=V.cloneElement(t.containerComponent,n);return t.standalone?this.renderContainer(o,a):V.cloneElement(t.groupComponent,n,a)}}]),n}(V.Component);_x.animationWhitelist=[`style`,`domain`,`range`,`tickCount`,`tickValues`,`offsetX`,`offsetY`,`padding`,`width`,`height`],_x.displayName=`VictoryAxis`,_x.role=`axis`,_x.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},_x.defaultProps={axisComponent:V.createElement(Lr,null),axisLabelComponent:V.createElement(Yn,null),tickLabelComponent:V.createElement(Yn,null),tickComponent:V.createElement(Lr,null),gridComponent:V.createElement(Lr,null),standalone:!0,theme:Ir.grayscale,containerComponent:V.createElement(ti,null),groupComponent:V.createElement(`g`,{role:`presentation`}),fixLabelOverlap:!1},_x.getDomain=vb,_x.getAxis=ob,_x.getStyles=function(e){return cx(e)},_x.getBaseProps=function(e){return Mae(e,gx)},_x.expectedComponents=[`axisComponent`,`axisLabelComponent`,`groupComponent`,`containerComponent`,`tickComponent`,`tickLabelComponent`,`gridComponent`];var vx=ii(_x,Gae),yx=n(((e,t)=>{var n=Oi(),r=bi(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a})),Kae=n(((e,t)=>{function n(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}t.exports=n})),qae=n(((e,t)=>{e=t.exports=n,e.getSerialize=r;function n(e,t,n,i){return JSON.stringify(e,r(t,i),n)}function r(e,t){var n=[],r=[];return t??=function(e,t){return n[0]===t?`[Circular ~]`:`[Circular ~.`+r.slice(0,n.indexOf(t)).join(`.`)+`]`},function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return e==null?a:e.call(this,i,a)}}})),Jae=e(Kae()),bx=e(Di()),Yae=e(qae());function Xae(e,t){return $ae(e)||Qae(e,t)||xx(e,t)||Zae()}function Zae(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2640In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qae(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function $ae(e){if(Array.isArray(e))return e}function eoe(e){return roe(e)||noe(e)||xx(e)||toe()}function toe(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2641In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xx(e,t){if(e){if(typeof e==`string`)return Sx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sx(e,t)}}function noe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function roe(e){if(Array.isArray(e))return Sx(e)}function Sx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ioe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Cx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aoe(e,t,n){return t&&Cx(e.prototype,t),n&&Cx(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ooe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&wx(e,t)}
2641function wx(e,t){return wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wx(e,t)}function soe(e){var t=loe();return function(){var n=Ex(e),r;if(t){var i=Ex(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return coe(this,r)}}function coe(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Tx(e)}function Tx(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function loe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ex(e){return Ex=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ex(e)}var Dx=function(e){ooe(n,e);var t=soe(n);function n(e){var r;return ioe(this,n),r=t.call(this,e),r.getScopedEvents=void 0,r.getEventState=void 0,r.baseProps=void 0,r.sharedEventsCache=void 0,r.globalEvents=void 0,r.prevGlobalEventKeys=void 0,r.boundGlobalEvents=void 0,r.getScopedEvents=Un.bind(Tx(r)),r.getEventState=ci.bind(Tx(r)),r.state=r.state||{},r.sharedEventsCache={},r.globalEvents={},r.prevGlobalEventKeys=[],r.boundGlobalEvents={},r.baseProps=r.getBaseProps(e),r}return aoe(n,[{key:`shouldComponentUpdate`,value:function(e){if(!(0,bx.default)(this.props,e)){this.baseProps=this.getBaseProps(e);var t=this.getExternalMutations(e,this.baseProps);this.applyExternalMutations(e,t)}return!0}},{key:`componentDidMount`,value:function(){var e=this,t=Object.keys(this.globalEvents);t.forEach(function(t){return e.addGlobalListener(t)}),this.prevGlobalEventKeys=t}},{key:`componentDidUpdate`,value:function(){var e=this,t=Object.keys(this.globalEvents);$n(this.prevGlobalEventKeys,t).forEach(function(t){return e.removeGlobalListener(t)}),$n(t,this.prevGlobalEventKeys).forEach(function(t){return e.addGlobalListener(t)}),this.prevGlobalEventKeys=t}},{key:`componentWillUnmount`,value:function(){var e=this;this.prevGlobalEventKeys.forEach(function(t){return e.removeGlobalListener(t)})}},{key:`addGlobalListener`,value:function(e){var t=this,n=function(n){var r=t.globalEvents[e];return r&&r(ui(n))};this.boundGlobalEvents[e]=n,window.addEventListener(oi(e),n)}},{key:`removeGlobalListener`,value:function(e){window.removeEventListener(oi(e),this.boundGlobalEvents[e])}},{key:`getAllEvents`,value:function(e){var t=xr(e,[`container`,`groupComponent`]);return Array.isArray(t)?Array.isArray(e.events)?t.concat.apply(t,eoe(e.events)):t:e.events}},{key:`applyExternalMutations`,value:function(e,t){if(!(0,dx.default)(t)){var n=e.externalEventMutations.reduce(function(e,t){return ai(t.callback)?e.concat(t.callback):e},[]),r=n.length?function(){n.forEach(function(e){return e()})}:void 0;this.setState(t,r)}}},{key:`getExternalMutations`,value:function(e,t){return(0,dx.default)(e.externalEventMutations)?void 0:Vn(e.externalEventMutations,t,this.state,Object.keys(t))}},{key:`cacheSharedEvents`,value:function(e,t,n){this.sharedEventsCache[e]=[t,n]}},{key:`getCachedSharedEvents`,value:function(e,t){var n=Xae(this.sharedEventsCache[e]||[],2),r=n[0],i=n[1];if(r&&(0,bx.default)(t,i))return r}},{key:`getBaseProps`,value:function(e){var t=e.container,n=V.Children.toArray(this.props.children),r=this.getBasePropsFromChildren(n),i=t?t.props:{};return Object.assign({},r,{parent:i})}},{key:`getBasePropsFromChildren`,value:function(e){return(0,Jae.default)(si(e,function(e,t){if(e.type&&ai(e.type.getBaseProps)){var n=e.props&&e.type.getBaseProps(e.props);return n?[[t,n]]:null}return null}))}},{key:`getNewChildren`,value:function(e,t){var n=this,r=e.events,i=e.eventKey,a=function(e,o){return e.reduce(function(e,s,c){if(s.props.children){var l=V.Children.toArray(s.props.children),u=o.slice(c,c+l.length),d=V.cloneElement(s,s.props,a(l,u));return e.concat(d)}else if(o[c]!==`parent`&&s.type&&ai(s.type.getBaseProps)){var f=s.props.name||o[c],p=Array.isArray(r)&&r.filter(function(e){return e.target===`parent`?!1:Array.isArray(e.childName)?e.childName.indexOf(f)>-1:e.childName===f||e.childName===`all`}),m=[f,t,p,(0,Yae.default)(n.state[f])],h=n.getCachedSharedEvents(f,m)||{events:p,getEvents:function(e,r){return n.getScopedEvents(e,r,f,t)},getEventState:function(e,t){return n.getEventState(e,t,f)}};return n.cacheSharedEvents(f,h,m),e.concat(V.cloneElement(s,Object.assign({key:`events-${f}`,sharedEvents:h,eventKey:i,name:f},s.props)))}return e.concat(s)},[])},o=Object.keys(t);return a(V.Children.toArray(e.children),o)}},{key:`getContainer`,value:function(e,t,n){var r=this,i=this.getNewChildren(e,t),a=Array.isArray(n)?n.filter(function(e){return e.target===`parent`}):[],o=a.length>0?{events:a,getEvents:function(e,n){return r.getScopedEvents(e,n,null,t)},getEventState:this.getEventState}:null,s=e.container||e.groupComponent,c=s.type&&s.type.role,l=s.props||{},u=sr.bind(this),d=o&&u({sharedEvents:o},`parent`),f=(0,Ey.default)({},this.getEventState(`parent`,`parent`),l,t.parent,{children:i}),p=(0,Ey.default)({},Gn(d,`parent`,f),l.events);this.globalEvents=lr(p);var m=nr(p);return c===`container`?V.cloneElement(s,Object.assign({},f,{events:m})):V.cloneElement(s,m,i)}},{key:`render`,value:function(){var e=this.getAllEvents(this.props);return e?this.getContainer(this.props,this.baseProps,e):V.cloneElement(this.props.container,{children:this.props.children})}}]),n}(V.Component);Dx.displayName=`VictorySharedEvents`,Dx.role=`shared-event-wrapper`,Dx.c
2641ontextType=rr,Dx.defaultProps={groupComponent:V.createElement(`g`,null)};var Ox=function(e,t,n){return n===`x`?e*Math.cos(t):-e*Math.sin(t)},kx=function(e){var t=e.dependentAxis?`radial`:`angular`,n=t===`angular`?`radial`:`angular`;return e.horizontal?n:t},uoe=function(e,t){return(0,Fb.default)(e,function(e){return t(e)%(2*Math.PI)})},Ax=function(e,t){return{tickStyle:wr(e.ticks,t),labelStyle:wr(e.tickLabels,t),gridStyle:wr(e.grid,t)}},doe=function(e){var t=e.theme,n=t===void 0?{}:t,r=e.dependentAxis,i=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,a=r?`polarDependentAxis`:`polarIndependentAxis`,o=r?`dependentAxis`:`independentAxis`,s=n?.[a]?.style||n?.[o]?.style;return i&&s?function(){return[`axis`,`axisLabel`,`grid`,`parent`,`tickLabels`,`ticks`].reduce(function(e,t){return e[t]=(0,Ey.default)({},s?.[t],i?.[t]),e},{})}():s||i},jx=function(e){var t=Er(e),n=t.left,r=t.right,i=t.top,a=t.bottom,o=e.width,s=e.height;if(o===void 0||s===void 0)throw Error(`VictoryPolarAxis: width and height properties are required for standalone axes.`);return Math.min(o-n-r,s-i-a)/2},Mx=function(e,t){if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if(kx(e)===`angular`)return[Kr(e.startAngle),Kr(e.endAngle)];var n=jx(e);return[e.innerRadius||0,n]},Nx=function(e){var t=ob(e),n=qr(e,t),r=vb(e,t)||n.domain(),i=Mx(e,t);return n.range(i),n.domain(r),n},Px=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{};return{parent:(0,Ey.default)({height:`auto`,width:`100%`},n.parent,t.parent),axis:(0,Ey.default)({},n.axis,t.axis),axisLabel:(0,Ey.default)({},n.axisLabel,t.axisLabel),grid:(0,Ey.default)({},n.grid,t.grid),ticks:(0,Ey.default)({},n.ticks,t.ticks),tickLabels:(0,Ey.default)({},n.tickLabels,t.tickLabels)}},Fx=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,i=yb(e,ob(e));return i===void 0||!r?t===void 0?n:t:cr(i)},foe=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.scale,s=t.style,c=t.stringTicks,l=t.ticks,u=t.tickFormat,d=t.origin,f=u(n,r,l),p=c?c[r]:n,m=Ax(s,{tick:p,tickValue:n,index:r,ticks:l,stringTicks:c,radius:a,scale:o,axisType:i,text:f}).tickStyle,h=i===`radial`?Fx(e):void 0,g=m.padding||m.size||0,_=Kr(90-h),v=i===`angular`?o(n):Kr(-1*h),y=i===`angular`?a:o(n);return i===`angular`?{index:r,datum:p,style:m,x1:Ox(y,v,`x`)+d.x,y1:Ox(y,v,`y`)+d.y,x2:Ox(y+g,v,`x`)+d.x,y2:Ox(y+g,v,`y`)+d.y}:{index:r,datum:p,style:m,x1:y*Math.cos(v)+Math.cos(_)*g+d.x,x2:y*Math.cos(v)-Math.cos(_)*g+d.x,y1:y*Math.sin(v)+Math.sin(_)*g+d.y,y2:y*Math.sin(v)-Math.sin(_)*g+d.y}},poe=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.tickFormat,s=t.style,c=t.scale,l=t.ticks,u=t.stringTicks,d=t.origin,f=o(n,r,l),p=u?u[r]:n,m=Ax(s,{text:f,tick:p,tickValue:n,index:r,ticks:l,stringTicks:u,radius:a,scale:c,axisType:i}).labelStyle,h=e.tickLabelComponent,g=h!=null&&h.props.labelPlacement?h.props.labelPlacement:e.labelPlacement,_=m.padding||0,v=0,y=i===`radial`?Fx(e):void 0,b=i===`angular`?cr(c(n)):y+v,x=m.angle===void 0?Qn(Object.assign({},e,{labelPlacement:g}),b):m.angle,S=i===`angular`?a+_:c(n);return{index:r,datum:p,style:m,angle:x,textAnchor:m.textAnchor||Yr(Object.assign({},e,{labelPlacement:g}),b),text:f,x:S*Math.cos(Kr(b))+d.x,y:-S*Math.sin(Kr(b))+d.y}},moe=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.style,s=t.scale,c=t.stringTicks,l=t.ticks,u=t.tickFormat,d=t.origin,f=u(n,r,l),p=e.startAngle,m=e.endAngle,h=e.innerRadius,g=h===void 0?0:h,_=c?c[r]:n,v=Ax(o,{tick:_,tickValue:n,index:r,ticks:l,stringTicks:c,radius:a,scale:s,axisType:i,text:f}).gridStyle,y=s(n);return i===`angular`?{index:r,datum:_,style:v,x1:Ox(a,y,`x`)+d.x,y1:Ox(a,y,`y`)+d.y,x2:Ox(g,y,`x`)+d.x,y2:Ox(g,y,`y`)+d.y}:{style:v,index:r,datum:_,cx:d.x,cy:d.y,r:s(n),startAngle:p,endAngle:m}},hoe=function(e,t){var n=t.axisType,r=t.radius,i=t.style,a=t.origin,o=e.axisLabelComponent;if(n!==`radial`)return{};var s=o!=null&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,c=i&&i.axisLabel||{},l=n===`radial`?Fx(e):void 0,u=c.angle===void 0?Qn(Object.assign({},e,{labelPlacement:s}),l):c.angle,d=r+(c.padding||0);return{style:c,angle:u,textAnchor:c.textAnchor||Yr(Object.assign({},e,{labelPlacement:s}),l),verticalAnchor:c.verticalAnchor||Zn(Object.assign({},e,{labelPlacement:s}),l),text:e.label,x:Ox(d,Kr(l),`x`)+a.x,y:Ox(d,Kr(l),`y`)+a.y}},goe=function(e,t){var n=t.style,r=t.axisType,i=t.radius,a=t.origin,o=e.startAngle,s=e.endAngle,c=e.innerRadius,l=c===void 0?0:c,u=r===`radial`?Kr(Fx(e)):void 0;return r===`radial`?{style:n.axis,x1:Ox(l,u,`x`)+a.x,x2:Ox(i,u,`x`)+a.x,y1:Ox(l,u,`y`)+a.y,y2:Ox(i,u,`y`)+a.y}:{style:n.axis,cx:a.x,cy:a.y,r:i,startAngle:o,endAngle:s}},_oe=function(e){var t=Object.assign({polar:!0},e),n=Px(t,doe(t)),r=Er(t),i=ob(t),a=kx(t),o=pb(t)?t.tickValues:void 0,s=vb(t,i),c=Mx(t,i),l=Nx(t),u=_b(t,l);return{axis:i,style:n,padding:r,stringTicks:o,axisType:a,scale:l,ticks:a===`angular`?uoe(u,l):u,tickFormat:hb(t,l),domain:s,range:c,radius:jx(t),origin:Jr(t)}}
2641,voe=function(e,t){var n=bb(e,t),r=_oe(n),i=r.style,a=r.scale,o=r.ticks,s=r.domain,c=n.width,l=n.height,u=n.standalone,d=n.theme,f=n.name,p=goe(n,r),m=hoe(n,r),h={parent:{style:i.parent,ticks:o,scale:a,width:c,height:l,domain:s,standalone:u,theme:d,name:f}};return o.reduce(function(e,t,i){return e[i]={axis:p,axisLabel:m,ticks:foe(n,r,t,i),tickLabels:poe(n,r,t,i),grid:moe(n,r,t,i)},e},h)};function Ix(e){return Soe(e)||xoe(e)||boe(e)||yoe()}function yoe(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2642In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function boe(e,t){if(e){if(typeof e==`string`)return Lx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lx(e,t)}}function xoe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Soe(e){if(Array.isArray(e))return Lx(e)}function Lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Coe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Rx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function woe(e,t,n){return t&&Rx(e.prototype,t),n&&Rx(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Toe(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&zx(e,t)}function zx(e,t){return zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zx(e,t)}function Eoe(e){var t=koe();return function(){var n=Bx(e),r;if(t){var i=Bx(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Doe(this,r)}}function Doe(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ooe(e)}function Ooe(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function koe(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bx(e){return Bx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bx(e)}var Vx={width:450,height:300,padding:50},Hx=function(e){Toe(n,e);var t=Eoe(n);function n(){return Coe(this,n),t.apply(this,arguments)}return woe(n,[{key:`renderAxisLine`,value:function(e){var t=e.dependentAxis?e.axisComponent:e.circularAxisComponent,n=this.getComponentProps(t,`axis`,0);return V.cloneElement(t,n)}},{key:`renderLabel`,value:function(e){var t=e.axisLabelComponent,n=e.dependentAxis;if(!e.label||!n)return null;var r=this.getComponentProps(t,`axisLabel`,0);return V.cloneElement(t,r)}},{key:`renderAxis`,value:function(e){var t=this,n=e.tickComponent,r=e.tickLabelComponent,i=e.name,a=function(e){var t=e.style,n=t===void 0?{}:t,r=e.events,i=r===void 0?{}:r;return n.stroke!==`transparent`&&n.stroke!==`none`&&n.strokeWidth!==0||!(0,dx.default)(i)},o=(e.dependentAxis?`radial`:`angular`)==`radial`?e.circularGridComponent:e.gridComponent,s=this.dataKeys.map(function(e,r){var o=Object.assign({key:`${i}-tick-${e}`},t.getComponentProps(n,`ticks`,r)),s=V.cloneElement(n,o);return a(s.props)?s:void 0}).filter(Boolean),c=this.dataKeys.map(function(e,n){var r=Object.assign({key:`${i}-grid-${e}`},t.getComponentProps(o,`grid`,n)),s=V.cloneElement(o,r);return a(s.props)?s:void 0}).filter(Boolean),l=this.dataKeys.map(function(e,n){var a=Object.assign({key:`${i}-tick-${e}`},t.getComponentProps(r,`tickLabels`,n));return V.cloneElement(r,a)}),u=[this.renderAxisLine(e),this.renderLabel(e)].concat(Ix(s),Ix(c),Ix(l));return this.renderGroup(e,u)}},{key:`renderGroup`,value:function(e,t){var n=e.groupComponent;return V.cloneElement(n,{},t)}},{key:`shouldAnimate`,value:function(){return!!this.props.animate}},{key:`render`,value:function(){var e=Ux.animationWhitelist,t=bb(this.props,Vx);if(this.shouldAnimate())return this.animateComponent(t,e);var n=this.renderAxis(t);return t.standalone?this.renderContainer(t.containerComponent,n):n}}]),n}(V.Component);Hx.animationWhitelist=[`style`,`domain`,`range`,`tickCount`,`tickValues`,`padding`,`width`,`height`],Hx.displayName=`VictoryAxis`,Hx.role=`axis`,Hx.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Hx.defaultProps={axisComponent:V.createElement(Lr,null),axisLabelComponent:V.createElement(Yn,null),circularAxisComponent:V.createElement(Ly,null),
2642circularGridComponent:V.createElement(Ly,null),containerComponent:V.createElement(ti,null),endAngle:360,gridComponent:V.createElement(Lr,null),groupComponent:V.createElement(`g`,{role:`presentation`}),labelPlacement:`parallel`,startAngle:0,standalone:!0,theme:Ir.grayscale,tickComponent:V.createElement(Lr,null),tickLabelComponent:V.createElement(Yn,null)},Hx.getDomain=vb,Hx.getAxis=ob,Hx.getScale=Nx,Hx.getStyles=function(e){return Px(e,Vx.style)},Hx.getBaseProps=function(e){return voe(e,Vx)},Hx.expectedComponents=[`axisComponent`,`circularAxisComponent`,`groupComponent`,`containerComponent`,`tickComponent`,`tickLabelComponent`,`gridComponent`,`circularGridComponent`];var Ux=ii(Hx,{components:[{name:`axis`,index:0},{name:`axisLabel`,index:0},{name:`grid`},{name:`parent`,index:`parent`},{name:`ticks`},{name:`tickLabels`}]}),Aoe={width:450,height:300,padding:50};function joe(e,t,n){var r=n.domain,i=n.scale,a=n.stringMap,o=n.categories;return{stringMap:a,horizontal:n.horizontal,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function Moe(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],a=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],o=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],s=e.polar?t.origin.x:a,c=e.polar?t.origin.y:o,l=e.name||`chart`,u={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:s,y:c,key:`${l}-background`,width:i};return V.cloneElement(n,(0,Ey.default)({},n.props,u))}function Noe(e,t,n){var r=sb([e]);return r.length>0?joe(r[0],t,n):{categories:n.categories,domain:n.domain,range:n.range,scale:n.scale,stringMap:n.stringMap,horizontal:n.horizontal}}function Poe(e){return{parent:(0,Ey.default)({},e.style&&e.style.parent,{height:`100%`,width:`100%`,userSelect:`none`})}}function Wx(e,t){var n=Poe(e),r=Sr(e,Aoe,`chart`),i=r.horizontal,a=r.polar,o=Gb(r,t),s=Kb(r,t,o),c=Ioe(r,t,o),l={x:Kx(Object.assign({},r,{categories:s}),`x`,t),y:Kx(Object.assign({},r,{categories:s}),`y`,t)},u={x:Nr(r,`x`),y:Nr(r,`y`)},d={x:Mr(r,`x`)||Hb(r,`x`),y:Mr(r,`y`)||Hb(r,`y`)};return{categories:s,domain:l,range:u,horizontal:i,scale:{x:d.x.domain(l.x).range(i?u.y:u.x),y:d.y.domain(l.y).range(i?u.x:u.y)},stringMap:c,style:n,origin:a?Jr(r):ub(l),padding:Er(r)}}function Foe(e,t,n){var r=t||Gx(e),i=n||Wx(e,r),a=i.style.parent,o=e.height,s=e.polar,c=e.theme,l=e.width,u=i.origin,d=i.horizontal,f=e.name||`chart`;return r.filter(V.isValidElement).map(function(t,n){var r=t.type&&t.type.role,p=Array.isArray(t.props.style)?t.props.style:(0,Ey.default)({},t.props.style,{parent:a}),m=Noe(t,e,i),h=t.props.name||`${f}-${r}-${n}`,g=(0,Ey.default)({horizontal:d,height:o,polar:s,theme:c,width:l,style:p,name:h,origin:s?u:void 0,padding:i.padding,key:`${h}-key-${n}`,standalone:!1},m);return V.cloneElement(t,g)})}var Gx=function(e,t){var n=V.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{var r={dependent:lb(n,`dependent`),independent:lb(n,`independent`)};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},Kx=function(e,t,n){var r=n||V.Children.toArray(e.children),i=Vb(e,t,r),a=cb(r,t);return a&&a.props&&a.props.invertAxis?i.concat().reverse():i},Ioe=function(e,t,n){return{x:!n.x||n.x.length===0?null:n.x.reduce(function(e,t,n){return e[t]=n+1,e},{}),y:!n.y||n.y.length===0?null:n.y.reduce(function(e,t,n){return e[t]=n+1,e},{})}};function qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qx(Object(n),!0).forEach(function(t){Loe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Loe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Roe={width:450,height:300,padding:50},zoe={backgroundComponent:V.createElement(Lre,null),containerComponent:V.createElement(ti,null),defaultAxes:{independent:V.createElement(vx,null),dependent:V.createElement(vx,{dependentAxis:!0})},defaultPolarAxes:{independent:V.createElement(Ux,null),dependent:V.createElement(Ux,{dependentAxis:!0})},groupComponent:V.createElement(`g`,null),standalone:!0,theme:Ir.grayscale},Yx=V.memo(function(e){var t=V.useMemo(function(){return Jx(Jx({},zoe),e)},[e]),n=`chart`,r=Tb(),i=r.getAnimationProps,a=r.setAnimationState,o=r.getProps,s=o(t),c=Sr(s,Roe,n),l=c.desc,u=c.eventKey,d=c.containerComponent,f=c.standalone,p=c.groupComponent,m=c.externalEventMutations,h=c.width,g=c.height,_=c.theme,v=c.polar,y=c.name,b=c.title,x=s.polar?c.defaultPolarAxes:c.defaultAxes,S=V.useMemo(function(){return Gx(c,x)},[c,x]),C=V.useMemo(function(){return Wx(c,S)},[c,S]),ee=C.domain,w=C.scale,T=C.style,E=C.origin,D=C.horizontal,O=V.useMemo(function(){var e=Foe(s,S,C).map(function(e,t){var n=Object.assign({animate:i(s,e,t)},e.props);return V.cloneElement(e,n)});
2642if(s.style&&s.style.background){var t=Moe(s,C);e.unshift(t)}return e},[i,S,s,C]),te=V.useMemo(function(){return f?{desc:l,domain:ee,width:h,height:g,horizontal:D,name:y,origin:v?E:void 0,polar:v,theme:_,title:b,scale:w,standalone:f,style:T.parent}:{}},[l,ee,g,D,y,E,v,w,f,T,b,_,h]),ne=V.useMemo(function(){if(f){var e=(0,Ey.default)({},d.props,te,Zr(t));return V.cloneElement(d,e)}return p},[p,f,d,te,t]),re=V.useMemo(function(){return Ub(s)},[s]),ie=xb(t);return V.useEffect(function(){return function(){t.animate&&a(ie,t)}},[a,ie,t]),(0,dx.default)(re)?V.cloneElement(ne,ne.props,O):V.createElement(Dx,{container:ne,eventKey:u,events:re,externalEventMutations:m},O)},bx.default);Yx.displayName=`VictoryChart`,Yx.expectedComponents=[`groupComponent`,`containerComponent`];function Xx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xx(Object(n),!0).forEach(function(t){Boe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Boe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Voe=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,i=e.width,a=e.height,o=e.center,s=r===`bottom`?1:-1,c=e.x+(e.dx||0),l=e.y+(e.dy||0),u=o.x,d=o.y,f=d+a/2*s,p=d-a/2*s,m=u+i/2,h=u-i/2,g=s*(l-f)<0?0:e.pointerLength,_=`${n} ${n} ${r===`bottom`?`0 0 0`:`0 0 1`}`;return`M ${u-t/2}, ${f} 2643 L ${g?c:u+t/2}, ${g?l:f} 2644 L ${u+t/2}, ${f} 2645 L ${m-n}, ${f} 2646 A ${_} ${m}, ${f-s*n} 2647 L ${m}, ${p+s*n} 2648 A ${_} ${m-n}, ${p} 2649 L ${h+n}, ${p} 2650 A ${_} ${h}, ${p+s*n} 2651 L ${h}, ${f-s*n} 2652 A ${_} ${h+n}, ${f} 2653 z`},Hoe=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,i=e.width,a=e.height,o=e.center,s=r===`left`?1:-1,c=e.x+(e.dx||0),l=e.y+(e.dy||0),u=o.x,d=o.y,f=u-i/2*s,p=u+i/2*s,m=d+a/2,h=d-a/2,g=s*(c-f)>0?0:e.pointerLength,_=`${n} ${n} ${r===`left`?`0 0 0`:`0 0 1`}`;return`M ${f}, ${d-t/2} 2654 L ${g?c:f}, ${g?l:d+t/2} 2655 L ${f}, ${d+t/2} 2656 L ${f}, ${m-n} 2657 A ${_} ${f+s*n}, ${m} 2658 L ${p-s*n}, ${m} 2659 A ${_} ${p}, ${m-n} 2660 L ${p}, ${h+n} 2661 A ${_} ${p-s*n}, ${h} 2662 L ${f+s*n}, ${h} 2663 A ${_} ${f}, ${h+n} 2664 z`},Uoe=function(e){var t=e.orientation||`top`;return t===`left`||t===`right`?Hoe(e):Voe(e)},Woe=function(e){var t=$r(e.id,e),n=wr(e.style,e);return Zx(Zx({},e),{},{id:t,style:n})},Goe={pathComponent:V.createElement(zn,null),role:`presentation`,shapeRendering:`auto`},Koe=function(e){var t=Woe(Zx(Zx({},Goe),e)),n=Zr(t);Wr(t.height,`Flyout props[height] is undefined`),Wr(t.width,`Flyout props[width] is undefined`),Wr(t.x,`Flyout props[x] is undefined`),Wr(t.y,`Flyout props[y] is undefined`);var r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||`top`,pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return V.cloneElement(t.pathComponent,Zx(Zx(Zx({},t.events),n),{},{style:t.style,d:Uoe(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};function qoe(e){return Zoe(e)||Xoe(e)||Yoe(e)||Joe()}function Joe(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2665In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yoe(e,t){if(e){if(typeof e==`string`)return Qx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qx(e,t)}}function Xoe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Zoe(e){if(Array.isArray(e))return Qx(e)}function Qx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
2665t%2?$x(Object(n),!0).forEach(function(t){Qoe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $oe(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function tS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ese(e,t,n){return t&&tS(e.prototype,t),n&&tS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function tse(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nS(e,t)}function nse(e){var t=ase();return function(){var n=rS(e),r;if(t){var i=rS(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return rse(this,r)}}function rse(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ise(e)}function ise(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ase(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rS(e){return rS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rS(e)}var ose={cornerRadius:5,pointerLength:10,pointerWidth:10},iS=function(e){tse(n,e);var t=nse(n);function n(e){var r;return $oe(this,n),r=t.call(this,e),r.id=void 0,r.id=e.id===void 0?(0,wy.default)(`tooltip-`):e.id,r}return ese(n,[{key:`getDefaultOrientation`,value:function(e){var t=e.datum,n=e.horizontal;if(!e.polar){var r=n?`right`:`top`,i=n?`left`:`bottom`;return t&&t.y<0?i:r}return this.getPolarOrientation(e)}},{key:`getPolarOrientation`,value:function(e){var t=Jn(e,e.datum),n=e.labelPlacement||`vertical`;return n===`vertical`?this.getVerticalOrientations(t):n===`parallel`?t<90||t>270?`right`:`left`:t>180?`bottom`:`top`}},{key:`getVerticalOrientations`,value:function(e){return e<45||e>315?`right`:e>=45&&e<=135?`top`:e>135&&e<225?`left`:`bottom`}},{key:`getStyles`,value:function(e){var t=e.theme||Ir.grayscale,n=t&&t.tooltip&&t.tooltip.style?t.tooltip.style:{},r=Array.isArray(e.style)?e.style.map(function(e){return(0,Ey.default)({},e,n)}):(0,Ey.default)({},e.style,n),i=t&&t.tooltip&&t.tooltip.flyoutStyle?t.tooltip.flyoutStyle:{},a=e.flyoutStyle?(0,Ey.default)({},e.flyoutStyle,i):i,o=Array.isArray(r)?r.map(function(t){return wr(t,e)}):wr(r,e);return{style:o,flyoutStyle:wr(a,Object.assign({},e,{style:o}))}}},{key:`getEvaluatedProps`,value:function(e){var t=e.cornerRadius,n=e.centerOffset,r=e.dx,i=e.dy,a=$r(e.active,e),o=$r(e.text,Object.assign({},e,{active:a}));o??=``,typeof o==`number`&&(o=o.toString());var s=this.getStyles(Object.assign({},e,{active:a,text:o})),c=s.style,l=s.flyoutStyle,u=$r(e.orientation,Object.assign({},e,{active:a,text:o,style:c,flyoutStyle:l}))||this.getDefaultOrientation(e),d=Er({padding:$r(e.flyoutPadding,Object.assign({},e,{active:a,text:o,style:c,flyoutStyle:l,orientation:u}))||this.getLabelPadding(c)}),f=$r(e.pointerWidth,Object.assign({},e,{active:a,text:o,style:c,flyoutStyle:l,orientation:u})),p=$r(e.pointerLength,Object.assign({},e,{active:a,text:o,style:c,flyoutStyle:l,orientation:u})),m=dr(o,c),h=this.getDimensions(Object.assign({},e,{style:c,flyoutStyle:l,active:a,text:o,orientation:u,flyoutPadding:d,pointerWidth:f,pointerLength:p}),m),g=h.flyoutHeight,_=h.flyoutWidth,v=Object.assign({},e,{active:a,text:o,style:c,flyoutStyle:l,orientation:u,flyoutHeight:g,flyoutWidth:_,flyoutPadding:d,pointerWidth:f,pointerLength:p}),y=(0,Hy.default)(n)&&n?.x!==void 0?$r(n.x,v):0,b=(0,Hy.default)(n)&&n?.y!==void 0?$r(n.y,v):0;return eS(eS({},v),{},{centerOffset:{x:y,y:b}
2665,dx:r===void 0?0:$r(r,v),dy:i===void 0?0:$r(i,v),cornerRadius:$r(t,v)})}},{key:`getCalculatedValues`,value:function(e){var t=e.style,n=e.text,r=e.flyoutStyle,i=e.flyoutHeight,a=e.flyoutWidth,o=dr(n,t),s={height:i,width:a};return{style:t,flyoutStyle:r,labelSize:o,flyoutDimensions:s,flyoutCenter:this.getFlyoutCenter(e,s),transform:this.getTransform(e)}}},{key:`getTransform`,value:function(e){var t=e.x,n=e.y,r=(e.style||{}).angle||e.angle||this.getDefaultAngle(e);return r?`rotate(${r} ${t} ${n})`:void 0}},{key:`getDefaultAngle`,value:function(e){var t=e.polar,n=e.labelPlacement,r=e.orientation,i=e.datum;if(!t||!n||n===`vertical`)return 0;var a=Jn(e,i),o=a>90&&a<180||a>270?1:-1,s=n===`perpendicular`?0:90,c=0;return a===0||a===180?c=r===`top`&&a===180?270:90:a>0&&a<180?c=90-a:a>180&&a<360&&(c=270-a),c+o*s}},{key:`constrainTooltip`,value:function(e,t,n){var r=e.x,i=e.y,a=n.width,o=n.height,s={x:[0,t.width],y:[0,t.height]},c={x:[r-a/2,r+a/2],y:[i-o/2,i+o/2]},l={x:[c.x[0]<s.x[0]?s.x[0]-c.x[0]:0,c.x[1]>s.x[1]?c.x[1]-s.x[1]:0],y:[c.y[0]<s.y[0]?s.y[0]-c.y[0]:0,c.y[1]>s.y[1]?c.y[1]-s.y[1]:0]};return{x:Math.round(r+l.x[0]-l.x[1]),y:Math.round(i+l.y[0]-l.y[1])}}},{key:`getFlyoutCenter`,value:function(e,t){var n=e.x,r=e.y,i=e.dx,a=e.dy,o=e.pointerLength,s=e.orientation,c=e.constrainToVisibleArea,l=e.centerOffset,u=t.height,d=t.width,f=s===`left`?-1:1,p=s===`bottom`?-1:1,m={x:s===`left`||s===`right`?n+f*(o+d/2+f*i):n+i,y:s===`top`||s===`bottom`?r-p*(o+u/2-p*a):r+a},h={x:(0,Hy.default)(e.center)&&e.center.x!==void 0?e.center.x:m.x,y:(0,Hy.default)(e.center)&&e.center.y!==void 0?e.center.y:m.y},g={x:h.x+l.x,y:h.y+l.y};return c?this.constrainTooltip(g,e,t):g}},{key:`getLabelPadding`,value:function(e){if(!e)return 0;var t=Array.isArray(e)?e.map(function(e){return e.padding}):[e.padding];return Math.max.apply(Math,qoe(t).concat([0]))}},{key:`getDimensions`,value:function(e,t){var n=e.orientation,r=e.pointerLength,i=e.pointerWidth,a=e.flyoutHeight,o=e.flyoutWidth,s=e.flyoutPadding,c=$r(e.cornerRadius,e);return{flyoutHeight:a?$r(a,e):function(){var e=t.height+s.top+s.bottom,r=n===`top`||n===`bottom`?2*c:2*c+i;return Math.max(r,e)}(),flyoutWidth:o?$r(o,e):function(){var e=t.width+s.left+s.right,i=n===`left`||n===`right`?2*c+r:2*c;return Math.max(i,e)}()}}},{key:`getLabelProps`,value:function(e,t){var n=t.flyoutCenter,r=t.style,i=t.labelSize,a=t.dy,o=a===void 0?0:a,s=t.dx,c=s===void 0?0:s,l=e.text,u=e.datum,d=e.activePoints,f=e.labelComponent,p=e.index,m=e.flyoutPadding,h=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||`middle`;return(0,Ey.default)({},f.props,{key:`${this.id}-label-${p}`,text:l,datum:u,activePoints:d,textAnchor:h,dy:o,dx:c,style:r,x:function(){if(!h||h===`middle`)return n.x;var e=h===`end`?-1:1;return n.x-e*(i.width/2)}()+(m.left-m.right)/2,y:n.y+(m.top-m.bottom)/2,verticalAnchor:`middle`,angle:r.angle})}},{key:`getPointerOrientation`,value:function(e,t,n){var r={bottom:t.y+n.height/2,top:t.y-n.height/2,left:t.x-n.width/2,right:t.x+n.width/2};return(0,nb.default)([{side:`top`,val:r.top>e.y?r.top-e.y:-1},{side:`bottom`,val:r.bottom<e.y?e.y-r.bottom:-1},{side:`right`,val:r.right<e.x?e.x-r.right:-1},{side:`left`,val:r.left>e.x?r.left-e.x:-1}],`val`,`desc`)[0].side}},{key:`getFlyoutProps`,value:function(e,t){var n=t.flyoutDimensions,r=t.flyoutStyle,i=t.flyoutCenter,a=e.x,o=e.y,s=e.dx,c=e.dy,l=e.datum,u=e.activePoints,d=e.index,f=e.pointerLength,p=e.pointerWidth,m=e.cornerRadius,h=e.events,g=e.flyoutComponent,_=$r(e.pointerOrientation,e);return(0,Ey.default)({},g.props,{x:a,y:o,dx:s,dy:c,datum:l,activePoints:u,index:d,pointerLength:f,pointerWidth:p,cornerRadius:m,events:h,orientation:_||this.getPointerOrientation({x:a,y:o},i,n),key:`${this.id}-tooltip-${d}`,width:n.width,height:n.height,style:r,center:i})}},{key:`renderTooltip`,value:function(e){var t=$r(e.active,e),n=e.renderInPortal;if(!t)return n?V.createElement(ar,null):null;var r=this.getEvaluatedProps(e),i=r.flyoutComponent,a=r.labelComponent,o=r.groupComponent,s=this.getCalculatedValues(r),c=[V.cloneElement(i,this.getFlyoutProps(r,s)),V.cloneElement(a,this.getLabelProps(r,s))],l=V.cloneElement(o,{role:`presentation`,transform:s.transform},c);return n?V.createElement(ar,null,l):l}},{key:`render`,value:function(){var e=Sr(this.props,ose,`tooltip`);return this.renderTooltip(e)}}]),n}(V.Component);iS.displayName=`VictoryTooltip`,iS.role=`tooltip`,iS.defaultProps={active:!1,renderInPortal:!0,labelComponent:V.createElement(Yn,null),flyoutComponent:V.createElement(Koe,null),groupComponent:V.createElement(`g`,null)},iS.defaultEvents=function(e){var t=e.activateData?[{target:`labels`,mutation:function(){return{active:!0}}},{target:`data`,mutation:function(){return{active:!0}}}]:[{target:`labels`,mutation:function(){return{active:!0}}}],n=e.activateData?[{target:`labels`,mutation:function(){return{active:void 0}}},{target:`data`,mutation:function(){return{active:void 0}}}]:[{target:`labels`,mutation:function(){return{active:void 0}}}];return[{target:`data`,eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var sse=n(((e,t)=>{var n=vi(),r=yi(),i=`[object RegExp]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),cse=n(((e,t)=>{var n=sse(),r=pi(),i=hi(),a=i&&i.isRegExp;t.exports=a?r(a):n})),lse=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.Delaunator=r())})(e,function(){var e=2**-52,t=new Uint32Array(512),n=function(e){var t=e.length>>1;if(t>0&&typeof e[0]!=`number`)throw Error(`Expected coords to contain numbers.`);this.coords=e;var n=Math.max(2*t-5,0);this._triangles=new Uint32Array(n*3),this._halfedges=new Int32Array(n*3),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()};n.from=function(e,t,r){t===void 0&&(t=f),r===void 0&&(r=p);for(var i=e.length,a=new Float64Array(i*2),o=0;o<i;o++){var s=e[o];a[2*o]=t(s),a[2*o+1]=r(s)}return new n(a)},n.prototype.update=function(){for(var t=this,n=t.coords,r=t._hullPrev,a=t._hullNext,
2665s=t._hullTri,d=t._hullHash,f=n.length>>1,p=1/0,m=1/0,h=-1/0,g=-1/0,_=0;_<f;_++){var v=n[2*_],y=n[2*_+1];v<p&&(p=v),y<m&&(m=y),v>h&&(h=v),y>g&&(g=y),this._ids[_]=_}for(var b=(p+h)/2,x=(m+g)/2,S=1/0,C,ee,w,T=0;T<f;T++){var E=i(b,x,n[2*T],n[2*T+1]);E<S&&(C=T,S=E)}var D=n[2*C],O=n[2*C+1];S=1/0;for(var te=0;te<f;te++)if(te!==C){var ne=i(D,O,n[2*te],n[2*te+1]);ne<S&&ne>0&&(ee=te,S=ne)}for(var re=n[2*ee],ie=n[2*ee+1],ae=1/0,k=0;k<f;k++)if(!(k===C||k===ee)){var A=c(D,O,re,ie,n[2*k],n[2*k+1]);A<ae&&(w=k,ae=A)}var oe=n[2*w],se=n[2*w+1];if(ae===1/0){for(var ce=0;ce<f;ce++)this._dists[ce]=n[2*ce]-n[0]||n[2*ce+1]-n[1];u(this._ids,this._dists,0,f-1);for(var le=new Uint32Array(f),ue=0,de=0,j=-1/0;de<f;de++){var fe=this._ids[de];this._dists[fe]>j&&(le[ue++]=fe,j=this._dists[fe])}this.hull=le.subarray(0,ue),this.triangles=new Uint32Array,this.halfedges=new Uint32Array;return}if(o(D,O,re,ie,oe,se)){var pe=ee,me=re,he=ie;ee=w,re=oe,ie=se,w=pe,oe=me,se=he}var ge=l(D,O,re,ie,oe,se);this._cx=ge.x,this._cy=ge.y;for(var _e=0;_e<f;_e++)this._dists[_e]=i(n[2*_e],n[2*_e+1],ge.x,ge.y);u(this._ids,this._dists,0,f-1),this._hullStart=C;var M=3;a[C]=r[w]=ee,a[ee]=r[C]=w,a[w]=r[ee]=C,s[C]=0,s[ee]=1,s[w]=2,d.fill(-1),d[this._hashKey(D,O)]=C,d[this._hashKey(re,ie)]=ee,d[this._hashKey(oe,se)]=w,this.trianglesLen=0,this._addTriangle(C,ee,w,-1,-1,-1);for(var ve=0,ye=void 0,be=void 0;ve<this._ids.length;ve++){var xe=this._ids[ve],Se=n[2*xe],Ce=n[2*xe+1];if(!(ve>0&&Math.abs(Se-ye)<=e&&Math.abs(Ce-be)<=e)&&(ye=Se,be=Ce,!(xe===C||xe===ee||xe===w))){for(var we=0,Te=0,Ee=this._hashKey(Se,Ce);Te<this._hashSize&&(we=d[(Ee+Te)%this._hashSize],!(we!==-1&&we!==a[we]));Te++);we=r[we];for(var De=we,Oe=void 0;Oe=a[De],!o(Se,Ce,n[2*De],n[2*De+1],n[2*Oe],n[2*Oe+1]);)if(De=Oe,De===we){De=-1;break}if(De!==-1){var N=this._addTriangle(De,xe,a[De],-1,-1,s[De]);s[xe]=this._legalize(N+2),s[De]=N,M++;for(var ke=a[De];Oe=a[ke],o(Se,Ce,n[2*ke],n[2*ke+1],n[2*Oe],n[2*Oe+1]);)N=this._addTriangle(ke,xe,Oe,s[xe],-1,s[ke]),s[xe]=this._legalize(N+2),a[ke]=ke,M--,ke=Oe;if(De===we)for(;Oe=r[De],o(Se,Ce,n[2*Oe],n[2*Oe+1],n[2*De],n[2*De+1]);)N=this._addTriangle(Oe,xe,De,-1,s[De],s[Oe]),this._legalize(N+2),s[Oe]=N,a[De]=De,M--,De=Oe;this._hullStart=r[xe]=De,a[De]=r[ke]=xe,a[xe]=ke,d[this._hashKey(Se,Ce)]=xe,d[this._hashKey(n[2*De],n[2*De+1])]=De}}}this.hull=new Uint32Array(M);for(var Ae=0,P=this._hullStart;Ae<M;Ae++)this.hull[Ae]=P,P=a[P];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},n.prototype._hashKey=function(e,t){return Math.floor(r(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize},n.prototype._legalize=function(e){for(var n=this,r=n._triangles,i=n._halfedges,a=n.coords,o=0,c=0;;){var l=i[e],u=e-e%3;if(c=u+(e+2)%3,l===-1){if(o===0)break;e=t[--o];continue}var d=l-l%3,f=u+(e+1)%3,p=d+(l+2)%3,m=r[c],h=r[e],g=r[f],_=r[p];if(s(a[2*m],a[2*m+1],a[2*h],a[2*h+1],a[2*g],a[2*g+1],a[2*_],a[2*_+1])){r[e]=_,r[l]=m;var v=i[p];if(v===-1){var y=this._hullStart;do{if(this._hullTri[y]===p){this._hullTri[y]=e;break}y=this._hullPrev[y]}while(y!==this._hullStart)}this._link(e,v),this._link(l,i[c]),this._link(c,p);var b=d+(l+1)%3;o<t.length&&(t[o++]=b)}else{if(o===0)break;e=t[--o]}}return c},n.prototype._link=function(e,t){this._halfedges[e]=t,t!==-1&&(this._halfedges[t]=e)},n.prototype._addTriangle=function(e,t,n,r,i,a){var o=this.trianglesLen;return this._triangles[o]=e,this._triangles[o+1]=t,this._triangles[o+2]=n,this._link(o,r),this._link(o+1,i),this._link(o+2,a),this.trianglesLen+=3,o};function r(e,t){var n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function i(e,t,n,r){var i=e-n,a=t-r;return i*i+a*a}function a(e,t,n,r,i,a){var o=(r-t)*(i-e),s=(n-e)*(a-t);return Math.abs(o-s)>=33306690738754716e-32*Math.abs(o+s)?o-s:0}function o(e,t,n,r,i,o){return(a(i,o,e,t,n,r)||a(e,t,n,r,i,o)||a(n,r,i,o,e,t))<0}function s(e,t,n,r,i,a,o,s){var c=e-o,l=t-s,u=n-o,d=r-s,f=i-o,p=a-s,m=c*c+l*l,h=u*u+d*d,g=f*f+p*p;return c*(d*g-h*p)-l*(u*g-h*f)+m*(u*p-d*f)<0}function c(e,t,n,r,i,a){var o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c),p=(l*u-s*d)*f,m=(o*d-c*u)*f;return p*p+m*m}function l(e,t,n,r,i,a){var o=n-e,s=r-t,c=i-e,l=a-t,u=o*o+s*s,d=c*c+l*l,f=.5/(o*l-s*c);return{x:e+(l*u-s*d)*f,y:t+(o*d-c*u)*f}}function u(e,t,n,r){if(r-n<=20)for(var i=n+1;i<=r;i++){for(var a=e[i],o=t[a],s=i-1;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{var c=n+r>>1,l=n+1,f=r;d(e,c,l),t[e[n]]>t[e[r]]&&d(e,n,r),t[e[l]]>t[e[r]]&&d(e,l,r),t[e[n]]>t[e[l]]&&d(e,n,l);for(var p=e[l],m=t[p];;){do l++;while(t[e[l]]<m);do f--;while(t[e[f]]>m);
2665if(f<l)break;d(e,l,f)}e[n+1]=e[f],e[f]=p,r-l+1>=f-n?(u(e,t,l,r),u(e,t,n,f-1)):(u(e,t,n,f-1),u(e,t,l,r))}}function d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function f(e){return e[0]}function p(e){return e[1]}return n})})),use=n((e=>{e.__esModule=!0,e.default=void 0;var t=n(lse());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return e[0]}function i(e){return e[1]}function a(e){for(var t=e.triangles,n=e.coords,r=0;r<t.length;r+=3){var i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function o(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}function s(e,t,n,r){for(var i=e.length,a=new Float64Array(i*2),o=0;o<i;++o){var s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}var c=function(){function e(e){var n=new t.default(e);this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=n.coords,this._init(n)}var n=e.prototype;return n._init=function(e){var n=e,r=this.points;if(n.hull&&n.hull.length>2&&a(n)){this.collinear=Int32Array.from({length:r.length/2},function(e,t){return t}).sort(function(e,t){return r[2*e]-r[2*t]||r[2*e+1]-r[2*t+1]});for(var i=this.collinear[0],s=this.collinear[this.collinear.length-1],c=[r[2*i],r[2*i+1],r[2*s],r[2*s+1]],l=1e-8*Math.sqrt((c[3]-c[1])**2+(c[2]-c[0])**2),u=0,d=r.length/2;u<d;++u){var f=o(r[2*u],r[2*u+1],l);r[2*u]=f[0],r[2*u+1]=f[1]}e=new t.default(r)}for(var p=this.halfedges=e.halfedges,m=this.hull=e.hull,h=this.triangles=e.triangles,g=this.inedges.fill(-1),_=this._hullIndex.fill(-1),v=0,y=p.length;v<y;++v){var b=h[v%3==2?v-2:v+1];(p[v]===-1||g[b]===-1)&&(g[b]=v)}for(var x=0,S=m.length;x<S;++x)_[m[x]]=x;m.length<=2&&m.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=m[0],this.triangles[1]=m[1],this.triangles[2]=m[1],g[m[0]]=1,m.length===2&&(g[m[1]]=0))},n.neighbors=function(e){var t=[],n=this.inedges,r=this.hull,i=this._hullIndex,a=this.halfedges,o=this.triangles,s=n[e];if(s===-1)return t;var c=s,l=-1;do{if(l=o[c],t.push(l),c=c%3==2?c-2:c+1,o[c]!==e)break;if(c=a[c],c===-1){var u=r[(i[e]+1)%r.length];u!==l&&t.push(u);break}}while(c!==s);return t},n.find=function(e,t,n){if(n===void 0&&(n=0),(e=+e,e!==e)||(t=+t,t!==t))return-1;for(var r=n,i;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i},n._step=function(e,t,n){var r=this.inedges,i=this.points;if(r[e]===-1||!i.length)return(e+1)%(i.length>>1);for(var a=e,o=(t-i[e*2])**2+(n-i[e*2+1])**2,s=this.neighbors(e),c=Array.isArray(s),l=0,s=c?s:s[Symbol.iterator]();;){var u;if(c){if(l>=s.length)break;u=s[l++]}else{if(l=s.next(),l.done)break;u=l.value}var d=u,f=(t-i[d*2])**2+(n-i[d*2+1])**2;f<o&&(o=f,a=d)}return a},e}();e.default=c,c.from=function(e,t,n,a){return t===void 0&&(t=r),n===void 0&&(n=i),new c(s(e,t,n,a))}})),dse=e(yx()),fse=e(cse()),pse=e(use());function aS(e){return _se(e)||gse(e)||hse(e)||mse()}function mse(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2666In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hse(e,t){if(e){if(typeof e==`string`)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}function gse(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _se(e){if(Array.isArray(e))return oS(e)}function oS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vse(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function sS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yse(e,t,n){return t&&sS(e.prototype,t),n&&sS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}var bse=32,cS=new(function(){function e(){var t=this;vse(this,e),this.onMouseLeave=function(e,n){var r,i=n.activePoints||[];t.onDeactivated(n,i);var a=i.length?i.map(function(e){return t.getInactiveMutations(n,e)}):[];return(r=t.getParentMutation([])).concat.apply(r,aS(a))},this.handleMouseMove=function(e,n){var r=n.activePoints||[],i=n.parentSVG||Nb(e),a=bie(e,i);if(!t.withinBounds(n,a)){var o;t.onDeactivated(n,r);var s=r.length?r.map(function(e){return t.getInactiveMutations(n,e)}):[];return(o=t.getParentMutation([],a,i)).concat.apply(o,aS(s))}var c=t.getVoronoiPoints(n,a),l=c.points,u=l===void 0?[]:l,d=c.index,f=t.getParentMutation(u,a,i,d);if(r.length&&(0,bx.default)(u,r))return f;t.onActivated(n,u),t.onDeactivated(n,r);var p=u.length?u.map(function(e){return t.getActiveMutations(n,e)}):[],m=r.length?r.map(function(e){return t.getInactiveMutations(n,e)}):[];return f.concat.apply(f,aS(m).concat(aS(p)))},this.onMouseMove=(0,dse.default)(this.handleMouseMove,bse,{leading:!0,trailing:!1})}return yse(e,[{key:`withinBounds`,value:function(e,t){var n=e.width,r=e.height,i=e.polar,a=e.origin,o=e.scale,s=Er(e,`voronoiPadding`),c=t.x,l=t.y;return i?(c-a.x)**2+(l-a.y)**2<Math.max.apply(Math,aS(o.y.range()))**2:c>=s.left&&c<=n-s.right&&l>=s.top&&l<=r-s.bottom}},{key:`getDatasets`,value:function(e){var t={x:fi(e.domain.x),y:fi(e.domain.y)},n=V.Children.toArray(e.children),r=function(n,r,i){var a=i&&i.type&&i.type.continuous,o=i?i.props&&i.props.style:e.style;return n.map(function(n,i){var s=kr(n),c=s.x,l=s.y,u=s.y0,d=s.x0,f=(Number(c)+Number(d))/2,p=(Number(l)+Number(u))/2;return Object.assign({_voronoiX:e.voronoiDimension===`y`?t.x:f,_voronoiY:e.voronoiDimension===`x`?t.y:p,eventKey:i,childName:r,continuous:a,style:o},n)})};if(e.data)return r(e.data);var i=function(e){var t=zr(e);return Array.isArray(t)&&t.length>0?t:void 0};return si(n,function(t,n){var a=(t.props||{}).name||n,o=e.voronoiBlacklist||[],s=o.filter(function(e){return!!e&&typeof e.valueOf()==`string`}),c=o.filter(fse.default).some(function(e){return e.test(a)});if(!Or(t)||s.includes(a)||c)return null;var l=(t.type&&ai(t.type.getData)?t.type.getData:i)(t.props);return l?r(l,a,t):null},e)}},{key:`findPoints`,value:function(e,t){return e.filter(function(e){return t._voronoiX===e._voronoiX&&t._voronoiY===e._voronoiY})}},{key:`withinRadius`,value:function(e,t,n){if(!e)return!1;if(!n)return!0;var r=t.x,i=t.y;return(r-e[0])**2+(i-e[1])**2<n**2}},{key:`getVoronoiPoints`,value:function(e,t){var n=this.getDatasets(e),r=n.map(function(t){var n=ur(e,t);return[n.x,n.y]}),i=pse.default.from(r).find(t.x,t.y);return{points:this.withinRadius(r[i],t,e.radius)?this.findPoints(n,n[i]):[],index:i}}},{key:`getActiveMutations`,value:function(e,t){var n=t.childName,r=t.continuous,i=e.activateData,a=e.activateLabels,o=e.labels;if(!i&&!a)return[];var s=i?[`data`]:[],c=o&&!a?s:s.concat(`labels`);return(0,dx.default)(c)?[]:c.map(function(e){return{childName:n,eventKey:r===!0&&e===`data`?`all`:t.eventKe
2666y,target:e,mutation:function(){return{active:!0}}}})}},{key:`getInactiveMutations`,value:function(e,t){var n=t.childName,r=t.continuous,i=e.activateData,a=e.activateLabels,o=e.labels;if(!i&&!a)return[];var s=i?[`data`]:[],c=o&&!a?s:s.concat(`labels`);return(0,dx.default)(c)?[]:c.map(function(e){return{childName:n,eventKey:r&&e===`data`?`all`:t.eventKey,target:e,mutation:function(){return null}}})}},{key:`getParentMutation`,value:function(e,t,n,r){return[{target:`parent`,eventKey:`parent`,mutation:function(){return{activePoints:e,mousePosition:t,parentSVG:n,vIndex:r}}}]}},{key:`onActivated`,value:function(e,t){ai(e.onActivated)&&e.onActivated(t,e)}},{key:`onDeactivated`,value:function(e,t){ai(e.onDeactivated)&&e.onDeactivated(t,e)}}]),e}()),xse=e(xi()),Sse=[`childName`,`eventKey`,`style`,`continuous`];function Cse(e){return Dse(e)||Ese(e)||Tse(e)||wse()}function wse(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2667In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tse(e,t){if(e){if(typeof e==`string`)return lS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lS(e,t)}}function Ese(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Dse(e){if(Array.isArray(e))return lS(e)}function lS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ose(e,t){if(e==null)return{};var n=kse(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kse(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function uS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uS(Object(n),!0).forEach(function(t){Ase(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ase(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jse(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function fS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mse(e,t,n){return t&&fS(e.prototype,t),n&&fS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Nse(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&pS(e,t)}function pS(e,t){return pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pS(e,t)}function Pse(e){var t=Lse();return function(){var n=mS(e),r;if(t){var i=mS(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fse(this,r)}}function Fse(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ise(e)}function Ise(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Lse(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
2667function mS(e){return mS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mS(e)}function Rse(e){var t;return t=function(e){Nse(n,e);var t=Pse(n);function n(){return jse(this,n),t.apply(this,arguments)}return Mse(n,[{key:`getDimension`,value:function(e){var t=e.horizontal,n=e.voronoiDimension;return!t||!n?n:n===`x`?`y`:`x`}},{key:`getPoint`,value:function(e){return(0,xse.default)(e,[`_x`,`_x1`,`_x0`,`_y`,`_y1`,`_y0`])}},{key:`getLabelPosition`,value:function(e,t,n){var r=e.mousePosition,i=e.mouseFollowTooltips,a=this.getDimension(e),o=ur(e,this.getPoint(n[0])),s=i?r:void 0;if(!a||n.length<2)return dS(dS({},o),{},{center:(0,Ey.default)({},t.center,s)});var c=a===`y`?r.x:o.x,l=a===`x`?r.y:o.y;return s=i?r:{x:c,y:l},{x:c,y:l,center:(0,Ey.default)({},t.center,s)}}},{key:`getStyle`,value:function(e,t,n){var r=e.labels,i=e.labelComponent,a=e.theme,o=i.props||{},s=a&&a.voronoi&&a.voronoi.style?a.voronoi.style:{},c=n===`flyout`?o.flyoutStyle:o.style;return t.reduce(function(e,t,i){var a=(0,Ey.default)({},o,{datum:t,active:!0}),l=ai(r)?r(a):void 0,u=l===void 0?[]:`${l}`.split(` 2668`),d=t.style&&t.style[n]||{},f=Array.isArray(c)?c[i]:c,p=wr((0,Ey.default)({},f,d,s[n]),a),m=u.length?u.map(function(){return p}):[p];return e.concat(m)},[])}},{key:`getDefaultLabelProps`,value:function(e,t){var n=e.voronoiDimension,r=e.horizontal,i=e.mouseFollowTooltips,a=this.getPoint(t[0]),o=n&&t.length>1,s=a._y1===void 0?a._y:a._y1;return{orientation:i?void 0:r?s<0?`left`:`right`:s<0?`bottom`:`top`,pointerLength:o?0:void 0,constrainToVisibleArea:o||i?!0:void 0}}},{key:`getLabelProps`,value:function(e,t){var n=e.labels,r=e.scale,i=e.labelComponent,a=e.theme,o=e.width,s=e.height,c=i.props||{},l=t.reduce(function(e,t){var r=(0,Ey.default)({},c,{datum:t,active:!0}),i=ai(n)?n(r):null;return i==null?e:e.concat(`${i}`.split(` 2669`))},[]),u=t[0],d=u.childName,f=u.eventKey;u.style,u.continuous;var p=Ose(u,Sse),m=e.name===d?d:`${e.name}-${d}`,h=(0,Ey.default)({key:`${m}-${f}-voronoi-tooltip`,id:`${m}-${f}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:p,scale:r,theme:a},c,{text:l,width:o,height:s,style:this.getStyle(e,t,`labels`),flyoutStyle:this.getStyle(e,t,`flyout`)[0]},this.getDefaultLabelProps(e,t));return(0,Ey.default)({},this.getLabelPosition(e,h,t),h)}},{key:`getTooltip`,value:function(e){var t=e.labels,n=e.activePoints,r=e.labelComponent;if(!t)return null;if(Array.isArray(n)&&n.length){var i=this.getLabelProps(e,n),a=i.text;
2669return(Array.isArray(a)?a.filter(Boolean).length:a)?V.cloneElement(r,i):null}return null}},{key:`getChildren`,value:function(e){return[].concat(Cse(V.Children.toArray(e.children)),[this.getTooltip(e)])}}]),n}(e),t.displayName=`VictoryVoronoiContainer`,t.defaultProps=dS(dS({},ti.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:V.createElement(iS,null),voronoiPadding:5}),t.defaultEvents=function(e){return[{target:`parent`,eventHandlers:{onMouseLeave:function(t,n){return e.disable?{}:cS.onMouseLeave(t,n)},onTouchCancel:function(t,n){return e.disable?{}:cS.onMouseLeave(t,n)},onMouseMove:function(t,n){return e.disable?{}:cS.onMouseMove(t,n)},onTouchMove:function(t,n){return e.disable?{}:cS.onMouseMove(t,n)}}},{target:`data`,eventHandlers:e.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},t}var zse=Rse(ti);function Bse(e,t){return Wse(e)||Use(e,t)||Hse(e,t)||Vse()}function Vse(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 2670In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hse(e,t){if(e){if(typeof e==`string`)return hS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hS(e,t)}}function hS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Use(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Wse(e){if(Array.isArray(e))return e}function gS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gS(Object(n),!0).forEach(function(t){Gse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vS={width:450,height:300,padding:50};function Kse(e,t){var n=e.fillInMissingData,r=t.reduce(function(e,t){return t.forEach(function(t){e[t._x instanceof Date?t._x.getTime():t._x]=!0}),e},{}),i=(0,nb.default)(Object.keys(r).map(function(e){return Number(e)}));return t.map(function(e){var t=0,r=e[0]&&e[0]._x instanceof Date;return i.map(function(i,a){var o=Number(i),s=e[a-t];if(s){if((r?s._x.getTime():s._x)===o)return s;t++;var c=n?0:null;return o=r?new Date(o):o,{x:o,y:c,_x:o,_y:c}}var l=n?0:null;return o=r?new Date(o):o,{x:o,y:l,_x:o,_y:l}})})}function qse(e,t,n){if(e.y0)return e.y0;var r=e._y,i=e._group,a=n[0].map(function(e){return e.y0}),o=n.slice(0,t).reduce(function(t,n){return t.concat(n.filter(function(t){return e._x instanceof Date?t._x.getTime()===e._x.getTime():t._x===e._x}).map(function(e){return e._y||0}))},[]),s=o.length&&o.reduce(function(e,t){return r<0&&t<0||r>=0&&t>=0?Number(t)+e:e},a[i]||0);return o.some(function(e){return e instanceof Date})?new Date(s):s}function Jse(e,t,n){var r=e.xOffset||0;return t[n].map(function(e){var i=qse(e,n,t)||0;return Object.assign({},e,{_y0:e._y instanceof Date?i?new Date(i):e._y:i,_y1:e._y===null?null:e._y instanceof Date?new Date(Number(e._y)+Number(i)):e._y+i,_x1:e._x===null?null:e._x instanceof Date?new Date(Number(e._x)+Number(r)):e._x+r})})}function Yse(e,t){var n=Kse(e,Mie(e,t).map(function(e){return e.filter(function(e){return e._x!==null&&e._y!==null})}));return n.map(function(t,r){return Jse(e,n,r)})}function yS(e,t){var n=t||V.Children.toArray(e.children),r=`stack`,i=Sr(e,vS,r),a=Iie(i.theme,i.style,r),o=i.categories||Kb(i,n),s=i.datasets||Yse(i,n),c=n.map(function(e,t){return V.cloneElement(e,{data:s[t]})}),l={x:Vb(Object.assign({},i,{categories:o}),`x`,c),y:Vb(Object.assign({},i,{categories:o}),`y`,c)}
2670,u=i.range||{x:Nr(i,`x`),y:Nr(i,`y`)},d={x:Mr(i,`x`)||Hb(i,`x`),y:Mr(i,`y`)||Hb(i,`y`)},f={x:d.x.domain(l.x).range(i.horizontal?u.y:u.x),y:d.y.domain(l.y).range(i.horizontal?u.x:u.y)},p=i.colorScale;return{datasets:s,categories:o,range:u,domain:l,horizontal:i.horizontal,scale:f,style:a,colorScale:p,role:r}}var Xse=function(e){var t=e.children;return e.children=V.Children.toArray(t).map(function(e){var t=e;return _S(_S({},t),{},{props:li(t.props,[`sharedEvents`])})}),e};function Zse(e){var t=Xse(e),n=Bse(V.useState(t),2),r=n[0],i=n[1];return V.useEffect(function(){(0,bx.default)(t,r)||i(t)},[r,i,t]),V.useMemo(function(){return yS(r,r.children)},[r])}function Qse(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function $se(e,t){var n=t.categories,r=t.domain,i=t.range,a=t.scale,o=t.horizontal;return{height:e.height,width:e.width,padding:Er(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:a,horizontal:o}}function ece(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!==`group`&&n!==`stack`))return e.theme?r||e.theme.props.colorScale:r}function bS(e,t,n){var r=Sr(e,vS,`stack`),i=t||V.Children.toArray(r.children),a=n||yS(r,i),o=a.datasets,s=$se(r,a),c=r.name||`stack`;return i.map(function(e,t){var n=e.type&&e.type.role,i=o[t],l=Lie(e,t,a),u=r.labels?Qse(r,o,t):e.props.labels,d=e.props.name||`${c}-${n}-${t}`;return V.cloneElement(e,Object.assign({key:`${d}-key-${t}`,labels:u,name:d,domainPadding:e.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||e.props.labelComponent,style:l,colorScale:ece(r,e),data:i,polar:r.polar},s))})}function xS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xS(Object(n),!0).forEach(function(t){tce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CS={width:450,height:300,padding:50},wS={containerComponent:V.createElement(ti,null),groupComponent:V.createElement(`g`,null),standalone:!0,theme:Ir.grayscale,fillInMissingData:!0},TS=function(e){var t=DS.role,n=V.useMemo(function(){return SS(SS({},wS),e)},[e]),r=Tb(),i=r.setAnimationState,a=r.getAnimationProps,o=r.getProps,s=o(n),c=Sr(s,CS,t),l=c.eventKey,u=c.containerComponent,d=c.standalone,f=c.groupComponent,p=c.externalEventMutations,m=c.width,h=c.height,g=c.theme,_=c.polar,v=c.horizontal,y=c.name,b=V.Children.toArray(c.children),x=Zse(c),S=x.domain,C=x.scale,ee=x.style,w=V.useMemo(function(){return bS(s,b,x).map(function(e,t){var n=Object.assign({animate:a(s,e,t)},e.props);return V.cloneElement(e,n)}).reverse()},[s,b,x,a]),T=V.useMemo(function(){return d?{domain:S,scale:C,width:m,height:h,standalone:d,theme:g,style:ee.parent,horizontal:v,polar:_,name:y}:{}},[d,S,C,m,h,g,ee,v,_,y]),E=V.useMemo(function(){return Zr(n)},[n]),D=V.useMemo(function(){if(d){var e=(0,Ey.default)({},u.props,T,E);return V.cloneElement(u,e)}return V.cloneElement(f,E)},[f,d,u,T,E]),O=V.useMemo(function(){return Ub(s)},[s]),te=xb(n);return V.useEffect(function(){return function(){n.animate&&i(te,n)}},[i,te,n]),(0,dx.default)(O)?V.cloneElement(D,D.props,w):V.createElement(Dx,{container:D,eventKey:l,events:O,externalEventMutations:p},w)},ES={role:`stack`,expectedComponents:[`groupComponent`,`containerComponent`,`labelComponent`],getChildren:bS},DS=Object.assign(V.memo(TS,bx.default),ES);DS.displayName=`VictoryStack`;var OS,kS,AS=N.div` 2671 ${(0,X.flexCenterColumn)()} 2672 margin: ${e=>e.margin}; 2673 height: ${e=>e.width}; 2674 width: ${e=>e.width}; 2675`,jS=N.div` 2676 ${(0,X.absoluteCenter)()} 2677 ${(0,X.flexCenterColumn)()} 2678`,MS=N.div` 2679 position: relative; 2680 height: ${e=>e.width}; 2681 width: ${e=>e.width}; 2682`,NS=M(j(OS=(kS=class extends V.Component{render(){return(0,K.jsxs)(AS,{width:(0,W.pixify)(this.props.width),margin:this.props.margin,children:[this.props.data&&(0,K.jsxs)(MS,{width:(0,W.pixify)(this.props.width),children:[(0,K.jsxs)(jS,{children:[(0,W.isPresent)(this.props.label)&&(0,K.jsx)(R,{heading:`3`,children:this.props.label}),(0,W.isPresent)(this.props.count)&&(0,K.jsx)(R,{bold:!0,fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,children:this.props.count}),(0,W.isPresent)(this.props.subText)&&(0,K.jsx)(R,{bold:!0,fontSize:`12px`,children:this.props.subText})]}),(0,K.jsx)(ei,{padAngle:2,innerRadius:this.props.innerRadius,cornerRadius:5,padding:0,width:this.props.width,height:this.props.width,labels:()=>null,colorScale:this.props.colors||q.Constants.SEEDLANG_CHART_COLORS,data:this.props.data})]}),this.props.showLegend&&(0,K.jsx)(ki,{data:this.props.data,colors:this.props.colors||q.Constants.SEEDLANG_CHART_COLORS})]})}},kS.defaultProps={width:160,margin:`0 0 5px 0`,innerRadius:50,fontSize:`40px`,lineHeight:`44px`},kS))||OS),PS,FS=M(j(PS=class extends V.Component{render(){return(0,K.jsx)(NS,{hideSlicesLabels:!0,hideTooltip:!0,width:160,colors:[q.Theme.green,`#676767`],data:[{y:this.props.won},{y:this.props.lost}],label:(0,K.jsx)(yy,{won:this.props.won,lost:this.props.lost})})}})||PS);me();var IS,LS=N.div` 2683 ${(0,X.flexCenterColumn)()} 2684`,RS=M(j(IS=class extends V.Component{render(){return(0,K.jsxs)(LS,{"data-tip":!0,"data-for":`past-due-reviews`,children:[this.props.won===0&&this.props.lost===0&&(0,K.jsx)(dre,{}),(this.props.won>0||this.props.lost>0)&&(0,K.jsx)(FS,{won:this.props.won,lost:this.props.lost}),(0,K.jsxs)(he,{place:`top`,type:`dark`,id:`past-due-reviews`,class:`custom-tooltip`,children:[(0,K.jsx)(`div`,{children:`${this.props.won} Games Won`}),(0,K.jsx)(`div`,{children:`${this.props.lost} Games Lost`}),(0,K.jsx)(`div`,{children:`${this.props.tied} Games Tied`})]})]})}})||IS),zS,BS,VS=N.div` 2685 display: flex; 2686 margin-right: 5px; 2687`,HS=N.div`
2688 width: 20px; 2689 height: 20px; 2690 position: relative; 2691`,US=N.div` 2692 color: white; 2693 position: absolute; 2694 font-size: 12px; 2695 margin: auto; 2696 top: 0; 2697 bottom: 0; 2698 left: 0; 2699 right: 0; 2700 font-weight: bold; 2701 background: rgba(0, 0, 0, 0.2); 2702 border-radius: 50%; 2703 height: 18px; 2704 width: 18px; 2705 display: inline-flex; 2706 align-items: center; 2707 justify-content: center; 2708`,WS=j(zS=(BS=class extends V.Component{render(){return(0,K.jsx)(VS,{children:(0,K.jsxs)(HS,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:this.props.languageId}),(0,K.jsx)(US,{children:!this.props.hideAbbreviation&&this.props.level.abbreviation})]})})}},BS.defaultProps={languageId:`DE`},BS))||zS,GS,KS=N.div` 2709 display: flex; 2710 flex-direction: column; 2711`,qS=N.div` 2712 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); 2713 border-bottom-left-radius: ${e=>e.borderRadius}; 2714 border-bottom-right-radius: ${e=>e.borderRadius}; 2715`,JS=N.section` 2716 background: #DDD; 2717 flex-direction: column; 2718 padding: 20px; 2719`,YS=N.div` 2720 display: flex; 2721 align-items: center; 2722 justify-content: center; 2723 flex-direction: column; 2724 flex: 1; 2725 font-size: 16px; 2726 line-height: 20px; 2727 margin-bottom: 10px; 2728 text-align: center; 2729`,XS=N.div` 2730 font-size: 20px; 2731 margin-bottom: 5px; 2732 flex: 1; 2733 display: flex; 2734 flex-direction: column; 2735 align-items: center; 2736`,ZS=N.div` 2737 display: flex; 2738 align-items: center; 2739 justify-content: center; 2740 font-weight: bold; 2741`,QS=N.div` 2742 margin-right: 5px; 2743`,$S=N.div` 2744 font-size: 14px; 2745`,eC=N.div` 2746 margin-bottom: 20px; 2747 font-size: 15px; 2748 line-height: 18px; 2749 background: white; 2750 padding: 10px; 2751 border-radius: 10px; 2752`,tC=N.div` 2753 background: white; 2754 display: flex; 2755 flex-direction: column; 2756 align-items: center; 2757 padding: ${e=>e.padding}; 2758 border-top: 1px solid white; 2759`,nC=N.div` 2760 flex: 1; 2761 width: 100%; 2762 padding-bottom: 20px; 2763 padding: ${e=>e.padding}; 2764`,rC=N.div` 2765 text-align: center; 2766 font-weight: 700; 2767 background: #ddd; 2768 width: 100%; 2769 margin-bottom: 20px; 2770 padding: 10px; 2771`,iC=N.div` 2772 display: flex; 2773 justify-content: center; 2774`,aC=N.div` 2775 display: block; 2776 width: 100%; 2777 text-align: center; 2778 font-size: 13px; 2779 line-height: 18px; 2780 font-weight: bold; 2781 color: #000; 2782 margin-top: 20px; 2783 text-transform: uppercase; 2784`,oC=N.div` 2785 display: flex; 2786 align-items: center; 2787 justify-content: center; 2788 flex-direction: column; 2789`,sC=j(GS=class extends V.Component{constructor(...e){super(...e),this.gotoSettings=()=>{H.RouteStore.routeToNamed(`settings.user_profile`)}}render(){return(0,W.isPresent)(this.props.user)?(0,K.jsx)(KS,{children:(0,K.jsxs)(qS,{borderRadius:U.AppUI.layout.isMobile?`0`:`5px`,children:[(0,K.jsxs)(JS,{children:[(0,K.jsxs)(YS,{children:[(0,K.jsx)(Mg,{width:90,margin:`0 0 10px 0`,anonymousBorder:`3px solid white`,user:this.props.user}),(0,W.isPresent)(this.props.user)&&(0,W.isPresent)(this.props.user.name)&&(0,K.jsxs)(XS,{onClick:this.props.onClickEditUser,children:[(0,K.jsxs)(ZS,{children:[(0,K.jsx)(QS,{children:this.props.user.name}),(0,G.sortBy)(this.props.user.targetLanguages.filter(e=>q.Constants.LANGUAGE_ABBREVIATIONS.includes(e.languageId)),e=>e.languageId).map(e=>e.level&&(0,K.jsx)(WS,{level:e.level,languageId:e.languageId},`${e.languageId}-user-level`))]}),(0,K.jsx)($S,{children:this.props.user.location}),U.AppUI.user.admin&&(0,K.jsx)(F,{to:{name:`builder.users.edit`,params:{userId:this.props.user.id}},style:{fontSize:12},children:`Go to Admin Page`})]}),this.props.userIsMe&&(0,W.isBlank)(this.props.user.introduction)&&(0,K.jsx)(I,{background:`#FFF`,color:`#000`,fontSize:`14px`,onClick:this.gotoSettings,children:`Edit Profile`})]}),(0,W.isPresent)(this.props.user.introduction)&&(0,K.jsx)(eC,{onClick:this.props.onClickEditUser,children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:(0,W.formatComment)(this.props.user.introduction)}})})]}),U.AppUI.siteIsDefault&&this.props.user?.currentLeague&&(0,K.jsx)(tC,{children:(0,K.jsxs)(nC,{children:[(0,K.jsx)(rC,{children:`League`}),(0,K.jsxs)(oC,{children:[(0,K.jsx)(xg,{showRank:!0,leagueLevelPosition:this.props.user?.currentLeague?.leagueLevel?.position,rank:this.props.user?.currentUserLeague?.rank||0,promotionStatus:this.props.user?.currentUserLeague?.promotionStatus,width:`90px`,borderColor:`#FFF`}),(0,K.jsx)(aC,{children:this.props.user?.currentLeague?.leagueLevel?.name})]})]})}),U.AppUI.siteIsDefault&&(0,K.jsx)(tC,{padding:`0 0 20px 0`,children:(0,K.jsxs)(nC,{children:[(0,K.jsx)(rC,{children:`Level`}),(0,K.jsx)(iC,{children:(0,W.isPresent)(U.AppUI.user.targetLanguages)&&(0,G.sortBy)(this.props.user.targetLanguages.filter(e=>q.Constants.LANGUAGE_ABBREVIATIONS.includes(e.languageId)&&(e.xp>0||e.languageId===U.AppUI.targetLanguageId)),e=>-e.xp).map(e=>(0,K.jsx)(sre,{padding:`10px 20px 0 20px`,targetLanguage:e},`${e.languageId}-level-badge`))})]})}
2789),U.AppUI.siteIsDefault&&(0,K.jsxs)(tC,{padding:`0 0 40px 0`,children:[(0,K.jsx)(nC,{children:(0,K.jsx)(rC,{children:`XP Progress`})}),(0,K.jsx)(o_,{store:U.AppUI.dailyXpCountStore,dailyXpGoal:this.props.user?.dailyXpGoal,userId:this.props.user?.id,todaysDate:this.props.user?.todaysDate,hideStreakExtendFooter:!0})]}),(!this.props.user.hideTriviaRecord||U.AppUI.user.admin)&&(this.props.user.triviaGamesWon>0||this.props.user.triviaGamesLost>0)&&U.AppUI.siteIsDefault&&(0,K.jsxs)(tC,{padding:`0 0 40px 0`,children:[(0,K.jsx)(nC,{children:(0,K.jsx)(rC,{children:`German Trivia Record`})}),(0,K.jsx)(RS,{won:this.props.user.triviaGamesWon,lost:this.props.user.triviaGamesLost,tied:this.props.user.triviaGamesTied})]}),!this.props.hideBadges&&(0,K.jsx)(tC,{id:`badges`,children:(0,K.jsxs)(nC,{children:[(0,K.jsx)(rC,{children:`Badges`}),(0,K.jsx)(sy,{margin:`10px`,hideLevel0:!0,alignment:`vertical`,width:`100px`,wrapperWidth:`120px`,wrapperheight:`130px`,user:this.props.user,fontSize:`14px`,textMarginTop:`5px`,bottom:`5px`,right:`3px`})]})})]})}):(0,K.jsx)(`span`,{})}})||GS;D();var cC,lC,uC,dC,fC;function pC(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function mC(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hC=N.div` 2790 width: 100%; 2791 overflow: hidden; 2792 flex: 1; 2793 height: 20px; 2794 display: flex; 2795 align-items: ${e=>e.alignItems}; 2796 justify-content: center; 2797`,gC=N.div` 2798 cursor: pointer; 2799 width: 100%; 2800 position: relative; 2801 transition: all 0.2s ease; 2802 height: 8px; 2803 border-radius: 10px; 2804 background: #CCC; 2805`,_C=N.div` 2806 background: ${e=>e.background}; 2807 width: ${e=>e.width}; 2808 height: 100%; 2809 position: absolute; 2810 left: 0; 2811 top: 0; 2812 border-top-left-radius: 10px; 2813 border-bottom-left-radius: 10px; 2814 pointer-events: none; 2815`,vC=j(cC=(lC=(fC=class extends V.Component{constructor(e){super(e),pC(this,`hoverPercentage`,uC,this),pC(this,`mousedOver`,dC,this),this.getHoverPercentage=e=>{this.hoverPercentage=(e.pageX-this.progressBarRef.current.getBoundingClientRect().left)/this.progressBarRef.current.offsetWidth*100},this.onMouseOver=()=>{this.mousedOver=!0,window.addEventListener(`mousemove`,this.getHoverPercentage,!0)},this.reset=()=>{this.hoverPercentage=0,this.mousedOver=!1,window.removeEventListener(`mousemove`,this.getHoverPercentage,!0)},this.onClick=()=>{this.props.onClick&&this.props.onClick(this.hoverPercentage)},this.progressBarRef=V.createRef()}componentWillUnmount(){this.reset()}progressPosition(){let e;return this.progressBarRef.current&&(e=this.progressBarRef.current.offsetWidth*(this.props.currentTime/this.props.duration)),isNaN(e)||!e?0:e}render(){return(0,K.jsx)(hC,{onMouseOver:this.onMouseOver,onMouseOut:this.reset,onClick:this.onClick,alignItems:this.props.alignItems,children:(0,K.jsx)(`div`,{ref:this.progressBarRef,style:{display:`inline-block`,width:`100%`},children:(0,K.jsxs)(gC,{children:[(0,K.jsx)(_C,{background:q.Theme.blue,width:(0,W.pixify)(this.progressPosition())}),(0,K.jsx)(_C,{background:`#616161`,width:`${this.hoverPercentage}%`})]})})})}},fC.defaultProps={alignItems:`center`},fC),uC=mC(lC.prototype,`hoverPercentage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dC=mC(lC.prototype,`mousedOver`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lC))||cC,yC,bC,xC=N.div` 2816 height: 40px; 2817 display: flex; 2818 flex-flow: row nowrap; 2819 align-items: center; 2820 position: relative; 2821 .spinner { 2822 position: absolute; 2823 top: -10px; 2824 z-index: 9999; 2825 left: 0; 2826 right: 0; 2827 } 2828`,SC=N.div` 2829 display: flex; 2830 flex-flow: row nowrap; 2831 align-items: center; 2832 width: 100%; 2833 height: 40px; 2834`,CC=N.div` 2835 padding: ${e=>e.padding}; 2836 margin-right: 10px; 2837 cursor: pointer; 2838 width: 35px; 2839 height: 35px; 2840 display: flex; 2841 align-items: center; 2842 justify-content: center; 2843 color: #616161; 2844 font-size: 22px; 2845`,wC=N.div` 2846 font-size: 10px; 2847 font-style: italic; 2848 text-align: right; 2849 margin-left: 10px; 2850`,TC=j(yC=(bC=class extends V.Component{constructor(e){super(e),this.props.userInputStore.setupAudioPlayer(document.createElement(`audio`),this.props.url,this.props.duration)}render(){return(0,K.jsx)(xC,{children:(0,K.jsxs)(SC,{children:[(0,K.jsx)(CC,{padding:this.props.userInputStore.playing?null:`0 0 0 3px`,className:(0,Qg.default)(`fa`,{"fa-play":!this.props.userInputStore.playing,"fa-pause":this.props.userInputStore.playing}),onClick:this.props.onTogglePlay}),(0,K.jsx)(vC,{currentTime:this.props.userInputStore.currentTime,duration:this.props.userInputStore.duration,onClick:this.props.userInputStore.seek}),(0,K.jsx)(wC,{children:`${this.props.durationStringWeb}s`})]})})}},bC.propTypes={userInputStore:Z.default.object.isRequired},bC))||yC,EC=(0,Y.AudioPlayerWrapper)(TC),DC,OC=N.div` 2851 overflow: auto; 2852 background: #dadada; 2853 height: ${e=>e.height}; 2854 width: ${e=>e.width}; 2855 border-top-right-radius: ${e=>e.borderTopRadius}; 2856 border-top-left-radius: ${e=>e.borderTopRadius}; 2857 border-bottom-right-radius: ${e=>e.borderBottomRadius}; 2858 border-bottom-left-radius: ${e=>e.borderBottomRadius}; 2859 overflow: hidden; 2860 border-top-right-radius: 10px; 2861 border-top-left-radius: 10px; 2862`,kC=N.div` 2863 position: relative; 2864 display: inline-flex; 2865 align-items: center; 2866 justify-content: center; 2867 height: ${e=>e.height}; 2868 width: ${e=>e.width}; 2869 margin: 5px; 2870 border: 2px solid black; 2871 border-radius: 10px; 2872 position: relative; 2873`,AC=N.div` 2874 pointer-events: none; 2875 font-size: 20px; 2876 color: #FFF; 2877 position: absolute; 2878 top: 5px; 2879 left: 5px; 2880 background: #1DB5D7; 2881 border-radius: 30px; 2882 width: 30px; 2883 height: 30px; 2884 z-index: 99; 2885 display: flex; 2886 align-items: center; 2887 justify-content: center; 2888 font-weight: bold; 2889`,jC=j(DC=class extends V.Component{render(){return(0,K.jsx)(OC,{height:(0,W.pixify)(this.props.height),width:(0,W.pixify)(this.props.width),borderTopRightRadius:(0,W.pixify)(this.props.borderTopRightRadius),borderTopLeftRadius:(0,W.pixify)(this.props.borderTopLeftRadius),borderBottomLeftRadius:(0,W.pixify)(this.props.borderBottomLeftRadius),borderBottomRightRadius:(0,W.pixify)(this.props.borderBottomRightRadius),children:this.props.mediaItems.map((e,t)=>(0,K.jsxs)(kC,{height:(0,W.pixify)(this.props.mediaWidth),width:(0,W.pixify)(this.props.mediaWidth),children:[this.props.showNumbers&&(0,K.jsx)(AC,{children:t+1}),e.videoClip&&(0,K.jsx)(Ai,{autoPlay:!0,left:`0`,loop:!0,muted:!0,borderRadius:8,videoClip:e.videoClip,width:this.props.mediaWidth-4}),e.image&&(0,K.jsx)(`img`,{alt:``,src:e.image.url,style:{width:this.props.mediaWidth-4,height:this.props.mediaWidth-4}})]},e.id))})}})||DC,MC=(0,Y.BorderRadius)((0,Y.CompositeVideoPlayerWrapper)(jC)),NC,PC=N.div` 2890 margin-top: 10px; 2891 li { 2892 padding: 10px; 2893 color: #060606; 2894 font-size: 13px; 2895 } 2896 li:hover { 2897 background: $darkestBlue; 2898 } 2899 .three-dots-icon { 2900 width: 15px; 2901 display: flex; 2902 justify-content: flex-end; 2903 height: 18px; 2904 margin-top: 5px; 2905 top: -7px; 2906 svg { 2907 width: 5px; 2908 } 2909 } 2910`,FC=N.div` 2911 border: ${e=>e.private?`2px solid ${q.Theme.orange}`:`none`}; 2912 background: white; 2913 padding: 10px; 2914 border-radius: 5px; 2915 overflow: hidden; 2916 position: relative; 2917 width: 100%; 2918 box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2); 2919`,IC=N.div` 2920 padding: 5px 20px 10px 0; 2921 display: flex; 2922 font-weight: bold; 2923 font-size: 21px; 2924 line-height: 22px; 2925 flex: 1; 2926`,LC=N.div` 2927 margin: 0 auto; 2928 display: flex; 2929 justify-content: center; 2930 border-top-right-radius: 5px; 2931 border-top-left-radius: 5px; 2932`,RC=N.div` 2933 position: relative; 2934 width: ${e=>e.width}; 2935 height: ${e=>e.height}; 2936 .video-player { 2937 left: 0px; 2938 width: 100%; 2939 height: 100%; 2940 } 2941 .supplement { 2942 .video-player { 2943 border-top-right-radius: 5px; 2944 border-top-left-radius: 5px; 2945 overflow: hidden; 2946 } 2947 } 2948 .media-with-supplement, .video-player { 2949 border-top-right-radius: 5px; 2950 border-top-left-radius: 5px; 2951 } 2952 .composite-video-player { 2953 .quadrant { 2954 background: black; 2955 } 2956 } 2957`,zC=N.div` 2958 padding: 10px; 2959`,BC=N.div` 2960 align-items: center; 2961 display: flex; 2962 justify-content: space-between; 2963 padding: 0 10px 10px 10px; 2964`,VC=N.div` 2965 ${(0,X.flexCenter)()} 2966 width: fit-content; 2967 background: ${q.Theme.orange}; 2968 cursor: pointer; 2969 height: 30px; 2970 padding: 3px 6px; 2971 margin-right: 5px; 2972 color: white; 2973 font-size: 12px; 2974 border-radius: 3px; 2975`,HC=N.div` 2976 color: #999; 2977 flex: 1; 2978 font-size: 12px; 2979 line-height: 14px; 2980 text-align: right; 2981`,UC=j(NC=class extends V.Component{constructor(...e){super(...e),this.userInputStore=new H.WebUserInputStore}componentWillUnmount(){this.userInputStore.dispose()}render(){return(0,K.jsx)(PC,{children:(0,K.jsxs)(FC,{private:this.props.feedEntry.private,children:[(this.props.submittedByMe||U.AppUI.user.admin)&&(0,K.jsxs)(Rh,{backgroundOnHover:q.Theme.lightBlue,children:[(0,K.jsx)(J.ThreeDotsIcon,{className:`main-three-dots`}),(0,K.jsxs)(`ul`,{children:[(0,K.jsx)(`li`,{onClick:this.props.onTogglePrivate,children:this.props.feedEntry.private?`Make Public`:`Make Private`}),(0,K.jsx)(`li`,{onClick:()=>this.props.onDestroyFeedEntry(this.props.feedEntry.id),children:`Delete`})]})]}),(0,K.jsx)(IC,{children:this.props.feedEntry.concept.name}),(0,K.jsx)(LC,{children:(0,K.jsxs)(RC,{width:(0,W.pixify)(this.props.width-20),height:(0,W.pixify)(this.props.width-20),children:[this.props.feedEntry.hasCompositeMedia&&(0,K.jsx)(MC,{height:this.props.width-20,width:this.props.width-20,mediaItems:this.props.feedEntry.feedEntryMediaItems}),!this.props.feedEntry.hasCompositeMedia&&(0,K.jsx)(Ai,{autoPlay:this.props.feedEntry.loopSupplement,loop:this.props.feedEntry.loopSupplement,videoClip:this.props.feedEntry.videoClip,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,width:this.props.width-20})]})}),(0,K.jsxs)(zC,{children:[this.props.feedEntry.audioUrl&&(0,K.jsx)(EC,{margin:`10px 0 0 0`,url:this.props.feedEntry.audioUrl,duration:this.props.feedEntry.duration,userInputStore:this.props.userInputStore||this.userInputStore}),(0,W.isPresent)(this.props.feedEntry.message)&&(0,K.jsx)(R,{margin:`10px 0 0 0`,children:this.props.feedEntry.message})]}),(0,K.jsxs)(BC,{children:[this.props.feedEntry.private&&(0,K.jsx)(VC,{children:`Private`}),(0,K.jsx)(HC,{children:this.props.feedEntry.createdAt?.relativeTime})]})]})})}})||NC,WC=(0,Y.FeedEntryWrapper)(UC),GC,KC,qC=N.div` 2982 background: ${e=>e.background}; 2983 width: ${e=>e.width}; 2984 margin: ${e=>e.margin}; 2985 border: ${e=>e.border}; 2986 color: ${e=>e.color}; 2987 font-size: ${e=>e.fontSize}; 2988 line-height: ${e=>e.lineHeight}; 2989 position: relative; 2990 padding: ${e=>e.wrapperPadding}; 2991 border-radius: ${e=>e.borderRadius}; 2992 text-align: ${e=>e.textAlign}; 2993 box-sizing: border-box; 2994 text-shadow: ${e=>[`#fff`,`#ffffff`,`white`].includes(`${e.color}`.toLowerCase())?`0 1px 2px rgba(17, 90, 112, 0.35)`:`none`}; 2995 a { 2996 color: ${e=>e.color}; 2997 } 2998 @media (max-width: 699px) { 2999 font-size: 13px; 3000 line-height: 18px; 3001 } 3002`,JC=N.div` 3003 display: block; 3004 width: 100%; 3005 padding: ${e=>e.padding}; 3006`,YC=N.div` 3007 .close-icon { 3008 position: absolute; 3009 top: 7px; 3010 right: 0px; 3011 z-index: ${e=>e.zIndex}; 3012 transform: rotate(0); 3013 svg { 3014 width: 16px; 3015 fill: ${e=>e.color}; 3016 } 3017 } 3018`,XC=j(GC=(KC=class extends V.Component{constructor(...e){super(...e),this.state={hidden:!1},this.onClose=()=>{this.setState({hidden:!0}),U.AppUI.designateUiElementAsSeen(this.props.uiElement)}}render(){return this.state.hidden?null:(0,K.jsxs)(qC,{fontSize:(0,W.pixify)(this.props.fontSize),lineHeight:(0,W.pixify)(this.props.fontSize+3),className:this.props.className,width:this.props.width,margin:this.props.margin,border:this.props.border,color:this.props.color,background:this.props.background,textAlign:this.props.textAlign,wrapperPadding:this.props.wrapperPadding,borderRadius:(0,W.pixify)(this.props.borderRadius),children:[(0,K.jsx)(JC,{padding:this.props.padding,children:this.props.children}),!this.props.hideCloseIcon&&!this.props.fatCloseIcon&&(0,K.jsx)(YC,{zIndex:q.Theme.z.foreground,color:this.props.color,children:(0,K.jsx)(J.CloseIcon,{className:`page-onboarding-close-icon`,onClick:this.onClose,fill:this.props.color})}),!this.props.hideCloseIcon&&this.props.fatCloseIcon&&(0,K.jsx)(`i`,{className:`fa fa-times`,style:{color:this.props.color,opacity:.85},onClick:this.onClose})]})}},KC.defaultProps={width:`100%`,margin:`0 0 10px 0`,background:`linear-gradient(90deg, rgba(59, 215, 197, 0.9) 0%, #0A9FE3 20%, ${q.Theme.blue} 72%, #678DE0 100%)`,border:`none`,borderRadius:12,color:`#FFF`,textAlign:`center`,fontSize:15,padding:`0 15px 0 0`,wrapperPadding:`14px 18px`},KC))||GC,ZC,QC=N.div` 3019 width: 100%; 3020 margin: ${e=>e.margin}; 3021`,$C=N.div` 3022 display: flex; 3023 justify-content: center; 3024 padding: 20px 0; 3025`,ew=j(ZC=class extends V.Component{render(){let e=!U.AppUI.feedEntryStore.hasIndexData&&(U.AppUI.feedEntryStore.showLoadingIcon||U.AppUI.feedEntryStore.hasOutstandingRequests);return(0,K.jsxs)(QC,{margin:this.props.margin,children:[U.AppUI.userIsLoaded&&U.AppUI.user.xpLevel<2&&!U.AppUI.wasUiElementSeen(`feed_index_page`)&&(0,K.jsx)(XC,{uiElement:`feed_index_page`,background:`#fff`,color:`#333`,border:`1px solid #ddd`,children:`Your feed is a collection of your answered questions or descriptions of scenes within our story decks.`}),e&&(0,K.jsx)($C,{children:(0,K.jsx)(P,{className:`blue`})}),!e&&!U.AppUI.feedEntryStore.hasIndexData&&U.AppUI.feedEntryStore.initialRequestReceived&&(0,K.jsx)(B,{width:`100%`,textAlign:`center`,background:`transparent`,color:`#333`,children:`There aren't any entries.`}),U.AppUI.feedEntryStore.indexData.map(e=>(0,K.jsx)(WC,{afterChange:this.props.afterChange,user:U.AppUI.user,feedEntry:e,width:U.AppUI.layout.feedVideoWidth,feedMinimizedSupplementWidth:U.AppUI.layout.feedMinimizedSupplementWidth,onDestroyFeedEntry:this.props.onDestroyFeedEntry},e.id)),U.AppUI.feedEntryStore.hasIndexData&&(0,K.jsx)(In,{store:U.AppUI.feedEntryStore})]})}}
3025)||ZC,tw=(0,Y.FeedEntryIndexWrapper)(ew),nw,rw=N.div` 3026 position: relative; 3027 margin-top: 0; 3028 background: #DDD; 3029 padding: 10px; 3030 text-align: center; 3031 color: #333; 3032 margin-bottom: 10px; 3033 font-weight: bold; 3034 font-size: 16px; 3035 position: relative; 3036 height: 46px; 3037 border-radius: 5px; 3038 display: flex; 3039 align-items: center; 3040 justify-content: center; 3041`,iw=M(j(nw=class extends V.Component{render(){return(0,K.jsx)(rw,{children:this.props.children})}})||nw);D();var aw,ow=N.div` 3042 display: flex; 3043 flex-direction: ${e=>e.isMobile?`column`:`row`}; 3044 position: relative; 3045`,sw=N.div` 3046 flex: 1; 3047`,cw=N.div` 3048 width: ${e=>e.width}; 3049 margin: ${e=>e.margin}; 3050`,lw=N.div` 3051 position: absolute; 3052 right: 10px; 3053 top: 20px; 3054 cursor: pointer; 3055 .settings-icon { 3056 width: 30px; 3057 fill: #525252; 3058 } 3059`,uw=N.div` 3060 ${(0,X.flexCenterColumn)()} 3061 width: 100%; 3062 padding: 20px; 3063`,dw=j(aw=class extends V.Component{componentDidMount(){U.AppUI.createEvent(`profile - view page`)}render(){return(0,K.jsxs)(ow,{isMobile:U.AppUI.layout.isMobile,children:[U.AppUI.layout.isMobile&&U.AppUI.siteIsDefault&&(0,K.jsx)(lw,{children:(0,K.jsx)(F,{to:`more`,children:(0,K.jsx)(J.SettingsIcon,{})})}),(0,W.isBlank)(this.props.user?.id)&&(0,K.jsx)(P,{}),(0,W.isPresent)(this.props.user?.id)&&(0,K.jsx)(sw,{children:(0,K.jsx)(sC,{hideBadges:!U.AppUI.siteIsDefault,user:this.props.user,userIsMe:this.props.userIsMe,isMobile:U.AppUI.layout.isMobile,onToggleFollowing:this.props.onToggleFollowing,...this.props})}),U.AppUI.layout.isMobile&&!this.props.expandFeed&&U.AppUI.siteIsDefault&&(0,K.jsx)(uw,{children:(0,K.jsx)(I,{onClick:()=>this.props.setExpandFeed(!0),children:`View Feed Entries`})}),U.AppUI.siteIsDefault&&(0,W.isPresent)(ie(this.props.user))&&(!U.AppUI.layout.isMobile||this.props.expandFeed)&&(0,K.jsxs)(cw,{margin:U.AppUI.layout.isMobile?null:`0 0 0 10px`,width:U.AppUI.layout.isMobile?`100%`:`400px`,children:[(0,K.jsx)(iw,{children:`Feed`}),(0,K.jsx)(tw,{hideHeader:!0,user:this.props.user,show:`my.feed`})]})]})}})||aw,fw=pf((0,Y.ProfileHomeWrapper)(dw)),pw,mw=N.div` 3064 border-radius: 50px; 3065 background: #315065; 3066 height: ${e=>e.height}; 3067 flex: 1; 3068 position: relative; 3069 padding-right: 30px; 3070 margin-right: 3px; 3071`,hw=N.div` 3072 height: ${e=>e.height}; 3073 width: ${e=>e.width}; 3074 overflow: hidden; 3075 position: absolute; 3076 top: 0; 3077 bottom: 0; 3078 margin: auto; 3079 border-radius: 10px; 3080`,gw=N.div` 3081 height: ${e=>e.height}; 3082 background: #0cce6c; 3083 transform: ${e=>e.transform}; 3084 top: 0; 3085 bottom: 0; 3086 margin: auto; 3087 width: 100%; 3088 border-radius: 10px; 3089 will-change: transform; 3090 -moz-transition: all 0.4s linear; 3091 -o-transition: all 0.4s linear; 3092 -webkit-transition: all 0.4s linear; 3093 transition: all 0.4s linear; 3094`,_w=j(pw=class extends V.Component{render(){return(0,K.jsx)(mw,{height:(0,W.pixify)(this.props.backgroundHeight),children:(0,K.jsx)(hw,{height:(0,W.pixify)(this.props.progressHeight),width:(0,W.pixify)(this.props.progressBarWidth),children:(0,K.jsx)(gw,{height:(0,W.pixify)(this.props.progressHeight),transform:`translate(${this.props.xPos}px, 0)`})})})}})||pw,vw=(0,Y.DeckProgressBarWrapper)(_w),yw,bw=N.div` 3095 font-size: 14px; 3096 padding: 10px; 3097 text-align: left; 3098 display: flex; 3099 align-items: center; 3100 cursor: ${e=>e.disabled?`default`:`pointer`}; 3101 color: ${e=>e.disabled?`#CCC`:`#000`}; 3102 -webkit-user-select: none; 3103 -khtml-user-select: none; 3104 -moz-user-select: -moz-none; 3105 -o-user-select: none; 3106 user-select: none; 3107 .icons { 3108 width: 30px; 3109 } 3110 svg, path { 3111 fill: ${e=>e.disabled?`#CCC`:`#000`}; 3112 } 3113 .icon-wrapper { 3114 display: inline-flex; 3115 align-items: center; 3116 justify-content: center; 3117 width: 25px; 3118 height: 25px; 3119 margin-right: 8px; 3120 border: ${e=>e.disabled?`1px solid #CCC`:`1px solid black`}; 3121 border-radius: 50%; 3122 .icon { 3123 display: inline-flex; 3124 align-items: center; 3125 justify-content: center; 3126 } 3127 } 3128 3129 /* Support for Link components inside DeckMenuItem */ 3130 a { 3131 color: inherit; 3132 text-decoration: none; 3133 display: flex; 3134 align-items: center; 3135 width: 100%; 3136 3137 svg { 3138 margin-right: 8px; 3139 } 3140 } 3141 3142 &:hover { 3143 background: ${e=>e.disabled?`#FFF`:q.Theme.darkestBlue}; 3144 color: ${e=>e.disabled?`#CCC`:`#FFF`}; 3145 .icon-wrapper { 3146 border: ${e=>e.disabled?`1px solid #CCC`:`1px solid #FFF`}; 3147 } 3148 svg, path { 3149 fill: ${e=>e.disabled?`#CCC`:`#FFF`}; 3150 } 3151 a { 3152 color: ${e=>e.disabled?`#CCC`:`#FFF`}; 3153 } 3154 } 3155`,xw=M(j(yw=class extends V.Component{render(){return(0,K.jsx)(bw,{disabled:this.props.disabled,onClick:this.props.disabled?null:this.props.onClick,children:this.props.children})}})||yw);D();var Sw,Cw;function ww(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Tw=N.div` 3156 .dropdown-wrapper { 3157 width: 170px; 3158 right: 0; 3159 } 3160 .left-arrow-icon { 3161 height: 21px; 3162 } 3163 .fa-angle-left { 3164 font-size: 22px; 3165 margin-left: -2px; 3166 } 3167 .fa-angle-right { 3168 font-size: 22px; 3169 margin-left: 2px; 3170 } 3171 .info-icon { 3172 svg { 3173 width: 2.5px; 3174 } 3175 } 3176 .close-icon { 3177 svg { 3178 width: 15px; 3179 } 3180 } 3181 .warning-triangle-icon { 3182 svg { 3183 fill: #333; 3184 width: 15px; 3185 margin-top: -2px; 3186 } 3187 } 3188 .settings-outline-icon { 3189 svg { 3190 width: 17px; 3191 } 3192 } 3193 .question-icon { 3194 svg { 3195 width: 9px; 3196 } 3197 } 3198 .refresh-icon { 3199 svg { 3200 width: 13px; 3201 } 3202 } 3203 .fa-flag { 3204 font-size: 12px; 3205 } 3206 .shortcut-icon { 3207 svg { 3208 width: 13px; 3209 } 3210 } 3211 .list-with-bullet-icon { 3212 svg { 3213 width: 13px; 3214 } 3215 } 3216 .pencil-icon { 3217 svg { 3218 width: 13px; 3219 margin: 0; 3220 } 3221 } 3222`,Ew=N.div` 3223 width: 40px; 3224 display: flex; 3225 align-items: center; 3226 justify-content: center; 3227 .dropdown-icon { 3228 opacity: 0.4; 3229 display: flex; 3230 svg {
3231 margin-top: 1px; 3232 width: 7px; 3233 } 3234 circle, path { 3235 fill: #FFF; 3236 } 3237 } 3238`,Dw=j(Sw=(Cw=class extends V.Component{constructor(...e){super(...e),this.onReportTranslation=()=>{if(this.props.onReportTranslation(),this.showReportMeaningsScreen){U.OverlayUI.addOverlay(`reportMeanings`,{open:!0,word:U.DeckUI.currentWord,synonymAssociation:this.props.synonymAssociation,onClose:()=>{U.OverlayUI.removeOverlay(`reportMeanings`)},onSubmitSuccess:()=>{U.DeckUI.createEvent(`vocab - report meanings submitted`,{word_id:U.DeckUI.currentWord?.id})}});return}U.OverlayUI.addOverlay(`sourceEdit`)}}get translationEditLink(){return(0,W.isPresent)(U.DeckUI.currentSentence)?{name:`builder.sentences.edit`,params:{sentenceId:U.DeckUI.currentSentence.id}}:(0,W.isPresent)(U.DeckUI.currentWord)?{name:`builder.words.edit`,params:{wordId:U.DeckUI.currentWord.id}}:null}get showReportMeaningsScreen(){return U.DeckUI.deck?.synonymDeck||U.AppUI.user?.showMeanings&&U.AppUI.user?.showVocabMeanings===!0&&(0,W.isPresent)(U.DeckUI.currentWord?.meanings)}render(){return(0,K.jsx)(Tw,{children:(0,K.jsxs)(Rh,{top:U.DeckUI.layout.deckHeaderHeight,showOnClick:!0,closeOnDropdownClick:!0,onShow:this.props.onOpenMenu,children:[(0,K.jsx)(Ew,{children:(0,K.jsx)(J.ThreeDotsIcon,{className:`dropdown-icon`})}),(0,K.jsxs)(`div`,{children:[(!U.DeckUI.deck.triviaDeck||U.DeckUI.user.admin)&&(0,K.jsxs)(xw,{onClick:this.props.onRestartCard,disabled:this.props.disableResetCard,children:[(0,K.jsx)(J.RefreshIcon,{}),`Restart Card`]}),!U.DeckUI.deck.triviaDeck&&(0,K.jsxs)(xw,{onClick:this.props.onPreviousCard,disabled:U.DeckUI.userDeck.currentUserCardIsFirstInDeck,children:[(0,K.jsx)(`div`,{className:`icon-wrapper`,children:(0,K.jsx)(`i`,{className:`fa fa-angle-left`})}),`Previous Card`]}),(U.DeckUI.user.admin||U.AppUI.isDevelopment)&&(0,K.jsxs)(xw,{onClick:this.props.onNextCard,disabled:U.DeckUI.isLastCard,children:[(0,K.jsx)(`div`,{className:`icon-wrapper`,children:(0,K.jsx)(`i`,{className:`fa fa-angle-right`})}),`Next Card`]}),U.DeckUI.user.admin&&(0,K.jsxs)(xw,{onClick:this.props.onGoToCard,children:[(0,K.jsx)(J.ListWithBulletIcon,{}),`Go to Card`]}),U.DeckUI.showDeckGrammar&&(0,K.jsxs)(xw,{onClick:this.props.onDeckGrammar,children:[(0,K.jsx)(J.InfoIcon,{}),`Deck Grammar`]}),(!U.DeckUI.deck.triviaDeck||U.DeckUI.user.admin)&&(0,K.jsxs)(xw,{onClick:this.props.onRestartDeck,children:[(0,K.jsx)(J.RefreshIcon,{}),`Restart Deck`]}),(0,K.jsxs)(xw,{onClick:this.props.onShortcuts,children:[(0,K.jsx)(J.ShortcutIcon,{}),`Shortcuts`]}),(0,K.jsxs)(xw,{onClick:this.props.onSettings,children:[(0,K.jsx)(J.SettingsOutlineIcon,{}),`Settings`]}),(0,K.jsxs)(xw,{onClick:this.props.onReportBug,children:[(0,K.jsx)(J.WarningTriangleIcon,{}),`Report Bug`]}),(0,K.jsxs)(xw,{onClick:this.onReportTranslation,disabled:this.props.disableReport,children:[(0,K.jsx)(`div`,{className:`icon-wrapper`,children:(0,K.jsx)(`i`,{className:`fa fa-flag`})}),this.props.reportMenuTitle]}),U.DeckUI.user.admin&&(0,W.isPresent)(this.translationEditLink)&&(0,K.jsx)(xw,{children:(0,K.jsxs)(F,{to:this.translationEditLink,target:`_blank`,children:[(0,K.jsx)(J.PencilIcon,{}),`Edit ${U.DeckUI.currentSentence?`Sentence`:`Word`}`]})})]})]})})}},ww(Cw.prototype,`translationEditLink`,[E],Object.getOwnPropertyDescriptor(Cw.prototype,`translationEditLink`),Cw.prototype),ww(Cw.prototype,`showReportMeaningsScreen`,[E],Object.getOwnPropertyDescriptor(Cw.prototype,`showReportMeaningsScreen`),Cw.prototype),Cw))||Sw,Ow=(0,Y.DeckMenuWrapper)(Dw),kw,Aw=N.span` 3239 ${(0,X.flexCenter)()} 3240 flex: 1; 3241 padding: 0 10px; 3242`,jw=N.div` 3243 ${(0,X.flexCenter)()} 3244 flex: 1; 3245`,Mw=N.div` 3246 ${(0,X.flexCenter)()} 3247 position: relative; 3248 background: ${e=>e.background}; 3249 fontSize: ${e=>e.fontSize}; 3250 color: ${e=>e.color}; 3251 border-radius: 5px; 3252 width: ${e=>e.width}; 3253 height: ${e=>e.width}; 3254 i { 3255 color: ${e=>e.color}; 3256 opacity: 0.8; 3257 margin: 0; 3258 font-size: ${e=>e.fontSize}; 3259 position: absolute; 3260 margin: auto; 3261 } 3262`,Nw=N.div` 3263 width: 6px; 3264 height: 6px; 3265 border-radius: 50%; 3266 background: ${e=>e.color}; 3267`,Pw=j(kw=class extends V.Component{render(){return(0,K.jsx)(Aw,{children:this.props.userCards.map(e=>{let t=!e.correct&&e.seen||e.currentIncorrect&&!e.correct,n=e.correct;return(0,K.jsx)(jw,{children:(0,K.jsxs)(Mw,{width:U.DeckUI.layout.minimumHeight?`18px`:`20px`,fontSize:U.DeckUI.layout.minimumHeight?`11px`:`16px`,background:this.props.background(e),color:this.props.checkColor(e),children:[n&&(0,K.jsx)(`i`,{className:`fa fa-check`}),t&&(0,K.jsx)(`i`,{className:`fa fa-times`}),!n&&!t&&(0,K.jsx)(Nw,{color:this.props.defaultColor})]})},e.id)})})}})||kw,Fw=(0,Y.CorrectCardsStatusWrapper)(Pw),Iw,Lw=N.div` 3268 height: ${e=>e.height}; 3269 display: flex; 3270 flex-direction: row; 3271 background: ${q.Theme.darkBlue}; 3272 align-items: center; 3273`,Rw=N.div` 3274 width: ${e=>e.minimumHeight?40:50}px; 3275 display: inline-flex; 3276 align-items: center; 3277 justify-content: center; 3278 .close-icon { 3279 width: ${e=>e.minimumHeight?26:30}px; 3280 svg { 3281 fill: rgba(255, 255, 255, 0.4); 3282 } 3283 } 3284`,zw=N.div` 3285 width: ${e=>e.minimumHeight?30:40}px; 3286 display: flex; 3287 align-items: center; 3288 justify-content: center; 3289 .three-dots-icon { 3290 margin-top: -2px; 3291 } 3292`,Bw=N.div` 3293 height: 30px; 3294 width: 100%; 3295 ${(0,X.flexCenter)()} 3296 padding: 0 5px; 3297 border-radius: 20px; 3298 background: rgba(230, 230, 230, 0.6); 3299`,Vw=j(Iw=class extends V.Component{constructor(...e){super(...e),this.onClickClose
3299=()=>{this.props.onCloseDeck()}}render(){return(0,K.jsxs)(Lw,{height:(0,W.pixify)(U.DeckUI.layout.deckHeaderHeight),className:`deck-header`,children:[(0,K.jsx)(Rw,{minimumHeight:U.DeckUI.layout.minimumHeight,children:U.DeckUI.hasDeck&&U.DeckUI.hasUserDeck&&(0,K.jsx)(J.CloseIcon,{onClick:this.onClickClose})}),U.DeckUI.hasDeck&&U.DeckUI.hasUserDeck&&!U.DeckUI.showCorrectCardStatus&&(0,K.jsx)(vw,{}),U.DeckUI.hasDeck&&U.DeckUI.hasUserDeck&&U.DeckUI.correctCardsStatusCards&&U.DeckUI.showCorrectCardStatus&&(0,K.jsx)(Bw,{children:(0,K.jsx)(Fw,{userCards:U.DeckUI.correctCardsStatusCards,showBackground:!0,showCorrectColor:!0,showIncorrectColor:!0})}),(0,K.jsx)(zw,{minimumHeight:U.DeckUI.layout.minimumHeight,children:U.DeckUI.userIsLoaded&&U.DeckUI.hasDeck&&U.DeckUI.hasUserDeck&&(0,K.jsx)(Ow,{})})]})}})||Iw,Hw=(0,Y.DeckCloseWebWrapper)(Vw),Uw,Ww=N.div` 3300 ${(0,X.flexCenterColumn)()} 3301 z-index: ${q.Theme.z.topmost}; 3302 width: ${e=>e.width}; 3303 height: ${e=>e.height}; 3304 margin: 0 auto; 3305 background: white; 3306 position: absolute; 3307 left: 0; 3308 right: 0; 3309 top: 0; 3310 padding: 20px; 3311 h3 { 3312 margin-bottom: 10px; 3313 i { 3314 margin: 3px 3px 0 0; 3315 } 3316 } 3317`,Gw=N.div` 3318 cursor: pointer; 3319 position: absolute; 3320 right: 10px; 3321 top: 10px; 3322 svg { 3323 width: 24px; 3324 height: 24px; 3325 } 3326`,Kw=M(j(Uw=class extends V.Component{render(){return(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.props.scale,{stiffness:300,damping:18})},children:({scale:e})=>(0,K.jsxs)(Ww,{width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),style:Object.assign({},this.props.style,{transform:`scale(${e})`}),children:[(0,K.jsx)(Gw,{onClick:this.props.onClose,children:(0,K.jsx)(J.CloseIcon,{})}),this.props.children]})})}})||Uw),qw,Jw=N.div` 3327 ${(0,X.flexCenterColumn)()} 3328`,Yw=N.div` 3329 display: flex; 3330 align-items: center; 3331 width: 100%; 3332`,Xw=N.div` 3333 flex: 1; 3334 padding: 0 5px; 3335`,Zw=N.div` 3336 display: flex; 3337 align-items: center; 3338 margin: 20px 0 0 0; 3339`,Qw=N.div` 3340 cursor: pointer; 3341`,$w=j(qw=class extends V.Component{constructor(...e){super(...e),this.state={disableFutureConfirmation:!1},this.onToggleDisableFutureConfirmation=()=>{this.setState({disableFutureConfirmation:!this.state.disableFutureConfirmation})},this.onConfirmCloseDeck=()=>{this.props.onCloseDeck({bypassConfirmation:!0,disableFutureConfirmation:this.state.disableFutureConfirmation})}}render(){return(0,K.jsxs)(Jw,{children:[(0,K.jsx)(R,{heading:`3`,margin:`0 0 20px 0`,children:`Close this Deck?`}),(0,K.jsxs)(Yw,{children:[(0,K.jsx)(Xw,{children:(0,K.jsxs)(I,{onClick:this.onConfirmCloseDeck,background:q.Theme.green,width:`100%`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),`Confirm`]})}),(0,K.jsx)(Xw,{children:(0,K.jsxs)(I,{onClick:()=>U.DeckUI.showCloseModal=!1,background:q.Theme.red,width:`100%`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Cancel`]})})]}),(0,K.jsxs)(Zw,{children:[(0,K.jsx)(jn,{value:this.state.disableFutureConfirmation,onClick:this.onToggleDisableFutureConfirmation,margin:`0 10px 0 0`}),(0,K.jsx)(Qw,{onClick:this.onToggleDisableFutureConfirmation,children:(0,K.jsx)(R,{fontSize:`14px`,children:`Don't ask me again`})})]})]})}})||qw,eT=(0,Y.DeckCloseWebWrapper)($w);D();var tT,nT,rT,iT,aT;function oT(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function sT(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var cT=N.div` 3342 .fade-out { 3343 opacity: 0; 3344 transition: opacity 1s linear; 3345 } 3346`,lT=N.div` 3347 z-index: ${q.Theme.z.topmost}; 3348 border: 5px solid ${e=>e.borderColor}; 3349 background: ${e=>e.background}; 3350 color: ${e=>e.color}; 3351 position: absolute; 3352 opacity: 0.9; 3353 width: 60px; 3354 height: 60px; 3355 display: flex; 3356 align-items: center; 3357 justify-content: center; 3358 border-radius: 50%; 3359 font-size: 16px; 3360 font-weight: bold; 3361`,uT=-300,dT=0,fT=j(tT=(nT=class extends V.Component{constructor(...e){super(...e),oT(this,`yPos`,rT,this),oT(this,`opacity`,iT,this),oT(this,`animating`,aT,this)}xPos(e){return Math.sin(e/35)*15}componentDidMount(){this.animating=!0,this.yPos=uT}componentWillUnmount(){this.props.state.onRemoveXpAnimation(this.props.id)}render(){return(0,K.jsx)(cT,{children:(0,K.jsx)(Rv.Motion,{style:{y:this.animating?(0,Rv.spring)(this.yPos,{stiffness:30,damping:15}):dT},onRest:()=>this.props.state.onRemoveXpAnimation(this.props.id),children:({y:e})=>(0,K.jsxs)(lT,{borderColor:this.props.xp===0?`#333`:`yellow`,background:this.props.xp===0?`#333`:`yellow`,color:this.props.xp===0?`#FFF`:`#333`,className:(0,Qg.default)({"fade-out"
3361:this.animating&&e<uT/2}),style:Object.assign({},this.props.style,{transform:this.animating?`translate(${this.xPos(e)}px, ${e}px)`:`translate(0, 0)`,left:this.props.xpXPos?this.props.xpXPos-25:0}),children:[`+`,this.props.xp]})})})}},rT=sT(nT.prototype,`yPos`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.bottom||dT}}),iT=sT(nT.prototype,`opacity`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),aT=sT(nT.prototype,`animating`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nT))||tT,pT=S(),mT,hT=N.div` 3362 margin: ${e=>e.margin}; 3363 position: ${e=>e.position}; 3364 bottom: ${e=>e.bottom}; 3365 top: ${e=>e.top}; 3366 right: ${e=>e.right}; 3367 left: ${e=>e.left}; 3368 padding: ${e=>e.debug?20:0}px; 3369 border: ${e=>e.debug?`2px solid red`:`none`}; 3370`,gT=j(mT=class extends V.Component{render(){return(0,K.jsxs)(hT,{position:this.props.position,margin:this.props.margin,bottom:this.props.bottom,top:this.props.top,right:this.props.right,left:this.props.left,debug:this.props.debug,onClick:this.props.onClick,children:[this.props.debug&&`XP ANIMATION WRAPPER`,this.props.currentAnimations.map(e=>(0,K.jsx)(fT,{state:pT.XpState,onRest:pT.XpState.onRemoveXpAnimation,...this.props,...e},e.id))]})}})||mT,_T=(0,Y.XpAnimationWrapper)(gT);D(),w();var vT,yT,bT,xT;function ST(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function CT(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var wT=N.div` 3371 ${(0,X.flexCenterColumn)()} 3372 z-index: ${q.Theme.z.topmost}; 3373 background: ${e=>e.background}; 3374 color: ${e=>e.color}; 3375 border: ${e=>e.border}; 3376 position: absolute; 3377 margin: 0 auto; 3378 left: 0; 3379 right: 0; 3380 width: 340px; 3381 top: ${U.DeckUI.layout.deckHeaderHeight+20}px; 3382 border-radius: 10px; 3383 font-size: 14px; 3384 line-height: 18px; 3385 font-weight: bold; 3386 cursor: pointer; 3387`,TT=N.div` 3388 font-size: 12px; 3389 line-height: 14px; 3390 font-weight: normal; 3391`,ET=N.div` 3392 width: calc(100% - 5px); 3393 height: 100%; 3394 display: flex; 3395 align-items: center; 3396 justify-content: center; 3397 border: ${e=>e.innerBorder===null?`none`:e.innerBorder}; 3398 margin: 2px 0; 3399 padding: 10px; 3400 border-radius: 5px; 3401 flex-direction: column; 3402`,DT=N.div` 3403 margin-right: 10px; 3404 .lightning-bolt-icon { 3405 svg { 3406 width: 18px; 3407 fill: ${q.Theme.orange}; 3408 } 3409 } 3410`,OT=j(vT=(yT=(xT=class extends V.Component{constructor(e){super(e),ST(this,`scale`,bT,this),this.props.chime&&U.AppUI.soundEffectStore.play(`chime`)}componentDidMount(){this.scale=1}render(){return(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.scale,Rv.presets.wobbly)},children:({scale:e})=>(0,K.jsx)(wT,{color:this.props.color,background:this.props.background,border:this.props.border,style:{transform:`scale(${e})`},onClick:()=>U.DeckUI.hideCardNotice(),children:(0,K.jsxs)(ET,{innerBorder:this.props.innerBorder,children:[this.props.icon&&(0,K.jsxs)(DT,{children:[this.props.icon===`celebration`&&(0,K.jsx)(R,{fontSize:`20px`,children:(0,K.jsx)(`span`,{role:`img`,"aria-label":`celebration`,children:`ð`})}),this.props.icon===`streak`&&(0,K.jsx)(J.LightningBoltIcon,{})]}),(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.props.text}}),_(this.props.subText)&&(0,K.jsx)(TT,{children:this.props.subText}),this.props.buttonText&&(0,K.jsx)(I,{margin:`10px 0 0 0`,fontSize:`13px`,onClick:this.props.onClick,children:this.props.buttonText})]})})})}},xT.defaultProps={background:q.Theme.orange,color:`#FFF`,innerBorder:`5px dotted #f78139`},xT),bT=CT(yT.prototype,`scale`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),yT))||vT,kT,AT=N.div` 3411 width: ${e=>e.width}; 3412 height: ${e=>e.height}; 3413 margin: ${e=>e.margin||0}; 3414 border-bottom-left-radius: ${e=>e.borderBottomLeftRadius}px; 3415 border-bottom-right-radius: ${e=>e.borderBottomRightRadius}px; 3416 display: flex; 3417 flex-direction: row; 3418 z-index: ${q.Theme.z[`card-1`]}; 3419 overflow: hidden; 3420 margin-top: 10px; 3421`,jT=N.div` 3422 position: relative; 3423 display: flex; 3424 width: 100%; 3425`,MT=M(j(kT=class extends V.Component{render(){return(0,K.jsx)(AT,{height:(0,W.pixify)(U.DeckUI.layout.buttonHeight),width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),margin:this.props.margin,borderBottomLeftRadius:U.DeckUI.layout.isMobile?0:20,borderBottomRightRadius:U.DeckUI.layout.isMobile?0:20,children:(0,K.jsx)(jT,{children:this.props.children})})}})||kT),NT,PT=N.div` 3426 .lightbulb-on-icon { 3427 svg { 3428 fill: #000; 3429 } 3430 } 3431 .lightbulb-on-solid-icon { 3432 svg { 3433 fill: ${q.Theme.red}; 3434 } 3435 } 3436 svg { 3437 width: ${e=>e.width}; 3438 margin: ${e=>e.margin}; 3439 } 3440`,FT=M(j(NT=class extends V.Component{render(){return(0,K.jsxs)(PT,{width:this.props.width,margin:this.props.margin,children:[!this.props.on&&(0,K.jsx)(J.LightbulbOnIcon,{}),this.props.on&&(0,K.jsx)(J.LightbulbOnSolidIcon,{})]})}})||NT),IT,LT=N.div` 3441 svg { 3442 width: ${e=>e.width}; 3443 margin: ${e=>e.margin}; 3444 fill: #333; 3445 } 3446 .microphone-icon { 3447 svg { 3448 width: 42%; 3449 } 3450 } 3451 .keyboard-icon { 3452 svg { 3453 width: 24px; 3454 } 3455 path { 3456 fill: #333; 3457 } 3458 } 3459`,RT=M(j(IT=class extends V.Component{render(){return(0,K.jsxs)(LT,{width:this.props.width,margin:this.props.margin,children:[!U.AppUI.user.vocabCardAudio&&(0,K.jsx)(J.MicrophoneIcon,{}),U.AppUI.user.vocabCardAudio&&(0,K.jsx)(J.KeyboardIcon,{})]})}})||IT),zT,BT=N.div` 3460 svg { 3461 width: ${e=>e.width}; 3462 margin: ${e=>e.margin}; 3463 fill: #333; 3464 } 3465 .multiple-choice-icon { 3466 svg { 3467 width: 60%; 3468 } 3469 } 3470 } 3471 .keyboard-icon { 3472 svg { 3473 width: 24px; 3474 fill: #333; 3475 } 3476 } 3477`,VT=M(j(zT=class extends V.Component{render(){return(0,K.jsxs)(BT,{width:this.props.width,margin:this.props.margin,children:[this.props.textInput&&(0,K.jsx)(J.MultipleChoiceIcon,{}),!this.props.textInput&&(0,K.jsx)(J.KeyboardIcon,{})]})}}
3477)||zT),HT,UT,WT=N.div` 3478 display: flex; 3479 flex-direction: column; 3480 position: absolute; 3481 width: fit-content; 3482 top: ${e=>e.top}; 3483 right: ${e=>e.right}; 3484 left: ${e=>e.left}; 3485 gap: 5px; 3486 z-index: ${q.Theme.z[`card-info-3`]}; 3487 .info-icon { 3488 width: 4px; 3489 } 3490 .classroom-icon { 3491 width: 28px; 3492 margin-top: -8px; 3493 svg { 3494 fill: #333; 3495 } 3496 } 3497 .graph-outline-icon { 3498 width: 16px; 3499 } 3500 .list-with-bullet-icon { 3501 height: 15px; 3502 svg { 3503 width: 18px; 3504 fill: #333; 3505 } 3506 } 3507 .note-icon { 3508 width: 21px; 3509 margin-left: -2px; 3510 } 3511 .settings-icon { 3512 width: 25px; 3513 fill: #333; 3514 } 3515`,GT=N.div` 3516 ${(0,X.flexCenter)()} 3517 cursor: pointer; 3518 width: ${e=>e.width}; 3519 height: ${e=>e.height}; 3520`,KT=N.div` 3521 ${(0,X.flexCenter)()} 3522 background: ${e=>e.minimized?`rgba(255, 255, 255, 0.6)`:`none`}; 3523 background: #FFF; 3524 border-radius: 10px; 3525 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); 3526 width: 100%; 3527 height: 100%; 3528 .bookmark-icon { 3529 svg { 3530 #border { 3531 fill: #333; 3532 } 3533 #background { 3534 fill: ${e=>e.background}; 3535 } 3536 width: 18px; 3537 } 3538 } 3539 .vocab-thin-icon { 3540 svg { 3541 width: ${e=>e.minimumHeight?`18px`:`22px`}; 3542 } 3543 } 3544`,qT=j(HT=(UT=class extends V.Component{render(){return(0,K.jsx)(WT,{right:this.props.right,top:this.props.top,left:this.props.left,children:this.props.icons.map((e,t)=>{switch(e){case`toggleMicrophone`:return(0,K.jsx)(GT,{onClick:this.props.onToggleMicrophone,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(RT,{})})},e);case`toggleMultipleChoice`:return(0,K.jsx)(GT,{onClick:this.props.onToggleMultipleChoice,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(VT,{textInput:this.props.textInputTrainer})})},e);case`toggleReview`:return(0,K.jsx)(GT,{onClick:this.props.onToggleReview,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{background:this.props.showActiveReviewIcon?q.Theme.orange:`#FFF`,children:(0,K.jsx)(J.BookmarkIcon,{fill:this.props.showActiveReviewIcon?q.Theme.red:`#333`})})},e);case`deckGrammar`:return(0,K.jsx)(GT,{onClick:this.props.onClickDeckGrammar,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(J.ClassroomIcon,{})})},e);case`tenseDescription`:return(0,K.jsx)(GT,{onClick:this.props.onClickConceptDescription,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(J.ClassroomIcon,{})})},e);case`caseDescription`:return(0,K.jsx)(GT,{onClick:this.props.onClickConceptDescription,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(FT,{width:`24px`,margin:`-3px 0 0 0`})})},e);case`cardComments`:return U.DeckUI.userIsLoaded||this.props.card.commentsCount>0?(0,K.jsx)(GT,{onClick:this.props.onClickCardComments,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(J.ChatIconWithCount,{width:U.DeckUI.layout.minimumHeight?18:22,count:this.props.card.commentsCount,fontSize:U.DeckUI.layout.minimumHeight?`8px`:`10px`,top:U.DeckUI.layout.minimumHeight?`-2px`:`-1px`})})},e):null;case`cardNote`:return(0,K.jsx)(GT,{onClick:this.props.onClickCardNote,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(J.NoteIcon,{showText:(0,W.isPresent)(this.props.card.note)})})},e);case`reviewDetails`:return(0,K.jsx)(GT,{onClick:this.props.onClickReviewDetails,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(J.DotIconWrapper,{showDot:this.props.card.userSubmission&&this.props.card.cardTypeId===q.Constants.REVIEW_CARD_TYPES.find(e=>e.slug===`user_submission`).id&&(0,W.isPresent)(this.props.card.word?.target.videoClip),width:U.DeckUI.layout.minimumHeight?18:22,dotSize:U.DeckUI.layout.minimumHeight?10:14,dotColor:q.Theme.green,children:(0,K.jsx)(J.UpwardProgressIcon,{width:24,height:24})})})},e);case`vocabCard`:return(0,K.jsx)(GT,{onClick:this.props.onClickVocabButton,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{minimumHeight:U.DeckUI.layout.minimumHeight,children:(0,K.jsx)(J.VocabThinIcon,{})})},e);case`grammarTip`:return(0,K.jsx)(GT,{onClick:this.props.onClickGrammarTip,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(FT,{width:`24px`,margin:`-3px 0 0 0`,on:!this.props.cardState.grammarTipSeen})})},e);case`languageButton`:return(0,K.jsx)(GT,{onClick:this.props.onClickLanguageButton,width:(0,W.pixify)(this.props.iconWidth),height:(0,W.pixify)(this.props.iconWidth),right:(0,W.pixify)(this.props.iconRightPos),top:(0,W.pixify)(this.props.iconTop(t)),children:(0,K.jsx)(KT,{children:(0,K.jsx)(ji,{languageId:this.props.cardState.showType===`target`?U.AppUI.deck?.languageId||this.props.card?.languageId||U.AppUI.targetLanguageId||`DE`:this.props.card.sentence.sourceTextForUserLanguageId(U.DeckUI.user)||`EN`})})},e);default:return(0,K.jsx)(`span`,{},e)}})})}},UT.defaultProps={right:`15px`,top:`15px`},UT))||HT,JT=(0,Y.CardIconsWrapper)(qT),YT,XT,ZT=N.div` 3545 height: ${e=>e.height}; 3546 width: ${e=>e.width}; 3547 padding: ${e=>e.padding}; 3548 background: ${e=>e.background}; 3549 display: flex; 3550 flex-direction: column; 3551 align-items: center; 3552 padding: 0 10px 0 10px; 3553 overflow-x: hidden; 3554`,QT=N.div` 3555 width: 100%; 3556 display: flex; 3557 flex-direction: column; 3558 height: ${e=>e.height}; 3559 overflow-y: auto; 3560 margin: 10px 0; 3561 overflow-x: hidden; 3562`,$T=j(YT=(XT=class extends V.Component{render(){return(0,K.jsx)(ZT,{height:(0,W.pixify)(U.DeckUI.layout.deckHeightWithoutHeader),width:(0,W.pixify)(U.DeckUI.layout.deckWidth),padding:(0,W.pixify)(this.props.padding),background:this.props.background,children:(0,K.jsxs)(QT,{height:(0,W.pixify)(U.DeckUI.layout.innerDeckHeightWithoutHeader),children:[this.props.children,(0,W.isPresent)(this.props.icons)&&!U.DeckUI.hideCardIcons&&(0,K.jsx)(JT,{card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,icons:this.props.icons,flagLanguageId:this.props.sourceLanguageId})]})})}},XT.defaultProps={padding:0,background:`#333`},XT))||YT,eE,tE=N.div` 3563 position: absolute; 3564 top: 0; 3565 right: ${e=>e.right}; 3566 left: ${e=>e.left}; 3567 background: orange; 3568 color: white; 3569 z-index: 999; 3570 font-size: 12px; 3571 font-weight: bold; 3572 padding: 5px 15px; 3573`,nE=M(j(eE=class extends V.Component{render(){return(0,K.jsx)(tE,{right:this.props.right,left:this.props.left,children:this.props.children})}})||eE),rE,iE,aE=N.div` 3574 height: ${e=>e.height}; 3575 padding: ${e=>e.padding}; 3576 display: flex; 3577 flex-direction: column; 3578 position: relative; 3579 overflow: ${e=>e.scroll?`auto`:`hidden`}; 3580`,oE=M(j(rE=(iE=class extends V.Component{render(){return(0,K.jsxs)(aE,{scroll:this.props.scroll,height:(0,W.pixify)(this.props.height||U.DeckUI.layout.contentHeight),padding:(0,W.pixify)(this.props.padding),children:[U.DeckUI.layout.debug&&(0,K.jsx)(nE,{right:0,children:this.props.height||U.DeckUI.layout.contentHeight}),this.props.children]})}},iE.defaultProps={padding:0,scroll:!1},iE))||rE);me();var sE,cE,lE=N.div` 3581 display: inline-block; 3582 margin-top: ${e=>e.marginTop||e.marginVertical}; 3583 margin-bottom: ${e=>e.marginBottom||e.marginVertical}; 3584 margin-right: ${e=>e.marginRight||e.marginHorizontal}; 3585 margin-left: ${e=>e.marginLeft||e.marginHorizontal}; 3586 width: ${e=>e.width}; 3587 height: ${e=>e.height}; 3588 position: relative; 3589 min-width: 90px; 3590 position: relative; 3591 div[data-tip="true"] { 3592 height: 100%; 3593 } 3594 svg, .icon-wrapper, .icon { 3595 height: 18px; 3596 width: 18px; 3597 } 3598 .icon { 3599 display: inline-block; 3600 border-radius: 50%; 3601 display: flex; 3602 align-items: center; 3603 justify-content: center; 3604 svg, svg path { 3605 fill: ${e=>e.iconColor}; 3606 } 3607 i { 3608 text-align: center; 3609 font-size: 12px; 3610 } 3611 } 3612 .refresh-icon, .close-icon { 3613 background: ${e=>e.iconColor}; 3614 } 3615 .down-icon i { 3616 height: 11px; 3617 line-height: 9px; 3618 } 3619 .right-icon i { 3620 height: 11px; 3621 margin: 0 0 0 2px; 3622 }
3623 .back-icon i { 3624 height: 11px; 3625 margin: 0 0 0 -2px; 3626 } 3627`,uE=N.button` 3628 background-color: ${e=>e.backgroundColor}; 3629 cursor: ${e=>e.cursor}; 3630 font-size: ${e=>e.fontSize}; 3631 width: ${e=>e.width}; 3632 height: ${e=>e.height}; 3633 i { 3634 color: ${e=>e.backgroundColor}; 3635 } 3636 border-radius: 10px; 3637 text-transform: ${e=>e.textTransform}; 3638 padding: ${e=>e.padding}; 3639 font-weight: bold; 3640 align-items: center; 3641 border: none; 3642`,dE=N.div` 3643 ${(0,X.flexCenterColumn)()} 3644 width: 100%; 3645 height: 100%; 3646`,fE=N.div` 3647 ${(0,X.flexCenterColumn)()} 3648 position: relative; 3649 color: ${e=>e.color}; 3650`,pE=N.div` 3651 ${(0,X.flexCenter)()} 3652`,mE=N.div` 3653 line-height: 18px; 3654 margin: 1px 0 0 3px; 3655 font-size: ${e=>e.fontSize}; 3656 hyphens: auto; 3657`,hE=N.div` 3658 font-size: 11px; 3659 line-height: 11px; 3660 opacity: 0.7; 3661 margin-top: 5px; 3662`,gE=N.div` 3663 height: 100%; 3664`,_E=N.div` 3665 position: absolute; 3666 top: 0; 3667 right: 5px; 3668 font-size: 10px; 3669 font-weight: bold; 3670 opacity: 0.35; 3671 color: ${e=>e.color}; 3672 pointer-events: none; 3673`,vE=j(sE=(cE=class extends V.Component{constructor(e){super(e),this.unbindShortcut=()=>{this.props.shortcut&&zv.default.unbind(this.props.shortcut.toString()),this.props.submitOnEnter&&(zv.default.unbind(`enter`),zv.default.unbind(`right`)),this.props.setShortcutSettings({})},this.assignDelayedShortcut=()=>{setTimeout(this.assignShortcut,100)},this.assignShortcut=()=>{this.props.setShortcutSettings({shortcut:this.props.shortcut,text:this.props.text}),(0,zv.default)(this.props.shortcut.toString(),this.onShortcutPress),this.props.submitOnEnter&&((0,zv.default)(`enter`,this.onShortcutPress),(0,zv.default)(`right`,this.onShortcutPress))},this.onShortcutPress=()=>{!this.props.disabled&&!U.OverlayUI.hasOverlays&&(U.DeckUI.set(`overlayExpanded`,null),this.props.onClick())},this.id=Math.random()}componentDidMount(){this.props.shortcut&&!this.props.disabled&&this.assignDelayedShortcut()}componentDidUpdate(e){!this.props.shortcutAlreadyAssigned&&!this.props.disabled?this.assignDelayedShortcut():this.props.shortcutAlreadyAssigned&&!e.disabled&&this.props.disabled&&this.unbindShortcut()}componentWillUnmount(){this.props.shortcutAlreadyAssigned&&this.unbindShortcut()}render(){return(0,K.jsxs)(lE,{width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),marginTop:(0,W.pixify)(this.props.marginTop),marginBottom:(0,W.pixify)(this.props.marginBottom),marginRight:(0,W.pixify)(this.props.marginRight),marginLeft:(0,W.pixify)(this.props.marginLeft),iconColor:this.props.iconColor,children:[!this.props.disabled&&this.props.shortcut&&!U.DeckUI.layout.isMobile&&(0,K.jsx)(_E,{color:this.props.color,children:this.props.shortcut}),(0,K.jsxs)(gE,{"data-for":this.props.showTooltip?`card-button-${this.id}`:null,"data-tip":this.props.showTooltip,children:[(0,K.jsx)(uE,{width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),fontSize:(0,W.pixify)(this.props.fontSize),textTransform:this.props.textTransform,padding:this.props.padding,borderBottomLeftRadius:this.props.borderBottomLeftRadius,borderBottomRightRadius:this.props.borderBottomRightRadius,borderTopLeftRadius:this.props.borderTopLeftRadius,borderTopRightRadius:this.props.borderTopRightRadius,disabled:this.props.disabled,disabledBorderRight:this.props.disabledBorderRight,cursor:this.props.disabled?`default`:`pointer`,backgroundColor:this.props.backgroundColor,onClick:this.props.onClick,children:(0,K.jsx)(dE,{children:(0,K.jsxs)(fE,{color:this.props.color,children:[(!this.props.disabled||!this.props.hideTextIfDisabled)&&(0,W.isPresent)(this.props.text)&&(0,K.jsxs)(pE,{children:[this.props.icon,(0,K.jsx)(mE,{fontSize:(0,W.pixify)(this.props.fontSize),lang:U.DeckUI.deck.languageId,children:this.props.text})]}),this.props.subText&&(0,K.jsx)(hE,{children:this.props.subText})]})})}),this.props.showTooltip&&!this.props.disabled&&(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:`card-button-${this.id}`,class:`custom-tooltip`,children:this.props.tooltip})]})]})}},cE.defaultProps={disabledBorderRight:`1px solid #929292`,fontSize:16,padding:0,margin:0,width:`100%`,height:`100%`,borderBottomLeftRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:0,borderTopRightRadius:0},cE))||sE,yE=(0,Y.CardButtonWrapper)(vE),bE,xE,SE=j(bE=(xE=class extends V.Component{render(){return(0,K.jsx)(yE,{submitOnEnter:this.props.submitOnEnter,shortcut:this.props.shortcut,text:this.props.text,backgroundColor:this.props.backgroundColor,marginRight:this.props.marginRight,marginLeft:this.props.marginLeft,icon:(0,K.jsx)(J.CaretRightCircleIcon,{}),disabled:this.props.disabled,onClick:this.props.onClick})}},xE.defaultProps={text:`Next Card`,backgroundColor:q.Theme.green,borderTopLeftRadius:10,borderTopRightRadius:10,borderBottomLeftRadius:10,borderBottomRightRadius:10,iconSize:20,iconColor:`#FFF`},xE))||bE,CE,wE,TE=N.div` 3674 ${(0,X.flexCenter)()} 3675 height: 28px; 3676 border-radius: 10px; 3677 margin: ${e=>e.margin}; 3678 width: ${e=>e.width}; 3679 background: ${e=>e.background}; 3680 color: ${e=>e.color}; 3681 border: ${e=>e.border}; 3682 padding: 0px 10px; 3683 font-weight: bold; 3684 font-size: 10px; 3685 text-transform: uppercase; 3686 cursor: pointer; 3687 -webkit-user-select: none; /* Safari */ 3688 -moz-user-select: none; /* Firefox */ 3689 -ms-user-select: none; /* IE10+/Edge */ 3690 user-select: none; /* Standard */ 3691 .fa { 3692 margin: 2px 4px 0px 0px; 3693 color: ${e=>e.color}; 3694 } 3695 .lock-icon { 3696 height: 7px; 3697 margin: -2px 3px 0 0; 3698 svg { 3699 width: 7px; 3700 } 3701 } 3702`,EE=M(j(CE=(wE=class extends V.Component{render(){return(0,K.jsxs)(TE,{color:this.props.color,border:this.props.border,onClick:this.props.onClick,margin:this.props.margin,width:this.props.width,className:`selection-button`,background:this.props.background,children:[!this.props.disabled&&this.props.icon,this.props.disabled&&(0,K.jsx)(J.LockIcon,{}),this.props.children]})}},wE.defaultProps={color:`#636363`,border:`2px solid #636363`},wE))||CE),DE,OE=N.div` 3703 display: flex; 3704 flex-direction: row; 3705 flex-wrap: wrap; 3706 padding: 0 10px; 3707 background: ${e=>e.background}; 3708 text-align: left; 3709 position: relative; 3710 justify-content: flex-end; 3711 width: 100%; 3712 min-height: 40px; 3713 align-items: center; 3714 .inner-row { 3715 display: flex; 3716 width: 100%; 3717 } 3718 .already-added { 3719 font-size: 12px; 3720 font-style: italic; 3721 color: ${q.Theme.gray}; 3722 } 3723`,kE=N.div` 3724 flex: 1; 3725 font-weight: ${e=>e.fontWeight}; 3726 font-size: 14px; 3727 display: flex; 3728`,AE=N.div` 3729 ${(0,X.flexCenter)()} 3730 width: 30px; 3731 .fa-check { 3732 color: ${q.Theme.green}; 3733 } 3734 .fa-times { 3735 color: ${q.Theme.red}; 3736 } 3737`,jE=N.div` 3738 ${(0,X.flexCenter)()} 3739`,ME=N.div` 3740 ${(0,X.flexCenter)()} 3741 width: 120px; 3742 .bookmark-icon { 3743 svg { 3744 width: 14px; 3745 } 3746 #background { 3747 fill: ${q.Theme.blue}; 3748 } 3749 #border { 3750 fill: #FFF; 3751 } 3752 margin-right: 3px; 3753 } 3754 .star-with-circle-icon { 3755 fill: #FFF; 3756 margin-right: 3px; 3757 } 3758`,NE=N.div` 3759 ${(0,X.flexCenter)()} 3760 font-size: 12px; 3761 line-height: 18px; 3762 cursor: pointer; 3763 .icon-wrapper { 3764 display: flex; 3765 align-items: center; 3766 margin-right: 5px; 3767 } 3768 .check-with-circle-icon svg { 3769 fill: ${q.Theme.green}; 3770 width: 18px; 3771 height: 18px; 3772 } 3773`,PE=j(DE=class extends V.Component{get synonymAssociation(){return this.props.card.word?.synonymAssociations?.find(e=>e.id===this.props.card.synonymAssociationId)}get synonymPairText(){return this.props.card.cardType?.slug!==`synonym`||!this.synonymAssociation?.synonym?null:`${this.props.card.word?.targetTextWithDefiniteArticle||this.props.card.word?.targetText} / ${this.synonymAssociation.synonym.targetTextWithDefiniteArticle||this.synonymAssociation.synonym.targetText}`}get isSynonymCard(){return this.props.card.cardType?.slug===`synonym`}get translation(){return!this.isSynonymCard||!(0,W.isPresent)(this.synonymPairText)?this.props.deckSummaryCard.props.summaryTranslationForCard(this.props.card):{...this.props.card.word,targetText:this.synonymPairText,targetTextWithDefiniteArticle:this.synonymPairText,sourceText:this.props.card.word.sourceText,sourceTextForUser:e=>this.props.card.word.sourceTextForUser(e),sourceTextForUserLanguageId:e=>this.props.card.word.sourceTextForUserLanguageId(e)}}render(){return(0,K.jsxs)(OE,{children:[(0,K.jsxs)(`div`,{className:`inner-row`,children:[(0,K.jsx)(kE,{children:(0,K.jsx)(Gi,{flex:`none`,translation:this.translation,languageButtonWrapperWidth:`18px`,user:U.DeckUI.user})}),(this.props.card.cardType?.slug===`gender`||this.props.card.cardType?.slug===`plural`||this.props.card.cardType?.slug===`conjugation`||this.props.card.cardType?.slug===`case_multiple_choice`||this.props.card.cardType?.slug===`case_fill_in_the_blanks`)&&(0,K.jsxs)(AE,{children:[this.props.deckSummaryCard.props.userCardForId(this.props.card.id).firstAnswerCorrect&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!this.props.deckSummaryCard.props.userCardForId(this.props.card.id).firstAnswerCorrect&&(0,K.jsx)(`i`,{className:`fa fa-times`})]}),[`vocab_word_translate`,`gender`,`plural`,`conjugation`,`synonym`,`number_options`,`number_translate`,`case_multiple_choice`,`case_fill_in_the_blanks`].includes(this.props.card.cardType?.slug)&&this.props.card.word&&(0,K.jsx)(jE,{children:(0,K.jsx)(J.LearnedIcon,{showTooltip:!0,width:`28px`,id:this.props.card.word.id,selected:this.props.deckSummaryCard.props.isLearned(this.props.card.word.id),onClick:()=>this.props.deckSummaryCard.props.onToggleLearned(this.props.card.word.id)})}),(0,K.jsxs)(ME,{children:[!this.props.reviewCard&&(0,K.jsx)(EE,{width:`110px`,icon:(0,K.jsx)(`i`,{className:`fa fa-plus`}),onClick:()=>U.DeckUI.onToggleReview(this.props.card,this.props.deckSummaryCard.props.deckId),background:q.Theme.blue,color:`white`,border:`none`,children:`Review`}),this.props.reviewCard&&(0,K.jsxs)(NE,{onClick:()=>U.DeckUI.onToggleReview(this.props.card,this.props.deckSummaryCard.props.deckId),children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),`Reviewing`]})]})]}),(0,W.isPresent)(this.props.decksWithReviewCard)&&(0,K.jsxs)(`div`,{className:`already-added`,children:[(0,W.isPresent)(this.props.reviewCard)?`Also`:`Already`,` added to `,this.props.decksWithReviewCard,`.`]})]})}})||DE,FE,IE=N.div` 3774 margin-top: 20px; 3775 width: 100%; 3776 display: flex; 3777 flex-direction: column; 3778 flex-shrink: 0; 3779`,LE=N.div` 3780 text-align: center; 3781 font-style: italic; 3782 cursor: pointer; 3783 text-decoration: underline; 3784 font-size: 12px; 3785`,nce=N.div` 3786 display: flex; 3787 flex-direction: row; 3788 flex-wrap: wrap; 3789 padding: 0 10px; 3790 background: ${e=>e.background}; 3791 text-align: left; 3792 position: relative; 3793 justify-content: flex-end; 3794 width: 100%; 3795 min-height: 40px; 3796 align-items: center; 3797 .inner-row { 3798 display: flex; 3799 width: 100%; 3800 } 3801 .already-added { 3802 font-size: 12px; 3803 font-style: italic; 3804 color: ${q.Theme.gray}; 3805 } 3806`,rce=N.div` 3807 ${(0,X.flexCenter)()} 3808 width: 120px;
3809`,ice=N.div` 3810 height: 100%; 3811 display: flex; 3812 flex-direction: column; 3813 flex-shrink: 0; 3814 align-items: center; 3815 padding: 20px 10px; 3816 background: white; 3817 overflow: auto; 3818 margin-bottom: 10px; 3819 border-radius: 10px; 3820`,ace=N.div` 3821 margin: 5px 0; 3822 font-weight: bold; 3823`,oce=N.div` 3824 padding: 0 10px 10px 10px; 3825 font-size: 14px; 3826 line-height: 18px; 3827 margin: 0 0 0 0; 3828 display: flex; 3829 flex-direction: column; 3830 align-items: center; 3831 img { 3832 margin-top: 5px; 3833 cursor: pointer; 3834 } 3835`,sce=N.div` 3836 width: 100%; 3837 border-radius: 5px; 3838 padding: 10px; 3839 margin-top: 10px; 3840`,cce=N.div` 3841 background: ${e=>e.background}; 3842 padding: 10px 0; 3843`,lce=N.div` 3844 cursor: pointer; 3845 i { 3846 margin: 4px 0 0 5px; 3847 font-size: 17px; 3848 } 3849`,uce=N.div` 3850 flex: 1; 3851 font-weight: ${e=>e.fontWeight}; 3852 font-size: 14px; 3853 display: flex; 3854`,dce=N.div` 3855 display: flex; 3856 flex-direction: column; 3857 align-items: center; 3858 margin-bottom: 20px; 3859 background: whitesmoke; 3860 padding: 5px 0; 3861`,fce=j(FE=class extends V.Component{render(){return(0,K.jsxs)($T,{children:[(0,K.jsx)(oE,{scroll:!0,children:(0,K.jsxs)(ice,{children:[(0,K.jsx)(lce,{children:(0,K.jsx)(R,{heading:`3`,children:`Create Reviews`})}),(0,K.jsx)(LE,{onClick:this.props.toggleShowFaq,children:`What are Reviews?`}),this.props.showFaq&&(0,K.jsx)(sce,{children:this.props.faqItems.map((e,t)=>(0,K.jsxs)(cce,{background:t%2==0?`whitesmoke`:`#FFF`,children:[(0,K.jsx)(ace,{children:e.question}),(0,K.jsxs)(oce,{children:[e.answerWeb||e.answer,e.image&&(0,K.jsx)(`img`,{style:{width:(0,W.pixify)(e.imageWidth)},src:`/images/${e.image}`,onClick:()=>U.AppUI.routeStore.routeToNamed(e.webRoute),alt:``})]})]},e.question))}),this.props.reviewDeckOptions.length>1&&(0,K.jsx)(Fi,{allowUpdate:!0,margin:`20px 0 0 0`,options:this.props.reviewDeckOptions,value:this.props.deckId,onChange:e=>this.props.onSetDeckId(e)}),(0,K.jsx)(IE,{children:this.props.cardTypesForPotentialReview.map(e=>(0,K.jsxs)(dce,{children:[(0,K.jsxs)(nce,{children:[(0,K.jsxs)(uce,{fontWeight:`bold`,children:[e.cardTypeName,` Cards`]}),!this.props.allReviewsSelectedForCardType(e.cardTypeId)&&this.props.cardsForPotentialReview&&this.props.cardsForPotentialReview.filter(t=>t.cardType.id===e.cardTypeId).length>1&&(0,K.jsx)(rce,{children:(0,K.jsx)(EE,{width:`110px`,background:`#FFF`,icon:(0,K.jsx)(`i`,{className:`fa fa-plus`}),onClick:()=>this.props.onReviewAllForCardType(e.cardTypeId),children:`Review All`})})]}),this.props.cardsForPotentialReview?.filter(t=>t.cardType.id===e.cardTypeId&&this.props.showCardInSummary(t)).map(e=>(0,K.jsx)(PE,{card:e,deckSummaryCard:this,reviewCard:this.props.findReviewCardForCard(e),decksWithReviewCard:this.props.getDecksWithReviewCard(e)},e.id))]},e.cardTypeId))})]})}),(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{text:`Finish Deck`,disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),shortcut:`1`,submitOnEnter:!0})})]})}})||FE,pce=(0,Y.DeckSummaryCardWrapper)(fce),RE,zE=M(j(RE=class extends V.Component{render(){return(0,K.jsx)(MT,{height:U.DeckUI.layout.buttonHeight-10,margin:this.props.margin,width:`calc(100% - 20px)`,children:(0,K.jsx)(yE,{submitOnEnter:this.props.submitOnEnter,shortcut:this.props.shortcut,borderTopLeftRadius:10,borderTopRightRadius:10,borderBottomLeftRadius:10,borderBottomRightRadius:10,text:this.props.text||`Next Card`,backgroundColor:q.Theme.green,icon:(0,K.jsx)(J.RightIcon,{}),disabled:this.props.disabled,onClick:this.props.onClick})})}})||RE),BE,VE,mce=Math.round(Math.PI*175*2),hce=(e=0)=>Math.round((100-Math.min(e,100))/100*mce),gce=M(j(BE=(VE=class extends V.Component{render(){let{progress:e,size:t,bgColor:n,progressColor:r,lineWidth:i,animate:a,animationDuration:o,roundedStroke:s,responsive:c,onAnimationEnd:l}=this.props,u=hce(e),d=a?`stroke-dashoffset ${o} ease-out`:void 0,f=s?`round`:`butt`,p=c?`100%`:t;return(0,K.jsxs)(`svg`,{width:p,height:p,viewBox:`-25 -25 400 400`,children:[(0,K.jsx)(`circle`,{stroke:n,cx:`175`,cy:`175`,r:`175`,strokeWidth:i,fill:`none`}),(0,K.jsx)(`circle`,{stroke:r,transform:`rotate(-90 175 175)`,cx:`175`,cy:`175`,r:`175`,strokeDasharray:`1100`,strokeWidth:i,strokeDashoffset:`1100`,strokeLinecap:f,fill:`none`,style:{strokeDashoffset:u,transition:d,animationPlayState:a?`running`:`paused`},onTransitionEnd:l})]})}},VE.defaultProps={progress:0,animate:!0,animationDuration:`1s`,showPercentage:!0,showPercentageSymbol:!0,progressColor:`rgb(76, 154, 255)`,bgColor:`#ecedf0`,textColor:`#6b778c`,size:`100`,lineWidth:`25`,percentSpacing:10},VE))||BE);D();var HE,UE;function WE(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _ce=N.div` 3862 display: flex; 3863 flex-direction: ${e=>e.flexDirection}; 3864 align-items: center; 3865`,vce=N.div` 3866 margin: ${e=>e.margin}; 3867 color: white; 3868 font-weight: bold; 3869 line-height: 16px; 3870 font-size: 16px; 3871`,yce=N.div` 3872 margin: ${e=>e.margin}; 3873 background: ${q.Theme.green}; 3874 width: 30px; 3875 font-size: 12px; 3876 font-weight: bold; 3877 border-radius: 5px; 3878 color: white; 3879 line-height: 18px; 3880 padding: 3px 5px; 3881`,bce=N.div` 3882 display: flex; 3883 flex-direction: column; 3884 align-items: ${e=>e.alignItems}; 3885 padding-left: ${e=>e.paddingLeft}; 3886 padding-right: ${e=>e.paddingRight}; 3887`,xce=N.div` 3888 order: ${e=>e.align===`right`?1:-1}; 3889`,Sce=N.div` 3890 position: relative; 3891 ${(0,X.flexCenter)()} 3892 background: ${e=>e.background}; 3893 width: ${e=>e.width}; 3894 height: ${e=>e.width}; 3895 border-radius: 50%; 3896 .RadialProgressIndicator__label { 3897 display: none; 3898 } 3899`,Cce=N.div` 3900 position: absolute; 3901 top: 0; 3902 left: 0; 3903 width: ${e=>e.width}; 3904 height: ${e=>e.width}; 3905 z-index: 3; 3906`,wce=N.div` 3907 ${(0,X.flexCenter)()} 3908 position: absolute; 3909 border-radius: 50%; 3910 top: 0; 3911 left: 0; 3912 z-index: 2; 3913 width: ${e=>e.width}; 3914 height: ${e=>e.width}; 3915 background: rgba(0, 0, 0, 0.5); 3916 font-size: 16px; 3917 font-weight: bold; 3918 color: rgba(255, 255, 255, 0.8); 3919 padding: 1px 0 0 0; 3920`,GE=M(j(HE=(UE=class extends V.Component{get margin(){return this.props.nameMargin?this.props.nameMargin:this.props.align===`left`?`0 0 3px 5px`:this.props.align===`right`?`0 5px 3px 0`:null}get progressColor(){return this.props.turn&&this.props.turn.correct===!1?q.Theme.red:this.props.turn&&this.props.turn.correct?q.Theme.green:q.Theme.orange}render(){return(0,K.jsxs)(_ce,{flexDirection:this.props.flexDirection,children:[(0,K.jsx)(xce,{align:this.props.align,children:(0,K.jsxs)(Sce,{width:(0,W.pixify)(this.props.timerWidth),background:`#565656`,children:[this.props.turn&&
3920(this.props.turn.correct||this.props.turn.correct===!1)&&(0,K.jsxs)(wce,{width:(0,W.pixify)(this.props.timerWidth),children:[`+`,this.props.turn.points]}),(0,K.jsx)(Mg,{user:this.props.user,width:(0,W.pixify)(this.props.userProfileImageWidth),hideProStatus:this.props.hideProStatus,border:this.props.userProfileBorder}),(0,K.jsx)(Cce,{width:this.props.timerWidth,children:this.props.turn&&this.props.showTimer&&(0,K.jsx)(gce,{animate:this.props.turn.timerActive,responsive:!1,animationDuration:`20s`,size:this.props.timerWidth,lineWidth:`45`,progress:this.props.turn.timerProgress,bgColor:`#565656`,progressColor:this.progressColor,roundedStroke:!1,showPercentage:!1,showPercentageSymbol:!1})})]})}),(0,K.jsxs)(bce,{alignItems:this.props.flexDirection===`row`?`flex-start`:`flex-end`,paddingLeft:this.props.flexDirection===`row`?`5px`:null,paddingRight:this.props.flexDirection===`row`?null:`5px`,children:[!this.props.hideName&&(0,K.jsx)(vce,{margin:this.margin,fontSize:this.props.nameFontSize,children:this.props.user?.firstName}),(0,W.isPresent)(this.props.points)&&(0,K.jsx)(yce,{margin:this.margin,children:this.props.points})]})]})}},WE(UE.prototype,`margin`,[E],Object.getOwnPropertyDescriptor(UE.prototype,`margin`),UE.prototype),WE(UE.prototype,`progressColor`,[E],Object.getOwnPropertyDescriptor(UE.prototype,`progressColor`),UE.prototype),UE))||HE),KE,Tce=N.div` 3921 margin-top: 20px; 3922`,Ece=N.div` 3923 position: relative; 3924 color: white; 3925 display: flex; 3926 flex-direction: column; 3927 align-items: center; 3928 hr { 3929 position: absolute; 3930 z-index: 1; 3931 width: 100%; 3932 top: 0; 3933 bottom: 0; 3934 margin: auto; 3935 } 3936`,Dce=N.div` 3937 color: white; 3938 font-size: 14px; 3939 background: #333; 3940 display: inline-block; 3941 z-index: 2; 3942 padding: 10px; 3943 text-align: center; 3944`,Oce=N.div` 3945 ${(0,X.flexCenter)()} 3946 background: white; 3947 margin: 2px 10px; 3948 padding: 10px; 3949 border-radius: 5px; 3950`,qE=N.div` 3951 display: flex; 3952 align-items: center; 3953 flex: 1; 3954 text-align: left; 3955 padding-left: 5px; 3956 font-size: 16px; 3957 line-height: 20px; 3958 margin: ${e=>e.margin}; 3959 .icon-wrapper { 3960 margin-right: 5px; 3961 height: 20px; 3962 } 3963`,kce=N.div` 3964 display: flex; 3965 flex-direction: column; 3966`,JE=j(KE=class extends V.Component{render(){return(0,K.jsxs)(Tce,{children:[(0,K.jsx)(Ece,{children:(0,K.jsx)(Dce,{children:this.props.title||`Some Words That Will Help`})}),this.props.deck.words.map(e=>e.vocabSourceListForUser(this.props.user)?(0,K.jsxs)(Oce,{children:[(0,K.jsxs)(qE,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:this.props.deck.languageId}),(0,K.jsx)(Vi,{height:25,width:this.props.layout.innerDeckWidth/2-50,characterLength:e.targetTextWithDefiniteArticle?e.targetTextWithDefiniteArticle.length:0,maximumFontSize:16,lineHeightOffset:3,children:(0,K.jsx)(R,{children:e.targetTextWithDefiniteArticle})})]}),(0,K.jsx)(qE,{children:(0,K.jsx)(kce,{children:e.vocabSourceForUser(this.props.user).slice(0,3).map(e=>(0,K.jsxs)(qE,{margin:`2px 0`,children:[(0,K.jsx)(J.LanguageIcon,{languageId:e.source&&e.source.languageId,user:this.props.user}),e.source&&e.source.text]},e.id))})})]},e.id):null)]})}})||KE,YE,Ace=N.div` 3967 ${(0,X.flexCenterColumn)()} 3968 height: ${e=>e.height}; 3969 position: relative; 3970 background: #333; 3971`,jce=N.div` 3972 flex: 1; 3973 width: 100%; 3974 overflow-y: auto; 3975 overflow-x: hidden; 3976`,Mce=N.div` 3977 ${(0,X.flexCenter)()} 3978`,Nce=N.div` 3979 margin: 0 30px; 3980 color: white; 3981`,Pce=N.div` 3982 padding: 0 10px; 3983`,Fce=j(YE=class extends V.Component{render(){return(0,K.jsxs)(Ace,{height:(0,W.pixify)(U.DeckUI.layout.contentHeightWithoutButtons),width:(0,W.pixify)(U.DeckUI.layout.deckWidth),children:[(0,K.jsxs)(jce,{children:[(0,K.jsx)(R,{heading:`2`,color:`white`,textAlign:`center`,margin:`20px 0`,children:`PLAY TRIVIA`}),(0,K.jsxs)(Mce,{children:[(0,K.jsx)(GE,{flexDirection:`column`,nameMargin:`5px 0 0 0`,vertical:!0,hideProStatus:!0,user:U.DeckUI.user,nameFontSize:`16px`,userProfileImageWidth:100,userProfileBorder:`5px solid white`}),this.props.hasOpponent&&(0,K.jsx)(Nce,{children:`vs`}),this.props.hasOpponent&&(0,K.jsx)(GE,{flexDirection:`column`,nameMargin:`5px 0 0 0`,vertical:!0,hideProStatus:!0,user:this.props.opponent,nameFontSize:`16px`,userProfileImageWidth:100,userProfileBorder:`5px solid white`})]}),this.props.hasOpponent&&!U.DeckUI.user.wasUiElementSeen(`trivia-opponent`)&&(0,K.jsx)(Pce,{children:(0,K.jsxs)(XC,{margin:`10px 0`,background:`#bfbfbf`,color:`#333`,border:`1px solid #9a9a9a`,uiElement:`trivia-opponent`,children:[`You are playing vs a previous performance of your opponent. Feel free to `,(0,K.jsx)(`b`,{children:`take your time between turns`}),`. Don't rush and most importantly, have fun!`]})}),(0,K.jsx)(JE,{deck:U.DeckUI.deck,user:U.DeckUI.user,layout:U.DeckUI.layout})]}),(0,K.jsx)(zE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),shortcut:`1`,submitOnEnter:!0,text:`Start Game`,margin:`10px 0`})]})}})||YE,Ice=(0,Y.TriviaIntroCardWrapper)(Fce);D();var XE,ZE,QE;function Lce(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Rce(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var zce=N.div` 3984 border: 5px solid #00c1ee; 3985 border-radius: 50%; 3986 width: 200px; 3987 height: 200px; 3988 background: white; 3989 border-radius: 50%; 3990 ${(0,X.flexCenterColumn)()} 3991`,Bce=M(j(XE=(ZE=class extends V.Component{constructor(...e){super(...e),Lce(this,`scale`,QE,this),this.setDelayedInitiateAnimation=()=>{setTimeout(this.initiateAnimation,100)},this.initiateAnimation=()=>{this.scale=1,this.props.percentageCorrect>=50?U.AppUI.soundEffectStore.play(`horn`):U.AppUI.soundEffectStore.play(`lostGame`)}}componentDidMount(){this.props.inView&&this.scale===0&&this.setDelayedInitiateAnimation()}componentDidUpdate(e){this.scale===0&&!e.inView&&this.props.inView&&this.setDelayedInitiateAnimation()}render(){return(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.scale,Rv.presets.wobbly)},children:({scale:e})=>(0,K.jsx)(zce,{style:{transform:`scale(${e})`}
3991,children:(0,K.jsx)(NS,{hideTooltip:!0,margin:0,fontSize:`30px`,lineHeight:`34px`,colors:[q.Theme.green,`#D8D8D8`],data:[{y:this.props.correctCount},{y:this.props.numCards-this.props.correctCount}],width:180,count:`${this.props.percentageCorrect}%`})})})}},QE=Rce(ZE.prototype,`scale`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ZE))||XE),$E,Vce=N.div` 3992 ${(0,X.flexCenterColumn)()} 3993 position: relative; 3994 z-index: ${q.Theme.z[`card-2`]}; 3995 width: 100%; 3996 height: ${e=>e.height}; 3997 background: ${q.Theme.darkestBlue}; 3998 border-radius: 10px; 3999`,Hce=N.div` 4000 z-index: 0; 4001 position: absolute; 4002 background: #f1f1f1; 4003 border-bottom-left-radius: 10px; 4004 border-bottom-right-radius: 10px; 4005 height: ${e=>e.height}; 4006 bottom: 0; 4007 width: 100%; 4008`,Uce=N.div` 4009 display: inline-flex; 4010 align-items: center; 4011 justify-content: center; 4012 font-size: 24px; 4013 font-weight: bold; 4014 margin-bottom: 20px; 4015 color: white; 4016 @media (max-height: 500px) { 4017 display: none; 4018 } 4019`,Wce=N.div` 4020 top: auto; 4021 right: auto; 4022 position: relative; 4023 margin: -2px 5px 0 0; 4024`,Gce=N.div` 4025 z-index: 1; 4026`,Kce=j($E=class extends V.Component{render(){return(0,K.jsxs)($T,{children:[(0,K.jsx)(oE,{children:(0,K.jsxs)(Vce,{height:(0,W.pixify)(U.DeckUI.layout.contentHeight),children:[(0,K.jsx)(Hce,{height:(0,W.pixify)(U.DeckUI.layout.contentHeight/2)}),(0,K.jsxs)(Uce,{children:[(0,K.jsx)(Wce,{children:(0,K.jsx)(ji,{width:`25px`,background:`#254F6A`,arrowColor:`#FFF`,languageId:this.props.messageType===`target`?this.props.languageId:this.props.sourceLanguageId,onClick:this.props.onToggleMessageType})}),this.props.message&&this.props.message[this.props.messageType]]}),(0,K.jsx)(Bce,{inView:this.props.inView,correctCount:this.props.correctCount,numCards:this.props.numCards,percentageCorrect:this.props.percentageCorrect}),(0,K.jsx)(Gce,{children:(0,K.jsxs)(R,{bold:!0,margin:`20px 0 0 0`,children:[`You got `,this.props.correctCount,` / `,this.props.numCards,` correct on the first try!`]})})]})}),(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),submitOnEnter:!0,shortcut:`1`})})]})}})||$E,eD=(0,Y.ResultsCardWrapper)(Kce),qce=class extends V.Component{render(){return(0,K.jsxs)(`svg`,{viewBox:`0 0 243 36`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{x1:`50%`,y1:`100%`,x2:`50%`,y2:`-2.48949813e-15%`,id:`linearGradient-1`,children:[(0,K.jsx)(`stop`,{stopColor:`#74C342`,offset:`0%`}),(0,K.jsx)(`stop`,{stopColor:`#F7EE52`,stopOpacity:`0.84057971`,offset:`100%`})]})}),(0,K.jsx)(`g`,{id:`Page-1`,stroke:`none`,strokeWidth:`1`,fill:`none`,children:(0,K.jsx)(`path`,{d:`M12.1823204,31.8729282 L12.1823204,21.9779006 L0.944751381,6.71270718 C0.397790055,5.96685083 0,5.0718232 0,3.97790055 C0,1.93922652 1.69060773,0.298342541 3.82872928,0.298342541 C5.56906077,0.298342541 6.66298343,1.24309392 7.60773481,2.63535912 L16.0607735,14.8176796 L24.6629834,2.5359116 C25.6077348,1.14364641 26.7513812,0.248618785 28.3425414,0.248618785 C30.679558,0.248618785 32.0718232,1.88950276 32.0718232,3.97790055 C32.0718232,5.02209945 31.5745856,5.96685083 31.0773481,6.66298343 L19.839779,21.8287293 L19.839779,31.8729282 C19.839779,34.0110497 18.1491713,35.7016575 16.0110497,35.7016575 C13.8729282,35.7016575 12.1823204,34.0110497 12.1823204,31.8729282 Z M50.0543379,36 C39.3140064,36 31.6068241,27.9944751 31.6068241,18.0994475 L31.6068241,18 C31.6068241,8.10497238 39.4134539,0 50.1537854,0 C60.8941169,0 68.6012992,8.00552486 68.6012992,17.9005525 L68.6012992,18 C68.6012992,27.8950276 60.7946694,36 50.0543379,36 Z M50.1537854,28.9392265 C56.3195312,28.9392265 60.5957743,24.0662983 60.5957743,18.0994475 L60.5957743,18 C60.5957743,12.0331492 56.2200837,7.06077348 50.0543379,7.06077348 C43.888592,7.06077348 39.6123489,11.9337017 39.6123489,17.9005525 L39.6123489,18 C39.6123489,23.9668508 43.9880395,28.9392265 50.1537854,28.9392265 Z M87.5285653,35.9502762 C78.180499,35.9502762 72.4622669,30.7292818 72.4622669,20.4861878 L72.4622669,4.12707182 C72.4622669,1.98895028 74.1528746,0.298342541 76.2909962,0.298342541 C78.4291177,0.298342541 80.1197255,1.98895028 80.1197255,4.12707182 L80.1197255,20.2872928 C80.1197255,25.9558011 82.9539796,28.8895028 87.6280128,28.8895028 C92.302
40260459,28.8895028 95.1363001,26.0552486 95.1363001,20.5359116 L95.1363001,4.12707182 C95.1363001,1.98895028 96.8269078,0.298342541 98.9650293,0.298342541 C101.103151,0.298342541 102.793759,1.98895028 102.793759,4.12707182 L102.793759,20.2375691 C102.793759,30.7790055 96.8766316,35.9502762 87.5285653,35.9502762 Z M128.267075,32.8176796 L118.521219,5.46961326 C118.372048,5.02209945 118.222876,4.47513812 118.222876,4.02762431 C118.222876,1.88950276 120.012932,0.298342541 122.151053,0.298342541 C123.941108,0.298342541 125.383097,1.44198895 125.880335,3.03314917 L132.791937,24.3646409 L139.753263,3.2320442 C140.349948,1.44198895 141.69249,0.198895028 143.631716,0.198895028 L144.228401,0.198895028 C146.167628,0.198895028 147.510169,1.39226519 148.106854,3.2320442 L155.06818,24.3646409 L161.979782,3.03314917 C162.47702,1.54143646 163.769838,0.298342541 165.65934,0.298342541 C167.747738,0.298342541 169.438346,1.88950276 169.438346,3.97790055 C169.438346,4.42541436 169.289175,5.02209945 169.140003,5.46961326 L159.394147,32.8176796 C158.698014,34.7569061 157.256026,35.9502762 155.416247,35.9502762 L154.620666,35.9502762 C152.780887,35.9502762 151.388622,34.8066298 150.69249,32.8176796 L143.830611,12.878453 L136.968733,32.8176796 C136.2726,34.8066298 134.880335,35.9502762 133.040556,35.9502762 L132.244976,35.9502762 C130.405197,35.9502762 128.963208,34.7569061 128.267075,32.8176796 Z M188.813126,36 C178.072794,36 170.365612,27.9944751 170.365612,18.0994475 L170.365612,18 C170.365612,8.10497238 178.172242,0 188.912573,0 C199.652905,0 207.360087,8.00552486 207.360087,17.9005525 L207.360087,18 C207.360087,27.8950276 199.553457,36 188.813126,36 Z M188.912573,28.9392265 C195.078319,28.9392265 199.354562,24.0662983 199.354562,18.0994475 L199.354562,18 C199.354562,12.0331492 194.978872,7.06077348 188.813126,7.06077348 C182.64738,7.06077348 178.371137,11.9337017 178.371137,17.9005525 L178.371137,18 C178.371137,23.9668508 182.746827,28.9392265 188.912573,28.9392265 Z M211.768016,31.9226519 L211.768016,4.22651934 C211.768016,2.08839779 213.458624,0.397790055 215.596745,0.397790055 L216.392326,0.397790055 C218.232105,0.397790055 219.326027,1.29281768 220.370226,2.63535912 L235.138182,22.0276243 L235.138182,4.07734807 C235.138182,1.98895028 236.82879,0.298342541 238.917187,0.298342541 C241.005585,0.298342541 242.696193,1.98895028 242.696193,4.07734807 L242.696193,31.7734807 C242.696193,33.9116022 241.005585,35.6022099 238.867464,35.6022099 L238.618845,35.6022099 C236.779066,35.6022099 235.685143,34.7071823 234.640944,33.3646409 L219.326027,13.2762431 L219.326027,31.9226519 C219.326027,34.0110497 217.63542,35.7016575 215.547022,35.7016575 C213.458624,35.7016575 211.768016,34.0110497 211.768016,31.9226519 Z`,id:`YOU-WON`,fill:`url(#linearGradient-1)`})})]})}},Jce=class extends V.Component{render(){return(0,K.jsxs)(`svg`,{viewBox:`0 0 245 37`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,id:`linearGradient-1`,children:[(0,K.jsx)(`stop`,{stopColor:`#E48F26`,offset:`0%`}),(0,K.jsx)(`stop`,{stopColor:`#DBD72C`,offset:`100%`})]})}),(0,K.jsx)(`g`,{id:`Page-1`,stroke:`none`,strokeWidth:`1`,fill:`none`,children:(0,K.jsx)(`path`,{d:`M12.2500002,32.45 L12.2500002,22.5 L0.950000191,7.15 C0.400000191,6.4 1.90734909e-07,5.5 1.90734909e-07,4.4 C1.90734909e-07,2.35 1.70000019,0.7 3.85000019,0.7 C5.60000019,0.7 6.70000019,1.65 7.65000019,3.05 L16.1500002,15.3 L24.8000002,2.95 C25.7500002,1.55 26.9000002,0.65 28.5000002,0.65 C30.8500002,0.65 32.2500002,2.3 32.2500002,4.4 C32.2500002,5.45 31.7500002,6.4 31.2500002,7.1 L19.9500002,22.35 L19.9500002,32.45 C19.9500002,34.6 18.2500002,36.3 16.1000002,36.3 C13.9500002,36.3 12.2500002,34.6 12.2500002,32.45 Z M50.5500001,36.6 C39.7500001,36.6 32.0000001,28.55 32.0000001,18.6 L32.0000001,18.5 C32.0000001,8.55 39.8500001,0.4 50.6500001,0.4 C61.4500001,0.4 69.2000001,8.45 69.2000001,18.4 L69.2000001,18.5 C69.2000001,28.45 61.3500001,36.6 50.5500001,36.6 Z M50.6500001,29.5 C56.8500001,29.5 61.1500001,24.6 61.1500001,18.6 L61.1500001,18.5 C61.1500001,12.5 56.7500001,7.5 50.5500001,7.5 C44.3500001,7.5 40.0500001,12.4 40.0500001,18.4 L40.0500001,18.5 C40.0500001,24.5 44.4500001,29.5 50.6500001,29.5 Z M88.4500001,36.55 C79.0500001,36.55 73.3000001,31.3 73.3000001,21 L73.3000001,4.55 C73.3000001,2.4 75.0000001,0.7 77.1500001,0.7 C79.3000001,0.7 81.0000001,2.4 81.0000001,4.55 L81.0000001,20.8 C81.0000001,26.5 83.8500001,29.45 88.5500001,29.45 C93.2500001,29.45 96.1000001,26.6 96.1000001,21.05 L96.1000001,4.55 C96.1000001,2.4 97.8000001,0.7 99.9500001,0.7 C102.1,0.7 103.8,2.4 103.8,4.55 L103.8,20.75 C103.8,31.35 97.8500001,36.55 88.4500001,36.55 Z M122.25,32.15 L122.25,4.55 C122.25,2.4 123.95,0.7 126.1,0.7 C128.25,0.7 129.95,2.4 129.95,4.55 L129.95,29 L144.2,29 C146.15,29 147.7,30.55 147.7,32.5 C147.7,34.45 146.15,36 144.2,36 L126.1,36 C123.95,36 122.25,34.3 122.25,32.15 Z M166,36.6 C155.2,36.6 147.45,28.55 147.45,18.6 L147.45,18.5 C147.45,8.55 155.3,0.4 166.1,0.4 C176.9,0.4 184.65,8.45 184.65,18.4 L184.65,18.5 C184.65,28.45 176.8,36.6 166,36.6 Z M166.1,29.5 C172.3,29.5 176.6,24.6 176.6,18.6 L176.6,18.5 C176.6,12.5 172.2,7.5 166,7.5 C159.8,7.5 155.5,12.4 155.5,18.4 L155.5,18.5 C155.5,24.5 159.9,29.5 166.1,29.5 Z M201.5,36.5 C196.9,36.5 192.25,35.1 188.35,32.3 C187.5,31.7 186.9,30.6 186.9,29.4 C186.9,27.4 188.5,25.85 190.5,25.85 C191.5,25.85 192.2,26.2 192.7,26.55 C195.35,28.5 198.25,29.7 201.65,29.7 C204.8,29.7 206.7,28.45 206.7,26.4 L206.7,26.3 C206.7,24.35 205.5,23.35 199.65,21.85 C192.6,20.05 188.05,18.1 188.05,11.15 L188.05,11.05 C188.05,4.7 193.15,0.5 200.3,0.5 C204.55,0.5 208.25,1.6 211.4,3.6 C212.25,4.1 213.1,5.15 213.1,6.65 C213.1,8.65 211.5,10.2 209.5,10.2 C208.75,10.2 208.15,10 207.55,9.65 C205,8.15 202.6,7.3 200.2,7.3 C197.25,7.3 195.7,8.65 195.7,10.35 L195.7,10.45 C195.7,12.75 197.2,13.5 203.25,
402615.05 C210.35,16.9 214.35,19.45 214.35,25.55 L214.35,25.65 C214.35,32.6 209.05,36.5 201.5,36.5 Z M226.25,32.45 L226.25,8.1 L218.85,8.1 C216.9,8.1 215.3,6.5 215.3,4.55 C215.3,2.6 216.9,1 218.85,1 L241.35,1 C243.3,1 244.9,2.6 244.9,4.55 C244.9,6.5 243.3,8.1 241.35,8.1 L233.95,8.1 L233.95,32.45 C233.95,34.6 232.25,36.3 230.1,36.3 C227.95,36.3 226.25,34.6 226.25,32.45 Z`,id:`YOU-LOST`,fill:`url(#linearGradient-1)`})})]})}},Yce=class extends V.Component{render(){return(0,K.jsxs)(`svg`,{viewBox:`0 0 232 37`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{x1:`50%`,y1:`100%`,x2:`50%`,y2:`-2.48949813e-15%`,id:`linearGradient-1`,children:[(0,K.jsx)(`stop`,{stopColor:`#74C342`,offset:`0%`}),(0,K.jsx)(`stop`,{stopColor:`#F7EE52`,stopOpacity:`0.84057971`,offset:`100%`})]})}),(0,K.jsx)(`g`,{id:`Page-1`,stroke:`none`,strokeWidth:`1`,fill:`none`,children:(0,K.jsx)(`path`,{d:`M12.7750002,32.45 L12.7750002,22.5 L1.47500019,7.15 C0.925000191,6.4 0.525000191,5.5 0.525000191,4.4 C0.525000191,2.35 2.22500019,0.7 4.37500019,0.7 C6.12500019,0.7 7.22500019,1.65 8.17500019,3.05 L16.6750002,15.3 L25.3250002,2.95 C26.2750002,1.55 27.4250002,0.65 29.0250002,0.65 C31.3750002,0.65 32.7750002,2.3 32.7750002,4.4 C32.7750002,5.45 32.2750002,6.4 31.7750002,7.1 L20.4750002,22.35 L20.4750002,32.45 C20.4750002,34.6 18.7750002,36.3 16.6250002,36.3 C14.4750002,36.3 12.7750002,34.6 12.7750002,32.45 Z M51.0750001,36.6 C40.2750001,36.6 32.5250001,28.55 32.5250001,18.6 L32.5250001,18.5 C32.5250001,8.55 40.3750001,0.4 51.1750001,0.4 C61.9750001,0.4 69.7250001,8.45 69.7250001,18.4 L69.7250001,18.5 C69.7250001,28.45 61.8750001,36.6 51.0750001,36.6 Z M51.1750001,29.5 C57.3750001,29.5 61.6750001,24.6 61.6750001,18.6 L61.6750001,18.5 C61.6750001,12.5 57.2750001,7.5 51.0750001,7.5 C44.8750001,7.5 40.5750001,12.4 40.5750001,18.4 L40.5750001,18.5 C40.5750001,24.5 44.9750001,29.5 51.1750001,29.5 Z M88.9750001,36.55 C79.5750001,36.55 73.8250001,31.3 73.8250001,21 L73.8250001,4.55 C73.8250001,2.4 75.5250001,0.7 77.6750001,0.7 C79.8250001,0.7 81.5250001,2.4 81.5250001,4.55 L81.5250001,20.8 C81.5250001,26.5 84.3750001,29.45 89.0750001,29.45 C93.7750001,29.45 96.6250001,26.6 96.6250001,21.05 L96.6250001,4.55 C96.6250001,2.4 98.3250001,0.7 100.475,0.7 C102.625,0.7 104.325,2.4 104.325,4.55 L104.325,20.75 C104.325,31.35 98.3750001,36.55 88.9750001,36.55 Z M130.925,32.45 L130.925,8.1 L123.525,8.1 C121.575,8.1 119.975,6.5 119.975,4.55 C119.975,2.6 121.575,1 123.525,1 L146.025,1 C147.975,1 149.575,2.6 149.575,4.55 C149.575,6.5 147.975,8.1 146.025,8.1 L138.625,8.1 L138.625,32.45 C138.625,34.6 136.925,36.3 134.775,36.3 C132.625,36.3 130.925,34.6 130.925,32.45 Z M153.325,32.45 L153.325,4.55 C153.325,2.4 155.025,0.7 157.175,0.7 C159.325,0.7 161.025,2.4 161.025,4.55 L161.025,32.45 C161.025,34.6 159.325,36.3 157.175,36.3 C155.025,36.3 153.325,34.6 153.325,32.45 Z M171.425,36 C169.275,36 167.575,34.3 167.575,32.15 L167.575,4.85 C167.575,2.7 169.275,1 171.425,1 L190.825,1 C192.725,1 194.275,2.55 194.275,4.45 C194.275,6.35 192.725,7.85 190.825,7.85 L175.225,7.85 L175.225,14.95 L188.575,14.95 C190.475,14.95 192.025,16.5 192.025,18.4 C192.025,20.3 190.475,21.8 188.575,21.8 L175.225,21.8 L175.225,29.15 L191.075,29.15 C192.975,29.15 194.525,30.7 194.525,32.6 C194.525,34.5 192.975,36 191.075,36 L171.425,36 Z M198.875,32.15 L198.875,4.85 C198.875,2.7 200.575,1 202.725,1 L212.525,1 C223.525,1 231.125,8.55 231.125,18.4 L231.125,18.5 C231.125,28.35 223.525,36 212.525,36 L202.725,36 C200.575,36 198.875,34.3 198.875,32.15 Z M206.575,29.05 L212.525,29.05 C218.825,29.05 223.075,24.8 223.075,18.6 L223.075,18.5 C223.075,12.3 218.825,7.95 212.525,7.95 L206.575,7.95 L206.575,29.05 Z`,id:`YOU-TIED`,fill:`url(#linearGradient-1)`})})]})}},Xce=class extends V.Component{render(){return(0,K.jsx)(`svg`,{viewBox:`0 0 154 174`,version:`1.1`,xmlns:`https://www.w3.org/2000/svg`,children:(0,K.jsx)(`g`,{children:(0,K.jsx)(`path`,{d:`M0,0 L154,0 L154,163.526084 C154,169.048932 149.522847,173.526084 144,173.526084 C142.791325,173.526084 141.592662,173.306965 140.462156,172.879354 L80.537844,150.213178 C78.2580976,149.350871 75.7419024,149.350871 73.462156,150.213178 L13.537844,172.879354 C8.37217563,174.833252 2.60062729,172.229597 0.646729997,16
40267.063928 C0.219119683,165.933422 3.36857678e-15,164.734759 0,163.526084 L0,0 Z`,id:`Rectangle`})})})}};D();var tD,nD,rD;function Zce(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function iD(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Qce=N.div` 4027 position: relative; 4028 margin: 10px; 4029 color: white; 4030 transform: ${e=>`scale(${e.scale})`}; 4031 z-index: 999; 4032`,$ce=N.div` 4033 margin-bottom: 5px; 4034 max-width: 90px; 4035 overflow: hidden; 4036`,ele=N.div` 4037 margin-top: -20px; 4038 color: white; 4039 position: relative; 4040 svg { 4041 fill: ${e=>e.fill}; 4042 width: 70px; 4043 } 4044`,tle=N.div` 4045 position: absolute; 4046 z-index: 2; 4047 top: 30px; 4048 left: 0; 4049 right: 0; 4050 margin: 0 auto; 4051 font-weight: bold; 4052`,aD=M(j(tD=(nD=class extends V.Component{constructor(...e){super(...e),Zce(this,`scale`,rD,this),this.setDelayedAnimation=()=>{setTimeout(this.animate,250)},this.animate=()=>{this.scale=1.3}}get color(){return this.props.won?q.Theme.green:q.Theme.red}componentDidMount(){this.props.won&&this.props.animate&&this.setDelayedAnimation()}componentDidUpdate(e){this.props.won&&this.props.animate&&!e.animate&&this.setDelayedAnimation()}render(){return(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.scale,Rv.presets.wobbly)},children:({scale:e})=>(0,K.jsxs)(Qce,{scale:e,children:[(0,K.jsx)($ce,{children:this.props.user?.firstName}),(0,K.jsx)(Mg,{hideProStatus:!0,width:100,user:this.props.user,border:`5px solid ${this.color}`,zIndex:3}),(0,K.jsxs)(ele,{fill:this.color,children:[(0,K.jsx)(tle,{children:this.props.points}),(0,K.jsx)(Xce,{})]})]})})}},rD=iD(nD.prototype,`scale`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),iD(nD.prototype,`color`,[E],Object.getOwnPropertyDescriptor(nD.prototype,`color`),nD.prototype),nD))||tD),nle=e(n(((e,t)=>{(function(n,i){typeof e==`object`&&typeof t==`object`?t.exports=i(r()):typeof define==`function`&&define.amd?define([`react`],i):typeof e==`object`?e.ReactConfetti=i(r()):n.ReactConfetti=i(n.React)})(typeof self<`u`?self:e,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=2)}([function(t,n){t.exports=e},function(e,t,n){var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t}
4052,easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return e==0?t:(n-t)*2**(10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(1-2**(-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return e===0?t:e===r?t+i:(e/=r/2)<1?i/2*2**(10*(e-1))+t:i/2*(2-2**(-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,a,o,s=n-t;return o=1.70158,e===0?t:(e/=r)==1?t+s:((a=0)||(a=.3*r),(i=s)<Math.abs(s)?(i=s,o=a/4):o=a/(2*Math.PI)*Math.asin(s/i),-i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a)+t)},easeOutElastic:function(e,t,n,r){var i,a,o,s=n-t;return o=1.70158,e===0?t:(e/=r)==1?t+s:((a=0)||(a=.3*r),(i=s)<Math.abs(s)?(i=s,o=a/4):o=a/(2*Math.PI)*Math.asin(s/i),i*2**(-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+s+t)},easeInOutElastic:function(e,t,n,r){var i,a,o,s=n-t;return o=1.70158,e===0?t:(e/=r/2)==2?t+s:((a=0)||(a=.3*1.5*r),(i=s)<Math.abs(s)?(i=s,o=a/4):o=a/(2*Math.PI)*Math.asin(s/i),e<1?i*2**(10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a)*-.5+t:i*2**(-10*--e)*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+s+t)},easeInBack:function(e,t,n,r,i){return i===void 0&&(i=1.70158),(n-t)*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return i===void 0&&(i=1.70158),(n-t)*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var a=n-t;return i===void 0&&(i=1.70158),(e/=r/2)<1?a/2*(e*e*((1+(i*=1.525))*e-i))+t:a/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInBounce:function(e,t,n,i){var a=n-t;return a-r.easeOutBounce(i-e,0,a,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){var a=n-t;return e<i/2?.5*r.easeInBounce(2*e,0,a,i)+t:.5*r.easeOutBounce(2*e-i,0,a,i)+.5*a+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t),n.d(t,`ReactConfetti`,(function(){return le}));var r,i,a=n(0),o=n.n(a),s=n(1),c=n.n(s);function l(e,t){return e+Math.random()*(t-e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(function(e){e[e.Circle=0]=`Circle`,e[e.Square=1]=`Square`,e[e.Strip=2]=`Strip`})(r||={}),function(e){e[e.Positive=1]=`Positive`,e[e.Negative=-1]=`Negative`}(i||={});var f=function(){function e(t,n,r,a){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),d(this,`context`,void 0),d(this,`radius`,void 0),d(this,`x`,void 0),d(this,`y`,void 0),d(this,`w`,void 0),d(this,`h`,void 0),d(this,`vx`,void 0),d(this,`vy`,void 0),d(this,`shape`,void 0),d(this,`angle`,void 0),d(this,`angularSpin`,void 0),d(this,`color`,void 0),d(this,`rotateY`,void 0),d(this,`rotationDirection`,void 0),d(this,`getOptions`,void 0),this.getOptions=n;var o,s,c=this.getOptions(),u=c.colors,f=c.initialVelocityX,p=c.initialVelocityY;this.context=t,this.x=r,this.y=a,this.w=l(5,20),this.h=l(5,20),this.radius=l(5,10),this.vx=typeof f==`number`?l(-f,f):l(f.min,f.max),this.vy=typeof p==`number`?l(-p,0):l(p.min,p.max),this.shape=(o=0,s=2,Math.floor(o+Math.random()*(s-o+1))),this.angle=l(0,360)*Math.PI/180,this.angularSpin=l(-.2,.2),this.color=u[Math.floor(Math.random()*u.length)],this.rotateY=l(0,1),this.rotationDirection=l(0,1)?i.Positive:i.Negative}var t,n,a;return t=e,(n=[{key:`update`,value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,a=e.friction,o=e.opacity,s=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=a,this.vy*=a,this.rotateY>=1&&this.rotationDirection===i.Positive?this.rotationDirection=i.Negative:this.rotateY<=-1&&this.rotationDirection===i.Negative&&(this.rotationDirection=i.Positive);var c=.1*this.rotationDirection;if(this.rotateY+=c,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=o,this.context.lineCap=`round`,this.context.lineWidth=2,s&&typeof s==`function`)s.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}
4052this.context.closePath(),this.context.restore()}}])&&u(t.prototype,n),a&&u(t,a),e}();function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function e(t,n){var r=this;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),p(this,`canvas`,void 0),p(this,`context`,void 0),p(this,`getOptions`,void 0),p(this,`x`,0),p(this,`y`,0),p(this,`w`,0),p(this,`h`,0),p(this,`lastNumberOfPieces`,0),p(this,`tweenInitTime`,Date.now()),p(this,`particles`,[]),p(this,`particlesGenerated`,0),p(this,`removeParticleAt`,(function(e){r.particles.splice(e,1)})),p(this,`getParticle`,(function(){var e=l(r.x,r.w+r.x),t=l(r.y,r.h+r.y);return new f(r.context,r.getOptions,e,t)})),p(this,`animate`,(function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,i=r.lastNumberOfPieces,a=r.getOptions(),o=a.run,s=a.recycle,c=a.numberOfPieces,l=a.debug,u=a.tweenFunction,d=a.tweenDuration;if(!o)return!1;var f=r.particles.length,p=s?f:n,m=Date.now();if(p<c){i!==c&&(r.tweenInitTime=m,r.lastNumberOfPieces=c);for(var h=r.tweenInitTime,g=u(m-h>d?d:Math.max(0,m-h),p,c,d),_=Math.round(g-p),v=0;v<_;v++)r.particles.push(r.getParticle());r.particlesGenerated+=_}return l&&(t.font=`12px sans-serif`,t.fillStyle=`#333`,t.textAlign=`right`,t.fillText(`Particles: ${f}`,e.width-10,e.height-20)),r.particles.forEach((function(t,n){t.update(
4052),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(s&&p<=c?r.particles[n]=r.getParticle():r.removeParticleAt(n))})),f>0||p<c})),this.canvas=t;var i=this.canvas.getContext(`2d`);if(!i)throw Error(`Could not get canvas context`);this.context=i,this.getOptions=n};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={width:typeof window<`u`?window.innerWidth:300,height:typeof window<`u`?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:[`#f44336`,`#e91e63`,`#9c27b0`,`#673ab7`,`#3f51b5`,`#2196f3`,`#03a9f4`,`#00bcd4`,`#009688`,`#4CAF50`,`#8BC34A`,`#CDDC39`,`#FFEB3B`,`#FFC107`,`#FF9800`,`#FF5722`,`#795548`],opacity:1,debug:!1,tweenFunction:c.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},b=function(){function e(t,n){var r=this;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),v(this,`canvas`,void 0),v(this,`context`,void 0),v(this,`_options`,void 0),v(this,`generator`,void 0),v(this,`rafId`,void 0),v(this,`setOptionsWithDefaults`,(function(e){r._options=g(g(g({},{confettiSource:{x:0,y:0,w:r.canvas.width,h:0}}),y),e),Object.assign(r,e.confettiSource)})),v(this,`update`,(function(){var e=r.options,t=e.run,n=e.onConfettiComplete,i=r.canvas,a=r.context;t&&(a.fillStyle=`white`,a.clearRect(0,0,i.width,i.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&typeof n==`function`&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)})),v(this,`reset`,(function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)})),v(this,`stop`,(function(){r.options={run:!1},r.rafId&&=(cancelAnimationFrame(r.rafId),void 0)})),this.canvas=t;var i=this.canvas.getContext(`2d`);if(!i)throw Error(`Could not get canvas context`);this.context=i,this.generator=new m(this.canvas,(function(){return r.options})),this.options=n,this.update()}var t,n,r;return t=e,(n=[{key:`options`,get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof e.recycle==`boolean`&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof e.run==`boolean`&&e.run&&!1===t&&this.update()}}])&&_(t.prototype,n),r&&_(t,r),e}();function x(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}(e)||E(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 4053In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function S(e){return(S=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
4053t%2?ee(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||s.return==null||s.return()}finally{if(i)throw a}}return n}}(e,t)||E(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 4054In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(e,t){if(e){if(typeof e==`string`)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}function D(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}();return function(){var n,r=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ie(this,n)}}function ie(e,t){return!t||S(t)!==`object`&&typeof t!=`function`?ae(e):t}function ae(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=o.a.createRef(),se=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)})(a,e);var t,n,r,i=re(a);function a(e){var t;O(this,a);var n=[...arguments].slice(1);return A(ae(t=i.call.apply(i,[this,e].concat(n))),`canvas`,o.a.createRef()),A(ae(t),`confetti`,void 0),t.canvas=e.canvasRef||oe,t}return t=a,(n=[{key:`componentDidMount`,value:function(){if(this.canvas.current){var e=ce(this.props)[0];this.confetti=new b(this.canvas.current,e)}}},{key:`componentDidUpdate`,value:function(){var e=ce(this.props)[0];this.confetti&&(this.confetti.options=e)}},{key:`componentWillUnmount`,value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:`render`,value:function(){var e=T(ce(this.props),2),t=e[0],n=e[1],r=w({zIndex:2,position:`absolute`,pointerEvents:`none`,top:0,left:0,bottom:0,right:0},n.style);return o.a.createElement(`canvas`,C({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&te(t.prototype,n),r&&te(t,r),a}(a.Component);function ce(e){var t={},n={},r=[].concat(x(Object.keys(y)),[`confettiSource`,`drawShape`,`onConfettiComplete`]),i=[`canvasRef`];for(var a in e){var o=e[a];r.includes(a)?t[a]=o:i.includes(a)?i[a]=o:n[a]=o}return[t,n,{}]}A(se,`defaultProps`,w({},y)),A(se,`displayName`,`ReactConfetti`);var le=o.a.forwardRef((function(e,t){return o.a.createElement(se,C({canvasRef:t},e))}));t.default=le}]).default}))}))()),oD,rle=N.div` 4055 margin: 40px 0 20px 0; 4056 position: relative; 4057 z-index: 999; 4058 ${X.flexCenterColumn} 4059 color: white; 4060 svg { 4061 width: 243px; 4062 } 4063`,ile=N.div` 4064 margin-top: 40px; 4065 ${(0,X.flexCenter)()} 4066`,ale=j(oD=class extends V.Component{constructor(e){super(e),this.playAudio=()=>{U.DeckUI.hasUserDeck&&(!this.props.hasOpponent||this.props.gameWon||this.props.gameTied)?U.AppUI.soundEffectStore.play(`wonGame`):U.DeckUI.hasUserDeck&&U.AppUI.soundEffectStore.play(`lostGame`)},this.props.inView&&this.playAudio()}componentDidUpdate(e){!e.inView&&this.props.inView&&this.playAudio()}render(){let e=U.DeckUI.userDeck,t=e?e.points:0;return(0,K.jsxs)($T,{children:[(this.props.gameWon||!this.props.hasOpponent)&&(0,K.jsx)(nle.default,{width:U.DeckUI.layout.deckWidth,height:U.DeckUI.layout.contentHeightWithoutButtons}),(0,K.jsxs)(oE,{children:[(0,K.jsxs)(rle,{children:[(this.props.gameWon||!this.props.hasOpponent)&&(0,K.jsx)(qce,{}),this.props.gameLost&&(0,K.jsx)(Jce,{}),this.props.gameTied&&(0,K.jsx)(Yce,{}),(0,K.jsx)(R,{bold:!0,color:`#FFF`,margin:`10px 0`,children:this.props.resultsText})]}),(0,K.jsxs)(ile,{children:[(0,K.jsx)(aD,{animate:this.props.inView,won:!this.props.hasOpponent||this.props.gameWon||this.props.gameTied,points:t,user:U.DeckUI.user}),this.props.hasOpponent&&(0,K.jsx)(aD,{animate:this.props.inView,won:this.props.gameLost||this.props.gameTied,points:this.props.opponentPoints,user:this.props.opponent})]})]}),(0,K.jsxs)(MT,{children:[(0,K.jsx)(yE,{shortcut:`1`,marginRight:5,text:`Finis
4066h Game`,fontSize:`14px`,backgroundColor:q.Theme.darkestGreen,icon:(0,K.jsx)(J.TimesWithCircleIcon,{}),disabled:!this.props.inView,onClick:()=>U.DeckUI.skipToEnd()}),(0,K.jsx)(yE,{shortcut:`2`,marginLeft:5,submitOnEnter:!0,text:`Practice Vocab`,fontSize:`14px`,backgroundColor:q.Theme.darkGreen,icon:(0,K.jsx)(J.RightIcon,{}),disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard)})]})]})}})||oD,ole=(0,Y.TriviaResultsCardWrapper)(ale),sD,sle=N.div` 4067 height: ${e=>e.height}; 4068 position: relative; 4069 background: #565656; 4070 border-radius: 5px; 4071 width: ${e=>e.width}; 4072`,cD=N.div` 4073 z-index: ${e=>e.zIndex}; 4074 height: 100%; 4075 position: absolute; 4076 top: 0; 4077 left: 0; 4078 display: flex; 4079 flex-direction: column; 4080 justify-content: flex-end; 4081`,lD=N.div` 4082 will-change: height; 4083 -moz-transition: all 0.3s ease-in-out; 4084 -o-transition: all 0.3s ease-in-out; 4085 -webkit-transition: all 0.3s ease-in-out; 4086 transition: all 0.3s ease-in-out; 4087 height: ${e=>e.height}; 4088 background: ${e=>e.background}; 4089 border-radius: 5px; 4090 width: ${e=>e.width}; 4091`,cle=N.div` 4092 left: 0; 4093 top: 0; 4094 position: absolute; 4095 width: 0; 4096 height: 0; 4097 border-style: solid; 4098 border-width: 0 25px 25px 0; 4099 border-color: transparent #333 transparent transparent; 4100 z-index: 3; 4101 transform: ${e=>e.transform}; 4102`,lle=N.div` 4103 left: 0; 4104 bottom: 0; 4105 position: absolute; 4106 width: 0; 4107 height: 0; 4108 border-style: solid; 4109 border-width: 0 0 25px 25px; 4110 border-color: transparent transparent #333 transparent; 4111 z-index: 3; 4112 transform: ${e=>e.transform}; 4113`,ule=j(sD=class extends V.Component{render(){return(0,K.jsxs)(sle,{height:(0,W.pixify)(this.props.height),width:(0,W.pixify)(this.props.width),children:[(0,K.jsx)(cle,{transform:this.props.align===`right`?`scaleX(-1)`:null}),(0,K.jsx)(lle,{transform:this.props.align===`right`?`scaleX(-1)`:null}),(0,K.jsx)(cD,{zIndex:`2`,children:(0,K.jsx)(lD,{background:this.props.color,width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.getHeight(this.props.delayedCurrent))})}),(0,K.jsx)(cD,{zIndex:`1`,children:(0,K.jsx)(lD,{background:`#21fd8d`,width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.getHeight(this.props.current))})})]})}})||sD,uD=(0,Y.PointsBarWrapper)(ule);D();var dD,fD,pD;function dle(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function mD(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var fle=N.div` 4114 ${(0,X.flexCenterColumn)()} 4115 font-size: 26px; 4116 line-height: 36px; 4117`,ple=N.div` 4118 background: #FFF; 4119 color: #3e3c3c; 4120 font-size: 12px; 4121 padding: 0 20px; 4122 border-radius: 40px; 4123 cursor: pointer; 4124 position: absolute; 4125 top: 10px; 4126 left: 0; 4127 right: 0; 4128 width: 280px; 4129 text-align: center; 4130 margin: 0 auto; 4131 font-weight: bold; 4132`,mle=j(dD=(fD=class extends V.Component{constructor(...e){super(...e),dle(this,`showIdiomaticSource`,pD,this),this.onToggleLiteralSource=e=>{e.stopPropagation(),this.showIdiomaticSource=!this.showIdiomaticSource}}get source(){return this.showIdiomaticSource?this.props.text:this.props.literalSource}render(){return(0,K.jsxs)(fle,{children:[this.props.translateToGerman&&(0,K.jsxs)(R,{italic:!0,fontSize:`16px`,children:[`Translate to `,U.DeckUI.deck.languageName]}),(0,W.isPresent)(this.source)&&(0,K.jsx)(Vi,{resizeText:!0,height:this.props.height-10,width:this.props.width,characterLength:this.source.length,children:(0,K.jsx)(R,{cursor:this.props.onClick?`pointer`:null,onClick:this.props.onClick,children:this.source})}),this.props.showLiteralSource&&this.props.literalSource&&(0,K.jsxs)(ple,{onClick:this.onToggleLiteralSource,children:[`Show `,this.showIdiomaticSource?`Word for Word Translation`:`Natural Translation`]})]})}},pD=mD(fD.prototype,`showIdiomaticSource`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),mD(fD.prototype,`source`,[E],Object.getOwnPropertyDescriptor(fD.prototype,`source`),fD.prototype),fD))||dD;D(),me();var hD,gD;function _D(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hle=N.div` 4133 font-size: 13px; 4134 margin: ${e=>e.margin}; 4135 background: ${e=>e.backgroundColor||q.Theme.orange}; 4136 color: ${e=>e.textColor||`#FFF`}; 4137 padding: 5px 10px; 4138 border-radius: 10px; 4139 display: inline-flex; 4140 align-items: center; 4141 border: ${e=>e.border||`none`}; 4142 font-style: ${e=>e.italic?`italic`:`normal`}; 4143 4144 i { 4145 color: ${e=>e.textColor||`#FFF`}; 4146 font-size: 17px; 4147 line-height: 19px; 4148 margin: 0 5px 0 0; 4149 } 4150`,gle=N.div` 4151 margin: ${e=>e.margin}; 4152 display: flex; 4153 align-items: center; 4154 font-size: 12px; 4155 line-height: 12px; 4156 4157 i { 4158 margin-right: 3px; 4159 } 4160`,vD=j(hD=(gD=class extends V.Component{get descriptionText(){return this.props.description?typeof this.props.description==`string`?this.props.description:this.props.description.description:null}get backgroundColor(){if(this.props.backgroundColor)return this.props.backgroundColor;if(typeof this.props.description==`object`)return this.props.description.color}get marginValue(){return this.props.margin||(U.DeckUI.layout.minimumHeight?`10px 0 0 0`:`20px 0 0 0`)}render(){return!(this.props.description||this.props.text)||!this.descriptionText?null:U.DeckUI.layout.minimumHeight?(0,K.jsxs)(gle,{margin:this.marginValue,"data-tip":!0,"data-for":this.props.tooltipId||`grammar-hint`,children:[!this.props.hideIcon&&(0,K.jsx)(`i`,{className:`fa fa-info-circle`}
4160),`More Info`,(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:this.props.tooltipId||`grammar-hint`,width:`300px`,class:`custom-tooltip`,children:(0,K.jsx)(`div`,{style:{width:150},children:this.descriptionText})})]}):(0,K.jsxs)(hle,{margin:this.marginValue,backgroundColor:this.backgroundColor,textColor:this.props.textColor,border:this.props.border,italic:this.props.italic,children:[!this.props.hideIcon&&(0,K.jsx)(`i`,{className:`fa fa-info-circle`}),this.descriptionText]})}},_D(gD.prototype,`descriptionText`,[E],Object.getOwnPropertyDescriptor(gD.prototype,`descriptionText`),gD.prototype),_D(gD.prototype,`backgroundColor`,[E],Object.getOwnPropertyDescriptor(gD.prototype,`backgroundColor`),gD.prototype),_D(gD.prototype,`marginValue`,[E],Object.getOwnPropertyDescriptor(gD.prototype,`marginValue`),gD.prototype),gD))||hD,yD,bD,_le=N.div` 4161 z-index: ${q.Theme.z[`card-3`]}; 4162 height: ${e=>e.height||`100%`}; 4163 position: ${e=>e.position}; 4164 cursor: default; 4165 width: 100%; 4166`,vle=N.div` 4167 margin: ${e=>e.margin}; 4168 height: ${e=>e.height}; 4169 border-top-left-radius: ${e=>e.borderTopLeftRadius}; 4170 border-top-right-radius: ${e=>e.borderTopRightRadius}; 4171 border-bottom-left-radius: ${e=>e.borderBottomLeftRadius}; 4172 border-bottom-right-radius: ${e=>e.borderBottomRightRadius}; 4173 padding: ${e=>e.padding}; 4174 width: ${e=>e.width||`100%`}; 4175 left: ${e=>e.left||0}; 4176 background: ${e=>e.background||`#e8e8e8`}; 4177 position: ${e=>e.position||`absolute`}; 4178 bottom: 0; 4179 display: flex; 4180 flex-direction: column; 4181 align-items: center; 4182 justify-content: center; 4183`,yle=N.div` 4184 margin-bottom: 10px; 4185`,ble=N.div` 4186 margin-bottom: 20px; 4187`,xle=j(yD=(bD=class extends V.Component{constructor(...e){super(...e),this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),this.props.onToggleSourceEditExpanded()}}get isWhiteBackground(){let e=(this.props.background||``).toString().toLowerCase();return e===`#fff`||e===`#ffffff`||e===`white`}get defaultBorderColor(){if(this.props.defaultBorderColor)return this.props.defaultBorderColor;let e=this.props.background||`#e8e8e8`;if(e===`#CCC`||e===`#ccc`||e===`#e8e8e8`||e===`#E6E6E6`)return`#b0b0b0`}render(){return(0,K.jsxs)(_le,{position:this.props.position,height:(0,W.pixify)(this.props.height),children:[U.DeckUI.layout.debug&&(0,K.jsx)(nE,{left:0,children:this.props.height}),(0,K.jsxs)(vle,{hasUserInput:this.props.hasUserInput,padding:this.props.padding,margin:this.props.margin,height:(0,W.pixify)(this.props.height),width:this.props.width,position:this.props.position,borderTopLeftRadius:(0,W.pixify)(this.props.borderTopLeftRadius),borderTopRightRadius:(0,W.pixify)(this.props.borderTopRightRadius),borderBottomLeftRadius:(0,W.pixify)(this.props.borderBottomLeftRadius),borderBottomRightRadius:(0,W.pixify)(this.props.borderBottomRightRadius),left:this.props.left,background:this.props.background,children:[this.props.grammarHint&&(0,K.jsx)(ble,{children:(0,K.jsx)(vD,{description:this.props.grammarHint.description,backgroundColor:this.props.grammarHint.color,tooltipId:this.props.card?.id||`card-grammar-hint`})}),!this.props.showText&&this.props.showRevealTextIcon&&U.DeckUI.userInputStores[this.props.card.id]?.inputType!==`text`&&!this.props.hideButtons&&(0,K.jsx)(J.RevealSubtitlesIcon,{onClick:this.props.revealText,width:U.DeckUI.layout.minimumHeight?30:40,height:U.DeckUI.layout.minimumHeight?30:40,withShadow:this.isWhiteBackground}),this.props.cardTypeSlug===`sentence_pronounce`&&!this.props.cardState.revealed&&this.props.showText&&this.props.showType===`target`&&(0,K.jsx)(R,{italic:!0,fontSize:`16px`,children:`Read the sentence out loud`}),this.props.prompt&&this.props.showText&&this.props.showType===`target`&&(0,K.jsx)(yle,{children:(0,K.jsx)(R,{italic:!0,fontSize:`14px`,color:`#565656`,textAlign:`center`,children:this.props.prompt})}),this.props.simpleTextMode&&this.props.showType===`target`&&this.props.showText&&(0,K.jsx)(Vi,{resizeText:!0,height:(0,W.depixify)(this.props.height)-20,width:(0,W.depixify)(this.props.width||U.DeckUI.layout.innerDeckWidth)-40,characterLength:this.props.card&&this.props.card.translation&&this.props.card.translation.targetText&&this.props.card.translation.targetText.length,children:(0,K.jsx)(R,{padding:`0`,center:!0,children:this.props.sentence?.targetText})}),!this.props.simpleTextMode&&this.props.showText&&!this.props.showSentenceBreakdown&&this.props.showType===`target`&&(0,K.jsx)(Vi,{resizeText:!0,height:(0,W.depixify)(this.props.height)-20,width:(0,W.depixify)(this.props.width||U.DeckUI.layout.innerDeckWidth)-40,characterLength:this.props.customText&&this.props.customText.length,children:(0,K.jsx)(R,{padding:`0`,center:!0,children:this.props.customText})}),!this.props.simpleTextMode&&this.props.showText&&this.props.showSentenceBreakdown&&this.props.showType===`target`&&this.props.sentence&&(this.props.sentence.enrichedWords||this.props.wordsAreEnriched)&&(0,K.jsx)(Vi,{resizeText:!0,height:(0,W.depixify)(this.props.height)-20,width:(0,W.depixify)(this.props.width||U.DeckUI.layout.innerDeckWidth)-80,characterLength:this.props.sentence&&this.props.sentence.targetText&&this.props.sentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,showUnderline:this.props.showUnderline,blockHighlightOnClick:!0,blockHighlightConcept:!0,disableOnClick:this.props.disableOnClick,showCase:this.props.sentence.state.selectedWordAssociationId||this.props.showCase,onOpenArrowBox:this.props.onOpenArrowBox,hideHighlight:this.props.card.cardType.slug!==`case-multiple-choice`&&U.DeckUI.reviewDeck,highlightConceptId:U.DeckUI.deck.conceptId,highlightWords:U.DeckUI.deck.words,highlightWordAssociationIds:this.props.highlightWordAssociationIds===void 0?this.props.card.cardWordAssociations.map(e=>
4187e.wordAssociationId):this.props.highlightWordAssociationIds,highlightType:this.props.highlightType,sentence:this.props.sentence,defaultBorderColor:this.defaultBorderColor})}),this.props.showText&&!this.props.showHelp&&this.props.showType===`source`&&(0,K.jsx)(mle,{resizeText:this.props.cardTypeSlug!==`translate`,height:this.props.cardState.revealed?U.DeckUI.layout.cardTextHeight:200,width:(0,W.depixify)(this.props.width||U.DeckUI.layout.innerDeckWidth)-40,translateToGerman:this.props.cardTypeSlug===`translate`&&!this.props.cardState.revealed,text:this.props.sourceText,showLiteralSource:this.props.showLiteralSource,literalSource:this.props.literalSource,user:U.DeckUI.user,onClick:this.props.showEdit?this.openSourceEdit:null}),this.props.showHelp&&(0,K.jsx)(Vi,{resizeText:!0,height:(0,W.depixify)(this.props.height)-20,width:(0,W.depixify)(this.props.width||U.DeckUI.layout.innerDeckWidth)-40,characterLength:this.props.sentence&&this.props.sentence.targetText&&this.props.sentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,disableUpdateSelectedWordAssociationId:!0,showUnderline:this.props.showUnderline,display:`source`,sentence:this.props.sentence,blockHighlightOnClick:!0,hideHighlight:!0,onClick:this.props.onClickHelpWord,hideBackground:!0,showCase:this.props.showCase,defaultBorderColor:this.defaultBorderColor})}),this.props.showSpinner&&this.props.showSentenceBreakdown&&this.props.simpleTextMode&&(0,K.jsx)(P,{width:`40px`,height:`12px`,margin:`10px auto 0`,background:`#999`})]}),this.props.children]})}},bD.defaultProps={languageButtonTop:`10px`,languageButtonRight:`10px`,position:`relative`,showUnderline:!0},bD))||yD,xD=(0,Y.BorderRadius)((0,Y.CardTextWrapper)(xle));D();var SD,CD;function Sle(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Cle=N.div` 4188 height: ${e=>e.height}; 4189 display: flex; 4190 align-items: center; 4191 width: 100%; 4192`,wle=N.div` 4193 flex: 1; 4194 display: flex; 4195 justify-content: flex-start; 4196 margin-left: 10px; 4197`,Tle=N.div` 4198 flex: 1; 4199 display: flex; 4200 justify-content: flex-end; 4201 margin-right: 10px; 4202`,Ele=M(j(SD=(CD=class extends V.Component{get triviaPlayerParams(){return{nameFontSize:15,showScore:!0,hideProStatus:!0,timerWidth:U.DeckUI.layout.triviaPlayersHeight,userProfileImageWidth:U.DeckUI.layout.triviaPlayersHeight-10}}render(){return(0,K.jsxs)(Cle,{height:(0,W.pixify)(U.DeckUI.layout.triviaPlayersHeight+20),children:[(0,K.jsx)(wle,{children:(0,K.jsx)(GE,{...this.triviaPlayerParams,showTimer:this.props.showTimer,turn:this.props.myTurn,user:U.DeckUI.user,points:U.DeckUI.userDeck.points,flexDirection:`row`})}),(0,K.jsx)(Tle,{children:this.props.hasOpponent&&!U.DeckUI.reviewDeck&&(0,K.jsx)(GE,{...this.triviaPlayerParams,showTimer:this.props.showTimer,turn:this.props.opponentTurn,user:this.props.opponent,points:this.props.opponentPoints,flexDirection:`row-reverse`})})]})}},Sle(CD.prototype,`triviaPlayerParams`,[E],Object.getOwnPropertyDescriptor(CD.prototype,`triviaPlayerParams`),CD.prototype),CD))||SD);w();var wD,TD,Dle=N.div` 4203 display: flex; 4204 flex-wrap: wrap; 4205 flex-direction: row; 4206 justify-content: center; 4207 height: ${e=>e.height}; 4208 width: ${e=>e.width}; 4209 background: #333; 4210 padding: 0; 4211 margin: ${e=>e.margin}; 4212 position: relative; 4213 margin-top: ${e=>e.marginTop}; 4214`,Ole=j(wD=(TD=class extends V.Component{render(){return(0,K.jsxs)(Dle,{width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),padding:this.props.padding,margin:this.props.margin,marginTop:(0,W.pixify)(this.props.marginTop),children:[U.DeckUI.layout.debug&&(0,K.jsx)(nE,{left:0,children:this.props.height}),_(this.props.options)&&this.props.options.map((e,t)=>(0,K.jsx)(yE,{hideTextIfDisabled:!0,shortcut:t+1,marginRight:t%2==0?5:0,marginLeft:t%2==1?5:0,marginBottom:t<=1?5:0,marginTop:t>=2?5:0,height:(0,W.pixify)(this.props.buttonHeight),width:(0,W.pixify)(this.props.buttonWidth(t)),fontSize:this.props.fontSize(e,t),originalCase:!0,disabled:this.props.cardDisabled(t),showResult:this.props.selected.includes(e.id)||this.props.revealed&&(e.correct||this.props.correct),correctAnswer:(this.props.revealed||this.props.selected.includes(e.id))&&(e.correct||this.props.correct),text:(0,W.dis
4214playTargetTextCorrectedForLanguage)(e[this.props.field],this.props.languageId),backgroundColor:e.backgroundColor||`#FFF`,disabledBackgroundColor:`#565656`,color:e.textColor||`#000`,disabledBorderRight:`none`,disabledColor:`#828282`,padding:this.props.padding,onClick:()=>this.props.onClick(e),borderBottomLeftRadius:t===2&&!this.props.isMobile?20:5,borderBottomRightRadius:t===3&&!this.props.isMobile?20:5},e.id))]})}},TD.defaultProps={marginTop:10,margin:0},TD))||wD,ED=(0,Y.MultipleChoiceButtonsWrapper)(Ole),DD,kle=j(DD=class extends V.Component{render(){return U.DeckUI.reviewDeck?(0,K.jsxs)(MT,{children:[(0,K.jsx)(yE,{shortcut:`1`,text:`Hard`,backgroundColor:q.Theme.darkestGreen,icon:(0,K.jsx)(J.NeutralFaceIcon,{}),onClick:()=>this.props.onHardClick(),subText:this.props.hardButtonSubText,disabled:this.props.disabled,marginRight:5}),(0,K.jsx)(yE,{shortcut:`2`,text:`Good`,backgroundColor:q.Theme.mediumGreen,icon:(0,K.jsx)(J.SmileFaceIcon,{}),onClick:()=>this.props.onGoodClick(),subText:this.props.goodButtonSubText,disabled:this.props.disabled,marginRight:5,marginLeft:5}),this.props.showEasyButton&&(0,K.jsx)(yE,{shortcut:`3`,text:this.props.easyButtonRetiresCard?`Retire`:`Easy`,backgroundColor:this.props.easyButtonRetiresCard?q.Theme.purple:q.Theme.green,icon:(0,K.jsx)(J.BigSmileFaceIcon,{}),onClick:()=>this.props.onEasyClick(),subText:this.props.easyButtonSubText,disabled:this.props.disabled,marginLeft:5})]}):(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:this.props.disabled,onClick:this.props.onNextClick,submitOnEnter:!0,shortcut:`1`})})}})||DD,OD=(0,Y.EvaluateButtonsWrapper)(kle),Ale=class extends V.Component{render(){return(0,K.jsx)(`svg`,{fill:this.props.fill,height:this.props.height,width:this.props.width,viewBox:`0 0 101 50`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,children:(0,K.jsxs)(`g`,{id:`Group`,transform:`translate(-0.351790, -0.703615)`,children:[(0,K.jsx)(`path`,{d:`M50.8517901,0.70361496 C59.1330401,0.70361496 75.9663734,17.3702816 101.35179,50.703615 L0.351790065,50.703615 C25.7372067,17.3702816 42.5705401,0.70361496 50.8517901,0.70361496 Z`,id:`Triangle`,fill:`#979797`,transform:`translate(50.851790, 25.703615) scale(1, -1) translate(-50.851790, -25.703615) `}),(0,K.jsx)(`path`,{d:`M50.8517901,0.70361496 C58.1974932,0.70361496 74.2738278,16.3702816 99.080794,47.703615 L2.63548147,47.703615 C27.4339841,16.3702816 43.5060869,0.70361496 50.8517901,0.70361496 Z`,id:`Triangle`,fill:this.props.fill||`#FFF`,transform:`translate(50.858138, 24.203615) scale(1, -1) translate(-50.858138, -24.203615) `})]})})}};D();var kD,AD,jD,MD,ND;function PD(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function FD(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var jle=N.div` 4215 display: ${e=>e.display}; 4216 transform: ${e=>e.transform}; 4217 font-size: ${e=>e.fontSize}; 4218 line-height: ${e=>e.lineHeight}; 4219 border: ${e=>e.border}; 4220 top: ${e=>e.top}; 4221 right: ${e=>e.right}; 4222 left: ${e=>e.left}; 4223 bottom: ${e=>e.bottom}; 4224 width: ${e=>e.width}; 4225 z-index: ${e=>e.zIndex}; 4226 position: ${e=>e.position}; 4227 margin: ${e=>e.margin}; 4228 background: ${e=>e.background}; 4229 box-shadow: ${e=>e.boxShadow}; 4230 border-radius: 10px; 4231 text-align: center; 4232 color: black; 4233`,Mle=N.div` 4234 ${(0,X.flexCenter)()} 4235 position: relative; 4236 width: ${e=>e.width}; 4237 height: ${e=>e.height}; 4238`,Nle=N.div` 4239 position: absolute; 4240 bottom: ${e=>e.bottom}; 4241 top: ${e=>e.top}; 4242 right: ${e=>e.right}; 4243 left: ${e=>e.left}; 4244 svg { 4245 transform: ${e=>e.transform}; 4246 fill: ${e=>e.arrowFill}; 4247 } 4248`,Ple=N.div` 4249 position: absolute; 4250 z-index: ${e=>e.zIndex}; 4251 top: ${e=>e.top}; 4252 right: ${e=>e.right}; 4253 svg { 4254 fill: ${e=>e.fill}; 4255 width: ${e=>e.width}; 4256 } 4257`,Fle=210,Ile=20,Lle=j(kD=(AD=(ND=class extends V.Component{constructor(e){super(e),PD(this,`hide`,jD,this),PD(this,`scale`,MD,this),this.props.show&&(this.scale=1)}componentDidUpdate(e){!e.show&&this.props.show&&((!this.props.card||!this.props.card.cardState.onboardingTipSeen)&&(this.scale=1),this.props.card&&this.props.onboarding&&(this.props.card.cardState.set(`onboardingTipSeen`,!0),this.props.card.cardState.set(`lastOnboardingTipSeen`,this.props.slug))),e.show&&!this.props.show&&(this.hide=!0,this.props.onClose&&(!this.props.card||this.props.card.cardState.onboardingTipSeen)&&this.props.onClose(),setTimeout(()=>this.hide=!1,500),this.scale=0)}render(){return(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.scale,{stiffness:Fle,damping:Ile})},children:({scale:e})=>(0,K.jsx)(jle,{display:this.hide?`none`:`flex`,width:(0,W.pixify)(this.props.width),left:(0,W.pixify)(this.props.left),right:(0,W.pixify)(this.props.right),top:(0,W.pixify)(this.props.top),bottom:(0,W.pixify)(this.props.bottom),zIndex:this.props.zIndex,transform:`scale(${e})`,fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,position:this.props.position,margin:this.props.margin,border:this.props.border,boxShadow:this.props.boxShadow,closeIconTop:this.props.closeIconTop,closeIconRight:this.props.closeIconRight,closeIconFill:this.props.closeIconFill,height:(0,W.pixify)(this.props.height),onClick:this.props.enableClickOnWrapper&&this.props.onClick,background:this.props.arrowBoxBackgroun
4257d,children:(0,K.jsxs)(Mle,{padding:this.props.padding,width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),children:[this.props.onClick&&!this.props.hideCloseIcon&&(0,K.jsx)(Ple,{top:this.props.closeIconTop,right:this.props.closeIconRight,zIndex:this.props.zIndex,fill:this.props.closeIconFill,width:this.props.closeIconWidth,children:(0,K.jsx)(J.CloseIcon,{width:this.props.closeIconWidth,height:this.props.closeIconWidth,onClick:this.props.onClick})}),this.props.children,(0,K.jsx)(Nle,{top:(0,W.pixify)(this.props.arrowPositionTop),bottom:(0,W.pixify)(this.props.arrowPositionBottom),left:(0,W.pixify)(this.props.arrowPositionLeft),right:(0,W.pixify)(this.props.arrowPositionRight),transform:this.props.arrowTransform,children:(0,K.jsx)(Ale,{width:`20px`,fill:this.props.arrowFill})})]})})})}},ND.defaultProps={arrowPosition:`bottom`,padding:`15px`,position:`absolute`,margin:`0 auto`,closeIconTop:`8px`,closeIconRight:`5px`,closeIconFill:`#000`,closeIconWidth:`20px`,border:`1px solid #CCC`,width:`100%`,height:`100%`,arrowFill:`#FFF`,arrowBoxBackground:`#FFF`},ND),jD=FD(AD.prototype,`hide`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MD=FD(AD.prototype,`scale`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),AD))||kD,ID=(0,Y.ArrowBoxWrapper)(Lle),LD,RD,Rle=N.div` 4258 cursor: ${e=>e.cursor}; 4259 height: 100%; 4260 width: 100%; 4261`,zle=N.div` 4262 background: #585858; 4263 color: white; 4264 padding: 10px; 4265 text-align: center; 4266 border-top-left-radius: 10px; 4267 border-top-right-radius: 10px; 4268 font-weight: bold; 4269 position: relative; 4270 .fa-info-circle { 4271 font-size: 18px; 4272 top: 10px; 4273 left: 10px; 4274 position: absolute; 4275 } 4276`,Ble=N.div` 4277 flex: 1; 4278 padding: 10px; 4279 display: flex; 4280 flex-direction: column; 4281 justify-content: center; 4282 text-align: left; 4283 font-size: 14px; 4284 line-height: 18px; 4285`,zD=j(LD=(RD=class extends V.Component{render(){return(0,K.jsxs)(Rle,{cursor:this.props.onClick?`pointer`:`default`,children:[(0,K.jsxs)(zle,{children:[(0,K.jsx)(`i`,{className:`fa fa-info-circle`}),this.props.title]}),(0,K.jsxs)(Ble,{children:[(0,G.isString)(this.props.message)&&(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.props.message}}),!(0,G.isString)(this.props.message)&&this.props.message]})]})}},RD.defaultProps={width:`300px`},RD))||LD,BD,Vle=N.div` 4286 ${(0,X.flexCenterColumn)()} 4287 z-index: ${q.Theme.z[`popup-background`]}; 4288 position: absolute; 4289 margin: 0 auto; 4290 left: 0; 4291 right: 0; 4292 top: 20px; 4293 width: 280px; 4294 pointer-events: ${e=>e.pointerEvents}; 4295`,Hle=j(BD=class extends V.Component{render(){return(0,K.jsxs)(Vle,{pointerEvents:this.props.card.cardState.addToReviews?`auto`:`none`,children:[(this.props.card.word||this.props.card.sentence||this.props.card.exerciseCard)&&(0,K.jsx)(Bi,{interfaceSource:`card-review-toggle`,disableToggleButton:this.props.disableToggleButton,animate:!0,showButton:this.props.card.cardState.addToReviews,card:this.props.card,hasReviews:!0,buttonText:`Add to Reviews`,word:this.props.card.word||this.props.card.exercise?.word,sentence:this.props.card.sentence||this.props.card.exercise?.sentence,exercise:this.props.card.exercise}),this.props.showOnboardingTip&&(0,K.jsx)(ID,{closeIconFill:`#FFF`,show:!0,top:`60px`,arrowPosition:`top`,onboarding:!0,slug:`reviews`,children:(0,K.jsx)(zD,{title:`Review Added!`,message:`This card has been added to the review deck on your home page.`})})]})}})||BD,Ule=(0,Y.CardReviewToggleWrapper)(Hle);w();var VD,Wle=N.div` 4296 ${(0,X.flexCenterColumn)()} 4297 height: ${e=>e.height}; 4298 width: ${e=>e.width}; 4299 background: #e8e8e8; 4300 position: relative; 4301 background: #333; 4302 .graph-icon { 4303 svg { 4304 width: 16px; 4305 margin: 0 2px 0 0; 4306 fill: #FFF; 4307 } 4308 } 4309`,Gle=N.div` 4310 ${(0,X.flexCenter)()} 4311 flex: 1; 4312 height: 100%; 4313`,Kle=N.div` 4314 ${(0,X.flexCenter)()} 4315 flex: 1; 4316 width: 100%; 4317`,qle=N.div` 4318 position: relative; 4319 width: ${e=>e.width}; 4320 height: ${e=>e.width}; 4321`,Jle=N.div` 4322 flex: 1; 4323 display: flex; 4324 justify-content: flex-start; 4325 height: 100%; 4326 margin-left: 10px; 4327`,Yle=N.div` 4328 margin-right: 10px; 4329 flex: 1; 4330 display: flex; 4331 justify-content: flex-end; 4332 height: 100%; 4333`,Xle=N.div` 4334 ${(0,X.flexCenter)()} 4335 position: relative; 4336 width: calc(100% - 20px); 4337 border-radius: 5px; 4338 background: ${e=>e.background}; 4339 height: ${e=>e.height}; 4340 padding: 0 20px; 4341`,Zle=N.div` 4342 ${(0,X.flexCenterColumn)()} 4343 width: 100%; 4344 height: ${e=>e.height}; 4345 padding-bottom: 10px; 4346`,Qle=j(VD=class extends V.Component{render(){return(0,K.jsxs)(Wle,{height:(0,W.pixify)(U.DeckUI.layout.contentHeightWithoutButtons),width:(0,W.pixify)(U.DeckUI.layout.deckWidth),children:[this.props.card&&(0,K.jsx)(Ule,{card:this.props.card}),(0,K.jsx)(Ele,{showTimer:!0,card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,myTimerProgress:this.props.myTurn.timerProgress,myCorrect:this.props.myTurn.correct,myTurnPoints:this.props.myTurn.points,opponentTimerProgress:this.props.opponentTurn.timerProgress,opponentCorrect:this.props.opponentTurn.correct,opponentTurnPoints:this.props.opponentTurn.points,opponentTurn:this.props.opponentTurn,opponentPoints:this.props.opponentPoints,hasOpponent:this.props.hasOpponent,myTurn:this.props.myTurn,opponent:this.props.opponent}),(0,K.jsxs)(Kle,{children:[(0,K.jsx)(Jle,{children:(0,K.jsx)(uD,{width:`25px`,align:`left`,id:this.props.card.id,points:this.props.myTurn.points,height:U.DeckUI.layout.triviaVideoSectionHeight,correct:this.props.myTurn.correct,current:U.DeckUI.userDeck.points,total:140})}),(0,K.jsx)(Gle,{children:(0,K.jsxs)(qle,{height:(0,W.pixify)(U.DeckUI.layout.triviaVideoWidth),width:(0,W.pixify)(U.DeckUI.layout.triviaVideoWidth),children:[this.props.videoClipType===`correct-answer`&&!U.AppUI.user.simplifiedTriviaDecks&&(0,K.jsx)(Ai,{border:`10px solid ${this.props.borderColor}`,borderRadius:`20px`,autoPlay:this.props.inView,maximized:!0,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,videoClip:this.props.correctAnswerVideoClip,width:U.DeckUI.layout.triviaVideoWidth?U.DeckUI.layout.triviaVideoWidth-10:0,wrapperW
4346idth:U.DeckUI.layout.triviaVideoWidth}),this.props.videoClipType===`incorrect-answer`&&!U.AppUI.user.simplifiedTriviaDecks&&(0,K.jsx)(Ai,{border:`10px solid ${this.props.borderColor}`,borderRadius:`20px`,autoPlay:this.props.inView,maximized:!0,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,videoClip:this.props.incorrectAnswerVideoClip,width:U.DeckUI.layout.triviaVideoWidth?U.DeckUI.layout.triviaVideoWidth-10:0,wrapperWidth:U.DeckUI.layout.triviaVideoWidth}),(this.props.videoClipType===`question`||U.AppUI.user.simplifiedTriviaDecks)&&(0,K.jsx)(Ai,{border:`10px solid ${this.props.borderColor}`,borderRadius:`20px`,autoPlay:this.props.inView,maximized:!0,afterInitialPlay:this.props.afterInitialPlay,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,videoClip:this.props.questionVideoClip,width:U.DeckUI.layout.triviaVideoWidth?U.DeckUI.layout.triviaVideoWidth-10:0,wrapperWidth:U.DeckUI.layout.triviaVideoWidth})]})}),(0,K.jsx)(Yle,{children:this.props.hasOpponent&&!U.DeckUI.reviewDeck&&(0,K.jsx)(uD,{width:`25px`,align:`right`,id:this.props.card.id,points:this.props.opponentTurn.points,height:U.DeckUI.layout.triviaVideoSectionHeight,correct:this.props.opponentTurn.correct,current:this.props.opponentPoints,total:140})})]}),(0,K.jsxs)(Zle,{height:(0,W.pixify)(U.DeckUI.layout.triviaTextAndButtonsSectionHeight),children:[this.props.showSentence&&(0,K.jsx)(Xle,{height:(0,W.pixify)(U.DeckUI.layout.triviaTextAndButtonsSectionHeight-U.DeckUI.layout.buttonHeight-10),background:`#e8e8e8`,children:(0,K.jsxs)(xD,{card:this.props.card,cardState:this.props.cardState,wordsAreEnriched:!0,margin:`0`,padding:`0 30px`,arrowLeft:`-2px`,languageButtonTop:`5px`,languageButtonRight:`5px`,hideHighlight:!0,flex:`none`,sentence:this.props.sentence,languageIconWidth:`30px`,width:U.DeckUI.layout.innerDeckWidth-80,height:U.DeckUI.layout.triviaTextHeight-60,background:`transparent`,position:`unset`,cardId:this.props.card.id,cardTypeSlug:this.props.card&&this.props.card.cardTypeSlug,showText:this.props.showSentence,showType:this.props.cardState?.showType,showEdit:!0,hideButtons:!0,children:[(0,K.jsx)(JT,{right:`10px`,top:`5px`,card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,icons:this.props.icons}),_(this.props.card.grammarTip)&&(0,K.jsx)(JT,{top:`10px`,left:`5px`,card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,icons:[`grammarTip`],iconWidth:`40px`})]})}),!this.props.showSentence&&this.props.card.sentence&&(0,K.jsx)(ED,{blockFontCalculation:!0,disabled:!this.props.inView||!this.props.initialVideoPlayFinished,height:(0,W.pixify)(U.DeckUI.layout.triviaTextAndButtonsSectionHeight-10),buttonHeight:(0,W.pixify)((U.DeckUI.layout.triviaTextAndButtonsSectionHeight-20)/2),width:U.DeckUI.layout.innerDeckWidth,options:this.props.card.sentence.randomMultipleChoiceOptions,onClick:this.props.onClick,selected:[this.props.multipleChoiceSelected,this.props.myTurn.timerStoppedAt&&this.props.opponentTurn.pastMultipleChoiceOptionId],isMobile:U.DeckUI.layout.isMobile,field:`targetText`,padding:`5px`,margin:`0`,marginTop:0,fontSize:U.DeckUI.layout.minimumHeight?`14px`:`16px`,languageId:this.props.card.languageId}),this.props.showSentence&&!U.DeckUI.reviewDeck&&(0,K.jsxs)(MT,{children:[(0,K.jsx)(yE,{shortcut:`1`,marginRight:5,text:`View Results`,backgroundColor:q.Theme.darkestGreen,icon:(0,K.jsx)(J.GraphCircleIcon,{}),disabled:!this.props.inView,onClick:()=>U.DeckUI.gotoTriviaResults(this.props.card)}),(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:`2`,marginLeft:5,text:`Next Card`,backgroundColor:q.Theme.green,icon:(0,K.jsx)(J.RightIcon,{}),disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard)})]}),this.props.showSentence&&U.DeckUI.reviewDeck&&(0,K.jsx)(OD,{card:this.props.card,alwaysEnable:!0,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]}),!this.props.showWordCard&&U.DeckUI.reviewDeck&&(0,K.jsx)(JT,{right:`10px`,top:`5px`,card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,icons:this.props.reviewIcons})]})}})||VD,$le=(0,Y.TriviaCardWrapper)(Qle),HD,eue=N.div` 4347 ${(0,X.flexCenterColumn)()} 4348 width: 100%; 4349 .progress-bar { 4350 height: 16px; 4351 border-radius: 5px; 4352 width: 100%; 4353 .current { 4354 background: ${q.Theme.orange}; 4355 } 4356 } 4357`,tue=N.div` 4358 display: flex; 4359 width: 100%; 4360 order: -1; 4361 margin: ${e=>e.margin}; 4362`,UD=N.div` 4363 flex: 1; 4364`,nue=M(j(HD=class extends V.Component{render(){return(0,K.jsxs)(eue,{children:[(0,K.jsx)(Fn,{current:U.AppUI.targetLanguage.progressOnCurrentLevel,total:U.AppUI.targetLanguage.xpRangeBetweenLevels}),(0,K.jsxs)(tue,{margin:`0 0 1px 0`,children:[(0,K.jsx)(UD,{children:(0,K.jsxs)(R,{bold:!0,textAlign:`left`,children:[`Level `,U.AppUI.targetLanguage.xpLevel]})}),(0,K.jsx)(UD,{children:(0,K.jsxs)(R,{bold:!0,textAlign:`right`,children:[U.AppUI.targetLanguage.xp,`/`,U.AppUI.targetLanguage.xpForNextLevel,` XP`]})})]})]})}})||HD);D();var WD,GD,KD,qD,JD;function YD(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function XD(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var rue={DE:[`janusz_happy_1.png`,`janusz_happy_2.png`,`cari_happy_1.png`,`cari_happy_2.png`,`Emma_happy.png`,`Emma_thumbs_up.png`],FR:[`loane_happy.png`,`loane_thumbs_up.png`],ES:[`marina_happy.png`,`marina_thumbs_up.png`]},iue={DE:[`janusz_disappointed_1.png`,`cari_disappointed_1.png`,`Emma_sorry.png`],FR:[`loane_sorry.png`],ES:[`marina_sorry.png`]},aue={DE:[`sofie_thoughtful_1.png`,`sofie_thoughtful_2.png`],FR:[`alix_thoughtful_1.png`,`alix_thoughtful_2.png`],ES:[`camila_thoughtful_1.png`,`camila_thoughtful_2.png`]},oue=N.div` 4365 width: ${e=>e.width}; 4366 height: ${e=>e.height}; 4367 border-radius: 50%; 4368 background: ${e=>e.background}; 4369 border: 5px solid ${e=>e.borderColor}; 4370 display: flex; 4371 align-items: center; 4372 justify-content: center; 4373 img { 4374 height: ${e=>e.imageHeight}; 4375 } 4376`,sue=j(WD=(GD=(JD=class extends V.Component{constructor(e){super(e),YD(this,`scale`,KD,this),YD(this,`src`,qD,this),this.initiateAnimationWithDelay=()=>{this.scale!==1&&setTimeout(this.initiateAnimation,150)},this.initiateAnimation=()=>{this.scale=1},this.initiateAnimationWithDelay(),this.props.reaction===`happy`?this.src=(0,G.shuffle)(rue[this.props.languageId||this.props.card?.languageId])[0]:this.props.reaction===`thoughtful`?this.src=(0,G.shuffle)(aue[this.props.languageId||this.props.card?.languageId])[0]:this.src=(0,G.shuffle)(iue[this.props.languageId||this.props.card?.languageId])[0]}render(){return(0,K.jsx)(Rv.Motion,{style:{scale:this.props.skipAnimation?1:(0,Rv.spring)(this.scale,Rv.presets.wobbly)},children:({scale:e})=>(0,K.jsx)(oue,{style:{transform:`scale(${e})`},height:this.props.width,width:this.props.width,imageHeight:(0,W.pixify)((0,W.depixify)(this.props.width)-30),borderColor:this.props.borderColor,background:this.props.background,children:(0,K.jsx)(`img`,{src:`/images/${this.src}`,alt:``})})})}},JD.defaultProps={width:`120px`,background:`#FFF`},JD),KD=XD(GD.prototype,`scale`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),qD=XD(GD.prototype,`src`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),GD))||WD,ZD=(0,Y.StickerReactionWrapper)(sue);D();var QD,$D,eO;function cue(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function lue(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var uue=N.div` 4377 margin: 20px 0; 4378 position: relative; 4379 width: 250px; 4380 height: 250px; 4381 @media (max-height : 550px) { 4382 margin: 10px 0; 4383 } 4384`,due=N.div` 4385 z-index: ${q.Theme.z[`card-3`]}; 4386 display: flex; 4387 flex-direction: column; 4388 justify-content: center; 4389 border-radius: 50%; 4390 background-size: 250px; 4391 background-color: ${q.Theme.blue}; 4392 position: absolute; 4393 width: 250px; 4394 height: 250px; 4395 border: 10px solid #1e3f54; 4396 overflow: hidden; 4397`,fue=N.div` 4398 visibility: hidden; 4399 position: absolute; 4400`,pue=j(QD=($D=class extends V.Component{constructor(e){super(e),cue(this,`scale`,eO,this),this.initiateAnimationWithDelay=()=>{this.scale!==1&&setTimeout(this.initiateAnimation,150)},this.initiateAnimation=()=>{this.scale=1,this.props.muted||U.AppUI.soundEffectStore.play(`horn`)},e.inView&&this.initiateAnimationWithDelay()}componentDidUpdate(e){!e.inView&&this.props.inView&&this.initiateAnimationWithDelay()}render(){return(0,K.jsx)(uue,{children:(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.scale,Rv.presets.wobbly)},children:({scale:e})=>(0,K.jsxs)(due,{style:{transform:`scale(${e})`},children:[(0,K.jsx)(fue,{children:e}),(0,K.jsx)(ZD,{width:`230px`,card:this.props.card,reaction:`happy`,languageId:this.props.languageId})]})})})}},eO=lue($D.prototype,`scale`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$D))||QD,tO,mue=N.div` 4401 ${(0,X.flexCenterColumn)()} 4402 position: relative; 4403 z-index: ${q.Theme.z[`card-2`]}; 4404 width: 100%; 4405 height: ${e=>e.height}; 4406 background: ${q.Theme.darkestBlue}; 4407 border-top-left-radius: 10px; 4408 border-top-right-radius: 10px; 4409 border-bottom-left-radius: ${e=>e.borderBottomRadius}; 4410 border-bottom-right-radius: ${e=>e.borderBottomRadius}; 4411 .progress-bar-with-level { 4412 max-width: 400px; 4413 width: calc(100% - 40px); 4414 .progress-bar { 4415 height: 16px; 4416 border-radius: 5px; 4417 .current { 4418 background: ${q.Theme.orange}; 4419 } 4420 } 4421 } 4422`,hue=N.div` 4423 z-index: 0; 4424 position: absolute; 4425 background: #f1f1f1; 4426 border-bottom-left-radius: ${e=>e.borderBottomRadius}; 4427 border-bottom-right-radius: ${e=>e.borderBottomRadius}; 4428 height: ${e=>e.height}; 4429 bottom: 0; 4430 width: 100%; 4431`,gue=N.div` 4432 display: inline-flex; 4433 align-items: center; 4434 justify-content: center; 4435 font-size: 24px; 4436 font-weight: bold; 4437 margin: 5px 0 20px 0; 4438 cursor: pointer;
4439 color: white; 4440 @media (max-height: 500px) { 4441 display: none; 4442 } 4443`,_ue=N.div` 4444 padding: 0 10px; 4445 width: 100%; 4446 z-index: 1; 4447`,nO=j(tO=class extends V.Component{render(){return(0,K.jsxs)(mue,{height:(0,W.pixify)(this.props.height),borderBottomRadius:(0,W.pixify)(this.props.borderBottomRadius),children:[(0,K.jsx)(hue,{height:(0,W.pixify)(this.props.height/2),borderBottomRadius:(0,W.pixify)(this.props.borderBottomRadius)}),(0,K.jsxs)(`div`,{className:`text`,children:[(0,K.jsx)(R,{italic:!0,center:!0,color:`#FFF`,children:this.props.achievementText}),(0,K.jsx)(gue,{onClick:this.props.toggleLanguage,children:this.props.encouragement[this.props.languageIndex]})]}),(0,K.jsx)(pue,{user:U.DeckUI.user,languageId:this.props.card.languageId||`DE`,inView:this.props.inView,muted:this.props.muted}),(0,K.jsx)(_ue,{children:(0,K.jsx)(nue,{user:U.DeckUI.user,flatProgressBar:!0})})]})}})||tO;nO.defaultProps={borderBottomRadius:10};var rO,vue=j(rO=class extends V.Component{render(){return(0,K.jsxs)($T,{children:[U.DeckUI.userIsLoaded&&U.DeckUI.userDeck.hasUserCards&&(0,K.jsx)(oE,{children:(0,K.jsx)(nO,{card:this.props.card,inView:this.props.inView,achievementText:this.props.achievementText,encouragement:this.props.encouragement,languageIndex:this.props.languageIndex,toggleLanguage:this.props.toggleLanguage,height:U.DeckUI.layout.contentHeight})}),(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),submitOnEnter:!0,shortcut:`1`})})]})}})||rO,yue=(0,Y.CheckpointCardWrapper)(vue),iO,aO,bue=N.div` 4448 display: flex; 4449 flex-direction: column; 4450 align-items: center; 4451 justify-content: ${e=>e.justifyContent}; 4452 padding: ${e=>e.padding}; 4453 height: ${e=>e.height}; 4454 flex: ${e=>e.height?null:1}; 4455 background: ${e=>e.background}; 4456 background-size: ${e=>e.backgroundSize}; 4457 background-repeat: repeat; 4458 position: relative; 4459 width: 100%; 4460 border-top-left-radius: ${e=>e.borderTopLeftRadius}; 4461 border-top-right-radius: ${e=>e.borderTopRightRadius}; 4462 border-bottom-left-radius: ${e=>e.borderBottomLeftRadius}; 4463 border-bottom-right-radius: ${e=>e.borderBottomRightRadius}; 4464 overflow: hidden; 4465 font-size: ${e=>e.fontSize}; 4466 cursor: ${e=>e.cursor}; 4467`,xue=j(iO=(aO=class extends V.Component{render(){return(0,K.jsxs)(bue,{height:(0,W.pixify)(this.props.height),backgroundSize:(0,W.pixify)(this.props.height/4),className:this.props.className,background:this.props.background,padding:this.props.padding,borderTopLeftRadius:(0,W.pixify)(this.props.borderTopLeftRadius),borderTopRightRadius:(0,W.pixify)(this.props.borderTopRightRadius),borderBottomLeftRadius:(0,W.pixify)(this.props.borderBottomLeftRadius),borderBottomRightRadius:(0,W.pixify)(this.props.borderBottomRightRadius),justifyContent:this.props.justifyContent,fontSize:this.props.fontSize,cursor:this.props.onClick?`pointer`:`default`,onClick:this.props.onClick,children:[U.DeckUI.layout.debug&&(0,K.jsx)(nE,{left:0,children:this.props.height}),this.props.children]})}},aO.defaultProps={padding:`10px`,justifyContent:`center`},aO))||iO,oO=(0,Y.BorderRadius)((0,Y.CardSectionWrapper)(xue));D();var sO,cO,lO;function Sue(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Cue(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var wue=N.div` 4468 ${(0,X.flexCenterColumn)()} 4469 position: relative; 4470 background: #000; 4471 width: ${e=>e.width}; 4472 height: ${e=>e.width}; 4473 border-radius: 50%; 4474 margin-left: 10px; 4475 img { 4476 width: ${e=>e.width}; 4477 height: ${e=>e.width}; 4478 border-radius: 50%; 4479 } 4480 .spinner { 4481 margin: 0; 4482 } 4483`,uO=M(j(sO=(cO=class extends V.Component{constructor(...e){super(...e),Sue(this,`showSpinner`,lO,this)}render(){return(0,K.jsxs)(wue,{width:(0,W.pixify)(this.props.width),children:[this.showSpinner&&(0,K.jsx)(P,{}),(0,K.jsx)(`img`,{src:this.props.src,onLoad:()=>this.showSpinner=!1,alt:``})]})}},lO=Cue(cO.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),cO))||sO);D();var dO,fO;function pO(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var mO=50,hO=50,Tue=N.div` 4484 ${(0,X.flexCenter)()} 4485`,Eue=N.div` 4486 position: absolute; 4487 z-index: 1; 4488 top: 0; 4489 left: 0; 4490 display: flex; 4491 flex-direction: row; 4492 flex-wrap: wrap; 4493 width: ${e=>(0,W.pixify)(e.width)}; 4494 height: ${e=>(0,W.pixify)(e.height)}; 4495 overflow: hidden; 4496 justify-content: space-between; 4497 font-weight: bold; 4498`,Due=N.div` 4499 ${(0,X.flexCenter)()} 4500 height: ${e=>(0,W.pixify)(e.height)}; 4501 width: ${e=>(0,W.pixify)(e.width)}; 4502 opacity: 0.8; 4503 color: #FFF; 4504`,Oue=N.div` 4505 position: absolute; 4506 z-index: 2; 4507 display: flex; 4508`,kue=j(dO=(fO=class extends V.Component{get numGenders(){return Math.floor(U.DeckUI.layout.innerDeckWidth/mO)*Math.floor(this.height/hO)}get height(){return this.props.height||U.DeckUI.layout.heightForCardSections(3)}render(){let e=this.props.word||this.props.card?.word;return(0,K.jsx)(oO,{id:`top-section`,height:this.props.height,background:this.props.background,borderTopRadius:this.props.borderTopRadius,borderBottomRadius:this.props.borderBottomRadius,fontSize:`8px`,children:(0,K.jsxs)(Tue,{children:[e?.definiteArticle&&(0,K.jsx)(Eue,{width:U.DeckUI.layout.innerDeckWidth,height:this.height,children:(0,G.times)(this.numGenders).map(t=>(0,K.jsx)(Due,{width:mO,height:hO,style:{transform:`rotate(-45deg)`},children:e?.definiteArticle.toUpperCase()},t))}),(0,K.jsxs)(Oue,{children:[this.props.hasVideoClip&&this.props.showMedia&&(0,K.jsx)(Yi,{hasVideoClip:!0,autoPlay:this.props.autoPlay,width:Math.floor(U.DeckUI.layout.deckWidth/2.8),videoClip:this.props.videoClip,afterVideoPlayback:this.props.afterVideoPlayback,supplementVideoClip:this.props.supplementVideoClip}),this.props.supplementImageUrl&&this.props.showMedia&&(0,K.jsx)(uO,{width:Math.floor(U.DeckUI.layout.deckWidth/2.8),src:this.props.supplementImageUrl})]})]})})}}
4508,pO(fO.prototype,`numGenders`,[E],Object.getOwnPropertyDescriptor(fO.prototype,`numGenders`),fO.prototype),pO(fO.prototype,`height`,[E],Object.getOwnPropertyDescriptor(fO.prototype,`height`),fO.prototype),fO))||dO,gO=(0,Y.MediaSectionWrapper)(kue),_O,Aue=N.span` 4509 4510`,jue=j(_O=class extends V.Component{render(){return(0,K.jsxs)(Aue,{children:[!this.props.cardState.revealed&&(0,K.jsxs)(MT,{children:[this.props.showHelpButton&&(0,K.jsx)(yE,{shortcut:`1`,text:`Help`,marginRight:5,icon:(0,K.jsx)(J.HelpIcon,{}),disabled:this.props.disabled,onClick:this.props.onClickHelp,backgroundColor:q.Theme.darkOrange}),(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:this.props.showHelpButton?`2`:`1`,marginLeft:this.props.showHelpButton?5:0,text:`Show Answer`,backgroundColor:q.Theme.darkGreen,icon:(0,K.jsx)(J.RightIcon,{}),disabled:this.props.disabled,onClick:()=>this.props.onShowAnswer?this.props.onShowAnswer():U.DeckUI.onEvaluateTextInput(this.props.card,this.props.cardState,this.props.userCard)})]}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:this.props.disabled,onNextClick:this.props.onNextClick})]})}})||_O,vO=(0,Y.TranslateButtonsWrapper)(jue);D();var yO,bO,xO,SO;function Mue(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Nue(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Pue=N.div` 4511 width: 100%; 4512 height: 4px; 4513 display: flex; 4514`,Fue=N.div` 4515 background: ${e=>e.background}; 4516 height: 4px; 4517 border-radius: 3px; 4518 box-sizing: border-box; 4519`,CO=j(yO=(bO=(SO=class extends V.Component{constructor(e){super(e),Mue(this,`width`,xO,this),this.setWidth=()=>{let e=Math.floor(this.audioMeterRef.current.offsetWidth)-this.props.numSegments*this.props.margin-1;this.width=Math.floor(e/this.props.numSegments)},this.audioMeterRef=V.createRef()}componentDidMount(){(0,W.isBlank)(this.props.width)&&(this.boundSetWidth=this.setWidth,window.addEventListener(`resize`,this.boundSetWidth,!0),this.setWidth())}componentWillUnmount(){window.removeEventListener(`resize`,this.boundSetWidth,!0)}isActive(e){return!this.props.disabled&&this.props.filledSegments?e<this.props.filledSegments:this.props.level>e*(100/this.props.numSegments)}style(){if(this.width===0)return{flex:1,margin:(0,W.pixify)(this.props.margin)};if(this.props.projectToward===`left`)return{width:(0,W.pixify)(this.width),marginLeft:(0,W.pixify)(this.props.margin),float:`right`};if(this.props.projectToward===`right`)return{width:(0,W.pixify)(this.width),marginRight:(0,W.pixify)(this.props.margin),float:`left`}}render(){return(0,K.jsx)(`div`,{ref:this.audioMeterRef,style:{width:`100%`},children:(0,K.jsx)(Pue,{children:(0,G.times)(this.props.numSegments,e=>(0,K.jsx)(Fue,{style:this.style(),background:this.isActive(e)?q.Theme.green:`transparent`},e))})})}},SO.propTypes={numSegments:Z.default.number.isRequired,filledSegments:Z.default.number,level:Z.default.number,margin:Z.default.number.isRequired,projectToward:Z.default.string,disabled:Z.default.bool,width:Z.default.number},SO.defaultProps={projectToward:`right`,width:0},SO),xO=Nue(bO.prototype,`width`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.width}}),bO))||yO,wO,Iue=N.div` 4520 height: ${e=>e.height}; 4521 width: 100%; 4522 z-index: ${q.Theme.z[`card-3`]}; 4523 border-top: ${e=>e.borderTop}; 4524 .icon { 4525 display: inline-flex; 4526 justify-content: center; 4527 align-items: center; 4528 color: white; 4529 border-radius: 50%; 4530 width: ${e=>e.iconWidth}; 4531 height: ${e=>e.iconWidth}; 4532 svg { 4533 fill: #FFF; 4534 } 4535 } 4536 .icon-wrapper { 4537 cursor: ${e=>e.disabled?`auto`:`pointer`}; 4538 } 4539 .pencil-icon { 4540 background: ${q.Theme.darkestBlue}; 4541 svg { 4542 width: 17px; 4543 margin-top: -3px; 4544 } 4545 } 4546 .trash-can-icon { 4547 svg { 4548 width: 17px; 4549 height: 18px; 4550 margin-top: -2px; 4551 fill: ${q.Theme.red}; 4552 } 4553 } 4554 .send-icon { 4555 svg { 4556 width: 17px; 4557 margin-left: -3px; 4558 } 4559 } 4560`,Lue=N.div` 4561 width: 60px; 4562`,Rue=N.div` 4563 ${(0,X.flexCenter)()} 4564 width: ${e=>e.width}; 4565 height: ${e=>e.width}; 4566 border: 2px solid ${q.Theme.darkestBlue}; 4567 border-radius: 50%; 4568`,zue=N.div` 4569 ${(0,X.flexCenter)()} 4570 width: 100%; 4571 height: 100%; 4572 background: white; 4573 position: relative; 4574 border-bottom-left-radius: 10px; 4575 border-bottom-right-radius: 10px; 4576 padding: 0 3px; 4577 & > div { 4578 margin: 0 2px; 4579 } 4580`,Bue=N.div` 4581 flex: 1; 4582`,Vue=N.div` 4583 position: absolute; 4584 top: ${e=>e.top}; 4585 left: 0; 4586 right: 0; 4587 padding: 10px; 4588 margin: auto; 4589 height: 0px; 4590 z-index: ${q.Theme.z[`card-4`]}; 4591 textarea { 4592 -webkit-transition: all 0.2s ease-in-out; 4593 transition: all 0.2s ease-in-out; 4594 height: 80px; 4595 line-height: 14px; 4596 border-radius: 10px; 4597 line-height: 20px; 4598 opacity: ${e=>e.disabled?.3:1}; 4599 resize: none; 4600 width: 100%; 4601 } 4602 textarea:focus { 4603 border: 1px solid #D1D1D1; 4604 } 4605`,Hue=N.div` 4606 position: absolute; 4607 bottom: 5px; 4608 width: 100%; 4609`,Uue=N.div` 4610 margin-left: 3px; 4611`,Wue=N.div` 4612 flex: 1; 4613 display: flex; 4614 align-items: center; 4615 justify-content: center; 4616`,Gue=N.div` 4617 width: ${e=>e.width}; 4618 display: flex; 4619 flex-direction: row; 4620 justify-content: flex-end; 4621 padding-right: 10px; 4622`,Kue=j(wO=class extends V.Component{render(){return(0,K.jsx)(Iue,{height:(0,W.pixify)(this.props.height),disabled:this.props.disabled,iconWidth:(0,W.pixify)(this.props.iconWidth),borderTop:this.props.borderTop,children:(0,K.jsxs)(zue,{children:[U.DeckUI.layout.debug&&(0,K.jsx)(nE,{left:0,children:this.props.height}),!this.props.showAudioPlayer&&this.props.showTrashIcon&&this.props.userInputStore.isRecording&&(0,K.jsx)(Lue,{children:(0,K.jsx)(R,{fontSize:12,marginLeft:20,color:`#333`,children:this.props.userInputStore.timeDisplay})}),(this.props.showAudioIcon||this.props.showTextIcon)&&(0,K.jsxs)(Wue,{children:[this.props.showAudioIcon&&(0,K.jsx)(J.RecordingIcon,{type:`audio`,marginRight:2,disabled:this.props.disabled,width:(0,W.pixify)(this.props.iconWidth),background:this.props.recordingIconBackgroun
4622d,borderColor:this.props.recordingIconBorderColor,recording:this.props.audioRecording,onToggleRecord:this.props.onToggleRecordAudio}),this.props.showTextIcon&&(0,K.jsx)(Rue,{width:(0,W.pixify)(this.props.iconWidth+10),height:(0,W.pixify)(this.props.iconWidth+10),onClick:()=>this.props.setInputType(`text`),children:(0,K.jsx)(J.PencilIcon,{marginLeft:this.props.showAudioIcon?2:0,width:(0,W.pixify)(this.props.iconWidth)})})]}),(this.props.persistentTextInput||this.props.showTextInput||this.props.showAudioPlayer)&&(0,K.jsxs)(Bue,{children:[(this.props.persistentTextInput||this.props.showTextInput)&&(0,K.jsx)(Vue,{disabled:this.props.textInputDisabled,expanded:this.props.expandedTextInput,top:(0,W.pixify)(U.DeckUI.layout.cardTextHeight*-1),children:(0,K.jsx)(Ii,{placeholder:this.props.inputPrompt||`Type a Message`,inputType:`textarea`,disabled:this.props.textInputDisabled,caretPosition:this.props.caretPosition,focusOnId:this.props.messageInput,value:this.props.messageInput,onKeyUp:this.props.onKeyUp.bind(this),id:`user-input`,onChange:this.props.onUpdateMessageInput,height:U.DeckUI.layout.cardTextHeight-20,expandedHeight:U.DeckUI.layout.cardTextHeight-20})}),(this.props.persistentTextInput||this.props.showTextInput)&&(0,K.jsx)(ta,{border:`1px solid #c7c7c7`,onClick:this.props.insertText,width:U.DeckUI.layout.innerDeckWidth-50,outerPadding:`0 5px`}),this.props.showAudioPlayer&&(0,K.jsx)(Uue,{children:(0,K.jsx)(EC,{className:`user-input`,userInputStore:this.props.userInputStore,onPlayAudio:this.props.onPlayAudio})})]}),this.props.showTrashIcon&&(0,K.jsx)(Gue,{width:this.props.userInputStore.isRecording?`60
4622px`:`40px`,children:(0,K.jsx)(J.TrashCanIcon,{className:`trash-can-icon-wrapper`,background:`#FFF`,onClick:this.props.onReset})}),this.props.showSendIcon&&(0,K.jsx)(J.SendIcon,{onClick:this.props.onSubmit,background:this.props.disableSendIcon?q.Theme.disabled:q.Theme.green}),(0,K.jsx)(Hue,{children:!this.props.disabled&&(0,K.jsx)(CO,{numSegments:20,margin:5,projectToward:`right`,level:this.props.userInputStore.normalizedAudioLevel})})]})})}})||wO,que=(0,Y.UserInputWrapper)(Kue);me();var TO,Jue=N.div` 4623 height: ${e=>e.height}; 4624 width: ${e=>e.width}; 4625 background: white; 4626 display: flex; 4627 flex-direction: column; 4628 align-items: center; 4629 justify-content: center; 4630 border-bottom-left-radius: 10px; 4631 border-bottom-right-radius: 10px; 4632 background: repeating-linear-gradient( 4633 -45deg, 4634 whitesmoke, 4635 whitesmoke 10px, 4636 #FFF 10px, 4637 #FFF 20px 4638 ); 4639`,Yue=M(j(TO=class extends V.Component{onClickNoMicrophone(){U.DeckUI.deviceCanRecordMedia?U.DeckUI.gotoDeckSettings():U.DeckUI.gotoMediaBlocked()}render(){return(0,K.jsx)(Jue,{className:`no-user-input`,height:(0,W.pixify)(U.DeckUI.layout.userInputHeight-2),width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),children:!U.DeckUI.canRecordMedia&&(0,K.jsxs)(`span`,{"data-tip":!0,"data-for":`no-user-input`,children:[(0,K.jsx)(J.NoMicrophoneIcon,{onClick:()=>this.onClickNoMicrophone(),minimumHeight:U.DeckUI.layout.minimumHeight}),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:`no-user-input`,class:`custom-tooltip`,children:`Audio input has been disabled.`})]})})}})||TO),EO,Xue=N.span` 4640 4641`,Zue=j(EO=class extends V.Component{constructor(...e){super(...e),this.assignShortcut=()=>{U.DeckUI.isShortcutAssigned(`a`)||(U.DeckUI.assignShortcut(`a`),(0,zv.default)(`a`,this.props.onToggleRecordAudio))},this.unbindShortcut=()=>{U.DeckUI.isShortcutAssigned(`a`)&&(U.DeckUI.removeShortcut(`a`),zv.default.unbind(`a`))}}componentDidMount(){this.props.disabled||this.assignShortcut()}componentDidUpdate(e){e.disabled&&!this.props.disabled?this.assignShortcut():!e.disabled&&this.props.disabled&&this.unbindShortcut()}componentWillUnmount(){this.unbindShortcut()}render(){return(0,K.jsxs)(Xue,{children:[!this.props.showUserInput&&(0,K.jsx)(Yue,{}),this.props.showUserInput&&(0,K.jsx)(que,{height:(0,W.pixify)(U.DeckUI.layout.userInputHeight),userInputStore:this.props.userInputStore,submitted:this.props.cardState.submittedToFeed,requestedFeedback:this.props.cardState.requestedFeedback,allowTextInput:this.props.card.userResponseCard,allowVideoInput:!1,allowAudioInput:U.DeckUI.canRecordMedia,disabled:this.props.disabled,onToggleRecordAudio:this.props.onToggleRecordAudio,cardId:this.props.card.id,width:(0,W.pixify)(U.DeckUI.layout.supplementWidth),userId:U.DeckUI.user.id,audioOnly:!this.props.card.userResponseCard,messageOnSubmission:`Your feed has been updated.`,languageId:this.props.card.languageId})]})}})||EO,DO=(0,Y.CardUserInputWrapper)(Zue),OO,Que=N.div` 4642 4643`,$ue=N.div` 4644 font-weight: bold; 4645 line-height: 18px; 4646 font-size: 16px; 4647 padding: 0 15px; 4648`,ede=N.div` 4649 line-height: 18px; 4650 font-size: 16px; 4651`,tde=N.div` 4652 font-style: italic; 4653 line-height: 16px; 4654 font-size: 13px; 4655 padding: 0 15px; 4656`,nde=M(j(OO=class extends V.Component{render(){return(0,K.jsxs)(Que,{onClick:this.props.onClick,children:[this.props.title&&(0,K.jsx)($ue,{children:this.props.title}),this.props.text&&(0,K.jsx)(ede,{children:this.props.text}),this.props.subText&&(0,K.jsx)(tde,{children:this.props.subText})]})}})||OO),kO,rde=j(kO=class extends V.Component{render(){return(0,W.isPresent)(this.props.filteredArrowBoxes)&&U.DeckUI.user.showDeckArrowBox?this.props.filteredArrowBoxes.map(e=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{id:e.slug}),(0,V.createElement)(ID,{...e,card:this.props.card,enableClickOnWrapper:!0,key:e.slug,show:!U.DeckUI.hideDeckArrowBox&&e.slug===this.props.currentArrowBox,onClick:()=>this.props.onHideArrowBox(e),onClose:(0,G.isFunction)(e.onClose)?()=>e.onClose(e.slug):null,zIndex:q.Theme.z[`card-4`],closeIconFill:e.onboarding?`#FFF`:`#000`,hideCloseIcon:!e.onboarding},!e.onboarding&&(0,K.jsx)(nde,{title:e.title,subText:e.subText}),e.onboarding&&(0,K.jsx)(zD,{title:e.title,message:e.message}))]},e.slug)):(0,K.jsx)(`span`,{})}})||kO,AO=(0,Y.CardArrowBoxWrapper)(rde),jO,MO,ide=N.div` 4657 background: ${e=>e.background}; 4658 color: ${e=>e.color}; 4659 padding: ${e=>e.padding}; 4660 border-radius: ${e=>e.borderRadius}; 4661 margin-top: ${e=>e.marginTop}; 4662 visibility: ${e=>e.visibility}; 4663 min-height: 50px; 4664 display: flex; 4665 flex-direction: column; 4666 gap: 10px; 4667`,NO=M(j(jO=(MO=class extends V.Component{render(){return(0,K.jsx)(ide,{...this.props,style:this.props.style,visibility:this.props.visibility,children:this.props.children})}},MO.defaultProps={background:q.Theme.orange,color:`white`,padding:`15px`,borderRadius:`5px`,marginTop:`0px`},MO))||jO),ade=N.div` 4668 position: absolute; 4669 top: 10px; 4670 left: 10px; 4671 z-index: ${e=>e.zIndex||q.Theme.z[`card-4`]}; 4672 display: flex; 4673 flex-direction: row; 4674 align-items: center; 4675 .fa-check { 4676 color: ${q.Theme.green}; 4677 } 4678 .fa-times { 4679 color: ${q.Theme.red}; 4680 } 4681`,ode=N.span` 4682 color: ${q.Theme.red}; 4683 font-size: 14px; 4684 margin-left: 12px; 4685 font-weight: bold; 4686`,PO=({correct:e,userAnswer:t,zIndex:n})=>e==null?null:(0,K.jsxs)(ade,{zIndex:n,children:[e&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!e&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),(0,W.isPresent)(t)&&(0,K.jsxs)(ode,{children:[`You answered "`,t,`"`]})]})]}),FO,sde=N.div` 4687 ${(0,X.flexCenterColumn)()} 4688 flex: 1; 4689 width: 100%; 4690 height: 100%; 4691`,cde=N.div` 4692 ${(0,X.flexCenter)()} 4693 width: 100%; 4694 background: #CCC; 4695 height: ${e=>e.height}; 4696`,lde=N.div` 4697 ${(0,X.flexCenterColumn)()} 4698 width: 100%; 4699 height: 100%; 4700`,ude=N.div` 4701 margin: 10px 0; 4702`,dde=N.div` 4703 width: 280px; 4704 background: white; 4705 margin: auto; 4706 border-radius: 5px; 4707 display: flex; 4708 align-items: center; 4709 justify-content: center; 4710 flex-direction: column; 4711 font-size: 14px; 4712 line-height: 18px; 4713 color: #333; 4714 padding: 10px; 4715 svg { 4716 width: 30px; 4717 } 4718`,fde=j(FO=class extends V.Component{constructor(...e){super(...e),this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,showWordCard:this.props.showWordCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[this.props.cardState.revealed&&(0,K.jsx)(gO,{showMedia:!0,autoPlay:this.props.inView,card:this.props.card,cardState:this.props.cardState,height:this.props.sectionHeight,borderTopRadius:10,afterVideoPlayback:this.props.afterVideoPlayback}),(0,K.jsx)(oO,{background:`#FFF`,padding:`20px`,numSections:this.props.numSections,borderTopRadius:this.props.cardState.revealed?0:10,height:this.props.sectionHeight,children:(0,K.jsx)(Vi,{resizeText:!0,height:this.props.sectionHeight-20,width:U.DeckUI.layout.innerDeckWidth-40,characterLength:this.props.topSectionText&&this.props.topSectionText.length,children:(0,K.jsx)(R,{rtl:q.Constants.RTL_LANGUAGE_IDS.includes(this.props.topSectionLanguageId),cursor:this.props.cardState.revealed?`pointer`:null,onClick:this.props.cardState.revealed?this.openSourceEdit:null,children:this.props.topSectionText})})}),(0,K.jsxs)(oO,{numSections:this.props.numSections,padding:`20px`,background:`#CCC`,borderBottomRadius:this.props.showUserInput?0:10,height:this.props.sectionHeight,children:[!this.props.showUserInput&&this.props.cardState.revealed&&(0,K.jsx)(PO,{correct:this.props.userCard.correct,userAnswer:this.props.userAnswer,zIndex:q.Theme.z[`card-3`]}),(0,K.jsxs)(lde,{children:[(0,K.jsxs)(sde,{children:[this.props.grammarHint&&(0,K.jsx)(`div`,{style:{marginBottom:`10px`},children:(0,K.jsx)(vD,{description:this.props.grammarHint.description,backgroundColor:this.props.grammarHint.color})}),(0,W.isBlank)(this.props.card.sentence.enrichedWords)&&!this.props.showRefreshButton&&(0,K.jsx)(P,{}),this.props.showRefreshButton&&(0,K.jsxs)(dde,{children:[(0,K.jsx)(J.BrokenIcon,{}),(0,K.jsx)(ude,{children:U.AppUI.getErrorMessage(`sentence`)}),(0,K.jsx)(I,{onClick:this.props.onRefreshSentence,children:`Refresh Sentence`})]}),this.props.showUserInput&&(0,K.jsx)(Vi,{resizeText:!0,maximumFontSize:30,height:this.props.sectionHeight-20,width:U.DeckUI.layout.deckWidth-40,characterLength:this.props.card.sentence&&this.props.card.sentence.targetText&&this.props.card.sentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,showUnderline:this.props.cardState.revealed,showGapUnderline:!this.props.cardState.revealed,disableOnClick:!this.props.cardState.revealed,inputWordAssociationIds:this.props.cardState.revealed?null:this.props.card.wordA
4718ssociationIds,highlightWordAssociationIds:this.props.cardState.revealed?this.props.card.wordAssociationIds:null,sentence:this.props.card.sentence,defaultBorderColor:`#b0b0b0`})}),!this.props.showUserInput&&(0,K.jsx)(Vi,{resizeText:!0,maximumFontSize:30,height:this.props.sectionHeight-20,width:U.DeckUI.layout.deckWidth-40,characterLength:this.props.card.sentence&&this.props.card.sentence.targetText&&this.props.card.sentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,hideTextInput:!this.props.inView,caretPosition:this.props.caretPosition,focusedWordAssociationId:this.props.inView&&this.props.focusedWordAssociationId,showUnderline:this.props.cardState.revealed,showCase:this.props.showCase&&this.props.cardState.revealed,onSubmit:()=>this.props.onSubmit?this.props.onSubmit():U.DeckUI.onEvaluateTextInput(this.props.card,this.props.cardState,this.props.userCard),onInputChange:this.props.onInputChange,inputWordAssociationIds:this.props.card.wordAssociationIds,sentence:this.props.card.sentence,inputValues:this.props.inputValues,onInputFocus:this.props.onInputFocus,disableOnClick:!this.props.cardState.revealed,inputCorrect:this.props.inputValuesCorrect&&(this.props.cardState.revealed||this.props.evaluateVocabOnKeystroke),inputIncorrect:this.props.cardState.revealed&&this.props.inputValuesCorrect===!1,inputValuesCorrectByWordAssociationId:this.props.inputValuesCorrectByWordAssociationId,defaultBorderColor:`#b0b0b0`})}),this.props.showAccentWarning&&!this.props.cardState.revealed&&(0,K.jsx)(NO,{marginTop:`20px`,children:q.Constants.WARNINGS.accents}),this.props.showSynonymWarning&&!this.props.cardState.revealed&&(0,K.jsx)(NO,{marginTop:`20px`,children:q.Constants.WARNINGS.synonym}),this.props.showLetterCaseWarning&&!this.props.cardState.revealed&&(0,K.jsx)(NO,{marginTop:`20px`,children:q.Constants.WARNINGS.letterCase}),this.props.showMultipleWordsWarning&&!this.props.cardState.revealed&&(0,K.jsx)(NO,{marginTop:`20px`,children:q.Constants.WARNINGS.needsMoreWords})]}),!this.props.showUserInput&&!this.props.cardState.revealed&&(0,K.jsx)(cde,{height:U.DeckUI.layout.isMobile?`36px`:`26px`,children:this.props.focusedWordAssociationId&&(0,K.jsx)(ta,{center:!0,fontSize:U.DeckUI.layout.isMobile?`12px`:`16px`,onClick:this.props.onCharacterClick})})]})]}),this.props.showUserInput&&(0,K.jsx)(DO,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),(0,K.jsx)(vO,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,onNextClick:this.props.onNextClick,onShowAnswer:this.props.onShowAnswer})]})}})||FO,IO=(0,Y.SentenceTranslateCardWrapper)(fde);D();var LO,RO;function pde(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var mde=N.div` 4719 position: relative; 4720 display: flex; 4721 width: 100%; 4722 height: 100%; 4723 padding: 0 20px; 4724 flex-wrap: wrap; 4725 line-height: 28px; 4726`,hde=N.div` 4727 margin: ${e=>e.margin}; 4728 display: flex; 4729 flex-direction: row; 4730 align-items: center; 4731 justify-content: center; 4732 font-size: 24px; 4733 font-weight: bold; 4734 flex-wrap: wrap; 4735`,gde=N.div` 4736 display: flex; 4737 flex-direction: column; 4738 width: 100%; 4739 align-items: center; 4740 justify-content: center; 4741`,_de=N.span` 4742 font-size: 28px; 4743 color: #333; 4744 font-weight: bold; 4745 margin-right: ${e=>e.marginRight||`15px`}; 4746 margin-top: ${e=>e.marginTop}; 4747`,vde=N.div` 4748 font-size: 18px; 4749 font-weight: bold; 4750 margin-top: 10px; 4751 color: #333; 4752 display: flex; 4753 align-items: center; 4754`,yde=N.div` 4755 margin-right: ${e=>e.marginRight}; 4756`,bde=N.div` 4757 width: 22px; 4758 height: 22px; 4759 background: ${e=>e.background}; 4760 border-radius: 22px; 4761 display: flex; 4762 align-items: center; 4763 justify-content: center; 4764 margin-left: 5px; 4765 i { 4766 color: #FFF; 4767 font-size: 14px; 4768 } 4769 .fa-arrow-left { 4770 margin-left: -1px; 4771 } 4772`,xde={"a9f10fd6-e041-4087-b31f-2ae640c3c3c4":{background:q.Theme.green,iconString:`fa-arrow-down`},"56e11a26-8f93-4486-a897-f5be4fa2fb34":{background:q.Theme.purple,iconString:`fa-book`},"c1e9f360-b6d3-422b-bde4-1ad86deb466a":{background:q.Theme.orange,iconString:`fa-arrow-left`},"2c6bd03e-ba93-4721-8778-9addc42f08d2":{background:q.Theme.gold,iconString:`fa-book`},"6add2c4d-aa54-4cc5-8819-608272a44458":{background:q.Theme.blue,iconString:`fa-book`},"33635da2-3d1d-4dc3-a75d-bd7b038b964d":{background:q.Theme.green,iconString:`fa-arrow-down`},"1dc1f99d-c766-4c2c-9f8e-0219c6b28b21":{background:q.Theme.purple,iconString:`fa-arrow-left`},"b37d06ac-8b5d-44c7-8ab6-4547ada49112":{background:q.Theme.orange,iconString:`fa-arrow-left`},"6de9af2b-0219-4348-980b-fec89e52696a":{background:q.Theme.gold,iconString:`fa-arrow-right`},"ad790421-3602-408f-af2d-cb91e4197ac2":{background:q.Theme.blue,iconString:`fa-book`}
4772,"38ce3ce6-2b14-4f9b-b81e-2335d74d394b":{background:q.Theme.green,iconString:`fa-arrow-down`},"239aea46-cf43-49d1-ac75-41fe4e27feb3":{background:q.Theme.darkPurple,iconString:`fa-arrow-left`},"f714550e-6d45-4050-927c-b3e720261a31":{background:q.Theme.purple,iconString:`fa-arrow-left`},"23e01211-7348-4790-8ed4-d0a4d6d186d3":{background:q.Theme.orange,iconString:`fa-arrow-left`},"b43e9bd2-9f06-4602-9a0d-d47847e8f763":{background:q.Theme.gold,iconString:`fa-arrow-right`},"4f187664-22a4-4580-8cdb-48f859f86a3b":{background:q.Theme.blue,iconString:`fa-book`}},Sde=j(LO=(RO=class extends V.Component{get icon(){return xde[this.props.tenseConceptId]}render(){return(0,K.jsx)(mde,{children:(0,K.jsxs)(gde,{children:[(0,K.jsxs)(hde,{children:[(0,K.jsx)(_de,{marginRight:(0,G.last)(this.props.personalPronoun)===`'`?`5px`:`15px`,children:this.props.personalPronoun}),this.props.correctAnswer&&this.props.correctAnswerDisplay.split(` `).map(e=>(0,K.jsx)(yde,{marginRight:`15px`,children:`_`.repeat(e.length)},e))]}),(0,K.jsxs)(vde,{children:[this.props.card.word.targetText,`, `,q.Constants.GRAMMAR_TENSES[this.props.card.word.languageId][this.props.tenseConceptId],(0,K.jsx)(bde,{background:this.icon.background,children:(0,K.jsx)(`i`,{className:`fa ${this.icon.iconString}`})})]})]})})}},pde(RO.prototype,`icon`,[E],Object.getOwnPropertyDescriptor(RO.prototype,`icon`),RO.prototype),RO))||LO,zO=(0,Y.ConjugationCardPromptWrapper)(Sde),BO,Cde=N.div` 4773 display: flex; 4774 flex-direction: column; 4775 width: 100%; 4776 align-items: center; 4777 justify-content: center; 4778 overflow: hidden; 4779`,VO=N.div` 4780 margin: ${e=>e.margin}; 4781 display: flex; 4782 flex-direction: row; 4783 align-items: center; 4784 justify-content: center; 4785 font-size: 24px; 4786 font-weight: bold; 4787`,wde=N.div` 4788 margin-bottom: 20px; 4789 font-style: italic; 4790 cursor: pointer; 4791`,Tde=N.div` 4792 margin: 10px 0 20px 0; 4793 font-style: italic; 4794 cursor: pointer; 4795`,Ede=N.div` 4796 background: ${e=>e.background}; 4797 width: 100%; 4798 padding: 10px 0; 4799 border-radius: 5px; 4800 display: flex; 4801 align-items: center; 4802 justify-content: center; 4803 flex-direction: column; 4804 position: relative; 4805 svg { 4806 width: 20px; 4807 height: 20px; 4808 fill: #FFF; 4809 position: absolute; 4810 top: 10px; 4811 left: 10px; 4812 } 4813`,Dde=N.div` 4814 font-weight: bold; 4815 font-size: 16px; 4816 color: #FFF; 4817 margin: 10px 0 0 0; 4818 cursor: ${e=>e.cursor}; 4819`,Ode=N.div` 4820 display: flex; 4821 flex-direction: column; 4822 width: 100%; 4823 align-items: center; 4824 justify-content: flex-start; 4825 overflow-y: auto; 4826`,kde=j(BO=class extends V.Component{constructor(...e){super(...e),this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)(Cde,{children:[(0,K.jsxs)(Ede,{background:this.props.userCard.correct?q.Theme.green:q.Theme.red,children:[this.props.userCard.correct&&(0,K.jsx)(J.BigSmileFaceIcon,{}),!this.props.userCard.correct&&(0,K.jsx)(J.NeutralFaceIcon,{}),this.props.cardState.revealed&&this.props.showVideo&&(0,K.jsx)(Yi,{hasVideoClip:!0,autoPlay:!0,width:Math.floor(U.DeckUI.layout.deckWidth/4.5),videoClip:this.props.videoClip,afterVideoPlayback:this.props.afterVideoPlayback}),this.props.cardState.revealed&&!this.props.showVideo&&(0,K.jsx)(ZD,{card:this.props.card,reaction:this.props.userCard.correct?`happy`:`disappointed`}),(0,W.isPresent)(this.props.revealedText)&&(0,K.jsx)(Dde,{onClick:this.props.onToggleEncouragement,cursor:this.props.userCard.correct?`pointer`:`text`,children:this.props.revealedText})]}),(0,W.isPresent)(this.props.card.sentence)&&(0,K.jsx)(VO,{margin:`20px 0 0 0`,children:(0,W.displayTargetTextCorrectedForLanguage)((0,G.capitalize)(this.props.card.sentence.targetText),this.props.card.sentence.languageId)}),(0,W.isBlank)(this.props.card.sentence)&&(0,K.jsxs)(VO,{margin:`20px 0 10px 0`,children:[(0,K.jsx)(`span`,{children:this.props.personalPronoun}),(0,K.jsx)(`span`,{style:{marginLeft:(0,G.last)(this.props.personalPronoun)===`'`?`0px`:`5px`,textDecoration:`underline`}
4826,children:(0,W.displayTargetTextCorrectedForLanguage)(this.props.correctAnswer,this.props.card.languageId)})]}),(0,W.isPresent)(this.props.card.sentence)&&(0,K.jsx)(Tde,{children:(0,K.jsx)(`span`,{onClick:this.openSourceEdit,children:this.props.card.sentence.sourceText})}),(0,W.isBlank)(this.props.card.sentence)&&(0,K.jsxs)(wde,{onClick:this.openSourceEdit,children:[this.props.card.word.targetText,` - `,this.props.source]}),(0,K.jsx)(Ode,{children:(0,K.jsx)(Ui,{inDeck:!0,hideHeader:!0,highlightPronoun:this.props.card.pronoun,padding:`0`,word:this.props.card.word,conceptId:this.props.tenseConceptId})})]})}})||BO,HO=(0,Y.ConjugationCardRevealedWrapper)(kde),UO,Ade=N.div` 4827 font-size: 14px; 4828 font-weight: bold; 4829 color: #FFF; 4830 font-style: italic; 4831`,jde=N.div` 4832 font-size: 14px; 4833 line-height: 18px; 4834 padding: 10px; 4835`,Mde=j(UO=class extends V.Component{constructor(...e){super(...e),this.showTextEntry=()=>{U.DeckUI.user.set(`textInputConjugationTrainer`,!0),U.DeckUI.authUserStore.update({data:{textInputConjugationTrainer:!0}},G.noop)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{padding:0,height:(0,W.pixify)(this.props.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.buttonOptions?.length)),children:[!this.props.revealed&&(0,K.jsxs)(oO,{background:`#5d5d5d`,borderTopRadius:10,numSections:2,children:[!U.DeckUI.user.wasUiElementSeen(`conjugation-multiple-choice`)&&(0,K.jsx)(XC,{uiElement:`conjugation-multiple-choice`,children:(0,K.jsxs)(jde,{children:[`Click `,(0,K.jsx)(`span`,{onClick:this.showTextEntry,style:{textDecoration:`underline`,cursor:`pointer`},children:`HERE`}),` if you would like text entry for this card. You can change this at any time from your deck settings.`]})}),(0,K.jsx)(Ade,{children:`What is the conjugation of this verb?`})]}),(0,K.jsxs)(oO,{background:`#FFF`,numSections:this.props.revealed?1:2,borderTopRadius:this.props.revealed?10:0,borderBottomRadius:10,justifyContent:this.props.revealed?`auto`:`center`,children:[this.props.revealed&&(0,K.jsx)(HO,{...this.props}),!this.props.revealed&&(0,K.jsx)(zO,{...this.props})]})]}),!this.props.revealed&&(0,K.jsx)(ED,{blockFontCalculation:!0,width:U.DeckUI.layout.innerDeckWidth,height:(0,W.pixify)(U.DeckUI.layout.totalMultipleChoiceButtonHeight(this.props.buttonOptions?.length)),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,selected:[this.props.multipleChoiceSelected],correct:this.props.correct,options:this.props.buttonOptions,onClick:e=>this.props.onClickButton(e),isMobile:U.DeckUI.layout.isMobile,field:`displayValue`,padding:`5px`,margin:`0`,fontSize:U.DeckUI.layout.minimumHeight?`13px`:`16px`,disabled:!this.props.inView,languageId:this.props.card.languageId}),this.props.revealed&&(0,K.jsx)(OD,{card:this.props.card,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]})}})||UO,Nde=(0,Y.ConjugationCardWrapper)(Mde);D();var WO,GO,KO,qO;function JO(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function YO(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Pde=N.div` 4836 width: 100%; 4837 padding: ${e=>e.padding||`10px 20px`}; 4838 input, .false_input { 4839 display: flex; 4840 align-items: center; 4841 justify-content: center; 4842 height: 73px; 4843 width: 100%; 4844 padding: 20px; 4845 font-size: ${e=>e.fontSize}; 4846 text-align: center; 4847 border-radius: 20px; 4848 background: ${e=>e.background?e.background:`#FFF`}; 4849 color: ${e=>e.background?`#FFF`:`#000`}; 4850 height: 73px; 4851 } 4852 .diff { 4853 text-decoration: underline; 4854 text-underline-offset: 6px; 4855 } 4856 .diff, .no-diff { 4857 white-space: pre; 4858 } 4859`,XO=M(j(WO=(GO=class extends V.Component{constructor(e){super(e),JO(this,`caretPosition`,KO,this),JO(this,`overflow`,qO,this),this.insertText=e=>{if(this.disabled)return null;let t=document.getElementById(this.id);if(t){let n=t.selectionStart,r=[this.props.value.slice(0,n),e,this.props.value.slice(n)].join(``);this.onChange(r,n+1)}},this.onChange=(e,t)=>
4859{this.detectOverflow(),this.caretPosition=t,this.props.onChange(e)},this.detectOverflow=()=>{let e=document.getElementById(this.id),t=document.createElement(`canvas`).getContext(`2d`);t.font=`26px "Gotham Rounded SSm A", "Gotham Rounded SSm B", "arial"`;let n=t.measureText(e.value).width;this.overflow=n>e.clientWidth-40},this.onKeyDown=e=>{e.keyCode===13&&e.shiftKey===!1&&this.props.onPressEnter(e.currentTarget.value)},this.id=wn()}componentDidUpdate(e){e.value!==this.props.value&&this.detectOverflow()}get background(){return this.props.correct?q.Theme.green:this.props.incorrect?q.Theme.red:null}get fontSize(){return this.overflow?18:26}get disabled(){return this.props.disabled||this.props.correct||this.props.incorrect}render(){return(0,K.jsxs)(Pde,{padding:this.props.padding,background:this.background,fontSize:(0,W.pixify)(this.fontSize),children:[(0,K.jsx)(R,{center:!0,fontStyle:`italic`,color:`#565656`,fontSize:`14px`,style:{display:this.props.revealed?`none`:null},children:this.props.message}),!this.props.revealed&&(0,K.jsx)(Ii,{blurOnNumber:!this.props.numberEntry,caretPosition:this.caretPosition,focus:this.props.focus,value:this.props.correct?this.props.target:this.props.value,onKeyDown:this.onKeyDown,onChange:this.onChange,id:this.id,disabled:this.disabled}),this.props.revealed&&(0,K.jsx)(`div`,{className:`false_input`,children:this.props.revealedValue||this.props.value}),!this.props.revealed&&!this.props.numberEntry&&(0,K.jsx)(ta,{margin:`10px 0 0 0`,center:!0,disabled:this.disabled,onClick:this.insertText})]})}},KO=YO(GO.prototype,`caretPosition`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qO=YO(GO.prototype,`overflow`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),YO(GO.prototype,`background`,[E],Object.getOwnPropertyDescriptor(GO.prototype,`background`),GO.prototype),YO(GO.prototype,`fontSize`,[E],Object.getOwnPropertyDescriptor(GO.prototype,`fontSize`),GO.prototype),YO(GO.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(GO.prototype,`disabled`),GO.prototype),GO))||WO),ZO,Fde=j(ZO=class extends V.Component{render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[(0,K.jsxs)(oO,{background:`#FFF`,numSections:this.props.revealed?1:2,borderTopRadius:10,borderBottomRadius:this.props.revealed?10:0,justifyContent:this.props.revealed?`auto`:`center`,children:[this.props.revealed&&(0,K.jsx)(HO,{...this.props}),!this.props.revealed&&(0,K.jsx)(zO,{...this.props})]}),!this.props.revealed&&(0,K.jsxs)(oO,{background:`#CCC`,numSections:2,borderBottomRadius:this.props.showUserInput?0:10,children:[(0,K.jsx)(XO,{disabled:!this.props.inView,focus:this.props.inView&&U.DeckUI.firstCardHasAdvanced,target:this.props.card.word.targetTextWithDefiniteArticle,message:(0,K.jsxs)(`span`,{children:[`Conjugate this `,(0,K.jsx)(`b`,{children:`Verb`})]}),onChange:this.props.onTextInputChange,onPressEnter:this.props.evaluateTextInput,value:this.props.cardState.textEntry,hint:this.props.hint,languageId:this.props.card.languageId}),this.props.showMultipleWordsWarning&&(0,K.jsx)(NO,{children:q.Constants.WARNINGS.needsMoreWords}),this.props.showAccentWarning&&(0,K.jsx)(NO,{children:q.Constants.WARNINGS.accents})]})]}),(0,K.jsx)(vO,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,showHelpButton:this.props.showHelpButton,onHelpButtonClicked:this.props.onHelpButtonClicked,onShowAnswer:this.props.evaluateTextInput})]})}})||ZO,Ide=(0,Y.ConjugationCardWrapper)(Fde);D();var QO,$O;function Lde(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ek=M(j(QO=($O=class extends V.Component{get showTextEntryCard(){return this.props.card.cardType.slug!==`conjugation-multiple-choice`&&(U.AppUI.user.textInputConjugationTrainer&&this.props.card.cardType.slug===`conjugation`||this.props.card.cardType.slug===`conjugation-fill-in-blanks`)}render(){return U.AppUI.userIsLoaded?this.showTextEntryCard?(0,K.jsx)(Ide,{...this.props}):(0,K.jsx)(Nde,{...this.props}):(0,K.jsx)(`span`,{})}},Lde($O.prototype,`showTextEntryCard`,[E],Object.getOwnPropertyDescriptor($O.prototype,`showTextEntryCard`),$O.prototype),$O))||QO);D();var tk,nk,rk,ik;function Rde(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function zde(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Bde=N.div` 4860 position: relative; 4861 display: flex; 4862 margin: ${e=>e.margin}; 4863`,Vde=N.div` 4864 padding: 20px; 4865 @media (max-width: 500px) { 4866 padding: 10px; 4867 } 4868`,Hde=N.div` 4869 font-size: 18px; 4870 margin-bottom: 20px; 4871`,Ude=N.div` 4872 display: flex; 4873 flex-direction: column; 4874 gap: 10px; 4875 margin-bottom: 20px; 4876`,Wde=N.div` 4877 padding: 10px 15px; 4878 border: 1px solid #ddd; 4879 border-radius: 5px; 4880 cursor: pointer; 4881 text-align: left; 4882 background: ${e=>e.selected?q.Theme.blue:`#FFF`}; 4883 color: ${e=>e.selected?`#FFF`:`#000`}; 4884 &:hover { 4885 background: ${e=>e.selected?q.Theme.blue:`#f5f5f5`}; 4886 }
4887`,Gde=N.div` 4888 margin-top: 10px; 4889`,Kde=N.input` 4890 width: 100%; 4891 padding: 10px; 4892 border: 1px solid #ddd; 4893 border-radius: 5px; 4894 font-size: 14px; 4895`,qde=N.div` 4896 display: flex; 4897 gap: 10px; 4898 justify-content: flex-end; 4899 margin-top: 20px; 4900`,Jde=j(tk=(nk=(ik=class extends V.Component{constructor(){super(),Rde(this,`showConfirmation`,rk,this),this.onConfirm=()=>{this.showConfirmation=!1,this.props.onConfirm()},this.handleClick=()=>{this.props.isFlagged?this.showConfirmation=!0:this.props.onPress()},this.id=Math.random()}render(){return(0,K.jsxs)(Bde,{margin:this.props.margin,width:this.props.width,children:[this.showConfirmation&&(0,K.jsx)(Xi,{left:this.props.left,right:this.props.right,top:this.props.top,floatsRight:this.props.confirmationMessageFloatsRight,close:()=>this.showConfirmation=!1,onConfirm:this.onConfirm,message:this.props.removeFlaggingMessage}),this.props.showModal&&(0,K.jsx)(Dn,{width:U.AppUI.layout.isMobile?`90%`:`500px`,onCloseModal:this.props.onCancelModal,hideCloseIcon:!1,title:this.props.modalTitle,gradient:!0,children:(0,K.jsxs)(Vde,{children:[(0,K.jsx)(Hde,{children:this.props.questionText}),(0,K.jsx)(Ude,{children:this.props.reasons.map(e=>(0,K.jsx)(Wde,{selected:this.props.selectedReason===e,onClick:()=>this.props.onReasonSelect(e),children:e},e))}),this.props.selectedReason===`Other`&&(0,K.jsx)(Gde,{children:(0,K.jsx)(Kde,{value:this.props.otherText,onChange:e=>this.props.onOtherTextChange(e.target.value),placeholder:this.props.otherInputPlaceholder,maxLength:this.props.otherInputMaxLength,autoFocus:!0})}),(0,K.jsx)(qde,{children:(0,K.jsx)(I,{onClick:this.props.onConfirmReason,background:q.Theme.blue,disabled:!this.props.canConfirm,children:this.props.confirmButtonText})})]})}),(0,K.jsx)(J.FlagTranslationIcon,{minimumHeight:`20px`,onClick:this.handleClick,showTooltip:!0,message:this.props.isFlagged?`Remove Flagging`:`Flag Incorrect Translation`,flagged:this.props.isFlagged})]})}},ik.defaultProps={width:`20px`,faIcon:`fa-times`},ik),rk=zde(nk.prototype,`showConfirmation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nk))||tk,ak=(0,Y.FlagButtonWrapper)(Jde),ok,sk,Yde=N.div` 4901 width: 100%; 4902 height: 100%; 4903 display: flex; 4904 flex-direction: column; 4905 .source-wrapper:last-child { 4906 border-bottom: none; 4907 } 4908 cursor: ${e=>e.cursor}; 4909`,Xde=N.div` 4910 display: flex; 4911 align-items: center; 4912 justify-content: ${e=>e.leftAlign?`left`:`center`}; 4913 flex: 1; 4914 width: 100%; 4915 padding: ${e=>e.padding}; 4916 margin: ${e=>e.margin}; 4917 background: ${e=>e.background}; 4918 border-bottom: ${e=>e.borderBottom}; 4919 position: relative; 4920 .fa-times { 4921 color: #b3b3b3; 4922 } 4923`,ck=N.div` 4924 display: flex; 4925 align-items: center; 4926 justify-content: ${e=>e.flagWrapperAlignLeft?`flex-start`:`center`}; 4927 width: ${e=>e.width}; 4928 margin: ${e=>e.margin}; 4929 .icon-wrapper { 4930 height: 20px; 4931 } 4932`,Zde=N.div` 4933 flex: 1; 4934 padding: ${e=>e.padding}; 4935`,Qde=N.div` 4936 margin: 5px; 4937 cursor: pointer; 4938 font-style: italic; 4939 color: #676767; 4940 font-size: 14px; 4941`,$de=j(ok=(sk=class extends V.Component{constructor(...e){super(...e),this.languageName=e=>{if(e)return q.Languages[e]},this.afterFlag=()=>{this.props.afterFlag&&this.props.afterFlag()},this.itemSources=e=>e.sources||[e],this.sourceText=e=>(0,K.jsxs)(K.Fragment,{children:[e.source.textForUser(this.props.user),e.source.displayGender&&!this.props.hideGender&&this.props.word.genderAbbreviation]})}render(){return(0,K.jsxs)(Yde,{onClick:this.props.translations?.length>this.props.numberPreviewSources&&this.props.showMoreTranslationsButton?this.props.expandSources:this.props.onClick,cursor:this.props.showMoreTranslationsButton||(0,G.isFunction)(this.props.onClick)?`pointer`:null,children:[this.props.showSpinner&&(0,K.jsx)(P,{}),this.props.word&&this.props.translations&&this.props.translations.map((e,t)=>this.props.showMoreTranslationsButton&&t>0?null:(0,K.jsxs)(Xde,{borderBottom:this.props.borderBottom,leftAlign:this.props.leftAlign,translate:this.props.translate,className:`source-wrapper`,padding:this.props.sourcePadding,margin:this.props.sourceMargin,background:this.props.background,children:[this.props.showFlags&&(0,K.jsx)(ck,{width:(0,W.pixify)(this.props.flagWrapperWidth),flagWrapperAlignLeft:this.props.flagWrapperAlignLeft,"aria-label":this.languageName(e.source?.languageId),children:(0,K.jsx)(J.LanguageIcon,{margin:`0 5px 0 0`,languageId:e.source&&e.source?.languageId})}),e.source&&(0,K.jsx)(Zde,{padding:0,children:(0,K.jsx)(R,{fontSize:(0,W.pixify)(this.props.translationFontSize(e)),lineHeight:(0,W.pixify)(this.props.translationLineHeight(e)),textAlign:this.props.leftAlign?`left`:``,lang:e.source?.languageId,children:this.itemSources(e).map((e,t)=>(0,K.jsxs)(V.Fragment,{children:[t>0&&`, `,this.sourceText(e)]},e.id||t))})}),!!(this.props.centerTextInDeck&&this.props.showFlags)&&(0,K.jsx)(ck,{width:(0,W.pixify)(this.props.flagWrapperWidth),"aria-hidden":`true`}),!this.props.hideRetranslationIcon&&(0,K.jsx)(ak,{translationSource:e,word:this.props.word,onAfterFlag:this.afterFlag}),this.props.showFlag&&(0,K.jsx)(ck,{width:(0,W.pixify)(this.props.flagWrapperWidth),flagWrapperAlignLeft:this.props.flagWrapperAlignLeft})]},e.id)),this.props.showMoreTranslationsButton&&(0,K.jsxs)(Qde,{children:[`See `,this.props.translations?.length-this.props.numberPreviewSources,` More Translations`]})]})}},sk.defaultProps={flagWrapperWidth:25,hideGender:!1,fontSize:30,numberPreviewSources:1},sk))||ok,lk=(0,Y.SourceListWrapper)($de);function uk(){return` 4942 display: flex; 4943 flex-direction: row; 4944 justify-content: center;
4945 align-items: center; 4946 `}function dk(){return` 4947 display: flex; 4948 flex-direction: column; 4949 justify-content: center; 4950 align-items: center; 4951 `}be();var fk,pk,efe=N.div` 4952 position: absolute; 4953 bottom: 0px; 4954 margin-bottom: ${e=>e.marginBottom}; 4955 background: ${e=>e.correct?ve.green:ve.red}; 4956 border-radius: 10px; 4957 width: ${e=>e.width}; 4958 ${uk()} 4959 overflow: hidden; 4960 height: 40px; 4961 i { 4962 position: absolute; 4963 left: 6px; 4964 top: 3px; 4965 color: white; 4966 font-size: 18px; 4967 } 4968 .diff { 4969 text-decoration: underline; 4970 text-underline-offset: 6px; 4971 } 4972 .diff, .no-diff { 4973 white-space: pre; 4974 } 4975`,mk=j(fk=(pk=class extends V.Component{render(){return(0,K.jsxs)(efe,{marginBottom:this.props.marginBottom,width:this.props.width,correct:this.props.correct,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),(0,K.jsx)(Vi,{resizeText:!0,height:60,padding:10,maximumFontSize:24,width:U.DeckUI.layout.deckWidth-40,characterLength:this.props.text&&this.props.text.length,children:(0,K.jsx)(R,{bold:!0,color:`#FFF`,children:this.props.text})})]})}},pk.defaultProps={width:`96%`,correct:!1},pk))||fk;D();var hk,gk,_k;function vk(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var tfe=N.div` 4976 background: ${e=>e.background}; 4977 position: relative; 4978 width: 100%; 4979 height: 100%; 4980 display: flex; 4981`,nfe=N.div` 4982 overflow: auto; 4983 flex: 1; 4984 margin-bottom: ${e=>e.marginBottom}; 4985`,rfe=N.div` 4986 ${(0,X.flexCenterColumn)()} 4987 position: absolute; 4988 top: -5px; 4989 right: -5px; 4990 display: flex; 4991 gap: 5px; 4992`,ife=N.div` 4993 width: ${e=>e.width}; 4994 height: ${e=>e.height}; 4995 background: #FFF; 4996 border-radius: 10px; 4997 display: flex; 4998 cursor: pointer; 4999 align-items: center; 5000 justify-content: center; 5001`,afe=j(hk=(gk=(_k=class extends V.Component{constructor(...e){super(...e),this.sourceLineKey=e=>{if(!e?.source)return null;let t=e.source.languageId||`unknown`,n=e.source.textForUser?e.source.textForUser(U.AppUI.user):e.source.text,r=e.source.displayGender&&!this.props.hideGender&&this.props.word?.genderAbbreviation||``;return`${t}:${n||``}${r}`},this.dedupeMeaningTranslations=e=>{let t=new Set;return e.filter(e=>{let n=this.sourceLineKey(e?.sources?.[0]);return!n||t.has(n)?!1:(t.add(n),!0)})},this.isEnglishLanguageId=e=>!!(e&&e.startsWith(`EN`)),this.isNativeLanguageId=e=>!e||this.isEnglishLanguageId(e)?!1:e===U.AppUI.user?.languageId,this.partitionMeaningSourcesByLanguage=e=>{let t=[],n=[];return(e||[]).forEach(e=>{e?.source&&(this.isEnglishLanguageId(e.source.languageId)?n.push(e):this.isNativeLanguageId(e.source.languageId)&&t.push(e))}),{nativeSources:t,englishSources:n}},this.selectMeaningSources=(e,t={})=>{let n=(e||[]).filter(e=>!!e?.source),{nativeSources:r,englishSources:i}=this.partitionMeaningSourcesByLanguage(n);if(this.nativeLanguageIsEnglish)return t.singleMeaning?i.slice(0,2):n.slice(0,1);if(t.singleMeaning){let e=r.filter(e=>this.isNativeLanguageId(e?.source?.languageId)).slice(0,2);if(U.AppUI.user?.onlyShowNativeLanguage)return(0,W.isPresent)(e)?e:i.slice(0,1);if(!(0,W.isPresent)(e))return i.slice(0,1);let t=i.slice(0,1);return U.AppUI.user?.showNativeLanguageFirst===!1?t.concat(e):e.concat(t)}let a=i.slice(0,1),o=r.slice(0,1);return U.AppUI.user?.onlyShowNativeLanguage?(0,W.isPresent)(o)?o:a:(0,W.isPresent)(o)?U.AppUI.user?.showNativeLanguageFirst===!1?a.concat(o):o.concat(a):a},this.orderMeaningTranslationsByLanguage=e=>{if(this.nativeLanguageIsEnglish)return e;let t=[],n=[];return(e||[]).forEach(e=>{this.isEnglishLanguageId(e.source?.languageId)?n.push(e):t.push(e)}),U.AppUI.user?.onlyShowNativeLanguage?(0,W.isPresent)(t)?t:n:U.AppUI.user?.showNativeLanguageFirst===!1?n.concat(t):t.concat(n)},this.openVocabOverlay=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.card?.cardState,requiresRevealed:!0})}}get nativeLanguageIsEnglish(){return this.isEnglishLanguageId(U.AppUI.user?.languageId)}get meaningTranslations(){let e=(0,G.orderBy)(this.props.filterMeaningsForCard(this.props.word?.meanings||[]),`score`,`desc`),t=e.length===1,n=e.flatMap(e=>{let n=e.translationSourcesForUser(U.AppUI.user)||[];return this.selectMeaningSources(n,{singleMeaning:t}).map((t,n)=>t?.source?{id:`${e.id}-${n}`,source:t.source,sources:[t]}:null)}).filter(e=>e);return this.orderMeaningTranslationsByLanguage(this.dedupeMeaningTranslations(n))}get previewMeaningTranslations(){let e={};
5001(this.props.word?.meaningSourcePreviews||[]).forEach((t,n)=>{if(!t?.source)return;let r=t.meaningId||`preview-${n}`;this.props.cardSynonymMeaningIds&&!this.props.cardSynonymMeaningIds.has(String(r))||(e[r]||(e[r]=[]),e[r].push(t))});let t=Object.keys(e).length===1,n=Object.entries(e).flatMap(([e,n])=>this.selectMeaningSources(n,{singleMeaning:t}).map((t,n)=>({id:t.id||`${e}-${n}`,source:t.source,sources:[t]})));return this.orderMeaningTranslationsByLanguage(this.dedupeMeaningTranslations(n))}get activeMeaningTranslations(){return(0,W.isPresent)(this.meaningTranslations)?this.meaningTranslations:this.previewMeaningTranslations}get meaningFontSize(){return{1:30,2:26,3:22,4:20}[Math.min(this.activeMeaningTranslations.length,4)]}get shouldShowMeaningTranslations(){return U.AppUI.user?.showMeanings&&U.AppUI.user?.showVocabMeanings===!0}get showMeaningTranslationFlags(){return new Set(this.activeMeaningTranslations.map(e=>e.source?.languageId).filter(e=>e)).size>1}render(){return(0,K.jsxs)(tfe,{background:this.props.background,children:[(0,K.jsx)(rfe,{children:this.props.showLanguageButton&&(0,K.jsx)(ife,{onClick:this.props.toggleLanguage,height:U.DeckUI.layout.minimumHeight?`30px`:`40px`,width:U.DeckUI.layout.minimumHeight?`30px`:`40px`,children:(0,K.jsx)(ji,{background:`#e8e8e8`,arrowLeft:this.props.arrowLeft,width:this.props.languageIconWidth,languageId:this.props.showType===`source`?this.props.sentence?.sourceTextForUserLanguageId(U.DeckUI.user)||`EN`:U.DeckUI.deck?.languageId||this.props.card?.languageId||U.DeckUI.targetLanguageId})})}),(0,K.jsxs)(nfe,{marginBottom:this.props.showWrongAnswer&&(0,W.isPresent)(this.props.wrongAnswer)?`50px`:0,children:[this.shouldShowMeaningTranslations&&(0,W.isPresent)(this.activeMeaningTranslations)&&(0,K.jsx)(lk,{...this.props,flagWrapperWidth:`25px`,flagWrapperMargin:`0 0 0 5px`,showFlags:this.showMeaningTranslationFlags,centerTextInDeck:!0,borderBottom:`1px solid #909090`,hideRetranslationIcon:!0,sourcePadding:this.props.sourcePadding,fontSize:(0,W.pixify)(this.meaningFontSize),translations:this.activeMeaningTranslations,word:this.props.word,hideGender:this.props.hideGender,user:U.AppUI.user,onClick:this.props.card?.cardState?.revealed?this.openVocabOverlay:null,numberPreviewSources:this.props.numberPreviewSources,preview:!1,preserveTranslationOrder:!0}),!(this.shouldShowMeaningTranslations&&(0,W.isPresent)(this.activeMeaningTranslations))&&(0,K.jsx)(lk,{...this.props,flagWrapperWidth:`25px`,flagWrapperMargin:`0 0 0 5px`,showFlags:![`EN`,`EN2`].includes(U.AppUI.user.languageId),centerTextInDeck:!0,borderBottom:`1px solid #909090`,showAddSource:!0,hideRetranslationIcon:!0,sourcePadding:this.props.sourcePadding,fontSize:(0,W.pixify)(this.props.fontSize),translations:this.props.translations,hideGender:this.props.hideGender,user:U.AppUI.user,preferredSource:this.props.card.source,onClick:this.props.showEdit&&this.props.card?.cardState?.revealed?this.openVocabOverlay:null,numberPreviewSources:this.props.numberPreviewSources})]}),this.props.card.cardState?.revealed&&this.props.showWrongAnswer&&(0,W.isPresent)(this.props.wrongAnswer)&&(0,K.jsx)(mk,{text:this.props.wrongAnswer,width:`100%`})]})}},_k.defaultProps={sourcePadding:`10px`},_k),vk(gk.prototype,`nativeLanguageIsEnglish`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`nativeLanguageIsEnglish`),gk.prototype),vk(gk.prototype,`meaningTranslations`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`meaningTranslations`),gk.prototype),vk(gk.prototype,`previewMeaningTranslations`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`previewMeaningTranslations`),gk.prototype),vk(gk.prototype,`activeMeaningTranslations`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`activeMeaningTranslations`),gk.prototype),vk(gk.prototype,`meaningFontSize`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`meaningFontSize`),gk.prototype),vk(gk.prototype,`shouldShowMeaningTranslations`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`shouldShowMeaningTranslations`),gk.prototype),vk(gk.prototype,`showMeaningTranslationFlags`,[E],Object.getOwnPropertyDescriptor(gk.prototype,`showMeaningTranslationFlags`),gk.prototype),gk))||hk,yk=(0,Y.CardSourceListWrapper)(afe);me(),D();var bk,xk;function Sk(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ofe=N.span` 5002 font-size: ${e=>e.fontSize}; 5003 color: ${e=>e.color}; 5004`,Ck=N.span` 5005 border-bottom: ${e=>
5005e.editable||e.selected?`2px solid `:null}; 5006 border-color: ${e=>e.selected?q.Theme.orange:q.Theme.gray}; 5007 margin-right: ${e=>e.marginRight}; 5008 cursor: ${e=>e.cursor}; 5009`,sfe=j(bk=(xk=class extends V.Component{get word(){return this.props.card?this.props.card.word:this.props.word}get editText(){return this.props.word?this.props.word.targetText:this.props.card?this.word.targetTextWithDefiniteArticle:``}get displayText(){return this.props.displayText?this.props.displayText:this.word.targetTextWithDefiniteArticle}get indexDifference(){return this.displayText.indexOf(this.editText)}render(){return(0,K.jsxs)(ofe,{fontSize:this.props.editMode?`20px`:null,color:this.props.color,className:this.props.className,children:[this.props.editMode&&this.word&&this.editText.split(``).map((e,t)=>(0,K.jsx)(Ck,{selected:this.props.selectedCharacters?.includes(t),onClick:()=>this.props.onClick(t),marginRight:`2px`,editable:!0,cursor:`pointer`,children:e},`${this.word.id}-${t}`)),!this.props.editMode&&this.word&&this.displayText.split(``).map((e,t)=>(0,K.jsx)(Ck,{selected:this.props.charIsSelected(t-this.indexDifference),editable:!1,children:e},`${this.word.id}-${t}`)),this.props.editable&&(0,K.jsxs)(`span`,{children:[(0,K.jsxs)(`span`,{"data-for":`edit-${this.word?.id}`,"data-tip":!0,children:[(0,K.jsx)(Mn,{i:this.props.editMode?`save`:`underline`,style:{marginLeft:10,marginTop:3,color:`gray`},className:(0,Qg.default)({selected:this.props.editMode}),onClick:this.props.toggleEditMode}),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:`edit-${this.word?.id}`,className:`custom-tooltip`,children:this.props.word?`Underline stressed characters`:`Underline characters in target text`})]}),!(0,W.isBlank)(this.props.underlinedCharacters)&&!this.props.editMode&&(0,K.jsxs)(`span`,{"data-for":`clear-${this.word?.id}`,"data-tip":!0,children:[(0,K.jsx)(Mn,{i:`times`,style:{marginLeft:10,marginTop:3},onClick:this.props.clearUnderlinedCharacters,className:this.props.className}),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:`clear-${this.word?.id}`,className:`custom-tooltip`,children:`Clear underlined characters`})]})]})]})}},Sk(xk.prototype,`word`,[E],Object.getOwnPropertyDescriptor(xk.prototype,`word`),xk.prototype),Sk(xk.prototype,`editText`,[E],Object.getOwnPropertyDescriptor(xk.prototype,`editText`),xk.prototype),Sk(xk.prototype,`displayText`,[E],Object.getOwnPropertyDescriptor(xk.prototype,`displayText`),xk.prototype),Sk(xk.prototype,`indexDifference`,[E],Object.getOwnPropertyDescriptor(xk.prototype,`indexDifference`),xk.prototype),xk))||bk,wk=(0,Y.WordBreakdownWrapper)(sfe),Tk,Ek,cfe=N.div` 5010 width: 100%; 5011 ${X.flexCenterColumn}; 5012 height: ${e=>e.height}; 5013`,lfe=N.div` 5014 text-align: center; 5015 display: flex; 5016 align-items: center; 5017 justify-content: center; 5018 width: 100%; 5019 flex: 1; 5020`,Dk=N.div` 5021 font-size: ${e=>e.fontSize}; 5022 font-weight: ${e=>e.fontWeight}; 5023 color: ${e=>e.color}; 5024 font-style: italic; 5025`,ufe=N.div` 5026 position: absolute; 5027 bottom: 10px; 5028 background: ${q.Theme.green}; 5029 border-radius: 10px; 5030 width: 96%; 5031 ${(0,X.flexCenter)()} 5032 overflow: hidden; 5033 height: 40px; 5034 i { 5035 position: absolute; 5036 left: 6px; 5037 top: 3px; 5038 color: white; 5039 } 5040`,dfe=N.div` 5041`,ffe=N.div` 5042 font-size: 14px; 5043 margin-bottom: 5px; 5044 color: #FFF; 5045 padding: 4px 8px; 5046 border-radius: 5px; 5047 background: ${q.Theme.green}; 5048`,Ok=j(Tk=(Ek=class extends V.Component{render(){return(0,K.jsxs)(cfe,{children:[this.props.showVocabTriadIntro&&(0,K.jsxs)(ffe,{children:[(0,K.jsx)(`span`,{role:`img`,"aria-label":`lightbulb`,children:`ð¡`}),` In this deck we will teach you...`]}),this.props.prompt&&(0,K.jsx)(R,{italic:!0,fontSize:`16px`,children:this.props.prompt}),(0,K.jsx)(lfe,{children:this.props.word&&(0,K.jsx)(Vi,{height:60,width:(0,W.pixify)(U.DeckUI.layout.deckWidth-20),minimumFontSize:14,resizeText:!0,characterLength:this.props.word.targetTextWithDefiniteArticle&&this.props.word.targetTextWithDefiniteArticle.length,children:(0,K.jsxs)(R,{bold:!0,color:this.props.color,children:[(0,W.isBlank)(this.props.card?.underlinedCharacters)&&(this.props.hideDefiniteArticle?this.props.word.targetText:this.props.word.targetTextWithDefiniteArticle),!(0,W.isBlank)(this.props.card?.underlinedCh
5048aracters)&&this.props.card.vocabWordComprehendCard&&(0,K.jsx)(wk,{card:this.props.card})]})})}),!this.props.hidePlural&&this.props.word&&this.props.word.isNoun&&this.props.word.pluralNoun&&!this.props.word.noPlural&&(0,K.jsx)(Dk,{color:this.props.grammarColor,fontSize:(0,W.pixify)(U.DeckUI.layout.minimumHeight?`13px`:this.props.grammarTextSize),fontWeight:this.props.grammarFontWeight,children:this.props.word.pluralNounsString}),!this.props.hidePlural&&this.props.word&&this.props.word.isNoun&&this.props.word.noPlural&&(0,K.jsx)(Dk,{color:this.props.grammarColor,fontSize:(0,W.pixify)(U.DeckUI.layout.minimumHeight?`13px`:this.props.grammarTextSize),fontWeight:this.props.grammarFontWeight,children:`No Plural`}),this.props.word&&(this.props.word.isAdjective||this.props.word.isNumber)&&this.props.word.genderVariant&&this.props.word.genderVariant.targetText!==this.props.word.targetText&&(0,K.jsx)(Dk,{color:this.props.grammarColor,fontSize:(0,W.pixify)(U.DeckUI.layout.minimumHeight?`13px`:this.props.grammarTextSize),fontWeight:this.props.grammarFontWeight,children:this.props.word.genderVariant.targetText}),!this.props.hideConjugation&&this.props.word&&this.props.word.isVerb&&this.props.card&&this.props.card.isEnriched&&this.props.word.conjugatedVerbStringsCount>0&&this.props.word.hasConjugatedVerbStrings&&(0,K.jsx)(Dk,{color:this.props.grammarColor,fontSize:(0,W.pixify)(U.DeckUI.layout.minimumHeight?`13px`:this.props.grammarTextSize),fontWeight:this.props.grammarFontWeight,children:(0,K.jsx)(dfe,{children:this.props.word.conjugatedVerbStringsSummary})}),(0,K.jsx)(vD,{description:this.props.description,backgroundColor:this.props.descriptionBackgroundColor,textColor:this.props.descriptionTextColor,italic:this.props.descriptionItalic,margin:this.props.descriptionMargin,tooltipId:this.props.word?.id,hideIcon:this.props.hideDescriptionIcon}),this.props.word&&this.props.word.isPhoneme&&this.props.card&&(0,W.isBlank)(this.props.prompt)&&(0,K.jsx)(Dk,{color:this.props.grammarColor,fontSize:(0,W.pixify)(U.DeckUI.layout.minimumHeight?`13px`:this.props.grammarTextSize),fontWeight:this.props.grammarFontWeight,children:`This is how we write down this sound`}),this.props.word&&this.props.word.isGrapheme&&this.props.card&&(0,W.isBlank)(this.props.prompt)&&(0,K.jsx)(Dk,{color:this.props.grammarColor,fontSize:(0,W.pixify)(U.DeckUI.layout.minimumHeight?`13px`:this.props.grammarTextSize),fontWeight:this.props.grammarFontWeight,children:`Listen to the pronunciation of this letter${this.props.word.targetText.length>1?` combination`:null}`}),this.props.children,this.props.cardState?.revealed&&this.props.showWrongAnswer&&(0,W.isPresent)(this.props.wrongAnswer)&&(0,K.jsx)(mk,{text:this.props.wrongAnswer,marginBottom:`10px`}),U.DeckUI.showCorrectAnswer&&(0,W.isPresent)(this.props.cardState.textEntry)&&(0,K.jsxs)(ufe,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),(0,K.jsx)(Vi,{resizeText:!0,height:60,padding:10,maximumFontSize:24,width:U.DeckUI.layout.deckWidth-40,characterLength:this.props.cardState.textEntry&&this.props.cardState.textEntry.length,children:(0,K.jsx)(R,{bold:!0,color:`#FFF`,children:this.props.cardState.textEntry})})]})]})}},Ek.defaultProps={grammarTextSize:14,grammarFontWeight:null,grammarColor:`#333`,color:`#000`},Ek))||Tk,kk,pfe=N.div` 5049 position: absolute; 5050 top: 10px; 5051 left: 10px; 5052 font-size: 20px; 5053 z-index: ${q.Theme.z[`card-3`]}; 5054 .fa-times { 5055 color: ${q.Theme.red}; 5056 } 5057 .fa-check { 5058 color: ${q.Theme.green}; 5059 } 5060`,mfe=N.div` 5061 font-size: 14px; 5062 font-weight: bold; 5063 color: #FFF; 5064 font-style: italic; 5065`,hfe=j(kk=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{padding:0,children:[!this.props.revealed&&(0,K.jsx)(oO,{background:`#5d5d5d`,borderTopRadius:10,numSections:3,children:(0,K.jsx)(mfe,{children:`What is the correct definite article?`})}),this.props.revealed&&this.props.card.hasTargetVideoClip&&(0,K.jsx)(gO,{autoPlay:this.props.inView,showMedia:!0,borderTopRadius:10,card:this.props.card,cardState:this.props.cardState}),(0,K.jsxs)(oO,{background:`#FFF`,borderTopRadius:!this.props.card.hasTargetVideoClip&&this.props.revealed?10:0,numSections:this.props.card.hasTargetVideoClip?3:2,onClick:this.props.showText&&this.props.revealed&&U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:[this.props.revealed&&(0,K.jsxs)(pfe,{children:[this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-times`})]}),this.props.showText&&!this.props.revealed&&(0,K.jsx)(R,{fontSize:`3
50650px`,bold:!0,children:this.props.card.word.targetText}),this.props.showText&&this.props.revealed&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,height:U.DeckUI.vocabTextHeight,word:this.props.card.word,description:this.props.description})]}),(0,K.jsx)(oO,{background:`#CCC`,borderBottomRadius:10,numSections:this.props.card.hasTargetVideoClip?3:2,children:(0,K.jsx)(yk,{showEdit:!0,word:this.props.card.word,card:this.props.card,hideGender:!this.props.revealed})})]}),!this.props.revealed&&(0,K.jsx)(MT,{height:U.DeckUI.layout.buttonHeight,children:this.props.definiteArticleOptions.map((e,t)=>(0,K.jsx)(yE,{shortcut:t+1,marginRight:5,text:e[1],disabled:!this.props.inView,backgroundColor:this.props.buttonColors[e[0]],color:this.props.buttonColors[e[0]]===`#FFF`?`#333`:`#FFF`,onClick:()=>this.props.onClick(e[0])},t))}),this.props.revealed&&(0,K.jsx)(OD,{card:this.props.card,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]})}})||kk,gfe=(0,Y.GenderCardWrapper)(hfe),Ak,_fe=N.div` 5066 position: absolute; 5067 top: 10px; 5068 left: 10px; 5069 z-index: ${q.Theme.z[`card-3`]}; 5070 .fa-times { 5071 color: ${q.Theme.red}; 5072 } 5073 .fa-check { 5074 color: ${q.Theme.green}; 5075 } 5076`,vfe=N.div` 5077 font-size: 14px; 5078 font-weight: bold; 5079 color: #FFF; 5080 font-style: italic; 5081`,yfe=j(Ak=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{padding:0,height:(0,W.pixify)(this.props.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.pluralOptionsCount)),children:[!this.props.revealed&&(0,K.jsx)(oO,{background:`#5d5d5d`,borderTopRadius:10,numSections:3,children:(0,K.jsx)(vfe,{children:`What is the plural of this noun?`})}),this.props.revealed&&this.props.card.hasTargetVideoClip&&(0,K.jsx)(gO,{autoPlay:this.props.inView,showMedia:!0,borderTopRadius:10,card:this.props.card,cardState:this.props.cardState}
5081),(0,K.jsxs)(oO,{background:`#FFF`,height:this.props.revealed?null:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.pluralOptionsCount)/2,borderTopRadius:!this.props.card.hasTargetVideoClip&&this.props.revealed?10:0,numSections:this.props.card.hasTargetVideoClip?3:2,onClick:U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:[this.props.revealed&&(0,K.jsxs)(_fe,{children:[this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-times`})]}),(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,word:this.props.card.word,hideDefiniteArticle:!this.props.revealed,hidePlural:!this.props.revealed,grammarTextSize:16,grammarFontWeight:`bold`,description:this.props.revealed&&this.props.card.concept?this.props.card.concept.shortDescription:null})]}),(0,K.jsx)(oO,{background:`#CCC`,borderBottomRadius:10,numSections:this.props.card.hasTargetVideoClip?3:2,height:this.props.revealed?null:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.pluralOptionsCount)/2,children:(0,K.jsx)(yk,{showEdit:!0,word:this.props.card.word,card:this.props.card})})]}),!this.props.revealed&&(0,K.jsx)(ED,{blockFontCalculation:!0,width:U.DeckUI.layout.innerDeckWidth,height:(0,W.pixify)(U.DeckUI.layout.totalMultipleChoiceButtonHeight(this.props.pluralOptionsCount)),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,selected:[this.props.multipleChoiceSelected],correct:this.props.correct,options:this.props.pluralOptions,onClick:e=>this.props.onClick(e),isMobile:U.DeckUI.layout.isMobile,field:`value`,padding:`5px`,margin:`0`,fontSize:U.DeckUI.layout.minimumHeight?`13px`:`16px`,disabled:!this.props.inView,languageId:this.props.card.languageId}),this.props.revealed&&(0,K.jsx)(OD,{card:this.props.card,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]})}})||Ak,bfe=(0,Y.PluralCardWrapper)(yfe),jk,xfe=N.div` 5082 position: absolute; 5083 top: 10px; 5084 left: 10px; 5085 z-index: ${q.Theme.z[`card-3`]}; 5086 .fa-times { 5087 color: ${q.Theme.red}; 5088 } 5089 .fa-check { 5090 color: ${q.Theme.green}; 5091 } 5092`,Sfe=N.div` 5093 width: 100%; 5094 background: #FFF; 5095 border-radius: 10px; 5096 padding: 10px; 5097`,Cfe=j(jk=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})}}render(){let e=this.props.revealed?this.props.correctSynonymHasVideoClip:this.props.promptWordHasVideoClip,t=U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.synonymOptionsCount),n=this.props.revealed?null:this.props.promptWordHasVideoClip?t/2:t,r=t/2;return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{padding:0,height:(0,W.pixify)(this.props.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.synonymOptionsCount)),children:[!this.props.revealed&&this.props.promptWordHasVideoClip&&(0,K.jsx)(gO,{autoPlay:this.props.inView,showMedia:!0,borderTopRadius:10,card:this.props.card,cardState:this.props.cardState,word:this.props.promptWord,height:r}),this.props.revealed&&this.props.correctSynonymHasVideoClip&&(0,K.jsx)(gO,{autoPlay:this.props.inView,showMedia:!0,borderTopRadius:10,card:this.props.card,cardState:this.props.cardState,word:this.props.revealedWord,height:r}
5097),(0,K.jsxs)(oO,{background:`#FFF`,height:this.props.revealed?null:n,borderTopRadius:e?0:10,borderBottomRadius:this.props.revealed?0:10,numSections:e?3:2,onClick:U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:[this.props.revealed&&this.props.userCardIsUsable&&(0,K.jsxs)(xfe,{children:[this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-times`})]}),(0,K.jsxs)(Sfe,{children:[!this.props.revealed&&this.props.showPromptText&&(0,K.jsx)(R,{fontSize:`30px`,bold:!0,children:this.props.promptWordText}),this.props.revealed&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,word:this.props.revealedWord||this.props.card.word,grammarTextSize:16,grammarFontWeight:`bold`,hideConjugation:!0,hidePlural:!0,description:this.props.synonymDescription,descriptionBackgroundColor:`#FFF`,descriptionTextColor:q.Theme.darkGray,descriptionItalic:!0,descriptionMargin:`5px 0 0 0`,hideDescriptionIcon:!0})]})]}),this.props.revealed&&(0,K.jsx)(oO,{background:`#CCC`,borderBottomRadius:10,numSections:e?3:2,height:null,children:(0,K.jsx)(yk,{showEdit:!0,word:this.props.revealedWord||this.props.card.word,card:this.props.card})}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),!this.props.revealed&&(0,K.jsx)(ED,{blockFontCalculation:!0,width:U.DeckUI.layout.innerDeckWidth,height:(0,W.pixify)(U.DeckUI.layout.totalMultipleChoiceButtonHeight(this.props.synonymOptionsCount)),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,selected:[this.props.multipleChoiceSelected],correct:this.props.correct,options:this.props.synonymOptions,onClick:e=>this.props.onClick(e),isMobile:U.DeckUI.layout.isMobile,field:`value`,padding:`5px`,margin:`0`,fontSize:U.DeckUI.layout.minimumHeight?`13px`:`16px`,disabled:!this.props.inView,languageId:this.props.card.languageId}),this.props.revealed&&this.props.userCardIsUsable&&(0,K.jsx)(OD,{card:this.props.card,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]})}})||jk,wfe=(0,Y.SynonymCardWrapper)(Cfe);D();var Mk,Nk,Pk;function Fk(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Tfe=N.div` 5098 background: ${e=>e.background}; 5099 margin: ${e=>e.margin}; 5100 color: ${e=>e.color}; 5101 cursor: ${e=>e.cursor}; 5102 white-space: ${e=>e.whiteSpace}; 5103 box-shadow: ${e=>e.assigned?`none`:`0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2)`}; 5104 padding: 10px 20px; 5105 height: ${e=>e.height}; 5106 min-height: ${e=>e.minHeight}; 5107 display: inline-flex; 5108 align-items: center; 5109 font-size: ${e=>e.fontSize}; 5110 line-height: 18px; 5111 border-radius: 10px; 5112 -moz-user-select: none; 5113 -khtml-user-select: none; 5114 -webkit-user-select: none; 5115 -ms-user-select: none; 5116 user-select: none; 5117 .fa-times { 5118 margin-left: 5px; 5119 margin-right: -5px; 5120 opacity: 0.7; 5121 } 5122 width: ${e=>e.width}; 5123`,Ik=M(j(Mk=(Nk=(Pk=class extends V.Component{get background(){return this.props.assigned?`#d1d1d1`:this.props.correct?q.Theme.green:this.props.incorrect?q.Theme.red:this.props.inDeck?q.Theme.orange:`#FFF`}get color(){return this.props.assigned?`#d1d1d1`:this.props.correct||this.props.incorrect||this.props.inDeck?`#FFF`:`#000`}get cursor(){return this.props.assigned||this.props.correct||this.props.incorrect?`default`:`pointer`}render(){return(0,K.jsxs)(Tfe,{onClick:this.props.onClick,assigned:this.props.assigned,background:this.background,color:this.color,margin:this.props.margin,cursor:this.cursor,height:this.props.height,minHeight:this.props.minHeight,fontSize:this.props.fontSize,width:this.props.width,whiteSpace:this.props.whiteSpace,children:[this.props.children,this.props.incorrect&&(0,K.jsx)(`i`,{className:`fa fa-times`})]})}},Pk.defaultProps={height:`50px`,fontSize:`14px`},Pk),Fk(Nk.prototype,`background`,[E],Object.getOwnPropertyDescriptor(Nk.prototype,`background`),Nk.prototype),Fk(Nk.prototype,`color`,[E],Object.getOwnPropertyDescriptor(Nk.prototype,`color`),Nk.prototype),Fk(Nk.prototype,`cursor`,[E],Object.getOwnPropertyDescriptor(Nk.prototype,`cursor`),Nk.prototype),Nk))||Mk);D();var Lk,Rk,zk;function Efe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Dfe=N.div` 5124 min-width: ${e=>e.hasValue?`auto`:e.minWidth}; 5125 border-bottom: ${e=>e.hasValue?`none`:`2px solid #A5A5A5`}; 5126 border-radius: ${e=>e.borderRadius}; 5127 background: #FFF; 5128 color: #000; 5129 width: 100%; 5130 height: ${e=>e.height}; 5131 min-height: ${e=>e.minHeight}; 5132 display: inline-flex; 5133 align-items: center; 5134 justify-content: ${e=>e.justifyContent}; 5135`,Ofe=j(Lk=(Rk=(zk=class extends V.Component{get hasValue(){return(0,W.isPresent)(this.props.value)||this.props.correct||this.props.incorrect}render(){return(0,K.jsx)(Dfe,{hasValue:this.hasValue,textTransform:this.props.textTransform,height:this.props.height,minHeight:this.props.minHeight,justifyContent:this.props.justifyContent,minWidth:this.props.minWidth,borderRadius:this.props.borderRadius,children:this.props.value&&(0,K.jsx)(Ik,{height:this.props.height,width:this.props.width,minHeight:this.props.minHeight,correct:this.props.correct,incorrect:this.props.incorrect,onClick:()=>!this.props.disabled&&(0,W.isPresent)(this.props.value)&&this.props.onClick(),background:this.background,fontSize:this.props.fontSize,inDeck:this.props.inDeck,children:this.props.valueWithCapitalization.normalize(`NFC`)})})}},zk.defaultProps={height:`50px`,justifyContent:`center`,minWidth:`100px`,borderRadius:`10px`},zk),Efe(Rk.prototype,`hasValue`,[E],Object.getOwnPropertyDescriptor(Rk.prototype,`hasValue`),Rk.prototype),Rk))||Lk,Bk=(0,Y.ReorderAcceptItemWrapper)(Ofe);D();var Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk;function Yk(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Xk(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var kfe=N.div` 5136 5137`,Afe=N.div` 5138 line-height: ${e=>e.lineHeight}; 5139 margin: 5px 0; 5140 flex: 1; 5141 display: flex; 5142 align-items: center; 5143 justify-content: ${e=>e.justifyContent}; 5144 flex-wrap: wrap; 5145 min-height: ${e=>e.minHeight||`auto`}; 5146 input:focus { 5147 border: none; 5148 border-bottom: 1px solid black; 5149 } 5150 input { 5151 background: white; 5152 height: 40px; 5153 width: 100px; 5154 font-size: 18px; 5155 line-height: 15px; 5156 padding: 5px; 5157 flex: 1; 5158 border-radius: 0; 5159 border: none; 5160 border-bottom: 1px solid black; 5161 } 5162 select { 5163 height: 40px; 5164 } 5165 .in-place-select { 5166 height: 40px; 5167 display: inline-flex; 5168 align-items: center; 5169 justify-content: center; 5170 } 5171`,jfe=N.div` 5172 display: inline-flex; 5173 align-items: center; 5174 margin: ${e=>e.margin||`0 5px 0 0`}; 5175 input, select { 5176 background: ${e=>
5176e.inputBackground}; 5177 color: ${e=>e.inputBackground?`#FFF`:`#000`}; 5178 } 5179`,Mfe=N.div` 5180 height: 40px; 5181 width: 30px; 5182 display: inline-flex; 5183 align-items: center; 5184 justify-content: center; 5185`,Zk=N.div` 5186 font-size: 18px; 5187 line-height: 18px; 5188 margin: 0 1px; 5189 margin-right: ${e=>e.attachToFollowingWord?0:`1px`}; 5190`,Nfe=N.div` 5191 background: ${e=>e.correct?q.Theme.green:q.Theme.red}; 5192 color: white; 5193 min-width: 100px; 5194 padding: 0 5px; 5195`,Pfe=N.div` 5196 padding: 0 5px; 5197 cursor: pointer; 5198 background: ${e=>e.background}; 5199 color: ${e=>e.color}; 5200 &:hover { 5201 background: ${e=>e.submitted?`#f9f91b`:`#e6e6e6`}; 5202 } 5203`,Ffe=N.div` 5204 height: ${e=>e.height}!important; 5205 display: flex; 5206 align-items: center; 5207`,Qk=j(Vk=(Hk=class extends V.Component{constructor(...e){super(...e),Yk(this,`languageId`,Uk,this),Yk(this,`currentInputWordAssociation`,Wk,this),Yk(this,`focusedWordAssociationId`,Gk,this),Yk(this,`justFocused`,Kk,this),Yk(this,`initialHeight`,qk,this),this.sentenceWrapperRef=V.createRef(),this.captureInitialHeight=()=>{if(this.initialHeight||!this.sentenceWrapperRef.current)return;let e=this.wordAssociations?.some(e=>e.selected);(e&&this.wordAssociations.some(e=>e.selected&&!e.state.submittedValue)||e&&!this.props.revealed)&&setTimeout(()=>{if(this.sentenceWrapperRef.current&&!this.initialHeight){let e=this.sentenceWrapperRef.current.offsetHeight;e>0&&(this.initialHeight=`${e}px`)}},0)},this.focusOnFirstSelectedWordAssociation=()=>{if(this.props.inputType===`text`&&(0,W.isBlank)(this.focusedWordAssociationId)&&this.props.isFocused&&this.props.sentence.selectedWordAssociations.length>0){this.focusedWordAssociationId=this.props.sentence.selectedWordAssociations[0].id;let e=document.getElementById(this.focusedWordAssociationId);e&&(e.focus(),this.justFocused=!0,setTimeout(()=>{this.justFocused=!1},100))}},this.insertText=e=>{if((0,W.isBlank)(this.currentInputWordAssociation))return null;let t=document.getElementById(this.currentInputWordAssociation.id);if(!t)return null;let n=t.selectionStart;t.focus();let r=[this.currentInputWordAssociation.state.submittedValue?.slice(0,n),e,this.currentInputWordAssociation.state.submittedValue?.slice(n)].join(``);this.currentInputWordAssociation.state.set(`submittedValue`,r)},this.onFocus=e=>{this.currentInputWordAssociation=e,this.props.onFocus()},this.onKeyUpTextInput=e=>{e.keyCode===13&&this.props.onEnter&&!this.justFocused&&this.props.onEnter()},this._capitalize=e=>(e===0||[`.`,`?`,`!`].includes(this.wordAssociations[e-1]?.punctuation))&&(!U.ExerciseUI.hasExercise||U.ExerciseUI.exercise.capitalizeEntries),this._revealedText=e=>e.state.correct&&e.state.entryHasUserInput&&e.adjustedTargetTextForExercise(U.ExerciseUI.exercise).trim()?.length===e.state.submittedValue.trim()?.length&&(e.state.incorrectCasing||e.state.incorrectSpecialCharacters||e.state.incorrectPunctuation)?(0,W.underlineWronglyPositionedCharacters)(e.adjustedTargetTextForExercise(U.ExerciseUI.exercise),e.state.submittedValue):e.state.correct&&!e.state.submittedValueMatchesAlternateText()?e.adjustedTargetTextForExercise(U.ExerciseUI.exercise):e.state.submittedValue,this.highlightedWordBackground=e=>e.state.submittedValue&&!this.props.revealed?`#f9f91b`:e.state.submittedValue&&e.selected?q.Theme.green:e.state.submittedValue?q.Theme.red:`#FFF`,this.highlightedWordColor=e=>{if(this.props.revealed&&e.state.submittedValue)return`#FFF`},Yk(this,`optionsCache`,Jk,this),this.optionsForBlank=e=>{if(this.props.optionsDisplayed>1){if(!this.optionsCache.has(e.id)){let t=(0,G.orderBy)(this.props.options,t=>e.targetText===t?0:1),n;if(this.props.showOptionsInAlphabeticalOrder){let e=(0,G.orderBy)(t.slice(1),e=>String(e).toLowerCase());n=[t[0],...e.slice(0,this.props.optionsDisplayed-1)],n=(0,G.orderBy)(n,e=>String(e).toLowerCase())}else{let e=(0,G.shuffle)(t.slice(1));n=[t[0],...e.slice(0,this.props.optionsDisplayed-1)],n=(0,G.orderBy)(n,e=>e)}this.optionsCache.set(e.id,n)}return this.optionsCache.get(e.id)}return this.props.options},this.selectOptionsForBlank=e=>{let t=this.optionsForBlank(e);if(!(e.firstInSentence&&(!U.ExerciseUI.hasExercise||U.ExerciseUI.exercise.capitalizeEntries))||(0,W.isBlank)(t))return t;let n=t[0];return(0,G.isString)(n)?t.map(e=>[e,(0,W.capitalizeFirstLetter)(e)??e]):t.map(e=>{let t=(0,W.capitalizeFirstLetter)(e.targetText);return[e.id,t??e.targetText]})}}componentDidUpdate(e){this.props.isFocused&&!e.isFocused&&(this.focusedWordAssociationId=null),e.sentence?.id!==this.props.sentence?.id&&(this.initialHeight=null),(e.showOptionsInAlphabeticalOrder!==this.props.showOptionsInAlphabeticalOrder||e.optionsDisplayed!==this.props.optionsDisplayed||e.options!==this.props.options)&&this.optionsCache.clear(),this.focusOnFirstSelectedWordAssociation(),this.captureInitialHeight()}componentDidMount(){this.focusOnFirstSelectedWordAssociation(),this.captureInitialHeight()}get wordAssociations(){return(0,W.isPresent)(this.props.sentence.wordAssociations)?U.AppUI.layout.isNative&&U.AppUI.user.mobileTextDirection===`reverse`||!U.AppUI.layout.isNative&&this.props.sentence?.rightToLeftLanguage||U.AppUI.layout.isNative&&this.props.sentence?.rightToLeftLanguage&&U.AppUI.user.mobileTextDirection!==`forward`?this.props.sentence.wordAssociations.slice().reverse():this.props.sentence.wordAssociations:null}clickHighlight(e){e.state.set(`submittedValue`,!e.state.submittedValue)}
5207inputBackground(e){return this.props.revealed?e.state.correct?q.Theme.green:q.Theme.red:null}render(){return(0,K.jsxs)(kfe,{lineHeight:this.props.inDeck?`50px`:`30px`,children:[(0,K.jsxs)(Afe,{ref:this.sentenceWrapperRef,justifyContent:this.props.justifyContent,minHeight:this.initialHeight,children:[!this.props.hideLanguageButton&&this.props.sentence.defaultSource&&this.props.sentence.defaultSource?.text&&(0,K.jsx)(Mfe,{children:(0,K.jsx)(ji,{languageId:this.languageId,onClick:()=>this.languageId=this.languageId===this.props.sentence.languageId?`EN`:this.props.sentence.languageId})}),this.languageId===`EN`&&this.props.sentence.defaultSource?.text,(0,W.isPresent)(this.props.sentence)&&this.languageId===this.props.sentence.languageId&&(this.wordAssociations?.length===0||this.props.showTargetText)&&this.props.sentence.targetText,(0,W.isPresent)(this.props.sentence)&&this.languageId===this.props.sentence.languageId&&!this.props.showTargetText&&this.wordAssociations?.length>0&&this.wordAssociations.map((e,t)=>(0,K.jsxs)(jfe,{margin:this.props.wordMargin,inputBackground:this.inputBackground(e),children:[(e.precedingPunctuation||e.punctuation&&this.props.sentence?.rightToLeftLanguage)&&(0,K.jsx)(Zk,{attachToFollowingWord:[`¿`,`¡`].some(t=>e.precedingPunctuation?.includes(t)),children:e.punctuation&&this.props.sentence?.rightToLeftLanguage?e.punctuation:e.precedingPunctuation}),e.selected&&!this.props.revealed&&this.props.inputType===`text`&&(0,K.jsx)(`input`,{type:`text`,id:e.id,value:e.state.submittedValue||``,onChange:t=>e.state.set(`submittedValue`,t.currentTarget.value),onKeyUp:this.onKeyUpTextInput,onFocus:()=>this.onFocus(e),autoComplete:`off`,style:{width:`100%`,maxWidth:(0,W.pixify)(Math.max(100,(e.targetTextFromWordAssociation||e.word.targetText)?.length*15))}}),e.selected&&this.props.inputType===`select`&&(0,K.jsx)(Fi,{allowUpdate:!0,includeBlank:!0,value:e.state.submittedValue||``,options:this.selectOptionsForBlank(e),disabled:this.props.revealed,onChange:t=>e.state.set(`submittedValue`,t)}),e.selected&&this.props.inputType===`reorder`&&(0,K.jsx)(Bk,{height:this.props.inDeck?`50px`:`40px`,correct:this.props.revealed&&e.state.correct,incorrect:this.props.revealed&&!e.state.correct,disabled:this.props.revealed,capitalize:this._capitalize(t),value:e.state.submittedValue||``,onClick:()=>U.ExerciseUI.clearWordAssociation(e,this.props.sentence),fontSize:q.Constants.RTL_LANGUAGE_IDS.includes(this.languageId)?`16px`:`14px`,id:e.id,minWidth:U.ExerciseUI.layout.isMobile&&!this.props.inDeck?`60px`:`100px`,inDeck:this.props.inDeck}),e.selected&&this.props.revealed&&this.props.inputType===`text`&&(0,K.jsx)(Nfe,{correct:e.state.correct,children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this._revealedText(e)}})}),this.props.inputType===`highlight`&&(0,K.jsx)(Pfe,{submitted:e.state.submittedValue,onClick:()=>this.clickHighlight(e,t),background:this.highlightedWordBackground(e),color:this.highlightedWordColor(e),children:t===0&&this.props.firstWordIsLowercase?e.targetText:e.adjustedTargetTextForExercise(U.ExerciseUI.exercise)}),!e.selected&&this.props.inputType!==`highlight`&&(0,K.jsx)(Ffe,{className:`not-selected`,height:this.props.inDeck?`50px`:`40px`,children:this.props.sentence.simpleWord&&U.AppUI.siteIsDefault?e.targetText:e.adjustedTargetTextForExercise(U.ExerciseUI.exercise)}),e.punctuation&&!this.props.sentence.rightToLeftLanguage&&(0,K.jsx)(Zk,{children:e.punctuation})]},e.id))]}),this.props.isFocused&&(0,K.jsx)(ta,{margin:`10px 0 0 0`,showCloseButton:!0,languageId:U.ExerciseUI.groupId===q.Constants.EASY_GERMAN_GROUP_ID?`DE`:null,onClick:this.insertText}),this.props.revealed&&this.props.showAlternateTextFeedback&&(0,K.jsxs)(R,{fontSize:`14px`,style:{fontWeight:`normal`},color:q.Theme.green,margin:`10px 0 0 0`,children:[`Another possible answer is: `,(0,K.jsx)(`i`,{children:this.props.sentence.targetText})]})]})}},Uk=Xk(Hk.prototype,`languageId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.sentence.languageId}}),Wk=Xk(Hk.prototype,`currentInputWordAssociation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gk=Xk(Hk.prototype,`focusedWordAssociationId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kk=Xk(Hk.prototype,`justFocused`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qk=Xk(Hk.prototype,`initialHeight`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xk(Hk.prototype,`wordAssociations`,[E],Object.getOwnPropertyDescriptor(Hk.prototype,`wordAssociations`),Hk.prototype),Jk=Xk(Hk.prototype,`optionsCache`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Hk))||Vk,$k,Ife=N.div` 5208 padding: 10px 20px 10px 0; 5209 font-size: 20px; 5210 font-weight: bold; 5211 line-height: 24px; 5212 margin: ${e=>e.margin}; 5213`,eA=M(j($k=class extends V.Component{render(){return(0,K.jsx)(Ife,{margin:this.props.margin,children:this.props.children})}})||$k);D();var tA,nA;function Lfe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Rfe=N.div` 5214 ${(0,X.flexCenter)()} 5215 @media (max-width: 899px) { 5216 flex-direction: column; 5217 } 5218`,zfe=j(tA=(nA=class extends V.Component{constructor(...e){super(...e),this.onClickButton=()=>{this.props.exerciseEntry.state.revealed?this.props.exerciseEntry.state.revealed&&!this.props.exerciseEntry.state.correct&&U.ExerciseUI.resetIncorrectExerciseEntryAnswers(this.props.exerciseEntry):U.ExerciseUI.revealExerciseEntryAnswer(this.props.exerciseEntry,{},this.props.afterReveal)}}get style(){return this.props.exerciseEntry.state.revealed?this.props.exerciseEntry.state.revealed&&this.props.exerciseEntry.state.correct?{background:q.Theme.green,backgroundOnActive:q.Theme.green,color:`white`}:this.props.exerciseEntry.state.revealed&&!this.props.exerciseEntry.state.correct?{background:q.Theme.red,backgroundOnActive:q.Theme.red,color:`white`}:{background:`#D8D8D8`,backgroundOnActive:`#C8C8C8`,color:`#333`}:{background:`#D8D8D8`,backgroundOnActive:`#C8C8C8`,color:`#333`}}render(){return(0,K.jsx)(Rfe,{children:(0,K.jsxs)(I,{margin:`0 5px 0 0`,height:`40px`,width:`120px`,lineHeight:`14px`,fontSize:`12px`,padding:`0 10px`,borderRadius:`10px`,color:this.style.color,background:this.style.background,backgroundOnActive:this.style.backgroundOnActive,onClick:this.onClickButton,scaleOnActive:1.05,children:[!this.props.exerciseEntry.state.revealed&&(0,K.jsx)(`span`,{children:`Show Answer`}),this.props.exerciseEntry.state.revealed&&this.props.exerciseEntry.state.correct&&(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),` Correct!`]}),this.props.exerciseEntry.state.revealed&&!this.props.exerciseEntry.state.correct&&(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),` Reset`]})]})})}},Lfe(nA.prototype,`style`,[E],Object.getOwnPropertyDescriptor(nA.prototype,`style`),nA.prototype),nA))||tA,rA,Bfe=N.div` 5219 background: whitesmoke; 5220 padding: 20px; 5221 height: 100%; 5222 border: ${e=>e.inDeck?`none`:`1px solid #c5c5c5`}; 5223 border-radius: 10px; 5224 .half-circle { 5225 background: whitesmoke; 5226 } 5227 margin-bottom: ${e=>e.inDeck?``:`10px`}; 5228 display: ${e=>e.center?`flex`:``}; 5229 align-items: ${e=>e.center?`center`:``}; 5230 justify-content: ${e=>e.center?`center`:``}; 5231`,Vfe=N.div` 5232 display: flex; 5233 align-items: center; 5234`,Hfe=N.div` 5235 width: 100%; 5236`,Ufe=N.div` 5237 display: flex; 5238 justify-content: ${e=>e.hasButtons?`space-between`:`center`}; 5239 flex-direction: ${e=>e.flexDirection}; 5240 width: ${e=>e.center?`90%`:``}; 5241 gap: ${z.xs}; 5242`,iA=M(j(rA=class extends V.Component{render(){return(0,K.jsxs)(Bfe,{inDeck:this.props.inDeck,className:`exercise-entry`,center:this.props.center,children:[(0,K.jsxs)(Ufe,{hasButtons:this.props.showButtons,flexDirection:this.props.flexDirection?this.props.flexDirection:this.props.isMobile?`column`:`row`,center:this.props.center,children:[(0,K.jsx)(Hfe,{children:this.props.children}),this.props.showButtons&&this.props.exerciseEntry&&(0,K.jsx)(zfe,{exerciseEntry:this.props.exerciseEntry,afterReveal:this.props.afterReveal})]}),this.props.grammarTip&&!this.props.inDeck&&(0,K.jsxs)(Vfe,{children:[U.ExerciseUI.exercise.showTipIcon&&(0,K.jsx)(`i`,{className:`fa fa-lightbulb-o`,style:{fontSize:`20px`,color:q.Theme.orange,marginRight:`10px`}}),(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.props.grammarTip}})]}),this.props.warningMessages?.map((e,t)=>(0,K.jsx)(B,{margin:`10px 0 0 0`,width:`100%`,children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e}})},`warning-${t}`))]})}})||rA);D();var aA,oA;function Wfe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Gfe=N.div` 5243 5244`,sA=j(aA=(oA=class extends V.Component{get exercise(){return this.props.exercise||U.ExerciseUI.exercise}entryOptions(e){let t=e.multipleChoiceOptionsWithText;if(t.length>0){let e=t.map(e=>e.targetText);return this.exercise.showOptionsInAlphabeticalOrder?(0,G.orderBy)(e,e=>e.toLowerCase()):e}return this.exercise.selectedUniqueWords}hasPerEntryOptions(e){return e.multipleChoiceOptionsWithText.length>0}render(){return(0,K.jsx)(Gfe,{children:this.exercise.exerciseEntries.map(e=>(0,K.jsxs)(iA,{grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&this.exercise.exerciseEntries.length>1,exerciseEntry:e,...this.props,children:[e.prompt&&(0,K.jsx)(eA,{children:e.prompt}),e.sentence&&(0,K.jsx)(Qk,{inputType:`select`,options:this.entryOptions(e),optionsDisplayed:this.hasPerEntryOptions(e)?void 0:this.exercise.optionsDisplayed,showOptionsInAlphabeticalOrder:this.exercise.showOptionsInAlphabeticalOrder,sentence:e.sentence,revealed:e.state.revealed,hideLanguageButton:!e.showSource})]},e.id))})}},Wfe(oA.prototype,`exercise`,[E],Object.getOwnPropertyDescriptor(oA.prototype,`exercise`),oA.prototype),oA))||aA;D();var cA,lA,uA;function Kfe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var qfe=N.div` 5245 display: flex; 5246 flex-wrap: ${e=>e.isScrollable?`nowrap`:`wrap`}; 5247 justify-content: ${e=>e.center?`center`:`flex-start`}; 5248`,Jfe=N.div` 5249 margin: 0 5px 5px 0; 5250`,dA=j(cA=(lA=(uA=class extends V.Component{get isScrollable(){return this.props.mobileScrollable&&U.ExerciseUI.layout.isMobile}render(){return(0,K.jsx)(qfe,{center:this.props.center,isScrollable:this.isScrollable,children:this.props.wordA
5250ssociations&&this.props.wordAssociations.map(e=>!this.props.showAssignedSlots&&e.state.assigned?null:(0,K.jsxs)(Jfe,{children:[!this.props.clickable&&(0,K.jsx)(gn,{color:`cyan`,size:`lg`,mr:`5px`,style:{textTransform:`none`},children:e.targetText.normalize(`NFC`)}),this.props.clickable&&(0,K.jsx)(Ik,{onClick:()=>e.state.assigned?G.noop:this.props.onClick(e,this.props.sentence&&this.props.sentence.id,this.props.clickWithinSentence),height:this.props.inDeck?`50px`:`40px`,assigned:e.state.assigned,fontSize:this.props.sentence?.rightToLeftLanguage?`16px`:`14px`,inDeck:this.props.inDeck,whiteSpace:this.isScrollable?`nowrap`:`normal`,children:e.targetText.normalize(`NFC`)})]},e.id))})}},uA.defaultProps={showAssignedSlots:!0},uA),Kfe(lA.prototype,`isScrollable`,[E],Object.getOwnPropertyDescriptor(lA.prototype,`isScrollable`),lA.prototype),lA))||cA,fA=N.div` 5251 @media only screen and (max-width: 699px) { 5252 display: flex; 5253 overflow-x: auto; 5254 overflow-y: hidden; 5255 background: #f1f1f1; 5256 position: fixed; 5257 bottom: 0px; 5258 left: 0px; 5259 padding: 10px 5px 30px 5px; 5260 margin-bottom: 0px; 5261 box-shadow: rgba(0, 0, 0, 0.32) 2px 2px 4px 4px; 5262 z-index: 999; 5263 width: 100%; 5264 } 5265 5266 @media only screen and (min-width: 700px) { 5267 position: sticky; 5268 top: ${(0,W.pixify)(U.ExerciseUI.layout.desktopHeaderHeight)}; 5269 background-color: white; 5270 padding-bottom: 10px; 5271 border-bottom: 1px solid #CCC; 5272 } 5273`,Yfe=N.div` 5274 display: flex; 5275 align-items: center; 5276 gap: ${z.sm}; 5277 width: 100%; 5278 font-size: 14px; 5279 color: ${q.Theme.darkGray}; 5280 5281 p { 5282 margin: 0; 5283 } 5284`;function pA({grammarTip:e,showTipIcon:t}){return(0,K.jsxs)(Yfe,{children:[t&&(0,K.jsx)(`i`,{className:`fa fa-lightbulb-o`,style:{fontSize:`16px`,color:q.Theme.orange}}),(0,K.jsx)($i,{htmlText:e})]})}D();var mA,hA,gA;function Xfe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Zfe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Qfe=N.div` 5285 5286`,$fe=N.div` 5287 color: #696969; 5288 font-size: 12px; 5289 display: flex; 5290 align-items: center; 5291 &:hover { 5292 text-decoration: none; 5293 } 5294 i { 5295 margin-right: 5px; 5296 font-size: 10px; 5297 } 5298`,_A=j(mA=(hA=class extends V.Component{constructor(...e){super(...e),Xfe(this,`showEnglishTranslations`,gA,this),this.toggleEnglishTranslation=e=>{this.englishTranslationIsToggled(e)?(0,G.remove)(this.showEnglishTranslations,t=>t===e.id):this.showEnglishTranslations.push(e.id)},this.englishTranslationIsToggled=e=>this.showEnglishTranslations.includes(e.id)}get englishTranslation(){return this.props.englishTranslation||(this.props.exerciseEntry?.promptIsEnglishTranslation?this.props.exerciseEntry.prompt:null)}render(){return(0,K.jsxs)(Qfe,{children:[(0,W.isPresent)(this.englishTranslation)&&(0,K.jsxs)($fe,{onClick:()=>this.toggleEnglishTranslation(this.props.exerciseEntry),children:[this.englishTranslationIsToggled(this.props.exerciseEntry)?(0,K.jsx)(`i`,{className:`fa fa-minus`}):(0,K.jsx)(`i`,{className:`fa fa-plus`}),(0,K.jsx)(`span`,{className:`underline`,children:this.englishTranslationIsToggled(this.props.exerciseEntry)?`Hide English Translation`:`Show English Translation`})]}),(0,W.isPresent)(this.englishTranslation)&&this.englishTranslationIsToggled(this.props.exerciseEntry)&&(0,K.jsx)(R,{onClick:()=>this.toggleEnglishTranslation(this.props.exerciseEntry),style:{marginTop:`5px`},children:this.englishTranslation})]})}},gA=Zfe(hA.prototype,`showEnglishTranslations`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),hA))||mA;D();var vA,yA;function epe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var tpe=N.div` 5299 5300`,npe=N.div` 5301 margin-bottom: 10px; 5302 padding-bottom: 10px; 5303 border-bottom: 1px solid #dadada; 5304`,rpe=N.div` 5305 margin-top: 20px; 5306`,bA=j(vA=(yA=class extends V.Component{get clickableWordAssociations(){return U.ExerciseUI.exercise.shuffledWordAssociationsWithExtraWords.filter(e=>!e.state.assigned)}render(){return(0,K.jsxs)(tpe,{children:[this.clickableWordAssociations.length>0&&(0,K.jsx)(fA,{children:(0,K.jsx)(dA,{clickable:!0,mobileScrollable:!0,showAssignedSlots:!1,wordAssociations:U.ExerciseUI.exercise.shuffledWordAssociationsWithExtraWords,onSetValueToWordAssociation:U.ExerciseUI.onSetValueToWordAssociation,setAssignedWordAssociations:U.ExerciseUI.setAssignedWordAssociations,onClick:U.ExerciseUI.assignToNextWordAssociation,inDeck:this.props.inDeck})}),(0,K.jsx)(rpe,{children:U.ExerciseUI.exercise.exerciseEntries.map(e=>{let t=e.sourceText||e.sentence?.defaultSource?.text;return(0,K.jsxs)(npe,{...this.props,children:[e.prompt&&(!this.props.hideEnglishPrompts||e.showSource)&&(0,K.jsx)(eA,{children:e.prompt}),e.sentence&&(0,K.jsx)(Qk,{inputType:`reorder`,sentence:e.sentence,revealed:U.ExerciseUI.exercise.state.revealed,exercise:U.ExerciseUI.exercise,hideLanguageButton:!e.showSource}),this.props.hideEnglishPrompts&&(0,K.jsx)(_A,{exerciseEntry:e,englishTranslation:e.showSource?t:e.prompt}),e.grammarTip&&!this.props.inDeck&&(0,K.jsx)(pA,{grammarTip:e.grammarTip,showTipIcon:U.ExerciseUI.exercise.showTipIcon})]},e.id)})})]})}},epe(yA.prototype,`clickableWordAssociations`,[E],Object.getOwnPropertyDescriptor(yA.prototype,`clickableWordAssociations`),yA.prototype),yA))||vA;D();var xA,SA,CA;function ipe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ape(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ope=N.div` 5307 5308`,wA=j(xA=(SA=class extends V.Component{constructor(...e){super(...e),ipe(this,`focusedSentenceId`,CA,this),this.selectFirstSentence=()=>{(0,W.isPresent)(U.ExerciseUI.exercise)&&U.ExerciseUI.exercise.exerciseEntries.length>0&&(this.focusedSentenceId=U.ExerciseUI.exercise.exerciseEntries[0].sentence.id)},this.focusNextEntry=e=>{let t=U.ExerciseUI.exercise.exerciseEntries.findIndex(t=>t.id===e.id);if(U.ExerciseUI.exercise.exerciseEntries.length>t+1){let e=U.ExerciseUI.exercise.exerciseEntries[t+1];e&&(this.focusedSentenceId=e.sentence.id)}}}componentDidMount(){(0,W.isBlank)(this.focusedSentenceId)&&this.selectFirstSentence()}componentDidUpdate(){(0,W.isBlank)(this.focusedSentenceId)&&this.selectFirstSentence()}render(){return(0,K.jsx)(ope,{children:U.ExerciseUI.exercise.exerciseEntries.map(e=>(0,K.jsxs)(iA,{grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&U.ExerciseUI.exercise.exerciseEntries.length>1,exerciseEntry:e,warningMessages:e.warningMessages,afterReveal:()=>this.focusNextEntry(e),...this.props,children:[e.prompt&&(0,K.jsx)(eA,{children:e.prompt}),e.sentence&&(0,K.jsx)(Qk,{inputType:`text`,onFocus:()=>this.focusedSentenceId=e.sentence.id,isFocused:this.focusedSentenceId===e.sentence.id,sentence:e.sentence,revealed:e.state.revealed,hideTranslationButton:!0,onEnter:()=>U.ExerciseUI.revealExerciseEntryAnswer(e,{},()=>this.focusNextEntry(e)),showAlternateTextFeedback:e.state.correct&&e.state.submittedValueMatchesAlternateText})]},e.id))})}},CA=ape(SA.prototype,`focusedSentenceId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SA))||xA;D();var TA,EA,DA;function spe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function OA(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var cpe=N.div` 5309 5310`,lpe=N(fA)` 5311 width: 100%; 5312 margin: 0 20px 10px 0; 5313`,upe=N.div` 5314`,dpe=N.div` 5315 display: flex; 5316 align-items: center; 5317 margin-bottom: 10px; 5318 padding-bottom: 5px; 5319 @media only screen and (max-width : 649px) { 5320 flex-direction: column; 5321 } 5322`,fpe=N.div` 5323 flex: 1; 5324 display: flex; 5325 align-items: center; 5326 gap: ${z.sm}; 5327 @media only screen and (max-width : 649px) { 5328 width: 100%; 5329 flex-direction: column; 5330 } 5331`,ppe=N.div` 5332 width: 50%; 5333 padding-right: 20px; 5334 @media only screen and (max-width : 649px) { 5335 width: 100%; 5336 padding-right: 0px; 5337 } 5338`,kA=j(TA=(EA=class extends V.Component{constructor(...e){super(...e),spe(this,`showMobileClickItems`,DA,this),this.onClick=e=>{U.ExerciseUI.exercise.state.revealed||U.ExerciseUI.exercise.exerciseEntries.some(e=>(0,W.isPresent)(e.sentence)&&!e.state.assignedExerciseEntry?.id)&&U.ExerciseUI.assignToNextExerciseEntry(e)},this.onScroll=()=>{this.showMobileClickItems=this.exerciseIsInView}}componentDidMount(){window.addEventListener(`scroll`,this.onScroll,!0)}componentWillUnmount(){window.removeEventListener(`scroll`,this.onScroll)}get exerciseIsInView(){let e=document.getElementById(`exercise`);if(e){let t=e.getBoundingClientRect();return t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.bottom>=0}return!1}get clickableExerciseEntries(){return U.ExerciseUI.exercise.shuffledExerciseEntries.filter(e=>!e.state.assigned)}render(){return(0,K.jsxs)(cpe,{id:`exercise`,children:[U.ExerciseUI.exercise.hasExerciseEntries&&this.clickableExerciseEntries.length>0&&(!U.ExerciseUI.layout.isMobile||this.showMobileClickItems)&&(0,K.jsx)(lpe,{children:this.clickableExerciseEntries.map(e=>(0,K.jsx)(Ik,{onClick:()=>this.onClick(e),margin:`2px`,assigned:e.state.assigned,height:U.ExerciseUI.layout.isMobile?`50px`:`fit-content`,minHeight:`50px`,inDeck:this.props.inDeck,whiteSpace:U.ExerciseUI.layout.isMobile?`nowrap`:``,fontSize:e.sentence?.rightToLeftLanguage?`16px`:`14px`,children:e.prompt},e.id))}),(0,K.jsx)(upe,{children:U.ExerciseUI.exercise.exerciseEntries.map(e=>(0,W.isPresent)(e.sentence)?(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(dpe,{children:[(0,K.jsx)(ppe,{children:(0,K.jsx)(Bk,{disabled:U.ExerciseUI.exercise.state.revealed,value:e.state.assignedExerciseEntryPrompt||``,onClick:()=>U.ExerciseUI.removeExerciseEntry(e),correct:U.ExerciseUI.exercise.state.revealed&&e.state.correct,incorrect:U.ExerciseUI.exercise.state.revealed&&!e.state.correct,fontSize:e.sentence?.rightToLeftLanguage?`16px`:`14px`,id:e.id,justifyContent:U.ExerciseUI.layout.isMobile?`center`:`right`,height:`fit-content`,minHeight:`50px`,borderRadius:`0`,width:U.ExerciseUI.layout.isMobile?`100%`:null})}),e.sentence&&(0,K.jsx)(fpe,{children:(0,K.jsx)(Qk,{showTargetText:!0,sentence:e.sentence,hideLanguageButton:!e.showSource})})]}),e.grammarTip&&!this.props.inDeck&&(0,K.jsx)(pA,{grammarTip:e.grammarTip,showTipIcon:U.ExerciseUI.exercise.showTipIcon})]},e.id):null)})]})}},DA=OA(EA.prototype,`showMobileClickItems`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),OA(EA.prototype,`clickableExerciseEntries`,[E],Object.getOwnPropertyDescriptor(EA.prototype,`clickableExerciseEntries`),EA.prototype),EA))||TA;D(),w();var AA,jA,MA;function mpe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function NA(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hpe=N.div` 5339 display: flex; 5340 flex-direction: column; 5341 z-index: 5; 5342 flex: 1; 5343 .not-selected { 5344 color: ${e=>e.inDeck?`white`:`black`}; 5345 background: ${e=>e.inDeck?`#696969`:null}; 5346 border-radius: 10px; 5347 height: 100%; 5348 display: flex; 5349 align-items: center; 5350 justify-content: center; 5351 font-size: ${e=>e.inDeck?`14px`:`16px`}; 5352 padding: ${e=>e.inDeck?`0 20px`:`0`}; 5353 } 5354`,gpe=N.div` 5355 5356`,_pe=N.div` 5357 background: #DEDEDE; 5358 border-radius: 5px; 5359 width: calc(100% - 20px); 5360 margin: 0 0 20px 0; 5361 font-size: 16px; 5362 padding: 10px; 5363 font-weight: bold; 5364 position: relative; 5365`,vpe=N.div` 5366 margin: ${e=>e.margin}; 5367`,ype=N.div` 5368 ${dk()} 5369 width: 100%; 5370 margin-top: 40px; 5371`,bpe=N.div` 5372 ${dk()} 5373 height: ${e=>e.height}; 5374 width: ${e=>e.width}; 5375 position: relative; 5376`,xpe=j(AA=(jA=class extends V.Component{constructor(...e){super(...e),mpe(this,`showEnglishTranslations`,MA,this),this.toggleEnglishTranslation=e=>{this.englishTranslationIsToggled(e)?(0,G.remove)(this.showEnglishTranslations,t=>t===e):this.showEnglishTranslations.push(e.id)},this.englishTranslationIsToggled=e=>this.showEnglishTranslations.includes(e.id)}get margin(){return U.ExerciseUI.layout.minimumHeight?0:this.props.inDeck?`10px 0 20px 0`:`10px 0`}render(){return(0,K.jsx)(hpe,{inDeck:this.props.inDeck,children:this.props.exercise&&this.props.exercise.exerciseEntries.map(e=>{let t=e.sourceText||e.sentence?.defaultSource?.text;return(0,K.jsxs)(iA,{inDeck:this.props.inDeck,grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&this.props.exercise.exerciseEntries.length>1,exerciseEntry:e,...this.props,children:[(U.DeckUI.hasDeck&&!U.DeckUI.layout.minimumHeight||_(e.instruction))&&(0,K.jsx)(R,{center:!0,bold:!0,children:_(e.instruction)?e.instruction:`Translate this Sentence`}),e.prompt&&(this.props.inDeck||!this.props.hideEnglishPrompts||e.showSource)&&(0,K.jsx)(eA,{children:e.prompt}),_(e.videoClip)&&(0,K.jsx)(ype,{children:(0,K.jsx)(bpe,{height:`180px`,width:`180px`,children:(0,K.jsx)(Ai,{maximized:!1,autoPlay:this.props.inView,circle:!0,videoClip:e.videoClip,width:Math.floor(U.DeckUI.layout.deckWidth/3.4),position:`relative`})})}),U.DeckUI.hasDeck&&this.props.cardState.revealed&&!e.state.correct&&(0,K.jsxs)(_pe,{children:[ee(e.sentence.targetText,U.DeckUI.deck.languageId),_(t)&&e.showSource&&(0,K.jsx)(R,{center:!0,italic:!0,style:{fontWeight:`normal`},children:t})]}),e.sentence&&(0,K.jsxs)(gpe,{children:[(0,K.jsx)(Qk,{inputType:`reorder`,wordMargin:`0 5px 5px 0`,wordHeight:`40px`,hideLanguageButton:!0,inDeck:this.props.inDeck,justifyContent:this.props.inDeck?`center`:`flex-start`,sentence:e.sentence,revealed:e.state.revealed,showAlternateTextFeedback:e.state.correct&&e.state.submittedValueMatchesAlternateText,exercise:this.props.exercise}),(!e.state.revealed||e.state.correct||!this.props.inDeck)&&(0,K.jsx)(vpe,{margin:this.margin,children:(0,K.jsx)(dA,{clickable:!0,exerciseEntry:e,clickWithinSentence:!0,center:this.props.inDeck,inDeck:this.props.inDeck,wordA
5376ssociations:e.wordAssociationsWithExtraWords,assignedWordAssociationIds:e.sentence.state.assignedWordAssociationIds,setAssignedWordAssociations:U.ExerciseUI.setAssignedWordAssociations,sentence:e.sentence,onSetValueToWordAssociation:U.ExerciseUI.onSetValueToWordAssociation,onClick:this.props.assignToNextWordAssociation})})]}),!this.props.inDeck&&this.props.hideEnglishPrompts&&(0,K.jsx)(_A,{exerciseEntry:e,englishTranslation:e.showSource?t:e.prompt}),e.state.revealed&&e.state.correct&&e.showSource&&(0,K.jsx)(R,{center:this.props.inDeck,italic:this.props.inDeck,style:{fontWeight:`normal`},children:t})]},e.id)})})}},MA=NA(jA.prototype,`showEnglishTranslations`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),NA(jA.prototype,`margin`,[E],Object.getOwnPropertyDescriptor(jA.prototype,`margin`),jA.prototype),jA))||AA,PA=(0,Y.ExerciseReorderWrapper)(xpe);D();var FA,IA;function Spe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Cpe=N.div` 5377 height: ${e=>e.height}; 5378`,wpe=N.div` 5379 ${(0,X.flexCenterColumn)()} 5380 width: 100%; 5381`,Tpe=N.div` 5382 ${(0,X.flexCenterColumn)()} 5383 height: ${e=>e.height}; 5384 width: ${e=>e.width}; 5385 position: relative; 5386`,Epe=N.div` 5387 display: flex; 5388 flex-wrap: wrap; 5389 width: 100%; 5390 justify-content: ${e=>e.justifyContent}; 5391 margin-bottom: ${e=>e.isMobile||!e.inDeck?`20px`:0}; 5392 gap: 10px; 5393`,Dpe=N.div` 5394 width: ${e=>e.width}; 5395 height: ${e=>e.height}; 5396 overflow: hidden; 5397 cursor: pointer; 5398 display: flex; 5399 align-items: center; 5400 justify-content: center; 5401 border: ${e=>e.border}; 5402 border-radius: 15px; 5403 img { 5404 width: 100%; 5405 height: 100%; 5406 border-radius: 5px; 5407 } 5408`,Ope=N.div` 5409 margin-bottom: 20px; 5410`,kpe=N.div` 5411 font-size: 14px; 5412 font-weight: bold; 5413 height: 44px; 5414 display: flex; 5415 align-items: center; 5416 justify-content: center; 5417`,Ape=N.div` 5418 ${(0,X.flexCenter)()} 5419 cursor: pointer; 5420 height: 44px; 5421`,jpe=j(FA=(IA=class extends V.Component{get justifyContentMedia(){return this.props.inDeck?`center`:U.ExerciseUI.layout.viewportWidth>1190?`flex-start`:`space-between`}render(){return(0,K.jsx)(Cpe,{height:this.props.inDeck?`100%`:`fit-content`,children:this.props.exercise&&this.props.exercise.exerciseEntries.map(e=>(0,K.jsxs)(iA,{inDeck:this.props.inDeck,grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&this.props.exercise.exerciseEntries.length>1,exerciseEntry:e,flexDirection:U.ExerciseUI.layout.viewportWidth>1190?`row`:`column`,...this.props,children:[U.ExerciseUI.worksheet&&e.prompt&&(0,K.jsx)(eA,{children:(0,K.jsx)($i,{markdown:e.prompt})}),(0,W.isPresent)(e.videoClip)&&(0,K.jsx)(wpe,{children:(0,K.jsx)(Tpe,{height:(0,W.pixify)(Math.floor(U.DeckUI.layout.deckWidth/3.4)+10),width:(0,W.pixify)(Math.floor(U.DeckUI.layout.deckWidth/3.4)),children:(0,K.jsx)(Ai,{maximized:!1,autoPlay:this.props.inView,circle:!0,videoClip:e.videoClip,width:Math.floor(U.DeckUI.layout.deckWidth/3.4)})})}),!U.ExerciseUI.hasWorksheet&&(0,K.jsxs)(Ope,{children:[!this.props.exercise.state?.revealed&&(0,K.jsx)(kpe,{children:(0,W.isPresent)(e.instruction)?e.instruction:`Click on the image that matches best.`}),this.props.exercise.state?.revealed&&(0,K.jsxs)(Ape,{onClick:()=>this.props.setLanguageId(this.props.languageId===`EN`?U.DeckUI.deck.languageId:`EN`),children:[((0,W.isPresent)(e.word)||(0,W.isPresent)(e.sentence))&&(0,K.jsx)(ji,{margin:`5px 5px 0 0`,languageId:this.props.languageId}),e.word&&(0,K.jsx)(eA,{children:this.props.languageId===U.DeckUI.deck.languageId?e.word.targetTextWithDefiniteArticle:e.w
5421ord.sourceText}),e.sentence&&(0,K.jsx)(eA,{children:this.props.languageId===U.DeckUI.deck.languageId?e.sentence.displayTargetText:e.sentence.sourceText})]})]}),(0,K.jsx)(Epe,{inDeck:this.props.inDeck,isMobile:U.ExerciseUI.layout.isMobile,justifyContent:this.justifyContentMedia,children:e.shuffledMediaOptions.map(t=>(0,K.jsx)(Dpe,{width:(0,W.pixify)(this.props.mediaOptionWidthForExerciseEntry(e)),inDeck:this.props.inDeck,isMobile:U.ExerciseUI.layout.isMobile,border:this.props.border(t,e),onClick:()=>this.props.onClick(e,t),children:(0,W.isPresent)(t.image)&&(0,K.jsx)(`img`,{src:t.image.url,alt:``})},t.id))}),e.numberOfCorrectOptions>1&&e.selectAllCorrectOptions&&(0,K.jsx)(R,{italic:!0,fontSize:`13px`,color:`#333`,margin:`10px 0 0 0`,children:`Select all correct answers.`})]},e.id))})}},Spe(IA.prototype,`justifyContentMedia`,[E],Object.getOwnPropertyDescriptor(IA.prototype,`justifyContentMedia`),IA.prototype),IA))||FA,LA=(0,Y.ExerciseMatchMediaWrapper)(jpe),RA,Mpe=N.div` 5422 5423`,Npe=N.div` 5424 padding: 0 ${z.xs}; 5425 width: fit-content; 5426 margin-right: ${z.md}; 5427 border: ${e=>e.border}; 5428`,zA=M(j(RA=class extends V.Component{border(e){return e.state.revealed&&e.state.correct?`2px solid ${q.Theme.green}`:e.state.revealed&&!e.state.correct?`2px solid ${q.Theme.red}`:`2px solid transparent`}render(){return(0,K.jsx)(Mpe,{children:U.ExerciseUI.exercise.exerciseEntries.map(e=>(0,K.jsxs)(iA,{grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&U.ExerciseUI.exercise.exerciseEntries.length>1,exerciseEntry:e,...this.props,children:[e.prompt&&(0,K.jsx)(eA,{children:e.prompt}),e.sentence&&(0,K.jsx)(Npe,{border:()=>this.border(e),children:(0,K.jsx)(Qk,{inputType:`highlight`,sentence:e.sentence,revealed:e.state.revealed,firstWordIsLowercase:e.firstWordIsLowercase,hideLanguageButton:!e.showSource})})]},e.id))})}})||RA);D();var BA,VA,HA;function Ppe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function UA(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Fpe=N.div` 5429 margin: ${e=>e.margin}; 5430`,Ipe=N.div` 5431 5432`,Lpe=N.div` 5433 input { 5434 background: ${e=>e.background}; 5435 color: ${e=>e.background?`#FFF`:`#000`}; 5436 font-size: 16px; 5437 padding: 10px; 5438 } 5439`,Rpe=N.div` 5440 background: ${e=>e.background}; 5441 color: ${e=>e.background?`#FFF`:`#000`}; 5442 font-size: 16px; 5443 padding: 10px; 5444 border: 1px solid #bcbcbc; 5445 line-height: 20px; 5446 max-width: 100%; 5447 width: 100%; 5448 border-radius: 4px; 5449`,zpe=M(j(BA=(VA=class extends V.Component{constructor(...e){super(...e),Ppe(this,`languageId`,HA,this),this.insertText=e=>{let t=document.getElementById(this.props.exerciseEntry.id);if(!t)return;let n=t.selectionStart;t.focus();let r=[this.props.exerciseEntry.state.submittedValue?.slice(0,n),e,this.props.exerciseEntry.state.submittedValue?.slice(n)].join(``);this.props.exerciseEntry.state.set(`submittedValue`,r),setTimeout(()=>{t.setSelectionRange(n+1,n+1)},0)}}get background(){return this.props.exerciseEntry.state.revealed&&this.props.exerciseEntry.state.correct?q.Theme.green:this.props.exerciseEntry.state.revealed&&!this.props.exerciseEntry.state.correct?q.Theme.red:``}get _revealedText(){return this.props.exerciseEntry.state.correct&&this.props.exerciseEntry.sentence.targetText.trim().length===this.props.exerciseEntry.state.submittedValue?.trim().length&&(this.props.exerciseEntry.state.incorrectCasing||this.props.exerciseEntry.state.incorrectSpecialCharacters||this.props.exerciseEntry.state.incorrectPunctuation)?(0,W.underlineWronglyPositionedCharacters)(this.props.exerciseEntry.sentence.targetText,this.props.exerciseEntry.state.submittedValue):this.props.exerciseEntry.state.correct?this.props.exerciseEntry.sentence.targetText:this.props.exerciseEntry.state.submittedValue}render(){return(0,K.jsxs)(Fpe,{margin:this.props.margin,children:[this.props.exerciseEntry.sentence.source&&this.props.exerciseEntry.sentence.source.text&&(0,K.jsx)(ji,{languageId:this.languageId,onClick:()=>this.languageId=this.languageId===`DE`?`EN`:`DE`}),this.languageId!==`EN`&&(0,K.jsxs)(Lpe,{background:this.background,children:[!this.props.exerciseEntry.state.revealed&&(0,K.jsx)(`input`,{type:`text`,autoComplete:`off`,id:this.props.exerciseEntry.id,value:this.props.exerciseEntry.state.submittedValue||``,onChange:e=>this.props.exerciseEntry.state.set(`submittedValue`,e.currentTarget.value),onFocus:this.props.onFocus,onKeyUp:e=>e.keyCode===13&&this.props.revealOnEnter?U.ExerciseUI.revealExerciseEntryAnswer(this.props.exerciseEntry,{},this.props.afterReveal):null}),this.props.exerciseEntry.state.revealed&&(0,K.jsx)(Rpe,{background:this.background,dangerouslySetInnerHTML:{__html:this._revealedText}})]}),this.languageId===`EN`&&(0,K.jsx)(Ipe,{children:this.props.exerciseEntry.sentence.source.text}),this.props.isFocused&&(0,K.jsx)(ta,{margin:`10px 0 0 0`,showCloseButton:!0,languageId:U.ExerciseUI.groupId===q.Constants.EASY_GERMAN_GROUP_ID?`DE`:null,onClick:this.insertText})]})}},HA=UA(VA.prototype,`languageId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.exerciseEntry.sentence.languageId}}),UA(VA.prototype,`background`,[E],Object.getOwnPropertyDescriptor(VA.prototype,`background`),VA.prototype),UA(VA.prototype,`_revealedText`,[E],Object.getOwnPropertyDescriptor(VA.prototype,`_revealedText`),VA.prototype),VA))||BA);D();var WA,GA,KA;function Bpe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Vpe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Hpe=N.div` 5450 5451`,qA=M(j(WA=(GA=class extends V.Component{constructor(...e){super(...e),Bpe(this,`focusedSentenceId`,KA,this),this.selectFirstSentence=()=>{(0,W.isPresent)(U.ExerciseUI.exercise)&&U.ExerciseUI.exercise.exerciseEntries.length>0&&(0,W.isPresent)(U.ExerciseUI.exercise.exerciseEntries[0].sentence)&&this.focusExerciseEntry(U.ExerciseUI.exercise.exerciseEntries[0])},this.focusExerciseEntry=e=>{if(e.sentence){this.focusedSentenceId=e.sentence.id;let t=document.getElementById(e.id);t&&t.focus()}},this.focusNextSentence=e=>{let t=U.ExerciseUI.exercise.exerciseEntries.findIndex(t=>t.id===e.id);if(U.ExerciseUI.exercise.exerciseEntries.length>t+1){let e=U.ExerciseUI.exercise.exerciseEntries[t+1];e&&this.focusExerciseEntry(e)}}}componentDidMount(){(0,W.isBlank)(this.focusedSentenceId)&&this.selectFirstSentence()}componentDidUpdate(){(0,W.isBlank)(this.focusedSentenceId)&&this.selectFirstSentence()}render(){return(0,K.jsx)(Hpe,{children:U.ExerciseUI.exercise.exerciseEntries.map(e=>(0,K.jsxs)(iA,{grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&U.ExerciseUI.exercise.exerciseEntries.length>1,exerciseEntry:e,warningMessages:e.warningMessages,...this.props,children:[e.prompt&&(0,K.jsx)(eA,{children:e.prompt}),e.sentence&&(0,K.jsx)(zpe,{revealOnEnter:!0,exerciseEntry:e,onFocus:()=>this.focusedSentenceId=e.sentence.id,isFocused:this.focusedSentenceId===e.sentence.id,margin:`0 20px 10px 0`,hideLanguageButton:!e.showSource,afterReveal:()=>this.focusNextSentence(e)})]},e.id))})}},KA=Vpe(GA.prototype,`focusedSentenceId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),GA))||WA);w();var JA,Upe=N.div` 5452 height: ${e=>e.height}; 5453`,Wpe=N.div` 5454 width: ${e=>e.width}; 5455 height: ${e=>e.height}; 5456 margin-right: ${e=>e.marginRight?e.marginRight:e.inDeck?`5px`:`10px`}; 5457 margin-left: ${e=>e.inDeck?`5px`:0}; 5458 margin-top: ${e=>e.inDeck?`5px`:0}; 5459 margin-bottom: ${e=>e.marginBottom?e.marginBottom:e.inDeck?`5px`:0}; 5460 overflow: hidden; 5461 display: flex; 5462 align-items: center; 5463 justify-content: center; 5464 border: 10px solid #FFF; 5465 border-radius: 15px; 5466 img { 5467 width: 100%; 5468 height: 100%; 5469 border-radius: 5px; 5470 } 5471`,Gpe=N.div` 5472 ${dk()} 5473 width: 100%; 5474 margin-top: 40px; 5475 @media (max-height: 899px) { 5476 margin-top: 0px; 5477 } 5478`,Kpe=N.div` 5479 ${dk()} 5480 height: ${e=>e.height}; 5481 width: ${e=>e.width}; 5482 position: relative; 5483`,qpe=N.div` 5484 5485`,Jpe=N.div` 5486 ${uk()} 5487 cursor: pointer; 5488 visibility: ${e=>e.visible?`visible`:`hidden`}; 5489`,YA=N.div` 5490 margin: 0 20px; 5491 font-size: 24px; 5492 line-height: 34px; 5493 @media (max-height: 899px) { 5494 font-size: 18px; 5495 line-height: 22px; 5496 } 5497`,Ype=j(JA=class extends V.Component{render(){return(0,K.jsx)(Upe,{height:`100%`,children:this.props.exercise.exerciseEntries.map(e=>(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(oO,{background:`#FFF`,borderTopRadius:10,borderBottomRadius:10,height:this.props.sectionHeight,children:[e.prompt&&(0,K.jsx)(YA,{children:e.prompt}),_(e.videoClip)&&(0,K.jsx)(Gpe,{children:(0,K.jsx)(Kpe,{height:`180px`,width:`180px`,children:(0,K.jsx)(Ai,{maximized:!1,autoPlay:this.props.inView,circle:!0,videoClip:e.videoClip,width:Math.floor(U.DeckUI.layout.deckWidth/3.4),position:`relative`})})}),e.mediaOptions&&_(e.mediaOptions)&&_(e.mediaOptions[0].image)&&(0,K.jsx)(Wpe,{width:v(this.props.mediaWidth),marginBottom:U.ExerciseUI.layout.isMobile?`10px`:null,marginRight:U.ExerciseUI.layout.isMobile?`0px`:null,inDeck:!0,children:_(e.mediaOptions[0].image)&&(0,K.jsx)(`img`,{src:e.mediaOptions[0].image.url,alt:``})},e.mediaOptions[0].id),(0,K.jsx)(qpe,{children:(0,K.jsxs)(Jpe,{onClick:()=>this.props.setLanguageId(this.props.languageId===`EN`?U.DeckUI.deck.languageId:`EN`),visible:this.props.exercise.state?.revealed,children:[(_(e.word)||_(e.sentence))&&(0,K.jsx)(ji,{margin:`5px 5px 0 0`,languageId:this.props.languageId}),e.word&&(0,K.jsx)(YA,{children:this.props.languageId===U.DeckUI.deck.languageId?e.word.targetTextWithDefiniteArticle:e.w
5497ord.sourceText}),e.sentence&&(0,K.jsx)(YA,{children:this.props.languageId===U.DeckUI.deck.languageId?e.sentence.displayTargetText:e.sentence.sourceText})]})})]}),(0,K.jsx)(ED,{disabled:!this.props.inView,height:U.DeckUI.layout.totalMultipleChoiceButtonHeight(e.shuffledMultipleChoiceOptions.length),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,width:U.DeckUI.layout.innerDeckWidth,options:e.shuffledMultipleChoiceOptions,onClick:t=>this.props.onClick(e,t),selected:e.state.submittedValue?.split(`,`)||[],isMobile:U.DeckUI.layout.isMobile,field:`targetText`,languageId:this.props.card.languageId,revealed:this.props.cardState.revealed}),e.numberOfCorrectOptions>1&&e.selectAllCorrectOptions&&(0,K.jsx)(R,{italic:!0,fontSize:`13px`,color:`#333`,margin:`10px 0 0 0`,children:`Select all correct answers.`})]},e.id))})}})||JA,Xpe=(0,Y.ExerciseMultipleChoiceMediaWrapper)(Ype),XA,Zpe={matchText:kA,reorder:PA,wordEnter:wA,drag:bA,wordOptions:sA,matchMedia:LA,multipleChoice:Xpe,sentenceEnter:qA,highlight:zA,simpleTextPrompt:()=>null},Qpe=j(XA=class extends V.Component{render(){return(0,K.jsxs)($T,{icons:this.props.icons,card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,children:[(0,K.jsx)(oE,{scroll:!0,children:(0,W.isPresent)(this.props.exercise)&&(0,W.isPresent)(this.props.exercise?.exerciseType)&&(0,W.isPresent)(this.props.exercise?.exerciseType.slug)&&V.createElement(Zpe[this.props.exercise?.exerciseType.slug],{inDeck:!0,exercise:this.props.exercise,card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,inView:this.props.inView})}),!this.props.cardState.revealed&&this.props.exercise?.exerciseType?.slug!==`multipleChoice`&&(0,K.jsx)(MT,{children:(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:`1`,text:`Show Answer`,backgroundColor:q.Theme.darkOrange,icon:(0,K.jsx)(J.RightIcon,{}),disabled:this.props.showAnswerDisabled,onClick:()=>U.DeckUI.showExerciseAnswer(this.props.card,this.props.cardState,this.props.userCard)})}),(this.props.cardState.revealed||this.props.exercise?.exerciseType?.slug===`multipleChoice`)&&(0,K.jsx)(OD,{onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView||this.props.exercise?.exerciseType?.slug===`multipleChoice`&&!this.props.cardState.revealed})]})}})||XA,$pe=(0,Y.ExerciseCardWrapper)(Qpe),ZA,QA=M(j(ZA=class extends V.Component{render(){return(0,K.jsx)(yE,{submitOnEnter:this.props.submitOnEnter,shortcut:this.props.shortcut,text:`Reveal`,backgroundColor:q.Theme.darkOrange,icon:(0,K.jsx)(J.RightIcon,{}),disabled:this.props.disabled,onClick:()=>U.DeckUI.reveal(this.props.card,this.props.cardState)})}})||ZA),$A,eme=j($A=class extends V.Component{constructor(...e){super(...e),this.textWithLineBreaks=e=>e?.split(/\r\n|\r|\n/).map((e,t,n)=>(0,K.jsxs)(V.Fragment,{children:[e,t<n.length-1&&(0,K.jsx)(`br`,{})]},t))}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{scroll:!0,children:[(0,K.jsx)(oO,{background:`#FFF`,borderTopRadius:10,numSections:2,children:(0,K.jsx)(Vi,{resizeText:!0,height:U.DeckUI.layout.contentHeight/2-40,width:U.DeckUI.layout.innerDeckWidth-80,characterLength:this.props.card.frontText?.length,children:(0,K.jsx)(R,{children:this.textWithLineBreaks(this.props.card.frontText)})})}),(0,K.jsx)(oO,{color:`#FFF`,borderBottomRadius:10,background:`#CCC`,numSections:2,children:this.props.cardState.revealed&&(0,K.jsx)(Vi,{resizeText:!0,height:U.DeckUI.layout.contentHeight/2-20,width:U.DeckUI.layout.innerDeckWidth-40,characterLength:this.props.card.backText?.length,children:(0,K.jsx)(R,{children:this.textWithLineBreaks(this.props.card.backText)})})})]}),!this.props.cardState.revealed&&(0,K.jsx)(MT,{children:(0,K.jsx)(QA,{card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,disabled:!this.props.inView,submitOnEnter:!0,shortcut:`1`})}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard,{score:q.Constants.EASY_SCORE,xp:U.DeckUI.adju
5497stedDefaultXp,xpXPos:U.DeckUI.layout.quarterDeckWidth*1})})]})}})||$A,tme=(0,Y.UserSubmissionCardWrapper)(eme),ej,tj,nme=N.div` 5498 position: relative; 5499 background: #333; 5500 width: ${e=>e.width}; 5501 height: ${e=>e.height}; 5502 margin-bottom: ${e=>e.marginBottom}; 5503 border-top-left-radius: 10px; 5504 border-top-right-radius: 10px; 5505 border-bottom-left-radius: ${e=>e.borderBottomRadius}; 5506 border-bottom-right-radius: ${e=>e.borderBottomRadius}; 5507`,rme=N.div` 5508 position: absolute; 5509 width: ${e=>e.width}; 5510 height: ${e=>e.height}; 5511 top: ${e=>e.top}; 5512 left: ${e=>e.left}; 5513 bottom: ${e=>e.bottom}; 5514 z-index: ${e=>e.zIndex}; 5515 border-radius: ${e=>e.borderRadius}; 5516 overflow: ${e=>e.overflow}; 5517 img { 5518 width: 100%; 5519 } 5520`,ime=N.div` 5521 position: absolute; 5522 bottom: ${e=>e.bottom}; 5523 left: ${e=>e.left}; 5524`,ame=N.div` 5525 position: relative; 5526 height: ${e=>e.height}; 5527 width: ${e=>e.width}; 5528 border-radius: 10px; 5529`,nj=N.div` 5530 padding-top: ${e=>e.paddingTop}; 5531`,ome=N.div` 5532 background: white; 5533 padding: 10px 0; 5534 font-size: 15px; 5535 line-height: 18px; 5536 border-radius: 10px; 5537`,sme=j(ej=(tj=class extends V.Component{render(){return(0,K.jsxs)(nme,{width:(0,W.pixify)(this.props.maximizedWidth),height:(0,W.pixify)(this.props.maximizedWidth),borderBottomRadius:(0,W.pixify)(this.props.borderBottomRadius),marginBottom:(0,W.pixify)(this.props.marginBottom),children:[U.DeckUI.layout.debug&&(0,K.jsx)(nE,{left:0,children:this.props.maximizedWidth}),this.props.showSupplement&&(0,K.jsxs)(rme,{width:(0,W.pixify)(this.props.supplementVideoWidth),height:(0,W.pixify)(this.props.supplementVideoWidth),top:this.props.supplementMaximized?0:`auto`,bottom:this.props.supplementMaximized?`auto`:(0,W.pixify)(this.props.supplementBottom),left:(0,W.pixify)(this.props.supplementVideoLeft),zIndex:this.props.supplementMaximized?q.Theme.z[`supplement-maximized`]:90,borderRadius:`10px`,overflow:this.props.supplementMaximized?null:`hidden`,children:[!this.props.hasSupplementVideoClip&&this.props.hasSupplementImage&&(0,K.jsx)(`img`,{src:this.props.supplementImage.url,alt:``}),this.props.hasSupplementVideoClip&&(0,K.jsx)(Ai,{hidePlayButton:!0,autoPlay:this.props.autoPlay,bottom:`0`,borderTopRadius:`10px`,borderBottomRadius:(0,W.pixify)(this.props.borderBottomRadius),left:this.props.supplementMaximized?0:`10px`,usingDataSaverHeader:this.props.usingDataSaverHeader,loop:this.props.loopSupplement,muted:!0,videoClip:this.props.supplementVideoClip,width:(0,W.pixify)(this.props.supplementVideoWidth),maximized:this.props.supplementMaximized,circle:!this.props.supplementMaximized||!this.props.allowOverlap})]}),this.props.mediaIsVideo&&(0,K.jsx)(ime,{bottom:this.props.supplementMaximized?`10px`:`auto`,left:this.props.supplementMaximized?`10px`:0,children:(0,K.jsx)(ame,{height:(0,W.pixify)(this.props.primaryVideoWidth),width:(0,W.pixify)(this.props.primaryVideoWidth),children:(0,K.jsx)(Ai,{...this.props,addKeyBindings:!0,afterVideoPlayback:this.props.afterVideoPlayback,borderTopRadius:(0,W.pixify)(this.props.borderTopRadius),borderBottomRadius:(0,W.pixify)(this.props.borderBottomRadius),circle:this.props.supplementMaximized,width:(0,W.pixify)(this.props.primaryVideoWidth),height:(0,W.pixify)(this.props.primaryVideoWidth),bottom:`0`,left:`0`,playing:!0,maximized:!this.props.supplementMaximized})})}),(0,W.isPresent)(this.props.userInputStore)&&(0,K.jsx)(nj,{paddingTop:this.props.maximizedWidth,children:(0,K.jsx)(EC,{userInputStore:this.props.userInputStore})}),(0,W.isPresent)(this.props.text)&&(0,K.jsx)(nj,{paddingTop:this.props.maximizedWidth,children:(0,K.jsx)(ome,{children:this.props.text})})]})}},tj.propTypes={videoClip:Z.default.object,supplementVideoClip:Z.default.object,supplementMaximized:Z.default.bool,hideSupplement:Z.default.bool,defaultSupplementMaximized:Z.default.bool,loadVideo:Z.default.bool,autoPlay:Z.default.bool,userInputStore:Z.default.object,maximizedWidth:Z.default.oneOfType([Z.default.number,Z.default.string]),minimizedWidth:Z.default.oneOfType([Z.default.number,Z.default.string]),supplementImage:Z.default.object,supplementBottom:Z.default.oneOfType([Z.default.number,Z.default.string])},tj))||ej,rj=(0,Y.MediaWithSupplementWrapper)(sme),ij,aj,cme=N.div` 5538`,lme=N.div` 5539 position: absolute; 5540 top: 10px; 5541 left: 10px; 5542 z-index: ${q.Theme.z[`card-3`]}; 5543 .fa-times { 5544 color: ${q.Theme.red}; 5545 } 5546 .fa-check { 5547 color: ${q.Theme.green}; 5548 } 5549`,ume=N.div` 5550 position: absolute; 5551 top: 5px; 5552 right: 5px; 5553 width: ${e=>e.width}; 5554 height: ${e=>e.height}; 5555 background: #FFF; 5556 border-radius: 10px; 5557 display: flex; 5558 cursor: pointer; 5559 align-items: center; 5560 justify-content: center; 5561`,dme=j(ij=(aj=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})}}render(){let e=this.props.showType===`target`,t=U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0);return(0,K.jsxs)(cme,{children:[e&&(0,K.jsxs)(oO,{background:this.props.card.word.isPhoneme||this.props.card.word.isGrapheme||this.props.toggleToShowSources?`#CCC`:`#FFF`,he
5561ight:this.props.card.word.isPhoneme||this.props.card.word.isGrapheme||this.props.toggleToShowSources?(0,W.pixify)(Math.floor(this.props.sectionHeight)):(0,W.pixify)(Math.floor(this.props.sectionHeight/2)),borderBottomRadius:(this.props.card.word.isPhoneme||this.props.card.word.isGrapheme||this.props.toggleToShowSources)&&!this.props.hasUserInput?this.props.borderBottomRadius:null,onClick:t?this.onClickTargetSection:null,children:[this.props.showType===`target`&&(0,K.jsxs)(lme,{children:[(0,W.isPresent)(this.props.correct)&&this.props.correct&&(0,K.jsx)(`i`,{className:`fa fa-check`}),(0,W.isPresent)(this.props.correct)&&!this.props.correct&&(0,W.isBlank)(this.props.cardState.textEntry)&&(0,K.jsx)(`i`,{className:`fa fa-times`})]}),this.props.toggleToShowSources&&(this.props.cardState.revealed||!this.props.showIfRevealed)&&!this.props.card.word?.isPhoneme&&!this.props.card.word?.isGrapheme&&(0,K.jsx)(ume,{onClick:e=>{e.stopPropagation(),this.props.onClickLanguageButton()},height:U.DeckUI.layout.minimumHeight?`30px`:`40px`,width:U.DeckUI.layout.minimumHeight?`30px`:`40px`,children:(0,K.jsx)(ji,{background:`#e8e8e8`,arrowLeft:this.props.arrowLeft,width:this.props.languageIconWidth,languageId:this.props.showType===`source`?this.props.sentence.sourceTextForUserLanguageId(U.DeckUI.user)||`EN`:U.DeckUI.deck?.languageId||this.props.card?.languageId||U.DeckUI.targetLanguageId})}),(this.props.cardState.revealed||!this.props.showIfRevealed)&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,word:this.props.card.word})]}),this.props.showType===`target`&&!this.props.hideSources&&!this.props.toggleToShowSources&&(0,K.jsx)(oO,{background:`#CCC`,height:(0,W.pixify)(Math.floor(this.props.sectionHeight/2)),borderBottomRadius:this.props.hasUserInput?null:this.props.borderBottomRadius,padding:`5px`,children:(0,K.jsx)(yk,{preview:!0,showEdit:!0,word:this.props.card.word,card:this.props.card,toggleLanguage:this.props.onClickLanguageButton,sourcePadding:`5px 0`,numberPreviewSources:2,showType:this.props.showType})}),this.props.showType===`source`&&(0,K.jsx)(oO,{background:`#CCC`,borderBottomRadius:this.props.hasUserInput?null:this.props.borderBottomRadius,height:(0,W.pixify)(this.props.sectionHeight),children:(0,K.jsx)(yk,{showEdit:!0,showLanguageButton:!0,word:this.props.card.word,card:this.props.card,numberPreviewSources:2,toggleLanguage:this.props.onClickLanguageButton,showType:this.props.showType})})]})}},aj.defaultProps={languageButtonTop:`10px`,languageButtonRight:`10px`,position:`relative`,borderBottomRadius:10},aj))||ij,oj=(0,Y.BorderRadius)((0,Y.CardWordTextWrapper)(dme));w();var sj,fme=N.span` 5562 cursor: pointer; 5563`,pme=j(sj=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})},this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[this.props.card.hasTargetVideoClip&&!U.DeckUI.deck.pronunciationDeck&&(0,K.jsx)(gO,{card:this.props.card,cardState:this.props.cardState,showMedia:!0,borderTopRadius:10,autoPlay:this.props.inView}),this.props.card.hasTargetVideoClip&&U.DeckUI.deck.pronunciationDeck&&(0,K.jsx)(rj,{card:this.props.card,cardState:this.props.cardState,autoPlay:this.props.inView,borderTopRadius:10,borderBottomRadius:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,videoClip:this.props.card.targetVideoClip,supplementVideoClip:this.props.card.supplementVideoClip,supplementImage:this.props.card.supplementImage,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,supplementBottom:U.DeckUI.layout.supplementBottom,loopSupplement:U.DeckUI.user.loopSupplement,hideSupplement:!this.props.showDeckSupplement,maximizedWidth:v(U.DeckUI.layout.videoHeight),minimizedWidth:v(U.DeckUI.layout.supplementWidth),supplementMaximized:this.props.supplementMaximized,loadVideo:!0,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0}),U.DeckUI.deck.pronunciationDeck&&(0,K.jsx)(oj,{showIfRevealed:!0,toggleToShowSources:!this.props.card?.word?.isPhoneme&&!this.props.card?.word?.isGrapheme,hideSources:!0,hasUserInput:!0,card:this.props.card,cardState:this.props.cardState,sectionHeight:U.DeckUI.layout.contentHeight-U.DeckUI.layout.innerDeckWidth-U.DeckUI.layout.userInputHeight,showType:this.props.cardState.showType}),!U.DeckUI.deck.pronunciationDeck&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(oO,{background:`#FFF`,borderTopRadius:this.props.card.hasTargetVideoClip?0:10,numSections:this.props.card.hasTargetVideoClip?3:2,height:this.props.sectionHeight,onClick:this.props.showExpandedTarget&&U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:this.props.showExpandedTarget&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,height:U.DeckUI.vocabTextHeight,word:this.props.card.word,showVocabTriadIntro:this.props.showVocabTriadIntro})}),(0,K.jsxs)(oO,{background:`#CCC`,fontSize:this.props.card.word.isNumber&&this.props.card.word.digitSourceText?`34px`:null,borderBottomRadius:this.props.card.hasTargetVideoClip?0:10,height:this.props.sectionHeight,children:[this.props.cardState.revealed&&(!this.props.card.word.isNumber||!this.props.card.word.digitSourceText)&&(0,K.jsx)(yk,{showEdit:!0,word:this.props.card.word,card:this.props.card}),this.props.cardState.revealed&&this.props.card.word.isNumber&&this.props.card.word.digitSourceText&&(0,K.jsx)(fme,{onClick:this.openSourceEdit,children:this.props.card.word.formattedDigitSourceText})]})]}),this.props.card.hasTargetVideoClip&&(0,K.jsx)(DO,{autoPlay:!0,card:this.props.card,cardState:this.props.cardState}),this.props.showArrowBox&&(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),!this.props.cardState.revealed&&(0,K.jsx)(MT,{children:(0,K.jsx)(QA,{card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,disabled:!this.props.inView,submitOnEnter:!0,shortcut:`1`})}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,onNextClick:this.props.onNextClick})]})}}
5563)||sj,cj=(0,Y.WordComprehendCardWrapper)(pme),lj,mme=N.span` 5564 cursor: pointer; 5565`,hme=j(lj=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})},this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{height:(0,W.pixify)(this.props.cardState.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(4)),children:[this.props.card.hasTargetVideoClip&&(0,K.jsx)(gO,{showMedia:!0,card:this.props.card,cardState:this.props.cardState,autoPlay:this.props.inView,borderTopRadius:10,height:this.props.mediaSectionHeight}),(0,K.jsx)(oO,{background:`#FFF`,borderTopRadius:this.props.card.hasTargetVideoClip?0:10,borderBottomRadius:this.props.cardState.revealed?0:10,height:this.props.sectionHeight,onClick:this.props.showExpandedTarget&&U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:this.props.showExpandedTarget&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,height:this.props.sectionHeight,word:this.props.card.word})}),this.props.cardState.revealed&&(0,K.jsxs)(oO,{background:`#CCC`,borderBottomRadius:10,height:this.props.sectionHeight,fontSize:this.props.card.word.isNumber&&this.props.card.word.digitSourceText?`34px`:null,children:[(!this.props.card.word.isNumber||!this.props.card.word.digitSourceText)&&(0,K.jsx)(yk,{showEdit:!0,word:this.props.card.word,card:this.props.card,showWrongAnswer:(0,W.isPresent)(this.props.incorrectAnswer),wrongAnswer:this.props.incorrectAnswer}),this.props.card.word.isNumber&&this.props.card.word.digitSourceText&&(0,K.jsx)(mme,{onClick:this.openSourceEdit,children:this.props.card.word.formattedDigitSourceText}),this.props.card.word.isNumber&&this.props.card.word.digitSourceText&&(0,W.isPresent)(this.props.incorrectAnswer)&&(0,K.jsx)(mk,{text:this.props.incorrectAnswer,marginBottom:`10px`})]})]}),!this.props.cardState.revealed&&(0,K.jsx)(ED,{disabled:!this.props.inView,height:U.DeckUI.layout.totalMultipleChoiceButtonHeight(4),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,width:U.DeckUI.layout.innerDeckWidth,options:this.props.multipleChoiceOptions,onClick:e=>this.props.onClick(e),selected:[this.props.multipleChoiceSelected],isMobile:U.DeckUI.layout.isMobile,correct:this.props.correct,field:`text`,languageId:this.props.card.languageId}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,onNextClick:this.props.onNextClick,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]})}})||lj,uj=(0,Y.WordOptionsCardWrapper)(hme);D();var dj,fj;function gme(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _me=N.span` 5566 font-weight: bold; 5567 letter-spacing: 5px; 5568`,vme=N.div` 5569 position: absolute; 5570 top: 10px; 5571 left: 10px; 5572 z-index: ${q.Theme.z[`card-3`]}; 5573 .fa-times { 5574 color: ${q.Theme.red}; 5575 } 5576 .fa-check { 5577 color: ${q.Theme.green}; 5578 } 5579`,yme=N.div` 5580 height: 80px; 5581`,bme=N.div` 5582 margin-top: ${e=>e.marginTop}; 5583 width: 100%; 5584`,xme=N.span` 5585 cursor: pointer; 5586`,Sme=j(dj=(fj=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})},this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}get wordEntryMarginTop(){return this.props.cardState.revealed||U.DeckUI.layout.viewportHe
5586ight<600?``:U.DeckUI.layout.viewportHeight<750?`40px`:`80px`}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[this.props.cardState.revealed&&this.props.card.hasTargetVideoClip&&(0,K.jsx)(gO,{showMedia:!0,autoPlay:this.props.inView,card:this.props.card,cardState:this.props.cardState,borderTopRadius:10,height:this.props.sectionHeight,afterVideoPlayback:this.props.afterVideoPlayback}),(0,K.jsxs)(oO,{background:`#FFF`,height:this.props.sectionHeight,numSections:this.props.numSections,borderTopRadius:this.props.cardState.revealed&&this.props.card.hasTargetVideoClip?0:10,fontSize:this.props.card.word.isNumber&&this.props.card.word.digitSourceText?`34px`:null,children:[(!this.props.card.word.isNumber||!this.props.card.word.digitSourceText)&&(0,K.jsx)(yk,{center:!0,fontSize:U.DeckUI.layout.isMobile?`20px`:`26px`,background:`#FFF`,showEdit:!0,word:this.props.card.word,card:this.props.card}),this.props.card.word.isNumber&&this.props.card.word.digitSourceText&&(0,K.jsx)(xme,{onClick:this.openSourceEdit,children:this.props.card.word.formattedDigitSourceText})]}),(0,K.jsxs)(oO,{background:`#CCC`,height:this.props.sectionHeight,numSections:this.props.numSections,borderBottomRadius:this.props.showUserInput?0:10,onClick:this.props.showExpandedTarget&&U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:[!this.props.showUserInput&&this.props.cardState.revealed&&(0,K.jsxs)(vme,{children:[this.props.userCard.correct&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!this.props.userCard.correct&&(0,W.isBlank)(this.props.cardState.textEntry)&&(0,K.jsx)(`i`,{className:`fa fa-times`})]}),!this.props.showUserInput&&!this.props.showExpandedTarget&&this.props.card.word&&(0,K.jsx)(bme,{marginTop:this.wordEntryMarginTop,children:(0,K.jsx)(XO,{disabled:!this.props.inView,focus:this.props.inView&&U.DeckUI.firstCardHasAdvanced,target:this.props.card.word.targetTextWithDefiniteArticle,message:this.props.message,onChange:this.props.onTextInputChange,onPressEnter:()=>U.DeckUI.onEvaluateTextInput(this.props.card,this.props.cardState,this.props.userCard),value:this.props.cardState.textEntry,hint:this.props.hint,languageId:this.props.card.languageId||U.DeckUI.deck.languageId||`DE`,incorrect:this.props.cardState.revealed&&this.props.vocabCardIncorrect,revealed:this.props.cardState.revealed,revealedValue:this.props.wrongAnswerWithDiff})}),this.props.showExpandedTarget&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,showWrongAnswer:this.props.vocabCardIncorrect,wrongAnswer:this.props.cardState.textEntry,height:U.DeckUI.vocabTextHeight,word:this.props.card.word}),this.props.cardState.revealed&&!this.props.showExpandedTarget&&(0,W.isPresent)(this.props.card.word)&&(0,K.jsx)(mk,{correct:!0,text:this.props.correctAnswerWithDiff,marginBottom:`10px`}),!this.props.cardState.revealed&&(0,K.jsx)(yme,{children:(0,K.jsxs)(NO,{visibility:!this.props.hint&&(0,W.isBlank)(this.props.warning)?`hidden`:null,children:[(0,W.isBlank)(this.props.warning)&&this.props.hint&&(0,K.jsxs)(`span`,{children:[`Hint: `,(0,K.jsx)(_me,{children:this.props.hint})]}),(0,W.isPresent)(this.props.warning)&&(0,W.isPresent)(q.Constants.WARNINGS[this.props.warning])&&(0,K.jsx)(`span`,{children:q.Constants.WARNINGS[this.props.warning]})]})})]}),this.props.showUserInput&&(0,K.jsx)(DO,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),(0,K.jsx)(vO,{onNextClick:this.props.hideOnboardingPopups,advanceCard:!0,card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,setShowHelp:this.props.setShowHelp,showHelpButton:this.props.showHelpButton,onHelpButtonClicked:this.props.onHelpButtonClicked})]})}},gme(fj.prototype,`wordEntryMarginTop`,[E],Object.getOwnPropertyDescriptor(fj.prototype,`wordEntryMarginTop`),fj.prototype),fj))||dj,pj=(0,Y.WordTranslateCardWrapper)(Sme),mj,Cme=j(mj=class extends V.Component{constructor(...e){super(...e),this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,showWordCard:this.props.showWordCard,children:[(0,K.jsxs)(oE,{children:[(0,K.jsx)(gO,{showMedia:!0,autoPlay:this.props.inView,card:this.props.card,cardState:this.props.cardState,height:U.DeckUI.layout.contentHeight/3,borderTopRadius:10}),(0,K.jsxs)(oO,{background:`#FFF`,padding:`20px`,height:U.DeckUI.layout.contentHeight/3,children:[(!U.DeckUI.user.hideVocabTargetUntilRevealed||this.props.cardState.revealed)&&this.props.card.isEnriched&&this.props.card.sentence&&this.props.card.sentence.wordAssociations.length>0&&(0,K.jsx)(Vi,{resizeText:!0,height:U.DeckUI.layout.contentHeight/3-10,width:U.DeckUI.layout.innerDeckWidth-40,characterLength:this.props.card.sentence&&this.props.card.sentence.targetText&&this.props.card.sentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,showUnderline:!0,highlightWordAssociationIds:this.props.card.wordA
5586ssociationIds,sentence:this.props.card.sentence})}),(!U.DeckUI.user.hideVocabTargetUntilRevealed||this.props.cardState.revealed)&&!this.props.card.isEnriched&&this.props.card.sentence&&(0,K.jsx)(Vi,{resizeText:!0,height:U.DeckUI.layout.contentHeight/3-10,width:U.DeckUI.layout.innerDeckWidth-40,characterLength:this.props.card.sentence&&this.props.card.sentence.targetText&&this.props.card.sentence.targetText.length,children:(0,K.jsx)(R,{margin:`0 -10px 0 0`,children:(0,W.displayTargetTextCorrectedForLanguage)(this.props.card.sentence.targetText,this.props.card.sentence.languageId)})})]}),(0,K.jsx)(oO,{padding:`20px`,background:`#CCC`,borderBottomRadius:10,height:U.DeckUI.layout.contentHeight/3,children:this.props.cardState.revealed&&this.props.card.sentence&&this.props.card.sentence.sourceText&&(0,K.jsx)(Vi,{resizeText:!0,height:U.DeckUI.layout.contentHeight/3-10,width:U.DeckUI.layout.innerDeckWidth-40,characterLength:this.props.card.sentence&&this.props.card.sentence.sourceText&&this.props.card.sentence.sourceText.length,children:(0,K.jsx)(R,{rtl:q.Constants.RTL_LANGUAGE_IDS.includes(this.props.sourceLanguageId),cursor:`pointer`,onClick:this.openSourceEdit,children:this.props.card.sentence.sourceTextForUser(U.DeckUI.user)})})})]}),!this.props.cardState.revealed&&(0,K.jsx)(MT,{children:(0,K.jsx)(QA,{card:this.props.card,userCard:this.props.userCard,cardState:this.props.cardState,submitOnEnter:!0,shortcut:`1`,disabled:!this.props.inView})}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard,{score:q.Constants.EASY_SCORE,xp:1,xpXPos:U.DeckUI.layout.quarterDeckWidth*2}),disabled:!this.props.inView})]})}})||mj,wme=(0,Y.SentenceComprehendCardWrapper)(Cme),hj,Tme=N.div` 5587 width: 100%; 5588 ${(0,X.flexCenterColumn)()} 5589 display: ${e=>e.display}; 5590`,Eme=N.div` 5591 height: ${e=>e.height}; 5592 position: relative; 5593`,Dme=N.div` 5594 height: ${e=>e.height}; 5595 width: ${e=>e.width}; 5596 background: #000; 5597 border-top-right-radius: 10px; 5598 border-top-left-radius: 10px; 5599 display: flex; 5600 align-items: center; 5601 justify-content: center; 5602`,Ome=N.div` 5603 width: ${e=>e.width}; 5604 background: white; 5605 padding: 10px; 5606 border-radius: 10px; 5607 height: 200px; 5608 display: flex; 5609 align-items: center; 5610 justify-content: center; 5611 flex-direction: column; 5612`,kme=N.div` 5613 font-weight: bold; 5614 font-size: 18px; 5615`,Ame=N.div` 5616 font-style: italic; 5617 font-size: 12px; 5618 margin-top: 5px; 5619 color: #333; 5620`,jme=j(hj=class extends V.Component{render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,showWordCard:this.props.showWordCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[(0,K.jsx)(Tme,{display:!this.props.showHelp&&this.props.showVideoWithSupplement?`flex`:`none`,children:(0,K.jsx)(rj,{autoPlay:this.props.inView&&!this.props.showHelp&&this.props.showVideoWithSupplement,borderTopRadius:10,borderBottomRadius:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,videoClip:this.props.card.targetVideoClip,supplementVideoClip:this.props.card.supplementVideoClip,supplementImage:this.props.card.supplementImage,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,supplementBottom:U.DeckUI.layout.supplementBottom,loopSupplement:U.DeckUI.user.loopSupplement&&this.props.card.cardRule&&this.props.card.cardRule.loopSupplement,hideSupplement:!this.props.showDeckSupplement,maximizedWidth:(0,W.pixify)(U.DeckUI.layout.videoHeight),minimizedWidth:(0,W.pixify)(U.DeckUI.layout.supplementWidth),supplementMaximized:this.props.supplementMaximized,loadVideo:!this.props.showHelp,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,afterVideoPlayback:this.props.afterVideoPlayback})}),this.props.showHelp&&((0,W.isBlank)(this.props.helpVideoClip)||this.props.loadHelpWord)&&(0,K.jsxs)(Dme,{width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),height:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),children:[this.props.loadHelpWord&&(0,K.jsx)(P,{background:`white`}),!this.props.loadHelpWord&&(0,W.isBlank)(this.props.helpVideoClip)&&(0,W.isPresent)(this.props.cardState.helpWord)&&(0,K.jsxs)(Ome,{width:(0,W.pixify)(U.DeckUI.layout.videoHeight-60),children:[(0,K.jsxs)(kme,{children:[`"`,this.props.cardState.helpWord.targetText,`"`]}),(0,K.jsx)(Ame,{children:`We will shoot a video for this word soon!`})]})]}),!this.props.loadHelpWord&&this.props.showHelp&&(0,W.isPresent)(this.props.helpVideoClip)&&(0,K.jsx)(Eme,{height:(0,W.pixify)(U.DeckUI.layout.videoHeight),children:(0,K.jsx)(Ai,{maximized:!0,autoPlay:!0,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,videoClip:this.props.helpVideoClip,width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),borderTopRadius:10})}),(0,K.jsx)(xD,{card:this.props.card,cardState:this.props.cardState,hasUserInput:!0,showHelp:this.props.showHelp,padding:`0 30px`,cardId:this.props.card.id,sentence:this.props.card.sentence,cardTypeSlug:this.props.card&&this.props.card.cardTypeSlug,showText:!0,showEdit:!0,expand:!this.props.showHelp&&!this.props.cardState.revealed,showType:!this.props.showHelp&&!this.props.cardState.revealed?`source`:this.props.cardState.showType,borderTopRadius:this.props.cardTextBorderTopRadius,borderBottomRadius:this.props.cardTextBorderBottomRadius,onClickHelpWord:this.props.onClickHelpWord}),!this.props.showHelp&&(0,K.jsx)(DO,{disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),this.props.showEvaluationButtons&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,onNextClick:this.props.onNextClick,advanceCard:this.props.advanceCard}),this.props.showUnrevealedTranslateButtons&&(0,K.jsxs)(MT,{children:[(0,K.jsx)(yE,{shortcut:`1`,text:`Help`,icon:(0,K.jsx)(J.HelpIcon,{}),marginRight:this.props.showUserInput?0:5,disabled:!this.props.inView||U.DeckUI.userInputStore.isRecording||U.DeckUI.userInputStore.hasFinishedRecording,onClick:()=>this.props.setShowHelp(!0),backgroundColor:q.Theme.darkOrange}),!this.props.showUserInput&&(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:`2`,marginLeft:5,text:`Show Answer`,backgroundColor:q.Theme.green,icon:(0,K.jsx)(J.DownIcon,{}),onClick:()=>U.DeckUI.reveal(this.props.card,this.props.cardState),disabled:!this.props.inView||this.props.disableRevealButton})]}),this.props.showHelp&&(0,K.jsx)(MT,{children:(0,K.jsx)(yE,{shortcut:`1`,submitOnEnter:!0,text:`Try Again`,icon:(0,K.jsx)(J.LeftIcon,{}),className:`green reveal reverse`,disabled:!this.props.inView,onClick:()=>this.props.setShowHelp(!1)})})]})}})||hj,Mme=(0,Y.DeckCloseWebWrapper)((0,Y.TranslateCardWrapper)(jme)),gj,Nme=N.div` 5621 5622`,Pme=N.div` 5623 background-color: ${q.Theme.blue}; 5624 display: flex; 5625 align-items: center; 5626 flex-direction: column; 5627 justify-content: center; 5628 border-radius: 50%; 5629 position: relative; 5630 width: 160px; 5631 height: 160px; 5632 border: 10px solid #1e3f54; 5633 overflow: hidden; 5634 margin-bottom: 20px; 5635`,Fme=N.div` 5636 margin-bottom: 10px; 5637`,Ime=j(gj=class extends V.Component{render(){return(0,K.jsx)(Nme,{children:(0,K.jsxs)(Kw,{scale:+!!this.props.show,onClose:this.props.onClose,width:this.props.width,height:this.props.height,children:[(0,K.jsx)(R,{heading:`3`,margin:`0 0 10px 0`,children:(0,G.shuffle)(q.Constants.ENCOURAGEMENTS[U.DeckUI.deck.languageId||`DE`])[0][0]}),(0,K.jsxs)(Pme,{children:[this.props.languageId===`DE`&&(0,K.jsx)(Ai,{autoPlay:this.props.show,hideIcon:!0,hideOverlay:!0,loop:!1,videoClip:{mp4Url:`/video/thumbs-up-005.mp4`},width:`140px`}),this.props.languageId!==`DE`&&(0,K.jsx)(ZD,{width:`140px`,height:`140px`,card:this.props.card,reaction:`happy`,languageId:U.Ap
5637pUI.targetLanguageId})]}),(0,K.jsxs)(Fme,{children:[(0,K.jsx)(`span`,{children:`You've submitted to your feed, which can be viewed on your `}),(0,K.jsx)(F,{to:`profile`,className:`underline`,children:`profile page`}),(0,K.jsx)(`span`,{children:`.`})]}),this.props.madePrivate&&(0,K.jsx)(B,{children:`This is now a private feed entry which only you can view.`}),!this.props.madePrivate&&(0,K.jsx)(I,{onClick:this.props.onMakePrivate,children:`Make Feed Entry Private`})]})})}})||gj,_j=(0,Y.FeedInfoWrapper)(Ime),vj,Lme=N.div` 5638 position: relative; 5639 height: ${e=>e.height}; 5640 background: #dadada; 5641`,Rme=N.div` 5642 position: absolute; 5643 top: 200px; 5644 left: 0; 5645 right: 0; 5646 margin: 0 auto; 5647 z-index: 999; 5648`,zme=j(vj=class extends V.Component{render(){return(0,K.jsxs)($T,{children:[(0,K.jsxs)(oE,{padding:0,children:[(0,K.jsx)(_j,{show:this.props.cardState.submittedToFeed&&!this.props.cardState.submittedToFeedMessageClosed,feedEntryId:U.DeckUI.lastFeedEntryId,onClose:()=>U.DeckUI.closeFeedInfo(),width:(0,W.pixify)(U.DeckUI.layout.videoHeight),height:(0,W.pixify)(U.DeckUI.layout.videoHeight)}),this.props.cardState.submittingToFeed&&(0,K.jsx)(Rme,{children:(0,K.jsx)(P,{})}),!this.props.showCompositeVideoPlayer&&(0,K.jsx)(Lme,{height:(0,W.pixify)(U.DeckUI.layout.describeContentHeight),children:(0,K.jsx)(Ai,{autoPlay:!0,loop:!0,muted:!0,maximized:!0,position:`relative`,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,videoClip:U.DeckUI.deck.conceptVideoClip,width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth)})}),this.props.showCompositeVideoPlayer&&(0,K.jsx)(MC,{showNumbers:!0,borderTopRadius:10,height:(0,W.pixify)(U.DeckUI.layout.describeContentHeight),width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),mediaItems:U.DeckUI.deck.feedEntryMediaItems,usingDataSaverHeader:U.AppUI.usingDataSaverHeader}),(0,K.jsx)(DO,{show:!0,disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),!this.props.cardState.submittedToFeed&&(0,K.jsxs)(MT,{children:[(0,K.jsx)(yE,{shortcut:`1`,text:`Skip`,marginRight:5,backgroundColor:q.Theme.darkOrange,icon:(0,K.jsx)(J.RightIcon,{}),disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard)}),(0,K.jsx)(yE,{shortcut:`2`,text:`Submit`,marginLeft:5,backgroundColor:q.Theme.green,icon:(0,K.jsx)(J.SendIcon,{}),disabled:!this.props.inView||U.DeckUI.disableRecordButton,onClick:()=>U.DeckUI.onSubmitToFeed({xpXPos:U.DeckUI.layout.quarterDeckWidth*3})})]}),this.props.cardState.submittedToFeed&&(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),submitOnEnter:!0,shortcut:`1`})})]})}})||vj,Bme=(0,Y.DescribeCardWrapper)(zme),yj,Vme=N.div` 5649 position: relative; 5650 height: ${e=>e.height}; 5651 border-radius: 10px; 5652 margin-bottom: 10px; 5653`,Hme=N.div` 5654 position: absolute; 5655 top: 200px; 5656 left: 0; 5657 right: 0; 5658 margin: 0 auto; 5659 z-index: 999; 5660`,Ume=j(yj=class extends V.Component{render(){return(0,K.jsxs)($T,{children:[(0,K.jsxs)(oE,{padding:0,children:[(0,K.jsx)(_j,{show:this.props.cardState.submittedToFeed&&!this.props.cardState.submittedToFeedMessageClosed,feedEntryId:U.DeckUI.lastFeedEntryId,onClose:()=>U.DeckUI.closeFeedInfo(),width:(0,W.pixify)(U.DeckUI.layout.videoHeight),height:(0,W.pixify)(U.DeckUI.layout.videoHeight)}),this.props.cardState.submittingToFeed&&(0,K.jsx)(Hme,{children:(0,K.jsx)(P,{})}),(0,K.jsx)(Vme,{height:(0,W.pixify)(U.DeckUI.layout.videoHeight),children:(0,K.jsx)(Ai,{autoPlay:this.props.inView,maximized:!0,borderTopRadius:10,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,videoClip:this.props.card.targetVideoClip,width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth)})}),(0,K.jsx)(xD,{card:this.props.card,cardState:this.props.cardState,hasUserInput:!0,padding:`0 30px`,cardId:this.props.card.id,sentence:this.props.card.sentence,cardTypeSlug:this.props.card&&this.props.card.cardTypeSlug,showText:!1,showType:this.props.cardState.showType}),(0,K.jsx)(DO,{show:!0,disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),!this.props.cardState.submittedToFeed&&(0,K.jsxs)(MT,{children:[(0,K.jsx)(yE,{disabled:!this.props.inView,shortcut:`1`,text:`Skip`,marginRight:5,backgroundColor:q.Theme.darkOrange,icon:(0,K.jsx)(J.RightIcon,{}),onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard)}),(0,K.jsx)(yE,{shortcut:`2`,text:`Submit`,marginLeft:5,backgroundColor:q.Theme.green,icon:(0,K.jsx)(J.SendIcon,{}),disabled:!this.props.inView||U.DeckUI.disableRecordButton,onClick:()=>U.DeckUI.onSubmitToFeed({xpXPos:U.DeckUI.layout.quarterDeckWidth*3})})]}),this.props.cardState.submittedToFeed&&(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),submitOnEnter:!0,shortcut:`1`})})]})}})||yj,Wme=(0,Y.AnswerCardWrapper)(Ume),bj,Gme=N.div` 5661 text-align: left; 5662 font-size: 16px; 5663 line-height: 22px; 5664 padding: 20px; 5665 .close-icon { 5666 width: ${e=>e.minimized?`22`:`30`}px; 5667 } 5668 h3 { 5669 border-bottom: 1px solid gray; 5670 font-size: 18px; 5671 width: 100%; 5672 } 5673 table { 5674 .header-row { 5675 td { 5676 background: #777; 5677 color: white; 5678 font-size: 12px; 5679 font-weight: bold; 5680 padding: 5px 10px; 5681 } 5682 } 5683 } 5684 .info-icon { 5685 display: flex; 5686 align-items: center; 5687 justify-content: center; 5688 svg { 5689 width: 4px; 5690 } 5691 } 5692`,Kme=N.div` 5693 img { 5694 width: 150px; 5695 height: 150px; 5696 border-radius: 5px; 5697 margin-right: 20px; 5698 } 5699`,qme=N.div` 5700 display: flex; 5701 margin-bottom: 5px; 5702 .description { 5703 flex: 1; 5704 } 5705`,Jme=N.div` 5706`,xj=j(bj=class extends V.Component{render(){let e=U.DeckUI.deck.combinedGrammarDescription;return(0,K.jsxs)(Gme,{children:[(0,W.isPresent)(U.DeckUI.deck.combinedDescription)&&(0,K.jsxs)(`div`,{className:`description-wrapper`,children:[(0,K.jsx)(`h3`,{children:`Description`}),(0,K.jsxs)(qme,{children:[(0,K.jsx)(Kme,{children:(0,K.jsx)(`img`,{src:U.DeckUI.deck.imageUrl,alt:``})}),(0,K.jsx)(Jme,{children:(0,K.jsx)($i,{markdown:U.DeckUI.deck.combinedDescription})})]})]}),!e&&U.DeckUI.deck.deckGrammarConcepts&&!U.DeckUI.deck.grammarDescriptionOverride&&U.DeckUI.deck.deckGrammarConcepts.map((e,t)=>(0,K.jsxs)(`div`,{className:`grammar-section`,children:[(0,K.jsx)(R,{heading:`3`,style:{borderBottom:`1px solid gray`,marginTop:`10px`},children:e.concept.displayNameLine1WithCase}),e.concept.displayNameLine2&&(0,K.jsx)(R,{italic:!0,fontSize:`14px`,children:e.concept.displayNameLine2}),(0,K.jsx)($i,{htmlText:e.concept?.longDescription})]},`grammar-section-${t}`)),U.DeckUI.deck.hasCombinedGrammarDescription&&(0,K.jsx)($i,{htmlText:e})]})}})||bj,Sj,Yme=N.div` 5707 background: #FFF; 5708 border-radius: 10px; 5709 overflow: auto; 5710 height: 100%; 5711`,Xme=j(Sj=class extends V.Component{render(){return(0,K.jsxs)($T,{children:[(0,K.jsx)(oE,{scroll:!0,
5711children:(0,K.jsx)(Yme,{children:(0,K.jsx)(xj,{})})}),(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,shortcut:`1`,submitOnEnter:!0,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard)})})]})}})||Sj;D(),me();var Cj,wj,Tj,Ej,Dj;function Oj(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function kj(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Zme=N.div` 5712 display: inline-flex; 5713 align-items: center; 5714 justify-content: center; 5715`,Qme=N.div` 5716 padding: 2px; 5717 cursor: pointer; 5718 svg { 5719 width: ${e=>e.width}; 5720 fill: ${e=>e.selected?q.Theme.orange:`#CCC`}; 5721 } 5722`,Aj=j(Cj=(wj=(Dj=class extends V.Component{constructor(...e){super(...e),Oj(this,`hoveredRating`,Tj,this),Oj(this,`selectedRating`,Ej,this)}componentDidUpdate(e){(e.defaultValue!==this.props.defaultValue||e.id!==this.props.id)&&(this.selectedRating=this.props.defaultValue,this.hoveredRating=null)}get rating(){return this.selectedRating||this.hoveredRating}onClick(e){this.selectedRating=e,this.props.onClick(e,this.props.slug)}onHover(e){(0,W.isBlank)(this.selectedRating)&&(this.hoveredRating=e)}render(){return(0,K.jsx)(Zme,{onMouseOut:()=>this.onHover(null),children:(0,G.times)(this.props.maxRating,e=>(0,K.jsxs)(Qme,{onMouseOver:()=>this.onHover(e+1),width:this.props.starWidth,"data-tip":!this.props.hideTooltip,"data-for":`star-${e}`,selected:this.rating&&e+1<=this.rating,children:[(0,K.jsx)(J.StarIcon,{onClick:()=>this.onClick(e+1)}),!this.props.hideTooltip&&(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:`star-${e}`,class:`custom-tooltip`,children:[`Poor`,`Not Good`,`Average`,`Good`,`Great`][e]})]},e))})}},Dj.defaultProps={starWidth:`28px`},Dj),Tj=kj(wj.prototype,`hoveredRating`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ej=kj(wj.prototype,`selectedRating`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.defaultValue}}),kj(wj.prototype,`rating`,[E],Object.getOwnPropertyDescriptor(wj.prototype,`rating`),wj.prototype),wj))||Cj,jj,$me=N.div` 5723 z-index: ${q.Theme.z[`card-info-2`]}; 5724 height: ${e=>e.height}; 5725 width: ${e=>e.width}; 5726 bottom: ${e=>e.bottom}; 5727 border-bottom-left-radius: 10px; 5728 border-bottom-right-radius: 10px; 5729 textarea { 5730 height: 120px; 5731 } 5732`,ehe=N.div` 5733 ${(0,X.flexCenter)()} 5734 flex: 1; 5735`,the=N.div` 5736 background: white; 5737 display: flex; 5738 height: ${e=>e.height}; 5739 width: ${e=>e.width}; 5740 border-bottom-left-radius: 10px; 5741 border-bottom-right-radius: 10px; 5742`,nhe=N.div` 5743 width: 50%; 5744 text-transform: uppercase; 5745 font-size: 12px; 5746 font-weight: bold; 5747 height: ${e=>e.height}; 5748 background: ${q.Theme.purple}; 5749 color: white; 5750 display: inline-flex; 5751 align-items: center; 5752 justify-content: center; 5753 padding: 10px; 5754 line-height: 16px; 5755 border-bottom-left-radius: 10px; 5756`,rhe=N.div` 5757 padding: 20px; 5758`,ihe=j(jj=class extends V.Component{render(){return(0,K.jsxs)($me,{height:(0,W.pixify)(U.DeckUI.layout.userInputHeight),width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),bottom:(0,W.pixify)(U.DeckUI.layout.audioBottom),children:[this.props.showCommentInput&&(0,K.jsx)(ID,{show:!0,onClick:()=>this.props.setShowCommentInput(!1),bottom:(0,W.pixify)(U.DeckUI.layout.userInputHeight+15),width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),zIndex:q.Theme.z.overlay,padding:`20px`,closeIconTop:`18px`,closeIconRight:`10px`,arrowPosition:`bottom`,left:`0`,right:`0`,children:(0,K.jsxs)(rhe,{children:[(0,K.jsx)(R,{bold:!0,margin:`0 0 10px 0`,center:!0,children:`Leave feedback for this deck.`}),!this.props.submittedComment&&(0,K.jsx)(R,{italic:!0,fontSize:`14px`,margin:`0 0 10px 0`,center:!0,children:`Do you have anything to tell us about this deck? All feedback is appreciated!`}),(0,K.jsx)(`textarea`,{value:this.props.comment,placeholder:`Enter your comment`,onChange:e=>this.props.setComment(e.target.value)}),(0,K.jsx)(I,{disabled:(0,W.isBlank)(this.props.comment),margin:`10px 0 0 0`,onClick:()=>this.props.submitComment(),children:`Submit Message`})]})}),(0,K.jsxs)(the,{height:(0,W.pixify)(U.DeckUI.layout.userInputHeight),width:(0,W.pixify)(U.DeckUI.layout.innerDeckWidth),children:[(0,K.jsxs)(nhe,{height:(0,W.pixify)(U.DeckUI.layout.userInputHeight),children:[U.DeckUI.layout.minimumHeight&&(0,K.jsx)(`div`,{children:`Rate this deck?`}),!U.DeckUI.layout.minimumHeight&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{children:`How would you`}),(0,K.jsx)(`div`,{children:U.DeckUI.reviewDeck?`rate these reviews?`:`rate this deck?`})]})]}),(0,K.jsx)(ehe,{children:(0,K.jsx)(Aj,{maxRating:5,defaultValue:U.DeckUI.userDeck.rating,slug:`overall`,onClick:this.props.onClickRating})})]})]})}})||jj,ahe=(0,Y.DeckRatingWrapper)(ihe),Mj,ohe=N.div` 5759 border-radius: 5px; 5760 background: white; 5761 font-weight: bold; 5762 font-size: 13px; 5763 color: ${q.Theme.red}; 5764 padding: 0 5px; 5765 margin-right: 2px; 5766`,she=N.div` 5767 width: 100%; 5768 ${(0,X.flexCenterColumn)()} 5769`,che=j(Mj=class extends V.Component{constructor(...e){super(...e),this.onCloseDeckButtonClick=()=>{this.props.onCloseDeck({bypassConfirmation:!0})}}render(){let e=!!this.props.muteInterjection,t=!!this.props.card.isLastCard,n=t?U.DeckUI.layout.contentHeight-U.DeckUI.layout.userInputHeight:U.DeckUI.layout.contentHeight;return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,showWordCard:this.props.showWordCard,icons:e?null:[`languageButton`],children:[(0,K.jsxs)(oE,{children:[!this.props.muteInterjection&&(0,K.jsx)(she,{children:(0,K.jsx)(rj,{autoPlay:this.props.inView,borderTopRadius:10,borderBottomRadius:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,videoClip:this.props.card.targetVideoClip,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,maximizedWidth:(0,W.pixify)(U.DeckUI.layout.videoHeight),minimizedWidth:(0,W.pixify)(U.DeckUI.layout.supplementWidth),loadVideo:!0,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0})}),e&&(0,K.jsx)(nO,{card:this.props.card,inView:this.props.inView,muted:this.props.muteInterjection,achievementText:this.props.checkpointAchievementText,encouragement:this.props.encouragement,languageIndex:this.props.languageIndex,toggleLanguage:this.props.toggleLanguage,height:n,borderBottomRadius:t?0:10}),!this.props.muteInterjection&&(0,K.jsx)(xD,{card:this.props.card,cardState:this.props.cardState,padding:`0 30px`,hasUserInput:this.props.card.isLastCard,cardId:this.props.card.id,sentence:this.props.card.sentence,cardTypeSlug:this.props.card&&this.props.card.cardTypeSlug,showText:!0,showEdit:!0,expand:!1,showType:this.props.cardState.showType,borderTopRightRadius:(U.DeckUI.layout.cardTextHasMinimumHeight||this.props.translateCard)&&!this.props.cardState.revealed?10:0,borderTopLeftRadius:(U.DeckUI.layout.cardTextHasMinimumHeight||this.props.translateCard)&&!this.props.cardState.revealed?10:0,borderBottomRightRadius:this.props.card.isLastCard?0:10,borderBottomLeftRadius:this.props.card.isLastCard?0:10}),t&&(0,K.jsx)(ahe,{})]}),this.props.card.isLastCard&&(0,K.jsxs)(MT,{children:[this.props.showMoreReviewsButton&&(0,K.jsx)(yE,{shortcut:`1`,marginRight:5,text:`More Reviews`,icon:this.props.moreReviewsButtonCount>0?(0,K.jsx)(ohe,{children:this.props.moreReviewsButtonCount}):null,backgroundColor:q.Theme.darkestGreen,onClick:()=>U.DeckUI.reloadReviewDeck({id:U.DeckUI.deck.id}),disabled:!this.props.inView}),this.props.showNewDeckButton&&(0,K.jsx)(yE,{shortcut:this.props.showMoreReviewsButton?`2`:`1`,marginLeft:this.props.showMoreReviewsButton?5:0,marginRight:5,text:`New Deck`,icon:(0,K.jsx)(J.RightIcon,{}),backgroundColor:q.Theme.darkestGreen,onClick:this.props.onCreateNewDeck,disabled:!this.props.inView||this.props.newDeckIsBeingCreated}),(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:this.props.showMoreReviewsButton&&this.props.showNewDeckButton?`3`:this.props.showMoreReviewsButton||this.props.showNewDeckButton?`2`:`1`,marginLeft:this.props.showMoreReviewsButton||this.props.showNewDeckButton?5:0,text:`Close Deck`,icon:(0,K.jsx)(J.RightIcon,{}),backgroundColor:q.Theme.green,onClick:this.onCloseDeckButtonClick,disabled:!this.props.inView})]}),!this.props.card.isLastCard&&(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),submitOnEnter:!0,shortcut:`1`})})]})}})||Mj,lhe=(0,Y.DeckCloseWebWrapper)((0,Y.InterjectionCardWrapper)((0,Y.CheckpointCardWrapper)(che))),Nj,uhe=N.div` 5770 width: 100%; 5771 ${(0,X.flexCenterColumn)()} 5772`,dhe=j(Nj=class extends V.Component{render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,showWordCard:this.props.showWordCard,icons:this.props.icons,sourceLanguageId:this.props.card.sentence.sourceTextForUserLanguageId(U.DeckUI.user),children:[(0,K.jsxs)(oE,{children:[(0,K.jsx)(uhe,{children:(0,K.jsx)(rj,{card:this.props.card,cardState:this.props.cardState,autoPlay:this.props.inView,borderTopRadius:10,afterVideoPlayback:this.props.afterVideoPlayback,borderBottomRadius:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,videoClip:this.props.card.targetVideoClip,supplementVideoClip:this.props.card.supplementVideoClip,supplementImage:this.props.card.supplementImage,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,supplementBottom:U.DeckUI.layout.supplementBottom,loopSupplement:U.DeckUI.user.loopSupplement,hideSupplement:!this.props.showDeckSupplement,maximizedWidth:(0,W.pixify)(U.DeckUI.layout.videoHeight),minimizedWidth:(0,W.pixify)(U.DeckUI.layout.supplementWidth),supplementMaximized:this.props.supplementMaximized,loadVideo:!this.props.showHelp,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0})}),(0,K.jsx)(xD,{card:this.props.card,cardState:this.props.cardState,padding:`0 30px`,hasUserInput:!0,cardId:this.props.card.id,sentence:this.props.card.sentence,cardTypeSlug:this.props.card&&this.props.card.cardTypeSlug,showText:this.props.showCardText,expand:!1,showType:this.props.cardState.showType,borderTopRadius:(U.DeckUI.layout.cardTextHasMinimumHeight||this.props.translateCard)&&!this.props.cardState.revealed?10:0,borderBottomRadius:0,showEdit:!0}),(0,K.jsx)(DO,{disabled:!this.props.initialVideoPlayFinished,card:this.props.card,cardState:this.props.cardState}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,onNextClick:this.props.onNextClick,advanceCard:this.props.advanceCard})]})}})||Nj,fhe=(0,Y.DeckCloseWebWrapper)((0,Y.ComprehendCardWrapper)(dhe)),Pj,phe=N.div` 5773 background: #FFF; 5774 border-radius: 10px; 5775 overflow: auto; 5776 height: 100%; 5777 padding: 0 20px; 5778`,mhe=N.div` 5779 ${(0,X.flexCenterColumn)()} 5780 padding-top: 20px; 5781`,hhe=N.div` 5782 margin-bottom: 10px; 5783 width: 100%; 5784 background: whitesmoke; 5785`,ghe=N.div` 5786 width: 100%; 5787 border-left: 1px solid #CCC; 5788 border-right: 1px solid #CCC; 5789 border-top: 1px solid #CCC; 5790`,Fj=N.div` 5791 display: flex; 5792 flex-direction: row; 5793 align-items: center; 5794 background: ${e=>e.background}; 5795 border-bottom: 1px solid #CCC; 5796`,Ij=N.div` 5797 flex: 1; 5798 padding: ${e=>e.padding||`10px`}; 5799 color: ${e=>e.color}; 5800 display: flex; 5801 font-weight: ${e=>e.fontWeight}; 5802 text-align: left; 5803`,_he=j(Pj=class extends V.Component{constructor(...e){super(...e),this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||this.props.word?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{children:[(0,K.jsx)(oE,{scroll:!0,
5803children:(0,K.jsxs)(phe,{children:[(0,K.jsxs)(mhe,{children:[this.props.conjugatedVerbString&&(0,K.jsxs)(`div`,{children:[`In this deck, we will practice conjugations`,(0,K.jsx)(`br`,{}),` in the `,(0,K.jsx)(`b`,{children:this.props.conjugatedVerbString.concept&&this.props.conjugatedVerbString.concept.name}),` of`]}),(0,K.jsxs)(R,{heading:`2`,italic:!0,margin:`20px 0 0 0`,children:[`"`,this.props.word.targetText,`"`]}),(0,K.jsx)(R,{fontSize:`18px`,bold:!0,margin:`0 0 20px 0`,cursor:`pointer`,onClick:this.openSourceEdit,children:this.props.word.sourceText})]}),this.props.conjugatedVerbString&&(0,K.jsx)(hhe,{children:(0,K.jsxs)(ghe,{children:[(0,K.jsxs)(Fj,{children:[(0,K.jsx)(Ij,{children:this.props.conjugatedVerbString.singular1p?this.props.singular1pPronoun:q.Constants.PRONOUN_STRINGS[this.props.word.languageId||`DE`].singular_1p}),(0,K.jsx)(Ij,{dangerouslySetInnerHTML:{__html:this.props.conjugatedVerbString.singular1pDisplay||``}})]}),(0,K.jsxs)(Fj,{children:[(0,K.jsx)(Ij,{children:q.Constants.PRONOUN_STRINGS[this.props.word.languageId||`DE`].singular_2p}),(0,K.jsx)(Ij,{dangerouslySetInnerHTML:{__html:this.props.conjugatedVerbString.singular2pDisplay||``}})]}),(0,K.jsxs)(Fj,{children:[(0,K.jsx)(Ij,{children:q.Constants.PRONOUN_STRINGS[this.props.word.languageId||`DE`].singular_3p}),(0,K.jsx)(Ij,{dangerouslySetInnerHTML:{__html:this.props.conjugatedVerbString.singular3pDisplay||``}})]}),(0,K.jsxs)(Fj,{children:[(0,K.jsx)(Ij,{children:q.Constants.PRONOUN_STRINGS[this.props.word.languageId||`DE`].plural_1p}),(0,K.jsx)(Ij,{dangerouslySetInnerHTML:{__html:this.props.conjugatedVerbString.plural1pDisplay||``}})]}),(0,K.jsxs)(Fj,{children:[(0,K.jsx)(Ij,{children:q.Constants.PRONOUN_STRINGS[this.props.word.languageId||`DE`].plural_2p}),(0,K.jsx)(Ij,{dangerouslySetInnerHTML:{__html:this.props.conjugatedVerbString.plural2pDisplay||``}})]}),(0,K.jsxs)(Fj,{children:[(0,K.jsx)(Ij,{children:q.Constants.PRONOUN_STRINGS[this.props.word.languageId||`DE`].plural_3p}),(0,K.jsx)(Ij,{dangerouslySetInnerHTML:{__html:this.props.conjugatedVerbString.plural3pDisplay||``}})]})]})})]})}),(0,K.jsx)(MT,{children:(0,K.jsx)(SE,{disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,shortcut:`1`,submitOnEnter:!0,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard)})})]})}})||Pj,vhe=(0,Y.ConjugationTableCardWrapper)(_he),Lj,yhe=N.div` 5804 width: 100%; 5805 ${(0,X.flexCenterColumn)()} 5806`,bhe=N.div` 5807 font-size: 20px; 5808 font-weight: bold; 5809 line-height: 18px; 5810`,xhe=j(Lj=class extends V.Component{render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{height:(0,W.pixify)(this.props.cardState.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(2)),children:[(0,K.jsx)(yhe,{children:(0,K.jsx)(rj,{card:this.props.card,cardState:this.props.cardState,autoPlay:this.props.inView,borderTopRadius:10,afterVideoPlayback:this.props.afterVideoPlayback,videoClip:this.props.card.targetVideoClip,supplementVideoClip:this.props.card.supplementVideoClip,supplementImage:this.props.card.supplementImage,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,supplementBottom:U.DeckUI.layout.supplementBottom,loopSupplement:U.DeckUI.user.loopSupplement,hideSupplement:!this.props.showDeckSupplement,maximizedWidth:(0,W.pixify)(U.DeckUI.layout.videoHeight),minimizedWidth:(0,W.pixify)(U.DeckUI.layout.supplementWidth),supplementMaximized:this.props.supplementMaximized,loadVideo:!this.props.showHelp,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0})}),!this.props.cardState.revealed&&(0,K.jsx)(oO,{background:`#FFF`,borderBottomRadius:10,height:(0,W.pixify)(U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(2)-U.DeckUI.layout.videoHeight),children:(0,K.jsx)(bhe,{children:`Which ${this.props.card.word.isPhoneme?`sound`:`word`} do you hear?`})}),this.props.cardState.revealed&&(0,K.jsx)(oj,{showIfRevealed:!0,toggleToShowSources:!0,hideSources:!0,card:this.props.card,cardState:this.props.cardState,sectionHeight:U.DeckUI.layout.userInputHeight+U.DeckUI.layout.cardTextHeight,showType:this.props.cardState.showType,correct:this.props.userCard.correct})]}),!this.props.cardState.revealed&&(0,K.jsx)(ED,{disabled:!this.props.inView,height:U.DeckUI.layout.totalMultipleChoiceButtonHeight(2),fontSize:`20px`,buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,width:U.DeckUI.layout.innerDeckWidth,options:this.props.multipleChoiceOptions,onClick:e=>this.props.onClick(e),selected:[this.props.multipleChoiceSelected],isMobile:U.DeckUI.layout.isMobile,correct:this.props.correct,field:`text`}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,onNextClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView})]})}})||Lj,Rj=(0,Y.WordOptionsCardWrapper)(xhe);w();var zj,She=j(zj=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,showWordCard:this.props.showWordCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[this.props.cardState.revealed&&(0,K.jsx)(rj,{card:this.props.card,cardState:this.props.cardState,autoPlay:this.props.inView,borderTopRadius:10,afterVideoPlayback:this.props.afterVideoPlayback,borderBottomRadius:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,videoClip:this.props.card.targetVideoClip,supplementVideoClip:this.props.card.supplementVideoClip,supplementImage:this.props.card.supplementImage,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,supplementBottom:U.DeckUI.layout.supplementBottom,loopSupplement:U.DeckUI.user.loopSupplement,hideSupplement:!this.props.showDeckSupplement,maximizedWidth:v(U.DeckUI.layout.videoHeight),minimizedWidth:v(U.DeckUI.layout.supplementWidth),supplementMaximized:this.props.supplementMaximized,loadVideo:!0,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0}),!this.props.cardState.revealed&&(0,K.jsx)(oO,{background:this.props.cardState.revealed?`#FFF`:`#e8e8e8`,height:this.props.expandedTargetSectionHeight,borderTopRadius:this.props.cardState.revealed?0:10,onClick:U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,word:this.props.card.word,showVocabTriadIntro:this.props.showVocabTriadIntro,prompt:this.props.cardState.revealed?null:`Read the ${this.props.card.word.isPhoneme||this.props.card.word.isGrapheme?`sound`:`word`} out loud`})}),this.props.cardState.revealed&&(0,K.jsx)(oj,{showIfRevealed:!0,toggleToShowSources:!0,hideSources:!0,hasUserInput:!0,card:this.props.card,cardState:this.props.cardState,sectionHeight:U.DeckUI.layout.contentHeight-U.DeckUI.layout.innerDeckWidth-U.DeckUI.layout.userInputHeight,showType:this.props.cardState.showType}),(0,K.jsx)(DO,{disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),this.props.showEvaluationButtons&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,onNextClick:this.props.onNextClick,advanceCard:this.props.advanceCard}),!this.props.showEvaluationButtons&&(0,K.jsx)(MT,{children:(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:`1`,text:`Reveal Pronunciation`,backgroundColor:q.Theme.orange,icon:(0,K.jsx)(J.DownIcon,{}),onClick:()=>U.DeckUI.reveal(this.props.card,this.props.cardState),disabled:!this.props.inView})})]})}})||zj,Bj=(0,Y.DeckCloseWebWrapper)((0,Y.PronunciationCardWrapper)(She)),Vj,Che=N.div` 5811 width: 100%; 5812 ${(0,X.flexCenterColumn)()} 5813 display: ${e=>e.display}; 5814`,whe=j(Vj=class extends V.Component{render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,showWordCard:this.props.showWordCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[(0,K.jsx)(Che,{display:!this.props.showHelp&&this.props.showVideoWithSupplement?`flex`:`none`,children:(0,K.jsx)(rj,{autoPlay:this.props.inView&&!this.props.showHelp&&this.props.showVideoWithSupplement,borderTopRadius:10,borderBottomRadius:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,videoClip:this.props.card.targetVideoClip,supplementVideoClip:this.props.card.supplementVideoClip,supplementImage:this.props.card.supplementImage,usingDataSaverHeader:U.AppUI.usingDataSaverHeader,supplementBottom:U.DeckUI.layout.supplementBottom,loopSupplement:U.DeckUI.user.loopSupplement&&this.props.card.cardRule&&this.props.card.cardRule.loopSupplement,hideSupplement:!this.props.showDeckSupplement,maximizedWidth:(0,W.pixify)(U.DeckUI.layout.videoHeight),minimizedWidth:(0,W.pixify)(U.DeckUI.layout.supplementWidth),supplementMaximized:this.props.supplementMaximized,loadVideo:!this.props.showHelp,marginBottom:U.DeckUI.layout.cardTextHasMinimumHeight?10:0,afterVideoPlayback:this.props.afterVideoPlayback})}),(0,K.jsx)(xD,{simpleTextMode:this.props.cardState.revealed,card:this.props.card,cardState:this.props.cardState,hasUserInput:!0,showEdit:!0,showHelp:this.props.showHelp,padding:`0 30px`,cardId:this.props.card.id,sentence:this.props.card.sentence,cardTypeSlug:this.props.card&&this.props.card.cardTypeSlug,showText:!0,expand:!this.props.showHelp&&!this.props.cardState.revealed,showType:this.props.cardState.showType,borderTopRadius:this.props.cardTextBorderTopRadius,borderBottomRadius:this.props.cardTextBorderBottomRadius,onClickHelpWord:this.props.onClickHelpWord}),(0,K.jsx)(DO,{disabled:!this.props.inView,card:this.props.card,cardState:this.props.cardState}),(0,K.jsx)(AO,{card:this.props.card,possibleArrowBoxes:this.props.possibleArrowBoxes,currentArrowBox:this.props.currentArrowBox})]}),this.props.showEvaluationButtons&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,onNextClick:this.props.onNextClick,advanceCard:this.props.advanceCard}),!this.props.showEvaluationButtons&&(0,K.jsx)(MT,{children:(0,K.jsx)(yE,{submitOnEnter:!0,shortcut:`1`,text:`Reveal Pronunciation`,backgroundColor:q.Theme.orange,icon:(0,K.jsx)(J.DownIcon,{}),onClick:()=>U.DeckUI.reveal(this.props.card,this.props.cardState),disabled:!this.props.inView})})]})}}
5814)||Vj,The=(0,Y.DeckCloseWebWrapper)((0,Y.PronunciationCardWrapper)(whe));w();var Hj,Ehe=N.span` 5815 cursor: pointer; 5816`,Dhe=j(Hj=class extends V.Component{constructor(...e){super(...e),this.onClickTargetSection=()=>{U.DeckUI.openDeckVocabCard({card:this.props.card,cardState:this.props.cardState,requiresRevealed:!0})},this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - click translations icon`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{children:[(0,K.jsx)(gO,{showMedia:!0,card:this.props.card,cardState:this.props.cardState,autoPlay:this.props.inView,borderTopRadius:10,height:this.props.sectionHeight}),(0,K.jsx)(oO,{background:`#FFF`,height:this.props.sectionHeight,onClick:this.props.showExpandedTarget&&U.DeckUI.canOpenDeckVocabCard(this.props.card,this.props.cardState,!0)?this.onClickTargetSection:null,children:this.props.showExpandedTarget&&(0,K.jsx)(Ok,{card:this.props.card,cardState:this.props.cardState,height:this.props.sectionHeight,word:this.props.card.word})}),!this.props.revealed&&(0,K.jsxs)(oO,{background:`#CCC`,numSections:3,borderBottomRadius:this.props.showUserInput?0:10,children:[(0,K.jsx)(XO,{numberEntry:!0,disabled:!this.props.inView,focus:this.props.inView&&U.DeckUI.firstCardHasAdvanced,target:this.props.card.word.targetTextWithDefiniteArticle,message:(0,K.jsxs)(`span`,{children:[`Type this `,(0,K.jsx)(`b`,{children:`Number`})]}),onChange:this.props.onTextInputChange,onPressEnter:this.props.evaluateTextInput,value:this.props.cardState.textEntry}),this.props.showDigitsOnlyWarning&&(0,K.jsx)(NO,{children:`You need to type numbers, not letters!`})]}),this.props.revealed&&(0,K.jsxs)(oO,{background:`#CCC`,numSections:3,borderBottomRadius:this.props.showUserInput?0:10,fontSize:`34px`,children:[(0,K.jsx)(Ehe,{onClick:this.openSourceEdit,children:this.props.card.word.formattedDigitSourceText}),this.props.cardState?.revealed&&!this.props.correct&&!C(this.props.incorrectAnswer)&&(0,K.jsx)(mk,{text:this.props.incorrectAnswer,marginBottom:`10px`})]})]}),(0,K.jsx)(vO,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,showHelpButton:this.props.showHelpButton,onHelpButtonClicked:this.props.onHelpButtonClicked,onShowAnswer:this.props.evaluateTextInput})]})}})||Hj,Ohe=(0,Y.NumberCardWrapper)(Dhe),Uj,khe=j(Uj=class extends V.Component{render(){return(0,K.jsx)(uj,{...this.props})}})||Uj,Ahe=(0,Y.NumberCardWrapper)(khe),Wj,jhe=j(Wj=class extends V.Component{render(){return U.AppUI.userIsLoaded?this.props.showTextEntryCard?(0,K.jsx)(Ohe,{...this.props}):(0,K.jsx)(Ahe,{...this.props}):(0,K.jsx)(`span`,{})}})||Wj,Mhe=(0,Y.NumberCardWrapper)(jhe),Gj,Nhe=N.div` 5817 margin-top: 20px; 5818 text-align: center; 5819`,Phe=N.span` 5820 background: ${e=>e.background}; 5821 color: white; 5822 padding: 2px 6px; 5823 border-radius: 3px; 5824 font-weight: bold; 5825`,Fhe=j(Gj=class extends V.Component{render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{height:this.props.cardState.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(4),children:[(0,K.jsx)(gO,{showMedia:!0,autoPlay:this.props.inView,card:this.props.card,cardState:this.props.cardState,height:this.props.mediaSectionHeight,borderTopRadius:10}),!!this.props.cardState.revealed&&(0,K.jsxs)(oO,{padding:20,background:`#f5f5f5`,height:this.props.sectionHeight,borderBottomRadius:this.props.cardState.revealed?0:10,children:[this.props.cardState.revealed&&(0,K.jsx)(PO,{correct:this.props.userCard.correct,zIndex:q.Theme.z[`card-4`]}),(0,K.jsx)(Nhe,{children:(0,K.jsxs)(R,{bold:!0,color:this.props.userCard.correct?q.Theme.green:q.Theme.red,fontSize:U.DeckUI.layout.deckHeight>700?`18px`:`14px`,children:[this.props.currentMessage.prefix,(0,K.jsx)(Phe,{background:this.props.correctAnswerBackgroun
5825dColor,children:this.props.currentMessage.caseName})]})}),!!this.props.grammarHint&&(0,K.jsx)(vD,{description:this.props.grammarHint.description,backgroundColor:`transparent`,textColor:`#000`,border:`1px solid #000`})]}),(0,K.jsx)(oO,{padding:`20px`,background:this.props.cardState.revealed?`#CCC`:`#FFF`,borderBottomRadius:10,height:this.props.sectionHeight,children:(0,K.jsx)(xD,{card:this.props.card,showEdit:!0,cardState:this.props.cardState,sentence:this.props.card.sentence,showText:!0,showSentenceBreakdown:!0,showType:this.props.cardState.showType,sourceText:this.props.card.sentence?.sourceTextForUser(U.DeckUI.user),highlightWordAssociationIds:this.props.cardState.revealed?null:this.props.card.nounPhraseWordAssociationIds,highlightType:`background`,background:this.props.cardState.revealed?`#CCC`:`#FFF`,showCase:this.props.cardState.revealed,prompt:this.props.cardState.revealed?null:this.props.prompt,disableOnClick:!this.props.cardState.revealed,showUnderline:this.props.cardState.revealed,hideHighlight:!1,showSpinner:!0,defaultBorderColor:this.props.cardState.revealed?`#b0b0b0`:void 0})})]}),!this.props.cardState.revealed&&(0,K.jsx)(ED,{options:this.props.caseOptions,selected:this.props.selectedCase?[this.props.selectedCase]:[],onClick:this.props.onSelectCase,disabled:!this.props.inView,field:`label`,languageId:`DE`,revealed:this.props.cardState.revealed,correct:this.props.userCard.correct,width:U.DeckUI.layout.innerDeckWidth,height:U.DeckUI.layout.totalMultipleChoiceButtonHeight(4),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,fontSize:`16px`,isMobile:U.DeckUI.layout.isMobile}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,onNextClick:this.props.onNextClick,onCheckAnswer:this.props.onCheckAnswer})]})}})||Gj,Ihe=(0,Y.CaseMultipleChoiceCardWrapper)(Fhe),Kj,Lhe=N.div` 5826 ${(0,X.flexCenterColumn)()} 5827 flex: 1; 5828 width: 100%; 5829 height: 80%; 5830`,Rhe=j(Kj=class extends V.Component{constructor(...e){super(...e),this.openSourceEdit=()=>{U.DeckUI.createEvent(`deck - open translation report screen`,{language_id:this.props.card?.languageId||U.DeckUI.deck?.languageId,card_type_id:this.props.card?.cardType?.id||this.props.card?.cardTypeId}),U.OverlayUI.addOverlay(`sourceEdit`)}}render(){return(0,K.jsxs)($T,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,icons:this.props.icons,children:[(0,K.jsxs)(oE,{height:this.props.cardState.revealed?U.DeckUI.layout.contentHeight:U.DeckUI.layout.contentHeightWithMultipleChoiceButtons(this.props.wordFormOptions?.length||4),children:[this.props.cardState.revealed&&(0,K.jsx)(gO,{showMedia:!0,autoPlay:this.props.inView,card:this.props.card,cardState:this.props.cardState,height:this.props.sectionHeight,borderTopRadius:10}),(0,K.jsx)(oO,{background:`#FFF`,padding:`20px`,numSections:this.props.numSections,borderTopRadius:this.props.cardState.revealed?0:10,height:this.props.sectionHeight,children:(0,K.jsx)(Vi,{resizeText:!0,height:this.props.sectionHeight-20,width:U.DeckUI.layout.innerDeckWidth-40,characterLength:this.props.topSectionText&&this.props.topSectionText.length,children:(0,K.jsx)(R,{rtl:q.Constants.RTL_LANGUAGE_IDS.includes(this.props.topSectionLanguageId),cursor:this.props.cardState.revealed?`pointer`:null,onClick:this.props.cardState.revealed?this.openSourceEdit:null,children:this.props.topSectionText})})}),(0,K.jsxs)(oO,{numSections:this.props.numSections,padding:`20px`,background:`#CCC`,borderBottomRadius:10,height:this.props.sectionHeight,children:[this.props.cardState.revealed&&(0,K.jsx)(PO,{correct:this.props.userCard.correct,userAnswer:this.props.selectedWordForm,zIndex:q.Theme.z[`card-4`]}),this.props.grammarHint&&(0,K.jsx)(vD,{description:this.props.grammarHint.description,backgroundColor:this.props.grammarHint.color}),(0,K.jsxs)(Lhe,{children:[(0,K.jsx)(Vi,{resizeText:!0,maximumFontSize:30,height:this.props.cardState.revealed?this.props.sectionHeight-80:this.props.sectionHeight-20,width:U.DeckUI.layout.deckWidth-40,characterLength:this.props.card.sentence&&this.props.card.sentence.targetText&&this.props.card.sentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,showGapUnderline:!this.props.cardState.revealed,showUnderline:this.props.cardState.revealed,showCase:this.props.cardState.revealed,inputWordAssociationIds:this.props.cardState.revealed?[]:this.props.card.wordA
5830ssociationIds,highlightWordAssociationIds:this.props.cardState.revealed?this.props.card.wordAssociationIds:[],highlightType:`background`,sentence:this.props.card.sentence,disableOnClick:!this.props.cardState.revealed,defaultBorderColor:`#b0b0b0`})}),this.props.card.sentence&&!this.props.card.sentence.enrichedWords&&(0,K.jsx)(P,{width:`40px`,height:`12px`,margin:`10px auto 0`,background:`#999`})]})]}),(0,K.jsx)(AO,{card:this.props.card,currentArrowBox:this.props.currentArrowBox,possibleArrowBoxes:this.props.possibleArrowBoxes})]}),!this.props.cardState.revealed&&(0,W.isPresent)(this.props.wordFormOptions)&&(0,K.jsx)(ED,{options:this.props.wordFormOptions,selected:this.props.selectedWordForm?[this.props.selectedWordForm]:[],onClick:this.props.onSelectWordForm,disabled:!this.props.inView,field:`label`,languageId:`DE`,revealed:this.props.cardState.revealed,correct:this.props.userCard.correct,width:U.DeckUI.layout.innerDeckWidth,height:U.DeckUI.layout.totalMultipleChoiceButtonHeight(this.props.wordFormOptions?.length||4),buttonHeight:U.DeckUI.layout.multipleChoiceButtonHeight,fontSize:`16px`,isMobile:U.DeckUI.layout.isMobile}),!this.props.cardState.revealed&&!(0,W.isPresent)(this.props.wordFormOptions)&&(0,K.jsx)(P,{}),this.props.cardState.revealed&&(0,K.jsx)(OD,{card:this.props.card,cardState:this.props.cardState,userCard:this.props.userCard,disabled:!this.props.inView,onNextClick:this.props.onNextClick,onCheckAnswer:this.props.onCheckAnswer})]})}})||Kj,zhe=(0,Y.CaseFillInTheBlanksCardWrapper)(Rhe);D();var qj,Jj;function Bhe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Vhe=j(qj=(Jj=class extends V.Component{get showTextEntryCard(){return U.AppUI.user.textInputCaseTrainer}render(){return U.AppUI.userIsLoaded?this.showTextEntryCard?(0,K.jsx)(IO,{blockEvaluateVocabOnKeystroke:!0,...this.props}):(0,K.jsx)(zhe,{...this.props}):(0,K.jsx)(`span`,{})}},Bhe(Jj.prototype,`showTextEntryCard`,[E],Object.getOwnPropertyDescriptor(Jj.prototype,`showTextEntryCard`),Jj.prototype),Jj))||qj,Hhe=M((0,Y.CaseFillInTheBlanksCardWrapper)(Vhe)),Yj,Uhe=N.div` 5831 ${(0,X.flexCenterColumn)()} 5832 height: ${e=>e.height}; 5833 position: relative; 5834 background: #333; 5835`,Whe=N.div` 5836 flex: 1; 5837 width: 100%; 5838 overflow-y: auto; 5839 overflow-x: hidden; 5840`,Ghe=N.div` 5841 ${(0,X.flexCenter)()} 5842 margin: 20px 0; 5843`,Khe=N.div` 5844 ${(0,X.flexCenterColumn)()} 5845 color: white; 5846`,qhe=N.div` 5847 padding: 0 10px; 5848`,Jhe=j(Yj=class extends V.Component{render(){return(0,K.jsxs)(Uhe,{height:(0,W.pixify)(U.DeckUI.layout.contentHeightWithoutButtons),width:(0,W.pixify)(U.DeckUI.layout.deckWidth),children:[(0,K.jsxs)(Whe,{children:[(0,K.jsx)(Ghe,{children:(0,K.jsxs)(Khe,{children:[(0,K.jsx)(R,{heading:`2`,color:`white`,margin:`20px 0`,children:`CASE TRAINER`}),(0,K.jsx)(ZD,{width:`120px`,reaction:`happy`,languageId:U.DeckUI.targetLanguageId,borderColor:q.Theme.green,background:q.Theme.blue})]})}),(0,K.jsx)(qhe,{children:(0,K.jsxs)(XC,{margin:`10px 0`,background:`#bfbfbf`,color:`#333`,border:`1px solid #9a9a9a`,uiElement:`case-intro`,children:[`In this trainer, you'll have to `,(0,K.jsx)(`b`,{children:`identify the case`}),` of the following words in sentences. Knowing the gender of each word will be very helpful to you!`]})}),(0,K.jsx)(JE,{title:`Nouns You'll Encounter in this Deck`,deck:U.DeckUI.deck,user:U.DeckUI.user,layout:U.DeckUI.layout})]}),(0,K.jsx)(zE,{disabled:!this.props.inView,onClick:()=>U.DeckUI.advanceCard(this.props.card,this.props.cardState,this.props.userCard),shortcut:`1`,submitOnEnter:!0,text:`Start Practice`,margin:`10px 0`})]})}})||Yj,Yhe=(0,Y.CaseIntroCardWrapper)(Jhe);D();var Xj,Zj;function Xhe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Zhe={deck_summary:pce,trivia:$le,"trivia-intro":Ice,"case-intro":Yhe,"trivia-results":ole,gender:gfe,"gender-results":eD,"plural-results":eD,"synonym-results":eD,"conjugation-results":eD,"conjugation-table":vhe,plural:bfe,synonym:wfe,number_options:Mhe,number_translate:pj,"number-results":eD,"case-multiple-choice":Ihe,"case-fill-in-the-blanks":Hhe,"case-results":eD,exercise:$pe,deck_grammar:Xme,vocab_word_comprehend:cj,sound_comprehend:cj,vocab_word_o
5848ptions:uj,vocab_word_translate:pj,vocab_sentence_comprehend:wme,vocab_sentence_translate:IO,record_description:Bme,record_answer:Wme,conjugation:ek,"conjugation-multiple-choice":ek,"conjugation-fill-in-blanks":ek,checkpoint_card:yue,translate:Mme,interjection:lhe,comprehend:fhe,user_submission:tme,minimal_pair:Rj,sound_minimal_pair:Rj,word_pronounce:Bj,sound_pronounce:Bj,sentence_pronounce:The},Qhe=N.div` 5849 top: ${U.DeckUI.layout.deckHeaderHeight}; 5850 z-index: 1; 5851 position: absolute; 5852 display: flex; 5853 flex-direction: column; 5854 align-items: center; 5855 justify-content: center; 5856 width: 100%; 5857`,$he=390,ege=30,tge=j(Xj=(Zj=class extends V.Component{constructor(...e){super(...e),this.translateX=e=>U.DeckUI.layout.deckWidth*e}get x(){return this.props.animateCard?(0,Rv.spring)(this.translateX(this.props.position-1),{stiffness:$he,damping:ege}):this.translateX(this.props.position)}render(){let e=this.props.card,t=e&&e.cardType&&e.cardType.slug,n=t&&Zhe[t];return(0,K.jsx)(Rv.Motion,{style:{x:this.x},children:({x:t})=>(0,K.jsx)(Qhe,{style:{WebkitTransform:`translate3d(${t}px, 0px, 0)`,transform:`translate3d(${t}px, 0px, 0)`,visibility:!U.DeckUI.user.displayDeckDebugInfo&&t===this.translateX(1)?`hidden`:`visible`},children:(0,K.jsx)(Y.DeckCardContext.Provider,{value:{inView:this.props.position===0&&!this.props.animateCard},children:n?V.createElement(n,{card:e,userCard:this.props.userCard,cardState:this.props.cardState,animating:this.animating,inView:this.props.position===0,triadWordId:this.props.tri
5857adWordId,fromGrammarSection:this.props.fromGrammarSection}):null})})})}},Xhe(Zj.prototype,`x`,[E],Object.getOwnPropertyDescriptor(Zj.prototype,`x`),Zj.prototype),Zj))||Xj;D();var Qj,$j,eM;function nge(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function rge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ige=N.div` 5858 position: absolute; 5859 z-index: 33; 5860 background: white; 5861 top: 80px; 5862 left: 10px; 5863 font-size: 12px; 5864 padding: 10px; 5865 text-align: left; 5866 margin: 0 auto; 5867 right: 10px; 5868 overflow: auto; 5869 width: ${e=>e.width}; 5870 border: 5px solid #CCC; 5871`,age=N.div` 5872 margin: 5px 0; 5873`,oge=N.div` 5874 display: ${e=>e.display}; 5875 margin-top: 20px; 5876 flex-direction: column; 5877`,sge=N.div` 5878 cursor: pointer; 5879 background: #CCC; 5880 padding: 5px; 5881 text-align: center; 5882 font-weight: bold; 5883`,cge=N.div` 5884 position: absolute; 5885 top: 50px; 5886 right: 10px; 5887 svg { 5888 width: 24px; 5889 fill: #797979; 5890 } 5891`,lge=M(j(Qj=($j=class extends V.Component{constructor(...e){super(...e),nge(this,`expandDeckInfo`,eM,this),this.toggleExpandDeckInfo=()=>{this.expandDeckInfo=!this.expandDeckInfo,U.AppUI.setCookieValue(`expand-deck-info`,this.expandDeckInfo)},this.onCloseDebugInfo=()=>{U.AppUI.authUserStore.update({data:{displayDeckDebugInfo:!1}},G.noop),U.AppUI.user.set(`displayDeckDebugInfo`,!1)}}render(){return(0,K.jsxs)(ige,{width:this.expandDeckInfo?`calc(100% - 20px)`:`120px`,children:[this.expandDeckInfo&&(0,K.jsx)(cge,{children:(0,K.jsx)(J.CloseIcon,{onClick:this.onCloseDebugInfo})}),(0,K.jsx)(sge,{onClick:this.toggleExpandDeckInfo,children:`Debug Info`}),(0,K.jsxs)(oge,{display:this.expandDeckInfo?`flex`:`none`,children:[(0,K.jsx)(`h3`,{children:`Deck Info`}),(0,K.jsx)(`div`,{children:(0,G.keys)(U.DeckUI.debugInfo.deckInfo).map(e=>(0,K.jsxs)(`div`,{children:[e,`: `,U.DeckUI.debugInfo.deckInfo[e]]},e))}),(0,K.jsx)(`h3`,{children:`Animation Cards`}),U.DeckUI.debugInfo.animationCards.map(e=>(0,K.jsx)(age,{children:(0,G.keys)(e).map(t=>(0,K.jsx)(`div`,{children:(0,K.jsxs)(R,{bold:t===`position`,fontSize:`12px`,children:[t,`: `,e[t]]})},t))},`${e.cardId}-${e.position}`)),(0,K.jsx)(`h3`,{children:`User`}),(0,K.jsx)(`div`,{children:(0,G.keys)(U.DeckUI.debugInfo.userInfo).map(e=>(0,K.jsxs)(`div`,{children:[e,`: `,U.DeckUI.debugInfo.userInfo[e]]},e))})]})]})}},eM=rge($j.prototype,`expandDeckInfo`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return U.AppUI.getCookieValue(`expand-deck-info`)}}),$j))||Qj);D();var tM,nM,rM;function uge(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function dge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var fge=N.div` 5892 height: ${e=>e.height}; 5893 margin: ${e=>e.margin}; 5894`,pge=j(tM=(nM=class extends V.Component{constructor(e){super(e),uge(this,`id`,rM,this),this.id=(0,W.createUuid)()}componentDidMount(){(0,W.isPresent)(window?.lottie)&&window.lottie.loadAnimation({container:document.getElementById(this.id),renderer:`svg`,loop:!0,autoplay:!0,path:`/lottie/${this.props.animation}.json`})}render(){return(0,K.jsx)(fge,{height:this.props.height,margin:this.props.margin,id:this.id})}},rM=dge(nM.prototype,`id`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nM))||tM;D();var iM,aM;function mge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hge=N.div` 5895 height: ${e=>e.height}; 5896 width: ${e=>e.width}; 5897 border-radius: ${e=>e.borderRadius}; 5898 text-align: center; 5899 position: relative; 5900 margin: 0 auto; 5901 left: 0; 5902 right: 0; 5903 overflow: ${e=>e.overflow}; 5904 background: #333; 5905`,gge=N.div` 5906 display: flex; 5907 flex-direction: column; 5908 align-items: center; 5909 background: #FFF; 5910 padding: 20px; 5911 width: 350px; 5912 margin: 40px auto; 5913 border-radius: 10px; 5914 font-size: 14px; 5915`,_ge=N.div` 5916 font-size: 20px; 5917 font-weight: bold; 5918 margin-bottom: 10px; 5919 display: flex; 5920 align-items: center; 5921`,vge=N.div` 5922 opacity: 0.8; 5923`,yge=j(iM=(aM=class extends V.Component{constructor(e){super(e),this.gotoPreviousCard=()=>{U.DeckUI.gotoPreviousCard()},zv.default.noConflict()&&(0,zv.default)(`left`,this.gotoPreviousCard)}componentWillUnmount(){zv.default.unbind(`left`)}get showDataSaverModal(){return!U.AppUI.user.hideDataSaverModal&&!U.DeckUI.dataSaverModalSeen&&U.AppUI.usingDataSaverHeader}render(){return(0,K.jsxs)(hge,{height:U.DeckUI.layout.loaded&&(0,W.pixify)(U.DeckUI.layout.deckHeight),width:(0,W.pixify)(U.DeckUI.layout.deckWidth),borderRadius:U.DeckUI.layout.isMobile?0:`20px`,overflow:U.DeckUI.user.displayDeckDebugInfo?null:`hidden`,children:[U.DeckUI.currentSentence?.state?.selectedWordAssociationId&&(0,K.jsx)(Ki,{card:U.DeckUI.currentCard,cardState:U.DeckUI.currentCardState,sentence:U.DeckUI.currentSentence,word:U.DeckUI.currentSentence?.selectedWord,wordAssociation:U.DeckUI.currentSentence?.state?.selectedWordAssociation,user:U.AppUI.user,wordSentences:U.DeckUI.wordSentences}),U.DeckUI.cardNotice&&(0,K.jsx)(OT,{...U.DeckUI.cardNotice}),this.showDataSaverModal&&(0,K.jsxs)(Kw,{scale:1,onClose:()=>U.DeckUI.set(`dataSaverModalSeen`,!0),children:[(0,K.jsxs)(`h3`,{children:[(0,K.jsx)(Nn,{}),`You have "Data Saver" turned on.`]}),(0,K.jsx)(`div`,{children:`This will prevent Seedlang from autoplaying videos. You can turn Data Saver off within Chrome by going to top right menu and clicking "Settings".`}),(0,K.jsx)(`p`,{children:`You can also continue, but be aware that you will have to click on videos to play them.`}),(0,K.jsx)(`button`,{type:`button`,style:{cursor:`pointer`,marginBottom:10,textDecoration:`underline`,background:`none`,border:`none`,padding:0},onClick:()=>U.AppUI.authUserStore.update({data:{hide_data_saver_modal:!0}}),children:`Don't show this message again`}
5923),(0,K.jsx)(Pn,{background:`#FFF`,selectedBackground:q.Theme.blue,onClick:()=>U.DeckUI.set(`dataSaverModalSeen`,!0),children:`Continue`})]}),U.DeckUI.showCloseModal&&(0,K.jsx)(Dn,{animate:!0,modalBackground:`rgba(0, 0, 0, 0.7)`,onCloseModal:()=>U.DeckUI.showCloseModal=!1,hideCloseIcon:!0,width:`310px`,children:(0,K.jsx)(eT,{treeNodeId:this.props.treeNodeId,triadWordId:this.props.triadWordId,fromGrammarSection:this.props.fromGrammarSection})}),!U.DeckUI.layout.isMobile&&(0,K.jsx)(vV,{}),(0,K.jsx)(Hw,{treeNodeId:this.props.treeNodeId}),U.DeckUI.animationCards.filter(e=>e.position>=0).map(e=>(0,K.jsx)(tge,{triadWordId:this.props.triadWordId,fromGrammarSection:this.props.fromGrammarSection,...e},e.id)),U.DeckUI.showLoadingIcon&&(0,K.jsx)(vge,{children:(0,K.jsx)(pge,{animation:`seedlang-logo-draw`,width:`200px`,height:`200px`})}),U.DeckUI.user.displayDeckDebugInfo&&(0,K.jsx)(lge,{}),!U.DeckUI.hasDeck&&U.DeckUI.showSlowDeckLoadingWarning&&(0,K.jsxs)(gge,{children:[(0,K.jsxs)(_ge,{children:[(0,K.jsx)(`span`,{role:`img`,"aria-label":`turtle`,children:`ð¢`}),`\xA0Slow Deck Warning `]}),`We are sorry that this deck is taking so long to load. We may be experiencing network issues.`,(0,K.jsx)(F,{to:`reviews.home`,children:(0,K.jsx)(I,{margin:`20px 0 0 0`,children:`Back to Home Page`})})]}),(0,K.jsx)(_T,{position:`absolute`,bottom:`130px`,namespace:U.DeckUI.userDeck.id})]})}},mge(aM.prototype,`showDataSaverModal`,[E],Object.getOwnPropertyDescriptor(aM.prototype,`showDataSaverModal`),aM.prototype),aM))||iM,bge=(0,Y.DeckWrapper)(yge);D();var oM,sM,cM;function xge(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Sge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Cge=N.div` 5924 position: relative; 5925 background: rgba(7,49,78,1); 5926 margin: ${e=>e.mobileLayout?null:`10px 0 0 0`}; 5927`,lM=N.div` 5928 position: absolute; 5929 left: ${e=>e.left}; 5930 right: ${e=>e.right}; 5931 top: 20px; 5932 color: #ffff008a; 5933 font-size: 30px; 5934 cursor: pointer; 5935`,uM=pf(j(oM=(sM=class extends V.Component{constructor(e){super(e),xge(this,`deckPercentage`,cM,this),this.afterLoadDeck=()=>{},U.DeckUI.loadDeck({cardId:this.props.location.query.cardId,id:this.props.params.deckId,treeNodeId:this.props.params.treeNodeId,userDeckId:this.props.params.userDeckId,opponentId:this.props.params.opponentId,callback:this.afterLoadDeck})}componentWillUnmount(){U.DeckUI.cancelDeckLoad(),U.DeckUI.disposeDeckResources(),U.DeckUI.deckStore.clearShowData()}render(){return(0,K.jsxs)(Cge,{mobileLayout:U.DeckUI.layout.isMobile,children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(Cd,{background:U.DeckUI.isLastCard?`#171004`:`#032033`,percentageComplete:U.DeckUI.userDeck&&U.DeckUI.userDeck.deckPercentage,bigStars:U.DeckUI.currentCard&&(U.DeckUI.currentCard.isLastCard||U.DeckUI.currentCard.checkpointCard)})}),U.DeckUI.user.admin&&(0,K.jsx)(lM,{onClick:()=>U.DeckUI.skipAnimationGotoLastCard(),left:`10px`,right:`auto`,children:(0,K.jsx)(`i`,{className:`fa fa-angle-left`})}),U.DeckUI.user.admin&&(0,K.jsx)(lM,{onClick:()=>U.DeckUI.skipAnimationNextCard(),right:`10px`,left:`auto`,children:(0,K.jsx)(`i`,{className:`fa fa-angle-right`})}),U.AppUI.userIsLoaded&&(0,K.jsx)(bge,{treeNodeId:this.props.params.treeNodeId,deckId:this.props.params.deckId,triadWordId:this.props.params.wordId,fromGrammarSection:U.AppUI.routeStore.routeName?.startsWith(`grammar`)})]})}},cM=Sge(sM.prototype,`deckPercentage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sM))||oM),dM,fM,wge=N.div` 5936 5937`,Tge=N.div` 5938 ${(0,X.flexCenter)()} 5939 margin: 5px 0; 5940`,Ege=N.div` 5941 margin-left: 10px; 5942 text-align: left; 5943 flex: 1; 5944`,Dge=j(dM=(fM=class extends V.Component{constructor(e){super(e),this.props.store&&!this.props.skipLoad&&this.props.store.getIndex({ids:this.props.ids})}componentDidUpdate(e){e.store!==this.props.store&&!this.props.skipLoad&&this.props.store.getIndex({ids:this.props.ids})}onClick(e){this.props.onClick?this.props.onClick(e):this.props.clickToProfile&&H.RouteStore.routeToNamed(`profiles.show`,{userId:e.id})}render(){return(0,K.jsxs)(wge,{children:[(this.props.users||this.props.store.indexData).map(e=>(0,K.jsxs)(Tge,{onClick:()=>this.onClick(e),children:[(0,K.jsx)(Mg,{clickToProfile:!0,width:this.props.userImageWidth,user:e}),(0,K.jsx)(Ege,{children:e.name||e.email})]},e.id)),this.props.store&&(0,K.jsx)(In,{store:this.props.store,ids:this.props.ids})]})}},fM.defaultProps={userImageWidth:60},fM))||dM;D();var pM,mM,hM;function Oge(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function kge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Age=N.div` 5945 border-bottom: 1px solid #d6d6d6; 5946 padding: 20px; 5947 cursor: pointer; 5948`,jge=N.div` 5949 background: white; 5950 line-height: 22px; 5951 font-size: 16px; 5952 padding: 5px; 5953 text-align: left; 5954 margin-top: 10px; 5955`,Mge=N.div` 5956 text-align: left; 5957 line-height: 22px; 5958`,Nge=N.div` 5959 width: 100%; 5960 margin-top: 10px; 5961`,Pge=j(pM=(mM=class extends V.Component{constructor(...e){super(...e),Oge(this,`showAnswer`,hM,this)}render(){return(0,K.jsxs)(Age,{onClick:()=>this.showAnswer=!0,children:[(0,K.jsx)(Mge,{children:this.props.question}),this.showAnswer&&(0,K.jsxs)(jge,{children:[this.props.answer,this.props.url&&(0,K.jsx)(Nge,{children:(0,K.jsx)(`a`,{href:this.props.url,children:(0,K.jsx)(I,{children:this.props.buttonText})})})]})]})}},hM=kge(mM.prototype,`showAnswer`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mM))||pM,gM,Fge=N.div` 5962 h3 { 5963 text-align: left; 5964 margin-left: 10px; 5965 } 5966`,Ige=j(gM=class extends V.Component{render(){return(0,K.jsxs)(Fge,{children:[(0,K.jsx)(`h3`,{children:`FAQ`}),this.props.questions.map((e,t)=>(0,K.jsx)(Pge,{...e},t))]})}})||gM,_M=(0,Y.FaqWrapper)(Ige),vM=(0,V.createContext)(!1),yM=N.h3` 5967 margin: 0; 5968 padding: 0 0 ${e=>e.contentGap??30}px; 5969 color: #333; 5970 font-size: 22px; 5971 line-height: 28px; 5972 font-weight: bold; 5973`;D(),w();var bM,xM,SM,CM,wM,TM,EM;function DM(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function OM(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Lge=N.div` 5974 .spinner > div { 5975 background-color: ${q.Theme.blue}; 5976 } 5977`,Rge=N.div` 5978 display: flex; 5979 flex-direction: row; 5980 margin: 10px 0 0 0; 5981`,zge=N.div` 5982 select { 5983 font-size: 16px; 5984 } 5985`,Bge=N.div` 5986 margin-bottom: 10px; 5987`,kM=j(bM=(xM=class extends V.Component{constructor(e){super(e),DM(this,`message`,SM,this),DM(this,`email`,CM,this),DM(this,`submitting`,wM,this),DM(this,`showMessage`,TM,this),DM(this,`contactCategoryId`,EM,this),this.onSubmit=()=>{this.submitting=!0,U.AppUI.contactMessageStore.create({data:{siteId:U.Ap
5987pUI.user?.site?.id,message:this.message,email:this.email,webVersion:U.AppUI.user?.site?.currentWebVersion,contactCategoryId:this.contactCategoryId===`other`?U.AppUI.user?.site?.supportEmailAddress:this.contactCategoryId}},this.afterSubmitMessage)},this.afterSubmitMessage=()=>{this.message=``,this.email=``,this.contactCategoryId=null,_(this.selectRef.current)&&(this.selectRef.current.value=``),this.submitting=!1,this.showMessage=!0},this.onReset=()=>{this.message=``,this.email=``,this.contactCategoryId=null,_(this.selectRef.current)&&(this.selectRef.current.value=``),this.submitting=!1,this.showMessage=!1},this.onSelectContactCategoryId=()=>{this.contactCategoryId=this.selectRef.current.value},this.selectRef=V.createRef(),U.AppUI.contactCategoryStore.getIndex()}get disabled(){return U.AppUI.userIsSignedIn?!U.AppUI.siteIsDefault&&U.AppUI.contactCategoryStore.indexData?.length>0?(0,W.isBlank)(this.message)||!this.contactCategoryId:(0,W.isBlank)(this.message):!(0,W.isValidEmail)(this.email)||(0,W.isBlank)(this.message)}get selectedContactCategory(){return U.AppUI.contactCategoryStore.hasIndexData&&U.AppUI.contactCategoryStore.indexData.find(e=>e.id===this.contactCategoryId)}render(){return(0,K.jsxs)(Lge,{children:[U.AppUI.contactMessageStore.hasOutstandingRequests&&(0,K.jsx)(P,{}),this.showMessage&&(0,K.jsx)(B,{textAlign:`center`,margin:`20px 0 0 0`,background:q.Theme.green,children:`Your message was successfully sent.`}),!U.AppUI.userIsSignedIn&&(0,K.jsx)(R,{padding:`10px 0`,textAlign:`left`,bold:!0,children:`Email`}),!U.AppUI.userIsSignedIn&&(0,K.jsx)(Ii,{value:this.email,onChange:e=>this.email=e}),!U.AppUI.siteIsDefault&&U.AppUI.contactCategoryStore.indexData?.length>0&&(0,K.jsxs)(zge,{children:[(0,K.jsx)(R,{padding:`10px 0`,textAlign:`left`,bold:!0,children:`What can we help you with?`}),(0,K.jsxs)(`select`,{ref:this.selectRef,onChange:this.onSelectContactCategoryId,defaultValue:``,children:[(0,K.jsx)(`option`,{value:``,disabled:!0,selected:!0,children:`Select a category`}),U.AppUI.contactCategoryStore.indexData.map(e=>(0,K.jsx)(`option`,{value:e.id,children:e.name},e.id)),(0,K.jsx)(`option`,{value:`other`,children:`Other`})]})]}),!U.AppUI.siteIsDefault&&this.selectedContactCategory?.email?.endsWith(`seedlang.com`)&&(0,K.jsx)(B,{margin:`10px 0 0 0`,background:U.AppUI.site.accentColor,children:`This message will be sent to the team of our learning platform, Seedlang.`}),(0,K.jsx)(R,{padding:`10px 0`,textAlign:`left`,bold:!0,children:`Message`}),(0,K.jsx)(Bge,{children:(0,K.jsx)(Ii,{value:this.message,inputType:`textarea`,onChange:e=>this.message=e,height:`140px`,expandedHeight:`140px`})}),(0,K.jsxs)(Rge,{children:[(0,K.jsx)(I,{background:q.Theme.green,color:`#FFF`,width:130,disabled:this.disabled,onClick:this.onSubmit,margin:`0 10px 0 0`,children:`Send`}),(0,K.jsx)(I,{background:q.Theme.red,color:`#FFF`,text:`Reset`,width:130,marginLeft:10,disabled:this.disabled,onClick:this.onReset,children:`Reset`})]})]})}},SM=OM(xM.prototype,`message`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),CM=OM(xM.prototype,`email`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),wM=OM(xM.prototype,`submitting`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),TM=OM(xM.prototype,`showMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),EM=OM(xM.prototype,`contactCategoryId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),OM(xM.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(xM.prototype,`disabled`),xM.prototype),OM(xM.prototype,`selectedContactCategory`,[E],Object.getOwnPropertyDescriptor(xM.prototype,`selectedContactCategory`),xM.prototype),xM))||bM;D();var AM,jM,MM;function Vge(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Hge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Uge=N.div` 5988 ${(0,X.flexCenter)()} 5989 text-transform: uppercase; 5990`,Wge=N.div` 5991 text-decoration: ${e=>e.textDecoration}; 5992 padding: ${e=>e.padding}; 5993 cursor: ${e=>e.cursor}; 5994 font-size: 14px; 5995 font-weight: bold; 5996 color: #333; 5997`,Gge=M(j(AM=(jM=class extends V.Component{constructor(...e){super(...e),Vge(this,`page`,MM,this)}get routeName(){return Array.isArray(this.props.item)?this.props.item[0]:this.props.item.route}get label(){return Array.isArray(this.props.item)?this.props.item[1]:this.props.item.name}
5997get routeParams(){let e=Array.isArray(this.props.item)?{}:this.props.item.params||{};return this.props.lookupPage?Object.assign({},e,(0,W.isBlank)(this.page)?{page:1}:{page:this.page}):e}componentDidMount(){if(this.props.lookupPage){let e=window.location.href.split(`page/`)[1];this.page=e}}render(){return(0,K.jsxs)(V.Fragment,{children:[(0,K.jsx)(`i`,{className:`fa fa-angle-right`}),(0,K.jsx)(Uge,{children:(0,K.jsx)(F,{to:{name:this.routeName,params:this.routeParams},children:(0,K.jsx)(Wge,{textDecoration:`underline`,padding:`0 5px`,children:this.label})})})]})}},MM=Hge(jM.prototype,`page`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jM))||AM);D(),me();var NM,PM,FM;function Kge(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var qge=N.div` 5998 ${(0,X.flexCenter)()} 5999 margin: ${e=>e.margin}; 6000 background: white; 6001 border-radius: ${e=>e.borderRadius}; 6002 overflow: hidden; 6003 height: 40px; 6004 border-bottom: 1px solid #c5c5c5; 6005`,IM=N.div` 6006 text-decoration: ${e=>e.textDecoration}; 6007 padding: ${e=>e.padding}; 6008 cursor: ${e=>e.cursor}; 6009 font-size: 14px; 6010 font-weight: bold; 6011 color: #333; 6012 text-transform: uppercase; 6013`,Jge=N.div` 6014 flex: 1; 6015`,Yge=N.div` 6016 display: flex; 6017`,Xge=N.div` 6018 ${(0,X.flexCenter)()} 6019 width: 50px; 6020 height: 40px; 6021 border-left: 1px solid #CCC; 6022 cursor: pointer; 6023 background: ${e=>e.selected?`whitesmoke`:`#FFF`}; 6024 &:hover { 6025 background: whitesmoke; 6026 } 6027 svg { 6028 width: 20px; 6029 } 6030`,Zge=N.div` 6031 ${(0,X.flexCenter)()} 6032 text-transform: uppercase; 6033`,Qge=N.div` 6034 padding-left: 5px; 6035 ${(0,X.flexCenter)()} 6036 i { 6037 font-size: 20px; 6038 color: #333; 6039 } 6040`,LM=M(j(NM=(PM=(FM=class extends V.Component{get pageInfo(){return this.props.pageInfo?.find(e=>e.route===U.AppUI.routeStore.routeName)}routeIsSelected(e){return(e.highlightRoutes||[]).concat([e.iconRoute]).includes(U.AppUI.routeStore.routeName)}render(){return this.context?(0,K.jsxs)(yM,{contentGap:this.props.contentGap,children:[this.props.beforeTitle,this.props.title]}):(0,K.jsxs)(qge,{margin:U.AppUI.layout.isMobile?`0`:this.props.margin||`0 0 10px 0`,borderRadius:U.AppUI.layout.isMobile?`0`:`5px`,children:[(0,K.jsxs)(Qge,{children:[this.props.beforeTitle,(0,K.jsx)(F,{to:{name:this.props.titleRoute,params:this.props.titleParams},children:(0,K.jsx)(IM,{textDecoration:U.AppUI.routeStore.routeName&&U.AppUI.routeStore.routeName!==this.props.titleRoute&&U.AppUI.routeStore.routeName!==this.props.homeRoute?`underline`:null,padding:`0 5px`,children:this.props.title})}),this.pageInfo&&this.pageInfo.breadcrumbs&&this.pageInfo.breadcrumbs.map(e=>(0,K.jsx)(Gge,{item:e,lookupPage:this.props.lookupPage},[e.routeToName,e.name].filter(e=>e).join(`-`))),this.pageInfo&&this.pageInfo.current&&(0,K.jsx)(`i`,{className:`fa fa-angle-right`}),this.pageInfo&&this.pageInfo.current&&(0,K.jsx)(Zge,{children:(0,K.jsx)(IM,{padding:`0 5px`,children:this.pageInfo.current})})]}),(0,K.jsx)(Jge,{}),this.props.icons&&(0,K.jsx)(Yge,{children:this.props.icons.filter(e=>!e.hide).map(e=>(0,K.jsxs)(F,{to:{name:e.iconRoute,params:e.iconParams},"data-tip":!0,"data-for":e.iconRoute,children:[(0,K.jsx)(Xge,{selected:this.routeIsSelected(e),children:e.icon}),(0,K.jsx)(Xl,{children:(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:e.iconRoute,class:`custom-tooltip`,children:e.tooltipText})})]},e.iconRoute))})]})}},FM.contextType=vM,FM),Kge(PM.prototype,`pageInfo`,[E],Object.getOwnPropertyDescriptor(PM.prototype,`pageInfo`),PM.prototype),PM))||NM),RM,zM,$ge=N.div` 6041 width: 100%; 6042`,e_e=N.div` 6043 width: 100%; 6044 padding: ${e=>e.embedded?0:`10px 0 0 0`}; 6045`,t_e=N.div` 6046 background: white; 6047 border: ${e=>e.embedded||e.isMobile?0:`1px solid #dedede`}; 6048 border-radius: ${e=>e.embedded||e.isMobile?0:`12px`}; 6049 padding: ${e=>e.embedded?0:`24px`}; 6050`,n_e=N.h3` 6051 margin: 0 0 10px 0; 6052`,r_e=N.p` 6053 margin: 0; 6054 font-size: 16px;
6055 line-height: 26px; 6056`,i_e=N.div` 6057 text-decoration: underline; 6058 margin-top: 12px; 6059`,BM=M(j(RM=(zM=class extends V.Component{render(){return(0,K.jsxs)($ge,{children:[!U.AppUI.layout.isMobile&&(0,K.jsx)(LM,{title:`Contact Us`,titleRoute:`contact`,margin:`0`}),(0,K.jsx)(e_e,{embedded:this.context,children:(0,K.jsxs)(t_e,{embedded:this.context,isMobile:U.AppUI.layout.isMobile,children:[(0,K.jsx)(n_e,{children:`We would love to hear from you.`}),(0,K.jsx)(r_e,{children:`Whether it's a question or feedback, leave a message and we will get back to you as soon as we can.`}),(0,K.jsx)(F,{to:`help_center`,children:(0,K.jsx)(i_e,{children:`You can also view our Help Center.`})}),(0,K.jsx)(kM,{...this.props})]})})]})}},zM.contextType=vM,zM))||RM),VM,HM,a_e=N.div` 6060 width: 100%; 6061 padding: ${e=>e.embedded?0:`10px 0 0 0`}; 6062 li { 6063 list-style-type: circle; 6064 margin: 0 0 0 50px; 6065 } 6066`,o_e=N.div` 6067 width: 100%; 6068 margin-top: ${e=>e.embedded?0:`10px`}; 6069 background: white; 6070 border: ${e=>e.embedded?0:`1px solid #dedede`}; 6071 border-radius: ${e=>e.embedded?0:`12px`}; 6072 padding: ${e=>e.embedded?0:`24px`}; 6073`,UM=j(VM=(HM=class extends V.Component{constructor(e){super(e),U.AppUI.pageStore.getShow({ids:{pageId:`privacy`}})}componentWillUnmount(){U.AppUI.pageStore.clearShowData()}render(){return(0,K.jsxs)(a_e,{embedded:this.context,children:[(0,K.jsx)(LM,{title:`Privacy`,titleRoute:`privacy`,margin:`0`}),U.AppUI.pageStore.hasShowData&&(0,K.jsx)(o_e,{embedded:this.context,children:(0,K.jsx)($i,{markdown:U.AppUI.pageStore.showData.content})})]})}},HM.contextType=vM,HM))||VM,WM,GM,s_e=N.div` 6074 width: 100%; 6075`,c_e=N.div` 6076 width: 100%; 6077 padding: ${e=>e.embedded?0:`10px 0 0 0`}; 6078`,l_e=N.section` 6079 width: 100%; 6080 background: white; 6081 border: ${e=>e.embedded||e.isMobile?0:`1px solid #dedede`}; 6082 border-radius: ${e=>e.embedded||e.isMobile?0:`12px`}; 6083 padding: ${e=>e.embedded?`24px 0`:`24px`}; 6084 &:first-child { 6085 padding-top: ${e=>e.embedded?0:`24px`}; 6086 } 6087 margin: 0 0 10px 0; 6088 display: flex; 6089 gap: 24px; 6090 align-items: flex-start; 6091 flex-direction: ${e=>e.direction}; 6092 box-sizing: ${e=>e.isMobile?`border-box`:null}; 6093`,u_e=N.div` 6094 width: ${e=>e.width}; 6095 min-width: ${e=>e.width}; 6096`,d_e=N.div` 6097 flex: 1; 6098`,f_e=N.div` 6099 width: 100%; 6100 aspect-ratio: 1 / 1; 6101 background: #fff; 6102 border: 1px solid #e8e8e8; 6103 border-radius: 12px; 6104 padding: 14px; 6105 display: flex; 6106 align-items: center; 6107 justify-content: center; 6108 img { 6109 width: 100%; 6110 height: auto; 6111 max-height: 100%; 6112 object-fit: contain; 6113 border-radius: 8px; 6114 } 6115`,p_e=N.div` 6116 margin: 12px 0 0 0; 6117 font-size: 18px; 6118 line-height: 28px; 6119 color: #2f2f2f; 6120`,m_e=N.div` 6121 display: flex; 6122 flex-wrap: wrap; 6123 gap: 10px; 6124 margin: 18px 0 0 0; 6125`,h_e=j(WM=(GM=class extends V.Component{render(){return(0,K.jsxs)(s_e,{children:[!U.AppUI.layout.isMobile&&(0,K.jsx)(LM,{title:`Our Partners`,titleRoute:`partners`,margin:`0`}),(0,K.jsx)(c_e,{embedded:this.context,children:this.props.partners.map(e=>(0,K.jsxs)(l_e,{embedded:this.context,direction:U.AppUI.layout.isMobile?`column`:`row`,isMobile:U.AppUI.layout.isMobile,children:[(0,K.jsx)(u_e,{width:U.AppUI.layout.isMobile?`100%`:`180px`,children:(0,K.jsx)(f_e,{children:(0,K.jsx)(`img`,{src:`/images/${e.imageUrl}`,alt:``})})}),(0,K.jsxs)(d_e,{children:[(0,K.jsx)(R,{heading:`3`,margin:`0`,children:e.name}),(0,K.jsx)(p_e,{children:e.text}),(0,K.jsx)(m_e,{children:e.buttons.map(e=>(0,K.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,children:(0,K.jsx)(I,{height:`42px`,fontSize:`15px`,padding:`0 18px`,children:e.text},e.url)}))})]})]},e.name))})]})}},GM.contextType=vM,GM))||WM,KM=(0,Y.PartnersWrapper)(h_e),g_e=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=n(r());function n(e){return e&&e.__esModule?e:{default:e}}e.default=function(){return t.default.createElement(`svg`,{width:`14`,height:`11`,viewBox:`0 0 14 11`},t.default.createElement(`path`,{d:`M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0`,fill:`#fff`,fillRule:`evenodd`}))}})),v_e=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=n(r());
6125function n(e){return e&&e.__esModule?e:{default:e}}e.default=function(){return t.default.createElement(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`},t.default.createElement(`path`,{d:`M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12`,fill:`#fff`,fillRule:`evenodd`}))}})),y_e=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pointerCoord=t;function t(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var r=e.pageX;if(r!==void 0)return{x:r,y:e.pageY}}return{x:0,y:0}}})),qM=e(n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(),a=d(i),o=d(pe()),s=d(fe()),c=d(g_e()),l=d(v_e()),u=y_e();function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function p(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function m(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function h(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){h(r,e);function r(e){p(this,r);var t=m(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.handleClick=t.handleClick.bind(t),t.handleTouchStart=t.handleTouchStart.bind(t),t.handleTouchMove=t.handleTouchMove.bind(t),t.handleTouchEnd=t.handleTouchEnd.bind(t),t.handleFocus=t.handleFocus.bind(t),t.handleBlur=t.handleBlur.bind(t),t.previouslyChecked=!!(e.checked||e.defaultChecked),t.state={checked:!!(e.checked||e.defaultChecked),hasFocus:!1},t}return n(r,[{key:`componentDidUpdate`,value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:`handleClick`,value:function(e){if(!this.props.disabled){var t=this.input;if(e.target!==t&&!this.moved){this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),t.click();return}var n=this.props.hasOwnProperty(`checked`)?this.props.checked:t.checked;this.setState({checked:n})}}},{key:`handleTouchStart`,value:function(e){this.props.disabled||(this.startX=(0,u.pointerCoord)(e).x,this.activated=!0)}},{key:`handleTouchMove`,value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,u.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:`handleTouchEnd`,value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,u.pointerCoord)(e).x;this.previouslyChecked===!0&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:`handleFocus`,value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:`handleBlur`,value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:`getIcon`,value:function(e){var t=this.props.icons;return t?t[e]===void 0?r.defaultProps.icons[e]:t[e]:null}},{key:`render`,value:function(){var e=this,n=this.props,r=n.className;n.icons;var i=f(n,[`className`,`icons`]),s=(0,o.default)(`react-toggle`,{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},r);return a.default.createElement(`div`,{className:s,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},a.default.createElement(`div`,{className:`react-toggle-track`},a.default.createElement(`div`,{className:`react-toggle-track-check`},this.getIcon(`checked`)),a.default.createElement(`div`,{className:`react-toggle-track-x`},this.getIcon(`unchecked`))),a.default.createElement(`div`,{className:`react-toggle-thumb`}),a.default.createElement(`input`,t({},i,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:`react-toggle-screenreader-only`,type:`checkbox`})))}}]),r}(i.PureComponent);e.default=g,g.displayName=`Toggle`,g.defaultProps={icons:{checked:a.default.createElement(c.default,null),unchecked:a.default.createElement(l.default,null)}}
6125,g.propTypes={checked:s.default.bool,disabled:s.default.bool,defaultChecked:s.default.bool,onChange:s.default.func,onFocus:s.default.func,onBlur:s.default.func,className:s.default.string,name:s.default.string,value:s.default.string,id:s.default.string,"aria-labelledby":s.default.string,"aria-label":s.default.string,icons:s.default.oneOfType([s.default.bool,s.default.shape({checked:s.default.node,unchecked:s.default.node})])}}))()),JM,YM,b_e=N.div` 6126 display: inline-flex; 6127 align-items: center; 6128 justify-content: center; 6129 margin-bottom: 10px; 6130 font-size: 14px; 6131 margin: ${e=>e.margin}; 6132 .react-toggle { 6133 margin: 0 5px; 6134 pointer-events: none; 6135 } 6136 .react-toggle-track { 6137 background: #b7b7b7; 6138 } 6139 .react-toggle--checked .react-toggle-track{ 6140 background: ${e=>e.highlightColor}; 6141 } 6142`,XM=N.div` 6143 cursor: pointer; 6144 font-weight: ${e=>e.selected?`bold`:`default`}; 6145`,x_e=N.div` 6146 cursor: pointer; 6147`,ZM=M(j(JM=(YM=class extends V.Component{render(){return(0,K.jsxs)(b_e,{margin:this.props.margin,highlightColor:this.props.highlightColor,children:[(0,K.jsx)(XM,{onClick:this.props.onDeselect,selected:!this.props.selected,children:this.props.labels&&this.props.labels[0]}),(0,K.jsx)(x_e,{onClick:this.props.onToggle,children:(0,K.jsx)(qM.default,{checked:this.props.selected,icons:!1,onChange:G.noop})}),(0,K.jsx)(XM,{onClick:this.props.onSelect,selected:this.props.selected,children:this.props.labels&&this.props.labels[1]})]})}},YM.defaultProps={margin:`0 10px 0 0`,highlightColor:q.Theme.green},YM))||JM);D();var QM,$M,eN,tN,nN,rN;function iN(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function aN(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var S_e=N.div` 6148 color: ${e=>e.color}; 6149 padding: ${e=>e.padding}; 6150 height: 100%; 6151 text-align: left; 6152 overflow: auto; 6153 select { 6154 color: #333; 6155 } 6156 label { 6157 font-size: 16px; 6158 line-height: 22px; 6159 } 6160 .toggle-true { 6161 .react-toggle-track { 6162 background: ${q.Theme.green}; 6163 } 6164 } 6165 .toggle-false { 6166 .react-toggle-track { 6167 background: #b7b7b7; 6168 } 6169 } 6170 .react-toggle-thumb { 6171 border: none; 6172 } 6173 .toggle-component { 6174 margin-left: 0; 6175 } 6176 .icon-wrapper { 6177 display: inline-block; 6178 margin-right: 10px; 6179 svg { 6180 width: 22px; 6181 fill: #FFF; 6182 } 6183 } 6184 .description { 6185 font-size: 14px; 6186 line-height: 18px; 6187 } 6188`,C_e=N.div` 6189 display: flex; 6190 flex-direction: row; 6191 margin-bottom: 10px; 6192 padding-bottom: 10px; 6193 border-bottom: 1px solid #CCC; 6194`,w_e=N.div` 6195 flex: 1; 6196 justify-content: center; 6197 display: flex; 6198 flex-direction: column; 6199`,T_e=N.div` 6200 6201`,E_e=N.div` 6202 font-size: 12px; 6203 color: #333; 6204 margin-bottom: 10px; 6205 border-bottom: 1px solid #CCC; 6206 width: 100%; 6207 font-weight: bold; 6208 background: #CCC; 6209 padding: 5px; 6210 text-transform: uppercase; 6211 margin-top: ${e=>e.marginTop}; 6212`,oN=N.div` 6213 width: 70px; 6214`,D_e=N.div` 6215 display: flex; 6216 cursor: pointer; 6217`,O_e=j(QM=($M=(rN=class extends V.Component{constructor(...e){super(...e),iN(this,`showUpdateNotice`,eN,this),iN(this,`updatedTextInputs`,tN,this),iN(this,`notUpdatedTextInputs`,nN,this),this.afterUpdate=()=>{U.AppUI.loadUser(this.afterLoadUser,{forceRefresh:!0}),this.showUpdateNotice=!0},this.afterLoadUser=async e=>{U.AppUI.setAuthUserStoreShowData(e),U.AppUI.user.blockMediaAccess&&U.DeckUI.userInputStore&&U.DeckUI.userInputStore.cleanupOffscreen&&await U.DeckUI.userInputStore.cleanupOffscreen(),setTimeout(()=>this.showUpdateNotice=!1,6e3)},this.onToggle=(e,t,n)=>{let r={},i=!U.AppUI.user[e];r[n||e]=i,U.AppUI.user.set(e,i),t&&t(i),U.AppUI.authUserStore.update({data:r},this.afterUpdate)},this.onSelect=(e,t)=>{let n={};n[e]=t,U.AppUI.user.set(e,n[e]),U.AppUI.authUserStore.update({data:n},this.afterUpdate)},this.onNumberInputBlur=(e,t)=>{this.onTextInputBlur(e,t,{rejectNull:!0})},this.onTextInputBlur=(e,t,n={rejectNull:!1})=>{let r={};r[t]=e,n.rejectNull&&(0,W.isBlank)(e)?(this.notUpdatedTextInputs[t]=!0,setTimeout(()=>{this.notUpdatedTextInputs[t]=!1},1e3)):(U.AppUI.user.set(t,r[t]),U.AppUI.authUserStore.update({data:r},this.afterUpdate),this.updatedTextInputs[t]=!0,setTimeout(()=>this.updatedTextInputs[t]=!1,5e3))}}render(){return(0,K.jsxs)(S_e,{padding:this.props.padding,background:this.props.background,color:this.props.color,children:[!this.showUpdateNotice&&!this.props.hideTitle&&(0,K.jsx)(R,{heading:`2`,textAlign:`center`,margin:`10px 0 20px 0`,color:this.props.color,children:`Settings`}),this.showUpdateNotice&&(0,K.jsx)(B,{textAlign:`center`,children:`Your settings have changed.`}),(0,K.jsx)(`div`,{className:`fields`,children:this.props.categories.map((e,t)=>e.hide?null:(0,K.jsxs)(T_e,{children:[(0,K.jsx)(E_e,{marginTop:t>0?`30px`:`0px`,color:this.props.titleColor,children:e.title}),e.settings.map(e=>!e.hide&&!e.androidOnly?(0,K.jsxs)(C_e,{children:[(0,K.jsxs)(w_e,{children:[(0,K.jsx)(D_e,{onClick:()=>this.props.showDescription(e.name),children:(0,K.jsx)(R,{color:this.props.color,margin:`0 0 0 5px`,textAlign:`left`,fontSize:`14px`,children:e.label})}),(0,W.isPresent)(e.description)&&this.props.showDescriptions.includes(e.name)&&(0,K.jsx)(R,{color:this.props.color,margin:`5px 5px 0 5px`,fontSize:`13px`,lineHeight:`17px`,italic:!0,children:e.description}),e.alerts&&e.alerts.map(e=>e.show?(0,K.jsxs)(B,{margin:`10px 0 0 0`,children:[(0,K.jsx)(J.AlertIcon,{}),e.message]},e.slug):null)]}),e.type===`select`&&(0,K.jsx)(Fi,{allowUpdate:!0,value:U.AppUI.user[e.
6217name],onChange:t=>this.onSelect(e.name,t),options:e.options}),e.type!==`select`&&e.type!==`number`&&e.type!==`time`&&(0,K.jsx)(ZM,{margin:`0`,selected:e.toggleShowsOppositeValue?!U.AppUI.user[e.name]:U.AppUI.user[e.name],onToggle:()=>this.onToggle(e.name,e.onToggle,e.apiName)}),e.type===`number`&&(0,K.jsxs)(oN,{children:[(0,K.jsx)(Qi,{allowUpdate:!0,show:!0,type:`number`,submitOnEnter:!0,onBlur:this.onNumberInputBlur,onSubmit:this.onNumberInputBlur,defaultValue:U.AppUI.user[e.name],model:`users`,field:e.name,id:U.AppUI.user.id,margin:`10px 0 10px 0`}),this.updatedTextInputs[e.name]&&(0,K.jsx)(B,{fontSize:`10px`,padding:`5px`,children:`Updated!`}),this.notUpdatedTextInputs[e.name]&&(0,K.jsx)(B,{fontSize:`10px`,padding:`5px`,style:{wordWrap:`no-wrap`},children:`Update failed.`})]}),e.type===`time`&&(0,K.jsx)(oN,{children:(0,K.jsx)(Qi,{allowUpdate:!0,show:!0,type:`time`,onBlur:this.onNumberInputBlur,onSubmit:this.onNumberInputBlur,defaultValue:U.AppUI.user[e.name],model:`users`,field:e.name,id:U.AppUI.user.id,timeIntervals:e.timeIntervals,margin:`10px 0 10px 0`})})]},e.name):null)]},e.title))})]})}},rN.defaultProps={padding:`20px`,background:`#545454`,color:`#333`},rN),eN=aN($M.prototype,`showUpdateNotice`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tN=aN($M.prototype,`updatedTextInputs`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),nN=aN($M.prototype,`notUpdatedTextInputs`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),$M))||QM,sN=(0,Y.DeckSettingsWrapper)(O_e),cN,k_e=N.div` 6218 ${(0,X.flexLeftColumn)()} 6219 margin: 0 0 20px 0; 6220 color: white; 6221`,A_e=N.div` 6222 display: flex; 6223 justify-content: center; 6224`,j_e=N.div` 6225 width: 120px; 6226`,M_e=N.div` 6227 flex: 1; 6228`,lN=M(j(cN=class extends V.Component{render(){return(0,K.jsx)(k_e,{children:(0,K.jsxs)(A_e,{children:[(0,K.jsx)(j_e,{children:(0,K.jsx)(R,{color:`#FFF`,bold:!0,children:this.props.abbreviation})}),(0,K.jsxs)(M_e,{children:[(0,K.jsx)(R,{bold:!0,textAlign:`left`,color:`#FFF`,children:this.props.name}),this.props.description&&(0,K.jsx)(R,{textAlign:`left`,color:`#FFF`,margin:`10px 0 0 0`,fontSize:`14px`,children:this.props.description})]})]})})}})||cN),uN,N_e=N.div` 6229 background: #545454; 6230 height: 100%; 6231`,P_e=M(j(uN=class extends V.Component{render(){return(0,K.jsxs)(N_e,{children:[(0,K.jsx)(R,{heading:`2`,textAlign:`center`,padding:`10px 0 20px 0`,color:`#FFF`,children:`Shortcuts`}),(0,K.jsx)(lN,{abbreviation:`[1-4]`,name:`Button Selection`,description:`Clicking a number will select the corresponding button from left to right (or top left to bottom right).`}),(0,K.jsx)(lN,{abbreviation:`[space]`,name:`Play / Pause Video with Audio`}
6231),(0,K.jsx)(lN,{abbreviation:`[a]`,name:`Start / Stop Audio Recording`}),(0,K.jsx)(lN,{abbreviation:`[enter]`,name:`Go to Next Card`,description:`This is activated when a "Next" button has been enabled within a card.`}),(0,K.jsx)(lN,{abbreviation:`[escape]`,name:`Close Overlay`,description:`When an overlay appears, it can be closed with the escape key.`}),(0,K.jsx)(lN,{abbreviation:`[left arrow]`,name:`Go to Previous Card`})]})}})||uN),dN,F_e=N.div` 6232 color: white; 6233 background: #545454; 6234 height: 100%; 6235 margin: 0; 6236 padding: 20px; 6237 h3 { 6238 margin-top: 10px; 6239 color: white; 6240 } 6241 p, ol { 6242 text-align: left; 6243 font-size: 16px; 6244 line-height: 22px; 6245 } 6246`,I_e=j(dN=class extends V.Component{render(){return(0,K.jsxs)(F_e,{children:[(0,K.jsx)(`h3`,{children:`Recording is blocked`}),(0,K.jsx)(`p`,{children:(0,K.jsx)(`b`,{children:`Seedlang is functional without the ability to record audio or video, but it is not the ideal experience.`})}),U.DeckUI.deviceDeniedAccess&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{children:`Your browser is not allowing the recording of audio or video. This may have been an intentional setting since browsers do allow you to block access to your microphone.`}),(0,K.jsx)(`p`,{children:`If it was not intentional, there are a few things you can try to fix this.`}),(0,K.jsxs)(`ol`,{children:[(0,K.jsx)(`li`,{children:`Make sure your browser is not blocking your ability to record. There would be an icon in your address bar indicating that recording is blocked.`}),(0,K.jsx)(`li`,{children:`Try restarting your browser. Make sure to close it completely.`}),(0,K.jsx)(`li`,{children:`Try restarting your device. `})]})]}),!U.DeckUI.layout.ios&&!U.DeckUI.layout.mediaRecorderSupported&&(0,K.jsx)(`p`,{children:`Your browser does not support recording of audio or video. Please use either the Chrome or Firefox browser.`}),U.DeckUI.layout.ios&&(0,K.jsx)(`p`,{children:`We are sorry, but iOS does not currently support recording of audio or video inside of a browser. If you want to try recording audio or video on Seedlang, please use another device or computer.`})]})}})||dN,fN,L_e=N.div` 6247 display: flex; 6248 flex-direction: column; 6249 align-items: flex-start; 6250 padding: 10px; 6251 background: whitesmoke; 6252 margin: 10px 0; 6253`,R_e=N.div` 6254 flex: 1; 6255`,pN=N.div` 6256 flex-direction: row; 6257 display: flex; 6258 align-items: center; 6259 width: 100%; 6260 justify-content: space-between; 6261`,z_e=N.div` 6262 display: flex; 6263 align-items: center; 6264 justify-content: space-between; 6265`,B_e=j(fN=class extends V.Component{render(){return(0,K.jsxs)(L_e,{children:[(0,K.jsxs)(pN,{children:[(0,K.jsxs)(z_e,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:this.props.translationSource?.source?.languageId,margin:`0 10px 0 0`}),(0,K.jsx)(R_e,{children:this.props.sourceText})]}),(0,K.jsx)(ak,{translationSource:this.props.translationSource,word:this.props.word||this.props.sentence,onAfterFlag:this.props.afterSubmission,margin:`0 0 0 auto`})]}),this.props.showMessage&&(0,K.jsx)(pN,{style:{background:`#4CAF50`,color:`#FFF`,padding:`10px`,borderRadius:`5px`,width:`100%`,marginTop:`10px`},children:this.props.successMessage})]})}})||fN,mN=(0,Y.SourceItemWrapper)(B_e),hN,V_e=N.div` 6266 padding: 10px; 6267 background: white; 6268 height: ${e=>e.height}; 6269 overflow: auto; 6270`,H_e=j(hN=class extends V.Component{render(){return(0,K.jsxs)(V_e,{height:(0,W.pixify)(U.DeckUI.layout.overlayHeight),children:[(0,K.jsx)(R,{center:!0,italic:!0,margin:`10px 0 0 0`,children:this.props.showTranslationText?`View Translations for`:`View Translations`}),this.props.showTranslationText&&(0,K.jsx)(R,{heading:`2`,center:!0,margin:`0px 0 20px 0`,children:this.props.translationText}),(0,W.isPresent)(this.props.word)&&this.props.wordSources.map(e=>(0,K.jsx)(mN,{translationSource:e,word:this.props.word,flagTranslation:this.props.flagTranslation},e.id)),(0,W.isPresent)(this.props.sentence)&&this.props.sentenceSources.map(e=>(0,K.jsx)(mN,{translationSource:e,sentence:this.props.sentence,flagTranslation:this.props.flagTranslation},e.id))]})}})||hN,U_e=(0,Y.SourceEditWrapper)(H_e);D();var gN,_N,vN;function W_e(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function G_e(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var K_e=N.div` 6271 6272`,q_e=N.div` 6273 cursor: pointer; 6274 text-decoration: underline; 6275 font-size: 10px; 6276 line-height: 14px; 6277 color: #444; 6278 margin: ${e=>e.margin}; 6279`,J_e=N.div` 6280 font-size: 12px; 6281`,Y_e=M(j(gN=(_N=class extends V.Component{constructor(...e){super(...e),W_e(this,`showModal`,vN,this)}render(){return(0,K.jsxs)(K_e,{children:[this.showModal&&(0,K.jsx)(Dn,{onCloseModal:()=>
6281this.showModal=!1,height:Math.min(U.AppUI.layout.viewportHeight-100,500),width:Math.min(U.AppUI.layout.viewportWidth-40,500),children:(0,K.jsxs)(J_e,{children:[(0,K.jsx)(`h2`,{children:`Markdown Formatting`}),(0,K.jsx)(`div`,{children:`Here are some of our markdown styling options. Copy and paste some of this text into your post to see how it works, and then edit it to make it your own!`}),(0,K.jsx)(`h4`,{children:`Header Text`}),(0,K.jsx)(`div`,{children:`# Header Text (biggest)`}),(0,K.jsx)(`div`,{children:`## Header Text (next biggest)`}),(0,K.jsx)(`div`,{children:`### Header Text (next biggest)`}),(0,K.jsx)(`h4`,{children:`Bolding and Italics`}),(0,K.jsx)(`div`,{children:`Italics with *asterisks* or _underscores_.`}),(0,K.jsx)(`div`,{children:`Bold with **asterisks** or __underscores__.`}),(0,K.jsx)(`div`,{children:`Italics and bold with **_asterisks and underscores_**.`}),(0,K.jsx)(`h4`,{children:`Tables`}),(0,K.jsx)(`div`,{children:(0,K.jsx)(`a`,{className:`underline`,href:`https://www.tablesgenerator.com/markdown_tables`,target:`_blank`,rel:`noopener noreferrer`,children:`Table Code Generator`})}),(0,K.jsx)(`h4`,{children:`Links`}),(0,K.jsx)(`div`,{children:`[I'm a link](https://www.google.com)`}),(0,K.jsx)(`h4`,{children:`Images`}),(0,K.jsx)(`div`,{children:``}),(0,K.jsx)(`h4`,{children:`Horizontal Rules`}),(0,K.jsx)(`div`,{children:`Three or more dashes create a line: ---`})]})}),(0,K.jsx)(q_e,{onClick:()=>this.showModal=!0,margin:this.props.margin,children:`Markdown Formatting`})]})}},vN=G_e(_N.prototype,`showModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_N))||gN),X_e=N.div` 6282 position: fixed; 6283 left: ${e=>e.left}px; 6284 top: ${e=>e.top}px; 6285 transform: translate(-50%, -100%); 6286 z-index: 10000; 6287 display: ${e=>e.visible?`flex`:`none`}; 6288 align-items: center; 6289 background: #111214; 6290 border-radius: 5px; 6291 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); 6292 color: #fff; 6293 padding: 3px; 6294 6295 &:after { 6296 content: ''; 6297 position: absolute; 6298 left: 50%; 6299 bottom: -7.5px; 6300 transform: translateX(-50%); 6301 width: 0; 6302 height: 0; 6303 border-left: 7.5px solid transparent; 6304 border-right: 7.5px solid transparent; 6305 border-top: 7.5px solid #111214; 6306 } 6307`,yN=N.button` 6308 appearance: none; 6309 background: ${e=>e.active?`#3f4248`:`transparent`}; 6310 border: 0; 6311 border-radius: 0; 6312 color: #f2f3f5; 6313 cursor: pointer; 6314 font-size: 15px; 6315 height: 30px; 6316 line-height: 30px; 6317 margin: 0; 6318 padding: 0; 6319 text-align: center; 6320 width: 33px; 6321 6322 &:hover { 6323 background: #2b2d31; 6324 } 6325 6326 .fa { 6327 color: #f2f3f5 !important; 6328 font-size: 15px; 6329 line-height: 30px; 6330 margin: 0 !important; 6331 } 6332`,Z_e=N.div` 6333 background: #2b2d31; 6334 height: 23px; 6335 margin: 0 2px; 6336 width: 1px; 6337`,Q_e=({activeFormats:e,left:t,onFormat:n,onLink:r,onUnlink:i,top:a,visible:o})=>{let s=e||{};return(0,K.jsxs)(X_e,{"data-markdown-selection-toolbar":!0,left:t,top:a,visible:o,onMouseDown:e=>e.preventDefault(),children:[(0,K.jsx)(yN,{active:s.bold,"aria-label":`Bold`,title:`Bold`,type:`button`,onClick:()=>n(`bold`),children:(0,K.jsx)(Mn,{i:`bold`})}),(0,K.jsx)(yN,{active:s.italic,"aria-label":`Italic`,title:`Italic`,type:`button`,onClick:()=>n(`italic`),children:(0,K.jsx)(Mn,{i:`italic`})}),(0,K.jsx)(yN,{active:s.strikethrough,"aria-label":`Strikethrough`,title:`Strikethrough`,type:`button`,onClick:()=>n(`strikethrough`),children:(0,K.jsx)(Mn,{i:`strikethrough`})}),(0,K.jsx)(Z_e,{}),s.link&&(0,K.jsx)(yN,{active:!0,"aria-label":`Unlink`,title:`Unlink`,type:`button`,onClick:i,children:(0,K.jsx)(Mn,{i:`chain-broken`})}),!s.link&&(0,K.jsx)(yN,{"aria-label":`Link`,title:`Link`,type:`button`,onClick:r,children:(0,K.jsx)(Mn,{i:`link`})})]})},bN,$_e=N.div` 6338 display: flex; 6339 flex-direction: column; 6340 gap: 16px; 6341 padding: 10px 10px 14px; 6342`,eve=N.div` 6343 font-size: 16px; 6344 line-height: 1.5; 6345 color: #333; 6346 text-align: center; 6347`,tve=N.div` 6348 display: flex; 6349 gap: 10px; 6350 justify-content: center; 6351`,nve=j(bN=class extends V.Component{render(){return(0,K.jsx)(Dn,{width:U.AppUI.layout.isMobile?`90%`:`440px`,height:`fit-content`,top:`120px`,onCloseModal:this.props.onCancel,t
6351itle:this.props.title,gradient:!0,children:(0,K.jsxs)($_e,{children:[(0,K.jsx)(eve,{children:this.props.message}),(0,K.jsxs)(tve,{children:[(0,K.jsx)(I,{onClick:this.props.onCancel,background:q.Theme.red,children:this.props.cancelText}),(0,K.jsx)(I,{onClick:this.props.onConfirm,background:q.Theme.green,children:this.props.confirmText})]})]})})}})||bN,xN=()=>(0,K.jsxs)(`svg`,{width:17,height:17,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,"aria-hidden":!0,style:{display:`block`},children:[(0,K.jsx)(`rect`,{height:`7.5`,width:`12.5`,y:`5.75`,x:`1.75`}),(0,K.jsx)(`path`,{d:`m10.75 8.75v1.5m-5.5-1.5v1.5m-.5-7.5 3.25 3 3.25-3`})]}),SN={bold:`**`,italic:`_`,strikethrough:`~~`},rve=/^(https?|mailto|tel):/i,ive=`border-bottom-width.border-left-width.border-right-width.border-top-width.box-sizing.direction.font-family.font-size.font-stretch.font-style.font-variant.font-weight.height.letter-spacing.line-height.overflow-wrap.padding-bottom.padding-left.padding-right.padding-top.tab-size.text-align.text-indent.text-transform.white-space.width.word-spacing.word-wrap`.split(`.`),CN=(e,t)=>{let n=window.getComputedStyle(e),r=document.createElement(`div`),i=document.createElement(`span`);ive.forEach(e=>{r.style.setProperty(e,n.getPropertyValue(e))}),r.style.left=`-9999px`,r.style.position=`fixed`,r.style.top=`0`,r.style.visibility=`hidden`,r.style.whiteSpace=`pre-wrap`,r.textContent=e.value.slice(0,t),i.textContent=e.value.slice(t)||`.`,r.appendChild(i),document.body.appendChild(r);let a=e.getBoundingClientRect(),o={left:a.left+i.offsetLeft-e.scrollLeft,top:a.top+i.offsetTop-e.scrollTop};return document.body.removeChild(r),o},ave=(e,t)=>!(e.length<t.length*2||!e.startsWith(t)||!e.endsWith(t)),ove=(e,t,n)=>{let r=0,i=e.indexOf(t);for(;i!==-1&&i<n;)r+=1,i=e.indexOf(t,i+t.length);return r},sve=(e,t,n)=>{let r=null,i=0,a=e.indexOf(t);for(;a!==-1&&a<n;)i%2==0&&(r=a),i+=1,a=e.indexOf(t,a+t.length);return r},cve=(e,t,n)=>{let r=e.indexOf(t,n);for(;r!==-1;){if(ove(e,t,r)%2==1)return r;r=e.indexOf(t,r+t.length)}return null},wN=(e,t,n,r)=>{if(ave(e.slice(t,n),r))return{markerStart:t,contentStart:t+r.length,contentEnd:n-r.length,markerEnd:n};let i=sve(e,r,t);if(i===null)return null;let a=cve(e,r,n);if(a===null)return null;let o=i+r.length;return t<o||n>a?null:{markerStart:i,contentStart:o,contentEnd:a,markerEnd:a+r.length}},TN=(e,t,n)=>{let r=/\[([^\]\n]+)\]\(([^)\n]+)\)/g,i;for(;(i=r.exec(e))!==null;){let e=i.index,a=r.lastIndex,o=i[1],s=i[2],c=e+1,l=c+o.length;if(t>=e&&n<=a||t<=c&&n>=l)return{fullStart:e,fullEnd:a,label:o,labelStart:c,labelEnd:l,url:s}}return null},lve=e=>e.startsWith(`#`)||rve.test(e)?e:/^[a-z][a-z0-9+.-]*:/i.test(e)?null:`https://${e}`;D();var EN,DN,ON,kN,AN,jN,MN,NN,PN;function FN(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function IN(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var uve=N.div` 6352 margin: ${e=>e.margin}; 6353 width: ${e=>e.width}; 6354 background: ${e=>e.background}; 6355 text-align: left; 6356 .send-icon { 6357 svg { 6358 width: 14px; 6359 fill: #FFF; 6360 margin: 3px 4px 0 0; 6361 } 6362 } 6363`,dve=N.div` 6364 display: flex; 6365 align-items: center; 6366`,fve=N.div` 6367 color: ${e=>e.warning?`#9F2A2A`:`#666`}; 6368 font-size: 12px; 6369 line-height: 16px; 6370 margin: 6px 0 0 0; 6371`,pve=N.div` 6372 display: flex; 6373 i { 6374 margin: 2px 3px 0 0; 6375 } 6376 .generate-icon { 6377 align-items: center; 6378 display: inline-flex; 6379 height: 17px; 6380 justify-content: center; 6381 margin-right: 6px; 6382 width: 17px; 6383 } 6384 button { 6385 margin: 10px 10px 0 0; 6386 } 6387`,mve=N.div` 6388 display: flex; 6389 position: relative; 6390 @media only screen and (max-width : 649px) { 6391 flex-direction: column; 6392 } 6393`,hve=N.div` 6394 flex: 1; 6395 margin-right: 10px; 6396`,gve=N.div` 6397 position: absolute; 6398 right: 0; 6399 top: 0; 6400`,_ve=j(EN=(DN=(PN=class extends V.Component{constructor(...e){super(...e),FN(this,`caretPosition`,ON,this),FN(this,`selectionStart`,kN,this),FN(this,`selectionEnd`,AN,this),FN(this,`toolbarLeft`,jN,this),FN(this,`toolbarTop`,MN,this),FN(this,`toolbarVisible`,NN,this),this.selectionChangeFromKeyboard=!1,this.textareaRef=V.createRef(),this.toolbarPositionLocked=!1,this.insertText=e=>{if(this.props.disabled)return null;let t=this.textarea;if(t){let n=t.selectionStart,r=[this.props.commentText.slice(0,n),e,this.props.commentText.slice(n)].join(``);this.props.onChangeComment(r,n+1)}},this.onDocumentMouseDown=e=>{let t=this.textarea,n=e.target.closest&&e.target.closest(`[data-markdown-selection-toolbar]`);if(e.target===t){this.selectionChangeFromKeyboard=!1,this.toolbarPositionLocked=!1;return}!this.toolbarVisible||n||this.hideToolbar()},this.onTextareaSelect=e=>{this.updateSelection(e.target)},this.onTextareaScroll=()=>{this.shouldRepositionToolbar&&this.updateToolbarPosition()},this.onWindowResize=()=>{this.shouldRepositionToolbar&&this.updateToolbarPosition()},this.onTextareaKeyDown=e=>{if(!(e.metaKey||e.ctrlKey)){this.onKeyboardTextNavigation();return}let t=e.key.toLowerCase();t===`b`?(e.preventDefault(),this.toggleMarkdownFormat(`bold`,{keepToolbarVisible:this.toolbarVisible})):t===`i`?(e.preventDefault(),this.toggleMarkdownFormat(`italic`,{keepToolbarVisible:this.toolbarVisible})):t===`s`&&e.shiftKey?(e.preventDefault(),this.toggleMarkdownFormat(`strikethrough`,{keepToolbarVisible:this.toolbarVisible})):this.onKeyboardTextNavigation()},this.onKeyboardTextNavigation=()=>{this.selectionChangeFromKeyboard=!0,this.hideToolbar()},this.hideToolbar=()=>{this.toolbarPositionLocked=!1,this.toolbarVisible=!1},this.updateSelection=e=>{if(!e||this.props.disabled||U.AppUI.layout.isMobile){this.hideToolbar();return}if(this.selectionStart=e.selectionStart,this.selectionEnd=e.selectionEnd,this.selectionChangeFromKeyboard){this.hideToolbar();return}if(this.selectionStart===this.selectionEnd){this.hideToolbar();return}if(this.toolbarPositionLocked){this.toolbarVisible=!0;return}this.updateToolbarPosition(e)},this.updateToolbarPosition=(e=this.textarea)=>
6400{if(U.AppUI.layout.isMobile||!e||this.selectionStart===void 0||this.selectionStart===this.selectionEnd)return;let t=CN(e,this.selectionStart),n=CN(e,this.selectionEnd),r=Math.abs(t.top-n.top)<24;this.toolbarLeft=r?(t.left+n.left)/2:t.left,this.toolbarTop=t.top-8,this.toolbarVisible=!0},this.markdownFormatIsActive=(e,t,n,r)=>{let i=SN[e];return!!wN(t,n,r,i)},this.toggleMarkdownFormat=(e,t={})=>{if(this.props.disabled)return;let n=this.textarea,r=this.props.commentText||``,i=SN[e],a=n?n.selectionStart:this.selectionStart,o=n?n.selectionEnd:this.selectionEnd,s=r.slice(a,o),c=wN(r,a,o,i),l,u,d;if(c){let e=r.slice(c.contentStart,c.contentEnd);l=`${r.slice(0,c.markerStart)}${e}${r.slice(c.markerEnd)}`,u=a<=c.contentStart?c.markerStart:a-i.length,d=o>=c.contentEnd?c.markerStart+e.length:o-i.length}else l=`${r.slice(0,a)}${i}${s}${i}${r.slice(o)}`,u=a+i.length,d=o+i.length;this.applyTextChange(l,u,d,t)},this.onLink=()=>{if(this.props.disabled)return;let e=this.props.commentText||``,t=this.selectionStart,n=this.selectionEnd,r=e.slice(t,n)||`link text`,i=window.prompt(`Enter URL`);if(!i||!i.trim())return;let a=lve(i.trim());if(!a)return;let o=`[${r}](${a})`,s=`${e.slice(0,t)}${o}${e.slice(n)}`;this.applyTextChange(s,t+1,t+1+r.length)},this.onUnlink=()=>{if(this.props.disabled)return;let e=this.props.commentText||``,t=TN(e,this.selectionStart,this.selectionEnd);if(!t)return;let n=`${e.slice(0,t.fullStart)}${t.label}${e.slice(t.fullEnd)}`;this.applyTextChange(n,t.fullStart,t.fullStart+t.label.length)},this.applyTextChange=(e,t,n,r={})=>{let i=r.keepToolbarVisible===void 0?this.toolbarVisible:r.keepToolbarVisible;this.selectionStart=t,this.selectionEnd=n,this.toolbarPositionLocked=i,this.props.onChangeComment(e,n),window.requestAnimationFrame(()=>{let e=this.textarea;e&&(e.focus(),e.setSelectionRange(t,n),this.toolbarVisible=i&&t!==n)})}}componentDidMount(){document.addEventListener(`mousedown`,this.onDocumentMouseDown),window.addEventListener(`resize`,this.onWindowResize)}componentWillUnmount(){document.removeEventListener(`mousedown`,this.onDocumentMouseDown),window.removeEventListener(`resize`,this.onWindowResize)}get textarea(){return this.textareaRef.current}get shouldRepositionToolbar(){return this.toolbarVisible&&!this.toolbarPositionLocked&&!this.selectionChangeFromKeyboard}get activeFormats(){let e=this.props.commentText||``,t=this.selectionStart,n=this.selectionEnd;return!this.toolbarVisible||t===void 0||n===void 0||t===n?{}:{bold:this.markdownFormatIsActive(`bold`,e,t,n),italic:this.markdownFormatIsActive(`italic`,e,t,n),link:!!TN(e,t,n),strikethrough:this.markdownFormatIsActive(`strikethrough`,e,t,n)}}render(){return(0,K.jsxs)(uve,{margin:this.props.margin,width:this.props.width,background:this.props.background,children:[this.props.showFirstCommentModal&&(0,K.jsx)(nve,{title:this.props.firstCommentModalTitle,message:this.props.firstCommentModalMessage,confirmText:this.props.firstCommentConfirmText,cancelText:this.props.firstCommentCancelText,onConfirm:this.props.onConfirmFirstComment,onCancel:this.props.onCancelFirstComment}),this.props.showXp&&(0,K.jsx)(_T,{namespace:this.props.namespace}),(0,K.jsx)(dve,{children:(0,K.jsx)(Ii,{height:this.props.height||`100px`,expandedHeight:this.props.blockTextExpansion?this.props.height||`100px`:`220px`,id:this.props.id,contractOnSubmit:!0,expandOnOverflow:!0,inputRef:this.textareaRef,inputType:`textarea`,placeholder:this.props.placeholder,onChange:this.props.onChangeComment,onSubmit:this.props.onSubmit,onKeyDown:this.onTextareaKeyDown,onScroll:this.onTextareaScroll,onSelect:this.onTextareaSelect,value:this.props.commentText,caretPosition:this.props.caretPosition,focusOnId:this.props.commentText,maxLength:this.props.maxLength})}),(0,K.jsx)(Q_e,{activeFormats:this.activeFormats,left:this.toolbarLeft,onFormat:this.toggleMarkdownFormat,onLink:this.onLink,onUnlink:this.onUnlink,top:this.toolbarTop,visible:this.toolbarVisible&&!U.AppUI.layout.isMobile}),this.props.maxLength&&(0,K.jsxs)(fve,{warning:(this.props.commentText||``).length>=this.props.maxLength,children:[(this.props.commentText||``).length,`/`,this.props.maxLength,` characters`]}),(0,K.jsxs)(mve,{children:[!this.props.hideSpecialCharacters&&(0,K.jsx)(hve,{children:(0,K.jsx)(ta,{margin:`10px 0 0 0`,languageId:this.props.languageId,background:this.props.textInputButtonBackgroun
6400d,onClick:this.insertText})}),(0,K.jsx)(gve,{children:(0,K.jsx)(Y_e,{margin:`5px 5px 0 0`})})]}),(0,K.jsxs)(pve,{children:[(0,K.jsxs)(I,{onClick:this.props.onSubmit,disabled:this.props.disable,background:q.Theme.green,children:[(0,K.jsx)(J.SendIcon,{}),this.props.edit?`Edit`:`Submit`]}),this.props.onGenerate&&(0,K.jsxs)(I,{background:q.Theme.brightBlue,disabled:this.props.generating,onClick:this.props.onGenerate,children:[(0,K.jsx)(`span`,{className:`generate-icon`,children:this.props.generating?(0,K.jsx)(ln,{color:`white`,size:12}):(0,K.jsx)(xN,{})}),`Generate`]})]})]})}},PN.defaultProps={background:`#FFF`,textInputButtonBackground:`#F1F1F1`,placeholder:`Leave a Comment`},PN),ON=IN(DN.prototype,`caretPosition`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kN=IN(DN.prototype,`selectionStart`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),AN=IN(DN.prototype,`selectionEnd`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jN=IN(DN.prototype,`toolbarLeft`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),MN=IN(DN.prototype,`toolbarTop`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),NN=IN(DN.prototype,`toolbarVisible`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),DN))||EN,LN=(0,Y.CommentCreateWrapper)(_ve);be(),D(),me();var RN,zN;function vve(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var yve=N.div` 6401 display: flex; 6402 align-items: center; 6403 font-size: 14px; 6404 .streak-icon { 6405 margin-right: 0; 6406 .streak-icon-wrapper { 6407 height: 18px; 6408 } 6409 svg { 6410 width: 11px; 6411 } 6412 .streak-count { 6413 margin-left: 2px; 6414 } 6415 } 6416`,bve=N.div` 6417 display: inline-flex; 6418 cursor: ${e=>e.cursor}; 6419 align-items: center; 6420 flex-wrap: wrap; 6421`,xve=N(F)` 6422 display: inline-flex; 6423 align-items: center; 6424 flex-wrap: wrap; 6425 text-decoration: none !important; 6426 color: inherit; 6427 &:hover { 6428 color: inherit; 6429 text-decoration: none !important; 6430 } 6431 &:visited { 6432 color: inherit; 6433 } 6434 * { 6435 text-decoration: none !important; 6436 } 6437`,BN=N.div` 6438 margin: 0 4px; 6439 display: flex; 6440 align-items: center; 6441 .icon-wrapper, .icon-wrapper > div { 6442 height: 18px; 6443 } 6444`,Sve=N.div` 6445 display: flex; 6446 align-items: center; 6447`,VN=N.span` 6448 margin: 0 0 0 3px; 6449`,Cve=(0,Y.NameWithIconsWrapper)(RN=j(RN=(zN=class extends V.Component{get blockLink(){return window.location.href.match(this.props.user.id)}render(){let e=(0,K.jsxs)(V.Fragment,{children:[(0,K.jsx)(R,{bold:!0,margin:`0 4px 0 0`,fontSize:`14px`,lineHeight:`18px`,children:(0,W.isPresent)(this.props.user.name)?this.props.user.name:`Anonymous`}),(0,W.isPresent)(this.props.filteredTargetLanguages)&&!this.props.hideIcons&&(0,K.jsx)(Sve,{children:this.props.filteredTargetLanguages.map(e=>(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${e.id}-level`,children:[(0,K.jsxs)(BN,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:e.languageId}),(0,K.jsx)(VN,{children:e.level?.abbreviation===`N`?e.level.abbreviation:e.xpLevel})]}),e.level?.abbreviation!==`N`&&(0,K.jsxs)(he,{type:`dark`,effect:`solid`,id:`${e.id}-level`,class:`custom-tooltip`,children:[(0,K.jsxs)(`center`,{children:[`Level `,e.xpLevel]}),(0,K.jsxs)(`center`,{children:[e.xp.toLocaleString(`en`),` XP`]})]}),e.level?.abbreviation===`N`&&(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`${e.id}-level`,class:`custom-tooltip`,children:(0,K.jsxs)(`center`,{children:[`Native `,ye[e.languageId],` Speaker`]})})]},`${Math.random}-${e.id}`))}),(0,W.isBlank)(this.props.user.targetLanguages)&&!this.props.hideIcons&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${this.props.user.id}-level`,children:[(0,K.jsxs)(BN,{children:[(0,K.jsx)(J.FlagDeIcon,{}),(0,K.jsx)(VN,{children:this.props.user.xpLevel})]}
6449),(0,K.jsxs)(he,{type:`dark`,effect:`solid`,id:`${this.props.user.id}-level`,class:`custom-tooltip`,children:[(0,K.jsxs)(`center`,{children:[`Level `,this.props.user.xpLevel]}),(0,K.jsxs)(`center`,{children:[this.props.user.xp,` XP`]})]})]}),this.props.user.currentStreakCount>0&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":this.props.user.id,children:[(0,K.jsx)(BN,{children:(0,K.jsx)(J.StreakIcon,{user:this.props.user})}),(0,K.jsxs)(he,{type:`dark`,effect:`solid`,id:this.props.user.id,class:`custom-tooltip`,children:[this.props.user.currentStreakCount,` Day Streak`]})]})]});return(0,K.jsx)(yve,{children:this.blockLink||(0,W.isBlank)(this.props.user.id)?(0,K.jsx)(bve,{cursor:`default`,children:e}):(0,K.jsx)(xve,{to:{name:`profiles.show`,params:{userId:this.props.user.id}},children:e})})}},vve(zN.prototype,`blockLink`,[E],Object.getOwnPropertyDescriptor(zN.prototype,`blockLink`),zN.prototype),zN))||RN)||RN,HN=(0,Y.NameWithIconsWrapper)(Cve),UN,WN,wve=N.div` 6450 border: 0; 6451 cursor: pointer; 6452 display: flex; 6453 align-items: center; 6454 margin: ${e=>e.margin}; 6455 border-radius: 10px; 6456 color: ${e=>e.removalPossible?`#fff`:`#333`}; 6457 padding: 0 5px 0 0; 6458 position: relative; 6459`,GN=M(j(UN=(WN=class extends V.Component{render(){return(0,K.jsx)(wve,{onClick:this.props.onClick,margin:this.props.margin,children:this.props.children})}},WN.defaultProps={margin:`0 5px 0 0`},WN))||UN),KN,Tve=N.div` 6460 img { 6461 width: ${e=>e.width}; 6462 } 6463`,qN=M(j(KN=class extends V.Component{render(){return(0,K.jsx)(Tve,{width:this.props.width||`26px`,children:(0,K.jsx)(`img`,{src:`/images/emoticons/${this.props.image}`,alt:`emoticon`})})}})||KN);me();var JN,Eve=N.div` 6464 display: flex; 6465 margin-left: ${e=>e.marginLeft}; 6466 margin-top: ${e=>e.marginTop}; 6467 overflow: auto; 6468`,Dve=N.div` 6469 margin-left: 5px; 6470 color: #333; 6471 font-size: 11px; 6472 font-weight: bold; 6473`,Ove=N.div` 6474 font-size: 12px; 6475`,kve=j(JN=class extends V.Component{render(){return(0,K.jsx)(Eve,{marginLeft:this.props.marginLeft||0,marginTop:this.props.marginTop||`10px`,children:this.props.feedbackFrequencyList.map(e=>{let t=q.Constants.FEEDBACK_OPTIONS.find(t=>t.feedbackType===e.feedbackType);return t?(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${e.feedbackType}-${this.props.id}`,children:[(0,K.jsxs)(GN,{removalPossible:e.users.find(e=>e.id===U.AppUI.user.id),onClick:()=>this.props.onClick(e),children:[(0,K.jsx)(qN,{image:t.image,width:`20px`}),(0,K.jsx)(Dve,{children:e.frequency})]}),(0,K.jsx)(he,{place:`right`,type:`dark`,effect:`solid`,id:`${e.feedbackType}-${this.props.id}`,class:`custom-tooltip`,children:(0,K.jsxs)(Ove,{children:[(0,K.jsx)(`div`,{children:e.users.filter(e=>(0,W.isPresent)(e.name)).map(e=>e.name&&e.name.trim()).join(`, `)}),(0,K.jsxs)(`div`,{children:[`reacted with :`,e.feedbackType,`:`]})]})})]},e.feedbackType):null})})}})||JN,YN=(0,Y.FeedbackListWrapper)(kve);me(),D();var XN,ZN;function Ave(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var jve=N.div` 6476 6477`,QN=M(j(XN=(ZN=class extends V.Component{get dataFor(){return`user-${this.props.user?.id}-${Math.random()}`}render(){return(0,K.jsxs)(jve,{"data-tip":!0,"data-for":this.dataFor,children:[(0,K.jsx)(R,{bold:!0,margin:`0 4px 0 0`,fontSize:`14px`,lineHeight:`18px`,color:!U.AppUI.siteIsDefault&&(0,W.isPresent)(U.AppUI.site.accentColor)&&this.props.user.admin?U.AppUI.site.accentColor:null,children:(0,W.isPresent)(this.props.user?.name)?this.props.user?.name:`Anonymous`}),this.props.user.admin&&(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:this.dataFor,class:`custom-tooltip`,children:`Team Member`})]})}},Ave(ZN.prototype,`dataFor`,[E],Object.getOwnPropertyDescriptor(ZN.prototype,`dataFor`),ZN.prototype),ZN))||XN),$N=n(((e,t)=>{(function(n,i){typeof e==`object`&&typeof t==`object`?t.exports=i(r()):typeof define==`function`&&define.amd?define([`react`],i):typeof e==`object`?e.reactJsonView=i(r()):n.reactJsonView=i(n.React)})(e,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esMo
6477dule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=48)}([function(t,n){t.exports=e},function(e,t){var n=e.exports={version:`2.6.12`};typeof __e==`number`&&(__e=n)},function(e,t,n){var r=n(26)(`wks`),i=n(17),a=n(3).Symbol,o=typeof a==`function`;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)(`Symbol.`+e))}).store=r},function(e,t){var n=e.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return Object.defineProperty({},`a`,{get:function(){return 7}}).a!=7}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(7),i=n(16);e.exports=n(4)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10),i=n(35),a=n(23),o=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported!`);return`value`in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch{return!0}}},function(e,t,n){var r=n(40),i=n(22);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(e+` is not an object!`);return e}},function(e,t){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}},function(e,t){e.exports={}},function(e,t,n){var r=n(39),i=n(27);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=!0},function(e,t,n){var r=n(3),i=n(1),a=n(53),o=n(6),s=n(5),c=function(e,t,n){var l,u,d,f=e&c.F,p=e&c.G,m=e&c.S,h=e&c.P,g=e&c.B,_=e&c.W,v=p?i:i[t]||(i[t]={}),y=v.prototype,b=p?r:m?r[t]:(r[t]||{}).prototype;for(l in p&&(n=t),n)(u=!f&&b&&b[l]!==void 0)&&s(v,l)||(d=u?b[l]:n[l],v[l]=p&&typeof b[l]!=`function`?n[l]:g&&u?a(d,r):_&&b[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):h&&typeof d==`function`?a(Function.call,d):d,h&&((v.virtual||={})[l]=d,e&c.R&&y&&!y[l]&&o(y,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return`Symbol(${e===void 0?``:e})_${(++n+r).toString(36)}`}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(52)(!0);n(34)(String,`String`,(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(26)(`keys`),i=n(17);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(1),i=n(3),a=i[`__core-js_shared__`]||={};(e.exports=function(e,t){return a[e]||(a[e]=t===void 0?{}:t)})(`versions`,[]).push({version:r.version,mode:n(14)?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})},function(e,t){e.exports=`constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
6477ing,toString,valueOf`.split(`,`)},function(e,t,n){var r=n(7).f,i=n(5),a=n(2)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){n(62);for(var r=n(3),i=n(6),a=n(12),o=n(2)(`toStringTag`),s=`CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList`.split(`,`),c=0;c<s.length;c++){var l=s[c],u=r[l],d=u&&u.prototype;d&&!d[o]&&i(d,o,l),a[l]=a.Array}},function(e,t,n){t.f=n(2)},function(e,t,n){var r=n(3),i=n(1),a=n(14),o=n(30),s=n(7).f;e.exports=function(e){var t=i.Symbol||=a?{}:r.Symbol||{};e.charAt(0)==`_`||e in t||s(t,e,{value:o.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e,t,n){return Math.min(Math.max(e,t),n)}},function(e,t,n){var r=n(14),i=n(15),a=n(37),o=n(6),s=n(12),c=n(55),l=n(28),u=n(61),d=n(2)(`iterator`),f=!([].keys&&`next`in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,h,g,_){c(n,t,m);var v,y,b,x=function(e){if(!f&&e in w)return w[e];switch(e){case`keys`:case`values`:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+` Iterator`,C=h==`values`,ee=!1,w=e.prototype,T=w[d]||w[`@@iterator`]||h&&w[h],E=T||x(h),D=h?C?x(`entries`):E:void 0,O=t==`Array`&&w.entries||T;if(O&&(b=u(O.call(new e)))!==Object.prototype&&b.next&&(l(b,S,!0),r||typeof b[d]==`function`||o(b,d,p)),C&&T&&T.name!==`values`&&(ee=!0,E=function(){return T.call(this)}),r&&!_||!f&&!ee&&w[d]||o(w,d,E),s[t]=E,s[S]=p,h)if(v={values:C?E:x(`values`),keys:g?E:x(`keys`),entries:D},_)for(y in v)y in w||a(w,y,v[y]);else i(i.P+i.F*(f||ee),t,v);return v}},function(e,t,n){e.exports=!n(4)&&!n(8)((function(){return Object.defineProperty(n(36)(`div`),`a`,{get:function(){return 7}}).a!=7}))},function(e,t,n){var r=n(11),i=n(3).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(10),i=n(56),a=n(27),o=n(25)(`IE_PROTO`),s=function(){},c=function(){var e,t=n(36)(`iframe`),r=a.length;for(t.style.display=`none`,n(60).appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(`<script>document.F=Object<\/script>`),e.close(),c=e.F;r--;)delete c.prototype[a[r]];return c()};e.exports=Object.create||function(e,t){var n;return e===null?n=c():(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e),t===void 0?n:i(n,t)}},function(e,t,n){var r=n(5),i=n(9),a=n(57)(!1),o=n(25)(`IE_PROTO`);e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var r=n(24);e.exports=Object(`z`).propertyIsEnumerable(0)?Object:function(e){return r(e)==`String`?e.split(``):Object(e)}},function(e,t,n){var r=n(39),i=n(27).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(24),i=n(2)(`toStringTag`),a=r(function(){return arguments}())==`Arguments`;e.exports=function(e){var t,n,o;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Object(e),i))==`string`?n:a?r(t):(o=r(t))==`Object`&&typeof t.callee==`function`?`Arguments`:o}},function(e,t){var n=function(){return this}();try{n||=Function(`return this`)()}catch{typeof window==`object`&&(n=window)}e.exports=n},function(e,t){var n=/-?\d+(\.\d+)?%?/g;e.exports=function(e){return e.match(n)}},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var r=p(n(49)),i=p(n(76)),a=p(n(81)),o=p(n(89)),s=p(n(93)),c=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(94)),l=p(n(132)),u=p(n(133)),d=p(n(138)),f=n(139);
6477function p(e){return e&&e.__esModule?e:{default:e}}var m=c.default,h=(0,o.default)(m),g=(0,d.default)(u.default,f.rgb2yuv,(function(e){var t,n=(0,a.default)(e,3),r=n[0],i=n[1],o=n[2];return[(t=r,t<.25?1:t<.5?.9-t:1.1-t),i,o]}),f.yuv2rgb,l.default),_=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(` `),style:(0,i.default)({},t.style||{},e.style||{})}}},v=function(e,t){var n=(0,o.default)(t);for(var a in e)n.indexOf(a)===-1&&n.push(a);return n.reduce((function(n,a){return n[a]=function(e,t){if(e===void 0)return t;if(t===void 0)return e;var n=e===void 0?`undefined`:(0,r.default)(e),a=t===void 0?`undefined`:(0,r.default)(t);switch(n){case`string`:switch(a){case`string`:return[t,e].filter(Boolean).join(` `);case`object`:return _({className:e,style:t});case`function`:return function(n){var r=[...arguments].slice(1);return _({className:e})(t.apply(void 0,[n].concat(r)))}}case`object`:switch(a){case`string`:return _({className:t,style:e});case`object`:return(0,i.default)({},t,e);case`function`:return function(n){var r=[...arguments].slice(1);return _({style:e})(t.apply(void 0,[n].concat(r)))}}case`function`:switch(a){case`string`:return function(n){var r=[...arguments].slice(1);return e.apply(void 0,[_(n)({className:t})].concat(r))};case`object`:return function(n){var r=[...arguments].slice(1);return e.apply(void 0,[_(n)({style:t})].concat(r))};case`function`:return function(n){var r=[...arguments].slice(1);return e.apply(void 0,[t.apply(void 0,[n].concat(r))].concat(r))}}}}(e[a],t[a]),n}),{})},y=function(e,t){var n=[...arguments].slice(2);if(t===null)return e;Array.isArray(t)||(t=[t]);var a=t.map((function(t){return e[t]})).filter(Boolean).reduce((function(e,t){return typeof t==`string`?e.className=[e.className,t].filter(Boolean).join(` `):(t===void 0?`undefined`:(0,r.default)(t))===`object`?e.style=(0,i.default)({},e.style,t):typeof t==`function`&&(e=(0,i.default)({},e,t.apply(void 0,[e].concat(n)))),e}),{className:``,style:{}});return a.className||delete a.className,(0,o.default)(a.style).length===0&&delete a.style,a},b=t.invertTheme=function(e){return(0,o.default)(e).reduce((function(t,n){return t[n]=/^base/.test(n)?g(e[n]):n===`scheme`?e[n]+`:inverted`:e[n],t}),{})},x=(t.createStyling=(0,s.default)((function(e){var t=[...arguments].slice(3),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.defaultBase16,c=a===void 0?m:a,l=n.base16Themes,u=x(r,l===void 0?null:l);u&&(r=(0,i.default)({},u,r));var d=h.reduce((function(e,t){return e[t]=r[t]||c[t],e}),{}),f=v((0,o.default)(r).reduce((function(e,t){return h.indexOf(t)===-1&&(e[t]=r[t]),e}),{}),e(d));return(0,s.default)(y,2).apply(void 0,[f].concat(t))}),3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),typeof e==`string`){var n=e.split(`:`),r=(0,a.default)(n,2),i=r[0],o=r[1];e=(t||{})[i]||c[i],o===`inverted`&&(e=b(e))}return e&&e.hasOwnProperty(`base00`)?e:void 0})},function(e,t,n){var r,i=typeof Reflect==`object`?Reflect:null,a=i&&typeof i.apply==`function`?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&typeof i.ownKeys==`function`?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){a!==void 0&&e.removeListener(`error`,a),n([].slice.call(arguments))}var a;t!==`error`&&(a=function(n){e.removeListener(t,i),r(n)},e.once(`error`,a)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,a,o,s;if(l(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)
6477o=a[t]=n,++e._eventsCount;else if(typeof o==`function`?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+o.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r=e===`error`,i=this._events;if(i!==void 0)r&&=i.error===void 0;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=i[e];if(c===void 0)return!1;if(typeof c==`function`)a(c,this,t);else{var l=c.length,u=g(c,l);for(n=0;n<l;++n)a(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),(r=this._events)===void 0||(n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,a=Object.keys(n);for(r=0;r<a.length;++r)(i=a[r])!==`removeListener`&&this.removeAllListeners(i);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports.Dispatcher=n(140)},function(e,t,n){e.exports=n(142)},function(e,t,n){t.__esModule=!0;var r=o(n(50)),i=o(n(65)),a=typeof i.default==`function`&&typeof r.default==`symbol`?function(e){return typeof e}:function(e){return e&&typeof i.default==`function`&&e.constructor===i.default&&e!==i.default.prototype?`symbol`:typeof e};
6477function o(e){return e&&e.__esModule?e:{default:e}}t.default=typeof i.default==`function`&&a(r.default)===`symbol`?function(e){return e===void 0?`undefined`:a(e)}:function(e){return e&&typeof i.default==`function`&&e.constructor===i.default&&e!==i.default.prototype?`symbol`:e===void 0?`undefined`:a(e)}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){n(20),n(29),e.exports=n(30).f(`iterator`)},function(e,t,n){var r=n(21),i=n(22);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?``:void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var r=n(54);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e}},function(e,t,n){var r=n(38),i=n(16),a=n(28),o={};n(6)(o,n(2)(`iterator`),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+` Iterator`)}},function(e,t,n){var r=n(7),i=n(10),a=n(13);e.exports=n(4)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,c=0;s>c;)r.f(e,n=o[c++],t[n]);return e}},function(e,t,n){var r=n(9),i=n(58),a=n(59);e.exports=function(e){return function(t,n,o){var s,c=r(t),l=i(c.length),u=a(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(21),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(21),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(5),i=n(18),a=n(25)(`IE_PROTO`),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(63),i=n(64),a=n(12),o=n(9);e.exports=n(34)(Array,`Array`,(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,t==`keys`?n:t==`values`?e[n]:[n,e[n]])}),`values`),a.Arguments=a.Array,r(`keys`),r(`values`),r(`entries`)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(66),__esModule:!0}},function(e,t,n){n(67),n(73),n(74),n(75),e.exports=n(1).Symbol},function(e,t,n){var r=n(3),i=n(5),a=n(4),o=n(15),s=n(37),c=n(68).KEY,l=n(8),u=n(26),d=n(28),f=n(17),p=n(2),m=n(30),h=n(31),g=n(69),_=n(70),v=n(10),y=n(11),b=n(18),x=n(9),S=n(23),C=n(16),ee=n(38),w=n(71),T=n(72),E=n(32),D=n(7),O=n(13),te=T.f,ne=D.f,re=w.f,ie=r.Symbol,ae=r.JSON,k=ae&&ae.stringify,A=p(`_hidden`),oe=p(`toPrimitive`),se={}.propertyIsEnumerable,ce=u(`symbol-registry`),le=u(`symbols`),ue=u(`op-symbols`),de=Object.prototype,j=typeof ie==`function`&&!!E.f,fe=r.QObject,pe=!fe||!fe.prototype||!fe.prototype.findChild,me=a&&l((function(){return ee(ne({},`a`,{get:function(){return ne(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=te(de,t);r&&delete de[t],ne(e,t,n),r&&e!==de&&ne(de,t,r)}:ne,he=function(e){var t=le[e]=ee(ie.prototype);return t._k=e,t},ge=j&&typeof ie.iterator==`symbol`?function(e){return typeof e==`symbol`}:function(e){return e instanceof ie},_e=function(e,t,n){return e===de&&_e(ue,t,n),v(e),t=S(t,!0),v(n),i(le,t)?(n.enumerable?(i(e,A)&&e[A][t]&&(e[A][t]=!1),n=ee(n,{enumerable:C(0,!1)})):(i(e,A)||ne(e,A,C(1,{})),e[A][t]=!0),me(e,t,n)):ne(e,t,n)},M=function(e,t){v(e);for(var n,r=g(t=x(t)),i=0,a=r.length;a>i;)_e(e,n=r[i++],t[n]);return e},ve=function(e){var t=se.call(this,e=S(e,!0));return!(this===de&&i(le,e)&&!i(ue,e))&&(!(t||!i(this,e)||!i(le,e)||i(this,A)&&this[A][e])||t)},ye=function(e,t){if(e=x(e),t=S(t,!0),e!==de||!i(le,t)||i(ue,t)){var n=te(e,t);return!n||!i(le,t)||i(e,A)&&e[A][t]||(n.enumerable=!0),n}},be=function(e){for(var t,n=re(x(e)),r=[],a=0;n.length>a;)i(le,t=n[a++])||t==A||t==c||r.push(t);return r},xe=function(e){for(var t,n=e===de,r=re(n?ue:x(e)),a=[],o=0;r.length>
6477o;)!i(le,t=r[o++])||n&&!i(de,t)||a.push(le[t]);return a};j||(s((ie=function(){if(this instanceof ie)throw TypeError(`Symbol is not a constructor!`);var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===de&&t.call(ue,n),i(this,A)&&i(this[A],e)&&(this[A][e]=!1),me(this,e,C(1,n))};return a&&pe&&me(de,e,{configurable:!0,set:t}),he(e)}).prototype,`toString`,(function(){return this._k})),T.f=ye,D.f=_e,n(41).f=w.f=be,n(19).f=ve,E.f=xe,a&&!n(14)&&s(de,`propertyIsEnumerable`,ve,!0),m.f=function(e){return he(p(e))}),o(o.G+o.W+o.F*!j,{Symbol:ie});for(var Se=`hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables`.split(`,`),Ce=0;Se.length>Ce;)p(Se[Ce++]);for(var we=O(p.store),Te=0;we.length>Te;)h(we[Te++]);o(o.S+o.F*!j,`Symbol`,{for:function(e){return i(ce,e+=``)?ce[e]:ce[e]=ie(e)},keyFor:function(e){if(!ge(e))throw TypeError(e+` is not a symbol!`);for(var t in ce)if(ce[t]===e)return t},useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),o(o.S+o.F*!j,`Object`,{create:function(e,t){return t===void 0?ee(e):M(ee(e),t)},defineProperty:_e,defineProperties:M,getOwnPropertyDescriptor:ye,getOwnPropertyNames:be,getOwnPropertySymbols:xe});var Ee=l((function(){E.f(1)}));o(o.S+o.F*Ee,`Object`,{getOwnPropertySymbols:function(e){return E.f(b(e))}}),ae&&o(o.S+o.F*(!j||l((function(){var e=ie();return k([e])!=`[null]`||k({a:e})!=`{}`||k(Object(e))!=`{}`}))),`JSON`,{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(y(t)||e!==void 0)&&!ge(e))return _(t)||(t=function(e,t){if(typeof n==`function`&&(t=n.call(this,e,t)),!ge(t))return t}),r[1]=t,k.apply(ae,r)}}),ie.prototype[oe]||n(6)(ie.prototype,oe,ie.prototype.valueOf),d(ie,`Symbol`),d(Math,`Math`,!0),d(r.JSON,`JSON`,!0)},function(e,t,n){var r=n(17)(`meta`),i=n(11),a=n(5),o=n(7).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(8)((function(){return c(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:`O`+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!a(e,r)){if(!c(e))return`F`;if(!t)return`E`;u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!a(e,r)&&u(e),e}}},function(e,t,n){var r=n(13),i=n(32),a=n(19);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var o,s=n(e),c=a.f,l=0;s.length>l;
6477)c.call(e,o=s[l++])&&t.push(o);return t}},function(e,t,n){var r=n(24);e.exports=Array.isArray||function(e){return r(e)==`Array`}},function(e,t,n){var r=n(9),i=n(41).f,a={}.toString,o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&a.call(e)==`[object Window]`?function(e){try{return i(e)}catch{return o.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(19),i=n(16),a=n(9),o=n(23),s=n(5),c=n(35),l=Object.getOwnPropertyDescriptor;t.f=n(4)?l:function(e,t){if(e=a(e),t=o(t,!0),c)try{return l(e,t)}catch{}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(31)(`asyncIterator`)},function(e,t,n){n(31)(`observable`)},function(e,t,n){t.__esModule=!0;var r;t.default=((r=n(77))&&r.__esModule?r:{default:r}).default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){e.exports={default:n(78),__esModule:!0}},function(e,t,n){n(79),e.exports=n(1).Object.assign},function(e,t,n){var r=n(15);r(r.S+r.F,`Object`,{assign:n(80)})},function(e,t,n){var r=n(4),i=n(13),a=n(32),o=n(19),s=n(18),c=n(40),l=Object.assign;e.exports=!l||n(8)((function(){var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),l({},e)[n]!=7||Object.keys(l({},t)).join(``)!=r}))?function(e,t){for(var n=s(e),l=arguments.length,u=1,d=a.f,f=o.f;l>u;)for(var p,m=c(arguments[u++]),h=d?i(m).concat(d(m)):i(m),g=h.length,_=0;g>_;)p=h[_++],r&&!f.call(m,p)||(n[p]=m[p]);return n}:l},function(e,t,n){t.__esModule=!0;var r=a(n(82)),i=a(n(85));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var s,c=(0,i.default)(e);!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}(e,t);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(84)},function(e,t,n){var r=n(42),i=n(2)(`iterator`),a=n(12);e.exports=n(1).isIterable=function(e){var t=Object(e);return t[i]!==void 0||`@@iterator`in t||a.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(87)},function(e,t,n){var r=n(10),i=n(88);e.exports=n(1).getIterator=function(e){var t=i(e);if(typeof t!=`function`)throw TypeError(e+` is not iterable!`);return r(t.call(e))}},function(e,t,n){var r=n(42),i=n(2)(`iterator`),a=n(12);e.exports=n(1).getIteratorMethod=function(e){if(e!=null)return e[i]||e[`@@iterator`]||a[r(e)]}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){n(91),e.exports=n(1).Object.keys},function(e,t,n){var r=n(18),i=n(13);n(92)(`keys`,(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(15),i=n(1),a=n(8);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),`Object`,o)}},function(e,t,n){(function(t){var n=[[`ary`,128],[`bind`,1],[`bindKey`,2],[`curry`,8],[`curryRight`,16],[`flip`,512],[`partial`,32],[`partialRight`,64],[`rearg`,256]],r=/^\s+|\s+$/g,i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,a=/\{\n\/\* \[wrapped with (.+)\] \*/,o=/,? & /,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^\[object .+?Constructor\]$/,u=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,f=parseInt,p=typeof t==`object`&&t&&t.Object===Object&&t,m=typeof self==`object`&&self&&self.Object===Object&&self,h=p||m||Function(`return this`)();function g(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _(e,t){return!!(e&&e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}(e,v,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function v(e){return e!=e}function y(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function b(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==`__lodash_placeholder__`||(e[n]=`__lodash_placeholder__`,a[i++]=n)}return a}var x,S,C,ee=Function.prototype,w=Object.prototype,T=h[`__core-js_shared__`],E=(x=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||``))?`Symbol(sr
6477c)_1.`+x:``,D=ee.toString,O=w.hasOwnProperty,te=w.toString,ne=RegExp(`^`+D.call(O).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),re=Object.create,ie=Math.max,ae=Math.min,k=(S=pe(Object,`defineProperty`),(C=pe.name)&&C.length>2?S:void 0);function A(e){return be(e)?re(e):{}}function oe(e){return!(!be(e)||function(e){return!!E&&E in e}(e))&&(function(e){var t=be(e)?te.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?ne:l).test(function(e){if(e!=null){try{return D.call(e)}catch{}try{return e+``}catch{}}return``}(e))}function se(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=ie(a-o,0),u=Array(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function ce(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=ie(a-s,0),d=Array(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function le(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=A(e.prototype),r=e.apply(n,t);return be(r)?r:n}}function ue(e,t,n,r,i,a,o,s,c,l){var u=128&t,d=1&t,f=2&t,p=24&t,m=512&t,g=f?void 0:le(e);return function _(){for(var v=arguments.length,x=Array(v),S=v;S--;)x[S]=arguments[S];if(p)var C=fe(_),ee=y(x,C);if(r&&(x=se(x,r,i,p)),a&&(x=ce(x,a,o,p)),v-=ee,p&&v<l){var w=b(x,C);return de(e,t,ue,_.placeholder,n,x,w,s,c,l-v)}var T=d?n:this,E=f?T[e]:e;return v=x.length,s?x=_e(x,s):m&&v>1&&x.reverse(),u&&c<v&&(x.length=c),this&&this!==h&&this instanceof _&&(E=g||le(E)),E.apply(T,x)}}function de(e,t,n,r,i,a,o,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=n(e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,c,l);return d.placeholder=r,M(d,e,t)}function j(e,t,n,r,i,a,o,s){var c=2&t;if(!c&&typeof e!=`function`)throw TypeError(`Expected a function`);var l=r?r.length:0;if(l||(t&=-97,r=i=void 0),o=o===void 0?o:ie(Se(o),0),s=s===void 0?s:Se(s),l-=i?i.length:0,64&t){var u=r,d=i;r=i=void 0}var f=[e,t,n,r,i,u,d,a,o,s];if(e=f[0],t=f[1],n=f[2],r=f[3],i=f[4],!(s=f[9]=f[9]==null?c?0:e.length:ie(f[9]-l,0))&&24&t&&(t&=-25),t&&t!=1)p=t==8||t==16?function(e,t,n){var r=le(e);return function i(){for(var a=arguments.length,o=Array(a),s=a,c=fe(i);s--;)o[s]=arguments[s];var l=a<3&&o[0]!==c&&o[a-1]!==c?[]:b(o,c);return(a-=l.length)<n?de(e,t,ue,i.placeholder,void 0,o,l,void 0,void 0,n-a):g(this&&this!==h&&this instanceof i?r:e,this,o)}}(e,t,s):t!=32&&t!=33||i.length?ue.apply(void 0,f):function(e,t,n,r){var i=1&t,a=le(e);return function t(){for(var o=-1,s=arguments.length,c=-1,l=r.length,u=Array(l+s),d=this&&this!==h&&this instanceof t?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++o];return g(d,i?n:this,u)}}(e,t,n,r);else var p=function(e,t,n){var r=1&t,i=le(e);return function t(){return(this&&this!==h&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return M(p,e,t)}function fe(e){return e.placeholder}function pe(e,t){var n=function(e,t){return e?.[t]}(e,t);return oe(n)?n:void 0}function me(e){var t=e.match(a);return t?t[1].split(o):[]}function he(e,t){var n=t.length,r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(i,`{ 6478/* [wrapped with `+t+`] */ 6479`)}function ge(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||d.test(e))&&e>-1&&e%1==0&&e<t}function _e(e,t){for(var n=e.length,r=ae(t.length,n),i=function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);r--;){var a=t[r];e[r]=ge(a,n)?i[a]:void 0}return e}var M=k?function(e,t,n){var r,i=t+``;return k(e,`toString`,{configurable:!0,enumerable:!1,value:(r=he(i,ve(me(i),n)),function(){return r})})}:function(e){return e};function ve(e,t){return function(e,t){for(var n=-1,r=e?e.length:0;
6479++n<r&&!1!==t(e[n],n,e););}(n,(function(n){var r=`_.`+n[0];t&n[1]&&!_(e,r)&&e.push(r)})),e.sort()}function ye(e,t,n){var r=j(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=ye.placeholder,r}function be(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function xe(e){return e?(e=function(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&te.call(e)==`[object Symbol]`}(e))return NaN;if(be(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=be(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var n=c.test(e);return n||u.test(e)?f(e.slice(2),n?2:8):s.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:e===0?e:0}function Se(e){var t=xe(e),n=t%1;return t==t?n?t-n:t:0}ye.placeholder={},e.exports=ye}).call(this,n(43))},function(e,t,n){function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0,t.threezerotwofour=r(n(95)),t.apathy=r(n(96)),t.ashes=r(n(97)),t.atelierDune=r(n(98)),t.atelierForest=r(n(99)),t.atelierHeath=r(n(100)),t.atelierLakeside=r(n(101)),t.atelierSeaside=r(n(102)),t.bespin=r(n(103)),t.brewer=r(n(104)),t.bright=r(n(105)),t.chalk=r(n(106)),t.codeschool=r(n(107)),t.colors=r(n(108)),t.default=r(n(109)),t.eighties=r(n(110)),t.embers=r(n(111)),t.flat=r(n(112)),t.google=r(n(113)),t.grayscale=r(n(114)),t.greenscreen=r(n(115)),t.harmonic=r(n(116)),t.hopscotch=r(n(117)),t.isotope=r(n(118)),t.marrakesh=r(n(119)),t.mocha=r(n(120)),t.monokai=r(n(121)),t.ocean=r(n(122)),t.paraiso=r(n(123)),t.pop=r(n(124)),t.railscasts=r(n(125)),t.shapeshifter=r(n(126)),t.solarized=r(n(127)),t.summerfruit=r(n(128)),t.tomorrow=r(n(129)),t.tube=r(n(130)),t.twilight=r(n(131))},function(e,t,n){t.__esModule=!0,t.default={scheme:`threezerotwofour`,author:`jan t. sott (http://github.com/idleberg)`,base00:`#090300`,base01:`#3a3432`,base02:`#4a4543`,base03:`#5c5855`,base04:`#807d7c`,base05:`#a5a2a2`,base06:`#d6d5d4`,base07:`#f7f7f7`,base08:`#db2d20`,base09:`#e8bbd0`,base0A:`#fded02`,base0B:`#01a252`,base0C:`#b5e4f4`,base0D:`#01a0e4`,base0E:`#a16a94`,base0F:`#cdab53`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`apathy`,author:`jannik siebert (https://github.com/janniks)`,base00:`#031A16`,base01:`#0B342D`,base02:`#184E45`,base03:`#2B685E`,base04:`#5F9C92`,base05:`#81B5AC`,base06:`#A7CEC8`,base07:`#D2E7E4`,base08:`#3E9688`,base09:`#3E7996`,base0A:`#3E4C96`,base0B:`#883E96`,base0C:`#963E4C`,base0D:`#96883E`,base0E:`#4C963E`,base0F:`#3E965B`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`ashes`,author:`jannik siebert (https://github.com/janniks)`,base00:`#1C2023`,base01:`#393F45`,base02:`#565E65`,base03:`#747C84`,base04:`#ADB3BA`,base05:`#C7CCD1`,base06:`#DFE2E5`,base07:`#F3F4F5`,base08:`#C7AE95`,base09:`#C7C795`,base0A:`#AEC795`,base0B:`#95C7AE`,base0C:`#95AEC7`,base0D:`#AE95C7`,base0E:`#C795AE`,base0F:`#C79595`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`atelier dune`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)`,base00:`#20201d`,base01:`#292824`,base02:`#6e6b5e`,base03:`#7d7a68`,base04:`#999580`,base05:`#a6a28c`,base06:`#e8e4cf`,base07:`#fefbec`,base08:`#d73737`,base09:`#b65611`,base0A:`#cfb017`,base0B:`#60ac39`,base0C:`#1fad83`,base0D:`#6684e1`,base0E:`#b854d4`,base0F:`#d43552`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`atelier forest`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)`,base00:`#1b1918`,base01:`#2c2421`,base02:`#68615e`,base03:`#766e6b`,base04:`#9c9491`,base05:`#a8a19f`,base06:`#e6e2e0`,base07:`#f1efee`,base08:`#f22c40`,base09:`#df5320`,base0A:`#d5911a`,base0B:`#5ab738`,base0C:`#00ad9c`,base0D:`#407ee7`,base0E:`#6666ea`,base0F:`#c33ff3`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`atelier heath`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)`,base00:`#1b181b`,base01:`#292329`,base02:`#695d69`,base03:`#776977`,base04:`#9e8f9e`,base05:`#ab9bab`,base06:`#d8cad8`,base07:`#f7f3f7`,base08:`#ca402b`,base09:`#a65926`,base0A:`#bb8a35`,base0B:`#379a37`,base0C:`#159393`,base0D:`#516aec`,base0E:`#7b59c0`,base0F:`#cc33cc`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`atelier lakeside`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)`,base00:`#161b1d`,base01:`#1f292e`,base02:`#516d7b`,base03:`#5a7b8c`,base04:`#7195a8`,base05:`#7ea2b4`,base06:`#c1e4f6`,base07:`#ebf8ff`,base08:`#d22d72`,base09:`#935c25`,base0A:`#8a8a0f`,base0B:`#568c3b`,base0C:`#2d8f6f`,base0D:`#257fad`,base0E:`#5d5db1`,base0F:`#b72dd2`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`atelier seaside`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)`,base00:`#131513`,base01:`#242924`,base02:`#5e6e5e`,base03:`#687d68`,base04:`#809980`,base05:`#8ca68c`,base06:`#cfe8cf`,base07:`#f0fff0`,base08:`#e6193c`,base09:`#87711d`,base0A:`#c3c322`,base0B:`#29a329`,base0C:`#1999b3`,base0D:`#3d62f5`,base0E:`#ad2bee`,base0F:`#e619c3`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`bespin`,author:`jan t. sott`,base00:`#28211c`,base01:`#36312e`,base02:`#5e5d5c`,base03:`#666666`,base04:`#797977`,base05:`#8a8986`,base06:`#9d9b97`,base07:`#baae9e`,base08:`#cf6a4c`,base09:`#cf7d34`,base0A:`#f9ee98`,base0B:`#54be0d`,base0C:`#afc4db`,base0D:`#5ea6ea`,base0E:`#9b859d`,base0F:`#937121`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`brewer`,author:`timothée poisot (http://github.com/tpoisot)`,base00:`#0c0d0e`,base01:`#2e2f30`,base02:`#515253`,base03:`#737475`,base04:`#959697`,base05:`#b7b8b9`,base06:`#dadbdc`,base07:`#fcfdfe`,base08:`#e31a1c`,base09:`#e6550d`,base0A:`#dca060`,base0B:`#3
64791a354`,base0C:`#80b1d3`,base0D:`#3182bd`,base0E:`#756bb1`,base0F:`#b15928`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`bright`,author:`chris kempson (http://chriskempson.com)`,base00:`#000000`,base01:`#303030`,base02:`#505050`,base03:`#b0b0b0`,base04:`#d0d0d0`,base05:`#e0e0e0`,base06:`#f5f5f5`,base07:`#ffffff`,base08:`#fb0120`,base09:`#fc6d24`,base0A:`#fda331`,base0B:`#a1c659`,base0C:`#76c7b7`,base0D:`#6fb3d2`,base0E:`#d381c3`,base0F:`#be643c`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`chalk`,author:`chris kempson (http://chriskempson.com)`,base00:`#151515`,base01:`#202020`,base02:`#303030`,base03:`#505050`,base04:`#b0b0b0`,base05:`#d0d0d0`,base06:`#e0e0e0`,base07:`#f5f5f5`,base08:`#fb9fb1`,base09:`#eda987`,base0A:`#ddb26f`,base0B:`#acc267`,base0C:`#12cfc0`,base0D:`#6fc2ef`,base0E:`#e1a3ee`,base0F:`#deaf8f`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`codeschool`,author:`brettof86`,base00:`#232c31`,base01:`#1c3657`,base02:`#2a343a`,base03:`#3f4944`,base04:`#84898c`,base05:`#9ea7a6`,base06:`#a7cfa3`,base07:`#b5d8f6`,base08:`#2a5491`,base09:`#43820d`,base0A:`#a03b1e`,base0B:`#237986`,base0C:`#b02f30`,base0D:`#484d79`,base0E:`#c59820`,base0F:`#c98344`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`colors`,author:`mrmrs (http://clrs.cc)`,base00:`#111111`,base01:`#333333`,base02:`#555555`,base03:`#777777`,base04:`#999999`,base05:`#bbbbbb`,base06:`#dddddd`,base07:`#ffffff`,base08:`#ff4136`,base09:`#ff851b`,base0A:`#ffdc00`,base0B:`#2ecc40`,base0C:`#7fdbff`,base0D:`#0074d9`,base0E:`#b10dc9`,base0F:`#85144b`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`default`,author:`chris kempson (http://chriskempson.com)`,base00:`#181818`,base01:`#282828`,base02:`#383838`,base03:`#585858`,base04:`#b8b8b8`,base05:`#d8d8d8`,base06:`#e8e8e8`,base07:`#f8f8f8`,base08:`#ab4642`,base09:`#dc9656`,base0A:`#f7ca88`,base0B:`#a1b56c`,base0C:`#86c1b9`,base0D:`#7cafc2`,base0E:`#ba8baf`,base0F:`#a16946`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`eighties`,author:`chris kempson (http://chriskempson.com)`,base00:`#2d2d2d`,base01:`#393939`,base02:`#515151`,base03:`#747369`,base04:`#a09f93`,base05:`#d3d0c8`,base06:`#e8e6df`,base07:`#f2f0ec`,base08:`#f2777a`,base09:`#f99157`,base0A:`#ffcc66`,base0B:`#99cc99`,base0C:`#66cccc`,base0D:`#6699cc`,base0E:`#cc99cc`,base0F:`#d27b53`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`embers`,author:`jannik siebert (https://github.com/janniks)`,base00:`#16130F`,base01:`#2C2620`,base02:`#433B32`,base03:`#5A5047`,base04:`#8A8075`,base05:`#A39A90`,base06:`#BEB6AE`,base07:`#DBD6D1`,base08:`#826D57`,base09:`#828257`,base0A:`#6D8257`,base0B:`#57826D`,base0C:`#576D82`,base0D:`#6D5782`,base0E:`#82576D`,base0F:`#825757`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`flat`,author:`chris kempson (http://chriskempson.com)`,base00:`#2C3E50`,base01:`#34495E`,base02:`#7F8C8D`,base03:`#95A5A6`,base04:`#BDC3C7`,base05:`#e0e0e0`,base06:`#f5f5f5`,base07:`#ECF0F1`,base08:`#E74C3C`,base09:`#E67E22`,base0A:`#F1C40F`,base0B:`#2ECC71`,base0C:`#1ABC9C`,base0D:`#3498DB`,base0E:`#9B59B6`,base0F:`#be643c`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`google`,author:`seth wright (http://sethawright.com)`,base00:`#1d1f21`,base01:`#282a2e`,base02:`#373b41`,base03:`#969896`,base04:`#b4b7b4`,base05:`#c5c8c6`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#CC342B`,base09:`#F96A38`,base0A:`#FBA922`,base0B:`#198844`,base0C:`#3971ED`,base0D:`#3971ED`,base0E:`#A36AC7`,base0F:`#3971ED`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`grayscale`,author:`alexandre gavioli (https://github.com/alexx2/)`,base00:`#101010`,base01:`#252525`,base02:`#464646`,base03:`#525252`,base04:`#ababab`,base05:`#b9b9b9`,base06:`#e3e3e3`,base07:`#f7f7f7`,base08:`#7c7c7c`,base09:`#999999`,base0A:`#a0a0a0`,base0B:`#8e8e8e`,base0C:`#868686`,base0D:`#686868`,base0E:`#747474`,base0F:`#5e5e5e`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`green screen`,author:`chris kempson (http://chriskempson.com)`,base00:`#001100`,base01:`#003300`,base02:`#005500`,base03:`#007700`,base04:`#009900`,base05:`#00bb00`,base06:`#00dd00`,base07:`#00ff00`,base08:`#007700`,base09:`#009900`,base0A:`#007700`,base0B:`#00bb00`,base0C:`#005500`,base0D:`#009900`,base0E:`#00bb00`,base0F:`#005500`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`harmonic16`,author:`jannik siebert (https://github.com/janniks)`,base00:`#0b
64791c2c`,base01:`#223b54`,base02:`#405c79`,base03:`#627e99`,base04:`#aabcce`,base05:`#cbd6e2`,base06:`#e5ebf1`,base07:`#f7f9fb`,base08:`#bf8b56`,base09:`#bfbf56`,base0A:`#8bbf56`,base0B:`#56bf8b`,base0C:`#568bbf`,base0D:`#8b56bf`,base0E:`#bf568b`,base0F:`#bf5656`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`hopscotch`,author:`jan t. sott`,base00:`#322931`,base01:`#433b42`,base02:`#5c545b`,base03:`#797379`,base04:`#989498`,base05:`#b9b5b8`,base06:`#d5d3d5`,base07:`#ffffff`,base08:`#dd464c`,base09:`#fd8b19`,base0A:`#fdcc59`,base0B:`#8fc13e`,base0C:`#149b93`,base0D:`#1290bf`,base0E:`#c85e7c`,base0F:`#b33508`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`isotope`,author:`jan t. sott`,base00:`#000000`,base01:`#404040`,base02:`#606060`,base03:`#808080`,base04:`#c0c0c0`,base05:`#d0d0d0`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#ff0000`,base09:`#ff9900`,base0A:`#ff0099`,base0B:`#33ff00`,base0C:`#00ffff`,base0D:`#0066ff`,base0E:`#cc00ff`,base0F:`#3300ff`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`marrakesh`,author:`alexandre gavioli (http://github.com/alexx2/)`,base00:`#201602`,base01:`#302e00`,base02:`#5f5b17`,base03:`#6c6823`,base04:`#86813b`,base05:`#948e48`,base06:`#ccc37a`,base07:`#faf0a5`,base08:`#c35359`,base09:`#b36144`,base0A:`#a88339`,base0B:`#18974e`,base0C:`#75a738`,base0D:`#477ca1`,base0E:`#8868b3`,base0F:`#b3588e`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`mocha`,author:`chris kempson (http://chriskempson.com)`,base00:`#3B3228`,base01:`#534636`,base02:`#645240`,base03:`#7e705a`,base04:`#b8afad`,base05:`#d0c8c6`,base06:`#e9e1dd`,base07:`#f5eeeb`,base08:`#cb6077`,base09:`#d28b71`,base0A:`#f4bc87`,base0B:`#beb55b`,base0C:`#7bbda4`,base0D:`#8ab3b5`,base0E:`#a89bb9`,base0F:`#bb9584`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`monokai`,author:`wimer hazenberg (http://www.monokai.nl)`,base00:`#272822`,base01:`#383830`,base02:`#49483e`,base03:`#75715e`,base04:`#a59f85`,base05:`#f8f8f2`,base06:`#f5f4f1`,base07:`#f9f8f5`,base08:`#f92672`,base09:`#fd971f`,base0A:`#f4bf75`,base0B:`#a6e22e`,base0C:`#a1efe4`,base0D:`#66d9ef`,base0E:`#ae81ff`,base0F:`#cc6633`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`ocean`,author:`chris kempson (http://chriskempson.com)`,base00:`#2b303b`,base01:`#343d46`,base02:`#4f5b66`,base03:`#65737e`,base04:`#a7a
6479dba`,base05:`#c0c5ce`,base06:`#dfe1e8`,base07:`#eff1f5`,base08:`#bf616a`,base09:`#d08770`,base0A:`#ebcb8b`,base0B:`#a3be8c`,base0C:`#96b5b4`,base0D:`#8fa1b3`,base0E:`#b48ead`,base0F:`#ab7967`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`paraiso`,author:`jan t. sott`,base00:`#2f1e2e`,base01:`#41323f`,base02:`#4f424c`,base03:`#776e71`,base04:`#8d8687`,base05:`#a39e9b`,base06:`#b9b6b0`,base07:`#e7e9db`,base08:`#ef6155`,base09:`#f99b15`,base0A:`#fec418`,base0B:`#48b685`,base0C:`#5bc4bf`,base0D:`#06b6ef`,base0E:`#815ba4`,base0F:`#e96ba8`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`pop`,author:`chris kempson (http://chriskempson.com)`,base00:`#000000`,base01:`#202020`,base02:`#303030`,base03:`#505050`,base04:`#b0b0b0`,base05:`#d0d0d0`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#eb008a`,base09:`#f29333`,base0A:`#f8ca12`,base0B:`#37b349`,base0C:`#00aabb`,base0D:`#0e5a94`,base0E:`#b31e8d`,base0F:`#7a2d00`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`railscasts`,author:`ryan bates (http://railscasts.com)`,base00:`#2b2b2b`,base01:`#272935`,base02:`#3a4055`,base03:`#5a647e`,base04:`#d4cfc9`,base05:`#e6e1dc`,base06:`#f4f1ed`,base07:`#f9f7f3`,base08:`#da4939`,base09:`#cc7833`,base0A:`#ffc66d`,base0B:`#a5c261`,base0C:`#519f50`,base0D:`#6d9cbe`,base0E:`#b6b3eb`,base0F:`#bc9458`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`shapeshifter`,author:`tyler benziger (http://tybenz.com)`,base00:`#000000`,base01:`#040404`,base02:`#102015`,base03:`#343434`,base04:`#555555`,base05:`#ababab`,base06:`#e0e0e0`,base07:`#f9f9f9`,base08:`#e92f2f`,base09:`#e09448`,base0A:`#dddd13`,base0B:`#0ed839`,base0C:`#23edda`,base0D:`#3b48e3`,base0E:`#f996e2`,base0F:`#69542d`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`solarized`,author:`ethan schoonover (http://ethanschoonover.com/solarized)`,base00:`#002b36`,base01:`#073642`,base02:`#586e75`,base03:`#657b83`,base04:`#839496`,base05:`#93a1a1`,base06:`#eee8d5`,base07:`#fdf6e3`,base08:`#dc322f`,base09:`#cb4b16`,base0A:`#b58900`,base0B:`#859900`,base0C:`#2aa198`,base0D:`#268bd2`,base0E:`#6c71c4`,base0F:`#d33682`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`summerfruit`,author:`christopher corley (http://cscorley.github.io/)`,base00:`#151515`,base01:`#202020`,base02:`#303030`,base03:`#505050`,base04:`#B0B0B0`,base05:`#D0D0D0`,base06:`#E0E0E0`,base07:`#FFFFFF`,base08:`#FF0086`,base09:`#FD8900`,base0A:`#ABA800`,base0B:`#00C918`,base0C:`#1faaaa`,base0D:`#3777E6`,base0E:`#AD00A1`,base0F:`#cc6633`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`tomorrow`,author:`chris kempson (http://chriskempson.com)`,base00:`#1d1f21`,base01:`#282a2e`,base02:`#373b41`,base03:`#969896`,base04:`#b4b7b4`,base05:`#c5c8c6`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#cc6666`,base09:`#de935f`,base0A:`#f0c674`,base0B:`#b5bd68`,base0C:`#8abeb7`,base0D:`#81a2be`,base0E:`#b294bb`,base0F:`#a3685a`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`london tube`,author:`jan t. sott`,base00:`#231f20`,base01:`#1c3f95`,base02:`#5a5758`,base03:`#737171`,base04:`#959ca1`,base05:`#d9d8d8`,base06:`#e7e7e8`,base07:`#ffffff`,base08:`#ee2e24`,base09:`#f386a1`,base0A:`#ffd204`,base0B:`#00853e`,base0C:`#85cebc`,base0D:`#009ddc`,base0E:`#98005d`,base0F:`#b06110`},e.exports=t.default},function(e,t,n){t.__esModule=!0,t.default={scheme:`twilight`,author:`david hart (http://hart-dev.com)`,base00:`#1e1e1e`,base01:`#323537`,base02:`#464b50`,base03:`#5f5a60`,base04:`#838184`,base05:`#a7a7a7`,base06:`#c3c3c3`,base07:`#ffffff`,base08:`#cf6a4c`,base09:`#cda869`,base0A:`#f9ee98`,base0B:`#8f9d6a`,base0C:`#afc4db`,base0D:`#7587a6`,base0E:`#9b859d`,base0F:`#9b703f`},e.exports=t.default},function(e,t,n){var r=n(33);function i(e){var t=Math.round(r(e,0,255)).toString(16);return t.length==1?`0`+t:t}e.exports=function(e){var t=e.length===4?i(255*e[3]):``;return`#`+i(e[0])+i(e[1])+i(e[2])+t}},function(e,t,n){var r=n(134),i=n(135),a=n(136),o=n(137),s={"#":i,hsl:function(e){var t=r(e),n=o(t);return t.length===4&&n.push(t[3]),n},rgb:a};function c(e){for(var t in s)if(e.indexOf(t)===0)return s[t](e)}c.rgb=a,c.hsl=r,c.hex=i,e.exports=c},function(e,t,n){var r=n(44),i=n(33);function a(e,t){switch(e=parseFloat(e),t){case 0:return i(e,0,360);case 1:case 2:return i(e,0,100);case 3:return i(e,0,1)}}e.exports=function(e){return r(e).map(a)}},function(e,t){e.exports=function(e){e.length!==4&&e.length!==5||(e=function(e){for(var t=`#`,n=1;n<e.length;n++){var r=e.charAt(n);t+=r+r}return t}(e));var t=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)];if(e.length===9){var n=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));t.push(n)}return t}},function(e,t,n){var r=n(44),i=n(33);function a(e,t){return t<3?e.indexOf(`%`)==-1?i(parseInt(e,10),0,255):Math.round(255*i(parseInt(e,10),0,100)/100):i(parseFloat(e),0,1)}
6479e.exports=function(e){return r(e).map(a)}},function(e,t){e.exports=function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,c=e[2]/100;if(s==0)return[a=255*c,a,a];t=2*c-(n=c<.5?c*(1+s):c+s-c*s),i=[0,0,0];for(var l=0;l<3;l++)(r=o+1/3*-(l-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[l]=255*a;return i}},function(e,t,n){(function(t){var n=typeof t==`object`&&t&&t.Object===Object&&t,r=typeof self==`object`&&self&&self.Object===Object&&self,i=n||r||Function(`return this`)();function a(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function o(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var s=Object.prototype,c=s.hasOwnProperty,l=s.toString,u=i.Symbol,d=s.propertyIsEnumerable,f=u?u.isConcatSpreadable:void 0,p=Math.max;function m(e){return h(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&function(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}(e)?l.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}(e)}(e)}(e)&&c.call(e,`callee`)&&(!d.call(e,`callee`)||l.call(e)==`[object Arguments]`)}(e)||!!(f&&e&&e[f])}var h=Array.isArray,g,_,v;e.exports=(_=function(e){var t=(e=function e(t,n,r,i,a){var s=-1,c=t.length;for(r||=m,a||=[];++s<c;){var l=t[s];n>0&&r(l)?n>1?e(l,n-1,r,i,a):o(a,l):i||(a[a.length]=l)}return a}(e,1)).length,n=t;for(g&&e.reverse();n--;)if(typeof e[n]!=`function`)throw TypeError(`Expected a function`);return function(){for(var n=0,r=t?e[n].apply(this,arguments):arguments[0];++n<t;)r=e[n].call(this,r);return r}},v=p(v===void 0?_.length-1:v,0),function(){for(var e=arguments,t=-1,n=p(e.length-v,0),r=Array(n);++t<n;)r[t]=e[v+t];t=-1;for(var i=Array(v+1);++t<v;)i[t]=e[t];return i[v]=r,a(_,this,i)})}).call(this,n(43))},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.yuv2rgb=function(e){var t,n,r,i=e[0],a=e[1],o=e[2];return t=1*i+0*a+1.13983*o,n=1*i+-.39465*a+-.5806*o,r=1*i+2.02311*a+0*o,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},t.rgb2yuv=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[.299*t+.587*n+.114*r,-.14713*t+-.28886*n+.436*r,.615*t+-.51499*n+-.10001*r]}},function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(141);e.exports=function(){function e(){r(this,`_callbacks`,void 0),r(this,`_isDispatching`,void 0),r(this,`_isHandled`,void 0),r(this,`_isPending`,void 0),r(this,`_lastID`,void 0),r(this,`_pendingPayload`,void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t=`ID_`+ this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||i(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||i(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||i(!1):(this._callbacks[n]||i(!1),this._invokeCallback(n))}},t.dispatch=function(e){this._isDispatching&&i(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},t.isDispatching=function(){return this._isDispatching},t._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},t._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},t._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}()},function(e,t,n){e.exports=function(e,t){var n=[...arguments].slice(2);if(!e){var r;if(t===void 0)r=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var i=0;(r=Error(t.replace(/%s/g,(function(){return String(n[i++])})))).name=`Invariant Violation`}throw r.framesToPop=1,r}}},function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
6479t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return(f=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}function p(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function m(e,t){return!t||f(t)!==`object`&&typeof t!=`function`?p(e):t}function h(e){var t=function(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}n.r(t);var g=n(0),_=n.n(g);function v(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function y(e){this.setState(function(t){return this.constructor.getDerivedStateFromProps(e,t)??null}.bind(this))}function b(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function x(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error(`Can only polyfill class components`);if(typeof e.getDerivedStateFromProps!=`function`&&typeof t.getSnapshotBeforeUpdate!=`function`)return e;var n=null,r=null,i=null;if(typeof t.componentWillMount==`function`?n=`componentWillMount`:typeof t.UNSAFE_componentWillMount==`function`&&(n=`UNSAFE_componentWillMount`),typeof t.componentWillReceiveProps==`function`?r=`componentWillReceiveProps`:typeof t.UNSAFE_componentWillReceiveProps==`function`&&(r=`UNSAFE_componentWillReceiveProps`),typeof t.componentWillUpdate==`function`?i=`componentWillUpdate`:typeof t.UNSAFE_componentWillUpdate==`function`&&(i=`UNSAFE_componentWillUpdate`),n!==null||r!==null||i!==null){var a=e.displayName||e.name,o=typeof e.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. 6480 6481`+a+` uses `+o+` but also contains the following legacy lifecycles:`+(n===null?``:` 6482 `+n)+(r===null?``:` 6483 `+r)+(i===null?``:` 6484 `+i)+` 6485 6486The above lifecycles should be removed. Learn more about this warning here: 6487https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps==`function`&&(t.componentWillMount=v,t.componentWillReceiveProps=y),typeof t.getSnapshotBeforeUpdate==`function`){if(typeof t.componentDidUpdate!=`function`)throw Error(`Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype`);t.componentWillUpdate=b;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function S(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function C(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return t===`number`&&(t=isNaN(e)?`nan`:(0|e)==e?`integer`:`float`),t}v.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,b.__suppressDeprecationWarning=!0;var ee={scheme:`rjv-default`,author:`mac gainor`,base00:`rgba(0, 0, 0, 0)`,base01:`rgb(245, 245, 245)`,base02:`rgb(235, 235, 235)`,base03:`#93a1a1`,base04:`rgba(0, 0, 0, 0.3)`,base05:`#586e75`,base06:`#073642`,base07:`#002b36`,base08:`#d33682`,base09:`#cb4b16`,base0A:`#dc322f`,base0B:`#859900`,base0C:`#6c71c4`,base0D:`#586e75`,base0E:`#2aa198`,base0F:`#268bd2`},w={scheme:`rjv-grey`,author:`mac gainor`,base00:`rgba(1, 1, 1, 0)`,base01:`rgba(1, 1, 1, 0.1)`,base02:`rgba(0, 0, 0, 0.2)`,base03:`rgba(1, 1, 1, 0.3)`,base04:`rgba(0, 0, 0, 0.4)`,base05:`rgba(1, 1, 1, 0.5)`,base06:`rgba(1, 1, 1, 0.6)`,base07:`rgba(1, 1, 1, 0.7)`,base08:`rgba(1, 1, 1, 0.8)`,base09:`rgba(1, 1, 1, 0.8)`,base0A:`rgba(1, 1, 1, 0.8)`,base0B:`rgba(1, 1, 1, 0.8)`,base0C:`rgba(1, 1, 1, 0.8)`,base0D:`rgba(1, 1, 1, 0.8)`,base0E:`rgba(1, 1, 1, 0.8)`,base0F:`rgba(1, 1, 1, 0.8)`},T={white:`#fff`,black:`#000`,transparent:`rgba(1, 1, 1, 0)`,globalFontFamily:`monospace`,globalCursor:`default`,indentBlockWidth:`5px`,braceFontWeight:`bold`,braceCursor:`pointer`,ellipsisFontSize:`18px`,ellipsisLineHeight:`10px`,ellipsisCursor:`pointer`,keyMargin:`0px 5px`,keyLetterSpacing:`0.5px`,keyFontStyle:`none`,keyBorderRadius:`3px`,keyColonWeight:`bold`,keyVerticalAlign:`to
6487p`,keyOpacity:`0.85`,keyOpacityHover:`1`,keyValPaddingTop:`3px`,keyValPaddingBottom:`3px`,keyValPaddingRight:`5px`,keyValBorderLeft:`1px solid`,keyValBorderHover:`2px solid`,keyValPaddingHover:`3px 5px 3px 4px`,pushedContentMarginLeft:`6px`,variableValuePaddingRight:`6px`,nullFontSize:`11px`,nullFontWeight:`bold`,nullPadding:`1px 2px`,nullBorderRadius:`3px`,nanFontSize:`11px`,nanFontWeight:`bold`,nanPadding:`1px 2px`,nanBorderRadius:`3px`,undefinedFontSize:`11px`,undefinedFontWeight:`bold`,undefinedPadding:`1px 2px`,undefinedBorderRadius:`3px`,dataTypeFontSize:`11px`,dataTypeMarginRight:`4px`,datatypeOpacity:`0.8`,objectSizeBorderRadius:`3px`,objectSizeFontStyle:`italic`,objectSizeMargin:`0px 6px 0px 0px`,clipboardCursor:`pointer`,clipboardCheckMarginLeft:`-12px`,metaDataPadding:`0px 0px 0px 10px`,arrayGroupMetaPadding:`0px 0px 0px 4px`,iconContainerWidth:`17px`,tooltipPadding:`4px`,editInputMinWidth:`130px`,editInputBorderRadius:`2px`,editInputPadding:`5px`,editInputMarginRight:`4px`,editInputFontFamily:`monospace`,iconCursor:`pointer`,iconFontSize:`15px`,iconPaddingRight:`1px`,dateValueMarginLeft:`2px`,iconMarginRight:`3px`,detectedRowPaddingTop:`3px`,addKeyCoverBackground:`rgba(255, 255, 255, 0.3)`,addKeyCoverPosition:`absolute`,addKeyCoverPositionPx:`0px`,addKeyModalWidth:`200px`,addKeyModalMargin:`auto`,addKeyModalPadding:`10px`,addKeyModalRadius:`3px`},E=n(45),D=function(e){var t=function(e){return{backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}}(e);return{"app-container":{fontFamily:T.globalFontFamily,cursor:T.globalCursor,backgroundColor:t.backgroundColor,position:`relative`},ellipsis:{display:`inline-block`,color:t.ellipsisColor,fontSize:T.ellipsisFontSize,lineHeight:T.ellipsisLineHeight,cursor:T.ellipsisCursor},"brace-row":{display:`inline-block`,cursor:`pointer`},brace:{display:`inline-block`,cursor:T.braceCursor,fontWeight:T.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:`inline-block`,margin:T.keyMargin,color:t.keyColor,verticalAlign:`top`},objectKeyVal:function(e,n){return{style:a({paddingTop:T.keyValPaddingTop,paddingRight:T.keyValPaddingRight,paddingBottom:T.keyValPaddingBottom,borderLeft:T.keyValBorderLeft+` `+t.objectBorder,":hover":{paddingLeft:n.paddingLeft-1+`px`,borderLeft:T.keyValBorderHover+` `+t.objectBorder}},n)}},"object-key-val-no-border":{padding:T.keyValPadding},"pushed-content":{marginLeft:T.pushedContentMarginLeft},variableValue:function(e,t){return{style:a({display:`inline-block`,paddingRight:T.variableValuePaddingRight,position:`relative`},t)}},"object-name":{display:`inline-block`,color:t.keyColor,letterSpacing:T.keyLetterSpacing,fontStyle:T.keyFontStyle,verticalAlign:T.keyVerticalAlign,opacity:T.keyOpacity,":hover":{opacity:T.keyOpacityHover}},"array-key":{display:`inline-block`,color:t.arrayKeyColor,letterSpacing:T.keyLetterSpacing,fontStyle:T.keyFontStyle,verticalAlign:T.keyVerticalAlign,opacity:T.keyOpacity,":hover":{opacity:T.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:T.objectSizeBorderRadius,fontStyle:T.objectSizeFontStyle,margin:T.objectSizeMargin,cursor:`default`},"data-type-label":{fontSize:T.dataTypeFontSize,marginRight:T.dataTypeMarginRight,opacity:T.datatypeOpacity},boolean:{display:`inline-block`,color:t.dataTypes.boolean},date:{display:`inline-block`,color:t.dataTypes.date},"date-value":{marginLeft:T.dateValueMarginLeft},float:{display:`inline-block`,color:t.dataTypes.float},function:{display:`inline-block`,color:t.dataTypes.function,cursor:`pointer`,whiteSpace:`pre-line`},"function-value":{fontStyle:`italic`},integer:{display:`inline-block`,color:t.dataTypes.integer},string:{display:`inline-block`,color:t.dataTypes.string},nan:{display:`inline-block`,color:t.dataTypes.nan,fontSize:T.nanFontSize,fontWeight:T.nanFontWeight,backgroundColor:t.dataTypes.background,padding:T.nanPadding,borderRadius:T.nanBorderRadius},null:{display:`inline-block`,color:t.dataTypes.null,fontSize:T.nullFontSize,fontWeight:T.nullFontWeight,backgroundColor:t.dataTypes.background,padding:T.nullPadding,borderRadius:T.nullBorderRadius},undefined:{display:`inline-block`,color:t.dataTypes.undefined,fontSize:T.undefinedFontSize,padding:T.undefinedPadding,borderRadius:T.undefinedBorderRadius,backgroundColor:t.dataTypes.background}
6487,regexp:{display:`inline-block`,color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:T.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:T.iconFontSize,marginRight:T.iconMarginRight,verticalAlign:`top`},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:T.clipboardCheckMarginLeft},"array-group-meta-data":{display:`inline-block`,padding:T.arrayGroupMetaPadding},"object-meta-data":{display:`inline-block`,padding:T.metaDataPadding},"icon-container":{display:`inline-block`,width:T.iconContainerWidth},tooltip:{padding:T.tooltipPadding},removeVarIcon:{verticalAlign:`top`,display:`inline-block`,color:t.editVariable.removeIcon,cursor:T.iconCursor,fontSize:T.iconFontSize,marginRight:T.iconMarginRight},addVarIcon:{verticalAlign:`top`,display:`inline-block`,color:t.editVariable.addIcon,cursor:T.iconCursor,fontSize:T.iconFontSize,marginRight:T.iconMarginRight},editVarIcon:{verticalAlign:`top`,display:`inline-block`,color:t.editVariable.editIcon,cursor:T.iconCursor,fontSize:T.iconFontSize,marginRight:T.iconMarginRight},"edit-icon-container":{display:`inline-block`,verticalAlign:`top`},"check-icon":{display:`inline-block`,cursor:T.iconCursor,color:t.editVariable.checkIcon,fontSize:T.iconFontSize,paddingRight:T.iconPaddingRight},"cancel-icon":{display:`inline-block`,cursor:T.iconCursor,color:t.editVariable.cancelIcon,fontSize:T.iconFontSize,paddingRight:T.iconPaddingRight},"edit-input":{display:`inline-block`,minWidth:T.editInputMinWidth,borderRadius:T.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:T.editInputPadding,marginRight:T.editInputMarginRight,fontFamily:T.editInputFontFamily},"detected-row":{paddingTop:T.detectedRowPaddingTop},"key-modal-request":{position:T.addKeyCoverPosition,top:T.addKeyCoverPositionPx,left:T.addKeyCoverPositionPx,right:T.addKeyCoverPositionPx,bottom:T.addKeyCoverPositionPx,backgroundColor:T.addKeyCoverBackground},"key-modal":{width:T.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:T.addKeyModalMargin,marginRight:T.addKeyModalMargin,padding:T.addKeyModalPadding,borderRadius:T.addKeyModalRadius,marginTop:`15px`,position:`relative`},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:`2px`,marginBottom:`5px`,fontSize:`11px`},"key-modal-input-container":{overflow:`hidden`},"key-modal-input":{width:`100%`,padding:`3px 6px`,fontFamily:`monospace`,color:t.addKeyModal.color,border:`none`,boxSizing:`border-box`,borderRadius:`2px`},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:`absolute`,top:`0px`,right:`0px`,borderRadius:`0px 3px 0px 3px`,cursor:`pointer`},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:T.iconFontSize,transform:`rotate(45deg)`},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:T.iconFontSize,position:`absolute`,right:`2px`,top:`3px`,cursor:`pointer`},"function-ellipsis":{display:`inline-block`,color:t.ellipsisColor,fontSize:T.ellipsisFontSize,lineHeight:T.ellipsisLineHeight,cursor:T.ellipsisCursor},"validation-failure":{float:`right`,padding:`3px 6px`,borderRadius:`2px`,cursor:`pointer`,color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:`6px`},"validation-failure-clear":{position:`relative`,verticalAlign:`top`,cursor:`pointer`,color:t.validationFailure.iconColor,fontSize:T.iconFontSize,transform:`rotate(45deg)`}}};function O(e,t,n){return e||console.error(`theme has not been set`),function(e){var t=ee;return!1!==e&&e!==`none`||(t=w),(0,E.createStyling)(D,{defaultBase16:t})(e)}(e)(t,n)}var te=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=(e.rjvId,e.type_name),n=e.displayDataTypes,r=e.theme;return n?_.a.createElement(`span`,Object.assign({className:`data-type-label`},O(r,`data-type-label`)),t):null}}]),n}(_.a.PureComponent),ne=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props;return _.a.createElement(`div`,O(e.theme,`boolean`),_.a.createElement(te,Object.assign({type_name:`bool`},e)),e.value?`true`:`false`)}}]),n}(_.a.PureComponent),re=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props;return _.a.createElement(`div`,O(e.theme,`date`),_.a.createElement(te,Object.assign({type_name:`date`},e)),_.a.createElement(`span`,Object.assign({className:`date-value`},O(e.theme,`date-value`)),e.value.toLocaleTimeString(`en-us`,{weekday:`short`,year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})))}}]),n}(_.a.PureComponent),ie=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props;return _.a.createElement(`div`,O(e.theme,`float`),_.a.createElement(te,Object.assign({type_name:`float`},e)),this.props.value)}}]),n}(_.a.PureComponent);function ae(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){if(e){if(typeof e==`string`)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}function A(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=k(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
6487}throw TypeError(`Invalid attempt to iterate non-iterable instance. 6488In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function oe(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}(e)||k(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 6489In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var se=n(46),ce=new(n(47)).Dispatcher,le=new(function(e){u(n,e);var t=h(n);function n(){var e;o(this,n);var r=[...arguments];return(e=t.call.apply(t,[this].concat(r))).objects={},e.set=function(t,n,r,i){e.objects[t]===void 0&&(e.objects[t]={}),e.objects[t][n]===void 0&&(e.objects[t][n]={}),e.objects[t][n][r]=i},e.get=function(t,n,r,i){return e.objects[t]===void 0||e.objects[t][n]===void 0||e.objects[t][n][r]==null?i:e.objects[t][n][r]},e.handleAction=function(t){var n=t.rjvId,r=t.data;switch(t.name){case`RESET`:e.emit(`reset-`+n);break;case`VARIABLE_UPDATED`:t.data.updated_src=e.updateSrc(n,r),e.set(n,`action`,`variable-update`,a(a({},r),{},{type:`variable-edited`})),e.emit(`variable-update-`+n);break;case`VARIABLE_REMOVED`:t.data.updated_src=e.updateSrc(n,r),e.set(n,`action`,`variable-update`,a(a({},r),{},{type:`variable-removed`})),e.emit(`variable-update-`+n);break;case`VARIABLE_ADDED`:t.data.updated_src=e.updateSrc(n,r),e.set(n,`action`,`variable-update`,a(a({},r),{},{type:`variable-added`})),e.emit(`variable-update-`+n);break;case`ADD_VARIABLE_KEY_REQUEST`:e.set(n,`action`,`new-key-request`,r),e.emit(`add-key-request-`+n)}},e.updateSrc=function(t,n){var r=n.name,i=n.namespace,a=n.new_value,o=(n.existing_value,n.variable_removed);i.shift();var s,c=e.get(t,`global`,`src`),l=e.deepCopy(c,oe(i)),u=l,d=A(i);try{for(d.s();!(s=d.n()).done;)u=u[s.value]}catch(e){d.e(e)}finally{d.f()}return o?C(u)==`array`?u.splice(r,1):delete u[r]:r===null?l=a:u[r]=a,e.set(t,`global`,`src`,l),l},e.deepCopy=function(t,n){var r,i=C(t),o=n.shift();return i==`array`?r=oe(t):i==`object`&&(r=a({},t)),o!==void 0&&(r[o]=e.deepCopy(t[o],n)),r},e}return n}(se.EventEmitter));ce.register(le.handleAction.bind(le));var ue=le,de=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({collapsed:!r.state.collapsed},(function(){ue.set(r.props.rjvId,r.props.namespace,`collapsed`,r.state.collapsed)}))},r.getFunctionDisplay=function(e){var t=p(r).props;return e?_.a.createElement(`span`,null,r.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,``),_.a.createElement(`span`,{className:`function-collapsed`,style:{fontWeight:`bold`}},_.a.createElement(`span`,null,`{`),_.a.createElement(`span`,O(t.theme,`ellipsis`),`...`),_.a.createElement(`span`,null,`}`))):r.props.value.toString().slice(9,-1)},r.state={collapsed:ue.get(e.rjvId,e.namespace,`collapsed`,!0)},r}return c(n,[{key:`render`,value:function(){var e=this.props,t=this.state.collapsed;return _.a.createElement(`div`,O(e.theme,`function`),_.a.createElement(te,Object.assign({type_name:`function`},e)),_.a.createElement(`span`,Object.assign({},O(e.theme,`function-value`),{className:`rjv-function-container`,onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}]),n}(_.a.PureComponent),j=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){return _.a.createElement(`div`,O(this.props.theme,`nan`),`NaN`)}}]),n}(_.a.PureComponent),fe=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){return _.a.createElement(`div`,O(this.props.theme,`null`),`NULL`)}}]),n}(_.a.PureComponent),pe=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props;return _.a.createElement(`div`,O(e.theme,`integer`),_.a.createElement(te,Object.assign({type_name:`int`},e)),this.props.value)}}]),n}(_.a.PureComponent),me=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props;return _.a.createElement(`div`,O(e.theme,`regexp`),_.a.createElement(te,Object.assign({type_name:`regexp`},e)),this.props.value.toString())}}]),n}(_.a.PureComponent),he=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({collapsed:!r.state.collapsed},(function(){ue.set(r.props.rjvId,r.props.namespace,`collapsed`,r.state.collapsed)}))},r.state={collapsed:ue.get(e.rjvId,e.namespace,`collapsed`,!0)},r}return c(n,[{key:`render`,value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,n=e.theme,r=e.value,i={style:{cursor:`default`}};return C(t)===`integer`&&r.length>t&&(i.style.cursor=`pointer`,this.state.collapsed&&(r=_.a.createElement(`span`,null,r.substring(0,t),_.a.createElement(`span`,O(n,`ellipsis`),` ...`)))),_.a.createElement(`div`,O(n,`string`),_.a.createElement(te,Object.assign({type_name:`string`},e)),_.a.createElement(`span`,Object.assign({className:`string-value`},i,{onClick:this.toggleCollapsed}),`"`,r,`"`))}}]),n}(_.a.PureComponent),ge=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){return _.a.createElement(`div`,O(this.props.theme,`undefined`),`undefined`)}}]),n}(_.a.PureComponent);function _e(){return(_e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var M=g.useLayoutEffect,ve=function(e){var t=(0,g.useRef)(e);return M((function(){t.current=e})),t},ye=function(e,t){typeof e==`function`?e(t):e.current=t},be=function(e,t){var n=(0,g.useRef)();return(0,g.useCallback)((function(r){e.current=r,n.current&&ye(n.current,null),n.current=t,t&&ye(t,r)}),[t])},xe={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`},Se=function(e){Object.keys(xe).forEach((function(t){e.style.setProperty(t,xe[t],`important`)}))},Ce=null,we=function(){},Te=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`],Ee=!!document.documentElement.currentStyle,De=(0,g.forwardRef)(function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?we:a,s=e.onHeightChange,c=s===void 0?we:s,l=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`]),u,d=l.value!==void 0,f=(0,g.useRef)(null),p=be(f,t),m=(0,g.useRef)(0),h=(0,g.useRef)(),_=function(){var e=f.current,t=n&&h.current?h.current:function(e){var t=window.getComputedStyle(e);
6489if(t===null)return null;var n,r=(n=t,Te.reduce((function(e,t){return e[t]=n[t],e}),{})),i=r.boxSizing;return i===``?null:(Ee&&i===`border-box`&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+`px`),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){h.current=t;var a=function(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Ce||((Ce=document.createElement(`textarea`)).setAttribute(`tab-index`,`-1`),Ce.setAttribute(`aria-hidden`,`true`),Se(Ce)),Ce.parentNode===null&&document.body.appendChild(Ce);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;Ce.style[t]=o[t]})),Se(Ce),Ce.value=t;var c=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize}(Ce,e);Ce.value=`x`;var l=Ce.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),[c=Math.min(d,c),l]}(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];m.current!==o&&(m.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return(0,g.useLayoutEffect)(_),u=ve(_),(0,g.useLayoutEffect)((function(){var e=function(e){u.current(e)};return window.addEventListener(`resize`,e),function(){window.removeEventListener(`resize`,e)}}),[]),(0,g.createElement)(`textarea`,_e({},l,{onChange:function(e){d||_(),o(e)},ref:p}))});function Oe(e){e=e.trim();
6489try{if((e=JSON.stringify(JSON.parse(e)))[0]===`[`)return N(`array`,JSON.parse(e));if(e[0]===`{`)return N(`object`,JSON.parse(e));if(e.match(/\-?\d+\.\d+/)&&e.match(/\-?\d+\.\d+/)[0]===e)return N(`float`,parseFloat(e));if(e.match(/\-?\d+e-\d+/)&&e.match(/\-?\d+e-\d+/)[0]===e)return N(`float`,Number(e));if(e.match(/\-?\d+/)&&e.match(/\-?\d+/)[0]===e)return N(`integer`,parseInt(e));if(e.match(/\-?\d+e\+\d+/)&&e.match(/\-?\d+e\+\d+/)[0]===e)return N(`integer`,Number(e))}catch{}switch(e=e.toLowerCase()){case`undefined`:return N(`undefined`,void 0);case`nan`:return N(`nan`,NaN);case`null`:return N(`null`,null);case`true`:return N(`boolean`,!0);case`false`:return N(`boolean`,!1);default:if(e=Date.parse(e))return N(`date`,new Date(e))}return N(!1,null)}function N(e,t){return{type:e,value:t}}var ke=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 24 24`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`path`,{d:`M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7`})))}}]),n}(_.a.PureComponent),Ae=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 24 24`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`path`,{d:`M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z`})))}}]),n}(_.a.PureComponent),P=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]),r=I(t).style;return _.a.createElement(`span`,n,_.a.createElement(`svg`,{fill:r.color,width:r.height,height:r.width,style:r,viewBox:`0 0 1792 1792`},_.a.createElement(`path`,{d:`M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z`})))}}]),n}(_.a.PureComponent),je=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]),r=I(t).style;return _.a.createElement(`span`,n,_.a.createElement(`svg`,{fill:r.color,width:r.height,height:r.width,style:r,viewBox:`0 0 1792 1792`},_.a.createElement(`path`,{d:`M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z`})))}}]),n}(_.a.PureComponent),Me=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,{style:a(a({},I(t).style),{},{paddingLeft:`2px`,verticalAlign:`top`}
6489),viewBox:`0 0 15 15`,fill:`currentColor`},_.a.createElement(`path`,{d:`M0 14l6-6-6-6z`})))}}]),n}(_.a.PureComponent),Ne=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,{style:a(a({},I(t).style),{},{paddingLeft:`2px`,verticalAlign:`top`}),viewBox:`0 0 15 15`,fill:`currentColor`},_.a.createElement(`path`,{d:`M0 5l6 6 6-6z`})))}}]),n}(_.a.PureComponent),Pe=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`g`,null,_.a.createElement(`path`,{d:`m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z`}))))}}]),n}(_.a.PureComponent),Fe=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`g`,null,_.a.createElement(`path`,{d:`m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z`}))))}}]),n}(_.a.PureComponent),Ie=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`g`,null,_.a.createElement(`path`,{d:`m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z`}))))}}]),n}(_.a.PureComponent),Le=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`g`,null,_.a.createElement(`path`,{d:`m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z`}))))}}]),n}(_.a.PureComponent),Re=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`g`,null,_.a.createElement(`path`,{d:`m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2
64890.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z`}))))}}]),n}(_.a.PureComponent),F=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.style,n=S(e,[`style`]);return _.a.createElement(`span`,n,_.a.createElement(`svg`,Object.assign({},I(t),{viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`}),_.a.createElement(`g`,null,_.a.createElement(`path`,{d:`m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z`}))))}}]),n}(_.a.PureComponent);function I(e){return e||={},{style:a(a({verticalAlign:`middle`},e),{},{color:e.color?e.color:`#000000`,height:`1em`,width:`1em`})}}var ze=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).copiedTimer=null,r.handleCopy=function(){var e=document.createElement(`textarea`),t=r.props,n=t.clickCallback,i=t.src,a=t.namespace;e.innerHTML=JSON.stringify(r.clipboardValue(i),null,` `),document.body.appendChild(e),e.select(),document.execCommand(`copy`),document.body.removeChild(e),r.copiedTimer=setTimeout((function(){r.setState({copied:!1})}),5500),r.setState({copied:!0},(function(){typeof n==`function`&&n({src:i,namespace:a,name:a[a.length-1]})}))},r.getClippyIcon=function(){var e=r.props.theme;return r.state.copied?_.a.createElement(`span`,null,_.a.createElement(Pe,Object.assign({className:`copy-icon`},O(e,`copy-icon`))),_.a.createElement(`span`,O(e,`copy-icon-copied`),`â`)):_.a.createElement(Pe,Object.assign({className:`copy-icon`},O(e,`copy-icon`)))},r.clipboardValue=function(e){switch(C(e)){case`function`:case`regexp`:return e.toString();default:return e}},r.state={copied:!1},r}return c(n,[{key:`componentWillUnmount`,value:function(){this.copiedTimer&&=(clearTimeout(this.copiedTimer),null)}},{key:`render`,value:function(){var e=this.props,t=(e.src,e.theme),n=e.hidden,r=e.rowHovered,i=O(t,`copy-to-clipboard`).style,o=`inline`;return n&&(o=`none`),_.a.createElement(`span`,{className:`copy-to-clipboard-container`,title:`Copy to clipboard`,style:{verticalAlign:`top`,display:r?`inline-block`:`none`}},_.a.createElement(`span`,{style:a(a({},i),{},{display:o}),onClick:this.handleCopy},this.getClippyIcon()))}}]),n}(_.a.PureComponent),Be=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).getEditIcon=function(){var e=r.props,t=e.variable,n=e.theme;return _.a.createElement(`div`,{className:`click-to-edit`,style:{verticalAlign:`top`,display:r.state.hovered?`inline-block`:`none`}},_.a.createElement(Re,Object.assign({className:`click-to-edit-icon`},O(n,`editVarIcon`),{onClick:function(){r.prepopInput(t)}})))},r.prepopInput=function(e){if(!1!==r.props.onEdit){var t=function(e){var t;switch(C(e)){case`undefined`:t=`undefined`;break;case`nan`:t=`NaN`;break;case`string`:t=e;break;case`date`:case`function`:case`regexp`:t=e.toString();break;default:try{t=JSON.stringify(e,null,` `)}catch{t=``}}return t}(e.value),n=Oe(t);r.setState({editMode:!0,editValue:t,parsedInput:{type:n.type,value:n.value}})}},r.getRemoveIcon=function(){var e=r.props,t=e.variable,n=e.namespace,i=e.theme,a=e.rjvId;return _.a.createElement(`div`,{className:`click-to-remove`,style:{verticalAlign:`top`,display:r.state.hovered?`inline-block`:`none`}},_.a.createElement(Fe,Object.assign({className:`click-to-remove-icon`},O(i,`removeVarIcon`),{onClick:function(){ce.dispatch({name:`VARIABLE_REMOVED`,rjvId:a,data:{name:t.name,namespace:n,existing_value:t.value,variable_removed:!0}})}})))},r.getValue=function(e,t){var n=!t&&e.type,i=p(r).props;switch(n){case!1:return r.getEditInput();case`string`:return _.a.createElement(he,Object.assign({value:e.value},i));case`integer`:return _.a.createElement(pe,Object.assign({value:e.value},i));case`float`:return _.a.createElement(ie,Object.assign({value:e.value},i));case`boolean`:return _.a.createElement(ne,Object.assign({value:e.value},i));case`function`:return _.a.createElement(de,Object.assign({value:e.value},i));case`null`:return _.a.createElement(fe,i);case`nan`:return _.a.createElement(j,i);case`undefined`:return _.a.createElement(ge,i);case`date`:return _.a.createElement(re,Object.assign({value:e.value},i));case`regexp`:return _.a.createElement(me,Object.assign({value:e.value},i));default:return _.a.createElement(`div`,{className:`object-value`},JSON.stringify(e.value))}},r.getEditInput=function(){var e=r.props.theme,t=r.state.editValue;return _.a.createElement(`div`,null,_.a.createElement(De,Object.assign({type:`text`,inputRef:function(e){return e&&e.focus()},value:t,className:`variable-editor`,onChange:function(e){var t=e.target.value,n=Oe(t);
6489r.setState({editValue:t,parsedInput:{type:n.type,value:n.value}})},onKeyDown:function(e){switch(e.key){case`Escape`:r.setState({editMode:!1,editValue:``});break;case`Enter`:(e.ctrlKey||e.metaKey)&&r.submitEdit(!0)}e.stopPropagation()},placeholder:`update this value`,minRows:2},O(e,`edit-input`))),_.a.createElement(`div`,O(e,`edit-icon-container`),_.a.createElement(Fe,Object.assign({className:`edit-cancel`},O(e,`cancel-icon`),{onClick:function(){r.setState({editMode:!1,editValue:``})}})),_.a.createElement(F,Object.assign({className:`edit-check string-value`},O(e,`check-icon`),{onClick:function(){r.submitEdit()}})),_.a.createElement(`div`,null,r.showDetected())))},r.submitEdit=function(e){var t=r.props,n=t.variable,i=t.namespace,a=t.rjvId,o=r.state,s=o.editValue,c=o.parsedInput,l=s;e&&c.type&&(l=c.value),r.setState({editMode:!1}),ce.dispatch({name:`VARIABLE_UPDATED`,rjvId:a,data:{name:n.name,namespace:i,existing_value:n.value,new_value:l,variable_removed:!1}})},r.showDetected=function(){var e=r.props,t=e.theme,n=(e.variable,e.namespace,e.rjvId,r.state.parsedInput),i=(n.type,n.value,r.getDetectedInput());if(i)return _.a.createElement(`div`,null,_.a.createElement(`div`,O(t,`detected-row`),i,_.a.createElement(F,{className:`edit-check detected`,style:a({verticalAlign:`top`,paddingLeft:`3px`},O(t,`check-icon`).style),onClick:function(){r.submitEdit(!0)}})))},r.getDetectedInput=function(){var e=r.state.parsedInput,t=e.type,n=e.value,i=p(r).props,o=i.theme;if(!1!==t)switch(t.toLowerCase()){case`object`:return _.a.createElement(`span`,null,_.a.createElement(`span`,{style:a(a({},O(o,`brace`).style),{},{cursor:`default`})},`{`),_.a.createElement(`span`,{style:a(a({},O(o,`ellipsis`).style),{},{cursor:`default`})},`...`),_.a.createElement(`span`,{style:a(a({},O(o,`brace`).style),{},{cursor:`default`})},`}`));case`array`:return _.a.createElement(`span`,null,_.a.createElement(`span`,{style:a(a({},O(o,`brace`).style),{},{cursor:`default`})},`[`),_.a.createElement(`span`,{style:a(a({},O(o,`ellipsis`).style),{},{cursor:`default`})},`...`),_.a.createElement(`span`,{style:a(a({},O(o,`brace`).style),{},{cursor:`default`})},`]`));case`string`:return _.a.createElement(he,Object.assign({value:n},i));case`integer`:return _.a.createElement(pe,Object.assign({value:n},i));case`float`:return _.a.createElement(ie,Object.assign({value:n},i));case`boolean`:return _.a.createElement(ne,Object.assign({value:n},i));case`function`:return _.a.createElement(de,Object.assign({value:n},i));case`null`:return _.a.createElement(fe,i);case`nan`:return _.a.createElement(j,i);case`undefined`:return _.a.createElement(ge,i);case`date`:return _.a.createElement(re,Object.assign({value:new Date(n)},i))}},r.state={editMode:!1,editValue:``,hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},r}return c(n,[{key:`render`,value:function(){var e=this,t=this.props,n=t.variable,r=t.singleIndent,i=t.type,o=t.theme,s=t.namespace,c=t.indentWidth,l=t.enableClipboard,u=t.onEdit,d=t.onDelete,f=t.onSelect,p=t.displayArrayKey,m=t.quotesOnKeys,h=this.state.editMode;return _.a.createElement(`div`,Object.assign({},O(o,`objectKeyVal`,{paddingLeft:c*r}),{onMouseEnter:function(){return e.setState(a(a({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(a(a({},e.state),{},{hovered:!1}))},className:`variable-row`,key:n.name}),i==`array`?p?_.a.createElement(`span`,Object.assign({},O(o,`array-key`),{key:n.name+`_`+s}),n.name,_.a.createElement(`div`,O(o,`colon`),`:`)):null:_.a.createElement(`span`,null,_.a.createElement(`span`,Object.assign({},O(o,`object-name`),{className:`object-key`,key:n.name+`_`+s}),!!m&&_.a.createElement(`span`,{style:{verticalAlign:`top`}},`"`),_.a.createElement(`span`,{style:{display:`inline-block`}},n.name),!!m&&_.a.createElement(`span`,{style:{verticalAlign:`top`}},`"`)),_.a.createElement(`span`,O(o,`colon`),`:`)),_.a.createElement(`div`,Object.assign({className:`variable-value`,onClick:!1===f&&!1===u?null:function(t){var r=oe(s);(t.ctrlKey||t.metaKey)&&!1!==u?e.prepopInput(n):!1!==f&&(r.shift(),f(a(a({},n),{},{namespace:r})))}},O(o,`variableValue`,{cursor:!1===f?`default`:`pointer`})),this.getValue(n,h)),l?_.a.createElement(ze,{rowHovered:this.state.hovered,hidden:h,src:n.value,clickCallback:l,theme:o,namespace:[].
6489concat(oe(s),[n.name])}):null,!1!==u&&h==0?this.getEditIcon():null,!1!==d&&h==0?this.getRemoveIcon():null)}}]),n}(_.a.PureComponent),Ve=function(e){u(n,e);var t=h(n);function n(){var e;o(this,n);var r=[...arguments];return(e=t.call.apply(t,[this].concat(r))).getObjectSize=function(){var t=e.props,n=t.size,r=t.theme;if(t.displayObjectSize)return _.a.createElement(`span`,Object.assign({className:`object-size`},O(r,`object-size`)),n,` item`,n===1?``:`s`)},e.getAddAttribute=function(t){var n=e.props,r=n.theme,i=n.namespace,o=n.name,s=n.src,c=n.rjvId,l=n.depth;return _.a.createElement(`span`,{className:`click-to-add`,style:{verticalAlign:`top`,display:t?`inline-block`:`none`}},_.a.createElement(Ie,Object.assign({className:`click-to-add-icon`},O(r,`addVarIcon`),{onClick:function(){var e={name:l>0?o:null,namespace:i.splice(0,i.length-1),existing_value:s,variable_removed:!1,key_name:null};C(s)===`object`?ce.dispatch({name:`ADD_VARIABLE_KEY_REQUEST`,rjvId:c,data:e}):ce.dispatch({name:`VARIABLE_ADDED`,rjvId:c,data:a(a({},e),{},{new_value:[].concat(oe(s),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,r=n.theme,i=(n.hover,n.namespace),a=n.name,o=n.src,s=n.rjvId;if(i.length!==1)return _.a.createElement(`span`,{className:`click-to-remove`,style:{display:t?`inline-block`:`none`}},_.a.createElement(Fe,Object.assign({className:`click-to-remove-icon`},O(r,`removeVarIcon`),{onClick:function(){ce.dispatch({name:`VARIABLE_REMOVED`,rjvId:s,data:{name:a,namespace:i.splice(0,i.length-1),existing_value:o,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,r=t.onDelete,i=t.onAdd,a=t.enableClipboard,o=t.src,s=t.namespace,c=t.rowHovered;return _.a.createElement(`div`,Object.assign({},O(n,`object-meta-data`),{className:`object-meta-data`,onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),a?_.a.createElement(ze,{rowHovered:c,clickCallback:a,src:o,theme:n,namespace:s}):null,!1===i?null:e.getAddAttribute(c),!1===r?null:e.getRemoveObject(c))},e}return n}(_.a.PureComponent);function He(e){var t=e.parent_type,n=e.namespace,r=e.quotesOnKeys,i=e.theme,a=e.jsvRoot,o=e.name,s=e.displayArrayKey,c=e.name?e.name:``;return!a||!1!==o&&o!==null?t==`array`?s?_.a.createElement(`span`,Object.assign({},O(i,`array-key`),{key:n}),_.a.createElement(`span`,{className:`array-key`},c),_.a.createElement(`span`,O(i,`colon`),`:`)):_.a.createElement(`span`,null):_.a.createElement(`span`,Object.assign({},O(i,`object-name`),{key:n}),_.a.createElement(`span`,{className:`object-key`},r&&_.a.createElement(`span`,{style:{verticalAlign:`top`}},`"`),_.a.createElement(`span`,null,c),r&&_.a.createElement(`span`,{style:{verticalAlign:`top`}},`"`)),_.a.createElement(`span`,O(i,`colon`),`:`)):_.a.createElement(`span`,null)}function Ue(e){var t=e.theme;switch(e.iconStyle){case`triangle`:return _.a.createElement(Ne,Object.assign({},O(t,`expanded-icon`),{className:`expanded-icon`}));case`square`:return _.a.createElement(P,Object.assign({},O(t,`expanded-icon`),{className:`expanded-icon`}));default:return _.a.createElement(ke,Object.assign({},O(t,`expanded-icon`),{className:`expanded-icon`}))}}function We(e){var t=e.theme;switch(e.iconStyle){case`triangle`:return _.a.createElement(Me,Object.assign({},O(t,`collapsed-icon`),{className:`collapsed-icon`}));case`square`:return _.a.createElement(je,Object.assign({},O(t,`collapsed-icon`),{className:`collapsed-icon`}));default:return _.a.createElement(Ae,Object.assign({},O(t,`collapsed-icon`),{className:`collapsed-icon`}))}}var Ge=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).toggleCollapsed=function(e){var t=[];for(var n in r.state.expanded)t.push(r.state.expanded[n]);t[e]=!t[e],r.setState({expanded:t})},r.state={expanded:[]},r}return c(n,[{key:`getExpandedIcon`,value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?_.a.createElement(Ue,{theme:n,iconStyle:r}):_.a.createElement(We,{theme:n,iconStyle:r})}},{key:`render`,value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,i=(t.depth,t.name),a=t.theme,o=t.jsvRoot,s=t.namespace,c=(t.parent_type,S(t,[`src`,`groupArraysAfterLength`,`depth`,`name`,`theme`,`jsvRoot`,`namespace`,`parent_type`])),l=0,u=5*this.props.indentWidth;o||(l=5*this.props.indentWidth);var d=r,f=Math.ceil(n.length/d);return _.a.createElement(`div`,Object.assign({className:`object-key-val`},O(a,o?`jsv-root`:`objectKeyVal`,{paddingLeft:l})),_.a.createElement(He,this.props),_.a.createElement(`span`,null,_.a.createElement(Ve,Object.assign({size:n.length},this.props))),oe(Array(f)).map((function(t,r){return _.a.createElement(`div`,Object.assign({key:r,className:`object-key-val array-group`},O(a,`objectKeyVal`,{marginLeft:6,paddingLeft:u})),_.a.createElement(`span`,O(a,`brace-row`),_.a.createElement(`div`,Object.assign({className:`icon-container`},O(a,`icon-container`),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?_.a.createElement(Je,Object.assign({key:i+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:n.slice(r*d,r*d+d),namespace:s,type:`array`,parent_type:`array_group`,theme:a}
6489,c)):_.a.createElement(`span`,Object.assign({},O(a,`brace`),{onClick:function(t){e.toggleCollapsed(r)},className:`array-group-brace`}),`[`,_.a.createElement(`div`,Object.assign({},O(a,`array-group-meta-data`),{className:`array-group-meta-data`}),_.a.createElement(`span`,Object.assign({className:`object-size`},O(a,`object-size`)),r*d,` - `,r*d+d>n.length?n.length:r*d+d)),`]`)))})))}}]),n}(_.a.PureComponent),Ke=function(e){u(n,e);var t=h(n);function n(e){var r;o(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({expanded:!r.state.expanded},(function(){ue.set(r.props.rjvId,r.props.namespace,`expanded`,r.state.expanded)}))},r.getObjectContent=function(e,t,n){return _.a.createElement(`div`,{className:`pushed-content object-container`},_.a.createElement(`div`,Object.assign({className:`object-content`},O(r.props.theme,`pushed-content`)),r.renderObjectContents(t,n)))},r.getEllipsis=function(){return r.state.size===0?null:_.a.createElement(`div`,Object.assign({},O(r.props.theme,`ellipsis`),{className:`node-ellipsis`,onClick:r.toggleCollapsed}),`...`)},r.getObjectMetaData=function(e){var t=r.props,n=(t.rjvId,t.theme,r.state),i=n.size,a=n.hovered;return _.a.createElement(Ve,Object.assign({rowHovered:a,size:i},r.props))},r.renderObjectContents=function(e,t){var n,i=r.props,a=i.depth,o=i.parent_type,s=i.index_offset,c=i.groupArraysAfterLength,l=i.namespace,u=r.state.object_type,d=[],f=Object.keys(e||{});return r.props.sortKeys&&u!==`array`&&(f=f.sort()),f.forEach((function(i){if(n=new qe(i,e[i]),o===`array_group`&&s&&(n.name=parseInt(n.name)+s),e.hasOwnProperty(i))if(n.type===`object`)d.push(_.a.createElement(Je,Object.assign({key:n.name,depth:a+1,name:n.name,src:n.value,namespace:l.concat(n.name),parent_type:u},t)));else if(n.type===`array`){var f=Je;c&&n.value.length>c&&(f=Ge),d.push(_.a.createElement(f,Object.assign({key:n.name,depth:a+1,name:n.name,src:n.value,namespace:l.concat(n.name),type:`array`,parent_type:u},t)))}else d.push(_.a.createElement(Be,Object.assign({key:n.name+`_`+l,variable:n,singleIndent:5,namespace:l,type:r.props.type},t)))})),d};var i=n.getState(e);return r.state=a(a({},i),{},{prevProps:{}}),r}return c(n,[{key:`getBraceStart`,value:function(e,t){var n=this,r=this.props,i=r.src,a=r.theme,o=r.iconStyle;if(r.parent_type===`array_group`)return _.a.createElement(`span`,null,_.a.createElement(`span`,O(a,`brace`),e===`array`?`[`:`{`),t?this.getObjectMetaData(i):null);var s=t?Ue:We;return _.a.createElement(`span`,null,_.a.createElement(`span`,Object.assign({onClick:function(e){n.toggleCollapsed()}},O(a,`brace-row`)),_.a.createElement(`div`,Object.assign({className:`icon-container`},O(a,`icon-container`)),_.a.createElement(s,{theme:a,iconStyle:o})),_.a.createElement(He,this.props),_.a.createElement(`span`,O(a,`brace`),e===`array`?`[`:`{`)),t?this.getObjectMetaData(i):null)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.depth,r=t.src,i=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,s=t.jsvRoot,c=t.iconStyle,l=S(t,[`depth`,`src`,`namespace`,`name`,`type`,`parent_type`,`theme`,`jsvRoot`,`iconStyle`]),u=this.state,d=u.object_type,f=u.expanded,p={};return s||i===`array_group`?i===`array_group`&&(p.borderLeft=0,p.display=`inline`):p.paddingLeft=5*this.props.indentWidth,_.a.createElement(`div`,Object.assign({className:`object-key-val`,onMouseEnter:function(){return e.setState(a(a({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(a(a({},e.state),{},{hovered:!1}))}},O(o,s?`jsv-root`:`objectKeyVal`,p)),this.getBraceStart(d,f),f?this.getObjectContent(n,r,a({theme:o,iconStyle:c},l)):this.getEllipsis(),_.a.createElement(`span`,{className:`brace-row`},_.a.createElement(`span`,{style:a(a({},O(o,`brace`).style),{},{paddingLeft:f?`3px`:`0px`})},d===`array`?`]`:`}`),f?null:this.getObjectMetaData(r)))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var r=t.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?a(a({},n.getState(e)),{},{prevProps:e}):null}}]),n}(_.a.PureComponent);Ke.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:C(e.src),namespace:e.namespace}))&&t!==0;return{expanded:ue.get(e.rjvId,e.namespace,`expanded`,n),object_type:e.type===`array`?`array`:`object`,parent_type:e.type===`array`?`array`:`object`,size:t,hovered:!1}};var qe=function e(t,n){o(this,e),this.name=t,this.value=n,this.type=C(n)};x(Ke);var Je=Ke,Ye=function(e){u(n,e);var t=h(n);function n(){var e;o(this,n);var r=[...arguments];return(e=t.call.apply(t,[this].concat(r))).render=function(){var t=p(e).props,n=[t.name],r=Je;return Array.isArray(t.src)&&t.groupArraysAfterLength&&t.src.length>t.groupArraysAfterLength&&(r=Ge),_.a.createElement(`div`,{className:`pretty-json-container object-container`},_.a.createElement(`div`,{className:`object-content`},_.a.createElement(r,Object.assign({namespace:n,depth:0,jsvRoot:!0},t))))},e}return n}(_.a.PureComponent),Xe=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).closeModal=function(){ce.dispatch({rjvId:r.props.rjvId,name:`RESET`})},r.submit=function(){r.props.submit(r.state.input)},r.state={input:e.input?e.input:``},r}return c(n,[{key:`render`,value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,i=t.isValid,a=this.state.input,o=i(a);
6489return _.a.createElement(`div`,Object.assign({className:`key-modal-request`},O(n,`key-modal-request`),{onClick:this.closeModal}),_.a.createElement(`div`,Object.assign({},O(n,`key-modal`),{onClick:function(e){e.stopPropagation()}}),_.a.createElement(`div`,O(n,`key-modal-label`),`Key Name:`),_.a.createElement(`div`,{style:{position:`relative`}},_.a.createElement(`input`,Object.assign({},O(n,`key-modal-input`),{className:`key-modal-input`,ref:function(e){return e&&e.focus()},spellCheck:!1,value:a,placeholder:`...`,onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){o&&t.key===`Enter`?e.submit():t.key===`Escape`&&e.closeModal()}})),o?_.a.createElement(F,Object.assign({},O(n,`key-modal-submit`),{className:`key-modal-submit`,onClick:function(t){return e.submit()}})):null),_.a.createElement(`span`,O(n,`key-modal-cancel`),_.a.createElement(Le,Object.assign({},O(n,`key-modal-cancel-icon`),{className:`key-modal-cancel`,onClick:function(){ce.dispatch({rjvId:r,name:`RESET`})}})))))}}]),n}(_.a.PureComponent),Ze=function(e){u(n,e);var t=h(n);function n(){var e;o(this,n);var r=[...arguments];return(e=t.call.apply(t,[this].concat(r))).isValid=function(t){var n=e.props.rjvId,r=ue.get(n,`action`,`new-key-request`);return t!=``&&Object.keys(r.existing_value).indexOf(t)===-1},e.submit=function(t){var n=e.props.rjvId,r=ue.get(n,`action`,`new-key-request`);r.new_value=a({},r.existing_value),r.new_value[t]=e.props.defaultValue,ce.dispatch({name:`VARIABLE_ADDED`,rjvId:n,data:r})},e}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.active,n=e.theme,r=e.rjvId;return t?_.a.createElement(Xe,{rjvId:r,theme:n,isValid:this.isValid,submit:this.submit}):null}}]),n}(_.a.PureComponent),Qe=function(e){u(n,e);var t=h(n);function n(){return o(this,n),t.apply(this,arguments)}return c(n,[{key:`render`,value:function(){var e=this.props,t=e.message,n=e.active,r=e.theme,i=e.rjvId;return n?_.a.createElement(`div`,Object.assign({className:`validation-failure`},O(r,`validation-failure`),{onClick:function(){ce.dispatch({rjvId:i,name:`RESET`})}}),_.a.createElement(`span`,O(r,`validation-failure-label`),t),_.a.createElement(Le,O(r,`validation-failure-clear`))):null}}]),n}(_.a.PureComponent),$e=function(e){u(n,e);var t=h(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).rjvId=Date.now().toString(),r.getListeners=function(){return{reset:r.resetState,"variable-update":r.updateSrc,"add-key-request":r.addKeyRequest}},r.updateSrc=function(){var e,t=ue.get(r.rjvId,`action`,`variable-update`),n=t.name,i=t.namespace,a=t.new_value,o=t.existing_value,s=(t.variable_removed,t.updated_src),c=t.type,l=r.props,u=l.onEdit,d=l.onDelete,f=l.onAdd,p={existing_src:r.state.src,new_value:a,updated_src:s,name:n,namespace:i,existing_value:o};switch(c){case`variable-added`:e=f(p);break;case`variable-edited`:e=u(p);break;case`variable-removed`:e=d(p)}!1===e?r.setState({validationFailure:!0}):(ue.set(r.rjvId,`global`,`src`,s),r.setState({src:s}))},r.addKeyRequest=function(){r.setState({addKeyRequest:!0})},r.resetState=function(){r.setState({validationFailure:!1,addKeyRequest:!1})},r.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:n.defaultProps.src,name:n.defaultProps.name,theme:n.defaultProps.theme,validationMessage:n.defaultProps.validationMessage,prevSrc:n.defaultProps.src,prevName:n.defaultProps.name,prevTheme:n.defaultProps.theme},r}return c(n,[{key:`componentDidMount`,value:function(){ue.set(this.rjvId,`global`,`src`,this.state.src);var e=this.getListeners();for(var t in e)ue.on(t+`-`+this.rjvId,e[t]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:`componentDidUpdate`,value:function(e,t){!1!==t.addKeyRequest&&this.setState({addKeyRequest:!1}),!1!==t.editKeyRequest&&this.setState({editKeyRequest:!1}),e.src!==this.state.src&&ue.set(this.rjvId,`global`,`src`,this.state.src)}},{key:`componentWillUnmount`,value:function(){var e=this.getListeners();for(var t in e)ue.removeListener(t+`-`+this.rjvId,e[t])}},{key:`render`,value:function(){var e=this.state,t=e.validationFailure,n=e.validationMessage,r=e.addKeyRequest,i=e.theme,o=e.src,s=e.name,c=this.props,l=c.style,u=c.defaultValue;return _.a.createElement(`div`,{className:`react-json-view`,style:a(a({},O(i,`app-container`).style),l)},_.a.createElement(Qe,{message:n,active:t,theme:i,rjvId:this.rjvId}),_.a.createElement(Ye,Object.assign({},this.props,{src:o,name:s,theme:i,type:C(o),rjvId:this.rjvId})),_.a.createElement(Ze,{active:r,theme:i,rjvId:this.rjvId,defaultValue:u}))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){if(e.src!==t.prevSrc||e.name!==t.prevName||e.theme!==t.prevTheme){var r={src:e.src,name:e.name,theme:e.theme,validationMessage:e.validationMessage,prevSrc:e.src,prevName:e.name,prevTheme:e.theme};return n.validateState(r)}return null}}]),n}(_.a.PureComponent);$e.defaultProps={src:{},name:`root`,theme:`rjv-default`,collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:`triangle`,style:{},validationMessage:`Validation Error`,defaultValue:null,displayArrayKey:!0},$e.validateState=function(e){var t={};return C(e.theme)!==`object`||function(e){var t=[`base00`,`base01`,`base02`,`base03`,`base04`,`base05`,`base06`,`base07`,`base08`,`base09`,`base0A`,`base0B`,`base0C`,`base0D`,`base0E`,`base0F`];
6489if(C(e)===`object`){for(var n=0;n<t.length;n++)if(!(t[n]in e))return!1;return!0}return!1}(e.theme)||(console.error(`react-json-view error:`,`theme prop must be a theme name or valid base-16 theme object.`,`defaulting to "rjv-default" theme`),t.theme=`rjv-default`),C(e.src)!==`object`&&C(e.src)!==`array`&&(console.error(`react-json-view error:`,`src property must be a valid json object`),t.name=`ERROR`,t.src={message:`src property must be a valid json object`}),a(a({},e),t)},x($e),t.default=$e}])}))})),Mve=e($N()),eP,tP,Nve=N.div` 6490 display: grid; 6491 grid-template-columns: repeat(9, 42px); 6492 grid-auto-rows: 42px; 6493 gap: 5px; 6494 padding: 4px 10px; 6495 background: white; 6496 box-sizing: border-box; 6497 width: 438px; 6498`,Pve=N.div` 6499 position: fixed; 6500 width: 100%; 6501 height: 100%; 6502 top: 0; 6503 left: 0; 6504 right: 0; 6505 bottom: 0; 6506 z-index: 0; 6507`,Fve=M(j(eP=(tP=class extends V.Component{render(){return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Pve,{onClick:this.props.onClose}),(0,K.jsx)(ID,{show:!0,boxShadow:this.props.boxShadow,arrowPosition:this.props.arrowPosition,arrowPositionLeft:this.props.arrowPositionLeft,arrowPositionRight:this.props.arrowPositionRight,width:`440px`,height:`150px`,zIndex:this.props.zIndex,top:this.props.arrowBoxTop,bottom:this.props.arrowBoxBottom,left:this.props.arrowBoxLeft,right:this.props.arrowBoxRight,children:(0,K.jsx)(Nve,{children:q.Constants.FEEDBACK_OPTIONS.map(e=>(0,W.isBlank)(e.site)||e.site.includes(U.AppUI.site.id)?(0,K.jsx)(GN,{margin:`0`,onClick:()=>this.props.onClick(e.feedbackType),children:(0,K.jsx)(qN,{image:e.image})},e.feedbackType):null)})})]})}},tP.defaultProps={arrowBoxBottom:`35px`,arrowBoxLeft:`-20px`,arrowPosition:`bottom`,zIndex:q.Theme.z[`dropdown-foreground`]},tP))||eP),nP,Ive=N.div` 6508 display: flex; 6509 align-items: center; 6510 position: ${e=>e.topRight?`absolute`:`relative`}; 6511 top: ${e=>e.topRight?`-10px`:null}; 6512 right: ${e=>e.topRight?e.topRightRight:null}; 6513 margin-top: 10px; 6514 margin-right: ${e=>e.topRight?0:`10px`}; 6515 @media only screen and (min-width : 650px) and (hover: hover) and (pointer: fine) { 6516 opacity: ${e=>+!e.topRight}; 6517 pointer-events: ${e=>e.topRight?`none`:`auto`}; 6518 transition: opacity 0.12s ease-in-out; 6519 } 6520`,Lve=N.div` 6521 display: flex; 6522 align-items: center; 6523 gap: 5px; 6524 overflow: visible; 6525`,rP=N(ea)` 6526 height: 30px; 6527 margin: 0; 6528 padding: 0; 6529 width: 32px; 6530 .reply-icon { 6531 width: 16px; 6532 svg { 6533 width: 16px; 6534 } 6535 } 6536 .smile-icon { 6537 width: 13px; 6538 } 6539 .reaction-smile-icon { 6540 width: 18px; 6541 } 6542 .horizontal-three-dots-icon { 6543 height: 5px; 6544 width: 16px; 6545 } 6546 .reply-icon, .smile-icon, .reaction-smile-icon, .horizontal-three-dots-icon { 6547 fill: #525252; 6548 } 6549`,Rve=N.ul` 6550 min-width: ${e=>e.dropdownWidth}; 6551 .icon-wrapper { 6552 > div { 6553 width: 14px; 6554 } 6555 svg { 6556 width: 14px; 6557 height: 14px; 6558 } 6559 } 6560 .delete-button-outer-wrapper, 6561 .delete-button-wrapper { 6562 display: block; 6563 width: 100%; 6564 } 6565`,iP=({background:e,className:t,color:n,style:r,...i})=>(0,K.jsx)(`li`,{...i,className:[`on-click`,t].filter(e=>e).join(` `),style:{...r,"--dropdown-item-background":e,"--dropdown-item-color":n}}),aP=M(j(nP=class extends V.Component{render(){let e=(this.props.adminItems||[]).filter(e=>e);if(!this.props.showReply&&!this.props.showFeedback&&e.length===0&&!this.props.children)return null;let t=this.props.dropdownWidth||(e.some(e=>[`auto-hide`,`seen-by-admin`].includes(e.key))?`165px`:`145px`);return(0,K.jsxs)(Ive,{className:`comment-reaction`,topRight:this.props.topRight,topRightRight:this.props.topRightRight||`20px`,children:[(0,K.jsxs)(Lve,{children:[this.props.showReply&&(0,K.jsx)(rP,{onClick:this.props.onReply,title:`Reply`,type:`button`,children:(0,K.jsx)(J.ReplyIcon,{})}),this.props.showFeedback&&(0,K.jsx)(rP,{onClick:this.props.onToggleFeedback,title:`Add Reaction`,type:`button`,children:(0,K.jsx)(J.ReactionSmileIcon,{})}),this.props.children,e.length>0&&(0,K.jsxs)(Rh,{backgroundOnHover:this.props.backgroundOnHover,closeOnDropdownClick:!0,dropdownWidth:t,showOnClick:!0,textAlign:`left`,top:`32px`,right:`0`,children:[(0,K.jsx)(rP,{title:`More`,type:`button`,children:(0,K.jsx)(J.HorizontalThreeDotsIcon,{})}),(0,K.jsx)(Rve,{dropdownWidth:t,children:e})]})]}),this.props.expandFeedback&&(0,K.jsx)(Fve,{arrowBoxBottom:null,arrowBoxLeft:null,arrowBoxRight:`0`,arrowBoxTop:`37px`,arrowPosition:`top`,arrowPositionRight:`43px`,boxShadow:`0px 2px 7px rgba(0, 0, 0, 0.25)`,onClose:this.props.onToggleFeedback,onClick:this.props.onClickFeedback})]})}})||nP);w(),me();var oP,zve=[`concept`,`triad`,`trivia`],Bve=[`vocab`,`case`,`plural`,`synonym`,`gender`,`number`,`conjugation`],Vve=N.div` 6566 position: relative; 6567 margin: ${e=>e.margin}; 6568 padding: ${e=>e.padding}; 6569 width: ${e=>e.width}; 6570 scroll-margin-top: ${(0,W.pixify)(q.Layout.DESKTOP_HEADER_HEIGHT)}; 6571 a { 6572 text-decoration: underline; 6573 } 6574 ul { 6575 margin-left: 20px; 6576 li { 6577 list-style-type: disc; 6578 } 6579 } 6580 h1, h2, h3, h4, h5, h6 { 6581 margin: 10px 0; 6582 } 6583 .reply-icon, .smile-icon, .pencil-icon, .eye-icon, .pin-icon { 6584 fill: #333; 6585 } 6586 img { 6587 max-width: 500px; 6588 max-height: 500px; 6589 } 6590 .reply-icon { 6591 width: 12px; 6592 margin-right: 3px; 6593 } 6594 .smile-icon { 6595 width: 11px; 6596 } 6597 .eye-icon { 6598 width: 14px; 6599 height: 10px; 6600 } 6601 .pencil-icon { 6602 width: 10px; 6603 } 6604 .pin-icon { 6605 width: 11px; 6606 margin-right: 4px; 6607 } 6608 .pencil-icon, .smile-icon, .eye-icon { 6609 margin-right: 4px; 6610 } 6611 i { 6612 color: #333; 6613 font-size: 12px; 6614 margin: -1px 4px 0 0; 6615 } 6616`,Hve=N.div` 6617 margin: ${e=>e.margin}; 6618 border: ${e=>e.border}; 6619 position: relative; 6620 display: flex; 6621 padding: ${e=>e.padding}; 6622 flex-direction: column; 6623 width: ${e=>e.isReply?`75%`:`auto`}; 6624 border-radius: ${e=>e.isReply?`10px`:`5px`}; 6625 background: ${e=>e.background}; 6626 @media only screen and (max-width : 649px) { 6627 margin-left: ${e=>(0,W.pixify)(e.mobileOffset)}; 6628 background: ${e=>e.selected||e.unseen?e.background:`transparent`}; 6629 }
6630 @media only screen and (min-width : 650px) and (hover: hover) and (pointer: fine) { 6631 &:hover .comment-reaction { 6632 opacity: 1; 6633 pointer-events: auto; 6634 } 6635 } 6636`,Uve=N.div` 6637 position: absolute; 6638 top: 0; 6639 bottom: 0; 6640 left: ${e=>e.left}; 6641 width: 1px; 6642 background: #dedede; 6643 @media only screen and (max-width : 649px) { 6644 display: ${e=>e.hiddenOnMobile?`none`:`block`}; 6645 } 6646`,Wve=N.div` 6647 display: flex; 6648 flex-direction: row; 6649 overflow: visible; 6650`,Gve=N.div` 6651 display: flex; 6652 flex-direction: column; 6653 align-items: center; 6654 margin: 0 20px 0 0; 6655`,Kve=N.div` 6656 position: relative; 6657 flex: 1; 6658 text-align: left; 6659 word-break: break-word; 6660 overflow-wrap: break-word; 6661`,qve=N.div` 6662 display: flex; 6663 align-items: center; 6664 line-height: 18px; 6665`,Jve=N.div` 6666 display: flex; 6667 align-items: center; 6668`,Yve=N.div` 6669 display: ${e=>e.compactCommentLayout?e.mobileOnly?`block`:`none`:e.mobileOnly?`none`:`block`}; 6670 font-size: 11px; 6671 line-height: 16px; 6672 color: #9c9c9c; 6673 font-style: italic; 6674 margin-left: ${e=>e.compactCommentLayout&&e.mobileOnly?0:`8px`}; 6675 margin-top: ${e=>e.compactCommentLayout&&e.mobileOnly?`-3px`:0}; 6676 @media only screen and (max-width : 649px) { 6677 display: ${e=>e.mobileOnly?`block`:`none`}; 6678 margin: ${e=>e.mobileOnly?`-3px 0 0 0`:null}; 6679 } 6680`,Xve=N.div` 6681 display: flex; 6682 justify-content: flex-end; 6683 margin: 0; 6684`,Zve=N.div` 6685 background: ${q.Theme.orange}; 6686 color: white; 6687 font-size: 11px; 6688 line-height: 14px; 6689 margin-top: 6px; 6690 padding: 2px 7px; 6691 border-radius: 5px; 6692`,Qve=N.div` 6693 text-align: right; 6694`,$ve=N.div` 6695 max-height: 500px; 6696 overflow: auto; 6697 border: 1px solid #9c9c9c; 6698 border-radius: 5px; 6699 padding: 10px; 6700 margin-top: 10px; 6701`,eye=N.div` 6702 display: grid; 6703 grid-template-columns: max-content 1fr; 6704 column-gap: 15px; 6705 row-gap: 8px; 6706 padding-bottom: 10px; 6707 margin-bottom: 10px; 6708 border-bottom: 1px solid #ddd; 6709`,sP=N.div` 6710 display: contents; 6711`,cP=N.div` 6712 color: #777; 6713 font-size: 12px; 6714 font-weight: bold; 6715`,lP=N.div` 6716 font-size: 14px; 6717`,tye=N(lP)` 6718 display: flex; 6719 align-items: center; 6720`,nye=N.i` 6721 && { 6722 width: 16px; 6723 margin: 0 7px 0 0; 6724 color: #333; 6725 font-size: 16px; 6726 line-height: 1; 6727 text-align: center; 6728 } 6729`,rye=j(oP=class extends V.Component{constructor(e){super(e),this.handleCopyLink=()=>{let e=this.props.comment.id,t=`${window.location.origin}${window.location.pathname}${window.location.search}#comment-${e}`;navigator.clipboard.writeText(t).then(()=>{this.setState({showCopyConfirmation:!0}),setTimeout(()=>{this.setState({showCopyConfirmation:!1})},2e3)}
6729).catch(e=>{console.error(`Failed to copy link: `,e)})},this.state={showCopyConfirmation:!1}}get commentLayout(){return this.props.commentLayout?this.props.commentLayout:this.props.compactCommentLayout?`compact`:this.props.alignWithForumPost?`forum`:`embedded`}get commentPaddingTop(){return String((0,W.pixify)(this.props.padding)).split(` `)[0]}get isReply(){return this.props.comment.depth>0}get outerPadding(){return this.isReply?`6px 0`:this.commentLayout===`forum`?`10px 0 10px 0`:`calc(${this.commentPaddingTop} - 10px) 0 10px 0`}get innerPadding(){return this.isReply?`18px 14px 13px 14px`:this.commentLayout===`embedded`?`10px 20px 10px 20px`:`10px 0 0 0`}get alignActionsWithContent(){return this.commentLayout===`forum`}get threadDepth(){return Math.min(this.props.compactCommentLayout?1:4,this.props.comment.depth||0)}get mobileOffset(){return Math.min(1,this.props.comment.depth||0)*this.props.indentation}get commentContentOffset(){return(0,W.pixify)(this.props.userProfileImageSize+20)}get reactionBarOffset(){return(0,W.pixify)(this.props.userProfileImageSize+25)}get commentBackground(){return this.showSeenStatus&&this.props.comment.seenByAdmin===!1?`#fdfae2`:this.props.selected?q.Theme.lightBlue:this.isReply?q.Theme.softButtonBackground:`#fff`}get showSeenStatus(){return U.AppUI.siteIsDefault&&(U.AppUI.user.admin||U.AppUI.user.moderator)&&this.props.commentableType===`ForumThread`&&!this.props.comment.deleted}get debugInfo(){return this.props.comment.debugInfoJson}get debugDeckInfo(){return this.debugInfo?.deck_info||{}}get debugUserInfo(){return this.debugInfo?.user_info||{}}get debugDeckName(){let e=this.debugDeckInfo.deck_type,t=this.debugDeckInfo.deck_name;return e===`review`?`Review deck`:Bve.includes(e)?`${e.charAt(0).toUpperCase()}${e.slice(1)} Trainer`:t&&t.toLowerCase()!==`unknown`?t:e||`Unknown`}get debugDeckHasBuilderLink(){return zve.includes(this.debugDeckInfo.deck_type)&&this.debugDeckInfo.deck_id}get debugCardTypeSlug(){return this.debugInfo?.card?.card_type_slug||this.debugInfo?.animation_cards?.[0]?.card_type}get debugCardId(){return this.debugInfo?.card?.id||this.debugInfo?.animation_cards?.[0]?.card_id}get debugCardType(){return this.debugCardTypeSlug&&q.Constants.REVIEW_CARD_TYPES.find(e=>e.slug===this.debugCardTypeSlug)?.name||`Unknown`}get debugPlatform(){if(this.debugUserInfo.is_native===`â`){if(this.debugUserInfo.device_os===`ios`)return`iOS`;if(this.debugUserInfo.device_os===`android`)return`Android`}return this.debugUserInfo.viewport_width<700?`Mobile web`:`Web`}renderThreadLines(){return this.threadDepth===0?null:Array.from({length:this.threadDepth},(e,t)=>(0,K.jsx)(Uve,{left:(0,W.pixify)((t+.5)*this.props.indentation),hidden:this.props.compactCommentLayout&&t>0,hiddenOnMobile:t>0},t))}renderPostedAt(e=!1){return(0,K.jsxs)(Yve,{mobileOnly:e,compactCommentLayout:this.props.compactCommentLayout,children:[this.props.comment.createdAt.relativeTime,this.props.comment.updated&&(0,K.jsx)(`span`,{style:{marginLeft:5},children:`(updated)`})]})}renderHiddenLabel(){return!this.props.comment.hidden||!U.AppUI.user.admin&&!U.AppUI.user.moderator?null:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Zve,{"data-tip":!0,"data-for":`hidden-comment-label-${this.props.comment.id}`,"data-place":`right`,children:`Hidden`}),(0,K.jsx)(he,{type:`dark`,effect:`solid`,place:`right`,id:`hidden-comment-label-${this.props.comment.id}`,className:`custom-tooltip`,children:(0,K.jsx)(Qve,{children:`This post is hidden except to admins and the poster`})})]})}get hiddenCommentVisibilityText(){let{comment:e}=this.props,t=e.hidden?`Remains`:`Will still be`,n=e.hidden?`Is`:`Will be`,r=[`moderators`];e.user&&!e.user.moderator&&!e.user.anyAdmin&&r.push(e.user.name),e.respondToUser&&!e.respondToUser.moderator&&!e.respondToUser.anyAdmin&&(e.user?.moderator||e.user?.anyAdmin)&&r.push(e.respondToUser.name);let i=r.length>1?`${r.slice(0,-1).join(`, `)} and ${r.slice(-1)[0]}`:r.join(`, `);return _(e.respondToUser)?`${t} visible to ${i}`:`${n} visible to ${i}`}render(){return(0,K.jsxs)(Vve,{margin:this.props.margin,padding:this.outerPadding,id:`comment-${this.props.comment.id}`,children:[U.AppUI.siteIsDefault&&(0,K.jsx)(_T,{namespace:this.props.comment.id,position:`absolute`,bottom:`0`,margin:`0 0 0 ${(0,W.pixify)(this.props.offset)}`}),this.renderThreadLines(),(0,K.jsxs)(Hve,{margin:`0 0 0 ${(0,W.pixify)(this.props.offset)}
6729`,border:this.props.border,background:this.commentBackground,isReply:this.isReply,mobileOffset:this.mobileOffset,selected:this.props.selected,unseen:this.showSeenStatus&&this.props.comment.seenByAdmin===!1,padding:this.innerPadding,onMouseLeave:this.props.onCloseFeedback,children:[(0,K.jsxs)(Wve,{children:[(0,K.jsxs)(Gve,{children:[(0,K.jsx)(Mg,{clickToProfile:!this.props.hideUserProfile,hideProStatus:this.props.hideUserProfile,fontSize:`13px`,width:this.props.userProfileImageSize,margin:`0`,user:this.props.comment.user}),this.renderHiddenLabel()]}),(0,K.jsxs)(Kve,{children:[(0,K.jsxs)(qve,{children:[(0,K.jsxs)(Jve,{children:[!this.props.hideUserProfile&&(0,K.jsx)(HN,{user:this.props.comment.user,hideIcons:this.props.compactCommentLayout}),this.props.hideUserProfile&&(0,K.jsx)(QN,{user:this.props.comment.user})]}),this.renderPostedAt()]}),this.props.comment.text&&!this.props.comment.deleted&&(0,K.jsx)(R,{fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,children:!this.props.comment.deleted&&(0,K.jsx)($i,{markdown:this.props.comment.text,preserveParagraphLineBreaks:!0})}),this.props.comment.deleted&&(0,K.jsx)(R,{fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,color:`#B1B1B1`,margin:`10px 0`,children:`[Deleted]`}),this.renderPostedAt(!0)]})]}),(0,K.jsx)(Xve,{children:(0,K.jsx)(aP,{backgroundOnHover:U.AppUI.siteIsDefault?q.Theme.darkestBlue:`gray`,topRight:!0,topRightRight:this.alignActionsWithContent?`0`:void 0,showReply:U.AppUI.userIsLoaded,showFeedback:U.AppUI.userIsLoaded,onReply:this.props.onToggleCreate,onToggleFeedback:this.props.onToggleFeedback,expandFeedback:this.props.expandFeedback,onClickFeedback:this.props.onClickFeedback,adminItems:[!this.props.comment.deleted&&(this.props.comment.user.id===U.AppUI.user.id||U.AppUI.user.admin)&&(0,K.jsxs)(iP,{onClick:this.props.onToggleEdit,children:[(0,K.jsx)(J.PencilIcon,{}),`Edit`]},`edit`),!this.props.comment.deleted&&(this.props.comment.user.id===U.AppUI.user.id||U.AppUI.user.admin)&&(0,K.jsx)(ra,{allowDeletion:!0,onConfirm:this.props.onDeleteComment,message:`Delete this comment?`,confirmationMessageFloatsRight:!0,right:`auto`,left:`10px`,top:`-54px`,children:(0,K.jsxs)(iP,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Delete`]})},`delete`),(U.AppUI.user.admin||U.AppUI.user.moderator)&&(0,K.jsxs)(iP,{onClick:this.props.onTogglePinned,children:[(0,K.jsx)(J.PinIcon,{}),this.props.comment.pinned?`Unpin`:`Pin`]},`pin`),(U.AppUI.user.admin||U.AppUI.user.moderator)&&(0,K.jsxs)(V.Fragment,{children:[(0,K.jsxs)(iP,{"data-tip":!0,"data-for":`hidden-comment-${this.props.comment.id}`,onClick:this.props.onToggleHidden,children:[(0,K.jsx)(J.EyeIcon,{}),this.props.comment.hidden?`Show`:`Hide`]}),(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`hidden-comment-${this.props.comment.id}`,className:`custom-tooltip`,children:this.hiddenCommentVisibilityText})]},`hide`),(U.AppUI.user.admin||U.AppUI.user.moderator)&&!this.props.comment.user.admin&&(0,K.jsxs)(iP,{onClick:this.props.onToggleAutoHide,children:[(0,K.jsx)(J.EyeIcon,{}),this.props.comment.user.autoHideComments?`Auto-Hide: On`:`Auto-Hide: Off`]},`auto-hide`),U.AppUI.user.admin&&_(this.props.comment.debugInfo)&&(0,K.jsxs)(iP,{onClick:this.props.onToggleDebugInfo,children:[(0,K.jsx)(`i`,{className:`fa fa-code`}),this.props.expandDebugInfo?`Hide Debug`:`Show Debug`]},`debug-info`),(U.AppUI.user.admin||U.AppUI.user.moderator)&&(0,K.jsxs)(iP,{onClick:this.handleCopyLink,children:[(0,K.jsx)(`i`,{className:`fa fa-link`}),this.state.showCopyConfirmation?`Copied!`:`Copy Link`]},`copy-link`)],children:this.showSeenStatus&&(0,K.jsx)(el,{label:this.props.comment.seenByAdmin?`Mark as Unchecked`:`Mark as Checked`,withArrow:!0,children:(0,K.jsx)(rP,{"aria-label":this.props.comment.seenByAdmin?`Mark as Unchecked`:`Mark as Checked`,disabled:this.props.updatingSeenByAdmin,onClick:this.props.onToggleSeenByAdmin,type:`button`,children:(0,K.jsx)(`i`,{"aria-hidden":!0,className:`fa fa-check`,style:{fontSize:`16px`,margin:0,opacity:this.props.comment.seenByAdmin?1:.3}})})})})}),this.props.comment.feedbacks&&this.props.comment.feedbacks.length>0&&(0,K.jsx)(YN,{id:this.props.comment.id,feedbacks:this.props.comment.feedbacks,commentId:this.props.comment.id,marginLeft:this.reactionBarOffset,marginTop:`0`,onCh
6729ange:this.props.onChange}),(this.props.expandCreate||this.props.expandEdit)&&(0,K.jsx)(LN,{namespace:this.props.comment.id,background:`#fff`,textInputButtonBackground:`#FFF`,edit:this.props.expandEdit,text:this.props.expandEdit?this.props.comment.text:null,suggestedText:this.props.expandEdit?null:this.props.comment.aiSuggestedAnswer,commentable:this.props.commentable,commentableType:this.props.commentableType,commentableId:this.props.commentableId,parentId:this.props.comment.id,afterCreateComment:this.props.onChange,afterSubmitComment:this.props.afterSubmitComment,margin:`10px 0 10px ${this.commentContentOffset}`,languageId:this.props.languageId||`DE`,hideSpecialCharacters:this.props.hideSpecialCharacters}),this.props.expandDebugInfo&&(0,K.jsxs)($ve,{children:[(0,K.jsxs)(eye,{children:[(0,K.jsxs)(sP,{children:[(0,K.jsx)(cP,{children:`Deck`}),(0,K.jsx)(lP,{children:this.debugDeckHasBuilderLink?(0,K.jsx)(F,{target:`_blank`,rel:`noopener noreferrer`,to:{name:`builder.decks.edit`,params:{deckId:this.debugDeckInfo.deck_id},query:{cardId:this.debugCardId}},children:this.debugDeckName}):this.debugDeckName})]}),(0,K.jsxs)(sP,{children:[(0,K.jsx)(cP,{children:`Card type`}),(0,K.jsx)(lP,{children:this.debugCardType})]}),(0,K.jsxs)(sP,{children:[(0,K.jsx)(cP,{children:`Platform`}),(0,K.jsxs)(tye,{children:[(0,K.jsx)(nye,{className:`fa fa-${this.debugPlatform===`Web`?`desktop`:`mobile`}`}),this.debugPlatform]})]})]}),(0,K.jsx)(Mve.default,{src:this.debugInfo,displayDataTypes:!1,displayObjectSize:!1})]})]})]})}})||oP,iye=(0,Y.CommentShowWrapper)(rye);D();var uP,dP;function fP(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var aye=N.div` 6730 .send-icon { 6731 svg { 6732 width: 14px; 6733 fill: #FFF; 6734 margin: 3px 4px 0 0; 6735 } 6736 } 6737`,oye=N.div` 6738 display: flex; 6739 i { 6740 margin: 2px 3px 0 0; 6741 } 6742 button { 6743 margin: 10px 10px 10px 0; 6744 } 6745`,pP=M(j(uP=(dP=class extends V.Component{get forumId(){let e;return this.props.params?.groupId&&U.AppUI.groupStore.hasShowData&&(e=U.AppUI.groupStore.showData.forums[0].id),this.props.params?.languageId&&U.AppUI.user.languageForumId&&(e=U.AppUI.user.languageForumId),this.props.forumId||this.props.params?.forumId||e||U.ForumUI.forumId}get editForumThread(){return this.props.forumThreadId}get hideSpecialCharacters(){return this.props.hideSpecialCharacters||this.forumId===pT.HIDE_SPECIAL_CHARACTERS_FORUM_ID}constructor(e){super(e),this.props.params&&this.props.params.forumId&&(U.ForumUI.forumThreadStore.clearShowData(),U.ForumUI.loadForum(this.forumId))}render(){return(0,K.jsxs)(aye,{children:[!this.editForumThread&&!this.props.params.groupId&&!this.props.params?.languageId&&(0,K.jsx)(du,{height:`50px`,margin:`0 0 10px 0`,breadcrumbs:[{name:`All Discussions`,routeToName:`forums.index`},{name:U.ForumUI.forumStore.showData.title,routeToName:`forums.show`,routeToParams:{page:1,forumId:this.forumId}},{name:`Create Discussion`}]}),!this.props.blockTitleEdit&&(0,K.jsx)(R,{bold:!0,fontSize:this.editForumThread?`16px`:`20px`,margin:`0 0 10px 0`,children:`Title`}),!this.props.blockTitleEdit&&(0,K.jsx)(Ii,{placeholder:`Type a Title`,caretPosition:U.ForumUI.caretPositionTitle,focusOnId:U.ForumUI.title,value:U.ForumUI.title,onChange:U.ForumUI.onChangeTitle,id:`forum-title`}),!this.props.blockTitleEdit&&!this.hideSpecialCharacters&&(0,K.jsx)(ta,{margin:`5px 0 0 0`,background:this.editForumThread?`#f1f1f1`:`#FFF`,options:U.ForumUI.forumStore.hasShowData?U.ForumUI.forumStore.showData.language?.specialCharacterList:null,onClick:U.ForumUI.insertTitleText}),(0,K.jsx)(R,{bold:!0,fontSize:this.editForumThread?`16px`:`20px`,margin:`10px 0`,children:`Message`}),(0,K.jsx)(Ii,{height:`100px`,expandedHeight:`200px`,placeholder:`Type a Message`,inputType:`textarea`,caretPosition:U.ForumUI.caretPositionBody,focusOnId:U.ForumUI.body,value:U.ForumUI.body,onChange:U.ForumUI.onChangeBody,id:`forum-body`}),!this.hideSpecialCharacters&&(0,K.jsx)(ta,{margin:`5px 0 0 0`,background:this.editForumThread?`#f1f1f1`:`#FFF`,options:U.ForumUI.forumStore.hasShowData?U.ForumUI.forumStore.showData.language?.specialCharacterList:null,onClick:U.ForumUI.insertBodyText}),(0,K.jsx)(oye,{children:(0,K.jsxs)(I,{onClick:()=>U.ForumUI.onCreateForumThread(this.forumId,this.props.params?.groupId,this.props.params?.languageId),disabled:U.ForumUI.disabledForumThread,background:q.Theme.green,children:[(0,K.jsx)(J.SendIcon,{}),`Submit`]})})]})}},fP(dP.prototype,`forumId`,[E],Object.getOwnPropertyDescriptor(dP.prototype,`forumId`),dP.prototype),fP(dP.prototype,`editForumThread`,[E],Object.getOwnPropertyDescriptor(dP.prototype,`editForumThread`),dP.prototype),fP(dP.prototype,`hideSpecialCharacters`,[E],Object.getOwnPropertyDescriptor(dP.prototype,`hideSpecialCharacters`),dP.prototype),dP))||uP),mP,hP,sye=N.div` 6746 cursor: pointer; 6747 font-size: ${e=>e.fontSize}; 6748 font-weight: ${e=>e.fontWeight}; 6749 line-height: 13px; 6750 color: ${e=>e.color}; 6751 height: ${e=>e.height}; 6752 background: ${e=>e.background}; 6753 padding: ${e=>e.padding}; 6754 border: ${e=>e.border}; 6755 margin: 2px 7px 2px 0; 6756 user-select: none; 6757 border-radius: 5px; 6758 align-items: center; 6759 justify-content: center; 6760 display: flex; 6761 a { 6762 color: #525252; 6763 } 6764`,gP=M(j(mP=(hP=class extends V.Component{render(){return(0,K.jsx)(sye,{onClick:this.props.onClick,background:this.props.background,color:this.props.color,padding:this.props.padding,fontSize:this.props.fontSize,border:this.props.border,height:this.props.height,fontWeight:this.props.fontWeight,children:this.props.children})}},hP.defaultProps={background:`#FFF`,color:`#525252`,fontSize:`11px`,padding:`3px 5px`,border:`1px solid white`},hP))||mP);D();var _P,vP,yP;function cye(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function lye(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var uye=N.div` 6765 .check-with-circle-icon { 6766 svg { 6767 fill: ${q.Theme.green};
6768 width: 20px; 6769 } 6770 } 6771`,dye=N.div` 6772 cursor: pointer; 6773 margin: 5px 0; 6774 border-bottom: 1px solid gray; 6775 display: flex; 6776 align-items: center; 6777 padding-bottom: 5px; 6778`,fye=N.div` 6779 6780`,pye=N.div` 6781 width: 40px; 6782`,mye=M(j(_P=(vP=class extends V.Component{constructor(e){super(e),cye(this,`forumId`,yP,this),this.onClick=e=>{this.forumId=e;let t={forum_id:e};U.ForumUI.forumThreadStore.update({ids:{forumThreadId:U.ForumUI.forumThread.id},data:t},this.afterUpdate)},this.afterUpdate=()=>{this.props.onChange(),U.AppUI.routeStore.routeToNamed(`forums.show`,{page:1,forumId:this.forumId})},U.ForumUI.forumStore.hasIndexData||U.ForumUI.forumStore.getIndex()}render(){return(0,K.jsxs)(uye,{children:[(0,K.jsx)(`h3`,{children:`Move Thread`}),U.ForumUI.forumStore.indexData.map(e=>e.title===`All Forums`?null:(0,K.jsxs)(dye,{onClick:()=>this.onClick(e.id),children:[(0,K.jsx)(pye,{children:U.ForumUI.forumThread.forumId===e.id&&(0,K.jsx)(J.CheckWithCircleIcon,{})}),(0,K.jsx)(fye,{children:e.title})]},e.id))]})}},yP=lye(vP.prototype,`forumId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vP))||_P);D();var bP,xP,SP;function hye(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function CP(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var gye=N.div` 6783 font-size: ${e=>e.fontSize}; 6784`,_ye=N.div` 6785 height: ${e=>e.height}; 6786 -webkit-mask-image: ${e=>e.expanded?null:`linear-gradient(to bottom,black,80%,transparent)`}; 6787`,vye=4,wP=M(j(bP=(xP=class extends V.Component{get paragraphLimit(){return this.props.paragraphLimit||vye}constructor(e){super(e),hye(this,`descriptionIsExpanded`,SP,this),this.splitMarkdownIntoParagraphs=e=>e?.split(/\n(\n|\\r)+/g),this.splitHTMLIntoParagraphs=e=>{let t=new DOMParser().parseFromString(e,`text/html`);return Array.from(t.body.children)},this.initializeDescriptionIsExpanded=(e,t)=>{let n=[];n=e?this.splitHTMLIntoParagraphs(e):this.splitMarkdownIntoParagraphs(t),n?.length<=this.paragraphLimit+1&&(0,Hl.default)(this.props.nonExpandedHeight)?this.descriptionIsExpanded=!0:this.descriptionIsExpanded=!1},this.toggleReadMore=()=>{this.descriptionIsExpanded=!this.descriptionIsExpanded},this.initializeDescriptionIsExpanded(e.htmlText,e.markdownText)}componentDidUpdate(e){(e.htmlText!==this.props.htmlText||e.markdownText!==this.props.markdownText||e.paragraphLimit!==this.props.paragraphLimit)&&this.initializeDescriptionIsExpanded(this.props.htmlText,this.props.markdownText)}get paragraphs(){return this.props.htmlText?this.splitHTMLIntoParagraphs(this.props.htmlText):this.splitMarkdownIntoParagraphs(this.props.markdownText)}get shortDescriptionMd(){return this.paragraphs?.length>this.paragraphLimit+1?this.paragraphs.slice(0,this.paragraphLimit).join(` 6788 6789`):this.props.markdownText}get shortDescription(){return this.paragraphs?.length>this.paragraphLimit+1?this.paragraphs.slice(0,this.paragraphLimit).map(e=>e.outerHTML).join(``):this.props.htmlText}get descriptionMd(){return this.descriptionIsExpanded?this.props.markdownText:this.shortDescriptionMd}get description(){return this.descriptionIsExpanded?this.props.htmlText:this.shortDescription}render(){return(0,K.jsxs)(gye,{fontSize:this.props.fontSize,children:[(0,K.jsx)(_ye,{expanded:this.descriptionIsExpanded,height:this.descriptionIsExpanded?`auto`:this.props.nonExpandedHeight,children:(0,K.jsx)($i,{markdown:this.descriptionMd,htmlText:this.description,maxHeight:this.descriptionIsExpanded?null:this.props.nonExpandedHeight})}),!this.props.hideReadMore&&(this.paragraphs?.length>this.paragraphLimit+1||this.props.nonExpandedHeight)&&(0,K.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,margin:`5px 0`},children:(0,K.jsx)(I,{background:q.Theme.lightGray,color:`black`,onClick:this.toggleReadMore,fontSize:`12px`,height:`30px`,scaleOnActive:.9,children:`Read ${this.descriptionIsExpanded?`Less`:`More`}`})})]})}},SP=CP(xP.prototype,`descriptionIsExpanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),CP(xP.prototype,`paragraphLimit`,[E],Object.getOwnPropertyDescriptor(xP.prototype,`paragraphLimit`),xP.prototype),CP(xP.prototype,`paragraphs`,[E],Object.getOwnPropertyDescriptor(xP.prototype,`paragraphs`),xP.prototype),CP(xP.prototype,`shortDescriptionMd`,[E],Object.getOwnPropertyDescriptor(xP.prototype,`shortDescriptionMd`),xP.prototype),CP(xP.prototype,`shortDescription`,[E],Object.getOwnPropertyDescriptor(xP.prototype,`shortDescription`),xP.prototype),CP(xP.prototype,`descriptionMd`,[E],Object.getOwnPropertyDescriptor(xP.prototype,`descriptionMd`),xP.prototype),CP(xP.prototype,`description`,[E],Object.getOwnPropertyDescriptor(xP.prototype,`description`),xP.prototype),xP))||bP);D();var TP,EP,DP,OP,kP,AP;function jP(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function MP(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var yye=N.div` 6790 background: white; 6791 position: relative; 6792 border-radius: 5px;
6793 @media only screen and (min-width : 650px) and (hover: hover) and (pointer: fine) { 6794 &:hover .comment-reaction { 6795 opacity: 1; 6796 pointer-events: auto; 6797 } 6798 } 6799 .seedlang-icon { 6800 border: 1px solid gray; 6801 border-radius: 50%; 6802 svg { 6803 width: 50px; 6804 } 6805 } 6806 .pencil-icon { 6807 width: 10px; 6808 margin-right: 4px; 6809 } 6810 .smile-icon { 6811 width: 11px; 6812 margin-right: 4px; 6813 } 6814 .reply-icon { 6815 width: 12px; 6816 margin-right: 3px; 6817 } 6818 .pin-icon { 6819 width: 11px; 6820 margin-right: 4px; 6821 } 6822 .reply-icon, .smile-icon, .pencil-icon, .pin-icon { 6823 fill: #333; 6824 } 6825 i { 6826 color: #333; 6827 font-size: 12px; 6828 margin: -1px 4px 0 0; 6829 } 6830`,bye=N.div` 6831 display: flex; 6832`,xye=N.div` 6833 flex: 1; 6834 display: flex; 6835 flex-direction: column; 6836 margin: 0 0 0 20px; 6837`,Sye=N.div` 6838 font-size: 26px; 6839 line-height: 30px; 6840 margin: 10px 0; 6841 flex: 1; 6842`,NP=N.div` 6843 font-size: ${e=>e.fontSize}; 6844 line-height: ${e=>e.lineHeight}; 6845 text-decoration: ${e=>e.underline?`underline`:null}; 6846`,PP=N.div` 6847 font-size: ${e=>e.fontSize}; 6848 line-height: ${e=>e.lineHeight}; 6849 font-style: italic; 6850 margin: 0 0 10px 0; 6851`,Cye=N.div` 6852 display: flex; 6853 justify-content: flex-end; 6854 padding: 10px 0; 6855`,wye=N.div` 6856 position: absolute; 6857 top: 0; 6858 right: ${e=>e.showFeedback?`74px`:`37px`}; 6859 display: flex; 6860 gap: 5px; 6861 max-width: 50vw; 6862 overflow-x: auto; 6863`,FP=N.span` 6864 background: ${e=>e.unseen?`#feff93`:q.Theme.orange}; 6865 color: ${e=>e.unseen?`#525252`:`#fff`}; 6866 border-radius: 4px; 6867 padding: 5px 8px; 6868 font-size: 12px; 6869 line-height: 20px; 6870 white-space: nowrap; 6871`,Tye=N.div` 6872 display: flex; 6873 align-items: center; 6874`,Eye=N.div` 6875 display: ${e=>e.compactCommentLayout?e.mobileOnly?`block`:`none`:e.mobileOnly?`none`:`block`}; 6876 font-size: 11px; 6877 line-height: 14px; 6878 color: #9c9c9c; 6879 font-style: italic; 6880 margin-left: ${e=>e.compactCommentLayout&&e.mobileOnly?0:`8px`}; 6881 margin-top: ${e=>e.compactCommentLayout&&e.mobileOnly?`4px`:0}; 6882 @media only screen and (max-width : 649px) { 6883 display: ${e=>e.mobileOnly?`block`:`none`}; 6884 margin: ${e=>e.mobileOnly?`4px 0 0 0`:null}; 6885 } 6886`,IP=N.div` 6887 font-size: 16px; 6888 line-height: 22px; 6889 a { 6890 text-decoration: underline; 6891 } 6892 h1, h2, h3, h4, h5, h6 { 6893 margin: 10px 0; 6894 } 6895 ul { 6896 margin-left: 20px; 6897 li { 6898 list-style-type: disc; 6899 } 6900 } 6901 img { 6902 max-width: 500px; 6903 } 6904`,Dye=N.div` 6905 margin: 0 0 0 70px; 6906`,Oye=N.div` 6907 ${(0,X.flexCenter)()} 6908`,kye=N.div` 6909 border-radius: 50%; 6910 position: relative; 6911 overflow: hidden; 6912 width: 180px; 6913 height: 180px; 6914`,Aye=N.div` 6915 display: flex; 6916 align-items: center; 6917`,jye=N.div` 6918 font-size: 12px; 6919 a { 6920 color: #525252; 6921 } 6922`,Mye=N.div` 6923 h3 { 6924 margin: 0 0 20px 0; 6925 } 6926 b { 6927 display: block; 6928 margin-bottom: 6px; 6929 } 6930`,Nye=N.div` 6931 display: flex; 6932 flex-wrap: wrap; 6933 gap: 8px; 6934`,Pye=N.div` 6935 display: flex; 6936 align-items: center; 6937`,Fye=M(j(TP=(EP=class extends V.Component{constructor(...e){super(...e),jP(this,`showEditTagsModal`,DP,this),jP(this,`showFeedback`,OP,this),jP(this,`showCreate`,kP,this),jP(this,`showMoveThread`,AP,this),this.onClickFeedback=e=>{U.ForumUI.feedbackStore.create({data:{feedbackType:e,forumThreadId:U.ForumUI.forumThread.id,userId:U.AppUI.user.id}},this.props.onUpdateForumThread)},this.onCloseFeedback=()=>{this.showFeedback=!1}}get videoClip(){return this.props.post.sentence&&this.props.post.sentence.target?this.props.post.sentence.target.videoClip:this.props.post.word&&this.props.post.word.target&&this.props.post.word.target.videoClip?this.props.post.word.target.videoClip:null}get hasVideoClip(){return(0,W.isPresent)(this.videoClip)}get supplementVideoClip(){return this.props.post.sentence&&this.props.post.sentence.videoClip}renderPostedAt(e=!1){return(0,K.jsxs)(Eye,{mobileOnly:e,compactCommentLayout:this.props.compactCommentLayout,children:[this.props.post.createdAt&&this.props.post.createdAt.relativeTime,this.props.post.updated&&(0,K.jsx)(`span`,{style:{marginLeft:5},children:`(updated)`})]})}render(){let e=(U.AppUI.user.admin||U.AppUI.user.moderator)&&!U.ForumUI.dropInForumThread,t=(U.ForumUI.forumThread.tag||``).split(`,`).map(e=>
6937e.trim()).filter(Boolean),n=U.ForumUI.forumThread.seenByAdmin===!1,r=(U.AppUI.user.admin||U.AppUI.user.moderator&&(U.AppUI.siteIsDefault||U.ForumUI.forum.highlightUnseen))&&!U.ForumUI.dropInForumThread&&n,i=e&&t.length>0||r;return(0,K.jsxs)(yye,{onMouseLeave:this.onCloseFeedback,children:[this.showMoveThread&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showMoveThread=!1,height:`450px`,width:`500px`,children:(0,K.jsx)(mye,{onChange:this.props.onChange})}),this.showEditTagsModal&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showEditTagsModal=!1,height:`auto`,hideCloseIcon:!0,padding:`30px 32px 34px 32px`,width:`500px`,children:(0,K.jsxs)(Mye,{children:[(0,K.jsx)(`h3`,{children:`Tag this Post`}),(0,K.jsx)(`b`,{children:`Teams`}),(0,K.jsx)(Nye,{children:[`Ling-DE`,`Ling-ES`,`Ling-FR`,`Cust-Sup`,`Marie`].map(e=>(0,K.jsx)(gP,{fontSize:`14px`,padding:`10px`,onClick:()=>U.ForumUI.onSetTag(e),background:(0,W.isPresent)(U.ForumUI.forumThread.tag)&&U.ForumUI.forumThread.tag.match(e)?q.Theme.orange:`#FFF`,color:(0,W.isPresent)(U.ForumUI.forumThread.tag)&&U.ForumUI.forumThread.tag.match(e)?`#FFF`:`#525252`,border:(0,W.isPresent)(U.ForumUI.forumThread.tag)&&U.ForumUI.forumThread.tag.match(e)?`1px solid #f78139`:`1px solid gray`,children:e},e))})]})}),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(bye,{children:[this.props.post.user&&(0,K.jsx)(Mg,{clickToProfile:U.AppUI.siteIsDefault,user:this.props.post.user,width:50}),!this.props.post.user&&U.AppUI.siteIsDefault&&(0,K.jsx)(J.SeedlangIcon,{}),!this.props.post.user&&!U.AppUI.siteIsDefault&&(0,K.jsx)(Og,{site:U.AppUI.site,width:50}),(0,K.jsxs)(xye,{children:[this.props.post.user&&(0,K.jsxs)(Tye,{children:[!this.props.hideUserProfile&&(0,K.jsx)(HN,{user:this.props.post.user,hideIcons:this.props.compactCommentLayout}),this.props.hideUserProfile&&(0,K.jsx)(QN,{user:this.props.post.user}),this.renderPostedAt()]}),(0,K.jsxs)(Aye,{children:[(0,K.jsxs)(Sye,{children:[!this.props.post.target&&this.props.post.title&&(0,K.jsx)(NP,{fontSize:this.props.post.answer?`20px`:`26px`,lineHeight:this.props.post.answer?`23px`:`30px`,children:(0,W.displayTargetTextCorrectedForLanguage)(this.props.post.title,this.props.languageId||this.props.post.languageId)}),this.props.post.target&&this.props.post.word&&(0,K.jsx)(F,{to:{name:`vocab.word`,params:{wordId:this.props.post.word.id}},children:(0,K.jsx)(NP,{fontSize:this.props.post.answer?`20px`:`26px`,lineHeight:this.props.post.answer?`23px`:`30px`,underline:!0,children:(0,W.displayTargetTextCorrectedForLanguage)(this.props.post.target,this.props.languageId||this.props.post.languageId)})}),this.props.post.target&&this.props.post.sentence&&(0,K.jsx)(NP,{fontSize:this.props.post.answer?`20px`:`26px`,lineHeight:this.props.post.answer?`23px`:`30px`,children:(0,W.displayTargetTextCorrectedForLanguage)(this.props.post.target,this.props.languageId||this.props.post.languageId)}),this.props.post.target&&this.props.post.concept&&(0,K.jsx)(F,{to:{name:`grammar.show`,params:{grammarNodeId:this.props.post.concept.grammarNodeId}},children:(0,K.jsx)(NP,{fontSize:`26px`,lineHeight:`30px`,underline:!0,children:this.props.post.target})}),this.props.post.source&&(0,W.isPresent)(this.props.post.source(this.props.user))&&(0,K.jsx)(PP,{fontSize:this.props.post.answer?`16px`:`20px`,lineHeight:this.props.post.answer?`19px`:`25px`,children:this.props.post.source(this.props.user)}),this.props.post.answer&&(0,K.jsx)(NP,{fontSize:this.props.post.answer?`20px`:`26px`,lineHeight:this.props.post.answer?`23px`:`30px`,children:this.props.post.answer.targetText}),this.props.post.answer&&(0,K.jsx)(PP,{fontSize:this.props.post.answer?`16px`:`20px`,lineHeight:this.props.post.answer?`19px`:`25px`,children:this.props.post.answer.sourceText}),this.props.post.faqItem&&(0,K.jsxs)(Pye,{children:[(0,K.jsx)(R,{fontSize:`14px`,lineHeight:`18px`,children:`This is an article from our\xA0`}),(0,K.jsx)(F,{style:{fontSize:`14px`,lineHeight:`18px`,textDecoration:`underline`},to:`help_center`,children:`Help Center`})]})]}),!this.props.inModal&&this.props.post&&this.props.post.referralRoute&&(0,K.jsx)(jye,{children:(0,K.jsx)(F,{to:{name:this.props.post.referralRoute,params:this.props.post.referralParamsCamelCase},children:(0,K.jsx)(I,{fontSize:`12px`,children:`Go to Referring Page`})})})]}),(0,K.jsxs)(Oye,{children:[this.hasVideoClip&&(0,K.jsx)(Yi,{hasVideoClip:!0,autoPlay:!1,supplementAutoPlay:!1,width:180,supplementVideoClip:this.supplementVideoClip,videoClip:this.videoClip}),this.props.post.answer&&this.props.post.answer.target&&this.props.post.answer.target.videoClip&&(0,K.jsx)(kye,{children:(0,K.jsx)(Ai,{videoClip:this.props.post.answer.target.videoClip,width:180})})]}),this.props.post&&(0,W.isPresent)(this.props.post.body)&&(0,K.jsx)(IP,{children:(0,K.jsx)($i,{markdown:this.props.post.body})}),this.props.post&&(0,W.isPresent)(this.props.post.faqItem?.body)&&(0,K.jsx)(IP,{children:(0,K.jsx)($i,{markdown:this.props.post.faqItem?.body})}),this.props.post.target&&this.props.post.concept&&(0,K.jsx)(wP,{alwaysShowButton:!0,fontSize:`14px`,markdownText:this.props.post.concept.longDescriptionMd,htmlText:this.props.post.concept.longDescription}),this.renderPostedAt(!0)]})]}),(0,K.jsxs)(Cye,{children:[i&&(0,K.jsxs)(wye,{showFeedback:U.AppUI.userIsLoaded,children:[e&&t.map(e=>(0,K.jsx)(FP,{children:e},e)),r&&(0,K.jsx)(FP,{unseen:!0,children:`Unchecked`})]}),(0,K.jsx)(aP,{backgroundOnHover:U.AppUI.siteIsDefault?q.Theme.darkestBlue:`gray`,topRight:!0,top
6937RightRight:`0`,showFeedback:U.AppUI.userIsLoaded,onReply:()=>this.showCreate=!this.showCreate,onToggleFeedback:()=>this.showFeedback=!this.showFeedback,expandFeedback:this.showFeedback,onClickFeedback:this.onClickFeedback,arrowBoxBottom:`45px`,adminItems:[(U.ForumUI.dropInForumThread||this.props.post.user&&(U.AppUI.user.admin||this.props.post.user.id===U.ForumUI.user.id))&&(0,K.jsxs)(iP,{onClick:U.ForumUI.toggleEditForumThread,children:[(0,K.jsx)(J.PencilIcon,{}),U.ForumUI.dropInForumThread?`Edit Message`:`Edit`]},`edit`),!U.ForumUI.dropInForumThread&&(this.props.post.user&&this.props.post.user.id===U.ForumUI.user.id&&U.ForumUI.forumThread.comments.length===0||U.ForumUI.user.moderator)&&(0,K.jsx)(ra,{allowDeletion:!0,right:`-180px`,confirmationMessageFloatsRight:!0,onConfirm:()=>U.ForumUI.onDestroyThread(),message:`Delete this Thread?`,children:(0,K.jsxs)(iP,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Delete`]})},`delete`),(U.ForumUI.user.moderator||U.ForumUI.user.admin)&&!this.props.groupId&&(0,K.jsxs)(iP,{onClick:()=>U.ForumUI.onTogglePinned(),children:[(0,K.jsx)(J.PinIcon,{}),U.ForumUI.forumThread.pinned?`Unpin`:`Pin`]},`pin`),(U.ForumUI.user.moderator||U.ForumUI.user.admin)&&(0,W.isPresent)(U.ForumUI.forumThread.tag)&&U.ForumUI.forumThread.tag.split(`,`).map(e=>(0,K.jsxs)(iP,{onClick:()=>U.ForumUI.onSetTag(e),background:q.Theme.orange,color:`#fff`,children:[(0,K.jsx)(`i`,{className:`fa fa-tag`}),e]},`tag-${e}`)),(U.ForumUI.user.moderator||U.ForumUI.user.admin)&&!this.props.groupId&&(0,K.jsxs)(iP,{onClick:()=>this.showEditTagsModal=!0,children:[(0,K.jsx)(`i`,{className:`fa fa-tag`}),`Tag`]},`tag`),!U.AppUI.siteIsDefault&&!U.ForumUI.dropInForumThread&&(U.ForumUI.user.moderator||U.ForumUI.user.admin)&&U.ForumUI.forum.highlightUnseen&&(0,K.jsxs)(iP,{onClick:()=>U.ForumUI.onToggleSeenByAdmin(),background:U.ForumUI.forumThread.seenByAdmin?`#FFF`:`#feff93`,children:[(0,K.jsx)(`i`,{className:`fa fa-eye`}),U.ForumUI.forumThread.seenByAdmin?`Checked: Yes`:`Checked: No`]},`seen-by-admin`),U.ForumUI.user.admin&&this.props.post.word&&(0,K.jsx)(iP,{children:(0,K.jsxs)(F,{to:{name:`builder.words.edit`,params:{wordId:this.props.post.word.id}},children:[(0,K.jsx)(`i`,{className:`fa fa-user`}),`Admin`]})},`word-admin`),U.ForumUI.user.admin&&this.props.post.sentence&&(0,K.jsx)(iP,{children:(0,K.jsxs)(F,{to:{name:`builder.sentences.edit`,params:{sentenceId:this.props.post.sentence.id}},children:[(0,K.jsx)(`i`,{className:`fa fa-user`}),`Admin`]})},`sentence-admin`),(U.ForumUI.user.admin||U.ForumUI.user.moderator)&&!this.props.groupId&&(0,K.jsxs)(iP,{onClick:()=>this.showMoveThread=!0,children:[(0,K.jsx)(`i`,{className:`fa fa-upload`}),`Move`]},`move`)]})]}),U.ForumUI.editForumThread&&(0,K.jsx)(pP,{blockTitleEdit:U.ForumUI.dropInForumThread,forumThreadId:U.ForumUI.forumThread.id,hideSpecialCharacters:this.props.hideSpecialCharacters||this.props.post?.hideSpecialCharacters}),U.ForumUI.userIsLoaded&&!U.ForumUI.editForumThread&&this.showCreate&&(0,K.jsx)(Dye,{children:(0,K.jsx)(LN,{showXp:U.AppUI.siteIsDefault,textInputButtonBackground:`#FFF`,namespace:U.ForumUI.forumThread.id,commentable:U.ForumUI.forumThread,commentableType:`ForumThread`,afterCreateComment:this.props.onChange,languageId:this.props.languageId||(0,G.invert)(q.Constants.VOCAB_FORUM_IDS)[U.ForumUI.forumThread.forumId]||`DE`,hideSpecialCharacters:this.props.hideSpecialCharacters||this.props.post?.hideSpecialCharacters})}),U.ForumUI.forumThread.feedbacks&&U.ForumUI.forumThread.feedbacks.length>0&&(0,K.jsx)(YN,{id:U.ForumUI.forumThread.id,feedbacks:U.ForumUI.forumThread.feedbacks,forumThreadId:U.ForumUI.forumThread.id,marginLeft:`70px`,onChange:this.props.onUpdateForumThread})]}),!U.ForumUI.userIsLoaded&&(0,K.jsx)(B,{textAlign:`center`,margin:`10px 0 0 0`,children:`Register to leave a comment`})]})}},DP=MP(EP.prototype,`showEditTagsModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),OP=MP(EP.prototype,`showFeedback`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kP=MP(EP.prototype,`showCreate`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),AP=MP(EP.prototype,`showMoveThread`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MP(EP.prototype,`videoClip`,[E],Object.getOwnPropertyDescriptor(EP.prototype,`videoClip`),EP.prototype),MP(EP.prototype,`hasVideoClip`,[E],Object.getOwnPropertyDescriptor(EP.prototype,`hasVideoClip`),EP.prototype),MP(EP.prototype,`supplementVideoClip`,[E],Object.getOwnPropertyDescriptor(EP.prototype,`supplementVideoClip`),EP.prototype),EP))||TP);D();var LP,RP,zP,BP;function VP(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function HP(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var UP=N.div` 6938 margin: ${e=>e.margin}; 6939 font-size: 12px; 6940 width: 100%; 6941 background: white; 6942 border-radius: ${e=>e.borderRadius}; 6943 padding: ${e=>e.commentLayout===`forum`?e.forumPadding||`30px 35px 30px 30px`:e.padding}; 6944 box-sizing: ${e=>e.forumPadding?`border-box`:null}; 6945 select { 6946 height: 30px; 6947 } 6948`,WP=N.div` 6949 display: flex; 6950 align-items: center; 6951 margin-top: 10px; 6952 padding-top: 10px; 6953 border-top: ${e=>e.borderTop}; 6954`,GP=N.div` 6955 flex: 1; 6956 display: flex; 6957 justify-content: flex-end; 6958 gap: 10px; 6959 align-items: center; 6960`,KP=N.div` 6961 position: relative; 6962 pointer-events: ${e=>e.hasNoAccess?`none`:`auto`}; 6963`,qP=N.div` 6964 position: absolute; 6965 inset: 0; 6966 background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8)); 6967 pointer-events: none; 6968 z-index: 1; 6969`,JP=N.div` 6970 position: absolute; 6971 top: 50%; 6972 left: 50%; 6973 transform: translate(-50%, -50%); 6974 z-index: 2; 6975 pointer-events: auto; 6976 background: white; 6977`,YP=N(ea)` 6978 height: 35px; 6979`,XP=N(Fi)` 6980 select {
6981 background: ${q.Theme.softButtonBackground}; 6982 border: 0; 6983 border-radius: 4px; 6984 color: #333; 6985 font-family: inherit; 6986 font-size: 11px; 6987 font-weight: 400; 6988 letter-spacing: 0.04em; 6989 margin: 0 5px 0 0; 6990 padding: 0 12px; 6991 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65); 6992 text-transform: uppercase; 6993 } 6994`,ZP=j(LP=(RP=(BP=class extends V.Component{constructor(e){super(e),VP(this,`selectedCommentId`,zP,this),this.scrollToLatestComment=()=>{if((0,W.isPresent)(this.props.latestCommentId)){this.selectedCommentId=this.props.latestCommentId;let e=document.getElementById(`comment-${this.props.latestCommentId}`);e&&e.scrollIntoView({behavior:`smooth`})}},this.handleHash=()=>{let e=window.location.hash;if(e){let t=()=>{let n=document.querySelector(e);n?setTimeout(()=>{let e=n.getBoundingClientRect();e.top>=0&&e.left>=0&&e.bottom<=window.innerHeight&&e.right<=window.innerWidth||n.scrollIntoView({behavior:`smooth`,block:`start`})},300):setTimeout(t,100)};t()}},this.selectedCommentId=(0,W.isPresent)(window.location.hash)?window.location.hash.replace(`#comment-`,``):null}get commentLayout(){return this.props.commentLayout?this.props.commentLayout:this.props.showForumThreadPost?`forum`:this.props.compactCommentLayout?`compact`:`embedded`}componentDidMount(){(0,W.isPresent)(this.props.comments)&&this.props.comments.length>0&&this.handleHash()}componentDidUpdate(e){e.comments.length===0&&this.props.comments.length>0&&this.handleHash()}render(){return(0,K.jsxs)(UP,{margin:this.props.margin,padding:this.props.padding,borderRadius:this.props.borderRadius,commentLayout:this.commentLayout,forumPadding:this.props.forumPadding,children:[this.props.showForumThreadPost&&(0,K.jsx)(Fye,{hideUserProfile:this.props.hideUserProfile,groupId:this.props.groupId,inModal:this.props.inModal,post:this.props.post,user:U.AppUI.user,onChange:this.props.onChange,onUpdateForumThread:this.props.onUpdateForumThread,hideForumThreadDetails:this.props.hideForumThreadDetails,hideSpecialCharacters:this.props.hideSpecialCharacters||this.props.post?.hideSpecialCharacters,languageId:this.props.languageId||U.AppUI.targetLanguageId,compactCommentLayout:this.props.compactCommentLayout}),(this.props.showCommentCreate||this.props.showNoAccessButton)&&(0,K.jsxs)(KP,{hasNoAccess:this.props.showNoAccessButton,children:[(0,K.jsx)(LN,{debugInfo:this.props.debugInfo,showXp:this.props.showXp,blockTextExpansion:this.props.blockTextExpansion,wordId:this.props.wordId,sentenceId:this.props.sentenceId,conceptId:this.props.conceptId,namespace:this.props.namespace||this.props.translationId||this.props.conceptId||this.props.forumThreadId,commentable:this.props.commentable,commentableType:this.props.commentableType,commentableId:this.props.commentableId,afterCreateComment:this.props.onChange,languageId:this.props.languageId||U.AppUI.targetLanguageId,placeholder:this.props.placeholder,hideSpecialCharacters:this.props.hideSpecialCharacters||this.props.post?.hideSpecialCharacters,margin:`0 0 10px 0`}),this.props.showNoAccessButton&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(qP,{}),(0,K.jsx)(JP,{children:(0,K.jsx)(ql,{margin:`0`,reason:this.props.noAccessReason})})]})]}),(0,K.jsx)(`span`,{id:`page-top`}),this.props.showSpinner&&(0,K.jsx)(P,{}),this.props.comments.length>1&&U.AppUI.userIsLoaded&&(0,K.jsxs)(WP,{borderTop:this.props.showCommentCreate?`1px solid #dedede`:``,children:[this.props.showCommentCount&&(0,K.jsx)(R,{bold:!0,children:this.props.compactCommentLayout?`Comments`:`${U.AppUI.user.commentOrdering===`created_at`?`Oldest`:`Newest`} Comments`}),!this.props.hideCommentControls&&(0,K.jsxs)(GP,{children:[this.props.comments.length>5&&(0,K.jsx)(YP,{onClick:this.scrollToLatestComment,children:`Go to Newest`}),(0,K.jsx)(XP,{allowUpdate:!0,value:U.AppUI.user.commentOrdering,onChange:this.props.setCommentOrdering,options:[[`created_at`,`Sort by Old`],[`-created_at`,`Sort by New`]]})]})]}),this.props.comments.map(e=>!e.hidden||e.user.id===U.AppUI.user.id||e.respondToId===U.AppUI.user.id&&e.user.anyAdminOrModerator||U.AppUI.user.admin||U.AppUI.user.moderator?(0,K.jsx)(iye,{hideUserProfile:this.props.hideUserProfile,indentation:this.props.indentation,onChange:this.props.onChange,commentable:this.props.commentable,commentableType:this.props.commentableType,commentableId:this.props.commentableId,comment:e,user:this.props.user,fontSize:this.props.fontSize,userProfileImageSize:this.props.userProfileImageSize,margin:this.props.commentMargin,padding:this.props.commentPadding||this.props.padding,languageId:this.props.languageId||U.AppUI.targetLanguageId,selected:this.selectedCommentId===e.id,commentLayout:this.commentLayout,compactCommentLayout:this.props.compactCommentLayout,hideSpecialCharacters:this.props.hideSpecialCharacters||this.props.post?.hideSpecialCharacters},e.id):null)]})}},BP.defaultProps={margin:`0 0 20px 0`,padding:`20px`,borderRadius:`5px`},BP),zP=HP(RP.prototype,`selectedCommentId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),RP))||LP,QP=(0,Y.CommentIndexWrapper)(ZP),$P,eF,tF=N.div` 6995 padding: ${e=>e.padding}; 6996 overflow: hidden; 6997`,nF=j($P=(eF=class extends V.Component{render(){let e=this.props.commentLayout||`embedded`,t=this.props.indentation||(e===`forum`?50:20);return(0,K.jsxs)(tF,{padding:this.props.padding,children:[!this.props.hideTitle&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(R,{heading:(0,W.isPresent)(this.props.answer)?null:`3`,fontSize:(0,W.isPresent)(this.props.answer)?`16px`:null,bold:(0,W.isPresent)(this.props.answer),margin:`10px 0 0 0`,children:(0,W.dis
6997playTargetTextCorrectedForLanguage)(this.props.targetText,this.props.word?.languageId||this.props.sentence?.languageId)}),(0,K.jsxs)(R,{italic:!0,margin:`0 0 20px 0`,children:[this.props.sentence&&this.props.sentence.sourceText,this.props.word&&this.props.word.vocabWordList]})]}),(0,K.jsx)(QP,{showXp:!0,showCommentCreate:U.ForumUI.userIsLoaded,showCommentCount:!0,indentation:t,commentLayout:e,user:U.ForumUI.user,wordId:this.props.wordId,sentenceId:this.props.sentenceId,namespace:this.props.translationId,blockTextExpansion:this.props.blockTextExpansion,onChange:this.props.afterEmbeddedCommentCreate,commentable:this.props.forumThread,commentableType:`ForumThread`,commentableId:this.props.forumThreadId,forumThreadId:this.props.forumThreadId,commentMargin:`0`,margin:this.props.commentMargin,padding:`0`,forumPadding:this.props.forumPadding,languageId:this.props.word?.languageId||this.props.sentence?.languageId,debugInfo:this.props.debugInfo,placeholder:this.props.commentCreatePlaceholder,inDeckComments:this.props.inDeckComments})]})}},eF.defaultProps={padding:`20px`},eF))||$P,rF=(0,Y.TranslationCommentsWrapper)(nF);me();var iF,aF=N.div` 6998 height: 100%; 6999 padding: 20px 10px; 7000`,oF=N.div` 7001 7002`,sF=N.div` 7003 margin-top: 20px; 7004`,cF=N.div` 7005 display: flex; 7006 align-items: center; 7007 border-top: ${e=>e.borderTop?`1px solid #d4d4d4`:null}; 7008 padding: ${e=>e.borderTop?`10px 0`:`0 0 10px 0`}; 7009 border-bottom: 1px solid #d4d4d4; 7010 margin-bottom: 10px; 7011`,lF=N.div` 7012 ${(0,X.flexCenter)()} 7013 width: 40px; 7014 svg { 7015 width: 20px; 7016 fill: ${q.Theme.green}; 7017 } 7018`,uF=N.div` 7019 flex: 1; 7020 text-align: left; 7021`,dF=N.div` 7022 width: 150px; 7023 padding: 0 10px 0 0; 7024`,fF=N.div` 7025 display: flex; 7026`,pF=N.div` 7027 font-size: 20px; 7028 font-weight: bold; 7029`,mF=N.div` 7030 font-size: 20px; 7031 font-style: italic; 7032 margin-top: 20px; 7033`,hF=N.div` 7034 font-weight: bold; 7035 font-style: italic; 7036 width: 55px; 7037 font-size: 12px; 7038 color: #4e4e4e; 7039 text-align: right; 7040 padding: 0 5px 0 0; 7041`,gF=N.div` 7042 flex: 1; 7043`,_F=j(iF=class extends V.Component{render(){let e=this.props.card&&this.props.card.sentence,t=e?(0,G.sortBy)(e.randomMultipleChoiceOptions||[],[`selectedCount`]).reverse():[];return(0,K.jsx)(aF,{children:(0,K.jsxs)(oF,{children:[e&&(0,K.jsx)(pF,{children:e.targetText}),e&&(0,K.jsx)(mF,{children:e.sourceText}),(0,K.jsx)(sF,{children:t.map((e,t)=>(0,K.jsxs)(cF,{borderTop:t===0,children:[(0,K.jsx)(lF,{children:e.correct&&(0,K.jsx)(J.CheckWithCircleIcon,{})}),(0,K.jsx)(uF,{children:(0,K.jsx)(Gi,{translation:e,showTargetText:!0,languageButtonWrapperWidth:`27px`})}),(0,K.jsxs)(dF,{"data-tip":!0,"data-for":e.id,children:[(0,K.jsxs)(fF,{children:[(0,K.jsxs)(hF,{children:[this.props.totalSelectedCount>0?(e.selectedCount/this.props.totalSelectedCount*100).toFixed(1):0,`%`]}),(0,K.jsx)(gF,{children:(0,K.jsx)(Fn,{borderRadius:`10px`,background:`#E8E8E8`,current:e.selectedCount,total:this.props.totalSelectedCount,height:`20px`})})]}),(0,K.jsxs)(he,{type:`dark`,effect:`solid`,id:e.id,class:`custom-tooltip`,children:[e.selectedCount,` of `,this.props.totalSelectedCount,` Answers`]})]})]},e.id))})]})})}})||iF,vF=(0,Y.TriviaResultsWrapper)(_F),yF,bF=N.div` 7044 background: white; 7045 display: block; 7046 width: 100%; 7047 padding: 10px; 7048 margin-bottom: 10px; 7049 border-radius: 5px; 7050`,xF=N.div` 7051 display: flex; 7052 flex-direction: column; 7053 align-items: center; 7054 margin: ${e=>e.margin}; 7055`,SF=N.div` 7056 margin-top: 10px; 7057`,CF=N.div` 7058 display: flex; 7059 align-items: center; 7060 gap: 8px; 7061 margin-top: 6px; 7062`,wF=N.div` 7063 display: flex; 7064 flex-direction: column; 7065 align-items: center; 7066 justify-content: center; 7067 gap: 10px; 7068 margin-top: 14px; 7069`,TF=N.div` 7070 display: flex; 7071 align-items: center; 7072 gap: 8px; 7073`,EF=N.input` 7074 width: 56px; 7075 height: 32px; 7076 padding: 0 6px; 7077 border: 1px solid #cacaca; 7078 border-radius: 4px; 7079 font-size: 14px; 7080 text-align: center; 7081`,DF=j(yF=class extends V.Component{constructor(e){super(e),this.dayInMs=1440*60*1e3,this.onDaysElapsedChange=e=>{let t=e.target.value;if(t===``||t===`-`){this.setDaysElapsed(0);return}let n=parseInt(t,10);this.setDaysElapsed(Number.isNaN(n)?0:n)},this.adjustDaysElapsed=e=>{let t=Math.round(Number.isFinite(this.state.daysElapsed)?this.state.daysElapsed:0);this.setDaysElapsed(t+e)},this.toggleReviewsDueAtBeginningOfDay=()=>{this.props.onToggleIntervalTesterReviewsDueAtBeginningOfDay()},this.processScoreWithSync=e=>{let t=this.reviewTimeOffsetMsFromDaysElapsed(this.props.card,this.state.daysElapsed);if(this.props.processScore(e,{forceReviewAfterDue:this.props.forceReviewAfterDue,reviewTimeOffsetMs:t,reviewsDueAtBeginningOfDay:this.props.reviewsDueAtBeginningOfDay}),e===q.Constants.GOOD_SCORE||e===q.Constants.EASY_SCORE){let e=this.props.card?.repetitionInterval;this.setDaysElapsed(Number.isFinite(e)?Math.round(e):0)}else e===q.Constants.BAD_SCORE&&this.setDaysElapsed(this.naturalElapsedDays(this.props.card))},this.state=this.stateFromCard(e.card)}componentDidUpdate(e){if(this.props.card!==e.card&&this.setState(this.stateFromCard(this.props.card)),this.props.reviewsDueAtBeginningOfDay!==e.reviewsDueAtBeginningOfDay){let e=this.roundedDaysElapsed(this.state.daysElapsed);e!==this.state.daysElapsed&&this.setState({daysElapsed:e})}}roundedDaysElapsed(e){return Number.isFinite(e)?this.props.reviewsDueAtBeginningOfDay?Math.round(e):Math.round(e*10)/10:0}stateFromCard(e,t=this.naturalElapsedDays(e)){let n=this.reviewTimeOffsetMsFromDaysElapsed(e,t);return{daysElapsed:t,goodInterval:e?.formattedReviewInterval(q.Constants.GOOD_SCORE,{forceReviewAfterDue:this.props.forceReviewAfterDue,reviewTimeOffsetMs:n})||``,easyInterval:e?.formattedReviewInterval(q.Constants.EASY_SCORE,{forceReviewAfterDue:this.props.forceReviewAfterDue,reviewTimeOffsetMs:n})||``}}naturalElapsedDays(e){if(!e?.reviewAfter?.dateObj)return 0;let t=pT.SpacedRepetition.elapsedDaysSinceLastReview(e.reviewAfter.dateObj,e.repetitionInterval||0,0);return this.roundedDaysElapsed(t)}reviewTimeOffsetMsFromDaysElapsed(e,t){let n=this.roundedDaysElapsed(t),r=e?.reviewAfter?.dateObj,i=e?.repetitionInterval;return r&&i>0?new Date(r.getTime()-i*this.dayInMs).getTime()+n*this.dayInMs-Date.now():n*this.dayInMs}setDaysElapsed(e){let t=Math.round(Number.isFinite(e)?e:0);this.setState(this.stateFromCard(this.props.card,t))}render(){let{daysElapsed:e}=this.state,t=this.reviewTimeOffsetMsFromDaysElapsed(this.props.card,e);return(0,K.jsx)(bF,{children:(0,K.jsxs)(xF,{children:[(0,K.jsx)(R,{textAlign:`center`,bold:!0,fontSize:`18px`,padding:`10px 0 20px 0`,children:`Interval Tester (Admin Only)`}),(0,K.jsxs)(CF,{children:[(0,K.jsx)(jn,{value:this.props.reviewsDueAtBeginningOfDay,onClick:this.toggleReviewsDueAtBeginningOfDay}),(0,K.jsx)(R,{display:`inline`,fontSize:`14px`,children:`Reviews Due at Beginning of Day`})]}),(0,K.jsxs)(SF,{children:[(0,K.jsx)(I,{margin:`0 5px`,onClick:()=>this.processScoreWithSync(q.Constants.BAD_SCORE),children:`1 Minute`}),(0,K.jsx)(I,{margin:`0 5px`,onClick:()=>this.processScoreWithSync(q.Constants.GOOD_SCORE),children:this.props.card.formattedReviewInterval(q.Constants.GOOD_SCORE,{forceReviewAfterDue:this.props.forceReviewAfterDue,reviewTimeOffsetMs:t,reviewsDueAtBeginningOfDay:this.props.reviewsDueAtBeginningOfDay})}),(0,K.jsx)(I,{margin:`0 5px`,onClick:()=>this.processScoreWithSync(q.Constants.EASY_SCORE),children:this.props.card.formattedReviewInterval(q.Constants.EASY_SCORE,{forceReviewAfterDue:this.props.forceReviewAfterDue,reviewTimeOffsetMs:t,reviewsDueAtBeginningOfDay:this.props.reviewsDueAtBeginningOfDay})})]}),(0,K.jsxs)(wF,{children:[(0,K.jsx)(R,{fontSize:`14px`,children:`Days elapsed`}),(0,K.jsxs)(TF,{children:[(0,K.jsx)(I,{margin:`0`,fontSize:`13px`,padding:`6px 10px`,minWidth:`32px`,he
7081ight:`32px`,onClick:()=>this.adjustDaysElapsed(-1),children:`â`}),(0,K.jsx)(EF,{type:`number`,step:this.props.reviewsDueAtBeginningOfDay?1:.1,value:Number.isFinite(this.state.daysElapsed)?this.state.daysElapsed:``,onChange:this.onDaysElapsedChange}),(0,K.jsx)(I,{margin:`0`,fontSize:`13px`,padding:`6px 10px`,minWidth:`32px`,height:`32px`,onClick:()=>this.adjustDaysElapsed(1),children:`+`})]})]})]})})}})||yF,OF,kF=N.li` 7082 &:hover { 7083 background: #f1f1f1; 7084 } 7085 padding: 2px 10px; 7086 margin-bottom: 0; 7087 font-size: 12px; 7088 border-radius: 10px; 7089 cursor: ${e=>e.selected?`default`:`pointer`}; 7090 background: ${e=>e.selected?`#e6e6e6`:``}; 7091`,AF=N.ul` 7092 display: flex; 7093 gap: 4px; 7094 flex-direction: column; 7095`,jF=j(OF=class extends V.Component{render(){return(0,K.jsx)(AF,{children:this.props.options.map((e,t)=>(0,K.jsx)(kF,{onClick:()=>this.props.onClick(e[0]),selected:!!this.props.selectedId&&String(this.props.selectedId)===String(e[0]),children:e[1]},`${e[1]}-${t}`))})}})||OF,MF,NF=N.div` 7096 display: flex; 7097 flex-direction: column; 7098 gap: 10px; 7099`,PF=j(MF=class extends V.Component{render(){return(0,K.jsxs)(NF,{children:[this.props.onlyCustomCardTypeOption&&(0,K.jsx)(B,{textAlign:`center`,width:`100%`,margin:`0 0 10px 0`,children:`Only Custom is available because this card isn't linked to a word from our dictionary.`}),this.props.compact&&(0,W.isPresent)(this.props.cardTypeOptions)&&(0,W.isPresent)(this.props.card)&&(0,K.jsx)(Fi,{allowUpdate:!0,options:this.props.cardTypeOptions,value:this.props.card.cardTypeId,model:`cards`,field:`card_type_id`,id:this.props.card.id,afterChange:this.props.afterChange}),this.props.compact&&(0,W.isPresent)(this.props.cardTypeOptions)&&(0,W.isPresent)(this.props.cards)&&(0,K.jsx)(jF,{options:this.props.cardTypeOptions,onClick:this.props.onChangeMultipleCards,selectedId:this.props.cardTypeId}),!this.props.compact&&this.props.card&&this.props.cardTypeOptions.map(e=>(0,K.jsx)(I,{borderRadius:`5px`,background:(0,W.isPresent)(this.props.cardTypeId)&&String(e[0])===String(this.props.cardTypeId)?q.Theme.blue:`#ECECEC`,color:(0,W.isPresent)(this.props.cardTypeId)&&String(e[0])===String(this.props.cardTypeId)?`#FFF`:`#333`,onClick:()=>this.props.updateCardType(e),children:e[1]},e[0])),(0,W.isBlank)(this.props.cardTypeOptions)&&this.props.cardType&&(0,K.jsx)(R,{children:this.props.cardType?.name}),this.props.compact&&!(0,W.isPresent)(this.props.cardTypeOptions)&&(0,W.isPresent)(this.props.cards)&&(0,W.isBlank)(this.props.cardType)&&(0,K.jsx)(R,{fontSize:`12px`,color:`#929292`,textAlign:`center`,children:`The selected reviews are incompatible`})]})}})||MF,FF=(0,Y.CardTypeSelectWrapper)(PF),IF,LF=N.div` 7100 margin-top: 10px; 7101 border-top: ${e=>e.showTopBorder?`1px solid #CCC`:``}; 7102`,RF=N.div` 7103 border-radius: 5px; 7104 ${(0,X.flexCenterColumn)()} 7105 h3 { 7106 width: 100%; 7107 } 7108`,zF=N.div` 7109 display: flex; 7110 flex-direction: column; 7111 flex: 1; 7112 cursor: pointer; 7113 padding: 10px; 7114 &:hover { 7115 background: #ECECEC; 7116 } 7117`,BF=N.div` 7118 display: flex; 7119 flex-direction: ${e=>e.flexDirection}; 7120 width: 100%; 7121 border-bottom: 1px solid #CCC; 7122`,VF=N.div` 7123 margin: ${e=>e.margin}; 7124 display: flex; 7125`,HF=N.div` 7126 margin: ${e=>e.margin}; 7127 width: ${e=>e.width}; 7128`,UF=N.div` 7129 color: #777; 7130 font-size: 12px; 7131 font-style: italic; 7132 line-height: 17px; 7133 padding: 10px 0 0; 7134 text-align: center; 7135`,WF=j(IF=class extends V.Component{render(){return(0,K.jsxs)(LF,{showTopBorder:this.props.showTopBorder,children:[U.AppUI.sentenceSubmissionStore.hasIndexData&&(0,K.jsxs)(RF,{children:[(0,K.jsx)(`h3`,{children:`My Submissions`}),U.AppUI.sentenceSubmissionStore.indexData.map(e=>(0,K.jsx)(BF,{flexDirection:U.AppUI.layout.isMobile?`column`:`row`,children:(0,K.jsxs)(zF,{children:[(0,K.jsxs)(VF,{margin:`0 0 3px 0`,children:[(0,K.jsx)(HF,{margin:`3px 0`,width:`25px`,children:(0,K.jsx)(J.LanguageIcon,{languageId:e.targetLanguage})}),(0,K.jsx)(R,{textAlign:`left`,margin:`0 0 0 10px`,children:e.targetText})]}),(0,K.jsxs)(VF,{children:[(0,K.jsx)(HF,{margin:`3px 0`,width:`25px`,children:(0,K.jsx)(J.LanguageIcon,{languageId:e.sourceLanguage,user:U.AppUI.user})}),(0,K.jsx)(R,{textAlign:`left`,margin:`0 0 0 10px`,children:e.sourceText})]})]})},e.id)),(0,K.jsx)(UF,{children:`Thanks for adding these. Sentence submissions are retired now, so please use notes for new examples.`})]}),(U.AppUI.sentenceSubmissionStore.page>1||U.AppUI.sentenceSubmissionStore.indexData.length>=10)&&(0,K.jsx)(In,{store:U.AppUI.sentenceSubmissionStore})]})}})||IF,GF=(0,Y.SentenceSubmissionIndexWrapper)(WF),KF,qF=N.div` 7136 padding: 0 20px 20px; 7137 .pencil-icon { 7138 width: 10px; 7139 margin-right: 5px; 7140 } 7141`,JF=N.div` 7142 width: 100%; 7143 display: flex; 7144 align-items: center; 7145 justify-content: center; 7146 position: relative; 7147 .close-icon { 7148 position: absolute; 7149 top: 10px; 7150 right: 5px; 7151 cursor: pointer; 7152 svg { 7153 fill: #737373;
7154 width: 20px; 7155 } 7156 } 7157`,YF=N.div` 7158 padding: 20px 20px 10px 20px; 7159 border-radius: 5px; 7160 background: rgb(241, 241, 241); 7161`,XF=N.div` 7162 display: flex; 7163 margin: 10px 0 0 0; 7164 position: relative; 7165`,ZF=N.div` 7166 display: flex; 7167 align-items: center; 7168 flex: 1; 7169 flex-wrap: wrap; 7170 .fa-times { 7171 margin-right: 5px; 7172 } 7173`,QF=N.div` 7174 margin-top: 10px; 7175`,$F=j(KF=class extends V.Component{render(){return(0,K.jsxs)(qF,{children:[this.props.overlayId&&(0,K.jsx)(R,{heading:`3`,textAlign:`center`,padding:`20px 0`,children:`Review Note`}),!this.props.showEdit&&(0,W.isPresent)(this.props.card.note)&&(0,K.jsxs)(YF,{children:[(0,K.jsx)($i,{markdown:this.props.card.note}),(0,K.jsx)(XF,{children:(0,K.jsxs)(ZF,{children:[(0,K.jsxs)(gP,{onClick:()=>this.props.onSetShowEdit(!0),children:[(0,K.jsx)(J.PencilIcon,{}),`Edit`]}),(0,K.jsx)(ra,{allowDeletion:!0,onConfirm:()=>this.props.onSubmitNote(null),message:`Delete this note?`,confirmationMessageFloatsRight:!0,right:`auto`,left:`10px`,top:`-54px`,children:(0,K.jsxs)(gP,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Delete`]})})]})})]}),((0,W.isBlank)(this.props.card.note)||this.props.showEdit)&&(0,K.jsxs)(JF,{children:[(0,W.isPresent)(this.props.card.note)&&(0,K.jsx)(J.CloseIcon,{onClick:()=>this.props.onSetShowEdit(!1)}),(0,K.jsx)(LN,{width:`100%`,height:`200px`,blockTextExpansion:!0,text:this.props.card.note,placeholder:`Leave a Private Note`,onSubmitComment:this.props.onSubmitNote,languageId:this.props.card.languageId,maxLength:q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH})]}),(0,K.jsx)(QF,{children:(0,K.jsx)(Zi,{allowUpdate:!0,onChange:this.props.onChangeShowNoteBeforeReveal,value:this.props.card.showNoteBeforeReveal,children:`Show Note Icon Before Card is Revealed`})}),this.props.wordId&&(0,K.jsx)(GF,{showTopBorder:!0,wordId:this.props.wordId})]})}})||KF,eI=(0,Y.CardNoteWrapper)($F),tI,nI={Hard:(0,K.jsx)(J.NeutralFaceIcon,{}),Good:(0,K.jsx)(J.SmileFaceIcon,{}),Easy:(0,K.jsx)(J.BigSmileFaceIcon,{})},rI=N.table` 7176 width: 100%; 7177 border-collapse: collapse; 7178 border: none !important; 7179 td { 7180 font-size: 12px; 7181 vertical-align: middle; 7182 padding: 4px 6px; 7183 } 7184 th { 7185 font-size: 11px; 7186 font-weight: bold; 7187 color: #777; 7188 text-transform: uppercase; 7189 letter-spacing: 0.3px; 7190 padding: 4px 6px; 7191 text-align: left; 7192 } 7193`,iI=N.div` 7194 display: flex; 7195 align-items: center; 7196`,aI=N.div` 7197 margin-right: 5px; 7198 display: flex; 7199 align-items: center; 7200 .neutral-face-icon svg { fill: #656565; width: 16px; height: 16px; } 7201 .smile-face-icon svg, .big-smile-face-icon svg { fill: ${q.Theme.green}; width: 16px; height: 16px; } 7202`,oI=j(tI=class extends V.Component{loadReviews(){U.AppUI.reviewStore.setLimit(20),U.AppUI.loadReviews(this.props.cardId)}componentDidMount(){this.props.cardId&&this.loadReviews()}componentDidUpdate(e){e.cardId!==this.props.cardId&&this.props.cardId&&this.loadReviews()}get rows(){let e=U.AppUI.reviewStore.indexData.filter(e=>(0,W.isPresent)(e.repetitionInterval));return[...this.props.testReviewRows||[],...e]}get showPaginator(){let e=U.AppUI.reviewStore;return e.hasIndexData&&(e.indexData.length>=e.limit||e.page!==1)}get isLastPage(){let e=U.AppUI.reviewStore,t=this.props.viewsCount;return(0,W.isPresent)(t)?e.page>=Math.max(1,Math.ceil(t/e.limit)):e.indexData.length<e.limit}render(){return U.AppUI.loadingReviews?(0,K.jsx)(P,{background:q.Theme.blue}):!U.AppUI.reviewStore.hasIndexData&&!(0,W.isPresent)(this.props.testReviewRows)?(0,K.jsx)(`p`,{style:{color:`#777`,fontSize:`13px`,textAlign:`center`,padding:`20px 0`},children:`You haven't reviewed this card yet.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(rI,{children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`th`,{children:`Date`}),(0,K.jsx)(`th`,{children:`Score`}),(0,K.jsx)(`th`,{children:`Interval`}),(0,K.jsx)(`th`,{children:`Progress`})]})}),(0,K.jsxs)(`tbody`,{children:[this.rows.map(e=>{let t=this.props.repetitionIntervalValue?this.props.repetitionIntervalValue(e):e.repetitionInterval;return(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{children:(0,K.jsx)(iI,{children:e.createdAtText||e.createdAt?.formattedDateWithYear})}),(0,K.jsx)(`td`,{children:(0,K.jsxs)(iI,{children:[(0,K.jsx)(aI,{children:nI[e.lastScoreText]}),e.lastScoreText]})}),(0,K.jsx)(`td`,{children:(0,K.jsx)(iI,{children:this.props.repetitionIntervalDis
7202play(e)})}),(0,K.jsx)(`td`,{children:(0,K.jsx)(Fn,{borderRadius:`5px`,height:`16px`,background:`#CCC`,current:t,total:U.AppUI.user.daysUntilReviewRetired})})]},e.id)}),this.isLastPage&&(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{children:(0,K.jsx)(iI,{children:this.props.creationDateText||``})}),(0,K.jsx)(`td`,{children:(0,K.jsx)(iI,{children:`Creation`})}),(0,K.jsx)(`td`,{children:(0,K.jsx)(iI,{children:`-`})}),(0,K.jsx)(`td`,{children:(0,K.jsx)(Fn,{borderRadius:`5px`,height:`16px`,background:`#CCC`,current:0,total:U.AppUI.user.daysUntilReviewRetired})})]},`card-creation`)]})]}),this.showPaginator&&(0,K.jsx)(In,{store:U.AppUI.reviewStore,ids:{cardId:this.props.cardId}})]})}})||tI,sI=(0,Y.ReviewHistoryTableWrapper)(oI);D();var cI,lI,uI,dI,fI,pI,mI;function hI(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function gI(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _I=N.div` 7203 height: 100%; 7204 display: flex; 7205 flex-direction: column; 7206 align-items: center; 7207 padding-bottom: ${e=>e.inDeck?`20px`:`10px`}; 7208`,vI=N.div` 7209 display: flex; 7210 flex-direction: ${e=>e.inDeck?`column`:`row`}; 7211 padding-bottom: ${e=>e.inDeck?`20px`:`0`}; 7212 gap: ${e=>e.inDeck?`10px`:`20px`}; 7213 width: 100%; 7214 align-items: stretch; 7215 7216 @media (max-width: 700px) { 7217 flex-direction: column; 7218 } 7219`,yI=N.div` 7220 flex: 1; 7221 min-width: 0; 7222 display: flex; 7223 flex-direction: column; 7224 7225 @media (max-width: 700px) { 7226 width: 100%; 7227 } 7228`,bI=N.div` 7229 flex: 1; 7230 min-width: 0; 7231 display: flex; 7232 flex-direction: column; 7233 order: ${e=>e.inDeck?-1:0}; 7234 7235 @media (max-width: 700px) { 7236 order: 1; 7237 width: 100%; 7238 } 7239`,xI=N.div` 7240 background: white; 7241 width: 100%; 7242 padding: ${e=>e.inDeck?`10px 10px 12px`:`10px`}; 7243 margin-bottom: ${e=>e.inDeck?`0`:`10px`}; 7244 border-radius: 5px; 7245 position: relative; 7246 flex: 1; 7247`,SI=N.div` 7248 display: flex; 7249 flex-direction: column; 7250 width: 100%; 7251 padding: 0 10px; 7252`,CI=N.div` 7253 display: flex; 7254 flex-direction: row; 7255 border-bottom: 1px solid #f0f0f0; 7256`,wI=N.div` 7257 text-align: left; 7258 flex: ${e=>e.flex}; 7259 padding: 4px 0; 7260 font-size: 13px; 7261 color: #333; 7262`,TI=N(wI)` 7263 font-weight: bold; 7264 color: #777; 7265 font-size: 11px; 7266 text-transform: uppercase; 7267 letter-spacing: 0.3px; 7268 flex: 1; 7269`,EI=N.div` 7270 overflow: hidden; 7271 margin-top: 14px; 7272`,DI=N.div` 7273 display: flex; 7274 flex-direction: row; 7275 align-items: center; 7276 justify-content: space-between; 7277 padding: 12px 14px; 7278 cursor: pointer; 7279 font-size: 14px; 7280 color: #333; 7281 border-bottom: ${e=>e.last?`none`:`1px solid #ebebeb`}; 7282 background: white; 7283 &:hover { background: #fafafa; } 7284`,OI=N.div` 7285 margin-top: 16px; 7286 display: flex; 7287 flex-direction: column; 7288 gap: 8px; 7289 max-width: 300px; 7290 width: 100%; 7291 margin-left: auto; 7292 margin-right: auto; 7293`,kI=N.div` 7294 display: flex; 7295 flex-direction: column; 7296 align-items: center; 7297 padding: ${e=>e.inDeck?`4px 0 6px`:`6px 0 12px`}; 7298 max-width: 320px; 7299 margin-top: ${e=>e.inDeck?`8px`:`20px`}; 7300 margin-left: auto; 7301 margin-right: auto; 7302`,AI=N.button` 7303 position: absolute; 7304 top: 8px; 7305 right: ${e=>e.inDeck?`20px`:`8px`}; 7306 background: none; 7307 border: none; 7308 padding: 0; 7309 cursor: pointer; 7310 color: #aaa; 7311 font-size: 15px; 7312 display: flex; 7313 align-items: center; 7314 &:hover { color: #777; } 7315`,jI=N.div` 7316 background: ${e=>e.background}; 7317 color: #FFF; 7318 border-radius: 8px; 7319 font-size: 12px; 7320 padding: 3px 8px; 7321 font-weight: bold; 7322 display: inline-flex; 7323 align-items: center; 7324 gap: 4px; 7325`,MI=N.div` 7326 background: #f5f5f5; 7327 border-radius: 8px; 7328 padding: 10px 12px; 7329 margin-bottom: 8px; 7330 display: flex; 7331 align-items: flex-start; 7332 gap: 8px; 7333 font-size: 13px; 7334 color: #555; 7335 line-height: 1.5; 7336 a { 7337 color: ${q.Theme.blue}; 7338 text-decoration: underline; 7339 } 7340`,NI=N.div` 7341 display: flex; 7342 flex-direction: column; 7343 border-radius: 8px; 7344 border: 1px solid #ebebeb; 7345 overflow: hidden; 7346 margin-bottom: 14px; 7347`,PI=N.div` 7348 display: flex; 7349 flex-direction: column; 7350 padding: 10px 12px; 7351 border-bottom: ${e=>e.last?`none`:`1px solid #ebebeb`}; 7352`,FI=N.div` 7353 font-size: 10px; 7354 font-weight: bold; 7355 color: #aaa; 7356 text-transform: uppercase; 7357 letter-spacing: 0.4px; 7358 margin-bottom: 3px; 7359 text-align: left; 7360`,II=N.div` 7361 font-size: 15px; 7362 color: #222; 7363 text-align: left; 7364`,LI=N.div` 7365 display: flex; 7366 align-items: center; 7367 justify-content: space-between; 7368 padding: 8px 12px; 7369 cursor: pointer; 7370 font-size: 13px; 7371 color: #555; 7372 border-top: 1px solid #ebebeb; 7373 &:hover { 7374 background: #fafafa; 7375 } 7376`;function RI(e){if(!e)return!1;let t=q.Constants.REVIEW_CARD_TYPES.find(e=>e.slug===`user_submission`);return!!(e.userSubmission||e.cardType?.slug===`user_submission`||t&&String(e.cardTypeId)===String(t.id))}function zI(e){return e?RI(e)?e.frontText||``:e.word&&!e.sentence?e.word.targetTextWithDefiniteArticle||``:e.sentence?e.sentence.targetText||``:e.frontText||``:``}function BI(e){return e?RI(e)?e.backText||``:e.reviewBackText():``}var VI=j(cI=(lI=class extends V.Component{constructor(...e){super(...e),hI(this,`showChangeCardTypeModal`,uI,this),hI(this,`showMoveToDeckModal`,dI,this),hI(this,`showEditNoteModal`,fI,this),hI(this,`showExplainer`,pI,this),hI(this,`reviewActionConfirm`,mI,this),this.openConfirm=e=>{this.reviewActionConfirm=e},this.closeConfirm=()=>{this.reviewActionConfirm=null},this.onConfirmReviewAction=()=>{let e=this.reviewActionConfirm;this.reviewActionConfirm=null,e===`reset`?this.props.onResetReview():e===`snooze`?this.props.onSnoozeReview():e===`retire`?this.props.onRetireReview():e===`delete`&&this.props.onDeleteReview()},this.onMoveToDeck=e=>{!this.props.card?.id||!e||String(e)===String(this.props.card.deckId)||(typeof this.props.card.set==`function`&&this.props.card.set(`deckId`,e),U.DeckUI.cardStore.batchUpdate({data:{cardIds:[this.props.card.id],deckId:e}},()=>U.AppUI.cardStore.getShow({ids:{cardId:this.props.card.id}})),this.showMoveToDeckModal=!1)}}reviewProgressFillForSegment(e){let t=U.AppUI.user.daysUntilReviewRetired||1,n=this.props.intervalTesterCard?.repetitionInterval||0;return n===0?`#e0e0e0`:e===1||Math.round(Math.min(n/t,1)*10)>=e?q.Theme.green:`#e0e0e0`}render(){let e=(0,W.isPresent)(this.props.overlayId);if(this.props.showSpinner)return(0,K.jsx)(_I,{inDeck:e,children:(0,K.jsx)(P,{})});if(this.props.card){let t=BI(this.props.card);return(0,K.jsxs)(_I,{inDeck:e,children:[this.reviewActionConfirm&&(0,K.jsxs)(Dn,{onCloseModal:this.closeConfirm,animate:!0,gradient:!0,width:`360px`,marginTop:`300px`,title:this.props.reviewActionConfirmTitle[this.reviewActionConfirm],children:[(0,K.jsx)(R,{textAlign:`center`,padding:`10px 20px`,children:this.props.reviewActionConfirmMessage[this.reviewActionConfirm]}),(0,K.jsxs)(`div`,{style:{display:`flex`,gap:`10px`,justifyContent:`center`,padding:`10px 20px 20px`},children:[(0,K.jsx)(I,{onClick:this.onConfirmReviewAction,background:this.reviewActionConfirm===`delete`?q.Theme.red:q.Theme.blue,color:`white`,children:`Confirm`}),(0,K.jsx)(I,{onClick:this.closeConfirm,children:`Cancel`})]})]}),this.showChangeCardTypeModal&&(0,K.jsxs)(Dn,{onCloseModal:()=>this.showChangeCardTypeModal=!1,animate:!0,width:U.DeckUI.layout.deckWidth-40,marginTop:`200px`,marginLeft:`40px`,title:`Select a Card Type`,gradient:!0,children:[(0,K.jsx)(`div`,{style:{padding:`10px 0 10px`},children:(0,K.jsx)(FF,{card:this.props.card,onChangeCardTypeId:this.props.onChangeCardTypeId})}),this.props.showUpdatedCardTypeMessage&&this.props.card.cardTypeName&&(0,K.jsx)(B,{textAlign:`center`,width:`100%`,margin:`10px 0 0 0`,background:q.Theme.green,children:`Next time this card appears in a deck it will be a ${this.props.card.cardTypeName} card`})]}),this.showMoveToDeckModal&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showMoveToDeckModal=!1,animate:!0,width:U.DeckUI.layout.deckWidth-40,marginTop:`200px`,marginLeft:`40px`,title:`Move to Another Deck`,gradient:!0,children:(0,K.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`10px`,padding:`10px 0 10px`},children:[U.AppUI.reviewDeckOptions.length===0&&(0,K.jsx)(R,{textAlign:`center`,padding:`10px 20px`,children:`There is no other review deck to move this card to.`}),U.AppUI.reviewDeckOptions.map(([e,t])=>(0,K.jsx)(I,{borderRadius:`5px`,background:String(e)===String(this.props.card.deckId)?q.Theme.blue:`#ECECEC`,color:String(e)===String(this.props.card.deckId)?`#FFF`:`#333`,onClick:()=>this.onMoveToDeck(e),children:t},e))]})}),this.showEditNoteModal&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showEditNoteModal=!1,animate:!0,width:U.DeckUI.layout.deckWidth-40,marginTop:`150px`,marginLeft:`40px`,title:`Review Note`,gradient:!0,children:(0,K.jsx)(eI,{card:this.props.card,cardId:this.props.cardId})}),U.DeckUI.user.admin&&this.props.card&&this.props.card.id&&(0,K.jsx)(DF,{card:this.props.intervalTesterCard,processScore:this.props.processScore,forceReviewAfterDue:this.props.forceReviewAfterDue,reviewsDueAtBeginningOfDay:this.props.intervalTesterReviewsDueAtBeginningOfDay,onToggleIntervalTesterReviewsDueAtBeginningOfDay:this.props.onToggleIntervalTesterReviewsDueAtBeginningOfDay}),(0,K.jsxs)(vI,{inDeck:e,children:[(0,K.jsx)(yI,{children:(0,K.jsxs)(xI,{children:[!!((0,W.isPresent)(zI(this.props.card))||(0,W.isPresent)(t)||RI(this.props.card))&&(0,K.jsxs)(NI,{children:[(0,W.isPresent)(zI(this.props.card))&&(0,K.jsxs)(PI,{last:!(0,W.isPresent)(t)&&!RI(this.props.card),children:[(0,K.jsx)(FI,{children:`Front`}),RI(this.props.card)?(0,K.jsx)(Qi,{allowUpdate:!0,inputType:`textarea`,model:`cards`,field:`front_text`,id:this.props.card.id,defaultValue:zI(this.props.card),textAlign:`left`,onBlur:this.props.onUpdateFrontText,afterChange:this.props.onUpdateFrontText}):(0,K.jsx)(II,{children:zI(this.props.card)})]}),(0,W.isPresent)(t)&&(0,K.jsxs)(PI,{last:!RI(this.props.card),children:[(0,K.jsx)(FI,{children:`Back`}),RI(this.props.card)?(0,K.jsx)(Qi,{allowUpdate:!0,inputType:`textarea`,model:`cards`,field:`back_text`,id:this.props.card.id,defaultValue:t,textAlign:`left`,onBlur:this.props.onUpdateBackText,afterChange:this.props.onUpdateBackText}):(0,K.jsx)(II,{children:t})]}),RI(this.props.card)&&(0,K.jsxs)(LI,{onClick:this.props.onSwapFrontAndBack,children:[(0,K.jsx)(`span`,{children:`Swap front and back`}),(0,K.jsx)(`i`,{className:`fa fa-exchange`,style:{color:`#aaa`,fontSize:`12px`,transform:`rotate(45deg)`}})]})]}),this.props.card.cardType&&this.props.card.userSubmission&&this.props.card.word&&(0,W.isPresent)(this.props.card.word?.target?.videoClip)&&(0,K.jsx)(I,{fontSize:`13px`,margin:`0 0 12px`,width:`100%`,disabled:this.props.card.cardTypeId===q.Constants.REVIEW_CARD_TYPES.find(e=>e.slug===`user_submission`).id,onClick:this.props.onSwitchBackToCustom,background:q.Theme.green,children:`Switch back to custom card`}),(0,K.jsxs)(SI,{children:[(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Deck`}),(0,K.jsx)(wI,{flex:`1`,children:U.AppUI.reviewDeckStore.indexData.find(e=>e.id===this.props.card.deckId)?.name||`-`})]}),(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Card Type`}),(0,K.jsx)(wI,{flex:`1`,children:this.props.card.cardType?.name||this.props.cardTypeName||`-`})]}),!this.props.overlayId&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Reviews`}),(0,K.jsx)(wI,{flex:`1`,children:this.props.card.viewsCount??`-`})]}),(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Consecutive Positive`}),(0,K.jsx)(wI,{flex:`1`,children:this.props.card.consecutiveGoodScores??`-`})]}),(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Created`}),(0,K.jsx)(wI,{flex:`1`,children:this.props.card.createdAt?.fullTextFormattedDateWithYear||`-`})]}),(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Due`}),(0,K.jsx)(wI,{flex:`1`,children:this.props.reviewAfterText})]})]}),(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Difficulty`}),(0,K.jsx)(wI,{flex:`1`,children:this.props.card.difficultyLabel&&(0,K.jsx)(jI,{background:this.props.card.difficultyColor,children:this.props.card.difficultyLabel})})]}),(0,K.jsxs)(CI,{children:[(0,K.jsx)(TI,{flex:`1`,children:`Status`}),(0,K.jsxs)(wI,{flex:`1`,children:[!!this.props.card.retired&&(0,K.jsxs)(jI,{background:q.Theme.purple,children:[(0,K.jsx)(`i`,{className:`fa fa-archive`,style:{fontSize:`11px`}}),`Retired`]}),!!(!this.props.card.retired&&this.props.isReviewPastDue)&&(0,K.jsxs)(jI,{background:q.Theme.orange,children:[(0,K.jsx)(`i`,{className:`fa fa-clock-o`,style:{fontSize:`11px`}}),`Past Due`]}),!this.props.card.retired&&!this.props.isReviewPastDue&&(0,K.jsxs)(jI,{background:q.Theme.green,children:[(0,K.jsx)(`i`,{className:`fa fa-check`,style:{fontSize:`11px`}}),`Caught Up`]})]})]})]}),(0,K.jsxs)(EI,{children:[(0,K.jsxs)(DI,{onClick:()=>this.showEditNoteModal=!0,children:[`Edit Review Note`,(0,K.jsx)(`i`,{className:`fa fa-angle-right`,style:{color:`#ccc`}})]}),(0,K.jsxs)(DI,{onClick:()=>this.showChangeCardTypeModal=!0,children:[`Change Card Type`,(0,K.jsx)(`i`,{className:`fa fa-angle-right`,style:{color:`#ccc`}})]}),U.AppUI.reviewDeckOptions.filter(([e])=>String(e)!==String(this.props.card.deckId)).length>0&&(0,K.jsxs)(DI,{last:!0,onClick:()=>this.showMoveToDeckModal=!0,children:[`Move to Another Deck`,(0,K.jsx)(`i`,{className:`fa fa-angle-right`,style:{color:`#ccc`}})]})]}),(0,K.jsxs)(OI,{children:[this.props.card.viewsCount>0&&(0,K.jsx)(I,{onClick:()=>this.openConfirm(`reset`),children:`Reset Review`}),(0,K.jsx)(I,{onClick:()=>this.openConfirm(`snooze`),children:`Snooze Review`}),this.props.card&&(0,K.jsx)(I,{onClick:this.props.onRetireReview,background:this.props.card.retired?q.Theme.green:q.Theme.purple,color:`white`,disabled:this.props.retireReviewPending,children:this.props.card.retired?`Unretire Review`:`Retire Review`}),(0,K.jsx)(I,{onClick:()=>this.openConfirm(`delete`),background:q.Theme.red,color:`white`,children:`Delete Review`})]})]})}),(0,K.jsx)(bI,{inDeck:e,children:(0,K.jsxs)(xI,{inDeck:e,children:[(0,K.jsx)(AI,{inDeck:e,onClick:()=>this.showExplainer=!this.showExplainer,children:(0,K.jsx)(`i`,{className:`fa fa-info-circle`})}),(0,K.jsx)(kI,{inDeck:e,children:(0,K.jsx)($h,{fill1:this.reviewProgressFillForSegment(1),fill2:this.reviewProgressFillForSegment(2),fill3:this.reviewProgressFillForSegment(3),fill4
7376:this.reviewProgressFillForSegment(4),fill5:this.reviewProgressFillForSegment(5),fill6:this.reviewProgressFillForSegment(6),fill7:this.reviewProgressFillForSegment(7),fill8:this.reviewProgressFillForSegment(8),fill9:this.reviewProgressFillForSegment(9),fill10:this.reviewProgressFillForSegment(10)})}),this.showExplainer&&(0,K.jsxs)(MI,{children:[(0,K.jsx)(`i`,{className:`fa fa-info-circle`,style:{color:`#aaa`,marginTop:`2px`,flexShrink:0}}),(0,K.jsxs)(`span`,{children:[`The current review interval is ${this.props.currentRepetitionIntervalText}. Once the interval reaches ${U.AppUI.user.daysUntilReviewRetired}, the review can be retired. `,(0,K.jsx)(`a`,{href:`https://seedlang.com/help_center/topic/7d2bdc2a-34ec-414a-971c-afb00c9291a5/article/6864c661-5cd6-4769-8c1c-2e38e4df268a`,target:`_blank`,rel:`noopener noreferrer`,children:`Learn more`})]})]}),this.props.overlayId&&(0,K.jsx)(I,{margin:`8px 0 0`,background:`#ececec`,color:`#555`,fontSize:`13px`,borderRadius:`10px`,onClick:()=>U.OverlayUI.addOverlay(`reviewHistory`,{card:this.props.card,cardId:this.props.card.id,viewsCount:this.props.card.viewsCount,creationDateText:this.props.card.createdAt?.formattedDateWithYear}),children:`See Review History`}),!this.props.overlayId&&(0,K.jsx)(`div`,{style:{marginTop:e?`8px`:`20px`},children:(0,K.jsx)(sI,{cardId:this.props.cardId,testReviewRows:this.props.testReviewRows,viewsCount:this.props.card.viewsCount,creationDateText:this.props.card.createdAt?.formattedDateWithYear,reviewsDueAtBeginningOfDayValue:this.props.intervalTesterReviewsDueAtBeginningOfDay})})]})})]})]})}else return(0,K.jsx)(`span`,{})}},uI=gI(lI.prototype,`showChangeCardTypeModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),dI=gI(lI.prototype,`showMoveToDeckModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fI=gI(lI.prototype,`showEditNoteModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pI=gI(lI.prototype,`showExplainer`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mI=gI(lI.prototype,`reviewActionConfirm`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),lI))||cI,HI=(0,Y.ReviewDetailsWrapper)(VI),UI,WI=N.div` 7377 padding: 10px; 7378`,GI=N.div` 7379 display: flex; 7380 flex-direction: column; 7381 width: 100%; 7382 padding: 0 10px; 7383 margin-bottom: 14px; 7384`,KI=N.div` 7385 display: flex; 7386 flex-direction: row; 7387`,qI=N.div` 7388 text-align: left; 7389 flex: ${e=>e.flex}; 7390 padding: 4px 0; 7391 font-size: 13px; 7392 color: #333; 7393`,JI=N(qI)` 7394 font-weight: bold; 7395 color: #777; 7396 font-size: 11px; 7397 text-transform: uppercase; 7398 letter-spacing: 0.3px; 7399 flex: 1; 7400`,YI=N.div` 7401 background: ${e=>e.background}; 7402 color: #FFF; 7403 border-radius: 8px; 7404 font-size: 12px; 7405 padding: 3px 8px; 7406 font-weight: bold; 7407 display: inline-flex; 7408 align-items: center; 7409 gap: 4px; 7410`,XI=j(UI=class extends V.Component{render(){let e=this.props.card;return(0,K.jsxs)(WI,{children:[e&&(0,K.jsxs)(GI,{children:[(0,K.jsxs)(KI,{children:[(0,K.jsx)(JI,{flex:`1`,children:`Reviews`}),(0,K.jsx)(qI,{flex:`1`,children:e.viewsCount??`-`})]}),(0,K.jsxs)(KI,{children:[(0,K.jsx)(JI,{flex:`1`,children:`Consecutive Positive`}),(0,K.jsx)(qI,{flex:`1`,children:e.consecutiveGoodScores??`-`})]}),(0,K.jsxs)(KI,{children:[(0,K.jsx)(JI,{flex:`1`,children:`Created`}),(0,K.jsx)(qI,{flex:`1`,children:e.createdAt?.fullTextFormattedDateWithYear||`-`})]}),(0,K.jsxs)(KI,{children:[(0,K.jsx)(JI,{flex:`1`,children:`Due`}),(0,K.jsx)(qI,{flex:`1`,children:this.props.reviewAfterText})]}),(0,K.jsxs)(KI,{children:[(0,K.jsx)(JI,{flex:`1`,children:`Status`}),(0,K.jsxs)(qI,{flex:`1`,children:[e.retired&&(0,K.jsxs)(YI,{background:q.Theme.purple,children:[(0,K.jsx)(`i`,{className:`fa fa-archive`,style:{fontSize:`11px`}}),`Retired`]}),!e.retired&&this.props.isReviewPastDue&&(0,K.jsxs)(YI,{background:q.Theme.orange,children:[(0,K.jsx)(`i`,{className:`fa fa-clock-o`,style:{fontSize:`11px`}}),`Past Due`]}),!e.retired&&!this.props.isReviewPastDue&&(0,K.jsxs)(YI,{background:q.Theme.green,children:[(0,K.jsx)(`i`,{className:`fa fa-check`,style:{fontSize:`11px`}}),`Caught Up`]})]})]})]}),(0,K.jsx)(sI,{cardId:this.props.cardId,viewsCount:this.props.viewsCount,creationDateText:this.props.creationDateText})]})}})||UI,ZI=(0,Y.ReviewHistoryWrapper)(XI),QI=({children:e})=>U.AppUI.layout.isMobile?e:null,$I=N.div` 7411 display: flex; 7412 flex-direction: row; 7413 align-items: center; 7414 justify-content: ${e=>e.isMobile?`space-between`:`center`}; 7415 background: ${e=>e.selected?`#DDD`:`#FFF`}; 7416 color: ${e=>e.color}; 7417 font-weight: ${e=>e.isMobile?`normal`:`bold`}; 7418 cursor: pointer;
7419 column-gap: ${z.xs}; 7420 height: ${e=>e.isMobile?`54px`:`68px`}; 7421 display: flex; 7422 position: relative; 7423 margin: 0; 7424 border-bottom: 1px solid #e8e8e8; 7425 font-size: ${e=>e.isMobile?`16px`:`14px`}; 7426 padding: ${e=>e.isMobile?`0 16px`:`0 10px`}; 7427 box-sizing: border-box; 7428 &:hover { 7429 background: #DDD; 7430 } 7431 7432 i { 7433 margin-top: 2.5px; 7434 } 7435`,eL=e=>{let t=(0,K.jsxs)($I,{selected:e.selected,onClick:e.onClick,isMobile:U.AppUI.layout.isMobile,color:e.color,children:[e.children,!e.hideCaret&&(0,K.jsx)(QI,{children:(0,K.jsx)(`i`,{className:`fa fa-chevron-right`})})]});return e.to?(0,K.jsx)(F,{to:e.to,children:t}):t};D();var tL,nL;function rL(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var iL=N.div` 7436 grid-area: menu; 7437 width: ${e=>e.width}; 7438 margin: ${e=>e.margin}; 7439 border-radius: ${e=>e.borderRadius}; 7440 overflow: hidden; 7441 border: ${e=>e.isMobile?`1px solid #e0e0e0`:0}; 7442 box-sizing: border-box; 7443`,aL=j(tL=(nL=class extends V.Component{get navigationItems(){return U.AppUI.site.navigationItems.filter(e=>e.showInUserSettings&&e.path.startsWith(`/pages/`)).map(e=>{let t=e.path.match(/\/pages\/(.*)/);return{name:e.name,id:e.id,pageId:t?t[1]:null}})}routeIsSelected(e,t={}){return U.AppUI.routeStore.routeName===e&&Object.keys(t).every(e=>U.AppUI.routeStore.params?.[e]===t[e])}render(){return(0,K.jsxs)(iL,{width:U.AppUI.layout.isMobile?this.props.embeddedMobile?`100%`:`calc(100% - 30px)`:`250px`,margin:U.AppUI.layout.isMobile?this.props.embeddedMobile?`0 0 20px`:`20px 15px`:null,borderRadius:U.AppUI.layout.isMobile?`14px`:`10px`,isMobile:U.AppUI.layout.isMobile,children:[(0,K.jsx)(eL,{to:`settings.user_profile`,selected:this.routeIsSelected(`settings.user_profile`),children:`User Settings`}),(0,K.jsxs)(mp,{children:[(0,K.jsx)(eL,{to:`settings.user_image`,selected:this.routeIsSelected(`settings.user_image`),children:`Profile Image`}),(0,K.jsx)(eL,{to:`settings.password`,selected:this.routeIsSelected(`settings.password`),children:`Change Password`}),(0,K.jsx)(eL,{to:`settings.deck`,selected:this.routeIsSelected(`settings.deck`),children:`Deck Settings`}),(0,K.jsx)(eL,{to:`settings.clear_progress`,selected:this.routeIsSelected(`settings.clear_progress`),children:`Clear Progress`}),(0,K.jsx)(eL,{to:`settings.streak_repair`,selected:this.routeIsSelected(`settings.streak_repair`),children:`Streak Repair`}),(0,K.jsx)(eL,{to:`settings.user_notifications`,selected:this.routeIsSelected(`settings.user_notifications`),children:`Notifications`})]}),(0,K.jsx)(eL,{to:`settings.billing`,selected:this.routeIsSelected(`settings.billing`),children:U.AppUI.siteIsDefault?`Manage Subscription`:`Manage Membership`}),(0,K.jsx)(hp,{children:(0,K.jsx)(eL,{to:`settings.email`,selected:this.routeIsSelected(`settings.email`),children:`Email Preferences`})}),(0,K.jsx)(hp,{children:(0,K.jsx)(eL,{to:`settings.audio_feeds`,selected:this.routeIsSelected(`settings.audio_feeds`),children:`Audio Feeds`})}),this.navigationItems.map(e=>(0,K.jsx)(eL,{to:{name:`settings.page.show`,params:{pageId:e?.pageId}},selected:this.routeIsSelected(`settings.page.show`,{pageId:e?.pageId}),children:e.name},e.id)),(0,K.jsx)(eL,{to:`settings.privacy`,selected:this.routeIsSelected(`settings.privacy`),children:`Privacy`})]})}},rL(nL.prototype,`navigationItems`,[E],Object.getOwnPropertyDescriptor(nL.prototype,`navigationItems`),nL.prototype),nL))||tL,oL,sL=N.div` 7444 display: flex; 7445 align-items: center; 7446 justify-content: center; 7447 width: 100%; 7448 height: 54px; 7449 background: #FFF; 7450 border-bottom: 1px solid #e8e8e8; 7451 box-sizing: border-box; 7452 font-size: 14px; 7453 font-weight: bold; 7454 position: relative; 7455 cursor: pointer; 7456 &:hover { 7457 background: #DDD; 7458 } 7459`,cL=N.i` 7460 position: absolute; 7461 left: 16px; 7462`,lL=j(oL=class extends V.Component{render(){return(0,K.jsxs)(sL,{onClick:this.props.onBack,children:[(0,K.jsx)(cL,{className:`fa fa-chevron-left`}),this.props.title]})}})||oL;D();var uL,dL;function fL(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var pL=N.div` 7463 margin: ${e=>e.margin}; 7464 display: flex; 7465 flex-direction: ${e=>e.flexDirection}; 7466 gap: 15px; 7467 align-items: start; 7468 width: 100%; 7469 box-sizing: border-box; 7470`,mL=N.div` 7471 flex: 1; 7472 margin: ${e=>e.margin}; 7473 padding: ${e=>e.isMobile?`10px`:`20px`}; 7474 border-radius: ${e=>e.borderRadius}; 7475 overflow: hidden; 7476 background: white; 7477 width: 100%; 7478 box-sizing: border-box; 7479`,hL=N.div` 7480 background: white; 7481 padding: ${e=>e.isMobile?0:`10px`}; 7482 h3 { 7483 margin: 0 0 20px 0; 7484 } 7485`,gL=j(uL=(dL=class extends V.Component{get flexDirection(){return U.AppUI.layout.isDesktop?U.AppUI.siteIsDefault?`row`:`row-reverse`:`column`}get showMobileSettingsMenu(){return U.AppUI.layout.isMobile&&U.AppUI.routeStore.routeName===`settings.all`}componentDidMount(){U.AppUI.userIsSignedInAndNotGuest||U.AppUI.routeToHome(),!U.AppUI.layout.isMobile&&U.AppUI.routeStore.routeName===`settings.all`&&U.AppUI.routeStore.routeToNamed(`settings.user_profile`)}render(){return(0,K.jsxs)(pL,{flexDirection:this.flexDirection,margin:U.AppUI.layout.isMobile?0:null,children:[this.showMobileSettingsMenu&&(0,K.jsx)(lL,{title:`Settings`,onBack:()=>U.AppUI.routeStore.routeToNamed(`more`)}),!this.showMobileSettingsMenu&&(0,W.isPresent)(this.props.content)&&(0,K.jsxs)(K.Fragment,{children:[U.AppUI.layout.isMobile&&U.AppUI.userIsSignedInAndNotGuest&&(0,K.jsx)(lL,{title:`Back to Settings`,onBack:()=>U.AppUI.routeStore.routeToNamed(`more`)}),(0,K.jsx)(mL,{borderRadius:U.AppUI.layout.isMobile?0:`10px`,isMobile:U.AppUI.layout.isMobile,children:(0,K.jsx)(hL,{isMobile:U.AppUI.layout.isMobile,children:this.props.content})})]}),U.AppUI.userIsSignedInAndNotGuest&&(U.AppUI.layout.isDesktop||this.showMobileSettingsMenu)&&(0,K.jsx)(aL,{...this.props})]})}},fL(dL.prototype,`flexDirection`,[E],Object.getOwnPropertyDescriptor(dL.prototype,`flexDirection`),dL.prototype),fL(dL.prototype,`showMobileSettingsMenu`,[E],Object.getOwnPropertyDescriptor(dL.prototype,`showMobileSettingsMenu`),dL.prototype),dL))||uL;function _L(e){let t=g();return(0,K.jsx)(gL,{...e,content:t})}D();var vL=e(Mi()),yL,bL,xL,SL,CL,wL;function TL(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function EL(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var DL=N.div` 7486 background: white; 7487 display: flex; 7488 flex-direction: column; 7489 align-items: center; 7490 position: relative; 7491 input { 7492 margin: ${e=>e.margin}; 7493 } 7494`,OL=N.img` 7495 object-fit: cover; 7496 object-position: center center; 7497 width: 150px; 7498 height: 150px; 7499 border-radius: 50%; 7500`,kL=N.div` 7501 position: relative; 7502 display: inline-block; 7503 .fa-times { 7504 position: absolute; 7505 right: 0; 7506 background: red; 7507 color: white; 7508 width: 25px; 7509 height: 25px; 7510 text-align: center; 7511 line-height: 24px; 7512 border-radius: 50%; 7513 font-size: 14px; 7514 } 7515 img { 7516 margin-top: 10px; 7517 max-width: 180px; 7518 } 7519`,AL=Pi(j(yL=(bL=(wL=class extends V.Component{constructor(e){super(e),TL(this,`showSpinner`,xL,this),TL(this,`imageUrlFromResponse`,SL,this),TL(this,`error`,CL,this),this.activeUpload=null,this.onMultipartPost=async()=>{let e=this.inputRef.current?.files?.[0];if(!e)return;if(this.cancelUpload(),this.showSpinner=!1,e.size>6291456){this.error=`File size exceeds 6MB limit. Please choose a smaller file.`,this.clearFileInput();return}this.error=null,this.showSpinner=!0;let t={controller:new AbortController};this.activeUpload=t;let n=e=>n=>{this.activeUpload===t&&(this.activeUpload=null,e(n))};try{let r=e;if(e.size>1048576){let n=await ia(e,{maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0,signal:t.controller.signal});r=new File([n],e.name,{type:e.type,lastModified:e.lastModified})}if(this.activeUpload!==t)return;t.request=H.Api.multipartPost({url:this.props.uploadUrl||new pT.UrlBuilder().build((0,vL.default)(this.props.model),this.props.querystring),data:{data:this.data(r)},successCallback:n(this.onChange),failureCallback:n(this.onUploadError),onRequestError:n(this.onUploadError)})}catch{if(this.activeUpload!==t)return;this.activeUpload=null,this.error=`Error processing image. Please try again.`,this.showSpinner=!1,this.clearFileInput()}},this.cancelUpload=()=>{let e=this.activeUpload;this.activeUpload=null,e?.controller.abort(),e?.request?.abort()},this.onUploadError=()=>{this.error=`Image upload failed. Please try again.`,this.showSpinner=!1,this.clearFileInput()},this.clearFileInput=()=>{this.inputRef.current&&(this.inputRef.current.value=``)},this.onDelete=()=>{let e=this.props.id??this.props.image?.id;if(!e){this.imageUrlFromResponse=null,this.onChange({success:!0});return}this.showSpinner=!0,this.imageUrlFromResponse=null,H.Api.destroy({url:`/api/${(0,vL.default)(this.props.model)}/${e}`,successCallback:this.onChange})},this.onChange=e=>{if(!e.success){this.onUploadError();return}this.showSpinner=!1,e.success&&(e.url&&(this.imageUrlFromResponse=e.url),this.props.updateCallback&&this.props.updateCallback(e)),this.clearFileInput(),this.props.onChange&&this.props.onChange(e)},this.inputRef=V.createRef()}get imageUrl(){return this.props.image?this.props.image.url:this.imageUrlFromResponse?this.imageUrlFromResponse:null}componentWillUnmount(){this.cancelUpload()}data(e=this.inputRef.current?.files?.[0]){let t=new FormData;return t.append(`blob`,e),t}render(){return(0,K.jsxs)(DL,{margin:this.props.margin,children:[this.error&&(0,K.jsx)(B,{margin:`0 0 10px 0`,children:this.error}),(0,K.jsx)(`input`,{type:`file`,ref:this.inputRef,onChange:this.onMultipartPost,accept:`.jpg,.jpeg,.png,.gif`,style:{display:(0,W.isPresent)(this.imageUrl)?`none`:`block`}}),(0,W.isPresent)(this.imageUrl)&&(0,K.jsxs)(kL,{children:[!this.props.hideDelete&&(0,K.jsx)(aa,{i:`times`,onClick:this.onDelete.bind(this)}),!this.props.circle&&(0,K.jsx)(`img`,{alt:``,src:this.imageUrl}),this.props.circle&&(0,K.jsx)(OL,{alt:``,src:this.imageUrl,onClick:this.onClick})]}),this.showSpinner&&(0,K.jsx)(P,{className:`blue`,margin:`0 auto`})]})}},wL.propTypes={onChange:Z.default.func,value:Z.default.string,model:Z.default.string,uploadUrl:Z.default.string,querystring:Z.default.object,margin:Z.default.string},wL.defaultProps={margin:`0 0 20px 0`},wL),xL=EL(bL.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SL=EL(bL.prototype,`imageUrlFromResponse`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CL=EL(bL.prototype,`error`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),EL(bL.prototype,`imageUrl`,[E],Object.getOwnPropertyDescriptor(bL.prototype,`imageUrl`),bL.prototype),bL))||yL),jL,ML=N.div` 7520 background: #545454; 7521 height: 100%; 7522 padding: 10px 20px; 7523`,NL=N.div` 7524 display: flex; 7525 flex-direction: row; 7526 margin: 10px 0 0 0; 7527`,PL=j(jL=class extends V.Component{render(){return(0,K.jsxs)(ML,{children:[this.props.displaySubmittedMessage&&(0,K.jsx)(B,{children:`Thank you for submitting your bug report. We will be in touch shortly.`}),(0,K.jsx)(R,{heading:`2`,textAlign:`center`,padding:`0 0 20px 0`,color:`#FFF`,children:`Report Bug`}),(0,K.jsx)(R,{padding:`10px 0`,color:`#FFF`,textAlign:`left`,fontSize:`14px`,lineHeight:`18px`,children:`Thank you for letting us know about the problem that you are experiencing. This message will include information such as your device type and your deck's current state.`}),!U.DeckUI.userIsLoaded&&(0,K.jsx)(R,{padding:`10px 0`,color:`#FFF`,textAlign:`left`,bold:!0,children:`Email`}),!U.DeckUI.userIsLoaded&&(0,K.jsx)(Ii,{value:this.props.email,onChange:e=>this.props.setEmail(e)}),(0,K.jsx)(R,{padding:`10px 0`,color:`#FFF`,textAlign:`left`,bold:!0,children:`Message`}),(0,K.jsx)(Ii,{value:this.props.message,inputType:`textarea`,onChange:e=>this.props.setMessage(e),height:`140px`,expandedHeight:`140px`}),(0,K.jsx)(R,{padding:`10px 0`,color:`#FFF`,textAlign:`left`,bold:!0,children:`Attach Image`}),(0,K.jsx)(AL,{model:`images`,uploadUrl:`/api/contact_messages/upload_image`,margin:`0`,onCh
7527ange:this.props.setImage,image:this.props.image}),(0,K.jsx)(R,{padding:`10px 0`,color:`#FFF`,textAlign:`left`,fontSize:`14px`,children:`If you can attach a screenshot, it is very helpful for troubleshooting.`}),(0,K.jsxs)(NL,{children:[(0,K.jsx)(I,{background:q.Theme.green,color:`#FFF`,width:130,disabled:this.props.disabled,onClick:()=>this.props.onSubmit({webVersion:U.DeckUI.user?.site?.currentWebVersion}),margin:`0 10px 0 0`,children:`Send`}),(0,K.jsx)(I,{background:q.Theme.red,color:`#FFF`,text:`Reset`,width:130,marginLeft:10,disabled:this.props.disabled,onClick:this.props.onReset,children:`Reset`})]}),U.DeckUI.currentCard&&!U.DeckUI.currentCard.translation?.simple&&(0,K.jsxs)(R,{padding:`10px 0`,color:`#FFF`,textAlign:`left`,fontSize:`14px`,lineHeight:`18px`,children:[`Note: If you would like to report a problem with a translation, please report it by clicking on the translations or post it to our comments section. \xA0`,(0,K.jsx)(`span`,{className:`underline`,onClick:()=>U.DeckUI.gotoCardComments(U.DeckUI.currentCard),children:`Open Comments Section`})]})]})}})||jL,FL=(0,Y.ReportBugWrapper)(PL),IL,LL=N.div` 7528 text-align: left; 7529 font-size: 16px; 7530 line-height: 22px; 7531 padding: 20px 20px 50px 20px; 7532 .close-icon { 7533 width: ${e=>e.minimized?`22`:`30`}px; 7534 } 7535 h3 { 7536 border-bottom: 1px solid gray; 7537 font-size: 18px; 7538 width: 100%; 7539 } 7540 table { 7541 .header-row { 7542 td { 7543 background: #777; 7544 color: white; 7545 font-size: 12px; 7546 font-weight: bold; 7547 padding: 5px 10px; 7548 } 7549 } 7550 } 7551 .info-icon { 7552 display: flex; 7553 align-items: center; 7554 justify-content: center; 7555 svg { 7556 width: 4px; 7557 } 7558 } 7559`,RL=N.div` 7560 display: flex; 7561 align-items: center; 7562 gap: 5px; 7563 margin-top: 10px; 7564 border-bottom: 1px solid gray; 7565 width: 100%; 7566`,zL=N.div` 7567 display: flex; 7568 justify-content: center; 7569 align-items: center; 7570 padding: 40px 0; 7571`,BL=j(IL=class extends V.Component{render(){return(0,W.isBlank)(this.props.concept)?(0,K.jsx)(LL,{children:(0,K.jsx)(zL,{children:(0,K.jsx)(P,{})})}):(0,K.jsxs)(LL,{children:[(0,K.jsxs)(RL,{children:[(0,W.isPresent)(this.props.concept.grammarCase)&&this.props.concept.grammarCase!==`none`&&(0,K.jsx)(J.CaseIcon,{case:q.Constants.CASES.find(e=>e.abbreviation===this.props.concept.grammarCase).slug}),(0,K.jsx)(R,{heading:`3`,children:this.props.concept.displayNameLine1})]}),this.props.concept.displayNameLine2&&(0,K.jsx)(R,{italic:!0,fontSize:`14px`,children:this.props.concept.displayNameLine2}),(0,W.isPresent)(this.props.concept?.longDescription)&&(0,K.jsx)($i,{htmlText:this.props.concept?.longDescription})]})}})||IL,VL,HL=N.div` 7572 height: ${e=>e.fullHeight?`100%`:`calc(100% - 140px)`}; 7573 overflow: auto; 7574 padding-bottom: 20px; 7575`,UL=N.div` 7576 ${(0,X.flexCenterColumn)()} 7577 height: 140px; 7578 background: #E6E6E6; 7579 border-top: 2px solid #CCC; 7580 padding-bottom: 20px; 7581`,WL=j(VL=class extends V.Component{render(){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(HL,{fullHeight:!U.DeckUI.currentSentence,children:U.DeckUI.currentCard.concept&&(0,K.jsx)(BL,{concept:U.DeckUI.currentCard.concept})}),U.DeckUI.currentSentence&&(0,K.jsx)(UL,{children:(0,K.jsx)(Vi,{resizeText:!0,maximumFontSize:30,height:100,width:U.DeckUI.layout.innerDeckWidth-20,characterLength:U.DeckUI.currentSentence.targetText&&U.DeckUI.currentSentence.targetText.length,children:(0,K.jsx)(Li,{center:!0,showUnderline:U.DeckUI.currentCardState.revealed,showCase:U.DeckUI.currentCardState.revealed,sentence:U.DeckUI.currentSentence,hideTextInput:!U.DeckUI.currentCardState.revealed,highlightType:`background`,highlightWordAssociationIds:U.DeckUI.currentCardState.revealed?U.DeckUI.currentCard.wordAssociationIds:[],inputWordAssociationIds:U.DeckUI.currentCardState.revealed?[]:U.DeckUI.currentCard.wordAssociationIds,disableOnClick:!0,defaultBorderColor:`#b0b0b0`})})})]})}})||VL;D();var GL,KL;function qL(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var JL=N.div` 7582 margin: ${e=>e.margin}; 7583 position: relative; 7584 cursor: pointer; 7585`,YL=N.div` 7586 display: flex; 7587 padding: 20px; 7588 align-items: center; 7589`,XL=N.div` 7590 display: flex; 7591 flex-direction: column; 7592 margin-left: 10px; 7593 flex: 1; 7594`,ZL=N.div` 7595 display: flex; 7596 font-size: 20px; 7597 font-weight: bold; 7598`,QL=N.div` 7599 display: flex; 7600 margin: 5px 0; 7601 font-size: 14px; 7602`,$L=N.div` 7603 display: flex; 7604 font-size: 20px; 7605 font-weight: bold; 7606 font-style: italic; 7607 text-align: left; 7608`,eR=N.div` 7609 padding: 0 20px; 7610 text-align: left; 7611`,tR={FR:`Alix`,ES:`Camila`,DE:`Sofie`},nR=j(GL=(KL=class extends V.Component{constructor(e){super(e),this.props.card.cardState.markGrammarTipAsSeen(),this.name=tR[this.languageId]}get languageId(){return this.props.card.languageId||U.DeckUI.deck.languageId||`DE`}render(){return(0,K.jsxs)(JL,{margin:this.props.margin,children:[(0,K.jsxs)(YL,{children:[(0,K.jsx)(ZD,{skipAnimation:!0,languageId:this.languageId,card:this.props.card,reaction:`thoughtful`}),(0,K.jsxs)(XL,{children:[(0,K.jsxs)(ZL,{children:[this.name,`'s Tip`]}),(0,K.jsx)(QL,{children:`on`}),(0,K.jsx)($L,{children:this.props.card.grammarTipTitle})]})]}),(0,K.jsx)(eR,{children:(0,K.jsx)($i,{htmlText:this.props.card.grammarTip})})]})}},qL(KL.prototype,`languageId`,[E],Object.getOwnPropertyDescriptor(KL.prototype,`languageId`),KL.prototype),KL))||GL;me();var rR,iR,aR=N.div` 7612 display: flex; 7613 flex: 1; 7614`,oR=N.div` 7615 flex: 1; 7616 flex-direction: column; 7617 display: flex; 7618 justify-content: center; 7619`,sR=N.div` 7620 margin: ${e=>e.margin}; 7621 width: ${e=>e.width}; 7622`,cR=N.div` 7623 display: flex; 7624 width: 100%; 7625 padding: ${e=>e.padding}; 7626 margin: 2px 0; 7627`,lR=N.div` 7628 ${(0,X.flexCenter)()} 7629 width: 40px; 7630`,uR=N.div` 7631 font-size: 13px; 7632 color: #333; 7633 7634`,dR=N.div` 7635 display: flex; 7636 flex-direction: column; 7637 flex: 1; 7638`,fR=N.div` 7639 background: ${q.Theme.purple}; 7640 padding: 0 5px; 7641 font-weight: bold; 7642 color: #FFF; 7643 font-size: 12px; 7644 border-radius: 5px; 7645`,pR=M(j(rR=(iR=class extends V.Component{render(){return(0,K.jsxs)(aR,{onClick:()=>this.props.onClick&&this.props.onClick(this.props.sentence),children:[(0,K.jsxs)(dR,{children:[(0,K.jsxs)(cR,{padding:this.props.topSentencePadding,children:[(0,K.jsx)(sR,{margin:`3px 0`,width:`25px`,children:(0,K.jsx)(J.LanguageIcon,{languageId:this.props.sentence.languageId})}),(0,K.jsx)(oR,{children:(0,K.jsx)(Li,{cursor:`pointer`,pointerEvents:`none`,fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,disableOnClick:!0,highlightWordId:this.props.wordId,sentence:this.props.sentence,highlightConceptId:this.props.highlightConceptId})})]}),(0,K.jsxs)(cR,{padding:this.props.bottomSentencePadding,children:[(0,K.jsx)(sR,{width:`25px`,children:(0,K.jsx)(J.LanguageIcon,{languageId:this.props.sentence.sourceTextForUserLanguageId(U.AppUI.user)})}),(0,K.jsx)(oR,{children:(0,K.jsx)(R,{textAlign:`left`,lineHeight:this.props.lineHeight,fontSize:this.props.fontSize,italic:!0,children:this.props.sentence.sourceTextForUser(U.AppUI.user)})})]})]}),(U.AppUI.user.translator||U.AppUI.user.admin)&&(0,K.jsx)(lR,{children:this.props.sentence.isTriviaSentence&&(this.props.sentence.isQuestion||this.props.sentence.isAnswer)&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":this.props.sentence.id,children:[(0,K.jsx)(fR,{children:this.props.sentence.isQuestion?`Q`:`A`}
7645),(0,K.jsx)(he,{place:`left`,type:`dark`,effect:`solid`,id:this.props.sentence.id,class:`custom-tooltip`,children:this.props.sentence.isQuestion?`This is a trivia question`:`This is a trivia answer`})]})}),!this.props.hideLevelAbbreviation&&(0,K.jsx)(lR,{children:(0,K.jsx)(uR,{children:this.props.sentence.levelAbbreviation})})]})}},iR.defaultProps={topSentencePadding:`5px 10px`,bottomSentencePadding:`0 10px 5px 10px`},iR))||rR),mR,hR=N.div` 7646 margin: ${e=>e.margin}; 7647 ${(0,X.flexCenter)()} 7648`,gR=N.div` 7649 padding: 10px; 7650`,_R=M(j(mR=class extends V.Component{constructor(...e){super(...e),this.renderContent=()=>this.props.popupSentence?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Yi,{hasVideoClip:!0,autoPlaySupplement:!0,width:U.AppUI.layout.isMobile?(U.AppUI.layout.viewportWidth-100)/2:180,videoClip:this.props.popupSentence.target.videoClip,supplementVideoClip:this.props.popupSentence.videoClip}),(0,K.jsx)(hR,{children:U.AppUI.userIsLoaded&&(0,K.jsx)(Bi,{interfaceSource:`vocab-sentence-popup`,width:`240px`,buttonText:`Add to Reviews`,buttonHeight:`30px`,buttonBackground:`#FFF`,margin:`5px 10px 10px 10px`,sentence:this.props.popupSentence,wordAssociationIds:this.props.popupSentence.wordAssociations.filter(e=>e.word?.rootWord?.id===this.props.wordId).map(e=>e.id)})}),(0,K.jsx)(pR,{wordId:this.props.wordId,sentence:this.props.popupSentence,highlightConceptId:this.props.highlightConceptId}),(0,K.jsx)(rF,{hideTitle:!0,padding:0,blockTextExpansion:!0,sentence:this.props.popupSentence})]}):null}render(){return this.props.screen?(0,K.jsx)(gR,{children:this.renderContent()}):(0,K.jsx)(Dn,{showCloseIcon:!0,maxWidth:`600px`,height:U.AppUI.layout.viewportHeight-80<580?U.AppUI.layout.viewportHeight-80:580,margin:`0 auto`,left:`50%`,right:`auto`,transform:`translateX(-50%)`,width:`calc(100% - 40px)`,iconFill:`#000`,onCloseModal:()=>this.props.onClickSentence(null),children:this.renderContent()})}})||mR),vR,yR=N.div` 7651 display: flex; 7652 align-items: center; 7653 justify-content: center; 7654 margin: ${e=>e.margin}; 7655`,bR=N.div` 7656 background: ${e=>e.background}; 7657 height: 8px; 7658 width: 8px; 7659 border-radius 8px; 7660 margin: 0 3px; 7661`,xR=M(j(vR=class extends V.Component{render(){return(0,K.jsx)(yR,{margin:this.props.margin,children:(0,G.times)(this.props.numDots,e=>(0,K.jsx)(bR,{background:this.props.currentDot===e+1?`#333`:`#CCC`},e))})}})||vR),SR,CR=N.div` 7662 background: #ebebeb; 7663 padding: 20px 0; 7664 padding: 10px; 7665 border-radius: 5px; 7666 margin: ${e=>e.isMobile?`0 10px`:0}; 7667`,wR=N.div` 7668 display: flex; 7669 flex-direction: column; 7670`,TR=N.div` 7671 display: flex; 7672 flex-direction: column; 7673 align-items: center; 7674`,ER=N.div` 7675 display: flex; 7676 align-items: center; 7677`,DR=N.div` 7678 flex: 1; 7679`,OR=N.div` 7680 width: 30px; 7681 cursor: pointer; 7682 display: flex; 7683 align-items: center; 7684 justify-content: ${e=>e.justifyContent}; 7685 i { 7686 font-size: 60px; 7687 color: #333; 7688 } 7689`,kR=N.div` 7690 display: flex; 7691`,AR=N.div` 7692 width: 15px; 7693 cursor: pointer; 7694 margin-left: 5px; 7695 display: flex; 7696 align-items: center; 7697 justify-content: ${e=>e.justifyContent}; 7698 i { 7699 font-size: 30px; 7700 color: #333; 7701 } 7702`,jR=N.div` 7703 font-weight: bold; 7704 margin-bottom: 5px; 7705 color: #333; 7706`,MR=N.div` 7707 display: flex; 7708`,NR=N.div` 7709 display: flex; 7710 align-items: center; 7711 justify-content: center; 7712 width: 100%; 7713`,PR=j(SR=class extends V.Component{render(){return(0,K.jsx)(K.Fragment,{children:(0,W.isPresent)(this.props.currentSentence)&&(0,K.jsxs)(CR,{isMobile:U.AppUI.layout.isMobile,children:[(0,K.jsx)(jR,{children:`Highlighted Story`}),(0,K.jsxs)(wR,{children:[(0,K.jsxs)(TR,{children:[this.props.currentSentence.target.videoClip&&(0,K.jsxs)(ER,{children:[(0,K.jsx)(OR,{justifyContent:`flex-end`,onClick:this.props.onPreviousSentence,children:(0,K.jsx)(`i`,{className:`fa fa-angle-left`})}),(0,K.jsxs)(DR,{children:[(0,K.jsx)(Yi,{hasVideoClip:!0,autoPlay:this.props.autoPlay,autoPlayTimeStamp:this.props.sentenceIndex,autoPlaySupplement:!0,forcePlay:!0,width:U.AppUI.layout.isMobile?(U.AppUI.layout.viewportWidth-100)/2:180,videoClip:this.props.currentSentence.target.videoClip,supplementVideoClip:this.props.currentSentence.videoClip}),(0,K.jsx)(xR,{margin:(0,W.isPresent)(this.props.currentSentence.videoClip)?`-10px 0 0 0`:`10px 0 0 0`,numDots:3,currentDot:this.props.sentenceIndex+1})]}),(0,K.jsx)(OR,{justifyContent:`flex-start`,onClick:this.props.onNextSentence,children:(0,K.jsx)(`i`,{className:`fa fa-angle-right`})})]}),this.props.word.vocabTriadDeckId&&(0,K.jsx)(NR,{children:(0,K.jsx)(F,{to:{name:`triad.decks.show`,params:{wordId:this.props.word.id,deckId:this.props.word.vocabTriadDeckId}}
7713,children:(0,K.jsx)(I,{background:q.Theme.blue,margin:`20px 0 0 0`,children:`Create Deck`})})})]}),(0,K.jsxs)(MR,{children:[(0,K.jsx)(pR,{topSentencePadding:`5px 0`,bottomSentencePadding:`0 0 5px 0`,hideLevelAbbreviation:!0,fontSize:`16px`,lineHeight:`18px`,wordId:this.props.word.id,sentence:this.props.currentSentence}),!this.props.currentSentence.target.videoClip&&(0,K.jsxs)(kR,{children:[(0,K.jsx)(AR,{justifyContent:`flex-end`,onClick:this.props.onPreviousSentence,children:(0,K.jsx)(`i`,{className:`fa fa-angle-left`})}),(0,K.jsx)(AR,{justifyContent:`flex-start`,onClick:this.props.onNextSentence,children:(0,K.jsx)(`i`,{className:`fa fa-angle-right`})})]})]})]})]})})}})||SR,FR=(0,Y.VocabTriadWrapper)(PR),IR,LR=N.div` 7714 7715`,RR=N.h3` 7716 margin-top: 20px; 7717 padding-top: 10px; 7718 border-top: 1px solid #CCC; 7719`,zR=N.div` 7720 border-radius: 5px; 7721 ${(0,X.flexCenterColumn)()} 7722`,BR=N.div` 7723 display: flex; 7724 flex-direction: column; 7725 flex: 1; 7726 cursor: ${e=>e.isClickable?`pointer`:null}; 7727 &:hover { 7728 background: ${e=>e.isClickable?`#ECECEC`:null}; 7729 } 7730`,VR=N.div` 7731 display: flex; 7732 flex-direction: ${e=>e.flexDirection}; 7733 width: 100%; 7734 border-bottom: 1px solid #CCC; 7735`,HR=N.div` 7736 font-size: 12px; 7737 line-height: 15px; 7738 margin-top: 10px; 7739 padding-bottom: 10px; 7740 color: #333; 7741 font-style: italic; 7742 text-align: left; 7743 border-bottom: ${e=>e.borderBottom}; 7744`,UR=j(IR=class extends V.Component{constructor(...e){super(...e),this.onClickSentence=e=>{if(this.props.inDeck){U.OverlayUI.addOverlay(`vocabSentencePopup`,{screen:!0,popupSentence:e,wordId:this.props.wordId,highlightConceptId:this.props.conceptId});return}this.props.onClickSentence(e)}}render(){return this.props.showLoadingSpinner?(0,K.jsx)(P,{margin:`30px auto`}):this.props.shouldHideSentences?null:(0,K.jsxs)(LR,{children:[this.props.showHeader&&(0,K.jsx)(RR,{children:`Sentences`}),this.props.showVocabTriad&&this.props.store.page===1&&(0,K.jsx)(FR,{word:this.props.word}),!this.props.inDeck&&(this.props.popupSentence||this.props.sentence)&&(0,K.jsx)(_R,{onClickSentence:this.props.onClickSentence,popupSentence:this.props.popupSentence,onToggleCreateReview:this.props.onToggleCreateReview,hasReview:this.props.hasReview,wordId:this.props.wordId,highlightConceptId:this.props.conceptId}),this.props.shouldShowBlankState&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(R,{children:`There are no sentences for this word.`}),(0,K.jsx)(R,{italic:!0,fontSize:`14px`,children:`We are adding new sentences every week. Check back later!`})]}),(0,W.isPresent)(this.props.sentences)&&(0,K.jsx)(zR,{children:this.props.sentences.map(e=>(0,K.jsx)(VR,{flexDirection:U.AppUI.layout.isMobile?`column`:`row`,children:(0,K.jsx)(BR,{isClickable:e.target?.hasVideoClip,children:(0,K.jsx)(pR,{wordId:this.props.wordId,highlightConceptId:this.props.conceptId,fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,onClick:e.target?.hasVideoClip?this.onClickSentence:!1,sentence:e})})},e.id))}),(this.props.showPaginator||this.props.store?.page>1)&&(0,K.jsx)(In,{store:this.props.store,queryStrings:{vocab_trainer:!0},ids:{wordId:this.props.wordId,conceptId:this.props.conceptId},limit:10}),!this.props.store?.hasOutstandingRequests&&(0,W.isPresent)(this.props.sentences)&&!this.props.sentencesHaveVideo&&(0,K.jsx)(HR,{borderBottom:this.props.showSentenceSubmissions?`1px solid #CCC`:null,children:`There ${this.props.sentences.length>1?`are`:`is`} no video recording${this.props.sentences.length>1?`s`:``} for ${this.props.sentences.length>1?`these`:`this`} sentence${this.props.sentences.length>1?`s`:``} yet. We are adding new videos and sentences every week. Check back later!`}),this.props.showSentenceSubmissions&&(0,K.jsx)(GF,{showTopBorder:this.props.shouldShowBlankState,expandSentenceSubmissionCreate:this.props.expandSentenceSubmissionCreate,wordId:this.props.wordId})]})}})||IR,WR=(0,Y.VocabSentencesWrapper)(UR);me();var GR,KR=N.div` 7745 .triangle-progress { 7746 height: 15px; 7747 svg { 7748 height: 15px; 7749 } 7750 #segment-1 { 7751 fill: ${e=>e.enableSegment1?q.Theme.orange:`#d8d8d8`}; 7752 } 7753 #segment-2 { 7754 fill: ${e=>e.enableSegment2?q.Theme.orange:`#d8d8d8`}; 7755 } 7756 #segment-3 { 7757 fill: ${e=>e.enableSegment3?q.Theme.orange:`#d8d8d8`}; 7758 } 7759 #segment-4 { 7760 fill: ${e=>e.enableSegment4?q.Theme.orange:`#d8d8d8`}; 7761 } 7762 } 7763`,qR=N.div` 7764 7765`,JR=j(GR=class extends V.Component{render(){return(0,K.jsxs)(qR,{"data-tip":!0,"data-for":this.props.word.id,children:[(0,K.jsx)(KR,{enableSegment1:this.props.enableSegment1,enableSegment2:this.props.enableSegment2,enableSegment3:this.props.enableSegment3,enableSegment4:this.props.enableSegment4,children:(0,K.jsx)(J.TriangleProgress,{})}
7765),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:this.props.word.id,class:`custom-tooltip`,children:this.props.tooltipText})]})}})||GR,YR=(0,Y.VocabProgressBarWrapper)(JR);me(),D();var XR,ZR;function QR(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var $R=N.div` 7766 display: flex; 7767 align-items: center; 7768 justify-content: center; 7769 height: 20px; 7770`,ez=N.div` 7771 width: 6px; 7772 height: 6px; 7773 margin: 2px; 7774 border-radius: 50%; 7775 background: ${e=>e.selected?`#636363`:`#CCC`}; 7776`,tz=j(XR=(ZR=class extends V.Component{get ariaLabel(){return this.props.topNumber?[`This word is in the top ${this.props.topNumber} most frequent words.`,this.props.word.frequencyRanking?`#${this.props.word.frequencyRanking} Overall`:!1].filter(Boolean).join(`, `):`This word is not in the top 10,000 most frequent words.`}render(){return(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`frequency-${this.props.word.id}`,"aria-label":this.ariaLabel,role:`img`,children:[(0,K.jsxs)($R,{children:[(0,K.jsx)(ez,{selected:this.props.word.frequencyRanking<=1e4}),(0,K.jsx)(ez,{selected:this.props.word.frequencyRanking<=3e3}),(0,K.jsx)(ez,{selected:this.props.word.frequencyRanking<=300})]}),(0,K.jsxs)(he,{place:`top`,type:`dark`,effect:`solid`,id:`frequency-${this.props.word.id}`,class:`custom-tooltip`,children:[this.props.topNumber&&(0,K.jsxs)(`div`,{children:[`Top `,this.props.topNumber,` Ranking`]}),!this.props.topNumber&&(0,K.jsx)(`div`,{children:`This word is not in the top 10,000`}),this.props.topNumber&&this.props.word.frequencyRanking&&(0,K.jsxs)(`div`,{children:[`#`,this.props.word.frequencyRanking,` Overall`]})]})]})}},QR(ZR.prototype,`ariaLabel`,[E],Object.getOwnPropertyDescriptor(ZR.prototype,`ariaLabel`),ZR.prototype),ZR))||XR,nz=(0,Y.FrequencyWrapper)(tz),rz,iz,az=N.div` 7777 position: ${e=>e.position}; 7778 display: flex; 7779 flex-direction: ${e=>e.flexDirection}; 7780 justify-content: center; 7781 gap: 10px; 7782 top: 10px; 7783 right: 10px; 7784 min-width: 70px; 7785`,oz=N.div` 7786 background: #FFF; 7787 border-radius: 5px; 7788 overflow: hidden; 7789 border: 2px solid #CCC; 7790 flex: 1; 7791`,sz=N.div` 7792 ${(0,X.flexCenter)()} 7793 background: #CCC; 7794 font-size: 11px; 7795 font-weight: bold; 7796 padding: 0 3px; 7797`,cz=N.div` 7798 ${(0,X.flexCenter)()} 7799 font-size: 16px; 7800 font-weight: ${e=>e.bold?`bold`:null}; 7801 padding: 5px 3px; 7802`,lz=j(rz=(iz=class extends V.Component{render(){return(0,K.jsxs)(az,{position:this.props.position,flexDirection:this.props.flexDirection,children:[this.props.word.wordType&&(0,K.jsxs)(oz,{children:[(0,K.jsx)(sz,{children:`Type`}),(0,K.jsx)(cz,{bold:!0,children:this.props.word.wordType.shortName})]}),this.props.word.level&&(0,K.jsxs)(oz,{children:[(0,K.jsx)(sz,{children:`Level`}),(0,K.jsx)(cz,{bold:!0,children:this.props.word.level.abbreviation})]}),this.props.word.frequencyRanking&&(this.props.showFrequencyWithProgress||(0,W.isBlank)(this.props.word.consecutiveGoodScores)||(0,W.isBlank)(this.props.word.viewsCount))&&(0,K.jsxs)(oz,{children:[(0,K.jsx)(sz,{children:`Frequency`}),(0,K.jsx)(cz,{children:(0,K.jsx)(nz,{word:this.props.word})})]}),(0,W.isPresent)(this.props.word.consecutiveGoodScores)&&(0,W.isPresent)(this.props.word.viewsCount)&&(0,K.jsxs)(oz,{children:[(0,K.jsx)(sz,{children:`Progress`}),(0,K.jsx)(cz,{children:(0,K.jsx)(YR,{word:this.props.word})})]})]})}},iz.defaultProps={position:`absolute`,flexDirection:`column`},iz))||rz;D();var uz,dz,fz,pz,mz;function hz(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function gz(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _z=N.div` 7803 7804`,vz=N.div` 7805 display: flex; 7806 align-items; center; 7807 font-size: 12px; 7808 padding: 10px 0 0 0; 7809 font-style: italic; 7810 color: #585858; 7811 text-align: left; 7812 line-height: 16px; 7813 i { 7814 margin: 1px 5px 0 0; 7815 } 7816`,yz=N.div` 7817 select { 7818 height: 35px; 7819 margin: 0 5px 0 0; 7820 font-size: 14px; 7821 } 7822`,bz=N.div` 7823 display: flex; 7824 margin: ${e=>e.margin}; 7825 justify-content: ${e=>e.justifyContent}; 7826 align-items: ${e=>e.alignItems}; 7827`,xz=N.div` 7828 flex: 1; 7829 padding-right: 10px; 7830`,Sz=M(j(uz=(dz=class extends V.Component{constructor(...e){super(...e),hz(this,`value`,fz,this),hz(this,`languageInput`,pz,this),hz(this,`displayGender`,mz,this),this.onSubmit=()=>{if(!this.disabled){let e=this.english?!0:!U.AppUI.user.translator;U.AppUI.translationSourceStore.create({data:{text:this.value,language_id:this.languageId,user_id:U.AppUI.user.id,translation_id:this.props.word.id,display_gender:this.displayGender,rejected:e}},this.afterUpdate)}},this.afterUpdate=()=>{this.props.afterUpdate&&this.props.afterUpdate(),this.value=``,this.displayGender=!1},this.onKeyUp=e=>{e.keyCode===13&&this.onSubmit()}}get disabled(){return(0,W.isBlank)(this.value)}get hasDelimiter(){return this.value.match(/[;,/|]/)}get hasGenderHint(){let e=RegExp(`\\s+\\((${`female,male,kvindelig,女æ§,mandlig,M,ç·æ§,erkek,kadın,áááªá,f.,m.,kvinnlig,manlig,á¥ááá,ç·,F,女,man,fem,vrouw,femmina,maschio,ë¨ì±,féminin,feminina,nÅ,feminino,жÑн.,mujer,masculin`.split(`,`).join(`|`)})\\)`,`i`);return this.value.match(e)}get languageId(){return this.languageInput||U.AppUI.user.languageId}get english(){return!this.languageId||this.languageId===`EN`}render(){return(0,K.jsxs)(_z,{children:[(0,K.jsxs)(yz,{children:[(0,K.jsxs)(bz,{children:[(0,K.jsx)(Fi,{allowUpdate:!0,options:U.AppUI.languageOptions,value:this.languageId,onChange:e=>this.languageInput=e,margin:`0 10px 0 0`}),(0,K.jsx)(xz,{children:(0,K.jsx)(`input`,{placeholder:`Enter Translation`,maxLength:`40`,value:this.value,onKeyUp:this.onKeyUp,onChange:e=>this.value=e.currentTarget.value})})]}),(0,K.jsxs)(bz,{margin:`10px 0 0 0`,alignItems:`center`,justifyContent:`flex-start`,children:[(0,K.jsx)(I,{onClick:this.onSubmit,disabled:this.disabled,height:`35px`,background:q.Theme.green,children:`Submit`}),(this.props.word.isNoun||this.props.word.isPronoun)&&this.props.word.genderAbbreviation&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Zi,{allowUpdate:!0,wrapperMargin:`0 0 0 10px`,value:this.displayGender,onCh
7830ange:e=>{this.displayGender=e},children:`Add gender abbreviation${this.props.word.genderAbbreviation}`}),(0,K.jsx)(`span`,{"data-for":`add-gender`,"data-tip":!0,children:(0,K.jsx)(`a`,{href:`https://seedlang.com/discussions/4e559933-04b1-4652-8629-405c5dd3c855/threads/ab474948-c17d-4fa5-a3b8-ada316e47935`,target:`seedlang`,className:`no-underline no-hover`,children:(0,K.jsx)(`i`,{className:`fa fa-info-circle`,style:{color:`#e4e4e4`,margin:`0 0 0 5px`}})})})]})]})]}),this.hasDelimiter&&(0,K.jsx)(B,{margin:`10px 0 0 0`,children:`Please enter only one translation at a time. Entries will be separated into several if they contain certain punctuation signs (eg. ;,/)`}),this.hasGenderHint&&this.props.word.isNoun&&(0,K.jsx)(B,{margin:`10px 0 0 0`,children:`Please select "Add gender abbreviation" if you want the gender to appear in your translation.`}),this.english&&(0,K.jsxs)(vz,{children:[(0,K.jsx)(`i`,{className:`fa fa-info-circle`}),` English translations will only be visible by you until it is confirmed by Seedlang staff.`]})]})}},fz=gz(dz.prototype,`value`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),pz=gz(dz.prototype,`languageInput`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mz=gz(dz.prototype,`displayGender`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gz(dz.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(dz.prototype,`disabled`),dz.prototype),gz(dz.prototype,`hasDelimiter`,[E],Object.getOwnPropertyDescriptor(dz.prototype,`hasDelimiter`),dz.prototype),gz(dz.prototype,`hasGenderHint`,[E],Object.getOwnPropertyDescriptor(dz.prototype,`hasGenderHint`),dz.prototype),gz(dz.prototype,`languageId`,[E],Object.getOwnPropertyDescriptor(dz.prototype,`languageId`),dz.prototype),gz(dz.prototype,`english`,[E],Object.getOwnPropertyDescriptor(dz.prototype,`english`),dz.prototype),dz))||uz),Cz,wz,Tz=N.div` 7831 display: flex; 7832 flex-direction: column; 7833 width: 100%; 7834`,Ez=N.div` 7835 display: flex; 7836 align-items: center; 7837 flex: 1; 7838 padding: ${e=>e.padding}; 7839 background: ${e=>e.background}; 7840`,Dz=N.div` 7841 padding: 10px; 7842`,Oz=N.div` 7843 font-size: 18px; 7844 font-weight: bold; 7845 margin: 0 0 10px 10px; 7846`,kz=j(Cz=(wz=class extends V.Component{render(){return(0,K.jsxs)(Tz,{children:[this.props.showTargetText&&(0,K.jsx)(Oz,{children:this.props.word.targetTextWithDefiniteArticle}),(0,K.jsx)(Ez,{padding:this.props.padding,children:(0,K.jsx)(lk,{background:this.props.background,showFlags:!0,flagWrapperWidth:`25px`,flagWrapperAlignLeft:!0,onRemoveSource:this.props.onRemoveSource,borderBottom:`1px solid none`,leftAlign:!0,padding:`10px`,sourcePadding:`5px`,sourceMargin:`0`,user:U.AppUI.user,word:this.props.word,fontSize:this.props.fontSize,lineHeight:this.props.lineHeight,showInput:this.props.showInput,loadWord:this.props.loadWord,showSpinner:this.props.showSpinner,afterFlag:this.props.afterFlag})}),this.props.showInput&&(0,K.jsx)(Dz,{children:(0,K.jsx)(Sz,{afterUpdate:this.props.afterSubmitSourceInput,word:this.props.word})})]})}},wz.defaultProps={background:`#ECECEC`,padding:`0 10px 5px 10px`},wz))||Cz,Az=(0,Y.SourceListWithInputWrapper)(kz),jz,Mz=N.div` 7847 border: 2px solid #525252; 7848 border-radius: 5px; 7849 font-size: 8px; 7850 width: 18px; 7851 height: 18px; 7852 margin: 0 2px; 7853 padding: 0 2px; 7854 display: flex; 7855 justify-content: center; 7856 align-items: center; 7857 font-weight: bold; 7858`,Nz=j(jz=class extends V.Component{render(){return(0,K.jsx)(Mz,{children:this.props.level.abbreviation})}})||jz;me(),D();var Pz,Fz,Iz,Lz;function Rz(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function zz(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Bz=N.div` 7859 display: flex; 7860 gap: 5px; 7861 margin: ${e=>e.margin}; 7862 flex-wrap: wrap; 7863`,Vz=N.span` 7864 border-bottom: ${e=>e.noBorder?``:`2px solid #b5b5b5`}; 7865 cursor: pointer; 7866`,Hz=N(F)` 7867 color: inherit; 7868 display: flex; 7869 gap: 2px; 7870 text-decoration: none; 7871`,Uz=N.div` 7872 background: #ececec; 7873 border-radius: 5px; 7874 font-size: 12px; 7875 padding: 0 5px; 7876 cursor: pointer; 7877`,Wz=j(Pz=(Fz=(Lz=class extends V.Component{constructor(...e){super(...e),Rz(this,`seeMore`,Iz,this),this.tooltipSourcesForWord=e=>e.visibleVocabSourcesForUser?e.visibleVocabSourcesForUser(U.AppUI.user):U.AppUI.user?.showMeanings&&U.AppUI.user?.showVocabMeanings!==!1&&(0,W.isPresent)(e.meaningSourcePreviews)?e.meaningSourcePreviews:e.enTranslationSources?.slice(0,2)||[],this.onClickWord=(e,t)=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),this.props.onClickWord(t))}}render(){return(0,K.jsxs)(Bz,{margin:this.props.margin,children:[this.props.title&&(0,K.jsxs)(R,{bold:!0,margin:`0 3px 0 0`,children:[this.props.title,`: `]}),this.props.words.map((e,t)=>this.props.expanded||t<5||this.seeMore?(0,K.jsxs)(Hz,{onClick:t=>this.onClickWord(t,e),to:{name:`vocab.word`,params:{wordId:e.id}},"data-tip":!0,"data-for":e.id,children:[(0,K.jsx)(Vz,{children:e.targetTextWithDefiniteArticle}),(0,W.isPresent)(e.level)&&(0,W.isPresent)(this.tooltipSourcesForWord(e))&&(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`s
7877olid`,id:e.id,class:`custom-tooltip`,children:(0,K.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`8px`,maxWidth:`200px`},children:[!this.props.hideLevels&&e.level?.position>this.props.referenceWord?.level?.position&&(0,K.jsx)(Nz,{level:e.level}),(0,K.jsx)(`span`,{children:this.tooltipSourcesForWord(e).map(e=>e.source?.textForUser?e.source.textForUser(U.AppUI.user):e.source?.text).join(`, `)})]})}),(this.props.expanded||t!==4||this.seeMore)&&(0,K.jsx)(R,{margin:`0 4px 0 0`,children:t+1<this.props.words.length?`, `:``})]},e.id):null),!this.props.expanded&&this.props.words.length>5&&(0,K.jsxs)(K.Fragment,{children:[!this.seeMore&&(0,K.jsx)(`span`,{children:`...`}),(0,K.jsx)(Uz,{onClick:()=>this.seeMore=!this.seeMore,children:this.seeMore?`See Less`:`See More`})]})]})}},Lz.defaultProps={margin:`10px 0`},Lz),Iz=zz(Fz.prototype,`seeMore`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fz))||Pz;D();var Gz,Kz,qz,Jz;function Yz(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Xz(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Zz=N.div` 7878 width: 100%; 7879`,Qz=N.div` 7880 display: flex; 7881 width: 100%; 7882 align-items: flex-start; 7883`,$z=N.div` 7884 flex: 1; 7885 display: flex; 7886 flex-direction: column; 7887`,eB=N.div` 7888 font-size: 12px; 7889 color: #666; 7890 margin-left: 12px; 7891 margin-right: 8px; 7892`,tB=N.div` 7893 display: flex; 7894 align-items: center; 7895 gap: 10px; 7896 flex-wrap: wrap; 7897 ${e=>e.expanded&&` 7898 flex-direction: column; 7899 align-items: flex-start; 7900 gap: 0; 7901 margin-bottom: -6px; 7902 `} 7903`,nB=N.div` 7904 margin: 5px 5px 5px 0; 7905 padding: 5px 10px 5px 5px; 7906 border-radius: 5px; 7907`,rB=N.div` 7908 margin-bottom: 10px; 7909 text-align: left; 7910 &:last-child { 7911 margin-bottom: 0; 7912 } 7913`,iB=N.div` 7914 margin-bottom: 0; 7915 text-align: left; 7916 &:last-child { 7917 margin-bottom: 0; 7918 } 7919`,aB=N.div` 7920 font-size: ${e=>e.fontSize}; 7921 color: #000; 7922 display: flex; 7923 align-items: flex-start; 7924 margin-bottom: 6px; 7925`,oB=j(Gz=(Kz=(Jz=class extends V.Component{constructor(...e){super(...e),Yz(this,`expanded`,qz,this),this.toggleExpanded=()=>{this.isExpandable&&(this.expanded=!this.expanded)},this.onClickSynonym=e=>{this.props.onClickWord&&this.props.onClickWord(e)},this.getSourceText=e=>{let t=this.props.user&&e.source?.textForUser?e.source.textForUser(this.props.user):e.source?.text;return t?e.source?.displayGender&&this.props.word?.genderAbbreviation?`${t}${this.props.word.genderAbbreviation}`:t:null},this.sentenceSourcesForUser=e=>{let t=e.sources||[],n=this.props.user?.languageId||`EN`,r=n===`EN2`||n===`EN`&&this.props.user?.useBritishEnglish,i=r?`EN2`:n,a=e=>t.filter(t=>t.languageId===e),o=(r?[`EN2`,`EN`]:[`EN`,`EN2`]).reduce((e,t)=>e.concat(a(t)),[]);if(n.startsWith(`EN`)){let e=a(i);if((0,W.isPresent)(e))return e;let n=a(i===`EN2`?`EN`:`EN2`);return(0,W.isPresent)(n)?n:t}let s=a(i);if(this.props.user?.onlyShowNativeLanguage)return(0,W.isPresent)(s)?s:(0,W.isPresent)(o)?o:t;let c=s.concat(o);return(0,W.isPresent)(c)?c:t}}get translationSources(){let e=this.props.meaning?.translationSourcesForUser(this.props.user)||[];if((this.props.user?.languageId||`EN`).startsWith(`EN`))return e;let t=[],n=[];return e.forEach(e=>{e.source?.languageId?.startsWith(`EN`)?n.push(e):t.push(e)}),t.concat(n)}get isExpandable(){return this.translationSources?.length>1||this.props.meaning?.sentences?.length>0}get displaySynonyms(){let e=this.props.meaning?.synonyms||[];return this.props.synonymOverride?[this.props.synonymOverride,...e.filter(e=>String(e.id)!==String(this.props.synonymOverride.id))]:e}get meaningSentences(){return(this.props.meaning?.sentences||[]).map((e,t)=>({sentence:e,index:t})).sort((e,t)=>
7925{let n=(e.sentence?.targetText||e.sentence?.target_text||``).length,r=(t.sentence?.targetText||t.sentence?.target_text||``).length;return n===r?e.index-t.index:n-r}).map(e=>e.sentence).map(e=>{let t=this.sentenceSourcesForUser(e)[0];return Object.assign(Object.create(e),{languageId:this.props.word?.languageId,sourceText:t?.text,sourceTextForUser:e=>t?t.textForUser?t.textForUser(e):t.text:null,sourceTextForUserLanguageId:()=>t?.languageId})})}render(){return(0,K.jsx)(Zz,{children:(0,K.jsxs)(zi,{id:this.props.meaning?.id,expandedId:this.expanded?this.props.meaning?.id:null,keepExpanded:!this.isExpandable,onClick:this.toggleExpanded,rowMargin:this.props.rowMargin,children:[(0,K.jsxs)(Qz,{children:[(0,K.jsx)($z,{children:(0,K.jsx)(tB,{expanded:this.expanded,children:this.expanded?(0,K.jsxs)(K.Fragment,{children:[this.translationSources?.map(e=>{let t=this.getSourceText(e);return t?(0,K.jsx)(rB,{children:(0,K.jsxs)(aB,{fontSize:this.props.fontSize,children:[(0,K.jsx)(J.LanguageIcon,{margin:`0 5px 0 0`,languageId:e.source?.languageId}),t]})},e.id):null}),this.displaySynonyms.length>0&&(0,K.jsx)(rB,{children:(0,K.jsxs)(aB,{fontSize:this.props.fontSize,children:[(0,K.jsx)(J.LanguageIcon,{margin:`0 5px 0 0`,languageId:this.props.word.languageId}),(0,K.jsx)(Wz,{expanded:!0,referenceWord:this.props.word,words:this.displaySynonyms,onClickWord:e=>{this.onClickSynonym(e)},margin:`0`})]})})]}):(0,K.jsxs)(K.Fragment,{children:[this.translationSources?.length>0&&(0,K.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(J.LanguageIcon,{margin:`0 5px 0 0`,languageId:this.translationSources[0].source?.languageId}),(0,K.jsx)(R,{fontSize:(0,W.pixify)(this.props.fontSize),lineHeight:(0,W.pixify)(this.props.lineHeight),textAlign:`left`,children:this.getSourceText(this.translationSources[0])})]}),this.displaySynonyms.length>0&&(0,K.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(J.LanguageIcon,{margin:`0 5px 0 0`,languageId:this.props.word.languageId}),(0,K.jsx)(R,{fontSize:(0,W.pixify)(this.props.fontSize),lineHeight:(0,W.pixify)(this.props.lineHeight),textAlign:`left`,children:(0,K.jsx)(`span`,{onClick:e=>{e.stopPropagation(),this.onClickSynonym(this.displaySynonyms[0])},style:{borderBottom:`2px solid #b5b5b5`,cursor:`pointer`},children:this.displaySynonyms[0].targetTextWithDefiniteArticle})})]})]})})}),(0,W.isPresent)(this.props.meaning.register)&&(0,K.jsx)(eB,{children:this.props.meaning.register})]}),this.expanded&&(0,K.jsx)(nB,{children:this.meaningSentences.length>0&&this.meaningSentences.map(e=>(0,K.jsx)(iB,{children:(0,K.jsx)(Gi,{background:`transparent`,languageButtonBackground:`#FFF`,translation:e,padding:`0 0 14px 0`,fontSize:(0,W.pixify)(this.props.fontSize),languageButtonWrapperWidth:`25px`,languageButtonWrapperPadding:`0 5px 0 0`,showSentenceBreakdown:!0,sentenceBreakdownProps:{highlightWordId:this.props.word?.id,hideWordAssociationHighlight:!0,disableOnClick:!0},user:this.props.user})},e.id))})]})})}},Jz.defaultProps={fontSize:`16px`,lineHeight:`22px`},Jz),qz=Xz(Kz.prototype,`expanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xz(Kz.prototype,`translationSources`,[E],Object.getOwnPropertyDescriptor(Kz.prototype,`translationSources`),Kz.prototype),Xz(Kz.prototype,`isExpandable`,[E],Object.getOwnPropertyDescriptor(Kz.prototype,`isExpandable`),Kz.prototype),Xz(Kz.prototype,`displaySynonyms`,[E],Object.getOwnPropertyDescriptor(Kz.prototype,`displaySynonyms`),Kz.prototype),Xz(Kz.prototype,`meaningSentences`,[E],Object.getOwnPropertyDescriptor(Kz.prototype,`meaningSentences`),Kz.prototype),Kz))||Gz;D();var sB,cB;function lB(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var uB=N.div` 7926 width: 100%; 7927 height: 100%; 7928 display: flex; 7929 flex-direction: column; 7930`,dB=j(sB=(cB=class extends V.Component{constructor(...e){super(...e),this.isSelectedSynonymMeaning=e=>this.props.selectedSynonymAssociation?.meaningId&&String(e.id)===String(this.props.selectedSynonymAssociation.meaningId)}get meanings(){return!this.props.word||!this.props.word.meanings?[]:(0,G.orderBy)(this.props.word.meanings,`score`,`desc`)}get previewMeanings(){let e=new Map;
7930return(this.props.word?.meaningSourcePreviews||[]).forEach((t,n)=>{if(!t?.source)return;let r=t.meaningId||`preview-${n}`;e.has(r)||e.set(r,[]),e.get(r).push(t)}),Array.from(e.entries()).map(([e,t])=>({id:e,translationSourcesForUser:()=>t}))}get activeMeanings(){return this.props.usePreviewMeanings?this.previewMeanings:this.meanings}get filteredMeanings(){return this.activeMeanings.filter(e=>e.translationSourcesForUser(U.AppUI.user).length>0)}get fontSize(){return this.props.fontSize||(U.AppUI.layout.isMobile?`13px`:`16px`)}get lineHeight(){return this.props.lineHeight||(U.AppUI.layout.isMobile?`17px`:`22px`)}render(){return!this.filteredMeanings||this.filteredMeanings.length===0?null:(0,K.jsx)(uB,{children:this.filteredMeanings.map(e=>(0,K.jsx)(oB,{meaning:e,word:this.props.word,user:U.AppUI.user,onClickWord:this.props.onClickWord,hideLevels:this.props.hideLevels,lineHeight:this.lineHeight,rowMargin:this.props.rowMargin,synonymOverride:this.isSelectedSynonymMeaning(e)?this.props.selectedSynonymAssociation.synonym:null},e.id))})}},lB(cB.prototype,`meanings`,[E],Object.getOwnPropertyDescriptor(cB.prototype,`meanings`),cB.prototype),lB(cB.prototype,`previewMeanings`,[E],Object.getOwnPropertyDescriptor(cB.prototype,`previewMeanings`),cB.prototype),lB(cB.prototype,`activeMeanings`,[E],Object.getOwnPropertyDescriptor(cB.prototype,`activeMeanings`),cB.prototype),lB(cB.prototype,`filteredMeanings`,[E],Object.getOwnPropertyDescriptor(cB.prototype,`filteredMeanings`),cB.prototype),lB(cB.prototype,`fontSize`,[E],Object.getOwnPropertyDescriptor(cB.prototype,`fontSize`),cB.prototype),lB(cB.prototype,`lineHeight`,[E],Object.getOwnPropertyDescriptor(cB.prototype,`lineHeight`),cB.prototype),cB))||sB,fB=N.div` 7931 padding: 0 20px 20px; 7932 @media (max-width: 500px) { 7933 padding: 0 12px 12px; 7934 } 7935`,pB=N.div` 7936 display: flex; 7937 flex-direction: column; 7938 gap: 10px; 7939 width: 100%; 7940`,mB=N.div` 7941 width: 100%; 7942 box-sizing: border-box; 7943 padding: 12px 14px; 7944 border: 1px solid #ddd; 7945 border-radius: 5px; 7946 cursor: pointer; 7947 text-align: left; 7948 background: ${e=>e.selected?q.Theme.blue:`#fff`}; 7949 color: ${e=>e.selected?`#fff`:`#000`}; 7950 &:hover { 7951 background: ${e=>e.selected?q.Theme.blue:`#f5f5f5`}; 7952 } 7953`,hB=N.div` 7954 display: flex; 7955 flex-direction: column; 7956 gap: 10px; 7957 margin-top: 16px; 7958 width: 100%; 7959`,gB=N.textarea` 7960 width: 100%; 7961 box-sizing: border-box; 7962 min-height: 88px; 7963 padding: 10px; 7964 border: 1px solid #ddd; 7965 border-radius: 5px; 7966 font-size: 14px; 7967`,_B=N.span` 7968 font-style: italic; 7969`,vB=N.div` 7970 margin-bottom: 0; 7971`,yB=N.h3` 7972 padding: 20px 0 10px 0; 7973`,bB=N.button` 7974 border: 0; 7975 background: none; 7976 color: ${q.Theme.blue}; 7977 cursor: pointer; 7978 font: inherit; 7979 padding: 0; 7980 text-decoration: underline; 7981`,xB=N.div` 7982 display: flex; 7983 flex-wrap: wrap; 7984 align-items: baseline; 7985 gap: 0 4px; 7986 margin-top: 10px; 7987 padding: 10px 12px; 7988 background: #f7f7f7; 7989 border-radius: 5px; 7990 border: 1px solid #eaeaea; 7991 font-size: 13px; 7992 line-height: 1.45; 7993 color: #444; 7994 box-sizing: border-box; 7995`,SB=N.span` 7996 margin: 0 6px; 7997 color: #999; 7998 user-select: none; 7999`,CB=class extends V.Component{get steps(){return this.props.steps}get step(){return this.props.step}get selectedMeaning(){return this.props.selectedMeaning}get wordLevelReasonCode(){return this.props.wordLevelReasonCode}get selectedReasonCodes(){return this.props.selectedReasonCodes}get notes(){return this.props.notes}set notes(e){this.props.setNotes(e)}get focusedTranslationSourceIds(){return this.props.focusedTranslationSourceIds}get focusedSentenceIds(){return this.props.focusedSentenceIds}get focusedSynonymIds(){return this.props.focusedSynonymIds}get submitting(){return this.props.submitting}get submitError(){return this.props.submitError}get meaningFlagHubFocusChoices(){return this.props.meaningFlagHubFocusChoices}get meaningFlagMeaningIssues(){return this.props.meaningFlagMeaningIssues}get meaningFlagWordLevelIssues(){return this.props.meaningFlagWordLevelIssues}get notesPromptText(){return this.props.notesPromptText}get thankYouMessageText(){return this.props.thankYouMessageText}get reportingBreadcrumbWordSegment(){return this.props.reportingBreadcrumbWordSegment}get reportingBreadcrumbMeaningSegment(){return this.props.reportingBreadcrumbMeaningSegment}get reportingBreadcrumbSubstepSegment(){return this.props.reportingBreadcrumbSubstepSegment}get reportingBreadcrumbWordLevelIssueSegment(){return this.props.reportingBreadcrumbWordLevelIssueSegment}get meaningsSorted(){return this.props.meaningsSorted}get hasFirstStepChoice(){return this.props.hasFirstStepChoice}get hasCurrentStepSelection(){return this.props.hasCurrentStepSelection}get canSubmitCurrentStep(){return this.props.canSubmitCurrentStep}get close(){return this.props.close}get finishThankYou(){return this.props.finishThankYou}get selectMeaning(){return this.props.selectMeaning}get selectWordLevel(){return this.props.selectWordLevel}get toggleReason(){return this.props.toggleReason}get openTranslationPickStep(){return this.props.openTranslationPickStep}get openExampleSentencePickStep(){return this.props.openExampleSentencePickStep}get openSynonymPickStep(){return this.props.openSynonymPickStep}get setFocusedTranslationSource(){return this.props.setFocusedTranslationSource}get setFocusedSentence(){return this.props.setFocusedSentence}get setFocusedSynonym(){return this.props.setFocusedSynonym}get goBack(){return this.props.goBack}get submitMeaningFlag(){return this.props.submitMeaningFlag}get submitWordLevel(){return this.props.submitWordLevel}get getTranslationSourceDisplayText(){return this.props.getTranslationSourceDisplayText}get getSentenceSourceForUser(){return this.props.getSentenceSourceForUser}get focusableTranslationSources(){return this.props.focusableTranslationSources}get meaningTranslationsJoined(){return this.props.meaningTranslationsJoined}get meaningStepNext(){return this.props.meaningStepNext}get synonymChoiceLabel(){return this.props.synonymChoiceLabel}get stepQuestionForStep(){return this.props.stepQuestionForStep}get wordLevelDetailsPromptText(){return this.props.wordLevelDetailsPromptText}get vocabularyUser(){return this.props.vocabularyUser}get directSynonymIssueLabel(){return this.props.directSynonymIssueLabel}get otherWordIssueLabel(){return this.props.otherWordIssueLabel}get synonymContextText(){return this.props.synonymContextText}get synonymReportPromptText(){return this.props.synonymReportPromptText}get openDirectSynonymDetails(){return this.props.openDirectSynonymDetails}get openOtherWordIssue(){return this.props.openOtherWordIssue}get openComments(){return this.props.openComments}get submitDirectSynonymReport(){return this.props.submitDirectSynonymReport}sentenceChoiceContent(e){let t=this.getSentenceSourceForUser(e),n=t?.textForUser?t.textForUser(this.vocabularyUser):t?.text;return n?(0,K.jsxs)(K.Fragment,{children:[e.targetText,` â `,(0,K.jsx)(_B,{children:n})]}):e.targetText}renderNotesAndSubmitFooter(){return(0,K.jsxs)(K.Fragment,{children:[this.hasCurrentStepSelection&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{margin:`14px 0 6px`,fontSize:`14px`,children:this.notesPromptText}),(0,K.jsx)(gB,{value:this.notes,onChange:e=>{this.notes=e.target.value},disabled:this.submitting,maxLength:500})]}),this.submitError&&(0,K.jsx)(R,{color:`#b00020`,margin:`10px 0 0 0`,fontSize:(0,W.pixify)(`14px`),children:this.submitError}),(0,K.jsxs)(hB,{children:[this.hasCurrentStepSelection&&(0,K.jsx)(I,{width:`100%`,onClick:this.submitMeaningFlag,background:q.Theme.blue,disabled:!this.canSubmitCurrentStep||this.submitting,children:`Submit`}),(0,K.jsx)(I,{width:`100%`,background:`#e6e6e6`,color:`#191919`,onClick:this.goBack,disabled:this.submitting,children:`Back`})]})]})}render(){return(0,K.jsxs)(fB,{children:[(0,K.jsxs)(vB,{children:[this.step!==this.steps.THANK_YOU&&this.step===this.steps.MEANING&&this.reportingBreadcrumbWordSegment&&(0,K.jsx)(xB,{"aria-label":`Report context`,children:(0,K.jsx)(`span`,{title:this.reportingBreadcrumbWordSegment.title,children:this.reportingBreadcrumbWordSegment.text})}),this.step!==this.steps.THANK_YOU&&this.step===this.steps.WORD_LEVEL_DETAILS&&this.wordLevelReasonCode&&this.reportingBreadcrumbWordSegment&&(0,K.jsxs)(xB,{"aria-label":`Report context`,children:[(0,K.jsx)(`span`,{title:this.reportingBreadcrumbWordSegment.title,children:this.reportingBreadcrumbWordSegment.text}),this.reportingBreadcrumbWordLevelIssueSegment&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(SB,{"aria-hidden":!0,
7999children:`âº`}),(0,K.jsx)(`span`,{title:this.reportingBreadcrumbWordLevelIssueSegment.title,children:this.reportingBreadcrumbWordLevelIssueSegment.text})]})]}),this.step!==this.steps.THANK_YOU&&this.step!==this.steps.MEANING&&!(this.step===this.steps.WORD_LEVEL_DETAILS&&this.wordLevelReasonCode)&&this.reportingBreadcrumbMeaningSegment&&(0,K.jsxs)(xB,{"aria-label":`Report context`,children:[(0,K.jsx)(`span`,{title:this.reportingBreadcrumbWordSegment.title,children:this.reportingBreadcrumbWordSegment.text}),(0,K.jsx)(SB,{"aria-hidden":!0,children:`âº`}),(0,K.jsx)(_B,{title:this.reportingBreadcrumbMeaningSegment.title,children:this.reportingBreadcrumbMeaningSegment.text}),this.reportingBreadcrumbSubstepSegment&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(SB,{"aria-hidden":!0,children:`âº`}),(0,K.jsx)(`span`,{title:this.reportingBreadcrumbSubstepSegment.title,children:this.reportingBreadcrumbSubstepSegment.text})]})]}),this.step!==this.steps.THANK_YOU&&this.step!==this.steps.MEANING&&!(this.step===this.steps.WORD_LEVEL_DETAILS&&this.wordLevelReasonCode)&&!this.reportingBreadcrumbMeaningSegment&&this.reportingBreadcrumbWordSegment&&(0,K.jsx)(xB,{"aria-label":`Report context`,children:(0,K.jsx)(`span`,{title:this.reportingBreadcrumbWordSegment.title,children:this.reportingBreadcrumbWordSegment.text})})]}),(0,K.jsx)(yB,{children:this.stepQuestionForStep()}),this.step===this.steps.SYNONYM_ISSUE&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(pB,{children:[(0,K.jsx)(mB,{onClick:this.openDirectSynonymDetails,children:this.directSynonymIssueLabel}),(0,K.jsx)(mB,{onClick:this.openOtherWordIssue,children:this.otherWordIssueLabel})]}),(0,K.jsx)(hB,{children:(0,K.jsx)(I,{width:`100%`,background:`#e6e6e6`,color:`#636363`,onClick:this.close,children:`Cancel`})})]}),this.step===this.steps.SYNONYM_DETAILS&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(R,{margin:`0 0 14px`,fontSize:`14px`,lineHeight:21,textAlign:`left`,children:[this.synonymContextText,` `,(0,K.jsx)(bB,{onClick:this.openComments,children:`comment section`}),`.`]}),(0,K.jsx)(R,{margin:`0 0 6px`,fontSize:`14px`,children:this.synonymReportPromptText}),(0,K.jsx)(gB,{value:this.notes,onChange:e=>{this.notes=e.target.value},disabled:this.submitting,maxLength:500}),this.submitError&&(0,K.jsx)(R,{color:`#b00020`,margin:`10px 0 0 0`,fontSize:(0,W.pixify)(`14px`),children:this.submitError}),(0,K.jsxs)(hB,{children:[(0,K.jsx)(I,{width:`100%`,onClick:this.submitDirectSynonymReport,background:q.Theme.blue,disabled:!this.canSubmitCurrentStep||this.submitting,children:`Submit`}),(0,K.jsx)(I,{width:`100%`,background:`#e6e6e6`,color:`#636363`,onClick:this.goBack,disabled:this.submitting,children:`Back`})]})]}),this.step===this.steps.THANK_YOU&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{margin:`0 0 18px`,fontSize:`16px`,lineHeight:23,children:this.thankYouMessageText}),(0,K.jsx)(hB,{children:(0,K.jsx)(I,{width:`100%`,onClick:this.finishThankYou,background:q.Theme.blue,children:`Done`})})]}),this.step===this.steps.MEANING&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(pB,{children:[this.meaningsSorted.map(e=>(0,K.jsx)(mB,{selected:this.selectedMeaning?.id===e.id,onClick:()=>this.selectMeaning(e),children:(0,K.jsx)(_B,{children:this.meaningTranslationsJoined(e)})},e.id)),this.meaningFlagWordLevelIssues.map(([e,t])=>(0,K.jsx)(mB,{selected:this.wordLevelReasonCode===e,onClick:()=>this.selectWordLevel(e),children:t},e))]}),this.submitError&&(0,K.jsx)(R,{color:`#b00020`,margin:`12px 0 0 0`,fontSize:(0,W.pixify)(`14px`),children:this.submitError}),(0,K.jsxs)(hB,{children:[(0,K.jsx)(I,{width:`100%`,onClick:this.meaningStepNext,background:q.Theme.blue,disabled:!this.hasFirstStepChoice||this.submitting,children:`Next`}),(0,K.jsx)(I,{width:`100%`,background:`#e6e6e6`,color:`#636363`,onClick:this.close,disabled:this.submitting,children:`Cancel`})]})]}),this.step===this.steps.WORD_LEVEL_DETAILS&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{margin:`0 0 6px`,fontSize:`14px`,children:this.wordLevelDetailsPromptText()}),(0,K.jsx)(gB,{value:this.notes,placeholder:this.wordLevelReasonCode===`other`?`Required when you choose "Something else."`:`Optional.`,onChange:e=>{this.notes=e.target.value},disabled:this.submitting,maxLength:500}),this.submitError&&(0,K.jsx)(R,{color:`#b00020`,margin:`10px 0 0 0`,fontSize:(0,W.pixify)(`14px`),children:this.submitError}),(0,K.jsxs)(hB,{children:[(0,K.jsx)(I,{width:`100%`,onClick:this.submitWordLevel,background:q.Theme.blue,disabled:!this.canSubmitCurrentStep||this.submitting,children:`Submit`}),(0,K.jsx)(I,{width:`100%`,background:`#e6e6e6`,color:`#636363`,onClick:this.goBack,disabled:this.submitting,children:`Back`})]})]}),this.step===this.steps.REASONS&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(pB,{children:[this.selectedMeaning&&this.focusableTranslationSources(this.selectedMeaning).length>0&&(0,K.jsx)(mB,{selected:this.focusedTranslationSourceIds.length>0,onClick:this.openTranslationPickStep,children:this.meaningFlagHubFocusChoices.translations}),(this.selectedMeaning?.sentences||[]).length>0&&(0,K.jsx)(mB,{selected:!1,onClick:this.openExampleSentencePickStep,children:this.meaningFlagHubFocusChoices.example_sentence}),(this.selectedMeaning?.synonyms||[]).length>0&&(0,K.jsx)(mB,{selected:!1,onClick:this.openSynonymPickStep,children:this.meaningFlagHubFocusChoices.example_synonym}),this.meaningFlagMeaningIssues.map(([e,t])=>(0,K.jsx)(mB,{selected:this.selectedReasonCodes.includes(e),onClick:()=>this.toggleReason(e),children:t},e))]}),this.renderNotesAndSubmitFooter()]}),this.step===this.steps.TRANSLATION_SOURCES&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(pB,{children:this.selectedMeaning&&this.focusableTranslationSources(this.selectedMeaning).map(e=>(0,K.jsx)(mB,{selected:this.focusedTranslationSourceIds.includes(e.id),onClick:()=>this.setFocusedTranslationSource(e.id),children:(0,K.jsx)(_B,{children:this.getTranslationSourceDisplayText(e)})},e.id))}),this.renderNotesAndSubmitFooter()]}),this.step===this.steps.EXAMPLE_SENTENCES&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(pB,{children:(this.selectedMeaning?.sentences||[]).map(e=>(0,K.jsx)(mB,{selected:this.focusedSentenceIds.includes(e.id),onClick:()=>this.setFocusedSentence(e.id),children:this.sentenceChoiceContent(e)}
7999,e.id))}),this.renderNotesAndSubmitFooter()]}),this.step===this.steps.SYNONYMS&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(pB,{children:(this.selectedMeaning?.synonyms||[]).map(e=>(0,K.jsx)(mB,{selected:this.focusedSynonymIds.includes(e.id),onClick:()=>this.setFocusedSynonym(e.id),children:this.synonymChoiceLabel(e)},e.id))}),this.renderNotesAndSubmitFooter()]})]})}},wB=class extends V.Component{render(){return this.props.open?(0,K.jsx)(Dn,{width:U.AppUI.layout.isMobile?`92%`:`600px`,onCloseModal:this.props.close,hideCloseIcon:!1,title:`Report a Problem`,gradient:!0,children:(0,K.jsx)(CB,{...this.props})}):null}},TB=(0,Y.ReportMeaningsWrapper)(wB),EB,DB=N.div` 8000 display: flex; 8001 justify-content: flex-end; 8002`,OB=N.div` 8003 display: flex; 8004 align-items: center; 8005 justify-content: center; 8006 background: ${e=>e.disabled?`#f5f5f5`:`#ECECEC`}; 8007 color: ${e=>e.disabled?`#999`:`inherit`}; 8008 font-size: 12px; 8009 padding: 0 12px; 8010 cursor: ${e=>e.disabled?`not-allowed`:`pointer`}; 8011 width: 160px; 8012 border-radius: 5px; 8013 i { 8014 margin-right: 4px; 8015 } 8016 &:hover { 8017 background: ${e=>e.disabled?`#f5f5f5`:`#d0d0d0`}; 8018 } 8019`,kB=j(EB=class extends V.Component{render(){return(0,K.jsx)(DB,{"data-tip":!0,"data-for":`admin-toggle-button`,children:(0,K.jsx)(OB,{disabled:!this.props.wordHasMeanings,onClick:this.props.wordHasMeanings?this.props.onToggle:void 0,children:this.props.isShowingMeaningsView?`Show All Translations`:`Show Meanings`})})}})||EB;D();var AB,jB,MB,NB,PB;function FB(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function IB(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var LB=N.div` 8020 margin: ${e=>e.margin||`10px 0 0 0`}; 8021`,RB=N.div` 8022 padding: ${e=>e.padding}; 8023 ${(0,X.flexCenterColumn)()} 8024`,zB=N.div` 8025 display: flex; 8026 align-items: center; 8027 width: 100%; 8028 padding: ${e=>e.padding||`0 10px`}; 8029 margin: ${e=>e.margin}; 8030 justify-content: ${e=>e.justifyContent}; 8031 box-sizing: ${e=>e.isMobile?`border-box`:null}; 8032`,BB=N.div` 8033 flex: 1; 8034 display: flex; 8035 align-items: center; 8036 flex-wrap: wrap; 8037`,VB=N.div` 8038 margin: ${e=>e.margin}; 8039 width: ${e=>e.width}; 8040`,HB=N.span` 8041 border-bottom: ${e=>e.noBorder?``:`2px solid #b5b5b5`}; 8042 cursor: pointer; 8043`,UB=j(AB=(jB=class extends V.Component{constructor(...e){super(...e),FB(this,`showTriviaQuestionModal`,MB,this),FB(this,`guestShowingMeaningsView`,NB,this),FB(this,`showReportMeaningsModal`,PB,this),this.handleMeaningsViewToggle=()=>{let e=!this.isShowingMeaningsView;if((0,W.isPresent)(U.AppUI.user?.id)){U.AppUI.user.showVocabMeanings=e,U.AppUI.authUserStore.update({data:{showVocabMeanings:e}},G.noop);return}this.guestShowingMeaningsView=e},this.openReportMeanings=()=>
8043{if(this.props.inDeck||U.DeckUI.hasDeck){U.OverlayUI.addOverlay(`reportMeanings`,{open:!0,word:this.props.word,onClose:()=>{U.OverlayUI.removeOverlay(`reportMeanings`)},onSubmitSuccess:()=>{U.DeckUI.createEvent(`vocab - report meanings submitted`,{word_id:this.props.word.id})}});return}this.showReportMeaningsModal=!0}}componentDidMount(){document.getElementById(`top`).scrollIntoView()}get fontSize(){return U.AppUI.layout.isMobile?`13px`:`16px`}get lineHeight(){return U.AppUI.layout.isMobile?`17px`:`22px`}get targetText(){return U.AppUI.site.hideDefiniteArticle?this.props.word.targetTextWithGender:this.props.word.targetTextWithDefiniteArticle}get pluralTargetText(){return U.AppUI.site.hideDefiniteArticle?this.props.word.pluralNounsStringWithoutDefiniteArticle:this.props.word.pluralNounsString}get genderVariantTargetText(){return U.AppUI.site.hideDefiniteArticle?this.props.word.genderVariant.targetTextWithGender:this.props.word.genderVariant.targetTextWithDefiniteArticle}get languageName(){if(this.props.word.languageId)return q.Languages[this.props.word.languageId]}get wordHasMeanings(){return this.props.word?.meanings&&this.props.word.meanings.length>0}get wordHasMeaningPreviews(){return this.props.word?.meaningSourcePreviews?.length>0}get wordHasMeaningsData(){return this.wordHasMeanings||this.wordHasMeaningPreviews||this.props.word?.meaningsCount>0}get isShowingMeaningsView(){return(0,W.isPresent)(U.AppUI.user?.id)?U.AppUI.user.showVocabMeanings!==!1:this.guestShowingMeaningsView}get userCanAccessMeanings(){return U.AppUI.user?.showMeanings}get displayMeaningsList(){return this.userCanAccessMeanings&&this.wordHasMeanings&&this.isShowingMeaningsView}get displayMeaningPreviews(){return this.userCanAccessMeanings&&this.isShowingMeaningsView&&!this.wordHasMeanings&&this.wordHasMeaningPreviews}get displayMeaningsSection(){return this.displayMeaningsList||this.displayMeaningPreviews}render(){return(0,K.jsxs)(LB,{isMobile:U.AppUI.layout.isMobile,margin:this.props.margin,children:[(0,K.jsxs)(RB,{padding:this.props.tablePadding||`10px 0 0 0`,children:[(0,K.jsxs)(zB,{isMobile:U.AppUI.layout.isMobile,margin:`5px 0 5px 0`,padding:`0 0 0 10px`,children:[(0,K.jsx)(VB,{width:`25px`,"aria-label":this.languageName,children:(0,K.jsx)(J.LanguageIcon,{languageId:this.props.word.languageId})}),(0,K.jsxs)(BB,{children:[(0,K.jsxs)(R,{bold:!0,fontSize:`22px`,lineHeight:`26px`,style:{whiteSpace:`nowrap`},lang:this.props.word.languageId,children:[this.targetText,this.props.word.pluralRoot?` (pl.)`:``]}),(0,W.isPresent)(this.props.word.genderVariant)&&this.genderVariantTargetText!==this.props.word.targetText&&(0,K.jsx)(R,{fontSize:`22px`,lineHeight:`26px`,style:{whiteSpace:`nowrap`},children:`,\xA0`}),(0,W.isPresent)(this.props.word.genderVariant)&&this.genderVariantTargetText!==this.props.word.targetText&&(0,K.jsx)(R,{fontSize:`22px`,lineHeight:`26px`,style:{whiteSpace:`nowrap`},className:this.props.word.genderVariant.root?`underline`:``,onClick:this.props.word.genderVariant.root&&this.props.onClickWord?()=>this.props.onClickWord(this.props.word.genderVariant):G.noop,lang:this.props.word.languageId,children:(0,K.jsxs)(HB,{children:[this.genderVariantTargetText,this.props.word.genderVariant.pluralRoot?` (pl.)`:``]})})]}),this.displayMeaningsSection&&(0,K.jsx)(J.FlagTranslationIcon,{minimumHeight:`20px`,message:`Report a problem with these meanings`,onClick:this.openReportMeanings}),this.userCanAccessMeanings&&this.wordHasMeaningsData&&!U.AppUI.layout.isMobile&&(0,K.jsx)(kB,{wordHasMeanings:this.wordHasMeaningsData,isShowingMeaningsView:this.isShowingMeaningsView,onToggle:this.handleMeaningsViewToggle})]}),this.props.showPlural&&this.props.word.isNoun&&!this.props.word.pluralRoot&&(0,K.jsxs)(zB,{isMobile:U.AppUI.layout.isMobile,margin:`5px 0 5px 0`,children:[(0,K.jsx)(VB,{width:`25px`,"aria-label":this.languageName,children:(0,K.jsx)(J.LanguageIcon,{languageId:this.props.word.languageId})}),(0,K.jsx)(BB,{children:(0,K.jsxs)(R,{center:!0,fontSize:this.fontSize,lineHeight:this.lineHeight,lang:this.props.word.languageId,children:[this.pluralTargetText,` (pl.)`]})})]}),this.props.conjugationPreview&&(0,K.jsx)(zB,{isMobile:U.AppUI.layout.isMobile,margin:`5px 0 5px 0`,children:(0,K.jsx)(BB,{children:(0,K.jsx)(R,{italic:!0,fontSize:this.fontSize,lineHeight:this.lineHeight,lang:this.props.word.languageId,children:this.props.conjugationPreview})})}),this.props.showNoPlural&&(0,K.jsx)(zB,{isMobile:U.AppUI.layout.isMobile,margin:`5px 0 5px 0`,children:(0,K.jsx)(BB,{children:(0,K.jsx)(R,{center:!0,italic:!0,margin:`0 0 0 25px`,fontSize:this.fontSize,lineHeight:this.lineHeight,children:`No Plural`})})}),this.displayMeaningsSection?(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(dB,{word:this.props.word,background:`#FFF`,fontSize:this.fontSize,lineHeight:this.lineHeight,padding:`0 5px 5px 5px`,onClickWord:this.props.onClickWord,rowMargin:this.props.rowMargin,usePreviewMeanings:this.displayMeaningPreviews,selectedSynonymAssociation:this.props.selectedSynonymAssociation})}):(0,K.jsx)(Az,{word:this.props.word,background:`#FFF`,fontSize:this.fontSize,lineHeight:this.lineHeight,showInput:this.props.showSourceInput,afterSubmitSourceIn
8043put:this.props.afterSubmitSourceInput,padding:`0 5px 5px 5px`,user:U.AppUI.user,afterFlag:this.props.afterFlag}),this.userCanAccessMeanings&&this.wordHasMeaningsData&&U.AppUI.layout.isMobile&&(0,K.jsxs)(zB,{isMobile:U.AppUI.layout.isMobile,padding:`10px 0`,justifyContent:`flex-end`,children:[(0,K.jsx)(kB,{wordHasMeanings:this.wordHasMeaningsData,isShowingMeaningsView:this.isShowingMeaningsView,onToggle:this.handleMeaningsViewToggle}),this.displayMeaningsSection&&(0,K.jsx)(J.FlagTranslationIcon,{minimumHeight:`20px`,message:`Report a problem with these meanings`,onClick:this.openReportMeanings})]})]}),!this.props.hideSynonyms&&!this.displayMeaningsSection&&(0,W.isPresent)(this.props.word.synonymAssociations)&&(0,G.some)(this.props.word.synonymAssociations.map(e=>e.synonym?.publicInVocab))&&(0,K.jsx)(Wz,{margin:U.AppUI.layout.isMobile?`10px`:`10px 0`,title:`Synonyms`,referenceWord:this.props.word,words:this.props.word.publicSynonyms,onClickWord:this.props.onClickWord}),!this.props.hideRelatedWords&&(0,W.isPresent)(this.props.relatedWords)&&(0,K.jsx)(Wz,{margin:U.AppUI.layout.isMobile?`10px`:`10px 0`,title:`Related Words`,referenceWord:this.props.word,words:this.props.relatedWords,onClickWord:this.props.onClickWord}),(0,W.isPresent)(this.props.relatedPhrases)&&(0,K.jsx)(Wz,{margin:U.AppUI.layout.isMobile?`10px`:`10px 0`,title:`Phrases`,referenceWord:this.props.word,words:this.props.relatedPhrases,onClickWord:this.props.onClickWord,hideLevels:!0}),(0,K.jsx)(TB,{word:this.props.word,open:this.showReportMeaningsModal,onClose:()=>{this.showReportMeaningsModal=!1},onSubmitSuccess:()=>{U.DeckUI.createEvent(`vocab - report meanings submitted`,{word_id:this.props.word.id})}})]})}},MB=IB(jB.prototype,`showTriviaQuestionModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),NB=IB(jB.prototype,`guestShowingMeaningsView`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),PB=IB(jB.prototype,`showReportMeaningsModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),IB(jB.prototype,`fontSize`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`fontSize`),jB.prototype),IB(jB.prototype,`lineHeight`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`lineHeight`),jB.prototype),IB(jB.prototype,`targetText`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`targetText`),jB.prototype),IB(jB.prototype,`pluralTargetText`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`pluralTargetText`),jB.prototype),IB(jB.prototype,`genderVariantTargetText`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`genderVariantTargetText`),jB.prototype),IB(jB.prototype,`languageName`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`languageName`),jB.prototype),IB(jB.prototype,`wordHasMeanings`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`wordHasMeanings`),jB.prototype),IB(jB.prototype,`wordHasMeaningPreviews`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`wordHasMeaningPreviews`),jB.prototype),IB(jB.prototype,`wordHasMeaningsData`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`wordHasMeaningsData`),jB.prototype),IB(jB.prototype,`isShowingMeaningsView`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`isShowingMeaningsView`),jB.prototype),IB(jB.prototype,`userCanAccessMeanings`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`userCanAccessMeanings`),jB.prototype),IB(jB.prototype,`displayMeaningsList`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`displayMeaningsList`),jB.prototype),IB(jB.prototype,`displayMeaningPreviews`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`displayMeaningPreviews`),jB.prototype),IB(jB.prototype,`displayMeaningsSection`,[E],Object.getOwnPropertyDescriptor(jB.prototype,`displayMeaningsSection`),jB.prototype),jB))||AB,WB,GB=N.div` 8044 width: 100%; 8045 .broken-circle-icon { svg { width: 10px; } } 8046 .arrow-icon { svg { width: 8px; } } 8047 .info-icon { svg { width: 2.5px; } } 8048 .table-icon { svg { width: 20px; } } 8049 .alert-icon { svg { width: 20px; } } 8050 .infinitive { 8051 .icon-wrapper { 8052 transform: rotate(180deg); 8053 display: flex; 8054 justify-content: flex-end; 8055 } 8056 } 8057 .info-icon, .arrow-icon, .broken-circle-icon { 8058 height: 20px;
8059 width: 20px; 8060 display: flex; 8061 align-items: center; 8062 justify-content: center; 8063 border-radius: 3px; 8064 border: 1px solid black; 8065 } 8066 .icon-wrapper { 8067 width: 20px; 8068 svg { 8069 fill: #000; 8070 } 8071 } 8072`,KB=j(WB=class extends V.Component{render(){return(0,K.jsx)(GB,{children:this.props.word.concepts.map(e=>e.showInDictionary?(0,K.jsxs)(zi,{id:e.id,expandedId:this.props.expandedId,onClick:this.props.onClickRow,rowMargin:this.props.rowMargin,children:[(0,K.jsx)(qi,{concept:e},1),(0,K.jsx)(Wi,{concept:e,user:U.AppUI.user,pageLength:5})]},e.id):null)})}})||WB;D();var qB,JB,YB;function XB(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ZB(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var QB=N.div` 8073 padding: 10px 10px 30px 10px; 8074`,$B=N.div` 8075`,eV=N.div` 8076 font-size: 11px; 8077 text-decoration: underline; 8078 text-align: center; 8079 padding: 10px 5px 0 5px; 8080`,tV=N.div` 8081 margin-top: 20px; 8082 display: flex; 8083 flex-direction: column; 8084 align-items: center; 8085 justify-content: center; 8086 gap: 10px; 8087`,nV=N.div` 8088 margin-top: 20px; 8089 display: flex; 8090 align-items: center; 8091 justify-content: center; 8092 min-height: ${e=>e.minHeight}; 8093`,rV=N.div` 8094 width: ${e=>e.size}px; 8095 height: ${e=>e.size}px; 8096 background: #CCC; 8097 border-radius: 5px; 8098 display: flex; 8099 align-items: center; 8100 justify-content: center; 8101 padding: 20px; 8102`,iV=N.div` 8103 margin-top: 20px; 8104`,aV=j(qB=(JB=class extends V.Component{constructor(e){super(e),XB(this,`showVocabSentences`,YB,this),setTimeout(()=>this.showVocabSentences=!0,300)}render(){let e=U.AppUI.layout.isMobile?150:180;return(0,K.jsxs)(QB,{children:[(0,K.jsxs)($B,{children:[(0,K.jsx)(lz,{flexDirection:`row`,position:`static`,word:this.props.word}),!!this.props.word&&(0,K.jsxs)(nV,{minHeight:`${e}px`,children:[this.props.showSpinner&&!this.props.shouldShowVocabVideo&&(0,K.jsx)(P,{margin:`0`}),this.props.shouldShowVocabVideo&&(0,K.jsx)(Yi,{width:e,hasVideoClip:!0,autoPlay:this.props.autoPlay,videoClip:this.props.vocabCardVideoClip,supplementVideoClip:this.props.supplementVideoClip}),!this.props.showSpinner&&!this.props.shouldShowVocabVideo&&(0,K.jsx)(rV,{size:e,children:(0,K.jsx)(R,{center:!0,fontSize:`13px`,lineHeight:`16px`,color:`#333`,children:`We will record a video for this word soon!`})})]}),(0,K.jsxs)(tV,{children:[this.props.showVocabCardReviewToggle&&(0,K.jsx)(Bi,{interfaceSource:`vocab-card`,buttonText:`Add to Reviews`,word:this.props.reviewWord}),(0,K.jsx)(Hi,{word:this.props.word})]}),(0,K.jsx)(UB,{...this.props,word:this.props.word,hideRelatedWords:!0,hideSynonyms:!0,rowMargin:`5px 0`}),this.props.shouldShowConjugationRow&&(0,K.jsx)(Ri,{id:`conjugation-${this.props.word.id}`,word:this.props.word,expandedId:this.props.expandedId,onClickRow:this.props.onClickRow,rowMargin:`5px 0`,displayNameLine1WithCase:`Conjugation`,displayNameLine2:this.props.word.conjugatedVerbStringsSummary,conjugationTableProps:{hideHeader:!0,expand:!0,conjugatedVerbStrings:this.props.word.conjugatedVerbStrings,padding:`0`}}),this.props.shouldShowConceptRows&&(0,K.jsx)(KB,{word:this.props.word,expandedId:this.props.expandedId,onClickRow:this.props.onClickRow,rowMargin:`10px 0`}),(this.props.shouldShowSynonyms||this.props.shouldShowRelatedWords)&&(0,K.jsxs)(iV,{children:[this.props.shouldShowSynonyms&&(0,K.jsx)(Wz,{title:`Synonyms`,referenceWord:this.props.word,words:this.props.word.publicSynonyms,onClickWord:this.props.onClickWord}),this.props.shouldShowRelatedWords&&(0,K.jsx)(Wz,{title:`Related Words`,referenceWord:this.props.word,words:this.props.relatedWords,onClickWord:this.props.onClickWord})]}),U.AppUI.user.admin&&this.props.word&&this.props.word.id&&(0,K.jsx)(eV,{children:(0,K.jsx)(F,{to:{name:`builder.words.edit`,params:{wordId:this.props.word.id}},target:`_blank`,children:`Admin Link`})})]}),this.showVocabSentences&&(0,K.jsx)(WR,{inDeck:!0,wordSentenceStore:this.props.wordSentenceStore,wordId:this.props.word.id,showSentenceSubmissions:!0,expandSentenceSubmissionCreate:!0,showHeader:!0,hideWhenBlank:this.props.isShowingMeanings})]})}},YB=ZB(JB.prototype,`showVocabSentences`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),JB))||qB,oV=(0,Y.VocabWordWrapper)(aV),sV=N.div` 8105 background: white; 8106 height: ${e=>e.height}; 8107 overflow: auto; 8108 padding-top: 1px; 8109`,cV=class extends V.Component{render(){return this.props.open?(0,K.jsx)(sV,{height:this.props.height?(0,W.pixify)(this.props.height):`100%`,children:(0,K.jsx)(CB,{...this.props})}):null}},lV=(0,Y.ReportMeaningsWrapper)(cV),uV,dV=N.div` 8110 padding: 15px; 8111`,fV=N.div` 8112 align-items: center; 8113 background: ${e=>e.selected?`#e8f6fa`:`#f5f5f5`}; 8114 border-left: ${e=>e.selected?`4px solid ${q.Theme.blue}`:`4px solid transparent`}; 8115 border-radius: 10px; 8116 cursor: pointer; 8117 display: flex; 8118 flex-direction: row; 8119 margin-bottom: 10px; 8120 padding: 10px; 8121 8122 &:hover { 8123 background: #e8f6fa; 8124 } 8125`,pV=N.div` 8126 margin-right: 10px; 8127 width: 24px; 8128`,mV=N.div` 8129 flex: 1; 8130`,hV=j(uV=class extends V.Component{render(){return(0,K.jsx)(dV,{children:this.props.cards.map((e,t)=>(0,K.jsxs)(fV,{onClick:()=>this.props.onSelectCard(e),selected:e.id===this.props.selectedCardId,children:[(0,K.jsx)(pV,{children:(0,K.jsx)(R,{bold:!0,color:`#666`,fontSize:`13px`,children:`${t+1}.`})}),(0,K.jsxs)(mV,{children:[(0,K.jsx)(R,{bold:!0,color:`#333`,fontSize:`13px`,children:(0,W.deckCardListTypeName)(e,this.props.exercises)}),(0,K.jsx)(R,{color:`#666`,fontSize:`13px`,children:(0,W.deckCardListText)(e,this.props.exercises)})]})]},e.id))})}})||uV,gV=M((0,Y.GoToCardWrapper)(hV)),_V,vV=j(_V=class extends V.Component{constructor(e){super(e),this.components={cardNote:eI,profile:fw,deckShow:uM,userIndex:Dge,faq:_M,settings:gL,contact:BM,privacy:UM,partners:KM,deckSettings:sN,mediaBlocked:I_e,shortcuts:P_e,goToCard:gV,sourceEdit:U_e,cardComments:rF,triviaResults:vF,reviewDetails:HI,reviewHistory:ZI,deckGrammar:xj,conjugationTable:Ui,reportBug:FL,reportMeanings:lV,vocabSentencePopup:_R,vocabCard:oV,grammarTip:nR,conceptDescription:WL}}render(){return(0,K.jsx)(`div`,{children:U.OverlayUI.overlays?.map(e=>(0,K.jsx)(Zv,{height:U.DeckUI.hasDeck&&e.name!==`deckShow`?U.DeckUI.layout.deckHeight:e.props.layout.viewportHe
8130ight,layout:e.props.layout,overlayState:e.overlayState,deckOverlay:U.DeckUI.hasDeck&&e.name!==`deckShow`,...e.props,children:V.createElement(this.components[e.name],{...e.props,debugInfo:U.DeckUI.commentDebugInfo,commentCreatePlaceholder:`Leave a Public Comment`,inDeckComments:U.DeckUI.hasDeck&&e.name===`cardComments`})},e.props.overlayId))})}})||_V,yV,bV=N.div` 8131 position: fixed; 8132 bottom: 0; 8133 width: 100%; 8134 left: 0; 8135 color: white; 8136 background: ${q.Theme.orange}; 8137 z-index: ${q.Theme.z.topmost}; 8138 padding: 10px; 8139 font-size: 14px; 8140 line-height: 18px; 8141`,xV=j(yV=class extends V.Component{render(){return H.ServerStore.errorMessage?(0,K.jsxs)(bV,{children:[(0,K.jsx)(`i`,{onClick:()=>H.ServerStore.clearMessages(),className:`fa fa-times`}),H.ServerStore.errorMessage]}):(0,K.jsx)(`span`,{})}})||yV;se();var SV=class extends V.Component{componentDidMount(){this.updateTitle()}componentDidUpdate(){this.updateTitle()}componentWillUnmount(){U.AppUI.site?.teamName&&(document.title=U.AppUI.site.teamName)}updateTitle(){let{children:e}=this.props;e&&U.AppUI.site?.teamName?document.title=`${e} | ${U.AppUI.site.teamName}`:e&&(document.title=e)}render(){return null}};D();var CV,wV,TV;function EV(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function DV(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var OV=N.div` 8142`,kV=N.div` 8143 margin: 10px 0; 8144 p:first-of-type { 8145 margin-top: 0; 8146 } 8147 p:last-of-type { 8148 margin-bottom: 0; 8149 } 8150 a { 8151 color: inherit; 8152 text-decoration: underline; 8153 } 8154`,AV=N.div` 8155 width: ${e=>e.width}; 8156 display: flex; 8157 align-items: center; 8158 flex-direction: ${e=>e.flexDirection}; 8159 margin-bottom: 30px; 8160 gap: 5px; 8161`,jV=N.div` 8162`,MV=N.div` 8163 display: flex; 8164 align-items: center; 8165`,NV=N.div` 8166 font-weight: bold; 8167 flex: 1; 8168`,PV=`When you visit websites, they may store or retrieve data in your browser. This storage is often necessary for the basic functionality of the website. In Seedlang's case, we only use cookies to interact with 3rd party services. All personalization of your learning experience is stored on our servers and not in the browser. We do not serve up advertisements on the site, and don't use cookies for anything related to advertisements. Privacy is important to us, so you have the option of disabling any browser based storage that is not used for the basic functioning of the website.`,FV=j(CV=(wV=class extends V.Component{constructor(...e){super(...e),EV(this,`navigationIndex`,TV,this),this.onAcceptAllClick=()=>{U.PrivacySettingsState.acceptAll(),this.isModal&&this.saveAndClose()},this.onRejectAllClick=()=>{U.PrivacySettingsState.rejectAll(),this.isModal&&this.saveAndClose()},this.saveAndClose=()=>{U.PrivacySettingsState.saveChoices(),this.closeModal()},this.closeModal=()=>{this.props.onCloseModal&&this.props.onCloseModal()}}get isModal(){return!!this.props.onCloseModal}get privacyTextHtml(){return U.AppUI.site?.privacyTextHtml??PV}render(){return(0,K.jsxs)(OV,{children:[(0,K.jsx)(SV,{children:`Privacy Preferences`}),(0,K.jsx)(hp,{children:(0,K.jsx)(R,{heading:`2`,margin:`0 0 20px 0`,children:`Privacy`})}),(0,K.jsx)(R,{heading:`3`,margin:`0 0 10px 0`,children:`Privacy Preferences`}),(0,K.jsx)(kV,{dangerouslySetInnerHTML:{__html:this.privacyTextHtml}}),(0,K.jsxs)(AV,{flexDirection:U.AppUI.layout.isMobile?`column`:`row`,width:U.AppUI.layout.isMobile?`100%`:`440px`,children:[(0,K.jsx)(I,{onClick:this.onAcceptAllClick,children:`Accept All Cookies`}),(0,K.jsx)(I,{onClick:this.onRejectAllClick,children:`Reject All Cookies`})]}),(0,K.jsx)(R,{heading:`3`,margin:`0 0 10px 0`,children:`Manage Consent`}),U.PrivacySettingsState.togglableCategories.map((e,t)=>(0,K.jsxs)(jV,{onClick:()=>this.navigationIndex=t,children:[(0,K.jsxs)(MV,{children:[(0,K.jsx)(NV,{children:e.name}),e.showToggle&&(0,K.jsx)(ZM,{selected:U.PrivacySettingsState.choices[e.key]??!1,onToggle:()=>U.PrivacySettingsState.toggleChoice(e.key)})]}),(0,K.jsx)(kV,{children:e.description})]},t)),(0,K.jsx)(AV,{children:(0,K.jsx)(I,{onClick:this.saveAndClose,disabled:!U.PrivacySettingsState.hasUnsavedChanges,children:this.isModal?`Save and Close`:`Save`})})]})}},TV=DV(wV.prototype,`navigationIndex`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),wV))||CV,IV,LV=N.div` 8169 height: 100%; 8170 display: flex; 8171 flex-direction: column; 8172 padding: 30px; 8173 overflow: auto; 8174`,RV=j(IV=class extends V.Component{render(){return(0,K.jsx)(LV,{children:(0,K.jsx)(FV,{onCloseModal:this.props.onCloseModal})})}})||IV,zV,BV=N.div` 8175 background: ${e=>e.background}; 8176 line-height: 20px; 8177 width: 100%; 8178 height: ${e=>e.height}; 8179 position: fixed; 8180 bottom: 0; 8181 left: 0; 8182 display: flex; 8183 align-items: center; 8184 justify-content: center; 8185 z-index: 999; 8186 a { 8187 color: white; 8188 } 8189`,VV=N.div` 8190 background: ${e=>e.background}; 8191 color: ${e=>e.color}; 8192 width: ${e=>e.width}; 8193 margin: ${e=>e.margin}; 8194 padding: 5px; 8195 font-weight: bold; 8196 cursor: pointer; 8197 border-radius: 10px; 8198 height: 40px; 8199 align-items: center; 8200 justify-content: center; 8201 display: flex; 8202`,HV=N.div` 8203 width: ${e=>e.width}; 8204 display: flex; 8205 align-items: center; 8206 flex-direction: ${e=>e.flexDirection}; 8207`,UV=N.div` 8208 max-width: 1180px; 8209 display: flex; 8210 align-items: center; 8211 color: white; 8212 font-size: 14px; 8213 text-align: center; 8214 flex-direction: ${e=>e.flexDirection}; 8215 padding: 0 10px; 8216`,WV=N.div` 8217 flex: 1; 8218 text-align: left; 8219 padding: ${e=>e.padding}; 8220`,GV=j(zV=class extends V.Component{render(){return(0,K.jsxs)(K.Fragment,{children:[U.PrivacySettingsUI.isModalVisible&&(0,K.jsx)(Dn,{padding:`0px`,top:`140px`,maxWidth:`500px`,width:`calc(100% - 40px)`,margin:U.AppUI.layout.isMobile?`20px`:`0 auto`,height:U.AppUI.layout.viewportHe
8220ight-300,onCloseModal:U.PrivacySettingsUI.hideModal,iconFill:`#000`,children:(0,K.jsx)(RV,{onCloseModal:U.PrivacySettingsUI.hideModal})}),U.PrivacySettingsUI.isBannerVisible&&(0,K.jsx)(BV,{height:U.AppUI.layout.isMobile?`200px`:`90px`,background:U.AppUI.site.secondaryAccentColor||q.Theme.darkestBlue,children:(0,K.jsxs)(UV,{flexDirection:U.AppUI.layout.isMobile?`column`:`row`,children:[(0,K.jsxs)(WV,{padding:U.AppUI.layout.isMobile?`0 0 10px 0`:`0 10px 0 0`,children:[`This website uses cookies to improve your user experience. View our `,(0,K.jsx)(`a`,{href:U.AppUI.site.privacyUrl,target:`_blank`,rel:`noopener noreferrer`,className:`underline`,style:{display:`inline`},children:`Privacy Policy`}),`.`]}),(0,K.jsxs)(HV,{flexDirection:U.AppUI.layout.isMobile?`column`:`row`,width:U.AppUI.layout.isMobile?`100%`:`440px`,children:[(0,K.jsx)(VV,{background:`#FFF`,color:U.AppUI.site.accentColor||`#0584a1`,onClick:U.PrivacySettingsUI.acceptAll,width:U.AppUI.layout.isMobile?`100%`:`160px`,margin:U.AppUI.layout.isMobile?`5px 0 0 0`:`0 0 0 5px`,children:`Accept All`}),(0,K.jsx)(VV,{background:`#FFF`,color:U.AppUI.site.accentColor||`#0584a1`,onClick:U.PrivacySettingsUI.rejectAll,width:U.AppUI.layout.isMobile?`100%`:`160px`,margin:U.AppUI.layout.isMobile?`5px 0 0 0`:`0 0 0 5px`,children:`Reject Optional`}),(0,K.jsx)(VV,{background:U.AppUI.site.accentColor||`#0584a1`,color:`#FFF`,onClick:U.PrivacySettingsUI.showModal,width:U.AppUI.layout.isMobile?`100%`:`160px`,margin:U.AppUI.layout.isMobile?`5px 0 0 0`:`0 0 0 5px`,children:`Customize`})]})]})})]})}})||zV;D();var KV,qV,JV,YV,XV,ZV;function QV(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function $V(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var eH=N.div` 8221 display: flex; 8222 flex-direction: column; 8223 align-items: center; 8224 justify-content: center; 8225 padding: 20px; 8226 line-height: 24px; 8227 width: 100%; 8228 height: 100%; 8229`,tH=N.div` 8230 background: ${e=>e.background}; 8231 color: ${e=>e.color}; 8232 width: ${e=>e.width}; 8233 margin: ${e=>e.margin}; 8234 padding: 5px; 8235 font-weight: bold; 8236 cursor: pointer; 8237 border-radius: 10px; 8238 height: 40px; 8239 align-items: center; 8240 justify-content: center; 8241 display: flex; 8242 &:active { 8243 transform:scale(0.98); 8244 } 8245`,nH=N.div` 8246 font-size: 16px; 8247 width: 100%; 8248 margin-top: 20px; 8249 display: flex; 8250 align-items: center; 8251 justify-content: center; 8252 gap: 10px; 8253 @media only screen and (max-width : 649px) { 8254 flex-direction: column; 8255 } 8256`,rH=N.div` 8257 text-align: left; 8258 padding: ${e=>e.padding}; 8259 display: flex; 8260 flex-direction: column; 8261 gap: 10px; 8262`,iH=N.div` 8263 margin-top: 10px; 8264`,aH=N.div` 8265 font-size: 20px; 8266 font-weight: bold; 8267 margin-bottom: 10px; 8268`,oH=j(KV=(qV=class extends V.Component{constructor(...e){super(...e),QV(this,`hide`,JV,this),QV(this,`userGroupId`,YV,this),QV(this,`userAgreedToTerms`,XV,this),QV(this,`userAgreedToEmail`,ZV,this),this.onClick=(e,t)=>{this[e]=t;let n={};n[e]=t,e===`userAgreedToEmail`&&(this.userAgreedToEmail=!0),e===`userAgreedToTerms`&&(this.userAgreedToTerms=!0),U.AppUI.userGroupStore.update({ids:{userGroupId:U.AppUI.user.currentUserGroup?.id},data:n},U.AppUI.loadUser)}}get showModal(){let e=U.AppUI.routeStore.routeName.startsWith(`onboarding`);return!this.hide&&!e&&!U.AppUI.siteIsDefault&&this.missingTerms}get missingTerms(){let e=!U.AppUI.site?.enableMailerlite&&!this.userAgreedToEmail;return U.AppUI.userIsLoaded&&(!this.userAgreedToTerms||e)}componentDidUpdate(){this.missingTerms||(this.hide=!0),this.userGroupId!==U.AppUI.user.currentUserGroup?.id&&(this.userGroupId=U.AppUI.user.currentUserGroup?.id,this.userAgreedToTerms=U.AppUI.user.currentUserGroup?.userAgreedToTerms,this.userAgreedToEmail=(0,W.isPresent)(U.AppUI.user.currentUserGroup?.userAgreedToEmail)&&U.AppUI.user.currentUserGroup?.userAgreedToEmail!==`unset`)}
8268render(){if(this.showModal){let e=U.AppUI.site.safeTermsOfServiceUrl,t=U.AppUI.site.safePrivacyUrl,n=!!(e||t);return(0,K.jsxs)(Dn,{width:U.AppUI.layout.isMobile?`90%`:`500px`,height:`fit-content`,alignItems:`center`,justifyContent:`center`,children:[this.userAgreedToTerms&&!this.userAgreedToEmail&&!U.AppUI.site.enableMailerlite&&(0,K.jsxs)(eH,{children:[(0,K.jsx)(aH,{children:`Stay Up to Date`}),(0,K.jsx)(rH,{children:`We'd like to send you updates about your membership, new content, and marketing offers for related products. You can unsubscribe anytime!`}),(0,K.jsxs)(nH,{children:[(0,K.jsxs)(tH,{background:q.Theme.red,color:`#FFF`,onClick:()=>this.onClick(`userAgreedToEmail`,!1),width:`300px`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`,style:{marginRight:`5px`}}),`Don't Send Me Emails`]}),(0,K.jsxs)(tH,{background:q.Theme.green,color:`#FFF`,onClick:()=>this.onClick(`userAgreedToEmail`,!0),width:`300px`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`,style:{marginRight:`5px`}}),`Send Me Emails`]})]})]}),!this.userAgreedToTerms&&(0,K.jsxs)(eH,{children:[(0,K.jsx)(aH,{children:`Privacy and Terms of Service`}),(0,K.jsxs)(iH,{children:[(0,K.jsx)(`span`,{children:`By continuing, I agree to the `}),n&&(0,K.jsxs)(K.Fragment,{children:[e&&(0,K.jsx)(`a`,{className:`underline`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:`Terms`}),e&&t&&(0,K.jsx)(`span`,{children:` & `}),t&&(0,K.jsx)(`a`,{className:`underline`,href:t,target:`_blank`,rel:`noopener noreferrer`,children:`Privacy Policy`}),(0,K.jsx)(`span`,{children:` of Easy Languages GmbH, and the `})]}),(0,K.jsx)(`a`,{className:`underline`,href:`https://www.seedlang.com/terms`,target:`_blank`,rel:`noopener noreferrer`,children:`Terms`}),(0,K.jsx)(`span`,{children:` & `}),(0,K.jsx)(`a`,{className:`underline`,href:`https://www.seedlang.com/privacy`,target:`_blank`,rel:`noopener noreferrer`,children:`Privacy Policy`}),(0,K.jsx)(`span`,{children:` of the learning platform Seedlang.`})]}),(0,K.jsx)(nH,{children:(0,K.jsxs)(tH,{background:U.AppUI.site.accentColor,color:`#FFF`,onClick:()=>this.onClick(`userAgreedToTerms`,!0),width:`300px`,margin:`0 5px 0 0`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`,style:{marginRight:`5px`}}),`I Agree To Terms`]})})]})]})}return(0,K.jsx)(`span`,{})}},JV=$V(qV.prototype,`hide`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),YV=$V(qV.prototype,`userGroupId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return U.AppUI.user.currentUserGroup?.id}}),XV=$V(qV.prototype,`userAgreedToTerms`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return U.AppUI.user.currentUserGroup?.userAgreedToTerms}}),ZV=$V(qV.prototype,`userAgreedToEmail`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,W.isPresent)(U.AppUI.user.currentUserGroup?.userAgreedToEmail)&&U.AppUI.user.currentUserGroup?.userAgreedToEmail!==`unset`}}),$V(qV.prototype,`showModal`,[E],Object.getOwnPropertyDescriptor(qV.prototype,`showModal`),qV.prototype),$V(qV.prototype,`missingTerms`,[E],Object.getOwnPropertyDescriptor(qV.prototype,`missingTerms`),qV.prototype),qV))||KV;D();var sH,cH,lH,uH;function dH(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function fH(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var pH=N.div` 8269 display: flex; 8270 flex-direction: column; 8271 gap: 16px; 8272 padding: 10px 10px 14px; 8273`,mH=N.div` 8274 font-size: 16px; 8275 line-height: 1.5; 8276 color: #333; 8277 text-align: center; 8278`,hH=N.a` 8279 color: ${q.Theme.blue}; 8280 font-size: 16px; 8281 text-decoration: underline; 8282`,gH=j(sH=(cH=class extends V.Component{constructor(...e){super(...e),dH(this,`saving`,lH,this),dH(this,`acceptedLocally`,uH,this),this.setPersistedLocalAcceptance=e=>{if(!(!this.localAcceptanceStorageKey||typeof window>`u`||!window.localStorage))try{e?window.localStorage.setItem(this.localAcceptanceStorageKey,`true`):window.localStorage.removeItem(this.localAcceptanceStorageKey)}catch{}},this.syncLocalAcceptanceState=()=>{if(!this.userGroupId){this.acceptedLocally&&=!1;return}if(U.AppUI.user.currentUserGroup?.userAgreedToTerms){this.setPersistedLocalAcceptance(!1),this.acceptedLocally&&=!1;return}this.persistedLocalAcceptance&&!this.acceptedLocally&&(this.acceptedLocally=!0,this.persistAcceptanceToServer())},this.persistAcceptanceToServer=()=>{if(!this.userGroupId){this.saving=!1;return}U.AppUI.userGroupStore.update({ids:{userGroupId:this.userGroupId},data:{user_agreed_to_terms:!0},failureCallback:()=>{this.saving=!1}},()=>{U.AppUI.loadUser(null,{forceRefresh:!0,successCallback:()=>{this.saving=!1},failureCallback:()=>{this.saving=!1}})})},this.onAccept=()=>{this.saving||!this.userGroupId||(this.acceptedLocally=!0,this.setPersistedLocalAcceptance(!0),this.saving=!0,this.persistAcceptanceToServer())}}componentDidMount(){this.syncLocalAcceptanceState()}componentDidUpdate(){this.syncLocalAcceptanceState()}get userGroupId(){return U.AppUI.user.currentUserGroup?.id}get localAcceptanceStorageKey(){return this.userGroupId?`updated-terms-accepted:${this.userGroupId}`:null}get persistedLocalAcceptance(){if(!this.localAcceptanceStorageKey||typeof window>`u`||!window.localStorage)return!1;try{return window.localStorage.getItem(this.localAcceptanceStorageKey)===`true`}catch{return!1}}get showModal(){let e=U.AppUI.routeStore.routeName;return U.AppUI.siteIsDefault&&!U.AppUI.user.signedOut&&!!U.AppUI.user.currentUserGroup?.id&&[`home`,`reviews.home`].includes(e)&&!this.acceptedLocally&&!U.AppUI.user.currentUserGroup?.userAgreedToTerms}render(){return this.showModal?(0,K.jsx)(Dn,{width:U.AppUI.layout.isMobile?`90%`:`440px`,height:`fit-content`,top:`120px`,modalBackgroun
8282d:`rgba(0, 0, 0, 0.85)`,title:`Terms of Service Updated`,gradient:!0,children:(0,K.jsxs)(pH,{children:[(0,K.jsxs)(mH,{children:[`We've made updates to our `,(0,K.jsx)(hH,{href:`/terms`,target:`_blank`,rel:`noopener noreferrer`,children:`Terms of Service`}),`. Please review and accept the new terms to continue using the website.`]}),(0,K.jsx)(I,{onClick:this.onAccept,disabled:this.saving,width:`100%`,height:`50px`,borderRadius:`50px`,background:q.Theme.blue,backgroundOnHover:q.Theme.blue,backgroundOnActive:q.Theme.blue,scaleOnHover:1,children:this.saving?`Saving...`:`Accept Terms of Service`})]})}):(0,K.jsx)(`span`,{})}},lH=fH(cH.prototype,`saving`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uH=fH(cH.prototype,`acceptedLocally`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fH(cH.prototype,`showModal`,[E],Object.getOwnPropertyDescriptor(cH.prototype,`showModal`),cH.prototype),cH))||sH,_H,vH=N.div` 8283 background: ${e=>e.background||`#716f6f`}; 8284 width: ${e=>e.width||`50px`}; 8285 height: ${e=>e.height||`50px`}; 8286 display: inline-flex; 8287 align-items: center; 8288 justify-content: center; 8289 border-radius: 100px; 8290 color: white; 8291 font-weight: bold; 8292 position: ${e=>e.position}; 8293 box-shadow: ${e=>e.boxShadow}; 8294 top: ${e=>e.top}; 8295 bottom: ${e=>e.bottom}; 8296 right: ${e=>e.right}; 8297 left: ${e=>e.left}; 8298 font-size: ${e=>e.fontSize||`30px`}; 8299 cursor: pointer; 8300 z-index: 999; 8301`,yH=j(_H=class extends V.Component{render(){return(0,K.jsx)(vH,{className:`back-to-top-button`,position:this.props.floating?`fixed`:`auto`,boxShadow:this.props.floating?`rgba(0, 0, 0, 0.32) 2px 2px 4px 2px`:null,width:this.props.width,height:this.props.height,top:(0,W.pixify)(this.props.top),bottom:(0,W.pixify)(this.props.bottom),left:(0,W.pixify)(this.props.left),right:(0,W.pixify)(this.props.right),background:this.props.background,onClick:this.props.onClick,fontSize:this.props.fontSize,children:this.props.children})}})||_H,bH,xH=j(bH=class extends V.Component{render(){return(0,K.jsx)(yH,{...this.props,children:(0,K.jsx)(`i`,{className:`fa fa-angle-double-up`})})}})||bH,SH=`"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif`;function CH(){let e=document.createElement(`canvas`);e.width=e.height=1;let t=e.getContext(`2d`,{willReadFrequently:!0});return t.textBaseline=`top`,t.font=`100px ${SH}`,t.scale(.01,.01),t}function wH(e,t,n){return e.clearRect(0,0,100,100),e.fillStyle=n,e.fillText(t,0,0),e.getImageData(0,0,1,1).data.join(`,`)}function TH(e){let t=CH(),n=wH(t,e,`#fff`),r=wH(t,e,`#000`);return r===n&&!r.startsWith(`0,0,0,`)}function EH(e=`Twemoji Country Flags`,t=`https://cdn.jsdelivr.net/npm/[email protected]/dist/TwemojiCountryFlags.woff2`){if(typeof window<`u`&&TH(`ð`)&&!TH(`ð¨ð`)){let n=document.createElement(`style`);return n.textContent=`@font-face { 8302 font-family: "${e}"; 8303 unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, 8304 U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; 8305 src: url('${t}') format('woff2'); 8306 font-display: swap; 8307 }`,document.head.appendChild(n),!0}return!1}var DH,OH=N.div` 8308 background: #FFF; 8309 border-radius: 10px; 8310 padding: 20px; 8311 margin: ${e=>e.margin}; 8312 position: relative; 8313 8314 a { 8315 text-decoration: underline; 8316 } 8317`,kH=N.div` 8318 position: absolute; 8319 top: 10px; 8320 right: 0px; 8321 svg { 8322 fill: #333; 8323 width: 16px; 8324 } 8325`,AH=N.div` 8326 display: flex; 8327 justify-content: center; 8328 a { 8329 color: #FFF; 8330 } 8331`,jH=j(DH=class extends V.Component{render(){return this.props.hide?null:(0,K.jsxs)(OH,{margin:U.AppUI.layout.isMobile?`10px 10px 0 10px`:`10px 0`,children:[this.props.bannerNotice.dismissible&&(0,K.jsx)(kH,{onClick:this.props.onHide,children:(0,K.jsx)(J.CloseIcon,{})}),(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.props.bannerNotice.text}}),(0,W.isPresent)(this.props.bannerNotice?.buttonText)&&(0,W.isPresent)(this.props.bannerNotice?.url)&&(0,K.jsx)(AH,{children:(0,K.jsx)(I,{background:U.AppUI.site.accentColor,scaleOnHover:1.01,scaleOnActive:.99,onClick:this.props.onButtonClick,children:this.props.bannerNotice?.buttonText})})]})}})||DH,MH=(0,Y.BannerNoticesShowWrapper)(jH),NH,PH=j(NH=class extends V.Component{render(){return(0,K.jsx)(K.Fragment,{children:this.props.bannerNotices?.map(e=>(0,K.jsx)(MH,{bannerNotice:e},e.id))})}})||NH,FH=(0,Y.BannerNoticesIndexWrapper)(PH),IH=t({mantineTheme:()=>RH}),LH=`Noto Sans, sans-serif`,RH={fontFamily:LH,headings:{fontFamily:LH},components:{Anchor:{defaultProps:{component:F}},Breadcrumbs:{styles:{root:{fontSize:`14px`},breadcrumb:{fontSize:`14px`},separator:{fontSize:`14px`}}},Badge:{defaultProps:{variant:`light`}},LoadingOverlay:{defaultProps:{overlayProps:{bg:`#FFF`,opacity:.5}}},Popover:{defaultProps:{hideDetached:!1}},Portal:{defaultProps:{reuseTargetNode:!1}},Text:{defaultProps:{component:`div`}},Title:{defaultProps:{component:`div`}}}};D(),w(),a();var zH,Q,BH,VH,HH,UH;function WH(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function GH(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var KH=[`help_center`,`faq_categories.show`,`faq_items.show`],qH=N.div` 8332 width: ${e=>e.width}; 8333 overflow: ${e=>e.overflow}; 8334 visibility: ${e=>e.visibility}; 8335 flex: 1; 8336 display: ${e=>e.display}; 8337 flex-direction: column; 8338 align-items: center; 8339 position: relative; 8340 min-height: 100vh; 8341 z-index: 99; 8342 .primary-page-onboarding { 8343 i { 8344 position: absolute; 8345 top: 8px; 8346 right: 8px; 8347 font-size: 20px; 8348 cursor: pointer; 8349 } 8350 } 8351 h2 { 8352 font-size: 26px;
8353 line-height: 26px; 8354 font-weight: bold; 8355 margin: 10px 0; 8356 color: #333; 8357 } 8358 h3 { 8359 font-size: 20px; 8360 line-height: 20px; 8361 font-weight: bold; 8362 margin: 10px 0; 8363 color: #333; 8364 } 8365 #appleid-signin { 8366 background: #FFF; 8367 border-radius: 50px; 8368 } 8369 #appleid-signin > div > div { 8370 padding: 4px; 8371 } 8372`,JH=N.div` 8373 max-width: ${e=>e.maxWidth}; 8374 padding: ${e=>e.padding}; 8375 overflow: ${e=>e.overflow}; 8376 width: 100%; 8377 flex: 1; 8378 -webkit-overflow-scrolling: touch; 8379 padding-bottom: ${e=>e.mobileFooterVisible?`50px`:null}; 8380 box-sizing: border-box; 8381 scrollbar-width: ${e=>e.isMobile?`none`:null}; 8382 &::-webkit-scrollbar { 8383 z-index: 99; 8384 display: ${e=>e.isMobile?`none`:null}; 8385 } 8386`,YH=N.div` 8387 position: fixed; 8388 bottom: 0; 8389 left: 0; 8390 width: 100%; 8391 height: 10px; 8392 color: white; 8393 font-size: 9px; 8394 background: #FF5252; 8395 text-align: center; 8396 line-height: 10px; 8397 font-weight: bold; 8398 z-index: 99; 8399 div { 8400 cursor: pointer; 8401 } 8402`,XH=N.div` 8403 top: 70px; 8404 height: fit-content; 8405 background: #AFD6E7; 8406 width: 100vw; 8407 position: relative; 8408 text-align: center; 8409 font-size: 14px; 8410 line-height: 18px; 8411 padding: 5px 10px; 8412 @media only screen and (max-width : 649px) { 8413 top: 0; 8414 } 8415`,ZH=j(zH=(Q=class extends V.Component{get adminPage(){return U.AppUI.routeStore.routeName?.match(`builder`)||U.AppUI.routeStore.routeName?.match(`creator`)}routeContainsString(e){return U.AppUI.routeStore.routeName&&e.map(e=>(0,W.isPresent)(U.AppUI.routeStore.routeName.match(e))).find(e=>e)}get currentRoutes(){return U.AppUI.routeStore.routes&&U.AppUI.routeStore.routes.length?U.AppUI.routeStore.routes:this.props.routes||[]}get currentRoute(){return(0,G.last)(this.currentRoutes)||{}}get currentRouteName(){return this.currentRoute.name||U.AppUI.routeStore.routeName}get deckRoute(){return U.AppUI.routeStore.routeName&&!U.AppUI.routeStore.routeName.match(`translator.decks_show`)&&(U.AppUI.routeStore.routeName.match(`decks.show`)||U.AppUI.routeStore.routeName.match(`decksWithOpponent.show`))}get hideHeader(){let e=this.currentRouteName||``;return this.deckRoute||e.match(`onboarding`)||e.match(`unpublished`)||q.Constants.HIDE_HEADER_ROUTES.includes(e)}get showFullWidth(){return this.loadingLayout||this.triviaHomeLoadingLayout||this.desktopLandingLayout||this.maintenanceLayout||this.currentRouteName===`survey`||this.showPageFullWidth}get loadingLayout(){return U.AppUI.loadingUser}get triviaHomeLoadingLayout(){return U.AppUI.routeStore.routeName===`trivia.home`&&!U.AppUI.userIsLoaded}get desktopLandingLayout(){return this.routeContainsString([`landing`])&&!U.AppUI.layout.isMobile}get maintenanceLayout(){return U.AppUI.routeStore.routeName===`maintenance`}get showPageFullWidth(){return this.currentRouteName===`page.show`&&U.AppUI.pageStore.showData?.fullWidth}get defaultSiteMobileHeaderLayout(){return this.useMobileHeader&&U.AppUI.siteIsDefault}get mainContainerPadding(){return this.loadingLayout||this.triviaHomeLoadingLayout||this.desktopLandingLayout||this.maintenanceLayout||this.defaultSiteMobileHeaderLayout||U.AppUI.layout.isMobile||this.hideHeader?null:`80px 10px 0 10px`}get mainContainerOverflow(){return this.pageScrollRoute?null:U.AppUI.layout.isMobile&&U.AppUI.siteIsDefault&&![`reviews.decks`,`reviews.home`,`reviews.archive`,`reviews.index`,`reviews.create`].includes(U.AppUI.routeStore.routeName)?`auto`:null}get pageScrollRoute(){return KH.includes(this.currentRouteName)}get wrapperOverflow(){return this.pageScrollRoute||U.AppUI.layout.isMobile&&q.Constants.HIDE_HEADER_ROUTES.indexOf(U.AppUI.routeStore.routeName)?null:`auto`}get hideFooter(){let e=this.currentRouteName||``;return this.deckRoute||e.match(`unpublished`)||U.AppUI.layout.isMobile&&U.AppUI.user.signedOut||q.Constants.HIDE_FOOTER_ROUTES.includes(e)||U.AppUI.layout.isMobile&&!U.AppUI.routeStore.routeName}get showMobileFooter(){return U.AppUI.siteIsDefault&&U.AppUI.layout.isMobile&&this.currentRouteName!==`onboarding`&&!this.hideFooter}get showLandingPage(){return!U.AppUI.user.signedIn&&U.AppUI.routeStore.routeName===`landing`}get landingRouteShouldRedirect(){return this.userIsLoaded&&this.currentRouteName===`landing`&&(U.AppUI.userIsSignedIn||!U.AppUI.siteIsDefault)}get whitelabelHomeRoute(){return this.homeRouteForSite(U.AppUI.site)||`worksheets.index`}get siteId(){return Ae.get(`site_id`)}constructor(e){super(e),WH(this,`showLocalhostBar`,BH,this),WH(this,`previousRouteName`,VH,this),WH(this,`userIsLoaded`,HH,this),WH(this,`showBackToTop`,UH,this),this.homeRouteForSite=e=>U.AppUI.userIsSignedIn?e?.signedInHomePageRoute||e?.signed_in_home_page_route:e?.signedOutHomePageRoute||e?.signed_out_home_page_route,this.redirectSignedOutFromProtectedRoute=()=>{let e=this.currentRouteName;!e||!U.AppUI.user.signedOut||(U.AppUI.isUnpublishedAccessBlocked&&![`onboarding`,`onboarding.sign_in`,`unpublished`,`access`,`onboarding.patreon`].includes(e)?U.AppUI.routeStore.routeToNamed(`unpublished`):!this.currentRoute.signedOutRoute&&U.AppUI.siteIsDefault&&U.AppUI.routeStore.routeToNamed(`landing`))},this.loadConditionalIncludes=async()=>{U.AppUI.siteIsDefault?(0,W.loadCss)(`https://cloud.typography.com/7576076/6235012/css/fonts.css`):await Promise.all([o(()=>Promise.resolve({}),__vite__mapDeps([0])),o(()=>Promise.resolve({}),__vite__mapDeps([1])),o(()=>Promise.resolve({}),__vite__mapDeps([2])),o(()=>Promise.resolve({}),__vite__mapDeps([3]))])},this.loadUser=()=>{U.AppUI.loadUser(this.afterLoadUser)},this.afterLoadUser=e=>{if(U.AppUI.setAuthUserStoreShowData(e),U.AppUI.routeStore.routeName===`landing`){let t=e?.site||U.AppUI.site;if(t?t.isDefault??t.is_default:U.AppUI.siteIsDefault)U.AppUI.userIsSignedIn&&U.AppUI.routeToHome();else{let e=this.homeRouteForSite(t);U.AppUI.routeStore.routeToNamed(e||`worksheets.index`)}}this.userIsLoaded=!0,this.redirectSignedOutFromProtectedRoute(),U.AppUI.siteIsDefault&&!(U.AppUI.routeStore.routeName.startsWith(`builder`)||U.AppUI.routeStore.routeName.startsWith(`creator`))&&(U.AppUI.loadReviewDecks(),U.TreeUI.loadTreesFromTargetLanguage(U.AppUI.targetLanguageId)),le({id:U.AppUI.user.id,email:U.AppUI.user.email}),U.AppUI.user.siteShowsMaintenancePage&&U.AppUI.routeStore.routeToNamed(`maintenance`),(0,W.isPresent)(U.AppUI.user.contractedModules)&&U.AppUI.updateContractedModulesAry(U.AppUI.user.contractedModules.split(`,`)),U.AppUI.siteIsDefault||this.loadWhitelabelFonts()},this.loadWhitelabelFonts=()=>{U.AppUI.user.site.headerFont&&document.body.style.setProperty(`--header-font`,U.AppUI.user.site.headerFont.replace(`header_`,``).replace(/_/g,` `)),U.AppUI.user.site.bodyFont&&document.body.style.setProperty(`--body-font`,U.AppUI.user.site.bodyFont.replace(`body_`,``).replace(/_/g,` `))},this.onScroll=()=>{if(U.AppUI.pageHasScrolled||U.AppUI.set(`pageHasScrolled`,!0),U.AppUI.routeStore.routeName===`stories.home`&&this.appRef.current){let e=this.appRef.current.scrollTop;U.AppUI.set(`contentTreeScrollPosition`,e)}if([`videos.index`,`podcast.index`,`worksheets.index`].includes(U.AppUI.routeStore.routeName)&&this.appRef.current){let e=this.appRef.current.scrollTop;U.AppUI.set(`worksheetGridScrollPosition`,e)}U.AppUI.layout.isMobile&&!U.AppUI.siteIsDefault&&window.scrollY>
8415U.AppUI.layout.viewportHeight?this.showBackToTop=!0:this.showBackToTop&&=!1},this.appRef=V.createRef(),(0,W.sentryInitializer)(),this.loadConditionalIncludes().catch(e=>{oe(e)}),this.loadUser(),!U.AppUI.siteIsDefault&&U.AppUI.layout.isMobile&&(document.body.style.height=`auto`,document.documentElement.style.height=`auto`,document.documentElement.style.overflow=`auto`),U.AppUI.layout.isNative||U.AppUI.soundEffectStore.loadAudio(),U.AppUI.detectDataSaver();let t=this.currentRouteName;if(t&&(U.AppUI.routeStore.setRouteName(t),this.previousRouteName=t),window.location.search.match(`clicked_mailing_id`)){let e=window.location.search.split(`?clicked_mailing_id=`);e[1]&&U.AppUI.campaignStore.trackClicked({ids:{campaignId:e[1]}},G.noop)}te(()=>{U.AppUI.targetLanguageId&&U.AppUI.targetLanguageId!==U.VocabUI.targetLanguageId&&U.VocabUI.onSetTargetLanguageId(U.AppUI.targetLanguageId)})}componentDidMount(){U.AppUI.layout.updateDimensions(),window.addEventListener(`scroll`,this.onScroll,!0),EH()}componentDidUpdate(){let e=this.currentRouteName;if(e&&e!==this.previousRouteName){this.previousRouteName=e,U.AppUI.set(`clickedLinkId`,null);let t=document.getElementsByClassName(`app`)[0],n=this.currentRoutes;if((e.match(`builder`)||e.match(`creator`))&&(!U.AppUI.userIsLoaded||!U.AppUI.user.anyAdmin))U.AppUI.routeStore.routeToNamed(`landing`);else if(!U.AppUI.siteIsDefault&&!(0,G.some)(n,`allowWhiteLabel`))U.AppUI.routeStore.routeToNamed(this.whitelabelHomeRoute);else if(U.AppUI.siteIsDefault&&(0,G.some)(n,`blockDefaultSite`)){window.location.assign(window.location.href.replace(`seedlang.com`,`members.easygerman.org`));return}t&&e===`stories.home`&&(0,W.isPresent)(U.AppUI.contentTreeScrollPosition)?t.scrollTop=U.AppUI.contentTreeScrollPosition:t&&[`videos.index`,`podcast.index`,`worksheets.index`].includes(e)?t.scrollTop=U.AppUI.worksheetGridScrollPosition:t&&(e===`memberships.index`||e===`nouns.trainer`||e===`vocab.home`)&&(t.scrollTop=0),U.AppUI.onNewRoute(),this.redirectSignedOutFromProtectedRoute()}}componentWillUnmount(){window.removeEventListener(`scroll`,this.onScroll)}get useMobileHeader(){return U.AppUI.layout.viewportWidth<730}get migrationBannerContent(){if(U.AppUI.siteIsDefault||this.hideHeader||!U.AppUI.site?.patreonClientId)return null;let{routeName:e}=U.AppUI.routeStore;if(!e||e.startsWith(`settings`))return null;let t=!!U.AppUI.user.currentGroupMembershipType,n=U.AppUI.user.currentUserGroup?.isPatreon,r=t&&!n;if(U.AppUI.isPaymentMigrationStartable&&!r)return{to:`onboarding.migration`,text:(0,K.jsxs)(K.Fragment,{children:[`You are currently subscribed via Patreon. To unlock all interactive features, please `,(0,K.jsx)(`u`,{children:`migrate your payment`}),` to our platform.`]})};if(U.AppUI.user.paymentMigration?.status===`waiting_for_patreon_cancellation`)return{to:`onboarding.migration`,text:(0,K.jsxs)(K.Fragment,{children:[`Thank you for migrating your payment method. â ï¸ Don't forget to `,(0,K.jsx)(`u`,{children:`cancel your subscription`}),` on Patreon to avoid being charged twice!`]})};if(!U.AppUI.site?.showPatreonSignInBanner)return null;let i=e===U.AppUI.site.signedOutHomePageRoute,a=e===`memberships.index`,o=i&&!U.AppUI.userIsSignedInAndNotGuest,s=a&&!U.AppUI.user.isMember;return o||s?{to:`onboarding.patreon`,text:(0,K.jsxs)(K.Fragment,{children:[`Already a member on Patreon? `,(0,K.jsx)(`u`,{children:`Sign In here`})]})}:null}renderContent(){if(!this.userIsLoaded||this.landingRouteShouldRedirect)return(0,K.jsx)(P,{});if(this.userIsLoaded)return(0,K.jsxs)(qH,{display:`flex`,ref:this.appRef,className:`app`,visibility:U.AppUI.loadingUser?`hidden`:`visible`,width:U.AppUI.layout.isMobile?v(U.AppUI.layout.viewportWidth):`100%`,overflow:this.wrapperOverflow,children:[U.AppUI.layout.isMobile&&!U.AppUI.siteIsDefault&&this.showBackToTop&&(0,K.jsx)(xH,{floating:!0,background:U.AppUI.site.accentColor,right:`5px`,bottom:`40px`,onClick:()=>U.AppUI.scrollToPageTop(`smooth`,`top`)}),(0,K.jsx)(oH,{}),(0,K.jsx)(gH,{}),(0,K.jsx)(`span`,{id:`top`}),(0,K.jsx)(QI,{children:(0,K.jsx)(vV,{})}),U.AppUI.siteIsDefault&&!this.useMobileHeader&&!this.hideHeader&&(0,K.jsx)($ne,{position:this.showLandingPage?`absolute`:`fixed`,background:this.showLandingPage?`transparent`:q.Theme.siteHeaderColor,currentRoute:this.currentRouteName,signedIn:U.AppUI.user.signedIn}),!U.AppUI.siteIsDefault&&!this.hideHeader&&(0,K.jsx)(q_,{position:U.AppUI.layout.isMobile?`static`:`fixed`,background:U.AppUI.user?.site?.headerBackgroun
8415dColor,currentRoute:this.currentRouteName,signedIn:U.AppUI.user.signedIn,navigationItems:U.AppUI.user?.site?.navigationItems,languageId:U.AppUI.user?.site?.languageId,logo:U.AppUI.user?.site?.image}),this.migrationBannerContent&&(0,K.jsx)(XH,{children:(0,K.jsx)(F,{to:this.migrationBannerContent.to,children:this.migrationBannerContent.text})}),U.AppUI.siteIsDefault&&this.useMobileHeader&&!this.hideHeader&&(0,K.jsx)(Av,{currentRoute:this.currentRouteName,signedIn:U.AppUI.user.signedIn}),(0,K.jsxs)(JH,{maxWidth:this.showFullWidth?null:`1180px`,padding:this.mainContainerPadding,overflow:this.mainContainerOverflow,mobileFooterVisible:this.showMobileFooter,isMobile:U.AppUI.layout.isMobile,children:[!this.deckRoute&&(0,K.jsx)(FH,{}),(0,K.jsx)(f,{})]}),this.showMobileFooter&&(0,K.jsx)(Lv,{currentRoute:this.currentRouteName,bgColor:`#fff`}),(!U.AppUI.layout.isMobile||!U.AppUI.site.isDefault)&&!this.hideFooter&&(0,K.jsx)(lv,{bgColor:U.AppUI.user?.site?.footerBackgroundColor}),[`localhost`,`ngrok`].some(e=>window.location.hostname.includes(e))&&this.showLocalhostBar&&(0,K.jsx)(YH,{onClick:()=>
8415this.showLocalhostBar=!1,children:(0,K.jsx)(`div`,{children:`localhost`})}),window.location.hostname===`localhost`&&(0,K.jsx)(xV,{}),(0,K.jsx)(GV,{})]})}render(){return(0,K.jsx)(Mo,{theme:RH,stylesTransform:rte,cssVariablesResolver:wo,children:(0,K.jsx)(Xee,{children:this.renderContent()})})}},BH=GH(Q.prototype,`showLocalhostBar`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),VH=GH(Q.prototype,`previousRouteName`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),HH=GH(Q.prototype,`userIsLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),UH=GH(Q.prototype,`showBackToTop`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),GH(Q.prototype,`adminPage`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`adminPage`),Q.prototype),GH(Q.prototype,`deckRoute`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`deckRoute`),Q.prototype),GH(Q.prototype,`hideHeader`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`hideHeader`),Q.prototype),GH(Q.prototype,`showFullWidth`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`showFullWidth`),Q.prototype),GH(Q.prototype,`loadingLayout`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`loadingLayout`),Q.prototype),GH(Q.prototype,`triviaHomeLoadingLayout`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`triviaHomeLoadingLayout`),Q.prototype),GH(Q.prototype,`desktopLandingLayout`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`desktopLandingLayout`),Q.prototype),GH(Q.prototype,`maintenanceLayout`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`maintenanceLayout`),Q.prototype),GH(Q.prototype,`showPageFullWidth`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`showPageFullWidth`),Q.prototype),GH(Q.prototype,`defaultSiteMobileHeaderLayout`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`defaultSiteMobileHeaderLayout`),Q.prototype),GH(Q.prototype,`mainContainerPadding`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`mainContainerPadding`),Q.prototype),GH(Q.prototype,`mainContainerOverflow`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`mainContainerOverflow`),Q.prototype),GH(Q.prototype,`pageScrollRoute`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`pageScrollRoute`),Q.prototype),GH(Q.prototype,`wrapperOverflow`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`wrapperOverflow`),Q.prototype),GH(Q.prototype,`hideFooter`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`hideFooter`),Q.prototype),GH(Q.prototype,`showMobileFooter`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`showMobileFooter`),Q.prototype),GH(Q.prototype,`showLandingPage`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`showLandingPage`),Q.prototype),GH(Q.prototype,`whitelabelHomeRoute`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`whitelabelHomeRoute`),Q.prototype),GH(Q.prototype,`siteId`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`siteId`),Q.prototype),GH(Q.prototype,`useMobileHeader`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`useMobileHeader`),Q.prototype),GH(Q.prototype,`migrationBannerContent`,[E],Object.getOwnPropertyDescriptor(Q.prototype,`migrationBannerContent`),Q.prototype),Q))||zH,QH,$H=N.div` 8416 display: flex; 8417 align-items: center; 8418 justify-content: center; 8419`,eU=N.div` 8420 z-index: 1; 8421 border-radius: 20px; 8422 margin: 80px 20px 20px; 8423 max-width: 500px; 8424 background: #FFF; 8425 padding: 40px; 8426 display: flex; 8427 flex-direction: column; 8428 align-items: center; 8429 justify-content: center; 8430 border: 5px solid #CCC; 8431 p { 8432 text-decoration: center; 8433 } 8434 8435`,tU=N.div` 8436 margin-top: 20px; 8437 width: 100%; 8438 max-width: 500px; 8439 display: flex; 8440 flex-direction: column; 8441 align-items: center; 8442 justify-content: center; 8443 z-index: 0; 8444`,nU=j(QH=class extends V.Component{constructor(...e){super(...e),this.onClickBecomeMember=()=>{U.AppUI.createEvent(`memrev - click become a member button`,Ul({source:`unpublished_home`,button_text:`Become a Member`,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,destination_url:U.AppUI.site.patreonMembershipPage})),window.open(U.AppUI.site.patreonMembershipPage,`_blank`,`noopener,noreferrer`)}}componentDidMount(){let e=new URLSearchParams(window.location.search).get(`allowUnpublishedAccess`);U.AppUI.setCookieValue(`allowUnpublishedAccess`,e)}render(){return(0,K.jsx)($H,{children:(0,K.jsxs)(eU,{children:[(0,K.jsx)(`p`,{children:`This website is currently under construction and will be live very soon.`}),(0,W.isPresent)(U.AppUI.site.patreonMembershipPage)&&(0,K.jsxs)(`p`,{children:[`If you're looking to become a member of `,U.AppUI.site.teamName,`, please check out our current Membership offers on Patreon.`]}),(0,K.jsxs)(tU,{children:[(0,W.isPresent)(U.AppUI.site.patreonMembershipPage)&&(0,K.jsx)(I,{margin:`0 0 10px 0`,width:`100%`,onClick:this.onClickBecomeMember,background:U.AppUI.site.accentColor,children:`Become a Member`}),(0,K.jsx)(F,{to:`onboarding.sign_in`,style:{width:`100%`},children:(0,K.jsx)(I,{margin:`0`,width:`100%`,background:U.AppUI.site.accentColor,children:`Early Access Sign-In`})})]})]})})}})||QH,rU,iU=N.div` 8445 display: flex; 8446 align-items: center; 8447 justify-content: center; 8448`,aU=N.div` 8449 z-index: 1; 8450 border-radius: 20px; 8451 margin: 80px 20px 20px; 8452 max-width: 500px; 8453 background: #FFF; 8454 padding: 40px; 8455 display: flex; 8456 flex-direction: column; 8457 align-items: center; 8458 justify-content: center; 8459 border: 5px solid #CCC; 8460 p { 8461 text-decoration: center; 8462 } 8463 8464`,oU=N.div` 8465 margin-top: 20px; 8466 width: 100%; 8467 max-width: 500px; 8468 display: flex; 8469 flex-direction: column; 8470 align-items: center; 8471 justify-content: center; 8472 z-index: 0; 8473`,sU=pf(j(rU=class extends V.Component{constructor(...e){super(...e),this.loadingState=new U.LoadingState,this.token=null}componentDidMount(){this.token=this.props.params.token,this.validateToken()}async validateToken(){this.loadingState.started();try{await H.EarlyAccessStore.validateTokenPromise(this.token),U.AppUI.setCookieValue(`early-access-token`,this.token),this.loadingState.succeeded()}catch(e){let t=e.failed&&e.message?e.message:`An error occurred while validating the link.`;this.loadingState.failed(t)}}render(){return(0,K.jsx)(iU,{children:(0,K.jsxs)(aU,{children:[this.loadingState.isLoading&&(0,K.jsx)(P,{background:U.AppUI.site.accentColor||q.Theme.blue}),this.loadingState.errorMessage&&(0,K.jsx)(R,{color:`red`,children:this.loadingState.errorMessage}),this.loadingState.isSuccess&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(R,{center:!0,children:[`Welcome to `,U.AppUI.site.teamName,`!`]}),(0,K.jsx)(R,{center:!0,children:`You now have early access to the site.`}),(0,K.jsx)(oU,{children:(0,K.jsx)(F,{to:`memberships.index`,style:{width:`100%`},children:(0,K.jsx)(I,{margin:`0`,width:`100%`,background:U.AppUI.site.accentColor,children:`Continue`})})})]})]})})}})||rU),cU,lU,uU=`linear-gradient(-134deg,#3BD7C5 0%,#0DAFF6 100%)`,dU=N.div` 8474 padding-bottom: 100px; 8475`,fU=N.div` 8476 margin: ${e=>e.margin}; 8477 width: 100%; 8478 display: flex; 8479 flex-direction: column; 8480 background: ${e=>e.background}; 8481 padding: 10px; 8482 align-items: center; 8483 height: 100px; 8484 justify-content: center; 8485`,pU=N.div` 8486 display: flex; 8487 align-items: center; 8488 justify-content: center; 8489`,mU=N(yM)` 8490 display: flex; 8491 flex-wrap: wrap; 8492 align-items: baseline; 8493 gap: 8px; 8494 a { 8495 color: inherit; 8496 text-decoration: underline; 8497 } 8498`,hU=N.div` 8499`,gU=N.div` 8500 display: flex; 8501 align-items: center; 8502 svg { 8503 margin-right: 4px; 8504 width: 16px; 8505 } 8506`,_U=M(j(cU=(lU=class extends V.Component{background(){return U.AppUI.siteIsDefault?uU:U.Ap
8506pUI.site.accentColor}render(){return this.context?this.props.currentRoute===`help_center`?(0,K.jsx)(yM,{children:`Help Center`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`nav`,{"aria-label":`Help Center breadcrumbs`,children:(0,K.jsxs)(mU,{contentGap:this.props.title?20:30,children:[(0,K.jsx)(F,{to:`help_center`,children:`Help Center`}),this.props.faqCategoryName&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),this.props.currentRoute===`faq_categories.show`?(0,K.jsx)(`span`,{"aria-current":`page`,children:this.props.faqCategoryName}):(0,K.jsx)(F,{to:{name:`faq_categories.show`,params:{faqCategoryId:this.props.faqCategoryId}},children:this.props.faqCategoryName})]})]})}),this.props.title&&(0,K.jsx)(yM,{children:this.props.title})]}):(0,K.jsxs)(fU,{margin:this.props.margin,background:this.background(),children:[(0,K.jsxs)(pU,{children:[this.props.currentRoute===`help_center`&&(0,K.jsx)(R,{color:`#FFF`,bold:!0,fontSize:`20px`,lineHeight:`24px`,children:`Help Center`}),this.props.currentRoute!==`help_center`&&(0,K.jsx)(F,{to:`help_center`,children:(0,K.jsx)(R,{color:`#FFF`,bold:!0,underline:!0,fontSize:`20px`,lineHeight:`24px`,children:`Help Center`})}),this.props.currentRoute!==`help_center`&&(0,K.jsx)(R,{color:`#FFF`,bold:!0,fontSize:`20px`,lineHeight:`24px`,children:`\xA0/\xA0`}),this.props.currentRoute===`faq_categories.show`&&this.props.faqCategoryName&&(0,K.jsx)(gU,{children:(0,K.jsx)(R,{color:`#FFF`,bold:!0,fontSize:`20px`,lineHeight:`24px`,children:this.props.faqCategoryName})}),this.props.currentRoute!==`faq_categories.show`&&this.props.faqCategoryName&&(0,K.jsx)(F,{to:{name:`faq_categories.show`,params:{faqCategoryId:this.props.faqCategoryId}},children:(0,K.jsx)(gU,{children:(0,K.jsx)(R,{color:`#FFF`,bold:!0,underline:!0,fontSize:`20px`,lineHeight:`24px`,children:this.props.faqCategoryName})})})]}),(0,K.jsx)(hU,{children:(0,K.jsx)(R,{bold:!0,fontSize:`28px`,lineHeight:`32px`,margin:`5px 0 0 0`,color:`#FFF`,children:this.props.title})})]})}},lU.contextType=vM,lU))||cU),vU,yU,bU=N.div` 8507 display: grid; 8508 grid-template-columns: 1fr 1fr; 8509 gap: 10px; 8510 @media (max-width: 800px) { 8511 grid-template-columns: 1fr; 8512 } 8513`,xU=N.div` 8514 background: #FFF; 8515 padding: ${e=>e.embedded?`20px 20px 20px 0`:`20px`}; 8516 height: 100%; 8517 display: flex; 8518 align-items: center; 8519 &:hover { 8520 background: whitesmoke; 8521 } 8522`,SU=N.div` 8523 display: flex; 8524 flex-direction: column; 8525 flex: 1; 8526 gap: 5px; 8527`,CU=N.div` 8528 width: 70px; 8529`,wU=N.div` 8530 height: 50px; 8531 width: 50px; 8532 border-radius: 50px; 8533 display: flex; 8534 align-items: center; 8535 justify-content: center; 8536 background: ${e=>e.background}; 8537 color: ${e=>e.color}; 8538 svg { 8539 fill: ${e=>e.color}; 8540 width: 24px; 8541 } 8542 svg [stroke]:not([stroke="none"]) { 8543 stroke: ${e=>e.color}; 8544 } 8545 .pencil-with-circle-icon { 8546 stroke: ${e=>e.color}; 8547 } 8548 .fa { 8549 color: ${e=>e.color}; 8550 } 8551 .bookmark-icon, .japanese-character-icon { 8552 svg { 8553 width: 20px; 8554 } 8555 } 8556`,TU=j(vU=(yU=class extends V.Component{render(){let{to:e,icon:t,title:n,description:r,mutedText:i,iconBackground:a=`#e8e8e8`,iconColor:o=`#333`}=this.props;return(0,K.jsx)(F,{to:e,children:(0,K.jsxs)(xU,{embedded:this.context,children:[(0,K.jsx)(CU,{children:(0,K.jsx)(wU,{background:a,color:o,children:t})}),(0,K.jsxs)(SU,{children:[(0,K.jsx)(R,{fontSize:`18px`,bold:!0,color:`#333`,children:n}),(0,K.jsx)(R,{fontSize:`14px`,color:`#333`,children:r}),i&&(0,K.jsx)(R,{fontSize:`12px`,color:`#999`,children:i})]})]})})}},yU.contextType=vM,yU))||vU,EU=t({default:()=>HU}),DU=[{value:``,label:``},{value:`bug`,label:`Bug`},{value:`small_improvement`,label:`Small improvement`},{value:`feature_request`,label:`Feature request`},{value:`something_else`,label:`Something else`}],OU=N.span` 8557 .fa { 8558 font-size: 20px; 8559 font-weight: bold; 8560 } 8561`,kU=40,AU=Te` 8562 0% { 8563 opacity: 0; 8564 transform: rotate(-28deg) scale(0.82); 8565 } 8566 55% { 8567 transform: rotate(10deg) scale(1.03); 8568 } 8569 78% { 8570 transform: rotate(-3deg) scale(1); 8571 } 8572 100% { 8573 opacity: 1; 8574 transform: rotate(0deg) scale(1); 8575 } 8576`,jU=Te` 8577 from { 8578 opacity: 0; 8579 transform: translateY(8px); 8580 } 8581 to { 8582 opacity: 1; 8583 transform: translateY(0); 8584 } 8585`,MU=N.div` 8586 display: flex; 8587 flex-direction: column; 8588 gap: ${kU}px; 8589 padding-top: ${kU}px; 8590`,NU=N.span` 8591 display: inline-block; 8592 animation: ${AU} 0.7s ease-out 0.15s forwards; 8593 8594 .fa { 8595 color: #51cf66; 8596 font-size: 72px; 8597 line-height: 1; 8598 } 8599`,PU=N.div` 8600 display: flex; 8601 flex-direction: column; 8602 align-items: center; 8603 gap: 12px; 8604 opacity: 0; 8605 animation: ${jU} 0.25s ease-out forwards; 8606`,FU=N.div` 8607 font-size: 38px; 8608 font-weight: 700; 8609 line-height: 1.1; 8610 text-align: center; 8611`,IU=N.div` 8612 font-size: 14px; 8613 line-height: 1.35; 8614 text-align: center; 8615 color: var(--mantine-color-dimmed); 8616`,LU=25,RU=N.span` 8617 display: inline-block; 8618 width: ${LU}px; 8619 height: ${LU}px; 8620 border-radius: 50%; 8621 background-color: #dee2e6; 8622`,zU=N.span` 8623 display: inline-block; 8624 width: ${LU}px; 8625 height: ${LU}px; 8626 border-radius: 50%; 8627 background-color: #4dabf7; 8628`,BU=N.div` 8629 display: flex; 8630 flex-direction: column; 8631 gap: 10px; 8632 width: 100%; 8633 max-width: 320px; 8634`,VU=N.div` 8635 width: 100%; 8636 8637 & > div { 8638 width: 100% !important; 8639 max-width: 100% !important; 8640 justify-content: space-between !important; 8641 } 8642`;function HU({showAdminsOnlyInfo:e}){let[t,n]=(0,V.useState)(!1),[r,i]=(0,V.useState)(!1),[a,o]=(0,V.useState)(0),[s,c]=(0,V.useState)(``),[l,u]=(0,V.useState)(0),[d,f]=(0,V.useState)(``),[p,m]=(0,V.useState)(``),[h,g]=(0,V.useState)(!1),_=s!==``&&l>0&&d.trim()!==``&&p.trim()!==``,v=e?`Contact Us (Admins Only)`:`Contact Us`,y=()=>{c(``),u(0),f(``),m(``)}
8642,b=()=>{n(!1),y()},x=()=>{i(!1)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(L,{pos:`fixed`,bottom:32,right:32,style:{zIndex:200},children:(0,K.jsx)(el,{label:v,withArrow:!1,position:`top-end`,children:(0,K.jsx)(Ko,{size:`xl`,variant:`filled`,onClick:()=>n(!0),children:(0,K.jsx)(OU,{children:(0,K.jsx)(Mn,{i:`comment-o`})})})})}),(0,K.jsx)(At,{opened:t,onClose:b,title:v,size:`lg`,children:(0,K.jsxs)(xn,{gap:`md`,children:[(0,K.jsx)(fn,{c:`dimmed`,size:`sm`,children:`We'd love to hear any feedback that you might have about using the membership platform! Your feedback will help us with planning new features and making improvements, and is very much appreciated.`}),(0,K.jsx)(xc,{label:`Type`,data:DU,value:s,onChange:e=>c(e.currentTarget.value)}),(0,K.jsxs)(BU,{children:[(0,K.jsx)(Ht.Label,{children:`How important is this to you?`}),(0,K.jsx)(VU,{children:(0,K.jsx)(Bc,{count:10,value:l,onChange:u,emptySymbol:(0,K.jsx)(RU,{}),fullSymbol:(0,K.jsx)(zU,{})})})]}),(0,K.jsx)(Sn,{label:`Subject`,value:d,onChange:e=>f(e.currentTarget.value)}),(0,K.jsx)(_c,{label:`Message`,rows:4,value:p,onChange:e=>m(e.currentTarget.value)}),(0,K.jsx)(_n,{fullWidth:!0,disabled:!_,loading:h,leftSection:(0,K.jsx)(Mn,{i:`paper-plane-o`}),onClick:()=>{!_||h||(g(!0),H.CreatorAdminFeedbackStore.create({data:{type:s,importance:l,subject:d.trim(),message:p.trim(),url:window.location.href},failureCallback:()=>g(!1)},e=>{g(!1),e?.success&&(n(!1),y(),o(e=>e+1),i(!0))}))},children:`Send`})]})}),(0,K.jsx)(At,{opened:r,onClose:x,title:`Success`,size:`lg`,children:(0,K.jsxs)(MU,{children:[(0,K.jsx)(yn,{children:(0,K.jsxs)(xn,{gap:`lg`,align:`center`,children:[(0,K.jsx)(NU,{children:(0,K.jsx)(Mn,{i:`check-circle`})}),(0,K.jsxs)(PU,{children:[(0,K.jsx)(FU,{children:`Thank you!`}),(0,K.jsx)(IU,{children:`We appreciate your feedback and will reach out if we have any questions.`})]})]})}),(0,K.jsx)(_n,{fullWidth:!0,onClick:x,children:`Close`})]},a)})]})}var UU,WU=N.div` 8643 background: white; 8644 border-radius: 5px; 8645 padding: 30px; 8646 text-align: center; 8647`,GU=N.div` 8648 margin-top: 40px; 8649 font-size: 14px; 8650 text-align: center; 8651`,KU=j(UU=class extends V.Component{constructor(...e){super(...e),this.icon=e=>U.AppUI.siteIsDefault?{grammar:(0,K.jsx)(J.PencilWithCircleIcon,{}),general:(0,K.jsx)(J.ClipboardIcon,{}),reviews:(0,K.jsx)(J.BookmarkIcon,{}),stories:(0,K.jsx)(J.TreeIcon,{}),trivia:(0,K.jsx)(J.QuestionIcon,{}),membership:(0,K.jsx)(J.SeedlangOutlineBoldIcon,{}),translator:(0,K.jsx)(J.JapaneseCharacterIcon,{}),vocab:(0,K.jsx)(J.SearchWordsIcon,{})}[e.slug]||(0,K.jsx)(J.TreeIcon,{}):e.icon?(0,K.jsx)(Mn,{i:e.icon,style:{fontSize:`22px`}}):null}render(){let e=(0,G.sortBy)(this.props.faqCategories.filter(e=>e.published||U.AppUI.user.admin),[`position`]),t=!U.AppUI.siteIsDefault&&U.AppUI.user?.isAdminForSite(U.AppUI.site?.id);return(0,K.jsxs)(dU,{children:[(0,K.jsx)(_U,{currentRoute:`help_center`,margin:`0 0 10px 0`}),this.props.showSpinner&&(0,K.jsx)(P,{}),!this.props.showSpinner&&this.props.loadFailed&&(0,K.jsxs)(WU,{children:[(0,K.jsx)(R,{fontSize:`16px`,lineHeight:`22px`,color:`#333`,margin:`0 0 15px 0`,children:`Sorry, we couldn't load the help articles.`}),(0,K.jsx)(I,{onClick:this.props.retryLoad,children:`Try Again`})]}),!this.props.showSpinner&&!this.props.loadFailed&&e.length===0&&(0,K.jsx)(WU,{children:(0,K.jsx)(R,{fontSize:`16px`,lineHeight:`22px`,color:`#333`,children:`There aren't any help articles yet.`})}),!this.props.loadFailed&&(0,K.jsx)(bU,{children:e.map(e=>(0,K.jsx)(TU,{to:{name:`faq_categories.show`,params:{faqCategoryId:e.id}},icon:this.icon(e),iconBackground:e.color||U.AppUI.site.accentColor,iconColor:`#FFF`,title:e.published?e.name:`${e.name} [Unpublished]`,description:e.description,mutedText:`${e.faqItemsCount||0} Article${e.faqItemsCount===1?``:`s`}`},e.id))}),!U.AppUI.siteIsDefault&&!this.props.loadFailed&&(0,K.jsx)(GU,{children:(0,K.jsx)(F,{to:`contact`,className:`underline`,children:`Contact Us`})}),t&&(0,K.jsx)(HU,{showAdminsOnlyInfo:!0})]})}})||UU,qU=(0,Y.HelpCenterWrapper)(KU),JU,YU=N.div` 8652 background: white; 8653 border-radius: 5px; 8654 padding: 30px; 8655 text-align: center; 8656`,XU=j(JU=class extends V.Component{render(){let e=(this.props.faqCategory?.faqItems||[]).filter(e=>U.AppUI.user.admin||e.published);return(0,K.jsxs)(dU,{children:[(0,K.jsx)(_U,{currentRoute:`faq_categories.show`,faqCategoryName:this.props.faqCategory.name,margin:`0 0 10px 0`}),this.props.isLoading&&(0,K.jsx)(P,{}),!this.props.isLoading&&this.props.loadFailed&&(0,K.jsxs)(YU,{children:[(0,K.jsx)(R,{margin:`0 0 15px 0`,children:`Sorry, we couldn't load the articles in this topic.`}),(0,K.jsx)(I,{onClick:this.props.retryLoad,children:`Try Again`})]}),!this.props.isLoading&&!this.props.loadFailed&&e.length===0&&(0,K.jsx)(YU,{children:(0,K.jsx)(R,{children:`There aren't any articles in this topic yet.`})}),!this.props.isLoading&&!this.props.loadFailed&&e.length>0&&(0,K.jsx)(bU,{children:e.map(e=>(0,K.jsx)(TU,{to:{name:`faq_items.show`,params:{faqCategoryId:this.props.faqCategory.id,faqItemId:e.id}},icon:(0,K.jsx)(Mn,{i:e.icon||`files-o`}),title:e.titleWithPublished,description:e.description},e.id))})]})}})||JU,ZU=pf((0,Y.FaqCategoryShowWrapper)(XU)),QU,$U,eW=N.div` 8657 background: #FFF; 8658 padding: ${e=>e.embedded?`0 20px 20px 0`:`20px`}; 8659`,tW=N.div` 8660 width: 100%; 8661 text-align: center; 8662 font-size: 12px; 8663 text-decoration: underline; 8664`,nW=N.div` 8665 padding: ${e=>e.embedded?`20px 20px 20px 0`:`20px`}; 8666 background: #FFF; 8667 margin-top: 10px; 8668`,rW=N.div` 8669 text-align: center; 8670`,iW=j(QU=($U=class extends V.Component{render(){return(0,K.jsxs)(dU,{children:[(0,K.jsx)(_U,{currentRoute:`faq_items.show`,title:this.props.faqItem.titleWithPublished,faqCategoryName:this.props.faqCategory?.name,faqCategoryId:this.props.params.faqCategoryId}),(0,K.jsxs)(eW,{embedded:this.context,children:[this.props.isLoading&&(0,K.jsx)(P,{}),!this.props.isLoading&&this.props.loadFailed&&(0,K.jsxs)(rW,{children:[(0,K.jsx)(`p`,{children:`Sorry, we couldn't load this help article.`}),(0,K.jsx)(I,{onClick:this.props.retryLoad,children:`Try Again`})]}),!this.props.loadFailed&&(0,W.isPresent)(this.props.faqItem)&&U.AppUI.siteIsDefault&&(0,K.jsx)($i,{removeTopMargin:this.context,markdown:this.props.faqItem.body||``}),!this.props.loadFailed&&(0,W.isPresent)(this.props.faqItem)&&!U.AppUI.siteIsDefault&&(0,K.jsx)(`div`,{className:`faq-item-content`,dangerouslySetInnerHTML:{__html:this.props.faqItem.body||``}})]}),(0,W.isPresent)(this.props.faqItem)&&(0,K.jsxs)(nW,{embedded:this.context,children:[(0,K.jsx)(LN,{namespace:this.props.faqItem.id,commentable:U.ForumUI.forumThread,commentableType:`ForumThread`,afterCreateComment:this.props.afterCreateComment,faqItemId:this.props.faqItem.id}),this.props.showSpinner&&(0,K.jsx)(P,{className:`blue`}),!this.props.showSpinner&&(0,K.jsx)(QP,{languageId:`DE`,showCommentCount:!0,indentation:20,user:U.AppUI.user,onCh
8670ange:this.props.afterEmbeddedCommentCreate,commentable:this.props.forumThread,commentableType:`ForumThread`,forumThreadId:this.props.forumThread?.id,commentMargin:`0`,margin:this.props.commentMargin,padding:`0`})]}),U.AppUI.user.admin&&(0,K.jsx)(tW,{children:(0,K.jsx)(F,{to:{name:U.AppUI.siteIsDefault?`builder.faq_items.edit`:`creator.faq_items.edit`,params:{faqCategoryId:this.props.params.faqCategoryId,faqItemId:this.props.params.faqItemId}},children:`Admin Link`})})]})}},$U.contextType=vM,$U))||QU,aW=pf((0,Y.FaqItemShowWrapper)(iW)),oW=[{route:`help_center`,label:`Help Center`},{route:`latest_decks`,label:`Deck History`},{route:`comment_history`,label:`Comment History`},{route:`blog`,label:`Blog`},{route:`partners`,label:`Partners`},{route:`privacy`,label:`Privacy`},{route:`terms`,label:`Terms`},{route:`contact`,label:`Contact Us`}],sW=N.div` 8671 display: flex; 8672 flex-direction: ${e=>e.isMobile?`column`:`row`}; 8673 align-items: flex-start; 8674 gap: 15px; 8675 width: 100%; 8676`,cW=N.div` 8677 flex: 1; 8678 min-width: 0; 8679 width: 100%; 8680 box-sizing: border-box; 8681 padding: ${e=>e.isMobile?`10px`:`30px`}; 8682 border-radius: ${e=>e.isMobile?0:`10px`}; 8683 background: white; 8684`,lW=N.div` 8685 width: 100%; 8686 padding: 20px 15px; 8687 box-sizing: border-box; 8688`,uW=j(()=>{let e=g(),t=(0,V.useContext)(Re),n=U.AppUI.layout.isMobile,r=!n||!e,i=U.AppUI.routeStore.routeName,a={...t};[...oW.map(e=>e.route),`faq_categories.show`,`faq_items.show`].forEach(e=>{a[e]=t[`more.${e}`]});let o=(0,K.jsx)(iL,{width:n?`100%`:`250px`,borderRadius:n?`14px`:`10px`,isMobile:n,children:oW.map(e=>(0,K.jsx)(eL,{to:`more.${e.route}`,selected:i===`more.${e.route}`||e.route===`help_center`&&(i===`more`||i?.startsWith(`more.faq_`)),children:e.label},e.route))});return(0,K.jsxs)(sW,{isMobile:n,children:[n&&(0,K.jsx)(lL,{title:e?`Back to More`:`More`,onBack:()=>U.AppUI.routeStore.routeToNamed(e?`more`:`profile`)}),(!n||e)&&(0,K.jsx)(cW,{isMobile:n,children:(0,K.jsx)(Re.Provider,{value:a,children:(0,K.jsx)(vM.Provider,{value:!0,children:e||(0,K.jsx)(qU,{})})})}),r&&(n?(0,K.jsxs)(lW,{children:[(0,K.jsx)(aL,{embeddedMobile:!0}),o]}):o)]})}),dW={BookmarkOutlineIcon:J.BookmarkOutlineIcon,CompassIcon:J.CompassIcon,CubeIcon:J.CubeIcon,HandshakeIcon:J.HandshakeIcon,JigsawIcon:J.JigsawIcon,NumbersOutlineIcon:J.NumbersOutlineIcon,PluralOutlineIcon:J.PluralOutlineIcon},fW=N.div` 8689 width: 64px; 8690 height: 64px; 8691 flex-shrink: 0; 8692 margin-right: 15px; 8693 border-radius: 8px; 8694 overflow: hidden; 8695 display: flex; 8696 align-items: center; 8697 justify-content: center; 8698 background: ${e=>e.background}; 8699 color: #fff; 8700 font-size: 28px; 8701 svg { 8702 width: 36px; 8703 height: 36px; 8704 fill: #fff; 8705 } 8706 img { 8707 width: 100%; 8708 height: 100%; 8709 object-fit: cover; 8710 } 8711`,pW=({deck:e})=>{let t=e.thumbnail,n=dW[t.iconName];return(0,K.jsx)(fW,{background:t.background,"aria-hidden":`true`,children:t.imageUrl?(0,K.jsx)(`img`,{src:t.imageUrl,alt:``}):t.text||(0,K.jsx)(n,{})})},mW,hW=N(F)` 8712 display: flex; 8713 align-items: flex-start; 8714 padding: 15px 15px 15px 0; 8715 color: #333; 8716 background: transparent; 8717 transition: background-color 120ms ease; 8718 & + & { 8719 border-top: 1px solid #e5e5e5; 8720 } 8721 &:hover { 8722 background: #f7f7f7; 8723 } 8724`,gW=N.div` 8725 flex: 1; 8726 min-width: 0; 8727`,_W=N.div` 8728 display: flex; 8729 flex-wrap: wrap; 8730 justify-content: space-between; 8731 gap: 8px; 8732 margin-bottom: 10px; 8733`,vW=N.div` 8734 font-weight: bold; 8735`,yW=N.div` 8736 color: #777; 8737 font-size: 13px; 8738 margin-top: 4px; 8739`,bW=N.div` 8740 color: ${e=>e.finished?q.Theme.green:`#777`}; 8741 font-weight: bold; 8742 font-size: 13px; 8743`,Iye=N.div` 8744 display: flex; 8745 align-items: center; 8746 gap: 10px; 8747 font-size: 13px; 8748 color: #777; 8749`,Lye=N.div` 8750 flex: 1; 8751`,Rye=j(mW=class extends V.Component{render(){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(yM,{contentGap:15,children:`Deck History`}),this.props.loadFailed?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{children:`Sorry, we couldn't load your latest decks.`}),(0,K.jsx)(I,{onClick:this.props.onReload,children:`Try Again`})]}):(0,K.jsxs)(K.Fragment,{children:[this.props.loading&&(0,K.jsx)(P,{}),this.props.showEmpty&&(0,K.jsx)(`p`,{children:`You have no recent decks.`}),this.props.rows.map(({userDeck:e,name:t,total:n,current:r,showProgress:i})=>(0,K.jsxs)(hW,{to:{name:`decks.show`,params:{deckId:e.deckId}},children:[(0,K.jsx)(pW,{deck:e.deck}),(0,K.jsxs)(gW,{children:[(0,K.jsxs)(_W,{showProgress:i,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(vW,{children:t}),(0,K.jsx)(yW,{children:e.updatedAt?.formattedDateWithYearAndTime||``})]}),i&&(0,K.jsx)(bW,{finished:e.finished,children:e.finished?`Finished`:`In progress`})]}),i&&(0,K.jsxs)(Iye,{children:[(0,K.jsx)(Lye,{children:(0,K.jsx)(Fn,{background:`#e8e8e8`,borderRadius:`5px`,current:r,height:`8px`,total:n})}),(0,K.jsxs)(`span`,{children:[r,` of `,n]})]})]})]},e.id)),this.props.showPaginator&&(0,K.jsx)(In,{store:this.props.store,queryStrings:{user_id:this.props.userId},onClickScrollToTop:!0,withSpinner:!0})]})]})}})||mW,zye=(0,Y.DeckHistoryWrapper)(Rye),Bye=N(F)` 8752 display: block; 8753 padding: 15px 15px 15px 0; 8754 color: #333; 8755 background: transparent; 8756 transition: background-color 120ms ease; 8757 & + & { 8758 border-top: 1px solid #e5e5e5; 8759 } 8760 &:hover { 8761 background: #f7f7f7; 8762 } 8763`,Vye=N.div` 8764 font-weight: bold; 8765 margin-bottom: 8px; 8766`,Hye=N.div` 8767 display: -webkit-box; 8768 -webkit-line-clamp: 3; 8769 -webkit-box-orient: vertical; 8770 overflow: hidden;
8771 overflow-wrap: anywhere; 8772 white-space: pre-wrap; 8773`,Uye=N.div` 8774 color: #777; 8775 font-size: 13px; 8776 margin-top: 8px; 8777`,Wye=(0,Y.CommentHistoryWrapper)(e=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(yM,{contentGap:15,children:`Comment History`}),e.loading&&(0,K.jsx)(P,{}),e.loadFailed?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{children:`Sorry, we couldn't load your comment history.`}),(0,K.jsx)(I,{onClick:()=>e.onLoadPage(e.page),children:`Try Again`})]}):(0,K.jsxs)(K.Fragment,{children:[e.loaded&&!e.loading&&!e.comments.length&&(0,K.jsx)(`p`,{children:`You haven't written any comments yet.`}),e.comments.map(e=>(0,K.jsxs)(Bye,{to:`/discussions/${e.forumId}/threads/${e.forumThreadId}#comment-${e.id}`,children:[(0,K.jsx)(Vye,{children:e.forumThreadTitle}),(0,K.jsx)(Hye,{children:e.text}),(0,K.jsx)(Uye,{children:e.createdAt?.formattedDateWithYearAndTime})]},e.id))]}),e.pagesCount>1&&(0,K.jsx)(In,{store:e.store,ids:{userId:e.userId},queryStrings:{history:!0},onClickScrollToTop:!0,withSpinner:!0})]})),xW,Gye=N.div` 8778 width: 100%; 8779`,Kye=N.div` 8780 width: 100%; 8781 padding: 10px 0 0 0; 8782`,qye=N.div` 8783 padding: ${z.lg}; 8784 background: #FFF; 8785 border-radius: 10px; 8786 border: 1px solid #dedede; 8787`,Jye=N.h3` 8788 margin: 0 0 10px 0; 8789`,Yye=N.p` 8790 margin: 0; 8791 font-size: 16px; 8792 line-height: 26px; 8793`,Xye=N.a` 8794 color: ${()=>U.AppUI.site.accentColor}; 8795 text-decoration: underline; 8796`,Zye=M(j(xW=class extends V.Component{render(){return(0,K.jsxs)(Gye,{children:[(0,K.jsx)(LM,{title:`Contact Us`,titleRoute:`contact`,margin:`0`}),(0,K.jsx)(Kye,{children:(0,K.jsxs)(qye,{children:[(0,K.jsx)(Jye,{children:`Questions about your membership or our platform?`}),(0,K.jsxs)(Yye,{children:[`The fastest way to reach us is through this contact form, but you can also email us at `,(0,K.jsx)(Xye,{href:`mailto:[email protected]`,children:`[email protected]`}),`. We usually reply within 48 hours.`]}),(0,K.jsx)(kM,{...this.props})]})})]})}})||xW),SW=({children:e,title:t,description:n,primary_button_label:r,primary_button_url:i,secondary_button_label:a,secondary_button_url:o,image_url:s})=>{let c=r&&i;return(0,K.jsxs)(vn,{withBorder:!0,radius:`md`,p:0,h:`100%`,children:[(0,K.jsx)(bn,{src:s,alt:t,fit:`cover`,h:192}),(0,K.jsxs)(xn,{flex:1,gap:`xs`,p:`lg`,mih:238,children:[(0,K.jsx)(Cn,{order:2,size:`lg`,children:t}),(0,K.jsx)(fn,{c:`dimmed`,size:`sm`,children:n}),e?(0,K.jsx)(L,{mt:`auto`,children:e}):c&&(0,K.jsxs)(un,{gap:`lg`,mt:`auto`,children:[(0,K.jsx)(I,{to:i,children:r}),c&&a&&o&&(0,K.jsx)(I,{to:o,background:`transparent`,backgroundOnActive:`transparent`,backgroundOnHover:`transparent`,color:`#868E96`,fontWeight:`normal`,height:`auto`,padding:0,scaleOnActive:1,style:{textDecoration:`underline`},children:a})]})]})]})},Qye=({title:e,description:t,image_url:n,events:r=[]})=>(0,K.jsx)(SW,{title:e,description:t,image_url:n,children:r.length===0?(0,K.jsx)(yn,{mih:100,children:(0,K.jsx)(fn,{c:`dimmed`,children:`There are no upcoming events`})}):(0,K.jsx)(xn,{gap:0,children:r.map((e,t)=>(0,K.jsxs)(L,{children:[(0,K.jsxs)(un,{justify:`space-between`,align:`center`,wrap:`nowrap`,py:`xs`,children:[(0,K.jsxs)(xn,{gap:0,children:[(0,K.jsx)(fn,{fw:700,size:`sm`,children:e.title}
8796),(0,K.jsx)(fn,{c:`dimmed`,size:`sm`,children:e.subtitle})]}),e.button_label&&e.button_url&&(0,K.jsx)(I,{to:e.button_url,background:`transparent`,backgroundOnActive:`transparent`,backgroundOnHover:`transparent`,color:`#1A1B1E`,fontSize:`14px`,height:`auto`,padding:0,scaleOnActive:1,style:{textDecoration:`underline`},children:e.button_label})]}),t<r.length-1&&(0,K.jsx)(Ys,{})]},`${e.title}-${e.subtitle}`))})}),CW=[{foreground:`#2F8F3E`,background:`#D9F0DC`},{foreground:`#5B53D6`,background:`#E6E6FA`},{foreground:`#C9791B`,background:`#FBE6CF`}],wW=5,TW=328,EW=600*1e3,$ye=3600*1e3,ebe=10*1e3,tbe=1440*60*1e3,DW=e=>e.toLocaleTimeString(void 0,{hour:`numeric`,minute:`2-digit`}),OW=e=>Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),nbe=(e,t)=>{let n=new Date(t),r=(OW(e)-OW(n))/(1440*60*1e3);return r===0?`Available at ${DW(e)}`:r===1?`Available tomorrow`:r<=6?`Available ${e.toLocaleDateString(`en-US`,{weekday:`long`})}`:`Available ${e.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`})}`},kW=e=>{let t=new Date(e),n=t.toLocaleDateString(`en-US`,{month:`short`}).toUpperCase(),r=t.toLocaleDateString(`en-US`,{day:`numeric`}),i=t.toLocaleDateString(`en-US`,{weekday:`short`}),a=t.toLocaleDateString(`en-US`,{weekday:`long`}),o=DW(t);return{month:n,day:r,subtitle:`${i} · ${o}`,fullSubtitle:`${a}, ${o} (your time)`}},rbe=({conversationCalls:e})=>(0,K.jsx)(xn,{gap:0,children:e.map((t,n)=>{let r=CW[n%CW.length],i=kW(t.date);return(0,K.jsxs)(L,{children:[(0,K.jsxs)(un,{gap:`md`,py:8,wrap:`nowrap`,children:[(0,K.jsxs)(xn,{align:`center`,bg:r.background,gap:2,h:48,justify:`center`,w:42,style:{borderRadius:`var(--mantine-radius-md)`,flexShrink:0},children:[(0,K.jsx)(fn,{c:r.foreground,fw:700,fz:10,lh:1,children:i.month}),(0,K.jsx)(fn,{c:r.foreground,fw:700,size:`sm`,lh:1,children:i.day})]}),(0,K.jsxs)(xn,{gap:0,children:[(0,K.jsx)(fn,{fw:700,size:`sm`,children:t.title}),(0,K.jsx)(fn,{c:`dimmed`,size:`xs`,children:i.subtitle})]})]}),n<e.length-1&&(0,K.jsx)(Ys,{})]},`${t.date}-${t.title}`)})}),ibe=({accentColor:e=`#2E8629`,conversationCalls:t=[],currentTime:n=Date.now(),isSmallScreen:r=!1,showAll:i=!1,onShowAll:a,onShowLess:o})=>{if(t.length===0)return null;let s=t[0],c=s&&kW(s.date),l=s&&new Date(s.date).getTime(),u=s&&new Date(l-EW),d=s.accessStatus?.hasAccess!==!1,f=l-n>EW,p=!s.url||f,m=f?nbe(u,n):`Join Call`,h=l<n,g=t.slice(1),_=(0,K.jsx)(rbe,{conversationCalls:i?g:g.slice(0,wW)}),v=i&&r,y=i&&!r,b=g.length>wW&&(!i||r);return(0,K.jsx)(vn,{withBorder:!0,radius:`md`,p:0,children:(0,K.jsxs)(dl,{cols:{base:1,sm:2},spacing:0,children:[(0,K.jsxs)(xn,{bg:lo(e,.9),p:`xl`,mih:450,children:[(0,K.jsxs)(un,{gap:`xs`,children:[(0,K.jsx)(L,{bg:e,w:8,h:8,style:{borderRadius:`50%`}}),(0,K.jsx)(fn,{c:e,fw:700,size:`xs`,children:h?`ONGOING CONVERSATION CALL`:`NEXT CONVERSATION CALL`})]}),(0,K.jsx)(Cn,{order:2,size:`xl`,children:s?.title}),(0,K.jsx)(fn,{c:`dimmed`,size:`sm`,children:c?.fullSubtitle}),(0,K.jsx)(un,{mt:`auto`,children:d?(0,K.jsx)(I,{to:p?void 0:s.url,background:e,backgroundOnActive:e,backgroundOnHover:e,disabled:p,rel:p?void 0:`noopener noreferrer`,style:p?{background:`var(--mantine-color-gray-6)`}:void 0,target:p?void 0:`_blank`,children:m}):(0,K.jsx)(ql,{margin:`0`,reason:s.accessStatus.reason})})]}),(0,K.jsxs)(xn,{gap:`xs`,h:r?`auto`:450,mih:450,p:`xl`,style:{borderLeft:`1px solid var(--mantine-color-gray-3)`},children:[(0,K.jsx)(fn,{fw:700,children:`Upcoming calls`}),y?(0,K.jsx)(wt,{h:TW,offsetScrollbars:!0,scrollbarSize:8,style:{flexShrink:0},type:`always`,children:_}):(0,K.jsx)(L,{h:v?`auto`:TW,style:{overflow:v?`visible`:`hidden`,flexShrink:0},children:_}),b&&(0,K.jsx)(un,{justify:`flex-end`,mt:`auto`,children:(0,K.jsxs)(I,{onClick:i?o:a,background:`transparent`,backgroundOnActive:`transparent`,backgroundOnHover:`transparent`,color:`var(--mantine-color-dark-9)`,fontSize:`12px`,height:`auto`,iconMarginRight:0,padding:0,scaleOnActive:1,children:[i?`Show less`:`Show all`,(0,K.jsx)(Mn,{i:i?`arrow-up`:`arrow-down`,style:{marginLeft:`6px`}})]})})]})]})})},abe=e=>{let{conversationCalls:t,onConversationCallsRefresh:n}=e,r=Tt(`(max-width: 47.99em)`),[i,a]=(0,V.useState)(!1),[o,s]=(0,V.useState)(Date.now()),c=t?.[0]?.date&&new Date(t[0].date).getTime(),l=c-EW,u=c+$ye,d=u;return u<=o&&n&&(d=o+ebe),(0,V.useEffect)(()=>{let e=new Date(o);e.setHours(24,0,0,0);let t=[l,c,d,c>o?e.getTime():void 0].filter(e=>e>o).sort((e,t)=>
8796e-t)[0];if(!t)return;let r=Math.min(t-o+100,tbe),i=window.setTimeout(()=>{let e=Date.now();s(e),[l,d].includes(t)&&e>=t&&n?.()},r);return()=>window.clearTimeout(i)},[d,o,l,c,n]),(0,K.jsx)(ibe,{...e,currentTime:o,isSmallScreen:r,showAll:i,onShowAll:()=>a(!0),onShowLess:()=>a(!1)})},obe=({accentColor:e,title:t,description:n,conversationCalls:r=[],cards:i=[],eventsCardImageUrl:a,eventsCardTitle:o,eventsCardDescription:s,communityEvents:c=[],onConversationCallsRefresh:l})=>(0,K.jsx)(cn,{bg:`white`,radius:`lg`,p:`lg`,children:(0,K.jsxs)(xn,{gap:`md`,children:[(0,K.jsxs)(xn,{gap:4,children:[(0,K.jsx)(Cn,{order:1,size:`h2`,children:t}),(0,K.jsx)(fn,{c:`dimmed`,size:`sm`,children:n})]}),(0,K.jsxs)(lc,{children:[r.length>0&&(0,K.jsx)(lc.Col,{span:12,children:(0,K.jsx)(abe,{accentColor:e,conversationCalls:r,onConversationCallsRefresh:l})}),i.map(e=>(0,K.jsx)(lc.Col,{span:{base:12,sm:6},children:(0,K.jsx)(SW,{...e})},e.primary_button_url||e.title)),(0,K.jsx)(lc.Col,{span:{base:12,sm:6},children:(0,K.jsx)(Qye,{title:o,description:s,image_url:a,events:c})})]})]})});function AW({options:e,value:t,onChange:n}){return e.length===0?null:(0,K.jsx)(cn,{p:`sm`,mb:`sm`,withBorder:!0,children:(0,K.jsxs)(un,{gap:`sm`,align:`center`,children:[(0,K.jsx)(fn,{fw:600,children:`View as`}),(0,K.jsx)(nl,{"aria-label":`View as`,data:e.map(({value:e,label:t})=>({value:e,label:t})),value:t,onChange:n,allowDeselect:!1,searchable:!0,style:{flex:1,maxWidth:320}})]})})}D();var jW,MW;function NW(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var sbe=`signed_out`,PW=`signed_in_without_membership`,cbe=j(jW=(MW=class extends V.Component{constructor(e){super(e),this.abortRequest=e=>{this[e]?.abort&&this[e].abort(),this[e]=null},this.abortAudienceRequests=()=>{this.abortRequest(`communityEventRequest`),this.abortRequest(`communityPageCardRequest`),this.abortRequest(`conversationCallRequest`)},this.reloadStore=(e,t,n)=>{this.abortRequest(t);let r,i=n=>{this[t]===r&&(this[t]=null,e.afterGetIndex(n))};r=n?e.reloadIndexFiltered({queryStrings:n,callback:i}):e.reloadIndex(i),this[t]=r},this.refreshConversationCalls=()=>{let e=this.state.viewAs?{view_as:this.state.viewAs}:null;this.reloadStore(H.ConversationCallStore,`conversationCallRequest`,e)},this.handleViewAsChange=e=>{e&&this.setState({viewAs:e},()=>{let t={view_as:e};this.reloadStore(H.CommunityEventStore,`communityEventRequest`,t),this.reloadStore(H.CommunityPageCardStore,`communityPageCardRequest`,t),this.reloadStore(H.ConversationCallStore,`conversationCallRequest`,t)})},this.state={viewAs:null},H.CommunityPageConfigStore.clearShowData(),H.CommunityEventStore.clearIndexData(),H.CommunityPageCardStore.clearIndexData(),H.ConversationCallStore.clearIndexData(),U.AppUI.user?.anyAdmin&&H.MembershipTypeStore.getIndex(),H.CommunityPageConfigStore.getShow(),H.CommunityEventStore.getIndex({limit:1e3}),H.CommunityPageCardStore.getIndex({limit:1e3}),H.ConversationCallStore.getIndex({limit:1e3})}componentWillUnmount(){this.abortAudienceRequests(),H.CommunityPageConfigStore.clearShowData(),H.CommunityEventStore.clearIndexData(),H.CommunityPageCardStore.clearIndexData(),H.ConversationCallStore.clearIndexData()}get loading(){return H.CommunityPageConfigStore.hasOutstandingRequests||H.CommunityEventStore.hasOutstandingRequests||H.CommunityPageCardStore.hasOutstandingRequests||U.AppUI.user?.anyAdmin&&H.MembershipTypeStore.hasOutstandingRequests||H.ConversationCallStore.hasOutstandingRequests&&!H.ConversationCallStore.initialRequestReceived}get viewAsOptions(){return[{value:sbe,label:`Signed Out`},{value:PW,label:`Signed In without Membership`},...H.MembershipTypeStore.indexData.map(e=>({value:e.id,label:e.name}))]}get selectedViewAs(){return this.state.viewAs||U.AppUI.user.currentUserGroup?.membershipTypeId||PW}get conversationCalls(){return H.ConversationCallStore.indexData.slice().sort((e,t)=>
8796e.time?.date-t.time?.date).map(e=>({title:e.title,date:e.time?.date,url:e.url,accessStatus:e.accessStatus}))}get cards(){return H.CommunityPageCardStore.indexData.map(e=>({title:e.title,description:e.description,primary_button_label:e.primaryButtonLabel,primary_button_url:e.primaryButtonUrl,secondary_button_label:e.secondaryButtonLabel,secondary_button_url:e.secondaryButtonUrl,image_url:e.imageUrl}))}get communityEvents(){return H.CommunityEventStore.indexData.map(e=>({title:e.title,subtitle:e.description,button_label:e.membersButtonLabel||e.nonMembersButtonLabel,button_url:e.membersButtonUrl||e.nonMembersButtonUrl}))}render(){if(this.loading)return(0,K.jsx)(P,{});let e=H.CommunityPageConfigStore.showData;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(SV,{children:e.title}),U.AppUI.user?.anyAdmin&&H.MembershipTypeStore.initialRequestReceived&&(0,K.jsx)(AW,{options:this.viewAsOptions,value:this.selectedViewAs,onChange:this.handleViewAsChange}),(0,K.jsx)(obe,{accentColor:U.AppUI.site?.accentColor,title:e.title,description:e.subtitle,conversationCalls:this.conversationCalls,cards:this.cards,eventsCardImageUrl:e.eventsCardImage?.image?.url,eventsCardTitle:e.eventsCardTitle,eventsCardDescription:e.eventsCardDescription,communityEvents:this.communityEvents,onConversationCallsRefresh:this.refreshConversationCalls})]})}},NW(MW.prototype,`loading`,[E],Object.getOwnPropertyDescriptor(MW.prototype,`loading`),MW.prototype),NW(MW.prototype,`viewAsOptions`,[E],Object.getOwnPropertyDescriptor(MW.prototype,`viewAsOptions`),MW.prototype),NW(MW.prototype,`selectedViewAs`,[E],Object.getOwnPropertyDescriptor(MW.prototype,`selectedViewAs`),MW.prototype),NW(MW.prototype,`conversationCalls`,[E],Object.getOwnPropertyDescriptor(MW.prototype,`conversationCalls`),MW.prototype),NW(MW.prototype,`cards`,[E],Object.getOwnPropertyDescriptor(MW.prototype,`cards`),MW.prototype),NW(MW.prototype,`communityEvents`,[E],Object.getOwnPropertyDescriptor(MW.prototype,`communityEvents`),MW.prototype),MW))||jW;D();var FW,IW,LW,RW,zW;function BW(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function VW(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var lbe=N.div` 8797 display: flex; 8798 flex-direction: column; 8799 gap: ${z.md}; 8800 max-height: calc(100vh - 220px); 8801 overflow-y: auto; 8802 p { 8803 margin: 20px 0 0 0; 8804 } 8805 padding: 10px; 8806`,HW=N.div` 8807 display: flex; 8808 flex-direction: column; 8809 align-items: center; 8810 width: 100%; 8811 gap: ${e=>z[e.gap]}; 8812 8813 & > * { 8814 width: 100%; 8815 } 8816`,ube=N.button` 8817 background: none; 8818 border: none; 8819 color: ${q.Theme.darkestBlue}; 8820 text-decoration: underline; 8821 cursor: pointer; 8822 font-size: 16px; 8823`,dbe=N.div` 8824 display: flex; 8825 flex-direction: column; 8826 gap: ${z.sm}; 8827`,fbe=N.div` 8828 display: flex; 8829 align-items: center; 8830 gap: ${z.sm}; 8831`,pbe=N.strong` 8832 color: ${q.Theme.red}; 8833`,mbe=j(FW=(IW=class extends V.Component{constructor(...e){super(...e),BW(this,`showDeletionConfirmation`,LW,this),BW(this,`deletionSuccess`,RW,this),BW(this,`showDeletionSpinner`,zW,this),this.onDeleteUser=()=>{if(!this.props.allDeletionSitesSelected){this.props.displayDeletionSiteSelectionWarning();return}this.showDeletionSpinner=!0,U.AppUI.userStore.destroy({ids:{userId:U.AppUI.user.id}},this.afterDeleteUser)},this.afterDeleteUser=e=>{this.showDeletionConfirmation=!0,this.showDeletionSpinner=!1,this.deletionSuccess=e.success,this.deletionSuccess&&U.AppUI.signOut()}}
8833render(){let{onClose:e,activeStripeSubscriptionExists:t}=this.props;return(0,K.jsx)(Dn,{onCloseModal:e,width:`100%`,maxWidth:`500px`,title:`Delete Account`,background:q.Theme.red,contentBackground:`#FFF`,children:(0,K.jsxs)(lbe,{children:[!this.showDeletionConfirmation&&!this.showDeletionSpinner&&(0,K.jsxs)(K.Fragment,{children:[t?`Deleting your account is irreversible. To keep your progress and free features, you can cancel your membership instead and return anytime.`:`Permanently delete your user account and all of your data? This cannot be undone.`,this.props.otherSitesWarning&&(0,K.jsx)(`strong`,{children:`â ï¸ This will also delete your account on ${this.props.otherSitesWarning}.`}),this.props.deletionSiteSelectionRequired&&(0,K.jsx)(dbe,{children:this.props.deletionSites.map(e=>(0,K.jsxs)(fbe,{children:[(0,K.jsx)(jn,{value:this.props.selectedDeletionSiteIds.includes(e.id),onClick:()=>this.props.toggleDeletionSite(e.id)}),(0,K.jsx)(`span`,{children:`Delete my account on ${e.name}`})]},e.id))}),this.props.showDeletionSiteSelectionWarning&&(0,K.jsx)(pbe,{children:`Your account is shared across these websites, so it must be deleted from all of them.`}),(0,K.jsxs)(HW,{gap:`md`,children:[(0,K.jsxs)(HW,{gap:`sm`,children:[t&&(0,K.jsx)(F,{to:{name:`settings.billing`},children:(0,K.jsx)(I,{height:`50px`,borderRadius:`30px`,background:q.Theme.green,width:`100%`,children:`Manage Membership`})}),(0,K.jsx)(I,{onClick:this.onDeleteUser,background:this.props.allDeletionSitesSelected?q.Theme.red:`#CCC`,width:`100%`,height:`50px`,borderRadius:`30px`,cursor:this.props.allDeletionSitesSelected?`pointer`:`default`,ariaDisabled:!this.props.allDeletionSitesSelected,children:`Delete Account`})]}),(0,K.jsx)(ube,{onClick:e,children:`Cancel`})]})]}),this.showDeletionSpinner&&(0,K.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,K.jsx)(`div`,{children:`Your account is being deleted.`}),(0,K.jsx)(`div`,{children:`You will be signed out.`}),(0,K.jsx)(P,{background:U.AppUI.site.accentColor})]}),this.showDeletionConfirmation&&!this.deletionSuccess&&(0,K.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,K.jsx)(`div`,{children:`Your account will be deleted by our team within 72 hours.`}),(0,K.jsx)(`br`,{}),(0,K.jsx)(`div`,{children:`You can contact our support team if you have any questions.`}),(0,K.jsx)(F,{to:`contact`,children:(0,K.jsx)(I,{background:U.AppUI.siteIsDefault?q.Theme.blue:U.AppUI.site.accentColor,margin:`10px 0 0 0`,children:`Contact Us`})})]})]})})}},LW=VW(IW.prototype,`showDeletionConfirmation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),RW=VW(IW.prototype,`deletionSuccess`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zW=VW(IW.prototype,`showDeletionSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),IW))||FW,UW=(0,Y.AccountDeletionConfirmationWrapper)(mbe);D();var WW,GW,KW;function hbe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function gbe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _be=N.div` 8834 p { 8835 max-width: 500px; 8836 } 8837`,vbe=j(WW=(GW=class extends V.Component{constructor(...e){super(...e),hbe(this,`showConfirmDeleteModal`,KW,this)}render(){return(0,K.jsxs)(_be,{children:[this.showConfirmDeleteModal&&(0,K.jsx)(UW,{onClose:()=>this.showConfirmDeleteModal=!1,activeStripeSubscriptionExists:this.props.activeStripeSubscriptionExists}),(0,K.jsx)(`h3`,{children:`Seedlang Account and Data Deletion`}),U.AppUI.userIsSignedIn&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{children:`If you would like to delete your account and all of its associated data, please click the button below.`}
8837),(0,K.jsx)(Pn,{selectedBackground:q.Theme.red,margin:`10px 0 0 0`,onClick:()=>this.showConfirmDeleteModal=!0,children:`Delete Account`})]}),!U.AppUI.userIsSignedIn&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{children:`You must be signed in in order to delete your account. Please sign in to continue or contact [email protected] for assistance.`}),(0,K.jsx)(`p`,{children:`Once you have signed in, you will only need to click a button in order to delete your account and all of its associated data.`})]})]})}},KW=gbe(GW.prototype,`showConfirmDeleteModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),GW))||WW,qW,ybe=N.div` 8838`,bbe=M(j(qW=class extends V.Component{render(){return(0,K.jsxs)(ybe,{children:[(0,K.jsx)(R,{heading:`3`,margin:`0 0 20px 0`,children:`Deck Settings`}),(0,K.jsx)(sN,{hideTitle:!0,padding:`0px`,background:`#FFF`,color:`#000`,titleColor:`#333`})]})}})||qW);D();var JW,YW,XW;function xbe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Sbe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Cbe=N.div` 8839 8840`,wbe=N.div` 8841 display: flex; 8842 flex-direction: column; 8843 gap: ${z.md}; 8844 p { 8845 margin: 0; 8846 } 8847`,ZW=N.div` 8848 display: flex; 8849 flex-direction: column; 8850 align-items: center; 8851 width: 100%; 8852 gap: ${e=>z[e.gap]}; 8853 8854 & > * { 8855 width: 100%; 8856 } 8857`,Tbe=N.button` 8858 background: none; 8859 border: none; 8860 color: ${q.Theme.darkestBlue}; 8861 text-decoration: underline; 8862 cursor: pointer; 8863 font-size: 16px; 8864`,Ebe=N.div` 8865 display: flex; 8866 align-items: center; 8867 gap: 10px; 8868 cursor: pointer; 8869 padding: 6px 0; 8870 &:hover { 8871 opacity: 0.8; 8872 } 8873`,Dbe=N.div` 8874 margin-bottom: 20px; 8875`,Obe=j(JW=(YW=class extends V.Component{constructor(...e){super(...e),xbe(this,`showConfirmClearModal`,XW,this)}render(){return(0,K.jsxs)(Cbe,{children:[!!this.showConfirmClearModal&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showConfirmClearModal=!1,width:`100%`,maxWidth:`440px`,title:`Clear progress`,background:q.Theme.red,contentBackground:`#FFF`,children:(0,K.jsxs)(wbe,{children:[(0,K.jsx)(`p`,{children:`Are you sure you want to clear the selected progress?`}),(0,K.jsx)(`p`,{children:`This cannot be undone.`}),(0,K.jsxs)(ZW,{gap:`md`,children:[(0,K.jsx)(ZW,{gap:`sm`,children:(0,K.jsx)(I,{onClick:()=>{this.showConfirmClearModal=!1,this.props.clearProgress()},background:q.Theme.red,width:`100%`,height:`50px`,borderRadius:`30px`,children:`Clear progress`})}),(0,K.jsx)(Tbe,{type:`button`,onClick:()=>this.showConfirmClearModal=!1,children:`Cancel`})]})]})}),(0,K.jsx)(R,{heading:`3`,margin:`0 0 10px 0`,children:`Clear Progress`}),(0,K.jsx)(R,{margin:`0 0 20px 0`,children:this.props.introText}),this.props.message&&this.props.showMessage&&(0,K.jsx)(B,{textAlign:`center`,children:this.props.message}),this.props.showSpinner&&(0,K.jsx)(P,{margin:`20px 0`}),(0,K.jsx)(Dbe,{children:this.props.progressTypes.map(({type:e,label:t})=>(0,K.jsxs)(Ebe,{onClick:()=>this.props.toggleType(e),children:[(0,K.jsx)(jn,{value:this.props.selectedTypes[e]}),(0,K.jsx)(R,{children:t})]},e))}),this.props.selectedWarnings.map(e=>(0,K.jsx)(R,{color:q.Theme.red,margin:`0 0 5px 0`,children:e},e)),(0,K.jsx)(I,{background:q.Theme.red,disabled:!this.props.hasSelection,margin:`10px 0 0 0`,onClick:()=>this.showConfirmClearModal=!0,children:`Clear Selected Progress`})]})}},XW=Sbe(YW.prototype,`showConfirmClearModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),YW))||JW,kbe=(0,Y.SettingsClearProgressWrapper)(Obe),QW,Abe=N.div` 8876 8877`,$W=N.div` 8878 ${(0,X.flexCenterColumn)()} 8879 .crown-icon { 8880 svg { 8881 margin: 0 5px 0 0; 8882 } 8883 } 8884`,jbe=N.div` 8885 width: 100%; 8886`,Mbe=N.span` 8887 background: ${q.Theme.green}; 8888 color: white; 8889 font-weight: bold; 8890 padding: 2px 8px; 8891 font-size: 20px; 8892`,Nbe=N.div` 8893 display: flex; 8894 align-items: center; 8895 width: 100%; 8896`,Pbe=N.div` 8897 text-align: left; 8898 width: 100%; 8899 8900`,Fbe=j(QW=class extends V.Component{render(){return(0,K.jsxs)(Abe,{children:[(0,K.jsx)(`h3`,{children:`Streak Repair`}),this.props.showStreakUpdatedMessage&&(0,K.jsxs)(B,{width:`100%`,textAlign:`center`,children:[`Your streak
8900is updated and is now set to `,this.props.repairedStreakCount,` day`,this.props.repairedStreakCount===1?null:`s`,`.`]}),!U.AppUI.user.isMember&&(0,K.jsxs)($W,{children:[(0,K.jsx)(B,{textAlign:`center`,width:`100%`,borderRadius:`5px`,margin:`0 0 20px 0`,children:`This feature is only available to Seedlang Pros.`}),(0,K.jsx)(F,{to:`memberships.index`,children:(0,K.jsxs)(I,{children:[(0,K.jsx)(J.CrownIcon,{margin:`0 5px 0 0`}),`Become a Pro`]})})]}),U.AppUI.user.isMember&&(0,K.jsxs)($W,{children:[!U.AppUI.user.streakRepairIsAvailable&&(0,K.jsxs)(Pbe,{children:[(0,K.jsx)(`div`,{children:(0,K.jsx)(`b`,{children:`You will have another streak repair available next month.`})}),(0,K.jsxs)(`div`,{children:[`Your last streak repair: `,U.AppUI.user.lastStreakRepairedAt?.formattedDateWithYear]})]}),U.AppUI.user.streakRepairIsAvailable&&(0,K.jsxs)(jbe,{children:[(0,K.jsxs)(R,{lineHeight:`24px`,margin:`0 0 20px 0`,children:[`You have `,(0,K.jsx)(Mbe,{children:`1`}),` streak repair remaining this month.`]}),(0,K.jsx)(Nbe,{children:(0,K.jsx)(I,{onClick:this.props.onRepairStreak,children:`Repair Streak`})})]})]})]})}})||QW,Ibe=(0,Y.SettingsStreakRepairWrapper)(Fbe);D();var eG,tG;function Lbe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Rbe=N.div` 8901 display: flex; 8902 flex-direction: column; 8903 gap: ${z.lg}; 8904 align-items: start; 8905 img { 8906 border-radius: 50%; 8907 } 8908`,nG=j(eG=(tG=class extends V.Component{get user(){return this.props.user||U.AppUI.user}render(){return(0,K.jsxs)(Rbe,{children:[(0,K.jsxs)(An,{gap:`sm`,children:[(0,K.jsx)(R,{heading:`3`,children:`Change Profile Image`}),(0,K.jsx)(`small`,{children:`Image uploaded once selected â nothing more for you to do!`})]}),(0,K.jsx)(AL,{circle:!0,model:`images`,image:this.user.image,onChange:()=>U.AppUI.loadUser(),querystring:{imageable_id:this.user.id,imageable_type:`User`}})]})}},Lbe(tG.prototype,`user`,[E],Object.getOwnPropertyDescriptor(tG.prototype,`user`),tG.prototype),tG))||eG;D();var rG,iG,aG,oG,sG,cG,lG,uG;function dG(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function fG(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var zbe=N.div` 8909 label { 8910 font-weight: 300; 8911 font-size: 16px; 8912 } 8913 input[type="checkbox"] { 8914 width: 20px; 8915 } 8916 p { 8917 margin: 0 0 10px 0; 8918 font-size: 16px; 8919 } 8920`,Bbe=N.div` 8921 8922`,Vbe=M(j(rG=(iG=class extends V.Component{constructor(e){super(e),dG(this,`pristineBlockMailingByType`,aG,this),dG(this,`pristineBlockAllMailings`,oG,this),dG(this,`blockMailingByType`,sG,this),dG(this,`blockAllMailings`,cG,this),dG(this,`showMessage`,lG,this),dG(this,`userIsLoaded`,uG,this),this.toggleBlockMailingByType=e=>{this.blockMailingByType.includes(e)?this.blockMailingByType=this.blockMailingByType.filter(t=>t!==e):this.blockMailingByType.push(e)},this.onReset=()=>{this.blockMailingByType=this.pristineBlockMailingByType,this.blockAllMailings=this.pristineBlockAllMailings},this.onSubmit=()=>{if(U.AppUI.userIsSignedIn)U.AppUI.authUserStore.update({data:{block_mailing_by_type:this.blockMailingByTypeString,block_all_mailings:this.blockAllMailings}});else{let e=window.location.search.split(`=`)[1];e&&U.AppUI.userStore.getIndex({filters:{notification_token:e}},this.afterGetUsers)}this.pristineBlockMailingByType=this.blockMailingByType,this.pristineBlockAllMailings=this.blockAllMailings},this.afterGetUsers=e=>{let t=e[0].id;U.AppUI.userStore.update({ids:{userId:t},data:{block_mailing_by_type:this.blockMailingByTypeString,block_all_mailings:this.blockAllMailings}},this.afterUserUpdate)},this.afterUserUpdate=()=>{this.showMessage=!0},this.toggleBlockAllMailings=()=>{this.blockAllMailings=!this.blockAllMailings},this.disposer=te(()=>{U.AppUI.userIsLoaded&&!this.userIsLoaded&&(this.userIsLoaded=!0,this.pristineBlockMailingByType=(0,W.isPresent)(U.AppUI.user.blockMailingByType)?U.AppUI.user.blockMailingByType.split(`,`):[],this.pristineBlockAllMailings=U.AppUI.user.blockAllMailings,this.blockMailingByType=(0,W.isPresent)(U.AppUI.user.blockMailingByType)?U.AppUI.user.blockMailingByType.split(`,`):[],this.blockAllMailings=U.AppUI.user.blockAllMailings)}),H.CampaignTypeStore.getIndex({filters:{unsubscribable:!0}})}componentWillUnmount(){this.disposer&&this.disposer()}get pristineBlockMailingByTypeString(){return this.pristineBlockMailingByType&&ie(this.pristineBlockMailingByType).sort().join(`,`)}get blockMailingByTypeString(){return this.blockMailingByType&&ie(this.blockMailingByType).sort().join(`,`)}get dirtyForm(){return this.blockAllMailings!==this.pristineBlockAllMailings||this.pristineBlockMailingByTypeString!==this.blockMailingByTypeString}render(){return(0,K.jsxs)(zbe,{children:[this.showMessage&&(0,K.jsx)(B,{textAlign:`center`,width:`100%`,children:`Your email notification settings have been saved.`}),(0,K.jsx)(R,{heading:`3`,margin:`0 0 20px 0`,children:`Email Notifications`}),(0,K.jsx)(R,{fontSize:`14px`,children:`I would like to receive emails for`}),H.CampaignTypeStore.indexData.map(e=>(0,K.jsx)(`div`,{children:(0,K.jsx)(Zi,{allowUpdate:!0,id:e.id,onChange:()=>this.toggleBlockMailingByType(e.slug),value:!this.blockAllMailings&&this.blockMailingByType&&!this.blockMailingByType.includes(e.slug),disabled:this.blockAllMailings,children:e.name},e.id)},e.id)),(0,K.jsx)(`div`,{children:(0,K.jsx)(Zi,{allowUpdate:!0,onChange:this.toggleBlockAllMailings,value:this.blockAllMailings,children:`Block All Emails`})}),(0,K.jsxs)(Bbe,{children:[(0,K.jsxs)(I,{disabled:!this.dirtyForm,background:q.Theme.green,onClick:this.onSubmit,margin:`10px 2px 0 2px`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),`Submit`]}),!this.props.hideReset&&(0,K.jsxs)(I,{background:q.Theme.red,disabled:!this.dirtyForm,onClick:this.onReset,margin:`10px 2px 0 2px`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Reset`]})]})]})}},aG=fG(iG.prototype,`pristineBlockMailingByType`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),oG=fG(iG.prototype,`pristineBlockAllMailings`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sG=fG(iG.prototype,`blockMailingByType`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),cG=fG(iG.prototype,`blockAllMailings`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lG=fG(iG.prototype,`showMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uG=fG(iG.prototype,`userIsLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fG(iG.prototype,`pristineBlockMailingByTypeString`,[E],Object.getOwnPropertyDescriptor(iG.prototype,`pristineBlockMailingByTypeString`),iG.prototype),fG(iG.prototype,`blockMailingByTypeString`,[E],Object.getOwnPropertyDescriptor(iG.prototype,`blockMailingByTypeString`),iG.prototype),fG(iG.prototype,`dirtyForm`,[E],Object.getOwnPropertyDescriptor(iG.prototype,`dirtyForm`),iG.prototype),iG))||rG);function pG({opened:e,onClose:t,title:n,onConfirm:r,doubleConfirm:i=!1,bodyText:a,confirmLabel:o,cancelLabel:s,confirmColor:c=`red`}){let[l,u]=(0,V.useState)(0);return(0,V.useEffect)(()=>{e&&u(0)},[e]),(0,K.jsxs)(At,{opened:e,onClose:t,title:n,centered:!0,children:[(0,K.jsx)(yn,{py:`50px`,children:(0,K.jsx)(fn,{fw:700,children:i&&l===1?`Are you super-duper sure?`:a??`Are you sure?`})}),(0,K.jsxs)(un,{grow:!0,gap:`sm`,w:`100%`,wrap:`nowrap`,children:[(0,K.jsx)(_n,{fullWidth:!0,color:c,variant:`filled`,onClick:()=>
8922{if(!i){r(),t();return}if(l===0){u(1);return}r(),t()},children:i&&l===1?`Yes, 100%`:o??`Yes, I'm sure`}),(0,K.jsx)(_n,{fullWidth:!0,variant:`default`,onClick:()=>{t()},children:s??`No`})]})]})}D();var mG,hG,gG,_G,vG,yG,bG,xG,SG;function CG(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wG(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Hbe=N.div` 8923 display: flex; 8924 flex-direction: column; 8925 gap: ${z.md}; 8926 text-align: start; 8927`,Ube=N.div` 8928 display: grid; 8929 grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); 8930 gap: ${z.sm} 50px; 8931 align-items: center; 8932 8933 @media (max-width: 600px) { 8934 grid-template-columns: 1fr; 8935 } 8936`,Wbe=N.div` 8937 font-size: 15px; 8938 font-weight: bold; 8939`,Gbe=N.div` 8940 color: ${q.Theme.darkGray}; 8941 font-size: 13px; 8942 margin-top: 4px; 8943`,TG=({children:e,description:t,heading:n})=>(0,K.jsxs)(Ube,{children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(Wbe,{children:n}),t&&(0,K.jsx)(Gbe,{children:t})]}),e]}),Kbe=({accentColor:e=`#2e8629`,enableMailerlite:t,groupSubscribeConfirmOpened:n=!1,isLoading:r=!1,mailerliteGroups:i=[],onboarding:a,onCloseGroupSubscribeConfirm:o,onClosePlatformUnsubscribeConfirm:s,onConfirmGroupSubscribe:c,onConfirmPlatformUnsubscribe:l,onToggleGroupSelection:u,onTogglePlatformEmails:d,platformUnsubscribeConfirmOpened:f=!1,platformUnsubscribeGroupNames:p=[],platformEmailsSubscribed:m,selectedGroupIds:h=[],teamName:g})=>{let _=g?.replace(/^Easy /,``);return(0,K.jsxs)(Hbe,{children:[!a&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(SV,{children:`Email Preferences`}),(0,K.jsx)(R,{heading:`2`,children:`Email Preferences`})]}),(0,K.jsxs)(An,{alignItems:`stretch`,gap:`sm`,children:[(0,K.jsx)(TG,{heading:`Account-related emails`,description:`We'll always send essential emails about your account and membership such as password resets, billing, and important service notices.`,children:(0,K.jsx)(Sl,{"aria-label":`Account-related emails: Always on`,checked:!0,color:e,disabled:!0,label:`Always on`})}),(0,K.jsx)(TG,{heading:`Platform tips & emails`,description:m?`${g} sends you tips for using the platform and learning ${_}, plus its own offers.`:(0,K.jsxs)(K.Fragment,{children:[`By subscribing again, you agree to receive these emails.`,(0,K.jsx)(`br`,{}),`You can unsubscribe anytime.`]}),children:(0,K.jsx)(Sl,{"aria-label":`Platform tips & emails: ${m?`Subscribed`:`Unsubscribed`}`,checked:!!m,color:e,disabled:r,label:m?`Subscribed`:`Unsubscribed`,onChange:d})}),t&&i.filter(e=>e.exposeAsPreference).map(t=>{let n=h.includes(t.id);return(0,K.jsx)(TG,{heading:t.name,description:t.helperText&&(0,K.jsx)($i,{linkColor:e,markdown:t.helperText,removeTopMargin:!0}),children:(0,K.jsx)(Sl,{"aria-label":`${t.name}: ${n?`Subscribed`:`Unsubscribed`}`,checked:n,color:e,disabled:r,label:n?`Subscribed`:`Unsubscribed`,onChange:()=>u(t.id)})},t.id)})]}),(0,K.jsx)(pG,{bodyText:`This will also unsubscribe you from ${(0,W.niceJoin)(p)}.`,cancelLabel:`Cancel`,confirmLabel:`Unsubscribe`,onClose:s,onConfirm:l,opened:f,title:`Unsubscribe`}),(0,K.jsx)(pG,{bodyText:`This will also subscribe you to platform tips & emails.`,cancelLabel:`Cancel`,confirmColor:e,confirmLabel:`Subscribe`,onClose:o,onConfirm:c,opened:n,title:`Subscribe`})]})},qbe=M(j(mG=(hG=class extends V.Component{constructor(e){super(e),CG(this,`userAgreedToEmail`,gG,this),CG(this,`groupSubscribeConfirmOpened`,_G,this),CG(this,`mailerliteGroups`,vG,this),CG(this,`pendingGroupId`,yG,this),CG(this,`platformUnsubscribeConfirmOpened`,bG,this),CG(this,`platformUnsubscribeGroupNames`,xG,this),CG(this,`selectedGroupIds`,SG,this),this.showPreferenceUpdateError=()=>
8943{U.AppUI.serverStore.setUserFriendlyErrorMessage(`We could not update your email preferences. Please try again later.`),U.AppUI.loadUser()},this.updateEmailConfirmation=(e,t,n)=>{let r=!1,i=()=>{r||(r=!0,n&&n())};U.AppUI.userGroupStore.update({ids:{userGroupId:U.AppUI.user.currentUserGroup?.id},data:{user_agreed_to_email:e?`true`:`false`},failureCallback:i,onRequestError:i},n=>{if(!r){if(!n?.success){i();return}r=!0,this.userAgreedToEmail=e,U.AppUI.loadUser(),t&&t()}})},this.saveGroupSelection=(e,t,n)=>{let r=!1,i=()=>{r||(r=!0,n&&n())};U.AppUI.userGroupStore.updateMailerliteGroups({data:{group_ids:e},failureCallback:i,onRequestError:i},n=>{if(!r){if(!n?.success){i();return}r=!0,this.selectedGroupIds=e,t&&t()}})},this.requestPlatformEmailToggle=()=>{this.userAgreedToEmail&&this.selectedGroupIds.length>0?(this.platformUnsubscribeGroupNames=this.mailerliteGroups.filter(e=>this.selectedGroupIds.includes(e.id)).map(e=>e.name),this.platformUnsubscribeConfirmOpened=!0):this.updateEmailConfirmation(!this.userAgreedToEmail,null,this.showPreferenceUpdateError)},this.closePlatformUnsubscribeConfirm=()=>{this.platformUnsubscribeConfirmOpened=!1},this.confirmPlatformUnsubscribe=()=>{this.updateEmailConfirmation(!1,()=>{this.saveGroupSelection([],this.closePlatformUnsubscribeConfirm,()=>{this.selectedGroupIds=[],this.closePlatformUnsubscribeConfirm(),this.showPreferenceUpdateError()})},()=>{this.closePlatformUnsubscribeConfirm(),this.showPreferenceUpdateError()})},this.updateGroupSelection=e=>{this.saveGroupSelection((0,G.xor)(this.selectedGroupIds,[e]),null,this.showPreferenceUpdateError)},this.requestGroupSelectionToggle=e=>{let t=!this.selectedGroupIds.includes(e);!this.userAgreedToEmail&&t?(this.pendingGroupId=e,this.groupSubscribeConfirmOpened=!0):this.updateGroupSelection(e)},this.closeGroupSubscribeConfirm=()=>{this.groupSubscribeConfirmOpened=!1,this.pendingGroupId=null},this.confirmGroupSubscribe=()=>{let e=this.pendingGroupId,t=(0,G.xor)(this.selectedGroupIds,[e]),n=()=>{this.closeGroupSubscribeConfirm(),this.showPreferenceUpdateError()};this.updateEmailConfirmation(!0,()=>{this.saveGroupSelection(t,this.closeGroupSubscribeConfirm,()=>this.updateEmailConfirmation(!1,n,n))},n)},this.disposer=te(()=>{U.AppUI.userIsLoaded&&!this.userIsLoaded&&(this.userIsLoaded=!0,this.userAgreedToEmail=U.AppUI.user?.currentUserGroup?.userAgreedToEmail===`true`)})}componentDidMount(){U.AppUI.site.enableMailerlite&&U.AppUI.userGroupStore.getMailerliteGroups({},e=>{Array.isArray(e)?(this.mailerliteGroups=e,this.selectedGroupIds=e.filter(e=>e.selected).map(e=>e.id)):(this.mailerliteGroups=[],this.selectedGroupIds=[])})}componentWillUnmount(){this.disposer&&this.disposer()}render(){return(0,K.jsx)(Kbe,{accentColor:U.AppUI.site.accentColor,enableMailerlite:U.AppUI.site.enableMailerlite,groupSubscribeConfirmOpened:this.groupSubscribeConfirmOpened,isLoading:U.AppUI.userGroupStore.hasOutstandingRequests||U.AppUI.authUserStore.hasOutstandingRequests||U.AppUI.userRequestPending,mailerliteGroups:this.mailerliteGroups,onboarding:this.props.onboarding,onCloseGroupSubscribeConfirm:this.closeGroupSubscribeConfirm,onClosePlatformUnsubscribeConfirm:this.closePlatformUnsubscribeConfirm,onConfirmGroupSubscribe:this.confirmGroupSubscribe,onConfirmPlatformUnsubscribe:this.confirmPlatformUnsubscribe,onToggleGroupSelection:this.requestGroupSelectionToggle,onTogglePlatformEmails:this.requestPlatformEmailToggle,platformEmailsSubscribed:this.userAgreedToEmail,platformUnsubscribeConfirmOpened:this.platformUnsubscribeConfirmOpened,platformUnsubscribeGroupNames:this.platformUnsubscribeGroupNames,selectedGroupIds:this.selectedGroupIds,teamName:U.AppUI.site.teamName})}},gG=wG(hG.prototype,`userAgreedToEmail`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_G=wG(hG.prototype,`groupSubscribeConfirmOpened`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vG=wG(hG.prototype,`mailerliteGroups`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yG=wG(hG.prototype,`pendingGroupId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bG=wG(hG.prototype,`platformUnsubscribeConfirmOpened`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xG=wG(hG.prototype,`platformUnsubscribeGroupNames`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SG=wG(hG.prototype,`selectedGroupIds`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),hG))||mG),EG,DG=e=>{let t=e?.find(e=>e.isActive&&[`ios`,`android`].includes(e.paymentMethod));return t?.paymentMethod===`ios`?`iOS`:t?.paymentMethod===`android`?`Android`:null},OG=j(EG=class extends V.Component{get mobileDeviceText(){return U.AppUI.user?.signedOut?null:DG(this.props.userSubscriptions||U.AppUI.userSubscriptionStore.indexData)}render(){return this.mobileDeviceText?(0,K.jsxs)(B,{background:q.Theme.green,margin:`20p
8943x 0`,padding:`14px 18px`,textAlign:`center`,children:[`You currently have an active subscription on your `,this.mobileDeviceText,` device. Please continue managing your subscription there.`]}):null}})||EG,kG,Jbe=M(j(kG=class extends V.Component{render(){return(0,K.jsxs)(An,{gap:`sm`,children:[(0,K.jsx)(R,{heading:`3`,children:`Patreon Connection`}),(0,K.jsx)(nm,{showRemoveLink:!0})]})}})||kG);D();var AG,jG,MG,NG,PG,FG;function IG(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function LG(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Ybe=N.div` 8944 display: flex; 8945 flex-direction: column; 8946 gap: ${z.md}; 8947 padding: 10px; 8948 p { 8949 margin: 0; 8950 } 8951`,RG=N.label` 8952 font-weight: bold; 8953 font-size: 14px; 8954 display: block; 8955 margin-bottom: 3px; 8956`,zG=N.div` 8957 font-size: 16px; 8958`,Xbe=N.input` 8959 width: 100%; 8960 font-size: 16px; 8961 padding: 8px 10px; 8962 border: 1px solid #CCC; 8963 border-radius: 5px; 8964`,BG=N.div` 8965 display: flex; 8966 flex-direction: column; 8967 align-items: center; 8968 width: 100%; 8969 gap: ${z.sm}; 8970 8971 & > * { 8972 width: 100%; 8973 } 8974`,VG=N.button` 8975 background: none; 8976 border: none; 8977 color: #222; 8978 text-decoration: underline; 8979 cursor: pointer; 8980 font-size: 16px; 8981`,Zbe=N.div` 8982 color: ${q.Theme.red}; 8983 font-size: 14px; 8984`,Qbe=j(AG=(jG=class extends V.Component{constructor(...e){super(...e),IG(this,`step`,MG,this),IG(this,`name`,NG,this),IG(this,`submitting`,PG,this),IG(this,`error`,FG,this),this.onConfirmWithdrawal=()=>{if(this.submitting)return;this.error=null;let e=this.currentName.trim();if(e===``){this.error=`Please provide your name.`;return}this.submitting=!0,U.AppUI.subscriptionStore.withdraw({ids:{subscriptionId:this.props.subscription.id},data:{name:e}},this.afterWithdraw)},this.afterWithdraw=e=>{this.submitting=!1,e.success?(U.AppUI.createEvent(`memrev - request contract withdrawal`,Ul({subscription_id:this.props.subscription.id,membership_id:this.props.subscription.membership?.id})),this.step=`success`,this.props.onWithdrawn&&this.props.onWithdrawn()):this.error=e.error||`Something went wrong. Please try again or contact us by email.`}}get currentName(){return this.name===null?U.AppUI.user.name||``:this.name}render(){let{subscription:e,onClose:t}=this.props,n=e.membership?.title?.replace(/<[^>]*>/g,``);return(0,K.jsx)(Dn,{onCloseModal:this.submitting?null:t,width:`100%`,maxWidth:`500px`,title:`Withdraw from Contract`,background:q.Theme.red,contentBackground:`#FFF`,children:(0,K.jsxs)(Ybe,{children:[this.step===`explanation`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{children:`This is not a regular cancellation. By withdrawing, you revoke your membership contract entirely under your statutory 14-day right of withdrawal. Your payment will be refunded and your membership ends immediately. Your free account stays â only the paid membership is withdrawn.`}),(0,K.jsx)(`p`,{children:`If you only want to stop your membership from renewing, use "Cancel" instead.`}),(0,K.jsxs)(BG,{children:[(0,K.jsx)(I,{onClick:()=>this.step=`form`,background:q.Theme.red,width:`100%`,height:`50px`,borderRadius:`30px`,children:`Continue with Withdrawal`}),(0,K.jsx)(VG,{onClick:t,children:`Go back`})]})]}),this.step===`form`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{children:`Please confirm the details of your withdrawal declaration. A receipt confirmation will be sent to your account email.`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(RG,{htmlFor:`withdrawal-name`,children:`Name`}),(0,K.jsx)(Xbe,{id:`withdrawal-name`,type:`text`,value:this.currentName,onChange:e=>this.name=e.target.value})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(RG,{children:`Email`}),(0,K.jsx)(zG,{children:U.AppUI.user.email})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(RG,{children:`Membership plan`}),(0,K.jsx)(zG,{children:n})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(RG,{children:`Sign-up date`}),(0,K.jsx)(zG,{children:e.createdAt?.formattedDateWithYear})]}),this.error&&(0,K.jsx)(Zbe,{children:this.error}),(0,K.jsxs)(BG,{children:[(0,K.jsx)(I,{onClick:this.onConfirmWithdrawal,background:q.Theme.red,width:`100%`,height:`50px`,borderRadius:`30px`,children:this.submitting?(0,K.jsx)(P,{width:`50px`,height:`10px`,background:`#FFF`,margin:`0`}):`Confirm Withdrawal`}),!this.submitting&&(0,K.jsx)(VG,{onClick:t,children:`Go back`})]})]}),this.step===`success`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{children:`We have received your withdrawal declaration. Your membership has ended and your account continues as a free account.`}),(0,K.jsxs)(`p`,{children:[`A receipt confirmation has been sent to `,U.AppUI.user.email,`. We will process your withdrawal and any refund within 14 days.`]}),(0,K.jsx)(BG,{children:(0,K.jsx)(I,{onClick:t,background:U.AppUI.site.accentColor||q.Theme.blue,width:`100%`,height:`50px`,borderRadius:`30px`,children:`Close`})})]})]})})}},MG=LG(jG.prototype,`step`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`explanation`}}),NG=LG(jG.prototype,`name`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),PG=LG(jG.prototype,`submitting`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),FG=LG(jG.prototype,`error`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),jG))||AG;D();var HG,UG,WG,GG,KG;function qG(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function JG(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var $be=e=>e?.replace(/Member$/,`Membership`),YG=N.div` 8985 ${(0,X.flexLeftColumn)()}; 8986 align-items: stretch; 8987 gap: 20px; 8988`,exe=N.div` 8989 font-weight: bold; 8990`,txe=N.div` 8991 font-size: 14px; 8992`,nxe=N.span` 8993 color: red; 8994`,rxe=N.div` 8995 display: flex; 8996 justify-content: space-between; 8997 align-items: center; 8998 gap: 20px; 8999`,ixe=N.div` 9000 flex: 1; 9001`,axe=N.div` 9002 display: flex; 9003 column-gap: 20px; 9004 row-gap: 5px; 9005 @media (max-width: 1150px) { 9006 flex-direction: column; 9007 } 9008`,XG=N.button` 9009 color: ${q.Theme.darkestBlue}; 9010 cursor: pointer; 9011 text-decoration: underline; 9012 font-weight: inherit; 9013 background: none; 9014 border: none; 9015 padding: 0; 9016 font-size: inherit; 9017 &:hover { 9018 opacity: 0.8; 9019 } 9020`,ZG=({background:e})=>(0,K.jsx)(P,{width:`50px`,height:`10px`,background:e||`currentColor`,margin:`0`}),oxe=j(HG=(UG=class extends V.Component{constructor(...e){super(...e),qG(this,`paymentAndInvoicesPortalLoading`,WG,this),qG(this,`portalLoadingForSubscription`,GG,this),qG(this,`withdrawalSubscription`,KG,this),this.onManagePaymentMethod=async()=>{this.paymentAndInvoicesPortalLoading=!0;try{window.location.href=await U.AppUI.stripeStore.getCustomerPortalUrl({return_url:window.location.href})}catch{this.paymentAndInvoicesPortalLoading=!1}},this.onOpenSubscriptionPortal=async(e,t)=>{this.portalLoadingForSubscription=e.id;try{window.location.href=await U.AppUI.stripeStore.getCustomerPortalUrl({return_url:window.location.href,action_type:t,stripe_account:e.stripeAccount,stripe_customer_id:e.stripeCustomerId,stripe_subscription_id:e.stripeSubscriptionId})}catch{this.portalLoadingForSubscription=null}},this.onWithdrawn=()=>{this.withdrawalSubscription=null,U.AppUI.userSubscriptionStore.getIndex({},e=>{U.AppUI.userSubscriptionStore.afterGetIndex(e)}),U.AppUI.loadUser(null,{forceRefresh:!0})}}get hasTrialingSubscription(){return this.props.userSubscriptions?.some(e=>e.isTrialing)||!1}
9020shouldShowCancelButton(e){return!e.cancelAt&&(e.isActive||e.isTrialing)}get completedPaymentMigration(){return U.AppUI.user.paymentMigration?.status===`completed`}render(){return!U.AppUI.userIsLoaded||U.AppUI.userSubscriptionStore.hasOutstandingRequests?(0,K.jsxs)(YG,{children:[(0,K.jsx)(SV,{children:`Your Membership On Our Platform`}),(0,K.jsx)(R,{heading:`3`,children:`Your Membership On Our Platform`}),(0,K.jsx)(P,{})]}):(0,K.jsxs)(YG,{children:[(0,K.jsx)(SV,{children:`Your Membership On Our Platform`}),(0,K.jsx)(R,{heading:`2`,children:`Manage Membership`}),(0,K.jsx)(R,{heading:`3`,children:`Your Membership On Our Platform`}),!U.AppUI.user.isMember&&(0,K.jsx)(R,{bold:!0,children:`You don't have an active subscription.`}),U.AppUI.user.currentUserGroup?.freeMembership&&(0,K.jsxs)(`div`,{children:[`You currently have a free `,(0,K.jsx)(`strong`,{children:$be(U.AppUI.user.currentGroupMembershipType?.name)}),U.AppUI.user.currentUserGroup.freeMembershipUntil?.date?` until ${U.AppUI.user.currentUserGroup.freeMembershipUntil?.formattedDateWithYear}`:`.`]}),U.AppUI.user.isMember&&this.props.activeSubscription&&(0,K.jsx)(K.Fragment,{children:(0,W.isPresent)(this.props.subscriptionStatusText)&&(0,K.jsx)(R,{bold:!0,children:(0,K.jsxs)(An,{gap:`xs`,children:[this.props.subscriptionStatusText,(0,W.isPresent)(this.props.activeSubscription?.nextPhaseMembership?.title)&&(this.portalLoadingForSubscription===this.props.activeSubscription?.id?(0,K.jsx)(ZG,{background:q.Theme.darkestBlue}):(0,K.jsx)(XG,{onClick:()=>this.onOpenSubscriptionPortal(this.props.activeSubscription,`release`),children:`Cancel change`}))]})})}),this.props.userSubscriptions.filter(e=>e.isActive||e.isTrialing||e.pending).map(e=>(0,K.jsxs)(rxe,{children:[(0,K.jsxs)(ixe,{children:[(0,K.jsx)(exe,{children:e.membership?.title?.replace(/<[^>]*>/g,``)}),(0,K.jsxs)(txe,{children:[(0,W.isPresent)(e.trialEnd)&&e.trialEnd.isFuture?`Not charged until ${e.trialEnd.formattedDateWithYear}, then renews ${e.membership?.numberMonths===12?`yearly`:`monthly`}`:`${e.currentPeriodStart.formattedDateWithYear} - ${e.pending?`Pending`:e.currentPeriodEnd.formattedDateWithYear}`,e.cancelAt&&(0,K.jsx)(nxe,{children:` (Cancelled)`})]})]}),e.cancelAt&&e.paymentMethod===`stripe`&&!this.hasTrialingSubscription&&e.currentPeriodEnd?.isFuture&&(0,K.jsx)(I,{disabled:this.portalLoadingForSubscription===e.id,background:U.AppUI.site.accentColor||q.Theme.blue,onClick:()=>this.onOpenSubscriptionPortal(e,`reactivate`),minWidth:`125px`,children:this.portalLoadingForSubscription===e.id?(0,K.jsx)(ZG,{}):`Reactivate`}),this.shouldShowCancelButton(e)&&(0,K.jsx)(Pn,{disabled:this.portalLoadingForSubscription===e.id,selectedBackground:q.Theme.red,minWidth:`120px`,minHeight:`40px`,onClick:()=>this.onOpenSubscriptionPortal(e,`cancel`),children:this.portalLoadingForSubscription===e.id?(0,K.jsx)(ZG,{}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`i`,{className:`fa fa-times`,style:{marginRight:4,marginTop:2}}),`Cancel`]})})]},e.id)),(0,K.jsxs)(axe,{children:[!U.AppUI.isPaymentMigrationInProgress&&!U.AppUI.isPaymentMigrationStartable&&!this.props.activeSubscription?.oneTimePayment&&(0,K.jsx)(I,{to:`memberships.index`,background:U.AppUI.site.accentColor,children:`Update Your Membership Tier`}),this.props.userSubscriptions.some(e=>e.paymentMethod===`stripe`)&&(0,K.jsx)(I,{background:U.AppUI.site.accentColor||q.Theme.blue,onClick:this.onManagePaymentMethod,minWidth:`216px`,children:this.paymentAndInvoicesPortalLoading?(0,K.jsx)(ZG,{}):`Payment & Invoices`}),this.props.activeSubscription?.withdrawalEligible&&(0,K.jsx)(Pn,{selectedBackground:q.Theme.red,minWidth:`216px`,minHeight:`40px`,onClick:()=>this.withdrawalSubscription=this.props.activeSubscription,children:`Withdraw from Contract`})]}),U.AppUI.paymentMigrationEnabled&&(0,K.jsx)(nh,{hasActiveSubscription:this.props.activeSubscription?.membership}),U.AppUI.site.patreonClientId&&!this.props.activeSubscription?.membership&&!this.completedPaymentMigration&&(0,K.jsx)(Jbe,{}),this.withdrawalSubscription&&(0,K.jsx)(Qbe,{subscription:this.withdrawalSubscription,onClose:()=>this.withdrawalSubscription=null,onWithdrawn:this.onWithdrawn})]})}},WG=JG(UG.prototype,`paymentAndInvoicesPortalLoading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),GG=JG(UG.prototype,`portalLoadingForSubscription`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),KG=JG(UG.prototype,`withdrawalSubscription`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),JG(UG.prototype,`hasTrialingSubscription`,[E],Object.getOwnPropertyDescriptor(UG.prototype,`hasTrialingSubscription`),UG.prototype),JG(UG.prototype,`completedPaymentMigration`,[E],Object.getOwnPropertyDescriptor(UG.prototype,`completedPaymentMigration`),UG.prototype),UG))||HG,sxe=(0,Y.SettingsBillingWrapper)(oxe);D();var QG,$G,eK;function cxe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function tK(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var nK=5,lxe=N.div` 9021 ${(0,X.flexLeftColumn)()}; 9022 align-items: stretch; 9023 gap: 20px; 9024 9025 table { 9026 width: 100%; 9027 border-collapse: separate; 9028 border-spacing: 0; 9029 th { 9030 text-align: left; 9031 background: ${q.Theme.lightGray}; 9032 color: ${q.Theme.darkGray}; 9033 font-size: 13px; 9034 font-weight: 800; 9035 padding: 10px 14px; 9036 } 9037 td { 9038 font-size: 16px; 9039 font-family: inherit; 9040 line-height: 20px; 9041 padding: 14px; 9042 border-bottom: 1px solid ${q.Theme.lightGray}; 9043 i { 9044 margin-top: 4px; 9045 } 9046 &:first-of-type { 9047 width: 85%; 9048 } 9049 } 9050 th:last-of-type, 9051 td:last-of-type { 9052 text-align: right; 9053 white-space: nowrap; 9054 width: 15%; 9055 } 9056 } 9057`,rK=N.div` 9058 font-weight: bold; 9059`,iK=N.tr` 9060 td { 9061 transition: background-color 150ms ease; 9062 } 9063 9064 &[aria-current='true'] td { 9065 background: ${q.Theme.lightBlue}; 9066 } 9067 9068 &:hover td { 9069 background: #f7fafb; 9070 } 9071 9072 &[aria-current='true']:hover td { 9073 background: #cff3fb; 9074 } 9075`,aK=N.span` 9076 color: ${q.Theme.blue}; 9077 font-size: 12px; 9078 margin-left: 10px; 9079`,uxe=N(aK)` 9080 color: ${q.Theme.darkGray}; 9081`,oK=N.div` 9082 color: ${q.Theme.gray}; 9083 font-size: 14px; 9084 margin-top: 3px; 9085`,dxe=N.span` 9086 color: red; 9087`,fxe=N(aK)` 9088 color: ${q.Theme.red}; 9089`,pxe=N.div` 9090 border: 1px solid #D7D7D7; 9091 border-radius: 8px; 9092 box-sizing: border-box; 9093 overflow: hidden; 9094 9095 tbody tr:last-of-type td { 9096 border-bottom: none; 9097 } 9098`,mxe=j(QG=($G=class extends V.Component{constructor(...e){super(...e),cxe(this,`paymentPage`,eK,this)}get rows(){return(0,G.orderBy)((this.props.userSubscriptions||[]).flatMap(e=>{let t=e.payments||[];return!t.length&&e.pending&&e.paymentMethod===`paypal`&&!e.cancelAt&&!e.cancelledAt?.date&&!e.refunded?[{subscription:e,pending:!0,id:`pending-${e.id}`,date:e.createdAt?.date||e.currentPeriodStart?.date}]:t.map(t=>({payment:t,subscription:e,id:t.id,date:t.occurredAt?.date||t.createdAt?.date}))}),[e=>e.date?.getTime()||0,`id`],[`desc`,`desc`])}get currentPaymentPage(){return Math.min(this.paymentPage,Math.max(1,Math.ceil(this.rows.length/nK)))}get currentPayment(){return this.rows.find(({payment:e,subscription:t})=>e&&t.id===this.props.activeSubscription?.id&&!e.refunded&&e.billingPeriodStart?.isPast&&e.billingPeriodEnd?.isFuture)?.payment}get paginatedRows(){let e=(this.currentPaymentPage-1)*nK;return this.rows.slice(e,e+nK)}render(){return this.rows.length?(0,K.jsxs)(lxe,{children:[this.rows.length>0&&(0,K.jsx)(pxe,{children:(0,K.jsxs)(oa,{className:`credit-cards`,style:{border:`none`},children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`th`,{children:`Plan`}),(0,K.jsx)(`th`,{children:`Amount`})]})}),(0,K.jsx)(`tbody`,{children:this.paginatedRows.map(({payment:e,subscription:t,pending:n,id:r})=>{if(n)return(0,K.jsxs)(iK,{children:[(0,K.jsxs)(`td`,{children:[(0,K.jsxs)(rK,{children:[t.membership?.title?.replace(/<[^>]*>/g,``),(0,K.jsx)(uxe,{children:`Pending`})]}),(0,K.jsx)(oK,{children:(t.createdAt?.date?t.createdAt:t.currentPeriodStart)?.formattedDateWithYear}),(0,K.jsx)(oK,{children:`PayPal can take up to 24 hours to send the initial payment.`})]}),(0,K.jsx)(`td`,{children:`â`})]},r);let i=this.rows.find(e=>e.subscription.id===t.id)?.payment?.id===e.id,a=t.cancelAt?.date||t.cancelledAt?.date||t.stripeStatus===`canceled`,o=e.billingPeriodStart?.formattedDateWithYear,s=e.billingPeriodEnd?.date?e.billingPeriodEnd.momentObj.subtract(1,`day`).format(`MMM D 'YY`):null,c=(e.occurredAt?.date?e.occurredAt:e.createdAt)?.formattedDateWithYear;return(0,K.jsxs)(iK,{"aria-current":e.id===this.currentPayment?.id?`true`:void 0,children:[(0,K.jsxs)(`td`,{children:[(0,K.jsxs)(rK,{children:[t.membership?.title?.replace(/<[^>]*>/g,``),i&&a&&(0,K.jsx)(fxe,{children:`Cancelled`}),e.id===this.currentPayment?.id&&(0,K.jsx)(aK,{children:`Current`})]}),(0,K.jsxs)(oK,{children:[o&&s?`${o} - ${s}`:c,e.refunded&&(0,K.jsx)(dxe,{children:` (Refunded)`})]})]}),(0,K.jsx)(`td`,{children:e.displayAmountFormatted})]},e.id)})})]})}),this.rows.length>nK&&(0,K.jsx)(In,{currentPage:this.currentPaymentPage,totalCount:this.rows.length,limit:nK,onPagination:e=>this.paymentPage=this.currentPaymentPage+e,hideInput:!0,margin:`0`})]}):null}},eK=tK($G.prototype,`paymentPage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),tK($G.prototype,`rows`,[E],Object.getOwnPropertyDescriptor($G.prototype,`rows`),$G.prototype),tK($G.prototype,`currentPaymentPage`,[E],Object.getOwnPropertyDescriptor($G.prototype,`currentPaymentPage`),$G.prototype),tK($G.prototype,`currentPayment`,[E],Object.getOwnPropertyDescriptor($G.prototype,`currentPayment`),$G.prototype),tK($G.prototype,`paginatedRows`,[E],Object.getOwnPropertyDescriptor($G.prototype,`paginatedRows`),$G.prototype),$G))||QG;D();var sK,cK,lK,uK;function dK(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function fK(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var pK=N.div` 9099 ${(0,X.flexLeftColumn)()}; 9100 align-items: stretch; 9101 gap: 20px; 9102`,hxe=N.div` 9103 display: flex; 9104 flex-direction: column; 9105 gap: 10px; 9106`,gxe=N.div` 9107 display: flex; 9108 flex-wrap: wrap; 9109 gap: 10px 20px; 9110`,_xe=N.div` 9111 color: ${q.Theme.gray}; 9112 font-size: 14px; 9113`,vxe=N.div` 9114 display: flex; 9115 flex-direction: column; 9116 gap: 20px; 9117 p { 9118 margin: 0; 9119 } 9120`,yxe=j(sK=(cK=class extends V.Component{constructor(...e){super(...e),dK(this,`portalLoadingForSubscription`,lK,this),dK(this,`showContactModal`,uK,this),this.onOpenSubscriptionPortal=async(e,t)=>{if(e?.stripeAccount===`DE`){this.showContactModal=!0;return}this.portalLoadingForSubscription=e.id;try{window.location.href=await U.AppUI.stripeStore.getCustomerPortalUrl({return_url:window.location.href,action_type:t,stripe_account:e.stripeAccount,stripe_customer_id:e.stripeCustomerId,stripe_subscription_id:e.stripeSubscriptionId})}catch{this.portalLoadingForSubscription=null}}}get activeSubscriptionUsesGermanStripeAccount(){return this.props.activeSubscription?.stripeAccount===`DE`}get completedPaymentMigration(){return U.AppUI.user.paymentMigration?.status===`completed`}render(){return U.AppUI.userIsLoaded?(0,K.jsxs)(pK,{children:[(0,K.jsx)(SV,{children:`Manage Subscription`}),(0,K.jsx)(R,{heading:`3`,children:`Manage Subscription`}),!U.AppUI.user.isMember&&(0,K.jsx)(R,{bold:!0,children:`You don't have an active subscription.`}),this.showContactModal&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showContactModal=!1,width:`100%`,maxWidth:`520px`,title:`Please contact us`,background:q.Theme.blue,contentBackgroun
9120d:`#FFF`,children:(0,K.jsxs)(vxe,{children:[(0,K.jsx)(`p`,{children:`You have been with Seedlang for a very long time!`}),(0,K.jsx)(`p`,{children:`We have updated our payment infrastructure, and we will need you to enter your payment details again.`}),(0,K.jsx)(`p`,{children:`Please write to us about what change you would like to your subscription, and we will get back to you as quick as we can.`}),(0,K.jsx)(`p`,{children:`As a thank you, we will also offer you a 10% discount for the first year of your subscription on the new system.`}),(0,K.jsx)(I,{to:`/contact`,background:q.Theme.blue,width:`100%`,children:`Go to Contact Form`})]})}),(0,K.jsx)(OG,{userSubscriptions:this.props.userSubscriptions}),U.AppUI.user.currentUserGroup?.freeMembership&&(0,K.jsxs)(`div`,{children:[`You currently have a free `,(0,K.jsx)(`strong`,{children:U.AppUI.user.currentGroupMembershipType?.name}),U.AppUI.user.currentUserGroup.freeMembershipUntil?.date?` until ${U.AppUI.user.currentUserGroup.freeMembershipUntil?.formattedDateWithYear}`:`.`]}),U.AppUI.user.permanentMembership&&!U.AppUI.user.mobilePaymentProblem&&(0,K.jsx)(R,{color:q.Theme.green,bold:!0,children:`You have a free membership. Congrats!`}),U.AppUI.user.temporaryFreeMembership&&!U.AppUI.user.mobilePaymentProblem&&(0,K.jsxs)(R,{color:q.Theme.green,bold:!0,children:[`Congrats, you have a free membership! It will expire on `,U.AppUI.user.memberUntil.formattedDateWithYear,`.`]}),U.AppUI.user.mobilePaymentProblem&&(0,K.jsx)(R,{color:q.Theme.green,bold:!0,children:`Congrats, you have a membership!`}),U.AppUI.user.isMember&&this.props.activeSubscription&&(0,K.jsxs)(K.Fragment,{children:[(0,W.isPresent)(this.props.subscriptionStatusText)&&(0,K.jsx)(R,{bold:!0,children:(0,K.jsxs)(An,{gap:`xs`,children:[this.props.subscriptionStatusText,(0,W.isPresent)(this.props.activeSubscription?.nextPhaseMembership?.title)&&(this.portalLoadingForSubscription===this.props.activeSubscription?.id?(0,K.jsx)(ZG,{background:q.Theme.darkestBlue}):(0,K.jsx)(XG,{onClick:()=>this.onOpenSubscriptionPortal(this.props.activeSubscription,`release`),children:`Cancel change`}))]})}),this.props.activeSubscription.oneTimePayment&&(0,K.jsxs)(R,{bold:!0,children:[`You have a lifetime membership. You are awesome!`,` `,(0,K.jsx)(`span`,{role:`img`,"aria-label":`celebration`,children:`ððð`})]}),this.props.activeSubscription.pending&&!this.props.activeSubscription.oneTimePayment&&(0,K.jsxs)(R,{bold:!0,children:[(0,K.jsx)(`span`,{role:`img`,"aria-label":`warning`,children:`â ï¸`}),` `,`Please note that PayPal takes 24 hours to send the initial payment. If you wish to cancel your subscription, please do so after the 24 hours has passed.`]})]}),(0,K.jsxs)(hxe,{children:[(0,K.jsxs)(gxe,{children:[!this.props.activeSubscription?.oneTimePayment&&!this.props.activeSubscriptionIsMobile&&(0,K.jsx)(Pn,{to:this.props.activeStripeSubscriptionExists?null:`memberships.index`,selectedBackground:q.Theme.blue,onClick:this.props.activeStripeSubscriptionExists?()=>this.onOpenSubscriptionPortal(this.props.activeSubscription):null,borderRadius:`20px`,fontSize:`16px`,fontWeight:`800`,height:`40px`,padding:`0 20px`,children:`Update Your Subscription`}),this.props.showCancelButton&&!this.props.activeSubscriptionIsMobile&&(0,K.jsx)(Pn,{selectedBackground:q.Theme.red,to:this.activeSubscriptionUsesGermanStripeAccount?null:`settings.cancel`,onClick:this.activeSubscriptionUsesGermanStripeAccount?()=>this.showContactModal=!0:null,borderRadius:`20px`,fontSize:`16px`,fontWeight:`800`,height:`40px`,padding:`0 20px`,children:`Cancel Membership`})]}),this.props.showCancelButton&&!this.props.activeSubscriptionIsMobile&&(0,K.jsx)(_xe,{children:this.props.cancellationNoticeText})]}),(0,K.jsx)(mxe,{userSubscriptions:this.props.userSubscriptions,activeSubscription:this.props.activeSubscription})]}):(0,K.jsxs)(pK,{children:[(0,K.jsx)(SV,{children:`Manage Subscription`}),(0,K.jsx)(R,{heading:`3`,children:`Manage Subscription`}),(0,K.jsx)(P,{})]})}},lK=fK(cK.prototype,`portalLoadingForSubscription`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),uK=fK(cK.prototype,`showContactModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fK(cK.prototype,`activeSubscriptionUsesGermanStripeAccount`,[E],Object.getOwnPropertyDescriptor(cK.prototype,`activeSubscriptionUsesGermanStripeAccount`),cK.prototype),fK(cK.prototype,`completedPaymentMigration`,[E],Object.getOwnPropertyDescriptor(cK.prototype,`completedPaymentMigration`),cK.prototype),cK))||sK,bxe=(0,Y.SettingsBillingWrapper)(yxe);D();var xxe=e(Tn()),mK,hK,gK;function Sxe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Cxe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var wxe=N.div` 9121 margin: ${e=>e.margin}; 9122 position: relative; 9123 cursor: pointer; 9124`,Txe=N.span` 9125 display: inline-block; 9126 margin-left: 5px; 9127`,Exe=N.span` 9128 display: flex; 9129 align-items: center; 9130 i { 9131 color: ${e=>e.color}; 9132 } 9133`,Dxe=N.div` 9134 position: absolute; 9135 bottom: -40px; 9136 font-size: 12px; 9137 background: #ff8700; 9138 color: white; 9139 padding: 5px; 9140 left: -20px; 9141`,_K=j(mK=(hK=class extends V.Component{constructor(...e){super(...e),Sxe(this,`messageIsDisplayed`,gK,this),this.showMessage=()=>{this.messageIsDisplayed=!0,setTimeout(this.hideMessage,1300)},this.hideMessage=()=>{this.messageIsDisplayed=!1},this.escapeHtml=e=>String(e).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`),this.blobToDataUrl=e=>new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>
9141t(r.result),r.onerror=n,r.readAsDataURL(e)}),this.imageSrcForCopy=async e=>{try{let t=await fetch(e);if(t.ok){let e=await t.blob();return await this.blobToDataUrl(e)}}catch{}return e},this.htmlBlobForCopy=async()=>{if(this.props.copyItems){let e=await Promise.all(this.props.copyItems.map(async e=>{let t=e.imageUrl?await this.imageSrcForCopy(e.imageUrl):null;return`<div>${t?`<img src="${this.escapeHtml(t)}" />`:``}<pre>${this.escapeHtml(e.text||``)}</pre></div>`}));return new Blob([e.join(`<hr />`)],{type:`text/html`})}let e=this.props.text||``,t=await this.imageSrcForCopy(this.props.imageUrl),n=`<div><img src="${this.escapeHtml(t)}" /><pre>${this.escapeHtml(e)}</pre></div>`;return new Blob([n],{type:`text/html`})},this.copyWithImage=async()=>{let e=this.props.text||``;try{navigator.clipboard?.write&&window.ClipboardItem?await navigator.clipboard.write([new ClipboardItem({"text/plain":Promise.resolve(new Blob([e],{type:`text/plain`})),"text/html":this.htmlBlobForCopy()})]):navigator.clipboard?.writeText&&await navigator.clipboard.writeText(e),this.showMessage()}catch{try{await navigator.clipboard.writeText(e),this.showMessage()}catch{}}},this.renderCopyContent=e=>(0,K.jsxs)(Exe,{color:this.props.color,onClick:e,children:[!this.props.hideIcon&&(0,K.jsx)(Mn,{i:`copy`}),this.props.children&&(0,K.jsx)(Txe,{children:this.props.children})]})}render(){return(0,K.jsxs)(wxe,{margin:this.props.margin,children:[(this.props.imageUrl||this.props.copyItems?.some(e=>e.imageUrl))&&this.renderCopyContent(this.copyWithImage),!this.props.imageUrl&&!this.props.copyItems?.some(e=>e.imageUrl)&&(0,K.jsx)(xxe.default,{text:this.props.text,onCopy:this.showMessage,children:this.renderCopyContent()}),this.messageIsDisplayed&&(0,K.jsx)(Dxe,{children:`copied!`})]})}},gK=Cxe(hK.prototype,`messageIsDisplayed`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),hK))||mK,vK,Oxe=N.div` 9142 9143`,kxe=N.p` 9144 background: white; 9145 margin: ${z.md} 0; 9146 padding: ${z.md}; 9147 border-radius: 10px; 9148 text-align: center; 9149 font-size: 14px; 9150`,Axe=M(j(vK=class extends V.Component{constructor(...e){super(...e),this.onRequestAffiliateCode=()=>{U.AppUI.authUserStore.assignAffiliateCode({},this.afterAffiliateCode)},this.afterAffiliateCode=()=>{U.AppUI.loadUser()}}render(){return(0,K.jsx)(Oxe,{children:U.AppUI.userIsLoaded&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`h3`,{children:`Affiliate Program`}),(0,K.jsx)(`p`,{children:`We will pay 8% of a new user's first-year expenditure on Seedlang to you for every user that signs up using your affiliate link.`}),!U.AppUI.user.affiliateCode&&(0,K.jsx)(I,{onClick:this.onRequestAffiliateCode,children:`Request Affiliate Link`}),U.AppUI.user.affiliateCode&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(_K,{className:`outline-button blue`,text:`https://www.seedlang.com?affiliate_code=${U.AppUI.user.affiliateCode}`,children:`Click to Copy Affiliate Link`}),(0,K.jsx)(oa,{children:(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`th`,{children:`Month`}),(0,K.jsx)(`th`,{children:`New Signups`}),(0,K.jsx)(`th`,{children:`Expenditures`})]})})}),(0,K.jsx)(kxe,{children:`There have not yet been any signups using your affiliate code.`})]})]})})}})||vK);D();var yK,bK,xK,SK,CK,wK,TK,EK;function DK(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function OK(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var jxe=N(I)` 9151 align-self: flex-start; 9152`,Mxe=j(yK=(bK=class extends V.Component{constructor(e){super(e),DK(this,`respSuccess`,xK,this),DK(this,`respFailure`,SK,this),DK(this,`oldPassword`,CK,this),DK(this,`newPassword1`,wK,this),DK(this,`newPassword2`,TK,this),DK(this,`message`,EK,this),this.afterChangePassword=e=>
9152{e.success?this.respSuccess=!0:(this.message=e.userMessage,this.respFailure=!0)},this.reset=()=>{this.oldPassword=``,this.newPassword1=``,this.newPassword2=``,this.respSuccess=!1,this.respFailure=!1,this.message=``},this.newPassword1Ref=V.createRef(),this.newPassword2Ref=V.createRef(),this.oldPasswordRef=V.createRef()}get disableSubmit(){return(0,W.isBlank)(this.oldPassword)||this.newPassword1!==this.newPassword2||this.newPassword1.length<8}onChangePassword(){U.AppUI.authUserStore.update({failureCallback:this.afterChangePassword,data:{old_password:this.oldPassword,password:this.newPassword1,password_confirmation:this.newPassword2}},this.afterChangePassword),this.reset()}get infoMessage(){return this.props.otherSitesWarning?`You are also changing your password on ${this.props.otherSitesWarning}.`:``}render(){return(0,K.jsxs)(An,{gap:`md`,alignItems:`stretch`,children:[(0,K.jsx)(mp,{children:(0,K.jsx)(SV,{children:`Change Password`})}),(0,K.jsx)(R,{heading:`3`,children:`Change Password`}),this.respSuccess&&(0,K.jsx)(B,{textAlign:`center`,children:`Password was changed.`}),this.respFailure&&(0,K.jsx)(B,{textAlign:`center`,children:(0,W.isPresent)(this.message)?this.message:`There was a problem changing your password.`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{className:`form-label`,children:`Old Password`}),(0,K.jsx)(`input`,{ref:this.oldPasswordRef,type:`password`,value:this.oldPassword,onChange:e=>this.oldPassword=e.target.value})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{className:`form-label`,children:`New Password`}),(0,K.jsx)(`input`,{ref:this.newPassword1Ref,type:`password`,value:this.newPassword1,onChange:e=>this.newPassword1=e.target.value})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`label`,{className:`form-label`,children:`Confirm New Password`}),(0,K.jsx)(`input`,{ref:this.newPassword2Ref,type:`password`,value:this.newPassword2,onChange:e=>this.newPassword2=e.target.value})]}),this.infoMessage&&(0,K.jsxs)(An,{inline:!0,gap:`xs`,alignItems:`center`,children:[(0,K.jsx)(`i`,{className:`fa fa-info-circle`}),this.infoMessage]}),(0,K.jsx)(jxe,{disabled:this.disableSubmit,onClick:()=>this.onChangePassword(),background:U.AppUI.siteIsDefault?null:U.AppUI.site.accentColor,children:`Change Password`})]})}},xK=OK(bK.prototype,`respSuccess`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SK=OK(bK.prototype,`respFailure`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),CK=OK(bK.prototype,`oldPassword`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),wK=OK(bK.prototype,`newPassword1`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),TK=OK(bK.prototype,`newPassword2`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),EK=OK(bK.prototype,`message`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),OK(bK.prototype,`disableSubmit`,[E],Object.getOwnPropertyDescriptor(bK.prototype,`disableSubmit`),bK.prototype),OK(bK.prototype,`infoMessage`,[E],Object.getOwnPropertyDescriptor(bK.prototype,`infoMessage`),bK.prototype),bK))||yK,kK=(0,Y.SettingsBillingWrapper)(Mxe),Nxe=N.div` 9153 background: ${e=>e.selected?`whitesmoke`:`#FFF`}; 9154 display: flex; 9155 align-items: center; 9156 padding: 10px; 9157 border-bottom: 1px solid whitesmoke; 9158 cursor: pointer; 9159 .check-with-circle-icon { 9160 margin-right: 10px; 9161 svg { 9162 fill: ${e=>e.selected?q.Theme.green:`#CCC`}; 9163 } 9164 } 9165 &:hover { 9166 background: whitesmoke; 9167 } 9168`,Pxe=N.div` 9169 width: 22px; 9170 height: 22px; 9171 min-width: 22px; 9172 border-radius: 50%; 9173 border: 2px solid ${e=>e.selected&&e.accentColor||`#CCC`}; 9174 margin-right: 10px; 9175 display: flex; 9176 align-items: center; 9177 justify-content: center; 9178`,Fxe=N.div` 9179 width: 12px; 9180 height: 12px; 9181 border-radius: 50%; 9182 background: ${e=>e.accentColor||`#CCC`}; 9183`;function AK({options:e,selectedOption:t,selectedOptions:n=[],multipleChoice:r,onSelect:i}){function a(e){return r?n.some(t=>e.slug&&t.slug===e.slug||e.id&&t.id===e.id):e.slug&&t?.slug===e.slug||e.id&&t?.id===e.id}return(0,K.jsx)(`div`,{children:e.map(e=>(0,K.jsxs)(Nxe,{onClick:()=>i(e),selected:a(e),children:[r?(0,K.jsx)(J.CheckWithCircleIcon,{}):(0,K.jsx)(Pxe,{selected:a(e),accentColor:U.AppUI.site.accentColor,children:a(e)&&(0,K.jsx)(Fxe,{accentColor:U.AppUI.site.accentColor})}),(0,K.jsx)(R,{children:e.text||e.option})]},e.slug||e.id))})}var jK,Ixe=N.div` 9184 .fa-angle-left { 9185 margin: 0 4px 0 0; 9186 font-size: 20px; 9187 } 9188`,Lxe=N.div` 9189 textarea { 9190 height: ${e=>e.expanded?100:40}px; 9191 } 9192`,Rxe=j(jK=class extends V.Component{constructor(e){super(e),this.afterSubmit=()=>{U.AppUI.routeStore.routeToNamed(`settings.billing`)},this.messageRef=V.createRef()}render(){return this.props.mostRecentSubscription?(0,K.jsxs)(Ixe,{children:[(0,K.jsxs)(F,{to:`settings.billing`,style:{display:`flex`,alignItems:`center`},children:[(0,K.jsx)(`i`,{className:`fa fa-angle-left`}),`Back to Billing`]}),this.props.showSpinner&&(0,K.jsx)(P,{className:U.AppUI.siteIsDefault?`blue`:null,background:U.AppUI.siteIsDefault||(0,W.isBlank)(U.AppUI.site.accentColor)?null:U.AppUI.site.accentColor}),this.props.showMessage&&(0,K.jsx)(B,{textAlign:`center`,margin:`10px 0`,children:`Your membership has been cancelled.`}
9192),(0,K.jsx)(R,{heading:`3`,margin:`20px 0 0 0`,children:`We are sorry to see you go!`}),(0,K.jsx)(R,{margin:`10px 0 20px 0`,children:`Could you do us a favor and let us know why you are cancelling your membership?`}),(0,K.jsx)(AK,{options:this.props.options,selectedOption:this.props.selected,onSelect:this.props.onSelect}),(0,W.isPresent)(this.props.selected)&&(0,W.isPresent)(this.props.selected.expanded)&&(0,K.jsxs)(Lxe,{expanded:this.props.expandedTextArea,children:[(0,K.jsx)(R,{bold:!0,margin:`20px 0 0 0`,children:this.props.selected.expanded}),(0,K.jsx)(`textarea`,{onFocus:this.props.onExpandTextArea,ref:this.messageRef})]}),(0,K.jsx)(I,{margin:`20px 0 0 0`,disabled:(0,W.isBlank)(this.props.selected),onClick:()=>this.props.onSubmit(this.afterSubmit),children:`Cancel Membership`})]}):(0,K.jsx)(`span`,{})}})||jK,zxe=(0,Y.SettingsCancelWrapper)(Rxe),Bxe=Object.defineProperty,MK=Object.getOwnPropertySymbols,NK=Object.prototype.hasOwnProperty,PK=Object.prototype.propertyIsEnumerable,FK=(e,t,n)=>t in e?Bxe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vxe=(e,t)=>{for(var n in t||={})NK.call(t,n)&&FK(e,n,t[n]);if(MK)for(var n of MK(t))PK.call(t,n)&&FK(e,n,t[n]);return e},Hxe=(e,t)=>{var n={};for(var r in e)NK.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&MK)for(var r of MK(e))t.indexOf(r)<0&&PK.call(e,r)&&(n[r]=e[r]);return n},IK;(e=>{let t=class{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),i==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}a(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,n,i=1,o=40,c=-1,l=!0){if(!(t.MIN_VERSION<=i&&i<=o&&o<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=i;;u++){let r=t.getNumDataCodewords(u,n)*8,i=s.getTotalBits(e,u);if(i<=r){d=i;break}if(u>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(n=e);let f=[];for(let t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}a(f.length==d);let p=t.getNumDataCodewords(u,n)*8;a(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new t(u,n,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(r,e));this.setFunctionModule(8,7,i(r,6)),this.setFunctionModule(8,8,i(r,7)),this.setFunctionModule(7,8,i(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;a(t>>
9192>18==0);for(let e=0;e<18;e++){let n=i(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){let n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=i-s%i,l=Math.floor(s/i),u=[],d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<i;n++){let i=e.slice(r,r+l-o+(n<c?0:1));r+=i.length;let a=t.reedSolomonComputeRemainder(i,d);n<c&&i.push(0),u.push(i.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-o||n>=c)&&f.push(t[e])});return a(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){let o=t-a,s=t+1&2?r:this.size-1-r;!this.isFunction[s][o]&&n<e.length*8&&(this.modules[s][o]=i(e[n>>>3],7-(n&7)),n++)}}a(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(i++,i==5?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return a(0<=i&&i<=9),e+=i*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let i=0;i<e;i++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];a(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}},n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function i(e,t){return(e>>>t&1)!=0}function a(e){if(!e)throw Error(`Assertion error`)}let o=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(e){let t=[];for(let n of e)r(n,8,t);return new o(o.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!o.isNumeric(e))throw RangeError(`String contains
9192non-numeric characters`);let t=[];for(let n=0;n<e.length;){let i=Math.min(e.length-n,3);r(parseInt(e.substr(n,i),10),i*3+1,t),n+=i}return new o(o.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!o.isAlphanumeric(e))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let t=[],n;for(n=0;n+2<=e.length;n+=2){let i=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n))*45;i+=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n+1)),r(i,11,t)}return n<e.length&&r(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(n)),6,t),new o(o.Mode.ALPHANUMERIC,e.length,t)}static makeSegments(e){return e==``?[]:o.isNumeric(e)?[o.makeNumeric(e)]:o.isAlphanumeric(e)?[o.makeAlphanumeric(e)]:[o.makeBytes(o.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw RangeError(`ECI assignment value out of range`);if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else if(e<1e6)r(6,3,t),r(e,21,t);else throw RangeError(`ECI assignment value out of range`);return new o(o.Mode.ECI,0,t)}static isNumeric(e){return o.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return o.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substr(n+1,2),16)),n+=2):t.push(e.charCodeAt(n));return t}},s=o;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,e.QrSegment=s})(IK||={}),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}},n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(e.QrCode||={})})(IK||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}},n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(e.QrSegment||={})})(IK||={});var LK=IK,Uxe={L:LK.QrCode.Ecc.LOW,M:LK.QrCode.Ecc.MEDIUM,Q:LK.QrCode.Ecc.QUARTILE,H:LK.QrCode.Ecc.HIGH},Wxe=128,Gxe=`L`,Kxe=`#FFFFFF`,qxe=`#000000`,Jxe=!1,RK=4,Yxe=.1;function Xxe(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Zxe(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>n<t.x||n>=t.x+t.w?e:!1))}function Qxe(e,t,n,r){if(r==null)return null;let i=n?RK:0,a=e.length+i*2,o=Math.floor(t*Yxe),s=a/t,c=(r.width||o)*s,l=(r.height||o)*s,u=r.x==null?e.length/2-c/2:r.x*s,d=r.y==null?e.length/2-l/2:r.y*s,f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:f}}(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})();function $xe(e){let t=e,{value:n,size:r=Wxe,level:i=Gxe,bgColor:a=Kxe,fgColor:o=qxe,includeMargin:s=Jxe,imageSettings:c}=t,l=Hxe(t,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`imageSettings`]),u=LK.QrCode.encodeText(n,Uxe[i]).getModules(),d=s?RK:0,f=u.length+d*2,p=Qxe(u,r,s,c),m=null;c!=null&&p!=null&&(p.excavation!=null&&(u=Zxe(u,p.excavation)),m=V.createElement(`image`,{xlinkHref:c.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:`none`}));let h=Xxe(u,d);return V.createElement(`svg`,Vxe({height:r,width:r,viewBox:`0 0 ${f} ${f}`},l),V.createElement(`path`,{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:`crispEdges`}),V.createElement(`path`,{fill:o,d:h,shapeRendering:`crispEdges`}),m)}var eSe=({children:e})=>U.AppUI.user?.anyAdmin?e:null;D();var zK,BK,VK,HK;function UK(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function WK(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var tSe=N.div` 9193 h3 { 9194 font-size: 18px!important; 9195 line-height: 18px!important; 9196 font-weight: bold; 9197 margin-bottom: 5px; 9198 margin-top: 30px; 9199 } 9200`,nSe=N.div` 9201 display: flex; 9202 align-items: center; 9203 margin-top: 10px; 9204`,rSe=N.div` 9205 padding: 10px; 9206 cursor: pointer; 9207 background: ${e=>e.background}; 9208 border-radius: 10px; 9209 &:hover { 9210 background: #DDD; 9211 } 9212`,iSe=N.div` 9213 font-size: 11px; 9214 width: 50px; 9215 line-height: 13px; 9216 text-align: center; 9217 margin-top: 5px; 9218`,aSe=N.div` 9219 display: flex; 9220 flex-wrap: wrap; 9221 justify-content: center; 9222 align-items: center; 9223 gap: 10px; 9224`,GK=N.div` 9225 margin-bottom: 30px; 9226 display: flex; 9227 align-items: center; 9228 justify-content: center; 9229 flex-direction: column; 9230 text-align: center; 9231`,oSe=N.div` 9232 input { 9233 max-width: 250px; 9234 border-radius: 5px; 9235 height: 40px; 9236 } 9237`,sSe=N.div` 9238 display: flex; 9239 flex-direction: column; 9240 margin-bottom: ${z.md}; 9241 gap: ${z.xs}; 9242 9243 @media (min-width: 1000px) { 9244 flex-direction: row; 9245 border-bottom: 1px solid #CCC; 9246 flex-wrap: wrap; 9247 } 9248`,cSe=N.div` 9249 padding: 10px; 9250 font-size: 14px; 9251 font-weight: bold; 9252 cursor: pointer;
9253 color: ${e=>e.selected?e.borderColor:`#A9A9A9`}; 9254 border-left: 4px solid ${e=>e.selected?e.borderColor:`transparent`}; 9255 text-transform: uppercase; 9256 white-space: nowrap; 9257 transition: all 0.2s ease-in-out; 9258 9259 @media (min-width: 1000px) { 9260 border-left: none; 9261 border-bottom: 4px solid ${e=>e.selected?e.borderColor:`transparent`}; 9262 } 9263`,lSe=N.div` 9264 display: flex; 9265 align-items: center; 9266 gap: 8px; 9267 min-width: min-content; 9268 padding: 0 4px; 9269`,uSe=N.img` 9270 width: 20px; 9271 height: 20px; 9272 border-radius: 4px; 9273 object-fit: cover; 9274 flex-shrink: 0; 9275`,KK=N.div` 9276 font-size: 14px; 9277 line-height: 16px; 9278 font-style: ${e=>e.fontStyle?e.fontStyle:`italic`}; 9279 margin-bottom: ${e=>e.marginBottom}; 9280 margin-top: ${e=>e.marginTop}; 9281`,dSe=N.div` 9282 height: ${e=>e.hasAccess?null:`500px`}; 9283 mask-image: ${e=>e.hasAccess?null:`linear-gradient(to bottom,black,25%,transparent)`}; 9284 pointer-events: ${e=>e.hasAccess?`auto`:`none`}; 9285 user-select: ${e=>e.hasAccess?`auto`:`none`}; 9286 overflow: hidden; 9287`,fSe=N.div` 9288 position: relative; 9289`,pSe=N.div` 9290 position: absolute; 9291 left: 50%; 9292 transform: translateX(-50%); 9293 bottom: 25%; 9294 width: 100%; 9295 z-index: 1; 9296`,qK=[{slug:`apple`,name:`Apple Podcasts`,linkPrefix:`podcast://`},{slug:`overcast`,name:`Overcast`,linkPrefix:`overcast://x-callback-url/add?url=https://`},{slug:`podcast_addict`,name:`Podcast Addict`,linkPrefix:`podcastaddict://`},{slug:`pocket_casts`,name:`Pocket Casts`,linkPrefix:`pktc://subscribe/`},{slug:`castro`,name:`Castro`,linkPrefix:`castros://subscribe/`},{slug:`downcast`,name:`Downcast`,linkPrefix:`downcast://`},{slug:`android`,name:`Android`,linkPrefix:`pcast://`},{slug:`spotify`,name:`Spotify`},{slug:`other_apps`,name:`Other Apps`}],mSe=M(j(zK=(BK=class extends V.Component{constructor(...e){super(...e),UK(this,`selectedApp`,VK,this),UK(this,`selectedPodcastId`,HK,this),this.openInSelectedApp=()=>{window.location.href=this.currentAppUrl}}componentDidMount(){U.AppUI.podcastStore.hasIndexData||U.AppUI.podcastStore.getIndex(),this.props.selectedPodcastId&&(this.selectedPodcastId=this.props.selectedPodcastId)}get selectedPodcast(){return U.AppUI.podcastStore.indexData.find(e=>e.id===this.selectedPodcastId)??U.AppUI.podcastStore.indexData[0]}get selectedUserPodcast(){return U.AppUI.user.userPodcasts.find(e=>e.podcast?.id===this.selectedPodcast?.id)??null}get currentApp(){return qK.find(e=>e.slug===this.selectedApp)}get currentAppUrl(){if(!this.selectedUserPodcast)return null;let e=this.selectedUserPodcast.rssFeedUrl.replace(`https://`,``).replace(`http://`,``);return`${this.currentApp.linkPrefix}${e}`}get message(){return U.AppUI.site?.podcastSettingsMessage||q.Constants.PODCAST_SETTINGS_MESSAGE}get blockedUntilMigrated(){return this.selectedPodcast?.blockIfNotMigrated&&U.AppUI.shouldBlockPerksForMigration}render(){return U.AppUI.podcastStore.hasOutstandingRequests?(0,K.jsx)(P,{}):(0,K.jsx)(tSe,{children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(KK,{fontStyle:`none`,children:(0,K.jsx)($i,{markdown:this.message})}),(0,K.jsx)(sSe,{children:U.AppUI.podcastStore.indexData.map(e=>(0,K.jsx)(cSe,{onClick:()=>this.selectedPodcastId=e.id,selected:this.selectedPodcast?.id===e.id,borderColor:U.AppUI.site.accentColor,children:(0,K.jsxs)(lSe,{children:[e.podcastImage?.image&&(0,K.jsx)(uSe,{src:e.podcastImage.image.url,alt:`Cover image for ${e.title}`}),e.title]})},e.id))}),(0,K.jsxs)(fSe,{children:[(!this.selectedUserPodcast||this.blockedUntilMigrated)&&(0,K.jsx)(pSe,{children:(0,K.jsx)(ql,{migrate:this.blockedUntilMigrated})}),(0,K.jsxs)(dSe,{hasAccess:this.selectedUserPodcast,children:[(0,K.jsx)(GK,{children:this.selectedPodcast?.podcastImage?.image&&(0,K.jsx)(`img`,{alt:``,width:`200px`,style:{borderRadius:`20px`},src:this.selectedPodcast.podcastImage.image.url})}),this.selectedUserPodcast&&(0,K.jsx)(GK,{children:(0,K.jsx)(eSe,{children:(0,K.jsxs)(An,{gap:`sm`,alignItems:`center`,children:[(0,K.jsx)(I,{onClick:()=>{window.open(this.selectedUserPodcast.rssFeedUrl,`_blank`)},background:U.AppUI.site.accentColor,children:`Open RSS feed`}),(0,K.jsx)(KK,{children:`You are seeing this because you are an admin`})]})})}),(0,K.jsxs)(GK,{children:[(0,K.jsx)(`h3`,{children:`Select your Podcast App`}),(0,K.jsx)(aSe,{children:qK.map(e=>(0,K.jsxs)(rSe,{onClick:()=>this.selectedApp=e.slug,background:this.selectedApp===e.slug?`#DDD`:`#FFF`,children:[(0,K.jsx)(`img`,{src:`/images/${e.slug}.svg`,width:`50px`,height:`50px`,alt:``,style:{borderRadius:`10px`}}),(0,K.jsx)(iSe,{children:e.name})]},e.slug))})]}),![`spotify`,`other_apps`].includes(this.selectedApp)&&(0,K.jsxs)(GK,{children:[(0,K.jsx)(`h3`,{children:`Viewing this page on your phone?`}),(0,K.jsx)(KK,{marginBottom:`10px`,children:`Just tap the button to subscribe`}),(0,K.jsx)(I,{onClick:this.openInSelectedApp,background:U.AppUI.site.accentColor,children:`Open in ${this.currentApp.name}`})]}),![`spotify`,`other_apps`].includes(this.selectedApp)&&(0,K.jsxs)(GK,{children:[(0,K.jsx)(`h3`,{children:`Viewing this page on your computer?`}),(0,K.jsx)(KK,{marginBottom:`10px`,children:`Scan this QR code with your phone`}),(0,K.jsx)($xe,{value:this.currentAppUrl})]}),this.selectedApp===`spotify`&&(0,K.jsxs)(GK,{children:[(0,K.jsx)(R,{children:`Unfortunately, it's not currently possible to subscribe to the members-only feed in Spotify.`}),(0,K.jsx)(R,{children:`We encourage you to try the apps listed here instead.`})]}),this.selectedUserPodcast&&this.selectedApp===`other_apps`&&(0,K.jsxs)(GK,{children:[(0,K.jsx)(`h3`,{children:`Your RSS feed URL`}),(0,K.jsx)(KK,{fontStyle:`none`,children:`Most podcast apps have an option to subscribe to a podcast feed by URL.`}),(0,K.jsx)(KK,{fontStyle:`none`,children:`You can copy this link and paste it into the appropriate field in your podcast app of choice.`}),(0,K.jsxs)(nSe,{children:[(0,K.jsx)(oSe,{children:(0,K.jsx)(`input`,{value:this.selectedUserPodcast.rssFeedUrl})}),(0,K.jsx)(_K,{hideIcon:!0,text:this.selectedUserPodcast.rssFeedUrl,children:(0,K.jsx)(I,{background:U.AppUI.site.accentColor,children:`Copy Link`})})]}),(0,K.jsx)(KK,{marginTop:`20px`,children:`Note that apps not listed on this page may not support chapters and chapter images.`})]})]})]})]})})}},VK=WK(BK.prototype,`selectedApp`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`apple`}}),HK=WK(BK.prototype,`selectedPodcastId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),WK(BK.prototype,`selectedPodcast`,[E],Object.getOwnPropertyDescriptor(BK.prototype,`selectedPodcast`),BK.prototype),WK(BK.prototype,`selectedUserPodcast`,[E],Object.getOwnPropertyDescriptor(BK.prototype,`selectedUserPodcast`),BK.prototype),WK(BK.prototype,`currentApp`,[E],Object.getOwnPropertyDescriptor(BK.prototype,`currentApp`),BK.prototype),WK(BK.prototype,`currentAppUrl`,[E],Object.getOwnPropertyDescriptor(BK.prototype,`currentAppUrl`),BK.prototype),WK(BK.prototype,`message`,[E],Object.getOwnPropertyDescriptor(BK.prototype,`message`),BK.prototype),WK(BK.prototype,`blockedUntilMigrated`,[E],Object.getOwnPropertyDescriptor(BK.prototype,`blockedUntilMigrated`),BK.prototype),BK))||zK),JK,hSe=N.div` 9297 9298`,gSe=pf(M(j(JK=class extends V.Component{render(){return(0,K.jsxs)(hSe,{children:[(0,K.jsx)(SV,{children:`Audio Feeds`}),(0,K.jsx)(R,{heading:`2`,margin:`0 0 10px 0`,children:`Audio Feeds`}),(0,K.jsx)(mSe,{selectedPodcastId:this.props.params?.podcastId})]})}})||JK)),YK,_Se=N.div` 9299 9300`,vSe=M(j(YK=class extends V.Component{render(){return(0,K.jsx)(_Se,{children:(0,K.jsx)(FV,{})})}})||YK),XK,ZK,ySe=N.form` 9301 9302`,bSe=N.div` 9303 display: flex; 9304`,QK=j(XK=(ZK=class extends V.Component{constructor(...e){super(...e),this.onSubmit=e=>{e.preventDefault(),this.props.form.submissionEnabled&&(this.props.onSubmit?this.props.onSubmit(this.props.form.store.formCache):this.props.form.onSubmit())},this.onClear=e=>{e.preventDefault(),this.props.onClear?this.props.onClear():this.props.form.onClear()}}
9304render(){return(0,K.jsxs)(ySe,{children:[this.props.fields,(0,K.jsxs)(bSe,{children:[(0,K.jsxs)(I,{disabled:!this.props.form.submissionEnabled,onClick:this.onSubmit,background:q.Theme.green,margin:`0 5px 0 0`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),this.props.form.isUpdate?`Update`:`Submit`]}),!this.props.hideReset&&(0,K.jsxs)(I,{background:q.Theme.red,margin:`0 5px 0 0`,disabled:!this.props.form.store.dirtyForm,onClick:this.onClear,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Reset`]})]})]})}},ZK.propTypes={onSubmit:Z.default.func,form:Z.default.object.isRequired,fields:Z.default.object.isRequired},ZK))||XK;D();var $K,eq,tq;function xSe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function SSe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var CSe=N.label` 9305 text-transform: capitalize; 9306`,nq=($K=(tq=class extends V.Component{constructor(...e){super(...e),xSe(this,`id`,eq,this)}label(){return this.props.label?this.props.label:this.props.name}render(){return(0,K.jsxs)(CSe,{className:this.props.className,htmlFor:this.props.htmlFor,children:[(0,G.last)(this.label().split(`.`)).replace(`_`,` `),this.props.toolTip&&(0,K.jsx)(En,{children:this.props.toolTip})]})}},tq.propTypes={className:Z.default.string,name:Z.default.string.isRequired,label:Z.default.string,required:Z.default.bool,tooltip:Z.default.string},tq),eq=SSe($K.prototype,`id`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Math.random()}}),$K),rq=class extends V.Component{_error(){return(0,G.isEmpty)(this.props.message)?(0,K.jsx)(`span`,{}):(0,K.jsx)(`div`,{className:`form__error`,children:this.props.message})}render(){return this._error()}};rq.propTypes={message:Z.default.string};var iq,aq,wSe=N.div` 9307 margin: ${e=>e.margin}; 9308`,TSe=j(iq=(aq=class extends V.Component{constructor(e){super(e),this.onChange=()=>{this.props.onChange(this.props.name,this.inputRef.current.value)},this.inputRef=V.createRef(),this.props.form.registerComponent(this.props)}componentWillUnmount(){}getValue(){return this.props.store.formCache[this.props.name]||``}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}render(){return(0,K.jsxs)(wSe,{margin:this.props.margin,children:[this.props.type!==`hidden`&&(0,K.jsx)(nq,{...this.props}),(0,K.jsx)(`input`,{ref:this.inputRef,name:this.name(),type:this.props.type,onChange:this.onChange,value:this.getValue(),disabled:this.props.disabled,maxLength:this.props.maxLength},`input-${this.props.name}`),this.props.type!==`hidden`&&(0,K.jsx)(rq,{message:this.getError()})]})}},aq.propTypes={name:Z.default.string.isRequired,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number]),type:Z.default.string,maxLength:Z.default.number},aq.defaultProps={disabled:!1,defaultValue:``,type:`text`,margin:`0 0 10px 0`},aq))||iq,oq,sq,ESe=N.div` 9309 margin: ${e=>e.margin}; 9310`,DSe=j(oq=(sq=class extends V.Component{constructor(e){super(e),this.props.form.registerComponent(this.props)}componentWillUnmount(){}onChange(){this.props.onChange(this.props.name,this.getValue())}getValue(){return this.props.store.formCache[this.props.name]||``}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}render(){return(0,K.jsxs)(ESe,{margin:this.props.margin,children:[this.props.type!==`hidden`&&(0,K.jsx)(nq,{...this.props}),(0,K.jsx)(`ul`,{children:(0,W.isPresent)(this.props.value)&&this.props.value.map(e=>(0,K.jsx)(`li`,{children:e.id}))}),this.props.type!==`hidden`&&(0,K.jsx)(rq,{message:this.getError()})]})}},sq.propTypes={name:Z.default.string.isRequired,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number]),type:Z.default.string},sq.defaultProps={disabled:!1,defaultValue:``,type:`text`},sq))||oq,cq,lq,OSe=N.div` 9311 margin: ${e=>e.margin}; 9312 select { 9313 padding: 10px; 9314 font-size: 14px; 9315 height: 40px!important; 9316 } 9317`,kSe=j(cq=(lq=class extends V.Component{constructor(e){super(e),this.selectRef=V.createRef(),this.props.form.registerComponent(this.props)}componentWillUnmount(){}onChange(){this.props.onChange(this.props.name,this.selectRef.current.value)}getValue(){return this.props.form.getValue(this.props.name)||``}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}orderedOptions(){return this.props.alphabetizeOptions&&this.props.options.length>0&&(0,G.isObject)(this.props.options[0])?(0,G.sortBy)(this.props.options,[`name`]):this.props.alphabetizeOptions&&this.props.options.length>0?this.props.options.sort():this.props.options}orderedKeys(){let e=(0,G.keys)(this.props.options);return this.props.alphabetizeOptions&&(0,G.isObject)(this.props.options)?e.sort():e}_options(){return(0,G.isArray)(this.props.options)?this.orderedOptions().map(e=>{let t,n;return(0,G.isArray)(e)?(t=e[0],n=e[1]):(t=(0,G.isObject)(e)?e.id:e,n=(0,G.isObject)(e)?e.name:e),(0,K.jsx)(`option`,{value:t,children:n},t)}):this.orderedKeys().map(e=>(0,K.jsx)(`option`,{value:e,children:this.props.options[e]},e))}render(){return(0,K.jsxs)(OSe,{margin:this.props.margin,children:[(0,K.jsx)(nq,{...this.props}),(0,K.jsxs)(`select`,{onChange:this.onChange.bind(this),ref:this.selectRef,name:this.name(),value:this.getValue(),disabled:this.props.disabled,children:[this.props.includeBlank&&(0,K.jsx)(`option`,{value:``},`-99`),this._options()]},`select-${this.props.name}`),(0,K.jsx)(rq,{message:this.getError()})]})}},lq.propTypes={name:Z.default.string,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,options:Z.default.oneOfType([Z.default.object,Z.default.array]),includeBlank:Z.default.bool,onCh
9317ange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number]),alphabetizeOptions:Z.default.bool},lq.defaultProps={options:[],includeBlank:!0,disabled:!1,defaultValue:``},lq))||cq,uq,dq,ASe=N.div` 9318 margin: ${e=>e.margin}; 9319 li { 9320 width: 100%; 9321 background: white; 9322 border: 1px solid ${q.Theme.green}; 9323 border-radius: 5px; 9324 font-size: 14px; 9325 text-align: center; 9326 padding: 5px 10px; 9327 cursor: pointer; 9328 &.selected { 9329 background: ${q.Theme.green}; 9330 color: white; 9331 } 9332 } 9333 li:not(:last-child) { 9334 margin-bottom: 5px; 9335 } 9336`,jSe=j(uq=(dq=class extends V.Component{constructor(e){super(e),this.props.form.registerComponent(this.props)}componentWillUnmount(){}onChange(e){this.props.onChange(this.props.name,e)}getValue(){return this.props.form.getValue(this.props.name)||``}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}_options(){return this.props.options&&(0,G.isArray)(this.props.options)?this.this.props.options.map(e=>{let t=(0,G.isObject)(e)?e.id:e;return(0,K.jsx)(`option`,{value:t,children:(0,G.isObject)(e)?e.name:e},t)}):(0,G.keys)(this.props.options).map(e=>(0,K.jsx)(`option`,{value:e,children:this.props.options[e]},e))}render(){return(0,K.jsxs)(ASe,{margin:this.props.margin,children:[(0,K.jsx)(nq,{...this.props}),(0,K.jsx)(`ul`,{children:this.props.options&&this.props.options.map(e=>(0,K.jsx)(`li`,{className:(0,Qg.default)({selected:e.id===this.getValue()}),onClick:()=>this.onChange(e.id),children:e.name},e.id))}),(0,K.jsx)(rq,{message:this.getError()})]})}},dq.propTypes={name:Z.default.string,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,options:Z.default.oneOfType([Z.default.object,Z.default.array]),includeBlank:Z.default.bool,onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number])},dq.defaultProps={options:[],includeBlank:!0,disabled:!1,defaultValue:``},dq))||uq,fq,pq,MSe=N.div` 9337 margin: ${e=>e.margin}; 9338 display: flex; 9339 align-items: center; 9340 input { 9341 width: 25px; 9342 } 9343 label { 9344 display: inline-block; 9345 margin: 0; 9346 } 9347`,NSe=j(fq=(pq=class extends V.Component{constructor(e){super(e),this.checkboxRef=V.createRef(),this.props.form.registerComponent(this.props)}componentWillUnmount(){}onChange(){this.props.onChange(this.props.name,this.checkboxRef.current.checked)}getValue(){return this.props.form.getValue(this.props.name)||!1}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}render(){return(0,K.jsxs)(MSe,{margin:this.props.margin,children:[(0,K.jsx)(`input`,{ref:this.checkboxRef,name:this.name(),id:this.name(),type:`checkbox`,className:`form-control-checkbox`,onChange:this.onChange.bind(this),checked:this.getValue()},`input-${this.props.name}`),(0,K.jsx)(nq,{...this.props,htmlFor:this.name()}),(0,K.jsx)(rq,{message:this.getError()})]})}},pq.propTypes={name:Z.default.string.isRequired,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number]),type:Z.default.string},pq.defaultProps={disabled:!1,defaultValue:``,type:`text`},pq))||fq;D();var mq,hq,gq,_q,vq;function yq(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function bq(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var PSe=N.div` 9348 margin: ${e=>e.margin}; 9349`,FSe=j(mq=(hq=(vq=class extends V.Component{constructor(e){super(e),yq(this,`focused`,gq,this),yq(this,`clicked`,_q,this),this.onChange=()=>{this.props.onChange(this.props.name,this.inputRef.current.value)},this.onFocus=()=>{this.focused=!0,this.clicked=!0},this.inputRef=V.createRef(),this.props.form.registerComponent(this.props)}componentWillUnmount(){}getValue(){return this.props.store.formCache[this.props.name]||``}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}render(){return(0,K.jsxs)(PSe,{margin:this.props.margin,children:[this.props.type!==`hidden`&&(0,K.jsx)(nq,{...this.props}),(0,K.jsx)(`textarea`,{ref:this.inputRef,name:this.name(),type:this.props.type,onCh
9349ange:this.onChange,value:this.getValue(),onFocus:this.onFocus,onBlur:()=>this.focused=!1},`input-${this.props.name}`),this.props.type!==`hidden`&&(0,K.jsx)(rq,{message:this.getError()})]})}},vq.propTypes={name:Z.default.string.isRequired,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number]),type:Z.default.string},vq.defaultProps={disabled:!1,defaultValue:``,type:`text`},vq),gq=bq(hq.prototype,`focused`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_q=bq(hq.prototype,`clicked`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),hq))||mq,xq,Sq,ISe=N.div` 9350 margin: ${e=>e.margin}; 9351 display: flex; 9352 align-items: flex-start; 9353`,LSe=N.div` 9354 9355`,RSe=N.div` 9356 font-size: 14px; 9357 line-height: 18px; 9358`,zSe=j(xq=(Sq=class extends V.Component{constructor(e){super(e),this.props.form.registerComponent(this.props)}componentWillUnmount(){}
9358onToggle(){this.props.onChange(this.props.name,!this.props.form.getValue(this.props.name))}getValue(){return this.props.form.getValue(this.props.name)||!1}getError(){return this.props.store.getError(this.props.name)}name(){if(this.props.name.includes(`.`)){let e=this.props.name.split(`.`);return`${e[0]}[${e[1]}]`}return this.props.name}render(){return(0,K.jsxs)(ISe,{margin:this.props.margin,children:[(0,K.jsx)(ZM,{selected:this.props.toggleShowsOppositeValue?!this.getValue():this.getValue(),onToggle:this.onToggle.bind(this)}),(0,K.jsxs)(LSe,{children:[(0,K.jsx)(nq,{...this.props,onClick:this.onToggle.bind(this),htmlFor:this.name()}),this.props.description&&(0,K.jsx)(RSe,{children:this.props.description})]}),(0,K.jsx)(rq,{message:this.getError()})]})}},Sq.propTypes={name:Z.default.string.isRequired,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,defaultValue:Z.default.oneOfType([Z.default.bool,Z.default.string,Z.default.number]),type:Z.default.string},Sq.defaultProps={disabled:!1,defaultValue:``,type:`text`},Sq))||xq,BSe=N.div` 9359 position: relative; 9360 width: 100%; 9361`,VSe=N.div` 9362 padding: 10px; 9363 font-size: 14px; 9364 height: 40px; 9365 border: 1px solid #ccc; 9366 border-radius: 4px; 9367 display: flex; 9368 align-items: center; 9369 justify-content: space-between; 9370 cursor: pointer; 9371 background: white; 9372 opacity: ${e=>e.disabled?.5:1}; 9373`,HSe=N.div` 9374 display: flex; 9375 align-items: center; 9376 flex: 1; 9377`,USe=N.i` 9378 font-family: FontAwesome; 9379 font-size: 16px; 9380 color: #666; 9381 margin-left: 8px; 9382 margin-right: -6px; 9383`,WSe=N.div` 9384 position: absolute; 9385 top: 100%; 9386 left: 0; 9387 right: 0; 9388 background: white; 9389 border: 1px solid #ccc; 9390 border-radius: 4px; 9391 margin-top: 4px; 9392 max-height: 300px; 9393 overflow-y: auto; 9394 z-index: 1000; 9395 box-shadow: 0 2px 4px rgba(0,0,0,0.1); 9396`,GSe=N.div` 9397 padding: 8px 10px; 9398 display: flex; 9399 align-items: center; 9400 cursor: pointer; 9401 justify-content: ${e=>e.centerOptions?`center`:`flex-start`}; 9402 &:hover { 9403 background: #f5f5f5; 9404 } 9405 ${e=>e.selected&&` 9406 background: #e6f3ff; 9407 `} 9408`,Cq=class extends V.Component{constructor(e){super(e),this.handleClickOutside=e=>{this.selectRef.current&&!this.selectRef.current.contains(e.target)&&this.setState({isOpen:!1})},this.toggleOpen=()=>{this.props.disabled||this.setState(e=>({isOpen:!e.isOpen}))},this.handleSelect=e=>{this.props.onChange(e),this.setState({isOpen:!1})},this.state={isOpen:!1},this.selectRef=V.createRef()}componentDidMount(){document.addEventListener(`click`,this.handleClickOutside)}componentWillUnmount(){document.removeEventListener(`click`,this.handleClickOutside)}getSelectedOption(){return this.props.options.find(e=>e.id===this.props.value)}render(){let e=this.getSelectedOption();return(0,K.jsxs)(BSe,{ref:this.selectRef,className:this.props.className,children:[(0,K.jsxs)(VSe,{onClick:this.toggleOpen,disabled:this.props.disabled,children:[(0,K.jsx)(HSe,{children:e?this.props.renderSelectedValue?this.props.renderSelectedValue(e):e.content:this.props.placeholder}),(0,K.jsx)(USe,{className:`fa fa-angle-down`})]}),this.state.isOpen&&(0,K.jsx)(WSe,{children:this.props.options.map(e=>(0,K.jsx)(GSe,{onClick:()=>this.handleSelect(e.id),selected:e.id===this.props.value,centerOptions:this.props.centerOptions,children:e.content},e.id))})]})}};Cq.propTypes={options:Z.default.arrayOf(Z.default.shape({id:Z.default.oneOfType([Z.default.string,Z.default.number]).isRequired,content:Z.default.node.isRequired})).isRequired,value:Z.default.oneOfType([Z.default.string,Z.default.number]),onChange:Z.default.func.isRequired,placeholder:Z.default.string,disabled:Z.default.bool,renderSelectedValue:Z.default.func,centerOptions:Z.default.bool,className:Z.default.string},Cq.defaultProps={options:[],placeholder:`Select an option`,disabled:!1,centerOptions:!1,className:``},D();var wq,Tq,Eq;function KSe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var qSe=N.div` 9409 margin: ${e=>e.margin}; 9410 position: relative; 9411`,JSe=j(wq=(Tq=(Eq=class extends V.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(this.props.name,e)},this.props.form.registerComponent(this.props)}getValue(){let e=this.props.form.getValue(this.props.name);if(!e&&this.props.form?.store?.formCache){let e=this.props.form.store.formCache.languageId;if(e===`EN2`)return`GBR`;if(e===`EN`)return`USA`}return e||``}getError(){return this.props.store.getError(this.props.name)}get selectOptions(){return(0,G.isArray)(this.props.options)?this.props.options.map(e=>({id:e,content:(0,K.jsx)(J.LanguageIcon,{languageId:e,width:`24px`})})):[]}render(){return(0,K.jsxs)(qSe,{margin:this.props.margin,children:[(0,K.jsx)(nq,{...this.props}),(0,K.jsx)(Cq,{options:this.selectOptions,value:this.getValue(),onChange:this.handleChange,placeholder:`Select ${this.props.label}`,disabled:this.props.disabled,centerOptions:!0}),(0,K.jsx)(rq,{message:this.getError()})]})}},Eq.propTypes={name:Z.default.string,label:Z.default.string,required:Z.default.bool,store:Z.default.object.isRequired,options:Z.default.oneOfType([Z.default.object,Z.default.array]),onChange:Z.default.func.isRequired,form:Z.default.object.isRequired,disabled:Z.default.bool,margin:Z.default.string},Eq.defaultProps={options:[],disabled:!1},Eq),KSe(Tq.prototype,`selectOptions`,[E],Object.getOwnPropertyDescriptor(Tq.prototype,`selectOptions`),Tq.prototype),Tq))||wq;D();var Dq;function Oq(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var kq=(Dq=class{constructor(e,t){this.onChange=(e,t)=>
9411{this.store.setFormCacheValue(e,t)},(0,W.isPresent)(e)?this.store=e:console.warn(`Your form is being instantiated with an empty store.`),this.props=t||{}}get isUpdate(){return this.store.hasShowData}get submissionEnabled(){return this.validated&&this.store.dirtyForm}get validated(){let e=(0,W.isBlank)(ie(this.store.requiredFields).find(e=>(0,W.isBlank)(ie(this.store.formCache)[e]))),t=Object.entries(ie(this.store.formCache)).filter(([e])=>e.includes(`email`)).every(([,e])=>(0,W.isValidEmail)(e));return e&&t}onSubmit(){this.isUpdate?this.store.update({ids:ie(this.props.ids),data:this.store.serializedFormCache,failureCallback:this.props.onAfterUpdate},this.props.onAfterUpdate):this.store.create({ids:ie(this.props.ids),data:this.store.serializedFormCache,failureCallback:this.props.onAfterCreate},this.props.onAfterCreate),this.props.resetFormOnSubmit?this.store.resetFormCache():this.store.resetPristine()}onClear(){this.store.resetFormCache()}getValue(e){return this.store.formCache[e]}registerComponent(e){let t=this.store.hasShowData?this.store.showData[e.name]:e.defaultValue;this.store.initializeFormCacheValue(e.name,t),this.store.registerFormField(e.name,e.required)}unregisterComponent(){}input(e){return(0,K.jsx)(TSe,{store:this.store,onChange:this.onChange,form:this,...e})}select(e){return(0,K.jsx)(kSe,{store:this.store,onChange:this.onChange,form:this,...e})}flatSelect(e){return(0,K.jsx)(jSe,{store:this.store,onChange:this.onChange,form:this,...e})}checkbox(e){return(0,K.jsx)(NSe,{store:this.store,onChange:this.onChange,form:this,...e})}toggle(e){return(0,K.jsx)(zSe,{store:this.store,onChange:this.onChange,form:this,...e})}list(e){return(0,K.jsx)(DSe,{store:this.store,onChange:this.onChange,form:this,...e})}textarea(e){return(0,K.jsx)(FSe,{store:this.store,onChange:this.onChange,form:this,...e})}flagSelect(e){return(0,K.jsx)(JSe,{store:this.store,onChange:this.onChange,form:this,...e})}},Oq(Dq.prototype,`isUpdate`,[E],Object.getOwnPropertyDescriptor(Dq.prototype,`isUpdate`),Dq.prototype),Oq(Dq.prototype,`submissionEnabled`,[E],Object.getOwnPropertyDescriptor(Dq.prototype,`submissionEnabled`),Dq.prototype),Oq(Dq.prototype,`validated`,[E],Object.getOwnPropertyDescriptor(Dq.prototype,`validated`),Dq.prototype),Dq);D();var Aq,jq;function Mq(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var YSe=N.div``,Nq=N.div` 9412 display: flex; 9413 gap: 30px; 9414`,XSe=N(Nq)` 9415 flex-direction: ${e=>e.isMobile?`column`:`row`}; 9416 gap: ${e=>e.isMobile?0:`30px`}; 9417`,Pq=j(Aq=(jq=class extends V.Component{get selectedLanguageId(){return U.AppUI.authUserStore?.formCache?.languageId}get languageWithCountriesIsSelected(){return this.selectedLanguageId&&(0,W.isPresent)(q.Constants.COUNTRIES_FOR_LANGUAGE_ID[this.selectedLanguageId])}get englishIsSelected(){return this.selectedLanguageId?.startsWith(`EN`)}get onlyShowNativeLanguageIsEnabled(){return!!U.AppUI.authUserStore?.formCache?.onlyShowNativeLanguage}get flagOptions(){return q.Constants.COUNTRIES_FOR_LANGUAGE_ID[this.selectedLanguageId]||[]}componentDidMount(){this.disposer=ne(()=>this.selectedLanguageId,e=>{U.AppUI.authUserStore?.formCache?.flagCountry&&!this.flagOptions.includes(U.AppUI.authUserStore?.formCache?.flagCountry)&&this.props.form.onChange(`flagCountry`,null),e===`EN`?this.props.form.onChange(`flagCountry`,`USA`):e===`EN2`?this.props.form.onChange(`flagCountry`,`GBR`):this.flagOptions.length>0&&!U.AppUI.authUserStore?.formCache?.flagCountry&&this.props.form.onChange(`flagCountry`,this.flagOptions[0])})}componentWillUnmount(){this.disposer&&this.disposer()}render(){return(0,K.jsxs)(YSe,{children:[(0,K.jsxs)(Nq,{children:[this.props.form.select({margin:`0 0 20px 0`,name:`languageId`,label:`Your Native Language`,options:U.AppUI.nativeLanguageOptionsForLanguageId(this.selectedLanguageId)}),U.AppUI.siteIsDefault&&!this.englishIsSelected&&this.props.form.select({margin:`0 0 20px 0`,name:`englishPreference`,label:`English Preference`,options:[[`us`,`American English`],[`uk`,`British English`]],toolTip:`English translations are displayed in addition to your native language.`}),U.AppUI.siteIsDefault&&this.languageWithCountriesIsSelected&&this.props.form.flagSelect({margin:`0 0 20px 0`,name:`flagCountry`,label:`Flag`,toolTip:`This flag will appear next to English translations.`,options:this.flagOptions})]}),!this.englishIsSelected&&U.AppUI.siteIsDefault&&this.props.form.toggle({margin:`0 0 20px 0`,name:`onlyShowNativeLanguage`,label:`Only show my native language (when possible)`}),!this.englishIsSelected&&!this.onlyShowNativeLanguageIsEnabled&&U.AppUI.siteIsDefault&&this.props.form.toggle({margin:`0 0 20px 0`,name:`showNativeLanguageFirst`,label:`Show my native language first`}),(0,K.jsxs)(XSe,{isMobile:U.AppUI.layout.isMobile,children:[U.AppUI.siteIsDefault&&this.props.form.select({margin:`0 0 20px 0`,name:`deLevelId`,label:`Your German Level`,options:U.AppUI.levelStore.indexData.map(e=>({id:e.id,name:e.nameWithAbbreviation}))}),U.AppUI.siteIsDefault&&this.props.form.select({margin:`0 0 20px 0`,name:`esLevelId`,label:`Your Spanish Level`,options:U.AppUI.levelStore.indexData.map(e=>({id:e.id,name:e.nameWithAbbreviation}))}),U.AppUI.siteIsDefault&&this.props.form.select({margin:`0 0 20px 0`,name:`frLevelId`,label:`Your French Level`,options:U.AppUI.levelStore.indexData.map(e=>({id:e.id,name:e.nameWithAbbreviation}))})]})]})}},Mq(jq.prototype,`selectedLanguageId`,[E],Object.getOwnPropertyDescriptor(jq.prototype,`selectedLanguageId`),jq.prototype),Mq(jq.prototype,`languageWithCountriesIsSelected`,[E],Object.getOwnPropertyDescriptor(jq.prototype,`languageWithCountriesIsSelected`),jq.prototype),Mq(jq.prototype,`englishIsSelected`,[E],Object.getOwnPropertyDescriptor(jq.prototype,`englishIsSelected`),jq.prototype),Mq(jq.prototype,`onlyShowNativeLanguageIsEnabled`,[E],Object.getOwnPropertyDescriptor(jq.prototype,`onlyShowNativeLanguageIsEnabled`),jq.prototype),Mq(jq.prototype,`flagOptions`,[E],Object.getOwnPropertyDescriptor(jq.prototype,`flagOptions`),jq.prototype),jq))||Aq;D();var Fq,Iq,Lq,Rq,zq,Bq,Vq;function Hq(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Uq(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ZSe=N.div` 9418 display: flex; 9419 flex-direction: column; 9420 gap: ${z.md}; 9421 textarea { 9422 height: 80px!important; 9423 } 9424`,QSe=N.div` 9425 9426`,$Se=j(Fq=(Iq=class extends V.Component{constructor(e){super(e),Hq(this,`formLoaded`,Lq,this),Hq(this,`showConfirmDeleteModal`,Rq,this),Hq(this,`previousEmail`,zq,this),Hq(this,`emailHasChanged`,Bq,this),Hq(this,`emailError`,Vq,this),this.onEmailChange=(e,t)=>
9426{this.form.onChange(e,t),this.emailError=null},this.onAfterUpdate=async e=>{if(e&&e.failure){this.emailError=e.message,this.form.store.formCache.email!==this.previousEmail&&(this.form.store.setFormCacheValue(`email`,this.previousEmail),this.form.store.pristineFormCache.email=this.previousEmail);return}this.emailError=null,await U.AppUI.loadUserPromise(),this.emailHasChanged=this.form.store.formCache.email&&this.previousEmail&&this.form.store.formCache.email!==this.previousEmail,this.props.onAfterUpdate&&this.props.onAfterUpdate(e)},U.AppUI.levelStore.hasIndexData||U.AppUI.levelStore.getIndex(),re(()=>{U.AppUI.userIsLoaded&&(this.formLoaded=!0,this.previousEmail=U.AppUI.user.email,this.form=new kq(U.AppUI.authUserStore,{...this.props,onAfterUpdate:this.onAfterUpdate}))})}get streakExtendGoal(){return(0,W.isBlank)(U.AppUI.authUserStore?.formCache?.dailyXpGoal)?U.AppUI.user?.streakExtendGoal:Math.max(100,U.AppUI.authUserStore?.formCache?.dailyXpGoal*2)}fields(){return(0,K.jsxs)(QSe,{children:[U.AppUI.authUserStore.dirtyForm&&(0,K.jsx)(B,{textAlign:`center`,children:`You have unsaved changes.`}),this.emailError&&(0,K.jsx)(B,{textAlign:`center`,error:!0,children:`That email address was already taken.`}),(0,W.isPresent)(U.AppUI.user?.email)&&!U.AppUI.user.email.endsWith(`@apple.com`)&&!U.AppUI.user.email.endsWith(`privaterelay.appleid.com`)&&this.form.input({type:`email`,required:!0,margin:`0 0 20px 0`,name:`email`,label:`Your Email`,onChange:this.onEmailChange}),this.form.input({margin:`0 0 20px 0`,name:`name`,label:`Your name`,maxLength:q.Constants.MAX_NAME_LENGTH}),this.form.input({margin:`0 0 20px 0`,name:`location`,label:`Your location`}),this.form.textarea({margin:`0 0 20px 0`,name:`introduction`,label:`Your introduction`}),this.form.select({margin:`0 0 20px 0`,name:`timeZone`,label:`Your Time Zone`,options:q.TimeZones}),(0,K.jsx)(Pq,{form:this.form}),this.form.select({margin:`0 0 20px 0`,name:`dailyXpGoal`,label:`Your Daily XP Goal`,options:this.props.dailyXpGoalOptions,includeBlank:!1}),this.form.toggle({margin:`0 0 20px 0`,name:`enableStreakExtension`,label:`Get an extra Streak day at ${this.streakExtendGoal} XP`}),this.form.toggle({margin:`0 0 20px 0`,name:`blockUserTracking`,label:`Block tracking of user activity`}),this.form.toggle({margin:`0 0 20px 0`,name:`hideOnLeaderboard`,label:`Don't Add Me to Leagues`}),this.form.toggle({margin:`0 0 20px 0`,name:`hideTriviaRecord`,label:`Hide my trivia win/loss record`})]})}render(){return(0,K.jsxs)(ZSe,{children:[(0,K.jsx)(SV,{children:`User Settings`}),U.AppUI.authUserStore.hasOutstandingRequests&&(0,K.jsx)(P,{}),this.showConfirmDeleteModal&&(0,K.jsx)(UW,{onClose:()=>this.showConfirmDeleteModal=!1,activeStripeSubscriptionExists:this.props.activeStripeSubscriptionExists,otherSitesWarning:this.props.otherSitesWarning}),(0,K.jsx)(R,{heading:`3`,children:`User Settings`}),this.formLoaded&&(0,K.jsx)(QK,{form:this.form,fields:this.fields(),...this.props}),(0,K.jsx)(R,{heading:`3`,children:`Delete Account`}),(0,K.jsx)(An,{gap:`sm`,children:(0,K.jsx)(Pn,{selectedBackground:`#CCC`,onClick:()=>this.showConfirmDeleteModal=!0,children:`Delete Account`})})]})}},Lq=Uq(Iq.prototype,`formLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Rq=Uq(Iq.prototype,`showConfirmDeleteModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zq=Uq(Iq.prototype,`previousEmail`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Bq=Uq(Iq.prototype,`emailHasChanged`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vq=Uq(Iq.prototype,`emailError`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Uq(Iq.prototype,`streakExtendGoal`,[E],Object.getOwnPropertyDescriptor(Iq.prototype,`streakExtendGoal`),Iq.prototype),Iq))||Fq,eCe=(0,Y.SettingsBillingWrapper)((0,Y.SettingsStreakRepairWrapper)($Se));k();var Wq=Te` 9427 from { 9428 opacity: 0; 9429 } 9430 to { 9431 opacity: 1; 9432 } 9433`,tCe=Te` 9434 from { 9435 transform: translateX(-50%) scale(0) rotate(0deg); 9436 opacity: 0; 9437 } 9438 70% { 9439 transform: translateX(-50%) scale(1.2) rotate(380deg); 9440 opacity: 1; 9441 } 9442 to { 9443 transform: translateX(-50%) scale(1) rotate(360deg); 9444 opacity: 1; 9445 } 9446`,nCe=N.div` 9447 display: flex; 9448 flex-direction: column; 9449 align-items: center; 9450 justify-content: center; 9451 gap: ${z.lg}; 9452 width: 100%; 9453 height: 100%; 9454 min-height: 400px; 9455 text-align: center; 9456 padding: 20px; 9457`,rCe=N.div` 9458 position: relative; 9459 color: ${q.Theme.green}; 9460 animation: ${Wq} 0.3s ease-out; 9461`,iCe=N.i` 9462 font-size: 140px; 9463`,aCe=N.i` 9464 color: inherit; 9465 font-size: 40px; 9466 position: absolute; 9467 top: 25%; 9468 left: 50%; 9469 transform: translateX(-50%); 9470 animation: ${tCe} 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both; 9471`,oCe=N.p` 9472 color: #333; 9473 text-wrap: balance; 9474 animation: ${Wq} 0.3s ease-out 0.1s both; 9475`,sCe=({email:e})=>(0,K.jsxs)(nCe,{children:[(0,K.jsxs)(rCe,{children:[(0,K.jsx)(iCe,{className:`fa fa-envelope-o`}),(0,K.jsx)(aCe,{className:`fa fa-check-circle`})]}
9475),(0,K.jsxs)(oCe,{children:[`Your email has been updated, and you have been signed out.`,(0,K.jsx)(`br`,{}),`We have sent a confirmation email to `,(0,K.jsx)(`strong`,{children:e}),`.`,(0,K.jsx)(`br`,{}),`Once your new email is confirmed, you can `,(0,K.jsx)(F,{className:`underline`,to:`onboarding.sign_in`,children:`sign back in`}),`.`]})]});D();var Gq,Kq,qq,Jq,Yq,Xq,Zq;function Qq(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function $q(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var eJ=N.div` 9476 display: flex; 9477 flex-direction: column; 9478 gap: ${z.lg}; 9479`,cCe=N.div` 9480 9481`,lCe=1,uCe=j(Gq=(Kq=class extends V.Component{constructor(e){super(e),Qq(this,`formLoaded`,qq,this),Qq(this,`showConfirmDeleteModal`,Jq,this),Qq(this,`previousEmail`,Yq,this),Qq(this,`emailHasChanged`,Xq,this),Qq(this,`emailError`,Zq,this),this.onEmailChange=(e,t)=>
9481{this.form.onChange(e,t),this.emailError=null},this.onAfterUpdate=async e=>{if(e&&e.failure){this.emailError=e.message,this.form.store.formCache.email!==this.previousEmail&&(this.form.store.setFormCacheValue(`email`,this.previousEmail),this.form.store.pristineFormCache.email=this.previousEmail);return}this.emailError=null,await U.AppUI.loadUserPromise(),this.emailHasChanged=this.form.store.formCache.email&&this.previousEmail&&this.form.store.formCache.email!==this.previousEmail,this.props.onAfterUpdate&&this.props.onAfterUpdate(e)},U.AppUI.levelStore.hasIndexData||U.AppUI.levelStore.getIndex(),re(()=>{U.AppUI.userIsLoaded&&(this.formLoaded=!0,this.previousEmail=U.AppUI.user.email,this.form=new kq(U.AppUI.authUserStore,{...this.props,onAfterUpdate:this.onAfterUpdate}))})}get streakExtendGoal(){return(0,W.isBlank)(U.AppUI.authUserStore?.formCache?.dailyXpGoal)?U.AppUI.user?.streakExtendGoal:Math.max(100,U.AppUI.authUserStore?.formCache?.dailyXpGoal*2)}get emailChangeAvailableAt(){let e=U.AppUI.user?.confirmedAt;return e?e.momentObj.clone().add(lCe,`months`).add(1,`day`).startOf(`day`):null}get emailChangeIsDisabled(){return this.emailChangeAvailableAt?.isAfter(A())||!1}get emailChangeDisclaimer(){if(!this.emailChangeIsDisabled)return null;let e=A().startOf(`day`);return`You will next be able to change your email address in ${(0,vL.default)(`day`,this.emailChangeAvailableAt.clone().startOf(`day`).diff(e,`days`),!0)}, on ${this.emailChangeAvailableAt.format(`D MMMM`)}.`}fields(){return(0,K.jsxs)(cCe,{children:[U.AppUI.authUserStore.dirtyForm&&(0,K.jsx)(B,{textAlign:`center`,children:`You have unsaved changes.`}),this.emailError&&(0,K.jsx)(B,{textAlign:`center`,error:!0,children:`That email address was already taken.`}),(0,W.isPresent)(U.AppUI.user?.email)&&!U.AppUI.user.email.endsWith(`@apple.com`)&&!U.AppUI.user.email.endsWith(`privaterelay.appleid.com`)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{style:{opacity:this.emailChangeIsDisabled?.625:1},children:this.form.input({type:`email`,required:!0,margin:this.emailChangeIsDisabled?`0 0 6px 0`:`0 0 20px 0`,name:`email`,label:`Your Email`,onChange:this.onEmailChange,disabled:this.emailChangeIsDisabled})}),this.emailChangeDisclaimer&&(0,K.jsx)(R,{color:q.Theme.gray,fontSize:`14px`,lineHeight:`20px`,margin:`0 0 20px 0`,children:this.emailChangeDisclaimer})]}),this.form.input({margin:`0 0 20px 0`,name:`name`,label:`Your name`,maxLength:q.Constants.MAX_NAME_LENGTH}),(0,K.jsx)(Pq,{form:this.form})]})}render(){return this.emailHasChanged?(0,K.jsx)(eJ,{children:(0,K.jsx)(sCe,{email:this.form.store.formCache.email})}):(0,K.jsxs)(eJ,{children:[(0,K.jsx)(SV,{children:`User Settings`}),U.AppUI.authUserStore.hasOutstandingRequests&&(0,K.jsx)(P,{}),this.showConfirmDeleteModal&&(0,K.jsx)(UW,{onClose:()=>this.showConfirmDeleteModal=!1,activeStripeSubscriptionExists:this.props.activeStripeSubscriptionExists,otherSitesWarning:this.props.otherSitesWarning}),(0,K.jsx)(R,{heading:`2`,children:`User Settings`}),(0,K.jsx)(R,{heading:`3`,children:`Account Information`}),this.formLoaded&&(0,K.jsx)(QK,{form:this.form,fields:this.fields(),...this.props}),(0,K.jsx)(kK,{}),(0,K.jsx)(nG,{}),(0,K.jsxs)(An,{gap:`sm`,children:[(0,K.jsx)(R,{heading:`3`,children:`Delete Account`}),(0,K.jsx)(Pn,{selectedBackground:q.Theme.red,onClick:()=>this.showConfirmDeleteModal=!0,children:`Delete Account`})]})]})}},qq=$q(Kq.prototype,`formLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jq=$q(Kq.prototype,`showConfirmDeleteModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yq=$q(Kq.prototype,`previousEmail`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Xq=$q(Kq.prototype,`emailHasChanged`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zq=$q(Kq.prototype,`emailError`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$q(Kq.prototype,`streakExtendGoal`,[E],Object.getOwnPropertyDescriptor(Kq.prototype,`streakExtendGoal`),Kq.prototype),$q(Kq.prototype,`emailChangeAvailableAt`,[E],Object.getOwnPropertyDescriptor(Kq.prototype,`emailChangeAvailableAt`),Kq.prototype),Kq))||Gq,dCe=(0,Y.SettingsBillingWrapper)(uCe),tJ,nJ,fCe=N.div` 9482 padding: ${e=>e.padding}; 9483 font-size: ${e=>e.fontSize}; 9484 font-weight: bold; 9485 cursor: pointer;
9486 color: ${e=>e.selected?e.borderColor:`#A9A9A9`}; 9487 border-bottom: ${e=>e.selected?`${e.compact?3:4}px solid ${e.borderColor}`:null}; 9488 margin: 0 5px 0 0; 9489 text-transform: uppercase; 9490 white-space: nowrap; 9491`,rJ=M(j(tJ=(nJ=class extends V.Component{get padding(){return this.props.padding||`10px`}get fontSize(){return this.props.fontSize||(this.props.compact?`13px`:U.AppUI.layout.isMobile?`12px`:`14px`)}render(){return(0,K.jsx)(fCe,{fontSize:this.fontSize,selected:this.props.selected,padding:this.padding,margin:this.props.margin,onClick:this.props.onClick,borderColor:this.props.borderColor,compact:this.props.compact,children:this.props.children})}},nJ.defaultProps={margin:`0 2px 0 0`,borderColor:q.Theme.blue},nJ))||tJ),iJ,aJ,pCe=N.div` 9492 margin: ${e=>e.margin}; 9493`,mCe=N.div` 9494 padding: ${e=>e.contentPadding}; 9495 background: ${e=>e.background}; 9496`,hCe=N.div` 9497 visibility: ${e=>e.loading?`hidden`:`visible`}; 9498 border-bottom: ${e=>e.compact?`none`:`1px solid #CCC`}; 9499 display: flex; 9500 width: 100%; 9501 margin-bottom: ${e=>e.compact?0:`10px`}; 9502`,gCe=j(iJ=(aJ=class extends V.Component{render(){return(0,K.jsxs)(pCe,{margin:this.props.margin,children:[(0,K.jsx)(hCe,{loading:this.props.loading,"aria-hidden":this.props.loading||void 0,compact:this.props.compact,children:this.props.tabs.map(e=>e.hidden?null:(0,K.jsx)(rJ,{selected:e.name===this.props.selected,onClick:()=>this.props.onSelectTab(e.name),padding:this.props.tabPadding,margin:this.props.tabMargin,borderColor:this.props.borderColor,fontSize:this.props.fontSize,compact:this.props.compact,children:e.label||e.name},e.name))}),(0,K.jsx)(mCe,{contentPadding:this.props.contentPadding,background:this.props.background,children:this.props.children.filter(Boolean)[this.props.selectedIndex]})]})}},aJ.defaultProps={contentPadding:`10px 0`,background:`#FFF`},aJ))||iJ,oJ=(0,Y.TabWrapper)(gCe);D();var sJ,cJ,lJ,uJ,dJ;function fJ(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function pJ(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _Ce=N.div` 9503 visibility: ${e=>e.imageNotLoaded?`hidden`:`visible`}; 9504 border: ${e=>e.borderWidth} solid ${e=>e.borderColor}; 9505 border-top-right-radius: ${e=>e.borderTopRadius}; 9506 border-top-left-radius: ${e=>e.borderTopRadius}; 9507 border-bottom-right-radius: ${e=>e.borderBottomRadius}; 9508 border-bottom-left-radius: ${e=>e.borderBottomRadius}; 9509 position: relative; 9510 overflow: hidden; 9511 z-index: 0; 9512 width: ${e=>e.width}; 9513 height: ${e=>e.height}; 9514 cursor: pointer; 9515 display: flex; 9516 flex-direction: column; 9517 align-items: center; 9518 background: whitesmoke; 9519`,vCe=N.div` 9520 z-index: ${q.Theme.z.foreground}; 9521 width: 0; 9522 height: 0; 9523 border-style: solid; 9524 border-width: ${e=>e.smallLock?`0 50px 50px 0`:`0 70px 70px 0`}; 9525 border-color: transparent #777777 transparent transparent; 9526 position: absolute; 9527 top: 0; 9528 right: 0; 9529 pointer-events: none; 9530 .icon-wrapper { 9531 svg { 9532 fill: #FFF; 9533 width: 11px; 9534 position: absolute; 9535 border-top-left-radius: 30px; 9536 border-top-right-radius: 30px; 9537 right: ${e=>e.smallLock?`-40px`:`-50px`}; 9538 top: ${e=>e.smallLock?`5px`:`10px`}; 9539 } 9540 } 9541`,yCe=N.div` 9542 visibility: hidden; 9543`,bCe=N.div` 9544 width: ${e=>e.width}; 9545 height: ${e=>e.height}; 9546 border-radius: ${e=>e.borderRadius}; 9547 display: flex; 9548 align-items: center; 9549 justify-content: center; 9550 margin-top: ${e=>e.marginTop}; 9551 margin-bottom: ${e=>e.marginBottom}; 9552 img { 9553 width: ${e=>e.width}; 9554 height: ${e=>e.height}; 9555 border-radius: ${e=>e.borderRadius}; 9556 opacity: ${e=>e.noAccess?.75:1}; 9557 -webkit-filter: ${e=>e.noAccess?`grayscale(1)`:`none`}; 9558 filter: ${e=>e.noAccess?`gray`:`none`}; 9559 filter: ${e=>e.noAccess?`grayscale(1)`:`none`}; 9560 } 9561`,xCe=N.div` 9562 background: ${e=>e.finished?`rgba(45, 224, 37, 0.29)`:`none`}; 9563 position: absolute; 9564 top: 0; 9565 left: 0; 9566 width: 100%; 9567 height: 100%; 9568 overflow: hidden; 9569`,mJ=N.div` 9570 position: absolute; 9571 width: 100%; 9572 height: 100%; 9573 left: 0; 9574 right: 0; 9575 top: 0; 9576 bottom: 0; 9577 margin: auto; 9578 display: flex; 9579 align-items: center; 9580 justify-content: center; 9581 .icon-wrapper { 9582 background-image: linear-gradient(to right top, rgba(19, 171, 94, 0.73), rgba(61, 188, 85, 0.75), rgba(95, 205, 72, 0.75), rgba(131, 220, 54, 0.75), rgba(168, 235, 18, 0.74)); 9583 height: 100%; 9584 width: 100%; 9585 display: flex; 9586 align-items: center; 9587 justify-content: center; 9588 } 9589 .checkmark-outline-icon { 9590 svg { 9591 width: ${e=>e.checkmarkWidth}; 9592 fill: #FFF; 9593 } 9594 } 9595 @media only screen and (max-width : 549px) { 9596 .icon-wrapper { 9597 border-radius: 0; 9598 } 9599 svg { 9600 width: 45px; 9601 } 9602 } 9603`,hJ=M(j(sJ=(cJ=(dJ=class extends V.Component{constructor(...e){super(...e),fJ(this,`initiateAnimation`,lJ,this),fJ(this,`imageLoaded`,uJ,this),this.disposer=null,this.animate=()=>{U.AppUI.soundEffectStore.play(`chime`),this.initiateAnimation=!0},this.onImageLoad=()=>{this.imageLoaded=!0}}get scale(){return!this.props.finished||this.props.finished&&this.props.animate&&!this.initiateAnimation?0:1}componentDidMount(){this.props.animate&&this.waitForDeckCloseAndAnimate()}componentDidUpdate(e){!e.animate&&this.props.animate&&this.waitForDeckCloseAndAnimate()}componentWillUnmount(){this.animationTimeout&&=(clearTimeout(this.animationTimeout),null),this.disposer&&=(this.disposer(),null)}waitForDeckCloseAndAnimate(){if(this.disposer&&=(this.disposer(),null),U.DeckUI.deckNavigationCompleted){this.animationTimeout=setTimeout(this.animate,100);return}this.disposer=ne(()=>U.DeckUI.deckNavigationCompleted,e=>{e&&this.props.animate&&(this.animationTimeout=setTimeout(this.animate,100),this.disposer&&=(this.disposer(),null))})}render(){return(0,K.jsxs)(_Ce,{width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),borderColor:this.props.borderColor,borderTopRadius:this.props.borderTopRadius,borderBottomRadius:this.props.borderBottomRadius,borderWidth:(0,W.pixify)(this.props.borderWidth),imageNotLoaded:this.props.src&&!this.imageLoaded,className:(0,Qg.default)({"image-not-loaded":this.props.src&&!this.imageLoaded,"image-loaded":this.imageLoaded}),children:[!this.props.hasAccess&&this.props.showLock&&(0,K.jsx)(vCe,{smallLock:this.props.smallLock&&U.AppUI.layout.isMobile,children:(0,K.jsx)(J.LockIcon,{})}),(0,K.jsx)(bCe,{width:(0,W.pixify)(this.props.imageWidth||this.props.width||`100%`),height:(0,W.pixify)(this.props.imageHeight||this.props.height||`100%`),noAccess:!this.props.hasAccess,borderRadius:this.props.imageBorderRadius,marginTop:this.props.imageMarginTop,marginBottom:this.props.imageMarginBottom,children:this.props.src&&(0,K.jsx)(`img`,{src:this.props.src,onLoad:this.onImageLoad,alt:``})}),(0,K.jsxs)(xCe,{borderTopRadius:this.props.borderTopRadius,borderBottomRadius:this.props.borderBottomRadius,finished:this.props.finished,children:[(0,K.jsx)(yCe,{children:this.scale}),this.props.animate&&(0,K.jsx)(Rv.Motion,{style:{scale:(0,Rv.spring)(this.scale)},onRest:()=>this.props.afterAnimation(),children:({scale:e})=>(0,K.jsx)(mJ,{checkmarkWidth:(0,W.pixify)(this.props.checkmarkWidth),borderTopRadius:this.props.borderTopRadius,borderBottomRadius:this.props.borderBottomRadius,style:{transform:`scale(${e})`},children:(0,K.jsx)(J.CheckmarkOutlineIcon,{})})}),!this.props.animate&&this.props.finished&&(0,K.jsx)(mJ,{checkmarkWidth:this.props.checkmarkWidth,children:(0,K.jsx)(J.CheckmarkOutlineIcon,{})})]})]})}},dJ.defaultProps={checkmarkWidth:`70px`,borderTopRadius:`40px`,borderBottomRadius:`40px`},dJ),lJ=pJ(cJ.prototype,`initiateAnimation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uJ=pJ(cJ.prototype,`imageLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pJ(cJ.prototype,`scale`,[E],Object.getOwnPropertyDescriptor(cJ.prototype,`scale`),cJ.prototype),cJ))||sJ);me();var gJ,_J,SCe=N.div` 9604 width: ${e=>e.width}; 9605 margin-right: ${e=>e.marginRight}; 9606 margin-left: ${e=>e.marginLeft}; 9607 margin-bottom: ${e=>e.marginBottom}; 9608 position: relative; 9609 cursor: pointer; 9610 -moz-transition: all 0.2s ease; 9611 -o-transition: all 0.2s ease; 9612 -webkit-transition: all 0.2s ease; 9613 transition: all 0.2s ease; 9614 &:hover { 9615 transform: ${e=>e.disabled?`scale(1)`:`scale(1.03)`}; 9616 } 9617`,CCe=N.div` 9618 height: ${e=>e.height}; 9619 width: ${e=>e.width}; 9620 border: 5px solid ${e=>e.borderColor}; 9621 ${(0,X.flexCenterColumn)()} 9622 padding-top: 5px; 9623 background: white; 9624 line-height: 16px; 9625 text-align: left; 9626 color: black; 9627 position: relative; 9628 border-bottom-left-radius: 30px; 9629 border-bottom-right-radius: 30px; 9630 border-top-left-radius: 44px; 9631 border-top-right-radius: 44px; 9632 overflow: hidden; 9633 z-index: 2; 9634`,wCe=N.div` 9635 height: ${e=>e.height}; 9636 width: ${e=>e.width}; 9637 border: 5px solid ${e=>e.borderColor}; 9638 border-bottom-left-radius: 30px; 9639 border-bottom-right-radius: 30px; 9640 border-top-left-radius: 44px; 9641 border-top-right-radius: 44px; 9642 position: absolute; 9643 bottom: -10px; 9644 z-index: 1; 9645 background: #E7E7E7; 9646`,TCe=N.div` 9647 position: relative; 9648 display: block; 9649 height: ${e=>e.height}; 9650 width: ${e=>e.width}; 9651 border-top-right-radius: 30px; 9652 overflow: hidden; 9653`,ECe=N.div` 9654 flex: 1; 9655 display: flex; 9656 align-items: center; 9657 justify-content: center; 9658 flex-direction: column;
9659 width: calc(100% - 10px); 9660 margin-bottom: 5px; 9661 border-bottom-left-radius: 20px; 9662 border-bottom-right-radius: 20px; 9663 background: ${e=>e.background}; 9664 padding: 0 10px; 9665 position: relative; 9666`,vJ=N.div` 9667 z-index: ${q.Theme.z[`over-foreground`]}; 9668 position: absolute; 9669 top: 0; 9670 left: 0; 9671 right: 0; 9672 display: flex; 9673 align-items: center; 9674 justify-content: center; 9675`,yJ=N.div` 9676 background: ${e=>e.background}; 9677 color: white; 9678 padding: 3px 7px; 9679 font-size: 11px; 9680 line-height: 12px; 9681 font-weight: 700; 9682 width: 45px; 9683 border-bottom-left-radius: 5px; 9684 border-bottom-right-radius: 5px; 9685 display: flex; 9686 align-items: center; 9687 justify-content: center; 9688 border: 2px solid rgba(255, 255, 255, 0.8); 9689 border-top: none; 9690`,DCe=N.div` 9691 width: calc(100% - 10px); 9692 background: #FFF; 9693 padding: 0; 9694 margin: 0 10px; 9695 height: ${e=>e.height}px; 9696 padding-top: 4px; 9697`,OCe=N.div` 9698 display: flex; 9699 align-items: center; 9700 justify-content: center; 9701 flex-direction: column; 9702`,kCe=N.div` 9703 display: flex; 9704 align-items: center; 9705 justify-content: center; 9706 flex-direction: row; 9707 svg { 9708 margin-right: 4px; 9709 } 9710`,ACe=N.div` 9711 background: linear-gradient(-134deg,#3BD7C5 0%,#0DAFF6 100%); 9712 border-top-right-radius: 35px; 9713 border-top-left-radius: 35px; 9714 width: 100%; 9715 height: 100%; 9716`,jCe=j(gJ=(_J=class extends V.Component{constructor(e){super(e),this.removeAnimation=()=>{U.DeckUI.removeFromAnimationQueue(`deckId`,this.props.deck.id)},this.id=(0,W.createUuid)()}render(){return(0,K.jsxs)(SCe,{disabled:this.props.disabled,width:(0,W.pixify)(this.props.width),marginRight:(0,W.pixify)(this.props.marginRight),marginLeft:(0,W.pixify)(this.props.marginLeft),marginBottom:(0,W.pixify)(this.props.marginBottom),onClick:this.props.onClick,children:[(this.props.deck&&!this.props.deck.webPublished||this.props.unpublished)&&(0,K.jsx)(vJ,{children:(0,K.jsx)(yJ,{background:q.Theme.red,children:`UNP`})}),this.props.new&&(0,K.jsx)(vJ,{children:(0,K.jsx)(yJ,{background:q.Theme.green,children:`NEW`})}),(0,K.jsxs)(CCe,{width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height),borderColor:this.props.borderColor,children:[(0,K.jsxs)(TCe,{width:(0,W.pixify)(this.props.width-20),height:(0,W.pixify)(this.props.width-20),children:[!this.props.deck?.imageUrl&&!this.props.children&&(0,K.jsx)(ACe,{}),!this.props.children&&this.props.deck&&this.props.deck?.imageUrl&&(0,K.jsx)(hJ,{showLock:!0,showCrown:!0,checkmarkWidth:`100px`,borderWidth:`0`,borderTopRadius:`35px`,borderBottomRadius:`0px`,hasAccess:this.props.hasAccess,finished:this.props.finished,points:this.props.deck.points,openAccess:this.props.deck.openAccess,inProgress:this.props.inProgress,src:this.props.deck.imageUrl,animate:(0,W.isPresent)(U.DeckUI.animationQueue.find(e=>e.name===`deckCompleted`&&e.deckId===this.props.deck.id)),afterAnimation:this.removeAnimation}),this.props.children]}),(0,K.jsx)(DCe,{height:this.props.progressBarHeight+8,children:(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":this.id,children:[(0,K.jsx)(Fn,{height:this.props.progressBarHeight,current:this.props.progressCurrent,total:this.props.progressTotal,borderRadius:`0`,background:this.props.borderColor===`#777777`?`#777777`:`#5f5f5f`,currentBackground:q.Theme.green}),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:this.id,class:`custom-tooltip`,children:(0,K.jsxs)(`center`,{children:[(0,K.jsxs)(`div`,{children:[(0,W.kFormatter)(this.props.progressCurrent),` of `,(0,W.kFormatter)(this.props.progressTotal)]}),(0,K.jsx)(`div`,{children:this.props.progressLabel})]})})]})}),(0,K.jsx)(ECe,{background:this.props.borderColor,children:(0,K.jsxs)(OCe,{children:[this.props.overTitle&&(0,K.jsx)(R,{center:!0,fontSize:`10px`,color:`rgba(255, 255, 255, 0.7)`,bold:!0,lineHeight:`12px`,margin:`0 0 2px`,children:this.props.overTitle}),(0,K.jsxs)(kCe,{children:[this.props.showCrownIcon&&(0,K.jsx)(J.CrownIcon,{width:`24px`,height:`24px`}),(0,K.jsx)(Vi,{resizeText:!0,width:this.props.width-20,height:60,characterLength:this.props.title&&this.props.title.length,maximumFontSize:16,children:(0,K.jsx)(R,{center:!0,bold:!0,color:`#FFF`,children:this.props.title})})]}),this.props.subTitle&&(0,K.jsx)(R,{center:!0,fontSize:`10px`,color:`rgba(255, 255, 255, 0.7)`,bold:!0,margin:`2px 0 0`,children:this.props.subTitle})]})})]}),(0,K.jsx)(wCe,{borderColor:this.props.borderColor,width:(0,W.pixify)(this.props.width),height:(0,W.pixify)(this.props.height)})]})}},_J.defaultProps={marginRight:`10px`,marginLeft:`0px`,marginBottom:`20px`},_J))||gJ,bJ=(0,Y.DeckLinkWrapper)(jCe),xJ,MCe=j(xJ=class extends V.Component{render(){return(0,K.jsx)(bJ,{...this.props,progressLabel:`Cards Seen`})}})||xJ,NCe=(0,Y.StoriesDeckLinkWrapper)(MCe),SJ,PCe=N.div` 9717 display: flex; 9718 flex-wrap: wrap; 9719 align-items: center; 9720`,FCe=j(SJ=class extends V.Component{render(){return(0,K.jsx)(PCe,{children:this.props.decks&&this.props.decks.map((e,t)=>e.deck.webPublished||U.AppUI.user.admin?(0,K.jsx)(NCe,{fromGrammarSection:this.props.fromGrammarSection,index:t,calculateWidth:U.AppUI.layout.viewportWidth<549,marginBottom:`20px`,marginRight:this.props.marginRight,deck:e.deck,treeNodeId:this.props.treeNodeId,userDeck:this.props.getUserDeck(e.deck.id
9720)},e.id):null)})}})||SJ,CJ=(0,Y.TreeNodeDecksWrapper)(FCe),wJ,ICe=N.div` 9721 font-size: 14px; 9722 .grammar-section:not(:last-child) { 9723 margin-bottom: 20px; 9724 } 9725`,LCe=j(wJ=class extends V.Component{render(){let e=this.props.treeNode?.grammarDescription,t=this.props.treeNode?.treeNodeGrammarConcepts||[];return(0,K.jsxs)(ICe,{children:[this.props.showSpinner&&(0,K.jsx)(P,{}),!this.props.showSpinner&&e&&(0,K.jsx)($i,{htmlText:e}),!this.props.showSpinner&&!e&&!this.props.treeNode.grammarDescriptionOverride&&t.map(e=>e.concept?(0,K.jsxs)(`div`,{className:`grammar-section`,children:[(0,K.jsx)(R,{heading:`3`,children:e.concept.displayNameLine1WithCase}),e.concept.displayNameLine2&&(0,K.jsx)(R,{italic:!0,fontSize:`14px`,children:e.concept.displayNameLine2}),e.concept.longDescription&&(0,K.jsx)($i,{htmlText:e.concept.longDescription})]},e.id):null),!this.props.showSpinner&&!e&&(this.props.treeNode.grammarDescriptionOverride||t.length===0)&&(0,K.jsx)($i,{htmlText:this.props.treeNode.grammarDescription})]})}})||wJ,RCe=(0,Y.TreeNodeGrammarWrapper)(LCe),TJ,zCe=N.div` 9726 9727`,BCe=N.div` 9728 border-bottom: 1px solid #CCC; 9729 margin-bottom: 10px; 9730 padding-bottom: 10px; 9731`,VCe=N.div` 9732 font-size: 14px; 9733`,HCe=N.div` 9734 display: flex; 9735 align-items: center; 9736 font-size: 18px; 9737 font-weight: bold; 9738 margin-bottom: 10px; 9739`,UCe=N.div` 9740 img { 9741 width: 100px; 9742 height: 100px; 9743 border-radius: 20px; 9744 margin-bottom: 10px; 9745 } 9746`,WCe=M(j(TJ=class extends V.Component{render(){return(0,K.jsx)(zCe,{children:this.props.treeNode&&this.props.treeNode.treeNodeDecks&&this.props.treeNode.treeNodeDecks.map(e=>e.deck.webPublished||U.AppUI.user.admin?(0,K.jsxs)(BCe,{children:[(0,K.jsx)(UCe,{children:(0,K.jsx)(`img`,{src:e.deck.imageUrl,alt:``})}),(0,K.jsx)(HCe,{children:e.deck.name}),(0,K.jsx)(VCe,{children:e.deck.wordsList})]},e.id):null)})}})||TJ),EJ,GCe=N.div` 9747 display: flex; 9748 flex-direction: column; 9749 background: white; 9750 width: 100%; 9751 padding: 20px; 9752 border-radius: 5px; 9753`,KCe=N.div` 9754 display: inline-block; 9755 margin: ${e=>e.margin}; 9756 font-weight: normal; 9757 font-size: 20px; 9758 font-style: italic; 9759`,qCe=N.div` 9760 font-weight: bold; 9761 font-size: 20px; 9762 margin: 0 0 10px 0; 9763 display: flex; 9764 flex-direction: ${e=>e.flexDirection}; 9765`,JCe=N.div` 9766 9767`,YCe=N.div` 9768 font-size: 14px; 9769 margin-bottom: 20px; 9770`,XCe=N.div` 9771 display: flex; 9772`,ZCe=N.div` 9773 flex: 1; 9774`,QCe=N.div` 9775 font-size: 11px; 9776 text-decoration: underline; 9777 text-align: center; 9778 padding: 5px; 9779`,$Ce=j(EJ=class extends V.Component{componentDidMount(){document.getElementById(`top`).scrollIntoView()}render(){return(0,K.jsxs)(GCe,{children:[this.props.treeNode&&(0,K.jsx)(XCe,{children:(0,K.jsxs)(ZCe,{children:[(0,K.jsxs)(qCe,{flexDirection:U.TreeUI.layout.isMobile?`column`:`row`,children:[(0,K.jsx)(JCe,{children:this.props.treeNode.name}),(0,W.isPresent)(this.props.treeNode.grammarTitle)&&(0,K.jsx)(KCe,{margin:U.TreeUI.layout.isMobile?`5px 0 0 0`:`0 0 0 7px`,children:this.props.treeNode.grammarTitle})]}),this.props.treeNode.descriptionMd&&(0,K.jsx)(YCe,{children:(0,K.jsx)($i,{markdown:this.props.treeNode.descriptionMd})})]})}),this.props.treeNode&&(0,K.jsxs)(oJ,{tabs:this.props.tabs,children:[(0,K.jsx)(CJ,{treeNodeId:this.props.treeNodeId,userTreeNode:this.props.userTreeNode,decks:this.props.treeNode&&this.props.treeNode.treeNodeDecks}),(0,K.jsx)(WCe,{treeNode:this.props.treeNode}),this.props.showGrammar&&(0,K.jsx)(RCe,{treeNodeId:this.props.treeNodeId})]}),U.AppUI.user.admin&&this.props.treeNode&&this.props.treeNode.treeId&&this.props.treeNode.treeModuleId&&(0,K.jsx)(QCe,{children:(0,K.jsx)(F,{to:{name:`builder.tree_nodes.edit`,params:{treeNodeId:this.props.treeNode.id,treeId:this.props.treeNode.treeId,treeModuleId:this.props.treeNode.treeModuleId}},children:`Admin Link`})})]})}})||EJ,ewe=pf((0,Y.TreeNodeShowWrapper)($Ce)),DJ,twe=N.div` 9780 display: flex; 9781 flex-direction: column; 9782 align-items: center; 9783 justify-content: center; 9784 background: white; 9785 margin: ${e=>e.margin}; 9786 border-radius: 5px; 9787 width: 100%; 9788`,nwe=N.div` 9789 width: 100%; 9790 font-weight: bold; 9791 text-align: center; 9792 padding: 10px 0; 9793 position: relative; 9794 ${e=>!e.disableToggle&&` 9795 &:hover { 9796 cursor: pointer; 9797 background: whitesmoke; 9798 } 9799 `} 9800 .fa{ 9801 color: #cecece; 9802 position: absolute; 9803 right: 13px; 9804 top: 13px; 9805 } 9806`,rwe=N.div` 9807 padding: ${e=>e.padding||`0 0 10px 0`}; 9808 width: 100%; 9809 display: ${e=>e.center?`flex`:null}; 9810 flex-direction: ${e=>e.center?`column`:null}; 9811 align-items: ${e=>e.center?`center`:null}; 9812`,iwe=j(DJ=class extends V.Component{render(){return(0,K.jsxs)(twe,{margin:this.props.margin||`0 0 10px 0`,children:[(0,K.jsxs)(nwe,{disableToggle:this.props.disableToggle,onClick:this.props.onToggleMinimize,children:[this.props.title,!this.props.disableToggle&&(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-minus":!this.props.contracted,"fa-plus":this.props.contracted})})]}),!this.props.contracted&&(0,K.jsx)(rwe,{padding:this.props.padding,center:this.props.center,children:this.props.children})]})}})||DJ,OJ=(0,Y.ModuleWrapper)(iwe),kJ,AJ,awe=N.div` 9813 display: flex; 9814 align-items: center; 9815 padding: 2px 5px; 9816 border-radius: 5px; 9817 width: ${e=>e.width}; 9818 margin: 0 2px; 9819 background: #e8e8e8; 9820 justify-content: center; 9821`,owe=N.div` 9822 width: 8px; 9823 height: 8px; 9824 background-color: ${e=>e.backgroundColor}; 9825 color: white; 9826`,swe=N.div` 9827 font-weight: bold; 9828 font-size: ${e=>e.fontSize}; 9829 margin: 0 5px; 9830`,jJ=M(j(kJ=(AJ=class extends V.Component{render(){return(0,K.jsxs)(awe,{width:this.props.width,children:[(0,K.jsx)(owe,{backgroundColor:this.props.iconBackgroun
9830d}),(0,K.jsx)(swe,{fontSize:(0,W.pixify)(this.props.fontSize),children:this.props.text})]})}},AJ.defaultProps={width:`110px`,fontSize:12},AJ))||kJ);D();var MJ,NJ,PJ,FJ,IJ;function LJ(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function RJ(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var cwe=N.div` 9831 width: ${e=>e.width}; 9832 position: relative; 9833`,lwe=N.div` 9834 margin: 5px 0 0 0; 9835 display: flex; 9836 flex-direction: row; 9837 align-items: center; 9838`,uwe=N.div` 9839 display: flex; 9840`,zJ=N.div` 9841 width: ${e=>e.width}; 9842 height: ${e=>e.width}; 9843 position: relative; 9844 img { 9845 width: ${e=>e.width}; 9846 } 9847`,BJ=N.div` 9848 position: absolute; 9849 top: 62px; 9850 left: 0; 9851 right: 0; 9852 margin: 0 auto; 9853 background: white; 9854 border-radius: 10px; 9855 padding: 10px; 9856 height: 79px; 9857 width: 214px; 9858 border: 2px solid black; 9859 text-align: center; 9860 font-size: 14px; 9861 line-height: 17px; 9862`,VJ=N.div` 9863 width: 20px; 9864 height: 30px; 9865 background: rgba(255, 255, 255, 0.6); 9866 display: flex; 9867 align-items: center; 9868 justify-content: center; 9869 cursor: pointer; 9870 i { 9871 font-size: 29px; 9872 color: #a2a2a2; 9873 &.disabled { 9874 color: #CCC; 9875 cursor: default; 9876 } 9877 } 9878`,dwe=N.div` 9879 display: flex; 9880 align-items: center; 9881 justify-content: center; 9882 height: 220px; 9883 background: #e6e6e6; 9884 border-radius: 5px; 9885 overflow: visible; 9886`,fwe=N.div` 9887 display: flex; 9888 flex: 1; 9889 justify-content: flex-end; 9890`,pwe=M(j(MJ=(NJ=(IJ=class extends V.Component{get user(){return this.props.user?this.props.user:U.AppUI.user}get hasReviewCardsData(){return this.user.reviewCardsCount>0&&U.AppUI.dailyReviewSummaryStore.indexData.filter(e=>e.occurredAt).length>1}get disableIncrement(){return this.page===1}get disableDecrement(){return this.page*this.props.limit>this.user.dailyReviewSummariesCount}constructor(e){super(e),LJ(this,`loading`,PJ,this),LJ(this,`page`,FJ,this),this.afterGetIndex=e=>{this.loading=!1,U.AppUI.dailyReviewSummaryStore.setIndexData(e)},this.increment=()=>{this.disableIncrement||(--this.page,this.loadChart())},this.decrement=()=>{this.disableDecrement||(this.page+=1,this.loadChart())},this.loadChart=()=>{U.AppUI.dailyReviewSummaryStore.setPage(this.page),U.AppUI.dailyReviewSummaryStore.getIndex({queryStrings:{limit:this.props.limit,user_id:this.user?this.user.id:null}},this.afterGetIndex)},this.loadChart()}render(){return(0,K.jsxs)(cwe,{width:(0,W.pixify)(this.props.width),children:[!this.loading&&!this.hasReviewCardsData&&U.AppUI.user.isMember&&(0,K.jsxs)(zJ,{width:(0,W.pixify)(this.props.width),children:[(0,K.jsx)(BJ,{children:`Your progress chart will appear after you've created a review.`}),(0,K.jsx)(`img`,{src:`/images/empty_daily_review_summaries_chart.png`,alt:``})]}),!this.loading&&!U.AppUI.user.isMember&&(0,K.jsxs)(zJ,{width:(0,W.pixify)(this.props.width),children:[(0,K.jsx)(BJ,{children:`Become a Seedlang Pro to unlock this review progress chart.`}),(0,K.jsx)(`img`,{src:`/images/empty_daily_review_summaries_chart.png`,alt:``})]}),this.loading&&(0,K.jsx)(zJ,{}),!this.loading&&this.hasReviewCardsData&&U.AppUI.user.isMember&&(0,K.jsx)(dwe,{children:(0,K.jsxs)(Yx,{padding:0,height:230,width:250,containerComponent:(0,K.jsx)(zse,{voronoiBlacklist:[`Due`],labels:({datum:e})=>!e||e.seriesId===`Due`?null:`${e.seriesId}\n${e.x}: ${e.y}`,labelComponent:(0,K.jsx)(iS,{constrainToVisibleArea:!0,pointerLength:0,renderInPortal:!1,style:{fontSize:16},flyoutStyle:{fill:`#FFF`},centerOffset:{y:-10}})}),children:[(0,K.jsx)(vx,{style:{axis:{stroke:`transparent`},ticks:{stroke:`transparent`},tickLabels:{fill:`transparent`}}}),(0,K.jsx)(DS,{padding:0,children:U.AppUI.dailyReviewSummaryStore.forChart.map(e=>(0,K.jsx)(iae,{interpolation:`catmullRom`,style:{data:{fill:e.color}},name:e.id,data:e.data.map(t=>({...t,seriesId:e.id}))},e.id))})]})}),(0,K.jsxs)(lwe,{children:[(0,K.jsxs)(uwe,{children:[(0,K.jsx)(jJ,{iconBackgroun
9890d:q.Theme.green,text:`Caught Up`,width:`auto`}),(0,K.jsx)(jJ,{iconBackground:q.Theme.purple,text:`Retired`,width:`auto`})]}),(0,K.jsxs)(fwe,{children:[!this.loading&&(0,K.jsx)(VJ,{onClick:this.decrement,children:(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,`fa-angle-left`,{disabled:this.disableDecrement})})}),!this.loading&&(0,K.jsx)(VJ,{onClick:this.increment,children:(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,`fa-angle-right`,{disabled:this.disableIncrement})})})]})]})]})}},IJ.defaultProps={width:250},IJ),PJ=RJ(NJ.prototype,`loading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),FJ=RJ(NJ.prototype,`page`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),RJ(NJ.prototype,`user`,[E],Object.getOwnPropertyDescriptor(NJ.prototype,`user`),NJ.prototype),RJ(NJ.prototype,`hasReviewCardsData`,[E],Object.getOwnPropertyDescriptor(NJ.prototype,`hasReviewCardsData`),NJ.prototype),RJ(NJ.prototype,`disableIncrement`,[E],Object.getOwnPropertyDescriptor(NJ.prototype,`disableIncrement`),NJ.prototype),RJ(NJ.prototype,`disableDecrement`,[E],Object.getOwnPropertyDescriptor(NJ.prototype,`disableDecrement`),NJ.prototype),NJ))||MJ);
9890me();var HJ,UJ,mwe=N.div` 9891 ${(0,X.flexCenterColumn)()} 9892 width: 100%; 9893 padding: ${e=>e.padding}; 9894`,hwe=N.div` 9895 position: relative; 9896 ${(0,X.flexCenterColumn)()} 9897`,gwe=N.div` 9898 position: absolute; 9899 top: -20px; 9900 left: 0; 9901 right: 0; 9902 width: ${e=>e.width}; 9903 margin: 0 auto; 9904`,_we=N.div` 9905 svg { 9906 width: 220px; 9907 margin-bottom: 10px; 9908 #segment-1 { fill: ${e=>e.bgSegment1}; } 9909 #segment-2 { fill: ${e=>e.bgSegment2}; } 9910 #segment-3 { fill: ${e=>e.bgSegment3}; } 9911 #segment-4 { fill: ${e=>e.bgSegment4}; } 9912 #segment-5 { fill: ${e=>e.bgSegment5}; } 9913 #segment-6 { fill: ${e=>e.bgSegment6}; } 9914 #segment-7 { fill: ${e=>e.bgSegment7}; } 9915 #segment-8 { fill: ${e=>e.bgSegment8}; } 9916 #segment-9 { fill: ${e=>e.bgSegment9}; } 9917 #segment-10 { fill: ${e=>e.bgSegment10}; } 9918 } 9919`,vwe=M(j(HJ=(UJ=class extends V.Component{backgroundForSegment(e){return Math.ceil(U.AppUI.targetLanguage.progressOnCurrentLevel/U.AppUI.targetLanguage.xpRangeBetweenLevels*10)>=e?q.Theme.green:`#e6e6e6`}render(){return(0,K.jsxs)(mwe,{"data-tip":!0,"data-for":`xp-progress`,padding:this.props.padding,children:[U.AppUI.hasTargetLanguage&&(0,K.jsxs)(hwe,{children:[(0,K.jsx)(gwe,{width:`50px`,children:(0,K.jsx)(fy,{width:`50px`,fontSize:`16px`,level:U.AppUI.targetLanguage?.xpLevel})}),(0,K.jsx)(_we,{bgSegment1:this.backgroundForSegment(1),bgSegment2:this.backgroundForSegment(2),bgSegment3:this.backgroundForSegment(3),bgSegment4:this.backgroundForSegment(4),bgSegment5:this.backgroundForSegment(5),bgSegment6:this.backgroundForSegment(6),bgSegment7:this.backgroundForSegment(7),bgSegment8:this.backgroundForSegment(8),bgSegment9:this.backgroundForSegment(9),bgSegment10:this.backgroundForSegment(10),children:(0,K.jsx)($h,{})})]}),U.AppUI.hasTargetLanguage&&(0,K.jsxs)(he,{place:`bottom`,type:`dark`,effect:`solid`,id:`xp-progress`,class:`custom-tooltip`,children:[(0,K.jsxs)(`div`,{children:[U.AppUI.targetLanguage.xp,` total XP`]}),(0,K.jsxs)(`div`,{children:[U.AppUI.targetLanguage.xpForNextLevel-U.AppUI.targetLanguage.xp,` XP until next level`]})]})]})}},UJ.defaultProps={padding:`20px 0 0 0`},UJ))||HJ),WJ,GJ,ywe=N.div` 9920 ${(0,X.flexCenterColumn)()} 9921 width: 100%; 9922`,KJ=N.div` 9923 position: relative; 9924 cursor: ${e=>e.cursor||`pointer`} 9925 z-index: 1; 9926`,bwe=N.div` 9927 z-index: 2; 9928 position: absolute; 9929 top: 50%; 9930 left: 50%; 9931 transform: translate(-50%, -50%); 9932 opacity: 0.5; 9933`,xwe=N.div` 9934 display: block; 9935 width: 100%; 9936 text-align: center; 9937 font-size: 13px; 9938 line-height: 18px; 9939 font-weight: bold; 9940 color: #000; 9941 margin-top: 10px; 9942 text-transform: uppercase; 9943`,Swe=N.div` 9944 display: flex; 9945 align-items: center; 9946 gap: 20px; 9947 margin-bottom: 10px; 9948 position: relative; 9949`,qJ=N.div` 9950 padding: 10px 20px; 9951 position: relative; 9952 font-size: 14px; 9953 display: flex; 9954 align-items: center; 9955 width: 100%; 9956 justify-content: center; 9957 text-align: center; 9958 flex-direction: column; 9959`,Cwe=j(WJ=(GJ=class extends V.Component{render(){return(0,K.jsxs)(ywe,{children:[(0,K.jsxs)(Swe,{children:[this.props.user?.currentLeague&&(0,K.jsx)(F,{to:{name:`league.show`,params:{leagueId:this.props.user.currentLeague.id,userId:this.props.user.id}},children:(0,K.jsxs)(KJ,{children:[U.AppUI.authUserStore.requestCounter>0&&(0,K.jsx)(bwe,{children:(0,K.jsx)(P,{height:`10px`,background:`#FFF`,margin:`5px`})}),(0,K.jsx)(xg,{showRank:!0,showIcon:this.props.user?.currentLeague?.ended,leagueLevelPosition:U.AppUI.user?.currentLeague?.leagueLevel?.position,rank:U.AppUI.user?.currentUserLeague?.rank,promotionStatus:U.AppUI.user?.currentUserLeague?.promotionStatus,borderColor:`#FFF`})]})}),!this.props.user?.currentLeague&&(0,K.jsx)(KJ,{cursor:`default`,children:(0,K.jsx)(xg,{leagueLevelPosition:0})})]}),this.props.user?.currentLeague&&!this.props.user?.currentLeague.ended&&(0,K.jsx)(xwe,{children:this.props.user?.currentLeague?.leagueLevel?.name}),(0,W.isBlank)(this.props.user?.currentLeague)&&(0,K.jsx)(qJ,{children:`Start Learning to Join a League`}),this.props.user?.currentLeague?.ended&&(0,K.jsxs)(qJ,{children:[(0,K.jsx)(`div`,{children:`You finished #${U.AppUI.user?.currentUserLeague?.rank} in`}),(0,K.jsxs)(`div`,{children:[`the `,(0,K.jsx)(`b`,{children:this.props.user?.currentLeague?.leagueLevel?.name})]})]})]})}},GJ.defaultProps={padding:`0`},GJ))||WJ,wwe=M((0,Y.LeaguePreviewWrapper)(Cwe)),JJ,Twe=N.div` 9960 margin-top: 10px; 9961 font-size: 12px; 9962 line-height: 14px; 9963 opacity: ${e=>e.$disabled?.7:1}; 9964`,Ewe=N.div` 9965 position: absolute; 9966 margin: auto; 9967 left: 0; 9968 right: 0; 9969 top: 3px; 9970 bottom: 0; 9971 color: rgba(255, 255, 255, 0.9); 9972 font-size: 12px; 9973 text-align: center; 9974 line-height: 14px; 9975`,Dwe=j(JJ=class extends V.Component{render(){let e=this.props.user.streakExtensionAtAccountLimit;return(0,K.jsxs)(Twe,{$disabled:e,children:[(0,K.jsx)(Fn,{current:this.props.user.currentDayXp,total:this.props.streakExtendGoal,height:`20px`,borderTopRightRadius:`5px`,borderTopLeftRadius:`5px`,borderBottomRightRadius:`5px`,borderBottomLeftRadius:`5px`,currentBackgroun
9975d:e?`#888`:this.props.user.streakCanBeExtended?q.Theme.orange:q.Theme.green,background:e?`#444`:`#5b5b5b`,children:(0,K.jsxs)(Ewe,{children:[this.props.user.currentDayXp,` XP / `,this.props.streakExtendGoal,` XP`]})}),(0,K.jsxs)(R,{fontSize:`12px`,lineHeight:`14px`,margin:`5px 0 0 0`,children:[e&&`Your streak already extends back to your registration date, so it can't be extended further.`,!e&&this.props.user.streakCanBeExtended&&`Add an extra day to your streak by reaching ${this.props.streakExtendGoal}XP today!`,!e&&!this.props.user.streakCanBeExtended&&this.props.streakWasExtendedToday&&(0,W.isPresent)(this.props.streakExtendGoal)&&`Congrats for reaching ${this.props.streakExtendGoal}XP! We've extended your streak.`,!e&&!this.props.user.streakCanBeExtended&&!this.props.streakWasExtendedToday&&(0,W.isPresent)(this.props.streakExtendGoal)&&`If you break your streak, you'll get a chance to repair it by reaching ${this.props.streakExtendGoal}XP.`]})]})}})||JJ,Owe=(0,Y.DailyActivityWrapper)(Dwe);D();var YJ,XJ;function kwe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Awe=N.div` 9976 margin: 0; 9977 width: 100%; 9978`,jwe=N.div` 9979 padding: 10px 24px 24px 24px; 9980`,Mwe=N.h3` 9981 margin: 0 0 10px 0; 9982`,Nwe=N.div` 9983 font-size: 16px; 9984 line-height: 26px; 9985`,ZJ=M(j(YJ=(XJ=class extends V.Component{get chartWidth(){return U.AppUI.routeStore.routeName===`reviews.progress`?Math.min(900,U.AppUI.layout.viewportWidth-140):240}render(){return(0,K.jsxs)(Awe,{id:`review-extras`,children:[U.AppUI.userIsLoaded&&!U.AppUI.user.hideOnLeaderboard&&(0,K.jsx)(OJ,{title:`My League`,padding:`0 0 10px 0`,slug:`league`,children:(0,K.jsx)(wwe,{user:U.AppUI.user,width:`80px`})}),U.AppUI.userIsLoaded&&U.AppUI.targetLanguage&&(0,K.jsx)(OJ,{title:`My Level`,padding:`10px 0 10px 0`,children:(0,K.jsx)(vwe,{user:U.AppUI.user})}),U.AppUI.userIsLoaded&&(0,K.jsx)(OJ,{title:`My Activity`,padding:`10px 20px 20px 32px`,children:(0,K.jsx)(o_,{store:U.AppUI.authUserDailyXpCountStore,dailyXpGoal:U.AppUI.user?.dailyXpGoal,userId:U.AppUI.user?.id,todaysDate:U.AppUI.user?.todaysDate})}),U.AppUI.user?.showStreakExtensionProgress&&(0,K.jsx)(OJ,{title:`Streak Extension`,padding:`0 15px 10px 15px`,center:!0,children:(0,K.jsx)(Owe,{userId:U.AppUI.user?.id,store:U.AppUI.authUserDailyXpCountStore,todaysDate:U.AppUI.user?.todaysDate,dailyXpGoal:U.AppUI.user?.dailyXpGoal})}),(0,K.jsx)(OJ,{title:`My Reviews Progress`,padding:`0 15px 10px 15px`,center:!0,children:this.chartWidth&&(0,K.jsx)(pwe,{width:this.chartWidth,limit:U.AppUI.routeStore.routeName===`reviews.progress`?50:20})}),U.AppUI.userIsLoaded&&(0,K.jsx)(OJ,{title:`My Review Badges`,padding:`0 20px 10px 20px`,children:(0,K.jsx)(sy,{user:U.AppUI.user,badges:[`deckmaster`,`backInTime`],showProgress:!0,width:`70px`,badgeWidth:`100%`})}),U.AppUI.userIsLoaded&&U.AppUI.routeStore.routeName!==`reviews.progress`&&(0,K.jsx)(OJ,{title:`Contact us`,children:(0,K.jsxs)(jwe,{children:[(0,K.jsx)(Mwe,{children:`We would love to hear from you.`}),(0,K.jsx)(Nwe,{children:`Contact us with any questions or feedback that you might have.`}),(0,K.jsx)(I,{to:`/contact`,width:`100%`,margin:`16px 0 0 0`,children:`Leave Message`})]})})]})}},kwe(XJ.prototype,`chartWidth`,[E],Object.getOwnPropertyDescriptor(XJ.prototype,`chartWidth`),XJ.prototype),XJ))||YJ),QJ,Pwe=N.div` 9986 width: 100%; 9987`,Fwe=pf(M(j(QJ=class extends V.Component{render(){return(0,K.jsx)(Pwe,{children:(0,K.jsx)(HI,{cardId:this.props.params.cardId})})}})||QJ)),$J,Iwe=N.div` 9988`,Lwe=N.div` 9989 width: 100%; 9990 margin-bottom: 10px; 9991 display: flex; 9992 flex-direction: column; 9993 align-items: center; 9994 padding: ${e=>e.padding}; 9995`,Rwe=M(j($J=class extends V.Component{constructor(e){super(e),U.AppUI.loadUser(),U.AppUI.createEvent(`reviews - view page`)}render(){return(0,K.jsxs)(Iwe,{children:[(0,K.jsx)(LM,{title:`${U.AppUI.targetLanguageName} REVIEWS`,titleRoute:`reviews.home`,lookupPage:!0,pageInfo:[{route:`reviews.progress`,current:`Progress`},{route:`reviews.show`,current:`Review Details`,breadcrumbs:[[`reviews.index`,`Reviews List`]],lookupPage:!0}],icons:[{icon:(0,K.jsx)(J.FaqIcon,{}),tooltipText:`Help Center`,iconRoute:`faq_categories.show`,iconParams:{faqCategoryId:`7d2bdc2a-34ec-414a-971c-afb00c9291a5`}},{icon:(0,K.jsx)(J.GraphOutlineIcon,{}),tooltipText:`View Progress`,iconRoute:`reviews.progress`,breadcrumb:`Progress`}]}),(0,K.jsx)(Lwe,{children:(0,K.jsx)(f,{})})]})}})||$J),eY,zwe=N.div` 9996 ${(0,X.flexCenterColumn)()} 9997 position: absolute; 9998 width: 60px; 9999 height: 60px; 10000 z-index: ${q.Theme.z.background}; 10001 top: 5px; 10002 right: 5px; 10003 color: #FFF; 10004 svg { 10005 fill: ${e=>e.background}; 10006 z-index: ${q.Theme.z.foreground}; 10007 position: absolute; 10008 top: 0; 10009 left: 0; 10010 width: 60px; 10011 } 10012`,Bwe=N.div` 10013 ${(0,X.flexCenterColumn)()} 10014 position: relative; 10015 width: 100%; 10016 height: 100%; 10017`,Vwe=N.div` 10018 ${(0,X.flexCenterColumn)()} 10019 z-index: ${q.Theme.z[`over-foreground`]}; 10020`,Hwe=N.div` 10021 font-size: 16px; 10022 line-height: 16px; 10023 font-weight: bold; 10024`,Uwe=N.div` 10025 font-size: 12px; 10026 line-height: 12px; 10027`,Wwe=M(j(eY=class extends V.Component{render(){return(0,K.jsx)(zwe,{className:`wrapper`,background:this.props.background,children:(0,K.jsxs)(Bwe,{className:`wrapper-inner`,children:[(0,K.jsxs)(Vwe,{className:`text-wrapper`,children:[(0,K.jsxs)(Hwe,{children:[this.props.amount,`%`]}),(0,K.jsx)(Uwe,{children:`Off`})]}),(0,K.jsx)(J.EmblemIcon,{})]})})}})||eY);D(),w();var tY,nY;function rY(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Gwe=N.div` 10028 position: relative; 10029 transition: all 0.2s ease;
10030 cursor: ${e=>e.isDisabled?`default`:`pointer`}; 10031 background: linear-gradient(-134deg, #1fcc64 0%, #45775e 100%); 10032 margin: 5px; 10033 border: ${e=>e.border}; 10034 min-width: ${e=>e.width}; 10035 max-width: ${e=>e.width}; 10036 padding: 15px; 10037 display: flex; 10038 flex-basis: calc(50% - 10px); 10039 align-items: center; 10040 flex-direction: column; 10041 border-radius: 20px; 10042 max-height: 365px; 10043 &:hover { 10044 transform: scale(1.05); 10045 } 10046`,Kwe=N.div` 10047 ${(0,X.flexCenter)()} 10048 width: 100%; 10049 margin-bottom: 30px; 10050 .icon-wrapper { 10051 svg { 10052 width: 68px; 10053 } 10054 } 10055`,qwe=N.div` 10056 display: flex; 10057 flex-direction: column; 10058 align-items: center; 10059 margin-top: 10px; 10060`,Jwe=N.div` 10061 display: flex; 10062 flex-direction: column; 10063 align-items: center; 10064 width: 100%; 10065`,Ywe=N.div` 10066 font-weight: bold; 10067 color: white; 10068 text-shadow: 1px 1px rgba(49, 49, 49, 0.8); 10069 height: 46px; 10070`,Xwe=N.div` 10071 display: flex; 10072`,Zwe=N.div` 10073 font-size: 36px; 10074 margin-top: -4px; 10075`,Qwe=N.div` 10076 font-size: 60px; 10077`,$we=N.div` 10078 font-size: 23px; 10079 margin-top: -8px; 10080`,eTe=N.div` 10081 font-size: 20px; 10082`,tTe=N.div` 10083 font-size: 15px; 10084`,nTe=N.div` 10085 display: flex; 10086 align-items: center; 10087`,rTe=N.div` 10088 font-size: 13px; 10089 color: rgba(255, 255, 255, 0.9); 10090 flex-direction: column; 10091 margin-top: 2.5px; 10092 line-height: 15px; 10093 margin-bottom: 2.5px; 10094 text-align: center; 10095 text-wrap: balance; 10096 display: grid; 10097 place-items: center; 10098`,iTe=N.div` 10099 width: 100%; 10100 flex-direction: column; 10101 line-height: 20px; 10102 margin-top: 10px; 10103 margin-bottom: 20px; 10104 overflow: hidden; 10105 p { 10106 color: white; 10107 } 10108 ul { 10109 margin-left: 20px; 10110 } 10111 li { 10112 list-style-type: disc; 10113 } 10114 a { 10115 text-decoration: underline; 10116 } 10117 a:hover { 10118 text-decoration: none; 10119 } 10120`,aTe=N.div` 10121 width: 100%; 10122 text-align: center; 10123 margin: 20px 0 10px 0; 10124 a { 10125 color: white; 10126 width: 100%; 10127 } 10128`,oTe=N.div` 10129 background: white; 10130 font-size: 16px; 10131 padding: 25px; 10132 line-height: 0; 10133 width: 100%; 10134 color: #3b9c61; 10135 border-radius: 50px; 10136 margin: 0; 10137 height: 50px; 10138 font-weight: bold; 10139 cursor: ${e=>e.isDisabled?`default`:`pointer`}; 10140 opacity: ${e=>e.isDisabled?.75:1}; 10141`,sTe=N.div` 10142 margin-bottom: 5px; 10143 min-height: 50px; 10144 display: flex; 10145 align-items: center; 10146`,cTe=N.div` 10147 background: ${e=>e.background}; 10148 position: absolute; 10149 border-radius: 10px; 10150 font-size: 14px; 10151 font-weight: bold; 10152 color: #FFF; 10153 top: -24px; 10154 padding: 10px 20px; 10155`,lTe=M(j(tY=(nY=class extends V.Component{get membershipMatchesCurrent(){return U.AppUI.user?.membership?.id===this.props.membership.id}get buttonText(){return U.AppUI.user.signedOut?`Get Started`:this.membershipMatchesCurrent?`Current`:this.props.membership.recurring&&this.props.activeStripeSubscription?`Switch`:this.props.membership.recurring?`Subscribe`:`Buy Now`}get border(){return this.props.membership.highlight?`10px solid ${q.Theme.purple}`:`10px solid #408f60`}get membershipName(){return(0,W.isPresent)(this.props.membership?.membershipType?.name)?this.props.membership?.membershipType?.name:this.props.membership.title||``}get description(){return this.props.currency?.toUpperCase()===`USD`?this.props.membership.descriptionUsd:this.props.membership.descriptionEur}get width(){return U.AppUI.layout.isMobile?v(U.AppUI.layout.viewportWidth-40):`290px`}get discountPercentage(){return this.props.membership.discountPercentage(this.props.memberships,this.props.currency)}get disabled(){if(this.props.disabled)return!0;let{activeStripeSubscription:e,membership:t}=this.props;return e?.nextPhaseMembership?.id?e.nextPhaseMembership.id===t.id:U.AppUI.user?.membership?.id===t.id}render(){return(0,K.jsxs)(Gwe,{isDisabled:this.disabled,className:`MembershipOption__Wrapper`,onClick:this.disabled?void 0:()=>this.props.onClick(this.props.membership),border:this.border,width:this.width,children:[this.props.membership.highlight&&(0,K.jsx)(cTe,{background:q.Theme.purple,children:this.props.membership.highlightText}),(0,K.jsxs)(qwe,{children:[(0,K.jsx)(sTe,{children:(0,K.jsx)(R,{fontSize:`22px`,bold:!0,color:`white`,textAlign:`center`,maxWidth:`180px`,children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.membershipName}})})}),(0,K.jsxs)(Kwe,{children:[this.props.membership.icon===`2-leaf`&&(0,K.jsx)(J.Membership2LeafIcon,{}),this.props.membership.icon===`3-leaf`&&(0,K.jsx)(J.Membership3LeafIcon,{}),this.props.membership.icon===`tree-1`&&(0,K.jsx)(J.MembershipTree1Icon,{}),this.props.membership.icon===`tree-2`&&(0,K.jsx)(J.MembershipTree2Icon,{})]}),(0,K.jsxs)(Jwe,{children:[(0,K.jsx)(Ywe,{children:(0,K.jsxs)(Xwe,{children:[(0,K.jsx)(Zwe,{children:this.props.currencySymbol}),(0,K.jsx)(Qwe,{children:this.props.membership.recurring?(0,W.dollar)(this.props.membership.costMonthly(this.props.currency)):(0,W.dollar)(this.props.membership.cost(this.props.currency))}),(0,K.jsx)($we,{children:this.props.membership.recurring?(0,W.cents)(this.props.membership.costMonthly(this.props.currency)):(0,W.cents)(this.props.membership.cost(this.props.currency))}),this.props.membership.recurring&&(0,K.jsx)(eTe,{children:`/`}),this.props.membership.recurring&&(0,K.jsx)(tTe,{children:`month`})]})}),(0,K.jsx)(nTe,{children:(0,W.isPresent)(this.description)&&(0,K.jsx)(rTe,{children:this.description})})]}),this.discountPercentage&&(0,K.jsx)(Wwe,{amount:this.discountPercentage,background:this.props.membership.highlight?q.Theme.purple:`#408f60`})]}),!U.AppUI.user.hasPermanentGroupMembership&&(0,K.jsx)(aTe,{children:(0,K.jsx)(oTe,{isDisabled:this.disabled,children:this.buttonText})}),(0,K.jsx)(iTe,{children:(0,K.jsx)(wP,{paragraphLimit:100,markdownText:this.props.membership.descriptionMd,htmlText:(0,W.isPresent)(this.props.membership.description)&&(0,W.isBlank)(this.props.membership.descriptionMd)&&this.props.membership.description})})]})}},rY(nY.prototype,`membershipMatchesCurrent`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`membershipMatchesCurrent`),nY.prototype),rY(nY.prototype,`buttonText`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`buttonText`),nY.prototype),rY(nY.prototype,`border`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`border`),nY.prototype),rY(nY.prototype,`membershipName`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`membershipName`),nY.prototype),rY(nY.prototype,`description`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`description`),nY.prototype),rY(nY.prototype,`width`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`width`),nY.prototype),rY(nY.prototype,`discountPercentage`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`discountPercentage`),nY.prototype),rY(nY.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(nY.prototype,`disabled`),nY.prototype),nY))||tY);D();var iY,aY,oY;function uTe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function sY(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var dTe=N.div` 10156 background: white; 10157 position: relative; 10158 display: flex; 10159 flex-direction: column; 10160 align-items: center; 10161 @media only screen and (max-width : 649px) { 10162 width: 100%; 10163 } 10164`,fTe=N.div` 10165 background: white; 10166 position: absolute; 10167 inset: 0; 10168 top: -20px; 10169 display: flex; 10170 justify-content: center; 10171 align-items: center; 10172 z-index: ${q.Theme.z.overlay}; 10173`,pTe=N.div` 10174 display: flex; 10175 flex-direction: column; 10176 align-items: center; 10177 width: 100%; 10178`,mTe=N.div` 10179 display: flex; 10180 flex-direction: ${e=>e.flexDirection}; 10181 justify-content: center; 10182 align-items: center; 10183 margin-bottom: 10px; 10184 width: 100%; 10185 position: relative; 10186 @media only screen and (max-width : 649px) { 10187 flex-direction: column; 10188 flex-wrap: nowrap; 10189 height: auto; 10190 width: 100%; 10191 } 10192`,hTe=N.div` 10193 width: 100%; 10194 margin: 20px 0; 10195 padding: 20px 0; 10196 text-align: center; 10197 p { 10198 margin: 0; 10199 } 10200`,gTe=N.div` 10201 background: #e6f2f5; 10202 width: 100%; 10203 display: flex; 10204 flex-direction: column; 10205 align-items: center; 10206 margin-top: 50px; 10207 padding-bottom: 50px; 10208 10209`,_Te=N.div` 10210 margin: 20px 0; 10211 max-width: 650px; 10212 width: 100%; 10213 font-size: 20px;
10214 line-height: 26px; 10215 @media only screen and (max-width : 649px) { 10216 padding: 0 20px; 10217 font-size: 16px; 10218 line-height: 22px; 10219 margin-top: 5px; 10220 } 10221`,vTe=N.div` 10222 border-radius: 10px; 10223 width: 100%; 10224 padding: 20px; 10225 background: #FFF; 10226 legend { 10227 font-size: 14px; 10228 color: #838383; 10229 } 10230`,cY=N.div` 10231 display: flex; 10232 margin: 10px 0; 10233 border-bottom: 1px solid #d0d0d0; 10234 border-top: ${e=>e.borderTop?`1px solid #d0d0d0`:null}; 10235 padding: ${e=>e.borderTop?`20px 0 20px 0`:`10px 0 20px 0`}; 10236 svg { 10237 margin: 3px 5px 0 0; 10238 fill: ${q.Theme.orange}; 10239 width: 23px; 10240 } 10241`,lY=N.div` 10242 font-size: 16px; 10243 line-height: 19px; 10244 color: #575757; 10245 flex: 1; 10246 margin: 0 0 0 10px; 10247 b { 10248 color: #000; 10249 } 10250`,yTe=N.div` 10251 margin: 40px 0 20px 0; 10252 display: flex; 10253 flex-direction: column; 10254 align-items: center; 10255 justify-content: center; 10256 svg { 10257 width: 280px; 10258 } 10259`,bTe=N.div` 10260 border-bottom: 4px solid ${q.Theme.blue}; 10261 display: flex; 10262 align-items: center; 10263 margin: 20px 0 -20px 0; 10264 i { 10265 color: ${q.Theme.blue}; 10266 margin-right: 5px; 10267 font-size: 16px; 10268 } 10269`,xTe=M(j(iY=(aY=class extends V.Component{constructor(e){super(e),uTe(this,`isRedirectingToStripe`,oY,this),this.onClick=async e=>{if(!this.props.disabled)if(U.AppUI.user.signedOut)U.AppUI.routeStore.routeToNamed(`landing`);else{if(this.activeStripeSubscription){this.isRedirectingToStripe=!0;try{let t=await U.AppUI.stripeStore.getCustomerPortalUrl({action_type:`subscription_update_confirm`,stripe_account:this.activeStripeSubscription.stripeAccount,stripe_customer_id:this.activeStripeSubscription.stripeCustomerId,stripe_subscription_id:this.activeStripeSubscription.stripeSubscriptionId,target_membership_id:e.id});window.location.href=t}catch(e){throw this.isRedirectingToStripe=!1,e}return}U.AppUI.set(`currentlyViewedMembership`,e);let t=window.location.href&&window.location.href.match(`settings`)?`settings.memberships.create`:`memberships.create`;U.AppUI.routeStore.routeToNamed(t,{membershipId:e.id})}},U.AppUI.loadUser(),U.AppUI.userSubscriptionStore.hasIndexData||U.AppUI.userSubscriptionStore.getIndex({})}get activeStripeSubscription(){return U.AppUI.userSubscriptionStore.indexData.find(e=>e.paymentMethod===`stripe`&&e.membership?.id===U.AppUI.user?.membership?.id&&e.isActive)}get filteredMemberships(){return U.AppUI.user?.site?U.AppUI.user.membershipGroup?.memberships??U.AppUI.user.site.membershipGroup?.memberships:[]}get currency(){return U.AppUI.user?.currency??`USD`}get currencySymbol(){return this.currency?.toUpperCase()===`USD`?`$`:`â¬`}render(){return(0,K.jsxs)(dTe,{children:[(0,K.jsxs)(yTe,{children:[(0,K.jsx)(J.SeedlangProWithCrown,{}),(0,K.jsxs)(R,{fontSize:`30px`,lineHeight:`32px`,bold:!0,margin:`0 0 10px 0`,textAlign:`center`,color:`#333`,children:[`Learn `,U.AppUI.targetLanguageName||`a Language`,` Faster.`]}),(0,K.jsxs)(R,{fontSize:`16px`,lineHeight:`20px`,margin:`0 0 10px 0`,textAlign:`center`,color:`#333`,bold:!0,children:[`Unlock all content and features for German `,(0,K.jsx)(`span`,{role:`img`,"aria-label":`German flag`,children:`ð©ðª`}),`, French `,(0,K.jsx)(`span`,{role:`img`,"aria-label":`French flag`,children:`ð«ð·`}),`, and Spanish `,(0,K.jsx)(`span`,{role:`img`,"aria-label":`Spanish flag`,children:`ðªð¸`}),`.`]})]}),(0,K.jsxs)(pTe,{children:[(0,K.jsxs)(mTe,{flexDirection:U.AppUI.layout.isMobile?`column`:`row`,children:[(this.isRedirectingToStripe||U.AppUI.userSubscriptionStore.hasOutstandingRequests)&&(0,K.jsx)(fTe,{children:(0,K.jsx)(P,{})}),this.filteredMemberships&&this.filteredMemberships.map(e=>(0,K.jsx)(lTe,{currency:this.currency,currencySymbol:this.currencySymbol,membership:e,memberships:this.filteredMemberships,onClick:this.onClick,disabled:this.props.disabled,activeStripeSubscription:this.activeStripeSubscription},e.id))]}),U.AppUI.user.activePatreonMember&&U.AppUI.user.membershipGroup&&U.AppUI.user.membershipGroup.slug===`discount`&&(0,K.jsxs)(bTe,{children:[(0,K.jsx)(`i`,{className:`fa fa-info-circle`}),`You have a discount for being an Easy German Patron.`]}),this.props.showMoneyback&&(0,K.jsxs)(hTe,{children:[(0,K.jsx)(`p`,{children:`Cancel at any time.`}),(0,K.jsx)(`p`,{style:{marginTop:`10px`},children:`There is a 15 day money-back guarantee on all purchases.`})]}),(0,K.jsx)(gTe,{children:(0,K.jsxs)(_Te,{children:[(0,K.jsx)(R,{fontSize:`3
102690px`,lineHeight:`36px`,bold:!0,margin:`60px 0 40px 0`,textAlign:`center`,color:`#000`,children:`Benefits of Being a Pro`}),(0,K.jsxs)(vTe,{children:[(0,K.jsxs)(cY,{borderTop:!0,children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Learn from our `,(0,K.jsx)(`b`,{children:`German, Spanish, and French`}),` courses with one low price.`]})]}),U.AppUI.targetLanguage?.contentTreeDecksCount>0&&(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Unlock`,U.AppUI.targetLanguage?` ${(0,W.formattedRoundNumber)(U.AppUI.targetLanguage.contentTreeDecksCount)} `:``,`lessons in our `,(0,K.jsx)(`b`,{children:`Stories Content Tree`}),` to work on your grammar, vocabulary, speaking and listening skills.`]})]}),(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Drill vocabulary in our `,(0,K.jsx)(`b`,{children:`Vocab Trainer`}),` by building your own custom decks from `,U.AppUI.targetLanguage?` ${(0,W.formattedRoundNumber)(U.AppUI.targetLanguage.vocabTrainerWordsCount)} `:``,` words spanning A1 to C1.`]})]}),(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Train `,U.AppUI.targetLanguage?` ${(0,W.formattedRoundNumber)(U.AppUI.targetLanguage.vocabTrainerVerbsCount)} `:``,` verbs with our `,(0,K.jsx)(`b`,{children:`Conjugation Trainer`}),`. Improve your command over conjugations across different verb tenses.`]})]}),(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Train `,U.AppUI.targetLanguage?` ${(0,W.formattedRoundNumber)(U.AppUI.targetLanguage.vocabTrainerNounsCount)} `:``,` nouns with our `,(0,K.jsx)(`b`,{children:`Gender and Plural Trainers`}),`. Improve your command over genders in a fun and effective way.`]})]}),(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Train numbers with our new `,(0,K.jsx)(`b`,{children:`Number Trainer`}),`. Drilling numbers will help you to have instant command over this important language feature.`]})]}),U.AppUI.targetLanguage?.triviaQuestionsCount>0&&(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Unlock unlimited daily games and `,U.AppUI.targetLanguage?` ${(0,W.formattedRoundNumber)(U.AppUI.targetLanguage.triviaQuestionsCount)} `:``,` questions in our `,(0,K.jsx)(`b`,{children:`Trivia Game`}),` to practice your listening skills and improve your vocabulary.`]})]}),(0,K.jsxs)(cY,{children:[(0,K.jsx)(J.CheckWithCircleIcon,{}),(0,K.jsxs)(lY,{children:[`Get 1 `,(0,K.jsx)(`b`,{children:`Streak Repair`}),` per month, for those times when life gets in the way of your language learning.`]})]})]})]})})]})]})}},oY=sY(aY.prototype,`isRedirectingToStripe`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sY(aY.prototype,`activeStripeSubscription`,[E],Object.getOwnPropertyDescriptor(aY.prototype,`activeStripeSubscription`),aY.prototype),sY(aY.prototype,`filteredMemberships`,[E],Object.getOwnPropertyDescriptor(aY.prototype,`filteredMemberships`),aY.prototype),sY(aY.prototype,`currency`,[E],Object.getOwnPropertyDescriptor(aY.prototype,`currency`),aY.prototype),sY(aY.prototype,`currencySymbol`,[E],Object.getOwnPropertyDescriptor(aY.prototype,`currencySymbol`),aY.prototype),aY))||iY);D();var uY,dY,fY;function STe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function CTe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var wTe=N.div` 10270 display: flex; 10271 flex-direction: column; 10272 width: 100%; 10273 max-width: 1000px; 10274`,pY=N.div` 10275 background: ${e=>e.isMobile?`#FFF`:null}; 10276 box-shadow: ${e=>e.isMobile?`0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07)`:null}; 10277 margin: ${e=>e.isMobile?`0 10px 80px 10px`:`0 0 80px 0`}; 10278 display: flex; 10279 padding: 10px; 10280 border-radius: 10px; 10281`,mY=N.div` 10282 font-size: 22px; 10283 line-height: 22px; 10284 font-weight: bold; 10285 text-align: ${e=>e.textAlign}; 10286`,hY=N.div` 10287 order: ${e=>e.order}; 10288 width: 300px; 10289 height: 300px; 10290 background: #FFF; 10291 border-radius: 10px; 10292 box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07); 10293 overflow: hidden; 10294 img, video { 10295 width: 100%; 10296 height: 100%; 10297 } 10298`,gY=N.div` 10299 order: 2; 10300 position: relative; 10301 background: white; 10302 padding: 20px; 10303 border-radius: 10px; 10304 flex: 1; 10305 text-align: left; 10306 line-height: 22px; 10307 box-shadow: ${e=>e.isMobile?null:`0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07)`}; 10308 max-width: 500px; 10309 margin-left: ${e=>e.isMobile?null:`40px`}; 10310 &:after { 10311 ${e=>e.showArrow?ETe:null} 10312 } 10313`,TTe=N.div` 10314 order: 2; 10315 position: relative; 10316 background: white; 10317 padding: 20px; 10318 border-radius: 10px; 10319 flex: 1; 10320 line-height: 22px; 10321 text-align: ${e=>e.isMobile?`left`:`right`}; 10322 box-shadow: ${e=>e.isMobile?null:`0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07)`}; 10323 max-width: 500px; 10324 margin-right: ${e=>e.isMobile?null:`40px`}; 10325 &:after { 10326 ${e=>e.showArrow?DTe:null} 10327 } 10328`,_Y=N.div` 10329 display: flex; 10330 flex: 1; 10331 position: relative; 10332 width: 100%; 10333 max-width: 1180px; 10334 margin: 0 auto; 10335 box-sizing: border-box; 10336 justify-content: ${e=>e.justifyContent}; 10337 flex-direction: ${e=>e.isMobile?`column`:`row`}; 10338 align-items: ${e=>e.isMobile?`center`:null}; 10339`,ETe=` 10340 right: 100%; 10341 top: 50%; 10342 border: solid transparent; 10343 content: " "; 10344 height: 0; 10345 width: 0; 10346 position: absolute; 10347 pointer-events: none; 10348 border-color: rgba(255, 255, 255, 0); 10349 border-right-color: #ffffff; 10350 border-width: 30px; 10351 margin-top: -30px; 10352`,DTe=` 10353 top: 50%; 10354 border: solid transparent; 10355 content: " "; 10356 height: 0; 10357 width: 0; 10358 position: absolute; 10359 pointer-events: none; 10360 border-color: rgba(255, 255, 255, 0); 10361 left: 100%; 10362 border-left-color: #ffffff; 10363 border-width: 30px; 10364 margin-top: -30px; 10365`,vY=j(uY=(dY=class extends V.Component{constructor(...e){super(...e),STe(this,`scrollPosition`,fY,this)}render(){return(0,K.jsxs)(wTe,{children:[(0,K.jsx)(pY,{isMobile:U.AppUI.layout.isMobile,children:(0,K.jsxs)(_Y,{isMobile:U.AppUI.layout.isMobile,justifyContent:U.AppUI.layout.isMobile?`center`:`flex-start`,children:[(0,K.jsx)(hY,{children:(0,K.jsx)(`img`,{src:`/images/teachers2.jpg`,alt:``})}),(0,K.jsxs)(gY,{isMobile:U.AppUI.layout.isMobile,showArrow:!U.AppUI.layout.isMobile,children:[(0,K.jsx)(mY,{textAlign:U.Ap
10365pUI.layout.isMobile?`center`:null,children:`Real people saying real things`}),(0,K.jsxs)(`p`,{children:[`In Seedlang every sentence is a video. In fact, every word is a video. This means teaching a language requires tens of thousands of recorded videos. Why go through all of that effort? Because we believe there is no shortcut: `,(0,K.jsx)(`b`,{children:`building fluency requires listening to natives talk and doing your best to talk like them`}),`.`]})]})]})}),(0,K.jsx)(pY,{isMobile:U.AppUI.layout.isMobile,children:(0,K.jsxs)(_Y,{isMobile:U.AppUI.layout.isMobile,justifyContent:U.AppUI.layout.isMobile?`center`:`flex-end`,children:[(0,K.jsx)(hY,{order:U.AppUI.layout.isMobile?`1`:`3`,children:(0,K.jsx)(`video`,{muted:!0,autoPlay:!0,playsInline:!0,loop:!0,id:`video`,width:`300`,height:`300`,preload:`auto`,src:`/images/mic2.mp4`})}),(0,K.jsxs)(TTe,{isMobile:U.AppUI.layout.isMobile,showArrow:!U.AppUI.layout.isMobile,children:[(0,K.jsx)(mY,{textAlign:U.AppUI.layout.isMobile?`center`:null,children:`Active learning through speaking`}),(0,K.jsxs)(`p`,{children:[`Recording audio of your speech and comparing it with that of native speakers allows you to improve your pronunciation. As you practice these improvements, `,(0,K.jsx)(`b`,{children:`your muscle memory for the language strengthens and speaking becomes effortless`}),`.`]})]})]})}),(0,K.jsx)(pY,{isMobile:U.AppUI.layout.isMobile,children:(0,K.jsxs)(_Y,{isMobile:U.AppUI.layout.isMobile,justifyContent:U.AppUI.layout.isMobile?`center`:`flex-start`,children:[(0,K.jsx)(hY,{children:(0,K.jsx)(`video`,{muted:!0,autoPlay:!0,playsInline:!0,loop:!0,id:`video`,width:`300`,height:`300`,preload:`auto`,src:`/images/grammar_walkthrough.mp4`})}),(0,K.jsxs)(gY,{isMobile:U.AppUI.layout.isMobile,showArrow:!U.AppUI.layout.isMobile,children:[(0,K.jsx)(mY,{textAlign:U.AppUI.layout.isMobile?`center`:null,children:`Grammar at your fingertips`}),(0,K.jsxs)(`p`,{children:[`We are most receptive to learning grammar after we've made a mistake. So, if you make a mistake with a word, simply click it to display detailed grammar information. `,(0,K.jsx)(`b`,{children:`It's like having a grammar book always ready to tell you what you need to know, when you need to know it`}),`.`]})]})]})})]})}},fY=CTe(dY.prototype,`scrollPosition`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dY))||uY;D();var yY,bY,xY,SY;function CY(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function wY(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var OTe=N.div` 10366 .tree-description { 10367 max-width: 450px; 10368 overflow: hidden; 10369 display: flex; 10370 align-items: center; 10371 flex-direction: column; 10372 background: #EFEFEF; 10373 border-radius: 10px; 10374 height: ${e=>e.height}; 10375 box-shadow: 0 6px 30px 0 rgba(0, 0, 0, 0.3); 10376 } 10377 img { 10378 max-width: 600px; 10379 width: 90%; 10380 } 10381`,TY=M(j(yY=(bY=class extends V.Component{constructor(e){super(e),CY(this,`treeOffset`,xY,this),CY(this,`wrapperHeight`,SY,this),this.onScroll=()=>{if(this.treeSliceWrapperRef.current){let e=document.documentElement.clientHeight,t=e-this.treeSliceWrapperRef.current.getBoundingClientRect().top,n=this.wrapperHeight+e;if(t>0&&t<n){let e=t/n*500*-1;this.treeOffset=e}}},this.treeSliceRef=V.createRef(),this.treeSliceWrapperRef=V.createRef()}componentDidMount(){window.addEventListener(`scroll`,this.onScroll,!0)}componentWillUnmount(){window.removeEventListener(`scroll`,this.onScroll)}render(){return(0,K.jsx)(OTe,{height:(0,W.pixify)(this.wrapperHeight),children:(0,K.jsx)(`div`,{ref:this.treeSliceWrapperRef,className:`tree-description`,children:(0,K.jsx)(`img`,{src:`/images/tree_slice.jpg`,ref:this.treeSliceRef,alt:``,style:{transform:`translate3d(0%, ${this.treeOffset}px, 0px)`,zIndex:9}})})})}},xY=wY(bY.prototype,`treeOffset`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),SY=wY(bY.prototype,`wrapperHeight`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 450}}),bY))||yY),EY,kTe=N.div` 10382 max-width: 450px; 10383 overflow: hidden; 10384 display: -ms-flexbox; 10385 display: flex; 10386 -ms-flex-align: center; 10387 align-items: center; 10388 -ms-flex-direction: column; 10389 flex-direction: column; 10390 background: #efefef; 10391 border-radius: 10px; 10392 box-shadow: 0 6px 30px 0 rgba(0,0,0,.3); 10393`,ATe=N.div` 10394 10395`,DY=M(j(EY=class extends V.Component{render(){return(0,K.jsx)(ATe,{children:(0,K.jsx)(kTe,{children:(0,K.jsx)(`video`,{muted:!0,autoPlay:!0,playsInl
10395ine:!0,loop:!0,id:`video`,width:`90%`,preload:`auto`,src:`/images/vocab_walkthrough.mp4`})})})}})||EY),OY,kY=[{user:{name:`Peter`,imageUrl:`https://graph.facebook.com/v2.10/10205666264573875/picture?type=large`},comment:`I must say that you really have done what I don't believe anyone else has... built a really immersive platform, which is fun and reinforces the learning of the user in multiple ways at once... listening, seeing the movement of the mouth, and with the type of interaction that a user can have with a sentence... to help learn the grammar placement and meanings of any word in that sentence... is really second to none!`},{user:{name:`Archana`,imageUrl:null},comment:`This was a unique experience. 10396It feels great to follow the native speakers rather than a automated voice.`},{user:{name:`MarÃa del Coral`,imageUrl:`https://graph.facebook.com/v2.10/10156792113858530/picture?type=large`},comment:`I love how it makes me practice speaking by listening to myself and repeating. I feel I am improving my listening and speaking skills a lot. The design is clean, friendly and fast.`},{user:{name:`Martin`,imageUrl:null},comment:`I love this program. I've been doing Duolingo for over 600 straight days. I've learned a lot, but this seems like a step up. I really don't have time right now to find and work with a language partner, but this seems like it might be the next best thing. `},{user:{name:`Leslee`,imageUrl:`https://i.imgur.com/FjwmC8C.jpg`},comment:`There is something about the German culture that can feel very impenetrable to a non-native. Injecting some humor into these lessons makes learning the language, and by extension the culture, more approachable. And I think that shift in attitude can really affect a student's overall capacity to learn and absorb.`},{user:{name:`Kelsey`,imageUrl:`https://i.imgur.com/Vjyiesb.jpg`},comment:`You guys are awesome! I've been trying to self-learn German for 3 years, and this is just the app I need. My biggest areas for improvement are listening comprehension, and most certainly, speaking German live. After just a few days of using this app, I've felt my brain being exercised in ways that no other app has been able to achieve. In addition, your personalities in the videos are great, and the content is amusing, making me want to come back for more. Thank you so much!`},{user:{name:`Gabriel Vera Molina`,imageUrl:`https://graph.facebook.com/v2.10/10210404793950741/picture?type=large`},comment:`A very interactive way of learning vocabulary and short sentences. The fact that you emphasise on speaking skills is important, since it is one of the features of language learning that's least taken into account `}],jTe=N.div` 10397 display: flex; 10398 width: 100%; 10399 max-width: 800px; 10400 padding: 0 40px; 10401 margin: ${e=>e.margin}; 10402`,MTe=N.div` 10403 flex: 1; 10404 display: flex; 10405 flex-direction: column; 10406`,NTe=N.div` 10407 display: flex; 10408 align-items: center; 10409 margin-bottom: 5px; 10410`,PTe=N.div` 10411`,FTe=N.div` 10412 padding: 15px; 10413 margin: 10px; 10414 background: ${e=>e.background||`#FFF`}; 10415 border-radius: 20px; 10416 overflow-y: auto; 10417`,AY=M(j(OY=class extends V.Component{render(){return(0,K.jsx)(jTe,{margin:this.props.margin,children:(0,G.chunk)(kY,U.AppUI.layout.isMobile?kY.length:Math.ceil(kY.length/2)).map((e,t)=>(0,K.jsx)(MTe,{children:e.map((e,t)=>(0,K.jsx)(PTe,{children:(0,K.jsxs)(FTe,{background:this.props.blockBackground,children:[(0,K.jsxs)(NTe,{children:[(0,K.jsx)(Mg,{user:e.user,margin:`0 5px 0 0`}),(0,K.jsx)(R,{bold:!0,fontSize:`15px`,lineHeight:`22px`,margin:`0 0 0 5px`,color:q.Theme.darkBlue,children:e.user.name.split(` `)[0]})]}),(0,K.jsx)(R,{fontSize:`15px`,lineHeight:`22px`,children:e.comment})]})},t))},t))})}})||OY),jY,ITe=[{name:`Authentic videos`,memrise:!0},{name:`Speaking and listening focus`},{name:`Listen to recordings of yourself to improve pronunciation`},{name:`Structured grammar`,duolingo:!0},{name:`Grammar descriptions embedded in every word`},{name:`Comprehensive vocab list to create your own flashcards`},{name:`Create your own reviews`,memrise:!0},{name:`Competitive learning: play trivia against opponents`}],LTe=N.div` 10418 padding: 0 10px; 10419 .check-with-circle-icon svg { 10420 width: 27px; 10421 } 10422`,RTe=N.div` 10423 width: 100%; 10424 max-width: 700px; 10425 border-radius: 20px; 10426 overflow: hidden; 10427`,MY=N.div` 10428 display: grid; 10429 height: 100%; 10430 grid-template-columns: 40% 20% 20% 20%; 10431 grid-template-rows: min-content; 10432 grid-gap: 0; 10433 grid-template-areas: ". . . ."; 10434 font-weight: ${e=>e.header?`bold`:300}; 10435 line-height: 20px; 10436 background: white; 10437 @media only screen and (max-width : 499px) { 10438 font-size: 12px; 10439 line-height: 16px; 10440 } 10441`,NY=N.div` 10442 display: flex; 10443 justify-content: flex-end; 10444 text-align: right; 10445 height: 100%; 10446 padding: 15px; 10447 border-top: 1px solid #d8d8d8; 10448 border-bottom: 1px solid #d8d8d8; 10449`,PY=N.div` 10450 position: relative; 10451 ${(0,X.flexCenterColumn)()} 10452 background: ${q.Theme.blue}; 10453 height: 100%; 10454 padding: 10px; 10455 border-left: 4px solid #2599b3; 10456 border-right: 4px solid #2599b3; 10457 color: white; 10458 svg { 10459 width: 32px; 10460 } 10461`,FY=N.div` 10462 ${(0,X.flexCenterColumn)()} 10463 height: 100%; 10464 padding: 10px; 10465 border-top: 1px solid #d8d8d8; 10466 border-bottom: 1px solid #d8d8d8; 10467 svg { 10468 fill: ${q.Theme.orange}; 10469 } 10470`,IY=N.div` 10471 font-size: 40px; 10472 color: #DEDEDE; 10473 font-weight: bold; 10474`,LY=M(j(jY=class extends V.Component{render(){return(0,K.jsx)(LTe,{children:(0,K.jsxs)(RTe,{children:[(0,K.jsxs)(MY,{header:!0,isMobile:U.AppUI.layout.isMobile,children:[(0,K.jsx)(NY,{}),(0,K.jsx)(PY,{children:`Seedlang`}),(0,K.jsx)(FY,{children:`Duolingo`}),(0,K.jsx)(FY,{children:`Memrise`})]}),ITe.map(e=>(0,K.jsxs)(MY,{children:[(0,K.jsx)(NY,{children:e.name}),(0,K.jsx)(PY,{children:(0,K.jsx)(J.SeedlangIconWithCircle,{})}),(0,K.jsx)(FY,{children:e.duolingo?(0,K.jsx)(J.CheckWithCircleIcon,{}):(0,K.jsx)(IY,{children:`-`})}),(0,K.jsx)(FY,{children:e.memrise?(0,K.jsx)(J.CheckWithCircleIcon,{}):(0,K.jsx)(IY,{children:`-`})})]},e.name))]})})}})||jY);function RY(e,t){if(e.inserted[t.name]===void 0)return e.insert(``,t,e.sheet,!0)}function zY(e,t,n){var r=[],i=Oe(e,r,n);return r.length<2?n:i+t(r)}var zTe=function(e){var t=Ee(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){var e=De([...arguments],t.registered,void 0);return we(t,e,!1),t.key+`-`+e.name};return{css:n,cx:function(){var e=[...arguments];return zY(t.registered,n,BTe(e))},injectGlobal:function(){RY(t,De([...arguments],t.registered))},keyframes:function(){var e=De([...arguments],t.registered),n=`animation-`+e.name;return RY(t,{name:e.name,styles:`@keyframes `+n+`{`+e.styles+`}`}),n},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Oe.bind(null,t.registered),merge:zY.bind(null,t.registered,n)}},BTe=function e(t){for(var n=``,r=0;r<t.length;r++){var i=t[r];
10474if(i!=null){var a=void 0;switch(typeof i){case`boolean`:break;case`object`:if(Array.isArray(i))a=e(i);else for(var o in a=``,i)i[o]&&o&&(a&&(a+=` `),a+=o);break;default:a=i}a&&(n&&(n+=` `),n+=a)}}return n},BY=zTe({key:`css`});BY.flush,BY.hydrate,BY.cx,BY.merge,BY.getRegisteredStyles,BY.injectGlobal,BY.keyframes;var VTe=BY.css;BY.sheet,BY.cache,D();var VY,HY,UY;function WY(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var HTe=N.div` 10475 padding: ${e=>e.padding||`120px 0`}; 10476 background: ${e=>e.background}; 10477 margin: ${e=>e.margin}; 10478 ${e=>e.center&&(0,X.flexCenterColumn)()} 10479 ${e=>e.backgroundImage&&VTe` 10480 background-image: url('${e.backgroundImage}'); 10481 background-position: center top; 10482 background-repeat: repeat-x; 10483 background-size: 100%; 10484 `} 10485`,UTe=N.div` 10486 position: relative; 10487 width: 100%; 10488 max-width: 1180px; 10489 margin: 0 auto; 10490 box-sizing: border-box; 10491 display: flex; 10492 flex-direction: column; 10493 align-items: center; 10494`,WTe=N.div` 10495 max-width: 550px; 10496`,GTe=N.div` 10497 ${(0,X.flexCenterColumn)()} 10498`,GY=M(j(VY=(HY=(UY=class extends V.Component{get background(){return this.props.lightBlue?`#e6f2f5`:this.props.blue?`#cbe4ec`:this.props.gray?`#efefef`:this.props.darkGray?`#dadada`:`#FFF`}get backgroundImage(){return this.props.showWave?`/images/wave${this.props.showWave}.png`:null}render(){return(0,K.jsx)(HTe,{margin:this.props.margin,padding:this.props.padding,background:this.background,backgroundImage:this.backgroundImage,center:this.props.center,className:this.props.className,children:(0,K.jsxs)(UTe,{children:[this.props.headline&&(0,K.jsxs)(GTe,{children:[(0,K.jsx)(R,{bold:!0,fontSize:`32px`,lineHeight:`34px`,textAlign:`center`,margin:`20px 0`,color:this.props.headlineColor,children:this.props.headline}),this.props.description&&(0,K.jsx)(WTe,{className:this.props.descriptionClassName,children:(0,K.jsx)(R,{margin:this.props.descriptionMargin||`10px 10px 40px 10px`,fontSize:`16px`,lineHeight:`22px`,color:this.props.descriptionColor,children:this.props.description})})]}),this.props.children]})})}},UY.defaultProps={margin:`-1px 0 0 0`},UY),WY(HY.prototype,`background`,[E],Object.getOwnPropertyDescriptor(HY.prototype,`background`),HY.prototype),WY(HY.prototype,`backgroundImage`,[E],Object.getOwnPropertyDescriptor(HY.prototype,`backgroundImage`),HY.prototype),HY))||VY);D();var KY,qY,JY;function KTe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function YY(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var XY=`#C9791C`,qTe=`#FBE6CF`,JTe=N.div` 10499 height: auto; 10500 position: relative; 10501 cursor: auto; 10502 background: white; 10503 border: ${e=>e.border}; 10504 min-width: ${e=>e.width}; 10505 max-width: ${e=>e.width}; 10506 padding: 15px; 10507 display: flex; 10508 flex-basis: calc(50% - 10px); 10509 align-items: center; 10510 flex-direction: column; 10511 border-radius: 5px; 10512 box-shadow: 0 0 10px 1px #d0d0d0; 10513`,YTe=N.div` 10514 display: flex; 10515 flex-direction: column; 10516 align-items: center; 10517 margin-top: 10px; 10518`,XTe=N.div` 10519 display: flex; 10520 flex-direction: column; 10521 align-items: center; 10522 width: 100%; 10523`,ZTe=N.div` 10524 font-weight: bold; 10525 color: black; 10526 height: 46px; 10527`,QTe=N.div` 10528 display: flex; 10529`,$Te=N.div` 10530 font-size: 36px; 10531 margin-top: -4px; 10532 font-family: 'Rubik' !important; 10533`,eEe=N.div` 10534 font-size: 60px; 10535 font-family: 'Rubik' !important; 10536`,tEe=N.div` 10537 font-size: 23px; 10538 margin-top: -8px; 10539 font-family: 'Rubik' !important; 10540`,nEe=N.div` 10541 font-size: 20px; 10542`,rEe=N.div` 10543 font-size: 15px; 10544`,iEe=N.div` 10545 margin-bottom: 40px; 10546 img { 10547 border-radius: 5px; 10548 max-height: 150px; 10549 width: 100%; 10550 object-fit: contain; 10551 } 10552`,aEe=N.div` 10553 height: 70px; 10554 display: flex; 10555 align-items: center;
10556`,oEe=N.div` 10557 font-size: 13px; 10558 color: #444; 10559 flex-direction: column; 10560 margin-top: 2.5px; 10561 line-height: 15px; 10562 margin-bottom: 2.5px; 10563 text-align: center; 10564 text-wrap: balance; 10565 display: grid; 10566 place-items: center; 10567 10568 strong { 10569 color: ${q.Theme.darkBlue}; 10570 } 10571`,sEe=N.div` 10572 width: 100%; 10573 flex-direction: column; 10574 line-height: 20px; 10575 margin-top: 10px; 10576 margin-bottom: 20px; 10577 overflow: hidden; 10578 p { 10579 color: black; 10580 } 10581 ul { 10582 margin-left: 20px; 10583 } 10584 li { 10585 list-style-type: disc; 10586 } 10587 a { 10588 text-decoration: underline; 10589 } 10590 a:hover { 10591 text-decoration: none; 10592 } 10593`,cEe=N.div` 10594 width: 100%; 10595 text-align: center; 10596 margin-top: 20px; 10597 a { 10598 color: white; 10599 width: 100%; 10600 } 10601`,lEe=N.div` 10602 display: flex; 10603 align-items: center; 10604 justify-content: center; 10605 background: ${e=>e.background}; 10606 font-size: 16px; 10607 padding: 25px; 10608 line-height: 0; 10609 width: 100%; 10610 color: ${e=>e.color}; 10611 border: ${e=>e.border}; 10612 border-radius: 50px; 10613 margin: 0; 10614 height: 50px; 10615 font-weight: bold; 10616 cursor: pointer; 10617 &:hover { 10618 transform: ${e=>e.hoverTransform}; 10619 } 10620 &:active { 10621 transform: ${e=>e.clickTransform}; 10622 } 10623`,uEe=N.div` 10624 margin-bottom: 5px; 10625 min-height: 50px; 10626 display: flex; 10627 align-items: center; 10628`,ZY=N.div` 10629 position: relative; 10630 margin-top: 15px; 10631 margin-bottom: -5px; 10632 font-size: 14px; 10633 background: white; 10634 border: 1px solid darkgray; 10635 border-radius: 12px; 10636 padding: 10px 16px; 10637 text-align: center; 10638 color: #444; 10639 10640 &::before { 10641 content: ''; 10642 position: absolute; 10643 top: -6px; 10644 left: 20px; 10645 width: 12px; 10646 height: 12px; 10647 background: white; 10648 border-left: 1px solid darkgray; 10649 border-top: 1px solid darkgray; 10650 transform: rotate(45deg); 10651 clip-path: polygon(0 0, 0 100%, 100% 0); 10652 } 10653`,QY=N.span` 10654 text-decoration: underline; 10655 cursor: pointer; 10656`,dEe=N.div` 10657 background: ${e=>e.background}; 10658 position: absolute; 10659 border-radius: 10px; 10660 font-size: 14px; 10661 font-weight: bold; 10662 color: #FFF; 10663 top: -10px; 10664 padding: 5px 20px; 10665`,fEe=M(j(KY=(qY=class extends V.Component{constructor(...e){super(...e),KTe(this,`expanded`,JY,this),this.buttonLoadingState=new U.LoadingState,this.handleButtonClick=async()=>{if(!this.buttonLoadingState.isLoading){if(this.props.hasMembershipChangePending){this.props.onMembershipChangePendingClick();return}if(this.shouldShowWaitlistButton){this.buttonLoadingState.started();try{let e=this.props.membership.membershipType.id;this.props.isOnWaitlist?await this.props.onLeaveWaitlist(e):await this.props.onJoinWaitlist(e),this.buttonLoadingState.succeeded()}catch(e){this.buttonLoadingState.failed(e?.message||`Unable to update the waitlist.`)}return}(!this.membershipMatchesCurrent||this.props.mode===`payment_migration`)&&this.props.onClick(this.props.membership,this.buttonLoadingState)}}}get membershipMatchesCurrent(){return this.props.paymentMigration?this.props.paymentMigration.membership?.id===this.props.membership.id:(0,W.isPresent)(this.props.activeSubscription)&&this.props.activeSubscription.membership?.id===this.props.membership.id}get membershipTypeMatchesCurrent(){return this.props.paymentMigration?!1:(0,W.isPresent)(this.props.activeSubscription)&&this.props.activeSubscription.membershipTypeId===this.props.membership?.membershipType?.id}get isNextPhaseMembership(){let e=this.props.activeSubscription?.nextPhaseMembership?.id;return(0,W.isPresent)(e)&&e===this.props.membership?.id}get shouldShowWaitlistButton(){let e=this.props.membership?.membershipType;return Number.isInteger(e?.maxUserCount)&&e.userCount>=e.maxUserCount&&(0,W.isPresent)(e.waitlistMailerliteGroupId)&&!this.membershipMatchesCurrent&&!this.membershipTypeMatchesCurrent&&!this.isNextPhaseMembership&&!this.props.hasMembershipChangePending}get buttonText(){if(U.AppUI.user.hasPermanentGroupMembership)return`-`;if(this.membershipMatchesCurrent)return`Current`;if(this.isNextPhaseMembership){let e=this.props.activeSubscription?.currentPeriodEnd;return e?`Starts on ${e.formattedDateWithFullYear}`:`Pending`}else if(this.membershipTypeMatchesCurrent)return this.props.membership?.numberMonths===12?`Switch to Yearly`:this.props.membership?.numberMonths===1?`Switch to Monthly`:`Switch`;else if(this.shouldShowWaitlistButton)return this.props.isOnWaitlist?`Leave Waitlist`:`Join Waitlist`;else if((0,W.isPresent)(this.props.activeSubscription?.membership)&&this.props.activeSubscription.membership.position<this.props.membership.position)return`Upgrade`;else if((0,W.isPresent)(this.props.activeSubscription?.membership)&&this.props.activeSubscription.membership.position>this.props.membership.position)return`Downgrade`;return`Join`}get buttonColor(){return this.shouldShowWaitlistButton?this.props.isOnWaitlist?XY:`white`:this.membershipMatchesCurrent?U.AppUI.site.accentColor:`white`}
10665get buttonBackgroundColor(){return this.shouldShowWaitlistButton?this.props.isOnWaitlist?qTe:XY:this.membershipMatchesCurrent?`white`:this.props.hasMembershipChangePending?q.Theme.gray:U.AppUI.site.accentColor}get buttonBorderColor(){return this.shouldShowWaitlistButton?XY:this.membershipMatchesCurrent?U.AppUI.site.accentColor:this.props.hasMembershipChangePending?q.Theme.gray:U.AppUI.site.accentColor}get border(){return this.props.membership.highlight?`6px solid ${U.AppUI.site.accentColor}`:`6px solid #FFF`}get membershipName(){return(0,W.isPresent)(this.props.membership?.membershipType?.name)?this.props.membership?.membershipType?.name:this.props.membership.title||``}get discountPercentage(){if(!this.pricingComparison)return null;let{monthlyCost:e,yearlyMonthlyCost:t}=this.pricingComparison;return Math.floor((e-t)/e*100)}get pricingComparison(){let e=this.props.membership;if(!e||![1,12].includes(e.numberMonths))return null;let t=e.numberMonths===1?12:1,n=e.matchingMembership(this.props.memberships,t);if(!n)return null;let r=e.numberMonths===1?e:n,i=e.numberMonths===12?e:n,a=r.costMonthly(this.props.currency),o=i.costMonthly(this.props.currency);return!Number.isFinite(a)||!Number.isFinite(o)||a<=0||o>=a?null:{monthlyCost:a,yearlyMonthlyCost:o}}get discountAmount(){if(!this.pricingComparison)return null;let{monthlyCost:e,yearlyMonthlyCost:t}=this.pricingComparison;return this.props.membership.numberMonths===1?(t/100).toFixed(2):this.props.membership.numberMonths===12?((e-t)/100).toFixed(2):null}get discountMode(){return(U.AppUI.user?.currentUserGroup?.membershipGroupId?U.AppUI.membershipGroupStore.showData:U.AppUI.user?.site?.membershipGroup)?.showDiscountAs||`percentage`}get description(){return[`All taxes included.`,this.props.currency?.toUpperCase()===`USD`?this.props.membership.descriptionUsd:this.props.membership.descriptionEur,this.props.membership.numberMonths===1?`You can cancel at any time.`:`Renews yearly, flexible cancellation after 1st year.`].join(` `)}render(){return(0,K.jsxs)(JTe,{className:`MembershipOption__Wrapper`,border:this.border,width:this.props.width,children:[this.props.membership.highlight&&(0,K.jsx)(dEe,{background:U.AppUI.site.accentColor,children:this.props.membership.highlightText}),(0,K.jsxs)(YTe,{children:[(0,K.jsx)(uEe,{children:(0,K.jsx)(R,{fontSize:`22px`,bold:!0,color:`black`,textAlign:`center`,children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.membershipName}})})}),this.props.membership.imageUrl&&(0,K.jsx)(iEe,{children:(0,K.jsx)(`img`,{src:this.props.membership.imageUrl,alt:``})}),(0,K.jsxs)(XTe,{children:[(0,K.jsx)(ZTe,{children:(0,K.jsxs)(QTe,{children:[(0,K.jsx)($Te,{children:this.props.currencySymbol}),(0,K.jsx)(eEe,{children:this.props.membership.recurring?(0,W.dollar)(this.props.membership.costMonthly(this.props.currency)):(0,W.dollar)(this.props.membership.cost(this.props.currency))}),(0,K.jsx)(tEe,{children:this.props.membership.recurring?(0,W.cents)(this.props.membership.costMonthly(this.props.currency)):(0,W.cents)(this.props.membership.cost(this.props.currency))}),this.props.membership.recurring&&(0,K.jsx)(nEe,{children:`/`}),this.props.membership.recurring&&(0,K.jsx)(rEe,{children:`month`})]})}),(this.discountPercentage||this.discountAmount)&&this.props.membership?.numberMonths===1&&(0,K.jsx)(ZY,{children:this.discountMode===`amount`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{children:[`Or only `,this.props.currencySymbol,this.discountAmount,` per month`]}),(0,K.jsxs)(`div`,{children:[`with `,(0,K.jsx)(QY,{onClick:this.props.toggleYearly,children:`yearly\xA0billing`})]})]}):(0,K.jsxs)(K.Fragment,{children:[`Switch to `,(0,K.jsx)(QY,{onClick:this.props.toggleYearly,children:`yearly\xA0billing`}),` for `,this.discountPercentage,`% off.`]})}),(this.discountPercentage||this.discountAmount)&&this.props.membership?.numberMonths===12&&(0,K.jsx)(ZY,{children:this.discountMode===`amount`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{children:[`You're saving `,this.props.currencySymbol,this.discountAmount,` per month`]}),(0,K.jsx)(`div`,{children:`on the yearly plan.`})]}):(0,K.jsxs)(K.Fragment,{children:[`You're saving `,this.discountPercentage,`% on the yearly plan`]})})]})]}),!U.AppUI.user.hasPermanentGroupMembership&&(0,K.jsx)(cEe,{children:(0,K.jsx)(lEe,{color:this.buttonColor,background:this.buttonBackgroun
10665dColor,border:`4px solid ${this.buttonBorderColor}`,hoverTransform:!this.membershipMatchesCurrent&&!this.isNextPhaseMembership?`scale(1.03)`:null,clickTransform:!this.membershipMatchesCurrent&&!this.isNextPhaseMembership?`scale(0.97)`:null,onClick:this.handleButtonClick,children:this.buttonLoadingState.isLoading?(0,K.jsx)(P,{background:this.buttonColor,margin:`0`,width:`50px`,height:`10px`}):this.buttonText})}),(0,K.jsx)(aEe,{children:(0,W.isPresent)(this.description)&&(0,K.jsxs)(oEe,{children:[(0,K.jsx)(`strong`,{children:`14-day money-back guarantee.`}),this.description]})}),(0,K.jsx)(sEe,{children:(0,K.jsx)(wP,{paragraphLimit:this.props.expandable?3:100,markdownText:this.props.membership.descriptionMd,nonExpandedHeight:this.props.expandable?`180px`:null,htmlText:(0,W.isPresent)(this.props.membership.description)&&(0,W.isBlank)(this.props.membership.descriptionMd)&&this.props.membership.description})})]})}},JY=YY(qY.prototype,`expanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),YY(qY.prototype,`membershipMatchesCurrent`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`membershipMatchesCurrent`),qY.prototype),YY(qY.prototype,`membershipTypeMatchesCurrent`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`membershipTypeMatchesCurrent`),qY.prototype),YY(qY.prototype,`isNextPhaseMembership`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`isNextPhaseMembership`),qY.prototype),YY(qY.prototype,`shouldShowWaitlistButton`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`shouldShowWaitlistButton`),qY.prototype),YY(qY.prototype,`buttonText`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`buttonText`),qY.prototype),YY(qY.prototype,`buttonColor`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`buttonColor`),qY.prototype),YY(qY.prototype,`buttonBackgroundColor`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`buttonBackgroundColor`),qY.prototype),YY(qY.prototype,`buttonBorderColor`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`buttonBorderColor`),qY.prototype),YY(qY.prototype,`border`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`border`),qY.prototype),YY(qY.prototype,`membershipName`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`membershipName`),qY.prototype),YY(qY.prototype,`discountPercentage`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`discountPercentage`),qY.prototype),YY(qY.prototype,`pricingComparison`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`pricingComparison`),qY.prototype),YY(qY.prototype,`discountAmount`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`discountAmount`),qY.prototype),YY(qY.prototype,`discountMode`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`discountMode`),qY.prototype),YY(qY.prototype,`description`,[E],Object.getOwnPropertyDescriptor(qY.prototype,`description`),qY.prototype),qY))||KY);D();var $Y,eX,tX;function pEe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function mEe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hEe=N.div` 10666 display: inline-flex; 10667 background-color: #e8e8e8; 10668 border-radius: ${e=>e.small?`19px`:`24px`}; 10669 padding: 2px; 10670 position: relative; 10671 gap: 0; 10672 height: ${e=>e.small?`30px`:`38px`}; 10673 align-items: center; 10674 opacity: ${e=>e.disabled?`0.5`:`1`}; 10675 cursor: ${e=>e.disabled?`not-allowed`:`default`}; 10676`,gEe=N.button` 10677 width: ${e=>e.buttonWidth}; 10678 padding: ${e=>e.small?`6px 13px`:`8px 16px`}; 10679 border: none; 10680 background: ${e=>e.isActive?`#FFF`:`transparent`}; 10681 color: ${e=>e.isActive?`#000`:`#666`}; 10682 font-weight: ${e=>e.isActive?`600`:`400`}; 10683 border-radius: ${e=>e.small?`17px`:`22px`}; 10684 cursor: ${e=>e.disabled?`not-allowed`:`pointer`}; 10685 transition: all 0.2s ease; 10686 font-size: ${e=>(0,W.isPresent)(e.fontSize)?e.fontSize:e.small?`12px`:`14px`}; 10687 box-shadow: ${e=>e.isActive?`0 1px 3px rgba(0,0,0,0.12)`:`none`}; 10688 white-space: nowrap; 10689 height: ${e=>e.small?`26px`:`34px`}; 10690 line-height: 1; 10691 display: flex; 10692 align-items: center; 10693 justify-content: center; 10694 pointer-events: ${e=>e.disabled?`none`:`auto`}; 10695 10696 &:hover { 10697 color: ${e=>e.isActive?`#000`:`#333`}; 10698 } 10699 10700 &:focus { 10701 outline: none; 10702 } 10703`,nX=j($Y=(eX=class extends V.Component{constructor(e){super(e),pEe(this,`buttonWidth`,tX,this),this.handleOptionClick=e=>{this.props.onChange&&this.props.onChange(e)},(0,W.isBlank)(e.buttonWidth)&&(e.small?this.buttonWidth=`77px`:this.buttonWidth=`96px`)}render(){return(0,K.jsx)(hEe,{small:this.props.small,disabled:this.props.disabled,children:this.props.options.map(e=>(0,K.jsx)(gEe,{isActive:this.props.activeOption===e.value,onClick:()=>this.handleOptionClick(e.value),small:this.props.small,fontSize:this.props.fontSize,buttonWidth:this.buttonWidth,disabled:this.props.disabled,children:e.label},e.value))})}},tX=mEe(eX.prototype,`buttonWidth`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),eX))||$Y;D();var rX,iX,aX,oX,sX,cX;function lX(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function uX(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _Ee=N.div` 10704 position: relative; 10705 display: flex; 10706 flex-direction: column; 10707 justify-content: center; 10708 10709 @media only screen and (max-width : 760px) { 10710 width: 100%; 10711 } 10712`,vEe=N.div` 10713 display: flex; 10714 flex-direction: column; 10715 width: 100%; 10716 justify-content: flex-start; 10717 margin-top: 30px; 10718`,yEe=N.div` 10719 display: flex; 10720 width: 100%; 10721 justify-content: center; 10722 margin-bottom: 10px; 10723 margin-top: 20px; 10724`,bEe=N.div` 10725 display: flex; 10726 flex-wrap: wrap; 10727 gap: 15px; 10728 padding-bottom: 10px; 10729 width: 100%; 10730 max-width: 1080px; 10731 justify-content: center; 10732 10733 @media only screen and (max-width: 730px) { 10734 padding: 0 20px; 10735 } 10736
10737 @media only screen and (min-width: 731px) and (max-width: 1115px) { 10738 max-width: 800px; 10739 } 10740`,xEe=N.div` 10741 background: white; 10742 padding: 20px; 10743 width: 100%; 10744 margin-bottom: 20px; 10745 line-height: 1.5; 10746 transition: background 0.3s ease; 10747 10748 &.flash { 10749 animation: flashAttention 0.75s ease; 10750 } 10751 10752 @keyframes flashAttention { 10753 0%, 100% { background: white; } 10754 50% { background: ${()=>`${U.AppUI.site.secondaryAccentColor}40`}; } 10755 } 10756`,SEe=N.div` 10757 font-size: 12px; 10758 color: ${e=>e.color}; 10759 line-height: 15px; 10760 margin: 5px auto; 10761 text-align: center; 10762 overflow-wrap: break-word; 10763 max-width: 1080px; 10764 10765 @media only screen and (max-width: 730px) { 10766 padding: 0 20px; 10767 } 10768`,CEe=N.div` 10769 display: flex; 10770 flex-direction: column; 10771 align-items: center; 10772`,wEe=N.div` 10773 display: flex; 10774 flex-direction: column; 10775 align-items: center; 10776 background: #FFF; 10777 margin-top: 15px; 10778 width: 100%; 10779 max-width: 1080px; 10780 padding: 20px; 10781 border-radius: 5px; 10782 10783 @media only screen and (max-width: 730px) { 10784 margin: 15px 20px 0; 10785 width: calc(100% - 40px); 10786 } 10787`,TEe=N.div` 10788 display: block; 10789 direction: auto; 10790 font-size: 22px; 10791 line-height: 22px; 10792 font-weight: bold; 10793 text-align: center; 10794 color: black; 10795 margin: 0; 10796 `,EEe=N.div` 10797 display: flex; 10798 justify-content: center; 10799 margin: 0 auto; 10800`,DEe=N.div` 10801 font-size: 12px; 10802 line-height: 16px; 10803 max-width: 600px; 10804 text-align: center; 10805 color: ${q.Theme.gray}; 10806 padding: 0 ${z.md}; 10807 10808 a { color: inherit; } 10809`,OEe=N.div` 10810 background: #FFF; 10811 margin-top: 15px; 10812 width: 100%; 10813 max-width: 1080px; 10814 padding: 10px 20px; 10815 border-radius: 5px; 10816 10817 @media only screen and (max-width: 730px) { 10818 margin: 15px 20px 0; 10819 width: calc(100% - 40px); 10820 } 10821`,kEe=j(rX=(iX=class extends V.Component{constructor(e){super(e),lX(this,`loadedMembershipGroup`,aX,this),lX(this,`membershipsFilter`,oX,this),lX(this,`subscriptionLoaded`,sX,this),lX(this,`waitlistedMembershipTypeIds`,cX,this),this.membershipChangeNoticeRef=V.createRef(),this.waitlistMutationVersion=0,this.waitlistStatusesRequested=!1,this.onMonthly=()=>{this.membershipsFilter=1},this.onYearly=()=>{this.membershipsFilter=12},this.onToggle=()=>{this.membershipsFilter=this.membershipsFilter===1?12:1},this.handleMembershipChangePendingClick=async()=>{let e=this.membershipChangeNoticeRef.current;e&&(e.scrollIntoView({behavior:`smooth`,block:`center`}),e.classList.add(`flash`),await(0,W.sleep)(750),e.classList.remove(`flash`))},this.updateCurrency=e=>{this.currency!==e&&(U.AppUI.userIsSignedIn?(U.AppUI.user.set(`currency`,e),U.AppUI.authUserStore.update({data:{currency:e}})):U.AppUI.cookieStore.set(`currency`,e))},this.loadMembershipGroup=()=>{(0,W.isPresent)(U.AppUI.user.currentUserGroup)&&U.AppUI.membershipGroupStore.getShow({ids:{membershipGroupId:U.AppUI.user.currentUserGroup.membershipGroupId}})},this.loadWaitlistStatuses=async()=>{let e=this.waitlistMutationVersion;try{let t=await H.MembershipTypeStore.getWaitlistStatusesPromise();e===this.waitlistMutationVersion&&(this.waitlistedMembershipTypeIds=t.membershipTypeIds||[])}catch{e===this.waitlistMutationVersion&&(this.waitlistedMembershipTypeIds=[])}},this.joinWaitlist=async e=>{if(!U.AppUI.userIsSignedIn){U.AppUI.routeStore.routeToNamed(`onboarding.register`);return}this.waitlistMutationVersion+=1;try{await H.MembershipTypeStore.joinWaitlistPromise(e)}catch(e){throw this.loadWaitlistStatuses(),e}this.waitlistedMembershipTypeIds=[...new Set([...this.waitlistedMembershipTypeIds,e])]},this.leaveWaitlist=async e=>{this.waitlistMutationVersion+=1;try{await H.MembershipTypeStore.leaveWaitlistPromise(e)}catch(e){throw this.loadWaitlistStatuses(),e}this.waitlistedMembershipTypeIds=this.waitlistedMembershipTypeIds.filter(t=>t!==e)},this.onClick=async(e,t=null)=>{if(U.AppUI.user.hasPermanentGroupMembership)return;if(U.AppUI.set(`currentlyViewedMembership`,e),this.props.mode===`payment_migration`||U.AppUI.isPaymentMigrationStartable){t||=new U.LoadingState,t.started();try{await H.PaymentMigrationStore.updateMembershipPromise({membershipId:e?.id,currency:this.currency}),t.succeeded(),U.AppUI.loadUser(),U.AppUI.routeStore.routeToNamed(`onboarding.migration`)}catch{t.failed(`An error occurred while setting the membership.`)}return}let n=window.location.href&&window.location.href.match(`settings`)?`settings.memberships.create`:`memberships.create`;U.AppUI.routeStore.routeToNamed(n,{membershipId:e.id})},U.AppUI.userIsLoaded||U.AppUI.loadUser(),U.AppUI.scrollToPageTop(),this.disposer=te(()=>{U.AppUI.userIsLoaded&&U.AppUI.user.currentUserGroup?.membershipGroupId&&!this.loadedMembershipGroup&&(this.loadedMembershipGroup=!0,this.loadMembershipGroup()),U.AppUI.userIsLoaded&&U.AppUI.userIsSignedIn&&!this.waitlistStatusesRequested&&(this.waitlistStatusesRequested=!0,this.loadWaitlistStatuses()),U.AppUI.userIsLoaded&&U.AppUI.userSubscriptionStore.hasIndexData&&!this.subscriptionLoaded&&(this.subscriptionLoaded=!0,this.props.activeSubscription?.membership?.numberMonths===12&&this.onYearly())})}componentWillUnmount(){this.disposer&&this.disposer()}get membershipOptionWidth(){return U.AppUI.layout.viewportWidth<=730||this.filteredMemberships.length===1?`100%`:U.AppUI.layout.viewportWidth<=1115||this.filteredMemberships.length===4?`calc(50% - 7.5px)`:`350px`}get isMultiRowLayout(){let e=this.filteredMemberships.length;return U.AppUI.layout.viewportWidth<=730?e>1:U.AppUI.layout.viewportWidth<=1115?e>2:e>3}get siteId(){return Ae.get(`site_id`)}get currency(){return U.AppUI.userIsSignedIn?U.AppUI.user?.currency?.toUpperCase()??`USD`:(console.log(`cookieStore.currency`,U.AppUI.cookieStore.currency),console.log(`user.currency`,U.AppUI.user?.currency),U.AppUI.cookieStore.currency?.toUpperCase()??U.AppUI.user?.currency?.toUpperCase()??`USD`)}get currencySymbol(){return this.currency?.toUpperCase()===`USD`?`$`:`â¬`}get isCurrencyChangeDisabled(){return this.props.activeSubscription?.isActive||this.props.activeSubscription?.isTrialing}get otherCurrency(){return this.props.activeSubscription?.currency===`USD`?`EUR`:`USD`}get hasNextPhaseMembership(){return(0,W.isPresent)(this.props.activeSubscription?.nextPhaseMembership?.id)}get hasDowngradePending(){if(!this.hasNextPhaseMembership)return!1;let e=this.props.activeSubscription.nextPhaseMembership.position,t=this.props.activeSubscription.membership?.position;return e==null||t==null?!1:e<t}get hasSameTierFrequencyChangePending(){if(!this.hasNextPhaseMembership)return!1;let e=this.props.activeSubscription.nextPhaseMembership,t=this.props.activeSubscription.membership;
10821if(!e.membershipTypeId||!t?.membershipTypeId)return!1;let n=e.membershipTypeId===t.membershipTypeId,r=e.numberMonths!==t.numberMonths;return n&&r}get hasMembershipChangePending(){return this.hasDowngradePending||this.hasSameTierFrequencyChangePending}get filteredMemberships(){return(0,W.isPresent)(this.activeMemberships)?this.activeMemberships.filter(e=>this.membershipsFilter===e.numberMonths&&e.active):[]}get activeMemberships(){let e=U.AppUI.user?.currentUserGroup?.membershipGroupId?U.AppUI.membershipGroupStore.showData:U.AppUI.user?.site?.membershipGroup;return(0,W.isPresent)(e)?e.memberships.filter(e=>e.active):[]}render(){return(0,K.jsxs)(_Ee,{children:[U.AppUI.user.hasPermanentGroupMembership&&(0,K.jsx)(B,{textAlign:`center`,margin:`20px 0 20px 0`,background:q.Theme.green,children:`You have a free membership and will not be able to purchase a membership. Please contact us if you think there is an error.`}),U.AppUI.isPaymentMigrationStartable&&this.props.mode!==`payment_migration`&&(0,K.jsx)(B,{textAlign:`center`,margin:`20px 0 20px 0`,background:q.Theme.green,children:`You are currently subscribed via Patreon. If you wish to change your membership, you will then be asked to migrate your payment to our platform.`}),this.props.mode===`payment_migration`&&U.AppUI.isPaymentMigrationStartable&&(0,K.jsx)(B,{textAlign:`center`,margin:`20px 0 20px 0`,background:q.Theme.green,children:`You are currently migrating your payment method. Please select a membership level below. You will not be charged yet.`}),(0,K.jsxs)(vEe,{children:[(0,K.jsx)(R,{heading:2,margin:`0 auto 10px auto`,children:this.props.activeSubscription?.membership?`My Membership`:`Choose Your Membership`}),(0,K.jsx)(EEe,{children:(0,K.jsx)(nX,{options:[{value:1,label:`Monthly`},{value:12,label:`Yearly`}],activeOption:this.membershipsFilter,onChange:e=>e===1?this.onMonthly():this.onYearly()})}),(0,K.jsx)(yEe,{children:(0,K.jsxs)(CEe,{children:[(0,K.jsxs)(bEe,{children:[this.hasMembershipChangePending&&(0,K.jsx)(xEe,{ref:this.membershipChangeNoticeRef,children:this.hasSameTierFrequencyChangePending?(0,K.jsxs)(K.Fragment,{children:[`You are scheduled to switch to `,(0,K.jsxs)(`strong`,{children:[this.props.activeSubscription.nextPhaseMembership?.numberMonths===12?`yearly`:`monthly`,` billing`]}),` on `,this.props.activeSubscription.currentPeriodEnd?.formattedDateWithFullYear,`.`,(0,K.jsx)(`br`,{}),`If you would like to change your membership, go to `,(0,K.jsx)(F,{className:`underline`,to:`settings.billing`,children:`Settings\xA0/\xA0Manage\xA0Membership`}),` to cancel this change first.`]}):(0,K.jsxs)(K.Fragment,{children:[`You have a `,(0,K.jsx)(`strong`,{children:`pending downgrade`}),` that will go into effect on `,this.props.activeSubscription.currentPeriodEnd?.formattedDateWithFullYear,`.`,(0,K.jsx)(`br`,{}),`You have access to your `,this.props.activeSubscription.membership?.title,` benefits until then.`,(0,K.jsx)(`br`,{}),`If you would like to change your membership, go to `,(0,K.jsx)(F,{className:`underline`,to:`settings.billing`,children:`Settings\xA0/\xA0Manage\xA0Membership`}),` to cancel your downgrade first.`]})}),this.filteredMemberships&&this.filteredMemberships.map(e=>(0,K.jsx)(fEe,{currency:this.currency,currencySymbol:this.currencySymbol,membership:e,onClick:this.onClick,onJoinWaitlist:this.joinWaitlist,onLeaveWaitlist:this.leaveWaitlist,isOnWaitlist:this.waitlistedMembershipTypeIds.includes(e.membershipType?.id),width:this.membershipOptionWidth,mode:this.props.mode,memberships:this.activeMemberships,hasMembershipChangePending:this.hasMembershipChangePending,onMembershipChangePendingClick:this.handleMembershipChangePendingClick,toggleYearly:this.onToggle,activeSubscription:this.props.activeSubscription,paymentMigration:U.AppUI.isPaymentMigrationStartable||U.AppUI.isPaymentMigrationInProgress?U.AppUI.user.paymentMigration:null,expandable:this.isMultiRowLayout},e.id))]}),!U.AppUI.userIsSignedIn&&!U.AppUI.membershipGroupStore.hasOutstandingRequests&&(0,K.jsxs)(wEe,{children:[(0,K.jsx)(TEe,{children:`Create Free Account`}),(0,K.jsx)(`p`,{children:`Undecided? It's free to register and try out our membership perks.`}),(0,K.jsx)(F,{to:`onboarding.register`,children:(0,K.jsx)(I,{children:`Register`})})]}),(0,W.isPresent)(U.AppUI.site.membershipFooter)&&!U.AppUI.membershipGroupStore.hasOutstandingRequests&&!U.AppUI.user?.isMember&&(0,K.jsx)(OEe,{dangerouslySetInnerHTML:{__html:U.AppUI.site.membershipFooter}})]})}),(0,K.jsxs)(An,{gap:`sm`,alignItems:`center`,children:[(0,K.jsxs)(An,{gap:`xs`,alignItems:`center`,children:[(0,K.jsx)(nX,{options:[{value:`USD`,label:`USD`},{value:`EUR`,label:`EUR`}],activeOption:this.currency,onChange:e=>this.updateCurrency(e),small:!0,disabled:this.isCurrencyChangeDisabled}),this.isCurrencyChangeDisabled&&(0,K.jsxs)(DEe,{children:[`Because you have a subscription in `,this.props.activeSubscription?.currency,`, you cannot currently change your currency.`,(0,K.jsx)(`br`,{}),`If you would absolutely like to pay in `,this.otherCurrency,`, please `,(0,K.jsx)(F,{className:`underline`,to:`contact`,children:`contact us`}),`.`]})]}),(0,K.jsxs)(SEe,{children:[`Our membership platform is hosted by Seedlang, Inc. By signing up, you create a free user account with Seedlang (`,(0,K.jsx)(`a`,{href:`https://seedlang.com/terms`,target:`_blank`,rel:`noopener noreferrer`,children:`Terms of Service`}),`), which can also be used for any Easy Languages membership. If you choose a paid membership on this page, you'll enter into a paid subscription agreement with Easy Languages GmbH. You can also use an existing Easy Languages or Seedlang account.`]})]})]})]})}},aX=uX(iX.prototype,`loadedMembershipGroup`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oX=uX(iX.prototype,`membershipsFilter`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),sX=uX(iX.prototype,`subscriptionLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cX=uX(iX.prototype,`waitlistedMembershipTypeIds`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),uX(iX.prototype,`membershipOptionWidth`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`membershipOptionWidth`),iX.prototype),uX(iX.prototype,`isMultiRowLayout`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`isMultiRowLayout`),iX.prototype),uX(iX.prototype,`siteId`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`siteId`),iX.prototype),uX(iX.prototype,`currency`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`currency`),iX.prototype),uX(iX.prototype,`currencySymbol`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`currencySymbol`),iX.prototype),uX(iX.prototype,`isCurrencyChangeDisabled`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`isCurrencyChangeDisabled`),iX.prototype),uX(iX.prototype,`otherCurrency`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`otherCurrency`),iX.prototype),uX(iX.prototype,`hasNextPhaseMembership`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`hasNextPhaseMembership`),iX.prototype),uX(iX.prototype,`hasDowngradePending`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`hasDowngradePending`),iX.prototype),uX(iX.prototype,`hasSameTierFrequencyChangePending`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`hasSameTierFrequencyChangePending`),iX.prototype),uX(iX.prototype,`hasMembershipChangePending`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`hasMembershipChangePending`),iX.prototype),uX(iX.prototype,`filteredMemberships`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`filteredMemberships`),iX.prototype),uX(iX.prototype,`activeMemberships`,[E],Object.getOwnPropertyDescriptor(iX.prototype,`activeMemberships`),iX.prototype),iX))||rX,dX=(0,Y.SettingsBillingWrapper)(kEe),fX,AEe=N.div` 10822 @media (min-width: 700px) { 10823 margin: -10px 0 0 0; 10824 } 10825`,pX=M(j(fX=class extends V.Component{componentDidMount(){U.AppUI.loadUser(),U.AppUI.userSubscriptionStore.set(`indexData`,[]),U.AppUI.userSubscriptionStore.getIndex({}),U.AppUI.createEvent(`checkout - memberships`)}get membershipOptionsDisabled(){return U.AppUI.user?.signedOut?!1:!!DG(U.AppUI.userSubscriptionStore.indexData)}render(){return(0,K.jsxs)(AEe,{children:[(0,K.jsx)(hp,{children:(0,K.jsx)(dX,{})}),(0,K.jsxs)(mp,{children:[(0,K.jsx)(OG,{}),(0,K.jsx)(xTe,{showMoneyback:!0,disabled:this.membershipOptionsDisabled,...this.props}),(0,K.jsx)(GY,{headline:`Unlock All Stories`,description:(0,K.jsxs)(`span`,{children:[`We tell stories that are fun, surprising, and memorable. This will help to give context to what you are learning and `,(0,K.jsx)(`b`,{children:`make learning feel effortless.`})]}),children:(0,K.jsx)(TY,{})}),(0,K.jsx)(GY,{lightBlue:!0,headline:(0,K.jsxs)(`span`,{children:[`Our Flashcards Have `,(0,K.jsx)(`i`,{children:`Superpowers`})]}),description:(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`b`,{children:`You've never seen flashcards like these before.`}),` They combine video, speaking practice, and embedded grammar to create a fun and effective learning experience.`]}),children:(0,K.jsx)(vY,{})}),(0,K.jsx)(GY,{headline:`Customize Your Learning`,description:(0,K.jsxs)(`span`,{children:[`Use our vocab trainer to build flashcard decks tailored to `,(0,K.jsx)(`b`,{children:`specific vocabulary that you want to learn`}),`. Each card is pulled from one of our stories and has all of the fun context that will make this vocabulary easy to remember.`]}),children:(0,K.jsx)(DY,{})}),(0,K.jsx)(GY,{darkGray:!0,headline:`How We are Different`,description:(0,K.jsxs)(`span`,{children:[`Seedlang brings `,(0,K.jsx)(`b`,{children:`many new ideas and innovations`}
10825),` to app-based language learning. Here is how we stack up against some notable competitors.`]}),children:(0,K.jsx)(LY,{})}),(0,K.jsx)(GY,{gray:!0,headline:`What our students love about Seedlang!`,children:(0,K.jsx)(AY,{})})]})]})}})||fX),mX,jEe=N.div` 10826 @media (min-width: 700px) { 10827 margin: -10px 0 0 0; 10828 } 10829 `,MEe=M(j(mX=class extends V.Component{get mode(){return U.AppUI.routeStore.queryParam(`mode`)}componentDidMount(){U.AppUI.siteIsDefault||U.AppUI.createEvent(`memrev - view memberships`,Ul({mode:this.mode}))}render(){return(0,K.jsx)(jEe,{children:!U.AppUI.siteIsDefault&&(0,K.jsx)(dX,{mode:this.mode})})}})||mX),hX,NEe=N.button` 10830 cursor: ${e=>e.disabled?`default!important`:`pointer`}; 10831 background: ${e=>e.disabled?`#ababab`:`#1DB5D7`}; 10832 white-space: nowrap; 10833 border: 0; 10834 outline: 0; 10835 display: inline-block; 10836 height: 40px; 10837 line-height: 40px; 10838 padding: 0 14px; 10839 box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08); 10840 color: #fff; 10841 border-radius: 4px; 10842 font-size: 15px; 10843 font-weight: 600; 10844 text-transform: uppercase; 10845 letter-spacing: 0.025em; 10846 text-decoration: none; 10847 -webkit-transition: all 150ms ease; 10848 transition: all 150ms ease; 10849 margin-top: 10px; 10850 width: 100%; 10851 &:hover { 10852 color: #fff; 10853 cursor: pointer; 10854 background: ${e=>e.disabled?`#ababab`:`#1190ad`}; 10855 box-shadow: 0 7px 14px rgba(50, 50, 93, .10), 0 3px 6px rgba(0, 0, 0, .08); 10856 } 10857`,PEe=M(j(hX=class extends V.Component{render(){return(0,K.jsx)(NEe,{...this.props,onClick:this.props.onClick,children:this.props.children})}})||hX),gX,FEe=N.div` 10858 ${(0,X.flexCenterColumn)()} 10859 width: 100%; 10860 img { 10861 height: 16px; 10862 margin-right: 2px; 10863 } 10864`,IEe=N.div` 10865 ${(0,X.flexCenter)()} 10866 background: #FFF; 10867 color: #000; 10868 border: ${e=>e.selected?`1px solid #000`:`1px solid #D1D1D1`}; 10869 cursor: pointer; 10870 width: 100%; 10871 margin: 5px 0; 10872 padding: 10px; 10873 border-radius: 5px; 10874`,LEe=N.div` 10875 ${(0,X.flexCenter)()} 10876 width: 22px; 10877 height: 22px; 10878 border-radius: 50%; 10879 border: ${e=>(e.selected,`1px solid #D1D1D1`)}; 10880 margin-right: 10px; 10881`,REe=N.div` 10882 width: 14px; 10883 height: 14px; 10884 border-radius: 50%; 10885 background: #535b86; 10886`,zEe=N.div` 10887 flex: 1; 10888`,_X=M(j(gX=class extends V.Component{render(){return(0,K.jsx)(FEe,{children:(0,K.jsxs)(IEe,{selected:this.props.selected,onClick:this.props.onClick,children:[(0,K.jsx)(LEe,{selected:this.props.selected,children:this.props.selected&&(0,K.jsx)(REe,{})}),this.props.image&&(0,K.jsx)(`img`,{src:this.props.image,alt:``}),(0,K.jsx)(zEe,{children:this.props.text})]})})}})||gX);me();var vX,BEe=N.div` 10889 padding: 0 20px; 10890 background: #FFF; 10891 border-radius: 10px; 10892 width: 100%; 10893 img { 10894 width: 14px!important; 10895 } 10896`,VEe=N.div` 10897 position: relative; 10898 color: #FFF; 10899 margin-top: 10px; 10900 display: flex; 10901 align-items: center; 10902 background: #333; 10903 padding: 5px; 10904 display: flex; 10905 align-items: center; 10906 justify-content: center; 10907 border-radius: 5px; 10908 cursor: pointer; 10909 img { 10910 width: 18px; 10911 margin-right: 5px; 10912 } 10913`,HEe=N.div` 10914 position: absolute; 10915 font-size: 15px; 10916 right: 7px; 10917 top: 6px; 10918 font-size: 15px; 10919`,UEe=N.div` 10920 margin: 20px 0 0px 0; 10921 text-align: center; 10922`,yX=M(j(vX=class extends V.Component{constructor(...e){super(...e),this.showPatreonScreen=()=>{U.AppUI.routeStore.routeToNamed(`onboarding.patreon`)}}render(){return(0,K.jsxs)(BEe,{children:[(0,K.jsx)(wp,{width:`100%`,background:`#FFF`,borderRadius:`5px`,hideTitle:!0,hidePrivacy:!0,color:`#333`,signInCard:!0,checkout:!0,showEmailConfirmation:!U.AppUI.siteIsDefault,showTerms:!U.AppUI.siteIsDefault,afterRegistration:this.props.afterRegistration,onConfirmationRequired:this.props.onConfirmationRequired}),this.renderAlternativesSection()]})}renderAlternativesSection(){return(0,K.jsxs)(K.Fragment,{children:[U.AppUI.showPatreonButton&&(0,K.jsx)(F,{onClick:this.showPatreonScreen,children:(0,K.jsxs)(VEe,{children:[(0,K.jsx)(`img`,{alt:``,src:`/images/patreon_white.png`,className:`patreon-logo`}),`Connect with Patreon`,(0,K.jsxs)(HEe,{"data-for":`patreon-notice`,"data-tip":!0,children:[(0,K.jsx)(`i`,{className:`fa fa-question-circle`}
10922),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:`patreon-notice`,className:`custom-tooltip`,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`div`,{children:`If you're an active Patreon member, click here`}),(0,K.jsx)(`div`,{children:`to link your account. Then, simply log in with`}),(0,K.jsx)(`div`,{children:`your Patreon credentials and authorize access.`})]})})]})]})}),!U.AppUI.siteIsDefault&&(0,K.jsxs)(UEe,{children:[`Already a Member? `,(0,K.jsx)(`a`,{style:{marginLeft:`5px`},className:`underline`,href:`/onboarding/sign_in`,children:`Sign In.`})]})]})}})||vX);D();var bX,xX,SX,CX,wX,TX,EX,DX,OX,kX,AX,jX;function MX(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function NX(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var WEe=N.div` 10923 ${(0,X.flexCenterColumn)()} 10924 ${(0,X.smallText)()} 10925 margin-bottom: ${e=>e.isMobile?`0`:`20px`}; 10926 ${(0,X.fixedCenter)()} 10927 background: ${e=>e.background}; 10928 z-index: ${q.Theme.z.foreground}; 10929`,GEe=N.div` 10930 display: block; 10931 font-size: 20px; 10932 line-height: 24px; 10933 font-weight: bold; 10934 text-align: center; 10935 color: #000; 10936 margin: ${e=>e.margin}; 10937 word-break: break-word; 10938`,KEe=N.div` 10939 ${(0,X.flexCenterColumn)()} 10940 ${(0,X.absoluteCenter)()} 10941 background: ${e=>e.background}; 10942 border-radius: ${e=>e.isMobile?0:`20px`}; 10943 max-width: ${e=>e.isMobile?`100%`:`500px`}; 10944 max-height: ${e=>e.maxHeight}; 10945 height: ${e=>e.isMobile?`100%`:`auto`}; 10946 margin: ${e=>e.isMobile?`0`:`60px auto`}; 10947 width: 100%; 10948 z-index: 4; 10949 padding: 20px; 10950 overflow: auto; 10951`,qEe=N.div` 10952${(0,X.flexCenterColumn)()} 10953 height: 100%; 10954 width: 100%; 10955 background: #FFF; 10956 border-radius: 10px; 10957`,JEe=N.div` 10958 ${(0,X.flexCenterColumn)()} 10959 width: 100%; 10960 padding: 0 20px; 10961 background: #FFF; 10962 border-radius: 5px; 10963`,YEe=N.div` 10964 ${(0,X.flexCenterColumn)()} 10965 width: 100%; 10966`,XEe=N.div` 10967 font-size: 14px; 10968 opacity: 0.8; 10969 margin: 10px 0; 10970 text-align: center; 10971`,PX=N.div` 10972 background: white; 10973 border-radius: 5px; 10974 padding: 10px; 10975 font-size: 14px; 10976 opacity: 0.8; 10977 margin: 10px 0; 10978 text-align: center; 10979 font-weight: bold; 10980`,ZEe=N.div` 10981 margin: 0 0px 10px 0px; 10982`,QEe=N.span` 10983 margin-left: 5px; 10984 background: #ce6322; 10985`,FX=pf(M(j(bX=(xX=class extends V.Component{constructor(e){super(e),MX(this,`failedPayment`,SX,this),MX(this,`failureMessage`,CX,this),MX(this,`paymentType`,wX,this),MX(this,`startedCheckoutAsUnregistered`,TX,this),MX(this,`show`,EX,this),MX(this,`registrationComplete`,DX,this),MX(this,`setViewedCheckoutCount`,OX,this),MX(this,`authType`,kX,this),MX(this,`isDataLoaded`,AX,this),MX(this,`submittingPayment`,jX,this),this.createPayment=()=>{this.reset(),this.setSubmittingPayment(),this.paymentType===`stripe`?(U.AppUI.createEvent(`checkout - click stripe button`),this.forwardToStripe()):this.paymentType===`paypal`&&(U.AppUI.createEvent(`checkout - click paypal button`),U.AppUI.paypalStore.create({data:{membership_id:this.props.params.membershipId}},this.afterCreatePaypalLink))},this.setSubmittingPayment=()=>{this.submittingPayment=!0},this.afterCreatePaypalLink=e=>{e.success?e.url?window.location=e.url:(console.warn(`No url returned from the API while creating a PayPal link.`),this.afterCreatePaymentFailure(e)):this.afterCreatePaymentFailure(e)},this.afterCreatePaymentFailure=e=>{U.AppUI.createEvent(`checkout - failed payment`,{membership_id:this.props.params.membershipId,payment_type:this.paymentType,message:e.message}),this.submittingPayment=!1,this.failureMessage=e.message,this.failedPayment=!0},this.reset=()=>{this.failedPayment=!1},this.onSelectPaymentType=e=>{this.paymentType=e},this.afterRegistration=()=>{U.AppUI.loadUser(),this.show=`checkout`,this.registrationComplete=!0},this.forwardToStripe=async()=>{U.AppUI.setCookieValue(`redirected-to-stripe`,!0);try{let e=await U.AppUI.stripeStore.createSessionPromise({data:{quantity:1,membership_id:this.props.params.membershipId,currency:U.AppUI.user?.currency}});window.location=e.url}catch(e){if(e.status===401){this.startedCheckoutAsUnregistered=!0,this.show=`registration`,this.submittingPayment=!1;return}this.afterCreatePaymentFailure({message:e.message})}},document.referrer.match(`checkout.stripe.com`)&&U.AppUI.getCookieValue(`redirected-to-stripe`)?(U.AppUI.setCookieValue(`redirected-to-stripe`,!1),U.AppUI.routeStore.routeToNamed(`memberships.index`)):((!U.AppUI.currentlyViewedMembership||U.AppUI.currentlyViewedMembership.id!==this.props.params.membershipId)&&U.AppUI.membershipStore.getShow({ids:{membershipId:this.props.params.membershipId}}),U.AppUI.createEvent(`checkout - payment form`,{membership_id:this.props.params.membershipId}),this.disposer=te(()=>{U.AppUI.user&&U.AppUI.user.signedOut?(this.startedCheckoutAsUnregistered=!0,this.show=`registration`):U.AppUI.userIsLoaded&&!this.setViewedCheckoutCount&&(this.setViewedCheckoutCount=!0,U.AppUI.user.set(`viewedCheckoutCount`,U.AppUI.user.viewedCheckoutCount+1),U.AppUI.authUserStore.update({data:{viewedCheckoutCount:U.AppUI.user.viewedCheckoutCount}},G.noop))}))}componentWillUnmount(){this.disposer&&this.disposer(),U.AppUI.set(`currentlyViewedMembership`,null)}get contentMaxHeight(){return U.AppUI.layout.isMobile?`100%`:`500px`}get buttonText(){let e=this.membership.costFormatted&&this.membership.costFormatted(U.AppUI.user.currency,this.quantity);if(e&&this.membership.recurring){let t=`Pay ${e}`;return t=`${t} per ${this.membership.numberMonths>1?this.membership.numberMonths:1} Month${this.membership.numberMonths>1?`s`:``}`,t}else if(e)return`Pay ${e} One Time`;return``}get disablePaymentButton(){return this.startedCheckoutAsUnregistered&&!this.registrationComplete}get membership(){return U.AppUI.currentlyViewedMembership||U.AppUI.membershipStore.showData}render(){return(0,K.jsx)(WEe,{className:`Checkout__Wrapper`,background:`transparent`,isMobile:U.AppUI.layout.isMobile,children:this.membership&&(0,K.jsx)(KEe,{className:`Checkout__Content`,background:`linear-gradient(-134deg, rgb(31, 204, 100) 0%, rgb(69, 119, 94) 100%)`,maxHeight:this.contentMaxHeight,isMobile:U.AppUI.layout.isMobile,children:(0,K.jsxs)(qEe,{className:`Checkount__InnerContent`,children:[(0,K.jsx)(GEe,{margin:`0 0 20px 0`,children:`Complete Your Purchase`}),this.show===`loading`&&(0,K.jsx)(P,{}),this.show===`registration`&&(0,K.jsx)(yX,{afterRegistration:this.afterRegistration}),this.show===`checkout`&&(0,K.jsxs)(JEe,{children:[this.renderErrorMessages(),this.startedCheckoutAsUnregistered&&!this.registrationComplete&&(0,K.jsx)(B,{width:`370px`,borderRadius:`5px`,children:`Registration must be completed before you can checkout.`}),(0,K.jsxs)(YEe,{children:[(0,K.jsx)(_X,{text:`Credit Card`,selected:this.paymentType===`stripe`,onClick:()=>this.onSelectPaymentType(`stripe`)}),(0,K.jsx)(_X,{text:`Paypal`,image:`/images/paypal.png`,selected:this.paymentType===`paypal`,onClick:()=>
10985this.onSelectPaymentType(`paypal`)})]}),this.submittingPayment&&(0,K.jsx)(P,{className:`blue`}),this.paymentType===`paypal`&&!this.submittingPayment&&(0,K.jsx)(PX,{children:`You will be redirected to Paypal to complete your payment.`}),this.paymentType===`stripe`&&!this.submittingPayment&&(0,K.jsx)(PX,{children:`You will be redirected to Stripe to complete your payment.`}),this.membership&&(0,K.jsxs)(PEe,{onClick:this.createPayment,disabled:this.disablePaymentButton,children:[this.paymentType===`paypal`&&(0,K.jsx)(`img`,{src:`/images/paypal.png`,alt:`Paypal logo`,style:{width:20,margin:`10px 5px 0 0`}}),(0,K.jsx)(`span`,{children:this.buttonText})]}),(0,K.jsx)(XEe,{children:`15 day money-back guarantee. Cancel anytime.`})]})]})})})}renderErrorMessages(){return(0,K.jsxs)(ZEe,{className:`Checkout__ErrorMessageWrapper`,children:[U.AppUI.user.isMember&&!U.AppUI.isDevelopment&&(0,K.jsxs)(B,{width:`100%`,borderRadius:`5px`,children:[(0,K.jsx)(`b`,{children:`You already have an active membership.`}),` If you would like to change your subscription, you can continue and we will cancel your previous subscription for you if it was previously made on the website. `,(0,K.jsx)(`a`,{href:`/settings/billing`,target:`_blank`,style:{textDecoration:`underline`,cursor:`pointer`},children:`View your billing page`}),`.`]}),this.failedPayment&&(0,K.jsx)(B,{width:`100%`,borderRadius:`5px`,failure:!0,children:(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{children:`We are sorry, our payment provider returned this message:`}),(0,K.jsxs)(QEe,{children:[this.failureMessage,`.`]}),(0,K.jsx)(`br`,{}),(0,K.jsx)(`br`,{}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{children:` Please `}),(0,K.jsx)(F,{to:`contact`,children:`contact us`}),(0,K.jsx)(`span`,{children:` if you need assistance.`})]})]})})]})}},SX=NX(xX.prototype,`failedPayment`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),CX=NX(xX.prototype,`failureMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wX=NX(xX.prototype,`paymentType`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`stripe`}}),TX=NX(xX.prototype,`startedCheckoutAsUnregistered`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),EX=NX(xX.prototype,`show`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`checkout`}}),DX=NX(xX.prototype,`registrationComplete`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),OX=NX(xX.prototype,`setViewedCheckoutCount`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kX=NX(xX.prototype,`authType`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),AX=NX(xX.prototype,`isDataLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jX=NX(xX.prototype,`submittingPayment`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),NX(xX.prototype,`contentMaxHeight`,[E],Object.getOwnPropertyDescriptor(xX.prototype,`contentMaxHeight`),xX.prototype),NX(xX.prototype,`buttonText`,[E],Object.getOwnPropertyDescriptor(xX.prototype,`buttonText`),xX.prototype),NX(xX.prototype,`disablePaymentButton`,[E],Object.getOwnPropertyDescriptor(xX.prototype,`disablePaymentButton`),xX.prototype),NX(xX.prototype,`membership`,[E],Object.getOwnPropertyDescriptor(xX.prototype,`membership`),xX.prototype),xX))||bX));D();var IX,LX,RX,zX,BX,VX,HX,UX;function WX(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function GX(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var $Ee=N.div` 10986 ${(0,X.flexCenterColumn)()} 10987 ${(0,X.smallText)()} 10988 ${(0,X.fixedCenter)()} 10989 background: ${e=>e.background}; 10990 z-index: ${q.Theme.z.foreground}; 10991`,eDe=N.div` 10992 display: block; 10993 font-size: 20px; 10994 line-height: 24px; 10995 font-weight: bold; 10996 text-align: center; 10997 color: #000; 10998 margin: ${e=>e.margin}; 10999 word-break: break-word; 11000`,tDe=N.div` 11001 &.centered-vertically { 11002 ${(0,X.flexCenterColumn)()} 11003 } 11004 ${(0,X.absoluteCenter)()} 11005 background: ${e=>e.background}; 11006 border-radius: ${e=>e.isMobile?0:`20px`}; 11007 max-width: ${e=>e.isMobile?`100%`:`500px`}; 11008 max-height: ${e=>e.maxHeight}; 11009 height: ${e=>e.isMobile?`100%`:`auto`}; 11010 margin: ${e=>e.isMobile?`0`:`60px auto`}; 11011 width: 100%; 11012 z-index: 4; 11013 padding: 20px; 11014 overflow: auto; 11015`,nDe=N.div` 11016 ${(0,X.flexCenterColumn)()} 11017 background: #FFF; 11018 border-radius: 10px; 11019 margin-top: 0px; 11020`,rDe=N.div` 11021 ${(0,X.flexCenterColumn)()} 11022 width: 100%; 11023 padding: 0 20px; 11024 background: #FFF; 11025 border-radius: 5px; 11026`,iDe=N.div` 11027 width: 100%; 11028 display: flex; 11029 justify-content: center; 11030 padding: 0px 0 20px 0; 11031 .img { 11032 width: 190px; 11033 } 11034`,aDe=N.div` 11035 display: flex; 11036 flex-direction: column; 11037 align-items: center; 11038 margin: 20px 0; 11039 width: 400px; 11040 background: #dfdfdf; 11041 padding: 20px; 11042 border-radius: 10px;
11043 overflow-wrap: anywhere; 11044`,oDe=N.div` 11045 display: flex; 11046 flex-direction: column; 11047 align-items: center; 11048`,sDe=e=>new Promise((t,n)=>setTimeout(()=>n(Error(`Timeout`)),e)),cDe=(e,t)=>Promise.race([t(),sDe(e)]),KX=pf(M(j(IX=(LX=class extends V.Component{constructor(e){super(e),WX(this,`startedCheckoutAsUnregistered`,RX,this),WX(this,`show`,zX,this),WX(this,`registrationComplete`,BX,this),WX(this,`isDataLoaded`,VX,this),WX(this,`currentSubscription`,HX,this),WX(this,`isConfirmed`,UX,this),this.redirectLoadingState=new U.LoadingState,this.adjustLayout=()=>{let e=this.contentRef.current,t=this.innerRef.current,n=(this.props.isMobile?0:60)*2+40;t.clientHeight+n>e.clientHeight?e.classList.remove(`centered-vertically`):e.classList.add(`centered-vertically`)},this.afterRegistration=()=>{U.AppUI.loadUser(),this.registrationComplete=!0,this.gotoConfirmationStep()},this.onConfirmationRequired=()=>{this.show=`confirm_email`,U.AfterAuth.set({path:window.location.pathname,label:`Continue to Payment`})},this.gotoConfirmationStep=async()=>{this.show=`loading`,U.AppUI.userSubscriptionStore.hasIndexData||await U.AppUI.userSubscriptionStore.getIndexPromise({}),this.currentSubscription=U.AppUI.user.currentGroupMembershipType&&U.AppUI.userSubscriptionStore.indexData.slice().reverse().find(e=>e.membership.membershipTypeId===U.AppUI.user.currentGroupMembershipType.id&&(e.isActive||e.isTrialing)),this.gotoCheckoutStep()},this.gotoCheckoutStep=()=>{this.show!==`checkout`&&(this.show=`checkout`,this.setViewedCheckoutCount||(this.setViewedCheckoutCount=!0,U.AppUI.user.set(`viewedCheckoutCount`,U.AppUI.user.viewedCheckoutCount+1),U.AppUI.authUserStore.update({data:{viewedCheckoutCount:U.AppUI.user.viewedCheckoutCount}},G.noop)),this.forwardToStripe())},this.trackFailedPayment=e=>{U.AppUI.createEvent(`checkout - failed payment`,{membership_id:this.membership?.id,payment_type:`stripe`,message:e})},this.forwardToStripe=async()=>{this.redirectLoadingState.started(),U.AppUI.createEvent(`memrev - click continue to payment`,Ul({membership_id:this.membership?.id||this.props.params.membershipId})),U.AppUI.createEvent(`checkout - click stripe button`,{membership_id:this.membership?.id});try{U.AppUI.setCookieValue(`redirected-to-stripe`,!0),await cDe(5e3,async()=>{if(await re(()=>(0,W.isPresent)(this.membership?.id)),this.currentSubscription){window.location.href=await U.AppUI.stripeStore.getCustomerPortalUrl({action_type:`subscription_update_confirm`,stripe_account:this.currentSubscription.stripeAccount,stripe_customer_id:this.currentSubscription.stripeCustomerId,stripe_subscription_id:this.currentSubscription.stripeSubscriptionId,target_membership_id:this.membership.id});return}let e=await U.AppUI.stripeStore.createSessionPromise({data:{quantity:1,membership_id:this.membership.id,currency:U.AppUI.user?.currency}});window.location=e.url})}catch(e){if(e.status===401){this.redirectLoadingState.clear(),this.show=`registration`;return}console.error(`Error forwarding to Stripe:`,e,(0,W.getMessageFromError)(e));let t=(0,W.getMessageFromError)(e);this.trackFailedPayment(t),this.redirectLoadingState.failed(`We are sorry, there seems to be an issue. Please contact us if you are unable to resolve the issue.${t?` (${t})`:``}`)}},document.referrer.match(`checkout.stripe.com`)&&U.AppUI.getCookieValue(`redirected-to-stripe`)?(U.AppUI.setCookieValue(`redirected-to-stripe`,!1),U.AppUI.routeStore.routeToNamed(`memberships.index`)):((!U.AppUI.currentlyViewedMembership||U.AppUI.currentlyViewedMembership.id!==this.props.params.membershipId)&&U.AppUI.membershipStore.getShow({ids:{membershipId:this.props.params.membershipId}}),U.AppUI.createEvent(`checkout - payment form`,{membership_id:this.props.params.membershipId}),this.loadUser()),this.contentRef=V.createRef(),this.innerRef=V.createRef()}componentDidMount(){U.AppUI.createEvent(`memrev - membership modal`,Ul({membership_id:this.props.params.membershipId})),this.adjustLayout(),window.addEventListener(`resize`,this.adjustLayout)}componentDidUpdate(){this.adjustLayout()}componentWillUnmount(){window.removeEventListener(`resize`,this.adjustLayout),this.disposer&&this.disposer(),U.AppUI.set(`currentlyViewedMembership`,null)}get membership(){return U.AppUI.currentlyViewedMembership||U.AppUI.membershipStore.showData}async loadUser(){if(this.show=`loading`,await re(()=>U.AppUI.user),U.AppUI.user.signedOut){this.show=`registration`;return}this.gotoConfirmationStep()}get contentMaxHeight(){return U.AppUI.layout.isMobile?`100%`:U.AppUI.showPatreonButton?`720px`:`680px`}get backgroundColor(){return(0,W.isPresent)(U.AppUI.site?.footerBackgroun
11048dColor)?U.AppUI.site?.footerBackgroundColor:`#044067`}render(){return(0,K.jsx)($Ee,{className:`Checkout__Wrapper`,background:this.backgroundColor,isMobile:U.AppUI.layout.isMobile,children:this.membership&&(0,K.jsx)(tDe,{className:`Checkout__Content`,background:`#FFF`,maxHeight:this.contentMaxHeight,isMobile:U.AppUI.layout.isMobile,ref:this.contentRef,children:(0,K.jsxs)(nDe,{className:`Checkount__InnerContent`,ref:this.innerRef,children:[(0,W.isPresent)(U.AppUI.site?.image)&&(0,K.jsx)(iDe,{children:(0,K.jsx)(Nm,{})}),this.show!==`loading`&&this.show!==`confirm_email`&&(0,K.jsx)(eDe,{margin:`0 0 10px 0`,children:this.currentSubscription?`Changing your Subscription`:`Become a Member`}),this.show===`loading`&&(0,K.jsx)(P,{}),this.show===`registration`&&(0,K.jsx)(yX,{afterRegistration:this.afterRegistration,onConfirmationRequired:this.onConfirmationRequired}),this.show===`confirm_email`&&(0,K.jsx)(Mm,{}),this.show===`checkout`&&(0,K.jsxs)(rDe,{children:[this.redirectLoadingState.errorMessage&&(0,K.jsxs)(aDe,{children:[this.redirectLoadingState.errorMessage,(0,K.jsx)(I,{margin:`10px 0 0 0`,onClick:()=>U.AppUI.routeStore.routeToNamed(`contact`),children:`Contact Us`})]}),!this.redirectLoadingState.errorMessage&&(0,K.jsx)(oDe,{children:(0,K.jsx)(P,{})})]})]})})})}},RX=GX(LX.prototype,`startedCheckoutAsUnregistered`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zX=GX(LX.prototype,`show`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`checkout`}}),BX=GX(LX.prototype,`registrationComplete`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),VX=GX(LX.prototype,`isDataLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),HX=GX(LX.prototype,`currentSubscription`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),UX=GX(LX.prototype,`isConfirmed`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),GX(LX.prototype,`membership`,[E],Object.getOwnPropertyDescriptor(LX.prototype,`membership`),LX.prototype),GX(LX.prototype,`contentMaxHeight`,[E],Object.getOwnPropertyDescriptor(LX.prototype,`contentMaxHeight`),LX.prototype),GX(LX.prototype,`backgroundColor`,[E],Object.getOwnPropertyDescriptor(LX.prototype,`backgroundColor`),LX.prototype),LX))||IX)),qX,lDe=N.div` 11049 display: flex; 11050 flex: 1; 11051 width: 100%; 11052`,JX=N.div` 11053 width: ${e=>e.width}; 11054 margin-left: ${e=>e.leftSidebar?0:`10px`}; 11055 margin-right: ${e=>e.leftSidebar?`10px`:0}; 11056 margin-bottom: 10px; 11057`,uDe=N.div` 11058 flex: 1; 11059 display: flex; 11060 width: 100%; 11061`,YX=M(j(qX=class extends V.Component{render(){return(0,K.jsxs)(lDe,{isMobile:U.AppUI.layout.isMobile,children:[this.props.leftSidebar&&U.AppUI.layout.hasRightColumn&&(0,K.jsx)(JX,{width:(0,W.pixify)(U.AppUI.layout.rightColumnWidth),leftSidebar:!0,children:this.props.children[1]}),(0,K.jsx)(uDe,{children:this.props.children[0]}),!this.props.leftSidebar&&U.AppUI.layout.hasRightColumn&&(0,K.jsx)(JX,{width:(0,W.pixify)(U.AppUI.layout.rightColumnWidth),children:this.props.children[1]})]})}})||qX);D();var XX,ZX,dDe=N.div` 11062 display: flex; 11063 flex-direction: ${e=>e.isMobile?`column`:`row`}; 11064 align-items: center; 11065 padding: 20px; 11066 margin: 10px 0; 11067 border-radius: 10px; 11068 background: ${e=>e.background}; 11069 color: ${e=>e.background===`#FFF`?`black`:`white`}; 11070 -moz-transition: all 0.2s ease; 11071 -o-transition: all 0.2s ease; 11072 -webkit-transition: all 0.2s ease; 11073 transition: all 0.2s ease; 11074 cursor: pointer; 11075 &:hover { 11076 transform: scale(1.02); 11077 } 11078`,fDe=N.div` 11079 display: flex; 11080 flex-direction: column; 11081 flex: 1; 11082 width: 100%; 11083`,pDe=N.div` 11084 font-weight: bold; 11085 font-size: 22px; 11086 display: flex; 11087 align-items: center; 11088 text-align: ${e=>e.isMobile?`center`:`left`}; 11089 .icon-wrapper { 11090 svg { 11091 width: 14px; 11092 fill: #FFF; 11093 margin-right: 5px; 11094 } 11095 } 11096`,mDe=N.div` 11097 font-size: 14px; 11098 line-height: 17px; 11099 margin: 10px 0 0 0; 11100 color: ${e=>e.background===`#FFF`?`#3e3e3e`:`rgba(255, 255, 255, 0.9)`}; 11101 text-align: ${e=>e.isMobile?`center`:`left`}; 11102 width: 100%; 11103`,hDe=N.div` 11104 position: relative; 11105 margin: 10px 0 0 0; 11106 font-size: 12px; 11107 background: rgba(255, 255, 255, 1); 11108 padding: 5px; 11109 border-radius: 10px; 11110 color: #000; 11111 width: 100%; 11112`,gDe=N.div` 11113 font-size: 11px; 11114 font-style: italic; 11115 color: white; 11116 position: absolute; 11117 top: 7px; 11118 bottom: 0; 11119 margin: 0 auto; 11120 opacity: 0.9;
11121 width: calc(100% - 10px); 11122 text-align: center; 11123 font-weight: bold; 11124`,_De=j(XX=(ZX=class extends V.Component{render(){return(0,K.jsx)(F,{onClick:this.props.onClick,to:this.props.blockAccess?`memberships.index`:ie(this.props.webRoute),style:{width:`100%`},children:(0,K.jsx)(dDe,{background:this.props.blockAccess?`#BCBCBC`:this.props.background,isMobile:this.props.isMobile,children:(0,K.jsxs)(fDe,{children:[(0,K.jsxs)(pDe,{isMobile:this.props.isMobile,children:[this.props.blockAccess&&(0,K.jsx)(J.LockIcon,{}),this.props.title]}),(0,K.jsx)(mDe,{background:this.props.background,isMobile:this.props.isMobile,children:this.props.webDescription}),(0,K.jsxs)(hDe,{children:[(0,K.jsx)(Fn,{total:this.props.progressTotal,current:this.props.progressCurrent,height:`25px`,borderRadius:`5px`}),(0,K.jsxs)(gDe,{children:[this.props.progressCurrent,` of `,(0,W.formatNumber)(this.props.progressTotal),` `,this.props.progressText]})]})]})})})}},ZX.defaultProps={background:`#FFF`},ZX))||XX,vDe=(0,Y.ContentLinkWrapper)(_De),QX,$X,yDe=N.div` 11125 position: relative; 11126 width: ${e=>e.width}; 11127 height: ${e=>e.width}; 11128 background: ${e=>e.disabled?`#928e8e`:e.background}; 11129 display: flex; 11130 align-items: center; 11131 justify-content: center; 11132 border-top-left-radius: 35px; 11133 border-top-right-radius: 35px; 11134 svg { 11135 fill: #FFF; 11136 width: ${e=>e.iconWidth}; 11137 margin-top: ${e=>e.iconMarginTop}; 11138 margin-left: ${e=>e.iconMarginLeft}; 11139 } 11140`,bDe=N.div` 11141 ${(0,X.flexCenter)()} 11142 background: ${e=>e.disabled?`#CCC`:e.background}; 11143 width: ${e=>e.width}; 11144 height: ${e=>e.width}; 11145 border-radius: 50%; 11146`,xDe=N.div` 11147 ${(0,X.flexCenter)()} 11148 background: ${e=>e.disabled?`#a19f9f`:e.background}; 11149 width: ${e=>e.width}; 11150 height: ${e=>e.width}; 11151 border-radius: 50%; 11152`,SDe=N.div` 11153 z-index: ${q.Theme.z.foreground}; 11154 width: 0; 11155 height: 0; 11156 border-style: solid; 11157 border-width: ${e=>e.smallLock?`0 50px 50px 0`:`0 70px 70px 0`}; 11158 border-color: transparent #777777 transparent transparent; 11159 position: absolute; 11160 top: 0; 11161 right: 0; 11162 pointer-events: none; 11163 .icon-wrapper { 11164 position: absolute; 11165 top: 20px; 11166 right: -56px; 11167 } 11168 .lock-icon { 11169 svg { 11170 fill: #FFF; 11171 width: 11px; 11172 } 11173 } 11174`,eZ=M(j(QX=($X=class extends V.Component{render(){let e;return this.props.backgroundColors?e=this.props.backgroundColors:this.props.background&&(e=[this.props.background,(0,W.lightenColor)(this.props.background,20),(0,W.lightenColor)(this.props.background,40)]),(0,K.jsxs)(yDe,{width:(0,W.pixify)(this.props.width-this.props.widthOffsets[0]),disabled:this.props.disabled,iconWidth:(0,W.pixify)(this.props.iconWidth),iconMarginTop:this.props.iconMarginTop,iconMarginLeft:this.props.iconMarginLeft,background:e[0],children:[this.props.showLockIcon&&(0,K.jsx)(SDe,{smallLock:this.props.smallLock&&U.AppUI.layout.isMobile,children:(0,K.jsx)(J.LockIcon,{})}),(0,K.jsx)(xDe,{width:(0,W.pixify)(this.props.width-this.props.widthOffsets[1]),disabled:this.props.disabled,background:e[1],children:(0,K.jsx)(bDe,{width:(0,W.pixify)(this.props.width-this.props.widthOffsets[2]),disabled:this.props.disabled,background:e[2],children:this.props.children})})]})}},$X.defaultProps={iconMarginTop:`-7px`},$X))||QX),tZ,nZ,CDe=N.div` 11175 .bookmark-outline-icon { 11176 svg { 11177 width: ${e=>e.width}; 11178 } 11179 } 11180`,wDe=j(tZ=(nZ=class extends V.Component{render(){return(0,K.jsx)(bJ,{onClick:this.props.onClick,width:(0,W.depixify)(this.props.width),title:this.props.deck.name||`Default`,subTitle:`${(0,W.formatNumber)(this.props.deck.nonRetiredCardsCount)} Cards`,disabled:this.props.disabled,progressCurrent:this.props.deck.useDailyGoal&&this.props.deck.effectiveDailyGoal>0?this.props.deck.reviewedToday:this.props.deck.caughtUpCount,progressTotal:this.props.deck.useDailyGoal&&this.props.deck.effectiveDailyGoal>0?this.props.deck.effectiveDailyGoal:this.props.deck.nonRetiredCardsCount,borderColor:this.props.borderColor,marginRight:`10px`,marginBottom:`0px`,progressLabel:`Reviews Caught Up`,children:(0,K.jsx)(eZ,{disabled:this.props.disabled,iconWidth:(0,W.pixify)(this.props.iconWidth),width:(0,W.depixify)(this.props.width)-10,widthOffsets:[10,60,100],backgroundColors:this.props.backgroundColors,iconMarginTop:`0px`,children:(0,K.jsx)(CDe,{width:U.AppUI.layout.isMobile?`26px`:`36px`,children:(0,K.jsx)(J.BookmarkOutlineIcon,{})})})})}},nZ.defaultProps={width:190,iconWidth:80},nZ))||tZ,TDe=(0,Y.ReviewDeckLinkWrapper)(wDe),rZ,iZ,EDe=N.div` 11181 ${(0,X.flexCenterColumn)()} 11182 border: 5px solid ${e=>e.borderColor}; 11183 background: white; 11184 margin: ${e=>e.margin}; 11185 cursor: ${e=>e.cursor}; 11186 border-radius: 10px; 11187 width: ${e=>e.mobile?`80px`:`130px`}; 11188 overflow: hidden; 11189`,DDe=N.div` 11190 position: relative; 11191 background: ${e=>e.background}; 11192 font-weight: bold; 11193 width: 100%; 11194 font-size: ${e=>e.mobile?`10px`:`12px`}; 11195 text-align: center; 11196 color: white; 11197 height: 23px; 11198 .info-tooltip { 11199 position: absolute; 11200 top: 3px; 11201 right: 5px; 11202 font-weight: normal; 11203 } 11204`,aZ=N.div` 11205 font-size: ${e=>e.mobile?`18px`:`30px`}; 11206 font-weight: bold; 11207 padding: ${e=>e.mobile?`5px`:`20px 10px`}; 11208`,oZ=M(j(rZ=(iZ=class extends V.Component{render(){return(0,K.jsxs)(EDe,{onClick:this.props.onClick,borderColor:this.props.color,mobile:this.props.mobile,margin:this.props.margin,cursor:this.props.cursor,children:[(0,K.jsxs)(DDe,{background:this.props.color,mobile:this.props.mobile,children:[this.props.text,this.props.children]}),!!this.props.showDash&&(0,K.jsx)(aZ,{mobile:this.props.mobile,children:`-`}),!this.props.showDash&&(0,K.jsx)(aZ,{mobile:this.props.mobile,children:this.props.count>0?(0,W.formatNumber)(this.props.count):0})]})}},iZ.defaultProps={margin:`0 0 10px 0`},iZ))||rZ),sZ,ODe=N.div` 11209 11210`,kDe=N.div` 11211 border-radius: 5px; 11212 margin: 5px 0 15px 0; 11213 color: ${q.Theme.blue}; 11214 padding: 20px; 11215 border: 2px solid ${q.Theme.blue}; 11216`,cZ=N.div` 11217 width: 280px; 11218 height: 50px; 11219 position: relative; 11220 display: flex; 11221 align-items: center; 11222 justify-content: center; 11223 color: ${e=>e.color}; 11224 .fa-arrow-right { 11225 transform: rotate(-45deg); 11226 } 11227 i { 11228 position: absolute; 11229 left: -5px; 11230 top: 16px; 11231 color: ${e=>e.color}; 11232 } 11233`,lZ=M(j(sZ=class extends V.Component{render(){return(0,K.jsxs)(ODe,{children:[(0,K.jsxs)(kDe,{children:[(0,K.jsx)(R,{color:q.Theme.blue,bold:!0,children:`You haven't added any cards to this deck yet.`}),(0,K.jsx)(R,{color:q.Theme.blue,fontSize:13,lineHeight:16,marginTop:5,children:`You can find words and sentences to add to your reviews from our Stories, Vocab, and Trivia sections.`})]}),(0,K.jsx)(F,{to:`reviews.create`,children:(0,K.jsx)(I,{height:`50px`,width:`100%`,background:q.Theme.blue,margin:`0 0 10px 0`,children:(0,K.jsxs)(cZ,{color:`#FFF`,children:[(0,K.jsx)(`i`,{className:`fa fa-arrow-right`}),`Create a Custom Card`]})})}),(0,K.jsx)(F,{to:{name:`vocab.home`,params:{page:1}},children:(0,K.jsx)(I,{height:`50px`,width:`100%`,background:q.Theme.blue,margin:`0 0 10px 0`,children:(0,K.jsxs)(cZ,{color:`#FFF`,children:[(0,K.jsx)(`i`,{className:`fa fa-arrow-right`}),`Go to our Dictionary`]})})})]})}})||sZ),uZ,ADe=N.div` 11234 display: flex; 11235`,jDe=N.div` 11236 background: ${e=>e.background}; 11237 width: 25px; 11238 height: 25px; 11239 border-radius: 50%; 11240 margin: 5px; 11241 cursor: pointer; 11242 display: flex; 11243 align-items: center; 11244 justify-content: center; 11245`,MDe=N.div` 11246 width: 11px; 11247 height: 11px; 11248 border-radius: 50%; 11249 background: ${e=>e.background}; 11250`,dZ=M(j(uZ=class extends V.Component{render(){return(0,K.jsx)(ADe,{children:q.Constants.COLOR_OPTIONS.map(e=>(0,K.jsx)(jDe,{onClick:()=>this.props.onChange(e[0]),background:q.Constants.COLORS[e[0]],children:(0,K.jsx)(MDe,{background:this.props.value===e[0]||(0,W.isBlank)(this.props.value)&&e[0]===`blue`?`#FFF`:q.Constants.COLORS[e[0]]})},e[0]))})}})||uZ),fZ,NDe=N.div` 11251 11252`,PDe=N.div` 11253 display: flex; 11254 flex-direction: column; 11255`,pZ=N.div` 11256 width: 100%; 11257 height: 50px; 11258 position: relative; 11259 display: flex; 11260 align-items: center; 11261 justify-content: center; 11262 padding-left: 10px; 11263 color: ${e=>e.color}; 11264 .fa-arrow-right { 11265 transform: rotate(-45deg); 11266 } 11267 i { 11268 position: absolute; 11269 left: -5px; 11270 top: 16px; 11271 color: ${e=>e.color}; 11272 } 11273 .label { 11274 margin-left: 10px; 11275 } 11276`,FDe=N.div` 11277 display: flex; 11278 align-items: center; 11279 font-size: 12px; 11280 input { 11281 width: 70px; 11282 margin-right: 5px; 11283 } 11284`,mZ=N.div` 11285 display: flex; 11286 align-items: center; 11287 gap: 10px; 11288`,hZ=N.div` 11289 display: flex; 11290 align-items: center; 11291 flex-direction: column; 11292 height: 120px; 11293`,IDe=N.div` 11294 margin-top: 10px; 11295`,LDe=j(fZ=class extends V.Component{render(){return(0,K.jsxs)(NDe,{children:[this.props.askForDeleteConfirmation&&(0,K.jsxs)(hZ,{children:[(0,K.jsx)(R,{color:`#333`,bold:!0,center:!0,children:`Delete This Deck?`}),(0,K.jsx)(R,{color:`#333`,fontSize:`14px`,center:!0,lineHeight:`17px`,children:`This will delete all cards in this deck and is not reversible.`}),(0,K.jsxs)(mZ,{children:[(0,K.jsx)(I,{height:`50px`,width:`100px`,color:`#FFF`,background:q.Theme.green,margin:`10px 5px 10px 0`,onClick:this.props.onDeleteDeck,children:`Yes`}),(0,K.jsx)(I,{height:`50px`,width:`100px`,color:`#FFF`,background:q.Theme.red,margin:`10px 0 10px 5px`,onClick:()=>this.props.onSetAskForDeleteConfirmation(!1),children:`No`})]})]}
11295),this.props.askForDeleteCardsConfirmation&&(0,K.jsxs)(hZ,{children:[(0,K.jsx)(R,{color:`#333`,bold:!0,center:!0,children:`Delete All Cards in this Deck?`}),(0,K.jsx)(R,{color:`#333`,fontSize:`14px`,center:!0,lineHeight:`17px`,children:`This will delete all cards in this deck and is not reversible.`}),(0,K.jsxs)(mZ,{children:[(0,K.jsx)(I,{height:`50px`,width:`100px`,color:`#FFF`,background:q.Theme.green,margin:`10px 5px 10px 0`,onClick:this.props.onDeleteCards,children:`Yes`}),(0,K.jsx)(I,{height:`50px`,width:`100px`,color:`#FFF`,background:q.Theme.red,margin:`10px 0 10px 5px`,onClick:()=>this.props.onSetAskForDeleteCardsConfirmation(!1),children:`No`})]})]}),this.props.askForResetConfirmation&&(0,K.jsxs)(hZ,{children:[!this.props.resettingReviews&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{color:`#333`,bold:!0,center:!0,children:`Reset All Reviews in this Deck?`}),(0,K.jsx)(R,{color:`#333`,fontSize:`14px`,center:!0,lineHeight:`17px`,children:`This will erase your progress and all ${this.props.deck.reviewCardsCount.toLocaleString(`en`)} reviews in the deck will be due today.`}),(0,K.jsxs)(mZ,{children:[(0,K.jsx)(I,{height:`50px`,width:`100px`,color:`#FFF`,background:q.Theme.green,margin:`10px 5px 10px 0`,onClick:this.props.onResetCards,children:`Yes`}),(0,K.jsx)(I,{height:`50px`,width:`100px`,color:`#FFF`,background:q.Theme.red,margin:`10px 0 10px 5px`,onClick:()=>this.props.onSetAskForResetConfirmation(!1),children:`No`})]})]}),this.props.resettingReviews&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(P,{}),(0,K.jsx)(R,{small:!0,margin:`10px 0`,children:`Resetting reviews...`})]})]}),(0,W.isPresent)(this.props.message)&&(0,K.jsx)(B,{width:`100%`,background:q.Theme.green,textAlign:`center`,children:this.props.message}),this.props.afterCreateDeck&&(0,K.jsx)(lZ,{}),!this.props.afterCreateDeck&&!this.props.askForDeleteConfirmation&&!this.props.askForResetConfirmation&&!this.props.askForDeleteCardsConfirmation&&(0,K.jsxs)(PDe,{children:[(0,K.jsx)(R,{color:`#333`,bold:!0,width:`100%`,textAlign:`left`,fontSize:`14px`,children:`Deck Name`}),(0,K.jsx)(Ii,{width:`100%`,margin:`10px 0`,value:this.props.name,onChange:e=>this.props.onSetName(e)}),this.props.duplicateNameError&&(0,K.jsx)(B,{children:`Another deck exists with this name.`}),(0,K.jsx)(R,{color:`#333`,bold:!0,width:`100%`,textAlign:`left`,fontSize:`14px`,margin:`20px 0 0 0`,children:`Deck Color`}),(0,K.jsx)(dZ,{value:this.props.color,onChange:e=>this.props.onSetColor(e)}),(0,K.jsx)(Zi,{allowUpdate:!0,width:`100%`,wrapperMargin:`10px 0 0 0`,value:this.props.defaultReviewDeck,onChange:this.props.onToggleDefaultReviewDeck,children:(0,K.jsx)(R,{color:`#333`,bold:!0,textAlign:`left`,fontSize:`14px`,children:`Default Deck`})}),(0,K.jsx)(R,{color:`#333`,width:`100%`,textAlign:`left`,fontSize:`12px`,lineHeight:`16px`,margin:`0`,children:`If checked, this deck will receive new reviews if you don't specify a deck.`}),(0,K.jsxs)(IDe,{children:[(0,K.jsx)(Zi,{allowUpdate:!0,width:`100%`,wrapperMargin:`10px 0 0 0`,value:this.props.useDailyGoal,onChange:this.props.onToggleUseDailyGoal,children:(0,K.jsx)(R,{color:`#333`,bold:!0,textAlign:`left`,fontSize:`14px`,children:`Set a Daily Goal`})}),(0,K.jsx)(R,{color:`#333`,width:`100%`,textAlign:`left`,fontSize:`12px`,lineHeight:`16px`,margin:`0 0 2px 0`,children:`This is helpful if the number of reviews in your deck is too many to keep up with each day.`}),this.props.useDailyGoal&&(0,K.jsxs)(FDe,{children:[(0,K.jsx)(Ii,{value:this.props.dailyGoal,onChange:e=>this.props.onSetDailyGoal(e),type:`number`,min:this.props.dailyGoalMin}),`Cards Per Day`]}),this.props.dailyGoalIsTooLow&&(0,K.jsx)(B,{fontSize:`12px`,lineHeight:`14px`,children:`The daily goal must be higher than ${this.props.dailyGoalMin}.`})]}),(0,W.isPresent)(this.props.deck)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Zi,{allowUpdate:this.props.deck&&!this.props.deck?.defaultReviewDeck,width:`100%`,wrapperMargin:`10px 0 0 0`,value:this.props.archived,onChange:this.props.onToggleArchived,children:(0,K.jsx)(R,{color:`#333`,bold:!0,textAlign:`left`,fontSize:`14px`,children:`Archived`})}),(0,K.jsx)(R,{color:`#333`,width:`100%`,textAlign:`left`,fontSize:`12px`,lineHeight:`16px`,margin:`0`,children:`If checked, you won't be able to add reviews to this deck and it will be moved to the archive tab.`})]}),U.AppUI.user.targetLanguagesWithXpCount>1&&this.props.deck&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(R,{color:`#333`,bold:!0,width:`100%`,textAlign:`left`,fontSize:`14px`,margin:`10px 0 0 0`,children:`Language`}),(0,K.jsx)(Fi,{allowUpdate:!0,options:U.AppUI.user.targetLanguages.map(e=>[e.languageId,q.Languages[e.languageId]]),value:this.props.languageId,id:this.props.deck.id,onChange:e=>this.props.onChangeLanguage(e)}
11295)]}),(0,K.jsx)(I,{height:`50px`,width:`100%`,background:this.props.enabledSubmitButton?q.Theme.blue:`#CCC`,cursor:this.props.enabledSubmitButton?`pointer`:`default`,margin:`10px 0 0 0`,onClick:this.props.onSubmit,children:(0,K.jsxs)(pZ,{color:`#FFF`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),(0,W.isPresent)(this.props.deck)?`Update Deck`:`Create Deck`]})}),!1,U.AppUI.reviewDeckStore.indexData.length===1&&this.props.deck&&this.props.deck.reviewCardsCount>0&&(0,K.jsx)(I,{height:`50px`,width:`100%`,background:`#FFF`,border:`3px solid ${q.Theme.red}`,margin:`10px 0 0 0`,onClick:()=>this.props.onSetAskForDeleteCardsConfirmation(!0),children:(0,K.jsxs)(pZ,{color:q.Theme.red,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Clear Cards`]})}),!this.props.askForDeleteConfirmation&&!this.props.askForResetConfirmation&&(0,W.isPresent)(this.props.deck)&&U.AppUI.reviewDeckStore.indexData.length>1&&(0,K.jsxs)(mZ,{children:[(0,K.jsx)(I,{height:`50px`,width:`50%`,background:`#FFF`,border:`3px solid ${q.Theme.blue}`,margin:`10px 0 0 0`,onClick:()=>this.props.onSetAskForResetConfirmation(!0),children:(0,K.jsxs)(pZ,{color:q.Theme.blue,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Reset Deck`]})}),(0,K.jsx)(I,{height:`50px`,width:`50%`,background:`#FFF`,border:`3px solid ${q.Theme.red}`,margin:`10px 0 0 0`,onClick:()=>this.props.onSetAskForDeleteConfirmation(!0),children:(0,K.jsxs)(pZ,{color:q.Theme.red,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Delete Deck`]})})]})]})]})}})||fZ,gZ=(0,Y.ReviewDeckSettingsWrapper)(LDe),_Z,vZ,RDe=N.div` 11296 background: #FFF; 11297 width: 100%; 11298 border-radius: 5px; 11299 background: whitesmoke; 11300 margin: ${e=>e.margin}; 11301`,zDe=N.div` 11302 background: #CCC; 11303 font-weight: bold; 11304 font-size: 12px; 11305 width: 100%; 11306 padding: 5px; 11307 text-align: center; 11308 border-top-left-radius: 10px; 11309 border-top-right-radius: 10px; 11310 cursor: ${e=>e.onClick?`pointer`:`default`}; 11311 .fa { 11312 vertical-align: middle; 11313 position: absolute; 11314 left: 30px; 11315 margin-top: 5px; 11316 } 11317 @media (max-width: 899px) { 11318 .fa { 11319 left: 20px; 11320 margin-left: 5px; 11321 } 11322 } 11323`,yZ=j(_Z=(vZ=class extends V.Component{render(){return(0,K.jsxs)(RDe,{margin:this.props.margin,children:[(0,K.jsxs)(zDe,{onClick:this.props.onClickHeader,children:[(0,G.isFunction)(this.props.onClickHeader)&&!this.props.isExpanded&&(0,K.jsx)(`i`,{className:`fa fa-plus`}),(0,G.isFunction)(this.props.onClickHeader)&&this.props.isExpanded&&(0,K.jsx)(`i`,{className:`fa fa-minus`}),this.props.title]}),this.props.children]})}},vZ.defaultProps={margin:`0 0 10px 0`},vZ))||_Z;w(),be();var bZ,xZ,BDe=N.div` 11324 11325`,VDe=N.div` 11326 display: flex; 11327 align-items: center; 11328 input { 11329 height: 35px; 11330 } 11331`,HDe=N.div` 11332 width: 50px; 11333 margin-left: 10px; 11334 input { 11335 height: 35px!important; 11336 } 11337`,UDe=N.span` 11338 color: #333; 11339 font-size: 14px; 11340 display: flex; 11341 align-items: center; 11342 margin-left: 10px; 11343`,WDe=N.div` 11344 display: flex; 11345 flex-direction: column; 11346 gap: 10px; 11347 max-height: 280px; 11348 overflow: auto; 11349 padding: 10px; 11350 border-bottom-left-radius: 10px; 11351 border-bottom-right-radius: 10px; 11352 color: #333; 11353 padding: 10px; 11354 input { 11355 color: #333; 11356 } 11357`,SZ=N.div` 11358 display: flex; 11359 align-items: center; 11360 justify-content: center; 11361 flex-wrap: wrap; 11362 border-bottom-left-radius: 10px; 11363 border-bottom-right-radius: 10px; 11364 padding: ${e=>e.padding}; 11365 margin: ${e=>e.margin}; 11366 color: #656565; 11367 font-size: 12px; 11368 padding: 5px; 11369`,GDe=N.div` 11370 background: ${ve.blue}; 11371 color: #FFF; 11372 font-weight: bold; 11373 font-size: 12px; 11374 padding: 5px 20px 5px 5px; 11375 border-radius: 5px; 11376 margin: 3px; 11377 position: relative; 11378 display: flex; 11379 align-items: center; 11380 cursor: pointer; 11381 i { 11382 position: absolute; 11383 right: 5px; 11384 } 11385`,CZ=N.div` 11386 background: ${e=>e.selected?ve.blue:`#FFF`}; 11387 color: ${e=>e.selected?`#FFF`:`#000`}; 11388 font-weight: bold; 11389 font-size: 12px; 11390 padding: 5px 10px; 11391 border-radius: 5px; 11392 margin: 3px; 11393 position: relative; 11394 display: flex; 11395 align-items: center; 11396 cursor: pointer; 11397 white-space: nowrap; 11398 i { 11399 margin-left: 5px; 11400 } 11401 &:active { 11402 transform: scale(0.97); 11403 } 11404`,KDe=N.div` 11405 display: flex; 11406 flex-wrap: wrap; 11407 gap: 5px; 11408`,qDe=j(bZ=(xZ=class extends V.Component{render(){return(0,K.jsxs)(yZ,{title:`${this.props.expandOptions?`Hide`:`View`} ${this.props.title}`,onClickHeader:this.props.onToggleExpandOptions,isExpanded:this.props.expandOptions,margin:this.props.margin,children:[!this.props.expandOptions&&!this.props.hasAdvancedFilterSelected&&(0,K.jsx)(SZ,{padding:`10px`,children:`No Advanced Filters Selected`}),!this.props.expandOptions&&this.props.hasAdvancedFilterSelected&&(0,K.jsx)(SZ,{children:this.props.filterSettings.map(e=>_(e.tagDisplay)?(0,K.jsxs)(GDe,{onClick:()=>e.onChange(null),children:[e.tagDisplay,(0,K.jsx)(`i`,{className:`fa fa-times`})]},Math.random()):null)}),this.props.expandOptions&&(0,K.jsx)(WDe,{children:this.props.filterSettings?.map(e=>{if(e.hasOwnProperty(`type`)&&e.hasOwnProperty(`onChange`)&&(0,G.isFunction)(e.onChange)&&e.hasOwnProperty(`name`)&&e.hasOwnProperty(`value`)){let t=e.maxOptions||this.props.defaultMaxOptions;return(0,K.jsxs)(BDe,{children:[(0,K.jsx)(R,{color:`#333`,bold:!0,fontSize:`14px`,children:e.name}),(e.type===`InPlaceSelect`||e.type===`Slider`)&&e.hasOwnProperty(`options`)&&(0,K.jsx)(Fi,{allowUpdate:!0,includeBlank:!0,placeholder:e.placeholder||`Any`,onChange:t=>(0,G.isFunction)(e.onChange)&&e.onChange(t),options:e.options,value:e.value}),e.type===`MultiSelect`&&e.hasOwnProperty(`options`)&&(0,K.jsxs)(KDe,{children:[e.options.length>t&&(0,K.jsx)(CZ,{onClick:()=>e.onChange(``),selected:(0,Hl.default)(e.value),children:`Any`},`any-${e.name}`),e.options.map((n,r)=>r<t||this.props.multiSelectIsExpanded(e.name)||e.value?.includes(n[0])?(0,K.jsx)(CZ,{onClick:()=>e.onChange(n[0]),selected:e.value&&e.value?.includes(n[0]),children:n[1]},n[0]):null),e.options.length>t&&!this.props.multiSelectIsExpanded(e.name)&&(0,K.jsxs)(CZ,{onClick:()=>this.props.onToggleExpandMultiSelect(e.name),children:[(0,K.jsx)(`i`,{className:`fa fa-plus`,style:{marginRight:`5px`}}),`See More`]}),e.options.length>this.props.defaultMaxOptions&&this.props.multiSelectIsExpanded(e.name)&&(0,K.jsxs)(CZ,{onClick:()=>this.props.onToggleExpandMultiSelect(e.name),children:[(0,K.jsx)(`i`,{className:`fa fa-minus`,style:{marginRight:`5px`}}),`See Less`]})]}),e.type===`checkbox`&&(0,K.jsx)(jn,{onClick:t=>(0,G.isFunction)(e.onChange)&&e.onChange(t),value:e.value}),e.type===`CreatedAt`&&(0,K.jsxs)(VDe,{children:[(0,K.jsx)(Fi,{allowUpdate:!0,onChange:t=>e.onChange(t,`created_at_before_after`),options:[[`after`,`Last`],[`before`,`Before`]],value:e.value.createdAtBeforeAfter}),(0,K.jsx)(HDe,{children:(0,K.jsx)(Qi,{allowUpdate:!0,onChange:t=>e.onChange(t,`created_at_days_ago`),value:e.value.createdAtDaysAgo,show:!0})}),(0,K.jsxs)(UDe,{padding:`0 0 0 10px`,children:[`Days`,e.createdAtBeforeAfter===`before`?` Ago`
11408:null]})]})]},e.name)}return null})})]})}},xZ.defaultProps={title:`Advanced Filters`},xZ))||bZ,wZ=(0,Y.AdvancedFiltersWrapper)(qDe),JDe=N.div` 11409 position: relative; 11410 background: ${e=>e.background}; 11411 padding: 8px 25px 8px 15px; 11412 border-radius: 5px; 11413 color: #FFF; 11414 line-height: 17px; 11415 font-size: 13px; 11416 margin: ${e=>e.margin}; 11417 .fa { 11418 margin: 2px 5px 0 0; 11419 } 11420`,YDe=N.div` 11421 position: absolute; 11422 top: 7px; 11423 right: 10px; 11424 cursor: pointer; 11425`,TZ=class extends V.Component{render(){return(0,K.jsxs)(JDe,{background:this.props.background,margin:this.props.margin,children:[this.props.children,this.props.onClose&&(0,K.jsx)(YDe,{onClick:this.props.onClose,children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]})}};TZ.defaultProps={margin:`10px 0 0 0`};var EZ,XDe=N.div` 11426 11427`,ZDe=N.div` 11428 width: 280px; 11429 height: 50px; 11430 position: relative; 11431 display: flex; 11432 align-items: center; 11433 justify-content: center; 11434 color: ${e=>e.color}; 11435 .fa-arrow-right { 11436 transform: rotate(-45deg); 11437 } 11438 i { 11439 position: absolute; 11440 left: -5px; 11441 top: 16px; 11442 color: #FFF; 11443 } 11444`,QDe=N.div` 11445 width: 100%; 11446`,DZ=N.div` 11447 margin: 10px 0 0 0; 11448 color: #333; 11449 font-size: 12px; 11450 display: flex; 11451 align-items: center; 11452 justify-content: center; 11453 height: 30px; 11454 font-weight: bold; 11455`,$De=N.div` 11456 display: flex; 11457 justify-content: center; 11458`,eOe=N.div` 11459 margin: 0 5px; 11460 cursor: pointer; 11461`,tOe=j(EZ=class extends V.Component{render(){return(0,K.jsxs)(XDe,{children:[this.props.showDeckUpdatedMessage&&(0,K.jsx)(B,{width:`100%`,background:q.Theme.green,textAlign:`center`,children:`This deck was updated`}),this.props.showDailyGoalMessage&&(0,K.jsx)(B,{width:`100%`,background:q.Theme.orange,textAlign:`center`,showCloseButton:!0,onClose:this.props.onCloseDailyGoalMessage,children:(0,K.jsx)(eOe,{onClick:this.props.onToggleEdit,children:`Having trouble reviewing all past due reviews? Set yourself a daily goal instead.`})}),this.props.showTimeZoneAlert&&!this.props.edit&&!this.props.askForDeleteConfirmation&&this.props.deck.reviewCardsCount>0&&(0,K.jsxs)(B,{width:`100%`,background:q.Theme.orange,textAlign:`center`,padding:`8px 10px`,children:[(0,K.jsx)(`span`,{children:`Set your time zone in `}),(0,K.jsx)(F,{to:`settings.user_profile`,children:`your settings`}),(0,K.jsx)(`span`,{children:` so reviews become due at the right local time.`})]}),!this.props.askForDeleteConfirmation&&this.props.edit&&(0,K.jsx)(gZ,{deck:this.props.deck,closeOptionsAndUpdate:this.props.closeOptionsAndUpdate,onToggleEdit:this.props.onAfterUpdateDeck,showDailyGoalMessage:this.props.showDailyGoalMessage,refreshSelectedDeck:this.props.refreshSelectedDeck,hideTitle:!0,padding:0}),this.props.deck.reviewCardsCount===0&&!this.props.edit&&!this.props.askForDeleteConfirmation&&(0,K.jsx)(lZ,{}),this.props.deck.reviewCardsCount>0&&!this.props.edit&&(0,K.jsxs)(QDe,{children:[(0,K.jsxs)($De,{children:[(!this.props.deck.useDailyGoal||this.props.deck.effectiveDailyGoal===0)&&(0,K.jsx)(oZ,{onClick:()=>this.props.onClickStatus(`past-due`),mobile:!0,cursor:`pointer`,margin:`0 5px`,text:`Past Due`,showDash:(0,W.isBlank)(this.props.cardsCount),color:this.props.due===`past-due`?q.Theme.orange:`#CCC`,count:this.props.pastDueCount}),this.props.deck.useDailyGoal&&this.props.deck.effectiveDailyGoal>0&&(0,K.jsx)(oZ,{onClick:()=>this.props.onClickStatus(`past-due`),mobile:!0,cursor:`pointer`,margin:`0 5px`,text:`Daily Goal`,showDash:(0,W.isBlank)(this.props.deck.remainingDailyGoal)||this.props.deck.remainingDailyGoal<=0,color:this.props.due===`past-due`?q.Theme.orange:`#CCC`,count:this.props.deck.remainingDailyGoal}),(0,K.jsx)(oZ,{onClick:()=>this.props.onClickStatus(`caught-up`),mobile:!0,cursor:`pointer`,margin:`0 5px`,text:`Caught Up`,showDash:(0,W.isBlank)(this.props.cardsCount),color:this.props.due===`caught-up`?q.Theme.green:`#CCC`,count:this.props.caughtUpCount}),(0,K.jsx)(oZ,{onClick:()=>this.props.onClickStatus(`retired`),mobile:!0,cursor:`pointer`,margin:`0 5px`,text:`Retired`,showDash:(0,W.isBlank)(this.props.cardsCount),color:this.props.due===`retired`?q.Theme.purple:`#CCC`,count:this.props.retiredCount})]}),(0,W.isPresent)(this.props.showStatusAlert)&&(0,K.jsxs)(TZ,{background:this.props.showStatusAlert===`caught-up`?q.Theme.green:q.Theme.purple,onClose:()=>this.props.closeStatusAlert(this.props.showStatusAlert),children:[(0,K.jsx)(`i`,{className:`fa fa-exclamation-triangle`}),this.props.showStatusAlert===`caught-up`&&(0,K.jsx)(`span`,{children:`This will only show "Caught Up" Cards. These are cards that you have recently seen, and are not yet due to be reviewed again.`}),this.props.showStatusAlert===`retired`&&(0,K.jsx)(`span`,{children:`This will only show "Retired" Cards. These are cards that you have already seen enough and are considered to be learned.`})]}),(0,K.jsx)(wZ,{filterSettings:this.props.webFilterSettings,margin:`10px 0`,title:`Advanced Settings`}),(0,W.isPresent)(this.props.cardsCount)&&(0,K.jsx)(DZ,{children:this.props.cardsCountMessage}),(0,W.isBlank)(this.props.cardsCount)&&(0,K.jsx)(DZ,{children:(0,K.jsx)(P,{margin:`0`,background:q.Theme.blue})}),(0,K.jsx)(I,{onClick:this.props.onOpenDeck,height:`50px`,width:`100%`,margin:`10px 0 0 0`,background:this.props.enabledOpenDeck?q.Theme.blue:`#CCC`,cursor:this.props.enabledOpenDeck?`pointer`:`default`,children:(0,K.jsxs)(ZDe,{color:`#FFF`,children:[(0,K.jsx)(`i`,{className:`fa fa-arrow-right`}),`Open Deck`]})})]})]})}})||EZ,nOe=(0,Y.ReviewDeckOptionsWrapper)(tOe);D();var OZ,kZ;function rOe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var iOe=N.div` 11462 display: flex; 11463 width: 100%; 11464 align-items: center; 11465 justify-content: center; 11466`,aOe=N.div` 11467 flex: 1; 11468 position: relative; 11469 overflow: auto; 11470 flex-direction: row; 11471 display: flex; 11472 height: 310px; 11473 overflow-y: hidden; 11474`,oOe=N.div` 11475 display: flex; 11476 position: absolute; 11477 width: 100%; 11478 overflow-x: auto; 11479 overflow-y: hidden; 11480 height: 320px; 11481 top: 0; 11482 left: 0; 11483 padding: 10px 20px 0 20px; 11484 justify-content: ${e=>e.justifyContent}; 11485`,sOe=N.div` 11486 width: ${e=>e.width}; 11487`,cOe=N.div` 11488 border: 5px dotted ${q.Theme.blue}; 11489 height: ${e=>e.height}; 11490 width: ${e=>e.width}; 11491 border-bottom-left-radius: 30px; 11492 border-bottom-right-radius: 30px; 11493 border-top-left-radius: 44px; 11494 border-top-right-radius: 44px; 11495 background: #00b8db5c; 11496 display: flex; 11497 align-items: center; 11498 justify-content: center; 11499 cursor: pointer; 11500 i { 11501 color: ${q.Theme.blue}; 11502 } 11503`,lOe=N.div` 11504 display: flex; 11505 flex-direction: column; 11506 align-items: center; 11507 justify-content: center; 11508`,uOe=N.div` 11509 height: 320px; 11510`,dOe=N.div` 11511 width: 100%; 11512 height: 100%; 11513 display: flex; 11514 align-items: center; 11515 justify-content: center; 11516 flex-direction: column; 11517 color: #a9a9a9; 11518 .fa-question-circle { 11519 font-size: 40px; 11520 margin-bottom: 20px; 11521 } 11522`,fOe=j(OZ=(kZ=class extends V.Component{get deckWidthFitsInContainer(){return(this.props.filteredReviewDecks.length+1)*(this.props.deckWidth+10)<U.AppUI.layout.leftColumnWidth}render(){return(0,K.jsxs)(iOe,{children:[this.props.showDeckOptions&&(0,K.jsx)(Dn,{onClickGearIcon:this.props.onToggleEdit,onCloseModal:this.props.closeOptionsAndUpdate,top:U.AppUI.layout.isMobile?`60px`:`100px`,width:(0,W.pixify)(U.AppUI.layout.defaultModalWidth),gradient:!0,title:`'${this.props.selectedDeck.name||`Default`}
11522' Deck`,maxHeight:U.AppUI.layout.viewportHeight*.8,contentShouldScroll:!0,children:(0,K.jsx)(nOe,{deck:this.props.selectedDeck,closeOptionsAndUpdate:this.props.closeOptionsAndUpdate,edit:this.props.edit,onToggleEdit:this.props.onToggleEdit,refreshSelectedDeck:this.props.refreshSelectedDeck})}),this.props.showDeckSettings&&(0,K.jsx)(Dn,{onCloseModal:this.props.closeOptionsAndUpdate,top:`100px`,width:`400px`,gradient:!0,title:`Create a Review Deck`,children:(0,K.jsx)(gZ,{deck:this.props.selectedDeck,afterCreateDeck:this.props.afterCreateDeck,closeOptionsAndUpdate:this.props.closeOptionsAndUpdate,refreshSelectedDeck:this.props.refreshSelectedDeck})}),(0,K.jsxs)(aOe,{children:[this.props.showSpinner&&(0,K.jsx)(P,{background:q.Theme.blue}),!this.props.showSpinner&&this.props.archive&&(0,W.isBlank)(this.props.filteredReviewDecks)&&(0,K.jsxs)(dOe,{children:[(0,K.jsx)(`i`,{className:`fa fa-question-circle`}),(0,K.jsx)(R,{color:`#a9a9a9`,children:`You currently do not have any archived review decks.`}),(0,K.jsx)(R,{color:`#a9a9a9`,children:`Review decks can be archived in their settings.`})]}),!this.props.showSpinner&&(0,K.jsxs)(oOe,{justifyContent:this.deckWidthFitsInContainer?`center`:`flex-start`,children:[this.props.filteredReviewDecks.map(e=>(0,K.jsx)(uOe,{children:(0,K.jsx)(TDe,{deck:e,width:this.props.deckWidth,iconWidth:U.AppUI.layout.isMobile||U.AppUI.layout.minimumHeight?40:60,onClick:()=>this.props.onSelectDeck(e)})},e.id)),!this.props.archive&&(0,K.jsx)(cOe,{onClick:()=>this.props.onSetShowDeckSettings(!0),width:(0,W.pixify)(this.props.deckWidth),height:U.AppUI.layout.isMobile||U.AppUI.layout.minimumHeight?`260px`:`280px`,children:(0,K.jsx)(sOe,{width:(0,W.pixify)(this.props.deckWidth),children:(0,K.jsx)(lOe,{children:(0,K.jsx)(`i`,{className:`fa fa-plus`})})})})]})]})]})}},rOe(kZ.prototype,`deckWidthFitsInContainer`,[E],Object.getOwnPropertyDescriptor(kZ.prototype,`deckWidthFitsInContainer`),kZ.prototype),kZ))||OZ,pOe=(0,Y.ReviewDecksWrapper)(fOe),AZ,mOe=N.div` 11523 width: 100%; 11524 display: flex; 11525 flex-direction: column; 11526`,jZ=N.div` 11527 padding: 10px 0; 11528 width: 100%; 11529 border: 0px solid #CCC; 11530 display: flex; 11531 flex-direction: row; 11532 cursor: pointer; 11533 &:hover { 11534 background: whitesmoke; 11535 } 11536`,MZ=N.div` 11537 width: 35px; 11538 .check-with-circle-icon { 11539 svg { 11540 fill: ${q.Theme.green}; 11541 width: 20px; 11542 height: 20px; 11543 } 11544 } 11545`,NZ=N.div` 11546 flex: 1; 11547 padding-left: 10px; 11548`,PZ=j(AZ=class extends V.Component{render(){return(0,K.jsxs)(mOe,{children:[!!this.props.includeBlank&&(0,K.jsxs)(jZ,{onClick:()=>this.props.onSetFilter(this.props.userKey,null),children:[(0,K.jsx)(NZ,{children:(0,K.jsx)(R,{fontSize:14,lineHeight:18,color:`#333`,children:`Any`})}),(0,K.jsxs)(MZ,{children:[this.props.multiSelect&&(0,K.jsx)(jn,{value:(0,W.isBlank)(this.props.value)}),!this.props.multiSelect&&(0,K.jsx)(mv,{value:(0,W.isBlank)(this.props.value)})]})]}),this.props.options.map(e=>{let t=this.props.multiSelect&&(0,W.isPresent)(this.props.value)&&this.props.value.includes(e[0])||e[0]===this.props.value||(0,W.isBlank)(e[0])&&(0,W.isBlank)(this.props.value);return(0,K.jsxs)(jZ,{padding:this.props.padding,onClick:()=>this.props.onSetFilter(this.props.userKey,e[0]),children:[(0,K.jsx)(NZ,{children:(0,K.jsx)(R,{fontSize:14,lineHeight:18,children:e[1]})}),(0,K.jsxs)(MZ,{children:[this.props.multiSelect&&(0,K.jsx)(jn,{value:t}),!this.props.multiSelect&&(0,K.jsx)(mv,{value:t})]})]},e[0])})]})}})||AZ,FZ,hOe=N.div` 11549 display: flex; 11550 flex-direction: column; 11551 width: 100%; 11552`,gOe=j(FZ=class extends V.Component{render(){return(0,K.jsxs)(hOe,{children:[(0,K.jsx)(PZ,{includeBlank:this.props.includeBlank,value:this.props.value,onSetFilter:this.props.onSetFilter,userKey:`vocabLanguagesWithWithout`,options:this.props.options}),(0,K.jsx)(Fi,{allowUpdate:!0,options:U.AppUI.nativeLanguageOptions,value:U.AppUI.user.languageId,onChange:e=>this.props.onSetFilter(`languageId`,e),margin:`0 10px 0 0`})]})}})||FZ,IZ,_Oe=N.div` 11553 ${(0,X.flexCenterColumn)()} 11554 width: 100%; 11555 border-bottom-width: 1px; 11556 padding-bottom: 20px; 11557 padding-left: 10px; 11558`,vOe=N.div` 11559 display: flex; 11560 flex-direction: column; 11561 width: 100%; 11562`,yOe=N.div` 11563 width: 100%; 11564 border: ${e=>e.border?`1px solid #DDD`:null}; 11565 borderBottomWidth: 0; 11566 borderTopWidth: 0; 11567 borderLeftWidth: 0; 11568 display: flex; 11569 flex-direction: row; 11570 align-items: center; 11571 justify-content: flex-start; 11572 margin-bottom: 10px; 11573 margin-top: 10px; 11574`,LZ=M(j(IZ=class extends V.Component{render(){return(0,K.jsxs)(_Oe,{children:[(0,K.jsx)(yOe,{border:this.props.border,children:(0,K.jsxs)(vOe,{children:[(0,K.jsx)(R,{bold:!0,color:`#333`,children:this.props.label}),this.props.description&&(0,K.jsx)(R,{fontSize:12,lineHeight:15,margin:`3px 0 0 0`,color:`#A7A7A7`,children:this.props.description})]})}),this.props.filterType===`select`&&(0,K.jsx)(PZ,{...this.props}),this.props.filterType===`selectLanguage`&&(0,K.jsx)(gOe,{...this.props})]})}})||IZ),RZ,bOe=N.div` 11575 display: flex; 11576 flex-direction: row; 11577 width: ${e=>e.width}; 11578 padding: ${e=>e.padding}; 11579 justify-content: ${e=>e.justifyContent}; 11580 height: 50px; 11581 align-items: center; 11582 overflow-x: auto; 11583 overflow-y: hidden; 11584 ::-webkit-scrollbar {
11585 display: none; 11586 } 11587`,xOe=N.div` 11588 display: flex; 11589 height: 30px; 11590`,SOe=N.div` 11591 background: ${e=>e.background}; 11592 padding: 5px; 11593 padding-right: ${e=>e.readOnly?`5px`:`20px`}; 11594 border-radius: 5px; 11595 margin: 3px; 11596 position: relative; 11597 border: ${e=>e.border}; 11598 display: flex; 11599 flex-direction: row; 11600 align-items: center; 11601 justify-content: center; 11602 cursor: ${e=>e.readOnly?`default`:`pointer`}; 11603 width: max-content; 11604`,COe=N.div` 11605 position: absolute; 11606 right: 5px; 11607 top: 5px; 11608 color: ${e=>e.color}; 11609 i { 11610 font-size: 12px; 11611 } 11612`,wOe=j(RZ=class extends V.Component{render(){return(0,K.jsx)(bOe,{width:this.props.width,padding:this.props.padding,justifyContent:this.props.inDeckOptions?`safe center`:``,children:(0,K.jsx)(xOe,{children:this.props.filteredFilterSettings.map(e=>(0,K.jsxs)(SOe,{onClick:this.props.readOnly?void 0:()=>this.props.onClick(e),readOnly:this.props.readOnly,background:this.props.backgroundColor,border:this.props.inDeckOptions?``:`1px solid #CCC`,children:[(0,K.jsx)(R,{color:this.props.color,bold:!0,fontSize:12,lineHeight:15,children:e.tagDisplay}),!this.props.readOnly&&(0,K.jsx)(COe,{color:this.props.color,children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]},e.label))})})}})||RZ,zZ=(0,Y.FilterTagsWrapper)(wOe),BZ,TOe=N.div` 11613`,EOe=N.div` 11614 padding: 10px 10px 50px 10px; 11615`,DOe=N.div` 11616 background: #FFF; 11617 height: 40px; 11618 display: flex; 11619 align-items: center; 11620 flex-direction: row; 11621 position: fixed; 11622 width: 100%; 11623 bottom: 0; 11624 border-top: 1px solid #CCC; 11625 padding-right: 20px; 11626`,OOe=N.div` 11627 position: absolute; 11628 right: 10px; 11629 top: 5px; 11630`,VZ=N.div` 11631 position: relative; 11632 height: 30px; 11633 flex: 1; 11634 display: flex; 11635 flex-direction: row; 11636 align-items: center; 11637 justify-content: ${e=>e.justifyContent}; 11638 padding-right: ${e=>e.paddingRight}; 11639`,kOe=N.div` 11640 flex: 1; 11641 overflow: auto; 11642`,AOe=M(j(BZ=class extends V.Component{render(){return(0,K.jsxs)(TOe,{children:[(0,K.jsxs)(EOe,{children:[this.props.hasActiveFilter&&(0,K.jsx)(zZ,{width:`100%`,filterSettings:this.props.filterSettings,onSetFilter:this.props.onSetFilter}),this.props.filterSettings.filter(e=>!e.hide).length>0&&(0,K.jsx)(kOe,{children:this.props.filterSettings.filter(e=>!e.hide).map((e,t)=>{let{key:n,...r}=e;return(0,K.jsx)(LZ,{onSetFilter:this.props.onSetFilter,...r},e.filterKey||n||t)})})]}),(0,K.jsxs)(DOe,{children:[(0,K.jsx)(VZ,{}),(0,K.jsxs)(VZ,{justifyContent:`flex-end`,children:[this.props.filteredItemsCount===null&&(0,K.jsx)(OOe,{children:(0,K.jsx)(P,{margin:`0`,width:80,wrapperWidth:30,wrapperHeight:30})}),this.props.filteredItemsCount!==null&&(0,K.jsx)(R,{fontSize:12,lineHeight:15,children:`${(0,W.formatNumber)(this.props.filteredItemsCount)} ${this.props.filteredItemsType}s`})]})]})]})}})||BZ),HZ,jOe=N.div` 11643 margin-bottom: 5px; 11644 display: flex; 11645 flex-direction: row; 11646 align-items: center; 11647 background: #FFF; 11648 border: 3px solid #CCC; 11649 border-radius: 5px; 11650 height: 46px; 11651 width: ${e=>e.width}; 11652 margin-bottom: ${e=>e.marginBottom}; 11653 margin-top: 10px; 11654`,MOe=N.div` 11655 width: 60px; 11656 padding-left: 10px; 11657 font-size: 12px; 11658 font-weight: bold; 11659 margin-right: 5px; 11660 cursor: pointer; 11661 color: #333; 11662 height: 19px; 11663 margin-top: ${e=>e.marginTop}; 11664`,NOe=N.div` 11665 display: flex; 11666 flex-direction: row; 11667 width: 100%; 11668 overflow: hidden; 11669`,POe=N.div` 11670 width: 45px; 11671 display: flex; 11672 flex-direction: row; 11673 align-items: center; 11674 justify-content: center; 11675 padding-right: 5px; 11676 cursor: pointer; 11677 margin-top: ${e=>e.marginTop}; 11678 svg { 11679 fill: #333; 11680 width: 20px; 11681 } 11682`,UZ=j(HZ=class extends V.Component{render(){return(0,K.jsxs)(jOe,{width:this.props.width,marginBottom:this.props.marginBottom,children:[this.props.showFilterOptions&&(0,K.jsx)(Dn,{width:(0,W.pixify)(Math.min(U.AppUI.layout.viewportWidth-50,400)),height:(0,W.pixify)(Math.min(U.AppUI.layout.viewportHeight-100,600)),onCloseModal:()=>this.props.setShowFilterOptions(!1),gradient:U.AppUI.siteIsDefault||(0,W.isBlank)(U.AppUI.site.accentColor),background:!U.AppUI.siteIsDefault&&(0,W.isPresent)(U.AppUI.site.accentColor)?U.AppUI.site.accentColor:null,padding:`0`,title:this.props.filterName,contentShouldScroll:!0,
11682children:(0,K.jsx)(AOe,{...this.props})}),(0,K.jsx)(MOe,{onClick:()=>this.props.setShowFilterOptions(!0),marginTop:U.AppUI.siteIsDefault?0:`-5px`,children:`Filters`}),(0,K.jsxs)(NOe,{children:[!!this.props.hasActiveFilter&&(0,K.jsx)(zZ,{filterSettings:this.props.filterSettings,onSetFilter:this.props.onSetFilter}),!this.props.hasActiveFilter&&(0,K.jsx)(R,{onClick:()=>this.props.setShowFilterOptions(!0),fontSize:`12px`,lineHeight:`15px`,color:`#777`,cursor:`pointer`,marginTop:`-1px`,children:this.props.noFiltersSelectedMessage})]}),(0,K.jsx)(POe,{onClick:()=>this.props.setShowFilterOptions(!0),marginTop:U.AppUI.siteIsDefault?0:`5px`,children:(0,K.jsx)(J.FilterIcon,{width:20,height:20,fill:`#444`})})]})}})||HZ;D();var WZ,GZ,KZ;function FOe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function IOe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var LOe=N.div` 11683 ${(0,X.flexCenter)()} 11684 width: 100%; 11685 min-width: 200px; 11686`,ROe=N.div` 11687 ${(0,X.flexCenter)()} 11688 background: ${e=>e.background}; 11689 padding: 0 10px; 11690 border: ${e=>e.noBorder?`none`:`3px solid #CCC`}; 11691 border-radius: 45px; 11692 flex: 1; 11693 .fa-times { 11694 cursor: pointer; 11695 } 11696 i { 11697 margin-right: 5px; 11698 color: #BBB; 11699 } 11700 input { 11701 flex: 1; 11702 border: none; 11703 padding: 10px; 11704 border-top-right-radius: 50px; 11705 border-bottom-right-radius: 50px; 11706 } 11707 input::placeholder { 11708 font-size: 12px; 11709 } 11710`,zOe=N.div` 11711 ${(0,X.flexCenter)()} 11712 background: ${q.Theme.red}; 11713 cursor: pointer; 11714 width: 24px; 11715 height: 24px; 11716 border-radius: 50%; 11717 i { 11718 color: #FFF; 11719 margin: 0; 11720 } 11721`,BOe=N.div` 11722 ${(0,X.flexCenter)()} 11723 text-decoration: underline; 11724 cursor: pointer; 11725 width: 30px; 11726`,VOe=N.div` 11727 ${(0,X.flexCenter)()} 11728 margin-left: 5px; 11729 i { 11730 cursor: pointer; 11731 margin: 0 5px; 11732 } 11733`,HOe=j(WZ=(GZ=class extends V.Component{constructor(...e){super(...e),FOe(this,`expanded`,KZ,this),this.onChange=e=>{e=e.replace(/^\s+/,``),typeof this.props.onChange==`function`&&this.props.onChange(e)},this.insertText=e=>{let t=document.getElementById(`vocab-trainer-input`);if(t&&typeof this.props.insertText==`function`){let n=t.selectionStart;this.props.insertText(e,n)}}}render(){return(0,K.jsxs)(LOe,{children:[(0,K.jsxs)(ROe,{background:this.props.background,noBorder:this.props.noBorder,children:[(0,K.jsx)(`i`,{className:`fa fa-search`}),(0,K.jsx)(Ii,{onChange:this.onChange,id:`vocab-trainer-input`,caretPosition:this.props.caretPosition,placeholder:this.props.placeholder,focusOnId:this.props.value,value:this.props.value,maxLength:this.props.maxLength,style:{backgroundColor:this.props.background}}),(0,W.isPresent)(this.props.value)&&!this.props.hideCloseIcon&&(0,K.jsx)(zOe,{onClick:()=>{typeof this.props.onChange==`function`&&this.props.onChange(null)},children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]}),!this.expanded&&this.props.showSpecialCharacters&&(0,K.jsx)(BOe,{onClick:()=>this.expanded=!0,children:this.props.specialCharacterOptions[0]||`ä`}),this.expanded&&this.props.showSpecialCharacters&&(0,K.jsxs)(VOe,{children:[(0,K.jsx)(ta,{center:!0,options:this.props.specialCharacterOptions,onClick:this.insertText,padding:`5px 3px`,border:`1px solid grey`,lineHeight:`10px`,fontSize:`14px`}),(0,K.jsx)(`i`,{className:`fa fa-times`,onClick:()=>this.expanded=!1})]})]})}},KZ=IOe(GZ.prototype,`expanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),GZ))||WZ,qZ=M((0,Y.SearchInputWrapper)(HOe));be();var JZ,UOe=N.div` 11734 11735`,WOe=N.div` 11736 margin: ${e=>e.margin}; 11737 display: flex; 11738 gap: 10px; 11739 @media only screen and (max-width : 649px) { 11740 display: grid; 11741 grid-template-columns: 50% 50%; 11742 gap: 10px; 11743 margin: 10px 0; 11744 width: 80%; 11745 } 11746 .fa { 11747 margin-right: 5px; 11748 } 11749`,YZ=N.div` 11750 margin: 10px 0 0 0; 11751 display: flex; 11752 gap: 10px; 11753`,XZ=N.div` 11754 display: flex; 11755 flex-direction: column; 11756 align-items: center; 11757 position: absolute; 11758 background: white; 11759 padding: 10px; 11760 border-radius: 10px; 11761 border: #f1f1f1 solid 1px; 11762 margin-top: -8px; 11763 box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 3px 10px; 11764 z-index: 99; 11765`,GOe=N.div` 11766 width: 100%; 11767 align-items: center; 11768 justify-content: center; 11769 display: flex; 11770 flex-direction: column; 11771 padding: 10px 0 0 0; 11772 margin: 10px 0; 11773 border: 3px solid #CCC; 11774 border-radius: 5px; 11775 input { 11776 height: 30px!important; 11777 width: calc(100% - 40px)!important; 11778 margin-left: 20px; 11779 } 11780`,KOe=N.div` 11781 display: flex; 11782 width: 100%; 11783 flex-direction: row; 11784 align-items: center; 11785 justify-content: space-between; 11786 padding: 0 8px 0 4px; 11787 margin-bottom: 4px; 11788`,qOe=N.button` 11789 background: transparent; 11790 border: none; 11791 cursor: pointer; 11792 padding: 4px 8px; 11793 font-size: 16px; 11794 color: #333; 11795`,ZZ=N.div` 11796 display: flex; 11797 align-items: center; 11798 justify-content: center; 11799 flex-direction: column; 11800 p { 11801 margin: 20px 0 0 0; 11802 } 11803`,QZ=N.div` 11804 flex: 1; 11805 padding: 0 5px; 11806`,JOe=j(JZ=class extends V.Component{componentDidMount(){document.addEventListener(`mousedown`,this.props.handleOutsideClick)}componentWillUnmount(){document.removeEventListener(`mousedown`,this.props.handleOutsideClick)}render(){return(0,K.jsxs)(UOe,{children:[this.props.showDeleteConfirmationModal&&(0,K.jsx)(Dn,{onCloseModal:this.props.toggleDeleteModal,width:350,top:`200px`,gradient:!0,title:`Delete Reviews`,children:(0,K.jsxs)(ZZ,{children:[`Are you sure that you want to delete ${this.props.selectedReviewIds.length<=1?`this review`:`these ${this.props.selectedReviewIds.length} reviews`}? This cannot be undone.`,(0,K.jsxs)(YZ,{children:[(0,K.jsx)(QZ,{children:(0,K.jsxs)(I,{onClick:this.props.destroyReviews,background:ve.green,width:`100%`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),`Confirm`]})}),(0,K.jsx)(QZ,{children:(0,K.jsxs)(I,{onClick:this.props.toggleDeleteModal,background:ve.red,width:`100%`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Cancel`]})})]})]})}),this.props.showResetConfirmationModal&&(0,K.jsx)(Dn,{onCloseModal:this.props.toggleResetModal,width:350,top:`200px`,gradient:!0,title:`Reset Reviews`,children:(0,K.jsxs)(ZZ,{children:[`Are you sure that you want to reset ${this.props.selectedReviewIds.length<=1?`this review`:`these ${this.props.selectedReviewIds.length} reviews`}? Your progress will be erased and they will be due today.`,(0,K.jsxs)(YZ,{children:[(0,K.jsx)(QZ,{children:(0,K.jsxs)(I,{onClick:this.props.resetReviews,background:ve.green,width:`100%`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),`Confirm`]})}),(0,K.jsx)(QZ,{children:(0,K.jsxs)(I,{onClick:this.props.toggleResetModal,background:ve.red,width:`100%`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Cancel`]})})]})]})}),(0,W.isPresent)(this.props.selectedReviewIds)&&(0,W.isPresent)(this.props.reviewDeckOptions)&&(0,K.jsxs)(GOe,{children:[(0,K.jsxs)(KOe,{children:[(0,K.jsx)(R,{fontSize:`12px`,fontWeight:`800`,children:`${this.props.selectedReviewIds.length} Review${this.props.selectedReviewIds.length>1?`s`:``} Selected`}),(0,K.jsx)(qOe,{type:`button`,onClick:this.props.dismissBulkEdit,"aria-label":`Clear selection`,children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]}),!this.props.showSpinner&&(0,K.jsxs)(WOe,{children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(Pn,{margin:U.AppUI.layout.isMobile?`0`:`10px 0`,onClick:this.props.toggleShowDeckSelector,fontSize:`12px`,padding:`5px 20px`,borderRadius:`20px`,children:[(0,K.jsx)(`i`,{className:`fa fa-share`}),`Move to`]}),this.props.showDeckSelector&&(0,K.jsxs)(XZ,{className:`selector`,children:[(0,K.jsx)(R,{fontSize:`12px`,bold:!0,color:`#333`,children:`Select Review Deck`}),(0,K.jsx)(jF,{options:U.AppUI.reviewDeckOptions,onClick:this.props.updateSelectedCardsDeck,selectedId:null})]})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(Pn,{margin:U.AppUI.layout.isMobile?`0`:`10px 0`,onClick:this.props.toggleShowCardTypeSelector,fontSize:`12px`,padding:`5px 20px`,borderRadius:`20px`,children:[(0,K.jsx)(`i`,{className:`fa fa-gear`}),`Change Type`]}),this.props.showCardTypeSelector&&(0,K.jsxs)(XZ,{className:`selector`,children:[(0,K.jsx)(R,{fontSize:`12px`,bold:!0,color:`#333`,children:`Select Card Type`}),(0,K.jsx)(FF,{compact:!0,cards:this.props.selectedCards,onChangeMultipleCards:this.props.updateSelectedCardsType})]})]}),(0,K.jsxs)(Pn,{margin:U.AppUI.layout.isMobile?`0`:`10px 0`,onClick:this.props.toggleResetModal,fontSize:`12px`,width:`100px`,padding:`5px 20px`,borderRadius:`20px`,children:[(0,K.jsx)(`i`,{className:`fa fa-refresh`}),`Reset`]}),(0,K.jsxs)(Pn,{margin:U.AppUI.layout.isMobile?`0`:`10px 0`,onClick:this.props.retireReviews,fontSize:`12px`,width:`110px`,padding:`5px 20px`,borderRadius:`20px`,children:[(0,K.jsx)(`i`,{className:`fa fa-arrow-${this.props.nonRetiredSelectedCards.length===0?`up`:`down`}`}),this.props.nonRetiredSelectedCards.length===0?`Restore`:`Retire`]}),(0,K.jsxs)(Pn,{margin:U.AppUI.layout.isMobile?`0`:`10px 0`,onClick:this.props.toggleDeleteModal,selectedBackgroun
11806d:ve.red,disabled:U.DeckUI.cardStore.requestCounter>0,padding:`5px 20px`,borderRadius:`20px`,fontSize:`12px`,children:[(0,K.jsx)(`i`,{className:`fa fa-trash`}),`Delete`]})]}),this.props.showSpinner&&(0,K.jsx)(P,{margin:`10px 0`})]}),(0,W.isPresent)(this.props.alertMessage)&&(0,K.jsx)(B,{background:ve.green,fontSize:`12px`,children:this.props.alertMessage})]})}})||JZ,YOe=(0,Y.BulkEditReviewsWrapper)(JOe),XOe=N.div` 11807 display: flex; 11808 align-items: center; 11809 flex-wrap: wrap; 11810 gap: 5px; 11811 width: 100%; 11812 margin-top: ${e=>e.marginTop||`10px`}; 11813`,$Z=N.div` 11814 margin-right: 3px; 11815 .fa-times { 11816 margin-top: 1px; 11817 } 11818 .fa-refresh { 11819 margin-top: 2px; 11820 font-size: 10px; 11821 } 11822`,ZOe=({onManage:e,onReset:t,onDelete:n,marginTop:r})=>(0,K.jsxs)(XOe,{marginTop:r,children:[e&&(0,K.jsxs)(gP,{height:`25px`,fontWeight:`bold`,fontSize:`12px`,onClick:e,children:[(0,K.jsx)($Z,{children:(0,K.jsx)(`i`,{className:`fa fa-pencil`})}),`Manage Review`]}),t&&(0,K.jsx)(ra,{allowDeletion:!0,onConfirm:t,message:`Reset this Review?`,children:(0,K.jsxs)(gP,{height:`25px`,fontWeight:`bold`,fontSize:`12px`,children:[(0,K.jsx)($Z,{children:(0,K.jsx)(`i`,{className:`fa fa-refresh`})}),`Reset Review`]})}),n&&(0,K.jsx)(ra,{allowDeletion:!0,onConfirm:n,message:`Delete this Review?`,children:(0,K.jsxs)(gP,{height:`25px`,fontWeight:`bold`,fontSize:`12px`,children:[(0,K.jsx)($Z,{children:(0,K.jsx)(`i`,{className:`fa fa-times`})}),`Delete Review`]})})]}),QOe=N.div` 11823 display: flex; 11824 flex-direction: column; 11825 margin-bottom: ${e=>e.marginBottom||`10px`}; 11826`,$Oe=N.div` 11827 display: flex; 11828 flex-direction: row; 11829 border-bottom: 1px solid #f0f0f0; 11830`,eke=N.div` 11831 flex: 1; 11832 padding: 2px 0; 11833 font-size: 11px; 11834 font-weight: bold; 11835 color: #777; 11836 text-transform: uppercase; 11837 letter-spacing: 0.3px; 11838`,tke=N.div` 11839 flex: 2; 11840 padding: 2px 0; 11841 font-size: 12px; 11842 color: #333; 11843 display: flex; 11844 align-items: center; 11845`,nke=({rows:e,marginBottom:t})=>(0,K.jsx)(QOe,{marginBottom:t,children:(e||[]).filter(e=>e&&e.value!==void 0&&e.value!==null).map((e,t)=>(0,K.jsxs)($Oe,{children:[(0,K.jsx)(eke,{children:e.label}),(0,K.jsx)(tke,{children:e.value})]},`${e.label}-${t}`))});me();var rke=N.div` 11846 display: flex; 11847 background: ${e=>e.embedded?`transparent`:`#f1f1f1`}; 11848 padding: ${e=>e.embedded?`0`:`10px`}; 11849 margin: ${e=>e.embedded?`0`:`10px 0`}; 11850 flex-direction: column; 11851`,ike=N.div` 11852 display: flex; 11853 align-items: center; 11854 justify-content: space-between; 11855`,ake=N.div` 11856 display: flex; 11857 align-items: center; 11858`,oke=N.div` 11859 display: flex; 11860 align-items: center; 11861 color: #7d7c7c; 11862 font-size: 12px; 11863 cursor: pointer; 11864 width: 10px; 11865 margin: 0 2px 0 -2px; 11866`,ske=N.div` 11867 width: 100%; 11868 display: flex; 11869 gap: 0 20px; 11870 align-items: left; 11871 justify-content: space-between; 11872 cursor: ${e=>e.clickable?`pointer`:`default`}; 11873`,cke=N.div` 11874 margin-top: ${e=>e.marginTop||`10px`}; 11875`,lke=N.div` 11876 color: ${e=>e.color||`#333`}; 11877`,uke=N.div` 11878 display: flex; 11879 align-items: center; 11880 gap: 10px; 11881 > div { 11882 display: flex; 11883 align-items: center; 11884 } 11885`,dke=N.div` 11886 display: inline-flex; 11887 align-items: center; 11888 justify-content: center; 11889 background: ${q.Theme.blue}; 11890 color: #FFF; 11891 border-radius: 8px; 11892 font-size: 10px; 11893 font-weight: bold; 11894 padding: 0 8px; 11895`,eQ=N.div` 11896 background: ${e=>e.background}; 11897 color: #FFF; 11898 border-radius: 8px; 11899 font-size: 12px; 11900 padding: 0 10px; 11901 font-weight: bold; 11902 display: inline-flex; 11903 align-items: center; 11904 justify-content: center; 11905 gap: 4px; 11906`,fke=e=>!!(e?.createdAt?.dateObj&&Date.now()-e.createdAt.dateObj.getTime()<3600*1e3),pke=e=>e?U.AppUI.reviewDeckStore.indexData.find(t=>t.id===e.deckId)?.archived:!1,tQ=e=>{let t=e?.dateObj||e?.date;if(!t)return!1;let n=new Date,r=U.AppUI.user?.reviewsDueAtBeginningOfDay===!1?new Date:new Date(n.setHours(23,59,59,999));return new Date(t)<r},mke=e=>e?U.AppUI.user?.reviewsDueAtBeginningOfDay===!1?`${e.formattedDateWithYearAndTime||`-`}${e.relativeTime?` (${e.relativeTime})`:``}`:`${e.fullTextFormattedDateWithYear}${e.relativeDays?` (${e.relativeDays})`:``}`:`-`,hke=e=>e?e.cardType?.name?e.cardType.name:U.AppUI.cardTypeStore.indexData.find(t=>
11906t.id===e.cardTypeId)?.name||e.cardTypeName||`-`:`-`,gke=(e,t)=>{if(!e)return`-`;let n=(t||[]).find(t=>t[0]===e.deckId);return n?n[1]:U.AppUI.reviewDeckStore.indexData.find(t=>t.id===e.deckId)?.name||`-`},_ke=e=>{if(!e)return``;let t=U.AppUI.layout.isMobile||U.AppUI.layout.isNative?50:100;if(typeof e.reviewFrontText==`function`)return e.reviewFrontText(t);let n=e.frontText;return n&&n.length>t?`${n.substring(0,t)}...`:n||``},vke=e=>{if(!e?.word)return``;let t=U.AppUI.user;if(t&&typeof e.word.sourceTextForUser==`function`)return e.word.sourceTextForUser(t);let n=t&&typeof e.word.vocabSourceListForUser==`function`?e.word.vocabSourceListForUser(t,{forceHideEnglishTranslations:!0}):null;return n&&n.length?n.join(`, `):e.word.vocabSourceList||``},yke=e=>!e||e.cardTypeSlug===`exercise`?``:e.userSubmission&&e.cardTypeSlug===`user_submission`?e.backText||``:e.word&&!e.sentence?vke(e):e.sentence?(U.AppUI.user&&typeof e.sentence.sourceTextForUser==`function`?e.sentence.sourceTextForUser(U.AppUI.user):null)||e.sentence.sourceText||``:e.backText||``,bke=e=>e?.status?e.status:e?.retired?`Retired`:tQ(e?.reviewAfter)?`Past Due`:`Caught Up`,nQ=({item:e,expanded:t=!1,forceExpanded:n=!1,onToggleExpanded:r,showCheckbox:i=!0,checkboxValue:a,onToggleCheckbox:o,reviewDeckOptions:s,onManage:c,onReset:l,onDelete:u,embedded:d=!1,contentMarginTop:f,actionsMarginTop:p,infoTableMarginBottom:m})=>{let h=n||t,g=!!(!n&&r),_=bke(e),v=pke(e),y=e?.deckName||gke(e,s),b=v&&y!==`-`?`${y} [archived]`:y,x=!e?.retired&&tQ(e?.reviewAfter),S=!e?.retired&&!x,C=e?.dueText||mke(e?.reviewAfter),ee=e?.retired?null:C,w=yke(e),T=[(0,W.isPresent)(w)?{label:`Back`,value:w}:null,{label:`Deck`,value:b},{label:`Card Type`,value:e?.cardTypeName||hke(e)},e?.createdAt?{label:`Created`,value:e.createdAt?.fullTextFormattedDateWithYear||`-`}:null,ee?{label:`Due`,value:ee}:null,e?.difficultyLabel?{label:`Difficulty`,value:(0,K.jsx)(eQ,{background:e.difficultyColor,children:e.difficultyLabel})}:null,{label:`Status`,value:(0,K.jsxs)(eQ,{background:_===`Retired`?q.Theme.purple:_===`Past Due`?q.Theme.orange:q.Theme.green,children:[_===`Retired`&&!v&&(0,K.jsx)(`i`,{className:`fa fa-archive`,style:{fontSize:`11px`}}),_===`Past Due`&&!v&&(0,K.jsx)(`i`,{className:`fa fa-clock-o`,style:{fontSize:`11px`}}),_===`Caught Up`&&!v&&(0,K.jsx)(`i`,{className:`fa fa-check`,style:{fontSize:`11px`}}),_]})}];return(0,K.jsxs)(rke,{embedded:d,children:[(0,K.jsxs)(ike,{children:[(0,K.jsxs)(ake,{children:[g&&(0,K.jsx)(oke,{onClick:e=>{e.stopPropagation(),r()},children:(0,K.jsx)(`i`,{className:h?`fa fa-angle-down`:`fa fa-angle-right`})}),i&&(0,K.jsx)(jn,{margin:`0 10px 0 0`,value:a,onClick:o})]}),(0,K.jsxs)(ske,{clickable:g,onClick:g?r:null,children:[(0,K.jsx)(lke,{color:v||e?.retired?`#636363`:null,children:_ke(e)}),(0,K.jsxs)(uke,{children:[fke(e)&&(0,K.jsx)(dke,{children:`NEW`}),v&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${e.id}-archived-deck`,children:[(0,K.jsx)(`i`,{className:`fa fa-archive`,style:{color:`#636363`,fontSize:`15px`}}),(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`${e.id}-archived-deck`,class:`custom-tooltip`,children:`Archived`})]}),e?.retired&&!v&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${e.id}-retired`,children:[(0,K.jsx)(`i`,{className:`fa fa-archive`,style:{color:`#636363`,fontSize:`15px`}}),(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`${e.id}-retired`,class:`custom-tooltip`,children:`Retired`})]}),x&&!v&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${e.id}-due-status`,children:[(0,K.jsx)(`i`,{className:`fa fa-clock-o`,style:{color:q.Theme.orange,fontSize:`16px`}}),(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`${e.id}-due-status`,class:`custom-tooltip`,children:`Past Due`})]}),S&&!v&&(0,K.jsxs)(`div`,{"data-tip":!0,"data-for":`${e.id}-due-caught-up`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`,style:{color:q.Theme.green,fontSize:`14px`}}),(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`${e.id}-due-caught-up`,class:`custom-tooltip`,children:`Caught Up`})]})]})]})]}),h&&(0,K.jsxs)(cke,{marginTop:f||(d?`0`:`10px`),children:[(0,K.jsx)(nke,{rows:T,marginBottom:m||(d?`6px`:`10px`)}),(c||l||u)&&(0,K.jsx)(ZOe,{marginTop:p||(d?`6px`:`10px`),onManage:c,onReset:l,onDelete:u})]})]})},rQ,xke=N.div` 11907 display: flex; 11908 align-items: center; 11909 justify-content: center; 11910 cursor: pointer; 11911 border-radius: 5px; 11912 padding: 0 10px; 11913 color: ${e=>e.selected?`#333`:`#FFF`}; 11914 background: ${e=>e.selected?`rgba(255, 255, 255, 1)`:`rgba(255, 255, 255, 0.3)`}; 11915 font-size: 12px; 11916 font-weight: bold; 11917 i { 11918 margin-right: 3px; 11919 } 11920 width: 112px; 11921`,Ske=M(j(rQ=class extends V.Component{render(){return(0,K.jsxs)(xke,{onClick:this.props.onClick,selected:this.props.expanded,children:[this.props.expanded&&(0,K.jsx)(`i`,{className:`fa fa-minus`}),!this.props.expanded&&(0,K.jsx)(`i`,{className:`fa fa-plus`}),this.props.expanded&&`Collapse All`,!this.props.expanded&&`Expand All`]})}})||rQ),iQ,Cke=N.div` 11922 display: flex; 11923 align-items: center; 11924 justify-content: center; 11925 cursor: pointer; 11926 border-radius: 5px; 11927 padding: 0 10px; 11928 color: ${e=>e.selected?`#333`:`#FFF`}; 11929 background: ${e=>e.selected?`rgba(255, 255, 255, 1)`:`rgba(255, 255, 255, 0.3)`}; 11930 font-size: 12px; 11931 font-weight: bold; 11932 i { 11933 margin-right: 3px; 11934 } 11935`,aQ=M(j(iQ=class extends V.Component{render(){return(0,K.jsxs)(Cke,{onClick:()=>this.props.onClick(this.props.column),selected:this.props.sort&&this.props.sort.match(this.props.column),children:[this.props.sort&&this.props.sort.match(this.props.column)&&!this.props.sort.match(`-`)&&(0,K.jsx)(`i`,{className:`fa fa-caret-up`}),this.props.sort.match(`-`)&&(0,K.jsx)(`i`,{className:`fa fa-caret-down`}),this.props.label]})}})||iQ),oQ,wke=N.div` 11936 width: 100%; 11937 margin-top: ${e=>e.marginTop}; 11938`,Tke=N.div` 11939 background: #FFF; 11940 margin-top: 10px; 11941`,Eke=N.div` 11942 color: #FFF; 11943 font-size: 14px; 11944 background: #636363; 11945 margin-bottom: 10px; 11946 display: flex; 11947 align-items: center; 11948 height: fit-content; 11949 justify-content: space-between; 11950 flex-wrap: wrap; 11951 padding: 5px; 11952 gap: 5px; 11953`,Dke=N.div` 11954 display: flex; 11955 align-items: center; 11956 justify-content: center; 11957 flex-wrap: wrap; 11958 padding: 5px; 11959 gap: 5px; 11960`,Oke=N.div` 11961 padding: 10px 10px 30px 10px; 11962 display: flex; 11963 align-items: center; 11964 justify-content: center; 11965 font-size: 14px; 11966`,kke=N.div` 11967 display: flex; 11968 align-items: center; 11969 margin-right: 15px; 11970`,Ake=j(oQ=class extends V.Component{render(){return(0,K.jsxs)(wke,{marginTop:U.AppUI.layout.isMobile?`10px`:null,children:[(0,K.jsx)(qZ,{placeholder:`Search for a Review`,onChange:this.props.onUpdateSearchQuery,insertText:this.props.insertText,focusOnId:this.props.searchQuery,value:this.props.searchQuery,caretPosition:this.props.caretPosition,background:`#FFF`}),(0,K.jsx)(UZ,{filterName:`Review Filters`,noFiltersSelectedMessage:this.props.noFiltersSelectedMessage,filterSettings:this.props.filterSettings,onSetFilter:this.props.onSetFilter,searchQuery:this.props.searchQuery,hasActiveFilter:this.props.hasActiveFilter,onToggleFiltersExpanded:this.props.onToggleFiltersExpanded,setShowFilterOptions:this.props.setShowFilterOptions,showFilterOptions:this.props.showFilterOptions,filteredItemsCount:this.props.filteredItemsCount,filteredItemsType:`Review`}),(0,K.jsx)(YOe,{selectedReviewIds:this.props.selectedCardIds,reviewDeckOptions:this.props.reviewDeckOptions,afterChange:this.props.getReviews,resetSelectedCards:this.props.resetSelectedCards}),(0,K.jsxs)(Tke,{children:[(0,K.jsxs)(Eke,{children:[(0,K.jsx)(jn,{margin:`0 0 0 15px`,value:this.props.allSelected,onClick:this.props.toggleSelectAll}),(0,K.jsxs)(Dke,{children:[(0,K.jsx)(aQ,{column:`created_at`,onClick:this.props.onChangeSort,sort:this.props.sort,label:`Created`}),(0,K.jsx)(aQ,{column:`review_after`,onClick:this.props.onChangeSort,sort:this.props.sort,label:`Next Due`}),(0,K.jsx)(aQ,{column:`difficulty_score`,onClick:this.props.onChangeSort,sort:this.props.sort,label:`Difficulty`}),(0,K.jsx)(Xl,{children:(0,K.jsx)(Ske,{onClick:this.props.toggleExpandAll,expanded:this.props.allCardsExpanded})})]}),(0,K.jsx)(Xl,{children:(0,K.jsx)(`div`,{})}
11970),(0,K.jsx)(QI,{children:(0,K.jsx)(kke,{onClick:this.props.toggleExpandAll,children:(0,K.jsx)(`i`,{className:this.props.allCardsExpanded?`fa fa-minus`:`fa fa-plus`})})})]}),this.props.showSpinner&&(0,K.jsx)(P,{background:q.Theme.blue}),!this.props.showSpinner&&U.DeckUI.cardStore.indexData.length===0&&U.DeckUI.cardStore.requestCounter===0&&(0,K.jsx)(Oke,{children:`No reviews were found.`}),!this.props.showSpinner&&U.DeckUI.cardStore.indexData.map(e=>(0,K.jsx)(nQ,{item:e,expanded:this.props.cardIsExpanded(e),onToggleExpanded:()=>this.props.toggleCardExpand(e),checkboxValue:this.props.cardIsSelected(e),onToggleCheckbox:()=>this.props.toggleCardSelect(e),reviewDeckOptions:this.props.reviewDeckOptions,onManage:()=>{U.AppUI.cardStore.showData=e,U.AppUI.routeStore.routeToNamed(`reviews.show`,{page:this.props.page,cardId:e.id})},onReset:()=>this.props.onResetReview(e.id),onDelete:()=>this.props.onDelete(e.id)},`${e.id}-${Math.random()}`))]}),this.props.showPagination&&(0,K.jsx)(In,{onClickScrollToTop:!0,updateUrl:!0,store:U.DeckUI.cardStore,queryStrings:{my_reviews:!0,language_id:U.AppUI.targetLanguageId},totalCount:this.props.filteredItemsCount,onPagination:this.props.resetSelectedCards})]})}})||oQ,jke=(0,Y.ReviewIndexWrapper)(Ake),sQ=N(nq)` 11971 color: #333; 11972 display: block; 11973 font-size: 18px !important; 11974 font-weight: bold; 11975 margin: 0 0 18px 0; 11976 text-transform: none !important; 11977`,cQ=N.textarea` 11978 field-sizing: content; 11979 min-height: 60px; 11980 max-height: 200px; 11981 flex: 1; 11982 min-width: 0; 11983 width: 100%; 11984 padding: 10px; 11985 font-size: 14px; 11986 border: 1px solid #CCC; 11987 border-radius: 3px; 11988 box-sizing: border-box; 11989 resize: vertical; 11990 font-family: inherit; 11991`,lQ=N.div` 11992 color: ${e=>e.warning?`#9F2A2A`:`#666`}; 11993 font-size: 12px; 11994 line-height: 16px; 11995 margin: 6px 0 0 0; 11996`,uQ,dQ,Mke=N.button` 11997 align-items: center; 11998 background: transparent; 11999 border: none; 12000 color: #333; 12001 cursor: pointer; 12002 display: inline-flex; 12003 font-size: 13px; 12004 font-weight: normal; 12005 padding: 0; 12006 text-decoration: underline; 12007 &:hover { 12008 text-decoration: none; 12009 } 12010`,fQ=j(uQ=(dQ=class extends V.Component{render(){return(0,K.jsxs)(V.Fragment,{children:[this.props.showReviewNoteInput&&(0,K.jsxs)(V.Fragment,{children:[(0,K.jsx)(sQ,{name:`review_note`,label:`Review Note`}),(0,K.jsx)(cQ,{value:this.props.note,onChange:e=>this.props.onSetNote(e.target.value),maxLength:q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH}),this.props.note.length>q.Constants.REVIEW_CARD_CHARACTER_LIMIT_DISPLAY_THRESHOLD&&(0,K.jsxs)(lQ,{warning:this.props.note.length>=q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH,children:[this.props.note.length,`/`,q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH,` characters`]})]}),!this.props.showReviewNoteInput&&(0,K.jsxs)(Mke,{onClick:this.props.onShowReviewNoteInput,type:`button`,children:[(0,K.jsx)(`i`,{className:`fa fa-pencil`,style:{marginRight:5}}),`Add Review Note`]})]})}},dQ.defaultProps={note:``},dQ))||uQ,pQ,Nke=N.div` 12011`,mQ=N.div` 12012 margin: ${e=>e.margin||`0 0 20px 0`}; 12013`,hQ=N.div` 12014 display: flex; 12015 align-items: center; 12016 gap: 8px; 12017 width: 100%; 12018 box-sizing: border-box; 12019`,Pke=j(pQ=class extends V.Component{render(){return(0,K.jsxs)(Nke,{children:[(0,K.jsxs)(mQ,{children:[(0,K.jsx)(sQ,{name:`review_custom_front`,label:this.props.showAddWord?`Target Word`:`Front of Card`}),(0,K.jsxs)(hQ,{children:[(0,K.jsx)(cQ,{value:this.props.frontText,onChange:e=>this.props.onSetFrontText(e.target.value),maxLength:q.Constants.REVIEW_CARD_MAX_FRONT_TEXT_LENGTH}),(0,K.jsx)(I,{background:q.Theme.blue,backgroundOnActive:q.Theme.blueGray,color:`#FFF`,border:`none`,borderRadius:`50%`,height:`32px`,width:`32px`,padding:`2px 0 0 0`,margin:`0`,tabIndex:-1,disabled:this.props.swapDisabled,onClick:this.props.swapFrontAndBack,iconMarginRight:`0`,flex:`0 0 auto`,justifyContent:`center`,children:(0,K.jsx)(`i`,{className:`fa fa-arrow-down`,style:{fontSize:13},"aria-hidden":`true`})})]}),this.props.frontText.length>q.Constants.REVIEW_CARD_CHARACTER_LIMIT_DISPLAY_THRESHOLD&&(0,K.jsxs)(lQ,{warning:this.props.frontText.length>=q.Constants.REVIEW_CARD_MAX_FRONT_TEXT_LENGTH,children:[this.props.frontText.length,`/`,q.Constants.REVIEW_CARD_MAX_FRONT_TEXT_LENGTH,` characters`]})]}),(0,K.jsxs)(mQ,{children:[(0,K.jsx)(sQ,{name:`review_custom_back`,label:this.props.showAddWord?`English Translation`:`Back of Card`}),(0,K.jsxs)(hQ,{children:[(0,K.jsx)(cQ,{value:this.props.backText,onChange:e=>this.props.onSetBackText(e.target.value),maxLength:q.Constants.REVIEW_CARD_MAX_BACK_TEXT_LENGTH}),(0,K.jsx)(I,{background:q.Theme.blue,backgroundOnActive:q.Theme.blueGray,color:`#FFF`,border:`none`,borderRadius:`50%`,height:`32px`,width:`32px`,padding:`0`,margin:`0`,tabIndex:-1,disabled:this.props.swapDisabled,onClick:this.props.swapFrontAndBack,iconMarginRight:`0`,flex:`0 0 auto`,justifyContent:`center`,children:(0,K.jsx)(`i`,{className:`fa fa-arrow-up`,style:{fontSize:13},"aria-hidden":`true`})})]}),this.props.backText.length>q.Constants.REVIEW_CARD_CHARACTER_LIMIT_DISPLAY_THRESHOLD&&(0,K.jsxs)(lQ,{warning:this.props.backText.length>=q.Constants.REVIEW_CARD_MAX_BACK_TEXT_LENGTH,children:[this.props.backText.length,`/`,q.Constants.REVIEW_CARD_MAX_BACK_TEXT_LENGTH,` characters`]})]}),(0,K.jsx)(mQ,{children:(0,K.jsx)(fQ,{showReviewNoteInput:this.props.showReviewNoteInput,note:this.props.note,onSetNote:this.props.onSetNote,onShowReviewNoteInput:this.props.onShowReviewNoteInput})}),(0,K.jsx)(sQ,{name:`review_custom_deck`,label:`Review Deck`}),(0,K.jsx)(Fi,{allowUpdate:!0,options:this.props.reviewDeckOptions,value:this.props.deckId,onChange:e=>this.props.onSetDeckId(e)})]})}})||pQ,gQ=/<em>(.*?)<\/em>/gi,Fke={ä:`ae`,ö:`oe`,ü:`ue`,Ã:`ss`},_Q=e=>typeof e==`string`?e.trim():``,vQ=e=>e.toLowerCase().split(``).map(e=>Fke[e]||e).join(``),Ike=e=>{let t=[],n=[],r=new Set([0]),i=``;for(let a=0;a<e.length;a+=1){n[a]=i.length;let o=vQ(e[a]);i+=o;for(let e=0;e<o.length;e+=1)t.push(a);r.add(i.length)}return n[e.length]=i.length,{normalizedText:i,normalizedToSourceIndex:t,sourceToNormalizedIndex:n,boundaries:r}},Lke=(e,t,n,r)=>{let i=n;for(;i<=e.length-t.length;){let n=e.indexOf(t,i);if(n===-1)return null;let a=n+t.length;if(r.has(n)&&r.has(a))return{index:n,term:t};i=n+1}return null},Rke=(e=[])=>{if(!Array.isArray(e))return[];let t=[];
12019return e.forEach(e=>{if(typeof e!=`string`)return;let n;for(;(n=gQ.exec(e))!==null;){let e=_Q(n[1]);e&&t.push(e)}gQ.lastIndex=0}),t},zke=(e,t=[],n=[])=>{let r=[],i=new Set;return[e,...n,...Rke(t)].forEach(e=>{let t=_Q(e);if(!t)return;let n=vQ(t);i.has(n)||(i.add(n),r.push(t))}),r.sort((e,t)=>t.length-e.length)},yQ=(e,t=[])=>{if(typeof e!=`string`)return[];if(!Array.isArray(t)||t.length===0)return[{text:e,highlighted:!1}];let n=new Set,r=t.map(e=>vQ(_Q(e))).filter(e=>e.length===0||n.has(e)?!1:(n.add(e),!0)).sort((e,t)=>t.length-e.length);if(r.length===0)return[{text:e,highlighted:!1}];let{normalizedText:i,normalizedToSourceIndex:a,sourceToNormalizedIndex:o,boundaries:s}=Ike(e),c=[],l=0,u=0;for(;l<e.length;){let t=null;for(let e=0;e<r.length;e+=1){let n=r[e],a=Lke(i,n,u,s);a&&(!t||a.index<t.index||a.index===t.index&&n.length>t.term.length)&&(t=a)}if(!t){c.push({text:e.slice(l),highlighted:!1});break}let n=a[t.index],d=a[t.index+t.term.length-1]+1;n>l&&c.push({text:e.slice(l,n),highlighted:!1}),c.push({text:e.slice(n,d),highlighted:!0}),l=d,u=o[l]}return c.filter(e=>e.text.length>0)};D();var bQ,xQ;function SQ(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Bke=N.div` 12020 display: flex; 12021 flex-direction: column; 12022 align-items: flex-start; 12023 width: 100%; 12024 padding: 0 5px; 12025`,Vke=N.div` 12026 display: flex; 12027 justify-content: center; 12028 margin: 2px 0; 12029`,Hke=M(j(bQ=(xQ=class extends V.Component{constructor(...e){super(...e),this.renderHighlightedText=e=>yQ(e||``,this.props.highlightTerms).map((e,t)=>e.highlighted?(0,K.jsx)(`strong`,{children:e.text},`${e.text}-${t}`):(0,K.jsx)(V.Fragment,{children:e.text},`${e.text}-${t}`))}get sources(){return this.props.sources||[]}get hasMultipleLanguages(){return this.sources?(0,G.uniq)(this.sources.map(e=>(0,W.withoutDigits)(e.source?.languageId))).length>1:!1}render(){return(0,K.jsx)(Bke,{onClick:this.props.onClick,children:this.sources&&this.sources.map((e,t)=>(0,K.jsxs)(Vke,{children:[(this.hasMultipleLanguages||(0,W.withoutDigits)(e.source?.languageId)!==(0,W.withoutDigits)(this.props.user?.languageId))&&(0,K.jsx)(J.LanguageIcon,{languageId:e.source&&e.source?.languageId,translatedByAi:e.translatedByAi}),(0,K.jsx)(R,{margin:`0 0 0 3px`,fontSize:e.source?.rightToLeftLanguage?`22px`:`14px`,children:this.renderHighlightedText(`${e.source?.textForUser(this.props.user)||``}${e.source?.displayGender?this.props.genderAbbreviation:``}`)})]},e.id||t))})}},SQ(xQ.prototype,`sources`,[E],Object.getOwnPropertyDescriptor(xQ.prototype,`sources`),xQ.prototype),SQ(xQ.prototype,`hasMultipleLanguages`,[E],Object.getOwnPropertyDescriptor(xQ.prototype,`hasMultipleLanguages`),xQ.prototype),xQ))||bQ);D(),me();var CQ,wQ,TQ,EQ;function DQ(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function OQ(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Uke=N.div` 12030 display: flex; 12031 flex-direction: column; 12032`,Wke=N.div` 12033 flex: 1; 12034 padding-left: 3px; 12035 .text { 12036 border-bottom: ${e=>e.clickable?`2px solid #b5b5b5`:null}; 12037 display: inline-block; 12038 } 12039 .register { 12040 color: ${q.Theme.gray}; 12041 } 12042`,Gke=N.div` 12043 display: flex; 12044 align-items: center; 12045 margin-bottom: 5px; 12046 border-bottom: 1px solid #cccccc; 12047 padding-bottom: 5px; 12048`,kQ=N.div` 12049 ${(0,X.flexCenter)()} 12050 width: ${e=>e.width}; 12051 flex: ${e=>e.expand?1:null}; 12052 padding: 0 5px; 12053 .selection-button { 12054 width: 100%; 12055 } 12056 .selection-icon-wrapper { 12057 cursor: pointer; 12058 width: 26px;
12059 height: 26px; 12060 border-radius: 13px; 12061 background: ${e=>e.iconBackground||q.Theme.blue}; 12062 display: flex; 12063 align-items: center; 12064 justify-content: center; 12065 } 12066 .selection-icon-wrapper i { 12067 color: #FFF; 12068 font-size: 12px; 12069 margin: 0; 12070 } 12071`,Kke=N.div` 12072 font-size: 12px; 12073 color: #7d7d7d; 12074 font-style: italic; 12075 text-align: left; 12076 width: 100%; 12077`,qke=N.div` 12078 width: 100%; 12079 margin-top: 2px; 12080 overflow: hidden; 12081 text-overflow: ellipsis; 12082 white-space: nowrap; 12083 .text { 12084 border-bottom: 0; 12085 display: block; 12086 overflow: hidden; 12087 text-overflow: ellipsis; 12088 } 12089`,Jke=M(j(CQ=(wQ=class extends V.Component{constructor(...e){super(...e),DQ(this,`language`,TQ,this),DQ(this,`sourceEditWord`,EQ,this),this.onClick=e=>{if(this.props.onSelectWord){e?.preventDefault&&e.preventDefault(),this.props.onSelectWord(this.props.word);return}this.props.setWord(this.props.word)},this.sourceLineKey=e=>{if(!e?.source)return null;let t=e.source.languageId||`unknown`,n=e.source.textForUser?e.source.textForUser(this.props.user):e.source.text,r=e.source.displayGender&&this.props.word?.genderAbbreviation||``;return`${t}:${n||``}${r}`},this.dedupeSourcesForDisplay=e=>{let t=new Set;return(e||[]).filter(e=>{let n=this.sourceLineKey(e);return!n||t.has(n)?!1:(t.add(n),!0)})},this.isEnglishLanguageId=e=>!!(e&&e.startsWith(`EN`)),this.nativeMeaningFallbackSources=()=>{if(!(this.props.user?.showMeanings&&this.props.user?.showVocabMeanings!==!1))return[];let e=this.props.user?.languageId,t=this.props.word?.meanings||[],n=t.length===1?2:1,r=[];return t.forEach(t=>{let i=t.translationSourcesForUser?t.translationSourcesForUser(this.props.user):t.translationSources||[],a=0;i.forEach(t=>{a>=n||!t?.source||t.source.languageId===e&&(r.push(t),a+=1)})}),this.dedupeSourcesForDisplay(r)},this.englishMeaningFallbackSources=()=>{if(!(this.props.user?.showMeanings&&this.props.user?.showVocabMeanings!==!1))return[];let e=this.props.word?.meanings||[],t=[];return e.forEach(e=>{let n=e.translationSourcesForUser?e.translationSourcesForUser(this.props.user):e.translationSources||[],r=0;n.forEach(e=>{r>=1||!e?.source||this.isEnglishLanguageId(e.source.languageId)&&(t.push(e),r+=1)})}),this.dedupeSourcesForDisplay(t)},this.mobileNativeMeaningFallbackSources=()=>{if(!(this.props.user?.showMeanings&&this.props.user?.showVocabMeanings!==!1))return[];let e=(0,W.withoutDigits)(this.props.user?.languageId),t=this.props.word?.meanings||[],n=t.length===1?2:1,r=[];return t.forEach(t=>{let i=t.translationSourcesForUser?t.translationSourcesForUser(this.props.user):t.translationSources||[],a=0;i.forEach(t=>{a>=n||!t?.source||(0,W.withoutDigits)(t.source.languageId)===e&&(r.push(t),a+=1)})}),this.dedupeSourcesForDisplay(r)},this.sourceTextForDisplay=e=>{if(!e?.source)return null;let t=e.source.textForUser?e.source.textForUser(this.props.user):e.source.text;return t?e.source.displayGender&&this.props.word?.genderAbbreviation?`${t}${this.props.word.genderAbbreviation}`:t:null},this.renderHighlightedText=e=>yQ(e||``,this.searchHighlightTerms).map((e,t)=>e.highlighted?(0,K.jsx)(`strong`,{children:e.text},`${e.text}-${t}`):(0,K.jsx)(V.Fragment,{children:e.text},`${e.text}-${t}`))}get visibleSourcesForUser(){return!this.props.word||!this.props.user?[]:this.props.word.visibleVocabSourcesForUser?this.props.word.visibleVocabSourcesForUser(this.props.user):this.props.word.vocabSourceForUser&&this.props.word.vocabSourceForUser(this.props.user)||[]}get displayedSourcesForUser(){let e=this.dedupeSourcesForDisplay(this.visibleSourcesForUser);if(!this.props.user?.languageId||this.isEnglishLanguageId(this.props.user.languageId)||this.props.user.onlyShowNativeLanguage)return e;let t=e,n=t.some(e=>!this.isEnglishLanguageId(e.source?.languageId)),r=t.some(e=>this.isEnglishLanguageId(e.source?.languageId));if(!n){let e=this.nativeMeaningFallbackSources();e.length&&(t=this.props.user.showNativeLanguageFirst===!1?this.dedupeSourcesForDisplay(t.concat(e)):this.dedupeSourcesForDisplay(e.concat(t)))}if(!r){let e=this.englishMeaningFallbackSources();e.length&&(t=this.props.user.showNativeLanguageFirst===!1?this.dedupeSourcesForDisplay(e.concat(t)):this.dedupeSourcesForDisplay(t.concat(e)))}return t}get mobileDisplayedSourcesForUser(){let e=(0,W.withoutDigits)(this.props.user?.languageId),t=this.dedupeSourcesForDisplay(this.visibleSourcesForUser).filter(t=>(0,W.withoutDigits)(t.source?.languageId)===e);return t.length>0?t:this.mobileNativeMeaningFallbackSources()}get mobileSourceList(){return this.mobileDisplayedSourcesForUser.map(e=>this.sourceTextForDisplay(e)).filter(e=>!!e).slice(0,3).join(`, `)}get selectedCardTypeIsCompatible(){if(this.props.selectedCardTypeId===void 0||(0,W.isBlank)(U.VocabUI.selectedWords))return!0;switch(q.Constants.REVIEW_CARD_TYPES.find(e=>e.id===this.props.selectedCardTypeId).slug){case`conjugation`:return this.props.word.isVerb&&!this.props.word.hideFromConjugationTrainer;case`gender`:return this.props.word.isNoun&&!this.props.word.hideFromGenderTrainer;case`plural`:return this.props.word.isNoun&&!this.props.word.hideFromPluralTrainer&&!this.props.word.noPlural&&this.props.word.languageId===`DE`;default:return!0}}get searchHighlightTerms(){return zke(this.props.searchQuery,this.props.searchHighlights,[this.props.childTargetExactMatchText])}render(){let e=!!this.props.onSelectWord;return(0,K.jsx)(Uke,{children:(0,K.jsxs)(Gke,{children:[!this.props.grammarSection&&(0,K.jsxs)(kQ,{width:`40px`,"data-tip":!0,"data-for":`incompatible-${this.props.word.id}
12089`,iconBackground:this.props.word.reviewing?q.Theme.green:q.Theme.blue,children:[e&&(0,K.jsx)(`div`,{className:`selection-icon-wrapper`,onClick:this.onClick,children:(0,K.jsx)(`i`,{className:`fa ${this.props.word.reviewing?`fa-check`:`fa-plus`}`})}),!e&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jn,{onClick:()=>this.selectedCardTypeIsCompatible||this.props.selectedWordIds.includes(this.props.word.id)?this.props.onToggleAddWordToDeck(this.props.word,{}):null,value:this.props.selectedWordIds.includes(this.props.word.id),showLock:!this.props.allowSelection||!this.selectedCardTypeIsCompatible}),!this.props.allowSelection&&(0,K.jsxs)(he,{place:`right`,type:`dark`,effect:`solid`,id:`incompatible-${this.props.word.id}`,class:`custom-tooltip`,children:[(0,K.jsx)(`div`,{children:`Become a Pro Member to create`}),(0,K.jsx)(`div`,{children:`multiple reviews at a time.`})]}),this.props.allowSelection&&!this.selectedCardTypeIsCompatible&&(0,K.jsxs)(he,{place:`right`,type:`dark`,effect:`solid`,id:`incompatible-${this.props.word.id}`,class:`custom-tooltip`,children:[(0,K.jsx)(`div`,{children:`This word is not compatible`}),(0,K.jsx)(`div`,{children:`with ${q.Constants.REVIEW_CARD_TYPES.find(e=>e.id===this.props.selectedCardTypeId).name} cards.`})]})]})]}),!this.props.grammarSection&&!this.props.isMobile&&U.AppUI.layout.leftColumnWidth>700&&(0,K.jsx)(kQ,{width:`60px`,children:(0,K.jsxs)(R,{fontSize:`13px`,children:[!this.props.word.frequencyRanking&&`-`,this.props.word.frequencyRanking&&(0,K.jsx)(nz,{word:this.props.word})]})}),(0,K.jsx)(kQ,{expand:!this.props.showSource,width:this.props.showSource?`200px`:null,children:(0,K.jsxs)(Wke,{clickable:this.props.word.publicInVocab,children:[this.props.word&&this.props.word.publicInVocab&&(0,K.jsx)(F,{onClick:this.onClick,state:{dictionaryNavigation:this.props.dictionaryNavigation},to:{name:`vocab.word`,params:{wordId:this.props.word.id},query:{from:`vocab-list`}},children:(0,K.jsx)(R,{fontSize:this.props.isMobile?`14px`:`16px`,children:this.language===`de`?this.renderHighlightedText(this.props.word.targetTextWithDefiniteArticle):this.renderHighlightedText(this.props.word.vocabSourceList)})}),this.props.word&&!this.props.word.publicInVocab&&(0,K.jsx)(R,{fontSize:this.props.isMobile?`14px`:`16px`,children:this.language===`de`?this.renderHighlightedText(this.props.word.targetTextWithDefiniteArticle):this.renderHighlightedText(this.props.word.vocabSourceList)}),this.props.isMobile&&this.mobileSourceList&&(0,K.jsx)(qke,{children:(0,K.jsx)(R,{fontSize:`12px`,lineHeight:`16px`,children:this.renderHighlightedText(this.mobileSourceList)})})]})}),this.props.showSource&&(0,K.jsxs)(kQ,{expand:!0,children:[!this.props.expandTranslation&&this.props.word&&this.props.word.vocabSourceForUser&&(0,K.jsxs)(Kke,{children:[this.displayedSourcesForUser.length,` translations`]}),this.props.expandTranslation&&this.props.word&&this.props.word.vocabSourceForUser&&(0,K.jsx)(Hke,{onClick:()=>this.sourceEditWord=!0,sources:this.displayedSourcesForUser,genderAbbreviation:this.props.word.genderAbbreviation,user:this.props.user,word:this.props.word,highlightTerms:this.searchHighlightTerms})]}),(0,K.jsx)(kQ,{width:`70px`,center:!0,children:(0,K.jsx)(YR,{word:this.props.word})}),(0,K.jsx)(kQ,{width:`65px`,center:!0,children:(0,K.jsx)(J.LearnedIcon,{width:`28px`,selected:this.props.word.learned,onClick:()=>this.props.onToggleLearned(this.props.word)})})]})})}},TQ=OQ(wQ.prototype,`language`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`de`}}),EQ=OQ(wQ.prototype,`sourceEditWord`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),OQ(wQ.prototype,`visibleSourcesForUser`,[E],Object.getOwnPropertyDescriptor(wQ.prototype,`visibleSourcesForUser`),wQ.prototype),OQ(wQ.prototype,`displayedSourcesForUser`,[E],Object.getOwnPropertyDescriptor(wQ.prototype,`displayedSourcesForUser`),wQ.prototype),OQ(wQ.prototype,`mobileDisplayedSourcesForUser`,[E],Object.getOwnPropertyDescriptor(wQ.prototype,`mobileDisplayedSourcesForUser`),wQ.prototype),OQ(wQ.prototype,`mobileSourceList`,[E],Object.getOwnPropertyDescriptor(wQ.prototype,`mobileSourceList`),wQ.prototype),OQ(wQ.prototype,`selectedCardTypeIsCompatible`,[E],Object.getOwnPropertyDescriptor(wQ.prototype,`selectedCardTypeIsCompatible`),wQ.prototype),OQ(wQ.prototype,`searchHighlightTerms`,[E],Object.getOwnPropertyDescriptor(wQ.prototype,`searchHighlightTerms`),wQ.prototype),wQ))||CQ),AQ={French:`https://dt8fj7um6g334.cloudfront.net/external_media/RackMultipart20260902-70-tgrhht.png`,German:`https://dt8fj7um6g334.cloudfront.net/external_media/RackMultipart20260902-108-tgrhht.png`,Spanish:`https://dt8fj7um6g334.cloudfront.net/external_media/RackMultipart20260902-108-zp2r5c.png`},Yke=N.div` 12090 display: flex; 12091 flex-direction: column; 12092 height: 100%; 12093 padding-top: 32px; 12094 padding-right: 10px; 12095 12096 p { 12097 margin: 0 0 16px; 12098 } 12099`,jQ=({isPodcastEpisode:e,languageName:t,opened:n,onClose:r})=>
12099(0,K.jsx)(At,{opened:n,onClose:r,padding:32,radius:`xl`,size:`lg`,title:(0,K.jsx)(`div`,{style:{width:220},children:(0,K.jsx)(l_,{})}),styles:{close:{background:`transparent`,color:`#FFF`,marginLeft:`auto`,order:1,"&:hover":{background:`rgba(255, 255, 255, 0.15)`}},header:{alignItems:`flex-start`,background:q.Theme.blue,flexWrap:`wrap`},title:{marginTop:8,order:2,width:`100%`}},children:(0,K.jsxs)(lc,{children:[(0,K.jsx)(lc.Col,{span:{base:12,sm:8},children:(0,K.jsxs)(Yke,{children:[(0,K.jsxs)(`p`,{children:[`To review words from this`,` `,e?`podcast episode`:`video`,`, you can use our partner app`,` `,(0,K.jsx)(`strong`,{children:`Seedlang`}),` for free!`]}),(0,K.jsxs)(`p`,{children:[`Flashcards on Seedlang have `,(0,K.jsx)(`strong`,{children:`videos with native speakers`}),` `,`and detailed grammar information.`]}),(0,K.jsxs)(`p`,{children:[`You can use your `,(0,K.jsxs)(`strong`,{children:[`Easy `,t,` login`]}),` to practice`,` `,t,` in the Seedlang App or in your browser at`,` `,(0,K.jsx)(`a`,{href:`https://seedlang.com`,rel:`noopener noreferrer`,style:{color:q.Theme.darkBlue,textDecoration:`underline`},target:`_blank`,children:`seedlang.com`}),`.`]}),(0,K.jsx)(I,{background:q.Theme.blue,onClick:r,style:{alignSelf:`flex-start`,marginTop:`auto`},children:`Got it`})]})}),(0,K.jsx)(lc.Col,{span:4,visibleFrom:`sm`,children:(0,K.jsx)(bn,{alt:`Screenshot from the Seedlang App`,radius:`lg`,src:AQ[t]||AQ.German,style:{marginTop:-29,position:`relative`,zIndex:1001}})})]})}),Xke=N.button` 12100 border: none; 12101 appearance: none; 12102 width: 20px; 12103 height: 20px; 12104 border-radius: 100%; 12105 cursor: pointer; 12106 ${(0,X.flexCenter)()} 12107 background: #A9A9A9; 12108 color: #FFF; 12109 font-weight: bold; 12110 font-size: 12px; 12111`,Zke=N.div` 12112 display: inline-flex; 12113 flex-shrink: 0; 12114 position: ${e=>e.corner?`static`:`relative`}; 12115`,Qke=N.div` 12116 position: absolute; 12117 left: ${e=>e.corner?`auto`:`calc(100% + 10px)`}; 12118 right: ${e=>e.corner?`10px`:`auto`}; 12119 top: ${e=>e.corner?`10px`:`50%`}; 12120 transform: ${e=>e.corner?`none`:`translateY(-50%)`}; 12121`,$ke=({children:e,helpInCorner:t,isPodcastEpisode:n,languageName:r,showHelpModal:i,onCloseHelp:a,onOpenHelp:o})=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jQ,{isPodcastEpisode:n,languageName:r,opened:i,onClose:a}),(0,K.jsxs)(Zke,{corner:t,children:[e,(0,K.jsx)(Qke,{corner:t,children:(0,K.jsx)(Xke,{onClick:o,title:`Help`,children:`?`})})]})]}),MQ=j(({autoOpenUiElement:e,isPodcastEpisode:t,children:n,helpInCorner:r})=>{let[i,a]=(0,V.useState)(!1),o=U.AppUI.userIsLoaded;return(0,V.useEffect)(()=>{e&&o&&!U.AppUI.wasUiElementSeen(e)&&(a(!0),U.AppUI.designateUiElementAsSeen(e))},[e,o]),(0,K.jsx)($ke,{helpInCorner:r,isPodcastEpisode:t,languageName:U.AppUI.site.language?.name,showHelpModal:i,onCloseHelp:()=>a(!1),onOpenHelp:()=>a(!0),children:n})}),NQ,PQ,eAe=N.div` 12122`,FQ=N.div` 12123 width: 100%; 12124 align-items: center; 12125 justify-content: center; 12126 display: flex; 12127 flex-direction: column; 12128 padding: ${e=>e.shaded?`20px`:`10px 0 0`}; 12129 box-sizing: border-box; 12130 background: ${e=>e.shaded?q.Theme.lightGray:`transparent`}; 12131 margin-bottom: 10px; 12132 position: relative; 12133 border-radius: ${e=>e.shaded?`12px`:`0`}; 12134 input { 12135 height: 30px!important; 12136 width: calc(100% - 40px)!important; 12137 margin-left: 20px; 12138 } 12139 position: relative; 12140`,tAe=N.div` 12141 display: flex; 12142 width: 100%; 12143 justify-content: center; 12144 flex-direction: row; 12145 align-items: flex-end; 12146 flex-wrap: wrap; 12147 gap: 16px 20px; 12148`,IQ=N.div` 12149 max-width: 100%; 12150 min-width: 0; 12151 select { 12152 max-width: 100%; 12153 } 12154`,nAe=N.div` 12155 width: 100%; 12156 min-height: 45px; 12157 display: flex; 12158 align-items: center; 12159 justify-content: center; 12160`;N.div` 12161 position: absolute; 12162 inset: 0; 12163 width: fit-content; 12164 height: fit-content; 12165 z-index: 2; 12166 display: flex; 12167 align-items: center; 12168 justify-content: center; 12169 gap: 5px; 12170`,N.div` 12171 background: #1DB5D7; 12172 border-radius: 0 0 12px 0; 12173 padding: 10px; 12174`;var LQ=M(j(NQ=(PQ=class extends V.Component{render(){let e=(0,K.jsxs)(I,{margin:U.AppUI.siteIsDefault?`4px 0 10px`:`0`,onClick:this.props.onCreateReviews,disabled:this.props.deckButtonDisabled,background:q.Theme.blue,children:[this.props.buttonText===`Add to Seedlang`?(0,K.jsx)(J.SeedlangIconWithCircle,{width:`20px`,style:{marginRight:`8px`}}):(0,K.jsx)(`i`,{className:`fa fa-plus`}),this.props.buttonText]});return(0,K.jsxs)(eAe,{children:[this.props.showReviewsCreatedMessage&&(0,K.jsx)(B,{textAlign:`center`,width:`100%`,state:`success`,children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.props.confirmationMessage}})}),(0,W.isPresent)(this.props.selectedWordIds)&&(0,W.isBlank)(this.props.reviewDeckOptions)&&(0,K.jsxs)(FQ,{shaded:!U.AppUI.siteIsDefault,children:[!U.AppUI.siteIsDefault&&(0,K.jsx)(MQ,{helpInCorner:!0,isPodcastEpisode:this.props.isPodcastEpisode}),(0,K.jsx)(R,{fontSize:`12px`,bold:!0,margin:`10px 0 0 0`,color:`#333`,children:`Review Deck`}),(0,K.jsx)(Qi,{allowUpdate:!0,show:!0,placeholder:`Review Deck Name`,defaultValue:U.VocabUI.newReviewDeckName,onChange:e=>U.VocabUI.onSetNewReviewDeckName(e)}),(0,K.jsxs)(I,{margin:`10px 0 10px 0`,onClick:()=>U.VocabUI.onCreateNewReviewDeck(()=>U.AppUI.loadReviewDecks()),disabled:(0,W.isBlank)(U.VocabUI.newReviewDeckName),children:[(0,K.jsx)(`i`,{className:`fa fa-plus`}),`Create Review Deck`]})]}),(0,W.isPresent)(this.props.selectedWordIds)&&(0,W.isPresent)(this.props.reviewDeckOptions)&&(0,K.jsxs)(FQ,{shaded:!U.AppUI.siteIsDefault,children:[(0,K.jsxs)(tAe,{children:[(0,K.jsxs)(IQ,{children:[(0,K.jsx)(R,{center:!0,fontSize:`12px`,bold:!0,margin:`0 0 5px`,color:`#333`,children:`Review Deck`}),(0,K.jsx)(Fi,{allowUpdate:!0,height:`45px`,options:this.props.reviewDeckOptions,value:this.props.deckId||U.AppUI.defaultReviewDeckId,onChange:e=>this.props.onSetDeckId(e)})]}),(0,K.jsxs)(IQ,{children:[(0,K.jsx)(R,{center:!0,fontSize:`12px`,bold:!0,margin:`0 0 5px`,color:`#333`,children:`Card Type`}),(0,K.jsx)(Fi,{allowUpdate:!0,height:`45px`,options:this.props.cardTypeOptions,value:this.props.cardTypeId,onChange:e=>this.props.onSetCardTypeId(e)})]}),(0,K.jsx)(nAe,{children:U.AppUI.siteIsDefault?e:(0,K.jsx)(MQ,{isPodcastEpisode:this.props.isPodcastEpisode,children:e})})]}),this.props.selectedWordsExcludedFromGenderTrainer&&this.props.cardTypeId===q.Constants.REVIEW_CARD_TYPES.find(e=>
12174e.slug===`gender`)?.id&&(0,K.jsxs)(B,{textAlign:`center`,width:`100%`,children:[`Some nouns cannot be added as gender cards (`,(0,K.jsx)(`i`,{children:this.props.selectedWordsExcludedFromGenderTrainer.join(`, `)}),`).`]}),this.props.selectedWordsExcludedFromPluralTrainer&&this.props.cardTypeId===q.Constants.REVIEW_CARD_TYPES.find(e=>e.slug===`plural`)?.id&&(0,K.jsxs)(B,{textAlign:`center`,width:`100%`,children:[`Some nouns cannot be added as gender cards (`,(0,K.jsx)(`i`,{children:this.props.selectedWordsExcludedFromPluralTrainer.join(`, `)}),`).`]}),this.props.selectedWordsExcludedFromConjugationTrainer&&this.props.cardTypeId===q.Constants.REVIEW_CARD_TYPES.find(e=>e.slug===`conjugation`)?.id&&(0,K.jsxs)(B,{textAlign:`center`,width:`100%`,children:[`Some verbs cannot be added as conjugation cards at the moment (`,(0,K.jsx)(`i`,{children:this.props.selectedWordsExcludedFromConjugationTrainer.join(`, `)}),`).`]})]})]})}},PQ.defaultProps={buttonText:`Add to Reviews`,confirmationMessage:`Your reviews were successfully created.`},PQ))||NQ);D();var RQ,zQ;function BQ(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var rAe=N.div` 12175 padding: ${e=>e.removePadding?0:`0 10px 10px`}; 12176 background: white; 12177 box-sizing: border-box; 12178`,iAe=N.div` 12179 background: #636363; 12180 margin-bottom: 10px; 12181 display: flex; 12182 align-items: center; 12183 height: 30px; 12184`,VQ=N.div` 12185 display: flex; 12186 align-items: center; 12187 width: ${e=>e.width}; 12188 flex: ${e=>e.expand?1:null}; 12189 padding: 0 10px; 12190 border-right: 1px solid white; 12191 height: 30px; 12192 cursor: ${e=>e.clickable?`pointer`:`default`}; 12193 color: #FFF; 12194 i { 12195 color: #FFF; 12196 text-decoration: none; 12197 margin-right: 4px; 12198 } 12199 .fa-check { 12200 margin-right: 0; 12201 } 12202`,aAe=N.span` 12203 cursor: pointer; 12204 text-decoration: underline; 12205 hover { 12206 text-decoration: none; 12207 } 12208`,oAe=N.div` 12209 height: ${e=>e.height}; 12210 overflow-y: ${e=>e.isMobile?`auto`:`scroll`}; 12211 padding-top: 2px; 12212`,sAe=N.button` 12213 background: transparent; 12214 border: none; 12215 color: inherit; 12216 font: inherit; 12217 font-weight: 700; 12218 text-decoration: underline; 12219 cursor: pointer; 12220 padding: 0; 12221 margin: 0; 12222`,HQ=M(j(RQ=(zQ=class extends V.Component{constructor(...e){super(...e),this.onUseSearchSuggestion=()=>{if((0,W.isBlank)(this.searchSuggestion))return;let e=this.props.onUpdateSearchQuery||this.props.onUpdateWordSearchQuery;typeof e==`function`&&e(this.searchSuggestion,this.searchSuggestion.length)}}get dictionaryNavigation(){return U.DictionaryNavigation.fromStore(this.props.wordStore,this.props.grammarSection?{}:{vocab_list:!0})}componentDidMount(){U.AppUI.createEvent(`vocab - view dictionary`)}get mobileHeight(){return(0,W.isPresent)(this.props.searchQuery)?U.AppUI.layout.mobileContentHeight-220:U.AppUI.layout.mobileContentHeight-275}get searchHighlightsById(){return this.props.wordStore?.metaData?.searchHighlightsById||{}}get childTargetExactMatchById(){return(this.props.wordStore?.metaData?.childTargetExactMatches||[]).reduce((e,t)=>(t?.id&&(e[t.id]=t.text),e),{})}get searchSuggestion(){return(this.props.wordStore?.metaData?.suggestions||[]).find(e=>(0,W.isPresent)(e))}get showPaginationSpinner(){return!this.props.showWordListSpinner&&this.props.wordStore?.requestCounter>0&&!this.props.wordStore?.hasIndexData}get showListSpinner(){return this.props.showWordListSpinner||this.showPaginationSpinner}get showNoResultsBanner(){return this.props.showNoResultsMessage&&!this.showPaginationSpinner}render(){let e=this.props.showHeaders===void 0?!0:this.props.showHeaders;return(0,K.jsxs)(rAe,{removePadding:this.props.removeMobileEdgePadding&&U.AppUI.layout.isMobile,children:[(0,W.isPresent)(this.props.reviewDeckOptions)&&(0,K.jsx)(LQ,{reviewDeckOptions:this.props.reviewDeckOptions,deckId:this.props.deckId,onSetDeckId:this.props.onSetDeckId,cardTypeOptions:this.props.cardTypeOptions,cardTypeId:this.props.cardTypeId,onSetCardTypeId:this.props.onSetCardTypeId,onCreateReviews:this.props.onCreateReviews,deckButtonDisabled:this.props.deckButtonDisabled,selectedWordsExcludedFromGenderTrainer:this.props.selectedWordsExcludedFromGenderTrainer,selectedWordsExcludedFromPluralTrainer:this.props.selectedWordsExcludedFromPluralTrainer,selectedWordsExcludedFromConjugationTrainer:this.props.selectedWordsExcludedFromConjugationTrainer,showReviewsCreatedMessage:this.props.createReviewsFinished||this.props.createReviewsIsSlow,selectedWordIds:this.props.selectedWordIds}),this.props.totalCount===0&&(0,K.jsx)(B,{children:`There are no matching results for this search.`}),e&&!this.showNoResultsBanner&&(0,K.jsxs)(iAe,{children:[!this.props.grammarSection&&(0,K.jsx)(VQ,{width:`40px`,children:this.props.showColumnCheckbox&&(0,K.jsx)(jn,{background:`#d0d0d0`,selectedBackgroun
12222d:`#232323`,onClick:this.props.onToggleAddAllToDeck,value:this.props.allToggleSelected})}),!this.props.grammarSection&&!U.AppUI.layout.isMobile&&U.AppUI.layout.leftColumnWidth>700&&(0,K.jsxs)(VQ,{clickable:(0,W.isBlank)(this.props.searchQuery),width:`60px`,onClick:()=>(0,W.isPresent)(this.props.searchQuery)?G.noop:this.props.onClickSort(`frequency_ranking`),children:[(!this.props.sort||this.props.sort===`frequency_ranking`)&&(0,W.isBlank)(this.props.searchQuery)&&(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-caret-down":!this.props.sortDirection||this.props.sortDirection===`asc`,"fa-caret-up":this.props.sortDirection===`desc`})}),(0,K.jsx)(R,{color:`white`,fontSize:`10px`,lineHeight:`11px`,textDecoration:(0,W.isBlank)(this.props.searchQuery)?`underline`:``,bold:!0,children:`Freq`})]}),(0,K.jsxs)(VQ,{clickable:!U.AppUI.layout.isMobile&&!this.props.grammarSection&&(0,W.isBlank)(this.props.searchQuery),expand:!this.props.showSource,width:this.props.showSource?`200px`:null,onClick:()=>U.AppUI.layout.isMobile||this.props.grammarSection||(0,W.isPresent)(this.props.searchQuery)?G.noop:this.props.onClickSort(`target_text`),children:[!U.AppUI.layout.isMobile&&!this.props.grammarSection&&this.props.sort===`target_text`&&(0,W.isBlank)(this.props.searchQuery)&&(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-caret-down":!this.props.sortDirection||this.props.sortDirection===`asc`,"fa-caret-up":this.props.sortDirection===`desc`})}),(0,K.jsx)(R,{color:`white`,fontSize:`10px`,lineHeight:`11px`,textDecoration:U.AppUI.layout.isMobile||(0,W.isPresent)(this.props.searchQuery)?null:`underline`,bold:!0,children:`Word`})]}),this.props.showSource&&(0,K.jsx)(VQ,{expand:!0,children:(0,K.jsxs)(R,{color:`white`,fontSize:`10px`,lineHeight:`11px`,bold:!0,children:[(0,K.jsx)(`span`,{children:`Translation `}),(0,K.jsx)(`span`,{children:`(`}),(0,K.jsx)(aAe,{onClick:this.props.onToggleExpandTranslation,children:this.props.expandTranslation?`hide`:`show`}),(0,K.jsx)(`span`,{children:`)`})]})}),(0,K.jsx)(VQ,{width:`70`,children:(0,K.jsx)(R,{color:`white`,fontSize:`10px`,lineHeight:`11px`,bold:!0,children:`Progress`})}),(0,K.jsx)(VQ,{width:`65px`,children:(0,K.jsx)(R,{color:`white`,fontSize:`10px`,lineHeight:`11px`,bold:!0,children:`Learned`})})]}),(0,K.jsxs)(oAe,{height:U.AppUI.layout.isMobile?(0,W.pixify)(this.mobileHeight):null,isMobile:U.AppUI.layout.isMobile,children:[this.showListSpinner&&(0,K.jsx)(P,{blue:!0}),!this.showListSpinner&&this.props.wordStore.indexData.map(e=>(0,K.jsx)(Jke,{dictionaryNavigation:this.dictionaryNavigation,setWord:this.props.setWord,onSelectWord:this.props.onSelectWord,showExpanded:(0,W.isPresent)(this.props.searchQuery)&&!this.props.isMobile,word:e,user:U.AppUI.user,wordType:this.props.wordType,selectedWordIds:this.props.selectedWordIds,isPro:this.props.user.isMember,onToggleAddWordToDeck:this.props.onToggleAddWordToDeck,onToggleLearned:this.props.onToggleLearned,isMobile:this.props.isMobile,allowSelection:U.AppUI.user.isMember,showSource:this.props.showSource,afterSubmitSourceInput:this.props.afterSubmitSourceInput,expandTranslation:this.props.expandTranslation,selectedCardTypeId:this.props.cardTypeId,grammarSection:this.props.grammarSection,searchQuery:this.props.searchQuery,searchHighlights:this.searchHighlightsById[e.id],childTargetExactMatchText:this.childTargetExactMatchById[e.id]},e.id)),!this.showListSpinner&&this.props.wordStore.hasIndexData&&this.props.wordStore.pagesCount>1&&(0,K.jsx)(In,{store:this.props.wordStore,totalCount:this.props.wordStore.totalCount,filters:this.props.filters,ids:this.props.ids,queryStrings:this.props.grammarSection?{}:{vocab_list:!0},clearOnPagination:!0,onPagination:()=>U.VocabUI.allToggleSelected=!1,updateUrl:!this.props.grammarSection&&(0,W.isBlank)(this.props.searchQuery),onClickScrollToTop:!0}),this.showNoResultsBanner&&(0,K.jsxs)(B,{textAlign:`center`,width:`100%`,children:[(0,K.jsx)(`span`,{children:`There are no results to display.`}),(0,W.isPresent)(this.searchSuggestion)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{children:` Did you mean: `}),(0,K.jsx)(sAe,{type:`button`,onClick:this.onUseSearchSuggestion,children:this.searchSuggestion}),(0,K.jsx)(`span`,{children:`?`})]})]})]})]})}},BQ(zQ.prototype,`dictionaryNavigation`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`dictionaryNavigation`),zQ.prototype),BQ(zQ.prototype,`mobileHeight`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`mobileHeight`),zQ.prototype),BQ(zQ.prototype,`searchHighlightsById`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`searchHighlightsById`),zQ.prototype),BQ(zQ.prototype,`childTargetExactMatchById`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`childTargetExactMatchById`),zQ.prototype),BQ(zQ.prototype,`searchSuggestion`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`searchSuggestion`),zQ.prototype),BQ(zQ.prototype,`showPaginationSpinner`,[
12222E],Object.getOwnPropertyDescriptor(zQ.prototype,`showPaginationSpinner`),zQ.prototype),BQ(zQ.prototype,`showListSpinner`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`showListSpinner`),zQ.prototype),BQ(zQ.prototype,`showNoResultsBanner`,[E],Object.getOwnPropertyDescriptor(zQ.prototype,`showNoResultsBanner`),zQ.prototype),zQ))||RQ),UQ,cAe=N.div` 12223`,WQ=N.div` 12224 margin: ${e=>e.margin||`0 0 20px 0`}; 12225`,lAe=N.div` 12226 display: flex; 12227 align-items: center; 12228`,uAe=N.div` 12229 margin-top: 10px; 12230`,dAe=N.button` 12231 border: none; 12232 background: transparent; 12233 cursor: pointer; 12234 margin: 0 0 10px 0; 12235 padding: 0; 12236 display: inline-flex; 12237 align-items: center; 12238 justify-content: center; 12239 .left-arrow-icon { 12240 cursor: pointer; 12241 height: 16px; 12242 } 12243 .left-arrow-icon svg { 12244 opacity: 0.8; 12245 fill: #333; 12246 height: 16px; 12247 } 12248`,fAe=N.div` 12249 margin: 0 0 8px 0; 12250 border-radius: 5px; 12251 padding: 10px; 12252 background: #f1f1f1; 12253`,pAe=N.div` 12254 font-size: 13px; 12255 font-weight: bold; 12256 margin-bottom: 10px; 12257`,mAe=N.div` 12258 margin: 6px 0 12px 0; 12259 padding-bottom: 12px; 12260 border-bottom: 1px solid #dcdcdc; 12261 &:last-child { 12262 margin-bottom: 0; 12263 padding-bottom: 0; 12264 border-bottom: none; 12265 } 12266`,hAe=j(UQ=class extends V.Component{constructor(...e){super(...e),this.state={expandedReviewCardIds:[]},this.reviewCardIsExpanded=e=>this.state.expandedReviewCardIds.includes(e),this.onToggleReviewCardExpanded=e=>{this.reviewCardIsExpanded(e)?this.setState({expandedReviewCardIds:this.state.expandedReviewCardIds.filter(t=>t!==e)}):this.setState({expandedReviewCardIds:[...this.state.expandedReviewCardIds,e]})}}render(){let e=(0,W.isPresent)(this.props.wordSearchValue)&&`${this.props.wordSearchValue}`.trim().length>0,t=!this.props.word&&e,n=(this.props.reviewCardsForWord?.length||0)>1?`You already have reviews for this word.`:`You already have a review for this word.`;return(0,K.jsxs)(cAe,{children:[(0,K.jsxs)(WQ,{children:[!this.props.word&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(lAe,{children:(0,K.jsx)(qZ,{placeholder:`Search for a word`,onChange:this.props.onUpdateWordSearchQuery,insertText:this.props.onInsertWordSearchText,focusOnId:this.props.wordSearchValue,value:this.props.wordSearchValue,background:`#FFF`})}),t&&(0,K.jsx)(uAe,{children:(0,K.jsx)(HQ,{wordStore:U.AppUI.wordSearchStore,showWordListSpinner:U.AppUI.wordSearchStore.showLoadingIcon,showHeaders:!U.AppUI.wordSearchStore.showLoadingIcon&&U.AppUI.wordSearchStore.indexData.length>0,searchQuery:this.props.wordSearchValue,onUpdateWordSearchQuery:this.props.onUpdateWordSearchQuery,setWord:this.props.onSetWord,user:U.AppUI.user,selectedWordIds:null,onToggleAddWordToDeck:()=>null,onToggleLearned:()=>null,isMobile:!1,allowSelection:!!U.AppUI.user?.isMember,showSource:!0,afterSubmitSourceInput:()=>null,expandTranslation:!0,selectedCardTypeId:null,cardTypeId:null,grammarSection:!1,showColumnCheckbox:!1,onToggleAddAllToDeck:()=>null,allToggleSelected:!1,onClickSort:()=>null,onToggleExpandTranslation:()=>null,onSelectWord:this.props.onSetWord,reviewDeckOptions:null,showNoResultsMessage:!!((0,W.isPresent)(this.props.wordSearchValue)&&!U.AppUI.wordSearchStore.showLoadingIcon&&U.AppUI.wordSearchStore.initialRequestReceived&&U.AppUI.wordSearchStore.indexData.length===0)})})]}),this.props.word&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(dAe,{type:`button`,onClick:this.props.onBackToSearchResults,children:(0,K.jsx)(J.ArrowLeftIcon,{})}),!this.props.showReviewCardsForWordSpinner&&this.props.reviewCardsForWord?.length>0&&(0,K.jsxs)(fAe,{children:[(0,K.jsx)(pAe,{children:n}),this.props.reviewCardsForWord.map(e=>(0,K.jsx)(mAe,{children:(0,K.jsx)(nQ,{item:e,embedded:!0,contentMarginTop:`6px`,reviewDeckOptions:this.props.reviewDeckOptions,expanded:this.reviewCardIsExpanded(e.id),onToggleExpanded:()=>this.onToggleReviewCardExpanded(e.id),showCheckbox:!1,onManage:()=>this.props.onManageReviewCardForWord(e.id),onReset:()=>this.props.onResetReviewCardForWord(e.id),onDelete:()=>this.props.onDeleteReviewCardForWord(e.id)})},e.id))]}),(0,K.jsx)(UB,{word:this.props.word,showPlural:(0,W.isPresent)(this.props.word?.pluralNouns),rowMargin:`6px 0`,margin:`2px 0 0 0`,tablePadding:`2px 0 0 0`})]})]}),this.props.word&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(WQ,{children:(0,K.jsx)(fQ,{showReviewNoteInput:this.props.showReviewNoteInput,note:this.props.note,onSetNote:this.props.onSetNote,onShowReviewNoteInput:this.props.onShowReviewNoteInput})}),(0,K.jsxs)(WQ,{margin:`0 0 20px 0`,children:[(0,K.jsx)(sQ,{name:`review_dictionary_card_type`,label:`Card Type`}),this.props.cardTypeOptions.map(([e,t])=>(0,K.jsx)(`div`,{children:(0,K.jsx)(Zi,{value:this.props.cardTypeIds.includes(e),onChange:()=>this.props.onSetCardTypeId(e),children:t})},e))]}),(0,K.jsxs)(WQ,{margin:`0 0 20px 0`,children:[(0,K.jsx)(sQ,{name:`review_dictionary_deck`,label:`Review Deck`}),(0,K.jsx)(Fi,{allowUpdate:!0,includeBlank:!0,options:this.props.reviewDeckOptions,value:this.props.deckId,onChange:e=>this.props.onSetDeckId(e)})]})]})]})}})||UQ,gAe=N.div` 12267 margin: 16px 0 0 0; 12268`,_Ae=N.div` 12269 border: 1px solid #DDD; 12270 max-height: 320px; 12271 overflow: auto; 12272`,vAe=N.table` 12273 border-collapse: separate; 12274 border-spacing: 0; 12275 width: 100%; 12276 font-size: 13px; 12277 border: none !important; 12278`,yAe=N.th` 12279 background: #F3F4F6; 12280 border-bottom: 1px solid #DDD; 12281 border-right: 1px solid #DDD; 12282 color: #333; 12283 font-weight: bold; 12284 padding: 8px; 12285 position: sticky; 12286 text-align: left; 12287 top: 0; 12288 white-space: nowrap; 12289 z-index: 1; 12290`,bAe=N.td` 12291 border-bottom: 1px solid #EEE; 12292 border-right: 1px solid #EEE; 12293 background: ${e=>e.warning?`#FFF4E5`:`#FFF`}; 12294 color: ${e=>e.warning?`#9F2A2A`:`#333`}; 12295 padding: 8px; 12296 vertical-align: top; 12297`,xAe=N.div` 12298 color: #666; 12299 font-size: 14px; 12300 margin: 10px 0 0 0; 12301`,GQ={comma:`,`,semicolon:`;`,tab:` `},KQ=(e,t)=>{t.some(e=>`${e}`.trim().length>0)&&e.push(t)},SAe=(e,t)=>
12301{let n=GQ[t]||GQ.comma,r=[],i=[],a=``,o=!1;for(let t=0;t<e.length;t+=1){let s=e[t],c=e[t+1];s===`"`?o&&c===`"`?(a+=`"`,t+=1):o=!o:s===n&&!o?(i.push(a),a=``):(s===` 12302`||s===`\r`)&&!o?(s===`\r`&&c===` 12303`&&(t+=1),i.push(a),KQ(r,i),i=[],a=``):a+=s}return i.push(a),KQ(r,i),r},qQ=({fileText:e,separator:t,hasHeaderRow:n})=>{let r=SAe(e||``,t);return(n?r.slice(1):r).map((e,t)=>[t+1,e[0]||``,e[1]||``,e[2]||``])},JQ=(e,t)=>t===1?`${e[t]||``}`.length>q.Constants.REVIEW_CARD_MAX_FRONT_TEXT_LENGTH:t===2?`${e[t]||``}`.length>q.Constants.REVIEW_CARD_MAX_BACK_TEXT_LENGTH:t===3?`${e[t]||``}`.length>q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH:!1,CAe=e=>{let t=[e[2],e[3]].filter(e=>`${e||``}`.trim().length>0).join(` 12304 12305`);return JQ(e,1)||JQ(e,2)||JQ(e,3)||t.length>q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH},wAe=class extends V.Component{get rows(){return qQ({fileText:this.props.fileText,separator:this.props.separator,hasHeaderRow:this.props.hasHeaderRow})}get previewRows(){return this.rows}get headers(){return[``,`First Column`,`Second Column`,`Third Column`]}render(){return this.previewRows.length===0?(0,K.jsx)(xAe,{children:`No rows were found in this file.`}):(0,K.jsx)(gAe,{children:(0,K.jsx)(_Ae,{children:(0,K.jsxs)(vAe,{children:[(0,K.jsx)(`thead`,{children:(0,K.jsx)(`tr`,{children:this.headers.map((e,t)=>(0,K.jsx)(yAe,{children:e},`${e}-${t}`))})}),(0,K.jsx)(`tbody`,{children:this.previewRows.map((e,t)=>(0,K.jsx)(`tr`,{children:this.headers.map((n,r)=>(0,K.jsx)(bAe,{warning:JQ(e,r),children:e[r]},`${t}-${n}-${r}`))},t))})]})})})}},YQ,TAe=N.div` 12306`,XQ=N.div` 12307 margin: ${e=>e.margin||`0 0 20px 0`}; 12308`,ZQ=N.div` 12309 margin: 0 0 20px 0; 12310`,QQ=N.div` 12311 color: #333; 12312 font-size: 18px; 12313 font-weight: bold; 12314 margin: 0 0 18px 0; 12315`,EAe=N.div` 12316 background: #F3F4F6; 12317 border-radius: 10px; 12318 padding: 16px; 12319 margin: 0 0 20px 0; 12320`,DAe=N.div` 12321 font-size: 14px; 12322 line-height: 20px; 12323 color: #555; 12324`,$Q=N.div` 12325 font-size: 13px; 12326 line-height: 18px; 12327 margin: 8px 0 0 0; 12328 color: #666; 12329`,OAe=N.div` 12330 margin-top: 12px; 12331 text-align: center; 12332`,kAe=N(F)` 12333 display: inline-block; 12334`,e$=N(nq)` 12335 color: #333; 12336 display: block; 12337 margin-bottom: 6px; 12338 font-size: 14px !important; 12339 text-transform: none !important; 12340`,AAe=N.input` 12341 display: block; 12342 width: 100%; 12343 padding: 10px; 12344 font-size: 14px; 12345 border: 1px solid #CCC; 12346 border-radius: 3px; 12347 box-sizing: border-box; 12348 background: #FFF; 12349`,jAe=N.div` 12350 display: flex; 12351 align-items: center; 12352 flex-wrap: wrap; 12353 gap: 5px; 12354`,MAe=N.div` 12355 display: flex; 12356 align-items: center; 12357 color: #666; 12358 font-size: 13px; 12359 line-height: 18px; 12360 margin: 10px 0 0 10px; 12361 12362 a { 12363 color: ${q.Theme.blue}; 12364 font-weight: bold; 12365 } 12366`,NAe=j(YQ=class extends V.Component{constructor(...e){super(...e),this.reviewCreatedMessageRef=V.createRef(),this.state={previewFileText:null,previewErrorMessage:null},this.cardTypeOptions=[[`translation`,`Translation`],[`comprehension`,`Comprehension`]],this.separatorOptions=[[`comma`,`Comma`],[`semicolon`,`Semicolon`],[`tab`,`Tab`]],this.headerRowOptions=[[`true`,`Yes`],[`false`,`No`]],this.onSetImportFile=e=>{this.clearPreview(),this.props.onSetImportFile(e)},this.onSetImportCardType=e=>{this.clearPreview(),this.props.onSetImportCardType(e)},this.onSetImportSeparator=e=>{this.clearPreview(),this.props.onSetImportSeparator(e)},this.onSetImportHasHeaderRow=e=>{this.clearPreview(),this.props.onSetImportHasHeaderRow(e)},this.onPreview=()=>{if(!this.props.importFile)return;let e=new FileReader;e.onload=e=>{this.setState({previewFileText:e.target.result,previewErrorMessage:null})},e.onerror=()=>{this.setState({previewFileText:null,previewErrorMessage:`The file could not be previewed.`})},e.readAsText(this.props.importFile)},this.clearPreview=()=>{this.setState({previewFileText:null,previewErrorMessage:null})},this.onCancel=()=>{this.clearPreview(),this.props.onCancel()}}componentDidUpdate(e){e.importFile&&!this.props.importFile&&this.state.previewFileText!==null&&this.clearPreview(),e.reviewCreatedMessage!==this.props.reviewCreatedMessage&&this.props.reviewCreatedMessage&&requestAnimationFrame(()=>{this.reviewCreatedMessageRef.current&&this.reviewCreatedMessageRef.current.scrollIntoView({behavior:`smooth`,block:`center`})})}render(){let e=this.state.previewFileText===null?[]:qQ({fileText:this.state.previewFileText,separator:this.props.importSeparator,hasHeaderRow:this.props.importHasHeaderRow}),t=e.filter(e=>CAe(e));return(0,K.jsxs)(TAe,{children:[!this.props.canImportReviews&&(0,K.jsx)(EAe,{children:(0,K.jsxs)(DAe,{children:[`Review imports are available to Pro members on the web app. Upgrade to Pro if you would like to upload a CSV or TXT file and create reviews in bulk.`,(0,K.jsx)(OAe,{children:(0,K.jsx)(kAe,{to:`memberships.index`,children:(0,K.jsx)(Km,{height:`42px`,marginLeft:`0`,children:(0,K.jsx)(`div`,{className:`text`,children:(0,K.jsx)(`span`,{children:`Go Pro`})})})})})]})}),this.props.canImportReviews&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(ZQ,{children:[(0,K.jsx)(QQ,{children:`1. Set Up Import`}),(0,K.jsxs)(XQ,{children:[(0,K.jsx)(e$,{name:`review_import_deck`,label:`Target Deck`}),(0,K.jsx)(Fi,{allowUpdate:!0,options:this.props.reviewDeckOptions,value:this.props.deckId,onChange:e=>this.props.onSetDeckId(e)}),(0,K.jsx)($Q,{children:`Choose the review deck where the imported cards should be added.`})]}),(0,K.jsxs)(XQ,{children:[(0,K.jsx)(e$,{name:`review_import_card_type`,label:`Card Type`}),(0,K.jsx)(Fi,{allowUpdate:!0,options:this.cardTypeOptions,value:this.props.importCardType,onCh
12366ange:this.onSetImportCardType}),(0,K.jsx)($Q,{children:`Choose Translation to review from the translation back to the ${(0,W.isPresent)(U.AppUI.targetLanguageName)?U.AppUI.targetLanguageName+` `:``}word. Choose Comprehension to review your understanding of the ${U.AppUI.targetLanguageName} word.`}),(0,K.jsx)($Q,{children:`All words that are found in Seedlang's dictionary will be added as a Comprehension or Translation card, with a video. Others will be added as Custom cards.`})]})]}),(0,K.jsxs)(ZQ,{children:[(0,K.jsx)(QQ,{children:`2. Upload File`}),(0,K.jsxs)(XQ,{children:[(0,K.jsx)(e$,{name:`review_import_file`,label:`CSV, or TXT File`,htmlFor:`review-import-file`}),(0,K.jsx)(AAe,{id:`review-import-file`,type:`file`,accept:`.csv,.tsv,.txt,text/csv,text/tab-separated-values,text/plain`,onChange:this.onSetImportFile},this.props.importFileInputKey),(0,K.jsx)($Q,{children:`Upload a .csv or .txt file with up to 100 rows. Use three columns in this order: ${(0,W.isPresent)(U.AppUI.targetLanguageName)?U.AppUI.targetLanguageName:``} word, translation, note.`}),(0,K.jsxs)($Q,{children:[`The first two columns are limited to `,q.Constants.REVIEW_CARD_MAX_FRONT_TEXT_LENGTH,` characters each. Notes are limited to `,q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH,` characters. For dictionary matches, the translation and note are saved together as the review note.`]})]}),this.props.importFile&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(XQ,{children:[(0,K.jsx)(e$,{name:`review_import_separator`,label:`Separator`}),(0,K.jsx)(Fi,{allowUpdate:!0,options:this.separatorOptions,value:this.props.importSeparator,onChange:this.onSetImportSeparator}),(0,K.jsx)($Q,{children:`Choose the character that separates columns in your file.`})]}),(0,K.jsxs)(XQ,{children:[(0,K.jsx)(e$,{name:`review_import_header_row`,label:`Ignore First Row`}),(0,K.jsx)(Fi,{allowUpdate:!0,options:this.headerRowOptions,value:`${this.props.importHasHeaderRow}`,onChange:e=>this.onSetImportHasHeaderRow(e===`true`)}),(0,K.jsx)($Q,{children:`Select "Yes" if the first row contains column names like "word", "translation", and "note". That row will not be imported.`})]})]})]}),this.state.previewFileText!==null&&(0,K.jsxs)(ZQ,{children:[(0,K.jsx)(QQ,{children:`3. Review File`}),(0,K.jsxs)(XQ,{children:[(0,K.jsx)($Q,{children:`Check that the columns and rows look correct before importing. If the formatting is wrong, modify your file or choose a different separator and preview the file again.`}),(0,K.jsx)(wAe,{fileText:this.state.previewFileText,separator:this.props.importSeparator,hasHeaderRow:this.props.importHasHeaderRow}),e.some(e=>`${e[2]}`.trim().length===0)&&(0,K.jsx)(B,{margin:`15px 0 0 0`,children:`Some rows have an empty translation. If the word isn't found in our dictionary, we won't be able to create a custom card without a translation.`}),e.length>100&&(0,K.jsxs)(B,{state:`failure`,margin:`15px 0 0 0`,children:[`Review imports are limited to `,100,` rows. This file has `,e.length,` rows. Remove `,e.length-100,` `,e.length-100==1?`row`:`rows`,` and preview the file again.`]}),t.length>0&&(0,K.jsxs)(B,{margin:`15px 0 0 0`,children:[`Some rows contain text that is longer than Seedlang can store. Long values will be truncated during import, including dictionary rows where the translation and note together exceed `,q.Constants.REVIEW_CARD_MAX_NOTE_LENGTH,` characters. Affected rows: `,t.slice(0,10).map(e=>e[0]).join(`, `),t.length>10?`, and ${t.length-10} more`:``,`.`]})]})]}),(0,K.jsxs)(jAe,{children:[this.state.previewFileText===null&&(0,K.jsx)(I,{onClick:this.onPreview,backgroundOnActive:q.Theme.blueGray,disabled:this.props.disableSubmit||this.props.showSpinner,margin:`0`,children:`Review File`}),this.state.previewFileText!==null&&(0,K.jsxs)(I,{onClick:()=>this.props.onSubmit(null),backgroundOnActive:q.Theme.blueGray,disabled:this.props.disableSubmit||this.props.showSpinner||e.length>100,margin:`0`,children:[(0,K.jsx)(`i`,{className:`fa fa-upload`,style:{marginRight:5,color:`white`}}),`Import Reviews`]}),(0,K.jsxs)(I,{onClick:this.onCancel,disabled:this.props.disableCancel||this.props.showSpinner,background:q.Theme.red,margin:`0`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`,style:{marginRight:5,color:`white`}}
12366),`Cancel`]})]}),(0,K.jsxs)(MAe,{children:[(0,K.jsx)(`i`,{className:`fa fa-question-circle`,style:{marginRight:5}}),`Need help formatting your file? Head to the\xA0`,(0,K.jsx)(`a`,{href:`https://seedlang.com/help_center/topic/7d2bdc2a-34ec-414a-971c-afb00c9291a5/article/9b7551eb-4d16-41bb-8080-cfee48425735`,target:`_blank`,rel:`noopener noreferrer`,children:`Help Center`}),`.`]}),this.state.previewErrorMessage&&(0,K.jsx)(B,{state:`failure`,margin:`20px 0 0 0`,showCloseButton:!0,onClose:this.clearPreview,children:this.state.previewErrorMessage}),this.props.reviewCreatedMessage&&(0,K.jsx)(`div`,{ref:this.reviewCreatedMessageRef,children:(0,K.jsx)(B,{state:`success`,margin:`20px 0 0 0`,children:this.props.reviewCreatedMessage})})]})]})}})||YQ,t$,PAe=N.div` 12367 border-radius: 5px; 12368 width: 100%; 12369 background: white; 12370`,FAe=N.div` 12371 display: flex; 12372 flex-wrap: wrap; 12373 gap: 5px; 12374 margin: 0 0 10px 0; 12375`,n$=N.button` 12376 display: flex; 12377 align-items: center; 12378 background: ${e=>e.isSelected?`#EEF7FF`:`transparent`}; 12379 border: none; 12380 border-radius: 5px; 12381 color: ${e=>e.isSelected?q.Theme.blue:`#333`}; 12382 cursor: pointer; 12383 font-size: 13px; 12384 font-weight: bold; 12385 padding: 8px 10px; 12386 white-space: nowrap; 12387`,IAe=N.div` 12388 padding: 10px 10px 20px 10px; 12389`,LAe=N.div` 12390 margin: 20px 0 0 0; 12391`,RAe=N.div` 12392 font-size: 13px; 12393 line-height: 18px; 12394 margin: 8px 0 0 0; 12395 color: #666; 12396`,zAe=N.div` 12397 display: flex; 12398 flex-direction: row; 12399 align-items: center; 12400 margin-top: 10px; 12401`,BAe=N.div` 12402 font-weight: bold; 12403 margin-bottom: 10px; 12404`,r$=N.div` 12405 margin-top: ${e=>e.marginTop||`10px`}; 12406`,i$=N.ul` 12407 margin: 8px 0 0 18px; 12408 padding: 0; 12409`,a$=N.li` 12410 margin: 5px 0 0 0; 12411`,VAe=N.span` 12412 opacity: 0.9; 12413`,o$=N.span` 12414 display: flex; 12415 align-items: center; 12416 gap: 6px; 12417`,HAe=N.i` 12418 font-size: 13px; 12419`,UAe=N.div` 12420 display: flex; 12421 align-items: center; 12422 margin-top: 20px; 12423 .react-toggle--checked .react-toggle-track{ 12424 background: ${e=>e.highlightColor}; 12425 } 12426`,WAe=j(t$=class extends V.Component{render(){return(0,K.jsxs)(PAe,{margin:U.AppUI.layout.isMobile?`20px`:`0`,children:[(0,K.jsxs)(FAe,{children:[(0,K.jsx)(n$,{isSelected:this.props.reviewCreateMode===`dictionary`,onClick:()=>this.props.onSetReviewCreateMode(`dictionary`),children:(0,K.jsxs)(o$,{children:[(0,K.jsx)(`i`,{className:`fa fa-book`}),(0,K.jsx)(`span`,{children:`From Dictionary`})]})}),(0,K.jsx)(n$,{isSelected:this.props.reviewCreateMode===`custom`,onClick:()=>this.props.onSetReviewCreateMode(`custom`),children:(0,K.jsxs)(o$,{children:[(0,K.jsx)(`i`,{className:`fa fa-pencil`}),(0,K.jsx)(`span`,{children:`Custom Review`})]})}),(0,K.jsx)(n$,{isSelected:this.props.reviewCreateMode===`import`,onClick:()=>this.props.onSetReviewCreateMode(`import`),children:(0,K.jsxs)(o$,{children:[(0,K.jsx)(`i`,{className:`fa fa-upload`}),(0,K.jsx)(`span`,{children:`Import`}),!this.props.canImportReviews&&(0,K.jsx)(HAe,{className:`fa fa-lock`,style:{color:this.props.reviewCreateMode===`import`?q.Theme.blue:`#9CA3AF`}})]})})]}),(0,K.jsxs)(IAe,{children:[this.props.reviewImportReport&&(0,K.jsxs)(B,{state:this.props.reviewImportReport.importedCount>0?`success`:`failure`,margin:`0 0 20px 0`,showCloseButton:!0,onClose:this.props.removeReviewImportReport,children:[(0,K.jsx)(BAe,{children:`Import Report`}),(0,K.jsxs)(`div`,{children:[`Imported `,this.props.reviewImportReport.importedCount,` `,this.props.reviewImportReport.importedCount===1?`review`:`reviews`,`.`]}),(0,K.jsxs)(r$,{children:[`Created by card type`,this.props.reviewImportReport.createdCardTypeCounts.length>0&&(0,K.jsx)(i$,{children:this.props.reviewImportReport.createdCardTypeCounts.map(e=>(0,K.jsxs)(a$,{children:[e.count,` `,e.cardType,` `,e.count===1?`review`:`reviews`]},e.cardType))}),this.props.reviewImportReport.createdCardTypeCounts.length===0&&(0,K.jsx)(`div`,{children:`No reviews were created.`})]}),this.props.reviewImportReport.skippedCount===0&&(0,K.jsx)(r$,{marginTop:`14px`,children:`All reviews were successfully created.`}),this.props.reviewImportReport.skippedCount>0&&(0,K.jsxs)(r$,{marginTop:`14px`,children:[`Couldn't create `,this.props.reviewImportReport.skippedCount,` `,this.props.reviewImportReport.skippedCount===1?`review`:`reviews`,`.`,this.props.reviewImportReport.failedCards.length>0&&(0,K.jsx)(i$,{children:this.props.reviewImportReport.failedCards.map((e,t)=>(0,K.jsxs)(a$,{children:[e.label,e.reason&&(0,K.jsxs)(VAe,{children:[`: `,e.reason]})]},`${e.label}-${e.reason}-${t}`))})]})]}),this.props.reviewCreateMode===`dictionary`&&(0,K.jsx)(hAe,{...this.props}),this.props.reviewCreateMode===`custom`&&(0,K.jsx)(Pke,{...this.props}),this.props.reviewCreateMode===`import`&&(0,K.jsx)(NAe,{canImportReviews:this.props.canImportReviews,importFileInputKey:this.props.importFileInputKey,onSetImportFile:this.props.onSetImportFile,importFile:this.props.importFile,importCardType:this.props.importCardType,importSeparator:this.props.importSeparator,importHasHeaderRow:this.props.importHasHeaderRow,reviewCreatedMessage:this.props.reviewCreatedMessage,onSetImportCardType:this.props.onSetImportCardType,onSetImportSeparator:this.props.onSetImportSeparator,onSetImportHasHeaderRow:this.props.onSetImportHasHeaderRow,reviewDeckOptions:this.props.reviewDeckOptions,deckId:this.props.deckId,onSetDeckId:this.props.onSetDeckId,onSubmit:this.props.onSubmit,onCancel:this.props.onCancel,disableSubmit:this.props.disableSubmit,disableCancel:this.props.disableCancel,showSpinner:this.props.showSpinner}),this.props.showWordNotFound&&(0,K.jsxs)(zAe,{children:[(0,K.jsxs)(I,{backgroundOnActive:q.Theme.blueGray,margin:`0 5px 0 0`,onClick:this.props.onCreateWord,children:[(0,K.jsx)(`i`,{className:`fa fa-pencil`,style:{marginRight:5,color:`white`}}
12426),`Create Custom Review`]}),(0,K.jsxs)(I,{onClick:this.props.clearWordSearch,background:q.Theme.red,margin:`0`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`,style:{marginRight:5,color:`white`}}),`Cancel`]})]}),!this.props.showWordNotFound&&this.props.reviewCreateMode!==`import`&&!this.props.disableSubmit&&!this.props.showSpinner&&(0,K.jsxs)(I,{onClick:()=>this.props.onSubmit(null),backgroundOnActive:q.Theme.blueGray,margin:`20px 5px 0 0`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`,style:{marginRight:5,color:`white`}}),`Create Review`]}),!this.props.showWordNotFound&&this.props.reviewCreateMode!==`import`&&!this.props.disableCancel&&!this.props.showSpinner&&(0,K.jsxs)(I,{onClick:()=>this.props.onCancel({preserveWordSearch:!!(this.props.reviewCreateMode===`dictionary`&&this.props.word)}),background:q.Theme.red,margin:`20px 0 0 0`,children:[(0,K.jsx)(`i`,{className:`fa fa-times`,style:{marginRight:5,color:`white`}}),`Cancel`]}),this.props.reviewCreatedMessage&&this.props.reviewCreateMode!==`import`&&(0,K.jsx)(B,{state:`success`,margin:`20px 0 0 0`,children:this.props.reviewCreatedMessage}),this.props.showSpinner&&(0,K.jsx)(P,{margin:`20px 0 0 10px`}),this.props.reviewCreateMode===`custom`&&(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(UAe,{highlightColor:q.Theme.green,children:[(0,K.jsx)(qM.default,{icons:!1,onChange:this.props.toggleConvertCardSubmissions,checked:U.AppUI.user.convertCardSubmissions}),(0,K.jsx)(R,{fontSize:`12px`,bold:!0,margin:`0 0 0 10px`,children:`Convert Custom Reviews`})]}),(0,K.jsx)(RAe,{children:`When words from your custom cards are added to our dictionary and recorded, the cards will be converted to word translation cards.`})]}),this.props.word&&this.props.word.id&&this.props.showAddWord&&(0,K.jsxs)(LAe,{children:[(0,K.jsx)(R,{bold:!0,margin:`0 0 10px 0`,children:`Sentences`}),(0,K.jsx)(WR,{wordId:this.props.word.id,onClickSentence:this.props.onClickSentence})]})]})]})}})||t$,GAe=(0,Y.ReviewCreateWrapper)(WAe);D();var s$,KAe=N.div` 12427 width: 100%; 12428`,qAe=N.div` 12429 display: flex; 12430 align-items: center; 12431 .lightning-bolt-icon { 12432 svg { 12433 width: 12px; 12434 margin: 0 5px 0 0; 12435 fill: #FFF; 12436 } 12437 } 12438`,JAe=j(s$=class extends V.Component{constructor(...e){super(...e),this.onClickRepair=()=>{this.props.onRepairStreak();let e=!1;te(()=>{this.props.showStreakUpdatedMessage&&!e&&(0,W.isPresent)(this.props.userId)&&this.props.userId!==`null`&&(U.AppUI.authUserDailyXpCountStore.reloadIndexFiltered({ids:{userId:this.props.userId}}),e=!0)})}}render(){return(0,K.jsx)(KAe,{children:this.props.showStreakRepairBanner&&(0,K.jsxs)(XC,{uiElement:`streak-repair-banner`,margin:`0 0 10px 0`,children:[!this.props.showStreakUpdatedMessage&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(R,{center:!0,bold:!0,color:`#333`,margin:`10px 0 10px 0`,children:[(0,K.jsx)(`div`,{children:`We noticed you lost your streak yesterday!`}),(0,K.jsx)(`div`,{children:`You get one streak repair per month, do you want to use it now?`})]}),!this.props.showSpinner&&(0,K.jsx)(I,{background:q.Theme.green,margin:`0 0 12px 0`,onClick:this.onClickRepair,children:(0,K.jsxs)(qAe,{children:[(0,K.jsx)(J.LightningBoltIcon,{}),`Repair Streak`]})})]}),this.props.showSpinner&&(0,K.jsx)(P,{}),this.props.showStreakUpdatedMessage&&(0,K.jsxs)(R,{center:!0,bold:!0,color:`#333`,margin:`10px 0 10px 0`,children:[(0,K.jsx)(`div`,{children:`Your streak has been repaired!`}),(0,K.jsx)(`div`,{children:`You will have another streak repair available next month.`})]})]})})}})||s$,YAe=(0,Y.SettingsStreakRepairWrapper)((0,Y.DailyActivityWrapper)(JAe));D();var c$,XAe=N.div` 12439 display: flex; 12440 position: relative; 12441 flex-direction: column; 12442 width: 100%; 12443`,ZAe=N.div` 12444 display: flex; 12445 flex-direction: row; 12446 align-items: center; 12447 justify-content: center; 12448 margin-top: 10px; 12449`,QAe=N.div` 12450 display: flex; 12451 flex-direction: column; 12452 position: relative; 12453 display: flex; 12454 width: 100%; 12455 background: white; 12456 border-radius: 5px; 12457 padding: 10px; 12458`,$Ae=N.div` 12459 position: relative; 12460 display: flex; 12461 flex-direction: column; 12462 align-items: center; 12463`,eje=N.div` 12464 ${(0,X.flexCenter)()} 12465 width: 100%; 12466`,tje=N.div` 12467 display: flex; 12468 flex-wrap: wrap; 12469 margin-bottom: 10px; 12470 border-bottom: 1px solid #CCC; 12471 > div { 12472 padding: ${e=>e.isMobile?`10px 5px`:null}; 12473 } 12474`,nje=N.div` 12475 12476`,l$=N.div` 12477 display: flex; 12478 align-items: center; 12479 justify-content: center; 12480 i { 12481 margin-right: 5px; 12482 } 12483`,rje=N.div` 12484 display: flex; 12485 justify-content: center; 12486 gap: 20px; 12487 width: 100%; 12488 margin-top: 10px; 12489`,ije=j(c$=class extends V.Component{constructor(...e){super(...e),this.routeReactionDisposer=null,this.onClickBannerUrl=()=>{window.open(U.AppUI.user.bannerNotice.url,`_blank`),U.AppUI.bannerNoticeStore.incrementClickedCount({ids:{bannerNoticeId:U.AppUI.user.bannerNotice.id}},G.noop)},this.onDismissBannerNotice=()=>{U.AppUI.authUserStore.update({data:{dismissed_banner_notice:U.AppUI.user.bannerNotice.id}},G.noop),U.AppUI.user.set(`dismissedBannerNotice`,U.AppUI.user.bannerNotice.id)}}componentDidMount(){this.routeReactionDisposer=ne(()=>U.AppUI.routeStore.routeName,(e,t)=>{e===`reviews.archive`&&t!==`reviews.archive`&&U.AppUI.createEvent(`reviews - view archive`)},{fireImmediately:!0})}componentWillUnmount(){this.routeReactionDisposer&&=(this.routeReactionDisposer(),null)}render(){return(0,K.jsxs)(YX,{children:[(0,K.jsx)(XAe,{isMobile:U.AppUI.layout.isMobile||U.AppUI.layout.minimumHeight,children:(0,K.jsxs)($Ae,{isMobile:U.AppUI.layout.isMobile||U.AppUI.layout.minimumHeight,children:[!U.AppUI.user.isMember&&(0,K.jsx)(XC,{hideCloseIcon:!0,className:`tree-onboarding`,children:(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`span`,{children:`Get started with our `}),(0,K.jsx)(F,{to:`stories.home`,className:`underline`,children:`free content`}),(0,K.jsx)(`span`,{children:`. `}),(0,K.jsx)(F,{to:`memberships.index`,className:`underline`,children:`Go Pro`}),(0,K.jsx)(`span`,{children:` to unlock all content and features.`})]})}),U.AppUI.user.bannerNotice&&U.AppUI.user.dismissedBannerNotice!==U.AppUI.user.bannerNotice.id&&(0,K.jsxs)(XC,{margin:`0 0 10px 0`,hideCloseIcon:!0,background:`#fff`,color:`#333`,border:`none`,wrapperPadding:`10px`,children:[U.AppUI.user.bannerNotice.text,(0,K.jsxs)(ZAe,{children:[(0,K.jsx)(I,{margin:`0 5px 0 0`,onClick:this.onClickBannerUrl,children:U.AppUI.user.bannerNotice.buttonText}),(0,K.jsx)(I,{background:q.Theme.red,margin:`0 0 0 5px`,onClick:this.onDismissBannerNotice,children:`Dismiss`})]})]}),U.AppUI.layout.iPadSafari&&!U.AppUI.wasUiElementSeen(`ipad-safari`)&&(0,K.jsxs)(XC,{uiElement:`ipad-safari`,margin:`0 0 5px 0`,children:[`We recommend using the `,(0,K.jsx)(`b`,{children:`Chrome browser on an iPad`}),`. On Safari, videos will not auto-play, but can be activated by clicking on them.`]}),U.AppUI.userIsLoaded&&U.AppUI.user.paymentProblems&&(0,K.jsxs)(XC,{hideCloseIcon:!0,className:`tree-onboarding`,uiElement:`payment-problems`,margin:`0 0 5px 0`,children:[(0,K.jsx)(`span`,{children:`We are having trouble processing your payment. `}),(0,K.jsx)(F,{className:`underline`,to:`memberships.index`,children:`Update your membership`}),(0,K.jsx)(`span`,{children:` to regain your Pro status.`}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{children:` You can also contact us on our `}),(0,K.jsx)(F,{className:`underline`,to:`contact`,children:`Contact page`}),(0,K.jsx)(`span`,{children:` for assistance.`})]})]}),(this.props.showFirstTimeStreakExtendBanner||this.props.streakWasExtended)&&(0,K.jsx)(XC,{hideCloseIcon:!0,className:`tree-onboarding`,uiElement:`streak-extend-banner`,margin:`0 0 5px 0`,padding:`0 50px`,children:(0,K.jsxs)(`div`,{style:{height:`140px`,display:`flex`,flexDirection:`column`,justifyContent:`center`},children:[(0,K.jsxs)(R,{bold:!0,children:[(0,K.jsx)(`span`,{role:`img`,"aria-label":`party popper`,children:`ð`}),` `,`Congratulations, you have reached ${U.AppUI.user.streakExtendGoal}XP today!`]}),this.props.showFirstTimeStreakExtendBanner&&!this.props.streakWasExtended&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{children:`When you reach such a high daily XP, you can be rewarded by extending your streak by one day in the past. Do you want to extend your streak?`}),(0,K.jsxs)(rje,{children:[(0,K.jsx)(I,{onClick:this.props.extendStreak,width:`70px`,small:!0,borderRadius:`5px`,background:q.Theme.green,children:`Yes`}),(0,K.jsx)(I,{onClick:this.props.disableStreakExtension,width:`70px`,small:!0,borderRadius:`5px`,background:q.Theme.red,children:`No`})]})]}),this.props.streakWasExtended&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{children:`Your streak has been extended by one day!`}),(0,K.jsx)(R,{children:`Check your calendar to see your new streak.`})]})]})}),this.props.showMissionPageOnboarding&&(0,K.jsxs)(XC,{className:`tree-onboarding`,uiElement:`find-reviews2`,margin:`0 0 10px 0`,background:`#fff`,color:`#333`,border:`none`,wrapperPadding:`10px`,children:[(0,K.jsx)(R,{center:!0,color:`#333`,heading:`2`,margin:`10px 0 0 0`,children:this.props.missionTitle}),(0,K.jsx)(R,{center:!0,bold:!0,color:`#333`,margin:`10px 0 0 0`,children:this.props.missionBodyLine1}),(0,K.jsx)(R,{center:!0,bold:!0,color:`#333`,margin:`10px 0 20px 0`,children:this.props.missionBodyLine2})]}
12489),(0,K.jsx)(YAe,{store:U.AppUI.authUserDailyXpCountStore,dailyXpGoal:U.AppUI.user?.dailyXpGoal,userId:U.AppUI.user?.id,todaysDate:U.AppUI.user?.todaysDate}),(0,K.jsxs)(QAe,{children:[(0,K.jsxs)(tje,{isMobile:U.AppUI.layout.isMobile,children:[(0,K.jsx)(rJ,{selected:U.AppUI.routeStore.routeName===`reviews.home`||U.AppUI.routeStore.routeName===`home`,onClick:()=>U.AppUI.routeStore.routeToNamed(`reviews.home`),children:(0,K.jsxs)(l$,{fill:U.AppUI.routeStore.routeName===`reviews.home`||U.AppUI.routeStore.routeName===`home`?q.Theme.blue:`#A9A9A9`,children:[(0,K.jsx)(`i`,{className:`fa fa-bookmark`}),`Reviews`]})}),(0,K.jsx)(rJ,{selected:U.AppUI.routeStore.routeName===`reviews.index`,onClick:()=>U.AppUI.routeStore.routeToNamed(`reviews.index`,{page:1}),children:(0,K.jsxs)(l$,{fill:U.AppUI.routeStore.routeName===`reviews.index`?q.Theme.blue:`#A9A9A9`,children:[(0,K.jsx)(`i`,{className:`fa fa-list`}),`Manage`]})}),(0,K.jsx)(rJ,{selected:U.AppUI.routeStore.routeName===`reviews.create`,onClick:()=>U.AppUI.routeStore.routeToNamed(`reviews.create`),children:(0,K.jsxs)(l$,{fill:U.AppUI.routeStore.routeName===`reviews.create`?q.Theme.blue:`#A9A9A9`,children:[(0,K.jsx)(`i`,{className:`fa fa-plus`}),`Create`]})}),(0,K.jsx)(rJ,{selected:U.AppUI.routeStore.routeName===`reviews.archive`,onClick:()=>U.AppUI.routeStore.routeToNamed(`reviews.archive`),children:(0,K.jsxs)(l$,{fill:U.AppUI.routeStore.routeName===`reviews.archive`?q.Theme.blue:`#A9A9A9`,children:[(0,K.jsx)(`i`,{className:`fa fa-arrow-down`}),`Archive`]})})]}),(U.AppUI.routeStore.routeName===`reviews.home`||U.AppUI.routeStore.routeName===`reviews.archive`||U.AppUI.routeStore.routeName===`home`)&&(0,K.jsxs)(nje,{children:[(0,K.jsx)(eje,{showOnboarding:this.props.showOnboarding,children:(0,K.jsx)(pOe,{archive:U.AppUI.routeStore.routeName===`reviews.archive`,disabled:this.props.showOnboarding})}),U.AppUI.userIsLoaded&&U.AppUI.contentLinks.map(e=>(0,K.jsx)(vDe,{isMobile:U.AppUI.layout.isMobile||U.AppUI.layout.minimumHeight,...e},e.title))]}),U.AppUI.routeStore.routeName===`reviews.index`&&(0,K.jsx)(jke,{location:this.props.location,params:this.props.params}),U.AppUI.routeStore.routeName===`reviews.create`&&(0,K.jsx)(GAe,{})]})]})}),(0,K.jsx)(ZJ,{})]})}})||c$,u$=pf((0,Y.ReviewHomeWrapper)(ije)),aje=N.span` 12490 position: absolute; 12491 top: ${e=>e.top}; 12492 left: ${e=>e.left}; 12493 z-index: 1; 12494 display: inline-flex; 12495 align-items: center; 12496 gap: 4px; 12497 button { 12498 display: inline-flex; 12499 align-items: center; 12500 justify-content: center; 12501 width: 30px; 12502 height: 32px; 12503 padding: 0; 12504 border: 0; 12505 border-radius: 5px; 12506 background: ${q.Theme.lightGray}; 12507 transition: background 0.15s ease; 12508 color: inherit; 12509 cursor: pointer; 12510 } 12511 button:not(:disabled):hover { 12512 background: #e2e2e2; 12513 } 12514 button:not(:disabled):active { 12515 background: #e5e5e5; 12516 } 12517 button:disabled { 12518 opacity: 0.3; 12519 cursor: default; 12520 } 12521 font-size: 12px; 12522`;function d$({loading:e,canNavigate:t,onNavigate:n,label:r=`Dictionary navigation`,top:i=`10px`,left:a=`10px`}){return e||!t(-1)&&!t(1)?null:(0,K.jsx)(aje,{top:i,left:a,"aria-label":r,"aria-busy":e,children:[-1,1].map(r=>{let i=r===-1?`Previous word`:`Next word`;return(0,K.jsx)(`button`,{type:`button`,disabled:e||!t(r),onClick:()=>n(r),"aria-label":i,title:i,children:(0,K.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,"aria-hidden":`true`,children:(0,K.jsx)(`path`,{d:r===-1?`M15 5l-7 7 7 7`:`M9 5l7 7-7 7`})})},r)})})}D();var f$,p$,m$,h$;function oje(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function sje(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var cje=N.div` 12523 width: 100%; 12524 position: relative; 12525 margin-bottom: ${e=>e.isMobile?0:`10px`}; 12526 display: flex; 12527 flex-direction: column; 12528 align-items: center; 12529 padding: ${e=>e.padding}; 12530 box-sizing: border-box; 12531`,lje=N.div` 12532 width: 100%; 12533`,uje=pf(M((f$=T.ref,j(p$=(m$=class extends V.Component{constructor(e){super(e),oje(this,`dictionaryNavigation`,h$,this),this.resetDictionaryNavigation=()=>{this.dictionaryNavigation=new U.DictionaryNavigation(this.props.location?.state?.dictionaryNavigation||U.DictionaryNavigation.fromStore(U.AppUI.wordStore))},this.navigateWord=async e=>
12533{let t=this.dictionaryNavigation,n=this.props.params.wordId,r=await t.adjacent(n,e);!this.unmounted&&t===this.dictionaryNavigation&&n===this.props.params.wordId&&r&&(U.AppUI.wordStore.setShowData(t.word(r)),this.props.navigate(U.AppUI.routeStore.pathFor({name:`vocab.word`,params:{wordId:r}}),{state:{dictionaryNavigation:t.context}}))},this.renderWordNavigation=()=>{let e=this.props.params.wordId;return e?(0,K.jsx)(d$,{loading:this.dictionaryNavigation.loading,canNavigate:t=>this.dictionaryNavigation.canNavigate(e,t),onNavigate:this.navigateWord}):null},this.resetDictionaryNavigation()}componentDidUpdate(e){(e.location?.state!==this.props.location?.state||e.params.wordId!==this.props.params.wordId)&&this.resetDictionaryNavigation()}componentWillUnmount(){this.unmounted=!0}componentDidMount(){U.AppUI.createEvent(`vocab - view page`)}render(){return(0,K.jsxs)(lje,{children:[(0,K.jsx)(LM,{title:`${U.AppUI.targetLanguageName} VOCAB`,homeRoute:`vocab.home`,titleRoute:`vocab.home`,titleParams:{page:this.dictionaryNavigation.position(this.props.params.wordId)?.page||U.AppUI.wordStore.page||1},pageInfo:[{route:`vocab.progress`,current:`Progress`}],icons:[{icon:(0,K.jsx)(J.FaqIcon,{}),tooltipText:`Help Center`,iconRoute:`faq_categories.show`,iconParams:{faqCategoryId:`b31dc1e8-07dd-4b39-936f-d5a3238a57d5`}},{icon:(0,K.jsx)(J.GraphOutlineIcon,{}),tooltipText:`View Progress`,iconRoute:`vocab.progress`,breadcrumb:`Progress`}]}),this.dictionaryNavigation.error&&(0,K.jsx)(`div`,{role:`alert`,children:`Couldnât load more words. Please try again.`}),(0,K.jsxs)(cje,{isMobile:U.AppUI.layout.isMobile,children:[this.renderWordNavigation(),(0,K.jsx)(f,{})]})]})}},h$=sje(m$.prototype,`dictionaryNavigation`,[f$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m$))||p$)));function dje(e){let t=d();return(0,K.jsx)(uje,{...e,navigate:t})}D();var g$,fje=N.div` 12534 background: white; 12535 padding: 20px; 12536 margin: 50px; 12537 border: 20px solid ${e=>e.borderColor}; 12538 border-radius: 10px; 12539 text-align: center; 12540 @media only screen and (max-width : 649px) { 12541 margin: 40px 20px; 12542 } 12543`,pje=N.div` 12544 margin: 10px 0; 12545`,mje=M(j(g$=class extends V.Component{constructor(e){super(e),this.routeToHome=()=>{U.AppUI.siteIsDefault?U.AppUI.routeStore.routeToNamed(`stories.home`):U.AppUI.routeStore.routeToNamed(U.AppUI.userIsSignedInAndNotGuest?U.AppUI.user.site.signedInHomePageRoute:U.AppUI.user.site.signedOutHomePageRoute)},this.disposer=te(()=>{U.AppUI.userIsLoaded&&U.AppUI.user.set(`successfulCheckout`,!0)})}componentDidMount(){U.AppUI.setCookieValue(`redirected-to-stripe`,!1),U.AppUI.createEvent(`checkout - successful payment`)}componentWillUnmount(){this.disposer&&this.disposer()}render(){return(0,K.jsxs)(fje,{borderColor:U.AppUI.siteIsDefault?q.Theme.blue:U.AppUI.site.accentColor,children:[(0,K.jsx)(`h3`,{children:`Thank you for your subscription! `}),(0,K.jsxs)(pje,{children:[(0,K.jsx)(`span`,{children:`Your payment was successful and you can view your payment details in the `}),(0,K.jsx)(F,{to:`settings.billing`,className:`underline`,children:`Billing`}),(0,K.jsx)(`span`,{children:` section.`}),(0,K.jsxs)(`p`,{children:[`Get started with all of your newly unlocked learning content now! `,(0,K.jsx)(`span`,{role:`img`,"aria-label":`party popper`,children:`ðð`})]}),(0,K.jsx)(I,{onClick:this.routeToHome,children:`View Unlocked Content`})]})]})}})||g$),_$,hje=N.div` 12546 12547`,gje=N.div` 12548 width: 100%; 12549 margin-bottom: 10px; 12550 display: flex; 12551 flex-direction: column; 12552 align-items: center; 12553 padding: ${e=>e.padding}; 12554`,_je=M(j(_$=class extends V.Component{constructor(e){super(e),U.AppUI.createEvent(`stories - view page`)}render(){return(0,K.jsxs)(hje,{children:[(0,K.jsx)(LM,{title:U.AppUI.routeStore.routeName===`stories.show`?`VIEW ALL ${U.AppUI.targetLanguageName} STORIES`:`${U.AppUI.targetLanguageName} STORIES`,titleRoute:`stories.home`,pageInfo:[{route:`stories.progress`,current:`Progress`}],icons:[{icon:(0,K.jsx)(J.FaqIcon,{}),tooltipText:`Help Center`,iconRoute:`faq_categories.show`,iconParams:{faqCategoryId:`e548f1aa-5193-432b-bff4-b9342ea1434c`}},{icon:(0,K.jsx)(J.GraphOutlineIcon,{}),tooltipText:`View Progress`,iconRoute:`stories.progress`,breadcrumb:`Progress`}]}),(0,K.jsx)(gje,{children:(0,K.jsx)(f,{})})]})}})||_$);D(),me();var v$,y$,b$;function vje(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function x$(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var yje=N.div` 12555 ${(0,X.flexCenterColumn)()} 12556`,bje=N.div` 12557 ${(0,X.flexCenterColumn)()} 12558`,xje=N.div` 12559 ${(0,X.flexCenter)()} 12560 margin: ${e=>e.margin}; 12561`,Sje=N.div` 12562 font-size: 12px; 12563 font-weight: bold; 12564 text-align: center; 12565 margin: -5px 0 15px 0; 12566`,S$=M(j(v$=(y$=class extends V.Component{constructor(e){super(e),vje(this,`id`,b$,this),this.id=wn()}get fontSize(){if((0,W.isPresent)(this.props.fontSize))return this.props.fontSize;let e=String(this.props.count||``).length;return`${Math.max(30,Math.min(45,45-Math.max(0,e-2)*5))}
12566px`}render(){return(0,K.jsxs)(yje,{"data-tip":!0,"data-for":this.id,children:[(0,K.jsxs)(bje,{children:[(0,K.jsx)(NS,{hideSlicesLabels:!0,hideTooltip:!0,fontSize:this.fontSize,colors:this.props.colors,data:this.props.data,width:this.props.width,count:this.props.count,margin:this.props.margin}),this.props.tooltipText&&(0,K.jsx)(he,{place:`top`,type:`dark`,id:this.id,class:`custom-tooltip`,children:this.props.tooltipText})]}),this.props.subText&&(0,K.jsx)(Sje,{children:this.props.subText}),(0,K.jsx)(xje,{children:this.props.legends.map(e=>(0,K.jsx)(jJ,{iconBackground:e[0],text:e[1]},e[0]))})]})}},b$=x$(y$.prototype,`id`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x$(y$.prototype,`fontSize`,[E],Object.getOwnPropertyDescriptor(y$.prototype,`fontSize`),y$.prototype),y$))||v$);D();var C$,w$;function Cje(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var wje=N.div` 12567 margin: 0; 12568 width: 100%; 12569`,T$=M(j(C$=(w$=class extends V.Component{get pieChartData(){let e=this.props.counts.totalWordTypeLevelCount-this.props.counts.learnedCount-this.props.counts.seenCount,t=[{id:`1`,value:this.props.counts.learnedCount}];return this.props.counts.seenCount>0&&t.push({id:`2`,value:this.props.counts.seenCount}),e>0&&t.push({id:`3`,value:e}),t}render(){return(0,K.jsxs)(wje,{children:[U.AppUI.userIsLoaded&&U.AppUI.targetLanguage&&U.AppUI.targetLanguage.contentTreeDecksCount>0&&(0,K.jsx)(OJ,{title:`Decks Progress`,padding:`10px 0 10px 0`,children:(0,K.jsx)(S$,{id:`tree-progress`,colors:[q.Theme.green,`#D8D8D8`],data:[{y:U.AppUI.targetLanguage.contentTreeDecksFinishedCount},{y:U.AppUI.targetLanguage.contentTreeDecksUnfinishedCount}],width:160,margin:`0 0 20px 0`,count:U.AppUI.targetLanguage.contentTreeDecksFinishedCount,subText:`${(0,W.formatNumber)(U.AppUI.targetLanguage.contentTreeDecksFinishedCount)} of ${(0,W.formatNumber)(U.AppUI.targetLanguage.contentTreeDecksCount)} Decks Finished`,legends:[[q.Theme.green,`Finished`],[`#D8D8D8`,`Unfinished`]]})}),U.AppUI.userIsLoaded&&(0,K.jsx)(OJ,{title:`My Stories Badges`,padding:`0 20px 10px 20px`,children:(0,K.jsx)(sy,{user:U.AppUI.user,badges:[`storymaster`,`storyteller`,`interviewMe`],showProgress:!0,width:`70px`,badgeWidth:`100%`})})]})}},Cje(w$.prototype,`pieChartData`,[E],Object.getOwnPropertyDescriptor(w$.prototype,`pieChartData`),w$.prototype),w$))||C$),E$,Tje=N.div` 12570 cursor: ${e=>e.published?`pointer`:`default`}; 12571 width: ${e=>e.width}; 12572 margin: ${e=>e.margin}; 12573 position: relative; 12574 overflow: hidden; 12575`,D$=N.div` 12576 z-index: ${q.Theme.z[`over-foreground`]}; 12577 position: absolute; 12578 top: 0; 12579 left: 0; 12580 right: 0; 12581 display: flex; 12582 align-items: center; 12583 justify-content: center; 12584`,O$=N.div` 12585 background: ${e=>e.background}; 12586 color: white; 12587 padding: 3px 7px; 12588 font-size: 11px; 12589 line-height: 12px; 12590 font-weight: 700; 12591 width: 45px; 12592 border-bottom-left-radius: 5px; 12593 border-bottom-right-radius: 5px; 12594 display: flex; 12595 align-items: center; 12596 justify-content: center; 12597`,Eje=N.div` 12598 ${(0,X.flexCenter)()} 12599 z-index: ${q.Theme.z.foreground}; 12600 color: ${e=>e.color}; 12601 border: ${e=>e.borderWidth}px solid ${e=>e.borderColor}; 12602 position: absolute; 12603 top: ${e=>e.top}; 12604 width: ${e=>e.width}; 12605 left: 21px; 12606 border-radius: 10px; 12607 margin: 0 auto; 12608 background: #333; 12609 text-align: center; 12610 height: 32px; 12611 font-size: 14px; 12612 font-weight: bold; 12613 pointer-events: none; 12614`,Dje=N.span` 12615 margin: ${e=>e.margin}; 12616`,Oje=j(E$=class extends V.Component{render(){return(0,K.jsx)(F,{to:{name:`stories.show`,params:{treeNodeId:this.props.treeNode.id}},id:this.props.treeNode?.id,className:this.props.className,children:(0,K.jsxs)(Tje,{published:this.props.nodeIsEnabled,height:(0,W.pixify)((0,W.depixify)(this.props.height)+40),width:(0,W.pixify)(this.props.width),margin:U.AppUI.layout.viewportWidth<=480?`10px`:`20px`,children:[!this.props.treeNode.webPublished&&(0,K.jsx)(D$,{children:(0,K.jsx)(O$,{background:q.Theme.red,children:`UNP`})}),this.props.isNextTreeNode&&(0,K.jsx)(D$,{children:(0,K.jsx)(O$,{background:q.Theme.orange,children:`NEXT`})}),!this.props.isNextTreeNode&&this.props.treeNode.webPublished&&this.props.treeNode.webPublishedInLastWeek&&(0,K.jsx)(D$,{children:(0,K.jsx)(O$,{background:q.Theme.green,children:`NEW`})}),(0,K.jsx)(hJ,{showLock:!0,smallLock:!0,borderWidth:this.props.borderWidth,borderColor:this.props.borderColor,borderTopRadius:`30px`,borderBottomRadius:`30px`,height:this.props.height,width:this.props.width,imageHeight:(0,W.depixify)(this.props.height)-20,imageWidth:(0,W.depixify)(this.props.width)-20,inProgress:this.props.inProgress,hasAccess:this.props.hasAccess,finished:this.props.finished,src:this.props.src,checkmarkWidth:`70px`,imageBorderRadius:`20px`,imageMarginTop:`5px`,imageMarginBottom:this.props.imageMarginBottom}
12616),this.props.showProgressCount&&(0,K.jsxs)(Eje,{color:this.props.color,borderWidth:this.props.borderWidth,borderColor:this.props.borderColor,top:(0,W.pixify)((0,W.depixify)(this.props.width)-18),width:(0,W.pixify)((0,W.depixify)(this.props.width)-40),children:[(0,K.jsx)(`span`,{children:this.props.finishedUserDecksCount}),(0,K.jsx)(Dje,{margin:this.props.treeNode.treeNodeDecksCount===1?`0 1px 0 0`:null,children:`/`}),(0,K.jsx)(`span`,{children:this.props.treeNode.treeNodeDecksCount})]}),this.props.children]})})}})||E$,k$=(0,Y.TreeNodeIconWrapper)(Oje),A$,kje=N.div` 12617 flex: 1; 12618`,Aje=N.div` 12619 ${(0,X.flexCenterColumn)()} 12620 width: ${e=>e.width}; 12621 margin: 20px 0 0 0; 12622`,jje=N.div` 12623 display: flex; 12624 justify-content: center; 12625`,j$=N.div` 12626 cursor: pointer; 12627 display: flex; 12628 align-items: center; 12629 justify-content: center; 12630 .fa { 12631 position: absolute; 12632 left: 10px; 12633 font-size: 24px; 12634 } 12635`,Mje=j(A$=class extends V.Component{render(){return(0,K.jsxs)(kje,{id:`tree-body`,children:[U.AppUI.userIsLoaded&&this.props.showLevelWarning&&U.TreeUI.storiesTree&&U.TreeUI.storiesTree.languageId===`DE`&&(0,K.jsxs)(XC,{fatCloseIcon:!0,className:`primary-page-onboarding`,uiElement:`level-warning`,children:[(0,W.isPresent)(U.AppUI.targetLanguage?.level)?`Your level is ${U.AppUI.targetLanguage.level.abbreviation}. `:``,`Our content tree starts at A1 and goes to B2. You can either start at the beginning and review easier content, or skip ahead to content that is more appropriate for your level.`]}),U.AppUI.layout.iPadSafari&&(0,K.jsxs)(XC,{hideCloseIcon:!0,background:q.Theme.orange,color:`#FFF`,border:`1px solid ${q.Theme.darkOrange}`,children:[`We are sorry, but our Stories section only works with the `,(0,K.jsx)(`b`,{children:`Chrome browser`}),` on an iPad. Please switch to a Chrome browser to continue.`]}),!U.TreeUI.storiesTree&&(0,K.jsx)(P,{}),(0,W.isPresent)(this.props.nextTreeNode)&&(0,K.jsx)(XC,{hideCloseIcon:!0,background:q.Theme.green,color:`#FFF`,border:`1px solid ${q.Theme.darkGreen}`,children:(0,K.jsxs)(j$,{onClick:this.props.scrollToNextTreeNode,children:[(0,K.jsx)(`i`,{className:`fa fa-angle-double-down`}),`Go to Your Next Story:\xA0`,(0,K.jsx)(`b`,{children:this.props.nextTreeNode?.name})]})}),U.TreeUI.showStoriesNewLabel&&(0,Hl.default)(this.props.nextTreeNode)&&(0,K.jsx)(XC,{hideCloseIcon:!0,background:q.Theme.green,color:`#FFF`,border:`1px solid ${q.Theme.darkGreen}`,children:(0,K.jsxs)(j$,{onClick:this.props.scrollToNewTreeNode,children:[(0,K.jsx)(`i`,{className:`fa fa-angle-double-down`}),`Go to Our New Story`]})}),U.TreeUI.storiesTree&&U.TreeUI.storiesTree.treeModules.map(e=>e.webPublished||U.AppUI.user.admin?(0,K.jsx)(OJ,{title:e.name,slug:e.id,forceExpand:e.id===this.props.currentTreeModuleId,children:e.treeRows.map(e=>(0,K.jsx)(jje,{children:e.treeNodes.map(e=>{if(e.webPublished||U.AppUI.user.admin){let t=U.TreeUI.userTreeNodeStore.indexData.find(t=>t.treeNodeId===e.id),n=e.id===this.props.nextTreeNode?.id;return(0,K.jsx)(k$,{treeNode:e,width:this.props.treeNodeIconWidth,height:this.props.treeNodeIconWidth,userTreeNode:t,finishedUserDecksCount:t?t.finishedUserDecksCount:0,className:n?`next`:e.webPublished&&e.webPublishedInLastWeek?`new`:null,isNextTreeNode:n,children:(0,K.jsx)(Aje,{width:(0,W.pixify)(this.props.treeNodeIconWidth),children:(0,K.jsx)(R,{bold:!0,center:!0,fontSize:`15px`,lineHeight:`17px`,children:e.name})})},e.id)}else return null})},e.id))},e.id):null)]})}})||A$,Nje=(0,Y.TreeShowWrapper)(Mje),M$,Pje=N.div` 12636 width: 100%; 12637`,Fje=N.div` 12638 width: 100%; 12639`,Ije=M(j(M$=class extends V.Component{render(){return(0,K.jsx)(Pje,{children:(0,K.jsxs)(YX,{children:[(0,K.jsxs)(Fje,{children:[!U.AppUI.user.isMember&&(U.AppUI.targetLanguage?.contentTreeDecksFinishedCount||0)>0&&(0,K.jsx)(XC,{hideCloseIcon:!0,className:`tree-onboarding`,margin:`0 0 10px 0`,children:(0,K.jsxs)(`span`,{children:[(0,K.jsxs)(`span`,{children:[`Unlocking the entire `,(0,K.jsx)(`b`,{children:`Stories`}),` section is a `]}),(0,K.jsx)(F,{to:`memberships.index`,className:`underline`,children:`Seedlang Pro`}),(0,K.jsx)(`span`,{children:` feature.`})]})}),(0,K.jsx)(Nje,{treeSlug:`master`})]}),(0,K.jsx)(T$,{})]})})}})||M$);me();var N$,Lje=N.div` 12640 ${(0,X.flexCenter)()} 12641`,Rje=N.div` 12642`,zje=N.div` 12643 ${(0,X.flexCenterColumn)()} 12644 flex: 1; 12645`,Bje=M(j(N$=class extends V.Component{render(){return(0,K.jsx)(Lje,{children:this.props.data&&this.props.data.map(e=>e.total>0&&(0,K.jsxs)(zje,{children:[(0,K.jsxs)(Rje,{"data-tip":!0,"data-for":e.label,children:[(0,K.jsx)(Fn,{vertical:!0,height:`135px`,width:`30px`,current:[e.total-e.learned-e.seen,e.seen,e.learned],total:e.total,currentColors:[`#d8d8d8`,q.Theme.orange,q.Theme.green],borderRadius:`5px`,background:`#FFF`,segmentMargin:`1.5px 0`,direction:`column`}),(0,K.jsx)(he,{place:`top`,type:`dark`,id:e.label,class:`custom-tooltip`,children:`${(0,W.formatNumber)(e.learned)} learned, ${(0,W.formatNumber)(e.seen)} seen of ${(0,W.formatNumber)(e.total)}`})]}),(0,K.jsx)(R,{bold:!0,fontSize:`14px`,margin:`10px 0 0 0`,children:e.label})]},e.label))})}})||N$),P$,F$=N.div` 12646 12647`,Vje=N.div` 12648 ${(0,X.flexCenter)()} 12649 padding: 20px 0; 12650`,Hje=N.div` 12651 ${(0,X.flexCenter)()} 12652 margin: ${e=>e.margin}; 12653`,Uje=M(j(P$=class extends V.Component{constructor(e){super(e),(0,W.isBlank)(U.VocabUI.learnedByLevel)&&U.VocabUI.getLearnedByLevel(U.AppUI.targetLanguageId)}render(){return U.VocabUI.learnedByLevelLoading?(0,K.jsx)(F$,{children:(0,K.jsx)(Vje,{children:(0,K.jsx)(P,{})})}):(0,K.jsxs)(F$,{children:[(0,K.jsx)(Bje,{data:U.VocabUI.learnedByLevel}),(0,K.jsxs)(Hje,{margin:`10px 0 0 0`,children:[(0,K.jsx)(jJ,{iconBackgroun
12653d:q.Theme.green,text:`Learned`}),(0,K.jsx)(jJ,{iconBackground:q.Theme.orange,text:`Seen`})]})]})}})||P$);D();var I$,L$;function R$(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Wje=N.div` 12654 width: 100%; 12655`,Gje=N.div` 12656 display: flex; 12657 justify-content: center; 12658 padding: 30px 0; 12659`,z$=M(j(I$=(L$=class extends V.Component{get pieChartTitle(){let e;return e=this.props.level&&this.props.wordType?`${this.props.level.abbreviation} ${this.props.wordType.formattedName}s`:this.props.level?`${this.props.level.abbreviation} Words`:this.props.wordType?`${this.props.wordType.formattedName}s`:`Words`,`${e} Progress`}get pieChartData(){let e=this.props.counts.totalWordTypeLevelCount-this.props.counts.learnedCount-this.props.counts.seenCount,t=[{y:this.props.counts.learnedCount}];return this.props.counts.seenCount>0&&t.push({y:this.props.counts.seenCount}),e>0&&t.push({y:e}),t}get colors(){let e=[q.Theme.green,`#D8D8D8`];return this.props.counts.seenCount>0&&e.splice(1,0,q.Theme.orange),e}render(){return(0,K.jsxs)(Wje,{children:[!this.props.searchQuery&&(this.props.showSpinner||this.props.counts&&this.props.counts.totalWordTypeLevelCount>0)&&(0,K.jsx)(OJ,{title:this.pieChartTitle,slug:`word-type-progress`,children:this.props.showSpinner?(0,K.jsx)(Gje,{children:(0,K.jsx)(P,{})}):(0,K.jsx)(S$,{id:`learned-by-level-word-type`,colors:this.colors,data:this.pieChartData,width:160,margin:`0 0 20px 0`,count:(0,W.kFormatter)(this.props.counts.learnedCount),tooltipText:`${(0,W.formatNumber)(this.props.counts.learnedCount)} learned, ${(0,W.formatNumber)(this.props.counts.seenCount)} seen of ${(0,W.formatNumber)(this.props.counts.totalWordTypeLevelCount)}`,legends:[[q.Theme.green,`Learned`],[q.Theme.orange,`Seen`]],subText:`of ${(0,W.formatNumber)(this.props.counts.totalWordTypeLevelCount)} Words Learned`})}),(0,K.jsx)(OJ,{title:`Levels Progress`,slug:`learned-by-level`,padding:`10px 20px 20px 20px`,children:(0,K.jsx)(Uje,{})}),U.AppUI.userIsLoaded&&(0,K.jsx)(OJ,{title:`My Vocab Badges`,padding:`0 20px 10px 20px`,children:(0,K.jsx)(sy,{user:U.AppUI.user,badges:[`vocabmaster`,`gendermaster`,`pluralmaster`],showProgress:!0,width:`70px`,badgeWidth:`100%`})})]})}},R$(L$.prototype,`pieChartTitle`,[E],Object.getOwnPropertyDescriptor(L$.prototype,`pieChartTitle`),L$.prototype),R$(L$.prototype,`pieChartData`,[E],Object.getOwnPropertyDescriptor(L$.prototype,`pieChartData`),L$.prototype),R$(L$.prototype,`colors`,[E],Object.getOwnPropertyDescriptor(L$.prototype,`colors`),L$.prototype),L$))||I$);w();var B$,Kje=N.div` 12660 display: flex; 12661 flex-direction: column; 12662 width: 100%; 12663 align-items: center; 12664`,V$=N.div` 12665 width: 100%; 12666 height: 50px; 12667 position: relative; 12668 display: flex; 12669 align-items: center; 12670 justify-content: center; 12671 color: ${e=>e.color}; 12672 i { 12673 color: #FFF; 12674 position: absolute; 12675 left: -5px; 12676 top: 16px; 12677 } 12678 .fa-arrow-right { 12679 transform: rotate(-45deg); 12680 } 12681 .fa-random { 12682 padding-top: 3px; 12683 } 12684`,qje=N.div` 12685 display: flex; 12686 align-items: center; 12687 font-size: 13px; 12688 padding: 0 10px 10px 10px; 12689`,Jje=N.div` 12690 width: ${e=>e.width}; 12691 padding-right: 10px; 12692`,Yje=N.div` 12693 flex: 1; 12694 font-size: 12px; 12695 color: #333; 12696`,Xje=N.div` 12697 position: absolute; 12698 left: -5px; 12699 top: 16px; 12700`,H$=N.div` 12701 display: flex; 12702 align-items: center; 12703 justify-content: center; 12704 flex-direction: row; 12705 height: 50px; 12706 width: 100%; 12707 margin-top: ${e=>e.marginTop}; 12708 margin-bottom: 5px; 12709`,Zje=N.div` 12710 display: flex; 12711 flex-direction: column; 12712 align-items: center; 12713 width: 100%; 12714 margin-top: 20px; 12715 margin-bottom: 10px; 12716`,Qje=j(B$=class extends V.Component{render(){return(0,K.jsxs)(Kje,{children:[this.props.showSynonymTrainerBeginnerAlert&&(0,K.jsx)(B,{textAlign:`center`,width:`100%`,showCloseButton:!0,onClose:this.props.onDismissSynonymTrainerBeginnerAlert,children:this.props.synonymTrainerBeginnerAlertMessage}),this.props.cardsNotFound&&(0,K.jsxs)(B,{textAlign:`center`,width:`100%`,children:[this.props.cardsNotFoundMessage,(this.props.type===`gender`||this.props.type===`plural`)&&(0,K.jsxs)(`span`,{children:[`\xA0Please note that not all nouns can be used in the `,(0,G.capitalize)(this.props.type),` trainer.`]})]}),this.props.filterWasSet&&(0,K.jsxs)(yZ,{title:`Current Vocab Filters`,children:[(0,K.jsx)(zZ,{width:`100%`,filterSettings:this.props.filterSettingsForVocabOptions,onSetFilter:this.props.onSetFilter,padding:`5px`,disabled:!this.props.useCurrentFilter,inDeckOptions:!0,showSeenAny:!0}),(0,K.jsxs)(qje,{children:[(0,K.jsx)(Jje,{children:(0,K.jsx)(jn,{value:this.props.useCurrentFilter,onClick:this.props.toggleUseCurrentFilter})}),(0,K.jsx)(Yje,{children:`Use Current Vocab Filters`})]})]}),_(this.props.advancedFilterSettings)&&(0,K.jsx)(wZ,{margin:`0 0 20px 0`,title:`Advanced Trainer Settings`,filterSettings:this.props.advancedFilterSettings}),this.props.deckIsBeingCreated&&(0,K.jsxs)(Zje,{children:[(0,K.jsx)(P,{background:q.Theme.blue,margin:`0`}),(0,K.jsx)(R,{fontSize:`13px`,color:q.Theme.gray,margin:`10px 0 0 0`,textAlign:`center`,width:`80%`,children:this.props.spinnerText})]}),!this.props.deckIsBeingCreated&&(0,K.jsx)(H$,{children:(0,K.jsx)(I,{height:`50px`,width:`100%`,background:q.Theme.blue,onClick:()=>this.props.onCreateDeck(),margin:U.AppUI.user.isMember?`0 5px 0 0`:`0`,alignItems:`center`,children:(0,K.jsxs)(V$,{color:`#FFF`,children:[!U.AppUI.user.isMember&&(0,K.jsx)(`i`,{className:`fa fa-arrow-right`}),this.props.buttonText]})})}),!U.AppUI.user.isMember&&!this.props.deckIsBeingCreated&&(0,K.jsx)(H$,{marginTop:`10px`,children:(0,K.jsx)(I,{height:`50px`,background:q.Theme.green,onClick:()=>U.AppUI.routeStore.routeToNamed(`memberships.index`),width:`100%`,children:(0,K.jsxs)(V$,{color:`#FFF`,children:[(0,K.jsx)(Xje,{children:(0,K.jsx)(J.CrownIcon,{})}),`Unlock All Decks`]})})})]})}})||B$,$je=(0,Y.VocabOptionsWrapper)(Qje);D();var U$,W$;function G$(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var eMe=N.div` 12717 position: relative; 12718 display: flex; 12719 flex: 1; 12720 padding: ${e=>e.isMobile?0:`0 10px 10px`}; 12721 width: ${e=>e.width}; 12722 max-height: ${e=>e.maxHeight}; 12723 background: #FFF; 12724 border-bottom-left-radius: 10px; 12725 border-bottom-right-radius: 10px; 12726 justify-content: center; 12727 box-sizing: border-box; 12728`,tMe=N.div` 12729 display: flex; 12730 max-width: ${e=>e.maxWidth}; 12731 overflow: auto; 12732 min-height: ${e=>e.minHeight}; 12733 align-items: center; 12734 justify-content: ${e=>e.justifyContent}; 12735 padding: ${e=>e.padding}; 12736 flex-wrap: wrap; 12737`,nMe=N.div` 12738 font-size: 33px; 12739 color: #FFF;
12740`,rMe=j(U$=(W$=class extends V.Component{get deck_width(){return U.AppUI.layout.viewportWidth<430?U.AppUI.layout.viewportWidth/2-25:190}get widthGreaterThanDecks(){let e=U.AppUI.targetLanguageId===`DE`?1210:810;return U.AppUI.layout.leftColumnWidth>e}get mobileHeight(){return(0,W.isPresent)(this.props.searchQuery)?U.AppUI.layout.mobileContentHeight-165:U.AppUI.layout.mobileContentHeight-220}getIconComponent(e){return{CompassIcon:J.CompassIcon,CubeIcon:J.CubeIcon,HandshakeIcon:J.HandshakeIcon,JigsawIcon:J.JigsawIcon,PluralOutlineIcon:J.PluralOutlineIcon,NumbersOutlineIcon:J.NumbersOutlineIcon}[e]}render(){return(0,K.jsxs)(eMe,{isMobile:U.AppUI.layout.isMobile,width:`100%`,maxHeight:U.AppUI.layout.isMobile?(0,W.pixify)(this.mobileHeight):null,children:[U.AppUI.showVocabModal&&(0,K.jsx)(Dn,{onCloseModal:()=>U.AppUI.set(`showVocabModal`,null),top:U.AppUI.layout.isMobile?`60px`:`100px`,width:(0,W.pixify)(U.AppUI.layout.defaultModalWidth),gradient:!0,title:this.props.modalTitle,children:(0,K.jsx)($je,{onSetFilter:this.props.onSetFilter,filterSettings:this.props.filterSettings,type:U.AppUI.showVocabModal,filters:this.props.filters,selectedWordIds:this.props.selectedWordIds,trainerIsCompleted:this.props.progress[U.AppUI.showVocabModal].current===this.props.progress[U.AppUI.showVocabModal].total})}),(0,K.jsx)(tMe,{justifyContent:`center`,minHeight:U.AppUI.layout.isMobile?this.mobileHeight:null,maxWidth:U.AppUI.layout.viewportWidth>4*(this.deck_width+10)&&U.AppUI.targetLanguageId===`DE`?`90%`:`100%`,padding:`5px`,children:this.props.deckConfig.map(e=>!e.onlyForGerman||U.AppUI.targetLanguageId===`DE`||!U.AppUI.targetLanguageId?(0,K.jsx)(bJ,{overTitle:`Practice`,title:e.title,borderColor:e.disabled?`#777`:e.borderColor,width:this.deck_width,marginRight:`10px`,onClick:()=>this.props.onClick(e.type),progressCurrent:e.progress.current,progressTotal:e.progress.total,progressLabel:e.progressLabel,disabled:e.disabled,showLockIcon:e.useDisabledProp?void 0:e.disabled,new:e.showNewLabel,children:(0,K.jsx)(eZ,{showLockIcon:e.disabled,disabled:e.disabled,iconWidth:`${e.iconWidth}px`,width:this.deck_width-10,widthOffsets:[10,60,100],background:e.background,backgroundColors:e.background?void 0:e.webBackgroundColors||e.backgroundColors,iconMarginTop:e.webIconMarginTop===void 0?e.iconMarginTop===void 0?void 0:`${e.iconMarginTop}px`:e.webIconMarginTop,iconMarginLeft:e.webIconMarginLeft===void 0?e.iconMarginLeft===void 0?void 0:`${e.iconMarginLeft}px`:e.webIconMarginLeft,children:e.iconType===`text`?(0,K.jsx)(nMe,{children:`Aa`}):(0,K.jsx)(this.getIconComponent(e.iconName),{})})},e.type):null)})]})}},G$(W$.prototype,`deck_width`,[E],Object.getOwnPropertyDescriptor(W$.prototype,`deck_width`),W$.prototype),G$(W$.prototype,`widthGreaterThanDecks`,[E],Object.getOwnPropertyDescriptor(W$.prototype,`widthGreaterThanDecks`),W$.prototype),G$(W$.prototype,`mobileHeight`,[E],Object.getOwnPropertyDescriptor(W$.prototype,`mobileHeight`),W$.prototype),W$))||U$,iMe=(0,Y.VocabDecksWrapper)(rMe);w();var K$,aMe=N.div` 12741 width: 100%; 12742`,oMe=N.div` 12743 position: relative; 12744 width: 100%; 12745 max-width: ${e=>e.maxWidth}; 12746`,sMe=N.div` 12747 display: flex; 12748 margin-bottom: 10px; 12749 margin-top: ${e=>e.marginTop}; 12750`,cMe=N.div` 12751 display: flex; 12752 flex-direction: row; 12753 margin-top: 10px; 12754`,q$=N.div` 12755 flex: 1; 12756 display: flex; 12757 margin-right: ${e=>e.marginRight}; 12758 margin-left: ${e=>e.marginLeft}; 12759 align-items: center; 12760 justify-content: center; 12761 height: 40px; 12762 border-top-right-radius: 10px; 12763 border-top-left-radius: 10px; 12764 background: ${e=>e.background}; 12765 cursor: pointer; 12766 font-weight: bold; 12767 font-size: 14px; 12768`,lMe=N.div` 12769 background: #FFF; 12770 padding-top: 10px; 12771 border-bottom-left-radius: 10px; 12772 border-bottom-right-radius: 10px; 12773`,uMe=N.div` 12774 display: flex; 12775 align-items: center; 12776 margin: 0; 12777 height: 50px; 12778 margin-top: -5px; 12779`,dMe=j(K$=class extends V.Component{componentDidMount(){window.location.href=`#top`}render(){let e=U.AppUI.user&&[U.AppUI.user.freeVocabDecksAvailableCount,U.AppUI.user.freeSynonymDecksAvailableCount,U.AppUI.user.freeGenderDecksAvailableCount,U.AppUI.user.freePluralDecksAvailableCount,U.AppUI.user.freeNumberDecksAvailableCount,U.AppUI.user.freeConjugationDecksAvailableCount,U.AppUI.user.freeCaseDecksAvailableCount].some(e=>e<=0);
12779return(0,K.jsx)(aMe,{children:(0,K.jsxs)(YX,{children:[(0,K.jsxs)(oMe,{isMobile:this.props.isMobile,maxWidth:v(U.AppUI.layout.leftColumnWidth),children:[U.AppUI.routeStore.routeName===`vocab.home`&&!U.AppUI.user.isMember&&e&&(0,K.jsxs)(XC,{hideCloseIcon:!0,className:`tree-onboarding`,margin:`0 0 10px 0`,children:[(0,K.jsx)(QI,{children:(0,K.jsxs)(F,{to:`memberships.index`,className:`underline`,children:[`Go Pro to create custom `,(0,K.jsx)(`b`,{children:`Vocab Trainer`}),` decks.`]})}),(0,K.jsx)(Xl,{children:(0,K.jsxs)(`span`,{children:[(0,K.jsxs)(`span`,{children:[`Creating unlimited custom `,(0,K.jsx)(`b`,{children:`Vocab Trainer`}),` decks is a `]}),(0,K.jsx)(F,{to:`memberships.index`,className:`underline`,children:`Seedlang Pro`}),(0,K.jsx)(`span`,{children:` feature.`})]})})]}),(0,K.jsx)(sMe,{marginTop:U.AppUI.layout.isMobile?`10px`:`0`,children:(0,K.jsx)(qZ,{placeholder:`Search for a word`,onChange:this.props.onUpdateSearchQuery,insertText:this.props.insertText,focusOnId:this.props.searchQuery,value:this.props.searchQuery,caretPosition:this.props.caretPosition,maxLength:100,background:`#FFF`})}),(0,W.isBlank)(this.props.searchQuery)&&(0,K.jsx)(uMe,{children:(0,K.jsx)(UZ,{filterName:`Vocab Filters`,noFiltersSelectedMessage:this.props.noFiltersSelectedMessage,filterSettings:this.props.filterSettings,onSetFilter:this.props.onSetFilter,searchQuery:this.props.searchQuery,hasActiveFilter:this.props.hasActiveFilter,onToggleFiltersExpanded:this.props.onToggleFiltersExpanded,setShowFilterOptions:this.props.setShowFilterOptions,showFilterOptions:this.props.showFilterOptions,filteredItemsCount:this.props.filteredItemsCount,filteredItemsType:`Word`,width:`100%`})}),(0,K.jsxs)(cMe,{children:[(0,K.jsx)(q$,{marginRight:`5px`,background:this.props.showTrainersTab?`#FFF`:`#CCC`,onClick:()=>this.props.onSetVocabTab(`trainers`),children:`Trainers`}),(0,K.jsx)(q$,{marginLeft:`5px`,background:this.props.showTrainersTab?`#CCC`:`#FFF`,onClick:()=>this.props.onSetVocabTab(`wordList`),children:`Dictionary`})]}),(0,K.jsxs)(lMe,{children:[this.props.showTrainersTab&&(0,K.jsx)(iMe,{onSetFilter:this.props.onSetFilter,filters:this.props.filters,selectedWordIds:this.props.selectedWordIds,filterSettings:this.props.filterSettings,languageId:U.AppUI.targetLanguageId,searchQuery:this.props.searchQuery}),this.props.vocabTab===`wordList`&&(0,K.jsx)(HQ,{...this.props,removeMobileEdgePadding:!0})]})]}),(0,K.jsx)(z$,{...this.props})]})})}})||K$,fMe=pf((0,Y.VocabWrapper)(dMe));D();var J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1;function d1(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function f1(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var pMe=N.div` 12780 .sentence-create { 12781 .spinner { 12782 margin-bottom: 20px; 12783 } 12784 textarea { 12785 width: 100%; 12786 margin-bottom: 10px; 12787 height: 34px; 12788 font-size: 14px; 12789 line-height: 16px; 12790 } 12791 .targetText { 12792 margin-bottom: 0; 12793 } 12794 .characters-remaining { 12795 font-size: 11px; 12796 margin-bottom: 10px; 12797 line-height: 15px; 12798 } 12799 .lookup-grammar { 12800 margin-bottom: 5px; 12801 } 12802 } 12803`,mMe=N.div` 12804 cursor: pointer; 12805 padding: 10px; 12806 font-size: 12px; 12807 background: ${e=>e.background}; 12808 color: ${e=>e.color}; 12809 margin: 0 10px 10px 0; 12810 border-radius: 10px; 12811`,hMe=N.div` 12812 text-decoration: underline; 12813 margin: 0 0 10px 3px; 12814 cursor: pointer; 12815 font-size: 14px; 12816`,p1=j(J$=(Y$=class extends V.Component{constructor(e){super(e),d1(this,`targetText`,X$,this),d1(this,`sourceText`,Z$,this),d1(this,`answerTargetText`,Q$,this),d1(this,`answerSourceText`,$$,this),d1(this,`conceptId`,e1,this),d1(this,`showSpinner`,t1,this),d1(this,`showNumberWarning`,n1,this),d1(this,`showSentenceCountWarning`,r1,this),d1(this,`showQuotationMarkSpaceWarning`,i1,this),d1(this,`showTriviaOptionInputs`,a1,this),d1(this,`triviaAnswer1`,o1,this),d1(this,`triviaAnswer2`,s1,this),d1(this,`triviaAnswer3`,c1,this),d1(this,`triviaAnswer4`,l1,this),d1(this,`languageId`,u1,this),this.updateTargetText=()=>{let e=this.targetTextRef.current.value.replace(/\.{3}/g,q.Constants.SPECIAL_PUNCTUATION.ELLIPSIS);RegExp(`([.?!]|.+${q.Constants.SPECIAL_PUNCTUATION.ELLIPSIS})\\s*\\S`).test(e)?(this.showSentenceCountWarning=!0,this.targetText=this.targetTextRef.current.value):this.targetTextRef.current.value.match(/\d+/)?(this.showNumberWarning=!0,this.targetText=this.targetTextRef.current.value):this.targetTextRef.current.value.match(/(«\s)|(\s»)/
12816)?(this.showQuotationMarkSpaceWarning=!0,this.targetText=this.targetTextRef.current.value):(this.showNumberWarning=!1,this.showSentenceCountWarning=!1,this.showQuotationMarkSpaceWarning=!1,this.targetText=this.targetTextRef.current.value)},this.onChange=()=>{this.characterCount=this.targetTextRef.current.value.length},this.onClick=()=>{(0,W.isPresent)(this.targetTextRef.current.value)&&(0,W.isPresent)(this.sourceTextRef.current.value)&&(this.showSpinner=!0,H.SentenceStore.create({data:{targetText:this.targetText,sourceText:this.sourceText,answerTargetText:this.answerTargetText,answerSourceText:this.answerSourceText,interjectionId:this.props.interjectionId,questionId:this.props.questionId,conceptIds:(0,W.isPresent)(this.conceptId)?[this.conceptId]:null,timestamp:``,triviaAnswer1:this.triviaAnswer1,triviaAnswer2:this.triviaAnswer2,triviaAnswer3:this.triviaAnswer3,triviaAnswer4:this.triviaAnswer4,submittedBy:this.props.submittedBy,triviaWordId:this.props.triviaWordId,languageId:this.languageId}},this.afterCreate),this.targetText=``,this.sourceText=``,this.answerTargetText=``,this.answerSourceText=``,this.triviaAnswer1=``,this.triviaAnswer2=``,this.triviaAnswer3=``,this.triviaAnswer4=``)},this.afterCreate=e=>{this.showSpinner=!1,this.props.afterCreate&&this.props.afterCreate(e)},this.onEnterPressClick=e=>{if(e.key===`Enter`)return this.onClick()},this.answerSourceTextRef=V.createRef(),this.answerTargetTextRef=V.createRef(),this.sourceTextRef=V.createRef(),this.targetTextRef=V.createRef()}get characterCount(){return this.targetText.length}componentDidMount(){H.AssignableConceptStore.getIndex({limit:9999}),this.languageId=(0,G.keys)(q.Constants.LANGUAGE_OPTIONS).includes(U.AppUI.user.targetLanguageId)?U.AppUI.user.targetLanguageId:`DE`}render(){return(0,K.jsx)(pMe,{children:(0,K.jsxs)(`div`,{className:`sentence-create translation-create`,children:[this.showSpinner&&(0,K.jsx)(P,{className:`blue`}),(0,K.jsx)(`div`,{children:(0,G.keys)(q.Constants.LANGUAGE_OPTIONS).map(e=>(0,K.jsx)(mMe,{onClick:()=>this.languageId=e,background:this.languageId===e?q.Theme.green:`#CCC`,color:this.languageId===e?`#FFF`:`#333`,children:q.Constants.LANGUAGE_OPTIONS[e]}))}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`input`,{className:`targetText`,type:`text`,maxLength:`110`,placeholder:this.showTriviaOptionInputs?`Enter a Trivia Question`:`Enter a Sentence`,onChange:()=>this.updateTargetText(),ref:this.targetTextRef,value:this.targetText}),(0,K.jsxs)(`div`,{className:`characters-remaining`,children:[`Characters remaining: `,110-this.characterCount]}),this.showNumberWarning&&(0,K.jsx)(B,{margin:`0 0 10px 0`,children:`Numbers should be spelled out whenever possible, ex '100' should be 'hundert'.`}),this.showSentenceCountWarning&&(0,K.jsx)(B,{margin:`0 0 10px 0`,children:`Only one sentence should be added at a time.`}),this.showQuotationMarkSpaceWarning&&(0,K.jsx)(B,{margin:`0 0 10px 0`,children:`Please do not include spaces just after or before quotation marks.`})]}),(0,K.jsx)(`div`,{children:(0,K.jsx)(`input`,{type:`text`,placeholder:`Enter an English Translation`,value:this.sourceText,onChange:()=>this.sourceText=this.sourceTextRef.current.value,ref:this.sourceTextRef,onKeyPress:this.onEnterPressClick})}),!this.props.simple&&!this.showTriviaOptionInputs&&(0,K.jsx)(hMe,{onClick:()=>this.showTriviaOptionInputs=!0,children:`Show Trivia Fields`}),!this.props.simple&&this.showTriviaOptionInputs&&(0,K.jsxs)(`div`,{style:{marginTop:`10px`},children:[(0,K.jsxs)(`div`,{style:{marginBottom:10},children:[(0,K.jsx)(`div`,{style:{paddingRight:10,display:`inline-block`,width:`50%`},children:(0,K.jsx)(`input`,{value:this.triviaAnswer1,onChange:e=>this.triviaAnswer1=e.target.value,placeholder:`Correct Option`})}),(0,K.jsx)(`div`,{style:{display:`inline-block`,width:`50%`},children:(0,K.jsx)(`input`,{value:this.triviaAnswer2,onChange:e=>this.triviaAnswer2=e.target.value,placeholder:`Incorrect Option 1`})})]}),(0,K.jsxs)(`div`,{style:{marginBottom:10},children:[(0,K.jsx)(`div`,{style:{paddingRight:10,display:`inline-block`,width:`50%`},children:(0,K.jsx)(`input`,{value:this.triviaAnswer3,onChange:e=>this.triviaAnswer3=e.target.value,placeholder:`Incorrect Option 2`})}),(0,K.jsx)(`div`,{style:{display:`inline-block`,width:`50%`},children:(0,K.jsx)(`input`,{value:this.triviaAnswer4,onChange:e=>this.triviaAnswer4=e.target.value,placeholder:`Incorrect Option 3`})})]}),(0,K.jsx)(`div`,{style:{marginBottom:10},children:(0,K.jsx)(`input`,{type:`text`,maxLength:`110`,placeholder:`Enter a Trivia Answer`,onChange:()=>this.answerTargetText=this.answerTargetTextRef.current.value,ref:this.answerTargetTextRef,value:this.answerTargetText})}),(0,K.jsx)(`div`,{style:{marginBottom:10},children:(0,K.jsx)(`input`,{type:`text`,maxLength:`110`,placeholder:`Enter an English Translation`,onChange:()=>this.answerSourceText=this.answerSourceTextRef.current.value,ref:this.answerSourceTextRef,value:this.answerSourceText})})]}),(0,K.jsx)(`div`,{children:(0,K.jsx)(sa,{disabled:(0,W.isBlank)(this.targetText),onClick:this.onClick,children:`Create`})})]})})}},X$=f1(Y$.prototype,`targetText`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.targetText||``}}),Z$=f1(Y$.prototype,`sourceText`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.sourceText||``}}),Q$=f1(Y$.prototype,`answerTargetText`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),$$=f1(Y$.prototype,`answerSourceText`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),e1=f1(Y$.prototype,`conceptId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.conceptId}}),t1=f1(Y$.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n1=f1(Y$.prototype,`showNumberWarning`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r1=f1(Y$.prototype,`showSentenceCountWarning`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i1=f1(Y$.prototype,`showQuotationMarkSpaceWarning`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a1=f1(Y$.prototype,`showTriviaOptionInputs`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.showTriviaOptionInputs}}),o1=f1(Y$.prototype,`triviaAnswer1`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),s1=f1(Y$.prototype,`triviaAnswer2`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),c1=f1(Y$.prototype,`triviaAnswer3`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),l1=f1(Y$.prototype,`triviaAnswer4`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),u1=f1(Y$.prototype,`languageId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f1(Y$.prototype,`characterCount`,[E],Object.getOwnPropertyDescriptor(Y$.prototype,`characterCount`),Y$.prototype),Y$))||J$;async function gMe({worksheetId:e,filters:t,sort:n},r=()=>
12816!1){if(r())return[];let i=e;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)){let t=new H.WorksheetStore.constructor,n=await new Promise((n,r)=>{t.getShow({ids:{worksheetId:e}},n,{failureCallback:r,onRequestError:r,timeout:15e3})});if(r())return[];if(!n?.id)throw Error(`Worksheet not found`);i=n.id}let a=new H.WorksheetWordStore.constructor,o=new Set,s=0;for(let e=1;!r();e+=1){a.setPage(e);let c=await new Promise((e,r)=>{a.getIndex({ids:{worksheetId:i},filters:t,sort:n,limit:100,failureCallback:r,onRequestError:r,timeout:15e3},e)});if(r())return[];if(a.setIndexData(c),a.indexData.forEach(e=>{!e.invalid&&e.word?.id&&o.add(e.word.id)}),s+=a.indexData.length,!a.indexData.length||(a.totalCount==null?a.indexData.length<100:s>=a.totalCount))break}return[...o]}function _Me(){let{worksheetId:e,wordId:t}=l(),n=h(),r=d(),i=n.state?.worksheetNavigation,[a,o]=(0,V.useState)({loading:!0,wordIds:[]}),[s,c]=(0,V.useState)(0);(0,V.useEffect)(()=>{let t=!1,n=i?.worksheetId===e?i:null;if(n?.wordIds){o({loading:!1,wordIds:n.wordIds});return}return o({loading:!0,wordIds:[]}),gMe({worksheetId:e,filters:n?.filters||{},sort:n?.sort},()=>t).then(e=>{t||o({loading:!1,wordIds:e})}).catch(()=>{t||o({loading:!1,wordIds:[],error:!0})}),()=>{t=!0}},[e,i,s]);let u=a.wordIds.indexOf(t),f=e=>u>=0&&a.wordIds[u+e];return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(d$,{label:`Worksheet vocabulary navigation`,loading:a.loading,canNavigate:f,onNavigate:t=>{let o=f(t);a.loading||!o||r({pathname:`${n.pathname.replace(/\/[^/]+\/?$/,``)}/${encodeURIComponent(o)}`,search:n.search},{state:{...n.state,worksheetNavigation:{...i,worksheetId:e,wordIds:a.wordIds}}})}}),a.error&&(0,K.jsxs)(`div`,{role:`alert`,style:{paddingTop:32},children:[`Couldnât load worksheet words. `,(0,K.jsx)(`button`,{type:`button`,onClick:()=>c(s+1),children:`Try again`})]})]})}D();var m1,h1,g1;function vMe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function _1(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var yMe=N.div` 12817 margin: ${e=>e.margin}; 12818 width: 100%; 12819 position: relative; 12820 font-size: 16px; 12821 flex: 1; 12822 border-radius: ${e=>e.rounded?`12px`:`0`}; 12823 overflow: hidden; 12824 .word { 12825 margin: 0 1px 0 0; 12826 margin-bottom: 0; 12827 font-size: 16px; 12828 line-height: 22px; 12829 cursor: default; 12830 border: 1px solid transparent; 12831 } 12832 .word.highlight { 12833 background: #feffdc; 12834 border-radius: 5px; 12835 } 12836 .vocab-underline { 12837 display: block; 12838 margin-bottom: 10px; 12839 } 12840`,bMe=N.div` 12841 background: white; 12842 border-radius: 5px; 12843 padding: ${e=>e.isMobile?`20px 0`:`20px 10px`}; 12844 position: relative; 12845`,v1=N.div` 12846 margin: ${e=>e.margin}; 12847 ${(0,X.flexCenter)()} 12848`,xMe=N.div` 12849 ${(0,X.flexCenter)()} 12850 gap: 10px; 12851 flex-direction: column; 12852`,SMe=N.div` 12853 font-size: 11px; 12854 text-decoration: underline; 12855 background: #ECECEC; 12856 text-align: center; 12857 padding: 5px; 12858`,CMe=N.div` 12859 background: white; 12860 border-radius: 5px; 12861 padding: ${e=>e.isMobile?`10px 0 0`:`10px`}; 12862 margin-top: 10px; 12863`,wMe=N.div` 12864 display: flex; 12865 flex-direction: column; 12866 align-items: center; 12867 justify-content: center; 12868 font-size: 13px; 12869 font-weight: bold; 12870 width: 180px; 12871 height: 180px; 12872 border-radius: 180px; 12873 background: #CCC; 12874 margin-bottom: 10px; 12875 text-align: center; 12876 padding: 20px; 12877 border-radius: 2px solid #a5a5a5; 12878`,TMe=N.div` 12879 display: flex; 12880 flex-direction: column; 12881 align-items: center; 12882 justify-content: center; 12883`,EMe=N.div` 12884 width: ${e=>e.size}px; 12885 height: ${e=>e.size}px; 12886 display: flex; 12887 align-items: center; 12888 justify-content: center; 12889`,DMe=j(m1=(h1=class extends V.Component{constructor(...e){super(...e),vMe(this,`showTriviaQuestionModal`,g1,this),this.playSentenceVideo=e=>{document.getElementById(`top`).scrollIntoView(),this.props.playSentenceVideo(e)}}componentDidMount(){document.getElementById(`top`).scrollIntoView()}get fontSize(){return U.AppUI.layout.isMobile?`13px`:`16px`}get lineHeight(){return U.AppUI.layout.isMobile?`17px`:`22px`}get targetText(){return U.AppUI.site.hideDefiniteArticle?this.props.word.targetTextWithGender:this.props.word.targetTextWithDefiniteArticle}get pluralTargetText(){return U.AppUI.site.hideDefiniteArticle?this.props.word.pluralNounsStringWithoutDefiniteArticle:this.props.word.pluralNounsString}get genderVariantTargetText(){return U.AppUI.site.hideDefiniteArticle?this.props.word.genderVariant.targetTextWithGender:this.props.word.genderVariant.targetTextWithDefiniteArticle}render(){let e=this.props.rowMargin||`5px 0`,t=U.AppUI.layout.isMobile?150:180,n=U.AppUI.userIsLoaded&&(U.AppUI.siteIsDefault||[`DE`,`ES`,`FR`].includes(U.AppUI.site.languageId))?(0,K.jsx)(Bi,{interfaceSource:`vocab-word`,buttonText:U.AppUI.siteIsDefault?`Add to Reviews`:`Add to Seedlang`,buttonHeight:`30px`,width:`240px`,buttonBackgroun
12889d:`#FFF`,margin:`0`,word:this.props.word}):null;return(0,K.jsxs)(K.Fragment,{children:[this.props.params.worksheetId&&(0,K.jsx)(_u,{showAsBreadcrumbs:U.AppUI.layout.isMobile,worksheetId:this.props.params.worksheetId,margin:`10px 0`}),(0,K.jsxs)(yMe,{margin:this.props.params.worksheetId?`10px 0 0 0`:null,rounded:!U.AppUI.siteIsDefault,children:[this.showTriviaQuestionModal&&(0,K.jsx)(Dn,{onCloseModal:()=>this.showTriviaQuestionModal=!1,children:(0,K.jsx)(p1,{showTriviaOptionInputs:!0,triviaWordId:this.props.word.id})}),(0,K.jsxs)(bMe,{isMobile:U.AppUI.layout.isMobile,children:[this.props.params.worksheetId&&(0,K.jsx)(_Me,{}),(0,K.jsxs)(v1,{children:[!this.props.hasVideoClip&&(0,K.jsxs)(TMe,{children:[this.props.showSpinner&&(0,K.jsx)(EMe,{size:t}),!this.props.showSpinner&&(0,K.jsxs)(wMe,{children:[(0,K.jsx)(`span`,{role:`img`,"aria-label":`video camera`,children:`ð¹`}),` `,`We will record a video for this word soon!`]})]}),this.props.hasVideoClip&&(0,K.jsx)(Yi,{hasVideoClip:!0,autoPlay:this.props.autoPlay,width:t,videoClip:this.props.videoClip,supplementVideoClip:this.props.supplementVideoClip}),this.props.supplementImageUrl&&(0,K.jsx)(uO,{width:Math.floor(U.DeckUI.layout.deckWidth/2.8),src:this.props.supplementImageUrl})]}),this.props.word&&this.props.word.id&&(0,K.jsx)(v1,{margin:`10px 0 0 0`,children:(0,K.jsxs)(xMe,{children:[U.AppUI.siteIsDefault?n:(0,K.jsx)(MQ,{autoOpenUiElement:this.props.location?.query?.from===`vocab-list`?`worksheet-vocab-seedlang-explainer`:null,isPodcastEpisode:U.AppUI.routeStore.routeName===`podcast.vocab.word`,children:n}),U.AppUI.siteIsDefault&&(0,K.jsx)(Hi,{word:this.props.word})]})}),!!this.props.word?.id&&(0,K.jsx)(UB,{afterFlag:this.props.getWord,...this.props,rowMargin:e}),this.props.word.concepts?.length>0&&(0,K.jsx)(KB,{word:this.props.word,expandedId:this.props.expandedId,onClickRow:this.props.onClickRow,rowMargin:e}),this.props.word&&(0,K.jsx)(lz,{word:this.props.word,showFrequencyWithProgress:!0})]}),this.props.word&&(0,K.jsx)(CMe,{isMobile:U.AppUI.layout.isMobile,children:(0,K.jsxs)(oJ,{loading:this.props.showSpinner,tabs:this.props.tabs,tabPadding:`10px`,contentPadding:`10px 0`,fontSize:U.AppUI.layout.isMobile?`11px`:`13px`,children:[(0,K.jsx)(WR,{showSpinner:this.props.showSpinner,showVocabTriad:!0,inDeck:this.props.inDeck,wordSentenceStore:this.props.wordSentenceStore,word:this.props.word,playSentenceVideo:this.playSentenceVideo,wordId:this.props.params.wordId,fontSize:this.fontSize,lineHeight:this.lineHeight,isMobile:U.AppUI.layout.isMobile,pro:U.AppUI.user.isMember,onToggleCreateReview:this.props.onToggleCreateReview,hasReview:this.props.hasReview,onClickSentence:this.props.onClickSentence,popupSentenceId:this.props.location?.query?.sentence}),(0,K.jsx)(rF,{expanded:!0,word:this.props.word,loadOnMount:!0,wordId:this.props.word.id,hideTitle:!0,padding:`0`,commentLayout:`forum`,forumPadding:U.AppUI.layout.isMobile?`10px`:null,indentation:U.AppUI.layout.isMobile?20:null}),this.props.showConjugationsTab&&(0,K.jsx)(`div`,{children:this.props.conjugationsError?(0,K.jsx)(I,{onClick:this.props.getConjugations,children:`Retry Loading Conjugations`}):this.props.verbConjugationsLoaded?(0,K.jsx)(Ui,{blockUnmount:!0,expand:!0,word:this.props.word,conjugatedVerbStrings:this.props.conjugatedVerbStringStore?.indexData,labelMargin:`0`}):(0,K.jsx)(P,{margin:`30px auto`})})]})}),U.AppUI.user.admin&&this.props.params.wordId&&(0,K.jsx)(SMe,{children:(0,K.jsx)(`a`,{href:`${window.location.hostname.includes(`ngrok`)||window.location.hostname.includes(`localhost`)?`http://localhost:3011`:`https://seedlang.com`}/builder/words/${this.props.params.wordId}`,target:`_blank`,rel:`noopener noreferrer`,children:`Admin Link`})})]})]})}},g1=_1(h1.prototype,`showTriviaQuestionModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_1(h1.prototype,`fontSize`,[E],Object.getOwnPropertyDescriptor(h1.prototype,`fontSize`),h1.prototype),_1(h1.prototype,`lineHeight`,[E],Object.getOwnPropertyDescriptor(h1.prototype,`lineHeight`),h1.prototype),_1(h1.prototype,`targetText`,[E],Object.getOwnPropertyDescriptor(h1.prototype,`targetText`),h1.prototype),_1(h1.prototype,`pluralTargetText`,[E],Object.getOwnPropertyDescriptor(h1.prototype,`pluralTargetText`),h1.prototype),_1(h1.prototype,`genderVariantTargetText`,[E],Object.getOwnPropertyDescriptor(h1.prototype,`genderVariantTargetText`),h1.prototype),h1))||m1,y1=pf((0,Y.VocabWordWrapper)(DMe));D();var b1,x1,S1,C1,w1,T1,E1,D1;function O1(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function k1(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var OMe=N.div` 12890 max-width: 500px; 12891 select { 12892 height: 40px; 12893 } 12894 .page-onboarding { 12895 box-shadow: none; 12896 margin-bottom: 20px; 12897 } 12898`,kMe=M(j(b1=(x1=class extends V.Component{get disableSubmit(){return(0,W.isBlank)(this.targetText)||(0,W.isBlank)(this.sourceText)||(0,W.isBlank)(this.wordTypeId)||(0,W.isBlank)(this.levelId)||this.isNoun&&(0,W.isBlank)(this.gender)}get wordTypes(){return(0,G.sortBy)(U.AppUI.wordTypeStore.indexData.filter(e=>e.showInVocabTrainer).map(e=>[e.id,e.formattedName]),e=>e[1])}get isNoun(){return this.selectedWordType&&this.selectedWordType.n
12898ame===`Noun`}get levels(){return U.AppUI.levelStore.indexData.filter(e=>[`A1`,`A2`,`B1`,`B2`].includes(e.abbreviation))}get selectedWordType(){return this.wordTypeId?U.AppUI.wordTypeStore.indexData.find(e=>e.id===this.wordTypeId):null}constructor(e){super(e),O1(this,`showVocabCreatedMessage`,S1,this),O1(this,`targetText`,C1,this),O1(this,`sourceText`,w1,this),O1(this,`wordTypeId`,T1,this),O1(this,`levelId`,E1,this),O1(this,`gender`,D1,this),this.onSubmit=()=>{this.disableSubmit||U.AppUI.wordStore.create({data:{gender:this.gender,pending_approval:!0,submitted_by_id:U.DeckUI.user.id,root:!0,word_type_id:this.wordTypeId,level_id:this.levelId,target_text:this.targetText,source_text:this.sourceText}},this.afterSubmit)},this.afterSubmit=()=>{this.showVocabCreatedMessage=!0,this.targetText=``,this.sourceText=``,this.wordTypeId=null,this.levelId=null,this.gender=null,setTimeout(this.hideVocabCreatedMessage,5e3)},this.hideVocabCreatedMessage=()=>{this.showVocabCreatedMessage=!1},U.AppUI.wordTypeStore.hasIndexData||U.AppUI.wordTypeStore.getIndex(),U.AppUI.levelStore.hasIndexData||U.AppUI.levelStore.getIndex()}render(){return(0,K.jsxs)(OMe,{children:[this.showVocabCreatedMessage&&(0,K.jsx)(B,{state:`success`,margin:`0 0 20px 0`,children:`This word was successfully added.`}),(0,K.jsx)(R,{heading:`3`,margin:`20px 0 20px 0`,children:`Add Word`}),(0,K.jsxs)(`div`,{className:`form-group`,children:[(0,K.jsx)(R,{bold:!0,children:`Target`}),(0,K.jsx)(`textarea`,{value:this.targetText,onChange:e=>this.targetText=e.target.value})]}),(0,K.jsxs)(`div`,{className:`form-group`,children:[(0,K.jsx)(R,{bold:!0,margin:`20px 0 0 0`,children:`English`}),(0,K.jsx)(`textarea`,{value:this.sourceText,onChange:e=>this.sourceText=e.target.value})]}),(0,K.jsxs)(`div`,{className:`form-group`,children:[(0,K.jsx)(R,{bold:!0,margin:`20px 0 0 0`,children:`Level`}),(0,K.jsx)(Fi,{allowUpdate:!0,includeBlank:!0,value:this.levelId,options:this.levels&&this.levels.map(e=>[e.id,e.abbreviation]),onChange:e=>this.levelId=e})]}),(0,K.jsxs)(`div`,{className:`form-group`,children:[(0,K.jsx)(R,{bold:!0,margin:`20px 0 0 0`,children:`Word Type`}),(0,K.jsx)(Fi,{allowUpdate:!0,includeBlank:!0,value:this.wordTypeId,options:this.wordTypes,onChange:e=>this.wordTypeId=e})]}),this.isNoun&&(0,K.jsxs)(`div`,{className:`form-group`,children:[(0,K.jsx)(R,{bold:!0,margin:`20px 0 0 0`,children:`Gender`}),(0,K.jsx)(Fi,{allowUpdate:!0,includeBlank:!0,value:this.gender,options:[[`feminine`,`feminine`],[`masculine`,`masculine`],[`neuter`,`neuter`]],onChange:e=>this.gender=e})]}),(0,K.jsx)(I,{onClick:this.onSubmit,disabled:this.disableSubmit,margin:`20px 0 0 0`,children:`Submit`})]})}},S1=k1(x1.prototype,`showVocabCreatedMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C1=k1(x1.prototype,`targetText`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),w1=k1(x1.prototype,`sourceText`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),T1=k1(x1.prototype,`wordTypeId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E1=k1(x1.prototype,`levelId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D1=k1(x1.prototype,`gender`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k1(x1.prototype,`disableSubmit`,[E],Object.getOwnPropertyDescriptor(x1.prototype,`disableSubmit`),x1.prototype),k1(x1.prototype,`wordTypes`,[E],Object.getOwnPropertyDescriptor(x1.prototype,`wordTypes`),x1.prototype),k1(x1.prototype,`isNoun`,[E],Object.getOwnPropertyDescriptor(x1.prototype,`isNoun`),x1.prototype),k1(x1.prototype,`levels`,[E],Object.getOwnPropertyDescriptor(x1.prototype,`levels`),x1.prototype),k1(x1.prototype,`selectedWordType`,[E],Object.getOwnPropertyDescriptor(x1.prototype,`selectedWordType`),x1.prototype),x1))||b1),A1,AMe=N.div` 12899`,jMe=N.div` 12900 width: 100%; 12901 display: flex; 12902 flex-direction: column; 12903 align-items: center; 12904 padding: ${e=>e.padding}; 12905`,MMe=N.span` 12906 background: ${q.Theme.green}; 12907 color: white; 12908 margin: 0 5px 0 0; 12909 padding: 3px 10px; 12910 border-radius: 5px; 12911`,NMe=M(j(A1=class extends V.Component{constructor(e){super(e),U.AppUI.userTreeNodeStore.hasIndexData||U.AppUI.userTreeNodeStore.getIndex(),U.AppUI.createEvent(`trivia - view page`)}componentWillUnmount(){U.TreeUI.treeStore.clearShowData()}render(){return(0,K.jsxs)(AMe,{children:[!U.AppUI.user.isMember&&(U.AppUI.targetLanguage?.triviaDecksFinishedCount||0)>0&&(0,K.jsxs)(XC,{hideCloseIcon:!0,className:`tree-onboarding`,margin:U.AppUI.layout.isMobile?`0`:`0 0 10px 0`,children:[(0,K.jsx)(MMe,{children:U.TreeUI.user.freeGamesAvailableCount<=0?0:U.TreeUI.user.freeGamesAvailableCount}),`Free Game`,U.TreeUI.user.freeGamesAvailableCount===1?null:`s`,` Remaining.`,(0,K.jsxs)(F,{to:`memberships.index`,className:`underline`,style:{marginLeft:5},children:[`Unlock all `,(0,K.jsx)(`b`,{children:`Trivia Games`}),`.`]})]}),(0,K.jsx)(LM,{title:`TRIVIA`,titleRoute:`trivia.home`,pageInfo:[{route:`trivia.progress`,current:`Progress`}],icons:[{icon:(0,K.jsx)(J.FaqIcon,{}),tooltipText:`Help Center`,iconRoute:`faq_categories.show`,iconParams:{faqCategoryId:`afaf027c-ba41-4a7f-bad7-50d60
129115d4fc7d`}},{icon:(0,K.jsx)(J.GraphOutlineIcon,{}),tooltipText:`View Progress`,iconRoute:`trivia.progress`,breadcrumb:`Progress`}]}),(0,K.jsx)(jMe,{children:(0,K.jsx)(f,{})})]})}})||A1),j1,PMe={A1:`#2F25BB`,A2:`#383199`,B1:`#211B73`,B2:`#100B44`},FMe=N.div` 12912 position: relative; 12913 width: ${e=>e.width}; 12914 height: ${e=>e.height}; 12915 cursor: ${e=>e.cursor}; 12916 margin: ${e=>e.margin}; 12917 background: ${e=>e.disabled?`#333`:e.background}; 12918 border-top-left-radius: 35px; 12919 border-top-right-radius: 35px; 12920 border-bottom-left-radius: ${e=>e.borderBottomLeftRadius}; 12921 border-bottom-right-radius: ${e=>e.borderBottomRightRadius}; 12922 overflow: hidden; 12923 img { 12924 -webkit-filter: ${e=>e.disabled?`grayscale(1)`:`none`}; 12925 filter: ${e=>e.disabled?`gray`:`none`}; 12926 filter: ${e=>e.disabled?`grayscale(1)`:`none`}; 12927 position: absolute; 12928 z-index: 10; 12929 width: 100%; 12930 height: 100%; 12931 } 12932`,IMe=N.div` 12933 position: absolute; 12934 z-index: 9; 12935 width: 100%; 12936 height: 100%; 12937 background: repeating-linear-gradient( 12938 45deg, 12939 rgba(255, 255, 255, 0.08), 12940 rgba(255, 255, 255, 0.08) 10px, 12941 rgba(255, 255, 255, 0) 10px, 12942 rgba(255, 255, 255, 0) 20px 12943 ); 12944`,LMe=M(j(j1=class extends V.Component{render(){return(0,K.jsxs)(FMe,{disabled:this.props.disabled,borderTopLeftRadius:this.props.borderTopLeftRadius,borderTopRightRadius:this.props.borderTopRightRadius,borderBottomLeftRadius:this.props.borderBottomLeftRadius,borderBottomRightRadius:this.props.borderBottomRightRadius,width:this.props.width,height:this.props.height,cursor:this.props.cursor,margin:this.props.margin,background:this.props.level&&PMe[this.props.level],onClick:this.props.onClick,children:[(0,K.jsx)(IMe,{className:`stripes`,disabled:this.props.disabled}),(0,K.jsx)(`img`,{src:this.props.src,alt:``})]})}})||j1),M1,RMe=N.div` 12945 display: flex; 12946 flex-direction: column; 12947 align-items: center; 12948 gap: 15px; 12949 padding: 10px 5px 5px 5px; 12950`,zMe=N.div` 12951 display: flex; 12952 flex-direction: column; 12953 align-items: center; 12954 justify-content: center; 12955 width: 100%; 12956`,N1=N.div` 12957 display: flex; 12958 align-items: center; 12959 justify-content: center; 12960 flex-direction: row; 12961 height: 50px; 12962 width: 100%; 12963 margin-top: ${e=>e.marginTop}; 12964 margin-bottom: 5px; 12965`,P1=N.div` 12966 width: 100%; 12967 height: 50px; 12968 position: relative; 12969 display: flex; 12970 align-items: center; 12971 justify-content: center; 12972 color: #FFF; 12973`,BMe=N.div` 12974 font-size: 16px; 12975 line-height: 24px; 12976 text-align: center; 12977 color: #333; 12978`,VMe=N.div` 12979 font-size: 12px; 12980 line-height: 16px; 12981 text-align: center; 12982 color: #777; 12983 font-style: italic; 12984`,HMe=j(M1=class extends V.Component{render(){return this.props.show?(0,K.jsx)(Dn,{onCloseModal:this.props.onCloseModal,top:U.AppUI.layout.isMobile?`60px`:`100px`,width:U.AppUI.layout.isMobile?`90%`:U.AppUI.layout.defaultModalWidth,gradient:!0,title:`Trivia Settings`,children:(0,K.jsxs)(RMe,{children:[(0,K.jsx)(BMe,{children:(0,K.jsx)(`div`,{children:this.props.description})}),(0,K.jsxs)(zMe,{children:[(0,K.jsx)(N1,{children:(0,K.jsx)(I,{height:`50px`,width:`100%`,background:q.Theme.blue,onClick:this.props.onSelectPlayWithOpponents,alignItems:`center`,children:(0,K.jsx)(P1,{children:`Play Against Others`})})}),(0,K.jsx)(N1,{marginTop:`10px`,children:(0,K.jsx)(I,{height:`50px`,width:`100%`,background:q.Theme.blue,onClick:this.props.onSelectPlaySolo,alignItems:`center`,children:(0,K.jsx)(P1,{children:`Play Solo`})})})]}),(0,K.jsx)(VMe,{children:this.props.settingsNote})]})}):null}})||M1,F1,UMe=N.div` 12985 position: flex; 12986 display: relative; 12987`,WMe=j(F1=class extends V.Component{render(){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(HMe,{show:this.props.showTriviaOpponentsModal,onCloseModal:this.props.onCloseTriviaOpponentsModal,onSelectPlayWithOpponents:this.props.onSelectPlayWithOpponents,onSelectPlaySolo:this.props.onSelectPlaySolo,description:this.props.description,settingsNote:this.props.settingsNote}),(0,K.jsx)(bJ,{title:`${this.props.treeNode.level.abbreviation} Trivia`,width:190,new:this.props.showNewLabel,progressCurrent:this.props.sentencesSeenCount,progressTotal:this.props.treeNode.publishedSentencesCount,borderColor:!U.AppUI.user.isMember&&U.AppUI.user.freeGamesAvailableCount===0?`#777`:q.Theme.purple,marginRight:`10px`,onClick:this.props.onClickPlayTrivia,progressLabel:`Questions Seen`,disabled:!U.Ap
12987pUI.user.isMember&&U.AppUI.user.freeGamesAvailableCount===0,children:(0,K.jsx)(UMe,{children:this.props.treeNode.image&&(0,K.jsx)(LMe,{src:this.props.treeNode.image.url,width:`170px`,height:`170px`,borderTopLeftRadius:`10px`,borderTopRightRadius:`10px`,level:this.props.treeNode.level&&this.props.treeNode.level.abbreviation,disabled:!U.AppUI.user.isMember&&U.AppUI.user.freeGamesAvailableCount===0})})})]})}})||F1,GMe=(0,Y.TriviaDeckLinkWrapper)(WMe);me();var I1,KMe=N.div` 12988 flex: 1; 12989`,qMe=N.div` 12990 display: flex; 12991`,JMe=N.div` 12992 ${(0,X.flexCenterColumn)()} 12993 margin-right: 5px; 12994`,YMe=N.div` 12995 font-size: 16px; 12996 font-weight: bold; 12997 display: flex; 12998 align-items: center; 12999 color: white; 13000`,L1=M(j(I1=class extends V.Component{render(){return(0,K.jsxs)(KMe,{"data-tip":!0,"data-for":this.props.id,children:[(0,K.jsxs)(qMe,{children:[(0,K.jsx)(JMe,{children:(0,K.jsx)(Mg,{clickToProfile:!0,user:this.props.user})}),(0,K.jsx)(YMe,{children:this.props.points})]}),(0,K.jsx)(he,{place:`top`,type:`dark`,effect:`solid`,id:this.props.id,class:`custom-tooltip`,children:this.props.user&&this.props.user.name})]})}})||I1);D();var R1,z1,B1;function XMe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ZMe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var QMe=N.div` 13001 13002`,$Me=N.div` 13003 display: flex; 13004 margin-bottom: 5px; 13005 align-items: center; 13006 padding: 5px 0 5px 5px; 13007`,eNe=N.div` 13008 ${(0,X.flexCenter)()} 13009 background: ${e=>e.background}; 13010 font-size: 20px; 13011 width: 40px; 13012 color: white; 13013 border-top-left-radius: 5px; 13014 border-bottom-left-radius: 5px; 13015`,tNe=N.div` 13016 13017`,nNe=N.div` 13018 display: flex; 13019 background: #888; 13020 border-radius: 5px; 13021 margin: 0 5px 5px 5px; 13022`,rNe=N.div` 13023 background: #676767; 13024 position: relative; 13025 width: 100%; 13026 color: white; 13027 text-align: center; 13028 font-size: 11px; 13029 margin-bottom: 5px; 13030 font-style: italic; 13031 border-top-right-radius: 5px; 13032`,iNe=N.div` 13033 display: flex; 13034 flex-direction: column; 13035 width: 100%; 13036`,aNe=M(j(R1=(z1=class extends V.Component{constructor(e){super(e),XMe(this,`userDecksLoaded`,B1,this),this.afterGetUserDecks=e=>{this.userDecksLoaded=!0,U.AppUI.userDeckStore.setIndexData(e)},this.handleButtonClick=e=>{(0,W.isPresent)(e.opponentUserDeck)?U.AppUI.routeStore.routeToNamed(`trivia.decks.show`,{userDeckId:e.opponentUserDeck.id,deckId:e.deckId}):U.AppUI.routeStore.routeToNamed(`trivia.decks.show`,{userDeckId:e.id,deckId:e.deckId})},U.AppUI.userDeckStore.getIndex({queryStrings:{user_id:U.AppUI.user.id,with_opponent:!0},limit:5,filters:{exclude_from_score:!1,finished_match:!0}},this.afterGetUserDecks)}resultBackground(e){return e.won?q.Theme.green:`#676767`}render(){return(0,K.jsxs)(QMe,{children:[this.userDecksLoaded&&!U.AppUI.userDeckStore.hasIndexData&&(0,K.jsx)(R,{fontSize:`14px`,center:!0,children:`No Games Played Recently`}),U.AppUI.userDeckStore.indexData.map(e=>{let t=(0,W.isPresent)(e.opponentUserDeck);return(0,K.jsxs)(nNe,{children:[(0,K.jsx)(eNe,{background:t?this.resultBackground(e):`#676767`,children:t?(0,K.jsxs)(K.Fragment,{children:[e.won&&!e.tied&&(0,K.jsx)(`i`,{className:`fa fa-check`}),e.lost&&(0,K.jsx)(`i`,{className:`fa fa-times`}),(e.tied||!e.won&&!e.lost)&&(0,K.jsx)(`i`,{className:`fa fa-minus`})]}):(0,K.jsx)(`i`,{className:`fa fa-user`})}),(0,K.jsxs)(iNe,{children:[(0,K.jsx)(rNe,{children:e.createdAt.formatted3DigitMonth}),(0,K.jsxs)($Me,{children:[t?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(L1,{id:`${e.id}-1`,user:e.won?U.AppUI.user:e.opponentUserDeck.user,points:e.won?e.points:e.opponentUserDeck.points}),(0,K.jsx)(L1,{id:`${e.id}-2`,user:e.won?e.opponentUserDeck.user:U.AppUI.user,points:e.won?e.opponentUserDeck.points:e.points})]}):(0,K.jsx)(L1,{id:`${e.id}-solo`,user:U.AppUI.user,points:e.points}),(0,K.jsx)(tNe,{children:(0,K.jsx)(I,{fontSize:`11px`,padding:`8px`,height:`33px`,borderRadius:`5px`,margin:`0 5px 0 0`,lineHeight:`9px`,color:`#333`,disabled:U.TreeUI.disableStartNewTriviaGame,background:U.TreeUI.disableStartNewTriviaGame?null:`#FFF`,onClick:()=>this.handleButtonClick(e),children:t?`Rematch`:`Play Again`})})]})]})]},e.id)}),U.AppUI.userDeckStore.hasIndexData&&(U.AppUI.userDeckStore.indexData.length===5||U.AppUI.userDeckStore.page>1)&&(0,K.jsx)(In,{margin:`0 0 0 10px`,store:U.AppUI.userDeckStore,limit:`5`,queryStrings:{with_opponent:!0,user_id:U.AppUI.user.id},filters:{finished_match:!0}})]})}},B1=ZMe(z1.prototype,`userDecksLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z1))||R1),V1,oNe=N.div` 13037 width: 100%; 13038`,H1=M(j(V1=class extends V.Component{render(){return(0,K.jsxs)(oNe,{children:[(0,K.jsx)(OJ,{title:`Record`,children:(0,K.jsx)(RS,{won:U.AppUI.user.triviaGamesWon,lost:U.AppUI.user.triviaGamesLost,tied:U.AppUI.user.triviaGamesTied})}),(0,K.jsx)(OJ,{title:`Games Played`,children:(0,K.jsx)(aNe,{})}),U.AppUI.userIsLoaded&&(0,K.jsx)(OJ,{title:`My Trivia Badges`,padding:`0 20px 10px 20px`,children:(0,K.jsx)(sy,{user:U.AppUI.user,badges:[`brainiac`,`triviamaster`],showProgress:!0,width:`70px`,badgeWidth:`100%`})})]})}})||V1),U1,sNe=N.div` 13039 display: flex; 13040 flex-direction: column; 13041 flex: 1; 13042`,cNe=N.div` 13043 position: relative; 13044 display: flex; 13045 flex: 1; 13046 height: 300px; 13047 padding: ${e=>e.isMobile?0:`0 10px 0 0`}; 13048`,lNe=N.div` 13049 display: flex; 13050 position: absolute; 13051 width: ${e=>e.isMobile?`100%`:`calc(100% - 20px)`}; 13052 overflow: auto; 13053 height: 300px; 13054 align-items: center; 13055 padding: 0 0 0 20px; 13056 box-sizing: ${e=>e.isMobile?`border-box`:null}; 13057`,uNe=j(U1=class extends V.Component{render(){return(0,K.jsxs)(YX,{children:[(0,K.jsxs)(sNe,{children:[!U.TreeUI.triviaTree&&(0,K.jsx)(P,{}),U.TreeUI.triviaTree&&U.TreeUI.triviaTree.treeModules.map(e=>e.webPublished||U.AppUI.user.admin?(0,K.jsx)(OJ,{title:e.name,slug:e.id,disableToggle:!0,children:e.treeRows.map(e=>(0,K.jsx)(cNe,{isMobile:U.AppUI.layout.isMobile,children:(0,K.jsx)(lNe,{isMobile:U.AppUI.layout.isMobile,children:e.treeNodes.map(e=>{let t=U.AppUI.userTreeNodeStore.indexData.find(t=>t.treeNodeId===e.id);return e.webPublished||U.AppUI.user.admin?(0,K.jsx)(GMe,{treeNode:e,userTreeNode:t,marginRight:`10px`,showFirstOpenTriviaModal:!0},e.id):null})})},e.id))},e.id):(0,K.jsx)(`span`,{}))]}),(0,K.jsx)(H1,{})]})}})||U1,dNe=(0,Y.TriviaHomeWrapper)(uNe),W1,fNe=N.div` 13058 padding: 20px; 13059 border: 4px solid #FFF; 13060 width: 140px; 13061 height: 140px; 13062 border-radius: 40px; 13063 display: flex; 13064 align-items: center; 13065 justify-content: center; 13066 flex-direction: column; 13067 cursor: pointer; 13068 margin: 0 5px; 13069 background: rgba(255, 255, 255, 0.3); 13070 &:hover { 13071 background: rgba(255, 255, 255, 0.5); 13072 } 13073`,pNe=M(j(W1=class extends V.Component{render(){return(0,K.jsxs)(fNe,{onClick:this.props.onClick,children:[(0,K.jsx)(J.LanguageIcon,{languageId:this.props.languageId,width:`60px`}),(0,K.jsx)(R,{bold:!0,margin:`5px 0 0 0`,fontSize:`16px`,color:`#FFF`,children:q.Languages[this.props.languageId]})]})}})||W1);D();var G1,K1;function mNe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var hNe=N.div` 13074 width: 100%; 13075 .gradient-little-waves {
13076 background-image: url('/images/swirl-left.png'),url('/images/swirl-right.png'), linear-gradient(-134deg, #3BD7C5 0%, #0DAFF6 100%); 13077 background-position: left bottom, right bottom, left top; 13078 background-repeat: repeat-x; 13079 background-size: 50%, 50%, cover; 13080 overflow: hidden; 13081 } 13082 .bubble-description { 13083 padding: 10px 20px; 13084 background: white; 13085 border-radius: 10px; 13086 a { 13087 color: black; 13088 } 13089 } 13090`,gNe=N.div` 13091 display: flex; 13092 flex-direction: column; 13093 align-items: center; 13094 padding: 10px; 13095 margin: 0 5px; 13096`,q1=N.div` 13097 display: flex; 13098 align-items: center; 13099 justify-content: center; 13100 margin: 5px 0; 13101`,J1=N.div` 13102 display: flex; 13103 align-items: center; 13104 justify-content: center; 13105 background: #ffffff6b; 13106 width: 55px; 13107 height: 55px; 13108 border-radius: 15px; 13109 margin: 0 10px 0 0; 13110 border: 3px solid #FFF; 13111`,_Ne=N.div` 13112 ${(0,X.flexCenterColumn)()} 13113 width: 100%; 13114 flex: 1; 13115 margin-top: 20px; 13116`,vNe=N.div` 13117 ${(0,X.flexCenter)()} 13118`,yNe=N.div` 13119 padding: 100px 10px 60px 10px; 13120 height: 950px; 13121 text-align: center; 13122 background-image: url(/images/wave.png), linear-gradient(-134deg, #3BD7C5 0%, #0DAFF6 100%); 13123 background-position: center bottom, left top; 13124 background-repeat: repeat-x; 13125 background-size: 100%, cover; 13126 @media (max-width: 600px) { 13127 padding: 60px 10px 60px 10px; 13128 } 13129`,bNe=N.div` 13130 margin-top: 60px; 13131 display: flex; 13132 align-items: center; 13133 justify-content: center; 13134 img { 13135 margin: 0 20px; 13136 } 13137 13138 img:nth-of-type(1) { 13139 width: 200px; 13140 transform: rotate(-0deg); 13141 } 13142 13143 img:nth-of-type(2) { 13144 width: 250px; 13145 } 13146 13147 img:nth-of-type(3) { 13148 width: 200px; 13149 transform: rotate(0deg); 13150 } 13151 13152 @media (max-width: 600px) { 13153 img { 13154 margin: 0 5px; 13155 } 13156 img:nth-of-type(1) { 13157 width: 25%; 13158 transform: rotate(-0deg); 13159 } 13160 13161 img:nth-of-type(2) { 13162 width: 35%; 13163 } 13164 13165 img:nth-of-type(3) { 13166 width: 25%; 13167 transform: rotate(0deg); 13168 } 13169 } 13170`,xNe=j(G1=(K1=class extends V.Component{get linkType(){return U.AppUI.layout.isMobile&&U.AppUI.layout.osName===`iOS`?`iOS`:U.AppUI.layout.isMobile&&U.AppUI.layout.osName===`Android`?`android`:`browser`}constructor(e){super(e);let t,n=new URLSearchParams(window.location.search);if(n.has(`pr`)&&(t=n.get(`pr`)),t){let e=`promotion_${t}_tracked`;(0,W.getCookieValue)(e)||((0,W.setCookieValue)(e,!0),(0,W.setCookieValue)(`promotion-code`,t),U.AppUI.promotionStore.incrementVisitorsCount({ids:{slug:t}},G.noop))}this.disposer=te(()=>{U.AppUI.userIsLoaded&&U.AppUI.routeStore.routeName===`landing`&&U.AppUI.routeToHome()})}componentDidMount(){let e;if(window.location.search.split(`=`)[0]===`?pr`&&window.location.search.split(`=`)[1]){e=window.location.search.split(`=`)[1];let t=`promotion_${e}_tracked`;(0,W.getCookieValue)(t)||((0,W.setCookieValue)(t,!0),H.PromotionStore.incrementVisitorsCount({ids:{slug:e}},G.noop))}U.AppUI.createEvent(`landing - view page`,{promotion_slug:e,device:`web`})}componentWillUnmount(){this.disposer&&this.disposer()}render(){return(0,K.jsxs)(hNe,{children:[(0,K.jsxs)(yNe,{children:[(0,K.jsxs)(nv,{children:[(0,K.jsx)(R,{center:!0,bold:!0,margin:`10px 0 15px 0`,fontSize:`40px`,lineHeight:`40px`,color:`#FFF`,children:`Start Speaking A New Language`}),(0,K.jsxs)(R,{center:!0,fontSize:`30px`,lineHeight:`33px`,color:`#FFF`,margin:`0 0 5px 0`,children:[this.default&&`with fun story-based flashcards.`,!this.default&&`Learn the fun and effective way.`]}),this.linkType===`browser`&&(0,K.jsx)(_Ne,{children:(0,K.jsx)(vNe,{children:[`DE`,`ES`,`FR`].map(e=>(0,K.jsx)(F,{to:{name:`onboarding.level`,params:{languageId:e}},children:(0,K.jsx)(pNe,{languageId:e})},e))})}),this.linkType===`iOS`&&[`DE`,`ES`,`FR`].map(e=>(0,K.jsx)(`a`,{href:q.Constants.APP_STORE_WEB_LINKS.ios[e],children:(0,K.jsxs)(q1,{children:[(0,K.jsx)(J1,{children:(0,K.jsx)(J.LanguageIcon,{width:`30px`,languageId:e})}),(0,K.jsx)(`img`,{src:`/images/app_store_white.svg`,target:`_blank`,height:`55px`,alt:`App Store Icon`})]})})),this.linkType===`android`&&[`DE`,`ES`,`FR`].map(e=>(0,K.jsx)(`a`,{href:q.Constants.APP_STORE_WEB_LINKS.android[e],children:(0,K.jsxs)(q1,{children:[(0,K.jsx)(J1,{children:(0,K.jsx)(J.LanguageIcon,{width:`30px`,languageId:e})}),(0,K.jsx)(`img`,{src:`/images/play_store_white.png`,target:`_blank`,height:`55px`,alt:`Play Store Icon`})]})}))]}),(0,K.jsxs)(bNe,{children:[(0,K.jsx)(`img`,{src:`/images/Left.png`,alt:``}),(0,K.jsx)(`img`,{src:`/images/Center.png`,alt:``}),(0,K.jsx)(`img`,{src:`/images/Right.png`,alt:``})]})]}),(0,K.jsx)(GY,{headline:`Awaken Your Brain`,description:(0,K.jsxs)(`span`,{children:[`We tell stories that are fun, surprising, and memorable. This will help to give context to what you are learning and `,(0,K.jsx)(`b`,{children:`make learning feel effortless.`})]}),children:(0,K.jsx)(TY,{})}),(0,K.jsx)(GY,{lightBlue:!0,showWave:`1`,headline:(0,K.jsxs)(`span`,{children:[`Our Flashcards Have `,(0,K.jsx)(`i`,{children:`Superpowers`})]}),description:(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`b`,{children:`You've never seen flashcards like these before.`}),` They combine video, speaking practice, and embedded grammar to create a fun and effective learning experience.`]}),children:(0,K.jsx)(vY,{})}),(0,K.jsx)(GY,{blue:!0,showWave:`2`,headline:`Customize Your Learning`,description:(0,K.jsxs)(`span`,{children:[`Use our vocab trainer to build flashcard decks tailored to `,(0,K.jsx)(`b`,{children:`specific vocabulary that you want to learn`}),`. Each card is pulled from one of our stories and has all of the fun context that will make this vocabulary easy to remember.`]}),children:(0,K.jsx)(DY,{})}),(0,K.jsx)(GY,{gray:!0,headline:`How We are Different`,description:(0,K.jsxs)(`span`,{children:[`Seedlang brings `,(0,K.jsx)(`b`,{children:`many new ideas and innovations`}
13170),` to app-based language learning. Here is how we stack up against some notable competitors.`]}),children:(0,K.jsx)(LY,{})}),(0,K.jsx)(GY,{headline:`What our students love about Seedlang!`,children:(0,K.jsx)(AY,{blockBackground:`#e8e8e8`})}),(0,K.jsx)(GY,{headline:`Download our mobile apps to learn on the go.`,headlineColor:`#FFF`,descriptionClassName:`bubble-description`,descriptionMargin:`10px 0`,className:`gradient-little-waves`,margin:`0 0 -10px 0`,children:[`DE`,`ES`,`FR`].map(e=>(0,K.jsxs)(gNe,{children:[(0,K.jsx)(`a`,{href:q.Constants.APP_STORE_WEB_LINKS.ios[e],children:(0,K.jsx)(`img`,{src:`/images/${e.toLowerCase()}_ios.png`,target:`_blank`,style:{marginBottom:`5px`},height:`60px`,alt:`App Store Icon`})}),(0,K.jsx)(`a`,{href:q.Constants.APP_STORE_WEB_LINKS.android[e],children:(0,K.jsx)(`img`,{src:`/images/${e.toLowerCase()}_android.png`,style:{marginBottom:`5px`},target:`_blank`,height:`60px`,alt:`Play Store Icon`})})]},e))})]})}},mNe(K1.prototype,`linkType`,[E],Object.getOwnPropertyDescriptor(K1.prototype,`linkType`),K1.prototype),K1))||G1,SNe=class extends V.Component{render(){return(0,K.jsx)(xNe,{})}},Y1,CNe=N.div` 13171 ${(0,X.flexCenterColumn)()} 13172 max-width: 600px; 13173 video { 13174 margin-top: 10px; 13175 border-radius: 10px; 13176 } 13177`,wNe=M(j(Y1=class extends V.Component{render(){return(0,K.jsxs)(CNe,{children:[(0,K.jsx)(R,{heading:`2`,color:this.props.color,textAlign:`center`,margin:`0 0 10px 0`,children:this.props.headline}),(0,K.jsxs)(R,{color:this.props.color,textAlign:`center`,margin:`0 0 10px 0`,children:[`We will be back shortly. Thank you for your patience. `,(0,K.jsx)(`span`,{role:`img`,"aria-label":`smile`,children:`ð`})]}),(0,K.jsx)(`video`,{muted:!0,autoPlay:!0,playsInline:!0,loop:!0,id:`video`,width:this.props.width,height:this.props.width,preload:`auto`,src:`/images/maintenance.mp4`})]})}})||Y1),X1,TNe=N.div` 13178 ${(0,X.flexCenterColumn)()} 13179 display: flex; 13180 width: 100%; 13181 height: 100%; 13182 flex: 1; 13183 background: ${q.Theme.blue}; 13184`,ENe=M(j(X1=class extends V.Component{constructor(e){super(e),this.checkIfOnline=()=>{U.AppUI.loadUser(this.afterLoadUser)},this.afterLoadUser=e=>{U.AppUI.setAuthUserStoreShowData(e),U.AppUI.user.siteShowsMaintenancePage||U.AppUI.routeStore.routeToNamed(`reviews.home`)},setInterval(this.checkIfOnline,5e3)}render(){return(0,K.jsx)(TNe,{children:(0,K.jsx)(wNe,{headline:`Oh No! We are offline while we do a bit of work.`,showButtons:!0,color:`white`,width:`400px`})})}})||X1);D();var Z1,Q1,$1,e0;function t0(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function n0(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var r0=N.div` 13185 padding: 5vmax; 13186 background: #FFF; 13187 text-align: center; 13188 margin-top: 10vh; 13189 font-size: 16px; 13190 line-height: 1.25em; 13191 white-space: pre-line; 13192`,DNe=`Sorry, an error has occurred. 13193Please contact us at [email protected] if you need any assistance.`,ONe=M(j(Z1=(Q1=class extends V.Component{constructor(...e){super(...e),t0(this,`stage`,$1,this),t0(this,`errorMessage`,e0,this),this.fetchDiscordAuthorizationUrlAndRedirect=()=>{U.AppUI.discordUserAssociationStore.create({},e=>{let{discordAuthorizationUrl:t}=e;t?window.location.href=t:console.error(`Failed to fetch Discord link`,e)})},this.createLinkUsingDiscordAuthorizationCode=(e,t)=>{U.AppUI.discordUserAssociationStore.create({data:{code:e,state:t}},e=>{let{success:t}=e;t?U.AppUI.routeStore.routeToNamed(`page.show`,{pageId:`welcome-to-discord`}):(this.stage=`error`,this.errorMessage=e.error)})}}componentDidMount(){if(U.AppUI.user.signedOut)U.AppUI.authenticateStore.redirectRouteNameAfterLogin=`discord`,U.AppUI.routeStore.routeToNamed(`onboarding.sign_in`);else{let e=new URLSearchParams(window.location.search),t=e.get(`code`),n=e.get(`state`);t?(this.stage=`linking`,this.createLinkUsingDiscordAuthorizationCode(t,n)):(this.stage=`redirecting`,this.fetchDiscordAuthorizationUrlAndRedirect())}}render(){return this.stage===`redirecting`?(0,K.jsx)(r0,{children:`Redirecting...`}):this.stage===`linking`?(0,K.jsx)(r0,{children:`Linking...`}):(0,K.jsx)(r0,{children:this.errorMessage||DNe})}},$1=n0(Q1.prototype,`stage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),e0=n0(Q1.prototype,`errorMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q1))||Z1);D();var i0,a0,o0;function kNe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ANe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var jNe=N.div` 13194 13195`,MNe=pf(j(i0=(a0=class extends V.Component{constructor(e){super(e),kNe(this,`membershipGroupWasAssigned`,o0,this),te(()=>{!this.membershipGroupWasAssigned&&(U.AppUI.userIsLoaded||U.AppUI.user.signedOut)&&(this.membershipGroupWasAssigned=!0,this.setMembershipGroupAndRedirect())})}async setMembershipGroupAndRedirect(){U.AppUI.membershipGroupStore.clearShowData(),U.AppUI.userIsLoaded&&(await U.AppUI.userGroupStore.updatePromise({data:{membershipGroupId:this.props.params.membershipGroupId},ids:{userGroupId:U.AppUI.user.currentUserGroup.id}}),await U.AppUI.loadUserPromise()),(0,W.setCookieValue)(`assign_membership_group_id`,this.props.params.membershipGroupId),U.AppUI.routeStore.routeToNamed(`memberships.index`)}render(){return(0,K.jsx)(jNe,{})}},o0=ANe(a0.prototype,`membershipGroupWasAssigned`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a0))||i0),s0,NNe=N.div` 13196 ${(0,X.flexCenterColumn)()} 13197 width: 100%; 13198 max-width: 500px; 13199`,PNe=N.div` 13200 width: 100%; 13201 display: flex; 13202 flex-direction: column; 13203 gap: 3px; 13204`,FNe=N.div` 13205 display: flex; 13206 align-items: center; 13207 background-color: ${e=>e.highlighted?q.Theme.lightBlue:`white`}; 13208 border: 1px solid ${q.Theme.lightGray}; 13209 border-radius: 5px; 13210 padding: 8px; 13211 height: 64px; 13212`,c0=N.div` 13213 font-size: 14px; 13214`,INe=N(c0)` 13215 flex: 1; 13216 display: flex; 13217 gap: 10px; 13218 @media (max-width: 768px) { 13219 flex-direction: column; 13220 } 13221`,LNe=N.div` 13222 display: flex; 13223 flex-direction: column; 13224`,RNe=N(c0)` 13225 width: 40px; 13226 text-align: center; 13227 font-weight: bold; 13228`,zNe=N(c0)` 13229 text-align: right; 13230 width: fit-content; 13231 white-space: nowrap; 13232 font-weight: bold; 13233 color: #000; 13234`,BNe=N.span` 13235 background: ${q.Theme.green}; 13236 color: white; 13237 padding: 2px 8px; 13238 border-radius: 12px; 13239 font-size: 12px; 13240 font-weight: bold; 13241 height: fit-content; 13242 margin-left: ${e=>e.marginLeft}; 13243`,l0=N.div` 13244 ${(0,X.flexCenterColumn)()} 13245 text-align: center; 13246 color: ${q.Theme.gray}; 13247 font-size: 14px; 13248 line-height: 24px; 13249 padding: 0 20px 10px 20px; 13250 border-radius: 8px; 13251 width: 100%; 13252 max-width: 400px; 13253`,VNe=N.div` 13254 margin-top: 5px; 13255 width: 100%; 13256`,HNe=N.div` 13257 font-size: 12px; 13258 color: ${q.Theme.gray}; 13259`,UNe=j(s0=class extends V.Component{render(){return(0,W.isBlank)(this.props.userLeagues)&&H.UserLeagueStore.requestCounter===0?(0,K.jsx)(l0,{children:`You have not completed any leagues yet.`}):H.UserLeagueStore.requestCounter>0?(0,K.jsx)(P,{}):(0,K.jsxs)(NNe,{children:[(0,K.jsx)(PNe,{children:this.props.userLeagues.map(e=>(0,K.jsxs)(FNe,{highlighted:this.props.selectedLeague&&e.leagueId===this.props.selectedLeague.id,children:[(0,K.jsx)(RNe,{children:(0,K.jsx)(gg,{margin:`0`,rank:e.rank,promotionStatus:e.promotionStatus})}),(0,K.jsxs)(INe,{children:[(0,K.jsx)(LNe,{children:this.props.backendView?(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(F,{to:{name:`league.show`,params:{leagueId:e.leagueId,userId:e.userId}},children:(0,K.jsx)(`span`,{style:{fontWeight:`bold`},children:e.leagueLevelName})})}):(0,K.jsx)(`span`,{style:{fontWeight:`bold`,display:`flex`,alignItems:`center`,gap:`8px`},children:e.leagueLevelName})}),e.createdAt&&e.endTime&&(0,K.jsxs)(HNe,{children:[this.props.backendView&&`${e.createdAt.formattedWithWeekday} - ${e.endTime.formattedDateWithFullYear}`,!this.props.backendView&&e.endTime.formattedDateWithFullYear,e.active&&(0,K.jsx)(BNe,{marginLeft:`20px`,children:`Active`})]})]}),(0,K.jsxs)(zNe,{children:[e.xp,` XP`]})]},e.id))}),this.props.userLeagues.length===0&&(0,K.jsx)(l0,{children:`You have not completed any leagues yet.`}),H.UserLeagueStore.totalCount>this.props.limit&&(0,K.jsx)(VNe,{children:(0,K.jsx)(In,{store:H.UserLeagueStore,filters:{user_id:this.props.userId},limit:this.props.limit})})]})}})||s0,u0=M((0,Y.LeagueHistoryWrapper)(UNe));D();var d0,f0;function WNe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var GNe=N.div` 13260 display: flex; 13261 align-items: center; 13262 background-color: ${e=>e.highlighted?q.Theme.lightBlue:`#FFF`}; 13263 border: 1px solid ${q.Theme.lightGray}; 13264 border-radius: 5px; 13265 padding: 8px; 13266`,p0=N.div` 13267 font-size: 14px; 13268 color: ${q.Theme.darkGray}; 13269`,KNe=N(p0)` 13270 flex: 1; 13271 display: flex; 13272 gap: 5px; 13273`,qNe=N(p0)` 13274 text-align: right; 13275 width: fit-content; 13276 white-space: nowrap; 13277 font-weight: bold; 13278 color: #000; 13279`,JNe=j(d0=(f0=class extends V.Component{get highlighted(){return this.props.userId&&this.props.userLeague.user.id===this.props.userId}render(){return(0,K.jsxs)(GNe,{highlighted:this.highlighted,children:[(0,K.jsx)(gg,{rank:this.props.userLeague.rank,promotionStatus:this.props.promotionStatus}),(0,K.jsxs)(KNe,{children:[(0,K.jsx)(Mg,{clickToProfile:!0,showLanguageIcon:!1,user:this.props.userLeague.user,width:40}),(0,K.jsx)(HN,{user:this.props.userLeague.user})]}),(0,K.jsxs)(qNe,{children:[this.props.userLeague.xp,` XP`]})]})}},WNe(f0.prototype,`highlighted`,[E],Object.getOwnPropertyDescriptor(f0.prototype,`highlighted`),f0.prototype),f0))||d0,m0,YNe=N.div` 13280 width: 500px; 13281 position: relative; 13282 @media (max-width: 500px) { 13283 width: 100%; 13284 } 13285`,XNe=N.div` 13286 background: ${e=>e.background}; 13287 color: #FFF; 13288 font-weight: bold; 13289 margin: 5px 0; 13290 text-align: center; 13291 display: flex; 13292 justify-content: center; 13293 align-items: center; 13294 padding: 10px; 13295 border-radius: 5px; 13296 i { 13297 margin-right: 5px; 13298 } 13299`,ZNe=N.div` 13300 position: absolute; 13301 top: 18px; 13302 right: 10px; 13303`,QNe=N.div` 13304 width: 100%; 13305 display: flex; 13306 flex-direction: column; 13307 gap: 3px; 13308`,h0=j(m0=class extends V.Component{render(){return this.props.leagues.length===0?null:(0,K.jsxs)(YNe,{children:[this.props.showTooltip&&(0,K.jsx)(ZNe,{children:(0,K.jsx)(En,{position:`left`,color:`white`,children:this.props.tooltipText})}),this.props.title&&(0,K.jsxs)(XNe,{background:this.props.background,children:[(0,K.jsx)(`i`,{className:this.props.iconClass}),this.props.title]}),(0,K.jsx)(QNe,{children:this.props.leagues.map(e=>(0,K.jsx)(JNe,{userLeague:e,userId:this.props.userId,promotionStatus:this.props.promotionStatus},e.id))})]})}})||m0,$Ne=N.div` 13309 ${(0,X.flexCenterColumn)()} 13310 width: 100%; 13311`,ePe=N.div` 13312 text-align: center; 13313 padding: 20px; 13314 color: ${q.Theme.gray}; 13315`,tPe=class extends V.Component{render(){return!this.props.league||!this.props.league.userLeagues||this.props.league.userLeagues.length===0?(0,K.jsx)(ePe,{children:`No league data available`}):(0,K.jsxs)($Ne,{children:[(0,K.jsx)(h0,{leagues:this.props.promotionZone,background:q.Theme.green,title:`Promotion Zone`,promotionStatus:1,titleColor:`white`,iconClass:`fa fa-shield`,showTooltip:!0,tooltipText:`Students in this zone will be promoted to the next league.`,userId:this.props.userId,preview:this.props.preview}),(0,K.jsx)(h0,{title:`Safe Zone`,background:q.Theme.gray,leagues:this.props.middleZone,iconClass:`fa fa-thumbs-up`,showTooltip:!0,tooltipText:`Students in this zone will stay in the same league.`,userId:this.props.userId,preview:this.props.preview,promotionStatus:0}),(0,K.jsx)(h0,{leagues:this.props.demotionZone,background:q.Theme.red,title:`Demotion Zone`,titleColor:`white`,iconClass:`fa fa-chevron-circle-down`,showTooltip:!0,promotionStatus:-1,tooltipText:`Students in this zone will be demoted to the previous league.`,userId:this.props.userId,preview:this.props.preview})]})}},nPe=(0,Y.LeagueTableWrapper)(tPe),g0,_0=N.div` 13316 ${(0,X.flexCenterColumn)()} 13317 width: 100%; 13318 padding: 20px; 13319`,rPe=N.h2` 13320 text-align: center;
13321`,v0=N.div` 13322 display: flex; 13323 align-items: center; 13324 justify-content: center; 13325 margin: ${e=>e.margin}; 13326 font-size: 14px; 13327 font-color: #333; 13328 font-weight: bold; 13329 color: ${e=>e.color||q.Theme.darkBlue}; 13330`,iPe=N.div` 13331 display: block; 13332 width: 100%; 13333 text-align: center; 13334 font-size: 20px; 13335 line-height: 20px; 13336 font-weight: bold; 13337 margin: 30px 0 20px 0; 13338`,aPe=N.div` 13339 display: flex; 13340 align-items: center; 13341 justify-content: center; 13342 margin: 0 0 20px 0; 13343`,oPe=N.div` 13344 margin: 0 0 20px 0; 13345 display: flex; 13346 flex-direction: column; 13347 gap: 5px; 13348`,sPe=j(g0=class extends V.Component{componentDidMount(){let e=this.props.params?.leagueId||this.props.league?.id;(0,W.isPresent)(e)&&U.AppUI.createEvent(`leagues - view page`,{league_id:e})}badgeWidth(e){return U.AppUI.layout.isMobile?e===this.props.league.leagueLevel?.position?`60px`:`50px`:e===this.props.league.leagueLevel?.position?`95px`:`70px`}render(){return(0,W.isBlank)(this.props.league)?(0,K.jsx)(_0,{children:(0,K.jsx)(P,{})}):(0,K.jsxs)(_0,{children:[(0,K.jsx)(aPe,{children:[1,2,3,4,5,6].map(e=>(0,K.jsx)(xg,{leagueLevelPosition:e<=this.props.league.leagueLevel?.position?e:0,width:this.badgeWidth(e),margin:`0 5px`},e))}),(0,K.jsx)(rPe,{children:this.props.league.leagueLevel?.name}),(0,K.jsxs)(oPe,{children:[this.props.league.ended&&!this.props.userIsInLeague&&(0,K.jsx)(v0,{children:`This league has ended.`}),this.props.user&&this.props.league.ended&&this.props.userIsInLeague&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(v0,{color:`#000`,children:[this.props.league.ended&&`${this.props.userIsAuthUser?`You`:this.props.user?.name} finished #${this.props.userLeague?.rank},`,this.props.userLeague?.promoted?` and ${this.props.userIsAuthUser?`were`:`was`} promoted to the next league.`:this.props.userLeague?.demoted?` and ${this.props.userIsAuthUser?`were`:`was`} demoted to the previous league.`:` and will stay in the ${this.props.league.leagueLevel?.name}.`]}),this.props.userIsAuthUser&&this.props.isUsersLastLeague&&(0,K.jsx)(v0,{children:`Earn XP to join your new league.`})]}),!this.props.league.ended&&(0,K.jsxs)(K.Fragment,{children:[this.props.user&&this.props.userIsInLeague&&(0,K.jsx)(v0,{color:`#000`,children:this.props.statusText}),(0,K.jsx)(v0,{children:this.props.leagueEndedText})]}),this.props.isFirstLeagueMember&&(0,K.jsx)(v0,{color:q.Theme.darkRed,children:this.props.firstLeagueMemberText})]}),(0,K.jsx)(nPe,{league:this.props.league,userId:this.props.userId}),(0,W.isPresent)(this.props.user)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(iPe,{children:this.props.userIsAuthUser?`Your League History`:`${this.props.user?.name}'s League History`}),(0,K.jsx)(u0,{hideActiveLeague:this.props.league?.active,userId:this.props.user?.id,selectedLeague:this.props.league})]})]})}})||g0,cPe=pf(M((0,Y.LeagueShowWrapper)(sPe))),y0,b0,lPe=N.ul` 13349 white-space: normal; 13350 margin: ${e=>e.margin}; 13351 overflow: hidden; 13352 li { 13353 display: inline-block; 13354 margin: 0; 13355 } 13356`,x0=j(y0=(b0=class extends V.Component{matchRoute(e){return this.props.currentRoute&&this.props.currentRoute.match(e.link)}render(){return(0,K.jsx)(lPe,{margin:this.props.smallButtons?`5px 0 10px 0`:`0`,height:this.props.smallButtons?`30px`:`40px`,children:this.props.links.map(e=>e.hide?null:(0,K.jsx)(`li`,{children:(0,K.jsx)(F,{to:{name:e.link,params:e.params},children:(0,K.jsx)(Pn,{background:q.Theme.green,selectedBackground:`#FFF`,selected:this.matchRoute(e),margin:`0 10px 0 0`,padding:this.props.smallButtons?`3px 10px`:`9px 20px`,fontSize:this.props.smallButtons?`14px`:`17px`,borderRadius:this.props.smallButtons?`5px`:`40px`,children:e.title})})},e.link))})}},b0.defaultProps={height:`40px`},b0))||y0;D();var S0,C0,w0;function uPe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function dPe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var fPe=N.div` 13357 select { 13358 height: 40px; 13359 } 13360`,pPe=N.div` 13361 border: 1px dotted transparent; 13362 &:hover { 13363 border: 1px dotted gray; 13364 } 13365`,mPe=N.div` 13366 display: flex; 13367 align-items: center; 13368`,T0=M(j(S0=(C0=class extends V.Component{constructor(...e){super(...e),uPe(this,`showEdit`,w0,this)}render(){return(0,K.jsxs)(fPe,{children:[(this.props.showEdit||this.showEdit)&&(0,K.jsxs)(mPe,{children:[(0,K.jsx)(Fi,{allowUpdate:!0,model:this.props.model,id:this.props.id,field:this.props.field??`language_id`,value:this.props.value,options:this.props.options||U.AppUI.languageOptions,afterChange:this.props.afterChange,onChange:this.props.onChange,includeBlank:this.props.includeBlank}),!this.props.showEdit&&(0,K.jsx)(`i`,{className:`fa fa-times`,style:{margin:`0 0 0 5px`},onClick:()=>this.showEdit=!1})]}),!this.props.showEdit&&!this.showEdit&&(0,K.jsx)(pPe,{onClick:()=>this.showEdit=!0,style:{minHeight:`26px`},children:this.props.showAbbreviation?this.props.value:q.Languages[this.props.value]})]})}},w0=dPe(C0.prototype,`showEdit`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C0))||S0);D();var E0,D0;function hPe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var gPe=N.div` 13369 margin-top: 20px; 13370 ul { 13371 margin-bottom: 20px; 13372 } 13373 li { 13374 margin-left: 20px!important; 13375 list-style-type: disc!important; 13376 } 13377`,_Pe=N.div` 13378 display: flex; 13379 align-items: center; 13380`,vPe=N.div` 13381 flex: 1; 13382`,yPe=N.div` 13383 width: 100px; 13384`,bPe=N.div` 13385 background: #FFF; 13386 padding: 20px; 13387`,xPe=N.div` 13388 margin-top: 20px; 13389`,SPe=pf(M(j(E0=(D0=class extends V.Component{get supportedByAi(){return(0,G.keys)(q.AiLanguages).includes(U.AppUI.user.languageId)}constructor(e){super(e),this.updateLanguage=e=>{U.AppUI.routeStore.routeToNamed(U.AppUI.routeStore.routeName,{languageId:e}),U.AppUI.authUserStore.update({data:{language_id:e}},this.afterUpdateUser)},this.afterUpdateUser=()=>{U.AppUI.loadUser(this.afterLoadUser)},this.afterLoadUser=e=>{U.AppUI.setAuthUserStoreShowData(e),U.AppUI.routeStore.routeName===`translator.forum_threads.show`&&(U.ForumUI.loadForum(U.AppUI.user.languageForumId,!0),U.ForumUI.forumThreadStore.getIndex({filters:{hidden:!1,forum_id:U.AppUI.user.languageForumId}}))},U.AppUI.languageStore.getShow({ids:{languageId:e.params.languageId}})}render(){return(0,K.jsxs)(gPe,{children:[this.supportedByAi&&(0,K.jsxs)(`div`,{className:`builder`,children:[(0,K.jsx)(`h3`,{children:`An Important Update`}),(0,K.jsxs)(bPe,{children:[(0,K.jsx)(`p`,{children:`Thank you to everyone that has helped us with our translator program, over the years our translators have created more than 100k translations for our community and helped to make the app more accessible to many people all around the world.`}),(0,K.jsx)(`p`,{children:`Recent advances in AI have made it so that we feel confident that we can produce high quality translations automatically across as many as 30 languages. But we would still very much appreciate your help! Over the next weeks we will transition the translator program to where our translators can help with:`}),(0,K.jsxs)(`ul`,{children:[(0,K.jsx)(`li`,{children:`Reviewing translations that were flagged by our students.`}),(0,K.jsx)(`li`,{children:`Helping us with translating labels that appear within the app.`}),(0,K.jsx)(`li`,{children:`Reviewing text for our grammar descriptions.`})]}),(0,K.jsx)(`p`,{children:`Our ultimate goal is that when someone uses the app, that they never have to see any English at all. We appreciate your help in making this goal a reality!`}),(0,K.jsx)(`p`,{children:`If you have any questions or concerns, please email us at [email protected].`}),(0,K.jsx)(`p`,{children:`Thanks again for all of your help!`}),(0,K.jsx)(`p`,{children:(0,K.jsx)(`span`,{role:`img`,"aria-label":`celebration`,children:`ðððð`})})]})]}),(U.AppUI.user.admin||!this.supportedByAi)&&(0,K.jsxs)(xPe,{children:[(0,K.jsxs)(_Pe,{children:[(0,K.jsx)(vPe,{children:U.AppUI.user?.languageId&&(0,K.jsx)(x0,{currentRoute:U.AppUI.routeStore.routeName,links:[{link:`translator.home`,title:`Home`,params:{languageId:U.Ap
13389pUI.user.languageId}},{link:`translator.decks_index`,title:`Decks`,params:{languageId:U.AppUI.user.languageId}},{link:`translator.sentences_index`,title:`Sentences`,params:{languageId:U.AppUI.user.languageId}},{link:`translator.words`,title:`Words`,params:{languageId:U.AppUI.user.languageId}},{link:`translator.users`,title:`Translators`,params:{languageId:U.AppUI.user.languageId}}]})}),(0,K.jsx)(yPe,{children:(0,K.jsx)(T0,{showEdit:!0,includeBlank:!0,value:U.AppUI.user.languageId,onChange:this.updateLanguage})})]}),(0,K.jsx)(f,{})]})]})}},hPe(D0.prototype,`supportedByAi`,[E],Object.getOwnPropertyDescriptor(D0.prototype,`supportedByAi`),D0.prototype),D0))||E0)),O0,CPe=N.div` 13390 ${(0,X.flexCenter)()} 13391 gap: ${e=>e.showCommentIcon?`6px`:0}; 13392 justify-content: flex-start; 13393 width: ${e=>e.width||(e.showCommentIcon?`56px`:`50px`)}; 13394 height: 30px; 13395 color: #656565; 13396 font-size: ${e=>e.showCommentIcon?`12px`:`14px`}; 13397 font-weight: bold; 13398 .chat-outline-icon2 { 13399 height: 16px; 13400 width: 16px; 13401 svg { 13402 fill: #656565; 13403 width: 16px; 13404 } 13405 } 13406`,k0=M(j(O0=class extends V.Component{render(){return(0,K.jsxs)(CPe,{showCommentIcon:this.props.showCommentIcon,width:this.props.width,children:[this.props.showCommentIcon&&(0,K.jsx)(J.ChatOutlineIcon2,{}),(0,W.formatNumber)(this.props.count)]})}})||O0),A0,j0,wPe=N.div` 13407 align-items: center; 13408 font-size: 18px; 13409 height: 90px; 13410 padding: 20px; 13411 cursor: pointer; 13412 display: flex; 13413 background: ${e=>e.background}; 13414 position: relative; 13415 margin: 0; 13416 border-bottom: 1px solid #e8e8e8; 13417 font-size: 14px; 13418`,M0=M(j(A0=(j0=class extends V.Component{render(){return(0,K.jsx)(wPe,{onClick:this.props.onClick,background:this.props.background,children:this.props.children})}},j0.defaultProps={background:`#FFF`},j0))||A0);D();var N0,P0,F0;function TPe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function I0(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var EPe=N.div` 13419 select { 13420 font-size: 13px; 13421 margin: 0; 13422 margin: 0 0 0 4px; 13423 } 13424 .fa { 13425 color: ${e=>e.iconColor}; 13426 } 13427`,DPe=N.div` 13428 display: inline-flex; 13429 align-items: center; 13430`,OPe=j(N0=(P0=class extends V.Component{constructor(e){super(e),TPe(this,`value`,F0,this),this.onChange=()=>{this.value=this.selectRef.current.value,this.props.store.setFilter(this.props.name,this.selectRef.current.value,{refresh:!0}),(0,G.isFunction)(this.props.afterChange)&&this.props.afterChange()},this.onClick=()=>{let e;e=this.props.withoutAny?[`true`,`false`]:[``,`true`,`false`];let t=(0,G.indexOf)(e,this.selectRef.current.value),n=t>=e.length-1?0:t+1;this.selectRef.current.value=e[n],this.onChange()},this.selectRef=V.createRef()}get name(){return(this.props.label||this.props.name).replace(/_/g,` `)}get normalizedValue(){return(0,W.isPresent)(this.value)?this.value.toString():``}get iconColor(){return this.normalizedValue===`true`?`green`:this.normalizedValue===`false`?`#ccc`:this.normalizedValue!==`true`&&this.normalizedValue!==`false`?`#9e9e9e`:null}render(){return(0,K.jsx)(ca,{selected:this.normalizedValue===`false`||this.normalizedValue===`true`,hidden:this.props.hidden,children:(0,K.jsx)(EPe,{iconColor:this.iconColor,children:(0,K.jsxs)(la,{children:[(0,K.jsxs)(DPe,{onClick:this.onClick,children:[this.normalizedValue===`true`&&(0,K.jsx)(`i`,{className:`fa fa-${this.props.icon?this.props.icon:`check-circle`}`}),this.normalizedValue===`false`&&(0,K.jsx)(`i`,{className:`fa fa-${this.props.icon?this.props.icon:`ban`}`}),this.normalizedValue!==`true`&&this.normalizedValue!==`false`&&(0,K.jsx)(`i`,{className:`fa fa-${this.props.icon?this.props.icon:`circle`}`}),(0,K.jsx)(da,{children:this.name})]}),(0,K.jsxs)(`select`,{ref:this.selectRef,onChange:this.onChange,value:this.normalizedValue,children:[!this.props.withoutAny&&(0,K.jsx)(`option`,{value:``,children:`Any`}),(0,K.jsx)(`option`,{value:`true`,children:`True`}),(0,K.jsx)(`option`,{value:`false`,children:`False`})]})]})})})}},F0=I0(P0.prototype,`value`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.store.getFilterValue(this.props.name)}}),I0(P0.prototype,`name`,[E],Object.getOwnPropertyDescriptor(P0.prototype,`name`),P0.prototype),I0(P0.prototype,`normalizedValue`,[E],Object.getOwnPropertyDescriptor(P0.prototype,`normalizedValue`),P0.prototype),I0(P0.prototype,`iconColor`,[E],Object.getOwnPropertyDescriptor(P0.prototype,`iconColor`),P0.prototype),P0))||N0;D();var L0,R0,z0;function kPe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function APe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var jPe=N.div` 13431 13432`,MPe=j(L0=(R0=class extends V.Component{constructor(...e){super(...e),kPe(this,`value`,z0,this),this.clearIndexData=()=>{this.updateFilter(null)},this.selectAll=()=>{let e=(0,G.map)(this.props.options,e=>e.id);this.updateFilter(e)}}componentDidMount(){let e=this.props.store.getFilterValue(this.props.name);
13432!e||e===`null`?e=[]:Array.isArray(e)||(e=[e]),this.value=e}toggleOption(e){let t=[];(0,G.isEmpty)(this.value)?t.push(e):this.value?.includes(e)?t=(0,G.without)(this.value,e):(t=this.value,t.push(e)),this.updateFilter(t)}updateFilter(e){this.value=e,e?this.props.store.setFilter(this.props.name,e,{refresh:!0}):this.props.store.removeFilter(this.props.name,{persistRemoval:!0,refresh:!0})}label(e){return this.props.labelField?e[this.props.labelField]:e.name}render(){return(0,K.jsx)(ca,{selected:(0,W.isPresent)(this.value),children:(0,K.jsxs)(jPe,{children:[this.props.options&&this.props.options.map(e=>(0,K.jsxs)(la,{onClick:this.toggleOption.bind(this,e.id),children:[(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-check-circle":this.value?.includes(e.id),"fa-ban":!this.value?.includes(e.id)})}),(0,K.jsx)(da,{highlightDictionaryWordTypes:!!this.props.highlightDictionaryWordTypes,children:this.label(e)})]},e.id)),(0,K.jsx)(la,{onClick:this.selectAll,children:(0,K.jsx)(`i`,{className:`fa fa-check-circle`})}),(0,K.jsx)(la,{onClick:this.clearIndexData,children:(0,K.jsx)(`i`,{className:`fa fa-ban`})})]})})}},z0=APe(R0.prototype,`value`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.default}}),R0))||L0;D();var B0,V0,H0,U0,W0;function G0(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function K0(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var NPe=N(`div`,{shouldForwardProp:e=>e!==`open`})` 13433 position: relative; 13434 z-index: ${e=>e.open?21:`auto`}; 13435`,PPe=N.div` 13436 display: flex; 13437 align-items: center; 13438 i { 13439 margin-left: 6px; 13440 } 13441`,FPe=N.div` 13442 position: absolute; 13443 top: calc(100% + 4px); 13444 left: 0; 13445 z-index: 20; 13446 min-width: 240px; 13447 max-width: 320px; 13448 background: #FFF; 13449 border: 1px solid #A2A2A2; 13450 border-radius: 5px; 13451 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 13452 padding: 6px; 13453`,IPe=N.input` 13454 width: 100%; 13455 padding-left: 8px !important; 13456 margin-bottom: 6px !important; 13457`,LPe=N.div` 13458 max-height: 220px; 13459 overflow-y: auto; 13460`,RPe=N.div` 13461 display: flex; 13462 align-items: center; 13463 padding: 4px 6px; 13464 cursor: pointer; 13465 border-radius: 3px; 13466 font-size: 12px; 13467 &:hover { 13468 background: #f1f3f5; 13469 } 13470`,zPe=N.div` 13471 display: flex; 13472 justify-content: flex-end; 13473 margin-top: 6px; 13474`,BPe=N.div` 13475 padding: 8px 6px; 13476 color: #868e96; 13477 font-size: 12px; 13478`,VPe=j(B0=(V0=class extends V.Component{constructor(e){super(e),G0(this,`value`,H0,this),G0(this,`open`,U0,this),G0(this,`query`,W0,this),this.onClickOutside=e=>{this.wrapperRef.current&&!this.wrapperRef.current.contains(e.target)&&(this.open=!1,this.query=``)},this.toggleOpen=()=>{this.open=!this.open,this.open||(this.query=``)},this.clearIndexData=()=>{this.updateFilter(null)},this.selectAll=()=>{let e=(0,G.map)(this.props.options,e=>e.id);this.updateFilter(e)},this.wrapperRef=V.createRef()}componentDidMount(){let e=this.props.store.getFilterValue(this.props.name);(!e||e===`null`)&&(e=[]),this.value=e,document.addEventListener(`mousedown`,this.onClickOutside)}componentWillUnmount(){document.removeEventListener(`mousedown`,this.onClickOutside)}toggleOption(e){let t=[];(0,G.isEmpty)(this.value)?t.push(e):this.value?.includes(e)?t=(0,G.without)(this.value,e):(t=this.value,t.push(e)),this.updateFilter(t)}updateFilter(e){this.value=e,e?this.props.store.setFilter(this.props.name,e,{refresh:!0}):this.props.store.removeFilter(this.props.name,{persistRemoval:!0,refresh:!0})}label(e){return this.props.labelField?e[this.props.labelField]:e.name}get selected(){return(0,W.isPresent)(this.value)}get triggerLabel(){let e=this.props.label||this.props.name;return(0,W.isBlank)(this.value)||this.value.length===0?`Select ${e}`:`${e} (${this.value.length})`}get filteredOptions(){let e=this.props.options||[],t=this.query.trim().toLowerCase();return(0,W.isBlank)(t)?e:e.filter(e=>this.label(e)?.toLowerCase().includes(t))}render(){return(0,K.jsx)(ca,{selected:this.selected,children:(0,K.jsxs)(NPe,{ref:this.wrapperRef,open:this.open,children:[(0,K.jsx)(la,{onClick:this.toggleOpen,children:(0,K.jsxs)(PPe,{children:[(0,K.jsx)(da,{children:this.triggerLabel}),(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-caret-up":this.open,"fa-caret-down":!this.open})})]})}),this.open&&(0,K.jsxs)(FPe,{children:[(0,K.jsx)(IPe,{type:`text`,value:this.query,onChange:e=>this.query=e.target.value,placeholder:`Search ${this.props.label||this.props.name}`}),(0,K.jsxs)(LPe,{children:[this.filteredOptions.map(e=>(0,K.jsxs)(RPe,{onClick:()=>this.toggleOption(e.id),children:[(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-check-circle":this.value?.includes(e.id),"fa-ban":!this.value?.includes(e.id)})}),(0,K.jsx)(da,{children:this.label(e)})]},e.id)),(0,W.isBlank)(this.filteredOptions)&&(0,K.jsxs)(BPe,{children:[`No matching `,this.props.label||`options`]})]}),(0,K.jsxs)(zPe,{children:[(0,K.jsx)(la,{onClick:this.selectAll,children:(0,K.jsx)(`i`,{className:`fa fa-check-circle`})}),(0,K.jsx)(la,{onClick:this.clearIndexData,children:(0,K.jsx)(`i`,{className:`fa fa-ban`})})]})]})]})})}},H0=K0(V0.prototype,`value`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.default}}),U0=K0(V0.prototype,`open`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W0=K0(V0.prototype,`query`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),K0(V0.prototype,`selected`,[E],Object.getOwnPropertyDescriptor(V0.prototype,`selected`),V0.prototype),K0(V0.prototype,`triggerLabel`,[E],Object.getOwnPropertyDescriptor(V0.prototype,`triggerLabel`),V0.prototype),K0(V0.prototype,`filteredOptions`,[E],Object.getOwnPropertyDescriptor(V0.prototype,`filteredOptions`),V0.prototype),V0))||B0;D();var q0,J0,Y0,X0;function Z0(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Q0(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var HPe=N.div` 13479 .fa-search { 13480 position: absolute; 13481 top: 8px; 13482 left: 8px; 13483 color: #8e8e8e; 13484 } 13485 input { 13486 padding-left: 25px; 13487 } 13488`,$0=j(q0=(J0=class extends V.Component{constructor(e){super(e),Z0(this,`value`,Y0,this),Z0(this,`filterValue`,X0,this),this.onChange=()=>{this.value=this.inputRef.current.value,(0,W.isBlank)(this.value)?this.setFilter():(clearTimeout(this.timeout),this.timeout=setTimeout(this.setFilter,500))},this.setFilter=()=>{let e;(0,W.isBlank)(this.value)?e=``:this.value.match(`"`)||this.props.hidden||this.props.exactV
13488alue||this.valueIsUuid?e=this.value.trim():this.props.searchFromBeginning?e=`${this.value.trim()}~`:this.props.searchFromEnd?e=`~${this.value.trim()}`:(e=this.value,e=this.value.startsWith(`^`)?e.replace(`^`,``):`~${e.trim()}`,e=e.endsWith(`$`)?e.replace(`$`,``):`${e.trim()}~`),this.props.store.setFilter(this.props.name,e,{refresh:!0})},this.inputRef=V.createRef()}get valueIsUuid(){return this.value.length===36&&(0,W.isPresent)(this.value.match(`-`))}componentDidMount(){this.props.default&&this.props.default!==this.value&&this.setFilter(this.props.default);let e=this.props.store.getFilterValue(this.props.name);(0,W.isPresent)(e)&&(e=e.toString().replace(/~/g,``)),this.value=e,this.filterValue=e}render(){return(0,K.jsx)(ca,{selected:(0,W.isPresent)(this.value),hidden:this.props.hidden,children:(0,K.jsxs)(HPe,{children:[!this.props.hidden&&(0,K.jsx)(`i`,{className:`fa fa-search`}),(0,K.jsx)(`input`,{type:this.props.hidden?`hidden`:`text`,onChange:this.onChange,placeholder:this.props.placeholder||`Enter ${this.props.label||this.props.name}`,ref:this.inputRef,value:this.value}),!this.props.searchFromBeginning&&!this.props.searchFromEnd&&!this.props.hidden&&(0,K.jsx)(En,{color:`#9e9e9e`,style:{position:`absolute`,right:`10px`,top:`10px`},children:`You can search at the beginning with ^ and at the end with $`})]})})}},Y0=Q0(J0.prototype,`value`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.default}}),X0=Q0(J0.prototype,`filterValue`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q0(J0.prototype,`valueIsUuid`,[E],Object.getOwnPropertyDescriptor(J0.prototype,`valueIsUuid`),J0.prototype),J0))||q0;D();var e2,t2,n2,r2;function i2(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function a2(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var UPe=N.div` 13489 input { 13490 width: 50px; 13491 } 13492`,o2=[{symbol:`=`,wrapper:`EQ`},{symbol:`<`,wrapper:`LT`},{symbol:`>`,wrapper:`GT`}],WPe=j(e2=(t2=class extends V.Component{constructor(e){super(e),i2(this,`filterTypeIndex`,n2,this),i2(this,`value`,r2,this),this.incrementFilterType=()=>{this.disabled(this.value)||(this.filterTypeIndex=this.filterTypeIndex>=o2.length-1?0:this.filterTypeIndex+1,this.submitFilter())},this.toggleActive=()=>{this.value=this.disabled(this.value)?this.props.default||0:null,this.submitFilter()},this.onChange=()=>{this.value=this.inputRef.current.value,this.submitFilter()},this.inputRef=V.createRef()}get wrappedValue(){return o2[this.filterTypeIndex].wrapper===`EQ`?this.value:`${o2[this.filterTypeIndex].wrapper}[${this.value}]`}componentDidMount(){this.unwrapValue(this.props.store.getFilterValue(this.props.name))}submitFilter(){this.disabled(this.value)?this.props.store.removeFilter(this.props.name,{refresh:!0}):this.props.store.setFilter(this.props.name,this.wrappedValue,{refresh:!0})}unwrapValue(e){(0,W.isPresent)(e)?isNaN(parseInt(e))&&e instanceof String?(this.value=e.substr(3,e.length-4),this.filterTypeIndex=(0,G.findIndex)(o2,t=>t.wrapper===e.substr(0,2))):this.value=e:this.value=``}disabled(e){return e==null||e===``}inputValue(){return this.value===0?`0`:this.disabled(this.value)?``:this.value}render(){return(0,K.jsx)(ca,{selected:(0,W.isPresent)(this.value),children:(0,K.jsxs)(UPe,{children:[(0,K.jsx)(la,{onClick:this.toggleActive,children:(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-circle":!this.disabled(this.value),"fa-ban":this.disabled(this.value)})})}),(0,K.jsx)(la,{onClick:this.incrementFilterType,children:(0,K.jsx)(da,{disabled:this.disabled(this.value),children:`${this.props.label} ${o2[this.filterTypeIndex]?o2[this.filterTypeIndex].symbol:``}`})}),(0,K.jsx)(`input`,{onChange:this.onChange,ref:this.inputRef,value:this.inputValue()})]})})}},n2=a2(t2.prototype,`filterTypeIndex`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),r2=a2(t2.prototype,`value`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.default||0}}),a2(t2.prototype,`wrappedValue`,[E],Object.getOwnPropertyDescriptor(t2.prototype,`wrappedValue`),t2.prototype),t2))||e2;D();var s2,c2,l2,u2;function d2(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function f2(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var GPe=N.div` 13493 font-size: 14px; 13494`,KPe=N.div` 13495 display: flex; 13496 width: 100%; 13497 align-items: center; 13498 border-bottom: 1px solid #C1C1C1; 13499 margin: 5px 0; 13500 padding: 5px 0; 13501`,qPe=N.div` 13502 flex: 1; 13503`,p2=N.div` 13504 13505`,m2=N.div` 13506 font-size: 20px; 13507 font-weight: bold; 13508 margin: 20px 0; 13509`,JPe=N.div` 13510 width: 140px; 13511`,YPe=N.div` 13512 width: 50px; 13513`,XPe=N.div` 13514 font-size: 15px; 13515 font-weight: bold; 13516`,ZPe=N.div` 13517 font-size: 12px; 13518`,QPe=M(j(s2=(c2=class extends V.Component{constructor(e){super(e),d2(this,`name`,l2,this),d2(this,`loadingFilters`,u2,this),this.onClick=()=>{H.FilterStore.create({data:{name:this.name,namespace:this.props.namespace,description:this.props.filterString,options:ie(this.props.store.filters)}},this.afterSave)},this.afterSave=()=>{this.name=``,this.getFilters()},this.getFilters=()=>{this.loadingFilters=!0,H.FilterStore.getIndex({},this.afterGetFilters)},this.afterGetFilters=e=>{H.FilterStore.setIndexData(e),this.loadingFilters=!1},this.onDelete=e=>
13518{H.FilterStore.destroy({ids:{filterId:e.id}},this.getFilters)},this.onLoadFilter=e=>{(0,G.each)((0,G.keys)(e.optionsJson),t=>{this.props.store.setFilter(t,e.optionsJson[t])}),this.props.store.setPage(1),this.props.store.reloadIndexFiltered(),this.props.afterLoadFilter()},H.FilterStore.setFilter(`namespace`,this.props.namespace),this.getFilters()}get disabled(){return(0,W.isBlank)(this.name)}render(){return(0,K.jsxs)(GPe,{children:[(0,K.jsx)(m2,{children:`Filters List`}),this.loadingFilters&&(0,K.jsx)(P,{}),!this.loadingFilters&&(0,K.jsxs)(p2,{children:[H.FilterStore.indexData.length===0&&(0,K.jsx)(p2,{children:`There are no saved filters.`}),!this.loadingFilters&&H.FilterStore.indexData.map(e=>(0,K.jsxs)(KPe,{children:[(0,K.jsx)(JPe,{children:(0,K.jsx)(sa,{onClick:()=>this.onLoadFilter(e),children:`Load Filter`})}),(0,K.jsxs)(qPe,{children:[(0,K.jsx)(XPe,{children:e.name}),(0,K.jsx)(ZPe,{children:e.description})]}),(0,K.jsx)(YPe,{children:(0,K.jsx)(ra,{onConfirm:()=>this.onDelete(e),message:`Delete this filter?`,className:`fa-block right`})})]},e.id)),H.FilterStore.indexData.length>0&&(0,K.jsx)(In,{store:H.FilterStore})]}),(0,K.jsx)(m2,{children:`Save Filter`}),this.props.filterString,(0,K.jsx)(`input`,{style:{margin:`10px 0`},type:`text`,value:this.name,placeholder:`Enter Filter Name`,onChange:e=>this.name=e.currentTarget.value}),(0,K.jsx)(I,{onClick:this.onClick,disabled:this.disabled,children:`Save`})]})}},l2=f2(c2.prototype,`name`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),u2=f2(c2.prototype,`loadingFilters`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f2(c2.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(c2.prototype,`disabled`),c2.prototype),c2))||s2);D();var h2,g2,_2,v2,y2;function b2(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function x2(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var $Pe=N.div` 13519 margin: ${e=>e.margin}; 13520 border-radius: 10px; 13521 border: 1px solid #c1c1c1; 13522 width: 100%; 13523 ul { 13524 margin: 0; 13525 padding: 0; 13526 } 13527 input { 13528 height: 30px; 13529 margin: 0; 13530 display: inline-block; 13531 outline: none; 13532 } 13533 select { 13534 font-size: 11px!important; 13535 height: 25px!important; 13536 line-height: 14px; 13537 padding: 0!important; 13538 } 13539 .disabled { 13540 color: #333; 13541 } 13542 fa { 13543 pointer-events: none; 13544 } 13545`,eFe=N.div` 13546 display: flex; 13547 align-items: center; 13548 background: white; 13549 border-top-left-radius: 10px; 13550 border-top-right-radius: 10px; 13551 border-bottom-left-radius: ${e=>e.filterExpanded?`0`:`10px`}; 13552 border-bottom-right-radius: ${e=>e.filterExpanded?`0`:`10px`}; 13553 cursor: pointer; 13554`,tFe=N.div` 13555 width: 100px; 13556 padding: 10px; 13557 display: flex; 13558 align-items: center; 13559 justify-content: flex-start; 13560 i { 13561 color: #333; 13562 font-size: 14px; 13563 } 13564`,nFe=N.div` 13565 flex: 1; 13566 padding: 10px; 13567 display: flex; 13568 align-items: center; 13569 justify-content: center; 13570 font-size: 12px; 13571 font-weight: ${e=>e.fontWeight||`bold`}; 13572`,rFe=N.div` 13573 padding: 0 10px 10px 10px; 13574 border-radius: 10px; 13575`,iFe=N.div` 13576 flex: 1; 13577 display: flex; 13578 align-items: center; 13579 justify-content: center; 13580 flex-wrap: wrap; 13581 font-weight: bold; 13582 color: #333; 13583 font-size: 14px; 13584 margin-top: 10px; 13585`,aFe=N.div` 13586 cursor: pointer; 13587 background: ${q.Theme.green}; 13588 display: flex; 13589 align-items: center; 13590 justify-content: center; 13591 color: #FFF; 13592 font-size: 12px; 13593 font-weight: bold; 13594 border-radius: 5px; 13595 margin: 2px 5px; 13596 padding: 2px 10px; 13597 i { 13598 margin-left: 5px; 13599 } 13600 -moz-user-select: none; 13601 -khtml-user-select: none; 13602 -webkit-user-select: none; 13603`,oFe=N.div` 13604 margin-top: 10px; 13605 display: flex; 13606 align-items: center; 13607 justify-content: center; 13608 flex-wrap: wrap; 13609`,sFe=N.div` 13610 cursor: pointer; 13611`,cFe=N.div` 13612 width: 100px; 13613 height: 24px; 13614 border-bottom-left-radius: 10px; 13615 border-bottom-right-radius: 10px; 13616 display: flex; 13617 align-items: center; 13618 justify-content: center; 13619 color: #333; 13620 font-size: 11px; 13621 margin-right: 5px; 13622`,S2=j(h2=(g2=(y2=class extends V.Component{constructor(e){super(e),b2(this,`filterExpanded`,_2,this),b2(this,`showFilterIndex`,v2,this),this.toggleFilterExpanded=()=>{this.filterExpanded=!this.filterExpanded,(0,W.setCookieValue)(`${this.props.namespace}-expanded`,this.filterExpanded)},this.onClickFilterTag=e=>{this.props.store.setFilter(e,``,{ids:this.props.ids,refresh:!0})},this.props.onMount&&this.props.onMount(),this.props.store.initializeFilters(this.props.defaultFilters,this.props.filters,this.props.defaultSort,this.props.namespace,this.props.queryStrings,this.props.limit,this.props.ids),this.filters={multi_select:MPe,dropdown_multi_select:VPe,select:ua,boolean:OPe,hidden:$0,text:$0,number:WPe,date:fa}}_component(e,t){if(this.filters[e.type])return V.createElement(this.filters[e.type],(0,G.merge)({store:this.props.store,namespace:this.props.namespace,key:t,exactValue:this.props.exactV
13622alue,hidden:this.props.hidden,ids:this.props.ids},e));e.type!==`hidden`&&!this.filters[e.type]&&console.warn(`The filter '${e.type}' must be registered`)}_filters(){if(this.props.store.filterInitialized)return this.props.filters.map((e,t)=>this._component(e,t))}get filterTags(){let e=[],t;return(0,G.each)((0,G.keys)(this.props.store.filters),n=>{if((0,W.isPresent)(this.props.store.filters[n])){let r=this.props.filters.find(e=>e.name===n);t=r&&r.options&&this.props.store.filters[n].map?this.props.store.filters[n].map(e=>{let t=r.options.find(t=>t.id===e);return t?t[r.labelField||`name`]:null}).filter(e=>(0,W.isPresent)(e)).join(`, `):r&&r.options&&r.options.find(e=>e.id===this.props.store.filters[n])?r.options.find(e=>e.id===this.props.store.filters[n])[r.labelField||`name`]:this.props.store.filters[n],(0,W.isPresent)(this.props.store.filters[n])&&r&&!r.hidden&&e.push({key:n,string:`${r&&(0,W.isPresent)(r.label)?r.label:n}: ${t}`})}}),e}get filterString(){return this.filterTags.map(e=>e.string).join(`, `)}render(){return(0,K.jsxs)($Pe,{margin:this.props.margin,children:[this.showFilterIndex&&(0,K.jsx)(Dn,{onCloseModal:()=>
13622this.showFilterIndex=!1,children:(0,K.jsx)(QPe,{namespace:this.props.namespace,filterString:this.filterString,store:this.props.store,afterLoadFilter:()=>this.showFilterIndex=!1})}),(0,K.jsxs)(eFe,{filterExpanded:this.filterExpanded,children:[(0,K.jsxs)(tFe,{onClick:this.toggleFilterExpanded,children:[this.filterExpanded&&(0,K.jsx)(`i`,{className:`fa fa-minus`}),!this.filterExpanded&&(0,K.jsx)(`i`,{className:`fa fa-plus`})]}),(0,K.jsx)(nFe,{onClick:this.toggleFilterExpanded,children:`Filters`}),!!(this.props.queryStrings&&this.props.queryStrings.include_count&&(0,W.isPresent)(this.props.store.totalCount))&&this.props.store.requestCounter===0&&(0,K.jsx)(cFe,{children:`${(0,W.formatNumber)(this.props.store.totalCount)} Result${this.props.store.totalCount>1?`s`:``}`}),!!(this.props.queryStrings&&this.props.queryStrings.include_count&&(0,W.isPresent)(this.props.store.totalCount))&&this.props.store.requestCounter>0&&(0,K.jsx)(P,{background:`#A7A7A7`,margin:`0`,height:`10px`})]}),(0,K.jsxs)(rFe,{children:[!this.filterExpanded&&(0,K.jsxs)(iFe,{children:[(0,W.isBlank)(this.filterTags)&&!this.filterExpanded&&(0,K.jsx)(sFe,{onClick:this.toggleFilterExpanded,children:`No Filters`}),this.filterTags.map(e=>(0,K.jsxs)(aFe,{onClick:()=>this.onClickFilterTag(e.key),children:[e.string,(0,K.jsx)(`i`,{className:`fa fa-times`})]},e.key))]}),this.filterExpanded&&(0,K.jsx)(oFe,{children:this._filters()})]})]})}},y2.propTypes={store:Z.default.object,prefix:Z.default.string,filters:Z.default.array,hide:Z.default.bool,unit:Z.default.string},y2.defaultProps={margin:`0 0 10px 0`,limit:20},y2),_2=x2(g2.prototype,`filterExpanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,W.getCookieValue)(`${this.props.namespace}-expanded`)}}),v2=x2(g2.prototype,`showFilterIndex`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x2(g2.prototype,`filterTags`,[E],Object.getOwnPropertyDescriptor(g2.prototype,`filterTags`),g2.prototype),x2(g2.prototype,`filterString`,[E],Object.getOwnPropertyDescriptor(g2.prototype,`filterString`),g2.prototype),g2))||h2,C2,lFe=N.div` 13623 background: white; 13624 display: flex; 13625 align-items: center; 13626 justify-content: center; 13627 padding: 5px; 13628 border-radius: 5px; 13629 border: 1px solid gray; 13630 font-size: 12px; 13631 font-weight: bold; 13632 pointer-events: none; 13633 margin-right: 5px; 13634`,uFe=N.span` 13635 display: flex; 13636 align-items: center; 13637`,w2=M(j(C2=class extends V.Component{render(){return(0,K.jsx)(uFe,{children:this.props.text.split(`,`).map(e=>(0,K.jsx)(lFe,{children:e},e))})}})||C2);D();var T2,E2,D2;function dFe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function O2(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var fFe=N.div` 13638 .seedlang-icon { 13639 border: 1px solid gray; 13640 border-radius: 50%; 13641 background: #FFF; 13642 svg { 13643 width: 50px; 13644 } 13645 } 13646`,pFe=N.div` 13647 display: flex; 13648 align-items: center; 13649 flex: 1; 13650 margin: 0 10px 0 20px; 13651 font-size: 16px; 13652 .icon-wrapper { 13653 margin-right: 5px; 13654 } 13655 .icon-wrapper, .pin-icon { 13656 height: 14px; 13657 width: 14px; 13658 } 13659 svg { 13660 width: 14px; 13661 fill: #333; 13662 } 13663`,mFe=N.div` 13664 font-size: 13px; 13665 line-height: 18px; 13666 color: #999; 13667 width: 220px; 13668`,hFe=N.div` 13669 position: absolute; 13670 left: 0; 13671 top: 0; 13672`,gFe=M(j(T2=(E2=class extends V.Component{constructor(e){super(e),dFe(this,`loadedIndex`,D2,this),this.loadThreadsForCurrentPage=({reload:e=!1}={})=>{U.ForumUI.forumThreadStore.setPage(this.currentPage),e?U.ForumUI.forumThreadStore.reloadIndexFiltered({ids:{forumId:this.forumId}}):this.showBackendFilters||U.ForumUI.forumThreadStore.getIndex({filters:this.indexFilters,sort:this.props.defaultSort})},this.getThreadRoute=e=>{let t=`forums.forum_threads.show`;return U.AppUI.siteIsDefault?this.props.groupId&&(t=`classroom.forum_threads.show`):t=`creator.forum_threads.show`,{name:t,params:{forumThreadI
13672d:e.id,groupId:this.props.groupId,forumId:this.forumId}}},U.ForumUI.onReset(),this.props.forumId&&this.props.loadForum&&U.ForumUI.loadForum(this.props.forumId),this.disposer=te(()=>{!this.loadedIndex&&U.ForumUI.forum&&!U.AppUI.loadingUser&&(this.loadedIndex=!0,this.loadThreadsForCurrentPage())}),U.AppUI.createEvent(`discuss - view forum`,{forum_id:this.props.params?.forumId})}componentDidUpdate(e){this.loadedIndex&&parseInt(e.params?.page||1,10)!==this.currentPage&&this.loadThreadsForCurrentPage({reload:!0})}componentWillUnmount(){U.ForumUI.forumThreadStore.clearIndexData(),U.ForumUI.forumThreadStore.clearFilter(),this.disposer&&this.disposer()}get currentPage(){return parseInt(this.props.params?.page||1,10)}get forumId(){return this.props.forumId||this.props.params.forumId}get indexFilters(){let e={forum_id:this.forumId,hidden:!1};return this.props.defaultFilters&&(0,G.each)((0,G.keys)(this.props.defaultFilters),t=>{e[t]=this.props.defaultFilters[t]}),e}get showFilters(){return(U.AppUI.user.admin||U.AppUI.user.moderator)&&U.ForumUI.forum.showFilters}get showBackendFilters(){return this.showFilters&&!this.props.hideBackendFilters}get filterComponents(){let e=[];return this.props.groupId||(e=[{type:`multi_select`,name:`tag`,label:`Tag`,options:[{id:`~Ling-DE~`,name:`Ling-DE`},{id:`~Ling-ES~`,name:`Ling-ES`},{id:`~Ling-FR~`,name:`Ling-FR`},{id:`~Cust-Sup~`,name:`Cust-Sup`},{id:`~Marie~`,name:`Marie`}],labelField:`name`,default:``}]),U.ForumUI.forum.highlightUnseen&&e.push({type:`boolean`,name:`seen_by_admin`,label:`Checked`,default:``}),e}get vocabForumLanguageId(){return(0,G.keys)(q.Constants.VOCAB_FORUM_IDS).find(e=>q.Constants.VOCAB_FORUM_IDS[e]===U.ForumUI.forumStore?.params?.ids?.forumId)}render(){return(0,K.jsxs)(fFe,{children:[this.showBackendFilters&&(0,K.jsx)(S2,{store:U.ForumUI.forumThreadStore,defaultFilters:this.indexFilters,defaultSort:this.props.defaultSort||`-pinned,-last_commented_at`,namespace:`user-index`,filters:this.filterComponents}),U.ForumUI.forumThreadStore.hasOutstandingRequests&&!this.props.hideSpinner&&(0,K.jsx)(P,{}),U.ForumUI.forumThreadStore.indexData.map(e=>{let t;return U.ForumUI.forum.highlightUnseen&&(U.AppUI.user.moderator||U.AppUI.user.admin)&&e.tag?t=`#f9f1dc`:U.ForumUI.forum.highlightUnseen&&(U.AppUI.user.moderator||U.AppUI.user.admin)&&!e.seenByAdmin&&(t=`#fdfae2`),(0,K.jsx)(F,{to:this.getThreadRoute(e),style:{textDecoration:`none`,color:`inherit`},children:(0,K.jsxs)(M0,{background:t,children:[e.tag&&U.ForumUI.user.moderator&&(0,K.jsx)(hFe,{children:(0,K.jsx)(w2,{text:e.tag})}),!e.user&&!this.props.hideLogo&&(0,K.jsx)(J.SeedlangIcon,{}),e.user&&(0,K.jsx)(Mg,{user:e.user,width:50}),(0,K.jsxs)(pFe,{children:[e.pinned&&(0,K.jsx)(J.PinIcon,{}),(0,W.displayTargetTextCorrectedForLanguage)(e.titleOrTarget,this.vocabForumLanguageId||e.languageId)]}),(0,K.jsxs)(mFe,{children:[(0,K.jsx)(`div`,{children:e.lastCommentedAt.relativeTime}),!this.props.hideName&&(0,K.jsxs)(`i`,{children:[`by `,e.lastCommentName||`Anonymous`]})]}),(0,K.jsx)(k0,{count:U.AppUI.user.admin||U.AppUI.user.admin?e.commentsCount:e.visibleCommentsCount,showCommentIcon:!0})]})},e.id)}),(U.ForumUI.forumThreadStore.hasIndexData||U.ForumUI.forumThreadStore.page>1)&&(0,K.jsx)(In,{updateUrl:!0,store:U.ForumUI.forumThreadStore,ids:{forumId:this.forumId},margin:`20px 0`})]})}},D2=O2(E2.prototype,`loadedIndex`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O2(E2.prototype,`currentPage`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`currentPage`),E2.prototype),O2(E2.prototype,`forumId`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`forumId`),E2.prototype),O2(E2.prototype,`indexFilters`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`indexFilters`),E2.prototype),O2(E2.prototype,`showFilters`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`showFilters`),E2.prototype),O2(E2.prototype,`showBackendFilters`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`showBackendFilters`),E2.prototype),O2(E2.prototype,`filterComponents`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`filterComponents`),E2.prototype),O2(E2.prototype,`vocabForumLanguageId`,[E],Object.getOwnPropertyDescriptor(E2.prototype,`vocabForumLanguageId`),E2.prototype),E2))||T2);D();var k2,A2;function j2(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _Fe=N.div` 13673 width: 100%; 13674`,vFe=N.div` 13675 background: ${e=>e.background}; 13676 display: flex; 13677 align-items: center; 13678 margin: 0 0 10px 0; 13679`,yFe=N.div` 13680 flex: 1; 13681 font-size: 16px; 13682 color: #333; 13683 font-weight: bold; 13684 padding-left: 10px; 13685`,bFe=N.div` 13686 display: flex; 13687 justify-content: flex-end; 13688 margin: 0 0 10px 0; 13689`,M2=M(j(k2=(A2=class extends V.Component{get forumId(){let e;return this.props.params?.groupId&&U.AppUI.groupStore.hasShowData&&(0,W.isPresent)(U.AppUI.groupStore.showData.forums[0])&&(e=U.AppUI.groupStore.showData.forums[0].id),this.props.forumId||this.props.params?.forumId||e}get createDiscussionRoute(){return this.props.params?.groupId?`classroom.forum_threads.create`:this.props.languageId?`translator.forum_threads.create`:`forums.forum_threads.create`}constructor(e){super(e),U.ForumUI.loadForum(this.forumId)}render(){return(0,K.jsxs)(_Fe,{children:[!this.props.hideBreadcrumbs&&!this.props.params?.groupId&&!this.props.languageId&&!this.props.topBarTitle&&(0,K.jsx)(LM,{title:`DISCUSS`,titleRoute:`forums.index`,pageInfo:[{route:`forums.show`,current:U.ForumUI.forumStore.showData.title}]}),this.props.topBarTitle&&(0,K.jsx)(vFe,{background:this.props.topBarBackgroun
13689d,children:this.props.topBarTitle&&(0,K.jsx)(yFe,{children:this.props.topBarTitle})}),U.ForumUI.userIsLoaded&&U.ForumUI.forumStore.hasShowData&&!U.ForumUI.forum.hideCreateDiscussionButton&&(0,K.jsx)(bFe,{children:(0,K.jsx)(I,{margin:this.props.buttonMargin,height:`34px`,fontSize:`14px`,onClick:()=>U.ForumUI.routeStore.routeToNamed(this.createDiscussionRoute,{groupId:this.props.params?.groupId,languageId:this.props.languageId,forumId:this.forumId}),children:`Create Discussion`})}),U.ForumUI.forumStore.hasShowData&&(0,K.jsx)(gFe,{forumId:this.forumId,groupId:this.props.params?.groupId,...this.props})]})}},j2(A2.prototype,`forumId`,[E],Object.getOwnPropertyDescriptor(A2.prototype,`forumId`),A2.prototype),j2(A2.prototype,`createDiscussionRoute`,[E],Object.getOwnPropertyDescriptor(A2.prototype,`createDiscussionRoute`),A2.prototype),A2))||k2),N2,xFe=N.div` 13690 display: flex; 13691 padding: 20px 0 0 0; 13692`,SFe=N.div` 13693 width: 260px; 13694 display: flex; 13695 flex-direction: column; 13696`,CFe=N.div` 13697 flex: 1; 13698 padding-right: 10px; 13699`,wFe=pf(M(j(N2=class extends V.Component{render(){return(0,K.jsxs)(xFe,{children:[(0,K.jsx)(CFe,{children:U.AppUI.languageStore.hasShowData&&(0,K.jsx)(M2,{buttonMargin:`0 10px 0 0`,topBarBackgroun
13699d:`#FFF`,topBarTitle:`Translator Discussions`,loadForum:!0,hideBreadcrumbs:!0,forumId:U.AppUI.languageStore.showData.forumId,languageId:this.props.params.languageId})}),(0,K.jsx)(SFe,{children:U.AppUI.languageStore.hasShowData&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(OJ,{title:`Decks`,padding:`10px 0 10px 0`,slug:`translator-home-decks`,children:(0,K.jsx)(S$,{id:`translated-decks`,colors:[q.Theme.green,`#D8D8D8`],data:[{y:U.AppUI.languageStore.showData.deDecksTranslatedCount},{y:U.AppUI.languageStore.showData.deDecksTotalCount-U.AppUI.languageStore.showData.deDecksTranslatedCount}],width:160,formatNumber:!0,fontSize:`28px`,margin:`0 0 20px 0`,count:(0,W.formatNumber)(U.AppUI.languageStore.showData.deDecksTranslatedCount),tooltipText:`${(0,W.formatNumber)(U.AppUI.languageStore.showData.deDecksTranslatedCount)} translated of ${(0,W.formatNumber)(U.AppUI.languageStore.showData.deDecksTotalCount)}`,legends:[[q.Theme.green,`Translated`],[`#D8D8D8`,`Untranslated`]]})}),(0,K.jsx)(OJ,{title:`Sentences`,padding:`10px 0 10px 0`,slug:`translator-home-sentences`,children:(0,K.jsx)(S$,{id:`translated-sentences`,colors:[q.Theme.green,`#D8D8D8`],data:[{y:U.AppUI.languageStore.showData.deSentencesTranslatedCount},{y:U.AppUI.languageStore.showData.deSentencesTotalCount-U.AppUI.languageStore.showData.deSentencesTranslatedCount}],width:160,fontSize:`28px`,margin:`0 0 20px 0`,count:(0,W.formatNumber)(U.AppUI.languageStore.showData.deSentencesTranslatedCount),tooltipText:`${(0,W.formatNumber)(U.AppUI.languageStore.showData.deSentencesTranslatedCount)} translated of ${(0,W.formatNumber)(U.AppUI.languageStore.showData.deSentencesTotalCount)}`,legends:[[q.Theme.green,`Translated`],[`#D8D8D8`,`Untranslated`]]})}),(0,K.jsx)(OJ,{title:`Words`,padding:`10px 0 10px 0`,slug:`translator-home-words`,children:(0,K.jsx)(S$,{id:`translated-words`,colors:[q.Theme.green,`#D8D8D8`],data:[{y:U.AppUI.languageStore.showData.deWordsTranslatedCount},{y:U.AppUI.languageStore.showData.deWordsTotalCount-U.AppUI.languageStore.showData.deWordsTranslatedCount}],fontSize:`28px`,width:160,margin:`0 0 20px 0`,count:(0,W.formatNumber)(U.AppUI.languageStore.showData.deWordsTranslatedCount),tooltipText:`${(0,W.formatNumber)(U.AppUI.languageStore.showData.deWordsTranslatedCount)} translated of ${(0,W.formatNumber)(U.AppUI.languageStore.showData.deWordsTotalCount)}`,legends:[[q.Theme.green,`Translated`],[`#D8D8D8`,`Untranslated`]]})})]})})]})}})||N2)),P2,TFe=N.div` 13700 13701`,EFe=N.div` 13702 margin-top: 10px; 13703`,DFe=N.div` 13704 margin-bottom: 10px; 13705`,OFe=j(P2=class extends V.Component{render(){return(0,K.jsxs)(TFe,{children:[(0,K.jsx)(EFe,{children:(0,K.jsx)(qZ,{placeholder:`Search for a word`,onChange:this.props.onUpdateSearchQuery,insertText:this.props.insertText,focusOnId:this.props.searchQuery,value:this.props.searchQuery,caretPosition:this.props.caretPosition,background:`#FFF`})}),(0,K.jsx)(DFe,{children:(0,K.jsx)(UZ,{filterName:`Vocab Filters`,noFiltersSelectedMessage:this.props.noFiltersSelectedMessage,filterSettings:this.props.filterSettings,onSetFilter:this.props.onSetFilter,searchQuery:this.props.searchQuery,hasActiveFilter:this.props.hasActiveFilter,onToggleFiltersExpanded:this.props.onToggleFiltersExpanded,setShowFilterOptions:this.props.setShowFilterOptions,showFilterOptions:this.props.showFilterOptions,filteredItemsCount:this.props.filteredItemsCount,filteredItemsType:`Word`})}),(0,K.jsx)(HQ,{...this.props})]})}})||P2,kFe=pf((0,Y.VocabWrapper)(OFe));D();var F2,I2,L2,R2,z2;function B2(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function V2(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var AFe=N.div` 13706 display: flex; 13707 padding: 10px; 13708 background: #FFF; 13709 align-items: center; 13710 width: ${e=>e.width}; 13711`,jFe=N.div` 13712 flex: 1; 13713`,H2=N.div` 13714 margin: ${e=>e.margin}; 13715 display: flex; 13716 align-items: center; 13717`,U2=N.div` 13718 font-size: 14px; 13719 font-weight: bold; 13720 background: #e1e1e1; 13721 display: flex; 13722 margin-right: 10px; 13723 align-items: center; 13724 height: 35px; 13725 font-size: 12px; 13726 line-height: 22px; 13727 font-weight: bold; 13728 color: #333; 13729 width: 180px; 13730 padding: 0 0 0 10px; 13731`,W2=N.div` 13732 display: flex; 13733 font-size: 14px; 13734 flex: 1; 13735 padding-right: 10px; 13736 text-align: left; 13737`,MFe=N.div` 13738 display: flex; 13739 align-items: center; 13740 max-width: 300px; 13741 input { 13742 height: 35px; 13743 margin-right: 10px; 13744 } 13745`,NFe=N.div` 13746 cursor: pointer; 13747 border: 1px dotted #CCC; 13748 direction: ${e=>e.rtl?`rtl`:`auto`}; 13749`,PFe=N.div` 13750 direction: ${e=>e.rtl?`rtl`:`auto`}; 13751`,G2=N.div` 13752 position: relative; 13753 border-radius: 10px; 13754 width: 150px; 13755 height: 130px; 13756`,K2=M(j(F2=(I2=class extends V.Component{constructor(...e){super(...e),B2(this,`textEntry`,L2,this),B2(this,`submitted`,R2,this),B2(this,`forceEdit`,z2,this),this.onSubmit=()=>{U.AppUI.translationSourceStore.create({data:{text:this.textEntry,language_id:U.AppUI.user.languageId,user_id:U.AppUI.user.id,translation_id:this.props.sentence.id,rejected:!1}},this.afterSubmit)},this.afterSubmit=()=>{this.forceEdit=!1,this.submitted=!0,this.props.afterSubmit&&this.props.afterSubmit()},this.onEditText=()=>{U.AppUI.user.blockedTranslationInput||(this.forceEdit=!0,this.textEntry=this.translationSourceText)}}get editMode(){return this.forceEdit||(0,W.isBlank)(this.sourceText)}get sourceText(){return this.submitted?this.textEntry:this.translationSourceText}get translationSource(){return this.props.sentence.translationSources.find(e=>e.source?.languageId===U.AppUI.user.languageId)}get translationSourceText(){let e=this.translationSource;return e?e.source.text:null}render(){return(0,K.jsxs)(AFe,{width:this.props.width,children:[(0,K.jsxs)(jFe,{children:[(0,K.jsxs)(H2,{margin:`10px 0`,children:[(0,K.jsxs)(U2,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:this.props.sentence.languageId,margin:`0 5px 0 0`}),`Target Sentence`]}),(0,K.jsx)(W2,{children:this.props.sentence.targetText})]}),(0,K.jsxs)(H2,{margin:`10px 0`,children:[(0,K.jsxs)(U2,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:`EN`,margin:`0 5px 0 0`}),`English Translation`]}),(0,K.jsx)(W2,{children:this.props.sentence.defaultSource.text})]}),U.AppUI.user.languageId!==`EN`&&(0,K.jsxs)(H2,{margin:`10px 0`,children:[(0,K.jsxs)(U2,{children:[(0,K.jsx)(J.LanguageIcon,{languageId:U.Ap
13756pUI.user.languageId,margin:`0 5px 0 0`}),q.Languages[U.AppUI.user.languageId],` Translation`]}),(0,K.jsxs)(W2,{children:[this.editMode&&!U.AppUI.user.blockedTranslationInput&&(0,K.jsxs)(H2,{children:[(0,K.jsxs)(MFe,{children:[U.AppUI.user.translator&&(0,K.jsx)(Qi,{allowUpdate:!0,rtl:U.AppUI.user?.rightToLeftLanguage,submitOnEnter:!0,onSubmit:this.onSubmit,onChange:e=>this.textEntry=e,value:this.textEntry,inputHeight:`35px`,show:!0}),!U.AppUI.user.translator&&(0,K.jsx)(`div`,{children:this.textEntry})]}),U.AppUI.user.translator&&(0,K.jsx)(I,{margin:`0 0 0 10px`,onClick:this.onSubmit,height:`35px`,children:`Submit`})]}),!this.editMode&&!U.AppUI.user.blockedTranslationInput&&U.AppUI.user.translator&&(0,K.jsx)(NFe,{rtl:U.AppUI.user?.rightToLeftLanguage,onClick:this.onEditText,children:this.sourceText}),!this.editMode&&!U.AppUI.user.blockedTranslationInput&&!U.AppUI.user.translator&&(0,K.jsx)(PFe,{rtl:U.AppUI.user?.rightToLeftLanguage,onClick:this.onEditText,children:this.sourceText}),U.AppUI.user.blockedTranslationInput&&(0,K.jsx)(`div`,{children:this.sourceText}),this.translationSource&&!this.editMode&&(0,K.jsx)(ak,{translationSource:this.translationSource,onAfterFlag:()=>this.props.onFlag&&this.props.onFlag(this.translationSource)})]})]})]}),(0,W.isPresent)(this.props.sentence.videoClip)&&!this.props.hideVideos&&(0,K.jsx)(G2,{children:(0,K.jsx)(Ai,{circle:!0,loop:!0,autoPlay:!0,videoClip:this.props.sentence.videoClip,width:`130`})}),this.props.sentence.target.videoClip&&!this.props.hideVideos&&(0,K.jsx)(G2,{children:(0,K.jsx)(Ai,{circle:!0,videoClip:this.props.sentence.target.videoClip,width:`130`})})]})}},L2=V2(I2.prototype,`textEntry`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R2=V2(I2.prototype,`submitted`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z2=V2(I2.prototype,`forceEdit`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V2(I2.prototype,`editMode`,[E],Object.getOwnPropertyDescriptor(I2.prototype,`editMode`),I2.prototype),V2(I2.prototype,`sourceText`,[E],Object.getOwnPropertyDescriptor(I2.prototype,`sourceText`),I2.prototype),V2(I2.prototype,`translationSource`,[E],Object.getOwnPropertyDescriptor(I2.prototype,`translationSource`),I2.prototype),V2(I2.prototype,`translationSourceText`,[E],Object.getOwnPropertyDescriptor(I2.prototype,`translationSourceText`),I2.prototype),I2))||F2);D();var q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4;function r4(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function i4(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var FFe=N.div` 13757 13758`,IFe=N.div` 13759 display: flex; 13760 flex-direction: row; 13761 align-items: center; 13762 background: #FFF; 13763 border: 3px solid #CCC; 13764 border-radius: 5px; 13765 height: 46px; 13766 width: calc(100% - 20px); 13767 margin: 10px; 13768`,LFe=N.div` 13769 width: 45px; 13770 display: flex; 13771 flex-direction: row; 13772 align-items: center; 13773 justify-content: center; 13774 padding-right: 5px; 13775 cursor: pointer; 13776 svg { 13777 fill: #333; 13778 width: 20px; 13779 } 13780`,RFe=N.div` 13781 width: 60px; 13782 padding-left: 10px; 13783 font-size: 12px; 13784 font-weight: bold; 13785 margin-right: 5px; 13786 cursor: pointer; 13787 color: #333; 13788 height: 19px; 13789`,zFe=N.div` 13790 display: flex; 13791 flex-direction: row; 13792 width: 100%; 13793`,BFe=N.div` 13794 padding: 20px 10px; 13795`,VFe=N.div` 13796 background: #FFF; 13797 padding: 5px; 13798 padding-right: ${e=>e.paddingRight}; 13799 border-radius: 5px; 13800 margin: 3px; 13801 position: relative; 13802 border: 1px solid #CCC; 13803 display: flex; 13804 flex-direction: row; 13805 align-items: center; 13806 justify-content: center; 13807 cursor: pointer; 13808 width: max-content; 13809`,HFe=N.div` 13810 margin-top: 10px; 13811`,UFe=pf(M(j(q2=(J2=class extends V.Component{get filters(){let e={language_id:`DE`};return(0,W.isPresent)(this.searchQuery)&&this.searchQuery.match(`"`)?e.target_text=this.searchQuery.replace(/"/g,``):(0,W.isPresent)(this.searchQuery)?e.target_text=`~${this.searchQuery}~`:e.languages_string=U.AppUI.user.translatorsFilterHasTranslation?this.props.params.languageId:`!${this.props.params.languageId}`,e}constructor(e){super(e),r4(this,`selected`,Y2,this),r4(this,`filtersExpanded`,X2,this),r4(this,`showFilterOptions`,Z2,this),r4(this,`userRequestIsPending`,Q2,this),r4(this,`userIsLoaded`,$2,this),r4(this,`showSpinner`,e4,this),r4(this,`searchQuery`,t4,this),r4(this,`caretPosition`,n4,this),this.onUpdateSearchQuery=(e,t)=>{this.searchQuery=e,this.caretPosition=t,clearInterval(this.interval),this.interval=setTimeout(this.getSentences,500)},this.insertText=(e,t)=>
13811{let n;if(t||=this.searchQuery?this.searchQuery.length:0,this.disabled)return null;n=this.searchQuery?[this.searchQuery.slice(0,t),e,this.searchQuery.slice(t)].join(``):e,this.onUpdateSearchQuery(n,t+1)},this.onSetFilter=(e,t)=>{this.selected[e]=t;let n={};n[e]=t,this.updateUser(n,this.getSentences)},this.onToggleFiltersExpanded=()=>{this.filtersExpanded=!this.filtersExpanded},this.setShowFilterOptions=e=>{this.showFilterOptions=e},this.getSentences=()=>{this.showSpinner=!0,this.userRequestIsPending=!1,H.SentenceStore.clearFilter(),H.SentenceStore.getIndex({filters:this.filters},this.afterShowSentence)},this.afterShowSentence=e=>{this.showSpinner=!1,H.SentenceStore.setIndexData(e)},this.updateUser=(e,t)=>{(0,G.each)((0,G.keys)(e),t=>{U.AppUI.user&&U.AppUI.user.set(t,e[t]),(0,W.isBlank)(this.selected)&&(this.selected={}),this.userRequestIsPending&&(this.selected[t]=e[t])}),this.userRequestIsPending||(this.userRequestIsPending=!0,t&&(this.callback=t),U.AppUI.authUserStore.update({data:this.selected},this.getSentences))},te(()=>{U.AppUI.userIsLoaded&&!this.userIsLoaded&&(this.userIsLoaded=!0,this.getSentences())})}render(){return(0,K.jsxs)(FFe,{children:[this.showFilterOptions&&(0,K.jsx)(Dn,{width:`400px`,height:`600px`,onCloseModal:()=>this.setShowFilterOptions(!1),gradient:!0,padding:`0`,title:`Sentence Filters`,contentShouldScroll:!0,children:(0,K.jsx)(BFe,{children:(0,K.jsx)(LZ,{label:`Has Translation`,filterType:`select`,userKey:`translatorsFilterHasTranslation`,options:[[!0,`Yes`],[!1,`No`]],value:U.AppUI.user.translatorsFilterHasTranslation,onSetFilter:this.onSetFilter})})}),(0,K.jsx)(HFe,{children:(0,K.jsx)(qZ,{placeholder:`Search for a sentence`,onChange:this.onUpdateSearchQuery,insertText:this.insertText,focusOnId:this.searchQuery,value:this.searchQuery,caretPosition:this.caretPosition,background:`#FFF`})}),(0,K.jsxs)(IFe,{children:[(0,K.jsx)(RFe,{onClick:()=>this.setShowFilterOptions(!0),children:`Filters`}),(0,K.jsx)(zFe,{children:(0,K.jsx)(VFe,{children:(0,K.jsxs)(R,{color:`#333`,bold:!0,fontSize:12,lineHeight:15,children:[`Has Translation: `,U.AppUI.user.translatorsFilterHasTranslation?`Yes`:`No`]})})}),(0,K.jsx)(LFe,{onClick:()=>this.setShowFilterOptions(!0),children:(0,K.jsx)(J.FilterIcon,{width:20,height:20,fill:`#444`})})]}),this.showSpinner&&(0,K.jsx)(P,{}),!this.showSpinner&&H.SentenceStore.indexData.map(e=>(0,K.jsx)(K2,{sentence:e},e.id)),!this.showSpinner&&U.AppUI.userIsLoaded&&(0,K.jsx)(In,{store:H.SentenceStore,filters:this.filters})]})}},Y2=i4(J2.prototype,`selected`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),X2=i4(J2.prototype,`filtersExpanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Z2=i4(J2.prototype,`showFilterOptions`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Q2=i4(J2.prototype,`userRequestIsPending`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}
13811),$2=i4(J2.prototype,`userIsLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),e4=i4(J2.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t4=i4(J2.prototype,`searchQuery`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n4=i4(J2.prototype,`caretPosition`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i4(J2.prototype,`filters`,[E],Object.getOwnPropertyDescriptor(J2.prototype,`filters`),J2.prototype),J2))||q2));D();var a4,o4,s4,c4,l4,u4,d4;function f4(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function p4(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var WFe=N.div` 13812 13813`,GFe=N.div` 13814 display: flex; 13815 margin-bottom: 10px; 13816 margin-top: ${e=>e.marginTop}; 13817`,KFe=N.div` 13818 width: 60px; 13819 padding-left: 10px; 13820 font-size: 12px; 13821 font-weight: bold; 13822 margin-right: 5px; 13823 cursor: pointer; 13824 color: #333; 13825 height: 19px; 13826`,qFe=N.div` 13827 display: flex; 13828 flex-direction: row; 13829 width: 100%; 13830`,JFe=N.div` 13831 padding: 20px 10px; 13832`,m4=N.div` 13833 background: #FFF; 13834 padding: 5px; 13835 padding-right: ${e=>e.paddingRight}; 13836 border-radius: 5px; 13837 margin: 3px; 13838 position: relative; 13839 border: 1px solid #CCC; 13840 display: flex; 13841 flex-direction: row; 13842 align-items: center; 13843 justify-content: center; 13844 cursor: pointer; 13845 width: max-content; 13846`,YFe=N.div` 13847 display: flex; 13848 flex-direction: row; 13849 align-items: center; 13850 background: #FFF; 13851 border: 3px solid #CCC; 13852 border-radius: 5px; 13853 height: 46px; 13854 width: calc(100% - 20px); 13855 margin: 10px; 13856`,XFe=N.div` 13857 width: 45px; 13858 display: flex; 13859 flex-direction: row; 13860 align-items: center; 13861 justify-content: center; 13862 padding-right: 5px; 13863 cursor: pointer; 13864 svg { 13865 fill: #333; 13866 width: 20px; 13867 } 13868`,ZFe=N.div` 13869 display: flex; 13870 padding: 10px; 13871 background: #FFF; 13872 margin: 10px; 13873 align-items: center; 13874`,QFe=N.div` 13875 background: #2F25BB; 13876 border-radius: 10px; 13877 img { 13878 border-radius: 10px; 13879 width: 120px; 13880 height: 120px; 13881 } 13882 cursor: pointer; 13883 margin-right: 10px; 13884`,h4=N.div` 13885 font-size: 14px; 13886 font-weight: bold; 13887 background: #e1e1e1; 13888 display: flex; 13889 margin-right: 10px; 13890 align-items: center; 13891 height: 35px; 13892 font-size: 12px; 13893 line-height: 22px; 13894 font-weight: bold; 13895 color: #333; 13896 width: 180px; 13897 padding: 0 0 0 10px; 13898`,g4=N.div` 13899 display: flex; 13900 margin-bottom: 10px; 13901 align-items: center; 13902`,_4=N.div` 13903 display: flex; 13904 font-size: 14px; 13905 flex: 1; 13906 padding-right: 10px; 13907 .fa-times { 13908 color: ${q.Theme.red}; 13909 } 13910 .fa-check { 13911 color: ${q.Theme.green}; 13912 } 13913`,$Fe=N.div` 13914 display: flex; 13915 flex-direction: column; 13916 flex: 1; 13917`,eIe=pf(M(j(a4=(o4=class extends V.Component{constructor(e){super(e),f4(this,`showFilterOptions`,s4,this),f4(this,`selected`,c4,this),f4(this,`userIsLoaded`,l4,this),f4(this,`showSpinner`,u4,this),f4(this,`searchQuery`,d4,this),this.getDecks=()=>{this.showSpinner=!0,this.userRequestIsPending=!1,U.AppUI.deckStore.setFilters(this.filters),U.AppUI.deckStore.getIndex({sort:`name`},this.afterGetDecks)},this.afterGetDecks=e=>{this.showSpinner=!1,U.AppUI.deckStore.setIndexData(e)},this.setShowFilterOptions=e=>{this.showFilterOptions=e},this.onSetFilter=(e,t)=>{this.selected[e]=t;let n={};n[e]=t,this.updateUser(n,this.getDecks)},this.updateUser=(e,t)=>{(0,G.each)((0,G.keys)(e),t=>{U.AppUI.user&&U.AppUI.user.set(t,e[t]),(0,W.isBlank)(this.selected)&&(this.selected={}),this.userRequestIsPending&&(this.selected[t]=e[t])}),this.userRequestIsPending||(this.userRequestIsPending=!0,t&&(this.callback=t),U.AppUI.authUserStore.update({data:this.selected},this.getDecks))},this.onUpdateSearchQuery=e=>{this.searchQuery=e,(e?.length>1||(0,W.isBlank)(e))&&(clearInterval(this.interval),this.interval=setTimeout(()=>this.getDecks(),500))},te(()=>{U.AppUI.userIsLoaded&&!this.userIsLoaded&&(this.userIsLoaded=!0,this.getDecks())})}get hasAllTranslationsString(){return U.AppUI.user.translatorsFilterHasTranslation===null?`Any`:U.AppUI.user.translatorsFilterHasTranslation?`Yes`:`No`}get filters(){let e={deck_type:`!trivia`,web_published:!0,language_id:U.AppUI.user.targetLanguageId};return U.AppUI.user.translatorsFilterHasTranslation!==null&&(e.languages_string=U.AppUI.user.translatorsFilterHasTranslation?U.AppUI.user.languageId:`!${U.AppUI.user.languageId}`),this.searchQuery&&this.searchQuery.length>2&&(e.name=`~${this.searchQuery}~`),e}
13917render(){return(0,K.jsxs)(WFe,{children:[this.showFilterOptions&&(0,K.jsx)(Dn,{width:`400px`,height:`600px`,onCloseModal:()=>this.setShowFilterOptions(!1),gradient:!0,padding:`0`,title:`Sentence Filters`,contentShouldScroll:!0,children:(0,K.jsxs)(JFe,{children:[(0,K.jsx)(LZ,{label:`Language`,filterType:`select`,userKey:`targetLanguageId`,options:[[`DE`,`German`],[`ES`,`Spanish`],[`FR`,`French`]],value:U.AppUI.user.targetLanguageId,onSetFilter:this.onSetFilter}),(0,K.jsx)(LZ,{label:`Has All Translations`,filterType:`select`,userKey:`translatorsFilterHasTranslation`,options:[[null,`Any`],[!0,`Yes`],[!1,`No`]],value:U.AppUI.user.translatorsFilterHasTranslation,onSetFilter:this.onSetFilter})]})}),(0,K.jsx)(GFe,{marginTop:`10px`,children:(0,K.jsx)(qZ,{placeholder:`Search for a deck`,onChange:this.onUpdateSearchQuery,value:this.searchQuery,background:`#FFF`})}),(0,K.jsxs)(YFe,{children:[(0,K.jsx)(KFe,{onClick:()=>this.setShowFilterOptions(!0),children:`Filters`}),(0,K.jsxs)(qFe,{children:[(0,K.jsx)(m4,{children:(0,K.jsxs)(R,{color:`#333`,bold:!0,fontSize:12,lineHeight:15,children:[`Has All Translations: `,this.hasAllTranslationsString]})}),(0,K.jsx)(m4,{children:(0,K.jsxs)(R,{color:`#333`,bold:!0,fontSize:12,lineHeight:15,children:[`Language: `,U.AppUI.user.targetLanguageId]})})]}),(0,K.jsx)(XFe,{onClick:()=>this.setShowFilterOptions(!0),children:(0,K.jsx)(J.FilterIcon,{width:20,height:20,fill:`#444`})})]}),this.showSpinner&&(0,K.jsx)(P,{}),!this.showSpinner&&U.AppUI.deckStore.indexData.map(e=>(0,K.jsxs)(ZFe,{children:[(0,K.jsxs)($Fe,{children:[(0,K.jsxs)(g4,{children:[(0,K.jsx)(h4,{children:`Deck`}),(0,K.jsx)(_4,{children:(0,K.jsx)(F,{className:`underline`,to:{name:`translator.decks_show`,params:{deckId:e.id,languageId:this.props.params.languageId}},children:e.name})})]}),(0,K.jsxs)(g4,{children:[(0,K.jsx)(h4,{children:`Sentences Count`}),(0,K.jsx)(_4,{children:e.concept?.sentencesCount})]}),(0,K.jsxs)(g4,{children:[(0,K.jsx)(h4,{children:`Has All Translations`}),(0,K.jsxs)(_4,{children:[e.hasAllTranslations(U.AppUI.user.languageId)&&(0,K.jsx)(`i`,{className:`fa fa-check`}),!e.hasAllTranslations(U.AppUI.user.languageId)&&(0,K.jsx)(`i`,{className:`fa fa-times`})]})]})]}),(0,K.jsx)(QFe,{children:(0,K.jsx)(F,{to:{name:`translator.decks_show`,params:{deckId:e.id,languageId:this.props.params.languageId}},children:(0,K.jsx)(`img`,{src:e.imageUrl,alt:`Deck thumbnail`})})})]},e.id)),!this.showSpinner&&(0,K.jsx)(In,{store:U.AppUI.deckStore,filters:this.filters})]})}},s4=p4(o4.prototype,`showFilterOptions`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c4=p4(o4.prototype,`selected`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),l4=p4(o4.prototype,`userIsLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u4=p4(o4.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d4=p4(o4.prototype,`searchQuery`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),p4(o4.prototype,`hasAllTranslationsString`,[E],Object.getOwnPropertyDescriptor(o4.prototype,`hasAllTranslationsString`),o4.prototype),p4(o4.prototype,`filters`,[E],Object.getOwnPropertyDescriptor(o4.prototype,`filters`),o4.prototype),o4))||a4));D(),w();var v4,y4,b4,x4;function S4(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function C4(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var tIe=N.div` 13918 a { 13919 display: flex; 13920 margin: 20px 0 0 0!important; 13921 } 13922 h3 { 13923 margin: 20px 0 0 0!important; 13924 } 13925`,nIe=pf(j(v4=(y4=class extends V.Component{constructor(e){super(e),S4(this,`showSpinner`,b4,this),S4(this,`conceptId`,x4,this),this.getDeck=()=>{this.showSpinner=!0,U.AppUI.deckStore.getShow({queryStrings:{expanded:!0},ids:{deckId:this.props.params.deckId}},this.afterGetDeck)}
13925,this.afterGetDeck=e=>{this.showSpinner=!1,U.AppUI.deckStore.setShowData(e),this.loadSentences()},this.loadSentences=()=>{H.SentenceConceptStore.getIndex({ids:{conceptId:U.AppUI.deckStore.showData.concept.id}})},this.updateLanguagesString=e=>{if(this.props.inDeck){let t=U.DeckUI.animationCards.find(t=>t.card.sentence?.id===e)?.card;_(t)?U.DeckUI.enrichSentence(t,!0):U.DeckUI.enrichSentence(U.AppUI.deckStore.showData.cards.find(t=>t.sentence?.id===e),!0)}else U.AppUI.deckStore.updateLanguagesString({ids:{deckId:this.props.params.deckId}},G.noop)},U.AppUI.deckStore.hasShowData?this.loadSentences():this.getDeck()}componentWillUnmount(){U.AppUI.routeStore.routeName.match(`decks.show`)||U.AppUI.deckStore.clearShowData(),H.SentenceConceptStore.clearIndexData()}render(){return(0,K.jsxs)(tIe,{children:[this.showSpinner&&(0,K.jsx)(P,{}),!this.showSpinner&&(0,K.jsxs)(`div`,{children:[!this.props.inDeck&&(0,K.jsxs)(F,{to:{name:`translator.decks_index`,params:{languageId:this.props.params.languageId}},className:`underline`,style:{margin:`20px 0 0 0`},children:[(0,K.jsx)(`span`,{role:`img`,children:`⬠`}),`ï¸ All Decks`]}),!this.props.inDeck&&(0,K.jsx)(`h3`,{children:U.AppUI.deckStore.showData?.name}),H.SentenceConceptStore.hasIndexData&&H.SentenceConceptStore.indexData.map(e=>(0,K.jsx)(K2,{sentence:e,afterSubmit:()=>this.updateLanguagesString(e.id),hideVideos:this.props.inDeck},e.id))]})]})}},b4=C4(y4.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x4=C4(y4.prototype,`conceptId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y4))||v4),w4,rIe=N.div` 13926 table { 13927 margin-top: 20px; 13928 } 13929`,T4=N.div` 13930 display: flex; 13931 align-items: center; 13932 width: ${e=>e.width}; 13933 flex: ${e=>e.expand?1:null}; 13934 padding: 0 10px; 13935 border-right: 1px solid white; 13936 height: 30px; 13937 cursor: ${e=>e.clickable?`pointer`:`default`}; 13938 color: #FFF; 13939 display: block; 13940 font-size: 10px; 13941 line-height: 11px; 13942 font-weight: bold; 13943 color: white; 13944 margin: 0; 13945 display: flex; 13946 i { 13947 color: #FFF; 13948 text-decoration: none; 13949 margin-right: 4px; 13950 } 13951 .fa-check { 13952 margin-right: 0; 13953 } 13954`,iIe=N.div` 13955 display: flex; 13956 width: 100%; 13957 margin-top: 20px; 13958`,aIe=N.div` 13959 background: #636363; 13960 display: flex; 13961 align-items: center; 13962 height: 30px; 13963`,oIe=N.div` 13964 background: #FFF; 13965 margin-top: 20px; 13966`,sIe=N.div` 13967 display: flex; 13968 align-items: center; 13969 border-bottom: 1px solid #cccccc; 13970 height: 40px; 13971`,E4=N.div` 13972 display: flex; 13973 align-items: center; 13974 font-size: 14px; 13975 width: ${e=>e.width}; 13976 flex: ${e=>e.expand?1:null}; 13977 padding: 0 5px; 13978 .selection-button { 13979 width: 100%; 13980 } 13981 .icon-wrapper { 13982 cursor: pointer; 13983 } 13984`,cIe=pf(M(j(w4=class extends V.Component{constructor(...e){super(...e),this.loadUsers=()=>{U.AppUI.userStore.getIndex({sort:`-translation_sources_count`,filters:{admin:!1,language_id:this.props.params.languageId}})}}componentDidUpdate(e){e.params.languageId!==this.props.params.languageId&&this.loadUsers()}render(){return(0,K.jsxs)(rIe,{children:[(0,K.jsx)(iIe,{children:(0,K.jsx)(S2,{store:U.AppUI.userStore,defaultSort:`-translation_sources_count`,namespace:`user-translator-index`,defaultFilters:{admin:!1,translation_sources_count:`!0`,language_id:this.props.params.languageId},filters:[{type:`boolean`,name:`translator`,label:`Translator`,default:``},{type:`multi_select`,name:`translator_type`,label:`Translator Type`,options:[{id:1,name:`Trial Translator`},{id:2,name:`Translator`},{id:3,name:`Translator Lead`}],labelField:`name`,default:``},{type:`number`,name:`translation_sources_count`,label:`# Translations`,default:``}]})}),(0,K.jsxs)(oIe,{children:[(0,K.jsxs)(aIe,{children:[(0,K.jsx)(T4,{width:`30px`}
13984),(0,K.jsx)(T4,{expand:!0,children:`Name`}),(0,K.jsx)(T4,{width:`270px`,children:`Role`}),(0,K.jsx)(T4,{width:`100px`,children:`Last Active`}),(0,K.jsx)(T4,{width:`100px`,children:`# Translations`})]}),U.AppUI.userStore.indexData.map(e=>(0,K.jsxs)(sIe,{children:[(0,K.jsx)(E4,{width:`30px`,children:(0,K.jsx)(F,{to:{name:`translator.user`,params:{languageId:this.props.params.languageId,userId:e.id}},children:(0,K.jsx)(na,{i:`chevron-right`})})}),(0,K.jsx)(E4,{expand:!0,children:(0,K.jsx)(F,{to:{name:`translator.user`,params:{languageId:this.props.params.languageId,userId:e.id}},children:e.name})}),(0,K.jsx)(E4,{width:`270px`,children:e.translator?e.translatorRole:`-`}),(0,K.jsx)(E4,{width:`100px`,children:e.lastActiveAt?.formattedDateWithYear}),(0,K.jsx)(E4,{width:`100px`,children:e.translationSourcesCount})]},e.index))]}),(0,K.jsx)(In,{store:U.AppUI.userStore})]})}})||w4)),D4=N.button` 13985 margin-top: 3px; 13986 border-radius: 5px; 13987 text-transform: uppercase; 13988 background: #e4e4e4; 13989 border: 1px solid gray; 13990 font-size: 14px; 13991 padding: 10px; 13992 display: inline-flex; 13993 align-items: center; 13994 cursor: pointer; 13995 13996 i { 13997 margin: 0 6px 0 0; 13998 } 13999 14000 &:hover { 14001 background: #f1f1f1; 14002 } 14003 14004 &:disabled { 14005 color: gray; 14006 } 14007 14008 &:disabled:hover { 14009 background: #e4e4e4; 14010 } 14011`;D();var O4,k4,A4;function lIe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function uIe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var dIe=N.div` 14012 table { 14013 margin-top: 20px; 14014 } 14015`,fIe=N.div` 14016 margin: 10px 0; 14017 text-decoration: underline; 14018`,pIe=N.div` 14019 cursor: pointer; 14020 text-decoration: underline; 14021`,j4=N.div` 14022 display: flex; 14023 align-items: center; 14024 width: ${e=>e.width}; 14025 flex: ${e=>e.expand?1:null}; 14026 padding: 0 10px; 14027 border-right: 1px solid white; 14028 height: 30px; 14029 cursor: ${e=>e.clickable?`pointer`:`default`}; 14030 color: #FFF; 14031 display: block; 14032 font-size: 10px; 14033 line-height: 11px; 14034 font-weight: bold; 14035 color: white; 14036 margin: 0; 14037 display: flex; 14038 i { 14039 color: #FFF; 14040 text-decoration: none; 14041 margin-right: 4px; 14042 } 14043 .fa-check { 14044 margin-right: 0; 14045 } 14046`,mIe=N.div` 14047 background: #636363; 14048 display: flex; 14049 align-items: center; 14050 height: 30px; 14051`,hIe=N.div` 14052 background: #FFF; 14053 margin-top: 20px; 14054`,gIe=N.div` 14055 display: flex; 14056 align-items: center; 14057 border-bottom: 1px solid #cccccc; 14058 padding: 5px 0; 14059`,M4=N.div` 14060 display: flex; 14061 align-items: center; 14062 font-size: 14px; 14063 width: ${e=>e.width}; 14064 flex: ${e=>e.expand?1:null}; 14065 padding: 0 5px; 14066 .selection-button { 14067 width: 100%; 14068 } 14069 .icon-wrapper { 14070 cursor: pointer; 14071 } 14072`,_Ie=N.div` 14073 font-size: 18px; 14074 font-weight: bold; 14075 display: flex; 14076 align-items: center; 14077`,vIe=N.div` 14078 display: flex; 14079`,yIe=N.div` 14080 font-size: ${e=>e.fontSize}; 14081 line-height: ${e=>e.lineHeight}; 14082`,bIe=pf(M(j(O4=(k4=class extends V.Component{constructor(e){super(e),lIe(this,`wordId`,A4,this),this.removeAllTranslations=()=>{U.AppUI.userStore.removeTranslations({ids:{userId:this.props.params.userId}},this.loadTranslationSources)},this.loadTranslationSources=()=>{U.AppUI.translationSourceStore.getIndex({filters:{"joins:source|language_id":this.props.params.languageId,user_id:this.props.params.userId}})},this.loadUser=()=>{U.AppUI.userStore.getShow({ids:{userId:this.props.params.userId}})},this.toggleTranslator=()=>{let e;e=U.AppUI.userStore.showData.translator?{removed_as_translator:!0,translator:!1,translator_type:null}:{removed_as_translator:!1,translator:!0},U.AppUI.userStore.update({ids:{userId:this.props.params.userId},data:e},this.loadUser)},this.toggleLeadTranslator=()=>{let e=U.AppUI.userStore.showData?.translatorType===2?3:2;U.AppUI.userStore.update({data:{translatorType:e},ids:{userId:this.props.params.userId}},this.loadUser)},this.promoteTranslator=()=>{U.AppUI.userStore.update({data:{translatorType:2},ids:{userId:this.props.params.userId}},this.loadUser)},this.loadUser(),this.loadTranslationSources()}componentWillUnmount(){U.AppUI.translationSourceStore.clearIndexData()}render(){return(0,K.jsxs)(dIe,{children:[this.wordId&&(0,K.jsx)(Dn,{onCloseModal:()=>this.wordId=null,children:(0,K.jsx)(Az,{showTargetText:!0,wordId:this.wordId,showInput:!0,fontSize:`16px`,lineHeight:`20px`,afterSubmitSourceIn
14082put:this.props.afterSubmitSourceInput})}),(0,K.jsx)(F,{to:{name:`translator.users`,params:{languageId:this.props.params.languageId}},children:(0,K.jsxs)(fIe,{children:[(0,K.jsx)(`span`,{role:`img`,children:`⬠`}),`ï¸ All Translators`]})}),(0,K.jsxs)(_Ie,{children:[(0,K.jsx)(Mg,{clickToProfile:!0,width:`60px`,user:U.AppUI.userStore.showData}),(0,K.jsxs)(`div`,{style:{margin:`0 0 0 10px`},children:[U.AppUI.userStore.showData?.name,`, `,U.AppUI.userStore.showData?.translatorRole]})]}),(0,K.jsxs)(vIe,{children:[U.AppUI.user.admin&&U.AppUI.userStore.showData?.translator&&!U.AppUI.userStore.showData?.trialTranslator&&(0,K.jsxs)(D4,{onClick:this.toggleLeadTranslator,style:{margin:`5px 10px 0 0`},children:[U.AppUI.userStore.showData?.leadTranslator?`Remove as`:`Add as`,` Lead`]}),U.AppUI.user.adminOrLeadTranslator&&U.AppUI.userStore.showData?.trialTranslator&&U.AppUI.userStore.showData?.translationSourcesCount>=30&&(0,K.jsx)(ra,{message:`Promote this translator?`,onConfirm:this.promoteTranslator,allowUpdate:!0,children:(0,K.jsx)(D4,{style:{margin:`5px 10px 0 0`},children:`Promote after trial`})}),U.AppUI.user.adminOrLeadTranslator&&(0,K.jsx)(ra,{message:`${U.AppUI.userStore.showData?.translator?`Remove`:`Add`} As Translator?`,onConfirm:this.toggleTranslator,allowUpdate:!0,children:(0,K.jsxs)(D4,{style:{margin:`5px 10px 0 0`},children:[U.AppUI.userStore.showData?.translator?`Remove`:`Add`,` As Translator`]})}),U.AppUI.user.adminOrLeadTranslator&&(0,K.jsx)(ra,{message:`Remove All Translations?`,onConfirm:this.removeAllTranslations,allowUpdate:!0,children:(0,K.jsx)(D4,{style:{margin:`5px 10px 0 0`},children:`Remove All Translations`})})]}),(0,K.jsxs)(hIe,{children:[(0,K.jsxs)(mIe,{children:[(0,K.jsx)(j4,{width:`150px`,children:`Date`}),(0,K.jsx)(j4,{expand:!0,children:`Original`}),(0,K.jsx)(j4,{width:`380px`,children:`Translation`}),(0,K.jsx)(j4,{width:`100px`,children:`Accepted`})]}),U.AppUI.translationSourceStore.indexData.map(e=>(0,K.jsxs)(gIe,{children:[(0,K.jsx)(M4,{width:`150px`,children:e.createdAt.formattedDateWithYear}),(0,K.jsxs)(M4,{expand:!0,children:[e.translation.type===`Word`&&(0,K.jsx)(pIe,{onClick:()=>this.wordId=e.translation.id,children:e.translation?.targetText}),e.translation.type!==`Word`&&(0,K.jsx)(`div`,{children:e.translation?.targetText})]}),(0,K.jsxs)(M4,{width:`380px`,children:[e.translation.type===`Word`&&(0,K.jsx)(`div`,{children:e.source.text}),e.translation.type!==`Word`&&(0,K.jsx)(yIe,{fontSize:e.source?.rightToLeftLanguage?`22px`:`14px`,lineHeight:e.source?.rightToLeftLanguage?`24px`:`16px`,children:(0,K.jsx)(Qi,{allowUpdate:!0,field:`text`,model:`sources`,id:e.source.id,defaultValue:e.source.text})})]}),(0,K.jsx)(M4,{width:`100px`,children:(0,K.jsx)(Zi,{allowUpdate:!0,model:`translation_sources`,id:e.id,field:`accepted`,value:e.accepted,icon:`check`,bigIcon:!0})})]},e.id))]}),(0,K.jsx)(In,{store:U.AppUI.translationSourceStore,maxPage:20})]})}},A4=uIe(k4.prototype,`wordId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k4))||O4)),N4,xIe=pf(j(N4=class extends V.Component{render(){return(0,K.jsxs)(`div`,{className:`builder`,children:[(0,K.jsx)(x0,{currentRoute:U.AppUI.routeStore.routeName,links:[{link:`classroom.students`,title:`Students`,params:{groupId:this.props.params.groupId}},{link:`classroom.settings`,title:`Settings`,params:{groupId:this.props.params.groupId}}]}),(0,K.jsx)(f,{})]})}})||N4),P4,SIe=N.div` 14083 14084`,CIe=M(j(P4=class extends V.Component{render(){return(0,K.jsx)(SIe,{})}})||P4),F4,I4,L4=j(F4=(I4=class extends V.Component{constructor(...e){super(...e),this.onKeyUp=e=>{e=e.trim(),(0,G.isEmpty)(e)?this.onClear():(clearTimeout(this.timeout),this.timeout=setTimeout(()=>{H.UserStore.getIndex({queryStrings:{full_text_search:!0,email:e}})},500))},this.onSelect=e=>{this.props.onSubmit(e)},this.onClear=()=>{H.UserStore.clearIndexData(),H.UserStore.clearFilter()}}componentDidMount(){H.UserStore.setSort(this.props.searchByField),H.UserStore.setQueryStrings({simple:!0})}componentWillUnmount(){this.onClear()}render(){return(0,K.jsx)(`div`,{className:`user-search`,style:{margin:this.props.margin},children:(0,K.jsx)(pa,{onKeyUp:this.onKeyUp,onSelect:this.onSelect,onClear:this.onClear,loading:H.UserStore.hasOutstandingRequests,options:H.UserStore.hasOutstandingRequests?[]:H.UserStore.indexData,renderFunction:e=>`${e.name} (${e.email})`,placeholder:this.props.placeholder,component:Sn,border:null})})}},I4.defaultProps={searchByField:`email`,placeholder:`Enter User Email`},I4))||F4,R4=N.div` 14085 display: grid; 14086 grid-template-columns: ${e=>Array.isArray(e.columns)?e.columns.map(e=>`${e}fr`).join(` `):e.columns?`repeat(${e.columns}, 1fr)`:`1fr`}; 14087 gap: ${e=>e.gap?z[e.gap]:`inherit`}; 14088 align-items: ${e=>e.alignItems?e.alignItems:``}; 14089 margin: ${e=>e.margin||``}; 14090`;D();var z4,B4,V4;function wIe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function H4(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var TIe=N.div` 14091 font-size: 20px; 14092 font-weight: bold; 14093 margin: 10px 0 5px 0; 14094`,EIe=N.div` 14095 margin: 0 0 10px 0; 14096`,DIe=pf(j(z4=(B4=class extends V.Component{constructor(e){super(e),wIe(this,`showUpdateMessage`,V4,this),this.loadGroup=()=>{H.GroupStore.getShow({ids:{groupId:this.props.params.groupId}}),H.UserGroupStore.getIndex({ids:{groupId:this.props.params.groupId}})},this.onAddAdmin=()=>{},this.onAddStudent=e=>{H.UserGroupStore.create({data:{groupId:this.props.params.groupId,userId:e.id}},this.afterChange)},this.afterChange=()=>{H.GroupStore.reloadShow(),H.UserGroupStore.getIndex({ids:{groupId:this.props.params.groupId}})},this.onDeleteAdmin=()=>{},this.onDeleteStudent=e=>{H.UserGroupStore.destroy({ids:{userGroupId:e}},this.afterChange)},this.updateDailyXpGoal=()=>{H.GroupStore.update({data:{daily_xp_goal:H.GroupStore.showData.dailyXpGoal},ids:{groupId:this.props.params.groupId}},this.afterUpdateDailyXpGoal)},this.afterUpdateDailyXpGoal=()=>{this.showUpdateMessage=!0,setTimeout(()=>this.showUpdateMessage=!1,4e3)},this.loadGroup()}get treeNodeOptions(){return U.TreeUI.storiesTreeNodes?U.TreeUI.storiesTreeNodes.map(e=>[e.id,e.name]):null}render(){return(0,K.jsxs)(`div`,{children:[this.showUpdateMessage&&(0,K.jsx)(B,{textAlign:`center`,margin:`10px 0 0 0`,children:`Your classroom has been updated`}),(0,K.jsx)(TIe,{children:H.GroupStore.showData?.name}),(0,K.jsxs)(EIe,{children:[H.GroupStore.showData?.userGroupsCount,` Students`]}),(0,K.jsxs)(R4,{columns:2,gap:`sm`,children:[(0,K.jsxs)(Ni,{children:[(0,K.jsx)(`legend`,{children:`N
14096ame`}),(0,K.jsx)(Qi,{defaultValue:H.GroupStore.showData.name,model:`groups`,field:`name`,id:H.GroupStore.showData.id})]}),(0,K.jsxs)(Ni,{children:[(0,K.jsx)(`legend`,{children:`Daily Xp Goal`}),(0,K.jsx)(Qi,{defaultValue:H.GroupStore.showData.dailyXpGoal,model:`groups`,field:`daily_xp_goal`,id:H.GroupStore.showData.id}),(0,K.jsx)(I,{marginTop:`10px`,onClick:this.updateDailyXpGoal,children:`Update for Students`})]})]}),(0,K.jsx)(Fi,{legend:`Highlighted Node`,includeBlank:!0,options:this.treeNodeOptions,model:`groups`,field:`highlighted_node_id`,id:H.GroupStore.showData.id,value:H.GroupStore.showData.highlightedNodeId,afterChange:this.loadGroup}),(0,K.jsxs)(Ni,{children:[(0,K.jsx)(`legend`,{children:`Students`}),(0,K.jsx)(L4,{margin:`0 0 10px 0`,onSubmit:this.onAddStudent,placeholder:`Search by Email`}),(0,K.jsxs)(oa,{children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`th`,{children:`Name`}),(0,K.jsx)(`th`,{width:`40`})]})}),(0,K.jsx)(`tbody`,{children:H.UserGroupStore.hasIndexData&&H.UserGroupStore.indexData.map(e=>(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{children:e.user&&e.user.name}),(0,K.jsx)(`td`,{children:(0,K.jsx)(ra,{width:`50px`,onConfirm:()=>this.onDeleteStudent(e.id),message:`Remove this association?`,children:(0,K.jsx)(na,{i:`times`})})})]},e.id))})]})]}),(0,K.jsxs)(Ni,{children:[(0,K.jsx)(`legend`,{children:`Admins`}),(0,K.jsx)(L4,{margin:`0 0 10px 0`,onSubmit:this.onAddAdmin,placeholder:`Search by Email`}),(0,K.jsxs)(oa,{children:[(0,K.jsx)(`thead`,{children:(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`th`,{children:`N
14096ame`}),(0,K.jsx)(`th`,{width:`40`})]})}),(0,K.jsx)(`tbody`,{children:H.GroupStore.hasShowData&&H.GroupStore.showData.userGroups.filter(e=>e.admin).map(e=>(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{children:e.user&&e.user.name}),(0,K.jsx)(`td`,{children:(0,K.jsx)(ra,{width:`50px`,onConfirm:()=>this.onDeleteAdmin(e.id),message:`Remove this association?`,children:(0,K.jsx)(na,{i:`times`})})})]},e.id))})]})]})]})}},V4=H4(B4.prototype,`showUpdateMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),H4(B4.prototype,`treeNodeOptions`,[E],Object.getOwnPropertyDescriptor(B4.prototype,`treeNodeOptions`),B4.prototype),B4))||z4);D();var U4,W4,G4;function OIe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function kIe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var AIe=N.div` 14097`,jIe=N.div` 14098 display: flex; 14099 flex-wrap: wrap; 14100`,MIe=N.div` 14101 font-size: 20px; 14102 font-weight: bold; 14103 margin: 10px 0 5px 0; 14104`,NIe=N.div` 14105 margin: 0 0 10px 0; 14106`,K4=N.div` 14107 font-size: 14px; 14108 padding: 5px; 14109`,PIe=N.div` 14110 width: 200px; 14111 display: flex; 14112 flex-direction: column; 14113 align-items: center; 14114`,FIe=N.div` 14115 background: #FFF; 14116 padding: 20px; 14117 margin: 0 20px 20px 0; 14118 display: flex; 14119 flex-direction: column; 14120 align-items: center; 14121 width: 400px; 14122 border-radius: 10px; 14123`,IIe=N.div` 14124 position: relative; 14125`,q4=N.div` 14126 background: #CCC; 14127 font-weight: bold; 14128 width: 100%; 14129 text-align: center; 14130 padding: 5px; 14131 font-size: 12px; 14132 14133`,LIe=pf(M(j(U4=(W4=class extends V.Component{constructor(e){super(e),OIe(this,`showCalendarUser`,G4,this),this.loadGroup=()=>{H.GroupStore.getShow({ids:{groupId:this.props.params.groupId}}),H.UserGroupStore.getIndex({ids:{groupId:this.props.params.groupId}})},this.loadGroup()}render(){return(0,K.jsxs)(AIe,{children:[(0,K.jsx)(MIe,{children:H.GroupStore.showData?.name}),(0,K.jsxs)(NIe,{children:[H.GroupStore.showData?.userGroupsCount,` Students`]}),(0,K.jsx)(jIe,{children:H.UserGroupStore.indexData.map(e=>(0,K.jsxs)(FIe,{children:[(0,K.jsx)(Mg,{user:e.user,width:`100px`,margin:`0 0 10px 0`}
14133),(0,K.jsx)(q4,{children:`Name`}),(0,K.jsx)(K4,{children:e.user.name}),(0,K.jsx)(q4,{children:`Email`}),(0,K.jsx)(K4,{children:e.user.email}),(0,K.jsx)(q4,{children:`Last Active`}),(0,K.jsx)(K4,{children:e.user.lastActiveAt?.formattedDateWithYear||`-`}),(0,K.jsx)(q4,{children:`XP`}),(0,K.jsx)(K4,{children:(0,W.formatNumber)(e.user.xp)}),(0,K.jsx)(q4,{children:`Daily XP Goal`}),(0,K.jsx)(K4,{children:(0,W.formatNumber)(e.user.dailyXpGoal)}),(0,K.jsxs)(PIe,{children:[(!this.showCalendarUser||this.showCalendarUser.id!==e.user.id)&&(0,K.jsx)(I,{margin:`10px 0 0 0`,onClick:()=>this.showCalendarUser=e.user,children:`Show Activity`}),this.showCalendarUser&&this.showCalendarUser.id===e.user.id&&(0,K.jsx)(IIe,{children:(0,K.jsx)(o_,{store:U.AppUI.dailyXpCountStore,dailyXpGoal:this.showCalendarUser?.dailyXpGoal,userId:this.showCalendarUser?.id,todaysDate:this.showCalendarUser?.todaysDate})})]})]},e.id))}),(0,K.jsx)(In,{store:H.UserGroupStore,ids:{groupId:this.props.params.groupId},margin:`20px 0`})]})}},G4=kIe(W4.prototype,`showCalendarUser`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W4))||U4));D();var J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3;function i3(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function a3(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var RIe=N.div` 14134 display: flex; 14135 flex-direction: column; 14136 align-items: center; 14137 input[type="password"] { 14138 text-align: left; 14139 width: 100%; 14140 box-sizing: border-box; 14141 } 14142`,zIe=N.div` 14143 width: 100%; 14144 max-width: 275px; 14145 min-width: 0; 14146`,o3=N.div` 14147 font-size: 14px; 14148`,BIe=j(J4=(Y4=class extends V.Component{constructor(e){super(e),i3(this,`password`,X4,this),i3(this,`passwordConfirmation`,Z4,this),i3(this,`resetPasswordToken`,Q4,this),i3(this,`errorMessage`,$4,this),i3(this,`showResetLink`,e3,this),i3(this,`displaySuccessMessage`,t3,this),i3(this,`showPasswordLengthHint`,n3,this),i3(this,`showPasswordMismatch`,r3,this),this.passwordLengthHintTimeout=void 0,this.passwordMismatchTimeout=void 0,this.onPasswordChange=e=>{this.password=e.currentTarget.value,this.schedulePasswordMismatch(),clearTimeout(this.passwordLengthHintTimeout),this.showPasswordLengthHint=!1,this.password.length>0&&this.password.length<8&&(this.passwordLengthHintTimeout=setTimeout(()=>{this.showPasswordLengthHint=!0},1e3))},this.onPasswordConfirmationChange=e=>{this.passwordConfirmation=e.currentTarget.value,this.schedulePasswordMismatch()},this.schedulePasswordMismatch=()=>{clearTimeout(this.passwordMismatchTimeout),this.showPasswordMismatch=!1,this.passwordConfirmation&&this.password!==this.passwordConfirmation&&(this.passwordMismatchTimeout=setTimeout(()=>{this.showPasswordMismatch=!0},1e3))},this.onSubmitPassword=()=>{this.errorMessage=``,this.showResetLink=!1,this.displaySuccessMessage=!1,U.AppUI.userStore.resetPassword({data:{password:this.password,passwordConfirmation:this.passwordConfirmation,resetPasswordToken:this.resetPasswordToken},failureCallback:this.onRequestError,onRequestError:this.onRequestError},this.afterSubmitPassword)},this.onRequestError=()=>{this.errorMessage=`We could not complete your password reset. Please check your connection and try again. If the problem continues, contact us for help.`},this.afterSubmitPassword=e=>{if(this.errorMessage=``,this.showResetLink=!1,e.success)this.displaySuccessMessage=!0;else{let t={missing_reset_token:`Your reset link is incomplete. Please open the full link from your email.`,invali
14148d_reset_token:`This reset link is no longer valid. It may have already been used or replaced by a newer link.`,expired_reset_token:`Your reset link has expired. Reset links are valid for one hour.`};this.showResetLink=!!t[e.errorCode]||e.message===`Invalid or expired reset token`,this.errorMessage=t[e.errorCode]||(this.showResetLink?`This reset link is invalid or has expired.`:e.message||`We could not change your password. Please try again or contact us for help.`)}},this.resetPasswordToken=new URLSearchParams(window.location.search).get(`reset_password_token`)}get disabled(){return(0,Hl.default)(this.password)||this.password!==this.passwordConfirmation||this.password.length<8}componentWillUnmount(){clearTimeout(this.passwordLengthHintTimeout),clearTimeout(this.passwordMismatchTimeout)}render(){return(0,K.jsxs)(RIe,{children:[(0,K.jsx)(`h3`,{children:`Reset Your Password`}),this.displaySuccessMessage&&(0,K.jsxs)(B,{background:q.Theme.green,children:[`Your password has been changed. Please sign in with your new password `,(0,K.jsx)(`a`,{href:`/onboarding/sign_in`,children:`here`}),`.`]}),this.errorMessage&&(0,K.jsxs)(B,{children:[this.errorMessage,` `,this.showResetLink?(0,K.jsx)(`a`,{href:`/onboarding/forgot_password`,children:`Request a new reset link`}):(0,K.jsx)(`a`,{href:`/contact`,children:`Contact Us`})]}),!this.resetPasswordToken&&(0,K.jsxs)(B,{margin:`20px 0 0 0`,children:[`Your reset link is incomplete. Please open the full link from your email or `,(0,K.jsx)(`a`,{href:`/onboarding/forgot_password`,children:`request a new reset link`}),`.`]}),this.resetPasswordToken&&(0,K.jsxs)(zIe,{children:[(0,K.jsx)(o3,{children:`New Password`}),(0,K.jsx)(`input`,{type:`password`,value:this.password||``,onChange:this.onPasswordChange,style:{marginBottom:10}}),this.showPasswordLengthHint&&(0,K.jsx)(B,{children:`Use at least 8 characters`}),(0,K.jsx)(o3,{children:`Password Confirmation`}),(0,K.jsx)(`input`,{type:`password`,value:this.passwordConfirmation||``,onChange:this.onPasswordConfirmationChange}),this.showPasswordMismatch&&(0,K.jsx)(B,{margin:`10px 0 0 0`,children:`The passwords do not match.`}),(0,K.jsx)(I,{margin:`20px 0 0 0`,onClick:this.onSubmitPassword,backgroundColor:q.Theme.green,width:`100%`,disabled:this.disabled,children:`Submit`})]})]})}},X4=a3(Y4.prototype,`password`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z4=a3(Y4.prototype,`passwordConfirmation`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q4=a3(Y4.prototype,`resetPasswordToken`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$4=a3(Y4.prototype,`errorMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),e3=a3(Y4.prototype,`showResetLink`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t3=a3(Y4.prototype,`displaySuccessMessage`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n3=a3(Y4.prototype,`showPasswordLengthHint`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r3=a3(Y4.prototype,`showPasswordMismatch`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a3(Y4.prototype,`disabled`,[E],Object.getOwnPropertyDescriptor(Y4.prototype,`disabled`),Y4.prototype),Y4))||J4,s3,VIe=N.div` 14149 ${(0,X.flexCenterColumn)()} 14150 width: 100%; 14151`,HIe=N.div` 14152 width: 100%; 14153`,UIe=M(j(s3=class extends V.Component{render(){if(U.AppUI.siteIsDefault)return null;let e=U.AppUI.user?.isAdminForSite(U.AppUI.site?.id);return(0,K.jsxs)(VIe,{children:[(0,K.jsx)(HIe,{children:(0,K.jsx)(An,{gap:`sm`,alignItems:`stretch`,children:(0,K.jsx)(f,{})})}),e&&(0,K.jsx)(HU,{showAdminsOnlyInfo:!0})]})}})||s3);D();var c3,l3,u3;function d3(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var WIe=N(I)` 14154 .chat-outline-icon { 14155 width: 13px; 14156 margin: 5px 6px 0 0; 14157 svg { 14158 fill: #333; 14159 } 14160 } 14161`,f3=j(c3=(l3=(u3=class extends V.Component{constructor(...e){super(...e),this.routeIs=e=>this.props.routeName.includes(`custom_tab`)?e.endsWith(this.currentRouteName)&&U.ExerciseUI.routeStore.params?.customTabSlug===this.props.customTabSlug:e.endsWith(this.currentRouteName),this.routeTo=e=>{U.ExerciseUI.routeStore.routeToNamed(e,{worksheetId:this.props.worksheetId,exerciseId:U.ExerciseUI.routeParamForExercise(U.ExerciseUI.worksheet?.exercises?.[0],e),customTabSlug:this.props.customTabSlug})}}get currentRouteName(){return U.ExerciseUI.routeStore.routeName||(0,G.last)(U.ExerciseUI.routeStore.routes)?.name}get isActive(){let e=this.routeIs(this.props.routeName),t=this.props.routeName===`learn.exercises.show`&&U.ExerciseUI.routeStore.routeName===`learn.index`;return e||t}render(){return(0,K.jsxs)(WIe,{role:`tab`,"aria-selected":this.isActive,"aria-controls":`tabpanel-${this.props.buttonText}`,height:`40px`,fontSize:this.props.small?`12px`:`14px`,color:this.isActive?this.props.activeColor:`#333`,borderRadius:this.props.small?`10px`:`10px 10px 0 0`,background:this.isActive?this.props.activeBackgroun
14161d:`#D8D8D8`,backgroundOnHover:this.isActive?null:`#c7c7c7`,padding:this.props.small?`10px`:`20px`,onClick:this.props.onClick??(()=>this.routeTo(this.props.routeName)),width:null,minWidth:this.props.minWidth,flex:this.props.small?1:null,iconMarginRight:`6px`,children:[(0,W.isPresent)(this.props.iconName)&&this.props.iconName!==`ChatOutline`&&(0,K.jsx)(`i`,{className:`fa fa-${this.props.iconName}`,style:this.props.iconName===`link`?{transform:`scaleY(-1)`}:null}),this.props.iconName===`ChatOutline`&&(0,K.jsx)(J.ChatOutlineIcon,{}),this.props.buttonText.toUpperCase()]})}},u3.defaultProps={activeColor:`#333`,activeBackground:`#FFF`},u3),d3(l3.prototype,`currentRouteName`,[E],Object.getOwnPropertyDescriptor(l3.prototype,`currentRouteName`),l3.prototype),d3(l3.prototype,`isActive`,[E],Object.getOwnPropertyDescriptor(l3.prototype,`isActive`),l3.prototype),l3))||c3;D();var p3,m3,h3;function g3(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var _3=j(p3=(m3=(h3=class extends V.Component{constructor(...e){super(...e),this.onDiscussDiscordThreadClick=()=>{let e=U.ExerciseUI.worksheet.discordThreadUrl,t=k_(e);t===e?window.open(t,`_blank`,`noopener,noreferrer`):window.location.assign(t)}}get showExercisesTab(){return U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheet?.exercises.length>0}get showVocabTab(){return U.ExerciseUI.worksheet?.hasPublishedVocab}get showCustomTabs(){return this.props.showCustomTabs&&U.ExerciseUI.hasWorksheet&&(0,W.isPresent)(U.ExerciseUI.worksheet.customTabs)}get showDownloadsTab(){return this.props.alwaysShowDownloads||U.ExerciseUI.worksheet?.downloadLinks?.length>0}get showDiscussTab(){return U.ExerciseUI.site.showWorksheetComments&&(U.ExerciseUI.worksheet?.hasForumThread||this.props.alwaysShowDiscuss)}get tabCount(){let e=0;return this.showVocabTab&&(e+=1),this.showExercisesTab&&(e+=1),this.showCustomTabs&&(e+=U.ExerciseUI.worksheet.customTabs.length),this.showDownloadsTab&&(e+=1),this.showDiscussTab&&(e+=1),e}get minTabWidth(){return U.AppUI.layout.viewportWidth<=420?this.tabCount===2||this.tabCount===4?`40%`:`30%`:null}render(){let{worksheetId:e,params:t}=this.props;return(0,K.jsxs)(K.Fragment,{children:[this.showExercisesTab&&(0,K.jsx)(f3,{small:this.props.small,worksheetId:e,params:t,buttonText:`exercises`,routeName:`${U.ExerciseUI.worksheetNamespace}.exercises.show`,iconName:`lightbulb-o`,minWidth:this.minTabWidth,activeColor:this.props.activeColor,activeBackground:this.props.activeBackground}),this.showVocabTab&&(0,K.jsx)(f3,{small:this.props.small,worksheetId:e,params:t,buttonText:`vocab`,routeName:`${U.ExerciseUI.worksheetNamespace}.vocab.show`,iconName:`list`,minWidth:this.minTabWidth,activeColor:this.props.activeColor,activeBackground:this.props.activeBackground}),this.showCustomTabs&&U.ExerciseUI.worksheet.customTabs.map(n=>(0,K.jsx)(f3,{worksheetId:e,small:this.props.small,customTabSlug:n.slug,params:t,buttonText:n.title,routeName:`${U.ExerciseUI.worksheetNamespace}.custom_tab.show`,iconName:n.icon,minWidth:this.minTabWidth,activeColor:this.props.activeColor,activeBackground:this.props.activeBackground},n.id)),this.showDownloadsTab&&(0,K.jsx)(f3,{small:this.props.small,worksheetId:e,params:t,buttonText:`extras`,routeName:`${U.ExerciseUI.worksheetNamespace}.download_links.index`,iconName:`link`,minWidth:this.minTabWidth}),this.showDiscussTab&&(0,K.jsx)(f3,{small:this.props.small,worksheetId:e,params:t,buttonText:`discuss`,routeName:`${U.ExerciseUI.worksheetNamespace}.comments.show`,iconName:`ChatOutline`,minWidth:this.minTabWidth,onClick:(0,W.isPresent)(U.ExerciseUI.worksheet?.discordThreadUrl)?this.onDiscussDiscordThreadClick:void 0})]})}},h3.defaultProps={showCustomTabs:!0},h3),g3(m3.prototype,`showExercisesTab`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`showExercisesTab`),m3.prototype),g3(m3.prototype,`showVocabTab`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`showVocabTab`),m3.prototype),g3(m3.prototype,`showCustomTabs`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`showCustomTabs`),m3.prototype),g3(m3.prototype,`showDownloadsTab`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`showDownloadsTab`),m3.prototype),g3(m3.prototype,`showDiscussTab`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`showDiscussTab`),m3.prototype),g3(m3.prototype,`tabCount`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`tabCount`),m3.prototype),g3(m3.prototype,`minTabWidth`,[E],Object.getOwnPropertyDescriptor(m3.prototype,`minTabWidth`),m3.prototype),m3))||p3;D();var v3,y3,b3,x3,S3,C3;function w3(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function T3(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var GIe=N.div` 14162 margin-top: 10px; 14163`,KIe=N.div` 14164 display: flex; 14165 align-items: ${e=>e.alignItems}; 14166 justify-content: space-between; 14167 flex-direction: ${e=>e.flexDirection}; 14168 margin-top: 5px; 14169 @media only screen and (max-width : 700px) { 14170 padding: 0px 10px; 14171 } 14172`,E3=N.div` 14173 display: flex; 14174 flex-wrap: wrap; 14175 flex: 1; 14176 gap: ${e=>e.gap}; 14177 margin-top: ${e=>e.marginTop}; 14178 margin-bottom: ${e=>e.marginBottom}; 14179`,qIe=pf(j(v3=(y3=class extends V.Component{constructor(e){super(e),w3(this,`showBackToTop`,b3,this),w3(this,`worksheetBottom`,x3,this),w3(this,`worksheetRight`,S3,this),w3(this,`rerouted`,C3,this),this.initializeWorksheet=()=>{this.props.params.worksheetId!==U.ExerciseUI.worksheetId&&this.clearWorksheet(),this.props.params.worksheetId?this.getWorksheet():this.props.params.exerciseId&&this.getExercise(),this.disposer&&this.disposer()},this.clearWorksheet=()=>{U.ExerciseUI.worksheetStore.clearShowData(),H.CustomTabStore.clearIndexData(),this.disposer&&this.disposer(),U.AppUI.layout.isMobile||window.removeEventListener(`scroll`,this.onScroll)},this.routeToFirstTab=()=>{if(this.rerouted=!0,!U.ExerciseUI.hasWorksheet||(0,W.isBlank)(U.ExerciseUI.worksheet)||!this.routeIsWorksheetShow)return;let e=U.ExerciseUI.worksheet,t=U.ExerciseUI.worksheetNamespace,n=`${t}.show`;U.AppUI.layout.isMobile?n=`${t}.info.show`:e.exercises?.length>0?n=`${t}.exercises.show`:e.worksheetWordsCount>0&&e.publishWords||(0,W.isPresent)(e.unprocessedVocab)&&e.publishUnprocessedVocab?n=`${t}.vocab.show`:e.customTabs?.length>0?n=`${t}.custom_tab.show`:e.downloadLinks.length>0?n=`${t}.download_links.index`:U.ExerciseUI.site.showWorksheetComments&&!e.forumThread?.hidden&&(n=`${t}.comments.show`);let r={worksheetId:e.routeId};n.endsWith(`custom_tab.show`)?r.customTabSlug=e.customTabs[0]?.slug:n.endsWith(`exercises.show`)&&(r.exerciseId=U.ExerciseUI.routeParamForExercise(e.exercises[0],n)),this.replaceRoute(n,r)},this.replaceRoute=(e,t)=>
14179{let n=U.AppUI.routeStore.router.createHref({name:e,params:t,query:this.props.location.query});U.AppUI.routeStore.router.replace(`${n}${this.props.location.hash||``}`),U.AppUI.routeStore.setRouteName(e),U.AppUI.routeStore.params=t},this.onScroll=()=>{if((0,W.isPresent)(document.getElementsByClassName(`app`))&&document.getElementsByClassName(`app`)[0]?.scrollTop>400){this.showBackToTop=!0;let e=document.getElementById(`worksheet-body`);(0,W.isPresent)(e)&&(this.worksheetRight=e.getBoundingClientRect().right,this.worksheetBottom=e.getBoundingClientRect().bottom)}else this.showBackToTop&&=!1},this.goBackToTop=()=>{U.AppUI.scrollToPageTop(`smooth`,U.AppUI.layout.isMobile?`video-player`:null)},this.getWorksheet=()=>{U.ExerciseUI.set(`worksheetId`,this.worksheetId),U.ExerciseUI.getWorksheet(this.worksheetId,this.afterGetWorksheet)},this.afterGetWorksheet=e=>{U.ExerciseUI.worksheetStore.afterGetShow(e),U.AppUI.createEvent(`memrev - view worksheet`,{worksheet_id:e.id}),this.routeToFirstTab()},this.getExercise=()=>{U.ExerciseUI.exerciseStore.getShow({ids:{exerciseId:this.props.params.exerciseId}},this.afterGetExercise)},this.afterGetExercise=e=>{U.ExerciseUI.exerciseStore.setShowData(e),this.getWorksheet()},this.initializeWorksheet()}componentDidMount(){U.AppUI.layout.isMobile||window.addEventListener(`scroll`,this.onScroll,!0)}componentDidUpdate(e){e.params.worksheetId!==this.props.params.worksheetId&&!this.worksheetRouteIsResolved&&(this.clearWorksheet(),this.rerouted=!1,this.initializeWorksheet())}get routeIsWorksheetShow(){return U.AppUI.routeStore.routeName===`${U.ExerciseUI.worksheetNamespace}.show`}get worksheetId(){return U.ExerciseUI.exerciseStore.hasShowData&&!this.props.params.worksheetId?U.ExerciseUI.exerciseStore.showData.worksheetId:this.props.params.worksheetId}get worksheetRouteIsResolved(){return!this.props.params.worksheetId||[U.ExerciseUI.worksheet?.id,U.ExerciseUI.worksheet?.routeId].includes(this.props.params.worksheetId)}get tabCount(){let e=0;return U.ExerciseUI.worksheet?.hasPublishedVocab&&(e+=1),U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheet?.exercises.length>0&&(e+=1),U.ExerciseUI.hasWorksheet&&(0,W.isPresent)(U.ExerciseUI.worksheet.customTabs)&&(e+=U.ExerciseUI.worksheet.customTabs.length),U.ExerciseUI.hasWorksheet&&(0,W.isPresent)(U.ExerciseUI.worksheet.downloadLinks)&&(e+=1),U.ExerciseUI.site.showWorksheetComments&&U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheet.hasForumThread&&!U.ExerciseUI.worksheet.forumThread.hidden&&(e+=1),e}get tabSectionBorderRadius(){return this.tabCount>1&&!U.AppUI.layout.isMobile?`0 10px 10px 10px`:this.standaloneSectionBorderRadius}get standaloneSectionBorderRadius(){return U.ExerciseUI.layout.isMobile?`0`:`10px`}render(){return(0,K.jsxs)(GIe,{id:`worksheet-body`,children:[(0,K.jsx)(SV,{children:U.ExerciseUI.worksheet?.name}),this.showBackToTop&&U.AppUI.routeStore.routeName===`worksheets.vocab.show`&&(0,K.jsx)(xH,{floating:!0,background:U.AppUI.site.accentColor,left:U.AppUI.layout.isMobile?null:(0,G.min)([U.AppUI.layout.viewportWidth-50,this.worksheetRight-40]),top:U.AppUI.layout.isMobile?null:(0,G.min)([U.AppUI.layout.viewportHeight-100,this.worksheetBottom-61]),right:U.AppUI.layout.isMobile?`10px`:null,bottom:U.AppUI.layout.isMobile?`50px`:null,onClick:this.goBackToTop}),U.ExerciseUI.layout.isDesktop&&(0,K.jsx)(od,{params:this.props.params,borderRadius:this.standaloneSectionBorderRadius}),(0,K.jsxs)(KIe,{id:`page-top`,flexDirection:U.AppUI.layout.isMobile?`column`:`row`,alignItems:U.AppUI.layout.isMobile?`flex-start`:`center`,children:[this.tabCount<=1&&(0,K.jsx)(E3,{marginTop:U.AppUI.layout.isMobile?`0px`:`20px`,marginBottom:U.AppUI.layout.isMobile?`10px`:`0px`}),(0,K.jsx)(QI,{children:(0,K.jsx)(_u,{showAsBreadcrumbs:!0,currentRouteName:U.AppUI.routeStore.routeName})}),this.tabCount>1&&this.rerouted&&(0,K.jsx)(E3,{role:`tablist`,"aria-label":`Content tabs`,gap:U.AppUI.layout.isMobile?`5px`:`10px`,marginTop:U.AppUI.layout.isMobile?`0px`:`10px`,marginBottom:U.AppUI.layout.isMobile?`10px`:`0px`,children:(0,K.jsx)(_3,{worksheetId:this.worksheetId,params:this.props.params,small:U.AppUI.layout.isMobile})})]}),this.worksheetRouteIsResolved&&this.props.children&&V.cloneElement(this.props.children,{borderRadius:this.tabSectionBorderRadius,standaloneSectionBorderRadius:this.standaloneSectionBorderRadius,tabCount:this.tabCount})]})}},b3=T3(y3.prototype,`showBackToTop`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x3=T3(y3.prototype,`worksheetBottom`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S3=T3(y3.prototype,`worksheetRight`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C3=T3(y3.prototype,`rerouted`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T3(y3.prototype,`routeIsWorksheetShow`,[E],Object.getOwnPropertyDescriptor(y3.prototype,`routeIsWorksheetShow`),y3.prototype),T3(y3.prototype,`worksheetId`,[E],Object.getOwnPropertyDescriptor(y3.prototype,`worksheetId`),y3.prototype),T3(y3.prototype,`tabCount`,[E],Object.getOwnPropertyDescriptor(y3.prototype,`tabCount`),y3.prototype),T3(y3.prototype,`tabSectionBorderRadius`,[E],Object.getOwnPropertyDescriptor(y3.prototype,`tabSectionBorderRadius`),y3.prototype),T3(y3.prototype,`standaloneSectionBorderRadius`,[E],Object.getOwnPropertyDescriptor(y3.prototype,`standaloneSectionBorderRadius`),y3.prototype),y3))||v3);function JIe(e){let t=g();return(0,K.jsx)(qIe,{...e,children:t})}D();var D3,O3,k3;function YIe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function XIe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ZIe=N.div` 14180 14181`,QIe=N.div` 14182 margin-top: 5px; 14183 font-size: 11px; 14184 text-decoration: underline; 14185 text-align: center; 14186 padding: 5px; 14187`,$Ie=pf(M(j(D3=(O3=class extends V.Component{constructor(...e){super(...e),YIe(this,`commentTimestamp`,k3,this),this.afterSubmitComment=()=>{this.commentTimestamp=+new Date}}render(){return(0,K.jsxs)(ZIe,{children:[U.ExerciseUI.worksheet.forumThread&&(0,K.jsx)(QP,{hideUserProfile:!0,showCommentCreate:U.AppUI.userIsLoaded,showNoAccessButton:!U.AppUI.userIsLoaded,noAccessReason:`create_free_account`,commentTimestamp:this.commentTimestamp,groupId:this.props.params.groupId,inModal:!1,post:U.ExerciseUI.worksheet.forumThread,showCommentCount:!0,user:U.ForumUI.user,commentable:U.ExerciseUI.worksheet.forumThread,commentableType:`ForumThread`,forumThreadI
14187d:U.ExerciseUI.worksheet.forumThread.id,margin:`0`,languageId:U.ExerciseUI.site.languageId,borderRadius:U.ExerciseUI.layout.isDesktop?`0 10px 10px 10px`:`0`,padding:`40px 20px 20px 20px`,commentPadding:`20px`,placeholder:`Leave a comment about the episode`,indentation:U.ExerciseUI.layout.isMobile?20:90}),U.ExerciseUI.user.anyAdmin&&(0,W.isPresent)(U.ExerciseUI.worksheet)&&(0,K.jsx)(QIe,{children:(0,K.jsx)(F,{to:{name:`creator.worksheets.edit`,params:{worksheetId:U.ExerciseUI.worksheet?.id}},children:`Admin Link`})})]})}},k3=XIe(O3.prototype,`commentTimestamp`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O3))||D3)),A3,eLe=N.div` 14188 margin: ${e=>e.margin}; 14189 padding: ${e=>e.padding}; 14190 border-radius: ${e=>e.borderRadius}; 14191 background: whitesmoke; 14192 ul br, ol br { 14193 display: none; 14194 } 14195 table { 14196 width: 100%!important; 14197 max-width: 100%; 14198 margin-bottom: 20px; 14199 border-spacing: 0px!important; 14200 border: 1px solid #ccc; 14201 margin: 0; 14202 } 14203 table td { 14204 padding: 2px 5px; 14205 } 14206`,j3=M(j(A3=class extends V.Component{render(){return(0,K.jsx)(eLe,{margin:this.props.margin,padding:this.props.padding,borderRadius:this.props.borderRadius,children:this.props.children})}})||A3);w();var M3,tLe=N.div` 14207 14208`,nLe=N.div` 14209 width: ${e=>e.width}; 14210 height: ${e=>e.height}; 14211 margin-right: ${e=>e.marginRight?e.marginRight:e.inDeck?`5px`:`10px`}; 14212 margin-left: ${e=>e.inDeck?`5px`:0}; 14213 margin-top: ${e=>e.inDeck?`5px`:0}; 14214 margin-bottom: ${e=>e.marginBottom?e.marginBottom:e.inDeck?`5px`:0}; 14215 overflow: hidden; 14216 display: flex; 14217 align-items: center; 14218 justify-content: center; 14219 border: 10px solid #FFF; 14220 border-radius: 15px; 14221 img { 14222 width: 100%; 14223 height: 100%; 14224 border-radius: 5px; 14225 } 14226`,rLe=N.div` 14227 display: flex; 14228 align-items: center; 14229 flex-direction: ${e=>e.flexDirection}; 14230 justify-content: space-around; 14231`,iLe=N.div` 14232 display: grid; 14233 grid-template-columns: ${e=>e.gridTemplateColumns}; 14234 justify-content: ${e=>e.justifyContent}; 14235 width: 100%; 14236 flex-wrap: wrap; 14237 max-width: ${e=>e.maxWidth}; 14238 margin-right: 10px; 14239 margin-bottom: 5px; 14240`,aLe=N.button` 14241 background-color: ${e=>e.backgroundColor}; 14242 color: ${e=>e.color}; 14243 cursor: ${e=>e.revealed?`default`:`pointer`}; 14244 border: none; 14245 font-size: 16px; 14246 width: ${e=>e.width}; 14247 min-height: 50px; 14248 i { 14249 color: ${e=>e.backgroundColor}; 14250 } 14251 border-radius: 10px; 14252 text-transform: ${e=>e.textTransform}; 14253 padding: 5px; 14254 font-weight: bold; 14255 align-items: center; 14256 margin: 5px; 14257 font-size: 14px; 14258 line-height: 18px; 14259 -moz-user-select: none; 14260 -khtml-user-select: none; 14261 -webkit-user-select: none; 14262 -ms-user-select: none; 14263 user-select: none; 14264`,oLe=j(M3=class extends V.Component{render(){return(0,K.jsx)(tLe,{children:this.props.exercise.exerciseEntries.map(e=>(0,K.jsxs)(iA,{inDeck:this.props.inDeck,grammarTip:e.grammarTip,showButtons:!this.props.inDeck&&this.props.exercise.exerciseEntries.length>1,exerciseEntry:e,flexDirection:`column`,...this.props,children:[e.prompt&&(0,K.jsx)(eA,{children:e.prompt}),(0,K.jsxs)(rLe,{flexDirection:U.ExerciseUI.layout.isMobile?`column`:`row`,children:[e.mediaOptions&&_(e.mediaOptions)&&_(e.mediaOptions[0].image)&&(0,K.jsx)(nLe,{width:v(this.props.mediaWidth),marginBottom:U.ExerciseUI.layout.isMobile?`10px`:null,marginRight:U.ExerciseUI.layout.isMobile?`0px`:null,inDeck:this.props.inDeck,children:_(e.mediaOptions[0].image)&&(0,K.jsx)(`img`,{src:e.mediaOptions[0].image.url,alt:``})},e.mediaOptions[0].id),(0,K.jsx)(iLe,{maxWidth:this.props.answersMaxWidth(e),justifyContent:U.ExerciseUI.layout.viewportWidth<1150?`center`:`space-between`,gridTemplateColumns:U.ExerciseUI.layout.viewportWidth>1150&&this.props.nbOptions(e)%2==0?`48% 48%`:`100%`,children:e.shuffledMultipleChoiceOptions.map(t=>(0,W.isBlank)(t.targetText)?null:(0,K.jsx)(aLe,{onClick:()=>this.props.onClick(e,t),selected:this.props.isSelected(e,t.id),backgroundColor:this.props.background(e,t),color:this.props.color(e,t),revealed:e.state.revealed,width:`100%`,children:t.targetText},t.id))})]}),e.numberOfCorrectOptions>1&&e.selectAllCorrectOptions&&(0,K.jsx)(R,{italic:!0,fontSize:`13px`,color:`#333`,margin:`10px 0 0 0`,children:`Select all c
14264orrect answers.`})]},e.id))})}})||M3,sLe=(0,Y.ExerciseMultipleChoiceMediaWrapper)(oLe),N3,cLe=N.div` 14265 display: flex; 14266 gap: 5px; 14267 margin: 5px 0; 14268 flex-wrap: wrap; 14269`,lLe=N.div` 14270 color: #353535; 14271 padding: 3px 10px; 14272 border-radius: 5px; 14273 font-size: ${e=>e.compact?`11px`:`12px`}; 14274 line-height: ${e=>e.compact?`11px`:``}; 14275 background: #efefef; 14276`,P3=M(j(N3=class extends V.Component{render(){return(0,K.jsx)(cLe,{children:this.props.exercise&&this.props.exercise.orderedTags.map(e=>(0,K.jsx)(lLe,{className:`tag`,compact:this.props.compact,children:e.name},`${this.props.exercise.id}-${e.id}`))},`exercise-tags-${this.props.exercise.id}`)}})||N3);D();var F3,I3,L3;function uLe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function dLe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var fLe=N.div` 14277 margin-bottom: 10px; 14278 img { 14279 max-width: 100%; 14280 max-height: 500px; 14281 } 14282`,R3=N.div` 14283 ${(0,X.flexCenter)()} 14284 background: rgb(134, 134, 134); 14285 font-weight: bold; 14286 height: 40px; 14287 color: white; 14288 font-size: 14px; 14289 border-radius: 10px; 14290 margin-top: 10px; 14291 cursor: ${e=>e.disabled?`not-allowed`:`pointer`}; 14292 padding: 5px; 14293`,pLe=M(j(F3=(I3=class extends V.Component{constructor(...e){super(...e),uLe(this,`selectedExpanded`,L3,this)}componentDidUpdate(e){this.props.exerciseId!==e.exerciseId&&(this.selectedExpanded=!1)}render(){return(0,K.jsxs)(fLe,{children:[(0,K.jsx)(j3,{padding:this.selectedExpanded?`10px 10px 0 10px`:`10px`,borderRadius:this.selectedExpanded?`10px 10px 0 0`:`10px`,children:(0,K.jsx)($i,{scrollable:!0,htmlText:this.props.defaultDescription})}),this.props.expandedDescription&&!this.selectedExpanded&&(0,K.jsxs)(R3,{onClick:()=>this.props.blockExpansion?null:this.selectedExpanded=!0,disabled:this.props.blockExpansion,children:[(0,K.jsx)(`i`,{className:`fa fa-plus`,style:{marginRight:`5px`}}),`READ MORE`]}),this.selectedExpanded&&(0,K.jsx)(j3,{padding:`20px 10px 10px 10px`,borderRadius:`0 0 10px 10px `,children:(0,K.jsx)($i,{scrollable:!0,htmlText:this.props.expandedDescription})}),this.props.expandedDescription&&this.selectedExpanded&&!this.props.hideCollapseButton&&(0,K.jsxs)(R3,{onClick:()=>this.selectedExpanded=!1,children:[(0,K.jsx)(`i`,{className:`fa fa-minus`,style:{marginRight:`5px`}}),`COLLAPSE`]})]})}},L3=dLe(I3.prototype,`selectedExpanded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I3))||F3);D();var z3,B3;function V3(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var mLe=N.div` 14294 display: flex; 14295 flex-direction: column; 14296 justify-content: left; 14297 margin-top: 20px; 14298 @media (max-width: 1100px) { 14299 flex-direction: column; 14300 gap: 10px; 14301 align-items: flex-start; 14302 } 14303`,hLe=N.div` 14304 display: flex; 14305 width: 100%; 14306 justify-content: space-between; 14307 gap: ${z.sm}; 14308 @media (max-width: 899px) { 14309 width: 100%; 14310 display: flex; 14311 flex-wrap: nowrap; 14312 flex-direction: column; 14313 button { 14314 width: 100%; 14315 margin-bottom: 10px; 14316 } 14317 } 14318`,gLe=N.div` 14319 flex: 1; 14320 display: flex; 14321 justify-content: flex-start; 14322 margin-top: 20px; 14323 @media (max-width: 899px) { 14324 width: 100%; 14325 } 14326`,_Le=N.div` 14327 border-radius: 5px; 14328 display: flex; 14329 align-items: center; 14330 justify-content: center; 14331 padding: 10px 20px; 14332 background: whitesmoke; 14333 @media (max-width: 899px) { 14334 width: 100%; 14335 } 14336`,H3=N.div` 14337 margin: 10px; 14338 height: 150px; 14339`,U3=N(An)` 14340 @media (max-width: 899px) { 14341 flex-direction: column; 14342 } 14343`,vLe=M(j(z3=(B3=class extends V.Component{get enableResetIncorrectButton(){return U.ExerciseUI.exercise.exerciseEntries.some(e=>e.state.revealed&&!e.state.correct)}get enableResetAllButton(){return U.ExerciseUI.exercise.exerciseEntries.some(e=>e.state.revealed)}render(){return(0,K.jsxs)(mLe,{children:[(0,K.jsxs)(hLe,{children:[U.ExerciseUI.exercise?.exerciseEntriesCount===0&&(0,K.jsxs)(I,{onClick:U.ExerciseUI.markAsCompleted,disabled:(0,W.isBlank)(U.ExerciseUI.userExercise),background:U.ExerciseUI.site?.accentColor||`#716f6f`,children:[U.ExerciseUI.userExercise?.completed?(0,K.jsx)(`i`,{className:`fa fa-times`}):(0,K.jsx)(`i`,{className:`fa fa-check`}),U.ExerciseUI.userExercise?.completed?`Mark as Incomplete`:`Mark as Completed`]}),U.ExerciseUI.exercise?.exerciseEntriesCount>0&&(0,K.jsxs)(U3,{inline:!0,gap:`xs`,children:[(0,K.jsxs)(I,{disabled:U.ExerciseUI.exercise.state.revealed,onClick:U.ExerciseUI.revealExerciseAnswers,background:U.ExerciseUI.site.accentColor||`#716f6f`,children:[(0,K.jsx)(`i`,{className:`fa fa-check`}),`Submit`]}),(0,K.jsxs)(I,{disabled:!this.enableResetIncorrectButton,background:q.Theme.red,onClick:()=>U.ExerciseUI.resetIncorrectExerciseAnswers(),children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Reset Incorrect`]}),(0,K.jsxs)(I,{background:q.Theme.red,disabled:!this.enableResetAllButton,onClick:()=>U.ExerciseUI.resetExerciseAnswers(),children:[(0,K.jsx)(`i`,{className:`fa fa-times`}),`Reset All`]})]}),(0,K.jsxs)(U3,{inline:!0,gap:`xs`,children:[!U.ExerciseUI.exerciseIsLast&&(0,K.jsxs)(I,{background:U.AppUI.site.accentColor||`#716f6f`,onClick:this.props.goToNextExercise,children:[(0,K.jsx)(`i`,{className:`fa fa-angle-double-right`}),`Next Exercise`]}),U.AppUI.layout.viewportWidth>899&&U.ExerciseUI.exercise.exerciseEntriesCount>1&&(0,K.jsx)(xH,{height:`40px`,width:`40px`,fontSize:`24px`,display:`inline-flex`,background:U.AppUI.site.accentColor,onClick:this.props.goBackToTop})]})]}),U.ExerciseUI.exercise?.enriched&&U.ExerciseUI.exercise.state.hasBeenRevealed&&(0,K.jsx)(gLe,{children:(0,K.jsxs)(_Le,{children:[(0,K.jsx)(R,{margin:`0 5px 0 0`,fontSize:`14px`,children:`Rate this Exercise`}),(0,K.jsx)(Aj,{maxRating:5,id:U.ExerciseUI.exercise&&U.ExerciseUI.exercise.id,defaultValue:U.ExerciseUI.userExercise&&U.ExerciseUI.userExercise.rating,slug:`overall`,onClick:e=>this.props.onSubmitRating(e)})]})}),this.props.showRatingComment&&(0,W.isPresent)(U.ExerciseUI.exerciseRatingId)&&!this.props.ratingCommentSubmitted&&(0,K.jsxs)(H3,{children:[(0,K.jsx)(R,{italic:!0,fontSize:`14px`,margin:`30px 0 10px 0`,center:!0,children:`Do you have anything to tell us about this exercise? All feedback is appreciated!`}),(0,K.jsx)(`textarea`,{value:this.props.comment,placeholder:`Enter your comment`,onChange:e=>this.props.setComment(e.target.value)}),(0,K.jsx)(`div`,{style:{textAlign:`end`},children:(0,K.jsx)(I,{disabled:(0,W.isBlank)(this.props.comment),margin:`10px 0 0 0`,onClick:this.props.onSubmitRatingComment,children:`Submit Message`})})]}),this.props.ratingCommentSubmitted&&(0,K.jsx)(H3,{children:(0,K.jsx)(R,{italic:!0,fontSize:`14px`,margin:`60px 0 10px 0`,center:!0,children:`Thank you for submitting a comment!`})})]})}},V3(B3.prototype,`enableResetIncorrectButton`,[E],Object.getOwnPropertyDescriptor(B3.prototype,`enableResetIncorrectButton`),B3.prototype),V3(B3.prototype,`enableResetAllButton`,[E],Object.getOwnPropertyDescriptor(B3.prototype,`enableResetAllButton`),B3.prototype),B3))||z3);me();var yLe={matchText:kA,reorder:PA,wordEnter:wA,drag:bA,wordOptions:sA,matchMedia:LA,sentenceEnter:qA,highlight:zA,multipleChoice:sLe,simpleTextPrompt:()=>null},bLe=[`drag`,`reorder`],xLe=N.div` 14344 display: flex; 14345 flex-wrap: wrap; 14346 justify-content: space-between; 14347 margin: 0 0 10px 0; 14348 align-items: center; 14349 gap: ${z.sm}; 14350`,SLe=N.button` 14351 padding: 0; 14352 font-size: 18px; 14353 color: ${q.Theme.darkGray}; 14354 background: none; 14355 border: none; 14356 cursor: pointer; 14357 transition: color 0.2s ease; 14358 display: flex; 14359 14360 &:hover { 14361 color: black; 14362 } 14363`,CLe=N.div` 14364 width: 100%; 14365 max-width: 540px; 14366 aspect-ratio: 16 / 9; 14367 margin: ${z.md} auto; 14368`;function wLe({showYoutubeVideo:e=!0,showExerciseButtons:t=!0,showRatingComment:n=!1,ratingCommentSubmitted:r=!1,comment:i=``,toggleEnglishPrompts:a=G.noop,goToNextExercise:o=G.noop,goBackToTop:s=G.noop,onSubmitRating:c=G.noop,onSubmitRatingComment:l=G.noop,setComment:u=G.noop}){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(xLe,{children:[(0,K.jsx)(R,{heading:3,children:U.ExerciseUI.exercise.name}),(0,K.jsxs)(An,{inline:!0,gap:`sm`,alignItems:`center`,children:[(0,K.jsx)(P3,{exercise:U.ExerciseUI.exercise}),bLe.includes(U.ExerciseUI.exercise?.exerciseType?.slug)&&(0,K.jsxs)(SLe,{onClick:a,"data-tip":!0,"data-for":`english-prompts`,children:[(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-eye-slash":U.ExerciseUI.user.hideEnglishPrompts,"fa-eye":!U.ExerciseUI.user.hideEnglishPrompts})}),(0,K.jsx)(he,{id:`english-prompts`,place:`top`,children:U.ExerciseUI.user.hideEnglishPrompts?`Show English Prompts`:`Hide English Prompts`})]})]})]}),U.ExerciseUI.exercise.description&&U.ExerciseUI.exercise.autoExpandDescription&&(0,K.jsx)(j3,{children:(0,K.jsx)($i,{htmlText:U.ExerciseUI.exercise.descriptionFormatted})}),U.ExerciseUI.exercise.defaultDescription&&(0,K.jsx)(pLe,{exerciseId:U.ExerciseUI.exercise?.id,defaultDescription:U.ExerciseUI.exercise.defaultDescriptionFormatted,expandedDescription:U.ExerciseUI.exercise.expandedDescriptionFormatted,blockExpansion:!U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess}),e&&U.ExerciseUI.exercise.formattedDescriptionVideo&&(0,K.jsx)(CLe,{children:(0,K.jsx)(Me,{url:U.ExerciseUI.exercise.formattedDescriptionVideo,show:!0,allowFloating:!0})}),!U.ExerciseUI.exercise?.enriched&&U.ExerciseUI.exercise?.exerciseEntriesCount>0&&(0,K.jsx)(P,{background:U.AppUI.site.accentColor||`#868686`}),U.ExerciseUI.exercise?.exerciseType?.slug&&V.createElement(yLe[U.ExerciseUI.exercise.exerciseType.slug],{exerciseId:U.ExerciseUI.exercise.id,isMobile:U.ExerciseUI.layout.isMobile,hideEnglishPrompts:U.ExerciseUI.user.hideEnglishPrompts,inDeck:!1}
14368),t&&U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess&&(0,W.isPresent)(U.ExerciseUI.exercise)&&(0,W.isPresent)(U.ExerciseUI.exercise.exerciseType)&&(0,W.isPresent)(U.ExerciseUI.exercise.exerciseType.slug)&&(0,K.jsx)(vLe,{exercisesAreBlocked:!U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess,goToNextExercise:o,showRatingComment:n,goBackToTop:s,onSubmitRating:c,onSubmitRatingComment:l,setComment:u,comment:i,ratingCommentSubmitted:r})]})}var W3=j(wLe);D();var G3,K3;function q3(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var TLe=N.div` 14369 margin-left: ${e=>e.marginLeft}; 14370 width: ${e=>e.width}; 14371 position: relative; 14372 .sparkle-icon { 14373 width: 13px; 14374 position: absolute; 14375 top: 0px; 14376 right: 1px; 14377 transform: rotate(6deg); 14378 svg { 14379 fill: #ffff00; 14380 } 14381 } 14382`,ELe=N.div` 14383 position: absolute; 14384 margin: auto; 14385 left: 0; 14386 right: 0; 14387 top: 0; 14388 bottom: 0; 14389 color: rgba(255, 255, 255, 0.7); 14390 font-size: 12px; 14391 text-align: center; 14392 line-height: 30px; 14393`,J3=j(G3=(K3=class extends V.Component{get total(){return(0,W.isPresent)(this.props.exercise)?this.props.exercise.completed&&this.props.exercise.exerciseEntriesCount===0?1:this.props.exercise.exerciseEntriesCount:this.props.total||0}get current(){return(0,W.isPresent)(this.props.exercise)?this.props.exercise.completed&&this.props.exercise.exerciseEntriesCount===0?1:this.props.exercise.correctAnswersCount:this.props.current||0}render(){return(0,K.jsxs)(TLe,{children:[(0,K.jsx)(Fn,{background:`#CCC`,current:this.current,total:this.total,width:this.props.largeVersion?this.props.width||`80px`:`100%`,height:this.props.largeVersion?this.props.height||`30px`:`5px`,borderTopRightRadius:this.props.largeVersion&&!this.props.noBorderRadius?this.props.borderTopRightRadius||`5px`:null,borderTopLeftRadius:this.props.largeVersion&&!this.props.noBorderRadius?this.props.borderTopLeftRadius||`5px`:null,borderBottomRightRadius:this.props.noBorderRadius?null:this.props.borderBottomRightRadius||`5px`,borderBottomLeftRadius:this.props.noBorderRadius?null:this.props.borderBottomLeftRadius||`5px`}),!this.props.hideCounts&&(0,K.jsxs)(ELe,{children:[this.current>this.total?this.total:this.current,` / `,this.total]}),this.props.largeVersion&&this.current!==0&&this.current>=this.total&&(0,K.jsx)(J.SparkleIcon,{})]})}},q3(K3.prototype,`total`,[E],Object.getOwnPropertyDescriptor(K3.prototype,`total`),K3.prototype),q3(K3.prototype,`current`,[E],Object.getOwnPropertyDescriptor(K3.prototype,`current`),K3.prototype),K3))||G3;w(),D();var Y3,X3,Z3;function DLe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var OLe=N.div` 14394 flex: ${e=>e.flex}; 14395 height: ${e=>e.height}; 14396 padding: ${e=>e.padding}; 14397 margin: ${e=>e.margin}; 14398 background: white; 14399 border-radius: 10px; 14400`,kLe=N.div` 14401 display: flex; 14402 flex: 1; 14403 flex-direction: column; 14404 margin: 2px 0; 14405 position: relative; 14406 .sparkle-icon { 14407 width: 13px; 14408 position: absolute; 14409 top: 0px; 14410 left: 1px; 14411 transform: rotate(6deg); 14412 svg { 14413 fill: #ffff00; 14414 } 14415 } 14416`,ALe=N.div` 14417 background: ${e=>e.current?`white`:`#efefef`}; 14418 color: #353535; 14419 font-weight: ${e=>e.current?`bold`:`normal`}; 14420 border: 1px solid #35353533; 14421 padding: 5px 5px 5px 10px; 14422 border-top-right-radius: 5px; 14423 border-top-left-radius: 5px; 14424 cursor: ${e=>e.disabled?`not-allowed`:`pointer`}; 14425 display: flex; 14426 align-items: center; 14427 flex: 1; 14428 min-height: 30px; 14429 font-size: 14px; 14430 line-height: 19px; 14431`,jLe=N.div` 14432 color: #353535; 14433 font-size: 10px; 14434 font-weight: normal; 14435 margin-left: 10px; 14436 width: 30px; 14437 height: 20px; 14438 display: flex; 14439 justify-content: center; 14440 padding: 3px 10px; 14441 border-radius: 5px; 14442 align-items: center; 14443 background: ${e=>e.current?`#efefef`:`#dcdcdc`};
14444`,Q3=M(j(Y3=(X3=(Z3=class extends V.Component{constructor(...e){super(...e),this.exerciseRouteParam=e=>U.ExerciseUI.routeParamForExercise(e,this.props.useWorksheetRoute?`${U.ExerciseUI.worksheetNamespace}.exercises.show`:`exercises.show`)}get accentColor(){return!U.AppUI.siteIsDefault&&_(U.AppUI.site.accentColor)?U.AppUI.site.accentColor:q.Theme.blue}render(){return(0,K.jsx)(OLe,{flex:this.props.flex,height:this.props.height,padding:this.props.padding,margin:this.props.margin,children:this.props.exercises&&this.props.exercises.map(e=>(0,K.jsxs)(kLe,{onClick:()=>this.props.hasAccess?U.AppUI.routeStore.routeToNamed(this.props.useWorksheetRoute?`${U.ExerciseUI.worksheetNamespace}.exercises.show`:`exercises.show`,{worksheetId:this.props.worksheetId,exerciseId:this.exerciseRouteParam(e)},this.props.afterRouteToExercise):null,children:[(0,K.jsxs)(ALe,{disabled:!this.props.hasAccess,accentColor:`#848282`,current:this.props.currentExerciseId===e.id,style:{display:`flex`,justifyContent:`space-between`},children:[(0,K.jsx)(`div`,{style:{maxWidth:`85%`},children:e.name}),_(e.levelTagsFormatted)&&(0,K.jsx)(jLe,{current:this.props.currentExerciseId===e.id,children:e.levelTagsFormatted})]}),(0,K.jsx)(J3,{hideCounts:!0,width:U.AppUI.layout.isMobile?`70px`:`300px`,exercise:e,marginLeft:`4px`,borderBottomRightRadius:this.props.borderBottomRightRadius,borderBottomLeftRadius:this.props.borderBottomLeftRadius})]},e.id))})}},Z3.defaultProps={flex:`1`,padding:`20px`,hasAccess:!0},Z3),DLe(X3.prototype,`accentColor`,[E],Object.getOwnPropertyDescriptor(X3.prototype,`accentColor`),X3.prototype),X3))||Y3),MLe=e=>(0,W.isBlank)(e)?null:e.endsWith(`Membership`)?e:e.endsWith(`Member`)?e.replace(/Member$/,`Membership`):`${e} Membership`,$3=(e,t=[])=>{let n=e?.accessStatus,r=e?.podcastEpisode?.podcast?.podcastMembershipTypes?.[0]?.membershipTypeId,i=MLe(t.find(e=>String(e.id)===String(r))?.name);return n?.reason===`upgrade`&&n?.hasAccess===!1&&(0,W.isPresent)(e?.podcastEpisode)&&(0,W.isPresent)(e?.youtubeUrl)&&(0,W.isPresent)(i)?`You need at least a ${i} to access podcast content.`:null};D();var e6,t6,n6,r6,i6,a6,o6;function s6(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function c6(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var NLe=N.div` 14445 .fa-angle-left { 14446 font-weight: bold; 14447 margin-right: 5px; 14448 font-size: 20px; 14449 line-height: 25px; 14450 } 14451`,PLe=N.div` 14452 background: white; 14453 padding: 20px; 14454 border-radius: ${e=>e.borderRadius}; 14455`,FLe=N.div` 14456 14457`,ILe=N.div` 14458 margin-top: 5px; 14459 font-size: 11px; 14460 text-decoration: underline; 14461 text-align: center; 14462 padding: 5px; 14463`,LLe=N.div` 14464 display: grid; 14465 grid-template-columns: 18% 80%; 14466 gap: 20px; 14467 @media (max-width: 899px) { 14468 display: flex; 14469 flex-direction: column; 14470 } 14471 height: ${e=>e.hasAccess?null:`250px`}; 14472 mask-image: ${e=>e.hasAccess?null:`linear-gradient(to bottom,black,70%,transparent)`}; 14473 pointer-events: ${e=>e.hasAccess?`auto`:`none`}; 14474 user-select: ${e=>e.hasAccess?`auto`:`none`}; 14475 overflow: ${e=>e.hasAccess?`visible`:`hidden`}; 14476`,l6=pf(M(j(e6=(t6=class extends V.Component{constructor(...e){super(...e),s6(this,`showUserSettings`,n6,this),s6(this,`comment`,r6,this),s6(this,`showRatingComment`,i6,this),s6(this,`ratingCommentSubmitted`,a6,this),s6(this,`showSpinner`,o6,this),this.routeToFirstExercise=()=>{let e=`${U.ExerciseUI.worksheetNamespace}.exercises.show`,t={worksheetId:this.props.params.worksheetId,exerciseId:U.ExerciseUI.routeParamForExercise(U.ExerciseUI.worksheet.exercises[0],e)};U.AppUI.routeStore.router.replace({name:e,params:t}),U.AppUI.routeStore.setRouteName(e),U.AppUI.routeStore.params=t},this.initializeExercise=()=>{if(this.props.params.worksheetId&&!U.ExerciseUI.hasWorksheet){this.showSpinner=!0;return}if(this.routeExerciseIsMissing){this.routeToFirstExercise();return}U.ExerciseUI.set(`exerciseId`,this.resolvedExerciseId);let e=this.routeExercise?.enriched;
14476U.ExerciseUI.enrichExercise(this.resolvedExerciseId,this.afterEnrichExercise),this.showRatingComment=!1,this.ratingCommentSubmitted=!1,this.comment=``,e&&this.afterEnrichExercise()},this.afterEnrichExercise=()=>{U.AppUI.scrollToPageTop(`auto`),this.showSpinner=!1,((0,W.isBlank)(U.ExerciseUI.worksheetUserExerciseStore.indexData)||!U.ExerciseUI.worksheetUserExerciseStore.indexData?.find(e=>e.exerciseId===this.resolvedExerciseId))&&U.ExerciseUI.worksheetUserExerciseStore.getIndex({ids:{worksheetId:U.ExerciseUI.worksheet?.id||this.props.params.worksheetId}})},this.topIsInView=e=>{let t=e.getBoundingClientRect();return t.top>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)},this.setComment=e=>{this.comment=e},this.afterSubmitComment=()=>{this.commentTimestamp=+new Date},this.goBackToTop=()=>{U.AppUI.scrollToPageTop()},this.onSubmitRating=e=>{this.showRatingComment=!0,U.ExerciseUI.onClickRating(e)},this.onSubmitRatingComment=()=>{U.ExerciseUI.onSubmitRatingComment(this.comment),this.ratingCommentSubmitted=!0,this.comment=``},this.goToNextExercise=()=>{U.ExerciseUI.goToNextExercise(()=>U.AppUI.scrollToPageTop(`auto`),U.ExerciseUI.hasWorksheet?`${U.ExerciseUI.worksheetNamespace}.exercises.show`:`exercises.show`)},this.toggleEnglishPrompts=()=>{U.ExerciseUI.authUserStore.update({data:{hideEnglishPrompts:!U.ExerciseUI.user.hideEnglishPrompts}},G.noop),U.ExerciseUI.user.set(`hideEnglishPrompts`,!U.ExerciseUI.user.hideEnglishPrompts)}}componentDidMount(){this.initializeExercise(),U.AppUI.membershipTypeStore.hasIndexData||U.AppUI.membershipTypeStore.getIndex()}componentDidUpdate(e){(e.params.exerciseId!==this.props.params.exerciseId||this.exerciseParamResolvedAfterWorksheetLoad)&&this.initializeExercise()}get routeExercise(){return U.ExerciseUI.findWorksheetExerciseByParam(this.props.params.exerciseId)}get resolvedExerciseId(){return this.routeExercise?.id||this.props.params.exerciseId}get exerciseParamResolvedAfterWorksheetLoad(){return this.props.params.worksheetId&&U.ExerciseUI.hasWorksheet&&U.ExerciseUI.exerciseId!==this.resolvedExerciseId}get routeExerciseIsMissing(){return this.props.params.worksheetId&&U.ExerciseUI.hasWorksheet&&(0,W.isBlank)(this.routeExercise)&&(0,W.isPresent)(U.ExerciseUI.worksheet?.exercises?.[0])}get podcastAccessSubText(){return $3(U.ExerciseUI.worksheet,U.AppUI.membershipTypeStore.indexData)}componentWillUnmount(){U.ExerciseUI.set(`exerciseId`,null)}get contentBorderRadius(){return U.ExerciseUI.layout.isMobile?`0`:U.ExerciseUI.exercise?.forumThread&&U.ExerciseUI.site.showWorksheetComments?this.props.tabCount<=1?`10px 10px 0 0`:`0px 10px 0 0`:this.props.tabCount<=1?`10px`:`0 10px 10px 10px`}get commentsBorderRadius(){return U.ExerciseUI.layout.isMobile?`0`:`0 0 10px 10px`}render(){return(0,K.jsxs)(NLe,{children:[(0,K.jsxs)(PLe,{borderRadius:this.contentBorderRadius,children:[(0,K.jsxs)(LLe,{hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess,children:[(0,K.jsx)(Q3,{padding:`0`,margin:`0 0 20px 0`,exercises:U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheetStore.showData.exercises.filter(e=>e.exerciseType.slug!==null),currentExerciseId:U.ExerciseUI.exercise?.id,worksheetId:this.props.params.worksheetId,useWorksheetRoute:U.ExerciseUI.hasWorksheet,afterRouteToExercise:this.scrollToTop,hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess}),U.ExerciseUI.hasExercise&&(0,K.jsx)(FLe,{className:`exercise-wrapper`,children:(0,K.jsx)(W3,{toggleEnglishPrompts:this.toggleEnglishPrompts,goToNextExercise:this.goToNextExercise,showRatingComment:this.showRatingComment,goBackToTop:this.goBackToTop,onSubmitRating:this.onSubmitRating,onSubmitRatingComment:this.onSubmitRatingComment,setComment:this.setComment,comment:this.comment,ratingCommentSubmitted:this.ratingCommentSubmitted})})]}),U.ExerciseUI.hasWorksheet&&!U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess&&(0,K.jsx)(ql,{reason:U.ExerciseUI.worksheet?.accessStatus?.reason,subText:this.podcastAccessSubText})]}),U.ExerciseUI.exercise?.forumThread&&U.ExerciseUI.site.showWorksheetComments&&(0,K.jsx)(QP,{hideUserProfile:!0,showCommentCreate:U.ExerciseUI.worksheet?.accessStatus?.hasExerciseAccess,commentTimestamp:this.commentTimestamp,groupId:U.ExerciseUI.exercise.worksheet.groupId,inModal:!1,post:U.ExerciseUI.exercise.forumThread,showCommentCount:!0,user:U.ForumUI.user,commentable:U.ExerciseUI.exercise.forumThread,commentableType:`ForumThread`,forumThreadI
14476d:U.ExerciseUI.exercise.forumThread?.id,margin:`0`,languageId:U.ExerciseUI.site.languageId,borderRadius:this.commentsBorderRadius,padding:`40px 20px 20px 20px`,commentPadding:`20px`,placeholder:`Leave a comment about the exercise`,indentation:U.ExerciseUI.layout.isMobile?20:90}),U.ExerciseUI.user.anyAdmin&&U.ExerciseUI.exercise&&U.ExerciseUI.exercise.worksheet&&U.ExerciseUI.exercise.worksheet.groupId&&(0,K.jsx)(ILe,{children:(0,K.jsx)(F,{to:{name:`creator.exercises.edit`,params:{groupId:U.ExerciseUI.exercise.worksheet.groupId,worksheetId:U.ExerciseUI.exercise.worksheet.id,exerciseId:U.ExerciseUI.exercise.id}},children:`Admin Link`})})]})}},n6=c6(t6.prototype,`showUserSettings`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r6=c6(t6.prototype,`comment`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),i6=c6(t6.prototype,`showRatingComment`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a6=c6(t6.prototype,`ratingCommentSubmitted`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o6=c6(t6.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),c6(t6.prototype,`routeExercise`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`routeExercise`),t6.prototype),c6(t6.prototype,`resolvedExerciseId`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`resolvedExerciseId`),t6.prototype),c6(t6.prototype,`exerciseParamResolvedAfterWorksheetLoad`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`exerciseParamResolvedAfterWorksheetLoad`),t6.prototype),c6(t6.prototype,`routeExerciseIsMissing`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`routeExerciseIsMissing`),t6.prototype),c6(t6.prototype,`podcastAccessSubText`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`podcastAccessSubText`),t6.prototype),c6(t6.prototype,`contentBorderRadius`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`contentBorderRadius`),t6.prototype),c6(t6.prototype,`commentsBorderRadius`,[E],Object.getOwnPropertyDescriptor(t6.prototype,`commentsBorderRadius`),t6.prototype),t6))||e6));D();var u6,d6,f6,p6;function RLe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function zLe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var BLe=N.div` 14477 margin-bottom: 5px; 14478 display: flex; 14479 flex-direction: row; 14480 align-items: center; 14481 background: #FFF; 14482 border: 3px solid #CCC; 14483 border-radius: 5px; 14484 height: 46px; 14485 width: ${e=>e.width}; 14486 margin: ${e=>e.margin}; 14487 justify-content: space-between; 14488`,m6=N.div` 14489 width: 40px; 14490 padding-left: 10px; 14491 font-weight: bold; 14492 margin-right: 5px; 14493 cursor: pointer; 14494 color: #333; 14495 font-size: 12px; 14496`,VLe=N.div` 14497 display: flex; 14498 flex-direction: row; 14499 align-items: center; 14500 justify-content: center; 14501 padding: 0 5px; 14502 margin-right: 5px; 14503 cursor: pointer; 14504 font-size: 16px; 14505 .fa { 14506 color: #333; 14507 } 14508`,HLe=N.div` 14509 color: #353535; 14510 margin: 0 7px 0 0; 14511 width: 100%; 14512 font-size: 12px; 14513 font-weight: bold; 14514 .fa { 14515 margin-right: 5px; 14516 } 14517`,h6=N.div` 14518 display: flex; 14519 align-items: center; 14520 padding: 2px 5px 2px 2px; 14521 font-size: 12px; 14522`,ULe=N.ul` 14523 margin: 20px; 14524`,WLe=j(u6=(d6=(p6=class extends V.Component{constructor(...e){super(...e),RLe(this,`showModal`,f6,this),this.onClickSelector=()=>{U.AppUI.layout.isMobile&&(this.showModal=!0)}}render(){return(0,K.jsxs)(BLe,{width:this.props.width,margin:this.props.margin,children:[this.showModal&&(0,K.jsx)(Dn,{top:`200px`,width:`300px`,height:`200px`,onCloseModal:()=>this.showModal=!1,gradient:U.AppUI.siteIsDefault||(0,W.isBlank)(U.AppUI.site.accentColor),background:!U.AppUI.siteIsDefault&&(0,W.isPresent)(U.AppUI.site.accentColor)?U.AppUI.site.accentColor:null,padding:`0`,title:`Sort words`,contentShouldScroll:!0,
14524children:(0,K.jsx)(ULe,{children:this.props.sortOptions.map(e=>(0,K.jsx)(`li`,{onClick:()=>this.props.onSetSort(e.value),children:(0,K.jsxs)(h6,{children:[(0,K.jsx)(mv,{margin:`0 5px 0 5px`,value:this.props.selectedSortLabel===e.label,width:`14px`,height:`14px`}),(0,K.jsx)(R,{fontSize:14,lineHeight:18,children:e.label})]})},e.label))})}),(0,K.jsx)(QI,{children:(0,K.jsx)(m6,{onClick:this.onClickSelector,children:`Sort`})}),(0,K.jsx)(Xl,{children:(0,K.jsxs)(Rh,{showOnClick:!0,top:null,right:null,textAlign:`start`,fontSize:`12px`,backgroundOnHover:`#efefef`,colorOnHover:`#353535`,linkWidth:`100%`,linkOverflow:`hidden`,children:[(0,K.jsxs)(`div`,{style:{display:`flex`},children:[(0,K.jsx)(m6,{children:`Sort`}),(0,K.jsx)(HLe,{children:this.props.selectedSortLabel})]}),this.props.sortOptions.length>1&&(0,K.jsx)(`ul`,{children:this.props.sortOptions.map(e=>(0,K.jsx)(`li`,{onClick:()=>this.props.onSetSort(e.value),children:(0,K.jsxs)(h6,{children:[(0,K.jsx)(mv,{margin:`0 5px 0 5px`,value:this.props.selectedSortLabel===e.label,width:`14px`,height:`14px`}),e.label]})},e.label))})]})}),(0,K.jsx)(VLe,{onClick:this.props.onToggleSort,children:(0,K.jsx)(`i`,{className:`fa fa-arrow-${this.props.sortOrder}`})})]})}},p6.defaultProps={margin:`10px 0 0 0`},p6),f6=zLe(d6.prototype,`showModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d6))||u6;D(),me();var g6,_6,v6,y6;function b6(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function x6(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var GLe=N.div` 14525 display: flex; 14526 flex-wrap: wrap; 14527 gap: 5px; 14528`,S6=N.div` 14529 ${(0,X.flexCenter)()} 14530 background: #FFF; 14531 color: #343535; 14532 height: 20px; 14533 padding: 2px 5px; 14534 font-size: 10px; 14535 line-height: 12px; 14536 border-radius: 10px; 14537 font-weight: bold; 14538 border: 1px solid #cbcccb; 14539 cursor: ${e=>e.isClickable?`pointer`:`default`}; 14540 &:hover { 14541 box-shadow: ${e=>e.isClickable?`0 0 6px rgba(33,33,33,.2)`:``}; 14542 } 14543 &:active { 14544 box-shadow: ${e=>e.isClickable?`inset 0 0 6px rgba(33,33,33,.2)`:``}; 14545 } 14546`,KLe=N.div` 14547 14548`,C6=M(j(g6=(_6=class extends V.Component{constructor(...e){super(...e),b6(this,`showConceptEditModal`,v6,this),b6(this,`selectedConcept`,y6,this),this.onClickTag=e=>{(0,W.isPresent)(e.longDescription)&&(this.selectedConcept=e)}}get concepts(){return this.props.word?.concepts.filter(e=>e.groupId===this.props.groupId)}render(){return(0,K.jsxs)(GLe,{children:[this.showConceptEditModal&&(0,K.jsx)(Ji,{hideWordCard:!0,noConceptsMessage:`You haven't created any word tags.`,explainer:`Word Tags can be created in the 'Word Tags' section.`,title:`Word Tags for "${this.props.word?.targetText}"`,onCloseModal:()=>this.showConceptEditModal=!1,word:this.props.word,groupId:this.props.groupId,onChange:this.props.onChange}),(0,W.isPresent)(this.selectedConcept)&&(0,K.jsx)(Dn,{title:this.selectedConcept?.name,gradient:U.AppUI.siteIsDefault||(0,W.isBlank)(U.AppUI.site.accentColor),background:!U.AppUI.siteIsDefault&&(0,W.isPresent)(U.AppUI.site.accentColor)?U.AppUI.site.accentColor:null,maxHeight:`500px`,contentShouldScroll:!0,onCloseModal:()=>this.selectedConcept=null,children:(0,K.jsx)(KLe,{dangerouslySetInnerHTML:{__html:this.selectedConcept.longDescription}})}),this.concepts.map(e=>(0,W.isPresent)(e.name)&&(0,W.isPresent)(e.abbreviation)?(0,K.jsxs)(S6,{onClick:()=>this.onClickTag(e),isClickable:(0,W.isPresent)(e.longDescription),"data-for":`${e.id}-${this.props.word.id}`,"data-tip":!0,children:[e.abbreviation,(0,K.jsx)(he,{type:`dark`,effect:`solid`,id:`${e.id}-${this.props.word.id}`,class:`custom-tooltip`,children:e.name})]},e.id):null),this.props.editable&&(0,K.jsx)(S6,{onClick:()=>this.showConceptEditModal=!0,isClickable:!0,children:(0,K.jsx)(`i`,{className:`fa fa-plus`})})]})}},v6=x6(_6.prototype,`showConceptEditModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y6=x6(_6.prototype,`selectedConcept`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x6(_6.prototype,`concepts`,[E],Object.getOwnPropertyDescriptor(_6.prototype,`concepts`),_6.prototype),_6))||g6);D();var w6,T6;function E6(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var qLe=N.div` 14549 font-size: ${e=>e.fontSize}; 14550 display: flex; 14551 flex-wrap: wrap; 14552 .underline { 14553 cursor: ${e=>e.clickable?`pointer`:`auto`}; 14554 border-bottom: ${e=>e.clickable?`2px solid `:null}; 14555 border-color: #cccccc; 14556 text-decoration: none; 14557 } 14558`,D6=j(w6=(T6=class extends V.Component{get wordTargetText(){let e=this.props.worksheetWord;
14558return(0,W.isPresent)(e.wordStructure)&&(0,W.isPresent)(e.wordStructure.text)?U.AppUI.layout.isMobile&&(0,W.isPresent)(e.wordStructure.shortText)?e.wordStructure.shortText:e.wordStructure.text:U.AppUI.site.hideDefiniteArticle?e.word.targetTextWithGender:e.word.targetTextWithDefiniteArticle}get feminineForm(){let e=this.props.worksheetWord.word;return!e?.isAdjective||!(0,W.isPresent)(e.genderVariant?.targetText)||e.genderVariant.targetText===e.targetText?null:e.genderVariant}render(){return(0,K.jsxs)(qLe,{fontSize:this.props.worksheetWord.word?.rightToLeftLanguage?`20px`:`16px`,clickable:U.AppUI.site.showWordPages,children:[!U.AppUI.site.showWordStress&&(0,K.jsx)(`div`,{className:`underline`,dangerouslySetInnerHTML:{__html:this.wordTargetText}}),U.AppUI.site.showWordStress&&(0,K.jsx)(wk,{word:this.props.worksheetWord.word,displayText:this.wordTargetText,className:`underline`}),U.AppUI.site.showPlural&&(0,W.isPresent)(this.props.worksheetWord.word?.pluralNounsString)&&(0,K.jsx)(`div`,{style:{marginRight:`4px`,color:`gray`},children:`,`}),!U.AppUI.site.showWordStress&&U.AppUI.site.showPlural&&(0,W.isPresent)(this.props.worksheetWord.word?.pluralNounsString)&&(0,K.jsx)(`div`,{style:{color:`gray`},children:this.props.worksheetWord.word?.pluralNounsString}),U.AppUI.site.showPlural&&(0,W.isPresent)(this.props.worksheetWord.word?.pluralNoun)&&U.AppUI.site.showWordStress&&(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(wk,{color:`gray`,word:this.props.worksheetWord.word.pluralNoun,displayText:this.props.worksheetWord.word?.pluralNoun.targetTextWithDefiniteArticle})}),(0,W.isPresent)(this.feminineForm)&&(0,K.jsx)(`div`,{style:{marginRight:`4px`,color:`gray`},children:`,`}),!U.AppUI.site.showWordStress&&(0,W.isPresent)(this.feminineForm)&&(0,K.jsx)(`div`,{style:{color:`gray`},children:this.feminineForm.targetText}),U.AppUI.site.showWordStress&&(0,W.isPresent)(this.feminineForm)&&(0,K.jsx)(wk,{color:`gray`,word:this.feminineForm,displayText:this.feminineForm.targetText})]})}},E6(T6.prototype,`wordTargetText`,[E],Object.getOwnPropertyDescriptor(T6.prototype,`wordTargetText`),T6.prototype),E6(T6.prototype,`feminineForm`,[E],Object.getOwnPropertyDescriptor(T6.prototype,`feminineForm`),T6.prototype),T6))||w6;D(),me();var O6,k6,A6,j6,M6;function N6(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function P6(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var JLe=N.div` 14559 14560`,F6=N.div` 14561 background: white; 14562 padding: 20px; 14563 border-radius: ${e=>e.borderRadius}; 14564 border-top-left-radius: ${e=>e.borderTopLeftRadius}; 14565 margin-bottom: 10px; 14566`,YLe=N.div` 14567 -webkit-mask-image: ${e=>e.hasAccess?null:`linear-gradient(to bottom,black,60%,transparent)`}; 14568 pointer-events: ${e=>e.hasAccess?`auto`:`none`}; 14569`,XLe=N.div` 14570 background: #636363; 14571 margin-bottom: 10px; 14572 display: flex; 14573 align-items: center; 14574 height: 30px; 14575`,I6=N.div` 14576 display: flex; 14577 align-items: center; 14578 width: ${e=>e.width}; 14579 flex: ${e=>e.expand?1:null}; 14580 padding: 0 10px; 14581 border-right: 1px solid white; 14582 height: 30px; 14583`,ZLe=N.div` 14584 display: flex; 14585 align-items: center; 14586 margin-bottom: 5px; 14587 border-bottom: 1px solid #cccccc; 14588 padding-bottom: 5px; 14589 .register { 14590 color: ${q.Theme.gray}; 14591 font-size: 14px; 14592 font-style: italic; 14593 } 14594 .source { 14595 font-size: 14px; 14596 } 14597`,L6=N.div` 14598 display: flex; 14599 align-items: ${e=>e.alignItems||`center`}; 14600 justify-content: ${e=>e.justifyContent}; 14601 width: ${e=>e.width}; 14602 flex: ${e=>e.expand?1:null}; 14603 flex-direction: ${e=>e.flexDirection}; 14604 padding: ${e=>e.padding||`0 5px`}; 14605 .selection-button { 14606 width: 100%; 14607 } 14608 .icon-wrapper { 14609 cursor: pointer; 14610 } 14611 flex-wrap: wrap; 14612 column-gap: 14px; 14613`,QLe=N.div` 14614 .text { 14615 display: inline-block; 14616 } 14617`,$Le=N.div` 14618 margin-top: 5px; 14619 font-size: 11px; 14620 text-decoration: underline; 14621 text-align: center; 14622 padding: 5px; 14623`,eRe=N.div` 14624 display: flex; 14625 align-items: baseline; 14626 justify-content: center; 14627 font-size: 14px; 14628 margin-top: 20px; 14629`,tRe=N.button` 14630 background: none; 14631 border: 0; 14632 color: inherit; 14633 cursor: pointer; 14634 font: inherit; 14635 padding: 0; 14636 text-decoration: underline; 14637`,nRe=N.div` 14638 display: flex; 14639`,rRe=e=>{if((0,W.isBlank)(e))return[];let t=e.replace(/<br\s*\/?>/gi,` 14640`).replace(/<\/(p|div|li)>/gi,` 14641`).replace(/<(p|div|li)[^>]*>/gi,``);return(()=>
14641{if(typeof document>`u`)return t.replace(/<[^>]*>/g,``);let e=document.createElement(`div`);return e.innerHTML=t,e.textContent})().split(` 14642`).map(e=>e.trim()).filter(W.isPresent).map(e=>{let t=[...e.matchAll(/\s[-ââ]\s/g)].pop();if(!t)return{targetText:e,sourceText:``};let n=t.index;return{targetText:e.slice(0,n).trim(),sourceText:e.slice(n+t[0].length).trim()}})},iRe=j(O6=(k6=class extends V.Component{get createdReviewsCount(){let e=this.props.selectedWordIds?.length||0,t=q.Constants.REVIEW_CARD_TYPES.find(e=>e.id===this.props.cardTypeId);return t?t.slug===`gender`?e-(this.props.selectedWordsExcludedFromGenderTrainer?.length||0):t.slug===`plural`?e-(this.props.selectedWordsExcludedFromPluralTrainer?.length||0):t.slug===`conjugation`?e-(this.props.selectedWordsExcludedFromConjugationTrainer?.length||0):e:e}get selectedCardType(){return q.Constants.REVIEW_CARD_TYPES.find(e=>e.id===this.props.cardTypeId)}get worksheetWordsWorksheetId(){if(!U.ExerciseUI.worksheetWordStore.hasIndexData)return null;let e=U.ExerciseUI.worksheetWordStore.indexData.map(e=>e.worksheetId);return e.length>0&&e[0]}get podcastAccessSubText(){return $3(U.ExerciseUI.worksheet,U.AppUI.membershipTypeStore.indexData)}constructor(e){super(),N6(this,`worksheetWordsAreLoaded`,A6,this),N6(this,`isLoadingRemainingWords`,j6,this),N6(this,`showSeedlangExplainerModal`,M6,this),this.onCreateReviews=()=>{U.AppUI.siteIsDefault||(U.AppUI.createEvent(`memrev - click add to reviews button`,Ul({worksheet_id:U.ExerciseUI.worksheet?.id,review_deck_id:this.props.deckId||U.AppUI.defaultReviewDeckId,card_type_id:this.props.cardTypeId,card_type_slug:this.selectedCardType?.slug,card_type_name:this.selectedCardType?.name,selected_words_count:this.props.selectedWordIds?.length||0,reviews_created_count:this.createdReviewsCount})),U.AppUI.createEvent(`memrev - create review`,Ul({reviews_created_count:this.createdReviewsCount}))),this.props.onCreateReviews()},this.showSeedlangExplainer=()=>{!U.AppUI.siteIsDefault&&!U.AppUI.wasUiElementSeen(`worksheet-vocab-seedlang-explainer`)&&(this.showSeedlangExplainerModal=!0,U.AppUI.designateUiElementAsSeen(`worksheet-vocab-seedlang-explainer`))},this.onToggleAddWordToDeck=e=>{let t=this.props.selectedWordIds.includes(e?.id);this.props.onToggleAddWordToDeck(e),t||this.showSeedlangExplainer()},this.onToggleAddAllToDeck=()=>{let e=this.props.allToggleSelected;this.props.onToggleAddAllToDeck(),e||this.showSeedlangExplainer()},this.renderAdditionalVocab=({children:e,...t})=>(0,K.jsx)(F6,{...t,children:(0,K.jsx)(is,{variant:`contained`,chevronPosition:`left`,chevronIconSize:20,children:(0,K.jsxs)(is.Item,{value:`additional-vocab`,children:[(0,K.jsx)(is.Control,{children:(0,K.jsx)(fn,{fw:700,children:`Additional Vocab`})}),(0,K.jsxs)(is.Panel,{children:[(0,K.jsx)(fn,{size:`sm`,fw:700,c:`dimmed`,mb:`sm`,children:U.ExerciseUI.site.language?.hasLessons?`The following terms are not yet available in the Seedlang dictionary or reviews.`:`The following terms are not yet available in our dictionary.`}),e]})]})})}),this.renderAdditionalVocabTable=e=>{let t=rRe(e);return(0,K.jsx)(Vl,{striped:!0,withTableBorder:!0,withColumnBorders:!0,children:(0,K.jsx)(Vl.Tbody,{children:t.map((e,t)=>(0,K.jsxs)(Vl.Tr,{children:[(0,K.jsx)(Vl.Td,{w:`1%`,pr:`lg`,style:{whiteSpace:`nowrap`},children:e.targetText}),(0,K.jsx)(Vl.Td,{w:`99%`,children:e.sourceText})]},`${e.targetText}-${t}`))})})},this.sourceText=e=>
14642(0,W.isPresent)(e.wordStructure)&&(0,W.isPresent)(e.wordStructure.sourceText)?e.wordStructure.sourceText:e.sourceList,this.worksheetMatchesRoute=e=>[U.ExerciseUI.worksheet?.id,U.ExerciseUI.worksheet?.routeId].includes(e),this.loadRemainingWords=()=>{this.isLoadingRemainingWords=!0,this.props.loadRemainingWords(U.ExerciseUI.worksheetId,{callback:()=>{this.isLoadingRemainingWords=!1}})},U.AppUI.loadReviewDecks(),U.ExerciseUI.hasWorksheet&&this.worksheetMatchesRoute(e.params.worksheetId)&&(0,W.isPresent)(U.ExerciseUI.worksheetWords)&&U.ExerciseUI.worksheetWordStore.ids?.worksheetId===U.ExerciseUI.worksheet.id&&(this.worksheetWordsAreLoaded=!0),this.disposer=te(()=>{U.ExerciseUI.hasWorksheet&&!this.worksheetMatchesRoute(e.params.worksheetId)&&(this.worksheetWordsAreLoaded=!1,U.ExerciseUI.worksheetWordStore.clearIndexData()),U.ExerciseUI.hasWorksheet&&this.worksheetMatchesRoute(e.params.worksheetId)&&!this.worksheetWordsAreLoaded&&(e.getWorksheetWords(U.ExerciseUI.worksheet.id,{clearIndex:!0}),this.worksheetWordsAreLoaded=!0),U.ExerciseUI.hasWorksheet&&U.VocabUI.worksheetId!==U.ExerciseUI.worksheetId&&(U.VocabUI.worksheetId=U.ExerciseUI.worksheetId),U.AppUI.defaultReviewDeckId&&!U.VocabUI.defaultReviewDeckId&&U.VocabUI.setDefaultReviewDeckId(U.AppUI.defaultReviewDeckIdForLanguageId(U.ExerciseUI.languageId)),U.ExerciseUI.hasWorksheet&&(0,W.isBlank)(U.ExerciseUI.groupId)&&U.ExerciseUI.set(`groupId`,U.ExerciseUI.worksheet.groupId)})}componentDidMount(){U.AppUI.membershipTypeStore.hasIndexData||U.AppUI.membershipTypeStore.getIndex()}componentWillUnmount(){this.disposer&&this.disposer(),U.VocabUI.worksheetId=null,U.VocabUI.selectedWords=[],U.VocabUI.allToggleSelected=!1,U.VocabUI.updateCardType()}get worksheetHasAlternateText(){return U.ExerciseUI.worksheetWordStore.hasIndexData?U.ExerciseUI.filteredWorksheetWords.some(e=>(0,W.isPresent)(e.word?.alternateTargetText)):!1}get reviewsAreEnabled(){return U.ExerciseUI.site.language?.hasLessons}get showFrequencyColumn(){return U.AppUI.site.showFrequencySort?/frequency/i.test(this.props.vocabSort):!1}get showLevelColumn(){return U.AppUI.site.showLevelColumn?!U.AppUI.layout.isMobile||!this.show
14642FrequencyColumn:!1}get compactView(){let e=2;return this.reviewsAreEnabled&&(e+=1),this.showLevelColumn&&(e+=1),this.showFrequencyColumn&&(e+=1),U.AppUI.site.showAlternateTargetText&&this.worksheetHasAlternateText&&(e+=1),U.AppUI.layout.isMobile&&e>=3}render(){return(0,K.jsxs)(JLe,{children:[(0,K.jsx)(hp,{children:(0,K.jsx)(jQ,{isPodcastEpisode:!!U.ExerciseUI.worksheet?.podcastEpisode,languageName:U.AppUI.site?.language?.name,opened:this.showSeedlangExplainerModal,onClose:()=>this.showSeedlangExplainerModal=!1})}),U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheet.publishWords&&(0,K.jsxs)(F6,{borderRadius:this.props.borderRadius,children:[U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess&&(0,K.jsxs)(nRe,{children:[(0,W.isPresent)(this.props.filterSettings)&&(0,W.isPresent)(U.ExerciseUI.userGroup)&&(0,K.jsx)(UZ,{filterName:`Vocab Filters`,noFiltersSelectedMessage:this.props.noFiltersSelectedMessage,filterSettings:this.props.filterSettings,onSetFilter:this.props.onSetFilter,hasActiveFilter:this.props.hasActiveFilter,setShowFilterOptions:this.props.setShowFilterOptions,showFilterOptions:this.props.showFilterOptions,filteredItemsCount:U.ExerciseUI.worksheetWordStore.totalCount,filteredItemsType:`Word`,marginBottom:`10px`,width:(0,W.isPresent)(this.props.sortOptions)?`80%`:`100%`}),(0,W.isPresent)(this.props.sortOptions)&&(0,W.isPresent)(U.ExerciseUI.userGroup)&&(0,K.jsx)(WLe,{margin:(0,W.isPresent)(this.props.filterSettings)?`10px 0 10px 10px`:`10px 0 10px 0`,width:(0,W.isPresent)(this.props.filterSettings)?`20%`:null,onToggleSort:this.props.onToggleSort,sortOrder:this.props.sortOrder,sortOptions:this.props.sortOptions,selectedSortLabel:this.props.selectedSortLabel,onSetSort:this.props.onSetSort})]}),(0,K.jsx)(LQ,{buttonText:`Add to Seedlang`,isPodcastEpisode:!!U.ExerciseUI.worksheet.podcastEpisode,reviewDeckOptions:U.ExerciseUI.reviewDeckOptions,deckId:this.props.deckId,onSetDeckId:this.props.onSetDeckId,cardTypeOptions:this.props.cardTypeOptions,cardTypeId:this.props.cardTypeId,onSetCardTypeId:this.props.onSetCardTypeId,onCreateReviews:this.onCreateReviews,deckButtonDisabled:this.props.deckButtonDisabled,selectedWordsExcludedFromGenderTrainer:this.props.selectedWordsExcludedFromGenderTrainer,selectedWordsExcludedFromPluralTrainer:this.props.selectedWordsExcludedFromPluralTrainer,selectedWordsExcludedFromConjugationTrainer:this.props.selectedWordsExcludedFromConjugationTrainer,showReviewsCreatedMessage:this.props.createReviewsFinished||this.props.createReviewsIsSlow,selectedWordIds:this.props.selectedWordIds,confirmationMessage:`${this.props.createReviewsIsSlow?`Your reviews are being created`:`Your reviews were successfully created`}. <a href='https://seedlang.com/reviews/home' target='_blank'>Go to your reviews</a>`}),!U.ExerciseUI.worksheetWordStore.hasIndexData&&(0,K.jsx)(P,{}),U.ExerciseUI.worksheetWordStore.hasIndexData&&(0,K.jsxs)(YLe,{hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess,children:[(0,K.jsxs)(XLe,{children:[this.reviewsAreEnabled&&(0,K.jsx)(I6,{width:`40px`,children:(0,K.jsx)(jn,{background:`#d0d0d0`,selectedBackground:`#232323`,onClick:this.onToggleAddAllToDeck,value:this.props.allToggleSelected})}),(0,K.jsxs)(I6,{expand:!U.ExerciseUI.languageId?.startsWith(`EN`),width:U.ExerciseUI.languageId?.startsWith(`EN`)?U.AppUI.layout.isMobile?`100px`:`250px`:null,children:[!this.compactView&&(0,K.jsx)(R,{color:`white`,fontSize:`12px`,bold:!0,children:(0,W.isPresent)(U.ExerciseUI.languageId)?U.ExerciseUI.languageId?.startsWith(`EN`)?`English`:q.Languages[U.ExerciseUI.languageId]:`Target Language`}),this.compactView&&(0,K.jsx)(R,{color:`white`,fontSize:`12px`,bold:!0,children:`Word`})]}),U.AppUI.site.showAlternateTargetText&&this.worksheetHasAlternateText&&(0,K.jsx)(I6,{expand:!0,children:(0,K.jsx)(R,{color:`white`,fontSize:`12px`,bold:!0,children:(0,W.isPresent)(U.AppUI.site.alternateTargetTextName)?U.AppUI.site.alternateTargetTextName:`Romanized spelling`})}),!this.compactView&&(0,K.jsx)(I6,{expand:!0,children:(0,K.jsx)(R,{color:`white`,fontSize:`12px`,bold:!0,children:U.ExerciseUI.languageId?.startsWith(`EN`)?`Definition`:`English`})}),this.showLevelColumn&&(0,K.jsx)(I6,{width:`60px`,children:(0,K.jsx)(R,{color:`white`,fontSize:`12px`,bold:!0,children:`Level`})}
14642),this.showFrequencyColumn&&(0,K.jsx)(I6,{width:`60px`,children:(0,K.jsx)(R,{color:`white`,fontSize:`12px`,bold:!0,children:`Freq.`})})]}),U.ExerciseUI.filteredWorksheetWords.slice(0,U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess?U.ExerciseUI.filteredWorksheetWords.length:5).map(e=>(0,K.jsxs)(ZLe,{children:[this.reviewsAreEnabled&&(0,K.jsxs)(L6,{width:`40px`,padding:`0 10px`,"data-tip":!0,"data-for":`incompatible-${e.id}`,children:[(0,K.jsx)(jn,{width:`22px`,onClick:()=>this.onToggleAddWordToDeck(e.word),value:this.props.selectedWordIds.includes(e.word?.id),showLock:!this.props.selectedCardTypeIsCompatible(e.word)}),!this.props.selectedCardTypeIsCompatible(e.word)&&(0,K.jsxs)(he,{place:`right`,type:`dark`,effect:`solid`,id:`incompatible-${e.id}`,class:`custom-tooltip`,children:[(0,K.jsx)(`div`,{children:`This word is not compatible`}),(0,K.jsx)(`div`,{children:`with ${q.Constants.REVIEW_CARD_TYPES.find(e=>e.id===this.props.cardTypeId).name} cards.`})]})]}),(0,K.jsxs)(L6,{expand:!U.ExerciseUI.languageId?.startsWith(`EN`),width:U.ExerciseUI.languageId?.startsWith(`EN`)?U.AppUI.layout.isMobile?`100px`:`250px`:null,flexDirection:this.compactView?`column`:`row`,alignItems:this.compactView?`left`:null,children:[U.AppUI.site.showWordPages&&(0,K.jsx)(QLe,{children:(0,K.jsx)(F,{state:{worksheetNavigation:{worksheetId:this.props.params.worksheetId,filters:{...this.props.filters},sort:this.props.vocabSort}},to:{name:`${U.ExerciseUI.worksheetNamespace}.vocab.word`,params:{worksheetId:this.props.params.worksheetId,wordId:e.word?.id}},children:(0,K.jsx)(D6,{worksheetWord:e})})}),!U.AppUI.site.showWordPages&&(0,K.jsx)(D6,{worksheetWord:e}),e.word?.register&&(0,K.jsx)(`div`,{className:`register`,fontSize:`14px`,children:e.word?.register}),this.compactView&&(0,K.jsxs)(`div`,{className:`source`,children:[!U.ExerciseUI.languageId?.startsWith(`EN`)&&(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.sourceText(e)}}),U.ExerciseUI.languageId?.startsWith(`EN`)&&e.word.definition]}),(0,K.jsx)(C6,{word:e.word,groupId:U.ExerciseUI.site.groupId})]}),U.AppUI.site.showAlternateTargetText&&this.worksheetHasAlternateText&&(0,K.jsx)(L6,{expand:!0,children:(0,K.jsx)(R,{fontSize:`16px`,children:e.word?.alternateTargetText})}),!this.compactView&&(0,K.jsx)(L6,{expand:!0,children:(0,K.jsxs)(R,{fontSize:`16px`,children:[!U.ExerciseUI.languageId?.startsWith(`EN`)&&(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.sourceText(e)}}),U.ExerciseUI.languageId?.startsWith(`EN`)&&e.word.definition]})}),this.showLevelColumn&&(0,K.jsx)(L6,{width:`60px`,justifyContent:`center`,children:(0,K.jsx)(R,{fontSize:`14px`,color:`#353535`,children:e.word?.level?.abbreviation})}),this.showFrequencyColumn&&(0,K.jsx)(L6,{width:`60px`,justifyContent:`center`,children:(0,W.isPresent)(e.word?.frequencyRanking)&&(0,K.jsx)(nz,{word:e.word})})]},e.id))]}),U.ExerciseUI.hasWorksheet&&!U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess&&(0,K.jsx)(ql,{reason:U.ExerciseUI.worksheet?.accessStatus?.reason,subText:this.podcastAccessSubText}),U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess&&(0,K.jsxs)(eRe,{children:[this.isLoadingRemainingWords&&(0,K.jsx)(P,{}),!this.isLoadingRemainingWords&&U.ExerciseUI.worksheetWordStore.hasIndexData&&!this.props.allWordsLoaded&&(0,K.jsx)(tRe,{type:`button`,onClick:this.loadRemainingWords,children:`Show More`})]}),(U.ExerciseUI.worksheetWordStore.hasIndexData||U.ExerciseUI.worksheetWordStore.totalCount===0)&&(0,W.isPresent)(this.props.filters)&&(0,K.jsx)(R,{italic:!0,center:!0,fontSize:`12px`,margin:`10px 0 0 0`,children:`Displaying ${U.ExerciseUI.worksheetWordStore.totalCount} of ${U.ExerciseUI.worksheet.worksheetWordsCount} words with these filters.`})]}),!U.ExerciseUI.worksheetWordStore.hasOutstandingRequests&&U.ExerciseUI.worksheet.publishUnprocessedVocab&&(0,W.isPresent)(U.ExerciseUI.worksheet.unprocessedVocab)&&U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess&&this.renderAdditionalVocab({children:this.renderAdditionalVocabTable(U.ExerciseUI.worksheet.unprocessedVocab),borderTopLeftRadius:(0,W.isBlank)(U.ExerciseUI.filteredWorksheetWords)||!U.ExerciseUI.worksheet.publishWords?0:`10px`,borderRadius:this.props.standaloneSectionBorderRadius}),!U.ExerciseUI.worksheet?.accessStatus?.hasVocabAccess&&U.ExerciseUI.worksheet.publishUnprocessedVocab&&(0,W.isPresent)(U.ExerciseUI.worksheet.unprocessedVocab)&&((0,W.isBlank)(U.ExerciseUI.filteredWorksheetWords)||!U.ExerciseUI.worksheet.publishWords)&&this.renderAdditionalVocab({children:(0,K.jsxs)(V.Fragment,{children:[this.renderAdditionalVocabTable(U.ExerciseUI.worksheet.unprocessedVocab),(0,K.jsx)(ql,{reason:U.ExerciseUI.worksheet?.accessStatus?.reason,subText:this.podcastAccessSubText})]}),borderTopLeftRadius:`0`,borderRadius:`10px`}),U.ExerciseUI.user.anyAdmin&&(0,W.isPresent)(U.ExerciseUI.worksheet)&&(0,K.jsx)($Le,{children:(0,K.jsx)(F,{to:{name:`creator.vocab.edit`,params:{worksheetId:U.ExerciseUI.worksheet.id}},children:`Admin Link`})})]})}},A6=P6(k6.prototype,`worksheetWordsAreLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j6=P6(k6.prototype,`isLoadingRemainingWords`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M6=P6(k6.prototype,`showSeedlangExplainerModal`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P6(k6.prototype,`createdReviewsCount`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`createdReviewsCount`),k6.prototype),P6(k6.prototype,`selectedCardType`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`selectedCardType`),k6.prototype),P6(k6.prototype,`worksheetWordsWorksheetId`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`worksheetWordsWorksheetId`),k6.prototype),P6(k6.prototype,`podcastAccessSubText`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`podcastAccessSubText`),k6.prototype),P6(k6.prototype,`worksheetHasAlternateText`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`worksheetHasAlternateText`),k6.prototype),P6(k6.prototype,`reviewsAreEnabled`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`reviewsAreEnabled`),k6.prototype),P6(k6.prototype,`showFrequencyColumn`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`showFrequencyColumn`),k6.prototype),P6(k6.prototype,`showLevelColumn`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`showLevelColumn`),k6.prototype),P6(k6.prototype,`compactView`,[E],Object.getOwnPropertyDescriptor(k6.prototype,`compactView`),k6.prototype),k6))||O6,aRe=pf((0,Y.WorksheetVocabWrapper)(iRe));D();var R6,z6;function oRe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var sRe=N.div` 14643 background: white; 14644 border-radius: 10px; 14645 width: 100%; 14646 padding: 20px; 14647 a { 14648 text-decoration: underline; 14649 } 14650`,cRe=pf(M(j(R6=(z6=class extends V.Component{get content(){return U.AppUI.pageStore.indexData?.find(e=>e.slug===this.props.params.pageId)?.content}render(){return(0,K.jsx)(sRe,{children:U.AppUI.pageStore.hasOutstandingRequests?(0,K.jsx)(P,{}):(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:this.content}})})}},oRe(z6.prototype,`content`,[E],Object.getOwnPropertyDescriptor(z6.prototype,`content`),z6.prototype),z6))||R6));D();var B6,V6,H6,U6,W6;function G6(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function K6(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var lRe=N.div` 14651 display: flex; 14652 flex-direction: row; 14653 width: ${e=>e.width}; 14654 height: fit-content; 14655 align-items: center; 14656 min-width: 0; 14657 max-width: 100%; 14658 white-space: nowrap; 14659`,uRe=N.div` 14660 display: flex; 14661 height: fit-content; 14662 flex-wrap: ${e=>e.shouldWrap?`wrap`:`nowrap`}; 14663 align-items: center; 14664 min-width: 0; 14665 max-width: ${e=>e.shouldWrap?`none`:`650px`}; 14666 overflow-x: ${e=>e.shouldWrap?`visible`:`auto`}; 14667 scrollbar-width: ${e=>e.shouldWrap?`auto`:`none`}; 14668 position: relative; 14669 mask-image: ${e=>{if(e.shouldWrap||!e.hasOverflow)return`none`;let t=e.hasScrolledFromStart,n=!e.hasScrolledToEnd;return t&&n?`linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%)`:t&&!n?`linear-gradient(to right, transparent 0%, black 20px, black 100%)`:!t&&n?`linear-gradient(to right, black 0%, black calc(100% - 20px), transparent 100%)`:`none`}}; 14670 -webkit-mask-image: ${e=>{if(e.shouldWrap||!e.hasOverflow)return`none`;let t=e.hasScrolledFromStart,n=!e.hasScrolledToEnd;return t&&n?`linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%)`:t&&!n?`linear-gradient(to right, transparent 0%, black 20px, black 100%)`:!t&&n?`linear-gradient(to right, black 0%, black calc(100% - 20px), transparent 100%)`:`none`}}; 14671 padding: 6px 0; 14672 gap: ${e=>e.shouldWrap?`8px`:`0`}; 14673 14674 &::-webkit-scrollbar {
14675 display: ${e=>e.shouldWrap?`block`:`none`}; 14676 } 14677`,q6=N.div` 14678 background: #FFF; 14679 padding: 8px 16px; 14680 padding-right: ${e=>e.paddingRight}; 14681 border-radius: 22px; 14682 position: relative; 14683 border: none; 14684 box-shadow: 0 1px 3px rgba(0,0,0,0.12); 14685 display: flex; 14686 flex-direction: row; 14687 align-items: center; 14688 justify-content: center; 14689 min-width: 0; 14690 max-width: 100%; 14691 height: 34px; 14692 font-size: 14px; 14693 font-weight: 600; 14694 color: #000; 14695 margin-right: ${e=>e.shouldWrap?`0`:`3px`}; 14696 min-width: fit-content; 14697`,J6=N.div` 14698 cursor: pointer; 14699 position: absolute; 14700 right: 8px; 14701 top: 50%; 14702 transform: translateY(-50%); 14703 display: flex; 14704 align-items: center; 14705 justify-content: center; 14706 height: 20px; 14707 width: 20px; 14708 14709 i { 14710 font-size: 12px; 14711 line-height: 1; 14712 } 14713`,Y6=j(B6=(V6=class extends V.Component{constructor(...e){super(...e),G6(this,`hasOverflow`,H6,this),G6(this,`hasScrolledFromStart`,U6,this),G6(this,`hasScrolledToEnd`,W6,this),this.scrollWrapperRef=V.createRef(),this.checkOverflow=()=>{if(this.scrollWrapperRef.current){let e=this.scrollWrapperRef.current;this.hasOverflow=e.scrollWidth>e.clientWidth}},this.checkScrollPosition=()=>{if(this.scrollWrapperRef.current){let e=this.scrollWrapperRef.current;this.hasScrolledFromStart=e.scrollLeft>0,this.hasScrolledToEnd=e.scrollLeft>=e.scrollWidth-e.clientWidth}},this.onRemoveTag=e=>{let t=this.userTagIdsAry;(0,G.each)(e.tags,e=>{t=t.filter(t=>t!==e.id)});let n=(0,W.isPresent)(t)?t.join(`,`):null;this.props.isExerciseFilter?U.AppUI.cookieStore.set(`exerciseTagIds`,n||null):U.AppUI.cookieStore.set(`worksheetTagIds${this.props.activeView}`,n||null),(0,G.isFunction)(this.props.onUpdateFilter)&&this.props.onUpdateFilter()},this.onRemoveProgressTag=()=>{this.props.isExerciseFilter?U.AppUI.cookieStore.set(`exerciseProgressTags`,null):U.AppUI.cookieStore.set(`worksheetProgressTags${this.props.activeView}`,null),(0,G.isFunction)(this.props.onUpdateFilter)&&this.props.onUpdateFilter()},this.tagCategoryText=e=>{let t=e.tags.filter(e=>this.userTagIdsAry.includes(e.id)).map(e=>e.name).join(`, `);return t.length>25?`${t.slice(0,25).trim()}...`:t}}componentDidMount(){this.props.wrap||(this.checkOverflow(),this.checkScrollPosition(),window.addEventListener(`resize`,this.checkOverflow),this.scrollWrapperRef.current&&this.scrollWrapperRef.current.addEventListener(`scroll`,this.checkScrollPosition))}componentDidUpdate(){this.props.wrap||(this.checkOverflow(),this.checkScrollPosition())}componentWillUnmount(){this.props.wrap||(window.removeEventListener(`resize`,this.checkOverflow),this.scrollWrapperRef.current&&this.scrollWrapperRef.current.removeEventListener(`scroll`,this.checkScrollPosition))}get progressTagCategory(){return this.props.tagCategories.find(e=>e.slug===`progress`)}get userTagIds(){return this.props.isExerciseFilter?U.AppUI.cookieStore.exerciseTagIds:U.AppUI.cookieStore[`worksheetTagIds${this.props.activeView}`]}get userTagIdsAry(){return this.userTagIds?.split(`,`)||[]}get userProgressTags(){return this.props.isExerciseFilter?U.AppUI.cookieStore.exerciseProgressTags:U.AppUI.cookieStore[`worksheetProgressTags${this.props.activeView}`]}render(){return(0,K.jsx)(lRe,{width:this.props.width,children:(0,K.jsxs)(uRe,{ref:this.scrollWrapperRef,hasOverflow:this.hasOverflow,hasScrolledFromStart:this.hasScrolledFromStart,hasScrolledToEnd:this.hasScrolledToEnd,shouldWrap:this.props.wrap,children:[(0,W.isPresent)(this.userProgressTags)&&this.props.showProgressTag&&(0,K.jsxs)(q6,{paddingRight:`32px`,index:0,children:[(0,K.jsx)(R,{color:`#333`,bold:!0,fontSize:12,lineHeight:15,style:{minWidth:0,maxWidth:`100%`,overflow:`hidden`},children:this.userProgressTags.split(`,`).map(e=>(0,W.isPresent)(this.progressTagCategory.tags.find(t=>t.slug===e))?this.progressTagCategory.tags.find(t=>t.slug===e).name:(0,G.startCase)(e.replace(`-`,` `))).join(`, `)}),(0,K.jsx)(J6,{onClick:this.onRemoveProgressTag,children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]}),this.props.tagCategories?.map((e,t)=>(0,W.isPresent)((0,G.intersection)(this.userTagIdsAry,e.tags.map(e=>e.id)))?(0,K.jsxs)(q6,{paddingRight:`32px`,index:(0,W.isPresent)(this.userProgressTags)&&this.props.showProgressTag?t+1:t,children:[(0,K.jsx)(R,{color:`#333`,bold:!0,fontSize:12,lineHeight:15,style:{minWidth:0,maxWidth:`100%`,overflow:`hidden`},children:this.tagCategoryText(e)}),(0,K.jsx)(J6,{onClick:()=>this.onRemoveTag(e),children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]},e.id):null)]})})}},H6=K6(V6.prototype,`hasOverflow`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),U6=K6(V6.prototype,`hasScrolledFromStart`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W6=K6(V6.prototype,`hasScrolledToEnd`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),K6(V6.prototype,`progressTagCategory`,[E],Object.getOwnPropertyDescriptor(V6.prototype,`progressTagCategory`),V6.prototype),K6(V6.prototype,`userTagIds`,[E],Object.getOwnPropertyDescriptor(V6.prototype,`userTagIds`),V6.prototype),K6(V6.prototype,`userTagIdsAry`,[E],Object.getOwnPropertyDescriptor(V6.prototype,`userTagIdsAry`),V6.prototype),K6(V6.prototype,`userProgressTags`,[E],Object.getOwnPropertyDescriptor(V6.prototype,`userProgressTags`),V6.prototype),V6))||B6;D();var X6,Z6,Q6,$6,e8;function t8(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function n8(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var dRe=N.div` 14714 padding: 20px; 14715`,r8=N.div` 14716 font-weight: bold; 14717 font-size: 16px; 14718 line-height: 22px; 14719`,i8=N.div` 14720 margin-bottom: 10px; 14721 border-radius: 10px; 14722 overflow: hidden; 14723`,a8=N.div` 14724 font-weight: bold; 14725`,o8=N.div` 14726 14727`,s8=N.div` 14728 display: flex; 14729 align-items: center; 14730 cursor: pointer; 14731 padding: 10px; 14732 &:hover { 14733 background: whitesmoke; 14734 } 14735`,c8=N.div` 14736 flex: 1; 14737 font-size: 16px; 14738`,l8=N.div`
14739 width: 20px; 14740`,fRe=N.div` 14741 margin-bottom: 10px; 14742`,pRe=M(j(X6=(Z6=class extends V.Component{constructor(e){super(e),t8(this,`showSpinner`,Q6,this),t8(this,`tagIds`,$6,this),t8(this,`progressTags`,e8,this),this.updateTimeout=null,this.debouncedUpdate=(e,t,n=!1)=>{this.updateTimeout&&clearTimeout(this.updateTimeout),this.updateTimeout=setTimeout(()=>{e?n?U.AppUI.cookieStore.set(`exerciseProgressTags`,t||null):U.AppUI.cookieStore.set(`exerciseTagIds`,t||null):n?U.AppUI.cookieStore.set(`worksheetProgressTags${this.props.activeView}`,t||null):U.AppUI.cookieStore.set(`worksheetTagIds${this.props.activeView}`,t||null),(0,G.isFunction)(this.props.onUpdateFilter)&&this.props.onUpdateFilter()},700)},this.onClickTag=e=>{let t=(0,W.isPresent)(this.tagIds)?this.tagIds.split(`,`):[];this.tagIsSelected(e)?t=t.filter(t=>t!==e):t.push(e);let n=t.join(`,`);this.tagIds=n,this.debouncedUpdate(this.props.isExerciseFilter,n)},this.tagIsSelected=e=>this.tagIds?.split(`,`)?.includes(e),this.progressTagIsSelected=e=>(0,W.isPresent)(this.progressTags)&&this.progressTags.split(`,`)?.includes(e.slug),this.onClickProgressTag=e=>{let t=(0,W.isPresent)(this.progressTags)?this.progressTags.split(`,`):[];this.progressTagIsSelected(e)?t=t.filter(t=>t!==e.slug):t.push(e.slug);let n=t.join(`,`);this.progressTags=n,this.debouncedUpdate(this.props.isExerciseFilter,n,!0)},this.showSpinner=!0,te(()=>{U.AppUI.loadingUser||(this.props.isExerciseFilter?(this.tagIds=U.AppUI.cookieStore.exerciseTagIds||``,this.progressTags=U.AppUI.cookieStore.exerciseProgressTags||``):(this.tagIds=U.AppUI.cookieStore[`worksheetTagIds${this.props.activeView}`]||``,this.progressTags=U.AppUI.cookieStore[`worksheetProgressTags${this.props.activeView}`]||``))})}render(){return(0,K.jsxs)(dRe,{children:[(0,K.jsx)(fRe,{children:(0,K.jsx)(Y6,{isExerciseFilter:this.props.isExerciseFilter,onUpdateFilter:this.props.onUpdateFilter,tagCategories:this.props.tagCategories,showProgressTag:this.props.showProgressTag,activeView:this.props.activeView,wrap:!0})}),this.props.tagCategories.filter(e=>e.published).map(e=>e.slug===`progress`&&this.props.showProgressTag?(0,K.jsxs)(i8,{children:[(0,K.jsx)(r8,{children:(0,K.jsx)(a8,{children:e.name})}),(0,K.jsx)(o8,{children:e.tags.map(e=>(0,K.jsxs)(s8,{onClick:()=>this.onClickProgressTag(e),children:[(0,K.jsx)(c8,{children:e.name}),(0,K.jsx)(l8,{children:(0,K.jsx)(jn,{value:this.progressTagIsSelected(e)})})]},e.id))})]},e.id):e.slug===`progress`?null:(0,K.jsxs)(i8,{children:[(0,K.jsx)(r8,{children:(0,K.jsx)(a8,{children:e.name})}),(0,K.jsx)(o8,{children:e.tags.filter(e=>e.published).map(e=>(0,K.jsxs)(s8,{onClick:()=>this.onClickTag(e.id),children:[(0,K.jsx)(c8,{children:e.name}),(0,K.jsx)(l8,{children:(0,K.jsx)(jn,{value:this.tagIsSelected(e.id)})})]},e.id))})]},e.id))]})}},Q6=n8(Z6.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$6=n8(Z6.prototype,`tagIds`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),e8=n8(Z6.prototype,`progressTags`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Z6))||X6);D();var u8,d8,f8,p8,m8;function h8(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function g8(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var mRe=N.div` 14743 display: flex; 14744 width: 100%; 14745 gap: 10px; 14746 align-items: center; 14747 padding: ${e=>e.padding}; 14748 justify-content: ${e=>e.justifyContent}; 14749`,hRe=N.div` 14750 width: 100%; 14751 display: flex; 14752 gap: ${z.sm}; 14753 align-items: center; 14754 input { 14755 border-radius: 30px; 14756 height: 38px; 14757 } 14758`,gRe=N.button` 14759 display: flex; 14760 align-items: center; 14761 justify-content: center; 14762 gap: 5px; 14763 padding: 10px 15px; 14764 background: ${e=>e.background}; 14765 border: none; 14766 border-radius: 30px; 14767 cursor: pointer; 14768 font-size: 12px; 14769 font-weight: 600; 14770 color: #333; 14771 white-space: nowrap; 14772 height: 38px; 14773 14774 &:hover { 14775 background: #f5f5f5; 14776 } 14777 14778 i { 14779 font-size: 14px; 14780 margin: 2px; 14781 } 14782`,_Re=N.div` 14783 display: inline-flex; 14784 align-items: center; 14785 background-color: #e8e8e8; 14786 border-radius: 24px; 14787 padding: 2px; 14788 height: 38px; 14789 min-width: fit-content; 14790 overflow: hidden; 14791`,vRe=N.button` 14792 width: 38px; 14793 height: 34px; 14794 display: flex; 14795 align-items: center; 14796 justify-content: center; 14797 border: none; 14798 background: transparent; 14799 border-radius: 22px; 14800 cursor: pointer; 14801 transition: all 0.2s ease; 14802 padding: 0 5px; 14803 position: relative; 14804 14805 &:hover { 14806 background: #FFF; 14807 box-shadow: 0 1px 3px rgba(0,0,0,0.12); 14808 } 14809 14810 14811 .icon-wrapper { 14812 height: 20px; 14813 } 14814 14815 svg {
14816 width: 20px; 14817 } 14818 14819 &:hover svg { 14820 fill: #000; 14821 } 14822`,_8=N.button` 14823 width: 38px; 14824 height: 38px; 14825 display: flex; 14826 align-items: center; 14827 justify-content: center; 14828 background-color: #e8e8e8; 14829 border: none; 14830 border-radius: 50%; 14831 cursor: pointer; 14832 margin-right: auto; 14833 14834 &:hover { 14835 background: #f5f5f5; 14836 } 14837 14838 i { 14839 font-size: 16px; 14840 color: #444; 14841 } 14842 14843 &:hover i { 14844 color: #000; 14845 } 14846`,yRe=N.div` 14847 position: absolute; 14848 top: -5px; 14849 left: -5px; 14850 background: #7D7D7D; 14851 color: white; 14852 border-radius: 50%; 14853 width: 18px; 14854 height: 18px; 14855 display: flex; 14856 align-items: center; 14857 justify-content: center; 14858 font-size: 10px; 14859 font-weight: bold; 14860 min-width: 18px; 14861 z-index: 10; 14862`,v8=j(u8=(d8=class extends V.Component{constructor(...e){super(...e),h8(this,`showFilterOptions`,f8,this),h8(this,`searchQuery`,p8,this),h8(this,`expandSearch`,m8,this),this.onCloseModal=()=>{this.showFilterOptions=!1},this.onCollapseSearch=()=>{this.expandSearch=!1},this.insertText=(e,t)=>{let n;t||=this.props.searchQuery?this.props.searchQuery.length:0,n=this.props.searchQuery?[this.props.searchQuery.slice(0,t),e,this.props.searchQuery.slice(t)].join(``):e,this.props.onSearchQueryChange(n)}}get userGroupFilteredTagCategories(){if(this.props.isExerciseFilter){let e=U.AppUI.cookieStore.exerciseTagIds,t=U.AppUI.cookieStore.exerciseProgressTags;return this.props.allTagCategories?.filter(n=>n.tags.some(t=>e?.split(`,`).includes(t.id))||n.slug===`progress`&&(0,W.isPresent)(t))}else{let e=U.AppUI.cookieStore[`worksheetTagIds${this.props.activeView}`],t=U.AppUI.cookieStore[`worksheetProgressTags${this.props.activeView}`];return(0,W.isPresent)(this.props.allTagCategories)?this.props.allTagCategories?.filter(n=>(0,G.some)(n.tags.map(t=>(0,W.isPresent)(e)&&e?.split(`,`).includes(t.id)))||n.slug===`progress`&&(0,W.isPresent)(t)):[]}}get postName(){return(0,W.isPresent)(this.props.routeName)&&this.props.routeName.startsWith(`podcast`)?`Podcast Episode`:(0,W.isPresent)(this.props.routeName)&&this.props.routeName.startsWith(`exercise`)?`Exercise`:`Post`}get showFilterPlaceholder(){if(this.props.isExerciseFilter)return(0,W.isBlank)(U.AppUI.cookieStore.exerciseTagIds)&&((0,W.isBlank)(U.AppUI.cookieStore.exerciseProgressTags)||!this.props.showProgressTag);{let e=U.AppUI.cookieStore[`worksheetTagIds${this.props.activeView}`],t=U.AppUI.cookieStore[`worksheetProgressTags${this.props.activeView}`];return(0,W.isBlank)(e)&&((0,W.isBlank)(t)||!this.props.showProgressTag)}}get hasFilterTags(){return this.activeFilterCount>0}get activeFilterCount(){let e=0;if(e+=this.userGroupFilteredTagCategories.length,this.props.isExerciseFilter)(0,W.isPresent)(U.AppUI.cookieStore.exerciseProgressTags)&&(e+=1);else{let t=U.AppUI.cookieStore[`worksheetProgressTags${this.props.activeView}`];(0,W.isPresent)(t)&&(e+=1)}return e}render(){return(0,K.jsxs)(mRe,{className:`worksheet-filter`,hasSort:!!this.props.onToggleSort,padding:U.AppUI.layout.isMobile?`0 5px`:`0`,justifyContent:U.AppUI.layout.isMobile?`flex-end`:`flex-start`,children:[this.showFilterOptions&&(0,K.jsx)(Dn,{width:U.AppUI.layout.isMobile?`85%`:`400px`,height:U.AppUI.layout.isMobile?`85%`:`600px`,onCloseModal:this.onCloseModal,padding:`0`,title:`Filters`,contentShouldScroll:!0,background:U.AppUI.site.secondaryAccentColor||U.AppUI.site.accentColor||q.Theme.blue,children:(0,K.jsx)(pRe,{isExerciseFilter:this.props.isExerciseFilter,onUpdateFilter:this.props.onUpdateFilter,showProgressTag:this.props.showProgressTag,tagCategories:this.props.filteredTagCategories,activeView:this.props.activeView,...this.props})}),U.AppUI.layout.isMobile&&!this.expandSearch?(0,K.jsx)(_8,{onClick:()=>this.expandSearch=!0,children:(0,K.jsx)(`i`,{className:`fa fa-search`})}):(0,K.jsxs)(hRe,{children:[(0,K.jsx)(qZ,{noBorder:!0,hideSpecialCharacters:!0,placeholder:this.props.isExerciseFilter?`Search for an Exercise Title`:`Search for an Episode Title`,onChange:this.props.onSearchQueryChange,value:this.props.searchQuery,background:`#FFF`,insertText:this.insertText,hideCloseIcon:this.expandSearch}),U.AppUI.layout.isMobile&&this.expandSearch&&(0,K.jsx)(_8,{onClick:this.onCollapseSearch,children:(0,K.jsx)(`i`,{className:`fa fa-times`})})]}),!this.expandSearch&&(0,W.isBlank)(this.props.searchQuery)&&(0,W.isPresent)(this.props.filteredTagCategories)&&(0,K.jsxs)(`div`,{style:{position:`relative`},children:[(0,K.jsxs)(_Re,{children:[this.hasFilterTags&&!U.AppUI.layout.isMobile&&(0,K.jsx)(Y6,{isExerciseFilter:this.props.isExerciseFilter,onUpdateFilter:this.props.onUpdateFilter,tagCategories:this.userGroupFilteredTagCategories,showProgressTag:this.props.showProgressTag,activeView:this.props.activeView}),(0,K.jsx)(vRe,{onClick:()=>
14862this.showFilterOptions=!0,children:(0,K.jsx)(J.FilterIcon,{width:20,height:20,fill:`#444`})})]}),U.AppUI.layout.isMobile&&this.activeFilterCount>0&&(0,K.jsx)(yRe,{children:this.activeFilterCount})]}),!this.expandSearch&&this.props.onToggleSort&&(0,K.jsxs)(gRe,{onClick:()=>this.props.onToggleSort(`worksheets.published_at`),disabled:this.expandSearch,background:U.AppUI.layout.isMobile?`#e8e8e8`:`#FFF`,children:[(0,K.jsx)(`i`,{className:`fa ${this.props.sortDirection===`desc`?`fa-arrow-down`:`fa-arrow-up`}`}),`Sort by Date`]}),!this.expandSearch&&U.AppUI.site.showExerciseView&&(0,W.isPresent)(this.props.showExerciseView)&&(0,G.isFunction)(this.props.onToggleExerciseView)&&(0,K.jsx)(nX,{options:[{value:`videos`,label:`Posts`},{value:`exercises`,label:`Exercises`}],activeOption:this.props.showExerciseView?`exercises`:`videos`,onChange:this.props.onToggleExerciseView,fontSize:`12px`,buttonWidth:U.AppUI.layout.isMobile?`none`:`96px`})]})}},f8=g8(d8.prototype,`showFilterOptions`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p8=g8(d8.prototype,`searchQuery`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m8=g8(d8.prototype,`expandSearch`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g8(d8.prototype,`userGroupFilteredTagCategories`,[E],Object.getOwnPropertyDescriptor(d8.prototype,`userGroupFilteredTagCategories`),d8.prototype),g8(d8.prototype,`postName`,[E],Object.getOwnPropertyDescriptor(d8.prototype,`postName`),d8.prototype),g8(d8.prototype,`showFilterPlaceholder`,[E],Object.getOwnPropertyDescriptor(d8.prototype,`showFilterPlaceholder`),d8.prototype),g8(d8.prototype,`hasFilterTags`,[E],Object.getOwnPropertyDescriptor(d8.prototype,`hasFilterTags`),d8.prototype),g8(d8.prototype,`activeFilterCount`,[E],Object.getOwnPropertyDescriptor(d8.prototype,`activeFilterCount`),d8.prototype),d8))||u8;D();var y8,b8,x8,S8;function C8(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function w8(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var bRe=N.div` 14863 padding-top: ${e=>e.paddingTop}; 14864`,xRe=N.div` 14865 flex: 1; 14866 width: 100%; 14867`,SRe=N.div` 14868 border-radius: ${e=>e.borderRadius}; 14869 overflow: hidden; 14870`,T8=N.div` 14871 ${(0,X.flexCenter)()} 14872 position: relative; 14873 background: ${e=>e.header?`#CCC`:`#FFF`}; 14874 cursor: ${e=>e.header?`default`:`pointer`}; 14875 border-radius: ${e=>e.borderRadius}; 14876 margin: ${e=>e.margin}; 14877 padding: ${e=>e.padding||`10px`}; 14878 &:hover { 14879 background: ${e=>e.header?`#CCC`:`whitesmoke`}; 14880 .grayscale { 14881 filter: none; 14882 } 14883 } 14884`,E8=N.div` 14885 flex: 1; 14886`,D8=N.div` 14887 width: 80px; 14888 text-align: center; 14889`,O8=N.div` 14890 width: 120px; 14891 text-align: ${e=>e.textAlign||`center`}; 14892 cursor: ${e=>e.clickable?`pointer`:`default`}; 14893 .fa { 14894 margin-right: 5px; 14895 padding-top: 3px; 14896 } 14897`,CRe=N.div` 14898 height: 60px; 14899 width: 106px; 14900 margin-right: 10px; 14901 background: linear-gradient(-134deg, rgb(216 216 216) 30%, rgb(239 239 239) 100%); 14902 border-radius: 10px; 14903 img { 14904 border-radius: 10px; 14905 height: 100%; 14906 cursor: pointer; 14907 } 14908 .grayscale { 14909 filter: gray; 14910 filter: grayscale(1); 14911 transition: filter 0.3s ease; 14912 } 14913 .pin-icon { 14914 position: absolute; 14915 height: 14px; 14916 width: 14px; 14917 padding: 5px; 14918 opacity: 0.7; 14919 right: 33px; 14920 top: 22px; 14921 svg { 14922 width: 14px; 14923 fill: #FFF; 14924 } 14925 } 14926`,wRe=N.div` 14927 z-index: ${q.Theme.z.foreground}; 14928 width: 20px; 14929 height: 20px; 14930 border-radius: 8px; 14931 background: #777777; 14932 position: absolute; 14933 top: 1px; 14934 left: 1px; 14935 pointer-events: none; 14936 .icon-wrapper { 14937 svg { 14938 fill: #FFF; 14939 width: 8px; 14940 position: absolute; 14941 left: 6px; 14942 top: 4px; 14943 } 14944 } 14945`,k8=pf(M(j(y8=(b8=class extends V.Component{get paginatorIds(){let e={groupId:this.props.params.groupId};return this.selectedTagIds&&(e.tag_ids=this.selectedTagIds),e}constructor(e){super(e),C8(this,`searchQuery`,x8,this),C8(this,`sort`,S8,this),this.getExercises=()=>{let e={filters:{},sort:this.sort,queryStrings:this.queryStrings};this.searchQuery?e.filters[`exercises.name`]=`~${this.searchQuery}~`:(0,W.isBlank)(this.searchQuery)&&U.ExerciseUI.exerciseStore.hasFilterValue(`exercises.name`)&&U.ExerciseUI.exerciseStore.removeFilter(`exercises.name`),this.sort!==U.ExerciseUI.exerciseStore.sort&&U.AppUI.cookieStore.set(`exerciseSort`,this.sort),U.ExerciseUI.exerciseStore.setPage(1),U.E
14945xerciseUI.exerciseStore.getIndex(e)},this.onSearchQueryChange=e=>{this.searchQuery=e,clearInterval(this.interval),(0,W.isBlank)(e)&&this.getExercises(),((0,W.isBlank)(e)||e.length>1)&&(this.interval=setTimeout(this.getExercises,500))},this.toggleSort=e=>{this.sort.endsWith(e)?this.sort=this.sort.startsWith(`-`)?e:`-${e}`:this.sort=`-${e}`,this.getExercises()},U.AppUI.tagCategoryStore.hasIndexData||U.AppUI.tagCategoryStore.getIndex(),this.initializeSort(),U.ExerciseUI.exerciseStore.hasIndexData||this.getExercises(),U.AppUI.createEvent(`memrev - view exercise list`)}initializeSort(){let e=`-worksheets.published_at`,t=U.AppUI.cookieStore.exerciseSort,n=!U.AppUI.userIsLoaded&&t?.includes(`user_exercise_updated_at`);n&&U.AppUI.cookieStore.set(`exerciseSort`,e);let r=t&&!U.AppUI.layout.isMobile&&!n;this.sort=r?t:e}get queryStrings(){let e={};return U.AppUI.cookieStore.exerciseTagIds&&(e.exercise_tag_ids=U.AppUI.cookieStore.exerciseTagIds),U.AppUI.cookieStore.exerciseProgressTags&&(e.exercise_progress_tags=U.AppUI.cookieStore.exerciseProgressTags),e}get filteredTagCategories(){return U.AppUI.tagCategoryStore.indexData?.filter(e=>e.published&&e.isExerciseTag)}render(){return(0,K.jsx)(bRe,{paddingTop:U.AppUI.layout.isMobile?`15px`:`0`,children:(0,K.jsxs)(An,{gap:`sm`,alignItems:`center`,children:[(0,K.jsx)(v8,{showFilters:!0,isExerciseFilter:!0,onUpdateFilter:this.getExercises,onSearchQueryChange:this.onSearchQueryChange,searchQuery:this.searchQuery,routeName:U.AppUI.routeStore.routeName,showProgressTag:!0,filteredTagCategories:this.filteredTagCategories,allTagCategories:U.AppUI.tagCategoryStore.indexData,showExerciseView:this.props.showExerciseView,onToggleExerciseView:this.props.onToggleExerciseView}),(0,K.jsx)(xRe,{children:(0,K.jsxs)(SRe,{borderRadius:U.AppUI.layout.isMobile?`0`:`10px`,children:[(0,K.jsxs)(T8,{header:!0,children:[(0,K.jsx)(E8,{children:(0,K.jsx)(R,{bold:!0,fontSize:`14px`,children:`Exercise`})}),(0,K.jsx)(O8,{onClick:()=>this.toggleSort(`worksheets.published_at`),clickable:!0,textAlign:U.AppUI.layout.isMobile?`right`:`center`,children:(0,K.jsxs)(R,{bold:!0,fontSize:`14px`,children:[this.sort.endsWith(`worksheets.published_at`)&&(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-caret-down":this.sort.startsWith(`-`),"fa-caret-up":!this.sort.startsWith(`-`)})}),`Post Date`]})}),U.AppUI.userIsLoaded&&(0,K.jsxs)(Xl,{children:[(0,K.jsx)(O8,{onClick:()=>this.toggleSort(`user_exercise_updated_at`),clickable:!0,children:(0,K.jsxs)(R,{bold:!0,fontSize:`14px`,children:[this.sort.endsWith(`user_exercise_updated_at`)&&(0,K.jsx)(`i`,{className:(0,Qg.default)(`fa`,{"fa-caret-down":this.sort.startsWith(`-`),"fa-caret-up":!this.sort.startsWith(`-`)})}),`Last Attempt`]})}),(0,K.jsx)(D8,{children:(0,K.jsx)(R,{bold:!0,fontSize:`14px`,children:`My Score`})})]})]}),U.ExerciseUI.exerciseStore.requestCounter>0&&(0,K.jsx)(T8,{borderRadius:!U.ExerciseUI.exerciseStore.hasIndexData&&U.AppUI.layout.isDesktop?`0 0 10px 10px`:``,children:(0,K.jsx)(P,{margin:`30px auto`,background:U.ExerciseUI.site.accentColor||q.Theme.blue})}),U.ExerciseUI.exerciseStore.requestCounter===0&&!U.ExerciseUI.exerciseStore.hasIndexData&&(0,K.jsx)(T8,{borderRadius:U.AppUI.layout.isDesktop?`0 0 10px 10px`:``,children:(0,K.jsx)(R,{children:`No exercises found`})}),U.ExerciseUI.exerciseStore.indexData.map((e,t)=>(0,K.jsxs)(V.Fragment,{children:[(0,K.jsxs)(T8,{padding:U.AppUI.layout.isMobile?`10px 10px 5px 10px`:`10px`,onClick:()=>U.ExerciseUI.routeStore.routeToNamed(`exercises.show`,{worksheetId:e.worksheetId,exerciseId:e.id,namespace:`exercises`}),borderRadius:t===U.ExerciseUI.exerciseStore.indexData.length-1&&!U.AppUI.layout.isMobile?`0 0 10px 10px`:``,children:[!e.worksheet?.accessStatus?.hasAccess&&(0,K.jsx)(wRe,{children:(0,K.jsx)(J.LockIcon,{})}),(0,K.jsxs)(`div`,{style:{display:`flex`,flex:1},children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(CRe,{children:(0,W.isPresent)(e.worksheet?.imageUrl)&&(0,K.jsx)(`img`,{alt:``,src:e.worksheet?.imageUrl,className:(0,Qg.default)({grayscale:!e.worksheet?.accessStatus?.hasAccess})})})}),(0,K.jsxs)(E8,{children:[(0,K.jsx)(R,{bold:!0,children:e.name}),e.worksheet?.name&&(0,K.jsx)(R,{fontSize:`14px`,lineHeight:`14px`,color:`#a8a8a8`,children:e.worksheet?.name}),(0,K.jsx)(P3,{compact:!0,exercise:e})]})]}
14945),(0,K.jsx)(O8,{textAlign:U.AppUI.layout.isMobile?`right`:`center`,children:(0,K.jsx)(R,{italic:!0,fontSize:`14px`,children:e.worksheet&&e.worksheet.publishedAtDate})}),U.AppUI.userIsLoaded&&(0,K.jsxs)(Xl,{children:[(0,K.jsx)(O8,{children:(0,K.jsx)(R,{italic:!0,fontSize:`14px`,children:e.worksheet&&e.userExerciseUpdatedAt?.formattedDateWithYear})}),(0,K.jsx)(D8,{children:(0,K.jsx)(J3,{largeVersion:!0,current:e.exerciseEntriesCount===0&&e.completed?1:e.correctAnswersCount,total:e.exerciseEntriesCount===0?1:e.exerciseEntriesCount})})]})]},e.id),(0,K.jsx)(QI,{children:(0,K.jsx)(J3,{hideCounts:!0,noBorderRadius:t!==U.ExerciseUI.exerciseStore.indexData.length-1||U.AppUI.layout.isMobile,current:e.exerciseEntriesCount===0&&e.completed?1:e.correctAnswersCount,total:e.exerciseEntriesCount===0?1:e.exerciseEntriesCount},`progress-${e.id}`)})]},`exercise-${e.id}`)),(0,K.jsx)(In,{onClickScrollToTop:!0,withSpinner:!0,store:U.ExerciseUI.exerciseStore,ids:this.paginatorIds,queryStrings:this.queryStrings,margin:`20px 0`})]})})]})})}},x8=w8(b8.prototype,`searchQuery`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),S8=w8(b8.prototype,`sort`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`-worksheets.published_at`}}),w8(b8.prototype,`paginatorIds`,[E],Object.getOwnPropertyDescriptor(b8.prototype,`paginatorIds`),b8.prototype),w8(b8.prototype,`queryStrings`,[E],Object.getOwnPropertyDescriptor(b8.prototype,`queryStrings`),b8.prototype),w8(b8.prototype,`filteredTagCategories`,[E],Object.getOwnPropertyDescriptor(b8.prototype,`filteredTagCategories`),b8.prototype),b8))||y8)),A8,j8=N.div` 14946 z-index: ${q.Theme.z[`over-foreground`]}; 14947 position: absolute; 14948 top: 0; 14949 left: 0; 14950 right: 0; 14951 display: flex; 14952 align-items: center; 14953 justify-content: center; 14954 margin-top: ${e=>e.marginTop}; 14955`,M8=N.div` 14956 background: ${e=>e.background}; 14957 color: white; 14958 padding: 3px 7px; 14959 font-size: 11px; 14960 line-height: 12px; 14961 font-weight: 700; 14962 width: ${e=>e.width}; 14963 border-bottom-left-radius: 5px; 14964 border-bottom-right-radius: 5px; 14965 display: flex; 14966 align-items: center; 14967 justify-content: center; 14968`,N8=j(A8=class extends V.Component{shouldShowFreeLabel(){let e=this.props.worksheet;return e?.published&&e?.accessWithoutMembership&&(!U.ExerciseUI.user.isMember||U.AppUI.isPaymentMigrationStartable)}getLabelText(){return{free:`FREE`,new:`NEW`}[this.props.type||(this.props.worksheet?`free`:null)]||`FREE`}render(){let e=this.props.type||(this.props.worksheet?`free`:null);if(!(this.props.show===void 0?e!==`free`||this.shouldShowFreeLabel():this.props.show))return null;let t=this.props.background||U.AppUI.site.secondaryAccentColor||U.AppUI.site.accentColor,n=this.getLabelText(),r=this.props.width||`40px`;return(0,K.jsx)(j8,{marginTop:this.props.marginTop,children:(0,K.jsx)(M8,{background:t,width:r,children:n})})}})||A8,P8,TRe=N.div` 14969 width: ${e=>e.width}; 14970 height: 183px; 14971 cursor: pointer; 14972 img { 14973 width: 50px; 14974 height: 50px; 14975 border-radius: 10px; 14976 margin-right: 10px; 14977 } 14978`,ERe=N.div` 14979 font-size: 18px; 14980 line-height: 24px; 14981 background: ${e=>e.background||`#e9e9e9`}; 14982 color: ${e=>e.color||null}; 14983 text-overflow: ellipsis; 14984 height: 183px; 14985 border-radius: 10px; 14986 margin: 0; 14987 padding: 10px; 14988 -webkit-mask-image: linear-gradient(to bottom,black,80%,transparent); 14989 p { 14990 margin-top: 0px!important; 14991 } 14992`,DRe=M(j(P8=class extends V.Component{render(){return(0,K.jsx)(TRe,{width:this.props.width,height:this.props.height,children:(0,K.jsx)(ERe,{dangerouslySetInnerHTML:{__html:this.props.worksheet.previewText},linkColor:U.AppUI.site.accentColor})})}})||P8),ORe=N.div` 14993 aspect-ratio: 242 / 140; 14994 background: white; 14995 border: ${e=>e.border}; 14996 border-radius: ${e=>e.borderRadius}; 14997 box-sizing: border-box; 14998 display: grid; 14999 grid-template-columns: 42% 1fr; 15000 overflow: hidden; 15001 position: relative; 15002 width: 100%; 15003 15004 &::before { 15005 background: ${e=>e.accentColorWithStrongOpacity}; 15006 clip-path: polygon(0 0, 100% 100%, 0 100%); 15007 content: ''; 15008 inset: 40px 100px 0 0; 15009 position: absolute; 15010 } 15011 15012 &.grayscale { 15013 filter: gray; 15014 filter: grayscale(1); 15015 transition: filter 0.3s ease; 15016 15017 &:hover { 15018 filter: none; 15019 } 15020 } 15021`,kRe=N.img` 15022 border: ${e=>e.border}; 15023 border-radius: ${e=>e.borderRadius}; 15024 box-sizing: border-box; 15025 display: block; 15026 height: 100%; 15027 object-fit: cover; 15028 width: 100%; 15029`,ARe=N.div` 15030 align-items: center; 15031 background: transparent; 15032 display: flex; 15033 justify-content: center; 15034 margin-left: 20px; 15035 min-width: 0; 15036 padding: 10px; 15037 position: relative; 15038 z-index: 1; 15039`,jRe=N.img` 15040 border-radius: 8px; 15041 box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24); 15042 display: block; 15043 max-height: 100%; 15044 max-width: 100%; 15045`,MRe=N.div` 15046 align-items: flex-start; 15047 color: #222; 15048 display: flex; 15049 flex-direction: column; 15050 height: 70%; 15051 justify-content: flex-end; 15052 margin-left: 10px; 15053 min-width: 0; 15054 padding: 12px; 15055 position: relative; 15056 z-index: 1; 15057`,NRe=N.div` 15058 color: #666; 15059 font-size: 12px; 15060 font-weight: 700; 15061 letter-spacing: 0.04em; 15062 line-height: 16px; 15063 margin-bottom: 6px; 15064`,PRe=N.div` 15065 display: -webkit-box; 15066 font-size: ${e=>e.fontSize}; 15067 font-weight: 800; 15068 line-clamp: 3; 15069 line-height: 1.15; 15070 overflow: hidden;
15071 overflow-wrap: anywhere; 15072 text-align: start; 15073 -webkit-box-orient: vertical; 15074 -webkit-line-clamp: 3; 15075 word-break: break-word; 15076`,FRe=e=>!e||typeof e!=`string`?e:e.replace(`maxres`,`hq`),IRe=e=>e?e.length>55?`14px`:e.length>40?`15px`:e.length>28?`16px`:`18px`:`18px`,LRe=e=>{if(!e)return`#000000CC`;if(/^#[0-9a-fA-F]{6}$/.test(e))return`${e}CC`;if(/^#[0-9a-fA-F]{3}$/.test(e)){let[,t,n,r]=e;return`#${t}${t}${n}${n}${r}${r}CC`}return e},F8=class extends V.Component{render(){let{worksheet:e}=this.props;return e?(0,W.isPresent)(e.imageUrl)?(0,K.jsx)(kRe,{alt:e.name,border:this.props.border,borderRadius:this.props.borderRadius,className:this.props.className,src:FRe(e.imageUrl)}):(0,K.jsxs)(ORe,{accentColor:U.AppUI.site.accentColor,accentColorWithStrongOpacity:LRe(U.AppUI.site.accentColor),border:this.props.border,borderRadius:this.props.borderRadius,className:this.props.className,children:[(0,K.jsx)(ARe,{children:(0,W.isPresent)(e.podcastEpisode?.imageUrl)&&(0,K.jsx)(jRe,{alt:``,src:e.podcastEpisode.imageUrl})}),(0,K.jsxs)(MRe,{children:[(0,K.jsxs)(NRe,{children:[`Episode `,(0,K.jsx)(kn,{episodeCode:e.episodeCode})]}),(0,K.jsx)(PRe,{fontSize:IRe(e.name),children:e.name})]})]}):null}};F8.defaultProps={border:`none`,borderRadius:`10px`},D();var I8,L8;function R8(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var RRe=N.div` 15077 background: white; 15078 border-radius: ${e=>e.borderRadius}; 15079 position: relative; 15080`,zRe=N.div` 15081 padding: 20px 20px 15px 20px; 15082 height: 100%; 15083 display: flex; 15084 flex-direction: column; 15085 justify-content: space-between; 15086`,BRe=N.div` 15087 text-align: left; 15088 cursor: pointer; 15089 font-size: 16px; 15090 font-weight: bold; 15091 line-height: 20px; 15092`,VRe=N.div` 15093 width: 100%; 15094 border-radius: 10px; 15095 background: linear-gradient(-134deg, rgb(216 216 216) 30%, rgb(239 239 239) 100%); 15096 height: 30px; 15097 opacity: 0.6; 15098`,z8=N.div` 15099 width: 100%; 15100 height: fit-content; 15101 min-height: ${e=>e.minHeight}; 15102 background: linear-gradient(-134deg, rgb(216 216 216) 30%, rgb(239 239 239) 100%); 15103 border-radius: 10px; 15104 position: relative; 15105 overflow: hidden; 15106 > img { 15107 width: 100%; 15108 border-radius: 10px; 15109 height: 100%; 15110 cursor: pointer; 15111 } 15112 .grayscale { 15113 filter: gray; 15114 filter: grayscale(1); 15115 transition: filter 0.3s ease; 15116 &:hover { 15117 filter: none; 15118 } 15119 } 15120 .pin-icon { 15121 position: absolute; 15122 height: 14px; 15123 width: 14px; 15124 padding: 5px; 15125 opacity: 0.7; 15126 right: 33px; 15127 top: 22px; 15128 svg { 15129 width: 14px; 15130 fill: #FFF; 15131 } 15132 } 15133`,B8=N.div` 15134 z-index: ${q.Theme.z.foreground}; 15135 width: 30px; 15136 height: 30px; 15137 border-radius: 10px; 15138 background: ${e=>e.background}; 15139 position: absolute; 15140 top: 5px; 15141 right: 5px; 15142 pointer-events: none; 15143 .icon-wrapper { 15144 svg { 15145 fill: #FFF; 15146 width: ${e=>e.iconWidth}; 15147 position: absolute; 15148 left: ${e=>e.left}; 15149 top: ${e=>e.top}; 15150 } 15151 } 15152`,HRe=N.div` 15153 display: flex; 15154 align-items: center; 15155 margin: 10px 0 5px 0; 15156`,URe=N.div` 15157 width: 40px; 15158 height: 40px; 15159 margin-right: 10px; 15160 img { 15161 width: 40px; 15162 height: 40px; 15163 border-radius: ${e=>e.borderRadius}; 15164 } 15165`,WRe=N.div` 15166 width: 40px; 15167 height: 40px; 15168 border-radius: 40px; 15169 background: #ed2021; 15170 display: flex; 15171 align-items: center; 15172 justify-content: center; 15173 img { 15174 width: 24px; 15175 height: 28px; 15176 } 15177`,GRe=N.div` 15178 display: flex; 15179 justify-content: space-between; 15180 align-items: center; 15181`,KRe=N(F)` 15182 text-decoration: none; 15183 color: inherit; 15184 display: block; 15185`,qRe=N.div` 15186 height: 15px; 15187 border-radius: ${e=>e.borderRadius}; 15188 overflow: hidden; 15189 display: flex; 15190 flex-direction: column-reverse; 15191 position: absolute; 15192 bottom: 0; 15193 left: 0; 15194 right: 0; 15195`,V8=M(j(I8=(L8=class extends V.Component{constructor(...e){super(...e),this.onClick=()=>{U.ExerciseUI.set(`worksheetId`,this.props.worksheet.id),U.ExerciseUI.worksheetStore.setShowData(this.props.worksheet)}}get showFreeLabel(){return this.props.worksheet?.published&&this.props.worksheet?.accessWithoutMembership&&(!U.ExerciseUI.user.isMember||U.AppUI.isPaymentMigrationStartable)}get showTags(){return!(U.AppUI.userIsSignedIn&&U.AppUI.routeStore.routeName===U.AppUI.site.signedInHomePageRoute||U.AppUI.userIsSignedOut&&U.AppUI.routeStore.routeName===U.AppUI.site.signedOutHomePageRoute)}get accessStatus(){return this.props.worksheet?.accessStatus}get showLockIcon(){return this.accessStatus&&!this.accessStatus.hasAccess&&!this.show
15195FreeLabel}get showPinIcon(){return!this.props.hidePinIcon&&this.accessStatus&&this.accessStatus.hasAccess&&this.props.worksheet?.pinned}get showYoutubeThumbnail(){return(0,W.isPresent)(this.props.worksheet?.formattedYoutubeUrl)}get podcastImageUrl(){return this.props.worksheet?.podcastEpisode?.imageUrl||this.props.worksheet?.podcastEpisode?.podcast?.imageUrl}render(){return this.props.worksheet?(0,K.jsxs)(RRe,{id:this.props.worksheet.id,borderRadius:U.ExerciseUI.layout.isMobile?`0`:`10px`,children:[(0,K.jsxs)(zRe,{children:[(0,K.jsxs)(KRe,{to:{name:`${U.ExerciseUI.worksheetNamespace}.show`,params:{worksheetId:this.props.worksheet.routeId}},onClick:this.onClick,children:[(0,W.isPresent)(this.props.worksheet)&&!this.props.worksheet.published&&(0,K.jsx)(j8,{children:(0,K.jsx)(M8,{background:`#b48181`,width:`85px`,children:`UNPUBLISHED`})}),this.props.worksheet?.published&&this.props.worksheet?.isNew&&!this.showFreeLabel&&(0,K.jsx)(N8,{type:`new`,worksheet:this.props.worksheet}),this.showFreeLabel&&(0,K.jsx)(N8,{type:`free`,worksheet:this.props.worksheet}),this.showLockIcon&&(0,K.jsx)(B8,{background:`#777777`,iconWidth:`11px`,left:`10px`,top:`7px`,children:(0,K.jsx)(J.LockIcon,{})}),this.showPinIcon&&(0,K.jsx)(B8,{background:U.AppUI.site.secondaryAccentColor||`#777777`,iconWidth:`14px`,left:`8px`,top:`8px`,children:(0,K.jsx)(J.PinIcon,{})}),(0,W.isPresent)(this.props.worksheet?.podcastEpisode)&&(0,K.jsx)(z8,{children:(0,K.jsx)(F8,{className:(0,Qg.default)({grayscale:this.showLockIcon}),worksheet:this.props.worksheet})}),(0,W.isBlank)(this.props.worksheet?.podcastEpisode)&&(0,W.isPresent)(this.props.worksheet?.previewText)&&(0,W.isBlank)(this.props.worksheet?.imageUrl)&&(0,K.jsx)(DRe,{worksheet:this.props.worksheet}),(0,W.isBlank)(this.props.worksheet?.podcastEpisode)&&((0,W.isBlank)(this.props.worksheet?.previewText)||(0,W.isPresent)(this.props.worksheet?.imageUrl))&&(0,K.jsxs)(z8,{children:[(0,W.isPresent)(this.props.worksheet?.imageUrl)&&this.showYoutubeThumbnail&&(0,K.jsx)(Ha,{thumbnailUrl:this.props.worksheet?.imageUrl,imageClassName:(0,Qg.default)({grayscale:this.showLockIcon}),durationSeconds:this.props.worksheet?.videoDurationSeconds,showPlayButton:!1}),(0,W.isPresent)(this.props.worksheet?.imageUrl)&&!this.showYoutubeThumbnail&&(0,K.jsx)(`img`,{alt:``,src:this.props.worksheet?.imageUrl,className:(0,Qg.default)({grayscale:this.showLockIcon})})]}),(0,K.jsxs)(HRe,{children:[(0,K.jsxs)(URe,{borderRadius:(0,W.isPresent)(this.podcastImageUrl)?`5px`:`40px`,children:[(0,W.isPresent)(this.podcastImageUrl)&&(0,K.jsx)(`img`,{alt:``,src:this.podcastImageUrl}),(0,W.isBlank)(this.props.worksheet?.podcastEpisode)&&(0,K.jsx)(WRe,{children:(0,K.jsx)(`img`,{alt:``,src:`/images/youtube_icon_inverse.png`})})]}),(0,W.isPresent)(this.props.worksheet?.name)&&(0,K.jsx)(BRe,{children:this.props.worksheet?.name}),(0,W.isBlank)(this.props.worksheet?.name)&&(0,K.jsx)(VRe,{})]})]}),(0,W.isPresent)(this.props.worksheet)&&this.showTags&&(0,K.jsx)(GRe,{children:(0,K.jsx)(Du,{episodeCode:this.props.worksheet.episodeCode,worksheet:this.props.worksheet,onUpdateFilter:this.props.onUpdateFilter,gridLayout:this.props.gridLayout})})]}),(0,K.jsx)(qRe,{borderRadius:U.ExerciseUI.layout.isMobile?`0`:`10px`,children:(0,K.jsx)(J3,{hideCounts:!0,current:this.props.worksheet.progressPercentage,total:100,borderTopRightRadius:`5px`,borderTopLeftRadius:U.ExerciseUI.layout.isMobile?`0`:`10px`,borderBottomRightRadius:`5px`,borderBottomLeftRadius:`0px`})})]}):null}},R8(L8.prototype,`showFreeLabel`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`showFreeLabel`),L8.prototype),R8(L8.prototype,`showTags`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`showTags`),L8.prototype),R8(L8.prototype,`accessStatus`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`accessStatus`),L8.prototype),R8(L8.prototype,`showLockIcon`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`showLockIcon`),L8.prototype),R8(L8.prototype,`showPinIcon`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`showPinIcon`),L8.prototype),R8(L8.prototype,`showYoutubeThumbnail`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`showYoutubeThumbn
15195ail`),L8.prototype),R8(L8.prototype,`podcastImageUrl`,[E],Object.getOwnPropertyDescriptor(L8.prototype,`podcastImageUrl`),L8.prototype),L8))||I8),JRe={j:function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: ${e.message}`}},l:function(e){return e.toString()}};function H8(e,t){var n=[...arguments].slice(2);if(!e){var r=[],i=0,a=t.replace(/%([a-zA-Z%])/g,function(e,t){if(e===`%%`)return e;var a=JRe[t];if(typeof a==`function`){var o=n[i++];return r.push(o),a(o)}return e});throw console&&r.length>0&&console.log.apply(console,r),Error(`[serializr] `+(a||`Illegal State`))}}function U8(e){if(e)throw Error(e)}function YRe(e){var t=!1;return function(){var n=[...arguments];if(!t)return t=!0,e.apply(void 0,n);H8(!1,`callback was invoked twice`)}}function XRe(e,t,n){if(e.length===0)return void n(null,[]);var r=e.filter(function(e){return!0}).length,i=[],a=!1;e.forEach(function(e,o){t(e,function(e,t){e?a||(a=!0,n(e)):(i[o]=t,--r===0&&n(null,i))},o)})}function W8(e){return e===null?!0:typeof e!=`object`&&typeof e!=`function`}function G8(e){return e&&e.factory&&e.props}function ZRe(e){return e&&e.serializer&&e.deserializer}function K8(e,t){for(var n=e;n;){if(n===t)return!0;n=n.extends}return!1}function QRe(e,t){return t&&(H8(ZRe(e),`expected a propSchema`),Object.assign(e,t)),e}function $Re(e){if(e){if(G8(e))return e;if(G8(e.serializeInfo))return e.serializeInfo;if(e.constructor&&e.constructor.serializeInfo)return e.constructor.serializeInfo}}function eze(e){var t={serializer:function(e){return H8(W8(e),`this value is not primitive: ${e}`),e},deserializer:function(e,t){if(!W8(e))return void t(`[serializr] this value is not primitive: ${e}`);t(null,e)}};return t=QRe(t,e),t}var q8=typeof Symbol<`u`?Symbol(`SKIP`):{SKIP:!0},tze=eze(),nze=function(){function e(e,t,n,r,i){this.parentContext=e,this.modelSchema=t,this.json=n,this.onReadyCb=r,this.isRoot=!e,this.pendingCallbacks=0,this.pendingRefsCount=0,this.target=void 0,this.hasError=!1,e?(this.rootContext=e.rootContext,this.args=e.args):(this.rootContext=this,this.args=i,this.pendingRefs={},this.resolvedRefs={})}return e.prototype.createCallback=function(t){var n=this;return this.pendingCallbacks++,YRe(function(r,i){r?n.hasError||(n.hasError=!0,n.onReadyCb(r),e.rootContextCache.delete(n)):n.hasError||(t(i),--n.pendingCallbacks===n.pendingRefsCount&&(n.pendingRefsCount>0?(n.onReadyCb(Error(`Unresolvable references in json: "${Object.keys(n.pendingRefs).filter(function(e){return n.pendingRefs[e].length>0}).join(`", "`)}"`)),e.rootContextCache.delete(n)):(n.onReadyCb(null,n.target),e.rootContextCache.delete(n))))})},e.prototype.await=function(e,t,n){if(H8(this.isRoot,`await can only be called on the root context`),t in this.resolvedRefs){var r=this.resolvedRefs[t].filter(function(t){return K8(t.modelSchema,e)})[0];if(r)return void n(null,r.value)}this.pendingRefsCount++,this.pendingRefs[t]||(this.pendingRefs[t]=[]),this.pendingRefs[t].push({modelSchema:e,uuid:t,callback:n})},e.prototype.resolve=function(e,t,n){if(H8(this.isRoot,`resolve can only called on the root context`),this.resolvedRefs[t]||(this.resolvedRefs[t]=[]),this.resolvedRefs[t].push({modelSchema:e,value:n}),t in this.pendingRefs)for(var r=this.pendingRefs[t].length-1;r>=0;r--){var i=this.pendingRefs[t][r];K8(e,i.modelSchema)&&(this.pendingRefs[t].splice(r,1),this.pendingRefsCount--,i.callback(null,n))}},e.prototype.setTarget=function(t){this.isRoot&&this.target&&e.rootContextCache.delete(this.target),this.target=t,e.rootContextCache.set(this.target,this)},e.prototype.cancelAwaits=function(){var e=this;H8(this.isRoot,`cancelAwaits can only be called on the root context`),Object.keys(this.pendingRefs).forEach(function(t){e.pendingRefs[t].forEach(function(n){e.pendingRefsCount--,n.callback(Error(`Reference resolution canceled for `+t))})}),this.pendingRefs={},this.pendingRefsCount=0},e.getTargetContext=function(t){return e.rootContextCache.get(t)},e.rootContextCache=new WeakMap,e}();function rze(e,t){for(var n in e.props){var r=e.props[n];if(typeof r==`object`&&r.jsonname===t)return!0}return!1}
15195function ize(e,t,n,r,i){var a=function(a){if(!(a in t.props)&&!rze(t,a)){var o=i[a];n===!0?(H8(W8(o),`encountered non primitive value while deserializing '*' properties in property '${a}': ${o}`),r[a]=o):n&&(!n.pattern||n.pattern.test(a))&&n.deserializer(o,e.rootContext.createCallback(function(e){return e!==q8&&(r[a]=e)}),e)}};for(var o in i)a(o)}function J8(e,t){if(t.subSchemas?.length)for(var n=0,r=t.subSchemas;n<r.length;n++){var i=r[n];if(i.discriminator){if(i.discriminator.isActualType(e))return i;var a=J8(e,i);if(a!==i)return a}}return t}function Y8(e,t,n,r){n===void 0&&(n=U8),H8(arguments.length>=2,`deserialize expects at least 2 arguments`);var i=$Re(e);if(H8(G8(i),`first argument should be model schema`),Array.isArray(t)){var a=[];return XRe(t,function(e,t){var n=X8(void 0,i,e,t,r);a.push(n)},n),a}else return X8(void 0,i,t,n,r)}function X8(e,t,n,r,i){if(typeof n!=`object`||!n)return void r(null,null);var a=J8(n,t),o=new nze(e,a,n,r,i),s=a.factory(o);H8(!!s,`No object returned from factory`),o.setTarget(s);var c=o.createCallback(U8);return Z8(o,a,n,s),c(),s}var aze=function(e,t,n,r,i,a){a&&typeof a.beforeDeserialize==`function`?a.beforeDeserialize(e,t,n,r,i,a):e(null,t)},oze=function(e,t,n,r,i,a,o,s){s&&typeof s.afterDeserialize==`function`?s.afterDeserialize(e,t,n,r,i,a,o,s):e(t,n)};function Z8(e,t,n,r){t.extends&&Z8(e,t.extends,n,r);function i(t,i,a){var o=e.rootContext.createCallback(function(e){return e!==q8&&(r[a]=e)});t.deserializer(i,function(r,s){return oze(o,r,s,i,n,a,e,t)},e,r[a])}for(var a=function(a){var o=t.props[a];if(!o)return{value:void 0};if(a===`*`)return ize(e,t,o,r,n),{value:void 0};o===!0&&(o=tze);var s=o.jsonname??a;H8(typeof s!=`symbol`,`You must alias symbol properties. prop = %l`,a);var c=n[s],l=o;aze(function(e,t){!e&&t!==void 0&&i(l,t,a)},c,n,s,e,o)},o=0,s=Object.keys(t.props);o<s.length;o++){var c=s[o],l=a(c);if(typeof l==`object`)return l.value}}D(),w();var Q8,$8,e5,t5,n5,r5,i5,a5,o5;function s5(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function c5(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var sze=N.div` 15196 padding-top: ${e=>e.paddingTop}; 15197`,l5=N.div` 15198 border-radius: 10px; 15199 margin-bottom: 15px; 15200 width: 100%; 15201`,cze=N.div` 15202 display: flex; 15203 align-items: center; 15204 justify-content: space-between; 15205 font-size: 18px; 15206 font-weight: bold; 15207 padding: 10px 10px 10px 0; 15208 border-radius: 10px; 15209 cursor: pointer; 15210 .fa { 15211 font-size: 24px; 15212 margin: 0 10px 0 5px; 15213 width: 15px; 15214 text-align: center; 15215 } 15216 @media only screen and (max-width : 649px) { 15217 margin-left: 10px; 15218 } 15219`,lze=N.div` 15220 font-weight: normal; 15221 color: gray; 15222 font-size: 14px; 15223 margin-right: 5px; 15224`,u5=N.div` 15225 border-radius: 10px; 15226 display: grid; 15227 grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); 15228 gap: 15px; 15229 min-height: ${e=>e.minHeight}; 15230 15231 & > *:only-child { 15232 max-width: 575px; 15233 margin: auto; 15234 } 15235`,uze=N.span` 15236 font-size: 11px; 15237 text-decoration: underline; 15238 text-align: center; 15239 margin-right: 20px; 15240 vertical-align: bottom; 15241`,d5=M(j(Q8=($8=class extends V.Component{constructor(e){super(e),s5(this,`gridIsLoaded`,e5,this),s5(this,`searchQuery`,t5,this),s5(this,`closedSections`,n5,this),s5(this,`gridSectionIsLoading`,r5,this),s5(this,`loadedTagCategories`,i5,this),s5(this,`lastFetchedQueryStrings`,a5,this),s5(this,`previousSignedInState`,o5,this),this.onScroll=()=>{let e=U.ExerciseUI.worksheetStore.page,t=document.getElementsByClassName(`app`)[0];!this.useGridLayout&&U.ExerciseUI.worksheetStore.requestCounter===0&&!U.ExerciseUI.worksheetStore.indexDataFullyLoaded&&_(t)&&t.scrollTop+t.clientHeight>=t.scrollHeight-250&&(U.ExerciseUI.worksheetStore.setPage(e+1),U.ExerciseUI.worksheetStore.getIndex({limit:this.worksheetLimit,sort:this.sortParameter,filters:this.worksheetFilters,queryStrings:this.queryStringsWithFilters},this.afterOnScroll))},this.afterOnScroll=e=>{U.ExerciseUI.worksheetStore.setIndexData(e,{addToIndexData:!0})},this.onSearchQueryChange=e=>{this.searchQuery=e,clearInterval(this.interval),(0,W.isBlank)(e)&&this.getGrid(),((0,W.isBlank)(e)||e.length>1)&&(this.interval=setTimeout(this.getGrid,500))},this.getGrid=(e={})=>{this.gridIsLoaded=!1,this.gridLayoutEnabled&&(!U.ExerciseUI.gridItemStore.hasIndexData||e.forceLoad)?(U.AppUI.set(`worksheetGridScrollPosition`,0),U.ExerciseUI.gridItemStore.clearFilter(),U.ExerciseUI.gridItemStore.getIndex({queryStrings:{sort:`position`,filters:{},worksheet_filters:this.worksheetFilters,show_all:!this.props.showFilters}},this.getGridItems)):(this.recentWorksheetIds&&this.useGridLayout&&(e.excludedWorksheetIds=this.recentWorksheetIds),this.getWorksheets(e))},this.getWorksheets=e=>{let t=this.sortParameter,n=JSON.stringify(this.queryStringsWithFilters),r=(0,G.some)((0,G.keys)(this.worksheetFilters)?.map(e=>this.worksheetFilters[e]!==U.ExerciseUI.worksheetStore.getFilterValue(e)))||(0,G.some)((0,G.keys)(ie(U.ExerciseUI.worksheetStore.filters))?.map(e=>this.worksheetFilters[e]!==U.ExerciseUI.worksheetStore.getFilterValue(e))),i=U.ExerciseUI.worksheetStore.sort!==t,a=n!==this.lastFetchedQueryStrings;!U.ExerciseUI.worksheetStore.hasIndexData||r||i||a||_(e)&&e.forceLoad?(U.AppUI.set(`worksheetGridScrollPosition`,0),U.ExerciseUI.worksheetStore.clearIndexData(),U.ExerciseUI.worksheetStore.clearFilter(),this.lastFetchedQueryStrings=n,U.ExerciseUI.worksheetStore.getIndex({limit:this.worksheetLimit,sort:t,filters:this.worksheetFilters,queryStrings:{...this.queryStringsWithFilters,excluded_worksheet_ids:e?.excludedWorksheetIds}},this.afterGetWorksheets)):this.gridIsLoaded=!0},this.afterGetWorksheets=e=>{U.ExerciseUI.worksheetStore.setIndexData(e),this.gridIsLoaded=!0},this.getGridItems=e=>{if(U.ExerciseUI.gridItemStore.setIndexData(e),this.gridIsLoaded=!0,this.visibleSections=e.map(e=>e.id),!this.hasVisibleGridItems){this.getWorksheets();return}U.ExerciseUI.gridItemStore.indexData.find(e=>e.mostRecent&&e.isVisibleToUser(U.ExerciseUI.user))?U.ExerciseUI.recentWorksheetStore.getIndex({queryStrings:{show_all:`true`}},this.afterGetRecentWorksheets):this.getWorksheets()},this.afterGetRecentWorksheets=e=>{U.ExerciseUI.recentWorksheetStore.afterGetIndex(e),this.getWorksheets({excludedWorksheetIds:this.recentWorksheetIds})},this.onToggleSection=e=>{this.closedSections=(0,G.xor)(this.closedSections,[e]),U.AppUI.cookieStore.set(`closedGridSections`,this.closedSections.join(`,`))},this.sectionIsOpen=e=>!this.closedSections?.includes(e),this.getGridItemWorksheets=e=>{U.ExerciseUI.gridItemWorksheetStore.getIndex({queryStrings:{filters:{grid_item_id:e.id},limit:q.Constants.WORKSHEETS_PER_SECTION,page:e.gridItemState.currentPage,worksheet_filters:this.worksheetFilters,show_all:!this.props.showFilters}},t=>this.afterChangeGridItemPage(e.id,t))},this.onIncrementGridItemPage=(e,t)=>
15241{this.gridSectionIsLoading[t.id]=!0,t.gridItemState.setPage(t.gridItemState.currentPage+e),this.getGridItemWorksheets(t)},this.afterChangeGridItemPage=(e,t)=>{this.gridSectionIsLoading[e]=!1,U.ExerciseUI.gridItemStore.hasIndexData&&(U.ExerciseUI.gridItemStore.indexData.find(t=>t.id===e).gridItemWorksheets=t.map(e=>Y8(pT.GridItemWorksheet,e)))},this.loadTags=()=>{U.AppUI.tagCategoryStore.getIndex({ids:{groupId:U.AppUI.user.currentUserGroup?.groupId}},this.afterLoadTags)},this.afterLoadTags=e=>{U.AppUI.tagCategoryStore.setIndexData(e),this.getGrid()},this.displayTagCategory=e=>{let t=U.AppUI.routeStore.routeName;return t===`worksheets.index`&&e.displayOnHomeFilters||t===`videos.index`&&e.displayOnVideoFilters||t===`podcast.index`&&e.displayOnPodcastFilters},U.AppUI.layout.isMobile||window.addEventListener(`scroll`,this.onScroll,!0),this.loadedTagCategories&&this.getGrid(),te(()=>{!this.loadedTagCategories&&!U.AppUI.loadingUser&&(this.loadedTagCategories=!0,this.loadTags())}),te(()=>{let e=U.AppUI.userIsSignedIn;this.previousSignedInState!==e&&(this.previousSignedInState=e,U.ExerciseUI.gridItemStore.clearIndexData(),U.ExerciseUI.worksheetStore.clearIndexData(),U.ExerciseUI.recentWorksheetStore.clearIndexData(),this.loadedTagCategories=!1)})}componentDidMount(){let e=U.AppUI.cookieStore.closedGridSections;this.closedSections=e?e.split(`,`):[]}componentWillUnmount(){window.removeEventListener(`scroll`,this.onScroll,!0)}get hasVisibleGridItems(){return U.ExerciseUI.gridItemStore.hasIndexData?U.ExerciseUI.gridItemStore.indexData.some(e=>e.isVisibleToUser(U.ExerciseUI.user)&&(e.worksheetsCount>0||e.otherPosts&&U.ExerciseUI.worksheetStore.hasIndexData||e.mostRecent&&U.ExerciseUI.recentWorksheetStore.hasIndexData)):!1}get gridLayoutEnabled(){return this.props.useGridLayout&&(!U.ExerciseUI.site.showWorksheetFilter||!this.hasSelectedFilterTags&&U.AppUI.tagCategoryStore.hasIndexData&&(0,W.isBlank)(this.searchQuery))}get useGridLayout(){return this.gridLayoutEnabled&&this.hasVisibleGridItems}get worksheetFilters(){let e={};return this.props.defaultWorksheetFilter&&(e=this.props.defaultWorksheetFilter),this.useGridLayout&&(e.grid_items_count=0),(!U.ExerciseUI.user||!U.ExerciseUI.user.anyAdmin)&&(e.published=!0),this.searchQuery?e.name=`~${this.searchQuery}~`:(0,W.isBlank)(this.searchQuery)&&_(e.name)?delete e.name:this.props.params?.filter===`video_clips`?e.podcast_episode_id=!1:this.props.params?.filter===`podcasts`&&(e.podcast_episode_id=!0),e}get sortParameter(){return[(!U.ExerciseUI.user.isMember||U.AppUI.vocabBlockedUntilMigrated||U.AppUI.exercisesBlockedUntilMigrated)&&`-access_without_membership`,`-pinned`,`-content_published_at`].filter(Boolean).join(`,`)}get worksheetLimit(){return this.useGridLayout?6:U.AppUI.layout.isMobile?8:15}get recentWorksheetIds(){return U.ExerciseUI.worksheetNamespace===`worksheets`&&U.E
15241xerciseUI.recentWorksheetStore.hasIndexData&&U.ExerciseUI.recentWorksheetStore.indexData.map(e=>e.id).join(`,`)}get showProgressTag(){let e=U.AppUI.tagCategoryStore.indexData.find(e=>e.slug===`progress`&&e.published);return(0,W.isBlank)(e)?!1:this.displayTagCategory(e)&&U.AppUI.userIsSignedIn}get filteredTagCategories(){return U.AppUI.tagCategoryStore.indexData?.filter(e=>e.published&&e.isWorksheetTag&&this.displayTagCategory(e))}get hasSelectedFilterTags(){let e=U.AppUI.cookieStore[`worksheetProgressTags${this.activeView}`],t=U.AppUI.cookieStore[`worksheetTagIds${this.activeView}`];return this.showProgressTag&&_(e)||_(t)&&(0,G.some)(this.filteredTagCategories.map(e=>(0,G.some)(e.tags.map(e=>t?.split(`,`).includes(e.id)))))}get activeView(){return U.ExerciseUI.worksheetNamespace===`worksheets`?`Home`:U.ExerciseUI.worksheetNamespace===`videos`?`Videos`:U.ExerciseUI.worksheetNamespace===`podcast`?`Podcast`:null}get filteredWorksheetTagIds(){return U.AppUI.cookieStore[`worksheetTagIds${this.activeView}`]}get filteredWorksheetProgressTags(){return this.showProgressTag?U.AppUI.cookieStore[`worksheetProgressTags${this.activeView}`]:null}get queryStringsWithFilters(){let e={show_all:!this.props.showFilters};return this.filteredWorksheetTagIds&&(e.worksheet_tag_ids=this.filteredWorksheetTagIds),this.filteredWorksheetProgressTags&&(e.worksheet_progress_tags=this.filteredWorksheetProgressTags),e}render(){return(0,K.jsx)(sze,{id:`page-top`,paddingTop:U.AppUI.layout.isMobile?`15px`:null,children:(0,K.jsxs)(An,{gap:`sm`,alignItems:`center`,children:[this.props.showFilters&&U.ExerciseUI.site.showWorksheetFilter&&(0,K.jsx)(v8,{onUpdateFilter:()=>this.getGrid({forceLoad:!0}),onSearchQueryChange:this.onSearchQueryChange,searchQuery:this.searchQuery,routeName:U.AppUI.routeStore.routeName,showProgressTag:this.showProgressTag,filteredTagCategories:this.filteredTagCategories,allTagCategories:U.AppUI.tagCategoryStore.indexData,activeView:this.activeView,showExerciseView:this.props.showExerciseView,onToggleExerciseView:this.props.onToggleExerciseView}),this.useGridLayout&&!this.gridIsLoaded&&(0,K.jsx)(P,{background:U.ExerciseUI.site.accentColor}),this.useGridLayout&&U.ExerciseUI.gridItemStore.indexData.map(e=>e.isVisibleToUser(U.ExerciseUI.user)&&(e.worksheetsCount>0||e.otherPosts&&U.ExerciseUI.worksheetStore.hasIndexData||e.mostRecent&&U.ExerciseUI.recentWorksheetStore.hasIndexData)?(0,K.jsxs)(l5,{children:[(0,K.jsxs)(cze,{onClick:()=>this.onToggleSection(e.id),id:`${e.id}-page-top`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`i`,{className:`fa fa-angle-${this.sectionIsOpen(e.id)?`down`:`right`}`}),e.name]}),!e.isAutomatic&&(0,K.jsxs)(lze,{children:[U.ExerciseUI.user.anyAdmin&&(0,K.jsx)(uze,{children:(0,K.jsx)(F,{to:{name:`creator.grid_items.edit`,params:{gridItemId:e.id}},children:`Admin Link`})}),_(e.filteredWorksheetsCount)&&`${e.filteredWorksheetsCount} Post${e.filteredWorksheetsCount===0?``:`s`}`]})]}),this.sectionIsOpen(e.id)&&(0,K.jsxs)(u5,{id:e.id,minHeight:e.gridItemWorksheets.length>3?600:null,children:[!e.isAutomatic&&!this.gridSectionIsLoading[e.id]&&e.gridItemWorksheets.map(e=>(0,K.jsx)(V8,{onUpdateFilter:()=>this.getGrid({forceLoad:!0}),worksheet:e.worksheet,gridLayout:this.useGridLayout,hidePinIcon:!0,activeView:this.activeView},e.id)),e.mostRecent&&U.ExerciseUI.recentWorksheetStore.hasIndexData&&U.ExerciseUI.recentWorksheetStore.indexData.map(e=>(0,K.jsx)(V8,{onUpdateFilter:()=>this.getGrid({forceLoad:!0}),worksheet:e,gridLayout:this.useGridLayout,hidePinIcon:!0,activeView:this.activeView},e.id)),e.otherPosts&&U.ExerciseUI.worksheetStore.indexData.map(e=>(0,K.jsx)(V8,{onUpdateFilter:()=>this.getGrid({forceLoad:!0}),worksheet:e,gridLayout:this.useGridLayout,activeView:this.activeView},e.id)),this.gridSectionIsLoading[e.id]&&[...[,,,,,,]].map((e,t)=>(0,K.jsx)(V8,{onUpdateFilter:()=>this.getGrid({forceLoad:!0}),gridLayout:this.useGridLayout,hidePinIcon:!0,activeView:this.activeView},`placeholder-${t}`))]}),!e.isAutomatic&&this.sectionIsOpen(e.id)&&e.filteredWorksheetsCount>q.Constants.WORKSHEETS_PER_SECTION&&(0,K.jsx)(In,{onClickScrollToTop:U.AppUI.layout.isMobile,pageTop:`${e.id}
15241-page-top`,hideInput:!0,onPagination:t=>this.onIncrementGridItemPage(t,e),totalCount:e.filteredWorksheetsCount,currentPage:e.gridItemState.currentPage,limit:q.Constants.WORKSHEETS_PER_SECTION}),e.otherPosts&&this.sectionIsOpen(e.id)&&(0,K.jsx)(In,{onClickScrollToTop:U.AppUI.layout.isMobile,store:U.ExerciseUI.worksheetStore,pageTop:`${e.id}-page-top`,queryStrings:{excluded_worksheet_ids:this.recentWorksheetIds,show_all:!0}})]},e.id):null),!this.useGridLayout&&U.ExerciseUI.worksheetStore.hasIndexData&&(0,K.jsxs)(l5,{children:[(0,K.jsx)(u5,{children:U.ExerciseUI.worksheetStore.indexData.map(e=>(0,K.jsx)(V8,{onUpdateFilter:()=>this.getGrid({forceLoad:!0}),worksheet:e,gridLayout:this.useGridLayout,activeView:this.activeView},e.id))}),(0,K.jsx)(QI,{children:(0,K.jsx)(In,{onClickScrollToTop:!0,pageTop:`top`,store:U.ExerciseUI.worksheetStore})})]}),!this.useGridLayout&&U.ExerciseUI.worksheetStore.requestCounter>0&&(0,K.jsx)(P,{background:U.ExerciseUI.site.accentColor}),U.ExerciseUI.site.showWorksheetFilter&&this.gridIsLoaded&&!this.useGridLayout&&U.ExerciseUI.worksheetStore.indexData?.length===0&&(0,K.jsx)(R,{center:!0,children:`Sorry, we don't have any post that match these filters!`})]})})}},e5=c5($8.prototype,`gridIsLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t5=c5($8.prototype,`searchQuery`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),n5=c5($8.prototype,`closedSections`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r5=c5($8.prototype,`gridSectionIsLoading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),i5=c5($8.prototype,`loadedTagCategories`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return U.AppUI.tagCategoryStore.hasIndexData}}),a5=c5($8.prototype,`lastFetchedQueryStrings`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o5=c5($8.prototype,`previousSignedInState`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return U.AppUI.userIsSignedIn}}),c5($8.prototype,`hasVisibleGridItems`,[E],Object.getOwnPropertyDescriptor($8.prototype,`hasVisibleGridItems`),$8.prototype),c5($8.prototype,`gridLayoutEnabled`,[E],Object.getOwnPropertyDescriptor($8.prototype,`gridLayoutEnabled`),$8.prototype),c5($8.prototype,`useGridLayout`,[E],Object.getOwnPropertyDescriptor($8.prototype,`useGridLayout`),$8.prototype),c5($8.prototype,`worksheetFilters`,[E],Object.getOwnPropertyDescriptor($8.prototype,`worksheetFilters`),$8.prototype),c5($8.prototype,`sortParameter`,[E],Object.getOwnPropertyDescriptor($8.prototype,`sortParameter`),$8.prototype),c5($8.prototype,`worksheetLimit`,[E],Object.getOwnPropertyDescriptor($8.prototype,`worksheetLimit`),$8.prototype),c5($8.prototype,`recentWorksheetIds`,[E],Object.getOwnPropertyDescriptor($8.prototype,`recentWorksheetIds`),$8.prototype),c5($8.prototype,`showProgressTag`,[E],Object.getOwnPropertyDescriptor($8.prototype,`showProgressTag`),$8.prototype),c5($8.prototype,`filteredTagCategories`,[E],Object.getOwnPropertyDescriptor($8.prototype,`filteredTagCategories`),$8.prototype),c5($8.prototype,`hasSelectedFilterTags`,[E],Object.getOwnPropertyDescriptor($8.prototype,`hasSelectedFilterTags`),$8.prototype),c5($8.prototype,`activeView`,[E],Object.getOwnPropertyDescriptor($8.prototype,`activeView`),$8.prototype),c5($8.prototype,`filteredWorksheetTagIds`,[E],Object.getOwnPropertyDescriptor($8.prototype,`filteredWorksheetTagIds`),$8.prototype),c5($8.prototype,`filteredWorksheetProgressTags`,[E],Object.getOwnPropertyDescriptor($8.prototype,`filteredWorksheetProgressTags`),$8.prototype),c5($8.prototype,`queryStringsWithFilters`,[E],Object.getOwnPropertyDescriptor($8.prototype,`queryStringsWithFilters`),$8.prototype),$8))||Q8),f5,p5=pf(M(j(f5=class extends V.Component{render(){return(0,K.jsx)(d5,{useGridLayout:!0,showFilters:!0,...this.props})}})||f5)),m5,dze=N.div` 15242`,fze=M(j(m5=class extends V.Component{render(){return(0,K.jsx)(dze,{children:(0,K.jsx)(f,{})})}})||m5);D();var h5,g5;function pze(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var mze=N.div` 15243 .description { 15244 font-size: 14px; 15245 line-height: 14px; 15246 p { 15247 margin: 3px 0; 15248 } 15249 } 15250`,_5=N.div` 15251 ${(0,X.flexCenterColumn)()} 15252 width: 60px; 15253 height: 60px; 15254 background-size: cover; 15255 border-radius: 50%; 15256 border: 1px solid gainsboro; 15257 background-image: ${e=>e.backgroundImage}; 15258 .seedlang-icon { 15259 width: 50px; 15260 } 15261`,hze=N.div` 15262 flex: 1; 15263 padding: 0 10px; 15264 display: flex; 15265 flex-direction: column; 15266`,gze=N.div` 15267 margin-top: 5px; 15268 color: #313131; 15269 line-height: 16px; 15270 font-size: 12px; 15271`,_ze=j(h5=(g5=class extends V.Component{constructor(e){super(e),U.ForumUI.forumStore.clearShowData(),U.ForumUI.forumThreadStore.clearIndexData(),U.ForumUI.forumStore.getIndex()}componentDidMount(){U.AppUI.createEvent(`discuss - view page`)}validGroup(e){return!e.hasGroup||U.ForumUI.userIsLoaded&&U.ForumUI.user.inGroup(e.group.id)}validUser(e){return U.ForumUI.userIsLoaded&&(e.admin&&U.ForumUI.user.admin||e.moderator&&U.ForumUI.user.moderator||e.translator&&U.ForumUI.user.translator||!e.admin&&!e.moderator&&!e.translator)}get countForAllForums(){return U.ForumUI.forumStore.hasIndexData?U.ForumUI.forumStore.indexData.map(e=>e.forumThreadsCount+e.commentsCount).reduce((e,t)=>
15271e+t,0):0}render(){return(0,K.jsxs)(mze,{children:[(0,K.jsx)(LM,{title:`DISCUSS`,titleRoute:`forums.index`,pageInfo:[]}),U.ForumUI.forumStore.indexData.map(e=>this.validGroup(e)&&this.validUser(e)?(0,K.jsxs)(M0,{onClick:()=>U.ForumUI.routeStore.routeToNamed(`forums.show`,{page:1,forumId:e.id}),children:[e.hasImage&&(0,K.jsx)(_5,{backgroundImage:`url(${e.image.url})`}),!e.hasImage&&(0,K.jsx)(_5,{children:(0,K.jsx)(J.SeedlangIcon,{})}),(0,K.jsxs)(hze,{children:[(0,K.jsx)(R,{fontSize:`18px`,lineHeight:`18px`,children:e.title}),(0,W.isPresent)(e.description)&&(0,K.jsx)(gze,{children:(0,K.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e.description}})})]}),(0,K.jsx)(k0,{count:e.slug===`all-forums`?this.countForAllForums:e.forumThreadsCount+e.commentsCount,showCommentIcon:!0,width:`90px`})]},e.id):(0,K.jsx)(`span`,{},Math.random()))]})}},pze(g5.prototype,`countForAllForums`,[E],Object.getOwnPropertyDescriptor(g5.prototype,`countForAllForums`),g5.prototype),g5))||h5;D(),w();var v5,y5,b5;function vze(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function yze(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var x5=N.div` 15272 15273`,S5=N.div` 15274 display: flex; 15275 align-items: flex-start; 15276 justify-content: space-between; 15277`,C5=N.div` 15278 width: ${e=>e.width}; 15279 flex: 1; 15280`,bze=N.div` 15281 margin-top: 40px; 15282`,w5=N.div` 15283 margin-top: 5px; 15284 font-size: 11px; 15285 text-decoration: underline; 15286 text-align: center; 15287 padding: 5px; 15288`,xze=M(j(v5=(y5=class extends V.Component{constructor(e){super(e),vze(this,`createdEvent`,b5,this),this.currentForumThreadId=null,this.markedThreadAsChecked=!1,this.loadForumThread=()=>{U.ForumUI.loadForumThread(this.props.params.forumThreadId)},this.shouldMarkThreadAsChecked=()=>new URLSearchParams(this.props.location.search).get(`mark_thread_as_checked`)===`true`,this.clearMarkThreadAsCheckedParam=()=>{let e=new URLSearchParams(this.props.location.search);if(!e.has(`mark_thread_as_checked`))return;e.delete(`mark_thread_as_checked`);let t=e.toString(),n=`${this.props.location.pathname}${t?`?${t}`:``}${this.props.location.hash||``}`;window.history.replaceState(window.history.state,``,n)},this.markThreadAsCheckedIfNeeded=()=>{U.AppUI.siteIsDefault||this.markedThreadAsChecked||!this.shouldMarkThreadAsChecked()||!U.ForumUI.hasForumThread||!U.ForumUI.hasForum||!U.AppUI.user.admin&&!U.AppUI.user.moderator||!U.ForumUI.forum.highlightUnseen||U.ForumUI.forumThread.seenByAdmin||(this.markedThreadAsChecked=!0,U.ForumUI.onToggleSeenByAdmin(),this.clearMarkThreadAsCheckedParam())},this.currentForumThreadId=this.props.params.forumThreadId,U.ForumUI.onReset(),U.ForumUI.loadForum(this.props.params.forumId),this.loadForumThread(),this.disposer=te(()=>{!this.createdEvent&&U.ForumUI.hasForumThread&&U.ForumUI.hasForum&&(this.createdEvent=!0,U.AppUI.createEvent(`discuss - view thread`,{forum_title:U.ForumUI.forum.title,forum_thread_title:U.ForumUI.forumThread.titleOrTarget})),this.markThreadAsCheckedIfNeeded()})}componentDidUpdate(){this.currentForumThreadId!==this.props.params.forumThreadId&&(this.currentForumThreadId=this.props.params.forumThreadId,U.ForumUI.onReset(),U.ForumUI.forumThreadStore.clearShowData(),this.createdEvent=!1,this.markedThreadAsChecked=!1,U.ForumUI.loadForum(this.props.params.forumId),this.loadForumThread())}componentWillUnmount(){U.ForumUI.forumThreadStore.clearShowData(),this.disposer&&this.disposer()}render(){return U.ForumUI.hasForumThread?(0,K.jsxs)(x5,{children:[U.AppUI.siteIsDefault&&(0,K.jsx)(LM,{title:`DISCUSS`,titleRoute:`forums.index`,pageInfo:[{route:`forums.forum_threads.show`,breadcrumbs:[{route:`forums.show`,name:U.ForumUI.forumStore.showData.title,params:{page:1,forumId:this.props.params.forumId}}]}]}),!U.AppUI.siteIsDefault&&U.ForumUI.forumThread.worksheet&&(0,K.jsxs)(S5,{children:[(0,K.jsx)(C5,{children:(0,K.jsx)(du,{height:`50px`,margin:`0 0 10px 0`,breadcrumbs:[{name:`All Comments`,routeToName:`creator.worksheet.comments`},{name:U.ForumUI.forumThread.worksheet.name,routeToName:`worksheets.show`,routeToParams:{worksheetId:U.ForumUI.forumThread.worksheet.id,groupId:this.props.params.groupId}}]})}),U.ForumUI.user.anyAdmin&&(0,K.jsx)(F,{to:{name:`creator.worksheets.edit`,params:{worksheetId:U.ForumUI.forumThread.worksheet.id}},children:(0,K.jsx)(D4,{type:`button`,style:{height:`20px`,marginTop:`10px`},children:`Edit Worksheet`})})]}),!U.AppUI.siteIsDefault&&U.ForumUI.forumThread.exercise&&U.ForumUI.forumThread.exercise.worksheet&&(0,K.jsxs)(S5,{children:[(0,K.jsx)(C5,{children:(0,K.jsx)(du,{height:`50px`,margin:`0 0 10px 0`,breadcrumbs:[{name:`All Comments`,routeToName:`creator.worksheet.comments`},{name:U.ForumUI.forumThread.exercise.worksheet.name,routeToName:`worksheets.show`,routeToParams:{worksheetId:U.ForumUI.forumThread.exercise.worksheet.id,groupId:this.props.params.groupId}},{name:U.ForumUI.forumThread.exercise.name,routeToName:`worksheets.exercises.show`,routeToParams:{exerciseId:U.ForumUI.forumThread.exercise.id,worksheetId:U.ForumUI.forumThread.exercise.worksheet.id,groupId:this.props.params.groupId}}]})}),U.ForumUI.user.anyAdmin&&(0,K.jsx)(F,{to:{name:`creator.exercises.edit`,params:{exerciseId:U.ForumUI.forumThread.exercise.id,worksheetId:U.ForumUI.forumThread.exercise.worksheet.id}},children:(0,K.jsx)(D4,{type:`button`,style:{height:`20px`,marginTop:`10px`},children:`Edit Exercise`})})]}),(0,K.jsx)(QP,{hideUserProfile:!U.AppUI.siteIsDefault,groupId:this.props.params.groupId,inModal:this.props.inModal,post:U.ForumUI.forumThread,showForumThreadPost:!0,showCommentCount:!0,user:U.ForumUI.user,commentable:U.ForumUI.forumThread,commentableType:`ForumThread`,forumThreadI
15288d:U.ForumUI.forumThread.id,margin:`0`,languageId:U.ForumUI.forumThread.languageId||U.AppUI.site.languageId||U.AppUI.targetLanguageId,compactCommentLayout:this.props.inModal}),U.AppUI.user.anyAdmin&&_(U.ForumUI.forumThread.sentence)&&(0,K.jsx)(w5,{children:(0,K.jsx)(F,{to:{name:`builder.sentences.edit`,params:{sentenceId:U.ForumUI.forumThread.sentence.id}},target:`_blank`,rel:`noopener noreferrer`,children:`Admin Link`})}),U.AppUI.user.anyAdmin&&_(U.ForumUI.forumThread.word)&&(0,K.jsx)(w5,{children:(0,K.jsx)(F,{to:{name:`builder.words.edit`,params:{wordId:U.ForumUI.forumThread.word.id}},target:`_blank`,rel:`noopener noreferrer`,children:`Admin Link`})})]}):(0,K.jsx)(x5,{children:(0,K.jsx)(bze,{children:(0,K.jsx)(P,{})})})}},b5=yze(y5.prototype,`createdEvent`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y5))||v5),T5,Sze=N.div` 15289 display: flex; 15290`,Cze=N.div` 15291 width: 300px; 15292 margin-right: 10px; 15293`,wze=N.div` 15294 flex: 1; 15295`,E5=N.div` 15296 cursor: pointer; 15297 height: 68px; 15298 display: flex; 15299 background: #FFF; 15300 position: relative; 15301 margin: 0; 15302 border-bottom: 1px solid #e8e8e8; 15303 font-size: 14px; 15304 padding: 0 10px; 15305 display: flex; 15306 align-items: center; 15307 font-weight: bold; 15308 justify-content: center; 15309`,D5=j(T5=class extends V.Component{get routeName(){return U.AppUI.routeStore.routeName}render(){return(0,K.jsxs)(Sze,{children:[(0,K.jsxs)(Cze,{children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(iw,{children:`Feed Filters`})}),(0,K.jsx)(F,{to:`feeds.index`,children:(0,K.jsx)(E5,{selected:this.routeName===`feeds.index`,children:`All Feed Entries`})}),(0,K.jsx)(F,{to:`my.feed`,children:(0,K.jsx)(E5,{selected:this.routeName===`my.feed`,children:`My Feed Entries`})})]}),(0,K.jsxs)(wze,{children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(iw,{children:`Feed Entries`})}),(0,K.jsx)(tw,{show:this.routeName,user:this.routeName===`my.feed`?U.AppUI.user:null})]})]})}})||T5,O5,Tze=N.div` 15310 15311`,Eze=N.div` 15312 margin: 10px 0 20px 0; 15313 a { 15314 font-size: 14px; 15315 font-weight: bold; 15316 } 15317`,Dze=pf(M(j(O5=class extends V.Component{constructor(e){super(e),U.AppUI.feedEntryStore.getShow({ids:{feedEntryId:this.props.params.feedEntryId}})}render(){return(0,K.jsxs)(Tze,{children:[(0,K.jsx)(Eze,{children:(0,K.jsx)(F,{to:`profile`,style:{marginBottom:`10px`},children:`View All Feed Entries`})}),(0,W.isPresent)(U.AppUI.feedEntryStore.showData)&&(0,K.jsx)(WC,{margin:`10px 0 0 0`,user:U.AppUI.user,feedEntry:U.AppUI.feedEntryStore.showData,width:U.AppUI.layout.feedVideoWidth,feedMinimizedSupplementWidth:U.AppUI.layout.feedMinimizedSupplementWidth})]})}})||O5)),k5,Oze=N.div` 15318 padding: 10px; 15319`,kze=j(k5=class extends V.Component{render(){return(0,K.jsx)(Oze,{})}})||k5,A5,Aze=N.div` 15320 15321`,jze=M(j(A5=class extends V.Component{render(){return(0,K.jsxs)(Aze,{children:[(0,K.jsx)(`h3`,{children:`Legal Information`}),(0,K.jsx)(`h4`,{children:`Seedlang, Inc.`}),(0,K.jsxs)(`p`,{children:[`2093 Philadelphia Pike #9846`,(0,K.jsx)(`br`,{}),`Claymont, DE 19703`,(0,K.jsx)(`br`,{}),`United States`,(0,K.jsx)(`br`,{})]}),(0,K.jsx)(`h4`,{children:`Seedlang GmbH`}),(0,K.jsxs)(`p`,{children:[`FlorastraÃe 48`,(0,K.jsx)(`br`,{}),`13187 Berlin`,(0,K.jsx)(`br`,{}),`Germany`,(0,K.jsx)(`br`,{})]}),(0,K.jsx)(`h4`,{children:`Managing Director`}),(0,K.jsx)(`p`,{children:`Jeremy Smith`}),(0,K.jsx)(`h4`,{children:`Contact`}),`Email: `,(0,K.jsx)(`a`,{className:`underline`,href:`mailto:[email protected]`,children:`[email protected]`}),(0,K.jsx)(`br`,{}),`You can also contact us via our `,(0,K.jsx)(F,{className:`underline`,to:`contact`,children:`contact form`}),`.`,(0,K.jsx)(`br`,{})]})}})||A5),j5,M5,Mze=N.div` 15322 width: 100%; 15323 padding: ${e=>e.embedded?0:`10px 0 0 0`}; 15324 li { 15325 list-style-type: circle; 15326 margin: 0 0 0 50px; 15327 } 15328`,Nze=N.div` 15329 width: 100%; 15330 margin-top: ${e=>e.embedded?0:`10px`}; 15331 background: white; 15332 border: ${e=>e.embedded?0:`1px solid #dedede`}; 15333 border-radius: ${e=>e.embedded?0:`12px`}; 15334 padding: ${e=>e.embedded?0:`24px`}; 15335`,N5=j(j5=(M5=class extends V.Component{constructor(e){super(e),U.AppUI.pageStore.getShow({ids:{pageId:`terms`}})}componentWillUnmount(){U.AppUI.pageStore.clearShowData()}render(){return(0,K.jsxs)(Mze,{embedded:this.context,children:[(0,K.jsx)(LM,{title:`Terms of Service`,titleRoute:`terms`,margin:`0`}),U.AppUI.pageStore.hasShowData&&(0,K.jsx)(Nze,{embedded:this.context,children:(0,K.jsx)($i,{markdown:U.AppUI.pageStore.showData.content})})]})}},M5.contextType=vM,M5))||j5,P5,Pze=N.div` 15336 display: flex; 15337 flex-direction: column; 15338 width: 100%; 15339 h2 { 15340 margin: 0; 15341 text-align: center; 15342 line-height: 30px; 15343 } 15344`,Fze=N.div` 15345 width: 100%; 15346`,Ize=N.div` 15347 width: 100%; 15348 margin-top: 10px; 15349`,Lze=N.div` 15350 display: grid; 15351 width: 100%; 15352 grid-template-columns: repeat(auto-fit, minmax(${e=>e.minColumnWidth}, 1fr)); 15353 gap: 20px; 15354`,Rze=N.div` 15355 width: 100%; 15356 background: white; 15357 display: flex; 15358 flex-direction: column; 15359 padding: 18px; 15360 align-items: center; 15361 border-radius: 5px; 15362 min-height: 100%; 15363`,zze=N.div` 15364 width: 150px; 15365 height: 150px; 15366 background-size: cover; 15367 border-radius: 50%; 15368 margin-top: 10px; 15369 .user-icon { 15370 background: #333; 15371 width: 150px; 15372 height: 150px; 15373 border-radius: 50%; 15374 align-items: center; 15375 justify-content: center; 15376 display: flex; 15377 svg g { 15378 fill: #FFF; 15379 } 15380 } 15381 svg { 15382 fill: #FFF; 15383 width: 80px; 15384 height: 80px; 15385 } 15386`,Bze=N.div` 15387 flex: 1; 15388 padding: 10px; 15389`,Vze=N.div` 15390 font-weight: bold; 15391 text-align: center; 15392`,Hze=N.div` 15393 text-align: center; 15394 font-style: italic; 15395 height: 30px; 15396`,Uze=N.div` 15397 font-size: 16px; 15398 line-height: 22px; 15399 margin-top: 10px; 15400 a { 15401 text-decoration: underline; 15402 } 15403 p { 15404 margin: 0; 15405 padding: 0; 15406 } 15407`,Wze=M(j(P5=class extends V.Component{constructor(e){super(e),H.TeamMemberStore.getIndex({queryStrings:{active:`true`}})}render(){return(0,K.jsxs)(Pze,{children:[(0,K.jsx)(Fze,{children:(0,K.jsx)(LM,{title:`Our Team`,titleRoute:`team`,margin:`0`})}),(0,K.jsx)(Ize,{children:(0,K.jsxs)(Lze,{minColumnWidth:U.AppUI.layout.isMobile?`260px`:`320px`,children:[!H.TeamMemberStore.hasIndexData&&(0,K.jsx)(P,{}),H.TeamMemberStore.indexData.map(e=>(0,K.jsxs)(Rze,{children:[(0,K.jsx)(zze,{style:{backgroundImage:`url(${e.imageUrl})`}}),(0,K.jsxs)(Bze,{children:[(0,K.jsx)(Vze,{children:e.name}),(0,K.jsx)(Hze,{children:e.title}),(0,K.jsx)(Uze,{dangerouslySetInnerHTML:{__html:e.bio}})]})]},e.id))]})})]})}})||P5);D();var F5,I5;function Gze(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Kze=N.div` 15408 padding: 20px; 15409`,qze=N.div` 15410 background: #FFF; 15411 cursor: pointer; 15412 margin-bottom: 10px; 15413 display: flex; 15414 align-items: center; 15415 padding: 30px; 15416 box-shadow: 0 2px 8px 0 rgba(0,0,0,.08); 15417 i { 15418 font-size: 30px; 15419 } 15420`,Jze=N.div` 15421 font-weight: bold; 15422 font-size: 18px; 15423`,Yze=N.div` 15424 display: flex; 15425 flex-direction: column; 15426 flex: 1; 15427`,Xze=M(j(F5=(I5=class extends V.Component{componentDidMount(){H.JobStore.getIndex()}componentWillUnmount(){H.JobStore.clearIndexData()}get filteredJobs(){return H.JobStore.indexData.filter(e=>e.siteId===Ae.get(`site_id`)&&e.published)}render(){return(0,K.jsx)(Kze,{children:this.filteredJobs.map(e=>(0,K.jsx)(F,{to:{name:`jobs.show`,params:{jobId:e.id}},children:(0,K.jsxs)(qze,{children:[(0,K.jsx)(Yze,{children:(0,K.jsx)(Jze,{children:e.title})}),(0,K.jsx)(`i`,{className:`fa fa-angle-right`})]})}))})}},Gze(I5.prototype,`filteredJobs`,[E],Object.getOwnPropertyDescriptor(I5.prototype,`filteredJobs`),I5.prototype),I5))||F5);D();var L5,R5;function Zze(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Qze=N.div` 15428 padding: 40px; 15429 background: white; 15430 border-radius: 10px; 15431 position: relative; 15432 h2, h3, h1 { 15433 color: #333; 15434 line-height: 34px; 15435 margin-bottom: 20px!important; 15436 } 15437 ul { 15438 margin: 0 0 40px 0; 15439 li { 15440 list-style-type: disc; 15441 margin: 0 0 5px 20px; 15442 } 15443 } 15444 p { 15445 margin: 0 0 40px 0; 15446 } 15447`,$ze=pf(M(j(L5=(R5=class extends V.Component{constructor(...e){super(...e),this.getJob=()=>
15447{H.JobStore.getShow({ids:{jobId:this.props.routeParams.jobId}})}}componentDidMount(){this.getJob()}componentDidUpdate(e){this.props.routeParams.jobId!==e.routeParams.jobId&&this.getJob()}componentWillUnmount(){H.JobStore.clearShowData()}get job(){return H.JobStore.showData}render(){return(0,K.jsxs)(Qze,{children:[(0,K.jsx)(`center`,{children:(0,K.jsx)(`h1`,{children:this.job.title})}),this.job.bodyMd&&(0,K.jsx)($i,{markdown:String(this.job.bodyMd)})]})}},Zze(R5.prototype,`job`,[E],Object.getOwnPropertyDescriptor(R5.prototype,`job`),R5.prototype),R5))||L5));D();var z5,B5,V5,H5;function U5(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function W5(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var G5=pf(M(j(z5=(B5=class extends V.Component{constructor(...e){super(...e),U5(this,`isLoading`,V5,this),U5(this,`loadFailed`,H5,this),this.getPodcastEpisode=()=>{this.isLoading=!0,this.loadFailed=!1,U.AppUI.podcastEpisodeStore.clearShowData(),U.AppUI.podcastEpisodeStore.getShow({ids:{podcastEpisodeId:this.props.routeParams.podcastEpisodeId}},null,{successCallback:()=>this.isLoading=!1,onRequestError:this.handleRequestError})},this.handleRequestError=e=>{if(this.isLoading=!1,e?.status===404){U.AppUI.routeToHome();return}this.loadFailed=!0}}componentDidMount(){this.getPodcastEpisode()}componentDidUpdate(e){this.props.routeParams.podcastEpisodeId!==e.routeParams.podcastEpisodeId&&this.getPodcastEpisode()}componentWillUnmount(){U.AppUI.podcastEpisodeStore.clearShowData()}renderValue(e){return e||`â`}render(){let e=U.AppUI.podcastEpisodeStore,t=e.showData;return this.isLoading||e.hasOutstandingRequests?(0,K.jsx)(yn,{py:`xl`,children:(0,K.jsx)(ln,{color:U.AppUI.site.accentColor})}):this.loadFailed?(0,K.jsx)(cn,{p:`xl`,radius:`md`,children:(0,K.jsx)(fn,{children:`Sorry, we couldn't load this podcast episode.`})}):t.accessStatus?.hasAccess?(0,K.jsxs)(cn,{p:{base:`md`,sm:`xl`},radius:`md`,children:[(0,K.jsx)(SV,{children:t.title}),(0,K.jsxs)(xn,{gap:`xl`,children:[(0,K.jsxs)(xn,{gap:`lg`,children:[(0,K.jsxs)(un,{align:`center`,gap:`lg`,wrap:`nowrap`,children:[t.imageUrl&&(0,K.jsx)(bn,{alt:`${t.title||`Podcast`} cover`,fit:`cover`,h:64,radius:`lg`,src:t.imageUrl,style:{borderRadius:`12px`},w:64}),(0,K.jsxs)(xn,{gap:2,children:[t.podcast?.title&&(0,K.jsx)(fn,{c:`dimmed`,fw:600,size:`xs`,children:t.podcast.title}),(0,K.jsx)(Cn,{order:1,size:`h2`,children:this.renderValue(t.title)})]})]}),t.subtitle&&(0,K.jsx)(fn,{c:`dimmed`,size:`md`,children:t.subtitle})]}),t.mp3?.url&&(0,K.jsx)(L,{w:`100%`,children:(0,K.jsx)(Yl,{podcastEpisode:t})}),t.mailerliteWebViewUrl&&(0,K.jsx)(L,{component:`iframe`,h:{base:600,md:800},loading:`lazy`,src:t.mailerliteWebViewUrl,style:{border:0,borderRadius:`12px`},title:`${t.title||`Podcast episode`} newsletter`,w:`100%`})]})]}):(0,K.jsx)(cn,{p:`xl`,radius:`md`,children:(0,K.jsx)(ql,{margin:`0`,reason:t.accessStatus?.reason})})}},V5=W5(B5.prototype,`isLoading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),H5=W5(B5.prototype,`loadFailed`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),B5))||z5)),K5,eBe=`9332f9ec-35ac-453d-aab3-fec5d814e300`,tBe=N.div``,nBe=N.div` 15448 margin: 0; 15449`,rBe=N.article` 15450 background: white; 15451 border: 1px solid #dedede; 15452 border-radius: 10px; 15453 padding: 24px; 15454 margin: 0 0 24px 0; 15455 position: relative; 15456`,iBe=N.div` 15457 position: absolute; 15458 top: 10px; 15459 right: 10px; 15460 color: ${q.Theme.darkGray}; 15461 background: ${q.Theme.lightGray}; 15462 padding: 2px 8px; 15463 font-size: 12px; 15464 font-weight: 600; 15465 border-radius: 5px; 15466`,aBe=N.div` 15467 margin: 0 0 18px 0; 15468`,oBe=N.div` 15469 display: flex; 15470 flex-wrap: wrap; 15471 gap: 10px; 15472 align-items: center; 15473 margin: 8px 0 0 0; 15474`,sBe=N.div` 15475 margin: 24px 0 0 0; 15476 padding: 20px 0 0 0; 15477 border-top: 1px solid #dedede; 15478`,cBe=N.button` 15479 background: none; 15480 border: 0; 15481 color: #333; 15482 cursor: pointer; 15483 display: block; 15484 font-size: 15px; 15485 font-weight: 600; 15486 line-height: 20px; 15487 margin: ${e=>e.expanded?`0 0 18px 0`:`0`}; 15488 padding: 0; 15489 text-decoration: underline; 15490`,lBe=N.div` 15491 margin: 30px 0; 15492`,q5=M(j(K5=class extends V.Component{constructor(e){super(e),this.afterGetIndex=e=>{U.AppUI.siteReleaseStore.setIndexData(e)},this.toggleComments=e=>{this.setState(t=>
15492({expandedCommentThreadIds:{...t.expandedCommentThreadIds,[e]:!t.expandedCommentThreadIds[e]}}))},this.state={expandedCommentThreadIds:{}},U.AppUI.loadUser(),U.AppUI.siteReleaseStore.clearFilter(),U.AppUI.siteReleaseStore.setPage(1),U.AppUI.siteReleaseStore.getIndex({filters:{published:`true`},limit:10,queryStrings:{hide_hidden_forum_threads:!0},sort:`-created_at`},this.afterGetIndex)}render(){return(0,K.jsxs)(tBe,{children:[(0,K.jsx)(LM,{title:`Blog`,contentGap:6,titleRoute:`blog`}),U.AppUI.siteReleaseStore.hasOutstandingRequests&&U.AppUI.siteReleaseStore.indexData.length===0&&(0,K.jsx)(lBe,{children:(0,K.jsx)(P,{})}),(0,K.jsx)(nBe,{children:U.AppUI.siteReleaseStore.indexData.map(e=>{let t=!!this.state.expandedCommentThreadIds[e.forumThreadId],n=e.body||e.message,r=e.commentsCount||0,i=`${r} ${r===1?`Comment`:`Comments`}`;return(0,K.jsxs)(rBe,{children:[!e.published&&(0,K.jsx)(iBe,{children:`Unpublished`}),(0,K.jsxs)(aBe,{children:[(0,K.jsx)(R,{heading:3,children:e.title}),(0,K.jsx)(oBe,{children:(0,K.jsx)(R,{color:`#7a7a7a`,fontSize:`14px`,lineHeight:`18px`,children:e.createdAt?.formattedDateWithFullYear||e.createdAt?.formattedDate})})]}),n&&(0,K.jsx)($i,{markdown:n}),(0,K.jsxs)(sBe,{children:[e.forumThreadId&&r===0&&(0,K.jsx)(R,{color:`#7a7a7a`,children:`No comments yet.`}),r>0&&(0,K.jsx)(cBe,{expanded:t,onClick:()=>this.toggleComments(e.forumThreadId),children:t?`Hide Comments`:`Show ${i}`}),t&&(0,K.jsx)(QP,{hideUserProfile:!U.AppUI.siteIsDefault,showCommentCount:!1,showCommentCreate:!1,user:U.AppUI.user,commentableType:`ForumThread`,commentableId:e.forumThreadId,forumThreadId:e.forumThreadId,commentMargin:`0`,margin:`0`,padding:`0`,indentation:20,compactCommentLayout:!0,hideCommentControls:!0}),e.forumThreadId&&(r===0||t)&&(0,K.jsx)(I,{to:{name:`forums.forum_threads.show`,params:{forumId:eBe,forumThreadId:e.forumThreadId}},margin:`14px 0 0 0`,height:`40px`,fontSize:`15px`,children:`Leave Comment`})]})]},e.id)})}),(0,K.jsx)(In,{store:U.AppUI.siteReleaseStore,queryStrings:{hide_hidden_forum_threads:!0}})]})}})||K5),J5,uBe=N.div` 15493 width: 100%; 15494`,dBe=N.div` 15495 width: 100%; 15496 display: flex; 15497 flex-direction: column; 15498 align-items: center; 15499 padding: ${e=>e.padding}; 15500`,fBe=pf(M(j(J5=class extends V.Component{constructor(e){super(e),this.loadGroup=()=>{U.AppUI.groupStore.getShow({ids:{groupId:this.props.params.groupId}}),U.AppUI.userGroupStore.getIndex({ids:{groupId:this.props.params.groupId}})},this.loadGroup()}render(){return(0,K.jsxs)(uBe,{children:[(0,K.jsx)(LM,{title:U.AppUI.groupStore.showData?.name?.toUpperCase(),titleRoute:`classroom.show`,titleParams:{groupId:this.props.params.groupId},pageInfo:[{route:`classroom.progress`,params:{groupId:this.props.params.groupId},current:`Progress`}],icons:[{icon:(0,K.jsx)(J.GraphOutlineIcon,{}),tooltipText:`View Progress`,iconRoute:`classroom.progress`,iconParams:{groupId:this.props.params.groupId},breadcrumb:`Progress`}]}),(0,K.jsx)(dBe,{children:(0,K.jsx)(f,{})})]})}})||J5));D();var Y5,X5;function pBe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var mBe=N.div` 15501 ${(0,X.flexCenterColumn)()} 15502`,hBe=N.div` 15503 display: flex; 15504 padding: 10px 0; 15505`,gBe=N.div` 15506 background: ${e=>e.selected?`rgba(255, 255, 0, 0.26)`:`#FFF`}; 15507 height: 45px; 15508 display: flex; 15509 align-items: center; 15510 padding: 0 5px; 15511 display: flex; 15512 margin: 0; 15513 border-bottom: 1px solid #e8e8e8; 15514 font-size: 14px; 15515 width: 100%; 15516`,_Be=N.div` 15517 width: 30px; 15518`,vBe=N.div` 15519 width: 30px; 15520 height: 30px; 15521 .user-profile-image { 15522 width: 100%; 15523 height: 100%; 15524 } 15525`,yBe=N.div` 15526 flex: 1; 15527 white-space: nowrap; 15528 overflow: hidden; 15529 padding: 0 5px 0 10px; 15530 cursor: pointer; 15531`,bBe=N.div` 15532 width: 45px; 15533 padding-left: 5px; 15534`,Z5=N.div` 15535 color: ${e=>e.selected?`#FFF`:q.Theme.green}; 15536 background: ${e=>e.selected?q.Theme.green:`#FFF`}; 15537 border: 1px solid ${q.Theme.green}; 15538 font-size: 11px; 15539 line-height: 15px; 15540 padding: 2px 10px; 15541 border-radius: 25px; 15542 cursor: pointer; 15543 margin: 0 2px; 15544`,xBe=N.div` 15545 display: flex; 15546 width: 100%; 15547`,SBe=N.div` 15548 ${(0,X.flexCenterColumn)()} 15549 height: 490px; 15550`,CBe=N.div` 15551 width: 100%; 15552`,wBe=N.div` 15553 font-size: 14px; 15554 text-align: center; 15555 padding: 10px; 15556 border-top: 1px solid #e8e8e8; 15557 border-bottom: 1px solid #e8e8e8; 15558`,TBe=N.div` 15559 padding: 0 20px; 15560 font-size: 14px; 15561 line-height: 17px; 15562`,EBe=N.div` 15563 font-size: 12px; 15564 line-height: 15px; 15565 font-style: italic; 15566 margin-top: 10px; 15567 color: #979797; 15568 text-align: left; 15569 width: 100%; 15570`,DBe=j(Y5=(X5=class extends V.Component{get showEmptyMessage(){return U.AppUI.leaderboardStore.page===1&&!U.AppUI.leaderboardStore.hasIndexData&&!U.AppUI.leaderboardStore.hasOutstandingRequests}render(){return(0,K.jsxs)(mBe,{children:[!this.props.hideNavigation&&(0,K.jsxs)(hBe,{children:[(0,K.jsx)(Z5,{selected:this.props.sortColumn===this.props.lastWeekColumn,onClick:()=>this.props.setSortColumn(this.props.lastWeekColumn),children:`Last Week`}),(0,K.jsx)(Z5,{selected:this.props.sortColumn===this.props.lastMonthColumn,onClick:()=>this.props.setSortColumn(this.props.lastMonthColumn),children:`Last Month`}),(0,K.jsx)(Z5,{selected:this.props.sortColumn===this.props.totalColumn,onClick:()=>this.props.setSortColumn(this.props.totalColumn),children:`All Time`})]}),this.props.showSpinner&&(0,K.jsx)(SBe,{children:(0,K.jsx)(P,{className:`blue`})}),this.showEmptyMessage&&(0,K.jsx)(TBe,{children:this.props.emptyMessage}),!this.props.showSpinner&&U.AppUI.leaderboardStore.hasIndexData&&(0,K.jsxs)(CBe,{children:[!this.props.hideYourRanking&&(0,K.jsxs)(wBe,{children:[`Your Ranking: `,(0,K.jsx)(`b`,{children:this.props.ranking})]}),U.AppUI.leaderboardStore.indexData.map((e,t)=>(0,K.jsxs)(gBe,{selected:e.id===U.AppUI.user.id,children:[(0,K.jsx)(_Be,{children:(U.AppUI.leaderboardStore.page-1)*10+t+1}),(0,K.jsx)(vBe,{children:(0,K.jsx)(Mg,{clickToProfile:!0,showLanguageIcon:this.props.showLanguageIcon,user:e,width:30})}),(0,K.jsx)(yBe,{onClick:()=>U.AppUI.routeStore.routeToNamed(`profiles.show`,{userId:e.id}),children:e.name}),(0,K.jsx)(bBe,{children:this.props.points(e)})]},`${this.props.sortColumn}-${e.id}`))]}),!this.showSpinner&&!this.showEmptyMessage&&(0,K.jsx)(xBe,{children:(0,K.jsx)(In,{compact:!0,margin:`10px 0 5px 5px`,store:U.AppUI.leaderboardStore,queryStrings:{group_id:this.props.groupId},maxPage:10})}),this.props.includeUpdatedAt&&(0,K.jsxs)(EBe,{children:[`Last updated on `,U.AppUI.site.leaderboardUpdatedAt.formatted3DigitMonth,`. `,(0,K.jsx)(`b`,{children:`Please note that we are working on a big update to our leaderboards, and they will be disabled for a few more weeks.`})]})]})}},pBe(X5.prototype,`showEmptyMessage`,[E],Object.getOwnPropertyDescriptor(X5.prototype,`showEmptyMessage`),X5.prototype),X5))||Y5,OBe=(0,Y.LeaderboardWrapper)(D
15570Be);D();var Q5,$5;function kBe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ABe=N.div` 15571 width: 100%; 15572`,jBe=N.div` 15573 display: flex; 15574 align-items: center; 15575 flex-direction: column; 15576`,e7=M(j(Q5=($5=class extends V.Component{get highlightedTreeNode(){return(0,W.isPresent)(U.TreeUI.storiesTree)&&U.AppUI.groupStore.hasShowData&&U.AppUI.groupStore.showData.highlightedNodeId?U.TreeUI.storiesTreeNodes.find(e=>e.id===U.AppUI.groupStore.showData.highlightedNodeId):null}render(){return(0,K.jsxs)(ABe,{children:[this.highlightedTreeNode&&(0,K.jsx)(OJ,{title:`Highlighted`,children:(0,K.jsxs)(jBe,{children:[this.highlightedTreeNode&&(0,K.jsx)(k$,{width:`240px`,treeNode:this.highlightedTreeNode,imageMarginBottom:`5px`}),this.highlightedTreeNode&&(0,K.jsx)(R,{bold:!0,center:!0,children:this.highlightedTreeNode.name})]})}),(0,K.jsx)(OJ,{title:`Leaderboard`,children:U.AppUI.groupStore.hasShowData&&(0,K.jsx)(OBe,{emptyMessage:`No one in this classroom has earned XP yet.`,lastWeekColumn:`xp_last_week`,lastMonthColumn:`xp_last_month`,totalColumn:`xp`,groupId:U.AppUI.groupStore.showData.id,rankingFields:{xp:`xpRankingTotal`,xp_last_week:`xpRankingLastWeek`,xp_last_month:`xpRankingLastMonth`},hideYourRanking:!0})})]})}},kBe($5.prototype,`highlightedTreeNode`,[E],Object.getOwnPropertyDescriptor($5.prototype,`highlightedTreeNode`),$5.prototype),$5))||Q5),t7,MBe=N.div` 15577 width: 100%; 15578 background: #FFF; 15579 padding: 20px; 15580 border-radius: 10px; 15581`,NBe=M(j(t7=class extends V.Component{render(){return(0,K.jsxs)(YX,{children:[U.AppUI.groupStore.hasShowData&&(0,K.jsx)(MBe,{children:(0,K.jsx)(f,{})}),(0,K.jsx)(e7,{})]})}})||t7),n7,PBe=N.div` 15582`,FBe=N.div` 15583`,IBe=M(j(n7=class extends V.Component{constructor(e){super(e),U.AppUI.createEvent(`grammar - view page`)}render(){return(0,K.jsxs)(PBe,{children:[(0,K.jsx)(LM,{title:`${U.AppUI.targetLanguageName} GRAMMAR`,homeRoute:`grammar`,titleRoute:`grammar`,titleParams:{page:U.AppUI.wordStore.page||1},pageInfo:[{route:`grammar.index`,current:`Index`}],icons:[{icon:(0,K.jsx)(J.FaqIcon,{}),tooltipText:`Help Center`,iconRoute:`faq_categories.show`,iconParams:{faqCategoryId:`bca6b92e-f8fa-4b7e-8b0c-0364f4779f25`}},{icon:(0,K.jsx)(J.ListWithBulletIcon,{}),tooltipText:`View index`,iconRoute:`grammar.index`,breadcrumb:`Index`}]}),(0,K.jsx)(FBe,{children:(0,K.jsx)(f,{})})]})}})||n7),r7,i7,LBe=N.div` 15584 padding: ${e=>e.padding}; 15585 overflow: hidden; 15586`,RBe=j(r7=(i7=class extends V.Component{render(){return(0,K.jsxs)(LBe,{padding:this.props.padding,children:[!this.props.hideTitle&&(0,K.jsxs)(`div`,{children:[(0,K.jsx)(R,{heading:`3`,margin:`10px 0 0 0`,children:this.props.concept?.displayNameLine1}),this.props.concept?.displayNameLine2&&(0,K.jsx)(R,{italic:!0,margin:`0 0 20px 0`,children:this.props.concept?.displayNameLine2})]}),this.props.concept&&(0,K.jsx)(QP,{showXp:!0,showCommentCreate:!0,showCommentCount:!0,indentation:20,user:U.ForumUI.user,conceptId:this.props.concept?.id,namespace:this.props.concept?.id,blockTextExpansion:this.props.blockTextExpansion,onChange:this.props.afterEmbeddedCommentCreate,commentableType:`ForumThread`,commentableId:this.props.concept?.forumThreadId,forumThreadId:this.props.concept?.forumThreadId,commentMargin:`0`,margin:this.props.commentMargin,padding:`0`,languageId:this.props.concept?.languageId})]})}},i7.defaultProps={padding:`20px`},i7))||r7,a7,zBe=N.div` 15587 width: 100%; 15588 display: flex; 15589 flex-direction: column; 15590 background: #FFF; 15591 border-radius: 5px; 15592`,BBe=N.div` 15593 flex: 1; 15594 padding-top: 20px; 15595`,VBe=N.div` 15596 display: flex; 15597 padding-left: 20px; 15598`,HBe=N.div` 15599 font-size: 11px; 15600 text-decoration: underline; 15601 text-align: center; 15602 padding: 5px; 15603`,UBe=N.div` 15604 padding: 0 10px 10px 10px; 15605`,WBe=N.div` 15606 background: #FFF; 15607 border-radius: 5px; 15608 overflow: hidden; 15609 border: 2px solid #CCC; 15610 margin-bottom: 10px; 15611 margin: 20px 20px 0 20px; 15612`,GBe=N.div` 15613 ${(0,X.flexCenter)()} 15614 background: #CCC; 15615 font-size: 11px; 15616 font-weight: bold; 15617 padding: 0 15px; 15618`,KBe=N.div` 15619 ${(0,X.flexCenter)()} 15620 font-size: 16px; 15621 font-weight: ${e=>e.bold?`bold`:null}; 15622 padding: 5px 3px; 15623`,qBe=j(a7=class extends V.Component{render(){return(0,K.jsxs)(zBe,{children:[this.props.showSpinner&&(0,K.jsx)(P,{}),!this.props.showSpinner&&this.props.treeNode&&(0,K.jsxs)(VBe,{id:`page-top`,children:[(0,K.jsxs)(BBe,{children:[(0,K.jsx)(R,{heading:`2`,children:this.props.treeNode?.name}),!this.props.showSpinner&&(0,W.isPresent)(this.props.treeNodeGrammarConcept?.concept?.displayNameLine2)&&(0,K.jsx)(R,{italic:!0,heading:`3`,children:this.props.treeNodeGrammarConcept?.concept?.displayNameLine2})]}),this.props.treeNode.level&&(0,K.jsxs)(WBe,{children:[(0,K.jsx)(GBe,{children:`Level`}),(0,K.jsx)(KBe,{bold:!0,children:this.props.treeNode.level.abbreviation})]})]}),!this.props.showSpinner&&(0,W.isPresent)(this.props.treeNodeGrammarConcept)&&(0,K.jsxs)(oJ,{tabs:this.props.tabs,background:null,contentPadding:`0`,margin:`0 20px 20px 20px`,children:[(0,K.jsxs)(UBe,{children:[this.props.treeNodeGrammarConcept?.concept?.y
15623outubeUrl&&(0,K.jsx)(Na,{width:`100%`,url:this.props.treeNodeGrammarConcept?.concept?.youtubeUrl}),this.props.treeNodeGrammarConcept?.concept&&(0,K.jsx)($i,{markdown:this.props.treeNodeGrammarConcept.concept?.longDescriptionMd,htmlText:this.props.treeNodeGrammarConcept.concept?.longDescription})]}),(0,K.jsx)(CJ,{fromGrammarSection:!0,treeNodeId:this.props.treeNode.id,userDecks:this.props.userDecks,decks:this.props.treeNode&&this.props.treeNode.treeNodeDecks}),(0,K.jsx)(WR,{conceptId:this.props.treeNodeGrammarConcept.concept.id}),(0,K.jsx)(HQ,{...this.props,grammarSection:!0,showWordListSpinner:this.props.showVocabSpinner,wordStore:this.props.wordStore,totalCount:this.props.treeNodeGrammarConcept.concept.rootWordsCount,ids:{conceptId:this.props.treeNodeGrammarConcept.concept.id}}),(0,K.jsx)(RBe,{expanded:!0,loadOnMount:!0,hideTitle:!0,padding:`0`,concept:this.props.treeNodeGrammarConcept?.concept})]}),U.AppUI.user.admin&&this.props.treeNode&&this.props.treeNode.treeId&&this.props.treeNode.treeModuleId&&(0,K.jsx)(HBe,{children:(0,K.jsx)(F,{to:{name:`builder.tree_nodes.edit`,params:{treeNodeId:this.props.treeNode.id,treeId:this.props.treeNode.treeId,treeModuleId:this.props.treeNode.treeModuleId}},children:`Admin Link`})})]})}})||a7,JBe=(0,Y.VocabWrapper)((0,Y.GrammarTreeNodeShowWrapper)(qBe)),o7,YBe=N.div` 15624 padding: 10px; 15625 background: #FFF; 15626 margin-bottom: 10px; 15627`,XBe=N.li` 15628 display: flex; 15629 width: 100%; 15630 align-items: center; 15631 font-weight: normal; 15632 margin-bottom: 0; 15633 border-top-right-radius: 5px; 15634 border-top-left-radius: 5px; 15635 background: ${e=>e.background}; 15636 color: ${e=>e.color}; 15637 font-size: 12px; 15638 padding: 5px 10px; 15639`,ZBe=N.div` 15640 display: flex; 15641 align-items: center; 15642 justify-content: center; 15643 margin-right: 5px; 15644`,QBe=N.div` 15645 background: ${e=>e.background}; 15646 color: white; 15647 padding: 3px 7px; 15648 font-size: 11px; 15649 line-height: 12px; 15650 font-weight: 700; 15651 width: 45px; 15652 border-radius: 5px; 15653 display: flex; 15654 align-items: center; 15655 justify-content: center; 15656`,$Be=N.div` 15657 display: flex; 15658 flex-direction: column; 15659 cursor: pointer; 15660 margin-bottom: 5px; 15661`,eVe=j(o7=class extends V.Component{render(){return(0,K.jsx)(YBe,{children:(0,K.jsx)(OJ,{slug:this.props.module.id,title:`${this.props.module.name}${this.props.module.webPublished||!U.AppUI.user.admin?``:` (unpublished)`}`,margin:`0px`,children:(0,K.jsx)(`ul`,{children:this.props.module.treeNodes.map(e=>e.webPublished||U.AppUI.user.admin?(0,K.jsxs)($Be,{children:[(0,K.jsxs)(XBe,{onClick:()=>this.props.onSelectNode(e),justifyContent:`space-between`,fontSize:`13px`,background:e.id===this.props.currentTreeNodeId?q.Theme.blue:`rgb(231 231 231);`,color:e.id===this.props.currentTreeNodeId?`#FFF`:null,children:[e.shortName||e.name,(0,K.jsx)(`div`,{className:`details`,children:!e.webPublished&&(0,K.jsx)(ZBe,{children:(0,K.jsx)(QBe,{background:q.Theme.red,children:`UNP`})})})]}),(0,K.jsx)(Fn,{current:U.TreeUI.userTreeNodeStore.indexData.find(t=>t.treeNodeId===e.id)?.finishedUserDecksCount,total:e.treeNodeDecksCount,width:`100%`,borderBottomRightRadius:`5px`,borderBottomLeftRadius:`5px`,height:`5px`})]},e.id):null)})})})}})||o7,s7,tVe=N.div` 15662`,nVe=j(s7=class extends V.Component{render(){return(0,K.jsx)(tVe,{children:this.props.tree&&this.props.tree.treeModules.map(e=>e.webPublished&&e.hasWebPublishedTreeNodes||U.AppUI.user.admin?(0,K.jsx)(eVe,{module:e,...this.props},e.id):null)})}})||s7,c7=pf((0,Y.GrammarWrapper)((0,Y.GrammarIndexWrapper)(nVe))),l7,rVe=N.div` 15663 15664`,iVe=j(l7=class extends V.Component{render(){return(0,K.jsxs)(rVe,{children:[!U.TreeUI.grammarTree&&(0,K.jsx)(P,{}),(0,K.jsxs)(YX,{leftSidebar:!0,children:[this.props.currentTreeNodeId&&(0,K.jsx)(JBe,{treeNodeId:this.props.currentTreeNodeId}),this.props.tree&&this.props.currentTreeNodeId&&(0,K.jsx)(c7,{...this.props})]})]})}})||l7,u7=pf((0,Y.GrammarWrapper)(iVe)),d7,aVe=pf(M(j(d7=class extends V.Component{constructor(...e){super(...e),this.onToggleExerciseView=e=>{U.AppUI.cookieStore.set(`showExerciseView`,e===`exercises`)}}componentDidMount(){U.AppUI.createEvent(`memrev - view videos`,Ul())}render(){return(0,K.jsxs)(K.Fragment,{children:[!U.AppUI.cookieStore.showExerciseView&&(0,K.jsx)(d5,{show
15664Filters:!0,useGridLayout:!1,defaultWorksheetFilter:{youtube_url:!0,podcast_episode_id:!1},showExerciseView:U.AppUI.cookieStore.showExerciseView??!1,onToggleExerciseView:this.onToggleExerciseView,...this.props}),U.AppUI.cookieStore.showExerciseView&&(0,K.jsx)(k8,{showExerciseView:U.AppUI.cookieStore.showExerciseView,onToggleExerciseView:this.onToggleExerciseView,...this.props})]})}})||d7));D(),me();var f7,p7,m7,h7,g7,_7;function v7(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function y7(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var oVe=4e4,sVe=N.div` 15665 padding-top: ${e=>e.paddingTop}; 15666`,cVe=N.div` 15667 flex: 1; 15668`,lVe=N.div` 15669 border-radius: ${e=>e.borderRadius}; 15670 overflow: hidden; 15671`,b7=N.div` 15672 ${(0,X.flexCenter)()} 15673 position: relative; 15674 background: ${e=>e.header?`#CCC`:`#FFF`}; 15675 cursor: ${e=>e.header?`default`:`pointer`}; 15676 border-radius: ${e=>e.borderRadius}; 15677 margin: ${e=>e.margin}; 15678 padding: ${e=>e.padding||`10px`}; 15679 &:hover { 15680 background: ${e=>e.header?`#CCC`:`whitesmoke`}; 15681 .grayscale { 15682 filter: none; 15683 } 15684 } 15685`,uVe=N(F)` 15686 ${(0,X.flexCenter)()} 15687 position: relative; 15688 background: #FFF; 15689 cursor: pointer; 15690 border-radius: ${e=>e.borderRadius}; 15691 margin: ${e=>e.margin}; 15692 padding: ${e=>e.padding||`10px`}; 15693 text-decoration: none; 15694 color: inherit; 15695 &:hover { 15696 background: whitesmoke; 15697 text-decoration: none; 15698 color: inherit; 15699 .grayscale { 15700 filter: none; 15701 } 15702 } 15703`,dVe=N.div` 15704 flex: 1; 15705 min-width: 0; 15706`,fVe=N.div` 15707 height: 60px; 15708 margin-right: 10px; 15709 flex-shrink: 0; 15710 position: relative; 15711 img { 15712 border-radius: 10px; 15713 height: 100%; 15714 width: auto; 15715 cursor: pointer; 15716 } 15717 .grayscale { 15718 filter: gray; 15719 filter: grayscale(1); 15720 transition: filter 0.3s ease; 15721 } 15722`,pVe=N.div` 15723 z-index: ${q.Theme.z.foreground}; 15724 width: 20px; 15725 height: 20px; 15726 border-radius: 8px; 15727 background: #777777; 15728 position: absolute; 15729 top: 1px; 15730 left: 1px; 15731 pointer-events: none; 15732 .icon-wrapper { 15733 svg { 15734 fill: #FFF; 15735 width: 8px; 15736 position: absolute; 15737 left: 6px; 15738 top: 4px; 15739 } 15740 } 15741`,mVe=N.div` 15742 overflow: hidden; 15743 text-overflow: ellipsis; 15744 white-space: nowrap; 15745 width: 100%; 15746 font-size: 14px; 15747 line-height: 20px; 15748 color: #a8a8a8; 15749`,hVe=N.div` 15750 color: ${q.Theme.darkGray}; 15751 font-size: 13px; 15752 line-height: 20px; 15753`,gVe=N.button` 15754 background: none; 15755 border: none; 15756 padding: 0; 15757 margin-right: 5px; 15758 cursor: pointer; 15759 color: ${e=>e.completed?q.Theme.green:q.Theme.gray}; 15760 font-size: inherit; 15761 vertical-align: initial; 15762 15763 &:hover { 15764 opacity: 0.8; 15765 } 15766 15767 i { 15768 color: inherit;
15769 margin-top: 1px; 15770 } 15771`,_Ve=M(j(f7=(p7=(_7=class extends V.Component{get paginatorIds(){let e={groupId:this.props.params?.groupId};return this.selectedTagIds&&(e.tag_ids=this.selectedTagIds),e}get sortParameter(){return[(!U.ExerciseUI.user.isMember||U.AppUI.vocabBlockedUntilMigrated||U.AppUI.exercisesBlockedUntilMigrated)&&`-access_without_membership`,`-pinned`,this.dateSort].filter(Boolean).join(`,`)}get routeName(){return U.AppUI.routeStore.routeName}constructor(e){super(e),v7(this,`searchQuery`,m7,this),v7(this,`dateSort`,h7,this),v7(this,`loadFailed`,g7,this),this.worksheetRequestId=0,this.getWorksheets=()=>{let e=++this.worksheetRequestId;this.loadFailed=!1,this.props.store.clearFilter(),(0,W.isPresent)(this.props.store.limit)&&this.props.store.setLimit();let t={filters:{...this.props.defaultWorksheetFilter},sort:this.sortParameter,queryStrings:{show_all:!0,podcast:this.routeName===`podcast.index`,videos:this.routeName===`videos.index`}};this.searchQuery&&(t.filters[`worksheets.name`]=`~${this.searchQuery}~`),this.props.store.setPage(1),this.props.store.getIndex({...t,timeout:oVe,failureCallback:()=>this.handleLoadFailure(e),onRequestError:()=>this.handleLoadFailure(e)},t=>this.handleLoadSuccess(e,t))},this.handleLoadSuccess=(e,t)=>{e===this.worksheetRequestId&&this.props.store.afterGetIndex(t)},this.handleLoadFailure=e=>{e===this.worksheetRequestId&&(this.loadFailed=!0)},this.onSearchQueryChange=e=>{this.searchQuery=e,clearTimeout(this.interval),(0,W.isBlank)(e)?this.getWorksheets():e.length>1&&(this.interval=setTimeout(this.getWorksheets,500))},this.toggleSort=e=>{this.dateSort.endsWith(e)?this.dateSort=this.dateSort.startsWith(`-`)?e:`-${e}`:this.dateSort=`-${e}`,this.getWorksheets()},this.getItemRoute=e=>this.props.getItemRoute?this.props.getItemRoute(e):{pathname:`#`},this.toggleCompleted=(e,t)=>{e.preventDefault(),e.stopPropagation(),this.props.onToggleCompleted&&this.props.onToggleCompleted(t)},this.showFreeLabel=e=>e.published&&e.accessWithoutMembership&&(!U.ExerciseUI.user.isMember||U.AppUI.isPaymentMigrationStartable),this.cleanDescription=e=>{if(!e.description)return``;let t=document.createElement(`div`);return t.innerHTML=e.description,t.textContent||t.innerText||``},this.worksheetTitle=e=>e.podcastEpisode&&(0,W.isPresent)(e.episodeCode)?`${On(e.episodeCode)}: ${e.name}`:e.name,this.formatDuration=e=>{if(!e)return``;let t=Math.ceil(e/60),n=Math.floor(t/60),r=t%60;return n>0?r>0?`${n} hour${n>1?`s`:``} ${r} min`:`${n} hour${n>1?`s`:``}`:`${t} min`},this.onClick=e=>{U.ExerciseUI.set(`worksheetId`,e.id),U.ExerciseUI.worksheetStore.setShowData(e)},this.props.store.hasIndexData||this.getWorksheets()}componentDidMount(){U.AppUI.scrollToPageTop(`auto`,`page-top`)}render(){return(0,K.jsx)(sVe,{paddingTop:U.AppUI.layout.isMobile?`15px`:null,children:(0,K.jsxs)(An,{gap:`sm`,alignItems:`stretch`,children:[this.props.showFilters&&(0,K.jsx)(v8,{showFilters:!0,onUpdateFilter:this.getWorksheets,onSearchQueryChange:this.onSearchQueryChange,searchQuery:this.searchQuery,routeName:this.routeName,defaultWorksheetFilter:this.props.defaultWorksheetFilter,onToggleSort:this.toggleSort,sortDirection:this.dateSort.startsWith(`-`)?`desc`:`asc`}),(0,K.jsx)(cVe,{children:(0,K.jsxs)(lVe,{borderRadius:U.AppUI.layout.isMobile?`0`:`10px`,children:[this.props.store.requestCounter>0&&(0,K.jsx)(P,{}),this.props.store.requestCounter===0&&this.loadFailed&&(0,K.jsx)(b7,{borderRadius:U.AppUI.layout.isDesktop?`0 0 10px 10px`:``,children:(0,K.jsxs)(An,{gap:`sm`,alignItems:`center`,children:[(0,K.jsx)(R,{children:`Sorry, we couldn't load the podcast episodes.`}),(0,K.jsx)(I,{onClick:this.getWorksheets,children:`Try again`})]})}),this.props.store.requestCounter===0&&!this.loadFailed&&!this.props.store.hasIndexData&&(0,K.jsx)(b7,{borderRadius:U.AppUI.layout.isDesktop?`0 0 10px 10px`:``,children:(0,K.jsx)(R,{children:`No episodes found`})}),this.props.store.indexData.map((e,t)=>(0,K.jsxs)(uVe,{to:this.getItemRoute(e),onClick:()=>this.onClick(e),padding:U.AppUI.layout.isMobile?`10px 10px 5px 10px`:`10px`,borderRadius:t===this.props.store.indexData.length-1&&!U.AppUI.layout.isMobile?`0 0 10px 10px`:``,children:[!e?.accessStatus?.hasAccess&&!this.show
15771FreeLabel(e)&&(0,K.jsx)(pVe,{children:(0,K.jsx)(J.LockIcon,{})}),(0,K.jsxs)(`div`,{style:{display:`flex`,flex:1,minWidth:0},children:[e.podcastEpisode?.podcast?.imageUrl&&(0,K.jsxs)(fVe,{children:[(0,K.jsx)(N8,{type:`free`,worksheet:e}),(0,K.jsx)(`img`,{alt:``,src:e.podcastEpisode.podcast.imageUrl,className:(0,Qg.default)({grayscale:!e?.accessStatus?.hasAccess&&!this.showFreeLabel(e)})})]}),(0,K.jsxs)(dVe,{children:[(0,K.jsxs)(R,{bold:!0,children:[U.AppUI.layout.isMobile?(0,K.jsx)(`i`,{className:`fa fa-check-circle`,style:{color:e.overrideCompleted?q.Theme.green:q.Theme.gray,marginRight:`5px`,verticalAlign:`initial`}}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(gVe,{type:`button`,completed:e.overrideCompleted,onClick:t=>this.toggleCompleted(t,e),"aria-label":e.overrideCompleted?`Mark as incomplete`:`Mark as complete`,"data-tip":!0,"data-for":`completion-tooltip-${e.id}`,children:(0,K.jsx)(`i`,{className:`fa fa-check-circle`})}),(0,K.jsx)(he,{id:`completion-tooltip-${e.id}`,place:`top`,type:`dark`,effect:`solid`,children:e.overrideCompleted?`Mark as Incomplete`:`Mark as Completed`})]}),this.worksheetTitle(e),e.youtubeUrl&&(0,K.jsx)(J.YoutubeIcon,{fill:`#fe0134`,style:{width:`18px`,height:`18px`,marginLeft:`5px`,verticalAlign:`-6px`,display:`inline-block`,overflow:`hidden`}})]}),!U.AppUI.layout.isMobile&&(e.podcastEpisode?.subtitle||this.cleanDescription(e))&&(0,K.jsx)(mVe,{children:e.podcastEpisode?.subtitle||this.cleanDescription(e)}),(0,K.jsxs)(hVe,{children:[e.publishedAt?e.publishedAt.fullTextFormattedDateWithFullYear:null,e.podcastEpisode?.duration&&` ⢠${this.formatDuration(e.podcastEpisode.duration)}`]})]})]})]},e.id)),(0,K.jsx)(In,{onClickScrollToTop:!0,withSpinner:!0,store:this.props.store,ids:this.paginatorIds,queryStrings:{show_all:!0,podcast:this.routeName===`podcast.index`,videos:this.routeName===`videos.index`},margin:`20px 0`})]})})]})})}},_7.defaultProps={showFilters:!0},_7),m7=y7(p7.prototype,`searchQuery`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h7=y7(p7.prototype,`dateSort`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`-worksheets.published_at`}}),g7=y7(p7.prototype,`loadFailed`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y7(p7.prototype,`paginatorIds`,[E],Object.getOwnPropertyDescriptor(p7.prototype,`paginatorIds`),p7.prototype),y7(p7.prototype,`sortParameter`,[E],Object.getOwnPropertyDescriptor(p7.prototype,`sortParameter`),p7.prototype),y7(p7.prototype,`routeName`,[E],Object.getOwnPropertyDescriptor(p7.prototype,`routeName`),p7.prototype),p7))||f7),x7,vVe=N.div` 15772 flex: 1; 15773 border-radius: 10px; 15774 overflow: hidden; 15775`,yVe=pf(M(j(x7=class extends V.Component{constructor(...e){super(...e),this.getItemRoute=e=>({name:`podcast.show`,params:{worksheetId:e.routeId}}),this.onToggleCompleted=e=>{let t=!e.overrideCompleted;e.set(`overrideCompleted`,t),H.UserWorksheetStore.updateByWorksheetId({ids:{worksheetId:e.id},data:{overrideCompleted:t}})}}componentDidMount(){U.AppUI.createEvent(`memrev - view podcast`,Ul())}render(){return(0,K.jsxs)(vVe,{children:[(0,K.jsx)(SV,{children:`Podcast`}),(0,K.jsx)(_Ve,{showFilters:!0,headerTitle:`Episode`,defaultWorksheetFilter:{podcast_episode_id:!0},store:U.ExerciseUI.podcastWorksheetStore,getItemRoute:this.getItemRoute,onToggleCompleted:this.onToggleCompleted,...this.props})]})}})||x7));D();var S7,C7,w7,T7,E7,D7,O7,k7;function A7(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function j7(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var bVe=N.pre` 15776 margin: 0; 15777 max-height: 75vh; 15778 overflow: auto; 15779 white-space: pre-wrap; 15780 word-break: break-word; 15781 font-family: inherit; 15782 font-size: 16px; 15783 line-height: 1.5; 15784`,xVe=N.div` 15785 padding: ${z.md} 0; 15786`,SVe=N.div` 15787 display: flex; 15788 align-items: center; 15789 gap: ${z.md}; 15790 justify-content: space-between; 15791 padding-right: ${z.md}; 15792 width: 100%; 15793 15794 @media screen and (max-width: 600px) {
15795 align-items: flex-start; 15796 flex-direction: column; 15797 gap: ${z.xs}; 15798 } 15799`,CVe=N.span` 15800 min-width: 0; 15801 overflow: hidden; 15802 text-overflow: ellipsis; 15803 white-space: nowrap; 15804 15805 @media screen and (max-width: 600px) { 15806 white-space: normal; 15807 } 15808`,M7=e=>e.title,wVe=e=>{if(!e)return!1;try{return new URL(e,window.location.href).pathname.toLowerCase().endsWith(`.txt`)}catch{return e.split(`?`)[0].toLowerCase().endsWith(`.txt`)}},TVe=j(S7=(C7=class extends V.Component{constructor(...e){super(...e),A7(this,`opened`,w7,this),A7(this,`title`,T7,this),A7(this,`href`,E7,this),A7(this,`content`,D7,this),A7(this,`error`,O7,this),A7(this,`isLoading`,k7,this),this.open=async e=>{this.opened=!0,this.title=M7(e),this.href=e.text,this.content=``,this.error=null,this.isLoading=!0;try{let t=await fetch(`/api/download_links/text_file?url=${encodeURIComponent(e.text)}`),n=await t.json();if(!t.ok)throw Error(n.message||`Unable to load file (${t.status})`);this.content=n.content}catch(e){this.error=e.message||`Sorry, this text file could not be loaded.`}finally{this.isLoading=!1}},this.close=()=>{this.opened=!1,this.title=``,this.href=``,this.content=``,this.error=null,this.isLoading=!1}}renderTitle(){return(0,K.jsxs)(SVe,{children:[(0,K.jsx)(CVe,{children:this.title}),(0,K.jsx)(_n,{component:`a`,href:this.href,target:`_blank`,rel:`noopener noreferrer`,size:`xs`,variant:`light`,color:U.AppUI.site.accentColor,leftSection:(0,K.jsx)(Mn,{i:`download`}),children:`Download`})]})}render(){return(0,K.jsxs)(At,{opened:this.opened,onClose:this.close,title:this.renderTitle(),size:`90%`,styles:{title:{flex:1}},children:[this.isLoading&&(0,K.jsx)(yn,{py:`md`,children:(0,K.jsx)(ln,{})}),this.error&&(0,K.jsx)(xVe,{children:this.error}),!this.isLoading&&!this.error&&(0,K.jsx)(bVe,{children:this.content})]})}},w7=j7(C7.prototype,`opened`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T7=j7(C7.prototype,`title`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),E7=j7(C7.prototype,`href`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),D7=j7(C7.prototype,`content`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),O7=j7(C7.prototype,`error`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k7=j7(C7.prototype,`isLoading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C7))||S7;D();var N7,P7;function EVe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var DVe=N.div` 15809 padding: ${z.md}; 15810 background: white; 15811 border-radius: ${e=>e.borderRadius}; 15812`,OVe=N.div` 15813 margin-top: ${z.xs}; 15814 font-size: 11px; 15815 text-decoration: underline; 15816 text-align: center; 15817 padding: ${z.xs}; 15818`,kVe=N.table` 15819 width: 100%; 15820 min-height: 0.01%; 15821 overflow-x: auto; 15822 15823 @media screen and (max-width: 767px) { 15824 width: 100%; 15825 margin-bottom: calc(${z.sm} + ${z.xs}); 15826 overflow-y: hidden; 15827 -ms-overflow-style: -ms-autohiding-scrollbar; 15828 border: 1px solid #ddd; 15829 } 15830 15831 td { 15832 padding: ${z.xs}; 15833 vertical-align: middle; 15834 } 15835 15836 tbody tr:hover { 15837 background-color: #f5f5f5; 15838 } 15839 15840 tr.clickable { 15841 cursor: pointer; 15842 &:hover { 15843 background-color: rgba(0, 0, 0, 0.05); 15844 } 15845 } 15846 15847 ${({$striped:e})=>e&&` 15848 tbody tr:nth-of-type(odd) { 15849 background-color: #f9f9f9; 15850 } 15851 `} 15852`,F7=N.span` 15853 display: flex; 15854 font-size: 14px; 15855 align-items: center; 15856 margin: 0 ${z.sm}; 15857 color: #333333; 15858 cursor: pointer; 15859 span { 15860 text-decoration: underline; 15861 } 15862 i { 15863 margin-right: ${z.xs}; 15864 } 15865 span:hover { 15866 text-decoration: none; 15867 } 15868 justify-content: ${e=>e.justifyContent}; 15869`,AVe=M(j(N7=(P7=class extends V.Component{constructor(...e){super(...e),this.openHref=e=>{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,t.rel=`noopener noreferrer`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},this.handleDownloadLinkClick=(e,t,n,r)=>{r&&r.preventDefault(),this.trackDownloadButtonClick(e,t,n),wVe(e.href)?this.textFileModal.open(t):this.openHref(e.href)},this.blockedUntilMigrated=e=>e.blockIfNotMigrated&&U.AppUI.shouldBlockPerksForMigration,this.trackNoAccessButtonClick=(e,t)=>{!e?.locked||U.AppUI.siteIsDefault||U.AppUI.createEvent(`memrev - click no access button`,Ul({source:`download_link`,button_text:e.text,reason:e.reason,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,destination_route:e.to?.name,download_link_
15869id:t.id,worksheet_id:this.worksheet?.id}))},this.trackDownloadButtonClick=(e,t,n)=>{e?.locked||!e?.href||U.AppUI.siteIsDefault||U.AppUI.createEvent(`memrev - click download button`,Ul({button_text:e.text,button_type:t.title,click_target:n,source_route:U.AppUI.routeStore.routeName,source_path:window.location.pathname,download_link_id:t.id,download_link_type_id:t.downloadLinkTypeId,download_link_title:t.title,download_link_icon:t.icon,has_podcast_feed:(0,W.isPresent)(t.podcastId),worksheet_id:this.worksheet?.id}))}}get worksheet(){return(0,W.isPresent)(this.props.worksheet)?this.props.worksheet:U.ExerciseUI.hasWorksheet?U.ExerciseUI.worksheet:null}getButtonConfig(e){let t=e.blocked,n=t&&U.ExerciseUI.worksheet.accessWithoutMembership,r=this.blockedUntilMigrated(e)&&!t,i=!U.ExerciseUI.user?.isMember&&t&&!U.ExerciseUI.worksheet.accessWithoutMembership,a=U.ExerciseUI.user?.isMember&&t&&!U.ExerciseUI.worksheet.accessWithoutMembership;return n?{locked:!0,to:{name:`onboarding.register`},text:`Create Free Account to Try`,reason:`create_free_account`}:i?{locked:!0,to:{name:`memberships.index`},text:`Become a Member to Unlock`,reason:`become_a_member`}:a?{locked:!0,to:{name:`memberships.index`},text:`Upgrade to Unlock`,reason:`upgrade`}:r?{locked:!0,to:{name:`settings.billing`},text:`Migrate Payment`,reason:`migrate`}:t?null:{href:e.text,text:`Open`}}renderButton(e){return(0,K.jsxs)(I,{height:`30px`,width:`98%`,fontSize:`14px`,color:`#FFF`,borderRadius:`5px`,scaleOnHover:U.AppUI.layout.isMobile?null:`1.03`,backgroundOnActive:q.Theme.gray,iconMarginRight:U.AppUI.layout.isMobile?`0px`:`3px`,background:e.locked?`#AAA`:U.AppUI.site.accentColor||`#716f6f`,children:[(0,K.jsx)(`i`,{className:`fa fa-${e.locked?`lock`:`arrow-right`}`,style:e.locked?null:{transform:`rotate(-45deg)`}}),U.AppUI.layout.isMobile?``:e.text]})}render(){return(0,K.jsxs)(DVe,{borderRadius:this.props.borderRadius,children:[(0,W.isPresent)(this.worksheet)&&(0,K.jsx)(kVe,{$striped:U.AppUI.layout.isDesktop,children:(0,K.jsx)(`tbody`,{children:this.worksheet.downloadLinks.map(e=>{let t=this.getButtonConfig(e),n=(0,W.isPresent)(t?.href);return(0,K.jsxs)(V.Fragment,{children:[(0,K.jsxs)(`tr`,{className:n?`clickable`:``,children:[(0,K.jsx)(`td`,{width:`20px`,children:(0,K.jsx)(`i`,{className:`fa fa-${e.icon||`link`}`,style:{margin:`${z.xs} ${z.sm} ${z.xs} ${z.md}`}})}),(0,K.jsxs)(`td`,{style:{display:`flex`,alignItems:`center`,minHeight:`40px`,justifyContent:`space-between`},children:[(0,K.jsx)(`span`,{onClick:n?n=>this.handleDownloadLinkClick(t,e,`title`,n):void 0,style:{flex:1},children:M7(e)}),!e.blocked&&(0,W.isPresent)(e.podcastId)&&!U.AppUI.layout.isMobile&&(0,K.jsx)(F,{to:{name:`settings.audio_feeds`,params:{podcastId:e.podcastId}},target:`_blank`,children:(0,K.jsxs)(F7,{children:[(0,K.jsx)(`i`,{className:`fa fa-rss`}),(0,K.jsx)(`span`,{children:`Also available as a podcast feed`})]})})]}),(0,K.jsxs)(`td`,{width:U.AppUI.layout.isMobile?`50px`:`280px`,children:[t&&n&&(0,K.jsx)(`a`,{href:t.href,target:`_blank`,rel:`noopener noreferrer`,onClick:n=>this.handleDownloadLinkClick(t,e,`button`,n),children:this.renderButton(t)}),t&&!n&&(0,K.jsx)(F,{to:t.to,onClick:()=>this.trackNoAccessButtonClick(t,e),children:this.renderButton(t)})]})]}),!e.blocked&&(0,W.isPresent)(e.podcastId)&&U.AppUI.layout.isMobile&&(0,K.jsx)(`tr`,{children:(0,K.jsx)(`td`,{colSpan:`3`,children:(0,K.jsx)(F,{to:{name:`settings.audio_feeds`,params:{podcastId:e.podcastId}},target:`_blank`,children:(0,K.jsxs)(F7,{justifyContent:`flex-end`,children:[(0,K.jsx)(`i`,{className:`fa fa-rss`}),(0,K.jsx)(`span`,{children:`Also available as a podcast feed`})]})})})})]},e.id)})})}),U.ExerciseUI.user.anyAdmin&&this.worksheet&&(0,K.jsx)(OVe,{children:(0,K.jsx)(F,{to:{name:`creator.worksheets.edit`,params:{worksheetId:this.worksheet.id}},children:`Admin Link`})}),(0,K.jsx)(TVe,{ref:e=>this.textFileModal=e})]})}},EVe(P7.prototype,`worksheet`,[E],Object.getOwnPropertyDescriptor(P7.prototype,`worksheet`),P7.prototype),P7))||N7);D();var I7,L7,R7,z7,B7;function V7(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function H7(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var jVe=N.div` 15870 background: #FFF; 15871 border-radius: 20px; 15872 padding: 20px; 15873 margin-top: 10px; 15874`,U7=N.div` 15875`,MVe=j(I7=(L7=class extends V.Component{constructor(e){super(e),V7(this,`success`,R7,this),V7(this,`notificationToken`,z7,this),V7(this,`showSpinner`,B7,this),this.afterBlockNotifications=e=>{this.success=e.success,this.showSpinner=!1};let t=new URL(window.location.href);this.notificationToken=t.searchParams.get(`notification_token`),(0,W.isPresent)(this.notificationToken)?U.AppUI.userStore.blockNotifications({data:{notificationToken:this.notificationToken}},this.afterBlockNotifications):this.showSpinner=!1}render(){return(0,K.jsxs)(jVe,{children:[this.showSpinner&&(0,K.jsx)(P,{background:U.AppUI.site.accentColor}),(0,W.isBlank)(this.notificationToken)&&(0,K.jsxs)(U7,{children:[(0,K.jsx)(`h3`,{children:`We are sorry but this URL is not correct.`}),(0,K.jsx)(`p`,{children:`You can contact us at [email protected] and we will assist you in blocking all emails from being sent to you from Seedlang.`})]}),this.success===!1&&(0,K.jsxs)(U7,{children:[(0,K.jsx)(`h3`,{children:`We are sorry but that token has expired.`}),(0,K.jsx)(`p`,{children:`You can contact us at [email protected] and we will assist you in blocking all emails from being sent to you from Seedlang.`})]}),this.success===!0&&(0,K.jsxs)(U7,{children:[(0,K.jsx)(`h3`,{children:`You will no longer receive our emails.`}),U.AppUI.userIsSignedIn&&(0,K.jsxs)(`p`,{children:[`You can change this at anytime by going to `,(0,K.jsx)(F,{to:`settings.user_notifications`,className:`underline`,children:(0,K.jsxs)(`b`,{children:[`Settings â `,U.AppUI.siteIsDefault?`Notifications`:`Email Preferences`]})}),` and updating which emails you would like to receive.`]}),!U.AppUI.userIsSignedIn&&(0,K.jsxs)(`p`,{children:[`You can change this at anytime by going to `,(0,K.jsx)(`b`,{children:`Settings â Notifications`}),` and updating which emails you would like to receive.`]})]})]})}},R7=H7(L7.prototype,`success`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z7=H7(L7.prototype,`notificationToken`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B7=H7(L7.prototype,`showSpinner`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),L7))||I7;D();var W7,G7,K7,q7,J7,Y7;function X7(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Z7(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var Q7=N.div` 15876 background: #FFF; 15877 display: flex; 15878 flex-direction: column; 15879 margin: ${z.md} auto; 15880 max-width: 600px; 15881 15882 @media (min-width: 700px) { 15883 border-radius: 20px; 15884 overflow: ${e=>e.hasBanner?`hidden`:`visible`}; 15885 }
15886`,NVe=N.div` 15887 padding: ${z.md}; 15888 display: flex; 15889 flex-direction: column; 15890 gap: ${z.lg}; 15891 15892 @media (min-width: 700px) { 15893 padding: ${z[`2xl`]}; 15894 } 15895`,PVe=N.img` 15896 width: 100%; 15897 display: block; 15898 object-fit: cover; 15899 max-height: 200px; 15900`,FVe=N(F)` 15901 text-decoration: underline; 15902 color: ${()=>U.AppUI.site.accentColor}; 15903 cursor: pointer; 15904 font-size: 14px; 15905`,IVe=20,LVe=1e3,$7=j(W7=(G7=class extends V.Component{constructor(e){if(super(e),X7(this,`selectedOption`,K7,this),X7(this,`selectedOptions`,q7,this),X7(this,`whatCouldWeHaveDoneBetterResponse`,J7,this),X7(this,`responseLoaded`,Y7,this),this.fetchResponseWithRetry=(e=0)=>{H.ExitSurveyResponseStore.getShow({},t=>{if(t?.id){H.ExitSurveyResponseStore.setShowData(t),this.responseLoaded=!0;return}e<IVe-1?this.retryTimeout=setTimeout(()=>this.fetchResponseWithRetry(e+1),LVe):this.responseLoaded=!0})},this.prefillFromResponse=()=>{let e=H.ExitSurveyResponseStore.showData;if(!e?.id)return;let t=new Set(e.reasons.map(e=>e.exitSurveyReasonId)),n=this.reasons.filter(e=>t.has(e.id));this.config.multipleChoice?this.selectedOptions=n:n.length>0&&(this.selectedOption=n[0]),e.whatCouldWeHaveDoneBetterResponse&&(this.whatCouldWeHaveDoneBetterResponse=e.whatCouldWeHaveDoneBetterResponse)},this.onSelect=e=>{if(this.config.multipleChoice){this.selectedOptions=(0,G.xorBy)(this.selectedOptions,[e],`id`);return}this.selectedOption=this.selectedOption?.id===e.id?null:e},this.onSubmit=()=>{if(this.props.preview)return;let e=H.ExitSurveyResponseStore.showData?.id;if(!e)return;let t=this.config.multipleChoice?this.selectedOptions:[this.selectedOption];H.ExitSurveyResponseStore.update({ids:{exitSurveyResponseId:e},data:{what_could_we_have_done_better_response:this.whatCouldWeHaveDoneBetterResponse,reasons:t.map(e=>({exit_survey_reason_id:e.id}))}},()=>U.AppUI.routeStore.routeToNamed(`settings.billing`))},e.preview){H.ExitSurveyResponseStore.setShowData({}),this.responseLoaded=!0,this.whenDisposer=()=>{};return}H.ExitSurveyConfigStore.getShow(),H.ExitSurveyReasonStore.getIndex({queryStrings:{active:!0}}),this.fetchResponseWithRetry(),this.whenDisposer=re(()=>H.ExitSurveyConfigStore.hasShowData&&H.ExitSurveyReasonStore.hasIndexData&&H.ExitSurveyResponseStore.hasShowData,()=>this.prefillFromResponse())}componentWillUnmount(){this.whenDisposer(),clearTimeout(this.retryTimeout),H.ExitSurveyResponseStore.setShowData(null)}get loading(){return H.ExitSurveyConfigStore.hasOutstandingRequests||H.ExitSurveyReasonStore.hasOutstandingRequests||H.ExitSurveyResponseStore.hasOutstandingRequests||!this.responseLoaded}get config(){return H.ExitSurveyConfigStore.showData}get reasons(){return this.props.preview?H.ExitSurveyReasonStore.indexData.filter(e=>e.active):H.ExitSurveyReasonStore.indexData}get canSubmit(){return this.config.multipleChoice?this.selectedOptions.length>0:this.selectedOption}render(){if(this.loading)return(0,K.jsx)(Q7,{children:(0,K.jsx)(P,{})});let e=(0,W.isPresent)(this.config?.image?.url);return(0,K.jsxs)(Q7,{hasBanner:e,children:[e&&(0,K.jsx)(PVe,{src:this.config.image.url,alt:``}),(0,K.jsxs)(NVe,{children:[(0,K.jsxs)(An,{gap:`sm`,alignItems:`stretch`,children:[(0,K.jsx)(R,{heading:`3`,children:`Sorry to see you go!`}),(0,K.jsx)(R,{children:`Please help us improve our membership by letting us know why you are leaving.`})]}),(0,K.jsx)(AK,{options:this.reasons,multipleChoice:this.config.multipleChoice,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,onSelect:this.onSelect}),(0,K.jsxs)(An,{gap:`sm`,alignItems:`stretch`,children:[(0,K.jsx)(R,{bold:!0,children:`What could we have done better?`}),(0,K.jsx)(`textarea`,{rows:4,value:this.whatCouldWeHaveDoneBetterResponse,onChange:e=>{this.whatCouldWeHaveDoneBetterResponse=e.target.value}})]}),(0,K.jsxs)(An,{inline:!0,alignItems:`center`,justifyContent:`space-between`,children:[(0,K.jsx)(I,{disabled:!this.canSubmit,onClick:this.onSubmit,children:`Submit`}),(0,K.jsx)(FVe,{to:`settings.billing`,onClick:this.props.preview?e=>e.preventDefault():void 0,children:`Skip`})]})]})]})}},K7=Z7(G7.prototype,`selectedOption`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q7=Z7(G7.prototype,`selectedOptions`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),J7=Z7(G7.prototype,`whatCouldWeHaveDoneBetterResponse`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return``}}),Y7=Z7(G7.prototype,`responseLoaded`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z7(G7.prototype,`loading`,[E],Object.getOwnPropertyDescriptor(G7.prototype,`loading`),G7.prototype),Z7(G7.prototype,`config`,[E],Object.getOwnPropertyDescriptor(G7.prototype,`config`),G7.prototype),Z7(G7.prototype,`reasons`,[E],Object.getOwnPropertyDescriptor(G7.prototype,`reasons`),G7.prototype),Z7(G7.prototype,`canSubmit`,[E],Object.getOwnPropertyDescriptor(G7.prototype,`canSubmit`),G7.prototype),G7))||W7,RVe=(e,t,n)=>n?(e||[]).includes(t):e===t,e9=({accentColor:e,answer:t=null,canContinue:n,completedSteps:r,isDesktop:i,isIntroStep:a,isLastStep:o,onContinue:s,onSelect:c,paymentSuccessHeading:l,paymentSuccessImageUrl:u,secondaryAccentColor:d,siteName:f,step:p=null,
15905stepNumber:m,teamLogoUrl:h=null,totalSteps:g})=>{let _=a?`Before you start learning, we would like to ask you a few questions to get to know you better.`:p.helperText,v=a?l:p.question;return(0,K.jsx)(xn,{align:`center`,bg:`#fff`,c:`#1f1f1f`,gap:0,mih:`100dvh`,pb:i?56:40,pt:i?25:40,px:24,w:`100%`,children:(0,K.jsxs)(xn,{align:`center`,flex:1,gap:40,maw:562,w:`100%`,children:[!a&&(0,K.jsxs)(xn,{gap:i?8:10,w:`100%`,children:[(0,K.jsx)(Ac,{"aria-label":`Survey progress: step ${m} of ${g}`,"aria-valuemax":g,"aria-valuemin":`0`,"aria-valuenow":r,color:e,radius:`xl`,role:`progressbar`,size:i?8:10,styles:{root:{backgroundColor:`#f3f3f3`}},value:r/g*100}),(0,K.jsxs)(fn,{fz:i?12:14,lh:i?`15px`:`18px`,pr:i?6:9,ta:`right`,children:[m,`/`,g]})]}),h&&(0,K.jsx)(bn,{alt:`${f} Logo`,fit:`contain`,mah:67.5,src:h,w:`auto`}),(0,K.jsxs)(xn,{align:`center`,gap:a?`xs`:i?3:7,children:[(0,K.jsx)(Cn,{ff:`inherit`,fz:i?20:24,fw:600,lh:i?`22px`:1.28,order:2,style:{textWrap:`balance`},ta:`center`,children:v}),_&&(0,K.jsx)(fn,{c:a?void 0:`dimmed`,fz:i?13:16,lh:i?`18px`:`21px`,maw:a?400:void 0,ta:`center`,children:_})]}),a?(0,K.jsx)(bn,{alt:`Membership payment confirmation`,fit:`contain`,h:250,radius:`lg`,src:u,w:`auto`}):(0,K.jsx)(dl,{cols:i||p.compact?2:1,spacing:i?16:12,verticalSpacing:i?16:12,w:`100%`,children:p.options.map(e=>{let n=RVe(t,e.id,p.multiple);return(0,K.jsx)(_n,{"aria-pressed":n,color:n?d:void 0,h:i?72:80,leftSection:e.badge?(0,K.jsx)(gn,{color:`#078d2c`,fz:i?9:12,h:i?15:21,miw:i?23:33,px:i?5:7,radius:i?4:6,styles:{root:{backgroundColor:n?`#fff`:d,color:n?d:`#fff`}},tt:`none`,children:e.badge}):null,onClick:()=>c(e.id),px:i?15:14,py:i?14:18,radius:i?6:9,styles:{label:{lineHeight:1.5,whiteSpace:`normal`}},type:`button`,variant:n?`filled`:`default`,children:e.label},e.id)})}),(0,K.jsx)(I,{background:e,backgroundOnActive:ct(e,.15),backgroundOnHover:ct(e,.1),disabled:!n,onClick:s,children:o?`Start Learning`:`Continue`})]})})};e9.propTypes={accentColor:Z.default.string.isRequired,answer:Z.default.oneOfType([Z.default.string,Z.default.array]),canContinue:Z.default.bool.isRequired,completedSteps:Z.default.number.isRequired,isDesktop:Z.default.bool.isRequired,isIntroStep:Z.default.bool.isRequired,isLastStep:Z.default.bool.isRequired,onContinue:Z.default.func.isRequired,onSelect:Z.default.func.isRequired,paymentSuccessHeading:Z.default.string.isRequired,paymentSuccessImageUrl:Z.default.string.isRequired,secondaryAccentColor:Z.default.string.isRequired,siteName:Z.default.string.isRequired,step:Z.default.object,stepNumber:Z.default.number.isRequired,teamLogoUrl:Z.default.string,totalSteps:Z.default.number.isRequired};var zVe=[`A1`,`A2`,`B1`,`B2`,`C1+`],BVe=[`single_choice`,`multiple_choice`],VVe=`4769e7e3-8c64-498a-88ff-0c50f7bc6549`,HVe=e=>e.metadata?.paymentSuccessHeading&&e.image?.url&&e.surveyQuestions.length>0&&e.surveyQuestions.every(e=>BVe.includes(e.questionType)&&e.surveyQuestionOptions.length>0),UVe=(e,t)=>e.surveyQuestions.map((n,r)=>({id:n.id,question:n.prompt,helperText:n.questionType===`multiple_choice`?`You can select more than one`:null,multiple:n.questionType===`multiple_choice`,compact:r>=2,required:n.required,options:n.surveyQuestionOptions.filter(n=>r!==e.surveyQuestions.length-1||t||!/conversation/i.test(n.text)).map((e,t)=>({id:e.id,badge:r===1?zVe[t]:null,label:e.text}))})),WVe={onboarding:pf(e=>{let t=Tt(`(min-width: 700px)`),[n,r]=(0,V.useState)({}),[i,a]=(0,V.useState)(0),[o,s]=(0,V.useState)(null),[c,l]=(0,V.useState)(!1),u=e.params.surveySlug,d=U.AppUI.user.currentUserGroup?.membershipTypeId,f=U.AppUI.user.currentUserGroup?.membershipType?.name;(0,V.useEffect)(()=>{let e=!0,t=()=>{e&&(l(!0),U.AppUI.routeToHome())};return!d||!f?(t(),()=>{e=!1}):(H.SurveyStore.getBySlug({ids:{surveySlug:u},failureCallback:t,onRequestError:t},n=>{if(e){if(!n?.id||n.completed){t();return}if(H.SurveyStore.setShowData(n),!HVe(H.SurveyStore.showData)){t();return}s(H.SurveyStore.showData)}}),()=>{e=!1,H.SurveyStore.clearShowData()})},[d,f,u]);let p=()=>{H.SurveyResponseStore.create({data:{surveyId:o.id,answers:o.surveyQuestions.map(e=>{let t=n[e.id];return{surveyQuestionId:e.id,surveyQuestionOptionIds:Array.isArray(t)?t:[t].filter(
15905Boolean)}})}},e=>{e.learningPathId&&U.AppUI.user.currentUserGroup&&(U.AppUI.user.currentUserGroup.learningPathId=e.learningPathId),U.AppUI.routeToHome()})};if(c)return null;if(!o)return(0,K.jsx)(xn,{align:`center`,justify:`center`,mih:`100dvh`,children:(0,K.jsx)(P,{})});let m=UVe(o,d===VVe),h=i===0,g=h?null:m[i-1],_=g?n[g.id]:null,v=g?.multiple?!!_?.length:!!_,y=h||g.required===!1||v,b=!h&&i===m.length,x=h?0:i-1+ +!!v;return(0,K.jsx)(e9,{accentColor:U.AppUI.site.accentColor,answer:_,canContinue:y,completedSteps:x,isDesktop:t,isIntroStep:h,isLastStep:b,onContinue:()=>{if(y){if(b){p();return}a(e=>e+1)}},onSelect:e=>{r(t=>{let n=t[g.id],r=e;if(g.multiple){let t=n||[];r=t.includes(e)?t.filter(t=>t!==e):[...t,e]}return{...t,[g.id]:r}})},paymentSuccessHeading:o.metadata.paymentSuccessHeading,paymentSuccessImageUrl:o.image.url,secondaryAccentColor:U.AppUI.site.secondaryAccentColor,siteName:U.AppUI.site.teamName,step:g,stepNumber:i,teamLogoUrl:U.AppUI.site.teamLogo?.image?.url,totalSteps:m.length})})},GVe=()=>{let{surveySlug:e}=l(),t=WVe[e];return t?(0,K.jsx)(t,{}):(0,K.jsx)(Ca,{})};w();var t9,KVe=N.div` 15906 display: flex; 15907 flex-direction: column; 15908 align-items: center; 15909 padding: 40px; 15910 @media only screen and (max-width : 649px) { 15911 padding: 20px 0; 15912 } 15913 color: #494747; 15914 @media only screen and (max-width : 649px) { 15915 background: #FFF; 15916 } 15917`,qVe=N.div` 15918 border-radius: 12px; 15919 margin: 38px 0 20px 0; 15920 max-width: 800px; 15921 display: flex; 15922 flex-direction: column; 15923 align-items: center; 15924 padding: 40px 40px 10px 40px; 15925 @media only screen and (max-width : 649px) { 15926 padding: 20px 5px; 15927 border-radius: 0px; 15928 margin: 10px 0; 15929 } 15930 background: #FFF; 15931`,JVe=N.div` 15932 padding: 25px 100px; 15933 @media only screen and (max-width : 649px) { 15934 padding: 25px; 15935 } 15936 display: flex; 15937 flex-direction: column; 15938 gap: 2px; 15939 ol > li::marker { 15940 font-weight: bold; 15941 } 15942 li { 15943 margin-bottom: 5px; 15944 } 15945 p { 15946 margin-block-start: 10px; 15947 margin-block-end: 10px; 15948 } 15949`,YVe=N.div` 15950 text-align: center; 15951 max-width: 600px; 15952 @media only screen and (max-width : 649px) { 15953 padding: 0 10px; 15954 } 15955`,n9=N.div` 15956 margin-top: 5px; 15957 font-size: 16px; 15958`,XVe=j(t9=class extends V.Component{render(){return(0,K.jsxs)(KVe,{children:[(0,K.jsx)(`a`,{href:`.`,children:(0,K.jsx)(Nm,{})}),(0,K.jsxs)(qVe,{children:[(0,K.jsx)(R,{heading:1,center:!0,style:{maxWidth:`80%`},children:`Already a Patreon Member?`}),(0,K.jsxs)(JVe,{children:[(0,K.jsxs)(`p`,{children:[`If you have an `,(0,K.jsxs)(`strong`,{children:[`active, paid membership with `,U.AppUI.site.teamName,` on Patreon`]}),`, you can connect your Patreon account to our new membership platform. This will allow you to use all of your benefits in one place.`]}),(0,K.jsx)(`p`,{children:`What to do:`}),(0,K.jsxs)(`ol`,{children:[(0,K.jsxs)(`li`,{children:[(0,K.jsx)(`strong`,{children:`Create`}),` an account on our site`]}),(0,K.jsxs)(`li`,{children:[(0,K.jsx)(`strong`,{children:`Connect`}),` your Patreon account`]}),(0,K.jsxs)(`li`,{children:[(0,K.jsx)(`strong`,{children:`Migrate`}),` your payment method (optional)`]})]}),(0,K.jsxs)(`p`,{style:{marginTop:`20px`},children:[`This connection is only for paid members on Patreon. If your Patreon membership is free or expired,`,` `,(0,K.jsx)(F,{to:`onboarding.register`,className:`underline`,children:`register for a free account`}),` instead.`]}),(0,K.jsx)(Yp,{margin:`20px 0`,width:`330px`,height:`56px`,borderRadius:`36px`,fontSize:`18px`,scaleOnHover:`1.1`}),(0,K.jsxs)(R,{color:`#656565`,textAlign:`center`,fontSize:12,lineHeight:18,children:[`By connecting your Patreon account, you are creating an account with `,U.AppUI.site.teamName,` under Easy Languages GmbH and Seedlang, Inc. You agree to Easy Languages GmbH `,(0,K.jsx)(`a`,{target:`blank`,href:U.AppUI.site.termsOfServiceUrl,children:`Terms of Use`}),` & `,(0,K.jsx)(`a`,{target:`blank`,href:U.AppUI.site.privacyUrl,children:`Privacy Policy`}),` and Seedlang, Incâs `,(0,K.jsx)(`a`,{target:`blank`,href:`https://seedlang.com/terms`,children:`Terms of Use`}),` & `,(0,K.jsx)(`a`,{target:`blank`,href:`https://seedlang.com/privacy`,children:`Privacy Policy`}),`.`]})]})]}),(0,K.jsxs)(YVe,{children:[(0,K.jsx)(n9,{children:(0,K.jsx)(`a`,{target:`_blank`,rel:`noopener noreferrer`,href:`mailto:${U.AppUI.site.supportEmailAddress}`,className:`underline`,children:`If you have any questions, please contact us.`})}),_(U.AppUI.site.paymentMigrationConfig?.infoUrl)&&(0,K.jsx)(n9,{children:(0,K.jsx)(`a`,{target:`_blank`,rel:`noopener noreferrer`,href:U.AppUI.site.paymentMigrationConfig.infoUrl,className:`underline`,children:`Learn More About Our Migration Process`})})]})]})}})||t9;D();var r9,i9;function a9(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var ZVe=N.div` 15959 position: relative; 15960 width: 100%; 15961`,QVe=N(An)` 15962 padding: 10px; 15963 font-size: 16px; 15964 border: 1px solid #888; 15965 border-radius: 10px; 15966 cursor: pointer; 15967 background: white; 15968 box-shadow: 0 2px 4px rgba(0,0,0,0.1); 15969 position: relative; 15970 padding-bottom: 15px; 15971 overflow: hidden; 15972`,$Ve=N.div` 15973 display: flex; 15974 align-items: center; 15975`,o9=N(ha)` 15976 padding: 2px 7px; 15977`,eHe=N.i` 15978 font-family: FontAwesome; 15979 font-size: 20px; 15980 font-weight: bold; 15981 color: #444; 15982`,tHe=N.div` 15983 position: absolute; 15984 top: 100%; 15985 left: 0; 15986 min-width: 100%; 15987 width: max-content; 15988 background: white; 15989 border: 1px solid #888; 15990 border-radius: 10px; 15991 margin-top: 4px; 15992 max-height: 300px; 15993 overflow-y: auto; 15994 z-index: 1000; 15995 box-shadow: 0 2px 4px rgba(0,0,0,0.25); 15996`,nHe=N.div` 15997 padding: 8px 10px; 15998 display: flex; 15999 align-items: center; 16000 cursor: pointer; 16001 white-space: nowrap; 16002 ${e=>!e.selected&&` 16003 &:hover { 16004 background: ${e.accentColor}10; 16005 } 16006 `} 16007 ${e=>e.selected&&` 16008 background: ${e.accentColor}20; 16009 `} 16010`,s9=N.div` 16011 flex: 1; 16012 text-align: right; 16013 color: #5b5b5b; 16014`,rHe=N.div` 16015 position: absolute; 16016 bottom: 0; 16017 left: 0; 16018 right: 0; 16019 height: 5px; 16020 border-bottom-left-radius: 10px; 16021 border-bottom-right-radius: 10px; 16022 overflow: hidden; 16023`,c9=(r9=(i9=class extends V.Component{constructor(e){super(e),this.handleClickOutside=e=>{this.selectRef.current&&!this.selectRef.current.contains(e.target)&&this.setState({isOpen:!1})},this.toggleOpen=()=>{this.props.disabled||this.setState(e=>({isOpen:!e.isOpen}))},this.handleSelect=e=>{this.props.onChange(e),this.setState({isOpen:!1})},this.state={isOpen:!1},this.selectRef=V.createRef()}componentDidMount(){document.addEventListener(`click`,this.handleClickOutside)}componentWillUnmount(){document.removeEventListener(`click`,this.handleClickOutside)}get options(){return H.LearningPathStore.hasIndexData?H.LearningPathStore.indexData.map(e=>({id:e.id,content:e.name,levelAbbreviation:e.levelAbbreviation,levelBadgeColor:e.levelBadgeColor,completedWorksheetsCount:e.completedWorksheetsCount||0,totalWorksheetsCount:e.worksheetsCount||0})):[]}get selectedOption(){return this.options.find(e=>e.id===this.props.value)}render(){return this.selectedOption?(0,K.jsxs)(ZVe,{ref:this.selectRef,children:[(0,K.jsxs)(QVe,{onClick:this.toggleOpen,inline:!0,gap:`xs`,children:[(0,K.jsxs)($Ve,{children:[this.selectedOption.levelAbbreviation&&(0,K.jsx)(o9,{color:this.selectedOption.levelBadgeColor,viewType:`list`,children:this.selectedOption.levelAbbreviation}),this.selectedOption?this.selectedOption.content:`Select a learning path`]}),(0,K.jsx)(eHe,{className:`fa fa-angle-down`}),(0,K.jsxs)(s9,{children:[this.selectedOption.completedWorksheetsCount,` / `,this.selectedOption.totalWorksheetsCount]}),(0,K.jsx)(rHe,{children:(0,K.jsx)(Fn,{background:`#CCC`,current:this.selectedOption.completedWorksheetsCount,total:this.selectedOption.totalWorksheetsCount,width:`100%`,height:`5px`,borderBottomLeftRadius:`10px`,borderBottomRightRadius:`10px`})})]}),this.state.isOpen&&(0,K.jsx)(tHe,{children:this.options.map(e=>(0,K.jsxs)(nHe,{onClick:()=>this.handleSelect(e.id),selected:e.id===this.props.value,accentColor:U.AppUI.site.accentColor,children:[e.levelAbbreviation&&(0,K.jsx)(o9,{color:e.levelBadgeColor,viewType:`list`,children:e.levelAbbreviation}),e.content,(0,K.jsxs)(s9,{children:[e.completedWorksheetsCount,` / `,e.totalWorksheetsCount]})]},e.id))})]}):null}},i9.propTypes={value:Z.default.oneOfType([Z.default.string,Z.default.number]),onChange:Z.default.func.isRequired},i9),a9(r9.prototype,`options`,[E],Object.getOwnPropertyDescriptor(r9.prototype,`options`),r9.prototype),a9(r9.prototype,`selectedOption`,[E],Object.getOwnPropertyDescriptor(r9.prototype,`selectedOption`),r9.prototype),r9),iHe=N.div` 16024 display: flex; 16025 justify-content: space-between; 16026 align-items: center; 16027 flex-wrap: wrap; 16028`,aHe=N.span` 16029 font-size: 14px; 16030 color: #636363; 16031 white-space: nowrap; 16032`,oHe=j(({episodeCode:e})=>U.ExerciseUI.worksheet?(0,K.jsxs)(iHe,{children:[e&&(0,K.jsx)(aHe,{children:(0,K.jsx)(kn,{episodeCode:e})}),((0,W.isPresent)(U.ExerciseUI.worksheet.worksheetTags)||(0,W.isPresent)(U.ExerciseUI.worksheet.episodeCode))&&(0,K.jsx)(Du,{width:null,worksheet:U.ExerciseUI.worksheet,onUpdateFilter:()=>{let e=U.ExerciseUI.worksheetNamespace===`learn`?`videos`:U.ExerciseUI.worksheetNamespace;U.ExerciseUI.routeStore.routeToNamed(`${e}.index`)}})]}):null),l9,u9=N.div` 16033 padding: ${z.md}; 16034 background: white; 16035 border-radius: 10px; 16036 display: flex; 16037 flex-direction: column; 16038 gap: ${z.md}; 16039 width: 100%; 16040 animation: slideUp 0.2s ease-out; 16041 16042 @keyframes slideUp { 16043 from { 16044 opacity: 0; 16045 transform: translateY(20px); 16046 } 16047 to { 16048 opacity: 1; 16049 transform: translateY(0); 16050 } 16051 } 16052`,sHe=N(F)` 16053 font-size: 28px; 16054 line-height: 32px; 16055 font-weight: 900; 16056 16057 &:hover { 16058 text-decoration: underline; 16059 } 16060`,cHe=N.div` 16061 color: #666; 16062 font-size: 15px; 16063`,lHe=N.div` 16064 width: 100%; 16065 display: flex; 16066 justify-content: center; 16067 padding: ${z.md} 0; 16068`,uHe=N.div` 16069 overflow: hidden; 16070 transition: ${e=>e.animate?`height 0.25s ease`:`none`}; 16071`,dHe=N.div` 16072 width: 100%; 16073`,fHe=class extends V.Component{constructor(...e){super(...e),this.state={animate:!1,height:null},this.setContentRef=e=>{this.contentRef=e},this.measure=()=>{if(!this.contentRef)return;let e=this.contentRef.getBoundingClientRect().height;Math.abs(e-(this.state.height||0))>.5&&this.setState({height:e})}}componentDidMount(){this.measure(),window.ResizeObserver&&this.contentRef&&(this.resizeObserver=new window.ResizeObserver(this.measure),this.resizeObserver.observe(this.contentRef))}componentDidUpdate(e){if(e.animationKey!==this.props.animationKey&&!this.state.animate){this.setState({animate:!0},this.measure);return}this.measure()}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){return(0,K.jsx)(uHe,{animate:this.state.animate,style:{height:this.state.height===null?`auto`:`${this.state.height}px`},children:(0,K.jsx)(dHe,{ref:this.setContentRef,children:this.props.children})})}},pHe=j(l9=class extends V.Component{constructor(...e){super(...e),this.handleVideoThumbnailClick=()=>{U.AppUI.siteIsDefault||U.AppUI.createEvent(`memrev - click YouTube video`,Ul({worksheet_id:U.ExerciseUI.worksheet?.id,youtube_video_id:U.ExerciseUI.worksheet?.youtubeVideoId}))}}
16073render(){if(U.ExerciseUI.worksheetStore.hasOutstandingRequests||!U.ExerciseUI.hasWorksheet)return(0,K.jsx)(u9,{children:(0,K.jsx)(P,{})});let e=H.LearningPathWorksheetStore.hasOutstandingRequests||U.ExerciseUI.worksheet.podcastEpisode&&!U.ExerciseUI.worksheet.accessStatus;return(0,K.jsxs)(u9,{children:[(0,K.jsxs)(fHe,{animationKey:U.ExerciseUI.worksheet.id,children:[U.ExerciseUI.formattedYoutubeUrl&&(0,K.jsx)(Ua,{allowFloating:!1,hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasAccess,url:U.ExerciseUI.formattedYoutubeUrl,thumbnailUrl:U.ExerciseUI.worksheet?.imageUrl,placeholderImageUrl:U.ExerciseUI.worksheet?.image?.url,podcastEpisode:U.ExerciseUI.worksheet.podcastEpisode,durationSeconds:U.ExerciseUI.worksheet?.videoDurationSeconds,onPlay:this.handleVideoThumbnailClick,width:`none`}),U.ExerciseUI.worksheet.podcastEpisode&&!U.ExerciseUI.formattedYoutubeUrl&&(0,K.jsx)(iu,{hasAccess:U.ExerciseUI.worksheet?.accessStatus?.hasAccess,noAccessReason:U.ExerciseUI.worksheet?.accessStatus?.reason,imageUrl:U.ExerciseUI.worksheet.imageUrl,loading:e,podcast:U.ExerciseUI.worksheet.podcastEpisode.podcast,podcastEpisode:U.ExerciseUI.worksheet.podcastEpisode,previewLayout:!0})]}),(0,K.jsxs)(An,{gap:`xs`,alignItems:`stretch`,children:[(0,K.jsx)(sHe,{to:{name:`learn.show`,params:{worksheetId:U.ExerciseUI.worksheet.routeId}},children:U.ExerciseUI.worksheet.nameWithPublished}),U.ExerciseUI.worksheet.podcastEpisode?.subtitle&&(0,K.jsx)(cHe,{children:U.ExerciseUI.worksheet.podcastEpisode.subtitle}),(0,K.jsx)(oHe,{episodeCode:U.ExerciseUI.worksheet.episodeCode})]}),(0,K.jsxs)(An,{gap:`sm`,alignItems:`stretch`,children:[H.LearningPathWorksheetStore.hasOutstandingRequests?(0,K.jsx)(lHe,{children:(0,K.jsx)(P,{})}):(0,K.jsx)(An,{inline:!0,gap:`xs`,children:(0,K.jsx)(_3,{worksheetId:U.ExerciseUI.worksheet.routeId,params:U.ExerciseUI.routeStore.params,showCustomTabs:!1,small:!0,activeColor:`#FFF`,activeBackground:U.AppUI.site.accentColor,alwaysShowDiscuss:!0,alwaysShowDownloads:!0})}),(0,K.jsx)(Q3,{padding:`0`,exercises:U.ExerciseUI.worksheetStore.showData.exercises,worksheetId:U.ExerciseUI.worksheet?.routeId,useWorksheetRoute:!0})]})]})}})||l9,mHe=N.div` 16074 display: flex; 16075 flex-direction: column; 16076 align-items: center; 16077 gap: ${z[`2xl`]}; 16078 justify-content: center; 16079 background: white; 16080 border-radius: 10px; 16081 overflow: ${e=>e.hasBanner?`hidden`:`visible`}; 16082 16083 padding: 0 0 ${z.xl} 0; 16084 16085 @media (max-width: 960px) { 16086 border-radius: 0; 16087 gap: ${z.lg}; 16088 } 16089`,hHe=N.img` 16090 width: 100%; 16091 margin: 0 0 -${z.md} 0; 16092 display: block; 16093 object-fit: cover; 16094 max-height: 300px; 16095`,gHe=N.div` 16096 display: flex; 16097 flex-direction: column; 16098 gap: ${z.sm}; 16099 justify-content: center; 16100 16101 padding: ${e=>e.hasBanner?z.md:z[`2xl`]} 0 0 0; 16102 16103 @media (max-width: 960px) { 16104 padding: ${e=>e.hasBanner?z.md:z.xl} ${z.xl} 0 ${z.xl}; 16105 } 16106 16107 & > * { 16108 margin: 0; 16109 } 16110 16111 @media (min-width: 551px) { 16112 align-items: center; 16113 } 16114`,_He=N.h1` 16115 font-size: 40px; 16116 line-height: normal; 16117 16118 ${e=>e.hasBanner&&` 16119 @media (max-width: 960px) { 16120 font-size: 32px; 16121 } 16122 `} 16123`,vHe=N.div` 16124 font-size: 16px; 16125`,d9=` 16126 flex-direction: column; 16127 gap: ${z.sm}; 16128 padding: 0 ${z.md}; 16129`,yHe=N.div` 16130 display: flex; 16131 flex-wrap: wrap; 16132 gap: ${z.md}; 16133 justify-content: center; 16134 // 1-3, 5-6 all look good with 1000px, only exception for 4 cards to be 2x2 16135 max-width: ${e=>e.pathCount===4?`800px`:`1000px`}; 16136 16137 ${e=>e.viewType===`list`?d9:` 16138 @media (max-width: 960px) { 16139 ${d9} 16140 } 16141 `} 16142`,f9=j(({learningPaths:e,signedIn:t,onLearningPathClick:n,viewType:r})=>{if(!e||e.length===0)return null;let i=t?U.AppUI.site.learningPathsWelcomeTitleSignedIn:U.AppUI.site.learningPathsWelcomeTitleSignedOut,a=t?U.AppUI.site.learningPathsWelcomeSubtitleSignedIn:U.AppUI.site.learningPathsWelcomeSubtitleSignedOut;return(0,K.jsxs)(mHe,{hasBanner:(0,W.isPresent)(U.AppUI.site.heroBanner?.image?.url),children:[(0,W.isPresent)(U.AppUI.site.heroBanner?.image?.url)&&(0,K.jsx)(hHe,{src:U.AppUI.site.heroBanner?.image?.url,alt:``}),(0,K.jsxs)(gHe,{hasBanner:(0,W.isPresent)(U.AppUI.site.heroBanner?.image?.url),children:[(0,K.jsx)(_He,{hasBanner:(0,W.isPresent)(U.AppUI.site.heroBanner?.image?.url),children:i}),(0,K.jsx)(vHe,{children:a})]}
16142),(0,K.jsx)(yHe,{pathCount:e.length,viewType:r,children:e.map(e=>(0,K.jsx)(ma,{title:e.name,subtitle:e.subtitle,imageUrl:e.imageUrl,levelAbbreviation:e.levelAbbreviation,levelBadgeColor:e.levelBadgeColor,onClick:(0,W.isPresent)(n)?()=>n(e.id):void 0,viewType:r},e.id))})]})}),p9,m9=e=>e.scrollTop<=0,bHe=e=>Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight,xHe=N.div` 16143 height: 100vh; 16144 padding-bottom: 50px; 16145 overflow-y: auto; 16146 overscroll-behavior: auto; 16147 scrollbar-width: none; 16148 -ms-overflow-style: none; 16149 16150 &::-webkit-scrollbar { 16151 display: none; 16152 } 16153`,SHe=j(p9=class extends V.Component{constructor(...e){super(...e),this.handleWheel=e=>{let t=document.getElementById(`scrollTarget`),n=document.querySelector(`.app`),r=document.getElementById(this.props.secondaryTargetId);if(!t||!n||!r)return;let i=e.deltaY,a=i>0;!a&&(!m9(n)||m9(t))||a&&(bHe(t)||r.getBoundingClientRect().bottom>window.innerHeight)||(e.preventDefault(),t.scrollBy({top:i,behavior:`auto`}))}}componentDidMount(){setTimeout(()=>this.attachEventListeners(),0)}componentWillUnmount(){this.removeEventListeners()}attachEventListeners(){let e=document.body;if(!e){setTimeout(()=>this.attachEventListeners(),100);return}e.addEventListener(`wheel`,this.handleWheel,{passive:!1})}removeEventListeners(){let e=document.body;e&&e.removeEventListener(`wheel`,this.handleWheel)}render(){return(0,K.jsx)(xHe,{id:`scrollTarget`,children:this.props.children})}})||p9,h9=N.div` 16154 display: grid; 16155 16156 > * { 16157 position: relative; 16158 } 16159 16160 > *::after { 16161 content: ''; 16162 position: absolute; 16163 display: block; 16164 position: absolute; 16165 background-size: cover; 16166 background-repeat: no-repeat; 16167 } 16168 16169 > *:last-child::after { 16170 display: none; 16171 } 16172 16173 grid-template-columns: 1fr; 16174 gap: 40px; 16175 max-width: 89%; 16176 16177 > *:nth-of-type(even) { 16178 transform: translateX(12.5%); 16179 } 16180 16181 > *::after { 16182 width: 50px; 16183 height: 40px; 16184 top: 100%; 16185 } 16186 16187 > *:nth-of-type(odd)::after { 16188 background-image: url(/images/path_graphics/small_right.svg); 16189 left: 45%; 16190 } 16191 16192 > *:nth-of-type(even)::after { 16193 background-image: url(/images/path_graphics/small_left.svg); 16194 right: 45%; 16195 } 16196`,g9,CHe=N.button` 16197 position: relative; 16198 background: none; 16199 border: none; 16200 padding: 0; 16201 cursor: pointer; 16202`,wHe=N.div` 16203 position: relative; 16204 border-radius: 15px; 16205 background: ${e=>e.selected?e.selectedColor:`white`}; 16206 border: 5px solid ${e=>e.selected?e.selectedColor:`white`}; 16207 overflow: hidden; 16208 transition: opacity 0.2s linear; 16209 16210 &:hover { 16211 opacity: ${e=>e.selected?1:.75}; 16212 } 16213`,THe=N.div` 16214 position: relative; 16215 width: 100%; 16216`,EHe=N.img` 16217 width: 100%; 16218 border-radius: 10px; 16219 border: 5px solid white; 16220 display: block; 16221 aspect-ratio: 242 / 140; 16222 object-fit: cover; 16223`,DHe=N.div` 16224 position: absolute; 16225 inset: 0; 16226 background-image: linear-gradient( 16227 to right top, 16228 rgba(19, 171, 94, 0.53), 16229 rgba(61, 188, 85, 0.55), 16230 rgba(95, 205, 72, 0.55), 16231 rgba(131, 220, 54, 0.55), 16232 rgba(168, 235, 18, 0.54) 16233 ); 16234`,OHe=e=>!e||typeof e!=`string`?e:e.replace(`maxres`,`hq`),kHe=j(g9=class extends V.Component{render(){return this.props.worksheets.length===0?(0,K.jsx)(`p`,{children:`No posts found in this learning path.`}):(0,K.jsx)(h9,{children:this.props.worksheets.map(e=>{let t=e.worksheet;return(0,K.jsx)(CHe,{id:t?.id,onClick:()=>this.props.onWorksheetClick(t?.id),children:(0,K.jsx)(wHe,{selected:t?.id===U.ExerciseUI.worksheetId,selectedColor:U.AppUI.site.accentColor,children:(0,K.jsxs)(THe,{children:[(0,K.jsx)(N8,{type:`free`,worksheet:t,marginTop:`5px`}),t?.progressPercentage===100&&(0,K.jsx)(DHe,{}),t?.podcastEpisode?(0,K.jsx)(F8,{worksheet:t,border:`5px solid white`}):(0,K.jsx)(EHe,{src:OHe(t?.imageUrl),alt:t?.name})]})})},e.id)})})}})||g9,_9,AHe=j(_9=class extends V.Component{render(){return this.props.worksheets.length===0?(0,K.jsx)(`p`,{children:`No posts found in this learning path.`}):(0,K.jsx)(h9,{children:this.props.worksheets.map(e=>(0,K.jsx)(V8,{worksheet:e.worksheet,hidePinIcon:!0},e.id))})}})||_9;D();var v9,y9,b9,x9;function S9(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function C9(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var w9=N.div` 16235 margin: 0 auto -10px auto !important; 16236 display: flex; 16237 flex-direction: column; 16238 gap: ${z.md}; 16239 width: 100%; 16240`,jHe=N.div` 16241 flex: 2; 16242 padding-bottom: ${z.md}; 16243`,MHe=N.div` 16244 flex: 1; 16245`,NHe=N.div` 16246 padding: ${z.md} 0; 16247 16248 @media (max-width: 960px) { 16249 padding: 0; 16250 } 16251`,PHe=N.div` 16252 display: flex; 16253 align-items: start; 16254 gap: ${z.lg}; 16255 margin: auto; 16256 16257 @media (max-width: 699px) { 16258 grid-template-columns: 1fr; 16259 } 16260`,T9=N.div` 16261 width: 100%; 16262 display: flex; 16263 justify-content: center; 16264`,FHe=M(j(v9=(y9=class extends V.Component{constructor(...e){super(...e),S9(this,`selectedWorksheetId`,b9,this),S9(this,`showWelcomeScreen`,x9,this),this.trackedEvents=new Set,this.loadLearningPath=e=>{H.LearningPathStore.getShow({ids:{learningPathId:e}},t=>{H.LearningPathStore.setShowData(t),this.trackViewLearn(t),this.selectedWorksheetId?this.loadSelectedWorksheet():this.loadFirstWorksheet(e)})},this.loadFirstWorksheet=e=>{if(this.worksheets.length>0){let t=this.worksheets[0].worksheet;this.setWorksheet(t.id,t,e)}},this.loadSelectedWorksheet=()=>{let e=this.worksheets.find(e=>
16264e.worksheet?.id===this.selectedWorksheetId)?.worksheet;e?(this.setWorksheet(e.id,e),this.scrollToSelectedWorksheet()):this.loadFirstWorksheet(this.selectedLearningPathId)},this.loadSelectedWorksheetFromStorage=e=>{let t=`learningPath_${e}_selectedWorksheet`,n=localStorage.getItem(t);n&&(this.selectedWorksheetId=n)},this.setSelectedWorksheetId=(e,t)=>{this.selectedWorksheetId=e;let n=`learningPath_${t}_selectedWorksheet`;localStorage.setItem(n,e)},this.setWorksheet=(e,t,n)=>{n&&this.setSelectedWorksheetId(e,n);let r=U.ExerciseUI.worksheetStore.showData;(!r||r.id!==e)&&(U.ExerciseUI.set(`worksheetId`,e),U.ExerciseUI.worksheetStore.setShowData(t)),this.enrichWorksheet(e)},this.handleLearningPathChange=e=>{this.showWelcomeScreen=!1,H.LearningPathStore.clearShowData(),this.selectedWorksheetId=null,U.AppUI.cookieStore.set(`selectedLearningPathId`,e),this.loadSelectedWorksheetFromStorage(e),this.loadLearningPath(e),this.updateUserGroupLearningPath(e)},this.updateUserGroupLearningPath=e=>{U.AppUI.user.currentUserGroup&&(U.AppUI.user.currentUserGroup.learningPathId=e,U.AppUI.userGroupStore.update({ids:{userGroupId:U.AppUI.user.currentUserGroup.id},data:{learningPathId:e}}))},this.enrichWorksheet=e=>{let t=U.ExerciseUI.worksheetStore.showData;if(t&&t.id===e){let e=t.exercises&&t.exercises.length>0,n=t.worksheetTags&&t.worksheetTags.length>0;if(e||n)return}H.LearningPathWorksheetStore.enrichWorksheet({ids:{worksheetId:e}},t=>{let n=U.ExerciseUI.worksheetStore.showData;n&&n.id!==e||(t.exercises&&(n.exercises=t.exercises.map(e=>new pT.Exercise(e))),t.worksheetTags&&(n.worksheetTags=t.worksheetTags.map(e=>new pT.WorksheetTag(e))),t.podcastEpisode&&(n.podcastEpisode=new pT.PodcastEpisode(t.podcastEpisode)),t.accessStatus&&(n.accessStatus=t.accessStatus),n.hasPublishedVocab=!!t.hasPublishedVocab)})},this.handleWorksheetClick=e=>{let t=this.worksheets.find(t=>t.worksheet?.id===e)?.worksheet;t&&this.setWorksheet(e,t,this.selectedLearningPathId)},this.trackEventOnce=(e,t)=>{this.trackedEvents.has(e)||(this.trackedEvents.add(e),U.AppUI.createEvent(e,t))},this.trackViewLearn=(e=null)=>{this.trackEventOnce(`memrev - view learn`,Ul({learning_path_name:e?.name,learning_path_id:e?.id,level_abbreviation:e?.levelAbbreviation}))}}componentDidMount(){if(U.AppUI.userIsSignedInAndNotGuest){let e=U.AppUI.user.currentUserGroup?.learningPathId;e&&U.AppUI.cookieStore.set(`selectedLearningPathId`,e)}H.LearningPathStore.getIndex({filters:{published:!0},queryStrings:{include_progress:!!this.selectedLearningPathId}},e=>{H.LearningPathStore.setIndexData(e);let t=this.selectedLearningPathId;if(!t||!e.some(e=>e.id===t)){U.AppUI.cookieStore.set(`selectedLearningPathId`,null),this.trackViewLearn();return}if(this.loadSelectedWorksheetFromStorage(t),new URLSearchParams(window.location.search).has(`welcome`)){this.showWelcomeScreen=!0,this.trackViewLearn();return}this.loadLearningPath(t)})}scrollToSelectedWorksheet(){setTimeout(()=>{let e=document.getElementById(this.selectedWorksheetId);if(!e)return;let t=document.getElementById(`scrollTarget`);t&&(t.scrollTop=e.offsetTop-t.offsetTop)},100)}get worksheets(){return H.LearningPathStore.showData?.learningPathWorksheets||[]}get selectedLearningPathId(){return U.AppUI.cookieStore.selectedLearningPathId}render(){return H.LearningPathStore.hasIndexData?!this.selectedLearningPathId||this.showWelcomeScreen?(0,K.jsx)(w9,{children:(0,K.jsx)(NHe,{children:(0,K.jsx)(f9,{learningPaths:H.LearningPathStore.indexData||[],signedIn:!!U.AppUI.userIsSignedInAndNotGuest,onLearningPathClick:this.handleLearningPathChange,viewType:U.AppUI.site.learningPathsWelcomeViewType})})}):H.LearningPathStore.hasShowData?(0,K.jsxs)(w9,{children:[(0,K.jsx)(c9,{value:this.selectedLearningPathId,onChange:this.handleLearningPathChange}),(0,K.jsxs)(PHe,{children:[(0,K.jsx)(Xl,{children:(0,K.jsx)(jHe,{id:`worksheetPreviewWrapper`,children:(0,K.jsx)(pHe,{})})}),(0,K.jsx)(MHe,{children:(0,K.jsx)(SHe,{secondaryTargetId:`worksheetPreviewWrapper`,children:U.AppUI.layout.isMobile?(0,K.jsx)(AHe,{worksheets:this.worksheets}):(0,K.jsx)(kHe,{worksheets:this.worksheets,onWorksheetClick:this.handleWorksheetClick})})})]})]}):(0,K.jsxs)(w9,{children:[(0,K.jsx)(c9,{value:this.selectedLearningPathId,onChange:this.handleLearningPathChange}),(0,K.jsx)(T9,{children:(0,K.jsx)(P,{})})]}):(0,K.jsx)(T9,{children:(0,K.jsx)(P,{})})}},b9=C9(y9.prototype,`selectedWorksheetId`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x9=C9(y9.prototype,`showWelcomeScreen`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C9(y9.prototype,`worksheets`,[E],Object.getOwnPropertyDescriptor(y9.prototype,`worksheets`),y9.prototype),C9(y9.prototype,`selectedLearningPathId`,[E],Object.getOwnPropertyDescriptor(y9.prototype,`selectedLearningPathId`),y9.prototype),y9))||v9),IHe=`signed-out`,LHe=`signed-in-without-membership`,E9=(e,t,n,r)=>{if(e===`external_url`&&(0,W.isPresent)(n))return n;if(e===`page`&&(0,W.isPresent)(t)){let e=r.find(e=>e.id===t);return e?`/pages/${e.slug}`:null}return null},D9=e=>`membership-type:${e}`,O9=e=>{/^https?:\/\//i.test(e)?window.location.assign(e):e!==window.location.pathname&&U.AppUI.routeStore.routeTo(e)},RHe=(e,t,n)=>{let r=[],i=E9(e.signedOutLinkType,e.signedOutPageId,e.signedOutExternalUrl,n);i&&r.push({value:IHe,label:`Signed Out`,destination:i});let a=E9(e.signedInLinkType,e.signedInPageId,e.signedInExternalUrl,n);return a&&r.push({value:LHe,label:`Signed In without Membership`,destination:a}),t.forEach(t=>{let i=e.navigationItemMembershipTypes?.find(e=>e.membershipTypeId===t.id),a=i&&E9(i.linkType,i.pageId,i.externalUrl,n);a&&r.push({value:D9(t.id),label:t.name,destination:a})}),r},k9=(e,t)=>{let n=w_().value;if(e.some(e=>e.value===n))return n;let r=U.AppUI.user.currentUserGroup?.membershipTypeId,i=t.membershipTypes?.some(e=>e.id===r),a=D9(r);return i&&e.some(e=>e.value===a)?a:e[0]?.value??null};function zHe({membershipTypes:e,navigationItem:t,page:n,pages:r}){let i=RHe(t,e,r),[a,o]=(0,V.useState)(()=>k9(i,n)),s=i.some(e=>e.value===a)?a:k9(i,n),c=i.find(e=>e.value===s)?.destination;return(0,V.useEffect)(()=>{s&&T_(s,t.id)},[t.id,s]),(0,V.useEffect)(()=>{let e=window.location.pathname,t=e===`/pages/${n.slug}`||e===`/pages/${n.id}`;c&&t&&O9(c)},[n.id,n.slug,c]),(0,K.jsx)(AW,{options:i,value:s,onChange:e=>{let n=i.find(t=>t.value===e);n&&(o(e),T_(e,t.id),O9(n.destination))}})}D();var A9,j9;function M9(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var BHe=N.div` 16265 margin-top: ${e=>e.marginTop}; 16266 margin-bottom: ${e=>e.marginBottom}; 16267 height: ${e=>e.hasAccess?null:`100%`}; 16268 display: ${e=>e.hasAccess?null:`flex`}; 16269 align-items: ${e=>e.hasAccess?null:`center`}; 16270 justify-content: ${e=>e.hasAccess?null:`center`}; 16271 padding: 10px 20px; 16272 background: ${e=>
16272e.transparentBackground?`transparent`:`#FFF`}; 16273 border-radius: ${e=>e.borderRadius}; 16274 h1,h2 { 16275 line-height: 32px; 16276 } 16277 li { 16278 margin-left: 20px; 16279 list-style-type: disc; 16280 } 16281 a { 16282 text-decoration: underline; 16283 word-break: break-word; 16284 } 16285 a:hover { 16286 text-decoration: none; 16287 } 16288 p { 16289 margin: 10px 0!important; 16290 } 16291 img { 16292 max-width: 100%; 16293 height: auto; 16294 } 16295 .no-access-content { 16296 max-width: 500px; 16297 text-align: center; 16298 } 16299`,VHe=N.div` 16300 font-size: 11px; 16301 text-align: center; 16302 padding: 10px 5px 0 5px; 16303`,N9=pf(j(A9=(j9=class extends V.Component{constructor(...e){super(...e),this.lastTrackedPageId=null,this.getPage=()=>{H.PageStore.getShow({ids:{pageId:this.props.routeParams.pageId||`home`}})}}componentDidMount(){H.PageStore.getIndex(),H.NavigationItemStore.getIndex(),U.AppUI.userIsGroupAdmin&&H.MembershipTypeStore.getIndex(),this.getPage()}componentDidUpdate(e){this.props.routeParams.pageId!==e.routeParams.pageId&&this.getPage(),this.page?.id&&this.page.id!==this.lastTrackedPageId&&(this.lastTrackedPageId=this.page.id,U.AppUI.createEvent(`memrev - view page`,Ul({page_name:this.page.title})))}componentWillUnmount(){H.PageStore.clearShowData()}get page(){return H.PageStore.showData}get hasAccess(){return(0,W.isBlank)(this.page)?!1:this.page.membershipTypePages.length===0&&this.page.showToNonMembers?!0:U.AppUI.userIsGroupAdmin||!U.AppUI.user?.isMember&&this.page.showToNonMembers||U.AppUI.user.isMember&&this.pageHasUserMembershipType}get pageHasUserMembershipType(){return(0,W.isPresent)(this.page)&&this.page.membershipTypes.map(e=>e.id).includes(U.AppUI.user.currentUserGroup?.membershipTypeId)}get navigationItems(){return this.page?.id?H.NavigationItemStore.indexData?.filter(e=>e.signedOutPageId===this.page.id||e.signedInPageId===this.page.id||e.navigationItemMembershipTypes?.some(e=>e.pageId===this.page.id)):[]}get navigationItem(){let e=w_(),t=U.AppUI.clickedLinkId||e.navigationItemId;return this.navigationItems.find(e=>e.id===t)||this.navigationItems.find(t=>{if(e.value===`signed-out`)return t.signedOutPageId===this.page.id;if(e.value===`signed-in-without-membership`)return t.signedInPageId===this.page.id;let n=e.value?.replace(`membership-type:`,``);return t.navigationItemMembershipTypes?.some(e=>e.membershipTypeId===n&&e.pageId===this.page.id)})||this.navigationItems[0]||null}get showViewAsSelect(){return U.AppUI.userIsGroupAdmin&&H.MembershipTypeStore.initialRequestReceived&&!H.MembershipTypeStore.hasOutstandingRequests&&H.PageStore.initialRequestReceived&&!H.PageStore.hasOutstandingRequests&&H.NavigationItemStore.initialRequestReceived&&!H.NavigationItemStore.hasOutstandingRequests&&(0,W.isPresent)(this.navigationItem)}render(){return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(SV,{children:this.page?.title}),this.showViewAsSelect&&(0,K.jsx)(zHe,{membershipTypes:H.MembershipTypeStore.indexData??[],navigationItem:this.navigationItem,page:this.page,pages:H.PageStore.indexData??[]},this.navigationItem.id),(0,K.jsxs)(BHe,{marginTop:U.AppUI.layout.isMobile?`15px`:null,marginBottom:U.AppUI.layout.isMobile?`60px`:null,borderRadius:U.AppUI.layout.isMobile?`0`:`10px`,hasAccess:this.hasAccess,transparentBackground:this.page.transparentBackground,children:[H.PageStore.requestCounter>0&&(0,K.jsx)(P,{background:U.AppUI.site.accentColor}),!this.hasAccess&&(0,W.isPresent)(this.page.membershipTypes)&&(0,K.jsxs)(`div`,{className:`no-access-content`,children:[(0,K.jsx)(`h3`,{children:`Sorry, you don't have access to this page!`}),(0,K.jsx)(`p`,{children:`Please upgrade your membership level to access this page.`}),(0,K.jsx)(ql,{})]}),this.page.content&&(0,K.jsx)(`div`,{className:`page-content`,dangerouslySetInnerHTML:{__html:this.hasAccess&&this.page.content||``}}
16303),U.AppUI.userIsGroupAdmin&&(0,K.jsx)(VHe,{children:(0,W.isPresent)(this.page)&&(0,W.isPresent)(U.AppUI.site?.groupId)&&(0,K.jsx)(F,{className:`underline`,style:{lineHeight:`10px`},to:{name:`creator.site_pages.edit`,params:{pageId:this.page?.id,groupId:U.AppUI.site.groupId}},children:`Edit Page`})})]})]})}},M9(j9.prototype,`page`,[E],Object.getOwnPropertyDescriptor(j9.prototype,`page`),j9.prototype),M9(j9.prototype,`hasAccess`,[E],Object.getOwnPropertyDescriptor(j9.prototype,`hasAccess`),j9.prototype),M9(j9.prototype,`pageHasUserMembershipType`,[E],Object.getOwnPropertyDescriptor(j9.prototype,`pageHasUserMembershipType`),j9.prototype),M9(j9.prototype,`navigationItems`,[E],Object.getOwnPropertyDescriptor(j9.prototype,`navigationItems`),j9.prototype),M9(j9.prototype,`navigationItem`,[E],Object.getOwnPropertyDescriptor(j9.prototype,`navigationItem`),j9.prototype),M9(j9.prototype,`showViewAsSelect`,[E],Object.getOwnPropertyDescriptor(j9.prototype,`showViewAsSelect`),j9.prototype),j9))||A9);D();var P9,F9;function HHe(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var UHe=N.div` 16304 padding: 10px; 16305 background: ${e=>e.transparentBackground?`transparent`:`#FFF`}; 16306 li { 16307 list-style-type: circle; 16308 margin: 0 0 0 50px; 16309 } 16310`,WHe=pf(j(P9=(F9=class extends V.Component{constructor(...e){super(...e),this.getPage=()=>{H.PageStore.showBySlug({slug:this.props.routeParams.slug})}}componentDidMount(){this.getPage()}componentDidUpdate(e){this.props.routeParams.slug!==e.routeParams.slug&&this.getPage()}componentWillUnmount(){H.PageStore.clearShowData()}get page(){return H.PageStore.showData}render(){return(0,K.jsxs)(UHe,{transparentBackground:this.page.transparentBackground,children:[(0,K.jsx)(`h3`,{children:this.page.title}),!(0,G.isEmpty)(this.page)&&(0,K.jsx)($i,{markdown:String(this.page.contentMd)})]})}},HHe(F9.prototype,`page`,[E],Object.getOwnPropertyDescriptor(F9.prototype,`page`),F9.prototype),F9))||P9);D();var I9,L9,R9;function GHe(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function z9(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var KHe=N.div` 16311`,B9=N.div` 16312 img { 16313 max-width: 100%; 16314 border-bottom-left-radius: 10px; 16315 border-bottom-right-radius: 10px; 16316 } 16317`,qHe=N.div` 16318 padding: 0 20px 20px 20px; 16319`,JHe=N.div` 16320 margin-top: 5px; 16321 font-size: 11px; 16322 text-decoration: underline; 16323 text-align: center; 16324 padding: 5px; 16325`,YHe=N.div` 16326 padding: 10px 0 20px 0; 16327 background: #FFF; 16328 border-bottom-left-radius: 10px; 16329 border-top-right-radius: 10px; 16330 border-bottom-right-radius: 10px; 16331 min-height: 180px; 16332 li { 16333 margin-left: 20px; 16334 list-style-type: disc; 16335 } 16336 a { 16337 text-decoration: underline; 16338 } 16339 a:hover { 16340 text-decoration: none; 16341 } 16342 p { 16343 margin: 10px 0!important; 16344 } 16345`,V9=N.div` 16346 display: flex; 16347 justify-content: center; 16348`,XHe=pf(j(I9=(L9=class extends V.Component{constructor(e){super(e),GHe(this,`loading`,R9,this),this.afterGetWorksheet=e=>{this.loading=!1,U.ExerciseUI.worksheetStore.setShowData(e)},this.blockedUntilMigrated=e=>e?.blockIfNotMigrated&&U.AppUI.shouldBlockPerksForMigration,this.hasAccess=e=>e?.hasAccess!==!1&&!this.blockedUntilMigrated(e),this.noAccessReason=e=>e?.accessReason||(this.blockedUntilMigrated(e)?`migrate`:void 0),U.ExerciseUI.worksheetStore.hasShowData||(this.loading=!0,U.ExerciseUI.worksheetStore.getShow({ids:{worksheetId:this.props.params.worksheetId}},this.afterGetWorksheet))}get customTab(){return U.ExerciseUI.hasWorksheet&&U.ExerciseUI.worksheet.customTabs?.find(e=>e.slug===this.props.params.customTabSlug)}render(){return(0,K.jsxs)(KHe,{children:[(0,K.jsxs)(YHe,{children:[this.loading&&(0,K.jsx)(P,{background:U.AppUI.site.accentColor}),!this.loading&&(0,K.jsxs)(K.Fragment,{children:[!this.hasAccess(this.customTab)&&(0,K.jsx)(ql,{reason:this.noAccessReason(this.customTab)}),this.hasAccess(this.customTab)&&this.customTab&&(0,K.jsxs)(K.Fragment,{children:[this.customTab.content&&(0,K.jsx)(qHe,{dangerouslySetInnerHTML:{__html:this.customTab.content||``}}
16348),this.customTab.imageLinkUrl&&(0,W.isPresent)(this.customTab.image)&&(0,K.jsx)(`a`,{href:this.customTab.imageLinkUrl,target:`_blank`,rel:`noopener noreferrer`,children:this.customTab.image&&(0,K.jsx)(B9,{children:(0,K.jsx)(`img`,{src:this.customTab.image.url,alt:``})})}),(0,W.isBlank)(this.customTab.imageLinkUrl)&&(0,W.isPresent)(this.customTab.image)&&(0,K.jsx)(B9,{children:(0,K.jsx)(`img`,{src:this.customTab.image.url,alt:``})}),this.customTab.formattedYoutubeUrl&&(0,K.jsx)(V9,{children:(0,K.jsx)(Na,{hasAccess:this.blockedUntilMigrated(this.customTab),url:this.customTab.formattedYoutubeUrl,borderRadius:`10px`})}),this.customTab.buttonUrl&&this.customTab.buttonText&&(0,K.jsx)(V9,{children:(0,K.jsx)(I,{height:`50px`,fontSize:`16px`,borderRadius:`10px`,background:U.AppUI.site.accentColor,scaleOnHover:U.AppUI.layout.isMobile?null:`1.03`,padding:`5px 20px`,minWidth:`100px`,children:(0,K.jsx)(`a`,{href:this.customTab.buttonUrl,target:`_blank`,rel:`noopener noreferrer`,style:{color:`#FFF`,textDecorationLine:`none`},children:this.customTab.buttonText})})})]})]})]}),!U.AppUI.siteIsDefault&&U.ExerciseUI.user.anyAdmin&&(0,W.isPresent)(U.ExerciseUI.worksheet)&&(0,W.isPresent)(U.ExerciseUI.worksheet.groupId)&&(0,K.jsxs)(JHe,{children:[this.customTab&&(0,W.isBlank)(this.customTab.worksheetId)&&(0,K.jsx)(F,{to:{name:`creator.custom_tabs.edit`,params:{groupId:U.ExerciseUI.worksheet.groupId,customTabId:this.customTab.customTabId}},children:`Admin Link (Custom Tab)`}),(0,W.isPresent)(this.customTab?.worksheetId)&&(0,K.jsx)(F,{to:{name:`creator.worksheets.edit`,params:{groupId:U.ExerciseUI.worksheet.groupId,worksheetId:this.customTab.worksheetId}},children:`Admin Link`})]})]})}},R9=z9(L9.prototype,`loading`,[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z9(L9.prototype,`customTab`,[E],Object.getOwnPropertyDescriptor(L9.prototype,`customTab`),L9.prototype),L9))||I9);a();var ZHe=e=>t=>(0,K.jsx)(V.Suspense,{fallback:(0,K.jsx)(`div`,{children:`Loading...`}),children:(0,K.jsx)(e,{...t})}),QHe=Object.assign({
16348"./pages/creator/analytics/analytics_constants.js":()=>o(()=>import(`./analytics_constants-D8BGxQWI.js`),[]),
16348"./pages/creator/analytics/analytics_creator.jsx":()=>o(()=>import(`./analytics_creator-GQOeB4rF.js`),__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70])),
16348"./pages/creator/analytics/analytics_date_inputs.jsx":()=>o(()=>import(`./analytics_date_inputs-B_fSz9yu.js`),__vite__mapDeps([46,5,16,8,12,29,14,21,23])),
16348"./pages/creator/analytics/chart_type_toggle_button.jsx":()=>o(()=>import(`./chart_type_toggle_button-C6eBuoPV.js`),__vite__mapDeps([47,5,16,8,12,11,23,39])),
16348"./pages/creator/analytics/collapsible_section.jsx":()=>o(()=>import(`./collapsible_section-BMEtP-Qc.js`).then(e=>e.n),__vite__mapDeps([61,5,16,8,12,11,23,39])),
16348"./pages/creator/analytics/continents_pie_chart.jsx":()=>o(()=>import(`./continents_pie_chart-DF3kaJhs.js`),__vite__mapDeps([48,5,23,12,49,16,8,39,50,51,25,26,27,13,52,53,11])),
16348"./pages/creator/analytics/countries_pie_chart.jsx":()=>o(()=>import(`./countries_pie_chart-DdiU2kEs.js`),__vite__mapDeps([54,5,23,12,49,16,8,39,50,51,25,26,27,13,52,53,11])),
16348"./pages/creator/analytics/country_code_with_flag.jsx":()=>o(()=>import(`./country_code_with_flag-1Y-m-5kT.js`),__vite__mapDeps([49,5,16,8,12,23,39])),
16348"./pages/creator/analytics/creator_analytics_pie_chart.jsx":()=>o(()=>import(`./creator_analytics_pie_chart-BXsTT8Bh.js`).then(e=>e.r),__vite__mapDeps([50,5,16,8,12,51,25,26,27,13,52,53,11,23,39])),
16348"./pages/creator/analytics/exit_survey_reasons_pie_chart.jsx":()=>o(()=>import(`./exit_survey_reasons_pie_chart-BXn5x88e.js`),__vite__mapDeps([55,5,16,8,12,51,25,26,27,13,52,53,56,11,23,50,39])),
16348"./pages/creator/analytics/free_membership_access_callout.jsx":()=>o(()=>import(`./free_membership_access_callout-jXq3q7mr.js`),__vite__mapDeps([57,5,16,8,12,11,23,39])),
16348"./pages/creator/analytics/notes_section.jsx":()=>o(()=>import(`./notes_section-DyvWRhNT.js`),__vite__mapDeps([58,5,6,7,8,9,10,11,12,13,14,15,16,59,32,23,33,34,38,21,60,36,29,39,61])),
16348"./pages/creator/analytics/payment_migration_counts.jsx":()=>o(()=>import(`./payment_migration_counts-CEBgU2Ez.js`),__vite__mapDeps([62,5,6,7,8,9,10,11,12,13,14,15,16,63,32,23,64,36,34,65,66,67,29,21])),
16348"./pages/creator/analytics/price_selection.jsx":()=>o(()=>import(`./price_selection-BnfoGka2.js`),__vite__mapDeps([71,5,16,8,12,9,11,72,32,23,73,74,60,36,34,33,75,76,77,78,29,14,21,39])),
16348"./pages/creator/analytics/report_table.jsx":()=>o(()=>import(`./report_table-cDFDtxAL.js`),__vite__mapDeps([68,5,29,14,21,12,23,69,16,8,45,49,39])),
16348"./pages/creator/analytics/table_tabs.jsx":()=>o(()=>import(`./table_tabs-B57xjQxz.js`),__vite__mapDeps([70,5,6,7,8,9,10,11,12,13,14,15,16,23,39])),
16348"./pages/creator/back_end_explainer.jsx":()=>o(()=>import(`./back_end_explainer-DadrhICi.js`).then(e=>e.n),__vite__mapDeps([79,5,16,8,12,29,14,21,23])),
16348"./pages/creator/banner_notices/banner_notice_index_whitelabel.jsx":()=>o(()=>import(`./banner_notice_index_whitelabel-DR_gK1vL.js`),__vite__mapDeps([80,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,82,72,73,33,77,78,29,21,83,56,84,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,95,19,96,16,40,41,42,30,31,39,97,98,17,18,20,22,69,99,100,101,64,102,103,104,105,106])),
16348"./pages/creator/campaign_types/campaign_type_edit.jsx":()=>o(()=>import(`./campaign_type_edit-CrPnPClV.js`),__vite__mapDeps([107,5,23,12,108,6,7,8,9,10,11,13,14,15,17,18,16,19,20,21,22,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,120,121,122,123,124,125,126,127,98,128,129,130,131,132,133,134,135,39,136,44,137,138,139,79])),
16348"./pages/creator/campaign_types/campaign_type_index.jsx":()=>o(()=>import(`./campaign_type_index-CAVQwzmT.js`),__vite__mapDeps([140,5,23,12,141,6,7,8,9,10,11,13,14,15,17,18,16,19,20,21,22,29,119,112,129,121,111,113,40,41,42,95,130,120,56,115,116,124,125,39,136,44,126,127,131,142,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,79])),
16348"./pages/creator/campaigns/campaign_edit.jsx":()=>o(()=>import(`./campaign_edit-By29nJHP.js`),__vite__mapDeps([143,5,23,12,144,6,7,8,9,10,11,13,14,15,17,18,16,19,20,21,22,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,145,120,121,146,59,32,33,34,38,60,36,72,73,74,75,76,77,78,104,147,126,127,124,125,39,148,130,136,44,131,79])),
16348"./pages/creator/community_page_edit.jsx":()=>o(()=>import(`./community_page_edit-C9jCWb1r.js`),__vite__mapDeps([149,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,72,73,78,84,104,105,106,85,86,87,89,93,94,150,67,151,83,152,96,30,31,39,97,98,153,154,147,155,156,26,157,146,126,127,135,158,159,69])),
16348"./pages/creator/creator.jsx":()=>o(()=>import(`./creator-BnjzLoIg.js`),__vite__mapDeps([160,5,6,7,8,9,10,11,12,13,14,15,29,21,41,42,23,145,16,95,19])),
16348"./pages/creator/creator_contact_us.jsx":()=>o(()=>Promise.resolve().then(()=>EU),void 0),
16348"./pages/creator/download_link_types/download_link_type_create.jsx":()=>o(()=>import(`./download_link_type_create-CV4NjVFs.js`),__vite__mapDeps([161,5,6,7,8,9,10,11,12,13,14,15,16,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,29])),
16348"./pages/creator/download_link_types/download_link_type_edit.jsx":()=>o(()=>import(`./download_link_type_edit-sU9hMv-s.js`),__vite__mapDeps([162,5,6,7,8,9,10,11,12,13,14,15,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,163,67,59,33,72,73,78,84,104,29,150,151,152,96,16,40,41,42,30,31,39,164,56,22,95,19,153,154,147,165,155,156,26,105,106,158,20,159,94,69])),
16348"./pages/creator/download_link_types/download_link_type_index.jsx":()=>o(()=>import(`./download_link_type_index-CPzJMr3K.js`),__vite__mapDeps([166,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,72,73,33,77,78,84,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,152,96,30,31,39,97,98,154,67,158,159,69,161,101,64,102,103,104,105,106])),
16348"./pages/creator/download_links/download_link_copy_from_web.jsx":()=>o(()=>import(`./download_link_copy_from_web-DBTGkxra.js`).then(e=>e.n),__vite__mapDeps([167,5,6,7,8,9,10,11,12,13,14,15,22,59,32,23,33,34,38,21,60,36,84,105,106,73,74,75,76,29,95,19,126,16,127])),
16348"./pages/creator/download_links/download_link_edit.jsx":()=>o(()=>import(`./download_link_edit-qkD3mlDp.js`),__vite__mapDeps([168,5,6,7,8,9,10,11,12,13,14,15,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,22,59,33,84,87,73,89,93,78,94,104,105,106,29,95,19,69,16,126,127,169,81,170,67,150,151,158,20,159,167,171,172])),
16348"./pages/creator/download_links/download_link_file_upload.jsx":()=>o(()=>import(`./download_link_file_upload-Dh9vAyt_.js`).then(e=>e.n),__vite__mapDeps([171,5,6,7,8,9,10,11,12,13,14,15,22,172,32,23,74,60,36,34,73,33,75,76,106,77,78,29,21,126,16,127])),
16348"./pages/creator/download_links/download_link_upload_screen.jsx":()=>o(()=>import(`./download_link_upload_screen-h2fS7rPU.js`).then(e=>e.n),__vite__mapDeps([169,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,59,33,38,21,170,84,104,67,105,106,73,29,150,151,95,19,158,20,159,94,65,78,69,16,167,22,126,127,171,172,77])),
16348"./pages/creator/email/email_index.jsx":()=>o(()=>import(`./email_index-B1mwNHTu.js`),__vite__mapDeps([173,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,119,116,134,112,129,121,111,113,40,41,42,95,130,120,56,115,135,124,125,39,136,44,126,127,131,137,133,79])),
16348"./pages/creator/emails/emails_hub.jsx":()=>o(()=>import(`./emails_hub-Cc_VMq5_.js`),__vite__mapDeps([174,5,59,32,23,12,33,34,38,21,60,36,30,16,8,31,35,37,39,40,41,42])),
16348"./pages/creator/exercise_entry/exercise_entry_create.jsx":()=>o(()=>import(`./exercise_entry_create-DXyA3LWe.js`).then(e=>e.n),__vite__mapDeps([175,5,6,7,8,9,10,11,12,13,14,15,16,19,32,23,109,110,18,22,21,56,29,111,112,17,20,113,40,41,42,95,114,115,116,117,118,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,59,33,170,84,31,104,105,106,73])),
16348"./pages/creator/exercise_entry/exercise_entry_index.jsx":()=>o(()=>import(`./exercise_entry_index-CQblNnzf.js`).then(e=>e.n),__vite__mapDeps([176,5,17,6,7,8,9,10,11,12,13,14,15,18,16,19,20,21,22,23,29,177,178,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189,190,191,192,193,194,195,196,197])),
16348"./pages/creator/exercise_types/exercise_type_create.jsx":()=>o(()=>import(`./exercise_type_create-BGNet4s-.js`),__vite__mapDeps([198,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/exercise_types/exercise_type_index.jsx":()=>o(()=>import(`./exercise_type_index-D91Af_bT.js`),__vite__mapDeps([199,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,120,39,179,131,198,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/exercises/exercise_ai_review_redirect.jsx":()=>o(()=>import(`./exercise_ai_review_redirect-B8qgcYSv.js`),__vite__mapDeps([200,5,6,7,8,9,10,11,12,13,14,15,29,21,23,30,16,31,32,33,34,35,36,37,38,39])),
16348"./pages/creator/exercises/exercise_create.jsx":()=>o(()=>import(`./exercise_create-DFh478jR.js`),__vite__mapDeps([201,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,133,116,122,56,123,115,179,98])),
16348"./pages/creator/exercises/exercise_drag.jsx":()=>o(()=>import(`./exercise_drag-CJ9muy3a.js`).then(e=>e.n),__vite__mapDeps([177,5,6,7,8,9,10,11,12,13,14,15,29,21,23,178,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_edit.jsx":()=>o(()=>import(`./exercise_edit-CkxP0_oB.js`),__vite__mapDeps([202,5,6,7,8,9,10,11,12,13,14,15,32,23,109,110,18,16,19,22,21,56,29,111,112,17,20,113,40,41,42,95,114,115,116,117,118,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,163,67,59,33,84,104,150,151,30,31,39,203,204,205,147,72,73,78,165,155,156,26,105,106,179,206,182,126,127,207,152,96,130,120,121,158,159,94,69,136,44,175,170,176,177,178,129,145,124,125,180,181,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,208,79,209])),
16348"./pages/creator/exercises/exercise_highlight.jsx":()=>o(()=>import(`./exercise_highlight-CHouKIjl.js`).then(e=>e.n),__vite__mapDeps([190,5,17,6,7,8,9,10,11,12,13,14,15,18,16,19,20,21,22,23,29,178,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_index_whitelabel.jsx":()=>o(()=>import(`./exercise_index_whitelabel-BYO-Lt9X.js`).then(e=>e.n),__vite__mapDeps([210,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,82,32,36,34,59,33,38,60,72,73,74,75,76,77,78,211,84,212,88,89,90,91,92,35,37,65,93,94,213,87,105,106,83,85,86,152,96,30,31,39,97,98,145,135,158,159,69])),
16348"./pages/creator/exercises/exercise_input_table.jsx":()=>o(()=>import(`./exercise_input_table-BVPIEAUO.js`).then(e=>e.n),__vite__mapDeps([178,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_match_media.jsx":()=>o(()=>import(`./exercise_match_media-Bea5gyYv.js`).then(e=>e.n),__vite__mapDeps([191,5,17,6,7,8,9,10,11,12,13,14,15,18,16,19,20,21,22,23,29,178,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_match_text.jsx":()=>o(()=>import(`./exercise_match_text-Dl8PCXi8.js`).then(e=>e.n),__vite__mapDeps([192,5,29,14,21,12,23,178,6,7,8,9,10,11,13,15,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_multiple_choice.jsx":()=>o(()=>import(`./exercise_multiple_choice-BTE3T_D_.js`).then(e=>e.n),__vite__mapDeps([193,5,17,6,7,8,9,10,11,12,13,14,15,18,16,19,20,21,22,23,29,178,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_reorder.jsx":()=>o(()=>import(`./exercise_reorder-CQ3rnn_T.js`).then(e=>e.n),__vite__mapDeps([194,5,29,14,21,12,23,178,6,7,8,9,10,11,13,15,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_sentence_enter.jsx":()=>o(()=>import(`./exercise_sentence_enter-BQCQLh2A.js`).then(e=>e.n),__vite__mapDeps([195,5,17,6,7,8,9,10,11,12,13,14,15,18,16,19,20,21,22,23,29,178,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_word_enter.jsx":()=>o(()=>import(`./exercise_word_enter-C-mTPyCN.js`).then(e=>e.n),__vite__mapDeps([196,5,29,14,21,12,23,178,6,7,8,9,10,11,13,15,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exercises/exercise_word_options.jsx":()=>o(()=>import(`./exercise_word_options-Cv3Xxv90.js`).then(e=>e.n),__vite__mapDeps([197,5,6,7,8,9,10,11,12,13,14,15,29,21,23,178,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,104,129,121,130,145,155,156,26,105,106,73,33,124,125,179,180,181,182,126,127,183,184,44,120,185,59,72,78,84,186,187,188,189])),
16348"./pages/creator/exit_survey/exit_survey_edit.jsx":()=>o(()=>import(`./exit_survey_edit-ONet_FXQ.js`),__vite__mapDeps([214,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,72,73,74,60,36,34,33,75,76,77,78,170,64,150,84,104,67,151,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,96,30,31,39,97,98,147,157,69,215,100,101,102,103,105,106])),
16348"./pages/creator/exit_survey/exit_survey_reason_create.jsx":()=>o(()=>import(`./exit_survey_reason_create-BgUTfFIO.js`),__vite__mapDeps([215,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/file_management/file_management.jsx":()=>o(()=>import(`./file_management-8rm0Rd72.js`),__vite__mapDeps([216,5,59,32,23,12,33,34,38,21,60,36,30,16,8,31,35,37,39,95,19,40,41,42])),
16348"./pages/creator/grid_items/grid_item_create.jsx":()=>o(()=>import(`./grid_item_create-DjM5vZIO.js`),__vite__mapDeps([217,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/grid_items/grid_item_edit.jsx":()=>o(()=>import(`./grid_item_edit-DMhkCBdG.js`),__vite__mapDeps([218,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,163,67,92,59,33,38,72,73,77,78,104,150,84,151,83,85,86,87,88,89,90,91,35,37,65,93,94,30,31,39,155,156,26,105,106,69,206,182,126,127])),
16348"./pages/creator/grid_items/grid_item_index.jsx":()=>o(()=>import(`./grid_item_index-CHDJCbob.js`),__vite__mapDeps([219,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,82,72,73,33,77,78,84,104,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,152,96,30,31,39,97,98,124,125,158,159,69,217,100,101,64,102,103,105,106])),
16348"./pages/creator/groups/creator_sidebar_wrapper.jsx":()=>o(()=>import(`./creator_sidebar_wrapper-DO-ZYeQU.js`),__vite__mapDeps([220,5,6,7,8,9,10,11,12,13,14,15,16,170,32,23,36,29,21,41,42,95,19,40])),
16348"./pages/creator/learning_paths/learning_path_create.jsx":()=>o(()=>import(`./learning_path_create-CLe04Mpw.js`),__vite__mapDeps([221,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/learning_paths/learning_path_edit.jsx":()=>o(()=>import(`./learning_path_edit-BCN88Dgm.js`),__vite__mapDeps([222,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,67,36,34,92,59,33,38,60,72,73,74,75,76,77,78,223,84,104,105,106,150,151,83,85,86,87,88,89,90,91,35,37,65,93,94,96,30,31,39,224,123,147,155,156,26,225,69,126,127,206,182])),
16348"./pages/creator/learning_paths/learning_path_index.jsx":()=>o(()=>import(`./learning_path_index-BVPpUy-M.js`),__vite__mapDeps([226,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,82,32,36,34,72,73,74,60,33,75,76,77,78,170,84,64,104,150,67,151,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,152,96,30,31,39,97,98,165,155,156,26,105,106,157,158,159,69,221,100,101,102,103])),
16348"./pages/creator/mailerlite_groups/mailerlite_group_index.jsx":()=>o(()=>import(`./mailerlite_group_index-CB9uvsNU.js`),__vite__mapDeps([227,5,6,7,8,9,10,11,12,13,14,15,32,23,59,33,34,38,21,60,36,72,73,74,75,76,77,78,64,67,29,30,16,31,35,37,39,97,84,98,17,18,19,20,22,95,155,156,26,56,105,106])),
16348"./pages/creator/mailerlite_groups/mailerlite_group_index.stories.jsx":()=>o(()=>import(`./mailerlite_group_index.stories-WdZa_0Ru.js`),__vite__mapDeps([228,5,23,12,227,6,7,8,9,10,11,13,14,15,32,59,33,34,38,21,60,36,72,73,74,75,76,77,78,64,67,29,30,16,31,35,37,39,97,84,98,17,18,19,20,22,95,155,156,26,56,105,106])),
16348"./pages/creator/mantine_theme.js":()=>o(()=>Promise.resolve().then(()=>IH),void 0),
16348"./pages/creator/media_options/media_option_index.jsx":()=>o(()=>import(`./media_option_index-yJqVKd3w.js`).then(e=>e.n),__vite__mapDeps([187,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,29,120,56,111,121,113,40,41,42,95,115,116,188,129,130,189,126,127,186])),
16348"./pages/creator/membership_groups/membership_group_index_whitelabel.jsx":()=>o(()=>import(`./membership_group_index_whitelabel-DbEK5m4H.js`),__vite__mapDeps([229,5,6,7,8,9,10,11,12,13,14,15,72,32,23,73,74,60,36,34,33,75,76,77,78,84,29,21,150,104,67,151,83,56,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,95,19,152,96,16,40,41,42,30,31,39,97,98,17,18,20,22,165,158,159,69,230,127,100,101,64,102,103,105,106])),
16348"./pages/creator/membership_types/index.js":()=>o(()=>import(`./membership_types-CWn7NRPN.js`),__vite__mapDeps([231,232,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,32,67,36,34,92,223,84,104,105,106,73,74,60,33,75,76,233,234,77,78,170,150,151,30,31,35,37,38,39,203,64,154,147,72,165,155,156,26,157,235,81,127,83,85,86,59,87,88,89,90,91,65,93,94,96,97,98,69,236,100,101,102,103])),
16348"./pages/creator/membership_types/membership_type_create.jsx":()=>o(()=>import(`./membership_type_create-ByOQiyRg.js`).then(e=>e.n),__vite__mapDeps([236,5,6,7,8,9,10,11,12,13,14,15,127,29,21,23,112,16,17,18,19,20,22,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,40,41,42])),
16348"./pages/creator/membership_types/membership_type_edit.jsx":()=>o(()=>import(`./membership_type_edit-BxvHUbdZ.js`),__vite__mapDeps([232,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,32,67,36,34,92,223,84,104,105,106,73,74,60,33,75,76,233,234,77,78,170,150,151,30,31,35,37,38,39,203,64,154,147,72,165,155,156,26,157])),
16348"./pages/creator/membership_types/membership_type_index.jsx":()=>o(()=>import(`./membership_type_index-g9yepk0j.js`),__vite__mapDeps([235,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,72,73,33,77,78,127,83,84,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,96,30,31,39,97,98,69,236,100,101,64,102,103,104,105,106])),
16348"./pages/creator/memberships/memberships_hub.jsx":()=>o(()=>import(`./memberships_hub-D9e6veOx.js`),__vite__mapDeps([237,5,59,32,23,12,33,34,38,21,60,36,104,67,30,16,8,31,35,37,39,40,41,42])),
16348"./pages/creator/notification_announcements/notification_announcement_edit.jsx":()=>o(()=>import(`./notification_announcement_edit-w2kMipmr.js`),__vite__mapDeps([238,5,6,7,8,9,10,11,12,13,14,15,16,32,23,163,67,36,34,92,59,33,38,21,60,72,73,74,75,76,77,78,84,104,29,85,86,87,88,89,90,91,35,37,65,93,94,95,19,150,151,30,31,39,153,101,64,102,103,154,147,56,22,155,156,26,105,106,239,240,110,18,115,116,40,41,42,126,127])),
16348"./pages/creator/notification_announcements/notification_announcement_index.jsx":()=>o(()=>import(`./notification_announcement_index-Du6QS6r2.js`),__vite__mapDeps([241,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,82,59,33,38,21,72,73,77,78,84,104,29,83,56,85,86,87,88,89,90,91,92,35,37,65,93,94,95,19,152,96,16,40,41,42,30,31,39,97,98,17,18,20,22,158,159,69])),
16348"./pages/creator/podcast_episodes/podcast_episode_create.jsx":()=>o(()=>import(`./podcast_episode_create-CpyL5auU.js`),__vite__mapDeps([242,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/podcast_episodes/podcast_episode_edit.jsx":()=>o(()=>import(`./podcast_episode_edit-CIn2tmHO.js`),__vite__mapDeps([243,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,32,67,36,34,92,59,33,38,60,84,104,150,151,30,31,35,37,39,203,64,189,147,72,73,74,75,76,77,78,165,155,156,26,105,106,239,240,126,127,244,81,170])),
16348"./pages/creator/podcast_episodes/podcast_episode_index.jsx":()=>o(()=>import(`./podcast_episode_index-8yXBICBK.js`),__vite__mapDeps([245,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,72,32,73,74,60,36,34,33,75,76,77,78,211,84,105,106,29,83,56,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,95,152,96,40,41,42,30,31,39,97,98,135,158,159,69,242,100,101,64,102,103,104])),
16348"./pages/creator/podcast_episodes/podcast_episode_publication_state_banner.jsx":()=>o(()=>import(`./podcast_episode_publication_state_banner-DMlPJqZw.js`),__vite__mapDeps([244,5,7,8,9,10,11,12,81,32,23,74,60,36,34,75,76,59,33,38,21,170,84,29,14])),
16348"./pages/creator/podcasts/podcast_create.jsx":()=>o(()=>import(`./podcast_create-Crdu_7k8.js`),__vite__mapDeps([246,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/podcasts/podcast_edit.jsx":()=>o(()=>import(`./podcast_edit-cdHylSMQ.js`),__vite__mapDeps([247,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,81,32,74,60,36,34,75,76,163,67,92,59,33,38,72,73,77,78,84,104,29,150,151,30,31,35,37,39,153,101,90,91,64,102,88,103,65,154,95,165,56,155,156,26,105,106,157,126,127,248,170,249])),
16348"./pages/creator/podcasts/podcast_index.jsx":()=>o(()=>import(`./podcast_index-Cp--7AeG.js`),__vite__mapDeps([250,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,72,32,73,74,60,36,34,33,75,76,77,78,84,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,152,96,30,31,39,97,98,135,158,159,69,246,100,101,64,102,103,104,105,106])),
16348"./pages/creator/podcasts/podcast_publication_state_banner.jsx":()=>o(()=>import(`./podcast_publication_state_banner-DJU9mT-D.js`),__vite__mapDeps([248,5,7,8,9,10,11,12,81,32,23,74,60,36,34,75,76,59,33,38,21,170,84,29,14])),
16348"./pages/creator/podcasts/rss_import.jsx":()=>o(()=>import(`./rss_import-CVMC_Iqv.js`),__vite__mapDeps([249,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,59,32,33,34,38,60,36,170,104,67,105,106,73,74,75,76,29,150,84,151,95])),
16348"./pages/creator/producer/producer.jsx":()=>o(()=>import(`./producer-BZUN1mBd.js`),__vite__mapDeps([251,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,119,252,253,130,120,121,254,255,256,257,53,126,127,39,131,258,129,259,260,44])),
16348"./pages/creator/producer/producer_concept.jsx":()=>o(()=>import(`./producer_concept-0UBsqya1.js`),__vite__mapDeps([261,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,119,129,121,111,113,40,41,42,95,130,136,44,126,127,131])),
16348"./pages/creator/producer/producer_default.jsx":()=>o(()=>import(`./producer_default-CVzg3ZCK.js`),__vite__mapDeps([258,5,6,7,8,9,10,11,12,13,14,15,29,21,23,113,16,17,18,19,20,22,40,41,42,129,121,111,95,130,259,260,44])),
16348"./pages/creator/producer/producer_navigation.jsx":()=>o(()=>import(`./producer_navigation-t7A8fAQZ.js`),__vite__mapDeps([262,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,41,42])),
16348"./pages/creator/ratings/exercise_ratings_index.jsx":()=>o(()=>import(`./exercise_ratings_index-8c4tN7sn.js`),__vite__mapDeps([263,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,104,29,21,30,16,31,33,35,37,38,39,97,84,98,17,18,19,20,22,207,152,96,40,41,42,130,95,120,56,111,121,113,115,116,158,159,94,65,78,69,136,44,126,127])),
16348"./pages/creator/recording_sessions/recording_sessions_index.jsx":()=>o(()=>import(`./recording_sessions_index-BEvAMMh-.js`),__vite__mapDeps([264,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,120,56,115,116,122,123,136,44,126,127,131,186])),
16348"./pages/creator/recording_sessions/recording_sessions_show.jsx":()=>o(()=>import(`./recording_sessions_show-CiyMW4Cu.js`),__vite__mapDeps([265,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,120,122,123,39,266,135,136,44,126,127,131,186])),
16348"./pages/creator/sentences/sentence_edit.jsx":()=>o(()=>import(`./sentence_edit-DE9XlsM5.js`),__vite__mapDeps([267,5,29,14,21,12,23,268,6,7,8,9,10,11,13,15,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,145,120,122,123,269,189,126,127,186,124,125,39,179,180,131,270,139,135,136,44,271,133,272,273,274,181,182,185,81,32,74,60,36,34,75,76,59,33,38,72,73,77,78,84,104,275,276,277,278,25,26,28,156,52,279,280,255,256,257,53,281,282,98,79,283,284,285,224,286,287,288,289,290,291,292,293,294,295,296,183])),
16348"./pages/creator/sentences/sentences.jsx":()=>o(()=>import(`./sentences-4_ROKUEz.js`),__vite__mapDeps([297,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,130,19,95,252,17,18,20,22,253,40,41,42,120,56,111,121,113,115,116,254,255,256,257,53,126,127,39,131,298,109,110,112,114,117,118,129,139,273,44,145,188,189,186,269,135,179,136,180])),
16348"./pages/creator/site/custom_tab_create.jsx":()=>o(()=>import(`./custom_tab_create-RqIxsHT-.js`),__vite__mapDeps([299,5,6,7,8,9,10,11,12,13,14,15,29,21,23,112,16,17,18,19,20,22,133])),
16348"./pages/creator/site/custom_tab_edit.jsx":()=>o(()=>import(`./custom_tab_edit-hz94C-F0.js`),__vite__mapDeps([300,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,163,67,92,59,33,38,170,84,104,127,85,86,87,88,73,89,90,91,77,35,37,65,93,78,94,150,151,30,31,39,164,153,101,64,102,103,154,203,204,147,72,155,156,26,105,106,157,146,126,124,125])),
16348"./pages/creator/site/custom_tab_index.jsx":()=>o(()=>import(`./custom_tab_index-BcJWdUt-.js`),__vite__mapDeps([301,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,82,72,73,33,77,78,84,100,101,90,91,92,38,35,37,64,102,88,103,65,59,104,105,106,83,85,86,87,89,93,94,152,96,30,31,39,97,98,154,67,158,159,69])),
16348"./pages/creator/site/index.js":()=>o(()=>import(`./site-D4p0-CT-.js`),__vite__mapDeps([302,303,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,67,36,34,92,59,33,38,60,72,73,74,75,76,77,78,304,84,104,150,151,100,101,90,91,35,37,64,102,88,103,65,105,106,83,85,86,87,89,93,94,152,96,30,31,39,165,155,156,26,158,159,69,305,127,147,229,97,98,230,306,307,308,129,121,130,309,273,44,131,79,310,311,153,154,203,157,146,126,312,313,314,315,81,82,316,317,318,319,170,320,321,179,136,322,133,323])),
16348"./pages/creator/site/site_language_edit.jsx":()=>o(()=>import(`./site_language_edit-D-bss2zw.js`),__vite__mapDeps([306,5,29,14,21,12,23,307,6,7,8,9,10,11,13,15,16,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,308,129,121,130,309,273,44,131,98,79])),
16348"./pages/creator/site/site_layout.jsx":()=>o(()=>import(`./site_layout-CqMKlGvo.js`),__vite__mapDeps([310,5,6,7,8,9,10,11,12,13,14,15,104,32,23,34,29,21,30,16,31,33,35,36,37,38,39,311,17,18,19,20,22,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,101,74,60,90,91,92,76,77,64,102,88,103,65,75,59,72,73,78,304,84,105,106,127,86,87,89,93,94,150,67,151,83,85,97,98,153,154,203,147,165,155,156,26,157,146,126,69,312,313])),
16348"./pages/creator/site/site_navigation.jsx":()=>o(()=>import(`./site_navigation-Dnec4BHi.js`),__vite__mapDeps([314,5,6,7,8,9,10,11,12,13,14,15,29,21,23,315,109,110,18,16,19,22,56,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,82,72,73,33,77,78,84,104,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,152,96,30,31,39,97,98,158,159,69,316,101,64,102,103,105,106])),
16348"./pages/creator/site/site_page_edit.jsx":()=>o(()=>import(`./site_page_edit-XCz-_mO-.js`),__vite__mapDeps([317,5,6,7,8,9,10,11,12,13,14,15,29,21,23,318,319,32,109,110,18,16,19,22,56,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,59,33,38,170,104,150,84,151,30,31,35,37,39,153,101,90,91,77,64,102,88,103,65,154,203,147,72,73,78,155,156,26,105,106,146,126,127,320,321,129,121,130,179,136,44,131,322,133,79])),
16348"./pages/creator/site/site_page_index.jsx":()=>o(()=>import(`./site_page_index-COpEhMen.js`),__vite__mapDeps([323,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,72,73,33,77,78,84,127,29,21,100,16,101,90,91,92,38,35,37,64,102,88,103,65,59,104,105,106,83,56,85,86,87,89,93,94,95,19,152,96,40,41,42,30,31,39,97,98,17,18,20,22,154,67,158,159,69,320])),
16348"./pages/creator/stripe_analytics_series/stripe_analytics_series_index.jsx":()=>o(()=>import(`./stripe_analytics_series_index-BXV2Mws2.js`),__vite__mapDeps([324,5,6,7,8,9,10,11,12,13,14,15,16,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,56,81,59,33,105,106,73,29,129,17,18,19,20,22,121,111,113,40,41,42,95,130,39,126,127,71,72,78])),
16348"./pages/creator/subscriptions/index.js":()=>o(()=>import(`./subscriptions-wtAYIPx0.js`),__vite__mapDeps([325,326,5,6,7,8,9,10,11,12,13,14,15,23,327,16,17,18,19,20,21,22,29,139,130,95,120,56,111,121,113,40,41,42,115,116,135,124,125,179,136,44,126,127,131,328,133,122,123])),
16348"./pages/creator/subscriptions/site_subscription_index.jsx":()=>o(()=>import(`./site_subscription_index-BnPZVX-c.js`),__vite__mapDeps([326,5,6,7,8,9,10,11,12,13,14,15,23,327,16,17,18,19,20,21,22,29,139,130,95,120,56,111,121,113,40,41,42,115,116,135,124,125,179,136,44,126,127,131,328,133,122,123])),
16348"./pages/creator/surveys/survey_create.jsx":()=>o(()=>import(`./survey_create-CW1C63UP.js`),__vite__mapDeps([329,5,6,7,8,9,10,11,12,13,14,15,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,29])),
16348"./pages/creator/surveys/survey_edit.jsx":()=>o(()=>import(`./survey_edit-CROhiTpO.js`),__vite__mapDeps([330,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,59,33,38,84,64,104,85,86,87,88,73,89,90,91,77,35,37,65,93,78,94,150,151,96,30,31,39,147,72,165,155,156,26,105,106,157,69,331,101,102,103,332,100])),
16348"./pages/creator/surveys/survey_index.jsx":()=>o(()=>import(`./survey_index-BvxgXrbg.js`),__vite__mapDeps([333,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,72,32,73,74,60,36,34,33,75,76,77,78,104,29,83,56,84,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,95,96,40,41,42,30,31,39,97,98,69,329,101,64,102,103,105,106])),
16348"./pages/creator/surveys/survey_question_create.jsx":()=>o(()=>import(`./survey_question_create-4p5xYsqR.js`),__vite__mapDeps([331,5,6,7,8,9,10,11,12,13,14,15,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,72,73,78,104,105,106,29])),
16348"./pages/creator/surveys/survey_question_option_create.jsx":()=>o(()=>import(`./survey_question_option_create-DUvWGkah.js`),__vite__mapDeps([332,5,6,7,8,9,10,11,12,13,14,15,23,100,16,32,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/surveys/surveys_hub.jsx":()=>o(()=>import(`./surveys_hub-QnIF9BLo.js`),__vite__mapDeps([334,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,59,32,33,34,38,60,36,29,30,31,35,37,39,95,40,41,42])),
16348"./pages/creator/tags/tag_category_create.jsx":()=>o(()=>import(`./tag_category_create-pGsxaEN1.js`),__vite__mapDeps([335,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/tags/tag_category_indicators.jsx":()=>o(()=>import(`./tag_category_indicators-4DHLO9gE.js`).then(e=>e.n),__vite__mapDeps([209,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,29,124,125,111])),
16348"./pages/creator/tags/tag_category_settings.jsx":()=>o(()=>import(`./tag_category_settings--iCioH3H.js`),__vite__mapDeps([336,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,116,120,56,111,121,113,40,41,42,95,115,124,125,39,179,79])),
16348"./pages/creator/tags/tag_create.jsx":()=>o(()=>import(`./tag_create-CkWYdLMf.js`),__vite__mapDeps([337,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/creator/tags/tag_edit.jsx":()=>o(()=>import(`./tag_edit-ZK2IEMQU.js`),__vite__mapDeps([208,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,44,29,112,113,40,41,42,126,127,79,209,124,125,111])),
16348"./pages/creator/tags/tags_index.jsx":()=>o(()=>import(`./tags_index-CbPmQmJR.js`),__vite__mapDeps([338,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,44,81,32,74,60,36,34,75,76,59,33,38,64,104,129,121,130,30,31,35,37,39,97,84,98,120,122,123,124,125,335,100,101,90,91,92,77,102,88,103,65,105,106,73,209,336,179,79,337])),
16348"./pages/creator/upload_net_revenue.jsx":()=>o(()=>import(`./upload_net_revenue-eXAscIdY.js`),__vite__mapDeps([339,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,59,33,38,21,172,73,106,77,78,84,104,29,30,16,31,35,37,39,95,19])),
16348"./pages/creator/uploaded_audios/uploaded_audio_index.jsx":()=>o(()=>import(`./uploaded_audio_index-CkbnlvN5.js`),__vite__mapDeps([340,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,101,32,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,59,33,72,73,78,172,106,84,104,105,83,85,86,87,89,93,94,152,96,30,31,39,97,98,158,159,69])),
16348"./pages/creator/uploaded_images/uploaded_image_index.jsx":()=>o(()=>import(`./uploaded_image_index-spFeeaR1.js`),__vite__mapDeps([341,5,6,7,8,9,10,11,12,13,14,15,16,342,125,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,56,81,59,33,72,73,78,172,106,84,212,89,93,94,343,104,67,29,85,86,87,95,19,152,30,31,39,97,98,17,18,20,22,158,159,126,127])),
16348"./pages/creator/users/add_subscription_modal.jsx":()=>o(()=>import(`./add_subscription_modal-DtiWuaI1.js`).then(e=>e.n),__vite__mapDeps([344,5,6,7,8,9,10,11,12,13,14,15,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,84,104,67,105,106,73,95,19])),
16348"./pages/creator/users/admins_index.jsx":()=>o(()=>import(`./admins_index-C1vaz8W5.js`),__vite__mapDeps([345,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,56,82,59,33,72,73,78,84,104,67,29,150,151,83,85,86,87,89,93,94,95,96,40,41,42,30,31,39,97,98,147,165,69,346])),
16348"./pages/creator/users/early_access_badge.jsx":()=>o(()=>import(`./early_access_badge-DU8lKOrG.js`),__vite__mapDeps([347,5,82,32,23,12,36,34])),
16348"./pages/creator/users/early_access_modal.jsx":()=>o(()=>import(`./early_access_modal-EeeHKqed.js`),__vite__mapDeps([348,5,6,7,8,9,10,11,12,13,14,15,23])),
16348"./pages/creator/users/edit_role_modal.jsx":()=>o(()=>import(`./edit_role_modal-Dn68Zcni.js`),__vite__mapDeps([349,5,6,7,8,9,10,11,12,13,14,15,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,29,165,56,22])),
16348"./pages/creator/users/email_notification_settings_section.jsx":()=>o(()=>import(`./email_notification_settings_section-DP2Rd8vW.js`),__vite__mapDeps([350,5,6,7,8,9,10,11,12,13,14,15,104,32,23,34,29,21,150,84,67,36,151,147,56,22,72,73,74,60,33,75,76,77,78,98,16,17,18,19,20])),
16348"./pages/creator/users/email_section.jsx":()=>o(()=>import(`./email_section-B2rKcb_p.js`),__vite__mapDeps([351,5,6,7,8,9,10,11,12,13,14,15,82,32,23,36,34,29,21,150,84,104,67,151,95,19,352])),
16348"./pages/creator/users/emails_sent_by_site_section.jsx":()=>o(()=>import(`./emails_sent_by_site_section-BBACII35.js`),__vite__mapDeps([353,5,6,7,8,9,10,11,12,13,14,15,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,104,29,150,84,67,151,158,20,159,94,78,69,16])),
16348"./pages/creator/users/integrations_section.jsx":()=>o(()=>import(`./integrations_section-BssyI2_7.js`),__vite__mapDeps([354,5,6,7,8,9,10,11,12,13,14,15,59,32,23,33,34,38,21,60,36,84,29,150,104,67,151,95,19,312,313])),
16348"./pages/creator/users/manage_password_modal.jsx":()=>o(()=>import(`./manage_password_modal-8kEdGZ3n.js`).then(e=>e.n),__vite__mapDeps([355,5,6,7,8,9,10,11,12,13,14,15,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,304,104,105,106,73,112,16,17,18,19,20,22,29,86,87,89,93,78,94,150,84,67,151,95])),
16348"./pages/creator/users/membership_group_section.jsx":()=>o(()=>import(`./membership_group_section-BAdaAAke.js`),__vite__mapDeps([356,5,6,7,8,9,10,11,12,13,14,15,29,21,23,150,32,84,34,104,67,36,151,165,56,22])),
16348"./pages/creator/users/membership_type_section.jsx":()=>o(()=>import(`./membership_type_section-Cn71T9cz.js`),__vite__mapDeps([357,5,6,7,8,9,10,11,12,13,14,15,82,32,23,36,34,127,29,21,150,84,104,67,151,165,56,22,312,313])),
16348"./pages/creator/users/name_section.jsx":()=>o(()=>import(`./name_section-Scw3d0rj.js`),__vite__mapDeps([358,5,6,7,8,9,10,11,12,13,14,15,29,21,23,150,32,84,34,104,67,36,151,352])),
16348"./pages/creator/users/payment_migration_section.jsx":()=>o(()=>import(`./payment_migration_section-BfkW3w0y.js`),__vite__mapDeps([359,5,6,7,8,9,10,11,12,13,14,15,32,23,82,36,34,84,67,29,21,112,16,17,18,19,20,22,150,104,151,95,312,313])),
16348"./pages/creator/users/rss_feeds_section.jsx":()=>o(()=>import(`./rss_feeds_section-CkGA413n.js`),__vite__mapDeps([360,5,6,7,8,9,10,11,12,13,14,15,59,32,23,33,34,38,21,60,36,84,29,150,104,67,151,95,19,69,16,352])),
16348"./pages/creator/users/subscriptions_section.jsx":()=>o(()=>import(`./subscriptions_section-Mm7OQUXg.js`),__vite__mapDeps([361,5,6,7,8,9,10,11,12,13,14,15,82,32,23,36,34,84,104,29,21,150,67,151,96,16,40,41,42,69,328,133,122,56,123,115,116,312,313])),
16348"./pages/creator/users/support_emails_sent_by_user_section.jsx":()=>o(()=>import(`./support_emails_sent_by_user_section-CNzQcumW.js`),__vite__mapDeps([362,5,6,7,8,9,10,11,12,13,14,15,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,104,29,150,84,67,151,158,20,159,94,78,69,16])),
16348"./pages/creator/users/user_actions_menu.jsx":()=>o(()=>import(`./user_actions_menu-B2OPWIFK.js`),__vite__mapDeps([363,5,6,7,8,9,10,11,12,13,14,15,32,23,59,33,34,38,21,60,36,87,88,73,74,75,76,89,90,91,92,77,35,37,65,93,78,94,29,95,19,344,101,64,102,103,84,104,67,105,106,355,304,112,16,17,18,20,22,86,150,151,312,313])),
16348"./pages/creator/users/user_breadcrumbs.jsx":()=>o(()=>import(`./user_breadcrumbs-D1gmHe3e.js`),__vite__mapDeps([364,5,6,7,8,9,10,11,12,13,14,15,163,32,23,67,36,34,92,29,21,352])),
16348"./pages/creator/users/user_info_badges_row.jsx":()=>o(()=>import(`./user_info_badges_row-wWaRqgvB.js`),__vite__mapDeps([365,5,6,7,8,9,10,11,12,13,14,15,82,32,23,36,34,84,29,21,95,19,312,313])),
16348"./pages/creator/users/user_role_badge.jsx":()=>o(()=>import(`./user_role_badge-CuAayHo5.js`),__vite__mapDeps([366,5,6,7,8,9,10,11,12,13,14,15,82,32,23,36,34,29,21,346])),
16348"./pages/creator/users/user_role_badge_colors.js":()=>o(()=>import(`./user_role_badge_colors-DQbrDtPU.js`).then(e=>e.n),__vite__mapDeps([346,5])),
16348"./pages/creator/users/users_edit.jsx":()=>o(()=>import(`./users_edit-DJHQ7kYS.js`),__vite__mapDeps([367,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,84,34,104,29,30,31,33,35,36,37,38,39,347,82,348,349,101,74,60,90,91,92,76,77,64,102,88,103,65,75,165,56,351,150,67,151,95,352,353,158,159,94,78,69,354,59,312,313,356,357,127,358,359,112,360,361,96,40,41,42,328,133,122,123,115,116,362,363,87,73,89,93,344,105,106,355,304,86,364,163,365,366,346,368,147,72,239,240,110])),
16348"./pages/creator/users/users_edit_free_membership_modal.jsx":()=>o(()=>import(`./users_edit_free_membership_modal-BV8YkDdk.js`),__vite__mapDeps([368,5,16,8,12,101,32,23,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,104,67,147,6,7,9,10,11,13,14,15,56,22,72,73,33,78,29,239,240,110,18,19,115,116])),
16348"./pages/creator/users/users_edit_helpers.js":()=>o(()=>import(`./users_edit_helpers-CRL4YASe.js`).then(e=>e.t),__vite__mapDeps([312,5,313,7,8,9,10,11,12,15,23])),
16348"./pages/creator/users/users_edit_helpers.jsx":()=>o(()=>import(`./users_edit_helpers-B2YWNZ3t.js`).then(e=>e.m),__vite__mapDeps([313,5,7,8,9,10,11,12,15,23])),
16348"./pages/creator/users/users_index.jsx":()=>o(()=>import(`./users_index-CME2V7Az.js`),__vite__mapDeps([369,5,6,7,8,9,10,11,12,13,14,15,32,23,81,74,60,36,34,75,76,82,59,33,38,21,66,84,87,88,73,89,90,91,92,77,35,37,65,93,78,94,104,105,106,29,152,96,16,40,41,42,30,31,39,97,98,17,18,19,20,22,95,158,159,69])),
16348"./pages/creator/video_clips/video_clips.jsx":()=>o(()=>import(`./video_clips-DMa9e76d.js`),__vite__mapDeps([370,5,16,8,12,44,29,14,21,23,116,136,6,7,9,10,11,13,15,20,126,127,266,129,17,18,19,22,121,111,113,40,41,42,95,130,120,56,115,135,131,186,371,372])),
16348"./pages/creator/video_clips/video_clips_container.js":()=>o(()=>import(`./video_clips_container-C1_bs3ga.js`),__vite__mapDeps([371,372,5,6,7,8,9,10,11,12,13,14,15,29,21,23])),
16348"./pages/creator/video_clips/video_clips_container.jsx":()=>o(()=>import(`./video_clips_container-PHvmkdmf.js`).then(e=>e.n),__vite__mapDeps([372,5,6,7,8,9,10,11,12,13,14,15,29,21,23])),
16348"./pages/creator/word_tags/word_tag_create.jsx":()=>o(()=>import(`./word_tag_create-ixiljI3N.js`),__vite__mapDeps([373,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16])),
16348"./pages/creator/word_tags/word_tag_edit.jsx":()=>o(()=>import(`./word_tag_edit-_IKnq5XN.js`),__vite__mapDeps([374,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,124,125,179])),
16348"./pages/creator/word_tags/word_tags_index.jsx":()=>o(()=>import(`./word_tags_index-C7yG3iHH.js`),__vite__mapDeps([375,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,124,125,136,44,126,127,131,79,373,133,374,109,110,56,112,114,115,116,117,118,179])),
16348"./pages/creator/words/word_index.jsx":()=>o(()=>import(`./word_index-DSU2AyuE.js`),__vite__mapDeps([376,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,253,40,41,42,130,95,120,56,111,121,113,115,116,122,123,135,254,255,256,257,53,126,127,39,136,44,131])),
16348"./pages/creator/worksheets/exercises_section.jsx":()=>o(()=>import(`./exercises_section-OB6WWz6S.js`),__vite__mapDeps([377,5,6,7,8,9,10,11,12,13,14,15,16,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,22,59,33,84,104,67,105,106,73,29,150,151,210,17,18,19,20,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,82,72,78,211,212,89,93,94,213,87,83,85,86,152,96,30,31,39,97,98,145,135,158,159,69])),
16348"./pages/creator/worksheets/vocab_edit.jsx":()=>o(()=>import(`./vocab_edit-CURHBPH3.js`),__vite__mapDeps([378,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,59,33,38,84,159,94,65,78,64,104,150,151,30,31,35,37,39,203,379,204,147,72,73,77,126,127,380,87,88,89,90,91,93,85,86,135,124,125,69,381,120,121,224,123,122,131,291,292,282,255,293,129,130,294,133,382,183,182,295])),
16348"./pages/creator/worksheets/word_structure_edit.jsx":()=>o(()=>import(`./word_structure_edit-BRSCf2-3.js`),__vite__mapDeps([383,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,384,131,98])),
16348"./pages/creator/worksheets/worksheet_ai_chat_conversation.jsx":()=>o(()=>import(`./worksheet_ai_chat_conversation-BZY5lbOz.js`),__vite__mapDeps([385,5,16,8,12,7,9,10,11,32,23,59,33,34,38,21,60,36,84,102,88,103,65,76,77,104,67,29,14,95,19,386,118])),
16348"./pages/creator/worksheets/worksheet_ai_chat_exercise_modal.jsx":()=>o(()=>import(`./worksheet_ai_chat_exercise_modal-BNCBNpql.js`),__vite__mapDeps([387,5,7,8,9,10,11,12,32,23,59,33,34,38,21,60,36,84,205,101,74,90,91,92,76,77,35,37,64,102,88,103,65,75,95,19,40,41,42])),
16348"./pages/creator/worksheets/worksheet_ai_chat_helpers.js":()=>o(()=>import(`./worksheet_ai_chat_helpers-BgnVEt5V.js`).then(e=>e.a),__vite__mapDeps([386,5,118,10])),
16348"./pages/creator/worksheets/worksheet_ai_chat_message_input.jsx":()=>o(()=>import(`./worksheet_ai_chat_message_input-DmSa5_39.js`),__vite__mapDeps([388,5,7,8,9,10,11,12,32,23,95,19])),
16348"./pages/creator/worksheets/worksheet_ai_chat_previous_chats.jsx":()=>o(()=>import(`./worksheet_ai_chat_previous_chats-C98OUc6J.js`),__vite__mapDeps([389,5,6,7,8,9,10,11,12,13,14,15,32,23,59,33,34,38,21,60,36,63,64,65,84,102,88,103,76,77,104,67,29])),
16348"./pages/creator/worksheets/worksheet_ai_chat_state.js":()=>o(()=>import(`./worksheet_ai_chat_state-BdkxwjZ7.js`),__vite__mapDeps([390,5,6,7,8,9,10,11,12,13,14,15,204,386,118])),
16348"./pages/creator/worksheets/worksheet_ai_chats.jsx":()=>o(()=>import(`./worksheet_ai_chats-CXQ_GKST.js`),__vite__mapDeps([391,5,6,7,8,9,10,11,12,13,14,15,16,32,23,59,33,34,38,21,60,36,84,104,29,30,31,35,37,39,204,95,19,40,41,42,385,102,88,103,65,76,77,67,386,118,387,205,101,74,90,91,92,64,75,388,389,63,390])),
16348"./pages/creator/worksheets/worksheet_comment_overview.jsx":()=>o(()=>import(`./worksheet_comment_overview-CHVuxwUj.js`),__vite__mapDeps([392,5,6,7,8,9,10,11,12,13,14,15,29,21,23,40,41,42,136,16,20,44,126,127,117,17,18,19,22,118,393])),
16348"./pages/creator/worksheets/worksheet_comment_overview.styles.jsx":()=>o(()=>import(`./worksheet_comment_overview.styles-BzCBr3GQ.js`).then(e=>e.v),__vite__mapDeps([393,5,16,8,12])),
16348"./pages/creator/worksheets/worksheet_comments.jsx":()=>o(()=>import(`./worksheet_comments-YXsAy8fw.js`),__vite__mapDeps([394,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,81,32,74,60,36,34,75,76,59,33,38,395,103,396,77,78,84,104,29,121,111,113,40,41,42,30,31,35,37,39,95,392,136,44,126,127,117,118,393])),
16348"./pages/creator/worksheets/worksheet_create.jsx":()=>o(()=>import(`./worksheet_create-CpiKUVrF.js`),__vite__mapDeps([397,5,6,7,8,9,10,11,12,13,14,15,16,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,29,112,17,18,19,20,22,204,398])),
16348"./pages/creator/worksheets/worksheet_custom_tab_edit.jsx":()=>o(()=>import(`./worksheet_custom_tab_edit-Cqc5vVz2.js`),__vite__mapDeps([399,5,6,7,8,9,10,11,12,13,14,15,29,21,23,126,16,127,300,109,110,18,19,22,56,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,163,67,92,59,33,38,170,84,104,85,86,87,88,73,89,90,91,77,35,37,65,93,78,94,150,151,30,31,39,164,153,101,64,102,103,154,203,204,147,72,155,156,26,105,106,157,146,124,125])),
16348"./pages/creator/worksheets/worksheet_edit.jsx":()=>o(()=>import(`./worksheet_edit-CIJSp48o.js`),__vite__mapDeps([400,5,6,7,8,9,10,11,12,13,14,15,16,32,23,109,110,18,19,22,21,56,29,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,82,59,33,38,72,73,77,78,170,84,104,150,151,83,85,86,87,88,89,90,91,35,37,65,93,94,30,31,39,377,101,64,102,103,105,106,210,211,212,213,152,96,97,98,145,135,158,159,69,203,379,204,401,182,126,127,130,240,147,155,156,26,157,179,79,168,169,167,171,172,208,44,209,124,125,398])),
16348"./pages/creator/worksheets/worksheet_index.jsx":()=>o(()=>import(`./worksheet_index-sryJocQX.js`),__vite__mapDeps([402,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,56,59,32,33,34,38,60,36,72,73,74,75,76,77,78,211,84,213,87,88,89,90,91,92,35,37,65,93,94,64,104,105,106,29,112,85,86,95,152,96,40,41,42,30,31,39,97,98,401,82,182,126,127,204,135,158,159,69,179,208,44,113,79,209,124,125,111,397,101,102,103,398])),
16348"./pages/creator/worksheets/worksheet_settings.jsx":()=>o(()=>import(`./worksheet_settings-C_jDU-19.js`),__vite__mapDeps([403,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,84,32,34,104,67,36,151,127,29,150,30,31,33,35,37,38,39,97,98,153,101,74,60,90,91,92,76,77,64,102,88,103,65,75,59,154,95,147,56,72,73,78,155,156,26,105,106,157])),
16348"./pages/creator/worksheets/worksheet_word_index.jsx":()=>o(()=>import(`./worksheet_word_index-CgTT3LIi.js`),__vite__mapDeps([380,5,6,7,8,9,10,11,12,13,14,15,16,56,59,32,23,33,34,38,21,60,36,72,73,74,75,76,77,78,84,87,88,89,90,91,92,35,37,65,93,94,29,85,86,95,19,135,124,17,18,20,22,125,111,69,381,109,110,112,113,40,41,42,114,115,116,117,118,120,121,224,123,122,131,291,292,282,255,126,127,293,129,130,294,133,382,183,182,295])),
16348"./pages/creator/worksheets/worksheet_word_index_row.jsx":()=>o(()=>import(`./worksheet_word_index_row-Bglsi_hG.js`).then(e=>e.n),__vite__mapDeps([381,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,72,32,73,74,60,36,34,33,75,76,77,78,120,121,224,123,122,131,291,292,282,255,126,127,293,129,130,294,133,124,125,382,183,182,295]))}),$He=Object.assign({
16348"./pages/builder/affiliate_payouts/affiliate_payout_index.jsx":()=>o(()=>import(`./affiliate_payout_index-eKJ5Q-kE.js`),__vite__mapDeps([404,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,130,95,120,56,111,121,113,40,41,42,115,116,136,44,126,127,131])),
16348"./pages/builder/affiliate_payouts/affiliate_payout_show.jsx":()=>o(()=>import(`./affiliate_payout_show-Cpi6wxg-.js`),__vite__mapDeps([405,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,139,130,95,116,120,56,111,121,113,40,41,42,115,136,44,126,127,131])),
16348"./pages/builder/ai_services/ai_service_create.jsx":()=>o(()=>import(`./ai_service_create-C_bRR18P.js`),__vite__mapDeps([406,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16])),
16348"./pages/builder/ai_services/ai_service_index.jsx":()=>o(()=>import(`./ai_service_index-lhSdmEjr.js`),__vite__mapDeps([407,5,6,7,8,9,10,11,12,13,14,15,16,19,109,110,18,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,135,136,44,126,127,131,406,133])),
16348"./pages/builder/analytics/analytics_default.jsx":()=>o(()=>import(`./analytics_default-CU0FC5Yk.js`),__vite__mapDeps([408,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,44,29,120,56,111,121,113,40,41,42,95,115,116,122,123,124,125,179,126,127,327,139,130,135,136,131,328,133])),
16348"./pages/builder/banner_notices/banner_notice_create.jsx":()=>o(()=>import(`./banner_notice_create-BK7JBjhB.js`),__vite__mapDeps([99,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/banner_notices/banner_notice_edit_default.jsx":()=>o(()=>import(`./banner_notice_edit_default-Dj-fDaov.js`),__vite__mapDeps([409,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,119,308,120,121,240,124,125,39])),
16348"./pages/builder/banner_notices/banner_notice_edit_whitelabel.jsx":()=>o(()=>import(`./banner_notice_edit_whitelabel-6jXYNpgg.js`),__vite__mapDeps([410,5,6,7,8,9,10,11,12,13,14,15,32,23,109,110,18,16,19,22,21,56,29,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,72,73,33,77,78,170,64,104,150,84,151,30,31,35,37,38,39,153,101,90,91,102,88,103,65,59,154,203,147,165,155,156,26,105,106,239,240,146,126,127])),
16348"./pages/builder/banner_notices/banner_notice_index_default.jsx":()=>o(()=>import(`./banner_notice_index_default-Bdga9G8c.js`),__vite__mapDeps([411,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,129,17,18,19,20,22,121,111,113,40,41,42,95,130,139,39,131,99,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/builder.jsx":()=>o(()=>import(`./builder-Bn5igbYq.js`),__vite__mapDeps([412,5,6,7,8,9,10,11,12,13,14,15,29,21,41,42,23])),
16348"./pages/builder/campaign_messages/campaign_message_index.jsx":()=>o(()=>import(`./campaign_message_index-B5G-AM3J.js`).then(e=>e.n),__vite__mapDeps([148,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,130,95,40,41,42,136,44,126,127,131])),
16348"./pages/builder/campaign_messages/campaign_message_show.jsx":()=>o(()=>import(`./campaign_message_show-D2JB0Q7j.js`),__vite__mapDeps([413,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,116,40,41,42])),
16348"./pages/builder/campaign_type_filters/campaign_type_filter_create.jsx":()=>o(()=>import(`./campaign_type_filter_create-DX5MJr1_.js`).then(e=>e.n),__vite__mapDeps([132,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16,122,56,123,115,116])),
16348"./pages/builder/campaign_type_filters/campaign_type_filter_index.jsx":()=>o(()=>import(`./campaign_type_filter_index-D1RNriWi.js`).then(e=>e.n),__vite__mapDeps([128,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,131,132,133,122,56,123,115,116])),
16348"./pages/builder/campaign_types/campaign_type_create.jsx":()=>o(()=>import(`./campaign_type_create-B9VKGV-Y.js`).then(e=>e.n),__vite__mapDeps([142,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/campaign_types/campaign_type_edit.jsx":()=>o(()=>import(`./campaign_type_edit-C8ktDOC5.js`),__vite__mapDeps([108,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,120,121,122,123,124,125,126,127,98,128,129,130,131,132,133,134,135,39,136,44,137,138,139,79])),
16348"./pages/builder/campaign_types/campaign_type_index.jsx":()=>o(()=>import(`./campaign_type_index-VKJ6s4eW.js`),__vite__mapDeps([141,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,119,112,129,121,111,113,40,41,42,95,130,120,56,115,116,124,125,39,136,44,126,127,131,142,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,79])),
16348"./pages/builder/campaigns/campaign_create.jsx":()=>o(()=>import(`./campaign_create-CnK6mtsA.js`).then(e=>e.n),__vite__mapDeps([137,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16])),
16348"./pages/builder/campaigns/campaign_edit.jsx":()=>o(()=>import(`./campaign_edit-wt7Kjzhj.js`),__vite__mapDeps([144,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,145,120,121,146,59,32,33,34,38,60,36,72,73,74,75,76,77,78,104,147,126,127,124,125,39,148,130,136,44,131,79])),
16348"./pages/builder/campaigns/campaign_index.jsx":()=>o(()=>import(`./campaign_index-D52lQxvm.js`).then(e=>e.n),__vite__mapDeps([134,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,112,129,121,111,113,40,41,42,95,130,120,56,115,116,135,124,125,39,136,44,126,127,131,137,133])),
16348"./pages/builder/card_rule_interjections/card_rule_interjection_edit.jsx":()=>o(()=>import(`./card_rule_interjection_edit-tVH8aAmR.js`),__vite__mapDeps([414,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,133,129,121,130,122,123,131])),
16348"./pages/builder/card_types/card_type_create.jsx":()=>o(()=>import(`./card_type_create-BxucflMc.js`),__vite__mapDeps([415,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16])),
16348"./pages/builder/card_types/card_type_edit.jsx":()=>o(()=>import(`./card_type_edit-CTWncO0G.js`),__vite__mapDeps([416,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,122,123])),
16348"./pages/builder/card_types/card_type_index.jsx":()=>o(()=>import(`./card_type_index-tiKDWNeO.js`),__vite__mapDeps([417,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,120,136,44,126,127,131,415,133])),
16348"./pages/builder/cards/card_index.jsx":()=>o(()=>import(`./card_index-D8dk-Osz.js`),__vite__mapDeps([418,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,179,131,419,129,121,130,145,122,123,124,125,180,98,184,44,120,186,420,183,182,126,127])),
16348"./pages/builder/cards/card_index_row.jsx":()=>o(()=>import(`./card_index_row-kv4OlZv2.js`).then(e=>e.n),__vite__mapDeps([419,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,145,122,123,124,125,180,98,184,44,120,186,420,183,182,126,127])),
16348"./pages/builder/cards/user_submission_index.jsx":()=>o(()=>import(`./user_submission_index-avE95VGY.js`),__vite__mapDeps([421,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,133,95,40,41,42,179,136,44,126,127,131,285,112,120,56,111,121,113,115,116,224,123,122,39,286,130])),
16348"./pages/builder/challenges/challenge_index.jsx":()=>o(()=>import(`./challenge_index-g6GEhbVG.js`),__vite__mapDeps([422,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,139,40,41,42,136,44,126,127,131])),
16348"./pages/builder/comments/comment_index.jsx":()=>o(()=>import(`./comment_index-BXcFsV5k.js`),__vite__mapDeps([423,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,233,234,73,33,106,77,78,395,103,38,21,396,84,104,29,136,16,20,44,126,127,424,425,17,18,19,22,129,121,111,113,40,41,42,95,130,117,118])),
16348"./pages/builder/comments/comment_overview.styles.jsx":()=>o(()=>import(`./comment_overview.styles-DMkcGW_B.js`),__vite__mapDeps([424,16,5,8,12])),
16348"./pages/builder/comments/comment_overview_row.jsx":()=>o(()=>import(`./comment_overview_row-DXmlHO3n.js`),__vite__mapDeps([425,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,129,29,121,111,113,40,41,42,95,130,117,118,424])),
16348"./pages/builder/concept.jsx":()=>o(()=>import(`./concept-B_5Qrcm6.js`),__vite__mapDeps([426,5,6,7,8,9,10,11,12,13,14,15,29,21,41,42,23])),
16348"./pages/builder/concept_categories/concept_category_create.jsx":()=>o(()=>import(`./concept_category_create-zQy6Y_xJ.js`),__vite__mapDeps([427,5,6,7,8,9,10,11,12,13,14,15,16,44,29,21,23,133,122,56,123,115,116])),
16348"./pages/builder/concept_categories/concept_category_edit.jsx":()=>o(()=>import(`./concept_category_edit-pvGM_FfQ.js`),__vite__mapDeps([428,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,120,121,39,429,129,130,139,135,179,136,44,126,127,131,271,133])),
16348"./pages/builder/concept_categories/concept_category_index.jsx":()=>o(()=>import(`./concept_category_index-S6lJtf11.js`),__vite__mapDeps([430,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,120,136,44,126,127,131,427,133,122,123])),
16348"./pages/builder/concept_words/concept_word_index.jsx":()=>o(()=>import(`./concept_word_index-BKvfoJ5M.js`).then(e=>e.n),__vite__mapDeps([280,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,255,256,257,53,126,127,44,281,145,120,121,122,123,282,124,125,39,179,136,180,131,98,79])),
16348"./pages/builder/concepts/concept_batch_add_words.jsx":()=>o(()=>import(`./concept_batch_add_words-BxwBSO8T.js`),__vite__mapDeps([431,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,133,122,56,123,115,116,39])),
16348"./pages/builder/concepts/concept_category_concept_index.jsx":()=>o(()=>import(`./concept_category_concept_index-BU62NBq_.js`),__vite__mapDeps([429,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,139,120,56,115,116,135,39,179,136,44,126,127,131,271,112,133])),
16348"./pages/builder/concepts/concept_checkbox.jsx":()=>o(()=>import(`./concept_checkbox-w0TUTrYh.js`).then(e=>e.n),__vite__mapDeps([289,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,120,56,111,121,113,40,41,42,95,115,116])),
16348"./pages/builder/concepts/concept_create.jsx":()=>o(()=>import(`./concept_create-DVqY_bb2.js`).then(e=>e.n),__vite__mapDeps([271,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,112,17,18,19,20,22,133,120,56,111,121,113,40,41,42,95,115,116])),
16348"./pages/builder/concepts/concept_edit.jsx":()=>o(()=>import(`./concept_edit-CAW4b4yL.js`),__vite__mapDeps([432,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,278,25,26,28,156,52,129,121,130,136,44,126,127,131,182,133,120,122,123,269,189,186,39,179,181,98,433,431,270,139,135,271,298,273,145,188,180])),
16348"./pages/builder/concepts/concept_index.jsx":()=>o(()=>import(`./concept_index-HmboLIa5.js`).then(e=>e.n),__vite__mapDeps([270,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,139,120,56,115,116,135,39,179,136,44,126,127,131,271,112,133])),
16348"./pages/builder/concepts/concept_select.jsx":()=>o(()=>import(`./concept_select-vAruXNZW.js`).then(e=>e.n),__vite__mapDeps([290,5,6,7,8,9,10,11,12,13,14,15,16,19,29,21,23,122,56,123,115,116])),
16348"./pages/builder/contact_messages/contact_message_index.jsx":()=>o(()=>import(`./contact_message_index-CuBrdtgN.js`),__vite__mapDeps([434,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,72,32,73,74,60,36,34,33,75,76,77,78,84,29,152,96,40,41,42,130,95,120,56,111,121,113,115,116,158,159,94,65,69,126,127,435,179])),
16348"./pages/builder/contact_messages/contact_message_show.jsx":()=>o(()=>import(`./contact_message_show-CN68AcUG.js`),__vite__mapDeps([436,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,112,113,40,41,42,116,435,121,111,95,179])),
16348"./pages/builder/contact_messages/contact_message_tags_modal.jsx":()=>o(()=>import(`./contact_message_tags_modal-Dec4u7o9.js`).then(e=>e.n),__vite__mapDeps([435,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,121,111,113,40,41,42,95,179])),
16348"./pages/builder/dashboard/campaign_messages_dashboard.jsx":()=>o(()=>import(`./campaign_messages_dashboard-BOr0qlnh.js`),__vite__mapDeps([437,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,29,116,438,24,25,26,27,28,44,112,439,110,122,56,123,115,126,127,43])),
16348"./pages/builder/dashboard/dashboard.jsx":()=>o(()=>import(`./dashboard-DL5awf9S.js`),__vite__mapDeps([440,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,41,42])),
16348"./pages/builder/dashboard/dashboard_count.jsx":()=>o(()=>import(`./dashboard_count-laeWFXDL.js`),__vite__mapDeps([441,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,44,29,40,41,42])),
16348"./pages/builder/dashboard/exercises_dashboard.jsx":()=>o(()=>import(`./exercises_dashboard-0ksvDzxJ.js`),__vite__mapDeps([442,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,116,438,24,25,26,27,28,44,112,439,110,122,56,123,115,126,127,43,441,40,41,42])),
16348"./pages/builder/dashboard/levels_dashboard.jsx":()=>o(()=>import(`./levels_dashboard-Bt7KnE1O.js`),__vite__mapDeps([443,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,116])),
16348"./pages/builder/dashboard/payments_dashboard.jsx":()=>o(()=>import(`./payments_dashboard-ChjQSHVN.js`),__vite__mapDeps([444,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,116,438,24,25,26,27,28,44,112,439,110,122,56,123,115,126,127,43])),
16348"./pages/builder/deck.jsx":()=>o(()=>import(`./deck-JvcNAh4P.js`),__vite__mapDeps([445,5,6,7,8,9,10,11,12,13,14,15,29,21,41,42,23])),
16348"./pages/builder/deck_rulebooks/deck_rulebook_create.jsx":()=>o(()=>import(`./deck_rulebook_create-htua2BhO.js`),__vite__mapDeps([446,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/deck_rulebooks/deck_rulebook_edit.jsx":()=>o(()=>import(`./deck_rulebook_edit-zu7V8ee5.js`),__vite__mapDeps([447,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,139,123,145,120,122,39,179,136,44,126,127,131,414,133])),
16348"./pages/builder/deck_rulebooks/deck_rulebook_index.jsx":()=>o(()=>import(`./deck_rulebook_index-h139fRlF.js`),__vite__mapDeps([448,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,139,136,44,126,127,131,446,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/decks/deck_edit.jsx":()=>o(()=>import(`./deck_edit-Bgjp5qju.js`),__vite__mapDeps([449,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,278,25,26,28,156,52,129,121,130,136,44,126,127,131,182,119,133,139,273,145,120,122,123,124,125,39,98,418,179,419,180,184,186,420,183,450,135,175,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,59,33,170,84,31,104,105,106,73,176,177,178,155,181,185,72,78,187,188,189,190,191,192,193,194,195,196,197,451,452,201])),
16348"./pages/builder/decks/deck_index.jsx":()=>o(()=>import(`./deck_index-DLmrU6-_.js`),__vite__mapDeps([453,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,139,145,120,56,115,116,135,136,44,126,127,131])),
16348"./pages/builder/decks/review_deck_index.jsx":()=>o(()=>import(`./review_deck_index-CdiEmKFe.js`),__vite__mapDeps([454,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,113,40,41,42,139,130,95,120,56,111,121,115,116,136,44,126,127,131])),
16348"./pages/builder/decks/reviews_index.jsx":()=>o(()=>import(`./reviews_index-Cepg2uon.js`),__vite__mapDeps([455,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,119,129,121,111,113,40,41,42,95,130,122,56,123,115,116,114,135,179,136,44,126,127,131])),
16348"./pages/builder/exercises/exercise_index_default.jsx":()=>o(()=>import(`./exercise_index_default-CXWeEa9G.js`),__vite__mapDeps([450,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,133,129,121,130,139,145,135,124,125,179,136,44,126,127,131,175,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,81,59,33,170,84,31,104,105,106,73,176,177,178,155,156,26,180,181,182,183,184,120,185,72,78,186,187,188,189,190,191,192,193,194,195,196,197])),
16348"./pages/builder/faq_categories/faq_category_create.jsx":()=>o(()=>import(`./faq_category_create-COZvQsMQ.js`),__vite__mapDeps([456,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/faq_categories/faq_category_edit.jsx":()=>o(()=>import(`./faq_category_edit-7_wPQH3_.js`),__vite__mapDeps([457,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,163,32,67,36,34,92,59,33,38,60,223,56,84,104,105,106,73,74,75,76,29,95,150,151,30,31,35,37,39,164,155,156,26,40,41,42,458,100,101,90,91,77,64,102,88,103,65,459,109,110,111,112,113,114,115,116,117,118,82,72,78,83,85,86,87,89,93,94,96,69])),
16348"./pages/builder/faq_categories/faq_category_index.jsx":()=>o(()=>import(`./faq_category_index-hpJt_je0.js`),__vite__mapDeps([460,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,82,32,36,34,72,73,74,60,33,75,76,77,78,104,83,84,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,96,30,31,39,97,98,69,456,100,101,64,102,103,105,106])),
16348"./pages/builder/faq_items/faq_item_create.jsx":()=>o(()=>import(`./faq_item_create-DhJ6UiRb.js`),__vite__mapDeps([458,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/faq_items/faq_item_edit.jsx":()=>o(()=>import(`./faq_item_edit-DeWviOqj.js`),__vite__mapDeps([461,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,32,67,36,34,92,59,33,38,60,84,104,150,151,30,31,35,37,39,164,203,64,155,156,26,105,106,73,74,75,76])),
16348"./pages/builder/faq_items/faq_item_index.jsx":()=>o(()=>import(`./faq_item_index-BRLJLKSt.js`),__vite__mapDeps([459,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,82,32,36,34,72,73,74,60,33,75,76,77,78,104,83,84,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,96,69])),
16348"./pages/builder/forums/forum_create.jsx":()=>o(()=>import(`./forum_create-DTy6TwQ6.js`),__vite__mapDeps([462,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/forums/forum_edit.jsx":()=>o(()=>import(`./forum_edit-M6KAs4n6.js`),__vite__mapDeps([463,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,120,121,122,123,39])),
16348"./pages/builder/forums/forum_index.jsx":()=>o(()=>import(`./forum_index-BAKrPjJI.js`),__vite__mapDeps([464,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,139,122,123,39,136,44,126,127,131,462,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/grammar_descriptions/grammar_description_edit.jsx":()=>o(()=>import(`./grammar_description_edit-C28I43cx.js`),__vite__mapDeps([465,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,139,126,127,466])),
16348"./pages/builder/grammar_descriptions/grammar_description_index.jsx":()=>o(()=>import(`./grammar_description_index-CuYk65RW.js`),__vite__mapDeps([467,5,6,7,8,9,10,11,12,13,14,15,29,21,23,139,16,17,18,19,20,22,130,95,40,41,42,136,44,126,127,131,466])),
16348"./pages/builder/groups/group_create.jsx":()=>o(()=>import(`./group_create-DU9sIT3j.js`),__vite__mapDeps([468,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/groups/group_edit.jsx":()=>o(()=>import(`./group_edit-CKgPXvZi.js`),__vite__mapDeps([469,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,122,123,131])),
16348"./pages/builder/groups/group_index.jsx":()=>o(()=>import(`./group_index-D-wpKkvB.js`),__vite__mapDeps([470,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,131,468,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/interjections/interjection_create.jsx":()=>o(()=>import(`./interjection_create-DTu6wWDv.js`),__vite__mapDeps([471,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/interjections/interjection_edit.jsx":()=>o(()=>import(`./interjection_edit-BV0D4-vN.js`),__vite__mapDeps([472,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,179,298,129,121,130,139,273,44,145,120,188,189,126,127,186,269,135,136,180,131])),
16348"./pages/builder/interjections/interjection_index.jsx":()=>o(()=>import(`./interjection_index-BKT-hI_0.js`),__vite__mapDeps([473,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,39,136,44,126,127,131,471,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/invitations/invitation_index.jsx":()=>o(()=>import(`./invitation_index-97yUUtZS.js`),__vite__mapDeps([474,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,139,40,41,42,136,44,126,127,131])),
16348"./pages/builder/jobs/index.js":()=>o(()=>import(`./jobs-5q7wkxEp.js`),__vite__mapDeps([475,476,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,122,123,477,129,121,130,120,179,136,44,126,127,131,478,133])),
16348"./pages/builder/jobs/job_create.jsx":()=>o(()=>import(`./job_create-BYCpPy9r.js`).then(e=>e.n),__vite__mapDeps([478,5,6,7,8,9,10,11,12,13,14,15,29,21,23,112,16,17,18,19,20,22,133])),
16348"./pages/builder/jobs/job_edit.jsx":()=>o(()=>import(`./job_edit-StdDzmgH.js`),__vite__mapDeps([476,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,122,123])),
16348"./pages/builder/jobs/job_index.jsx":()=>o(()=>import(`./job_index-DEvsU06e.js`),__vite__mapDeps([477,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,120,56,115,116,179,136,44,126,127,131,478,112,133])),
16348"./pages/builder/languages/ai_services_priority_order.jsx":()=>o(()=>import(`./ai_services_priority_order-gIG3AWUR.js`),__vite__mapDeps([479,5,109,6,7,8,9,10,11,12,13,14,15,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,131])),
16348"./pages/builder/languages/language_edit.jsx":()=>o(()=>import(`./language_edit-OmUtNPSO.js`).then(e=>e.n),__vite__mapDeps([307,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,308,129,121,130,309,273,44,131,98,79])),
16348"./pages/builder/languages/language_index.jsx":()=>o(()=>import(`./language_index-ChyMOtQo.js`),__vite__mapDeps([480,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,112,130,95,120,56,111,121,113,40,41,42,115,116,135,179,136,44,126,127,131,479,109,110,114,117,118])),
16348"./pages/builder/leagues/league_level_edit.jsx":()=>o(()=>import(`./league_level_edit-DSxPTkh3.js`),__vite__mapDeps([481,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,119,308,139,130,124,125,136,44,126,127,131])),
16348"./pages/builder/leagues/league_levels_index.jsx":()=>o(()=>import(`./league_levels_index-CF2M5ThU.js`),__vite__mapDeps([482,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,130,131])),
16348"./pages/builder/levels/level_edit.jsx":()=>o(()=>import(`./level_edit-DPyKfQOK.js`),__vite__mapDeps([483,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118])),
16348"./pages/builder/levels/level_index.jsx":()=>o(()=>import(`./level_index-CjMTTI9Q.js`),__vite__mapDeps([484,5,6,7,8,9,10,11,12,13,14,15,29,21,23,130,16,19,95,40,41,42,131])),
16348"./pages/builder/membership_groups/membership_group_create.jsx":()=>o(()=>import(`./membership_group_create-B92OP81u.js`).then(e=>e.n),__vite__mapDeps([230,5,6,7,8,9,10,11,12,13,14,15,22,127,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/membership_groups/membership_group_edit_default.jsx":()=>o(()=>import(`./membership_group_edit_default-CmiHTnQD.js`),__vite__mapDeps([485,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,133,122,123,39,126,127,486,129,121,130,120,136,44,131,487,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/membership_groups/membership_group_edit_whitelabel.jsx":()=>o(()=>import(`./membership_group_edit_whitelabel-CRTNzZ0Y.js`),__vite__mapDeps([303,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,163,67,36,34,92,59,33,38,60,72,73,74,75,76,77,78,304,84,104,150,151,100,101,90,91,35,37,64,102,88,103,65,105,106,83,85,86,87,89,93,94,152,96,30,31,39,165,155,156,26,158,159,69])),
16348"./pages/builder/membership_groups/membership_group_index_default.jsx":()=>o(()=>import(`./membership_group_index_default-DSPT2ppZ.js`),__vite__mapDeps([488,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,127,129,121,130,122,123,39,136,44,126,131,230,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/membership_types/membership_type_create.jsx":()=>o(()=>import(`./membership_type_create-DxibD_Cg.js`),__vite__mapDeps([489,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/membership_types/membership_type_edit.jsx":()=>o(()=>import(`./membership_type_edit-sSIjNWzV.js`),__vite__mapDeps([490,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,120,121])),
16348"./pages/builder/membership_types/membership_type_index.jsx":()=>o(()=>import(`./membership_type_index-MOenkgbf.js`),__vite__mapDeps([491,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,139,39,136,44,126,127,131,489,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/memberships/membership_create.jsx":()=>o(()=>import(`./membership_create-BjoOCGZV.js`).then(e=>e.n),__vite__mapDeps([487,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/memberships/membership_edit_default.jsx":()=>o(()=>import(`./membership_edit_default-Ce1S1aQU.js`),__vite__mapDeps([492,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,127,120,121,122,123,126])),
16348"./pages/builder/memberships/membership_edit_whitelabel.jsx":()=>o(()=>import(`./membership_edit_whitelabel-2kfXBVkA.js`),__vite__mapDeps([305,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,163,32,67,36,34,92,104,127,29,150,84,151,30,31,33,35,37,38,39,147,56,72,73,74,60,75,76,77,78,165,155,156,26,105,106])),
16348"./pages/builder/memberships/membership_index.jsx":()=>o(()=>import(`./membership_index-BmTV6ybM.js`),__vite__mapDeps([486,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,120,39,136,44,126,127,131,487,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/multiple_choice_input.jsx":()=>o(()=>import(`./multiple_choice_input-DTugRWkr.js`).then(e=>e.n),__vite__mapDeps([184,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,44,145,120,121])),
16348"./pages/builder/navigation_items/navigation_item_create.jsx":()=>o(()=>import(`./navigation_item_create-3RpdWBW8.js`).then(e=>e.n),__vite__mapDeps([316,5,6,7,8,9,10,11,12,13,14,15,16,32,23,101,74,60,36,34,90,91,92,76,77,21,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,29])),
16348"./pages/builder/navigation_items/navigation_item_edit.jsx":()=>o(()=>import(`./navigation_item_edit-C4bH0YM7.js`),__vite__mapDeps([493,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,163,67,92,59,33,38,21,72,73,77,78,304,84,104,29,150,151,30,16,31,35,37,39,95,19,147,56,22,155,156,26,105,106,494])),
16348"./pages/builder/navigation_items/navigation_item_index.jsx":()=>o(()=>import(`./navigation_item_index-CiQsIGR-.js`).then(e=>e.n),__vite__mapDeps([315,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,32,74,60,36,34,75,76,82,72,73,33,77,78,84,104,83,85,86,59,38,87,88,89,90,91,92,35,37,65,93,94,152,96,30,31,39,97,98,158,159,69,316,101,64,102,103,105,106])),
16348"./pages/builder/navigation_items/navigation_item_path_warning.jsx":()=>o(()=>import(`./navigation_item_path_warning-ZTjocfQK.js`),__vite__mapDeps([495,5,6,7,8,9,10,11,12,13,14,15,16,23,145,95,19,40,41,42])),
16348"./pages/builder/navigation_items/page_select.jsx":()=>o(()=>import(`./page_select-Brr2tKx7.js`),__vite__mapDeps([494,5,6,7,8,9,10,11,12,13,14,15,104,32,23,34,29,21,155,156,26,56,22,105,106,73,74,60,36,33,75,76])),
16348"./pages/builder/notifications/notification_index.jsx":()=>o(()=>import(`./notification_index-Dvygegdy.js`),__vite__mapDeps([496,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,139,130,95,40,41,42,136,44,126,127,131])),
16348"./pages/builder/notifications/send_notification.jsx":()=>o(()=>import(`./send_notification-Cn9kAUXL.js`),__vite__mapDeps([497,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,112,113,40,41,42,133])),
16348"./pages/builder/outreach.jsx":()=>o(()=>import(`./outreach-CNTcKdDX.js`),__vite__mapDeps([498,5,6,7,8,9,10,11,12,13,14,15,29,21,41,42,23])),
16348"./pages/builder/pages/index.js":()=>o(()=>import(`./pages-ClgI1Lrw.js`).then(e=>e.t),__vite__mapDeps([318,5,319,6,7,8,9,10,11,12,13,14,15,32,23,109,110,18,16,19,22,21,56,29,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,59,33,38,170,104,150,84,151,30,31,35,37,39,153,101,90,91,77,64,102,88,103,65,154,203,147,72,73,78,155,156,26,105,106,146,126,127,320,321,129,121,130,179,136,44,131,322,133,79])),
16348"./pages/builder/pages/page_create.jsx":()=>o(()=>import(`./page_create-RfFHpH63.js`).then(e=>e.n),__vite__mapDeps([322,5,6,7,8,9,10,11,12,13,14,15,29,21,23,112,16,17,18,19,20,22,133])),
16348"./pages/builder/pages/page_edit.jsx":()=>o(()=>import(`./page_edit-gOiGIc63.js`).then(e=>e.n),__vite__mapDeps([319,5,6,7,8,9,10,11,12,13,14,15,32,23,109,110,18,16,19,22,21,56,29,111,112,17,20,113,40,41,42,95,114,115,116,117,118,81,74,60,36,34,75,76,163,67,92,59,33,38,170,104,150,84,151,30,31,35,37,39,153,101,90,91,77,64,102,88,103,65,154,203,147,72,73,78,155,156,26,105,106,146,126,127,320])),
16348"./pages/builder/pages/page_index.jsx":()=>o(()=>import(`./page_index-FyLnTSmN.js`).then(e=>e.n),__vite__mapDeps([321,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,179,136,44,126,127,131,322,112,133,79])),
16348"./pages/builder/payment_intents/payment_intent_index.jsx":()=>o(()=>import(`./payment_intent_index-kUWTB0Y7.js`),__vite__mapDeps([499,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,40,41,42,136,44,126,127,131])),
16348"./pages/builder/payments/payment_create.jsx":()=>o(()=>import(`./payment_create-D8A2rPRK.js`).then(e=>e.n),__vite__mapDeps([500,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/payments/payment_edit.jsx":()=>o(()=>import(`./payment_edit-DhNCtNjH.js`),__vite__mapDeps([501,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,120,121,240,39])),
16348"./pages/builder/payments/payment_index.jsx":()=>o(()=>import(`./payment_index-BprPw4YB.js`),__vite__mapDeps([502,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,120,56,115,116,136,44,126,127,131,500,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/promotions/promotion_create.jsx":()=>o(()=>import(`./promotion_create-D44xac-y.js`),__vite__mapDeps([503,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16])),
16348"./pages/builder/promotions/promotion_edit.jsx":()=>o(()=>import(`./promotion_edit-C2VEdasa.js`),__vite__mapDeps([504,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,122,123,124,125,39,98])),
16348"./pages/builder/promotions/promotion_index.jsx":()=>o(()=>import(`./promotion_index-l40gkXQQ.js`),__vite__mapDeps([505,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,136,44,126,127,131,503,133])),
16348"./pages/builder/rating_types/rating_type_create.jsx":()=>o(()=>import(`./rating_type_create-DqM_hEEl.js`),__vite__mapDeps([506,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/rating_types/rating_type_edit.jsx":()=>o(()=>import(`./rating_type_edit-BeTP8f_y.js`),__vite__mapDeps([507,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,120,121,39])),
16348"./pages/builder/rating_types/rating_type_index.jsx":()=>o(()=>import(`./rating_type_index-BF_jwm5F.js`),__vite__mapDeps([508,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,139,39,131,506,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/ratings/rating_edit.jsx":()=>o(()=>import(`./rating_edit-C5W3CWSL.js`),__vite__mapDeps([509,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118])),
16348"./pages/builder/ratings/rating_index.jsx":()=>o(()=>import(`./rating_index-C6ugkdtu.js`),__vite__mapDeps([207,5,6,7,8,9,10,11,12,13,14,15,16,84,32,23,34,29,21,152,96,40,41,42,130,19,95,120,56,22,111,121,113,17,18,20,115,116,158,159,60,36,94,65,78,69,136,44,126,127])),
16348"./pages/builder/referrer_options/referrer_option_create.jsx":()=>o(()=>import(`./referrer_option_create-Y6ZB7ZNe.js`),__vite__mapDeps([510,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16])),
16348"./pages/builder/referrer_options/referrer_option_index.jsx":()=>o(()=>import(`./referrer_option_index-Bk0QpooA.js`),__vite__mapDeps([511,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,120,131,510,133])),
16348"./pages/builder/sentence_concepts/sentence_concept_edit.jsx":()=>o(()=>import(`./sentence_concept_edit--cgCLgmA.js`).then(e=>e.n),__vite__mapDeps([272,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,273,17,18,19,20,22,44,136,126,127])),
16348"./pages/builder/sentence_submissions/sentence_submission_index.jsx":()=>o(()=>import(`./sentence_submission_index-GZZUA9fz.js`),__vite__mapDeps([512,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,133,135,40,41,42,179,136,44,126,127,131])),
16348"./pages/builder/sentences/answer_association_edit.jsx":()=>o(()=>import(`./answer_association_edit-TsrdJlLp.js`).then(e=>e.n),__vite__mapDeps([274,5,6,7,8,9,10,11,12,13,14,15,29,21,23,181,182,16,19,126,127])),
16348"./pages/builder/sentences/merge_words_edit.jsx":()=>o(()=>import(`./merge_words_edit-BnYTQXcc.js`).then(e=>e.n),__vite__mapDeps([185,5,6,7,8,9,10,11,12,13,14,15,81,32,23,74,60,36,34,75,76,59,33,38,21,72,73,77,78,84,104,29,126,16,127])),
16348"./pages/builder/sentences/question_association_edit.jsx":()=>o(()=>import(`./question_association_edit-Dd5J8s7_.js`).then(e=>e.n),__vite__mapDeps([275,5,6,7,8,9,10,11,12,13,14,15,29,21,23,181,182,16,19,126,127])),
16348"./pages/builder/sentences/sentence_edit.jsx":()=>o(()=>import(`./sentence_edit-Dpmxd5AF.js`),__vite__mapDeps([268,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,145,120,122,123,269,189,126,127,186,124,125,39,179,180,131,270,139,135,136,44,271,133,272,273,274,181,182,185,81,32,74,60,36,34,75,76,59,33,38,72,73,77,78,84,104,275,276,277,278,25,26,28,156,52,279,280,255,256,257,53,281,282,98,79,283,284,285,224,286,287,288,289,290,291,292,293,294,295,296,183])),
16348"./pages/builder/sentences/sentence_index.jsx":()=>o(()=>import(`./sentence_index-yr-xysQq.js`),__vite__mapDeps([298,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,139,273,44,145,120,188,189,126,127,186,269,135,179,136,180,131])),
16348"./pages/builder/sentences/simple_sentence_index.jsx":()=>o(()=>import(`./simple_sentence_index-DP0V3X0J.js`).then(e=>e.n),__vite__mapDeps([259,5,16,8,12,29,14,21,23,260,17,6,7,9,10,11,13,15,18,19,20,22,44,129,121,111,113,40,41,42,95,130])),
16348"./pages/builder/sentences/simple_sentence_index_row.jsx":()=>o(()=>import(`./simple_sentence_index_row-B3pAFtfl.js`).then(e=>e.n),__vite__mapDeps([260,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,44,29,129,121,111,113,40,41,42,95,130])),
16348"./pages/builder/sentences/word_swap.jsx":()=>o(()=>import(`./word_swap-nmEpgjyJ.js`).then(e=>e.n),__vite__mapDeps([283,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,133,129,121,111,113,40,41,42,95,130,120,56,115,116,122,123,282,255,39,126,127,131])),
16348"./pages/builder/sessions/session_index.jsx":()=>o(()=>import(`./session_index-DPqPErXL.js`),__vite__mapDeps([513,5,6,7,8,9,10,11,12,13,14,15,29,21,23,130,16,19,95,40,41,42,136,20,44,126,127,131])),
16348"./pages/builder/site.jsx":()=>o(()=>import(`./site-mcizXMZJ.js`),__vite__mapDeps([514,5,6,7,8,9,10,11,12,13,14,15,41,42,23])),
16348"./pages/builder/site_releases/site_release_create.jsx":()=>o(()=>import(`./site_release_create-33zBUcE4.js`),__vite__mapDeps([515,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/site_releases/site_release_edit.jsx":()=>o(()=>import(`./site_release_edit-sR4Z9cAG.js`),__vite__mapDeps([516,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,120,121])),
16348"./pages/builder/site_releases/site_release_index.jsx":()=>o(()=>import(`./site_release_index-C1XhiiO7.js`),__vite__mapDeps([517,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,130,95,120,56,111,121,113,40,41,42,115,116,131,515,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/sites/site_create.jsx":()=>o(()=>import(`./site_create-DyMUAv-5.js`),__vite__mapDeps([518,5,6,7,8,9,10,11,12,13,14,15,29,21,23,112,16,17,18,19,20,22,133])),
16348"./pages/builder/sites/site_edit.jsx":()=>o(()=>import(`./site_edit-pq4WZIn1.js`).then(e=>e.n),__vite__mapDeps([311,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,32,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,72,73,78,304,84,104,105,106,127,86,87,89,93,94,150,67,151,83,85,97,98,153,154,203,147,165,155,156,26,157,146,126,69,312,313])),
16348"./pages/builder/sites/site_index.jsx":()=>o(()=>import(`./site_index-05xbr1Ei.js`),__vite__mapDeps([519,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,120,56,115,116,179,136,44,126,127,131,518,112,133])),
16348"./pages/builder/sources/sentence_source_edit.jsx":()=>o(()=>import(`./sentence_source_edit-6oXC9IdD.js`).then(e=>e.n),__vite__mapDeps([276,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,133,129,121,130,124,125,126,127,131])),
16348"./pages/builder/sources/source_edit.jsx":()=>o(()=>import(`./source_edit-B6DxDk2W.js`),__vite__mapDeps([520,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,139,120,39,131])),
16348"./pages/builder/sources/source_index.jsx":()=>o(()=>import(`./source_index-PIBgCuSX.js`),__vite__mapDeps([521,5,6,7,8,9,10,11,12,13,14,15,19,109,110,18,16,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,135,136,44,126,127,131])),
16348"./pages/builder/sources/word_source_edit.jsx":()=>o(()=>import(`./word_source_edit-CBAF6W2f.js`).then(e=>e.n),__vite__mapDeps([291,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,123,120,121,292,282,255,126,127,293,129,130,131,294,133,124,125])),
16348"./pages/builder/sources/word_source_edit_child.jsx":()=>o(()=>import(`./word_source_edit_child-CQPjfPQT.js`).then(e=>e.n),__vite__mapDeps([293,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,120,131])),
16348"./pages/builder/sources/word_source_edit_modal.jsx":()=>o(()=>import(`./word_source_edit_modal-BF7polfk.js`).then(e=>e.n),__vite__mapDeps([292,5,6,7,8,9,10,11,12,13,14,15,29,21,23,282,16,255,22,126,127,293,17,18,19,20,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,120,131,294,133,124,125])),
16348"./pages/builder/sources/word_source_edit_root.jsx":()=>o(()=>import(`./word_source_edit_root-CM-r32NA.js`).then(e=>e.n),__vite__mapDeps([294,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,133,129,121,130,120,124,125,126,127,131])),
16348"./pages/builder/subscription.jsx":()=>o(()=>import(`./subscription-DSevn1i4.js`),__vite__mapDeps([522,5,6,7,8,9,10,11,12,13,14,15,41,42,23])),
16348"./pages/builder/subscriptions/subscription_create.jsx":()=>o(()=>import(`./subscription_create-tXP01-wO.js`).then(e=>e.n),__vite__mapDeps([328,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16,122,56,123,115,116])),
16348"./pages/builder/subscriptions/subscription_edit_default.jsx":()=>o(()=>import(`./subscription_edit_default-KJoxLFUA.js`),__vite__mapDeps([523,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,253,120,240,131,502,136,44,126,127,500,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,524])),
16348"./pages/builder/subscriptions/subscription_edit_whitelabel.jsx":()=>o(()=>import(`./subscription_edit_whitelabel-BZ0ILi9z.js`),__vite__mapDeps([525,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,81,32,74,60,36,34,75,76,82,59,33,38,72,73,77,78,84,104,67,29,86,87,88,89,90,91,92,35,37,65,93,94,150,151,83,56,85,95,96,40,41,42,30,31,39,147,239,240,110,115,116,158,159,69,524,312,313])),
16348"./pages/builder/subscriptions/subscription_index.jsx":()=>o(()=>import(`./subscription_index-Dl3Nrse1.js`).then(e=>e.n),__vite__mapDeps([327,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,139,130,95,120,56,111,121,113,40,41,42,115,116,135,124,125,179,136,44,126,127,131,328,133,122,123])),
16348"./pages/builder/targets/target_edit.jsx":()=>o(()=>import(`./target_edit-UIAFoZMV.js`),__vite__mapDeps([526,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,139,120,121,122,123,269,129,130,189,126,127,186,286,131])),
16348"./pages/builder/targets/target_index.jsx":()=>o(()=>import(`./target_index-BPNY3svk.js`),__vite__mapDeps([527,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,139,136,44,126,127,131])),
16348"./pages/builder/team_members/team_member_create.jsx":()=>o(()=>import(`./team_member_create-BJWzKqS7.js`),__vite__mapDeps([528,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/team_members/team_member_edit.jsx":()=>o(()=>import(`./team_member_edit-ByYFmfCP.js`),__vite__mapDeps([529,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,120,121,126,127])),
16348"./pages/builder/team_members/team_member_index.jsx":()=>o(()=>import(`./team_member_index-Dj76Hw3f.js`),__vite__mapDeps([530,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,120,126,127,131,528,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/translation.jsx":()=>o(()=>import(`./translation-D5urhm3J.js`),__vite__mapDeps([531,5,6,7,8,9,10,11,12,13,14,15,41,42,23])),
16348"./pages/builder/translation_sources/translation_source_edit.jsx":()=>o(()=>import(`./translation_source_edit-DJkr-99q.js`),__vite__mapDeps([532,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,130,95,116,40,41,42])),
16348"./pages/builder/translation_sources/translation_source_index.jsx":()=>o(()=>import(`./translation_source_index-BdiwyBnw.js`),__vite__mapDeps([533,5,6,7,8,9,10,11,12,13,14,15,16,19,29,21,23,129,17,18,20,22,121,111,113,40,41,42,95,130,288,120,56,115,116,135,136,44,126,127,131,98,534,292,282,255,293,109,110,112,114,117,118,294,133,124,125])),
16348"./pages/builder/translations/translation_index.jsx":()=>o(()=>import(`./translation_index-kRXE14yn.js`).then(e=>e.n),__vite__mapDeps([286,5,23,12,130,16,8,19,95,40,41,42,131,11])),
16348"./pages/builder/tree_modules/tree_module_create.jsx":()=>o(()=>import(`./tree_module_create-Bc882ytl.js`),__vite__mapDeps([535,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/tree_modules/tree_module_edit.jsx":()=>o(()=>import(`./tree_module_edit-CKBpvV0i.js`),__vite__mapDeps([536,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,129,121,130,537,182,126,127,120,122,123,538])),
16348"./pages/builder/tree_modules/tree_module_index.jsx":()=>o(()=>import(`./tree_module_index-CFeQwfVD.js`),__vite__mapDeps([539,5,17,6,7,8,9,10,11,12,13,14,15,18,16,19,20,21,22,23,29])),
16348"./pages/builder/tree_nodes/concept_studio.jsx":()=>o(()=>import(`./concept_studio-DLu75ZMI.js`),__vite__mapDeps([540,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,130,122,123,269,129,121,189,126,127,186,179,181,182,131,298,139,273,44,145,120,188,135,136,180])),
16348"./pages/builder/tree_nodes/tree_node.jsx":()=>o(()=>import(`./tree_node-BqK5mPDN.js`),__vite__mapDeps([538,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,120])),
16348"./pages/builder/tree_nodes/tree_node_edit.jsx":()=>o(()=>import(`./tree_node_edit-DuowlFaW.js`),__vite__mapDeps([541,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,119,129,121,130,537,182,126,127,145,120,240,122,123,124,125,39,179,131,98,271,133])),
16348"./pages/builder/trees/tree_create.jsx":()=>o(()=>import(`./tree_create-FVsZLoTB.js`),__vite__mapDeps([542,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/trees/tree_edit.jsx":()=>o(()=>import(`./tree_edit-C96vYvaI.js`),__vite__mapDeps([543,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,119,129,121,130,120,122,123,136,44,126,127,131,535,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/trees/tree_index.jsx":()=>o(()=>import(`./tree_index-z5s7QX2d.js`),__vite__mapDeps([544,5,6,7,8,9,10,11,12,13,14,15,29,21,23,129,16,17,18,19,20,22,121,111,113,40,41,42,95,130,136,44,126,127,131,542,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/user.jsx":()=>o(()=>import(`./user-xgiSukbK.js`),__vite__mapDeps([545,5,6,7,8,9,10,11,12,13,14,15,29,21,41,42,23])),
16348"./pages/builder/user_concepts/user_concept_index.jsx":()=>o(()=>import(`./user_concept_index-Br5SAdH8.js`),__vite__mapDeps([546,5,6,7,8,9,10,11,12,13,14,15,29,21,23,133,16,136,20,44,126,127,131])),
16348"./pages/builder/user_decks/user_deck_index.jsx":()=>o(()=>import(`./user_deck_index-BrMbyopA.js`),__vite__mapDeps([451,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,139,136,44,126,127,452,131])),
16348"./pages/builder/user_exercises/user_exercise_index.jsx":()=>o(()=>import(`./user_exercise_index-Bb8lF_5N.js`),__vite__mapDeps([547,5,6,7,8,9,10,11,12,13,14,15,29,21,23,136,16,20,44,126,127,131])),
16348"./pages/builder/user_groups/user_group_create.jsx":()=>o(()=>import(`./user_group_create-BPbFLzY2.js`),__vite__mapDeps([548,5,6,7,8,9,10,11,12,13,14,15,29,21,23,112,16,17,18,19,20,22,133,120,56,111,121,113,40,41,42,95,115,116])),
16348"./pages/builder/user_subscriptions/user_subscription_create.jsx":()=>o(()=>import(`./user_subscription_create-PKEiapi_.js`),__vite__mapDeps([524,5,6,7,8,9,10,11,12,13,14,15,29,21,23])),
16348"./pages/builder/user_translations/user_translation_index.jsx":()=>o(()=>import(`./user_translation_index-DBALIVRy.js`),__vite__mapDeps([549,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,133,136,20,44,126,127,131])),
16348"./pages/builder/users/password_change.jsx":()=>o(()=>import(`./password_change-DcE6TO32.js`),__vite__mapDeps([550,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,112,17,18,19,20,22,133])),
16348"./pages/builder/users/simple_user_index.jsx":()=>o(()=>import(`./simple_user_index-CqpnGu0V.js`).then(e=>e.n),__vite__mapDeps([138,5,15,29,14,21,12,23,139,16,8,17,6,7,9,10,11,13,18,19,20,22,130,95,40,41,42,136,44,126,127,131])),
16348"./pages/builder/users/user_create.jsx":()=>o(()=>import(`./user_create-BN0Uqg6W.js`),__vite__mapDeps([551,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,112,17,18,19,20,22,133,39])),
16348"./pages/builder/users/user_edit.jsx":()=>o(()=>import(`./user_edit-p4BFhSyf.js`),__vite__mapDeps([552,5,6,7,8,9,10,11,12,13,14,15,16,109,110,18,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,59,32,33,34,38,60,36,87,88,73,74,75,76,89,90,91,92,77,35,37,65,93,78,94,133,129,121,130,253,145,120,240,122,123,39,179,126,127,148,136,44,131,434,72,84,152,96,158,159,69,435,454,139,496,512,135,327,124,125,328,451,452,550,553])),
16348"./pages/builder/users/user_forum_posts_index.jsx":()=>o(()=>import(`./user_forum_posts_index-VIT59zXY.js`),__vite__mapDeps([553,5,6,7,8,9,10,11,12,13,14,15,29,21,23,130,16,19,95,40,41,42,136,20,44,126,127,131])),
16348"./pages/builder/users/user_index.jsx":()=>o(()=>import(`./user_index-BaRUQq_F.js`),__vite__mapDeps([554,5,6,7,8,9,10,11,12,13,14,15,16,19,125,29,21,23,112,17,18,20,22,129,121,111,113,40,41,42,95,130,139,135,39,179,136,44,126,127,131,551,133])),
16348"./pages/builder/versions/version_index.jsx":()=>o(()=>import(`./version_index-DLXl6ayi.js`),__vite__mapDeps([555,5,6,7,8,9,10,11,12,13,14,15,19,29,21,23,130,16,95,135,40,41,42,136,20,44,126,127,131])),
16348"./pages/builder/versions/version_show.jsx":()=>o(()=>import(`./version_show-Chjw1zf6.js`),__vite__mapDeps([556,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,40,41,42,126,127,131])),
16348"./pages/builder/video_clips/video_clip_edit.jsx":()=>o(()=>import(`./video_clip_edit-CoFa37xR.js`),__vite__mapDeps([557,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,29,116,120,56,111,121,113,40,41,42,95,115,186])),
16348"./pages/builder/video_clips/video_clip_index.jsx":()=>o(()=>import(`./video_clip_index-BPLsAdOR.js`),__vite__mapDeps([266,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,129,17,18,19,20,22,121,111,113,40,41,42,95,130,120,56,115,116,135,136,44,126,127,131,186])),
16348"./pages/builder/video_clips/video_players_with_type.jsx":()=>o(()=>import(`./video_players_with_type-BstCjqjP.js`).then(e=>e.n),__vite__mapDeps([186,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,29])),
16348"./pages/builder/vocab_concepts/vocab_concept_create.jsx":()=>o(()=>import(`./vocab_concept_create-C8XCY2K4.js`).then(e=>e.n),__vite__mapDeps([277,5,6,7,8,9,10,11,12,13,14,15,109,110,18,16,19,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,278,25,26,28,156,52,129,121,130,136,44,126,127,131,182,133])),
16348"./pages/builder/word_associations/word_association_edit.jsx":()=>o(()=>import(`./word_association_edit-DOQ2YNK-.js`),__vite__mapDeps([558,5,6,7,8,9,10,11,12,13,14,15,16,19,29,21,23,133,95])),
16348"./pages/builder/word_associations/word_association_show.jsx":()=>o(()=>import(`./word_association_show-DdwbGyWC.js`),__vite__mapDeps([559,5,16,8,12,7,9,10,11,29,14,21,23,95,19,558,6,13,15,133])),
16348"./pages/builder/word_count/word_count_index.jsx":()=>o(()=>import(`./word_count_index-LIMbjD4O.js`),__vite__mapDeps([560,5,7,8,9,10,11,12,29,14,21,23,130,16,19,95,40,41,42,136,6,13,15,20,44,126,127,131])),
16348"./pages/builder/word_types/word_type_create.jsx":()=>o(()=>import(`./word_type_create-CsFfwcGG.js`),__vite__mapDeps([561,5,6,7,8,9,10,11,12,13,14,15,29,21,23,100,16,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/word_types/word_type_edit.jsx":()=>o(()=>import(`./word_type_edit-C9JzZ0NU.js`),__vite__mapDeps([562,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73,120,122,123,179,131,271,133])),
16348"./pages/builder/word_types/word_type_index.jsx":()=>o(()=>import(`./word_type_index-ZVjZKCV8.js`),__vite__mapDeps([563,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,129,17,18,19,20,22,121,111,113,40,41,42,95,130,120,56,115,116,39,136,44,126,127,131,561,100,32,101,74,60,36,34,90,91,92,76,77,38,35,37,64,102,88,103,65,75,59,33,104,105,106,73])),
16348"./pages/builder/words/exclude_edit.jsx":()=>o(()=>import(`./exclude_edit-Cg8s1nku.js`),__vite__mapDeps([564,5,16,8,12,17,6,7,9,10,11,13,14,15,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,120,121,122,123,179])),
16348"./pages/builder/words/gender_variant_edit.jsx":()=>o(()=>import(`./gender_variant_edit-Bqe8sHKn.js`).then(e=>e.n),__vite__mapDeps([382,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,123,183,20,182,19,126,127])),
16348"./pages/builder/words/meanings_edit.jsx":()=>o(()=>import(`./meanings_edit-C4G5tr9v.js`),__vite__mapDeps([565,5,6,7,8,9,10,11,12,13,14,15,16,19,109,110,18,22,21,56,29,23,111,112,17,20,113,40,41,42,95,114,115,116,117,118,129,121,130,123,120,124,125,180,145,126,127,131,291,292,282,255,293,294,133,566,179,98,567,122,568,139])),
16348"./pages/builder/words/minimal_pair_edit.jsx":()=>o(()=>import(`./minimal_pair_edit-DQoAYB4O.js`).then(e=>e.n),__vite__mapDeps([420,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,123,95,19,40,41,42,183,20,182,126,127])),
16348"./pages/builder/words/plural_edit.jsx":()=>o(()=>import(`./plural_edit-BAb4HC9C.js`).then(e=>e.n),__vite__mapDeps([295,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,121,120])),
16348"./pages/builder/words/regenerate_meanings_modal.jsx":()=>o(()=>import(`./regenerate_meanings_modal-CzLGvX8v.js`).then(e=>e.n),__vite__mapDeps([566,5,16,8,12,14,29,21,23,116,179,6,7,9,10,11,13,15,17,18,19,20,22,98])),
16348"./pages/builder/words/register_select.jsx":()=>o(()=>import(`./register_select-Dvf2qEnN.js`).then(e=>e.n),__vite__mapDeps([567,5,6,7,8,9,10,11,12,13,14,15,17,18,16,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,122,123])),
16348"./pages/builder/words/related_word_table_row.jsx":()=>o(()=>import(`./related_word_table_row-BQNt66o1.js`).then(e=>e.n),__vite__mapDeps([569,5,29,14,21,12,23,129,6,7,8,9,10,11,13,15,16,17,18,19,20,22,121,111,113,40,41,42,95,130,139])),
16348"./pages/builder/words/related_words_edit.jsx":()=>o(()=>import(`./related_words_edit-WxceSRtO.js`),__vite__mapDeps([570,5,6,7,8,9,10,11,12,13,14,15,16,278,17,18,19,20,21,22,23,25,26,28,156,52,29,129,121,111,113,40,41,42,95,130,136,44,126,127,131,182,116,179,98,569,139])),
16348"./pages/builder/words/root_word_edit.jsx":()=>o(()=>import(`./root_word_edit-DR3O0fY8.js`).then(e=>e.n),__vite__mapDeps([296,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,123,40,41,42,183,20,182,19,126,127])),
16348"./pages/builder/words/synonyms_edit.jsx":()=>o(()=>import(`./synonyms_edit-DYya4Ajw.js`),__vite__mapDeps([571,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,129,17,18,19,20,22,121,111,113,40,41,42,95,130,139,116,131,98,568,112,120,56,115,124,125,179,126,127])),
16348"./pages/builder/words/synonyms_edit_modal.jsx":()=>o(()=>import(`./synonyms_edit_modal-Df8VMqZq.js`).then(e=>e.n),__vite__mapDeps([568,5,6,7,8,9,10,11,12,13,14,15,29,21,23,112,16,17,18,19,20,22,139,130,95,120,56,111,121,113,40,41,42,115,116,124,125,179,126,127,131,98])),
16348"./pages/builder/words/word_batch_create.jsx":()=>o(()=>import(`./word_batch_create-Bjvn_dO5.js`).then(e=>e.n),__vite__mapDeps([284,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,112,113,40,41,42])),
16348"./pages/builder/words/word_create.jsx":()=>o(()=>import(`./word_create-BqwgYSia.js`).then(e=>e.n),__vite__mapDeps([285,5,6,7,8,9,10,11,12,13,14,15,16,29,21,23,112,17,18,19,20,22,133,95,120,56,111,121,113,40,41,42,115,116,224,123,122,39,126,127,286,130,131])),
16348"./pages/builder/words/word_edit.jsx":()=>o(()=>import(`./word_edit-C6aYm7C7.js`),__vite__mapDeps([572,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,109,110,56,29,111,112,113,40,41,42,95,114,115,116,117,118,133,129,121,130,384,139,280,255,256,257,53,126,127,44,281,145,120,122,123,282,124,125,39,179,136,180,131,98,79,269,189,186,183,182,512,135,291,292,293,294,564,382,565,566,567,568,570,278,25,26,28,156,52,569,571])),
16348"./pages/builder/words/word_index.jsx":()=>o(()=>import(`./word_index-BQf5WjMJ.js`).then(e=>e.n),__vite__mapDeps([279,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,112,280,109,110,56,111,113,40,41,42,95,114,115,116,117,118,255,256,257,53,126,127,44,281,145,120,121,122,123,282,124,125,39,179,136,180,131,98,79,135,283,133,129,130,284,285,224,286,287,288,289,290,291,292,293,294,295,296,183,182])),
16348"./pages/builder/words/word_index_row.jsx":()=>o(()=>import(`./word_index_row-fwEPlUL6.js`).then(e=>e.n),__vite__mapDeps([287,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,129,121,111,113,40,41,42,95,130,288,145,120,56,115,116,224,123,122,131,289,290,291,109,110,112,114,117,118,292,282,255,126,127,293,294,133,124,125,295,296,183,182])),
16348"./pages/builder/words/word_modal.jsx":()=>o(()=>import(`./word_modal-BDl8QgX4.js`),__vite__mapDeps([534,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,29,292,282,255,126,127,293,109,110,56,111,112,113,40,41,42,95,114,115,116,117,118,129,121,130,120,131,294,133,124,125]))
16348});function H9(e,t,n){let r=t[`./pages/${e}/${n}.jsx`]||t[`./pages/${e}/${n}.js`];if(!r)throw Error(`Unable to find lazy route component for pages/${e}/${n}`);return ZHe(pf(V.lazy(r)))}var $={creator:e=>H9(`creator`,QHe,e),builder:e=>H9(`builder`,$He,e)},U9=pf(M2),W9=pf(pP),G9=pf(xze),eUe={routes:[{name:`app`,component:ZH,children:[{path:`/user/password/edit`,name:`user.reset_password`,component:BIe,signedOutRoute:!0,allowWhiteLabel:!0},{path:`/trivia/decks/:deckId/user_decks/:userDeckId`,name:`trivia.decks.show`,component:uM},{component:SNe,name:`landing`,path:`/`,signedOutRoute:!0,allowWhiteLabel:!0},{component:ENe,name:`maintenance`,path:`/offline`,allowWhiteLabel:!0},{component:Xze,name:`jobs`,path:`/jobs`,signedOutRoute:!0},{component:$ze,name:`jobs.show`,path:`/jobs/:jobId`,signedOutRoute:!0},{component:N9,name:`whitelabel.home`,path:`/pages/home`,allowWhiteLabel:!0},{name:`home`,path:`/redirect`,component:Ca,allowWhiteLabel:!0},{name:`promotion`,path:`/promotion/:promotionId`,component:Ca},{name:`translator`,component:SPe,children:[{component:wFe,name:`translator.home`,path:`/translator/:languageId/home`},{component:eIe,name:`translator.decks_index`,path:`/translator/:languageId/decks`},{component:nIe,name:`translator.decks_show`,path:`/translator/:languageId/decks/:deckId`},{component:UFe,name:`translator.sentences_index`,path:`/translator/:languageId/sentences`},{component:kFe,name:`translator.words`,path:`/translator/:languageId/words`},{component:cIe,name:`translator.users`,path:`/translator/:languageId/translators`},{component:bIe,name:`translator.user`,path:`/translator/:languageId/translators/:userId`},{component:W9,name:`translator.forum_threads.create`,path:`/translator/:languageId/threads/create`}]},{name:`classroom`,component:fBe,children:[{component:NBe,children:[{component:U9,name:`classroom.show`,path:`/classroom/:groupId`},{component:W9,name:`classroom.forum_threads.create`,path:`/classroom/:groupId/threads/create`},{component:G9,name:`classroom.forum_threads.show`,path:`/classroom/:groupId/threads/:forumThreadId`}]},{component:e7,name:`classroom.progress`,path:`/classroom/:groupId/progress`}]},{name:`trivia`,component:NMe,children:[{path:`/trivia`,name:`trivia.home`,component:dNe},{path:`/trivia/progress`,name:`trivia.progress`,component:H1}]},{component:dje,children:[{name:`vocab.home`,path:`/vocab/words/page/:page`,component:fMe},{name:`vocab.progress`,path:`/vocab/progress`,component:z$},{name:`vocab.word`,path:`/vocab/words/:wordId`,component:y1,allowWhiteLabel:!0},{name:`vocab.create`,path:`/vocab/create`,component:kMe}]},{component:_je,children:[{name:`stories.home`,path:`/stories/home`,component:Ije},{name:`stories.show`,path:`/topics/:treeNodeId`,component:ewe},{name:`stories.progress`,path:`/stories/progress`,component:T$}]},{component:Rwe,name:`reviews`,children:[{name:`reviews.decks`,path:`/reviews/decks`,component:u$},{name:`reviews.home`,path:`/reviews/home`,component:u$},{name:`reviews.archive`,path:`/reviews/archive`,component:u$},{name:`reviews.index`,path:`/reviews/list/page/:page`,component:u$},{name:`reviews.progress`,path:`/reviews/progress`,component:ZJ},{name:`reviews.show`,path:`/reviews/card/:cardId/page/:page`,component:Fwe},{name:`reviews.create`,path:`/reviews/create`,component:u$}]},{name:`league.show`,path:`/leagues/:leagueId(/user/:userId)`,component:cPe,allowWhiteLabel:!0},{component:IBe,children:[{component:u7,name:`grammar`,path:`/grammar`},{name:`grammar.index`,path:`/grammar/index`,component:c7},{name:`grammar.show`,path:`/grammar/:grammarNodeId`,component:u7},{name:`grammar.show.slug`,path:`/grammar/:grammarNodeId/:slug`,component:u7}]},{name:`grammar.decks.show`,path:`/grammar/:treeNodeId/decks/:deckId`,component:uM},{name:`vocab.decks.show`,path:`/vocab/decks/:deckId`,component:uM},{name:`triad.decks.show`,path:`/words/:wordId/decks/:deckId`,component:uM},{name:`trivia.tree_nodes.decks.show`,path:`/trivia/:treeNodeId/decks/:deckId`,component:uM},{name:`trivia.tree_nodes.decksWithOpponent.show`,path:`/trivia/:treeNodeId/decks/:deckId/opponents/:opponentId`,component:uM},{name:`onboarding.registration`,path:`/onboarding/registration`,component:Um,signedOutRoute:!0,allowWhiteLabel:!0},{name:`onboarding`,path:`/onboarding`,component:gf,signedOutRoute:!0,allowWhiteLabel:!0,children:[{name:`onboarding.sign_in`,path:`/onboarding/sign_in`,component:Um,signedOutRoute:!0},{name:`onboarding.register`,path:`/onboarding/register`,component:Um,signedOutRoute:!0},{name:`onboarding.forgot_password`,path:`/onboarding/forgot_password`,component:Um},{name:`onboarding.create_password`,path:`/onboarding/create_password`,component:Wee},{name:`onboarding.migration`,path:`/onboarding/migration`,component:dh},{name:`onboarding.confirm`,path:`/onboarding/confirm`,component:Um},{name:`onboarding.exists`,path:`/onboarding/exists`,component:Jee,signedOutRoute:!0,allowWhiteLabel:!0}]},{name:`onboarding`,path:`/onboarding/:languageId`,component:gf,signedOutRoute:!0,allowWhiteLabel:!0,children:[{name:`onboarding.level`,path:`/onboarding/:languageId/level`,component:Pf,signedOutRoute:!0},{name:`onboarding.registration`,path:`/onboarding/:languageId/registration`,component:Um,signedOutRoute:!0},{name:`onboarding.referrer`,path:`/onboarding/:languageId/referrer`,component:Oee,signedOutRoute:!0},{name:`onboarding.native_language`,path:`/onboarding/:languageId/language`,component:Mee,signedOutRoute:!0},{name:`onboarding.choose_deck`,path:`/onboarding/:languageId/choose_deck`,component:Bee,signedOutRoute:!0}]},{name:`onboarding.patreon`,path:`/patreon`,component:XVe,allowWhiteLabel:!0},{name:`profile`,path:`/profile`,component:fw,allowWhiteLabel:!0},{name:`memberships.index`,path:`/memberships`,component:pX,signedOutRoute:!0,allowWhiteLabel:!0},{name:`memberships.change`,path:`/memberships/change`,component:MEe,allowWhiteLabel:!0},{name:`memberships.join`,path:`/join`,component:pX,signedOutRoute:!0,allowWhiteLabel:!0},{name:`memberships.thank_you`,path:`/memberships/thank_you`,component:mje,allowWhiteLabel:!0},{name:`memberships.create`,path:`/memberships/:membershipId`,component:wa(FX,KX),allowWhiteLabel:!0},...[{name:`worksheets`,path:`posts/:worksheetId`},{name:`videos`,path:`videos/:worksheetId`}
16348,{name:`podcast`,path:`podcast/:worksheetId`},{name:`learn`,path:`learn/:worksheetId`}].flatMap(e=>[{name:`${e.name}.show`,path:e.path,component:JIe,allowWhiteLabel:!0,blockDefaultSite:!0,children:[{name:`${e.name}.exercises.show`,path:`exercises/:exerciseId`,component:l6},...e.name===`worksheets`?[{name:`exercises.show`,path:`exercises/:exerciseId/:namespace`,component:l6}]:[],{name:`${e.name}.vocab.show`,path:`vocab`,component:aRe},{name:`${e.name}.info.show`,path:`info`,component:od},{name:`${e.name}.comments.show`,path:`comments`,component:$Ie},{name:`${e.name}.download_links.index`,path:`extras`,component:AVe},{name:`${e.name}.custom_tab.show`,path:`:customTabSlug`,component:XHe}]},{name:`${e.name}.vocab.word`,path:`${e.path}/vocab/:wordId`,component:y1,allowWhiteLabel:!0}]),{name:`groups.show`,path:`/groups/:groupId`,component:UIe,allowWhiteLabel:!0,children:[{component:G5,name:`podcast_episodes.show`,path:`/podcast_episodes/:podcastEpisodeId`,signedOutRoute:!0},{component:G5,name:`newsletter.show`,path:`/newsletter/:podcastEpisodeId`,signedOutRoute:!0},{name:`worksheets.by_filter`,path:`/posts/filter/:filter`,component:p5},{name:`worksheets.index`,path:`/posts`,component:p5},{name:`videos.index`,path:`/videos`,component:aVe},{name:`podcast.index`,path:`/podcast`,component:yVe},{name:`learn.index`,path:`/learn`,component:FHe},{name:`community`,path:`/community`,component:cbe,signedOutRoute:!0,allowWhiteLabel:!0,blockDefaultSite:!0},{name:`exercises.index`,path:`/exercises`,component:k8},{name:`groups.info`,path:`/info/:pageId`,component:cRe}]},{path:`/settings`,component:_L,children:[{name:`settings.all`,path:`all`,allowWhiteLabel:!0},{name:`settings.user_profile`,path:`user_profile`,component:wa(eCe,dCe),allowWhiteLabel:!0},{name:`settings.deck`,path:`deck_settings`,component:bbe},{name:`settings.clear_progress`,path:`clear_progress`,component:kbe},{name:`settings.streak_repair`,path:`streak_repair`,component:Ibe},{name:`settings.user_image`,path:`user_image`,component:nG,allowWhiteLabel:!0},{signedOutRoute:!0,name:`settings.user_notifications`,path:`user_notifications`,component:Vbe,allowWhiteLabel:!0},{signedOutRoute:!0,name:`settings.email`,path:`email`,component:qbe,allowWhiteLabel:!0},{name:`settings.billing`,path:`billing`,component:wa(bxe,sxe),allowWhiteLabel:!0},{name:`settings.affiliate`,path:`affiliate`,component:Axe},{name:`settings.cancel`,path:`subscriptions/cancel`,component:zxe,allowWhiteLabel:!0},{name:`settings.audio_feeds`,path:`audio_feeds(/:podcastId)`,component:gSe,allowWhiteLabel:!0},{name:`settings.password`,path:`password`,component:kK,allowWhiteLabel:!0},{name:`settings.memberships.create`,path:`memberships/:membershipId`,component:wa(FX,KX),allowWhiteLabel:!0},{name:`settings.privacy`,path:`privacy`,component:vSe,allowWhiteLabel:!0},{name:`settings.page.show`,path:`pages/:pageId`,component:N9,allowWhiteLabel:!0}],indexRedirects:[{to:`/settings/all`}]},{name:`privacy`,path:`/privacy`,component:UM,signedOutRoute:!0},{name:`app`,path:`/app`,component:kze,signedOutRoute:!0},{name:`partners`,path:`/partners`,component:KM,signedOutRoute:!0},{name:`legal`,path:`/legal`,component:jze,signedOutRoute:!0},{name:`terms`,path:`/terms`,component:N5,signedOutRoute:!0},{name:`block_notifications`,path:`/block_notifications`,component:MVe,signedOutRoute:!0,allowWhiteLabel:!0},{name:`exit_survey`,path:`/exit_survey`,component:$7,allowWhiteLabel:!0},{name:`survey`,path:`/survey/:surveySlug`,component:GVe,allowWhiteLabel:!0},{name:`faq`,path:`/faq`,component:_M,signedOutRoute:!0},{name:`unpublished`,path:`/unpublished`,component:nU,signedOutRoute:!0,allowWhiteLabel:!0},{name:`access`,path:`/access/:token`,component:sU,signedOutRoute:!0,allowWhiteLabel:!0},{name:`help_center`,path:`/help_center`,component:qU,signedOutRoute:!0,allowWhiteLabel:!0},{name:`assign_membership_group`,path:`/assign_membership_group/:membershipGroupId`,component:MNe,signedOutRoute:!0},{name:`faq_categories.show`,path:`/help_center/topic/:faqCategoryId`,component:ZU,signedOutRoute:!0,allowWhiteLabel:!0},{name:`faq_items.show`,path:`/help_center/topic/:faqCategoryId/article/:faqItemId`,component:aW,signedOutRoute:!0,allowWhiteLabel:!0},{name:`blog`,path:`/blog`,component:q5,signedOutRoute:!0},{name:`forum`,component:fze,children:[{name:`forums.index`,path:`/discussions`,component:_ze},{name:`forums.show`,path:`/discussions/:forumId/page/:page`,component:U9},{name:`forums.forum_threads.create`,path:`/discussions/:forumId/threads/create`,component:W9},{name:`forums.forum_threads.show`,path:`/discussions/:forumId/threads/:forumThreadI
16348d`,component:G9}]},{name:`team`,path:`/team`,component:Wze,signedOutRoute:!0},{name:`contact`,path:`/contact`,component:wa(BM,Zye),signedOutRoute:!0,allowWhiteLabel:!0},{name:`account_deletion`,path:`/account_deletion`,component:vbe,signedOutRoute:!0,allowWhiteLabel:!0},{name:`profiles.show`,path:`/profile/:userId`,component:fw},{name:`decks.show`,path:`decks/:deckId`,component:uM},{name:`tree_nodes.decks.show`,path:`/topics/:treeNodeId/decks/:deckId`,component:uM},{name:`reviews.decks.show`,path:`/reviews/decks/:deckId`,component:uM},{name:`feeds.index`,path:`/feeds`,component:D5},{name:`my.feed`,path:`/feeds/mine`,component:D5},{name:`followers.feed`,path:`/feeds/following`,component:D5},{name:`feed_entry.show`,path:`/feeds/:feedEntryId`,component:Dze},{name:`more`,path:`/more`,component:uW,children:[{name:`more.latest_decks`,path:`latest_decks`,component:zye},{name:`more.comment_history`,path:`comment_history`,component:Wye},{name:`more.help_center`,path:`help_center`,component:qU},{name:`more.faq_categories.show`,path:`help_center/topic/:faqCategoryId`,component:ZU},{name:`more.faq_items.show`,path:`help_center/topic/:faqCategoryId/article/:faqItemId`,component:aW},{name:`more.blog`,path:`blog`,component:q5},{name:`more.partners`,path:`partners`,component:KM},{name:`more.privacy`,path:`privacy`,component:UM},{name:`more.terms`,path:`terms`,component:N5},{name:`more.contact`,path:`contact`,component:BM}]},{name:`classroom`,component:xIe,children:[{name:`classroom.dashboard`,path:`classroom/:groupId/dashboard`,component:CIe},{name:`classroom.settings`,path:`classroom/:groupId/settings`,component:DIe},{name:`classroom.students`,path:`classroom/:groupId/students`,component:LIe}]},{name:`creator`,path:`creator`,component:$.creator(`creator`),allowWhiteLabel:!0,children:[{name:`creator.groups.show`,path:``,blockDefaultSite:!0,component:$.creator(`groups/creator_sidebar_wrapper`),children:[{name:`creator.community`,path:`community`,component:$.creator(`community_page_edit`)},{name:`creator.exit_survey`,path:`exit_survey`,component:$.creator(`exit_survey/exit_survey_edit`)},{name:`creator.surveys_hub`,path:`surveys-hub`,component:$.creator(`surveys/surveys_hub`)},{name:`creator.surveys.index`,path:`surveys`,component:$.creator(`surveys/survey_index`)},{name:`creator.surveys.edit`,path:`surveys/:surveySlug`,component:$.creator(`surveys/survey_edit`)},{name:`creator.exercise_types.index`,path:`exercise_types`,component:$.creator(`exercise_types/exercise_type_index`)},{name:`creator.analytics`,path:`analytics`,component:$.creator(`analytics/analytics_creator`)},{name:`creator.upload_net_revenue`,path:`upload_net_revenue`,component:$.creator(`upload_net_revenue`)},{name:`creator.stripe_analytics_series.index`,path:`stripe_analytics_series`,component:$.creator(`stripe_analytics_series/stripe_analytics_series_index`)},{name:`creator.user_exercises.index`,path:`user_exercises`,component:$.builder(`user_exercises/user_exercise_index`)},{name:`creator.admins.index`,path:`admins`,component:$.creator(`users/admins_index`)},{name:`creator.users.index`,path:`users`,component:$.creator(`users/users_index`)},{name:`creator.users.edit`,path:`users/:userId`,component:$.creator(`users/users_edit`)},{name:`creator.campaign_messages.show`,path:`campaign_messages/:campaignMessageId`,component:$.builder(`campaign_messages/campaign_message_show`)},{name:`creator.tags.index`,path:`tags`,component:$.creator(`tags/tags_index`)},{name:`creator.concepts.index`,path:`concepts`,component:$.creator(`word_tags/word_tags_index`)},{name:`creator.worksheets.index`,path:`posts`,component:$.creator(`worksheets/worksheet_index`)},{name:`creator.exercises.ai`,path:`exercises/ai`,component:$.creator(`exercises/exercise_ai_review_redirect`)},{name:`creator.exercises.index`,path:`exercises`,component:$.creator(`exercises/exercise_index_whitelabel`)},{name:`creator.worksheets.edit`,path:`posts/:worksheetId`,component:$.creator(`worksheets/worksheet_edit`)},{name:`creator.worksheet_ai_chats.index`,path:`posts/:worksheetId/ai_chats`,component:$.creator(`worksheets/worksheet_ai_chats`)},{name:`creator.worksheet_ai_chats.show`,path:`posts/:worksheetId/ai_chats/:aiChatId`,component:$.creator(`worksheets/worksheet_ai_chats`)},{name:`creator.vocab.edit`,path:`posts/:worksheetId/vocab`,component:$.creator(`worksheets/vocab_edit`)},{name:`creator.exercises.edit`,path:`posts/:worksheetId/exercises/:exerciseId`,component:$.creator(`exercises/exercise_edit`)},{name:`creator.worksheets_custom_tabs.edit`,path:`worksheets/:worksheetId/worksheet_custom_tabs/:worksheetCustomTabId`,component:$.creator(`worksheets/worksheet_custom_tab_edit`)},{name:`creator.site_layout`,path:`settings`,component:$.creator(`site/site_layout`)},{name:`creator.worksheet_settings`,path:`worksheet_settings`,component:$.creator(`worksheets/worksheet_settings`)},{name:`creator.language.edit`,path:`language/:languageId`,component:$.creator(`site/site_language_edit`)},{name:`creator.site_navigation`,path:`navigation`,component:$.creator(`site/site_navigation`)},{name:`creator.navigation_items.edit`,path:`navigation_items/:navigationItemId`,component:$.builder(`navigation_items/navigation_item_edit`)},{name:`creator.site_pages`,path:`pages`,component:$.creator(`site/site_page_index`)},{name:`creator.custom_tabs`,path:`custom_tabs`,component:$.creator(`site/custom_tab_index`)},{name:`creator.faq_categories.index`,path:`faq_categories`,component:$.builder(`faq_categories/faq_category_index`)},{name:`creator.faq_categories.edit`,path:`faq_categories/:faqCategoryId`,component:$.builder(`faq_categories/faq_category_edit`)},{name:`creator.faq_items.edit`,path:`faq_categories/:faqCategoryId/faq_items/:faqItemId`,component:$.builder(`faq_items/faq_item_edit`)},{name:`creator.site_pages.edit`,path:`pages/:pageId/edit`,component:$.creator(`site/site_page_edit`)},{name:`creator.membership_groups`,path:`membership_groups`,component:$.creator(`membership_groups/membership_group_index_whitelabel`)},{name:`creator.membership_groups.edit`,path:`membership_groups/:membershipGroupId/edit`,component:$.builder(`membership_groups/membership_group_edit_whitelabel`)},{name:`creator.memberships`,path:`memberships`,component:$.creator(`memberships/memberships_hub`)},{name:`creator.memberships.edit`,path:`memberships/:membershipId/edit`,component:$.builder(`memberships/membership_edit_whitelabel`)},{name:`creator.membership_types.index`,path:`membership_types`,component:$.creator(`membership_types/membership_type_index`)},{name:`creator.membership_types.edit`,path:`membership_types/:membershipTypeId/edit`,component:$.creator(`membership_types/membership_type_edit`)},{name:`creator.subscriptions.index`,path:`subscriptions`,component:$.creator(`subscriptions/site_subscription_index`)},{name:`creator.subscriptions.edit`,path:`subscriptions/:subscriptionId/edit`,component:$.builder(`subscriptions/subscription_edit_whitelabel`)},{name:`creator.campaign_types.index`,path:`campaign_types`,component:$.creator(`campaign_types/campaign_type_index`)},{name:`creator.campaign_types.edit`,path:`campaign_types/:campaignTypeId`,component:$.creator(`campaign_types/campaign_type_edit`)},{name:`creator.campaigns.edit`,path:`campaign_types/:campaignTypeId/campaigns/:campaignId`,component:$.creator(`campaigns/campaign_edit`)},{name:`creator.emails_hub`,path:`emails_hub`,component:$.creator(`emails/emails_hub`)},{name:`creator.emails.index`,path:`emails`,component:$.creator(`email/email_index`)},{name:`creator.grid_items.index`,path:`grid_items`,component:$.creator(`grid_items/grid_item_index`)},{name:`creator.grid_items.edit`,path:`grid_items/:gridItemId`,component:$.creator(`grid_items/grid_item_edit`)},{name:`creator.learning_paths.index`,path:`learning_paths`,component:$.creator(`learning_paths/learning_path_index`)},{name:`creator.learning_paths.edit`,path:`learning_paths/:learningPathId`,component:$.creator(`learning_paths/learning_path_edit`)},{name:`creator.podcast_episodes.index`,path:`podcast_episodes`,component:$.creator(`podcast_episodes/podcast_episode_index`)},{name:`creator.podcast_episodes.edit`,path:`podcast_episodes/:podcastEpisodeId`,component:$.creator(`podcast_episodes/podcast_episode_edit`)},{name:`creator.podcasts.index`,path:`podcasts`,component:$.creator(`podcasts/podcast_index`)},{name:`creator.podcasts.edit`,path:`podcasts/:podcastId`,component:$.creator(`podcasts/podcast_edit`)},{name:`creator.worksheet.comments`,path:`comments(/page/:page)`,component:$.creator(`worksheets/worksheet_comments`)},{name:`creator.exercise.ratings`,path:`ratings`,component:$.creator(`ratings/exercise_ratings_index`)},{component:G9,name:`creator.forum_threads.show`,path:`threads/:forumThreadI
16348d`},{name:`creator.download_link_types.index`,path:`download_link_types`,component:$.creator(`download_link_types/download_link_type_index`)},{name:`creator.download_link_types.edit`,path:`download_link_types/:downloadLinkTypeId`,component:$.creator(`download_link_types/download_link_type_edit`)},{name:`creator.file_management`,path:`file_management`,component:$.creator(`file_management/file_management`)},{name:`creator.uploaded_images.index`,path:`uploaded_images`,component:$.creator(`uploaded_images/uploaded_image_index`)},{name:`creator.uploaded_audios.index`,path:`uploaded_audios`,component:$.creator(`uploaded_audios/uploaded_audio_index`)},{name:`creator.banner_notices.index`,path:`banner_notices`,component:$.creator(`banner_notices/banner_notice_index_whitelabel`)},{name:`creator.banner_notices.edit`,path:`banner_notices/:bannerNoticeId`,component:$.builder(`banner_notices/banner_notice_edit_whitelabel`)},{name:`creator.notification_announcements.index`,path:`notifications`,component:$.creator(`notification_announcements/notification_announcement_index`)},{name:`creator.notification_announcements.edit`,path:`notifications/:notificationAnnouncementId`,component:$.creator(`notification_announcements/notification_announcement_edit`)},{name:`creator.custom_tabs.edit`,path:`custom_tabs/:customTabId`,component:$.creator(`site/custom_tab_edit`)},{name:`creator.mailerlite_groups.index`,path:`mailerlite_groups`,component:$.creator(`mailerlite_groups/mailerlite_group_index`)}]},{component:$.creator(`producer/producer_navigation`),allowWhiteLabel:!0,children:[{name:`creator.producer.concepts.index`,path:`decks`,component:$.creator(`producer/producer_concept`)},{name:`creator.producer`,path:`decks/:conceptId/producer`,component:$.creator(`producer/producer`)},{name:`creator.producer.video_clips.index`,path:`video_clips`,component:$.creator(`video_clips/video_clips`)},{name:`creator.producer.recording_sessions.index`,path:`recording_sessions`,component:$.creator(`recording_sessions/recording_sessions_index`)},{name:`creator.producer.recording_sessions.show`,path:`recording_sessions/:recordingSessionId`,component:$.creator(`recording_sessions/recording_sessions_show`)},{name:`creator.producer.sentences.index`,path:`sentences`,component:$.creator(`sentences/sentences`)}
16348,{name:`creator.producer.words.index`,path:`words/page/:page`,component:$.creator(`words/word_index`)},{name:`creator.sentences.edit`,path:`sentences/:sentenceId`,component:$.creator(`sentences/sentence_edit`)}]}]},{name:`builder`,path:`builder`,component:$.builder(`builder`),children:[{name:`dashboard`,path:`dashboard`,component:$.builder(`dashboard/dashboard`),children:[{name:`builder.dashboard.analytics_with_month`,path:`analytics/year/:year/month/:month`,component:$.builder(`analytics/analytics_default`)},{name:`builder.dashboard.analytics`,path:`analytics`,component:$.builder(`analytics/analytics_default`)},{name:`builder.dashboard.payments`,path:`payments`,component:$.builder(`dashboard/payments_dashboard`)},{name:`builder.dashboard.campaign_messages`,path:`campaign_messages`,component:$.builder(`dashboard/campaign_messages_dashboard`)},{name:`builder.dashboard.exercises`,path:`exercises`,component:$.builder(`dashboard/exercises_dashboard`)},{name:`builder.dashboard.levels`,path:`levels`,component:$.builder(`dashboard/levels_dashboard`)}]},{name:`mailings`,path:``,component:$.builder(`outreach`),children:[{name:`builder.referrer_options.index`,path:`referrer_options`,component:$.builder(`referrer_options/referrer_option_index`)},{name:`builder.promotions.index`,path:`promotions`,component:$.builder(`promotions/promotion_index`)},{name:`builder.promotions.edit`,path:`promotions/:promotionId`,component:$.builder(`promotions/promotion_edit`)},{name:`builder.notifications.index`,path:`notifications`,component:$.builder(`notifications/notification_index`)},{name:`builder.campaign_messages.index`,path:`campaign_messages`,component:$.builder(`campaign_messages/campaign_message_index`)},{name:`builder.campaign_types.index`,path:`campaign_types`,component:$.builder(`campaign_types/campaign_type_index`)},{name:`builder.campaign_types.edit`,path:`campaign_types/:campaignTypeId`,component:$.builder(`campaign_types/campaign_type_edit`)},{name:`builder.campaigns.edit`,path:`campaign_types/:campaignTypeId/campaigns/:campaignId`,component:$.builder(`campaigns/campaign_edit`)},{name:`builder.notifications.send_notification`,path:`notifications/send_notification`,component:$.builder(`notifications/send_notification`)},{name:`builder.campaign_messages.show`,path:`campaign_messages/:campaignMessageId`,component:$.builder(`campaign_messages/campaign_message_show`)}]},{name:`concepts`,path:``,component:$.builder(`concept`),children:[{name:`builder.concepts.index`,path:`concepts`,component:$.builder(`concepts/concept_index`)},{name:`builder.concepts.edit`,path:`concepts/:conceptId`,component:$.builder(`concepts/concept_edit`)},{name:`builder.concept_categories.index`,path:`concepts_categories`,component:$.builder(`concept_categories/concept_category_index`)},{name:`builder.concept_categories.edit`,path:`concepts_categories/:conceptCategoryId`,component:$.builder(`concept_categories/concept_category_edit`)},{name:`builder.grammar_descriptions.index`,path:`grammar_descriptions`,component:$.builder(`grammar_descriptions/grammar_description_index`)},{name:`builder.grammar_descriptions.edit`,path:`grammar_descriptions/:grammarDescriptionId`,component:$.builder(`grammar_descriptions/grammar_description_edit`)}]},{name:``,path:``,component:$.builder(`deck`),children:[{name:`builder.trees.edit`,path:`trees/:treeId`,component:$.builder(`trees/tree_edit`)},{name:`builder.tree_modules.edit`,path:`trees/:treeId/tree_modules/:treeModuleId`,component:$.builder(`tree_modules/tree_module_edit`)},{name:`builder.trees_modules.index`,path:`trees/:treeId/tree_modules`,component:$.builder(`tree_modules/tree_module_index`)},{name:`builder.trees.index`,path:`trees`,component:$.builder(`trees/tree_index`)},{name:`builder.tree_nodes.edit`,path:`trees/:treeId/tree_modules/:treeModuleId/tree_nodes/:treeNodeId`,component:$.builder(`tree_nodes/tree_node_edit`)},{name:`builder.tree_nodes.direct_edit`,path:`tree_nodes/:treeNodeId`,component:$.builder(`tree_nodes/tree_node_edit`)},{name:`builder.tree_nodes_without_tree.edit`,path:`tree_nodes/:treeNodeId`,component:$.builder(`tree_nodes/tree_node_edit`)},{name:`builder.trees.concepts.edit`,path:`trees/:treeId/tree_modules/:treeModuleId/tree_nodes/:treeNodeId/concepts/:conceptId`,component:$.builder(`tree_nodes/concept_studio`)},{name:`builder.decks.index`,path:`decks/page/:page`,component:$.builder(`decks/deck_index`)},{name:`builder.interjections.index`,path:`interjections`,component:$.builder(`interjections/interjection_index`)},{name:`builder.interjections.edit`,path:`interjections/:interjectionId`,component:$.builder(`interjections/interjection_edit`)},{name:`builder.user_decks.index`,path:`user_decks`,component:$.builder(`user_decks/user_deck_index`)},{name:`builder.decks.user_decks.index`,path:`decks/:deckId/user_decks`,component:$.builder(`user_decks/user_deck_index`)},{name:`builder.ratings.index`,path:`ratings`,component:$.builder(`ratings/rating_index`)},{name:`builder.ratings.edit`,path:`ratings/:ratingId`,component:$.builder(`ratings/rating_edit`)},{name:`builder.rating_types.index`,path:`rating_types`,component:$.builder(`rating_types/rating_type_index`)},{name:`builder.rating_types.edit`,path:`rating_types/:ratingTypeId`,component:$.builder(`rating_types/rating_type_edit`)},{name:`builder.decks.edit`,path:`decks/:deckId`,component:$.builder(`decks/deck_edit`)},{name:`builder.decks.reviews.index`,path:`users/:userId/decks/:deckId/`,component:$.builder(`decks/reviews_index`)},{name:`builder.trees.decks.edit`,path:`trees/:treeId/tree_modules/:treeModuleId/tree_nodes/:treeNodeId/decks/:deckId`,component:$.builder(`decks/deck_edit`)},{name:`builder.deck_rulebooks.index`,path:`deck_rulebooks`,component:$.builder(`deck_rulebooks/deck_rulebook_index`)},{name:`builder.deck_rulebooks.edit`,path:`deck_rulebooks/:deckRulebookId`,component:$.builder(`deck_rulebooks/deck_rulebook_edit`)},{name:`builder.card_types.index`,path:`card_types`,component:$.builder(`card_types/card_type_index`)},{name:`builder.card_types.edit`,path:`card_types/:cardTypeId`,component:$.builder(`card_types/card_type_edit`)}]},{name:`subscriptions`,path:``,component:$.builder(`subscription`),children:[{name:`builder.payment_intents.index`,path:`/payment_intents`,component:$.builder(`payment_intents/payment_intent_index`)},{name:`builder.affiliate_payouts.index`,path:`/affiliate_payouts`,component:$.builder(`affiliate_payouts/affiliate_payout_index`)},{name:`builder.affiliate_payouts.show`,path:`/affiliate_payouts/:affiliatePayoutId`,component:$.builder(`affiliate_payouts/affiliate_payout_show`)},{name:`builder.subscriptions.index`,path:`subscriptions`,component:$.builder(`subscriptions/subscription_index`)},{name:`builder.subscriptions.edit`,path:`subscriptions/:subscriptionId`,component:$.builder(`subscriptions/subscription_edit_default`)},{name:`builder.subscriptions.payments.edit`,path:`subscriptions/:subscriptionId/payments/:paymentId`,component:$.builder(`payments/payment_edit`)},{name:`builder.payments.edit`,path:`payments/:paymentId`,component:$.builder(`payments/payment_edit`)},{name:`builder.payments.index`,path:`payments`,component:$.builder(`payments/payment_index`)},{name:`builder.memberships.index`,path:`memberships`,component:$.builder(`memberships/membership_index`)},{name:`builder.memberships.edit`,path:`memberships/:membershipId`,component:$.builder(`memberships/membership_edit_default`)},{name:`builder.membership_types.index`,path:`membership_types`,component:$.builder(`membership_types/membership_type_index`)},{name:`builder.membership_types.edit`,path:`membership_types/:membershipTypeId`,component:$.builder(`membership_types/membership_type_edit`)},{name:`builder.membership_groups.index`,path:`membership_groups`,component:$.builder(`membership_groups/membership_group_index_default`)},{name:`builder.membership_groups.edit`,path:`membership_groups/:membershipGroupId`,component:$.builder(`membership_groups/membership_group_edit_default`)}]},{name:`site`,path:``,component:$.builder(`site`),children:[{name:`builder.ai_services.index`,path:`ai_services`,component:$.builder(`ai_services/ai_service_index`)},{name:`builder.languages.index`,path:`languages`,component:$.builder(`languages/language_index`)},{name:`builder.banner_notices.index`,path:`banner_notices`,component:$.builder(`banner_notices/banner_notice_index_default`)},{name:`builder.banner_notices.edit`,path:`banner_notices/:bannerNoticeId`,component:$.builder(`banner_notices/banner_notice_edit_default`)},{name:`builder.groups.index`,path:`groups`,component:$.builder(`groups/group_index`)},{name:`builder.groups.edit`,path:`groups/:groupId`,component:$.builder(`groups/group_edit`)},{name:`builder.site.index`,path:`sites`,component:$.builder(`sites/site_index`)},{name:`builder.site.edit`,path:`sites/:siteId`,component:$.builder(`sites/site_edit`)},{name:`builder.page.index`,path:`pages`,component:$.builder(`pages/page_index`)},{name:`builder.uploaded_images.index`,path:`uploaded_images`,allowWhiteLabel:!0,component:$.creator(`uploaded_images/uploaded_image_index`)},{name:`builder.page.show`,path:`pages/:pageId`,component:N9},{name:`builder.page.edit`,path:`pages/:pageId/edit`,component:$.builder(`pages/page_edit`)},{name:`builder.job.index`,path:`jobs`,component:$.builder(`jobs/job_index`)},{name:`builder.job.edit`,path:`jobs/:jobId/edit`,component:$.builder(`jobs/job_edit`)},{name:`builder.faq_categories.index`,path:`faq_categories`,component:$.builder(`faq_categories/faq_category_index`)},{name:`builder.faq_categories.edit`,path:`faq_categories/:faqCategoryId`,component:$.builder(`faq_categories/faq_category_edit`)},{name:`builder.faq_items.edit`,path:`faq_categories/:faqCategoryId/faq_items/:faqItemId`,component:$.builder(`faq_items/faq_item_edit`)},{name:`builder.site_releases.edit`,path:`site_release/:siteReleaseId`,component:$.builder(`site_releases/site_release_edit`)},{name:`builder.site_releases.index`,path:`site_releases`,component:$.builder(`site_releases/site_release_index`)},{name:`builder.forums.index`,path:`forums`,component:$.builder(`forums/forum_index`)},{name:`builder.forums.edit`,path:`forums/:forumId`,component:$.builder(`forums/forum_edit`)},{name:`builder.versions.index`,path:`versions`,component:$.builder(`versions/version_index`)},{name:`builder.versions.show`,path:`versions/:versionId`,component:$.builder(`versions/version_show`)},{name:`builder.team_members.index`,path:`team_members`,component:$.builder(`team_members/team_member_index`)},{name:`builder.team_members.edit`,path:`team_members/:teamMemberId`,component:$.builder(`team_members/team_member_edit`)}]},{name:`users`,path:``,component:$.builder(`user`),children:[{name:`builder.users.index`,path:`users`,component:$.builder(`users/user_index`)},{name:`builder.league_levels.index`,path:`league_levels`,component:$.builder(`leagues/league_levels_index`)},{name:`builder.league_levels.edit`,path:`league_levels/:leagueLevelId/edit`,component:$.builder(`leagues/league_level_edit`)},{name:`builder.users.edit`,path:`users/:userId`,component:$.builder(`users/user_edit`)},{name:`builder.invitations.index`,path:`invitations`,component:$.builder(`invitations/invitation_index`)},{name:`builder.challenges.index`,path:`challenges`,component:$.builder(`challenges/challenge_index`)},{name:`builder.sessions.index`,path:`users/:userId/sessions`,component:$.builder(`sessions/session_index`)},{name:`builder.contact_messages.index`,path:`contact_messages`,component:$.builder(`contact_messages/contact_message_index`)},{name:`builder.contact_messages.show`,path:`contact_messages/:contactMessageId`,component:$.builder(`contact_messages/contact_message_show`)},{name:`builder.comments.index`,path:`comments`,component:$.builder(`comments/comment_index`)},{name:`builder.languages.edit`,path:`languages/:languageId`,component:$.builder(`languages/language_edit`)}]},{name:`translations`,path:``,component:$.builder(`translation`),children:[{name:`builder.video_clips.index`,path:`video_clips`,component:$.builder(`video_clips/video_clip_index`)},{name:`builder.video_clips.edit`,path:`video_clips/:videoClipId`,component:$.builder(`video_clips/video_clip_edit`)},{name:`builder.words.index`,path:`words/page/:page`,component:$.builder(`words/word_index`)},{name:`builder.sentences.index`,path:`sentences`,component:$.builder(`sentences/sentence_index`)},{name:`builder.sentences.edit`,path:`sentences/:sentenceId`,component:$.builder(`sentences/sentence_edit`)},{name:`builder.words.edit`,path:`words/:wordId`,component:$.builder(`words/word_edit`)},{name:`builder.sentence_submissions.index`,path:`sentence_submissions`,component:$.builder(`sentence_submissions/sentence_submission_index`)},{name:`builder.card_submissions.index`,path:`card_submissions/page/:page`,component:$.builder(`cards/user_submission_index`)},{name:`builder.sources.index`,path:`sources`,component:$.builder(`sources/source_index`)},{name:`builder.translation_sources.index`,path:`translation_sources`,component:$.builder(`translation_sources/translation_source_index`)},{name:`builder.translation_sources.edit`,path:`translation_sources/:translationSourceId`,component:$.builder(`translation_sources/translation_source_edit`)},{name:`builder.word_types.index`,path:`word_types`,component:$.builder(`word_types/word_type_index`)},{name:`builder.word_types.edit`,path:`word_types/:wordTypeId`,component:$.builder(`word_types/word_type_edit`)},{name:`builder.sources.edit`,path:`sources/:sourceId`,component:$.builder(`sources/source_edit`)},{name:`builder.targets.index`,path:`targets`,component:$.builder(`targets/target_index`)},{name:`builder.targets.edit`,path:`targets/:targetId`,component:$.builder(`targets/target_edit`)},{name:`builder.levels.index`,path:`levels`,component:$.builder(`levels/level_index`)},{name:`builder.levels.edit`,path:`levels/:levelId`,component:$.builder(`levels/level_edit`)}]}]},{name:`discord`,path:`/discord`,component:ONe,allowWhiteLabel:!0,signedOutRoute:!0},{name:`page.show`,path:`pages/:pageId`,component:N9,allowWhiteLabel:!0},{name:`page.show.slug`,path:`pages/slug/:slug`,component:WHe,allowWhiteLabel:!0},{name:`easygerman`,path:`easygerman`,component:Ca}],redirects:[{from:`groups/:groupId/worksheets/:worksheetId`,to:`posts/:worksheetId`},{from:`groups/:groupId/worksheets/:worksheetId/vocab`,to:`posts/:worksheetId/vocab`},{from:`groups/:groupId/worksheets/:worksheetId/comments`,to:`posts/:worksheetId/comments`},{from:`worksheets/:worksheetId`,to:`posts/:worksheetId`},{from:`worksheets/:worksheetId/vocab`,to:`posts/:worksheetId/vocab`},{from:`worksheets/:worksheetId/comments`,to:`posts/:worksheetId/comments`},{from:`/site_releases`,to:`/blog`},{from:`*`,to:`/redirect`}]}],redirects:[]};function K9(e,{router:t,routes:n,params:r,routeName:i}){if(e){if(e.setRouteContext){if(!t)return;e.setRouteContext({location:t.location,routes:n,params:r,push:t.push,replace:t.replace,createHref:t.createHref})}else e.setRouter(t);i&&e.setRouteName(i)}}function tUe({router:e,routes:t,params:n,routeName:r,children:i}){return V.useLayoutEffect(()=>{let i={router:e,routes:t,params:n,routeName:r};K9(H.RouteStore,i),U.AppUI.routeStore!==H.RouteStore&&K9(U.AppUI.routeStore,i)},[n,r,e,t]),i}function nUe(e){let{children:t,component:n,indexRedirects:r,name:i,path:a,redirects:o,...s}=e;return s}function rUe(e){let{children:t=[],component:n,indexRedirects:r=[],name:i,path:a,redirects:o=[]}=e;return{type:`route`,name:i||null,path:a||``,canonicalPath:a||``,component:n||null,handle:nUe(e),children:t.flatMap(e=>q9(e)),indexRedirects:r.map(e=>({type:`indexRedirect`,to:e.to})),redirects:o.map(e=>({type:`redirect`,from:e.from,to:e.to}))}}function q9(e){let t=rUe(e),n=Le(t.path);return n.length<=1?[t]:n.map(e=>({...t,path:e,canonicalPath:t.path}))}function iUe(e){return{routes:(e.routes||[]).flatMap(e=>q9(e)),redirects:(e.redirects||[]).map(e=>({type:`redirect`,from:e.from,to:e.to}))}}function J9(e){let t=[],n=[...e.redirects||[]],r={};function i(e,a,o){let s=e.path?e.path[0]===`/`?Fe(e.path):Fe(`${a||``}/${e.path}`):a||``,c=e.canonicalPath?e.canonicalPath[0]===`/`?Fe(e.canonicalPath):Fe(`${a||``}/${e.canonicalPath}`):s,l=[...o,e];e.name&&s&&(r[e.name]=c),s&&t.push({route:e,chain:l,path:s,canonicalPath:c}
16348),(e.redirects||[]).forEach(e=>n.push(e)),(e.children||[]).forEach(e=>i(e,s,l))}return(e.routes||[]).forEach(e=>i(e,``,[])),{records:t,redirects:n,namedRoutes:r}}function Y9(e){return{...e.handle,name:e.name,path:e.path,canonicalPath:e.canonicalPath,legacyRoute:{...e.handle,name:e.name,path:e.canonicalPath||e.path,component:e.component}}}function aUe({route:e}){let t=e.component;return t?(0,K.jsx)(t,{}):(0,K.jsx)(f,{})}function oUe({namedRoutes:e}){let t=h(),n=c(),r=d(),i=g(),a=V.useMemo(()=>n.map(e=>e.handle&&e.handle.legacyRoute).filter(Boolean),[n]),o=V.useMemo(()=>n.reduce((e,t)=>({...e,...t.params}),{}),[n]);return(0,K.jsx)(tUe,{router:V.useMemo(()=>({location:t,routes:a,params:o,push(t){r(Ie(t,e))},replace(t){r(Ie(t,e),{replace:!0})},createHref(t){return Ie(t,e)}}),[t,e,r,o,a]),routes:a,params:o,routeName:a[a.length-1]&&a[a.length-1].name,children:i})}function sUe(e,t){return Le(e.from).map(n=>({path:n,loader({params:n}){return p(Pe(Ie(e.to,t),n))}}))}function cUe(e,t,n){return{path:e,loader({params:e}){return p(Pe(Ie(t.to,n),e))}}}function X9(e){return{element:(0,K.jsx)(aUe,{route:e}),handle:Y9(e)}}function lUe(e){let[t,...n]=e.chain,r={...X9(t),path:e.path},i=r;return n.forEach((e,t)=>{let r=X9(e);t===n.length-1&&(r.index=!0),i.children=[r],i=r}),r}function uUe(e){let t=J9(e),n=t.records.filter(e=>!(e.route.indexRedirects||[]).length).map(e=>lUe(e)),r=t.records.flatMap(e=>(e.route.indexRedirects||[]).map(n=>cUe(e.path,n,t.namedRoutes))),i=t.redirects.flatMap(e=>sUe(e,t.namedRoutes));return[{element:(0,K.jsx)(oUe,{namedRoutes:t.namedRoutes}),children:[...n,...r,...i]}]}var Z9=iUe(eUe),dUe=u(uUe(Z9)),Q9=J9(Z9);H.RouteStore.setPathFor(e=>Ne(e,Q9.namedRoutes));function fUe(){return(0,K.jsx)(Re.Provider,{value:Q9.namedRoutes,children:(0,K.jsx)(ba,{router:dUe})})}var pUe=b();function mUe(e){let t=e&&(e.payload||e.detail||e.error||e.reason||e);if(!t)return!1;let n=t.code||t.reason&&t.reason.code,r=String(t.message||t.reason&&t.reason.message||t),i=String(t.stack||t.reason&&t.reason.stack||``);return!!(n===`CSS_CHUNK_LOAD_FAILED`||r.includes(`CSS_CHUNK_LOAD_FAILED`)||r.includes(`ChunkLoadError`)||r.includes(`Loading CSS chunk`)&&r.includes(`failed`)||r.includes(`Unable to preload CSS for`)||r.includes(`Failed to fetch dynamically imported module`)||r.includes(`Failed to fetch`)&&i.includes(`preload-helper`))}function $9(e,t={}){if(!t.forceReload&&!mUe(e)||typeof window>`u`||typeof navigator<`u`&&navigator.onLine===!1)return!1;let n=`seedlang__chunk_reload_attempted_v1`;try{if(window.sessionStorage&&window.sessionStorage.getItem(n))return!1;window.sessionStorage&&window.sessionStorage.setItem(n,String(Date.now()))}catch{return!1}return window.location.reload(),!0}typeof window<`u`&&(window.addEventListener(`vite:preloadError`,e=>{$9(e,{forceReload:!0})&&e.preventDefault()}),window.addEventListener(`unhandledrejection`,e=>{$9(e)}),window.addEventListener(`error`,e=>{$9(e)})),document.addEventListener(`DOMContentLoaded`,async()=>{window.layout=new pUe.AppLayout(void 0),await(0,W.bootstrapPosthogConfig)(),(0,xa.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(fUe,{}))});export{Vl as $,rP as A,CO as B,HU as C,AL as D,xV as E,xN as F,By as G,iS as H,Aj as I,Mg as J,mv as K,dA as L,$N as M,YN as N,HI as O,LN as P,Du as Q,wk as R,SW as S,SV as T,yx as U,NS as V,Pb as W,hp as X,Tg as Y,mp as Z,dZ as _,Ko as _t,W3 as a,lc as at,pG as b,Ya as bt,D4 as c,Rs as ct,T0 as d,Ns as dt,dl as et,x0 as f,Ms as ft,zZ as g,Yo as gt,qZ as h,is as ht,C6 as i,_c as it,aP as j,iP as k,w2 as l,Ls as lt,p1 as m,as as mt,$7 as n,el as nt,R4 as o,Gs as ot,u0 as p,ks as pt,o_ as q,Y8 as r,xc as rt,L4 as s,zs as
16348st,f9 as t,nl as tt,S2 as u,Fs as ut,_K as v,po as vt,MH as w,nG as x,Ga as xt,ZG as y,uo as yt,ak as z}; 16349//# sourceMappingURL=index-8EFJNjBM.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.