@depict-ai/utilishared 2.0.7 → 2.0.9
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/ES10/index.cjs +11 -7
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +11 -7
- package/latest/index.cjs +11 -7
- package/latest/index.d.ts +1 -1
- package/latest/index.js +11 -7
- package/package.json +2 -2
- package/server/ES10/index.cjs +17 -13
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +18 -14
- package/server/latest/index.cjs +17 -13
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +18 -14
package/ES10/index.cjs
CHANGED
|
@@ -274,7 +274,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
274
274
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
275
275
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
276
276
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
277
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.
|
|
277
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.9";
|
|
278
278
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
279
279
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
280
280
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -3454,11 +3454,15 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3454
3454
|
let result = false;
|
|
3455
3455
|
while (max_retries && !has_succeeded) try {
|
|
3456
3456
|
const response = await fetch(url, options);
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3457
|
+
const {
|
|
3458
|
+
status: status,
|
|
3459
|
+
ok: ok
|
|
3460
|
+
} = response;
|
|
3461
|
+
if (!response || !ok || status !== 200) {
|
|
3462
|
+
if (status >= 400 && status < 500) {
|
|
3463
|
+
$3b52ccc10510b32a$export$b3bbfd758f11cfa9($8f0b9bb45dd059c3$var$send_sentry_4xx)(response, (options === null || options === void 0 ? void 0 : options.body) || {}, stack);
|
|
3460
3464
|
has_succeeded = true;
|
|
3461
|
-
} else if (
|
|
3465
|
+
} else if (status === 404) has_succeeded = true;
|
|
3462
3466
|
$7f95f77417d06249$export$de56f1198d121036("Response not ok", response);
|
|
3463
3467
|
} else has_succeeded = true;
|
|
3464
3468
|
result = response;
|
|
@@ -3473,8 +3477,8 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3473
3477
|
}
|
|
3474
3478
|
return result;
|
|
3475
3479
|
}
|
|
3476
|
-
async function $8f0b9bb45dd059c3$var$
|
|
3477
|
-
const msg = "Validation error: got
|
|
3480
|
+
async function $8f0b9bb45dd059c3$var$send_sentry_4xx(response, body, stack) {
|
|
3481
|
+
const msg = "Validation error: got 4XX from API";
|
|
3478
3482
|
const text = await response.clone().text();
|
|
3479
3483
|
$7f95f77417d06249$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
3480
3484
|
(0, $902c0e005afb7319$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
package/ES10/index.d.ts
CHANGED
package/ES10/index.js
CHANGED
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.9";
|
|
20
20
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -3196,11 +3196,15 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3196
3196
|
let result = false;
|
|
3197
3197
|
while (max_retries && !has_succeeded) try {
|
|
3198
3198
|
const response = await fetch(url, options);
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3199
|
+
const {
|
|
3200
|
+
status: status,
|
|
3201
|
+
ok: ok
|
|
3202
|
+
} = response;
|
|
3203
|
+
if (!response || !ok || status !== 200) {
|
|
3204
|
+
if (status >= 400 && status < 500) {
|
|
3205
|
+
$5e1f45affc1d7def$export$b3bbfd758f11cfa9($c95f8181bad32e8d$var$send_sentry_4xx)(response, (options === null || options === void 0 ? void 0 : options.body) || {}, stack);
|
|
3202
3206
|
has_succeeded = true;
|
|
3203
|
-
} else if (
|
|
3207
|
+
} else if (status === 404) has_succeeded = true;
|
|
3204
3208
|
$241f2f02cc612a49$export$de56f1198d121036("Response not ok", response);
|
|
3205
3209
|
} else has_succeeded = true;
|
|
3206
3210
|
result = response;
|
|
@@ -3215,8 +3219,8 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3215
3219
|
}
|
|
3216
3220
|
return result;
|
|
3217
3221
|
}
|
|
3218
|
-
async function $c95f8181bad32e8d$var$
|
|
3219
|
-
const msg = "Validation error: got
|
|
3222
|
+
async function $c95f8181bad32e8d$var$send_sentry_4xx(response, body, stack) {
|
|
3223
|
+
const msg = "Validation error: got 4XX from API";
|
|
3220
3224
|
const text = await response.clone().text();
|
|
3221
3225
|
$241f2f02cc612a49$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
3222
3226
|
(0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
package/latest/index.cjs
CHANGED
|
@@ -271,7 +271,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
271
271
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
272
272
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
273
273
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
274
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.
|
|
274
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.9";
|
|
275
275
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
276
276
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
277
277
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -3125,11 +3125,15 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
3125
3125
|
let result = false;
|
|
3126
3126
|
while (max_retries && !has_succeeded) try {
|
|
3127
3127
|
const response = await fetch(url, options);
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3128
|
+
const {
|
|
3129
|
+
status: status,
|
|
3130
|
+
ok: ok
|
|
3131
|
+
} = response;
|
|
3132
|
+
if (!response || !ok || status !== 200) {
|
|
3133
|
+
if (status >= 400 && status < 500) {
|
|
3134
|
+
$268cbd9e4ade92db$export$b3bbfd758f11cfa9($d2fc3fb450961938$var$send_sentry_4xx)(response, options?.body || {}, stack);
|
|
3131
3135
|
has_succeeded = true;
|
|
3132
|
-
} else if (
|
|
3136
|
+
} else if (status === 404) has_succeeded = true;
|
|
3133
3137
|
$e6c6e7929ea385ae$export$de56f1198d121036("Response not ok", response);
|
|
3134
3138
|
} else has_succeeded = true;
|
|
3135
3139
|
result = response;
|
|
@@ -3144,8 +3148,8 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
3144
3148
|
}
|
|
3145
3149
|
return result;
|
|
3146
3150
|
}
|
|
3147
|
-
async function $d2fc3fb450961938$var$
|
|
3148
|
-
const msg = `Validation error: got
|
|
3151
|
+
async function $d2fc3fb450961938$var$send_sentry_4xx(response, body, stack) {
|
|
3152
|
+
const msg = `Validation error: got 4XX from API`;
|
|
3149
3153
|
const text = await response.clone().text();
|
|
3150
3154
|
$e6c6e7929ea385ae$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
3151
3155
|
(0, $61a34358bf0d3d8b$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
package/latest/index.d.ts
CHANGED
package/latest/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.9";
|
|
17
17
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -2867,11 +2867,15 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
2867
2867
|
let result = false;
|
|
2868
2868
|
while (max_retries && !has_succeeded) try {
|
|
2869
2869
|
const response = await fetch(url, options);
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2870
|
+
const {
|
|
2871
|
+
status: status,
|
|
2872
|
+
ok: ok
|
|
2873
|
+
} = response;
|
|
2874
|
+
if (!response || !ok || status !== 200) {
|
|
2875
|
+
if (status >= 400 && status < 500) {
|
|
2876
|
+
$b04e44fad5ea42c7$export$b3bbfd758f11cfa9($2d1ffbfaa1c2d9e3$var$send_sentry_4xx)(response, options?.body || {}, stack);
|
|
2873
2877
|
has_succeeded = true;
|
|
2874
|
-
} else if (
|
|
2878
|
+
} else if (status === 404) has_succeeded = true;
|
|
2875
2879
|
$649f456f663da9fc$export$de56f1198d121036("Response not ok", response);
|
|
2876
2880
|
} else has_succeeded = true;
|
|
2877
2881
|
result = response;
|
|
@@ -2886,8 +2890,8 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
2886
2890
|
}
|
|
2887
2891
|
return result;
|
|
2888
2892
|
}
|
|
2889
|
-
async function $2d1ffbfaa1c2d9e3$var$
|
|
2890
|
-
const msg = `Validation error: got
|
|
2893
|
+
async function $2d1ffbfaa1c2d9e3$var$send_sentry_4xx(response, body, stack) {
|
|
2894
|
+
const msg = `Validation error: got 4XX from API`;
|
|
2891
2895
|
const text = await response.clone().text();
|
|
2892
2896
|
$649f456f663da9fc$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
2893
2897
|
(0, $eba382943196079c$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@babel/runtime": "latest",
|
|
155
155
|
"@babel/runtime-corejs3": "latest",
|
|
156
156
|
"@sentry/browser": "^7.75.1",
|
|
157
|
-
"solid-js": "^1.8.
|
|
157
|
+
"solid-js": "^1.8.7"
|
|
158
158
|
},
|
|
159
159
|
"type": "module",
|
|
160
160
|
"main": "ES10/index.cjs",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -274,7 +274,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
274
274
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
275
275
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
276
276
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
277
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.
|
|
277
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.9";
|
|
278
278
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
279
279
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
280
280
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -3454,11 +3454,15 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3454
3454
|
let result = false;
|
|
3455
3455
|
while (max_retries && !has_succeeded) try {
|
|
3456
3456
|
const response = await fetch(url, options);
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3457
|
+
const {
|
|
3458
|
+
status: status,
|
|
3459
|
+
ok: ok
|
|
3460
|
+
} = response;
|
|
3461
|
+
if (!response || !ok || status !== 200) {
|
|
3462
|
+
if (status >= 400 && status < 500) {
|
|
3463
|
+
$3b52ccc10510b32a$export$b3bbfd758f11cfa9($8f0b9bb45dd059c3$var$send_sentry_4xx)(response, (options === null || options === void 0 ? void 0 : options.body) || {}, stack);
|
|
3460
3464
|
has_succeeded = true;
|
|
3461
|
-
} else if (
|
|
3465
|
+
} else if (status === 404) has_succeeded = true;
|
|
3462
3466
|
$7f95f77417d06249$export$de56f1198d121036("Response not ok", response);
|
|
3463
3467
|
} else has_succeeded = true;
|
|
3464
3468
|
result = response;
|
|
@@ -3473,8 +3477,8 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3473
3477
|
}
|
|
3474
3478
|
return result;
|
|
3475
3479
|
}
|
|
3476
|
-
async function $8f0b9bb45dd059c3$var$
|
|
3477
|
-
const msg = "Validation error: got
|
|
3480
|
+
async function $8f0b9bb45dd059c3$var$send_sentry_4xx(response, body, stack) {
|
|
3481
|
+
const msg = "Validation error: got 4XX from API";
|
|
3478
3482
|
const text = await response.clone().text();
|
|
3479
3483
|
$7f95f77417d06249$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
3480
3484
|
(0, $902c0e005afb7319$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
|
@@ -5801,7 +5805,7 @@ function $12a8c4258d1dd80f$export$f8913c8a18f7ca21(iterables) {
|
|
|
5801
5805
|
}
|
|
5802
5806
|
let $0c2e69f971c62390$var$_Symbol$iterator, $0c2e69f971c62390$var$_Symbol$toPrimitive;
|
|
5803
5807
|
const $0c2e69f971c62390$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5804
|
-
$0c2e69f971c62390$var$_tmpl$2 = ["<div",
|
|
5808
|
+
$0c2e69f971c62390$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5805
5809
|
const $0c2e69f971c62390$export$717f13d9ba00ca19 = (min, max) => "@media ".concat(min ? "(min-width:".concat(min, ")") : "").concat(min && max ? " and " : "").concat(max ? "(max-width:".concat(max, ")") : "");
|
|
5806
5810
|
async function $0c2e69f971c62390$export$c84671f46d6a1ca(_ref) {
|
|
5807
5811
|
let {
|
|
@@ -5862,7 +5866,7 @@ async function $0c2e69f971c62390$export$c84671f46d6a1ca(_ref) {
|
|
|
5862
5866
|
});
|
|
5863
5867
|
if (button) {
|
|
5864
5868
|
button_class = $a13f25507f352177$export$a6db784f019668ba();
|
|
5865
|
-
const button_container = $lMD39$solidjsweb.ssr($0c2e69f971c62390$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), "load-more-container " + $lMD39$solidjsweb.escape(button_class, true), $lMD39$solidjsweb.escape($51b78ec2cb40f07e$export$f63fcc839cb0f734("click", () => {
|
|
5869
|
+
const button_container = $lMD39$solidjsweb.ssr($0c2e69f971c62390$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey() + $lMD39$solidjsweb.ssrAttribute("class", "load-more-container " + $lMD39$solidjsweb.escape(button_class, true), false), $lMD39$solidjsweb.escape($51b78ec2cb40f07e$export$f63fcc839cb0f734("click", () => {
|
|
5866
5870
|
var _rows_or_empty_object;
|
|
5867
5871
|
return ipns(ipns.state + ((_rows_or_empty_object = rows_or_empty_object.rows_per_click) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1));
|
|
5868
5872
|
}, button)));
|
|
@@ -8150,7 +8154,7 @@ async function $b99c603a5341f0ae$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
8150
8154
|
};
|
|
8151
8155
|
}
|
|
8152
8156
|
const $468dbae10b24d59f$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
8153
|
-
$468dbae10b24d59f$var$_tmpl$2 = ["<button", ' type="button"
|
|
8157
|
+
$468dbae10b24d59f$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
8154
8158
|
$468dbae10b24d59f$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
8155
8159
|
async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
8156
8160
|
let {
|
|
@@ -8174,7 +8178,7 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
8174
8178
|
is_available_: is_available_,
|
|
8175
8179
|
id_: id_
|
|
8176
8180
|
} = _ref2;
|
|
8177
|
-
const button = $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $lMD39$solidjsweb.escape(size_name_), !is_available_ && $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$3, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape($fbf41b4abc726dbe$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
8181
|
+
const button = $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $lMD39$solidjsweb.escape(size_name_), !is_available_ && $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$3, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape($fbf41b4abc726dbe$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
8178
8182
|
if (!is_available_) button.disabled = true;
|
|
8179
8183
|
return button;
|
|
8180
8184
|
})))]
|
|
@@ -8538,7 +8542,7 @@ function $b42b9f62e8b6cb2d$var$optimized_img_url_generator(format, url, width) {
|
|
|
8538
8542
|
return "".concat($b42b9f62e8b6cb2d$export$3d13beba9b52c947, "?format=").concat(format, "&url=").concat(encodeURIComponent(url), "&width=").concat(width);
|
|
8539
8543
|
}
|
|
8540
8544
|
const $dfce76a4aeb41067$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
8541
|
-
$dfce76a4aeb41067$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
8545
|
+
$dfce76a4aeb41067$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
8542
8546
|
$dfce76a4aeb41067$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
8543
8547
|
const $dfce76a4aeb41067$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8544
8548
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -8595,7 +8599,7 @@ function $dfce76a4aeb41067$var$CompatibleImage(_ref3) {
|
|
|
8595
8599
|
srcset_opts: srcset_opts,
|
|
8596
8600
|
...image_options
|
|
8597
8601
|
} = _ref3;
|
|
8598
|
-
const canvas = $lMD39$solidjsweb.ssr($dfce76a4aeb41067$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), 3000 * $lMD39$solidjsweb.escape(aspect_ratio, true));
|
|
8602
|
+
const canvas = $lMD39$solidjsweb.ssr($dfce76a4aeb41067$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.ssrAttribute("width", 3000 * $lMD39$solidjsweb.escape(aspect_ratio, true), false));
|
|
8599
8603
|
const sourceset_component = $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8600
8604
|
const IMG_tag = (_image_options$src2 = image_options.src) !== null && _image_options$src2 !== void 0 && _image_options$src2.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8601
8605
|
return $lMD39$solidjsweb.ssr($dfce76a4aeb41067$var$_tmpl$3, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape($lMD39$solidjsweb.createComponent(IMG_tag, $lMD39$solidjsweb.mergeProps({
|
package/server/ES10/index.d.ts
CHANGED
package/server/ES10/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { onCleanup as $hrhbO$onCleanup, createEffect as $hrhbO$createEffect, cre
|
|
|
2
2
|
import $hrhbO$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import $hrhbO$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
4
4
|
import $hrhbO$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
5
|
-
import { ssr as $hrhbO$ssr, ssrHydrationKey as $hrhbO$ssrHydrationKey, escape as $hrhbO$escape,
|
|
5
|
+
import { ssr as $hrhbO$ssr, ssrHydrationKey as $hrhbO$ssrHydrationKey, escape as $hrhbO$escape, ssrAttribute as $hrhbO$ssrAttribute, ssrElement as $hrhbO$ssrElement, mergeProps as $hrhbO$mergeProps, createComponent as $hrhbO$createComponent, ssrStyle as $hrhbO$ssrStyle } from "solid-js/web";
|
|
6
6
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("utilishared", "ES10");
|
|
8
8
|
function $parcel$export(e, n, v, s) {
|
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.9";
|
|
20
20
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -3196,11 +3196,15 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3196
3196
|
let result = false;
|
|
3197
3197
|
while (max_retries && !has_succeeded) try {
|
|
3198
3198
|
const response = await fetch(url, options);
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3199
|
+
const {
|
|
3200
|
+
status: status,
|
|
3201
|
+
ok: ok
|
|
3202
|
+
} = response;
|
|
3203
|
+
if (!response || !ok || status !== 200) {
|
|
3204
|
+
if (status >= 400 && status < 500) {
|
|
3205
|
+
$5e1f45affc1d7def$export$b3bbfd758f11cfa9($c95f8181bad32e8d$var$send_sentry_4xx)(response, (options === null || options === void 0 ? void 0 : options.body) || {}, stack);
|
|
3202
3206
|
has_succeeded = true;
|
|
3203
|
-
} else if (
|
|
3207
|
+
} else if (status === 404) has_succeeded = true;
|
|
3204
3208
|
$241f2f02cc612a49$export$de56f1198d121036("Response not ok", response);
|
|
3205
3209
|
} else has_succeeded = true;
|
|
3206
3210
|
result = response;
|
|
@@ -3215,8 +3219,8 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
|
|
|
3215
3219
|
}
|
|
3216
3220
|
return result;
|
|
3217
3221
|
}
|
|
3218
|
-
async function $c95f8181bad32e8d$var$
|
|
3219
|
-
const msg = "Validation error: got
|
|
3222
|
+
async function $c95f8181bad32e8d$var$send_sentry_4xx(response, body, stack) {
|
|
3223
|
+
const msg = "Validation error: got 4XX from API";
|
|
3220
3224
|
const text = await response.clone().text();
|
|
3221
3225
|
$241f2f02cc612a49$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
3222
3226
|
(0, $17bb552dedcd526c$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
|
@@ -5543,7 +5547,7 @@ function $07beada135e5f5e8$export$f8913c8a18f7ca21(iterables) {
|
|
|
5543
5547
|
}
|
|
5544
5548
|
let $df6d080cba513381$var$_Symbol$iterator, $df6d080cba513381$var$_Symbol$toPrimitive;
|
|
5545
5549
|
const $df6d080cba513381$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5546
|
-
$df6d080cba513381$var$_tmpl$2 = ["<div",
|
|
5550
|
+
$df6d080cba513381$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5547
5551
|
const $df6d080cba513381$export$717f13d9ba00ca19 = (min, max) => "@media ".concat(min ? "(min-width:".concat(min, ")") : "").concat(min && max ? " and " : "").concat(max ? "(max-width:".concat(max, ")") : "");
|
|
5548
5552
|
async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
|
|
5549
5553
|
let {
|
|
@@ -5604,7 +5608,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
|
|
|
5604
5608
|
});
|
|
5605
5609
|
if (button) {
|
|
5606
5610
|
button_class = $6cb4d83127e468ea$export$a6db784f019668ba();
|
|
5607
|
-
const button_container = $hrhbO$ssr($df6d080cba513381$var$_tmpl$2, $hrhbO$ssrHydrationKey(), "load-more-container " + $hrhbO$escape(button_class, true), $hrhbO$escape($a285401a927e4306$export$f63fcc839cb0f734("click", () => {
|
|
5611
|
+
const button_container = $hrhbO$ssr($df6d080cba513381$var$_tmpl$2, $hrhbO$ssrHydrationKey() + $hrhbO$ssrAttribute("class", "load-more-container " + $hrhbO$escape(button_class, true), false), $hrhbO$escape($a285401a927e4306$export$f63fcc839cb0f734("click", () => {
|
|
5608
5612
|
var _rows_or_empty_object;
|
|
5609
5613
|
return ipns(ipns.state + ((_rows_or_empty_object = rows_or_empty_object.rows_per_click) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1));
|
|
5610
5614
|
}, button)));
|
|
@@ -7892,7 +7896,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
7892
7896
|
};
|
|
7893
7897
|
}
|
|
7894
7898
|
const $24f3fd73864991c0$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
7895
|
-
$24f3fd73864991c0$var$_tmpl$2 = ["<button", ' type="button"
|
|
7899
|
+
$24f3fd73864991c0$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
7896
7900
|
$24f3fd73864991c0$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
7897
7901
|
async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
7898
7902
|
let {
|
|
@@ -7916,7 +7920,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7916
7920
|
is_available_: is_available_,
|
|
7917
7921
|
id_: id_
|
|
7918
7922
|
} = _ref2;
|
|
7919
|
-
const button = $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$2, $hrhbO$ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $hrhbO$escape(size_name_), !is_available_ && $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$3, $hrhbO$ssrHydrationKey(), $hrhbO$escape($332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7923
|
+
const button = $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$2, $hrhbO$ssrHydrationKey(), $hrhbO$ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $hrhbO$escape(size_name_), !is_available_ && $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$3, $hrhbO$ssrHydrationKey(), $hrhbO$escape($332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7920
7924
|
if (!is_available_) button.disabled = true;
|
|
7921
7925
|
return button;
|
|
7922
7926
|
})))]
|
|
@@ -8280,7 +8284,7 @@ function $9ef5ce4804a3b61b$var$optimized_img_url_generator(format, url, width) {
|
|
|
8280
8284
|
return "".concat($9ef5ce4804a3b61b$export$3d13beba9b52c947, "?format=").concat(format, "&url=").concat(encodeURIComponent(url), "&width=").concat(width);
|
|
8281
8285
|
}
|
|
8282
8286
|
const $c987460cedc0d7ec$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
8283
|
-
$c987460cedc0d7ec$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
8287
|
+
$c987460cedc0d7ec$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
8284
8288
|
$c987460cedc0d7ec$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
8285
8289
|
const $c987460cedc0d7ec$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8286
8290
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -8337,7 +8341,7 @@ function $c987460cedc0d7ec$var$CompatibleImage(_ref3) {
|
|
|
8337
8341
|
srcset_opts: srcset_opts,
|
|
8338
8342
|
...image_options
|
|
8339
8343
|
} = _ref3;
|
|
8340
|
-
const canvas = $hrhbO$ssr($c987460cedc0d7ec$var$_tmpl$2, $hrhbO$ssrHydrationKey(), 3000 * $hrhbO$escape(aspect_ratio, true));
|
|
8344
|
+
const canvas = $hrhbO$ssr($c987460cedc0d7ec$var$_tmpl$2, $hrhbO$ssrHydrationKey(), $hrhbO$ssrAttribute("width", 3000 * $hrhbO$escape(aspect_ratio, true), false));
|
|
8341
8345
|
const sourceset_component = $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8342
8346
|
const IMG_tag = (_image_options$src2 = image_options.src) !== null && _image_options$src2 !== void 0 && _image_options$src2.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8343
8347
|
return $hrhbO$ssr($c987460cedc0d7ec$var$_tmpl$3, $hrhbO$ssrHydrationKey(), $hrhbO$escape($hrhbO$createComponent(IMG_tag, $hrhbO$mergeProps({
|
package/server/latest/index.cjs
CHANGED
|
@@ -271,7 +271,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
271
271
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
272
272
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
273
273
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
274
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.
|
|
274
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.9";
|
|
275
275
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
276
276
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
277
277
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -3125,11 +3125,15 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
3125
3125
|
let result = false;
|
|
3126
3126
|
while (max_retries && !has_succeeded) try {
|
|
3127
3127
|
const response = await fetch(url, options);
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3128
|
+
const {
|
|
3129
|
+
status: status,
|
|
3130
|
+
ok: ok
|
|
3131
|
+
} = response;
|
|
3132
|
+
if (!response || !ok || status !== 200) {
|
|
3133
|
+
if (status >= 400 && status < 500) {
|
|
3134
|
+
$268cbd9e4ade92db$export$b3bbfd758f11cfa9($d2fc3fb450961938$var$send_sentry_4xx)(response, options?.body || {}, stack);
|
|
3131
3135
|
has_succeeded = true;
|
|
3132
|
-
} else if (
|
|
3136
|
+
} else if (status === 404) has_succeeded = true;
|
|
3133
3137
|
$e6c6e7929ea385ae$export$de56f1198d121036("Response not ok", response);
|
|
3134
3138
|
} else has_succeeded = true;
|
|
3135
3139
|
result = response;
|
|
@@ -3144,8 +3148,8 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
3144
3148
|
}
|
|
3145
3149
|
return result;
|
|
3146
3150
|
}
|
|
3147
|
-
async function $d2fc3fb450961938$var$
|
|
3148
|
-
const msg = `Validation error: got
|
|
3151
|
+
async function $d2fc3fb450961938$var$send_sentry_4xx(response, body, stack) {
|
|
3152
|
+
const msg = `Validation error: got 4XX from API`;
|
|
3149
3153
|
const text = await response.clone().text();
|
|
3150
3154
|
$e6c6e7929ea385ae$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
3151
3155
|
(0, $61a34358bf0d3d8b$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
|
@@ -5298,7 +5302,7 @@ function $ef237c2bba47492f$export$f8913c8a18f7ca21(iterables) {
|
|
|
5298
5302
|
return ourselves;
|
|
5299
5303
|
}
|
|
5300
5304
|
const $1cc2444a0f1b992e$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5301
|
-
$1cc2444a0f1b992e$var$_tmpl$2 = ["<div",
|
|
5305
|
+
$1cc2444a0f1b992e$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5302
5306
|
const $1cc2444a0f1b992e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5303
5307
|
async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
5304
5308
|
rows: rows,
|
|
@@ -5356,7 +5360,7 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
|
5356
5360
|
});
|
|
5357
5361
|
if (button) {
|
|
5358
5362
|
button_class = $650b64c1b384c895$export$a6db784f019668ba();
|
|
5359
|
-
const button_container = $jVDDb$solidjsweb.ssr($1cc2444a0f1b992e$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), "load-more-container " + $jVDDb$solidjsweb.escape(button_class, true), $jVDDb$solidjsweb.escape($90e0b983530610e7$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5363
|
+
const button_container = $jVDDb$solidjsweb.ssr($1cc2444a0f1b992e$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey() + $jVDDb$solidjsweb.ssrAttribute("class", "load-more-container " + $jVDDb$solidjsweb.escape(button_class, true), false), $jVDDb$solidjsweb.escape($90e0b983530610e7$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5360
5364
|
container_element.after(button_container);
|
|
5361
5365
|
}
|
|
5362
5366
|
(0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).oncreation(container_element, async () => {
|
|
@@ -7554,7 +7558,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
|
7554
7558
|
};
|
|
7555
7559
|
}
|
|
7556
7560
|
const $bd0fccdac6624b01$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
7557
|
-
$bd0fccdac6624b01$var$_tmpl$2 = ["<button", ' type="button"
|
|
7561
|
+
$bd0fccdac6624b01$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
7558
7562
|
$bd0fccdac6624b01$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
7559
7563
|
async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
7560
7564
|
title_: title_,
|
|
@@ -7576,7 +7580,7 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7576
7580
|
is_available_: is_available_,
|
|
7577
7581
|
id_: id_
|
|
7578
7582
|
}) => {
|
|
7579
|
-
const button = $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $jVDDb$solidjsweb.escape(size_name_), !is_available_ && $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$3, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape($374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7583
|
+
const button = $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $jVDDb$solidjsweb.escape(size_name_), !is_available_ && $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$3, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape($374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7580
7584
|
if (!is_available_) button.disabled = true;
|
|
7581
7585
|
return button;
|
|
7582
7586
|
})))]
|
|
@@ -7916,7 +7920,7 @@ function $ff973b2032639b5f$var$optimized_img_url_generator(format, url, width) {
|
|
|
7916
7920
|
return `${$ff973b2032639b5f$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
7917
7921
|
}
|
|
7918
7922
|
const $a312bccd722ac9e4$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
7919
|
-
$a312bccd722ac9e4$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
7923
|
+
$a312bccd722ac9e4$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
7920
7924
|
$a312bccd722ac9e4$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
7921
7925
|
const $a312bccd722ac9e4$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
7922
7926
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -7968,7 +7972,7 @@ function $a312bccd722ac9e4$var$CompatibleImage({
|
|
|
7968
7972
|
srcset_opts: srcset_opts,
|
|
7969
7973
|
...image_options
|
|
7970
7974
|
}) {
|
|
7971
|
-
const canvas = $jVDDb$solidjsweb.ssr($a312bccd722ac9e4$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), 3000 * $jVDDb$solidjsweb.escape(aspect_ratio, true));
|
|
7975
|
+
const canvas = $jVDDb$solidjsweb.ssr($a312bccd722ac9e4$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.ssrAttribute("width", 3000 * $jVDDb$solidjsweb.escape(aspect_ratio, true), false));
|
|
7972
7976
|
const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
7973
7977
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
7974
7978
|
return $jVDDb$solidjsweb.ssr($a312bccd722ac9e4$var$_tmpl$3, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape($jVDDb$solidjsweb.createComponent(IMG_tag, $jVDDb$solidjsweb.mergeProps({
|
package/server/latest/index.d.ts
CHANGED
package/server/latest/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onCleanup as $f3g9l$onCleanup, createEffect as $f3g9l$createEffect, createSignal as $f3g9l$createSignal } from "solid-js";
|
|
2
|
-
import { ssr as $f3g9l$ssr, ssrHydrationKey as $f3g9l$ssrHydrationKey, escape as $f3g9l$escape,
|
|
2
|
+
import { ssr as $f3g9l$ssr, ssrHydrationKey as $f3g9l$ssrHydrationKey, escape as $f3g9l$escape, ssrAttribute as $f3g9l$ssrAttribute, ssrElement as $f3g9l$ssrElement, mergeProps as $f3g9l$mergeProps, createComponent as $f3g9l$createComponent, ssrStyle as $f3g9l$ssrStyle } from "solid-js/web";
|
|
3
3
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
4
4
|
register_es_version("utilishared", "latest");
|
|
5
5
|
function $parcel$export(e, n, v, s) {
|
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.9";
|
|
17
17
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -2867,11 +2867,15 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
2867
2867
|
let result = false;
|
|
2868
2868
|
while (max_retries && !has_succeeded) try {
|
|
2869
2869
|
const response = await fetch(url, options);
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2870
|
+
const {
|
|
2871
|
+
status: status,
|
|
2872
|
+
ok: ok
|
|
2873
|
+
} = response;
|
|
2874
|
+
if (!response || !ok || status !== 200) {
|
|
2875
|
+
if (status >= 400 && status < 500) {
|
|
2876
|
+
$b04e44fad5ea42c7$export$b3bbfd758f11cfa9($2d1ffbfaa1c2d9e3$var$send_sentry_4xx)(response, options?.body || {}, stack);
|
|
2873
2877
|
has_succeeded = true;
|
|
2874
|
-
} else if (
|
|
2878
|
+
} else if (status === 404) has_succeeded = true;
|
|
2875
2879
|
$649f456f663da9fc$export$de56f1198d121036("Response not ok", response);
|
|
2876
2880
|
} else has_succeeded = true;
|
|
2877
2881
|
result = response;
|
|
@@ -2886,8 +2890,8 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
|
|
|
2886
2890
|
}
|
|
2887
2891
|
return result;
|
|
2888
2892
|
}
|
|
2889
|
-
async function $2d1ffbfaa1c2d9e3$var$
|
|
2890
|
-
const msg = `Validation error: got
|
|
2893
|
+
async function $2d1ffbfaa1c2d9e3$var$send_sentry_4xx(response, body, stack) {
|
|
2894
|
+
const msg = `Validation error: got 4XX from API`;
|
|
2891
2895
|
const text = await response.clone().text();
|
|
2892
2896
|
$649f456f663da9fc$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
|
|
2893
2897
|
(0, $eba382943196079c$export$af2e17a20c2ea3c5).withScope(function (scope) {
|
|
@@ -5040,7 +5044,7 @@ function $693e2a1517bef984$export$f8913c8a18f7ca21(iterables) {
|
|
|
5040
5044
|
return ourselves;
|
|
5041
5045
|
}
|
|
5042
5046
|
const $30e801eaa3dc319e$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5043
|
-
$30e801eaa3dc319e$var$_tmpl$2 = ["<div",
|
|
5047
|
+
$30e801eaa3dc319e$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5044
5048
|
const $30e801eaa3dc319e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5045
5049
|
async function $30e801eaa3dc319e$export$c84671f46d6a1ca({
|
|
5046
5050
|
rows: rows,
|
|
@@ -5098,7 +5102,7 @@ async function $30e801eaa3dc319e$export$c84671f46d6a1ca({
|
|
|
5098
5102
|
});
|
|
5099
5103
|
if (button) {
|
|
5100
5104
|
button_class = $460df8550f9d084d$export$a6db784f019668ba();
|
|
5101
|
-
const button_container = $f3g9l$ssr($30e801eaa3dc319e$var$_tmpl$2, $f3g9l$ssrHydrationKey(), "load-more-container " + $f3g9l$escape(button_class, true), $f3g9l$escape($b9b0dba897847b2a$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5105
|
+
const button_container = $f3g9l$ssr($30e801eaa3dc319e$var$_tmpl$2, $f3g9l$ssrHydrationKey() + $f3g9l$ssrAttribute("class", "load-more-container " + $f3g9l$escape(button_class, true), false), $f3g9l$escape($b9b0dba897847b2a$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5102
5106
|
container_element.after(button_container);
|
|
5103
5107
|
}
|
|
5104
5108
|
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(container_element, async () => {
|
|
@@ -7296,7 +7300,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
|
7296
7300
|
};
|
|
7297
7301
|
}
|
|
7298
7302
|
const $72d170fd5c7cb3fe$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
7299
|
-
$72d170fd5c7cb3fe$var$_tmpl$2 = ["<button", ' type="button"
|
|
7303
|
+
$72d170fd5c7cb3fe$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
7300
7304
|
$72d170fd5c7cb3fe$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
7301
7305
|
async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
7302
7306
|
title_: title_,
|
|
@@ -7318,7 +7322,7 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7318
7322
|
is_available_: is_available_,
|
|
7319
7323
|
id_: id_
|
|
7320
7324
|
}) => {
|
|
7321
|
-
const button = $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$2, $f3g9l$ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $f3g9l$escape(size_name_), !is_available_ && $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$3, $f3g9l$ssrHydrationKey(), $f3g9l$escape($8c97019b5f7b0d0e$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7325
|
+
const button = $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$2, $f3g9l$ssrHydrationKey(), $f3g9l$ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $f3g9l$escape(size_name_), !is_available_ && $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$3, $f3g9l$ssrHydrationKey(), $f3g9l$escape($8c97019b5f7b0d0e$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7322
7326
|
if (!is_available_) button.disabled = true;
|
|
7323
7327
|
return button;
|
|
7324
7328
|
})))]
|
|
@@ -7658,7 +7662,7 @@ function $45af9e834781a9bc$var$optimized_img_url_generator(format, url, width) {
|
|
|
7658
7662
|
return `${$45af9e834781a9bc$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
7659
7663
|
}
|
|
7660
7664
|
const $914971fb43986a16$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
7661
|
-
$914971fb43986a16$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
7665
|
+
$914971fb43986a16$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
7662
7666
|
$914971fb43986a16$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
7663
7667
|
const $914971fb43986a16$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
7664
7668
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -7710,7 +7714,7 @@ function $914971fb43986a16$var$CompatibleImage({
|
|
|
7710
7714
|
srcset_opts: srcset_opts,
|
|
7711
7715
|
...image_options
|
|
7712
7716
|
}) {
|
|
7713
|
-
const canvas = $f3g9l$ssr($914971fb43986a16$var$_tmpl$2, $f3g9l$ssrHydrationKey(), 3000 * $f3g9l$escape(aspect_ratio, true));
|
|
7717
|
+
const canvas = $f3g9l$ssr($914971fb43986a16$var$_tmpl$2, $f3g9l$ssrHydrationKey(), $f3g9l$ssrAttribute("width", 3000 * $f3g9l$escape(aspect_ratio, true), false));
|
|
7714
7718
|
const sourceset_component = $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
7715
7719
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
7716
7720
|
return $f3g9l$ssr($914971fb43986a16$var$_tmpl$3, $f3g9l$ssrHydrationKey(), $f3g9l$escape($f3g9l$createComponent(IMG_tag, $f3g9l$mergeProps({
|