@campphillip/widgets 3.1.11 → 3.1.12
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 +67 -67
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/campphillip.js
CHANGED
|
@@ -48,7 +48,7 @@ var D = En() ? Object.assign : function(t, e) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
return n;
|
|
51
|
-
}, Ee = {}, mt = {},
|
|
51
|
+
}, Ee = {}, mt = {}, z = {}, Ue = {};
|
|
52
52
|
Object.defineProperty(Ue, "__esModule", { value: !0 });
|
|
53
53
|
function Sn(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 Lt = Ue, ot = ke, Rn = gt, In = _t, ue = Se, je = Ne, jr = function(t) {
|
|
234
234
|
Tr(e, t);
|
|
235
235
|
function e(r, n, a) {
|
|
@@ -277,7 +277,7 @@ var Lt = Ue, ot = ke, Rn = gt, In = _t, 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
|
}(Rn.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 $n = 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 $n = j && j.__extends || function() {
|
|
|
357
357
|
};
|
|
358
358
|
}();
|
|
359
359
|
Object.defineProperty(mt, "__esModule", { value: !0 });
|
|
360
|
-
var Un =
|
|
360
|
+
var Un = z;
|
|
361
361
|
function kn(t, e) {
|
|
362
362
|
return function(n) {
|
|
363
363
|
return n.lift(new Nn(t, e));
|
|
@@ -407,7 +407,7 @@ var xe = {}, He = {}, Wn = j && j.__extends || function() {
|
|
|
407
407
|
};
|
|
408
408
|
}();
|
|
409
409
|
Object.defineProperty(He, "__esModule", { value: !0 });
|
|
410
|
-
var Ln =
|
|
410
|
+
var Ln = z;
|
|
411
411
|
function Fn(t, e) {
|
|
412
412
|
return function(n) {
|
|
413
413
|
if (typeof t != "function")
|
|
@@ -446,7 +446,7 @@ xe.map = He.map;
|
|
|
446
446
|
var Yn = function(t) {
|
|
447
447
|
var e = typeof t;
|
|
448
448
|
return t !== null && (e === "object" || e === "function");
|
|
449
|
-
},
|
|
449
|
+
}, Xn = Yn, ut = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable;
|
|
450
450
|
function Vn(t) {
|
|
451
451
|
if (t == null)
|
|
452
452
|
throw new TypeError("Sources cannot be null or undefined");
|
|
@@ -457,7 +457,7 @@ function Ft(t, e, r) {
|
|
|
457
457
|
if (n != null) {
|
|
458
458
|
if (ut.call(t, r) && (t[r] === void 0 || t[r] === null))
|
|
459
459
|
throw new TypeError("Cannot convert undefined or null to object (" + r + ")");
|
|
460
|
-
!ut.call(t, r) || !
|
|
460
|
+
!ut.call(t, r) || !Xn(n) ? t[r] = n : t[r] = qr(Object(t[r]), e[r]);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function qr(t, e) {
|
|
@@ -468,7 +468,7 @@ function qr(t, e) {
|
|
|
468
468
|
ut.call(e, r) && Ft(t, e, r);
|
|
469
469
|
if (Object.getOwnPropertySymbols)
|
|
470
470
|
for (var n = Object.getOwnPropertySymbols(e), a = 0; a < n.length; a++)
|
|
471
|
-
|
|
471
|
+
zn.call(e, n[a]) && Ft(t, e, n[a]);
|
|
472
472
|
return t;
|
|
473
473
|
}
|
|
474
474
|
var Gn = function(e) {
|
|
@@ -747,7 +747,7 @@ var fe = encodeURIComponent, Ir = function(t) {
|
|
|
747
747
|
}, g);
|
|
748
748
|
}, We = {}, Et = {};
|
|
749
749
|
Object.defineProperty(Et, "__esModule", { value: !0 });
|
|
750
|
-
var na =
|
|
750
|
+
var na = z;
|
|
751
751
|
function aa(t) {
|
|
752
752
|
for (; t; ) {
|
|
753
753
|
var e = t, r = e.closed, n = e.destination, a = e.isStopped;
|
|
@@ -760,7 +760,7 @@ function aa(t) {
|
|
|
760
760
|
Et.canReportError = aa;
|
|
761
761
|
var St = {};
|
|
762
762
|
Object.defineProperty(St, "__esModule", { value: !0 });
|
|
763
|
-
var Ke =
|
|
763
|
+
var Ke = z, Yt = _t, ia = ke;
|
|
764
764
|
function oa(t, e, r) {
|
|
765
765
|
if (t) {
|
|
766
766
|
if (t instanceof Ke.Subscriber)
|
|
@@ -819,7 +819,7 @@ var fa = Et, la = St, da = xt, ha = Ce, Re = Se, pa = function() {
|
|
|
819
819
|
}
|
|
820
820
|
}, t.prototype.forEach = function(e, r) {
|
|
821
821
|
var n = this;
|
|
822
|
-
return r =
|
|
822
|
+
return r = Xt(r), new r(function(a, i) {
|
|
823
823
|
var o;
|
|
824
824
|
o = n.subscribe(function(s) {
|
|
825
825
|
try {
|
|
@@ -840,7 +840,7 @@ var fa = Et, la = St, da = xt, ha = Ce, Re = Se, pa = function() {
|
|
|
840
840
|
return e.length === 0 ? this : ha.pipeFromArray(e)(this);
|
|
841
841
|
}, t.prototype.toPromise = function(e) {
|
|
842
842
|
var r = this;
|
|
843
|
-
return e =
|
|
843
|
+
return e = Xt(e), new e(function(n, a) {
|
|
844
844
|
var i;
|
|
845
845
|
r.subscribe(function(o) {
|
|
846
846
|
return i = o;
|
|
@@ -855,7 +855,7 @@ var fa = Et, la = St, da = xt, ha = Ce, Re = Se, pa = function() {
|
|
|
855
855
|
}, t;
|
|
856
856
|
}();
|
|
857
857
|
We.Observable = pa;
|
|
858
|
-
function
|
|
858
|
+
function Xt(t) {
|
|
859
859
|
if (t || (t = Re.config.Promise || Promise), !t)
|
|
860
860
|
throw new Error("no Promise impl found");
|
|
861
861
|
return t;
|
|
@@ -878,7 +878,7 @@ var Ur = {}, Pt = {}, Tt = {}, va = j && j.__extends || function() {
|
|
|
878
878
|
};
|
|
879
879
|
}();
|
|
880
880
|
Object.defineProperty(Tt, "__esModule", { value: !0 });
|
|
881
|
-
var ma =
|
|
881
|
+
var ma = z;
|
|
882
882
|
function ga(t, e) {
|
|
883
883
|
var r = !1;
|
|
884
884
|
return arguments.length >= 2 && (r = !0), function(a) {
|
|
@@ -968,7 +968,7 @@ var _a = j && j.__extends || function() {
|
|
|
968
968
|
};
|
|
969
969
|
}();
|
|
970
970
|
Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
971
|
-
var Oa =
|
|
971
|
+
var Oa = z, Ea = Dt, Sa = kr;
|
|
972
972
|
function xa(t) {
|
|
973
973
|
return function(r) {
|
|
974
974
|
return t === 0 ? Sa.empty() : r.lift(new Ca(t));
|
|
@@ -1024,7 +1024,7 @@ var Ca = function() {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}();
|
|
1026
1026
|
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
1027
|
-
var ja =
|
|
1027
|
+
var ja = z;
|
|
1028
1028
|
function Da(t) {
|
|
1029
1029
|
return t === void 0 && (t = null), function(e) {
|
|
1030
1030
|
return e.lift(new qa(t));
|
|
@@ -1051,12 +1051,12 @@ var qa = function() {
|
|
|
1051
1051
|
}, e;
|
|
1052
1052
|
}(ja.Subscriber);
|
|
1053
1053
|
Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
1054
|
-
var
|
|
1054
|
+
var zt = Tt, Vt = jt, Aa = qt, Gt = Ce;
|
|
1055
1055
|
function Ra(t, e) {
|
|
1056
1056
|
return arguments.length >= 2 ? function(n) {
|
|
1057
|
-
return Gt.pipe(
|
|
1057
|
+
return Gt.pipe(zt.scan(t, e), Vt.takeLast(1), Aa.defaultIfEmpty(e))(n);
|
|
1058
1058
|
} : function(n) {
|
|
1059
|
-
return Gt.pipe(
|
|
1059
|
+
return Gt.pipe(zt.scan(function(a, i, o) {
|
|
1060
1060
|
return t(a, i, o + 1);
|
|
1061
1061
|
}), Vt.takeLast(1))(n);
|
|
1062
1062
|
};
|
|
@@ -1378,14 +1378,14 @@ var Fa = J, Hr = Fa, Wr = { exports: {} };
|
|
|
1378
1378
|
return e;
|
|
1379
1379
|
});
|
|
1380
1380
|
})(Wr);
|
|
1381
|
-
var Ba = Wr.exports, Ya = Ba,
|
|
1381
|
+
var Ba = Wr.exports, Ya = Ba, Xa = typeof window > "u" || !window.EventSource ? (
|
|
1382
1382
|
// Use polyfill in non-browser/legacy environments
|
|
1383
1383
|
Ya.EventSource
|
|
1384
1384
|
) : (
|
|
1385
1385
|
// Use native EventSource when we can
|
|
1386
1386
|
window.EventSource
|
|
1387
|
-
),
|
|
1388
|
-
return
|
|
1387
|
+
), za = "https://docs.sanity.io/help/", At = function(e) {
|
|
1388
|
+
return za + e;
|
|
1389
1389
|
}, Va = function(t, e) {
|
|
1390
1390
|
return e.reduce(function(r, n) {
|
|
1391
1391
|
return typeof t[n] > "u" || (r[n] = t[n]), r;
|
|
@@ -1424,7 +1424,7 @@ function Jt(t) {
|
|
|
1424
1424
|
function Qa(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 Ja = D, Kt = Hr, Ka =
|
|
1427
|
+
var Ja = D, Kt = Hr, Ka = Xa, Za = At, ei = Va, ti = Lr, ri = Ga, ni = Ir, ai = 16e3 - 1200, ii = ["Using token with listeners is not supported in browsers. ", "For more info, see ".concat(Za("js-client-listener-tokens-browser"), ".")], oi = ti(function() {
|
|
1428
1428
|
return console.warn(ii.join(" "));
|
|
1429
1429
|
}), Fr = !!(typeof window < "u" && window.EventSource), Zt = Fr ? window.EventSource : Ka, si = ["includePreviousRevision", "includeResult", "visibility", "effectFormat", "tag"], ui = {
|
|
1430
1430
|
includeResult: !0
|
|
@@ -1669,10 +1669,10 @@ Si(Yr.prototype, {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
var Ci = Yr, Pi = D;
|
|
1672
|
-
function
|
|
1672
|
+
function Xr(t) {
|
|
1673
1673
|
this.client = t;
|
|
1674
1674
|
}
|
|
1675
|
-
Pi(
|
|
1675
|
+
Pi(Xr.prototype, {
|
|
1676
1676
|
list: function() {
|
|
1677
1677
|
return this.client.request({
|
|
1678
1678
|
uri: "/projects"
|
|
@@ -1684,7 +1684,7 @@ Pi(zr.prototype, {
|
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
|
-
var Ti =
|
|
1687
|
+
var Ti = Xr, ji = 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 Ri(t) {
|
|
|
1738
1738
|
if (Array.isArray(t))
|
|
1739
1739
|
return t;
|
|
1740
1740
|
}
|
|
1741
|
-
var
|
|
1741
|
+
var zr = D, Ii = xe, $i = Ii.map, Ui = Ee, ki = Ui.filter, Ni = ji, Me = te;
|
|
1742
1742
|
function Vr(t) {
|
|
1743
1743
|
this.client = t;
|
|
1744
1744
|
}
|
|
@@ -1752,12 +1752,12 @@ function Hi(t) {
|
|
|
1752
1752
|
}), e;
|
|
1753
1753
|
}
|
|
1754
1754
|
function Wi(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 @@ Yi(Qr.prototype, {
|
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
});
|
|
1862
|
-
var
|
|
1862
|
+
var Xi = Qr, zi = function() {
|
|
1863
1863
|
var e = [];
|
|
1864
1864
|
return {
|
|
1865
1865
|
subscribe: r,
|
|
@@ -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 or)
|
|
1978
1978
|
delete n[i];
|
|
1979
1979
|
} else if (a === "object") {
|
|
@@ -2003,9 +2003,9 @@ function io(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 = It(t), !(this instanceof
|
|
2008
|
-
return new
|
|
2006
|
+
function X(t, e, r) {
|
|
2007
|
+
if (t = It(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 || ro.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 so(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 uo =
|
|
2066
|
+
X.prototype = { set: oo, toString: so };
|
|
2067
|
+
X.extractProtocol = Zr;
|
|
2068
|
+
X.location = Kr;
|
|
2069
|
+
X.trimLeft = It;
|
|
2070
|
+
X.qs = Le;
|
|
2071
|
+
var uo = X, rt = D, co = uo, fo = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", lo = Object.prototype.hasOwnProperty, dt = { timeout: fo ? 6e4 : 12e4 }, ho = function(t) {
|
|
2072
2072
|
var e = typeof t == "string" ? rt({ url: t }, dt) : rt({}, dt, t), r = co(
|
|
2073
2073
|
e.url,
|
|
2074
2074
|
{},
|
|
@@ -2264,7 +2264,7 @@ var To = function(t, e) {
|
|
|
2264
2264
|
B(), C = !0, e(null, oe());
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
}, jo = To, Do =
|
|
2267
|
+
}, jo = To, Do = zi, qo = Vi, Mo = ho, Ao = go, Ro = jo, Io = ["request", "response", "progress", "error", "abort"], lr = ["processOptions", "validateOptions", "interceptRequest", "finalizeOptions", "onRequest", "onResponse", "onError", "onReturn", "onHeaders"], $o = 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] : Ro, n = [], a = lr.reduce(function(o, s) {
|
|
2269
2269
|
return o[s] = o[s] || [], o;
|
|
2270
2270
|
}, {
|
|
@@ -2365,7 +2365,7 @@ var Fo = 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
|
-
}, pr = D, Yo = Fo,
|
|
2368
|
+
}, pr = D, Yo = Fo, Xo = ["boolean", "string", "number"], zo = function(e) {
|
|
2369
2369
|
return !!e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
|
|
2370
2370
|
}, Vo = function() {
|
|
2371
2371
|
return {
|
|
@@ -2373,7 +2373,7 @@ var Fo = 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 && !zo(r) && (Xo.indexOf(typeof r > "u" ? "undefined" : Bo(r)) !== -1 || Array.isArray(r) || Yo(r));
|
|
2377
2377
|
return a ? pr({}, e, {
|
|
2378
2378
|
body: JSON.stringify(e.body),
|
|
2379
2379
|
headers: pr({}, e.headers, {
|
|
@@ -2580,7 +2580,7 @@ var ps = Be, vr = D, vs = "X-Sanity-Project-ID", ms = function(t) {
|
|
|
2580
2580
|
json: !0,
|
|
2581
2581
|
withCredentials: a
|
|
2582
2582
|
});
|
|
2583
|
-
}, fn = {}, Pe = {}, Ye = At, gs = Lr,
|
|
2583
|
+
}, fn = {}, Pe = {}, Ye = At, gs = Lr, Xe = function(e) {
|
|
2584
2584
|
return (
|
|
2585
2585
|
// eslint-disable-next-line no-console
|
|
2586
2586
|
gs(function() {
|
|
@@ -2590,10 +2590,10 @@ var ps = Be, vr = D, vs = "X-Sanity-Project-ID", ms = 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 = At, r = D, n = te, a = Pe, i = "apicdn.sanity.io", o = {
|
|
2599
2599
|
apiHost: "https://api.sanity.io",
|
|
@@ -2656,7 +2656,7 @@ function ys(t) {
|
|
|
2656
2656
|
function bs(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, ws = Ee, _s = ws.filter, Os = xe, Es = Os.map, Ss = Ot, xs = Rr, Cs = Ei, Ps = Ci, Ts = Ti, js = Li, Ds = Bi, qs =
|
|
2659
|
+
var he = D, ws = Ee, _s = ws.filter, Os = xe, Es = Os.map, Ss = Ot, xs = Rr, Cs = Ei, Ps = Ci, Ts = Ti, js = Li, Ds = Bi, qs = Xi, ze = ps, Ms = ms, ln = fn, As = ln.defaultConfig, Rs = ln.initConfig, Is = te, $s = function(e) {
|
|
2660
2660
|
return e.toPromise();
|
|
2661
2661
|
};
|
|
2662
2662
|
function W() {
|
|
@@ -2704,7 +2704,7 @@ he(W.prototype, {
|
|
|
2704
2704
|
var o = Ms(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(_s(function(n) {
|
|
@@ -2717,9 +2717,9 @@ he(W.prototype, {
|
|
|
2717
2717
|
});
|
|
2718
2718
|
W.Patch = Ss;
|
|
2719
2719
|
W.Transaction = xs;
|
|
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 Us = W;
|
|
2724
2724
|
const ks = /* @__PURE__ */ vt(Us);
|
|
2725
2725
|
var dn = { exports: {} };
|
|
@@ -3162,11 +3162,11 @@ const Hs = /* @__PURE__ */ vt(Ns), ve = ks({
|
|
|
3162
3162
|
}, Ys = async () => {
|
|
3163
3163
|
const t = "*[_type == 'category']|order(orderRank)";
|
|
3164
3164
|
return ve.fetch(t);
|
|
3165
|
-
},
|
|
3165
|
+
}, Xs = async () => {
|
|
3166
3166
|
const t = "*[_type == 'rateCategory']|order(orderRank)";
|
|
3167
3167
|
return ve.fetch(t);
|
|
3168
|
-
},
|
|
3169
|
-
banner:
|
|
3168
|
+
}, zs = "_banner_1d1ur_1", gr = {
|
|
3169
|
+
banner: zs
|
|
3170
3170
|
}, Vs = {
|
|
3171
3171
|
marks: {
|
|
3172
3172
|
color: ({ value: t, children: e }) => /* @__PURE__ */ m.jsx(
|
|
@@ -3662,18 +3662,18 @@ function hn(t) {
|
|
|
3662
3662
|
var o = Ie(i);
|
|
3663
3663
|
return e.getTime() >= a.getTime() ? r + 1 : e.getTime() >= o.getTime() ? r : r - 1;
|
|
3664
3664
|
}
|
|
3665
|
-
function
|
|
3665
|
+
function Xu(t) {
|
|
3666
3666
|
M(1, arguments);
|
|
3667
3667
|
var e = hn(t), r = /* @__PURE__ */ new Date(0);
|
|
3668
3668
|
r.setUTCFullYear(e, 0, 4), r.setUTCHours(0, 0, 0, 0);
|
|
3669
3669
|
var n = Ie(r);
|
|
3670
3670
|
return n;
|
|
3671
3671
|
}
|
|
3672
|
-
var
|
|
3672
|
+
var zu = 6048e5;
|
|
3673
3673
|
function Vu(t) {
|
|
3674
3674
|
M(1, arguments);
|
|
3675
|
-
var e = N(t), r = Ie(e).getTime() -
|
|
3676
|
-
return Math.round(r /
|
|
3675
|
+
var e = N(t), r = Ie(e).getTime() - Xu(e).getTime();
|
|
3676
|
+
return Math.round(r / zu) + 1;
|
|
3677
3677
|
}
|
|
3678
3678
|
function $e(t, e) {
|
|
3679
3679
|
M(1, arguments);
|
|
@@ -4476,7 +4476,7 @@ function pc(t, e) {
|
|
|
4476
4476
|
var r = N(t), n = N(e);
|
|
4477
4477
|
return r.getFullYear() === n.getFullYear() && r.getMonth() === n.getMonth();
|
|
4478
4478
|
}
|
|
4479
|
-
const vc = "
|
|
4479
|
+
const vc = "_eventCard_1x1as_1", mc = "_eventCardBody_1x1as_12", gc = "_image_1x1as_27", yc = "_eventCardTitle_1x1as_33", bc = "_eventCardDate_1x1as_40", wc = "_eventCardDescription_1x1as_45", _c = "_eventButtons_1x1as_53", Oc = "_eventButton_1x1as_53", Ec = "_square_1x1as_116", F = {
|
|
4480
4480
|
eventCard: vc,
|
|
4481
4481
|
eventCardBody: mc,
|
|
4482
4482
|
image: gc,
|
|
@@ -4688,11 +4688,11 @@ const Tc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4688
4688
|
)) }) }), Yc = (t) => t.map((e) => ({
|
|
4689
4689
|
...e,
|
|
4690
4690
|
imageUrl: Nt(e.image).width(800).url()
|
|
4691
|
-
})),
|
|
4692
|
-
description:
|
|
4691
|
+
})), Xc = "_description_z94kn_1", zc = {
|
|
4692
|
+
description: Xc
|
|
4693
4693
|
}, Vc = ({ rateDescription: t }) => {
|
|
4694
4694
|
const { title: e, text: r } = t || {};
|
|
4695
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
4695
|
+
return /* @__PURE__ */ m.jsxs("div", { className: zc.description, children: [
|
|
4696
4696
|
e && /* @__PURE__ */ m.jsx("h4", { children: e }),
|
|
4697
4697
|
r && /* @__PURE__ */ m.jsx("span", { children: r })
|
|
4698
4698
|
] });
|
|
@@ -4796,7 +4796,7 @@ const Tc = () => /* @__PURE__ */ m.jsxs(
|
|
|
4796
4796
|
}, nf = () => {
|
|
4797
4797
|
const [t, e] = I.useState([]), [r, n] = I.useState(!0);
|
|
4798
4798
|
return I.useEffect(() => {
|
|
4799
|
-
|
|
4799
|
+
Xs().then((a) => e(a)).catch((a) => console.log(a)).finally(() => n(!1));
|
|
4800
4800
|
}, []), /* @__PURE__ */ m.jsx("div", { className: Kc["rates-container"], children: t.map((a) => /* @__PURE__ */ m.jsx(
|
|
4801
4801
|
Jc,
|
|
4802
4802
|
{
|
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}}.
|
|
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_1x1as_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_1x1as_12{flex:1 1 66%;display:flex;flex-direction:column;gap:1em;padding:1em!important;font-size:14px;line-height:unset!important}._eventCardBody_1x1as_12 p{line-height:unset!important;margin:0}._image_1x1as_27{object-fit:cover;width:100%;border-radius:4px 4px 0 0}._eventCardTitle_1x1as_33{font-family:Montserrat,sans-serif;font-size:24px;text-transform:unset!important;margin:0}._eventCardDate_1x1as_40{font-family:Montserrat,sans-serif;font-size:18px}._eventCardDescription_1x1as_45{font-size:16px}._eventCardDescription_1x1as_45 p:not(:last-of-type){margin-bottom:.5em}._eventButtons_1x1as_53{font-family:Montserrat,sans-serif;font-weight:700;text-transform:uppercase;display:flex;flex-direction:row;gap:1em;margin-top:.5em}._eventButtons_1x1as_53>span{width:100%}._eventButtons_1x1as_53 a{text-decoration:none}._eventButton_1x1as_53{flex:1;background:#5388d7;color:#fff;padding:1em;text-align:center;border-radius:4px}._eventButton_1x1as_53:hover{color:#fff;background-color:#3e7bd7}@media (min-width: 550px){._eventCardBody_1x1as_12{padding:1.5em!important}._eventCardTitle_1x1as_33{font-size:28px}._eventCardDate_1x1as_40,._eventCardDescription_1x1as_45{font-size:20px}}@media (min-width: 800px){._eventCard_1x1as_1{flex-direction:row;min-height:325px}._image_1x1as_27{max-width:40%;max-height:none;border-radius:4px 0 0 4px;padding:1.5em 0 1.5em 1.5em}._square_1x1as_116{width:auto;object-fit:contain;margin-bottom:auto}._eventCardTitle_1x1as_33{font-size:32px}._eventCardDescription_1x1as_45{font-size:22px}._eventButtons_1x1as_53{justify-content:flex-end;margin-top:auto}._eventButton_1x1as_53{flex:0 1 50%}._eventButton_1x1as_53:only-child{flex:0 1 calc(50% - .5em)}}@media (min-width: 1000px){._image_1x1as_27{max-width:400px}}._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}}
|