@feedmepos/mf-brand-app-builder 0.5.33-prod → 0.5.34-dev.2
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-DJtSFF0b.js → App-DCqGS354.js} +7 -7
- package/dist/{AssetsSettings-F-AJxGfJ.js → AssetsSettings-DtZ6goQl.js} +22 -22
- package/dist/{BrandkitView-kCfJD399.js → BrandkitView-DjsOzNuT.js} +2087 -2054
- package/dist/{BuilderView-CwkHLsXN.js → BuilderView-4X7XucGF.js} +7 -7
- package/dist/{ImageUpload-U-gz7WBm.js → ImageUpload-1eIG90lr.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-Cl4iMK2W.js → ListRepeater-DTAI73FN.js} +1 -1
- package/dist/{ManagementSettings-CywfdXkh.js → ManagementSettings-D0goBMzs.js} +104 -93
- package/dist/{ProjectView-DKXRpIC6.js → ProjectView-ByxaVBFb.js} +1 -1
- package/dist/{app-CgJDqvV4.js → app-COVZ5eta.js} +180 -152
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +3 -0
- package/dist/client/merchant/src/app.d.ts +28 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +18 -0
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-ChqSdT0a.js → index-BA2J-Ffh.js} +1 -1
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/index-CVVQJJYY.js +134 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-Gc3KE77V.js → main-t9gRTvwQ.js} +3 -3
- package/dist/package.json +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-CjXPwLCp.js +0 -130
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { resolveComponent as V, TransitionGroup as qn, defineComponent as se, nextTick as rn, h as ma, isRef as Qn, isReactive as eo, isProxy as to, toRaw as ao, ref as q, computed as ie, createElementBlock as Z, openBlock as N, Fragment as Be, renderList as vt, createElementVNode as I, createVNode as w, createBlock as ae, createCommentVNode as Q, toDisplayString as j, unref as y, withCtx as M, normalizeClass as ye, watch as tt, withDirectives as Gt, withModifiers as ba, vShow as Xt, createTextVNode as no, onMounted as ln, resolveDynamicComponent as Ma, mergeProps as oo, normalizeProps as ro, guardReactiveProps as io, normalizeStyle as lo, renderSlot as wa, provide as so, inject as co, markRaw as uo } from "vue";
|
|
2
|
-
import { T as po, u as Ge } from "./index-
|
|
2
|
+
import { T as po, u as Ge } from "./index-Bk6TOZrx.js";
|
|
3
3
|
import { defineStore as mo, storeToRefs as bo } from "pinia";
|
|
4
4
|
import { p as fo } from "./views-BDWw3w14.js";
|
|
5
|
-
import { A as go } from "./index-
|
|
5
|
+
import { A as go } from "./index-D0LOMBBD.js";
|
|
6
6
|
import { v as Ra } from "./v4-CKwdnpQf.js";
|
|
7
7
|
import { _ as ho } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
8
8
|
import { B as sn } from "./BaDivider-Cp9gfB4r.js";
|
|
9
9
|
import { useI18n as Ze, useCoreStore as We } from "@feedmepos/mf-common";
|
|
10
|
-
import { C as $a, _ as yo, a as vo } from "./main-
|
|
10
|
+
import { C as $a, _ as yo, a as vo } from "./main-t9gRTvwQ.js";
|
|
11
11
|
import { useDialog as To, components as xo, useSnackbar as Co } from "@feedmepos/ui-library";
|
|
12
12
|
import { useRouter as dn } from "vue-router";
|
|
13
13
|
import { u as Ia, a as _o, b as wo } from "./brandkit-C8uulbNE.js";
|
|
14
|
-
import { u as Ea } from "./index-
|
|
14
|
+
import { u as Ea } from "./index-BA2J-Ffh.js";
|
|
15
15
|
import { K as Io, V as Eo } from "./vue-sonner-CBFYmm8_.js";
|
|
16
|
-
import { F as So, a as Ao } from "./app-
|
|
16
|
+
import { F as So, a as Ao } from "./app-COVZ5eta.js";
|
|
17
17
|
/**!
|
|
18
18
|
* Sortable 1.14.0
|
|
19
19
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -6605,7 +6605,7 @@ const ai = { class: "mb-24" }, ni = { class: "fm-typo-en-title-lg-700 text-fm-co
|
|
|
6605
6605
|
}
|
|
6606
6606
|
async function g() {
|
|
6607
6607
|
var v;
|
|
6608
|
-
const f = `${"https://{slug}.
|
|
6608
|
+
const f = `${"https://{slug}.feedmedev.vip".replace("{slug}", `${r.currentBusiness.value.url ?? ((v = r.currentBusiness.value) == null ? void 0 : v.id)}`)}`;
|
|
6609
6609
|
l.promise(
|
|
6610
6610
|
async () => {
|
|
6611
6611
|
var x;
|
|
@@ -8171,7 +8171,7 @@ _t.toString = Oa.bind(null, function(t, e, a) {
|
|
|
8171
8171
|
const xl = { class: "flex items-center justify-center" }, Cl = { class: "w-full flex gap-8 justify-end items-center" }, _l = /* @__PURE__ */ se({
|
|
8172
8172
|
__name: "PreviewQrCode",
|
|
8173
8173
|
setup(t) {
|
|
8174
|
-
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.
|
|
8174
|
+
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
|
|
8175
8175
|
function i() {
|
|
8176
8176
|
Io.promise(navigator.clipboard.writeText(l.value), {
|
|
8177
8177
|
loading: o("brand.template.shareMenu.copying"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as
|
|
2
|
-
import { r as g, I as h } from "./image-
|
|
1
|
+
import { defineComponent as y, ref as b, resolveComponent as w, createElementBlock as r, openBlock as s, createVNode as c, createCommentVNode as f, Fragment as C, createElementVNode as i, unref as u } from "vue";
|
|
2
|
+
import { r as g, I as h } from "./image-D_Djf1PS.js";
|
|
3
3
|
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
4
|
-
import "./main-
|
|
4
|
+
import "./main-t9gRTvwQ.js";
|
|
5
5
|
import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
6
6
|
import { C as k } from "./CircularProgress-DdblYCtV.js";
|
|
7
7
|
import { v as F } from "./v4-CKwdnpQf.js";
|
|
@@ -22,12 +22,12 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
22
22
|
o
|
|
23
23
|
).then((m) => {
|
|
24
24
|
var p;
|
|
25
|
-
const l = `https://image.
|
|
25
|
+
const l = `https://image.feedmedev.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
|
|
26
26
|
e.context.node.input(l);
|
|
27
27
|
const n = new Image();
|
|
28
28
|
(p = e.context) != null && p.ignoreUpdate || (n.onload = () => {
|
|
29
|
-
var
|
|
30
|
-
((
|
|
29
|
+
var d;
|
|
30
|
+
((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
|
|
31
31
|
}), n.src = g(l);
|
|
32
32
|
}).finally(() => t.value = !1);
|
|
33
33
|
}
|
|
@@ -60,10 +60,10 @@ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] t
|
|
|
60
60
|
class: "!text-[16px] text-fm-color-typo-white"
|
|
61
61
|
})
|
|
62
62
|
])
|
|
63
|
-
], 64)) :
|
|
63
|
+
], 64)) : f("", !0),
|
|
64
64
|
t.value ? (s(), r("div", z, [
|
|
65
65
|
c(u(k))
|
|
66
|
-
])) :
|
|
66
|
+
])) : f("", !0)
|
|
67
67
|
]);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, ref as f, computed as k, onBeforeMount as L, resolveComponent as c, createBlock as v, openBlock as u, withCtx as m, createElementVNode as a, createVNode as r, createElementBlock as x, Fragment as M, renderList as F, toDisplayString as P, withModifiers as R } from "vue";
|
|
2
2
|
import { B as y } from "./BaDivider-Cp9gfB4r.js";
|
|
3
3
|
import { _ as W } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
4
|
-
import { u as $ } from "./index-
|
|
4
|
+
import { u as $ } from "./index-Bk6TOZrx.js";
|
|
5
5
|
import "@feedmepos/mf-common";
|
|
6
6
|
const j = {
|
|
7
7
|
key: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import { F as f } from "./app-
|
|
2
|
+
import { F as f } from "./app-COVZ5eta.js";
|
|
3
3
|
const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ListRepeater",
|
|
5
5
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as C, ref as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { B as
|
|
4
|
-
import { K as
|
|
5
|
-
import { r as
|
|
6
|
-
import { useSnackbar as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as C, ref as k, computed as S, watch as F, resolveComponent as d, createElementBlock as _, openBlock as g, createElementVNode as o, createVNode as m, toDisplayString as B, unref as l, createBlock as I, withCtx as P } from "vue";
|
|
2
|
+
import { useCoreStore as V, useI18n as q } from "@feedmepos/mf-common";
|
|
3
|
+
import { B as v } from "./index-CVVQJJYY.js";
|
|
4
|
+
import { K as T } from "./vue-sonner-CBFYmm8_.js";
|
|
5
|
+
import { r as A, I as D } from "./image-D_Djf1PS.js";
|
|
6
|
+
import { useSnackbar as E } from "@feedmepos/ui-library";
|
|
7
|
+
const N = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), R = [
|
|
8
8
|
"brand",
|
|
9
9
|
"home",
|
|
10
10
|
"app",
|
|
@@ -502,122 +502,133 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
502
502
|
"za",
|
|
503
503
|
"zm",
|
|
504
504
|
"zw"
|
|
505
|
-
],
|
|
505
|
+
], K = { class: "w-full flex flex-col gap-40" }, L = { class: "flex flex-col gap-24" }, M = { class: "w-full flex items-center justify-between h-[36px]" }, O = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, G = { class: "w-full flex gap-32" }, H = { class: "relative shrink-0 h-[100px] w-[100px]" }, J = ["src"], Q = { class: "absolute -top-8 -right-8 rounded-full h-32 w-32 border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white flex justify-center items-center" }, W = { class: "w-full flex flex-col gap-24 max-w-[400px]" }, X = { class: "text-fm-color-typo-secondary" }, re = /* @__PURE__ */ C({
|
|
506
506
|
__name: "ManagementSettings",
|
|
507
|
-
setup(
|
|
508
|
-
const
|
|
507
|
+
setup(Y) {
|
|
508
|
+
const e = V(), b = E(), { t: r } = q(), p = k(!0), n = k({
|
|
509
509
|
name: "",
|
|
510
510
|
url: "",
|
|
511
511
|
thumbnail: ""
|
|
512
512
|
}), x = S(
|
|
513
|
-
() => "https://{slug}.
|
|
513
|
+
() => "https://{slug}.feedmedev.vip".replace("https://{slug}", "")
|
|
514
514
|
);
|
|
515
|
-
function
|
|
516
|
-
var
|
|
515
|
+
function h(t) {
|
|
516
|
+
var a;
|
|
517
|
+
const s = (a = e.currentBusiness.value) == null ? void 0 : a._id;
|
|
518
|
+
return s ? t || s : "";
|
|
519
|
+
}
|
|
520
|
+
function j(t) {
|
|
521
|
+
var a;
|
|
522
|
+
const s = (a = e.currentBusiness.value) == null ? void 0 : a._id;
|
|
523
|
+
return !t || t === s ? "" : t;
|
|
524
|
+
}
|
|
525
|
+
function z() {
|
|
526
|
+
var t;
|
|
517
527
|
navigator.clipboard.writeText(
|
|
518
|
-
"https://{slug}.
|
|
528
|
+
"https://{slug}.feedmedev.vip".replace(
|
|
519
529
|
"{slug}",
|
|
520
|
-
((t =
|
|
530
|
+
h((t = e.currentBusiness.value) == null ? void 0 : t.url)
|
|
521
531
|
)
|
|
522
532
|
).then(() => {
|
|
523
533
|
b.open(
|
|
524
534
|
{
|
|
525
|
-
message:
|
|
535
|
+
message: r("brand.settings.management.toast.copiedUrl"),
|
|
526
536
|
type: "success"
|
|
527
537
|
},
|
|
528
538
|
1500
|
|
529
539
|
);
|
|
530
|
-
}).catch((
|
|
540
|
+
}).catch((s) => {
|
|
531
541
|
b.open(
|
|
532
542
|
{
|
|
533
|
-
message:
|
|
543
|
+
message: r("brand.settings.management.toast.failedToCopyUrl"),
|
|
534
544
|
type: "error"
|
|
535
545
|
},
|
|
536
546
|
1500
|
|
537
547
|
);
|
|
538
548
|
});
|
|
539
549
|
}
|
|
540
|
-
function
|
|
541
|
-
|
|
550
|
+
function $() {
|
|
551
|
+
T.promise(
|
|
542
552
|
async () => {
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
553
|
+
var s;
|
|
554
|
+
const t = h(n.value.url);
|
|
555
|
+
return n.value.url != ((s = e.currentBusiness.value) == null ? void 0 : s.url) && await v.setShortUrl(
|
|
556
|
+
n.value.url,
|
|
557
|
+
e.currentBusiness.value.url ?? "",
|
|
558
|
+
e.currentBusiness.value._id
|
|
559
|
+
).catch((a) => {
|
|
560
|
+
throw { message: a.message };
|
|
561
|
+
}), await v.updateBusinessProfile(e.currentBusiness.value._id, {
|
|
562
|
+
name: n.value.name,
|
|
563
|
+
url: n.value.url,
|
|
564
|
+
thumbnail: e.currentBusiness.value.thumbnail,
|
|
565
|
+
coverPhoto: e.currentBusiness.value.coverPhoto
|
|
566
|
+
}).then((a) => (e.currentBusiness.value.name = n.value.name, e.currentBusiness.value.url = t, a)).catch((a) => {
|
|
567
|
+
throw { message: a.message };
|
|
557
568
|
});
|
|
558
569
|
},
|
|
559
570
|
{
|
|
560
|
-
loading:
|
|
561
|
-
success: () =>
|
|
562
|
-
error: (t) => t.message ??
|
|
571
|
+
loading: r("brand.settings.management.toast.saving"),
|
|
572
|
+
success: () => r("brand.settings.management.toast.saved"),
|
|
573
|
+
error: (t) => t.message ?? r("brand.settings.management.toast.errorSaving")
|
|
563
574
|
}
|
|
564
575
|
);
|
|
565
576
|
}
|
|
566
|
-
function
|
|
567
|
-
var
|
|
568
|
-
const
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
`thumbnail/${(/* @__PURE__ */ new Date()).toISOString()}.${
|
|
572
|
-
|
|
573
|
-
).then(async (
|
|
574
|
-
await
|
|
575
|
-
name:
|
|
576
|
-
url:
|
|
577
|
-
thumbnail: `https://image.
|
|
578
|
-
coverPhoto:
|
|
579
|
-
}),
|
|
577
|
+
function U(t) {
|
|
578
|
+
var a, c;
|
|
579
|
+
const s = ((a = t.dataTransfer) == null ? void 0 : a.files[0]) ?? ((c = t.target) == null ? void 0 : c.files[0]);
|
|
580
|
+
D.uploadImage(
|
|
581
|
+
e.currentBusiness.value._id,
|
|
582
|
+
`thumbnail/${(/* @__PURE__ */ new Date()).toISOString()}.${s.name.split(".").pop()}`,
|
|
583
|
+
s
|
|
584
|
+
).then(async (u) => {
|
|
585
|
+
await v.updateBusinessProfile(e.currentBusiness.value._id, {
|
|
586
|
+
name: n.value.name,
|
|
587
|
+
url: n.value.url,
|
|
588
|
+
thumbnail: `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`,
|
|
589
|
+
coverPhoto: e.currentBusiness.value.coverPhoto
|
|
590
|
+
}), e.currentBusiness.value.thumbnail = `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`, n.value.thumbnail = `https://image.feedmedev.cc/business/${e.currentBusiness.value._id}/${u.imagePath}`;
|
|
580
591
|
});
|
|
581
592
|
}
|
|
582
|
-
return
|
|
583
|
-
() =>
|
|
593
|
+
return F(
|
|
594
|
+
() => e.currentBusiness.value,
|
|
584
595
|
() => {
|
|
585
|
-
var t,
|
|
586
|
-
|
|
596
|
+
var t, s, a;
|
|
597
|
+
n.value.name = ((t = e.currentBusiness.value) == null ? void 0 : t.name) ?? "", n.value.url = j((s = e.currentBusiness.value) == null ? void 0 : s.url), n.value.thumbnail = ((a = e.currentBusiness.value) == null ? void 0 : a.thumbnail) ?? "";
|
|
587
598
|
},
|
|
588
599
|
{ immediate: !0 }
|
|
589
|
-
), (t,
|
|
590
|
-
var
|
|
591
|
-
const
|
|
592
|
-
return g(),
|
|
593
|
-
o("div",
|
|
594
|
-
o("div",
|
|
595
|
-
o("h2",
|
|
596
|
-
|
|
600
|
+
), (t, s) => {
|
|
601
|
+
var w, y;
|
|
602
|
+
const a = d("FmButton"), c = d("FmAvatar"), u = d("FmIcon"), f = d("FmTextField");
|
|
603
|
+
return g(), _("div", K, [
|
|
604
|
+
o("div", L, [
|
|
605
|
+
o("div", M, [
|
|
606
|
+
o("h2", O, B(l(r)("brand.settings.management.details")), 1),
|
|
607
|
+
m(a, {
|
|
597
608
|
disabled: p.value,
|
|
598
|
-
label:
|
|
599
|
-
onClick:
|
|
609
|
+
label: l(r)("brand.settings.management.save"),
|
|
610
|
+
onClick: $
|
|
600
611
|
}, null, 8, ["disabled", "label"])
|
|
601
612
|
]),
|
|
602
|
-
o("div",
|
|
603
|
-
o("div",
|
|
604
|
-
|
|
613
|
+
o("div", G, [
|
|
614
|
+
o("div", H, [
|
|
615
|
+
n.value.thumbnail ? (g(), _("img", {
|
|
605
616
|
key: 0,
|
|
606
617
|
class: "h-full w-full rounded-full",
|
|
607
|
-
src:
|
|
608
|
-
}, null, 8,
|
|
618
|
+
src: l(A)(n.value.thumbnail)
|
|
619
|
+
}, null, 8, J)) : (g(), I(c, {
|
|
609
620
|
key: 1,
|
|
610
|
-
name: ((
|
|
621
|
+
name: ((w = l(e).currentBusiness.value) == null ? void 0 : w.name) ?? "",
|
|
611
622
|
class: "h-full w-full !fm-typo-en-title-md-600 bg-fm-color-primary-oats text-fm-color-primary"
|
|
612
623
|
}, null, 8, ["name"])),
|
|
613
|
-
o("button",
|
|
624
|
+
o("button", Q, [
|
|
614
625
|
o("input", {
|
|
615
626
|
class: "absolute top-0 left-0 h-32 w-32 opacity-0 cursor-pointer",
|
|
616
627
|
type: "file",
|
|
617
628
|
accept: "image/*",
|
|
618
|
-
onChange:
|
|
629
|
+
onChange: U
|
|
619
630
|
}, null, 32),
|
|
620
|
-
u
|
|
631
|
+
m(u, {
|
|
621
632
|
size: "md",
|
|
622
633
|
name: "edit",
|
|
623
634
|
color: "neutral-black",
|
|
@@ -625,36 +636,36 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
625
636
|
})
|
|
626
637
|
])
|
|
627
638
|
]),
|
|
628
|
-
o("div",
|
|
629
|
-
|
|
639
|
+
o("div", W, [
|
|
640
|
+
m(f, {
|
|
630
641
|
class: "w-full",
|
|
631
|
-
label:
|
|
632
|
-
modelValue:
|
|
642
|
+
label: l(r)("brand.settings.management.businessName"),
|
|
643
|
+
modelValue: n.value.name,
|
|
633
644
|
"onUpdate:modelValue": [
|
|
634
|
-
|
|
635
|
-
|
|
645
|
+
s[0] || (s[0] = (i) => n.value.name = i),
|
|
646
|
+
s[1] || (s[1] = (i) => p.value = !1)
|
|
636
647
|
]
|
|
637
648
|
}, null, 8, ["label", "modelValue"]),
|
|
638
|
-
|
|
649
|
+
m(f, {
|
|
639
650
|
class: "w-full",
|
|
640
|
-
label:
|
|
641
|
-
placeholder: (
|
|
642
|
-
modelValue:
|
|
651
|
+
label: l(r)("brand.settings.management.url"),
|
|
652
|
+
placeholder: (y = l(e).currentBusiness.value) == null ? void 0 : y._id,
|
|
653
|
+
modelValue: n.value.url,
|
|
643
654
|
"onUpdate:modelValue": [
|
|
644
|
-
|
|
645
|
-
|
|
655
|
+
s[2] || (s[2] = (i) => n.value.url = i),
|
|
656
|
+
s[3] || (s[3] = (i) => p.value = !1)
|
|
646
657
|
],
|
|
647
658
|
rules: [
|
|
648
|
-
(
|
|
649
|
-
(
|
|
659
|
+
(i) => !i || l(N).test(i) || l(r)("brand.settings.management.validation.minCharacters"),
|
|
660
|
+
(i) => !i || !l(R).includes(i) || l(r)("brand.settings.management.validation.reservedUrl")
|
|
650
661
|
]
|
|
651
662
|
}, {
|
|
652
|
-
append:
|
|
653
|
-
o("span",
|
|
654
|
-
|
|
663
|
+
append: P(() => [
|
|
664
|
+
o("span", X, B(x.value), 1),
|
|
665
|
+
m(a, {
|
|
655
666
|
icon: "content_copy",
|
|
656
667
|
variant: "plain",
|
|
657
|
-
onClick:
|
|
668
|
+
onClick: z
|
|
658
669
|
})
|
|
659
670
|
]),
|
|
660
671
|
_: 1
|
|
@@ -667,5 +678,5 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
|
|
|
667
678
|
}
|
|
668
679
|
});
|
|
669
680
|
export {
|
|
670
|
-
|
|
681
|
+
re as default
|
|
671
682
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, createElementBlock as D, openBlock as I, normalizeClass as m, createElementVNode as E, toDisplayString as C, ref as x, computed as J, watch as K, resolveComponent as l, unref as h, Fragment as v, renderList as W, createVNode as B, createCommentVNode as s, createBlock as r, withCtx as P, h as L } from "vue";
|
|
2
|
-
import { u as Z } from "./index-
|
|
2
|
+
import { u as Z } from "./index-Bk6TOZrx.js";
|
|
3
3
|
import { useCoreStore as q, useI18n as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { p as y } from "./views-BDWw3w14.js";
|
|
5
5
|
import { useRouter as b } from "vue-router";
|