@campphillip/widgets 3.1.7 → 3.1.8
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/campphillip.js +70 -70
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/campphillip.js
CHANGED
|
@@ -48,7 +48,7 @@ var D = On() ? Object.assign : function(t, e) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
return n;
|
|
51
|
-
}, Ee = {}, vt = {},
|
|
51
|
+
}, Ee = {}, vt = {}, z = {}, Ue = {};
|
|
52
52
|
Object.defineProperty(Ue, "__esModule", { value: !0 });
|
|
53
53
|
function En(t) {
|
|
54
54
|
return typeof t == "function";
|
|
@@ -229,7 +229,7 @@ var Tr = j && j.__extends || function() {
|
|
|
229
229
|
e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
230
230
|
};
|
|
231
231
|
}();
|
|
232
|
-
Object.defineProperty(
|
|
232
|
+
Object.defineProperty(z, "__esModule", { value: !0 });
|
|
233
233
|
var Wt = Ue, ot = ke, An = mt, Rn = wt, ue = Se, je = Ne, jr = function(t) {
|
|
234
234
|
Tr(e, t);
|
|
235
235
|
function e(r, n, a) {
|
|
@@ -277,7 +277,7 @@ var Wt = Ue, ot = ke, An = mt, Rn = wt, ue = Se, je = Ne, jr = function(t) {
|
|
|
277
277
|
return this._parentOrParents = null, this.unsubscribe(), this.closed = !1, this.isStopped = !1, this._parentOrParents = r, this;
|
|
278
278
|
}, e;
|
|
279
279
|
}(An.Subscription);
|
|
280
|
-
|
|
280
|
+
z.Subscriber = jr;
|
|
281
281
|
var st = function(t) {
|
|
282
282
|
Tr(e, t);
|
|
283
283
|
function e(r, n, a, i) {
|
|
@@ -338,7 +338,7 @@ var st = function(t) {
|
|
|
338
338
|
this._context = null, this._parentSubscriber = null, r.unsubscribe();
|
|
339
339
|
}, e;
|
|
340
340
|
}(jr);
|
|
341
|
-
|
|
341
|
+
z.SafeSubscriber = st;
|
|
342
342
|
var In = j && j.__extends || function() {
|
|
343
343
|
var t = function(e, r) {
|
|
344
344
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
|
|
@@ -357,7 +357,7 @@ var In = j && j.__extends || function() {
|
|
|
357
357
|
};
|
|
358
358
|
}();
|
|
359
359
|
Object.defineProperty(vt, "__esModule", { value: !0 });
|
|
360
|
-
var $n =
|
|
360
|
+
var $n = z;
|
|
361
361
|
function Un(t, e) {
|
|
362
362
|
return function(n) {
|
|
363
363
|
return n.lift(new kn(t, e));
|
|
@@ -407,7 +407,7 @@ var xe = {}, He = {}, Hn = j && j.__extends || function() {
|
|
|
407
407
|
};
|
|
408
408
|
}();
|
|
409
409
|
Object.defineProperty(He, "__esModule", { value: !0 });
|
|
410
|
-
var Wn =
|
|
410
|
+
var Wn = z;
|
|
411
411
|
function Ln(t, e) {
|
|
412
412
|
return function(n) {
|
|
413
413
|
if (typeof t != "function")
|
|
@@ -446,8 +446,8 @@ xe.map = He.map;
|
|
|
446
446
|
var Bn = function(t) {
|
|
447
447
|
var e = typeof t;
|
|
448
448
|
return t !== null && (e === "object" || e === "function");
|
|
449
|
-
}, Yn = Bn, ut = Object.prototype.hasOwnProperty,
|
|
450
|
-
function
|
|
449
|
+
}, Yn = Bn, ut = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable;
|
|
450
|
+
function zn(t) {
|
|
451
451
|
if (t == null)
|
|
452
452
|
throw new TypeError("Sources cannot be null or undefined");
|
|
453
453
|
return Object(t);
|
|
@@ -468,11 +468,11 @@ function qr(t, e) {
|
|
|
468
468
|
ut.call(e, r) && Lt(t, e, r);
|
|
469
469
|
if (Object.getOwnPropertySymbols)
|
|
470
470
|
for (var n = Object.getOwnPropertySymbols(e), a = 0; a < n.length; a++)
|
|
471
|
-
|
|
471
|
+
Xn.call(e, n[a]) && Lt(t, e, n[a]);
|
|
472
472
|
return t;
|
|
473
473
|
}
|
|
474
474
|
var Vn = function(e) {
|
|
475
|
-
e =
|
|
475
|
+
e = zn(e);
|
|
476
476
|
for (var r = 1; r < arguments.length; r++)
|
|
477
477
|
qr(e, arguments[r]);
|
|
478
478
|
return e;
|
|
@@ -747,7 +747,7 @@ var fe = encodeURIComponent, Ir = function(t) {
|
|
|
747
747
|
}, g);
|
|
748
748
|
}, We = {}, Ot = {};
|
|
749
749
|
Object.defineProperty(Ot, "__esModule", { value: !0 });
|
|
750
|
-
var ra =
|
|
750
|
+
var ra = z;
|
|
751
751
|
function na(t) {
|
|
752
752
|
for (; t; ) {
|
|
753
753
|
var e = t, r = e.closed, n = e.destination, a = e.isStopped;
|
|
@@ -760,7 +760,7 @@ function na(t) {
|
|
|
760
760
|
Ot.canReportError = na;
|
|
761
761
|
var Et = {};
|
|
762
762
|
Object.defineProperty(Et, "__esModule", { value: !0 });
|
|
763
|
-
var Ke =
|
|
763
|
+
var Ke = z, Bt = wt, aa = ke;
|
|
764
764
|
function ia(t, e, r) {
|
|
765
765
|
if (t) {
|
|
766
766
|
if (t instanceof Ke.Subscriber)
|
|
@@ -878,7 +878,7 @@ var Ur = {}, Ct = {}, Pt = {}, pa = j && j.__extends || function() {
|
|
|
878
878
|
};
|
|
879
879
|
}();
|
|
880
880
|
Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
881
|
-
var va =
|
|
881
|
+
var va = z;
|
|
882
882
|
function ma(t, e) {
|
|
883
883
|
var r = !1;
|
|
884
884
|
return arguments.length >= 2 && (r = !0), function(a) {
|
|
@@ -968,7 +968,7 @@ var wa = j && j.__extends || function() {
|
|
|
968
968
|
};
|
|
969
969
|
}();
|
|
970
970
|
Object.defineProperty(Tt, "__esModule", { value: !0 });
|
|
971
|
-
var _a =
|
|
971
|
+
var _a = z, Oa = jt, Ea = kr;
|
|
972
972
|
function Sa(t) {
|
|
973
973
|
return function(r) {
|
|
974
974
|
return t === 0 ? Ea.empty() : r.lift(new xa(t));
|
|
@@ -1024,7 +1024,7 @@ var xa = function() {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}();
|
|
1026
1026
|
Object.defineProperty(Dt, "__esModule", { value: !0 });
|
|
1027
|
-
var Ta =
|
|
1027
|
+
var Ta = z;
|
|
1028
1028
|
function ja(t) {
|
|
1029
1029
|
return t === void 0 && (t = null), function(e) {
|
|
1030
1030
|
return e.lift(new Da(t));
|
|
@@ -1051,14 +1051,14 @@ var Da = function() {
|
|
|
1051
1051
|
}, e;
|
|
1052
1052
|
}(Ta.Subscriber);
|
|
1053
1053
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
1054
|
-
var
|
|
1054
|
+
var Xt = Pt, zt = Tt, Ma = Dt, Vt = Ce;
|
|
1055
1055
|
function Aa(t, e) {
|
|
1056
1056
|
return arguments.length >= 2 ? function(n) {
|
|
1057
|
-
return Vt.pipe(
|
|
1057
|
+
return Vt.pipe(Xt.scan(t, e), zt.takeLast(1), Ma.defaultIfEmpty(e))(n);
|
|
1058
1058
|
} : function(n) {
|
|
1059
|
-
return Vt.pipe(
|
|
1059
|
+
return Vt.pipe(Xt.scan(function(a, i, o) {
|
|
1060
1060
|
return t(a, i, o + 1);
|
|
1061
|
-
}),
|
|
1061
|
+
}), zt.takeLast(1))(n);
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
1064
|
Ct.reduce = Aa;
|
|
@@ -1384,9 +1384,9 @@ var Fa = Wr.exports, Ba = Fa, Ya = typeof window > "u" || !window.EventSource ?
|
|
|
1384
1384
|
) : (
|
|
1385
1385
|
// Use native EventSource when we can
|
|
1386
1386
|
window.EventSource
|
|
1387
|
-
),
|
|
1388
|
-
return
|
|
1389
|
-
},
|
|
1387
|
+
), Xa = "https://docs.sanity.io/help/", Mt = function(e) {
|
|
1388
|
+
return Xa + e;
|
|
1389
|
+
}, za = function(t, e) {
|
|
1390
1390
|
return e.reduce(function(r, n) {
|
|
1391
1391
|
return typeof t[n] > "u" || (r[n] = t[n]), r;
|
|
1392
1392
|
}, {});
|
|
@@ -1424,7 +1424,7 @@ function Qt(t) {
|
|
|
1424
1424
|
function Ga(t, e, r) {
|
|
1425
1425
|
return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
1426
1426
|
}
|
|
1427
|
-
var Qa = D, Jt = Hr, Ja = Ya, Ka = Mt, Za =
|
|
1427
|
+
var Qa = D, Jt = Hr, Ja = Ya, Ka = Mt, Za = za, ei = Lr, ti = Va, ri = Ir, ni = 16e3 - 1200, ai = ["Using token with listeners is not supported in browsers. ", "For more info, see ".concat(Ka("js-client-listener-tokens-browser"), ".")], ii = ei(function() {
|
|
1428
1428
|
return console.warn(ai.join(" "));
|
|
1429
1429
|
}), Fr = !!(typeof window < "u" && window.EventSource), Kt = Fr ? window.EventSource : Ja, oi = ["includePreviousRevision", "includeResult", "visibility", "effectFormat", "tag"], si = {
|
|
1430
1430
|
includeResult: !0
|
|
@@ -1669,10 +1669,10 @@ Ei(Yr.prototype, {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
var xi = Yr, Ci = D;
|
|
1672
|
-
function
|
|
1672
|
+
function Xr(t) {
|
|
1673
1673
|
this.client = t;
|
|
1674
1674
|
}
|
|
1675
|
-
Ci(
|
|
1675
|
+
Ci(Xr.prototype, {
|
|
1676
1676
|
list: function() {
|
|
1677
1677
|
return this.client.request({
|
|
1678
1678
|
uri: "/projects"
|
|
@@ -1684,7 +1684,7 @@ Ci(zr.prototype, {
|
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
|
-
var Pi =
|
|
1687
|
+
var Pi = Xr, Ti = function(t) {
|
|
1688
1688
|
var e = [];
|
|
1689
1689
|
for (var r in t)
|
|
1690
1690
|
t.hasOwnProperty(r) && e.push("".concat(encodeURIComponent(r), "=").concat(encodeURIComponent(t[r])));
|
|
@@ -1738,7 +1738,7 @@ function Ai(t) {
|
|
|
1738
1738
|
if (Array.isArray(t))
|
|
1739
1739
|
return t;
|
|
1740
1740
|
}
|
|
1741
|
-
var
|
|
1741
|
+
var zr = D, Ri = xe, Ii = Ri.map, $i = Ee, Ui = $i.filter, ki = Ti, Me = te;
|
|
1742
1742
|
function Vr(t) {
|
|
1743
1743
|
this.client = t;
|
|
1744
1744
|
}
|
|
@@ -1752,12 +1752,12 @@ function Ni(t) {
|
|
|
1752
1752
|
}), e;
|
|
1753
1753
|
}
|
|
1754
1754
|
function Hi(t, e) {
|
|
1755
|
-
return typeof window > "u" || !(e instanceof window.File) ? t :
|
|
1755
|
+
return typeof window > "u" || !(e instanceof window.File) ? t : zr({
|
|
1756
1756
|
filename: t.preserveFilename === !1 ? void 0 : e.name,
|
|
1757
1757
|
contentType: e.type
|
|
1758
1758
|
}, t);
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1760
|
+
zr(Vr.prototype, {
|
|
1761
1761
|
/**
|
|
1762
1762
|
* Upload an asset
|
|
1763
1763
|
*
|
|
@@ -1859,7 +1859,7 @@ Bi(Qr.prototype, {
|
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
});
|
|
1862
|
-
var Yi = Qr,
|
|
1862
|
+
var Yi = Qr, Xi = function() {
|
|
1863
1863
|
var e = [];
|
|
1864
1864
|
return {
|
|
1865
1865
|
subscribe: r,
|
|
@@ -1875,7 +1875,7 @@ var Yi = Qr, zi = function() {
|
|
|
1875
1875
|
for (var a = 0; a < e.length; a++)
|
|
1876
1876
|
e[a].apply(null, arguments);
|
|
1877
1877
|
}
|
|
1878
|
-
},
|
|
1878
|
+
}, zi = function(t) {
|
|
1879
1879
|
var e = function(n, a) {
|
|
1880
1880
|
for (var i = arguments.length, o = Array(i > 2 ? i - 2 : 0), s = 2; s < i; s++)
|
|
1881
1881
|
o[s - 2] = arguments[s];
|
|
@@ -1971,9 +1971,9 @@ function Kr(t) {
|
|
|
1971
1971
|
t = t || r;
|
|
1972
1972
|
var n = {}, a = typeof t, i;
|
|
1973
1973
|
if (t.protocol === "blob:")
|
|
1974
|
-
n = new
|
|
1974
|
+
n = new X(unescape(t.pathname), {});
|
|
1975
1975
|
else if (a === "string") {
|
|
1976
|
-
n = new
|
|
1976
|
+
n = new X(t, {});
|
|
1977
1977
|
for (i in ir)
|
|
1978
1978
|
delete n[i];
|
|
1979
1979
|
} else if (a === "object") {
|
|
@@ -2003,9 +2003,9 @@ function ao(t, e) {
|
|
|
2003
2003
|
r[n] === "." ? r.splice(n, 1) : r[n] === ".." ? (r.splice(n, 1), o++) : o && (n === 0 && (i = !0), r.splice(n, 1), o--);
|
|
2004
2004
|
return i && r.unshift(""), (a === "." || a === "..") && r.push(""), r.join("/");
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2007
|
-
if (t = Rt(t), !(this instanceof
|
|
2008
|
-
return new
|
|
2006
|
+
function X(t, e, r) {
|
|
2007
|
+
if (t = Rt(t), !(this instanceof X))
|
|
2008
|
+
return new X(t, e, r);
|
|
2009
2009
|
var n, a, i, o, s, u, c = lt.slice(), g = typeof e, d = this, p = 0;
|
|
2010
2010
|
for (g !== "object" && g !== "string" && (r = e, e = null), r && typeof r != "function" && (r = Le.parse), e = Kr(e), a = Zr(t || "", e), n = !a.protocol && !a.slashes, d.slashes = a.slashes || n && e.slashes, d.protocol = a.protocol || e.protocol || "", t = a.rest, (a.protocol === "file:" && (a.slashesCount !== 2 || to.test(t)) || !a.slashes && (a.protocol || a.slashesCount < 2 || !Q(d.protocol))) && (c[3] = [/(.*)/, "pathname"]); p < c.length; p++) {
|
|
2011
2011
|
if (o = c[p], typeof o == "function") {
|
|
@@ -2063,12 +2063,12 @@ function oo(t) {
|
|
|
2063
2063
|
var a = n + (r.protocol && r.slashes || Q(r.protocol) ? "//" : "");
|
|
2064
2064
|
return r.username ? (a += r.username, r.password && (a += ":" + r.password), a += "@") : r.password && (a += ":" + r.password, a += "@"), a += r.host + r.pathname, e = typeof r.query == "object" ? t(r.query) : r.query, e && (a += e.charAt(0) !== "?" ? "?" + e : e), r.hash && (a += r.hash), a;
|
|
2065
2065
|
}
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
var so =
|
|
2066
|
+
X.prototype = { set: io, toString: oo };
|
|
2067
|
+
X.extractProtocol = Zr;
|
|
2068
|
+
X.location = Kr;
|
|
2069
|
+
X.trimLeft = Rt;
|
|
2070
|
+
X.qs = Le;
|
|
2071
|
+
var so = X, rt = D, uo = so, co = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", fo = Object.prototype.hasOwnProperty, dt = { timeout: co ? 6e4 : 12e4 }, lo = function(t) {
|
|
2072
2072
|
var e = typeof t == "string" ? rt({ url: t }, dt) : rt({}, dt, t), r = uo(
|
|
2073
2073
|
e.url,
|
|
2074
2074
|
{},
|
|
@@ -2264,7 +2264,7 @@ var Po = function(t, e) {
|
|
|
2264
2264
|
F(), C = !0, e(null, oe());
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
}, To = Po, jo =
|
|
2267
|
+
}, To = Po, jo = Xi, Do = zi, qo = lo, Mo = mo, Ao = To, Ro = ["request", "response", "progress", "error", "abort"], fr = ["processOptions", "validateOptions", "interceptRequest", "finalizeOptions", "onRequest", "onResponse", "onError", "onReturn", "onHeaders"], Io = function t() {
|
|
2268
2268
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ao, n = [], a = fr.reduce(function(o, s) {
|
|
2269
2269
|
return o[s] = o[s] || [], o;
|
|
2270
2270
|
}, {
|
|
@@ -2365,15 +2365,15 @@ var Lo = function(e) {
|
|
|
2365
2365
|
return typeof t;
|
|
2366
2366
|
} : function(t) {
|
|
2367
2367
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2368
|
-
}, hr = D, Bo = Lo, Yo = ["boolean", "string", "number"],
|
|
2368
|
+
}, hr = D, Bo = Lo, Yo = ["boolean", "string", "number"], Xo = function(e) {
|
|
2369
2369
|
return !!e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
|
|
2370
|
-
},
|
|
2370
|
+
}, zo = function() {
|
|
2371
2371
|
return {
|
|
2372
2372
|
processOptions: function(e) {
|
|
2373
2373
|
var r = e.body;
|
|
2374
2374
|
if (!r)
|
|
2375
2375
|
return e;
|
|
2376
|
-
var n = typeof r.pipe == "function", a = !n && !
|
|
2376
|
+
var n = typeof r.pipe == "function", a = !n && !Xo(r) && (Yo.indexOf(typeof r > "u" ? "undefined" : Fo(r)) !== -1 || Array.isArray(r) || Bo(r));
|
|
2377
2377
|
return a ? hr({}, e, {
|
|
2378
2378
|
body: JSON.stringify(e.body),
|
|
2379
2379
|
headers: hr({}, e.headers, {
|
|
@@ -2542,7 +2542,7 @@ rn($t);
|
|
|
2542
2542
|
rn(Ut);
|
|
2543
2543
|
It.ClientError = $t;
|
|
2544
2544
|
It.ServerError = Ut;
|
|
2545
|
-
var ts = [], rs = $o, ns = D, as = No, is =
|
|
2545
|
+
var ts = [], rs = $o, ns = D, as = No, is = zo, os = Vo, ss = Jo, us = Hr, on = It, sn = on.ClientError, un = on.ServerError, cs = {
|
|
2546
2546
|
onResponse: function(e) {
|
|
2547
2547
|
if (e.statusCode >= 500)
|
|
2548
2548
|
throw new un(e);
|
|
@@ -2580,7 +2580,7 @@ var hs = Be, pr = D, ps = "X-Sanity-Project-ID", vs = function(t) {
|
|
|
2580
2580
|
json: !0,
|
|
2581
2581
|
withCredentials: a
|
|
2582
2582
|
});
|
|
2583
|
-
}, fn = {}, Pe = {}, Ye = Mt, ms = Lr,
|
|
2583
|
+
}, fn = {}, Pe = {}, Ye = Mt, ms = Lr, Xe = function(e) {
|
|
2584
2584
|
return (
|
|
2585
2585
|
// eslint-disable-next-line no-console
|
|
2586
2586
|
ms(function() {
|
|
@@ -2590,10 +2590,10 @@ var hs = Be, pr = D, ps = "X-Sanity-Project-ID", vs = function(t) {
|
|
|
2590
2590
|
})
|
|
2591
2591
|
);
|
|
2592
2592
|
};
|
|
2593
|
-
Pe.printCdnWarning =
|
|
2594
|
-
Pe.printBrowserTokenWarning =
|
|
2595
|
-
Pe.printCdnTokenWarning =
|
|
2596
|
-
Pe.printNoApiVersionSpecifiedWarning =
|
|
2593
|
+
Pe.printCdnWarning = Xe(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and", "cheaper. Think about it! For more info, see ".concat(Ye("js-client-cdn-configuration"), "."), "To hide this warning, please set the `useCdn` option to either `true` or `false` when creating", "the client."]);
|
|
2594
|
+
Pe.printBrowserTokenWarning = Xe(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.", "See ".concat(Ye("js-client-browser-token"), " for more information and how to hide this warning.")]);
|
|
2595
|
+
Pe.printCdnTokenWarning = Xe(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you", "want. The CDN cannot be used with an authorization token, since private data cannot be cached.", "See ".concat(Ye("js-client-usecdn-token"), " for more information.")]);
|
|
2596
|
+
Pe.printNoApiVersionSpecifiedWarning = Xe(["Using the Sanity client without specifying an API version is deprecated.", "See ".concat(Ye("js-client-api-version"))]);
|
|
2597
2597
|
(function(t) {
|
|
2598
2598
|
var e = Mt, r = D, n = te, a = Pe, i = "apicdn.sanity.io", o = {
|
|
2599
2599
|
apiHost: "https://api.sanity.io",
|
|
@@ -2656,7 +2656,7 @@ function gs(t) {
|
|
|
2656
2656
|
function ys(t, e, r) {
|
|
2657
2657
|
return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
2658
2658
|
}
|
|
2659
|
-
var he = D, bs = Ee, ws = bs.filter, _s = xe, Os = _s.map, Es = _t, Ss = Rr, xs = Oi, Cs = xi, Ps = Pi, Ts = Wi, js = Fi, Ds = Yi,
|
|
2659
|
+
var he = D, bs = Ee, ws = bs.filter, _s = xe, Os = _s.map, Es = _t, Ss = Rr, xs = Oi, Cs = xi, Ps = Pi, Ts = Wi, js = Fi, Ds = Yi, ze = hs, qs = vs, ln = fn, Ms = ln.defaultConfig, As = ln.initConfig, Rs = te, Is = function(e) {
|
|
2660
2660
|
return e.toPromise();
|
|
2661
2661
|
};
|
|
2662
2662
|
function W() {
|
|
@@ -2704,7 +2704,7 @@ he(W.prototype, {
|
|
|
2704
2704
|
var o = qs(this.clientConfig, he({}, e, {
|
|
2705
2705
|
url: this.getUrl(r, a)
|
|
2706
2706
|
}));
|
|
2707
|
-
return
|
|
2707
|
+
return ze(o, this.clientConfig.requester);
|
|
2708
2708
|
},
|
|
2709
2709
|
request: function(e) {
|
|
2710
2710
|
var r = this._requestObservable(e).pipe(ws(function(n) {
|
|
@@ -2717,9 +2717,9 @@ he(W.prototype, {
|
|
|
2717
2717
|
});
|
|
2718
2718
|
W.Patch = Es;
|
|
2719
2719
|
W.Transaction = Ss;
|
|
2720
|
-
W.ClientError =
|
|
2721
|
-
W.ServerError =
|
|
2722
|
-
W.requester =
|
|
2720
|
+
W.ClientError = ze.ClientError;
|
|
2721
|
+
W.ServerError = ze.ServerError;
|
|
2722
|
+
W.requester = ze.defaultRequester;
|
|
2723
2723
|
var $s = W;
|
|
2724
2724
|
const Us = /* @__PURE__ */ Pr($s);
|
|
2725
2725
|
var dn = { exports: {} };
|
|
@@ -3163,9 +3163,9 @@ const Ns = /* @__PURE__ */ Pr(ks), ve = Us({
|
|
|
3163
3163
|
}, Ys = async () => {
|
|
3164
3164
|
const t = "*[_type == 'rateCategory']|order(orderRank)";
|
|
3165
3165
|
return ve.fetch(t);
|
|
3166
|
-
},
|
|
3167
|
-
banner:
|
|
3168
|
-
},
|
|
3166
|
+
}, Xs = "_banner_1d1ur_1", mr = {
|
|
3167
|
+
banner: Xs
|
|
3168
|
+
}, zs = {
|
|
3169
3169
|
marks: {
|
|
3170
3170
|
color: ({ value: t, children: e }) => /* @__PURE__ */ m.jsx(
|
|
3171
3171
|
"span",
|
|
@@ -3193,7 +3193,7 @@ const Ns = /* @__PURE__ */ Pr(ks), ve = Us({
|
|
|
3193
3193
|
), url("${kt(t).width(1440).url()}")`
|
|
3194
3194
|
},
|
|
3195
3195
|
className: mr.banner,
|
|
3196
|
-
children: /* @__PURE__ */ m.jsx(Cr, { value: e, components:
|
|
3196
|
+
children: /* @__PURE__ */ m.jsx(Cr, { value: e, components: zs })
|
|
3197
3197
|
}
|
|
3198
3198
|
);
|
|
3199
3199
|
}, Gs = "_bannerContainer_79bac_1", Qs = "_bannerApp_79bac_8", gr = {
|
|
@@ -3667,11 +3667,11 @@ function Yu(t) {
|
|
|
3667
3667
|
var n = Ie(r);
|
|
3668
3668
|
return n;
|
|
3669
3669
|
}
|
|
3670
|
-
var
|
|
3671
|
-
function
|
|
3670
|
+
var Xu = 6048e5;
|
|
3671
|
+
function zu(t) {
|
|
3672
3672
|
M(1, arguments);
|
|
3673
3673
|
var e = N(t), r = Ie(e).getTime() - Yu(e).getTime();
|
|
3674
|
-
return Math.round(r /
|
|
3674
|
+
return Math.round(r / Xu) + 1;
|
|
3675
3675
|
}
|
|
3676
3676
|
function $e(t, e) {
|
|
3677
3677
|
M(1, arguments);
|
|
@@ -3963,7 +3963,7 @@ var le = {
|
|
|
3963
3963
|
},
|
|
3964
3964
|
// ISO week of year
|
|
3965
3965
|
I: function(t, e, r) {
|
|
3966
|
-
var n =
|
|
3966
|
+
var n = zu(t);
|
|
3967
3967
|
return e === "Io" ? r.ordinalNumber(n, {
|
|
3968
3968
|
unit: "week"
|
|
3969
3969
|
}) : S(n, e.length);
|
|
@@ -4554,7 +4554,7 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4554
4554
|
/* @__PURE__ */ m.jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
|
|
4555
4555
|
]
|
|
4556
4556
|
}
|
|
4557
|
-
), xc = "
|
|
4557
|
+
), xc = "_campEventsApp_17stc_1", Cc = "_eventsHeader_17stc_14", Pc = "_calendarButton_17stc_30", Tc = "_eventsContainer_17stc_50", jc = "_empty_17stc_57", _e = {
|
|
4558
4558
|
campEventsApp: xc,
|
|
4559
4559
|
eventsHeader: Cc,
|
|
4560
4560
|
calendarButton: Pc,
|
|
@@ -4678,7 +4678,7 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4678
4678
|
"rate-table": "_rate-table_6wuu7_1",
|
|
4679
4679
|
"background-darker": "_background-darker_6wuu7_15",
|
|
4680
4680
|
"group-title": "_group-title_6wuu7_33"
|
|
4681
|
-
},
|
|
4681
|
+
}, Xc = (t) => {
|
|
4682
4682
|
const { rateTable: e } = t, r = e.some((i) => i._type === "rateGroup"), n = e.some((i) => i._type === "rate" && i.detail), a = e.map((i) => {
|
|
4683
4683
|
if (i._type === "rate")
|
|
4684
4684
|
return n && (i = {
|
|
@@ -4701,7 +4701,7 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4701
4701
|
}, xr = {
|
|
4702
4702
|
"rate-card": "_rate-card_i5ys9_1",
|
|
4703
4703
|
"rate-card-heading": "_rate-card-heading_i5ys9_13"
|
|
4704
|
-
},
|
|
4704
|
+
}, zc = (t) => {
|
|
4705
4705
|
const { heading: e, rates: r } = t, n = r.reduce((a, i) => {
|
|
4706
4706
|
if (i._type === "rateDescription")
|
|
4707
4707
|
return [...a, i];
|
|
@@ -4712,7 +4712,7 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4712
4712
|
}, []);
|
|
4713
4713
|
return /* @__PURE__ */ m.jsxs("div", { className: xr["rate-card"], children: [
|
|
4714
4714
|
/* @__PURE__ */ m.jsx("div", { className: xr["rate-card-heading"], children: /* @__PURE__ */ m.jsx("h3", { children: e }) }),
|
|
4715
|
-
n.map((a, i) => Array.isArray(a) ? /* @__PURE__ */ m.jsx(
|
|
4715
|
+
n.map((a, i) => Array.isArray(a) ? /* @__PURE__ */ m.jsx(Xc, { rateTable: a }, i) : /* @__PURE__ */ m.jsx(Bc, { rateDescription: a }, i))
|
|
4716
4716
|
] });
|
|
4717
4717
|
}, Qc = ({ type: t }) => {
|
|
4718
4718
|
const [e, r] = I.useState([
|
|
@@ -4753,7 +4753,7 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4753
4753
|
return I.useEffect(() => {
|
|
4754
4754
|
Ys().then((a) => e(a)).catch((a) => console.log(a)).finally(() => n(!1));
|
|
4755
4755
|
}, []), /* @__PURE__ */ m.jsx("div", { className: Vc["rates-container"], children: t.map((a) => /* @__PURE__ */ m.jsx(
|
|
4756
|
-
|
|
4756
|
+
zc,
|
|
4757
4757
|
{
|
|
4758
4758
|
heading: a.name,
|
|
4759
4759
|
rates: a.rates
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._banner_1d1ur_1{height:300px;padding:15px;width:100%;background-size:cover;background-repeat:no-repeat;background-position:center;border-radius:9px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;font-family:Montserrat,sans-serif;font-size:28px;font-weight:700;color:#fff;text-align:start;box-shadow:0 4px 4px #00000040;transition:all .3s cubic-bezier(.25,.8,.25,1);text-decoration:none}._banner_1d1ur_1:hover{box-shadow:0 14px 28px #00000040,0 10px 10px #00000038;text-decoration:none;color:#fff}._banner_1d1ur_1 p{margin:0;line-height:normal}._banner_1d1ur_1 a{color:#b50;text-decoration:none}._banner_1d1ur_1 a:hover{color:#ff8622;text-decoration:underline}@media only screen and (min-width: 550px){._banner_1d1ur_1{font-size:48px;padding:20px}}@media only screen and (min-width: 1000px){._banner_1d1ur_1{font-size:54px;height:375px;min-width:49%;padding:40px;flex:1}}@media only screen and (min-width: 1440px){._banner_1d1ur_1{padding:1em}}._bannerContainer_79bac_1{display:flex;flex-direction:column;align-items:center;padding:0 10px}._bannerApp_79bac_8{display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;justify-content:center;gap:15px;width:100%;max-width:1440px}@media only screen and (min-width: 550px){._bannerContainer_79bac_1{padding:0 20px}}@media only screen and (min-width: 1000px){._bannerContainer_79bac_1{padding:0}._bannerApp_79bac_8{flex-direction:row}}._eventCard_1qrgl_1{display:flex;flex-direction:column;width:100%;background:rgba(255,254,240,1);color:#333;box-shadow:0 4px 4px #00000040;border-radius:4px}._eventCardBody_1qrgl_12{flex:1 1 66%;display:flex;flex-direction:column;gap:1em;padding:1em!important;font-size:14px;line-height:unset!important}._eventCardBody_1qrgl_12 p{line-height:unset!important;margin:0}._image_1qrgl_27{object-fit:cover;width:100%;border-radius:4px 4px 0 0}._eventCardTitle_1qrgl_33{font-family:Montserrat,sans-serif;font-size:24px;text-transform:unset!important;margin:0}._eventCardDate_1qrgl_40{font-family:Montserrat,sans-serif;font-size:18px}._eventCardDescription_1qrgl_45{font-size:16px}._eventCardDescription_1qrgl_45 p:not(:last-of-type){margin-bottom:.5em}._eventButtons_1qrgl_53{font-family:Montserrat,sans-serif;font-weight:700;text-transform:uppercase;display:flex;flex-direction:row;gap:1em;margin-top:.5em}._eventButtons_1qrgl_53>span{width:100%}._eventButtons_1qrgl_53 a{text-decoration:none}._eventButton_1qrgl_53{flex:1;background:#5388d7;color:#fff;padding:1em;text-align:center;border-radius:4px}._eventButton_1qrgl_53:hover{color:#fff;background-color:#3e7bd7}@media (min-width: 550px){._eventCardBody_1qrgl_12{padding:1.5em!important}._eventCardTitle_1qrgl_33{font-size:28px}._eventCardDate_1qrgl_40,._eventCardDescription_1qrgl_45{font-size:20px}}@media (min-width: 800px){._eventCard_1qrgl_1{flex-direction:row;min-height:325px}._image_1qrgl_27{width:400px;max-height:none;border-radius:4px 0 0 4px}._eventCardTitle_1qrgl_33{font-size:32px}._eventCardDescription_1qrgl_45{font-size:22px}._eventButtons_1qrgl_53{justify-content:flex-end;margin-top:auto}._eventButton_1qrgl_53{flex:0 1 50%}._eventButton_1qrgl_53:only-child{flex:0 1 calc(50% - .5em)}}.
|
|
1
|
+
._banner_1d1ur_1{height:300px;padding:15px;width:100%;background-size:cover;background-repeat:no-repeat;background-position:center;border-radius:9px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;font-family:Montserrat,sans-serif;font-size:28px;font-weight:700;color:#fff;text-align:start;box-shadow:0 4px 4px #00000040;transition:all .3s cubic-bezier(.25,.8,.25,1);text-decoration:none}._banner_1d1ur_1:hover{box-shadow:0 14px 28px #00000040,0 10px 10px #00000038;text-decoration:none;color:#fff}._banner_1d1ur_1 p{margin:0;line-height:normal}._banner_1d1ur_1 a{color:#b50;text-decoration:none}._banner_1d1ur_1 a:hover{color:#ff8622;text-decoration:underline}@media only screen and (min-width: 550px){._banner_1d1ur_1{font-size:48px;padding:20px}}@media only screen and (min-width: 1000px){._banner_1d1ur_1{font-size:54px;height:375px;min-width:49%;padding:40px;flex:1}}@media only screen and (min-width: 1440px){._banner_1d1ur_1{padding:1em}}._bannerContainer_79bac_1{display:flex;flex-direction:column;align-items:center;padding:0 10px}._bannerApp_79bac_8{display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;justify-content:center;gap:15px;width:100%;max-width:1440px}@media only screen and (min-width: 550px){._bannerContainer_79bac_1{padding:0 20px}}@media only screen and (min-width: 1000px){._bannerContainer_79bac_1{padding:0}._bannerApp_79bac_8{flex-direction:row}}._eventCard_1qrgl_1{display:flex;flex-direction:column;width:100%;background:rgba(255,254,240,1);color:#333;box-shadow:0 4px 4px #00000040;border-radius:4px}._eventCardBody_1qrgl_12{flex:1 1 66%;display:flex;flex-direction:column;gap:1em;padding:1em!important;font-size:14px;line-height:unset!important}._eventCardBody_1qrgl_12 p{line-height:unset!important;margin:0}._image_1qrgl_27{object-fit:cover;width:100%;border-radius:4px 4px 0 0}._eventCardTitle_1qrgl_33{font-family:Montserrat,sans-serif;font-size:24px;text-transform:unset!important;margin:0}._eventCardDate_1qrgl_40{font-family:Montserrat,sans-serif;font-size:18px}._eventCardDescription_1qrgl_45{font-size:16px}._eventCardDescription_1qrgl_45 p:not(:last-of-type){margin-bottom:.5em}._eventButtons_1qrgl_53{font-family:Montserrat,sans-serif;font-weight:700;text-transform:uppercase;display:flex;flex-direction:row;gap:1em;margin-top:.5em}._eventButtons_1qrgl_53>span{width:100%}._eventButtons_1qrgl_53 a{text-decoration:none}._eventButton_1qrgl_53{flex:1;background:#5388d7;color:#fff;padding:1em;text-align:center;border-radius:4px}._eventButton_1qrgl_53:hover{color:#fff;background-color:#3e7bd7}@media (min-width: 550px){._eventCardBody_1qrgl_12{padding:1.5em!important}._eventCardTitle_1qrgl_33{font-size:28px}._eventCardDate_1qrgl_40,._eventCardDescription_1qrgl_45{font-size:20px}}@media (min-width: 800px){._eventCard_1qrgl_1{flex-direction:row;min-height:325px}._image_1qrgl_27{width:400px;max-height:none;border-radius:4px 0 0 4px}._eventCardTitle_1qrgl_33{font-size:32px}._eventCardDescription_1qrgl_45{font-size:22px}._eventButtons_1qrgl_53{justify-content:flex-end;margin-top:auto}._eventButton_1qrgl_53{flex:0 1 50%}._eventButton_1qrgl_53:only-child{flex:0 1 calc(50% - .5em)}}._campEventsApp_17stc_1{background:rgba(254,209,54,.75);display:flex;flex-direction:column;width:100%;padding-bottom:20px;position:relative}._campEventsApp_17stc_1>div{padding:0 10px}._eventsHeader_17stc_14{display:flex;flex-direction:column;align-items:flex-start;margin:25px 0;gap:1em;z-index:5}._eventsHeader_17stc_14 h1{font-family:Montserrat,sans-serif;margin:0;font-size:28px;text-transform:unset!important}._calendarButton_17stc_30{text-decoration:none;background:#5388d7;padding:.5em .75em;color:#fff;border-radius:4px;flex-grow:0;font-size:16px;display:flex;flex-direction:row;gap:5px}._calendarButton_17stc_30:hover{background:#3e7bd7;color:#fff;text-decoration:none}._eventsContainer_17stc_50{display:flex;flex-direction:column;padding-bottom:15px;gap:20px}._empty_17stc_57{display:flex;flex-direction:column;align-items:center;gap:.5em;padding:2em;text-align:center;font-size:16px;background:#fffef0;border-radius:4px;box-shadow:0 4px 4px #00000040}._empty_17stc_57 img{width:100px}@media only screen and (min-width: 550px){._campEventsApp_17stc_1>div{padding:0 20px}._eventsHeader_17stc_14{margin:35px 0}._eventsHeader_17stc_14 h1{font-size:48px}._calendarButton_17stc_30{padding:.75em 1em;font-size:20px}._eventsContainer_17stc_50{flex-direction:column;padding-top:5px!important;padding-bottom:20px!important}._empty_17stc_57{font-size:20px}}@media only screen and (min-width: 1000px){._campEventsApp_17stc_1{max-width:1440px;padding:1px 1px 1em;border-radius:9px;box-shadow:0 4px 4px #00000040}._eventsHeader_17stc_14{flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:space-between;margin:30px 0}._eventsHeader_17stc_14 h1{font-size:54px}._campEventsApp_17stc_1>div{padding:0 40px}._eventsContainer_17stc_50{gap:20px}._eventsContainer_17stc_50:before{border-radius:9px}}@media only screen and (min-width: 1440px){._campEventsApp_17stc_1>div{padding:0 4em}._eventsHeader_17stc_14 h1{font-size:54px}}._contentButton_2dk7a_1{position:relative;flex:1 1 auto;width:100%;height:250px;border-radius:9px;text-decoration:none;font-family:Montserrat,sans-serif;font-weight:700;color:#fff;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:all .3s cubic-bezier(.25,.8,.25,1)}._contentButton_2dk7a_1:hover{color:#fff!important;text-decoration:none!important;box-shadow:0 14px 28px #00000040,0 10px 10px #00000038}._category-image_2dk7a_25{object-fit:cover;overflow:hidden;border-radius:9px;position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent}._overlay_2dk7a_40{position:absolute;width:100%;height:100%;border-radius:9px;padding:1em;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1em;background:rgba(0,0,0,.3)}._buttonTitle_2dk7a_56,._buttonSubtitle_2dk7a_57{text-align:center}._buttonTitle_2dk7a_56{font-weight:700;font-size:38px;line-height:1em;color:#fed136}._buttonSubtitle_2dk7a_57{font-size:16px}@media only screen and (min-width: 550px){._contentButtonsHeader_2dk7a_73 h1{font-size:48px}._contentButton_2dk7a_1{flex:1 0 300px;height:250px}._buttonTitle_2dk7a_56{font-size:42px}._buttonSubtitle_2dk7a_57{font-size:20px}}@media only screen and (min-width: 1000px){._contentButton_2dk7a_1{flex:1 0 400px;height:350px}._buttonTitle_2dk7a_56{font-size:50px}._buttonSubtitle_2dk7a_57{font-size:22px}}@media only screen and (min-width: 1250px){._contentButton_2dk7a_1{flex:1 0 550px}}@media only screen and (min-width: 1440px){._contentButton_2dk7a_1{flex:1 0 600px}._buttonTitle_2dk7a_56{font-size:54px}._buttonSubtitle_2dk7a_57{font-size:24px}}._categoryContainer_1yxkk_1{width:100%;padding:0 10px;display:flex;flex-direction:column;flex-wrap:wrap;gap:20px;justify-content:center;align-items:center;text-align:center}@media only screen and (min-width: 550px){._categoryContainer_1yxkk_1{padding:0 20px;flex-direction:row}}@media only screen and (min-width: 1000px){._categoryContainer_1yxkk_1{padding:0}._categoryContainerHeader_1yxkk_25 h1{font-size:58px}}._description_z94kn_1{margin:.75em 0}._description_z94kn_1 h4{text-transform:uppercase;font-family:Montserrat,sans-serif}._group-title_12ylh_1>td:first-child{font-weight:700}._rate-group-child_12ylh_5>td:first-child{padding-left:20px}._rate-table_6wuu7_1{width:100%;border-spacing:0;white-space:pre-line}._rate-table_6wuu7_1 tr:nth-child(odd){background-color:#fed13666}._rate-table_6wuu7_1 tr:nth-child(2n){background-color:#ff852299}._rate-table_6wuu7_1 tr._background-darker_6wuu7_15{background-color:#ff852299}._rate-table_6wuu7_1 td{vertical-align:top;padding:2.5px 5px}._rate-table_6wuu7_1 td:first-of-type{width:50%;text-align:left}._rate-table_6wuu7_1 td:last-of-type{text-align:right}._group-title_6wuu7_33>td:first-child{font-weight:700}._rate-card_i5ys9_1{width:100%;max-width:700px;margin:auto;padding:1em;background-color:#fff;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;flex-shrink:0;align-self:flex-start;font-size:1em}._rate-card-heading_i5ys9_13{margin:0 0 1em}._rate-card-heading_i5ys9_13 h3{font-family:Montserrat,sans-serif;text-align:center;text-transform:uppercase;font-weight:700;font-size:22px}._rate-card_i5ys9_1 h3,._rate-card_i5ys9_1 h4{margin:0}@media (min-width: 400px){._rate-card-heading_i5ys9_13 h3{font-size:24px}}@media (min-width: 550px){._rate-card_i5ys9_1{font-size:1.15em;border-radius:9px}._rate-card-heading_i5ys9_13 h3{font-size:26px}}@media (min-width: 900px){._rate-card_i5ys9_1{padding:25px;font-size:1.25em}._rate-card-heading_i5ys9_13 h3{font-size:30px}}._rates-container_123ct_1{display:flex;flex-direction:column;width:100%;padding:5px 0;gap:20px;background-color:#fffef0}@media (min-width: 550px){._rates-container_123ct_1{padding:15px}}@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;z-index:1}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color));transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}
|