@designcrowd/library.brand-page 5.17.25-undo-9 → 5.17.25-undo-10
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-DmDSspcZ.js → CreatedOnBrandCrowd-de-de-C2CJCAQ1.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-B5Lh1tFl.js → CreatedOnBrandCrowd-en-us-Bg5k7y_D.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-BOiOyh5Y.js → CreatedOnBrandCrowd-es-es-DAaAXvzy.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BbC8s_pY.js → CreatedOnBrandCrowd-fr-ca-B7C0ERbi.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BbC8s_pY.js → CreatedOnBrandCrowd-fr-fr-B7C0ERbi.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-B9PQ72m4.js → CreatedOnBrandCrowd-pt-br-1pvCqQK1.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-B9PQ72m4.js → CreatedOnBrandCrowd-pt-pt-1pvCqQK1.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-C7NzbKIg.js → CreatedOnDcom-de-de-hbcr-qW0.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-DbVi6Q9C.js → CreatedOnDcom-en-us-BToix_74.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-C4TPAk-c.js → CreatedOnDcom-es-es-DOCxN0tr.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-xqzYFaKy.js → CreatedOnDcom-fr-ca-Q3ZYgCxp.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-Bh-7lY7W.js → CreatedOnDcom-fr-fr-C1-dUWKB.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-D3J8peaF.js → CreatedOnDcom-pt-br-KWKgld1I.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-101mCRJX.js → CreatedOnDcom-pt-pt-CRR3Hfej.js} +1 -1
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +22 -0
- package/lib/src/brand-page-maker/stores/history/history-store.js +20 -1
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-MGJszuw2.js → lib-Bhf5ZHsd.js} +604 -596
- package/package.json +1 -1
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.test.ts +74 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +28 -0
- package/src/brand-page-maker/stores/history/history-store.test.ts +62 -0
- package/src/brand-page-maker/stores/history/history-store.ts +22 -1
|
@@ -390,29 +390,29 @@ class Ja extends md {
|
|
|
390
390
|
const y1 = (o.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && Y ? void 0 : m, Q = V && D !== m && this.options.updateMissing;
|
|
391
391
|
if (Y || q || Q) {
|
|
392
392
|
if (this.logger.log(Q ? "updateKey" : "missingKey", u, d, a, Q ? D : m), r) {
|
|
393
|
-
const
|
|
393
|
+
const p1 = this.resolve(a, {
|
|
394
394
|
...o,
|
|
395
395
|
keySeparator: !1
|
|
396
396
|
});
|
|
397
|
-
|
|
397
|
+
p1 && p1.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
398
398
|
}
|
|
399
399
|
let U = [];
|
|
400
|
-
const
|
|
401
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
402
|
-
for (let
|
|
403
|
-
U.push(p1
|
|
400
|
+
const u1 = this.languageUtils.getFallbackCodes(this.options.fallbackLng, o.lng || this.language);
|
|
401
|
+
if (this.options.saveMissingTo === "fallback" && u1 && u1[0])
|
|
402
|
+
for (let p1 = 0; p1 < u1.length; p1++)
|
|
403
|
+
U.push(u1[p1]);
|
|
404
404
|
else this.options.saveMissingTo === "all" ? U = this.languageUtils.toResolveHierarchy(o.lng || this.language) : U.push(o.lng || this.language);
|
|
405
|
-
const
|
|
405
|
+
const G = (p1, Q1, x1) => {
|
|
406
406
|
var T1;
|
|
407
407
|
const L1 = V && x1 !== m ? x1 : y1;
|
|
408
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
408
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(p1, d, Q1, L1, Q, o) : (T1 = this.backendConnector) != null && T1.saveMissing && this.backendConnector.saveMissing(p1, d, Q1, L1, Q, o), this.emit("missingKey", p1, d, Q1, m);
|
|
409
409
|
};
|
|
410
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? U.forEach((
|
|
411
|
-
const Q1 = this.pluralResolver.getSuffixes(
|
|
410
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? U.forEach((p1) => {
|
|
411
|
+
const Q1 = this.pluralResolver.getSuffixes(p1, o);
|
|
412
412
|
B && o[`defaultValue${this.options.pluralSeparator}zero`] && Q1.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Q1.push(`${this.options.pluralSeparator}zero`), Q1.forEach((x1) => {
|
|
413
|
-
|
|
413
|
+
G([p1], a + x1, o[`defaultValue${x1}`] || D);
|
|
414
414
|
});
|
|
415
|
-
}) :
|
|
415
|
+
}) : G(U, a, D));
|
|
416
416
|
}
|
|
417
417
|
m = this.extendTranslation(m, t, o, g, i), Y && m === a && this.options.appendNamespaceToMissingKey && (m = `${d}${c}${a}`), (Y || q) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}${c}${a}` : a, q ? m : void 0, o));
|
|
418
418
|
}
|
|
@@ -19424,15 +19424,15 @@ function Mm1() {
|
|
|
19424
19424
|
if (q && (K.style.transform = "none"), Y && (K.style.webkitTransform = "none"), n.roundLengths)
|
|
19425
19425
|
B = e.isHorizontal() ? eh(K, "width") : eh(K, "height");
|
|
19426
19426
|
else {
|
|
19427
|
-
const f1 = t(X, "width"), y1 = t(X, "padding-left"), Q = t(X, "padding-right"), U = t(X, "margin-left"),
|
|
19428
|
-
if (
|
|
19429
|
-
B = f1 + U +
|
|
19427
|
+
const f1 = t(X, "width"), y1 = t(X, "padding-left"), Q = t(X, "padding-right"), U = t(X, "margin-left"), u1 = t(X, "margin-right"), G = X.getPropertyValue("box-sizing");
|
|
19428
|
+
if (G && G === "border-box")
|
|
19429
|
+
B = f1 + U + u1;
|
|
19430
19430
|
else {
|
|
19431
19431
|
const {
|
|
19432
|
-
clientWidth:
|
|
19432
|
+
clientWidth: p1,
|
|
19433
19433
|
offsetWidth: Q1
|
|
19434
19434
|
} = K;
|
|
19435
|
-
B = f1 + y1 + Q + U +
|
|
19435
|
+
B = f1 + y1 + Q + U + u1 + (Q1 - p1);
|
|
19436
19436
|
}
|
|
19437
19437
|
}
|
|
19438
19438
|
q && (K.style.transform = q), Y && (K.style.webkitTransform = Y), n.roundLengths && (B = Math.floor(B));
|
|
@@ -22330,13 +22330,13 @@ function Dy1(e) {
|
|
|
22330
22330
|
byMousewheel: !0
|
|
22331
22331
|
}), t.params.freeMode.sticky) {
|
|
22332
22332
|
clearTimeout(r), r = void 0, d.length >= 15 && d.shift();
|
|
22333
|
-
const U = d.length ? d[d.length - 1] : void 0,
|
|
22333
|
+
const U = d.length ? d[d.length - 1] : void 0, u1 = d[0];
|
|
22334
22334
|
if (d.push(q), U && (q.delta > U.delta || q.direction !== U.direction))
|
|
22335
22335
|
d.splice(0);
|
|
22336
|
-
else if (d.length >= 15 && q.time -
|
|
22337
|
-
const
|
|
22336
|
+
else if (d.length >= 15 && q.time - u1.time < 500 && u1.delta - q.delta >= 1 && q.delta <= 6) {
|
|
22337
|
+
const G = D > 0 ? 0.8 : 0.2;
|
|
22338
22338
|
l = q, d.splice(0), r = vi(() => {
|
|
22339
|
-
t.slideToClosest(t.params.speed, !0, void 0,
|
|
22339
|
+
t.slideToClosest(t.params.speed, !0, void 0, G);
|
|
22340
22340
|
}, 0);
|
|
22341
22341
|
}
|
|
22342
22342
|
r || (r = vi(() => {
|
|
@@ -22746,39 +22746,39 @@ function Zy1(e) {
|
|
|
22746
22746
|
});
|
|
22747
22747
|
}, V = () => {
|
|
22748
22748
|
let U;
|
|
22749
|
-
return t.virtual && t.params.virtual.enabled ? U = t.slides.filter((
|
|
22749
|
+
return t.virtual && t.params.virtual.enabled ? U = t.slides.filter((G) => G.classList.contains("swiper-slide-active"))[0] : U = t.slides[t.activeIndex], U ? parseInt(U.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
22750
22750
|
}, H = (U) => {
|
|
22751
22751
|
if (t.destroyed || !t.autoplay.running) return;
|
|
22752
22752
|
cancelAnimationFrame(a), _();
|
|
22753
|
-
let
|
|
22753
|
+
let u1 = typeof U > "u" ? t.params.autoplay.delay : U;
|
|
22754
22754
|
l = t.params.autoplay.delay, d = t.params.autoplay.delay;
|
|
22755
|
-
const
|
|
22756
|
-
!Number.isNaN(
|
|
22757
|
-
const
|
|
22758
|
-
!t || t.destroyed || (t.params.autoplay.reverseDirection ? !t.isBeginning || t.params.loop || t.params.rewind ? (t.slidePrev(
|
|
22755
|
+
const G = V();
|
|
22756
|
+
!Number.isNaN(G) && G > 0 && typeof U > "u" && (u1 = G, l = G, d = G), c = u1;
|
|
22757
|
+
const p1 = t.params.speed, Q1 = () => {
|
|
22758
|
+
!t || t.destroyed || (t.params.autoplay.reverseDirection ? !t.isBeginning || t.params.loop || t.params.rewind ? (t.slidePrev(p1, !0, !0), o("autoplay")) : t.params.autoplay.stopOnLastSlide || (t.slideTo(t.slides.length - 1, p1, !0, !0), o("autoplay")) : !t.isEnd || t.params.loop || t.params.rewind ? (t.slideNext(p1, !0, !0), o("autoplay")) : t.params.autoplay.stopOnLastSlide || (t.slideTo(0, p1, !0, !0), o("autoplay")), t.params.cssMode && (u = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
22759
22759
|
H();
|
|
22760
22760
|
})));
|
|
22761
22761
|
};
|
|
22762
|
-
return
|
|
22762
|
+
return u1 > 0 ? (clearTimeout(r), r = setTimeout(() => {
|
|
22763
22763
|
Q1();
|
|
22764
|
-
},
|
|
22764
|
+
}, u1)) : requestAnimationFrame(() => {
|
|
22765
22765
|
Q1();
|
|
22766
|
-
}),
|
|
22766
|
+
}), u1;
|
|
22767
22767
|
}, $ = () => {
|
|
22768
22768
|
u = (/* @__PURE__ */ new Date()).getTime(), t.autoplay.running = !0, H(), o("autoplayStart");
|
|
22769
22769
|
}, B = () => {
|
|
22770
22770
|
t.autoplay.running = !1, clearTimeout(r), cancelAnimationFrame(a), o("autoplayStop");
|
|
22771
|
-
}, D = (U,
|
|
22771
|
+
}, D = (U, u1) => {
|
|
22772
22772
|
if (t.destroyed || !t.autoplay.running) return;
|
|
22773
22773
|
clearTimeout(r), U || (b = !0);
|
|
22774
|
-
const
|
|
22774
|
+
const G = () => {
|
|
22775
22775
|
o("autoplayPause"), t.params.autoplay.waitForTransition ? t.wrapperEl.addEventListener("transitionend", M) : F();
|
|
22776
22776
|
};
|
|
22777
|
-
if (t.autoplay.paused = !0,
|
|
22778
|
-
v && (c = t.params.autoplay.delay), v = !1,
|
|
22777
|
+
if (t.autoplay.paused = !0, u1) {
|
|
22778
|
+
v && (c = t.params.autoplay.delay), v = !1, G();
|
|
22779
22779
|
return;
|
|
22780
22780
|
}
|
|
22781
|
-
c = (c || t.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - u), !(t.isEnd && c < 0 && !t.params.loop) && (c < 0 && (c = 0),
|
|
22781
|
+
c = (c || t.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - u), !(t.isEnd && c < 0 && !t.params.loop) && (c < 0 && (c = 0), G());
|
|
22782
22782
|
}, F = () => {
|
|
22783
22783
|
t.isEnd && c < 0 && !t.params.loop || t.destroyed || !t.autoplay.running || (u = (/* @__PURE__ */ new Date()).getTime(), b ? (b = !1, H(c)) : H(), t.autoplay.paused = !1, o("autoplayResume"));
|
|
22784
22784
|
}, K = () => {
|
|
@@ -22806,8 +22806,8 @@ function Zy1(e) {
|
|
|
22806
22806
|
(m || b) && F();
|
|
22807
22807
|
}), i("_freeModeNoMomentumRelease", () => {
|
|
22808
22808
|
t.params.autoplay.disableOnInteraction ? B() : D(!0, !0);
|
|
22809
|
-
}), i("beforeTransitionStart", (U,
|
|
22810
|
-
t.destroyed || !t.autoplay.running || (
|
|
22809
|
+
}), i("beforeTransitionStart", (U, u1, G) => {
|
|
22810
|
+
t.destroyed || !t.autoplay.running || (G || !t.params.autoplay.disableOnInteraction ? D(!0, !0) : B());
|
|
22811
22811
|
}), i("sliderFirstMove", () => {
|
|
22812
22812
|
if (!(t.destroyed || !t.autoplay.running)) {
|
|
22813
22813
|
if (t.params.autoplay.disableOnInteraction) {
|
|
@@ -26650,9 +26650,9 @@ Fn.exports;
|
|
|
26650
26650
|
var Fw;
|
|
26651
26651
|
function zb1() {
|
|
26652
26652
|
return Fw || (Fw = 1, (function(e, t) {
|
|
26653
|
-
var n = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, s = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", d = "[object Error]", c = "[object Function]", u = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", m = "[object Object]", y = "[object Promise]", v = "[object RegExp]", b = "[object Set]", S = "[object String]", M = "[object Symbol]", _ = "[object WeakMap]", V = "[object ArrayBuffer]", H = "[object DataView]", $ = "[object Float32Array]", B = "[object Float64Array]", D = "[object Int8Array]", F = "[object Int16Array]", K = "[object Int32Array]", X = "[object Uint8Array]", q = "[object Uint8ClampedArray]", Y = "[object Uint16Array]", f1 = "[object Uint32Array]", y1 = /[\\^$.*+?()[\]{}|]/g, Q = /\w*$/, U = /^\[object .+?Constructor\]$/,
|
|
26654
|
-
|
|
26655
|
-
var
|
|
26653
|
+
var n = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, s = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", d = "[object Error]", c = "[object Function]", u = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", m = "[object Object]", y = "[object Promise]", v = "[object RegExp]", b = "[object Set]", S = "[object String]", M = "[object Symbol]", _ = "[object WeakMap]", V = "[object ArrayBuffer]", H = "[object DataView]", $ = "[object Float32Array]", B = "[object Float64Array]", D = "[object Int8Array]", F = "[object Int16Array]", K = "[object Int32Array]", X = "[object Uint8Array]", q = "[object Uint8ClampedArray]", Y = "[object Uint16Array]", f1 = "[object Uint32Array]", y1 = /[\\^$.*+?()[\]{}|]/g, Q = /\w*$/, U = /^\[object .+?Constructor\]$/, u1 = /^(?:0|[1-9]\d*)$/, G = {};
|
|
26654
|
+
G[s] = G[r] = G[V] = G[H] = G[a] = G[l] = G[$] = G[B] = G[D] = G[F] = G[K] = G[p] = G[g] = G[m] = G[v] = G[b] = G[S] = G[M] = G[X] = G[q] = G[Y] = G[f1] = !0, G[d] = G[c] = G[_] = !1;
|
|
26655
|
+
var p1 = typeof D4 == "object" && D4 && D4.Object === Object && D4, Q1 = typeof self == "object" && self && self.Object === Object && self, x1 = p1 || Q1 || Function("return this")(), L1 = t && !t.nodeType && t, T1 = L1 && !0 && e && !e.nodeType && e, B1 = T1 && T1.exports === L1;
|
|
26656
26656
|
function o2(z, k1) {
|
|
26657
26657
|
return z.set(k1[0], k1[1]), z;
|
|
26658
26658
|
}
|
|
@@ -26697,7 +26697,7 @@ function zb1() {
|
|
|
26697
26697
|
D1[++k1] = [Fe, E2];
|
|
26698
26698
|
}), D1;
|
|
26699
26699
|
}
|
|
26700
|
-
function
|
|
26700
|
+
function W(z, k1) {
|
|
26701
26701
|
return function(D1) {
|
|
26702
26702
|
return z(k1(D1));
|
|
26703
26703
|
};
|
|
@@ -26713,7 +26713,7 @@ function zb1() {
|
|
|
26713
26713
|
return z ? "Symbol(src)_1." + z : "";
|
|
26714
26714
|
})(), a1 = z1.toString, K1 = O1.hasOwnProperty, d2 = O1.toString, p2 = RegExp(
|
|
26715
26715
|
"^" + a1.call(K1).replace(y1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
26716
|
-
), n3 = B1 ? x1.Buffer : void 0, U2 = x1.Symbol, I3 = x1.Uint8Array, S1 =
|
|
26716
|
+
), n3 = B1 ? x1.Buffer : void 0, U2 = x1.Symbol, I3 = x1.Uint8Array, S1 = W(Object.getPrototypeOf, Object), Z1 = Object.create, u2 = O1.propertyIsEnumerable, I2 = g1.splice, _1 = Object.getOwnPropertySymbols, n2 = n3 ? n3.isBuffer : void 0, M1 = W(Object.keys, Object), V1 = v8(x1, "DataView"), a2 = v8(x1, "Map"), J2 = v8(x1, "Promise"), i2 = v8(x1, "Set"), ae = v8(x1, "WeakMap"), fe = v8(Object, "create"), C4 = j6(V1), k5 = j6(a2), q3 = j6(J2), Ze = j6(i2), S9 = j6(ae), L5 = U2 ? U2.prototype : void 0, q4 = L5 ? L5.valueOf : void 0;
|
|
26717
26717
|
function G4(z) {
|
|
26718
26718
|
var k1 = -1, D1 = z ? z.length : 0;
|
|
26719
26719
|
for (this.clear(); ++k1 < D1; ) {
|
|
@@ -26865,7 +26865,7 @@ function zb1() {
|
|
|
26865
26865
|
if (p4 = wc(Fo ? {} : z), !k1)
|
|
26866
26866
|
return gc(z, w8(p4, z));
|
|
26867
26867
|
} else {
|
|
26868
|
-
if (!
|
|
26868
|
+
if (!G[S8])
|
|
26869
26869
|
return E4 ? z : {};
|
|
26870
26870
|
p4 = bc(z, S8, V5, k1);
|
|
26871
26871
|
}
|
|
@@ -26965,7 +26965,7 @@ function zb1() {
|
|
|
26965
26965
|
var D1 = m3(z, k1);
|
|
26966
26966
|
return dc(D1) ? D1 : void 0;
|
|
26967
26967
|
}
|
|
26968
|
-
var Bo = _1 ?
|
|
26968
|
+
var Bo = _1 ? W(_1, Object) : kc, M9 = lc;
|
|
26969
26969
|
(V1 && M9(new V1(new ArrayBuffer(1))) != H || a2 && M9(new a2()) != p || J2 && M9(J2.resolve()) != y || i2 && M9(new i2()) != b || ae && M9(new ae()) != _) && (M9 = function(z) {
|
|
26970
26970
|
var k1 = d2.call(z), D1 = k1 == m ? z.constructor : void 0, E2 = D1 ? j6(D1) : void 0;
|
|
26971
26971
|
if (E2)
|
|
@@ -27024,7 +27024,7 @@ function zb1() {
|
|
|
27024
27024
|
}
|
|
27025
27025
|
}
|
|
27026
27026
|
function vc(z, k1) {
|
|
27027
|
-
return k1 = k1 ?? o, !!k1 && (typeof z == "number" ||
|
|
27027
|
+
return k1 = k1 ?? o, !!k1 && (typeof z == "number" || u1.test(z)) && z > -1 && z % 1 == 0 && z < k1;
|
|
27028
27028
|
}
|
|
27029
27029
|
function Sc(z) {
|
|
27030
27030
|
var k1 = typeof z;
|
|
@@ -28214,22 +28214,22 @@ function Qb1() {
|
|
|
28214
28214
|
var M2 = B, x2 = D;
|
|
28215
28215
|
return B = D = void 0, Y = o2, K = V.apply(x2, M2), K;
|
|
28216
28216
|
}
|
|
28217
|
-
function
|
|
28217
|
+
function u1(o2) {
|
|
28218
28218
|
return Y = o2, X = setTimeout(Q1, H), f1 ? U(o2) : K;
|
|
28219
28219
|
}
|
|
28220
|
-
function
|
|
28220
|
+
function G(o2) {
|
|
28221
28221
|
var M2 = o2 - q, x2 = o2 - Y, t3 = H - M2;
|
|
28222
28222
|
return y1 ? m(t3, F - x2) : t3;
|
|
28223
28223
|
}
|
|
28224
|
-
function
|
|
28224
|
+
function p1(o2) {
|
|
28225
28225
|
var M2 = o2 - q, x2 = o2 - Y;
|
|
28226
28226
|
return q === void 0 || M2 >= H || M2 < 0 || y1 && x2 >= F;
|
|
28227
28227
|
}
|
|
28228
28228
|
function Q1() {
|
|
28229
28229
|
var o2 = y();
|
|
28230
|
-
if (
|
|
28230
|
+
if (p1(o2))
|
|
28231
28231
|
return x1(o2);
|
|
28232
|
-
X = setTimeout(Q1,
|
|
28232
|
+
X = setTimeout(Q1, G(o2));
|
|
28233
28233
|
}
|
|
28234
28234
|
function x1(o2) {
|
|
28235
28235
|
return X = void 0, Q && B ? U(o2) : (B = D = void 0, K);
|
|
@@ -28241,10 +28241,10 @@ function Qb1() {
|
|
|
28241
28241
|
return X === void 0 ? K : x1(y());
|
|
28242
28242
|
}
|
|
28243
28243
|
function B1() {
|
|
28244
|
-
var o2 = y(), M2 =
|
|
28244
|
+
var o2 = y(), M2 = p1(o2);
|
|
28245
28245
|
if (B = arguments, D = this, q = o2, M2) {
|
|
28246
28246
|
if (X === void 0)
|
|
28247
|
-
return
|
|
28247
|
+
return u1(q);
|
|
28248
28248
|
if (y1)
|
|
28249
28249
|
return X = setTimeout(Q1, H), U(q);
|
|
28250
28250
|
}
|
|
@@ -29553,9 +29553,9 @@ function yv1() {
|
|
|
29553
29553
|
// b
|
|
29554
29554
|
e1
|
|
29555
29555
|
];
|
|
29556
|
-
}, f1 = Y, y1 = B, Q = H, U = v,
|
|
29556
|
+
}, f1 = Y, y1 = B, Q = H, U = v, u1 = y.unpack, G = y.type, p1 = X;
|
|
29557
29557
|
Q.prototype.cmyk = function() {
|
|
29558
|
-
return
|
|
29558
|
+
return p1(this._rgb);
|
|
29559
29559
|
}, y1.cmyk = function() {
|
|
29560
29560
|
for (var x = [], A = arguments.length; A--; ) x[A] = arguments[A];
|
|
29561
29561
|
return new (Function.prototype.bind.apply(Q, [null].concat(x, ["cmyk"])))();
|
|
@@ -29563,7 +29563,7 @@ function yv1() {
|
|
|
29563
29563
|
p: 2,
|
|
29564
29564
|
test: function() {
|
|
29565
29565
|
for (var x = [], A = arguments.length; A--; ) x[A] = arguments[A];
|
|
29566
|
-
if (x =
|
|
29566
|
+
if (x = u1(x, "cmyk"), G(x) === "array" && x.length === 4)
|
|
29567
29567
|
return "cmyk";
|
|
29568
29568
|
}
|
|
29569
29569
|
});
|
|
@@ -29584,7 +29584,7 @@ function yv1() {
|
|
|
29584
29584
|
for (var x = [], A = arguments.length; A--; ) x[A] = arguments[A];
|
|
29585
29585
|
var Z = t3(x, "rgba"), j = D2(x) || "rgb";
|
|
29586
29586
|
return j.substr(0, 3) == "hsl" ? j2(m3(Z), j) : (Z[0] = s3(Z[0]), Z[1] = s3(Z[1]), Z[2] = s3(Z[2]), (j === "rgba" || Z.length > 3 && Z[3] < 1) && (Z[3] = Z.length > 3 ? Z[3] : 1, j = "rgba"), j + "(" + Z.slice(0, j === "rgb" ? 3 : 4).join(",") + ")");
|
|
29587
|
-
},
|
|
29587
|
+
}, W = K3, J = y.unpack, g1 = Math.round, z1 = function() {
|
|
29588
29588
|
for (var x, A = [], Z = arguments.length; Z--; ) A[Z] = arguments[Z];
|
|
29589
29589
|
A = J(A, "hsl");
|
|
29590
29590
|
var j = A[0], n1 = A[1], r1 = A[2], e1, m1, b1;
|
|
@@ -29642,7 +29642,7 @@ function yv1() {
|
|
|
29642
29642
|
S1.test = function(x) {
|
|
29643
29643
|
return a1.test(x) || K1.test(x) || d2.test(x) || p2.test(x) || n3.test(x) || U2.test(x);
|
|
29644
29644
|
};
|
|
29645
|
-
var Z1 = S1, u2 = B, I2 = H, _1 = v, n2 = y.type, M1 =
|
|
29645
|
+
var Z1 = S1, u2 = B, I2 = H, _1 = v, n2 = y.type, M1 = W, V1 = Z1;
|
|
29646
29646
|
I2.prototype.css = function(x) {
|
|
29647
29647
|
return M1(this._rgb, x);
|
|
29648
29648
|
}, u2.css = function() {
|
|
@@ -31210,11 +31210,11 @@ function NH() {
|
|
|
31210
31210
|
ARIA_ATTR: y1,
|
|
31211
31211
|
IS_SCRIPT_OR_DATA: Q,
|
|
31212
31212
|
ATTR_WHITESPACE: U,
|
|
31213
|
-
CUSTOM_ELEMENT:
|
|
31213
|
+
CUSTOM_ELEMENT: u1
|
|
31214
31214
|
} = sb;
|
|
31215
31215
|
let {
|
|
31216
|
-
IS_ALLOWED_URI:
|
|
31217
|
-
} = sb,
|
|
31216
|
+
IS_ALLOWED_URI: G
|
|
31217
|
+
} = sb, p1 = null;
|
|
31218
31218
|
const Q1 = g3({}, [...tb, ...bC, ...vC, ...SC, ...nb]);
|
|
31219
31219
|
let x1 = null;
|
|
31220
31220
|
const L1 = g3({}, [...ib, ..._C, ...ob, ...fs]);
|
|
@@ -31237,7 +31237,7 @@ function NH() {
|
|
|
31237
31237
|
enumerable: !0,
|
|
31238
31238
|
value: !1
|
|
31239
31239
|
}
|
|
31240
|
-
})), B1 = null, o2 = null, M2 = !0, x2 = !0, t3 = !1, D2 = !0, j2 = !1, m3 = !0, s3 = !1, K3 = !1,
|
|
31240
|
+
})), B1 = null, o2 = null, M2 = !0, x2 = !0, t3 = !1, D2 = !0, j2 = !1, m3 = !0, s3 = !1, K3 = !1, W = !1, J = !1, g1 = !1, z1 = !1, O1 = !0, q1 = !1;
|
|
31241
31241
|
const A1 = "user-content-";
|
|
31242
31242
|
let a1 = !0, K1 = !1, d2 = {}, p2 = null;
|
|
31243
31243
|
const n3 = g3({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -31258,7 +31258,7 @@ function NH() {
|
|
|
31258
31258
|
let o1 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
31259
31259
|
if (!(Ze && Ze === o1)) {
|
|
31260
31260
|
if ((!o1 || typeof o1 != "object") && (o1 = {}), o1 = O9(o1), fe = // eslint-disable-next-line unicorn/prefer-includes
|
|
31261
|
-
C4.indexOf(o1.PARSER_MEDIA_TYPE) === -1 ? k5 : o1.PARSER_MEDIA_TYPE, q3 = fe === "application/xhtml+xml" ? wC : xa,
|
|
31261
|
+
C4.indexOf(o1.PARSER_MEDIA_TYPE) === -1 ? k5 : o1.PARSER_MEDIA_TYPE, q3 = fe === "application/xhtml+xml" ? wC : xa, p1 = k6(o1, "ALLOWED_TAGS") ? g3({}, o1.ALLOWED_TAGS, q3) : Q1, x1 = k6(o1, "ALLOWED_ATTR") ? g3({}, o1.ALLOWED_ATTR, q3) : L1, V1 = k6(o1, "ALLOWED_NAMESPACES") ? g3({}, o1.ALLOWED_NAMESPACES, wC) : a2, S1 = k6(o1, "ADD_URI_SAFE_ATTR") ? g3(O9(Z1), o1.ADD_URI_SAFE_ATTR, q3) : Z1, U2 = k6(o1, "ADD_DATA_URI_TAGS") ? g3(O9(I3), o1.ADD_DATA_URI_TAGS, q3) : I3, p2 = k6(o1, "FORBID_CONTENTS") ? g3({}, o1.FORBID_CONTENTS, q3) : n3, B1 = k6(o1, "FORBID_TAGS") ? g3({}, o1.FORBID_TAGS, q3) : O9({}), o2 = k6(o1, "FORBID_ATTR") ? g3({}, o1.FORBID_ATTR, q3) : O9({}), d2 = k6(o1, "USE_PROFILES") ? o1.USE_PROFILES : !1, M2 = o1.ALLOW_ARIA_ATTR !== !1, x2 = o1.ALLOW_DATA_ATTR !== !1, t3 = o1.ALLOW_UNKNOWN_PROTOCOLS || !1, D2 = o1.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j2 = o1.SAFE_FOR_TEMPLATES || !1, m3 = o1.SAFE_FOR_XML !== !1, s3 = o1.WHOLE_DOCUMENT || !1, J = o1.RETURN_DOM || !1, g1 = o1.RETURN_DOM_FRAGMENT || !1, z1 = o1.RETURN_TRUSTED_TYPE || !1, W = o1.FORCE_BODY || !1, O1 = o1.SANITIZE_DOM !== !1, q1 = o1.SANITIZE_NAMED_PROPS || !1, a1 = o1.KEEP_CONTENT !== !1, K1 = o1.IN_PLACE || !1, G = o1.ALLOWED_URI_REGEXP || $H, n2 = o1.NAMESPACE || _1, J2 = o1.MATHML_TEXT_INTEGRATION_POINTS || J2, i2 = o1.HTML_INTEGRATION_POINTS || i2, T1 = o1.CUSTOM_ELEMENT_HANDLING || {}, o1.CUSTOM_ELEMENT_HANDLING && L5(o1.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T1.tagNameCheck = o1.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o1.CUSTOM_ELEMENT_HANDLING && L5(o1.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T1.attributeNameCheck = o1.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o1.CUSTOM_ELEMENT_HANDLING && typeof o1.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T1.allowCustomizedBuiltInElements = o1.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j2 && (x2 = !1), g1 && (J = !0), d2 && (p1 = g3({}, nb), x1 = [], d2.html === !0 && (g3(p1, tb), g3(x1, ib)), d2.svg === !0 && (g3(p1, bC), g3(x1, _C), g3(x1, fs)), d2.svgFilters === !0 && (g3(p1, vC), g3(x1, _C), g3(x1, fs)), d2.mathMl === !0 && (g3(p1, SC), g3(x1, ob), g3(x1, fs))), o1.ADD_TAGS && (p1 === Q1 && (p1 = O9(p1)), g3(p1, o1.ADD_TAGS, q3)), o1.ADD_ATTR && (x1 === L1 && (x1 = O9(x1)), g3(x1, o1.ADD_ATTR, q3)), o1.ADD_URI_SAFE_ATTR && g3(S1, o1.ADD_URI_SAFE_ATTR, q3), o1.FORBID_CONTENTS && (p2 === n3 && (p2 = O9(p2)), g3(p2, o1.FORBID_CONTENTS, q3)), a1 && (p1["#text"] = !0), s3 && g3(p1, ["html", "head", "body"]), p1.table && (g3(p1, ["tbody"]), delete B1.tbody), o1.TRUSTED_TYPES_POLICY) {
|
|
31262
31262
|
if (typeof o1.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
31263
31263
|
throw In('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
31264
31264
|
if (typeof o1.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -31310,7 +31310,7 @@ function NH() {
|
|
|
31310
31310
|
}
|
|
31311
31311
|
}, f8 = function(o1) {
|
|
31312
31312
|
let c1 = null, m2 = null;
|
|
31313
|
-
if (
|
|
31313
|
+
if (W)
|
|
31314
31314
|
o1 = "<remove></remove>" + o1;
|
|
31315
31315
|
else {
|
|
31316
31316
|
const z2 = eb(o1, /^[\r\n\t ]+/);
|
|
@@ -31357,10 +31357,10 @@ function NH() {
|
|
|
31357
31357
|
const m2 = q3(o1.nodeName);
|
|
31358
31358
|
if (I4(K.uponSanitizeElement, o1, {
|
|
31359
31359
|
tagName: m2,
|
|
31360
|
-
allowedTags:
|
|
31360
|
+
allowedTags: p1
|
|
31361
31361
|
}), m3 && o1.hasChildNodes() && !g8(o1.firstElementChild) && W4(/<[/\w!]/g, o1.innerHTML) && W4(/<[/\w!]/g, o1.textContent) || o1.nodeType === An.progressingInstruction || m3 && o1.nodeType === An.comment && W4(/<[/\w]/g, o1.data))
|
|
31362
31362
|
return u4(o1), !0;
|
|
31363
|
-
if (!
|
|
31363
|
+
if (!p1[m2] || B1[m2]) {
|
|
31364
31364
|
if (!B1[m2] && T5(m2) && (T1.tagNameCheck instanceof RegExp && W4(T1.tagNameCheck, m2) || T1.tagNameCheck instanceof Function && T1.tagNameCheck(m2)))
|
|
31365
31365
|
return !1;
|
|
31366
31366
|
if (a1 && !p2[m2]) {
|
|
@@ -31395,7 +31395,7 @@ function NH() {
|
|
|
31395
31395
|
c1 === "is" && T1.allowCustomizedBuiltInElements && (T1.tagNameCheck instanceof RegExp && W4(T1.tagNameCheck, m2) || T1.tagNameCheck instanceof Function && T1.tagNameCheck(m2)))
|
|
31396
31396
|
) return !1;
|
|
31397
31397
|
} else if (!S1[c1]) {
|
|
31398
|
-
if (!W4(
|
|
31398
|
+
if (!W4(G, xn(m2, U, ""))) {
|
|
31399
31399
|
if (!((c1 === "src" || c1 === "xlink:href" || c1 === "href") && o1 !== "script" && Pv1(m2, "data:") === 0 && U2[o1])) {
|
|
31400
31400
|
if (!(t3 && !W4(Q, xn(m2, U, "")))) {
|
|
31401
31401
|
if (m2)
|
|
@@ -31408,7 +31408,7 @@ function NH() {
|
|
|
31408
31408
|
}
|
|
31409
31409
|
return !0;
|
|
31410
31410
|
}, T5 = function(o1) {
|
|
31411
|
-
return o1 !== "annotation-xml" && eb(o1,
|
|
31411
|
+
return o1 !== "annotation-xml" && eb(o1, u1);
|
|
31412
31412
|
}, _9 = function(o1) {
|
|
31413
31413
|
I4(K.beforeSanitizeAttributes, o1, null);
|
|
31414
31414
|
const {
|
|
@@ -31492,7 +31492,7 @@ function NH() {
|
|
|
31492
31492
|
if (K3 || q4(o1), t.removed = [], typeof V2 == "string" && (K1 = !1), K1) {
|
|
31493
31493
|
if (V2.nodeName) {
|
|
31494
31494
|
const ie = q3(V2.nodeName);
|
|
31495
|
-
if (!
|
|
31495
|
+
if (!p1[ie] || B1[ie])
|
|
31496
31496
|
throw In("root node is forbidden and cannot be sanitized in-place");
|
|
31497
31497
|
}
|
|
31498
31498
|
} else if (V2 instanceof a)
|
|
@@ -31504,7 +31504,7 @@ function NH() {
|
|
|
31504
31504
|
if (c1 = f8(V2), !c1)
|
|
31505
31505
|
return J ? null : z1 ? V : "";
|
|
31506
31506
|
}
|
|
31507
|
-
c1 &&
|
|
31507
|
+
c1 && W && u4(c1.firstChild);
|
|
31508
31508
|
const z2 = x4(K1 ? V2 : c1);
|
|
31509
31509
|
for (; O3 = z2.nextNode(); )
|
|
31510
31510
|
m8(O3), _9(O3), O3.content instanceof s && _7(O3.content);
|
|
@@ -31519,7 +31519,7 @@ function NH() {
|
|
|
31519
31519
|
return (x1.shadowroot || x1.shadowrootmode) && (ge = F.call(i, ge, !0)), ge;
|
|
31520
31520
|
}
|
|
31521
31521
|
let J3 = s3 ? c1.outerHTML : c1.innerHTML;
|
|
31522
|
-
return s3 &&
|
|
31522
|
+
return s3 && p1["!doctype"] && c1.ownerDocument && c1.ownerDocument.doctype && c1.ownerDocument.doctype.name && W4(DH, c1.ownerDocument.doctype.name) && (J3 = "<!DOCTYPE " + c1.ownerDocument.doctype.name + `>
|
|
31523
31523
|
` + J3), j2 && hs([X, q, Y], (ie) => {
|
|
31524
31524
|
J3 = xn(J3, ie, " ");
|
|
31525
31525
|
}), _ && z1 ? _.createHTML(J3) : J3;
|
|
@@ -36486,13 +36486,13 @@ function Ax() {
|
|
|
36486
36486
|
var VS;
|
|
36487
36487
|
function OM1() {
|
|
36488
36488
|
return VS || (VS = 1, (function(e, t) {
|
|
36489
|
-
function n(
|
|
36489
|
+
function n(W) {
|
|
36490
36490
|
"@babel/helpers - typeof";
|
|
36491
36491
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? n = function(g1) {
|
|
36492
36492
|
return typeof g1;
|
|
36493
36493
|
} : n = function(g1) {
|
|
36494
36494
|
return g1 && typeof Symbol == "function" && g1.constructor === Symbol && g1 !== Symbol.prototype ? "symbol" : typeof g1;
|
|
36495
|
-
}, n(
|
|
36495
|
+
}, n(W);
|
|
36496
36496
|
}
|
|
36497
36497
|
Object.defineProperty(t, "__esModule", {
|
|
36498
36498
|
value: !0
|
|
@@ -36500,71 +36500,71 @@ function OM1() {
|
|
|
36500
36500
|
var i = l(/* @__PURE__ */ e2()), o = a(/* @__PURE__ */ Ax()), s = l(/* @__PURE__ */ Lx());
|
|
36501
36501
|
function r() {
|
|
36502
36502
|
if (typeof WeakMap != "function") return null;
|
|
36503
|
-
var
|
|
36503
|
+
var W = /* @__PURE__ */ new WeakMap();
|
|
36504
36504
|
return r = function() {
|
|
36505
|
-
return
|
|
36506
|
-
},
|
|
36507
|
-
}
|
|
36508
|
-
function a(
|
|
36509
|
-
if (
|
|
36510
|
-
return
|
|
36511
|
-
if (
|
|
36512
|
-
return { default:
|
|
36505
|
+
return W;
|
|
36506
|
+
}, W;
|
|
36507
|
+
}
|
|
36508
|
+
function a(W) {
|
|
36509
|
+
if (W && W.__esModule)
|
|
36510
|
+
return W;
|
|
36511
|
+
if (W === null || n(W) !== "object" && typeof W != "function")
|
|
36512
|
+
return { default: W };
|
|
36513
36513
|
var J = r();
|
|
36514
|
-
if (J && J.has(
|
|
36515
|
-
return J.get(
|
|
36514
|
+
if (J && J.has(W))
|
|
36515
|
+
return J.get(W);
|
|
36516
36516
|
var g1 = {}, z1 = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
36517
|
-
for (var O1 in
|
|
36518
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
36519
|
-
var q1 = z1 ? Object.getOwnPropertyDescriptor(
|
|
36520
|
-
q1 && (q1.get || q1.set) ? Object.defineProperty(g1, O1, q1) : g1[O1] =
|
|
36517
|
+
for (var O1 in W)
|
|
36518
|
+
if (Object.prototype.hasOwnProperty.call(W, O1)) {
|
|
36519
|
+
var q1 = z1 ? Object.getOwnPropertyDescriptor(W, O1) : null;
|
|
36520
|
+
q1 && (q1.get || q1.set) ? Object.defineProperty(g1, O1, q1) : g1[O1] = W[O1];
|
|
36521
36521
|
}
|
|
36522
|
-
return g1.default =
|
|
36522
|
+
return g1.default = W, J && J.set(W, g1), g1;
|
|
36523
36523
|
}
|
|
36524
|
-
function l(
|
|
36525
|
-
return
|
|
36524
|
+
function l(W) {
|
|
36525
|
+
return W && W.__esModule ? W : { default: W };
|
|
36526
36526
|
}
|
|
36527
|
-
function d(
|
|
36528
|
-
return g(
|
|
36527
|
+
function d(W) {
|
|
36528
|
+
return g(W) || p(W) || u(W) || c();
|
|
36529
36529
|
}
|
|
36530
36530
|
function c() {
|
|
36531
36531
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36532
36532
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
36533
36533
|
}
|
|
36534
|
-
function u(
|
|
36535
|
-
if (
|
|
36536
|
-
if (typeof
|
|
36537
|
-
var g1 = Object.prototype.toString.call(
|
|
36538
|
-
if (g1 === "Object" &&
|
|
36539
|
-
if (g1 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g1)) return m(
|
|
36534
|
+
function u(W, J) {
|
|
36535
|
+
if (W) {
|
|
36536
|
+
if (typeof W == "string") return m(W, J);
|
|
36537
|
+
var g1 = Object.prototype.toString.call(W).slice(8, -1);
|
|
36538
|
+
if (g1 === "Object" && W.constructor && (g1 = W.constructor.name), g1 === "Map" || g1 === "Set") return Array.from(W);
|
|
36539
|
+
if (g1 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g1)) return m(W, J);
|
|
36540
36540
|
}
|
|
36541
36541
|
}
|
|
36542
|
-
function p(
|
|
36543
|
-
if (typeof Symbol < "u" && Symbol.iterator in Object(
|
|
36542
|
+
function p(W) {
|
|
36543
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(W)) return Array.from(W);
|
|
36544
36544
|
}
|
|
36545
|
-
function g(
|
|
36546
|
-
if (Array.isArray(
|
|
36545
|
+
function g(W) {
|
|
36546
|
+
if (Array.isArray(W)) return m(W);
|
|
36547
36547
|
}
|
|
36548
|
-
function m(
|
|
36549
|
-
(J == null || J >
|
|
36548
|
+
function m(W, J) {
|
|
36549
|
+
(J == null || J > W.length) && (J = W.length);
|
|
36550
36550
|
for (var g1 = 0, z1 = new Array(J); g1 < J; g1++)
|
|
36551
|
-
z1[g1] =
|
|
36551
|
+
z1[g1] = W[g1];
|
|
36552
36552
|
return z1;
|
|
36553
36553
|
}
|
|
36554
|
-
function y(
|
|
36555
|
-
var J =
|
|
36554
|
+
function y(W) {
|
|
36555
|
+
var J = W.slice(0, 2), g1 = parseInt(W.slice(2, 4), 10);
|
|
36556
36556
|
g1 > 40 ? (g1 -= 40, J = "20".concat(J)) : g1 > 20 ? (g1 -= 20, J = "18".concat(J)) : J = "19".concat(J), g1 < 10 && (g1 = "0".concat(g1));
|
|
36557
|
-
var z1 = "".concat(J, "/").concat(g1, "/").concat(
|
|
36557
|
+
var z1 = "".concat(J, "/").concat(g1, "/").concat(W.slice(4, 6));
|
|
36558
36558
|
if (!(0, s.default)(z1, "YYYY/MM/DD"))
|
|
36559
36559
|
return !1;
|
|
36560
|
-
for (var O1 =
|
|
36560
|
+
for (var O1 = W.split("").map(function(K1) {
|
|
36561
36561
|
return parseInt(K1, 10);
|
|
36562
36562
|
}), q1 = [2, 4, 8, 5, 10, 9, 7, 3, 6], A1 = 0, a1 = 0; a1 < q1.length; a1++)
|
|
36563
36563
|
A1 += O1[a1] * q1[a1];
|
|
36564
36564
|
return A1 = A1 % 11 === 10 ? 0 : A1 % 11, A1 === O1[9];
|
|
36565
36565
|
}
|
|
36566
|
-
function v(
|
|
36567
|
-
var J =
|
|
36566
|
+
function v(W) {
|
|
36567
|
+
var J = W.split(""), g1 = J.filter(function(O1, q1) {
|
|
36568
36568
|
return q1 % 2;
|
|
36569
36569
|
}).map(function(O1) {
|
|
36570
36570
|
return Number(O1) * 2;
|
|
@@ -36577,13 +36577,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36577
36577
|
});
|
|
36578
36578
|
return z1 % 10 === 0;
|
|
36579
36579
|
}
|
|
36580
|
-
function b(
|
|
36581
|
-
|
|
36582
|
-
var J = parseInt(
|
|
36583
|
-
if (
|
|
36580
|
+
function b(W) {
|
|
36581
|
+
W = W.replace(/\W/, "");
|
|
36582
|
+
var J = parseInt(W.slice(0, 2), 10);
|
|
36583
|
+
if (W.length === 10)
|
|
36584
36584
|
J < 54 ? J = "20".concat(J) : J = "19".concat(J);
|
|
36585
36585
|
else {
|
|
36586
|
-
if (
|
|
36586
|
+
if (W.slice(6) === "000")
|
|
36587
36587
|
return !1;
|
|
36588
36588
|
if (J < 54)
|
|
36589
36589
|
J = "19".concat(J);
|
|
@@ -36591,31 +36591,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36591
36591
|
return !1;
|
|
36592
36592
|
}
|
|
36593
36593
|
J.length === 3 && (J = [J.slice(0, 2), "0", J.slice(2)].join(""));
|
|
36594
|
-
var g1 = parseInt(
|
|
36594
|
+
var g1 = parseInt(W.slice(2, 4), 10);
|
|
36595
36595
|
if (g1 > 50 && (g1 -= 50), g1 > 20) {
|
|
36596
36596
|
if (parseInt(J, 10) < 2004)
|
|
36597
36597
|
return !1;
|
|
36598
36598
|
g1 -= 20;
|
|
36599
36599
|
}
|
|
36600
36600
|
g1 < 10 && (g1 = "0".concat(g1));
|
|
36601
|
-
var z1 = "".concat(J, "/").concat(g1, "/").concat(
|
|
36601
|
+
var z1 = "".concat(J, "/").concat(g1, "/").concat(W.slice(4, 6));
|
|
36602
36602
|
if (!(0, s.default)(z1, "YYYY/MM/DD"))
|
|
36603
36603
|
return !1;
|
|
36604
|
-
if (
|
|
36605
|
-
var O1 = parseInt(
|
|
36604
|
+
if (W.length === 10 && parseInt(W, 10) % 11 !== 0) {
|
|
36605
|
+
var O1 = parseInt(W.slice(0, 9), 10) % 11;
|
|
36606
36606
|
if (parseInt(J, 10) < 1986 && O1 === 10) {
|
|
36607
|
-
if (parseInt(
|
|
36607
|
+
if (parseInt(W.slice(9), 10) !== 0)
|
|
36608
36608
|
return !1;
|
|
36609
36609
|
} else
|
|
36610
36610
|
return !1;
|
|
36611
36611
|
}
|
|
36612
36612
|
return !0;
|
|
36613
36613
|
}
|
|
36614
|
-
function S(
|
|
36615
|
-
return o.luhnCheck(
|
|
36614
|
+
function S(W) {
|
|
36615
|
+
return o.luhnCheck(W);
|
|
36616
36616
|
}
|
|
36617
|
-
function M(
|
|
36618
|
-
for (var J =
|
|
36617
|
+
function M(W) {
|
|
36618
|
+
for (var J = W.split("").map(function(K1) {
|
|
36619
36619
|
return parseInt(K1, 10);
|
|
36620
36620
|
}), g1 = [], z1 = 0; z1 < J.length - 1; z1++) {
|
|
36621
36621
|
g1.push("");
|
|
@@ -36634,11 +36634,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36634
36634
|
if (A1 === 2)
|
|
36635
36635
|
return !1;
|
|
36636
36636
|
}
|
|
36637
|
-
return o.iso7064Check(
|
|
36637
|
+
return o.iso7064Check(W);
|
|
36638
36638
|
}
|
|
36639
|
-
function _(
|
|
36640
|
-
|
|
36641
|
-
var J = parseInt(
|
|
36639
|
+
function _(W) {
|
|
36640
|
+
W = W.replace(/\W/, "");
|
|
36641
|
+
var J = parseInt(W.slice(4, 6), 10), g1 = W.slice(6, 7);
|
|
36642
36642
|
switch (g1) {
|
|
36643
36643
|
case "0":
|
|
36644
36644
|
case "1":
|
|
@@ -36660,36 +36660,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36660
36660
|
break;
|
|
36661
36661
|
}
|
|
36662
36662
|
J.length === 3 && (J = [J.slice(0, 2), "0", J.slice(2)].join(""));
|
|
36663
|
-
var z1 = "".concat(J, "/").concat(
|
|
36663
|
+
var z1 = "".concat(J, "/").concat(W.slice(2, 4), "/").concat(W.slice(0, 2));
|
|
36664
36664
|
if (!(0, s.default)(z1, "YYYY/MM/DD"))
|
|
36665
36665
|
return !1;
|
|
36666
|
-
for (var O1 =
|
|
36666
|
+
for (var O1 = W.split("").map(function(K1) {
|
|
36667
36667
|
return parseInt(K1, 10);
|
|
36668
36668
|
}), q1 = 0, A1 = 4, a1 = 0; a1 < 9; a1++)
|
|
36669
36669
|
q1 += O1[a1] * A1, A1 -= 1, A1 === 1 && (A1 = 7);
|
|
36670
36670
|
return q1 %= 11, q1 === 1 ? !1 : q1 === 0 ? O1[9] === 0 : O1[9] === 11 - q1;
|
|
36671
36671
|
}
|
|
36672
|
-
function V(
|
|
36673
|
-
for (var J =
|
|
36672
|
+
function V(W) {
|
|
36673
|
+
for (var J = W.slice(0, 8).split("").map(function(q1) {
|
|
36674
36674
|
return parseInt(q1, 10);
|
|
36675
36675
|
}), g1 = 0, z1 = 1; z1 < J.length; z1 += 2)
|
|
36676
36676
|
g1 += J[z1];
|
|
36677
36677
|
for (var O1 = 0; O1 < J.length; O1 += 2)
|
|
36678
36678
|
J[O1] < 2 ? g1 += 1 - J[O1] : (g1 += 2 * (J[O1] - 2) + 5, J[O1] > 4 && (g1 += 2));
|
|
36679
|
-
return String.fromCharCode(g1 % 26 + 65) ===
|
|
36679
|
+
return String.fromCharCode(g1 % 26 + 65) === W.charAt(8);
|
|
36680
36680
|
}
|
|
36681
|
-
function H(
|
|
36682
|
-
for (var J =
|
|
36681
|
+
function H(W) {
|
|
36682
|
+
for (var J = W.split("").map(function(O1) {
|
|
36683
36683
|
return parseInt(O1, 10);
|
|
36684
36684
|
}), g1 = 0, z1 = 0; z1 < 8; z1++)
|
|
36685
36685
|
g1 += J[z1] * Math.pow(2, 8 - z1);
|
|
36686
36686
|
return g1 % 11 % 10 === J[8];
|
|
36687
36687
|
}
|
|
36688
|
-
function $(
|
|
36689
|
-
var J = o.reverseMultiplyAndSum(
|
|
36688
|
+
function $(W) {
|
|
36689
|
+
var J = o.reverseMultiplyAndSum(W.split("").slice(0, 7).map(function(g1) {
|
|
36690
36690
|
return parseInt(g1, 10);
|
|
36691
36691
|
}), 8);
|
|
36692
|
-
return
|
|
36692
|
+
return W.length === 9 && W[8] !== "W" && (J += (W[8].charCodeAt(0) - 64) * 9), J %= 23, J === 0 ? W[7].toUpperCase() === "W" : W[7].toUpperCase() === String.fromCharCode(64 + J);
|
|
36693
36693
|
}
|
|
36694
36694
|
var B = {
|
|
36695
36695
|
andover: ["10", "12"],
|
|
@@ -36706,16 +36706,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36706
36706
|
sba: ["31"]
|
|
36707
36707
|
};
|
|
36708
36708
|
function D() {
|
|
36709
|
-
var
|
|
36709
|
+
var W = [];
|
|
36710
36710
|
for (var J in B)
|
|
36711
|
-
B.hasOwnProperty(J) &&
|
|
36712
|
-
return
|
|
36711
|
+
B.hasOwnProperty(J) && W.push.apply(W, d(B[J]));
|
|
36712
|
+
return W;
|
|
36713
36713
|
}
|
|
36714
|
-
function F(
|
|
36715
|
-
return D().indexOf(
|
|
36714
|
+
function F(W) {
|
|
36715
|
+
return D().indexOf(W.slice(0, 2)) !== -1;
|
|
36716
36716
|
}
|
|
36717
|
-
function K(
|
|
36718
|
-
var J =
|
|
36717
|
+
function K(W) {
|
|
36718
|
+
var J = W.toUpperCase().split("");
|
|
36719
36719
|
if (isNaN(parseInt(J[0], 10)) && J.length > 1) {
|
|
36720
36720
|
var g1 = 0;
|
|
36721
36721
|
switch (J[0]) {
|
|
@@ -36735,8 +36735,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36735
36735
|
var O1 = parseInt(J.slice(0, 8), 10) % 23;
|
|
36736
36736
|
return J[8] === z1[O1];
|
|
36737
36737
|
}
|
|
36738
|
-
function X(
|
|
36739
|
-
var J =
|
|
36738
|
+
function X(W) {
|
|
36739
|
+
var J = W.slice(1, 3), g1 = W.slice(0, 1);
|
|
36740
36740
|
switch (g1) {
|
|
36741
36741
|
case "1":
|
|
36742
36742
|
case "2":
|
|
@@ -36750,10 +36750,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36750
36750
|
J = "20".concat(J);
|
|
36751
36751
|
break;
|
|
36752
36752
|
}
|
|
36753
|
-
var z1 = "".concat(J, "/").concat(
|
|
36753
|
+
var z1 = "".concat(J, "/").concat(W.slice(3, 5), "/").concat(W.slice(5, 7));
|
|
36754
36754
|
if (!(0, s.default)(z1, "YYYY/MM/DD"))
|
|
36755
36755
|
return !1;
|
|
36756
|
-
for (var O1 =
|
|
36756
|
+
for (var O1 = W.split("").map(function(d2) {
|
|
36757
36757
|
return parseInt(d2, 10);
|
|
36758
36758
|
}), q1 = 0, A1 = 1, a1 = 0; a1 < 10; a1++)
|
|
36759
36759
|
q1 += O1[a1] * A1, A1 += 1, A1 === 10 && (A1 = 1);
|
|
@@ -36766,8 +36766,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36766
36766
|
}
|
|
36767
36767
|
return q1 % 11 === O1[10];
|
|
36768
36768
|
}
|
|
36769
|
-
function q(
|
|
36770
|
-
var J =
|
|
36769
|
+
function q(W) {
|
|
36770
|
+
var J = W.slice(4, 6), g1 = W.slice(6, 7);
|
|
36771
36771
|
switch (g1) {
|
|
36772
36772
|
case "+":
|
|
36773
36773
|
J = "18".concat(J);
|
|
@@ -36779,57 +36779,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36779
36779
|
J = "20".concat(J);
|
|
36780
36780
|
break;
|
|
36781
36781
|
}
|
|
36782
|
-
var z1 = "".concat(J, "/").concat(
|
|
36782
|
+
var z1 = "".concat(J, "/").concat(W.slice(2, 4), "/").concat(W.slice(0, 2));
|
|
36783
36783
|
if (!(0, s.default)(z1, "YYYY/MM/DD"))
|
|
36784
36784
|
return !1;
|
|
36785
|
-
var O1 = parseInt(
|
|
36785
|
+
var O1 = parseInt(W.slice(0, 6) + W.slice(7, 10), 10) % 31;
|
|
36786
36786
|
if (O1 < 10)
|
|
36787
|
-
return O1 === parseInt(
|
|
36787
|
+
return O1 === parseInt(W.slice(10), 10);
|
|
36788
36788
|
O1 -= 10;
|
|
36789
36789
|
var q1 = ["A", "B", "C", "D", "E", "F", "H", "J", "K", "L", "M", "N", "P", "R", "S", "T", "U", "V", "W", "X", "Y"];
|
|
36790
|
-
return q1[O1] ===
|
|
36790
|
+
return q1[O1] === W.slice(10);
|
|
36791
36791
|
}
|
|
36792
|
-
function Y(
|
|
36793
|
-
if (
|
|
36794
|
-
var J = "".concat(
|
|
36792
|
+
function Y(W) {
|
|
36793
|
+
if (W.slice(2, 4) !== "00" || W.slice(4, 6) !== "00") {
|
|
36794
|
+
var J = "".concat(W.slice(0, 2), "/").concat(W.slice(2, 4), "/").concat(W.slice(4, 6));
|
|
36795
36795
|
if (!(0, s.default)(J, "YY/MM/DD"))
|
|
36796
36796
|
return !1;
|
|
36797
36797
|
}
|
|
36798
|
-
var g1 = 97 - parseInt(
|
|
36799
|
-
return !(g1 !== z1 && (g1 = 97 - parseInt("2".concat(
|
|
36798
|
+
var g1 = 97 - parseInt(W.slice(0, 9), 10) % 97, z1 = parseInt(W.slice(9, 11), 10);
|
|
36799
|
+
return !(g1 !== z1 && (g1 = 97 - parseInt("2".concat(W.slice(0, 9)), 10) % 97, g1 !== z1));
|
|
36800
36800
|
}
|
|
36801
|
-
function f1(
|
|
36802
|
-
|
|
36803
|
-
var J = parseInt(
|
|
36801
|
+
function f1(W) {
|
|
36802
|
+
W = W.replace(/\s/g, "");
|
|
36803
|
+
var J = parseInt(W.slice(0, 10), 10) % 511, g1 = parseInt(W.slice(10, 13), 10);
|
|
36804
36804
|
return J === g1;
|
|
36805
36805
|
}
|
|
36806
|
-
function y1(
|
|
36807
|
-
var J = "".concat(
|
|
36808
|
-
return !(0, s.default)(J, "YYYY/MM/DD") || !o.luhnCheck(
|
|
36806
|
+
function y1(W) {
|
|
36807
|
+
var J = "".concat(W.slice(0, 4), "/").concat(W.slice(4, 6), "/").concat(W.slice(6, 8));
|
|
36808
|
+
return !(0, s.default)(J, "YYYY/MM/DD") || !o.luhnCheck(W.slice(0, 12)) ? !1 : o.verhoeffCheck("".concat(W.slice(0, 11)).concat(W[12]));
|
|
36809
36809
|
}
|
|
36810
|
-
function Q(
|
|
36811
|
-
return o.iso7064Check(
|
|
36810
|
+
function Q(W) {
|
|
36811
|
+
return o.iso7064Check(W);
|
|
36812
36812
|
}
|
|
36813
|
-
function U(
|
|
36814
|
-
for (var J =
|
|
36813
|
+
function U(W) {
|
|
36814
|
+
for (var J = W.split("").map(function(O1) {
|
|
36815
36815
|
return parseInt(O1, 10);
|
|
36816
36816
|
}), g1 = 8, z1 = 1; z1 < 9; z1++)
|
|
36817
36817
|
g1 += J[z1] * (z1 + 1);
|
|
36818
36818
|
return g1 % 11 === J[9];
|
|
36819
36819
|
}
|
|
36820
|
-
function
|
|
36820
|
+
function u1(W) {
|
|
36821
36821
|
for (var J = !1, g1 = !1, z1 = 0; z1 < 3; z1++)
|
|
36822
|
-
if (!J && /[AEIOU]/.test(
|
|
36822
|
+
if (!J && /[AEIOU]/.test(W[z1]))
|
|
36823
36823
|
J = !0;
|
|
36824
|
-
else if (!g1 && J &&
|
|
36824
|
+
else if (!g1 && J && W[z1] === "X")
|
|
36825
36825
|
g1 = !0;
|
|
36826
|
-
else if (z1 > 0 && (J && !g1 && !/[AEIOU]/.test(
|
|
36826
|
+
else if (z1 > 0 && (J && !g1 && !/[AEIOU]/.test(W[z1]) || g1 && !/X/.test(W[z1])))
|
|
36827
36827
|
return !1;
|
|
36828
36828
|
return !0;
|
|
36829
36829
|
}
|
|
36830
|
-
function W
|
|
36831
|
-
var J =
|
|
36832
|
-
if (!
|
|
36830
|
+
function G(W) {
|
|
36831
|
+
var J = W.toUpperCase().split("");
|
|
36832
|
+
if (!u1(J.slice(0, 3)) || !u1(J.slice(3, 6)))
|
|
36833
36833
|
return !1;
|
|
36834
36834
|
for (var g1 = [6, 7, 9, 10, 12, 13, 14], z1 = {
|
|
36835
36835
|
L: "0",
|
|
@@ -36910,14 +36910,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36910
36910
|
}
|
|
36911
36911
|
return String.fromCharCode(65 + n3 % 26) === J[15];
|
|
36912
36912
|
}
|
|
36913
|
-
function
|
|
36914
|
-
|
|
36915
|
-
var J =
|
|
36913
|
+
function p1(W) {
|
|
36914
|
+
W = W.replace(/\W/, "");
|
|
36915
|
+
var J = W.slice(0, 2);
|
|
36916
36916
|
if (J !== "32") {
|
|
36917
|
-
var g1 =
|
|
36917
|
+
var g1 = W.slice(2, 4);
|
|
36918
36918
|
if (g1 !== "00") {
|
|
36919
|
-
var z1 =
|
|
36920
|
-
switch (
|
|
36919
|
+
var z1 = W.slice(4, 6);
|
|
36920
|
+
switch (W[6]) {
|
|
36921
36921
|
case "0":
|
|
36922
36922
|
z1 = "18".concat(z1);
|
|
36923
36923
|
break;
|
|
@@ -36928,21 +36928,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36928
36928
|
z1 = "20".concat(z1);
|
|
36929
36929
|
break;
|
|
36930
36930
|
}
|
|
36931
|
-
var O1 = "".concat(z1, "/").concat(
|
|
36931
|
+
var O1 = "".concat(z1, "/").concat(W.slice(2, 4), "/").concat(J);
|
|
36932
36932
|
if (!(0, s.default)(O1, "YYYY/MM/DD"))
|
|
36933
36933
|
return !1;
|
|
36934
36934
|
}
|
|
36935
|
-
for (var q1 = 1101, A1 = [1, 6, 3, 7, 9, 10, 5, 8, 4, 2], a1 = 0; a1 <
|
|
36936
|
-
q1 -= parseInt(
|
|
36937
|
-
return parseInt(
|
|
36935
|
+
for (var q1 = 1101, A1 = [1, 6, 3, 7, 9, 10, 5, 8, 4, 2], a1 = 0; a1 < W.length - 1; a1++)
|
|
36936
|
+
q1 -= parseInt(W[a1], 10) * A1[a1];
|
|
36937
|
+
return parseInt(W[10], 10) === q1 % 11;
|
|
36938
36938
|
}
|
|
36939
36939
|
return !0;
|
|
36940
36940
|
}
|
|
36941
|
-
function Q1(
|
|
36942
|
-
if (
|
|
36943
|
-
for (var J =
|
|
36941
|
+
function Q1(W) {
|
|
36942
|
+
if (W.length !== 9) {
|
|
36943
|
+
for (var J = W.toUpperCase().split(""); J.length < 8; )
|
|
36944
36944
|
J.unshift(0);
|
|
36945
|
-
switch (
|
|
36945
|
+
switch (W[7]) {
|
|
36946
36946
|
case "A":
|
|
36947
36947
|
case "P":
|
|
36948
36948
|
if (parseInt(J[6], 10) === 0)
|
|
@@ -36960,64 +36960,64 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36960
36960
|
}
|
|
36961
36961
|
return !0;
|
|
36962
36962
|
}
|
|
36963
|
-
function x1(
|
|
36964
|
-
return o.reverseMultiplyAndSum(
|
|
36963
|
+
function x1(W) {
|
|
36964
|
+
return o.reverseMultiplyAndSum(W.split("").slice(0, 8).map(function(J) {
|
|
36965
36965
|
return parseInt(J, 10);
|
|
36966
|
-
}), 9) % 11 === parseInt(
|
|
36966
|
+
}), 9) % 11 === parseInt(W[8], 10);
|
|
36967
36967
|
}
|
|
36968
|
-
function L1(
|
|
36969
|
-
if (
|
|
36968
|
+
function L1(W) {
|
|
36969
|
+
if (W.length === 10) {
|
|
36970
36970
|
for (var J = [6, 5, 7, 2, 3, 4, 5, 6, 7], g1 = 0, z1 = 0; z1 < J.length; z1++)
|
|
36971
|
-
g1 += parseInt(
|
|
36972
|
-
return g1 %= 11, g1 === 10 ? !1 : g1 === parseInt(
|
|
36971
|
+
g1 += parseInt(W[z1], 10) * J[z1];
|
|
36972
|
+
return g1 %= 11, g1 === 10 ? !1 : g1 === parseInt(W[9], 10);
|
|
36973
36973
|
}
|
|
36974
|
-
var O1 =
|
|
36974
|
+
var O1 = W.slice(0, 2), q1 = parseInt(W.slice(2, 4), 10);
|
|
36975
36975
|
q1 > 80 ? (O1 = "18".concat(O1), q1 -= 80) : q1 > 60 ? (O1 = "22".concat(O1), q1 -= 60) : q1 > 40 ? (O1 = "21".concat(O1), q1 -= 40) : q1 > 20 ? (O1 = "20".concat(O1), q1 -= 20) : O1 = "19".concat(O1), q1 < 10 && (q1 = "0".concat(q1));
|
|
36976
|
-
var A1 = "".concat(O1, "/").concat(q1, "/").concat(
|
|
36976
|
+
var A1 = "".concat(O1, "/").concat(q1, "/").concat(W.slice(4, 6));
|
|
36977
36977
|
if (!(0, s.default)(A1, "YYYY/MM/DD"))
|
|
36978
36978
|
return !1;
|
|
36979
|
-
for (var a1 = 0, K1 = 1, d2 = 0; d2 <
|
|
36980
|
-
a1 += parseInt(
|
|
36981
|
-
return a1 = 10 - a1 % 10, a1 === parseInt(
|
|
36979
|
+
for (var a1 = 0, K1 = 1, d2 = 0; d2 < W.length - 1; d2++)
|
|
36980
|
+
a1 += parseInt(W[d2], 10) * K1 % 10, K1 += 2, K1 > 10 ? K1 = 1 : K1 === 5 && (K1 += 2);
|
|
36981
|
+
return a1 = 10 - a1 % 10, a1 === parseInt(W[10], 10);
|
|
36982
36982
|
}
|
|
36983
|
-
function T1(
|
|
36984
|
-
if (
|
|
36983
|
+
function T1(W) {
|
|
36984
|
+
if (W.length === 11) {
|
|
36985
36985
|
var J, g1;
|
|
36986
36986
|
if (J = 0, // Reject known invalid CPFs
|
|
36987
|
-
|
|
36987
|
+
W === "11111111111" || W === "22222222222" || W === "33333333333" || W === "44444444444" || W === "55555555555" || W === "66666666666" || W === "77777777777" || W === "88888888888" || W === "99999999999" || W === "00000000000") return !1;
|
|
36988
36988
|
for (var z1 = 1; z1 <= 9; z1++)
|
|
36989
|
-
J += parseInt(
|
|
36990
|
-
if (g1 = J * 10 % 11, g1 === 10 && (g1 = 0), g1 !== parseInt(
|
|
36989
|
+
J += parseInt(W.substring(z1 - 1, z1), 10) * (11 - z1);
|
|
36990
|
+
if (g1 = J * 10 % 11, g1 === 10 && (g1 = 0), g1 !== parseInt(W.substring(9, 10), 10)) return !1;
|
|
36991
36991
|
J = 0;
|
|
36992
36992
|
for (var O1 = 1; O1 <= 10; O1++)
|
|
36993
|
-
J += parseInt(
|
|
36994
|
-
return g1 = J * 10 % 11, g1 === 10 && (g1 = 0), g1 === parseInt(
|
|
36993
|
+
J += parseInt(W.substring(O1 - 1, O1), 10) * (12 - O1);
|
|
36994
|
+
return g1 = J * 10 % 11, g1 === 10 && (g1 = 0), g1 === parseInt(W.substring(10, 11), 10);
|
|
36995
36995
|
}
|
|
36996
36996
|
if (
|
|
36997
36997
|
// Reject know invalid CNPJs
|
|
36998
|
-
|
|
36998
|
+
W === "00000000000000" || W === "11111111111111" || W === "22222222222222" || W === "33333333333333" || W === "44444444444444" || W === "55555555555555" || W === "66666666666666" || W === "77777777777777" || W === "88888888888888" || W === "99999999999999"
|
|
36999
36999
|
)
|
|
37000
37000
|
return !1;
|
|
37001
|
-
for (var q1 =
|
|
37001
|
+
for (var q1 = W.length - 2, A1 = W.substring(0, q1), a1 = W.substring(q1), K1 = 0, d2 = q1 - 7, p2 = q1; p2 >= 1; p2--)
|
|
37002
37002
|
K1 += A1.charAt(q1 - p2) * d2, d2 -= 1, d2 < 2 && (d2 = 9);
|
|
37003
37003
|
var n3 = K1 % 11 < 2 ? 0 : 11 - K1 % 11;
|
|
37004
37004
|
if (n3 !== parseInt(a1.charAt(0), 10))
|
|
37005
37005
|
return !1;
|
|
37006
|
-
q1 += 1, A1 =
|
|
37006
|
+
q1 += 1, A1 = W.substring(0, q1), K1 = 0, d2 = q1 - 7;
|
|
37007
37007
|
for (var U2 = q1; U2 >= 1; U2--)
|
|
37008
37008
|
K1 += A1.charAt(q1 - U2) * d2, d2 -= 1, d2 < 2 && (d2 = 9);
|
|
37009
37009
|
return n3 = K1 % 11 < 2 ? 0 : 11 - K1 % 11, n3 === parseInt(a1.charAt(1), 10);
|
|
37010
37010
|
}
|
|
37011
|
-
function B1(
|
|
37012
|
-
var J = 11 - o.reverseMultiplyAndSum(
|
|
37011
|
+
function B1(W) {
|
|
37012
|
+
var J = 11 - o.reverseMultiplyAndSum(W.split("").slice(0, 8).map(function(g1) {
|
|
37013
37013
|
return parseInt(g1, 10);
|
|
37014
37014
|
}), 9) % 11;
|
|
37015
|
-
return J > 9 ? parseInt(
|
|
37015
|
+
return J > 9 ? parseInt(W[8], 10) === 0 : J === parseInt(W[8], 10);
|
|
37016
37016
|
}
|
|
37017
|
-
function o2(
|
|
37018
|
-
if (
|
|
37019
|
-
var J =
|
|
37020
|
-
switch (
|
|
37017
|
+
function o2(W) {
|
|
37018
|
+
if (W.slice(0, 4) !== "9000") {
|
|
37019
|
+
var J = W.slice(1, 3);
|
|
37020
|
+
switch (W[0]) {
|
|
37021
37021
|
case "1":
|
|
37022
37022
|
case "2":
|
|
37023
37023
|
J = "19".concat(J);
|
|
@@ -37031,13 +37031,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37031
37031
|
J = "20".concat(J);
|
|
37032
37032
|
break;
|
|
37033
37033
|
}
|
|
37034
|
-
var g1 = "".concat(J, "/").concat(
|
|
37034
|
+
var g1 = "".concat(J, "/").concat(W.slice(3, 5), "/").concat(W.slice(5, 7));
|
|
37035
37035
|
if (g1.length === 8) {
|
|
37036
37036
|
if (!(0, s.default)(g1, "YY/MM/DD"))
|
|
37037
37037
|
return !1;
|
|
37038
37038
|
} else if (!(0, s.default)(g1, "YYYY/MM/DD"))
|
|
37039
37039
|
return !1;
|
|
37040
|
-
for (var z1 =
|
|
37040
|
+
for (var z1 = W.split("").map(function(a1) {
|
|
37041
37041
|
return parseInt(a1, 10);
|
|
37042
37042
|
}), O1 = [2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9], q1 = 0, A1 = 0; A1 < O1.length; A1++)
|
|
37043
37043
|
q1 += z1[A1] * O1[A1];
|
|
@@ -37045,37 +37045,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37045
37045
|
}
|
|
37046
37046
|
return !0;
|
|
37047
37047
|
}
|
|
37048
|
-
function M2(
|
|
37049
|
-
if (
|
|
37050
|
-
if (
|
|
37048
|
+
function M2(W) {
|
|
37049
|
+
if (W.length === 9) {
|
|
37050
|
+
if (W = W.replace(/\W/, ""), W.slice(6) === "000")
|
|
37051
37051
|
return !1;
|
|
37052
|
-
var J = parseInt(
|
|
37052
|
+
var J = parseInt(W.slice(0, 2), 10);
|
|
37053
37053
|
if (J > 53)
|
|
37054
37054
|
return !1;
|
|
37055
37055
|
J < 10 ? J = "190".concat(J) : J = "19".concat(J);
|
|
37056
|
-
var g1 = parseInt(
|
|
37056
|
+
var g1 = parseInt(W.slice(2, 4), 10);
|
|
37057
37057
|
g1 > 50 && (g1 -= 50), g1 < 10 && (g1 = "0".concat(g1));
|
|
37058
|
-
var z1 = "".concat(J, "/").concat(g1, "/").concat(
|
|
37058
|
+
var z1 = "".concat(J, "/").concat(g1, "/").concat(W.slice(4, 6));
|
|
37059
37059
|
if (!(0, s.default)(z1, "YYYY/MM/DD"))
|
|
37060
37060
|
return !1;
|
|
37061
37061
|
}
|
|
37062
37062
|
return !0;
|
|
37063
37063
|
}
|
|
37064
|
-
function x2(
|
|
37065
|
-
var J = 11 - o.reverseMultiplyAndSum(
|
|
37064
|
+
function x2(W) {
|
|
37065
|
+
var J = 11 - o.reverseMultiplyAndSum(W.split("").slice(0, 7).map(function(g1) {
|
|
37066
37066
|
return parseInt(g1, 10);
|
|
37067
37067
|
}), 8) % 11;
|
|
37068
|
-
return J === 10 ? parseInt(
|
|
37068
|
+
return J === 10 ? parseInt(W[7], 10) === 0 : J === parseInt(W[7], 10);
|
|
37069
37069
|
}
|
|
37070
|
-
function t3(
|
|
37071
|
-
var J =
|
|
37072
|
-
|
|
37070
|
+
function t3(W) {
|
|
37071
|
+
var J = W.slice(0);
|
|
37072
|
+
W.length > 11 && (J = J.slice(2));
|
|
37073
37073
|
var g1 = "", z1 = J.slice(2, 4), O1 = parseInt(J.slice(4, 6), 10);
|
|
37074
|
-
if (
|
|
37075
|
-
g1 =
|
|
37076
|
-
else if (g1 =
|
|
37074
|
+
if (W.length > 11)
|
|
37075
|
+
g1 = W.slice(0, 4);
|
|
37076
|
+
else if (g1 = W.slice(0, 2), W.length === 11 && O1 < 60) {
|
|
37077
37077
|
var q1 = (/* @__PURE__ */ new Date()).getFullYear().toString(), A1 = parseInt(q1.slice(0, 2), 10);
|
|
37078
|
-
if (q1 = parseInt(q1, 10),
|
|
37078
|
+
if (q1 = parseInt(q1, 10), W[6] === "-")
|
|
37079
37079
|
parseInt("".concat(A1).concat(g1), 10) > q1 ? g1 = "".concat(A1 - 1).concat(g1) : g1 = "".concat(A1).concat(g1);
|
|
37080
37080
|
else if (g1 = "".concat(A1 - 1).concat(g1), q1 - parseInt(g1, 10) < 100)
|
|
37081
37081
|
return !1;
|
|
@@ -37087,7 +37087,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37087
37087
|
return !1;
|
|
37088
37088
|
} else if (!(0, s.default)(a1, "YYYY/MM/DD"))
|
|
37089
37089
|
return !1;
|
|
37090
|
-
return o.luhnCheck(
|
|
37090
|
+
return o.luhnCheck(W.replace(/\W/, ""));
|
|
37091
37091
|
}
|
|
37092
37092
|
var D2 = {
|
|
37093
37093
|
"bg-BG": /^\d{10}$/,
|
|
@@ -37143,8 +37143,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37143
37143
|
"fr-LU": y1,
|
|
37144
37144
|
"hr-HR": Q,
|
|
37145
37145
|
"hu-HU": U,
|
|
37146
|
-
"it-IT":
|
|
37147
|
-
"lv-LV":
|
|
37146
|
+
"it-IT": G,
|
|
37147
|
+
"lv-LV": p1,
|
|
37148
37148
|
"mt-MT": Q1,
|
|
37149
37149
|
"nl-NL": x1,
|
|
37150
37150
|
"pl-PL": L1,
|
|
@@ -37162,10 +37162,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37162
37162
|
"fr-BE": m3
|
|
37163
37163
|
};
|
|
37164
37164
|
s3["nl-BE"] = s3["fr-BE"];
|
|
37165
|
-
function K3(
|
|
37165
|
+
function K3(W) {
|
|
37166
37166
|
var J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en-US";
|
|
37167
|
-
(0, i.default)(
|
|
37168
|
-
var g1 =
|
|
37167
|
+
(0, i.default)(W);
|
|
37168
|
+
var g1 = W.slice(0);
|
|
37169
37169
|
if (J in D2)
|
|
37170
37170
|
return J in s3 && (g1 = g1.replace(s3[J], "")), D2[J].test(g1) ? J in j2 ? j2[J](g1) : !0 : !1;
|
|
37171
37171
|
throw new Error("Invalid locale '".concat(J, "'"));
|
|
@@ -38578,7 +38578,7 @@ function Ck1() {
|
|
|
38578
38578
|
Object.defineProperty(t, "__esModule", {
|
|
38579
38579
|
value: !0
|
|
38580
38580
|
}), t.default = void 0;
|
|
38581
|
-
var i = c1(/* @__PURE__ */ ag()), o = c1(/* @__PURE__ */ vx()), s = c1(/* @__PURE__ */ R_1()), r = c1(/* @__PURE__ */ Z_1()), a = c1(/* @__PURE__ */ F_1()), l = c1(/* @__PURE__ */ U_1()), d = c1(/* @__PURE__ */ z_1()), c = c1(/* @__PURE__ */ Mx()), u = c1(/* @__PURE__ */ kx()), p = c1(/* @__PURE__ */ q_1()), g = c1(/* @__PURE__ */ Od()), m = c1(/* @__PURE__ */ G_1()), y = c1(/* @__PURE__ */ lg()), v = c1(/* @__PURE__ */ Lx()), b = c1(/* @__PURE__ */ W_1()), S = c1(/* @__PURE__ */ j_1()), M = c1(/* @__PURE__ */ K_1()), _ = o1(/* @__PURE__ */ Y_1()), V = o1(/* @__PURE__ */ X_1()), H = c1(/* @__PURE__ */ J_1()), $ = c1(/* @__PURE__ */ Q_1()), B = c1(/* @__PURE__ */ eM1()), D = c1(/* @__PURE__ */ tM1()), F = c1(/* @__PURE__ */ nM1()), K = c1(/* @__PURE__ */ iM1()), X = c1(/* @__PURE__ */ oM1()), q = c1(/* @__PURE__ */ Tx()), Y = c1(/* @__PURE__ */ Vx()), f1 = c1(/* @__PURE__ */ sM1()), y1 = c1(/* @__PURE__ */ rM1()), Q = c1(/* @__PURE__ */ lM1()), U = c1(/* @__PURE__ */ dM1()),
|
|
38581
|
+
var i = c1(/* @__PURE__ */ ag()), o = c1(/* @__PURE__ */ vx()), s = c1(/* @__PURE__ */ R_1()), r = c1(/* @__PURE__ */ Z_1()), a = c1(/* @__PURE__ */ F_1()), l = c1(/* @__PURE__ */ U_1()), d = c1(/* @__PURE__ */ z_1()), c = c1(/* @__PURE__ */ Mx()), u = c1(/* @__PURE__ */ kx()), p = c1(/* @__PURE__ */ q_1()), g = c1(/* @__PURE__ */ Od()), m = c1(/* @__PURE__ */ G_1()), y = c1(/* @__PURE__ */ lg()), v = c1(/* @__PURE__ */ Lx()), b = c1(/* @__PURE__ */ W_1()), S = c1(/* @__PURE__ */ j_1()), M = c1(/* @__PURE__ */ K_1()), _ = o1(/* @__PURE__ */ Y_1()), V = o1(/* @__PURE__ */ X_1()), H = c1(/* @__PURE__ */ J_1()), $ = c1(/* @__PURE__ */ Q_1()), B = c1(/* @__PURE__ */ eM1()), D = c1(/* @__PURE__ */ tM1()), F = c1(/* @__PURE__ */ nM1()), K = c1(/* @__PURE__ */ iM1()), X = c1(/* @__PURE__ */ oM1()), q = c1(/* @__PURE__ */ Tx()), Y = c1(/* @__PURE__ */ Vx()), f1 = c1(/* @__PURE__ */ sM1()), y1 = c1(/* @__PURE__ */ rM1()), Q = c1(/* @__PURE__ */ lM1()), U = c1(/* @__PURE__ */ dM1()), u1 = c1(/* @__PURE__ */ dg()), G = o1(/* @__PURE__ */ bx()), p1 = c1(/* @__PURE__ */ CM1()), Q1 = c1(/* @__PURE__ */ Hx()), x1 = c1(/* @__PURE__ */ uM1()), L1 = c1(/* @__PURE__ */ pM1()), T1 = c1(/* @__PURE__ */ LH()), B1 = c1(/* @__PURE__ */ hM1()), o2 = c1(/* @__PURE__ */ fM1()), M2 = c1(/* @__PURE__ */ gM1()), x2 = o1(/* @__PURE__ */ mM1()), t3 = c1(/* @__PURE__ */ yM1()), D2 = c1(/* @__PURE__ */ wM1()), j2 = c1(/* @__PURE__ */ bM1()), m3 = c1(/* @__PURE__ */ vM1()), s3 = c1(/* @__PURE__ */ SM1()), K3 = c1(/* @__PURE__ */ _M1()), W = c1(/* @__PURE__ */ MM1()), J = c1(/* @__PURE__ */ _x()), g1 = c1(/* @__PURE__ */ kM1()), z1 = c1(/* @__PURE__ */ LM1()), O1 = c1(/* @__PURE__ */ TM1()), q1 = c1(/* @__PURE__ */ VM1()), A1 = c1(/* @__PURE__ */ HM1()), a1 = c1(/* @__PURE__ */ Ex()), K1 = c1(/* @__PURE__ */ xM1()), d2 = c1(/* @__PURE__ */ IM1()), p2 = c1(/* @__PURE__ */ EM1()), n3 = c1(/* @__PURE__ */ AM1()), U2 = c1(/* @__PURE__ */ PM1()), I3 = c1(/* @__PURE__ */ BM1()), S1 = c1(/* @__PURE__ */ OM1()), Z1 = o1(/* @__PURE__ */ $M1()), u2 = c1(/* @__PURE__ */ DM1()), I2 = c1(/* @__PURE__ */ NM1()), _1 = c1(/* @__PURE__ */ RM1()), n2 = /* @__PURE__ */ ZM1(), M1 = c1(/* @__PURE__ */ FM1()), V1 = c1(/* @__PURE__ */ UM1()), a2 = c1(/* @__PURE__ */ zM1()), J2 = c1(/* @__PURE__ */ xx()), i2 = c1(/* @__PURE__ */ qM1()), ae = c1(/* @__PURE__ */ GM1()), fe = c1(/* @__PURE__ */ WM1()), C4 = c1(/* @__PURE__ */ jM1()), k5 = c1(/* @__PURE__ */ Ix()), q3 = c1(/* @__PURE__ */ KM1()), Ze = c1(/* @__PURE__ */ YM1()), S9 = c1(/* @__PURE__ */ XM1()), L5 = c1(/* @__PURE__ */ JM1()), q4 = c1(/* @__PURE__ */ QM1()), G4 = o1(/* @__PURE__ */ ek1()), p8 = c1(/* @__PURE__ */ Bx()), h8 = c1(/* @__PURE__ */ Px()), u4 = c1(/* @__PURE__ */ Ox()), U5 = c1(/* @__PURE__ */ tk1()), f8 = c1(/* @__PURE__ */ nk1()), x4 = c1(/* @__PURE__ */ ik1()), z5 = c1(/* @__PURE__ */ ok1()), g8 = c1(/* @__PURE__ */ $x()), I4 = c1(/* @__PURE__ */ sk1()), m8 = c1(/* @__PURE__ */ rk1()), y8 = c1(/* @__PURE__ */ ak1()), T5 = c1(/* @__PURE__ */ lk1()), _9 = c1(/* @__PURE__ */ dk1()), _7 = c1(/* @__PURE__ */ ck1());
|
|
38582
38582
|
function V2() {
|
|
38583
38583
|
if (typeof WeakMap != "function") return null;
|
|
38584
38584
|
var z2 = /* @__PURE__ */ new WeakMap();
|
|
@@ -38639,11 +38639,11 @@ function Ck1() {
|
|
|
38639
38639
|
isMultibyte: y1.default,
|
|
38640
38640
|
isSemVer: Q.default,
|
|
38641
38641
|
isSurrogatePair: U.default,
|
|
38642
|
-
isInt:
|
|
38642
|
+
isInt: u1.default,
|
|
38643
38643
|
isIMEI: K.default,
|
|
38644
|
-
isFloat:
|
|
38645
|
-
isFloatLocales:
|
|
38646
|
-
isDecimal:
|
|
38644
|
+
isFloat: G.default,
|
|
38645
|
+
isFloatLocales: G.locales,
|
|
38646
|
+
isDecimal: p1.default,
|
|
38647
38647
|
isHexadecimal: Q1.default,
|
|
38648
38648
|
isOctal: x1.default,
|
|
38649
38649
|
isDivisibleBy: L1.default,
|
|
@@ -38656,7 +38656,7 @@ function Ck1() {
|
|
|
38656
38656
|
isJWT: m3.default,
|
|
38657
38657
|
isJSON: s3.default,
|
|
38658
38658
|
isEmpty: K3.default,
|
|
38659
|
-
isLength:
|
|
38659
|
+
isLength: W.default,
|
|
38660
38660
|
isLocale: M.default,
|
|
38661
38661
|
isByteLength: J.default,
|
|
38662
38662
|
isUUID: g1.default,
|
|
@@ -56380,17 +56380,17 @@ function CA1(e) {
|
|
|
56380
56380
|
padding: d
|
|
56381
56381
|
}), Q = Y ? q ? p6 : w5 : q ? u6 : y5;
|
|
56382
56382
|
V[f1] > H[f1] && (Q = $a(Q));
|
|
56383
|
-
var U = $a(Q),
|
|
56384
|
-
if (s &&
|
|
56383
|
+
var U = $a(Q), u1 = [];
|
|
56384
|
+
if (s && u1.push(y1[X] <= 0), a && u1.push(y1[Q] <= 0, y1[U] <= 0), u1.every(function(L1) {
|
|
56385
56385
|
return L1;
|
|
56386
56386
|
})) {
|
|
56387
56387
|
D = K, B = !1;
|
|
56388
56388
|
break;
|
|
56389
56389
|
}
|
|
56390
|
-
$.set(K,
|
|
56390
|
+
$.set(K, u1);
|
|
56391
56391
|
}
|
|
56392
56392
|
if (B)
|
|
56393
|
-
for (var
|
|
56393
|
+
for (var G = m ? 3 : 1, p1 = function(T1) {
|
|
56394
56394
|
var B1 = _.find(function(o2) {
|
|
56395
56395
|
var M2 = $.get(o2);
|
|
56396
56396
|
if (M2)
|
|
@@ -56400,8 +56400,8 @@ function CA1(e) {
|
|
|
56400
56400
|
});
|
|
56401
56401
|
if (B1)
|
|
56402
56402
|
return D = B1, "break";
|
|
56403
|
-
}, Q1 =
|
|
56404
|
-
var x1 =
|
|
56403
|
+
}, Q1 = G; Q1 > 0; Q1--) {
|
|
56404
|
+
var x1 = p1(Q1);
|
|
56405
56405
|
if (x1 === "break") break;
|
|
56406
56406
|
}
|
|
56407
56407
|
t.placement !== D && (t.modifiersData[i]._skip = !0, t.placement = D, t.reset = !0);
|
|
@@ -56519,11 +56519,11 @@ function vA1(e) {
|
|
|
56519
56519
|
};
|
|
56520
56520
|
if (H) {
|
|
56521
56521
|
if (s) {
|
|
56522
|
-
var q, Y = _ === "y" ? y5 : w5, f1 = _ === "y" ? u6 : p6, y1 = _ === "y" ? "height" : "width", Q = H[_], U = Q + v[Y],
|
|
56522
|
+
var q, Y = _ === "y" ? y5 : w5, f1 = _ === "y" ? u6 : p6, y1 = _ === "y" ? "height" : "width", Q = H[_], U = Q + v[Y], u1 = Q - v[f1], G = g ? -B[y1] / 2 : 0, p1 = S === Ut ? $[y1] : B[y1], Q1 = S === Ut ? -B[y1] : -$[y1], x1 = t.elements.arrow, L1 = g && x1 ? im(x1) : {
|
|
56523
56523
|
width: 0,
|
|
56524
56524
|
height: 0
|
|
56525
|
-
}, T1 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : lA(), B1 = T1[Y], o2 = T1[f1], M2 = ai(0, $[y1], L1[y1]), x2 = M ? $[y1] / 2 -
|
|
56526
|
-
H[_] =
|
|
56525
|
+
}, T1 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : lA(), B1 = T1[Y], o2 = T1[f1], M2 = ai(0, $[y1], L1[y1]), x2 = M ? $[y1] / 2 - G - M2 - B1 - F.mainAxis : p1 - M2 - B1 - F.mainAxis, t3 = M ? -$[y1] / 2 + G + M2 + o2 + F.mainAxis : Q1 + M2 + o2 + F.mainAxis, D2 = t.elements.arrow && _o(t.elements.arrow), j2 = D2 ? _ === "y" ? D2.clientTop || 0 : D2.clientLeft || 0 : 0, m3 = (q = K == null ? void 0 : K[_]) != null ? q : 0, s3 = Q + x2 - m3 - j2, K3 = Q + t3 - m3, W = ai(g ? Pl(U, s3) : U, Q, g ? o0(u1, K3) : u1);
|
|
56526
|
+
H[_] = W, X[_] = W - Q;
|
|
56527
56527
|
}
|
|
56528
56528
|
if (a) {
|
|
56529
56529
|
var J, g1 = _ === "x" ? y5 : w5, z1 = _ === "x" ? u6 : p6, O1 = H[V], q1 = V === "y" ? "height" : "width", A1 = O1 + v[g1], a1 = O1 - v[z1], K1 = [y5, w5].indexOf(b) !== -1, d2 = (J = K == null ? void 0 : K[V]) != null ? J : 0, p2 = K1 ? A1 : O1 - $[q1] - B[q1] - d2 + F.altAxis, n3 = K1 ? O1 + $[q1] + B[q1] - d2 - F.altAxis : a1, U2 = g && K1 ? qE1(p2, O1, n3) : ai(g ? p2 : A1, O1, g ? n3 : a1);
|
|
@@ -57133,7 +57133,7 @@ function aP1(e, t) {
|
|
|
57133
57133
|
var B = S.map(function(_1) {
|
|
57134
57134
|
return _1.fn(_);
|
|
57135
57135
|
}), D = e.hasAttribute("aria-expanded");
|
|
57136
|
-
return D2(),
|
|
57136
|
+
return D2(), G(), Q(), U("onCreate", [_]), n.showOnCreate && A1(), H.addEventListener("mouseenter", function() {
|
|
57137
57137
|
_.props.interactive && _.state.isVisible && _.clearDelayTimeouts();
|
|
57138
57138
|
}), H.addEventListener("mouseleave", function() {
|
|
57139
57139
|
_.props.interactive && _.props.trigger.indexOf("mouseenter") >= 0 && Y().addEventListener("mousemove", m);
|
|
@@ -57173,7 +57173,7 @@ function aP1(e, t) {
|
|
|
57173
57173
|
(V1 = _.props)[_1].apply(V1, n2);
|
|
57174
57174
|
}
|
|
57175
57175
|
}
|
|
57176
|
-
function
|
|
57176
|
+
function u1() {
|
|
57177
57177
|
var _1 = _.props.aria;
|
|
57178
57178
|
if (_1.content) {
|
|
57179
57179
|
var n2 = "aria-" + _1.content, M1 = H.id, V1 = pt(_.props.triggerTarget || e);
|
|
@@ -57188,7 +57188,7 @@ function aP1(e, t) {
|
|
|
57188
57188
|
});
|
|
57189
57189
|
}
|
|
57190
57190
|
}
|
|
57191
|
-
function
|
|
57191
|
+
function G() {
|
|
57192
57192
|
if (!(D || !_.props.aria.expanded)) {
|
|
57193
57193
|
var _1 = pt(_.props.triggerTarget || e);
|
|
57194
57194
|
_1.forEach(function(n2) {
|
|
@@ -57196,7 +57196,7 @@ function aP1(e, t) {
|
|
|
57196
57196
|
});
|
|
57197
57197
|
}
|
|
57198
57198
|
}
|
|
57199
|
-
function
|
|
57199
|
+
function p1() {
|
|
57200
57200
|
Y().removeEventListener("mousemove", m), da = da.filter(function(_1) {
|
|
57201
57201
|
return _1 !== m;
|
|
57202
57202
|
});
|
|
@@ -57273,10 +57273,10 @@ function aP1(e, t) {
|
|
|
57273
57273
|
t3("mouseleave", K3);
|
|
57274
57274
|
break;
|
|
57275
57275
|
case "focus":
|
|
57276
|
-
t3(XA1 ? "focusout" : "blur",
|
|
57276
|
+
t3(XA1 ? "focusout" : "blur", W);
|
|
57277
57277
|
break;
|
|
57278
57278
|
case "focusin":
|
|
57279
|
-
t3("focusout",
|
|
57279
|
+
t3("focusout", W);
|
|
57280
57280
|
break;
|
|
57281
57281
|
}
|
|
57282
57282
|
});
|
|
@@ -57291,7 +57291,7 @@ function aP1(e, t) {
|
|
|
57291
57291
|
var n2, M1 = !1;
|
|
57292
57292
|
if (!(!_.state.isEnabled || J(_1) || a)) {
|
|
57293
57293
|
var V1 = ((n2 = c) == null ? void 0 : n2.type) === "focus";
|
|
57294
|
-
c = _1, y = _1.currentTarget,
|
|
57294
|
+
c = _1, y = _1.currentTarget, G(), !_.state.isVisible && FA1(_1) && da.forEach(function(a2) {
|
|
57295
57295
|
return a2(_1);
|
|
57296
57296
|
}), _1.type === "click" && (_.props.trigger.indexOf("mouseenter") < 0 || r) && _.props.hideOnClick !== !1 && _.state.isVisible ? M1 = !0 : A1(_1), _1.type === "click" && (r = !M1), M1 && !V1 && a1(_1);
|
|
57297
57297
|
}
|
|
@@ -57307,7 +57307,7 @@ function aP1(e, t) {
|
|
|
57307
57307
|
props: n
|
|
57308
57308
|
} : null;
|
|
57309
57309
|
}).filter(Boolean);
|
|
57310
|
-
GA1(V1, _1) && (
|
|
57310
|
+
GA1(V1, _1) && (p1(), a1(_1));
|
|
57311
57311
|
}
|
|
57312
57312
|
}
|
|
57313
57313
|
function K3(_1) {
|
|
@@ -57320,7 +57320,7 @@ function aP1(e, t) {
|
|
|
57320
57320
|
a1(_1);
|
|
57321
57321
|
}
|
|
57322
57322
|
}
|
|
57323
|
-
function
|
|
57323
|
+
function W(_1) {
|
|
57324
57324
|
_.props.trigger.indexOf("focusin") < 0 && _1.target !== q() || _.props.interactive && _1.relatedTarget && H.contains(_1.relatedTarget) || a1(_1);
|
|
57325
57325
|
}
|
|
57326
57326
|
function J(_1) {
|
|
@@ -57435,9 +57435,9 @@ function aP1(e, t) {
|
|
|
57435
57435
|
var n2 = _.props, M1 = WM(e, Object.assign({}, n2, FM(_1), {
|
|
57436
57436
|
ignoreAttributes: !0
|
|
57437
57437
|
}));
|
|
57438
|
-
_.props = M1, D2(), n2.interactiveDebounce !== M1.interactiveDebounce && (
|
|
57438
|
+
_.props = M1, D2(), n2.interactiveDebounce !== M1.interactiveDebounce && (p1(), m = RM(s3, M1.interactiveDebounce)), n2.triggerTarget && !M1.triggerTarget ? pt(n2.triggerTarget).forEach(function(V1) {
|
|
57439
57439
|
V1.removeAttribute("aria-expanded");
|
|
57440
|
-
}) : M1.triggerTarget && e.removeAttribute("aria-expanded"),
|
|
57440
|
+
}) : M1.triggerTarget && e.removeAttribute("aria-expanded"), G(), Q(), $ && $(n2, M1), _.popperInstance && (g1(), q1().forEach(function(V1) {
|
|
57441
57441
|
requestAnimationFrame(V1._tippy.popperInstance.forceUpdate);
|
|
57442
57442
|
})), U("onAfterUpdate", [_, _1]);
|
|
57443
57443
|
}
|
|
@@ -57462,7 +57462,7 @@ function aP1(e, t) {
|
|
|
57462
57462
|
var k5 = f1(), q3 = k5.box, Ze = k5.content;
|
|
57463
57463
|
Ju([q3, Ze], a2), UM([q3, Ze], "visible");
|
|
57464
57464
|
}
|
|
57465
|
-
|
|
57465
|
+
u1(), G(), ZM(ep, _), (C4 = _.popperInstance) == null || C4.forceUpdate(), U("onMount", [_]), _.props.animation && X() && M2(a2, function() {
|
|
57466
57466
|
_.state.isShown = !0, U("onShown", [_]);
|
|
57467
57467
|
});
|
|
57468
57468
|
}
|
|
@@ -57473,11 +57473,11 @@ function aP1(e, t) {
|
|
|
57473
57473
|
process.env.NODE_ENV !== "production" && N9(_.state.isDestroyed, lt("hide"));
|
|
57474
57474
|
var _1 = !_.state.isVisible, n2 = _.state.isDestroyed, M1 = !_.state.isEnabled, V1 = Xu(_.props.duration, 1, B5.duration);
|
|
57475
57475
|
if (!(_1 || n2 || M1) && (U("onHide", [_], !1), _.props.onHide(_) !== !1)) {
|
|
57476
|
-
if (_.state.isVisible = !1, _.state.isShown = !1, d = !1, r = !1, X() && (H.style.visibility = "hidden"),
|
|
57476
|
+
if (_.state.isVisible = !1, _.state.isShown = !1, d = !1, r = !1, X() && (H.style.visibility = "hidden"), p1(), B1(), Q(!0), X()) {
|
|
57477
57477
|
var a2 = f1(), J2 = a2.box, i2 = a2.content;
|
|
57478
57478
|
_.props.animation && (Ju([J2, i2], V1), UM([J2, i2], "hidden"));
|
|
57479
57479
|
}
|
|
57480
|
-
|
|
57480
|
+
u1(), G(), _.props.animation ? X() && o2(V1, _.unmount) : _.unmount();
|
|
57481
57481
|
}
|
|
57482
57482
|
}
|
|
57483
57483
|
function Z1(_1) {
|
|
@@ -60965,7 +60965,10 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
60965
60965
|
if (!d) return null;
|
|
60966
60966
|
try {
|
|
60967
60967
|
const U = vD(d.brandPageData);
|
|
60968
|
-
return JSON.stringify(
|
|
60968
|
+
return JSON.stringify(
|
|
60969
|
+
U,
|
|
60970
|
+
(u1, G) => u1 === "logoImageBase64Url" ? void 0 : G
|
|
60971
|
+
);
|
|
60969
60972
|
} catch (U) {
|
|
60970
60973
|
return console.error("history-store: failed to serialize brandPageData", U), null;
|
|
60971
60974
|
}
|
|
@@ -60984,20 +60987,20 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
60984
60987
|
function y(U) {
|
|
60985
60988
|
if (p.has(U.tagName))
|
|
60986
60989
|
return U.attributes.length === 0;
|
|
60987
|
-
for (const
|
|
60988
|
-
if (U.tagName === "MARK" && (
|
|
60989
|
-
if (
|
|
60990
|
-
} else if (
|
|
60990
|
+
for (const u1 of Array.from(U.attributes)) {
|
|
60991
|
+
if (U.tagName === "MARK" && (u1.name === "data-color" || u1.name === "style")) {
|
|
60992
|
+
if (u1.name === "data-color") continue;
|
|
60993
|
+
} else if (u1.name !== "style")
|
|
60991
60994
|
return !1;
|
|
60992
|
-
const
|
|
60995
|
+
const G = u1.value.split(";").map((p1) => p1.trim()).filter(Boolean);
|
|
60993
60996
|
if (U.tagName === "P")
|
|
60994
|
-
for (const
|
|
60995
|
-
const [Q1] =
|
|
60997
|
+
for (const p1 of G) {
|
|
60998
|
+
const [Q1] = p1.split(":").map((x1) => x1.trim());
|
|
60996
60999
|
if (Q1 !== "text-align") return !1;
|
|
60997
61000
|
}
|
|
60998
61001
|
else if (U.tagName === "SPAN" || U.tagName === "MARK")
|
|
60999
|
-
for (const
|
|
61000
|
-
const [Q1, x1] =
|
|
61002
|
+
for (const p1 of G) {
|
|
61003
|
+
const [Q1, x1] = p1.split(":").map((L1) => L1.trim());
|
|
61001
61004
|
if (!(U.tagName === "MARK" && Q1 === "color" && x1 === "inherit") && !g.has(Q1))
|
|
61002
61005
|
return !1;
|
|
61003
61006
|
}
|
|
@@ -61010,9 +61013,9 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61010
61013
|
if (U.nodeType === 3) return U.textContent ?? "";
|
|
61011
61014
|
if (U.nodeType !== 1)
|
|
61012
61015
|
return null;
|
|
61013
|
-
const
|
|
61014
|
-
if (!
|
|
61015
|
-
const Q1 = Array.from(
|
|
61016
|
+
const u1 = U, G = u.has(u1.tagName), p1 = p.has(u1.tagName);
|
|
61017
|
+
if (!G && !p1 || !y(u1)) return null;
|
|
61018
|
+
const Q1 = Array.from(u1.childNodes);
|
|
61016
61019
|
let x1 = "";
|
|
61017
61020
|
for (const L1 of Q1) {
|
|
61018
61021
|
if (L1.nodeType === 1 && p.has(L1.tagName) && Q1.length > 1)
|
|
@@ -61027,83 +61030,83 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61027
61030
|
if (!U.includes("<")) return U;
|
|
61028
61031
|
if (m(U)) return "";
|
|
61029
61032
|
if (typeof DOMParser > "u") return U;
|
|
61030
|
-
let
|
|
61033
|
+
let u1;
|
|
61031
61034
|
try {
|
|
61032
|
-
|
|
61035
|
+
u1 = new DOMParser().parseFromString(
|
|
61033
61036
|
`<div id="__rte_root__">${U}</div>`,
|
|
61034
61037
|
"text/html"
|
|
61035
61038
|
);
|
|
61036
61039
|
} catch {
|
|
61037
61040
|
return U;
|
|
61038
61041
|
}
|
|
61039
|
-
const
|
|
61040
|
-
if (!
|
|
61041
|
-
let
|
|
61042
|
-
for (const Q1 of Array.from(
|
|
61042
|
+
const G = u1.getElementById("__rte_root__");
|
|
61043
|
+
if (!G) return U;
|
|
61044
|
+
let p1 = "";
|
|
61045
|
+
for (const Q1 of Array.from(G.childNodes)) {
|
|
61043
61046
|
const x1 = v(Q1);
|
|
61044
61047
|
if (x1 === null) return U;
|
|
61045
|
-
|
|
61048
|
+
p1 += x1;
|
|
61046
61049
|
}
|
|
61047
|
-
return
|
|
61050
|
+
return p1;
|
|
61048
61051
|
}
|
|
61049
61052
|
function S(U) {
|
|
61050
61053
|
if (Array.isArray(U)) return U.map(S);
|
|
61051
61054
|
if (U === null || typeof U != "object") return U;
|
|
61052
|
-
const
|
|
61053
|
-
for (const
|
|
61054
|
-
let
|
|
61055
|
-
if (
|
|
61056
|
-
if (
|
|
61057
|
-
const Q1 =
|
|
61055
|
+
const u1 = {};
|
|
61056
|
+
for (const G of Object.keys(U)) {
|
|
61057
|
+
let p1 = U[G];
|
|
61058
|
+
if (G !== "isModifiedAfterTemplateApplied" && G !== "logoImageBase64Url" && (typeof p1 == "string" && (p1 = b(p1)), !(m(p1) || p1 === ""))) {
|
|
61059
|
+
if (p1 !== null && typeof p1 == "object" && !Array.isArray(p1) && /Style$/.test(G)) {
|
|
61060
|
+
const Q1 = p1;
|
|
61058
61061
|
if (Q1.textStyleType !== void 0 && Q1.textStyleType !== null) {
|
|
61059
|
-
|
|
61062
|
+
u1[G] = {
|
|
61060
61063
|
textStyleType: Q1.textStyleType,
|
|
61061
61064
|
...Q1.textAlign !== void 0 ? { textAlign: Q1.textAlign } : {}
|
|
61062
61065
|
};
|
|
61063
61066
|
continue;
|
|
61064
61067
|
}
|
|
61065
|
-
|
|
61068
|
+
u1[G] = S(Q1);
|
|
61066
61069
|
continue;
|
|
61067
61070
|
}
|
|
61068
|
-
|
|
61071
|
+
u1[G] = S(p1);
|
|
61069
61072
|
}
|
|
61070
61073
|
}
|
|
61071
|
-
return
|
|
61074
|
+
return u1;
|
|
61072
61075
|
}
|
|
61073
61076
|
function M(U) {
|
|
61074
61077
|
try {
|
|
61075
|
-
const
|
|
61076
|
-
return JSON.stringify(S(
|
|
61078
|
+
const u1 = JSON.parse(U);
|
|
61079
|
+
return JSON.stringify(S(u1));
|
|
61077
61080
|
} catch {
|
|
61078
61081
|
return U;
|
|
61079
61082
|
}
|
|
61080
61083
|
}
|
|
61081
61084
|
function _(U) {
|
|
61082
|
-
const
|
|
61083
|
-
if (
|
|
61085
|
+
const u1 = t.value[n.value];
|
|
61086
|
+
if (u1 && (u1.snapshot === U.snapshot || M(u1.snapshot) === M(U.snapshot)))
|
|
61084
61087
|
return "noop";
|
|
61085
61088
|
if (U.snapshot.length > QB1)
|
|
61086
61089
|
return e.sendHistoryOversizedEvent({
|
|
61087
61090
|
attempted_bytes: U.snapshot.length,
|
|
61088
61091
|
source: U.source
|
|
61089
61092
|
}), "oversized";
|
|
61090
|
-
const
|
|
61093
|
+
const G = {
|
|
61091
61094
|
snapshot: U.snapshot,
|
|
61092
61095
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
61093
61096
|
source: U.source,
|
|
61094
61097
|
actor: U.actor,
|
|
61095
61098
|
label: U.label,
|
|
61096
61099
|
sizeBytes: U.snapshot.length
|
|
61097
|
-
},
|
|
61098
|
-
|
|
61100
|
+
}, p1 = t.value.slice(0, n.value + 1);
|
|
61101
|
+
p1.push(G);
|
|
61099
61102
|
let Q1 = !1;
|
|
61100
|
-
for (;
|
|
61101
|
-
|
|
61102
|
-
let x1 =
|
|
61103
|
-
for (; x1 > JB1 &&
|
|
61104
|
-
x1 -=
|
|
61105
|
-
return t.value =
|
|
61106
|
-
entries_count:
|
|
61103
|
+
for (; p1.length > XB1 && p1.length > 1; )
|
|
61104
|
+
p1.splice(1, 1), Q1 = !0;
|
|
61105
|
+
let x1 = p1.reduce((L1, T1) => L1 + T1.sizeBytes, 0);
|
|
61106
|
+
for (; x1 > JB1 && p1.length > 2; )
|
|
61107
|
+
x1 -= p1[1].sizeBytes, p1.splice(1, 1), Q1 = !0;
|
|
61108
|
+
return t.value = p1, n.value = p1.length - 1, Q1 && e.sendHistoryCappedEvent({
|
|
61109
|
+
entries_count: p1.length,
|
|
61107
61110
|
size_bytes: x1
|
|
61108
61111
|
}), "committed";
|
|
61109
61112
|
}
|
|
@@ -61116,20 +61119,20 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61116
61119
|
d = l2();
|
|
61117
61120
|
const U = () => {
|
|
61118
61121
|
if ($(), i.value || !o.value) return;
|
|
61119
|
-
const
|
|
61120
|
-
if (!
|
|
61122
|
+
const G = c();
|
|
61123
|
+
if (!G) return;
|
|
61121
61124
|
if (n.value === 0 && Date.now() - r < eO1) {
|
|
61122
61125
|
t.value = [
|
|
61123
61126
|
{
|
|
61124
61127
|
...t.value[0],
|
|
61125
|
-
snapshot:
|
|
61128
|
+
snapshot: G,
|
|
61126
61129
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
61127
|
-
sizeBytes:
|
|
61130
|
+
sizeBytes: G.length
|
|
61128
61131
|
}
|
|
61129
61132
|
];
|
|
61130
61133
|
return;
|
|
61131
61134
|
}
|
|
61132
|
-
_({ snapshot:
|
|
61135
|
+
_({ snapshot: G, source: "manual_edit", actor: "user" });
|
|
61133
61136
|
};
|
|
61134
61137
|
R2(() => d.brandPageData, () => {
|
|
61135
61138
|
i.value || V === null && (V = setTimeout(U, KB1), H = setTimeout(U, YB1));
|
|
@@ -61154,8 +61157,8 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61154
61157
|
}
|
|
61155
61158
|
function F(U) {
|
|
61156
61159
|
if (i.value || !o.value) return "skipped";
|
|
61157
|
-
const
|
|
61158
|
-
return
|
|
61160
|
+
const u1 = c();
|
|
61161
|
+
return u1 ? _({ snapshot: u1, ...U }) : "skipped";
|
|
61159
61162
|
}
|
|
61160
61163
|
function K(U) {
|
|
61161
61164
|
return $(), F({ source: "template_switch", actor: "user", label: U });
|
|
@@ -61164,43 +61167,43 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61164
61167
|
return $(), F({ source: "ai_changeset", actor: "ai_builder", label: U });
|
|
61165
61168
|
}
|
|
61166
61169
|
async function q(U) {
|
|
61167
|
-
const
|
|
61168
|
-
let
|
|
61170
|
+
const u1 = l2();
|
|
61171
|
+
let G;
|
|
61169
61172
|
try {
|
|
61170
|
-
|
|
61171
|
-
} catch (
|
|
61172
|
-
console.error("history-store: failed to parse snapshot",
|
|
61173
|
+
G = JSON.parse(U);
|
|
61174
|
+
} catch (p1) {
|
|
61175
|
+
console.error("history-store: failed to parse snapshot", p1);
|
|
61173
61176
|
return;
|
|
61174
61177
|
}
|
|
61175
61178
|
i.value = !0;
|
|
61176
61179
|
try {
|
|
61177
|
-
await
|
|
61180
|
+
await u1.applyHistorySnapshot(G), await Be();
|
|
61178
61181
|
} finally {
|
|
61179
61182
|
i.value = !1;
|
|
61180
61183
|
}
|
|
61181
61184
|
}
|
|
61182
61185
|
async function Y() {
|
|
61183
|
-
var
|
|
61186
|
+
var p1;
|
|
61184
61187
|
if (!a.value || p7().isProcessing) return;
|
|
61185
|
-
const
|
|
61188
|
+
const u1 = (p1 = t.value[n.value]) == null ? void 0 : p1.actor;
|
|
61186
61189
|
n.value -= 1;
|
|
61187
|
-
const
|
|
61188
|
-
|
|
61190
|
+
const G = t.value[n.value];
|
|
61191
|
+
G && await q(G.snapshot), e.sendUndoEvent({
|
|
61189
61192
|
entries_count: t.value.length,
|
|
61190
|
-
actor:
|
|
61193
|
+
actor: u1
|
|
61191
61194
|
});
|
|
61192
61195
|
}
|
|
61193
61196
|
async function f1() {
|
|
61194
61197
|
if (!l.value || p7().isProcessing) return;
|
|
61195
61198
|
n.value += 1;
|
|
61196
|
-
const
|
|
61197
|
-
|
|
61199
|
+
const u1 = t.value[n.value];
|
|
61200
|
+
u1 && await q(u1.snapshot), e.sendRedoEvent({
|
|
61198
61201
|
entries_count: t.value.length,
|
|
61199
|
-
actor:
|
|
61202
|
+
actor: u1 == null ? void 0 : u1.actor
|
|
61200
61203
|
});
|
|
61201
61204
|
}
|
|
61202
61205
|
function y1() {
|
|
61203
|
-
return t.value.reduce((U,
|
|
61206
|
+
return t.value.reduce((U, u1) => U + u1.sizeBytes, 0);
|
|
61204
61207
|
}
|
|
61205
61208
|
function Q() {
|
|
61206
61209
|
return t.value.length;
|
|
@@ -61577,10 +61580,10 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61577
61580
|
toggleFont: y1,
|
|
61578
61581
|
toggleFontSize: Q,
|
|
61579
61582
|
toggleFontAll: U,
|
|
61580
|
-
toggleFontSizeAll:
|
|
61583
|
+
toggleFontSizeAll: u1
|
|
61581
61584
|
} = WB1(p, i, o), {
|
|
61582
|
-
letterSpacingValue:
|
|
61583
|
-
lineHeightValue:
|
|
61585
|
+
letterSpacingValue: G,
|
|
61586
|
+
lineHeightValue: p1,
|
|
61584
61587
|
letterSpacing: Q1,
|
|
61585
61588
|
lineHeight: x1,
|
|
61586
61589
|
setLetterSpaceAll: L1,
|
|
@@ -61681,8 +61684,8 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61681
61684
|
}, K3 = (A1) => {
|
|
61682
61685
|
var K1, d2, p2;
|
|
61683
61686
|
const a1 = A1 ?? ((K1 = s.value) == null ? void 0 : K1.style);
|
|
61684
|
-
a1 && (a1.fontWeight === "bold" && V(), a1.fontStyle && H(), (d2 = a1.textDecoration) != null && d2.includes("underline") && $(), (p2 = a1.textDecoration) != null && p2.includes("line-through") && B(), a1.color && (J5(a1.color) ? (D(c7(a1.color, "text")), i.selectedTextColor = "#000000") : (D(a1.color), i.selectedTextColor = a1.color)), a1.fontFamily && U(a1.fontFamily), a1.fontSize &&
|
|
61685
|
-
},
|
|
61687
|
+
a1 && (a1.fontWeight === "bold" && V(), a1.fontStyle && H(), (d2 = a1.textDecoration) != null && d2.includes("underline") && $(), (p2 = a1.textDecoration) != null && p2.includes("line-through") && B(), a1.color && (J5(a1.color) ? (D(c7(a1.color, "text")), i.selectedTextColor = "#000000") : (D(a1.color), i.selectedTextColor = a1.color)), a1.fontFamily && U(a1.fontFamily), a1.fontSize && u1(a1.fontSize), a1.lineHeight && T1(a1.lineHeight), a1.letterSpacing && L1(a1.letterSpacing), t.styles.textAlign && X(t.styles.textAlign ?? "none"));
|
|
61688
|
+
}, W = (A1) => {
|
|
61686
61689
|
var K1, d2;
|
|
61687
61690
|
const a1 = { ...t.styles, textStyleType: void 0 };
|
|
61688
61691
|
switch (A1.type) {
|
|
@@ -61807,7 +61810,7 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61807
61810
|
}, q1 = (A1, a1) => {
|
|
61808
61811
|
const d2 = (a1 === "textColor" ? Dt : se).convertBack(A1.value), p2 = a1 === "textColor" ? d2.color : d2.backgroundColor;
|
|
61809
61812
|
if (p.commands.selectAll(), p2 != null && p2.startsWith("#"))
|
|
61810
|
-
a1 === "textColor" ? i.selectedTextColor = p2 : i.selectedBackgroundColor = p2,
|
|
61813
|
+
a1 === "textColor" ? i.selectedTextColor = p2 : i.selectedBackgroundColor = p2, W({
|
|
61811
61814
|
type: a1,
|
|
61812
61815
|
value: p2
|
|
61813
61816
|
});
|
|
@@ -61842,7 +61845,7 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61842
61845
|
editor: p,
|
|
61843
61846
|
onFocus: g1,
|
|
61844
61847
|
onBlur: z1,
|
|
61845
|
-
triggerEditorStyleChange:
|
|
61848
|
+
triggerEditorStyleChange: W,
|
|
61846
61849
|
toggleBold: y,
|
|
61847
61850
|
toggleItalic: v,
|
|
61848
61851
|
toggleUnderline: b,
|
|
@@ -61853,8 +61856,8 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
61853
61856
|
currentAlignment: K,
|
|
61854
61857
|
toggleFont: y1,
|
|
61855
61858
|
toggleFontSize: Q,
|
|
61856
|
-
letterSpacingValue:
|
|
61857
|
-
lineHeightValue:
|
|
61859
|
+
letterSpacingValue: G,
|
|
61860
|
+
lineHeightValue: p1,
|
|
61858
61861
|
selectedFont: T(() => f1.value),
|
|
61859
61862
|
setInitialStyleSettings: s3,
|
|
61860
61863
|
copyGlobalStyleSettings: K3,
|
|
@@ -62190,10 +62193,10 @@ const Kn = /* @__PURE__ */ Z6(GB1), WB1 = (e, t, n) => {
|
|
|
62190
62193
|
R2(() => n.context.isDesignCom, async () => {
|
|
62191
62194
|
const M = P6().toLowerCase(), _ = n.context.isDesignCom ? "Dcom" : "BrandCrowd";
|
|
62192
62195
|
try {
|
|
62193
|
-
const { default: V } = await yk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-
|
|
62196
|
+
const { default: V } = await yk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-de-de.vue": () => import("./CreatedOnBrandCrowd-de-de-C2CJCAQ1.js"), "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-Bg5k7y_D.js"), "./watermark/CreatedOnBrandCrowd-es-es.vue": () => import("./CreatedOnBrandCrowd-es-es-DAaAXvzy.js"), "./watermark/CreatedOnBrandCrowd-fr-ca.vue": () => import("./CreatedOnBrandCrowd-fr-ca-B7C0ERbi.js"), "./watermark/CreatedOnBrandCrowd-fr-fr.vue": () => import("./CreatedOnBrandCrowd-fr-fr-B7C0ERbi.js"), "./watermark/CreatedOnBrandCrowd-pt-br.vue": () => import("./CreatedOnBrandCrowd-pt-br-1pvCqQK1.js"), "./watermark/CreatedOnBrandCrowd-pt-pt.vue": () => import("./CreatedOnBrandCrowd-pt-pt-1pvCqQK1.js"), "./watermark/CreatedOnDcom-de-de.vue": () => import("./CreatedOnDcom-de-de-hbcr-qW0.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-BToix_74.js"), "./watermark/CreatedOnDcom-es-es.vue": () => import("./CreatedOnDcom-es-es-DOCxN0tr.js"), "./watermark/CreatedOnDcom-fr-ca.vue": () => import("./CreatedOnDcom-fr-ca-Q3ZYgCxp.js"), "./watermark/CreatedOnDcom-fr-fr.vue": () => import("./CreatedOnDcom-fr-fr-C1-dUWKB.js"), "./watermark/CreatedOnDcom-pt-br.vue": () => import("./CreatedOnDcom-pt-br-KWKgld1I.js"), "./watermark/CreatedOnDcom-pt-pt.vue": () => import("./CreatedOnDcom-pt-pt-CRR3Hfej.js") }), `./watermark/CreatedOn${_}-${M}.vue`, 3);
|
|
62194
62197
|
i.value = V;
|
|
62195
62198
|
} catch {
|
|
62196
|
-
const { default: H } = await yk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-
|
|
62199
|
+
const { default: H } = await yk(/* @__PURE__ */ Object.assign({ "./watermark/CreatedOnBrandCrowd-en-us.vue": () => import("./CreatedOnBrandCrowd-en-us-Bg5k7y_D.js"), "./watermark/CreatedOnDcom-en-us.vue": () => import("./CreatedOnDcom-en-us-BToix_74.js") }), `./watermark/CreatedOn${_}-en-us.vue`, 3);
|
|
62197
62200
|
i.value = H;
|
|
62198
62201
|
}
|
|
62199
62202
|
}, {
|
|
@@ -62400,8 +62403,8 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62400
62403
|
color: L1.color
|
|
62401
62404
|
};
|
|
62402
62405
|
}, S = (x1) => {
|
|
62403
|
-
var m3, s3, K3,
|
|
62404
|
-
const L1 = x1.getBoundingClientRect(), T1 = s.value, B1 = (
|
|
62406
|
+
var m3, s3, K3, W;
|
|
62407
|
+
const L1 = x1.getBoundingClientRect(), T1 = s.value, B1 = (W = (K3 = (s3 = (m3 = c.value) == null ? void 0 : m3.parentElement) == null ? void 0 : s3.parentElement) == null ? void 0 : K3.parentElement) == null ? void 0 : W.parentElement, o2 = (B1 == null ? void 0 : B1.getBoundingClientRect()) ?? {
|
|
62405
62408
|
left: 0,
|
|
62406
62409
|
right: window.innerWidth
|
|
62407
62410
|
}, M2 = o2.right - o2.left, x2 = Math.min(
|
|
@@ -62427,13 +62430,13 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62427
62430
|
) : !1;
|
|
62428
62431
|
}, _ = (x1, L1) => {
|
|
62429
62432
|
var B1;
|
|
62430
|
-
if (
|
|
62433
|
+
if (u1.value || u.value || (a && (clearTimeout(a), a = null), !((B1 = L1.nestedNavItems) != null && B1.length))) return;
|
|
62431
62434
|
const T1 = o.value[x1];
|
|
62432
62435
|
T1 && (l = !0, setTimeout(() => {
|
|
62433
62436
|
n.value = x1, i.value = L1, S(T1), Be(() => S(T1));
|
|
62434
62437
|
}, 100));
|
|
62435
62438
|
}, V = () => {
|
|
62436
|
-
|
|
62439
|
+
u1.value || (a = setTimeout(() => {
|
|
62437
62440
|
n.value = null;
|
|
62438
62441
|
}, 100));
|
|
62439
62442
|
}, H = () => {
|
|
@@ -62503,11 +62506,11 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62503
62506
|
}), setTimeout(() => Y(), 100);
|
|
62504
62507
|
}, U = () => {
|
|
62505
62508
|
if (!d.value) return;
|
|
62506
|
-
const x1 =
|
|
62509
|
+
const x1 = p1.value.findIndex(
|
|
62507
62510
|
(o2) => M(o2)
|
|
62508
62511
|
);
|
|
62509
62512
|
if (x1 === -1) return;
|
|
62510
|
-
const T1 = `${
|
|
62513
|
+
const T1 = `${p1.value[x1].relativePath}_${x1}`, B1 = o.value[T1];
|
|
62511
62514
|
B1 && Q(B1);
|
|
62512
62515
|
};
|
|
62513
62516
|
R2(
|
|
@@ -62518,7 +62521,7 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62518
62521
|
});
|
|
62519
62522
|
}
|
|
62520
62523
|
);
|
|
62521
|
-
const
|
|
62524
|
+
const u1 = T(() => t.navigation.viewport === "mobile");
|
|
62522
62525
|
R2(
|
|
62523
62526
|
() => t.navigation,
|
|
62524
62527
|
() => {
|
|
@@ -62528,18 +62531,18 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62528
62531
|
},
|
|
62529
62532
|
{ deep: !0 }
|
|
62530
62533
|
);
|
|
62531
|
-
let
|
|
62534
|
+
let G = null;
|
|
62532
62535
|
v3(() => {
|
|
62533
62536
|
d.value && (Y(), d.value.addEventListener("scroll", Y), window.addEventListener("resize", Y), Be(() => {
|
|
62534
62537
|
U();
|
|
62535
|
-
}),
|
|
62538
|
+
}), G = new ResizeObserver(() => {
|
|
62536
62539
|
Y();
|
|
62537
|
-
}),
|
|
62540
|
+
}), G.observe(d.value)), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), document.addEventListener("click", D, !0), document.addEventListener("touchend", D, !0);
|
|
62538
62541
|
}), S0(() => {
|
|
62539
|
-
d.value && d.value.removeEventListener("scroll", Y), window.removeEventListener("resize", Y), window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D), document.removeEventListener("click", D, !0), document.removeEventListener("touchend", D, !0),
|
|
62542
|
+
d.value && d.value.removeEventListener("scroll", Y), window.removeEventListener("resize", Y), window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D), document.removeEventListener("click", D, !0), document.removeEventListener("touchend", D, !0), G == null || G.disconnect(), G = null;
|
|
62540
62543
|
});
|
|
62541
|
-
const
|
|
62542
|
-
() =>
|
|
62544
|
+
const p1 = T(() => t.pageNavigation.navItems), Q1 = T(
|
|
62545
|
+
() => u1.value ? "240px" : "380px"
|
|
62543
62546
|
);
|
|
62544
62547
|
return (x1, L1) => {
|
|
62545
62548
|
var B1, o2, M2;
|
|
@@ -62571,7 +62574,7 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62571
62574
|
onTouchstart: X
|
|
62572
62575
|
}, [
|
|
62573
62576
|
h("div", wO1, [
|
|
62574
|
-
(C(!0), f(H1, null, R1(
|
|
62577
|
+
(C(!0), f(H1, null, R1(p1.value, (x2, t3) => {
|
|
62575
62578
|
var D2;
|
|
62576
62579
|
return C(), f("div", {
|
|
62577
62580
|
key: `${x2.relativePath}_${t3}`,
|
|
@@ -62625,7 +62628,7 @@ const yO1 = /* @__PURE__ */ w(hO1, [["render", mO1]]), wO1 = { class: "carousel-
|
|
|
62625
62628
|
ref: s,
|
|
62626
62629
|
class: R([
|
|
62627
62630
|
"dropdown-menu",
|
|
62628
|
-
{ "dropdown-menu--mobile":
|
|
62631
|
+
{ "dropdown-menu--mobile": u1.value }
|
|
62629
62632
|
]),
|
|
62630
62633
|
style: E1(r.value),
|
|
62631
62634
|
onMouseenter: H,
|
|
@@ -63421,7 +63424,7 @@ const tF1 = /* @__PURE__ */ w(QZ1, [["render", eF1]]), nF1 = t1({
|
|
|
63421
63424
|
mixins: [nF1]
|
|
63422
63425
|
}, oF1 = ["viewBox"];
|
|
63423
63426
|
function sF1(e, t, n, i, o, s) {
|
|
63424
|
-
const r = E("IconAmazon"), a = E("IconAppstore"), l = E("IconBehance"), d = E("IconBell"), c = E("IconCalendar"), u = E("IconCoffee"), p = E("IconComment"), g = E("IconController"), m = E("IconDesktop"), y = E("IconDiscord"), v = E("IconDonate"), b = E("IconDribbble"), S = E("IconEbay"), M = E("IconEmail"), _ = E("IconEnvelope"), V = E("IconEtsy"), H = E("IconFacebook"), $ = E("IconFax"), B = E("IconForm"), D = E("IconGeneralLink"), F = E("IconGift"), K = E("IconGlobe"), X = E("IconGoogle"), q = E("IconGooglePlus"), Y = E("IconHeadphones"), f1 = E("IconHeart"), y1 = E("IconHome"), Q = E("IconImages"), U = E("IconImageGallery"),
|
|
63427
|
+
const r = E("IconAmazon"), a = E("IconAppstore"), l = E("IconBehance"), d = E("IconBell"), c = E("IconCalendar"), u = E("IconCoffee"), p = E("IconComment"), g = E("IconController"), m = E("IconDesktop"), y = E("IconDiscord"), v = E("IconDonate"), b = E("IconDribbble"), S = E("IconEbay"), M = E("IconEmail"), _ = E("IconEnvelope"), V = E("IconEtsy"), H = E("IconFacebook"), $ = E("IconFax"), B = E("IconForm"), D = E("IconGeneralLink"), F = E("IconGift"), K = E("IconGlobe"), X = E("IconGoogle"), q = E("IconGooglePlus"), Y = E("IconHeadphones"), f1 = E("IconHeart"), y1 = E("IconHome"), Q = E("IconImages"), U = E("IconImageGallery"), u1 = E("IconInfo"), G = E("IconInstagram"), p1 = E("IconLinkedIn"), Q1 = E("IconMap"), x1 = E("IconMobile"), L1 = E("IconMusic"), T1 = E("IconPhone"), B1 = E("IconPin"), o2 = E("IconPinterest"), M2 = E("IconPlaystore"), x2 = E("IconPodcast"), t3 = E("IconQuestion"), D2 = E("IconRequestPayment"), j2 = E("IconShape"), m3 = E("IconShipping"), s3 = E("IconShoppingBag"), K3 = E("IconShoppingCart"), W = E("IconSlack"), J = E("IconSnapchat"), g1 = E("IconSoundcloud"), z1 = E("IconSpotify"), O1 = E("IconStar"), q1 = E("IconStore"), A1 = E("IconThumbsUp"), a1 = E("IconTikTok"), K1 = E("IconTumblr"), d2 = E("IconTwitch"), p2 = E("IconTwitter"), n3 = E("IconX"), U2 = E("IconThreads"), I3 = E("IconUser"), S1 = E("IconUtensils"), Z1 = E("IconVideo"), u2 = E("IconWhatsapp"), I2 = E("IconWineGlass"), _1 = E("IconYoutube"), n2 = E("IconReddit"), M1 = E("IconTelegram"), V1 = E("IconSubstack"), a2 = E("IconPatreon"), J2 = E("IconMessenger"), i2 = E("IconAppleMusic"), ae = E("IconEmailAt"), fe = E("IconNumeric"), C4 = E("IconGoogleAdsense"), k5 = E("IconGoogleAnalytics");
|
|
63425
63428
|
return C(), f("div", null, [
|
|
63426
63429
|
(C(), f("svg", {
|
|
63427
63430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -63462,9 +63465,9 @@ function sF1(e, t, n, i, o, s) {
|
|
|
63462
63465
|
e.name === "home" ? (C(), O(y1, { key: 26 })) : k("", !0),
|
|
63463
63466
|
e.name === "images" ? (C(), O(Q, { key: 27 })) : k("", !0),
|
|
63464
63467
|
e.name === "image-gallery" ? (C(), O(U, { key: 28 })) : k("", !0),
|
|
63465
|
-
e.name === "info" ? (C(), O(
|
|
63466
|
-
e.name === "instagram" ? (C(), O(
|
|
63467
|
-
e.name === "linkedin" ? (C(), O(
|
|
63468
|
+
e.name === "info" ? (C(), O(u1, { key: 29 })) : k("", !0),
|
|
63469
|
+
e.name === "instagram" ? (C(), O(G, { key: 30 })) : k("", !0),
|
|
63470
|
+
e.name === "linkedin" ? (C(), O(p1, { key: 31 })) : k("", !0),
|
|
63468
63471
|
e.name === "map" ? (C(), O(Q1, { key: 32 })) : k("", !0),
|
|
63469
63472
|
e.name === "mobile" ? (C(), O(x1, { key: 33 })) : k("", !0),
|
|
63470
63473
|
e.name === "music" ? (C(), O(L1, { key: 34 })) : k("", !0),
|
|
@@ -63479,7 +63482,7 @@ function sF1(e, t, n, i, o, s) {
|
|
|
63479
63482
|
e.name === "shipping" ? (C(), O(m3, { key: 43 })) : k("", !0),
|
|
63480
63483
|
e.name === "shipping-bag" ? (C(), O(s3, { key: 44 })) : k("", !0),
|
|
63481
63484
|
e.name === "shopping-card" ? (C(), O(K3, { key: 45 })) : k("", !0),
|
|
63482
|
-
e.name === "slack" ? (C(), O(
|
|
63485
|
+
e.name === "slack" ? (C(), O(W, { key: 46 })) : k("", !0),
|
|
63483
63486
|
e.name === "snapchat" ? (C(), O(J, { key: 47 })) : k("", !0),
|
|
63484
63487
|
e.name === "soundcloud" ? (C(), O(g1, { key: 48 })) : k("", !0),
|
|
63485
63488
|
e.name === "spotify" ? (C(), O(z1, { key: 49 })) : k("", !0),
|
|
@@ -66965,22 +66968,22 @@ const Sz1 = /* @__PURE__ */ w(wz1, [["render", vz1]]), _z1 = {
|
|
|
66965
66968
|
u.value = L1.create("cardNumber", {
|
|
66966
66969
|
style: mC,
|
|
66967
66970
|
placeholder: "Credit Card Number"
|
|
66968
|
-
}), o.value && u.value.mount(o.value), u.value.addEventListener("change",
|
|
66971
|
+
}), o.value && u.value.mount(o.value), u.value.addEventListener("change", p1), d.value = L1.create("cardExpiry", {
|
|
66969
66972
|
style: mC,
|
|
66970
66973
|
placeholder: "Expiry"
|
|
66971
|
-
}), s.value && d.value.mount(s.value), d.value.addEventListener("change",
|
|
66974
|
+
}), s.value && d.value.mount(s.value), d.value.addEventListener("change", p1), a.value = L1.create("cardCvc", {
|
|
66972
66975
|
style: mC,
|
|
66973
66976
|
placeholder: "CVV"
|
|
66974
|
-
}), r.value && a.value.mount(r.value), a.value.addEventListener("change",
|
|
66977
|
+
}), r.value && a.value.mount(r.value), a.value.addEventListener("change", p1), M.value = !0;
|
|
66975
66978
|
} catch (L1) {
|
|
66976
66979
|
console.error(L1);
|
|
66977
66980
|
}
|
|
66978
66981
|
B7("initStripeElements: end");
|
|
66979
|
-
},
|
|
66982
|
+
}, u1 = () => {
|
|
66980
66983
|
i("go-to-payment-option-selection");
|
|
66981
|
-
},
|
|
66984
|
+
}, G = () => {
|
|
66982
66985
|
x1();
|
|
66983
|
-
},
|
|
66986
|
+
}, p1 = (L1) => {
|
|
66984
66987
|
if (L1)
|
|
66985
66988
|
switch (L1.elementType) {
|
|
66986
66989
|
case "cardCvc":
|
|
@@ -67049,7 +67052,7 @@ const Sz1 = /* @__PURE__ */ w(wz1, [["render", vz1]]), _z1 = {
|
|
|
67049
67052
|
h("div", Rz1, [
|
|
67050
67053
|
h("button", {
|
|
67051
67054
|
class: "tw-bg-transparent tw-border-none tw-absolute tw-left-0 tw-top-1/2 -tw-translate-y-1/2 hover:tw-cursor-pointer",
|
|
67052
|
-
onClick:
|
|
67055
|
+
onClick: u1
|
|
67053
67056
|
}, [
|
|
67054
67057
|
L(I(s2), {
|
|
67055
67058
|
name: "chevron-left",
|
|
@@ -67079,8 +67082,8 @@ const Sz1 = /* @__PURE__ */ w(wz1, [["render", vz1]]), _z1 = {
|
|
|
67079
67082
|
class: "tw-mt-3 tw-mb-2",
|
|
67080
67083
|
placeholder: I(v6)("emailAddressPlaceholder"),
|
|
67081
67084
|
error: !!m.value,
|
|
67082
|
-
onBlur:
|
|
67083
|
-
onInput:
|
|
67085
|
+
onBlur: G,
|
|
67086
|
+
onInput: G
|
|
67084
67087
|
}, null, 8, ["modelValue", "placeholder", "error"]),
|
|
67085
67088
|
m.value ? (C(), f("p", qz1, P(m.value.message), 1)) : k("", !0),
|
|
67086
67089
|
h("p", Gz1, P(I(v6)("cardNumber")), 1),
|
|
@@ -73355,16 +73358,16 @@ function kY1() {
|
|
|
73355
73358
|
}
|
|
73356
73359
|
return B.call(Z1, S1) ? Z1[S1] : void 0;
|
|
73357
73360
|
}
|
|
73358
|
-
function
|
|
73361
|
+
function u1(S1) {
|
|
73359
73362
|
var Z1 = this.__data__;
|
|
73360
73363
|
return Y ? Z1[S1] !== void 0 : B.call(Z1, S1);
|
|
73361
73364
|
}
|
|
73362
|
-
function
|
|
73365
|
+
function G(S1, Z1) {
|
|
73363
73366
|
var u2 = this.__data__;
|
|
73364
73367
|
return u2[S1] = Y && Z1 === void 0 ? t : Z1, this;
|
|
73365
73368
|
}
|
|
73366
|
-
f1.prototype.clear = y1, f1.prototype.delete = Q, f1.prototype.get = U, f1.prototype.has =
|
|
73367
|
-
function
|
|
73369
|
+
f1.prototype.clear = y1, f1.prototype.delete = Q, f1.prototype.get = U, f1.prototype.has = u1, f1.prototype.set = G;
|
|
73370
|
+
function p1(S1) {
|
|
73368
73371
|
var Z1 = -1, u2 = S1 ? S1.length : 0;
|
|
73369
73372
|
for (this.clear(); ++Z1 < u2; ) {
|
|
73370
73373
|
var I2 = S1[Z1];
|
|
@@ -73375,24 +73378,24 @@ function kY1() {
|
|
|
73375
73378
|
this.__data__ = [];
|
|
73376
73379
|
}
|
|
73377
73380
|
function x1(S1) {
|
|
73378
|
-
var Z1 = this.__data__, u2 =
|
|
73381
|
+
var Z1 = this.__data__, u2 = W(Z1, S1);
|
|
73379
73382
|
if (u2 < 0)
|
|
73380
73383
|
return !1;
|
|
73381
73384
|
var I2 = Z1.length - 1;
|
|
73382
73385
|
return u2 == I2 ? Z1.pop() : K.call(Z1, u2, 1), !0;
|
|
73383
73386
|
}
|
|
73384
73387
|
function L1(S1) {
|
|
73385
|
-
var Z1 = this.__data__, u2 =
|
|
73388
|
+
var Z1 = this.__data__, u2 = W(Z1, S1);
|
|
73386
73389
|
return u2 < 0 ? void 0 : Z1[u2][1];
|
|
73387
73390
|
}
|
|
73388
73391
|
function T1(S1) {
|
|
73389
|
-
return
|
|
73392
|
+
return W(this.__data__, S1) > -1;
|
|
73390
73393
|
}
|
|
73391
73394
|
function B1(S1, Z1) {
|
|
73392
|
-
var u2 = this.__data__, I2 =
|
|
73395
|
+
var u2 = this.__data__, I2 = W(u2, S1);
|
|
73393
73396
|
return I2 < 0 ? u2.push([S1, Z1]) : u2[I2][1] = Z1, this;
|
|
73394
73397
|
}
|
|
73395
|
-
|
|
73398
|
+
p1.prototype.clear = Q1, p1.prototype.delete = x1, p1.prototype.get = L1, p1.prototype.has = T1, p1.prototype.set = B1;
|
|
73396
73399
|
function o2(S1) {
|
|
73397
73400
|
var Z1 = -1, u2 = S1 ? S1.length : 0;
|
|
73398
73401
|
for (this.clear(); ++Z1 < u2; ) {
|
|
@@ -73403,7 +73406,7 @@ function kY1() {
|
|
|
73403
73406
|
function M2() {
|
|
73404
73407
|
this.__data__ = {
|
|
73405
73408
|
hash: new f1(),
|
|
73406
|
-
map: new (X ||
|
|
73409
|
+
map: new (X || p1)(),
|
|
73407
73410
|
string: new f1()
|
|
73408
73411
|
};
|
|
73409
73412
|
}
|
|
@@ -73432,7 +73435,7 @@ function kY1() {
|
|
|
73432
73435
|
return this.__data__.has(S1);
|
|
73433
73436
|
}
|
|
73434
73437
|
m3.prototype.add = m3.prototype.push = s3, m3.prototype.has = K3;
|
|
73435
|
-
function
|
|
73438
|
+
function W(S1, Z1) {
|
|
73436
73439
|
for (var u2 = S1.length; u2--; )
|
|
73437
73440
|
if (p2(S1[u2][0], Z1))
|
|
73438
73441
|
return u2;
|
|
@@ -76622,10 +76625,10 @@ const _3 = ne("uiContentSettings", {
|
|
|
76622
76625
|
}), e.isModifiedAfterTemplateApplied !== void 0 && (this.isModifiedAfterTemplateApplied = e.isModifiedAfterTemplateApplied), e.brandPageType && this.setBrandPageType({ brandPageType: e.brandPageType }), this.faviconUrl = e.faviconUrl, this.ogImageUrl = e.ogImageUrl, this.measurementID = e.measurementID, this.adsenseID = e.adsenseID, this.ogTitle = e.ogTitle, this.ogDescription = e.ogDescription, this.cookieOptions = e.cookieOptions, this.saveContactSettings = e.saveContactSettings, this._syncLogoSettingsFromSnapshot(e), this._fallbackSidebarIfSelectedContentMissing(e);
|
|
76623
76626
|
},
|
|
76624
76627
|
_syncLogoSettingsFromSnapshot(e) {
|
|
76625
|
-
var
|
|
76626
|
-
const t = De(), n = K4(), i = S4(), o = e.brandPageType === d1.default ? (
|
|
76627
|
-
(
|
|
76628
|
-
)) == null ? void 0 :
|
|
76628
|
+
var a, l, d, c, u;
|
|
76629
|
+
const t = De(), n = K4(), i = S4(), o = e.brandPageType === d1.default ? (c = (d = (l = (a = e.pages) == null ? void 0 : a[0]) == null ? void 0 : l.contents) == null ? void 0 : d.find(
|
|
76630
|
+
(p) => p.type === "logo"
|
|
76631
|
+
)) == null ? void 0 : c.logoImage : (u = e.pageHeaderDesktop) == null ? void 0 : u.logoImage;
|
|
76629
76632
|
if (!o) return;
|
|
76630
76633
|
t.setState({
|
|
76631
76634
|
newState: { selectedLogoImage: o }
|
|
@@ -76633,7 +76636,12 @@ const _3 = ne("uiContentSettings", {
|
|
|
76633
76636
|
const s = i.getLogoDraftAssetByToken(
|
|
76634
76637
|
o.logoDraftToken
|
|
76635
76638
|
);
|
|
76636
|
-
s && n.setEnableEditMode(!s.isByo)
|
|
76639
|
+
s && n.setEnableEditMode(!s.isByo), n.logoDraftToken !== o.logoDraftToken && o.logoDraftToken && (n.setLogoDraftToken(o.logoDraftToken), n.updateEditableLogoImageUrlAsync().catch((p) => {
|
|
76640
|
+
console.error(
|
|
76641
|
+
"history-store: failed to repaint logo on restore",
|
|
76642
|
+
p
|
|
76643
|
+
);
|
|
76644
|
+
}));
|
|
76637
76645
|
},
|
|
76638
76646
|
_fallbackSidebarIfSelectedContentMissing(e) {
|
|
76639
76647
|
var s;
|
|
@@ -76790,7 +76798,7 @@ const _3 = ne("uiContentSettings", {
|
|
|
76790
76798
|
makerFonts: g.makerFonts
|
|
76791
76799
|
}
|
|
76792
76800
|
}), g.designDraftToken || await this.recalculateLogoSizes();
|
|
76793
|
-
const
|
|
76801
|
+
const G = {
|
|
76794
76802
|
newState: {
|
|
76795
76803
|
tab: "color",
|
|
76796
76804
|
backgroundStyles: new vH(
|
|
@@ -76801,11 +76809,11 @@ const _3 = ne("uiContentSettings", {
|
|
|
76801
76809
|
backgroundMode: me.edit
|
|
76802
76810
|
}
|
|
76803
76811
|
};
|
|
76804
|
-
M.setState(
|
|
76805
|
-
const { buttonStyles:
|
|
76812
|
+
M.setState(G);
|
|
76813
|
+
const { buttonStyles: p1, logoStyles: Q1, textStyles: x1, galleryStyles: L1 } = Y.styles;
|
|
76806
76814
|
_.setState({
|
|
76807
76815
|
newState: {
|
|
76808
|
-
buttonStyles:
|
|
76816
|
+
buttonStyles: p1,
|
|
76809
76817
|
logoStyles: Q1,
|
|
76810
76818
|
textStyles: x1,
|
|
76811
76819
|
galleryStyles: L1
|
|
@@ -85483,7 +85491,7 @@ const T32 = { key: 2 }, V32 = { class: "tw-grid tw-gap-4 tw-grid-cols-2" }, H32
|
|
|
85483
85491
|
aspectRatio: T1
|
|
85484
85492
|
});
|
|
85485
85493
|
}
|
|
85486
|
-
async function
|
|
85494
|
+
async function u1(L1) {
|
|
85487
85495
|
var T1;
|
|
85488
85496
|
if (L1.numberOfVariants > 1 && L1.shapeCollectionToken && !l.value)
|
|
85489
85497
|
try {
|
|
@@ -85497,7 +85505,7 @@ const T32 = { key: 2 }, V32 = { class: "tw-grid tw-gap-4 tw-grid-cols-2" }, H32
|
|
|
85497
85505
|
else
|
|
85498
85506
|
U(L1.url, L1.aspectRatio);
|
|
85499
85507
|
}
|
|
85500
|
-
async function
|
|
85508
|
+
async function G() {
|
|
85501
85509
|
if (y.value)
|
|
85502
85510
|
try {
|
|
85503
85511
|
m.value = !0;
|
|
@@ -85524,8 +85532,8 @@ const T32 = { key: 2 }, V32 = { class: "tw-grid tw-gap-4 tw-grid-cols-2" }, H32
|
|
|
85524
85532
|
m.value = !1;
|
|
85525
85533
|
}
|
|
85526
85534
|
}
|
|
85527
|
-
async function
|
|
85528
|
-
M.value = 1, await
|
|
85535
|
+
async function p1() {
|
|
85536
|
+
M.value = 1, await G();
|
|
85529
85537
|
}
|
|
85530
85538
|
function Q1() {
|
|
85531
85539
|
M.value += 1, Y();
|
|
@@ -85533,7 +85541,7 @@ const T32 = { key: 2 }, V32 = { class: "tw-grid tw-gap-4 tw-grid-cols-2" }, H32
|
|
|
85533
85541
|
function x1() {
|
|
85534
85542
|
b.value = "", S.value = "", $.value = {}, Y();
|
|
85535
85543
|
}
|
|
85536
|
-
return K = he(
|
|
85544
|
+
return K = he(p1, 1500), (L1, T1) => (C(), f("div", null, [
|
|
85537
85545
|
B.value ? k("", !0) : (C(), O(I(W2), {
|
|
85538
85546
|
key: 0,
|
|
85539
85547
|
modelValue: b.value,
|
|
@@ -85603,7 +85611,7 @@ const T32 = { key: 2 }, V32 = { class: "tw-grid tw-gap-4 tw-grid-cols-2" }, H32
|
|
|
85603
85611
|
key: `${o2}-${B1.id}`,
|
|
85604
85612
|
class: "card tw-border tw-border-grayscale-500 dcom-rounded tw-relative",
|
|
85605
85613
|
"data-test-shape-library-item": `${o2}-${B1.url}`,
|
|
85606
|
-
onClick: (M2) =>
|
|
85614
|
+
onClick: (M2) => u1(B1)
|
|
85607
85615
|
}, [
|
|
85608
85616
|
B1.numberOfVariants > 1 && !l.value ? (C(), f("div", R32, [
|
|
85609
85617
|
h("span", Z32, P(B1.numberOfVariants), 1)
|
|
@@ -87309,7 +87317,7 @@ const F42 = { "data-component": "video-library" }, U42 = {
|
|
|
87309
87317
|
h("button", {
|
|
87310
87318
|
class: "c-media-btn tw-p-0 tw-border-none tw-cursor-pointer tw-relative",
|
|
87311
87319
|
"data-test-video-library-category": Q.categoryName,
|
|
87312
|
-
onClick: (
|
|
87320
|
+
onClick: (u1) => M(
|
|
87313
87321
|
I(E8)(`categories.${Q.categoryName}`)
|
|
87314
87322
|
)
|
|
87315
87323
|
}, [
|
|
@@ -87335,7 +87343,7 @@ const F42 = { "data-component": "video-library" }, U42 = {
|
|
|
87335
87343
|
h("div", {
|
|
87336
87344
|
class: "c-media-btn__overlay c-media-btn__overlay--video",
|
|
87337
87345
|
"data-test-video-library-item": `${U}-${Q.id}`,
|
|
87338
|
-
onClick: (
|
|
87346
|
+
onClick: (u1) => F(Q)
|
|
87339
87347
|
}, null, 8, j42),
|
|
87340
87348
|
Q.isLoading ? (C(), f("div", K42, [
|
|
87341
87349
|
L(I(j3))
|
|
@@ -87354,7 +87362,7 @@ const F42 = { "data-component": "video-library" }, U42 = {
|
|
|
87354
87362
|
class: "c-media-btn__img hover:!tw-shadow-[0_0_0_3px] hover:!tw-shadow-info-500",
|
|
87355
87363
|
onMouseenter: B,
|
|
87356
87364
|
onMouseleave: D,
|
|
87357
|
-
onClick: (
|
|
87365
|
+
onClick: (u1) => F(Q)
|
|
87358
87366
|
}, P(I(E8)("emptyState")), 41, X42))
|
|
87359
87367
|
]))), 128))
|
|
87360
87368
|
])) : k("", !0),
|
|
@@ -94832,7 +94840,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
94832
94840
|
}), S = s1(!1), M = s1(!1), _ = s1(!1), V = () => {
|
|
94833
94841
|
var M1, V1;
|
|
94834
94842
|
i.textItemIndex !== void 0 && $.value && (y1.value = ((V1 = (M1 = $.value) == null ? void 0 : M1.style) == null ? void 0 : V1.color) ?? ""), M.value = J5(Q.value), _.value = J5(
|
|
94835
|
-
|
|
94843
|
+
u1.value
|
|
94836
94844
|
);
|
|
94837
94845
|
}, H = F3([
|
|
94838
94846
|
{
|
|
@@ -94890,7 +94898,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
94890
94898
|
y.value && (y1.value = M1 ?? "", M.value = J5(M1 ?? ""));
|
|
94891
94899
|
}
|
|
94892
94900
|
);
|
|
94893
|
-
const U = s1(i.styles.backgroundColor ?? ""),
|
|
94901
|
+
const U = s1(i.styles.backgroundColor ?? ""), u1 = T(
|
|
94894
94902
|
() => U.value
|
|
94895
94903
|
);
|
|
94896
94904
|
R2(
|
|
@@ -94921,7 +94929,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
94921
94929
|
if (M1) {
|
|
94922
94930
|
J();
|
|
94923
94931
|
const V1 = s.textStyles.textStyleOptions[M1 ?? "titles"].style;
|
|
94924
|
-
|
|
94932
|
+
W(V1), y.value && (V1.color && (V1.color.includes(C2.LogoTextColor) || V1.color.includes(C2.LogoTextMultiColor)) ? (i.name === "textItems" ? r.updateTextItemTextStyleTypeWithStyles({
|
|
94925
94933
|
id: i.rawId,
|
|
94926
94934
|
name: i.name,
|
|
94927
94935
|
value: {
|
|
@@ -94953,7 +94961,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
94953
94961
|
}
|
|
94954
94962
|
})));
|
|
94955
94963
|
} else
|
|
94956
|
-
$.value &&
|
|
94964
|
+
$.value && G({
|
|
94957
94965
|
label: F9().none
|
|
94958
94966
|
});
|
|
94959
94967
|
}
|
|
@@ -94963,7 +94971,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
94963
94971
|
M1 <= 1 && F.value === g4.page && (F.value = g4.url);
|
|
94964
94972
|
}
|
|
94965
94973
|
);
|
|
94966
|
-
const
|
|
94974
|
+
const G = (M1) => {
|
|
94967
94975
|
var V1;
|
|
94968
94976
|
H.forEach((a2) => {
|
|
94969
94977
|
if (a2.value === M1.value) {
|
|
@@ -95007,7 +95015,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
95007
95015
|
} else
|
|
95008
95016
|
a2.isSelected = !1;
|
|
95009
95017
|
}), (V1 = l.value) == null || V1.hideMenu();
|
|
95010
|
-
},
|
|
95018
|
+
}, p1 = (M1) => {
|
|
95011
95019
|
var a2;
|
|
95012
95020
|
M1.target.closest(".toolbar-editor-button") || (a2 = l.value) == null || a2.hideMenu();
|
|
95013
95021
|
}, Q1 = (M1) => {
|
|
@@ -95038,7 +95046,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
95038
95046
|
letterSpacingValue: m3,
|
|
95039
95047
|
lineHeightValue: s3,
|
|
95040
95048
|
setInitialStyleSettings: K3,
|
|
95041
|
-
copyGlobalStyleSettings:
|
|
95049
|
+
copyGlobalStyleSettings: W,
|
|
95042
95050
|
unsetAllMarks: J,
|
|
95043
95051
|
handleHyperlink: g1,
|
|
95044
95052
|
hyperlinkValue: z1,
|
|
@@ -95053,7 +95061,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
95053
95061
|
b,
|
|
95054
95062
|
a,
|
|
95055
95063
|
$,
|
|
95056
|
-
|
|
95064
|
+
G,
|
|
95057
95065
|
S,
|
|
95058
95066
|
H,
|
|
95059
95067
|
o2,
|
|
@@ -95125,7 +95133,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
95125
95133
|
id: `${M1.rawId}-backgroundStyle${M1.textItemIndex ?? ""}`,
|
|
95126
95134
|
"enable-color-match": !0,
|
|
95127
95135
|
name: M1.name,
|
|
95128
|
-
value:
|
|
95136
|
+
value: u1.value,
|
|
95129
95137
|
options: I(se).convert(i.styles),
|
|
95130
95138
|
"is-admin": y.value,
|
|
95131
95139
|
"show-color-pallet": !1,
|
|
@@ -95154,7 +95162,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
95154
95162
|
(C(!0), f(H1, null, R1(H, (i2) => (C(), f("div", {
|
|
95155
95163
|
key: i2.value,
|
|
95156
95164
|
class: "tw-flex tw-items-center tw-px-2 tw-py-2 drop-down-item tw-cursor-pointer",
|
|
95157
|
-
onClick: (ae) =>
|
|
95165
|
+
onClick: (ae) => G(i2)
|
|
95158
95166
|
}, [
|
|
95159
95167
|
h("span", ku2, [
|
|
95160
95168
|
F2(P(i2.label) + " ", 1),
|
|
@@ -95169,7 +95177,7 @@ const ac = /* @__PURE__ */ w(Cu2, [["render", hu2]]), fu2 = {
|
|
|
95169
95177
|
]),
|
|
95170
95178
|
_: 1
|
|
95171
95179
|
}, 8, ["title"])), [
|
|
95172
|
-
[a2, (i2) =>
|
|
95180
|
+
[a2, (i2) => p1(i2)]
|
|
95173
95181
|
]),
|
|
95174
95182
|
o3((C(), O(I(b5), {
|
|
95175
95183
|
ref_key: "fontStyleDropdownRef",
|
|
@@ -97706,7 +97714,7 @@ const Io = /* @__PURE__ */ w(Fh2, [["render", Jh2]]), Qh2 = { "data-component":
|
|
|
97706
97714
|
if (n.maxLength && n.maxLength > 2 && n.content.type === ro["images-section"]) {
|
|
97707
97715
|
const U = n.content;
|
|
97708
97716
|
if ([Y4, _5].some(
|
|
97709
|
-
(
|
|
97717
|
+
(u1) => U.displayStyle === u1
|
|
97710
97718
|
))
|
|
97711
97719
|
return b(ah), n.value.length > 3 ? n.value.slice(0, ah) : n.value;
|
|
97712
97720
|
}
|
|
@@ -97714,13 +97722,13 @@ const Io = /* @__PURE__ */ w(Fh2, [["render", Jh2]]), Qh2 = { "data-component":
|
|
|
97714
97722
|
}), v = (U) => U.mediaType === "shape", b = (U) => {
|
|
97715
97723
|
p.value = U;
|
|
97716
97724
|
}, S = (U) => {
|
|
97717
|
-
s.value = s.value.filter((
|
|
97718
|
-
const
|
|
97725
|
+
s.value = s.value.filter((G, p1) => p1 !== U), o.value && o.value();
|
|
97726
|
+
const u1 = {
|
|
97719
97727
|
id: n.id,
|
|
97720
97728
|
name: n.name,
|
|
97721
97729
|
value: te(s.value)
|
|
97722
97730
|
};
|
|
97723
|
-
i("update:modelValue",
|
|
97731
|
+
i("update:modelValue", u1);
|
|
97724
97732
|
}, M = () => {
|
|
97725
97733
|
_();
|
|
97726
97734
|
}, _ = () => {
|
|
@@ -97750,40 +97758,40 @@ const Io = /* @__PURE__ */ w(Fh2, [["render", Jh2]]), Qh2 = { "data-component":
|
|
|
97750
97758
|
i("update:modelValue", U);
|
|
97751
97759
|
}, H = (U) => {
|
|
97752
97760
|
s.value = U, o.value && o.value();
|
|
97753
|
-
}, $ = (U,
|
|
97761
|
+
}, $ = (U, u1) => {
|
|
97754
97762
|
i("on-intent-image-replace", {
|
|
97755
97763
|
id: n.id,
|
|
97756
97764
|
name: n.name,
|
|
97757
97765
|
index: U,
|
|
97758
|
-
value:
|
|
97766
|
+
value: u1
|
|
97759
97767
|
});
|
|
97760
97768
|
}, B = (U) => {
|
|
97761
97769
|
s.value[U].imageUrl = "", s.value[U].colorReplacements = [], V();
|
|
97762
|
-
}, D = (U,
|
|
97763
|
-
s.value[
|
|
97764
|
-
}, F = (U,
|
|
97765
|
-
U.includes("https") || (s.value[
|
|
97766
|
-
}, K = (U) => d.value[U] !== void 0 ? d.value[U] : !0, X = (U,
|
|
97767
|
-
s.value[
|
|
97768
|
-
}, q = (U,
|
|
97769
|
-
s.value[
|
|
97770
|
-
}, Y = (U,
|
|
97771
|
-
const
|
|
97772
|
-
U.buttonText === !1 && typeof
|
|
97773
|
-
}, f1 = (U,
|
|
97774
|
-
const
|
|
97775
|
-
U ? m.value[
|
|
97770
|
+
}, D = (U, u1) => {
|
|
97771
|
+
s.value[u1].colorReplacements = U.value, V();
|
|
97772
|
+
}, F = (U, u1) => {
|
|
97773
|
+
U.includes("https") || (s.value[u1].imageLink = `https://${U}`), d.value[u1] = N4(U);
|
|
97774
|
+
}, K = (U) => d.value[U] !== void 0 ? d.value[U] : !0, X = (U, u1) => {
|
|
97775
|
+
s.value[u1].paragraph = U.value;
|
|
97776
|
+
}, q = (U, u1) => {
|
|
97777
|
+
s.value[u1][U.name] = U.value, V();
|
|
97778
|
+
}, Y = (U, u1) => {
|
|
97779
|
+
const G = s.value[u1];
|
|
97780
|
+
U.buttonText === !1 && typeof G.buttonText == "string" && (g.value[u1] = G.buttonText), U.buttonText === "" && G.buttonText === !1 && g.value[u1] && (U.buttonText = g.value[u1]), U.buttonTextStyle && delete U.buttonTextStyle, Object.assign(G, U), V();
|
|
97781
|
+
}, f1 = (U, u1) => {
|
|
97782
|
+
const G = s.value[u1];
|
|
97783
|
+
U ? m.value[u1] ? s.value[u1].imageLink = m.value[u1] : G.imageLink === !1 && (s.value[u1].imageLink = "") : (typeof G.imageLink == "string" && G.imageLink.trim() !== "" && (m.value[u1] = G.imageLink), s.value[u1].imageLink = !1), V();
|
|
97776
97784
|
};
|
|
97777
97785
|
let y1 = !1;
|
|
97778
|
-
const Q = (U) => te(U).map((
|
|
97779
|
-
...
|
|
97786
|
+
const Q = (U) => te(U).map((u1) => ({
|
|
97787
|
+
...u1,
|
|
97780
97788
|
mediaType: c.value,
|
|
97781
|
-
imageLink:
|
|
97782
|
-
buttonText:
|
|
97783
|
-
buttonLinkType:
|
|
97784
|
-
url:
|
|
97785
|
-
email:
|
|
97786
|
-
tel:
|
|
97789
|
+
imageLink: u1.imageLink !== void 0 ? u1.imageLink : !1,
|
|
97790
|
+
buttonText: u1.buttonText !== void 0 ? u1.buttonText : !1,
|
|
97791
|
+
buttonLinkType: u1.buttonLinkType || "url",
|
|
97792
|
+
url: u1.url || "",
|
|
97793
|
+
email: u1.email || "",
|
|
97794
|
+
tel: u1.tel || ""
|
|
97787
97795
|
}));
|
|
97788
97796
|
return v3(() => {
|
|
97789
97797
|
c.value = n.settings.replaceImageSettings.mediaType, y1 = !0, s.value = Q(n.value), o.value || (o.value = he(V, Bf2));
|
|
@@ -97802,7 +97810,7 @@ const Io = /* @__PURE__ */ w(Fh2, [["render", Jh2]]), Qh2 = { "data-component":
|
|
|
97802
97810
|
o.value && o.value();
|
|
97803
97811
|
},
|
|
97804
97812
|
{ deep: !0 }
|
|
97805
|
-
), (U,
|
|
97813
|
+
), (U, u1) => (C(), f("div", gf2, [
|
|
97806
97814
|
L(x0, {
|
|
97807
97815
|
items: s.value,
|
|
97808
97816
|
"can-collapse": !0,
|
|
@@ -97810,79 +97818,79 @@ const Io = /* @__PURE__ */ w(Fh2, [["render", Jh2]]), Qh2 = { "data-component":
|
|
|
97810
97818
|
onItemsChange: H,
|
|
97811
97819
|
onItemsDelete: S
|
|
97812
97820
|
}, {
|
|
97813
|
-
preview: i1((
|
|
97821
|
+
preview: i1((G) => [
|
|
97814
97822
|
h("div", mf2, [
|
|
97815
|
-
|
|
97823
|
+
G.item.imageUrl ? (C(), f("img", {
|
|
97816
97824
|
key: 0,
|
|
97817
97825
|
class: "tw-w-full tw-h-full tw-rounded tw-object-cover",
|
|
97818
|
-
src:
|
|
97826
|
+
src: G.item.imageUrl
|
|
97819
97827
|
}, null, 8, yf2)) : (C(), f("div", wf2, [
|
|
97820
97828
|
L(I(s2), {
|
|
97821
97829
|
class: "tw-pt-1",
|
|
97822
|
-
name: v(
|
|
97830
|
+
name: v(G.item) ? "shape" : "images",
|
|
97823
97831
|
size: "sm"
|
|
97824
97832
|
}, null, 8, ["name"])
|
|
97825
97833
|
]))
|
|
97826
97834
|
]),
|
|
97827
|
-
h("div", bf2, P(
|
|
97835
|
+
h("div", bf2, P(G.item.title), 1)
|
|
97828
97836
|
]),
|
|
97829
|
-
form: i1((
|
|
97830
|
-
h("h4", vf2, P(v(
|
|
97837
|
+
form: i1((G) => [
|
|
97838
|
+
h("h4", vf2, P(v(G.item) ? I(Je)("shape") : I(Je)("image")), 1),
|
|
97831
97839
|
L(S7, {
|
|
97832
|
-
id: `${U.id}-${
|
|
97833
|
-
"media-type":
|
|
97840
|
+
id: `${U.id}-${G.index}`,
|
|
97841
|
+
"media-type": G.item.mediaType,
|
|
97834
97842
|
name: U.name,
|
|
97835
|
-
value:
|
|
97836
|
-
onOnIntentImageReplace: (
|
|
97837
|
-
"onUpdate:modelValue": (
|
|
97843
|
+
value: G.item.imageUrl,
|
|
97844
|
+
onOnIntentImageReplace: (p1) => $(G.index, G.item.imageUrl),
|
|
97845
|
+
"onUpdate:modelValue": (p1) => B(G.index)
|
|
97838
97846
|
}, null, 8, ["id", "media-type", "name", "value", "onOnIntentImageReplace", "onUpdate:modelValue"]),
|
|
97839
97847
|
U.isAdmin && U.content.personalisationRole ? (C(), O(W7, {
|
|
97840
97848
|
key: 0,
|
|
97841
97849
|
id: U.id,
|
|
97842
97850
|
name: "imageUrlOverride",
|
|
97843
97851
|
content: U.content,
|
|
97844
|
-
object: U.content[U.name][
|
|
97852
|
+
object: U.content[U.name][G.index],
|
|
97845
97853
|
"personalisation-type": "text-media-items",
|
|
97846
|
-
"onUpdate:modelValue": (
|
|
97854
|
+
"onUpdate:modelValue": (p1) => q(p1, G.index)
|
|
97847
97855
|
}, null, 8, ["id", "content", "object", "onUpdate:modelValue"])) : k("", !0),
|
|
97848
|
-
|
|
97856
|
+
G.item.colorReplacements && G.item.colorReplacements.length > 1 ? (C(), f("h4", Sf2, P(I(Je)("shapeColors")), 1)) : k("", !0),
|
|
97849
97857
|
L(Ho, {
|
|
97850
97858
|
id: U.id,
|
|
97851
97859
|
name: U.name,
|
|
97852
|
-
label:
|
|
97853
|
-
value:
|
|
97860
|
+
label: G.item.colorReplacements && G.item.colorReplacements.length === 1 ? I(Je)("shapeColor") : "",
|
|
97861
|
+
value: G.item.colorReplacements,
|
|
97854
97862
|
"is-admin": U.isAdmin,
|
|
97855
97863
|
"logo-theme": U.logoTheme,
|
|
97856
|
-
"toggle-unique-id":
|
|
97857
|
-
"onUpdate:modelValue": (
|
|
97864
|
+
"toggle-unique-id": G.index.toString(),
|
|
97865
|
+
"onUpdate:modelValue": (p1) => D(p1, G.index)
|
|
97858
97866
|
}, null, 8, ["id", "name", "label", "value", "is-admin", "logo-theme", "toggle-unique-id", "onUpdate:modelValue"]),
|
|
97859
97867
|
h("h4", _f2, P(I(Je)("title")), 1),
|
|
97860
97868
|
L(I(W2), {
|
|
97861
|
-
modelValue: s.value[
|
|
97862
|
-
"onUpdate:modelValue": (
|
|
97869
|
+
modelValue: s.value[G.index].title,
|
|
97870
|
+
"onUpdate:modelValue": (p1) => s.value[G.index].title = p1,
|
|
97863
97871
|
size: "sm",
|
|
97864
97872
|
maxlength: l.value,
|
|
97865
97873
|
placeholder: I(Je)("addTitlePlaceholder"),
|
|
97866
97874
|
attrs: {
|
|
97867
97875
|
"data-test-tag": "image-title-text-input"
|
|
97868
97876
|
},
|
|
97869
|
-
error: s.value[
|
|
97877
|
+
error: s.value[G.index].title.length >= l.value
|
|
97870
97878
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength", "placeholder", "error"]),
|
|
97871
|
-
s.value[
|
|
97879
|
+
s.value[G.index].title.length >= l.value ? (C(), f("p", Mf2, P(r.value), 1)) : k("", !0),
|
|
97872
97880
|
U.isAdmin && U.content.personalisationRole ? (C(), O(W7, {
|
|
97873
97881
|
key: 3,
|
|
97874
97882
|
id: U.id,
|
|
97875
97883
|
name: "titleOverride",
|
|
97876
97884
|
content: U.content,
|
|
97877
|
-
object: U.content[U.name][
|
|
97885
|
+
object: U.content[U.name][G.index],
|
|
97878
97886
|
"personalisation-type": "text-media-items",
|
|
97879
|
-
"onUpdate:modelValue": (
|
|
97887
|
+
"onUpdate:modelValue": (p1) => q(p1, G.index)
|
|
97880
97888
|
}, null, 8, ["id", "content", "object", "onUpdate:modelValue"])) : k("", !0),
|
|
97881
97889
|
h("h4", kf2, P(I(Je)("paragraph")), 1),
|
|
97882
97890
|
L(xo, {
|
|
97883
|
-
id: `${U.id}-${
|
|
97884
|
-
value: s.value[
|
|
97885
|
-
item: { text: s.value[
|
|
97891
|
+
id: `${U.id}-${G.index}-paragraph`,
|
|
97892
|
+
value: s.value[G.index].paragraph,
|
|
97893
|
+
item: { text: s.value[G.index].paragraph, textStyle: {} },
|
|
97886
97894
|
"element-classes": "tw-w-full",
|
|
97887
97895
|
size: "sm",
|
|
97888
97896
|
name: U.name,
|
|
@@ -97894,91 +97902,91 @@ const Io = /* @__PURE__ */ w(Fh2, [["render", Jh2]]), Qh2 = { "data-component":
|
|
|
97894
97902
|
attrs: {
|
|
97895
97903
|
"data-test-tag": "image-description-text-input"
|
|
97896
97904
|
},
|
|
97897
|
-
error: s.value[
|
|
97898
|
-
"onUpdate:modelValue": (
|
|
97905
|
+
error: s.value[G.index].paragraph.length >= u.value,
|
|
97906
|
+
"onUpdate:modelValue": (p1) => X(p1, G.index)
|
|
97899
97907
|
}, null, 8, ["id", "value", "item", "name", "max-length", "placeholder", "error", "onUpdate:modelValue"]),
|
|
97900
97908
|
U.isAdmin && U.content.personalisationRole ? (C(), O(W7, {
|
|
97901
97909
|
key: 4,
|
|
97902
97910
|
id: U.id,
|
|
97903
97911
|
name: "paragraphOverride",
|
|
97904
97912
|
content: U.content,
|
|
97905
|
-
object: U.content[U.name][
|
|
97913
|
+
object: U.content[U.name][G.index],
|
|
97906
97914
|
"personalisation-type": "text-media-items",
|
|
97907
|
-
"onUpdate:modelValue": (
|
|
97915
|
+
"onUpdate:modelValue": (p1) => q(p1, G.index)
|
|
97908
97916
|
}, null, 8, ["id", "content", "object", "onUpdate:modelValue"])) : k("", !0),
|
|
97909
|
-
v(
|
|
97917
|
+
v(G.item) ? k("", !0) : (C(), f(H1, { key: 5 }, [
|
|
97910
97918
|
h("h4", Lf2, P(I(Je)("imageCaption")), 1),
|
|
97911
97919
|
h("div", Tf2, P(I(Je)("imageCaptionSub")), 1),
|
|
97912
97920
|
h("div", Vf2, [
|
|
97913
97921
|
L(I(W2), {
|
|
97914
|
-
modelValue: s.value[
|
|
97915
|
-
"onUpdate:modelValue": (
|
|
97922
|
+
modelValue: s.value[G.index].imageTitle,
|
|
97923
|
+
"onUpdate:modelValue": (p1) => s.value[G.index].imageTitle = p1,
|
|
97916
97924
|
size: "sm",
|
|
97917
97925
|
maxlength: u.value,
|
|
97918
97926
|
placeholder: I(Je)("imageCaptionPlaceholder"),
|
|
97919
97927
|
attrs: {
|
|
97920
|
-
"data-test-tag": `image-caption-text-input-${U.id}-${
|
|
97928
|
+
"data-test-tag": `image-caption-text-input-${U.id}-${G.index}`
|
|
97921
97929
|
},
|
|
97922
|
-
error: s.value[
|
|
97930
|
+
error: s.value[G.index].imageTitle.length >= u.value
|
|
97923
97931
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength", "placeholder", "attrs", "error"]),
|
|
97924
|
-
s.value[
|
|
97932
|
+
s.value[G.index].imageTitle.length >= u.value ? (C(), f("p", Hf2, P(r.value), 1)) : k("", !0),
|
|
97925
97933
|
U.isAdmin && U.content.personalisationRole ? (C(), O(W7, {
|
|
97926
97934
|
key: 1,
|
|
97927
97935
|
id: U.id,
|
|
97928
97936
|
name: "imageTitleOverride",
|
|
97929
97937
|
content: U.content,
|
|
97930
|
-
object: U.content[U.name][
|
|
97938
|
+
object: U.content[U.name][G.index],
|
|
97931
97939
|
"personalisation-type": "text-media-items",
|
|
97932
|
-
"onUpdate:modelValue": (
|
|
97940
|
+
"onUpdate:modelValue": (p1) => q(p1, G.index)
|
|
97933
97941
|
}, null, 8, ["id", "content", "object", "onUpdate:modelValue"])) : k("", !0)
|
|
97934
97942
|
]),
|
|
97935
97943
|
L(df2, {
|
|
97936
97944
|
id: U.id,
|
|
97937
|
-
index:
|
|
97945
|
+
index: G.index,
|
|
97938
97946
|
"is-admin": U.isAdmin,
|
|
97939
97947
|
"button-config": {
|
|
97940
|
-
buttonText: s.value[
|
|
97941
|
-
buttonLinkType: s.value[
|
|
97942
|
-
url: s.value[
|
|
97943
|
-
buttonPageId: s.value[
|
|
97948
|
+
buttonText: s.value[G.index].buttonText ?? !1,
|
|
97949
|
+
buttonLinkType: s.value[G.index].buttonLinkType || "url",
|
|
97950
|
+
url: s.value[G.index].url || "",
|
|
97951
|
+
buttonPageId: s.value[G.index].buttonPageId || ""
|
|
97944
97952
|
},
|
|
97945
97953
|
"title-length": l.value,
|
|
97946
97954
|
"description-length": u.value,
|
|
97947
|
-
"onUpdate:buttonConfig": (
|
|
97955
|
+
"onUpdate:buttonConfig": (p1) => Y(p1, G.index)
|
|
97948
97956
|
}, null, 8, ["id", "index", "is-admin", "button-config", "title-length", "description-length", "onUpdate:buttonConfig"])
|
|
97949
97957
|
], 64)),
|
|
97950
|
-
!v(
|
|
97958
|
+
!v(G.item) && U.brandPageType === I(d1).brandSite ? (C(), f("div", xf2, [
|
|
97951
97959
|
h("div", If2, [
|
|
97952
97960
|
h("h4", Ef2, P(I(Je)("imageLink")), 1),
|
|
97953
97961
|
L(I(Te), {
|
|
97954
|
-
id: `image-link-toggle-${U.id}-${
|
|
97955
|
-
"model-value": s.value[
|
|
97962
|
+
id: `image-link-toggle-${U.id}-${G.index}`,
|
|
97963
|
+
"model-value": s.value[G.index].imageLink !== !1,
|
|
97956
97964
|
color: "primary",
|
|
97957
97965
|
attrs: {
|
|
97958
|
-
"data-test-tag": `image-link-toggle-${U.id}-${
|
|
97966
|
+
"data-test-tag": `image-link-toggle-${U.id}-${G.index}`
|
|
97959
97967
|
},
|
|
97960
|
-
"onUpdate:modelValue": (
|
|
97968
|
+
"onUpdate:modelValue": (p1) => f1(p1, G.index)
|
|
97961
97969
|
}, null, 8, ["id", "model-value", "attrs", "onUpdate:modelValue"])
|
|
97962
97970
|
]),
|
|
97963
|
-
s.value[
|
|
97971
|
+
s.value[G.index].imageLink !== !1 ? (C(), f("div", Af2, [
|
|
97964
97972
|
L(I(W2), {
|
|
97965
|
-
modelValue: s.value[
|
|
97966
|
-
"onUpdate:modelValue": (
|
|
97973
|
+
modelValue: s.value[G.index].imageLink,
|
|
97974
|
+
"onUpdate:modelValue": (p1) => s.value[G.index].imageLink = p1,
|
|
97967
97975
|
class: "tw-mt-2",
|
|
97968
97976
|
size: "sm",
|
|
97969
97977
|
maxlength: u.value,
|
|
97970
97978
|
placeholder: "https://example.com",
|
|
97971
|
-
error: typeof s.value[
|
|
97979
|
+
error: typeof s.value[G.index].imageLink == "string" && s.value[G.index].imageLink.length >= u.value || !K(G.index),
|
|
97972
97980
|
icon: "globe",
|
|
97973
97981
|
attrs: {
|
|
97974
|
-
"data-test-tag": `image-link-text-input-${U.id}-${
|
|
97982
|
+
"data-test-tag": `image-link-text-input-${U.id}-${G.index}`
|
|
97975
97983
|
},
|
|
97976
|
-
onBlur: (
|
|
97977
|
-
typeof s.value[
|
|
97978
|
-
|
|
97984
|
+
onBlur: (p1) => F(
|
|
97985
|
+
typeof s.value[G.index].imageLink == "string" ? s.value[G.index].imageLink : "",
|
|
97986
|
+
G.index
|
|
97979
97987
|
)
|
|
97980
97988
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength", "error", "attrs", "onBlur"]),
|
|
97981
|
-
K(
|
|
97989
|
+
K(G.index) ? k("", !0) : (C(), f("p", Pf2, P(a.value), 1))
|
|
97982
97990
|
])) : k("", !0)
|
|
97983
97991
|
])) : k("", !0)
|
|
97984
97992
|
]),
|
|
@@ -101138,12 +101146,12 @@ const Vy2 = /* @__PURE__ */ w(sy2, [["render", Ty2], ["__scopeId", "data-v-e6909
|
|
|
101138
101146
|
Q.set(U.id, U);
|
|
101139
101147
|
return Q;
|
|
101140
101148
|
}), y = (Q) => {
|
|
101141
|
-
const U = r.routes.find((
|
|
101149
|
+
const U = r.routes.find((u1) => u1.id === Q);
|
|
101142
101150
|
return U == null ? void 0 : U.pageId;
|
|
101143
101151
|
}, v = T(() => {
|
|
101144
101152
|
const Q = /* @__PURE__ */ new Map();
|
|
101145
|
-
return s.pages.forEach((U,
|
|
101146
|
-
Q.set(U.id, { page: U, index:
|
|
101153
|
+
return s.pages.forEach((U, u1) => {
|
|
101154
|
+
Q.set(U.id, { page: U, index: u1 });
|
|
101147
101155
|
}), Q;
|
|
101148
101156
|
}), b = T(() => s.pages.length), S = T(
|
|
101149
101157
|
() => s.pages.filter(
|
|
@@ -101171,16 +101179,16 @@ const Vy2 = /* @__PURE__ */ w(sy2, [["render", Ty2], ["__scopeId", "data-v-e6909
|
|
|
101171
101179
|
function H(Q) {
|
|
101172
101180
|
const U = V(Q);
|
|
101173
101181
|
if (!U) return;
|
|
101174
|
-
const
|
|
101175
|
-
if (!
|
|
101176
|
-
const
|
|
101177
|
-
|
|
101182
|
+
const u1 = v.value.get(U.pageId);
|
|
101183
|
+
if (!u1) return;
|
|
101184
|
+
const G = Om(
|
|
101185
|
+
u1.page.title,
|
|
101178
101186
|
!!i.parentRouteId
|
|
101179
101187
|
);
|
|
101180
101188
|
return {
|
|
101181
|
-
index:
|
|
101182
|
-
title:
|
|
101183
|
-
titleError:
|
|
101189
|
+
index: u1.index,
|
|
101190
|
+
title: u1.page.title,
|
|
101191
|
+
titleError: G || void 0,
|
|
101184
101192
|
isHidden: !!U.isHidden
|
|
101185
101193
|
};
|
|
101186
101194
|
}
|
|
@@ -101204,33 +101212,33 @@ const Vy2 = /* @__PURE__ */ w(sy2, [["render", Ty2], ["__scopeId", "data-v-e6909
|
|
|
101204
101212
|
function X() {
|
|
101205
101213
|
a.value = null, d.value = null, l.value = null, c.value = !1, u.value = null;
|
|
101206
101214
|
}
|
|
101207
|
-
function q(Q, U,
|
|
101208
|
-
return !(Q &&
|
|
101215
|
+
function q(Q, U, u1, G, p1) {
|
|
101216
|
+
return !(Q && G || Q && u1 === M.value || !U && Q && !c.value || Q && i.parentRouteId);
|
|
101209
101217
|
}
|
|
101210
101218
|
const Y = (Q) => {
|
|
101211
|
-
var
|
|
101212
|
-
(
|
|
101219
|
+
var G, p1;
|
|
101220
|
+
(p1 = (G = Q == null ? void 0 : Q.item) == null ? void 0 : G.dataset) != null && p1.routeId && (p.value = Q.item.dataset.routeId, g.value = r.getParentRouteIdForRoute(
|
|
101213
101221
|
p.value
|
|
101214
101222
|
)), i.parentRouteId || (u.value = JSON.parse(
|
|
101215
101223
|
JSON.stringify(r.orders)
|
|
101216
101224
|
));
|
|
101217
|
-
const U = Q == null ? void 0 : Q.originalEvent,
|
|
101218
|
-
l.value =
|
|
101219
|
-
}, f1 = (Q, U,
|
|
101220
|
-
const
|
|
101225
|
+
const U = Q == null ? void 0 : Q.originalEvent, u1 = _(U);
|
|
101226
|
+
l.value = u1 ?? null, d.value = u1 ?? null, c.value = !1, F(U);
|
|
101227
|
+
}, f1 = (Q, U, u1) => {
|
|
101228
|
+
const G = U || p.value, p1 = U !== void 0 ? u1 : g.value;
|
|
101221
101229
|
if (!i.parentRouteId) {
|
|
101222
101230
|
const Q1 = r.orders[0], x1 = Q1 ? V(Q1.routeId) : void 0;
|
|
101223
101231
|
if (!!(x1 != null && x1.isHidden) && u.value) {
|
|
101224
|
-
r.orders = u.value, u.value = null, a.value = null, p.value = void 0, o("drag-end", Q,
|
|
101232
|
+
r.orders = u.value, u.value = null, a.value = null, p.value = void 0, o("drag-end", Q, G, p1), X();
|
|
101225
101233
|
return;
|
|
101226
101234
|
}
|
|
101227
101235
|
u.value = null;
|
|
101228
101236
|
}
|
|
101229
|
-
o("drag-end", Q,
|
|
101237
|
+
o("drag-end", Q, G, p1), a.value = null, p.value = void 0, g.value = void 0, d.value = null;
|
|
101230
101238
|
};
|
|
101231
101239
|
function y1(Q) {
|
|
101232
101240
|
var T1, B1, o2, M2, x2, t3;
|
|
101233
|
-
const U = ((B1 = (T1 = Q == null ? void 0 : Q.to) == null ? void 0 : T1.dataset) == null ? void 0 : B1.parentRouteId) || null,
|
|
101241
|
+
const U = ((B1 = (T1 = Q == null ? void 0 : Q.to) == null ? void 0 : T1.dataset) == null ? void 0 : B1.parentRouteId) || null, u1 = ((M2 = (o2 = Q == null ? void 0 : Q.from) == null ? void 0 : o2.dataset) == null ? void 0 : M2.parentRouteId) || null, G = (x2 = Q == null ? void 0 : Q.draggedContext) == null ? void 0 : x2.element, p1 = G == null ? void 0 : G.routeId, Q1 = $(G);
|
|
101234
101242
|
(t3 = Q == null ? void 0 : Q.draggedContext) == null || t3.futureIndex;
|
|
101235
101243
|
let x1 = _(Q == null ? void 0 : Q.originalEvent);
|
|
101236
101244
|
if (x1 == null && d.value != null && d.value !== l.value && (x1 = d.value), l.value != null && x1 != null) {
|
|
@@ -101239,18 +101247,18 @@ const Vy2 = /* @__PURE__ */ w(sy2, [["render", Ty2], ["__scopeId", "data-v-e6909
|
|
|
101239
101247
|
}
|
|
101240
101248
|
return q(
|
|
101241
101249
|
U,
|
|
101242
|
-
p1,
|
|
101243
101250
|
u1,
|
|
101251
|
+
p1,
|
|
101244
101252
|
Q1
|
|
101245
|
-
) ? (
|
|
101246
|
-
routeId:
|
|
101253
|
+
) ? (p1 && (a.value = {
|
|
101254
|
+
routeId: p1,
|
|
101247
101255
|
parentRouteId: U
|
|
101248
101256
|
}), !0) : !1;
|
|
101249
101257
|
}
|
|
101250
101258
|
return S0(() => {
|
|
101251
101259
|
K();
|
|
101252
101260
|
}), (Q, U) => {
|
|
101253
|
-
const
|
|
101261
|
+
const u1 = E("NestedDraggable", !0);
|
|
101254
101262
|
return C(), O(I(Xi), {
|
|
101255
101263
|
list: Q.orders,
|
|
101256
101264
|
tag: "ul",
|
|
@@ -101263,22 +101271,22 @@ const Vy2 = /* @__PURE__ */ w(sy2, [["render", Ty2], ["__scopeId", "data-v-e6909
|
|
|
101263
101271
|
onStart: Y,
|
|
101264
101272
|
onEnd: f1
|
|
101265
101273
|
}, {
|
|
101266
|
-
item: i1(({ element:
|
|
101274
|
+
item: i1(({ element: G }) => [
|
|
101267
101275
|
(C(), f("li", {
|
|
101268
|
-
key:
|
|
101269
|
-
"data-route-id":
|
|
101276
|
+
key: G.routeId,
|
|
101277
|
+
"data-route-id": G.routeId
|
|
101270
101278
|
}, [
|
|
101271
|
-
H(
|
|
101279
|
+
H(G.routeId) ? (C(), O(Om2, {
|
|
101272
101280
|
key: 0,
|
|
101273
|
-
"is-hidden": H(
|
|
101274
|
-
"page-title": H(
|
|
101275
|
-
"page-title-error": H(
|
|
101276
|
-
index: H(
|
|
101277
|
-
"page-id": y(
|
|
101281
|
+
"is-hidden": H(G.routeId).isHidden,
|
|
101282
|
+
"page-title": H(G.routeId).title,
|
|
101283
|
+
"page-title-error": H(G.routeId).titleError,
|
|
101284
|
+
index: H(G.routeId).index,
|
|
101285
|
+
"page-id": y(G.routeId),
|
|
101278
101286
|
"is-dragging-page": Q.isDraggingPage,
|
|
101279
101287
|
"is-design-com": Q.isDesignCom,
|
|
101280
|
-
"is-root-page": B(
|
|
101281
|
-
"has-sub-pages": $(
|
|
101288
|
+
"is-root-page": B(G.routeId),
|
|
101289
|
+
"has-sub-pages": $(G),
|
|
101282
101290
|
"page-title-input": Q.onPageTitleInput,
|
|
101283
101291
|
"delete-page-selected": Q.onDeletePageSelected,
|
|
101284
101292
|
"change-page-visibility": Q.onChangePageVisibility,
|
|
@@ -101286,10 +101294,10 @@ const Vy2 = /* @__PURE__ */ w(sy2, [["render", Ty2], ["__scopeId", "data-v-e6909
|
|
|
101286
101294
|
"total-pages": b.value,
|
|
101287
101295
|
"visible-page-count": S.value
|
|
101288
101296
|
}, null, 8, ["is-hidden", "page-title", "page-title-error", "index", "page-id", "is-dragging-page", "is-design-com", "is-root-page", "has-sub-pages", "page-title-input", "delete-page-selected", "change-page-visibility", "on-add-sub-page-selected", "total-pages", "visible-page-count"])) : k("", !0),
|
|
101289
|
-
Q.parentRouteId ? k("", !0) : (C(), O(
|
|
101297
|
+
Q.parentRouteId ? k("", !0) : (C(), O(u1, {
|
|
101290
101298
|
key: 1,
|
|
101291
|
-
orders:
|
|
101292
|
-
"parent-route-id":
|
|
101299
|
+
orders: G.subRoutes,
|
|
101300
|
+
"parent-route-id": G.routeId,
|
|
101293
101301
|
"is-dragging-page": Q.isDraggingPage,
|
|
101294
101302
|
"is-design-com": Q.isDesignCom,
|
|
101295
101303
|
"on-page-title-input": Q.onPageTitleInput,
|
|
@@ -107211,19 +107219,19 @@ const Ik2 = /* @__PURE__ */ w(Vk2, [["render", xk2]]), Ek2 = {
|
|
|
107211
107219
|
setup(e) {
|
|
107212
107220
|
const t = l2(), n = P2(), i = v2(), o = We(), s = s1(
|
|
107213
107221
|
null
|
|
107214
|
-
), { selectedSettingsSection: r } = gi(o), a = (
|
|
107215
|
-
|
|
107216
|
-
if (
|
|
107217
|
-
const
|
|
107218
|
-
|
|
107222
|
+
), { selectedSettingsSection: r } = gi(o), a = (G) => {
|
|
107223
|
+
G && Be(() => {
|
|
107224
|
+
if (G === tL2 && s.value) {
|
|
107225
|
+
const p1 = s.value.$el;
|
|
107226
|
+
p1 && (p1.scrollIntoView({ behavior: "smooth", block: "center" }), s.value.selfIsCollapsed && s.value.toggleCollapsed());
|
|
107219
107227
|
}
|
|
107220
107228
|
});
|
|
107221
107229
|
};
|
|
107222
107230
|
v3(() => {
|
|
107223
107231
|
R2(
|
|
107224
107232
|
() => r.value,
|
|
107225
|
-
(
|
|
107226
|
-
|
|
107233
|
+
(G) => {
|
|
107234
|
+
G && (a(G), o.setSelectedSettingsSection({ sectionName: void 0 }));
|
|
107227
107235
|
}
|
|
107228
107236
|
), r.value && (a(r.value), o.setSelectedSettingsSection({ sectionName: void 0 }));
|
|
107229
107237
|
});
|
|
@@ -107236,8 +107244,8 @@ const Ik2 = /* @__PURE__ */ w(Vk2, [["render", xk2]]), Ek2 = {
|
|
|
107236
107244
|
paymentConfigs: void 0,
|
|
107237
107245
|
mediaType: "",
|
|
107238
107246
|
sectionTitle: ""
|
|
107239
|
-
}), $ = T(() => !m.value && g.value.canAddRequestPaymentContents), B = T(() => !u.value || Array.isArray(H.paymentConfigs)), D = T(() => t.faviconUrl || void 0), F = T(() => t.measurementID), K = T(() => t.adsenseID), X = (
|
|
107240
|
-
H.mediaType =
|
|
107247
|
+
}), $ = T(() => !m.value && g.value.canAddRequestPaymentContents), B = T(() => !u.value || Array.isArray(H.paymentConfigs)), D = T(() => t.faviconUrl || void 0), F = T(() => t.measurementID), K = T(() => t.adsenseID), X = (G) => {
|
|
107248
|
+
H.mediaType = G, H.sectionTitle = G, t.setFieldSettings({
|
|
107241
107249
|
settings: {
|
|
107242
107250
|
errorMessage: "",
|
|
107243
107251
|
isRequired: !1,
|
|
@@ -107263,25 +107271,25 @@ const Ik2 = /* @__PURE__ */ w(Vk2, [["render", xk2]]), Ek2 = {
|
|
|
107263
107271
|
t.showStripeOnboardingModal();
|
|
107264
107272
|
}, Y = async () => {
|
|
107265
107273
|
t.showBrandPageSlugEditModal();
|
|
107266
|
-
}, f1 = async (
|
|
107274
|
+
}, f1 = async (G) => {
|
|
107267
107275
|
t.updateBrandPageSettings({
|
|
107268
|
-
description:
|
|
107269
|
-
title:
|
|
107270
|
-
shouldRefresh:
|
|
107276
|
+
description: G.description,
|
|
107277
|
+
title: G.title,
|
|
107278
|
+
shouldRefresh: G.shouldRefresh
|
|
107271
107279
|
});
|
|
107272
|
-
}, y1 = (
|
|
107273
|
-
H.paymentConfigs =
|
|
107274
|
-
}, Q = (
|
|
107275
|
-
|
|
107276
|
-
}, U = (
|
|
107277
|
-
|
|
107278
|
-
},
|
|
107280
|
+
}, y1 = (G) => {
|
|
107281
|
+
H.paymentConfigs = G;
|
|
107282
|
+
}, Q = (G) => {
|
|
107283
|
+
G.name == J7.favicon && (t.faviconUrl = G.value), G.name == J7.ogimage && (t.ogImageUrl = G.value);
|
|
107284
|
+
}, U = (G) => {
|
|
107285
|
+
G && (H.mediaType = G, H.sectionTitle = G);
|
|
107286
|
+
}, u1 = (G) => {
|
|
107279
107287
|
t.updateSensitiveContentSettings({
|
|
107280
|
-
sensitiveContent:
|
|
107288
|
+
sensitiveContent: G,
|
|
107281
107289
|
shouldRefresh: !1
|
|
107282
107290
|
});
|
|
107283
107291
|
};
|
|
107284
|
-
return (
|
|
107292
|
+
return (G, p1) => (C(), f("div", qk2, [
|
|
107285
107293
|
l.value === I(me).images ? (C(), O(Ik2, {
|
|
107286
107294
|
key: 0,
|
|
107287
107295
|
"media-type": H.mediaType,
|
|
@@ -107329,7 +107337,7 @@ const Ik2 = /* @__PURE__ */ w(Vk2, [["render", xk2]]), Ek2 = {
|
|
|
107329
107337
|
name: "favicon",
|
|
107330
107338
|
"is-maker": !0,
|
|
107331
107339
|
value: D.value,
|
|
107332
|
-
onOnIntentImageReplace:
|
|
107340
|
+
onOnIntentImageReplace: p1[0] || (p1[0] = (Q1) => X("favicon")),
|
|
107333
107341
|
"onUpdate:modelValue": Q
|
|
107334
107342
|
}, null, 8, ["value"])
|
|
107335
107343
|
], 2)
|
|
@@ -107408,7 +107416,7 @@ const Ik2 = /* @__PURE__ */ w(Vk2, [["render", xk2]]), Ek2 = {
|
|
|
107408
107416
|
"is-maker": !0,
|
|
107409
107417
|
"design-draft-token": M.value,
|
|
107410
107418
|
value: _.value,
|
|
107411
|
-
onChangeSensitiveSettings:
|
|
107419
|
+
onChangeSensitiveSettings: u1
|
|
107412
107420
|
}, null, 8, ["design-draft-token", "value"])
|
|
107413
107421
|
])
|
|
107414
107422
|
]),
|
|
@@ -110276,7 +110284,7 @@ function fV2(e) {
|
|
|
110276
110284
|
}, B = async (X) => {
|
|
110277
110285
|
const { text: q, images: Y } = X;
|
|
110278
110286
|
!(q != null && q.trim()) && (!Y || Y.length === 0) || await v(async () => {
|
|
110279
|
-
var U,
|
|
110287
|
+
var U, u1;
|
|
110280
110288
|
u.value = !1, d.value = !0;
|
|
110281
110289
|
const f1 = Y ? {
|
|
110282
110290
|
id: Date.now().toString(),
|
|
@@ -110308,18 +110316,18 @@ function fV2(e) {
|
|
|
110308
110316
|
s.startGroup(), s.log("sendMessageAsync", {
|
|
110309
110317
|
messageOptions: X
|
|
110310
110318
|
});
|
|
110311
|
-
const
|
|
110319
|
+
const G = await V(q || "");
|
|
110312
110320
|
if (u.value) return;
|
|
110313
|
-
const
|
|
110321
|
+
const p1 = l.value.findIndex(
|
|
110314
110322
|
(Q1) => Q1.id === y1
|
|
110315
110323
|
);
|
|
110316
|
-
|
|
110317
|
-
} catch (
|
|
110324
|
+
p1 !== -1 && (G.text ? (l.value[p1].text = G.text, l.value[p1].isTyping = !1, l.value[p1].langChainUrl = G.langChainUrl, p.value && e.onTextUpdate && e.onTextUpdate(p.value), g.value && e.onStyleUpdate && e.onStyleUpdate(g.value)) : (l.value[p1].text = "Failed to generate text. Please try again.", l.value[p1].isTyping = !1, l.value[p1].isError = !0));
|
|
110325
|
+
} catch (G) {
|
|
110318
110326
|
if (u.value) return;
|
|
110319
|
-
const
|
|
110327
|
+
const p1 = l.value.findIndex(
|
|
110320
110328
|
(Q1) => Q1.id === y1
|
|
110321
110329
|
);
|
|
110322
|
-
|
|
110330
|
+
p1 !== -1 && (l.value[p1].text = ((u1 = (U = G == null ? void 0 : G.response) == null ? void 0 : U.data) == null ? void 0 : u1.error) || "An error occurred. Please try again.", l.value[p1].isTyping = !1, l.value[p1].isError = !0);
|
|
110323
110331
|
} finally {
|
|
110324
110332
|
c.value = null, d.value = !1;
|
|
110325
110333
|
}
|
|
@@ -110956,28 +110964,28 @@ function TV2() {
|
|
|
110956
110964
|
let y1 = !1, Q = null;
|
|
110957
110965
|
const U = () => {
|
|
110958
110966
|
e.isBuildInProgress = !1, D.setBuildActive(!1), D.stopResponseHeartbeat(), Q && D.offMessage(Q);
|
|
110959
|
-
},
|
|
110967
|
+
}, u1 = setTimeout(() => {
|
|
110960
110968
|
y1 || (y1 = !0, U(), f1(new Error("Build timeout")));
|
|
110961
110969
|
}, LV2);
|
|
110962
|
-
Q = (
|
|
110963
|
-
if (!y1 &&
|
|
110970
|
+
Q = (G) => {
|
|
110971
|
+
if (!y1 && G.buildId === e.buildId) {
|
|
110964
110972
|
if (c.value) {
|
|
110965
|
-
y1 = !0, clearTimeout(
|
|
110973
|
+
y1 = !0, clearTimeout(u1), U(), Y({ text: null });
|
|
110966
110974
|
return;
|
|
110967
110975
|
}
|
|
110968
|
-
if (
|
|
110969
|
-
y1 = !0, clearTimeout(
|
|
110970
|
-
const
|
|
110976
|
+
if (G.type === "build_complete") {
|
|
110977
|
+
y1 = !0, clearTimeout(u1);
|
|
110978
|
+
const p1 = G.toolCalls || [], Q1 = {
|
|
110971
110979
|
threadId: e.threadId || "",
|
|
110972
|
-
toolCalls:
|
|
110973
|
-
message:
|
|
110980
|
+
toolCalls: p1,
|
|
110981
|
+
message: G.message || null,
|
|
110974
110982
|
type: "tool_calls",
|
|
110975
110983
|
totalPaidToolCalls: 0,
|
|
110976
110984
|
timestamp: Date.now()
|
|
110977
110985
|
};
|
|
110978
110986
|
(async () => {
|
|
110979
110987
|
try {
|
|
110980
|
-
|
|
110988
|
+
p1.length > 0 && await b(Q1), U(), await t.refreshSnapshotAsync(), Y({
|
|
110981
110989
|
text: Q1.message || "Your website has been updated.",
|
|
110982
110990
|
langChainUrl: q
|
|
110983
110991
|
});
|
|
@@ -110986,8 +110994,8 @@ function TV2() {
|
|
|
110986
110994
|
}
|
|
110987
110995
|
})();
|
|
110988
110996
|
}
|
|
110989
|
-
|
|
110990
|
-
text:
|
|
110997
|
+
G.type === "build_error" && (y1 = !0, clearTimeout(u1), U(), Y({
|
|
110998
|
+
text: G.error || "An error occurred during the build."
|
|
110991
110999
|
}));
|
|
110992
111000
|
}
|
|
110993
111001
|
}, D.onMessage(Q);
|
|
@@ -111032,15 +111040,15 @@ function TV2() {
|
|
|
111032
111040
|
const Q = await S(B || "");
|
|
111033
111041
|
if (c.value) return;
|
|
111034
111042
|
const U = a.value.findIndex(
|
|
111035
|
-
(
|
|
111043
|
+
(u1) => u1.id === K
|
|
111036
111044
|
);
|
|
111037
111045
|
U !== -1 && (Q.text ? (a.value[U].text = Q.text, a.value[U].isTyping = !1, a.value[U].langChainUrl = Q.langChainUrl) : (a.value[U].text = "Failed to apply changes. Please try again.", a.value[U].isTyping = !1, a.value[U].isError = !0));
|
|
111038
111046
|
} catch (Q) {
|
|
111039
111047
|
if (c.value) return;
|
|
111040
|
-
const U = ((q = Q == null ? void 0 : Q.message) == null ? void 0 : q.includes("WebSocket connection")) || ((Y = Q == null ? void 0 : Q.message) == null ? void 0 : Y.includes("WebSocket connection timeout")),
|
|
111041
|
-
(
|
|
111048
|
+
const U = ((q = Q == null ? void 0 : Q.message) == null ? void 0 : q.includes("WebSocket connection")) || ((Y = Q == null ? void 0 : Q.message) == null ? void 0 : Y.includes("WebSocket connection timeout")), u1 = a.value.findIndex(
|
|
111049
|
+
(G) => G.id === K
|
|
111042
111050
|
);
|
|
111043
|
-
|
|
111051
|
+
u1 !== -1 && (a.value[u1].text = U ? g : ((y1 = (f1 = Q == null ? void 0 : Q.response) == null ? void 0 : f1.data) == null ? void 0 : y1.error) || "An error occurred. Please try again.", a.value[u1].isTyping = !1, a.value[u1].isError = !0);
|
|
111044
111052
|
} finally {
|
|
111045
111053
|
d.value = null, l.value = !1, e.isProcessing = !1;
|
|
111046
111054
|
}
|