@feedmepos/mf-brand-app-builder 0.5.24-dev.0 → 0.5.26-dev.0

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.
@@ -1,7 +1,7 @@
1
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
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-CKhW2ogv.js";
4
+ import "./main-BDOGYedt.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";
@@ -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-pY4HD-TA.js";
2
+ import { F as f } from "./app-DTF3XZIk.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: {
@@ -539,23 +539,23 @@ const E = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), N = [
539
539
  }
540
540
  function j() {
541
541
  q.promise(
542
- h.setShortUrl(
543
- a.value.url,
544
- s.currentBusiness.value.url ?? "",
545
- s.currentBusiness.value._id
546
- ).then(async (t) => await h.updateBusinessProfile(
547
- s.currentBusiness.value._id,
548
- {
542
+ async () => {
543
+ var t;
544
+ return a.value.url != ((t = s.currentBusiness.value) == null ? void 0 : t.url) && await h.setShortUrl(
545
+ a.value.url,
546
+ s.currentBusiness.value.url ?? "",
547
+ s.currentBusiness.value._id
548
+ ).catch((e) => {
549
+ throw { message: e.message };
550
+ }), await h.updateBusinessProfile(s.currentBusiness.value._id, {
549
551
  name: a.value.name,
550
552
  url: a.value.url,
551
553
  thumbnail: s.currentBusiness.value.thumbnail,
552
554
  coverPhoto: s.currentBusiness.value.coverPhoto
553
- }
554
- ).then(() => t).catch((e) => {
555
- throw { message: e.message };
556
- })).catch((t) => {
557
- throw { message: t.message };
558
- }),
555
+ }).then((e) => e).catch((e) => {
556
+ throw { message: e.message };
557
+ });
558
+ },
559
559
  {
560
560
  loading: n("brand.settings.management.toast.saving"),
561
561
  success: () => n("brand.settings.management.toast.saved"),