@feedmepos/mf-brand-app-builder 0.5.0 → 0.5.2-6.prod.1
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/README.md +37 -18
- package/dist/App-Cc1q_aD7.js +109 -0
- package/dist/AssetsSettings-DJOCXmyp.js +233 -0
- package/dist/BaDivider-Cp9gfB4r.js +10 -0
- package/dist/BrandkitView-BFSi5o-W.js +9931 -0
- package/dist/BuilderView-C4FaLoJw.js +10155 -0
- package/dist/ButtonGroup-2ilMTPHH.js +29 -0
- package/dist/CircularProgress-DdblYCtV.js +43 -0
- package/dist/ColorPicker-RKWzhLBO.js +543 -0
- package/dist/ColorPicker-dVFIiu94.js +159 -0
- package/dist/Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js +16 -0
- package/dist/ImageUpload-I29iC9SL.js +73 -0
- package/dist/LinkButton-DNXBKGCn.js +170 -0
- package/dist/ListRepeater-B7siK-u5.js +86 -0
- package/dist/ManagementSettings-DHh2g_XJ.js +671 -0
- package/dist/ProjectView-DKXRpIC6.js +428 -0
- package/dist/Select-DQx6OfZx.js +95 -0
- package/dist/SettingsView-uft0uKio.js +34 -0
- package/dist/StepperField-nyaUK9ht.js +30 -0
- package/dist/Switch-uc_zN-mb.js +19 -0
- package/dist/TextAlign-BSp1Xi7F.js +51 -0
- package/dist/TextDecorators-1C54q7us.js +53 -0
- package/dist/TextField-DfBJB6vQ.js +24 -0
- package/dist/TextStyleList-Bef3irUx.js +68 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-vtsfertH.js +11886 -0
- package/dist/app.js +6 -15015
- package/dist/brand-core/src/brandkit.d.ts +49 -0
- package/dist/brand-core/src/entity.d.ts +105 -0
- package/dist/brandkit-CqTsCHzt.js +101 -0
- package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +2 -0
- package/dist/client/components/src/components/Homepage.vue.d.ts +19 -0
- package/dist/{components → client/components}/src/components/ImageDisplay.vue.d.ts +1 -1
- package/dist/client/components/src/components/Member/MemberAchievements.vue.d.ts +33 -0
- package/dist/client/components/src/components/Member/MemberCards.vue.d.ts +20 -0
- package/dist/client/components/src/components/Member/MemberSummary.vue.d.ts +24 -0
- package/dist/client/components/src/components/Member/TransactionList.vue.d.ts +5 -0
- package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +7 -0
- package/dist/client/components/src/components/NavigationBar.vue.d.ts +17 -0
- package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +9 -3
- package/dist/{components → client/components}/src/components/OrderMethod.vue.d.ts +3 -0
- package/dist/{components → client/components}/src/components/atoms/Button.vue.d.ts +3 -3
- package/dist/client/components/src/components/atoms/Container.vue.d.ts +26 -0
- package/dist/{components → client/components}/src/components/atoms/LinkSlot.vue.d.ts +3 -3
- package/dist/client/components/src/i18n.d.ts +4 -0
- package/dist/{components → client/components}/src/main.d.ts +9 -1
- package/dist/client/components/src/utils/date.d.ts +22 -0
- package/dist/client/components/src/utils/image.d.ts +2 -0
- package/dist/client/components/src/views/_Credit.vue.d.ts +24 -0
- package/dist/client/components/src/views/_MemberProfile.vue.d.ts +34 -0
- package/dist/client/components/src/views/_Point.vue.d.ts +24 -0
- package/dist/client/components/src/views/_Referral.vue.d.ts +31 -0
- package/dist/client/components/src/views/_ReferralTutorial.vue.d.ts +24 -0
- package/dist/client/merchant/src/api/business/index.d.ts +96 -0
- package/dist/client/merchant/src/api/index.d.ts +40 -0
- package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +2 -2
- package/dist/client/merchant/src/app.d.ts +7101 -0
- package/dist/client/merchant/src/components/brandkit/ColorOverrideDialog.vue.d.ts +26 -0
- package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +15 -0
- package/dist/{merchant → client/merchant}/src/components/element-sidebar/all-elements.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/components/inputs/ColorPicker.vue.d.ts +1 -0
- package/dist/client/merchant/src/components/inputs/LinkBrandkitColor.vue.d.ts +9 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +12 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +18 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +13 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +5 -0
- package/dist/client/merchant/src/components/modals/TemplateSelectionModal.vue.d.ts +18 -0
- package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +14 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +10 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +14 -0
- package/dist/client/merchant/src/components/order-template/TemplateVersionHistory.vue.d.ts +18 -0
- package/dist/client/merchant/src/components/template/TemplatePreview.vue.d.ts +8 -0
- package/dist/{merchant → client/merchant}/src/composables/useNode/index.d.ts +2 -1
- package/dist/client/merchant/src/composables/useToast/index.d.ts +8 -0
- package/dist/client/merchant/src/config/defaultTemplateConfig.d.ts +18 -0
- package/dist/client/merchant/src/helpers/businessUrl.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/node-configs/branch-list/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/button-list/props.d.ts +3 -0
- package/dist/{merchant → client/merchant}/src/node-configs/carousel/props.d.ts +1 -0
- package/dist/client/merchant/src/node-configs/container/props.d.ts +85 -0
- package/dist/{merchant → client/merchant}/src/node-configs/display-image/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/display-text/props.d.ts +1 -0
- package/dist/client/merchant/src/node-configs/member-achievements/mock-data.d.ts +15 -0
- package/dist/client/merchant/src/node-configs/member-achievements/props.d.ts +40 -0
- package/dist/client/merchant/src/node-configs/member-achievements/schema.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/node-configs/member-card/mock-data.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/member-card/props.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-cards/mock-data.d.ts +3 -0
- package/dist/client/merchant/src/node-configs/member-cards/props.d.ts +24 -0
- package/dist/client/merchant/src/node-configs/member-cards/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-history/mock-data.d.ts +843 -0
- package/dist/client/merchant/src/node-configs/member-history/props.d.ts +1692 -0
- package/dist/client/merchant/src/node-configs/member-history/schema.d.ts +3 -0
- package/dist/client/merchant/src/node-configs/member-profile/props.d.ts +449 -0
- package/dist/client/merchant/src/node-configs/member-profile/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-referral/props.d.ts +98 -0
- package/dist/client/merchant/src/node-configs/member-referral/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-referral-tutorial/props.d.ts +8 -0
- package/dist/client/merchant/src/node-configs/member-referral-tutorial/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-summary/mock-data.d.ts +9 -0
- package/dist/client/merchant/src/node-configs/member-summary/props.d.ts +32 -0
- package/dist/client/merchant/src/node-configs/member-summary/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/mock-data.d.ts +7 -0
- package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/order-method/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/props.d.ts +8 -1
- package/dist/{merchant → client/merchant}/src/node-configs/schema.d.ts +8 -1
- package/dist/client/merchant/src/plugin/formkit-i18n.d.ts +2 -0
- package/dist/client/merchant/src/plugin/i18n.d.ts +2 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +964 -0
- package/dist/{merchant → client/merchant}/src/stores/editor/index.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/stores/template/index.d.ts +88 -9
- package/dist/client/merchant/src/utils/image.d.ts +1 -0
- package/dist/client/merchant/src/views/BuilderView.vue.d.ts +5 -0
- package/dist/client/merchant/src/views/views.d.ts +101 -0
- package/dist/dayjs.min-DnbY0e60.js +282 -0
- package/dist/image-S7-2rbQS.js +42 -0
- package/dist/index-BUEKCOG0.js +112 -0
- package/dist/index-C6_vWPi0.js +1822 -0
- package/dist/index-CPs0rWCO.js +198 -0
- package/dist/index-CawZ03Z8.js +30 -0
- package/dist/main-DLCAzTfw.js +10467 -0
- package/dist/package.json +19 -8
- package/dist/style.css +1 -1
- package/dist/v4-CKwdnpQf.js +26 -0
- package/dist/views-BDWw3w14.js +119 -0
- package/dist/vue-sonner-CBFYmm8_.js +750 -0
- package/package.json +19 -8
- package/dist/components/src/components/Homepage.vue.d.ts +0 -17
- package/dist/components/src/components/atoms/Container.vue.d.ts +0 -25
- package/dist/merchant/src/api/business/index.d.ts +0 -34
- package/dist/merchant/src/api/index.d.ts +0 -14
- package/dist/merchant/src/app.d.ts +0 -3
- package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +0 -12
- package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -18
- package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -13
- package/dist/merchant/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +0 -6
- package/dist/merchant/src/node-configs/container/props.d.ts +0 -57
- package/dist/merchant/src/node-configs/mock-data.d.ts +0 -3
- package/dist/merchant/src/stores/business/index.d.ts +0 -49
- package/dist/{components → client/components}/src/components/BranchList.vue.d.ts +0 -0
- package/dist/{components → client/components}/src/components/CountrySwitcher.vue.d.ts +0 -0
- package/dist/{components → client/components}/src/components/ImageCarousel.vue.d.ts +0 -0
- package/dist/{components → client/components}/src/components/TextDisplay.vue.d.ts +0 -0
- package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +1 -1
- /package/dist/{components → client/components}/src/components/atoms/Divider.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Icon.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/OrderTypeChip.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/OrderDetails.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/App.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/Entry.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/image/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaDivider.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/Editor.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/EditorFloatingToobar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/EditorToolbar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/PreviewQrCode.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplatePicker.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/element-sidebar/ElementSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ImageUpload.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkButton.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ListRepeater.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Select.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/StepperField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Switch.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextAlign.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextDecorators.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextStyleList.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/Inspector.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/AssetsSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/ManagementSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/main.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/shared.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/deep-to-raw.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
- /package/dist/{merchant/src/views/BuilderView.vue.d.ts → client/merchant/src/views/BrandkitView.vue.d.ts} +0 -0
- /package/dist/{merchant/src/views/HomeView.vue.d.ts → client/merchant/src/views/ProjectView.vue.d.ts} +0 -0
- /package/dist/{merchant → client/merchant}/src/views/SettingsView.vue.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,39 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FeedMe Brand App - Merchant
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This project is a Vue 3-based application for merchants to manage their business mini-programs.
|
|
4
4
|
|
|
5
5
|
## Recommended IDE Setup
|
|
6
6
|
|
|
7
|
-
[VSCode](https://code.visualstudio.com/) + [
|
|
8
|
-
|
|
9
|
-
## Type Support for `.vue` Imports in TS
|
|
10
|
-
|
|
11
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
-
|
|
13
|
-
## Customize configuration
|
|
14
|
-
|
|
15
|
-
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
7
|
+
[VSCode](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
|
|
16
8
|
|
|
17
9
|
## Project Setup
|
|
18
10
|
|
|
11
|
+
Install dependencies:
|
|
12
|
+
|
|
19
13
|
```sh
|
|
20
14
|
pnpm install
|
|
21
15
|
```
|
|
22
16
|
|
|
23
|
-
###
|
|
17
|
+
### Serve the Application
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
To serve the application locally, use one of the following commands:
|
|
20
|
+
|
|
21
|
+
- **Development Mode**:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
pnpm dev
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This will start the app in development mode.
|
|
28
|
+
|
|
29
|
+
- **Production Mode (Local Debug)**:
|
|
30
|
+
```sh
|
|
31
|
+
pnpm prod
|
|
32
|
+
```
|
|
33
|
+
This will start the app in a local production-like environment.
|
|
34
|
+
|
|
35
|
+
### Access the Application
|
|
36
|
+
|
|
37
|
+
After serving the application, navigate to:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
http://localhost:4000
|
|
27
41
|
```
|
|
28
42
|
|
|
29
|
-
### Type-Check, Compile and Minify for Production
|
|
43
|
+
### Type-Check, Compile, and Minify for Production
|
|
30
44
|
|
|
31
45
|
```sh
|
|
32
46
|
pnpm build
|
|
33
47
|
```
|
|
34
48
|
|
|
35
|
-
|
|
49
|
+
## Recommended Editor Settings
|
|
36
50
|
|
|
37
|
-
|
|
38
|
-
|
|
51
|
+
To ensure consistent formatting, add the following settings to your editor configuration:
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
56
|
+
"editor.formatOnSave": true
|
|
57
|
+
}
|
|
39
58
|
```
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as d, computed as h, resolveComponent as u, createElementBlock as m, openBlock as i, Fragment as f, renderList as b, createElementVNode as l, createVNode as r, unref as p, withCtx as _, ref as w, onMounted as x, onBeforeMount as y, watch as B, createBlock as k, createCommentVNode as S } from "vue";
|
|
2
|
+
import { useCoreStore as C } from "@feedmepos/mf-common";
|
|
3
|
+
import { V as F } from "./vue-sonner-CBFYmm8_.js";
|
|
4
|
+
import { useRoute as R, useRouter as V, RouterLink as L, RouterView as P } from "vue-router";
|
|
5
|
+
import { g as A } from "./index-C6_vWPi0.js";
|
|
6
|
+
import { u as N } from "./index-CawZ03Z8.js";
|
|
7
|
+
const $ = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r border-fm-color-neutral-gray-100 p-[10px] flex flex-col gap-12" }, z = /* @__PURE__ */ d({
|
|
8
|
+
__name: "NavigationSidebar",
|
|
9
|
+
setup(g) {
|
|
10
|
+
const e = R();
|
|
11
|
+
V();
|
|
12
|
+
const c = [
|
|
13
|
+
{
|
|
14
|
+
name: "brandkit",
|
|
15
|
+
icon: "style"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "projects",
|
|
19
|
+
icon: "folder"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "builder",
|
|
23
|
+
icon: "build"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "settings",
|
|
27
|
+
icon: "settings"
|
|
28
|
+
}
|
|
29
|
+
], t = h(
|
|
30
|
+
() => (s) => e.matched.map((o) => o.name).includes(s)
|
|
31
|
+
);
|
|
32
|
+
return (s, o) => {
|
|
33
|
+
const a = u("FmButton");
|
|
34
|
+
return i(), m("div", $, [
|
|
35
|
+
(i(), m(f, null, b(c, (n) => l("div", null, [
|
|
36
|
+
r(p(L), {
|
|
37
|
+
to: { name: n.name }
|
|
38
|
+
}, {
|
|
39
|
+
default: _(() => [
|
|
40
|
+
r(a, {
|
|
41
|
+
class: "w-[44px] !h-[44px]",
|
|
42
|
+
size: "lg",
|
|
43
|
+
icon: n.icon,
|
|
44
|
+
"icon-color": t.value(n.name) ? "primary" : "neutral-gray-400",
|
|
45
|
+
"bg-color": t.value(n.name) ? "system-warning-100" : "neutral-white"
|
|
46
|
+
}, null, 8, ["icon", "icon-color", "bg-color"])
|
|
47
|
+
]),
|
|
48
|
+
_: 2
|
|
49
|
+
}, 1032, ["to"])
|
|
50
|
+
])), 64))
|
|
51
|
+
]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}), M = { class: "relative h-[calc(100vh-56px)] w-screen" }, E = { class: "flex w-full h-full" }, q = /* @__PURE__ */ d({
|
|
55
|
+
__name: "App",
|
|
56
|
+
setup(g) {
|
|
57
|
+
const e = C(), c = N(), t = w(!0);
|
|
58
|
+
async function s() {
|
|
59
|
+
var o;
|
|
60
|
+
t.value = !0, (o = e.currentBusiness.value) != null && o._id && (await A(), await c.getPremiumStatus(e.currentBusiness.value._id), t.value = !1);
|
|
61
|
+
}
|
|
62
|
+
return x(async () => {
|
|
63
|
+
console.log(
|
|
64
|
+
`Running v0.5.26.prod.1 on ${e.namespace.value}`
|
|
65
|
+
), e.hideSidebar.value = !0;
|
|
66
|
+
}), y(() => {
|
|
67
|
+
e.hideSidebar.value = !1;
|
|
68
|
+
}), B(
|
|
69
|
+
() => e.currentBusiness.value,
|
|
70
|
+
() => s(),
|
|
71
|
+
{ immediate: !0 }
|
|
72
|
+
), (o, a) => {
|
|
73
|
+
const n = u("FmCircularProgress"), v = u("FmOverlay");
|
|
74
|
+
return i(), m(f, null, [
|
|
75
|
+
a[0] || (a[0] = l("link", {
|
|
76
|
+
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0..1,0",
|
|
77
|
+
rel: "stylesheet"
|
|
78
|
+
}, null, -1)),
|
|
79
|
+
l("div", M, [
|
|
80
|
+
r(p(F), {
|
|
81
|
+
position: "top-right",
|
|
82
|
+
"rich-colors": "",
|
|
83
|
+
"close-button": "",
|
|
84
|
+
duration: 3e3
|
|
85
|
+
}),
|
|
86
|
+
t.value ? (i(), k(v, {
|
|
87
|
+
key: 0,
|
|
88
|
+
"dismiss-away": !1,
|
|
89
|
+
"prevent-backdrop-event": !1,
|
|
90
|
+
transparent: !1,
|
|
91
|
+
"center-content": ""
|
|
92
|
+
}, {
|
|
93
|
+
default: _(() => [
|
|
94
|
+
r(n, { size: "xxl" })
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
})) : S("", !0),
|
|
98
|
+
l("div", E, [
|
|
99
|
+
r(z),
|
|
100
|
+
r(p(P), { class: "flex-1" })
|
|
101
|
+
])
|
|
102
|
+
])
|
|
103
|
+
], 64);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
q as default
|
|
109
|
+
};
|