@creopse/vue 0.0.35 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/dist/index.mjs +161 -157
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2211,103 +2211,103 @@ function $d() {
|
|
|
2211
2211
|
function Bd() {
|
|
2212
2212
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2213
2213
|
}
|
|
2214
|
-
var
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
typeof Symbol < "u" && Symbol.for != null && (
|
|
2214
|
+
var g = Vt.prototype;
|
|
2215
|
+
g.add = Lc;
|
|
2216
|
+
g.calendar = $c;
|
|
2217
|
+
g.clone = Bc;
|
|
2218
|
+
g.diff = Zc;
|
|
2219
|
+
g.endOf = od;
|
|
2220
|
+
g.format = td;
|
|
2221
|
+
g.from = nd;
|
|
2222
|
+
g.fromNow = rd;
|
|
2223
|
+
g.to = sd;
|
|
2224
|
+
g.toNow = id;
|
|
2225
|
+
g.get = eu;
|
|
2226
|
+
g.invalidAt = _d;
|
|
2227
|
+
g.isAfter = Gc;
|
|
2228
|
+
g.isBefore = Vc;
|
|
2229
|
+
g.isBetween = zc;
|
|
2230
|
+
g.isSame = qc;
|
|
2231
|
+
g.isSameOrAfter = Jc;
|
|
2232
|
+
g.isSameOrBefore = Kc;
|
|
2233
|
+
g.isValid = md;
|
|
2234
|
+
g.lang = ia;
|
|
2235
|
+
g.locale = sa;
|
|
2236
|
+
g.localeData = aa;
|
|
2237
|
+
g.max = mc;
|
|
2238
|
+
g.min = hc;
|
|
2239
|
+
g.parsingFlags = pd;
|
|
2240
|
+
g.set = tu;
|
|
2241
|
+
g.startOf = ad;
|
|
2242
|
+
g.subtract = Yc;
|
|
2243
|
+
g.toArray = dd;
|
|
2244
|
+
g.toObject = fd;
|
|
2245
|
+
g.toDate = cd;
|
|
2246
|
+
g.toISOString = Qc;
|
|
2247
|
+
g.inspect = ed;
|
|
2248
|
+
typeof Symbol < "u" && Symbol.for != null && (g[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2249
2249
|
return "Moment<" + this.format() + ">";
|
|
2250
2250
|
});
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2251
|
+
g.toJSON = hd;
|
|
2252
|
+
g.toString = Xc;
|
|
2253
|
+
g.unix = ud;
|
|
2254
|
+
g.valueOf = ld;
|
|
2255
|
+
g.creationData = yd;
|
|
2256
|
+
g.eraName = vd;
|
|
2257
|
+
g.eraNarrow = bd;
|
|
2258
|
+
g.eraAbbr = Od;
|
|
2259
|
+
g.eraYear = Dd;
|
|
2260
|
+
g.year = Li;
|
|
2261
|
+
g.isLeapYear = Ql;
|
|
2262
|
+
g.weekYear = Ad;
|
|
2263
|
+
g.isoWeekYear = Id;
|
|
2264
|
+
g.quarter = g.quarters = Ud;
|
|
2265
|
+
g.month = ji;
|
|
2266
|
+
g.daysInMonth = cu;
|
|
2267
|
+
g.week = g.weeks = gu;
|
|
2268
|
+
g.isoWeek = g.isoWeeks = wu;
|
|
2269
|
+
g.weeksInYear = Pd;
|
|
2270
|
+
g.weeksInWeekYear = Ld;
|
|
2271
|
+
g.isoWeeksInYear = Nd;
|
|
2272
|
+
g.isoWeeksInISOWeekYear = Cd;
|
|
2273
|
+
g.date = da;
|
|
2274
|
+
g.day = g.days = Iu;
|
|
2275
|
+
g.weekday = Nu;
|
|
2276
|
+
g.isoWeekday = Cu;
|
|
2277
|
+
g.dayOfYear = Fd;
|
|
2278
|
+
g.hour = g.hours = ju;
|
|
2279
|
+
g.minute = g.minutes = Wd;
|
|
2280
|
+
g.second = g.seconds = jd;
|
|
2281
|
+
g.millisecond = g.milliseconds = fa;
|
|
2282
|
+
g.utcOffset = Oc;
|
|
2283
|
+
g.utc = kc;
|
|
2284
|
+
g.local = Ec;
|
|
2285
|
+
g.parseZone = Tc;
|
|
2286
|
+
g.hasAlignedHourOffset = Mc;
|
|
2287
|
+
g.isDST = Rc;
|
|
2288
|
+
g.isLocal = Ac;
|
|
2289
|
+
g.isUtcOffset = Ic;
|
|
2290
|
+
g.isUtc = ea;
|
|
2291
|
+
g.isUTC = ea;
|
|
2292
|
+
g.zoneAbbr = $d;
|
|
2293
|
+
g.zoneName = Bd;
|
|
2294
|
+
g.dates = Se(
|
|
2295
2295
|
"dates accessor is deprecated. Use date instead.",
|
|
2296
2296
|
da
|
|
2297
2297
|
);
|
|
2298
|
-
|
|
2298
|
+
g.months = Se(
|
|
2299
2299
|
"months accessor is deprecated. Use month instead",
|
|
2300
2300
|
ji
|
|
2301
2301
|
);
|
|
2302
|
-
|
|
2302
|
+
g.years = Se(
|
|
2303
2303
|
"years accessor is deprecated. Use year instead",
|
|
2304
2304
|
Li
|
|
2305
2305
|
);
|
|
2306
|
-
|
|
2306
|
+
g.zone = Se(
|
|
2307
2307
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
2308
2308
|
Dc
|
|
2309
2309
|
);
|
|
2310
|
-
|
|
2310
|
+
g.isDSTShifted = Se(
|
|
2311
2311
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
2312
2312
|
xc
|
|
2313
2313
|
);
|
|
@@ -2599,7 +2599,7 @@ H("x", function(e, t, n) {
|
|
|
2599
2599
|
//! moment.js
|
|
2600
2600
|
D.version = "2.30.1";
|
|
2601
2601
|
Tl(G);
|
|
2602
|
-
D.fn =
|
|
2602
|
+
D.fn = g;
|
|
2603
2603
|
D.min = pc;
|
|
2604
2604
|
D.max = _c;
|
|
2605
2605
|
D.now = yc;
|
|
@@ -2625,7 +2625,7 @@ D.normalizeUnits = ve;
|
|
|
2625
2625
|
D.relativeTimeRounding = kf;
|
|
2626
2626
|
D.relativeTimeThreshold = Ef;
|
|
2627
2627
|
D.calendarFormat = Hc;
|
|
2628
|
-
D.prototype =
|
|
2628
|
+
D.prototype = g;
|
|
2629
2629
|
D.HTML5_FMT = {
|
|
2630
2630
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
2631
2631
|
// <input type="datetime-local" />
|
|
@@ -2816,8 +2816,8 @@ Ut.exports;
|
|
|
2816
2816
|
var Qs;
|
|
2817
2817
|
function Af() {
|
|
2818
2818
|
return Qs || (Qs = 1, function(e, t) {
|
|
2819
|
-
var n = 200, r = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", a = "[object Array]", l = "[object Boolean]", d = "[object Date]", u = "[object Error]", c = "[object Function]", _ = "[object GeneratorFunction]", E = "[object Map]",
|
|
2820
|
-
v[i] = v[a] = v[ee] = v[ue] = v[l] = v[d] = v[Z] = v[Re] = v[be] = v[ze] = v[qe] = v[E] = v[
|
|
2819
|
+
var n = 200, r = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", a = "[object Array]", l = "[object Boolean]", d = "[object Date]", u = "[object Error]", c = "[object Function]", _ = "[object GeneratorFunction]", E = "[object Map]", y = "[object Number]", m = "[object Object]", S = "[object Promise]", w = "[object RegExp]", P = "[object Set]", B = "[object String]", j = "[object Symbol]", q = "[object WeakMap]", ee = "[object ArrayBuffer]", ue = "[object DataView]", Z = "[object Float32Array]", Re = "[object Float64Array]", be = "[object Int8Array]", ze = "[object Int16Array]", qe = "[object Int32Array]", T = "[object Uint8Array]", W = "[object Uint8ClampedArray]", L = "[object Uint16Array]", re = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, ae = /\w*$/, O = /^\[object .+?Constructor\]$/, x = /^(?:0|[1-9]\d*)$/, v = {};
|
|
2820
|
+
v[i] = v[a] = v[ee] = v[ue] = v[l] = v[d] = v[Z] = v[Re] = v[be] = v[ze] = v[qe] = v[E] = v[y] = v[m] = v[w] = v[P] = v[B] = v[j] = v[T] = v[W] = v[L] = v[re] = !0, v[u] = v[c] = v[q] = !1;
|
|
2821
2821
|
var b = typeof ln == "object" && ln && ln.Object === Object && ln, N = typeof self == "object" && self && self.Object === Object && self, J = b || N || Function("return this")(), xe = t && !t.nodeType && t, ye = xe && !0 && e && !e.nodeType && e, Gn = ye && ye.exports === xe;
|
|
2822
2822
|
function za(o, f) {
|
|
2823
2823
|
return o.set(f[0], f[1]), o;
|
|
@@ -3178,7 +3178,7 @@ function Af() {
|
|
|
3178
3178
|
return zo(o, M);
|
|
3179
3179
|
case E:
|
|
3180
3180
|
return $o(o, M, p);
|
|
3181
|
-
case
|
|
3181
|
+
case y:
|
|
3182
3182
|
case B:
|
|
3183
3183
|
return new se(o);
|
|
3184
3184
|
case w:
|
|
@@ -3652,7 +3652,7 @@ function $n(e, t, n) {
|
|
|
3652
3652
|
convertValue: u,
|
|
3653
3653
|
isVisitable: kr
|
|
3654
3654
|
});
|
|
3655
|
-
function
|
|
3655
|
+
function y(m, S) {
|
|
3656
3656
|
if (!h.isUndefined(m)) {
|
|
3657
3657
|
if (_.indexOf(m) !== -1)
|
|
3658
3658
|
throw Error("Circular reference detected in " + S.join("."));
|
|
@@ -3663,13 +3663,13 @@ function $n(e, t, n) {
|
|
|
3663
3663
|
h.isString(B) ? B.trim() : B,
|
|
3664
3664
|
S,
|
|
3665
3665
|
E
|
|
3666
|
-
)) === !0 &&
|
|
3666
|
+
)) === !0 && y(P, S ? S.concat(B) : [B]);
|
|
3667
3667
|
}), _.pop();
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
3670
|
if (!h.isObject(e))
|
|
3671
3671
|
throw new TypeError("data must be an object");
|
|
3672
|
-
return
|
|
3672
|
+
return y(e), t;
|
|
3673
3673
|
}
|
|
3674
3674
|
function ri(e) {
|
|
3675
3675
|
const t = {
|
|
@@ -4153,8 +4153,8 @@ function Vh(e, t) {
|
|
|
4153
4153
|
E += n[_++], _ = _ % e;
|
|
4154
4154
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - a < t)
|
|
4155
4155
|
return;
|
|
4156
|
-
const
|
|
4157
|
-
return
|
|
4156
|
+
const y = c && u - c;
|
|
4157
|
+
return y ? Math.round(E * 1e3 / y) : void 0;
|
|
4158
4158
|
};
|
|
4159
4159
|
}
|
|
4160
4160
|
function zh(e, t) {
|
|
@@ -4328,9 +4328,9 @@ const Ya = (e) => {
|
|
|
4328
4328
|
const s = Ya(e);
|
|
4329
4329
|
let i = s.data;
|
|
4330
4330
|
const a = me.from(s.headers).normalize();
|
|
4331
|
-
let { responseType: l, onUploadProgress: d, onDownloadProgress: u } = s, c, _, E,
|
|
4331
|
+
let { responseType: l, onUploadProgress: d, onDownloadProgress: u } = s, c, _, E, y, m;
|
|
4332
4332
|
function S() {
|
|
4333
|
-
|
|
4333
|
+
y && y(), m && m(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
|
|
4334
4334
|
}
|
|
4335
4335
|
let w = new XMLHttpRequest();
|
|
4336
4336
|
w.open(s.method.toUpperCase(), s.url, !0), w.timeout = s.timeout;
|
|
@@ -4371,7 +4371,7 @@ const Ya = (e) => {
|
|
|
4371
4371
|
)), w = null;
|
|
4372
4372
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in w && h.forEach(a.toJSON(), function(q, ee) {
|
|
4373
4373
|
w.setRequestHeader(ee, q);
|
|
4374
|
-
}), h.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), l && l !== "json" && (w.responseType = s.responseType), u && ([E, m] = kn(u, !0), w.addEventListener("progress", E)), d && w.upload && ([_,
|
|
4374
|
+
}), h.isUndefined(s.withCredentials) || (w.withCredentials = !!s.withCredentials), l && l !== "json" && (w.responseType = s.responseType), u && ([E, m] = kn(u, !0), w.addEventListener("progress", E)), d && w.upload && ([_, y] = kn(d), w.upload.addEventListener("progress", _), w.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (c = (j) => {
|
|
4375
4375
|
w && (r(!j || j.type ? new xt(null, e, w) : j), w.abort(), w = null);
|
|
4376
4376
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
4377
4377
|
const B = Gh(s.url);
|
|
@@ -4515,7 +4515,7 @@ const Ya = (e) => {
|
|
|
4515
4515
|
return m.byteLength;
|
|
4516
4516
|
if (h.isURLSearchParams(m) && (m = m + ""), h.isString(m))
|
|
4517
4517
|
return (await d(m)).byteLength;
|
|
4518
|
-
},
|
|
4518
|
+
}, y = async (m, S) => {
|
|
4519
4519
|
const w = h.toFiniteNumber(m.getContentLength());
|
|
4520
4520
|
return w ?? E(S);
|
|
4521
4521
|
};
|
|
@@ -4541,7 +4541,7 @@ const Ya = (e) => {
|
|
|
4541
4541
|
});
|
|
4542
4542
|
let re;
|
|
4543
4543
|
try {
|
|
4544
|
-
if (ue && u && w !== "get" && w !== "head" && (re = await
|
|
4544
|
+
if (ue && u && w !== "get" && w !== "head" && (re = await y(Re, P)) !== 0) {
|
|
4545
4545
|
let b = new n(S, {
|
|
4546
4546
|
method: "POST",
|
|
4547
4547
|
body: P,
|
|
@@ -4821,18 +4821,18 @@ let ut = class {
|
|
|
4821
4821
|
return c;
|
|
4822
4822
|
}
|
|
4823
4823
|
E = l.length;
|
|
4824
|
-
let
|
|
4824
|
+
let y = n;
|
|
4825
4825
|
for (; _ < E; ) {
|
|
4826
4826
|
const m = l[_++], S = l[_++];
|
|
4827
4827
|
try {
|
|
4828
|
-
|
|
4828
|
+
y = m(y);
|
|
4829
4829
|
} catch (w) {
|
|
4830
4830
|
S.call(this, w);
|
|
4831
4831
|
break;
|
|
4832
4832
|
}
|
|
4833
4833
|
}
|
|
4834
4834
|
try {
|
|
4835
|
-
c = pi.call(this,
|
|
4835
|
+
c = pi.call(this, y);
|
|
4836
4836
|
} catch (m) {
|
|
4837
4837
|
return Promise.reject(m);
|
|
4838
4838
|
}
|
|
@@ -5072,7 +5072,7 @@ const {
|
|
|
5072
5072
|
const { apiUrl: e, apiRequestHeaders: t, debug: n } = ga(), r = (c) => {
|
|
5073
5073
|
n && (c.response ? (console.log("data:", c.response.data), console.log("status:", c.response.status), console.log("headers:", c.response.headers)) : c.request ? console.log("request:", c.request) : console.log("error:", c.message), console.log("config:", c.config));
|
|
5074
5074
|
}, s = async (c, _, E) => {
|
|
5075
|
-
let
|
|
5075
|
+
let y = !1, m = null, S = null;
|
|
5076
5076
|
try {
|
|
5077
5077
|
const w = t;
|
|
5078
5078
|
w.Authorization = `Bearer ${_}`, m = await K.request({
|
|
@@ -5082,13 +5082,13 @@ const {
|
|
|
5082
5082
|
url: c.url || "/",
|
|
5083
5083
|
baseURL: e,
|
|
5084
5084
|
headers: w
|
|
5085
|
-
}),
|
|
5085
|
+
}), y = !0;
|
|
5086
5086
|
} catch (w) {
|
|
5087
|
-
S = w,
|
|
5087
|
+
S = w, y = !1, w.response && w.response.status == 401 ? E?.() : r(w);
|
|
5088
5088
|
}
|
|
5089
5089
|
return {
|
|
5090
|
-
success:
|
|
5091
|
-
failure: !
|
|
5090
|
+
success: y,
|
|
5091
|
+
failure: !y,
|
|
5092
5092
|
result: m ? m.data : null,
|
|
5093
5093
|
error: S
|
|
5094
5094
|
};
|
|
@@ -5158,7 +5158,7 @@ function wm(...e) {
|
|
|
5158
5158
|
];
|
|
5159
5159
|
}, ([r, s, i, a], l, d) => {
|
|
5160
5160
|
if (!r?.length || !s?.length || !i?.length) return;
|
|
5161
|
-
const u = _m(a) ? { ...a } : a, c = r.flatMap((_) => s.flatMap((E) => i.map((
|
|
5161
|
+
const u = _m(a) ? { ...a } : a, c = r.flatMap((_) => s.flatMap((E) => i.map((y) => t(_, E, y, u))));
|
|
5162
5162
|
d(() => {
|
|
5163
5163
|
c.forEach((_) => _());
|
|
5164
5164
|
});
|
|
@@ -5190,8 +5190,8 @@ function Yt(e, t = {}) {
|
|
|
5190
5190
|
if (i.value) {
|
|
5191
5191
|
i.value = !s.value, l.value = wt(e).split(",").some((u) => {
|
|
5192
5192
|
const c = u.includes("not all"), _ = u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), E = u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
5193
|
-
let
|
|
5194
|
-
return _ &&
|
|
5193
|
+
let y = !!(_ || E);
|
|
5194
|
+
return _ && y && (y = r >= yi(_[1])), E && y && (y = r <= yi(E[1])), c ? !y : y;
|
|
5195
5195
|
});
|
|
5196
5196
|
return;
|
|
5197
5197
|
}
|
|
@@ -5246,7 +5246,7 @@ const En = () => {
|
|
|
5246
5246
|
)}"></video></p><br>`
|
|
5247
5247
|
);
|
|
5248
5248
|
}), L;
|
|
5249
|
-
},
|
|
5249
|
+
}, y = (T, W) => E(T, W), m = Yt("(min-width: 1536px)"), S = Yt(
|
|
5250
5250
|
"(min-width: 1280px) and (max-width: 1535px)"
|
|
5251
5251
|
), w = Yt(
|
|
5252
5252
|
"(min-width: 1024px) and (max-width: 1279px)"
|
|
@@ -5351,7 +5351,7 @@ const En = () => {
|
|
|
5351
5351
|
}
|
|
5352
5352
|
},
|
|
5353
5353
|
getMenuHref: (T) => T?.targetType === "external-link" ? T?.url || "" : T?.path || "",
|
|
5354
|
-
rHtml:
|
|
5354
|
+
rHtml: y,
|
|
5355
5355
|
tr: _
|
|
5356
5356
|
};
|
|
5357
5357
|
}, Dm = () => {
|
|
@@ -5367,7 +5367,7 @@ const En = () => {
|
|
|
5367
5367
|
return n.pageData?.sections?.find(
|
|
5368
5368
|
(N) => N.slug == v && N.pivot?.linkId == b
|
|
5369
5369
|
)?.pivot?.settings || null;
|
|
5370
|
-
}, E = (O, x) => _(O)?.[x],
|
|
5370
|
+
}, E = (O, x) => _(O)?.[x], y = (O, x, v) => E(O, x)?.[v], m = async (O, x, v = "default") => {
|
|
5371
5371
|
const b = await e({
|
|
5372
5372
|
url: `section-data/${O}/source/${x}/link/${v}`
|
|
5373
5373
|
});
|
|
@@ -5499,7 +5499,7 @@ const En = () => {
|
|
|
5499
5499
|
getSectionData: u,
|
|
5500
5500
|
getSectionSettings: _,
|
|
5501
5501
|
getSectionSettingsGroup: E,
|
|
5502
|
-
getSectionSetting:
|
|
5502
|
+
getSectionSetting: y,
|
|
5503
5503
|
getAnySectionData: m,
|
|
5504
5504
|
getSectionRootData: c,
|
|
5505
5505
|
getContentModel: S,
|
|
@@ -5569,19 +5569,19 @@ const En = () => {
|
|
|
5569
5569
|
const d = te({}), u = Dn(En()), c = Ot(Rr);
|
|
5570
5570
|
return Dt(() => {
|
|
5571
5571
|
const _ = () => {
|
|
5572
|
-
Object.keys(d.value).forEach((
|
|
5573
|
-
d.value[
|
|
5574
|
-
const m = document.getElementById(
|
|
5572
|
+
Object.keys(d.value).forEach((y) => {
|
|
5573
|
+
d.value[y].isActive = !1;
|
|
5574
|
+
const m = document.getElementById(y);
|
|
5575
5575
|
m && (m.style.border = "none", m.style.boxShadow = "none");
|
|
5576
5576
|
});
|
|
5577
|
-
}, E = (
|
|
5578
|
-
switch (
|
|
5577
|
+
}, E = (y) => {
|
|
5578
|
+
switch (y.data?.type) {
|
|
5579
5579
|
case pe.RELOAD:
|
|
5580
|
-
sessionStorage.setItem("shouldNotifyReload", "1"), sessionStorage.setItem("replyOrigin",
|
|
5580
|
+
sessionStorage.setItem("shouldNotifyReload", "1"), sessionStorage.setItem("replyOrigin", y.origin), window.location.reload();
|
|
5581
5581
|
break;
|
|
5582
5582
|
case pe.ENABLE_EDITION_MODE: {
|
|
5583
|
-
const m =
|
|
5584
|
-
sessionStorage.setItem("replyOrigin",
|
|
5583
|
+
const m = y.data?.primaryColor ?? "blue";
|
|
5584
|
+
sessionStorage.setItem("replyOrigin", y.origin), sessionStorage.setItem("primaryColor", m), r?.forEach((S, w) => {
|
|
5585
5585
|
if (S.slug && S.pivot?.linkId) {
|
|
5586
5586
|
const P = `${S.slug}__${S.pivot?.linkId}-container`, B = document.getElementById(P);
|
|
5587
5587
|
B && (d.value[P] = {
|
|
@@ -5595,7 +5595,7 @@ const En = () => {
|
|
|
5595
5595
|
slug: S.slug,
|
|
5596
5596
|
linkId: S.pivot?.linkId
|
|
5597
5597
|
},
|
|
5598
|
-
|
|
5598
|
+
y.origin
|
|
5599
5599
|
);
|
|
5600
5600
|
}), B.style.cursor = "pointer", B.style.transition = "all 0.3s ease");
|
|
5601
5601
|
}
|
|
@@ -5608,10 +5608,10 @@ const En = () => {
|
|
|
5608
5608
|
case pe.SELECT_SIDEBAR_SECTION: {
|
|
5609
5609
|
setTimeout(() => {
|
|
5610
5610
|
r.find(
|
|
5611
|
-
(w) => w.slug ==
|
|
5612
|
-
) && Is(`${
|
|
5611
|
+
(w) => w.slug == y.data?.slug && w.pivot?.linkId == y.data?.linkId
|
|
5612
|
+
) && Is(`${y.data?.slug}__${y.data?.linkId}-container`);
|
|
5613
5613
|
}, 1e3);
|
|
5614
|
-
const m = `${
|
|
5614
|
+
const m = `${y.data?.slug}__${y.data?.linkId}-container`, S = document.getElementById(m);
|
|
5615
5615
|
S && (_(), d.value[m].clickCount++, d.value[m].isActive = !0, S.style.border = `5px solid ${sessionStorage.getItem(
|
|
5616
5616
|
"primaryColor"
|
|
5617
5617
|
)}`, S.style.boxShadow = `0 0 10px ${sessionStorage.getItem(
|
|
@@ -5623,32 +5623,32 @@ const En = () => {
|
|
|
5623
5623
|
case pe.SEND_SECTION_SETTINGS:
|
|
5624
5624
|
{
|
|
5625
5625
|
const m = u.pageData?.sections?.findIndex(
|
|
5626
|
-
(S) => S.slug ==
|
|
5626
|
+
(S) => S.slug == y.data?.slug && S.pivot?.linkId == y.data?.linkId
|
|
5627
5627
|
);
|
|
5628
5628
|
if (typeof m != "number")
|
|
5629
5629
|
return;
|
|
5630
|
-
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.settings && (u.pageData.sections[m].pivot.settings =
|
|
5630
|
+
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.settings && (u.pageData.sections[m].pivot.settings = y.data?.settings, c?.sync(u), a.value[`${y.data?.slug}__${y.data?.linkId}-key`] = Pt());
|
|
5631
5631
|
}
|
|
5632
5632
|
break;
|
|
5633
5633
|
case pe.SEND_BASE_SECTION_DATA:
|
|
5634
5634
|
case pe.SEND_SECTION_DATA:
|
|
5635
5635
|
{
|
|
5636
5636
|
const m = u.pageData?.sections?.findIndex(
|
|
5637
|
-
(S) => S.slug ==
|
|
5637
|
+
(S) => S.slug == y.data?.slug && S.pivot?.linkId == y.data?.linkId
|
|
5638
5638
|
);
|
|
5639
5639
|
if (typeof m != "number")
|
|
5640
5640
|
return;
|
|
5641
|
-
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.data && (u.pageData.sections[m].pivot.data =
|
|
5641
|
+
m > -1 && u.pageData?.sections && u.pageData?.sections[m].pivot?.data && (u.pageData.sections[m].pivot.data = y.data?.data, c?.sync(u), a.value[`${y.data?.slug}__${y.data?.linkId}-key`] = Pt());
|
|
5642
5642
|
}
|
|
5643
5643
|
break;
|
|
5644
5644
|
case pe.SEND_PAGE_SECTIONS:
|
|
5645
5645
|
{
|
|
5646
5646
|
if (!u.pageData) return;
|
|
5647
|
-
u.pageData.sectionsOrder =
|
|
5647
|
+
u.pageData.sectionsOrder = y.data?.sectionsOrder, u.pageData.sectionsDisabled = y.data?.sectionsDisabled;
|
|
5648
5648
|
const m = Dn(
|
|
5649
5649
|
u.pageData.sections || []
|
|
5650
5650
|
);
|
|
5651
|
-
u.pageData.sections =
|
|
5651
|
+
u.pageData.sections = y.data?.sectionsList || [], m.forEach((S) => {
|
|
5652
5652
|
const w = u.pageData?.sections?.findIndex(
|
|
5653
5653
|
(P) => P.slug == S?.slug && P.pivot?.linkId == S.pivot?.linkId
|
|
5654
5654
|
);
|
|
@@ -5661,31 +5661,35 @@ const En = () => {
|
|
|
5661
5661
|
}
|
|
5662
5662
|
};
|
|
5663
5663
|
if (window.addEventListener("message", E), sessionStorage.getItem("shouldNotifyReload") === "1") {
|
|
5664
|
-
const
|
|
5664
|
+
const y = sessionStorage.getItem("replyOrigin") || "*";
|
|
5665
5665
|
window.parent.postMessage(
|
|
5666
5666
|
{ type: pe.RELOAD_COMPLETE },
|
|
5667
|
-
|
|
5667
|
+
y
|
|
5668
5668
|
), sessionStorage.removeItem("shouldNotifyReload"), sessionStorage.removeItem("replyOrigin");
|
|
5669
5669
|
}
|
|
5670
|
-
}), (_, E) => (we(), Qe("
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5670
|
+
}), (_, E) => (we(), Qe("div", {
|
|
5671
|
+
key: $(i),
|
|
5672
|
+
class: "reset-styles"
|
|
5673
|
+
}, [
|
|
5674
|
+
(we(!0), Qe(ml, null, pl($(r), (y) => (we(), Qe("section", {
|
|
5675
|
+
key: `${y.slug}__${y.pivot?.linkId}`,
|
|
5676
|
+
id: `${y.slug}__${y.pivot?.linkId}-container`,
|
|
5674
5677
|
class: "reset-styles"
|
|
5675
5678
|
}, [
|
|
5676
|
-
(we(), Tn(_l($(s)[
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5679
|
+
(we(), Tn(_l($(s)[y.name]), {
|
|
5680
|
+
key: $(a)[`${y.slug}__${y.pivot?.linkId}-key`],
|
|
5681
|
+
data: y.pivot?.data,
|
|
5682
|
+
settings: y.pivot?.settings,
|
|
5683
|
+
"section-key": `${y.slug}__${y.pivot?.linkId}`,
|
|
5680
5684
|
metadata: {
|
|
5681
|
-
slug:
|
|
5682
|
-
name:
|
|
5683
|
-
title:
|
|
5684
|
-
linkId:
|
|
5685
|
-
createdAt:
|
|
5686
|
-
updatedAt:
|
|
5685
|
+
slug: y.slug,
|
|
5686
|
+
name: y.name,
|
|
5687
|
+
title: y.title,
|
|
5688
|
+
linkId: y.pivot?.linkId,
|
|
5689
|
+
createdAt: y.createdAt,
|
|
5690
|
+
updatedAt: y.updatedAt
|
|
5687
5691
|
}
|
|
5688
|
-
}, null, 8, ["data", "
|
|
5692
|
+
}, null, 8, ["data", "settings", "section-key", "metadata"]))
|
|
5689
5693
|
], 8, km))), 128))
|
|
5690
5694
|
]));
|
|
5691
5695
|
}
|
|
@@ -5694,7 +5698,7 @@ const En = () => {
|
|
|
5694
5698
|
for (const [r, s] of t)
|
|
5695
5699
|
n[r] = s;
|
|
5696
5700
|
return n;
|
|
5697
|
-
}, Tm = /* @__PURE__ */ Ga(Em, [["__scopeId", "data-v-
|
|
5701
|
+
}, Tm = /* @__PURE__ */ Ga(Em, [["__scopeId", "data-v-a22a6a53"]]), Mm = ["src", "alt", "title", "width", "height", "loading"], Va = /* @__PURE__ */ tt({
|
|
5698
5702
|
__name: "AsyncImg",
|
|
5699
5703
|
props: {
|
|
5700
5704
|
load: { type: Function },
|
|
@@ -5844,8 +5848,8 @@ const En = () => {
|
|
|
5844
5848
|
}, c = () => {
|
|
5845
5849
|
s.value = "", i.value = "auto", r.value = !1, l.value = !1;
|
|
5846
5850
|
}, _ = () => {
|
|
5847
|
-
const
|
|
5848
|
-
if (i.value =
|
|
5851
|
+
const y = n.value?.getBoundingClientRect().width;
|
|
5852
|
+
if (i.value = y || "auto", (n.value?.getBoundingClientRect().bottom || 0) > t.bottom) {
|
|
5849
5853
|
d();
|
|
5850
5854
|
return;
|
|
5851
5855
|
}
|
|
@@ -5853,7 +5857,7 @@ const En = () => {
|
|
|
5853
5857
|
}, E = () => {
|
|
5854
5858
|
l.value && (i.value = n.value?.getBoundingClientRect().width + "px");
|
|
5855
5859
|
};
|
|
5856
|
-
return (
|
|
5860
|
+
return (y, m) => (we(), Qe("div", {
|
|
5857
5861
|
ref_key: "el",
|
|
5858
5862
|
ref: n,
|
|
5859
5863
|
style: Wt({ height: $(a) + "px", zIndex: t.zIndex })
|
|
@@ -5868,7 +5872,7 @@ const En = () => {
|
|
|
5868
5872
|
height: $(a) + "px"
|
|
5869
5873
|
})
|
|
5870
5874
|
}, [
|
|
5871
|
-
Mn(
|
|
5875
|
+
Mn(y.$slots, "default", {}, () => [
|
|
5872
5876
|
m[0] || (m[0] = Ke("div", null, "Sticky Bottom", -1))
|
|
5873
5877
|
])
|
|
5874
5878
|
], 6)
|
|
@@ -5897,8 +5901,8 @@ const En = () => {
|
|
|
5897
5901
|
}, c = () => {
|
|
5898
5902
|
s.value = "", i.value = "auto", r.value = !1, l.value = !1;
|
|
5899
5903
|
}, _ = () => {
|
|
5900
|
-
const
|
|
5901
|
-
if (i.value =
|
|
5904
|
+
const y = n.value?.getBoundingClientRect().width;
|
|
5905
|
+
if (i.value = y || "auto", (n.value?.getBoundingClientRect().top || 0) < t.top) {
|
|
5902
5906
|
d();
|
|
5903
5907
|
return;
|
|
5904
5908
|
}
|
|
@@ -5906,7 +5910,7 @@ const En = () => {
|
|
|
5906
5910
|
}, E = () => {
|
|
5907
5911
|
l.value && (i.value = n.value?.getBoundingClientRect().width + "px");
|
|
5908
5912
|
};
|
|
5909
|
-
return (
|
|
5913
|
+
return (y, m) => (we(), Qe("div", {
|
|
5910
5914
|
ref_key: "el",
|
|
5911
5915
|
ref: n,
|
|
5912
5916
|
style: Wt({ height: $(a) + "px", zIndex: t.zIndex })
|
|
@@ -5921,7 +5925,7 @@ const En = () => {
|
|
|
5921
5925
|
height: $(a) + "px"
|
|
5922
5926
|
})
|
|
5923
5927
|
}, [
|
|
5924
|
-
Mn(
|
|
5928
|
+
Mn(y.$slots, "default", {}, () => [
|
|
5925
5929
|
m[0] || (m[0] = Ke("div", null, "Sticky Top", -1))
|
|
5926
5930
|
])
|
|
5927
5931
|
], 6)
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.reset-styles[data-v-
|
|
1
|
+
.reset-styles[data-v-a22a6a53]{all:unset!important}.fade-enter-active[data-v-30b5e62e],.fade-leave-active[data-v-30b5e62e]{transition:opacity .5s ease}.fade-enter-from[data-v-30b5e62e],.fade-leave-to[data-v-30b5e62e]{opacity:0}.slide-fade-enter-active[data-v-30b5e62e]{transition:all .3s ease-out}.slide-fade-leave-active[data-v-30b5e62e]{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-30b5e62e],.slide-fade-leave-to[data-v-30b5e62e]{transform:translate(20px);opacity:0}.bounce-enter-active[data-v-30b5e62e]{animation:bounce-in-30b5e62e .5s}.bounce-leave-active[data-v-30b5e62e]{animation:bounce-in-30b5e62e .5s reverse}@keyframes bounce-in-30b5e62e{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}
|