const __vite__fileDeps=["app-assets/index-BWpQj5dO.js","app-assets/vuex-Bm-UT7-s.js","app-assets/vue-BGaIUyFC.js","app-assets/@babel-BRiN2TRP.js","app-assets/actioncable-D3Lk-CZk.js","app-assets/axios-CvD5kKgr.js","app-assets/vue-router-BFWJYuKh.js","app-assets/portal-vue-173QLG0T.js","app-assets/vue-clickaway-Dker6uVh.js","app-assets/video.js-BdAtIMfo.js","app-assets/global-Dz5Zkxrd.js","app-assets/keycode-jx8KdrTi.js","app-assets/safe-json-parse-BhgJTUW0.js","app-assets/@videojs-CaNidqOn.js","app-assets/is-function-Bs8j6Gmq.js","app-assets/url-toolkit-C8w2cR4P.js","app-assets/videojs-vtt.js-fnICSOhj.js","app-assets/m3u8-parser-CYaJx_in.js","app-assets/mpd-parser-xQ0GTwOu.js","app-assets/@xmldom-CW138omC.js","app-assets/mux.js-DnGs2PUl.js","app-assets/videojs-contrib-quality-levels-C1qIgS7_.js","app-assets/videojs-max-quality-selector-BHMFeLwH.js","app-assets/lodash-es-5q1Sw2-l.js","app-assets/tinycolor2-DibkaW6I.js","app-assets/@sentry-DOn_AAUq.js","app-assets/@sentry-internal-eZxaJnR6.js","app-assets/vue2-datepicker-CLE0wFNA.js","app-assets/date-format-parse-DOuFppYK.js","app-assets/vuedraggable-BqZ68QqV.js","app-assets/sortablejs-BFucMiPM.js","app-assets/vuejs-datepicker-5yrtdnDh.js","app-assets/vuelidate-CTmp4t9R.js","app-assets/vue-advanced-cropper-BLjYMIX5.js","app-assets/vue2-dropzone-BQBDrLp2.js","app-assets/vue-mugen-scroll-BLjhwSQk.js","app-assets/throttleit-IejgQmVp.js","app-assets/element-in-view-CNVB6KS3.js","app-assets/vue-multiselect-b9m-tqHl.js","app-assets/vue-multiselect-BonKxSOw.css","app-assets/@stripe-CZ3oPZtH.js","app-assets/vue-notification-DlyI_lDn.js","app-assets/vue-textarea-autosize-DLc4kbjP.js","app-assets/vue-meta-D4T15T-7.js","app-assets/deepmerge-B4gYtCHE.js","app-assets/vue-clipboard2-nHzY8kjU.js","app-assets/clipboard-Dwi1Ockq.js","app-assets/vue2-filters-C5HS0Q51.js","app-assets/vue-observe-visibility-CgcMUjSD.js","app-assets/vue-input-autowidth-Dy4-CKFL.js","app-assets/es6-object-assign-sG-3iD8W.js","app-assets/vue-i18n-CbZIWksu.js","app-assets/moment-CyRzbnbt.js","app-assets/vue-moment-Cmv__WZd.js","app-assets/moment-range-Fiu5lXlm.js","app-assets/bootstrap-vue-CJetgPvW.js","app-assets/vue-functional-data-merge-CapLYTHa.js","app-assets/popper.js-CCzXKaxK.js","app-assets/index-CYmZceot.css","app-assets/index-C__6fxRZ.js","app-assets/index-CKziz2ox.js","app-assets/index-CJ2G0gg3.css","app-assets/index-ZSVqVpRx.js","app-assets/vue-recaptcha-v3-5c_tNfTA.js","app-assets/recaptcha-v3-CXtZaWMr.js","app-assets/index-Djvf599i.js","app-assets/index-BYOf6ZnY.css","app-assets/index-CUAnvauG.js","app-assets/index-Cn8a2iRC.js","app-assets/index-CcOTunDN.js","app-assets/index-BmhzQyps.css","app-assets/index-yo3Pjf11.js","app-assets/index-B19Ee4ji.js","app-assets/index-BsdxwzrW.js","app-assets/index-CLJb3z1B.js","app-assets/index-BJIaxaFg.js","app-assets/index-CIj_rW8S.css","app-assets/index-DFgOT9s9.js","app-assets/index-CR_FfKSP.css","app-assets/index-DNCwH2oK.js","app-assets/index-Czjo1kM-.js","app-assets/addGoalsIcon-CrUbwnJ4.js","app-assets/addIcon-CRP8DtEm.js","app-assets/addInternalNoteIcon-ZjYRE9yK.js","app-assets/addNewFolderIcon-DU16geoh.js","app-assets/addNewIcon-k5U5ZmIa.js","app-assets/addNewTrainingIcon-CFpJSZ0J.js","app-assets/addTextAndImageIcon-ClQVDGJq.js","app-assets/addTextSectionIcon-Gz6GU1YZ.js","app-assets/addTrainingBlockIcon-CmOjiGh6.js","app-assets/addTrainingIcon-CBabW4Ue.js","app-assets/alertFillIcon-Bfss_dGc.js","app-assets/alertStrokeIcon-DKLL3pBO.js","app-assets/arrowFillDownIcon-BiOk4b6V.js","app-assets/arrowFillUpIcon-BVSWT4L9.js","app-assets/arrowLeftIcon-CPUGO6zh.js","app-assets/arrowUpDownIcon-q6XLZMrS.js","app-assets/arrowUpIcon-Bm_k0zm_.js","app-assets/attachmentFileIcon-BzbCOgWv.js","app-assets/attachmentIcon-CjSNGBKo.js","app-assets/bankIcon-B8gj9Q_y.js","app-assets/beginingIcon-BlXC_k1D.js","app-assets/blockIcon-CFbEM7Lx.js","app-assets/calendarIcon-D0NPqU7i.js","app-assets/challangeIcon-DsYdvtAO.js","app-assets/changeIcon-cfD2Sx8V.js","app-assets/checklistIcon-BoWZ-mLu.js","app-assets/chevronDoubleStrokeLeftIcon-CYRBhq4q.js","app-assets/chevronDoubleStrokeRightIcon-_c_cv-Dm.js","app-assets/chevronFillDownIcon-CmTTkR_5.js","app-assets/chevronFillUpIcon-4SOdmJCv.js","app-assets/chevronStrokeDownIcon-CSar0Gxi.js","app-assets/chevronStrokeLeftIcon-Gh6k2YpF.js","app-assets/chevronStrokeRightIcon-WXifvJZN.js","app-assets/chevronStrokeUpIcon-odc1sPTX.js","app-assets/clearIcon-ChVJ2MzI.js","app-assets/clientIcon-BAoh_pdK.js","app-assets/clientsIcon-CPuU3SE-.js","app-assets/closeIcon-CxCW3CwN.js","app-assets/closeStrokeIcon-CVjbZgsl.js","app-assets/commentIcon-ldByg1er.js","app-assets/communityMessageIcon-BGxC1YPn.js","app-assets/compareIcon-C4P4t5rS.js","app-assets/completionDoneIcon-CNcFy9a9.js","app-assets/completionEmptyIcon-gWX_Yv1A.js","app-assets/completionOnlineIcon-CSdse9YZ.js","app-assets/completionPartialIcon-Bsg2t69e.js","app-assets/completionSkippedIcon-DRMOv8GQ.js","app-assets/copyIcon-CjuL7SUV.js","app-assets/currencyIcon-B4qCLtOa.js","app-assets/cutIcon-BWtIYgKw.js","app-assets/dailyLeaderboardIcon-C34QWUYt.js","app-assets/dangerIcon-0Am6VzX-.js","app-assets/deleteMediaIcon-T7xLag74.js","app-assets/doneIcon-DUWHS-xA.js","app-assets/doneStrokeIcon-CLZhB2io.js","app-assets/doneStrokeRoundIcon-Wie-9GZM.js","app-assets/downloadIcon-Bpeg36pR.js","app-assets/editIcon-C64NpJOg.js","app-assets/editableIcon-Cs5IsFdB.js","app-assets/energyIcon-DBX4pkLW.js","app-assets/exportImportIcon-tTnOi4OQ.js","app-assets/externalLinkIcon-Dx0GyWXS.js","app-assets/eyeClosedIcon-DhzJsh_G.js","app-assets/eyeOpenIcon-BuPKKUjr.js","app-assets/facebookIcon-DdKQoZfM.js","app-assets/feedIcon-DvJIrcdi.js","app-assets/filterIcon-CG3Lutfe.js","app-assets/folderIcon-odkX4dK-.js","app-assets/genderFemailIcon-CLU5TpsH.js","app-assets/genderMaleIcon-CwF_rh9_.js","app-assets/genderOther-CAxf7NPO.js","app-assets/gifIcon-BeJK8aHg.js","app-assets/graphIcon-COHau3Br.js","app-assets/graphStrokeIcon-C47zgKf7.js","app-assets/historyIcon-Bv0s23RS.js","app-assets/imageIcon-BVxD5K6j.js","app-assets/inboxIcon-DY741qxS.js","app-assets/insertTemplateIcon-D7JrWu6l.js","app-assets/instagramIcon--YoMzgyu.js","app-assets/leaderboardIcon-_cgxPwIo.js","app-assets/likeIcon-BmY40tsn.js","app-assets/linkShareIcon-vEWebv4Y.js","app-assets/loadingIcon-ukxb_qyD.js","app-assets/loadingIconAnimated-veyzGvoh.js","app-assets/lockIcon-BTMB4_WA.js","app-assets/logOutIcon-Bv1m-Jx7.js","app-assets/markAsReadIcon-CZ2K7CxK.js","app-assets/menuIcon-CPOumkAy.js","app-assets/messageIcon-Ck2kpJAE.js","app-assets/messageToCommunityIcon-2WLW_GmY.js","app-assets/minusIcon-BI21rxfc.js","app-assets/minusStrokeIcon-DX6XcQtz.js","app-assets/minusStrokeRoundIcon-BNsFg13l.js","app-assets/missStrokeRoundIcon-DSStFtwI.js","app-assets/moodBadIcon-C_JOtYP4.js","app-assets/moodGreatIcon-BiFo35WC.js","app-assets/moodNormalIcon-DrK1336I.js","app-assets/moodPerfectIcon-Ec16U9hh.js","app-assets/moodReallybadIcon-CCQluP_b.js","app-assets/moreIcon-CGE_kUCc.js","app-assets/multiCalendarIcon-j48zuXu4.js","app-assets/muteIcon-DRqLJLS6.js","app-assets/newClientIcon-B-mJSDqh.js","app-assets/notOkIcon-BDsO92Ug.js","app-assets/okIcon-CKW5j0Yj.js","app-assets/ongoingIcon-CLn2QcOg.js","app-assets/pasteIntoDayIcon-BidT6syi.js","app-assets/pasteWithStructureIcon-DrA-L-t6.js","app-assets/pauseIcon-Blgw2f_p.js","app-assets/pendingIcon-CqPx7Ivl.js","app-assets/pendingStrokeIcon-hUtjnBuK.js","app-assets/personalBestIcon-BEOo_rqa.js","app-assets/photoFrameIcon-CGCByPUL.js","app-assets/playCircleIcon-DC9jrk18.js","app-assets/playIcon-C3DMiOCx.js","app-assets/plusStrokeIcon-BDQuuZdx.js","app-assets/plusStrokeRoundIcon-DMtyRmTz.js","app-assets/programListIcon-JcDLxNQ4.js","app-assets/questionIcon-DDm6YLD6.js","app-assets/removeFromFolderIcon-BvCZl_m-.js","app-assets/resizeIcon-Uoh7lkoD.js","app-assets/saveIcon-F60UJ-hB.js","app-assets/searchIcon-DFpo__Ab.js","app-assets/sendIcon-D4IoFibw.js","app-assets/shareIcon-BOK6do-Q.js","app-assets/stopIcon-DIe89Ofb.js","app-assets/testEditorIcon-DY-kEBo5.js","app-assets/todayIcon-I-lM-XKU.js","app-assets/trashIcon-ortY2I1I.js","app-assets/twitterIcon-CJWLWfU7.js","app-assets/unmuteIcon-CdDk6SmF.js","app-assets/uploadIcon-BNoV277J.js","app-assets/videoIcon-DyYY9MzM.js","app-assets/viewActivityIcon-DSMWzT3f.js","app-assets/index-BIUWXTpE.js","app-assets/index-CARk0Urw.js","app-assets/index-C2fce70r.js","app-assets/index-BIeAYlrA.css","app-assets/index-BX97Fd_8.css","app-assets/index-D6Wi9c5r.css","app-assets/index-AxIe3dYd.js","app-assets/index-DvVd3Hxc.js","app-assets/index-B8jynWS6.css","app-assets/index-DGoyzdAi.js","app-assets/index-B5sT697r.css","app-assets/index-BtYgbsx2.js","app-assets/index-BJ6rXgNn.css","app-assets/index-CO6c-iH2.css","app-assets/index-D5zb6JAq.js","app-assets/store-filters-BqozuDiq.js","app-assets/index-BE83aaBb.js","app-assets/index-CQN68_K_.css","app-assets/index-Bk0PPlDW.js","app-assets/index-CJu1vyfm.css","app-assets/index-BrVP3DmO.js","app-assets/index-A8Gawjs-.js","app-assets/index-BArJp7ul.css","app-assets/index-DfONz66F.js","app-assets/index-BL6gKmgS.js","app-assets/index-DXIaUZCi.css","app-assets/index-Kzz42KA8.css","app-assets/index-CGfkF-ZJ.js","app-assets/index-Dkebxnf-.js","app-assets/index-Bw8jmr1_.css","app-assets/index-EVnEBHP4.js","app-assets/index-B47qwTHV.css","app-assets/powered_by_stripe-ZD72k6jn.js","app-assets/index-DhPf_wBq.css","app-assets/Layout-BT1fYMle.js","app-assets/index-iLmPfJYV.js","app-assets/tooltip.js-CXPVE6XH.js","app-assets/vue-the-mask-Ee9DVm_1.js","app-assets/utils-DhB7vhAu.js","app-assets/index-DvyVbDnC.css","app-assets/index-CeVlf0ky.js","app-assets/index-BSG-Plpi.js","app-assets/index-Db8sGSl3.js","app-assets/tiptap-qgAVFfjl.js","app-assets/prosemirror-state-BtpaPMC1.js","app-assets/prosemirror-model-xCfwawqe.js","app-assets/orderedmap-C_8IBHpv.js","app-assets/prosemirror-transform-CKPU70jY.js","app-assets/prosemirror-view-BJM4NDTD.js","app-assets/prosemirror-dropcursor-CUk6pXds.js","app-assets/prosemirror-gapcursor-DaYL3qrb.js","app-assets/prosemirror-keymap-COi10N8J.js","app-assets/w3c-keyname-Ds1IJeTl.js","app-assets/prosemirror-commands-rtJ-8Klg.js","app-assets/prosemirror-inputrules-CXUQbiVf.js","app-assets/tiptap-utils-9IUarlVd.js","app-assets/tiptap-extensions-Do4z5cdF.js","app-assets/tiptap-commands-CeFOLtjd.js","app-assets/prosemirror-schema-list-KcRJ2v3a.js","app-assets/highlight.js-C6YL6R_p.js","app-assets/fault-udWYvN5u.js","app-assets/format-0nHQY487.js","app-assets/prosemirror-tables-BopXnCut.js","app-assets/prosemirror-collab-D9RI0sxd.js","app-assets/prosemirror-history-qPOYTfDL.js","app-assets/rope-sequence-DGojYqW9.js","app-assets/index-1OCfrE4J.css","app-assets/index-e0EMSakR.css","app-assets/index-CXwm0fiE.js","app-assets/scores-config-CsFV0MQt.js","app-assets/index-DCEW-Jjh.css","app-assets/hooper-BY1X2aAv.js","app-assets/hooper-CaulBgOs.css","app-assets/utils-JlZSXLA7.js","app-assets/index-Cx7YDyLp.css","app-assets/index-Drcc7CwK.js","app-assets/index-dA_OcRp_.js","app-assets/index-CB_cuzJQ.css","app-assets/index-Bclh1Wxu.js","app-assets/View-BOs4D2hC.js","app-assets/View-Dh8Bsny4.css","app-assets/index-DFrbEp14.css","app-assets/index-CH9YkfrH.css","app-assets/index-DaxfSQqt.js","app-assets/parse-mentions-in-text-X8f6TXsC.js","app-assets/index-BQZO8vol.css","app-assets/index-BAihxC2z.js","app-assets/mood_realbad-DT8hiS0T.js","app-assets/index-DORPtQ5T.css","app-assets/Layout-DD9Lsisq.css","app-assets/index-Dm-dzGVP.js","app-assets/index-CuWFqHMi.js","app-assets/index-21kzkssH.js","app-assets/index-CMQMub9T.css","app-assets/index-D9bCCEKq.js","app-assets/index-Onxqj_ov.css","app-assets/index-Cyw0XjHM.js","app-assets/index-JTTbIPuL.css","app-assets/index-BngW0vzl.js","app-assets/index-fsfXuNU7.js","app-assets/index-C-SazRMN.js","app-assets/index-DRcsJZGC.css","app-assets/flag-icons-BnHB-tyo.css","app-assets/index-DzlqdMgV.css","app-assets/index-BG8qXLHw.js","app-assets/index-BJ2Jy5_Q.css","app-assets/index-1mZ5i0sC.js","app-assets/index-DfBtTztG.css","app-assets/Layout-Cy7GP1j5.js","app-assets/Layout-C9VE3-QU.css","app-assets/index-DkA_F1Tb.js","app-assets/index-CVYGsjd8.css","app-assets/index-BYYHTQEH.js","app-assets/index-BhZOzswz.css","app-assets/index-COjZvb26.js","app-assets/currency-CM3iD-4Z.js","app-assets/index-DwvPzEZM.js","app-assets/index-B1mBVp-d.js","app-assets/index-BkPHZMtC.css","app-assets/index-pdgcyv3A.css","app-assets/index-5hYOtqSk.css","app-assets/index-BWGQ_mVl.js","app-assets/index-ClUjL0yj.js","app-assets/index-BCbNgySC.css","app-assets/index-CPAcVnSh.css","app-assets/index-CNdDuJrf.js","app-assets/index-CEzuSinC.css","app-assets/index-D33sOopQ.js","app-assets/index-CBs5rjMK.css","app-assets/index-DJ4-V8af.js","app-assets/index-CEIgv4Dw.css","app-assets/Layout-CWpJIiMG.js","app-assets/index-DP1jo9F1.js","app-assets/index-bo5DRX1H.js","app-assets/@johmun-Dl8mcSCo.js","app-assets/index-DJL-IDr_.css","app-assets/hyrox_logo-CHbfhe-1.js","app-assets/index-vqVItP6j.css","app-assets/index-C0XI6j5w.js","app-assets/index-CZhyuxHx.css","app-assets/index-CcAomEh0.js","app-assets/index-zEeHUth7.js","app-assets/index-BLNsU8VU.css","app-assets/index-CG4oB7k7.js","app-assets/index-B6poyIRk.css","app-assets/downloadCSV-BaRuB7Fu.js","app-assets/index-D5W3QPhk.css","app-assets/index-Br5yJT1i.js","app-assets/index-DxAmwKq0.js","app-assets/index-_G_w2DGw.js","app-assets/index-DmeoeHQ4.js","app-assets/index-DG7G6AuZ.css","app-assets/index-DlQPtLsV.js","app-assets/index-BHrOqhNy.css","app-assets/index-iUGFglIS.css","app-assets/index-Car2VYxz.js","app-assets/index-CcEQYcYM.css","app-assets/index-BzHvv0mq.js","app-assets/index-r45Gs0Zm.js","app-assets/index-CNBB9slj.js","app-assets/vue-cleave-component-Da_tBfSZ.js","app-assets/cleave.js-D1eNM1ec.js","app-assets/index-CQCwp6hw.css","app-assets/index-C_1ytNZt.css","app-assets/index-doXToF7d.css","app-assets/index-BMs8opfv.js","app-assets/index-BS4LiqPQ.js","app-assets/index-e8wCGYLr.css","app-assets/index-D20WJXI9.css","app-assets/index-tXelq0dQ.js","app-assets/vue-chartjs-Dk8oULxs.js","app-assets/chart.js-a9Z9OpY1.js","app-assets/index-rRzrWK0U.js","app-assets/index-v7bq3cbl.css","app-assets/index-DSl8GqrC.css","app-assets/Layout-DhOERBCP.js","app-assets/index-C_-6ZZuR.js","app-assets/index-cMJ-h69J.js","app-assets/index-B6_HA-EC.js","app-assets/index-C8Jdy1of.css","app-assets/index-o-6fPOYV.css","app-assets/index-Db68eURQ.js","app-assets/index-BYTNpCdQ.js","app-assets/index-DoHGajoA.css","app-assets/index-Dp6F0jv_.css","app-assets/Layout-DJQJRLXc.css","app-assets/Layout-cAIjzMrf.js","app-assets/Layout-CBvr1oK-.css","app-assets/Layout-Vjxm18rP.js","app-assets/index-CcUjmVcE.js","app-assets/index-CFQY9aKP.js","app-assets/index-CqiFYVd8.js","app-assets/index-DVLC0pXs.css","app-assets/index-CQhkQWwG.js","app-assets/index-DHIuKCom.css","app-assets/index-C7JyKtf8.css","app-assets/index-IkMYCz6K.css","app-assets/index-BGbcfUII.js","app-assets/index-BcaElHrp.js","app-assets/index-D7QF3T-f.css","app-assets/confirm-block-subscriptions-Dph7sfC6.js","app-assets/index-Cih29pTl.js","app-assets/index-DCmmmbhS.css","app-assets/index-B4j13Zlo.css","app-assets/Layout-C3Am6jUu.js","app-assets/model-vGiBgle1.js","app-assets/validations_info-DWtMZL1q.js","app-assets/Layout-DNQUL7SL.css","app-assets/index-BVQL8fWe.js","app-assets/index-BjoMZyZc.js","app-assets/index-BuHksg2B.css","app-assets/SkipProgramSalesPage-wYMhurlb.js","app-assets/SkipProgramSalesPage-DvkMGTwl.css","app-assets/index-CvE0Luuw.js","app-assets/index-D1GRe15z.css","app-assets/index-DV9sTXhA.js","app-assets/index-CiBhLJFi.css","app-assets/index-BUHOX2SW.css","app-assets/index-DPHngjKs.js","app-assets/index-kZGwqGK3.css","app-assets/index-BhUMbMqC.js","app-assets/index-CrjBSAsz.js","app-assets/index-CniiIMyt.js","app-assets/index-CZ8yzCaQ.css","app-assets/index-BMJJw_j6.css","app-assets/index-7H0JjbB0.js","app-assets/index-ZVg3fIIB.css","app-assets/index-D8Xu4T9F.js","app-assets/index-DJawXphA.css","app-assets/index-nyczlrOh.js","app-assets/index-B4fZ8csd.css","app-assets/index-DmYfB3fX.js","app-assets/index-VY3VRR5F.css","app-assets/index-DpDBF1i0.js","app-assets/index-DRovHzKb.css","app-assets/index-D4xp35GB.js","app-assets/index-DkHAGpFY.js","app-assets/index-BbPA7fgI.css","app-assets/index-CboOdhGC.css","app-assets/index-YI4vAagP.js","app-assets/index-DYx1OxQ-.css","app-assets/Layout-vY7tg5Kn.js","app-assets/Layout-mUq1B2LI.css","app-assets/index-BHD82GCp.js","app-assets/index--in21hV4.js","app-assets/index-Cis2CZc5.css","app-assets/index-B31DCazl.js","app-assets/index-kDiQRrrT.js","app-assets/index-sBcOfYpf.css","app-assets/index-BMAv4kDT.js","app-assets/index-bnlX6ao-.js","app-assets/index-PDoPdbR1.js","app-assets/index-BcLxv25s.css","app-assets/index-GSicST62.css","app-assets/index-Fu_OGM2a.js","app-assets/index-Dd6V-jhg.css","app-assets/index-iqs_Nq75.js","app-assets/index-CC86x4dl.css","app-assets/index-DIBAxp5u.js","app-assets/index-3GNeEvZB.css","app-assets/index-OMer6viv.js","app-assets/index-BAFgEt8v.css","app-assets/index-CbRL1O8N.js","app-assets/index-CD8YLDib.js","app-assets/index-gmSDuRsi.js","app-assets/index-DW-pPzn5.css","app-assets/index-DujcC7c_.js","app-assets/index-BoVhM-Sc.css","app-assets/index-ByA5PSgb.js","app-assets/index-CIirEPRa.js","app-assets/custom-web-address-popup-AVWa1XZS.js","app-assets/index-D2CJNpm3.css","app-assets/index-CmwWS4Br.js","app-assets/index-BYqbVMOR.css","app-assets/index-dzEB2paC.js","app-assets/index-ET5yjj9z.js","app-assets/vue-color-C8bPdKGA.js","app-assets/index-t9nghGND.css","app-assets/index-CdtCqy4a.css","app-assets/index-DwzyEvqf.js","app-assets/index-Cn70-Gwq.js","app-assets/index-CAekyJDI.css","app-assets/index-CJ1eHRil.js","app-assets/index-C9sp80do.css","app-assets/index-ChOThci6.js","app-assets/index-BkOPnCyM.css","app-assets/index-DLEHtOi6.js","app-assets/index-BhkC386y.css","app-assets/index-vZEFkrYV.js","app-assets/index-DEnwvDoS.css","app-assets/index-BCkTeTnZ.js","app-assets/index-DeM-1Dz8.js","app-assets/index-WIhhepS2.css","app-assets/index-DOq01orK.js","app-assets/index-B9-a_FH_.css","app-assets/index-Bq-m67-I.js","app-assets/index-Bn56HmZo.css","app-assets/index-DuNBCXpZ.js","app-assets/index-WKaAS6KM.js","app-assets/index-DsC_-Yvm.css","app-assets/index-r5K-YYE2.css","app-assets/index-EaKStI2c.js","app-assets/index-bTQCZJIr.css","app-assets/index-DO-sMZnH.js","app-assets/index-DBVwI1A1.css","app-assets/index-5AT1CF25.js","app-assets/index-Bzqb0ak1.css","app-assets/index-BYFuEY_h.css","app-assets/index-DVuXHiLX.js","app-assets/index-DBohuiIJ.css","app-assets/index-DIlx2rgr.js","app-assets/index-BdmfaN9T.css","app-assets/index-DwRrgQ09.js","app-assets/index-65bvgdQc.css","app-assets/Layout-BylE5oo7.js","app-assets/index-DZXYamSr.js","app-assets/index-DrOY86sV.css","app-assets/index-Cwq6URWz.js","app-assets/index-BRplFrlc.css","app-assets/index-DADy8uzp.js","app-assets/index-DPIOCrpH.css","app-assets/index-CGTn2y2U.js","app-assets/index-CveXl0xK.css","app-assets/index-DbjAFrhH.js","app-assets/index-UyUzIE7P.js","app-assets/index-Dt15Dxca.js","app-assets/index-ErIAa_7d.css","app-assets/index-CZMG-l6e.css","app-assets/index-Bj1wpJX-.js","app-assets/index-UR-cLnUP.css","app-assets/index-BV2Quhu2.js","app-assets/index-DR7Fy6z_.css","app-assets/styleGuide-BTzzU6xn.js","app-assets/styleGuide-Dz_e3Pia.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{V as f}from"./vue-BGaIUyFC.js";import{m as C,a as h,b,c as X,i as st}from"./vuex-Bm-UT7-s.js";import{A as St}from"./actioncable-D3Lk-CZk.js";import{C as nt,a as ot}from"./axios-CvD5kKgr.js";import{V as rt}from"./vue-router-BFWJYuKh.js";import{P as ee,a as At}from"./portal-vue-173QLG0T.js";import{m as te}from"./vue-clickaway-Dker6uVh.js";import{v as lt}from"./video.js-BdAtIMfo.js";import"./videojs-contrib-quality-levels-C1qIgS7_.js";import"./videojs-max-quality-selector-BHMFeLwH.js";import{g as ct,i as D,a as dt,w as ae,c as w,f as Y,d as N,s as W,b as Ie}from"./lodash-es-5q1Sw2-l.js";import{t as ie}from"./tinycolor2-DibkaW6I.js";import{s as F,i as Pt,R as Tt}from"./@sentry-DOn_AAUq.js";import{D as A}from"./vue2-datepicker-CLE0wFNA.js";import{d as $t}from"./vuedraggable-BqZ68QqV.js";import{D as xt}from"./vuejs-datepicker-5yrtdnDh.js";import{d as Re,a as It,b as Rt,c as Ee,e as Et,f as De,V as Dt}from"./vuelidate-CTmp4t9R.js";import{C as Ft}from"./vue-advanced-cropper-BLjYMIX5.js";import{v as ut}from"./vue2-dropzone-BQBDrLp2.js";import{M as pt}from"./vue-mugen-scroll-BLjhwSQk.js";import{M as Mt}from"./vue-multiselect-b9m-tqHl.js";import{l as Lt}from"./@stripe-CZ3oPZtH.js";import{N as Ot}from"./vue-notification-DlyI_lDn.js";import{p as Ut}from"./vue-textarea-autosize-DLc4kbjP.js";import{i as Yt}from"./vue-meta-D4T15T-7.js";import{V as Bt}from"./vue-clipboard2-nHzY8kjU.js";import{V as Vt}from"./vue2-filters-C5HS0Q51.js";import{p as Nt}from"./vue-observe-visibility-CgcMUjSD.js";import{V as Wt}from"./vue-input-autowidth-Dy4-CKFL.js";import{V as ht}from"./vue-i18n-CbZIWksu.js";import{h as Ht}from"./moment-CyRzbnbt.js";import{V as qt}from"./vue-moment-Cmv__WZd.js";import{m as zt}from"./moment-range-Fiu5lXlm.js";import{M as jt,F as Gt,T as Zt,D as Kt,C as Qt,N as Jt,a as Xt,b as ea,c as ta,A as aa,P as ia,B as sa,V as na,d as oa,O as ra}from"./bootstrap-vue-CJetgPvW.js";import"./@babel-BRiN2TRP.js";import"./global-Dz5Zkxrd.js";import"./keycode-jx8KdrTi.js";import"./safe-json-parse-BhgJTUW0.js";import"./@videojs-CaNidqOn.js";import"./is-function-Bs8j6Gmq.js";import"./url-toolkit-C8w2cR4P.js";import"./videojs-vtt.js-fnICSOhj.js";import"./m3u8-parser-CYaJx_in.js";import"./mpd-parser-xQ0GTwOu.js";import"./@xmldom-CW138omC.js";import"./mux.js-DnGs2PUl.js";import"./@sentry-internal-eZxaJnR6.js";import"./date-format-parse-DOuFppYK.js";import"./sortablejs-BFucMiPM.js";import"./throttleit-IejgQmVp.js";import"./element-in-view-CNVB6KS3.js";import"./deepmerge-B4gYtCHE.js";import"./clipboard-Dwi1Ockq.js";import"./es6-object-assign-sG-3iD8W.js";import"./vue-functional-data-merge-CapLYTHa.js";import"./popper.js-CCzXKaxK.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function a(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=a(s);fetch(s.href,o)}})();let V;function la(){let t=window.localStorage.getItem("access_token");V=St.createConsumer(`wss://app.fitr.training/cable?token=${t}`)}function ca(){V&&V.disconnect()}function P(t,e,a){let i={channel:t};return a&&(i={...i,...a}),V.subscriptions.create(i,{received:e})}function T(t){t.unsubscribe()}const da="modulepreload",ua=function(t){return"/"+t},Fe={},n=function(e,a,i){let s=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(a.map(u=>{if(u=ua(u),u in Fe)return;Fe[u]=!0;const p=u.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${y}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":da,p||(v.as="script",v.crossOrigin=""),v.href=u,c&&v.setAttribute("nonce",c),document.head.appendChild(v),p)return new Promise((R,E)=>{v.addEventListener("load",R),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${u}`)))})}))}return s.then(()=>e()).catch(o=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o})},pa=.45,ha={name:"UserAvatar",props:{user:Object,square:{type:Boolean,default:!1},size:{type:Number,default:48},hide_image:{type:Boolean,default:!1}},computed:{isAccountsPage(){var t;return!!((t=this.$route)!=null&&t.meta.coachOwnProfile)},userName(){var t;return this.isAccountsPage?this.user.full_name:(t=this.user)!=null&&t.title?this.user.title:this.user.full_name},circle(){return!this.square},isEmpty(){return this.hide_image?!0:!this.user.avatar_url},avatarStyle(){const t={width:this.size+"px",height:this.size+"px"};return this.isEmpty&&this.userName&&(t.fontSize=this.size*pa+"px"),t},defaultAvatar(){var t;if(this.userName)if((t=window==null?void 0:window.Intl)!=null&&t.Segmenter){const a=new Intl.Segmenter("en",{granularity:"grapheme"}).segment(this.userName.trim());return Array.from(a,s=>s.segment)[0]}else return this.userName.trim().charAt(0);return null}}};function l(t,e,a,i,s,o,c,u){var p=typeof t=="function"?t.options:t;return e&&(p.render=e,p.staticRenderFns=a,p._compiled=!0),o&&(p._scopeId="data-v-"+o),{exports:t,options:p}}var _a=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"avatar",class:[{circle:e.circle},{"avatar-empty":e.isEmpty}],style:e.avatarStyle},[e.isEmpty?[e._v(e._s(e.defaultAvatar))]:[a("img",{attrs:{src:e.user.avatar_url,alt:e.user.full_name,loading:"lazy"}})]],2)},ma=[],fa=l(ha,_a,ma,!1,null,"392350b2");const $=fa.exports,k={financial:"financial",content_warnings:"content_warnings",client_activity:"client_activity",invite:"invite",coach_membership:"coach_membership",chat_mention:"chat_mention"},r={coach_new_free_one_many_client:"coach_new_free_one_many_client",coach_new_free_bespoke_client:"coach_new_free_bespoke_client",coach_new_free_automated_client:"coach_new_free_automated_client",coach_new_free_fixed_client:"coach_new_free_fixed_client",coach_new_one_many_client:"coach_new_one_many_client",coach_new_bespoke_client:"coach_new_bespoke_client",coach_new_automated_client:"coach_new_automated_client",coach_new_fixed_client:"coach_new_fixed_client",coach_new_one_many_client_with_coupon:"coach_new_one_many_client_with_coupon",coach_new_bespoke_client_with_coupon:"coach_new_bespoke_client_with_coupon",coach_new_automated_client_with_coupon:"coach_new_automated_client_with_coupon",coach_downloaded_fixed_with_coupon:"coach_downloaded_fixed_with_coupon",coach_client_start_trialing:"coach_client_start_trialing",coach_client_new_subscribe_end_of_trial_wo_coupon:"coach_client_new_subscribe_end_of_trial_wo_coupon",coach_client_new_subscribe_end_of_trial_with_coupon:"coach_client_new_subscribe_end_of_trial_with_coupon",coach_client_canceled_subscription_per_trial:"coach_client_canceled_subscription_per_trial",coach_client_unsubscribed:"coach_client_unsubscribed",coach_client_not_pay:"coach_client_not_pay",coach_blocked_client:"coach_blocked_client",coach_fitr_charge:"coach_fitr_charge",coach_bank_payout:"coach_bank_payout",coach_new_automated_payment:"coach_new_automated_payment",coach_new_bespoke_payment:"coach_new_bespoke_payment",coach_new_one_many_payment:"coach_new_one_many_payment",coach_payment_method_declined:"coach_payment_method_declined",coach_warning_stripe_account:"coach_warning_stripe_account",coach_payment_refunded:"coach_payment_refunded",coach_restored_subscription_notice:"coach_restored_subscription_notice",coach_subscribe_wl:"coach_subscribe_wl",coach_unsubscribe_wl:"coach_unsubscribe_wl",coach_new_scheduled_grc:"coach_new_scheduled_grc",coach_new_scheduled_s1d1:"coach_new_scheduled_s1d1",coach_client_ending_fixed_plan:"coach_client_ending_fixed_plan",coach_client_ended_fixed_plan:"coach_client_ended_fixed_plan",coach_danger_automated_plan:"coach_danger_automated_plan",coach_danger_bespoke_plan:"coach_danger_bespoke_plan",coach_danger_one_many_plan:"coach_danger_one_many_plan",coach_deleted_program_price_on_stripe:"coach_deleted_program_price_on_stripe",coach_new_performance:"coach_new_performance",coach_new_performance_no_title:"coach_new_performance_no_title",coach_new_comment:"coach_new_comment",coach_new_benchmark_comment:"coach_new_benchmark_comment",coach_new_body_metric_comment:"coach_new_body_metric_comment",coach_new_challenge_comment:"coach_new_challenge_comment",coach_subscribe_canceled:"coach_subscribe_canceled",coach_subscribe_payment_fail:"coach_subscribe_payment_fail",coach_end_trial_period:"coach_end_trial_period",coach_leaderboard_chat_mention:"coach_leaderboard_chat_mention",coach_community_chat_mention:"coach_community_chat_mention",client_new_free_one_many:"client_new_free_one_many",client_new_free_bespoke:"client_new_free_bespoke",client_new_free_automated:"client_new_free_automated",client_new_free_fixed:"client_new_free_fixed",client_new_one_many_payment:"client_new_one_many_payment",client_new_bespoke_payment:"client_new_bespoke_payment",client_new_automated_payment:"client_new_automated_payment",client_new_subscription_payment:"client_new_subscription_payment",client_new_fixed_plan_payment:"client_new_fixed_plan_payment",client_new_subscribe_wo_coupon_and_trial:"client_new_subscribe_wo_coupon_and_trial",client_coach_start_trialing:"client_coach_start_trialing",client_new_subscribe_end_of_trial_wo_coupon:"client_new_subscribe_end_of_trial_wo_coupon",client_new_subscribe_with_coupon:"client_new_subscribe_with_coupon",client_new_subscribe_with_coupon_and_trial:"client_new_subscribe_with_coupon_and_trial",client_new_subscribe_end_of_trial_with_coupon:"client_new_subscribe_end_of_trial_with_coupon",client_canceled_subscription_per_trial:"client_canceled_subscription_per_trial",client_canceled_paid_subscription:"client_canceled_paid_subscription",client_canceled_free_subscription:"client_canceled_free_subscription",client_downloaded_fixed_with_coupon:"client_downloaded_fixed_with_coupon",athlete_changed_plan_price:"athlete_changed_plan_price",client_coach_scheduled_subscription:"client_coach_scheduled_subscription",client_missed_payment:"client_missed_payment",client_payment_refunded:"client_payment_refunded",client_new_comment:"client_new_comment",client_new_benchmark_comment:"client_new_benchmark_comment",client_new_body_metric_comment:"client_new_body_metric_comment",client_new_challenge_comment:"client_new_challenge_comment",invite_brand_and_gym:"invite_brand_and_gym",brand_and_gym_coach_declined_invite:"brand_and_gym_coach_declined_invite",brand_and_gym_coach_accepted_invite:"brand_and_gym_coach_accepted_invite",client_subscribe_set_past_due:"client_subscribe_set_past_due",coach_have_past_due_client:"coach_have_past_due_client",client_auto_cancel_subscribe:"client_auto_cancel_subscribe",coach_have_auto_cancel_client:"coach_have_auto_cancel_client",client_leaderboard_chat_mention:"client_leaderboard_chat_mention",client_leaderboard_new_comment:"client_leaderboard_new_comment",client_community_chat_mention:"client_community_chat_mention",attempt_to_buy_over_limit:"attempt_to_buy_over_limit",attempt_to_buy_over_limit_pro:"attempt_to_buy_over_limit_pro"},va={[r.coach_new_free_one_many_client]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_free_bespoke_client]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_free_automated_client]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_free_fixed_client]:{main:"subscriber_list",sub:["client_profile","message_to_client","plan_downloads"]},[r.coach_new_one_many_client]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_bespoke_client]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_automated_client]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_fixed_client]:{main:"subscriber_list",sub:["client_profile","message_to_client","plan_downloads"]},[r.coach_downloaded_fixed_with_coupon]:{main:"subscriber_list",sub:["client_profile","message_to_client","plan_downloads"]},[r.coach_new_one_many_client_with_coupon]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_bespoke_client_with_coupon]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_automated_client_with_coupon]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_client_start_trialing]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_client_new_subscribe_end_of_trial_wo_coupon]:{main:"subscriber_list",sub:["subscriber_list"]},[r.coach_client_new_subscribe_end_of_trial_with_coupon]:{main:"subscriber_list",sub:["subscriber_list"]},[r.coach_client_canceled_subscription_per_trial]:{main:"subscriber_list",sub:["subscriber_list"]},[r.coach_client_unsubscribed]:{main:"client_activity",sub:["training_calendar","client_profile","message_to_client","subscriber_list"]},[r.coach_client_not_pay]:{main:"message_to_client",sub:["training_calendar","client_profile","subscriber_list"]},[r.coach_blocked_client]:{main:"message_to_client",sub:["training_calendar","client_profile","subscriber_list"]},[r.coach_fitr_charge]:{main:"dashboard",sub:[]},[r.coach_bank_payout]:{main:"dashboard",sub:[]},[r.coach_new_automated_payment]:{main:"plan_management",sub:["client_activity","training_calendar","message_to_client","subscriber_list"]},[r.coach_new_bespoke_payment]:{main:"plan_management",sub:["client_activity","training_calendar","message_to_client","subscriber_list"]},[r.coach_new_one_many_payment]:{main:"plan_management",sub:["client_activity","training_calendar","message_to_client","subscriber_list"]},[r.coach_payment_method_declined]:{main:"payment_settings",sub:[]},[r.coach_warning_stripe_account]:{main:"payment_settings",sub:[]},[r.coach_payment_refunded]:{main:"message_to_client",sub:[]},[r.coach_restored_subscription_notice]:{main:"subscriber_list",sub:["message_to_client","subscriber_list"]},[r.coach_subscribe_wl]:{main:"coach_subscribe_wl",sub:[]},[r.coach_unsubscribe_wl]:{main:"coach_unsubscribe_wl",sub:[]},[r.coach_new_scheduled_grc]:{main:"scheduled_subscribers_list",sub:["message_to_client","subscriber_list"]},[r.coach_new_scheduled_s1d1]:{main:"scheduled_subscribers_list",sub:["message_to_client","subscriber_list"]},[r.coach_client_ending_fixed_plan]:{main:"message_to_client",sub:["client_profile"]},[r.coach_client_ended_fixed_plan]:{main:"message_to_client",sub:["client_profile"]},[r.coach_danger_automated_plan]:{main:"plan_schedule",sub:["plan_overview"]},[r.coach_danger_bespoke_plan]:{main:"bespoke_schedule",sub:["training_calendar","client_profile","message_to_client","subscriber_list"]},[r.coach_danger_one_many_plan]:{main:"one_many_schedule",sub:["subscriber_list"]},[r.coach_deleted_program_price_on_stripe]:{main:"plan_overview",sub:[]},[r.coach_new_performance]:{main:"open_sidebar",sub:["client_profile","training_calendar","message_to_client"]},[r.coach_new_performance_no_title]:{main:"open_sidebar",sub:["client_profile","training_calendar","message_to_client"]},[r.coach_new_comment]:{main:"open_sidebar",sub:["client_profile","training_calendar","message_to_client"]},[r.coach_new_benchmark_comment]:{main:"coach_new_benchmark_comment",sub:[]},[r.coach_new_body_metric_comment]:{main:"coach_new_body_metric_comment",sub:[]},[r.coach_new_challenge_comment]:{main:"coach_new_challenge_comment",sub:[]},[r.coach_subscribe_canceled]:{main:"coach_billing_page",sub:[]},[r.coach_subscribe_payment_fail]:{main:"coach_billing_page",sub:[]},[r.coach_end_trial_period]:{main:"coach_billing_page",sub:[]},[r.attempt_to_buy_over_limit]:{main:"choose_your_plan",sub:[]},[r.attempt_to_buy_over_limit_pro]:{main:"choose_your_plan",sub:[]},[r.coach_leaderboard_chat_mention]:{main:"view_leaderbord",sub:[]},[r.coach_community_chat_mention]:{main:"view_community",sub:[]},[r.client_new_free_one_many]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_free_bespoke]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_free_automated]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_free_fixed]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_one_many_payment]:{main:"go_to_user_plans",sub:[]},[r.client_new_bespoke_payment]:{main:"go_to_user_plans",sub:[]},[r.client_new_automated_payment]:{main:"go_to_user_plans",sub:[]},[r.client_new_subscription_payment]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_fixed_plan_payment]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_subscribe_wo_coupon_and_trial]:{main:"client_billing_purchases",sub:[]},[r.client_coach_start_trialing]:{main:"client_own_calendar",sub:["client_own_plans","message_to_coach"]},[r.client_new_subscribe_end_of_trial_wo_coupon]:{main:"client_billing_purchases",sub:[]},[r.client_new_subscribe_end_of_trial_with_coupon]:{main:"go_to_purchases",sub:[]},[r.client_new_subscribe_with_coupon]:{main:"client_billing_purchases",sub:[]},[r.client_new_subscribe_with_coupon_and_trial]:{main:"client_billing_purchases",sub:[]},[r.client_coach_scheduled_subscription]:{main:"go_to_purchases",sub:[]},[r.client_canceled_subscription_per_trial]:{main:"client_billing_purchases",sub:[]},[r.client_canceled_paid_subscription]:{main:"client_billing_purchases",sub:[]},[r.client_canceled_free_subscription]:{main:"client_billing_purchases",sub:[]},[r.client_downloaded_fixed_with_coupon]:{main:"client_billing_purchases",sub:[]},[r.client_missed_payment]:{main:"payment_settings",sub:["message_to_coach"]},[r.client_payment_refunded]:{main:"client_billing_purchases",sub:[]},[r.athlete_changed_plan_price]:{main:"view_public_plan",sub:[]},[r.client_new_comment]:{main:"open_sidebar",sub:["coach_profile","coach_plans","message_to_coach"]},[r.client_new_benchmark_comment]:{main:"client_new_benchmark_comment",sub:[]},[r.client_new_body_metric_comment]:{main:"client_new_body_metric_comment",sub:[]},[r.client_new_challenge_comment]:{main:"client_new_challenge_comment",sub:[]},[r.client_community_chat_mention]:{main:"view_community",sub:[]},[r.client_leaderboard_chat_mention]:{main:"view_leaderbord",sub:[]},[r.client_leaderboard_new_comment]:{main:"view_leaderbord",sub:[]},[r.invite_brand_and_gym]:{main:"coach_profile",sub:[]},[r.brand_and_gym_coach_declined_invite]:{main:"brand_invites",sub:[]},[r.brand_and_gym_coach_accepted_invite]:{main:"brand_invites",sub:[]},[r.client_subscribe_set_past_due]:{main:"client_billing_purchases",sub:[]},[r.coach_have_past_due_client]:{main:"message_to_client",sub:["training_calendar","client_profile","subscriber_list"]},[r.client_auto_cancel_subscribe]:{main:"payment_settings",sub:["message_to_coach"]},[r.coach_have_auto_cancel_client]:{main:"message_to_client",sub:["training_calendar","client_profile","subscriber_list"]}},ya={financial:"unread_financial",content_warnings:"unread_warning",client_activity:"unread_activity",invite:"unread_invites",chat_mention:"unread_leaderboards"};function _t(t){return ya[t]}const ba={props:{boundary:{type:String,default:"window"},right:{type:Boolean,default:!0},preventOverflow:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},variant:{type:String,default:"icon",validator:t=>["icon","button"].includes(t)},size:{type:String,default:"lg"}},computed:{popperOpts(){return{modifiers:{flip:{boundariesElement:"window"},preventOverflow:{enabled:this.preventOverflow}},escapeWithReference:!1,positionFixed:!0}},dropdownVariant(){switch(this.variant){case"button":return"outline-dark btn-sm";default:return this.variant}}}};var ga=function(){var e=this,a=e._self._c;return e.$slots.default?a("b-dropdown",{class:`dropdown-${e.variant}`,attrs:{variant:e.dropdownVariant,"no-caret":"",lazy:"",right:e.right,boundary:e.boundary,"popper-opts":e.popperOpts,disabled:e.disabled,size:e.size},on:{show:function(i){return e.$emit("show",i)},shown:function(i){return e.$emit("shown",i)},hide:function(i){return e.$emit("hide",i)},hidden:function(i){return e.$emit("hidden",i)}}},[a("template",{slot:"button-content"},[e.variant==="icon"?[a("SvgIcon",{attrs:{name:"moreIcon"}})]:e.variant==="button"?[e._v(" "+e._s(e.$t("en.tables.common.more"))+" ")]:e._e()],2),e._t("default")],2):e._e()},wa=[],Ca=l(ba,ga,wa,!1,null,"b5724ca0");const ka=Ca.exports,Sa="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.62262%2024.1115V27.117H10.8678V29.2285H5.62262V33.3703H3.98872C3.44267%2033.3703%203%2032.9276%203%2032.3816V22H10.5769C11.123%2022%2011.5657%2022.4427%2011.5657%2022.9887V24.1115H5.62262Z'%20fill='%2322242F'/%3e%3cpath%20d='M17.8632%2022H19.4974C20.0435%2022%2020.4861%2022.4427%2020.4861%2022.9887V33.3703H18.8519C18.3058%2033.3703%2017.8632%2032.9276%2017.8632%2032.3816V22Z'%20fill='%2322242F'/%3e%3cpath%20d='M27.7723%2024.1433C27.2263%2024.1433%2026.7836%2023.7007%2026.7836%2023.1546V22H35.6733C36.2194%2022%2036.662%2022.4427%2036.662%2022.9887V24.1433H33.0352V33.3703H31.4009C30.8548%2033.3703%2030.4122%2032.9276%2030.4122%2032.3816V24.1433H27.7723Z'%20fill='%2322242F'/%3e%3cpath%20d='M50.1818%2033.3703L47.9955%2030.2034H45.5825V33.3703H43.9482C43.4022%2033.3703%2042.9595%2032.9276%2042.9595%2032.3816V22H47.8665C50.8947%2022%2052.79%2023.576%2052.79%2026.1257C52.79%2027.8311%2051.9316%2029.082%2050.458%2029.7157L53%2033.3703H50.1818ZM47.7209%2024.1433H45.5842V28.1065H47.7209C49.3235%2028.1065%2050.1339%2027.36%2050.1339%2026.1241C50.1339%2024.8882%2049.3235%2024.1417%2047.7209%2024.1417V24.1433Z'%20fill='%2322242F'/%3e%3c/svg%3e",H={one_many_schedule:{title:"Program schedule",action:"goToOneManySchedule"},bespoke_schedule:{title:"Program schedule",action:"goToBespokeSchedule"},schedule_depend_on_type:{title:"Program schedule",action:"goToProgramSchedule"},message_to_client:{title:"Direct message client",action:"directMessage"},subscriber_list:{title:"View full subscriber list",action:"goToPlanAthletes"},scheduled_subscribers_list:{title:"Go to Scheduled clients",action:"goToPlanScheduledAthletes"},plan_management:{title:"Go to Programming",action:"goToPlanManagement"},client_activity:{title:"Client Activity",action:"goToClientActivity"},client_profile:{title:"View client profile",action:"goToClientProfile"},plan_downloads:{title:"View all program downloads",action:"goToPlanAthletes"},training_calendar:{title:"View training calendar",action:"goToAthleteCalendar"},payment_settings:{title:"Payment Settings",action:"goToPaymentSettings"},dashboard:{title:"Dashboard",action:"goToDashboard"},plan_schedule:{title:"Program schedule",action:"goToPlanSchedule"},plan_overview:{title:"Program overview",action:"goToPlanOverview"},open_sidebar:{title:"Opens up the sidebar",action:"openSidebar"},coach_billing_page:{title:"Plan & Billing",action:"goToBillingPage"},choose_your_plan:{title:"Choose your plan",action:"goToPlansPage"},coach_new_benchmark_comment:{title:"Client has added a new comment",action:"goToBenchmark"},coach_new_body_metric_comment:{title:"Client has added a new comment",action:"goToBodyMetric"},coach_new_challenge_comment:{title:"Client has added a new comment",action:"goToChallenge"},coach_subscribe_wl:{title:"Subscribed white label",action:"goToWhiteLabelCustome"},client_own_calendar:{title:"Open Calendar",action:"goToClientOwnCalendar"},message_to_coach:{title:"Direct message your coach",action:"directMessage"},client_billing_purchases:{title:"Open My Purchases",action:"goToClientPurchases"},coach_profile:{title:"View coach profile",action:"goToCoachProfile"},coach_plans:{title:"View coach program library",action:"goToCoachPlans"},view_public_plan:{title:"View Program",action:"goToPublicPlan"},go_to_purchases:{title:"View my Purchases",action:"goToPurchases"},go_to_user_plans:{title:"View my Programs",action:"goToClientOwnPlans"},brand_invites:{title:"View all invites",action:"goToBrandInvites"},view_leaderbord:{title:"Open Leaderbord",action:"goToLeaderbord"},view_community:{title:"Open Community",action:"goToCommunity"},client_new_benchmark_comment:{title:"Coach has added a new comment",action:""},client_new_body_metric_comment:{title:"Coach has added a new comment",action:""},client_new_challenge_comment:{title:"Coach has added a new comment",action:""}},Aa={name:"NotificationView",components:{UserAvatar:$,SubActionsDropdown:ka},props:{notification:{type:Object,default:null},mode:{type:String,default:"full"}},data(){return{calendarOptions:{sameDay:"LT",lastDay:"[Yesterday], h:mm a",sameElse:"D MMMM, YYYY [at] h:mm a"},avatarTheme:{circle:!0,fit:"cover"}}},computed:{isFullMode(){return this.mode=="full"},isFinancial(){return this.notification.activity_type==k.financial},isWarning(){return this.notification.activity_type==k.content_warnings},isActivity(){return this.notification.activity_type==k.client_activity},isInvite(){return this.notification.activity_type==k.invite},isInviteFromBrand(){return this.isInvite&&this.notification.notification_type==r.invite_brand_and_gym},isCoachMembership(){return this.notification.activity_type==k.coach_membership},isWarningStatus(){return this.isWarning&&[r.coach_client_ending_fixed_plan,r.coach_client_ended_fixed_plan].includes(this.notification.notification_type)},isDangerStatus(){return this.isWarning&&[r.coach_danger_automated_plan,r.coach_danger_bespoke_plan,r.coach_danger_one_many_plan].includes(this.notification.notification_type)},thumbData(){var t;if(this.isUserCoach&&this.isWarning||!this.isUserCoach&&this.isFinancial&&this.notification.notification_type!=r.client_payment_refunded){let e=this.notification.plan.covers.find(a=>a.cover_type=="table_view");return{full_name:this.notification.plan.title,avatar_url:e?e.normal:null}}else if(this.isUserCoach&&this.isFinancial&&[r.coach_fitr_charge,r.coach_bank_payout,r.coach_payment_method_declined,r.coach_warning_stripe_account,r.coach_payment_refunded,r.coach_bank_payout_fail,r.coach_subscribe_wl,r.coach_unsubscribe_wl].includes(this.notification.notification_type)||!this.isUserCoach&&this.notification.notification_type==r.client_payment_refunded||this.isUserCoach&&this.isCoachMembership){this.avatarTheme={circle:!1,fit:"contain"};let e=Sa;return(t=this.siteLogo)!=null&&t.logo&&(e=this.siteLogo.logo),{full_name:"FITR",avatar_url:e}}else return this.notification.user},notificationActions(){return va[r[this.notification.notification_type]]},notyMainAction(){let t="";if(this.notificationActions!=null){let e=H[this.notificationActions.main];e!=null&&(t=e)}return t},notySubActions(){let t=[];return this.notificationActions!=null&&this.notificationActions.sub.map(e=>{H[e]!=null&&t.push(H[e])}),t},...C(["currentUser"]),...h(["isUserCoach","isBusinessOwner","isFinancialAviable"]),...h("subscription",["isAccountActive","hasSubscription"]),...h("color_scheme",["siteLogo"])},methods:{mainAction(){this.notification.read||this.toggleReadState(this.notification.id),this[this.notyMainAction.action]!=null&&this[this.notyMainAction.action]()},subAction(t){this[t]!=null&&this[t]()},goToOneManySchedule(){this.$router.push({name:"coach_calendar",params:{plan_id:this.notification.plan.id.toString(),user_id:this.currentUser.id.toString()}})},goToBespokeSchedule(){this.$router.push({name:"coach_calendar",params:{plan_id:this.notification.plan.id.toString(),user_id:this.notification.user.id.toString()}})},goToProgramSchedule(){var t,e;((t=this.notification.plan)==null?void 0:t.plan_type)=="individual"?this.goToBespokeSchedule():((e=this.notification.plan)==null?void 0:e.plan_type)=="one_many"?this.goToOneManySchedule():this.goToPlanManagement()},directMessage(){this.notification.chat_room_id!=null&&(this.isFullMode?this.$emit("openSendMessageModal",{id:this.notification.user.id,user_name:this.notification.user.full_name,chat_room_id:this.notification.chat_room_id}):this.$router.push({name:"conversation",params:{conversation_id:this.notification.chat_room_id.toString()}}))},goToPlanAthletes(){this.$router.push({name:"coach_program_view_clients",params:{plan_id:this.notification.plan.id.toString()}})},goToPlanScheduledAthletes(){this.$router.push({name:"coach_program_view_scheduled",params:{plan_id:this.notification.plan.id.toString()}})},goToPlanManagement(){this.$router.push({name:"my_plans"})},goToClientActivity(){this.$router.push({name:"clients_with_programs"})},goToClientProfile(){this.$router.push({name:"show_client_programs",params:{athlete_id:this.notification.user.id.toString()}})},goToAthleteCalendar(){this.$router.push({name:"athlete_calendar",params:{user_id:this.notification.user.id.toString()}})},goToPaymentSettings(){this.isUserCoach?this.$router.push({name:"coach_profile_payment"}):this.$router.push({name:"billing_payment"})},goToDashboard(){this.$router.push({name:"coach_dashboard"})},goToPlanSchedule(){this.$router.push({name:"coach_program_schedule",params:{plan_id:this.notification.plan.id.toString()}})},goToPlanOverview(){const t=this.$route,e={name:"coach_program_view_details",params:{plan_id:this.notification.plan.id.toString()}};t.name!==e.name&&t.params.plan_id!==e.params.plan_id&&this.$router.push(e)},openSidebar(){if((this.notification.notification_type=="coach_new_performance"&&this.notification.is_default_track==null||!(this.notification.notification_type=="coach_new_performance"&&!this.notification.is_default_track))&&this.notification.schedule_id!=null)if(this.isFullMode)this.$emit("openScheduleModal",{plan:this.notification.plan,user_id:this.notification.user.id,schedule_id:this.notification.schedule_id,section_id:this.notification.section_id});else{let t=this.$moment(this.notification.schedule_date,"DD/MM/YYYY"),e={name:this.isUserCoach?"athlete_calendar":"calendar",params:{user_id:this.notification.user.id},query:{year:t.year(),month:t.month()+1,day:t.date(),schedule_id:this.notification.schedule_id,section_id:this.notification.section_id}};this.$router.push(e)}},goToClientOwnCalendar(){this.$router.push({name:"calendar"})},goToCoachProfile(){var t,e;if((t=this.notification.user)!=null&&t.custom_url&&((e=this.notification.user)!=null&&e.type_account)){let a=this.notification.user.type_account.charAt(0).toLowerCase();this.$router.push({name:"public-page-short-link",params:{user_id:this.notification.user.custom_url,user_type:a}})}else this.$router.push({name:"public-page-view",params:{user_id:this.notification.user.id.toString()}})},goToCoachPlans(){var t,e;if((t=this.notification.user)!=null&&t.custom_url&&((e=this.notification.user)!=null&&e.type_account)){let a=this.notification.user.type_account.charAt(0).toLowerCase();this.$router.push({name:"public-page-short-link-plans",params:{user_id:this.notification.user.custom_url,user_type:a}})}else this.$router.push({name:"public-page-plans",params:{user_id:this.notification.user.id.toString()}})},goToPublicPlan(){let t=this.notification.plan.custom_url||this.notification.plan.id.toString();this.$router.push({name:"public_plan",params:{plan_id:t}})},goToPurchases(){this.$router.push({name:"billing_purchases"})},goToClientOwnPlans(){this.$router.push({name:"user_my_plans"})},goToClientPurchases(){this.$router.push({name:"billing_purchases"})},goToBillingPage(){this.isFinancialAviable&&(this.hasSubscription?this.$router.push({name:"coach_profile_billing"}):this.$router.push({name:"coach_profile_subscription"}))},goToPlansPage(){this.$router.push({name:"choose_your_plan"})},changeReadState(t,e){e.target.blur(),this.toggleReadState(t)},goToBrandInvites(){this.isBusinessOwner&&this.$router.push({name:"coach_profile_coaches"})},acceptInvite(){this.notification.invite.status="accepted",d.put(`invites/${this.notification.user.id}/accept`).then(()=>{this.notification.read||this.toggleReadState(this.notification.id),this.getCoachAccounts()}).catch(t=>{m(t),this.notification.invite.status="pending"})},declineInvite(){this.notification.invite.status="rejected",d.put(`invites/${this.notification.user.id}/reject`).then(()=>{this.notification.read||this.toggleReadState(this.notification.id)}).catch(t=>{m(t),this.notification.invite.status="pending"})},goToLeaderbord(){let t="challenges-leaderboard-comments";this.notification.score_comment.info.kind=="leaderboard"&&(t="daily-leaderboard-comments"),this.notification.score_comment&&this.$router.push({name:t,params:{id:this.notification.score_comment.info.score_score_id,result_id:this.notification.score_comment.info.score_value_id,comment_id:this.notification.score_comment.id}})},goToCommunity(){var t;(t=this.notification.chat_message)!=null&&t.chat_room_id&&this.$router.push({name:"conversation",params:{conversation_id:this.notification.chat_message.chat_room_id.toString()}})},goToBenchmark(){this.$router.history.current.name!=="client-profile-benchmark"&&this.notification.benchmark.id&&this.notification.user.id&&this.$router.push({name:"client-profile-benchmark",params:{athlete_id:this.notification.user.id,metric_id:this.notification.benchmark.id}})},goToBodyMetric(){this.$router.history.current.name!=="client-profile-body-metric"&&this.notification.body_metric.id&&this.notification.user.id&&this.$router.push({name:"client-profile-body-metric",params:{athlete_id:this.notification.user.id,metric_id:this.notification.body_metric.id}})},goToChallenge(){this.$router.history.current.name!=="client-profile-challenge"&&this.notification.body_metric.id&&this.notification.user.id&&this.$router.push({name:"client-profile-challenge",params:{athlete_id:this.notification.user.id,metric_id:this.notification.challenge.id}})},goToWhiteLabelCustome(){this.$router.history.current.name!=="customisation"&&this.$router.push({name:"customisation"})},...b(["getCoachAccounts"]),...b("feed",["toggleReadState"])}};var Pa=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"notification",class:[{notification_unread:!e.notification.read},"notification_"+e.mode,"notification-activity-type_"+e.notification.activity_type,"notification-type_"+e.notification.notification_type],on:{click:e.mainAction}},[a("div",{staticClass:"notification__pic"},[a("user-avatar",{attrs:{user:e.thumbData,size:40}}),e.isWarning?a("div",{staticClass:"notification__status",class:[{warning:e.isWarningStatus,danger:e.isDangerStatus}]},[e.isDangerStatus?a("div",{staticClass:"icon icon_attention"}):a("div",{staticClass:"icon icon_attention_yellow"})]):e._e()],1),a("div",{staticClass:"notification__body"},[a("div",{staticClass:"notification__text",domProps:{innerHTML:e._s(e.notification.text)}}),a("div",{staticClass:"notification__date"},[e._v(" "+e._s(e._f("moment")(e.notification.created_at,"calendar",null,e.calendarOptions))+" ")]),e.isFullMode?e._e():[e.isInviteFromBrand?[e.notification.invite.status=="init"||e.notification.invite.status=="pending"?a("div",{staticClass:"notification__buttons"},[a("button",{staticClass:"btn btn-outline-dark btn-sm",attrs:{type:"button"},on:{click:function(i){return i.stopPropagation(),e.declineInvite.apply(null,arguments)}}},[e._v(" Decline ")]),a("button",{staticClass:"btn btn-primary btn-sm",attrs:{type:"button"},on:{click:function(i){return i.stopPropagation(),e.acceptInvite.apply(null,arguments)}}},[e._v(" Accept Invite ")])]):e.notification.invite.status=="accepted"?a("div",{staticClass:"notification__invite text-primary"},[e._v(" Successfully joined ")]):e.notification.invite.status=="rejected"?a("div",{staticClass:"notification__invite text-danger"},[e._v(" Declined ")]):e._e()]:e.isCoachMembership&&!e.isAccountActive?a("div",{staticClass:"notification__buttons"},[a("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"button"}},[e.notification.notification_type=="coach_subscribe_payment_fail"?[e._v(" Plan & Billing ")]:[e._v(" Upgrade now ")]],2)]):e._e()]],2),e.isFullMode?[e.isInviteFromBrand?a("div",{staticClass:"notification__invitebuttons"},[e.notification.invite.status=="init"||e.notification.invite.status=="pending"?a("div",{staticClass:"notification__buttons"},[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(i){return i.stopPropagation(),e.declineInvite.apply(null,arguments)}}},[e._v(" Decline ")]),a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return i.stopPropagation(),e.acceptInvite.apply(null,arguments)}}},[e._v(" Accept Invite ")])]):e.notification.invite.status=="accepted"?a("div",{staticClass:"notification__invite text-primary"},[e._v(" Successfully joined ")]):e.notification.invite.status=="rejected"?a("div",{staticClass:"notification__invite text-danger"},[e._v(" Declined ")]):e._e()]):e.isCoachMembership?a("div",{staticClass:"notification__invitebuttons"},[e.isAccountActive?e._e():a("div",{staticClass:"notification__buttons"},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"}},[e.notification.notification_type=="coach_subscribe_payment_fail"?[e._v(" Plan & Billing ")]:[e._v(" Upgrade now ")]],2)])]):[e.isFullMode&&e.notySubActions.length>0?a("div",{staticClass:"notification__actions"},[a("sub-actions-dropdown",e._l(e.notySubActions,function(i){return a("b-dropdown-item-button",{key:i.action,on:{click:function(s){return s.stopPropagation(),e.subAction(i.action)}}},[e._v(" "+e._s(i.title)+" ")])}),1)],1):e._e()]]:e._e(),a("div",{staticClass:"notification__state"},[a("button",{staticClass:"state-button",attrs:{id:"btn-state"+e.notification.id,type:"button"},on:{click:function(i){return i.stopPropagation(),e.changeReadState(e.notification.id,i)}}}),a("b-tooltip",{attrs:{target:"btn-state"+e.notification.id,boundary:"viewport",title:"Tooltip content"}},[e.notification.read?[e._v(" Mark as unread ")]:[e._v(" Mark as read ")]],2)],1)],2)},Ta=[],$a=l(Aa,Pa,Ta,!1,null,"00252796");const xa=$a.exports,Ia={name:"NotificationsPopup",components:{NotificationView:xa},data(){return{isShown:!1,isLoading:!0}},computed:{...h("feed",["unreadNotifications"])},methods:{toggle(){this.isShown?this.hide():this.show()},show(){this.isShown||(this.isShown=!0,this.get())},hide(){this.isShown&&(this.isShown=!1)},get(){this.isLoading=!0,this.getUnread().then(()=>{this.isLoading=!1})},...b("feed",["getUnread"])}};var Ra=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"notifications-popup-holder"},[a("transition",{attrs:{name:"slide"}},[e.isShown?a("div",{staticClass:"notifications-popup"},[a("div",{staticClass:"notifications-popup__header"},[a("h3",[e._v("My Feed")]),a("router-link",{attrs:{to:{name:"feed_overview"}},nativeOn:{click:function(i){return e.hide.apply(null,arguments)}}},[e._v(" View Full Feed ")])],1),a("div",{staticClass:"notifications-popup__body"},[e.unreadNotifications.length>0?a("div",{staticClass:"notifications-popup__items"},e._l(e.unreadNotifications,function(i){return a("notification-view",{key:i.id,attrs:{mode:"preview",notification:i},nativeOn:{click:function(s){return e.hide.apply(null,arguments)}}})}),1):[e.isLoading?a("span",{staticClass:"loading"},[e._v("LOADING")]):a("div",{staticClass:"notifications-popup__placeholder"},[e._v(" No new notifications ")])]],2)]):e._e()])],1)},Ea=[],Da=l(Ia,Ra,Ea,!1,null,"46a42887");const Fa=Da.exports,Ma={name:"NotificationsIndicator",components:{NotificationsPopup:Fa},mixins:[te],computed:{hasNew:{get:function(){return this.$store.state.currentUser.has_new_notifications},set:function(t){this.$store.commit("changeHasNewNotifications",t)}},...h(["isUserCoach","isFinancialAviable"]),...h("subscription",["isAccountBlocked","isAccountActive"])},created:function(){this.channel=P("NotificationChannel",t=>{if(t.type=="new"){const e=["coach_membership","invite","financial"].includes(t.data.activity_type);if(e&&this.isFinancialAviable||!e){const a=["coach_membership","invite"].includes(t.data.activity_type);(this.isAccountBlocked&&a||this.isAccountActive||!this.isUserCoach)&&(this.receiveNotification(t.data),this.increaseUnreadCounter(t.data.id)),this.hasNew=!0}}else t.type=="destroy"&&(this.decreaseUnreadCounter(t.data.id),this.destroyNotification(t.data.id))}),this.$root.$on("profile-menu-showed",this.hideNew),this.$root.$on("bv::dropdown::show",this.hideNew)},beforeDestroy:function(){T(this.channel),this.$root.$off("profile-menu-showed",this.hideNew),this.$root.$off("bv::dropdown::show",this.hideNew)},methods:{clickaway(){this.$refs.feedPopup.hide()},showNew(t){var e;t.preventDefault(),this.$root.$emit("hide-user-menu"),(e=this.$refs.feedPopup)==null||e.toggle()},hideNew(){this.$refs.feedPopup.hide()},...X("feed",["receiveNotification","destroyNotification","increaseUnreadCounter","decreaseUnreadCounter"])}};var La=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.clickaway,expression:"clickaway"}],staticClass:"indicator-holder"},[a("router-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.noninteractive",modifiers:{hover:!0,noninteractive:!0}}],staticClass:"indicator-link btn btn-icon",class:{has_new:e.hasNew},attrs:{to:{path:"/feed"},title:"Feed"},nativeOn:{"!click":function(i){return e.showNew.apply(null,arguments)}}},[a("SvgIcon",{attrs:{name:"feedIcon",size:24}}),e.hasNew?a("span",{staticClass:"indicator"}):e._e()],1),a("notifications-popup",{ref:"feedPopup",staticClass:"popup"})],1)},Oa=[],Ua=l(Ma,La,Oa,!1,null,"a611b27d");const Ya=Ua.exports,Ba={name:"NotificationsIndicatorLink",computed:{hasNew:function(){return this.$store.state.currentUser.has_new_notifications}}};var Va=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("router-link",{attrs:{to:{name:"feed_overview"}}},[a("div",{staticClass:"indicator",class:{has_new:e.hasNew}},[a("SvgIcon",{attrs:{name:"feedIcon",size:24}})],1),a("span",[e._v("Feed")])])},Na=[],Wa=l(Ba,Va,Na,!1,null,"b066483a");const Ha=Wa.exports,qa={name:"ChatIndicator",computed:{hasNew:{get:function(){return this.$store.state.currentUser.has_unread_chat_messages},set:function(t){this.$store.commit("changeHasNnreadChatMessages",t)}},isDisabled(){return this.isUserCoach&&this.isAccountBlocked},...h(["isUserCoach"]),...h("subscription",["isAccountBlocked"])},created:function(){this.channel=P("ChatNotificationChannel",({data:t,type:e})=>{e=="message_created"||e=="chat_room_created"?(t.chat_room.last_message.author==null||t.chat_room.last_message.author.id!=this.$store.state.currentUser.id)&&!t.chat_room.mute&&(this.hasNew=!0):e=="no_unread_messages"?this.hasNew=!1:e=="has_unread_messages"&&(this.hasNew=!0)})},beforeDestroy:function(){T(this.channel)}};var za=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("router-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.noninteractive",modifiers:{hover:!0,noninteractive:!0}}],staticClass:"indicator-link btn btn-icon",class:{disabled:e.isDisabled,has_new:e.hasNew},attrs:{to:{name:"conversations"},"aria-disabled":e.isDisabled,tabindex:e.isDisabled?"-1":null,title:"Inbox"}},[a("SvgIcon",{attrs:{name:"inboxIcon",size:24}}),e.hasNew?a("span",{staticClass:"indicator"}):e._e()],1)},ja=[],Ga=l(qa,za,ja,!1,null,"425ac616");const Za=Ga.exports,Ka={name:"ChatIndicatorLink",computed:{hasNew:function(){return this.$store.state.currentUser.has_unread_chat_messages},isDisabled(){return this.isUserCoach&&this.isAccountBlocked},...h(["isUserCoach"]),...h("subscription",["isAccountBlocked"])}};var Qa=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("router-link",{class:{disabled:e.isDisabled},attrs:{to:{name:"conversations"},"aria-disabled":e.isDisabled,tabindex:e.isDisabled?"-1":null}},[a("div",{staticClass:"indicator",class:{has_new:e.hasNew}},[a("SvgIcon",{attrs:{name:"inboxIcon",size:24}})],1),a("span",[e._v("Inbox")])])},Ja=[],Xa=l(Ka,Qa,Ja,!1,null,"3ae5fee4");const ei=Xa.exports,ti={name:"VideoPlayer",props:{source:{type:String},thumb:{type:String},state:{type:String,default:"created"}},data(){return{player:null}},computed:{isPublished(){return this.state=="published"}},watch:{isPublished:function(t,e){t&&!e&&this.$nextTick(function(){this.initPlayer()})}},mounted(){this.isPublished&&this.$nextTick(()=>{this.initPlayer()})},beforeDestroy(){this.player&&this.player.dispose()},methods:{initPlayer(){this.player=lt(this.$el.querySelector("#videoPlayer"),{controlBar:{pictureInPictureToggle:!1,textTrackSettings:!1},html5:{vhs:{overrideNative:!0,bandwidth:1e7,enableLowInitialPlaylist:!1,limitRenditionByPlayerDimensions:!1,useDevicePixelRatio:!0},nativeTextTracks:!1}},function(){this.maxQualitySelector({defaultQuality:2,displayMode:1})}),this.thumb&&this.player.poster(this.thumb),this.player.src({type:"application/x-mpegURL",src:this.source})}}};var ai=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",[e.isPublished?a("video",{staticClass:"video-js vjs-custom-skin",attrs:{id:"videoPlayer",controls:"controls",width:"640px",height:"360px"}}):a("div",{staticClass:"not-ready"},[a("div",{staticClass:"not-ready__pic",style:[e.thumb?{backgroundImage:"url("+e.thumb+")"}:""]}),e._m(0)])])},ii=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"not-ready__text"},[e("div",{staticClass:"not-ready__icon"}),e("p",[t._v(" This video has recently been uploaded and is still processing. Depending on the size it can take several minutes to process. Please try again later. ")])])}],si=l(ti,ai,ii,!1,null,"4e416e43");const ni=si.exports,oi={name:"MyMediaModal",components:{VideoPlayer:ni},props:{increaseBackdropIndex:{type:Boolean,default:!1}},data(){return{modal:{},hasMyMedia:!1,loadingMyMedia:!0,player:null}},computed:{classList(){return"media-modal "+(this.increaseBackdropIndex?"increase-backdrop-z-index":"")},youtubeSrc(){return this.modal.type==="youtube"?`https://www.youtube.com/embed/${this.modal.video_id}?autoplay=1&controls=1`:null}},methods:{openLightbox(t){this.modal={id:t.id,src:t.src,stream_src:t.stream_src,state:t.state,thumb:t.thumb,alt:t.caption,type:t.type,video_id:t.video_id},this.$refs.mediaModal.show()},closeLightbox(){this.$refs.mediaModal.hide()},mediaModalClosed(){this.modal={},this.$emit("hidden")},mediaModalOpened(){this.modal.type=="video"&&this.modal.state!="published"&&d.get(`media/${this.modal.id}`).then(({data:t})=>{this.modal.state=t.state,this.modal.stream_src=t.stream_src}),this.$emit("shown")}}};var ri=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"mediaModal",attrs:{"modal-class":e.classList,"body-class":"p-0","hide-header":"hide-header","hide-footer":"hide-footer",size:"xl",centered:"centered"},on:{shown:e.mediaModalOpened,hidden:e.mediaModalClosed}},[a("div",{staticClass:"content"},[e.modal.type=="image"?[a("div",{staticClass:"image-wrap"},[a("button",{staticClass:"close media-modal-close",attrs:{type:"button"},on:{click:e.closeLightbox}}),a("img",{attrs:{src:e.modal.src}})])]:e.modal.type=="video"?[a("button",{staticClass:"close media-modal-close",attrs:{type:"button"},on:{click:e.closeLightbox}}),a("div",{staticClass:"embed-responsive embed-responsive-16by9"},[a("video-player",{staticClass:"embed-responsive-item",attrs:{source:e.modal.stream_src,thumb:e.modal.thumb,state:e.modal.state}})],1)]:e.modal.type=="youtube"?[a("button",{staticClass:"close media-modal-close",attrs:{type:"button"},on:{click:e.closeLightbox}}),a("div",{staticClass:"embed-responsive embed-responsive-16by9"},[a("iframe",{staticClass:"embed-responsive-item",attrs:{src:e.youtubeSrc,frameborder:"0",allowfullscreen:""}})])]:e._e()],2)])},li=[],ci=l(oi,ri,li,!1,null,"d1df51ec");const se=ci.exports,di={name:"ChecklistWrapper",props:{isMobile:{type:Boolean,default:!0},isShown:{type:Boolean,default:!1}},computed:{isShownContent:{get(){return this.isShown},set(t){this.$emit("changeShown",t)}}}};var ui=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",[e.isMobile?a("div",{staticClass:"modal-view"},[a("b-modal",{attrs:{id:"multiple-modal",title:"Onboarding",lazy:"","modal-class":"checklist-modal","hide-footer":""},model:{value:e.isShownContent,callback:function(i){e.isShownContent=i},expression:"isShownContent"}},[e._t("content")],2)],1):a("div",{staticClass:"checklist-popup-holder"},[a("transition",{attrs:{name:"slide"}},[e.isShownContent?a("div",{staticClass:"checklist-popup"},[e._t("content")],2):e._e()])],1)])},pi=[],hi=l(di,ui,pi,!1,null,"a126329e");const _i=hi.exports,mi=[{key:"sing_up",title:"Sign up",is_collapsible:!1},{key:"watched_video_tour",title:"Watch our overview video",is_collapsible:!0,is_trackable:!0,media:{video:"pfqJ-6sAVNY"},list:["We cover everything you need to know to get started on FITR."]},{key:"published_first_plan",title:"Build your first program",is_collapsible:!0,media:{video:"EuRS4N6wR4M"},list:["Programs are how you deliver content to your clients. Choose from the four types to suit your needs.",'<a href="/coach/profile/payouts" target="_self">Connect to Stripe</a> to sell your programs, earn money and automate your finances. Accept payments in over 135 currencies.',"Click <a href='/coach/programs/create/choose-plan-type' target='_self'>'Create new program'</a> and follow the step by step guide."]},{key:"sign_up_first_client",title:"Sign up your first client",is_collapsible:!0,media:{video:"-DcgAsky1lE"},list:["You'll be guided to sign up a client as you create a program.","Add people you know via name and email, or share sign up URL links to the masses.","Sign up clients later via the 'More' option next to the program name."]}],fi={name:"ChecklistPopup",components:{MediaModal:se,ChecklistWrapper:_i},props:{isAllStepsDone:{type:Boolean,default:!1},completed:{type:Array,default:function(){return[]}},isMobile:{type:Boolean,default:!1}},data(){return{steps:mi,isShown:!1,isHideBusy:!1,expanded:null}},methods:{toggle(){this.isShown?this.hide():this.show()},show(){if(!this.isShown){this.isShown=!0;const t=this.steps.find(e=>!this.completed.includes(e.key));t&&(this.expanded=t.key)}},hide(){this.isShown&&(this.isShown=!1)},showStepMedia(t){var a,i;const e=this.steps.find(s=>s.key==t);if((a=e==null?void 0:e.media)!=null&&a.video){const s={type:"youtube",video_id:e.media.video};(i=this.$refs.mediaModal)==null||i.openLightbox(s),e.is_trackable&&this.markStepAsCompleted(t)}},titleForStep(t){return t.title},toggleStep(t){this.expanded==t?this.expanded=null:this.expanded=t},isExpanded(t){return this.expanded==t},isCompleted(t){return this.completed?this.completed.includes(t):!1},markStepAsCompleted(t){this.isCompleted(t)||d.post("check_list",{check_list:{name:t}})},hideForever(){this.isHideBusy=!0,this.hideOnboardingChecklist().then(()=>{this.$notify({group:"alerts",type:"congrats",title:"Checklist was hidden."})}).catch(t=>{m(t),this.isHideBusy=!1})},switchShown(t){this.isShown=t},...b(["hideOnboardingChecklist"])}};var vi=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",[a("checklist-wrapper",{attrs:{"is-shown":e.isShown,"is-mobile":e.isMobile},on:{changeShown:e.switchShown}},[a("template",{slot:"content"},[a("div",{staticClass:"steps"},e._l(e.steps,function(i){return a("div",{key:i.key,staticClass:"step",class:{step_done:e.isCompleted(i.key),step_expanded:i.is_collapsible&&e.isExpanded(i.key)}},[a("div",{staticClass:"step-header",class:{"step-header_clickable":i.is_collapsible},on:{click:function(s){i.is_collapsible&&e.toggleStep(i.key)}}},[a("SvgIcon",{staticClass:"step-icon",attrs:{name:"doneIcon"}}),a("h6",{staticClass:"step-title"},[e._v(e._s(e.titleForStep(i)))]),i.is_collapsible?a("SvgIcon",{staticClass:"arrow-icon",attrs:{name:"chevronFillDownIcon"}}):e._e()],1),i.media||i.list||i.cta?a("div",{staticClass:"step-body"},[i.media?a("div",{staticClass:"step-media_preview",on:{click:function(s){return e.showStepMedia(i.key)}}},[a("img",{staticClass:"step-pic",attrs:{src:"https://img.youtube.com/vi/"+i.media.video+"/0.jpg",width:"480",height:"360"}}),a("div",{staticClass:"step-play"})]):e._e(),i.list?a("ul",{staticClass:"substeps"},e._l(i.list,function(s,o){return a("li",{key:o,staticClass:"substep"},[a("SvgIcon",{staticClass:"substep-icon",attrs:{name:"okIcon",size:20}}),a("span",{domProps:{innerHTML:e._s(s)}})],1)}),0):e._e(),i.cta?a("div",{staticClass:"step-cta"},[a("router-link",{attrs:{to:i.cta.to}},[e._v(e._s(i.cta.label))])],1):e._e()]):e._e()])}),0),a("div",{staticClass:"help"},[e._v(" Need more help? Click the "),a("SvgIcon",{attrs:{name:"questionIcon",size:16}}),e._v(" for FAQs, "),a("span",{staticClass:"text-nowrap"},[e._v("how-to")]),e._v(" guides and live chat. ")],1),e.isAllStepsDone?a("div",{staticClass:"hide"},[a("button",{staticClass:"btn btn-link btn-sm",class:{"btn-loading":e.isHideBusy},attrs:{type:"button",disabled:e.isHideBusy},on:{click:e.hideForever}},[e._v(" Hide this checklist forever ")])]):e._e()])],2),a("media-modal",{ref:"mediaModal",attrs:{"increase-backdrop-index":!0},on:{shown:function(i){return e.$emit("videoShown")},hidden:function(i){return e.$emit("videoHidden")}}})],1)},yi=[],bi=l(fi,vi,yi,!1,null,"2f79da98");const gi=bi.exports,wi={name:"OnboardingChecklist",components:{ChecklistPopup:gi},mixins:[te],data(){return{isMobileLayout:!1}},computed:{totalCount(){var t;return(t=this.onboardingChecklistData)==null?void 0:t.total_points},completed(){var t;return(t=this.onboardingChecklistData)==null?void 0:t.completed},completedCount(){var t;return(t=this.completed)==null?void 0:t.length},isAllStepsDone(){return this.completedCount>0&&this.totalCount==this.completedCount},...h(["onboardingChecklistData"])},created(){this.channel=P("NotificationChannel",t=>{t.type=="check_list"&&t.completed&&this.setOnboardingChecklistStepCompleted(t.completed)}),this.$root.$on("bv::dropdown::show",this.hidePopup),this.mq=window.matchMedia("(max-width: 797.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches)},beforeDestroy(){T(this.channel),this.$root.$off("bv::dropdown::show",this.hidePopup),this.mq&&this.mq.removeListener(this.updateMatches)},methods:{updateMatches(){this.isMobileLayout=this.mq.matches},clickaway(){!this.isHidePopupDisabled&&!this.isMobileLayout&&this.hidePopup()},showPopup(){var t;(t=this.$refs.checklistPopup)==null||t.toggle()},hidePopup(){var t;(t=this.$refs.checklistPopup)==null||t.hide()},mediaModalShown(){this.isHidePopupDisabled=!0},mediaModalHidden(){this.isHidePopupDisabled=!1},...X(["setOnboardingChecklistStepCompleted"])}};var Ci=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.clickaway,expression:"clickaway"}],staticClass:"checklist-holder"},[a("button",{staticClass:"btn checklist-button",attrs:{type:"button"},on:{click:e.showPopup}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"checklistIcon",size:24}})],1),e.completedCount>0?a("span",{staticClass:"has-icon__text"},[e._v(e._s(e.completedCount)+"/"+e._s(e.totalCount))]):a("span",{staticClass:"has-icon__text"},[e._v("Get Started")])])]),a("checklist-popup",{ref:"checklistPopup",staticClass:"popup",attrs:{completed:e.completed,"is-all-steps-done":e.isAllStepsDone,"is-mobile":e.isMobileLayout},on:{videoShown:e.mediaModalShown,videoHidden:e.mediaModalHidden}})],1)},ki=[],Si=l(wi,Ci,ki,!1,null,"6e29bd8f");const Ai=Si.exports,Pi={name:"TrialStatus",props:{subscription:Object},computed:{isSubsPastDue(){return this.subscription.active&&this.subscription.state=="past_due"},isSubsActive(){return this.subscription.active&&this.subscription.state||this.subscription.free_usage},isCancelAtPeriodEnd(){var t;return this.isSubsActive&&((t=this.subscription)==null?void 0:t.cancel_at_period_end)},isTrialActive(){return!this.subscription.free_usage&&this.subscription.trial&&!!this.subscription.trial_end_date},isTrialEnded(){return!this.subscription.active},trialCounter(){if(this.isTrialActive){let t=this.$moment(this.subscription.trial_end_date,"YYYY-MM-DD HH:mm:ss Z"),e=this.$moment(),a=t.diff(e),i=this.$moment.duration(a);return parseInt(i.asDays(),10)}return null}}};var Ti=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("span",{staticClass:"trial-status"},[e.isSubsPastDue?a("span",{staticClass:"subscription-active pastdue"},[e._v(" Past due ")]):e.isSubsActive?[e.isCancelAtPeriodEnd?a("span",{staticClass:"subscription-active"},[e._v(" Active until "+e._s(e._f("moment")([e.subscription.next_payment_date,"YYYY-MM-DD HH:mm:ss Z"],"DD MMM, YYYY"))+" ")]):a("span",{staticClass:"subscription-active"},[e._v(" Active ")])]:e.isTrialActive&&e.trialCounter>0?a("span",{staticClass:"trial-active"},[e._v(" Trial ("+e._s(e.trialCounter)+" "+e._s(e._f("pluralize")(e.trialCounter,"day"))+" left) ")]):e.isTrialEnded||e.trialCounter==0?a("span",{staticClass:"trial-ended",on:{click:function(i){return e.$emit("click",i)}}},[e._v(" Upgrade ")]):e._e()],2)},$i=[],xi=l(Pi,Ti,$i,!1,null,"67f02131");const mt=xi.exports,Ii={name:"AccountsList",components:{UserAvatar:$,TrialStatus:mt},computed:{...h(["filteredAccounts","hasCoachAnotherAccounts"])},methods:{accountTitle(t){return t.account_kind=="private"?t.full_name:t.title},accountSubTitle(t){return t.account_kind=="private"?"Coach":t.account_kind},show(){this.$refs.modal.show()},changeAccount(t,e="/"){d.put("accounts/switch",{id:t}).then(()=>{window.localStorage.removeItem("fitrProgramsFilters"),window.location.assign(e)}).catch(m)},goToBilling(t){var a,i;let e;(i=(a=t.subscriptions)==null?void 0:a.plan)!=null&&i.id?e=this.$router.resolve({name:"coach_profile_billing"}):e=this.$router.resolve({name:"coach_profile_subscription"}),this.changeAccount(t.id,e.href)}}};var Ri=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"modal",attrs:{title:"Switch account"}},[e.hasCoachAnotherAccounts?a("div",{staticClass:"list"},[a("div",{staticClass:"list-group"},e._l(e.filteredAccounts,function(i){return a("button",{key:i.id,staticClass:"list-group-item list-group-item-action",on:{click:function(s){return e.changeAccount(i.id)}}},[a("div",{staticClass:"account"},[a("div",{staticClass:"account__ava"},[a("user-avatar",{staticClass:"account__pic",attrs:{user:i}}),i.has_new_notifications||i.has_unread_chat_messages?a("div",{staticClass:"account__indicator"}):e._e()],1),a("div",{staticClass:"account__info"},[a("div",{staticClass:"account__head"},[a("div",{staticClass:"account__ttl"},[e._v(" "+e._s(e.accountTitle(i))+" ")]),i.subscriptions&&i.subscriptions.active_clients>0?a("div",{staticClass:"subscription-clients"},[e._v(" "+e._s(i.subscriptions.active_clients)+" "+e._s(e._f("pluralize")(i.subscriptions.active_clients,"client"))+" ")]):e._e()]),a("div",{staticClass:"account__subhead"},[a("div",{staticClass:"account__kind"},[e._v(" "+e._s(e.accountSubTitle(i))+" ")]),i.subscriptions?a("trial-status",{staticClass:"subscription-status",attrs:{subscription:i.subscriptions},on:{click:function(s){return s.stopPropagation(),e.goToBilling(i)}}}):e._e()],1)])])])}),0)]):e._e(),a("template",{slot:"modal-footer"},[a("router-link",{staticClass:"btn btn-success btn-block",attrs:{to:{name:"create-account"}}},[e._v(" "+e._s(e.$t("en.header.nav.create_brand"))+" ")]),a("button",{staticClass:"btn btn-link",attrs:{"data-color":"secondary"},on:{click:function(i){return e.$refs.modal.hide()}}},[e._v(" Cancel ")])],1)],2)},Ei=[],Di=l(Ii,Ri,Ei,!1,null,"73ca7d0b");const Fi=Di.exports,Mi={name:"SystemWarningItem",props:{warning:Object},data(){return{isBusy:!1,isShow:!0}},computed:{linkRoute(){return this.warning.type=="missed-payment"?this.warning.data&&this.warning.data.length==1?{name:"public_plan",params:{plan_id:this.warning.data[0].plan_id.toString()}}:{name:"billing_history"}:null},isWarningHidden(){if(this.$route.name=="conversation")return!0;if(this.warning.type=="missed-payment"){if(this.$route.name=="billing_history")return!0;if(this.warning.data)return this.$route.name=="public_plan"&&(this.warning.data.map(t=>t.plan_id.toString()).includes(this.$route.params.plan_id.toString())||this.warning.data.map(t=>t.custom_url).includes(this.$route.params.plan_id.toString()))}else{if(this.warning.type=="coach-app-icon-was-declined"&&this.$route.name=="customisation-app-icon")return!0;if(this.warning.type=="coach-configure-web-address"&&this.$route.name=="zapier-integration")return!0}return null},isWarningClosable(){return this.warning.type=="coach-configure-web-address"},...h(["stripeAccount","isFinancialAviable","isStandardStripeAccount","viewedPopups"])},created:function(){var t;this.isWarningClosable&&((t=this.viewedPopups)!=null&&t.includes(this.warning.type))&&(this.isShow=!1)},methods:{connect(){this.isBusy||(this.isBusy=!0,d.get("stripe/onboarding_url",{params:{source:"settings"}}).then(({data:t})=>{document.location.assign(t.url)}).catch(t=>{m(t),this.isBusy=!1}))},hideWarning(){this.isWarningClosable&&(this.isShow=!1,this.makePopupViewed({name:this.warning.type}))},...b(["makePopupViewed"])}};var Li=function(){var e=this,a=e._self._c;return e._self._setupProxy,!e.isWarningHidden&&e.isShow?a("div",{staticClass:"alert alert-sm alert-danger rounded-0 m-0 pl-0 pr-0",attrs:{role:"alert"}},[a("div",{staticClass:"container"},[a("div",{staticClass:"alert-body",class:{"justify-content-start":e.isWarningClosable}},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e.warning.type=="missed-payment"?[e._v(" You have missed a program payment - "),a("router-link",{staticClass:"alert-link",attrs:{to:e.linkRoute}},[e._v(" click here ")]),e._v(" to resolve. ")]:e.isFinancialAviable&&e.warning.type=="coach-stripe-verification-needed"?[e._v(" Your Stripe connection requires your attention. "),e.isStandardStripeAccount?a("a",{staticClass:"alert-link",class:{disabled:e.isBusy},attrs:{disabled:e.isBusy,href:"https://connect.stripe.com/"},on:{click:function(i){return i.preventDefault(),e.connect.apply(null,arguments)}}},[e._v("Please visit Stripe")]):a("router-link",{staticClass:"alert-link",attrs:{to:{name:"coach_profile_payment"}}},[e._v("Click here")]),e._v(". ")]:e.warning.type=="coach-configure-web-address"?[e._v(" Please "),a("router-link",{staticClass:"alert-link",attrs:{to:{name:"customisation-web-address"}}},[e._v("configure a custom web address")]),e._v(" so that when clients access their web account or program links via this address, the site will update to show your branding, logos and colours. ")]:e.warning.type=="coach-app-icon-was-declined"?[e._v(" The uploaded App icon cannot be added to the application because it doesn't comply with App Store Guidelines. "),a("router-link",{staticClass:"alert-link",attrs:{to:{name:"customisation-app-icon"}}},[e._v(" View details. ")])]:e._e()],2),e.isWarningClosable?a("div",{staticClass:"alert-body__close"},[a("button",{staticClass:"btn btn-icon",attrs:{type:"button","data-dismiss":"alert","aria-label":"Close"},on:{click:e.hideWarning}},[a("SvgIcon",{attrs:{name:"closeIcon"}})],1)]):e._e()])])]):e._e()},Oi=[],Ui=l(Mi,Li,Oi,!1,null,null);const Yi=Ui.exports,Bi={name:"SystemWarning",components:{WarningItem:Yi},data(){return{warnings:[]}},computed:{hasWarnings(){return this.warnings.lentgh>0},isShowConfigureAddressWarming(){return this.isSubscriptionUnlimited||this.isSubscriptionPro&&!this.isWLTrial||this.isAccountFree&&!this.isWLTrial},isHideWarning(){return["create_plan_main_info","create_plan_schedule","create_plan_review","coach_program_edit"].includes(this.$route.name)},...h(["isUserCoach","isFinancialAviable","stripeAccount"]),...h("subscription",["isWLActive","isSubscriptionUnlimited","isSubscriptionPro","isWLTrial","isAccountFree"]),...h("color_scheme",["siteSubdomainName","hasAnyValue"])},mounted(){d.get("users/warnings").then(({data:t})=>{this.warnings=this.warnings.concat(t)}),this.isUserCoach&&this.isFinancialAviable&&this.stripeAccount.account&&this.$watch(function(){return[this.stripeAccount.charges_enabled,this.stripeAccount.payouts_enabled].join()},function(){this.checkStripeVerificationNeeded()},{immediate:!0}),this.isUserCoach&&this.$watch(function(){return[this.isWLActive,this.hasAnyValue,this.siteSubdomainName,this.isShowConfigureAddressWarming].join()},function(){this.checkConfigureWebAddressNeeded()},{immediate:!0})},methods:{checkStripeVerificationNeeded(){if(this.isUserCoach&&this.isFinancialAviable){const t="coach-stripe-verification-needed",e=this.warnings.findIndex(a=>a.type==t);!this.stripeAccount.charges_enabled||this.stripeAccount.charges_enabled&&!this.stripeAccount.payouts_enabled?e==-1&&this.warnings.push({type:t}):e!=-1&&this.warnings.splice(e,1)}},checkConfigureWebAddressNeeded(){if(this.isUserCoach){const t="coach-configure-web-address",e=this.warnings.findIndex(a=>a.type==t);this.isWLActive&&this.hasAnyValue&&!this.siteSubdomainName&&this.isShowConfigureAddressWarming?e==-1&&this.warnings.push({type:t}):e!=-1&&this.warnings.splice(e,1)}}}};var Vi=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{directives:[{name:"show",rawName:"v-show",value:!e.isHideWarning,expression:"!isHideWarning"}],staticClass:"system-warning"},e._l(e.warnings,function(i){return a("warning-item",{key:i.type,attrs:{warning:i}})}),1)},Ni=[],Wi=l(Bi,Vi,Ni,!1,null,null);const Hi=Wi.exports,qi={name:"SubscriptionWarning",data(){return{coachSubscriptionTrialLeft:null,isHideFromLocalStorage:!1,isClossing:!1}},computed:{isSubscriptionInvalid(){var t;return this.isTrialExpired||this.isTrialActive||this.isCancelAtPeriodEnd||this.isCanceled&&!((t=this.subscriptionData)!=null&&t.trial)||this.isPurcahseFailed||this.isSwlPurcahseFailed||this.isSubscriptionStarter&&this.subscriptionData.active_sub_clients==5||this.isSubscriptionPro&&this.subscriptionData.active_sub_clients>=40},isAvailableForCoach(){return this.isFinancialAviable?!0:this.isAccountBlocked},coachSubscriptionWarningText(){if(this.isSubscriptionInvalid)if(this.isFinancialAviable){if(this.isCanceled)return this.$t("en.pricing.warnings.canceled");if(this.isCancelAtPeriodEnd){let t=this.$moment(this.subscriptionData.next_payment_date,"YYYY-MM-DD HH:mm:ss Z").format("DD MMM, YYYY");return this.subscriptionData.active_clients>0?this.$t("en.pricing.warnings.renew_with_clients",{date:t}):this.$t("en.pricing.warnings.renew_without_clients",{date:t})}else{if(this.isPurcahseFailed||this.isSwlPurcahseFailed)return this.$t("en.pricing.warnings.payment_failed");if(this.coachSubscriptionTrialLeft){let t=this.$options.filters.pluralize,e=parseInt(this.coachSubscriptionTrialLeft.asDays(),10);e<0&&(e=0);let a=`${e} ${t(e,"day")}`;if(e==0){let i=this.coachSubscriptionTrialLeft.hours();if(i>0)a=`${i} ${t(i,"hour")}`;else{let s=this.coachSubscriptionTrialLeft.minutes();if(s>0)a=`${s} ${t(s,"minute")}`;else{let o=this.coachSubscriptionTrialLeft.seconds();o>=0&&(a=`${o} ${t(o,"second")}`)}}}return this.subscriptionData.active_clients>0?this.$t("en.pricing.warnings.trial_with_clients",{left:a}):this.$t("en.pricing.warnings.trial_without_clients",{left:a})}else return this.isSubscriptionStarter&&this.subscriptionData.active_sub_clients==5||this.isSubscriptionPro&&this.subscriptionData.active_sub_clients>=50?this.$t("en.pricing.warnings.clients_limit"):this.isSubscriptionPro&&this.subscriptionData.active_sub_clients>=40&&this.subscriptionData.active_sub_clients<=49?this.$t("en.pricing.warnings.clients_before_limit"):this.$t("en.pricing.warnings.trial_has_expired")}}else return this.$t("en.pricing.warnings.for_invited",{name:this.currentUser.title});else return null},warningCssClass(){var t;if(this.isSubscriptionInvalid){let e={};return e["alert-lg"]=!0,this.isCanceled||this.isPurcahseFailed||this.isSwlPurcahseFailed?e["alert-danger"]=!0:this.isCancelAtPeriodEnd?this.subscriptionData.active_clients>0?e["alert-danger"]=!0:e["alert-green"]=!0:this.isTrialExpired||((t=this.coachSubscriptionTrialLeft)==null?void 0:t.asDays())<=7||this.isSubscriptionStarter&&this.subscriptionData.active_sub_clients==5||this.isSubscriptionPro&&this.subscriptionData.active_sub_clients>=40?e["alert-danger"]=!0:e["alert-green"]=!0,e}else return null},isWarningHidden(){return["coach_blocked","coach_purchase","create-account","onboarding-business-setup","coach_profile_billing","coach_profile_subscription","choose_your_plan"].includes(this.$route.name)},...C(["currentUser"]),...h(["isUserCoach","isFinancialAviable"]),...h("subscription",["subscriptionData","isAccountBlocked","isTrialActive","isTrialExpired","isCancelAtPeriodEnd","isPurcahseFailed","isSwlPurcahseFailed","isCanceled","isAccountEmpty","isSubscriptionStarter","isSubscriptionPro"])},mounted(){this.coachSubscriptionWarningText==this.$t("en.pricing.warnings.clients_before_limit")&&(this.isClossing=!0,localStorage.getItem("isSubscriptionWarningHide")&&(this.isHideFromLocalStorage=!0)),this.isTrialActive&&(this.setCoachSubscriptionTrialLeft(),document.addEventListener("visibilitychange",this.handleVisibility)),this.isAccountEmpty&&this.$watch("isTrialActive",function(){this.setCoachSubscriptionTrialLeft(),document.addEventListener("visibilitychange",this.handleVisibility)})},beforeDestroy(){this.requestAnimationId&&window.cancelAnimationFrame(this.requestAnimationId),this.timeoutId&&window.clearTimeout(this.timeoutId),window.removeEventListener("visibilitychange",this.handleVisibility)},methods:{closeWarning(){this.isHideFromLocalStorage=!0,localStorage.setItem("isSubscriptionWarningHide","true")},setCoachSubscriptionTrialLeft(){if(this.isTrialActive){let t=this.$moment(this.subscriptionData.trial_end_date,"YYYY-MM-DD HH:mm:ss Z"),e=this.$moment(),a=t.diff(e),i=this.$moment.duration(a);this.coachSubscriptionTrialLeft=i,i.asSeconds()<=0?d.get("subscribe").then(({data:s})=>{this.coachSubscriptionTrialLeft=null,this.$store.commit("setCurrentUserSubscription",s)}):i.asSeconds()<80?this.requestAnimationId=window.requestAnimationFrame(()=>{this.setCoachSubscriptionTrialLeft()}):i.asHours()<1?this.timeoutId=window.setTimeout(()=>{this.setCoachSubscriptionTrialLeft()},6e4):this.timeoutId=window.setTimeout(()=>{this.setCoachSubscriptionTrialLeft()},12e5)}else this.coachSubscriptionTrialLeft=null},handleVisibility(){document.visibilityState==="hidden"?(this.requestAnimationId&&window.cancelAnimationFrame(this.requestAnimationId),this.timeoutId&&window.clearTimeout(this.timeoutId)):document.visibilityState==="visible"&&this.setCoachSubscriptionTrialLeft()}}};var zi=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"subscription-warning"},[e.isSubscriptionInvalid&&e.isAvailableForCoach&&!e.isWarningHidden&&!e.isHideFromLocalStorage?a("div",{staticClass:"alert rounded-0 m-0",class:e.warningCssClass},[a("div",{staticClass:"alert-body alert-body_actionable"},[a("div",{staticClass:"alert-body__text"},[e._v(" "+e._s(e.coachSubscriptionWarningText)+" ")]),e.isFinancialAviable?a("div",{staticClass:"alert-body__action"},[e.isCanceled?a("router-link",{staticClass:"btn btn-sm btn-white alert-btn",attrs:{to:{name:"choose_your_plan"}}},[e._v(" Upgrade Now ")]):e.isCancelAtPeriodEnd?a("router-link",{staticClass:"btn btn-sm btn-white alert-btn",attrs:{to:{name:"coach_profile_subscription"}}},[e._v(" Renew now ")]):e.isPurcahseFailed||e.isSwlPurcahseFailed?a("router-link",{staticClass:"btn btn-sm btn-white alert-btn",attrs:{to:{name:"coach_profile_billing"}}},[e._v(" Check now ")]):a("router-link",{staticClass:"btn btn-sm btn-white alert-btn",attrs:{to:{name:"choose_your_plan"}}},[e._v(" Upgrade now ")])],1):e._e()]),e.isClossing?a("button",{staticClass:"btn btn-icon hide-btn",attrs:{type:"button","data-dismiss":"alert","aria-label":"Close"},on:{click:e.closeWarning}},[a("SvgIcon",{attrs:{name:"closeIcon",color:"white"}})],1):e._e()]):e._e()])},ji=[],Gi=l(qi,zi,ji,!1,null,"3313be9b");const Zi=Gi.exports,Ki={name:"ReleaseNotesCounter",data(){return{}},computed:{...h("release_notes",["notesCounter"])},created:function(){this.channel=P("SystemNotificationChannel",t=>{var e;(t.type=="has_unread_release_notes"||t.type=="new_release_note")&&(e=t.data)!=null&&e.count_unread_notes&&this.changeCounter(t.data.count_unread_notes)})},beforeDestroy:function(){T(this.channel)},methods:{...b("release_notes",["changeCounter"])}};var Qi=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"indicator-holder"},[e.notesCounter>0?a("span",{staticClass:"counter"},[e._v(" "+e._s(e.notesCounter)+" ")]):e._e()])},Ji=[],Xi=l(Ki,Qi,Ji,!1,null,"4d1eee25");const ft=Xi.exports,es={name:"HelpDropdown",components:{ReleaseNotesCounter:ft},props:{isEmptyHeader:{type:Boolean,default:!1}},computed:{isDisabledNotes(){return this.isAccountBlocked&&this.isUserCoach},...h("subscription",["isAccountBlocked"]),...h(["isUserCoach","isCoachOverallAccount"])},methods:{openLiveChat(){var t,e;(t=window.cookiehub)!=null&&t.hasConsented("preferences")?window.Intercom&&window.Intercom("show"):(e=window.cookiehub)!=null&&e.openSettings&&window.cookiehub.openSettings()}}};var ts=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"navbar-nav__help d-none d-lg-flex",class:{"mr-0":e.isEmptyHeader}},[a("b-dropdown",{staticClass:"navbar-dropdown",attrs:{id:"dropdown_help",variant:"icon","no-caret":"",title:"Help",right:e.isEmptyHeader},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("button",{staticClass:"btn btn-success btn-sm help-btn",attrs:{type:"button"}},[a("span",{staticClass:"has-icon has-icon_right"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"questionIcon",size:16}})],1),a("span",{staticClass:"has-icon__text"},[e._v(e._s(e.$t("en.header.nav.help")))])]),e.isDisabledNotes?e._e():a("release-notes-counter")],1)]},proxy:!0}])},[a("b-dropdown-item",{attrs:{id:"my-help-btn",target:"_blank",href:"https://intercom.help/fitr/en/"}},[e._v(" "+e._s(e.$t("en.header.nav.help_centre"))+" ")]),e.isUserCoach?a("b-dropdown-item",{attrs:{id:"demo-videos-btn",target:"_blank",href:"https://get.fitr.training/demo"}},[e._v(" "+e._s(e.$t("en.header.nav.demo_videos"))+" ")]):e._e(),a("b-dropdown-item",{class:{disabled:e.isDisabledNotes},attrs:{id:"my-whats-new",to:{name:"release-notes"},"aria-disabled":e.isDisabledNotes,disabled:e.isDisabledNotes,tabindex:e.isDisabledNotes?"-1":null}},[e._v(" "+e._s(e.$t("en.header.nav.whats_new"))+" "),e.isDisabledNotes?e._e():a("release-notes-counter")],1),e.isUserCoach&&!e.isCoachOverallAccount?[a("b-dropdown-divider"),a("b-dropdown-item-button",{attrs:{id:"my-support-btn"},on:{click:e.openLiveChat}},[e._v(" "+e._s(e.$t("en.header.nav.talk_to_support"))+" ")])]:e._e()],2)],1)},as=[],is=l(es,ts,as,!1,null,"8fc3036f");const ss=is.exports,Me="swl-trial-warning",ns={data(){return{swlTrialWarning:!1}},computed:{isTrial(){var t;return!this.isAccountFree&&this.isAccountActive&&((t=this.subscriptionData)==null?void 0:t.trial)&&!(this.isSubscriptionUnlimited||this.hasWhiteLabel)},warningTrigger(){return[this.hasAnyValue,this.isTrial].join()},isWarningHidden(){return this.$route.name=="coach_profile_my_accounts"},...h("color_scheme",["hasAnyValue"]),...h("subscription",["isAccountFree","isSubscriptionUnlimited","isSubscriptionPro","hasWhiteLabel","subscriptionData","isAccountActive","isAccountFree"]),...h(["viewedPopups"])},created:function(){var t;this.isTrial&&!((t=this.viewedPopups)!=null&&t.includes(Me))&&(this.changesUnwatch=this.$watch("warningTrigger",()=>{this.showSwlTrialWarning()},{immediate:!0}))},methods:{showSwlTrialWarning(){this.hasAnyValue&&(this.swlTrialWarning=this.isTrial)},hideSwlTrialWarning(){this.swlTrialWarning=!1,this.makePopupViewed({name:Me})},...b(["makePopupViewed"])}};var os=function(){var e=this,a=e._self._c;return e.swlTrialWarning?a("div",{directives:[{name:"show",rawName:"v-show",value:!e.isWarningHidden,expression:"!isWarningHidden"}],staticClass:"alert alert-sm alert-danger rounded-0 m-0 pl-0 pr-0",attrs:{role:"alert"}},[a("div",{staticClass:"container"},[a("div",{staticClass:"alert-body justify-content-start"},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e._v(" We can see you’re using the White Label features, that’s awesome!"),a("br"),e._v(" Please remember to choose Unlimited plan when you upgrade if you want to continue using it after your trial. "),a("router-link",{staticClass:"alert-link",attrs:{to:{name:"choose_your_plan"}}},[e._v("Click here")]),e._v(" to upgrade. ")],1),a("div",{staticClass:"alert-body__close"},[a("button",{staticClass:"btn btn-icon",attrs:{type:"button","data-dismiss":"alert","aria-label":"Close"},on:{click:e.hideSwlTrialWarning}},[a("SvgIcon",{attrs:{name:"closeIcon"}})],1)])])])]):e._e()},rs=[],ls=l(ns,os,rs,!1,null,null);const cs=ls.exports,Le="clicked-by-highlighted-coach-empty-account",Oe=function(t,e){return!!e.some(function(a){return t.indexOf(a)>=0})},ds={name:"AppHeader",components:{PortalTarget:ee,UserAvatar:$,NotificationsIndicator:Ya,NotificationsIndicatorLink:Ha,ChatIndicator:Za,ChatIndicatorLink:ei,OnboardingChecklist:Ai,AccountsList:Fi,SystemWarning:Hi,SubscriptionWarning:Zi,TrialStatus:mt,HelpDropdown:ss,ReleaseNotesCounter:ft,SwlTrialWarning:cs},data(){return{isShowMenu:!1,isMobileLayout:!1,dropdownShowList:0}},computed:{isCoachOwnProfile(){return!!this.$route.meta.coachOwnProfile},activeAccount(){return this.isCoachOwnProfile?this.privateUser:this.currentUser},isCurrentUser(){return this.authenticated},hasNew(){return this.activeAccount.has_new_notifications},currentUserName(){return this.isCoachOwnProfile?this.activeAccount.full_name:this.activeAccount.title},defaultAvatar(){return this.currentUserName.charAt(0).toUpperCase()},publicPageRoute(){return this.accountPublicRoute()},coachEmptyAccount(){return this.hasCoachAnotherAccounts?this.filteredAccounts.find(t=>t.account_kind=="private"&&!t.subscriptions.active&&!t.subscriptions.trial&&!t.subscriptions.trial_end_date):null},hasCoachEmptyAccount(){var t;return!!((t=this.coachEmptyAccount)!=null&&t.id)},highlightCoachEmptyAccount(){var e;let t=(e=this.viewedPopups)==null?void 0:e.includes(Le);return this.hasCoachEmptyAccount&&this.filteredAccounts.length==1&&!t},isBillingAviable(){return!this.isAccountFree&&this.hasSubscription},isUpgradeAccountAviable(){return this.isTrialActive||this.isTrialExpired},isProgrammingLinkActive(){let t=["coach/programs","challenges","leaderboards","templates","media"];return Oe(this.$route.path,t)},isStorefrontLinkActive(){let t=["coupons"];return this.$route.name=="public-page-short-link"?!0:Oe(this.$route.path,t)},onboardingChecklistAviable(){return this.isCurrentUser&&this.isUserCoach&&!this.isAccountBlocked&&this.isFinancialAviable&&!this.isOnboardingChecklistHidden},isDisabledNotes(){return this.isAccountBlocked&&this.isUserCoach},...C(["currentUser","privateUser","authenticated"]),...h(["isUserCoach","isBusinessAccount","isBusinessOwner","isFinancialAviable","accountPublicRoute","hasAccountsNotifications","filteredAccounts","hasCoachAnotherAccounts","viewedPopups","stripeAccount","isOnboardingChecklistHidden","isCustomStripeAccount"]),...h("subscription",["isAccountBlocked","isAccountFree","hasSubscription","isAccountEmpty","isTrialActive","isTrialExpired"]),...h("color_scheme",["siteLogo"])},mounted:function(){this.$root.$on("hide-user-menu",this.close),this.mq=window.matchMedia("(max-width: 991.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches),this.isUserCoach&&this.$route.name!="coach_profile_my_accounts"&&this.getCoachAccounts().catch(m)},beforeDestroy:function(){this.$root.$off("hide-user-menu",this.close),this.isShowMenu&&this.close(),this.mq&&this.mq.removeListener(this.updateMatches)},methods:{handleDropdownShown(){this.dropdownShowList=this.dropdownShowList+1,this.setHeaderDropdownStatus(this.dropdownShowList!=0)},handleDropdownHide(){this.dropdownShowList=this.dropdownShowList-1,this.setHeaderDropdownStatus(this.dropdownShowList!=0)},updateMatches(){this.isMobileLayout=this.mq.matches},close:function(){this.toggleBodyClass("removeClass","stop-scrolling"),this.isShowMenu=!1},toggleMenu(){this.isShowMenu?this.toggleBodyClass("removeClass","stop-scrolling"):this.toggleBodyClass("addClass","stop-scrolling"),this.isShowMenu=!this.isShowMenu},profileMenuShowed(){this.$root.$emit("profile-menu-showed"),this.isShowMenu&&this.close()},singOut(){this.toggleBodyClass("removeClass","stop-scrolling"),this.$store.dispatch({type:"signout"})},toggleBodyClass(t,e){const a=document.body;t==="addClass"?a.classList.add(e):a.classList.remove(e)},hideCoachDropdownMenu(){this.$refs.coachDropdownMenu&&this.$refs.coachDropdownMenu.hide(!0)},clickByHighlightedHoachEmptyAccount(){this.$refs.accountsList.changeAccount(this.coachEmptyAccount.id),this.makePopupViewed({name:Le})},openLiveChat(){var t,e;(t=window.cookiehub)!=null&&t.hasConsented("preferences")?window.Intercom&&window.Intercom("show"):(e=window.cookiehub)!=null&&e.openSettings&&window.cookiehub.openSettings()},...X(["setAccounts","setHeaderDropdownStatus"]),...b(["makePopupViewed","getCoachAccounts"])}},vt="data:image/svg+xml,%3csvg%20width='88'%20height='44'%20viewBox='0%200%2088%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.1758%2017.5569V21.1964H23.5275V23.7533H17.1758V28.7687H15.1973C14.536%2028.7687%2014%2028.2327%2014%2027.5714V15H23.1752C23.8365%2015%2024.3725%2015.536%2024.3725%2016.1973V17.5569H17.1758Z'%20fill='%2322242F'/%3e%3cpath%20d='M31.9984%2015H33.9774C34.6386%2015%2035.1746%2015.536%2035.1746%2016.1973V28.7687H33.1956C32.5344%2028.7687%2031.9984%2028.2327%2031.9984%2027.5714V15Z'%20fill='%2322242F'/%3e%3cpath%20d='M43.9978%2017.5954C43.3365%2017.5954%2042.8005%2017.0594%2042.8005%2016.3982V15H53.5654C54.2266%2015%2054.7626%2015.536%2054.7626%2016.1973V17.5954H50.3707V28.7687H48.3917C47.7305%2028.7687%2047.1944%2028.2327%2047.1944%2027.5714V17.5954H43.9978Z'%20fill='%2322242F'/%3e%3cpath%20d='M71.1343%2028.7687L68.4867%2024.9338H65.5648V28.7687H63.5858C62.9245%2028.7687%2062.3885%2028.2327%2062.3885%2027.5714V15H68.3305C71.9975%2015%2074.2926%2016.9084%2074.2926%2019.996C74.2926%2022.0611%2073.2532%2023.5758%2071.4688%2024.3432L74.5469%2028.7687H71.1343ZM68.1543%2017.5954H65.5668V22.3946H68.1543C70.0949%2022.3946%2071.0762%2021.4906%2071.0762%2019.994C71.0762%2018.4974%2070.0949%2017.5934%2068.1543%2017.5934V17.5954Z'%20fill='%2322242F'/%3e%3c/svg%3e";var us=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"site-header",attrs:{id:"jsSiteHeader"}},[e.isCurrentUser&&e.isUserCoach&&!e.isCoachOwnProfile?a("subscription-warning"):e._e(),a("header",{staticClass:"header"},[a("div",{staticClass:"container h-100"},[a("router-link",{staticClass:"navbar-brand",attrs:{to:"/"}},[e.siteLogo&&e.siteLogo.logo?a("img",{staticClass:"logo",attrs:{src:e.siteLogo.logo,srcset:e.siteLogo.hd+" 2x",alt:"Powered by FITR"}}):a("img",{staticClass:"logo",attrs:{src:vt,alt:"Powered by FITR"}})]),a("div",{staticClass:"nav-toggle-button"},[e.isCurrentUser?a("div",{on:{click:e.toggleMenu}},[a("SvgIcon",{attrs:{name:e.isShowMenu?"closeIcon":"menuIcon",size:32}})],1):e._e(),e.activeAccount.has_new_notifications||e.activeAccount.has_unread_chat_messages?a("div",{directives:[{name:"show",rawName:"v-show",value:!e.isShowMenu,expression:"!isShowMenu"}],staticClass:"indicator"}):e._e()]),a("div",{staticClass:"row align-items-stretch justify-content-between h-100"},[a("div",{staticClass:"col-auto align-items-center d-flex"},[e.isCurrentUser?[e.isMobileLayout?[a("div",{staticClass:"d-inline-block d-lg-none mob-menu",class:{open:e.isShowMenu}},[a("div",{staticClass:"mob-menu-list"},[e.isUserCoach?[e.isCoachOwnProfile?[a("ul",[a("li",[a("div",{staticClass:"nav-link"},[a("user-avatar",{staticClass:"current-account__pic",attrs:{user:e.activeAccount,size:40}}),a("div",{staticClass:"current-account__info"},[a("div",{staticClass:"current-account__ttl"},[e._v(" "+e._s(e.currentUserName)+" ")])])],1)])]),a("ul",[a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"coach_my_profile_info"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.my_profile")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"coach_profile_my_accounts"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.my_accounts")))])])],1)]),a("ul",[a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isDisabledNotes},attrs:{to:{name:"release-notes"},"aria-disabled":e.isDisabledNotes,disabled:e.isDisabledNotes,tabindex:e.isDisabledNotes?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.header.nav.whats_new"))+" "),e.isDisabledNotes?e._e():a("release-notes-counter",{staticClass:"ml-2"})],1)],1),a("li",[a("a",{staticClass:"btn-block nav-link",attrs:{id:"custom-intercom-launcher",href:"https://intercom.help/fitr/en/",target:"_blank"},on:{"!click":function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.help_centre")))])])]),e.isUserCoach?a("li",[a("button",{staticClass:"btn-block nav-link",on:{click:e.openLiveChat}},[a("span",[e._v(e._s(e.$t("en.header.nav.talk_to_support")))])])]):e._e()])]:[a("div",{staticClass:"nav-dropdown-section"},[a("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapse-coach-profile",expression:"'collapse-coach-profile'"}],staticClass:"nav-dropdown-section__header",attrs:{type:"button"}},[a("div",{staticClass:"d-flex align-items-center"},[a("user-avatar",{staticClass:"current-account__pic",attrs:{user:e.activeAccount,size:40}}),a("div",{staticClass:"current-account__info"},[a("div",{staticClass:"current-account__ttl"},[e._v(" "+e._s(e.currentUserName)+" ")])])],1),a("SvgIcon",{attrs:{name:"chevronStrokeUpIcon",size:20}})],1),a("b-collapse",{staticClass:"nav-dropdown-section__body",attrs:{id:"collapse-coach-profile"}},[a("ul",[e.isFinancialAviable&&e.isCustomStripeAccount?a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountEmpty},attrs:{to:{name:"coach_dashboard_transactions"},"aria-disabled":e.isAccountEmpty,disabled:e.isAccountEmpty,tabindex:e.isAccountEmpty?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.dashboard")))])])],1):e._e(),e.isFinancialAviable?a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"coach_profile_info"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.settings")))])])],1):e._e(),a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"coach_profile_my_accounts"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.my_accounts")))])])],1)])])],1),a("ul",{staticClass:"d-md-none"},[a("li",[a("notifications-indicator-link",{staticClass:"nav-link not-uppercase",nativeOn:{click:function(i){return e.close.apply(null,arguments)}}})],1),a("li",[a("chat-indicator-link",{staticClass:"nav-link not-uppercase",nativeOn:{click:function(i){return e.close.apply(null,arguments)}}})],1)]),a("div",{staticClass:"nav-dropdown-section"},[a("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapse-programming",expression:"'collapse-programming'"}],staticClass:"nav-dropdown-section__header",attrs:{type:"button"}},[e._v(" Programming "),a("SvgIcon",{attrs:{name:"chevronStrokeUpIcon",size:20}})],1),a("b-collapse",{staticClass:"nav-dropdown-section__body",attrs:{id:"collapse-programming"}},[a("ul",[a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{path:"/coach/programs"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.programs")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:{path:"/coach/challenges"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.challenges")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:{path:"/leaderboards"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.leaderboards")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:{path:"/coach/templates"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.templates")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:{name:"media_library"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.media")))])])],1)])])],1),a("ul",[a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:{path:"/coach/clients"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.clients")))])])],1)]),a("div",{staticClass:"nav-dropdown-section"},[a("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapse-storefront",expression:"'collapse-storefront'"}],staticClass:"nav-dropdown-section__header",attrs:{type:"button"}},[e._v(" "+e._s(e.$t("en.header.nav.storefront"))+" "),a("SvgIcon",{attrs:{name:"chevronStrokeUpIcon",size:20}})],1),a("b-collapse",{staticClass:"nav-dropdown-section__body",attrs:{id:"collapse-storefront"}},[a("ul",[a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:e.publicPageRoute,"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.your_storefront")))])])],1),e.isFinancialAviable&&e.stripeAccount.account?a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{to:{name:"coach_profile_coupons"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.coupons")))])])],1):e._e(),!e.isCoachOwnProfile&&e.isFinancialAviable?[a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"customisation"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.white_label")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"zapier-integration"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.zapier_integration")))])])],1)]:e._e()],2)])],1),a("div",{staticClass:"nav-dropdown-section"},[a("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapse-help-coach",expression:"'collapse-help-coach'"}],staticClass:"nav-dropdown-section__header",attrs:{type:"button"}},[e._v(" Help "),a("SvgIcon",{attrs:{name:"chevronStrokeUpIcon",size:20}})],1),a("b-collapse",{staticClass:"nav-dropdown-section__body",attrs:{id:"collapse-help-coach"}},[a("ul",[a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isDisabledNotes},attrs:{to:{name:"release-notes"},"aria-disabled":e.isDisabledNotes,disabled:e.isDisabledNotes,tabindex:e.isDisabledNotes?"-1":null},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.header.nav.whats_new"))+" "),e.isDisabledNotes?e._e():a("release-notes-counter",{staticClass:"ml-2"})],1)],1),a("li",[a("a",{staticClass:"btn-block nav-link",attrs:{id:"custom-intercom-launcher",href:"https://intercom.help/fitr/en/",target:"_blank"},on:{"!click":function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.help_centre")))])])]),e.isUserCoach?a("li",[a("a",{staticClass:"btn-block nav-link",attrs:{href:"https://get.fitr.training/demo",target:"_blank"},on:{"!click":function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.demo_videos")))])])]):e._e(),e.isUserCoach?a("li",[a("button",{staticClass:"btn-block nav-link",on:{click:e.openLiveChat}},[a("span",[e._v(e._s(e.$t("en.header.nav.talk_to_support")))])])]):e._e()])])],1)],e._m(0),a("ul",[a("li",[a("button",{staticClass:"btn btn-link",attrs:{"data-color":"danger"},on:{click:e.singOut}},[e._v(" Log out ")])])])]:[a("div",{staticClass:"nav-dropdown-section"},[a("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapse-user",expression:"'collapse-user'"}],staticClass:"nav-dropdown-section__header",attrs:{type:"button"}},[a("div",{staticClass:"d-flex align-items-center"},[a("user-avatar",{staticClass:"current-account__pic",attrs:{user:e.activeAccount,size:40}}),a("div",{staticClass:"current-account__info"},[a("div",{staticClass:"current-account__ttl"},[e._v(" "+e._s(e.currentUserName)+" ")])])],1),a("SvgIcon",{attrs:{name:"chevronStrokeUpIcon",size:20}})],1),a("b-collapse",{staticClass:"nav-dropdown-section__body",attrs:{id:"collapse-user",visible:""}},[a("ul",[a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{path:"/user/profile"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.profile")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{path:"/user/my_programs"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.programs")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{path:"/user/billing"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.billing")))])])],1),a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{path:"/user/settings"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.settings")))])])],1)])])],1),a("ul",{staticClass:"d-md-none"},[a("li",[a("notifications-indicator-link",{staticClass:"nav-link not-uppercase",nativeOn:{click:function(i){return e.close.apply(null,arguments)}}})],1),a("li",[a("chat-indicator-link",{staticClass:"nav-link not-uppercase",nativeOn:{click:function(i){return e.close.apply(null,arguments)}}})],1)]),a("ul",[a("li",[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"calendar"}},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.calendar")))])])],1)]),a("div",{staticClass:"nav-dropdown-section"},[a("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"collapse-help",expression:"'collapse-help'"}],staticClass:"nav-dropdown-section__header",attrs:{type:"button"}},[e._v(" Help "),a("SvgIcon",{attrs:{name:"chevronStrokeUpIcon",size:20}})],1),a("b-collapse",{staticClass:"nav-dropdown-section__body",attrs:{id:"collapse-help",visible:""}},[a("ul",[a("li",[a("router-link",{staticClass:"nav-link",class:{disabled:e.isDisabledNotes},attrs:{to:{name:"release-notes"},"aria-disabled":e.isDisabledNotes,disabled:e.isDisabledNotes},nativeOn:{click:function(i){return e.toggleMenu.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.header.nav.whats_new"))+" "),e.isDisabledNotes?e._e():a("release-notes-counter",{staticClass:"ml-2"})],1)],1),a("li",[a("a",{staticClass:"btn-block nav-link",attrs:{id:"custom-intercom-launcher",href:"https://intercom.help/fitr/en/",target:"_blank"},on:{"!click":function(i){return e.toggleMenu.apply(null,arguments)}}},[a("span",[e._v(e._s(e.$t("en.header.nav.help_centre")))])])])])])],1),e._m(1),a("ul",[a("li",[a("button",{staticClass:"btn btn-link",attrs:{"data-color":"danger"},on:{click:e.singOut}},[e._v(" Log out ")])])])]],2)])]:[e.isUserCoach&&!e.isCoachOwnProfile?a("div",{staticClass:"navbar-nav navbar-nav__links"},[a("b-dropdown",{staticClass:"navbar-dropdown",class:[e.isProgrammingLinkActive?"active":""],attrs:{id:"dropdown_programming",variant:"link-dark","no-caret":""},on:{show:e.handleDropdownShown,hide:e.handleDropdownHide},scopedSlots:e._u([{key:"button-content",fn:function(){return[e._v(" Programming "),a("SvgIcon",{attrs:{name:"chevronStrokeDownIcon",size:20}})]},proxy:!0}],null,!1,1210515282)},[a("b-dropdown-item",{class:{disabled:e.isAccountEmpty},attrs:{id:"my-plans-btn",to:{path:"/coach/programs"},"aria-disabled":e.isAccountEmpty,disabled:e.isAccountEmpty,tabindex:e.isAccountEmpty?"-1":null}},[e._v(" "+e._s(e.$t("en.header.nav.programs"))+" ")]),a("b-dropdown-item",{class:{disabled:e.isAccountBlocked},attrs:{id:"my-challenges-btn",to:{path:"/coach/challenges"},"aria-disabled":e.isAccountBlocked,disabled:e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null}},[e._v(" "+e._s(e.$t("en.header.nav.challenges"))+" ")]),a("b-dropdown-item",{class:{disabled:e.isAccountBlocked},attrs:{id:"my-leaderboards-btn",to:{path:"/leaderboards"},"aria-disabled":e.isAccountBlocked,disabled:e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null}},[e._v(" Leaderboards ")]),a("b-dropdown-item",{class:{disabled:e.isAccountBlocked},attrs:{id:"my-templates-btn",to:{path:"/coach/templates"},"aria-disabled":e.isAccountBlocked,disabled:e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null}},[e._v(" Templates ")]),a("b-dropdown-item",{class:{disabled:e.isAccountBlocked},attrs:{id:"my-media-btn",to:{name:"media_library"},"aria-disabled":e.isAccountBlocked,disabled:e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null}},[e._v(" "+e._s(e.$t("en.header.nav.media"))+" ")])],1),a("router-link",{staticClass:"nav-link",class:{disabled:e.isAccountBlocked},attrs:{id:"my-athletes-btn",to:{path:"/coach/clients"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null}},[e._v(" "+e._s(e.$t("en.header.nav.clients"))+" ")]),a("b-dropdown",{staticClass:"navbar-dropdown",class:[e.isStorefrontLinkActive?"active":""],attrs:{id:"dropdown_programming",variant:"link-dark",disabled:e.isAccountBlocked,"no-caret":""},on:{shown:e.handleDropdownShown,hide:e.handleDropdownHide},scopedSlots:e._u([{key:"button-content",fn:function(){return[e._v(" "+e._s(e.$t("en.header.nav.storefront"))+" "),a("SvgIcon",{attrs:{name:"chevronStrokeDownIcon",size:20}})]},proxy:!0}],null,!1,677673418)},[a("b-dropdown-item",{attrs:{id:"my-acount-btn",to:e.publicPageRoute,disabled:e.isAccountBlocked}},[e._v(" "+e._s(e.$t("en.header.nav.your_storefront"))+" ")]),e.isFinancialAviable&&e.stripeAccount.account?a("b-dropdown-item",{class:{disabled:e.isAccountBlocked},attrs:{id:"my-coupons-btn",to:{name:"coach_profile_coupons"},"aria-disabled":e.isAccountBlocked,tabindex:e.isAccountBlocked?"-1":null}},[e._v(" "+e._s(e.$t("en.header.nav.coupons"))+" ")]):e._e(),!e.isCoachOwnProfile&&e.isFinancialAviable?[a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{name:"zapier-integration"}}},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("span",[e._v(e._s(e.$t("en.header.nav.zapier_integration")))])])]),a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{name:"customisation"}}},[e._v(" "+e._s(e.$t("en.header.nav.white_label"))+" ")])]:e._e()],2)],1):e.activeAccount.role=="user"?a("div",{staticClass:"navbar-nav navbar-nav__links"},[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"calendar"}}},[e._v(" "+e._s(e.$t("en.header.nav.calendar"))+" ")])],1):e._e()]]:e._e()],2),a("div",{staticClass:"col-auto navbar-nav__submenu"},[e.isCurrentUser?[e.onboardingChecklistAviable&&!e.isCoachOwnProfile?a("onboarding-checklist"):e._e(),a("help-dropdown",{attrs:{"is-empty-header":e.isCoachOwnProfile}}),e.isCoachOwnProfile?e._e():a("div",{staticClass:"navbar-nav__indicators"},[a("div",{staticClass:"navbar-nav navbar-nav__user"},[a("chat-indicator",{staticClass:"nav-link chat-indicator d-none d-md-flex"}),a("notifications-indicator",{staticClass:"notifications-indicator d-none d-md-flex"})],1)])]:e._e()],2)]),e.isCurrentUser?a("div",{staticClass:"navbar-profile d-none d-lg-block"},[e.isUserCoach?[a("div",{staticClass:"desktop-menu"},[a("b-dropdown",{ref:"coachDropdownMenu",attrs:{variant:"link","no-flip":"",right:"","no-caret":""},on:{show:e.profileMenuShowed}},[a("template",{slot:"button-content"},[a("div",{staticClass:"current-account__user"},[a("user-avatar",{attrs:{user:e.activeAccount,size:40}})],1)]),a("div",{staticClass:"current-account"},[e.isCoachOwnProfile?e._e():a("user-avatar",{staticClass:"current-account__pic",attrs:{user:e.activeAccount,size:40,hide_image:e.isCoachOwnProfile}}),a("div",{staticClass:"current-account__info"},[a("div",{staticClass:"current-account__ttl"},[e._v(" "+e._s(e.currentUserName)+" ")])])],1),e.isFinancialAviable?[e.isCustomStripeAccount&&!e.isCoachOwnProfile?a("b-dropdown-item",{class:{disabled:e.isAccountEmpty},attrs:{"active-class":"router-link-active",to:{name:"coach_dashboard_transactions"},"aria-disabled":e.isAccountEmpty,disabled:e.isAccountEmpty,tabindex:e.isAccountEmpty?"-1":null},nativeOn:{click:function(i){return e.hideCoachDropdownMenu.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.header.nav.dashboard"))+" ")]):e._e(),e.isCoachOwnProfile?e._e():a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{name:"coach_profile_info"}}},[e._v(" "+e._s(e.$t("en.header.nav.settings"))+" ")])]:e._e(),e.isCoachOwnProfile?a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{name:"coach_my_profile_info"}}},[e._v(" "+e._s(e.$t("en.header.nav.my_profile"))+" ")]):e._e(),a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{name:"coach_profile_my_accounts"}}},[e._v(" "+e._s(e.$t("en.header.nav.my_accounts"))+" ")]),a("b-dropdown-text",{staticClass:"desktop-menu__logout"},[a("div",{staticClass:"log-out"},[a("button",{staticClass:"btn btn-outline-danger btn-sm",on:{click:e.singOut}},[e._v(" Log Out ")]),a("span",[e._v(e._s(e.$t("en.header.nav.logout_message")))])])])],2)],1)]:[a("div",{staticClass:"desktop-menu"},[a("b-dropdown",{ref:"coachDropdownMenu",attrs:{variant:"link","no-flip":"",right:"","no-caret":""},on:{show:e.profileMenuShowed}},[a("template",{slot:"button-content"},[a("div",{staticClass:"current-account__user"},[a("user-avatar",{attrs:{user:e.activeAccount,size:40}})],1)]),a("div",{staticClass:"current-account"},[a("user-avatar",{staticClass:"current-account__pic",attrs:{user:e.activeAccount,size:40}}),a("div",{staticClass:"current-account__info"},[a("div",{staticClass:"current-account__ttl"},[e._v(" "+e._s(e.currentUserName)+" ")])])],1),a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{path:"/user/profile"}}},[e._v(" "+e._s(e.$t("en.header.nav.profile"))+" ")]),a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{path:"/user/my_programs"}}},[e._v(" "+e._s(e.$t("en.header.nav.programs"))+" ")]),a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{path:"/user/billing"}}},[e._v(" "+e._s(e.$t("en.header.nav.billing"))+" ")]),a("b-dropdown-item",{attrs:{"active-class":"router-link-active",to:{path:"/user/settings"}}},[e._v(" "+e._s(e.$t("en.header.nav.settings"))+" ")]),a("b-dropdown-text",{staticClass:"desktop-menu__logout"},[a("div",{staticClass:"log-out"},[a("button",{staticClass:"btn d-block btn-outline-danger btn-md w-100 mr-0",on:{click:e.singOut}},[e._v(" Log out ")])])])],2)],1)]],2):a("div",{staticClass:"navbar-auth"},[a("div",{staticClass:"navbar-nav"},[a("help-dropdown"),a("router-link",{staticClass:"btn btn-link",attrs:{to:{name:"onboarding-signin"}}},[e._v(" Sign in ")]),a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"onboarding-role-selection"}}},[e._v(" Sign up ")])],1)])],1)]),a("portal-target",{attrs:{name:"system-warnings"}}),a("swl-trial-warning"),e.isCurrentUser&&!e.isCoachOwnProfile?a("system-warning"):e._e(),e.isUserCoach?a("accounts-list",{ref:"accountsList"}):e._e()],1)},ps=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ul",[e("li",[e("a",{staticClass:"nav-link",attrs:{href:"https://get.fitr.training/coach-app",target:"_blank"}},[t._v(" Download the app ")])])])},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ul",[e("li",[e("a",{staticClass:"nav-link",attrs:{href:"https://get.fitr.training/client-app",target:"_blank"}},[t._v("Download the app")])])])}],hs=l(ds,us,ps,!1,null,"bccdc518");const I=hs.exports,yt="/app-assets/not_found-CQKMo1Q1.svg",_s={components:{AppHeader:I}};var ms=function(){var e=this,a=e._self._c;return a("div",{staticClass:"wrap d-flex flex-column"},[a("AppHeader"),a("div",{staticClass:"content d-flex justify-content-center align-items-center flex-column m-auto"},[e._m(0),a("h2",[e._v("404 error")]),a("p",[e._v("Sorry, we can't find this page.")]),a("div",{staticClass:"actions text-center"},[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"main"}}},[e._v("Go to main page")])],1)])],1)},fs=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"thumb"},[e("span",[t._v("404")]),e("img",{attrs:{src:yt,alt:"Create and sell your first training plan"}})])}],vs=l(_s,ms,fs,!1,null,"3820eb29");const ys=vs.exports,bs={};var gs=function(){var e=this;return e._self._c,e._m(0)},ws=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"text text-center"},[e("hr"),t._v(" Main PAGE "),e("hr")])])}],Cs=l(bs,gs,ws,!1,null,"df924b50");const ks=Cs.exports;function q(t,e,a){localStorage.setItem("access_token",t),localStorage.setItem("token_type",e),d.defaults.headers.common.Authorization=`${e} ${t}`,a("AuthUser")}function Ss(){window.Intercom&&window.Intercom("shutdown"),localStorage.removeItem("access_token"),localStorage.removeItem("addMediaActiveTab"),localStorage.removeItem("token_type"),localStorage.removeItem("back_to_plan"),d.defaults.headers.common.Authorization="",window.localStorage.removeItem("fitr_return_path"),window.localStorage.removeItem("utm_query"),window.location.replace("/")}const As=t=>t.pagination.total,Ps=t=>t.pagination.total!=null,Ts=t=>Object.keys(t.notifications).sort((e,a)=>parseInt(a,10)-parseInt(e,10)),$s=(t,e)=>e.notificationsIDs.map(a=>t.notifications[a]),xs=(t,e)=>e.sortedNotifications.length>0&&t.activityType?e.sortedNotifications.filter(a=>a.activity_type==t.activityType):e.sortedNotifications,Is=(t,e)=>e.notificationsByType.length,Rs=(t,e)=>ct(e.notificationsByType,"date_key"),Es=(t,e)=>{let a=e.notificationsByType[e.notificationsSize-1];return a!=null?a.id:null},Ds=(t,e)=>e.latestID>t.pagination.min_offset,Fs=(t,e)=>e.notificationsIDs.slice(0,5).map(i=>t.notifications[i]),Ms=Object.freeze(Object.defineProperty({__proto__:null,groupedNotifications:Rs,isPaginable:Ds,isReady:Ps,latestID:Es,notificationsByType:xs,notificationsIDs:Ts,notificationsSize:Is,notificationsTotal:As,sortedNotifications:$s,unreadNotifications:Fs},Symbol.toStringTag,{value:"Module"})),Ls=({commit:t,rootGetters:e})=>{let a="notifications/unread";return e.isUserCoach&&e["subscription/isAccountBlocked"]&&(a="notifications/restricted?limit=5"),new Promise((i,s)=>{d.get(a).then(({data:o})=>{o!=null&&o.items?t("receiveNotifications",o.items):t("receiveNotifications",o),i()}).catch(o=>{m(o),s()})})},Os=({state:t,commit:e,rootGetters:a},i)=>{e("setActivityType",i),t.offset=null,t.isLoading=!0;let s="notifications";a.isUserCoach&&a["subscription/isAccountBlocked"]&&(s="notifications/restricted"),d.get(s,{params:{limit:t.limit,activity_type:t.activityType}}).then(({data:o})=>{e("receiveNotifications",o.items),e("setPagination",o.meta),e("setUnread",o.meta)}).catch(m).then(()=>{t.isLoading=!1})},Us=({state:t,commit:e,getters:a,rootGetters:i})=>{t.isLoading=!0;let s="notifications";i.isUserCoach&&i["subscription/isAccountBlocked"]&&(s="notifications/restricted"),d.get(s,{params:{limit:t.limit,offset:a.latestID,activity_type:t.activityType}}).then(({data:o})=>{e("receiveNotifications",o.items),e("setPagination",o.meta),e("setUnread",o.meta)}).catch(m).then(()=>{t.isLoading=!1})},Ys=({state:t,commit:e},a)=>{let i=t.notifications[a];if(i==null)return;let s=i.read,o;s?(o=`notifications/${a}/unread`,e("markUnread",a),e("increaseUnreadCounter",a)):(o=`notifications/${a}/read`,e("markRead",a),e("decreaseUnreadCounter",a)),d.patch(o).then(({data:{unread_total:c}})=>{e("changeHasNewNotifications",c>0,{root:!0})}).catch(c=>{m(c),s?(e("markRead",a),e("decreaseUnreadCounter",a)):(e("markUnread",a),e("increaseUnreadCounter",a))})},Bs=({commit:t},e)=>{d.patch("notifications/read_all",{activity_type:e}).then(({data:a})=>{t("setUnread",a),a.unread_total==0?(t("markAllAsRead"),t("changeHasNewNotifications",!1,{root:!0})):t("markActivityAsRead",e)}).catch(a=>{m(a)})},Vs=Object.freeze(Object.defineProperty({__proto__:null,getFirstPage:Os,getNextPage:Us,getUnread:Ls,markAsRead:Bs,toggleReadState:Ys},Symbol.toStringTag,{value:"Module"})),bt="DD/MM/YYYY",Ns=function(t,e){k[e]!=null?t.activityType=k[e]:t.activityType=""},Ws=function(t,e){let{first_date:a,last_date:i,min_offset:s,total:o}=e;t.pagination={first_date:a,last_date:i,min_offset:s,total:o}},Hs=(t,e)=>{let{unread_activity:a,unread_financial:i,unread_total:s,unread_warning:o,unread_invites:c,unread_leaderboards:u}=e;t.unread={unread_activity:a,unread_financial:i,unread_total:s,unread_warning:o,unread_invites:c,unread_leaderboards:u}},qs=function(t,e){this._vm.$set(t.notifications[e],"read",!0)},zs=function(t,e){this._vm.$set(t.notifications[e],"read",!1)},js=function(t,e){let a=t.notifications[e],i=_t(a.activity_type);i!=null&&(t.unread[i]=t.unread[i]+1,t.unread.unread_total=t.unread.unread_total+1)},Gs=function(t,e){const a=t.notifications[e];if(!a)return;const i=_t(a.activity_type);i!=null&&(t.unread[i]>0&&(t.unread[i]=t.unread[i]-1),t.unread.unread_total>0&&(t.unread.unread_total=t.unread.unread_total-1))},Zs=function(t,e){for(let a in t.notifications)t.notifications[a].activity_type==e&&this._vm.$set(t.notifications[a],"read",!0)},Ks=function(t){for(let e in t.notifications)this._vm.$set(t.notifications[e],"read",!0)},Qs=function(t,e){e.forEach(a=>{if(t.notifications[a.id]==null){let i={...a,date_key:this._vm.$moment(a.created_at*1e3).format(bt)};this._vm.$set(t.notifications,i.id,i)}})},Js=function(t,e){let a={...e,date_key:this._vm.$moment(e.created_at*1e3).format(bt)};this._vm.$set(t.notifications,a.id,a)},Xs=function(t,e){this._vm.$delete(t.notifications,e)},en=Object.freeze(Object.defineProperty({__proto__:null,decreaseUnreadCounter:Gs,destroyNotification:Xs,increaseUnreadCounter:js,markActivityAsRead:Zs,markAllAsRead:Ks,markRead:qs,markUnread:zs,receiveNotification:Js,receiveNotifications:Qs,setActivityType:Ns,setPagination:Ws,setUnread:Hs},Symbol.toStringTag,{value:"Module"})),tn={isReady:!1,isLoading:!1,limit:20,pagination:{},unread:{unread_activity:0,unread_financial:0,unread_invites:0,unread_leaderboards:0,unread_total:0,unread_warning:0},notifications:{},activityType:""},an={namespaced:!0,state:tn,getters:Ms,actions:Vs,mutations:en},sn={namespaced:!0,state(){return{countries:[],currencies:[],payout_countries:[],tax_types:[],states:[]}},mutations:{setCountries(t,e){t.countries=e},setStates(t,e){t.states=e},setCurrencies(t,e){t.currencies=e},setPayoutCountries(t,e){t.payout_countries=e},setTaxTypes(t,e){t.tax_types=e}},actions:{fetch({commit:t,state:e}){return new Promise((a,i)=>{e.countries.length&&e.currencies.length&&e.payout_countries.length?a():d.get("settings").then(({data:s})=>{t("setCountries",s.countries),t("setStates",s.states),t("setCurrencies",s.currencies),t("setPayoutCountries",s.payout_countries),t("setTaxTypes",s.tax_types),a()}).catch(({response:s})=>{console.log("countries: catch",s),i()})})}},getters:{currentCountry(t,e,a){if(a.currentUser.country)return t.countries.find(i=>i.code==a.currentUser.country)},payoutCountries(t){return D(t.countries,t.payout_countries,(e,a)=>e.code==a)},availableCountries:(t,e,a)=>i=>{let s=t.countries;return(i=="coach"||a.currentUser.role=="coach")&&i!=="user"&&(s=e.payoutCountries),s.sort(function(o,c){return o.name.localeCompare(c.name)})},states(t){return t.states},localCurrencies(t,e){if(e.currentCountry)return D(t.currencies,[...e.currentCountry.local_currencies],(a,i)=>a.code==i)},availableCurrencies(t,e,a){let i=[];if(a.currentUser.role=="user"&&(i=["USD","EUR"]),e.currentCountry)return i=new Set([...i,...e.currentCountry.local_currencies]),D(t.currencies,[...i],(s,o)=>s.code==o)},availableCurrenciesForCountry:t=>e=>{if(e){let a=t.countries.find(i=>i.code==e);if(a)return D(t.currencies,[...a.local_currencies],(i,s)=>i.code==s)}},countryNameByCode:t=>e=>{let a=t.countries.find(i=>i.code==e);if(a)return a.name},stateNameByCode:t=>(e,a)=>{let i=t.states.find(s=>s[e]);if(i){let s=i[e].find(o=>o.code==a);return s?s.name:""}else return""},countryPhoneByCode:t=>e=>{let a=t.countries.find(i=>i.code==e);if(a)return a.country_phone_code},taxTypes(t){return t.tax_types}}},nn={namespaced:!0,getters:{subscriptionData(t,e,a,i){if(i.isUserCoach)return a.currentUser.subscription},isWLActive(t,e){if(e.subscriptionData)return e.subscriptionData.white_label_is_active},isWLTrial(t,e){if(e.subscriptionData)return e.isWLActive&&e.subscriptionData.trial},hasWhiteLabel(t,e){var a;return(a=e.subscriptionData.white_label_subscription)==null?void 0:a.active},isWLPaindAndActive(t,e){var a;if(e.subscriptionData)return e.hasWhiteLabel&&e.isWLActive&&!((a=e.subscriptionData.white_label_subscription)!=null&&a.cancel_at_period_end)},currentPlan(t,e){var a;return(a=e.subscriptionData)==null?void 0:a.plan},scheduledPlan(t,e){var a;return(a=e.subscriptionData)==null?void 0:a.scheduled_plan},isAccountActive(t,e){var a;return(a=e.subscriptionData)==null?void 0:a.active},isAccountBlocked(t,e){var a;return!((a=e.subscriptionData)!=null&&a.active)},isAccountFree(t,e){var a;return(a=e.subscriptionData)==null?void 0:a.free_usage},hasSubscription(t,e){var a,i;return!!((a=e.currentPlan)!=null&&a.id)&&((i=e.subscriptionData)==null?void 0:i.state)},isSubscriptionMonthly(t,e){return e.hasSubscription&&e.currentPlan.interval=="month"},isSubscriptionAnnual(t,e){return e.hasSubscription&&e.currentPlan.interval=="year"},isSubscriptionStarter(t,e){return e.hasSubscription&&e.currentPlan.product_kind=="starter"&&e.currentPlan.interval=="month"},isSubscriptionPro(t,e){return e.hasSubscription&&e.currentPlan.product_kind=="standalone"&&e.currentPlan.interval=="month"},isSubscriptionUnlimited(t,e){return e.hasSubscription&&e.currentPlan.product_kind=="business"},isActiveNewPricingPlan(t,e){return e.isSubscriptionStarter||e.isSubscriptionPro||e.isSubscriptionUnlimited},isCanceled(t,e){return!e.isAccountFree&&["canceled","incomplete_expired"].includes(e.subscriptionData.state)},isCancelAtPeriodEnd(t,e){var a;return!e.isAccountFree&&e.isAccountActive&&((a=e.subscriptionData)==null?void 0:a.cancel_at_period_end)},canSubscriptionBeCanceled(t,e){return!e.isAccountFree&&e.hasSubscription&&!e.isCancelAtPeriodEnd&&e.subscriptionData.state!="canceled"},isAccountEmpty(t,e){return!e.isAccountFree&&!e.isAccountActive&&!e.subscriptionData.trial_end_date},isTrialActive(t,e){var a;return!e.isAccountFree&&e.isAccountActive&&((a=e.subscriptionData)==null?void 0:a.trial)&&!e.hasSubscription},isTrialExpired(t,e){return!e.isAccountFree&&!e.hasSubscription&&!e.isAccountActive&&!e.isTrialActive&&!!e.subscriptionData.trial_end_date},humanizePlanInterval(t,e){return e.isSubscriptionUnlimited?"unlimited":"monthly"},humanizePlanKind(t,e){switch(!0){case e.isSubscriptionStarter:return"starter";case e.isSubscriptionPro:return"pro";case e.isSubscriptionUnlimited:return"unlimited";default:return"Current"}},humanizeScheduledPlanKind(t,e){switch(!0){case e.scheduledPlan.product_kind=="starter":return"starter";case e.scheduledPlan.product_kind=="standalone":return"pro";case e.scheduledPlan.product_kind=="business":return"unlimited";default:return"Current"}},isPurcahseFailed(t,e){return!e.isAccountFree&&e.hasSubscription&&["past_due","incomplete"].includes(e.subscriptionData.state)},isSwlPurcahseFailed(t,e){var a;return!e.isAccountFree&&e.hasSubscription&&e.subscriptionData.white_label_subscription&&["past_due","incomplete"].includes((a=e.subscriptionData.white_label_subscription)==null?void 0:a.state)}},actions:{startTrial(t){return new Promise((e,a)=>{d.post("users/me",{user:{trial_start:!0}}).then(({data:i})=>{t.commit("setCurrentUserSubscription",i.current.subscription,{root:!0}),e()}).catch(i=>{a(i)})})}}};function on(t,e){const a=ie(t),i=a.toHexString(),s=a.darken(7.5).toHexString(),o=a.lighten(60).toHexString();return{"--primary-color":i,"--primary-dark-color":s,"--primary-shadow-color":o,"--primary-text-color":e,"--primary-contrast-color":e}}function rn(t,e){const a=ie(t),i=a.getLuminance(),s=a.toHexString(),o=a.darken(7.5).toHexString(),c=a.lighten(7.5).toHexString(),u=i<.5?a.lighten(50).toHexString():a.darken(50).toHexString();return{"--secondary-color":s,"--secondary-dark-color":o,"--secondary-shadow-color":c,"--secondary-text-color":u,"--secondary-contrast-color":e}}function ln(t){const e=ie(t),a=e.toHexString(),i=e.darken(7.5).toHexString(),s=e.lighten(50).toHexString();return{"--system-text-color":a,"--system-text-dark-color":i,"--system-text-shadow-color":s}}const cn={namespaced:!0,state(){return{originalData:null}},mutations:{changeOriginalData(t,e){t.originalData=e},changePrimary(t,e){t.originalData.web_theme.primary_color=e},changePrimaryContrast(t,e){t.originalData.web_theme.primary_contrast_color=e},changeSecondary(t,e){t.originalData.web_theme.secondary_color=e},changeSecondaryContrast(t,e){t.originalData.web_theme.secondary_contrast_color=e},changeSystem(t,e){t.originalData.web_theme.system_text_color=e},changeLogo(t,e){t.originalData.logo=e},changeSubdomain(t,e){t.originalData.subdomain=e},changeSubdomainOwner(t,e){t.originalData.user=e}},getters:{webTheme(t){var e;return(e=t.originalData)==null?void 0:e.web_theme},primaryColor(t,e){var a;return((a=e.webTheme)==null?void 0:a.primary_color)||"#389840"},primaryContrastColor(t,e){var a;return((a=e.webTheme)==null?void 0:a.primary_contrast_color)||"#ffffff"},primaryCssColors(t,e){return on(e.primaryColor,e.primaryContrastColor)},secondaryColor(t,e){var a;return((a=e.webTheme)==null?void 0:a.secondary_color)||"#f5fbf5"},secondaryContrastColor(t,e){var a;return((a=e.webTheme)==null?void 0:a.secondary_contrast_color)||"#22242f"},secondaryCssColors(t,e){return rn(e.secondaryColor,e.secondaryContrastColor)},systemColor(t,e){var a;return((a=e.webTheme)==null?void 0:a.system_text_color)||"#389840"},systemCssColors(t,e){return ln(e.systemColor)},siteLogo(t){var e;return(e=t.originalData)==null?void 0:e.logo},siteSubdomainName(t){var e,a;return(a=(e=t.originalData)==null?void 0:e.subdomain)==null?void 0:a.sub_domain_name},siteSubdomainOwner(t){var e;return(e=t.originalData)==null?void 0:e.user},hasAnyValue(t){var e,a,i,s,o,c,u,p,y,v,R,E,le,ce,de,ue,pe,he,_e,me,fe,ve,ye,be,ge,we,Ce,ke,Se,Ae,Pe,Te,$e,xe;return!!((a=(e=t.originalData)==null?void 0:e.web_theme)!=null&&a.primary_color||(s=(i=t.originalData)==null?void 0:i.web_theme)!=null&&s.secondary_color||(c=(o=t.originalData)==null?void 0:o.web_theme)!=null&&c.system_text_color||(p=(u=t.originalData)==null?void 0:u.mobile_light_theme)!=null&&p.primary_color||(v=(y=t.originalData)==null?void 0:y.mobile_light_theme)!=null&&v.primary_background_color||(E=(R=t.originalData)==null?void 0:R.mobile_light_theme)!=null&&E.primary_text_color||(ce=(le=t.originalData)==null?void 0:le.mobile_light_theme)!=null&&ce.secondary_color||(ue=(de=t.originalData)==null?void 0:de.mobile_light_theme)!=null&&ue.secondary_background_color||(he=(pe=t.originalData)==null?void 0:pe.mobile_light_theme)!=null&&he.system_text_color||(me=(_e=t.originalData)==null?void 0:_e.mobile_dark_theme)!=null&&me.primary_color||(ve=(fe=t.originalData)==null?void 0:fe.mobile_dark_theme)!=null&&ve.primary_background_color||(be=(ye=t.originalData)==null?void 0:ye.mobile_dark_theme)!=null&&be.primary_text_color||(we=(ge=t.originalData)==null?void 0:ge.mobile_dark_theme)!=null&&we.secondary_color||(ke=(Ce=t.originalData)==null?void 0:Ce.mobile_dark_theme)!=null&&ke.secondary_background_color||(Ae=(Se=t.originalData)==null?void 0:Se.mobile_dark_theme)!=null&&Ae.system_text_color||(Te=(Pe=t.originalData)==null?void 0:Pe.logo)!=null&&Te.original||(xe=($e=t.originalData)==null?void 0:$e.subdomain)!=null&&xe.sub_domain_name)}},actions:{fetchAppTheme({dispatch:t}){return d.get("themes").then(({data:e})=>{t("setTheme",e)})},setTheme({commit:t},e){var a,i;e?(a=e.web_theme)!=null&&a.primary_color&&document.querySelector('meta[name="theme-color"]').setAttribute("content",(i=e.web_theme)==null?void 0:i.primary_color):e={web_theme:{primary_color:null,secondary_color:null,system_text_color:null,primary_contrast_color:null,secondary_contrast_color:null},mobile_light_theme:{primary_color:null,primary_background_color:null,primary_text_color:null,secondary_color:null,secondary_background_color:null,system_text_color:null,primary_contrast_color:null,secondary_contrast_color:null},mobile_dark_theme:{primary_color:null,primary_background_color:null,primary_text_color:null,secondary_color:null,secondary_background_color:null,system_text_color:null,primary_contrast_color:null,secondary_contrast_color:null},user:null,subdomain:null,logo:{original:null,hd:null,logo:null,small:null}},t("changeOriginalData",e)}}},dn={namespaced:!0,state(){return{counter:0}},mutations:{setCounter(t,e){t.counter=e}},getters:{notesCounter(t){return t.counter}},actions:{changeCounter({commit:t},e){t("setCounter",e)}}};f.use(st);const _=new st.Store({state:function(){return{authenticated:!1,authError:null,alerts:{info:null,type:null},currentUser:{},privateUser:{},accounts:[],isHeaderDropdownOpen:!1}},modules:{feed:an,settings:sn,subscription:nn,release_notes:dn,color_scheme:cn},mutations:{AuthUser(t){t.authenticated=!0,t.authError=null},SingOutUser(t){t.authenticated=!1,t.currentUser={},t.privateUser={},F&&F(null)},AuthError(t,e){t.authError=e},Alerts(t,e){t.alerts=e},CurrentUser(t,e){t.privateUser=e.private,t.currentUser=e.current,F&&F({email:t.currentUser.email})},PrivateUser(t,e){t.privateUser=e.user},CurrentUserName(t,e){t.currentUser.full_name=e},CurrentUserAvatar(t,e){t.currentUser.avatar_url=e},PrivateUserAvatar(t,e){t.privateUser.avatar_url=e},StripeAccount(t,e){t.currentUser.stripe_connect=e},changeHasNewNotifications(t,e){t.currentUser.has_new_notifications=e},changeHasNnreadChatMessages(t,e){t.currentUser.has_unread_chat_messages=e},changeDefaultWeightUnit(t,e){t.privateUser.weight=e},changeDefaultLengthUnit(t,e){t.privateUser.length=e},setAccounts(t,e){t.accounts=e},deleteAccount(t,e){const a=t.accounts.findIndex(i=>i.id==e);t.accounts.splice(a,1)},acceptAccount(t,e){const a=t.accounts.find(i=>i.id==e);a.invite_status="accepted"},setViewedPopups(t,e){t.currentUser.popup_storage=e},setCurrentUserCountry(t,e){t.currentUser.country=e},setCurrentUserCurrency(t,e){t.currentUser.currency=e},setCurrentUserPlatformCurrency(t,e){t.currentUser.platform_currency=e},setCurrentUserCustomURL(t,e){t.currentUser.custom_url=e},setCurrentUserSubscription(t,e){t.currentUser.subscription=e},setStripeCoachCustomerId(t,e){t.currentUser.stripe_coach_customer_id=e},setSocialLink(t,e){t.privateUser.landing_page[e.type]=e.url},setOnboardingChecklistHidden(t){t.currentUser.hide_checklist=!0},setOnboardingChecklistStepCompleted(t,e){var a,i;t.currentUser.check_list_info&&!((i=(a=t.currentUser.check_list_info)==null?void 0:a.completed)!=null&&i.includes("step"))&&t.currentUser.check_list_info.completed.push(e)},setHeaderDropdownStatus(t,e){t.isHeaderDropdownOpen=e},setTaxState(t,e){t.currentUser.tax_state=e}},actions:{getAppCurrentTheme({dispatch:t}){return t("color_scheme/fetchAppTheme",{},{root:!0})},getCurrentUserInfo({commit:t,dispatch:e}){return new Promise((a,i)=>{d.get("users/me").then(({data:s})=>{e("getAppCurrentTheme").finally(()=>{t("CurrentUser",s),t("AuthUser"),a()})}).catch(s=>{t("AuthError",s.data),i(s)})})},updateCurrentUserInfo({commit:t}){return new Promise((e,a)=>{d.get("users/me").then(({data:i})=>{t("CurrentUser",i),e()}).catch(i=>{t("AuthError",i.data),a(i)})})},signin({commit:t,dispatch:e},{email:a,password:i}){const s={email:a,password:i,client_id:"d0517fa4f15004110c85102f1fc01276ff4f3bc61b61e5c446b7c036784c03a2",client_secret:"eb5c98d3a8fe0e51101a5714683d6b3009b032e96ceb4ece0198f016bdb9bc04"};return new Promise((o,c)=>{d.post("users/sign_in",s).then(({data:u})=>{q(u.access_token,u.token_type,t),e("getAppCurrentTheme").finally(()=>{t("CurrentUser",u),o()})}).catch(u=>{var p,y;(y=(p=u==null?void 0:u.response)==null?void 0:p.data)!=null&&y.subdomain||m(u),c(u)})})},signup({commit:t,dispatch:e},a){const i={...a,client_id:"d0517fa4f15004110c85102f1fc01276ff4f3bc61b61e5c446b7c036784c03a2",client_secret:"eb5c98d3a8fe0e51101a5714683d6b3009b032e96ceb4ece0198f016bdb9bc04"};return new Promise((s,o)=>{d.post("users/sign_up",i).then(c=>{q(c.data.access_token,c.data.token_type,t),e("getAppCurrentTheme").finally(()=>{t("CurrentUser",c.data),localStorage.removeItem("role"),s()})}).catch(c=>{m(c),o()})})},signout(){return new Promise((t,e)=>{d.delete("users/sign_out").then(()=>{window.Intercom&&window.Intercom("shutdown"),Ss(),window.localStorage.removeItem("fitr_return_path"),window.localStorage.removeItem("isSubscriptionWarningHide"),window.localStorage.removeItem("utm_query"),window.location.replace("/"),t()}).catch(a=>{m(a),e()})})},confirmationUser({commit:t},{confirmation_token:e}){const a={confirmation_token:e};return new Promise((i,s)=>{d.post("users/confirm",a).then(o=>{t("Alerts",{info:o.data,type:"peace"}),i()}).catch(o=>{m(o),s()})})},resetPassword(t,{params:e}){return new Promise((a,i)=>{d.post("users/password",e).then(s=>{a(s)}).catch(s=>{m(s),i()})})},createNewPassword({commit:t,dispatch:e},{password:a,password_confirmation:i,reset_password_token:s}){const o={password:a,password_confirmation:i,reset_password_token:s,client_id:"d0517fa4f15004110c85102f1fc01276ff4f3bc61b61e5c446b7c036784c03a2",client_secret:"eb5c98d3a8fe0e51101a5714683d6b3009b032e96ceb4ece0198f016bdb9bc04"};return new Promise((c,u)=>{d.put("users/password",o).then(({data:p})=>{q(p.access_token,p.token_type,t),e("getAppCurrentTheme").finally(()=>{t("CurrentUser",{private:p.private,current:p.current}),c(p)})}).catch(p=>{m(p),u()})})},editPassword({commit:t},{password:e,password_confirmation:a,current_password:i}){const s={user:{password:e,password_confirmation:a,current_password:i}};return new Promise((o,c)=>{d.patch("users/password",s).then(()=>{t("Alerts",{info:{message:"Your password has been changed"},type:"congrats"}),o()}).catch(({response:u})=>{t("Alerts",{info:u.data,type:"warn"}),c()})})},editAvatar({commit:t},{isPrivateUser:e,avatar:a}){const i=e?"users/private_avatar":"users/avatar",s="user[avatar]",o=new FormData;return o.append(s,a),new Promise((c,u)=>{d.post(i,o,{headers:{"content-type":"multipart/form-data"}}).then(p=>{t("PrivateUserAvatar",p.data.private.avatar_url),t("CurrentUserAvatar",p.data.current.avatar_url),c()}).catch(p=>{m(p),u()})})},updateProfile({commit:t,getters:e},a){let i=this.state.currentUser,s={};return e.isUserCoach?s.landing_page_attributes={title:i.title,id:i.landing_page.id}:(s.first_name=i.first_name||"",s.last_name=i.last_name||"",s.country=i.country,s.currency=i.currency,a!=null&&a.birthdate?s.birthdate=a.birthdate:s.birthdate=i.birthdate||"",a!=null&&a.gender?s.gender=a.gender:s.gender=i.gender||""),new Promise((o,c)=>{d.post("users/me",s).then(u=>{t("CurrentUser",u.data);let p={message:"Saved Changes"};a!=null&&a.birthdate&&(p.message="You are ready to go!"),t("Alerts",{info:p,type:"congrats"}),o()}).catch(u=>{m(u),c()})})},updatePrivateProfile({commit:t,state:e},a){let i=e.privateUser,s={};return s.first_name=i.first_name||"",s.last_name=i.last_name||"",s.country=i.country,a!=null&&a.platform_currency?s.platform_currency=a.platform_currency:s.platform_currency=i.platform_currency||"",a!=null&&a.birthdate?s.birthdate=a.birthdate:s.birthdate=i.birthdate||"",a!=null&&a.gender?s.gender=a.gender:s.gender=i.gender||"",new Promise((o,c)=>{d.patch("users/private",{private:s}).then(u=>{t("PrivateUser",u.data),t("Alerts",{info:{message:"Saved Changes"},type:"congrats"}),o()}).catch(u=>{m(u),c()})})},setDefaultWeightUnit({commit:t},{weight:e}){return new Promise((a,i)=>{d.patch("users/private",{private:{weight:e}}).then(({data:s})=>{t("changeDefaultWeightUnit",s.user.weight),a()}).catch(s=>{i(s)})})},setDefaultLengthUnit({commit:t},{length:e}){return new Promise((a,i)=>{d.patch("users/private",{private:{length:e}}).then(({data:s})=>{t("changeDefaultLengthUnit",s.user.length),a()}).catch(s=>{i(s)})})},setSocialLink({commit:t},e){return d.patch("users/private",{private:{landing_page_attributes:{[e.type]:e.url}}}).then(({data:a})=>{e.url=a.user.landing_page[e.type],t("setSocialLink",e)})},makePopupViewed({commit:t},{name:e}){return d.patch("users/popup_storage",{popup_name:e}).then(({data:a})=>{t("setViewedPopups",a.popup_storage)})},getCoachAccounts({commit:t}){return d.get("accounts").then(({data:e})=>{t("setAccounts",e)})},deleteCoachAccount({commit:t},e){t("deleteAccount",e)},acceptCoachAccount({commit:t},e){t("acceptAccount",e)},hideOnboardingChecklist({commit:t}){return d.patch("check_list/hide_checklist").then(()=>{t("setOnboardingChecklistHidden")})},getTaxStateFromMe({commit:t,state:e}){return new Promise((a,i)=>{d.get("users/me").then(({data:s})=>{e.currentUser.tax_state!==s.current.tax_state?(t("setTaxState",s.current.tax_state),a(!0)):a(!1)}).catch(s=>{i(s)})})},updateTaxState({commit:t},e){d.post(`users/tax/${e?"on":"off"}`).then(({data:a})=>{t("setTaxState",a.tax_state)})}},getters:{currentUserId:t=>t.currentUser.id,privateUserId:t=>t.privateUser.id,accountKind:t=>t.currentUser.account_kind,isUserCoach:t=>t.currentUser.role=="coach",isCoachOverallAccount:(t,e)=>e.isUserCoach&&!t.currentUser.show_account,isCoachHasAccounts:t=>t.accounts.length>0,filteredAccounts:t=>t.accounts.filter(e=>!e.current_account),coachAccounts:t=>t.accounts,hasCoachAnotherAccounts:(t,e)=>{var a;return((a=e.filteredAccounts)==null?void 0:a.length)>0},isBusinessAccount:t=>dt(["gym","brand","team"],t.currentUser.account_kind),isBusinessOwner:t=>t.currentUser.account_role=="owner",isAccountOwner:t=>t.currentUser.is_account_owner,currentUserTitle:t=>t.currentUser.title||t.currentUser.full_name,isFinancialAviable:(t,e)=>e.isBusinessOwner,isZapierAccount:t=>t.currentUser.zapier_account,zapierCoachToken:t=>t.currentUser.zapier_coach_token,accountPublicRouteBase:(t,e)=>{const a=e["color_scheme/siteSubdomainName"],i=new URL("https://app.fitr.training");if(a){const{hostname:s}=i,o=s.split(".");o.length==3?o[0]=a:o.unshift(a),i.hostname=o.join(".")}return i},accountPublicRoute:(t,e)=>(a="main")=>{var i;if(e.isUserCoach){let s="public-page-short-link";a=="library"&&(s="public-page-short-link-plans");let o=e.accountKind=="private"?"c":e.accountKind.charAt(0),c=(i=t.currentUser)!=null&&i.custom_url?t.currentUser.custom_url:t.currentUser.id;return{name:s,params:{user_type:o,user_id:c}}}},accountPublicUrl:(t,e)=>(a="main")=>{if(e.isUserCoach){const i=g.resolve(e.accountPublicRoute(a));return new URL(i.href,e.accountPublicRouteBase).href}},stripeAccount:t=>t.currentUser.stripe_connect,stripeExternalAccount:(t,e)=>{if(e.stripeAccount)return e.stripeAccount.external_account},stripeAccountType:t=>t.currentUser.stripe_account_type,isCustomStripeAccount:(t,e)=>e.stripeAccountType==="custom",isStandardStripeAccount:(t,e)=>!e.isCustomStripeAccount,stripeVerificationFields:(t,e)=>e.stripeAccount.verification_fields?ae(e.stripeAccount.verification_fields,"external_account"):[],isStandardStripeAccountEnabled:(t,e)=>{var a;return(a=e.stripeAccount)==null?void 0:a.charges_enabled},stripeExternalAccountVerificationError:(t,e)=>{var a;return(a=e.stripeAccount)==null?void 0:a.verification_fields.includes("external_account")},stripeCoachCustomerId:t=>t.currentUser.stripe_coach_customer_id,defaultWeightUnit:t=>t.privateUser.weight,defaultLengthUnit:t=>t.privateUser.length,isUsaBased:t=>t.currentUser.country=="US",viewedPopups:t=>t.currentUser.popup_storage,hasAccountsNotifications:t=>t.accounts.some(e=>e.has_new_notifications||e.has_unread_chat_messages),isOnboardingChecklistHidden:t=>t.currentUser.hide_checklist,onboardingChecklistData:t=>t.currentUser.check_list_info,isAppOpenedAsWL(){const t=new URL("https://app.fitr.training"),e=window.location;return t.host!==e.host},hasHyrox:t=>t.currentUser.hyrox,isHeaderDropdownShowing:t=>t.isHeaderDropdownOpen,taxState:t=>t.currentUser.tax_state}}),un=()=>n(()=>import("./index-BWpQj5dO.js"),__vite__mapDeps([0,1,2,3,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])),pn=()=>n(()=>import("./index-C__6fxRZ.js"),__vite__mapDeps([59,1,2,3,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])),hn=()=>n(()=>import("./index-CKziz2ox.js"),__vite__mapDeps([60,2,3,1,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,61])),_n=()=>n(()=>import("./index-ZSVqVpRx.js"),__vite__mapDeps([62,1,32,3,2,63,64,65,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,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,66])),Ue=()=>n(()=>import("./index-CUAnvauG.js"),__vite__mapDeps([67,1,32,3,2,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,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])),mn=()=>n(()=>import("./index-Cn8a2iRC.js"),__vite__mapDeps([68,1,2,3,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])),fn=()=>n(()=>import("./index-CcOTunDN.js"),__vite__mapDeps([69,32,3,2,63,64,1,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,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,70])),vn=()=>n(()=>import("./index-yo3Pjf11.js"),__vite__mapDeps([71,32,3,2,1,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,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])),yn=()=>n(()=>import("./index-B19Ee4ji.js"),__vite__mapDeps([72,2,3,1,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])),bn=()=>n(()=>import("./index-BsdxwzrW.js"),__vite__mapDeps([73,2,3,1,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])),gn=()=>n(()=>import("./index-CLJb3z1B.js"),__vite__mapDeps([74,32,3,65,1,75,2,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,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,76])),wn=()=>n(()=>import("./index-DFgOT9s9.js"),__vite__mapDeps([77,1,2,3,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,78])),Cn=()=>n(()=>import("./index-DNCwH2oK.js"),__vite__mapDeps([79,1,2,3,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])),kn=()=>n(()=>import("./index-Czjo1kM-.js"),__vite__mapDeps([80,2,3,1,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])),Sn=[{path:"/onboarding",component:un,children:[{path:"",name:"onboarding",redirect:{name:"onboarding-signin"}},{path:"sign_in",name:"onboarding-signin",component:mn,meta:{publicPage:!0,hideFooter:!0}},{path:"forgot_password",name:"onboarding-forgot-password",component:fn,props:t=>({email:t.query.email}),meta:{publicPage:!0,hideFooter:!0}},{path:"reset_password",component:vn,name:"onboarding-reset-password",meta:{publicPage:!0,hideFooter:!0}},{path:"role",name:"onboarding-role-selection",component:pn,meta:{publicPage:!0,hideFooter:!0}},{path:"type",name:"onboarding-type-selection",component:hn,meta:{publicPage:!0,hideFooter:!0}},{path:"sign_up/:role",name:"onboarding-coaching-signup",component:_n,props:!0,meta:{publicPage:!0,hideFooter:!0},beforeEnter:(t,e,a)=>{t.params.role&&["coaching","standalone","team","invited","client"].indexOf(t.params.role)!==-1?a():a({name:"onboarding-role-selection",replace:!0})}},{path:"verify-information/:role",name:"onboarding-coaching-verify",component:gn,props:!0,meta:{hideFooter:!0,availableForBlocked:!0},beforeEnter:(t,e,a)=>{t.params.role&&["standalone","team","brand","gym"].indexOf(t.params.role)!==-1?a():a({name:"onboarding-role-selection",replace:!0})}},{path:"create/:type",name:"onboarding-business-create",component:Ue,props:!0,meta:{hideFooter:!0,availableForBlocked:!0},beforeEnter:(t,e,a)=>{t.params.type&&["team"].indexOf(t.params.type)!==-1?a():a({name:"onboarding-coaching-signup",params:{role:t.params.role},replace:!0})}},{path:"setup/:type",name:"onboarding-business-setup",component:Ue,props:t=>({type:t.params.type,isExistCreationFlow:!0}),meta:{hideFooter:!0,availableForBlocked:!0},beforeEnter:(t,e,a)=>{t.params.type&&["team"].indexOf(t.params.type)!==-1?a():a({name:"create-account",replace:!0})}},{path:"accept-invitation/:token",component:yn,props:!0,meta:{publicPage:!0,hideFooter:!0,availableForBlocked:!0},beforeEnter:(t,e,a)=>{_.state.authenticated?a({name:"feed_invites",replace:!0}):a()}},{path:"athlete-invitation/:token",component:bn,props:!0,meta:{publicPage:!0,hideFooter:!0},beforeEnter:(t,e,a)=>{_.state.authenticated?a({name:"user_my_plans",replace:!0}):a()}},{path:"/success",name:"success_page",component:wn,props:!0,meta:{publicPage:!1,hideFooter:!0,availableForBlocked:!0},beforeEnter:(t,e,a)=>{let i=_.state.currentUser.popup_storage;t.params.role=="invited"&&t.params.token&&(i=_.state.privateUser.popup_storage),i&&i.includes("sign-up-welcome-page")?a({name:"my_plans",params:{choose_program_type:!0},replace:!0}):a()}}]},{path:"/confirmation",meta:{publicPage:!0,hideFooter:!0},beforeEnter:(t,e,a)=>{t.query.confirmation_token&&_.dispatch({type:"confirmationUser",confirmation_token:t.query.confirmation_token}).then(()=>{a({name:"onboarding-signin",replace:!0})}).catch(()=>{a({name:"onboarding-signin",replace:!0})})}},{path:"/stripe-onboarding",name:"stripe-onboarding-success",component:Cn,props:t=>({source:t.query.source}),meta:{availableForBlocked:!0},beforeEnter:(t,e,a)=>{t.query.source&&["signup","settings"].indexOf(t.query.source)!==-1?a():a({name:"create-account",replace:!0})}},{path:"/stripe-onboarding/error",name:"stripe-onboarding-error",component:kn,props:t=>({source:t.query.source}),meta:{availableForBlocked:!0},beforeEnter:(t,e,a)=>{t.query.source&&["signup","settings"].indexOf(t.query.source)!==-1?a():a({name:"create-account",replace:!0})}},{path:"/user_type",redirect:{name:"onboarding-role-selection"},name:"user_type"},{path:"/sign_in",redirect:{name:"onboarding-signin"},name:"sign_in"},{path:"/sign_up/:role?",redirect:{name:"onboarding-coaching-signup"},name:"sign_up"},{path:"/forgot_password",redirect:{name:"onboarding-forgot-password"},name:"forgot_password"},{path:"/reset_password",redirect:{name:"onboarding-reset-password"},name:"reset_password"}],An={components:{AppHeader:I},data:()=>({})};var Pn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"wrap d-flex flex-column"},[a("app-header"),a("div",{staticClass:"content"},[a("router-view")],1)],1)},Tn=[],$n=l(An,Pn,Tn,!1,null,"7807e91d");const xn=$n.exports,In={data:()=>({})};var Rn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"container static-page"},[a("h1",[e._v("INTRODUCTION TO PRIVACY POLICY")]),a("p",[e._v("The aim of Our Privacy Policy is to clearly outline to You:")]),e._m(0),a("p",[e._v(" Inside this Privacy Policy We also identify which information is optional to provide to use Our service, and which information is critical. ")]),a("p",[e._v(" To use FITR service We have made it easy for You to view which information We will store, and You can change Your preferences at any time at within your account settings. You can delete your account at any time and you can unsubscribe from email communication via the ‘unsubscribe’ link at the bottom of each email. ")]),a("p",[e._v(" We use industry standard efforts to safeguard the confidentiality of Your personal identifiable information, such as firewalls and Secure Socket Layers where appropriate. ")]),a("p",[e._v(" We have separated the remainder of the Policy into the following sections: ")]),e._m(1),a("h2",[e._v("1. THE DATA WE COLLECT FOR OUR CORE (CRITICAL) SERVICE")]),a("p",[e._v(" FITR is an online health and fitness management tool where professionals can manage training plans sent to their clients. It is also a marketplace, where users can find and purchase training plans to follow. The full feature set for both parties can be see at www.fitr.training. ")]),a("p",[e._v(" We require certain information from You in order to run FITR service. The following information in the table below is deemed as critical to Our business, depending on how much You interact with Us (for example: We need more information from You if You purchase from Us, compared to if You simply sign up for an account). For avoidance of doubt, this information does not include instances where FITR may need to use Your data to comply with legal and/or regulatory purposes ")]),e._m(2),a("h3",[e._v("Other data we may collect")]),a("p",[e._v(" Technical information, including the Internet protocol (IP) address used to connect your computer to the Internet, your login information, browser type and version, time zone setting, GPS location, device, browser plug-in types and versions, operating system and platform. ")]),a("p",[e._v(" Information about your visit, including the full Uniform Resource Locators (URL) clickstream to, through and from our site (including date and time); products you viewed or searched for; page response times, download errors, length of visits to certain pages, page interaction information (such as scrolling, clicks, and mouse-overs), and methods used to browse away from the page. ")]),a("p",[e._v(" We may combine this information with information you give to us and information we collect about you. We may us this information and the combined information for the purposes set out above (depending on the types of information we receive). ")]),a("h2",[e._v("2. THE DATA WE SHARE WITH 3RD PARTIES")]),a("p",[e._v(" We do not sell or intend to share any of Your personal details to third parties, excluding instances and purposes listed in this section. ")]),a("p",[e._v(" We share some data with the following third parties in order for Us to carry out business, deliver a great customer service experience to You and improve Our business. As the service evolves We may add services to this list. ")]),a("p",[e._v(" Further information about 3rd parties that may store data about You (either anonymous or identifiable) about You can be found in Our Cookie Policy. ")]),e._m(3),a("p",[e._v(" We may provide further data to third parties not listed above, but before We do so We ensure that all data is anonymous meaning it cannot be identified as You. ")]),a("p",[e._v(" There are three reasons where we may share Your data with 3rd parties that we have not listed here: ")]),e._m(4),a("h2",[e._v(" 3. HOW WE MAY USE YOUR DATA FOR MARKETING PURPOSES AND ADDITIONAL DATA WE MAY REQUEST PERMISSION FOR. ")]),a("p",[e._v(" Part of the role of FITR team is to market Our products and services to enable more people to register with Our service. To do so We use a number of different 3rd parties to help Us with these initiatives. Those 3rd parties are listed in Section 2, and unless stated otherwise anonymised information about Your interactions with FITR is sent to these services. We see these anonymised transfers of data as critical to the running and future success of Our business and You cannot opt-out of them if You use FITR. ")]),a("p",[e._v(" In addition to the anonymised data we send to 3rd parties, We may ask permission from You to use extended data to help give You a better service. A better service may include (but is not limited to), ")]),e._m(5),a("p",[e._v(" For this We will ask You to opt-in to Our marketing initiatives; You will automatically be opted-out of these services when You join FITR. If at any stage You would like to opt in or out You can do so in Your account settings. ")]),a("p",[e._v(" The additional data We will request permission to use to send to 3rd parties is as follows: ")]),e._m(6),e._m(7),a("h2",[e._v("4. INFORMATION ABOUT KEEPING YOUR INFORMATION")]),a("p",[e._v(" We keep Your information for as long as it is seen necessary to uphold Our obligations to: deliver Your training plan order, keep Your historic training data, meet government regulations (for example: relating to accountancy) improve Our service to You, prevent fraud and for law enforcement purposes. ")]),a("p",[e._v(" If reasonably necessary or required to meet legal or regulatory requirements, resolve disputes, prevent fraud and abuse, or enforce Our terms and conditions, We may also keep hold of some of Your information as required, even after You have closed Your account, or it is no longer needed to provide the services to You. ")]),a("p",[e._v(" To give You a better understanding, we usually keep financial records (including information about orders & transactions) for 7 years. We will keep top-level information (for example relating to the total quantity of sales transacted in a year) for as long as We as a business deem it useful. ")]),a("h2",[e._v("5.YOUR RIGHTS OVER YOUR DATA")]),a("p",[e._v(" You have the following rights when it comes to Your personal information ")]),e._m(8),e._m(9),a("h4",[e._v("RIGHT TO BE FORGOTTEN")]),a("p",[e._v(" Users also have the legal right to request deletion of any personally identifiable information. We will adhere to this request where the deletion of information does not impact Our commitment to uphold any financial or legal requirements We must undertake to operate. ")]),a("p",[e._v(" We may require to keep anonymous training plan detail, such as the schedule of all a coach’s plans that have been purchased by other users. We do so, so those users that have purchased this information do not lose access to their historic data when You close your account. Your name, DOB and email will not be linked to this stored data. ")]),e._m(10),a("h4",[e._v("NO FEE USUALLY REQUIRED")]),a("p",[e._v(" We do not anticipate that You will have to pay a fee to access Your personal data (or to exercise any of the other rights). However, we may charge a reasonable fee if Your request is clearly unfounded, repetitive or excessive. Alternatively, we may refuse to comply with Your request in these circumstances. ")]),e._m(11),a("p",[e._v(" We may need to request specific information from You to help Us confirm Your identity and ensure Your right to access Your personal data (or to exercise any of Your other rights). This is a security measure to ensure that personal data is not disclosed to any person who has no right to receive it. ")]),a("h4",[e._v("WHERE WE STORE YOUR DATA")]),a("p",[e._v(' The data that we collect from you may be transferred to, and stored at, a destination outside the European Economic Area ("EEA"). It may also be processed by staff operating outside the EEA who work for us or for one of our suppliers. Such staff maybe engaged in, among other things, the fulfilment of your order, the processing of your payment details and the provision of support services. By submitting your personal data, you agree to this transfer, storing or processing. We will take all steps reasonably necessary to ensure that your data is treated securely and in accordance with this privacy policy. ')]),a("p",[e._v(" We always ensure that your data is only transferred in full accordance with UK data protection laws. In particular that means your data will only be transferred to a country that the European Commission has determined provides an adequate level of protection, or to service providers who have an agreement with us committing to the Model Contract Clauses, which are defined by the European Commission. ")]),e._m(12),a("p",[e._v(" All information you provide to us is stored on our secure servers. Where we have given you (or where you have chosen) a password which enables you to access certain parts of our site, you are responsible for keeping this password confidential. We ask you not to share a password with anyone. ")]),a("p",[e._v(" Unfortunately, the transmission of information via the internet is not completely secure. Although we will do our best to protect your personal data, we cannot guarantee the security of your data transmitted to our site; any transmission is at your own risk. Once we have received your information, we will use strict procedures and security features to try to prevent unauthorised access. ")]),a("h2",[e._v("6. Change to Our privacy policy")]),a("p",[e._v(" We will make changes to Our Privacy Policy from time to time. You will be notified about these changes when they occur, and we will let You know a summary of the key changes. We do suggest however You always take time to read any changes before continuing to use Our service. ")]),a("h2",[e._v("7. Cookies")]),a("p",[e._v(" We have a separate Cookie policy, this can be found "),a("router-link",{attrs:{to:"/pages/cookies_policy"}},[e._v(" here ")]),e._v(". ")],1)])},En=[function(){var t=this,e=t._self._c;return e("ul",[e("li",[t._v(" what data We/Us/Our (Libertatum Applications Limited – trading as FITR) will collect at different times when You use Our service; ")]),e("li",[t._v("how We may use that data;")]),e("li",[t._v("how long We may store that data;")]),e("li",[t._v(" how You/Your (the human user of the website or service) may opt-out of Us using or storing that data; ")]),e("li",[t._v(" and where We may send that data (outside of Flubit) for Us to operate Our service (both critical use and optional use). ")])])},function(){var t=this,e=t._self._c;return e("ol",[e("li",[t._v("The data We collect for Our core (critical) service")]),e("li",[t._v("The data We share with 3rd parties")]),e("li",[t._v(" How We may use Your data for marketing purposes and additional data We may request permission for ")]),e("li",[t._v("Information about storing Your information")]),e("li",[t._v("Your rights over Your data")]),e("li",[t._v("Future changes to Our privacy policy")])])},function(){var t=this,e=t._self._c;return e("table",{staticClass:"table table-striped"},[e("thead",[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("Information We Use")]),e("th",{attrs:{scope:"col"}},[t._v("How & Why We may use the data provided")]),e("th",{attrs:{scope:"col"}},[t._v("When does this become critical?")])])]),e("tbody",[e("tr",[e("td",[t._v("Email")]),e("td",[e("p",[t._v("To be able to log into FITR")]),e("p",[t._v(" To contact You if there if there are notifications on your account, for example if you have a new client. ")]),e("p",[t._v(" Customer service may use this to verify Your identity and assist You ")]),e("p",[t._v("Fraud detection and prevention against You or Us.")]),e("p",[t._v("Account verification purposes")])]),e("td",[t._v("When You sign up to the service.")])]),e("tr",[e("td",[t._v("Your Full Name")]),e("td",[e("p",[t._v(" To allow You to be found by other users on the platform, for example to find your account and see the plans you have for sale. ")]),e("p",[t._v(" Customer service may use this to verify Your identity and assist You ")]),e("p",[t._v("Fraud detection and prevention against You or Us.")])]),e("td",[t._v("When You sign up to the service.")])]),e("tr",[e("td",[t._v("Your Date of Birth")]),e("td",[e("p",[t._v("To ensure you are of legal age to use FITR (13+).")]),e("p",[t._v("Fraud detection and prevention against You or Us.")])]),e("td",[t._v("When You sign up to the service.")])]),e("tr",[e("td",[t._v("Product purchase details and history")]),e("td",[e("p",[t._v(" To allow coach accounts on FITR see their trading history via their ‘Statistics’ tab, e.g. to see how many people are signed up to one of their training plans. ")]),e("p",[t._v("For accounts and regulation reasons.")])]),e("td",[t._v(" When You make a purchase, We will need to record this data for future actions relating to customer service and accountancy. ")])]),e("tr",[e("td",[t._v("Credit card information")]),e("td",[e("p",[t._v(" We do not keep a record of Your credit card information, We use a secure 3rd-party service (Stripe) to process Your payment for Your order on Our service. ")]),e("p",[t._v(" Your payment information is tokenised by this 3rd party service which allows Us to issue You a refund should We need to and allow You check out faster if You are logged in to flubit. ")])]),e("td",[e("p",[t._v(" When You make an order, so we can take payment and make actions in the future (for example: refunds). ")]),e("p",[t._v("When You receive funds from selling Your training plans.")])])]),e("tr",[e("td",[t._v("Anonymous Aggregate data")]),e("td",[e("p",[t._v(" To create internal reports, test Our IT systems, research, data analysis, improving Our site, building & developing Our Website or developing new products or services. ")]),e("p",[t._v(" We only use and share this information with third parties when it is anonymous i.e. without identifying information ")])]),e("td",[t._v("We use anonymous aggregated data at all times on Our service.")])])])])},function(){var t=this,e=t._self._c;return e("table",{staticClass:"table table-striped"},[e("thead",[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("3rd Party")]),e("th",{attrs:{scope:"col"}},[t._v("URL")]),e("th",{attrs:{scope:"col"}},[t._v("Why we use this service")])])]),e("tbody",[e("tr",[e("td",[t._v("Google Analytics")]),e("td",[e("a",{attrs:{href:"https://analytics.google.com/"}},[t._v("https://analytics.google.com")])]),e("td",[t._v(" We use Google Analytics to track anonymous data about Our website and service usage. Google collects data via a cookie on Our website. ")])]),e("tr",[e("td",[t._v("Stripe")]),e("td",[e("a",{attrs:{href:"https://stripe.com/"}},[t._v("https://stripe.com/")])]),e("td",[t._v(" Stripe is a payment processor who stores and manages Our online transactions. We will send them all information relating to payment and order details You provide. ")])]),e("tr",[e("td",[t._v("Mailchimp")]),e("td",[e("a",{attrs:{href:"https://mailchimp.com"}},[t._v("https://mailchimp.com")])]),e("td",[t._v(" Instiller acts as Our newsletter/mailing list provider. We send Instiller all the information we need to process Our email communication on Flubit.com ")])]),e("tr",[e("td",[t._v(" Facebook"),e("br"),t._v(" Instagram"),e("br"),t._v(" Twitter ")]),e("td",[e("a",{attrs:{href:"https://facebook.com"}},[t._v("https://facebook.com")]),e("br"),e("a",{attrs:{href:"https://instagram.com"}},[t._v("https://instagram.com")]),e("br"),e("a",{attrs:{href:"https://twitter.com"}},[t._v("https://twitter.com")]),e("br")]),e("td",[t._v(" We use Our social channels to feed organic information about FITR Training and also, where permission is granted (see section 3) for multiple format targeting and re-targeting campaigns. Facebook targets its own users, we also send cookie data for the remarketing and basket abandonment where permission is granted. ")])])])])},function(){var t=this,e=t._self._c;return e("ul",[e("li",[t._v(" Professional Advisers and Investors: We may also share Your data with professional advisers such as Our lawyers and insurers to manage risks and legal claims, and/or as part of Our relationship and obligations to Our investor organisations. This is in Our legitimate interests. ")]),e("li",[t._v(" Group: It is possible we could sell Our business to a third party or re-organise Our business or become insolvent. In that scenario, Our database of customers is one of the biggest parts of that business and so we would need to share it with the third-party buyer and their advisers. This is in the legitimate interests of selling Our business. ")]),e("li",[t._v(" Law Enforcement/Legal Compliance: We will cooperate with all third parties to enforce their intellectual property or other rights. We will also cooperate with law enforcement requests from within or outside Your country of residence. This may include disclosing Your personal information to government or law enforcement agencies, or private parties, when we have a good faith belief that disclosure is required by law or when we, in Our discretion, believe that disclosure is necessary to protect Our legal rights, or those of third parties and/or to comply with a judicial proceeding, court order, fraud reduction or legal process served on Us. In such cases, we may raise or waive any legal objection or right available to Us. These uses of Your data are in Our legitimate interests of protecting Our business security. We may also use Your data and share it with the recipients listed in this Privacy Policy for the purpose of complying with Our legal obligations. ")])])},function(){var t=this,e=t._self._c;return e("ul",[e("li",[t._v(" the ability for Us to personalise Our email communication to You based on identifiable information (e.g. name, DOB); ")]),e("li",[t._v(" whilst browsing FITR, having Us push relevant deals and information to You based on Your specific interactions with the website. ")])])},function(){var t=this,e=t._self._c;return e("table",{staticClass:"table table-striped"},[e("thead",[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("Data provided by You")]),e("th",{attrs:{scope:"col"}},[t._v("Use")])])]),e("tbody",[e("tr",[e("td",[t._v("Email address")]),e("td",[t._v("To identify You on 3rd party services and internally.")])]),e("tr",[e("td",[t._v("Name")]),e("td",[t._v(" To improve user experience with email and advertising personalisation and re-targeting. ")])]),e("tr",[e("td",[t._v("Date of birth")]),e("td",[t._v(" Helps Us identify product deals more relevant to You based on purchases of other people in Your age demographic. ")])]),e("tr",[e("td",[t._v("Gender")]),e("td",[t._v(" Helps Us identify product deals more relevant to You, and improve service based on learnings of others similar to You. ")])])])])},function(){var t=this,e=t._self._c;return e("table",{staticClass:"table table-striped"},[e("thead",[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("Other data we use")]),e("th",{attrs:{scope:"col"}},[t._v("Use")])])]),e("tbody",[e("tr",[e("td",[t._v("Purchase data")]),e("td",[t._v("Helps Us identify product deals more relevant to You.")])]),e("tr",[e("td",[t._v("Email engagement data")]),e("td",[t._v("For engagement analysis and optimisation.")])])])])},function(){var t=this,e=t._self._c;return e("ul",[e("li",[t._v(" The right to be informed about how We use and store Your information ")]),e("li",[t._v("The right to access the personal information We store about You")]),e("li",[t._v(" The right to request the correction of inaccurate information, such as through the My Account section on Our Website ")]),e("li",[t._v(" The right to opt-out of non-critical marketing activities on Flubit ")]),e("li",[t._v("The right to complain to Your data protection regulator")])])},function(){var t=this,e=t._self._c;return e("p",[t._v(" If You want to exercise Your rights, or have any questions or concerns please contact Us at "),e("a",{attrs:{href:"mailto:support@fitr.training"}},[t._v("support@fitr.training")]),t._v(". ")])},function(){var t=this,e=t._self._c;return e("p",[t._v(" Requests must be responded to within 30 days, however requests which are overly complicated may take longer to process. To make any of the above requests, please contact Our dedicated customer support team at "),e("a",{attrs:{href:"mailto:support@fitr.training"}},[t._v("support@fitr.training")])])},function(){var t=this,e=t._self._c;return e("p",[e("i",[t._v("We may need further data from You")])])},function(){var t=this,e=t._self._c;return e("p",[t._v(" Libertatum Applications Ltd and your data is hosted in the United States on Amazon Web Services (AWS). Amazon take physical and network security seriously. You can read more about the specifics of their approach at "),e("a",{attrs:{href:"https://aws.amazon.com/security/"}},[t._v("https://aws.amazon.com/security")]),t._v(". We have signed an agreement with AWS that enables transfer of personal data to the US and commits to the Model Contract Clauses, which are defined by the European Commission in accordance with UK data protection laws. ")])}],Dn=l(In,Rn,En,!1,null,"a5facdd7");const Ye=Dn.exports,Fn={data:()=>({})};var Mn=function(){var e=this;return e._self._c,e._m(0)},Ln=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container static-page"},[e("h1",[t._v("TERMS AND CONDITIONS")]),e("p",[t._v(" FITR is a consumer marketplace for health and fitness coaches, brands and individuals. ")]),e("p",[t._v(" Libertatum Applications Limited is a privately owned company registered in England & Wales, Company No: 09759426 ")]),e("p",[t._v(" You may only use FITR.training under these Terms and Conditions and by signing up for a FITR account; you are deemed to accept these terms and conditions as amended from time to time. ")]),e("p",[t._v(" While every effort has been made to cover all elements of the FITR service within these Terms and Conditions it is also expected that standard e-commerce practices must be followed and each individual/ company is expected to act in accordance with UK and/or EU law. ")]),e("p",[t._v(" If you have any questions about this User Agreement, please contact Customer Support. ")]),e("p",[t._v(" You may make enquiries about these Terms and Conditions by e-mailing us on support@fitr.training. ")]),e("p",[t._v(" Unless the context requires otherwise, the following terms shall have the following meanings in these Terms & Conditions: ")]),e("ul",[e("li",[e("strong",[t._v('"Account/Account holder/User"')]),t._v(" means any person, persons or company who have signed up to use, access or explore FITR. ")]),e("li",[e("strong",[t._v('"Categories/Departments"')]),t._v(" means sections of the Site separated to sort Services by structure. ")]),e("li",[e("strong",[t._v('"Content"')]),t._v(" means information on the Site or FITR.")]),e("li",[e("strong",[t._v('"FITR"')]),t._v(" means including our parent, subsidiaries, affiliates, trading names, officers, directors, agents and employees and any sub-service for example: SKU Cloud and all domains. ")]),e("li",[e("strong",[t._v('"FITR Buyer"')]),t._v(" means the Account holder who aims to purchase products by using the Service. ")]),e("li",[e("strong",[t._v('"FITR Offer/Offer"')]),t._v(" means the purchasing process by which the Service occurs on FITR. ")]),e("li",[e("strong",[t._v('"Identity"')]),t._v(" means information relating to an individual given to prove identity. ")]),e("li",[e("strong",[t._v('"Product"')]),t._v(" means the advertised for sale item on FITR. ")]),e("li",[e("strong",[t._v('"Seller/Retailer"')]),t._v(" means the account holder who aims to sell training plans by using the Service. ")]),e("li",[e("strong",[t._v('"Service"')]),t._v(" means the advertised and intended operations of FITR. ")]),e("li",[e("strong",[t._v('"Site"')]),t._v(" means the website and online presence of FITR. ")]),e("li",[e("strong",[t._v('"Spam"')]),t._v(" means unwanted/unsolicited e-mail.")]),e("li",[e("strong",[t._v('"Staff member"')]),t._v(" means an employee or contractor for FITR. ")]),e("li",[e("strong",[t._v('"We/Us"')]),t._v(" means FITR.")]),e("li",[e("strong",[t._v('"You"')]),t._v(" means the individual or person acting on behalf of a company. ")])]),e("p",[t._v(" Clause, schedule and paragraph headings are for ease of reference only and do not affect the interpretation or construction of this Agreement. ")]),e("p",[t._v(" A person includes a natural person, corporate or unincorporated body (whether or not having separate legal personality). ")]),e("p",[t._v(" The Schedules form part of this Agreement and shall have effect as if set out in full in the body of this Agreement and any reference to this Agreement includes its Schedules. ")]),e("p",[t._v("Words in the singular shall include the plural and vice versa.")]),e("p",[t._v(" A reference to a statute or statutory provision is a reference to it as it is in force for the time being, taking account of any amendment, extension, or re-enactment and includes any subordinate legislation for the time being in force made under it. ")]),e("p",[t._v(" A reference to writing or written does not include faxes or e-mail, unless specified herein. ")]),e("p",[t._v(" Where the words include(s), including or in particular are used in this Agreement, they are deemed to have the words without limitation following them. ")]),e("p",[t._v(" Where the context permits, the words other and otherwise are illustrative and shall not limit the sense of the words preceding them. ")]),e("p",[t._v(" Any obligation in this Agreement on a person not to do something includes an obligation not to agree, allow, permit or acquiesce in that thing being done. ")]),e("p",[t._v(" References to Clauses, Sub-clauses and Schedules are to the Clauses and Schedules of this Agreement. ")]),e("h3",[t._v("ELIGIBILITY")]),e("p",[t._v("In using the Service you must at all times:")]),e("ul",[e("li",[t._v("Be able to enter into a legal contract.")]),e("li",[t._v("Be at least thirteen (13) years of age.")]),e("li",[t._v("Only hold one FITR account at any time.")]),e("li",[t._v(" Only use a valid e-mail address, which does not have a set expiry time/window. ")]),e("li",[t._v(" Ensure that all information provided is true, accurate and not misleading at the time of writing. ")])]),e("p",[t._v("In using the Service you must not at any time:")]),e("ul",[e("li",[t._v("Use someone else’s FITR account.")]),e("li",[t._v("Gain access to another FITR account.")]),e("li",[t._v("Buy or sell any FITR account or account information.")]),e("li",[t._v("Impersonate another FITR user or FITR account holder")]),e("li",[t._v("Try to mislead or trick FITR in order to gain any advantage.")]),e("li",[t._v(" Post inaccurate, false, misleading, defamatory or libellous Content. ")]),e("li",[t._v(" Post information and/or Content onto the Site that may harm FITR or any of its account holders, employees, consultants, officers, directors, shareholders, agents or any member of the public or any other person whomsoever or whatsoever. ")]),e("li",[t._v(" Manipulate or gain advantages over other FITR users and/or account holders in a manner not intended by the services guidelines and/or help tools. ")]),e("li",[t._v("Resell items bought on FITR for business purposes.")]),e("li",[t._v("Lie or send misinformation regarding the delivery of any item.")])]),e("h3",[t._v("FITR's RIGHTS")]),e("p",[t._v(" All information and Content on the Site remains the copyright and trademark (registered or unregistered) of FITR. You may not copy, modify or distribute this content unless offered as a service. ")]),e("p",[t._v(" The information and/or content on the Site is the property of FITR and, unless offered as a Service, users and/or account holders are not permitted to distribute, download, store, spam or abuse any data obtained or gleaned from the Site. ")]),e("p",[t._v("FITR may at any time without notice to you:")]),e("ul",[e("li",[t._v(" Terminate, delay, suspend, alter or completely remove the Service or any part thereof. ")]),e("li",[t._v(" Remove offensive, derogatory and/or abusive Content and close the account of any account holder reasonably suspected of producing, uploading such Content. ")]),e("li",[t._v(" Interrupt or delay the Service or any part thereof for such time as is necessary and for any reason related to the business operations of FITR. ")]),e("li",[t._v(" Take technical and/or legal steps to remove any user and/or account holder entirely from the Site if, in its reasonable belief, the user/account holder is or has engaged in activities contrary to any of these Terms and Conditions. ")])]),e("p",[t._v(" FITR is not responsible for any loss any user or account holder may incur as a result of using the Service. ")]),e("p",[t._v(" FITR has the right to use any Content and/or information submitted to the Site for any purpose including but not limited to, publicity, marketing, service improvements, including use on 3rd party applications. ")]),e("h3",[t._v("SPAM AND UNSOLICITED MESSAGES")]),e("p",[t._v(" FITR will only send out account information e-mails to users and/or account holders who have agreed to receive such e-mails. ")]),e("p",[t._v(" Promotions, Updates, Changes, Advertising and Service updates, are not regarded as Spam. ")]),e("p",[t._v(" No account holder may use data obtained or gleaned from the Site to send out e-mails that do not directly relate to the Service. ")]),e("p",[t._v(" Any services on FITR that allow users to communicate are offered in good faith with an understanding that any communications will be good natured and sent with good reason. We will not tolerate communication that has seemingly no reason and/or is an advertisement for a third party service/product. ")]),e("p",[t._v(" Any communication or data transferred over the Site may be scanned, filtered and monitored. You are responsible for any communication or actions from your FITR account. ")]),e("p",[t._v(" FITR will cooperate with any regulatory and/or law enforcement agency, from any country where necessary to provide or hand over information that is lawfully requested. ")]),e("h3",[t._v("ABUSE OF FITR SERVICE AND INTERFACE")]),e("p",[t._v(" While we will make every effort to remove out of date information from the Site, we can accept no responsibility for any information on any page (including ‘content’ pages) that is not accurate or is out of date. ")]),e("p",[t._v(" You agree (as a user or account holder) that you will not, in a group or by yourself, authorise, employ, lease, knowingly allow or solicit: ")]),e("ul",[e("li",[t._v("Any robot, spider or other automated means to access FITR.")]),e("li",[t._v(" Any service (free or paid for) that automates interactions with the FITR services that are intended for genuine human involvement. ")]),e("li",[t._v(" Any action that imposes unreasonable or disproportionate loads on our technical infrastructure; we hold the authority to determine and define this action. ")]),e("li",[t._v(" Any action that removes, modifies or deletes any data from the FITR servers outside intended means to do so by the service options. ")]),e("li",[t._v(" Any actions that copy, reproduce, modify, create derivative works from, distribute or publicly display any content from FITR without express permission. ")]),e("li",[t._v(" Any unauthorised 3rd party tool that interferes (actual or attempted) with the service, and reduces or hinders use to yourself or any other users. ")]),e("li",[t._v(" Any activity that can or tries to bypass any security measures we may use to prevent or restrict access to the Site. ")])]),e("h3",[t._v("GENERAL ACCOUNT HOLDER INFORMATION")]),e("p",[t._v(" The Site allows users to share personal information with us and with other users. ")]),e("p",[t._v(" FITR will use its reasonable endeavours to keep your personal data private and secure. ")]),e("p",[t._v(" FITR accepts no liability for any form of obtrusive, illegal, unintended, hacked activity that ultimately leads to the release of personal data. ")]),e("p",[t._v(" You may at times be shown the information of other users who FITR believe share similar interests, have been involved in the same actions as yourself, or may have reason to be grouped together. While every effort is made to keep this sharing as targeted as possible, some users may abuse the system or FITR may interpret inputted information incorrectly. For this reason FITR can take no liability for how this information is shared correctly or incorrectly. ")]),e("p",[t._v(" FITR is unable to fully safeguard or control how other account holders may use your information and for this reason we encourage you to evaluate the information you provide to the Site and understand, before submitting, how your data will be used. In return we expect you to respect other users data and treat it how you would treat your own. ")]),e("h3",[t._v("CHARGES FROM FITR")]),e("p",[t._v(" For the UK market, FITR operates in Great British Pounds. Any charges from FITR will be made visible on the Site before any payment is taken (this may not include agreed recurring payments). There are various services where a fee may apply and each service clearly lists how this fee is applied. You will be responsible for any additional taxes or any other charges that occur from using the Service. ")]),e("p",[t._v(" Please see the appropriate section within these Terms & Conditions relating to payments and/or fee charges for your desired activity with FITR. ")]),e("h3",[t._v("USE OF ALL ACCOUNT CONTENT")]),e("p",[t._v(" By uploading, adding or submitting content to the Site, you grant us a non-exclusive, worldwide, perpetual, irrevocable, royalty-free, right to exercise any and all copyright, publicity, trade marks, database rights and intellectual property rights you have in the Content, in any media known now or in the future. In addition, you waive all moral rights you have in the Content to the fullest extent permitted by law. ")]),e("p",[t._v(" FITR will not be held responsible for any inaccuracies in our search results or listed data. You will also remain responsible for any data submitted to FITR and must ensure that you alter, amend or delete any information that is no longer relevant. ")]),e("p",[t._v(" You agree not to post, upload or supply in any way any Content (or links to content) that: ")]),e("ul",[e("li",[t._v(" Is obscene, fraudulent, indecent, discourteous, racially offensive or abusive; ")]),e("li",[t._v("defames, abuses, harasses or threatens others;")]),e("li",[t._v(" contains any viruses, Trojan horses, worms, time bombs, cancelbots, or other disabling devices or other harmful component intended to damage, detrimentally interfere with, surreptitiously intercept or expropriate any system, data or personal information; ")]),e("li",[t._v("advocates or encourages any illegal activity;")]),e("li",[t._v(" violates the privacy of individuals, including other users of the Site; or ")]),e("li",[t._v(" violates any applicable local, state, national, or international law ")])]),e("h3",[t._v("GENERAL LIABILITY/INDEMNITY UNDERSTANDING")]),e("p",[t._v(" In addition, and not replacing any other release from and/or limitation of liability under these Terms & Conditions, FITR will not be liable for: ")]),e("ul",[e("li",[t._v(" Any actions by users or account holders (including information posted, uploaded, items listed, sold or bought) that do not represent the Service ")]),e("li",[t._v(" Any actions by users or account holders which are in breach of any code of conduct or guidelines issued by us at any time. ")]),e("li",[t._v("Any fraudulent items sold via the Service.")]),e("li",[t._v(" Any review, statistic or calculation that is not factually representative. ")]),e("li",[t._v("Any 3rd party service (e.g. payment) where FITR has no control.")]),e("li",[t._v(" Any sale and purchase conducted through the Site where the purchaser is another user or 3rd party. ")]),e("li",[t._v("Any falsity in user-provided account information.")]),e("li",[t._v(" Any business losses, such as loss of data, revenue, opportunity, reputation, goodwill, profits, or business interruption or for any losses which are not reasonably foreseeable by us arising, directly or indirectly, out of your use of or your inability to use Services. ")])]),e("p",[t._v(" Any failure on FITR’s behalf to act immediately or in reasonable time to a breach by you or others does not waive our right to act with respect to subsequent or similar breaches. ")]),e("p",[t._v(" Regardless of the above list, if we are found to be liable, our liability to you or to any third party is limited to the lesser of (a) Fees and Services you paid to us in the 12 months prior to the action, giving rise to the liability, and (b) £100. ")]),e("p",[t._v(" Some jurisdictions do not allow the disclaimer of warranties or exclusion of damages, so such disclaimers and exclusions may not apply to you. ")]),e("p",[t._v(" Nothing in these Terms & Conditions shall limit or exclude our liability for fraudulent misrepresentation, for death or personal injury resulting from our negligence or the negligence of our agents or employees or for any other liability that cannot be limited or excluded by law. ")]),e("h3",[t._v("DATA PROTECTION")]),e("p",[t._v(" Your personal data and privacy is important to FITR. Please see our Privacy Policy that forms part of these Terms & Conditions. ")]),e("h3",[t._v("ADVERTISEMENTS")]),e("p",[t._v(" While many services and results on FITR are formed ‘organically’, we may at any time and at our discretion alter elements of the Site to benefit companies or individuals who have purchased preferential rights to gain additional/favoured exposure. ")]),e("p",[t._v("FITR may place any form of advertisements at any place on the Site.")]),e("p",[t._v(" To the extent reasonably practicable, we may indicate on the Site which goods and services are advertisements for any promotion that falls outside the Service. You are free at any time to select or click on these advertisements at your free will. ")]),e("h3",[t._v("LINKS TO AND FROM OTHER WEBSITES")]),e("p",[t._v(" Some services on FITR have a high proportion of external links to third party websites over which we have no affiliation or control regarding their content. ")]),e("p",[t._v(" Third party websites are linked to the Site to provide information and are intended to be for your convenience. While every effort has been made to guide content posters (account holders) as to the correct information to link to, we have no control over and do not accept any responsibility and/or liability for any content, data or other elements you may encounter on any third party websites. ")]),e("p",[t._v(" FITR may become integrated closely with various social networking websites (such as Facebook) and we similarly do not accept any responsibility and/or liability for any loss or damage that may arise from your use of any social networking website whether such use is through or in conjunction with the Site or not. ")]),e("p",[t._v(" All users and/or account holders are deemed to accept and understand that access to any third party websites is entirely at their own risk. ")]),e("h3",[t._v("RELEASE")]),e("p",[t._v(" We understand that due to the social nature of the Service your involvement with other users and/or account holders may extend beyond the Service and may extend outside the platform FITR provides. For this reason you release FITR from any claims, demands and damages of every kind associated with or arising out of or in connection with such extended use and/or involvement. ")]),e("p",[t._v(" You hereby agree and undertake to compensate and/or indemnify FITR for any misuse or abuse that breaches these Terms & Conditions or your use/misuse of the Site which results in any losses, damages, fines, compensation or costs (including reasonable legal fees). ")]),e("p",[t._v(" Use of the Site does not at any time render you the partner, agent, joint venture, employee-employer, franchise-franchisee of FITR. ")]),e("h4",[t._v("Notices")]),e("p",[t._v(" Any legal notices can be validly served on FITR only in original written form and sent by registered mail: ")]),e("p",[t._v(" LEGAL NOTICE - The Chief Executive Officer "),e("br"),t._v(" Libertatum Applications Limited (Trading as FITR) "),e("br"),t._v(" 20 Angle Lane Shepreth "),e("br"),t._v(" SG8 6QJ ")]),e("p",[t._v(" Any response may be made by return post if suitable details are given for us to process in this way. ")]),e("p",[t._v(" Alternatively, we may serve you any notice by registered mail to the address you provided during the registration process or a card billing address registered in your name. ")]),e("p",[t._v(" Notices sent to either party by Royal Mail registered/tracked mail shall be deemed to have been received by that party three days after the date of mailing OR after the tracking notification shows it has been received. ")]),e("h3",[t._v("THIRD PARTY RIGHTS")]),e("p",[t._v(" A person who is not a party to these Terms & Conditions has no right under the Contracts (Rights of Third Parties) Act 1999 (“Act”) to enforce any term of them but this does not affect any right or remedy of a third party specified in them or which exists or is available apart from the Act. ")]),e("h3",[t._v("GOVERNING LAW")]),e("p",[t._v(" These Terms & Conditions shall be construed in accordance with the laws of England and Wales including any dispute arising out of in connection with them. ")]),e("p",[t._v(" Any dispute arising out of these Terms & Conditions shall be subject to the exclusive jurisdiction of the courts of England. ")]),e("h2",[t._v("Terms of use")]),e("h3",[t._v("USE AS A “FITR USERS”:")]),e("p",[e("strong",[t._v("Valid E-mail Address:")]),t._v(" Every account registered on the Site must have a valid and genuine e-mail address and/or 3rd Party account that links to a valid e-mail address of your own. Any accounts that have been registered without a valid e-mail will be terminated without notice. It is usual practice for FITR to require verification by way of e-mail for any new e-mail account and/or change of e-mail. ")]),e("p",[e("strong",[t._v("Closing Accounts:")]),t._v(" We have the right at all times to close an account at any time, with no notice and with no obligation to fulfil any account order or recover any financial loss on your behalf howsoever suffered. ")]),e("p",[e("strong",[t._v("Multiple logins:")]),t._v(" While we accept people may use multiple logins by way of division between personal/business and other uses on the Site, we reserve the right to take action across all your accounts if required. ")]),e("h3",[t._v("FITR USERS PROTECTION & RESOLUTION GUIDELINES")]),e("p",[t._v(" While FITR will make every effort to create a fair, peaceful community, we rely on our user and/or account holders to make us aware of misconduct or additional issues related to any of the Service from any users and/or account holders. ")]),e("p",[t._v(" In order to achieve the safest environment for our FITR Users we have created a set of FITR Users “Resolution Guidelines” which will help resolve disputes with Sellers and other account holders: ")]),e("h3",[t._v("RESOLUTION GUIDELINES:")]),e("p",[t._v(" You should adopt normal internet-advised security measures before buying online. ")]),e("p",[t._v(" You should always keep in mind that despite efforts, FITR may not be able to fully vet every Seller and you should therefore exercise due care when buying through the Site. ")]),e("p",[t._v(" Your point of contact at all times regarding a Offer, before and after any sale is the Seller. The Seller will provide sufficient contact information to ask questions or seek further advice. Where possible make sure you receive any advice in writing. ")]),e("p",[t._v(" Any request for a refund, exchange or dispute should first be placed through the Seller. If this is not resolved to your satisfaction it should then be placed via FITR customer services who have the final say on the matter with regards to the Service we offer. If you are not happy with the results you always have the option to discuss the matter with your payment provider (e.g. credit card etc.). ")]),e("h3",[t._v("PAYMENT")]),e("p",[t._v(" We use Stripe for all our transaction processing as it is a highly recognised, reputable and reliable system. The payment provider may change at any time without notice. ")]),e("p",[t._v(" Once you choose to purchase a FITR offer and click pay, you will be taken through the payment process managed by Stripe, where you should follow the online instructions. ")]),e("h3",[t._v("AUTHORISE AND CAPTURE")]),e("p",[t._v(" Authorise and Capture of payment may occur in different ways. By standard Authorise and Capture happens instantly on a purchase on FITR platform, however there are times when we may separate this process. When we authorise your payment we request clearance from your provider for the money to be made available to us. During this time of authorisation although no payment will be taken from your account the money may not be available for you to spend (the assigned amount) outside FITR environment. If we do not receive authorisation from you, or authorisation is rejected at any stage we have the unqualified right to cancel your participation in the relevant Offer and you will have no further participation from the point of cancel. Once authorisation is confirmed you have fully committed to your purchase and cannot reverse this action. ")]),e("p",[t._v(" Capturing payment is the process when we take money from your account. Generally we will do this when the when you purchase the Offer. However we may capture payment at a later date if you are purchasing a service or product from FITR that requires a delayed payment. ")]),e("p",[t._v(" We understand that our FITR Users are the key to our business; therefore security is of paramount importance and with Stripe’s strict controls we can be sure our high standards are enforced. Despite this, FITR accepts no responsibility and/or liability for any problems, fees, security issues, losses, damages arising in connection with or out of any 3rd Party API, Service or application. ")]),e("h3",[t._v("REFUND POLICY FOR BUYERS")]),e("p",[t._v(" At all times your first point of contact is the Seller. The Seller will have the ability to offer and process refunds at its discretion, in accordance with the agreement you have signed up to by accepting the Seller’s terms & conditions. Whilst FITR will endeavour to help with any situation, FITR does not have any obligation in regards to the manner in which it decides to become involved with decisions between FITR Users and Sellers. ")]),e("p",[t._v(" At all times if there is an inconsistency between these Terms & Conditions and the Seller’s terms & conditions which affects the use of the Site or your activities on the Site, these Terms & Conditions are agree to take precedence and you agree that these Terms & Conditions shall prevail in relevant dispute between you and us. ")]),e("h3",[t._v("PURCHASING ON FITR")]),e("p",[t._v(" Send you E-mails: FITR will e-mail with regards to your Purchases on FITR. ")]),e("p",[t._v(" Lost/ Stolen Account Information: It is your duty at all times to make us aware if your account information is lost or stolen. ")]),e("h3",[t._v("OBLIGATIONS")]),e("p",[t._v(" Accurate Information: At all times FITR tries to make sure that all information on the Site is accurate. We also require all account holders only submit accurate information. We cannot be liable for any user submitted information on the Site, including purchases. ")]),e("p",[t._v(" Content of Information: It is the aim of FITR to make the Content suitable for a family audience at all times. For this reason you are refrained from posting any Content which may be classed as unsuitable according to this standard and as adjudged by us at our sole discretion. ")]),e("h3",[t._v("NOTIFICATIONS")]),e("p",[t._v(" We will aim to notify you by e-mail at all important instances throughout FITR process. Whilst we will do our best to make sure these notifications are regular and up to date we cannot be responsible for any impact they may have on your decision making process or usability of the Service. We are not responsible for how these e-mails are delivered. ")]),e("h3",[t._v("ACCOUNT INFORMATION")]),e("p",[t._v(" The information stored in your FITR account is deemed as private and we will offer security measures to the best of our ability in order to keep this information secure. We do not hold your payment information on file (See Payment). ")]),e("h3",[t._v("COMPLAINTS/PROBLEMS")]),e("p",[t._v(" We understand that the Service, despite our best intentions, may at times have issues such as bugs and/or other conditions that will ultimately hinder the Service from performing as intended. We also are aware that with 3rd parties utilising the Site many aspects of our Service are beyond our control and we can accept no responsibility and/or liability arising out of in connection with this. ")]),e("p",[t._v(" For any complaints or problems please contact the customer service options available from the Site. ")]),e("h3",[t._v("NAME & E-MAIL")]),e("p",[t._v(" You are required to register with a valid e-mail address. You may be asked to verify your e-mail on sign up. If you are unable to verify your e-mail then you will not be able to use the Service. Please check all spam/junk filters if you do not receive an e-mail confirmation from us. ")]),e("h3",[t._v("FITR USERS VS SELLER AGREEMENT")]),e("p",[t._v(" It should be understood at all times whilst using Service that the consequent contract for purchase is between FITR Users and the Seller. FITR acts as facilitator of the sale only. ")]),e("h3",[t._v("AS A SELLER")]),e("p",[t._v(" By signing up as a Seller you agree you have read, understood and agree to the Terms & Conditions associated with being a FITR Users (buyer). ")])])}],On=l(Fn,Mn,Ln,!1,null,"870c3593");const Un=On.exports,Yn={data:()=>({})};var Bn=function(){var e=this;return e._self._c,e._m(0)},Vn=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container static-page"},[e("h1",[t._v("Data security information")]),e("p",[t._v("Coming soon")])])}],Nn=l(Yn,Bn,Vn,!1,null,"1a6b3ca7");const Wn=Nn.exports,Hn={data:()=>({})};var qn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"container static-page"},[a("h1",[e._v("Cookie Policy")]),a("h2",[e._v("What are cookies?")]),a("p",[e._v(" Cookies are tiny text files which are stored on Your computer when You visit certain web pages. We (and almost all other websites) use these to keep track of certain actions You take, for example to remember You when You return to Our website site. ")]),a("p",[e._v(" It’s important to note that the cookies We use do not harm Your computer in any way and We do not store personally identifiable information in the cookies We create. ")]),e._m(0),e._m(1),a("p",[e._v(" Some browsers such as Google Chrome also offer a feature called Do Not Track (DNT), which tells websites not to send cookie information to Your browser so that that You cannot by remarketed to. To Manage Your DNT settings please refer to Your browser’s cookie and privacy settings. ")]),a("h3",[e._v("Chrome")]),a("p",[e._v("Settings > Advanced > Privacy and security")]),a("h3",[e._v("Safari")]),a("p",[e._v("Settings > Safari > Privacy & Policy")]),a("h3",[e._v("Android Browsers")]),a("p",[e._v("Settings > Device > Applications > Internet > Privacy")]),a("p",[e._v("For all other browsers, please refer to online help guides.")]),a("h2",[e._v("More information on Our cookies")]),a("p",[e._v(" We store cookies on Your computer so We can do things like remember Your product interests and know when You last visited the website. These cookies do not hold any personally identifying information and We only store them for as long as is needed. ")]),a("p",[e._v(" Please note that Our cookies are designed to help provide a functional and tailored experience. You may opt-out from this service by updating Your browser settings. Please refer to Do Not Track browser settings detailed above. ")]),a("h2",[e._v("Third party cookies")]),a("p",[e._v(" In some cases, You will find third party cookies stored on Your computer from one or more of Our trusted partners below. ")]),a("h2",[e._v("Targeted advertising")]),a("p",[e._v(" We work with several advertising platforms that provide targeted advertising solutions. You can Your privacy settings for individual partners below. ")]),a("h3",[e._v("Facebook")]),a("p",[e._v(" We use Facebook to deliver targeted advertisement based on Your interests shared with the platform. You can manage all Your privacy setting for the platform at the link below. ")]),e._m(2),a("h3",[e._v("Google")]),a("p",[e._v(" Manage Your targeted advertising settings for the entire google product suite including YouTube and Chrome browser at the link below. ")]),e._m(3),a("h2",[e._v("Analytical cookies")]),a("p",[e._v(" You may also find cookies stored on Your computer which allows Us to track Your engagement with various campaigns provided by one of Our trusted partners or affiliates programmes. These cookies are used to track success campaigns and do not store any personally identifiable information.  If You would not like to be tracked for analytical purposes, You can disable sending of cookie data within Your browser. ")]),a("p",[e._v(" You may also wish to read Our "),a("router-link",{attrs:{to:"/pages/privacy_policy",target:"_blank"}},[e._v("Privacy Policy")]),e._v(" to view  a list of out trusted of third party partners that may store cookies to help use gauge performance of marketing campaigns. ")],1),a("p",[e._v(" We will update Our Cookie Policy from time to time and We suggest You check back as We may not always notify You of changes. ")])])},zn=[function(){var t=this,e=t._self._c;return e("p",[t._v(" If You’d like to read more information about what cookies are and how they’re used please visit: "),e("a",{attrs:{href:"http://www.aboutcookies.org.uk",target:"_blank"}},[t._v("http://www.aboutcookies.org.uk")])])},function(){var t=this,e=t._self._c;return e("p",[t._v(" In some cases, You may find cookies stored by selected partners We work with for remarketing purposes. You may manage these cookies by visiting the "),e("a",{attrs:{href:"https://networkadvertising.org/managing/opt_out.asp",target:"_blank"}},[t._v("Network Advertising Initiative Website")]),t._v(" where You can choose to opt out of specific cookies. ")])},function(){var t=this,e=t._self._c;return e("p",[e("a",{attrs:{href:"https://www.facebook.com/ads/preferences/edit/",target:"_blank"}},[t._v("https://www.facebook.com/ads/preferences/edit/")])])},function(){var t=this,e=t._self._c;return e("p",[e("a",{attrs:{href:"https://adssettings.google.com/authenticated#fyRr4c",target:"_blank"}},[t._v("https://adssettings.google.com/authenticated#fyRr4c")])])}],jn=l(Hn,qn,zn,!1,null,"37ae489d");const Gn=jn.exports,Zn=[{path:"/pages",component:xn,children:[{path:"",component:Ye},{path:"privacy_policy",component:Ye,name:"privacy_policy",meta:{publicPage:!0}},{path:"terms_of_use",component:Un,name:"terms_of_use",meta:{publicPage:!0}},{path:"data_security",component:Wn,name:"data_security",meta:{publicPage:!0}},{path:"cookies_policy",component:Gn,name:"cookies_policy",meta:{publicPage:!0}}]}],Kn={name:"StarRate",props:{value:{type:[Number,String]},name:{type:String,default:"rate"},length:{type:Number},showcount:{type:Boolean},required:{type:Boolean},ratedesc:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data(){return{over:0,rate:0}},watch:{value:function(t){this.rate=t}},created(){this.value>=this.length?this.value=this.length:this.value<0&&(this.value=0),this.rate=this.value,this.over=this.value},methods:{onOver(t){this.readonly||(this.over=t)},onOut(){this.readonly||(this.over=this.rate)},setRate(t){if(this.readonly)return!1;this.$emit("before-rate",this.rate),this.rate=this.rate===t?null:t,this.$emit("input",this.rate),this.$emit("after-rate",this.rate)},isFilled(t){return t<=this.over},isEmpty(t){return t>this.over||!this.value&&!this.over}}};var Qn=function(){var e=this,a=e._self._c;return e._self._setupProxy,e.length>0?a("div",{staticClass:"rate",class:{readonly:e.readonly}},[a("svg",{staticStyle:{position:"absolute",width:"0",height:"0"},attrs:{width:"0",height:"0",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[a("defs",[a("symbol",{attrs:{id:"icon-star",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M24.692 12.947a.835.835 0 0 0-.732-.447h-5.807l.764-9.552a.876.876 0 0 0-.566-.9.822.822 0 0 0-.976.352l-9.24 14.875a.906.906 0 0 0-.033.893c.147.282.43.457.738.457h5.813l-.77 10.433c-.03.403.209.775.579.9a.811.811 0 0 0 .258.042.834.834 0 0 0 .717-.419l9.24-15.75a.906.906 0 0 0 .015-.884z"}})])])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.rate,expression:"rate"}],attrs:{type:"hidden",name:e.name,required:e.required},domProps:{value:e.rate},on:{input:function(i){i.target.composing||(e.rate=i.target.value)}}}),e._l(e.length,function(i){return[a("button",{key:i,class:{rate__star:!0,hover:i<=e.over,filled:i<=e.rate},attrs:{type:"button",disabled:e.disabled},on:{mouseover:function(s){return e.onOver(i)},mouseout:function(s){return e.onOut(i)},click:function(s){return e.setRate(i)},keyup:[function(s){return e.onOver(i)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.setRate(i)}]}},[a("svg",{staticClass:"rate__icon"},[a("use",{attrs:{"xlink:href":"#icon-star"}})])])]}),a("div",{staticClass:"rate__view",class:{disabled:e.disabled}},[e.showcount?a("span",{staticClass:"rate__count"},[e._v(e._s(e.over))]):e._e(),e.ratedesc.length>0?a("span",{staticClass:"rate__desc"},[e._v(e._s(e.ratedesc[e.over-1]))]):e._e()])],2):e._e()},Jn=[],Xn=l(Kn,Qn,Jn,!1,null,"43556f30");const eo=Xn.exports,to={name:"StatusWithIcon",props:{color:{type:String,validator:function(t){return["primary","danger","gray","orange"].includes(t)}},iconName:{type:String,default:""},tooltip:{type:String},link:{type:String},fontSize:{type:String,default:"xs",validator:function(t){return["base","sm","xs"].includes(t)}}},computed:{hasLink(){var t;return((t=this.link)==null?void 0:t.length)>0},fontSizeClass(){return this.fontSize?`font-size-${this.fontSize}`:""}},methods:{goToLink(t){this.hasLink&&(t.stopPropagation(),window.open(this.link,"_blank"))}}};var ao=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:{customClass:"tooltip_theme-1"},expression:"{ customClass: 'tooltip_theme-1' }",modifiers:{hover:!0}}],staticClass:"status",class:"status-"+e.color,style:{cursor:e.hasLink?"pointer":"default"},attrs:{title:e.tooltip},on:{click:function(i){return e.goToLink(i)}}},[a("SvgIcon",{attrs:{name:e.iconName}}),a("div",{staticClass:"d-flex flex-column align-center ml-1"},[a("span",{staticClass:"status_text",class:[e.fontSizeClass]},[e._t("default")],2),e.hasLink||e.$slots.link?a("span",{staticClass:"status_link"},[e._t("link",function(){return[e._v(" What’s this? ")]})],2):e._e()])],1)},io=[],so=l(to,ao,io,!1,null,"b683dedc");const no=so.exports,oo={name:"ClientStatusBage",components:{StatusWithIcon:no},props:{program:{type:Object,default:()=>{}}},computed:{isProgramEmpty(){return this.program.start_day===null&&this.program.end_day===null||this.program.schedule_started_at===null&&this.program.schedule_ended_at===null}}};var ro=function(){var i,s;var e=this,a=e._self._c;return e._self._setupProxy,e.program!=null?a("div",{staticClass:"plan_availability"},[e.program.is_deleted_user?[a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon"}},[e._v(" "+e._s(e.$t("en.programs.list.status.deleted_user"))+" ")])]:e.program.plan_type=="fixed"?[e.isProgramEmpty?a("status-with-icon",{attrs:{color:"danger","icon-name":"alertStrokeIcon"}},[e._v(" "+e._s(e.$t("en.programs.list.status.empty"))+" ")]):e.program.plan_availability=="ok"&&e.program.state_for_athlete!=null&&!e.program.state_for_athlete?a("status-with-icon",{attrs:{color:"primary","icon-name":"doneStrokeRoundIcon"}},[e._v(" "+e._s(e.$t("en.programs.list.status.finished"))+" ")]):e.program.plan_availability=="warning"?a("status-with-icon",{attrs:{color:"danger","icon-name":"alertStrokeIcon"}},[e._v(" < "+e._s(e.$t("en.programs.list.status.days_left"))+" ")]):e.program.plan_availability=="pending"?a("status-with-icon",{attrs:{color:"danger","icon-name":"alertStrokeIcon"}},[e._v(" "+e._s(e.$t("en.programs.list.status.not_started"))+" ")]):e.program.plan_availability==null?a("status-with-icon",{attrs:{color:"orange","icon-name":"pendingIcon",link:"https://intercom.help/fitr/en/articles/6579652-my-client-is-sitting-in-pending-and-i-don-t-know-why"}},[e._v(" "+e._s(e.$t("en.programs.list.status.pending.label"))+" ")]):a("status-with-icon",{attrs:{color:"primary","icon-name":"doneStrokeRoundIcon"}},[e._v(" "+e._s(e.$t("en.programs.list.status.all_good"))+" ")])]:e.program.membership&&["past_due","canceled","incomplete"].includes(e.program.membership.state)?[e.program.membership.state=="incomplete"?a("status-with-icon",{attrs:{color:"danger","icon-name":"alertStrokeIcon"}},[e._v(" Incomplete ")]):e.program.membership.state=="canceled"?[e.program.membership.canceled_by=="canceled_by_coach"?a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon"}},[e._v(" Cancelled by coach ")]):e.program.membership.canceled_by=="canceled_by_athlete"?a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon",tooltip:"Client decided to cancel their subscription."}},[e._v(" Cancelled by client ")]):e.program.membership.canceled_by=="canceled_pre_trial"?a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon",tooltip:"Client cancelled their subscription before the end of the trial"}},[e._v(" Ended pre-trial ")]):a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon",tooltip:"We cancelled the subscription as payment wasn't made after 7 days."}},[e._v(" Auto Cancelled ")])]:a("status-with-icon",{attrs:{color:"danger","icon-name":"alertStrokeIcon",tooltip:"Client has missed a payment and has 7 days to rectify."}},[e._v(" Missed Payment ")])]:e.program.membership!=null&&e.program.membership.canceled_by=="canceled_by_coach"?a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon"}},[e._v(" Cancelled by coach (EOC) ")]):e.program.membership!=null&&["canceled_by_athlete","canceled_pre_trial"].includes(e.program.membership.canceled_by)?a("status-with-icon",{attrs:{color:"danger","icon-name":"missStrokeRoundIcon"}},[e._v(" Cancelled by client ")]):e.program.plan_availability!=null?[e.program.membership!=null&&e.program.membership.state=="init"||((s=(i=e.program)==null?void 0:i.plan_invite)==null?void 0:s.state)=="init"?a("status-with-icon",{attrs:{color:"orange","icon-name":"pendingIcon",link:"https://intercom.help/fitr/en/articles/6579652-my-client-is-sitting-in-pending-and-i-don-t-know-why"}},[e._v(" Pending ")]):e.program.plan_availability=="ok"?a("status-with-icon",{attrs:{color:"primary","icon-name":"doneStrokeRoundIcon"}},[e._v(" All Good ")]):e.program.plan_availability=="pending"?a("status-with-icon",{attrs:{color:"danger","icon-name":"alertStrokeIcon"}},[e._v(" Not Started ")]):a("status-with-icon",{attrs:{tooltip:"Client(s) have less than 3 days of training",color:"danger","icon-name":"alertStrokeIcon"}},[e._v(" Needs Training ")])]:e.program.plan_availability==null?a("status-with-icon",{attrs:{color:"orange","icon-name":"pendingIcon",link:"https://intercom.help/fitr/en/articles/6579652-my-client-is-sitting-in-pending-and-i-don-t-know-why"}},[e._v(" Pending ")]):e._e()],2):e._e()},lo=[],co=l(oo,ro,lo,!1,null,"fddee142");const uo=co.exports,po={name:"PlanBar",props:{plan:{type:Object,default:function(){return{}}}},computed:{isThepogrmCoach(){return this.plan.user.thepogrm_account},displayedPrice(){return this.isUserCoach?this.plan.original_price:this.plan.local_price},hasExtraInfo(){return!this.plan.skip_sales_page&&(this.plan.level||this.plan.average_duration||this.plan.averageDuration||this.plan.weeks_duration||this.plan.sections_duration)},launchDate(){return this.plan.launch_date?this.$moment(this.plan.launch_date,"YYYY-MM-DD").format("D MMM, YYYY"):null},isZapierAccount(){return this.plan.user.zapier_account},trainingScheduledTo(){return this.plan.training_scheduled_to?this.plan.training_scheduled_to.includes("Week")?this.plan.training_scheduled_to:this.$moment(this.plan.training_scheduled_to,"YYYY-MM-DD").format("D MMM, YYYY"):null},planType(){return this.plan.planType?this.plan.planType:this.plan.plan_type},maxBufferValueCssClass(){return`max-buffer-${this.plan.plan_max_buffer>3?3:this.plan.plan_max_buffer}`},...h(["isUserCoach"])},components:{StarRate:eo,TrainingStatus:uo}};var ho=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"bar"},[a("div",{staticClass:"bar-params"},[a("div",{staticClass:"bar-params-items",class:{"bar-params-items__block":!e.$slots["schedule-actions"]}},[e.isZapierAccount?e._e():a("div",{staticClass:"params-container"},[a("div",{staticClass:"row align-items-start"},[a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Price")]),a("div",{staticClass:"param__val"},[e.plan.plan_pricing=="free"?a("span",{staticClass:"price__val"},[e._v(" Free ")]):[a("span",{staticClass:"price__val"},[e._v(" "+e._s(e.displayedPrice.price_format)+" ")]),e.plan.plan_type!="fixed"&&e.plan.planType!="fixed"?a("span",{staticClass:"price__append"},[e._v("/ Month")]):e._e()],e._t("price-extra")],2)])]),e.isUserCoach&&e.plan.trial_days&&e.plan.planType!="fixed"?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Trial period")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.plan.trial_days)+" "+e._s(e._f("pluralize")(e.plan.trial_days,"day"))+" ")])])]):e._e(),e.launchDate?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Program launch date")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.launchDate)+" ")])])]):e._e(),e.trainingScheduledTo?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Training scheduled to")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.trainingScheduledTo)+" ")])])]):e._e(),e.isUserCoach?[e.planType=="one_many"&&e.plan.plan_status?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Training status")]),a("div",{staticClass:"param__val"},[a("training-status",{attrs:{program:{plan_availability:e.plan.plan_status,plan_type:e.planType}}})],1)])]):e._e(),e.planType=="membership"&&e.plan.plan_max_buffer>=0?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param param__max-buffer"},[a("div",{staticClass:"param__label"},[e._v("Buffer")]),a("div",{staticClass:"param__val",class:e.maxBufferValueCssClass},[e._v(" "+e._s(e.plan.plan_max_buffer)+" "+e._s(e._f("pluralize")(e.plan.plan_max_buffer,"Week"))+" ")])])]):e._e()]:e._e()],2)]),e.hasExtraInfo?a("div",{staticClass:"params-container"},[a("div",{staticClass:"row align-items-start"},[e.plan.level?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Required experience")]),a("div",{staticClass:"param__val param__val_star"},[a("star-rate",{attrs:{length:5,value:e.plan.level,readonly:"readonly"}})],1)])]):e._e(),e.plan.average_duration?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Daily training time")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.plan.average_duration)+" "+e._s(e._f("pluralize")(e.plan.average_duration,"Min"))+" ")])])]):e.plan.averageDuration?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Daily training time")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.plan.averageDuration)+" "+e._s(e._f("pluralize")(e.plan.averageDuration,"Min"))+" ")])])]):e._e(),e.plan.weeks_duration?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v("Days per week")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.plan.weeks_duration)+" "+e._s(e._f("pluralize")(e.plan.weeks_duration,"Day"))+" ")])])]):e._e(),e.plan.sections_duration?a("div",{staticClass:"col-md-6 col-lg-3 col-xl-2"},[a("div",{staticClass:"param"},[a("div",{staticClass:"param__label"},[e._v(" "+e._s(e.$t("en.programs.sessions.label"))+" ")]),a("div",{staticClass:"param__val"},[e._v(" "+e._s(e.plan.sections_duration)+" "+e._s(e._f("pluralize")(e.plan.sections_duration,"Session"))+" ")])])]):e._e()])]):e._e()]),e.$slots["schedule-actions"]?a("div",{staticClass:"bar-params-actions"},[e._t("schedule-actions")],2):e._e()])])},_o=[],mo=l(po,ho,_o,!1,null,"06d56b94");const fo=mo.exports,vo={};var yo=function(){var e=this,a=e._self._c;return a("button",e._g({staticClass:"btn btn-xs btn-round btn-danger btn-white-border",attrs:{type:"button"}},e.$listeners),[a("SvgIcon",{attrs:{name:"trashIcon"}})],1)},bo=[],go=l(vo,yo,bo,!1,null,null);const wo=go.exports,Co={name:"DocumentIcon",props:{document:{type:Object,default:function(){return{}}},mode:{type:String,default:"icon"},size:{type:String,default:"48"}}};var ko=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"document-icon",class:["mode-"+e.mode,"size-"+e.size]},[e.mode=="tag"?[a("span",{staticClass:"caption"},[e._v(" "+e._s(e.document.caption)+" ")]),a("span",{staticClass:"size"},[e._v(" "+e._s(e.document.file_size)+" ")])]:e._e()],2)},So=[],Ao=l(Co,ko,So,!1,null,"6f82f831");const ne=Ao.exports,Be=Object.assign({"./addGoalsIcon.vue":()=>n(()=>import("./addGoalsIcon-CrUbwnJ4.js"),__vite__mapDeps([81,2,3,1,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])).then(t=>t.default),"./addIcon.vue":()=>n(()=>import("./addIcon-CRP8DtEm.js"),__vite__mapDeps([82,2,3,1,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])).then(t=>t.default),"./addInternalNoteIcon.vue":()=>n(()=>import("./addInternalNoteIcon-ZjYRE9yK.js"),__vite__mapDeps([83,2,3,1,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])).then(t=>t.default),"./addNewFolderIcon.vue":()=>n(()=>import("./addNewFolderIcon-DU16geoh.js"),__vite__mapDeps([84,2,3,1,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])).then(t=>t.default),"./addNewIcon.vue":()=>n(()=>import("./addNewIcon-k5U5ZmIa.js"),__vite__mapDeps([85,2,3,1,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])).then(t=>t.default),"./addNewTrainingIcon.vue":()=>n(()=>import("./addNewTrainingIcon-CFpJSZ0J.js"),__vite__mapDeps([86,2,3,1,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])).then(t=>t.default),"./addTextAndImageIcon.vue":()=>n(()=>import("./addTextAndImageIcon-ClQVDGJq.js"),__vite__mapDeps([87,2,3,1,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])).then(t=>t.default),"./addTextSectionIcon.vue":()=>n(()=>import("./addTextSectionIcon-Gz6GU1YZ.js"),__vite__mapDeps([88,2,3,1,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])).then(t=>t.default),"./addTrainingBlockIcon.vue":()=>n(()=>import("./addTrainingBlockIcon-CmOjiGh6.js"),__vite__mapDeps([89,2,3,1,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])).then(t=>t.default),"./addTrainingIcon.vue":()=>n(()=>import("./addTrainingIcon-CBabW4Ue.js"),__vite__mapDeps([90,2,3,1,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])).then(t=>t.default),"./alertFillIcon.vue":()=>n(()=>import("./alertFillIcon-Bfss_dGc.js"),__vite__mapDeps([91,2,3,1,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])).then(t=>t.default),"./alertStrokeIcon.vue":()=>n(()=>import("./alertStrokeIcon-DKLL3pBO.js"),__vite__mapDeps([92,2,3,1,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])).then(t=>t.default),"./arrowFillDownIcon.vue":()=>n(()=>import("./arrowFillDownIcon-BiOk4b6V.js"),__vite__mapDeps([93,2,3,1,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])).then(t=>t.default),"./arrowFillUpIcon.vue":()=>n(()=>import("./arrowFillUpIcon-BVSWT4L9.js"),__vite__mapDeps([94,2,3,1,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])).then(t=>t.default),"./arrowLeftIcon.vue":()=>n(()=>import("./arrowLeftIcon-CPUGO6zh.js"),__vite__mapDeps([95,2,3,1,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])).then(t=>t.default),"./arrowUpDownIcon.vue":()=>n(()=>import("./arrowUpDownIcon-q6XLZMrS.js"),__vite__mapDeps([96,2,3,1,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])).then(t=>t.default),"./arrowUpIcon.vue":()=>n(()=>import("./arrowUpIcon-Bm_k0zm_.js"),__vite__mapDeps([97,2,3,1,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])).then(t=>t.default),"./attachmentFileIcon.vue":()=>n(()=>import("./attachmentFileIcon-BzbCOgWv.js"),__vite__mapDeps([98,2,3,1,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])).then(t=>t.default),"./attachmentIcon.vue":()=>n(()=>import("./attachmentIcon-CjSNGBKo.js"),__vite__mapDeps([99,2,3,1,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])).then(t=>t.default),"./bankIcon.vue":()=>n(()=>import("./bankIcon-B8gj9Q_y.js"),__vite__mapDeps([100,2,3,1,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])).then(t=>t.default),"./beginingIcon.vue":()=>n(()=>import("./beginingIcon-BlXC_k1D.js"),__vite__mapDeps([101,2,3,1,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])).then(t=>t.default),"./blockIcon.vue":()=>n(()=>import("./blockIcon-CFbEM7Lx.js"),__vite__mapDeps([102,2,3,1,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])).then(t=>t.default),"./calendarIcon.vue":()=>n(()=>import("./calendarIcon-D0NPqU7i.js"),__vite__mapDeps([103,2,3,1,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])).then(t=>t.default),"./challangeIcon.vue":()=>n(()=>import("./challangeIcon-DsYdvtAO.js"),__vite__mapDeps([104,2,3,1,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])).then(t=>t.default),"./changeIcon.vue":()=>n(()=>import("./changeIcon-cfD2Sx8V.js"),__vite__mapDeps([105,2,3,1,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])).then(t=>t.default),"./checklistIcon.vue":()=>n(()=>import("./checklistIcon-BoWZ-mLu.js"),__vite__mapDeps([106,2,3,1,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])).then(t=>t.default),"./chevronDoubleStrokeLeftIcon.vue":()=>n(()=>import("./chevronDoubleStrokeLeftIcon-CYRBhq4q.js"),__vite__mapDeps([107,2,3,1,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])).then(t=>t.default),"./chevronDoubleStrokeRightIcon.vue":()=>n(()=>import("./chevronDoubleStrokeRightIcon-_c_cv-Dm.js"),__vite__mapDeps([108,2,3,1,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])).then(t=>t.default),"./chevronFillDownIcon.vue":()=>n(()=>import("./chevronFillDownIcon-CmTTkR_5.js"),__vite__mapDeps([109,2,3,1,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])).then(t=>t.default),"./chevronFillUpIcon.vue":()=>n(()=>import("./chevronFillUpIcon-4SOdmJCv.js"),__vite__mapDeps([110,2,3,1,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])).then(t=>t.default),"./chevronStrokeDownIcon.vue":()=>n(()=>import("./chevronStrokeDownIcon-CSar0Gxi.js"),__vite__mapDeps([111,2,3,1,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])).then(t=>t.default),"./chevronStrokeLeftIcon.vue":()=>n(()=>import("./chevronStrokeLeftIcon-Gh6k2YpF.js"),__vite__mapDeps([112,2,3,1,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])).then(t=>t.default),"./chevronStrokeRightIcon.vue":()=>n(()=>import("./chevronStrokeRightIcon-WXifvJZN.js"),__vite__mapDeps([113,2,3,1,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])).then(t=>t.default),"./chevronStrokeUpIcon.vue":()=>n(()=>import("./chevronStrokeUpIcon-odc1sPTX.js"),__vite__mapDeps([114,2,3,1,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])).then(t=>t.default),"./clearIcon.vue":()=>n(()=>import("./clearIcon-ChVJ2MzI.js"),__vite__mapDeps([115,2,3,1,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])).then(t=>t.default),"./clientIcon.vue":()=>n(()=>import("./clientIcon-BAoh_pdK.js"),__vite__mapDeps([116,2,3,1,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])).then(t=>t.default),"./clientsIcon.vue":()=>n(()=>import("./clientsIcon-CPuU3SE-.js"),__vite__mapDeps([117,2,3,1,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])).then(t=>t.default),"./closeIcon.vue":()=>n(()=>import("./closeIcon-CxCW3CwN.js"),__vite__mapDeps([118,2,3,1,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])).then(t=>t.default),"./closeStrokeIcon.vue":()=>n(()=>import("./closeStrokeIcon-CVjbZgsl.js"),__vite__mapDeps([119,2,3,1,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])).then(t=>t.default),"./commentIcon.vue":()=>n(()=>import("./commentIcon-ldByg1er.js"),__vite__mapDeps([120,2,3,1,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])).then(t=>t.default),"./communityMessageIcon.vue":()=>n(()=>import("./communityMessageIcon-BGxC1YPn.js"),__vite__mapDeps([121,2,3,1,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])).then(t=>t.default),"./compareIcon.vue":()=>n(()=>import("./compareIcon-C4P4t5rS.js"),__vite__mapDeps([122,2,3,1,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])).then(t=>t.default),"./completionDoneIcon.vue":()=>n(()=>import("./completionDoneIcon-CNcFy9a9.js"),__vite__mapDeps([123,2,3,1,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])).then(t=>t.default),"./completionEmptyIcon.vue":()=>n(()=>import("./completionEmptyIcon-gWX_Yv1A.js"),__vite__mapDeps([124,2,3,1,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])).then(t=>t.default),"./completionOnlineIcon.vue":()=>n(()=>import("./completionOnlineIcon-CSdse9YZ.js"),__vite__mapDeps([125,2,3,1,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])).then(t=>t.default),"./completionPartialIcon.vue":()=>n(()=>import("./completionPartialIcon-Bsg2t69e.js"),__vite__mapDeps([126,2,3,1,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])).then(t=>t.default),"./completionSkippedIcon.vue":()=>n(()=>import("./completionSkippedIcon-DRMOv8GQ.js"),__vite__mapDeps([127,2,3,1,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])).then(t=>t.default),"./copyIcon.vue":()=>n(()=>import("./copyIcon-CjuL7SUV.js"),__vite__mapDeps([128,2,3,1,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])).then(t=>t.default),"./currencyIcon.vue":()=>n(()=>import("./currencyIcon-B4qCLtOa.js"),__vite__mapDeps([129,2,3,1,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])).then(t=>t.default),"./cutIcon.vue":()=>n(()=>import("./cutIcon-BWtIYgKw.js"),__vite__mapDeps([130,2,3,1,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])).then(t=>t.default),"./dailyLeaderboardIcon.vue":()=>n(()=>import("./dailyLeaderboardIcon-C34QWUYt.js"),__vite__mapDeps([131,2,3,1,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])).then(t=>t.default),"./dangerIcon.vue":()=>n(()=>import("./dangerIcon-0Am6VzX-.js"),__vite__mapDeps([132,2,3,1,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])).then(t=>t.default),"./deleteMediaIcon.vue":()=>n(()=>import("./deleteMediaIcon-T7xLag74.js"),__vite__mapDeps([133,2,3,1,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])).then(t=>t.default),"./doneIcon.vue":()=>n(()=>import("./doneIcon-DUWHS-xA.js"),__vite__mapDeps([134,2,3,1,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])).then(t=>t.default),"./doneStrokeIcon.vue":()=>n(()=>import("./doneStrokeIcon-CLZhB2io.js"),__vite__mapDeps([135,2,3,1,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])).then(t=>t.default),"./doneStrokeRoundIcon.vue":()=>n(()=>import("./doneStrokeRoundIcon-Wie-9GZM.js"),__vite__mapDeps([136,2,3,1,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])).then(t=>t.default),"./downloadIcon.vue":()=>n(()=>import("./downloadIcon-Bpeg36pR.js"),__vite__mapDeps([137,2,3,1,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])).then(t=>t.default),"./editIcon.vue":()=>n(()=>import("./editIcon-C64NpJOg.js"),__vite__mapDeps([138,2,3,1,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])).then(t=>t.default),"./editableIcon.vue":()=>n(()=>import("./editableIcon-Cs5IsFdB.js"),__vite__mapDeps([139,2,3,1,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])).then(t=>t.default),"./energyIcon.vue":()=>n(()=>import("./energyIcon-DBX4pkLW.js"),__vite__mapDeps([140,2,3,1,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])).then(t=>t.default),"./exportImportIcon.vue":()=>n(()=>import("./exportImportIcon-tTnOi4OQ.js"),__vite__mapDeps([141,2,3,1,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])).then(t=>t.default),"./externalLinkIcon.vue":()=>n(()=>import("./externalLinkIcon-Dx0GyWXS.js"),__vite__mapDeps([142,2,3,1,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])).then(t=>t.default),"./eyeClosedIcon.vue":()=>n(()=>import("./eyeClosedIcon-DhzJsh_G.js"),__vite__mapDeps([143,2,3,1,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])).then(t=>t.default),"./eyeOpenIcon.vue":()=>n(()=>import("./eyeOpenIcon-BuPKKUjr.js"),__vite__mapDeps([144,2,3,1,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])).then(t=>t.default),"./facebookIcon.vue":()=>n(()=>import("./facebookIcon-DdKQoZfM.js"),__vite__mapDeps([145,2,3,1,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])).then(t=>t.default),"./feedIcon.vue":()=>n(()=>import("./feedIcon-DvJIrcdi.js"),__vite__mapDeps([146,2,3,1,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])).then(t=>t.default),"./filterIcon.vue":()=>n(()=>import("./filterIcon-CG3Lutfe.js"),__vite__mapDeps([147,2,3,1,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])).then(t=>t.default),"./folderIcon.vue":()=>n(()=>import("./folderIcon-odkX4dK-.js"),__vite__mapDeps([148,2,3,1,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])).then(t=>t.default),"./genderFemailIcon.vue":()=>n(()=>import("./genderFemailIcon-CLU5TpsH.js"),__vite__mapDeps([149,2,3,1,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])).then(t=>t.default),"./genderMaleIcon.vue":()=>n(()=>import("./genderMaleIcon-CwF_rh9_.js"),__vite__mapDeps([150,2,3,1,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])).then(t=>t.default),"./genderOther.vue":()=>n(()=>import("./genderOther-CAxf7NPO.js"),__vite__mapDeps([151,2,3,1,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])).then(t=>t.default),"./gifIcon.vue":()=>n(()=>import("./gifIcon-BeJK8aHg.js"),__vite__mapDeps([152,2,3,1,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])).then(t=>t.default),"./graphIcon.vue":()=>n(()=>import("./graphIcon-COHau3Br.js"),__vite__mapDeps([153,2,3,1,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])).then(t=>t.default),"./graphStrokeIcon.vue":()=>n(()=>import("./graphStrokeIcon-C47zgKf7.js"),__vite__mapDeps([154,2,3,1,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])).then(t=>t.default),"./historyIcon.vue":()=>n(()=>import("./historyIcon-Bv0s23RS.js"),__vite__mapDeps([155,2,3,1,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])).then(t=>t.default),"./imageIcon.vue":()=>n(()=>import("./imageIcon-BVxD5K6j.js"),__vite__mapDeps([156,2,3,1,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])).then(t=>t.default),"./inboxIcon.vue":()=>n(()=>import("./inboxIcon-DY741qxS.js"),__vite__mapDeps([157,2,3,1,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])).then(t=>t.default),"./insertTemplateIcon.vue":()=>n(()=>import("./insertTemplateIcon-D7JrWu6l.js"),__vite__mapDeps([158,2,3,1,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])).then(t=>t.default),"./instagramIcon.vue":()=>n(()=>import("./instagramIcon--YoMzgyu.js"),__vite__mapDeps([159,2,3,1,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])).then(t=>t.default),"./leaderboardIcon.vue":()=>n(()=>import("./leaderboardIcon-_cgxPwIo.js"),__vite__mapDeps([160,2,3,1,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])).then(t=>t.default),"./likeIcon.vue":()=>n(()=>import("./likeIcon-BmY40tsn.js"),__vite__mapDeps([161,2,3,1,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])).then(t=>t.default),"./linkShareIcon.vue":()=>n(()=>import("./linkShareIcon-vEWebv4Y.js"),__vite__mapDeps([162,2,3,1,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])).then(t=>t.default),"./loadingIcon.vue":()=>n(()=>import("./loadingIcon-ukxb_qyD.js"),__vite__mapDeps([163,2,3,1,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])).then(t=>t.default),"./loadingIconAnimated.vue":()=>n(()=>import("./loadingIconAnimated-veyzGvoh.js"),__vite__mapDeps([164,2,3,1,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])).then(t=>t.default),"./lockIcon.vue":()=>n(()=>import("./lockIcon-BTMB4_WA.js"),__vite__mapDeps([165,2,3,1,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])).then(t=>t.default),"./logOutIcon.vue":()=>n(()=>import("./logOutIcon-Bv1m-Jx7.js"),__vite__mapDeps([166,2,3,1,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])).then(t=>t.default),"./markAsReadIcon.vue":()=>n(()=>import("./markAsReadIcon-CZ2K7CxK.js"),__vite__mapDeps([167,2,3,1,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])).then(t=>t.default),"./menuIcon.vue":()=>n(()=>import("./menuIcon-CPOumkAy.js"),__vite__mapDeps([168,2,3,1,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])).then(t=>t.default),"./messageIcon.vue":()=>n(()=>import("./messageIcon-Ck2kpJAE.js"),__vite__mapDeps([169,2,3,1,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])).then(t=>t.default),"./messageToCommunityIcon.vue":()=>n(()=>import("./messageToCommunityIcon-2WLW_GmY.js"),__vite__mapDeps([170,2,3,1,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])).then(t=>t.default),"./minusIcon.vue":()=>n(()=>import("./minusIcon-BI21rxfc.js"),__vite__mapDeps([171,2,3,1,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])).then(t=>t.default),"./minusStrokeIcon.vue":()=>n(()=>import("./minusStrokeIcon-DX6XcQtz.js"),__vite__mapDeps([172,2,3,1,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])).then(t=>t.default),"./minusStrokeRoundIcon.vue":()=>n(()=>import("./minusStrokeRoundIcon-BNsFg13l.js"),__vite__mapDeps([173,2,3,1,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])).then(t=>t.default),"./missStrokeRoundIcon.vue":()=>n(()=>import("./missStrokeRoundIcon-DSStFtwI.js"),__vite__mapDeps([174,2,3,1,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])).then(t=>t.default),"./moodBadIcon.vue":()=>n(()=>import("./moodBadIcon-C_JOtYP4.js"),__vite__mapDeps([175,2,3,1,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])).then(t=>t.default),"./moodGreatIcon.vue":()=>n(()=>import("./moodGreatIcon-BiFo35WC.js"),__vite__mapDeps([176,2,3,1,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])).then(t=>t.default),"./moodNormalIcon.vue":()=>n(()=>import("./moodNormalIcon-DrK1336I.js"),__vite__mapDeps([177,2,3,1,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])).then(t=>t.default),"./moodPerfectIcon.vue":()=>n(()=>import("./moodPerfectIcon-Ec16U9hh.js"),__vite__mapDeps([178,2,3,1,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])).then(t=>t.default),"./moodReallybadIcon.vue":()=>n(()=>import("./moodReallybadIcon-CCQluP_b.js"),__vite__mapDeps([179,2,3,1,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])).then(t=>t.default),"./moreIcon.vue":()=>n(()=>import("./moreIcon-CGE_kUCc.js"),__vite__mapDeps([180,2,3,1,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])).then(t=>t.default),"./multiCalendarIcon.vue":()=>n(()=>import("./multiCalendarIcon-j48zuXu4.js"),__vite__mapDeps([181,2,3,1,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])).then(t=>t.default),"./muteIcon.vue":()=>n(()=>import("./muteIcon-DRqLJLS6.js"),__vite__mapDeps([182,2,3,1,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])).then(t=>t.default),"./newClientIcon.vue":()=>n(()=>import("./newClientIcon-B-mJSDqh.js"),__vite__mapDeps([183,2,3,1,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])).then(t=>t.default),"./notOkIcon.vue":()=>n(()=>import("./notOkIcon-BDsO92Ug.js"),__vite__mapDeps([184,2,3,1,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])).then(t=>t.default),"./okIcon.vue":()=>n(()=>import("./okIcon-CKW5j0Yj.js"),__vite__mapDeps([185,2,3,1,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])).then(t=>t.default),"./ongoingIcon.vue":()=>n(()=>import("./ongoingIcon-CLn2QcOg.js"),__vite__mapDeps([186,2,3,1,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])).then(t=>t.default),"./pasteIntoDayIcon.vue":()=>n(()=>import("./pasteIntoDayIcon-BidT6syi.js"),__vite__mapDeps([187,2,3,1,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])).then(t=>t.default),"./pasteWithStructureIcon.vue":()=>n(()=>import("./pasteWithStructureIcon-DrA-L-t6.js"),__vite__mapDeps([188,2,3,1,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])).then(t=>t.default),"./pauseIcon.vue":()=>n(()=>import("./pauseIcon-Blgw2f_p.js"),__vite__mapDeps([189,2,3,1,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])).then(t=>t.default),"./pendingIcon.vue":()=>n(()=>import("./pendingIcon-CqPx7Ivl.js"),__vite__mapDeps([190,2,3,1,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])).then(t=>t.default),"./pendingStrokeIcon.vue":()=>n(()=>import("./pendingStrokeIcon-hUtjnBuK.js"),__vite__mapDeps([191,2,3,1,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])).then(t=>t.default),"./personalBestIcon.vue":()=>n(()=>import("./personalBestIcon-BEOo_rqa.js"),__vite__mapDeps([192,2,3,1,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])).then(t=>t.default),"./photoFrameIcon.vue":()=>n(()=>import("./photoFrameIcon-CGCByPUL.js"),__vite__mapDeps([193,2,3,1,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])).then(t=>t.default),"./playCircleIcon.vue":()=>n(()=>import("./playCircleIcon-DC9jrk18.js"),__vite__mapDeps([194,2,3,1,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])).then(t=>t.default),"./playIcon.vue":()=>n(()=>import("./playIcon-C3DMiOCx.js"),__vite__mapDeps([195,2,3,1,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])).then(t=>t.default),"./plusStrokeIcon.vue":()=>n(()=>import("./plusStrokeIcon-BDQuuZdx.js"),__vite__mapDeps([196,2,3,1,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])).then(t=>t.default),"./plusStrokeRoundIcon.vue":()=>n(()=>import("./plusStrokeRoundIcon-DMtyRmTz.js"),__vite__mapDeps([197,2,3,1,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])).then(t=>t.default),"./programListIcon.vue":()=>n(()=>import("./programListIcon-JcDLxNQ4.js"),__vite__mapDeps([198,2,3,1,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])).then(t=>t.default),"./questionIcon.vue":()=>n(()=>import("./questionIcon-DDm6YLD6.js"),__vite__mapDeps([199,2,3,1,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])).then(t=>t.default),"./removeFromFolderIcon.vue":()=>n(()=>import("./removeFromFolderIcon-BvCZl_m-.js"),__vite__mapDeps([200,2,3,1,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])).then(t=>t.default),"./resizeIcon.vue":()=>n(()=>import("./resizeIcon-Uoh7lkoD.js"),__vite__mapDeps([201,2,3,1,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])).then(t=>t.default),"./saveIcon.vue":()=>n(()=>import("./saveIcon-F60UJ-hB.js"),__vite__mapDeps([202,2,3,1,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])).then(t=>t.default),"./searchIcon.vue":()=>n(()=>import("./searchIcon-DFpo__Ab.js"),__vite__mapDeps([203,2,3,1,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])).then(t=>t.default),"./sendIcon.vue":()=>n(()=>import("./sendIcon-D4IoFibw.js"),__vite__mapDeps([204,2,3,1,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])).then(t=>t.default),"./shareIcon.vue":()=>n(()=>import("./shareIcon-BOK6do-Q.js"),__vite__mapDeps([205,2,3,1,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])).then(t=>t.default),"./stopIcon.vue":()=>n(()=>import("./stopIcon-DIe89Ofb.js"),__vite__mapDeps([206,2,3,1,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])).then(t=>t.default),"./testEditorIcon.vue":()=>n(()=>import("./testEditorIcon-DY-kEBo5.js"),__vite__mapDeps([207,2,3,1,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])).then(t=>t.default),"./todayIcon.vue":()=>n(()=>import("./todayIcon-I-lM-XKU.js"),__vite__mapDeps([208,2,3,1,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])).then(t=>t.default),"./trashIcon.vue":()=>n(()=>import("./trashIcon-ortY2I1I.js"),__vite__mapDeps([209,2,3,1,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])).then(t=>t.default),"./twitterIcon.vue":()=>n(()=>import("./twitterIcon-CJWLWfU7.js"),__vite__mapDeps([210,2,3,1,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])).then(t=>t.default),"./unmuteIcon.vue":()=>n(()=>import("./unmuteIcon-CdDk6SmF.js"),__vite__mapDeps([211,2,3,1,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])).then(t=>t.default),"./uploadIcon.vue":()=>n(()=>import("./uploadIcon-BNoV277J.js"),__vite__mapDeps([212,2,3,1,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])).then(t=>t.default),"./videoIcon.vue":()=>n(()=>import("./videoIcon-DyYY9MzM.js"),__vite__mapDeps([213,2,3,1,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])).then(t=>t.default),"./viewActivityIcon.vue":()=>n(()=>import("./viewActivityIcon-DSMWzT3f.js"),__vite__mapDeps([214,2,3,1,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])).then(t=>t.default)}),B={};for(const t in Be){const e=t.replace(/^\.\//,"").replace(/\.\w+$/,"");B[e]=Be[t]}function Po(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}const To={name:"SvgIcon",components:{...B},props:{name:{type:String,required:!0,validator(t){return Object.prototype.hasOwnProperty.call(B,t)}},color:{type:String,default:"currentColor"},size:{type:Number,default:24}},computed:{iconStyle(){const{size:t,color:e}=this,a={width:`${t}px`,height:`${t}px`};return e&&(e==="currentColor"||Po(e)?a["--icon-color"]=e:a["--icon-color"]=`var(--${e}-color)`),a},iconComponent(){return B[this.name]}}};var $o=function(){var e=this,a=e._self._c;return a("svg",{staticClass:"svg-icon",style:e.iconStyle,attrs:{preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","data-testid":"svg-icon"}},[a(e.iconComponent,{tag:"component"})],1)},xo=[],Io=l(To,$o,xo,!1,null,"8828b1e1");const oe=Io.exports,Ro=192,Eo=124,Do={name:"AttachmentsList",components:{DocumentIcon:ne,RemoveButton:wo,SvgIcon:oe,draggable:$t},props:{mode:{type:String,default:"view"},size:{type:String,default:"md"},attachments:{type:Array},isTitled:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},readModeShowTitle:{type:Boolean,default:!1},isScrollable:{type:Boolean,default:!0}},data(){return{seeAll:!1,collapsed:!1}},computed:{groupedAttachments(){return ct(this.attachments,"type")},mediaAttachments(){return[...this.groupedAttachments.video||[],...this.groupedAttachments.image||[],...this.groupedAttachments.youtube||[]].sort((t,e)=>parseInt(t.position,10)-parseInt(e.position,10))},hasMediaAttachments(){var t;return((t=this.mediaAttachments)==null?void 0:t.length)>0},docsAttachments(){return[...this.groupedAttachments.other||[]].sort((t,e)=>parseInt(t.position,10)-parseInt(e.position,10))},hasDocsAttachments(){var t;return((t=this.docsAttachments)==null?void 0:t.length)>0}},watch:{"mediaAttachments.length":function(){this.calculateMediaListPositions(w(this.mediaAttachments))}},mounted:function(){this.isScrollable||this.showBtn()},updated:function(){this.isScrollable||this.showBtn()},methods:{remove(t){this.$emit("remove",t)},setTitleMedia(t){const e=t.title_media;return this.resetTitleMedia(),t.title_media=!e},resetTitleMedia(){this.attachments.map(t=>t.title_media=!1)},collapse(){this.collapsed=!this.collapsed},showAllAttachments(){this.seeAll&&!this.isScrollable&&(this.collapsed=!0)},mediaListEl(){var e;const t=(e=this.$refs.mediaList)!=null&&e.$el?this.$refs.mediaList.$el:this.$refs.mediaList;if(t!=null&&t.scrollHeight)return t.scrollHeight>Ro},docListEl(){var e;const t=(e=this.$refs.docsList)!=null&&e.$el?this.$refs.docsList.$el:this.$refs.docsList;if(t!=null&&t.scrollHeight)return t.scrollHeight>Eo},showBtn(){this.seeAll=this.mediaListEl()||this.docListEl()},updateDraggablePosition(t,e){const a=w(t?this.mediaAttachments:this.docsAttachments),i=a.splice(e.oldIndex,1);a.splice(e.newIndex,0,i[0]),this.calculateMediaListPositions(a)},calculateMediaListPositions(t){const e=w(this.attachments);t.forEach((a,i)=>{const s=e.find(o=>o.id==a.id);s&&(s.position=i)}),this.$emit("positionsUpdated",e)}}};var Fo=function(){var e=this,a=e._self._c;return e._self._setupProxy,e.hasMediaAttachments||e.hasDocsAttachments?a("div",{staticClass:"attachments-list",class:{"sidebar-attachments":!e.isScrollable}},[e.mode=="edit"?[a("div",{staticClass:"attachments-all"},[e.hasMediaAttachments?a("div",{staticClass:"attachments-media"},[a("h4",[e._v("Media")]),a("draggable",{ref:"mediaList",staticClass:"row attachment_mediaList",class:{opened:e.collapsed},attrs:{disabled:!e.draggable,forceFallback:!0},on:{update:function(i){return e.updateDraggablePosition(!0,...arguments)}}},e._l(e.mediaAttachments,function(i){return a("div",{key:i.id,staticClass:"attachment-wrap"},[i.type=="video"?a("div",{staticClass:"col-auto col_video attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_media",class:"size-"+e.size},[a("div",{staticClass:"attachment__actions"},[e.isTitled?a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:{customClass:"tooltip_theme-2"},expression:"{ customClass: 'tooltip_theme-2' }",modifiers:{hover:!0}}],staticClass:"btn btn-xs btn-round btn-white-border",class:i.title_media?"btn-danger":"btn-primary",attrs:{type:"button",title:i.title_media?"Remove as Title media":"Set as Title media"},on:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.setTitleMedia(i)}}},[a("SvgIcon",{attrs:{name:"photoFrameIcon"}})],1):e._e(),a("remove-button",{staticClass:"attachment__remove",on:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.remove(i)}}})],1),a("div",{staticClass:"attachment__pic",style:{backgroundImage:"url("+i.thumb+")"},on:{click:function(s){return e.$emit("viewAttachment",i)}}}),a("div",{staticClass:"attachment__play",on:{click:function(s){return e.$emit("viewAttachment",i)}}},[a("div",{staticClass:"play-btn"},[a("div",{staticClass:"icon icon_play"})])]),i.title_media?a("div",{staticClass:"attachment__title-media"},[a("span",[e._v("Title")])]):e._e(),i.title&&e.size!=="sm"?a("div",{staticClass:"attachment__video-title"},[e._v(" "+e._s(i.title)+" ")]):e._e()])]):e._e(),i.type=="youtube"?a("div",{staticClass:"col-auto col_video attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_media",class:"size-"+e.size},[a("div",{staticClass:"attachment__actions"},[e.isTitled?a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:{customClass:"tooltip_theme-2"},expression:"{ customClass: 'tooltip_theme-2' }",modifiers:{hover:!0}}],staticClass:"btn btn-xs btn-round btn-white-border",class:i.title_media?"btn-danger":"btn-primary",attrs:{type:"button",title:i.title_media?"Remove as Title media":"Set as Title media"},on:{click:function(s){return e.setTitleMedia(i)}}},[a("SvgIcon",{attrs:{name:"photoFrameIcon"}})],1):e._e(),a("remove-button",{staticClass:"attachment__remove",on:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.remove(i)}}})],1),i.thumb?a("div",{staticClass:"attachment__pic",style:{backgroundImage:"url("+i.thumb+")"},on:{click:function(s){return e.$emit("viewAttachment",i)}}}):a("div",{staticClass:"attachment__pic",on:{click:function(s){return e.$emit("viewAttachment",i)}}}),a("div",{staticClass:"attachment__play",on:{click:function(s){return e.$emit("viewAttachment",i)}}},[a("div",{staticClass:"play-btn"},[a("div",{staticClass:"icon icon_play"})])]),i.title_media?a("div",{staticClass:"attachment__title-media"},[a("span",[e._v("Title")])]):e._e(),i.title&&e.size!=="sm"?a("div",{staticClass:"attachment__video-title"},[e._v(" "+e._s(i.title)+" ")]):e._e()])]):e._e(),i.type=="image"?a("div",{staticClass:"col-auto col_image attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_media",class:"size-"+e.size},[a("div",{staticClass:"attachment__actions"},[e.isTitled?a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:{customClass:"tooltip_theme-2"},expression:"{ customClass: 'tooltip_theme-2' }",modifiers:{hover:!0}}],staticClass:"btn btn-xs btn-round btn-white-border",class:i.title_media?"btn-danger":"btn-primary",attrs:{type:"button",title:i.title_media?"Remove as Title media":"Set as Title media"},on:{click:function(s){return e.setTitleMedia(i)}}},[a("SvgIcon",{attrs:{name:"photoFrameIcon"}})],1):e._e(),a("remove-button",{staticClass:"attachment__remove",on:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.remove(i)}}})],1),a("div",{staticClass:"attachment__pic",style:{backgroundImage:"url("+i.thumb+")"},on:{click:function(s){return e.$emit("viewAttachment",i)}}}),i.title_media?a("div",{staticClass:"attachment__title-media"},[a("span",[e._v("Title")])]):e._e()])]):e._e()])}),0)],1):e._e(),e.hasDocsAttachments?a("div",{staticClass:"attachments-other"},[a("h4",[e._v("Files")]),a("draggable",{ref:"docsList",staticClass:"row attachment_docList",class:{opened:e.collapsed},attrs:{disabled:!e.draggable},on:{update:function(i){return e.updateDraggablePosition(!1,...arguments)}}},e._l(e.docsAttachments,function(i){return a("div",{key:i.id,staticClass:"attachment-wrap"},[a("div",{staticClass:"col-auto col_doc attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_doc"},[a("document-icon",{staticClass:"attachment__icon",attrs:{mode:"tag",size:e.size,document:i}}),a("div",{staticClass:"attachment__actions"},[a("remove-button",{staticClass:"attachment__remove",on:{click:function(s){return s.preventDefault(),s.stopPropagation(),e.remove(i)}}})],1)],1)])])}),0)],1):e._e()]),e._t("extra")]:[e.hasMediaAttachments?a("div",{staticClass:"attachments-media"},[a("h4",[e._v("Media")]),a("div",{ref:"mediaList",staticClass:"row attachment_mediaList",class:{opened:e.collapsed}},e._l(e.mediaAttachments,function(i){return a("div",{key:i.id,staticClass:"attachment-wrap"},[i.type=="video"?a("div",{staticClass:"col-auto col_video attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_media",class:"size-"+e.size,attrs:{"data-testid":"video-attachment"},on:{click:function(s){return e.$emit("viewAttachment",i)}}},[a("div",{staticClass:"attachment__pic",style:{backgroundImage:"url("+i.thumb+")"}}),a("div",{staticClass:"attachment__play",on:{click:function(s){return e.$emit("viewAttachment",i)}}},[e._m(0,!0)]),i.title&&e.size!=="sm"?a("div",{staticClass:"attachment__video-title"},[e._v(" "+e._s(i.title)+" ")]):e._e(),i.title_media&&e.readModeShowTitle?a("div",{staticClass:"attachment__title-media"},[a("span",[e._v("Title")])]):e._e()])]):e._e(),i.type=="youtube"?a("div",{staticClass:"col-auto col_video attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_media",class:"size-"+e.size,attrs:{"data-testid":"youtube-attachment"},on:{click:function(s){return e.$emit("viewAttachment",i)}}},[i.thumb?a("div",{staticClass:"attachment__pic",style:{backgroundImage:"url("+i.thumb+")"}}):a("div",{staticClass:"attachment__pic"}),a("div",{staticClass:"attachment__play",on:{click:function(s){return e.$emit("viewAttachment",i)}}},[e._m(1,!0)]),i.title&&e.size!=="sm"?a("div",{staticClass:"attachment__video-title"},[e._v(" "+e._s(i.title)+" ")]):e._e(),i.title_media&&e.readModeShowTitle?a("div",{staticClass:"attachment__title-media"},[a("span",[e._v("Title")])]):e._e()])]):e._e(),i.type=="image"?a("div",{staticClass:"col-auto col_image attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_media",class:"size-"+e.size,attrs:{"data-testid":"image-attachment"},on:{click:function(s){return e.$emit("viewAttachment",i)}}},[a("div",{staticClass:"attachment__pic",style:{backgroundImage:"url("+i.thumb+")"}}),i.title_media&&e.readModeShowTitle?a("div",{staticClass:"attachment__title-media"},[a("span",[e._v("Title")])]):e._e()])]):e._e()])}),0)]):e._e(),e.hasDocsAttachments?a("div",{staticClass:"attachments-other"},[a("h4",[e._v("Files")]),a("div",{ref:"docsList",staticClass:"row attachment_docList",class:{opened:e.collapsed}},e._l(e.docsAttachments,function(i){return a("div",{key:i.id,staticClass:"attachment-wrap",attrs:{"data-testid":"file-attachment"}},[a("div",{staticClass:"col-auto col_doc attachment-el"},[a("div",{staticClass:"attachments-item attachment attachment_doc"},[a("a",{attrs:{href:i.src,download:i.caption}},[a("document-icon",{staticClass:"attachment__icon",attrs:{mode:"tag",size:e.size,document:i}})],1)])])])}),0)]):e._e()],e.seeAll&&!e.isScrollable?a("button",{staticClass:"btn btn-link btn-md attachments-seeAll",class:{"position-absolute":e.mode==="edit"},on:{click:e.collapse}},[e.collapsed?a("span",[e._v("Show less")]):a("span",[e._v("Show all")])]):e._e()],2):e._e()},Mo=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"play-btn"},[e("div",{staticClass:"icon icon_play"})])},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"play-btn"},[e("div",{staticClass:"icon icon_play"})])}],Lo=l(Do,Fo,Mo,!1,null,"5ea126ba");const gt=Lo.exports,Oo={name:"PlanDetails",components:{AttachmentsList:gt,UserAvatar:$},props:{attachments:{type:Array,default:function(){return[]}},description:String,skipSalesPage:{type:Boolean,default:!1},owner:{type:Object,default:function(){return{}}}},computed:{isDescriptionExist(){return!this.skipSalesPage&&this.description!=null&&this.description.length>0},isAttachmentsExist(){return!this.skipSalesPage&&this.attachments!=null&&this.attachments.length>0},isMainInfoExist(){return this.isDescriptionExist||this.isAttachmentsExist},isOwner(){return this.currentUser&&this.owner.id==this.currentUser.id},ownerUserType(){return this.owner.type_account.charAt(0).toLowerCase()},...C(["currentUser"])}};var Uo=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"details"},[e.isDescriptionExist?a("div",{staticClass:"plan-section"},[a("h2",[e._v("Overview")]),a("div",{staticClass:"description editor-styles",domProps:{innerHTML:e._s(e.description)}})]):e._e(),e.isAttachmentsExist?a("div",{staticClass:"plan-section"},[a("h2",[e._v("Attachments")]),a("attachments-list",{attrs:{size:"lg",attachments:e.attachments},on:{viewAttachment:function(i){return e.$emit("viewAttachment",i)}}})],1):e._e(),e.owner.id&&!e.isOwner?a("div",{staticClass:"plan-section"},[a("h2",[e._v(e._s(e.owner.type_account))]),a("div",{staticClass:"owner"},[a("div",{staticClass:"owner__pic"},[a("user-avatar",{attrs:{user:e.owner,size:56}})],1),a("div",{staticClass:"owner__info"},[a("div",{staticClass:"owner__name"},[e._v(e._s(e.owner.full_name))]),a("router-link",{staticClass:"owner__link",attrs:{to:{name:"public-page-short-link-plans",params:{user_type:e.ownerUserType,user_id:e.owner.custom_url||e.owner.id}}}},[e._v("See More Programs")])],1)])]):e._e()])},Yo=[],Bo=l(Oo,Uo,Yo,!1,null,"ee1a996e");const Vo=Bo.exports,No={name:"PlanCover",props:{covers:{type:Array,default:function(){return[]}}},data:function(){return{isMobileLayout:!1}},computed:{isStorefrontPage(){return["public-page-view","public-page-short-link","own-public-page-edit"].includes(this.$route.name)},cover(){let t=this.isMobileLayout&&!this.isStorefrontPage?"mobile_view":"main";return this.covers.length>0?this.covers.find(e=>e.cover_type==t):null},youtubeSource(){var t,e;return(e=(t=this.cover)==null?void 0:t.media)!=null&&e.video_id?`https://www.youtube.com/embed/${this.cover.media.video_id}?autoplay=1&controls=0&disablekb=1&mute=1&loop=1&playsinline=1&fs=0&iv_load_policy=3&rel=0&modestbranding=1&showinfo=0&playlist=${this.cover.media.video_id}`:null},isVideo(){var t,e;return this.cover&&((e=(t=this.cover)==null?void 0:t.media)==null?void 0:e.type)=="video"},isVideoPublished(){var t,e;return this.isVideo&&((e=(t=this.cover)==null?void 0:t.media)==null?void 0:e.state)=="published"},isShowPLaceholder(){var t,e;return this.cover==null?!0:!!(this.cover&&((e=(t=this.cover)==null?void 0:t.media)==null?void 0:e.id)==null)},isPlaceholderClickable(){return!!this.$listeners.change}},watch:{cover:{handler:function(t){var e;t&&((e=t.media)!=null&&e.id)&&this.isVideoPublished?this.$nextTick(function(){this.initPlayer()}):this.destroyPlayer()},deep:!0}},mounted(){this.initPlayer()},created(){this.mq=window.matchMedia("(max-width: 797.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches)},beforeDestroy(){this.destroyPlayer(),this.mq&&this.mq.removeListener(this.updateMatches)},methods:{updateMatches(){this.isMobileLayout=this.mq.matches},initPlayer(){this.isVideoPublished&&(this.player=lt(this.$el.querySelector("#videoPlayer"),{controlBar:{pictureInPictureToggle:!1,textTrackSettings:!1},html5:{vhs:{bandwidth:1e7,enableLowInitialPlaylist:!1,limitRenditionByPlayerDimensions:!1,useDevicePixelRatio:!0},nativeTextTracks:!1}}),this.cover.media.cover_sm&&this.player.poster(this.cover.media.cover_sm),this.player.src({type:"application/x-mpegURL",src:this.cover.media.stream_src}))},destroyPlayer(){this.player&&(this.player.dispose(),this.player=null)},change(){this.isPlaceholderClickable&&this.$emit("change")}}};var Wo=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"cover"},[e.isShowPLaceholder?a("div",{staticClass:"cover__placeholder",class:{clickable:e.isPlaceholderClickable},on:{click:e.change}},[a("div",{staticClass:"placeholder-holder"},[a("SvgIcon",{attrs:{name:"imageIcon",size:120}}),e.$slots["placeholder-text"]?a("span",[e._t("placeholder-text")],2):e._e()],1)]):a("div",{staticClass:"cover__body"},[e.cover.blob?[a("img",{attrs:{src:e.cover.blob}})]:e.cover.media.type=="youtube"?a("div",{key:"youtube",staticClass:"embed-responsive embed-responsive-16by9"},[a("iframe",{staticClass:"embed-responsive-item",attrs:{id:"ytplayer",type:"text/html",width:"1440",height:"420",frameborder:"0",allowfullscreen:"allowfullscreen",allow:"autoplay",gesture:"media",src:e.youtubeSource}})]):e.isVideo?a("div",{key:"video",staticClass:"video-js-holder"},[e.isVideoPublished?[a("video",{staticClass:"video-js",attrs:{id:"videoPlayer",width:"1440px",height:"420px",playsinline:"playsinline",autoplay:"autoplay",loop:"loop",muted:"muted"},domProps:{muted:!0}})]:[a("img",{attrs:{src:e.cover.media.cover_hd}})]],2):a("picture",{key:"picture"},[e.cover?[a("source",{attrs:{srcset:e.cover.large,media:"(min-width: 1441px)"}}),a("source",{attrs:{srcset:e.cover.normal+", "+e.cover.large+" 2x",media:"(min-width: 960px) and (max-width: 1440px)"}}),a("source",{attrs:{srcset:e.cover.small+", "+e.cover.normal+" 2x"}}),a("img",{attrs:{src:e.cover.normal,alt:e.cover.media.caption}})]:e._e()],2)],2)])},Ho=[],qo=l(No,Wo,Ho,!1,null,"ee86bf42");const zo=qo.exports,jo={name:"UploadButton",props:{image:{type:String,default:null},disabled:{type:Boolean,dafaul:!1},loading:{type:Boolean,dafaul:!1},file:{type:Boolean,dafaul:!0},hideChangeButton:{type:Boolean,default:!1},hideRemoveButton:{type:Boolean,default:!1},formats:{type:[String,Array],default:"*"}},computed:{uploadFormat(){let t;return Array.isArray(this.formats)?t=this.formats.map(e=>"."+e):this.formats=="*"?t=this.formats:t="."+this.formats,t}},methods:{onFileChange(t){const e=t.target.files||t.dataTransfer.files;e.length&&this.$emit("change",e[0])},onClick(){this.file||this.$emit("change")},remove(){this.$emit("remove")},edit(){this.$emit("change")}}};var Go=function(){var e=this,a=e._self._c;return e.image?a("div",e._b({staticClass:"file-view",class:{"file-view_loading":e.loading,disabled:e.disabled}},"div",e.$attrs,!1),[e.loading?a("div",{staticClass:"loading"}):e._e(),a("img",{attrs:{src:e.image}}),a("div",{staticClass:"actions"},[e.hideChangeButton?e._e():[e.file?a("div",{staticClass:"btn btn-primary btn-round btn-white-border btn-xs",class:{disabled:e.disabled}},[e.disabled?e._e():a("input",{key:"change",attrs:{type:"file",accept:e.uploadFormat},on:{change:e.onFileChange}}),a("SvgIcon",{attrs:{name:"editIcon"}})],1):a("div",{staticClass:"btn btn-primary btn-round btn-white-border btn-xs",class:{disabled:e.disabled,"mr-0":e.hideRemoveButton},on:{click:e.edit}},[a("SvgIcon",{attrs:{name:"editIcon"}})],1)],e.hideRemoveButton?e._e():[a("button",{staticClass:"btn btn-danger btn-round btn-white-border btn-xs",attrs:{type:"button",disabled:e.disabled},on:{click:e.remove}},[a("SvgIcon",{attrs:{name:"trashIcon"}})],1)]],2)]):a("div",e._b({staticClass:"btn btn-success btn-file-input",class:{"btn-file-input_loading":e.loading,disabled:e.disabled},on:{click:e.onClick}},"div",e.$attrs,!1),[e.file&&!e.disabled?a("input",{key:"create",attrs:{type:"file",accept:e.uploadFormat},on:{change:e.onFileChange}}):e._e(),a("span",{staticClass:"has-icon"},[a("span",{staticClass:"has-icon__icon"},[e.loading?a("SvgIcon",{attrs:{name:"loadingIcon"}}):a("SvgIcon",{attrs:{name:"imageIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._t("default",function(){return[e._v("Upload")]})],2)])])},Zo=[],Ko=l(jo,Go,Zo,!1,null,"940616e0");const re=Ko.exports,wt={individual:"1-2-1",fixed:"Fixed Length",one_many:"Group Rolling Calendar",membership:"Session 1, Day 1"},Qo={name:"PlanDetail",props:{plan:Object,validation:Object,isEdit:{type:Boolean,default:!1},backRoute:{type:String,default:null}},data:()=>({planTypes:wt,copied:!1,timer:null}),computed:{programsRoute(){var t;if(this.backRoute)return{path:this.backRoute};if(this.currentUser.role=="coach"&&this.currentUser.id==this.plan.user.id||this.plan.user.id==null)return{name:"my_plans"};if(this.currentUser.role=="user"&&this.plan.is_bought)return{name:"user_my_plans"};if((t=this.plan.user)!=null&&t.type_account){const e=this.plan.user.custom_url||this.plan.user.id;return{name:"public-page-short-link-plans",params:{user_type:this.plan.user.type_account.charAt(0).toLowerCase(),user_id:e}}}else return{name:"public-page-plans",params:{user_id:this.plan.user.id}}},planType(){let t=this.plan.plan_type||this.plan.planType;return this.planTypes[t]},planState(){return this.plan.state||this.plan.planState},isOwner:function(){return this.currentUser&&this.plan.user.id==this.currentUser.id},link(){let t="";if(this.plan.custom_url)t=this.plan.custom_url;else if(this.plan.id)t=this.plan.id.toString();else return null;let e=this.$router.resolve({name:"public_plan",params:{plan_id:t}});return new URL(e.href,this.accountPublicRouteBase)},linkText(){return`${this.link.origin.replace(/https?:\/\//i,"")}/p/${this.link.pathname.split("/").slice(-1)[0]}`},...C(["currentUser"]),...h(["accountPublicRouteBase"])},methods:{copyPublicLink(){this.$copyText(this.link.href,this.$refs.copyContainer).then(()=>{this.copied=!0,this.timer=window.setTimeout(()=>{this.copied=!1},3e3)})}},components:{PlanCover:zo,PlanInfo:fo,PlanDetails:Vo,MediaModal:se,UserAvatar:$,UploadButton:re}};var Jo=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"plan-page",class:[e.isEdit?"plan-page_edit":"plan-page_view"]},[a("div",{staticClass:"plan-header"},[e.$slots["top-actions"]?[e._t("top-actions")]:e._e(),e.$slots["edit-cover"]?a("div",{staticClass:"plan-header__holder"},[e._t("edit-cover")],2):e._e()],2),a("div",{staticClass:"plan-body"},[a("div",{staticClass:"container"},[a("div",{staticClass:"plan-section plan-section_first"},[a("div",{staticClass:"plan-main"},[e._t("top-bar",function(){return[a("div",{staticClass:"plan-info"},[a("div",{staticClass:"row"},[e.$slots.cover?a("div",[e._t("cover")],2):e._e(),a("div",{staticClass:"col-12 col-lg d-flex align-items-center"},[a("div",{staticClass:"plan-info__devided"},[a("div",{staticClass:"plan-title-holder"},[e._t("title",function(){return[a("h1",{staticClass:"plan-title"},[e._v(e._s(e.plan.title))])]}),e.$slots.dates?a("div",[a("div",{staticClass:"plan-dates"},[e._t("dates")],2)]):e._e()],2),e._t("url",function(){return[e.link&&e.isOwner?[a("div",{staticClass:"plan-url-link position-relative",on:{click:e.copyPublicLink}},[a("div",{ref:"copyContainer",staticClass:"copy-field"}),a("span",{class:{"invisible-url":e.copied}},[e._v(" "+e._s(e.linkText)+" ")]),e.copied?a("span",{staticClass:"copied-text"},[e._v(" "+e._s(e.$t("en.programs.copied_text"))+" ")]):e._e()])]:e._e()]}),e.isOwner?[e._t("plan-type",function(){return[a("div",{staticClass:"plan-type",class:{"pt-2":!e.link}},[a("span",{staticClass:"plan-type__label"},[e._v("Program type:")]),a("span",{staticClass:"plan-type__value"},[e._v(" "+e._s(e.planType)+" ")])])]})]:e._e()],2)])])])]}),e.$slots["publish-actions"]?a("div",{staticClass:"plan-actions"},[e._t("publish-actions")],2):e._e(),e.$slots["bar-extra-actions"]||e.$slots["schedule-actions"]?a("div",{staticClass:"plan-view-actions"},[e.$slots["bar-extra-actions"]?a("div",{staticClass:"plan-extra-actions"},[e._t("bar-extra-actions")],2):e._e(),e._t("schedule-actions")],2):e._e()],2),e.isEdit?e._e():a("div",{staticClass:"plan-meta"},[a("plan-info",{attrs:{plan:e.plan}},[a("template",{slot:"price"},[e._t("price")],2),a("template",{slot:"price-extra"},[e._t("price-extra")],2)],2)],1)]),e._t("body",function(){return[a("plan-details",{attrs:{description:e.plan.description,attachments:e.plan.attachments,"skip-sales-page":e.plan.skip_sales_page,owner:e.plan.user},on:{viewAttachment:function(i){return e.$refs.mediaModal.openLightbox(i)}}})]})],2)]),a("media-modal",{ref:"mediaModal",attrs:{lazy:"lazy"}})],1)},Xo=[],er=l(Qo,Jo,Xo,!1,null,"019a9355");const tr=er.exports,z=["#23a9fc","#6610f2","#8c56e3","#e83e8c","#db2b44","#ff9209","#ffcb09","#389840","#20c997","#17a2b8"],ar={name:"ColorPicker",props:{value:{type:String}},data(){return{colors:z}},mounted:function(){this.value||this.$nextTick(()=>{let t=z[Math.floor(Math.random()*z.length)];this.$emit("input",t)})}};var ir=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"color-picker"},[a("b-dropdown",{attrs:{variant:"link"}},[a("template",{slot:"button-content"},[a("span",{staticClass:"color",class:{empty:!e.value},style:{backgroundColor:e.value}})]),a("div",{staticClass:"colors"},[e._l(e.colors,function(i){return[a("b-dropdown-item-button",{on:{click:function(s){return e.$emit("input",i)}}},[a("span",{staticClass:"color",style:{backgroundColor:i}})])]})],2)],2)],1)},sr=[],nr=l(ar,ir,sr,!1,null,"f1922a17");const or=nr.exports,rr={name:"ModalAddToCalendar",components:{Datepicker:xt,ColorPicker:or},props:{value:{type:Object}},data(){return{disabled:[],format:"dd/MM/yyyy",clear:!0,datepickerDate:new Date,busy:!1}},computed:{okButtonTitle(){return["membership","fixed"].includes(this.value.plan_type)&&this.value.plan_pricing=="paid"?this.$t("en.modal.calendar.yes_paid"):this.$t("en.modal.calendar.yes")},startDate(){return this.$moment(this.datepickerDate,"DD/MM/YYYY").format("dddd, DD MMMM YYYY")},disabledDates(){const t=new Date;t.setDate(new Date().getDate()-1);const e={to:t};if(this.value.plan_type=="membership"&&this.value.launch_date&&this.$moment(this.value.launch_date,"YYYY-MM-DD").isSameOrBefore(this.$moment(),"day")){const i=new Date;i.setDate(new Date().getDate()+7),e.from=i}return e},firstPaymentDate(){if(this.value.trial_days){let t=new Date(this.datepickerDate),e=t.getDate();return t.setDate(e+this.value.trial_days),this.$moment(t,"DD/MM/YYYY").format("DD MMMM YYYY")}else return this.$moment(this.datepickerDate,"DD/MM/YYYY").format("DD MMMM YYYY")}},methods:{show(){this.$refs.addToCalendarModal.show()},hide(){this.$refs.addToCalendarModal.hide()},resetStartDate(){this.datepickerDate=new Date},addPlans(){this.busy=!0,this.$emit("setStartDate",this.$moment(this.datepickerDate).format("DD/MM/YYYY"))},stopLoading(){this.busy=!1}}};var lr=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"addToCalendarModal",attrs:{size:"572",title:e.$t("en.modal.calendar.title"),"hide-header-close":""}},[a("div",{staticClass:"add-to-calendar"},[a("p",{staticClass:"add-to-calendar_subtitle"},[e._v(" Please select the date you'd like the programming to start from. ")]),a("div",{staticClass:"choose-date d-flex justify-content-center"},[a("datepicker",{attrs:{inline:!0,format:e.format,"monday-first":!0,"disabled-dates":e.disabledDates,"calendar-class":"start-date","wrapper-class":"choose-date-wrap"},model:{value:e.datepickerDate,callback:function(i){e.datepickerDate=i},expression:"datepickerDate"}})],1),a("div",{staticClass:"params"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[a("div",{staticClass:"date"},[a("div",{staticClass:"value text-center"},[e._v(" "+e._s(e.startDate)+" ")])])])])]),e.value.plan_type=="membership"&&e.value.plan_pricing!=="free"?a("p",{staticClass:"add-to-calendar_info"},[e._v(" Your first payment will be taken on: "),a("span",[e._v(e._s(e.firstPaymentDate))]),e._v(". "),e.value.trial_days?e._e():a("span",[e._v("Only at this point will programming appear in the app.")])]):e._e()]),a("template",{slot:"modal-footer"},[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:e.hide}},[e._v(" Cancel ")]),a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.busy},attrs:{type:"button",disabled:e.busy},on:{click:e.addPlans}},[e._v(" "+e._s(e.okButtonTitle)+" ")])])],2)},cr=[],dr=l(rr,lr,cr,!1,null,"eee40e97");const ur=dr.exports,pr={name:"ModalPlanWaiver",components:{AttachmentsList:gt,MediaModal:se},props:{waiver:{type:Object},accepted:{type:Boolean,default:!1},planTitle:{type:String,default:""},clearWaiver:{type:Boolean,default:!0}},data:()=>({waiverAccept:!1,goBack:!0,waiverDatails:{}}),computed:{waiverText(){var t;return this.waiver?(t=this.waiver)!=null&&t.text?this.waiver.text:this.waiver.accepted_text:null}},mounted(){this.waiverDatails=this.waiver},methods:{show(){this.waiverAccept||this.$refs.planWaiverModal.show()},hide(){this.$refs.planWaiverModal.hide(),this.waiverAccept=!this.clearWaiver},hiddenModal(){this.goBack&&this.$route.name=="plan_purchase_form"&&this.$emit("hideWaiverModal")},acceptWaiver(){if(!this.waiverAccept)return!1;this.$emit("waiverAccepted"),this.goBack=!1,this.hide()}}};var hr=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"planWaiverModal",attrs:{size:"572",scrollable:"",lazy:"lazy",title:"Pre-acceptance waiver"},on:{hidden:e.hiddenModal}},[e.accepted?[a("div",{staticClass:"accepted-info"},[e._v(" "+e._s(e.waiver.full_name)+" "),a("b",[e._v("accepted")]),e._v(" the waiver to "+e._s(e.planTitle)+" on "),a("b",[e._v(e._s(e._f("moment")([e.waiver.created_at,"YYYY-MM-DD HH:mm:ss Z"],"DD MMM, YYYY")))]),e._v(" at "),a("b",[e._v(e._s(e._f("moment")([e.waiver.created_at,"YYYY-MM-DD HH:mm:ss Z"],"HH:mm")))])])]:e._e(),e.waiverText?a("div",{staticClass:"description editor-styles",domProps:{innerHTML:e._s(e.waiverText)}}):e._e(),e.waiver?a("attachments-list",{attrs:{size:"lg",attachments:e.waiver.attachments},on:{viewAttachment:function(i){return e.$refs.mediaModal.openLightbox(i)}}}):e._e(),e.accepted?e._e():[a("div",{staticClass:"custom-control custom-checkbox",staticStyle:{"margin-top":"2rem"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.waiverAccept,expression:"waiverAccept"}],staticClass:"custom-control-input",attrs:{id:"accept",type:"checkbox"},domProps:{checked:Array.isArray(e.waiverAccept)?e._i(e.waiverAccept,null)>-1:e.waiverAccept},on:{change:function(i){var s=e.waiverAccept,o=i.target,c=!!o.checked;if(Array.isArray(s)){var u=null,p=e._i(s,u);o.checked?p<0&&(e.waiverAccept=s.concat([u])):p>-1&&(e.waiverAccept=s.slice(0,p).concat(s.slice(p+1)))}else e.waiverAccept=c}}}),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"accept"}},[e._v(" Confirmed as read and accepted ")])])],a("template",{slot:"modal-footer"},[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:e.hide}},[e._v(" Cancel ")]),e.accepted?e._e():[a("button",{staticClass:"btn btn-primary",class:{disabled:!e.waiverAccept},attrs:{type:"button"},on:{click:e.acceptWaiver}},[e._v(" Accept ")])]],2),a("media-modal",{ref:"mediaModal",attrs:{lazy:"lazy"}})],2)},_r=[],mr=l(pr,hr,_r,!1,null,"4544fdc4");const fr=mr.exports,vr={name:"OverlayLoader",props:{show:{type:Boolean,dafaul:!1},bgColor:{type:String,default:"#fff"}}};var yr=function(){var e=this,a=e._self._c;return a("b-overlay",{attrs:{show:e.show,rounded:"sm","no-center":"","bg-color":e.bgColor},scopedSlots:e._u([{key:"overlay",fn:function(){return[a("div",{staticClass:"loading mt-5"})]},proxy:!0}])},[e._t("default")],2)},br=[],gr=l(vr,yr,br,!1,null,null);const wr=gr.exports,Cr={name:"ModalReschedule",components:{DatePicker:A},props:{plan_id:{type:[Number,String]},plan_title:{type:String},return_data_after_update:{type:Boolean,default:!1}},data(){return{rescheduleDate:null,rescheduleMinDate:"",rescheduleStartDate:"",loadingRescheduleInfo:!1,isRescheduleSubmited:!1}},methods:{showModal(t){this.rescheduleStartDate=t.start_current_schedule,this.rescheduleMinDate=t.min_available_date,this.$refs.rescheduleModal.show()},hideModal(){this.$refs.rescheduleModal.hide(),this.rescheduleDate=this.rescheduleStartDate=this.rescheduleMinDate=null},disabledDate(t){let e=new Date(this.$moment(this.rescheduleMinDate).format("YYYY-MM-DD"));return e.setDate(e.getDate()-1),t.getTime()<e.getTime()},reschedule(){this.isRescheduleSubmited=!0,d.request({url:`plans/${this.plan_id}/re_add_schedule`,method:"POST",data:{date:this.$moment(this.rescheduleDate).format("YYYY-MM-DD")}}).then(()=>{this.$notify({group:"alerts",type:"congrats",title:`${this.plan_title} has been successfully rescheduled.`}),this.return_data_after_update&&this.$emit("updateStartDate",this.$moment(this.rescheduleDate).format("YYYY-MM-DD")),this.hideModal()}).catch(m).finally(()=>{this.isRescheduleSubmited=!1})}}};var kr=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"rescheduleModal",attrs:{title:"Reschedule",lazy:""},scopedSlots:e._u([{key:"modal-footer",fn:function({hide:i}){return[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(s){return i()}}},[e._v(" Cancel ")]),a("button",{staticClass:"button btn btn-primary",class:{"btn-loading":e.isRescheduleSubmited},attrs:{type:"button",disabled:e.isRescheduleSubmited||!e.rescheduleDate},on:{click:e.reschedule}},[e._v(" Apply ")])]}}])},[a("p",[e._v("Use the date selector below to change the start date of this program.")]),a("div",{staticClass:"form-group"},[a("label",[e._v("Select date")]),a("date-picker",{staticClass:"picker",attrs:{"disabled-date":e.disabledDate,lang:{formatLocale:{firstDayOfWeek:1}},clearable:!1,"input-class":"form-control",editable:!1,format:"DD/MM/YYYY",placeholder:"DD/MM/YYYY","input-attr":{required:!0}},model:{value:e.rescheduleDate,callback:function(i){e.rescheduleDate=i},expression:"rescheduleDate"}},[a("template",{slot:"icon-calendar"},[a("div",{staticClass:"icon icon_size_16 icon_calendar"})])],2),a("template",{slot:"error"}),a("template",{slot:"hint"})],2)])},Sr=[],Ar=l(Cr,kr,Sr,!1,null,null);const Pr=Ar.exports,Tr={name:"ModalUnsibscribe",props:{plan:{type:Object},removeFrom:{type:String,default:"plan"},showAdditionalText:{type:Boolean}},data(){return{isSubmited:!1}},methods:{showModal(){this.$refs.agreeUnSubscribeModal.show()},hideModal(){this.$refs.agreeUnSubscribeModal.hide()},unSubscribe(){this.isSubmited=!0;let t="";this.removeFrom=="plan"?t=`stripe/plan/${this.plan.id}/unsubscribe`:this.removeFrom=="purchases"&&(t=`athlete/plans/${this.plan.id}/unsubscribe`),d.delete(t).then(e=>{this.$emit("unsubscribeData",e.data),this.$notify({group:"alerts",type:"congrats",title:"Program successfully cancelled."}),this.hideModal()}).catch(m).then(()=>{this.isSubmited=!1})}}};var $r=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"agreeUnSubscribeModal",attrs:{title:"Cancel Subscription",lazy:"",size:"630"},scopedSlots:e._u([{key:"modal-footer",fn:function({hide:i}){return[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(s){return i()}}},[e._v(" "+e._s(e.$t("en.plan.modal.cancel.button.no"))+" ")]),a("button",{staticClass:"btn btn-danger",class:{"btn-loading":e.isSubmited},attrs:{type:"button",disabled:e.isSubmited},on:{click:e.unSubscribe}},[e._v(" "+e._s(e.$t("en.plan.modal.cancel.button.yes"))+" ")])]}}])},[a("p",{class:{"mb-0":!e.showAdditionalText}},[e._v(" "+e._s(e.$t("en.plan.modal.cancel.text"))+" ")]),e.showAdditionalText?a("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("en.plan.modal.cancel.textSecond"))+" ")]):e._e()])},xr=[],Ir=l(Tr,$r,xr,!1,null,null);const Rr=Ir.exports,Er={name:"ModalResume",methods:{showModal(){this.$refs.resumeSubscribe.show()},hideModal(){this.$refs.resumeSubscribe.hide()},startFrom(t){this.$emit("startFrom",t),this.hideModal()}}};var Dr=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"resumeSubscribe",attrs:{title:"Resume Subscription",lazy:"",size:"lg"}},[a("p",{staticClass:"md-0"},[e._v(e._s(e.$t("en.plan.modal.resume.text")))]),a("template",{slot:"modal-footer"},[a("button",{staticClass:"button btn btn-outline-dark",attrs:{type:"button"},on:{click:function(i){return i.preventDefault(),e.startFrom("restart")}}},[e._v(" "+e._s(e.$t("en.plan.modal.resume.restart"))+" ")]),a("button",{staticClass:"button btn btn-primary",attrs:{type:"button"},on:{click:function(i){return i.preventDefault(),e.startFrom("continue")}}},[e._v(" "+e._s(e.$t("en.plan.modal.resume.continue"))+" ")])])],2)},Fr=[],Mr=l(Er,Dr,Fr,!1,null,null);const Lr=Mr.exports,Or={name:"SignInForm",data:()=>({isSubmited:!1,isPasswordVisible:!1,user:{email:"",password:""}}),validations:{user:{email:{required:Re,email:t=>It(t.toLowerCase())},password:{required:Re,minLength:Rt(6)}}},computed:{resetPasswordQuery(){return this.user.email?{email:this.user.email}:{}}},methods:{signin(){this.$v.$touch(),this.$v.$invalid||(this.isSubmited=!0,this.$store.dispatch("signin",{email:this.user.email.toLowerCase(),password:this.user.password}).then(()=>{this.$emit("loginDone")}).catch(t=>{var e,a;this.isSubmited=!1,(a=(e=t==null?void 0:t.response)==null?void 0:e.data)!=null&&a.subdomain&&this.$notify({group:"alerts",type:"error",title:'You do not have access rights to that FITR subdomain. Please login <a href="https://app.fitr.training">here</a> or contact support for more help.',duration:-1})}))},togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}}};var Ur=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("form",{staticClass:"onboarding-form",attrs:{method:"POST",novalidate:""},on:{submit:function(i){return i.preventDefault(),e.signin.apply(null,arguments)}}},[a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"email"}},[e._v("Email")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.$v.user.email.$model,expression:"$v.user.email.$model"}],staticClass:"form-control",class:{"is-invalid":e.$v.user.email.$anyError},attrs:{id:"email",type:"email",placeholder:"Enter email"},domProps:{value:e.$v.user.email.$model},on:{input:function(i){i.target.composing||e.$set(e.$v.user.email,"$model",i.target.value)}}}),e.$v.user.email.$anyError?a("div",{staticClass:"invalid-feedback"},[e._v(" "+e._s(e.$t("en.validation_errors.invalid_email_message"))+" ")]):e._e()]),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"password"}},[e._v("Password")]),a("div",{staticClass:"password-wrap"},[(e.isPasswordVisible?"text":"password")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:e.$v.user.password.$model,expression:"$v.user.password.$model"}],staticClass:"form-control",class:{"is-invalid":e.$v.user.password.$anyError},attrs:{id:"password",placeholder:"Password",name:"current-password",autocomplete:"current-password",type:"checkbox"},domProps:{checked:Array.isArray(e.$v.user.password.$model)?e._i(e.$v.user.password.$model,null)>-1:e.$v.user.password.$model},on:{change:function(i){var s=e.$v.user.password.$model,o=i.target,c=!!o.checked;if(Array.isArray(s)){var u=null,p=e._i(s,u);o.checked?p<0&&e.$set(e.$v.user.password,"$model",s.concat([u])):p>-1&&e.$set(e.$v.user.password,"$model",s.slice(0,p).concat(s.slice(p+1)))}else e.$set(e.$v.user.password,"$model",c)}}}):(e.isPasswordVisible?"text":"password")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:e.$v.user.password.$model,expression:"$v.user.password.$model"}],staticClass:"form-control",class:{"is-invalid":e.$v.user.password.$anyError},attrs:{id:"password",placeholder:"Password",name:"current-password",autocomplete:"current-password",type:"radio"},domProps:{checked:e._q(e.$v.user.password.$model,null)},on:{change:function(i){return e.$set(e.$v.user.password,"$model",null)}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.$v.user.password.$model,expression:"$v.user.password.$model"}],staticClass:"form-control",class:{"is-invalid":e.$v.user.password.$anyError},attrs:{id:"password",placeholder:"Password",name:"current-password",autocomplete:"current-password",type:e.isPasswordVisible?"text":"password"},domProps:{value:e.$v.user.password.$model},on:{input:function(i){i.target.composing||e.$set(e.$v.user.password,"$model",i.target.value)}}}),a("button",{staticClass:"btn btn-icon",attrs:{type:"button"},on:{click:e.togglePasswordVisibility}},[e.isPasswordVisible?a("SvgIcon",{attrs:{name:"eyeClosedIcon"}}):a("SvgIcon",{attrs:{name:"eyeOpenIcon"}})],1),e.$v.user.password.$anyError?a("div",{staticClass:"invalid-feedback"},[e._v(" Password must have at least "+e._s(e.$v.user.password.$params.minLength.min)+" characters. ")]):e._e()])]),a("div",{staticClass:"forgot"},[a("router-link",{attrs:{to:{name:"onboarding-forgot-password",query:e.resetPasswordQuery}}},[e._v(" Forgot password? ")])],1),a("div",{staticClass:"onboarding-main-action"},[a("button",{staticClass:"btn btn-primary btn-block",class:{"btn-loading":e.isSubmited},attrs:{type:"submit",disabled:e.isSubmited||e.$v.$invalid}},[e._v(" Log in to FITR ")])])])},Yr=[],Br=l(Or,Ur,Yr,!1,null,"950d2352");const Vr=Br.exports,Nr={name:"SignInModal",components:{SignInForm:Vr},methods:{showModal(){this.$refs.SignInModal.show()},hideModal(){this.$refs.SignInModal.hide()},loginDone(){this.$emit("loginDone"),this.hideModal()}}};var Wr=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"SignInModal",attrs:{size:"680",lazy:"lazy",title:"Log in required","no-close-on-esc":"","no-close-on-backdrop":"","hide-header-close":"","hide-footer":!0}},[a("sign-in-form",{on:{loginDone:e.loginDone}}),a("div",{staticClass:"has-account"},[e._v(" Don't have an account? "),a("router-link",{attrs:{id:"signup",to:{name:"onboarding-role-selection"}}},[e._v(" Sign up ")])],1)],1)},Hr=[],qr=l(Nr,Wr,Hr,!1,null,"983c31b5");const zr=qr.exports,jr={name:"MediaCrop",components:{Cropper:Ft},props:{coverTypes:{type:Object},currentCoverType:{type:String,default:"main"},backAvailable:{type:Boolean,default:!0},newFileButtonLabel:{type:String,default:"Upload new cover"},uploadNewMode:{type:String,default:"library",validator:function(t){return["library","file"].indexOf(t)!==-1}}},data(){return{currentStepIndx:0,isStepBusy:!1,results:{},media:null,file:null,isReady:!1,isCropReady:!1}},computed:{stencilProps(){return{aspectRatio:this.currentType.width/this.currentType.height}},currentType(){return this.coverTypes?this.coverTypes[this.currentCoverType]:{}}},methods:{crop(t){this.media=JSON.parse(JSON.stringify(t)),this.showModal()},saveCrop(){this.isStepBusy=!0,new Promise(t=>{const{coordinates:e,canvas:a}=this.$refs.cropper.getResult();let i={coordinates:e};a.toBlob(s=>{i.blob=URL.createObjectURL(s),t(i)},"image/jpg",.4)}).then(t=>{this.results=t,this.results.cover_type=this.currentType.cover_type,this.submitCrop()})},submitCrop(){const t={media:this.media,crop:this.results,isChanged:!0};this.uploadNewMode=="file"&&(t.newOriginalFile=this.file),this.$emit("input",t),this.hideModal()},prevStep(){this.$emit("back"),this.hideModal()},showModal(){this.$refs.modal.show()},hideModal(){this.$refs.modal.hide()},handleModalShown(){this.isReady=!0},handleModalHidden(){this.media=null,this.results={},this.isStepBusy=!1,this.isReady=!1,this.isCropReady=!1,this.file=null},onFileChange(t){const e=t.target.files||t.dataTransfer.files;if(!e.length)return;this.isStepBusy=!0,this.file=e[0];const a=new FileReader;a.onload=i=>{this.crop({src:i.target.result}),this.isStepBusy=!1},a.readAsDataURL(this.file)},handleCropReady(){this.isCropReady=!0}}};var Gr=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"modal",attrs:{id:"modal",lazy:"lazy","modal-class":"library-popup library-popup_crop"},on:{hidden:e.handleModalHidden,shown:e.handleModalShown}},[a("template",{slot:"modal-header"},[a("div",{staticClass:"row justify-content-md-between align-items-center"},[a("div",{staticClass:"col-12 col-md-auto"},[a("h5",{staticClass:"modal-title"},[e._v(e._s(e.currentType.title))])]),a("div",{staticClass:"col-12 col-md-auto mt-3 mt-md-0"},[e.uploadNewMode=="file"?a("button",{staticClass:"btn btn-primary choose-file-button",class:{"btn-loading":e.isStepBusy},attrs:{type:"button",disabled:e.isStepBusy||!e.isCropReady}},[e.isStepBusy?e._e():a("input",{key:"change",attrs:{type:"file"},on:{change:e.onFileChange}}),a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"imageIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v(e._s(e.newFileButtonLabel))])])]):a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isStepBusy},attrs:{type:"button",disabled:e.isStepBusy||!e.isCropReady},on:{click:e.prevStep}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"imageIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v(e._s(e.newFileButtonLabel))])])])])]),a("p",{staticClass:"step-desc",domProps:{innerHTML:e._s(e.currentType.descr)}}),a("button",{staticClass:"close",attrs:{type:"button"},on:{click:e.hideModal}},[e._v("×")])]),a("template",{slot:"modal-footer"},[a("div",{staticClass:"modal-footer-holder"},[e.backAvailable?a("button",{staticClass:"btn btn-link mr-auto",attrs:{type:"button",disabled:e.isStepBusy},on:{click:e.prevStep}},[e._v(" Back ")]):e._e(),a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button",disabled:e.isStepBusy},on:{click:e.hideModal}},[e._v(" Cancel ")]),a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isStepBusy},attrs:{type:"button",disabled:e.isStepBusy||!e.isCropReady},on:{click:e.saveCrop}},[e._v(" Save crop ")])])]),a("div",{staticClass:"cropper-body_wrap"},[a("div",{staticClass:"cropper-body"},[e.isReady&&e.media?a("cropper",{ref:"cropper",attrs:{classname:"cropper","background-classname":"cropper__bg","stencil-props":e.stencilProps,"min-height":1,"min-width":2,"wheel-resize":!1,src:e.media.src},on:{ready:e.handleCropReady}}):e._e()],1)])],2)},Zr=[],Kr=l(jr,Gr,Zr,!1,null,"2094ed92");const Ct=Kr.exports,O_=Object.freeze(Object.defineProperty({__proto__:null,default:Ct},Symbol.toStringTag,{value:"Module"})),Qr=function(){return`<div class='file-preview'>
    <div class='file-preview__status'>
      <svg
        preserveAspectRatio="xMidYMid meet"
        xmlns="http://www.w3.org/2000/svg"
        viewBox="0 0 24 24"
        :style="iconStyle"
        class="file-preview__icon file-preview__icon_loaded"
      >
        <g>
          <path d="M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Z" fill="currentColor" />
          <path
            fill-rule="evenodd"
            clip-rule="evenodd"
            d="M16.673 9.046a1 1 0 0 1 .067 1.412l-4.647 5.112a1.5 1.5 0 0 1-2.17.052l-2.13-2.13a1 1 0 0 1 1.414-1.414l1.758 1.759 4.295-4.724a1 1 0 0 1 1.413-.067Z"
            fill="#fff"
          />
        </g>
      </svg>
    </div>

    <div class="file-preview__body">
      <span class="file-preview__loading">Uploading file:</span>
      <span class='file-preview__title' data-dz-name></span>
      <span class="file-preview__loaded">uploaded.</span>
      <span class="file-preview__error"><span data-dz-errormessage></span></span>
    </div>

    <div class='file-preview__progress'>
      <div class='progress'>
        <div class='progress-bar' style='width:0%;' data-dz-uploadprogress></div>
      </div>
    </div>

    <div class='file-preview__remove'></div>
  </div>`},Jr=function(){return`
      <span class="btn btn-primary d-block">
        Upload from device
      </span>
  `},Xr={name:"LibraryFiles",components:{vueDropzone:ut,MugenScroll:pt,DocumentIcon:ne,SvgIcon:oe},props:{value:[Array,Object],multiple:Boolean,onlyUpload:Boolean,forbiddenTypes:{type:Array,default:function(){return[]}},searchString:{type:String,default:""},filters:{type:Object,default:function(){return{}}},currentOwner:{type:String,default:"current"}},data:function(){return{localValue:w(this.value),videoUrl:"",isVideoUrlUploadnig:!1,isMobileLayout:!1,currentPage:1,perPage:15,pagination:{},files:[],isReady:!1,isLoading:!1,deletingOneMedia:[],disabledFiles:{},dropzoneOptions:{url:"https://app.fitr.training/api/media",paramName:"file",thumbnailWidth:50,thumbnailHeight:50,maxFilesize:500,dictFileTooBig:"File is too big ({{filesize}}Mb). Max filesize: {{maxFilesize}}Mb.",previewsContainer:"#dropzonePreviews",previewTemplate:Qr(),dictDefaultMessage:Jr(),addRemoveLinks:!1,timeout:0,error(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),typeof e!="string"&&e.error?e=e.error:e.indexOf("<?xml")===0&&(e=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Message")[0].childNodes[0].nodeValue);for(let a of t.previewElement.querySelectorAll("[data-dz-errormessage]"))a.textContent=e}}},awss3:{signingURL:"https://app.fitr.training/api/media/direct_upload",headers:{Authorization:`${localStorage.getItem("token_type")} ${localStorage.getItem("access_token")}`},params:{scope:this.currentOwner},sendFileToServer:!1},sortType:"created_at",sortDir:"desc"}},computed:{isShowAddBlock(){return this.currentOwner=="hyrox"?this.hasHyrox&&this.isAccountOwner:!0},scrollContainer:function(){return this.isMobileLayout?"modal":"scrollWrap"},selectedMedia:{get(){if(this.multiple){let t=this.localValue.filter(i=>i!=null),e=this.files.filter(i=>i!=null);return t.map(i=>e.find(o=>o.id===i.id)||i)}else{let e=this.files.filter(a=>a!=null).find(a=>a.id===this.localValue.id);return Object.assign({},e)}},set(t){this.$emit("input",t)}},isScrollShouldHandle:function(){return this.currentPage<this.pagination.total_pages},filteredFiles(){return this.files.length?this.files.filter(t=>{if(this.currentOwner=="current"&&t.scope=="user")return t;if(this.currentOwner=="hyrox"&&t.scope=="hyrox")return t}):[]},...h(["isAccountOwner","hasHyrox"])},watch:{value:function(){this.localValue=w(this.value)},"filters.type.value":function(){this.currentPage=1,this.updateList()},searchString:function(){this.currentPage=1,this.updateList()},sortType:function(){this.currentPage=1,this.updateList()},sortDir:function(){this.currentPage=1,this.updateList()},currentOwner:function(){this.awss3.params.scope=this.currentOwner,this.currentPage=1,this.videoUrl="",this.isReady=!1,this.updateList()}},mounted:function(){this.onlyUpload?(this.isReady=!0,this.files=Y(this.localValue,t=>t.kind!="youtube")):(this.isReady=!1,this.fetch().then(t=>{this.files=t}).catch(t=>{console.log(t)}).finally(()=>{this.isReady=!0}))},created(){document.addEventListener("keydown",this._keyListener),this.mq=window.matchMedia("(max-width: 991.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches)},beforeDestroy(){document.removeEventListener("keydown",this._keyListener),this.mq&&this.mq.removeListener(this.updateMatches)},methods:{_keyListener(t){t.key==="Enter"&&(t.preventDefault(),this.submit())},submit(){this.videoUrl.length&&!this.isVideoUrlUploadnig&&(this.isVideoUrlUploadnig=!0,d.request({url:"media",method:"POST",data:{media:{video_url:this.videoUrl},scope:this.currentOwner}}).then(({data:t})=>{this.videoUrl="",this.files.unshift(t),t.is_new=!0,this.multiple?(this.localValue.unshift(t),this.$emit("input",this.localValue)):this.$emit("input",t)}).catch(m.bind(this)).then(()=>{this.isVideoUrlUploadnig=!1}))},fetch(){var t,e,a,i,s,o;if(!this.onlyUpload){this.isLoading=!0,this.cancel&&this.cancel();let c={owner:this.currentOwner,page:this.currentPage,per_page:this.perPage},u=[];return(e=(t=this.filters)==null?void 0:t.type)!=null&&e.value&&((i=(a=this.filters)==null?void 0:a.type)==null?void 0:i.value.length)>0?u=(o=(s=this.filters)==null?void 0:s.type)==null?void 0:o.value:u=ae(["video","image","other","youtube"],...this.forbiddenTypes),c["q[kind_in]"]=u,c["q[title_cont_any]"]=this.searchString,c["q[s]"]=`${this.sortType} ${this.sortDir}`,new Promise((p,y)=>{d.get("media/fetch",{params:c,cancelToken:new nt(v=>{this.cancel=v})}).then(({data:v})=>{this.pagination=v.pagination,p(v.items),this.$emit("hyroxAccess",v.hyrox_access)}).catch(v=>{m(v),y(v)}).finally(()=>{this.isLoading=!1})})}},removeNewMedia(t){t.is_new&&(this.$set(this.disabledFiles,t.id,!0),d.delete(`media/${t.id}`).then(()=>{let e=this.files.find(a=>a.id===t.id);this.files.splice(this.files.indexOf(e),1),this.multiple?(this.localValue.splice(this.localValue.indexOf(e),1),this.$emit("input",this.localValue)):t.id==this.selectedMedia.id?this.selectedMedia={}:this.selectedMedia=this.selectedMedia}).catch(e=>{m(e)}).finally(()=>{this.$delete(this.disabledFiles,t.id)}))},updateList(){this.onlyUpload?this.isReady=!0:this.fetch().then(t=>{this.files=t}).catch(t=>{console.log(t)}).finally(()=>{this.isReady=!0})},updateMatches(){this.isMobileLayout=this.mq.matches},fileUploaded(t,e){dt(this.forbiddenTypes,e.type)||(e.is_new=!0,this.files.unshift(e),this.multiple?(this.localValue.unshift(e),this.$emit("input",this.localValue)):this.$emit("input",e)),t.timer=window.setTimeout(()=>{t.timer=null,this.$refs.filesDropzone.removeFile(t)},3e3)},fileRemoved(t){t.timer&&window.clearTimeout(t.timer)},fileError(t){var e;if((e=t==null?void 0:t.s3Signature)!=null&&e.key){const a=t.s3Signature.key.match(/uploads\/media\/file\/(\d+)\//)[1];a&&d.delete(`media/${a}`)}},fileSending(t,e){e.ontimeout=()=>{t.previewElement.classList.add("dz-error"),t.previewElement.classList.remove("dz-processing"),t.previewElement.querySelector(".file-preview__error").textContent="Timeout error"}},fileAdded(t){t.previewElement.querySelector(".file-preview__remove").addEventListener("click",()=>{this.$refs.filesDropzone.removeFile(t)}),this.$emit("change")},nextPage(){this.currentPage+=1,this.fetch().then(t=>{this.files=this.files.concat(t)}).catch(t=>{console.log(t)})},sort(t){t===this.sortType&&(this.sortDir=this.sortDir==="asc"?"desc":"asc"),this.sortType=t},toggleSelected(t){if(this.multiple){let e=this.localValue.find(a=>a.id===t.id);e==null?this.localValue.push(t):this.localValue.splice(this.localValue.indexOf(e),1),this.$emit("input",this.localValue)}else this.$emit("input",t)}}};var el=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{ref:"scrollWrap",staticClass:"library-layout"},[e.isReady?[e.isShowAddBlock?[a("span",{staticClass:"library-list__subtitle"},[e._v(" "+e._s(e.$t("en.media.lib.links.youtube_label")))]),a("div",{staticClass:"library-layout__header"},[a("div",{staticClass:"video-link-field",class:{is_loading:e.isVideoUrlUploadnig}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.videoUrl,expression:"videoUrl"}],ref:"VideoUrlInput",staticClass:"form-control form-control_light",attrs:{type:"text",placeholder:e.$t("en.media.lib.links.youtube_modal"),disabled:e.isVideoUrlUploadnig},domProps:{value:e.videoUrl},on:{input:function(i){i.target.composing||(e.videoUrl=i.target.value)}}})]),a("button",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:e.isVideoUrlUploadnig||!e.videoUrl||e.videoUrl.length==0},on:{click:e.submit}},[e._v(" "+e._s(e.$t("en.media.lib.links.youtube_btn"))+" ")]),a("vue-dropzone",{ref:"filesDropzone",staticClass:"dropzone",attrs:{id:"files-dropzone",options:e.dropzoneOptions,awss3:e.awss3,"include-styling":!1},on:{"vdropzone-file-added":e.fileAdded,"vdropzone-sending":e.fileSending,"vdropzone-removed-file":e.fileRemoved,"vdropzone-success":e.fileUploaded,"vdropzone-error":e.fileError}})],1)]:e._e(),a("div",{staticClass:"library-layout__body"},[a("div",{staticClass:"file-preview-list",attrs:{id:"dropzonePreviews"}}),e.filteredFiles.length===0?a("div",{staticClass:"placeholder placeholder_medialibrary mt-4"},[a("div",{staticClass:"container"},[a("div",{staticClass:"placeholder__text"},[a("h1",[e._v(e._s(e.$t("en.media.lib.files.title")))]),a("p",[e._v(e._s(e.$t("en.media.lib.files.text")))])])])]):a("table",{staticClass:"library-list",class:{"library-list_upload":e.onlyUpload}},[a("colgroup",[e.onlyUpload?e._e():a("col",{staticClass:"col-check"}),a("col",{staticClass:"col-pic"}),a("col",{staticClass:"col-main"}),a("col",{staticClass:"col-sub"}),e.onlyUpload?e._e():a("col",{staticClass:"col-date"}),a("col",{staticClass:"col-delete"})]),a("thead",[e.onlyUpload?a("tr",[a("td",{attrs:{colspan:"2"}},[e._v("File Name")]),a("td",{staticClass:"td-sm-h"},[e._v("Type")]),a("td")]):a("tr",[a("td"),a("td",{attrs:{colspan:"2"},on:{click:function(i){return e.sort("title")}}},[a("span",{staticClass:"sort-link"},[a("span",{staticClass:"sort-link__text"},[e._v("File Name")]),e.sortType==="title"?a("span",{staticClass:"sort-link__icon"},[e.sortDir==="desc"?a("span",{staticClass:"icon icon_caret-down"}):a("span",{staticClass:"icon icon_caret-up"})]):e._e()])]),a("td",{staticClass:"td-sm-h",on:{click:function(i){return e.sort("kind")}}},[a("span",{staticClass:"sort-link"},[a("span",{staticClass:"sort-link__text"},[e._v("Type")]),e.sortType==="kind"?a("span",{staticClass:"sort-link__icon"},[e.sortDir==="desc"?a("span",{staticClass:"icon icon_caret-down"}):a("span",{staticClass:"icon icon_caret-up"})]):e._e()])]),a("td",{staticClass:"td-sm-h",on:{click:function(i){return e.sort("created_at")}}},[a("span",{staticClass:"sort-link"},[a("span",{staticClass:"sort-link__text"},[e._v("Date")]),e.sortType==="created_at"?a("span",{staticClass:"sort-link__icon"},[e.sortDir==="desc"?a("span",{staticClass:"icon icon_caret-down"}):a("span",{staticClass:"icon icon_caret-up"})]):e._e()])]),a("td")])]),a("tbody",e._l(e.filteredFiles,function(i){return a("tr",{key:i.id,on:{click:function(s){return e.toggleSelected(i)}}},[e.onlyUpload?e._e():a("td",[i.is_new?a("div",{staticClass:"library-list__new"}):e._e(),a("div",{staticClass:"custom-control custom-control-static",class:[e.multiple?"custom-checkbox":"custom-radio"],on:{click:function(s){s.stopPropagation()}}},[(e.multiple?"checkbox":"radio")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedMedia,expression:"selectedMedia"}],staticClass:"custom-control-input",attrs:{id:"file-"+i.id,type:"checkbox"},domProps:{value:i,checked:Array.isArray(e.selectedMedia)?e._i(e.selectedMedia,i)>-1:e.selectedMedia},on:{change:function(s){var o=e.selectedMedia,c=s.target,u=!!c.checked;if(Array.isArray(o)){var p=i,y=e._i(o,p);c.checked?y<0&&(e.selectedMedia=o.concat([p])):y>-1&&(e.selectedMedia=o.slice(0,y).concat(o.slice(y+1)))}else e.selectedMedia=u}}}):(e.multiple?"checkbox":"radio")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedMedia,expression:"selectedMedia"}],staticClass:"custom-control-input",attrs:{id:"file-"+i.id,type:"radio"},domProps:{value:i,checked:e._q(e.selectedMedia,i)},on:{change:function(s){e.selectedMedia=i}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedMedia,expression:"selectedMedia"}],staticClass:"custom-control-input",attrs:{id:"file-"+i.id,type:e.multiple?"checkbox":"radio"},domProps:{value:i,value:e.selectedMedia},on:{input:function(s){s.target.composing||(e.selectedMedia=s.target.value)}}}),a("label",{staticClass:"custom-control-label",attrs:{for:"file-"+i.id}})])]),a("td",[i.type=="image"||i.type=="video"||i.type=="youtube"?a("div",{staticClass:"library-list__thumbwrap",class:{"library-list__thumbwrap_youtube":i.type=="youtube"}},[a("img",{staticClass:"library-list__thumb",attrs:{src:i.thumb}})]):a("div",{staticClass:"library-list__thumb"},[a("document-icon",{attrs:{document:i}})],1)]),a("td",[a("div",{staticClass:"library-list__title"},[e._v(e._s(i.title))]),a("div",{staticClass:"library-list__meta"},[i.duration!=null?a("span",[e._v(e._s(i.duration))]):e._e(),a("span",[e._v(e._s(i.file_size))])])]),a("td",{staticClass:"td-sm-h library-list__type"},[e._v(e._s(i.type))]),e.onlyUpload?e._e():a("td",{staticClass:"td-sm-h library-list__date"},[e._v(" "+e._s(e._f("moment")(i.created_at,"ll"))+" ")]),a("td",{staticClass:"text-right"},[i.is_new||e.onlyUpload?a("button",{staticClass:"btn btn-icon btn-hover-danger",attrs:{type:"button",disabled:e.disabledFiles[i.id]},on:{click:[function(s){s.stopPropagation()},function(s){return e.removeNewMedia(i)}]}},[a("SvgIcon",{attrs:{name:"trashIcon"}})],1):e._e()])])}),0)]),e.onlyUpload?e._e():[a("mugen-scroll",{attrs:{"scroll-container":e.scrollContainer,handler:e.nextPage,"should-handle":e.isScrollShouldHandle&&!e.isLoading}},[e.isLoading?a("span",{staticClass:"loading"}):e._e()])]],2)]:[a("div",{staticClass:"loading"})]],2)},tl=[],al=l(Xr,el,tl,!1,null,"2a17561d");const il=al.exports,sl={name:"LibraryFitr",components:{MugenScroll:pt,DocumentIcon:ne},props:{value:{},multiple:Boolean,searchString:{type:String,default:""},currentOwner:{type:String,default:"fitr"},forbiddenTypes:{type:Array,default:function(){return[]}},filters:{type:Object,default:function(){return{}}}},data:function(){return{isMobileLayout:!1,files:[],isReady:!1,isLoading:!1,currentPage:1,perPage:15,pagination:{},sortType:"created_at",sortDir:"desc",localValue:w(this.value)}},computed:{scrollContainer:function(){return this.isMobileLayout?"modal":"scrollWrap"},selectedMedia:{get(){if(this.multiple){const t=this.localValue.filter(i=>i!=null),e=this.files.filter(i=>i!=null);return t.map(i=>e.find(o=>o.id===i.id)||i)}else{const e=this.files.filter(a=>a!=null).find(a=>a.id===this.localValue.id);return Object.assign({},e)}},set(t){this.$emit("input",t)}},isScrollShouldHandle:function(){return this.currentPage<this.pagination.total_pages}},watch:{value:function(){this.localValue=w(this.value)},filters:function(){this.currentPage=1,this.updateList()},currentOwner:function(){this.currentPage=1,this.updateList()},searchString:function(){this.currentPage=1,this.updateList()},sortType:function(){this.currentPage=1,this.updateList()},sortDir:function(){this.currentPage=1,this.updateList()}},mounted:function(){this.isReady=!1,this.fetch().then(t=>{this.files=Y(t,e=>e.src!=null)}).catch(t=>{console.log(t)}).finally(()=>{this.isReady=!0})},created(){this.mq=window.matchMedia("(max-width: 991.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches)},beforeDestroy(){this.mq&&this.mq.removeListener(this.updateMatches)},methods:{fetch(){this.isLoading=!0,this.cancel&&this.cancel();let t={owner:this.currentOwner,page:this.currentPage,per_page:this.perPage};if(this.currentOwner=="fitr")t["q[kind_in]"]="video";else{let e=[];this.filters&&this.filters.length>0?e=this.filters:e=ae(["video","image","other","youtube"],...this.forbiddenTypes),t["q[kind_in]"]=e}return t["q[title_cont_any]"]=this.searchString,t["q[s]"]=`${this.sortType} ${this.sortDir}`,new Promise((e,a)=>{d.get("media/fetch",{params:t,cancelToken:new nt(i=>{this.cancel=i})}).then(({data:i})=>{this.pagination=i.pagination,e(i.items),this.$emit("hyroxAccess",i.hyrox_access)}).catch(i=>{m(i),a(i)}).finally(()=>{this.isLoading=!1})})},updateList(){this.fetch().then(t=>{this.files=Y(t,e=>e.src!=null)}).catch(t=>{console.log(t)})},updateMatches(){this.isMobileLayout=this.mq.matches},nextPage(){this.currentPage+=1,this.fetch().then(t=>{let e=Y(t,a=>a.src!=null);this.files=this.files.concat(e)}).catch(t=>{console.log(t)})},sort(t){t===this.sortType&&(this.sortDir=this.sortDir==="asc"?"desc":"asc"),this.sortType=t},toggleSelected(t){if(this.multiple){let e=this.localValue.find(a=>a.id===t.id);e==null?this.localValue.push(t):this.localValue.splice(this.localValue.indexOf(e),1),this.$emit("input",this.localValue)}else this.$emit("input",t)}}};var nl=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{ref:"scrollWrap",staticClass:"library-layout"},[a("div",{staticClass:"library-layout__body"},[e.isReady?[e.files.length===0?a("div",{staticClass:"placeholder placeholder_medialibrary mt-4"},[a("div",{staticClass:"container"},[a("div",{staticClass:"placeholder__text"},[a("h1",[e._v(e._s(e.$t("en.media.lib.fitr.no_files")))])])])]):a("table",{staticClass:"library-list"},[a("col",{staticClass:"col-check"}),a("col",{staticClass:"col-pic"}),a("col",{staticClass:"col-main"}),a("col",{staticClass:"col-sub"}),a("col",{staticClass:"col-sub"}),a("thead",[a("tr",[a("td"),a("td",{attrs:{colspan:"2"},on:{click:function(i){return e.sort("title")}}},[a("span",{staticClass:"sort-link"},[a("span",{staticClass:"sort-link__text"},[e._v("File Name")]),e.sortType==="title"?a("span",{staticClass:"sort-link__icon"},[e.sortDir==="desc"?a("span",{staticClass:"icon icon_caret-down"}):a("span",{staticClass:"icon icon_caret-up"})]):e._e()])]),a("td",{staticClass:"td-sm-h",on:{click:function(i){return e.sort("kind")}}},[a("span",{staticClass:"sort-link"},[a("span",{staticClass:"sort-link__text"},[e._v("Type")]),e.sortType==="kind"?a("span",{staticClass:"sort-link__icon"},[e.sortDir==="desc"?a("span",{staticClass:"icon icon_caret-down"}):a("span",{staticClass:"icon icon_caret-up"})]):e._e()])]),a("td",{staticClass:"td-sm-h",on:{click:function(i){return e.sort("created_at")}}},[a("span",{staticClass:"sort-link"},[a("span",{staticClass:"sort-link__text"},[e._v("Date")]),e.sortType==="created_at"?a("span",{staticClass:"sort-link__icon"},[e.sortDir==="desc"?a("span",{staticClass:"icon icon_caret-down"}):a("span",{staticClass:"icon icon_caret-up"})]):e._e()])])])]),a("tbody",e._l(e.files,function(i){return a("tr",{key:i.id,on:{click:function(s){return e.toggleSelected(i)}}},[a("td",[a("div",{staticClass:"custom-control custom-control-static",class:[e.multiple?"custom-checkbox":"custom-radio"],on:{click:function(s){s.stopPropagation()}}},[(e.multiple?"checkbox":"radio")=="checkbox"?a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedMedia,expression:"selectedMedia"}],staticClass:"custom-control-input",attrs:{id:"file-"+i.id,type:"checkbox"},domProps:{value:i,checked:Array.isArray(e.selectedMedia)?e._i(e.selectedMedia,i)>-1:e.selectedMedia},on:{change:function(s){var o=e.selectedMedia,c=s.target,u=!!c.checked;if(Array.isArray(o)){var p=i,y=e._i(o,p);c.checked?y<0&&(e.selectedMedia=o.concat([p])):y>-1&&(e.selectedMedia=o.slice(0,y).concat(o.slice(y+1)))}else e.selectedMedia=u}}}):(e.multiple?"checkbox":"radio")=="radio"?a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedMedia,expression:"selectedMedia"}],staticClass:"custom-control-input",attrs:{id:"file-"+i.id,type:"radio"},domProps:{value:i,checked:e._q(e.selectedMedia,i)},on:{change:function(s){e.selectedMedia=i}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedMedia,expression:"selectedMedia"}],staticClass:"custom-control-input",attrs:{id:"file-"+i.id,type:e.multiple?"checkbox":"radio"},domProps:{value:i,value:e.selectedMedia},on:{input:function(s){s.target.composing||(e.selectedMedia=s.target.value)}}}),a("label",{staticClass:"custom-control-label",attrs:{for:"file-"+i.id}})])]),a("td",[i.type=="image"||i.type=="video"||i.type=="youtube"?a("img",{staticClass:"library-list__thumb",attrs:{src:i.thumb}}):a("div",{staticClass:"library-list__thumb"},[a("document-icon",{attrs:{document:i}})],1)]),a("td",[a("div",{staticClass:"library-list__title"},[e._v(e._s(i.title))]),a("div",{staticClass:"library-list__meta"},[i.duration!=null?a("span",[e._v(e._s(i.duration))]):e._e(),a("span",[e._v(e._s(i.file_size))])])]),a("td",{staticClass:"td-sm-h library-list__type"},[e._v(e._s(i.type))]),a("td",{staticClass:"td-sm-h library-list__date"},[e._v(" "+e._s(e._f("moment")(i.created_at,"ll"))+" ")])])}),0)]),a("mugen-scroll",{attrs:{"scroll-container":e.scrollContainer,handler:e.nextPage,"should-handle":e.isScrollShouldHandle&&!e.isLoading}},[e.isLoading?a("span",{staticClass:"loading"}):e._e()])]:[a("div",{staticClass:"loading"})]],2)])},ol=[],rl=l(sl,nl,ol,!1,null,null);const ll=rl.exports,cl={name:"PageSearch",props:{placeholder:{type:String,dafault:"Search…"},value:{type:String,dafault:""},disabled:{type:Boolean,dafault:!1}},computed:{searchString:{get(){return this.value},set(t){this.inputedSearchString(t)}}},methods:{inputedSearchString:N(function(t){this.$emit("input",t)},300),handleSearchSubmit(t){t.target.blur()}}};var dl=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"page-search"},[a("SvgIcon",{attrs:{name:"searchIcon",size:20}}),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.searchString,expression:"searchString",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"search",placeholder:e.placeholder,disabled:e.disabled},domProps:{value:e.searchString},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleSearchSubmit.apply(null,arguments)},input:function(i){i.target.composing||(e.searchString=i.target.value.trim())},blur:function(i){return e.$forceUpdate()}}})],1)},ul=[],pl=l(cl,dl,ul,!1,null,"71a7ad14");const hl=pl.exports,_l={name:"PlanThumb",props:{covers:Array,square:{type:Boolean,default:!1},size:{type:Number,default:48}},computed:{thumb(){var e;let t=(e=this.covers)==null?void 0:e.find(a=>a.cover_type=="table_view");return t||null},isEmpty(){return!this.thumb},thumbStyle(){return{width:this.size+"px",height:this.size+"px"}}}};var ml=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"thumb",class:[{"thumb-empty":e.isEmpty}],style:e.thumbStyle},[e.isEmpty?a("SvgIcon",{attrs:{name:"imageIcon"}}):[a("img",{attrs:{src:e.thumb.large,loading:"lazy"}})]],2)},fl=[],vl=l(_l,ml,fl,!1,null,"2f487983");const yl=vl.exports,bl={name:"UserCard",components:{UserAvatar:$,PlanThumb:yl},props:{title:String,thumb:String,prefix:String,square:{type:Boolean,default:!0},plan:{type:Boolean,default:!1},covers:{type:Array},size:Number,indicator:{type:Boolean,default:!1},uniqueIdForTooltip:{type:[String,Number],default:null}},computed:{avatar(){return{full_name:this.title,avatar_url:this.thumb}},isPlan(){return this.plan}}};var gl=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"entry-card"},[a("div",{staticClass:"entry-card__pic"},[e.isPlan?[a("plan-thumb",{staticClass:"_entry-card__pic",attrs:{covers:e.covers,size:e.size,indicator:e.indicator}})]:[a("user-avatar",{staticClass:"_entry-card__pic",attrs:{square:!1,user:e.avatar,size:e.size}})],e.indicator?a("div",{staticClass:"entry-card__indicator"}):e._e()],2),a("div",{staticClass:"entry-card__info"},[a("div",{attrs:{id:`id-${e.uniqueIdForTooltip}`}},[a("div",{staticClass:"entry-card__name"},[e.prefix?[e._v(" "+e._s(e.prefix)+" ")]:e._e(),e._v(" "+e._s(e.title)+" "),e._t("title-icon")],2),a("div",{staticClass:"entry-card__extra"},[e._t("extra")],2)]),e.uniqueIdForTooltip?a("b-tooltip",{attrs:{target:`id-${e.uniqueIdForTooltip}`,boundary:"viewport"}},[[e._v(e._s(e.title))]],2):e._e()],1)])},wl=[],Cl=l(bl,gl,wl,!1,null,"dcfdb564");const kl=Cl.exports,Sl={name:"MultiselectField",components:{Multiselect:Mt,UserCard:kl},props:{options:{type:Array},value:{type:[Array,Object]},placeholder:{type:String,default:"Select Program(s)"},optionType:{type:String,default:"userCard"},customTheme:{type:String,default:""},openDirection:{type:String,default:""},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},hideSelected:{type:Boolean,default:!1},hasPaginationAndSearch:{type:Boolean,default:!1},noResultsPlaceholder:{type:String,default:"No elements found"}},computed:{selected:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{searchHandler(t){this.$emit("searchHandler",t)}}};var Al=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"multiselect-field",class:[e.customTheme,e.multiple?"multiple":"single"]},[a("multiselect",{attrs:{label:"title","track-by":"id",options:e.options,multiple:e.multiple,"close-on-select":!e.multiple,taggable:!1,"open-direction":e.openDirection,placeholder:e.placeholder,disabled:e.disabled,"hide-selected":e.hideSelected,"max-height":200},on:{select:function(i){return e.$emit("select")},"search-change":e.searchHandler},scopedSlots:e._u([{key:"tag",fn:function({option:i,remove:s}){return[a("span",{staticClass:"multiselect__tag"},[a("span",[e._v(e._s(i.title))]),a("i",{staticClass:"multiselect__tag-icon",attrs:{"aria-hidden":"true",tabindex:"1"},on:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:(o.preventDefault(),s(i))},mousedown:function(o){return o.preventDefault(),s(i)}}},[a("SvgIcon",{attrs:{name:"closeIcon",size:16}})],1)])]}},{key:"singleLabel",fn:function({option:i}){return[e.optionType=="text"?[a("div",{staticClass:"option"},[a("span",{staticClass:"option__text"},[e._v(e._s(i.title))])])]:e.optionType=="planCard"?[a("user-card",{staticClass:"option",attrs:{title:i.title,covers:i.covers,plan:"",size:24}})]:[a("user-card",{staticClass:"option",attrs:{title:i.title,thumb:i.cover?i.cover.thumb:null,size:24}})]]}},{key:"option",fn:function({option:i}){return[e.optionType=="text"?[a("div",{staticClass:"option"},[a("span",{staticClass:"option__text"},[e._v(e._s(i.title))])])]:e.optionType=="planCard"?[a("user-card",{staticClass:"option",attrs:{title:i.title,covers:i.covers,plan:"",size:24}})]:[a("user-card",{staticClass:"option",attrs:{title:i.title,thumb:i.cover?i.cover.thumb:null,size:24}})]]}}]),model:{value:e.selected,callback:function(i){e.selected=i},expression:"selected"}},[a("span",{staticClass:"no-elements-found",attrs:{slot:"noResult"},slot:"noResult"},[e._v(e._s(e.noResultsPlaceholder))]),e.hasPaginationAndSearch?a("template",{slot:"afterList"},[e._t("pagination")],2):e._e()],2)],1)},Pl=[],Tl=l(Sl,Al,Pl,!1,null,"ee78c4c9");const $l=Tl.exports,xl={name:"PageDaterangeFilter",props:{filter:Object,value:[String,Object]},data(){return{selected:"all",from:null,to:null}},validations:{from:{integer:Ee,minValue:Et(13),maxValue:De(99)},to:{integer:Ee,minValue:(t,e)=>t?e.$v.from.$model&&!e.$v.from.$error?t>e.$v.from.$model:t>13:!0,maxValue:De(99)}},watch:{from:function(t){t!=null&&this.triggerChange()},to:function(t){t!=null&&this.triggerChange()},selected:function(t){t=="all"&&(this.from=null,this.to=null,this.triggerChange())}},mounted(){this.value!="all"&&(this.selected="range",this.from=this.value.from,this.to=this.value.to)},methods:{triggerChange(){if(this.from||this.to?this.selected="range":this.selected="all",!this.$v.$invalid){let t;this.selected=="all"?t="all":t={from:this.from,to:this.to},this.$emit("input",t)}}}};var Il=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"daterange-filter"},[a("b-form-radio",{attrs:{value:"all"},model:{value:e.selected,callback:function(i){e.selected=i},expression:"selected"}},[e._v(" All ")]),a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"from"}},[e._v("Set age range")]),a("div",{staticClass:"range-field"},[a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.$v.from.$model,expression:"$v.from.$model",modifiers:{number:!0}}],staticClass:"form-control",class:{"is-invalid":e.$v.from.$anyError},attrs:{type:"number",step:"1",min:"13",max:"99",pattern:"\\d+",inputmode:"numeric",placeholder:"e.g. 20"},domProps:{value:e.$v.from.$model},on:{input:function(i){i.target.composing||e.$set(e.$v.from,"$model",e._n(i.target.value))},blur:function(i){return e.$forceUpdate()}}}),a("span",[e._v("—")]),a("input",{directives:[{name:"model",rawName:"v-model.number",value:e.$v.to.$model,expression:"$v.to.$model",modifiers:{number:!0}}],staticClass:"form-control",class:{"is-invalid":e.$v.to.$anyError},attrs:{type:"number",step:"1",min:"13",max:"99",pattern:"\\d+",inputmode:"numeric",placeholder:"e.g. 40"},domProps:{value:e.$v.to.$model},on:{input:function(i){i.target.composing||e.$set(e.$v.to,"$model",e._n(i.target.value))},blur:function(i){return e.$forceUpdate()}}})]),e.$v.from.$anyError||e.$v.to.$anyError?a("div",{staticClass:"invalid-feedback d-block"},[e._v(" Must be between 13 and 99 ")]):e._e()])],1)},Rl=[],El=l(xl,Il,Rl,!1,null,"a7e17926");const Dl=El.exports,{CalendarPanel:Fl}=A;function Ve(t){return t instanceof Date&&!isNaN(t)}function j(t){return Array.isArray(t)&&t.length===2&&Ve(t[0])&&Ve(t[1])&&t[1].getTime()>=t[0].getTime()}const Ml={components:{DatePicker:A,CalendarPanel:Fl},props:{value:{}},data(){return{innerValue:[new Date(NaN),new Date(NaN)]}},watch:{value:{immediate:!0,handler(t){j(t)?this.innerValue=t:this.innerValue=[new Date(NaN),new Date(NaN)]}}},methods:{handleSelectStart(t){this.innerValue=[t,this.innerValue[1]],j(this.innerValue)&&this.$emit("select",this.innerValue,!0)},handleSelectEnd(t){this.innerValue=[this.innerValue[0],t],j(this.innerValue)&&this.$emit("select",this.innerValue,!0)},getClasses(t,e,a){return!/disabled|active|not-current-month/.test(a)&&t>=this.innerValue[0]&&t<=this.innerValue[1]?"in-range":""}}};var Ll=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"custom-date-range"},[a("calendar-panel",{attrs:{value:e.innerValue[0],"get-classes":e.getClasses,"disabled-date":i=>i>e.innerValue[1]},on:{select:e.handleSelectStart}}),a("calendar-panel",{attrs:{value:e.innerValue[1],"get-classes":e.getClasses,"disabled-date":i=>i<e.innerValue[0]},on:{select:e.handleSelectEnd}})],1)},Ol=[],Ul=l(Ml,Ll,Ol,!1,null,"6d86ea53");const Yl=Ul.exports,Ne="YYYY-MM-DD",Bl={name:"DateRange",components:{DatePicker:A,CustomRange:Yl},props:{value:{type:Array,default:function(){return[this.$moment().subtract(1,"months").toDate(),new Date]}},isAllAvailable:{type:Boolean,default:!1}},data:function(){let t=[{text:"1d",onClick(e){let a=e.$moment().startOf("day").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}},{text:"1w",onClick(e){let a=e.$moment().subtract(1,"weeks").startOf("day").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}},{text:"1m",onClick(e){let a=e.$moment().subtract(1,"months").startOf("day").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}},{text:"1y",onClick(e){let a=e.$moment().subtract(1,"years").startOf("day").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}},{text:"6mo",onClick(e){let a=e.$moment().subtract(5,"months").startOf("day").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}},{text:"Mtd",onClick(e){let a=e.$moment().startOf("month").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}},{text:"Qtd",onClick(e){let a=e.$moment().startOf("quarter").toDate(),i=e.$moment().endOf("day").toDate();return[a,i]}}];return this.isAllAvailable&&t.push({text:"All",onClick(e){e.$emit("showAll"),e.closePopup()}}),{shortcuts:t}},computed:{range:{get:function(){return this.value},set:function(t){let e=this.$moment(t[0]).format(Ne),a=this.$moment(t[1]).format(Ne);this.$emit("input",[e,a])}},readableValue(){var t,e;if((t=this.value)!=null&&t[0]&&((e=this.value)!=null&&e[1])){let a="DD MMM, YYYY";return`${this.$moment(this.value[0]).format(a)}  —  ${this.$moment(this.value[1]).format(a)}`}else return"Date from — Date to"}},methods:{disabledDate(t){const e=new Date;return e.setHours(0,0,0,0),t.getTime()>e.getTime()},onSelect(t){this.$refs.datePicker.currentValue=t}}};var Vl=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("date-picker",{ref:"datePicker",staticClass:"range-datepicker",attrs:{"popup-class":"range-datepicker-popup",format:"DD MMM, YYYY","range-separator":" — ","input-class":["form-control"],lang:{formatLocale:{firstDayOfWeek:1}},"disabled-date":e.disabledDate,range:!0,clearable:!1,editable:!1,shortcuts:e.shortcuts,confirm:!0},on:{showAll:function(i){return e.$emit("showAll")}},scopedSlots:e._u([{key:"content",fn:function({value:i}){return[a("custom-range",{attrs:{value:i},on:{select:function(s){return e.onSelect(s)}}})]}}]),model:{value:e.range,callback:function(i){e.range=i},expression:"range"}},[a("template",{slot:"input"},[a("div",{staticClass:"range-datepicker-button btn btn-outline-dark"},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"calendarIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v(e._s(e.readableValue))])])])]),a("template",{slot:"icon-calendar"},[a("span")])],2)},Nl=[],Wl=l(Bl,Vl,Nl,!1,null,null);const Hl=Wl.exports,ql=function(t){return t!=null&&t.from&&(t!=null&&t.to)?`${t.from}—${t==null?void 0:t.to}`:t!=null&&t.from?`from ${t.from}`:t!=null&&t.to?`to ${t.to}`:t},We=function(t,e){return e(t,"YYYY-MM-DD").format("DD MMM, YYYY")},zl={name:"PageFilter",components:{Portal:At,MultiselectField:$l,DaterangeFilter:Dl,DateRange:Hl},mixins:[te],props:{value:{type:Object,dafault:{}},multiple:{type:Boolean,default:!1},portalName:{type:String,default:"filter-results"},dropdownSize:{type:String,default:"md"},isShowBadges:{type:Boolean,default:!0},additionalStyleClass:{type:String,default:"",validator:function(t){return["hyrox-library",""].indexOf(t)!==-1}}},data:function(){return{isMobileLayout:!1,isModalShow:!1,localFilters:{},tmp:[]}},computed:{sortedLocalFilters(){return W(Object.entries(this.localFilters),[function(e){return e[1].position}]).reduce((e,a)=>(e[a[0]]=this.localFilters[a[0]],e),{})},filterResults(){return this.isShowBadges?Object.keys(this.value).filter(e=>this.value[e].type=="multiple"?!Ie(W(this.value[e].value),W(this.value[e].default)):this.value[e].value!=this.value[e].default).reduce((e,a)=>{var i;if(this.value[a].type=="daterange")e[a]={name:a,value:ql(this.value[a].value)};else if(this.value[a].type=="daterange-picker")((i=this.value[a].value)==null?void 0:i.length)>0&&(e[a]={name:a,value:`${We(this.value[a].value[0],this.$moment)} - ${We(this.value[a].value[1],this.$moment)}`});else if(Array.isArray(this.value[a].value))this.value[a].value.forEach(s=>{if(typeof s=="string"){let o=this.value[a].options.find(c=>c.value==s);e[s]={key:a,name:s,value:o==null?void 0:o.text}}else e[s.value]={key:a,name:s.value,value:s.title}});else{let s=this.value[a].options.find(o=>o.value==this.value[a].value);e[a]={name:a,value:s.text}}return e},{}):!1},hasFilterResults(){return Object.keys(this.filterResults).length>0}},watch:{value:{handler:function(t){Ie(this.localFilters,t)||(this.localFilters=w(t))},immediate:!0}},created:function(){this.mq=window.matchMedia("(max-width: 991.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches)},beforeDestroy(){this.mq&&this.mq.removeListener(this.updateMatches)},methods:{updateMatches(){this.isMobileLayout=this.mq.matches},filterChanged(){this.isMobileLayout||this.$emit("input",this.localFilters)},apply(){this.$emit("input",this.localFilters),this.hide()},clear(){for(let t in this.localFilters)Array.isArray(this.localFilters[t].default)?this.localFilters[t].value=w(this.localFilters[t].default):this.localFilters[t].value=this.localFilters[t].default;this.$emit("input",this.localFilters),this.hide()},unselect(t){if(t.key){let e=this.localFilters[t.key].value.findIndex(a=>typeof a=="string"?a==t.name:a.id==t.name);e!=-1&&this.localFilters[t.key].value.splice(e,1)}else this.localFilters[t.name].value=this.localFilters[t.name].default;this.$emit("input",this.localFilters)},toggle(){this.isModalShow=!this.isModalShow},show(){this.isModalShow=!0},hide(){this.isModalShow=!1},away(t){t.target.closest(".mx-datepicker-popup")||this.hide()},onModalHidden(){this.localFilters=w(this.value)}}};var jl=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"page-filters"},[e._t("button",function(){return[e.isMobileLayout?a("button",{staticClass:"filters-toggle btn btn-success btn-square",on:{click:e.toggle}},[a("SvgIcon",{attrs:{name:"filterIcon"}})],1):a("button",{staticClass:"filters-toggle btn btn-success",on:{click:e.toggle}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"filterIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v("Filters")])])])]},{toggle:e.toggle}),a("portal",{attrs:{to:e.portalName}},[e.hasFilterResults?a("div",{staticClass:"selected-filters"},e._l(e.filterResults,function(i,s){return a("div",{key:s,staticClass:"selected-filter badge badge-success badge-pill badge-lg"},[a("span",{staticClass:"selected-filter__text"},[e._v(e._s(i.value))]),a("button",{staticClass:"btn btn-icon",attrs:{type:"button"},on:{click:function(o){return e.unselect(i)}}},[a("SvgIcon",{attrs:{name:"closeIcon",size:16}})],1)])}),0):e._e()]),a("div",{staticClass:"popup-holder"},[e.isMobileLayout?[a("b-modal",{ref:"filtersModal",attrs:{title:"Filter","content-class":e.additionalStyleClass},on:{hidden:e.onModalHidden},model:{value:e.isModalShow,callback:function(i){e.isModalShow=i},expression:"isModalShow"}},[a("div",{key:"filters",staticClass:"filters-list"},e._l(e.sortedLocalFilters,function(i,s){return a("div",{key:s,staticClass:"filters-item"},[a("b-form-group",{key:"form-group"+s,attrs:{label:i.label}},[i.type=="select"?[a("multiselect-field",{attrs:{placeholder:i.placeholder,options:i.options,"option-type":"text"},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:i.type=="daterange"?[a("daterange-filter",{attrs:{filter:i},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:i.type=="daterange-picker"?[a("date-range",{model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:i.type=="multiple"?[a("b-form-checkbox-group",{attrs:{stacked:"",options:i.options},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:[a("b-form-radio-group",{attrs:{stacked:"",options:i.options},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]],2)],1)}),0),a("template",{slot:"modal-footer"},[a("div",{staticClass:"modal-footer-actions modal-footer-actions_equal-columns"},[a("div",{staticClass:"modal-footer-actions__btn"},[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:e.clear}},[e._v(" Clear ")])]),a("div",{staticClass:"modal-footer-actions__btn"},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.apply}},[e._v(" Apply Filter ")])])])])],2)]:[a("transition",{attrs:{name:"slide",appear:""},on:{"after-leave":e.onModalHidden}},[e.isModalShow?a("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.away,expression:"away"}],staticClass:"filters-popup",class:"filters-popup_"+e.dropdownSize},[e._t("text"),a("div",{key:"filters",staticClass:"filters-list"},e._l(e.sortedLocalFilters,function(i,s){return a("div",{key:s,staticClass:"filters-item"},[a("b-form-group",{key:"form-group"+s,attrs:{label:i.label}},[i.type=="select"?[a("multiselect-field",{attrs:{placeholder:i.placeholder,options:i.options,"open-direction":"below","option-type":"text"},on:{input:e.filterChanged},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:i.type=="daterange"?[a("daterange-filter",{attrs:{filter:i},on:{input:e.filterChanged},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:i.type=="daterange-picker"?[a("date-range",{on:{input:e.filterChanged},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:i.type=="multiple"?[a("b-form-checkbox-group",{attrs:{stacked:"",options:i.options},on:{input:e.filterChanged},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]:[a("b-form-radio-group",{attrs:{stacked:"",options:i.options},on:{input:e.filterChanged},model:{value:i.value,callback:function(o){e.$set(i,"value",o)},expression:"filter.value"}})]],2)],1)}),0)],2):e._e()])]],2)],2)},Gl=[],Zl=l(zl,jl,Gl,!1,null,"d7e2d7b8");const Kl=Zl.exports,Ql={name:"MediaLibrary",components:{LibraryFiles:il,LibraryFitr:ll,PageSearch:hl,vueDropzone:ut,PortalTarget:ee,PageFilter:Kl},props:{attachments:{type:[Array,Object],default:function(){return[]}},multiple:{type:Boolean,default:!0},forbiddenTypes:{type:Array,default:function(){return[]}},onlyUpload:{type:Boolean,default:!1},isHyroxTemplate:{type:Boolean,default:!1},resourcesLimit:{type:[Number,String],default:50}},data(){return{currentTab:"files",isModalShowed:!0,isChanged:!1,searchString:"",selectedMedia:this.attachments,isTabBusy:!1,hasAccessHyrox:!0,isReady:!1,isShowCurrentTab:!1,isShowHyroxTab:!1,isShowFitrTab:!1,isLibraryUploaded:!1,filesFilters:{type:{label:"",value:[],default:[],type:"multiple",options:[{text:"Video",value:"video"},{text:"YouTube",value:"youtube"},{text:"Image",value:"image"},{text:"Files",value:"other"}]}}}},computed:{isShowText(){return this.currentTab==="files"&&this.hasHyrox&&this.$route.name=="challenges-library"&&this.isLibraryUploaded},isSubmitAviable:function(){return this.multiple?this.selectedMedia.length>0:this.selectedMedia.id!=null},currentOwner:function(){return this.currentTab=="fitr"?"fitr":this.currentTab=="hyrox"?"hyrox":"current"},currentLibrary(){return this.currentTab=="fitr"?"fitr":"files"},resourcesLimitExceeded(){return!this.onlyUpload&&this.selectedMedia.length>this.resourcesLimit},...h(["isUserCoach","isAccountOwner","currentUserTitle","hasHyrox"])},watch:{selectedMedia:function(){this.isChanged=!0},currentTab:function(){this.isLibraryUploaded=!1,window.localStorage.setItem("addMediaActiveTab",this.currentTab)}},mounted(){var t;if(this.onlyUpload){if(this.isShowFitrTab=!1,this.isShowCurrentTab=!0,this.isShowHyroxTab=this.isAccountOwner&&this.hasHyrox,(t=window.localStorage.getItem("addMediaActiveTab"))!=null&&t.length){let e=window.localStorage.getItem("addMediaActiveTab");e=="fitr"||e=="hyrox"&&!this.isShowHyroxTab?(this.currentTab="files",window.localStorage.setItem("addMediaActiveTab",this.currentTab)):this.currentTab=e}this.isReady=!0}else if(this.isShowCurrentTab=!0,this.isShowFitrTab=this.isUserCoach,this.isUserCoach){let e={owner:"hyrox",page:1,per_page:1};d.get("media/fetch",{params:e}).then(({data:a})=>{if(this.isShowHyroxTab=a.hyrox_access,this.isShowHyroxTab&&this.isHyroxTemplate){const i=window.localStorage.getItem("addMediaActiveTab");this.isShowCurrentTab=!1,(i=="files"||!i)&&(this.currentTab="hyrox")}}).catch(a=>{m(a)}).finally(()=>{this.check()})}else this.check()},methods:{check(){var t;if((t=window.localStorage.getItem("addMediaActiveTab"))!=null&&t.length){let e=window.localStorage.getItem("addMediaActiveTab");e=="fitr"&&!this.isUserCoach||e=="hyrox"&&!this.isShowHyroxTab?(this.currentTab="files",window.localStorage.setItem("addMediaActiveTab",this.currentTab)):this.currentTab=e}this.isReady=!0},checkHyroxAccess(t){this.isLibraryUploaded=!0,this.isShowHyroxTab=t},hideModal(){this.$refs.filesModal.hide()},handleModalHide(t){this.isChanged&&(window.confirm("There are unsaved changes. Do you want to leave anyway?")?(this.selectedMedia=this.attachments,this.isChanged=!1):t.preventDefault())},handleModalHidden(){this.$emit("close")},handleModalShown(){this.$root.$emit("bv::hide::tooltip"),this.$root.$emit("benchmarks::hide_ui")},setMedia(){this.resourcesLimitExceeded||(this.isChanged=!1,this.$emit("add",this.selectedMedia),this.isModalShowed=!1)},switchTab(t){this.currentTab=t},handleTabBusy(t){this.isTabBusy=t}}};var Jl=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"media-library"},[a("b-modal",{ref:"filesModal",attrs:{id:"filesModal",lazy:"lazy","modal-class":"library-popup library-popup_media library-popup_lg"},on:{hide:e.handleModalHide,hidden:e.handleModalHidden,shown:e.handleModalShown},scopedSlots:e._u([{key:"modal-header",fn:function(){return[a("h5",{staticClass:"modal-title"},[e.onlyUpload?[e._v(" "+e._s(e.$t("en.media.main_title_upload"))+" ")]:[e._v(e._s(e.$t("en.media.main_title_add")))]],2),a("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(i){return i.preventDefault(),e.hideModal.apply(null,arguments)}}},[e._v(" × ")]),a("div",{staticClass:"library-controls"},[a("div",{staticClass:"nav nav-tabs"},[e.isShowCurrentTab?a("div",{staticClass:"nav-item"},[a("a",{class:["nav-link",{active:e.currentTab==="files"}],attrs:{href:"#library"},on:{click:function(i){return i.preventDefault(),e.switchTab("files")}}},[e._v(" My Library ")])]):e._e(),e.isShowHyroxTab?a("div",{staticClass:"nav-item"},[a("a",{class:["nav-link",{active:e.currentTab==="hyrox"}],attrs:{href:"#hyrox"},on:{click:function(i){return i.preventDefault(),e.switchTab("hyrox")}}},[e._v(" HYROX ")])]):e._e(),e.isShowFitrTab?a("div",{staticClass:"nav-item"},[a("a",{class:["nav-link",{active:e.currentTab==="fitr"}],attrs:{href:"#fitr"},on:{click:function(i){return i.preventDefault(),e.switchTab("fitr")}}},[e._v("FITR")])]):e._e()])])]},proxy:!0},{key:"modal-footer",fn:function(){return[a("div",{staticClass:"modal-footer-holder"},[e.resourcesLimitExceeded?a("div",{staticClass:"resources-limit-error_wrap mb-3 mb-md-0"},[a("div",{staticClass:"invalid-feedback mt-0 mr-md-4 resources-limit-error"},[e._v(" Maximum number of resources added ")])]):e._e(),e.onlyUpload?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:e.isTabBusy||e.resourcesLimitExceeded},on:{click:e.setMedia}},[e._v(" Done ")])]:[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:e.hideModal}},[e._v(" Cancel ")]),a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:!e.isSubmitAviable||e.isTabBusy||e.resourcesLimitExceeded},on:{click:e.setMedia}},[e._v(" Add resource ")])]],2)]},proxy:!0}]),model:{value:e.isModalShowed,callback:function(i){e.isModalShowed=i},expression:"isModalShowed"}},[a("div",{staticClass:"page-block"},[e.onlyUpload?e._e():a("div",{staticClass:"filters-header"},[a("div",{staticClass:"row"},[a("div",{staticClass:"filters-header__search col col-sm-auto"},[a("page-search",{attrs:{placeholder:"Search…"},model:{value:e.searchString,callback:function(i){e.searchString=i},expression:"searchString"}})],1),e.currentOwner!=="fitr"?a("div",{staticClass:"filters-header__filter col-auto"},[a("page-filter",{model:{value:e.filesFilters,callback:function(i){e.filesFilters=i},expression:"filesFilters"}})],1):e._e()]),e.currentOwner!=="fitr"?a("portal-target",{attrs:{name:"filter-results"}}):e._e()],1),e.isReady?a("library-"+e.currentLibrary,{tag:"component",attrs:{"current-owner":e.currentOwner,"only-upload":e.onlyUpload,"forbidden-types":e.forbiddenTypes,multiple:e.multiple,filters:e.filesFilters,"search-string":e.searchString},on:{busy:e.handleTabBusy,change:function(i){e.isChanged=!0},hyroxAccess:e.checkHyroxAccess},model:{value:e.selectedMedia,callback:function(i){e.selectedMedia=i},expression:"selectedMedia"}}):e._e(),e.isShowText?a("p",{staticClass:"text-center mb-0 mt-4 additional-hyrox-text"},[e._v(" Only Resource's added from the ‘HYROX’ tab will be visible for affiliates. Any Resource's added from ‘My Library’ will be removed. ")]):e._e()],1)])],1)},Xl=[],ec=l(Ql,Jl,Xl,!1,null,"8dd245fa");const kt=ec.exports,U_=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"})),tc={name:"ModalPlanCover",components:{UploadButton:re},props:{cover:Object,covers:{type:Array,default:function(){return[]}}},computed:{coverPreview(){return this.covers.length>0?this.covers.find(t=>t.cover_type==this.cover.cover_type):null},coverStyle(){return`max-width: ${this.cover.width}px; max-height: ${this.cover.height}px`},coverSrc(){var t,e,a,i,s,o;return(t=this.coverPreview)!=null&&t.blob?this.coverPreview.blob:((a=(e=this.coverPreview)==null?void 0:e.media)==null?void 0:a.type)=="youtube"?this.coverPreview.media.cover_hd:((s=(i=this.coverPreview)==null?void 0:i.media)==null?void 0:s.type)=="video"?this.coverPreview.media.cover_hd:(o=this.coverPreview)!=null&&o.large?this.coverPreview.large:null}},methods:{editCover(){var t;this.coverSrc&&this.coverPreview.media&&!this.coverPreview.media.src&&(this.coverPreview.media.src=this.coverSrc),this.$emit("editCover",{type:this.cover.cover_type,media:(t=this.coverPreview)==null?void 0:t.media})},removeCover(){this.$emit("removeCover",{type:this.cover.cover_type})}}};var ac=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"cover-wrap",class:`cover-wrap__${e.cover.cover_type}`,style:e.coverStyle},[a("UploadButton",{attrs:{file:!1,image:e.coverSrc},on:{change:e.editCover,remove:e.removeCover}},[e._v(" "+e._s(e.$t("en.media.lib.cover.title"))+" ")])],1)},ic=[],sc=l(tc,ac,ic,!1,null,"b2660c3d");const nc=sc.exports,oc={name:"ModalPlanCovers",components:{Cover:nc},props:{coverTypes:{type:Object},currentCoverType:{type:String,default:"main"},planCovers:{type:Array,default:function(){return[]}}},data(){return{isStepBusy:!1}},methods:{show(){this.$refs.planCoversModal.show()},hideModal(){this.$refs.planCoversModal.hide()},saveCovers(){this.hideModal()},handleEditCover(t){this.$emit("editCover",t)},handleRemoveCover(t){this.$emit("removeCover",t)},handleUploadCover(t){this.$emit("uploadCover",t),this.hideModal()},findCoverByType(t){var a;const e=this.planCovers.length>0?this.planCovers.find(i=>i.cover_type==t):null;return e?(a=e.media)!=null&&a.cover?e.media.cover:e.original:null}}};var rc=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"planCoversModal",attrs:{id:"modal",lazy:"lazy","modal-class":"library-popup library-popup_covers"}},[a("template",{slot:"modal-header"},[a("h5",{staticClass:"modal-title"},[e._v("Edit cover media")]),a("button",{staticClass:"close",attrs:{type:"button"},on:{click:e.hideModal}},[e._v("×")])]),a("template",{slot:"modal-footer"},[a("div",{staticClass:"modal-footer-holder"},[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button",disabled:e.isStepBusy},on:{click:e.hideModal}},[e._v(" Cancel ")]),a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isStepBusy},attrs:{type:"button",disabled:e.isStepBusy},on:{click:e.saveCovers}},[e._v(" Save ")])])]),a("div",{staticClass:"covers-body"},[a("div",{staticClass:"container"},[a("div",{staticClass:"covers-grid"},[a("div",{staticClass:"row"},e._l(e.coverTypes,function(i){return a("div",{key:i.cover_type,staticClass:"col-xl-6 col-12"},[a("div",{staticClass:"cover-item"},[a("div",{staticClass:"title"},[e._v(e._s(i.title))]),a("div",{staticClass:"descr",domProps:{innerHTML:e._s(i.descr)}}),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-auto"},[a("cover",{staticClass:"cover-item__cover",attrs:{cover:i,covers:e.planCovers},on:{editCover:e.handleEditCover,removeCover:e.handleRemoveCover}})],1),a("div",{staticClass:"col-md"},[i.hint?a("div",{staticClass:"hint",domProps:{innerHTML:e._s(i.hint)}}):e._e(),e.findCoverByType(i.cover_type)?a("button",{staticClass:"btn btn-success mt-3",attrs:{type:"button"},on:{click:function(s){return e.handleUploadCover(i)}}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"imageIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v(e._s(e.$t("en.media.lib.cover.title")))])])]):e._e()])])])])}),0)])])])],2)},lc=[],cc=l(oc,rc,lc,!1,null,"522d2d2c");const dc=cc.exports,uc={name:"ProgramEditTopBar",components:{MediaCrop:Ct,MediaLibrary:kt,UploadButton:re,ModalPlanCovers:dc},props:{plan:{type:Object,required:!0},hideRemoveButton:{type:Boolean,default:!1},updateCovers:{type:Function,default:()=>{}},removeCovers:{type:Function,default:()=>{}},isMobileLayout:{type:Boolean,default:!1},isViewMode:{type:Boolean,default:!1}},data(){return{isMediaRequested:!1,currentCoverType:"table_view",coverTypes:{table_view:{cover_type:"table_view",title:this.$t("en.cover.cover_types.table_view.title"),descr:this.$t("en.cover.cover_types.table_view.descr"),hint:this.$t("en.cover.cover_types.table_view.hint"),width:"130",height:"130"},tiled_view:{cover_type:"tiled_view",title:this.$t("en.cover.cover_types.tiled_view.title"),descr:this.$t("en.cover.cover_types.tiled_view.descr"),hint:this.$t("en.cover.cover_types.tiled_view.hint"),width:"250",height:"130"}}}},computed:{selectedCover(){let t={};if(this.plan.covers.length>0){let e=this.plan.covers.find(a=>a.cover_type===this.currentCoverType);t=e?e.media:{}}return t},coverType(){return this.isMobileLayout?"tiled_view":"table_view"},cover(){return this.plan.covers.length>0?this.plan.covers.find(t=>t.cover_type==this.coverType):null},coverSrc(){var t,e,a,i;return(t=this.cover)!=null&&t.blob?this.cover.blob:["youtube","video"].includes((a=(e=this.cover)==null?void 0:e.media)==null?void 0:a.type)?this.cover.media.cover_hd:(i=this.cover)!=null&&i.large?this.cover.large:null}},methods:{showPlanCovers(){this.$refs.planCoversModal.show()},handleEditCover(t){this.currentCoverType=t?t.type:"table_view",t.media&&(t.media.cover||t.media.src)&&t.media.type!="youtube"&&t.media.type!="video"?this.$refs.mediaCropModal.crop(t.media):this.isMediaRequested=!0},handleRemoveCover(t){this.removeCovers(t.type)},handleUploadCover(t){this.currentCoverType=t?t.cover_type:"table_view",this.isMediaRequested=!0},addCover(t){this.updateCovers(t)},cropCover({media:t,crop:e,isChanged:a}){let i={media:t,...e,isChanged:a};i.media.kind!="image"&&(i.cover_type=this.currentCoverType),this.addCover(i),this.showPlanCovers()},mediaChanged(t){t.kind=="image"?this.$refs.mediaCropModal.crop(t):this.cropCover({media:t,isChanged:!0}),this.isMediaRequested=!1}}};var pc=function(){var e=this,a=e._self._c;return!e.isViewMode||e.coverSrc?a("div",[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-lg-auto mb-3 mb-lg-0"},[a("div",{class:`cover__${e.coverType}`},[a("upload-button",{staticClass:"w-100 h-100",attrs:{image:e.coverSrc,"hide-remove-button":e.hideRemoveButton||e.isViewMode,"hide-change-button":e.isViewMode},on:{change:e.showPlanCovers}},[e._v(" "+e._s(e.$t("en.media.lib.cover.title"))+" ")])],1)]),e.$slots.actions?a("div",{staticClass:"col-12 col-lg"},[e._t("actions")],2):e._e()]),e.isViewMode?e._e():a("modal-plan-covers",{ref:"planCoversModal",attrs:{"cover-types":e.coverTypes,"current-cover-type":e.currentCoverType,"plan-covers":e.plan.covers},on:{editCover:e.handleEditCover,removeCover:e.handleRemoveCover,uploadCover:e.handleUploadCover}}),e.isViewMode?e._e():a("media-crop",{ref:"mediaCropModal",attrs:{"cover-types":e.coverTypes,"current-cover-type":e.currentCoverType},on:{input:e.cropCover,back:function(i){e.isMediaRequested=!0}}}),e.isMediaRequested&&!e.isViewMode?a("media-library",{attrs:{attachments:e.selectedCover,multiple:!1,"forbidden-types":["other"]},on:{add:e.mediaChanged,close:function(i){e.isMediaRequested=!1}}}):e._e()],1):e._e()},hc=[],_c=l(uc,pc,hc,!1,null,"9530ac37");const mc=_c.exports;function fc({primaryColor:t="#389840",primaryShadowColor:e="#e6f6e7"}){return{fonts:[{cssSrc:"https://fonts.googleapis.com/css2?family=Montserrat:wght@400..500&display=swap"}],appearance:{variables:{fontFamily:"Montserrat",fontSizeBase:"0.875rem",fontSizeXl:"0.75rem",fontSizeLg:"0.75rem",fontSizeSm:"0.75rem",fontSizeXs:"0.75rem",fontSize2Xs:"0.75rem",fontSize3Xs:"0.75rem",borderRadius:"8px",colorPrimary:"#91939F",colorDanger:"#DE3D54",colorBackground:"#fff",colorText:"#22242F",colorTextSecondary:"#5C5F6B",colorTextPlaceholder:"#B0BDC9",spacingGridColumn:"1.143rem",spacingGridRow:"1.143rem"},rules:{".Label":{fontSize:"0.857rem",fontWeight:"500",color:"#22242F",marginBottom:"0.571rem",lineHeight:"1.5"},".Input":{fontSize:"1rem",fontWeight:"500",padding:"0.607rem 1.143rem",lineHeight:"1.5",border:"1px solid #D4D6DF"},".Input:focus":{border:`1px solid ${t}`,boxShadow:`0 0 0 0.229rem ${e}`},".Input:focus.Input--invalid":{border:"1px solid #DE3D54",boxShadow:"0 0 0 0.229rem #de3d5440"},".Input--invalid":{boxShadow:"none"},".TermsText":{fontWeight:"400",fontSize:"0.714rem"}}}}}const vc={getElementsSettings:fc},yc={name:"StripeForm",props:{isExpressCheckout:{type:Boolean,default:!1},isPaymentElement:{type:Boolean,default:!0},isShowPaymentForm:{type:Boolean,default:!0},invalidFeedback:{type:String,default:""},expressCheckoutId:{type:String,default:"express-checkout-element"},paymentElementId:{type:String,default:"payment-element"},addressElementId:{type:String,default:"address-element"},stripeMode:{type:String,default:"setup",validator(t){return["setup","subscription","payment"].includes(t)}},amount:{type:Number,default:0},defaultCurrency:{type:String,default:"USD"},isPaymentProcessing:{type:Boolean,default:!1}},data(){return{isStripeFormLoaded:!1,isExpressCheckoutLoaded:!1,isPaymentFormFilled:!1,isAddressFormFilled:!1,isExpressCheckoutNotAvailable:!1,isGoogleAppleLoading:!0,isShowGoogleAppleBlock:!1}},computed:{formCurrency(){var t;return((t=this.$store.state.currentUser.currency)==null?void 0:t.toLowerCase())||this.defaultCurrency.toLowerCase()},isExpressCheckoutVisible(){return this.isExpressCheckoutLoaded&&this.isStripeFormLoaded},...h("color_scheme",["primaryCssColors"])},watch:{"$i18n.locale"(){this.elements.update({locale:this.$i18n.locale})},isAddressFormFilled(t,e){t!=e&&this.$emit("addressFilled",t)},isPaymentFormFilled(t,e){t!=e&&this.$emit("paymentFilled",t)},isStripeFormLoaded(t,e){t!=e&&this.$emit("stripeLoaded",t)},amount(t,e){t!=e&&this.elements.update({amount:t})}},methods:{async initStripe(t=null){if(this.stripe)return;const e={locale:this.$i18n.locale};t&&(e.stripeAccount=t),this.stripe=await Lt("pk_live_hqkiyfyTKIHknV0PFhP9q0sf",e);const a={mode:this.stripeMode,currency:this.formCurrency,loader:"never",setupFutureUsage:"off_session",paymentMethodTypes:["card"],...vc.getElementsSettings({primaryColor:this.primaryCssColors["--primary-color"],primaryShadowColor:this.primaryCssColors["--primary-shadow-color"]})};this.stripeMode!="setup"&&(a.amount=this.amount),this.elements=await this.stripe.elements(a)},async cardInit(t=null){try{const{data:e}=await d.get(t?`athlete/card_tokens/card_init?coach_id=${t}`:"stripe/card_init");return{clientSecret:e.client_secret,error:null}}catch(e){return{clientSecret:null,error:e}}},renderStripeExpressCheckout(){const t=this.elements.create("expressCheckout",{buttonHeight:40,layout:{maxColumns:3,maxRows:3},paymentMethods:{link:"never",googlePay:"auto",applePay:"always"},buttonType:{applePay:"plain",googlePay:"plain"}});return t.mount(`#${this.expressCheckoutId}`),t.on("ready",({availablePaymentMethods:e})=>{e?this.isExpressCheckoutLoaded=!0:this.isExpressCheckoutNotAvailable=!0}),t},async renderStripeCardSetupForm(t=null){const e={layout:"tabs",wallets:{applePay:"never",googlePay:"never"},business:{name:"FITR"}},a=this.elements.create("payment",e);a.on("ready",()=>{setTimeout(()=>{this.isStripeFormLoaded=!0},1500)}),a.on("change",o=>{if(o.complete){this.isPaymentFormFilled=!0;return}this.isPaymentFormFilled=!1});const i={mode:"billing",fields:{phone:"always"}};t&&(i.defaultValues=t);const s=this.elements.create("address",i);s.on("change",o=>{if(o.complete){this.isAddressFormFilled=!0;return}this.isAddressFormFilled=!1}),a.mount(`#${this.paymentElementId}`),s.mount(`#${this.addressElementId}`)},renderStripePaymentRequest(t){var i;this.isGoogleAppleLoading=!0,(i=this.elements.getElement("paymentRequestButton"))==null||i.destroy();const e=this.stripe.paymentRequest({country:"GB",currency:t.local_price.currency.toLowerCase(),total:{label:t.title,amount:t.local_price.total_fractional},requestPayerName:!0,requestPayerEmail:!0}),a=this.elements.create("paymentRequestButton",{paymentRequest:e});return new Promise((s,o)=>{e.canMakePayment().then(c=>{c?(this.isGoogleAppleLoading=!1,this.isShowGoogleAppleBlock=!0,this.$nextTick(()=>{a.mount("#payment-request-button")})):(this.isGoogleAppleLoading=!1,this.isShowGoogleAppleBlock=!1),s({paymentRequest:e,canMakePayment:c})}).catch(c=>{o(c)})})},createNewCard(t,e,a=void 0){return d.request({url:t,method:"POST",data:{card:{token:e.payment_method},coach_id:a}})},createNewCardForAthlete(t,e){return d.request({url:"athlete/card_tokens",method:"POST",data:{coach_id:e,payment_method_id:t}})},editCardBillingInfo(t="stripe/card",e,a){return d.patch(`${t}/${e}`,a)},async setupCard(t,e=null){const{clientSecret:a}=await this.cardInit(e);return this.elements.submit(),this.stripe.confirmSetup({clientSecret:a,elements:this.elements,confirmParams:{return_url:t},redirect:"if_required"})},clearStripeForm(){this.isStripeFormLoaded=!1,this.isExpressCheckoutLoaded=!1,this.isPaymentFormFilled=!1,this.isAddressFormFilled=!1,this.stripe=null,this.elements=null},async getValuesFromAddressElement(){return await this.elements.getElement("address").getValue()}}};var bc=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",[e.isExpressCheckout&&!e.isPaymentProcessing?[e.isGoogleAppleLoading?[a("span",{staticClass:"loading loading-with-margin"},[e._v("LOADING")])]:e.isShowGoogleAppleBlock?a("div",{staticClass:"google-apple-block",attrs:{id:"payment-request-button"}}):e._e()]:e._e(),e.$slots.cards?e._t("cards"):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowPaymentForm,expression:"isShowPaymentForm"}]},[e.isStripeFormLoaded?e._e():[a("div",{staticClass:"loading m-auto"})],a("div",{directives:[{name:"show",rawName:"v-show",value:e.isStripeFormLoaded,expression:"isStripeFormLoaded"}]},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isPaymentElement,expression:"isPaymentElement"}],staticClass:"mb-3"},[a("div",{attrs:{id:e.paymentElementId}})]),a("div",{staticClass:"address-stripe-element",attrs:{id:e.addressElementId}})]),e.invalidFeedback&&e.invalidFeedback.length>0?a("div",{staticClass:"invalid-feedback d-block"},[e._v(" "+e._s(e.invalidFeedback)+" ")]):e._e()],2)],2)},gc=[],wc=l(yc,bc,gc,!1,null,"d03075fc");const Cc=wc.exports,kc={name:"CardForm",components:{StripeForm:Cc},props:{value:Boolean,mode:{type:String,default:"add"},card:{type:Object},coachId:{type:[String,Number],default:null},stripeAccountId:{type:String,default:null},defaultCurrency:{type:String,default:"USD"}},data(){return{invalidFeedback:null,brand:"unknown",isPaymentFormFilled:!1,isAddressFormFilled:!1,isStripeFormLoaded:!1}},computed:{isComplete(){return(this.isPaymentFormFilled||this.isEditMode)&&this.isAddressFormFilled&&this.isStripeFormLoaded},isEditMode(){return this.mode=="edit"||this.mode=="edit-partial"},isUserAthlete(){return!!this.coachId},...C(["currentUser"]),...h("settings",["stateNameByCode"])},watch:{isComplete:{handler:function(t){this.$emit("input",t)},immediate:!0},isStripeFormLoaded(t){this.$emit("stripeLoaded",t)}},async mounted(){var e,a;this.brand=((e=this.card)==null?void 0:e.brand)||"unknown",await this.$refs.stripeForm.initStripe(this.stripeAccountId);const t=this.card?(a=this.card)==null?void 0:a.billing_info:null;this.$refs.stripeForm.renderStripeCardSetupForm(t)},methods:{async addPaymentMethod(){const t=this.$router.resolve({name:"user_billing_payment_methods"}),e=new URL(t.href,"https://app.fitr.training").href,{setupIntent:a,error:i}=await this.$refs.stripeForm.setupCard(e,this.coachId);if(i)throw this.handleCardSetupError(i),i;return new Promise((s,o)=>{(this.isUserAthlete?this.$refs.stripeForm.createNewCardForAthlete(a.payment_method,this.coachId):this.$refs.stripeForm.createNewCard("stripe/card",a)).then(c=>s(c)).catch(c=>{this.handleServerError(c),o(c)})})},async editPaymentMethod(){const e={billing_details:{...(await this.$refs.stripeForm.getValuesFromAddressElement()).value},preferred_network:this.brand};return this.$refs.stripeForm.editCardBillingInfo(this.isUserAthlete?"athlete/card_tokens":"stripe/card",this.card.id,e)},handleServerError(t){var e,a;this.invalidFeedback=(a=(e=t.response.data)==null?void 0:e.base)==null?void 0:a.invalid,m(t)},handleCardSetupError(t){this.invalidFeedback=t.message,m(t)}}};var Sc=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"card-form"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12"},[e.mode=="rewrite"?[a("p",{staticClass:"card-form_text"},[e._v(" "+e._s(e.$t("en.modal.payment.rewrite_text"))+" ")])]:[a("p",{staticClass:"card-form_text"},[e._v(" "+e._s(e.$t("en.modal.payment.text"))+" ")])]],2),["edit","edit-partial"].includes(e.mode)?[a("div",{staticClass:"col-md-7"},[a("div",{staticClass:"form-group card-added mb-3"},[a("label",[e._v(e._s(e.$t("en.modal.payment.card_number")))]),a("div",{staticClass:"form-control",attrs:{readonly:""}},[a("div",{staticClass:"d-flex align-items-center justify-content-between"},[a("div",{staticClass:"value"},[a("div",{staticClass:"card-number"},[a("span",{staticClass:"card-number__dots"},[e._v("····")]),a("span",{staticClass:"card-number__dots"},[e._v("····")]),a("span",{staticClass:"card-number__dots"},[e._v("····")]),a("span",{staticClass:"card-number__last4"},[e._v(e._s(e.card.last4))])])]),e.card.networks.length>1?a("div",{staticClass:"card-network-select"},[a("div",{staticClass:"card-network-select__icon"},[a("span",{staticClass:"card-type card-type_sm ml-0",class:e.brand})]),a("div",{staticClass:"card-network-select__select"},[a("b-form-select",{model:{value:e.brand,callback:function(i){e.brand=i},expression:"brand"}},e._l(e.card.networks,function(i){return a("option",{key:i,domProps:{value:i}},[e._v(" "+e._s(e.$t(`en.modal.payment.card_brand.${i}`))+" ")])}),0)],1)]):a("span",{staticClass:"card-type card-type_sm",class:e.card.brand.toLowerCase()})])])])])]:e._e(),e.$slots["update-button"]?a("div",{staticClass:"col-12"},[e._t("update-button")],2):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:e.mode!="edit-partial",expression:"mode != 'edit-partial'"}],staticClass:"col-12"},[a("stripe-form",{ref:"stripeForm",attrs:{"payment-element-id":"modal-payment-element","address-element-id":"modal-address-element","is-payment-element":!e.isEditMode,"invalid-feedback":e.invalidFeedback,"default-currency":e.defaultCurrency},on:{stripeLoaded:i=>e.isStripeFormLoaded=i,paymentFilled:i=>e.isPaymentFormFilled=i,addressFilled:i=>e.isAddressFormFilled=i}})],1)],2)])},Ac=[],Pc=l(kc,Sc,Ac,!1,null,"6526920c");const Tc=Pc.exports,$c={name:"ModalAddPaymentMethod",components:{CardForm:Tc},props:{coachId:{type:[String,Number],default:null},stripeAccountId:{type:String,default:null},defaultCurrency:{type:String,default:"USD"}},data(){return{isModalShowed:!1,busy:!1,mode:"add",currentCard:null,invalidFeedback:null,complete:!1,editingSuccessful:!1}},computed:{isEditMode(){return this.mode=="edit"},modalTitle(){switch(this.mode){case"add":return this.$t("en.modal.payment.title.new");case"edit":return this.$t("en.modal.payment.title.edit");case"rewrite":return this.$t("en.modal.payment.title.rewrite");default:return this.$t("en.modal.payment.title.new")}},modalCTA(){return this.isEditMode?this.$t("en.modal.payment.button.update"):this.$t("en.modal.payment.button.new")},isUserAthlete(){return!!this.coachId}},methods:{show(t,e){t&&(this.mode=t),e&&(this.currentCard=e),this.$refs.addPaymentMethod.show()},hide(){this.$refs.addPaymentMethod.hide()},handleModalShow(){this.isModalShowed=!0},handleModalShown(){},handleModalHide(t){this.busy&&t.preventDefault()},handleModalHidden(){!this.editingSuccessful&&this.mode=="edit"&&this.$emit("editingFailed"),this.isModalShowed=!1,this.busy=!1,this.mode="add",this.currentCard=null,this.complete=!1},async handlePaymentMethod(){this.busy=!0,this.invalidFeedback=null,this.mode=="edit"?this.editPaymentMethod():this.addPaymentMethod()},async addPaymentMethod(){this.$refs.cardForm.addPaymentMethod().then(({data:t})=>{this.$emit("addedCard",t),this.$notify({group:"alerts",type:"congrats",title:"Card was successfully added."}),this.busy=!1,this.hide()}).catch(()=>this.handleServerError())},async editPaymentMethod(){this.$refs.cardForm.editPaymentMethod().then(({data:t})=>{this.editingSuccessful=!0,this.$emit("editCard",t),this.$notify({group:"alerts",type:"congrats",title:"Card was successfully updated."}),this.busy=!1,this.hide()}).catch(()=>this.handleServerError())},handleServerError(){this.busy=!1}}};var xc=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"addPaymentMethod",staticClass:"add-payment-modal",attrs:{size:"710","no-enforce-focus":!0,title:e.modalTitle},on:{show:e.handleModalShow,shown:e.handleModalShown,hide:e.handleModalHide,hidden:e.handleModalHidden}},[e.isModalShowed?[a("card-form",{ref:"cardForm",attrs:{card:e.currentCard,mode:e.mode,"coach-id":e.coachId,"stripe-account-id":e.stripeAccountId,"default-currency":e.defaultCurrency},model:{value:e.complete,callback:function(i){e.complete=i},expression:"complete"}})]:e._e(),a("template",{slot:"modal-footer"},[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:e.hide}},[e._v(" "+e._s(e.$t("en.modal.payment.button.cancel"))+" ")]),a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.busy},attrs:{type:"button",disabled:!e.complete||e.busy},on:{click:e.handlePaymentMethod}},[e._v(" "+e._s(e.modalCTA)+" ")])])],2)},Ic=[],Rc=l($c,xc,Ic,!1,null,"9c9e9efe");const Ec=Rc.exports,Dc={name:"WhatHappensNext",props:{planType:{type:String},startDate:{type:[String,Number,Date]},launchDate:{type:[String,Number,Date]},isPlanFree:{type:Boolean,default:!1}}},Fc="/app-assets/app-store-CjYEKkEt.svg",Mc="/app-assets/google-play-CFrgQ7OK.svg",Lc="/app-assets/phone-BqIxgn-p.png";var Oc=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"what-happens-next"},[a("div",{staticClass:"page-block pt-3 pb-0"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6"},[a("p",{staticClass:"text"},[a("b",[e._v("1.")]),e._v(" "+e._s(e.$t("en.plan.modal.what_happen.fixed_s1d1.text1"))+" ")]),a("p",{staticClass:"text"},[a("b",[e._v("2.")]),e._v(" "+e._s(e.$t("en.plan.modal.what_happen.fixed_s1d1.text2"))+" ")]),a("p",{staticClass:"text"},[a("b",[e._v("3.")]),e._v(" "+e._s(e.$t("en.plan.modal.what_happen.fixed_s1d1.text3"))+" ")]),["membership","one_many"].includes(e.planType)&&!e.isPlanFree?[e.launchDate?a("p",{staticClass:"text"},[a("b",[e._v(" 4. ")]),a("span",{domProps:{innerHTML:e._s(e.$t("en.plan.modal.what_happen.fixed_s1d1.text4_launch",{date:e.$moment(e.launchDate).format("DD MMM, YYYY")}))}})]):e.startDate?a("p",{staticClass:"text"},[a("b",[e._v("4.")]),a("span",{domProps:{innerHTML:e._s(e.$t("en.plan.modal.what_happen.fixed_s1d1.text4",{date:e.$moment(e.startDate).format("DD MMM, YYYY")}))}})]):e._e()]:e._e(),a("p",{staticClass:"text"},[a("b",[["membership","one_many"].includes(e.planType)&&(e.launchDate||e.startDate)&&!e.isPlanFree?[e._v("5.")]:[e._v("4.")]],2),e._v(" "+e._s(e.$t("en.plan.modal.what_happen.fixed_s1d1.text5"))+" ")]),e._m(0)],2),e._m(1)])])])},Uc=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"d-flex"},[e("a",{staticClass:"d-block",attrs:{href:"https://apps.apple.com/us/app/fitr-training-client-app/id1548478229",target:"_blank"}},[e("img",{attrs:{src:Fc,alt:"apple store"}})]),e("a",{staticClass:"d-block ml-3",attrs:{href:"https://play.google.com/store/apps/details?id=com.fitr_training.client",target:"_blank"}},[e("img",{attrs:{src:Mc,alt:"google play"}})])])},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"col-md-6 mt-5 mt-md-0"},[e("div",{staticClass:"d-flex justify-content-center"},[e("img",{staticClass:"what-happens-next_img",attrs:{src:Lc,alt:"phone screen"}})])])}],Yc=l(Dc,Oc,Uc,!1,null,"75e40f1f");const Bc=Yc.exports,Vc=()=>n(()=>import("./index-BIUWXTpE.js"),__vite__mapDeps([215,2,3,63,64,1,32,216,217,218,219,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,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,220])),Nc=.45,Wc={name:"PublicPlan",components:{AppHeader:I,PlanDetail:tr,AddToCalendarModal:ur,DatePicker:A,WaiverPlanModal:fr,OverlayLoader:wr,AskQuestion:Vc,RescheduleModal:Pr,UnsubscribeModal:Rr,ResumeModal:Lr,SignInModal:zr,ProgramEditTopBar:mc,ModalAddPaymentMethod:Ec,WhatHappensNext:Bc},props:{plan_id:{type:[String,Number]},planJustBought:{type:Boolean,default:!1},backRoute:{type:String,default:null}},data(){return{plan:{},isLoading:!0,isSubmited:!1,isMobileLayout:!1,isRestartSubmited:!1,isContinueSubmited:!1,isFreeSubmited:!1,isTrySubmited:!1,retryInvalidFeedback:null,scrollPosition:0,loadingRescheduleInfo:!1,isResumeSubmited:!1,agreement:!1,startFreeMembershipFrom:"",isTryPaymentAgain:!1,isTryingPaymentAgaing:!1,lastAction:null,justBoughtFree:!1}},computed:{isOwner(){return this.currentUser.role=="coach"&&this.currentUser.id==this.plan.user.id},isOwnerBlocked(){return!this.plan.user.subscription_state},isArchivedPlan(){return this.plan.archive},isPrivatePlan(){return!this.plan.accessibility},canSubscribe(){return!this.isArchivedPlan&&this.currentUser.role!="coach"},canSale(){return this.plan.can_sale},isAllowedToBuy(){return this.authenticated?this.plan.is_bought?!0:this.plan.allowed_to_buy:this.plan.allowed_to_buy},isUserDisallowedInPrivatePlan(){return this.canSubscribe&&this.isPrivatePlan&&!this.isAllowedToBuy},isFreePlan(){return this.plan.plan_pricing=="free"},isFixedPlan(){return this.plan.plan_type=="fixed"},isMembershipPlan(){return this.plan.plan_type=="membership"},isBespokePlan(){return this.plan.plan_type=="individual"},isOneManyPlan(){return this.plan.plan_type=="one_many"},displayedPrice(){return this.currentUser.role=="user"?this.plan.local_price:this.plan.original_price},cannotBeBought(){return!this.isFreePlan&&!this.isOwner&&!this.plan.user.stripe_connect_charges_enabled},cssVars(){return{"--position":this.scrollPosition+"px"}},isWaiverAvailable(){var t;return!!this.plan.plan_waiver&&!!((t=this.plan.plan_waiver)!=null&&t.show)},isZapierAccount(){var t;return(t=this.plan.user)==null?void 0:t.zapier_account},isCancelSubscribtionAvailable(){var t;return((t=this.plan.user)==null?void 0:t.zaps_connected)||!this.isZapierAccount},isScheduled(){return this.plan.membership&&this.plan.membership.state=="scheduled"},isShowTextInUnsubscribeModal(){return this.isFreePlan?!1:!(this.plan.membership&&["incomplete","scheduled"].includes(this.plan.membership.state))},planLaunchDate(){return this.plan.launch_date&&!this.$moment(this.plan.launch_date,"YYYY-MM-DD").isSameOrBefore(this.$moment(),"day")?this.plan.launch_date:null},isStartTrialAvailable(){return this.planLaunchDate?!1:!!this.plan.trial_days},skipSalesPage(){return this.currentUser.role!="coach"&&this.plan.skip_sales_page&&!this.plan.is_bought&&!this.isScheduled},stripeAccountId(){var t;return(t=this.plan.user)==null?void 0:t.stripe_account},coachId(){var t;return(t=this.plan.user)==null?void 0:t.id},...C(["currentUser","authenticated"]),...h(["isUserCoach"])},watch:{"$route.params.plan_id":"fetchData"},mounted(){this.fetchData()},created(){this.mq=window.matchMedia("(max-width: 797.98px)"),this.updateMatches(),this.mq.addListener(this.updateMatches)},beforeDestroy(){this.mq&&(this.mq.removeListener(this.updateMatches),this.mq=void 0)},methods:{showRescheduleModal(){this.loadingRescheduleInfo=!0,d.get(`plans/${this.plan.id}/re_add_info`).then(({data:t})=>{this.$refs.rescheduleModal.showModal(t),this.loadingRescheduleInfo=!1}).catch(t=>{m(t),this.loadingRescheduleInfo=!1})},updateMatches(){this.mq.matches?this.initScrollWatch():this.destroyScrollWatch(),this.isMobileLayout=this.mq.matches},initScrollWatch(){this.requestId=window.requestAnimationFrame(this.updateScrollPosition)},destroyScrollWatch(){this.requestId&&(window.cancelAnimationFrame(this.requestId),this.requestId=void 0)},updateScrollPosition(){if(this.scrolledCover){let t=this.scrolledCover.getBoundingClientRect();t.top<=0&&t.bottom+this.scrollPosition>=0?this.scrollPosition=-t.top*Nc:t.top>0&&(this.scrollPosition=0)}this.initScrollWatch()},fetchData(){this.isLoading=!0,d.get(`plans/${this.plan_id}/public`).then(t=>{this.plan=t.data,this.skipSalesPage?this.$router.replace({name:"plan_purchase_form"}).catch(()=>{}):(!this.authenticated&&this.isUserDisallowedInPrivatePlan?this.$refs.SignInModal.showModal():this.planJustBought||this.plan.is_bought&&!this.plan.is_applied&&(this.plan.plan_type=="fixed"||this.plan.plan_type=="membership")&&!this.plan.is_blocked?window.localStorage.getItem("get_free_program_id")&&window.localStorage.removeItem("get_free_program_id"):window.localStorage.getItem("get_free_program_id")&&window.localStorage.getItem("get_free_program_id")==this.plan.id&&!this.plan.is_bought&&this.authenticated&&!this.isUserDisallowedInPrivatePlan&&this.checkPlanWaiver(),this.isLoading=!1,this.$nextTick().then(()=>{this.scrolledCover=document.querySelector(".plan-header > .cover")}))}).catch(t=>{m(t),this.isLoading=!1})},updateDataAfterCancel(t){this.plan=t},hanleAddToCalendar(){this.plan.membership!=null&&this.plan.membership.state=="resume"&&!this.isBespokePlan&&!this.isOneManyPlan&&this.plan.is_applied?this.$refs.reAddToCalendarModal.show():this.isMembershipPlan&&this.planLaunchDate?this.$router.push({name:"plan_purchase_form",params:{plan_id:this.plan.id.toString()},query:{waiverAgree:this.agreement}}):this.$refs.addToCalendarModal.show()},reAddToCalendar(t){this.isSubmited=!0,t=="continue"?this.isContinueSubmited=!0:this.isRestartSubmited=!0,d.request({url:`plans/${this.plan.id}/resume`,method:"POST",data:{resume_type:t}}).then(e=>{this.plan=e.data,this.$refs.reAddToCalendarModal.hide(),t=="continue"?this.$notify({group:"alerts",type:"congrats",title:"Your program has been resumed successfully!"}):this.$refs.addToCalendarModal.show()}).catch(m).finally(()=>{this.isSubmited=!1,this.isContinueSubmited=!1,this.isRestartSubmited=!1})},afterAddToCalendar(t){this.isFreePlan?this.getForFree(t):this.plan.is_bought?this.applyPlan(t):this.$router.push({name:"plan_purchase_form",params:{plan_id:this.plan.id.toString()},query:{startDate:t,waiverAgree:this.agreement}})},checkPlanWaiver(){this.isWaiverAvailable&&this.authenticated?this.$refs.waiverPlanModal.show():this.authenticated?this.choseAddCalendarOrBuy():(this.isFreePlan&&window.localStorage.setItem("get_free_program_id",this.plan.id),this.$router.push({name:"onboarding-type-selection"}))},resumeWaiverAccepted(){this.agreement=!0,this.isTryPaymentAgain?(this.isTryingPaymentAgaing=!0,this.tryPaymentAgain()):this.choseAddCalendarOrBuy()},choseAddCalendarOrBuy(){this.isFixedPlan?this.hanleAddToCalendar():this.isMembershipPlan?this.isFreePlan?this.plan.will_resume?this.$refs.resumeSubscribe.showModal():this.plan.membership==null?this.hanleAddToCalendar():this.getForFree():this.plan.membership==null?this.hanleAddToCalendar():this.$router.push({name:"plan_purchase_form",params:{plan_id:this.plan.id}}):this.getForFree()},startFreeMembershipPlanFrom(t){this.startFreeMembershipFrom=t,this.getForFree()},getForFree(t){if(this.authenticated){this.isSubmited=!0,this.isFreeSubmited=!0;let e;t&&typeof t=="string"&&(e={start_date:t}),this.startFreeMembershipFrom&&(e={resume_type:this.startFreeMembershipFrom}),d.request({url:`stripe/plan/${this.plan.id}/buy`,method:"POST",data:e}).then(a=>{this.$refs.addToCalendarModal.hide(),this.plan=a.data;let i=this.plan.plan_type=="fixed"?"Program has been successfully purchased.":"You have been successfully subscribed to the Program.";this.$notify({group:"alerts",type:"congrats",title:i}),this.justBoughtFree=!0,window.localStorage.getItem("get_free_program_id")&&window.localStorage.removeItem("get_free_program_id")}).catch(m).finally(()=>{this.$refs.addToCalendarModal&&this.$refs.addToCalendarModal.stopLoading(),this.isSubmited=!1,this.isFreeSubmited=!1,this.startFreeMembershipFrom&&(this.startFreeMembershipFrom="")})}else window.localStorage.getItem("get_free_program_id")?window.localStorage.removeItem("get_free_program_id"):(window.localStorage.setItem("get_free_program_id",this.plan.id),this.$router.push({name:"onboarding-type-selection"}))},checkWaiverBeforeTryPaymentAgain(){this.isWaiverAvailable?(this.$refs.pastDueSubscriptionModal.hide(),this.isTryPaymentAgain=!0,this.$refs.waiverPlanModal.show()):this.tryPaymentAgain()},tryPaymentAgain(){this.authenticated&&(this.lastAction="retry",this.isTrySubmited=!0,d.request({url:`stripe/plan/${this.plan.id}/retry`,method:"POST"}).then(({data:t})=>{this.handleRetryServerResponse(t)}).catch(t=>{this.handlePaymentError(t)}).finally(()=>{this.isTryPaymentAgain=!1,this.isTryingPaymentAgaing=!1}))},handleRetryServerResponse(t){if(t.error)this.handleRetrytError(t.error);else if(t.requires_action){if(this.plan.plan_type!="fixed"){if(window.Stripe===void 0)throw new Error("Stripe V3 library not loaded!");window.Stripe("pk_live_hqkiyfyTKIHknV0PFhP9q0sf",{stripeAccount:this.plan.user.stripe_account}).handleCardPayment(t.payment_intent_client_secret).then(a=>{this.handleRetryStripeResponse(a)})}}else this.handleRetrytSuccess()},handleRetryStripeResponse(t){t.error?this.handleRetrytError(t.error):d.request({url:`stripe/plan/${this.plan.id}/retry/check`,method:"POST",data:{intent:t.paymentIntent.id}}).then(({data:e})=>{this.handleRetryServerResponse(e)}).catch(e=>{this.handleRetrytError(e)})},handleRetrytError(t){var e,a,i;(i=(a=(e=t.response)==null?void 0:e.data)==null?void 0:a.base)!=null&&i.invalid?this.retryInvalidFeedback=t.response.data.base.invalid:t.message&&(this.retryInvalidFeedback=t.message),m(t),this.isTrySubmited=!1},handleRetrytSuccess(){let t=this.plan.plan_type=="fixed"?"Program has been successfully purchased.":"You have been successfully subscribed to the Program.";d.get(`plans/${this.plan.id}/public`).then(e=>{this.plan=e.data}).finally(()=>{this.$refs.pastDueSubscriptionModal.hide(),this.isTrySubmited=!1,this.$notify({group:"alerts",type:"congrats",title:t})})},askQuestion(){this.isOwner||this.$refs.askQuestion.showModal()},resumeEOB(){this.isResumeSubmited=!0,this.lastAction="resume",d.request({url:`athlete/plans/${this.plan.id}/resume_subscribe`,method:"POST"}).then(()=>{this.plan.membership.cancel_at_period_end=!1,this.$notify({group:"alerts",type:"congrats",title:"Subscription successfully resumed."})}).catch(this.handlePaymentError).finally(()=>{this.isResumeSubmited=!1})},handlePaymentError(t){t.response.status=="422"?this.$refs.modalPaymentMethod.show():t.response.status=="426"?d.get("stripe/cards").then(e=>{let i=e.data.find(s=>s.kind=="default");this.$refs.modalPaymentMethod.show("edit",i)}).catch(m):this.lastAction=="retry"?this.handleRetrytError(t):m(t)},applyPlan(t){if(!this.plan.is_bought||this.plan.is_applied)return!1;d.request({url:"schedule/apply_plan",method:"POST",data:{plan_id:this.plan.id,start_date:t}}).then(({data:e})=>{this.plan=e,this.$notify({group:"alerts",type:"congrats",title:"Program successfully added"})}).catch(m).finally(()=>{this.$refs.addToCalendarModal.hide()})},cardHandler(){switch(this.lastAction){case"retry":this.tryPaymentAgain();break;case"resume":this.resumeEOB();break}},setupNewCardAndPay(){this.lastAction="retry",this.$refs.modalPaymentMethod.show()}},metaInfo(){var t;if((t=this.plan)!=null&&t.id){const e=this.plan.custom_url||this.plan.id;let a=this.$router.resolve({name:"public_plan",params:{plan_id:e}}),i={meta:[{property:"og:url",content:new URL(a.href,"https://app.fitr.training").href,vmid:"og_url"}]};if(this.plan.title&&(i.title=`${this.plan.title} | ${this.plan.user.full_name} | FITR`,i.meta.push({property:"og:title",content:`${this.plan.title} | ${this.plan.user.full_name} | FITR`,vmid:"og_title"})),this.plan.description&&this.plan.description.length>0?(i.meta.push({name:"description",content:this.plan.description.slice(0,256),vmid:"description"}),i.meta.push({property:"og:description",content:this.plan.description.slice(0,256),vmid:"og_description"})):(i.meta.push({name:"description",content:`View the ${this.plan.title} published by ${this.plan.user.full_name} on FITR and find your next remote health and fitness coach.`,vmid:"description"}),i.meta.push({property:"og:description",content:`View the ${this.plan.title} published by ${this.plan.user.full_name} on FITR and find your next remote health and fitness coach.`,vmid:"og_description"})),this.plan.covers.length>0){let s=this.plan.covers.find(o=>o.cover_type=="main");s&&i.meta.push({property:"og:image",content:s.large,vmid:"og_image"}),i.meta.push({vmid:"twitter_card",name:"twitter:card",content:"summary_large_image"}),i.meta.push({property:"og:image:alt",content:`${this.plan.user.full_name} - ${this.plan.title}. FITR, Remote Health and Fitness Software.`,vmid:"og_image_alt"})}return i}return null}};var Hc=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"public-page",style:e.cssVars},[e.authenticated?a("app-header"):e._e(),e.isLoading?a("div",{staticClass:"loading"},[e._v("LOADING")]):e.plan.id!=null?[a("OverlayLoader",{attrs:{show:e.isTryingPaymentAgaing}},[e.justBoughtFree?[a("div",{staticClass:"container container_what-happens"},[a("h1",{staticClass:"container_what-happens_title"},[e._v("What Happens Next?")]),a("what-happens-next",{attrs:{"plan-type":e.plan.plan_type,"is-plan-free":e.isFreePlan,"start-date":e.plan.schedule_started_at,"launch-date":e.planLaunchDate}})],1)]:[e.isUserCoach?[a("div",{staticClass:"alert alert-sm alert-danger rounded-0 m-0"},[a("div",{staticClass:"alert-body"},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e._v(" Login using a client account to access this program. "),a("a",{staticClass:"alert-link",attrs:{target:"_blank",href:"https://intercom.help/fitr/en/articles/4581927-set-up-a-coach-client-account-if-i-ve-already-got-one"}},[e._v("More information")]),e._v(". ")])])])]:e._e(),e.isArchivedPlan?[a("div",{staticClass:"alert alert-sm alert-danger rounded-0 m-0"},[a("div",{staticClass:"alert-body"},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e._v(" "+e._s(e.$t("en.plan.alert.archived"))+" "),a("router-link",{staticClass:"alert-link",attrs:{to:{name:"public-page-plans",params:{user_id:e.plan.user.id}}}},[e._v("here")]),e._v(". ")],1)])])]:e._e(),e.isUserDisallowedInPrivatePlan?[a("div",{staticClass:"alert alert-sm alert-danger rounded-0 m-0"},[a("div",{staticClass:"alert-body"},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e._v(" "+e._s(e.$t("en.plan.alert.permission"))),a("br"),e._v(" "+e._s(e.$t("en.plan.alert.privacy_setting"))+" ")])])])]:e._e(),e.cannotBeBought?[a("div",{staticClass:"alert alert-sm alert-danger rounded-0 m-0"},[a("div",{staticClass:"alert-body"},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e._v(" "+e._s(e.$t("en.plan.alert.bought"))+" ")])])])]:e._e(),e.plan.membership!=null&&["past_due","incomplete"].includes(e.plan.membership.state)?[a("div",{staticClass:"membership-warning"},[a("div",{staticClass:"alert alert-sm alert-danger rounded-0 m-0"},[a("div",{staticClass:"alert-body"},[a("div",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertStrokeIcon"}})],1),a("div",{staticClass:"alert-body__text"},[e._v(" "+e._s(e.$t("en.plan.warning.part1"))+" "),a("a",{staticClass:"alert-link",attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.$refs.pastDueSubscriptionModal.show()}}},[e._v("Click here")]),e._v(" "+e._s(e.$t("en.plan.warning.part2"))+" ")])])])])]:e._e(),a("plan-detail",{ref:"planDetail",attrs:{plan:e.plan,"back-route":e.backRoute},scopedSlots:e._u([e.plan.covers.length?{key:"cover",fn:function(){return[a("program-edit-top-bar",{staticClass:"col-auto",attrs:{plan:e.plan,"is-mobile-layout":e.isMobileLayout,"is-view-mode":!0}})]},proxy:!0}:null],null,!0)},[a("template",{slot:"publish-actions"},[e.isUserDisallowedInPrivatePlan&&e.authenticated?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.askQuestion}},[e._v(" Contact coach ")])]:e.canSubscribe&&e.isAllowedToBuy?[e.isFixedPlan?a("div",{staticClass:"actions"},[e.plan.is_bought?[e.plan.is_applied?[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"calendar"}}},[e._v(" "+e._s(e.$t("en.plan.actions.calendar"))+" ")]),a("div",{staticClass:"actions__sub"},[a("button",{staticClass:"btn btn-sm btn-link",attrs:{type:"button",disabled:e.loadingRescheduleInfo},on:{click:e.showRescheduleModal}},[e._v(" Reschedule ")])])]:[e.plan.is_blocked?[a("span",{attrs:{id:"start-btn-tooltip",tabindex:"0"}},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:e.plan.is_blocked}},[e._v(" Start my Program ")])]),a("b-tooltip",{attrs:{target:"start-btn-tooltip"}},[e._v(" You’ve been removed from the program by the coach and cannot access it. ")])]:[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.$refs.addToCalendarModal.show()}}},[e._v(" Start my Program ")])]]]:[!e.isOwnerBlocked&&!e.isZapierAccount?[e.canSale?[e.isFreePlan?[a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isFreeSubmited},attrs:{type:"button",disabled:e.isSubmited||e.isFreeSubmited},on:{click:e.checkPlanWaiver}},[e._v(" Get for Free ")])]:[e.cannotBeBought?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:"disabled"}},[e._v(" Purchase ")])]:[a("button",{staticClass:"btn btn-primary",on:{click:e.checkPlanWaiver}},[e._v(" Purchase ")])]]]:[a("span",{staticClass:"d-inline-block",attrs:{id:"disabled-wrapper",tabindex:"0"}},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:"disabled"}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"blockIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v("Currently Unavailable")])])])]),a("b-tooltip",{attrs:{target:"disabled-wrapper"}},[e._v(" This program is not currently accepting new clients. "),a("br"),e._v("Please contact the provider for more information. ")])]]:e._e()]],2):a("div",{staticClass:"actions"},[e.plan.membership!=null?[e.plan.membership.state=="canceled"?[!e.isOwnerBlocked&&!e.isZapierAccount?[e.canSale&&e.plan.allowed_to_buy?[e.isFreePlan?[a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isFreeSubmited},attrs:{type:"button",disabled:e.isSubmited||e.isFreeSubmited},on:{click:e.checkPlanWaiver}},[e._v(" Resume for Free ")])]:[e.cannotBeBought?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:"disabled"}},[e._v(" Resume Subscription ")])]:[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"plan_purchase_form",params:{plan_id:e.plan.id.toString()}}}},[e._v("Resume Subscription")])]]]:[a("span",{staticClass:"d-inline-block w-100",attrs:{id:"disabled-wrapper",tabindex:"0"}},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:"disabled"}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"blockIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v("Currently Unavailable")])])])]),a("b-tooltip",{attrs:{target:"disabled-wrapper"}},[e._v(" This program is not currently accepting new clients. "),a("br"),e._v("Please contact the provider for more information. ")])]]:e._e(),e.plan.is_applied?[a("div",{staticClass:"actions__sub"},[a("router-link",{staticClass:"btn btn-sm btn-link",attrs:{to:{name:"calendar"}}},[e._v(" "+e._s(e.$t("en.plan.actions.calendar"))+" ")])],1)]:e._e()]:e.plan.membership.state=="resume"?[!e.isBespokePlan&&!e.isOneManyPlan?[e.plan.is_applied?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.$refs.reAddToCalendarModal.show()}}},[e._v(" Start my Program ")])]:[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.$refs.addToCalendarModal.show()}}},[e._v(" Start my Program ")])]]:[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"calendar"}}},[e._v(" "+e._s(e.$t("en.plan.actions.calendar"))+" ")])],e.isCancelSubscribtionAvailable?a("div",{staticClass:"actions__sub"},[a("button",{staticClass:"btn btn-sm btn-link",attrs:{type:"button"},on:{click:function(i){return e.$refs.agreeUnSubscribeModal.showModal()}}},[e._v(" Cancel subscription ")])]):e._e()]:["past_due","incomplete"].includes(e.plan.membership.state)?[e.isCancelSubscribtionAvailable?a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(i){return e.$refs.agreeUnSubscribeModal.showModal()}}},[e._v(" Cancel subscription ")]):e._e()]:[!e.isZapierAccount&&e.plan.membership.cancel_at_period_end?[a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isResumeSubmited},attrs:{type:"button",disabled:e.isResumeSubmited},on:{click:e.resumeEOB}},[e._v(" Resume subscription ")])]:[!e.isBespokePlan&&!e.isOneManyPlan?[e.plan.is_applied?[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"calendar"}}},[e._v(" "+e._s(e.$t("en.plan.actions.calendar"))+" ")])]:[e.isScheduled?e._e():a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return e.$refs.addToCalendarModal.show()}}},[e._v(" Start my Program ")])]]:[e.isScheduled?e._e():a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"calendar"}}},[e._v(" "+e._s(e.$t("en.plan.actions.calendar"))+" ")])],e.isCancelSubscribtionAvailable?a("div",{staticClass:"actions__sub"},[e.isScheduled?a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(i){return e.$refs.agreeUnSubscribeModal.showModal()}}},[e._v(" Cancel subscription ")]):a("button",{staticClass:"btn btn-link btn-sm",attrs:{type:"button"},on:{click:function(i){return e.$refs.agreeUnSubscribeModal.showModal()}}},[e._v(" Cancel subscription ")])]):e._e()]]]:[!e.isOwnerBlocked&&!e.isZapierAccount?[e.canSale?[e.isFreePlan?[a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isFreeSubmited},attrs:{type:"button",disabled:e.isSubmited||e.isFreeSubmited},on:{click:e.checkPlanWaiver}},[e._v(" Get for Free ")])]:[e.cannotBeBought?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:"disabled"}},[e._v(" Subscribe ")])]:[e.isMembershipPlan?[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.checkPlanWaiver}},[e.isStartTrialAvailable?[e._v(" Start "+e._s(e.plan.trial_days)+"-day free trial ")]:[e._v("Subscribe")]],2)]:[a("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"plan_purchase_form",params:{plan_id:e.plan.id.toString()}}}},[e.isStartTrialAvailable?[e._v("Start "+e._s(e.plan.trial_days)+"-day free trial")]:[e._v("Subscribe")]],2)]]]]:[a("span",{staticClass:"d-inline-block w-100",attrs:{id:"disabled-wrapper",tabindex:"0"}},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:"disabled"}},[a("span",{staticClass:"has-icon has-icon_left"},[a("span",{staticClass:"has-icon__icon"},[a("SvgIcon",{attrs:{name:"blockIcon"}})],1),a("span",{staticClass:"has-icon__text"},[e._v("Currently Unavailable")])])])]),a("b-tooltip",{attrs:{target:"disabled-wrapper"}},[e._v(" This program is not currently accepting new clients. "),a("br"),e._v("Please contact the provider for more information. ")])]]:e._e()]],2)]:e._e()],2)],2),e.isUserDisallowedInPrivatePlan?a("ask-question",{ref:"askQuestion",attrs:{"user-id":e.plan.user.id,title:"Contact the coach"}}):e._e()]],2)]:e._e(),a("add-to-calendar-modal",{ref:"addToCalendarModal",attrs:{value:e.plan},on:{setStartDate:e.afterAddToCalendar}}),a("resume-modal",{ref:"resumeSubscribe",on:{startFrom:e.startFreeMembershipPlanFrom}}),a("waiver-plan-modal",{ref:"waiverPlanModal",attrs:{waiver:e.plan.plan_waiver},on:{waiverAccepted:e.resumeWaiverAccepted}}),a("modal-add-payment-method",{ref:"modalPaymentMethod",attrs:{"coach-id":e.coachId,"stripe-account-id":e.stripeAccountId},on:{addedCard:e.cardHandler,editCard:e.cardHandler}}),a("b-modal",{ref:"pastDueSubscriptionModal",attrs:{title:"Payment Information",lazy:"lazy",size:"lg"}},[e.plan.membership&&e.plan.membership.state=="incomplete"?[a("p",[e._v(e._s(e.$t("en.plan.modal.incomplete.text1")))]),a("p",[e._v(e._s(e.$t("en.plan.modal.incomplete.text2")))])]:[a("p",[e._v(e._s(e.$t("en.plan.modal.payment.text1")))]),a("p",[e._v(e._s(e.$t("en.plan.modal.payment.text2")))])],e.retryInvalidFeedback?a("div",{staticClass:"alert alert-danger"},[a("div",{staticClass:"alert-body"},[a("span",{staticClass:"alert-body__icon"},[a("SvgIcon",{attrs:{name:"alertFillIcon"}})],1),a("div",{staticClass:"alert-body__text"},[a("div",[e._v(e._s(e.retryInvalidFeedback))])])])]):e._e(),a("template",{slot:"modal-footer"},[a("a",{staticClass:"link-undeline mr-4",attrs:{role:"button",tabindex:"0"},on:{click:e.setupNewCardAndPay,keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.setupNewCardAndPay.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.plan.modal.payment.link"))+" ")]),a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isTrySubmited},attrs:{type:"button",disabled:e.isTrySubmited},on:{click:function(i){return i.preventDefault(),e.checkWaiverBeforeTryPaymentAgain.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.plan.modal.payment.button"))+" ")])])],2),e.isCancelSubscribtionAvailable?a("unsubscribe-modal",{ref:"agreeUnSubscribeModal",attrs:{plan:e.plan,"remove-from":"plan","show-additional-text":e.isShowTextInUnsubscribeModal},on:{unsubscribeData:e.updateDataAfterCancel}}):e._e(),a("reschedule-modal",{ref:"rescheduleModal",attrs:{plan_id:e.plan.id,plan_title:e.plan.title}}),a("b-modal",{ref:"reAddToCalendarModal",attrs:{title:"Resume Subscription",lazy:"lazy",size:"lg"}},[a("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("en.plan.modal.resume.text")))]),a("template",{slot:"modal-footer"},[a("button",{staticClass:"btn btn-outline-dark",class:{"btn-loading":e.isRestartSubmited},attrs:{type:"button",disabled:e.isSubmited},on:{click:function(i){return i.preventDefault(),e.reAddToCalendar("restart")}}},[e._v(" "+e._s(e.$t("en.plan.modal.resume.restart"))+" ")]),a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isContinueSubmited},attrs:{type:"button",disabled:e.isSubmited},on:{click:function(i){return i.preventDefault(),e.reAddToCalendar("continue")}}},[e._v(" "+e._s(e.$t("en.plan.modal.resume.continue"))+" ")])])],2),a("sign-in-modal",{ref:"SignInModal",on:{loginDone:e.fetchData}})],2)},qc=[],zc=l(Wc,Hc,qc,!1,null,"fcf2fd3d");const jc=zc.exports,Gc=[{path:"/p/:plan_id",component:jc,name:"public_plan",props:!0,meta:{publicPage:!0}},{path:"/plan/:plan_id",redirect:t=>({name:"public_plan",params:t.params})}],Zc={components:{AppHeader:I},data:()=>({})};var Kc=function(){var e=this,a=e._self._c;return a("div",{staticClass:"profile wrap d-flex flex-column"},[a("app-header"),a("router-view")],1)},Qc=[],Jc=l(Zc,Kc,Qc,!1,null,"4cbf2174");const Xc=Jc.exports,ed=()=>n(()=>import("./index-AxIe3dYd.js"),__vite__mapDeps([221,222,223,224,225,65,1,75,226,227,32,3,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,228])),td=[{path:"profile",component:ed,name:"user_profile_info"}],ad=()=>n(()=>import("./index-D5zb6JAq.js"),__vite__mapDeps([229,35,3,36,37,7,2,5,1,230,23,231,232,233,234,235,236,237,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57])),G=()=>n(()=>import("./index-DfONz66F.js"),__vite__mapDeps([238,239,240,2,3,1,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,241])),id=[{path:"my_programs",component:ad,children:[{path:"",redirect:{name:"user_my_plans"}},{path:"active",component:G,name:"user_my_plans",meta:{programsType:"active"}},{path:"past",component:G,name:"user_my_past_plans",meta:{programsType:"past"}},{path:"invites",component:G,name:"user_my_invites_plans",meta:{programsType:"invites"}}]}],sd=()=>n(()=>import("./index-CGfkF-ZJ.js"),__vite__mapDeps([242,32,3,1,243,7,2,5,65,38,39,23,244,245,246,63,64,216,217,218,219,247,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,35,36,37,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,248])),nd=[{path:"/plan/:plan_id/purchase",component:sd,name:"plan_purchase_form"}],od=()=>n(()=>import("./Layout-BT1fYMle.js"),__vite__mapDeps([249,5,8,2,3,250,251,57,7,32,252,253,23,254,255,1,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,217,218,35,36,37,291,292,293,294,295,296,297,298,299,300,301,302,303,27,28,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,29,30,31,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,304])),rd=[{path:"calendar",component:od,name:"calendar",props:!0,meta:{hideFooter:!0}}],ld=()=>n(()=>import("./index-Dm-dzGVP.js"),__vite__mapDeps([305,233,234,231,232,235,2,3,1,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])),cd=()=>n(()=>import("./index-CuWFqHMi.js"),__vite__mapDeps([306,307,1,308,2,3,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])),dd=()=>n(()=>import("./index-D9bCCEKq.js"),__vite__mapDeps([309,5,2,3,1,4,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,310])),ud=()=>n(()=>import("./index-Cyw0XjHM.js"),__vite__mapDeps([311,1,5,2,3,4,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,312])),pd=[{path:"settings",component:ld,children:[{path:"",redirect:{name:"settings_default_units"}},{path:"default-units",component:cd,name:"settings_default_units",meta:{disableScrollBehavior:!0}},{path:"emails",component:ud,name:"settings_emails",meta:{disableScrollBehavior:!0}},{path:"privacy",component:dd,name:"settings_privacy",meta:{disableScrollBehavior:!0}}]}],hd=()=>n(()=>import("./index-BngW0vzl.js"),__vite__mapDeps([313,233,234,231,232,235,2,3,1,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])),_d=()=>n(()=>import("./index-fsfXuNU7.js"),__vite__mapDeps([314,315,5,1,32,3,65,7,2,38,39,23,316,317,245,246,247,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,35,36,37,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,318])),md=()=>n(()=>import("./index-BG8qXLHw.js"),__vite__mapDeps([319,1,5,35,3,36,37,7,2,230,23,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,320])),fd=()=>n(()=>import("./index-1mZ5i0sC.js"),__vite__mapDeps([321,1,7,2,3,230,23,291,292,27,28,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,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,322])),vd=[{path:"billing",component:hd,children:[{path:"",redirect:{name:"billing_purchases"}},{path:"purchases",component:fd,name:"billing_purchases",meta:{disableScrollBehavior:!0}},{path:"payment",component:_d,name:"billing_payment",meta:{disableScrollBehavior:!0}},{path:"history",component:md,name:"billing_history",meta:{disableScrollBehavior:!0}}]}],yd={components:{AppHeader:I}};var bd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"profile wrap d-flex flex-column"},[a("app-header"),a("router-view")],1)},gd=[],wd=l(yd,bd,gd,!1,null,"c219f9a8");const Cd=wd.exports,kd=()=>n(()=>import("./Layout-Cy7GP1j5.js"),__vite__mapDeps([323,1,233,234,231,232,235,2,3,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,324])),Sd=()=>n(()=>import("./index-DkA_F1Tb.js"),__vite__mapDeps([325,224,225,226,227,32,3,23,2,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,326])),Ad=()=>n(()=>import("./index-Cyw0XjHM.js"),__vite__mapDeps([311,1,5,2,3,4,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,312])),Pd=()=>n(()=>import("./index-BYYHTQEH.js"),__vite__mapDeps([327,7,2,3,5,1,35,36,37,226,227,32,63,64,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,328])),Td=()=>n(()=>import("./index-COjZvb26.js"),__vite__mapDeps([329,1,233,234,231,232,330,331,332,333,334,2,3,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,335])),$d=()=>n(()=>import("./index-BWGQ_mVl.js"),__vite__mapDeps([336,1,245,246,315,5,32,3,65,7,2,38,39,23,316,317,243,244,330,337,338,247,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,35,36,37,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,339])),xd=()=>n(()=>import("./index-CNdDuJrf.js"),__vite__mapDeps([340,1,2,3,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,341])),Id=[{path:"profile",component:kd,beforeEnter:function(t,e,a){_.getters.isFinancialAviable?a():a({name:"404",replace:!0})},children:[{path:"",redirect:{name:"coach_profile_info"}},{path:"info",component:Sd,name:"coach_profile_info",meta:{disableScrollBehavior:!0,availableForBlocked:!0}},{path:"payouts",component:()=>_.getters.isCustomStripeAccount?n(()=>import("./index-D33sOopQ.js"),__vite__mapDeps([342,1,32,3,75,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,343])):n(()=>import("./index-DJ4-V8af.js"),__vite__mapDeps([344,1,2,3,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,345])),name:"coach_profile_payment",meta:{disableScrollBehavior:!0,availableForBlocked:!0},beforeEnter:function(t,e,a){_.getters["subscription/isAccountEmpty"]?a({name:"coach_profile_info"}):a()}},{path:"settings",component:Ad,name:"coach_profile_settings",meta:{disableScrollBehavior:!0,availableForBlocked:!0}},{path:"coaches",component:Pd,name:"coach_profile_coaches",meta:{disableScrollBehavior:!0,footerCssClass:"footer-with-fixed-btn"}},{path:"subscription",component:Td,name:"coach_profile_subscription",meta:{disableScrollBehavior:!0,availableForBlocked:!0},beforeEnter:(t,e,a)=>{_.getters["subscription/isAccountFree"]&&_.getters["subscription/isWLPaindAndActive"]||_.getters["subscription/hasSubscription"]?a():a({name:"choose_your_plan",replace:!0})}},{path:"billing",component:$d,name:"coach_profile_billing",meta:{availableForBlocked:!0}}]},{path:"/upgrade-your-account",component:xd,name:"coach_blocked",meta:{availableForBlocked:!0},beforeEnter:(t,e,a)=>{_.getters["subscription/isAccountFree"]?a({name:"404",replace:!0}):a()}}],Rd=()=>n(()=>import("./Layout-CWpJIiMG.js"),__vite__mapDeps([346,1,2,3,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])),Ed=()=>n(()=>import("./index-DP1jo9F1.js"),__vite__mapDeps([347,286,2,3,287,1,233,234,231,232,348,32,349,23,350,236,237,351,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,352])),Dd=()=>n(()=>import("./index-C0XI6j5w.js"),__vite__mapDeps([353,1,7,2,3,5,35,36,37,233,234,231,232,348,32,349,23,350,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,354])),Fd=[{path:"resources",component:Rd,children:[{path:"",component:Ed,name:"media_library",meta:{footerCssClass:"footer-with-fixed-btn"}},{path:":owner",component:Dd,name:"owner_media_library",props:!0,meta:{footerCssClass:"footer-with-fixed-btn"}}]},{path:"media",redirect:"resources",children:[{path:"",redirect:{name:"media_library"}},{path:":owner",redirect:{name:"owner_media_library"}}]}],Md=()=>n(()=>import("./index-CcAomEh0.js"),__vite__mapDeps([355,35,3,36,37,7,2,5,1,230,23,231,232,233,234,356,357,235,358,32,359,360,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,361])),M=()=>n(()=>import("./index-Br5yJT1i.js"),__vite__mapDeps([362,291,292,1,5,363,256,34,3,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,282,356,357,364,32,365,366,367,368,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,369])),Ld=()=>n(()=>import("./index-Car2VYxz.js"),__vite__mapDeps([370,1,363,256,34,3,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,282,367,368,233,234,235,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,371])),Od=()=>n(()=>import("./index-BzHvv0mq.js"),__vite__mapDeps([372,1,5,35,3,36,37,230,23,291,292,373,7,2,32,374,375,376,377,378,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,379])),Z=()=>n(()=>import("./index-BMs8opfv.js"),__vite__mapDeps([380,1,5,35,3,36,37,291,292,381,253,8,2,382,23,4,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,383])),K=()=>n(()=>import("./index-tXelq0dQ.js"),__vite__mapDeps([384,1,253,385,386,381,8,2,3,382,5,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,23,281,282,35,36,37,387,283,284,285,388,356,357,291,292,4,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,389])),Ud=[{path:"clients",component:Md,children:[{path:"",redirect:{name:"clients_with_programs"}},{path:"active",component:M,name:"clients_with_programs",meta:{clientsType:"active"}},{path:"past",component:M,name:"past_clients",meta:{clientsType:"past"}},{path:"in-trials",component:M,name:"trial_clients",meta:{clientsType:"in_trial"}},{path:"pending",redirect:{name:"clients_with_programs"}},{path:"to_review",component:M,name:"to_review_clients",meta:{clientsType:"activity"}}]},{path:"clients/:athlete_id",component:Ld,props:!0,children:[{path:"",redirect:{name:"show_client_programs"}},{path:"programs",component:Od,name:"show_client_programs",props:!0},{path:"benchmarks",component:Z,name:"show_client_benchmarks",props:!0,meta:{metricType:"benchmark"}},{path:"benchmarks/:metric_id",component:K,name:"client-profile-benchmark",props:!0,meta:{metricType:"benchmark"}},{path:"body-metrics",component:Z,name:"show_client_body_metrics",props:!0,meta:{metricType:"body-metric"}},{path:"body-metrics/:metric_id",component:K,name:"client-profile-body-metric",props:!0,meta:{metricType:"body-metric"}},{path:"challenges",component:Z,name:"show_client_challenges",props:!0,meta:{metricType:"challenge"}},{path:"challenges/:metric_id",component:K,name:"client-profile-challenge",props:!0,meta:{metricType:"challenge"}}]}],Yd=()=>n(()=>import("./Layout-DhOERBCP.js"),__vite__mapDeps([390,1,391,32,3,23,392,38,39,250,251,57,7,2,5,252,253,254,35,36,37,393,394,217,218,290,8,291,292,293,294,295,284,283,285,296,297,395,396,397,387,388,398,399,27,28,363,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,298,299,300,255,286,287,288,289,29,30,301,302,303,356,357,216,219,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,31,33,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,400])),Bd=[{path:"calendar/:user_id/:plan_id",component:Yd,name:"coach_calendar",props:!0,meta:{hideFooter:!0,availableForBlocked:!0,bodyCssClass:"theme_white"}}],Vd=()=>n(()=>import("./Layout-cAIjzMrf.js"),__vite__mapDeps([401,5,250,251,57,7,2,3,32,252,253,23,254,255,1,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,217,218,8,35,36,37,291,292,293,294,295,296,297,298,299,300,301,302,303,27,28,356,357,367,368,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,29,30,31,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,402])),Nd=[{path:"athlete/:user_id/calendar",component:Vd,name:"athlete_calendar",props:!0,meta:{hideFooter:!0}}],Wd=()=>n(()=>import("./Layout-Vjxm18rP.js"),__vite__mapDeps([403,2,3,1,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])),Hd=()=>n(()=>import("./index-CcUjmVcE.js"),__vite__mapDeps([404,7,2,3,5,1,230,23,35,36,37,231,232,233,234,236,237,235,405,406,407,408,349,63,64,409,358,32,359,410,286,287,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,411])),Q=()=>n(()=>import("./index-BGbcfUII.js"),__vite__mapDeps([412,1,393,394,363,256,34,3,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,282,413,5,414,415,416,35,36,37,417,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,418])),He=()=>n(()=>import("./Layout-C3Am6jUu.js"),__vite__mapDeps([419,1,420,421,32,3,2,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,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,422])),qe=()=>n(()=>import("./index-BVQL8fWe.js"),__vite__mapDeps([423,1,424,258,259,260,261,262,263,264,265,266,267,268,269,270,2,3,271,272,273,274,275,276,277,278,279,280,23,425,294,295,406,407,426,32,375,376,27,28,427,421,428,429,430,5,217,218,349,431,231,232,233,234,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,29,30,31,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,432])),qd=()=>n(()=>import("./index-DPHngjKs.js"),__vite__mapDeps([433,7,2,3,1,231,232,233,234,406,407,408,5,349,63,64,409,358,32,359,428,429,416,35,36,37,23,417,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,434])),zd=()=>n(()=>import("./index-BhUMbMqC.js"),__vite__mapDeps([435,1,436,392,38,3,39,250,251,57,7,2,5,32,252,253,23,254,35,36,37,393,394,217,218,290,8,291,292,293,294,295,284,283,285,296,297,395,391,396,397,387,388,398,399,29,30,356,357,437,216,219,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,31,33,34,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,438,428,429,439])),jd=()=>n(()=>import("./index-7H0JjbB0.js"),__vite__mapDeps([440,1,390,391,32,3,23,392,38,39,250,251,57,7,2,5,252,253,254,35,36,37,393,394,217,218,290,8,291,292,293,294,295,284,283,285,296,297,395,396,397,387,388,398,399,27,28,363,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,298,299,300,255,286,287,288,289,29,30,301,302,303,356,357,216,219,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,31,33,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,400,428,429,441])),Gd=()=>n(()=>import("./index-D8Xu4T9F.js"),__vite__mapDeps([442,1,217,218,294,295,406,407,424,258,259,260,261,262,263,264,265,266,267,268,269,270,2,3,271,272,273,274,275,276,277,278,279,280,23,425,426,32,375,376,27,28,427,420,421,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,29,30,31,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,443])),Zd=()=>n(()=>import("./index-nyczlrOh.js"),__vite__mapDeps([444,1,235,413,5,256,34,3,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,282,414,405,7,406,407,408,349,63,64,409,358,32,359,410,416,35,36,37,417,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,445])),Kd=()=>n(()=>import("./index-CrjBSAsz.js"),__vite__mapDeps([436,1,392,38,3,39,250,251,57,7,2,5,32,252,253,23,254,35,36,37,393,394,217,218,290,8,291,292,293,294,295,284,283,285,296,297,395,391,396,397,387,388,398,399,29,30,356,357,437,216,219,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,31,33,34,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,438])),Qd=()=>n(()=>import("./index-DmYfB3fX.js"),__vite__mapDeps([446,2,3,1,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,447])),x=()=>n(()=>import("./index-DpDBF1i0.js"),__vite__mapDeps([448,5,35,3,36,37,291,292,1,363,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,282,373,7,32,374,375,376,377,378,63,64,364,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,449])),Jd=()=>n(()=>import("./index-D4xp35GB.js"),__vite__mapDeps([450,1,451,452,430,5,217,218,294,295,23,349,3,431,32,415,2,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,453])),Xd=()=>n(()=>import("./index-YI4vAagP.js"),__vite__mapDeps([454,2,3,1,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,455])),eu=[{path:"programs",component:Wd,children:[{path:"",component:Hd,name:"my_plans",redirect:{name:"my_plans_active"},meta:{myPlans:!0,availableForBlocked:!0},children:[{path:"",redirect:{name:"my_plans_active"}},{path:"active",component:Q,name:"my_plans_active",meta:{plansType:"active",availableForBlocked:!0,footerCssClass:"footer-with-fixed-btn"}},{path:"active/ready/",component:Q,name:"my_plans_active_with_welcome_popup",meta:{plansType:"active",showWelcomePopup:!0,footerCssClass:"footer-with-fixed-btn"}},{path:"attention",component:Q,name:"my_plans_attention",meta:{plansType:"attention",availableForBlocked:!0,footerCssClass:"footer-with-fixed-btn"}}]},{path:"create",component:He,children:[{path:"",name:"create_plan",redirect:{name:"create_plan_main_info"}},{path:"choose-plan-type",name:"choose_plan_type",redirect:{name:"my_plans_active",params:{choose_program_type:!0}}},{path:"main",name:"create_plan_main_info",component:qe,meta:{hideFooter:!0,knowledge_type:"program_creation"}}]},{path:"edit/:plan_id",component:He,children:[{path:"",name:"edit_plan",redirect:{name:"edit_plan_main_info"},meta:{hideFooter:!0,availableForBlocked:!0}},{path:"main",name:"edit_plan_main_info",component:qe,meta:{hideFooter:!0,availableForBlocked:!0}},{path:"sign-up-clients",name:"create_sign_up_clients",component:qd,meta:{hideFooter:!0,availableForBlocked:!0}},{path:"schedule",name:"edit_plan_schedule",component:zd,meta:{hideFooter:!0,availableForBlocked:!0,bodyCssClass:"theme_white"}},{path:"calendar/:user_id",name:"edit_plan_calendar",component:jd,meta:{hideFooter:!0,availableForBlocked:!0,bodyCssClass:"theme_white"}}]},{path:":plan_id",component:Zd,props:!0,children:[{path:"",name:"coach_program_view",redirect:{name:"coach_program_view_clients"}},{path:"details",name:"coach_program_view_details",component:Qd,meta:{disableScrollBehavior:!0,availableForBlocked:!0}},{path:"clients",name:"coach_program_view_clients",component:x,meta:{disableScrollBehavior:!0,availableForBlocked:!0},props:{listType:"active"}},{path:"in-trials",name:"coach_program_view_in_trials",component:x,meta:{disableScrollBehavior:!0,availableForBlocked:!0},props:{listType:"in_trial"}},{path:"scheduled",name:"coach_program_view_scheduled",component:x,meta:{disableScrollBehavior:!0,availableForBlocked:!0},props:{listType:"scheduled"}},{path:"invites",name:"coach_program_view_invites",component:x,meta:{disableScrollBehavior:!0,availableForBlocked:!0},props:{listType:"pending"}},{path:"past",name:"coach_program_view_past",component:x,meta:{disableScrollBehavior:!0,availableForBlocked:!0},props:{listType:"past"}},{path:"settings",name:"coach_program_view_settings",component:Jd,meta:{disableScrollBehavior:!0,availableForBlocked:!0}},{path:"waiver",name:"coach_program_view_waiver",component:Xd,meta:{disableScrollBehavior:!0,availableForBlocked:!0}}]},{path:":plan_id/edit",component:Gd,name:"coach_program_edit",props:!0,meta:{availableForBlocked:!0}},{path:":plan_id/schedule",name:"coach_program_schedule",component:Kd,props:!0,meta:{hideFooter:!0,availableForBlocked:!0,bodyCssClass:"theme_white"}}]}],tu=()=>n(()=>import("./Layout-vY7tg5Kn.js"),__vite__mapDeps([456,1,231,232,233,234,236,237,235,2,3,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,457])),ze=()=>n(()=>import("./index-BHD82GCp.js"),__vite__mapDeps([458,1,2,3,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])),je=()=>n(()=>import("./index--in21hV4.js"),__vite__mapDeps([459,1,35,3,36,37,291,292,391,32,23,437,351,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,460])),L=()=>n(()=>import("./index-CrjBSAsz.js"),__vite__mapDeps([436,1,392,38,3,39,250,251,57,7,2,5,32,252,253,23,254,35,36,37,393,394,217,218,290,8,291,292,293,294,295,284,283,285,296,297,395,391,396,397,387,388,398,399,29,30,356,357,437,216,219,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,31,33,34,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,438])),au=()=>n(()=>import("./index-B31DCazl.js"),__vite__mapDeps([461,2,3,1,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])),iu=()=>n(()=>import("./index-kDiQRrrT.js"),__vite__mapDeps([462,1,35,3,36,37,391,32,23,291,292,250,251,57,7,2,5,252,253,254,290,217,218,8,293,294,295,284,283,285,296,297,396,397,387,388,393,394,398,399,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,463])),su=[{path:"templates",component:tu,children:[{path:"",name:"workout_library",redirect:{name:"workout_library_days"}},{path:"presets",component:ze,children:[{path:"",name:"workout_library_templates",component:je},{path:"create",name:"create_workout_library_template",component:L,meta:{hideFooter:!0}},{path:":plan_id",name:"edit_workout_library_template",component:L,props:!0,meta:{hideFooter:!0,type:"template"}}]},{path:"hyrox",component:ze,props:{templateType:"hyrox"},children:[{path:"",name:"workout_library_hyrox_templates",component:je},{path:"create",name:"create_workout_library_hyrox_template",component:L,meta:{hideFooter:!0}},{path:":plan_id",name:"edit_workout_library_hyrox_template",component:L,props:!0,meta:{hideFooter:!0,type:"template"}}]},{path:"days",component:au,children:[{path:"",name:"workout_library_days",component:iu,meta:{knowledge_type:"template_note"}}]}]}],nu=()=>n(()=>import("./index-BMAv4kDT.js"),__vite__mapDeps([464,233,234,231,232,235,236,237,2,3,1,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])),ou=()=>n(()=>import("./index-bnlX6ao-.js"),__vite__mapDeps([465,5,35,3,36,37,7,2,230,23,374,32,375,376,377,466,1,467,360,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,468])),ru=()=>n(()=>import("./index-Fu_OGM2a.js"),__vite__mapDeps([469,5,35,3,36,37,466,1,467,360,230,23,2,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,470])),lu=[{path:"dashboard",component:nu,beforeEnter:function(t,e,a){_.getters.isFinancialAviable&&_.getters.isCustomStripeAccount?a():a({name:"404",replace:!0})},children:[{path:"",name:"coach_dashboard",redirect:{name:"coach_dashboard_transactions"}},{path:"transactions",component:ou,name:"coach_dashboard_transactions",meta:{disableScrollBehavior:!0,availableForBlocked:!0}},{path:"payouts",component:ru,name:"coach_dashboard_payouts",meta:{disableScrollBehavior:!0,availableForBlocked:!0}}]}],cu=()=>n(()=>import("./index-iqs_Nq75.js"),__vite__mapDeps([471,35,3,36,37,233,234,231,232,2,1,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,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,472])),du=[{path:"benchmarks",component:cu,name:"fitr_benchmarks"}],Ge=()=>n(()=>import("./index-DIBAxp5u.js"),__vite__mapDeps([473,224,225,226,227,307,1,308,222,223,65,332,333,32,3,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,474])),uu=[{path:"my_profile",component:Ge,children:[{path:"",redirect:{name:"coach_my_profile_info"}},{path:"info",component:Ge,name:"coach_my_profile_info",meta:{coachOwnProfile:!0,disableScrollBehavior:!0,availableForBlocked:!0}}]}],pu=()=>n(()=>import("./index-OMer6viv.js"),__vite__mapDeps([475,1,337,245,246,330,338,331,332,333,334,23,302,451,452,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,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,476])),hu=[{path:"choose_your_plan",component:pu,name:"choose_your_plan",meta:{availableForBlocked:!0},beforeEnter:(t,e,a)=>{_.getters.isFinancialAviable?a():a({name:"coach_profile_subscription",replace:!0})}}],_u=()=>n(()=>import("./index-CbRL1O8N.js"),__vite__mapDeps([477,231,232,233,234,236,237,235,2,3,1,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])),Ze=()=>n(()=>import("./index-CD8YLDib.js"),__vite__mapDeps([478,7,2,3,230,23,284,397,5,35,36,37,293,252,32,294,295,283,1,253,285,296,387,388,393,394,291,292,398,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57])),mu=[{path:"challenges",component:_u,children:[{path:"",redirect:{name:"challenges-library"}},{path:"library",component:Ze,name:"challenges-library",props:{libraryKind:"challenge"},meta:{knowledge_type:"challenge_note",footerCssClass:"footer-with-fixed-btn"}},{path:"fitr-library",component:Ze,name:"challenges-fitr-library",props:{libraryKind:"fitr_challenge"}}]}],fu=()=>n(()=>import("./index-gmSDuRsi.js"),__vite__mapDeps([479,1,35,3,36,37,233,234,231,232,236,237,291,292,32,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,480])),vu=[{path:"my_accounts",name:"coach_profile_my_accounts",component:fu,meta:{coachOwnProfile:!0,disableScrollBehavior:!0,availableForBlocked:!0}}],yu=()=>n(()=>import("./index-DujcC7c_.js"),__vite__mapDeps([481,1,231,232,233,234,236,237,23,24,3,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,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,482])),bu=()=>n(()=>import("./index-ByA5PSgb.js"),__vite__mapDeps([483,2,3,1,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])),gu=()=>n(()=>import("./index-CIirEPRa.js"),__vite__mapDeps([484,1,485,2,3,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,486])),wu=()=>n(()=>import("./index-CmwWS4Br.js"),__vite__mapDeps([487,1,32,3,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,488])),Cu=()=>n(()=>import("./index-dzEB2paC.js"),__vite__mapDeps([489,1,485,490,491,3,8,2,492,283,253,284,285,365,366,23,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,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,493])),ku=()=>n(()=>import("./index-DwzyEvqf.js"),__vite__mapDeps([494,2,3,1,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])),Su=()=>n(()=>import("./index-Cn70-Gwq.js"),__vite__mapDeps([495,1,2,3,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,496])),Au=()=>n(()=>import("./index-CJ1eHRil.js"),__vite__mapDeps([497,1,490,491,3,8,2,492,23,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,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,498])),Pu=[{path:"customisation",component:yu,children:[{path:"",name:"customisation",redirect:{name:"customisation-web-address"}},{path:"web",name:"customisation-web",redirect:{name:"customisation-web-address"},component:bu,children:[{path:"",name:"customisation-web-address",component:wu,meta:{bodyCssClass:"new-page-background"}},{path:"logo",name:"customisation-web-logo",component:gu,meta:{bodyCssClass:"new-page-background"}},{path:"theme",name:"customisation-web-theme",component:Cu,meta:{bodyCssClass:"new-page-background"}}]},{path:"app",name:"customisation-app",redirect:{name:"customisation-app-icon"},component:ku,children:[{path:"",name:"customisation-app-icon",component:Su,meta:{bodyCssClass:"new-page-background"}},{path:"theme",name:"customisation-app-theme",component:Au,meta:{bodyCssClass:"new-page-background"}}]}]}],Tu=()=>n(()=>import("./index-ChOThci6.js"),__vite__mapDeps([499,1,231,232,233,234,236,237,2,3,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,500])),$u=[{path:"zapier-integration",name:"zapier-integration",component:Tu}],xu=[{path:"public/:id",redirect:t=>({name:"public-page-view",params:{user_id:t.params.id}})},{path:"public/:id/overview",name:"coach_public_overview",redirect:t=>({name:"public-page-view",params:{user_id:t.params.id}})},{path:"public/:id/plans",name:"coach_public_plans",redirect:t=>({name:"public-page-plans",params:{user_id:t.params.id}})}],Iu=()=>n(()=>import("./index-DLEHtOi6.js"),__vite__mapDeps([501,1,7,2,3,5,35,36,37,230,23,233,234,231,232,236,237,27,28,32,252,38,39,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,29,30,31,33,34,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,502])),Ru=[{path:"/profile",name:"profile_main",beforeEnter:(t,e,a)=>{_.state.currentUser.role?_.state.currentUser.role==="user"?a({path:"/user",replace:!0}):a({path:"/coach",replace:!0}):a({name:"onboarding-signin",replace:!0})}},{path:"/user",component:Xc,beforeEnter:(t,e,a)=>{_.state.currentUser.role==="coach"?a({path:"/coach",replace:!0}):a()},children:[{path:"",redirect:{path:"profile"}},...td,...id,...nd,...rd,...pd,...vd]},{path:"/coach",component:Cd,beforeEnter:(t,e,a)=>{!t.meta.publicPage&&_.state.currentUser.role==="user"?a({path:"/user",replace:!0}):a()},children:[{path:"",redirect:{path:"profile"}},{path:"dashboard"},{path:"coupons",name:"coach_profile_coupons",component:Iu,meta:{footerCssClass:"footer-with-fixed-btn",knowledge_type:"coupon_note"},beforeEnter:function(t,e,a){_.getters.isFinancialAviable?a():a({name:"404",replace:!0})}},{path:"purchase",redirect:{name:"coach_profile_subscription"}},...eu,...Fd,...Id,...uu,...xu,...Ud,...Bd,...Nd,...su,...du,...lu,...mu,...vu,...hu,...Pu,...$u]}],O=()=>n(()=>import("./index-vZEFkrYV.js"),__vite__mapDeps([503,1,2,3,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,504])),Ke=()=>n(()=>import("./index-BCkTeTnZ.js"),__vite__mapDeps([505,1,5,32,3,506,507,508,216,217,218,219,23,424,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,425,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,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,509,510,239,240,511,512,513,514,515,516,517,518,519,520,521,522])),Qe=()=>n(()=>import("./index-DVuXHiLX.js"),__vite__mapDeps([523,1,23,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,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,524])),Je=()=>n(()=>import("./index-DIlx2rgr.js"),__vite__mapDeps([525,1,233,234,231,232,239,240,35,3,36,37,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,526])),Xe=()=>n(()=>import("./index-DwRrgQ09.js"),__vite__mapDeps([527,1,233,234,231,232,513,514,35,3,36,37,23,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,528])),Eu=[{path:"/create-account",component:O,children:[{path:"",component:Ke,name:"create-account",props:{isCreation:!0},meta:{availableForBlocked:!0}},{path:"brand",name:"create-brand-account",redirect:{name:"onboarding-business-setup",params:{type:"brand"}}},{path:"gym",name:"create-gym-account",redirect:{name:"onboarding-business-setup",params:{type:"gym"}}}]},{path:"/public-page/",component:O,children:[{path:"",name:"own-public-page-preview",redirect:()=>({name:"public-page-view",params:{user_id:_.state.currentUser.id}})},{path:"plans",name:"own-public-page-plans",redirect:()=>({name:"public-page-plans",params:{user_id:_.state.currentUser.id}})},{path:"coaches",name:"own-public-page-coaches",redirect:()=>({name:"public-page-coaches",params:{user_id:_.state.currentUser.id}})},{path:"edit",component:Ke,name:"own-public-page-edit",beforeEnter:function(t,e,a){_.getters.isBusinessAccount&&!_.getters.isBusinessOwner?a({name:"public-page-view",params:{user_id:_.state.currentUser.id},replace:!0}):_.getters.isUserCoach?a():a({name:"main"})}}]},{path:"/public-page/:user_id/",component:O,props:!0,children:[{path:"",component:Qe,name:"public-page-view",meta:{publicPage:!0}},{path:"plans",component:Je,name:"public-page-plans",meta:{publicPage:!0}},{path:"coaches",component:Xe,name:"public-page-coaches",meta:{publicPage:!0}}]},{path:"/:user_type(c|b|g|t)/:user_id",component:O,props:!0,children:[{path:"",component:Qe,name:"public-page-short-link",meta:{publicPage:!0,knowledge_type:"storefront_note"}},{path:"programs",component:Je,name:"public-page-short-link-plans",meta:{publicPage:!0}},{path:"coaches",component:Xe,name:"public-page-short-link-coaches",meta:{publicPage:!0}}]}],Du=()=>n(()=>import("./Layout-BylE5oo7.js"),__vite__mapDeps([529,2,3,1,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])),J=()=>n(()=>import("./index-DZXYamSr.js"),__vite__mapDeps([530,5,1,230,23,35,3,36,37,7,2,233,234,231,232,235,299,236,237,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,531])),Fu=()=>n(()=>import("./index-Cwq6URWz.js"),__vite__mapDeps([532,1,34,3,35,36,37,233,234,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,299,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,533])),Mu=[{path:"/chat",component:Du,children:[{path:"",redirect:{name:"conversations"}},{path:"all",name:"conversations",component:J},{path:"messages",component:J,name:"conversations_messages",meta:{conversationsFilter:"individual"}},{path:"communities",component:J,name:"conversations_communities",meta:{conversationsFilter:"community"}},{path:":conversation_id",component:Fu,name:"conversation",props:!0,meta:{hideFooter:!0,bodyCssClass:"theme_white"}}]}],Lu=()=>n(()=>import("./index-DADy8uzp.js"),__vite__mapDeps([534,1,231,232,233,234,235,236,237,2,3,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,535])),S=()=>n(()=>import("./index-CGTn2y2U.js"),__vite__mapDeps([536,1,35,3,36,37,363,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,2,271,272,273,274,275,276,277,278,279,280,23,281,282,250,251,57,7,5,32,252,253,254,255,283,284,285,286,287,288,289,298,299,300,4,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,537])),Ou=[{path:"/feed",component:Lu,children:[{path:"",redirect:{name:"feed_overview"}},{path:"overview",name:"feed_overview",component:S,props:{type:"overview"},meta:{availableForBlocked:!0}},{path:"warnings",name:"feed_warnings",component:S,props:{type:"content_warnings"}},{path:"activity",name:"feed_activity",component:S,props:{type:"client_activity"}},{path:"financial",name:"feed_financial",component:S,props:{type:"financial"},beforeEnter:function(t,e,a){_.getters.isBusinessAccount&&!_.getters.isBusinessOwner?a({name:"feed_overview",replace:!0}):a()}},{path:"invites",name:"feed_invites",component:S,props:{type:"invite"}},{path:"leaderboards",name:"feed_leaderboards",component:S,props:{type:"chat_mention"}}]}],Uu=()=>n(()=>import("./index-DbjAFrhH.js"),__vite__mapDeps([538,7,2,3,231,232,233,234,236,237,235,1,4,5,6,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])),et=()=>n(()=>import("./index-UyUzIE7P.js"),__vite__mapDeps([539,1,5,7,2,3,230,23,35,36,37,540,253,284,288,8,541,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,542])),U=()=>n(()=>import("./index-Bj1wpJX-.js"),__vite__mapDeps([543,5,1,7,2,3,230,23,356,357,540,253,284,288,8,541,298,256,34,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,299,300,4,6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,544])),Yu=[{path:"/leaderboards",component:Uu,beforeEnter:(t,e,a)=>{_.state.authenticated&&_.state.currentUser.role==="user"?a({name:"calendar",replace:!0}):a()},children:[{path:"",redirect:{name:"daily-leaderboards"}},{path:"daily",component:et,name:"daily-leaderboards",meta:{typeLeaderboards:"leaderboard",knowledge_type:"leaderboard_note"}},{path:"daily/:id/",component:U,name:"daily-leaderboard",meta:{disableScrollBehavior:!0},props:!0},{path:"daily/:id/comments/:result_id?",component:U,name:"daily-leaderboard-comments",meta:{disableScrollBehavior:!0},props:({params:t})=>({...t,show_comments:!0})},{path:"challenges",component:et,name:"challenges-leaderboards",meta:{typeLeaderboards:"challenge"}},{path:"challenges/:id/",component:U,name:"challenges-leaderboard",meta:{disableScrollBehavior:!0},props:!0},{path:"challenges/:id/comments/:result_id?",component:U,name:"challenges-leaderboard-comments",meta:{disableScrollBehavior:!0},props:({params:t})=>({...t,show_comments:!0})}]}],Bu=()=>n(()=>import("./index-BV2Quhu2.js"),__vite__mapDeps([545,35,3,36,37,1,231,232,236,237,2,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,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,546])),Vu=[{path:"/release-notes",component:Bu,name:"release-notes"}];f.use(rt);let Nu=[{path:"",component:ks,name:"main",meta:{availableForBlocked:!0},beforeEnter:(t,e,a)=>{_.state.authenticated?_.state.currentUser.role==="user"?a({name:"user_my_plans",replace:!0}):a({name:"my_plans",replace:!0}):a({name:"sign_up",replace:!0})}},{path:"/fitr-style-guide",component:()=>n(()=>import("./styleGuide-BTzzU6xn.js"),__vite__mapDeps([547,2,3,1,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,548]))},{path:"/404",name:"404",component:ys,meta:{availableForBlocked:!0}},{path:"*",redirect:"/404"}],Wu=[...Nu,...Sn,...Zn,...Gc,...Ru,...Mu,...Ou,...Eu,...Yu,...Vu];const g=new rt({mode:"history",base:"/",routes:Wu,linkActiveClass:"active",scrollBehavior(t,e,a){if(!(t.meta.disableScrollBehavior&&e.meta.disableScrollBehavior))return a||{x:0,y:0}}});g.afterEach(()=>{document.activeElement&&document.activeElement.blur(),window.Intercom&&window.Intercom("update")});g.beforeEach((t,e,a)=>{var s,o;let i=["public_plan","public-page-view","public-page-plans","public-page-coaches","public-page-short-link","public-page-short-link-plans","public-page-short-link-coaches"].includes(e.name);if(t.name=="my_plans_active_with_welcome_popup"&&!_.state.authenticated)window.localStorage.setItem("utm_query",JSON.stringify(t.query)),a({name:"onboarding-coaching-signup"});else if(["sign_up","sign_in","onboarding-coaching-signup","onboarding-role-selection","onboarding-type-selection","onboarding-signin"].includes(t.name))_.state.authenticated?a({name:"coach_my_profile_info"}):(i&&(!window.localStorage.getItem("fitr_return_path")||window.localStorage.getItem("fitr_return_path")!==e.fullPath)&&window.localStorage.setItem("fitr_return_path",e.fullPath),a());else if(((s=t.name)==null?void 0:s.indexOf("coach_program_"))>=0&&(!_.state.authenticated||!_.getters.isUserCoach))a({name:"public_plan",params:{plan_id:t.params.plan_id}});else if(t.meta.publicPage)a();else if(_.state.authenticated){let u=((o=t.path)==null?void 0:o.indexOf("coach/programs"))>=0;_.getters.isUserCoach&&u&&_.getters["subscription/isAccountEmpty"]?a({name:"coach_blocked"}):a()}else i?(window.localStorage.setItem("fitr_return_path",t.fullPath),e.name=="public_plan"?a({name:"onboarding-type-selection"}):a({name:"onboarding-coaching-signup",params:{role:"client"}})):(t.name=="user_my_plans"&&window.localStorage.setItem("fitr_return_path",t.fullPath),a({name:"onboarding-signin"}))});const d=ot.create({baseURL:"https://app.fitr.training/api/",headers:{"content-type":"application/json","API-Version":2}});var at,it;(it=(at=Intl==null?void 0:Intl.DateTimeFormat())==null?void 0:at.resolvedOptions())!=null&&it.timeZone&&(d.defaults.headers.common["Client-Timezone"]=Intl.DateTimeFormat().resolvedOptions().timeZone);function m(t){var i,s,o,c;let e,a=5e3;if(ot.isCancel(t))console.log("Request canceled",t.message);else if(t.response){if((i=t.response.statusText)!=null&&i.length&&(e=t.response.statusText),t.response.status==404)e="Not Found";else if(t.response.status==403)e="Forbidden: Access is denied";else if(t.response.status==401)e="Access is denied. Try to reload the page.";else if(t.response.status==406)e="Access is denied";else if(typeof t.response.data!="string")try{e=Object.keys(t.response.data).map(u=>Object.keys(t.response.data[u]).map(p=>t.response.data[u][p])).toString()}catch(u){console.dir(u)}}else t.request?(console.dir(t),e=t.message||"Request failed"):e=t.message;if((c=(o=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:o.base)!=null&&c.deprecated){const u=new Event("showUpdateModal");window.dispatchEvent(u)}else e!=null&&window.FitrApp.$notify({group:"alerts",type:"error",title:e,duration:a})}d.interceptors.response.use(function(t){return t},function(t){return t.response&&(t.response.status===401?g.replace({name:"onboarding-signin"}).catch(()=>{}):t.response.status==404?g.replace({name:"404"}).catch(()=>{}):t.response.status==403?g.replace({path:"/"}).catch(()=>{}):t.response.status==406?g.replace({name:"coach_blocked"}).catch(()=>{}):t.response.status==418&&g.currentRoute.name!="coach_profile_my_accounts"&&g.replace({name:"coach_profile_my_accounts"}).catch(()=>{})),Promise.reject(t)});const Hu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%208C14%2011.3137%2011.3137%2014%208%2014C4.68629%2014%202%2011.3137%202%208C2%204.68629%204.68629%202%208%202C11.3137%202%2014%204.68629%2014%208ZM10.1333%205.33333L10.6667%205.86667L8.53333%208L10.6667%2010.1333L10.1333%2010.6667L8%208.53333L5.86667%2010.6667L5.33333%2010.1333L7.46667%208L5.33333%205.86667L5.86667%205.33333L8%207.46667L10.1333%205.33333Z'%20fill='%23D8D8D8'/%3e%3cmask%20id='mask0'%20mask-type='alpha'%20maskUnits='userSpaceOnUse'%20x='2'%20y='2'%20width='12'%20height='12'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%208C14%2011.3137%2011.3137%2014%208%2014C4.68629%2014%202%2011.3137%202%208C2%204.68629%204.68629%202%208%202C11.3137%202%2014%204.68629%2014%208ZM10.1333%205.33333L10.6667%205.86667L8.53333%208L10.6667%2010.1333L10.1333%2010.6667L8%208.53333L5.86667%2010.6667L5.33333%2010.1333L7.46667%208L5.33333%205.86667L5.86667%205.33333L8%207.46667L10.1333%205.33333Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0)'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",qu={};var zu=function(){var e=this,a=e._self._c;return a("notifications",{attrs:{group:"alerts",position:"bottom center",width:"100%",max:1},scopedSlots:e._u([{key:"body",fn:function(i){return[a("div",{staticClass:"custom-template",class:i.item.type},[a("div",{staticClass:"custom-template-head"},[a("div",{staticClass:"custom-template-title",domProps:{innerHTML:e._s(i.item.title)}}),i.item.data&&i.item.data.extraAction?[a("button",{staticClass:"btn btn-link btn-sm",attrs:{type:"button"},on:{click:function(s){i.item.data.extraAction.cb(),i.close()}}},[e._v(" "+e._s(i.item.data.extraAction.label)+" ")])]:e._e(),a("div",{staticClass:"custom-template-close",on:{click:i.close}},[a("img",{attrs:{src:Hu}})])],2),i.item.text?a("div",{staticClass:"custom-template-content"},[a("div",{staticClass:"custom-template-text",domProps:{innerHTML:e._s(i.item.text)}})]):e._e()])]}}])})},ju=[],Gu=l(qu,zu,ju,!1,null,null);const Zu=Gu.exports,Ku={name:"AppFooter",computed:{footerCssClass(){return this.$route.meta.footerCssClass},...h(["isUserCoach"]),...h("color_scheme",["siteLogo"])},methods:{openCookiehubDialog(){var t;(t=window.cookiehub)!=null&&t.openSettings&&window.cookiehub.openSettings()}}};var Qu=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("footer",{staticClass:"footer",class:e.footerCssClass},[a("div",{staticClass:"container"},[a("div",{staticClass:"row align-items-center"},[a("div",{staticClass:"col-auto"},[a("router-link",{staticClass:"logo",attrs:{to:"/"}},[e.siteLogo&&e.siteLogo.logo?a("img",{staticClass:"logo",attrs:{alt:"FITR",src:e.siteLogo.logo,srcset:e.siteLogo.hd+" 2x"}}):a("img",{attrs:{src:vt,alt:"FITR"}})])],1),a("div",{staticClass:"col-auto ml-auto"},[a("a",{staticClass:"link",attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.openCookiehubDialog.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.footer.manage_cookies"))+" ")]),e.isUserCoach?[a("a",{staticClass:"link",attrs:{href:"https://get.fitr.training/legals/coach-terms",target:"_blank"}},[e._v(" "+e._s(e.$t("en.footer.terms"))+" ")])]:[a("a",{staticClass:"link",attrs:{href:"https://get.fitr.training/legals/client-terms",target:"_blank"}},[e._v(" "+e._s(e.$t("en.footer.terms"))+" ")])],a("a",{staticClass:"link",attrs:{href:"https://get.fitr.training/legals/privacy-policy",target:"_blank"}},[e._v(" "+e._s(e.$t("en.footer.privacy_policy"))+" ")])],2)])])])},Ju=[],Xu=l(Ku,Qu,Ju,!1,null,"df57bede");const ep=Xu.exports,tp={name:"ReleaseNoetsItem",props:{note:{type:Object},short:{type:Boolean,default:!1}},data(){return{isBusy:!1}},computed:{releaseDate(){return this.$moment(this.note.release_date,"DD/MM/YYYY").format("DD MMMM, YYYY")},canRead(){var t;return(t=this.note)==null?void 0:t.can_read},...h("release_notes",["notesCounter"])},methods:{markRead(){this.isBusy=!0,d.post("notes/read",{id:this.note.id}).then(()=>{this.note.read=!0,this.$emit("changeUnreadCount"),this.changeCounter(this.notesCounter-1),this.isBusy=!1}).catch(m)},hidePopup(){this.$emit("hidePopup")},...b("release_notes",["changeCounter"])},components:{}};var ap=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"note"},[a("div",{staticClass:"note-head"},[a("div",{staticClass:"date"},[e._v(e._s(e.releaseDate))]),!e.short&&e.canRead?a("button",{staticClass:"btn btn-sm",class:[e.note.read?"btn-outline-secondary":"btn-success",{"btn-loading":e.isBusy}],attrs:{type:"button",disabled:e.isBusy||e.note.read},on:{click:e.markRead}},[e.note.read?[e._v(" Read ")]:[e._v(" Mark as read ")]],2):e._e()]),a("h4",{class:{unread:!e.note.read&&!e.short&&e.canRead}},[e._v(" "+e._s(e.note.title)+" ")]),a("div",{staticClass:"note-descr",domProps:{innerHTML:e._s(e.note.body)}}),e.short?[a("p",{staticClass:"pt-2"},[e._v(" Check out "),a("router-link",{attrs:{to:{name:"release-notes"}},nativeOn:{click:function(i){return e.hidePopup.apply(null,arguments)}}},[e._v(" What’s new")]),e._v(" for more updates. ")],1)]:e._e(),e.note.cta_name&&e.note.cta_url&&!e.short?[a("div",{staticClass:"note-cta"},[a("a",{staticClass:"btn btn-primary btn-sm",attrs:{href:e.note.cta_url,target:"_blank"}},[e._v(" "+e._s(e.note.cta_name)+" ")])])]:e._e()],2)},ip=[],sp=l(tp,ap,ip,!1,null,"8ece731b");const np=sp.exports,op={name:"ModalReleseNotes",components:{NoteItem:np},props:{notesId:{type:[Number,String],default:""}},data(){return{note:{},isBusy:!1}},computed:{title(){return"What's New"},...h("release_notes",["notesCounter"])},created:function(){this.channel=P("SystemNotificationChannel",t=>{var e;(t.type=="has_unread_release_notes"||t.type=="new_release_note")&&(t.data.release_note_id&&this.show(t.data.release_note_id),(e=t.data)!=null&&e.count_unread_notes?this.changeCounter(t.data.count_unread_notes):this.changeCounter(this.notesCounter+1))})},beforeDestroy:function(){T(this.channel)},methods:{hide(){this.$refs.releseNotesModal.hide()},show:N(function(t){d.get(`notes/${t}`).then(({data:e})=>{this.note=e,this.$refs.releseNotesModal.show()}).catch(m)},1e3),markRead(){this.isBusy=!0,d.post("notes/read",{id:this.note.id}).then(()=>{this.note.read=!0,this.changeCounter(this.notesCounter-1),this.isBusy=!1,this.$route.name=="release-notes"&&this.$root.$emit("mark-release-note-as-read",{id:this.note.id}),this.hide()}).catch(m)},handleModalHidden(){this.note.read||this.markRead()},...b("release_notes",["changeCounter"])}};var rp=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"releseNotesModal",attrs:{size:"572",title:e.title,"footer-class":"justify-content-between"},on:{hidden:e.handleModalHidden}},[a("div",{staticClass:"notes-body"},[a("note-item",{key:e.note.id,attrs:{note:e.note,short:""},on:{hidePopup:e.hide}})],1),a("template",{slot:"modal-footer"},[a("button",{staticClass:"btn btn-link btn-sm",attrs:{type:"button",disabled:e.isBusy||e.note.read},on:{click:e.markRead}},[e._v(" Mark as read ")]),a("div",[e.note.cta_name&&e.note.cta_url?[a("a",{staticClass:"btn btn-primary mr-3",attrs:{href:e.note.cta_url,target:"_blank"}},[e._v(" "+e._s(e.note.cta_name)+" ")])]:e._e(),a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:e.hide}},[e._v(" Close ")])],2)])],2)},lp=[],cp=l(op,rp,lp,!1,null,"5fe54d47");const dp=cp.exports,up={name:"ModalKnowledgeNotes",data(){return{note:{},dontShow:!1,popupName:""}},computed:{title(){var t;return(t=this.note)==null?void 0:t.title},isFixedPlan(){return this.planType=="fixed"},isMembershipPlan(){return this.planType=="membership"},isBespokePlan(){return this.planType=="individual"},isOneManyPlan(){return this.planType=="one_many"},...C("plan",["planType"]),...h(["viewedPopups"]),...h(["isBusinessOwner"])},watch:{$route(t){var e;if(this.popupName!="open_individual_schedule"&&this.isBusinessOwner&&(this.popupName=(e=t.meta)==null?void 0:e.knowledge_type),this.popupName=="program_schedule"&&(this.isFixedPlan?this.popupName=`${this.popupName}_fl`:this.isMembershipPlan&&(this.popupName=`${this.popupName}_s1d1`)),this.popupName&&this.viewedPopups&&!this.viewedPopups.includes(this.popupName)){if(this.popupName=="review_and_publish_custom_grc"&&(this.isFixedPlan||this.isMembershipPlan))return!1;this.show(this.popupName)}}},mounted(){this.$root.$on("show-knowledge-custom-plan-popup",()=>{this.popupName="open_individual_schedule",this.viewedPopups&&!this.viewedPopups.includes(this.popupName)&&this.show(this.popupName)})},methods:{hide(){this.$refs.knowledgeNotesModal.hide()},show:N(function(t){d.get(`notes/knowledge?slug=${t}`).then(({data:e})=>{this.note=e,this.$refs.knowledgeNotesModal.show()}).catch(m)},600),onModalHidden(){this.dontShow&&this.makePopupViewed({name:this.popupName}),["program_creation"].includes(this.popupName)&&this.$root.$emit("hide-knowledge-notes"),this.popupName="",this.note={},this.dontShow=!1},...b(["makePopupViewed"])}};var pp=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"knowledgeNotesModal",attrs:{size:"572",title:e.title,"footer-class":"justify-content-between"},on:{hidden:e.onModalHidden}},[a("div",{staticClass:"notes-body"},[a("div",{staticClass:"note-descr",domProps:{innerHTML:e._s(e.note.body)}})]),a("template",{slot:"modal-footer"},[a("div",{staticClass:"custom-control custom-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.dontShow,expression:"dontShow"}],staticClass:"custom-control-input",attrs:{id:"hide",type:"checkbox"},domProps:{checked:Array.isArray(e.dontShow)?e._i(e.dontShow,null)>-1:e.dontShow},on:{change:function(i){var s=e.dontShow,o=i.target,c=!!o.checked;if(Array.isArray(s)){var u=null,p=e._i(s,u);o.checked?p<0&&(e.dontShow=s.concat([u])):p>-1&&(e.dontShow=s.slice(0,p).concat(s.slice(p+1)))}else e.dontShow=c}}}),a("label",{staticClass:"custom-control-label font-weight-bold",attrs:{for:"hide"}},[e._v(" Don't show me this again ")])]),a("div",{class:{"button-wrap":e.note.cta_url&&e.note.cta_name}},[e.note.cta_url&&e.note.cta_name?[a("button",{staticClass:"btn btn-outline-dark mr-3",attrs:{type:"button"},on:{click:e.hide}},[e._v("Close")]),a("a",{staticClass:"btn btn-primary",attrs:{href:e.note.cta_url,target:"_blank"}},[e._v(" "+e._s(e.note.cta_name)+" ")])]:[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.hide}},[e.note.cta_name?[e._v(e._s(e.note.cta_name))]:[e._v("Got it")]],2)]],2)])],2)},hp=[],_p=l(up,pp,hp,!1,null,"1b543f88");const mp=_p.exports,fp={name:"GenderControl",props:{value:{type:String,default:""},autoSave:{type:Boolean,default:!0}},data(){return{}},computed:{...h(["isUserCoach"])},methods:{choiceGender(t){if(t&&(this.$emit("input",t),this.autoSave)){let e=this.isUserCoach?"updatePrivateProfile":"updateProfile";this.$store.dispatch({type:e,gender:t})}}}},vp="data:image/svg+xml,%3csvg%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.7778%202.6667A.6667.6667%200%200116.4444%202h4.8889A.6667.6667%200%200122%202.6667v4.8888a.6667.6667%200%2001-1.3333%200V4.2709l-4.5625%204.5625C17.2876%2010.2285%2018%2012.032%2018%2014c0%204.4103-3.5896%208-8%208s-8-3.5897-8-8c0-4.4103%203.5896-8%208-8%201.9661%200%203.7651.7144%205.1597%201.8958l4.5625-4.5625h-3.2778a.6667.6667%200%2001-.6666-.6666zM16.6667%2014c0-3.6898-2.9768-6.6667-6.6666-6.6667S3.3334%2010.3102%203.3334%2014c0%203.6897%202.9769%206.6667%206.6667%206.6667%203.6898%200%206.6666-2.977%206.6666-6.6667z'%20fill='%235C5F6B'/%3e%3c/svg%3e",yp="data:image/svg+xml,%3csvg%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.8439%202.2085c.1082-.088.2747-.2014.4579-.2081.2672-.0092.5317.1595.6361.4056.1044.2461.0418.5536-.1504.7394l-2.1924%202.1998%202.1924%202.1929c.2717.2408.2851.7157.0275.9714-.2576.2558-.7323.2389-.9711-.0346L18.6515%206.282l-2.5602%202.5607c1.1824%201.3942%201.8941%203.1964%201.8941%205.163%200%204.4072-3.5863%207.9943-7.9927%207.9943C5.5864%2022%202%2018.4129%202%2014.0057s3.5864-7.9943%207.9927-7.9943c1.9644%200%203.7617.7138%205.155%201.8945l2.5602-2.5607-2.1924-2.1998c-.1791-.1757-.2451-.4574-.1628-.6944.0824-.237.3089-.417.5582-.4437a.6765.6765%200%2001.5481.2012l2.1925%202.193%202.1924-2.193zm-4.1906%2011.7972c0-3.6871-2.9742-6.662-6.6606-6.662-3.6864%200-6.6606%202.9749-6.6606%206.662s2.9742%206.6619%206.6606%206.6619c3.6864%200%206.6606-2.9748%206.6606-6.6619z'%20fill='%235C5F6B'/%3e%3c/svg%3e",bp="data:image/svg+xml,%3csvg%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.7778%202.6667A.6667.6667%200%200116.4444%202h4.8889A.6667.6667%200%200122%202.6667v4.8888a.6667.6667%200%2001-1.3333%200V4.2709l-4.5625%204.5625C17.2876%2010.2285%2018%2012.032%2018%2014c0%204.4103-3.5896%208-8%208s-8-3.5897-8-8c0-4.4103%203.5896-8%208-8%201.9661%200%203.7651.7144%205.1597%201.8958l4.5625-4.5625h-3.2778a.6667.6667%200%2001-.6666-.6666zm.8891%2011.3325c0-3.6898-2.9768-6.6667-6.6666-6.6667s-6.6667%202.9769-6.6667%206.6667c0%203.6897%202.9769%206.6667%206.6667%206.6667%203.6898%200%206.6666-2.977%206.6666-6.6667z'%20fill='%235C5F6B'/%3e%3cpath%20d='M14.1637%203.7563a.6993.6993%200%2001.989%200l4.6678%204.6677a.6994.6994%200%2001-.9891.989l-4.6677-4.6677a.6993.6993%200%20010-.989z'%20fill='%235C5F6B'/%3e%3c/svg%3e";var gp=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"gender"}},[e._v("Gender")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md mb-3 mb-md-0"},[a("div",{staticClass:"gender gender__male",class:{active:e.value==="male"},on:{click:function(i){return e.choiceGender("male")}}},[e._m(0),a("div",{staticClass:"gender__txt"},[e._v("Male")])])]),a("div",{staticClass:"col-md mb-3 mb-md-0"},[a("div",{staticClass:"gender gender__female",class:{active:e.value==="female"},on:{click:function(i){return e.choiceGender("female")}}},[e._m(1),a("div",{staticClass:"gender__txt"},[e._v("Female")])])]),a("div",{staticClass:"col-md"},[a("div",{staticClass:"gender gender__other",class:{active:e.value==="other"},on:{click:function(i){return e.choiceGender("other")}}},[e._m(2),a("div",{staticClass:"gender__txt"},[e._v("Other")])])])])])},wp=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"gender__img"},[e("img",{attrs:{src:vp,alt:"gender male"}})])},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"gender__img"},[e("img",{attrs:{src:yp,alt:"gender female"}})])},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"gender__img"},[e("img",{attrs:{src:bp,alt:"gender other"}})])}],Cp=l(fp,gp,wp,!1,null,"c73e0810");const kp=Cp.exports,Sp={name:"BirthdateControl",components:{DatePicker:A},props:{value:String,noAutoSave:Boolean,disabled:Boolean,showError:Boolean,required:Boolean,minAge:{type:Number,default:18}},computed:{defaultValue(){let t=new Date,e=t.getFullYear(),a=t.getMonth(),i=t.getDate();return new Date(e-this.minAge,a,i)},birthdate:{get:function(){return this.value?new Date(this.$moment(this.value,"DD/MM/YYYY")):null},set:function(t){if(t){let e=this.$moment(t,"DD/MM/YYYY").format("DD/MM/YYYY");this.$emit("input",e),this.$emit("setNewBirthdate",e);let a=this.isUserCoach?"updatePrivateProfile":"updateProfile";this.noAutoSave||this.$store.dispatch({type:a,birthdate:e})}}},...h(["isUserCoach"])},methods:{disabledDate(t){let e=new Date,a=e.getFullYear(),i=e.getMonth(),s=e.getDate(),o=new Date(a-100,i,s),c=new Date(a-this.minAge,i,s);return t.getTime()<o.getTime()||t.getTime()>c.getTime()}}};var Ap=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("div",{staticClass:"form-group"},[a("label",{attrs:{for:"birthdate"}},[e._v("Date of birth")]),a("date-picker",{staticClass:"picker",attrs:{"disabled-date":e.disabledDate,"default-value":e.defaultValue,lang:{formatLocale:{firstDayOfWeek:1}},clearable:!1,disabled:e.disabled,"input-class":["form-control",{"is-invalid":e.showError}],"input-attr":{required:e.required},format:"DD/MM/YYYY",placeholder:"DD/MM/YYYY"},model:{value:e.birthdate,callback:function(i){e.birthdate=i},expression:"birthdate"}},[a("template",{slot:"icon-calendar"},[a("SvgIcon",{attrs:{name:"calendarIcon"}})],1)],2),e._t("error"),e._t("hint")],2)},Pp=[],Tp=l(Sp,Ap,Pp,!1,null,null);const $p=Tp.exports,xp={name:"AdditionalProfileInfoPopup",components:{GenderControl:kp,BirthdateControl:$p},data(){return{gender:null,birthdate:null,isBusy:!1}},computed:{isBirthdateEmpty(){return!this.currentUser.birthdate||this.currentUser.birthdate=="31/12/1900"},isValid(){return this.isUserCoach?!!this.birthdate:this.isBirthdateEmpty&&!this.currentUser.gender?!!this.birthdate&&!!this.gender:this.isBirthdateEmpty?!!this.birthdate:this.currentUser.gender?null:!!this.gender},minAge(){return this.isUserCoach?18:16},...C(["currentUser","authenticated"]),...h(["isUserCoach","isBusinessAccount"])},watch:{currentUser:{handler:function(t){t.id&&this.authenticated&&this.showPopup()}}},mounted(){this.authenticated&&this.showPopup(),this.$root.$on("show-additional-profile-info-popup",()=>{this.showPopup()})},methods:{showPopup:N(function(){this.$route.name!="success_page"&&!this.isBusinessAccount&&(this.isBirthdateEmpty||!this.isUserCoach&&!this.currentUser.gender)&&(this.gender=this.currentUser.gender,this.currentUser.birthdate!="31/12/1900"?this.birthdate=this.currentUser.birthdate:this.birthdate=null,this.$refs.popup.show())},2e3),save(){this.isBusy=!0;const t={birthdate:this.birthdate};this.gender&&(t.gender=this.gender),this.isUserCoach?this.updatePrivateProfile(t).then(()=>{this.$refs.popup.hide()}).finally(()=>{this.isBusy=!1}):this.updateProfile(t).then(()=>{this.$refs.popup.hide()}).finally(()=>{this.isBusy=!1})},...b(["updateProfile","updatePrivateProfile"])}};var Ip=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"popup",attrs:{id:"additional-profile-info-popup",size:"572","no-close-on-backdrop":"","no-close-on-esc":"","hide-header-close":"",title:e.$t("en.profile.update_your_profile_info.title")},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("button",{staticClass:"btn btn-primary",class:{"btn-loading":e.isBusy},attrs:{disabled:e.isBusy||!e.isValid,type:"button"},on:{click:e.save}},[e._v(" Save ")])]},proxy:!0}])},[e.isUserCoach?e._e():a("p",{staticClass:"mb-4"},[e._v(" "+e._s(e.$t("en.profile.update_your_profile_info.client.text"))+" ")]),e.currentUser.gender?e._e():[a("gender-control",{staticClass:"mb-4",attrs:{"auto-save":!1},model:{value:e.gender,callback:function(i){e.gender=i},expression:"gender"}})],e.isBirthdateEmpty?[a("birthdate-control",{staticClass:"mb-0",attrs:{"no-auto-save":!0,"min-age":e.minAge},model:{value:e.birthdate,callback:function(i){e.birthdate=i},expression:"birthdate"}})]:e._e()],2)},Rp=[],Ep=l(xp,Ip,Rp,!1,null,null);const Dp=Ep.exports,Fp={name:"ReloadPrompt",data(){return{needRefresh:!1}},created(){window.addEventListener("showUpdateModal",this.showUpdateModal)},beforeDestroy(){window.removeEventListener("showUpdateModal",this.showUpdateModal)},methods:{showUpdateModal(){this.needRefresh=!0},reloadNow(){window.location.reload()}}};var Mp=function(){var e=this,a=e._self._c;return a("b-modal",{attrs:{title:e.$t("en.update_modal.title"),"hide-header-close":"","no-close-on-backdrop":"",size:"572",lazy:""},scopedSlots:e._u([{key:"modal-footer",fn:function({close:i}){return[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),i.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.update_modal.cancel"))+" ")]),a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),e.reloadNow.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("en.update_modal.ok"))+" ")])]}}]),model:{value:e.needRefresh,callback:function(i){e.needRefresh=i},expression:"needRefresh"}},[a("p",[e._v(" "+e._s(e.$t("en.update_modal.text_1"))+" ")]),a("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("en.update_modal.text_2"))+" ")])])},Lp=[],Op=l(Fp,Mp,Lp,!1,null,null);const Up=Op.exports,Yp={name:"ModalDeclinedAppIcon",data(){return{reasons:[]}},methods:{show(t){this.reasons=t,this.$refs.declinedAppIconModal.show()},hide(){this.$refs.declinedAppIconModal.hide()},goToAppIconPage(){this.$route.name!=="customisation-app-icon"?this.$router.push({name:"customisation-app-icon"}):this.$root.$emit("declined-app-icon-view-details"),this.hide()}}};var Bp=function(){var e=this,a=e._self._c;return e._self._setupProxy,a("b-modal",{ref:"declinedAppIconModal",attrs:{size:"572",title:"App icon cannot be uploaded"},scopedSlots:e._u([{key:"modal-footer",fn:function({close:i}){return[a("button",{staticClass:"btn btn-outline-dark",attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),i.apply(null,arguments)}}},[e._v(" Close ")]),a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:e.goToAppIconPage}},[e._v(" View details ")])]}}])},[a("div",[a("p",{staticClass:"reasons-text"},[e._v(" Uploaded app icon doesn't comply with following App Store Guidelines: ")]),a("ul",{staticClass:"reasons-list"},e._l(e.reasons,function(i,s){return a("li",{key:s,staticClass:"reasons-list_item"},[e._v(" "+e._s(i.title)+" "+e._s(i.description)+" ")])}),0)])])},Vp=[],Np=l(Yp,Bp,Vp,!1,null,"e7775cc1");const Wp=Np.exports,Hp={components:{AppAlerts:Zu,AppFooter:ep,AdditionalProfileInfoPopup:Dp,PortalTarget:ee,ReleaseNotesModal:dp,KnowledgeNotesModal:mp,ReloadPrompt:Up,ModalDeclinedAppIcon:Wp},data:()=>({isOffline:!1,isDocHidden:!1,alertsData:{title:null,text:null,type:null},isFooterHidden:!0,channel:null}),computed:{bodyCssClass(){return this.$route.meta.bodyCssClass},isDisabledReleaseNotes(){return this.isUserCoach?this.isAccountBlocked:!this.authenticated},themeCssVars(){return{...this.primaryCssColors,...this.secondaryCssColors,...this.systemCssColors}},isIntercomAvailable(){return!this.isCoachOverallAccount&&this.isUserCoach},...C(["alerts","authenticated","currentUser"]),...h(["isBusinessAccount","isBusinessOwner","isUserCoach","isCoachOverallAccount","accountKind"]),...h("subscription",["isAccountBlocked"]),...h("color_scheme",["primaryCssColors","secondaryCssColors","systemCssColors"])},watch:{alerts(){const t=this.alerts;let e=null;if(t.type!==null){switch(t.type){case"warn":for(let a in t.info)for(let i in t.info[a])e=t.info[a][i],this.$notify({group:"alerts",type:t.type,title:e||"Warning!"});break;case"info":this.$notify({group:"alerts",type:t.type,title:t.info.message?t.info.message:"Info message!"});break;case"congrats":this.$notify({group:"alerts",type:t.type,title:t.info.message?t.info.message:"Congrats!"});break;case"error":this.$notify({group:"alerts",type:t.type,title:t.info.message?t.info.message:"Whoops!"});break;default:this.$notify({group:"alerts",type:t.type,title:t.info.message?t.info.message:"Info message!"})}this.$store.commit("Alerts",{type:null})}},authenticated:{handler:function(t){t?this.connectSockets():this.disconnectSockets()},immediate:!0},"$route.meta":{handler:function(t){this.isFooterHidden=!!t.hideFooter},immediate:!0},themeCssVars:{handler:function(t){const e=document.documentElement;Object.entries(t).forEach(([a,i])=>{e.style.setProperty(a,i)})},immediate:!0},"currentUser.stripe_coach_customer_id":{handler:function(){window.profitwell&&this.currentUser.role=="coach"&&this.currentUser.stripe_coach_customer_id&&window.profitwell("start",{user_id:this.currentUser.stripe_coach_customer_id})},immediate:!0},isIntercomAvailable:{handler:function(t){if(window.Intercom)if(t){let e={name:this.currentUser.full_name,user_id:this.currentUser.id,email:this.currentUser.brand_owner_email||this.currentUser.email,created_at:this.currentUser.created_at,"Account Type":"coach","Account owner name":this.currentUser.brand_owner_full_name||this.currentUser.full_name,"Trial period start":this.currentUser.created_at};window.localStorage.getItem("gclid")&&(e.gclid=window.localStorage.getItem("gclid"),window.localStorage.removeItem("gclid")),window.Intercom("update",e)}else window.Intercom("shutdown")},immediate:!0}},mounted(){this.$root.$on("show-new-user-info-popup",({role:t,invite:e})=>{this.showNewUserSuccessNotify({role:t,invite:e})}),window.localStorage.getItem("fitrShowNewUserInfoPopup")&&(this.showNewUserSuccessNotify(),window.localStorage.removeItem("fitrShowNewUserInfoPopup"))},created:function(){window.addEventListener("online",this.updateOnlineIndicator),window.addEventListener("offline",this.updateOnlineIndicator),document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("resize",this.calc100vh),this.calc100vh()},beforeDestroy:function(){window.removeEventListener("online",this.updateOnlineIndicator),window.removeEventListener("offline",this.updateOnlineIndicator),document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("resize",this.calc100vh)},methods:{showNewUserSuccessNotify({role:t,invite:e}={}){let a="";this.authenticated&&this.isUserCoach&&(this.isBusinessAccount?a=`You're ready to go ${this.currentUser.title}!`:t=="invited"&&(e.token&&e.title?a=`Congrats, we’ve added you into '${e.title}'.`:a=`You're ready to go ${this.currentUser.full_name}!`)),a.length&&this.$notify({group:"alerts",type:"congrats",title:a})},calc100vh(){const t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}px`)},handleVisibilityChange(){this.authenticated&&document.visibilityState!="hidden"&&this.isDocHidden&&this.$refs.reloadPopup.isHidden&&d.get("users/me").then(({data:t})=>{t.private.id==this.$store.state.privateUser.id&&t.current.id!=this.currentUser.id&&this.$refs.reloadPopup.show()}),this.isDocHidden=document.visibilityState=="hidden"},updateOnlineIndicator(){this.isOffline=!window.navigator.onLine},connectSockets(){la(),this.channel=P("SystemNotificationChannel",t=>{t.type=="stripe_status_changed"&&t.data.user?(this.currentUser.stripe_connect_status=t.data.user.stripe_connect_status,this.currentUser.stripe_connect_payouts=t.data.user.stripe_connect_payouts):t.type=="switched"?!document.hasFocus()&&t.data.private_account==this.$store.state.privateUser.id&&t.data.switched_to!=this.currentUser.id&&this.$refs.reloadPopup.show():t.type=="subscribe"&&t.event=="updated"?d.get("subscribe").then(({data:e})=>{this.$store.commit("setCurrentUserSubscription",e)}):t.type=="updated_coach_app_icon"&&t.data.state=="declined"&&d.get("coach/coach_icon").then(({data:e})=>{this.$refs.declinedAppIconModal.show(e.decline_reasons)})})},disconnectSockets(){this.channel&&(T(this.channel),this.channel=null),ca()},reload(){window.location.assign("/")}},metaInfo(){const t=new URL("Fitr.jpg","https://app.fitr.training").href;return{title:"FITR",meta:[{vmid:"description",name:"description",content:"FITR - Personal Trainer Software"},{vmid:"og_title",property:"og:title",content:"FITR"},{vmid:"og_description",property:"og:description",content:"FITR - Personal Trainer Software"},{vmid:"og_image",property:"og:image",content:t},{vmid:"twitter_card",name:"twitter:card",content:"summary"}]}}};var qp=function(){var e=this,a=e._self._c;return a("div",{class:e.bodyCssClass,attrs:{id:"app"}},[a("div",{staticClass:"app-wrap"},[e.isOffline?a("div",{staticClass:"no-internet-connection system-noty danger"},[e._v(" "+e._s(e.$t("en.home.offline"))+" ")]):e._e(),a("div",{staticClass:"content"},[a("router-view")],1),e.isFooterHidden?e._e():a("app-footer")],1),a("app-alerts"),a("b-modal",{ref:"reloadPopup",attrs:{title:e.$t("en.home.multiple_title"),lazy:"",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","hide-header-close":""}},[a("p",{staticClass:"mb-0"},[e._v(e._s(e.$t("en.home.multiple_tabs")))]),a("template",{slot:"modal-footer"},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(i){return i.preventDefault(),e.reload.apply(null,arguments)}}},[e._v(" Reload ")])])],2),a("additional-profile-info-popup"),e.isBusinessAccount&&!e.isBusinessOwner&&e.isAccountBlocked?[a("b-modal",{ref:"restrictedPopup",attrs:{title:e.$t("en.pricing.brand_gym_is_restricted_popup.title"),visible:""},scopedSlots:e._u([{key:"modal-footer",fn:function({close:i}){return[a("button",{staticClass:"btn btn-outline-dark",staticStyle:{"min-width":"120px"},attrs:{type:"button"},on:{click:i}},[e._v(" Got It! ")])]}}],null,!1,727973809)},[a("p",{staticClass:"mb-0"},[e._v(" "+e._s(e.$t("en.pricing.brand_gym_is_restricted_popup.text"))+" ")])])]:e._e(),a("portal-target",{attrs:{name:"benchmarks-preview-popup"}}),e.isDisabledReleaseNotes?e._e():a("release-notes-modal",{ref:"releaseNotesModal"}),e.isUserCoach?a("knowledge-notes-modal",{ref:"knowledgeNotesModal"}):e._e(),a("ReloadPrompt"),a("ModalDeclinedAppIcon",{ref:"declinedAppIconModal"})],2)},zp=[],jp=l(Hp,qp,zp,!1,null,null);const Gp=jp.exports,Zp={};var Kp=function(){var e=this;return e._self._c,e._m(0)},Qp=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap d-flex flex-column",attrs:{id:"app"}},[e("div",{staticClass:"content d-flex justify-content-center align-items-center flex-column m-auto"},[e("div",{staticClass:"thumb"},[e("span",[t._v("404")]),e("img",{attrs:{src:yt,alt:"Create and sell your first training plan"}})]),e("h2",[t._v("404 error")]),e("p",[t._v("Sorry, we can't find this page.")])])])}],Jp=l(Zp,Kp,Qp,!1,null,"63e4df0b");const Xp=Jp.exports,eh={nav:{programs:"Programs",clients:"Clients",templates:"Templates",benchmarks:"Personal Records",leaderboards:"Leaderboards",challenges:"Challenges",my_accounts:"My accounts",my_profile:"My profile",media:"Resources",coupons:"Coupons",calendar:"Calendar",my_programs:"My Programs",my_calendar:"My Calendar",support:"Technical Support",to_dashboard:"Go to Dashboard",finance_billing:"Finance & billing",dashboard:"Dashboard",white_label:"White Label",programming:"Programming",create_brand:"Create new account",logout_message:"You will be logged out from all accounts.",public_page:"Account page",your_storefront:"Your Storefront",storefront:"Marketing",help:"HELP",help_centre:"Help Centre",demo_videos:"Demo Videos",whats_new:"What’s New",talk_to_support:"Talk to system support",settings:"Settings",account_settings:"Account settings",switch_account:"Switch account",switch_to_personal:"Switch to personal",plan_and_billing:"Plan & Billing",platform_subscription:"Platform subscription",activate_account:"Activate account",profile:"Profile",billing:"Billing",zapier_integration:"Zapier"}},th={copyright:"© Copyright 2018. All right reserved.",terms:"Terms of Use",privacy_policy:"Privacy Policy",data_security:"Data security information",manage_cookies:"Manage cookies"},ah={title:"Use of Cookies",info:"This website uses cookies to ensure you get the best experience on our website.",view:"View Cookies Policy"},ih={offline:"There is no internet connection.",multiple_title:"It looks like you have multiple pages open",multiple_tabs:"We do not currently support working across multiple tabs to work on more than one of your pages at once. Therefore please reload or close this tab to continue."},sh={main_title_add:"Add new Resource",main_title_upload:"Upload new Resource",item:{are_you_sure_part_one:"Are you sure you want to delete ",are_you_sure_part_two:"? If deleted, it will be removed from all places where it was previously used. This action cannot be undone.",yes:"Yes, delete",no:"Cancel"},lib:{files:{title:"Upload new Resource",text:"Upload a Resource from your device or paste and add a YouTube link."},cover:{title:"Upload new cover"},fitr:{no_files:"There are no files"},links:{youtube_label:"Add YouTube link",youtube_modal:"Paste the YouTube URL here",placeholder:{title:"Link to a YouTube video",text:"Paste the YouTube video URL above and press enter"},youtube_btn:"Add link"}}},nh={payment:{new_method:"Add payment information",update_method:"Update payment method",add_method:"Add payment method",title:{new:"Add Payment information",edit:"Update payment information",rewrite:"Add new payment information"},button:{new:"Add Payment Information",update:"Save",cancel:"Cancel"},text:"This information is stored directly and securely in Stripe.  Address information will appear on your invoices and receipts.",rewrite_text:"Please note this will replace the current card on file. Your information is securely stored with our financial partner Stripe.",card_number:"Card Number",card_brand:{visa:"Visa",amex:"American Express",diners:"Diners Club",discover:"Discover",jcb:"JCB",mastercard:"MasterCard",unionpay:"UnionPay",cartes_bancaires:"Cartes Bancaires",unknown:"Unknown"}},calendar:{title:"Choose when to start your program",start_date:"Start date",color_select:"Select program colour",info_sure:"Are you sure you want to start your program on:",info_warn:"NOTE: This can’t be changed afterwards.",info_hint:"You can reschedule the program via the main program area if required.",yes:"Start program",yes_paid:"Proceed to checkout"},dashboard:{send:"Send message to all clients"},perfomance:{title_empty:"Session notes",title:"Session notes",about:{title:"Review your client’s session notes",text_1:"If your client has added session notes, you’ll see something like this:",text_2:"If you can’t see any session notes, the client has left this day blank.",text_3:"To leave feedback, click into the desired day and scroll to the comment section.",dont_show:"Don’t show this pop-up again"}},plan_types:{fixed:{point_1:"Upon download, every client will receive the full training schedule.",point_2:"You will need to pre-load the program's schedule for the duration of the program before you can sell it to clients.",point_3:"Each client will be able to choose when to start the program - e.g. download on a Friday, start the following Monday.",point_4:"Manage one central training schedule safe in the knowledge training will be delivered automatically to your clients on download.",point_5:"Ideal for programs where there is a definitive start and end goal."},membership:{point_1:"Regardless of when any client subscribes, they'll start at the very first session you ever built. This could mean you have clients at different stages of the program at any one time.",point_2:"You don’t need to load all the training to start selling this program, just the first week or so. Add future programming as time progresses.",point_3:"Clients will always have 7 days visibulity into the future. Build in advance and we'll let them see it when it's time.",point_4:"Ideal for training cylces or rehabilitation programs where you want clients to begin at the very start of what you’ve built, not at today’s date."},individual:{point_1:"This program is for clients who need to receive 100% bespoke training.",point_2:"You do NOT need a bepsoke program per bespoke client.",point_3:"Why? As each client joins, you'll have the ability to add bespoke training to their individual training schedule.",point_4:"Create one bespoke program and invite all your bespoke clients to it. You can even create coupon codes to offer different clients different payment terms on the same program."},one_many:{point_1:"Every client will get the same programming on the same calendar date. One training schedule to update, unlimited clients.",point_2:"Utilise our personal record feature to allow you to customise the workouts to each individual’s ability.",point_3:"Save time by managing one central training schedule safe in the knowledge training will be delivered to your clients when they need it.",point_4:"Ideal for where you want a whole group of people to receive the same core programming, in a calendar format, such as gym wide programming."}},schedule_hint:{title:"Helpful hint",fixed:"Now to build your program's content. Take your time, you can save programs as draft and come back to them. The perfect program takes time.",fixed_2:"Once you're ready to unleash it to the world, head to Step 3 - Review & Publish.",membership:"You only need to create the first week of the training schedule before you can publish the program.",membership_2:"You can add more weeks over time once you've published the program and clients are onboard.",else_1:"After publishing this program you'll be able to create the training your clients will follow.",else_2:"After publishing, we'll show you how to sign up clients to the program too.",dont_show:"Don’t show me this again"},paste_sections_hint:{title:"'Paste to' options",text:"You now have two options on how to paste the programming you've just copied:",day:"- сlick this icon to paste everything into the same day",structure:"- click this icon to paste the training whilst keeping its copied structure",dont_show:"Don’t show me this message again"},user_info:{buisness_1:"If you need any help getting started, please contact us via live chat.",buisness_2:"Remember you can add more coaches to your {accountKind} in settings.",thanks:{title:"Thanks!",text:"The FITR Team."},invited:{with_token:"We’ll now link you into the training programs area so you can get started.",else:{text_1:"We'll take you to your feed now where, if you've been invited to join an existing team, you'll see an invite ready for you to accept.",text_2:"Don't see an invite in your feed?",text_3:"Make sure the person inviting you is using the same email as you've signed up with. If they haven't, they'll need to re-invite you to the team."}},standalone:"Now you're set up, have a play around creating training programs and signing up clients. We're always here to help in live chat if you need.",start_button:"Start Using FITR"},custom_program:{title:"Do you need another 1-2-1 program?",text:"Remember you can add multiple clients to a single 1-2-1 program and give each totally independent training to follow; saving you from creating a new program for every client!",cancel:"Cancel",continue:"Yes, continue",dont_show:"Don't show me this warning again."},reschedule_client:{week:"Week",day:"Day",title:"Reschedule your client",text:"{clientName} is currently on <span>Week {weekNumber}</span> <span>Day {dayNumber}</span>, what Week/Day would you like to move them to?",checkbox:{desktop:{text:"Clear future programming?",tooltip:"Rescheduling may result in the client's calendar having extended future training visibility. E.g. If you moved a client to week 20, instead of week 2, and then corrected this mistake, they would have 18 weeks of programming ahead of time. Select this box to remove any future programming longer than 7 days."}},error:"Please enter a value between",btn_cancel:"Cancel",btn_ok:"Confirm",notify_success:"{clientName} has been moved to Week {weekNumber} Day {dayNumber}"},resetAddress:{title:"Reset web address",text:"Please note, after reverting to the default URL, any custom links you had previously shared with clients will no longer work.",cancel:"Cancel",reset:"Reset"},deactivate_tax:{title:"Deactivate stripe tax?",text:"Please note you will also need to deactivate this in your Stripe account. You can access this",link_text:"here.",buttons:{yes:"Yes, deactivate",cancel:"Cancel"}},choose_client:{title:"Which client do you want to start programming for?",description:"Select who you'd like to start programming for first. Don't worry, you can switch between clients easily later too.",no_result_title:"No results",no_result_text:"You don’t have any clients matching your search.",search_placeholder:"Search…",btn_close:"Close",btn_skip:"Skip",btn_next:"Next"}},oh={info:{text_1:"A client is coming to the end of their program",text_2:"A client needs their schedule updated soon",text_3:"A Client needs their schedule updated ASAP"},questions:{user:{fixed:"Choose your own start date after downloading the program and you can follow the programming from your calendar view.",membership:"Choose your own start date and follow the programming from your calendar view. You’ll always see 7 days in advance.",individual:"Follow your programming from your calendar view. Future training visibility is set by your coach.",one_many:"Follow your programming from your calendar view. Future training visibility is set by your coach."},coach:{fixed:"Clients choose their own start date after downloading the program.",membership:"Make sure you keep updating the training schedule over time.",individual:"Make sure you keep updating the client's training schedule over time.",one_many:"Make sure you keep updating the training schedule over time."}}},rh={info:{membership:{coach:"Choose your own start date and follow the programming from your calendar view. You’ll be able to always see a week in advance.",else:"Make sure you keep updating the training schedule over time."},fixed:{coach:"Choose your own start date after download and follow the programming from your calendar view.",else:"Client’s choose their own start date after downloading the program."},bespoke:{coach:"Follow your programming from your calendar view. Future training visibility is set by your coach.",else:"Make sure you keep updating the training schedule over time."},one_many:{coach:"Follow your programming from your calendar view. Future training visibility is set by your coach.",else:"Make sure you keep updating the training schedule over time."}},tab:{coach:"The information below is strictly a preview of what the program will look like. The preview only shows the title, description, first week of content and general attachments.",else:"The information below is strictly a preview of the program. Always follow your training from your main calendar. If you can’t see it in your calendar, you may need to set a start date (membership and fixed length programs) or contact your coach (bespoke programs)."}},lh={title:"SELECT ACCOUNT",subtitle:"Are you offering programming as a standalone coach, or as a team?",links:{standalone:"Deliver your programming as a standalone coach. You can also join other teams at no extra cost.",team:"Create a team account to invite an unlimited number of coaches to join you in delivering your programming under a single identity."}},ch={title:"USER TYPE",subtitle:"Are you a coaching provider or a client?",link:{coach:"Create, sell, manage and grow your coaching business.",client:"Download and subscribe to health and fitness programs."}},dh={title:{team:"PROVIDER SET UP",invited:"JOIN A TEAM",coach:"PROVIDER SET UP",client:"CLIENT SIGN UP"},subtitle:{team:"Create your team account and start your 14 day free trial.",invited_1:"If you’ve received a team invite, create your account below and we’ll direct you to join the team. ",invited_2:"There’s no cost for contributing to an existing team account and you’ll have the option to upgrade if you want to create your own standalone programming in the future.",coach:"Create your account and start your 14 day free trial.",client:"Create your free account to follow programming and track your progress."},important:{team:"We need to take some personal details of the first coach under this account. They will have the main admin rights to the account."},error:"Name field must contain less than 50 characters and can’t contain any of the following characters: / | \\ + = @ : < > ? ;"},uh={title:"Inbox",main:{no_threads:{coach:{title:"Your Inbox",text:"Keep in touch with your client base here. You can send DMs and start group chats called communities."},else:{title:"You don't have any messages",text:"When you sign up to training program's, you'll be able to message the coach here."}},has_threads:{v1:{title:"Whoops.",text:"There's no results based on your search criteria."},v2:{coach:{title:"You have't launched any communities yet",text:"Click <mark>Launch community</mark> from any subscription based program to launch a group chat amongst coache(s) & clients."},else:{title:"You're not part of any communities yet",text:"Communities are group based chats linked to subscription based programs."}},v3:{coach:{title:"Your Inbox",text:"Keep in touch with your client base here. You can send DMs and start group chats called communities."},else:{title:"You don't have any messages",text:"When you sign up to training program's, you'll be able to message the coach here."}}}},remove:{title:"Are you sure?",text:{line_1:"This will delete the message history from your side only.",line_2:"As an alternative you can archive this message instead."},ok_title:"Yes, Delete Chat"}},ph={layout:{title:"My Feed",is_coach:{title:"Your Feed",text:"Once you're up and running activity about your coaching business will show here.",text_for_blocked_coach:"Invites from other teams will appear here.",text_for_blocked_bg:"Once you're up and running activity about your coaching business will show here.",link:"Create a Training Program"},not_coach:{title:"Oops.",text:"It seems like you don't have any notifications yet."}},list:{title:"Oops.",alt_title:"Hmmm.",leaderboards:"Updates such as comments on leaderboards will appear here over time.",is_coach:{invite:'Invitations to and from other teams will appear here when applicable. Learn about managing multiple teams <a href="https://intercom.help/fitr/en/articles/3719199-invite-add-coaches-to-my-coaching-account" target="_blank">here</a>.',not_invite:"Once you start coaching clients on training programs, updates will feed here over time."},not_coach:{text:"Seems like you don't have any notifications yet."}}},hh={view:{plans:{no_plan:{title:"Whoops",owner:"You haven't created any publicly available programs yet. Once you do, they'll appear here.",not_owner:"The coach hasn't built any programs to sign up to yet. Once they do, they'll appear here."},back:"Back to Main Page"},coaches:{back:"Back to Main Page",title:"Meet The Coaches",no_coaches:{title:"There are no coaches",is_owner:"It looks like you haven`t invited any coaches to join you team just yet. You can do that in 'Settings'",not_owner:"It seems as though the coach hasn't invited any coaches to join their team yet."}}},edit:{cancel_modal:"Are you sure you want to cancel all changes, unsaved content will be lost?"},account_type:{title:"Create a new account — and get 14 days free!",title_for_free:"Create a new account",subtitle:"Create and manage multiple teams under a single registration. Create as many teams as you like and easily switch between them without logging in and out.",team:{title:"Team",text:"Create a team account and invite anyone to join forces, delivering team programming under a single identity.",button:"Start 14 Day Trial",button_for_free:"Create a Team"},subscription:{info_1:"*No credit card required, cancel anytime.",info_2:"Transaction fees apply."}},more:{text:"The FITR process",button:"Learn more",modal:{step1:"Download/subscribe to a Program",step2:"Depending on the type of program, you'll either get training straight away, or you'll need to wait until your coach adds some training in for you.",step3:"Follow the programming as prescribed by your coach and make use of all the other FITR benefits.",back:"Go Back to the previous page"}},testimonials:{empty_text:"Showcase what your clients think about you."},top_coaches:{not_empty:{title:"Meet the Coaches",text:"Choose up to 4 coaches to showcase on the front of your page. Clients can click to see the full list too."},is_empty:{title:"There's no coaches linked yet",text:"Looks like you haven`t invited any coaches to join your brand just yet. You can do that in 'Settings'"},recommend:"We recommend you to add 4 coaches.",library:{recommend:"We recommend you add 4 coaches to showcase.",is_empty:"There's no coaches linked yet"}},top_programs:{not_empty:{title:"Showcase your top programs",text:"Choose up to 4 top programs that you want to showcase on your public page. Clients will be able to click to see more."},is_empty:{title:"Your program library is empty",text:"You haven't created any training programs. Once you have, you can showcase up to 4 on the front of your Storefront."},recommend:"We recommend you add a minimum of 2 programs.",library:{recommend:"We recommend you add a minimum of 2 programs.",is_empty:"There are no programs showcased yet"}}},_h={actions:{calendar:"Go to calendar"},alert:{archived:"Sorry, this program has been archived by the coach. View available programs ",bought:"It's not currently possible to purchase this program due to restrictions on the coach's account. Please contact the coach to let them know.",permission:"You do not have permission to access this program. Please contact the coaching provider.",privacy_setting:"It is likely due to a privacy setting on the program and they may need to grant you access. "},warning:{part1:"Your last payment was declined.",part2:"to get more information."},modal:{what_happen:{fixed_s1d1:{title:"Start your Program",text1:"Download the client app.",text2:"Use the same login credentials for the app.",text3:"Follow your programming and check the welcome message your coach has sent you in your app inbox.",text4:"Your program will commence on <b>%{date}</b>. Only on this date will programming appear in the app.",text4_launch:"Your program will commence on <b>%{date}</b>. You will not be charged until that date.",text5:"Finish setting up your profile by adding some more details."},individual:{text1:"<b>1.</b> Download the client app.",text2:"<b>2.</b> Use the same login credentials for the app.",text3:"<b>3.</b> Follow your programming and check the welcome message your coach has sent you in your app inbox.",text4:"<b>4.</b> Finish setting up your profile by adding some more details."},got_it:"Got it!",done:"Done",title:"What Happens Next?"},payment:{text1:"We’ve stopped further training from being delivered to your calendar due to a failed payment. We'll automatically try and take payment over the next 7 days however you can manually retry now using the button below. Upon payment being confirmed, training will flow into your calendar so you're fully up to date.",text2:"If payment isn’t made within 7 days, we’ll automatically cancel your subscription. You can still resume it after this date and start the program where you left off by pressing the ‘resume subscription’ button that will appear.",link:"Set up a new card and pay",button:"Try my payment again"},incomplete:{text1:"We couldn’t complete a successful charge from you. Your subscription has an incomplete status now and will be automatically cancelled.",text2:"We recommend you to try again or set up a new credit card to pay."},cancel:{text:"Are you sure you want to cancel your subscription to this program?",textSecond:"Your access to the program will continue until the natural end of the current billing cycle. At that point no further payment will be taken and access to program content will stop.",button:{no:"No, keep my subscription",yes:"Yes, cancel my subscription"}},resume:{text:"Hey! Nice to see you again. Please choose how you want to start the program again.",restart:"Start from the very beginning",continue:"Resume from where I left off"}}},mh={coach:{athlete_calendar:{system_noty:"You have new client activity below."},benchmarks:{form:{help:{link:"Link Personal Record(s)",text:"or type it in manually."}},page:{head:{title:"Personal Records",link:"Show me how they work."},main:{title:"Welcome to using Personal Records!",text:"Placeholder Personal Records text…"}},instructions:{text:"Using Personal Records, code your sessions so clients can see individualised sessions automatically. Automatic percentages, split times and more!",steps:{s1:{title:"Step 1 – Choose the Personal Record",text:"Pick from the central list, or once you’re up to speed, simply type out the Personal Record code. <mark>CODE</mark>."},s2:{title:"Step 2 – Adjust as Required",text:"When the session text goes blue, we know you’ve linked a Personal Record. Adjust the percentage to your needs and for split times, you can simply adjust the + or – at the end to represent second based adjustments."},s3:{title:"Step 3 – Sense-check the session",text:"Sense check your sessions with test values to ensure you've achieved the required training intensity."},s4:{title:"Step 4 – It's over to your client",text:"Clients will be shown targets based on their own Personal Record values. If they haven’t recorded a Personal Record, we’ll let them know.",text2:"Once recoded, they’ll be shown their personalised session straight away."}},dont_show:"Don’t show me this again"}},calendar:{form:{unsaved:"You have unsaved changes. Do you want to leave and lose your changes?"},program_info:{text:"Now you can start to build out this program's training schedule. You can also access this program's training schedule later from the main program page.",dont_show:"Do not show this message again"}},clients:{add:{invalid_emails_length:"Email invite is limited to 20 users at a time. Instead, please consider using the Program’s URL.",current:{placeholder:"Search or select an existing client from the list",empty:"There are no available current clients to add to this program.",add:"Add clients",no_results_placeholder:"No clients match your fillters",success_title_one_added:"has been added to the Pending tab",success_title_few_added:"Clients have been added to the Pending tab"},new:{send:"Note: Your client(s) will appear in the 'pending clients' tab after this step. In the 'pending clients' tab you can program for clients before sending them a formal invitation to subscribe, allowing you to get a head start on their programming.",clients_send:"Manually add a client into your account. Once added, you will need to formally invite them to one of your programs via the ... option menu to the right hand side of their name.",add_btn:"+ Add Another Client",check:"Please check some formatting issues we've discovered.",button:{check:"Click here to check them all",remove:"click here to remove them"}}},all:{placeholder:{active:{title:"No Active Clients",text:"Create a training program and invite your clients to join it. Once they've joined, they'll appear here."},in_trial:{title:"No In-Trial Clients",text:"You don't currently have any clients who are in a trial of one of your programs."},pending:{title:"No Pending Clients",text:"Pending clients allow you to send programming to them before they formally join the program. 1-2-1 type programs only."},past:{title:"No Past Clients",text:"Clients will appear here when they're no longer active on one of your programs."},activity:{title:"No Clients to Review",text:"Clients will appear here when they have training remarks that require your attention."}},filter_no_results:{title:"No clients match your filters",text:"Please adjust your chosen filters to refresh the page."},row:{message:"Populate training even before a client's joined your program."}},cancel_subscription:{form:{step_info:"Are you 100% sure you want to cancel this FREE program subscription? The program will be сancelled immediately.",cancel:"Client access to the program will cease from tomorrow. <i>Important note</i>: if you cancel the program before the end of the client's usual billing cycle they will NOT automatically receive a refund for the part of the month they haven't received training for. Please consider whether you need to offer a partial refund on the next screen (paid programs only).",continue:"Client access to the program will continue until the natural end of the current billing cycle. At that point no further client payment will be taken and access to program content will stop for the client.",info:{text1:"Are you 100% sure you want to cancel the subscription?",text2:"Access to the training program will cease immediately, no further training sessions will flow to the client.",text3:"The client will continue to receive training sessions from this program until the end of their billing cycle."},refund:{label:"Cancel and issue the client a refund",text:"Issue a refund at the same time as cancelling their subscription."},not_refund:{label:"Cancel the subscription without a refund",text:"The client doesn't need a refund issued at this time."},warning:{full_discount:"A 100% coupon was applied to the last transaction therefore a refund can't be issued.",no_discount:"You have already refunded this client's last payment via the dashboard. Please access the dashboard if you need to issue further refunds to this client."}}},layout:{change_highlighted_program:"Change highlighted program",batch_upload:"Batch upload clients",add:"Add new client",import:"Import clients from CSV"},client_profile:{benchmark:{title:"Personal Records",searchPlaceholder:"Search Personal Records...",noDataTitle:"No Personal Records",noDataText:"This client hasn't tracked any Personal Records yet.",noResultsTitle:"No Personal Records match your filters",noResultsText:"Please adjust your chosen filters to refresh the page.",url:"benchmarks"},"body-metric":{title:"Body Metrics",searchPlaceholder:"Search body metrics...",noDataTitle:"No metrics",noDataText:"This client hasn't tracked any metrics yet.",noResultsTitle:"No metrics match your filters",noResultsText:"Please adjust your chosen filters to refresh the page.",url:"body_metrics"},challenge:{title:"Challenges",searchPlaceholder:"Search challenges...",noDataTitle:"No challenges",noDataText:"Your client hasn't tracked any challenges yet.",noResultsTitle:"No challenges match your filters",noResultsText:"Please adjust your chosen filters to refresh the page.",url:"challenges"}}},coupons:{title:"Create coupon codes",if_strype:"Boost sales and reward your loyal customers with coupon codes.",filter_no_results:{title:"No coupons match your filters",text:"Please adjust your chosen filters to refresh the page."},create:"Create a coupon code",no_strype:"To create coupon codes for training programs, you need to update some information with our payment provider Stripe.",deactivate:"Are you sure you want to deactivate this coupon? This action can’t be undone and you will not be able to delete it or use the same coupon name.",create_modal:{setup:"Set up your very own discount codes to offer promotions to new and existing clients.",name_feedback:{invalid:"May only contain alphanumeric characters in addition to - and _",valid:"Clients will be required to enter coupon codes on checkout."},how_long:"How long should the discount apply for?",duration:"Duration in months",limit_duration:"Limit when this code can be used? E.g. Black Friday Special.",max_redemptions:"Limit how many times this code can be used (in total).",redemptions_input:"Limit how many times this code can be used (in total)."},refund_modal:{alert:{text1:"Stripe will attempt to take the refund from any pending balance you have awaiting bank transfer. If this balance is not sufficient to fulfil the refund, Stripe will automatically try and debit your bank account.",text2:"Please ensure you have cleared funds in your bank account as if Stripe fails to fulfil the refund you may be charged a $15 fee.",text3:"You can check what your pending balance is within the dashboard.",text4:"Refunds can take up to 10 days to process. It is not possible to refund transaction fees. It is only possible to make a full or partial refund once per transaction."}}},challenges:{create:"Create a Challenge",title:"Create a Challenge",description:"Create and insert challenges into multiple programs and we'll collate all the scores into a single leaderboard. Clients can re-enter challenges and see how they progress over time too."},dashboard:{payouts:{alert:"Due to Stripe API limitations, we are not able to show the transactions that make up your individual payouts.",placeholder:{title:"Bank payouts history",text:"Once you'll have pending or received payouts, they'll appear here."}},transactions:{title:"Transaction history",text:"As you generate sales, they'll appear here."},media:{title:"Store all your media and documents here.",text:"You can quickly assign them into any training program you build. Any media added into a program, will also appear here.",edit:{hint:"Tag your resource. As you build training sessions, if the text starts to match a resource tag, we'll offer it as a suggested attachment."}}},media:{title:"Resources",subheader_text:"Use Resources to access and manage your media, and access FITR’s library of free imagery and videos.",upload_resource:"Upload resource",view_all:"View All",hyrox:{text1:"This exclusive content is reserved for affiliated&nbsp;HYROX&nbsp;Gyms&nbsp;and&nbsp;Trainers.<br />Click below to learn more.",button:"Learn about HYROX affiliation and&nbsp;its&nbsp;benefits.",text2:"Already affiliated? Let us know via",link:"live&nbsp;chat"},no_resources_title:"No resources",no_resources_text:"You don’t currently have any resources added to your library. Use the Upload resource button to add content to your library.",no_result_title:"No resources match your filters",no_result_text:"Please adjust your chosen filters to refresh the results."},profile:{coaches:{title:"Invite your coaches",text:"Invite coaches to your {accountKind} to share the workload.",sure:"Are you sure you want to remove this coach? This can't be undone and you'll need to send another invitation."},info:{accounts:"You can connect to Facebook for log in purposes. We do not push any content from FITR to your Facebook account.",logout:"We'll save all your data until you come back."},payment:{identity:{descr1:"Stripe's regulations require you to store some information securely with them to receive bank payouts.",descr2:"You will be redirected to Stripe to upload your information then automatically brought back to FITR."},account:{descr1:"To receive automatic payouts to your bank account, you need to link one here. All your banking information is held securely with our payment provider Stripe.",descr2:"Payouts to your bank account are processed every Wednesday."},form_invalid:"The following fields have been denied by Stripe. Please make sure you fill in everything correctly.",bank:{text1:"You need to link a bank account so any client purchases will transfer into your bank account automatically.",text2:"You can skip this step for now, BUT if you do so, you'll have 21 days after your first sale to add them, otherwise the money will be returned to your client.",text3:"Note: Stripe holds sales for up to 7 days, before transfering them to your bank. They hold monies incase of any client/coach disputes.",attention:"You will be able to edit the bank account associated with you account from your payouts settings at any time."},DEPR:{full:{info:{text1:"Stripe requires us to take some further details to ensure your payouts are never limited or suspended.",subtitle:"Why?",text2:"Stripe has to ensure you are who you say you are. To do this fully, they need some personal details, the additional ones below and then your bank account.",text3:"You can receive some payments from clients with limited information but Stripe reserves the right to limit the volume of or suspend payouts at any time."},attention:"We do not store any details on our servers, they are held securely with Stripe"},personal:{title:"Register Personal Details",text:"Stripe requires us to take some basic personal information to set up automatic payments  between youself and your clients. This is for bank verification and online safety reasons.",attention:"We do not store any details on our servers, they are held securely with Stripe"}},retry:{danger1:"There is a problem with your recent payment to FITR. Please check your bank account's funds and try again.",danger2:"If you don't, FITR reserves the right to suspend your account and if non payment continues, delete your account. But we really don't want to do that."}},reviews:{title:"Program reviews will be available soon",text:"We’re hard at work. You’ll be able to gather reviews on your programs to stand out from the crowd"},settings:{info:"We'll always keep your feed totally up to date, but you can decide what type of emails you'll be sent below.",is_coach:{text1:"Receive a daily email summarising any new client performances, thread mentions, inbox messages and programs that require your attention.",text2:"Receive emails when you've got new clients, lost clients, we've blocked clients due to failed payments and more.",text3:"Receive tailored marketing communication relevant to your account. FITR will only send marketing emails when we feel it's really needed. We will not spam your account with unnecessary emails. However, you can turn off all marketing emails by unchecking this box."},not_coach:{text1:"Receive a daily email summarising any outstanding comments from your coach(es), mentions and inbox messages.",text2:"Receive emails about any program & payment related activities."}},socials:{link_instagram:"Instagram",link_facebook:"Facebook",link_twitter:"Twitter"}},programs:{price:{alert:"After transaction fees you'll get: ",warning:"Your Stripe account configuration requires your attention.",hint:"*Your program's price includes all taxes that may be applicable to you. It is the total price the client will pay.",danger:"Please contact your brand/gym/team owner and ask him to fill in the missing Stripe payout information. Your program will be saved as a draft at this point."},review:{step:"Preview, publish & share your program",alert:"This is the client view - make sure you're happy with how it looks"},list:{title:"Create your first program",text:"Programs are how you deliver your remote coaching services to the world. Mix and match from the available styles."},needs_review:{title:"Programs are up to date",text:"It looks like your programs are all up to date. Good work."},filter_no_results:{title:"No programs match your filters",text:"Please adjust your chosen filters to refresh the page."},create_main:{title:"Create your program"},actions:{modal_step_closer:{title:"You’re one step closer to getting your program ready!",text:"Your program is set as free. Please be aware that once published this can't be changed.",button_ok:"Yes, continue",button_cancel:"Back to edit"}},sign_up_clients_page:{title:"How would you like to sign up clients?",text_one:"Select one, or more, of the options to sign up clients and start programming or skip and do this later.",text_two:"You can have multiple 1-2-1 clients, with individualised schedules, subscribed to a single 1-2-1 program.",text_two_subtitle:"Important note:",sign_up_options:{learn_more:"Learn more.",option_one:{label:"Current clients",text:"Invite one or more of your current clients to the program.",description:"Choose one or more of your current clients to invite to the program. Once added they'll move into a {pending} status. This allows you to create programming for them before actually joining the program. Once you're ready you can send an invitation to sign up and the programming you created will be waiting for them in the App. {link}"},option_two:{label:"Manually add",text:"Add someone new to the program, with their name and email.",description:"Add someone new to the program with their name and email. Once added they'll move into a {pending} status. This allows you to create programming for them before actually joining the program. Once you're ready you can send an invitation to sign up and the programming you created will be waiting for them in the App. {link}"},option_three:{label:"Email",text:"Add one or more emails into the box below and we'll send them a link to get the program.",description_1:"Simply send a link to the program via an email. Clients wil receive their email invite immediately. Most coaches find it best to add programming and then invite clients.",description_2:"Note: If you invite clients this way, you WILL have to wait for them to join the program before you can send them training."},option_four:{label:"Program URL",text:"Every program has a unique, shareable link. Use it anywhere you want.",description_1:"Simply copy and share this direct link to the program anywhere you want.",description_2:"Note: If you invite clients this way, you WILL have to wait for them to join the program before you can send them training."},pending:"'Pending'"},copy_url_label:"Copy This URL to Share",copy_url_btn:"Copy link",modal_signup:{title:"How would you like to sign up clients?",description:"Use one or more of the following options to sign up clients to your program:",unsaved_messages:{email:{title:"Your email invite hasn’t been sent yet",text:"If you’d like to send this invite please go back and select the ‘Send email invite’ button."},manually_add:{title:"Your client hasn’t been added yet",text:"If you’d like to add this client please go back and select the ‘Add client’ button."},current_client:{title:"Your current clients haven’t been added yet",text:"If you’d like to add these clients please go back and select the ‘Add clients’ button."},continue:"Do you want to continue?",ok_btn:"Yes, continue",cancel_btn:"Cancel"}}}},templates:{layout:{title:"Templates",description:"Create templates of your work from scratch or save them directly from your programming to use again in the future. You can create templates from single parts, such as warm ups or exercises, a whole day’s training and even week-based templates such as training cycles."},list:{title:"Create week template",text:"Create blocks of weeks that you can insert in any of your programs."},sections:{list:{title:"Create day template",cta:"Create Template",action:"Create day template",text:"Create single part templates you can use time and again in your programs."}},filter_no_results:{title:"No templates match your search",text:"Please adjust your search to refresh the page."},copy_hyrox_template_modal:{title:"Copy to my templates",label:"Template name",close_btn:"Cancel",save_btn:"Save template",placeholder:"E.g. warmup template",error_max:"Template name must have at most {max_error} letters.",error_min:"Template name must have at least {min_error} letters.",error_required:"Template name is required.",copy:"copy",success_notify:"Template successfully copied"},messages:{saved:"Template was succesfully saved."}}},user:{benchmarks:{instructions:{title:"Personal Records Introduction",close_btn:"Close",text1:"Use Personal Records as a great way to track your progress over time. You can access the extensive library via your main navigation menu.",text2:"If you’re following programming from a coach, and they’ve linked a Personal Record into the part, we’ll show you your most current performance entry.",text3:"If you haven’t recorded a performance for a set Personal Record, add it there and then to see the prescribed programming.",text4:'If you can’t see a Personal Record you’d like to track, let us know <a href="mailto:info@fitr.training">info@fitr.training</a> and we’ll get it added into the system.'},page:{title:"Personal Record tracker",text:"Track your Personal Records over time. Select the ones you want from our extensive library.",show:{sure:"Are you sure you want to delete your Personal Record from {name}? Any information will be deleted and can't be restored.",table:{title:"Whoops",text:"Looks like you don`t have any data entries for the chosen range."}}}},calendar:{title:"No unallocated programs",text:"You don’t have any programs to add to your calendar right now. As you finish fixed length programs they’ll appear here ready to use again.",grid:{delete:"Are you sure you want to delete the part you've created? You will lose any information you've entered.",unsave:"You have unsaved changes. Do you want to leave and discard your changes?"}},plans:{programs:{title:"Your program library",text:"As you sign up to training programs they'll appear here. You'll need to be invited by a coach to a program, or find a link via a coach's public page.",info:"Accept or decline program invitations you've received."},layout:{title:"Your Program Library",text:"As you sign up to training programs they'll appear here. You'll need to be invited by a coach to a program, or find a link via a coach's public page."}},profile:{billing:{title:"Review and download your billing history.",billing_history:{title:"Transaction history",text:"Once you purchase a program, your history will appear here."},transactions:{title:"Billing history",text:"Once you purchase training programs, you can download your billing history here."},message:"Please add the relevant billing information to your account. This will appear on all invoices.",history:{info:"We have not been able to take a required payment from the following program(s):"}},info:{accounts:"You can connect to Facebook for log in purposes. We do not push any content from FITR to your Facebook account.",logout:"We'll save all your data until you next log in."},payment:{title:"Add payment information",text:"Link a card to your account so you can purchase training programs. Or, purchase using Apple Pay or Google Pay.",info:{title:"Payment information",text:"Due to regulations cards have to be attached to each coach independently. As a result, you may see duplicate cards across different coaches.",empty:{title:"No Payment Information",text:"Payment information will appear here once you have purchased a program from a coaching provider."}},tax:{title:"Tax",text:"Link your tax status, ID and code to your account. This is saved securely with Stripe. If you're unsure, leave this as default."}}},purchases:{title:"Checkout",payment:"Payment",add_new_method:"Add new payment method",summary:"Summary",free:"Free",restricted_access:"Restricted access, please contact coach",need_permission:"You do not have permission to access this program, please contact the coaching provider if you feel this is incorrect.",form:{question:{membership:"Choose your own start date and follow the programming from your calendar view. You’ll be able to always see a 7 days in advance.",fixed:"Choose your own start date after downloading the program and follow the programming from your calendar view.",bespoke:"Follow your programming from your calendar view. Future training visibility is set by your coach.",one_many:"Follow your programming from your calendar view. Future training visibility is set by your coach."},info:"Estimated conversion. Actual may differ.",trial_hint:"If you cancel before the end of your trial you will not be charged. If you don’t cancel we’ll automatically start a new billing cycle after your trial, rather than pro-rating the first payment.",success:"Your coupon code has been successfully accepted."}}},card_list:{hide_more:"Show less",show_more:"Show more",add_new_card:"Add new card"},update_your_profile_info:{title:"Update your profile info",client:{text:"Why are we asking you this? With the introduction of features such as leaderboards, doing so will let you refine results in more detail."},coach:{text:"Why are we asking you this?"}}},fh={header:"Upgrade your '{type}' account",sub_header:"For continued access to all our features, please upgrade your account below",annual_compared_to_monthly:"Charged on an annual basis. Saving when compared to monthly plan.",charged_at_end_of_trial:"First payment date will be",purchase_plan:"Complete purchase",blocked_page:{expired:{title:"Oops! Please upgrade your account",text:"To get unlimited access to FITR, upgrade your account"},start_trial:{block_1:{title:"What is your personal account?",text:"Every coach on FITR has a ‘personal account’. It allows you to create and link into multiple teams if you need to.",list:{title:"At no extra cost you can:",point1:"Edit general settings;",point2:"Manage invitations from other teams;",point3:"Switch between teams you’re a part of."},info:{line_1:"You <b>DON’T</b> need to activate your personal account trial to create or work in other teams.",line_2:"Switch accounts using the dropdown option from your profile picture.",line_3:'Need more help? <a href="https://intercom.help/fitr/en/articles/4781845-what-is-my-personal-account" target="_blank">Click here</a>.'}},block_2:{title:"When do I need to activate this trial?",text:"Activating the trial will let you:",list:{point1:"Create your own training programs;",point2:"Manage an independent client list by yourself; and",point3:"Link a new bank account."},info:{line_1:"Need to work with other coaches? Create a new team using the 'create new account' dropdown option from your profile picture.",line_2:"Remember, you <b>DON’T</b> need to activate the trial to create or work in other teams."}},alert:{price:"£49.99 / Month",text:"Transaction fees apply on program sales",button:"Start your 14 day trial"}},past_due:{title:"Your account is now restricted.",text:"Please upgrade to a paid plan to continue coaching on FITR."}},warnings:{clients_before_limit:"You're approaching the client limit of your plan. Please upgrade to increase your limit.",clients_limit:"You’ve reached the client limit of your plan. Please upgrade to increase your limit.",trial_has_expired:"Your trial period has expired, please upgrade your account to remove the restrictions.",trial_with_clients:"You have active clients and {left} left in your trial. Upgrade today and you’ll only be charged when your trial ends.",trial_without_clients:"You have {left} left in your trial. Upgrade today and you’ll only be charged when your trial ends.",renew_with_clients:"You will only have basic access to your clients from {date}. Renew now to avoid disruption.",renew_without_clients:"You have full access until {date}.",payment_failed:"A recent payment failed. Please check your ‘Billing’ page for information.",canceled:"You only have access to basic features. Upgrade today for unrestricted access!",for_invited:"'{name}' is currently restricted. Please contact the owner for information."},notify:{successfully_subscribed:"You have been successfully subscribed!",successfully_switched:"You have been successfully switched!"},tooltips:{transaction_fee:"A transaction fee of 5% will be applied when charging for your programs. This includes the payment processing fee paid directly to Stripe, and covers client billing and automatic bank transfers on your behalf."},payment_cant_be_completed:"Payment failed due to a card error, please retry.",plan_cant_be_completed:"Subscription failed due to a card error, please retry.",cancel_subscription:{title:"Cancel your plan?",with_clients:{text_1:"Your {plan} subscription will end on <b>{date}</b> and you still have active clients.",text_2:"After this date you can't create or sell programs (or deliver any for free) and you'll only have access to basic features to manage your current clients."},without_clients:{text_1:"Your {plan} subscription will end on <b>{date}</b>.",text_2:"After this date you can't create or sell programs (or deliver any for free) and you'll only have access to basic features to manage your current clients."},white_label:"{text} to customise the web platform, coach and client apps. All branding will return to FITR's default green",must_upgrade_to_the_unlimited:"If you wish to add White label in the future you must upgrade to the Unlimited plan.",skip_program_sales_page_creation:"The option to “Skip program sales page creation” is enabled for {count} of your programs. This option is only available with an active White label bolt-on subscription. If you unsubscribe, program links open the program sales page by default. Ensure that all of those pages are prepared - {link}."},brand_gym_is_restricted_popup:{title:"Your brand/gym/team is restricted",text:"This means you currently have limited access to the system as a connected coach. Please contact the brand/gym owner for further information."},manage:{header:"Manage your '{type}' account",sub_header:"Manage whether you want to pay monthly or get 2 months free when you pay annually."},switch_to_monthly_payments:{title:"Switch to monthly payments",text:"Are you sure? Your annual plan will be active until <b>{date}</b>. After this date we'll charge you based on the new pricing plan."}},vh={templates:{exclusive_content:"This exclusive content is reserved for affiliated HYROX Gyms and Trainers.",click_to_learn_more:"Click below to learn more.",learn_more:"Learn about HYROX affiliation and its benefits.",already_affiliated:"Already affiliated? Let us know via",live_chat:"live chat."}},yh={header:{title:"Choose your plan",tooltip:"After activating a plan below, you will still get the full benefit of your trial period."},trial_periods_ends:"Your trial period ends in",active_clients:"Your current number of active client:",most_popular:"BEST VALUE",clients_limit:{titleStarter:"5 х Active Clients",titlePro:"50 х Active Clients",title:"Unlimited Clients",tooltip:"An active client subscription is counted when a client subscribes to a monthly ongoing program."},max_downloads:{title:"Unlimited One-off Downloads",tooltip:"Fixed length programs are one-off programs that are downloaded by clients rather than being subscribed to over time. We don’t limit how many of these you sell or give away for free."},unlimited_programs:{title:"Unlimited Programs",tooltip:"Use our program builder to create your online training programs in a variety of formats such as one-off downloads, bespoke or group based training."},integrated_payments:{title:"Integrated Payments",tooltip:"Sell your programs for free, at a fixed price, or offer them on an ongoing subscription basis. Integrate with Stripe to receive the earnings directly into your bank account."},notes:{titleStarter:"1 x Coach Note Per Program",title:"Unlimited Coach Notes",tooltip:"Enhance your programming by saving notes for future reference. You and your coaching team can document key information such as injuries, equipment requirements, training days, workout ideas and more."},coaches:{title:"Add Coaches",titleUnlimited:"Unlimited Coaches",tooltip:"Invite other coaches to create programs and share in the management responsibilities of your remote fitness business."},tracks:{title:"Tracks",tooltip:"Create a single program with multiple tracks. Clients who purchase your program can easily switch between each variation at any time to access different styles of training, nutrition plans and schedules."},white_label:{titleStarter:"WHITE LABEL",alt:"White label",tooltip:"Customise the web and mobile app with your company branding & logo for you and your clients."},zapier_integration:{title:"integration",alt:"Zapier",tooltip:"Use Zapier to easily connect FITR to 5,000+ Apps, including tools you use every day."},subscription:{button:{resume:"Resume subscription",upgrade:"Upgrade",downgrade:{starter:"Downgrade to Starter",pro:"Downgrade to Pro",activate:"Activate"}}}},bh={title:"Create account or Log in",subtitle:"With a FITR client account you can follow programs from any coach that uses the platform. You don't need a new account per coach or program.",link:{create:{title:"Create a new client account",text:"I've never followed programming sent by any coach on FITR."},login:{title:"Log in",text:"I already have an account I can use to follow this program with."}}},gh={state:{init:"Init",unpaid:"Cancelled",resume:"Resume",scheduled:"Scheduled",active:"Active",trialing:"Trial",past:"Past",past_due:"Missed payment",canceled:"Cancelled",incomplete:"Incomplete",incomplete_expired:"Expired",canceledEOB:"Cancelled (EOB)"}},wh={individual:"1-2-1",fixed:"Fixed Length",one_many:"Group Rolling Calendar",membership:"Session 1, Day 1"},Ch={header:{enter_promotional:"Enter the promotional information about your program",exit_program:"Exit Program Creation",save_as_draft:"Save as draft",up_to_date:"Up to Date!",info_and_pricing:"Info & Pricing",sign_up_clients:"Sign up clients",start_programming:"Start programming",next:"Next",skip:"Skip",save_and_close:"Save & Close",exit:"Exit",program_creation:"program creation",tooltip:"Every program has a step by step process to get you up and running and programming for your clients quickly. You can always move back and forth."},attachment:{buttonText:"Add Resource"},overview:{title:"Overview"},description:{title:"Description",text:"Let prospective clients know all about your program and add any Resources to aid your sales pitch. These Resources will be available to all clients before they purchase the program and remain on this page only.",errors:{must_have:"Description must have at most {maxLength} letters."},placeholder:{fixed:"[Edit] Anyone who downloads this program will receive the program in full.",membership:"[Edit] Anyone who joins this program will start at session 1, day 1, week 1.",individual:"[Edit] You will be able to deliver 100% bespoke training to every client who's attached to this program. Create coupon codes to offer different clients different payment terms on the same program.",one_many:"[Edit] Anyone who joins this program will join the rest of the group and follow the same programming form that point on.",default:"Tell the world what your program is all about here…"}},sessions:{label:"Sessions per day",append:"Sessions",invalid:"Please Enter a Valid Sessions per day"},skip_sales_page:{label:"Skip program sales page creation",description_1:"Skip completing the program sales page below if you'd like clients to be taken directly to the checkout page after clicking the program URL.",description_2:"This is useful if you'd like to embed this program URL into your own website sales page.",learn_more:"Learn more"},tooltips:{program_type:"This can't be changed at this stage. Please create a new program if you need to.",currently_at:"This may be affected by a client's local timezone."},welcome_message:{title:"Welcome message",text:"Clients will receive this message and any attached Resources directly to their FITR inbox area on the App. How about inlcuding a video as a welcome to the program?",restore:"Restore default message.",customize:"Customise the message each new client will automatically receive to their inbox when they join this program.",default:"Thanks for joining{programName}"},waiver:{title:"Enable a pre-acceptance waiver?",options:{false:{label:"No",text:"Clients won't need to sign a waiver."},true:{label:"Yes",text:"Clients will sign a waiver and we'll store a log of this in their profile for your records."}}},visibility:{title:"Client training visibility",options:{day:"{day} day in advance",days:"{days} days in advance",unlimited:"Unlimited"}},accessibility:{title:"Accessibility",options:{false:{label:"Private",text:"Only those emails you place on the 'allowed' list will be able to access this program."},true:{label:"Public",text:"Everyone will be able to access this program."}}},storefront:{title:"Storefront visibility",options:{false:{label:"Hide from Storefront",text:"Your program will be hidden from your storefront and the public will not be able to find it without a link."},true:{label:"Show on Storefront",text:"Your program will be visible on your storefront for the public to find and join."}}},notification:{title:"Client performance notifications",options:{false:{label:"Mute notifications",text:"You will only receive notifications about sign ups/‌downloads and continued subscriptions and cancellations where applicable."},true:{label:"Show notifications",text:"You will receive all client notifications as well as  sign ups/‌downloads and continued subscriptions and cancellations where applicable."}}},copied_text:"✓ Copied to Clipboard",button:{programming:"Programming",more:"More"},list:{status:{empty:"Program empty",finished:"Program Finished",not_started:"Not Started",pending:{label:"Pending",tooltip:"Client's are 'Pending' when you manually add them, allowing you to prepare their program. Once ready, click 'Send program invite' to send a subscription link."},all_good:"All Good",days_left:"3 Days Left",deleted_user:"Deleted user",is_invalid:{label:"Invalid account",description:"Email registered as a coach",tooltip:"User registered as a coach and as a result cannot access the program."}}}},kh={cover_types:{table_view:{title:"Desktop / Table / Client App View",descr:"This is how your program cover media will look on a laptop, your table view and in the client app on the main calendar screen.",hint:"The optimum ratio for this area is <span class='text-nowrap'>'1 : 1'</span> <span class='text-nowrap'>(500px : 500px)</span>"},tiled_view:{title:"Tiled / Mobile view",descr:"This is how your cover media will appear on mobile and when we use the tiled view on your public page.",hint:"The optimum ratio for this area is <span class='text-nowrap'>'1.94 : 1'</span> <span class='text-nowrap'>(360px : 186px)</span>"}}},Sh={hint:"Customise the web address for your training programs and Storefront.",button:{reset:"Reset to FITR default",update:"Update"},warning_text_1:" Please configure a custom web address so that when clients access their web account or program links via this address, the site will update to show your branding, logos and colours.",warning_text_2:"Any links using app.fitr that you may have shared or used previously will still work, just without your colour scheme."},Ah={common:{more:"More",edit:"Edit",message:"Message",programming:"Programming",view_progress:"View progress"},program_list:{col_1:"Program",col_2:"Price",col_3:"Clients",col_4:"Status",col_5:"Actions",restore:"Restore",sub_actions:{edit:"Edit program",sign_up:"Sign up new clients",message:"Message the community",bulk:"Send bulk message",preview:"Client's preview",clients:"Clients",clone:"Clone",copy:"Copy to",archive:"Archive",delete:"Delete",unmute:"Unmute notifications",mute:"Mute notifications",block_downloads:"Block new downloads",block_subscriptions:"Block new subscriptions",available:"Make available"}},template_list:{col_1:"Name",col_2:{days:"No. of blocks",weeks:"No. of weeks"},col_3:"Last updated",col_4:"Actions",rename:"Rename",copy:"Copy to templates"},program_clients_list:{col_1:"Name",col_2:"Start date",col_3:"Currently at",col_4:"Actions",col_status:{default:"Status",past:"Client status",training:"Training status",invite:"Invite Status"},dates:{end_date:"End date",days_left_in_trial:"Days left in trial",dates_end_in_trial:"Days left in trial",projected_end_date:"Projected end date",training_programmed_to:"Training programmed to"},remove:"Remove Client From Program",cancel:"Cancel subscription",sub_actions:{remove:"Remove Client",training:"Add Training",reschedule:"Reschedule",edit:"Edit Client Info",message:"Send message"}},client_list:{col_1:"Name",col_2:"Mood",col_3:"Energy",col_4:"Completion %",col_5:"CLTV",col_6:"LT days",col_7:"Programs",col_8:"Days left",col_9:"Client status",col_10:"Program LTV",col_11:"Actions",review:"Review activity",sub_actions:{message:"Send Message",activity:"View Activity",resend:"Resend Invite",edit:"Edit Client Info",invite:"Invite to a Program",remove:"Remove Client",clear:"Clear all notifications"}},coaches_list:{col_1:"Coach",col_2:"Status",col_3:"Actions",status:{active:"Active",rejected:"Rejected",cancelled:"Cancelled",invited:"Invited"},resend:"Resend"},conversation_table:{mute:"Mute",unmute:"Unmute",sub_actions:{mark_as_read:"Mark as read",mark_as_unread:"Mark as unread",restore:"Restore",archive:"Archive",delete:"Delete"}},client_profile_table:{col_1:"Name",col_2:"Price",col_3:"Start date",col_4:"End date",col_5:"Schedule Status",col_6:"Actions",sub_actions:{open:"Open program",reschedule:"Reschedule",waiver:"Waiver acceptance",cancel:"Cancel Subscription"}},client_benchmark_table:{col_1:"Name",col_2:{score:"Latest Score",entry:"Latest Entry"},col_3:"Gain / Loss",col_4:"Media",col_5:"Notes",col_6:"Date",col_7:"Actions",col_des:"Description"},coupons_table:{col_1:"Coupon",col_2:"Duration",col_3:"Start / End Dates",col_4:"Times Used",col_5:"Program(s)",col_6:"Status",col_7:"Actions",copy:"Copy",deactivate:"Deactivate"},challenges_table:{col_1:"Challenge",col_2:"Score type",col_3:"Description",col_4:"Scores",col_5:"Actions",col_created:"Created by",owner:"Owner"},accounts_table:{col_1:"Account name",col_2:"Launch date",col_3:"Account status",col_4:"My role",col_5:"Actions",integration:"Integration",accept:"Accept",decline:"Decline",go_to_account:"Go to account"}},Ph={sidebar:{title:"Notes",close_btn:"Close",add_note:"Add note",add_new_note:"Add new note",hotkey:"or <b>‘Ctrl+Shift+N’</b> to quick add a new note",tooltip:"Adding notes is restricted. To unlock unlimited notes, please upgrade to the Pro or Unlimited plan."},notes_warning:{text:"You are on the Starter plan. Only the most recent note is visible. To view them all, please upgrade to the Pro or Unlimited plan.",btn:"Upgrade",note_restricted:"Note restricted!",notes_restricted:"Notes restricted!"},notes_alert:"Limited features are available on Starter. Find out more by viewing our",notes_alert_plan:"plans.",new_feature_modal:{title:"You can now add Notes!",text_1:"You can now add Notes to any program schedule.",text_2:"Get started by selecting the new Notes icon towards the top left of the screen.",checkbox_label:"Don't show me this again",close_btn:"Close",action_btn:"Learn more",list:{item_1:"Add Resources to your Notes.",item_2:"View Notes you’ve saved whilst programming.",item_3:"For Custom program clients, keep a Note of their injuries, equipment and goals.",item_4:"Save a Note for ideas you have for your group programs.",item_5:"Leave Notes for additional coaches on your account.",item_6:"Create as many Notes as you like (Starter plan limited to 1 Note)."}},note_item:{title_placeholder:"Note title",title_required:"Title is required.",title_min:"Min 2 Characters",title_max:"Max 64 Characters",save_btn:"Save",text_placeholder:"Add your note and attach any Resources.",body_max:"Max {max} Characters"}},Th={stripe:{setup:{success:{title:"Success!",text:"You're successfully connected to Stripe. You can now sell training programs through FITR.",link:"Check / update your Stripe connection"},note:{title:"Important note:",text:"For any future payment, payout or financial queries, please contact Stripe directly."},update:{title:"Update in FITR, not Stripe.",text:"Please refrain from updating any of the following in Stripe directly:",list:["Program pricing & information","Coupons","Subscriptions","Refunds","Customers","Products"],changes:{not_auto:"Changes will not automatically update in your FITR account if you do!",make_changes:"Please make any changes in FITR where possible to avoid any confusion and errors. We advise to use Stripe itself for its reporting functionality and if you need to speak to Stripe support for any payment/payout issues."}},connect:{title:"Connect with Stripe.",text:"Connect a Stripe account to FITR to start selling your programs through the platform.",icon_text:"Connect with Stripe"}},tax:{setting_up:"Automatic Tax Collection on Stripe",optional:"(Optional)",in_stripe:{text_1:"Stripe Tax will calculate, collect, and report tax on your clients payments. Automatically collect the right amount of tax and access the reports you need to file returns.",text_2:"Here’s how to setup automatic tax collection on Stripe:",list:{dashboard:{text_1:"Head to your",text_link:"Stripe Dashboard ",text_2:"to configure your tax settings."},set_up:{text_1:"Follow the instructions:",text_link:"Set up Stripe Tax."},activate:"Once you have completed the above steps, select the 'Activate Stripe tax' button below"}},buttons:{activate:{normal:"Activate Stripe tax",in_progress:"Activation in Progress",done:"Stripe tax activated"},deactivate:"Deactivate"}}}},$h={invalid_email_message:"Please enter a valid email address.",first_name_required:"First Name is required",last_name_required:"Last Name is required",track:{name_error:"Name field must contain less than 64 characters and can’t contain any of the following characters: / | \\ + = @ : < > ? ;",already_taken:"This name is already taken.",required:"Name is required"}},xh={modal_access_restricted:{title:"Access restricted",text_1:"Upgrade now to add multiple tracks to your clients' programming.",text_2:"If you've previously created multiple Tracks your clients can still access these, but to edit or add more you will need to upgrade.",text_3:"By upgrading to our Unlimited subscription, you will also gain access to White Label, Zapier integration, and monthly one-on-one account optimization calls.",learn_more:"Learn more.",btn_close:"Cancel",btn_ok:"Upgrade"},modal_max_tracks_reached:{title:"Maximum number of tracks reached",text:"You have 10 active tracks, which is the maximum allowed for this program.",btn_close:"Close"},modal_archive_track:{title:"Are you sure?",text_1:"Please confirm you want to archive {trackName} track.",text_2:"Clients will no longer have access to the track, but performance notes will still be available in their Workout History.",text_3:"You can restore an archived track at any time.",btn_close:"Cancel",btn_ok:"Yes, archive track"}},Ih={en:{header:eh,footer:th,home:ih,cookies_policy:ah,media:sh,modal:nh,plan_card:oh,plan_detail:rh,auth:{options:lh,role:ch,sign_up:dh,onboarding_type:bh},chat:uh,feed:ph,landing:hh,plan:_h,profile:mh,pricing:fh,hyrox:vh,choose_your_plan:yh,membership:gh,plan_type:wh,programs:Ch,cover:kh,webAddress:Sh,tables:Ah,notes:Ph,settings:Th,validation_errors:$h,schedule_tracks:xh,update_modal:{title:"New System Update",text_1:"You’re using an old version of FITR. To access new features, improvements and fixes, please select ‘Reload now’.",text_2:"Be sure to save anything you’re currently working on before reloading the site, as unsaved changes will be lost.",ok:"Reload now",cancel:"Cancel"}}};var tt={VITE_CLIENT_ID:"d0517fa4f15004110c85102f1fc01276ff4f3bc61b61e5c446b7c036784c03a2",VITE_CLIENT_SECRET:"eb5c98d3a8fe0e51101a5714683d6b3009b032e96ceb4ece0198f016bdb9bc04",VITE_API_PATH:"api/",VITE_APP_BASE:"https://app.fitr.training",VITE_API_BASE:"https://app.fitr.training",VITE_WS_BASE:"wss://app.fitr.training/cable",VITE_STRIPE_KEY:"pk_live_hqkiyfyTKIHknV0PFhP9q0sf",VITE_RECAPTCHA_SITE_KEY:"6LckYhcmAAAAALpqPuUV71bI8VlH2J5Nr5IoCwbq",VITE_INTERCOM_KEY:"ve9wtkqn",VITE_SENTRY_DSN:"https://7b1a17223e84ee9cacaedab97a14eff9@o4505680741597184.ingest.sentry.io/4505787285241856",VITE_SENTRY_ENVIRONMENT:"production",VITE_SENTRY_REPLAYS_SESSION_RATE:"0",VITE_SENTRY_REPLAYS_ERROR_RATE:"0",VITE_PROFITWELL_PUBLIC_API_TOKEN:"6abd22cccd4000af0c25a898839f31d8",VITE_COOKIEHUB_KEY:"fbaf42d3",VITE_SW_PRECACHE_VERSION:"cb74ced4",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};f.use(jt);f.use(Gt);f.use(Zt);f.use(Kt);f.use(Qt);f.use(Jt);f.use(Xt);f.use(ea);f.use(ta);f.use(aa);f.use(ia);f.use(sa);f.use(na);f.use(oa);f.use(ra);f.use(Ut);f.use(Ot);f.use(Dt);f.use(Yt,{refreshOnceOnNavigation:!0});f.use(Bt);f.use(Vt);f.use(Nt);f.use(Wt);f.use(ht);const Rh=zt.extendMoment(Ht);f.use(qt,{moment:Rh});f.component("SvgIcon",oe);f.prototype.$planTypes=wt;const Eh=new ht({locale:"en",messages:{en:Ih}}),Dh=parseFloat("0"),Fh=parseFloat("0");Pt({Vue:f,dsn:"https://7b1a17223e84ee9cacaedab97a14eff9@o4505680741597184.ingest.sentry.io/4505787285241856",debug:!!tt.VITE_SENTRY_DEBUG,environment:"production",enabled:!tt.VITE_SENTRY_DISABLED,integrations:[new Tt],replaysSessionSampleRate:Dh,replaysOnErrorSampleRate:Fh});f.config.ignoredElements=["zapier-zap-templates"];document.addEventListener("DOMContentLoaded",()=>{let t=new URL(document.location).searchParams;t.get("gclid")&&window.localStorage.setItem("gclid",t.get("gclid")),window.localStorage.getItem("access_token")&&!_.state.authenticated?(d.defaults.headers.common.Authorization=`${window.localStorage.getItem("token_type")} ${window.localStorage.getItem("access_token")}`,_.dispatch({type:"getCurrentUserInfo"}).then(()=>e()).catch(i=>{i.request.status!=0&&(d.defaults.headers.common.Authorization="",localStorage.removeItem("access_token"),localStorage.removeItem("token_type")),_.dispatch({type:"getAppCurrentTheme"}).then(()=>{e()}).catch(()=>{a()})})):(d.defaults.headers.common.Authorization="",_.dispatch({type:"getAppCurrentTheme"}).then(()=>{e()}).catch(()=>{a()}));function e(){console.log("initializeApp called! (cb74ced4)"),document.body.removeChild(document.getElementById("app-loading"));const i=document.body.appendChild(document.createElement("market"));window.FitrApp=new f({el:i,store:_,router:g,i18n:Eh,render:s=>s(Gp)}).$mount("#app")}function a(){document.body.removeChild(document.getElementById("app-loading"));const i=document.body.appendChild(document.createElement("market"));window.FitrApp=new f({el:i,render:s=>s(Xp)}).$mount("#app")}});export{I as A,$p as B,Tc as C,ne as D,$l as E,Sa as F,kp as G,m as H,re as I,mc as J,eo as K,tr as L,se as M,xa as N,wr as O,hl as P,Vo as Q,wo as R,Vr as S,uo as T,$ as U,ni as V,fr as W,on as X,O_ as Y,U_ as Z,vt as _,d as a,Kl as b,ka as c,no as d,_ as e,zo as f,n as g,kt as h,yl as i,wt as j,gt as k,kl as l,Hl as m,l as n,np as o,Ss as p,Ec as q,ur as r,P as s,Lr as t,T as u,oe as v,Cc as w,Bc as x,Pr as y,Rr as z};
