@designcrowd/library.brand-page 5.16.18-pre-temp-4 → 5.16.18-pre-temp-5
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/lib/src/{CreatedOnBrandCrowd-de-de-BJSSJFgF.js → CreatedOnBrandCrowd-de-de-CdAKMu3Z.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DjAisDKU.js → CreatedOnBrandCrowd-en-us-BBMDDAa_.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DF2pwP7j.js → CreatedOnBrandCrowd-es-es-DTwS7YK8.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-Dog8nR6i.js → CreatedOnBrandCrowd-fr-ca-5VHOtmPC.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-Dog8nR6i.js → CreatedOnBrandCrowd-fr-fr-5VHOtmPC.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-mEEMa9_a.js → CreatedOnBrandCrowd-pt-br-B7GPKvjK.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-mEEMa9_a.js → CreatedOnBrandCrowd-pt-pt-B7GPKvjK.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-DEfh5eMX.js → CreatedOnDcom-de-de-KIlwGfjA.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DQAlJOR-.js → CreatedOnDcom-en-us-CSdRVDnn.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-PxJRG3IJ.js → CreatedOnDcom-es-es-CPFtzvn4.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Ywf_w9bs.js → CreatedOnDcom-fr-ca-CJqQeuni.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BaOMwNBS.js → CreatedOnDcom-fr-fr-bYbEQhxp.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-Bk0axUhV.js → CreatedOnDcom-pt-br-Cwe4yt9x.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DumT5i7A.js → CreatedOnDcom-pt-pt-CgV-hgaC.js} +1 -1
- package/lib/src/clients/design-template-client.d.ts +1 -0
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-C4Sk3mmO.js → lib-DDTH2L4M.js} +24 -23
- package/lib/src/shared/template-settings/store/template-settings-store.js +2 -0
- package/package.json +1 -1
- package/src/clients/design-template-client.ts +1 -0
- package/src/shared/template-settings/store/template-settings-store.ts +3 -0
|
@@ -19,6 +19,7 @@ interface GetTemplatesAsyncOptions {
|
|
|
19
19
|
selectedTemplateToken?: string | false;
|
|
20
20
|
locale?: string;
|
|
21
21
|
logoS3Token?: string;
|
|
22
|
+
logoTemplateToken?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const getTemplatesEndpoint: (templateTypeName: string) => string;
|
|
24
25
|
export declare const getTemplateEndpoint: (templateToken: any) => string;
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bE as E, as as T, aV as I, a6 as s, ak as N, aj as S, ag as e, bu as A, bL as O, cc as G, cb as C, ca as D, c4 as P, b3 as t, b2 as R, bQ as L, bR as M, bY as o, bN as r, bP as b, bO as F, bS as n, bT as B, c3 as l, c1 as i, ar as g, c2 as Y, a9 as U, a_ as c, b0 as d, a$ as u, e as H, f as p, B as y, a0 as K, d as V, a1 as k, j as m, ao as X, $ as v, bt as h, bM as W, az as x, aX as f, aT as z, b$ as Z, b_ as w, C as Q, b6 as j, D as q, b as J, a as $, bW as aa, b5 as _a, aY as Ea, aU as Ta, c8 as Ia, c9 as sa, bZ as Na, bI as Sa, ae as ea, c0 as Aa, c5 as Oa, bb as Ga, aL as Ca, bh as Da, F as Pa, a8 as ta, a7 as Ra, h as La, a2 as Ma, b8 as oa, aW as ra, aS as ba, a4 as Fa, al as na, l as Ba, M as la, H as ia, aa as ga, bF as Ya, bc as Ua, bd as ca, bD as da, bj as ua, bl as Ha, b7 as pa, L as ya, aK as Ka, bq as Va, aQ as ka, bp as ma, at as Xa, ac as va, bX as ha, c6 as Wa, c7 as xa, aZ as fa, N as za, aC as Za, aB as wa, aD as Qa, ax as ja, ay as qa, aA as Ja, bf as $a, bm as a_, b9 as __, o as E_, am as T_, an as I_, ah as s_, ai as N_, af as S_, a5 as e_, m as A_, br as O_, aq as G_, bJ as C_, bK as D_, bV as P_, ad as t_, bH as R_, bs as L_, n as M_, S as o_, P as r_, aJ as b_, bG as F_, bg as n_, by as B_, bx as l_, bA as i_, bv as g_, bB as Y_, bC as U_, bw as c_, bz as d_, aE as u_, aF as H_, bo as p_, bn as y_, aH as K_, aI as V_, aN as k_, b1 as m_, aM as X_, aO as v_, U as h_, ab as W_, aR as x_, k as f_, be as z_, ap as Z_, ba as w_, bi as Q_, bk as j_, b4 as q_, v as J_, R as $_, a3 as aE, g as _E, bU as EE, r as TE, u as IE, O as sE, Z as NE, aG as SE, aP as eE, av as AE, p as OE, X as GE, t as CE, x as DE, au as PE, i as tE, aw as RE, c as LE, q as ME, w as oE, W as rE, Q as bE, s as FE, Y as nE, E as BE, y as lE, z as iE, V as gE, G as YE, T as UE, I as cE, K as dE, A as uE, J as HE } from "./lib-
|
|
1
|
+
import { bE as E, as as T, aV as I, a6 as s, ak as N, aj as S, ag as e, bu as A, bL as O, cc as G, cb as C, ca as D, c4 as P, b3 as t, b2 as R, bQ as L, bR as M, bY as o, bN as r, bP as b, bO as F, bS as n, bT as B, c3 as l, c1 as i, ar as g, c2 as Y, a9 as U, a_ as c, b0 as d, a$ as u, e as H, f as p, B as y, a0 as K, d as V, a1 as k, j as m, ao as X, $ as v, bt as h, bM as W, az as x, aX as f, aT as z, b$ as Z, b_ as w, C as Q, b6 as j, D as q, b as J, a as $, bW as aa, b5 as _a, aY as Ea, aU as Ta, c8 as Ia, c9 as sa, bZ as Na, bI as Sa, ae as ea, c0 as Aa, c5 as Oa, bb as Ga, aL as Ca, bh as Da, F as Pa, a8 as ta, a7 as Ra, h as La, a2 as Ma, b8 as oa, aW as ra, aS as ba, a4 as Fa, al as na, l as Ba, M as la, H as ia, aa as ga, bF as Ya, bc as Ua, bd as ca, bD as da, bj as ua, bl as Ha, b7 as pa, L as ya, aK as Ka, bq as Va, aQ as ka, bp as ma, at as Xa, ac as va, bX as ha, c6 as Wa, c7 as xa, aZ as fa, N as za, aC as Za, aB as wa, aD as Qa, ax as ja, ay as qa, aA as Ja, bf as $a, bm as a_, b9 as __, o as E_, am as T_, an as I_, ah as s_, ai as N_, af as S_, a5 as e_, m as A_, br as O_, aq as G_, bJ as C_, bK as D_, bV as P_, ad as t_, bH as R_, bs as L_, n as M_, S as o_, P as r_, aJ as b_, bG as F_, bg as n_, by as B_, bx as l_, bA as i_, bv as g_, bB as Y_, bC as U_, bw as c_, bz as d_, aE as u_, aF as H_, bo as p_, bn as y_, aH as K_, aI as V_, aN as k_, b1 as m_, aM as X_, aO as v_, U as h_, ab as W_, aR as x_, k as f_, be as z_, ap as Z_, ba as w_, bi as Q_, bk as j_, b4 as q_, v as J_, R as $_, a3 as aE, g as _E, bU as EE, r as TE, u as IE, O as sE, Z as NE, aG as SE, aP as eE, av as AE, p as OE, X as GE, t as CE, x as DE, au as PE, i as tE, aw as RE, c as LE, q as ME, w as oE, W as rE, Q as bE, s as FE, Y as nE, E as BE, y as lE, z as iE, V as gE, G as YE, T as UE, I as cE, K as dE, A as uE, J as HE } from "./lib-DDTH2L4M.js";
|
|
2
2
|
import { createPinia as yE, setActivePinia as KE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|
|
@@ -58889,10 +58889,10 @@ const cn = /* @__PURE__ */ S5(NT1), RT1 = (e, t, n) => {
|
|
|
58889
58889
|
Ct(() => n.context.isDesignCom, async () => {
|
|
58890
58890
|
const S = P8().toLowerCase(), _ = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
|
|
58891
58891
|
try {
|
|
58892
|
-
const { default: M } = await nM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-
|
|
58892
|
+
const { default: M } = await nM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-CdAKMu3Z.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BBMDDAa_.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-DTwS7YK8.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-5VHOtmPC.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-5VHOtmPC.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-B7GPKvjK.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-B7GPKvjK.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-KIlwGfjA.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CSdRVDnn.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-CPFtzvn4.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-CJqQeuni.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-bYbEQhxp.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-Cwe4yt9x.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-CgV-hgaC.js") }), `./watermark/CreatedOn${_}-${S}.vue`, 3);
|
|
58893
58893
|
i.value = M;
|
|
58894
58894
|
} catch {
|
|
58895
|
-
const { default: V } = await nM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-
|
|
58895
|
+
const { default: V } = await nM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BBMDDAa_.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-CSdRVDnn.js") }), `./watermark/CreatedOn${_}-en-us.vue`, 3);
|
|
58896
58896
|
i.value = V;
|
|
58897
58897
|
}
|
|
58898
58898
|
}, {
|
|
@@ -70440,7 +70440,7 @@ const gh = () => _C || (_C = new _R1()), bl = (e, t) => MR1(e).then(
|
|
|
70440
70440
|
}
|
|
70441
70441
|
},
|
|
70442
70442
|
async loadPageNo({ pageNo: e }) {
|
|
70443
|
-
var d;
|
|
70443
|
+
var d, c;
|
|
70444
70444
|
const t = oe(), n = ke(), i = Ae(), o = l3(), s = S6(), r = v5(), a = n.designTemplateToken;
|
|
70445
70445
|
if (t.isInitialising) {
|
|
70446
70446
|
setTimeout(() => {
|
|
@@ -70458,7 +70458,7 @@ const gh = () => _C || (_C = new _R1()), bl = (e, t) => MR1(e).then(
|
|
|
70458
70458
|
throw new Error("templateType is not set");
|
|
70459
70459
|
this._setIsBusy({ isBusy: !0 });
|
|
70460
70460
|
try {
|
|
70461
|
-
const
|
|
70461
|
+
const C = gh(), p = P8(), g = ((d = s.logoTemplateAsset) == null ? void 0 : d.isByo) ?? !1, m = ((c = s.logoTemplateAsset) == null ? void 0 : c.token) ?? void 0, y = o.selectedLogoImage.logoVariation, b = r.editableLogoVariations[y], w = await C.getTemplateItemsByTemplateType(
|
|
70462
70462
|
this.templateType,
|
|
70463
70463
|
{
|
|
70464
70464
|
page: e,
|
|
@@ -70469,31 +70469,32 @@ const gh = () => _C || (_C = new _R1()), bl = (e, t) => MR1(e).then(
|
|
|
70469
70469
|
logoVariation: o.selectedLogoImage.logoVariation,
|
|
70470
70470
|
personalisable: this.selectedTab.key === wl.AI,
|
|
70471
70471
|
selectedTemplateToken: a,
|
|
70472
|
-
locale:
|
|
70473
|
-
logoS3Token:
|
|
70472
|
+
locale: p,
|
|
70473
|
+
logoS3Token: g ? void 0 : b.s3Token,
|
|
70474
|
+
logoTemplateToken: g ? m : void 0
|
|
70474
70475
|
}
|
|
70475
70476
|
);
|
|
70476
|
-
if (!
|
|
70477
|
+
if (!w)
|
|
70477
70478
|
return;
|
|
70478
|
-
this._setPageCount({ pageCount:
|
|
70479
|
-
const
|
|
70480
|
-
|
|
70481
|
-
var
|
|
70479
|
+
this._setPageCount({ pageCount: w.pageCount });
|
|
70480
|
+
const _ = (await Promise.all(
|
|
70481
|
+
w.paginatedItems.map(async (M) => {
|
|
70482
|
+
var V;
|
|
70482
70483
|
try {
|
|
70483
70484
|
if (i.isAdmin) {
|
|
70484
|
-
const
|
|
70485
|
-
|
|
70485
|
+
const x = await C.getTemplateByTemplateToken(
|
|
70486
|
+
M.designTemplateToken
|
|
70486
70487
|
);
|
|
70487
|
-
return this.safeMapToTemplateSettingsTemplate(
|
|
70488
|
+
return this.safeMapToTemplateSettingsTemplate(x);
|
|
70488
70489
|
} else {
|
|
70489
|
-
let
|
|
70490
|
-
return (
|
|
70491
|
-
|
|
70490
|
+
let x, F;
|
|
70491
|
+
return (V = l.personalisationData) != null && V.length && (x = await bl(
|
|
70492
|
+
M.designTemplateToken,
|
|
70492
70493
|
l.personalisationData.length
|
|
70493
|
-
),
|
|
70494
|
-
id:
|
|
70495
|
-
contentKey:
|
|
70496
|
-
previewImageUrl:
|
|
70494
|
+
), F = l.personalisationData[x].contentKey), {
|
|
70495
|
+
id: M.designTemplateToken,
|
|
70496
|
+
contentKey: F,
|
|
70497
|
+
previewImageUrl: M.previewImageUrl
|
|
70497
70498
|
};
|
|
70498
70499
|
}
|
|
70499
70500
|
} catch {
|
|
@@ -70501,9 +70502,9 @@ const gh = () => _C || (_C = new _R1()), bl = (e, t) => MR1(e).then(
|
|
|
70501
70502
|
}
|
|
70502
70503
|
})
|
|
70503
70504
|
)).filter(
|
|
70504
|
-
(
|
|
70505
|
+
(M) => M !== null
|
|
70505
70506
|
);
|
|
70506
|
-
this._addTemplates({ templates:
|
|
70507
|
+
this._addTemplates({ templates: _ }), this._setPageNoLoaded({ pageNoLoaded: e });
|
|
70507
70508
|
} finally {
|
|
70508
70509
|
this._setIsBusy({ isBusy: !1 });
|
|
70509
70510
|
}
|
|
@@ -170,6 +170,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
170
170
|
const designTemplateClient = DesignTemplateClient.getInstance();
|
|
171
171
|
const currentLocale = getCurrentLocale();
|
|
172
172
|
const isByo = logoStore.logoTemplateAsset?.isByo ?? false;
|
|
173
|
+
const logoTemplateToken = logoStore.logoTemplateAsset?.token ?? undefined;
|
|
173
174
|
const logoVariation = logoSettingsStore.selectedLogoImage.logoVariation;
|
|
174
175
|
const editableLogoVariation = editableLogoStore.editableLogoVariations[logoVariation];
|
|
175
176
|
const result = await designTemplateClient.getTemplateItemsByTemplateType(this.templateType, {
|
|
@@ -183,6 +184,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
183
184
|
selectedTemplateToken: designTemplateToken,
|
|
184
185
|
locale: currentLocale,
|
|
185
186
|
logoS3Token: !isByo ? editableLogoVariation.s3Token : undefined,
|
|
187
|
+
logoTemplateToken: isByo ? logoTemplateToken : undefined,
|
|
186
188
|
});
|
|
187
189
|
if (!result) {
|
|
188
190
|
return;
|
package/package.json
CHANGED
|
@@ -273,6 +273,8 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
273
273
|
const currentLocale = getCurrentLocale();
|
|
274
274
|
|
|
275
275
|
const isByo = logoStore.logoTemplateAsset?.isByo ?? false;
|
|
276
|
+
const logoTemplateToken =
|
|
277
|
+
logoStore.logoTemplateAsset?.token ?? undefined;
|
|
276
278
|
const logoVariation = logoSettingsStore.selectedLogoImage.logoVariation;
|
|
277
279
|
const editableLogoVariation =
|
|
278
280
|
editableLogoStore.editableLogoVariations[logoVariation];
|
|
@@ -292,6 +294,7 @@ export const useUiTemplateSettingsStore = defineStore('uiTemplateSettings', {
|
|
|
292
294
|
selectedTemplateToken: designTemplateToken,
|
|
293
295
|
locale: currentLocale,
|
|
294
296
|
logoS3Token: !isByo ? editableLogoVariation.s3Token : undefined,
|
|
297
|
+
logoTemplateToken: isByo ? logoTemplateToken : undefined,
|
|
295
298
|
},
|
|
296
299
|
);
|
|
297
300
|
|