@xframework-ca-test/cli 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer-portal/android-chrome-192x192.png +0 -0
- package/dist/customer-portal/android-chrome-512x512.png +0 -0
- package/dist/customer-portal/apple-touch-icon.png +0 -0
- package/dist/customer-portal/assets/ActionLink-feb719a3.js +1 -0
- package/dist/customer-portal/assets/AdaptableCard-5bdf55ff.js +1 -0
- package/dist/customer-portal/assets/Alert-e6518529.js +1 -0
- package/dist/customer-portal/assets/Auth0Callback-a32aa0ee.js +1 -0
- package/dist/customer-portal/assets/BlankLayout-7d425a4f.js +1 -0
- package/dist/customer-portal/assets/Button-312a6bfe.js +1 -0
- package/dist/customer-portal/assets/Card-8badb238.js +1 -0
- package/dist/customer-portal/assets/Checkout-735fa664.js +1 -0
- package/dist/customer-portal/assets/ClassicLayout-43547087.js +1 -0
- package/dist/customer-portal/assets/Container-0271dbaa.js +1 -0
- package/dist/customer-portal/assets/CourseDetails-aa3fc18f.js +1 -0
- package/dist/customer-portal/assets/CourseService-150b9c3b.js +1 -0
- package/dist/customer-portal/assets/DeckedLayout-50b0b841.js +1 -0
- package/dist/customer-portal/assets/DocumentList-f286e322.js +367 -0
- package/dist/customer-portal/assets/FaqItems-f0ea3578.js +1 -0
- package/dist/customer-portal/assets/FormContainer-e0ad1074.js +1 -0
- package/dist/customer-portal/assets/HorizontalMenuContent-c2ce9ba4.js +1 -0
- package/dist/customer-portal/assets/Input-f9dc9df7.js +1 -0
- package/dist/customer-portal/assets/LogInAsUser-5301a711.js +1 -0
- package/dist/customer-portal/assets/LogInAsUserSuccess-c53d408d.js +1 -0
- package/dist/customer-portal/assets/Logo-aa883174.js +1 -0
- package/dist/customer-portal/assets/ModernLayout-fd6ab4e1.js +1 -0
- package/dist/customer-portal/assets/Password-6017abd1.js +1 -0
- package/dist/customer-portal/assets/PasswordInput-f6e74528.js +1 -0
- package/dist/customer-portal/assets/Preview-bcdcb9ef.js +1 -0
- package/dist/customer-portal/assets/Product-ed043f08.js +1 -0
- package/dist/customer-portal/assets/ProductsLayout-c61b7a8e.js +1 -0
- package/dist/customer-portal/assets/Profile-d747fa18.js +1 -0
- package/dist/customer-portal/assets/Roboto-300-18827349.woff +0 -0
- package/dist/customer-portal/assets/Roboto-300-1d8f5280.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-300-a6d343d4.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-400-47107401.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-400-79e85140.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-400-9ae9d654.woff +0 -0
- package/dist/customer-portal/assets/Roboto-500-4112fbc9.woff +0 -0
- package/dist/customer-portal/assets/Roboto-500-96025fe9.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-500-f205cc51.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-700-7d0b991e.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-700-8e44376b.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-700-b1767a0c.woff +0 -0
- package/dist/customer-portal/assets/SegmentItemOption-1228dbe0.js +1 -0
- package/dist/customer-portal/assets/Select-19bd23ac.js +27 -0
- package/dist/customer-portal/assets/SidePanelContent-0d8d0ddd.js +1 -0
- package/dist/customer-portal/assets/SimpleLayout-a34ce3d6.js +2 -0
- package/dist/customer-portal/assets/StackedSideLayout-d20fda92.js +1 -0
- package/dist/customer-portal/assets/SubscriptionService-ff0a4fe5.js +1 -0
- package/dist/customer-portal/assets/SvgIcon-8e59e50e.css +6 -0
- package/dist/customer-portal/assets/SvgIcon-e50d8824.js +1008 -0
- package/dist/customer-portal/assets/Switcher-4b56d286.js +1 -0
- package/dist/customer-portal/assets/Tag-0a3ddbe2.js +1 -0
- package/dist/customer-portal/assets/TicketService-0b9fd2cc.js +1 -0
- package/dist/customer-portal/assets/Upload-f16cbbc9.js +127 -0
- package/dist/customer-portal/assets/UserService-379fdae4.js +1 -0
- package/dist/customer-portal/assets/Views-7025458f.js +1 -0
- package/dist/customer-portal/assets/ar-bb9d99db.js +1 -0
- package/dist/customer-portal/assets/cloneDeep-958c9090.js +1 -0
- package/dist/customer-portal/assets/dash.all.min-5cea336e.js +21 -0
- package/dist/customer-portal/assets/dxicons-695e35c5.woff +0 -0
- package/dist/customer-portal/assets/dxicons-a7f2b877.woff2 +0 -0
- package/dist/customer-portal/assets/dxicons-ce18ad67.ttf +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-042942d9.woff2 +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-2ca243c8.woff +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-d53bccef.ttf +0 -0
- package/dist/customer-portal/assets/en-e8193568.js +1 -0
- package/dist/customer-portal/assets/es-74fe811a.js +1 -0
- package/dist/customer-portal/assets/get-e6d75ebc.js +1 -0
- package/dist/customer-portal/assets/hls-78bd63bc.js +40 -0
- package/dist/customer-portal/assets/index-108e74a4.js +1 -0
- package/dist/customer-portal/assets/index-21f8ea30.js +3146 -0
- package/dist/customer-portal/assets/index-39f1f77e.js +1 -0
- package/dist/customer-portal/assets/index-50d9ba0e.js +1 -0
- package/dist/customer-portal/assets/index-51020fda.js +1 -0
- package/dist/customer-portal/assets/index-59b78927.js +1 -0
- package/dist/customer-portal/assets/index-5ee26094.js +1 -0
- package/dist/customer-portal/assets/index-6300b1cb.js +1 -0
- package/dist/customer-portal/assets/index-64f43f5c.js +1 -0
- package/dist/customer-portal/assets/index-737fd7d3.js +173 -0
- package/dist/customer-portal/assets/index-7b067308.js +1 -0
- package/dist/customer-portal/assets/index-7fb11654.css +1 -0
- package/dist/customer-portal/assets/index-8017aaa8.js +1 -0
- package/dist/customer-portal/assets/index-91a81028.js +1 -0
- package/dist/customer-portal/assets/index-99f3e22d.js +1 -0
- package/dist/customer-portal/assets/index-a05b664a.js +9 -0
- package/dist/customer-portal/assets/index-b2e5d3b2.js +1 -0
- package/dist/customer-portal/assets/index-bba6cb11.js +1 -0
- package/dist/customer-portal/assets/index-cdf4c2fe.js +1 -0
- package/dist/customer-portal/assets/index-ce7c8371.js +9 -0
- package/dist/customer-portal/assets/index-d7b1d047.js +1 -0
- package/dist/customer-portal/assets/index-f3b18a56.js +1 -0
- package/dist/customer-portal/assets/index.esm-2becf208.js +4 -0
- package/dist/customer-portal/assets/index.esm-7fca4988.js +1 -0
- package/dist/customer-portal/assets/index.esm-d90c2f28.js +1 -0
- package/dist/customer-portal/assets/isEmpty-d6a6848e.js +1 -0
- package/dist/customer-portal/assets/mixin-cf90cd8a.js +43 -0
- package/dist/customer-portal/assets/moment-a9aaa855.js +10 -0
- package/dist/customer-portal/assets/myCourse-1e27ebf2.js +1 -0
- package/dist/customer-portal/assets/react-22b3ad73.js +32 -0
- package/dist/customer-portal/assets/react-27635538.js +27 -0
- package/dist/customer-portal/assets/react-35db633d.js +31 -0
- package/dist/customer-portal/assets/react-55737d69.js +44 -0
- package/dist/customer-portal/assets/react-5e997bd3.js +37 -0
- package/dist/customer-portal/assets/react-72b07884.js +16 -0
- package/dist/customer-portal/assets/react-a5b37028.js +29 -0
- package/dist/customer-portal/assets/react-cbdc2827.js +11 -0
- package/dist/customer-portal/assets/strongPassword-dc805a65.js +1 -0
- package/dist/customer-portal/assets/supportTicketLists-64ba33fc.js +1 -0
- package/dist/customer-portal/assets/ticketDetails-25fa14db.js +1 -0
- package/dist/customer-portal/assets/useControllableState-ed446800.js +1 -0
- package/dist/customer-portal/assets/useThemeClass-61b1bbbf.js +1 -0
- package/dist/customer-portal/assets/useTimeOutMessage-04464c25.js +1 -0
- package/dist/customer-portal/assets/warning-eb037686.js +1 -0
- package/dist/customer-portal/assets/zh-cn-9d3866aa.js +1 -0
- package/dist/customer-portal/browserconfig.xml +9 -0
- package/dist/customer-portal/config.js +12 -0
- package/dist/customer-portal/data/features.json +11423 -0
- package/dist/customer-portal/data/order-list.csv +15 -0
- package/dist/customer-portal/data/product-list.csv +13 -0
- package/dist/customer-portal/data/unemployment-by-county-2017.csv +3220 -0
- package/dist/customer-portal/favicon-16x16.png +0 -0
- package/dist/customer-portal/favicon-32x32.png +0 -0
- package/dist/customer-portal/favicon.ico +0 -0
- package/dist/customer-portal/img/avatars/thumb-1.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-10.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-11.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-12.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-13.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-14.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-15.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-16.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-2.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-3.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-4.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-5.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-6.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-7.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-8.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-9.jpg +0 -0
- package/dist/customer-portal/img/countries/ar.png +0 -0
- package/dist/customer-portal/img/countries/cn.png +0 -0
- package/dist/customer-portal/img/countries/fr.png +0 -0
- package/dist/customer-portal/img/countries/jp.png +0 -0
- package/dist/customer-portal/img/countries/sp.png +0 -0
- package/dist/customer-portal/img/countries/us.png +0 -0
- package/dist/customer-portal/img/email/email-logo.png +0 -0
- package/dist/customer-portal/img/icons/caCharts.svg +5396 -0
- package/dist/customer-portal/img/icons/caCounts.svg +10950 -0
- package/dist/customer-portal/img/icons/caGrids.svg +11059 -0
- package/dist/customer-portal/img/icons/caMaps.svg +10944 -0
- package/dist/customer-portal/img/icons/caPipelines.svg +11008 -0
- package/dist/customer-portal/img/icons/caStatus.svg +16718 -0
- package/dist/customer-portal/img/icons/caTargets.svg +10977 -0
- package/dist/customer-portal/img/icons/caTasks.svg +10995 -0
- package/dist/customer-portal/img/logo/Group.png +0 -0
- package/dist/customer-portal/img/logo/aica.svg +16 -0
- package/dist/customer-portal/img/logo/logo-dark-full.png +0 -0
- package/dist/customer-portal/img/logo/logo-dark-streamline.png +0 -0
- package/dist/customer-portal/img/logo/logo-grey.png +0 -0
- package/dist/customer-portal/img/logo/logo-light-full.png +0 -0
- package/dist/customer-portal/img/logo/logo-light-streamline.png +0 -0
- package/dist/customer-portal/img/logo/logo.svg +1 -0
- package/dist/customer-portal/img/map/pin-dark.png +0 -0
- package/dist/customer-portal/img/map/pin-orange.png +0 -0
- package/dist/customer-portal/img/map/pin-red.png +0 -0
- package/dist/customer-portal/img/others/auth-cover-bg.jpg +0 -0
- package/dist/customer-portal/img/others/auth-side-bg.jpg +0 -0
- package/dist/customer-portal/img/others/docs/blank-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/blank.jpg +0 -0
- package/dist/customer-portal/img/others/docs/classic-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/classic.jpg +0 -0
- package/dist/customer-portal/img/others/docs/decked-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/decked.jpg +0 -0
- package/dist/customer-portal/img/others/docs/modern-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/modern.jpg +0 -0
- package/dist/customer-portal/img/others/docs/simple-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/simple.jpg +0 -0
- package/dist/customer-portal/img/others/docs/stackedSide-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/stackedSide.jpg +0 -0
- package/dist/customer-portal/img/others/img-1.jpg +0 -0
- package/dist/customer-portal/img/others/img-10.png +0 -0
- package/dist/customer-portal/img/others/img-11.jpg +0 -0
- package/dist/customer-portal/img/others/img-13.jpg +0 -0
- package/dist/customer-portal/img/others/img-14.jpg +0 -0
- package/dist/customer-portal/img/others/img-15.jpg +0 -0
- package/dist/customer-portal/img/others/img-16.jpg +0 -0
- package/dist/customer-portal/img/others/img-17.png +0 -0
- package/dist/customer-portal/img/others/img-2-dark.png +0 -0
- package/dist/customer-portal/img/others/img-2.png +0 -0
- package/dist/customer-portal/img/others/img-8.png +0 -0
- package/dist/customer-portal/img/others/img-9.png +0 -0
- package/dist/customer-portal/img/others/no-mail-selected-dark.png +0 -0
- package/dist/customer-portal/img/others/no-mail-selected.png +0 -0
- package/dist/customer-portal/img/others/no-notification.png +0 -0
- package/dist/customer-portal/img/others/pending-approval-dark.png +0 -0
- package/dist/customer-portal/img/others/pending-approval.png +0 -0
- package/dist/customer-portal/img/others/upload-dark.png +0 -0
- package/dist/customer-portal/img/others/upload.png +0 -0
- package/dist/customer-portal/img/others/welcome-dark.png +0 -0
- package/dist/customer-portal/img/others/welcome.png +0 -0
- package/dist/customer-portal/img/products/product-1-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-1-3.jpg +0 -0
- package/dist/customer-portal/img/products/product-1-4.jpg +0 -0
- package/dist/customer-portal/img/products/product-1.jpg +0 -0
- package/dist/customer-portal/img/products/product-10.jpg +0 -0
- package/dist/customer-portal/img/products/product-11.jpg +0 -0
- package/dist/customer-portal/img/products/product-12.jpg +0 -0
- package/dist/customer-portal/img/products/product-2-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-3.jpg +0 -0
- package/dist/customer-portal/img/products/product-4.jpg +0 -0
- package/dist/customer-portal/img/products/product-5.jpg +0 -0
- package/dist/customer-portal/img/products/product-6.jpg +0 -0
- package/dist/customer-portal/img/products/product-7.jpg +0 -0
- package/dist/customer-portal/img/products/product-8.jpg +0 -0
- package/dist/customer-portal/img/products/product-9.jpg +0 -0
- package/dist/customer-portal/img/theme/bg_center_image.jpg +0 -0
- package/dist/customer-portal/img/theme/login_center.jpg +0 -0
- package/dist/customer-portal/img/theme/login_side.jpg +0 -0
- package/dist/customer-portal/img/theme/login_side_wide.jpg +0 -0
- package/dist/customer-portal/img/thumbs/adobe-xd.png +0 -0
- package/dist/customer-portal/img/thumbs/avalanche.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin-cash.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin-sv.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin.png +0 -0
- package/dist/customer-portal/img/thumbs/cardano.png +0 -0
- package/dist/customer-portal/img/thumbs/chainlink.png +0 -0
- package/dist/customer-portal/img/thumbs/doge.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-back-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-back.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-front-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-front.png +0 -0
- package/dist/customer-portal/img/thumbs/dropbox.png +0 -0
- package/dist/customer-portal/img/thumbs/eos.png +0 -0
- package/dist/customer-portal/img/thumbs/ethereum.png +0 -0
- package/dist/customer-portal/img/thumbs/figma.png +0 -0
- package/dist/customer-portal/img/thumbs/github.png +0 -0
- package/dist/customer-portal/img/thumbs/gitlab.png +0 -0
- package/dist/customer-portal/img/thumbs/google-drive.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-0-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-0.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-1-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-1.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-2-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-2.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-3-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-3.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-4-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-4.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-5-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-5.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-6-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-6.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-7-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-7.png +0 -0
- package/dist/customer-portal/img/thumbs/hubspot.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-back-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-back.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-front-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-front.png +0 -0
- package/dist/customer-portal/img/thumbs/jira.png +0 -0
- package/dist/customer-portal/img/thumbs/layouts/blank-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/blank.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/classic-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/classic.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/decked-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/decked.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/modern-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/modern.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/simple-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/simple.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/stackedSide-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/stackedSide.jpg +0 -0
- package/dist/customer-portal/img/thumbs/litecoin.png +0 -0
- package/dist/customer-portal/img/thumbs/miota.png +0 -0
- package/dist/customer-portal/img/thumbs/monero.png +0 -0
- package/dist/customer-portal/img/thumbs/notion.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-data-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-data.png +0 -0
- package/dist/customer-portal/img/thumbs/passport.png +0 -0
- package/dist/customer-portal/img/thumbs/polkadot.png +0 -0
- package/dist/customer-portal/img/thumbs/polygon.png +0 -0
- package/dist/customer-portal/img/thumbs/ripple.png +0 -0
- package/dist/customer-portal/img/thumbs/saleforce-crm.png +0 -0
- package/dist/customer-portal/img/thumbs/shiba-inu.png +0 -0
- package/dist/customer-portal/img/thumbs/sketch.png +0 -0
- package/dist/customer-portal/img/thumbs/slack.png +0 -0
- package/dist/customer-portal/img/thumbs/solana.png +0 -0
- package/dist/customer-portal/img/thumbs/stellar-lumens.png +0 -0
- package/dist/customer-portal/img/thumbs/tether-us.png +0 -0
- package/dist/customer-portal/img/thumbs/tron.png +0 -0
- package/dist/customer-portal/img/thumbs/zapier.png +0 -0
- package/dist/customer-portal/img/thumbs/zendesk.png +0 -0
- package/dist/customer-portal/img/video/bg-login.mp4 +0 -0
- package/dist/customer-portal/index.html +31 -0
- package/dist/customer-portal/logo192.png +0 -0
- package/dist/customer-portal/logo512.png +0 -0
- package/dist/customer-portal/manifest.json +20 -0
- package/dist/customer-portal/mstile-150x150.png +0 -0
- package/dist/customer-portal/robots.txt +3 -0
- package/dist/customer-portal/safari-pinned-tab.svg +70 -0
- package/dist/customer-portal/web.config +27 -0
- package/dist/ui/config.js +20 -16
- package/dist/ui/menudata/menus.json +606 -0
- package/index.bundle.js +72 -37
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as u,j as r,L as h}from"./index-737fd7d3.js";import{u as x}from"./useThemeClass-61b1bbbf.js";const N=a=>{const{children:s,className:m,themeColor:n=!0,to:e,reloadDocument:c,href:l="",...o}=a,{textTheme:i}=x(),t={className:u(n&&i,"hover:underline",m)};return e?r.jsx(h,{to:e,reloadDocument:c,...t,...o,children:s}):r.jsx("a",{href:l,...t,...o,children:s})};export{N as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as c,j as i,c as e,a1 as d}from"./index-737fd7d3.js";import{C as g}from"./Card-8badb238.js";const C=o=>{const{className:n,children:t,bodyClass:a,leftSideBorder:l,rightSideBorder:s,divider:b,shadow:m,isLastChild:u,...p}=o,r=c(y=>y.theme.layout.type);return i.jsx(g,{className:e(n,r===d&&"border-0",r===d&&s&&"ltr:border-r-0 rtl:border-l-0 ltr:md:border-r rtl:md:border-l md:border-gray-200 md:dark:border-gray-600 rounded-tr-none rounded-br-none rtl:rounded-tr-none rtl:rounded-br-none",r===d&&l&&"ltr:border-l-0 rtl:border-r-0 ltr:md:border-l rtl:md:border-r md:border-gray-200 md:dark:border-gray-600 rounded-tl-none rounded-bl-none rtl:rounded-tl-none rtl:rounded-bl-none",r===d&&b&&`${u?"":"pb-6"} py-4 md:border-gray-200 md:dark:border-gray-600 rounded-br-none rounded-bl-none`,r!==d&&m&&"rounded-none shadow-none border-0"),...p,bodyClass:e(r===d?"card-gutterless":"",a),children:t})},x=C;export{x as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as u,bF as v,c as A,j as e,bo as E,bG as H,bp as I,$ as D,bH as P,bI as R,bJ as Y}from"./index-737fd7d3.js";const m="warning",S={success:{backgroundColor:"bg-emerald-50 dark:bg-emerald-500",titleColor:"text-emerald-700 dark:text-emerald-50",textColor:"text-emerald-500 dark:text-emerald-50",iconColor:"text-emerald-400 dark:text-emerald-50",icon:e.jsx(D,{})},info:{backgroundColor:"bg-blue-50 dark:bg-blue-500",titleColor:"text-blue-700 dark:text-blue-100",textColor:"text-blue-500 dark:text-blue-100",iconColor:"text-blue-400 dark:text-blue-100",icon:e.jsx(P,{})},warning:{backgroundColor:"bg-yellow-50 dark:bg-yellow-500",titleColor:"text-yellow-700 dark:text-yellow-50",textColor:"text-yellow-500 dark:text-yellow-50",iconColor:"text-yellow-400 dark:text-yellow-50",icon:e.jsx(R,{})},danger:{backgroundColor:"bg-red-50 dark:bg-red-500",titleColor:"text-red-700 dark:text-red-100",textColor:"text-red-500 dark:text-red-100",iconColor:"text-red-400 dark:text-red-100",icon:e.jsx(Y,{})}},_=["success","danger","info","warning"],$=u.forwardRef((s,b)=>{const{children:C,className:g,closable:a=!1,customClose:y,customIcon:k,duration:n=3e3,title:o=null,onClose:l,rounded:f=!0,showIcon:i=!1,triggerByToast:p=!1,...w}=s,c=(()=>{const{type:t=m}=s;return _.includes(t)?t:m})(),r=S[c],[d,x]=u.useState("show"),{clear:h}=v(l,n,n>0),j=t=>{x("hiding"),l==null||l(t),h(),p||setTimeout(()=>{x("hide")},400)},T=()=>e.jsx("div",{className:"cursor-pointer",role:"presentation",onClick:t=>j(t),children:y||e.jsx(I,{defaultStyle:!1})}),N=A("alert","p-4 relative flex",r.backgroundColor,r.textColor,o?"":"font-semibold",a?"justify-between":"",a&&!o?"items-center":"",f&&"rounded-lg",g);return d==="hide"?null:e.jsxs(E.div,{ref:b,className:N,initial:{opacity:1},animate:d==="hiding"?"exit":"animate",transition:{duration:.25,type:"tween"},variants:{animate:{opacity:1},exit:{opacity:0}},...w,children:[e.jsxs("div",{className:`flex ${o?"":"items-center"}`,children:[i&&e.jsx(H,{iconColor:r.iconColor,custom:k,type:c}),e.jsxs("div",{className:i?"ltr:ml-2 rtl:mr-2":"",children:[o?e.jsx("div",{className:`font-semibold mb-1 ${r.titleColor}`,children:o}):null,C]})]}),a?T():null]})});$.displayName="Alert";export{$ as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as m,p as c,r as o,j as r,am as l,ar as e,as as s}from"./index-737fd7d3.js";import"./Alert-e6518529.js";import"./index-59b78927.js";import"./index-d7b1d047.js";import"./Button-312a6bfe.js";import"./index-91a81028.js";import"./Card-8badb238.js";import"./index-cdf4c2fe.js";import"./Tag-0a3ddbe2.js";import"./FormContainer-e0ad1074.js";import"./get-e6d75ebc.js";import"./Input-f9dc9df7.js";import"./Select-19bd23ac.js";import"./Switcher-4b56d286.js";import"./index-51020fda.js";import"./Upload-f16cbbc9.js";import"./AdaptableCard-5bdf55ff.js";import"./isEmpty-d6a6848e.js";import"./SvgIcon-e50d8824.js";import"./Container-0271dbaa.js";import"./SegmentItemOption-1228dbe0.js";import"./warning-eb037686.js";import"./index-a05b664a.js";import"./useControllableState-ed446800.js";import"./cloneDeep-958c9090.js";import"./index.esm-7fca4988.js";import"./useThemeClass-61b1bbbf.js";const H=()=>{const a=m(),{signInExternal:n}=c(),[p,t]=o.useState(!1),i=new URLSearchParams(window.location.search).get("code");return o.useEffect(()=>{(async()=>{if(i){t(!0);try{await n(4,i),t(!1)}catch{e.push(r.jsx(s,{title:"Login Failed",type:"danger",duration:3e3,children:"There was an issue signing in. Please try again."}),{placement:"top-center"}),a("/sign-in"),t(!1)}}else e.push(r.jsx(s,{title:"Error",type:"danger",duration:2500,children:"No authorization code provided."}),{placement:"top-center"}),a("/sign-in"),t(!1)})()},[i]),r.jsx("div",{children:r.jsx(l,{loading:p})})};export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as c,u as r,j as e,c as m,q as d,w as i}from"./index-737fd7d3.js";import{V as u}from"./Views-7025458f.js";import{D as f}from"./index-d7b1d047.js";import{w as C,S as j}from"./SidePanelContent-0d8d0ddd.js";import"./Container-0271dbaa.js";import"./Select-19bd23ac.js";import"./warning-eb037686.js";import"./isEmpty-d6a6848e.js";import"./get-e6d75ebc.js";import"./Button-312a6bfe.js";import"./useControllableState-ed446800.js";import"./Switcher-4b56d286.js";import"./SegmentItemOption-1228dbe0.js";import"./useThemeClass-61b1bbbf.js";const w=l=>{const s=c(),{className:a,...o}=l,p=r(t=>t.theme.panelExpand),x=r(t=>t.theme.direction),h=()=>{s(i(!0))},n=()=>{s(i(!1));const t=document.body.classList;t.contains("drawer-lock-scroll")&&t.remove("drawer-lock-scroll","drawer-open")};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:m("text-2xl",a),onClick:h,...o,children:e.jsx(d,{})}),e.jsx(f,{title:"Theme Config",isOpen:p,placement:x==="rtl"?"left":"right",portalClassName:"w30 mobilePortal",onClose:n,onRequestClose:n,children:e.jsx(j,{callBackClose:n})})]})},g=C(w),b=()=>{const l=c(),s=r(o=>o.theme.themeColor),a=r(o=>o.theme.primaryColorLevel);return e.jsx("div",{className:m("fixed ltr:right-0 rtl:left-0 top-96 p-3 ltr:rounded-tl-md ltr:rounded-bl-md rtl:rounded-tr-md rtl:rounded-br-md text-white text-xl cursor-pointer select-none",`bg-${s}-${a}`),onClick:()=>{l(i(!0))},children:e.jsx(d,{})})},R=()=>e.jsxs("div",{className:"app-layout-blank flex flex-auto flex-col h-[100vh]",children:[e.jsx(u,{}),e.jsx(b,{}),e.jsx(g,{className:"hidden"})]});export{R as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as g,bq as V,c as d,j as n,br as s,bs as v,bK as z}from"./index-737fd7d3.js";const f=g.createContext(null),ne=f.Provider,ae=f.Consumer;function W(){return g.useContext(f)}const y=g.createContext(null),se=y.Provider,ce=y.Consumer;function Y(){return g.useContext(y)}function ee(c){const l=["50","100","200","300","400","500","600","700","800","900"],t=l.indexOf(c==null?void 0:c.toString());function x(i){if(t===0||t===l.length-1)return c;if(i==="decrement")return l[t-1];if(i==="increment")return l[t+1]}const o=x("decrement");return[x("increment"),o]}const re=g.forwardRef((c,l)=>{var S,L;const{active:t=!1,block:x=!1,children:o,className:$,color:i="",disabled:h,icon:a,loading:u=!1,shape:N="round",size:I,variant:F="default",...G}=c,{themeColor:B,controlSize:T,primaryColorLevel:E}=V(),P=(S=W())==null?void 0:S.size,O=(L=Y())==null?void 0:L.size,R="button",C="inline-flex items-center justify-center",k=(i==null?void 0:i.split("-"))||[],Z=I||O||P||T,r=k[0]||B,p=k[1]||E,[j,q]=ee(p),D=()=>{let e="";switch(Z){case v.LG:e=d(`h-${s.lg}`,a&&!o?`w-${s.lg} ${C} text-2xl`:"px-8 py-2 text-base");break;case v.SM:e=d(`h-${s.sm}`,a&&!o?`w-${s.sm} ${C} text-lg`:"px-3 py-2 text-sm");break;case v.XS:e=d(`h-${s.xs}`,a&&!o?`w-${s.xs} ${C} text-base`:"px-3 py-1 text-xs");break;default:e=d(`h-${s.md}`,a&&!o?`w-${s.md} ${C} text-xl`:"px-8 py-2");break}return e},K="opacity-50 cursor-not-allowed",M=()=>{const e={bgColor:t?`bg-${r}-${j}`:`bg-${r}-${p}`,textColor:"text-white",hoverColor:t?"":`hover:bg-${r}-${q}`,activeColor:`active:bg-${r}-${j}`};return m(e)},X=()=>{const e={bgColor:t?`bg-${r}-200 dark:bg-${r}-50`:`bg-${r}-50 dark:bg-${r}-500 dark:bg-opacity-20`,textColor:`text-${r}-${p} dark:text-${r}-50`,hoverColor:t?"":`hover:bg-${r}-100 dark:hover:bg-${r}-500 dark:hover:bg-opacity-30`,activeColor:`active:bg-${r}-200 dark:active:bg-${r}-500 dark:active:bg-opacity-40`};return m(e)},w=()=>m({bgColor:t?"bg-gray-100 border border-gray-300 dark:bg-gray-500 dark:border-gray-500":"bg-white border border-gray-300 dark:bg-gray-700 dark:border-gray-700",textColor:"text-gray-600 dark:text-gray-100",hoverColor:t?"":"hover:bg-gray-50 dark:hover:bg-gray-600",activeColor:"active:bg-gray-100 dark:active:bg-gray-500 dark:active:border-gray-500"}),_=()=>m({bgColor:t?"bg-gray-100 dark:bg-gray-500":"bg-transparent border border-transparent",textColor:"text-gray-600 dark:text-gray-100",hoverColor:t?"":"hover:bg-gray-50 dark:hover:bg-gray-600",activeColor:"active:bg-gray-100 dark:active:bg-gray-500 dark:active:border-gray-500"}),m=({bgColor:e,hoverColor:b,activeColor:Q,textColor:U})=>`${e} ${h||u?K:b+" "+Q} ${U}`,A=d(R,(()=>{switch(F){case"solid":return M();case"twoTone":return X();case"plain":return _();case"default":return w();default:return w()}})(),`radius-${N}`,D(),$,x?"w-full":""),H=e=>{const{onClick:b}=c;if(h||u){e.preventDefault();return}b==null||b(e)},J=()=>u&&o?n.jsxs("span",{className:"flex items-center justify-center",children:[n.jsx(z,{enableTheme:!1,className:"mr-1"}),o]}):a&&!o&&u?n.jsx(z,{enableTheme:!1}):a&&!o&&!u?n.jsx(n.Fragment,{children:a}):a&&o&&!u?n.jsxs("span",{className:"flex items-center justify-center",children:[n.jsx("span",{className:"text-lg",children:a}),n.jsx("span",{className:"ltr:ml-1 rtl:mr-1",children:o})]}):n.jsx(n.Fragment,{children:o});return n.jsx("button",{ref:l,className:A,...G,onClick:H,children:J()})});re.displayName="Button";export{re as B,ne as F,se as I,Y as a,ce as b,ae as c,W as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as k,bq as w,c as s,j as r}from"./index-737fd7d3.js";const F=k.forwardRef((c,t)=>{const{cardBordered:n}=w(),{children:l,className:i,clickable:h=!1,bodyClass:f,bordered:x=n||!1,header:e,headerClass:C,headerBorder:m=!0,headerExtra:a,footer:o,footerClass:j,footerBorder:p=!0,onClick:d,...u}=c,b=s("card",i,x?"card-border":"card-shadow",h&&"cursor-pointer user-select-none"),N=s("card-body",f),y=s("card-header",m&&"card-header-border",a&&"card-header-extra",C),v=s("card-footer",p&&"card-footer-border",j),B=()=>typeof e=="string"?r.jsx("h4",{children:e}):r.jsx(r.Fragment,{children:e}),g=E=>{d==null||d(E)};return r.jsxs("div",{ref:t,className:b,role:"presentation",onClick:g,...u,children:[e&&r.jsxs("div",{className:y,children:[B(),a&&r.jsx("span",{children:a})]}),r.jsx("div",{className:N,children:l}),o&&r.jsx("div",{className:v,children:o})]})});F.displayName="Card";export{F as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aA as g,r as p,O as w,j as e}from"./index-737fd7d3.js";import{A as x}from"./Alert-e6518529.js";import"./index-59b78927.js";import"./index-d7b1d047.js";import{B as h}from"./Button-312a6bfe.js";import"./index-91a81028.js";import"./Card-8badb238.js";import"./index-cdf4c2fe.js";import"./Tag-0a3ddbe2.js";import"./FormContainer-e0ad1074.js";import"./get-e6d75ebc.js";import"./Input-f9dc9df7.js";import"./Select-19bd23ac.js";import"./Switcher-4b56d286.js";import"./index-51020fda.js";import"./Upload-f16cbbc9.js";import{b as C}from"./SubscriptionService-ff0a4fe5.js";import"./warning-eb037686.js";import"./index-a05b664a.js";import"./useControllableState-ed446800.js";import"./cloneDeep-958c9090.js";import"./isEmpty-d6a6848e.js";import"./index.esm-7fca4988.js";const f="decrypt-32-byte-secret-key-here!";async function b(l,n=f){try{const r=new TextEncoder,o=l.replace(/-/g,"+").replace(/_/g,"/"),i=o.padEnd(o.length+(4-o.length%4)%4,"="),a=Uint8Array.from(atob(i),c=>c.charCodeAt(0)),t=r.encode(n),m=await crypto.subtle.importKey("raw",t,{name:"AES-CBC"},!1,["decrypt"]),d=new Uint8Array(16),u=await crypto.subtle.decrypt({name:"AES-CBC",iv:d},m,a);return new TextDecoder().decode(u)}catch(r){throw console.error("Decryption error:",r),new Error("Failed to decrypt data")}}const V=()=>{const[l]=g(),n=l.get("priceId"),[r,o]=p.useState(!1),[i,a]=p.useState(""),[t,m]=p.useState(null),d=w();p.useEffect(()=>{if(!n){a("No price ID provided. Please select a plan first.");return}(async()=>{try{const s=await b(n,f),c=JSON.parse(s);m(c)}catch{a("Failed to decode checkout payload")}})()},[n]);const u=async()=>{var s,c;if(t!=null&&t.priceId){o(!0),a("");try{const y=await C({priceId:t.priceId});window.location.href=y.data.url}catch(y){a(((c=(s=y.response)==null?void 0:s.data)==null?void 0:c.message)||"Failed to create checkout session")}finally{o(!1)}}};return t!=null&&t.priceId?e.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-2xl",children:[e.jsx("h1",{className:"text-3xl font-bold mb-6",children:"Checkout"}),i&&e.jsx(x,{type:"danger",showIcon:!0,className:"mb-6",children:i}),e.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg mb-6",children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Order Summary"}),e.jsx("p",{className:"text-gray-600",children:"You are about to purchase a subscription plan. You will be redirected to Stripe to complete your payment."})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(h,{variant:"default",onClick:()=>{t.isCMS?window.location.href="/#pricing":d("/products")},disabled:r,children:"Cancel"}),e.jsx(h,{variant:"solid",loading:r,onClick:u,children:"Proceed to Payment"})]})]}):e.jsxs("div",{className:"container mx-auto px-4 py-8",children:[e.jsx(x,{type:"danger",showIcon:!0,children:i||"Invalid checkout request"}),e.jsx(h,{className:"mt-4",onClick:()=>d("/products"),children:"Back to Plans"})]})};export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as Re,d as xe,r as g,_ as q,e as K,f as J,h as Be,i as Ue,j as r,c as D,k as _e,l as Ge,m as qe,u as j,n as je,s as Je,o as Qe,D as Xe,N as G,p as Ye,R as ye,L as V,q as Ze,t as et,v as tt,w as se,G as P,x as nt,y as oe,z as rt,A as at,C as st,E as ot,F as it,I as lt,J as ct,K as ut,M as be,O as dt,Q as ie,S as pt,T as ft,U as le,V as ce,W as mt,X as ht,P as gt,a as vt}from"./index-737fd7d3.js";import{w as Q,S as xt}from"./SidePanelContent-0d8d0ddd.js";import{D as Ne}from"./index-d7b1d047.js";import{A as jt,B as yt,T as bt}from"./index-59b78927.js";import{D as $,a as X,S as Nt}from"./index-91a81028.js";import{F as Ot}from"./index.esm-7fca4988.js";import"./Alert-e6518529.js";import"./Button-312a6bfe.js";import"./Card-8badb238.js";import"./index-cdf4c2fe.js";import"./Tag-0a3ddbe2.js";import"./FormContainer-e0ad1074.js";import"./get-e6d75ebc.js";import"./Input-f9dc9df7.js";import{_ as Y,a as wt}from"./Select-19bd23ac.js";import"./Switcher-4b56d286.js";import"./index-51020fda.js";import"./Upload-f16cbbc9.js";import{L as Oe}from"./Logo-aa883174.js";import{V as Mt}from"./Views-7025458f.js";var Ct={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const kt=Re(Ct);var St=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function ue(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(kt[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var a=e.indexOf("-->");return{type:"comment",comment:a!==-1?e.slice(4,a):""}}for(var i=new RegExp(St),o=null;(o=i.exec(e))!==null;)if(o[0].trim())if(o[1]){var s=o[1].trim(),f=[s,""];s.indexOf("=")>-1&&(f=s.split("=")),t.attrs[f[0]]=f[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var Et=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Lt=/^\s*$/,$t=Object.create(null);function we(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var a=[];for(var i in n)a.push(i+'="'+n[i]+'"');return a.length?" "+a.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(we,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var At={parse:function(e,t){t||(t={}),t.components||(t.components=$t);var n,a=[],i=[],o=-1,s=!1;if(e.indexOf("<")!==0){var f=e.indexOf("<");a.push({type:"text",content:f===-1?e:e.substring(0,f)})}return e.replace(Et,function(l,y){if(s){if(l!=="</"+n.name+">")return;s=!1}var d,N=l.charAt(1)!=="/",h=l.startsWith("<!--"),c=y+l.length,p=e.charAt(c);if(h){var L=ue(l);return o<0?(a.push(L),a):((d=i[o]).children.push(L),a)}if(N&&(o++,(n=ue(l)).type==="tag"&&t.components[n.name]&&(n.type="component",s=!0),n.voidElement||s||!p||p==="<"||n.children.push({type:"text",content:e.slice(c,e.indexOf("<",c))}),o===0&&a.push(n),(d=i[o-1])&&d.children.push(n),i[o]=n),(!N||n.voidElement)&&(o>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(o--,n=o===-1?a:i[o]),!s&&p!=="<"&&p)){d=o===-1?a:i[o].children;var u=e.indexOf("<",c),w=e.slice(c,u===-1?void 0:u);Lt.test(w)&&(w=" "),(u>-1&&o+d.length>=0||w!==" ")&&d.push({type:"text",content:w})}}),a},stringify:function(e){return e.reduce(function(t,n){return t+we("",n)},"")}};function F(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var de={};function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&de[t[0]]||(typeof t[0]=="string"&&(de[t[0]]=new Date),F.apply(void 0,t))}var Me=function(t,n){return function(){if(t.isInitialized)n();else{var a=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",a)}}};function pe(e,t,n){e.loadNamespaces(t,Me(e,n))}function fe(e,t,n,a){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Me(e,a))}function Pt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var s=function(l,y){var d=t.services.backendConnector.state["".concat(l,"|").concat(y)];return d===-1||d===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(a,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(a,e)&&(!i||s(o,e)))}function It(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return W("i18n.languages were undefined or empty",t.languages),!0;var a=t.options.ignoreJSONStructure!==void 0;return a?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):Pt(e,t,n)}var Tt=["format"],Kt=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?me(Object(n),!0).forEach(function(a){q(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function B(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function U(e){return e?e.props?e.props.children:e.children:[]}function Ht(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(function(t){return g.isValidElement(t)})}function z(e){return Array.isArray(e)?e:[e]}function zt(e,t){var n=M({},t);return n.props=Object.assign(e.props,t.props),n}function Ce(e,t){if(!e)return"";var n="",a=z(e),i=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return a.forEach(function(o,s){if(typeof o=="string")n+="".concat(o);else if(g.isValidElement(o)){var f=Object.keys(o.props).length,l=i.indexOf(o.type)>-1,y=o.props.children;if(!y&&l&&f===0)n+="<".concat(o.type,"/>");else if(!y&&(!l||f!==0))n+="<".concat(s,"></").concat(s,">");else if(o.props.i18nIsDynamicList)n+="<".concat(s,"></").concat(s,">");else if(l&&f===1&&typeof y=="string")n+="<".concat(o.type,">").concat(y,"</").concat(o.type,">");else{var d=Ce(y,t);n+="<".concat(s,">").concat(d,"</").concat(s,">")}}else if(o===null)F("Trans: the passed in value is invalid - seems you passed in a null child.");else if(K(o)==="object"){var N=o.format,h=Y(o,Tt),c=Object.keys(h);if(c.length===1){var p=N?"".concat(c[0],", ").concat(N):c[0];n+="{{".concat(p,"}}")}else F("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",o)}else F("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",o)}),n}function Dt(e,t,n,a,i,o){if(t==="")return[];var s=a.transKeepBasicHtmlNodesFor||[],f=t&&new RegExp(s.join("|")).test(t);if(!e&&!f)return[t];var l={};function y(u){var w=z(u);w.forEach(function(v){typeof v!="string"&&(B(v)?y(U(v)):K(v)==="object"&&!g.isValidElement(v)&&Object.assign(l,v))})}y(e);var d=At.parse("<0>".concat(t,"</0>")),N=M(M({},l),i);function h(u,w,v){var b=U(u),k=p(b,w.children,v);return Ht(b)&&k.length===0?b:k}function c(u,w,v,b,k){u.dummy&&(u.children=w),v.push(g.cloneElement(u,M(M({},u.props),{},{key:b}),k?void 0:w))}function p(u,w,v){var b=z(u),k=z(w);return k.reduce(function(O,m,E){var S=m.children&&m.children[0]&&m.children[0].content&&n.services.interpolator.interpolate(m.children[0].content,N,n.language);if(m.type==="tag"){var C=b[parseInt(m.name,10)];!C&&v.length===1&&v[0][m.name]&&(C=v[0][m.name]),C||(C={});var x=Object.keys(m.attrs).length!==0?zt({props:m.attrs},C):C,A=g.isValidElement(x),R=A&&B(m,!0)&&!m.voidElement,Te=f&&K(x)==="object"&&x.dummy&&!A,Ke=K(e)==="object"&&e!==null&&Object.hasOwnProperty.call(e,m.name);if(typeof x=="string"){var He=n.services.interpolator.interpolate(x,N,n.language);O.push(He)}else if(B(x)||R){var ze=h(x,m,v);c(x,ze,O,E)}else if(Te){var De=p(b,m.children,v);O.push(g.cloneElement(x,M(M({},x.props),{},{key:E}),De))}else if(Number.isNaN(parseFloat(m.name)))if(Ke){var Fe=h(x,m,v);c(x,Fe,O,E,m.voidElement)}else if(a.transSupportBasicHtmlNodes&&s.indexOf(m.name)>-1)if(m.voidElement)O.push(g.createElement(m.name,{key:"".concat(m.name,"-").concat(E)}));else{var We=p(b,m.children,v);O.push(g.createElement(m.name,{key:"".concat(m.name,"-").concat(E)},We))}else if(m.voidElement)O.push("<".concat(m.name," />"));else{var Ve=p(b,m.children,v);O.push("<".concat(m.name,">").concat(Ve,"</").concat(m.name,">"))}else if(K(x)==="object"&&!A){var ne=m.children[0]?S:null;ne&&O.push(ne)}else m.children.length===1&&S?O.push(g.cloneElement(x,M(M({},x.props),{},{key:E}),S)):O.push(g.cloneElement(x,M(M({},x.props),{},{key:E})))}else if(m.type==="text"){var re=a.transWrapTextNodes,ae=o?a.unescape(n.services.interpolator.interpolate(m.content,N,n.language)):n.services.interpolator.interpolate(m.content,N,n.language);re?O.push(g.createElement(re,{key:"".concat(m.name,"-").concat(E)},ae)):O.push(ae)}return O},[])}var L=p([{dummy:!0,children:e||[]}],d,z(e||[]));return U(L[0])}function Ft(e){var t=e.children,n=e.count,a=e.parent,i=e.i18nKey,o=e.context,s=e.tOptions,f=s===void 0?{}:s,l=e.values,y=e.defaults,d=e.components,N=e.ns,h=e.i18n,c=e.t,p=e.shouldUnescape,L=Y(e,Kt),u=h||J();if(!u)return W("You will need to pass in an i18next instance by using i18nextReactModule"),t;var w=c||u.t.bind(u)||function(R){return R};o&&(f.context=o);var v=M(M({},xe()),u.options&&u.options.react),b=N||w.ns||u.options&&u.options.defaultNS;b=typeof b=="string"?[b]:b||["translation"];var k=y||Ce(t,v)||v.transEmptyNodeValue||i,O=v.hashTransKey,m=i||(O?O(k):k),E=l?f.interpolation:{interpolation:M(M({},f.interpolation),{},{prefix:"#$?",suffix:"?$#"})},S=M(M(M(M({},f),{},{count:n},l),E),{},{defaultValue:k,ns:b}),C=m?w(m,S):k,x=Dt(d||t,C,u,v,S,p),A=a!==void 0?a:v.defaultTransParent;return A?g.createElement(A,L,x):x}var ke=g.createContext(),Wt=function(){function e(){Ue(this,e),this.usedNamespaces={}}return Be(e,[{key:"addUsedNamespaces",value:function(n){var a=this;n.forEach(function(i){a.usedNamespaces[i]||(a.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),Vt=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(a){q(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function H(e){var t=e.children,n=e.count,a=e.parent,i=e.i18nKey,o=e.context,s=e.tOptions,f=s===void 0?{}:s,l=e.values,y=e.defaults,d=e.components,N=e.ns,h=e.i18n,c=e.t,p=e.shouldUnescape,L=Y(e,Vt),u=g.useContext(ke)||{},w=u.i18n,v=u.defaultNS,b=h||w||J(),k=c||b&&b.t.bind(b);return Ft(Rt({children:t,count:n,parent:a,i18nKey:i,context:o,tOptions:f,values:l,defaults:y,components:d,ns:N||k&&k.ns||v||b&&b.options&&b.options.defaultNS,i18n:b,t:c,shouldUnescape:p},L))}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ge(Object(n),!0).forEach(function(a){q(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var Bt=function(t,n){var a=g.useRef();return g.useEffect(function(){a.current=n?a.current:t},[t,n]),a.current};function Se(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,a=g.useContext(ke)||{},i=a.i18n,o=a.defaultNS,s=n||i||J();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Wt),!s){W("You will need to pass in an i18next instance by using initReactI18next");var f=function(C,x){return typeof x=="string"?x:x&&K(x)==="object"&&typeof x.defaultValue=="string"?x.defaultValue:Array.isArray(C)?C[C.length-1]:C},l=[f,{},!1];return l.t=f,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&W("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var y=_(_(_({},xe()),s.options.react),t),d=y.useSuspense,N=y.keyPrefix,h=e||o||s.options&&s.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(h);var c=(s.isInitialized||s.initializedStoreOnce)&&h.every(function(S){return It(S,s,y)});function p(){return s.getFixedT(t.lng||null,y.nsMode==="fallback"?h:h[0],N)}var L=g.useState(p),u=wt(L,2),w=u[0],v=u[1],b=h.join();t.lng&&(b="".concat(t.lng).concat(b));var k=Bt(b),O=g.useRef(!0);g.useEffect(function(){var S=y.bindI18n,C=y.bindI18nStore;O.current=!0,!c&&!d&&(t.lng?fe(s,t.lng,h,function(){O.current&&v(p)}):pe(s,h,function(){O.current&&v(p)})),c&&k&&k!==b&&O.current&&v(p);function x(){O.current&&v(p)}return S&&s&&s.on(S,x),C&&s&&s.store.on(C,x),function(){O.current=!1,S&&s&&S.split(" ").forEach(function(A){return s.off(A,x)}),C&&s&&C.split(" ").forEach(function(A){return s.store.off(A,x)})}},[s,b]);var m=g.useRef(!0);g.useEffect(function(){O.current&&!m.current&&v(p),m.current=!1},[s,N]);var E=[w,s,c];if(E.t=w,E.i18n=s,E.ready=c,c||!c&&!d)return E;throw new Promise(function(S){t.lng?fe(s,t.lng,h,function(){return S()}):pe(s,h,function(){return S()})})}const Ut=e=>{const{headerStart:t,headerEnd:n,headerMiddle:a,className:i,container:o}=e;return r.jsx("header",{className:D("header",i),children:r.jsxs("div",{className:D("header-wrapper",_e,o&&"container mx-auto"),children:[r.jsx("div",{className:"header-action header-action-start",children:t}),a&&r.jsx("div",{className:"header-action header-action-middle",children:a}),r.jsx("div",{className:"header-action header-action-end",children:n})]})})},I={xs:"576",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},T=(e="")=>parseInt(e.replace("px","")),_t={"2xl":T(I["2xl"]),xl:T(I.xl),lg:T(I.lg),md:T(I.md),sm:T(I.sm),xs:T(I.xs)},Z=()=>{const e=(o="smaller")=>{const s=window.innerWidth;return Object.fromEntries(Object.entries(_t).map(([f,l])=>[f,o==="larger"?s>l:s<l]))},t=()=>({windowWidth:window.innerWidth,larger:e("larger"),smaller:e("smaller")}),[n,a]=g.useState(t()),i=()=>{const o=t();a(o)};return g.useEffect(()=>(window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)),[n.windowWidth]),n},Ee=({toggled:e,className:t})=>r.jsx("div",{className:t,children:e?r.jsx(Ge,{}):r.jsx(qe,{})}),Gt=({className:e})=>{const t=j(o=>o.theme.layout.sideNavCollapse),n=je(),{larger:a}=Z(),i=()=>{n(Je(!t))};return r.jsx(r.Fragment,{children:a.md&&r.jsx("div",{className:e,onClick:i,children:r.jsx(Ee,{className:"text-2xl",toggled:t})})})},qt=Q(Gt),Jt=g.lazy(()=>Qe(()=>import("./index-99f3e22d.js"),["assets/index-99f3e22d.js","assets/index-737fd7d3.js","assets/index-7fb11654.css","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/index-59b78927.js","assets/index-a05b664a.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/index.esm-7fca4988.js","assets/Alert-e6518529.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/FormContainer-e0ad1074.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/Logo-aa883174.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js"])),Qt=Q(Ee),Xt=e=>{const{menus:t}=e,[n,a]=g.useState(!1),i=()=>{a(!0)},o=()=>{a(!1)},s=j(u=>u.theme.themeColor),f=j(u=>u.theme.primaryColorLevel),l=j(u=>u.theme.navMode),y=j(u=>u.theme.mode),d=j(u=>u.theme.direction),N=j(u=>u.base.common.currentRouteKey);j(u=>u.theme.layout.sideNavCollapse);const h=j(u=>u.auth.user.authority),c=j(u=>u.theme.sideNavigationColor),{smaller:p}=Z(),L=()=>l===G&&y==="light"?`bg-${s}-${f} side-nav-${l}`:`bg-${c}`;return r.jsx(r.Fragment,{children:p.md&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"text-2xl",onClick:i,children:r.jsx(Qt,{toggled:n})}),r.jsx(Ne,{title:"Navigation",isOpen:n,portalClassName:"mobilePortal",bodyClass:D(L(),"p-0"),width:330,placement:d===Xe?"right":"left",onClose:o,onRequestClose:o,children:r.jsx(g.Suspense,{fallback:r.jsx(r.Fragment,{}),children:n&&r.jsx(Jt,{navMode:l,collapsed:!1,navigationTree:t,routeKey:N,userAuthority:h,direction:d,onMenuItemClick:o})})})]})})},Yt=[{label:"Profile",path:"/app/account/settings/profile",icon:r.jsx(tt,{}),divider:!0},{label:"Subscriptions",path:"/app/subscriptions",icon:r.jsx(Ot,{})}],Zt=({className:e})=>{const{avatar:t,userName:n,userAvatarName:a,authority:i,email:o}=j(p=>p.auth.user),s=je(),f=j(p=>p.theme.panelExpand),l=j(p=>p.theme.direction),y=()=>{s(se(!0))},d=()=>{s(se(!1));const p=document.body.classList;p.contains("drawer-lock-scroll")&&p.remove("drawer-lock-scroll","drawer-open")},{signOut:N}=Ye();let h;t?h=r.jsx(jt,{size:32,shape:"circle",src:t}):h=r.jsx("span",{className:"user-no-avatar",children:n==null?void 0:n.substring(0,1)});const c=r.jsxs("div",{className:D(e,"flex items-center gap-2"),children:[h,r.jsx("div",{className:"hidden md:block",children:r.jsx("div",{className:"font-bold",children:n})})]});return r.jsxs("div",{children:[r.jsxs($,{menuStyle:{minWidth:240},renderTitle:c,placement:"bottom-end",children:[r.jsx($.Item,{variant:"header",style:{position:"relative",zIndex:1e4},children:r.jsxs("div",{className:"py-2 px-3 flex items-center gap-2",children:[h,r.jsxs("div",{children:[r.jsx("div",{className:"font-bold text-gray-900 dark:text-gray-100",children:n}),r.jsx("div",{className:"text-xs",children:o})]})]})}),r.jsx($.Item,{variant:"divider"}),Yt.map(p=>r.jsxs(ye.Fragment,{children:[r.jsx($.Item,{eventKey:p.label,className:"mb-1 px-0",style:{position:"relative",zIndex:1e4},children:r.jsx(V,{className:"flex h-full w-full px-2",to:p.path,children:r.jsxs("span",{className:"flex gap-2 items-center w-full",children:[r.jsx("span",{className:"text-xl opacity-50",children:p.icon}),r.jsx("span",{children:p.label})]})})}),p.divider&&r.jsx($.Item,{variant:"divider"})]},p.label)),r.jsx($.Item,{variant:"divider"}),r.jsxs($.Item,{eventKey:"Settings",className:"gap-2",onClick:y,style:{position:"relative",zIndex:1e4},children:[r.jsx("span",{className:"text-xl opacity-50",children:r.jsx(Ze,{})}),r.jsx("span",{children:"Settings"})]}),r.jsx($.Item,{variant:"divider"}),r.jsxs($.Item,{eventKey:"Sign Out",className:"gap-2",onClick:N,style:{position:"relative",zIndex:1e4},children:[r.jsx("span",{className:"text-xl opacity-50",children:r.jsx(et,{})}),r.jsx("span",{children:"Sign Out"})]})]}),r.jsx(Ne,{title:"Theme Config",isOpen:f,placement:l==="rtl"?"left":"right",portalClassName:"w30 mobilePortal",onClose:d,onRequestClose:d,children:r.jsx(xt,{callBackClose:d})})]})},en=Q(Zt);function tn(e){return P({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"}}]})(e)}function nn(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z"}},{tag:"path",attr:{d:"M16 3v4"}},{tag:"path",attr:{d:"M8 3v4"}},{tag:"path",attr:{d:"M4 11h16"}},{tag:"path",attr:{d:"M11 15h1"}},{tag:"path",attr:{d:"M12 15v3"}}]})(e)}function rn(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M21 12a9 9 0 1 0 -9 9"}},{tag:"path",attr:{d:"M12 7v5l1 1"}},{tag:"path",attr:{d:"M16 16h6v6h-6z"}}]})(e)}function an(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M14 3v4a1 1 0 0 0 1 1h4"}},{tag:"path",attr:{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"}},{tag:"path",attr:{d:"M9 7l1 0"}},{tag:"path",attr:{d:"M9 13l6 0"}},{tag:"path",attr:{d:"M13 17l2 0"}}]})(e)}function sn(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M15 3v4a1 1 0 0 0 1 1h4"}},{tag:"path",attr:{d:"M18 17h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h4l5 5v7a2 2 0 0 1 -2 2z"}},{tag:"path",attr:{d:"M16 17v2a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"}}]})(e)}function on(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M7 21l4 -12m2 0l1.48 4.439m.949 2.847l1.571 4.714"}},{tag:"path",attr:{d:"M12 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}},{tag:"path",attr:{d:"M4 12c1.526 2.955 4.588 5 8 5c3.41 0 6.473 -2.048 8 -5"}},{tag:"path",attr:{d:"M12 5v-2"}}]})(e)}function ln(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M4 4h6v8h-6z"}},{tag:"path",attr:{d:"M4 16h6v4h-6z"}},{tag:"path",attr:{d:"M14 12h6v8h-6z"}},{tag:"path",attr:{d:"M14 4h6v4h-6z"}}]})(e)}function cn(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M15 4l6 2v5h-3v8a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1v-8h-3v-5l6 -2a3 3 0 0 0 6 0"}}]})(e)}function un(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M6 9l6 0"}},{tag:"path",attr:{d:"M4 5l4 0"}},{tag:"path",attr:{d:"M6 5v11a1 1 0 0 0 1 1h5"}},{tag:"path",attr:{d:"M12 7m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"}},{tag:"path",attr:{d:"M12 15m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"}}]})(e)}function dn(e){return P({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"}},{tag:"path",attr:{d:"M6 21v-2a4 4 0 0 1 4 -4h.5"}},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"}}]})(e)}const Le={account:r.jsx(nt,{}),authentication:r.jsx(oe,{}),Dashboard:r.jsx(ln,{}),CRM:r.jsx(dn,{}),Talks:r.jsx(un,{}),Schedule:r.jsx(nn,{}),Documents:r.jsx(sn,{}),"Billing & Invoice":r.jsx(an,{}),"Support Request":r.jsx(rt,{}),Projects:r.jsx(on,{}),Timesheets:r.jsx(rn,{}),"FAQ's":r.jsx(tn,{}),Products:r.jsx(cn,{}),Reports:r.jsx(at,{}),Components:r.jsx(yt,{}),Settings:r.jsx(st,{}),signIn:r.jsx(ot,{}),signUp:r.jsx(it,{}),forgotPassword:r.jsx(oe,{}),resetPassword:r.jsx(lt,{}),accessDenied:r.jsx(ct,{}),"My Course":r.jsx(ut,{})},$e=({icon:e,gutter:t})=>typeof e!="string"&&!e?r.jsx(r.Fragment,{}):r.jsx("span",{className:`text-2xl ${t?"ltr:mr-2 rtl:ml-2":"ml-3"}`,children:Le[e]});$e.defaultProps={gutter:!1};const{MenuItem:pn}=X,fn=({title:e,translateKey:t,children:n,direction:a})=>{const{t:i}=Se();return r.jsx(bt,{title:i(t)||e,placement:a==="rtl"?"left":"right",children:n})},ve=e=>{const{nav:t,onLinkClick:n,sideCollapsed:a}=e;j(s=>s.theme.navMode),j(s=>s.theme.themeColor),j(s=>s.theme.primaryColorLevel),j(s=>s.theme.sideNavigationColor),j(s=>s.theme.mode);const i=be(),o=t.menuName.toLowerCase().replace(/\s+/g,"").includes(i.pathname.replace(/^\/|\/$/g,"").split("/")[1]);return r.jsx(pn,{id:`${t.id}`,eventKey:t.id,className:`mb-2 ${o?"menu-item-active":""}`,children:r.jsxs(V,{to:t.routeLink??"",className:"flex items-center px-0 h-full w-full border-opacity-10 bg-opacity-10",onClick:()=>n==null?void 0:n({key:t.id,title:t.menuName,path:t.routeLink??""}),target:t.isExternalLink?"_blank":"",children:[r.jsx($e,{icon:t.menuName}),!a&&r.jsx("span",{className:"pl-2",children:r.jsx(H,{i18nKey:t.translateKey,defaults:t.menuName})})]})},t.$id)},mn=({nav:e,onLinkClick:t,sideCollapsed:n,direction:a})=>r.jsx(r.Fragment,{children:n?r.jsx(fn,{title:e.menuName,translateKey:"",direction:a,children:r.jsx(ve,{nav:e,sideCollapsed:n,onLinkClick:t})}):r.jsx(ve,{nav:e,sideCollapsed:n,onLinkClick:t})}),ee=({icon:e,gutter:t})=>typeof e!="string"&&!e?r.jsx(r.Fragment,{}):r.jsx("span",{className:`text-2xl ${t?"ltr:mr-2 rtl:ml-2":"mr-2"}`,children:Le[e]});ee.defaultProps={gutter:!1};const{MenuItem:Ae,MenuCollapse:hn}=X,gn=({nav:e,isActive:t,onLinkClick:n})=>{j(s=>s.theme.navMode);const a=j(s=>s.theme.themeColor);j(s=>s.theme.primaryColorLevel),j(s=>s.theme.sideNavigationColor),j(s=>s.theme.mode);const i=dt(),o=(s,f)=>{e!=null&&e.routeLink&&(e==null?void 0:e.routeLink)==="/app/components"&&i(e.routeLink)};return r.jsx(hn,{id:`${e.id}`,redirect:o,label:r.jsxs(r.Fragment,{children:[r.jsx(ee,{icon:e.menuName}),r.jsx("span",{children:r.jsx(H,{i18nKey:e.translateKey,defaults:e.menuName},e.$id)})]}),eventKey:e.menuName,isActive:t,className:`mb-1 text-${a}-600`,expanded:t,children:e.childMenus.$values.map(s=>r.jsx(ye.Fragment,{children:s.isView&&r.jsx(Ae,{id:`${e.id}`,eventKey:s.$id,children:s.routeLink?r.jsx(V,{className:"h-full w-full flex items-center ml-4",to:s.routeLink,onClick:()=>n==null?void 0:n({key:s.$id,title:s.menuName,path:s.routeLink??""}),target:s.isExternalLink?"_blank":"",children:r.jsx("span",{children:r.jsx(H,{i18nKey:s.translateKey,defaults:s.menuName},e.$id)})}):r.jsx("span",{children:r.jsx(H,{i18nKey:s.translateKey,defaults:s.menuName},e.$id)})},s.$id)},s.$id))},e.$id)},vn=({nav:e,isActive:t,onLinkClick:n,direction:a})=>{const[i,o]=g.useState(!1),s=r.jsx(Ae,{id:`${e.id}`,eventKey:e.$id,className:`mb-2 ${t?"menu-item-active":""}`,children:r.jsx(ee,{icon:e.menuName})},e.$id),f=l=>{n==null||n({key:l.$id,title:l.menuName,path:l.routeLink??""}),o(!1)};return r.jsx($,{trigger:"hover",renderTitle:s,placement:a==="rtl"?"middle-end-top":"middle-start-top",children:e.childMenus.$values.map(l=>r.jsx(r.Fragment,{children:l.isView&&r.jsx($.Item,{eventKey:l.$id,children:l.routeLink?r.jsx(V,{className:"h-full w-full flex items-center",to:l.routeLink,onClick:()=>f(l),target:l.isExternalLink?"_blank":"",children:r.jsx("span",{children:r.jsx(H,{i18nKey:l.menuName,defaults:l.menuName},e.$id)})},l.$id):r.jsx("span",{children:r.jsx(H,{i18nKey:l.menuName,defaults:l.menuName},l.$id)})},l.$id)}))},e.$id)},xn=({sideCollapsed:e,nav:t,...n})=>{const a=be(),i=t.menuName.toLowerCase().replace(/\s+/g,"").includes(a.pathname.replace(/^\/|\/$/g,"").split("/")[1]);return e?r.jsx(vn,{...n,isActive:i,nav:t}):r.jsx(gn,{...n,isActive:i,nav:t})},Pe=(e,t)=>e.map(n=>{const a={...n,parentKey:t};return n.childMenus&&Array.isArray(n.childMenus.$values)&&(a.childMenus.$values=Pe(n.childMenus.$values,a.$id)),a}),jn=(e,t)=>{if(typeof t!="string"){console.warn("Invalid key: must be a string");return}if(!e||typeof e!="object"&&!Array.isArray(e)){console.warn("Invalid navTree: must be an object or an array");return}const n=a=>{if(a.menuName.toLowerCase().replace(/\s+/g,"")===t.toLowerCase().replace(/\s+/g,""))return a;if(a.childMenus&&Array.isArray(a.childMenus.$values))for(const i of a.childMenus.$values){const o=n(i);if(o)return o.parentKey=a.menuName.toLowerCase().replace(/\s+/g,""),o}};if(Array.isArray(e))for(const a of e){const i=n(a);if(i)return i}else return n(e)},Ie=(e,t)=>Array.isArray(e)?(e==null?void 0:e.find(a=>a.$id===t))?!0:e.some(a=>Ie(a.childMenus,t)):!1,yn=(e,t)=>{let n={};return e.forEach(a=>{Ie([a],t)&&(n=a)}),n};function bn(e,t){const n=g.useMemo(()=>Pe(e),[e]),a=g.useMemo(()=>jn(n,t),[n,t]),i=g.useMemo(()=>yn(n,t),[n,t]);return{activedRoute:a,includedRouteTree:i}}const Nn=e=>{const{navMode:t=ie.navMode,collapsed:n,navigationTree:a=[],userAuthority:i=[],onMenuItemClick:o,routeKey:s,direction:f=ie.direction}=e;Se();const[l,y]=g.useState([]),{activedRoute:d}=bn(a,s);g.useEffect(()=>{d!=null&&d.parentKey&&y([d==null?void 0:d.parentKey])},[d==null?void 0:d.parentKey]);const N=()=>{o==null||o()},h=c=>{var p,L;if(c.isView&&((p=c.childMenus)==null?void 0:p.$values.length)===0)return r.jsx(mn,{nav:c,sideCollapsed:n,direction:f,onLinkClick:N,activedRoute:d},c.id);if(c.isView&&((L=c.childMenus)==null?void 0:L.$values.length)>0)return r.jsx(xn,{nav:c,sideCollapsed:n,direction:f,onLinkClick:o,activedRoute:d},c.id)};return r.jsx(X,{className:"px-4",variant:"none",sideCollapsed:n,defaultActiveKeys:d!=null&&d.$id?[d.$id]:[],defaultExpandedKeys:l,children:a.map(c=>h(c))})},On=Nn,wn={width:le,minWidth:le},Mn={width:ce,minWidth:ce},Cn=e=>{const{menus:t}=e;j(c=>c.theme.themeColor),j(c=>c.theme.primaryColorLevel);const n=j(c=>c.theme.navMode),a=j(c=>c.theme.sideNavigationColor),i=j(c=>c.theme.mode),o=j(c=>c.theme.direction),s=j(c=>c.base.common.currentRouteKey),f=j(c=>c.theme.layout.sideNavCollapse),l=j(c=>c.auth.user.authority),{larger:y}=Z(),d=()=>n===G?`bg-${a} side-nav-${n}`:`side-nav-${n}`,N=()=>n===G?mt:n===ht?i:n,h=r.jsx(On,{navMode:n,collapsed:f,navigationTree:t,routeKey:s,userAuthority:l,direction:o});return r.jsx(r.Fragment,{children:y.md&&r.jsxs("div",{style:f?Mn:wn,className:D("side-nav",d(),!f&&"side-nav-expand"),children:[r.jsxs("div",{className:"side-nav-header",children:[r.jsx(Oe,{logoWidth:"200px",mode:N(),type:f?"streamline":"full",className:f?pt:ft}),r.jsx("div",{className:"pb-5"})]}),f?h:r.jsx("div",{className:"side-nav-content",children:r.jsx(Nt,{autoHide:!0,direction:o,children:h})})]})})},kn=e=>{const{menus:t}=e;return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{type:"streamline",imgClass:"mx-auto mobile-only"}),r.jsx(Xt,{menus:t}),r.jsx(qt,{})]})},Sn=()=>r.jsx(r.Fragment,{children:r.jsx(en,{hoverable:!1})}),En=()=>{const[e,t]=g.useState([]);g.useEffect(()=>{n()},[]);const n=async()=>{var i;const a=localStorage.getItem(gt);if(a){const o=await vt(a,"default");let s=te((i=o==null?void 0:o.data)==null?void 0:i.$values);t(s??[])}else t([])};return r.jsx("div",{className:"app-layout-classic flex flex-auto flex-col",children:r.jsxs("div",{className:"flex flex-auto min-w-0",children:[r.jsx(Cn,{menus:e}),r.jsxs("div",{className:"flex flex-col flex-auto min-h-screen min-w-0 relative w-full",children:[r.jsx(Ut,{className:"shadow dark:shadow-2xl",headerStart:r.jsx(kn,{menus:e}),headerEnd:r.jsx(Sn,{})}),r.jsx("div",{className:"h-full flex flex-auto flex-col",children:r.jsx(Mt,{})})]})]})})};function te(e){return e.forEach(t=>{var n;t.childMenus&&t.childMenus.$values&&(t.childMenus.$values=te((n=t==null?void 0:t.childMenus)==null?void 0:n.$values))}),e.sort((t,n)=>t.sequence-n.sequence)}const Qn=Object.freeze(Object.defineProperty({__proto__:null,default:En,sortMenuItems:te},Symbol.toStringTag,{value:"Module"}));export{Qn as C,Ut as H,Xt as M,Cn as S,en as U,ee as V,qt as a,Se as b,On as c,Le as n,te as s,Z as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,j as m,c}from"./index-737fd7d3.js";const i=o.forwardRef((s,a)=>{const{className:e,children:r,asElement:t="div",...n}=s;return m.jsx(t,{ref:a,className:c("container mx-auto",e),...n,children:r})});i.displayName="Container";export{i as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as E,r as n,o as _,ay as G,be as Z,O as J,j as a,bl as Q,bm as ee}from"./index-737fd7d3.js";import{b as te,c as ae,d as se,e as le,F as re,a as ne,f as ce,g as ie}from"./index.esm-d90c2f28.js";import{a as oe}from"./CourseService-150b9c3b.js";import{d as ue,e as de,f as me,g as he}from"./index.esm-7fca4988.js";const K=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,X=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Y=/\.(m3u8)($|\?)/i,xe=/\.(mpd)($|\?)/i,fe=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,ye=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ve=/vimeo\.com\/(?!progressive_redirect).+/,be=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Pe=/open\.spotify\.com\/(\w+)\/(\w+)/i,we=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/,pe=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,L=(e,s)=>{if(Array.isArray(e)){for(const h of e)if(typeof h=="string"&&L(h,s)||L(h.src,s))return!0;return!1}return s(e)},p={html:e=>L(e,s=>K.test(s)||X.test(s)),hls:e=>L(e,s=>Y.test(s)),dash:e=>L(e,s=>xe.test(s)),mux:e=>fe.test(e),youtube:e=>ye.test(e),vimeo:e=>ve.test(e)&&!X.test(e)&&!Y.test(e),wistia:e=>be.test(e),spotify:e=>Pe.test(e),twitch:e=>we.test(e),tiktok:e=>pe.test(e)},_e=E.forwardRef((e,s)=>{const h=K.test(`${e.src}`)?"audio":"video";return E.createElement(h,{...e,ref:s},e.children)});var ge=_e;const Ne=[{key:"hls",name:"hls.js",canPlay:p.hls,canEnablePIP:()=>!0,player:n.lazy(()=>_(()=>import("./react-72b07884.js"),["assets/react-72b07884.js","assets/index-737fd7d3.js","assets/index-7fb11654.css","assets/mixin-cf90cd8a.js","assets/hls-78bd63bc.js"]))},{key:"dash",name:"dash.js",canPlay:p.dash,canEnablePIP:()=>!0,player:n.lazy(()=>_(()=>import("./react-cbdc2827.js"),["assets/react-cbdc2827.js","assets/index-737fd7d3.js","assets/index-7fb11654.css","assets/mixin-cf90cd8a.js"]))},{key:"mux",name:"Mux",canPlay:p.mux,canEnablePIP:()=>!0,player:n.lazy(()=>_(()=>import("./index-21f8ea30.js"),["assets/index-21f8ea30.js","assets/index-737fd7d3.js","assets/index-7fb11654.css","assets/hls-78bd63bc.js","assets/mixin-cf90cd8a.js"]))},{key:"youtube",name:"YouTube",canPlay:p.youtube,player:n.lazy(()=>_(()=>import("./react-27635538.js"),["assets/react-27635538.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"]))},{key:"vimeo",name:"Vimeo",canPlay:p.vimeo,player:n.lazy(()=>_(()=>import("./react-5e997bd3.js"),["assets/react-5e997bd3.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"]))},{key:"wistia",name:"Wistia",canPlay:p.wistia,canEnablePIP:()=>!0,player:n.lazy(()=>_(()=>import("./react-55737d69.js"),["assets/react-55737d69.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"]))},{key:"spotify",name:"Spotify",canPlay:p.spotify,canEnablePIP:()=>!1,player:n.lazy(()=>_(()=>import("./react-22b3ad73.js"),["assets/react-22b3ad73.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"]))},{key:"twitch",name:"Twitch",canPlay:p.twitch,canEnablePIP:()=>!1,player:n.lazy(()=>_(()=>import("./react-35db633d.js"),["assets/react-35db633d.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"]))},{key:"tiktok",name:"TikTok",canPlay:p.tiktok,canEnablePIP:()=>!1,player:n.lazy(()=>_(()=>import("./react-a5b37028.js"),["assets/react-a5b37028.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"]))},{key:"html",name:"html",canPlay:p.html,canEnablePIP:()=>!0,player:ge}];var z=Ne;const je={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},q=E.forwardRef((e,s)=>{const{playing:h,pip:x}=e,l=e.activePlayer,r=n.useRef(null),i=n.useRef(!0);n.useEffect(()=>{var c,o;r.current&&(r.current.paused&&h===!0&&r.current.play(),!r.current.paused&&h===!1&&r.current.pause(),r.current.playbackRate=(c=e.playbackRate)!=null?c:1,r.current.volume=(o=e.volume)!=null?o:1)}),n.useEffect(()=>{var c,o,m,k,f;if(!(!r.current||!globalThis.document)){if(x&&!document.pictureInPictureElement)try{(o=(c=r.current).requestPictureInPicture)==null||o.call(c)}catch{}if(!x&&document.pictureInPictureElement)try{(k=(m=r.current).exitPictureInPicture)==null||k.call(m),(f=document.exitPictureInPicture)==null||f.call(document)}catch{}}},[x]);const R=c=>{var o,m;i.current=!0,(o=e.onReady)==null||o.call(e),(m=e.onLoadStart)==null||m.call(e,c)},d=c=>{var o,m;i.current&&(i.current=!1,(o=e.onStart)==null||o.call(e,c)),(m=e.onPlay)==null||m.call(e,c)};if(!l)return null;const I={},O=["onReady","onStart"];for(const c in e)c.startsWith("on")&&!O.includes(c)&&(I[c]=e[c]);return E.createElement(l,{...I,style:e.style,className:e.className,slot:e.slot,ref:n.useCallback(c=>{r.current=c,typeof s=="function"?s(c):s!==null&&(s.current=c)},[s]),src:e.src,crossOrigin:e.crossOrigin,preload:e.preload,controls:e.controls,muted:e.muted,autoPlay:e.autoPlay,loop:e.loop,playsInline:e.playsInline,config:e.config,onLoadStart:R,onPlay:d},e.children)});q.displayName="Player";var Ee=q;const Ie=n.lazy(()=>_(()=>import("./Preview-bcdcb9ef.js"),["assets/Preview-bcdcb9ef.js","assets/index-737fd7d3.js","assets/index-7fb11654.css"])),C=[],ke=(e,s)=>{const h=l=>{for(const r of[...C,...e])if(l&&r.canPlay(l))return r;return s||null},x=E.forwardRef((l,r)=>{const i={...je,...l},{src:R,slot:d,className:I,style:O,width:c,height:o,fallback:m,wrapper:k}=i,[f,b]=n.useState(!!i.light);n.useEffect(()=>{i.light?b(!0):b(!1)},[i.light]);const D=g=>{var P;b(!1),(P=i.onClickPreview)==null||P.call(i,g)},H=g=>{if(!g)return null;const{light:P,playIcon:S,previewTabIndex:N,oEmbedUrl:F,previewAriaLabel:A}=i;return E.createElement(Ie,{src:g,light:P,playIcon:S,previewTabIndex:N,previewAriaLabel:A,oEmbedUrl:F,onClickPreview:D})},V=g=>{var P,S;const N=h(g);if(!N)return null;const{style:F,width:A,height:M,wrapper:t}=i,u=(P=i.config)==null?void 0:P[N.key];return E.createElement(Ee,{...i,ref:r,activePlayer:(S=N.player)!=null?S:N,slot:t?void 0:d,className:t?void 0:I,style:t?{display:"block",width:"100%",height:"100%"}:{display:"block",width:A,height:M,...F},config:u})},$=k??B,U=m===!1?B:n.Suspense;return E.createElement($,{slot:d,className:I,style:{width:c,height:o,...O}},E.createElement(U,{fallback:m},f?H(R):V(R)))});return x.displayName="ReactPlayer",x.addCustomPlayer=l=>{C.push(l)},x.removeCustomPlayers=()=>{C.length=0},x.canPlay=l=>{if(l){for(const r of[...C,...e])if(r.canPlay(l))return!0}return!1},x.canEnablePIP=l=>{var r;if(l){for(const i of[...C,...e])if(i.canPlay(l)&&((r=i.canEnablePIP)!=null&&r.call(i)))return!0}return!1},x},B=({children:e})=>e,Te=z[z.length-1];var Re=ke(z,Te);const Se=e=>{var h;if(!e)return a.jsx(Q,{className:"w-4 h-4 text-gray-500"});switch((h=e.split(".").pop())==null?void 0:h.toLowerCase()){case"pdf":return a.jsx(he,{className:"w-5 h-5 text-red-500"});case"doc":case"docx":return a.jsx(me,{className:"w-5 h-5 text-blue-500"});case"xls":case"xlsx":return a.jsx(de,{className:"w-5 h-5 text-green-500"});case"ppt":case"pptx":return a.jsx(ue,{className:"w-5 h-5 text-orange-500"});default:return a.jsx(ee,{className:"w-5 h-5 text-gray-500"})}};function Le(){var $,U,g,P,S,N,F,A,M;const{sectionId:e,materialId:s}=G(),[h,x]=n.useState([]),[l,r]=n.useState(null),[i,R]=n.useState(!1),[d,I]=n.useState(null),[O,c]=n.useState({}),o=Z(t=>{var u;return(u=t==null?void 0:t.auth)==null?void 0:u.user}),m=J(),k=async()=>{var t,u;try{const v=await oe(o==null?void 0:o.courseId);if(v.success){I(v.data);const T={};(u=(t=v.data.sections)==null?void 0:t.$values)==null||u.forEach(w=>{var y,j;(j=(y=w.materials)==null?void 0:y.$values)==null||j.forEach(W=>{T[W.id]=W.playbackUrl})}),c(w=>{const y={...w};return Object.keys(T).forEach(j=>{j===l&&i||(y[j]=T[j])}),y}),x(w=>e&&s&&!w.includes(e)?[...w,e]:w),e&&s&&r(s)}}catch{I(null)}};n.useEffect(()=>{k();const t=setInterval(k,18*60*1e3);return()=>clearInterval(t)},[o==null?void 0:o.courseId,l]);const f=((U=($=d==null?void 0:d.sections)==null?void 0:$.$values)==null?void 0:U.flatMap(t=>{var u;return((u=t.materials)==null?void 0:u.$values)||[]}))||[],b=f.findIndex(t=>t.id===l),D=()=>{if(b<f.length-1){const t=f[b+1];m(`/app/course/${t.sectionId}/${t.id}`),r(t.id)}},H=()=>{if(b>0){const t=f[b-1];m(`/app/course/${t.sectionId}/${t.id}`),r(t.id)}},V=t=>{x(u=>u.includes(t)?u.filter(v=>v!==t):[...u,t])};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"topbar py-4 px-4 border-gray-200 border-b",children:a.jsx("div",{className:"lg:flex items-center justify-between",children:a.jsx("h3",{className:"mb-2 lg:mb-0",children:d==null?void 0:d.title})})}),a.jsxs("div",{className:"lg:flex sm:flex-none px-6 py-3 text-sm",children:[a.jsx("div",{className:"lg:w-3/4 md:w-full sm:w-full p-4 border-b bg-white",children:a.jsxs("div",{className:"video-sec sticky top-[100px]",children:[a.jsx("div",{className:"bg-black flex items-start justify-center",children:a.jsx("div",{className:"flex-1 max-w-6xl",children:a.jsx("div",{className:"aspect-video",children:a.jsx(Re,{src:l&&O[l]||"",width:"100%",height:"100%",playing:i,controls:!0,onPlay:()=>R(!0),onPause:()=>R(!1)})})})}),l&&a.jsxs("div",{className:"p-4 border border-gray-200 rounded-b-lg bg-white",children:[a.jsx("h2",{className:"text-xl font-semibold text-custom-600 mb-2",children:(g=f.find(t=>t.id===l))==null?void 0:g.title}),((N=(S=(P=f.find(t=>t.id===l))==null?void 0:P.resources)==null?void 0:S.$values)==null?void 0:N.length)>0&&a.jsxs("div",{className:"mt-6",children:[a.jsx("h4",{className:"text-sm font-semibold text-custom-600 mb-3",children:"Resources"}),a.jsx("ul",{className:"space-y-2",children:(F=f.find(t=>t.id===l))==null?void 0:F.resources.$values.map((t,u)=>{const v=t!=null&&t.resourceFile?`${t.resourceFile}`:t==null?void 0:t.resourceUrl,T=(t==null?void 0:t.resourceFile)||(t==null?void 0:t.resourceUrl)||"";return a.jsxs("li",{className:"flex items-center gap-3 p-2 rounded-md hover:bg-gray-50 border border-gray-100",children:[(t==null?void 0:t.resourceFile)&&Se(T),a.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-custom-600 font-medium hover:underline truncate",children:t.title||"Resource "+(u+1)})]},u)})})]})]})]})}),a.jsxs("div",{className:"lg:w-1/4 md:w-full sm:w-full text-white flex flex-col bg-custom-600",children:[a.jsxs("div",{className:"p-4 border-b border-custom-700",children:[a.jsxs("div",{className:"flex items-center justify-between gap-10 py-4",children:[a.jsx("button",{className:"text-white hover:text-gray-200",children:a.jsx(te,{className:"w-5 h-5"})}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx("button",{className:"text-white",onClick:H,children:a.jsx(ae,{className:"w-5 h-5"})}),a.jsx("button",{className:"text-white",onClick:D,children:a.jsx(se,{className:"w-5 h-5"})})]}),a.jsxs("button",{onClick:()=>m("/app/courseoutline"),className:"flex items-center gap-2 border border-white text-white text-sm font-medium px-3 py-1 rounded-lg hover:bg-white hover:text-emerald-900 transition",children:[a.jsx(le,{className:"w-4 h-4"}),"Exit Course"]})]}),a.jsx("h2",{className:"text-lg font-semibold text-white",children:d==null?void 0:d.title})]}),a.jsx("div",{className:"flex-1 overflow-y-auto",children:(M=(A=d==null?void 0:d.sections)==null?void 0:A.$values)==null?void 0:M.map((t,u)=>{var T,w;const v=h.includes(t.id);return a.jsxs("div",{className:"border-b border-custom-700",children:[a.jsxs("button",{onClick:()=>V(t.id),className:"w-full flex items-center justify-between p-4 bg-custom-800 hover:bg-custom-800",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("span",{className:`rounded-full w-8 h-8 flex items-center justify-center text-sm font-semibold border-2 border-[#FFFFFF4D] ${v?"bg-yellow-300 text-custom-800":"bg-custom-600 text-white"}`,children:u+1}),a.jsxs("div",{className:"text-left",children:[a.jsx("div",{className:"font-semibold text-sm",children:t.title}),a.jsx("div",{className:"text-xs text-white",children:t.calculatedDuration})]})]}),v?a.jsx(re,{}):a.jsx(ne,{})]}),v&&a.jsx("div",{children:(w=(T=t.materials)==null?void 0:T.$values)==null?void 0:w.map(y=>{const j=l===y.id;return a.jsx("button",{onClick:()=>{r(y.id),m(`/app/course/${t.id}/${y.id}`)},className:`w-full flex items-center gap-3 p-4 text-left transition-colors border-b border-custom-500 ${j?"bg-custom-700":"hover:bg-custom-700"}`,children:a.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0 px-2 ",children:[a.jsx("div",{className:"w-4 h-4 flex-shrink-0",children:j?a.jsx(ce,{className:"text-white text-xs"}):a.jsx(ie,{className:"text-white text-xs"})}),a.jsxs("div",{className:"text-left",children:[a.jsx("div",{className:"font-semibold text-sm",children:y.title}),a.jsx("div",{className:"text-xs text-white",children:y.duration})]})]})},y.id)})})]},t.id)})})]})]})]})}export{Le as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bn as s}from"./index-737fd7d3.js";async function o(e){return(await s.apiV10CourseGetCourseByIdIdGet(e)).data}export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as i,j as e,c,N as h,r as p,P as f,a as j}from"./index-737fd7d3.js";import{u as v,s as y,H as M,M as g,U as E}from"./ClassicLayout-43547087.js";import{H as N,a as H}from"./HorizontalMenuContent-c2ce9ba4.js";import{V as S}from"./Views-7025458f.js";import{L as w}from"./Logo-aa883174.js";import"./SidePanelContent-0d8d0ddd.js";import"./Switcher-4b56d286.js";import"./index-d7b1d047.js";import"./Select-19bd23ac.js";import"./warning-eb037686.js";import"./isEmpty-d6a6848e.js";import"./get-e6d75ebc.js";import"./Button-312a6bfe.js";import"./useControllableState-ed446800.js";import"./SegmentItemOption-1228dbe0.js";import"./useThemeClass-61b1bbbf.js";import"./index-59b78927.js";import"./index-a05b664a.js";import"./index-91a81028.js";import"./Input-f9dc9df7.js";import"./index.esm-7fca4988.js";import"./Alert-e6518529.js";import"./Card-8badb238.js";import"./index-cdf4c2fe.js";import"./cloneDeep-958c9090.js";import"./Tag-0a3ddbe2.js";import"./FormContainer-e0ad1074.js";import"./index-51020fda.js";import"./Upload-f16cbbc9.js";import"./Container-0271dbaa.js";const C=s=>{const{className:o,contained:m,menus:n}=s,t=i(r=>r.theme.navMode),a=i(r=>r.theme.themeColor),l=i(r=>r.theme.primaryColorLevel),d=i(r=>r.auth.user.authority),{larger:u}=v(),x=()=>t===h?`bg-${a}-${l} secondary-header-${t}`:`secondary-header-${t}`;return e.jsx(e.Fragment,{children:u.md&&e.jsx("div",{className:c("h-16 flex items-center",x(),o),children:e.jsx("div",{className:c("flex items-center px-4",m&&"container mx-auto"),children:e.jsx(N,{menus:n,manuVariant:t,userAuthority:d})})})})},L=s=>{const{menus:o}=s;return e.jsxs(e.Fragment,{children:[e.jsx(H,{}),e.jsx(w,{type:"streamline",imgClass:"mx-auto mobile-only"}),e.jsx(g,{menus:o})]})},A=()=>e.jsx(e.Fragment,{children:e.jsx(E,{hoverable:!1})}),ne=()=>{const[s,o]=p.useState([]);p.useEffect(()=>{m()},[]);const m=async()=>{var t;const n=localStorage.getItem(f);if(n){const a=await j(n,"default");let l=y((t=a==null?void 0:a.data)==null?void 0:t.$values);o(l??[])}};return e.jsx("div",{className:"app-layout-simple flex flex-auto flex-col min-h-screen",children:e.jsx("div",{className:"flex flex-auto min-w-0",children:e.jsxs("div",{className:"flex flex-col flex-auto min-h-screen min-w-0 relative w-full",children:[e.jsx(M,{container:!0,className:"shadow dark:shadow-2xl",headerStart:e.jsx(L,{menus:s}),headerEnd:e.jsx(A,{})}),e.jsx(C,{contained:!0,menus:s}),e.jsx(S,{pageContainerType:"contained"})]})})})};export{ne as default};
|