@feedmepos/mf-brand-app-builder 0.5.17 → 0.5.18
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/App-CKxXz-yv.js +109 -0
- package/dist/{AssetsSettings-CqLnxCVp.js → AssetsSettings-D7stEXBP.js} +11 -10
- package/dist/BaDivider-DWZv3fqi.js +10 -0
- package/dist/BrandkitView-CGFsc8gN.js +8434 -0
- package/dist/BuilderView-h-AD0K_z.js +9403 -0
- package/dist/ColorPicker-BsSFgHSF.js +156 -0
- package/dist/ColorPicker-CHzKbuCD.js +543 -0
- package/dist/{ImageUpload-CSFXBbR9.js → ImageUpload-Bu1QY9Tu.js} +11 -11
- package/dist/{LinkButton-BW3l1VVh.js → LinkButton-DS5DH9B8.js} +57 -56
- package/dist/{ListRepeater-ClJTp-6r.js → ListRepeater-Bjq_VTKB.js} +1 -1
- package/dist/{ManagementSettings-BC4fKORI.js → ManagementSettings-DWh1pA_2.js} +70 -56
- package/dist/ProjectView-BweZwCAj.js +680 -0
- package/dist/Select-DQrjO2Su.js +91 -0
- package/dist/StepperField-BeeZ_sl9.js +30 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{app-PkUx7Ubo.js → app-DKN3IiyF.js} +143 -76
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +52 -0
- package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +2 -0
- package/dist/{components → client/components}/src/components/Homepage.vue.d.ts +2 -0
- package/dist/client/components/src/components/Member/MemberAchievements.vue.d.ts +33 -0
- package/dist/client/components/src/components/Member/MemberCards.vue.d.ts +19 -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/client/components/src/components/NavigationBar.vue.d.ts +17 -0
- package/dist/{components → client/components}/src/components/atoms/Container.vue.d.ts +1 -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/views/_Credit.vue.d.ts +20 -0
- package/dist/client/components/src/views/_MemberProfile.vue.d.ts +46 -0
- package/dist/client/components/src/views/_Point.vue.d.ts +20 -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/{merchant → client/merchant}/src/api/business/index.d.ts +14 -0
- package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +2 -2
- package/dist/{merchant → client/merchant}/src/app.d.ts +1 -1
- package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +15 -0
- package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +2 -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 +2 -1
- package/dist/client/merchant/src/components/inputs/LinkBrandkitColor.vue.d.ts +9 -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 +1 -1
- package/dist/client/merchant/src/composables/useToast/index.d.ts +8 -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/props.d.ts +1 -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/stores/business/index.d.ts +262 -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/views/BuilderView.vue.d.ts +5 -0
- package/dist/client/merchant/src/views/views.d.ts +101 -0
- package/dist/{image-CZHt-VXw.js → image-BYlGZH0E.js} +1 -1
- package/dist/index-BvuwuHni.js +30 -0
- package/dist/index-DBOAICnu.js +198 -0
- package/dist/{index-C9F3TTHx.js → index-DDahVJiF.js} +206 -205
- package/dist/index-DzaJbB6y.js +40 -0
- package/dist/index-bSKZrhdP.js +90 -0
- package/dist/main-pKSbpQEA.js +7928 -0
- package/dist/package.json +8 -2
- package/dist/style.css +1 -1
- package/dist/views-BDWw3w14.js +119 -0
- package/dist/{index-BekN4F_2.js → vue-sonner-PX6Req0V.js} +263 -333
- package/package.json +8 -2
- package/dist/App-BK8oMq3l.js +0 -101
- package/dist/BuilderView-DRVOcsVV.js +0 -5501
- package/dist/ColorPicker-DAysa9fA.js +0 -22
- package/dist/Select-CbQFoAzb.js +0 -25
- package/dist/StepperField-DrHM9EDn.js +0 -29
- package/dist/index-B-LGv3nI.js +0 -188
- package/dist/index-BaHmjvBz.js +0 -25
- package/dist/main-DT3xX1S6.js +0 -6736
- 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 -59
- package/dist/merchant/src/views/HomeView.vue.d.ts +0 -2
- /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/ImageDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderMethod.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/Button.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +0 -0
- /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/LinkSlot.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/utils/image.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/api/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/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/inspector/atoms/ConfigSection.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabTitle.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/helpers/businessUrl.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/mock-data.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/image.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
- /package/dist/{merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts → client/merchant/src/views/BrandkitView.vue.d.ts} +0 -0
- /package/dist/{merchant/src/views/BuilderView.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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent as C, ref as y, computed as F, onMounted as h, resolveComponent as p, openBlock as n, createBlock as v, withCtx as d, createVNode as x, createElementVNode as I, createElementBlock as r, toDisplayString as _, createCommentVNode as c, Fragment as B, renderList as N, normalizeClass as V, createTextVNode as z } from "vue";
|
|
2
|
+
const P = { class: "min-w-[100px] w-full flex items-center justify-between" }, S = ["value"], $ = {
|
|
3
|
+
key: 1,
|
|
4
|
+
class: "h-full fm-typo-en-body-lg-400 text-fm-color-typo-primary select-none cursor-pointer"
|
|
5
|
+
}, j = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex flex-col gap-4 px-8 py-12 min-w-[150px] bg-white rounded-md"
|
|
8
|
+
}, E = ["onClick"], D = /* @__PURE__ */ C({
|
|
9
|
+
__name: "Select",
|
|
10
|
+
props: {
|
|
11
|
+
context: {}
|
|
12
|
+
},
|
|
13
|
+
setup(g) {
|
|
14
|
+
const u = g, s = y(!1), l = y(!1), i = F(() => u.context.selectItems ?? []);
|
|
15
|
+
function m(t) {
|
|
16
|
+
s.value = !1, u.context.node.input(t);
|
|
17
|
+
}
|
|
18
|
+
return h(() => {
|
|
19
|
+
u.context._value && (i.value.find(
|
|
20
|
+
(e) => e.value === u.context._value
|
|
21
|
+
) || (l.value = !0));
|
|
22
|
+
}), (t, e) => {
|
|
23
|
+
const f = p("FmIcon"), b = p("FmButton"), k = p("FmField"), w = p("FmPopover");
|
|
24
|
+
return n(), v(w, {
|
|
25
|
+
"show-popover": s.value,
|
|
26
|
+
onPopoverChanged: e[3] || (e[3] = (o) => s.value = o)
|
|
27
|
+
}, {
|
|
28
|
+
"popover-button": d(() => [
|
|
29
|
+
x(k, {
|
|
30
|
+
size: "sm",
|
|
31
|
+
class: "hover:!border-fm-color-neutral-gray-200"
|
|
32
|
+
}, {
|
|
33
|
+
default: d(() => {
|
|
34
|
+
var o;
|
|
35
|
+
return [
|
|
36
|
+
I("div", P, [
|
|
37
|
+
l.value ? (n(), r("input", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "fm-text-field--input fm-typo-en-body-lg-400 text-fm-color-typo-primary outline-none",
|
|
40
|
+
inputmode: "text",
|
|
41
|
+
placeholder: "",
|
|
42
|
+
type: "text",
|
|
43
|
+
value: t.context._value,
|
|
44
|
+
onChange: e[0] || (e[0] = (a) => m(a.target.value))
|
|
45
|
+
}, null, 40, S)) : (n(), r("div", $, _(((o = i.value.find((a) => a.value === t.context._value)) == null ? void 0 : o.label) || t.context._value), 1)),
|
|
46
|
+
l.value ? c("", !0) : (n(), v(f, {
|
|
47
|
+
key: 2,
|
|
48
|
+
outline: "",
|
|
49
|
+
name: s.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
50
|
+
}, null, 8, ["name"])),
|
|
51
|
+
l.value ? (n(), v(b, {
|
|
52
|
+
key: 3,
|
|
53
|
+
variant: "plain",
|
|
54
|
+
icon: "undo",
|
|
55
|
+
onClick: e[1] || (e[1] = (a) => (m(i.value[0].value), l.value = !1))
|
|
56
|
+
})) : c("", !0)
|
|
57
|
+
])
|
|
58
|
+
];
|
|
59
|
+
}),
|
|
60
|
+
_: 1
|
|
61
|
+
})
|
|
62
|
+
]),
|
|
63
|
+
default: d(() => [
|
|
64
|
+
l.value ? c("", !0) : (n(), r("div", j, [
|
|
65
|
+
(n(!0), r(B, null, N(i.value, (o) => (n(), r("div", {
|
|
66
|
+
onClick: (a) => (m(o.value), l.value = !1),
|
|
67
|
+
class: V(["hover:bg-fm-color-neutral-gray-100 px-8 py-4 cursor-pointer rounded-sm w-full", {
|
|
68
|
+
"!bg-fm-color-system-warning-100": o.value === t.context._value
|
|
69
|
+
}])
|
|
70
|
+
}, _(o.label), 11, E))), 256)),
|
|
71
|
+
t.context.editable ? (n(), r("div", {
|
|
72
|
+
key: 0,
|
|
73
|
+
onClick: e[2] || (e[2] = (o) => (l.value = !0, m(t.context._value))),
|
|
74
|
+
class: "hover:bg-fm-color-neutral-gray-100 px-8 py-4 cursor-pointer rounded-sm flex items-center justify-between gap-4 text-fm-color-primary w-[150px]"
|
|
75
|
+
}, [
|
|
76
|
+
e[4] || (e[4] = z(" Customize ")),
|
|
77
|
+
x(f, {
|
|
78
|
+
outline: "",
|
|
79
|
+
name: "edit_square"
|
|
80
|
+
})
|
|
81
|
+
])) : c("", !0)
|
|
82
|
+
]))
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["show-popover"]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
D as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as l, computed as c, resolveComponent as d, openBlock as s, createBlock as i } from "vue";
|
|
2
|
+
const r = /* @__PURE__ */ l({
|
|
3
|
+
__name: "StepperField",
|
|
4
|
+
props: {
|
|
5
|
+
context: {}
|
|
6
|
+
},
|
|
7
|
+
setup(n) {
|
|
8
|
+
const t = n;
|
|
9
|
+
function o(e) {
|
|
10
|
+
t.context.node.input(`${e}${t.context.suffix}`);
|
|
11
|
+
}
|
|
12
|
+
const p = c(() => +t.context._value.replace(t.context.suffix, ""));
|
|
13
|
+
return (e, u) => {
|
|
14
|
+
const a = d("FmStepperField");
|
|
15
|
+
return s(), i(a, {
|
|
16
|
+
class: "max-w-[160px]",
|
|
17
|
+
"model-value": p.value,
|
|
18
|
+
disabled: e.context.disabled ?? !1,
|
|
19
|
+
"onUpdate:modelValue": o,
|
|
20
|
+
"append-text": e.context.suffix,
|
|
21
|
+
step: 1,
|
|
22
|
+
min: Number(e.context.min),
|
|
23
|
+
"max-fraction-digits": 0
|
|
24
|
+
}, null, 8, ["model-value", "disabled", "append-text", "min"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
r as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as c,
|
|
7
|
+
l as g
|
|
8
|
+
};
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, defineComponent as dr, getCurrentInstance as ct, markRaw as nt, watch as Re, watchEffect as ne, reactive as Ie, onMounted as yr, onUnmounted as vn, ref as z, isRef as pt, h as mt, inject as qe, computed as me, provide as gn, toRef as hn, onBeforeUnmount as bn, nextTick as $n, triggerRef as Te, isReactive as Dt, createTextVNode as _n, resolveComponent as wn } from "vue";
|
|
2
2
|
const vo = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
{
|
|
4
|
+
path: "/",
|
|
5
|
+
name: "brandkit",
|
|
6
|
+
component: L(() => import("./BrandkitView-CGFsc8gN.js"))
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
path: "/projects",
|
|
10
|
+
name: "projects",
|
|
11
|
+
component: L(() => import("./ProjectView-BweZwCAj.js"))
|
|
12
|
+
},
|
|
8
13
|
{
|
|
9
14
|
path: "/builder",
|
|
10
|
-
name: "builder",
|
|
11
|
-
|
|
15
|
+
redirect: { name: "builder" },
|
|
16
|
+
children: [
|
|
17
|
+
{
|
|
18
|
+
path: ":templateId(.*)*",
|
|
19
|
+
name: "builder",
|
|
20
|
+
component: L(
|
|
21
|
+
() => import("./BuilderView-h-AD0K_z.js")
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
]
|
|
12
25
|
},
|
|
13
26
|
{
|
|
14
27
|
path: "/settings",
|
|
@@ -19,27 +32,31 @@ const vo = [
|
|
|
19
32
|
{
|
|
20
33
|
path: "assets",
|
|
21
34
|
name: "settings-assets",
|
|
22
|
-
component: L(
|
|
35
|
+
component: L(
|
|
36
|
+
() => import("./AssetsSettings-D7stEXBP.js")
|
|
37
|
+
)
|
|
23
38
|
},
|
|
24
39
|
{
|
|
25
40
|
path: "management",
|
|
26
41
|
name: "settings-management",
|
|
27
|
-
component: L(
|
|
42
|
+
component: L(
|
|
43
|
+
() => import("./ManagementSettings-DWh1pA_2.js")
|
|
44
|
+
)
|
|
28
45
|
}
|
|
29
46
|
]
|
|
30
47
|
},
|
|
31
48
|
// temp until home view is done
|
|
32
49
|
{
|
|
33
50
|
path: "/",
|
|
34
|
-
redirect: { name: "
|
|
51
|
+
redirect: { name: "brandkit" }
|
|
35
52
|
},
|
|
36
53
|
{
|
|
37
54
|
path: "",
|
|
38
|
-
redirect: { name: "
|
|
55
|
+
redirect: { name: "brandkit" }
|
|
39
56
|
},
|
|
40
57
|
{
|
|
41
58
|
path: "/:pathMatch(.*)",
|
|
42
|
-
redirect: { name: "
|
|
59
|
+
redirect: { name: "brandkit" }
|
|
43
60
|
}
|
|
44
61
|
];
|
|
45
62
|
var vr = [
|
|
@@ -117,20 +134,20 @@ function Cn(e) {
|
|
|
117
134
|
n.reduce((s, i) => s.replace(i, r[i]), t)
|
|
118
135
|
);
|
|
119
136
|
}
|
|
120
|
-
function
|
|
137
|
+
function Be(e) {
|
|
121
138
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
122
139
|
}
|
|
123
140
|
function je(e) {
|
|
124
|
-
return
|
|
141
|
+
return Be(e) || Array.isArray(e);
|
|
125
142
|
}
|
|
126
143
|
function Se(e) {
|
|
127
|
-
if (
|
|
144
|
+
if (Be(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
|
|
128
145
|
return !1;
|
|
129
146
|
const t = e.constructor;
|
|
130
147
|
if (t === void 0)
|
|
131
148
|
return !0;
|
|
132
149
|
const r = t.prototype;
|
|
133
|
-
return !(
|
|
150
|
+
return !(Be(r) === !1 || r.hasOwnProperty("isPrototypeOf") === !1);
|
|
134
151
|
}
|
|
135
152
|
var le = /* @__NO_SIDE_EFFECTS__ */ (e, t, r = !1, n = !1) => {
|
|
136
153
|
if (t === null)
|
|
@@ -238,7 +255,7 @@ function Ae(e, t = vr) {
|
|
|
238
255
|
});
|
|
239
256
|
return r;
|
|
240
257
|
}
|
|
241
|
-
function
|
|
258
|
+
function B(e) {
|
|
242
259
|
return typeof e == "object" ? Ae(e) : e;
|
|
243
260
|
}
|
|
244
261
|
function In(e, t) {
|
|
@@ -386,7 +403,7 @@ var Tt = {
|
|
|
386
403
|
remove: br,
|
|
387
404
|
filter: Tn,
|
|
388
405
|
reduce: Kn,
|
|
389
|
-
release:
|
|
406
|
+
release: Un,
|
|
390
407
|
touch: qn
|
|
391
408
|
};
|
|
392
409
|
function Dn(e = !1) {
|
|
@@ -506,10 +523,10 @@ function $r(e, t) {
|
|
|
506
523
|
}
|
|
507
524
|
);
|
|
508
525
|
}
|
|
509
|
-
function
|
|
526
|
+
function Un(e, t) {
|
|
510
527
|
t.buffer = !1, t._b.forEach(([r, n]) => t.apply(r, n)), t._b = [];
|
|
511
528
|
}
|
|
512
|
-
function
|
|
529
|
+
function Bn() {
|
|
513
530
|
const e = {};
|
|
514
531
|
let t;
|
|
515
532
|
return {
|
|
@@ -641,11 +658,11 @@ function kr(e, t) {
|
|
|
641
658
|
const r = typeof e == "string" ? Ve(e) : e;
|
|
642
659
|
if (r) {
|
|
643
660
|
const n = (a) => {
|
|
644
|
-
const l =
|
|
661
|
+
const l = B(a.props.initial);
|
|
645
662
|
return l !== void 0 ? l : a.type === "group" ? {} : a.type === "list" ? [] : void 0;
|
|
646
663
|
};
|
|
647
664
|
r._e.pause(r);
|
|
648
|
-
const s =
|
|
665
|
+
const s = B(t);
|
|
649
666
|
return t && !Z(t) && (r.props.initial = je(s) ? Ce(s) : s, r.props._init = r.props.initial), r.input(n(r), !1), r.walk((a) => {
|
|
650
667
|
a.type === "list" && a.sync || a.input(n(a), !1);
|
|
651
668
|
}), r.input(
|
|
@@ -867,7 +884,7 @@ function ys(e, t, r) {
|
|
|
867
884
|
Array.isArray(r) || n.forEach((o) => {
|
|
868
885
|
"default" in r[o] && e.props[o] === void 0 && (e.props[o] = s[o]);
|
|
869
886
|
});
|
|
870
|
-
const l =
|
|
887
|
+
const l = B(t._value);
|
|
871
888
|
e.props.initial = e.type !== "input" ? Ce(l) : l, e.props._emit = !0, e.props.attrs = a;
|
|
872
889
|
}
|
|
873
890
|
const i = Ir(e.props.__propDefs ?? [], r);
|
|
@@ -1083,7 +1100,7 @@ function Vs(e, t, r = !0, n) {
|
|
|
1083
1100
|
}
|
|
1084
1101
|
function Ns(e) {
|
|
1085
1102
|
const t = {
|
|
1086
|
-
initial: typeof e == "object" ?
|
|
1103
|
+
initial: typeof e == "object" ? B(e) : e
|
|
1087
1104
|
};
|
|
1088
1105
|
let r, n = !0, s = {};
|
|
1089
1106
|
return new Proxy(t, {
|
|
@@ -1091,7 +1108,7 @@ function Ns(e) {
|
|
|
1091
1108
|
var v, h, O, g;
|
|
1092
1109
|
const [a, l] = i;
|
|
1093
1110
|
let o;
|
|
1094
|
-
P(t, l) ? (o = Reflect.get(...i), (v = s[l]) != null && v.boolean && (o = Rn(o))) : r && typeof l == "string" && r.config[l] !== void 0 ? (o = r.config[l], l === "mergeStrategy" && (r == null ? void 0 : r.type) === "input" &&
|
|
1111
|
+
P(t, l) ? (o = Reflect.get(...i), (v = s[l]) != null && v.boolean && (o = Rn(o))) : r && typeof l == "string" && r.config[l] !== void 0 ? (o = r.config[l], l === "mergeStrategy" && (r == null ? void 0 : r.type) === "input" && Be(o) && r.name in o && (o = o[r.name])) : o = (h = s[l]) == null ? void 0 : h.default;
|
|
1095
1112
|
const y = (O = s[l]) == null ? void 0 : O.getter;
|
|
1096
1113
|
return (g = s[l]) != null && g.boolean && (o = !!o), y ? y(o, r) : o;
|
|
1097
1114
|
},
|
|
@@ -1140,7 +1157,7 @@ function qs(e) {
|
|
|
1140
1157
|
hook: is(),
|
|
1141
1158
|
isCreated: !1,
|
|
1142
1159
|
isSettled: !0,
|
|
1143
|
-
ledger:
|
|
1160
|
+
ledger: Bn(),
|
|
1144
1161
|
name: ls(e),
|
|
1145
1162
|
parent: e.parent || null,
|
|
1146
1163
|
plugins: /* @__PURE__ */ new Set(),
|
|
@@ -1219,7 +1236,7 @@ function he(e) {
|
|
|
1219
1236
|
function Hs(e) {
|
|
1220
1237
|
return typeof e != "string" && "$formkit" in e;
|
|
1221
1238
|
}
|
|
1222
|
-
function
|
|
1239
|
+
function Us(e) {
|
|
1223
1240
|
if (typeof e == "string")
|
|
1224
1241
|
return {
|
|
1225
1242
|
$el: "text",
|
|
@@ -1430,7 +1447,7 @@ function He(e, t, r) {
|
|
|
1430
1447
|
r(t, e)
|
|
1431
1448
|
) : r : {};
|
|
1432
1449
|
}
|
|
1433
|
-
function
|
|
1450
|
+
function Bs(e, t, ...r) {
|
|
1434
1451
|
const n = r.reduce((s, i) => {
|
|
1435
1452
|
if (!i)
|
|
1436
1453
|
return at(s);
|
|
@@ -1704,9 +1721,9 @@ var Gs = Nr, Js = function({ value: e }, t = !1) {
|
|
|
1704
1721
|
latin: /^[a-z]+$/
|
|
1705
1722
|
}, n = P(r, t) ? t : "default";
|
|
1706
1723
|
return r[n].test(String(e));
|
|
1707
|
-
},
|
|
1724
|
+
}, Ui = Hi, Bi = function({ value: t }, ...r) {
|
|
1708
1725
|
return r.some((n) => (typeof n == "string" && n.substr(0, 1) === "/" && n.substr(-1) === "/" && (n = new RegExp(n.substr(1, n.length - 2))), n instanceof RegExp ? n.test(String(t)) : n === t));
|
|
1709
|
-
}, Zi =
|
|
1726
|
+
}, Zi = Bi, Yi = function({ value: t }, r = 10) {
|
|
1710
1727
|
return Array.isArray(t) ? t.length <= r : Number(t) <= Number(r);
|
|
1711
1728
|
}, Gi = Yi, Ji = function({ value: t }, r = 1) {
|
|
1712
1729
|
return Array.isArray(t) ? t.length >= r : Number(t) >= Number(r);
|
|
@@ -1770,7 +1787,7 @@ const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1770
1787
|
ends_with: qi,
|
|
1771
1788
|
is: Ki,
|
|
1772
1789
|
length: Wi,
|
|
1773
|
-
lowercase:
|
|
1790
|
+
lowercase: Ui,
|
|
1774
1791
|
matches: Zi,
|
|
1775
1792
|
max: Gi,
|
|
1776
1793
|
min: Qi,
|
|
@@ -1792,20 +1809,20 @@ var _t = /* @__PURE__ */ H({
|
|
|
1792
1809
|
});
|
|
1793
1810
|
function da(e = {}) {
|
|
1794
1811
|
return function(r) {
|
|
1795
|
-
let n =
|
|
1812
|
+
let n = B(r.props.validationRules || {}), s = { ...e, ...n };
|
|
1796
1813
|
const i = { input: Ee(), rerun: null, isPassing: !0 };
|
|
1797
|
-
let a =
|
|
1814
|
+
let a = B(r.props.validation);
|
|
1798
1815
|
r.on("prop:validation", ({ payload: o }) => l(o, n)), r.on(
|
|
1799
1816
|
"prop:validationRules",
|
|
1800
1817
|
({ payload: o }) => l(a, o)
|
|
1801
1818
|
);
|
|
1802
1819
|
function l(o, y) {
|
|
1803
1820
|
var v;
|
|
1804
|
-
T(Object.keys(n || {}), Object.keys(y || {})) && T(a, o) || (n =
|
|
1821
|
+
T(Object.keys(n || {}), Object.keys(y || {})) && T(a, o) || (n = B(y), a = B(o), s = { ...e, ...n }, (v = r.props.parsedRules) == null || v.forEach((h) => {
|
|
1805
1822
|
qr(h), jr(h.observer.receipts), h.observer.kill();
|
|
1806
|
-
}), r.store.filter(() => !1, "validation"), r.props.parsedRules =
|
|
1823
|
+
}), r.store.filter(() => !1, "validation"), r.props.parsedRules = Ut(o, s, r), i.isPassing = !0, wt(r, r.props.parsedRules, i));
|
|
1807
1824
|
}
|
|
1808
|
-
r.props.parsedRules =
|
|
1825
|
+
r.props.parsedRules = Ut(a, s, r), wt(r, r.props.parsedRules, i);
|
|
1809
1826
|
};
|
|
1810
1827
|
}
|
|
1811
1828
|
function wt(e, t, r) {
|
|
@@ -1943,7 +1960,7 @@ var Kr = "(?:[\\*+?()0-9]+)", zr = "[a-zA-Z][a-zA-Z0-9_]+", ba = new RegExp(
|
|
|
1943
1960
|
skipEmpty: !0,
|
|
1944
1961
|
name: ""
|
|
1945
1962
|
};
|
|
1946
|
-
function
|
|
1963
|
+
function Ut(e, t, r) {
|
|
1947
1964
|
return e ? (typeof e == "string" ? ka(e) : Ae(e)).reduce((s, i) => {
|
|
1948
1965
|
let a = i.shift();
|
|
1949
1966
|
const l = {};
|
|
@@ -2011,7 +2028,7 @@ function Ca(e, t) {
|
|
|
2011
2028
|
function I(e) {
|
|
2012
2029
|
return e[0].toUpperCase() + e.substr(1);
|
|
2013
2030
|
}
|
|
2014
|
-
function
|
|
2031
|
+
function Bt(e, t = "or") {
|
|
2015
2032
|
return e.reduce((r, n, s) => (r += n, s <= e.length - 2 && e.length > 2 && (r += ", "), s === e.length - 2 && (r += `${e.length === 2 ? " " : ""}${t} `), r), "");
|
|
2016
2033
|
}
|
|
2017
2034
|
function Ke(e) {
|
|
@@ -2265,7 +2282,7 @@ var Ea = {
|
|
|
2265
2282
|
* @see {@link https://formkit.com/essentials/validation#ends-with}
|
|
2266
2283
|
*/
|
|
2267
2284
|
ends_with({ name: e, args: t }) {
|
|
2268
|
-
return `${I(e)} doesn’t end with ${
|
|
2285
|
+
return `${I(e)} doesn’t end with ${Bt(t)}.`;
|
|
2269
2286
|
},
|
|
2270
2287
|
/**
|
|
2271
2288
|
* Is not an allowed value
|
|
@@ -2347,7 +2364,7 @@ var Ea = {
|
|
|
2347
2364
|
* @see {@link https://formkit.com/essentials/validation#starts-with}
|
|
2348
2365
|
*/
|
|
2349
2366
|
starts_with({ name: e, args: t }) {
|
|
2350
|
-
return `${I(e)} doesn’t start with ${
|
|
2367
|
+
return `${I(e)} doesn’t start with ${Bt(t)}.`;
|
|
2351
2368
|
},
|
|
2352
2369
|
/**
|
|
2353
2370
|
* Is not a url
|
|
@@ -2545,13 +2562,13 @@ var Fa = /* @__PURE__ */ A("actions", () => ({
|
|
|
2545
2562
|
attrs: {
|
|
2546
2563
|
id: '$: "help-" + $option.attrs.id'
|
|
2547
2564
|
}
|
|
2548
|
-
})), Qe = /* @__PURE__ */ A("inner", "span"), Xe = /* @__PURE__ */ A("label", "span"),
|
|
2565
|
+
})), Qe = /* @__PURE__ */ A("inner", "span"), Xe = /* @__PURE__ */ A("label", "span"), Ur = /* @__PURE__ */ A("option", () => ({
|
|
2549
2566
|
$el: "li",
|
|
2550
2567
|
for: ["option", "$options"],
|
|
2551
2568
|
attrs: {
|
|
2552
2569
|
"data-disabled": "$option.attrs.disabled || $disabled || undefined"
|
|
2553
2570
|
}
|
|
2554
|
-
})),
|
|
2571
|
+
})), Br = /* @__PURE__ */ A("options", "ul"), et = /* @__PURE__ */ A("wrapper", () => ({
|
|
2555
2572
|
$el: "label",
|
|
2556
2573
|
attrs: {
|
|
2557
2574
|
"data-disabled": {
|
|
@@ -2735,7 +2752,7 @@ var Fa = /* @__PURE__ */ A("actions", () => ({
|
|
|
2735
2752
|
"aria-describedby": "$describedBy",
|
|
2736
2753
|
"aria-required": "$state.required || undefined"
|
|
2737
2754
|
}
|
|
2738
|
-
})),
|
|
2755
|
+
})), Ua = /* @__PURE__ */ A("submit", () => ({
|
|
2739
2756
|
$cmp: "FormKit",
|
|
2740
2757
|
bind: "$submitAttrs",
|
|
2741
2758
|
props: {
|
|
@@ -2756,7 +2773,7 @@ var Fa = /* @__PURE__ */ A("actions", () => ({
|
|
|
2756
2773
|
"aria-describedby": "$describedBy",
|
|
2757
2774
|
"aria-required": "$state.required || undefined"
|
|
2758
2775
|
}
|
|
2759
|
-
})),
|
|
2776
|
+
})), Ba = /* @__PURE__ */ A("input", () => ({
|
|
2760
2777
|
$el: "textarea",
|
|
2761
2778
|
bind: "$attrs",
|
|
2762
2779
|
attrs: {
|
|
@@ -2826,7 +2843,7 @@ function Ft(e) {
|
|
|
2826
2843
|
e.config.disabled = G(t);
|
|
2827
2844
|
});
|
|
2828
2845
|
}
|
|
2829
|
-
function
|
|
2846
|
+
function Ue(e, t) {
|
|
2830
2847
|
return (r) => {
|
|
2831
2848
|
r.store.set(
|
|
2832
2849
|
/* @__PURE__ */ H({
|
|
@@ -2849,7 +2866,7 @@ function Xt(e, t) {
|
|
|
2849
2866
|
t.target instanceof HTMLInputElement ? e === "dragover" && t.target.setAttribute("data-file-hover", "true") : t.preventDefault(), e === "drop" && Xr(t);
|
|
2850
2867
|
}
|
|
2851
2868
|
function Xa(e) {
|
|
2852
|
-
|
|
2869
|
+
Ue("noFiles", "Select file")(e), Ue("removeAll", "Remove all")(e), Ue("remove")(e), e.addProps(["_hasMultipleFiles"]), lt && (window._FormKit_File_Drop || (window.addEventListener(
|
|
2853
2870
|
"dragover",
|
|
2854
2871
|
Xt.bind(null, "dragover")
|
|
2855
2872
|
), window.addEventListener("drop", Xt.bind(null, "drop")), window.addEventListener("dragleave", Xr), window._FormKit_File_Drop = !0)), e.hook.input((t, r) => r(Array.isArray(t) ? t : [])), e.on("input", ({ payload: t }) => {
|
|
@@ -3122,7 +3139,7 @@ var rr = {
|
|
|
3122
3139
|
/**
|
|
3123
3140
|
* Additional features that should be added to your input
|
|
3124
3141
|
*/
|
|
3125
|
-
features: [
|
|
3142
|
+
features: [Ue("submit"), rl],
|
|
3126
3143
|
/**
|
|
3127
3144
|
* A key to use for memoizing the schema. This is used to prevent the schema
|
|
3128
3145
|
* from needing to be stringified when performing a memo lookup.
|
|
@@ -3150,8 +3167,8 @@ var rr = {
|
|
|
3150
3167
|
/* @__PURE__ */ Zr(
|
|
3151
3168
|
/* @__PURE__ */ Yr("$label"),
|
|
3152
3169
|
/* @__PURE__ */ ee("$help"),
|
|
3153
|
-
/* @__PURE__ */
|
|
3154
|
-
/* @__PURE__ */
|
|
3170
|
+
/* @__PURE__ */ Br(
|
|
3171
|
+
/* @__PURE__ */ Ur(
|
|
3155
3172
|
/* @__PURE__ */ et(
|
|
3156
3173
|
/* @__PURE__ */ Qe(
|
|
3157
3174
|
/* @__PURE__ */ te(),
|
|
@@ -3270,7 +3287,7 @@ var rr = {
|
|
|
3270
3287
|
schema: /* @__PURE__ */ Ka(
|
|
3271
3288
|
"$slots.default",
|
|
3272
3289
|
/* @__PURE__ */ ue(/* @__PURE__ */ oe("$message.value")),
|
|
3273
|
-
/* @__PURE__ */ Fa(/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ Fa(/* @__PURE__ */ Ua())
|
|
3274
3291
|
),
|
|
3275
3292
|
/**
|
|
3276
3293
|
* The type of node, can be a list, group, or input.
|
|
@@ -3385,8 +3402,8 @@ var rr = {
|
|
|
3385
3402
|
/* @__PURE__ */ Zr(
|
|
3386
3403
|
/* @__PURE__ */ Yr("$label"),
|
|
3387
3404
|
/* @__PURE__ */ ee("$help"),
|
|
3388
|
-
/* @__PURE__ */
|
|
3389
|
-
/* @__PURE__ */
|
|
3405
|
+
/* @__PURE__ */ Br(
|
|
3406
|
+
/* @__PURE__ */ Ur(
|
|
3390
3407
|
/* @__PURE__ */ et(
|
|
3391
3408
|
/* @__PURE__ */ Qe(
|
|
3392
3409
|
/* @__PURE__ */ te(),
|
|
@@ -3492,7 +3509,7 @@ var rr = {
|
|
|
3492
3509
|
/* @__PURE__ */ De(
|
|
3493
3510
|
/* @__PURE__ */ D("prefix", "label"),
|
|
3494
3511
|
/* @__PURE__ */ te(),
|
|
3495
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ Ba(),
|
|
3496
3513
|
/* @__PURE__ */ re(),
|
|
3497
3514
|
/* @__PURE__ */ D("suffix")
|
|
3498
3515
|
)
|
|
@@ -3829,7 +3846,7 @@ var Rl = (e, t) => {
|
|
|
3829
3846
|
N,
|
|
3830
3847
|
N.props[`${C}Class`]
|
|
3831
3848
|
);
|
|
3832
|
-
V =
|
|
3849
|
+
V = Bs(
|
|
3833
3850
|
N,
|
|
3834
3851
|
C,
|
|
3835
3852
|
ce,
|
|
@@ -3918,7 +3935,7 @@ var Rl = (e, t) => {
|
|
|
3918
3935
|
classes: S
|
|
3919
3936
|
});
|
|
3920
3937
|
t.on("created", () => {
|
|
3921
|
-
T(p.value, t.value) || (u.value = t.value, w.value = t.value, Te(w), Te(u)), (async () => (await t.settled, t && (t.props._init =
|
|
3938
|
+
T(p.value, t.value) || (u.value = t.value, w.value = t.value, Te(w), Te(u)), (async () => (await t.settled, t && (t.props._init = B(t.value))))();
|
|
3922
3939
|
}), t.on("mounted", () => {
|
|
3923
3940
|
p.didMount = !0;
|
|
3924
3941
|
}), t.on("settled", ({ payload: f }) => {
|
|
@@ -4124,7 +4141,7 @@ function ur(e, t, r) {
|
|
|
4124
4141
|
}
|
|
4125
4142
|
function a(g, b) {
|
|
4126
4143
|
let c = null, m = () => null, d = !1, _ = null, S = null, $ = null, w = !1;
|
|
4127
|
-
const u =
|
|
4144
|
+
const u = Us(b);
|
|
4128
4145
|
if (bt(u) ? (c = u.$el, m = u.$el !== "text" ? i(u.attrs, u.bind) : () => null) : $t(u) ? (typeof u.$cmp == "string" ? P(g, u.$cmp) ? c = g[u.$cmp] : (c = u.$cmp, w = !0) : c = u.$cmp, m = i(u.props, u.bind)) : he(u) && ([d, _, S] = n(g, u)), !he(u) && "if" in u ? d = h(Y(u.if)) : !he(u) && c === null && (d = () => !0), "children" in u && u.children)
|
|
4129
4146
|
if (typeof u.children == "string")
|
|
4130
4147
|
if (u.children.startsWith("$slots."))
|
|
@@ -4341,7 +4358,7 @@ var pn = /* @__PURE__ */ dr({
|
|
|
4341
4358
|
}
|
|
4342
4359
|
return yr(() => t.emit("mounted")), vn(o), ql((y = ct()) == null ? void 0 : y.appContext.app, o), () => a ? a() : null;
|
|
4343
4360
|
}
|
|
4344
|
-
}),
|
|
4361
|
+
}), Ul = pn, Bl = typeof window > "u", pr = Symbol("FormKitParent"), Zl = Symbol("FormKitComponentCallback");
|
|
4345
4362
|
function Yl(e, t) {
|
|
4346
4363
|
const r = no(e, t);
|
|
4347
4364
|
if (r.props.definition || W(600, r), r.props.definition.component)
|
|
@@ -4362,7 +4379,7 @@ function Yl(e, t) {
|
|
|
4362
4379
|
const y = (h = (v = r.props) == null ? void 0 : v.definition) == null ? void 0 : h.schema;
|
|
4363
4380
|
y || W(601, r), typeof y == "function" ? (n.value = y({ ...e.sectionsSchema || {} }), (s && e.sectionsSchema || "memoKey" in y && typeof y.memoKey == "string") && (s = (s ?? (y == null ? void 0 : y.memoKey)) + JSON.stringify(e.sectionsSchema))) : n.value = y;
|
|
4364
4381
|
};
|
|
4365
|
-
i(),
|
|
4382
|
+
i(), Bl || r.on("schema", () => {
|
|
4366
4383
|
s += "♻️", i();
|
|
4367
4384
|
}), t.emit("node", r);
|
|
4368
4385
|
const a = r.props.definition.library, l = {
|
|
@@ -4393,7 +4410,7 @@ var mn = /* @__PURE__ */ dr(
|
|
|
4393
4410
|
}
|
|
4394
4411
|
), dn = mn, Gl = Symbol();
|
|
4395
4412
|
function Jl(e, t) {
|
|
4396
|
-
return e.component(t.alias || "FormKit", dn).component(t.schemaAlias || "FormKitSchema",
|
|
4413
|
+
return e.component(t.alias || "FormKit", dn).component(t.schemaAlias || "FormKitSchema", Ul), {
|
|
4397
4414
|
get: Ve,
|
|
4398
4415
|
setLocale: (r) => {
|
|
4399
4416
|
var n;
|
|
@@ -4456,7 +4473,7 @@ function no(e, t, r = {}) {
|
|
|
4456
4473
|
yr(() => {
|
|
4457
4474
|
y = !0;
|
|
4458
4475
|
});
|
|
4459
|
-
const v = e.modelValue !== void 0 ? e.modelValue :
|
|
4476
|
+
const v = e.modelValue !== void 0 ? e.modelValue : B(t.attrs.value);
|
|
4460
4477
|
function h() {
|
|
4461
4478
|
const u = {
|
|
4462
4479
|
...ge(e),
|
|
@@ -4578,7 +4595,7 @@ function no(e, t, r = {}) {
|
|
|
4578
4595
|
let w;
|
|
4579
4596
|
return b.on("modelUpdated", () => {
|
|
4580
4597
|
var u, p;
|
|
4581
|
-
t.emit("inputRaw", (u = b.context) == null ? void 0 : u.value, b), y && t.emit("input", (p = b.context) == null ? void 0 : p.value, b), o && b.context && (w =
|
|
4598
|
+
t.emit("inputRaw", (u = b.context) == null ? void 0 : u.value, b), y && t.emit("input", (p = b.context) == null ? void 0 : p.value, b), o && b.context && (w = B(b.value), t.emit("update:modelValue", dt(b.value)));
|
|
4582
4599
|
}), o && (Re(
|
|
4583
4600
|
hn(e, "modelValue"),
|
|
4584
4601
|
(u) => {
|
|
@@ -4591,7 +4608,7 @@ var so = 1;
|
|
|
4591
4608
|
function io(e) {
|
|
4592
4609
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
4593
4610
|
}
|
|
4594
|
-
function
|
|
4611
|
+
function U(e, t = {}, r = {}) {
|
|
4595
4612
|
const n = {
|
|
4596
4613
|
type: "input",
|
|
4597
4614
|
...t
|
|
@@ -4605,7 +4622,7 @@ function B(e, t = {}, r = {}) {
|
|
|
4605
4622
|
context: "$node.context"
|
|
4606
4623
|
}
|
|
4607
4624
|
})), n.library = { [i]: nt(e) };
|
|
4608
|
-
} else typeof e == "function" ? s = e : s = /* @__PURE__ */ A("input", () =>
|
|
4625
|
+
} else typeof e == "function" ? s = e : s = /* @__PURE__ */ A("input", () => B(e));
|
|
4609
4626
|
return n.schema = /* @__PURE__ */ cl(s || "Schema undefined", r), n.schemaMemoKey || (n.schemaMemoKey = `${Math.random()}`), n;
|
|
4610
4627
|
}
|
|
4611
4628
|
var ao = /* @__PURE__ */ A("messages", () => ({
|
|
@@ -4665,22 +4682,72 @@ const go = (e) => {
|
|
|
4665
4682
|
Xl,
|
|
4666
4683
|
Vt({
|
|
4667
4684
|
inputs: {
|
|
4668
|
-
BaTextField:
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4685
|
+
BaTextField: U(
|
|
4686
|
+
L(
|
|
4687
|
+
() => import("./TextField-BiVH5rLX.js")
|
|
4688
|
+
)
|
|
4689
|
+
),
|
|
4690
|
+
BaStepperField: U(
|
|
4691
|
+
L(
|
|
4692
|
+
() => import("./StepperField-BeeZ_sl9.js")
|
|
4693
|
+
),
|
|
4694
|
+
{ props: ["suffix", "disabled", "min"] }
|
|
4695
|
+
),
|
|
4696
|
+
BaColorPicker: U(
|
|
4697
|
+
L(
|
|
4698
|
+
() => import("./ColorPicker-BsSFgHSF.js")
|
|
4699
|
+
)
|
|
4700
|
+
),
|
|
4701
|
+
BaSelect: U(
|
|
4702
|
+
L(
|
|
4703
|
+
() => import("./Select-DQrjO2Su.js")
|
|
4704
|
+
),
|
|
4705
|
+
{ props: ["selectItems", "editable"] }
|
|
4706
|
+
),
|
|
4707
|
+
BaListRepeater: U(
|
|
4708
|
+
L(
|
|
4709
|
+
() => import("./ListRepeater-Bjq_VTKB.js")
|
|
4710
|
+
)
|
|
4711
|
+
),
|
|
4712
|
+
BaTextStyleList: U(
|
|
4713
|
+
L(
|
|
4714
|
+
() => import("./TextStyleList-CuPE80Py.js")
|
|
4715
|
+
)
|
|
4716
|
+
),
|
|
4717
|
+
BaTextAlign: U(
|
|
4718
|
+
L(
|
|
4719
|
+
() => import("./TextAlign-BOC8ekaH.js")
|
|
4720
|
+
)
|
|
4721
|
+
),
|
|
4722
|
+
BaTextDecorators: U(
|
|
4723
|
+
L(
|
|
4724
|
+
() => import("./TextDecorators-BJC4umDR.js")
|
|
4725
|
+
)
|
|
4726
|
+
),
|
|
4727
|
+
BaImageUpload: U(
|
|
4728
|
+
L(
|
|
4729
|
+
() => import("./ImageUpload-Bu1QY9Tu.js")
|
|
4730
|
+
),
|
|
4731
|
+
{ props: ["ignoreUpdate"] }
|
|
4732
|
+
),
|
|
4733
|
+
BaLinkButton: U(
|
|
4734
|
+
L(
|
|
4735
|
+
() => import("./LinkButton-DS5DH9B8.js")
|
|
4736
|
+
)
|
|
4737
|
+
),
|
|
4738
|
+
BaSwitch: U(
|
|
4739
|
+
L(() => import("./Switch-8mmNQUDo.js"))
|
|
4740
|
+
),
|
|
4741
|
+
BaButtonGroup: U(
|
|
4742
|
+
L(
|
|
4743
|
+
() => import("./ButtonGroup-B3ba45VA.js")
|
|
4744
|
+
),
|
|
4745
|
+
{ props: ["groupItems"] }
|
|
4746
|
+
)
|
|
4680
4747
|
}
|
|
4681
4748
|
})
|
|
4682
4749
|
);
|
|
4683
|
-
}, ho = L(() => import("./App-
|
|
4750
|
+
}, ho = L(() => import("./App-CKxXz-yv.js"));
|
|
4684
4751
|
export {
|
|
4685
4752
|
dn as F,
|
|
4686
4753
|
pn as a,
|