@designcrowd/library.brand-page 5.16.44-ast-ai-flag → 5.16.44
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-DqRU8fS7.js → CreatedOnBrandCrowd-de-de-TuSRObJQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-Bx9rWNZs.js → CreatedOnBrandCrowd-en-us-BX3P38jt.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CZsQTblW.js → CreatedOnBrandCrowd-es-es-CwpQMqO0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-gs4QMm62.js → CreatedOnBrandCrowd-fr-ca-C4u38Ym4.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-gs4QMm62.js → CreatedOnBrandCrowd-fr-fr-C4u38Ym4.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BXuVEtL5.js → CreatedOnBrandCrowd-pt-br-B4-ro8pc.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BXuVEtL5.js → CreatedOnBrandCrowd-pt-pt-B4-ro8pc.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CRGUf6YM.js → CreatedOnDcom-de-de-Cl4pKvXX.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DH1CsKFR.js → CreatedOnDcom-en-us--Zj-GmSd.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BFrwN70e.js → CreatedOnDcom-es-es-D7Kogzlt.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-9tZOR2jW.js → CreatedOnDcom-fr-ca-Br2Jrkb3.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-B5VCaHQ3.js → CreatedOnDcom-fr-fr-CrO42IpU.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-ByUh5I0A.js → CreatedOnDcom-pt-br-ClEMPT95.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-8K3mPu09.js → CreatedOnDcom-pt-pt-sYoiCgDC.js} +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -2
- package/lib/src/brand-page-maker/stores/user/user-store.js +0 -1
- package/lib/src/constants/ui.d.ts +0 -1
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-BiGHAD1U.js → lib-pLG4c-nD.js} +103 -106
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +0 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -1
- package/package.json +2 -2
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -2
- package/src/brand-page-maker/stores/user/user-store.ts +0 -1
- package/src/constants/ui.ts +0 -1
- package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +0 -1
- package/src/shared/content-settings/components/generate-ai-button/GenerateAiButton.vue +1 -7
package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js
CHANGED
|
@@ -53,7 +53,6 @@ export const userFeatures = {
|
|
|
53
53
|
canUseGettyVideos: false,
|
|
54
54
|
canUseGoogleAdsense: false,
|
|
55
55
|
googleAdsenseEnabled: false,
|
|
56
|
-
canUseAITextGenerator: true,
|
|
57
56
|
};
|
|
58
57
|
export const BRAND_PAGE = {
|
|
59
58
|
styles: {
|
|
@@ -2027,7 +2026,6 @@ export const USER_FEATURES = Object.freeze({
|
|
|
2027
2026
|
canUseGettyVideos: true,
|
|
2028
2027
|
canUseGoogleAdsense: false,
|
|
2029
2028
|
googleAdsenseEnabled: true,
|
|
2030
|
-
canUseAITextGenerator: true,
|
|
2031
2029
|
});
|
|
2032
2030
|
export const INITIALISE_PAYLOAD = Object.freeze({
|
|
2033
2031
|
brandPage: BRAND_PAGE,
|
|
@@ -17,7 +17,6 @@ export const useBrandPageMakerUserStore = defineStore('brandPageMakerUser', {
|
|
|
17
17
|
canUsePremiumFontFamily: false,
|
|
18
18
|
maxNumOfPages: DEFAULT_MAX_NUM_OF_PAGES,
|
|
19
19
|
canUseGettyVideos: false,
|
|
20
|
-
canUseAITextGenerator: false,
|
|
21
20
|
canUseGoogleAdsense: false,
|
|
22
21
|
googleAdsenseEnabled: false,
|
|
23
22
|
},
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bM as E, aA as T, b1 as s, ae as I, as as N, ar as S, ao as e, bC as A, bT as O, ck as C, cj as G, ci as D, cc as P, bb as t, ba as R, bY as L, bZ as M, c4 as o, bV as r, bX as b, bW as n, b_ as F, b$ as i, cb as l, c9 as g, az as B, ca as c, ah as Y, b6 as U, b8 as d, b7 as u, g as H, h as p, B as y, a8 as K, f as k, a9 as V, l as m, aw as X, a7 as h, bB as v, bU as W, aH as x, b3 as f, a$ as z, c7 as Z, c6 as w, C as j, be as Q, D as q, b as J, a as $, c2 as aa, bd as _a, b4 as Ea, b0 as Ta, cg as sa, ch as Ia, c5 as Na, bQ as Sa, am as ea, c8 as Aa, cd as Oa, bj as Ca, aT as Ga, bp as Da, F as Pa, ag as ta, af as Ra, k as La, aa as Ma, bg as oa, b2 as ra, a_ as ba, ac as na, at as Fa, n as ia, X as la, H as ga, ai as Ba, bN as ca, bk as Ya, bl as Ua, bL as da, br as ua, bt as Ha, bf as pa, L as ya, aS as Ka, by as ka, aY as Va, bx as ma, aB as Xa, ak as ha, c3 as va, ce as Wa, cf as xa, b5 as fa, N as za, aK as Za, aJ as wa, aL as ja, aF as Qa, aG as qa, aI as Ja, bn as $a, bu as a_, bh as __, r as E_, au as T_, av as s_, ap as I_, aq as N_, an as S_, ad as e_, o as A_, d as O_, R as C_, e as G_, bz as D_, ay as P_, bR as t_, bS as R_, c1 as L_, al as M_, bP as o_, S as r_, bA as b_, p as n_, t as F_, P as i_, aR as l_, bO as g_, bo as B_, bG as c_, bF as Y_, bI as U_, bD as d_, bJ as u_, bK as H_, bE as p_, bH as y_, aM as K_, aN as k_, bw as V_, bv as m_, aP as X_, aQ as h_, aV as v_, b9 as W_, aU as x_, aW as f_, U as z_, aj as Z_, aZ as w_, m as j_, q as Q_, bm as q_, ax as J_, bi as $_, bq as aE, bs as _E, bc as EE, z as TE, $ as sE, ab as IE, j as NE, c0 as SE, w as eE, y as AE, Y as OE, a6 as CE, aO as GE, aX as DE, aD as PE, u as tE, a4 as RE, x as LE, I as ME, aC as oE, i as rE, aE as bE, c as nE, v as FE, E as iE, A as lE, G as gE, a3 as BE, Z as cE, s as YE, a5 as UE, O as dE, J as uE, K as HE, a1 as pE, Q as yE, a0 as KE, T as kE, a2 as VE, W as mE, M as XE, V as hE } from "./lib-
|
|
1
|
+
import { bM as E, aA as T, b1 as s, ae as I, as as N, ar as S, ao as e, bC as A, bT as O, ck as C, cj as G, ci as D, cc as P, bb as t, ba as R, bY as L, bZ as M, c4 as o, bV as r, bX as b, bW as n, b_ as F, b$ as i, cb as l, c9 as g, az as B, ca as c, ah as Y, b6 as U, b8 as d, b7 as u, g as H, h as p, B as y, a8 as K, f as k, a9 as V, l as m, aw as X, a7 as h, bB as v, bU as W, aH as x, b3 as f, a$ as z, c7 as Z, c6 as w, C as j, be as Q, D as q, b as J, a as $, c2 as aa, bd as _a, b4 as Ea, b0 as Ta, cg as sa, ch as Ia, c5 as Na, bQ as Sa, am as ea, c8 as Aa, cd as Oa, bj as Ca, aT as Ga, bp as Da, F as Pa, ag as ta, af as Ra, k as La, aa as Ma, bg as oa, b2 as ra, a_ as ba, ac as na, at as Fa, n as ia, X as la, H as ga, ai as Ba, bN as ca, bk as Ya, bl as Ua, bL as da, br as ua, bt as Ha, bf as pa, L as ya, aS as Ka, by as ka, aY as Va, bx as ma, aB as Xa, ak as ha, c3 as va, ce as Wa, cf as xa, b5 as fa, N as za, aK as Za, aJ as wa, aL as ja, aF as Qa, aG as qa, aI as Ja, bn as $a, bu as a_, bh as __, r as E_, au as T_, av as s_, ap as I_, aq as N_, an as S_, ad as e_, o as A_, d as O_, R as C_, e as G_, bz as D_, ay as P_, bR as t_, bS as R_, c1 as L_, al as M_, bP as o_, S as r_, bA as b_, p as n_, t as F_, P as i_, aR as l_, bO as g_, bo as B_, bG as c_, bF as Y_, bI as U_, bD as d_, bJ as u_, bK as H_, bE as p_, bH as y_, aM as K_, aN as k_, bw as V_, bv as m_, aP as X_, aQ as h_, aV as v_, b9 as W_, aU as x_, aW as f_, U as z_, aj as Z_, aZ as w_, m as j_, q as Q_, bm as q_, ax as J_, bi as $_, bq as aE, bs as _E, bc as EE, z as TE, $ as sE, ab as IE, j as NE, c0 as SE, w as eE, y as AE, Y as OE, a6 as CE, aO as GE, aX as DE, aD as PE, u as tE, a4 as RE, x as LE, I as ME, aC as oE, i as rE, aE as bE, c as nE, v as FE, E as iE, A as lE, G as gE, a3 as BE, Z as cE, s as YE, a5 as UE, O as dE, J as uE, K as HE, a1 as pE, Q as yE, a0 as KE, T as kE, a2 as VE, W as mE, M as XE, V as hE } from "./lib-pLG4c-nD.js";
|
|
2
2
|
import { createPinia as WE, setActivePinia as xE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|
|
@@ -23240,7 +23240,7 @@ const Wh = /* @__PURE__ */ v(AC1, [["render", BC1], ["__scopeId", "data-v-4cd691
|
|
|
23240
23240
|
}, N6 = (e) => ee(`model.${e}`), he = (e) => ee(`common.${e}`), NL = (e) => ee(`actionBar.${e}`), $6 = (e) => ee(`brandPageSettings.${e}`), UC1 = (e) => ee(`colorPalette.${e}`), RL = (e) => ee(`navigation.${e}`), T2 = (e) => ee(`converter.${e}`), w3 = (e) => ee(`backgroundSettings.${e}`), yp = (e) => ee(`colorPicker.${e}`), ZC1 = (e) => ee(`colorReplacementField.${e}`), $ = (e) => ee(`contentSettings.${e}`), X0 = (e) => ee(`formFields.${e}`), zC1 = (e) => ee(`genericTextInput.${e}`), qC1 = (e) => ee(`imagesField.${e}`), GC1 = (e) => ee(`linksField.${e}`), N5 = (e) => ee(`paymentConfig.${e}`), WC1 = (e) => ee(`shapeField.${e}`), jC1 = (e) => ee(`testimonialItemsField.${e}`), KC1 = (e) => ee(`textField.${e}`), Z2 = (e) => ee(`textImageField.${e}`), YC1 = (e) => ee(`textItemsField.${e}`), cn = (e) => ee(`textStyleField.${e}`), XC1 = (e) => ee(`textAreaField.${e}`), JC1 = (e) => ee(`bookingUrlField.${e}`), QC1 = (e) => ee(`productConfigOption.${e}`), wp = (e) => ee(`editLogoSettings.${e}`), FL = (e, t = {}) => ee(`myUploadSettings.${e}`, t), vn = (e) => ee(`pageSettings.${e}`), T4 = (e) => ee(`templateSettings.${e}`), Y3 = (e) => ee(`seoSettings.${e}`), O2 = (e) => ee(`styleSettingsSection.${e}`), O8 = (e, t = {}) => ee(`saveContactSettings.${e}`, t), kc = (e) => ee(`sensitiveContentSettings.${e}`), bp = (e) => ee(`socialShare.${e}`), Tc = (e) => ee(`cookieSettings.${e}`), l4 = (e) => ee(`googleAnalytics.${e}`), Lc = (e) => ee(`colorField.${e}`), V6 = (e) => ee(`validator.${e}`), E3 = (e) => ee(`constants.${e}`), Ry = (e) => ee(`layoutSwitcher.${e}`), ep1 = (e) => ee(`brandpageBackgroundSettings.${e}`), Fy = (e) => ee(`loginMessage.${e}`), Uy = (e) => ee(`cookie.${e}`), Mo = (e) => ee(`logoSelectionSettings.${e}`), tp1 = (e) => ee(`googleAddressField.${e}`), np1 = (e) => ee(`myDesigns.${e}`), Sn = (e) => ee(`pageSettings.${e}`), Vc = (e) => ee(`shapeLibrary.${e}`), ot = (e, t = {}) => ee(`error.${e}`, t), f8 = (e) => ee(`dropzoneUploader.${e}`), ko = (e) => ee(`shop.${e}`), O9 = (e, t = {}) => ee(`payment.${e}`, t), g8 = (e, t = {}) => ee(`publishBrandPageModalWithState.${e}`, t), ip1 = (e) => ee(`existingDomainModal.${e}`), J0 = (e) => ee(`uploadLogoModal.${e}`), d4 = (e, t = {}) => ee(`sensitiveContentModal.${e}`, t, !0), vp = (e) => ee(`quickLinkBar.${e}`), To = (e, t = {}) => ee(`brandPageFooter.${e}`, t), b2 = (e) => ee(`product.${e}`), op1 = (e) => ee(`image.${e}`), Zy = (e) => ee(`map.${e}`), zy = (e) => ee(`imagesSection.${e}`), Nl = (e) => ee(`imageGallery.${e}`), sp1 = (e) => ee(`newPageModal.${e}`), Hc = (e, t = {}) => ee(`personalisationOverride.${e}`, t), m8 = (e, t = {}) => ee(`paymentModal.${e}`, t), rp1 = (e, t = {}) => ee(`mailingList.${e}`, t), ap1 = (e, t = {}) => ee(`deletePageModal.${e}`, t), y8 = (e, t = {}) => ee(`deleteDomainModal.${e}`, t), UL = (e, t = {}) => ee(`requestPaymentStripe.${e}`, t), r7 = (e, t = {}) => ee(`productDetailModal.${e}`, t), lp1 = (e, t = {}) => ee(`video.${e}`, t), dp1 = (e, t = {}) => ee(`confirmModal.${e}`, t), f9 = (e, t = {}) => ee(`videoLibrary.${e}`, t), qy = (e, t = {}) => ee(`logoSwitchConfirmationModal.${e}`, t), Lo = (e, t = {}) => ee(`logoTemplateSearchModal.${e}`, t), j3 = (e, t = {}) => ee(`aiModal.${e}`, t), Wr = (e, t = {}) => ee(`saveContactWidget.${e}`, t), un = () => {
|
|
23241
23241
|
const t = Dl().language;
|
|
23242
23242
|
return jh.includes(t) ? t : Z8;
|
|
23243
|
-
}, cp1 = "Titles", up1 = "Headings", Cp1 = "Paragraphs", pp1 = "Button Texts", hp1 = void 0, fp1 = void 0, gp1 = "2.25rem", Kh = "1.5rem", d6 = "1rem", mp1 = "normal", s2 = "1.1", u3 = "1.4",
|
|
23243
|
+
}, cp1 = "Titles", up1 = "Headings", Cp1 = "Paragraphs", pp1 = "Button Texts", hp1 = void 0, fp1 = void 0, gp1 = "2.25rem", Kh = "1.5rem", d6 = "1rem", mp1 = "normal", s2 = "1.1", u3 = "1.4", He = "1.5", ZL = 12, zL = 12, Yh = 128, qL = 0, GL = 100, WL = 1, jL = 2.5, Xh = 200, Jh = 1e3, yp1 = 2e3, Qh = () => ot("maxCharacters"), wp1 = () => ot("invalidUrlMessage"), bp1 = () => ot("testimonialEmpty"), vp1 = () => ot("textEmpty"), Sp1 = "https://fonts.googleapis.com/css2", _p1 = "&display=swap", Mp1 = "#000000", va = {
|
|
23244
23244
|
url: "url",
|
|
23245
23245
|
google: "google"
|
|
23246
23246
|
};
|
|
@@ -25502,14 +25502,14 @@ const eV = () => new V9(ge.titles, cp1, {
|
|
|
25502
25502
|
style: {
|
|
25503
25503
|
...Ti,
|
|
25504
25504
|
fontSize: d6,
|
|
25505
|
-
lineHeight:
|
|
25505
|
+
lineHeight: He,
|
|
25506
25506
|
fontFamily: Le[Oe].name
|
|
25507
25507
|
}
|
|
25508
25508
|
}), iV = () => new V9(ge.buttons, pp1, {
|
|
25509
25509
|
style: {
|
|
25510
25510
|
...Ti,
|
|
25511
25511
|
fontSize: d6,
|
|
25512
|
-
lineHeight:
|
|
25512
|
+
lineHeight: He,
|
|
25513
25513
|
fontFamily: Le[Oe].name
|
|
25514
25514
|
}
|
|
25515
25515
|
}), Fp1 = () => ({
|
|
@@ -31724,11 +31724,11 @@ const Nu = /* @__PURE__ */ k5(ig1), PV = (e) => {
|
|
|
31724
31724
|
const o = {
|
|
31725
31725
|
...e.titleStyle,
|
|
31726
31726
|
fontSize: ((d = e.titleStyle) == null ? void 0 : d.fontSize) || d6,
|
|
31727
|
-
lineHeight: ((c = e.titleStyle) == null ? void 0 : c.lineHeight) ||
|
|
31727
|
+
lineHeight: ((c = e.titleStyle) == null ? void 0 : c.lineHeight) || He
|
|
31728
31728
|
}, s = {
|
|
31729
31729
|
...e.descriptionStyle,
|
|
31730
31730
|
fontSize: ((C = e.descriptionStyle) == null ? void 0 : C.fontSize) || d6,
|
|
31731
|
-
lineHeight: ((h = e.descriptionStyle) == null ? void 0 : h.lineHeight) ||
|
|
31731
|
+
lineHeight: ((h = e.descriptionStyle) == null ? void 0 : h.lineHeight) || He
|
|
31732
31732
|
}, r = {
|
|
31733
31733
|
...e.nameStyle,
|
|
31734
31734
|
fontSize: ((g = e.nameStyle) == null ? void 0 : g.fontSize) || Kh,
|
|
@@ -31755,7 +31755,7 @@ const Nu = /* @__PURE__ */ k5(ig1), PV = (e) => {
|
|
|
31755
31755
|
} : void 0;
|
|
31756
31756
|
o = UV(o);
|
|
31757
31757
|
const s = {
|
|
31758
|
-
lineHeight:
|
|
31758
|
+
lineHeight: He,
|
|
31759
31759
|
...e.textSize,
|
|
31760
31760
|
...e.textAlignment,
|
|
31761
31761
|
...e.textColor,
|
|
@@ -38225,7 +38225,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38225
38225
|
...c.textStyle,
|
|
38226
38226
|
textAlign: ((C = c.textStyle) == null ? void 0 : C.textAlign) || "left",
|
|
38227
38227
|
fontFamily: ((h = c.textStyle) == null ? void 0 : h.fontFamily) || Le[Oe].name,
|
|
38228
|
-
lineHeight: (m = (g = c.textStyle) == null ? void 0 : g.lineHeight) != null && m.includes("rem") ?
|
|
38228
|
+
lineHeight: (m = (g = c.textStyle) == null ? void 0 : g.lineHeight) != null && m.includes("rem") ? He : ((y = c.textStyle) == null ? void 0 : y.lineHeight) || He
|
|
38229
38229
|
};
|
|
38230
38230
|
}), n.text = "";
|
|
38231
38231
|
} else
|
|
@@ -38233,7 +38233,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38233
38233
|
...n.textStyle,
|
|
38234
38234
|
textAlign: ((s = n.textStyle) == null ? void 0 : s.textAlign) || gt,
|
|
38235
38235
|
fontFamily: ((r = n.textStyle) == null ? void 0 : r.fontFamily) || Le[Oe].name,
|
|
38236
|
-
lineHeight: (l = (a = n.textStyle) == null ? void 0 : a.lineHeight) != null && l.includes("rem") ?
|
|
38236
|
+
lineHeight: (l = (a = n.textStyle) == null ? void 0 : a.lineHeight) != null && l.includes("rem") ? He : ((d = n.textStyle) == null ? void 0 : d.lineHeight) || He
|
|
38237
38237
|
};
|
|
38238
38238
|
});
|
|
38239
38239
|
}, Oy1 = (e) => {
|
|
@@ -38246,7 +38246,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38246
38246
|
...n.titleStyle,
|
|
38247
38247
|
textAlign: ((i = n.titleStyle) == null ? void 0 : i.textAlign) || gt,
|
|
38248
38248
|
fontFamily: ((o = n.titleStyle) == null ? void 0 : o.fontFamily) || Le[Oe].name,
|
|
38249
|
-
lineHeight: (r = (s = n.titleStyle) == null ? void 0 : s.lineHeight) != null && r.includes("rem") ?
|
|
38249
|
+
lineHeight: (r = (s = n.titleStyle) == null ? void 0 : s.lineHeight) != null && r.includes("rem") ? He : ((a = n.titleStyle) == null ? void 0 : a.lineHeight) || He
|
|
38250
38250
|
}, n.nameStyle = {
|
|
38251
38251
|
...n.nameStyle,
|
|
38252
38252
|
textAlign: ((l = n.nameStyle) == null ? void 0 : l.textAlign) || gt,
|
|
@@ -38256,7 +38256,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38256
38256
|
...n.descriptionStyle,
|
|
38257
38257
|
textAlign: ((g = n.descriptionStyle) == null ? void 0 : g.textAlign) || gt,
|
|
38258
38258
|
fontFamily: ((m = n.descriptionStyle) == null ? void 0 : m.fontFamily) || Le[Oe].name,
|
|
38259
|
-
lineHeight: (w = (y = n.descriptionStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ?
|
|
38259
|
+
lineHeight: (w = (y = n.descriptionStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ? He : ((b = n.descriptionStyle) == null ? void 0 : b.lineHeight) || He
|
|
38260
38260
|
};
|
|
38261
38261
|
});
|
|
38262
38262
|
}, $y1 = (e) => {
|
|
@@ -38274,7 +38274,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38274
38274
|
...n.buttonTextStyle,
|
|
38275
38275
|
textAlign: ((l = n.buttonTextStyle) == null ? void 0 : l.textAlign) || gt,
|
|
38276
38276
|
fontFamily: ((d = n.buttonTextStyle) == null ? void 0 : d.fontFamily) || Le[Oe].name,
|
|
38277
|
-
lineHeight: (C = (c = n.buttonTextStyle) == null ? void 0 : c.lineHeight) != null && C.includes("rem") ?
|
|
38277
|
+
lineHeight: (C = (c = n.buttonTextStyle) == null ? void 0 : c.lineHeight) != null && C.includes("rem") ? He : ((h = n.buttonTextStyle) == null ? void 0 : h.lineHeight) || He
|
|
38278
38278
|
};
|
|
38279
38279
|
});
|
|
38280
38280
|
}, Dy1 = (e) => {
|
|
@@ -38292,22 +38292,22 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38292
38292
|
...n.headingStyle,
|
|
38293
38293
|
textAlign: ((l = n.headingStyle) == null ? void 0 : l.textAlign) || gt,
|
|
38294
38294
|
fontFamily: ((d = n.headingStyle) == null ? void 0 : d.fontFamily) || Le[Oe].name,
|
|
38295
|
-
lineHeight: (C = (c = n.headingStyle) == null ? void 0 : c.lineHeight) != null && C.includes("rem") ?
|
|
38295
|
+
lineHeight: (C = (c = n.headingStyle) == null ? void 0 : c.lineHeight) != null && C.includes("rem") ? He : ((h = n.headingStyle) == null ? void 0 : h.lineHeight) || He
|
|
38296
38296
|
}, n.descriptionStyle = {
|
|
38297
38297
|
...n.descriptionStyle,
|
|
38298
38298
|
textAlign: ((g = n.descriptionStyle) == null ? void 0 : g.textAlign) || gt,
|
|
38299
38299
|
fontFamily: ((m = n.descriptionStyle) == null ? void 0 : m.fontFamily) || Le[Oe].name,
|
|
38300
|
-
lineHeight: (w = (y = n.descriptionStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ?
|
|
38300
|
+
lineHeight: (w = (y = n.descriptionStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ? He : ((b = n.descriptionStyle) == null ? void 0 : b.lineHeight) || He
|
|
38301
38301
|
}, n.buttonTextStyle = {
|
|
38302
38302
|
...n.buttonTextStyle,
|
|
38303
38303
|
textAlign: ((S = n.buttonTextStyle) == null ? void 0 : S.textAlign) || gt,
|
|
38304
38304
|
fontFamily: ((_ = n.buttonTextStyle) == null ? void 0 : _.fontFamily) || Le[Oe].name,
|
|
38305
|
-
lineHeight: (H = (k = n.buttonTextStyle) == null ? void 0 : k.lineHeight) != null && H.includes("rem") ?
|
|
38305
|
+
lineHeight: (H = (k = n.buttonTextStyle) == null ? void 0 : k.lineHeight) != null && H.includes("rem") ? He : ((V = n.buttonTextStyle) == null ? void 0 : V.lineHeight) || He
|
|
38306
38306
|
}, n.itemTextStyle = {
|
|
38307
38307
|
...n.itemTextStyle,
|
|
38308
38308
|
textAlign: ((R = n.itemTextStyle) == null ? void 0 : R.textAlign) || gt,
|
|
38309
38309
|
fontFamily: ((B = n.itemTextStyle) == null ? void 0 : B.fontFamily) || Le[Oe].name,
|
|
38310
|
-
lineHeight: (Z = (F = n.itemTextStyle) == null ? void 0 : F.lineHeight) != null && Z.includes("rem") ?
|
|
38310
|
+
lineHeight: (Z = (F = n.itemTextStyle) == null ? void 0 : F.lineHeight) != null && Z.includes("rem") ? He : ((Y = n.itemTextStyle) == null ? void 0 : Y.lineHeight) || He
|
|
38311
38311
|
};
|
|
38312
38312
|
});
|
|
38313
38313
|
}, Ny1 = (e) => {
|
|
@@ -38320,7 +38320,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38320
38320
|
...n.titleStyle,
|
|
38321
38321
|
textAlign: ((i = n.titleStyle) == null ? void 0 : i.textAlign) || gt,
|
|
38322
38322
|
fontFamily: ((o = n.titleStyle) == null ? void 0 : o.fontFamily) || Le[Oe].name,
|
|
38323
|
-
lineHeight: (r = (s = n.titleStyle) == null ? void 0 : s.lineHeight) != null && r.includes("rem") ?
|
|
38323
|
+
lineHeight: (r = (s = n.titleStyle) == null ? void 0 : s.lineHeight) != null && r.includes("rem") ? He : ((a = n.titleStyle) == null ? void 0 : a.lineHeight) || He
|
|
38324
38324
|
};
|
|
38325
38325
|
});
|
|
38326
38326
|
}, Ry1 = (e) => {
|
|
@@ -38339,12 +38339,12 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38339
38339
|
...n.descriptionStyle,
|
|
38340
38340
|
textAlign: n.descriptionStyle && n.descriptionStyle.textAlign ? n.descriptionStyle.textAlign : (d = n.titleStyle) == null ? void 0 : d.textAlign,
|
|
38341
38341
|
fontFamily: ((c = n.descriptionStyle) == null ? void 0 : c.fontFamily) || Le[Oe].name,
|
|
38342
|
-
lineHeight: (h = (C = n.descriptionStyle) == null ? void 0 : C.lineHeight) != null && h.includes("rem") ?
|
|
38342
|
+
lineHeight: (h = (C = n.descriptionStyle) == null ? void 0 : C.lineHeight) != null && h.includes("rem") ? He : ((g = n.descriptionStyle) == null ? void 0 : g.lineHeight) || He
|
|
38343
38343
|
}, n.buttonTextStyle = {
|
|
38344
38344
|
...n.buttonTextStyle,
|
|
38345
38345
|
textAlign: n.buttonTextStyle && n.buttonTextStyle.textAlign ? n.buttonTextStyle.textAlign : (m = n.titleStyle) == null ? void 0 : m.textAlign,
|
|
38346
38346
|
fontFamily: ((y = n.buttonTextStyle) == null ? void 0 : y.fontFamily) || Le[Oe].name,
|
|
38347
|
-
lineHeight: (b = (w = n.buttonTextStyle) == null ? void 0 : w.lineHeight) != null && b.includes("rem") ?
|
|
38347
|
+
lineHeight: (b = (w = n.buttonTextStyle) == null ? void 0 : w.lineHeight) != null && b.includes("rem") ? He : ((S = n.buttonTextStyle) == null ? void 0 : S.lineHeight) || He
|
|
38348
38348
|
};
|
|
38349
38349
|
});
|
|
38350
38350
|
}, Fy1 = (e) => {
|
|
@@ -38378,7 +38378,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38378
38378
|
...n.paragraphStyle,
|
|
38379
38379
|
textAlign: ((d = n.paragraphStyle) == null ? void 0 : d.textAlign) || i,
|
|
38380
38380
|
fontFamily: ((c = n.paragraphStyle) == null ? void 0 : c.fontFamily) || Le[Oe].name,
|
|
38381
|
-
lineHeight: (h = (C = n.paragraphStyle) == null ? void 0 : C.lineHeight) != null && h.includes("rem") ?
|
|
38381
|
+
lineHeight: (h = (C = n.paragraphStyle) == null ? void 0 : C.lineHeight) != null && h.includes("rem") ? He : ((g = n.paragraphStyle) == null ? void 0 : g.lineHeight) || He
|
|
38382
38382
|
};
|
|
38383
38383
|
});
|
|
38384
38384
|
}, Zy1 = (e) => {
|
|
@@ -38404,12 +38404,12 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38404
38404
|
...n.nameStyle,
|
|
38405
38405
|
textAlign: ((m = n.nameStyle) == null ? void 0 : m.textAlign) || i,
|
|
38406
38406
|
fontFamily: ((y = n.nameStyle) == null ? void 0 : y.fontFamily) || Le[Oe].name,
|
|
38407
|
-
lineHeight: (b = (w = n.nameStyle) == null ? void 0 : w.lineHeight) != null && b.includes("rem") ?
|
|
38407
|
+
lineHeight: (b = (w = n.nameStyle) == null ? void 0 : w.lineHeight) != null && b.includes("rem") ? He : ((S = n.nameStyle) == null ? void 0 : S.lineHeight) || He
|
|
38408
38408
|
}, n.positionStyle = {
|
|
38409
38409
|
...n.positionStyle,
|
|
38410
38410
|
textAlign: ((_ = n.positionStyle) == null ? void 0 : _.textAlign) || i,
|
|
38411
38411
|
fontFamily: ((k = n.positionStyle) == null ? void 0 : k.fontFamily) || Le[Oe].name,
|
|
38412
|
-
lineHeight: (V = (H = n.positionStyle) == null ? void 0 : H.lineHeight) != null && V.includes("rem") ?
|
|
38412
|
+
lineHeight: (V = (H = n.positionStyle) == null ? void 0 : H.lineHeight) != null && V.includes("rem") ? He : ((R = n.positionStyle) == null ? void 0 : R.lineHeight) || He
|
|
38413
38413
|
};
|
|
38414
38414
|
});
|
|
38415
38415
|
}, zy1 = (e) => {
|
|
@@ -38432,7 +38432,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38432
38432
|
...n.paragraphStyle,
|
|
38433
38433
|
textAlign: ((g = n.paragraphStyle) == null ? void 0 : g.textAlign) || gt,
|
|
38434
38434
|
fontFamily: ((m = n.paragraphStyle) == null ? void 0 : m.fontFamily) || Le[Oe].name,
|
|
38435
|
-
lineHeight: (w = (y = n.paragraphStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ?
|
|
38435
|
+
lineHeight: (w = (y = n.paragraphStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ? He : ((b = n.paragraphStyle) == null ? void 0 : b.lineHeight) || He
|
|
38436
38436
|
};
|
|
38437
38437
|
});
|
|
38438
38438
|
}, qy1 = (e) => {
|
|
@@ -38455,7 +38455,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38455
38455
|
...n.paragraphStyle,
|
|
38456
38456
|
textAlign: ((g = n.paragraphStyle) == null ? void 0 : g.textAlign) || gt,
|
|
38457
38457
|
fontFamily: ((m = n.paragraphStyle) == null ? void 0 : m.fontFamily) || Le[Oe].name,
|
|
38458
|
-
lineHeight: (w = (y = n.paragraphStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ?
|
|
38458
|
+
lineHeight: (w = (y = n.paragraphStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ? He : ((b = n.paragraphStyle) == null ? void 0 : b.lineHeight) || He
|
|
38459
38459
|
};
|
|
38460
38460
|
});
|
|
38461
38461
|
}, Gy1 = (e) => {
|
|
@@ -38482,7 +38482,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38482
38482
|
...n.itemTextStyle,
|
|
38483
38483
|
textAlign: ((o = n.itemTextStyle) == null ? void 0 : o.textAlign) || i,
|
|
38484
38484
|
fontFamily: ((s = n.itemTextStyle) == null ? void 0 : s.fontFamily) || Le[Oe].name,
|
|
38485
|
-
lineHeight: (a = (r = n.itemTextStyle) == null ? void 0 : r.lineHeight) != null && a.includes("rem") ?
|
|
38485
|
+
lineHeight: (a = (r = n.itemTextStyle) == null ? void 0 : r.lineHeight) != null && a.includes("rem") ? He : ((l = n.itemTextStyle) == null ? void 0 : l.lineHeight) || He
|
|
38486
38486
|
};
|
|
38487
38487
|
});
|
|
38488
38488
|
}, jy1 = (e) => {
|
|
@@ -38500,12 +38500,12 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38500
38500
|
...n.descriptionStyle,
|
|
38501
38501
|
textAlign: n.descriptionStyle && n.descriptionStyle.textAlign ? n.descriptionStyle.textAlign : (l = n.titleStyle) == null ? void 0 : l.textAlign,
|
|
38502
38502
|
fontFamily: ((d = n.descriptionStyle) == null ? void 0 : d.fontFamily) || Le[Oe].name,
|
|
38503
|
-
lineHeight: (C = (c = n.descriptionStyle) == null ? void 0 : c.lineHeight) != null && C.includes("rem") ?
|
|
38503
|
+
lineHeight: (C = (c = n.descriptionStyle) == null ? void 0 : c.lineHeight) != null && C.includes("rem") ? He : ((h = n.descriptionStyle) == null ? void 0 : h.lineHeight) || He
|
|
38504
38504
|
}, n.buttonTextStyle = {
|
|
38505
38505
|
...n.buttonTextStyle,
|
|
38506
38506
|
textAlign: n.buttonTextStyle && n.buttonTextStyle.textAlign ? n.buttonTextStyle.textAlign : (g = n.titleStyle) == null ? void 0 : g.textAlign,
|
|
38507
38507
|
fontFamily: ((m = n.buttonTextStyle) == null ? void 0 : m.fontFamily) || Le[Oe].name,
|
|
38508
|
-
lineHeight: (w = (y = n.buttonTextStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ?
|
|
38508
|
+
lineHeight: (w = (y = n.buttonTextStyle) == null ? void 0 : y.lineHeight) != null && w.includes("rem") ? He : ((b = n.buttonTextStyle) == null ? void 0 : b.lineHeight) || He
|
|
38509
38509
|
};
|
|
38510
38510
|
});
|
|
38511
38511
|
}, Ky1 = (e) => {
|
|
@@ -38641,7 +38641,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38641
38641
|
...l,
|
|
38642
38642
|
fontFamily: (l == null ? void 0 : l.fontFamily) || Le[Oe].name,
|
|
38643
38643
|
letterSpacing: l.letterSpacing || Vo,
|
|
38644
|
-
lineHeight: (o = l == null ? void 0 : l.lineHeight) != null && o.includes("rem") ?
|
|
38644
|
+
lineHeight: (o = l == null ? void 0 : l.lineHeight) != null && o.includes("rem") ? He : (l == null ? void 0 : l.lineHeight) || He,
|
|
38645
38645
|
fontWeight: l.fontWeight || void 0,
|
|
38646
38646
|
fontStyle: l.fontStyle || void 0,
|
|
38647
38647
|
textDecoration: l.textDecoration || void 0
|
|
@@ -38649,7 +38649,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
38649
38649
|
...d,
|
|
38650
38650
|
fontFamily: (d == null ? void 0 : d.fontFamily) || Le[Oe].name,
|
|
38651
38651
|
letterSpacing: d.letterSpacing || Vo,
|
|
38652
|
-
lineHeight: (s = d == null ? void 0 : d.lineHeight) != null && s.includes("rem") ?
|
|
38652
|
+
lineHeight: (s = d == null ? void 0 : d.lineHeight) != null && s.includes("rem") ? He : (d == null ? void 0 : d.lineHeight) || He,
|
|
38653
38653
|
fontWeight: d.fontWeight || void 0,
|
|
38654
38654
|
fontStyle: d.fontStyle || void 0,
|
|
38655
38655
|
textDecoration: d.textDecoration || void 0
|
|
@@ -39563,7 +39563,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
39563
39563
|
type: "text",
|
|
39564
39564
|
textSize: {
|
|
39565
39565
|
fontSize: d6,
|
|
39566
|
-
lineHeight:
|
|
39566
|
+
lineHeight: He
|
|
39567
39567
|
},
|
|
39568
39568
|
textStyle: {
|
|
39569
39569
|
applyAutoScale: (e == null ? void 0 : e.brandPageType) === t1.brandSite,
|
|
@@ -40196,7 +40196,7 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
40196
40196
|
const t = e.options.find((n) => n.isSelected);
|
|
40197
40197
|
return t ? { galleryType: t.value } : { galleryType: $5.grid };
|
|
40198
40198
|
}
|
|
40199
|
-
}, Yw1 = 2,
|
|
40199
|
+
}, Yw1 = 2, xe = p2("brandPageMakerUser", {
|
|
40200
40200
|
state: () => ({
|
|
40201
40201
|
features: {
|
|
40202
40202
|
canAddImageContents: !0,
|
|
@@ -40212,7 +40212,6 @@ const DH = /brand-page\/([^?]*)/, xy1 = /logo\/([^\/]*)\//, NH = /(http|https):\
|
|
|
40212
40212
|
canUsePremiumFontFamily: !1,
|
|
40213
40213
|
maxNumOfPages: Yw1,
|
|
40214
40214
|
canUseGettyVideos: !1,
|
|
40215
|
-
canUseAITextGenerator: !1,
|
|
40216
40215
|
canUseGoogleAdsense: !1,
|
|
40217
40216
|
googleAdsenseEnabled: !1
|
|
40218
40217
|
},
|
|
@@ -41304,7 +41303,7 @@ const Xw1 = {
|
|
|
41304
41303
|
},
|
|
41305
41304
|
getters: {
|
|
41306
41305
|
availableTextFontFamilyOptions() {
|
|
41307
|
-
const e =
|
|
41306
|
+
const e = xe(), { canUsePremiumFontFamily: t } = e.features;
|
|
41308
41307
|
return Object.entries(Le).map(([n, i]) => ({
|
|
41309
41308
|
key: n,
|
|
41310
41309
|
name: i.name,
|
|
@@ -59642,7 +59641,7 @@ const yn = /* @__PURE__ */ k5(TV1), LV1 = (e, t, n) => {
|
|
|
59642
59641
|
}, bM = J({
|
|
59643
59642
|
mixins: [qp],
|
|
59644
59643
|
setup() {
|
|
59645
|
-
const e = kt(), t = ne(), n = we(), i =
|
|
59644
|
+
const e = kt(), t = ne(), n = we(), i = xe(), o = x9(), s = $3(), r = _t(), a = Fe(), l = St(), { externalEditor: d } = fd(), c = k6();
|
|
59646
59645
|
return {
|
|
59647
59646
|
items: x(() => e.items),
|
|
59648
59647
|
selectedItemId: x(() => e.selectedItemId),
|
|
@@ -59954,10 +59953,10 @@ const yn = /* @__PURE__ */ k5(TV1), LV1 = (e, t, n) => {
|
|
|
59954
59953
|
at(() => n.context.isDesignCom, async () => {
|
|
59955
59954
|
const S = D4().toLowerCase(), _ = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
|
|
59956
59955
|
try {
|
|
59957
|
-
const { default: k } = await vM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-
|
|
59956
|
+
const { default: k } = await vM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-TuSRObJQ.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BX3P38jt.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-CwpQMqO0.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-C4u38Ym4.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-C4u38Ym4.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-B4-ro8pc.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-B4-ro8pc.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-Cl4pKvXX.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us--Zj-GmSd.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-D7Kogzlt.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-Br2Jrkb3.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-CrO42IpU.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-ClEMPT95.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-sYoiCgDC.js") }), `./watermark/CreatedOn${_}-${S}.vue`, 3);
|
|
59958
59957
|
i.value = k;
|
|
59959
59958
|
} catch {
|
|
59960
|
-
const { default: H } = await vM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-
|
|
59959
|
+
const { default: H } = await vM(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-BX3P38jt.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us--Zj-GmSd.js") }), `./watermark/CreatedOn${_}-en-us.vue`, 3);
|
|
59961
59960
|
i.value = H;
|
|
59962
59961
|
}
|
|
59963
59962
|
}, {
|
|
@@ -69849,7 +69848,7 @@ const Rn = (e) => {
|
|
|
69849
69848
|
async setNewPageModalVisibilityAsync({
|
|
69850
69849
|
isNewPageModalVisible: e
|
|
69851
69850
|
}) {
|
|
69852
|
-
const t = Fe(), n =
|
|
69851
|
+
const t = Fe(), n = xe(), i = we(), o = St(), { maxNumOfPages: s } = n.features;
|
|
69853
69852
|
if (!i.isPrePurchase && s > 0 && e && this.pages.length >= s) {
|
|
69854
69853
|
o.setUpsellBridgeState({
|
|
69855
69854
|
cta_location: O3.ADD_NEW_PAGE,
|
|
@@ -70743,7 +70742,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
70743
70742
|
}),
|
|
70744
70743
|
getters: {
|
|
70745
70744
|
renderAsImage() {
|
|
70746
|
-
return !
|
|
70745
|
+
return !xe().isAdmin;
|
|
70747
70746
|
}
|
|
70748
70747
|
},
|
|
70749
70748
|
actions: {
|
|
@@ -70820,7 +70819,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
70820
70819
|
},
|
|
70821
70820
|
async loadPageNo({ pageNo: e }) {
|
|
70822
70821
|
var d, c;
|
|
70823
|
-
const t = ne(), n = we(), i =
|
|
70822
|
+
const t = ne(), n = we(), i = xe(), o = D2(), s = _3(), r = l6(), a = n.designTemplateToken;
|
|
70824
70823
|
if (t.isInitialising) {
|
|
70825
70824
|
setTimeout(() => {
|
|
70826
70825
|
this.loadPageNo({ pageNo: e });
|
|
@@ -70971,7 +70970,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
70971
70970
|
* re-fetch templates when the logo changes to regenerate preview images with the new logo.
|
|
70972
70971
|
*/
|
|
70973
70972
|
setupLogoChangeWatcher() {
|
|
70974
|
-
const e = D2(), t = l6(), n =
|
|
70973
|
+
const e = D2(), t = l6(), n = xe(), { selectedLogoImage: i } = ip(e), { editableLogoVariations: o } = ip(t);
|
|
70975
70974
|
let s = null;
|
|
70976
70975
|
at(
|
|
70977
70976
|
() => i.value,
|
|
@@ -71398,7 +71397,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
71398
71397
|
},
|
|
71399
71398
|
async saveBrandPage(e = {}) {
|
|
71400
71399
|
var i, o;
|
|
71401
|
-
const t =
|
|
71400
|
+
const t = xe(), n = ne();
|
|
71402
71401
|
if (t.isAdmin)
|
|
71403
71402
|
throw new Error("save brand page is not allowed in admin mode");
|
|
71404
71403
|
if (this.standalone)
|
|
@@ -71454,7 +71453,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
71454
71453
|
}
|
|
71455
71454
|
},
|
|
71456
71455
|
async saveAndPublishBrandPage(e) {
|
|
71457
|
-
if (
|
|
71456
|
+
if (xe().isAdmin)
|
|
71458
71457
|
throw new Error("save brand page is not allowed in admin mode");
|
|
71459
71458
|
const n = await this.saveBrandPage({
|
|
71460
71459
|
isPublish: !0,
|
|
@@ -71477,7 +71476,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
71477
71476
|
},
|
|
71478
71477
|
async saveTemplate() {
|
|
71479
71478
|
var a;
|
|
71480
|
-
const e =
|
|
71479
|
+
const e = xe(), t = ne();
|
|
71481
71480
|
if (!e.isAdmin)
|
|
71482
71481
|
throw new Error("saveTemplate is not allowed in non admin mode");
|
|
71483
71482
|
const n = t.brandPageTemplate, i = JSON.stringify(n);
|
|
@@ -71732,7 +71731,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
71732
71731
|
return ne().brandPageContentTypes;
|
|
71733
71732
|
},
|
|
71734
71733
|
isAdmin() {
|
|
71735
|
-
return
|
|
71734
|
+
return xe().isAdmin;
|
|
71736
71735
|
},
|
|
71737
71736
|
isPublished: (e) => e.brandPageStatus === "Published",
|
|
71738
71737
|
isUserDraft: (e) => !!e.designDraftToken
|
|
@@ -71769,7 +71768,7 @@ const Eh = () => BC || (BC = new NU1()), Ll = (e, t) => RU1(e).then(
|
|
|
71769
71768
|
return a0(t, "gettyAssetId").length >= Ig;
|
|
71770
71769
|
},
|
|
71771
71770
|
canAddNewVideo() {
|
|
71772
|
-
const e =
|
|
71771
|
+
const e = xe(), t = we(), n = e.features.canUseGettyVideos, i = t.isPrePurchase, o = e.hasPremiumSubscription;
|
|
71773
71772
|
return n && (e.isAdmin || i || o);
|
|
71774
71773
|
}
|
|
71775
71774
|
}
|
|
@@ -72088,7 +72087,7 @@ const kt = p2("uiContentSettings", {
|
|
|
72088
72087
|
index: t
|
|
72089
72088
|
}) {
|
|
72090
72089
|
var C;
|
|
72091
|
-
const n =
|
|
72090
|
+
const n = xe(), i = ne(), o = this.addContentOptions.find((h) => h.type === e);
|
|
72092
72091
|
if (!o) {
|
|
72093
72092
|
console.error(`Unable to locate add content option type for '${e}'`);
|
|
72094
72093
|
return;
|
|
@@ -72208,7 +72207,7 @@ const kt = p2("uiContentSettings", {
|
|
|
72208
72207
|
},
|
|
72209
72208
|
validateItem(e) {
|
|
72210
72209
|
var C;
|
|
72211
|
-
const t =
|
|
72210
|
+
const t = xe(), n = this.items.find((h) => h.id === e.id);
|
|
72212
72211
|
if (!n) {
|
|
72213
72212
|
process.env.NODE_ENV !== "production" && console.error(`unable to locate content item by id '${e.id}'`);
|
|
72214
72213
|
return;
|
|
@@ -73053,7 +73052,7 @@ const kt = p2("uiContentSettings", {
|
|
|
73053
73052
|
t();
|
|
73054
73053
|
}, e);
|
|
73055
73054
|
}), zU1 = () => {
|
|
73056
|
-
const e =
|
|
73055
|
+
const e = xe(), t = ne(), n = e.features;
|
|
73057
73056
|
return Object.values(S4()).filter((i) => i.type !== "image" || n.canAddImageContents).filter(
|
|
73058
73057
|
(i) => i.brandPageType === void 0 || i.brandPageType.includes(t.brandPageType)
|
|
73059
73058
|
);
|
|
@@ -73440,7 +73439,7 @@ const kt = p2("uiContentSettings", {
|
|
|
73440
73439
|
this.selectedTemplateId = e.templateId;
|
|
73441
73440
|
},
|
|
73442
73441
|
async recalculateLogoSizes(e = !1) {
|
|
73443
|
-
const t = we(), n =
|
|
73442
|
+
const t = we(), n = xe(), i = _t(), o = D2(), s = l6();
|
|
73444
73443
|
!n.isAdmin && this.isBrandSite ? await qH(
|
|
73445
73444
|
i,
|
|
73446
73445
|
o,
|
|
@@ -73457,7 +73456,7 @@ const kt = p2("uiContentSettings", {
|
|
|
73457
73456
|
},
|
|
73458
73457
|
async applySelectedTemplate() {
|
|
73459
73458
|
var k, H, V;
|
|
73460
|
-
const e = Fe(), t = D2(), n = k6(), i = K5(), o = x9(), s = L6(), r =
|
|
73459
|
+
const e = Fe(), t = D2(), n = k6(), i = K5(), o = x9(), s = L6(), r = xe(), a = we(), l = kt(), d = l6(), c = _3();
|
|
73461
73460
|
if (!this.selectedTemplateId)
|
|
73462
73461
|
return;
|
|
73463
73462
|
let C = i.getTemplateByTemplateId(
|
|
@@ -73658,7 +73657,7 @@ const kt = p2("uiContentSettings", {
|
|
|
73658
73657
|
isServerRenderOverride: C = !1
|
|
73659
73658
|
}) {
|
|
73660
73659
|
var H, V, R, B, F, Z, Y;
|
|
73661
|
-
const h = we(), g =
|
|
73660
|
+
const h = we(), g = xe(), m = Fe(), y = K5(), w = D2(), b = l6(), S = L6(), _ = k6(), k = x9();
|
|
73662
73661
|
$3(), k.initialise({ reset: !1 }), this.setIsInitialising({ isInitialising: !0 });
|
|
73663
73662
|
try {
|
|
73664
73663
|
const f1 = P4(
|
|
@@ -73821,7 +73820,7 @@ const kt = p2("uiContentSettings", {
|
|
|
73821
73820
|
pages: e,
|
|
73822
73821
|
sections: t
|
|
73823
73822
|
}) {
|
|
73824
|
-
const n =
|
|
73823
|
+
const n = xe(), i = kt(), o = _t(), s = e.map((r) => ({
|
|
73825
73824
|
...r,
|
|
73826
73825
|
contents: r.contents.map(
|
|
73827
73826
|
(a) => gh1(a, {
|
|
@@ -73840,7 +73839,7 @@ const kt = p2("uiContentSettings", {
|
|
|
73840
73839
|
});
|
|
73841
73840
|
},
|
|
73842
73841
|
initialiseAdminMaker(e) {
|
|
73843
|
-
const t =
|
|
73842
|
+
const t = xe(), n = dA(), i = kt();
|
|
73844
73843
|
if (!t.isAdmin)
|
|
73845
73844
|
return;
|
|
73846
73845
|
n.setPreviewLogoTemplateModels({
|
|
@@ -74032,7 +74031,7 @@ const kt = p2("uiContentSettings", {
|
|
|
74032
74031
|
return we().brandPageTitle;
|
|
74033
74032
|
},
|
|
74034
74033
|
brandPageViewModel() {
|
|
74035
|
-
const e =
|
|
74034
|
+
const e = xe(), t = Fe(), n = V5();
|
|
74036
74035
|
if (e.isAdmin && t.logoTheme) {
|
|
74037
74036
|
const o = w7(
|
|
74038
74037
|
t.logoTheme,
|
|
@@ -74095,7 +74094,7 @@ const kt = p2("uiContentSettings", {
|
|
|
74095
74094
|
return !this.isSaving;
|
|
74096
74095
|
},
|
|
74097
74096
|
isPublished() {
|
|
74098
|
-
const e =
|
|
74097
|
+
const e = xe(), t = we();
|
|
74099
74098
|
return !e.isAdmin && t.isPublished;
|
|
74100
74099
|
},
|
|
74101
74100
|
isPublishing() {
|
|
@@ -74111,7 +74110,7 @@ const kt = p2("uiContentSettings", {
|
|
|
74111
74110
|
return we().runtimeEnvironment;
|
|
74112
74111
|
},
|
|
74113
74112
|
showBrandCrowdLogo() {
|
|
74114
|
-
const e =
|
|
74113
|
+
const e = xe();
|
|
74115
74114
|
return !e.isAdmin && e.features.showBrandCrowdLogo;
|
|
74116
74115
|
}
|
|
74117
74116
|
}
|
|
@@ -74179,7 +74178,7 @@ const kt = p2("uiContentSettings", {
|
|
|
74179
74178
|
this.logoDraftToken = e.logoDraftToken;
|
|
74180
74179
|
},
|
|
74181
74180
|
async triggerLockedContentClickedEvent(e) {
|
|
74182
|
-
const t =
|
|
74181
|
+
const t = xe(), n = we();
|
|
74183
74182
|
t.isAdmin || await n.triggerLockedContentClickedEvent(
|
|
74184
74183
|
e.type
|
|
74185
74184
|
);
|
|
@@ -74202,7 +74201,7 @@ const kt = p2("uiContentSettings", {
|
|
|
74202
74201
|
}
|
|
74203
74202
|
},
|
|
74204
74203
|
getters: {
|
|
74205
|
-
endpoints: () =>
|
|
74204
|
+
endpoints: () => xe().isAdmin ? nq1 : tq1
|
|
74206
74205
|
}
|
|
74207
74206
|
}), qM = 2e3, KU1 = "brandPageActive", YU1 = "brandPageInactive", XU1 = "editorCopyUrlButton", JU1 = "editorSaveButton", QU1 = "editorPublishButton", GM = "editorPublishModal", eZ1 = "editorViewWebPageLink", tZ1 = "manageWebPageCopyUrlButton", nZ1 = "manageWebPageCreateNewWebsiteButton", iZ1 = "manageWebPageDuplicateButton", oZ1 = "manageWebPagePublishButton", WM = "manageWebPagePublishModal", jM = "manageWebPageSetUrlModal", sZ1 = "manageWebPageViewWebPageLink", rZ1 = "manageWebPageUpdateSettingsButton", aZ1 = "manageWebPageSensitiveContentButton", lZ1 = "manageWebPageUnpublishButton", dZ1 = "publishSuccessModalCopyUrlButton", cZ1 = "publishSuccessModalViewWebPageButton", uZ1 = "requestPayment", KM = "saveProgress", CZ1 = "supportMe", YM = "updateSettings", m2 = async (e, { waitForEventCallback: t } = {}) => window ? new Promise((n) => {
|
|
74208
74207
|
if (window.dataLayer = window.dataLayer || [], t) {
|
|
@@ -74219,7 +74218,7 @@ const kt = p2("uiContentSettings", {
|
|
|
74219
74218
|
} else
|
|
74220
74219
|
window.dataLayer.push(e), n(!0);
|
|
74221
74220
|
}).catch((n) => (process.env.NODE_ENV !== "production" && console.error(n), !1)) : Promise.resolve(!1), y2 = () => {
|
|
74222
|
-
const e =
|
|
74221
|
+
const e = xe();
|
|
74223
74222
|
return process.env.NODE_ENV !== "production" && typeof e.hasPremiumSubscription != "boolean" && console.error("hasPremiumSubscription should be a boolean"), e.hasPremiumSubscription ? KU1 : YU1;
|
|
74224
74223
|
}, cA = p2("eventManager", {
|
|
74225
74224
|
actions: {
|
|
@@ -75122,7 +75121,7 @@ const kt = p2("uiContentSettings", {
|
|
|
75122
75121
|
convertBackToMultipleValues: !1,
|
|
75123
75122
|
convert(e) {
|
|
75124
75123
|
var t;
|
|
75125
|
-
return ((t = e.lineHeight) == null ? void 0 : t.toString()) ||
|
|
75124
|
+
return ((t = e.lineHeight) == null ? void 0 : t.toString()) || He;
|
|
75126
75125
|
},
|
|
75127
75126
|
convertBack(e) {
|
|
75128
75127
|
return {
|
|
@@ -76340,7 +76339,7 @@ const kt = p2("uiContentSettings", {
|
|
|
76340
76339
|
type: "slider",
|
|
76341
76340
|
defaultValue: {
|
|
76342
76341
|
fontSize: d6,
|
|
76343
|
-
lineHeight:
|
|
76342
|
+
lineHeight: He
|
|
76344
76343
|
},
|
|
76345
76344
|
title: $("sizeTitle"),
|
|
76346
76345
|
valueConvertor: Ph,
|
|
@@ -79058,7 +79057,7 @@ const kt = p2("uiContentSettings", {
|
|
|
79058
79057
|
hardCodedImageStoryData: NC(Hq1)
|
|
79059
79058
|
}, Vl = J({
|
|
79060
79059
|
setup() {
|
|
79061
|
-
const e =
|
|
79060
|
+
const e = xe(), t = ne();
|
|
79062
79061
|
return {
|
|
79063
79062
|
isAdmin: x(() => e.isAdmin),
|
|
79064
79063
|
isSaving: x(() => t.isSaving),
|
|
@@ -81649,7 +81648,7 @@ const XW1 = /* @__PURE__ */ v(jW1, [["render", YW1]]), JW1 = { class: "u-inline"
|
|
|
81649
81648
|
logoTheme: { default: void 0 }
|
|
81650
81649
|
},
|
|
81651
81650
|
setup(e) {
|
|
81652
|
-
const t = e, n =
|
|
81651
|
+
const t = e, n = xe(), i = L6(), o = x(() => n.isAdmin), s = x(
|
|
81653
81652
|
() => i.backgroundStyles
|
|
81654
81653
|
), r = x(() => s.value.style.background ? s.value.style.background.startsWith("rgb") ? o2(s.value.style.background).toUpperCase() : s.value.style.background : null), a = x(() => S5(r.value)), l = (d) => {
|
|
81655
81654
|
var h, g;
|
|
@@ -81705,7 +81704,7 @@ const Bg = /* @__PURE__ */ v(Cj1, [["render", hj1]]), xk = J({
|
|
|
81705
81704
|
}
|
|
81706
81705
|
},
|
|
81707
81706
|
setup() {
|
|
81708
|
-
const e =
|
|
81707
|
+
const e = xe(), t = L6();
|
|
81709
81708
|
return {
|
|
81710
81709
|
isAdmin: x(() => e.isAdmin),
|
|
81711
81710
|
backgroundStyles: x(
|
|
@@ -82092,7 +82091,7 @@ const Mj1 = { key: 2 }, kj1 = { class: "tw-grid tw-gap-4 tw-grid-cols-2" }, Tj1
|
|
|
82092
82091
|
__name: "ShapeLibrary",
|
|
82093
82092
|
emits: ["on-select-image", "on-collection-enabled"],
|
|
82094
82093
|
setup(e, { emit: t }) {
|
|
82095
|
-
const n = t, i = Fe(), o = we(), s = ne(), r =
|
|
82094
|
+
const n = t, i = Fe(), o = we(), s = ne(), r = xe(), a = $3(), l = x(() => r.isAdmin), d = x(
|
|
82096
82095
|
() => a.selectedTabName === "BackgroundSettings"
|
|
82097
82096
|
), c = x(
|
|
82098
82097
|
() => r.isAdmin ? `admin_${s.brandPageType.toLocaleLowerCase()}` : s.brandPageType.toLocaleLowerCase()
|
|
@@ -83067,7 +83066,7 @@ const AK1 = /* @__PURE__ */ v(bK1, [["render", EK1], ["__scopeId", "data-v-b29f3
|
|
|
83067
83066
|
}
|
|
83068
83067
|
},
|
|
83069
83068
|
setup() {
|
|
83070
|
-
const e = Fe(), t =
|
|
83069
|
+
const e = Fe(), t = xe();
|
|
83071
83070
|
return {
|
|
83072
83071
|
dropzoneImageUploaderRef: x1(null),
|
|
83073
83072
|
endpoints: x(() => e.endpoints),
|
|
@@ -83285,7 +83284,7 @@ const NA = () => YC || (YC = new KK1()), Ok = J({
|
|
|
83285
83284
|
Loader: Zt
|
|
83286
83285
|
},
|
|
83287
83286
|
setup() {
|
|
83288
|
-
const e = Fe(), t = D2(), n =
|
|
83287
|
+
const e = Fe(), t = D2(), n = xe();
|
|
83289
83288
|
return {
|
|
83290
83289
|
endpoints: x(() => e.endpoints),
|
|
83291
83290
|
uiStore: e,
|
|
@@ -84146,7 +84145,7 @@ const $Y1 = {
|
|
|
84146
84145
|
},
|
|
84147
84146
|
emits: ["on-back", "on-image-picked", "on-image-removed", "on-design-selected", "on-shape-selected", "on-video-selected"],
|
|
84148
84147
|
setup(e, { emit: t }) {
|
|
84149
|
-
const n = (H) => ee(`replaceImageSetting.${H}`), i = e, o = t, s = we(), r =
|
|
84148
|
+
const n = (H) => ee(`replaceImageSetting.${H}`), i = e, o = t, s = we(), r = xe(), a = x(() => s.isPrePurchase), l = x(() => r.features.canUseGettyVideos), d = x1(!0), c = x1([
|
|
84150
84149
|
{
|
|
84151
84150
|
id: "ICON",
|
|
84152
84151
|
label: n("icon"),
|
|
@@ -84297,7 +84296,7 @@ const $Y1 = {
|
|
|
84297
84296
|
mediaType: { default: "" }
|
|
84298
84297
|
},
|
|
84299
84298
|
setup(e) {
|
|
84300
|
-
const t = e, n = [".png", ".ico"], i = ne(), o =
|
|
84299
|
+
const t = e, n = [".png", ".ico"], i = ne(), o = xe(), s = L6(), r = V5(), a = kt(), l = St(), d = x(() => s.backgroundMode), c = x(() => o.isAdmin), C = x(() => {
|
|
84301
84300
|
var V;
|
|
84302
84301
|
return (V = i.fieldSettings) == null ? void 0 : V.replaceImageSettings;
|
|
84303
84302
|
}), h = x(() => {
|
|
@@ -84391,7 +84390,7 @@ const $Y1 = {
|
|
|
84391
84390
|
__name: "BackgroundSettings",
|
|
84392
84391
|
emits: ["on-intent-image-replace"],
|
|
84393
84392
|
setup(e, { emit: t }) {
|
|
84394
|
-
const n = L6(), i =
|
|
84393
|
+
const n = L6(), i = xe(), o = we(), s = ne(), r = Fe(), a = St(), l = x(
|
|
84395
84394
|
() => n.backgroundStyles
|
|
84396
84395
|
), d = x(
|
|
84397
84396
|
() => n.recommendedLogoColors
|
|
@@ -84736,7 +84735,7 @@ function AX1(e, t, n, i, o, s) {
|
|
|
84736
84735
|
}
|
|
84737
84736
|
const PX1 = /* @__PURE__ */ v(EX1, [["render", AX1], ["__scopeId", "data-v-f7e4513e"]]), Fk = J({
|
|
84738
84737
|
setup() {
|
|
84739
|
-
const e = ne(), t = kt(), n = _t(), i = k6(), o =
|
|
84738
|
+
const e = ne(), t = kt(), n = _t(), i = k6(), o = xe(), s = St(), { externalEditor: r } = fd();
|
|
84740
84739
|
return {
|
|
84741
84740
|
mode: x(() => t.mode),
|
|
84742
84741
|
pages: x(() => n.pages),
|
|
@@ -84930,7 +84929,7 @@ const PX1 = /* @__PURE__ */ v(EX1, [["render", AX1], ["__scopeId", "data-v-f7e45
|
|
|
84930
84929
|
}
|
|
84931
84930
|
},
|
|
84932
84931
|
setup() {
|
|
84933
|
-
const e = kt(), t = $3(), n = ne(), i = Fe(), o =
|
|
84932
|
+
const e = kt(), t = $3(), n = ne(), i = Fe(), o = xe(), s = E0(), r = St();
|
|
84934
84933
|
return {
|
|
84935
84934
|
currentRoute: x(() => s.currentRoute),
|
|
84936
84935
|
getContent: x(() => e.getContent),
|
|
@@ -85121,7 +85120,7 @@ const PX1 = /* @__PURE__ */ v(EX1, [["render", AX1], ["__scopeId", "data-v-f7e45
|
|
|
85121
85120
|
}
|
|
85122
85121
|
},
|
|
85123
85122
|
setup() {
|
|
85124
|
-
const e = kt(), t = ne(), n =
|
|
85123
|
+
const e = kt(), t = ne(), n = xe(), i = Fe(), o = $3(), s = _t(), r = we(), a = A0(), l = D2();
|
|
85125
85124
|
return {
|
|
85126
85125
|
getFieldSettings: x(() => e.getFieldSettings),
|
|
85127
85126
|
getContent: x(() => e.getContent),
|
|
@@ -86265,7 +86264,7 @@ const xJ1 = /* @__PURE__ */ v(kJ1, [["render", HJ1], ["__scopeId", "data-v-8240b
|
|
|
86265
86264
|
setup(e) {
|
|
86266
86265
|
const t = Ht({
|
|
86267
86266
|
showUploadModal: !1
|
|
86268
|
-
}), n = x1(null), i =
|
|
86267
|
+
}), n = x1(null), i = xe(), o = () => {
|
|
86269
86268
|
i.emailAddress ? t.showUploadModal = !0 : window.dispatchEvent(
|
|
86270
86269
|
new CustomEvent("SHOW_EMAIL_CAPTURE_MODAL", {
|
|
86271
86270
|
detail: {
|
|
@@ -86438,7 +86437,7 @@ const xJ1 = /* @__PURE__ */ v(kJ1, [["render", HJ1], ["__scopeId", "data-v-8240b
|
|
|
86438
86437
|
}
|
|
86439
86438
|
];
|
|
86440
86439
|
return s.currentLogoIsByo ? F.filter((Z) => Z.value !== "1") : F;
|
|
86441
|
-
}), l = _3(), d = l6(), c = $3(), C =
|
|
86440
|
+
}), l = _3(), d = l6(), c = $3(), C = xe();
|
|
86442
86441
|
zt(() => h()), at(
|
|
86443
86442
|
() => n.isLogoVisible,
|
|
86444
86443
|
() => h()
|
|
@@ -90550,7 +90549,7 @@ const _d = /* @__PURE__ */ v(S8e, [["render", M8e]]), Jk = J({
|
|
|
90550
90549
|
}
|
|
90551
90550
|
},
|
|
90552
90551
|
setup() {
|
|
90553
|
-
const e = _t(), t =
|
|
90552
|
+
const e = _t(), t = xe();
|
|
90554
90553
|
return {
|
|
90555
90554
|
pageSettingsStore: e,
|
|
90556
90555
|
userStore: t
|
|
@@ -90721,7 +90720,7 @@ const Fg = /* @__PURE__ */ v(k8e, [["render", T8e]]), L8e = {
|
|
|
90721
90720
|
setup(e, { expose: t, emit: n }) {
|
|
90722
90721
|
const i = e, o = k6(), s = kt(), r = _t(), a = x1(), l = x1(), d = x(
|
|
90723
90722
|
() => o.availableTextFontFamilyOptions
|
|
90724
|
-
), c = JO(e, "modelValue"), C = n, h = x(() => `fontFamilySelector-${P3()}`), g = x1(!1), m =
|
|
90723
|
+
), c = JO(e, "modelValue"), C = n, h = x(() => `fontFamilySelector-${P3()}`), g = x1(!1), m = xe(), y = Fe(), w = x(() => m.isAdmin), b = x(() => y.logoTheme), S = Ht({
|
|
90725
90724
|
selectedTextStyle: "",
|
|
90726
90725
|
selectedFont: "Lato",
|
|
90727
90726
|
selectedFontSize: "2.25em",
|
|
@@ -93412,7 +93411,7 @@ const Ki = /* @__PURE__ */ v(zne, [["render", eie]]), tie = { class: "tw-flex tw
|
|
|
93412
93411
|
},
|
|
93413
93412
|
emits: ["update:modelValue"],
|
|
93414
93413
|
setup(e, { emit: t }) {
|
|
93415
|
-
const n =
|
|
93414
|
+
const n = xe(), i = ne(), o = t, s = x1(null), r = e, a = Ht({
|
|
93416
93415
|
isCollapsed: !0
|
|
93417
93416
|
}), l = x(() => r.name.replace(/Override$/, "")), d = x(() => r.object || r.content), c = x(() => {
|
|
93418
93417
|
const w = Lf(
|
|
@@ -94546,13 +94545,11 @@ const jie = /* @__PURE__ */ v(Rie, [["render", Wie]]), Kie = 250, Yie = J({
|
|
|
94546
94545
|
},
|
|
94547
94546
|
emits: ["on-use-text", "capture-snapshot"],
|
|
94548
94547
|
setup(e, { emit: t }) {
|
|
94549
|
-
const n = e, i = t, o = we(), s = St(), r = A0(), a =
|
|
94550
|
-
|
|
94551
|
-
|
|
94552
|
-
|
|
94553
|
-
|
|
94554
|
-
}), C = x1(!1), h = he("generateText"), g = () => {
|
|
94555
|
-
C.value = !0, s.sendWebsiteEvent({
|
|
94548
|
+
const n = e, i = t, o = we(), s = St(), r = A0(), a = x(() => o.abTests), l = x(() => {
|
|
94549
|
+
const m = a.value.bp_4572_ai_text_generation_post_purchase;
|
|
94550
|
+
return (m == null ? void 0 : m.isVariation) ?? !1;
|
|
94551
|
+
}), d = x1(!1), c = he("generateText"), C = () => {
|
|
94552
|
+
d.value = !0, s.sendWebsiteEvent({
|
|
94556
94553
|
eventName: Be.WEBSITE_MAKER_AI_GENERATE_TEXT,
|
|
94557
94554
|
eventProps: {
|
|
94558
94555
|
cta_location: n.ctaLocation,
|
|
@@ -94561,37 +94558,37 @@ const jie = /* @__PURE__ */ v(Rie, [["render", Wie]]), Kie = 250, Yie = J({
|
|
|
94561
94558
|
}), r.clearSnapshot(), setTimeout(() => {
|
|
94562
94559
|
i("capture-snapshot");
|
|
94563
94560
|
}, 50);
|
|
94564
|
-
},
|
|
94565
|
-
|
|
94561
|
+
}, h = () => {
|
|
94562
|
+
d.value = !1, s.sendGenerateTextContinuationEvent(
|
|
94566
94563
|
n.ctaLocation,
|
|
94567
94564
|
XH.EXIT
|
|
94568
94565
|
);
|
|
94569
|
-
},
|
|
94570
|
-
i("on-use-text",
|
|
94566
|
+
}, g = (m) => {
|
|
94567
|
+
i("on-use-text", m), d.value = !1;
|
|
94571
94568
|
};
|
|
94572
|
-
return (
|
|
94569
|
+
return (m, y) => l.value ? (u(), f("div", yoe, [
|
|
94573
94570
|
p("p", {
|
|
94574
|
-
title: A(
|
|
94571
|
+
title: A(c),
|
|
94575
94572
|
class: D(["tw-text-xs tw-text-primary-500 tw-font-bold tw-cursor-pointer tw-flex tw-items-center tw-border-solid tw-border-primary-500 tw-border-2 tw-rounded-md tw-px-2 tw-py-1", {
|
|
94576
94573
|
"tw-uppercase": !n.isDesignCom
|
|
94577
94574
|
}]),
|
|
94578
|
-
onClick:
|
|
94575
|
+
onClick: C
|
|
94579
94576
|
}, [
|
|
94580
94577
|
T(A(le), {
|
|
94581
94578
|
name: "ai",
|
|
94582
94579
|
class: "tw-mr-1 tw-flex"
|
|
94583
94580
|
}),
|
|
94584
|
-
Ie(" " + P(A(
|
|
94581
|
+
Ie(" " + P(A(c)), 1)
|
|
94585
94582
|
], 10, woe),
|
|
94586
94583
|
T(moe, {
|
|
94587
94584
|
id: n.id,
|
|
94588
94585
|
"field-name": n.fieldName,
|
|
94589
|
-
"is-visible":
|
|
94586
|
+
"is-visible": d.value,
|
|
94590
94587
|
"existing-text": n.existingText,
|
|
94591
94588
|
"is-design-com": n.isDesignCom,
|
|
94592
94589
|
"cta-location": n.ctaLocation,
|
|
94593
|
-
onOnClose:
|
|
94594
|
-
onOnUseText:
|
|
94590
|
+
onOnClose: h,
|
|
94591
|
+
onOnUseText: g
|
|
94595
94592
|
}, null, 8, ["id", "field-name", "is-visible", "existing-text", "is-design-com", "cta-location"])
|
|
94596
94593
|
])) : M("", !0);
|
|
94597
94594
|
}
|
|
@@ -95361,7 +95358,7 @@ function dse(e, t, n, i, o, s) {
|
|
|
95361
95358
|
}
|
|
95362
95359
|
const cse = /* @__PURE__ */ v(ise, [["render", dse]]), nT = J({
|
|
95363
95360
|
setup() {
|
|
95364
|
-
const e = ne(), t = kt(), n =
|
|
95361
|
+
const e = ne(), t = kt(), n = xe(), i = _t(), o = V5(), s = St();
|
|
95365
95362
|
return {
|
|
95366
95363
|
items: x(() => t.items),
|
|
95367
95364
|
selectedItemId: x(() => t.selectedItemId),
|
|
@@ -95797,7 +95794,7 @@ const Tse = /* @__PURE__ */ v(vse, [["render", kse]]), K3 = {
|
|
|
95797
95794
|
logo: "logo"
|
|
95798
95795
|
}, sT = J({
|
|
95799
95796
|
setup() {
|
|
95800
|
-
const e = ne(), t = Fe(), n =
|
|
95797
|
+
const e = ne(), t = Fe(), n = xe(), i = _t(), o = kt(), s = x9(), r = we(), a = St(), l = (g) => {
|
|
95801
95798
|
i.setPages({ pages: g.map((m) => m.page) });
|
|
95802
95799
|
}, d = x({
|
|
95803
95800
|
get() {
|
|
@@ -97317,7 +97314,7 @@ const zre = /* @__PURE__ */ v(Dre, [["render", Zre]]), aT = J({
|
|
|
97317
97314
|
setup() {
|
|
97318
97315
|
const e = kt(), t = ne();
|
|
97319
97316
|
_t(), k6();
|
|
97320
|
-
const n =
|
|
97317
|
+
const n = xe(), i = Fe(), o = E0(), { externalEditor: s } = fd();
|
|
97321
97318
|
return {
|
|
97322
97319
|
currentRoute: x(() => o.currentRoute),
|
|
97323
97320
|
selectedItemId: x(() => e.selectedItemId),
|
|
@@ -98978,7 +98975,7 @@ const Fle = /* @__PURE__ */ v(Ple, [["render", Rle], ["__scopeId", "data-v-ac721
|
|
|
98978
98975
|
}
|
|
98979
98976
|
},
|
|
98980
98977
|
setup() {
|
|
98981
|
-
const e = $3(), t = we(), n =
|
|
98978
|
+
const e = $3(), t = we(), n = xe(), i = kt(), o = ne();
|
|
98982
98979
|
return {
|
|
98983
98980
|
brandPageContainerStore: t,
|
|
98984
98981
|
tabs: x(() => e.tabs),
|
|
@@ -99135,7 +99132,7 @@ function ede(e, t, n, i, o, s) {
|
|
|
99135
99132
|
}
|
|
99136
99133
|
const tde = /* @__PURE__ */ v(jle, [["render", ede]]), fT = J({
|
|
99137
99134
|
setup() {
|
|
99138
|
-
const e = Fe(), t = k6(), n =
|
|
99135
|
+
const e = Fe(), t = k6(), n = xe(), i = ne(), o = we(), s = L6(), r = St();
|
|
99139
99136
|
return {
|
|
99140
99137
|
logoTheme: x(() => e.logoTheme),
|
|
99141
99138
|
availableButtonStyleConfigs: x(
|
|
@@ -99363,7 +99360,7 @@ const tde = /* @__PURE__ */ v(jle, [["render", ede]]), fT = J({
|
|
|
99363
99360
|
}), sde = /* @__PURE__ */ J({
|
|
99364
99361
|
__name: "TextStyleOptionsSettingsWithState",
|
|
99365
99362
|
setup(e) {
|
|
99366
|
-
const t = k6(), n =
|
|
99363
|
+
const t = k6(), n = xe(), i = Fe(), o = _t(), s = x(
|
|
99367
99364
|
() => t.availableTextFontFamilyOptions
|
|
99368
99365
|
), r = x(
|
|
99369
99366
|
() => t.textStyles.textStyleOptions
|
|
@@ -99707,7 +99704,7 @@ const $de = 100, gT = J({
|
|
|
99707
99704
|
}
|
|
99708
99705
|
},
|
|
99709
99706
|
setup() {
|
|
99710
|
-
const e = ne(), t = $3(), n =
|
|
99707
|
+
const e = ne(), t = $3(), n = xe(), i = kt(), o = Fe(), s = _t(), r = we(), a = K5(), l = p3(), d = D0(), c = i$(), C = B3(), h = A0(), { captureSnapshot: g } = Ode(), m = V5();
|
|
99711
99708
|
return {
|
|
99712
99709
|
commonTr: he,
|
|
99713
99710
|
currentNotificationMessage: x(
|
|
@@ -100204,7 +100201,7 @@ function Kde(e, t, n, i, o, s) {
|
|
|
100204
100201
|
const Yde = /* @__PURE__ */ v(Nde, [["render", Kde], ["__scopeId", "data-v-88329098"]]), Xde = 250, yT = J({
|
|
100205
100202
|
emits: ["template-selected"],
|
|
100206
100203
|
setup() {
|
|
100207
|
-
const e = ne(), t = we(), n =
|
|
100204
|
+
const e = ne(), t = we(), n = xe(), i = K5();
|
|
100208
100205
|
return {
|
|
100209
100206
|
selectedTemplateId: x(
|
|
100210
100207
|
() => e.selectedTemplateId
|
|
@@ -102419,7 +102416,7 @@ const qCe = /* @__PURE__ */ v(PCe, [["render", zCe]]), GCe = { class: "tw-relati
|
|
|
102419
102416
|
}
|
|
102420
102417
|
},
|
|
102421
102418
|
setup() {
|
|
102422
|
-
const e = ne(), t =
|
|
102419
|
+
const e = ne(), t = xe();
|
|
102423
102420
|
return {
|
|
102424
102421
|
mode: x(() => e.mode),
|
|
102425
102422
|
isAdmin: x(() => t.isAdmin),
|
|
@@ -102626,7 +102623,7 @@ const ppe = /* @__PURE__ */ v(upe, [["render", Cpe]]), hpe = {
|
|
|
102626
102623
|
}), Lpe = { key: 1 }, Vpe = { class: "tw-mx-1" }, Hpe = { class: "tw-text-left tw-font-bold tw-mb-2" }, xpe = { class: "tw-font-sans tw-text-sm tw-text-grayscale-600" }, Ipe = { class: "tw-mt-3 tw-mb-1.5 tw-text-sm tw-font-bold" }, Epe = { class: "tw-mt-5" }, Ape = { class: "tw-font-sans tw-text-sm tw-text-grayscale-600" }, Ppe = { class: "tw-mt-2" }, Bpe = { class: "tw-mt-2" }, Ope = "saveContact", $pe = /* @__PURE__ */ J({
|
|
102627
102624
|
__name: "BrandPageSettings",
|
|
102628
102625
|
setup(e) {
|
|
102629
|
-
const t = ne(), n =
|
|
102626
|
+
const t = ne(), n = xe(), i = we(), o = $3(), s = x1(
|
|
102630
102627
|
null
|
|
102631
102628
|
), { selectedSettingsSection: r } = ip(o), a = (g1) => {
|
|
102632
102629
|
g1 && $4(() => {
|
|
@@ -103981,7 +103978,7 @@ export {
|
|
|
103981
103978
|
J1 as H,
|
|
103982
103979
|
nw as I,
|
|
103983
103980
|
ne as J,
|
|
103984
|
-
|
|
103981
|
+
xe as K,
|
|
103985
103982
|
wn as L,
|
|
103986
103983
|
Fe as M,
|
|
103987
103984
|
T1 as N,
|
|
@@ -3103,7 +3103,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3103
3103
|
maxNumOfPages: number;
|
|
3104
3104
|
canUseRichTextEditor: boolean;
|
|
3105
3105
|
canUseGettyVideos: boolean;
|
|
3106
|
-
canUseAITextGenerator: boolean;
|
|
3107
3106
|
canUseGoogleAdsense: boolean;
|
|
3108
3107
|
googleAdsenseEnabled: boolean;
|
|
3109
3108
|
}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designcrowd/library.brand-page",
|
|
3
3
|
"description": "A collection of Maker/Designer applications",
|
|
4
|
-
"version": "5.16.44
|
|
4
|
+
"version": "5.16.44",
|
|
5
5
|
"author": "Design.com Eng",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"cy:run:ci": "cypress run --browser chrome --headless --config \"baseUrl=https://maker.designcrowd.ninja\"",
|
|
53
53
|
"cy:report": "npx junit-merge -o ./cypress/results/report.xml ./cypress/results/*.xml",
|
|
54
54
|
"cy:open": "cypress open",
|
|
55
|
-
"pre-push": "
|
|
55
|
+
"pre-push": "NODE_ENV=production lint-staged"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@ckpack/vue-color": "1.4.1",
|
package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts
CHANGED
|
@@ -90,7 +90,6 @@ export const userFeatures: UserFeatures = {
|
|
|
90
90
|
canUseGettyVideos: false,
|
|
91
91
|
canUseGoogleAdsense: false,
|
|
92
92
|
googleAdsenseEnabled: false,
|
|
93
|
-
canUseAITextGenerator: true,
|
|
94
93
|
};
|
|
95
94
|
|
|
96
95
|
export const BRAND_PAGE: BrandPageData = {
|
|
@@ -2126,7 +2125,6 @@ export const USER_FEATURES: UIUserFeatures = Object.freeze({
|
|
|
2126
2125
|
canUseGettyVideos: true,
|
|
2127
2126
|
canUseGoogleAdsense: false,
|
|
2128
2127
|
googleAdsenseEnabled: true,
|
|
2129
|
-
canUseAITextGenerator: true,
|
|
2130
2128
|
} as UIUserFeatures);
|
|
2131
2129
|
|
|
2132
2130
|
export const INITIALISE_PAYLOAD: InitialisePayload = Object.freeze({
|
|
@@ -31,7 +31,6 @@ export const useBrandPageMakerUserStore = defineStore('brandPageMakerUser', {
|
|
|
31
31
|
canUsePremiumFontFamily: false,
|
|
32
32
|
maxNumOfPages: DEFAULT_MAX_NUM_OF_PAGES,
|
|
33
33
|
canUseGettyVideos: false,
|
|
34
|
-
canUseAITextGenerator: false,
|
|
35
34
|
canUseGoogleAdsense: false,
|
|
36
35
|
googleAdsenseEnabled: false,
|
|
37
36
|
},
|
package/src/constants/ui.ts
CHANGED
|
@@ -31,7 +31,6 @@ import GenerateAiModal from '../generate-ai-modal/GenerateAiModal.vue';
|
|
|
31
31
|
import { commonTr } from '../../../../composables/useTranslate';
|
|
32
32
|
import {
|
|
33
33
|
useBrandPageContainerStore,
|
|
34
|
-
useBrandPageMakerUserStore,
|
|
35
34
|
useSnapshotStore,
|
|
36
35
|
} from '../../../../brand-page-maker/stores';
|
|
37
36
|
import type { AbTestResult } from '../../../../brand-page/models/brand-page-context.model';
|
|
@@ -62,20 +61,15 @@ const emit = defineEmits<{
|
|
|
62
61
|
const brandPageContainerStore = useBrandPageContainerStore();
|
|
63
62
|
const eventTracker = useEventTracker();
|
|
64
63
|
const snapshotStore = useSnapshotStore();
|
|
65
|
-
const userStore = useBrandPageMakerUserStore();
|
|
66
64
|
|
|
67
65
|
const abTests = computed(() => brandPageContainerStore.abTests);
|
|
68
66
|
|
|
69
|
-
const canUseAITextGenerator = computed(
|
|
70
|
-
() => userStore.features.canUseAITextGenerator,
|
|
71
|
-
);
|
|
72
|
-
|
|
73
67
|
const showButton = computed(() => {
|
|
74
68
|
const abTest = abTests.value
|
|
75
69
|
.bp_4572_ai_text_generation_post_purchase as unknown as
|
|
76
70
|
| AbTestResult
|
|
77
71
|
| undefined;
|
|
78
|
-
return
|
|
72
|
+
return abTest?.isVariation ?? false;
|
|
79
73
|
});
|
|
80
74
|
|
|
81
75
|
const generateTextModalVisible = ref(false);
|